content
stringlengths
7
1.05M
fixed_cases
stringlengths
1
1.28M
#!/usr/bin/env python # START OMIT i = 3 while i != 0: print(i) i -= 1 # END OMIT
i = 3 while i != 0: print(i) i -= 1
# Copyright (c) 2012 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. { 'variables': { 'chromium_code': 1, # These files lists are shared with the GN build. 'ash_sources': [ 'accelerators/accelerator_commands.cc', 'accelerators/accelerator_commands.h', 'accelerators/accelerator_controller.cc', 'accelerators/accelerator_controller.h', 'accelerators/accelerator_delegate.cc', 'accelerators/accelerator_delegate.h', 'accelerators/accelerator_table.cc', 'accelerators/accelerator_table.h', 'accelerators/debug_commands.cc', 'accelerators/debug_commands.h', 'accelerators/exit_warning_handler.cc', 'accelerators/exit_warning_handler.h', 'accelerators/focus_manager_factory.cc', 'accelerators/focus_manager_factory.h', 'accelerators/key_hold_detector.cc', 'accelerators/key_hold_detector.h', 'accelerators/magnifier_key_scroller.cc', 'accelerators/magnifier_key_scroller.h', 'accelerators/spoken_feedback_toggler.cc', 'accelerators/spoken_feedback_toggler.h', 'app_list/app_list_presenter_delegate.cc', 'app_list/app_list_presenter_delegate.h', 'app_list/app_list_presenter_delegate_factory.cc', 'app_list/app_list_presenter_delegate_factory.h', 'ash_export.h', 'ash_touch_exploration_manager_chromeos.cc', 'ash_touch_exploration_manager_chromeos.h', 'audio/sounds.cc', 'audio/sounds.h', 'aura/aura_layout_manager_adapter.cc', 'aura/aura_layout_manager_adapter.h', 'aura/wm_lookup_aura.cc', 'aura/wm_lookup_aura.h', 'aura/wm_root_window_controller_aura.cc', 'aura/wm_root_window_controller_aura.h', 'aura/wm_shelf_aura.cc', 'aura/wm_shelf_aura.h', 'aura/wm_shell_aura.cc', 'aura/wm_shell_aura.h', 'aura/wm_window_aura.cc', 'aura/wm_window_aura.h', 'autoclick/autoclick_controller.cc', 'autoclick/autoclick_controller.h', 'cancel_mode.cc', 'cancel_mode.h', 'common/accessibility_delegate.h', 'common/accessibility_types.h', 'common/ash_constants.cc', 'common/ash_constants.h', 'common/ash_layout_constants.cc', 'common/ash_layout_constants.h', 'common/ash_switches.cc', 'common/ash_switches.h', 'common/cast_config_delegate.cc', 'common/cast_config_delegate.h', 'common/default_accessibility_delegate.cc', 'common/default_accessibility_delegate.h', 'common/display/display_info.cc', 'common/display/display_info.h', 'common/focus_cycler.cc', 'common/focus_cycler.h', 'common/keyboard/keyboard_ui.cc', 'common/keyboard/keyboard_ui.h', 'common/keyboard/keyboard_ui_observer.h', 'common/login_status.h', 'common/material_design/material_design_controller.cc', 'common/material_design/material_design_controller.h', 'common/metrics/user_metrics_action.h', 'common/root_window_controller_common.cc', 'common/root_window_controller_common.h', 'common/session/session_state_delegate.cc', 'common/session/session_state_delegate.h', 'common/session/session_state_observer.cc', 'common/session/session_state_observer.h', 'common/session/session_types.h', 'common/shelf/shelf_alignment_menu.cc', 'common/shelf/shelf_alignment_menu.h', 'common/shelf/shelf_constants.cc', 'common/shelf/shelf_constants.h', 'common/shelf/shelf_item_delegate.h', 'common/shelf/shelf_item_delegate_manager.cc', 'common/shelf/shelf_item_delegate_manager.h', 'common/shelf/shelf_item_types.cc', 'common/shelf/shelf_item_types.h', 'common/shelf/shelf_menu_model.h', 'common/shelf/shelf_model.cc', 'common/shelf/shelf_model.h', 'common/shelf/shelf_model_observer.h', 'common/shelf/shelf_types.h', 'common/shelf/wm_shelf.h', 'common/shelf/wm_shelf_observer.h', 'common/shelf/wm_shelf_util.cc', 'common/shelf/wm_shelf_util.h', 'common/shell_window_ids.cc', 'common/shell_window_ids.h', 'common/system/accessibility_observer.h', 'common/system/audio/audio_observer.h', 'common/system/audio/tray_audio.cc', 'common/system/audio/tray_audio.h', 'common/system/audio/tray_audio_delegate.h', 'common/system/audio/volume_view.cc', 'common/system/audio/volume_view.h', 'common/system/cast/tray_cast.cc', 'common/system/cast/tray_cast.h', 'common/system/chromeos/audio/audio_detailed_view.cc', 'common/system/chromeos/audio/audio_detailed_view.h', 'common/system/chromeos/audio/tray_audio_chromeos.cc', 'common/system/chromeos/audio/tray_audio_chromeos.h', 'common/system/chromeos/audio/tray_audio_delegate_chromeos.cc', 'common/system/chromeos/audio/tray_audio_delegate_chromeos.h', 'common/system/chromeos/bluetooth/bluetooth_observer.h', 'common/system/chromeos/devicetype_utils.cc', 'common/system/chromeos/devicetype_utils.h', 'common/system/chromeos/enterprise/enterprise_domain_observer.h', 'common/system/chromeos/media_security/media_capture_observer.h', 'common/system/chromeos/network/network_detailed_view.h', 'common/system/chromeos/network/network_observer.h', 'common/system/chromeos/network/network_portal_detector_observer.h', 'common/system/chromeos/network/network_state_list_detailed_view.cc', 'common/system/chromeos/network/network_state_list_detailed_view.h', 'common/system/chromeos/network/tray_network.cc', 'common/system/chromeos/network/tray_network.h', 'common/system/chromeos/network/tray_network_state_observer.cc', 'common/system/chromeos/network/tray_network_state_observer.h', 'common/system/chromeos/network/tray_sms.cc', 'common/system/chromeos/network/tray_sms.h', 'common/system/chromeos/network/tray_vpn.cc', 'common/system/chromeos/network/tray_vpn.h', 'common/system/chromeos/network/vpn_delegate.cc', 'common/system/chromeos/network/vpn_delegate.h', 'common/system/chromeos/network/vpn_list_view.cc', 'common/system/chromeos/network/vpn_list_view.h', 'common/system/chromeos/power/battery_notification.cc', 'common/system/chromeos/power/battery_notification.h', 'common/system/chromeos/power/dual_role_notification.cc', 'common/system/chromeos/power/dual_role_notification.h', 'common/system/chromeos/power/power_status.cc', 'common/system/chromeos/power/power_status.h', 'common/system/chromeos/power/power_status_view.cc', 'common/system/chromeos/power/power_status_view.h', 'common/system/chromeos/power/tray_power.cc', 'common/system/chromeos/power/tray_power.h', 'common/system/chromeos/screen_security/screen_capture_observer.h', 'common/system/chromeos/screen_security/screen_capture_tray_item.cc', 'common/system/chromeos/screen_security/screen_capture_tray_item.h', 'common/system/chromeos/screen_security/screen_share_observer.h', 'common/system/chromeos/screen_security/screen_share_tray_item.cc', 'common/system/chromeos/screen_security/screen_share_tray_item.h', 'common/system/chromeos/screen_security/screen_tray_item.cc', 'common/system/chromeos/screen_security/screen_tray_item.h', 'common/system/chromeos/session/last_window_closed_observer.h', 'common/system/chromeos/session/logout_button_observer.h', 'common/system/chromeos/session/logout_button_tray.cc', 'common/system/chromeos/session/logout_button_tray.h', 'common/system/chromeos/session/logout_confirmation_controller.cc', 'common/system/chromeos/session/logout_confirmation_controller.h', 'common/system/chromeos/session/logout_confirmation_dialog.cc', 'common/system/chromeos/session/logout_confirmation_dialog.h', 'common/system/chromeos/session/session_length_limit_observer.h', 'common/system/chromeos/session/tray_session_length_limit.cc', 'common/system/chromeos/session/tray_session_length_limit.h', 'common/system/chromeos/settings/tray_settings.cc', 'common/system/chromeos/settings/tray_settings.h', 'common/system/chromeos/shutdown_policy_observer.h', 'common/system/chromeos/system_clock_observer.cc', 'common/system/chromeos/system_clock_observer.h', 'common/system/chromeos/tray_tracing.cc', 'common/system/chromeos/tray_tracing.h', 'common/system/chromeos/virtual_keyboard/virtual_keyboard_observer.h', 'common/system/chromeos/virtual_keyboard/virtual_keyboard_tray.cc', 'common/system/chromeos/virtual_keyboard/virtual_keyboard_tray.h', 'common/system/date/clock_observer.h', 'common/system/date/date_default_view.cc', 'common/system/date/date_default_view.h', 'common/system/date/date_view.cc', 'common/system/date/date_view.h', 'common/system/date/tray_date.cc', 'common/system/date/tray_date.h', 'common/system/ime/ime_observer.h', 'common/system/ime/tray_ime_chromeos.cc', 'common/system/ime/tray_ime_chromeos.h', 'common/system/locale/locale_notification_controller.cc', 'common/system/locale/locale_notification_controller.h', 'common/system/locale/locale_observer.h', 'common/system/networking_config_delegate.cc', 'common/system/networking_config_delegate.h', 'common/system/status_area_widget_delegate.cc', 'common/system/status_area_widget_delegate.h', 'common/system/system_notifier.cc', 'common/system/system_notifier.h', 'common/system/tray/actionable_view.cc', 'common/system/tray/actionable_view.h', 'common/system/tray/default_system_tray_delegate.cc', 'common/system/tray/default_system_tray_delegate.h', 'common/system/tray/fixed_sized_image_view.cc', 'common/system/tray/fixed_sized_image_view.h', 'common/system/tray/fixed_sized_scroll_view.cc', 'common/system/tray/fixed_sized_scroll_view.h', 'common/system/tray/hover_highlight_view.cc', 'common/system/tray/hover_highlight_view.h', 'common/system/tray/label_tray_view.cc', 'common/system/tray/label_tray_view.h', 'common/system/tray/special_popup_row.cc', 'common/system/tray/special_popup_row.h', 'common/system/tray/system_tray_bubble.cc', 'common/system/tray/system_tray_bubble.h', 'common/system/tray/system_tray_delegate.cc', 'common/system/tray/system_tray_delegate.h', 'common/system/tray/system_tray_item.cc', 'common/system/tray/system_tray_item.h', 'common/system/tray/system_tray_notifier.cc', 'common/system/tray/system_tray_notifier.h', 'common/system/tray/throbber_view.cc', 'common/system/tray/throbber_view.h', 'common/system/tray/tray_background_view.cc', 'common/system/tray/tray_background_view.h', 'common/system/tray/tray_bar_button_with_title.cc', 'common/system/tray/tray_bar_button_with_title.h', 'common/system/tray/tray_bubble_wrapper.cc', 'common/system/tray/tray_bubble_wrapper.h', 'common/system/tray/tray_constants.cc', 'common/system/tray/tray_constants.h', 'common/system/tray/tray_details_view.cc', 'common/system/tray/tray_details_view.h', 'common/system/tray/tray_event_filter.cc', 'common/system/tray/tray_event_filter.h', 'common/system/tray/tray_image_item.cc', 'common/system/tray/tray_image_item.h', 'common/system/tray/tray_item_more.cc', 'common/system/tray/tray_item_more.h', 'common/system/tray/tray_item_view.cc', 'common/system/tray/tray_item_view.h', 'common/system/tray/tray_notification_view.cc', 'common/system/tray/tray_notification_view.h', 'common/system/tray/tray_popup_header_button.cc', 'common/system/tray/tray_popup_header_button.h', 'common/system/tray/tray_popup_item_container.cc', 'common/system/tray/tray_popup_item_container.h', 'common/system/tray/tray_popup_label_button.cc', 'common/system/tray/tray_popup_label_button.h', 'common/system/tray/tray_popup_label_button_border.cc', 'common/system/tray/tray_popup_label_button_border.h', 'common/system/tray/tray_utils.cc', 'common/system/tray/tray_utils.h', 'common/system/tray/view_click_listener.h', 'common/system/tray_accessibility.cc', 'common/system/tray_accessibility.h', 'common/system/update/tray_update.cc', 'common/system/update/tray_update.h', 'common/system/update/update_observer.h', 'common/system/user/button_from_view.cc', 'common/system/user/button_from_view.h', 'common/system/user/login_status.cc', 'common/system/user/login_status.h', 'common/system/user/rounded_image_view.cc', 'common/system/user/rounded_image_view.h', 'common/system/user/tray_user_separator.cc', 'common/system/user/tray_user_separator.h', 'common/system/user/user_observer.h', 'common/system/volume_control_delegate.h', 'common/system/web_notification/ash_popup_alignment_delegate.cc', 'common/system/web_notification/ash_popup_alignment_delegate.h', 'common/system/web_notification/web_notification_tray.cc', 'common/system/web_notification/web_notification_tray.h', 'common/wm/always_on_top_controller.cc', 'common/wm/always_on_top_controller.h', 'common/wm/background_animator.cc', 'common/wm/background_animator.h', 'common/wm/container_finder.cc', 'common/wm/container_finder.h', 'common/wm/default_state.cc', 'common/wm/default_state.h', 'common/wm/default_window_resizer.cc', 'common/wm/default_window_resizer.h', 'common/wm/dock/docked_window_layout_manager.cc', 'common/wm/dock/docked_window_layout_manager.h', 'common/wm/dock/docked_window_layout_manager_observer.h', 'common/wm/dock/docked_window_resizer.cc', 'common/wm/dock/docked_window_resizer.h', 'common/wm/drag_details.cc', 'common/wm/drag_details.h', 'common/wm/focus_rules.cc', 'common/wm/focus_rules.h', 'common/wm/fullscreen_window_finder.cc', 'common/wm/fullscreen_window_finder.h', 'common/wm/maximize_mode/maximize_mode_event_handler.cc', 'common/wm/maximize_mode/maximize_mode_event_handler.h', 'common/wm/maximize_mode/maximize_mode_window_manager.cc', 'common/wm/maximize_mode/maximize_mode_window_manager.h', 'common/wm/maximize_mode/maximize_mode_window_state.cc', 'common/wm/maximize_mode/maximize_mode_window_state.h', 'common/wm/maximize_mode/workspace_backdrop_delegate.cc', 'common/wm/maximize_mode/workspace_backdrop_delegate.h', 'common/wm/mru_window_tracker.cc', 'common/wm/mru_window_tracker.h', 'common/wm/overview/cleanup_animation_observer.cc', 'common/wm/overview/cleanup_animation_observer.h', 'common/wm/overview/overview_animation_type.h', 'common/wm/overview/scoped_overview_animation_settings.h', 'common/wm/overview/scoped_overview_animation_settings_factory.cc', 'common/wm/overview/scoped_overview_animation_settings_factory.h', 'common/wm/overview/scoped_transform_overview_window.cc', 'common/wm/overview/scoped_transform_overview_window.h', 'common/wm/overview/window_grid.cc', 'common/wm/overview/window_grid.h', 'common/wm/overview/window_selector.cc', 'common/wm/overview/window_selector.h', 'common/wm/overview/window_selector_controller.cc', 'common/wm/overview/window_selector_controller.h', 'common/wm/overview/window_selector_item.cc', 'common/wm/overview/window_selector_item.h', 'common/wm/panels/panel_layout_manager.cc', 'common/wm/panels/panel_layout_manager.h', 'common/wm/panels/panel_window_resizer.cc', 'common/wm/panels/panel_window_resizer.h', 'common/wm/root_window_finder.cc', 'common/wm/root_window_finder.h', 'common/wm/root_window_layout_manager.cc', 'common/wm/root_window_layout_manager.h', 'common/wm/switchable_windows.cc', 'common/wm/switchable_windows.h', 'common/wm/window_animation_types.h', 'common/wm/window_parenting_utils.cc', 'common/wm/window_parenting_utils.h', 'common/wm/window_positioner.cc', 'common/wm/window_positioner.h', 'common/wm/window_positioning_utils.cc', 'common/wm/window_positioning_utils.h', 'common/wm/window_resizer.cc', 'common/wm/window_resizer.h', 'common/wm/window_state.cc', 'common/wm/window_state.h', 'common/wm/window_state_delegate.cc', 'common/wm/window_state_delegate.h', 'common/wm/window_state_observer.h', 'common/wm/window_state_util.cc', 'common/wm/window_state_util.h', 'common/wm/wm_event.cc', 'common/wm/wm_event.h', 'common/wm/wm_screen_util.cc', 'common/wm/wm_screen_util.h', 'common/wm/wm_snap_to_pixel_layout_manager.cc', 'common/wm/wm_snap_to_pixel_layout_manager.h', 'common/wm/wm_toplevel_window_event_handler.cc', 'common/wm/wm_toplevel_window_event_handler.h', 'common/wm/wm_types.cc', 'common/wm/wm_types.h', 'common/wm/workspace/magnetism_matcher.cc', 'common/wm/workspace/magnetism_matcher.h', 'common/wm/workspace/multi_window_resize_controller.cc', 'common/wm/workspace/multi_window_resize_controller.h', 'common/wm/workspace/phantom_window_controller.cc', 'common/wm/workspace/phantom_window_controller.h', 'common/wm/workspace/two_step_edge_cycler.cc', 'common/wm/workspace/two_step_edge_cycler.h', 'common/wm/workspace/workspace_layout_manager.cc', 'common/wm/workspace/workspace_layout_manager.h', 'common/wm/workspace/workspace_layout_manager_backdrop_delegate.h', 'common/wm/workspace/workspace_layout_manager_delegate.h', 'common/wm/workspace/workspace_types.h', 'common/wm/workspace/workspace_window_resizer.cc', 'common/wm/workspace/workspace_window_resizer.h', 'common/wm_activation_observer.h', 'common/wm_display_observer.h', 'common/wm_layout_manager.h', 'common/wm_lookup.cc', 'common/wm_lookup.h', 'common/wm_root_window_controller.h', 'common/wm_root_window_controller_observer.h', 'common/wm_shell.cc', 'common/wm_shell.h', 'common/wm_window.h', 'common/wm_window_observer.h', 'common/wm_window_property.h', 'common/wm_window_tracker.h', 'debug.cc', 'debug.h', 'default_user_wallpaper_delegate.cc', 'default_user_wallpaper_delegate.h', 'desktop_background/desktop_background_controller.cc', 'desktop_background/desktop_background_controller.h', 'desktop_background/desktop_background_controller_observer.h', 'desktop_background/desktop_background_view.cc', 'desktop_background/desktop_background_view.h', 'desktop_background/desktop_background_widget_controller.cc', 'desktop_background/desktop_background_widget_controller.h', 'desktop_background/user_wallpaper_delegate.h', 'display/cursor_window_controller.cc', 'display/cursor_window_controller.h', 'display/display_animator.h', 'display/display_animator_chromeos.cc', 'display/display_animator_chromeos.h', 'display/display_change_observer_chromeos.cc', 'display/display_change_observer_chromeos.h', 'display/display_color_manager_chromeos.cc', 'display/display_color_manager_chromeos.h', 'display/display_configuration_controller.cc', 'display/display_configuration_controller.h', 'display/display_error_observer_chromeos.cc', 'display/display_error_observer_chromeos.h', 'display/display_layout_store.cc', 'display/display_layout_store.h', 'display/display_manager.cc', 'display/display_manager.h', 'display/display_pref_util.h', 'display/display_util.cc', 'display/display_util.h', 'display/event_transformation_handler.cc', 'display/event_transformation_handler.h', 'display/extended_mouse_warp_controller.cc', 'display/extended_mouse_warp_controller.h', 'display/json_converter.cc', 'display/json_converter.h', 'display/mirror_window_controller.cc', 'display/mirror_window_controller.h', 'display/mouse_cursor_event_filter.cc', 'display/mouse_cursor_event_filter.h', 'display/mouse_warp_controller.h', 'display/null_mouse_warp_controller.cc', 'display/null_mouse_warp_controller.h', 'display/projecting_observer_chromeos.cc', 'display/projecting_observer_chromeos.h', 'display/resolution_notification_controller.cc', 'display/resolution_notification_controller.h', 'display/root_window_transformers.cc', 'display/root_window_transformers.h', 'display/screen_ash.cc', 'display/screen_ash.h', 'display/screen_orientation_controller_chromeos.cc', 'display/screen_orientation_controller_chromeos.h', 'display/screen_position_controller.cc', 'display/screen_position_controller.h', 'display/shared_display_edge_indicator.cc', 'display/shared_display_edge_indicator.h', 'display/unified_mouse_warp_controller.cc', 'display/unified_mouse_warp_controller.h', 'display/window_tree_host_manager.cc', 'display/window_tree_host_manager.h', 'drag_drop/drag_drop_controller.cc', 'drag_drop/drag_drop_controller.h', 'drag_drop/drag_drop_tracker.cc', 'drag_drop/drag_drop_tracker.h', 'drag_drop/drag_image_view.cc', 'drag_drop/drag_image_view.h', 'first_run/desktop_cleaner.cc', 'first_run/desktop_cleaner.h', 'first_run/first_run_helper.cc', 'first_run/first_run_helper.h', 'first_run/first_run_helper_impl.cc', 'first_run/first_run_helper_impl.h', 'frame/caption_buttons/caption_button_types.h', 'frame/caption_buttons/frame_caption_button.cc', 'frame/caption_buttons/frame_caption_button.h', 'frame/caption_buttons/frame_caption_button_container_view.cc', 'frame/caption_buttons/frame_caption_button_container_view.h', 'frame/caption_buttons/frame_size_button.cc', 'frame/caption_buttons/frame_size_button.h', 'frame/caption_buttons/frame_size_button_delegate.h', 'frame/custom_frame_view_ash.cc', 'frame/custom_frame_view_ash.h', 'frame/default_header_painter.cc', 'frame/default_header_painter.h', 'frame/frame_border_hit_test_controller.cc', 'frame/frame_border_hit_test_controller.h', 'frame/header_painter.h', 'frame/header_painter_util.cc', 'frame/header_painter_util.h', 'gpu_support.h', 'gpu_support_stub.cc', 'gpu_support_stub.h', 'high_contrast/high_contrast_controller.cc', 'high_contrast/high_contrast_controller.h', 'host/ash_window_tree_host.cc', 'host/ash_window_tree_host.h', 'host/ash_window_tree_host_init_params.cc', 'host/ash_window_tree_host_init_params.h', 'host/ash_window_tree_host_platform.cc', 'host/ash_window_tree_host_platform.h', 'host/ash_window_tree_host_unified.cc', 'host/ash_window_tree_host_unified.h', 'host/ash_window_tree_host_win.cc', 'host/ash_window_tree_host_win.h', 'host/ash_window_tree_host_x11.cc', 'host/ash_window_tree_host_x11.h', 'host/root_window_transformer.h', 'host/transformer_helper.cc', 'host/transformer_helper.h', 'ime/input_method_event_handler.cc', 'ime/input_method_event_handler.h', 'keyboard_uma_event_filter.cc', 'keyboard_uma_event_filter.h', 'link_handler_model.cc', 'link_handler_model.h', 'link_handler_model_factory.cc', 'link_handler_model_factory.h', 'magnifier/magnification_controller.cc', 'magnifier/magnification_controller.h', 'magnifier/partial_magnification_controller.cc', 'magnifier/partial_magnification_controller.h', 'metrics/desktop_task_switch_metric_recorder.cc', 'metrics/desktop_task_switch_metric_recorder.h', 'metrics/task_switch_metrics_recorder.cc', 'metrics/task_switch_metrics_recorder.h', 'metrics/task_switch_time_tracker.cc', 'metrics/task_switch_time_tracker.h', 'metrics/user_metrics_recorder.cc', 'metrics/user_metrics_recorder.h', 'multi_profile_uma.cc', 'multi_profile_uma.h', 'pointer_watcher_delegate.h', 'pointer_watcher_delegate_aura.cc', 'pointer_watcher_delegate_aura.h', 'popup_message.cc', 'popup_message.h', 'root_window_controller.cc', 'root_window_controller.h', 'root_window_settings.cc', 'root_window_settings.h', 'rotator/screen_rotation_animation.cc', 'rotator/screen_rotation_animation.h', 'rotator/screen_rotation_animator.cc', 'rotator/screen_rotation_animator.h', 'rotator/window_rotation.cc', 'rotator/window_rotation.h', 'scoped_target_root_window.cc', 'scoped_target_root_window.h', 'screen_util.cc', 'screen_util.h', 'screenshot_delegate.h', 'shelf/app_list_button.cc', 'shelf/app_list_button.h', 'shelf/app_list_shelf_item_delegate.cc', 'shelf/app_list_shelf_item_delegate.h', 'shelf/ink_drop_button_listener.h', 'shelf/overflow_bubble.cc', 'shelf/overflow_bubble.h', 'shelf/overflow_bubble_view.cc', 'shelf/overflow_bubble_view.h', 'shelf/overflow_button.cc', 'shelf/overflow_button.h', 'shelf/scoped_observer_with_duplicated_sources.h', 'shelf/shelf.cc', 'shelf/shelf.h', 'shelf/shelf_bezel_event_filter.cc', 'shelf/shelf_bezel_event_filter.h', 'shelf/shelf_button.cc', 'shelf/shelf_button.h', 'shelf/shelf_button_pressed_metric_tracker.cc', 'shelf/shelf_button_pressed_metric_tracker.h', 'shelf/shelf_delegate.h', 'shelf/shelf_icon_observer.h', 'shelf/shelf_layout_manager.cc', 'shelf/shelf_layout_manager.h', 'shelf/shelf_layout_manager_observer.h', 'shelf/shelf_locking_manager.cc', 'shelf/shelf_locking_manager.h', 'shelf/shelf_navigator.cc', 'shelf/shelf_navigator.h', 'shelf/shelf_tooltip_manager.cc', 'shelf/shelf_tooltip_manager.h', 'shelf/shelf_util.cc', 'shelf/shelf_util.h', 'shelf/shelf_view.cc', 'shelf/shelf_view.h', 'shelf/shelf_widget.cc', 'shelf/shelf_widget.h', 'shelf/shelf_window_watcher.cc', 'shelf/shelf_window_watcher.h', 'shelf/shelf_window_watcher_item_delegate.cc', 'shelf/shelf_window_watcher_item_delegate.h', 'shell.cc', 'shell.h', 'shell_delegate.h', 'shell_factory.h', 'shell_init_params.cc', 'shell_init_params.h', 'snap_to_pixel_layout_manager.cc', 'snap_to_pixel_layout_manager.h', 'sticky_keys/sticky_keys_controller.cc', 'sticky_keys/sticky_keys_controller.h', 'sticky_keys/sticky_keys_overlay.cc', 'sticky_keys/sticky_keys_overlay.h', 'sticky_keys/sticky_keys_state.h', 'system/brightness_control_delegate.h', 'system/chromeos/bluetooth/bluetooth_notification_controller.cc', 'system/chromeos/bluetooth/bluetooth_notification_controller.h', 'system/chromeos/bluetooth/tray_bluetooth.cc', 'system/chromeos/bluetooth/tray_bluetooth.h', 'system/chromeos/brightness/brightness_controller_chromeos.cc', 'system/chromeos/brightness/brightness_controller_chromeos.h', 'system/chromeos/brightness/tray_brightness.cc', 'system/chromeos/brightness/tray_brightness.h', 'system/chromeos/enterprise/tray_enterprise.cc', 'system/chromeos/enterprise/tray_enterprise.h', 'system/chromeos/keyboard_brightness_controller.cc', 'system/chromeos/keyboard_brightness_controller.h', 'system/chromeos/media_security/multi_profile_media_tray_item.cc', 'system/chromeos/media_security/multi_profile_media_tray_item.h', 'system/chromeos/multi_user/user_switch_util.cc', 'system/chromeos/multi_user/user_switch_util.h', 'system/chromeos/power/power_event_observer.cc', 'system/chromeos/power/power_event_observer.h', 'system/chromeos/power/video_activity_notifier.cc', 'system/chromeos/power/video_activity_notifier.h', 'system/chromeos/rotation/tray_rotation_lock.cc', 'system/chromeos/rotation/tray_rotation_lock.h', 'system/chromeos/supervised/custodian_info_tray_observer.h', 'system/chromeos/supervised/tray_supervised_user.cc', 'system/chromeos/supervised/tray_supervised_user.h', 'system/chromeos/tray_caps_lock.cc', 'system/chromeos/tray_caps_lock.h', 'system/chromeos/tray_display.cc', 'system/chromeos/tray_display.h', 'system/keyboard_brightness/keyboard_brightness_control_delegate.h', 'system/overview/overview_button_tray.cc', 'system/overview/overview_button_tray.h', 'system/status_area_widget.cc', 'system/status_area_widget.h', 'system/toast/toast_data.cc', 'system/toast/toast_data.h', 'system/toast/toast_manager.cc', 'system/toast/toast_manager.h', 'system/toast/toast_overlay.cc', 'system/toast/toast_overlay.h', 'system/tray/system_tray.cc', 'system/tray/system_tray.h', 'system/user/tray_user.cc', 'system/user/tray_user.h', 'system/user/user_card_view.cc', 'system/user/user_card_view.h', 'system/user/user_view.cc', 'system/user/user_view.h', 'touch/touch_hud_debug.cc', 'touch/touch_hud_debug.h', 'touch/touch_hud_projection.cc', 'touch/touch_hud_projection.h', 'touch/touch_observer_hud.cc', 'touch/touch_observer_hud.h', 'touch/touch_transformer_controller.cc', 'touch/touch_transformer_controller.h', 'touch/touch_uma.cc', 'touch/touch_uma.h', 'touch/touchscreen_util.cc', 'touch/touchscreen_util.h', 'utility/screenshot_controller.cc', 'utility/screenshot_controller.h', 'virtual_keyboard_controller.cc', 'virtual_keyboard_controller.h', 'wm/ash_focus_rules.cc', 'wm/ash_focus_rules.h', 'wm/ash_native_cursor_manager.cc', 'wm/ash_native_cursor_manager.h', 'wm/boot_splash_screen_chromeos.cc', 'wm/boot_splash_screen_chromeos.h', 'wm/cursor_manager_chromeos.cc', 'wm/cursor_manager_chromeos.h', 'wm/dim_window.cc', 'wm/dim_window.h', 'wm/drag_window_controller.cc', 'wm/drag_window_controller.h', 'wm/drag_window_resizer.cc', 'wm/drag_window_resizer.h', 'wm/event_client_impl.cc', 'wm/event_client_impl.h', 'wm/gestures/overview_gesture_handler.cc', 'wm/gestures/overview_gesture_handler.h', 'wm/gestures/shelf_gesture_handler.cc', 'wm/gestures/shelf_gesture_handler.h', 'wm/immersive_fullscreen_controller.cc', 'wm/immersive_fullscreen_controller.h', 'wm/immersive_revealed_lock.cc', 'wm/immersive_revealed_lock.h', 'wm/lock_layout_manager.cc', 'wm/lock_layout_manager.h', 'wm/lock_state_controller.cc', 'wm/lock_state_controller.h', 'wm/lock_state_observer.h', 'wm/lock_window_state.cc', 'wm/lock_window_state.h', 'wm/maximize_mode/maximize_mode_controller.cc', 'wm/maximize_mode/maximize_mode_controller.h', 'wm/maximize_mode/maximize_mode_event_handler_aura.cc', 'wm/maximize_mode/maximize_mode_event_handler_aura.h', 'wm/maximize_mode/scoped_disable_internal_mouse_and_keyboard.h', 'wm/maximize_mode/scoped_disable_internal_mouse_and_keyboard_ozone.cc', 'wm/maximize_mode/scoped_disable_internal_mouse_and_keyboard_ozone.h', 'wm/maximize_mode/scoped_disable_internal_mouse_and_keyboard_x11.cc', 'wm/maximize_mode/scoped_disable_internal_mouse_and_keyboard_x11.h', 'wm/overlay_event_filter.cc', 'wm/overlay_event_filter.h', 'wm/overview/scoped_overview_animation_settings_aura.cc', 'wm/overview/scoped_overview_animation_settings_aura.h', 'wm/overview/scoped_overview_animation_settings_factory_aura.cc', 'wm/overview/scoped_overview_animation_settings_factory_aura.h', 'wm/panels/attached_panel_window_targeter.cc', 'wm/panels/attached_panel_window_targeter.h', 'wm/panels/panel_frame_view.cc', 'wm/panels/panel_frame_view.h', 'wm/panels/panel_window_event_handler.cc', 'wm/panels/panel_window_event_handler.h', 'wm/power_button_controller.cc', 'wm/power_button_controller.h', 'wm/resize_handle_window_targeter.cc', 'wm/resize_handle_window_targeter.h', 'wm/resize_shadow.cc', 'wm/resize_shadow.h', 'wm/resize_shadow_controller.cc', 'wm/resize_shadow_controller.h', 'wm/screen_dimmer.cc', 'wm/screen_dimmer.h', 'wm/screen_pinning_controller.cc', 'wm/screen_pinning_controller.h', 'wm/session_state_animator.cc', 'wm/session_state_animator.h', 'wm/session_state_animator_impl.cc', 'wm/session_state_animator_impl.h', 'wm/stacking_controller.cc', 'wm/stacking_controller.h', 'wm/status_area_layout_manager.cc', 'wm/status_area_layout_manager.h', 'wm/system_background_controller.cc', 'wm/system_background_controller.h', 'wm/system_gesture_event_filter.cc', 'wm/system_gesture_event_filter.h', 'wm/system_modal_container_event_filter.cc', 'wm/system_modal_container_event_filter.h', 'wm/system_modal_container_event_filter_delegate.h', 'wm/system_modal_container_layout_manager.cc', 'wm/system_modal_container_layout_manager.h', 'wm/toplevel_window_event_handler.cc', 'wm/toplevel_window_event_handler.h', 'wm/video_detector.cc', 'wm/video_detector.h', 'wm/window_animations.cc', 'wm/window_animations.h', 'wm/window_cycle_controller.cc', 'wm/window_cycle_controller.h', 'wm/window_cycle_list.cc', 'wm/window_cycle_list.h', 'wm/window_properties.cc', 'wm/window_properties.h', 'wm/window_state_aura.cc', 'wm/window_state_aura.h', 'wm/window_util.cc', 'wm/window_util.h', 'wm/workspace/workspace_event_handler.cc', 'wm/workspace/workspace_event_handler.h', 'wm/workspace_controller.cc', 'wm/workspace_controller.h', ], 'ash_with_content_sources': [ 'content/ash_with_content_export.h', 'content/gpu_support_impl.cc', 'content/gpu_support_impl.h', 'content/keyboard_overlay/keyboard_overlay_delegate.cc', 'content/keyboard_overlay/keyboard_overlay_delegate.h', 'content/keyboard_overlay/keyboard_overlay_view.cc', 'content/keyboard_overlay/keyboard_overlay_view.h', 'content/screen_orientation_delegate_chromeos.cc', 'content/screen_orientation_delegate_chromeos.h', 'content/shell_content_state.cc', 'content/shell_content_state.h', ], 'ash_test_support_sources': [ 'desktop_background/desktop_background_controller_test_api.cc', 'desktop_background/desktop_background_controller_test_api.h', 'shell/toplevel_window.cc', 'shell/toplevel_window.h', 'test/ash_md_test_base.cc', 'test/ash_md_test_base.h', 'test/ash_test_base.cc', 'test/ash_test_base.h', 'test/ash_test_helper.cc', 'test/ash_test_helper.h', 'test/ash_test_views_delegate.cc', 'test/ash_test_views_delegate.h', 'test/child_modal_window.cc', 'test/child_modal_window.h', 'test/cursor_manager_test_api.cc', 'test/cursor_manager_test_api.h', 'test/display_manager_test_api.cc', 'test/display_manager_test_api.h', 'test/material_design_controller_test_api.cc', 'test/material_design_controller_test_api.h', 'test/mirror_window_test_api.cc', 'test/mirror_window_test_api.h', 'test/overflow_bubble_view_test_api.cc', 'test/overflow_bubble_view_test_api.h', 'test/shelf_button_pressed_metric_tracker_test_api.cc', 'test/shelf_button_pressed_metric_tracker_test_api.h', 'test/shelf_item_delegate_manager_test_api.cc', 'test/shelf_item_delegate_manager_test_api.h', 'test/shelf_test_api.h', 'test/shelf_view_test_api.cc', 'test/shelf_view_test_api.h', 'test/shell_test_api.cc', 'test/shell_test_api.h', 'test/status_area_widget_test_helper.cc', 'test/status_area_widget_test_helper.h', 'test/task_switch_time_tracker_test_api.cc', 'test/task_switch_time_tracker_test_api.h', 'test/test_activation_delegate.cc', 'test/test_activation_delegate.h', 'test/test_keyboard_ui.cc', 'test/test_keyboard_ui.h', 'test/test_lock_state_controller_delegate.cc', 'test/test_lock_state_controller_delegate.h', 'test/test_overlay_delegate.cc', 'test/test_overlay_delegate.h', 'test/test_screenshot_delegate.cc', 'test/test_screenshot_delegate.h', 'test/test_session_state_animator.cc', 'test/test_session_state_animator.h', 'test/test_session_state_delegate.cc', 'test/test_session_state_delegate.h', 'test/test_shelf_delegate.cc', 'test/test_shelf_delegate.h', 'test/test_shelf_item_delegate.cc', 'test/test_shelf_item_delegate.h', 'test/test_shell_delegate.cc', 'test/test_shell_delegate.h', 'test/test_suite.cc', 'test/test_suite.h', 'test/test_suite_init.h', 'test/test_suite_init.mm', 'test/test_system_tray_delegate.cc', 'test/test_system_tray_delegate.h', 'test/test_system_tray_item.cc', 'test/test_system_tray_item.h', 'test/test_user_wallpaper_delegate.cc', 'test/test_user_wallpaper_delegate.h', 'test/test_volume_control_delegate.cc', 'test/test_volume_control_delegate.h', 'test/tray_cast_test_api.cc', 'test/tray_cast_test_api.h', 'test/ui_controls_factory_ash.cc', 'test/ui_controls_factory_ash.h', 'test/user_metrics_recorder_test_api.cc', 'test/user_metrics_recorder_test_api.h', 'test/virtual_keyboard_test_helper.cc', 'test/virtual_keyboard_test_helper.h', ], 'ash_test_support_with_content_sources': [ 'test/content/test_shell_content_state.cc', 'test/content/test_shell_content_state.h', ], 'ash_shell_lib_sources': [ '../ui/views/test/test_views_delegate_aura.cc', 'shell/app_list.cc', 'shell/bubble.cc', 'shell/context_menu.cc', 'shell/context_menu.h', 'shell/example_factory.h', 'shell/lock_view.cc', 'shell/panel_window.cc', 'shell/panel_window.h', 'shell/shelf_delegate_impl.cc', 'shell/shelf_delegate_impl.h', 'shell/shell_delegate_impl.cc', 'shell/shell_delegate_impl.h', 'shell/toplevel_window.cc', 'shell/toplevel_window.h', 'shell/widgets.cc', 'shell/window_type_launcher.cc', 'shell/window_type_launcher.h', 'shell/window_watcher.cc', 'shell/window_watcher.h', 'shell/window_watcher_shelf_item_delegate.cc', 'shell/window_watcher_shelf_item_delegate.h', ], 'ash_shell_with_content_lib_sources': [ 'shell/content/client/shell_browser_main_parts.cc', 'shell/content/client/shell_browser_main_parts.h', 'shell/content/client/shell_content_browser_client.cc', 'shell/content/client/shell_content_browser_client.h', 'shell/content/client/shell_main_delegate.cc', 'shell/content/client/shell_main_delegate.h', 'shell/content/shell_content_state_impl.cc', 'shell/content/shell_content_state_impl.h', ], 'ash_unittests_sources': [ 'accelerators/accelerator_commands_unittest.cc', 'accelerators/accelerator_controller_unittest.cc', 'accelerators/accelerator_filter_unittest.cc', 'accelerators/accelerator_table_unittest.cc', 'accelerators/magnifier_key_scroller_unittest.cc', 'accelerators/spoken_feedback_toggler_unittest.cc', 'app_list/app_list_presenter_delegate_unittest.cc', 'ash_touch_exploration_manager_chromeos_unittest.cc', 'autoclick/autoclick_unittest.cc', 'common/display/display_info_unittest.cc', 'common/material_design/material_design_controller_unittest.cc', 'common/shelf/shelf_model_unittest.cc', 'common/system/chromeos/power/power_status_unittest.cc', 'common/system/chromeos/power/power_status_view_unittest.cc', 'common/system/chromeos/power/tray_power_unittest.cc', 'common/system/chromeos/screen_security/screen_tray_item_unittest.cc', 'common/system/chromeos/session/logout_confirmation_controller_unittest.cc', 'common/system/chromeos/session/tray_session_length_limit_unittest.cc', 'common/system/date/date_view_unittest.cc', 'common/system/ime/tray_ime_chromeos_unittest.cc', 'common/system/tray/tray_details_view_unittest.cc', 'common/system/update/tray_update_unittest.cc', 'common/wm/overview/cleanup_animation_observer_unittest.cc', 'content/display/screen_orientation_controller_chromeos_unittest.cc', 'content/keyboard_overlay/keyboard_overlay_delegate_unittest.cc', 'content/keyboard_overlay/keyboard_overlay_view_unittest.cc', 'desktop_background/desktop_background_controller_unittest.cc', 'dip_unittest.cc', 'display/cursor_window_controller_unittest.cc', 'display/display_change_observer_chromeos_unittest.cc', 'display/display_color_manager_chromeos_unittest.cc', 'display/display_error_observer_chromeos_unittest.cc', 'display/display_manager_unittest.cc', 'display/display_util_unittest.cc', 'display/extended_mouse_warp_controller_unittest.cc', 'display/json_converter_unittest.cc', 'display/mirror_window_controller_unittest.cc', 'display/mouse_cursor_event_filter_unittest.cc', 'display/projecting_observer_chromeos_unittest.cc', 'display/resolution_notification_controller_unittest.cc', 'display/root_window_transformers_unittest.cc', 'display/screen_ash_unittest.cc', 'display/screen_position_controller_unittest.cc', 'display/unified_mouse_warp_controller_unittest.cc', 'display/window_tree_host_manager_unittest.cc', 'drag_drop/drag_drop_controller_unittest.cc', 'drag_drop/drag_drop_tracker_unittest.cc', 'extended_desktop_unittest.cc', 'focus_cycler_unittest.cc', 'frame/caption_buttons/frame_caption_button_container_view_unittest.cc', 'frame/caption_buttons/frame_size_button_unittest.cc', 'frame/custom_frame_view_ash_unittest.cc', 'frame/default_header_painter_unittest.cc', 'host/ash_window_tree_host_x11_unittest.cc', 'magnifier/magnification_controller_unittest.cc', 'metrics/desktop_task_switch_metric_recorder_unittest.cc', 'metrics/task_switch_metrics_recorder_unittest.cc', 'metrics/task_switch_time_tracker_unittest.cc', 'metrics/user_metrics_recorder_unittest.cc', 'popup_message_unittest.cc', 'root_window_controller_unittest.cc', 'rotator/screen_rotation_animation_unittest.cc', 'screen_util_unittest.cc', 'shelf/scoped_observer_with_duplicated_sources_unittest.cc', 'shelf/shelf_button_pressed_metric_tracker_unittest.cc', 'shelf/shelf_layout_manager_unittest.cc', 'shelf/shelf_locking_manager_unittest.cc', 'shelf/shelf_navigator_unittest.cc', 'shelf/shelf_tooltip_manager_unittest.cc', 'shelf/shelf_unittest.cc', 'shelf/shelf_view_unittest.cc', 'shelf/shelf_widget_unittest.cc', 'shelf/shelf_window_watcher_unittest.cc', 'shell_unittest.cc', 'sticky_keys/sticky_keys_overlay_unittest.cc', 'sticky_keys/sticky_keys_unittest.cc', 'system/chromeos/brightness/tray_brightness_unittest.cc', 'system/chromeos/media_security/multi_profile_media_tray_item_unittest.cc', 'system/chromeos/multi_user/user_switch_util_unittest.cc', 'system/chromeos/power/power_event_observer_unittest.cc', 'system/chromeos/rotation/tray_rotation_lock_unittest.cc', 'system/chromeos/supervised/tray_supervised_user_unittest.cc', 'system/chromeos/tray_display_unittest.cc', 'system/overview/overview_button_tray_unittest.cc', 'system/toast/toast_manager_unittest.cc', 'system/tray/system_tray_unittest.cc', 'system/user/tray_user_unittest.cc', 'system/web_notification/ash_popup_alignment_delegate_unittest.cc', 'system/web_notification/web_notification_tray_unittest.cc', 'test/ash_test_helper_unittest.cc', 'test/ash_unittests.cc', 'tooltips/tooltip_controller_unittest.cc', 'touch/touch_observer_hud_unittest.cc', 'touch/touch_transformer_controller_unittest.cc', 'touch/touchscreen_util_unittest.cc', 'utility/screenshot_controller_unittest.cc', 'virtual_keyboard_controller_unittest.cc', 'wm/always_on_top_controller_unittest.cc', 'wm/ash_focus_rules_unittest.cc', 'wm/ash_native_cursor_manager_unittest.cc', 'wm/dock/docked_window_layout_manager_unittest.cc', 'wm/dock/docked_window_resizer_unittest.cc', 'wm/drag_window_resizer_unittest.cc', 'wm/gestures/overview_gesture_handler_unittest.cc', 'wm/immersive_fullscreen_controller_unittest.cc', 'wm/lock_layout_manager_unittest.cc', 'wm/lock_state_controller_unittest.cc', 'wm/maximize_mode/accelerometer_test_data_literals.cc', 'wm/maximize_mode/maximize_mode_controller_unittest.cc', 'wm/maximize_mode/maximize_mode_window_manager_unittest.cc', 'wm/mru_window_tracker_unittest.cc', 'wm/overlay_event_filter_unittest.cc', 'wm/overview/window_selector_unittest.cc', 'wm/panels/panel_layout_manager_unittest.cc', 'wm/panels/panel_window_resizer_unittest.cc', 'wm/resize_shadow_and_cursor_unittest.cc', 'wm/root_window_layout_manager_unittest.cc', 'wm/screen_dimmer_unittest.cc', 'wm/screen_pinning_controller_unittest.cc', 'wm/session_state_animator_impl_unittest.cc', 'wm/stacking_controller_unittest.cc', 'wm/system_gesture_event_filter_unittest.cc', 'wm/system_modal_container_layout_manager_unittest.cc', 'wm/toplevel_window_event_handler_unittest.cc', 'wm/video_detector_unittest.cc', 'wm/window_animations_unittest.cc', 'wm/window_cycle_controller_unittest.cc', 'wm/window_manager_unittest.cc', 'wm/window_modality_controller_unittest.cc', 'wm/window_positioner_unittest.cc', 'wm/window_state_unittest.cc', 'wm/window_util_unittest.cc', 'wm/workspace/magnetism_matcher_unittest.cc', 'wm/workspace/multi_window_resize_controller_unittest.cc', 'wm/workspace/workspace_event_handler_test_helper.cc', 'wm/workspace/workspace_event_handler_test_helper.h', 'wm/workspace/workspace_event_handler_unittest.cc', 'wm/workspace/workspace_layout_manager_unittest.cc', 'wm/workspace/workspace_window_resizer_unittest.cc', 'wm/workspace_controller_test_helper.cc', 'wm/workspace_controller_test_helper.h', 'wm/workspace_controller_unittest.cc', ], }, 'targets': [ { # GN version: //ash 'target_name': 'ash', 'type': '<(component)', 'dependencies': [ '../base/base.gyp:base', '../base/base.gyp:base_i18n', '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations', '../cc/cc.gyp:cc', '../components/components.gyp:device_event_log_component', '../components/components.gyp:onc_component', '../components/components.gyp:signin_core_account_id', '../components/components.gyp:user_manager', '../components/components.gyp:wallpaper', '../media/media.gyp:media', '../net/net.gyp:net', '../skia/skia.gyp:skia', '../third_party/icu/icu.gyp:icui18n', '../third_party/icu/icu.gyp:icuuc', '../ui/accessibility/accessibility.gyp:accessibility', '../ui/app_list/app_list.gyp:app_list', '../ui/app_list/presenter/app_list_presenter.gyp:app_list_presenter', '../ui/aura/aura.gyp:aura', '../ui/base/ime/ui_base_ime.gyp:ui_base_ime', '../ui/base/ui_base.gyp:ui_base', '../ui/base/ui_base.gyp:ui_data_pack', '../ui/compositor/compositor.gyp:compositor', '../ui/display/display.gyp:display', '../ui/events/devices/events_devices.gyp:events_devices', '../ui/events/events.gyp:events', '../ui/events/events.gyp:events_base', '../ui/events/events.gyp:gesture_detection', '../ui/events/platform/events_platform.gyp:events_platform', '../ui/gfx/gfx.gyp:gfx', '../ui/gfx/gfx.gyp:gfx_geometry', '../ui/gfx/gfx.gyp:gfx_range', '../ui/gfx/gfx.gyp:gfx_vector_icons', '../ui/keyboard/keyboard.gyp:keyboard', '../ui/message_center/message_center.gyp:message_center', '../ui/native_theme/native_theme.gyp:native_theme', '../ui/platform_window/stub/stub_window.gyp:stub_window', '../ui/resources/ui_resources.gyp:ui_resources', '../ui/strings/ui_strings.gyp:ui_strings', '../ui/views/views.gyp:views', '../ui/wm/wm.gyp:wm', '../url/url.gyp:url_lib', 'ash_resources.gyp:ash_resources', 'ash_strings.gyp:ash_strings', ], 'defines': [ 'ASH_IMPLEMENTATION', ], 'sources': [ '<@(ash_sources)', ], 'conditions': [ ['OS=="win"', { 'sources!': [ # Note: sources list duplicated in GN build. "sticky_keys/sticky_keys_controller.cc", "sticky_keys/sticky_keys_controller.h", ], # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. 'msvs_disabled_warnings': [ 4267, ], }], ['use_x11==1', { 'dependencies': [ '../build/linux/system.gyp:x11', '../build/linux/system.gyp:xfixes', '../ui/base/x/ui_base_x.gyp:ui_base_x', '../ui/events/devices/x11/events_devices_x11.gyp:events_devices_x11', '../ui/gfx/x/gfx_x11.gyp:gfx_x11', ], }], ['use_ozone==1', { 'dependencies': [ '../ui/events/ozone/events_ozone.gyp:events_ozone', '../ui/ozone/ozone.gyp:ozone', ], }], ['chromeos==1', { 'dependencies': [ '../chromeos/chromeos.gyp:chromeos', # Ash #includes power_supply_properties.pb.h directly. '../chromeos/chromeos.gyp:power_manager_proto', '../components/components.gyp:quirks', '../device/bluetooth/bluetooth.gyp:device_bluetooth', '../third_party/qcms/qcms.gyp:qcms', '../ui/chromeos/ui_chromeos.gyp:ui_chromeos_resources', '../ui/chromeos/ui_chromeos.gyp:ui_chromeos_strings', '../ui/chromeos/ui_chromeos.gyp:ui_chromeos', '../ui/display/display.gyp:display_util', ], }, { # else: chromeos!=1 'sources!': [ 'accelerators/key_hold_detector.cc', 'accelerators/key_hold_detector.h', 'accelerators/magnifier_key_scroller.cc', 'accelerators/magnifier_key_scroller.h', 'accelerators/spoken_feedback_toggler.cc', 'accelerators/spoken_feedback_toggler.h', 'display/resolution_notification_controller.cc', 'display/resolution_notification_controller.h', 'touch/touch_transformer_controller.cc', 'touch/touch_transformer_controller.h', 'touch/touchscreen_util.cc', 'touch/touchscreen_util.h', 'virtual_keyboard_controller.cc', 'virtual_keyboard_controller.h' ], }], ], }, { # GN version: //ash:ash_with_content 'target_name': 'ash_with_content', 'type': '<(component)', 'dependencies': [ '../base/base.gyp:base', '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations', '../content/content.gyp:content_browser', '../ipc/ipc.gyp:ipc', '../skia/skia.gyp:skia', '../ui/aura/aura.gyp:aura', '../ui/base/ui_base.gyp:ui_base', '../ui/compositor/compositor.gyp:compositor', '../ui/display/display.gyp:display', '../ui/events/events.gyp:events', '../ui/gfx/gfx.gyp:gfx', '../ui/gfx/gfx.gyp:gfx_geometry', '../ui/keyboard/keyboard.gyp:keyboard_with_content', '../ui/resources/ui_resources.gyp:ui_resources', '../ui/strings/ui_strings.gyp:ui_strings', '../ui/views/controls/webview/webview.gyp:webview', '../ui/views/views.gyp:views', '../ui/web_dialogs/web_dialogs.gyp:web_dialogs', '../url/url.gyp:url_lib', 'ash', 'ash_resources.gyp:ash_resources', 'ash_strings.gyp:ash_strings', ], 'defines': [ 'ASH_WITH_CONTENT_IMPLEMENTATION', ], 'sources': [ '<@(ash_with_content_sources)', ], }, { # GN version: //ash:test_support 'target_name': 'ash_test_support', 'type': 'static_library', 'dependencies': [ '../skia/skia.gyp:skia', '../testing/gtest.gyp:gtest', '../ui/accessibility/accessibility.gyp:ax_gen', '../ui/app_list/app_list.gyp:app_list_test_support', '../ui/app_list/presenter/app_list_presenter.gyp:app_list_presenter', '../ui/events/devices/events_devices.gyp:events_devices', '../ui/views/views.gyp:views_test_support', 'ash', 'ash_resources.gyp:ash_resources', 'ash_test_support_with_content', ], 'sources': [ '<@(ash_test_support_sources)', ], 'conditions': [ ['OS=="win"', { 'dependencies': [ '../ui/platform_window/win/win_window.gyp:win_window', ], }], ], }, { # GN version: //ash:test_support_with_content 'target_name': 'ash_test_support_with_content', 'type': 'static_library', 'dependencies': [ '../skia/skia.gyp:skia', 'ash_with_content', ], 'sources': [ '<@(ash_test_support_with_content_sources)', ], }, { # GN version: //ash:interactive_ui_test_support 'target_name': 'ash_interactive_ui_test_support', 'type': 'static_library', 'dependencies': [ '../skia/skia.gyp:skia', '../testing/gtest.gyp:gtest', 'ash', 'ash_test_support', ], 'sources': [ 'test/ash_interactive_ui_test_base.cc', 'test/ash_interactive_ui_test_base.h', ], }, { # GN version: //ash:ash_unittests 'target_name': 'ash_unittests', 'type': 'executable', 'dependencies': [ '../base/base.gyp:base', '../base/base.gyp:test_support_base', '../chrome/chrome_resources.gyp:packed_resources', '../components/components.gyp:signin_core_account_id', '../components/components.gyp:user_manager', '../content/content.gyp:content_browser', '../content/content_shell_and_tests.gyp:test_support_content', '../skia/skia.gyp:skia', '../testing/gmock.gyp:gmock', '../testing/gtest.gyp:gtest', '../third_party/icu/icu.gyp:icui18n', '../third_party/icu/icu.gyp:icuuc', '../ui/accessibility/accessibility.gyp:accessibility', '../ui/app_list/app_list.gyp:app_list', '../ui/app_list/presenter/app_list_presenter.gyp:app_list_presenter', '../ui/aura/aura.gyp:aura', '../ui/aura/aura.gyp:aura_test_support', '../ui/base/ime/ui_base_ime.gyp:ui_base_ime', '../ui/base/ui_base.gyp:ui_base', '../ui/base/ui_base.gyp:ui_base_test_support', '../ui/compositor/compositor.gyp:compositor', '../ui/compositor/compositor.gyp:compositor_test_support', '../ui/display/display.gyp:display', '../ui/events/devices/events_devices.gyp:events_devices', '../ui/events/events.gyp:events', '../ui/events/events.gyp:events_test_support', '../ui/events/events.gyp:gesture_detection', '../ui/gfx/gfx.gyp:gfx', '../ui/gfx/gfx.gyp:gfx_geometry', '../ui/keyboard/keyboard.gyp:keyboard', '../ui/keyboard/keyboard.gyp:keyboard_with_content', '../ui/message_center/message_center.gyp:message_center', '../ui/message_center/message_center.gyp:message_center_test_support', '../ui/resources/ui_resources.gyp:ui_resources', '../ui/views/controls/webview/webview_tests.gyp:webview_test_support', '../ui/views/views.gyp:views', '../ui/views/views.gyp:views_test_support', '../ui/web_dialogs/web_dialogs.gyp:web_dialogs_test_support', '../ui/wm/wm.gyp:wm', '../ui/wm/wm.gyp:wm_test_support', '../url/url.gyp:url_lib', 'ash', 'ash_resources.gyp:ash_resources', 'ash_resources.gyp:ash_test_resources_100_percent', 'ash_resources.gyp:ash_test_resources_200_percent', 'ash_strings.gyp:ash_strings', 'ash_strings.gyp:ash_test_strings', 'ash_test_support', 'ash_with_content', ], 'sources': [ '<@(ash_unittests_sources)', ], 'conditions': [ ['chromeos==0', { 'sources!': [ # TODO(zork): fix this test to build on Windows. See: crosbug.com/26906 'focus_cycler_unittest.cc', # All tests for multiple displays: not supported on Windows Ash. 'wm/drag_window_resizer_unittest.cc', # Can't resize on Windows Ash. http://crbug.com/165962 'autoclick/autoclick_unittest.cc', 'magnifier/magnification_controller_unittest.cc', 'sticky_keys/sticky_keys_overlay_unittest.cc', 'sticky_keys/sticky_keys_unittest.cc', 'system/chromeos/rotation/tray_rotation_lock_unittest.cc', 'virtual_keyboard_controller_unittest.cc', 'wm/maximize_mode/maximize_mode_controller_unittest.cc', 'wm/workspace/workspace_window_resizer_unittest.cc', ], 'sources': [ '<(SHARED_INTERMEDIATE_DIR)/ui/resources/ui_unscaled_resources.rc', ], # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. 'msvs_disabled_warnings': [ 4267, ], }], ['chromeos==1', { 'dependencies': [ '../chromeos/chromeos.gyp:chromeos_test_support_without_gmock', '../chromeos/chromeos.gyp:power_manager_proto', '../components/components.gyp:quirks', '../device/bluetooth/bluetooth.gyp:device_bluetooth', '../ui/display/display.gyp:display_test_support', '../ui/display/display.gyp:display_test_util', '../ui/display/display.gyp:display_types', ], 'sources': [ 'first_run/first_run_helper_unittest.cc', ], }, { # else: chromeos!=1 'sources!': [ 'accelerators/magnifier_key_scroller_unittest.cc', 'accelerators/spoken_feedback_toggler_unittest.cc', 'display/resolution_notification_controller_unittest.cc', 'touch/touch_transformer_controller_unittest.cc', 'touch/touchscreen_util_unittest.cc', ], }], ], }, { # GN version: //ash:ash_shell_lib 'target_name': 'ash_shell_lib', 'type': 'static_library', 'dependencies': [ '../base/base.gyp:base', '../base/base.gyp:base_i18n', '../chrome/chrome_resources.gyp:packed_resources', '../skia/skia.gyp:skia', '../third_party/icu/icu.gyp:icui18n', '../third_party/icu/icu.gyp:icuuc', '../ui/app_list/app_list.gyp:app_list', '../ui/app_list/presenter/app_list_presenter.gyp:app_list_presenter', '../ui/aura/aura.gyp:aura', '../ui/base/ime/ui_base_ime.gyp:ui_base_ime', '../ui/base/ui_base.gyp:ui_base', '../ui/compositor/compositor.gyp:compositor', '../ui/events/events.gyp:events', '../ui/gfx/gfx.gyp:gfx', '../ui/gfx/gfx.gyp:gfx_geometry', '../ui/keyboard/keyboard.gyp:keyboard', '../ui/keyboard/keyboard.gyp:keyboard_with_content', '../ui/message_center/message_center.gyp:message_center', '../ui/resources/ui_resources.gyp:ui_resources', '../ui/views/examples/examples.gyp:views_examples_lib', '../ui/views/examples/examples.gyp:views_examples_with_content_lib', '../ui/views/views.gyp:views', '../ui/views/views.gyp:views_test_support', 'ash', 'ash_resources.gyp:ash_resources', 'ash_strings.gyp:ash_strings', 'ash_test_support', 'ash_with_content', ], 'sources': [ '<@(ash_shell_lib_sources)', ], }, { # GN version: //ash:ash_shell_lib_with_content 'target_name': 'ash_shell_lib_with_content', 'type': 'static_library', 'dependencies': [ 'ash_shell_lib', '../content/content_shell_and_tests.gyp:content_shell_lib', '../content/content.gyp:content', '../skia/skia.gyp:skia', ], 'sources': [ '<@(ash_shell_with_content_lib_sources)', ], 'conditions': [ ['OS=="win"', { 'dependencies': [ '../content/content.gyp:sandbox_helper_win', ], }], ], }, { # GN version: //ash:ash_shell_with_content 'target_name': 'ash_shell_with_content', 'type': 'executable', 'dependencies': [ 'ash_shell_lib_with_content', '../components/components.gyp:user_manager', ], 'sources': [ 'shell/content/shell_with_content_main.cc', ], 'conditions': [ ['OS=="win"', { 'msvs_settings': { 'VCLinkerTool': { 'SubSystem': '2', # Set /SUBSYSTEM:WINDOWS }, }, 'dependencies': [ '../sandbox/sandbox.gyp:sandbox', ], }], ['chromeos==1', { 'dependencies': [ '../device/bluetooth/bluetooth.gyp:device_bluetooth', ], }], ], }, ], 'conditions': [ ['test_isolation_mode != "noop"', { 'targets': [ { 'target_name': 'ash_unittests_run', 'type': 'none', 'dependencies': [ 'ash_unittests', ], 'includes': [ '../build/isolate.gypi', ], 'sources': [ 'ash_unittests.isolate', ], 'conditions': [ ['use_x11==1', { 'dependencies': [ '../tools/xdisplaycheck/xdisplaycheck.gyp:xdisplaycheck', ], } ], ], }, ], }], ], }
{'variables': {'chromium_code': 1, 'ash_sources': ['accelerators/accelerator_commands.cc', 'accelerators/accelerator_commands.h', 'accelerators/accelerator_controller.cc', 'accelerators/accelerator_controller.h', 'accelerators/accelerator_delegate.cc', 'accelerators/accelerator_delegate.h', 'accelerators/accelerator_table.cc', 'accelerators/accelerator_table.h', 'accelerators/debug_commands.cc', 'accelerators/debug_commands.h', 'accelerators/exit_warning_handler.cc', 'accelerators/exit_warning_handler.h', 'accelerators/focus_manager_factory.cc', 'accelerators/focus_manager_factory.h', 'accelerators/key_hold_detector.cc', 'accelerators/key_hold_detector.h', 'accelerators/magnifier_key_scroller.cc', 'accelerators/magnifier_key_scroller.h', 'accelerators/spoken_feedback_toggler.cc', 'accelerators/spoken_feedback_toggler.h', 'app_list/app_list_presenter_delegate.cc', 'app_list/app_list_presenter_delegate.h', 'app_list/app_list_presenter_delegate_factory.cc', 'app_list/app_list_presenter_delegate_factory.h', 'ash_export.h', 'ash_touch_exploration_manager_chromeos.cc', 'ash_touch_exploration_manager_chromeos.h', 'audio/sounds.cc', 'audio/sounds.h', 'aura/aura_layout_manager_adapter.cc', 'aura/aura_layout_manager_adapter.h', 'aura/wm_lookup_aura.cc', 'aura/wm_lookup_aura.h', 'aura/wm_root_window_controller_aura.cc', 'aura/wm_root_window_controller_aura.h', 'aura/wm_shelf_aura.cc', 'aura/wm_shelf_aura.h', 'aura/wm_shell_aura.cc', 'aura/wm_shell_aura.h', 'aura/wm_window_aura.cc', 'aura/wm_window_aura.h', 'autoclick/autoclick_controller.cc', 'autoclick/autoclick_controller.h', 'cancel_mode.cc', 'cancel_mode.h', 'common/accessibility_delegate.h', 'common/accessibility_types.h', 'common/ash_constants.cc', 'common/ash_constants.h', 'common/ash_layout_constants.cc', 'common/ash_layout_constants.h', 'common/ash_switches.cc', 'common/ash_switches.h', 'common/cast_config_delegate.cc', 'common/cast_config_delegate.h', 'common/default_accessibility_delegate.cc', 'common/default_accessibility_delegate.h', 'common/display/display_info.cc', 'common/display/display_info.h', 'common/focus_cycler.cc', 'common/focus_cycler.h', 'common/keyboard/keyboard_ui.cc', 'common/keyboard/keyboard_ui.h', 'common/keyboard/keyboard_ui_observer.h', 'common/login_status.h', 'common/material_design/material_design_controller.cc', 'common/material_design/material_design_controller.h', 'common/metrics/user_metrics_action.h', 'common/root_window_controller_common.cc', 'common/root_window_controller_common.h', 'common/session/session_state_delegate.cc', 'common/session/session_state_delegate.h', 'common/session/session_state_observer.cc', 'common/session/session_state_observer.h', 'common/session/session_types.h', 'common/shelf/shelf_alignment_menu.cc', 'common/shelf/shelf_alignment_menu.h', 'common/shelf/shelf_constants.cc', 'common/shelf/shelf_constants.h', 'common/shelf/shelf_item_delegate.h', 'common/shelf/shelf_item_delegate_manager.cc', 'common/shelf/shelf_item_delegate_manager.h', 'common/shelf/shelf_item_types.cc', 'common/shelf/shelf_item_types.h', 'common/shelf/shelf_menu_model.h', 'common/shelf/shelf_model.cc', 'common/shelf/shelf_model.h', 'common/shelf/shelf_model_observer.h', 'common/shelf/shelf_types.h', 'common/shelf/wm_shelf.h', 'common/shelf/wm_shelf_observer.h', 'common/shelf/wm_shelf_util.cc', 'common/shelf/wm_shelf_util.h', 'common/shell_window_ids.cc', 'common/shell_window_ids.h', 'common/system/accessibility_observer.h', 'common/system/audio/audio_observer.h', 'common/system/audio/tray_audio.cc', 'common/system/audio/tray_audio.h', 'common/system/audio/tray_audio_delegate.h', 'common/system/audio/volume_view.cc', 'common/system/audio/volume_view.h', 'common/system/cast/tray_cast.cc', 'common/system/cast/tray_cast.h', 'common/system/chromeos/audio/audio_detailed_view.cc', 'common/system/chromeos/audio/audio_detailed_view.h', 'common/system/chromeos/audio/tray_audio_chromeos.cc', 'common/system/chromeos/audio/tray_audio_chromeos.h', 'common/system/chromeos/audio/tray_audio_delegate_chromeos.cc', 'common/system/chromeos/audio/tray_audio_delegate_chromeos.h', 'common/system/chromeos/bluetooth/bluetooth_observer.h', 'common/system/chromeos/devicetype_utils.cc', 'common/system/chromeos/devicetype_utils.h', 'common/system/chromeos/enterprise/enterprise_domain_observer.h', 'common/system/chromeos/media_security/media_capture_observer.h', 'common/system/chromeos/network/network_detailed_view.h', 'common/system/chromeos/network/network_observer.h', 'common/system/chromeos/network/network_portal_detector_observer.h', 'common/system/chromeos/network/network_state_list_detailed_view.cc', 'common/system/chromeos/network/network_state_list_detailed_view.h', 'common/system/chromeos/network/tray_network.cc', 'common/system/chromeos/network/tray_network.h', 'common/system/chromeos/network/tray_network_state_observer.cc', 'common/system/chromeos/network/tray_network_state_observer.h', 'common/system/chromeos/network/tray_sms.cc', 'common/system/chromeos/network/tray_sms.h', 'common/system/chromeos/network/tray_vpn.cc', 'common/system/chromeos/network/tray_vpn.h', 'common/system/chromeos/network/vpn_delegate.cc', 'common/system/chromeos/network/vpn_delegate.h', 'common/system/chromeos/network/vpn_list_view.cc', 'common/system/chromeos/network/vpn_list_view.h', 'common/system/chromeos/power/battery_notification.cc', 'common/system/chromeos/power/battery_notification.h', 'common/system/chromeos/power/dual_role_notification.cc', 'common/system/chromeos/power/dual_role_notification.h', 'common/system/chromeos/power/power_status.cc', 'common/system/chromeos/power/power_status.h', 'common/system/chromeos/power/power_status_view.cc', 'common/system/chromeos/power/power_status_view.h', 'common/system/chromeos/power/tray_power.cc', 'common/system/chromeos/power/tray_power.h', 'common/system/chromeos/screen_security/screen_capture_observer.h', 'common/system/chromeos/screen_security/screen_capture_tray_item.cc', 'common/system/chromeos/screen_security/screen_capture_tray_item.h', 'common/system/chromeos/screen_security/screen_share_observer.h', 'common/system/chromeos/screen_security/screen_share_tray_item.cc', 'common/system/chromeos/screen_security/screen_share_tray_item.h', 'common/system/chromeos/screen_security/screen_tray_item.cc', 'common/system/chromeos/screen_security/screen_tray_item.h', 'common/system/chromeos/session/last_window_closed_observer.h', 'common/system/chromeos/session/logout_button_observer.h', 'common/system/chromeos/session/logout_button_tray.cc', 'common/system/chromeos/session/logout_button_tray.h', 'common/system/chromeos/session/logout_confirmation_controller.cc', 'common/system/chromeos/session/logout_confirmation_controller.h', 'common/system/chromeos/session/logout_confirmation_dialog.cc', 'common/system/chromeos/session/logout_confirmation_dialog.h', 'common/system/chromeos/session/session_length_limit_observer.h', 'common/system/chromeos/session/tray_session_length_limit.cc', 'common/system/chromeos/session/tray_session_length_limit.h', 'common/system/chromeos/settings/tray_settings.cc', 'common/system/chromeos/settings/tray_settings.h', 'common/system/chromeos/shutdown_policy_observer.h', 'common/system/chromeos/system_clock_observer.cc', 'common/system/chromeos/system_clock_observer.h', 'common/system/chromeos/tray_tracing.cc', 'common/system/chromeos/tray_tracing.h', 'common/system/chromeos/virtual_keyboard/virtual_keyboard_observer.h', 'common/system/chromeos/virtual_keyboard/virtual_keyboard_tray.cc', 'common/system/chromeos/virtual_keyboard/virtual_keyboard_tray.h', 'common/system/date/clock_observer.h', 'common/system/date/date_default_view.cc', 'common/system/date/date_default_view.h', 'common/system/date/date_view.cc', 'common/system/date/date_view.h', 'common/system/date/tray_date.cc', 'common/system/date/tray_date.h', 'common/system/ime/ime_observer.h', 'common/system/ime/tray_ime_chromeos.cc', 'common/system/ime/tray_ime_chromeos.h', 'common/system/locale/locale_notification_controller.cc', 'common/system/locale/locale_notification_controller.h', 'common/system/locale/locale_observer.h', 'common/system/networking_config_delegate.cc', 'common/system/networking_config_delegate.h', 'common/system/status_area_widget_delegate.cc', 'common/system/status_area_widget_delegate.h', 'common/system/system_notifier.cc', 'common/system/system_notifier.h', 'common/system/tray/actionable_view.cc', 'common/system/tray/actionable_view.h', 'common/system/tray/default_system_tray_delegate.cc', 'common/system/tray/default_system_tray_delegate.h', 'common/system/tray/fixed_sized_image_view.cc', 'common/system/tray/fixed_sized_image_view.h', 'common/system/tray/fixed_sized_scroll_view.cc', 'common/system/tray/fixed_sized_scroll_view.h', 'common/system/tray/hover_highlight_view.cc', 'common/system/tray/hover_highlight_view.h', 'common/system/tray/label_tray_view.cc', 'common/system/tray/label_tray_view.h', 'common/system/tray/special_popup_row.cc', 'common/system/tray/special_popup_row.h', 'common/system/tray/system_tray_bubble.cc', 'common/system/tray/system_tray_bubble.h', 'common/system/tray/system_tray_delegate.cc', 'common/system/tray/system_tray_delegate.h', 'common/system/tray/system_tray_item.cc', 'common/system/tray/system_tray_item.h', 'common/system/tray/system_tray_notifier.cc', 'common/system/tray/system_tray_notifier.h', 'common/system/tray/throbber_view.cc', 'common/system/tray/throbber_view.h', 'common/system/tray/tray_background_view.cc', 'common/system/tray/tray_background_view.h', 'common/system/tray/tray_bar_button_with_title.cc', 'common/system/tray/tray_bar_button_with_title.h', 'common/system/tray/tray_bubble_wrapper.cc', 'common/system/tray/tray_bubble_wrapper.h', 'common/system/tray/tray_constants.cc', 'common/system/tray/tray_constants.h', 'common/system/tray/tray_details_view.cc', 'common/system/tray/tray_details_view.h', 'common/system/tray/tray_event_filter.cc', 'common/system/tray/tray_event_filter.h', 'common/system/tray/tray_image_item.cc', 'common/system/tray/tray_image_item.h', 'common/system/tray/tray_item_more.cc', 'common/system/tray/tray_item_more.h', 'common/system/tray/tray_item_view.cc', 'common/system/tray/tray_item_view.h', 'common/system/tray/tray_notification_view.cc', 'common/system/tray/tray_notification_view.h', 'common/system/tray/tray_popup_header_button.cc', 'common/system/tray/tray_popup_header_button.h', 'common/system/tray/tray_popup_item_container.cc', 'common/system/tray/tray_popup_item_container.h', 'common/system/tray/tray_popup_label_button.cc', 'common/system/tray/tray_popup_label_button.h', 'common/system/tray/tray_popup_label_button_border.cc', 'common/system/tray/tray_popup_label_button_border.h', 'common/system/tray/tray_utils.cc', 'common/system/tray/tray_utils.h', 'common/system/tray/view_click_listener.h', 'common/system/tray_accessibility.cc', 'common/system/tray_accessibility.h', 'common/system/update/tray_update.cc', 'common/system/update/tray_update.h', 'common/system/update/update_observer.h', 'common/system/user/button_from_view.cc', 'common/system/user/button_from_view.h', 'common/system/user/login_status.cc', 'common/system/user/login_status.h', 'common/system/user/rounded_image_view.cc', 'common/system/user/rounded_image_view.h', 'common/system/user/tray_user_separator.cc', 'common/system/user/tray_user_separator.h', 'common/system/user/user_observer.h', 'common/system/volume_control_delegate.h', 'common/system/web_notification/ash_popup_alignment_delegate.cc', 'common/system/web_notification/ash_popup_alignment_delegate.h', 'common/system/web_notification/web_notification_tray.cc', 'common/system/web_notification/web_notification_tray.h', 'common/wm/always_on_top_controller.cc', 'common/wm/always_on_top_controller.h', 'common/wm/background_animator.cc', 'common/wm/background_animator.h', 'common/wm/container_finder.cc', 'common/wm/container_finder.h', 'common/wm/default_state.cc', 'common/wm/default_state.h', 'common/wm/default_window_resizer.cc', 'common/wm/default_window_resizer.h', 'common/wm/dock/docked_window_layout_manager.cc', 'common/wm/dock/docked_window_layout_manager.h', 'common/wm/dock/docked_window_layout_manager_observer.h', 'common/wm/dock/docked_window_resizer.cc', 'common/wm/dock/docked_window_resizer.h', 'common/wm/drag_details.cc', 'common/wm/drag_details.h', 'common/wm/focus_rules.cc', 'common/wm/focus_rules.h', 'common/wm/fullscreen_window_finder.cc', 'common/wm/fullscreen_window_finder.h', 'common/wm/maximize_mode/maximize_mode_event_handler.cc', 'common/wm/maximize_mode/maximize_mode_event_handler.h', 'common/wm/maximize_mode/maximize_mode_window_manager.cc', 'common/wm/maximize_mode/maximize_mode_window_manager.h', 'common/wm/maximize_mode/maximize_mode_window_state.cc', 'common/wm/maximize_mode/maximize_mode_window_state.h', 'common/wm/maximize_mode/workspace_backdrop_delegate.cc', 'common/wm/maximize_mode/workspace_backdrop_delegate.h', 'common/wm/mru_window_tracker.cc', 'common/wm/mru_window_tracker.h', 'common/wm/overview/cleanup_animation_observer.cc', 'common/wm/overview/cleanup_animation_observer.h', 'common/wm/overview/overview_animation_type.h', 'common/wm/overview/scoped_overview_animation_settings.h', 'common/wm/overview/scoped_overview_animation_settings_factory.cc', 'common/wm/overview/scoped_overview_animation_settings_factory.h', 'common/wm/overview/scoped_transform_overview_window.cc', 'common/wm/overview/scoped_transform_overview_window.h', 'common/wm/overview/window_grid.cc', 'common/wm/overview/window_grid.h', 'common/wm/overview/window_selector.cc', 'common/wm/overview/window_selector.h', 'common/wm/overview/window_selector_controller.cc', 'common/wm/overview/window_selector_controller.h', 'common/wm/overview/window_selector_item.cc', 'common/wm/overview/window_selector_item.h', 'common/wm/panels/panel_layout_manager.cc', 'common/wm/panels/panel_layout_manager.h', 'common/wm/panels/panel_window_resizer.cc', 'common/wm/panels/panel_window_resizer.h', 'common/wm/root_window_finder.cc', 'common/wm/root_window_finder.h', 'common/wm/root_window_layout_manager.cc', 'common/wm/root_window_layout_manager.h', 'common/wm/switchable_windows.cc', 'common/wm/switchable_windows.h', 'common/wm/window_animation_types.h', 'common/wm/window_parenting_utils.cc', 'common/wm/window_parenting_utils.h', 'common/wm/window_positioner.cc', 'common/wm/window_positioner.h', 'common/wm/window_positioning_utils.cc', 'common/wm/window_positioning_utils.h', 'common/wm/window_resizer.cc', 'common/wm/window_resizer.h', 'common/wm/window_state.cc', 'common/wm/window_state.h', 'common/wm/window_state_delegate.cc', 'common/wm/window_state_delegate.h', 'common/wm/window_state_observer.h', 'common/wm/window_state_util.cc', 'common/wm/window_state_util.h', 'common/wm/wm_event.cc', 'common/wm/wm_event.h', 'common/wm/wm_screen_util.cc', 'common/wm/wm_screen_util.h', 'common/wm/wm_snap_to_pixel_layout_manager.cc', 'common/wm/wm_snap_to_pixel_layout_manager.h', 'common/wm/wm_toplevel_window_event_handler.cc', 'common/wm/wm_toplevel_window_event_handler.h', 'common/wm/wm_types.cc', 'common/wm/wm_types.h', 'common/wm/workspace/magnetism_matcher.cc', 'common/wm/workspace/magnetism_matcher.h', 'common/wm/workspace/multi_window_resize_controller.cc', 'common/wm/workspace/multi_window_resize_controller.h', 'common/wm/workspace/phantom_window_controller.cc', 'common/wm/workspace/phantom_window_controller.h', 'common/wm/workspace/two_step_edge_cycler.cc', 'common/wm/workspace/two_step_edge_cycler.h', 'common/wm/workspace/workspace_layout_manager.cc', 'common/wm/workspace/workspace_layout_manager.h', 'common/wm/workspace/workspace_layout_manager_backdrop_delegate.h', 'common/wm/workspace/workspace_layout_manager_delegate.h', 'common/wm/workspace/workspace_types.h', 'common/wm/workspace/workspace_window_resizer.cc', 'common/wm/workspace/workspace_window_resizer.h', 'common/wm_activation_observer.h', 'common/wm_display_observer.h', 'common/wm_layout_manager.h', 'common/wm_lookup.cc', 'common/wm_lookup.h', 'common/wm_root_window_controller.h', 'common/wm_root_window_controller_observer.h', 'common/wm_shell.cc', 'common/wm_shell.h', 'common/wm_window.h', 'common/wm_window_observer.h', 'common/wm_window_property.h', 'common/wm_window_tracker.h', 'debug.cc', 'debug.h', 'default_user_wallpaper_delegate.cc', 'default_user_wallpaper_delegate.h', 'desktop_background/desktop_background_controller.cc', 'desktop_background/desktop_background_controller.h', 'desktop_background/desktop_background_controller_observer.h', 'desktop_background/desktop_background_view.cc', 'desktop_background/desktop_background_view.h', 'desktop_background/desktop_background_widget_controller.cc', 'desktop_background/desktop_background_widget_controller.h', 'desktop_background/user_wallpaper_delegate.h', 'display/cursor_window_controller.cc', 'display/cursor_window_controller.h', 'display/display_animator.h', 'display/display_animator_chromeos.cc', 'display/display_animator_chromeos.h', 'display/display_change_observer_chromeos.cc', 'display/display_change_observer_chromeos.h', 'display/display_color_manager_chromeos.cc', 'display/display_color_manager_chromeos.h', 'display/display_configuration_controller.cc', 'display/display_configuration_controller.h', 'display/display_error_observer_chromeos.cc', 'display/display_error_observer_chromeos.h', 'display/display_layout_store.cc', 'display/display_layout_store.h', 'display/display_manager.cc', 'display/display_manager.h', 'display/display_pref_util.h', 'display/display_util.cc', 'display/display_util.h', 'display/event_transformation_handler.cc', 'display/event_transformation_handler.h', 'display/extended_mouse_warp_controller.cc', 'display/extended_mouse_warp_controller.h', 'display/json_converter.cc', 'display/json_converter.h', 'display/mirror_window_controller.cc', 'display/mirror_window_controller.h', 'display/mouse_cursor_event_filter.cc', 'display/mouse_cursor_event_filter.h', 'display/mouse_warp_controller.h', 'display/null_mouse_warp_controller.cc', 'display/null_mouse_warp_controller.h', 'display/projecting_observer_chromeos.cc', 'display/projecting_observer_chromeos.h', 'display/resolution_notification_controller.cc', 'display/resolution_notification_controller.h', 'display/root_window_transformers.cc', 'display/root_window_transformers.h', 'display/screen_ash.cc', 'display/screen_ash.h', 'display/screen_orientation_controller_chromeos.cc', 'display/screen_orientation_controller_chromeos.h', 'display/screen_position_controller.cc', 'display/screen_position_controller.h', 'display/shared_display_edge_indicator.cc', 'display/shared_display_edge_indicator.h', 'display/unified_mouse_warp_controller.cc', 'display/unified_mouse_warp_controller.h', 'display/window_tree_host_manager.cc', 'display/window_tree_host_manager.h', 'drag_drop/drag_drop_controller.cc', 'drag_drop/drag_drop_controller.h', 'drag_drop/drag_drop_tracker.cc', 'drag_drop/drag_drop_tracker.h', 'drag_drop/drag_image_view.cc', 'drag_drop/drag_image_view.h', 'first_run/desktop_cleaner.cc', 'first_run/desktop_cleaner.h', 'first_run/first_run_helper.cc', 'first_run/first_run_helper.h', 'first_run/first_run_helper_impl.cc', 'first_run/first_run_helper_impl.h', 'frame/caption_buttons/caption_button_types.h', 'frame/caption_buttons/frame_caption_button.cc', 'frame/caption_buttons/frame_caption_button.h', 'frame/caption_buttons/frame_caption_button_container_view.cc', 'frame/caption_buttons/frame_caption_button_container_view.h', 'frame/caption_buttons/frame_size_button.cc', 'frame/caption_buttons/frame_size_button.h', 'frame/caption_buttons/frame_size_button_delegate.h', 'frame/custom_frame_view_ash.cc', 'frame/custom_frame_view_ash.h', 'frame/default_header_painter.cc', 'frame/default_header_painter.h', 'frame/frame_border_hit_test_controller.cc', 'frame/frame_border_hit_test_controller.h', 'frame/header_painter.h', 'frame/header_painter_util.cc', 'frame/header_painter_util.h', 'gpu_support.h', 'gpu_support_stub.cc', 'gpu_support_stub.h', 'high_contrast/high_contrast_controller.cc', 'high_contrast/high_contrast_controller.h', 'host/ash_window_tree_host.cc', 'host/ash_window_tree_host.h', 'host/ash_window_tree_host_init_params.cc', 'host/ash_window_tree_host_init_params.h', 'host/ash_window_tree_host_platform.cc', 'host/ash_window_tree_host_platform.h', 'host/ash_window_tree_host_unified.cc', 'host/ash_window_tree_host_unified.h', 'host/ash_window_tree_host_win.cc', 'host/ash_window_tree_host_win.h', 'host/ash_window_tree_host_x11.cc', 'host/ash_window_tree_host_x11.h', 'host/root_window_transformer.h', 'host/transformer_helper.cc', 'host/transformer_helper.h', 'ime/input_method_event_handler.cc', 'ime/input_method_event_handler.h', 'keyboard_uma_event_filter.cc', 'keyboard_uma_event_filter.h', 'link_handler_model.cc', 'link_handler_model.h', 'link_handler_model_factory.cc', 'link_handler_model_factory.h', 'magnifier/magnification_controller.cc', 'magnifier/magnification_controller.h', 'magnifier/partial_magnification_controller.cc', 'magnifier/partial_magnification_controller.h', 'metrics/desktop_task_switch_metric_recorder.cc', 'metrics/desktop_task_switch_metric_recorder.h', 'metrics/task_switch_metrics_recorder.cc', 'metrics/task_switch_metrics_recorder.h', 'metrics/task_switch_time_tracker.cc', 'metrics/task_switch_time_tracker.h', 'metrics/user_metrics_recorder.cc', 'metrics/user_metrics_recorder.h', 'multi_profile_uma.cc', 'multi_profile_uma.h', 'pointer_watcher_delegate.h', 'pointer_watcher_delegate_aura.cc', 'pointer_watcher_delegate_aura.h', 'popup_message.cc', 'popup_message.h', 'root_window_controller.cc', 'root_window_controller.h', 'root_window_settings.cc', 'root_window_settings.h', 'rotator/screen_rotation_animation.cc', 'rotator/screen_rotation_animation.h', 'rotator/screen_rotation_animator.cc', 'rotator/screen_rotation_animator.h', 'rotator/window_rotation.cc', 'rotator/window_rotation.h', 'scoped_target_root_window.cc', 'scoped_target_root_window.h', 'screen_util.cc', 'screen_util.h', 'screenshot_delegate.h', 'shelf/app_list_button.cc', 'shelf/app_list_button.h', 'shelf/app_list_shelf_item_delegate.cc', 'shelf/app_list_shelf_item_delegate.h', 'shelf/ink_drop_button_listener.h', 'shelf/overflow_bubble.cc', 'shelf/overflow_bubble.h', 'shelf/overflow_bubble_view.cc', 'shelf/overflow_bubble_view.h', 'shelf/overflow_button.cc', 'shelf/overflow_button.h', 'shelf/scoped_observer_with_duplicated_sources.h', 'shelf/shelf.cc', 'shelf/shelf.h', 'shelf/shelf_bezel_event_filter.cc', 'shelf/shelf_bezel_event_filter.h', 'shelf/shelf_button.cc', 'shelf/shelf_button.h', 'shelf/shelf_button_pressed_metric_tracker.cc', 'shelf/shelf_button_pressed_metric_tracker.h', 'shelf/shelf_delegate.h', 'shelf/shelf_icon_observer.h', 'shelf/shelf_layout_manager.cc', 'shelf/shelf_layout_manager.h', 'shelf/shelf_layout_manager_observer.h', 'shelf/shelf_locking_manager.cc', 'shelf/shelf_locking_manager.h', 'shelf/shelf_navigator.cc', 'shelf/shelf_navigator.h', 'shelf/shelf_tooltip_manager.cc', 'shelf/shelf_tooltip_manager.h', 'shelf/shelf_util.cc', 'shelf/shelf_util.h', 'shelf/shelf_view.cc', 'shelf/shelf_view.h', 'shelf/shelf_widget.cc', 'shelf/shelf_widget.h', 'shelf/shelf_window_watcher.cc', 'shelf/shelf_window_watcher.h', 'shelf/shelf_window_watcher_item_delegate.cc', 'shelf/shelf_window_watcher_item_delegate.h', 'shell.cc', 'shell.h', 'shell_delegate.h', 'shell_factory.h', 'shell_init_params.cc', 'shell_init_params.h', 'snap_to_pixel_layout_manager.cc', 'snap_to_pixel_layout_manager.h', 'sticky_keys/sticky_keys_controller.cc', 'sticky_keys/sticky_keys_controller.h', 'sticky_keys/sticky_keys_overlay.cc', 'sticky_keys/sticky_keys_overlay.h', 'sticky_keys/sticky_keys_state.h', 'system/brightness_control_delegate.h', 'system/chromeos/bluetooth/bluetooth_notification_controller.cc', 'system/chromeos/bluetooth/bluetooth_notification_controller.h', 'system/chromeos/bluetooth/tray_bluetooth.cc', 'system/chromeos/bluetooth/tray_bluetooth.h', 'system/chromeos/brightness/brightness_controller_chromeos.cc', 'system/chromeos/brightness/brightness_controller_chromeos.h', 'system/chromeos/brightness/tray_brightness.cc', 'system/chromeos/brightness/tray_brightness.h', 'system/chromeos/enterprise/tray_enterprise.cc', 'system/chromeos/enterprise/tray_enterprise.h', 'system/chromeos/keyboard_brightness_controller.cc', 'system/chromeos/keyboard_brightness_controller.h', 'system/chromeos/media_security/multi_profile_media_tray_item.cc', 'system/chromeos/media_security/multi_profile_media_tray_item.h', 'system/chromeos/multi_user/user_switch_util.cc', 'system/chromeos/multi_user/user_switch_util.h', 'system/chromeos/power/power_event_observer.cc', 'system/chromeos/power/power_event_observer.h', 'system/chromeos/power/video_activity_notifier.cc', 'system/chromeos/power/video_activity_notifier.h', 'system/chromeos/rotation/tray_rotation_lock.cc', 'system/chromeos/rotation/tray_rotation_lock.h', 'system/chromeos/supervised/custodian_info_tray_observer.h', 'system/chromeos/supervised/tray_supervised_user.cc', 'system/chromeos/supervised/tray_supervised_user.h', 'system/chromeos/tray_caps_lock.cc', 'system/chromeos/tray_caps_lock.h', 'system/chromeos/tray_display.cc', 'system/chromeos/tray_display.h', 'system/keyboard_brightness/keyboard_brightness_control_delegate.h', 'system/overview/overview_button_tray.cc', 'system/overview/overview_button_tray.h', 'system/status_area_widget.cc', 'system/status_area_widget.h', 'system/toast/toast_data.cc', 'system/toast/toast_data.h', 'system/toast/toast_manager.cc', 'system/toast/toast_manager.h', 'system/toast/toast_overlay.cc', 'system/toast/toast_overlay.h', 'system/tray/system_tray.cc', 'system/tray/system_tray.h', 'system/user/tray_user.cc', 'system/user/tray_user.h', 'system/user/user_card_view.cc', 'system/user/user_card_view.h', 'system/user/user_view.cc', 'system/user/user_view.h', 'touch/touch_hud_debug.cc', 'touch/touch_hud_debug.h', 'touch/touch_hud_projection.cc', 'touch/touch_hud_projection.h', 'touch/touch_observer_hud.cc', 'touch/touch_observer_hud.h', 'touch/touch_transformer_controller.cc', 'touch/touch_transformer_controller.h', 'touch/touch_uma.cc', 'touch/touch_uma.h', 'touch/touchscreen_util.cc', 'touch/touchscreen_util.h', 'utility/screenshot_controller.cc', 'utility/screenshot_controller.h', 'virtual_keyboard_controller.cc', 'virtual_keyboard_controller.h', 'wm/ash_focus_rules.cc', 'wm/ash_focus_rules.h', 'wm/ash_native_cursor_manager.cc', 'wm/ash_native_cursor_manager.h', 'wm/boot_splash_screen_chromeos.cc', 'wm/boot_splash_screen_chromeos.h', 'wm/cursor_manager_chromeos.cc', 'wm/cursor_manager_chromeos.h', 'wm/dim_window.cc', 'wm/dim_window.h', 'wm/drag_window_controller.cc', 'wm/drag_window_controller.h', 'wm/drag_window_resizer.cc', 'wm/drag_window_resizer.h', 'wm/event_client_impl.cc', 'wm/event_client_impl.h', 'wm/gestures/overview_gesture_handler.cc', 'wm/gestures/overview_gesture_handler.h', 'wm/gestures/shelf_gesture_handler.cc', 'wm/gestures/shelf_gesture_handler.h', 'wm/immersive_fullscreen_controller.cc', 'wm/immersive_fullscreen_controller.h', 'wm/immersive_revealed_lock.cc', 'wm/immersive_revealed_lock.h', 'wm/lock_layout_manager.cc', 'wm/lock_layout_manager.h', 'wm/lock_state_controller.cc', 'wm/lock_state_controller.h', 'wm/lock_state_observer.h', 'wm/lock_window_state.cc', 'wm/lock_window_state.h', 'wm/maximize_mode/maximize_mode_controller.cc', 'wm/maximize_mode/maximize_mode_controller.h', 'wm/maximize_mode/maximize_mode_event_handler_aura.cc', 'wm/maximize_mode/maximize_mode_event_handler_aura.h', 'wm/maximize_mode/scoped_disable_internal_mouse_and_keyboard.h', 'wm/maximize_mode/scoped_disable_internal_mouse_and_keyboard_ozone.cc', 'wm/maximize_mode/scoped_disable_internal_mouse_and_keyboard_ozone.h', 'wm/maximize_mode/scoped_disable_internal_mouse_and_keyboard_x11.cc', 'wm/maximize_mode/scoped_disable_internal_mouse_and_keyboard_x11.h', 'wm/overlay_event_filter.cc', 'wm/overlay_event_filter.h', 'wm/overview/scoped_overview_animation_settings_aura.cc', 'wm/overview/scoped_overview_animation_settings_aura.h', 'wm/overview/scoped_overview_animation_settings_factory_aura.cc', 'wm/overview/scoped_overview_animation_settings_factory_aura.h', 'wm/panels/attached_panel_window_targeter.cc', 'wm/panels/attached_panel_window_targeter.h', 'wm/panels/panel_frame_view.cc', 'wm/panels/panel_frame_view.h', 'wm/panels/panel_window_event_handler.cc', 'wm/panels/panel_window_event_handler.h', 'wm/power_button_controller.cc', 'wm/power_button_controller.h', 'wm/resize_handle_window_targeter.cc', 'wm/resize_handle_window_targeter.h', 'wm/resize_shadow.cc', 'wm/resize_shadow.h', 'wm/resize_shadow_controller.cc', 'wm/resize_shadow_controller.h', 'wm/screen_dimmer.cc', 'wm/screen_dimmer.h', 'wm/screen_pinning_controller.cc', 'wm/screen_pinning_controller.h', 'wm/session_state_animator.cc', 'wm/session_state_animator.h', 'wm/session_state_animator_impl.cc', 'wm/session_state_animator_impl.h', 'wm/stacking_controller.cc', 'wm/stacking_controller.h', 'wm/status_area_layout_manager.cc', 'wm/status_area_layout_manager.h', 'wm/system_background_controller.cc', 'wm/system_background_controller.h', 'wm/system_gesture_event_filter.cc', 'wm/system_gesture_event_filter.h', 'wm/system_modal_container_event_filter.cc', 'wm/system_modal_container_event_filter.h', 'wm/system_modal_container_event_filter_delegate.h', 'wm/system_modal_container_layout_manager.cc', 'wm/system_modal_container_layout_manager.h', 'wm/toplevel_window_event_handler.cc', 'wm/toplevel_window_event_handler.h', 'wm/video_detector.cc', 'wm/video_detector.h', 'wm/window_animations.cc', 'wm/window_animations.h', 'wm/window_cycle_controller.cc', 'wm/window_cycle_controller.h', 'wm/window_cycle_list.cc', 'wm/window_cycle_list.h', 'wm/window_properties.cc', 'wm/window_properties.h', 'wm/window_state_aura.cc', 'wm/window_state_aura.h', 'wm/window_util.cc', 'wm/window_util.h', 'wm/workspace/workspace_event_handler.cc', 'wm/workspace/workspace_event_handler.h', 'wm/workspace_controller.cc', 'wm/workspace_controller.h'], 'ash_with_content_sources': ['content/ash_with_content_export.h', 'content/gpu_support_impl.cc', 'content/gpu_support_impl.h', 'content/keyboard_overlay/keyboard_overlay_delegate.cc', 'content/keyboard_overlay/keyboard_overlay_delegate.h', 'content/keyboard_overlay/keyboard_overlay_view.cc', 'content/keyboard_overlay/keyboard_overlay_view.h', 'content/screen_orientation_delegate_chromeos.cc', 'content/screen_orientation_delegate_chromeos.h', 'content/shell_content_state.cc', 'content/shell_content_state.h'], 'ash_test_support_sources': ['desktop_background/desktop_background_controller_test_api.cc', 'desktop_background/desktop_background_controller_test_api.h', 'shell/toplevel_window.cc', 'shell/toplevel_window.h', 'test/ash_md_test_base.cc', 'test/ash_md_test_base.h', 'test/ash_test_base.cc', 'test/ash_test_base.h', 'test/ash_test_helper.cc', 'test/ash_test_helper.h', 'test/ash_test_views_delegate.cc', 'test/ash_test_views_delegate.h', 'test/child_modal_window.cc', 'test/child_modal_window.h', 'test/cursor_manager_test_api.cc', 'test/cursor_manager_test_api.h', 'test/display_manager_test_api.cc', 'test/display_manager_test_api.h', 'test/material_design_controller_test_api.cc', 'test/material_design_controller_test_api.h', 'test/mirror_window_test_api.cc', 'test/mirror_window_test_api.h', 'test/overflow_bubble_view_test_api.cc', 'test/overflow_bubble_view_test_api.h', 'test/shelf_button_pressed_metric_tracker_test_api.cc', 'test/shelf_button_pressed_metric_tracker_test_api.h', 'test/shelf_item_delegate_manager_test_api.cc', 'test/shelf_item_delegate_manager_test_api.h', 'test/shelf_test_api.h', 'test/shelf_view_test_api.cc', 'test/shelf_view_test_api.h', 'test/shell_test_api.cc', 'test/shell_test_api.h', 'test/status_area_widget_test_helper.cc', 'test/status_area_widget_test_helper.h', 'test/task_switch_time_tracker_test_api.cc', 'test/task_switch_time_tracker_test_api.h', 'test/test_activation_delegate.cc', 'test/test_activation_delegate.h', 'test/test_keyboard_ui.cc', 'test/test_keyboard_ui.h', 'test/test_lock_state_controller_delegate.cc', 'test/test_lock_state_controller_delegate.h', 'test/test_overlay_delegate.cc', 'test/test_overlay_delegate.h', 'test/test_screenshot_delegate.cc', 'test/test_screenshot_delegate.h', 'test/test_session_state_animator.cc', 'test/test_session_state_animator.h', 'test/test_session_state_delegate.cc', 'test/test_session_state_delegate.h', 'test/test_shelf_delegate.cc', 'test/test_shelf_delegate.h', 'test/test_shelf_item_delegate.cc', 'test/test_shelf_item_delegate.h', 'test/test_shell_delegate.cc', 'test/test_shell_delegate.h', 'test/test_suite.cc', 'test/test_suite.h', 'test/test_suite_init.h', 'test/test_suite_init.mm', 'test/test_system_tray_delegate.cc', 'test/test_system_tray_delegate.h', 'test/test_system_tray_item.cc', 'test/test_system_tray_item.h', 'test/test_user_wallpaper_delegate.cc', 'test/test_user_wallpaper_delegate.h', 'test/test_volume_control_delegate.cc', 'test/test_volume_control_delegate.h', 'test/tray_cast_test_api.cc', 'test/tray_cast_test_api.h', 'test/ui_controls_factory_ash.cc', 'test/ui_controls_factory_ash.h', 'test/user_metrics_recorder_test_api.cc', 'test/user_metrics_recorder_test_api.h', 'test/virtual_keyboard_test_helper.cc', 'test/virtual_keyboard_test_helper.h'], 'ash_test_support_with_content_sources': ['test/content/test_shell_content_state.cc', 'test/content/test_shell_content_state.h'], 'ash_shell_lib_sources': ['../ui/views/test/test_views_delegate_aura.cc', 'shell/app_list.cc', 'shell/bubble.cc', 'shell/context_menu.cc', 'shell/context_menu.h', 'shell/example_factory.h', 'shell/lock_view.cc', 'shell/panel_window.cc', 'shell/panel_window.h', 'shell/shelf_delegate_impl.cc', 'shell/shelf_delegate_impl.h', 'shell/shell_delegate_impl.cc', 'shell/shell_delegate_impl.h', 'shell/toplevel_window.cc', 'shell/toplevel_window.h', 'shell/widgets.cc', 'shell/window_type_launcher.cc', 'shell/window_type_launcher.h', 'shell/window_watcher.cc', 'shell/window_watcher.h', 'shell/window_watcher_shelf_item_delegate.cc', 'shell/window_watcher_shelf_item_delegate.h'], 'ash_shell_with_content_lib_sources': ['shell/content/client/shell_browser_main_parts.cc', 'shell/content/client/shell_browser_main_parts.h', 'shell/content/client/shell_content_browser_client.cc', 'shell/content/client/shell_content_browser_client.h', 'shell/content/client/shell_main_delegate.cc', 'shell/content/client/shell_main_delegate.h', 'shell/content/shell_content_state_impl.cc', 'shell/content/shell_content_state_impl.h'], 'ash_unittests_sources': ['accelerators/accelerator_commands_unittest.cc', 'accelerators/accelerator_controller_unittest.cc', 'accelerators/accelerator_filter_unittest.cc', 'accelerators/accelerator_table_unittest.cc', 'accelerators/magnifier_key_scroller_unittest.cc', 'accelerators/spoken_feedback_toggler_unittest.cc', 'app_list/app_list_presenter_delegate_unittest.cc', 'ash_touch_exploration_manager_chromeos_unittest.cc', 'autoclick/autoclick_unittest.cc', 'common/display/display_info_unittest.cc', 'common/material_design/material_design_controller_unittest.cc', 'common/shelf/shelf_model_unittest.cc', 'common/system/chromeos/power/power_status_unittest.cc', 'common/system/chromeos/power/power_status_view_unittest.cc', 'common/system/chromeos/power/tray_power_unittest.cc', 'common/system/chromeos/screen_security/screen_tray_item_unittest.cc', 'common/system/chromeos/session/logout_confirmation_controller_unittest.cc', 'common/system/chromeos/session/tray_session_length_limit_unittest.cc', 'common/system/date/date_view_unittest.cc', 'common/system/ime/tray_ime_chromeos_unittest.cc', 'common/system/tray/tray_details_view_unittest.cc', 'common/system/update/tray_update_unittest.cc', 'common/wm/overview/cleanup_animation_observer_unittest.cc', 'content/display/screen_orientation_controller_chromeos_unittest.cc', 'content/keyboard_overlay/keyboard_overlay_delegate_unittest.cc', 'content/keyboard_overlay/keyboard_overlay_view_unittest.cc', 'desktop_background/desktop_background_controller_unittest.cc', 'dip_unittest.cc', 'display/cursor_window_controller_unittest.cc', 'display/display_change_observer_chromeos_unittest.cc', 'display/display_color_manager_chromeos_unittest.cc', 'display/display_error_observer_chromeos_unittest.cc', 'display/display_manager_unittest.cc', 'display/display_util_unittest.cc', 'display/extended_mouse_warp_controller_unittest.cc', 'display/json_converter_unittest.cc', 'display/mirror_window_controller_unittest.cc', 'display/mouse_cursor_event_filter_unittest.cc', 'display/projecting_observer_chromeos_unittest.cc', 'display/resolution_notification_controller_unittest.cc', 'display/root_window_transformers_unittest.cc', 'display/screen_ash_unittest.cc', 'display/screen_position_controller_unittest.cc', 'display/unified_mouse_warp_controller_unittest.cc', 'display/window_tree_host_manager_unittest.cc', 'drag_drop/drag_drop_controller_unittest.cc', 'drag_drop/drag_drop_tracker_unittest.cc', 'extended_desktop_unittest.cc', 'focus_cycler_unittest.cc', 'frame/caption_buttons/frame_caption_button_container_view_unittest.cc', 'frame/caption_buttons/frame_size_button_unittest.cc', 'frame/custom_frame_view_ash_unittest.cc', 'frame/default_header_painter_unittest.cc', 'host/ash_window_tree_host_x11_unittest.cc', 'magnifier/magnification_controller_unittest.cc', 'metrics/desktop_task_switch_metric_recorder_unittest.cc', 'metrics/task_switch_metrics_recorder_unittest.cc', 'metrics/task_switch_time_tracker_unittest.cc', 'metrics/user_metrics_recorder_unittest.cc', 'popup_message_unittest.cc', 'root_window_controller_unittest.cc', 'rotator/screen_rotation_animation_unittest.cc', 'screen_util_unittest.cc', 'shelf/scoped_observer_with_duplicated_sources_unittest.cc', 'shelf/shelf_button_pressed_metric_tracker_unittest.cc', 'shelf/shelf_layout_manager_unittest.cc', 'shelf/shelf_locking_manager_unittest.cc', 'shelf/shelf_navigator_unittest.cc', 'shelf/shelf_tooltip_manager_unittest.cc', 'shelf/shelf_unittest.cc', 'shelf/shelf_view_unittest.cc', 'shelf/shelf_widget_unittest.cc', 'shelf/shelf_window_watcher_unittest.cc', 'shell_unittest.cc', 'sticky_keys/sticky_keys_overlay_unittest.cc', 'sticky_keys/sticky_keys_unittest.cc', 'system/chromeos/brightness/tray_brightness_unittest.cc', 'system/chromeos/media_security/multi_profile_media_tray_item_unittest.cc', 'system/chromeos/multi_user/user_switch_util_unittest.cc', 'system/chromeos/power/power_event_observer_unittest.cc', 'system/chromeos/rotation/tray_rotation_lock_unittest.cc', 'system/chromeos/supervised/tray_supervised_user_unittest.cc', 'system/chromeos/tray_display_unittest.cc', 'system/overview/overview_button_tray_unittest.cc', 'system/toast/toast_manager_unittest.cc', 'system/tray/system_tray_unittest.cc', 'system/user/tray_user_unittest.cc', 'system/web_notification/ash_popup_alignment_delegate_unittest.cc', 'system/web_notification/web_notification_tray_unittest.cc', 'test/ash_test_helper_unittest.cc', 'test/ash_unittests.cc', 'tooltips/tooltip_controller_unittest.cc', 'touch/touch_observer_hud_unittest.cc', 'touch/touch_transformer_controller_unittest.cc', 'touch/touchscreen_util_unittest.cc', 'utility/screenshot_controller_unittest.cc', 'virtual_keyboard_controller_unittest.cc', 'wm/always_on_top_controller_unittest.cc', 'wm/ash_focus_rules_unittest.cc', 'wm/ash_native_cursor_manager_unittest.cc', 'wm/dock/docked_window_layout_manager_unittest.cc', 'wm/dock/docked_window_resizer_unittest.cc', 'wm/drag_window_resizer_unittest.cc', 'wm/gestures/overview_gesture_handler_unittest.cc', 'wm/immersive_fullscreen_controller_unittest.cc', 'wm/lock_layout_manager_unittest.cc', 'wm/lock_state_controller_unittest.cc', 'wm/maximize_mode/accelerometer_test_data_literals.cc', 'wm/maximize_mode/maximize_mode_controller_unittest.cc', 'wm/maximize_mode/maximize_mode_window_manager_unittest.cc', 'wm/mru_window_tracker_unittest.cc', 'wm/overlay_event_filter_unittest.cc', 'wm/overview/window_selector_unittest.cc', 'wm/panels/panel_layout_manager_unittest.cc', 'wm/panels/panel_window_resizer_unittest.cc', 'wm/resize_shadow_and_cursor_unittest.cc', 'wm/root_window_layout_manager_unittest.cc', 'wm/screen_dimmer_unittest.cc', 'wm/screen_pinning_controller_unittest.cc', 'wm/session_state_animator_impl_unittest.cc', 'wm/stacking_controller_unittest.cc', 'wm/system_gesture_event_filter_unittest.cc', 'wm/system_modal_container_layout_manager_unittest.cc', 'wm/toplevel_window_event_handler_unittest.cc', 'wm/video_detector_unittest.cc', 'wm/window_animations_unittest.cc', 'wm/window_cycle_controller_unittest.cc', 'wm/window_manager_unittest.cc', 'wm/window_modality_controller_unittest.cc', 'wm/window_positioner_unittest.cc', 'wm/window_state_unittest.cc', 'wm/window_util_unittest.cc', 'wm/workspace/magnetism_matcher_unittest.cc', 'wm/workspace/multi_window_resize_controller_unittest.cc', 'wm/workspace/workspace_event_handler_test_helper.cc', 'wm/workspace/workspace_event_handler_test_helper.h', 'wm/workspace/workspace_event_handler_unittest.cc', 'wm/workspace/workspace_layout_manager_unittest.cc', 'wm/workspace/workspace_window_resizer_unittest.cc', 'wm/workspace_controller_test_helper.cc', 'wm/workspace_controller_test_helper.h', 'wm/workspace_controller_unittest.cc']}, 'targets': [{'target_name': 'ash', 'type': '<(component)', 'dependencies': ['../base/base.gyp:base', '../base/base.gyp:base_i18n', '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations', '../cc/cc.gyp:cc', '../components/components.gyp:device_event_log_component', '../components/components.gyp:onc_component', '../components/components.gyp:signin_core_account_id', '../components/components.gyp:user_manager', '../components/components.gyp:wallpaper', '../media/media.gyp:media', '../net/net.gyp:net', '../skia/skia.gyp:skia', '../third_party/icu/icu.gyp:icui18n', '../third_party/icu/icu.gyp:icuuc', '../ui/accessibility/accessibility.gyp:accessibility', '../ui/app_list/app_list.gyp:app_list', '../ui/app_list/presenter/app_list_presenter.gyp:app_list_presenter', '../ui/aura/aura.gyp:aura', '../ui/base/ime/ui_base_ime.gyp:ui_base_ime', '../ui/base/ui_base.gyp:ui_base', '../ui/base/ui_base.gyp:ui_data_pack', '../ui/compositor/compositor.gyp:compositor', '../ui/display/display.gyp:display', '../ui/events/devices/events_devices.gyp:events_devices', '../ui/events/events.gyp:events', '../ui/events/events.gyp:events_base', '../ui/events/events.gyp:gesture_detection', '../ui/events/platform/events_platform.gyp:events_platform', '../ui/gfx/gfx.gyp:gfx', '../ui/gfx/gfx.gyp:gfx_geometry', '../ui/gfx/gfx.gyp:gfx_range', '../ui/gfx/gfx.gyp:gfx_vector_icons', '../ui/keyboard/keyboard.gyp:keyboard', '../ui/message_center/message_center.gyp:message_center', '../ui/native_theme/native_theme.gyp:native_theme', '../ui/platform_window/stub/stub_window.gyp:stub_window', '../ui/resources/ui_resources.gyp:ui_resources', '../ui/strings/ui_strings.gyp:ui_strings', '../ui/views/views.gyp:views', '../ui/wm/wm.gyp:wm', '../url/url.gyp:url_lib', 'ash_resources.gyp:ash_resources', 'ash_strings.gyp:ash_strings'], 'defines': ['ASH_IMPLEMENTATION'], 'sources': ['<@(ash_sources)'], 'conditions': [['OS=="win"', {'sources!': ['sticky_keys/sticky_keys_controller.cc', 'sticky_keys/sticky_keys_controller.h'], 'msvs_disabled_warnings': [4267]}], ['use_x11==1', {'dependencies': ['../build/linux/system.gyp:x11', '../build/linux/system.gyp:xfixes', '../ui/base/x/ui_base_x.gyp:ui_base_x', '../ui/events/devices/x11/events_devices_x11.gyp:events_devices_x11', '../ui/gfx/x/gfx_x11.gyp:gfx_x11']}], ['use_ozone==1', {'dependencies': ['../ui/events/ozone/events_ozone.gyp:events_ozone', '../ui/ozone/ozone.gyp:ozone']}], ['chromeos==1', {'dependencies': ['../chromeos/chromeos.gyp:chromeos', '../chromeos/chromeos.gyp:power_manager_proto', '../components/components.gyp:quirks', '../device/bluetooth/bluetooth.gyp:device_bluetooth', '../third_party/qcms/qcms.gyp:qcms', '../ui/chromeos/ui_chromeos.gyp:ui_chromeos_resources', '../ui/chromeos/ui_chromeos.gyp:ui_chromeos_strings', '../ui/chromeos/ui_chromeos.gyp:ui_chromeos', '../ui/display/display.gyp:display_util']}, {'sources!': ['accelerators/key_hold_detector.cc', 'accelerators/key_hold_detector.h', 'accelerators/magnifier_key_scroller.cc', 'accelerators/magnifier_key_scroller.h', 'accelerators/spoken_feedback_toggler.cc', 'accelerators/spoken_feedback_toggler.h', 'display/resolution_notification_controller.cc', 'display/resolution_notification_controller.h', 'touch/touch_transformer_controller.cc', 'touch/touch_transformer_controller.h', 'touch/touchscreen_util.cc', 'touch/touchscreen_util.h', 'virtual_keyboard_controller.cc', 'virtual_keyboard_controller.h']}]]}, {'target_name': 'ash_with_content', 'type': '<(component)', 'dependencies': ['../base/base.gyp:base', '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations', '../content/content.gyp:content_browser', '../ipc/ipc.gyp:ipc', '../skia/skia.gyp:skia', '../ui/aura/aura.gyp:aura', '../ui/base/ui_base.gyp:ui_base', '../ui/compositor/compositor.gyp:compositor', '../ui/display/display.gyp:display', '../ui/events/events.gyp:events', '../ui/gfx/gfx.gyp:gfx', '../ui/gfx/gfx.gyp:gfx_geometry', '../ui/keyboard/keyboard.gyp:keyboard_with_content', '../ui/resources/ui_resources.gyp:ui_resources', '../ui/strings/ui_strings.gyp:ui_strings', '../ui/views/controls/webview/webview.gyp:webview', '../ui/views/views.gyp:views', '../ui/web_dialogs/web_dialogs.gyp:web_dialogs', '../url/url.gyp:url_lib', 'ash', 'ash_resources.gyp:ash_resources', 'ash_strings.gyp:ash_strings'], 'defines': ['ASH_WITH_CONTENT_IMPLEMENTATION'], 'sources': ['<@(ash_with_content_sources)']}, {'target_name': 'ash_test_support', 'type': 'static_library', 'dependencies': ['../skia/skia.gyp:skia', '../testing/gtest.gyp:gtest', '../ui/accessibility/accessibility.gyp:ax_gen', '../ui/app_list/app_list.gyp:app_list_test_support', '../ui/app_list/presenter/app_list_presenter.gyp:app_list_presenter', '../ui/events/devices/events_devices.gyp:events_devices', '../ui/views/views.gyp:views_test_support', 'ash', 'ash_resources.gyp:ash_resources', 'ash_test_support_with_content'], 'sources': ['<@(ash_test_support_sources)'], 'conditions': [['OS=="win"', {'dependencies': ['../ui/platform_window/win/win_window.gyp:win_window']}]]}, {'target_name': 'ash_test_support_with_content', 'type': 'static_library', 'dependencies': ['../skia/skia.gyp:skia', 'ash_with_content'], 'sources': ['<@(ash_test_support_with_content_sources)']}, {'target_name': 'ash_interactive_ui_test_support', 'type': 'static_library', 'dependencies': ['../skia/skia.gyp:skia', '../testing/gtest.gyp:gtest', 'ash', 'ash_test_support'], 'sources': ['test/ash_interactive_ui_test_base.cc', 'test/ash_interactive_ui_test_base.h']}, {'target_name': 'ash_unittests', 'type': 'executable', 'dependencies': ['../base/base.gyp:base', '../base/base.gyp:test_support_base', '../chrome/chrome_resources.gyp:packed_resources', '../components/components.gyp:signin_core_account_id', '../components/components.gyp:user_manager', '../content/content.gyp:content_browser', '../content/content_shell_and_tests.gyp:test_support_content', '../skia/skia.gyp:skia', '../testing/gmock.gyp:gmock', '../testing/gtest.gyp:gtest', '../third_party/icu/icu.gyp:icui18n', '../third_party/icu/icu.gyp:icuuc', '../ui/accessibility/accessibility.gyp:accessibility', '../ui/app_list/app_list.gyp:app_list', '../ui/app_list/presenter/app_list_presenter.gyp:app_list_presenter', '../ui/aura/aura.gyp:aura', '../ui/aura/aura.gyp:aura_test_support', '../ui/base/ime/ui_base_ime.gyp:ui_base_ime', '../ui/base/ui_base.gyp:ui_base', '../ui/base/ui_base.gyp:ui_base_test_support', '../ui/compositor/compositor.gyp:compositor', '../ui/compositor/compositor.gyp:compositor_test_support', '../ui/display/display.gyp:display', '../ui/events/devices/events_devices.gyp:events_devices', '../ui/events/events.gyp:events', '../ui/events/events.gyp:events_test_support', '../ui/events/events.gyp:gesture_detection', '../ui/gfx/gfx.gyp:gfx', '../ui/gfx/gfx.gyp:gfx_geometry', '../ui/keyboard/keyboard.gyp:keyboard', '../ui/keyboard/keyboard.gyp:keyboard_with_content', '../ui/message_center/message_center.gyp:message_center', '../ui/message_center/message_center.gyp:message_center_test_support', '../ui/resources/ui_resources.gyp:ui_resources', '../ui/views/controls/webview/webview_tests.gyp:webview_test_support', '../ui/views/views.gyp:views', '../ui/views/views.gyp:views_test_support', '../ui/web_dialogs/web_dialogs.gyp:web_dialogs_test_support', '../ui/wm/wm.gyp:wm', '../ui/wm/wm.gyp:wm_test_support', '../url/url.gyp:url_lib', 'ash', 'ash_resources.gyp:ash_resources', 'ash_resources.gyp:ash_test_resources_100_percent', 'ash_resources.gyp:ash_test_resources_200_percent', 'ash_strings.gyp:ash_strings', 'ash_strings.gyp:ash_test_strings', 'ash_test_support', 'ash_with_content'], 'sources': ['<@(ash_unittests_sources)'], 'conditions': [['chromeos==0', {'sources!': ['focus_cycler_unittest.cc', 'wm/drag_window_resizer_unittest.cc', 'autoclick/autoclick_unittest.cc', 'magnifier/magnification_controller_unittest.cc', 'sticky_keys/sticky_keys_overlay_unittest.cc', 'sticky_keys/sticky_keys_unittest.cc', 'system/chromeos/rotation/tray_rotation_lock_unittest.cc', 'virtual_keyboard_controller_unittest.cc', 'wm/maximize_mode/maximize_mode_controller_unittest.cc', 'wm/workspace/workspace_window_resizer_unittest.cc'], 'sources': ['<(SHARED_INTERMEDIATE_DIR)/ui/resources/ui_unscaled_resources.rc'], 'msvs_disabled_warnings': [4267]}], ['chromeos==1', {'dependencies': ['../chromeos/chromeos.gyp:chromeos_test_support_without_gmock', '../chromeos/chromeos.gyp:power_manager_proto', '../components/components.gyp:quirks', '../device/bluetooth/bluetooth.gyp:device_bluetooth', '../ui/display/display.gyp:display_test_support', '../ui/display/display.gyp:display_test_util', '../ui/display/display.gyp:display_types'], 'sources': ['first_run/first_run_helper_unittest.cc']}, {'sources!': ['accelerators/magnifier_key_scroller_unittest.cc', 'accelerators/spoken_feedback_toggler_unittest.cc', 'display/resolution_notification_controller_unittest.cc', 'touch/touch_transformer_controller_unittest.cc', 'touch/touchscreen_util_unittest.cc']}]]}, {'target_name': 'ash_shell_lib', 'type': 'static_library', 'dependencies': ['../base/base.gyp:base', '../base/base.gyp:base_i18n', '../chrome/chrome_resources.gyp:packed_resources', '../skia/skia.gyp:skia', '../third_party/icu/icu.gyp:icui18n', '../third_party/icu/icu.gyp:icuuc', '../ui/app_list/app_list.gyp:app_list', '../ui/app_list/presenter/app_list_presenter.gyp:app_list_presenter', '../ui/aura/aura.gyp:aura', '../ui/base/ime/ui_base_ime.gyp:ui_base_ime', '../ui/base/ui_base.gyp:ui_base', '../ui/compositor/compositor.gyp:compositor', '../ui/events/events.gyp:events', '../ui/gfx/gfx.gyp:gfx', '../ui/gfx/gfx.gyp:gfx_geometry', '../ui/keyboard/keyboard.gyp:keyboard', '../ui/keyboard/keyboard.gyp:keyboard_with_content', '../ui/message_center/message_center.gyp:message_center', '../ui/resources/ui_resources.gyp:ui_resources', '../ui/views/examples/examples.gyp:views_examples_lib', '../ui/views/examples/examples.gyp:views_examples_with_content_lib', '../ui/views/views.gyp:views', '../ui/views/views.gyp:views_test_support', 'ash', 'ash_resources.gyp:ash_resources', 'ash_strings.gyp:ash_strings', 'ash_test_support', 'ash_with_content'], 'sources': ['<@(ash_shell_lib_sources)']}, {'target_name': 'ash_shell_lib_with_content', 'type': 'static_library', 'dependencies': ['ash_shell_lib', '../content/content_shell_and_tests.gyp:content_shell_lib', '../content/content.gyp:content', '../skia/skia.gyp:skia'], 'sources': ['<@(ash_shell_with_content_lib_sources)'], 'conditions': [['OS=="win"', {'dependencies': ['../content/content.gyp:sandbox_helper_win']}]]}, {'target_name': 'ash_shell_with_content', 'type': 'executable', 'dependencies': ['ash_shell_lib_with_content', '../components/components.gyp:user_manager'], 'sources': ['shell/content/shell_with_content_main.cc'], 'conditions': [['OS=="win"', {'msvs_settings': {'VCLinkerTool': {'SubSystem': '2'}}, 'dependencies': ['../sandbox/sandbox.gyp:sandbox']}], ['chromeos==1', {'dependencies': ['../device/bluetooth/bluetooth.gyp:device_bluetooth']}]]}], 'conditions': [['test_isolation_mode != "noop"', {'targets': [{'target_name': 'ash_unittests_run', 'type': 'none', 'dependencies': ['ash_unittests'], 'includes': ['../build/isolate.gypi'], 'sources': ['ash_unittests.isolate'], 'conditions': [['use_x11==1', {'dependencies': ['../tools/xdisplaycheck/xdisplaycheck.gyp:xdisplaycheck']}]]}]}]]}
file = open('input.txt', 'r') inputCodes = file.readline().split(',') def processCode(codeIndex): result = 0 if (inputCodes[codeIndex] == '1'): result = int(inputCodes[int(inputCodes[codeIndex+1])]) + int(inputCodes[int(inputCodes[codeIndex+2])]) inputCodes[int(inputCodes[codeIndex+3])] = str(result) processCode(codeIndex+4) elif (inputCodes[codeIndex] == '2'): result = int(inputCodes[int(inputCodes[codeIndex+1])]) * int(inputCodes[int(inputCodes[codeIndex+2])]) inputCodes[int(inputCodes[codeIndex+3])] = str(result) processCode(codeIndex+4) elif (inputCodes[codeIndex] == '99'): print(inputCodes[0]) else: print(f"Error invalid code at position {codeIndex}: {inputCodes[codeIndex]}") processCode(0)
file = open('input.txt', 'r') input_codes = file.readline().split(',') def process_code(codeIndex): result = 0 if inputCodes[codeIndex] == '1': result = int(inputCodes[int(inputCodes[codeIndex + 1])]) + int(inputCodes[int(inputCodes[codeIndex + 2])]) inputCodes[int(inputCodes[codeIndex + 3])] = str(result) process_code(codeIndex + 4) elif inputCodes[codeIndex] == '2': result = int(inputCodes[int(inputCodes[codeIndex + 1])]) * int(inputCodes[int(inputCodes[codeIndex + 2])]) inputCodes[int(inputCodes[codeIndex + 3])] = str(result) process_code(codeIndex + 4) elif inputCodes[codeIndex] == '99': print(inputCodes[0]) else: print(f'Error invalid code at position {codeIndex}: {inputCodes[codeIndex]}') process_code(0)
expected_output = { "vlan_id": { "100": {"access_map_tag": "karim"}, "3": {"access_map_tag": "mordred"}, "15": {"access_map_tag": "mordred"}, "5": {"access_map_tag": "mordred"}, } }
expected_output = {'vlan_id': {'100': {'access_map_tag': 'karim'}, '3': {'access_map_tag': 'mordred'}, '15': {'access_map_tag': 'mordred'}, '5': {'access_map_tag': 'mordred'}}}
class ASCReader: def __init__ (self, fileName): self.FileName = fileName self.Options = self.parse_config ( ) self.Time, self.Amplitude = self.parse_data(); def getParameterByName (self, Name ): return self.Options[Name] def getTime ( self, us=False ): if us: return self.Time*1e6 else: return self.Time def getData ( self ): return self.Amplitude def getGain ( self, Linear=False ): if Linear: return 10 ** ( float( self.Options['Gain'] ) / -20) else: return float( self.Options['Gain'] ) def parse_data ( self ): data = np.loadtxt( self.FileName, skiprows=72, encoding='ISO-8859-1' ) dt = float ( self.Options ['TimeBase'] ) * 1e-6 dtO = float ( self.Options ['TriggerDelay'] ) *1e-6 amp = 100 * data / 2048 t = np.arange ( 0, (data.shape[0]*dt), dt) + dtO return t, amp def parse_config(self): COMMENT_CHAR = '#' OPTION_CHAR = ':' options = {} f = open(self.FileName, encoding='latin9') for line in f: # First, remove comments: if COMMENT_CHAR in line: # split on comment char, keep only the part before line, comment = line.split(COMMENT_CHAR, 1) # Second, find lines with an option=value: if OPTION_CHAR in line: # split on option char: option, value = line.split(OPTION_CHAR, 1) # strip spaces: strOption = "".join(option) if '[' in strOption: option, ba = strOption.split ( '[', 1 ) option = option.strip() # print ( option ) if option == 'Bemerkungen': param_list = value.split(',') for opt in param_list: #print ( opt.strip() ) if '=' in opt: param, val = "".join(opt).split('=', 1) options[param.strip() ] = val.strip() #print ('%s = %s' % (param, val ) ) value = value.strip() # store in dictionary: options[option] = value f.close() return options
class Ascreader: def __init__(self, fileName): self.FileName = fileName self.Options = self.parse_config() (self.Time, self.Amplitude) = self.parse_data() def get_parameter_by_name(self, Name): return self.Options[Name] def get_time(self, us=False): if us: return self.Time * 1000000.0 else: return self.Time def get_data(self): return self.Amplitude def get_gain(self, Linear=False): if Linear: return 10 ** (float(self.Options['Gain']) / -20) else: return float(self.Options['Gain']) def parse_data(self): data = np.loadtxt(self.FileName, skiprows=72, encoding='ISO-8859-1') dt = float(self.Options['TimeBase']) * 1e-06 dt_o = float(self.Options['TriggerDelay']) * 1e-06 amp = 100 * data / 2048 t = np.arange(0, data.shape[0] * dt, dt) + dtO return (t, amp) def parse_config(self): comment_char = '#' option_char = ':' options = {} f = open(self.FileName, encoding='latin9') for line in f: if COMMENT_CHAR in line: (line, comment) = line.split(COMMENT_CHAR, 1) if OPTION_CHAR in line: (option, value) = line.split(OPTION_CHAR, 1) str_option = ''.join(option) if '[' in strOption: (option, ba) = strOption.split('[', 1) option = option.strip() if option == 'Bemerkungen': param_list = value.split(',') for opt in param_list: if '=' in opt: (param, val) = ''.join(opt).split('=', 1) options[param.strip()] = val.strip() value = value.strip() options[option] = value f.close() return options
animals = ['bear', 'python3.6', 'peacock', 'kangaroo', 'whale', 'platypus'] bear = animals[0] python = animals[1] peacock = animals[2] kangaroo = animals[3] whale = animals[4] platypus = animals[5] print(f"The first animal is at 0 and is a {bear}") print(f"The third animal is at 2 and is a {peacock}") print(f"The first animal is {bear}") print(f"The animal at 3 is {peacock}") print(f"The fifth animal is {whale}") print(f"The animal at 2 is {python}") print(f"The sixth animal is {platypus}") print(f"The animal at 4 is {kangaroo}")
animals = ['bear', 'python3.6', 'peacock', 'kangaroo', 'whale', 'platypus'] bear = animals[0] python = animals[1] peacock = animals[2] kangaroo = animals[3] whale = animals[4] platypus = animals[5] print(f'The first animal is at 0 and is a {bear}') print(f'The third animal is at 2 and is a {peacock}') print(f'The first animal is {bear}') print(f'The animal at 3 is {peacock}') print(f'The fifth animal is {whale}') print(f'The animal at 2 is {python}') print(f'The sixth animal is {platypus}') print(f'The animal at 4 is {kangaroo}')
def multiply(x, y): ''' Multiply two numbers x and y ''' print('multiplying x: {} * y: {}'.format(x, y))
def multiply(x, y): """ Multiply two numbers x and y """ print('multiplying x: {} * y: {}'.format(x, y))
for i in range(50,81): if i%2==0: print(i) else: break
for i in range(50, 81): if i % 2 == 0: print(i) else: break
class TestAccomodation: def test_list_accomodation(self, client): response = client.get('/accomodation') assert response.status_code == 200 def test_update_accomodation(client): pass
class Testaccomodation: def test_list_accomodation(self, client): response = client.get('/accomodation') assert response.status_code == 200 def test_update_accomodation(client): pass
class Edge: def __init__(self, u, v, w): self.u = u self.v = v self.w = w def __eq__(self, edge): if self.u.id == edge.u.id and self.v.id == edge.v.id: return True return False def __ge__(self, v): return True if self.w > v.w else False def __lt__(self, v): return True if self.w < v.w else False @staticmethod def weight(edge): return edge.w
class Edge: def __init__(self, u, v, w): self.u = u self.v = v self.w = w def __eq__(self, edge): if self.u.id == edge.u.id and self.v.id == edge.v.id: return True return False def __ge__(self, v): return True if self.w > v.w else False def __lt__(self, v): return True if self.w < v.w else False @staticmethod def weight(edge): return edge.w
description = 'setup for the status monitor' group = 'special' instrs = sorted(['BioDiff', 'DNS', 'Panda', 'JNSE', 'KWS1', 'KWS2', 'KWS3', 'Poli', 'Maria', 'Treff', 'Spheres']) blocks = [] plotfields = [] for instr in instrs: key = instr.lower() + '_cooling_' fields = [Field(name='T_in', dev=key + 't_in'), Field(name='T_out', dev=key + 't_out'), Field(name='P_in', dev=key + 'p_in'), Field(name='P_out', dev=key + 'p_out'), Field(name='flow_in', dev=key + 'flow_in'), Field(name='flow_out', dev=key + 'flow_out'), Field(name='power', dev=key + 'power')] if instr == 'JNSE': del fields[-2] blocks.append(Block('Cooling %s' % instr, [BlockRow(*fields)])) plotfields.append(Field(plot='temp', name=instr + ' in', key=key + 't_in/value')) plotfields.append(Field(plot='temp', name=instr + ' out', key=key + 't_out/value')) plotfields[0]._options['plotwindow'] = 24*3600 plotfields[0]._options['width'] = 50 plotfields[0]._options['height'] = 40 plot = Block('Temperatures', [ BlockRow(*plotfields) ]) layout = [ Row(Column(*blocks), Column(plot)), ] devices = dict( Monitor = device('nicos.services.monitor.html.Monitor', title = 'JCNS Memograph monitor', loglevel = 'info', # local cache! cache = 'jcnsmon.jcns.frm2:14870', font = 'Droid Sans', valuefont = 'Droid Sans Mono', fontsize = 14, padding = 3, layout = layout, # expectmaster = False, filename = '/WebServer/jcnswww.jcns.frm2/httpdocs/monitor/memograph.html', noexpired = False, ), )
description = 'setup for the status monitor' group = 'special' instrs = sorted(['BioDiff', 'DNS', 'Panda', 'JNSE', 'KWS1', 'KWS2', 'KWS3', 'Poli', 'Maria', 'Treff', 'Spheres']) blocks = [] plotfields = [] for instr in instrs: key = instr.lower() + '_cooling_' fields = [field(name='T_in', dev=key + 't_in'), field(name='T_out', dev=key + 't_out'), field(name='P_in', dev=key + 'p_in'), field(name='P_out', dev=key + 'p_out'), field(name='flow_in', dev=key + 'flow_in'), field(name='flow_out', dev=key + 'flow_out'), field(name='power', dev=key + 'power')] if instr == 'JNSE': del fields[-2] blocks.append(block('Cooling %s' % instr, [block_row(*fields)])) plotfields.append(field(plot='temp', name=instr + ' in', key=key + 't_in/value')) plotfields.append(field(plot='temp', name=instr + ' out', key=key + 't_out/value')) plotfields[0]._options['plotwindow'] = 24 * 3600 plotfields[0]._options['width'] = 50 plotfields[0]._options['height'] = 40 plot = block('Temperatures', [block_row(*plotfields)]) layout = [row(column(*blocks), column(plot))] devices = dict(Monitor=device('nicos.services.monitor.html.Monitor', title='JCNS Memograph monitor', loglevel='info', cache='jcnsmon.jcns.frm2:14870', font='Droid Sans', valuefont='Droid Sans Mono', fontsize=14, padding=3, layout=layout, filename='/WebServer/jcnswww.jcns.frm2/httpdocs/monitor/memograph.html', noexpired=False))
x = int(input("enter first number\n")) if(x>=0): print(x,"is positive") else: print(x,"is negative")
x = int(input('enter first number\n')) if x >= 0: print(x, 'is positive') else: print(x, 'is negative')
config = { 'metadata_version': '1.0', 'module_name': 'nifake', 'module_version': '1.1.1.dev0', 'c_function_prefix': 'niFake_', 'driver_name': 'NI-FAKE', 'session_class_description': 'An NI-FAKE session to a fake MI driver whose sole purpose is to test nimi-python code generation', 'session_handle_parameter_name': 'vi', 'library_info': { 'Windows': { '32bit': {'name': 'nifake_32.dll', 'type': 'windll'}, '64bit': {'name': 'nifake_64.dll', 'type': 'cdll'}, }, 'Linux': { '64bit': {'name': 'libnifake.so', 'type': 'cdll'}, }, }, 'context_manager_name': { 'task': 'acquisition', 'initiate_function': 'Initiate', 'abort_function': 'Abort', }, 'init_function': 'InitWithOptions', 'close_function': 'close', 'custom_types': [ {'file_name': 'custom_struct', 'python_name': 'CustomStruct', 'ctypes_type': 'custom_struct', }, ], 'enum_whitelist_suffix': ['_POINT_FIVE'], 'repeated_capabilities': [ {'python_name': 'channels', 'prefix': '', }, ], }
config = {'metadata_version': '1.0', 'module_name': 'nifake', 'module_version': '1.1.1.dev0', 'c_function_prefix': 'niFake_', 'driver_name': 'NI-FAKE', 'session_class_description': 'An NI-FAKE session to a fake MI driver whose sole purpose is to test nimi-python code generation', 'session_handle_parameter_name': 'vi', 'library_info': {'Windows': {'32bit': {'name': 'nifake_32.dll', 'type': 'windll'}, '64bit': {'name': 'nifake_64.dll', 'type': 'cdll'}}, 'Linux': {'64bit': {'name': 'libnifake.so', 'type': 'cdll'}}}, 'context_manager_name': {'task': 'acquisition', 'initiate_function': 'Initiate', 'abort_function': 'Abort'}, 'init_function': 'InitWithOptions', 'close_function': 'close', 'custom_types': [{'file_name': 'custom_struct', 'python_name': 'CustomStruct', 'ctypes_type': 'custom_struct'}], 'enum_whitelist_suffix': ['_POINT_FIVE'], 'repeated_capabilities': [{'python_name': 'channels', 'prefix': ''}]}
n = 4 C=[[10,20,12,5],[3,14,9,1],[13,8,6,9],[7,15,6,9]] X=[[0,0,0,0],[0,0,0,0],[0,0,0,0],[0,0,0,0]] C1=[[10,20,12,5],[3,14,9,1],[13,8,6,9],[7,15,6,9]] min_element=10**5 for i in range(n): for j in range(n): if C1[i][j]<min_element: min_element=C1[i][j] for j in range(n): C1[i][j]=C1[i][j]-min_element min_element=10**5 min_element=10**5 for j in range(n): for i in range(n): if C1[i][j]<min_element: min_element=C1[i][j] for i in range(n): C1[i][j]=C1[i][j]-min_element min_element=10**5 marked_zeros=[[n]*2]*n scratched_zeros=[[n]*2]*n double_covered_elements=[[n]*2]*n covered_elements=[[n]*2]*((n*n)-n) uncovered_elements=[[n]*2]*((n*n)-n) control_array=[[n]*2]*n horizontal_lines=[n]*n vertical_lines=[n]*n number_marked_zeros=0 while True: for i in range(n): if marked_zeros[i][0]!=n: number_marked_zeros=number_marked_zeros+1 j_marked_zeros=n i_marked_zeros=n k=0 m=0 counter=0 complects_zeros_in_rows=0 complects_zeros_in_column=0 p=0 q=0 r=0 s=0 if number_marked_zeros<n: j_marked_zeros=n i_marked_zeros=n k=0 m=0 for i in range(n): for j in range(n): if C1[i][j]==0 and counter==0 and i!=i_marked_zeros and j!=j_marked_zeros: marked_zeros[k]=[i,j] k=k+1 counter=counter+1 i_marked_zeros=i j_marked_zeros=j if C1[i][j]==0 and counter!=0 and i==i_marked_zeros and j!=j_marked_zeros: scratched_zeros[m]=[i,j] m=m+1 if C1[i][j]==0 and counter!=0 and i!=i_marked_zeros and j==j_marked_zeros: scratched_zeros[m]=[i,j] m=m+1 if C1[i][j]==0 and counter==0 and i==i_marked_zeros and j!=j_marked_zeros: scratched_zeros[m]=[i,j] m=m+1 if C1[i][j]==0 and counter==0 and i!=i_marked_zeros and j==j_marked_zeros: scratched_zeros[m]=[i,j] m=m+1 counter=0 if i==n-1: control_array[0]=marked_zeros[k-1] marked_zeros[k-1]=scratched_zeros[m-1] scratched_zeros[m-1]=control_array[0] for i in range(n): if marked_zeros[i][0]==scratched_zeros[i][0] and marked_zeros[i][0]!=n and scratched_zeros[i][0]!=n: complects_zeros_in_rows=complects_zeros_in_rows +1 horizontal_lines[p]=marked_zeros[i][0] p=p+1 if marked_zeros[i][1]==scratched_zeros[i][1] and marked_zeros[i][1]!=n and scratched_zeros[i][1]!=n: complects_zeros_in_colunm=complects_zeros_in_column+1 vertical_lines[q]=marked_zeros[i][1] q=q+1 for i in range(n): for j in range(n): if horizontal_lines[j]!=n and vertical_lines[i]!=n: double_covered_elements[j]=[horizontal_lines[j],vertical_lines[i]] for i in range(n): if r<horizontal_lines[0]: covered_elements[i]=[i,vertical_lines[0]] r=r+1 for i in range(n): for j in range(n): if j<vertical_lines[0] and i==horizontal_lines[0]: covered_elements[r]=[i,j] r=r+1 if j<vertical_lines[0] and i==horizontal_lines[1]: covered_elements[r]=[i,j] r=r+1 for i in range(n): for j in range(n): if[i,j]not in double_covered_elements and [i,j] not in covered_elements: uncovered_elements[s]=[i,j] s=s+1 min_element=10**5 for i in range(n): for j in range(n): if [i,j] in uncovered_elements: if C1[i][j]<min_element: min_element=C1[i][j] for i in range(n): for j in range(n): if [i,j]in uncovered_elements: C1[i][j]=C1[i][j]-min_element if [i,j] in double_covered_elements: C1[i][j]=C1[i][j]+min_element else: break F=0 for i in range(n): for j in range(n): if i==marked_zeros[i][0] and j==marked_zeros[i][1]: X[i][j]=1 for i in range(n): for j in range(n): if i==marked_zeros[i][0] and j==marked_zeros[i][0]: F=F+C[i][j] print(C1) print(X) print(F)
n = 4 c = [[10, 20, 12, 5], [3, 14, 9, 1], [13, 8, 6, 9], [7, 15, 6, 9]] x = [[0, 0, 0, 0], [0, 0, 0, 0], [0, 0, 0, 0], [0, 0, 0, 0]] c1 = [[10, 20, 12, 5], [3, 14, 9, 1], [13, 8, 6, 9], [7, 15, 6, 9]] min_element = 10 ** 5 for i in range(n): for j in range(n): if C1[i][j] < min_element: min_element = C1[i][j] for j in range(n): C1[i][j] = C1[i][j] - min_element min_element = 10 ** 5 min_element = 10 ** 5 for j in range(n): for i in range(n): if C1[i][j] < min_element: min_element = C1[i][j] for i in range(n): C1[i][j] = C1[i][j] - min_element min_element = 10 ** 5 marked_zeros = [[n] * 2] * n scratched_zeros = [[n] * 2] * n double_covered_elements = [[n] * 2] * n covered_elements = [[n] * 2] * (n * n - n) uncovered_elements = [[n] * 2] * (n * n - n) control_array = [[n] * 2] * n horizontal_lines = [n] * n vertical_lines = [n] * n number_marked_zeros = 0 while True: for i in range(n): if marked_zeros[i][0] != n: number_marked_zeros = number_marked_zeros + 1 j_marked_zeros = n i_marked_zeros = n k = 0 m = 0 counter = 0 complects_zeros_in_rows = 0 complects_zeros_in_column = 0 p = 0 q = 0 r = 0 s = 0 if number_marked_zeros < n: j_marked_zeros = n i_marked_zeros = n k = 0 m = 0 for i in range(n): for j in range(n): if C1[i][j] == 0 and counter == 0 and (i != i_marked_zeros) and (j != j_marked_zeros): marked_zeros[k] = [i, j] k = k + 1 counter = counter + 1 i_marked_zeros = i j_marked_zeros = j if C1[i][j] == 0 and counter != 0 and (i == i_marked_zeros) and (j != j_marked_zeros): scratched_zeros[m] = [i, j] m = m + 1 if C1[i][j] == 0 and counter != 0 and (i != i_marked_zeros) and (j == j_marked_zeros): scratched_zeros[m] = [i, j] m = m + 1 if C1[i][j] == 0 and counter == 0 and (i == i_marked_zeros) and (j != j_marked_zeros): scratched_zeros[m] = [i, j] m = m + 1 if C1[i][j] == 0 and counter == 0 and (i != i_marked_zeros) and (j == j_marked_zeros): scratched_zeros[m] = [i, j] m = m + 1 counter = 0 if i == n - 1: control_array[0] = marked_zeros[k - 1] marked_zeros[k - 1] = scratched_zeros[m - 1] scratched_zeros[m - 1] = control_array[0] for i in range(n): if marked_zeros[i][0] == scratched_zeros[i][0] and marked_zeros[i][0] != n and (scratched_zeros[i][0] != n): complects_zeros_in_rows = complects_zeros_in_rows + 1 horizontal_lines[p] = marked_zeros[i][0] p = p + 1 if marked_zeros[i][1] == scratched_zeros[i][1] and marked_zeros[i][1] != n and (scratched_zeros[i][1] != n): complects_zeros_in_colunm = complects_zeros_in_column + 1 vertical_lines[q] = marked_zeros[i][1] q = q + 1 for i in range(n): for j in range(n): if horizontal_lines[j] != n and vertical_lines[i] != n: double_covered_elements[j] = [horizontal_lines[j], vertical_lines[i]] for i in range(n): if r < horizontal_lines[0]: covered_elements[i] = [i, vertical_lines[0]] r = r + 1 for i in range(n): for j in range(n): if j < vertical_lines[0] and i == horizontal_lines[0]: covered_elements[r] = [i, j] r = r + 1 if j < vertical_lines[0] and i == horizontal_lines[1]: covered_elements[r] = [i, j] r = r + 1 for i in range(n): for j in range(n): if [i, j] not in double_covered_elements and [i, j] not in covered_elements: uncovered_elements[s] = [i, j] s = s + 1 min_element = 10 ** 5 for i in range(n): for j in range(n): if [i, j] in uncovered_elements: if C1[i][j] < min_element: min_element = C1[i][j] for i in range(n): for j in range(n): if [i, j] in uncovered_elements: C1[i][j] = C1[i][j] - min_element if [i, j] in double_covered_elements: C1[i][j] = C1[i][j] + min_element else: break f = 0 for i in range(n): for j in range(n): if i == marked_zeros[i][0] and j == marked_zeros[i][1]: X[i][j] = 1 for i in range(n): for j in range(n): if i == marked_zeros[i][0] and j == marked_zeros[i][0]: f = F + C[i][j] print(C1) print(X) print(F)
power = {'BUSES': {'Area': 1.33155, 'Bus/Area': 1.33155, 'Bus/Gate Leakage': 0.00662954, 'Bus/Peak Dynamic': 0.0, 'Bus/Runtime Dynamic': 0.0, 'Bus/Subthreshold Leakage': 0.0691322, 'Bus/Subthreshold Leakage with power gating': 0.0259246, 'Gate Leakage': 0.00662954, 'Peak Dynamic': 0.0, 'Runtime Dynamic': 0.0, 'Subthreshold Leakage': 0.0691322, 'Subthreshold Leakage with power gating': 0.0259246}, 'Core': [{'Area': 32.6082, 'Execution Unit/Area': 8.2042, 'Execution Unit/Complex ALUs/Area': 0.235435, 'Execution Unit/Complex ALUs/Gate Leakage': 0.0132646, 'Execution Unit/Complex ALUs/Peak Dynamic': 0.113472, 'Execution Unit/Complex ALUs/Runtime Dynamic': 0.291815, 'Execution Unit/Complex ALUs/Subthreshold Leakage': 0.20111, 'Execution Unit/Complex ALUs/Subthreshold Leakage with power gating': 0.0754163, 'Execution Unit/Floating Point Units/Area': 4.6585, 'Execution Unit/Floating Point Units/Gate Leakage': 0.0656156, 'Execution Unit/Floating Point Units/Peak Dynamic': 0.692681, 'Execution Unit/Floating Point Units/Runtime Dynamic': 0.304033, 'Execution Unit/Floating Point Units/Subthreshold Leakage': 0.994829, 'Execution Unit/Floating Point Units/Subthreshold Leakage with power gating': 0.373061, 'Execution Unit/Gate Leakage': 0.122718, 'Execution Unit/Instruction Scheduler/Area': 2.17927, 'Execution Unit/Instruction Scheduler/FP Instruction Window/Area': 0.328073, 'Execution Unit/Instruction Scheduler/FP Instruction Window/Gate Leakage': 0.00115349, 'Execution Unit/Instruction Scheduler/FP Instruction Window/Peak Dynamic': 1.20978, 'Execution Unit/Instruction Scheduler/FP Instruction Window/Runtime Dynamic': 0.367774, 'Execution Unit/Instruction Scheduler/FP Instruction Window/Subthreshold Leakage': 0.017004, 'Execution Unit/Instruction Scheduler/FP Instruction Window/Subthreshold Leakage with power gating': 0.00962066, 'Execution Unit/Instruction Scheduler/Gate Leakage': 0.00730101, 'Execution Unit/Instruction Scheduler/Instruction Window/Area': 1.00996, 'Execution Unit/Instruction Scheduler/Instruction Window/Gate Leakage': 0.00529112, 'Execution Unit/Instruction Scheduler/Instruction Window/Peak Dynamic': 2.07911, 'Execution Unit/Instruction Scheduler/Instruction Window/Runtime Dynamic': 0.636852, 'Execution Unit/Instruction Scheduler/Instruction Window/Subthreshold Leakage': 0.0800117, 'Execution Unit/Instruction Scheduler/Instruction Window/Subthreshold Leakage with power gating': 0.0455351, 'Execution Unit/Instruction Scheduler/Peak Dynamic': 4.84781, 'Execution Unit/Instruction Scheduler/ROB/Area': 0.841232, 'Execution Unit/Instruction Scheduler/ROB/Gate Leakage': 0.000856399, 'Execution Unit/Instruction Scheduler/ROB/Peak Dynamic': 1.55892, 'Execution Unit/Instruction Scheduler/ROB/Runtime Dynamic': 0.365253, 'Execution Unit/Instruction Scheduler/ROB/Subthreshold Leakage': 0.0178624, 'Execution Unit/Instruction Scheduler/ROB/Subthreshold Leakage with power gating': 0.00897339, 'Execution Unit/Instruction Scheduler/Runtime Dynamic': 1.36988, 'Execution Unit/Instruction Scheduler/Subthreshold Leakage': 0.114878, 'Execution Unit/Instruction Scheduler/Subthreshold Leakage with power gating': 0.0641291, 'Execution Unit/Integer ALUs/Area': 0.47087, 'Execution Unit/Integer ALUs/Gate Leakage': 0.0265291, 'Execution Unit/Integer ALUs/Peak Dynamic': 0.257333, 'Execution Unit/Integer ALUs/Runtime Dynamic': 0.101344, 'Execution Unit/Integer ALUs/Subthreshold Leakage': 0.40222, 'Execution Unit/Integer ALUs/Subthreshold Leakage with power gating': 0.150833, 'Execution Unit/Peak Dynamic': 6.5717, 'Execution Unit/Register Files/Area': 0.570804, 'Execution Unit/Register Files/Floating Point RF/Area': 0.208131, 'Execution Unit/Register Files/Floating Point RF/Gate Leakage': 0.000232788, 'Execution Unit/Register Files/Floating Point RF/Peak Dynamic': 0.130862, 'Execution Unit/Register Files/Floating Point RF/Runtime Dynamic': 0.0133321, 'Execution Unit/Register Files/Floating Point RF/Subthreshold Leakage': 0.00399698, 'Execution Unit/Register Files/Floating Point RF/Subthreshold Leakage with power gating': 0.00176968, 'Execution Unit/Register Files/Gate Leakage': 0.000622708, 'Execution Unit/Register Files/Integer RF/Area': 0.362673, 'Execution Unit/Register Files/Integer RF/Gate Leakage': 0.00038992, 'Execution Unit/Register Files/Integer RF/Peak Dynamic': 0.135642, 'Execution Unit/Register Files/Integer RF/Runtime Dynamic': 0.0985991, 'Execution Unit/Register Files/Integer RF/Subthreshold Leakage': 0.00614175, 'Execution Unit/Register Files/Integer RF/Subthreshold Leakage with power gating': 0.00246675, 'Execution Unit/Register Files/Peak Dynamic': 0.266504, 'Execution Unit/Register Files/Runtime Dynamic': 0.111931, 'Execution Unit/Register Files/Subthreshold Leakage': 0.0101387, 'Execution Unit/Register Files/Subthreshold Leakage with power gating': 0.00423643, 'Execution Unit/Results Broadcast Bus/Area Overhead': 0.0442632, 'Execution Unit/Results Broadcast Bus/Gate Leakage': 0.00607074, 'Execution Unit/Results Broadcast Bus/Peak Dynamic': 0.358853, 'Execution Unit/Results Broadcast Bus/Runtime Dynamic': 0.918468, 'Execution Unit/Results Broadcast Bus/Subthreshold Leakage': 0.0920413, 'Execution Unit/Results Broadcast Bus/Subthreshold Leakage with power gating': 0.0345155, 'Execution Unit/Runtime Dynamic': 3.09747, 'Execution Unit/Subthreshold Leakage': 1.83518, 'Execution Unit/Subthreshold Leakage with power gating': 0.709678, 'Gate Leakage': 0.372997, 'Instruction Fetch Unit/Area': 5.86007, 'Instruction Fetch Unit/Branch Predictor/Area': 0.138516, 'Instruction Fetch Unit/Branch Predictor/Chooser/Area': 0.0435221, 'Instruction Fetch Unit/Branch Predictor/Chooser/Gate Leakage': 0.000278362, 'Instruction Fetch Unit/Branch Predictor/Chooser/Peak Dynamic': 0.0168831, 'Instruction Fetch Unit/Branch Predictor/Chooser/Runtime Dynamic': 0.00133722, 'Instruction Fetch Unit/Branch Predictor/Chooser/Subthreshold Leakage': 0.00759719, 'Instruction Fetch Unit/Branch Predictor/Chooser/Subthreshold Leakage with power gating': 0.0039236, 'Instruction Fetch Unit/Branch Predictor/Gate Leakage': 0.000757657, 'Instruction Fetch Unit/Branch Predictor/Global Predictor/Area': 0.0435221, 'Instruction Fetch Unit/Branch Predictor/Global Predictor/Gate Leakage': 0.000278362, 'Instruction Fetch Unit/Branch Predictor/Global Predictor/Peak Dynamic': 0.0168831, 'Instruction Fetch Unit/Branch Predictor/Global Predictor/Runtime Dynamic': 0.00133722, 'Instruction Fetch Unit/Branch Predictor/Global Predictor/Subthreshold Leakage': 0.00759719, 'Instruction Fetch Unit/Branch Predictor/Global Predictor/Subthreshold Leakage with power gating': 0.0039236, 'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Area': 0.0257064, 'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Gate Leakage': 0.000154548, 'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Peak Dynamic': 0.0142575, 'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Runtime Dynamic': 0.00117013, 'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Subthreshold Leakage': 0.00384344, 'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Subthreshold Leakage with power gating': 0.00198631, 'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Area': 0.0151917, 'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Gate Leakage': 8.00196e-05, 'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Peak Dynamic': 0.00527447, 'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Runtime Dynamic': 0.000455941, 'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Subthreshold Leakage': 0.00181347, 'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Subthreshold Leakage with power gating': 0.000957045, 'Instruction Fetch Unit/Branch Predictor/Peak Dynamic': 0.0597838, 'Instruction Fetch Unit/Branch Predictor/RAS/Area': 0.0105732, 'Instruction Fetch Unit/Branch Predictor/RAS/Gate Leakage': 4.63858e-05, 'Instruction Fetch Unit/Branch Predictor/RAS/Peak Dynamic': 0.0117602, 'Instruction Fetch Unit/Branch Predictor/RAS/Runtime Dynamic': 0.00141638, 'Instruction Fetch Unit/Branch Predictor/RAS/Subthreshold Leakage': 0.000932505, 'Instruction Fetch Unit/Branch Predictor/RAS/Subthreshold Leakage with power gating': 0.000494733, 'Instruction Fetch Unit/Branch Predictor/Runtime Dynamic': 0.00526096, 'Instruction Fetch Unit/Branch Predictor/Subthreshold Leakage': 0.0199703, 'Instruction Fetch Unit/Branch Predictor/Subthreshold Leakage with power gating': 0.0103282, 'Instruction Fetch Unit/Branch Target Buffer/Area': 0.64954, 'Instruction Fetch Unit/Branch Target Buffer/Gate Leakage': 0.00272758, 'Instruction Fetch Unit/Branch Target Buffer/Peak Dynamic': 0.177867, 'Instruction Fetch Unit/Branch Target Buffer/Runtime Dynamic': 0.0126276, 'Instruction Fetch Unit/Branch Target Buffer/Subthreshold Leakage': 0.0811682, 'Instruction Fetch Unit/Branch Target Buffer/Subthreshold Leakage with power gating': 0.0435357, 'Instruction Fetch Unit/Gate Leakage': 0.0590479, 'Instruction Fetch Unit/Instruction Buffer/Area': 0.0226323, 'Instruction Fetch Unit/Instruction Buffer/Gate Leakage': 6.83558e-05, 'Instruction Fetch Unit/Instruction Buffer/Peak Dynamic': 0.606827, 'Instruction Fetch Unit/Instruction Buffer/Runtime Dynamic': 0.0947859, 'Instruction Fetch Unit/Instruction Buffer/Subthreshold Leakage': 0.00151885, 'Instruction Fetch Unit/Instruction Buffer/Subthreshold Leakage with power gating': 0.000701682, 'Instruction Fetch Unit/Instruction Cache/Area': 3.14635, 'Instruction Fetch Unit/Instruction Cache/Gate Leakage': 0.029931, 'Instruction Fetch Unit/Instruction Cache/Peak Dynamic': 6.02919, 'Instruction Fetch Unit/Instruction Cache/Runtime Dynamic': 0.266465, 'Instruction Fetch Unit/Instruction Cache/Subthreshold Leakage': 0.367022, 'Instruction Fetch Unit/Instruction Cache/Subthreshold Leakage with power gating': 0.180386, 'Instruction Fetch Unit/Instruction Decoder/Area': 1.85799, 'Instruction Fetch Unit/Instruction Decoder/Gate Leakage': 0.0222493, 'Instruction Fetch Unit/Instruction Decoder/Peak Dynamic': 1.37404, 'Instruction Fetch Unit/Instruction Decoder/Runtime Dynamic': 0.321935, 'Instruction Fetch Unit/Instruction Decoder/Subthreshold Leakage': 0.442943, 'Instruction Fetch Unit/Instruction Decoder/Subthreshold Leakage with power gating': 0.166104, 'Instruction Fetch Unit/Peak Dynamic': 8.54479, 'Instruction Fetch Unit/Runtime Dynamic': 0.701075, 'Instruction Fetch Unit/Subthreshold Leakage': 0.932587, 'Instruction Fetch Unit/Subthreshold Leakage with power gating': 0.408542, 'L2/Area': 4.53318, 'L2/Gate Leakage': 0.015464, 'L2/Peak Dynamic': 0.0784516, 'L2/Runtime Dynamic': 0.0170574, 'L2/Subthreshold Leakage': 0.834142, 'L2/Subthreshold Leakage with power gating': 0.401066, 'Load Store Unit/Area': 8.80969, 'Load Store Unit/Data Cache/Area': 6.84535, 'Load Store Unit/Data Cache/Gate Leakage': 0.0279261, 'Load Store Unit/Data Cache/Peak Dynamic': 4.87526, 'Load Store Unit/Data Cache/Runtime Dynamic': 1.76986, 'Load Store Unit/Data Cache/Subthreshold Leakage': 0.527675, 'Load Store Unit/Data Cache/Subthreshold Leakage with power gating': 0.25085, 'Load Store Unit/Gate Leakage': 0.0351387, 'Load Store Unit/LoadQ/Area': 0.0836782, 'Load Store Unit/LoadQ/Gate Leakage': 0.00059896, 'Load Store Unit/LoadQ/Peak Dynamic': 0.117703, 'Load Store Unit/LoadQ/Runtime Dynamic': 0.117702, 'Load Store Unit/LoadQ/Subthreshold Leakage': 0.00941961, 'Load Store Unit/LoadQ/Subthreshold Leakage with power gating': 0.00536918, 'Load Store Unit/Peak Dynamic': 5.43334, 'Load Store Unit/Runtime Dynamic': 2.46803, 'Load Store Unit/StoreQ/Area': 0.322079, 'Load Store Unit/StoreQ/Gate Leakage': 0.00329971, 'Load Store Unit/StoreQ/Peak Dynamic': 0.290234, 'Load Store Unit/StoreQ/Runtime Dynamic': 0.580469, 'Load Store Unit/StoreQ/Subthreshold Leakage': 0.0345621, 'Load Store Unit/StoreQ/Subthreshold Leakage with power gating': 0.0197004, 'Load Store Unit/Subthreshold Leakage': 0.591622, 'Load Store Unit/Subthreshold Leakage with power gating': 0.283406, 'Memory Management Unit/Area': 0.434579, 'Memory Management Unit/Dtlb/Area': 0.0879726, 'Memory Management Unit/Dtlb/Gate Leakage': 0.00088729, 'Memory Management Unit/Dtlb/Peak Dynamic': 0.103005, 'Memory Management Unit/Dtlb/Runtime Dynamic': 0.104066, 'Memory Management Unit/Dtlb/Subthreshold Leakage': 0.0155699, 'Memory Management Unit/Dtlb/Subthreshold Leakage with power gating': 0.00887485, 'Memory Management Unit/Gate Leakage': 0.00813591, 'Memory Management Unit/Itlb/Area': 0.301552, 'Memory Management Unit/Itlb/Gate Leakage': 0.00393464, 'Memory Management Unit/Itlb/Peak Dynamic': 0.374873, 'Memory Management Unit/Itlb/Runtime Dynamic': 0.0440318, 'Memory Management Unit/Itlb/Subthreshold Leakage': 0.0413758, 'Memory Management Unit/Itlb/Subthreshold Leakage with power gating': 0.0235842, 'Memory Management Unit/Peak Dynamic': 0.711448, 'Memory Management Unit/Runtime Dynamic': 0.148097, 'Memory Management Unit/Subthreshold Leakage': 0.0769113, 'Memory Management Unit/Subthreshold Leakage with power gating': 0.0399462, 'Peak Dynamic': 25.9014, 'Renaming Unit/Area': 0.369768, 'Renaming Unit/FP Front End RAT/Area': 0.168486, 'Renaming Unit/FP Front End RAT/Gate Leakage': 0.00489731, 'Renaming Unit/FP Front End RAT/Peak Dynamic': 3.33511, 'Renaming Unit/FP Front End RAT/Runtime Dynamic': 0.456548, 'Renaming Unit/FP Front End RAT/Subthreshold Leakage': 0.0437281, 'Renaming Unit/FP Front End RAT/Subthreshold Leakage with power gating': 0.024925, 'Renaming Unit/Free List/Area': 0.0414755, 'Renaming Unit/Free List/Gate Leakage': 4.15911e-05, 'Renaming Unit/Free List/Peak Dynamic': 0.0401324, 'Renaming Unit/Free List/Runtime Dynamic': 0.0242997, 'Renaming Unit/Free List/Subthreshold Leakage': 0.000670426, 'Renaming Unit/Free List/Subthreshold Leakage with power gating': 0.000377987, 'Renaming Unit/Gate Leakage': 0.00863632, 'Renaming Unit/Int Front End RAT/Area': 0.114751, 'Renaming Unit/Int Front End RAT/Gate Leakage': 0.00038343, 'Renaming Unit/Int Front End RAT/Peak Dynamic': 0.86945, 'Renaming Unit/Int Front End RAT/Runtime Dynamic': 0.182883, 'Renaming Unit/Int Front End RAT/Subthreshold Leakage': 0.00611897, 'Renaming Unit/Int Front End RAT/Subthreshold Leakage with power gating': 0.00348781, 'Renaming Unit/Peak Dynamic': 4.56169, 'Renaming Unit/Runtime Dynamic': 0.663731, 'Renaming Unit/Subthreshold Leakage': 0.070483, 'Renaming Unit/Subthreshold Leakage with power gating': 0.0362779, 'Runtime Dynamic': 7.09547, 'Subthreshold Leakage': 6.21877, 'Subthreshold Leakage with power gating': 2.58311}, {'Area': 32.0201, 'Execution Unit/Area': 7.68434, 'Execution Unit/Complex ALUs/Area': 0.235435, 'Execution Unit/Complex ALUs/Gate Leakage': 0.0132646, 'Execution Unit/Complex ALUs/Peak Dynamic': 0.0503463, 'Execution Unit/Complex ALUs/Runtime Dynamic': 0.242233, 'Execution Unit/Complex ALUs/Subthreshold Leakage': 0.20111, 'Execution Unit/Complex ALUs/Subthreshold Leakage with power gating': 0.0754163, 'Execution Unit/Floating Point Units/Area': 4.6585, 'Execution Unit/Floating Point Units/Gate Leakage': 0.0656156, 'Execution Unit/Floating Point Units/Peak Dynamic': 0.298709, 'Execution Unit/Floating Point Units/Runtime Dynamic': 0.304033, 'Execution Unit/Floating Point Units/Subthreshold Leakage': 0.994829, 'Execution Unit/Floating Point Units/Subthreshold Leakage with power gating': 0.373061, 'Execution Unit/Gate Leakage': 0.120359, 'Execution Unit/Instruction Scheduler/Area': 1.66526, 'Execution Unit/Instruction Scheduler/FP Instruction Window/Area': 0.275653, 'Execution Unit/Instruction Scheduler/FP Instruction Window/Gate Leakage': 0.000977433, 'Execution Unit/Instruction Scheduler/FP Instruction Window/Peak Dynamic': 1.04181, 'Execution Unit/Instruction Scheduler/FP Instruction Window/Runtime Dynamic': 0.15454, 'Execution Unit/Instruction Scheduler/FP Instruction Window/Subthreshold Leakage': 0.0143453, 'Execution Unit/Instruction Scheduler/FP Instruction Window/Subthreshold Leakage with power gating': 0.00810519, 'Execution Unit/Instruction Scheduler/Gate Leakage': 0.00568913, 'Execution Unit/Instruction Scheduler/Instruction Window/Area': 0.805223, 'Execution Unit/Instruction Scheduler/Instruction Window/Gate Leakage': 0.00414562, 'Execution Unit/Instruction Scheduler/Instruction Window/Peak Dynamic': 1.6763, 'Execution Unit/Instruction Scheduler/Instruction Window/Runtime Dynamic': 0.249267, 'Execution Unit/Instruction Scheduler/Instruction Window/Subthreshold Leakage': 0.0625755, 'Execution Unit/Instruction Scheduler/Instruction Window/Subthreshold Leakage with power gating': 0.0355964, 'Execution Unit/Instruction Scheduler/Peak Dynamic': 3.82262, 'Execution Unit/Instruction Scheduler/ROB/Area': 0.584388, 'Execution Unit/Instruction Scheduler/ROB/Gate Leakage': 0.00056608, 'Execution Unit/Instruction Scheduler/ROB/Peak Dynamic': 1.10451, 'Execution Unit/Instruction Scheduler/ROB/Runtime Dynamic': 0.125822, 'Execution Unit/Instruction Scheduler/ROB/Subthreshold Leakage': 0.00906853, 'Execution Unit/Instruction Scheduler/ROB/Subthreshold Leakage with power gating': 0.00364446, 'Execution Unit/Instruction Scheduler/Runtime Dynamic': 0.529629, 'Execution Unit/Instruction Scheduler/Subthreshold Leakage': 0.0859892, 'Execution Unit/Instruction Scheduler/Subthreshold Leakage with power gating': 0.047346, 'Execution Unit/Integer ALUs/Area': 0.47087, 'Execution Unit/Integer ALUs/Gate Leakage': 0.0265291, 'Execution Unit/Integer ALUs/Peak Dynamic': 0.130953, 'Execution Unit/Integer ALUs/Runtime Dynamic': 0.101344, 'Execution Unit/Integer ALUs/Subthreshold Leakage': 0.40222, 'Execution Unit/Integer ALUs/Subthreshold Leakage with power gating': 0.150833, 'Execution Unit/Peak Dynamic': 4.59001, 'Execution Unit/Register Files/Area': 0.570804, 'Execution Unit/Register Files/Floating Point RF/Area': 0.208131, 'Execution Unit/Register Files/Floating Point RF/Gate Leakage': 0.000232788, 'Execution Unit/Register Files/Floating Point RF/Peak Dynamic': 0.0564325, 'Execution Unit/Register Files/Floating Point RF/Runtime Dynamic': 0.00648211, 'Execution Unit/Register Files/Floating Point RF/Subthreshold Leakage': 0.00399698, 'Execution Unit/Register Files/Floating Point RF/Subthreshold Leakage with power gating': 0.00176968, 'Execution Unit/Register Files/Gate Leakage': 0.000622708, 'Execution Unit/Register Files/Integer RF/Area': 0.362673, 'Execution Unit/Register Files/Integer RF/Gate Leakage': 0.00038992, 'Execution Unit/Register Files/Integer RF/Peak Dynamic': 0.064632, 'Execution Unit/Register Files/Integer RF/Runtime Dynamic': 0.0479391, 'Execution Unit/Register Files/Integer RF/Subthreshold Leakage': 0.00614175, 'Execution Unit/Register Files/Integer RF/Subthreshold Leakage with power gating': 0.00246675, 'Execution Unit/Register Files/Peak Dynamic': 0.121065, 'Execution Unit/Register Files/Runtime Dynamic': 0.0544213, 'Execution Unit/Register Files/Subthreshold Leakage': 0.0101387, 'Execution Unit/Register Files/Subthreshold Leakage with power gating': 0.00423643, 'Execution Unit/Results Broadcast Bus/Area Overhead': 0.0390912, 'Execution Unit/Results Broadcast Bus/Gate Leakage': 0.00537402, 'Execution Unit/Results Broadcast Bus/Peak Dynamic': 0.148751, 'Execution Unit/Results Broadcast Bus/Runtime Dynamic': 0.372135, 'Execution Unit/Results Broadcast Bus/Subthreshold Leakage': 0.081478, 'Execution Unit/Results Broadcast Bus/Subthreshold Leakage with power gating': 0.0305543, 'Execution Unit/Runtime Dynamic': 1.6038, 'Execution Unit/Subthreshold Leakage': 1.79543, 'Execution Unit/Subthreshold Leakage with power gating': 0.688821, 'Gate Leakage': 0.368936, 'Instruction Fetch Unit/Area': 5.85939, 'Instruction Fetch Unit/Branch Predictor/Area': 0.138516, 'Instruction Fetch Unit/Branch Predictor/Chooser/Area': 0.0435221, 'Instruction Fetch Unit/Branch Predictor/Chooser/Gate Leakage': 0.000278362, 'Instruction Fetch Unit/Branch Predictor/Chooser/Peak Dynamic': 0.0168831, 'Instruction Fetch Unit/Branch Predictor/Chooser/Runtime Dynamic': 0.000917974, 'Instruction Fetch Unit/Branch Predictor/Chooser/Subthreshold Leakage': 0.00759719, 'Instruction Fetch Unit/Branch Predictor/Chooser/Subthreshold Leakage with power gating': 0.0039236, 'Instruction Fetch Unit/Branch Predictor/Gate Leakage': 0.000757657, 'Instruction Fetch Unit/Branch Predictor/Global Predictor/Area': 0.0435221, 'Instruction Fetch Unit/Branch Predictor/Global Predictor/Gate Leakage': 0.000278362, 'Instruction Fetch Unit/Branch Predictor/Global Predictor/Peak Dynamic': 0.0168831, 'Instruction Fetch Unit/Branch Predictor/Global Predictor/Runtime Dynamic': 0.000917974, 'Instruction Fetch Unit/Branch Predictor/Global Predictor/Subthreshold Leakage': 0.00759719, 'Instruction Fetch Unit/Branch Predictor/Global Predictor/Subthreshold Leakage with power gating': 0.0039236, 'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Area': 0.0257064, 'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Gate Leakage': 0.000154548, 'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Peak Dynamic': 0.0142575, 'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Runtime Dynamic': 0.000825619, 'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Subthreshold Leakage': 0.00384344, 'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Subthreshold Leakage with power gating': 0.00198631, 'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Area': 0.0151917, 'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Gate Leakage': 8.00196e-05, 'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Peak Dynamic': 0.00527447, 'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Runtime Dynamic': 0.000333866, 'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Subthreshold Leakage': 0.00181347, 'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Subthreshold Leakage with power gating': 0.000957045, 'Instruction Fetch Unit/Branch Predictor/Peak Dynamic': 0.0597838, 'Instruction Fetch Unit/Branch Predictor/RAS/Area': 0.0105732, 'Instruction Fetch Unit/Branch Predictor/RAS/Gate Leakage': 4.63858e-05, 'Instruction Fetch Unit/Branch Predictor/RAS/Peak Dynamic': 0.0117602, 'Instruction Fetch Unit/Branch Predictor/RAS/Runtime Dynamic': 0.00068865, 'Instruction Fetch Unit/Branch Predictor/RAS/Subthreshold Leakage': 0.000932505, 'Instruction Fetch Unit/Branch Predictor/RAS/Subthreshold Leakage with power gating': 0.000494733, 'Instruction Fetch Unit/Branch Predictor/Runtime Dynamic': 0.00335022, 'Instruction Fetch Unit/Branch Predictor/Subthreshold Leakage': 0.0199703, 'Instruction Fetch Unit/Branch Predictor/Subthreshold Leakage with power gating': 0.0103282, 'Instruction Fetch Unit/Branch Target Buffer/Area': 0.64954, 'Instruction Fetch Unit/Branch Target Buffer/Gate Leakage': 0.00272758, 'Instruction Fetch Unit/Branch Target Buffer/Peak Dynamic': 0.177867, 'Instruction Fetch Unit/Branch Target Buffer/Runtime Dynamic': 0.00787022, 'Instruction Fetch Unit/Branch Target Buffer/Subthreshold Leakage': 0.0811682, 'Instruction Fetch Unit/Branch Target Buffer/Subthreshold Leakage with power gating': 0.0435357, 'Instruction Fetch Unit/Gate Leakage': 0.0589979, 'Instruction Fetch Unit/Instruction Buffer/Area': 0.0226323, 'Instruction Fetch Unit/Instruction Buffer/Gate Leakage': 6.83558e-05, 'Instruction Fetch Unit/Instruction Buffer/Peak Dynamic': 0.606827, 'Instruction Fetch Unit/Instruction Buffer/Runtime Dynamic': 0.0460851, 'Instruction Fetch Unit/Instruction Buffer/Subthreshold Leakage': 0.00151885, 'Instruction Fetch Unit/Instruction Buffer/Subthreshold Leakage with power gating': 0.000701682, 'Instruction Fetch Unit/Instruction Cache/Area': 3.14635, 'Instruction Fetch Unit/Instruction Cache/Gate Leakage': 0.029931, 'Instruction Fetch Unit/Instruction Cache/Peak Dynamic': 2.93141, 'Instruction Fetch Unit/Instruction Cache/Runtime Dynamic': 0.133269, 'Instruction Fetch Unit/Instruction Cache/Subthreshold Leakage': 0.367022, 'Instruction Fetch Unit/Instruction Cache/Subthreshold Leakage with power gating': 0.180386, 'Instruction Fetch Unit/Instruction Decoder/Area': 1.85799, 'Instruction Fetch Unit/Instruction Decoder/Gate Leakage': 0.0222493, 'Instruction Fetch Unit/Instruction Decoder/Peak Dynamic': 1.37404, 'Instruction Fetch Unit/Instruction Decoder/Runtime Dynamic': 0.156526, 'Instruction Fetch Unit/Instruction Decoder/Subthreshold Leakage': 0.442943, 'Instruction Fetch Unit/Instruction Decoder/Subthreshold Leakage with power gating': 0.166104, 'Instruction Fetch Unit/Peak Dynamic': 5.29219, 'Instruction Fetch Unit/Runtime Dynamic': 0.3471, 'Instruction Fetch Unit/Subthreshold Leakage': 0.932286, 'Instruction Fetch Unit/Subthreshold Leakage with power gating': 0.40843, 'L2/Area': 4.53318, 'L2/Gate Leakage': 0.015464, 'L2/Peak Dynamic': 0.0366939, 'L2/Runtime Dynamic': 0.00763293, 'L2/Subthreshold Leakage': 0.834142, 'L2/Subthreshold Leakage with power gating': 0.401066, 'Load Store Unit/Area': 8.80901, 'Load Store Unit/Data Cache/Area': 6.84535, 'Load Store Unit/Data Cache/Gate Leakage': 0.0279261, 'Load Store Unit/Data Cache/Peak Dynamic': 2.89071, 'Load Store Unit/Data Cache/Runtime Dynamic': 0.805089, 'Load Store Unit/Data Cache/Subthreshold Leakage': 0.527675, 'Load Store Unit/Data Cache/Subthreshold Leakage with power gating': 0.25085, 'Load Store Unit/Gate Leakage': 0.0350888, 'Load Store Unit/LoadQ/Area': 0.0836782, 'Load Store Unit/LoadQ/Gate Leakage': 0.00059896, 'Load Store Unit/LoadQ/Peak Dynamic': 0.0534977, 'Load Store Unit/LoadQ/Runtime Dynamic': 0.0534978, 'Load Store Unit/LoadQ/Subthreshold Leakage': 0.00941961, 'Load Store Unit/LoadQ/Subthreshold Leakage with power gating': 0.00536918, 'Load Store Unit/Peak Dynamic': 3.14334, 'Load Store Unit/Runtime Dynamic': 1.12242, 'Load Store Unit/StoreQ/Area': 0.322079, 'Load Store Unit/StoreQ/Gate Leakage': 0.00329971, 'Load Store Unit/StoreQ/Peak Dynamic': 0.131916, 'Load Store Unit/StoreQ/Runtime Dynamic': 0.263833, 'Load Store Unit/StoreQ/Subthreshold Leakage': 0.0345621, 'Load Store Unit/StoreQ/Subthreshold Leakage with power gating': 0.0197004, 'Load Store Unit/Subthreshold Leakage': 0.591321, 'Load Store Unit/Subthreshold Leakage with power gating': 0.283293, 'Memory Management Unit/Area': 0.4339, 'Memory Management Unit/Dtlb/Area': 0.0879726, 'Memory Management Unit/Dtlb/Gate Leakage': 0.00088729, 'Memory Management Unit/Dtlb/Peak Dynamic': 0.0468175, 'Memory Management Unit/Dtlb/Runtime Dynamic': 0.0473088, 'Memory Management Unit/Dtlb/Subthreshold Leakage': 0.0155699, 'Memory Management Unit/Dtlb/Subthreshold Leakage with power gating': 0.00887485, 'Memory Management Unit/Gate Leakage': 0.00808595, 'Memory Management Unit/Itlb/Area': 0.301552, 'Memory Management Unit/Itlb/Gate Leakage': 0.00393464, 'Memory Management Unit/Itlb/Peak Dynamic': 0.182264, 'Memory Management Unit/Itlb/Runtime Dynamic': 0.0220249, 'Memory Management Unit/Itlb/Subthreshold Leakage': 0.0413758, 'Memory Management Unit/Itlb/Subthreshold Leakage with power gating': 0.0235842, 'Memory Management Unit/Peak Dynamic': 0.418797, 'Memory Management Unit/Runtime Dynamic': 0.0693337, 'Memory Management Unit/Subthreshold Leakage': 0.0766103, 'Memory Management Unit/Subthreshold Leakage with power gating': 0.0398333, 'Peak Dynamic': 17.0705, 'Renaming Unit/Area': 0.303608, 'Renaming Unit/FP Front End RAT/Area': 0.131045, 'Renaming Unit/FP Front End RAT/Gate Leakage': 0.00351123, 'Renaming Unit/FP Front End RAT/Peak Dynamic': 2.51468, 'Renaming Unit/FP Front End RAT/Runtime Dynamic': 0.148448, 'Renaming Unit/FP Front End RAT/Subthreshold Leakage': 0.0308571, 'Renaming Unit/FP Front End RAT/Subthreshold Leakage with power gating': 0.0175885, 'Renaming Unit/Free List/Area': 0.0340654, 'Renaming Unit/Free List/Gate Leakage': 2.5481e-05, 'Renaming Unit/Free List/Peak Dynamic': 0.0306032, 'Renaming Unit/Free List/Runtime Dynamic': 0.008779, 'Renaming Unit/Free List/Subthreshold Leakage': 0.000370144, 'Renaming Unit/Free List/Subthreshold Leakage with power gating': 0.000201064, 'Renaming Unit/Gate Leakage': 0.00708398, 'Renaming Unit/Int Front End RAT/Area': 0.0941223, 'Renaming Unit/Int Front End RAT/Gate Leakage': 0.000283242, 'Renaming Unit/Int Front End RAT/Peak Dynamic': 0.731965, 'Renaming Unit/Int Front End RAT/Runtime Dynamic': 0.0758336, 'Renaming Unit/Int Front End RAT/Subthreshold Leakage': 0.00435488, 'Renaming Unit/Int Front End RAT/Subthreshold Leakage with power gating': 0.00248228, 'Renaming Unit/Peak Dynamic': 3.58947, 'Renaming Unit/Runtime Dynamic': 0.23306, 'Renaming Unit/Subthreshold Leakage': 0.0552466, 'Renaming Unit/Subthreshold Leakage with power gating': 0.0276461, 'Runtime Dynamic': 3.38334, 'Subthreshold Leakage': 6.16288, 'Subthreshold Leakage with power gating': 2.55328}, {'Area': 32.0201, 'Execution Unit/Area': 7.68434, 'Execution Unit/Complex ALUs/Area': 0.235435, 'Execution Unit/Complex ALUs/Gate Leakage': 0.0132646, 'Execution Unit/Complex ALUs/Peak Dynamic': 0.0542242, 'Execution Unit/Complex ALUs/Runtime Dynamic': 0.245279, 'Execution Unit/Complex ALUs/Subthreshold Leakage': 0.20111, 'Execution Unit/Complex ALUs/Subthreshold Leakage with power gating': 0.0754163, 'Execution Unit/Floating Point Units/Area': 4.6585, 'Execution Unit/Floating Point Units/Gate Leakage': 0.0656156, 'Execution Unit/Floating Point Units/Peak Dynamic': 0.291751, 'Execution Unit/Floating Point Units/Runtime Dynamic': 0.304033, 'Execution Unit/Floating Point Units/Subthreshold Leakage': 0.994829, 'Execution Unit/Floating Point Units/Subthreshold Leakage with power gating': 0.373061, 'Execution Unit/Gate Leakage': 0.120359, 'Execution Unit/Instruction Scheduler/Area': 1.66526, 'Execution Unit/Instruction Scheduler/FP Instruction Window/Area': 0.275653, 'Execution Unit/Instruction Scheduler/FP Instruction Window/Gate Leakage': 0.000977433, 'Execution Unit/Instruction Scheduler/FP Instruction Window/Peak Dynamic': 1.04181, 'Execution Unit/Instruction Scheduler/FP Instruction Window/Runtime Dynamic': 0.128974, 'Execution Unit/Instruction Scheduler/FP Instruction Window/Subthreshold Leakage': 0.0143453, 'Execution Unit/Instruction Scheduler/FP Instruction Window/Subthreshold Leakage with power gating': 0.00810519, 'Execution Unit/Instruction Scheduler/Gate Leakage': 0.00568913, 'Execution Unit/Instruction Scheduler/Instruction Window/Area': 0.805223, 'Execution Unit/Instruction Scheduler/Instruction Window/Gate Leakage': 0.00414562, 'Execution Unit/Instruction Scheduler/Instruction Window/Peak Dynamic': 1.6763, 'Execution Unit/Instruction Scheduler/Instruction Window/Runtime Dynamic': 0.20803, 'Execution Unit/Instruction Scheduler/Instruction Window/Subthreshold Leakage': 0.0625755, 'Execution Unit/Instruction Scheduler/Instruction Window/Subthreshold Leakage with power gating': 0.0355964, 'Execution Unit/Instruction Scheduler/Peak Dynamic': 3.82262, 'Execution Unit/Instruction Scheduler/ROB/Area': 0.584388, 'Execution Unit/Instruction Scheduler/ROB/Gate Leakage': 0.00056608, 'Execution Unit/Instruction Scheduler/ROB/Peak Dynamic': 1.10451, 'Execution Unit/Instruction Scheduler/ROB/Runtime Dynamic': 0.105006, 'Execution Unit/Instruction Scheduler/ROB/Subthreshold Leakage': 0.00906853, 'Execution Unit/Instruction Scheduler/ROB/Subthreshold Leakage with power gating': 0.00364446, 'Execution Unit/Instruction Scheduler/Runtime Dynamic': 0.44201, 'Execution Unit/Instruction Scheduler/Subthreshold Leakage': 0.0859892, 'Execution Unit/Instruction Scheduler/Subthreshold Leakage with power gating': 0.047346, 'Execution Unit/Integer ALUs/Area': 0.47087, 'Execution Unit/Integer ALUs/Gate Leakage': 0.0265291, 'Execution Unit/Integer ALUs/Peak Dynamic': 0.102778, 'Execution Unit/Integer ALUs/Runtime Dynamic': 0.101344, 'Execution Unit/Integer ALUs/Subthreshold Leakage': 0.40222, 'Execution Unit/Integer ALUs/Subthreshold Leakage with power gating': 0.150833, 'Execution Unit/Peak Dynamic': 4.53858, 'Execution Unit/Register Files/Area': 0.570804, 'Execution Unit/Register Files/Floating Point RF/Area': 0.208131, 'Execution Unit/Register Files/Floating Point RF/Gate Leakage': 0.000232788, 'Execution Unit/Register Files/Floating Point RF/Peak Dynamic': 0.0551181, 'Execution Unit/Register Files/Floating Point RF/Runtime Dynamic': 0.00540973, 'Execution Unit/Register Files/Floating Point RF/Subthreshold Leakage': 0.00399698, 'Execution Unit/Register Files/Floating Point RF/Subthreshold Leakage with power gating': 0.00176968, 'Execution Unit/Register Files/Gate Leakage': 0.000622708, 'Execution Unit/Register Files/Integer RF/Area': 0.362673, 'Execution Unit/Register Files/Integer RF/Gate Leakage': 0.00038992, 'Execution Unit/Register Files/Integer RF/Peak Dynamic': 0.0594634, 'Execution Unit/Register Files/Integer RF/Runtime Dynamic': 0.0400083, 'Execution Unit/Register Files/Integer RF/Subthreshold Leakage': 0.00614175, 'Execution Unit/Register Files/Integer RF/Subthreshold Leakage with power gating': 0.00246675, 'Execution Unit/Register Files/Peak Dynamic': 0.114581, 'Execution Unit/Register Files/Runtime Dynamic': 0.045418, 'Execution Unit/Register Files/Subthreshold Leakage': 0.0101387, 'Execution Unit/Register Files/Subthreshold Leakage with power gating': 0.00423643, 'Execution Unit/Results Broadcast Bus/Area Overhead': 0.0390912, 'Execution Unit/Results Broadcast Bus/Gate Leakage': 0.00537402, 'Execution Unit/Results Broadcast Bus/Peak Dynamic': 0.138832, 'Execution Unit/Results Broadcast Bus/Runtime Dynamic': 0.327911, 'Execution Unit/Results Broadcast Bus/Subthreshold Leakage': 0.081478, 'Execution Unit/Results Broadcast Bus/Subthreshold Leakage with power gating': 0.0305543, 'Execution Unit/Runtime Dynamic': 1.466, 'Execution Unit/Subthreshold Leakage': 1.79543, 'Execution Unit/Subthreshold Leakage with power gating': 0.688821, 'Gate Leakage': 0.368936, 'Instruction Fetch Unit/Area': 5.85939, 'Instruction Fetch Unit/Branch Predictor/Area': 0.138516, 'Instruction Fetch Unit/Branch Predictor/Chooser/Area': 0.0435221, 'Instruction Fetch Unit/Branch Predictor/Chooser/Gate Leakage': 0.000278362, 'Instruction Fetch Unit/Branch Predictor/Chooser/Peak Dynamic': 0.0168831, 'Instruction Fetch Unit/Branch Predictor/Chooser/Runtime Dynamic': 0.000569244, 'Instruction Fetch Unit/Branch Predictor/Chooser/Subthreshold Leakage': 0.00759719, 'Instruction Fetch Unit/Branch Predictor/Chooser/Subthreshold Leakage with power gating': 0.0039236, 'Instruction Fetch Unit/Branch Predictor/Gate Leakage': 0.000757657, 'Instruction Fetch Unit/Branch Predictor/Global Predictor/Area': 0.0435221, 'Instruction Fetch Unit/Branch Predictor/Global Predictor/Gate Leakage': 0.000278362, 'Instruction Fetch Unit/Branch Predictor/Global Predictor/Peak Dynamic': 0.0168831, 'Instruction Fetch Unit/Branch Predictor/Global Predictor/Runtime Dynamic': 0.000569244, 'Instruction Fetch Unit/Branch Predictor/Global Predictor/Subthreshold Leakage': 0.00759719, 'Instruction Fetch Unit/Branch Predictor/Global Predictor/Subthreshold Leakage with power gating': 0.0039236, 'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Area': 0.0257064, 'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Gate Leakage': 0.000154548, 'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Peak Dynamic': 0.0142575, 'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Runtime Dynamic': 0.000514967, 'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Subthreshold Leakage': 0.00384344, 'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Subthreshold Leakage with power gating': 0.00198631, 'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Area': 0.0151917, 'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Gate Leakage': 8.00196e-05, 'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Peak Dynamic': 0.00527447, 'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Runtime Dynamic': 0.000209829, 'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Subthreshold Leakage': 0.00181347, 'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Subthreshold Leakage with power gating': 0.000957045, 'Instruction Fetch Unit/Branch Predictor/Peak Dynamic': 0.0597838, 'Instruction Fetch Unit/Branch Predictor/RAS/Area': 0.0105732, 'Instruction Fetch Unit/Branch Predictor/RAS/Gate Leakage': 4.63858e-05, 'Instruction Fetch Unit/Branch Predictor/RAS/Peak Dynamic': 0.0117602, 'Instruction Fetch Unit/Branch Predictor/RAS/Runtime Dynamic': 0.000574722, 'Instruction Fetch Unit/Branch Predictor/RAS/Subthreshold Leakage': 0.000932505, 'Instruction Fetch Unit/Branch Predictor/RAS/Subthreshold Leakage with power gating': 0.000494733, 'Instruction Fetch Unit/Branch Predictor/Runtime Dynamic': 0.00222818, 'Instruction Fetch Unit/Branch Predictor/Subthreshold Leakage': 0.0199703, 'Instruction Fetch Unit/Branch Predictor/Subthreshold Leakage with power gating': 0.0103282, 'Instruction Fetch Unit/Branch Target Buffer/Area': 0.64954, 'Instruction Fetch Unit/Branch Target Buffer/Gate Leakage': 0.00272758, 'Instruction Fetch Unit/Branch Target Buffer/Peak Dynamic': 0.177867, 'Instruction Fetch Unit/Branch Target Buffer/Runtime Dynamic': 0.00477343, 'Instruction Fetch Unit/Branch Target Buffer/Subthreshold Leakage': 0.0811682, 'Instruction Fetch Unit/Branch Target Buffer/Subthreshold Leakage with power gating': 0.0435357, 'Instruction Fetch Unit/Gate Leakage': 0.0589979, 'Instruction Fetch Unit/Instruction Buffer/Area': 0.0226323, 'Instruction Fetch Unit/Instruction Buffer/Gate Leakage': 6.83558e-05, 'Instruction Fetch Unit/Instruction Buffer/Peak Dynamic': 0.606827, 'Instruction Fetch Unit/Instruction Buffer/Runtime Dynamic': 0.038461, 'Instruction Fetch Unit/Instruction Buffer/Subthreshold Leakage': 0.00151885, 'Instruction Fetch Unit/Instruction Buffer/Subthreshold Leakage with power gating': 0.000701682, 'Instruction Fetch Unit/Instruction Cache/Area': 3.14635, 'Instruction Fetch Unit/Instruction Cache/Gate Leakage': 0.029931, 'Instruction Fetch Unit/Instruction Cache/Peak Dynamic': 2.44645, 'Instruction Fetch Unit/Instruction Cache/Runtime Dynamic': 0.0992052, 'Instruction Fetch Unit/Instruction Cache/Subthreshold Leakage': 0.367022, 'Instruction Fetch Unit/Instruction Cache/Subthreshold Leakage with power gating': 0.180386, 'Instruction Fetch Unit/Instruction Decoder/Area': 1.85799, 'Instruction Fetch Unit/Instruction Decoder/Gate Leakage': 0.0222493, 'Instruction Fetch Unit/Instruction Decoder/Peak Dynamic': 1.37404, 'Instruction Fetch Unit/Instruction Decoder/Runtime Dynamic': 0.130631, 'Instruction Fetch Unit/Instruction Decoder/Subthreshold Leakage': 0.442943, 'Instruction Fetch Unit/Instruction Decoder/Subthreshold Leakage with power gating': 0.166104, 'Instruction Fetch Unit/Peak Dynamic': 4.78369, 'Instruction Fetch Unit/Runtime Dynamic': 0.275299, 'Instruction Fetch Unit/Subthreshold Leakage': 0.932286, 'Instruction Fetch Unit/Subthreshold Leakage with power gating': 0.40843, 'L2/Area': 4.53318, 'L2/Gate Leakage': 0.015464, 'L2/Peak Dynamic': 0.0398849, 'L2/Runtime Dynamic': 0.0072389, 'L2/Subthreshold Leakage': 0.834142, 'L2/Subthreshold Leakage with power gating': 0.401066, 'Load Store Unit/Area': 8.80901, 'Load Store Unit/Data Cache/Area': 6.84535, 'Load Store Unit/Data Cache/Gate Leakage': 0.0279261, 'Load Store Unit/Data Cache/Peak Dynamic': 2.62402, 'Load Store Unit/Data Cache/Runtime Dynamic': 0.67604, 'Load Store Unit/Data Cache/Subthreshold Leakage': 0.527675, 'Load Store Unit/Data Cache/Subthreshold Leakage with power gating': 0.25085, 'Load Store Unit/Gate Leakage': 0.0350888, 'Load Store Unit/LoadQ/Area': 0.0836782, 'Load Store Unit/LoadQ/Gate Leakage': 0.00059896, 'Load Store Unit/LoadQ/Peak Dynamic': 0.0448694, 'Load Store Unit/LoadQ/Runtime Dynamic': 0.0448695, 'Load Store Unit/LoadQ/Subthreshold Leakage': 0.00941961, 'Load Store Unit/LoadQ/Subthreshold Leakage with power gating': 0.00536918, 'Load Store Unit/Peak Dynamic': 2.8359, 'Load Store Unit/Runtime Dynamic': 0.94219, 'Load Store Unit/StoreQ/Area': 0.322079, 'Load Store Unit/StoreQ/Gate Leakage': 0.00329971, 'Load Store Unit/StoreQ/Peak Dynamic': 0.11064, 'Load Store Unit/StoreQ/Runtime Dynamic': 0.221281, 'Load Store Unit/StoreQ/Subthreshold Leakage': 0.0345621, 'Load Store Unit/StoreQ/Subthreshold Leakage with power gating': 0.0197004, 'Load Store Unit/Subthreshold Leakage': 0.591321, 'Load Store Unit/Subthreshold Leakage with power gating': 0.283293, 'Memory Management Unit/Area': 0.4339, 'Memory Management Unit/Dtlb/Area': 0.0879726, 'Memory Management Unit/Dtlb/Gate Leakage': 0.00088729, 'Memory Management Unit/Dtlb/Peak Dynamic': 0.0392666, 'Memory Management Unit/Dtlb/Runtime Dynamic': 0.0398373, 'Memory Management Unit/Dtlb/Subthreshold Leakage': 0.0155699, 'Memory Management Unit/Dtlb/Subthreshold Leakage with power gating': 0.00887485, 'Memory Management Unit/Gate Leakage': 0.00808595, 'Memory Management Unit/Itlb/Area': 0.301552, 'Memory Management Unit/Itlb/Gate Leakage': 0.00393464, 'Memory Management Unit/Itlb/Peak Dynamic': 0.152111, 'Memory Management Unit/Itlb/Runtime Dynamic': 0.0163474, 'Memory Management Unit/Itlb/Subthreshold Leakage': 0.0413758, 'Memory Management Unit/Itlb/Subthreshold Leakage with power gating': 0.0235842, 'Memory Management Unit/Peak Dynamic': 0.375673, 'Memory Management Unit/Runtime Dynamic': 0.0561847, 'Memory Management Unit/Subthreshold Leakage': 0.0766103, 'Memory Management Unit/Subthreshold Leakage with power gating': 0.0398333, 'Peak Dynamic': 16.1632, 'Renaming Unit/Area': 0.303608, 'Renaming Unit/FP Front End RAT/Area': 0.131045, 'Renaming Unit/FP Front End RAT/Gate Leakage': 0.00351123, 'Renaming Unit/FP Front End RAT/Peak Dynamic': 2.51468, 'Renaming Unit/FP Front End RAT/Runtime Dynamic': 0.14499, 'Renaming Unit/FP Front End RAT/Subthreshold Leakage': 0.0308571, 'Renaming Unit/FP Front End RAT/Subthreshold Leakage with power gating': 0.0175885, 'Renaming Unit/Free List/Area': 0.0340654, 'Renaming Unit/Free List/Gate Leakage': 2.5481e-05, 'Renaming Unit/Free List/Peak Dynamic': 0.0306032, 'Renaming Unit/Free List/Runtime Dynamic': 0.00758344, 'Renaming Unit/Free List/Subthreshold Leakage': 0.000370144, 'Renaming Unit/Free List/Subthreshold Leakage with power gating': 0.000201064, 'Renaming Unit/Gate Leakage': 0.00708398, 'Renaming Unit/Int Front End RAT/Area': 0.0941223, 'Renaming Unit/Int Front End RAT/Gate Leakage': 0.000283242, 'Renaming Unit/Int Front End RAT/Peak Dynamic': 0.731965, 'Renaming Unit/Int Front End RAT/Runtime Dynamic': 0.0629768, 'Renaming Unit/Int Front End RAT/Subthreshold Leakage': 0.00435488, 'Renaming Unit/Int Front End RAT/Subthreshold Leakage with power gating': 0.00248228, 'Renaming Unit/Peak Dynamic': 3.58947, 'Renaming Unit/Runtime Dynamic': 0.215551, 'Renaming Unit/Subthreshold Leakage': 0.0552466, 'Renaming Unit/Subthreshold Leakage with power gating': 0.0276461, 'Runtime Dynamic': 2.96246, 'Subthreshold Leakage': 6.16288, 'Subthreshold Leakage with power gating': 2.55328}, {'Area': 32.0201, 'Execution Unit/Area': 7.68434, 'Execution Unit/Complex ALUs/Area': 0.235435, 'Execution Unit/Complex ALUs/Gate Leakage': 0.0132646, 'Execution Unit/Complex ALUs/Peak Dynamic': 0.0529102, 'Execution Unit/Complex ALUs/Runtime Dynamic': 0.244246, 'Execution Unit/Complex ALUs/Subthreshold Leakage': 0.20111, 'Execution Unit/Complex ALUs/Subthreshold Leakage with power gating': 0.0754163, 'Execution Unit/Floating Point Units/Area': 4.6585, 'Execution Unit/Floating Point Units/Gate Leakage': 0.0656156, 'Execution Unit/Floating Point Units/Peak Dynamic': 0.270256, 'Execution Unit/Floating Point Units/Runtime Dynamic': 0.304033, 'Execution Unit/Floating Point Units/Subthreshold Leakage': 0.994829, 'Execution Unit/Floating Point Units/Subthreshold Leakage with power gating': 0.373061, 'Execution Unit/Gate Leakage': 0.120359, 'Execution Unit/Instruction Scheduler/Area': 1.66526, 'Execution Unit/Instruction Scheduler/FP Instruction Window/Area': 0.275653, 'Execution Unit/Instruction Scheduler/FP Instruction Window/Gate Leakage': 0.000977433, 'Execution Unit/Instruction Scheduler/FP Instruction Window/Peak Dynamic': 1.04181, 'Execution Unit/Instruction Scheduler/FP Instruction Window/Runtime Dynamic': 0.0878707, 'Execution Unit/Instruction Scheduler/FP Instruction Window/Subthreshold Leakage': 0.0143453, 'Execution Unit/Instruction Scheduler/FP Instruction Window/Subthreshold Leakage with power gating': 0.00810519, 'Execution Unit/Instruction Scheduler/Gate Leakage': 0.00568913, 'Execution Unit/Instruction Scheduler/Instruction Window/Area': 0.805223, 'Execution Unit/Instruction Scheduler/Instruction Window/Gate Leakage': 0.00414562, 'Execution Unit/Instruction Scheduler/Instruction Window/Peak Dynamic': 1.6763, 'Execution Unit/Instruction Scheduler/Instruction Window/Runtime Dynamic': 0.141732, 'Execution Unit/Instruction Scheduler/Instruction Window/Subthreshold Leakage': 0.0625755, 'Execution Unit/Instruction Scheduler/Instruction Window/Subthreshold Leakage with power gating': 0.0355964, 'Execution Unit/Instruction Scheduler/Peak Dynamic': 3.82262, 'Execution Unit/Instruction Scheduler/ROB/Area': 0.584388, 'Execution Unit/Instruction Scheduler/ROB/Gate Leakage': 0.00056608, 'Execution Unit/Instruction Scheduler/ROB/Peak Dynamic': 1.10451, 'Execution Unit/Instruction Scheduler/ROB/Runtime Dynamic': 0.0715416, 'Execution Unit/Instruction Scheduler/ROB/Subthreshold Leakage': 0.00906853, 'Execution Unit/Instruction Scheduler/ROB/Subthreshold Leakage with power gating': 0.00364446, 'Execution Unit/Instruction Scheduler/Runtime Dynamic': 0.301145, 'Execution Unit/Instruction Scheduler/Subthreshold Leakage': 0.0859892, 'Execution Unit/Instruction Scheduler/Subthreshold Leakage with power gating': 0.047346, 'Execution Unit/Integer ALUs/Area': 0.47087, 'Execution Unit/Integer ALUs/Gate Leakage': 0.0265291, 'Execution Unit/Integer ALUs/Peak Dynamic': 0.0590634, 'Execution Unit/Integer ALUs/Runtime Dynamic': 0.101344, 'Execution Unit/Integer ALUs/Subthreshold Leakage': 0.40222, 'Execution Unit/Integer ALUs/Subthreshold Leakage with power gating': 0.150833, 'Execution Unit/Peak Dynamic': 4.42336, 'Execution Unit/Register Files/Area': 0.570804, 'Execution Unit/Register Files/Floating Point RF/Area': 0.208131, 'Execution Unit/Register Files/Floating Point RF/Gate Leakage': 0.000232788, 'Execution Unit/Register Files/Floating Point RF/Peak Dynamic': 0.0510571, 'Execution Unit/Register Files/Floating Point RF/Runtime Dynamic': 0.00368569, 'Execution Unit/Register Files/Floating Point RF/Subthreshold Leakage': 0.00399698, 'Execution Unit/Register Files/Floating Point RF/Subthreshold Leakage with power gating': 0.00176968, 'Execution Unit/Register Files/Gate Leakage': 0.000622708, 'Execution Unit/Register Files/Integer RF/Area': 0.362673, 'Execution Unit/Register Files/Integer RF/Gate Leakage': 0.00038992, 'Execution Unit/Register Files/Integer RF/Peak Dynamic': 0.0470898, 'Execution Unit/Register Files/Integer RF/Runtime Dynamic': 0.0272579, 'Execution Unit/Register Files/Integer RF/Subthreshold Leakage': 0.00614175, 'Execution Unit/Register Files/Integer RF/Subthreshold Leakage with power gating': 0.00246675, 'Execution Unit/Register Files/Peak Dynamic': 0.0981469, 'Execution Unit/Register Files/Runtime Dynamic': 0.0309436, 'Execution Unit/Register Files/Subthreshold Leakage': 0.0101387, 'Execution Unit/Register Files/Subthreshold Leakage with power gating': 0.00423643, 'Execution Unit/Results Broadcast Bus/Area Overhead': 0.0390912, 'Execution Unit/Results Broadcast Bus/Gate Leakage': 0.00537402, 'Execution Unit/Results Broadcast Bus/Peak Dynamic': 0.112436, 'Execution Unit/Results Broadcast Bus/Runtime Dynamic': 0.232057, 'Execution Unit/Results Broadcast Bus/Subthreshold Leakage': 0.081478, 'Execution Unit/Results Broadcast Bus/Subthreshold Leakage with power gating': 0.0305543, 'Execution Unit/Runtime Dynamic': 1.21377, 'Execution Unit/Subthreshold Leakage': 1.79543, 'Execution Unit/Subthreshold Leakage with power gating': 0.688821, 'Gate Leakage': 0.368936, 'Instruction Fetch Unit/Area': 5.85939, 'Instruction Fetch Unit/Branch Predictor/Area': 0.138516, 'Instruction Fetch Unit/Branch Predictor/Chooser/Area': 0.0435221, 'Instruction Fetch Unit/Branch Predictor/Chooser/Gate Leakage': 0.000278362, 'Instruction Fetch Unit/Branch Predictor/Chooser/Peak Dynamic': 0.0168831, 'Instruction Fetch Unit/Branch Predictor/Chooser/Runtime Dynamic': 0.000249816, 'Instruction Fetch Unit/Branch Predictor/Chooser/Subthreshold Leakage': 0.00759719, 'Instruction Fetch Unit/Branch Predictor/Chooser/Subthreshold Leakage with power gating': 0.0039236, 'Instruction Fetch Unit/Branch Predictor/Gate Leakage': 0.000757657, 'Instruction Fetch Unit/Branch Predictor/Global Predictor/Area': 0.0435221, 'Instruction Fetch Unit/Branch Predictor/Global Predictor/Gate Leakage': 0.000278362, 'Instruction Fetch Unit/Branch Predictor/Global Predictor/Peak Dynamic': 0.0168831, 'Instruction Fetch Unit/Branch Predictor/Global Predictor/Runtime Dynamic': 0.000249816, 'Instruction Fetch Unit/Branch Predictor/Global Predictor/Subthreshold Leakage': 0.00759719, 'Instruction Fetch Unit/Branch Predictor/Global Predictor/Subthreshold Leakage with power gating': 0.0039236, 'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Area': 0.0257064, 'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Gate Leakage': 0.000154548, 'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Peak Dynamic': 0.0142575, 'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Runtime Dynamic': 0.000226678, 'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Subthreshold Leakage': 0.00384344, 'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Subthreshold Leakage with power gating': 0.00198631, 'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Area': 0.0151917, 'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Gate Leakage': 8.00196e-05, 'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Peak Dynamic': 0.00527447, 'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Runtime Dynamic': 9.27219e-05, 'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Subthreshold Leakage': 0.00181347, 'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Subthreshold Leakage with power gating': 0.000957045, 'Instruction Fetch Unit/Branch Predictor/Peak Dynamic': 0.0597838, 'Instruction Fetch Unit/Branch Predictor/RAS/Area': 0.0105732, 'Instruction Fetch Unit/Branch Predictor/RAS/Gate Leakage': 4.63858e-05, 'Instruction Fetch Unit/Branch Predictor/RAS/Peak Dynamic': 0.0117602, 'Instruction Fetch Unit/Branch Predictor/RAS/Runtime Dynamic': 0.000391563, 'Instruction Fetch Unit/Branch Predictor/RAS/Subthreshold Leakage': 0.000932505, 'Instruction Fetch Unit/Branch Predictor/RAS/Subthreshold Leakage with power gating': 0.000494733, 'Instruction Fetch Unit/Branch Predictor/Runtime Dynamic': 0.00111787, 'Instruction Fetch Unit/Branch Predictor/Subthreshold Leakage': 0.0199703, 'Instruction Fetch Unit/Branch Predictor/Subthreshold Leakage with power gating': 0.0103282, 'Instruction Fetch Unit/Branch Target Buffer/Area': 0.64954, 'Instruction Fetch Unit/Branch Target Buffer/Gate Leakage': 0.00272758, 'Instruction Fetch Unit/Branch Target Buffer/Peak Dynamic': 0.177867, 'Instruction Fetch Unit/Branch Target Buffer/Runtime Dynamic': 0.00207049, 'Instruction Fetch Unit/Branch Target Buffer/Subthreshold Leakage': 0.0811682, 'Instruction Fetch Unit/Branch Target Buffer/Subthreshold Leakage with power gating': 0.0435357, 'Instruction Fetch Unit/Gate Leakage': 0.0589979, 'Instruction Fetch Unit/Instruction Buffer/Area': 0.0226323, 'Instruction Fetch Unit/Instruction Buffer/Gate Leakage': 6.83558e-05, 'Instruction Fetch Unit/Instruction Buffer/Peak Dynamic': 0.606827, 'Instruction Fetch Unit/Instruction Buffer/Runtime Dynamic': 0.0262038, 'Instruction Fetch Unit/Instruction Buffer/Subthreshold Leakage': 0.00151885, 'Instruction Fetch Unit/Instruction Buffer/Subthreshold Leakage with power gating': 0.000701682, 'Instruction Fetch Unit/Instruction Cache/Area': 3.14635, 'Instruction Fetch Unit/Instruction Cache/Gate Leakage': 0.029931, 'Instruction Fetch Unit/Instruction Cache/Peak Dynamic': 1.66679, 'Instruction Fetch Unit/Instruction Cache/Runtime Dynamic': 0.0613393, 'Instruction Fetch Unit/Instruction Cache/Subthreshold Leakage': 0.367022, 'Instruction Fetch Unit/Instruction Cache/Subthreshold Leakage with power gating': 0.180386, 'Instruction Fetch Unit/Instruction Decoder/Area': 1.85799, 'Instruction Fetch Unit/Instruction Decoder/Gate Leakage': 0.0222493, 'Instruction Fetch Unit/Instruction Decoder/Peak Dynamic': 1.37404, 'Instruction Fetch Unit/Instruction Decoder/Runtime Dynamic': 0.0889998, 'Instruction Fetch Unit/Instruction Decoder/Subthreshold Leakage': 0.442943, 'Instruction Fetch Unit/Instruction Decoder/Subthreshold Leakage with power gating': 0.166104, 'Instruction Fetch Unit/Peak Dynamic': 3.96619, 'Instruction Fetch Unit/Runtime Dynamic': 0.179731, 'Instruction Fetch Unit/Subthreshold Leakage': 0.932286, 'Instruction Fetch Unit/Subthreshold Leakage with power gating': 0.40843, 'L2/Area': 4.53318, 'L2/Gate Leakage': 0.015464, 'L2/Peak Dynamic': 0.0285357, 'L2/Runtime Dynamic': 0.00792079, 'L2/Subthreshold Leakage': 0.834142, 'L2/Subthreshold Leakage with power gating': 0.401066, 'Load Store Unit/Area': 8.80901, 'Load Store Unit/Data Cache/Area': 6.84535, 'Load Store Unit/Data Cache/Gate Leakage': 0.0279261, 'Load Store Unit/Data Cache/Peak Dynamic': 1.99531, 'Load Store Unit/Data Cache/Runtime Dynamic': 0.376367, 'Load Store Unit/Data Cache/Subthreshold Leakage': 0.527675, 'Load Store Unit/Data Cache/Subthreshold Leakage with power gating': 0.25085, 'Load Store Unit/Gate Leakage': 0.0350888, 'Load Store Unit/LoadQ/Area': 0.0836782, 'Load Store Unit/LoadQ/Gate Leakage': 0.00059896, 'Load Store Unit/LoadQ/Peak Dynamic': 0.0245292, 'Load Store Unit/LoadQ/Runtime Dynamic': 0.0245291, 'Load Store Unit/LoadQ/Subthreshold Leakage': 0.00941961, 'Load Store Unit/LoadQ/Subthreshold Leakage with power gating': 0.00536918, 'Load Store Unit/Peak Dynamic': 2.11114, 'Load Store Unit/Runtime Dynamic': 0.521865, 'Load Store Unit/StoreQ/Area': 0.322079, 'Load Store Unit/StoreQ/Gate Leakage': 0.00329971, 'Load Store Unit/StoreQ/Peak Dynamic': 0.0604848, 'Load Store Unit/StoreQ/Runtime Dynamic': 0.120969, 'Load Store Unit/StoreQ/Subthreshold Leakage': 0.0345621, 'Load Store Unit/StoreQ/Subthreshold Leakage with power gating': 0.0197004, 'Load Store Unit/Subthreshold Leakage': 0.591321, 'Load Store Unit/Subthreshold Leakage with power gating': 0.283293, 'Memory Management Unit/Area': 0.4339, 'Memory Management Unit/Dtlb/Area': 0.0879726, 'Memory Management Unit/Dtlb/Gate Leakage': 0.00088729, 'Memory Management Unit/Dtlb/Peak Dynamic': 0.0214663, 'Memory Management Unit/Dtlb/Runtime Dynamic': 0.0218912, 'Memory Management Unit/Dtlb/Subthreshold Leakage': 0.0155699, 'Memory Management Unit/Dtlb/Subthreshold Leakage with power gating': 0.00887485, 'Memory Management Unit/Gate Leakage': 0.00808595, 'Memory Management Unit/Itlb/Area': 0.301552, 'Memory Management Unit/Itlb/Gate Leakage': 0.00393464, 'Memory Management Unit/Itlb/Peak Dynamic': 0.103635, 'Memory Management Unit/Itlb/Runtime Dynamic': 0.0100662, 'Memory Management Unit/Itlb/Subthreshold Leakage': 0.0413758, 'Memory Management Unit/Itlb/Subthreshold Leakage with power gating': 0.0235842, 'Memory Management Unit/Peak Dynamic': 0.296619, 'Memory Management Unit/Runtime Dynamic': 0.0319575, 'Memory Management Unit/Subthreshold Leakage': 0.0766103, 'Memory Management Unit/Subthreshold Leakage with power gating': 0.0398333, 'Peak Dynamic': 14.4153, 'Renaming Unit/Area': 0.303608, 'Renaming Unit/FP Front End RAT/Area': 0.131045, 'Renaming Unit/FP Front End RAT/Gate Leakage': 0.00351123, 'Renaming Unit/FP Front End RAT/Peak Dynamic': 2.51468, 'Renaming Unit/FP Front End RAT/Runtime Dynamic': 0.134308, 'Renaming Unit/FP Front End RAT/Subthreshold Leakage': 0.0308571, 'Renaming Unit/FP Front End RAT/Subthreshold Leakage with power gating': 0.0175885, 'Renaming Unit/Free List/Area': 0.0340654, 'Renaming Unit/Free List/Gate Leakage': 2.5481e-05, 'Renaming Unit/Free List/Peak Dynamic': 0.0306032, 'Renaming Unit/Free List/Runtime Dynamic': 0.00559899, 'Renaming Unit/Free List/Subthreshold Leakage': 0.000370144, 'Renaming Unit/Free List/Subthreshold Leakage with power gating': 0.000201064, 'Renaming Unit/Gate Leakage': 0.00708398, 'Renaming Unit/Int Front End RAT/Area': 0.0941223, 'Renaming Unit/Int Front End RAT/Gate Leakage': 0.000283242, 'Renaming Unit/Int Front End RAT/Peak Dynamic': 0.731965, 'Renaming Unit/Int Front End RAT/Runtime Dynamic': 0.0419014, 'Renaming Unit/Int Front End RAT/Subthreshold Leakage': 0.00435488, 'Renaming Unit/Int Front End RAT/Subthreshold Leakage with power gating': 0.00248228, 'Renaming Unit/Peak Dynamic': 3.58947, 'Renaming Unit/Runtime Dynamic': 0.181809, 'Renaming Unit/Subthreshold Leakage': 0.0552466, 'Renaming Unit/Subthreshold Leakage with power gating': 0.0276461, 'Runtime Dynamic': 2.13705, 'Subthreshold Leakage': 6.16288, 'Subthreshold Leakage with power gating': 2.55328}], 'DRAM': {'Area': 0, 'Gate Leakage': 0, 'Peak Dynamic': 5.992947460345098, 'Runtime Dynamic': 5.992947460345098, 'Subthreshold Leakage': 4.252, 'Subthreshold Leakage with power gating': 4.252}, 'L3': [{'Area': 61.9075, 'Gate Leakage': 0.0484137, 'Peak Dynamic': 0.282264, 'Runtime Dynamic': 0.0831713, 'Subthreshold Leakage': 6.80085, 'Subthreshold Leakage with power gating': 3.32364}], 'Processor': {'Area': 191.908, 'Gate Leakage': 1.53485, 'Peak Dynamic': 73.8327, 'Peak Power': 106.945, 'Runtime Dynamic': 15.6615, 'Subthreshold Leakage': 31.5774, 'Subthreshold Leakage with power gating': 13.9484, 'Total Cores/Area': 128.669, 'Total Cores/Gate Leakage': 1.4798, 'Total Cores/Peak Dynamic': 73.5505, 'Total Cores/Runtime Dynamic': 15.5783, 'Total Cores/Subthreshold Leakage': 24.7074, 'Total Cores/Subthreshold Leakage with power gating': 10.2429, 'Total L3s/Area': 61.9075, 'Total L3s/Gate Leakage': 0.0484137, 'Total L3s/Peak Dynamic': 0.282264, 'Total L3s/Runtime Dynamic': 0.0831713, 'Total L3s/Subthreshold Leakage': 6.80085, 'Total L3s/Subthreshold Leakage with power gating': 3.32364, 'Total Leakage': 33.1122, 'Total NoCs/Area': 1.33155, 'Total NoCs/Gate Leakage': 0.00662954, 'Total NoCs/Peak Dynamic': 0.0, 'Total NoCs/Runtime Dynamic': 0.0, 'Total NoCs/Subthreshold Leakage': 0.0691322, 'Total NoCs/Subthreshold Leakage with power gating': 0.0259246}}
power = {'BUSES': {'Area': 1.33155, 'Bus/Area': 1.33155, 'Bus/Gate Leakage': 0.00662954, 'Bus/Peak Dynamic': 0.0, 'Bus/Runtime Dynamic': 0.0, 'Bus/Subthreshold Leakage': 0.0691322, 'Bus/Subthreshold Leakage with power gating': 0.0259246, 'Gate Leakage': 0.00662954, 'Peak Dynamic': 0.0, 'Runtime Dynamic': 0.0, 'Subthreshold Leakage': 0.0691322, 'Subthreshold Leakage with power gating': 0.0259246}, 'Core': [{'Area': 32.6082, 'Execution Unit/Area': 8.2042, 'Execution Unit/Complex ALUs/Area': 0.235435, 'Execution Unit/Complex ALUs/Gate Leakage': 0.0132646, 'Execution Unit/Complex ALUs/Peak Dynamic': 0.113472, 'Execution Unit/Complex ALUs/Runtime Dynamic': 0.291815, 'Execution Unit/Complex ALUs/Subthreshold Leakage': 0.20111, 'Execution Unit/Complex ALUs/Subthreshold Leakage with power gating': 0.0754163, 'Execution Unit/Floating Point Units/Area': 4.6585, 'Execution Unit/Floating Point Units/Gate Leakage': 0.0656156, 'Execution Unit/Floating Point Units/Peak Dynamic': 0.692681, 'Execution Unit/Floating Point Units/Runtime Dynamic': 0.304033, 'Execution Unit/Floating Point Units/Subthreshold Leakage': 0.994829, 'Execution Unit/Floating Point Units/Subthreshold Leakage with power gating': 0.373061, 'Execution Unit/Gate Leakage': 0.122718, 'Execution Unit/Instruction Scheduler/Area': 2.17927, 'Execution Unit/Instruction Scheduler/FP Instruction Window/Area': 0.328073, 'Execution Unit/Instruction Scheduler/FP Instruction Window/Gate Leakage': 0.00115349, 'Execution Unit/Instruction Scheduler/FP Instruction Window/Peak Dynamic': 1.20978, 'Execution Unit/Instruction Scheduler/FP Instruction Window/Runtime Dynamic': 0.367774, 'Execution Unit/Instruction Scheduler/FP Instruction Window/Subthreshold Leakage': 0.017004, 'Execution Unit/Instruction Scheduler/FP Instruction Window/Subthreshold Leakage with power gating': 0.00962066, 'Execution Unit/Instruction Scheduler/Gate Leakage': 0.00730101, 'Execution Unit/Instruction Scheduler/Instruction Window/Area': 1.00996, 'Execution Unit/Instruction Scheduler/Instruction Window/Gate Leakage': 0.00529112, 'Execution Unit/Instruction Scheduler/Instruction Window/Peak Dynamic': 2.07911, 'Execution Unit/Instruction Scheduler/Instruction Window/Runtime Dynamic': 0.636852, 'Execution Unit/Instruction Scheduler/Instruction Window/Subthreshold Leakage': 0.0800117, 'Execution Unit/Instruction Scheduler/Instruction Window/Subthreshold Leakage with power gating': 0.0455351, 'Execution Unit/Instruction Scheduler/Peak Dynamic': 4.84781, 'Execution Unit/Instruction Scheduler/ROB/Area': 0.841232, 'Execution Unit/Instruction Scheduler/ROB/Gate Leakage': 0.000856399, 'Execution Unit/Instruction Scheduler/ROB/Peak Dynamic': 1.55892, 'Execution Unit/Instruction Scheduler/ROB/Runtime Dynamic': 0.365253, 'Execution Unit/Instruction Scheduler/ROB/Subthreshold Leakage': 0.0178624, 'Execution Unit/Instruction Scheduler/ROB/Subthreshold Leakage with power gating': 0.00897339, 'Execution Unit/Instruction Scheduler/Runtime Dynamic': 1.36988, 'Execution Unit/Instruction Scheduler/Subthreshold Leakage': 0.114878, 'Execution Unit/Instruction Scheduler/Subthreshold Leakage with power gating': 0.0641291, 'Execution Unit/Integer ALUs/Area': 0.47087, 'Execution Unit/Integer ALUs/Gate Leakage': 0.0265291, 'Execution Unit/Integer ALUs/Peak Dynamic': 0.257333, 'Execution Unit/Integer ALUs/Runtime Dynamic': 0.101344, 'Execution Unit/Integer ALUs/Subthreshold Leakage': 0.40222, 'Execution Unit/Integer ALUs/Subthreshold Leakage with power gating': 0.150833, 'Execution Unit/Peak Dynamic': 6.5717, 'Execution Unit/Register Files/Area': 0.570804, 'Execution Unit/Register Files/Floating Point RF/Area': 0.208131, 'Execution Unit/Register Files/Floating Point RF/Gate Leakage': 0.000232788, 'Execution Unit/Register Files/Floating Point RF/Peak Dynamic': 0.130862, 'Execution Unit/Register Files/Floating Point RF/Runtime Dynamic': 0.0133321, 'Execution Unit/Register Files/Floating Point RF/Subthreshold Leakage': 0.00399698, 'Execution Unit/Register Files/Floating Point RF/Subthreshold Leakage with power gating': 0.00176968, 'Execution Unit/Register Files/Gate Leakage': 0.000622708, 'Execution Unit/Register Files/Integer RF/Area': 0.362673, 'Execution Unit/Register Files/Integer RF/Gate Leakage': 0.00038992, 'Execution Unit/Register Files/Integer RF/Peak Dynamic': 0.135642, 'Execution Unit/Register Files/Integer RF/Runtime Dynamic': 0.0985991, 'Execution Unit/Register Files/Integer RF/Subthreshold Leakage': 0.00614175, 'Execution Unit/Register Files/Integer RF/Subthreshold Leakage with power gating': 0.00246675, 'Execution Unit/Register Files/Peak Dynamic': 0.266504, 'Execution Unit/Register Files/Runtime Dynamic': 0.111931, 'Execution Unit/Register Files/Subthreshold Leakage': 0.0101387, 'Execution Unit/Register Files/Subthreshold Leakage with power gating': 0.00423643, 'Execution Unit/Results Broadcast Bus/Area Overhead': 0.0442632, 'Execution Unit/Results Broadcast Bus/Gate Leakage': 0.00607074, 'Execution Unit/Results Broadcast Bus/Peak Dynamic': 0.358853, 'Execution Unit/Results Broadcast Bus/Runtime Dynamic': 0.918468, 'Execution Unit/Results Broadcast Bus/Subthreshold Leakage': 0.0920413, 'Execution Unit/Results Broadcast Bus/Subthreshold Leakage with power gating': 0.0345155, 'Execution Unit/Runtime Dynamic': 3.09747, 'Execution Unit/Subthreshold Leakage': 1.83518, 'Execution Unit/Subthreshold Leakage with power gating': 0.709678, 'Gate Leakage': 0.372997, 'Instruction Fetch Unit/Area': 5.86007, 'Instruction Fetch Unit/Branch Predictor/Area': 0.138516, 'Instruction Fetch Unit/Branch Predictor/Chooser/Area': 0.0435221, 'Instruction Fetch Unit/Branch Predictor/Chooser/Gate Leakage': 0.000278362, 'Instruction Fetch Unit/Branch Predictor/Chooser/Peak Dynamic': 0.0168831, 'Instruction Fetch Unit/Branch Predictor/Chooser/Runtime Dynamic': 0.00133722, 'Instruction Fetch Unit/Branch Predictor/Chooser/Subthreshold Leakage': 0.00759719, 'Instruction Fetch Unit/Branch Predictor/Chooser/Subthreshold Leakage with power gating': 0.0039236, 'Instruction Fetch Unit/Branch Predictor/Gate Leakage': 0.000757657, 'Instruction Fetch Unit/Branch Predictor/Global Predictor/Area': 0.0435221, 'Instruction Fetch Unit/Branch Predictor/Global Predictor/Gate Leakage': 0.000278362, 'Instruction Fetch Unit/Branch Predictor/Global Predictor/Peak Dynamic': 0.0168831, 'Instruction Fetch Unit/Branch Predictor/Global Predictor/Runtime Dynamic': 0.00133722, 'Instruction Fetch Unit/Branch Predictor/Global Predictor/Subthreshold Leakage': 0.00759719, 'Instruction Fetch Unit/Branch Predictor/Global Predictor/Subthreshold Leakage with power gating': 0.0039236, 'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Area': 0.0257064, 'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Gate Leakage': 0.000154548, 'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Peak Dynamic': 0.0142575, 'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Runtime Dynamic': 0.00117013, 'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Subthreshold Leakage': 0.00384344, 'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Subthreshold Leakage with power gating': 0.00198631, 'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Area': 0.0151917, 'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Gate Leakage': 8.00196e-05, 'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Peak Dynamic': 0.00527447, 'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Runtime Dynamic': 0.000455941, 'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Subthreshold Leakage': 0.00181347, 'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Subthreshold Leakage with power gating': 0.000957045, 'Instruction Fetch Unit/Branch Predictor/Peak Dynamic': 0.0597838, 'Instruction Fetch Unit/Branch Predictor/RAS/Area': 0.0105732, 'Instruction Fetch Unit/Branch Predictor/RAS/Gate Leakage': 4.63858e-05, 'Instruction Fetch Unit/Branch Predictor/RAS/Peak Dynamic': 0.0117602, 'Instruction Fetch Unit/Branch Predictor/RAS/Runtime Dynamic': 0.00141638, 'Instruction Fetch Unit/Branch Predictor/RAS/Subthreshold Leakage': 0.000932505, 'Instruction Fetch Unit/Branch Predictor/RAS/Subthreshold Leakage with power gating': 0.000494733, 'Instruction Fetch Unit/Branch Predictor/Runtime Dynamic': 0.00526096, 'Instruction Fetch Unit/Branch Predictor/Subthreshold Leakage': 0.0199703, 'Instruction Fetch Unit/Branch Predictor/Subthreshold Leakage with power gating': 0.0103282, 'Instruction Fetch Unit/Branch Target Buffer/Area': 0.64954, 'Instruction Fetch Unit/Branch Target Buffer/Gate Leakage': 0.00272758, 'Instruction Fetch Unit/Branch Target Buffer/Peak Dynamic': 0.177867, 'Instruction Fetch Unit/Branch Target Buffer/Runtime Dynamic': 0.0126276, 'Instruction Fetch Unit/Branch Target Buffer/Subthreshold Leakage': 0.0811682, 'Instruction Fetch Unit/Branch Target Buffer/Subthreshold Leakage with power gating': 0.0435357, 'Instruction Fetch Unit/Gate Leakage': 0.0590479, 'Instruction Fetch Unit/Instruction Buffer/Area': 0.0226323, 'Instruction Fetch Unit/Instruction Buffer/Gate Leakage': 6.83558e-05, 'Instruction Fetch Unit/Instruction Buffer/Peak Dynamic': 0.606827, 'Instruction Fetch Unit/Instruction Buffer/Runtime Dynamic': 0.0947859, 'Instruction Fetch Unit/Instruction Buffer/Subthreshold Leakage': 0.00151885, 'Instruction Fetch Unit/Instruction Buffer/Subthreshold Leakage with power gating': 0.000701682, 'Instruction Fetch Unit/Instruction Cache/Area': 3.14635, 'Instruction Fetch Unit/Instruction Cache/Gate Leakage': 0.029931, 'Instruction Fetch Unit/Instruction Cache/Peak Dynamic': 6.02919, 'Instruction Fetch Unit/Instruction Cache/Runtime Dynamic': 0.266465, 'Instruction Fetch Unit/Instruction Cache/Subthreshold Leakage': 0.367022, 'Instruction Fetch Unit/Instruction Cache/Subthreshold Leakage with power gating': 0.180386, 'Instruction Fetch Unit/Instruction Decoder/Area': 1.85799, 'Instruction Fetch Unit/Instruction Decoder/Gate Leakage': 0.0222493, 'Instruction Fetch Unit/Instruction Decoder/Peak Dynamic': 1.37404, 'Instruction Fetch Unit/Instruction Decoder/Runtime Dynamic': 0.321935, 'Instruction Fetch Unit/Instruction Decoder/Subthreshold Leakage': 0.442943, 'Instruction Fetch Unit/Instruction Decoder/Subthreshold Leakage with power gating': 0.166104, 'Instruction Fetch Unit/Peak Dynamic': 8.54479, 'Instruction Fetch Unit/Runtime Dynamic': 0.701075, 'Instruction Fetch Unit/Subthreshold Leakage': 0.932587, 'Instruction Fetch Unit/Subthreshold Leakage with power gating': 0.408542, 'L2/Area': 4.53318, 'L2/Gate Leakage': 0.015464, 'L2/Peak Dynamic': 0.0784516, 'L2/Runtime Dynamic': 0.0170574, 'L2/Subthreshold Leakage': 0.834142, 'L2/Subthreshold Leakage with power gating': 0.401066, 'Load Store Unit/Area': 8.80969, 'Load Store Unit/Data Cache/Area': 6.84535, 'Load Store Unit/Data Cache/Gate Leakage': 0.0279261, 'Load Store Unit/Data Cache/Peak Dynamic': 4.87526, 'Load Store Unit/Data Cache/Runtime Dynamic': 1.76986, 'Load Store Unit/Data Cache/Subthreshold Leakage': 0.527675, 'Load Store Unit/Data Cache/Subthreshold Leakage with power gating': 0.25085, 'Load Store Unit/Gate Leakage': 0.0351387, 'Load Store Unit/LoadQ/Area': 0.0836782, 'Load Store Unit/LoadQ/Gate Leakage': 0.00059896, 'Load Store Unit/LoadQ/Peak Dynamic': 0.117703, 'Load Store Unit/LoadQ/Runtime Dynamic': 0.117702, 'Load Store Unit/LoadQ/Subthreshold Leakage': 0.00941961, 'Load Store Unit/LoadQ/Subthreshold Leakage with power gating': 0.00536918, 'Load Store Unit/Peak Dynamic': 5.43334, 'Load Store Unit/Runtime Dynamic': 2.46803, 'Load Store Unit/StoreQ/Area': 0.322079, 'Load Store Unit/StoreQ/Gate Leakage': 0.00329971, 'Load Store Unit/StoreQ/Peak Dynamic': 0.290234, 'Load Store Unit/StoreQ/Runtime Dynamic': 0.580469, 'Load Store Unit/StoreQ/Subthreshold Leakage': 0.0345621, 'Load Store Unit/StoreQ/Subthreshold Leakage with power gating': 0.0197004, 'Load Store Unit/Subthreshold Leakage': 0.591622, 'Load Store Unit/Subthreshold Leakage with power gating': 0.283406, 'Memory Management Unit/Area': 0.434579, 'Memory Management Unit/Dtlb/Area': 0.0879726, 'Memory Management Unit/Dtlb/Gate Leakage': 0.00088729, 'Memory Management Unit/Dtlb/Peak Dynamic': 0.103005, 'Memory Management Unit/Dtlb/Runtime Dynamic': 0.104066, 'Memory Management Unit/Dtlb/Subthreshold Leakage': 0.0155699, 'Memory Management Unit/Dtlb/Subthreshold Leakage with power gating': 0.00887485, 'Memory Management Unit/Gate Leakage': 0.00813591, 'Memory Management Unit/Itlb/Area': 0.301552, 'Memory Management Unit/Itlb/Gate Leakage': 0.00393464, 'Memory Management Unit/Itlb/Peak Dynamic': 0.374873, 'Memory Management Unit/Itlb/Runtime Dynamic': 0.0440318, 'Memory Management Unit/Itlb/Subthreshold Leakage': 0.0413758, 'Memory Management Unit/Itlb/Subthreshold Leakage with power gating': 0.0235842, 'Memory Management Unit/Peak Dynamic': 0.711448, 'Memory Management Unit/Runtime Dynamic': 0.148097, 'Memory Management Unit/Subthreshold Leakage': 0.0769113, 'Memory Management Unit/Subthreshold Leakage with power gating': 0.0399462, 'Peak Dynamic': 25.9014, 'Renaming Unit/Area': 0.369768, 'Renaming Unit/FP Front End RAT/Area': 0.168486, 'Renaming Unit/FP Front End RAT/Gate Leakage': 0.00489731, 'Renaming Unit/FP Front End RAT/Peak Dynamic': 3.33511, 'Renaming Unit/FP Front End RAT/Runtime Dynamic': 0.456548, 'Renaming Unit/FP Front End RAT/Subthreshold Leakage': 0.0437281, 'Renaming Unit/FP Front End RAT/Subthreshold Leakage with power gating': 0.024925, 'Renaming Unit/Free List/Area': 0.0414755, 'Renaming Unit/Free List/Gate Leakage': 4.15911e-05, 'Renaming Unit/Free List/Peak Dynamic': 0.0401324, 'Renaming Unit/Free List/Runtime Dynamic': 0.0242997, 'Renaming Unit/Free List/Subthreshold Leakage': 0.000670426, 'Renaming Unit/Free List/Subthreshold Leakage with power gating': 0.000377987, 'Renaming Unit/Gate Leakage': 0.00863632, 'Renaming Unit/Int Front End RAT/Area': 0.114751, 'Renaming Unit/Int Front End RAT/Gate Leakage': 0.00038343, 'Renaming Unit/Int Front End RAT/Peak Dynamic': 0.86945, 'Renaming Unit/Int Front End RAT/Runtime Dynamic': 0.182883, 'Renaming Unit/Int Front End RAT/Subthreshold Leakage': 0.00611897, 'Renaming Unit/Int Front End RAT/Subthreshold Leakage with power gating': 0.00348781, 'Renaming Unit/Peak Dynamic': 4.56169, 'Renaming Unit/Runtime Dynamic': 0.663731, 'Renaming Unit/Subthreshold Leakage': 0.070483, 'Renaming Unit/Subthreshold Leakage with power gating': 0.0362779, 'Runtime Dynamic': 7.09547, 'Subthreshold Leakage': 6.21877, 'Subthreshold Leakage with power gating': 2.58311}, {'Area': 32.0201, 'Execution Unit/Area': 7.68434, 'Execution Unit/Complex ALUs/Area': 0.235435, 'Execution Unit/Complex ALUs/Gate Leakage': 0.0132646, 'Execution Unit/Complex ALUs/Peak Dynamic': 0.0503463, 'Execution Unit/Complex ALUs/Runtime Dynamic': 0.242233, 'Execution Unit/Complex ALUs/Subthreshold Leakage': 0.20111, 'Execution Unit/Complex ALUs/Subthreshold Leakage with power gating': 0.0754163, 'Execution Unit/Floating Point Units/Area': 4.6585, 'Execution Unit/Floating Point Units/Gate Leakage': 0.0656156, 'Execution Unit/Floating Point Units/Peak Dynamic': 0.298709, 'Execution Unit/Floating Point Units/Runtime Dynamic': 0.304033, 'Execution Unit/Floating Point Units/Subthreshold Leakage': 0.994829, 'Execution Unit/Floating Point Units/Subthreshold Leakage with power gating': 0.373061, 'Execution Unit/Gate Leakage': 0.120359, 'Execution Unit/Instruction Scheduler/Area': 1.66526, 'Execution Unit/Instruction Scheduler/FP Instruction Window/Area': 0.275653, 'Execution Unit/Instruction Scheduler/FP Instruction Window/Gate Leakage': 0.000977433, 'Execution Unit/Instruction Scheduler/FP Instruction Window/Peak Dynamic': 1.04181, 'Execution Unit/Instruction Scheduler/FP Instruction Window/Runtime Dynamic': 0.15454, 'Execution Unit/Instruction Scheduler/FP Instruction Window/Subthreshold Leakage': 0.0143453, 'Execution Unit/Instruction Scheduler/FP Instruction Window/Subthreshold Leakage with power gating': 0.00810519, 'Execution Unit/Instruction Scheduler/Gate Leakage': 0.00568913, 'Execution Unit/Instruction Scheduler/Instruction Window/Area': 0.805223, 'Execution Unit/Instruction Scheduler/Instruction Window/Gate Leakage': 0.00414562, 'Execution Unit/Instruction Scheduler/Instruction Window/Peak Dynamic': 1.6763, 'Execution Unit/Instruction Scheduler/Instruction Window/Runtime Dynamic': 0.249267, 'Execution Unit/Instruction Scheduler/Instruction Window/Subthreshold Leakage': 0.0625755, 'Execution Unit/Instruction Scheduler/Instruction Window/Subthreshold Leakage with power gating': 0.0355964, 'Execution Unit/Instruction Scheduler/Peak Dynamic': 3.82262, 'Execution Unit/Instruction Scheduler/ROB/Area': 0.584388, 'Execution Unit/Instruction Scheduler/ROB/Gate Leakage': 0.00056608, 'Execution Unit/Instruction Scheduler/ROB/Peak Dynamic': 1.10451, 'Execution Unit/Instruction Scheduler/ROB/Runtime Dynamic': 0.125822, 'Execution Unit/Instruction Scheduler/ROB/Subthreshold Leakage': 0.00906853, 'Execution Unit/Instruction Scheduler/ROB/Subthreshold Leakage with power gating': 0.00364446, 'Execution Unit/Instruction Scheduler/Runtime Dynamic': 0.529629, 'Execution Unit/Instruction Scheduler/Subthreshold Leakage': 0.0859892, 'Execution Unit/Instruction Scheduler/Subthreshold Leakage with power gating': 0.047346, 'Execution Unit/Integer ALUs/Area': 0.47087, 'Execution Unit/Integer ALUs/Gate Leakage': 0.0265291, 'Execution Unit/Integer ALUs/Peak Dynamic': 0.130953, 'Execution Unit/Integer ALUs/Runtime Dynamic': 0.101344, 'Execution Unit/Integer ALUs/Subthreshold Leakage': 0.40222, 'Execution Unit/Integer ALUs/Subthreshold Leakage with power gating': 0.150833, 'Execution Unit/Peak Dynamic': 4.59001, 'Execution Unit/Register Files/Area': 0.570804, 'Execution Unit/Register Files/Floating Point RF/Area': 0.208131, 'Execution Unit/Register Files/Floating Point RF/Gate Leakage': 0.000232788, 'Execution Unit/Register Files/Floating Point RF/Peak Dynamic': 0.0564325, 'Execution Unit/Register Files/Floating Point RF/Runtime Dynamic': 0.00648211, 'Execution Unit/Register Files/Floating Point RF/Subthreshold Leakage': 0.00399698, 'Execution Unit/Register Files/Floating Point RF/Subthreshold Leakage with power gating': 0.00176968, 'Execution Unit/Register Files/Gate Leakage': 0.000622708, 'Execution Unit/Register Files/Integer RF/Area': 0.362673, 'Execution Unit/Register Files/Integer RF/Gate Leakage': 0.00038992, 'Execution Unit/Register Files/Integer RF/Peak Dynamic': 0.064632, 'Execution Unit/Register Files/Integer RF/Runtime Dynamic': 0.0479391, 'Execution Unit/Register Files/Integer RF/Subthreshold Leakage': 0.00614175, 'Execution Unit/Register Files/Integer RF/Subthreshold Leakage with power gating': 0.00246675, 'Execution Unit/Register Files/Peak Dynamic': 0.121065, 'Execution Unit/Register Files/Runtime Dynamic': 0.0544213, 'Execution Unit/Register Files/Subthreshold Leakage': 0.0101387, 'Execution Unit/Register Files/Subthreshold Leakage with power gating': 0.00423643, 'Execution Unit/Results Broadcast Bus/Area Overhead': 0.0390912, 'Execution Unit/Results Broadcast Bus/Gate Leakage': 0.00537402, 'Execution Unit/Results Broadcast Bus/Peak Dynamic': 0.148751, 'Execution Unit/Results Broadcast Bus/Runtime Dynamic': 0.372135, 'Execution Unit/Results Broadcast Bus/Subthreshold Leakage': 0.081478, 'Execution Unit/Results Broadcast Bus/Subthreshold Leakage with power gating': 0.0305543, 'Execution Unit/Runtime Dynamic': 1.6038, 'Execution Unit/Subthreshold Leakage': 1.79543, 'Execution Unit/Subthreshold Leakage with power gating': 0.688821, 'Gate Leakage': 0.368936, 'Instruction Fetch Unit/Area': 5.85939, 'Instruction Fetch Unit/Branch Predictor/Area': 0.138516, 'Instruction Fetch Unit/Branch Predictor/Chooser/Area': 0.0435221, 'Instruction Fetch Unit/Branch Predictor/Chooser/Gate Leakage': 0.000278362, 'Instruction Fetch Unit/Branch Predictor/Chooser/Peak Dynamic': 0.0168831, 'Instruction Fetch Unit/Branch Predictor/Chooser/Runtime Dynamic': 0.000917974, 'Instruction Fetch Unit/Branch Predictor/Chooser/Subthreshold Leakage': 0.00759719, 'Instruction Fetch Unit/Branch Predictor/Chooser/Subthreshold Leakage with power gating': 0.0039236, 'Instruction Fetch Unit/Branch Predictor/Gate Leakage': 0.000757657, 'Instruction Fetch Unit/Branch Predictor/Global Predictor/Area': 0.0435221, 'Instruction Fetch Unit/Branch Predictor/Global Predictor/Gate Leakage': 0.000278362, 'Instruction Fetch Unit/Branch Predictor/Global Predictor/Peak Dynamic': 0.0168831, 'Instruction Fetch Unit/Branch Predictor/Global Predictor/Runtime Dynamic': 0.000917974, 'Instruction Fetch Unit/Branch Predictor/Global Predictor/Subthreshold Leakage': 0.00759719, 'Instruction Fetch Unit/Branch Predictor/Global Predictor/Subthreshold Leakage with power gating': 0.0039236, 'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Area': 0.0257064, 'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Gate Leakage': 0.000154548, 'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Peak Dynamic': 0.0142575, 'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Runtime Dynamic': 0.000825619, 'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Subthreshold Leakage': 0.00384344, 'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Subthreshold Leakage with power gating': 0.00198631, 'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Area': 0.0151917, 'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Gate Leakage': 8.00196e-05, 'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Peak Dynamic': 0.00527447, 'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Runtime Dynamic': 0.000333866, 'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Subthreshold Leakage': 0.00181347, 'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Subthreshold Leakage with power gating': 0.000957045, 'Instruction Fetch Unit/Branch Predictor/Peak Dynamic': 0.0597838, 'Instruction Fetch Unit/Branch Predictor/RAS/Area': 0.0105732, 'Instruction Fetch Unit/Branch Predictor/RAS/Gate Leakage': 4.63858e-05, 'Instruction Fetch Unit/Branch Predictor/RAS/Peak Dynamic': 0.0117602, 'Instruction Fetch Unit/Branch Predictor/RAS/Runtime Dynamic': 0.00068865, 'Instruction Fetch Unit/Branch Predictor/RAS/Subthreshold Leakage': 0.000932505, 'Instruction Fetch Unit/Branch Predictor/RAS/Subthreshold Leakage with power gating': 0.000494733, 'Instruction Fetch Unit/Branch Predictor/Runtime Dynamic': 0.00335022, 'Instruction Fetch Unit/Branch Predictor/Subthreshold Leakage': 0.0199703, 'Instruction Fetch Unit/Branch Predictor/Subthreshold Leakage with power gating': 0.0103282, 'Instruction Fetch Unit/Branch Target Buffer/Area': 0.64954, 'Instruction Fetch Unit/Branch Target Buffer/Gate Leakage': 0.00272758, 'Instruction Fetch Unit/Branch Target Buffer/Peak Dynamic': 0.177867, 'Instruction Fetch Unit/Branch Target Buffer/Runtime Dynamic': 0.00787022, 'Instruction Fetch Unit/Branch Target Buffer/Subthreshold Leakage': 0.0811682, 'Instruction Fetch Unit/Branch Target Buffer/Subthreshold Leakage with power gating': 0.0435357, 'Instruction Fetch Unit/Gate Leakage': 0.0589979, 'Instruction Fetch Unit/Instruction Buffer/Area': 0.0226323, 'Instruction Fetch Unit/Instruction Buffer/Gate Leakage': 6.83558e-05, 'Instruction Fetch Unit/Instruction Buffer/Peak Dynamic': 0.606827, 'Instruction Fetch Unit/Instruction Buffer/Runtime Dynamic': 0.0460851, 'Instruction Fetch Unit/Instruction Buffer/Subthreshold Leakage': 0.00151885, 'Instruction Fetch Unit/Instruction Buffer/Subthreshold Leakage with power gating': 0.000701682, 'Instruction Fetch Unit/Instruction Cache/Area': 3.14635, 'Instruction Fetch Unit/Instruction Cache/Gate Leakage': 0.029931, 'Instruction Fetch Unit/Instruction Cache/Peak Dynamic': 2.93141, 'Instruction Fetch Unit/Instruction Cache/Runtime Dynamic': 0.133269, 'Instruction Fetch Unit/Instruction Cache/Subthreshold Leakage': 0.367022, 'Instruction Fetch Unit/Instruction Cache/Subthreshold Leakage with power gating': 0.180386, 'Instruction Fetch Unit/Instruction Decoder/Area': 1.85799, 'Instruction Fetch Unit/Instruction Decoder/Gate Leakage': 0.0222493, 'Instruction Fetch Unit/Instruction Decoder/Peak Dynamic': 1.37404, 'Instruction Fetch Unit/Instruction Decoder/Runtime Dynamic': 0.156526, 'Instruction Fetch Unit/Instruction Decoder/Subthreshold Leakage': 0.442943, 'Instruction Fetch Unit/Instruction Decoder/Subthreshold Leakage with power gating': 0.166104, 'Instruction Fetch Unit/Peak Dynamic': 5.29219, 'Instruction Fetch Unit/Runtime Dynamic': 0.3471, 'Instruction Fetch Unit/Subthreshold Leakage': 0.932286, 'Instruction Fetch Unit/Subthreshold Leakage with power gating': 0.40843, 'L2/Area': 4.53318, 'L2/Gate Leakage': 0.015464, 'L2/Peak Dynamic': 0.0366939, 'L2/Runtime Dynamic': 0.00763293, 'L2/Subthreshold Leakage': 0.834142, 'L2/Subthreshold Leakage with power gating': 0.401066, 'Load Store Unit/Area': 8.80901, 'Load Store Unit/Data Cache/Area': 6.84535, 'Load Store Unit/Data Cache/Gate Leakage': 0.0279261, 'Load Store Unit/Data Cache/Peak Dynamic': 2.89071, 'Load Store Unit/Data Cache/Runtime Dynamic': 0.805089, 'Load Store Unit/Data Cache/Subthreshold Leakage': 0.527675, 'Load Store Unit/Data Cache/Subthreshold Leakage with power gating': 0.25085, 'Load Store Unit/Gate Leakage': 0.0350888, 'Load Store Unit/LoadQ/Area': 0.0836782, 'Load Store Unit/LoadQ/Gate Leakage': 0.00059896, 'Load Store Unit/LoadQ/Peak Dynamic': 0.0534977, 'Load Store Unit/LoadQ/Runtime Dynamic': 0.0534978, 'Load Store Unit/LoadQ/Subthreshold Leakage': 0.00941961, 'Load Store Unit/LoadQ/Subthreshold Leakage with power gating': 0.00536918, 'Load Store Unit/Peak Dynamic': 3.14334, 'Load Store Unit/Runtime Dynamic': 1.12242, 'Load Store Unit/StoreQ/Area': 0.322079, 'Load Store Unit/StoreQ/Gate Leakage': 0.00329971, 'Load Store Unit/StoreQ/Peak Dynamic': 0.131916, 'Load Store Unit/StoreQ/Runtime Dynamic': 0.263833, 'Load Store Unit/StoreQ/Subthreshold Leakage': 0.0345621, 'Load Store Unit/StoreQ/Subthreshold Leakage with power gating': 0.0197004, 'Load Store Unit/Subthreshold Leakage': 0.591321, 'Load Store Unit/Subthreshold Leakage with power gating': 0.283293, 'Memory Management Unit/Area': 0.4339, 'Memory Management Unit/Dtlb/Area': 0.0879726, 'Memory Management Unit/Dtlb/Gate Leakage': 0.00088729, 'Memory Management Unit/Dtlb/Peak Dynamic': 0.0468175, 'Memory Management Unit/Dtlb/Runtime Dynamic': 0.0473088, 'Memory Management Unit/Dtlb/Subthreshold Leakage': 0.0155699, 'Memory Management Unit/Dtlb/Subthreshold Leakage with power gating': 0.00887485, 'Memory Management Unit/Gate Leakage': 0.00808595, 'Memory Management Unit/Itlb/Area': 0.301552, 'Memory Management Unit/Itlb/Gate Leakage': 0.00393464, 'Memory Management Unit/Itlb/Peak Dynamic': 0.182264, 'Memory Management Unit/Itlb/Runtime Dynamic': 0.0220249, 'Memory Management Unit/Itlb/Subthreshold Leakage': 0.0413758, 'Memory Management Unit/Itlb/Subthreshold Leakage with power gating': 0.0235842, 'Memory Management Unit/Peak Dynamic': 0.418797, 'Memory Management Unit/Runtime Dynamic': 0.0693337, 'Memory Management Unit/Subthreshold Leakage': 0.0766103, 'Memory Management Unit/Subthreshold Leakage with power gating': 0.0398333, 'Peak Dynamic': 17.0705, 'Renaming Unit/Area': 0.303608, 'Renaming Unit/FP Front End RAT/Area': 0.131045, 'Renaming Unit/FP Front End RAT/Gate Leakage': 0.00351123, 'Renaming Unit/FP Front End RAT/Peak Dynamic': 2.51468, 'Renaming Unit/FP Front End RAT/Runtime Dynamic': 0.148448, 'Renaming Unit/FP Front End RAT/Subthreshold Leakage': 0.0308571, 'Renaming Unit/FP Front End RAT/Subthreshold Leakage with power gating': 0.0175885, 'Renaming Unit/Free List/Area': 0.0340654, 'Renaming Unit/Free List/Gate Leakage': 2.5481e-05, 'Renaming Unit/Free List/Peak Dynamic': 0.0306032, 'Renaming Unit/Free List/Runtime Dynamic': 0.008779, 'Renaming Unit/Free List/Subthreshold Leakage': 0.000370144, 'Renaming Unit/Free List/Subthreshold Leakage with power gating': 0.000201064, 'Renaming Unit/Gate Leakage': 0.00708398, 'Renaming Unit/Int Front End RAT/Area': 0.0941223, 'Renaming Unit/Int Front End RAT/Gate Leakage': 0.000283242, 'Renaming Unit/Int Front End RAT/Peak Dynamic': 0.731965, 'Renaming Unit/Int Front End RAT/Runtime Dynamic': 0.0758336, 'Renaming Unit/Int Front End RAT/Subthreshold Leakage': 0.00435488, 'Renaming Unit/Int Front End RAT/Subthreshold Leakage with power gating': 0.00248228, 'Renaming Unit/Peak Dynamic': 3.58947, 'Renaming Unit/Runtime Dynamic': 0.23306, 'Renaming Unit/Subthreshold Leakage': 0.0552466, 'Renaming Unit/Subthreshold Leakage with power gating': 0.0276461, 'Runtime Dynamic': 3.38334, 'Subthreshold Leakage': 6.16288, 'Subthreshold Leakage with power gating': 2.55328}, {'Area': 32.0201, 'Execution Unit/Area': 7.68434, 'Execution Unit/Complex ALUs/Area': 0.235435, 'Execution Unit/Complex ALUs/Gate Leakage': 0.0132646, 'Execution Unit/Complex ALUs/Peak Dynamic': 0.0542242, 'Execution Unit/Complex ALUs/Runtime Dynamic': 0.245279, 'Execution Unit/Complex ALUs/Subthreshold Leakage': 0.20111, 'Execution Unit/Complex ALUs/Subthreshold Leakage with power gating': 0.0754163, 'Execution Unit/Floating Point Units/Area': 4.6585, 'Execution Unit/Floating Point Units/Gate Leakage': 0.0656156, 'Execution Unit/Floating Point Units/Peak Dynamic': 0.291751, 'Execution Unit/Floating Point Units/Runtime Dynamic': 0.304033, 'Execution Unit/Floating Point Units/Subthreshold Leakage': 0.994829, 'Execution Unit/Floating Point Units/Subthreshold Leakage with power gating': 0.373061, 'Execution Unit/Gate Leakage': 0.120359, 'Execution Unit/Instruction Scheduler/Area': 1.66526, 'Execution Unit/Instruction Scheduler/FP Instruction Window/Area': 0.275653, 'Execution Unit/Instruction Scheduler/FP Instruction Window/Gate Leakage': 0.000977433, 'Execution Unit/Instruction Scheduler/FP Instruction Window/Peak Dynamic': 1.04181, 'Execution Unit/Instruction Scheduler/FP Instruction Window/Runtime Dynamic': 0.128974, 'Execution Unit/Instruction Scheduler/FP Instruction Window/Subthreshold Leakage': 0.0143453, 'Execution Unit/Instruction Scheduler/FP Instruction Window/Subthreshold Leakage with power gating': 0.00810519, 'Execution Unit/Instruction Scheduler/Gate Leakage': 0.00568913, 'Execution Unit/Instruction Scheduler/Instruction Window/Area': 0.805223, 'Execution Unit/Instruction Scheduler/Instruction Window/Gate Leakage': 0.00414562, 'Execution Unit/Instruction Scheduler/Instruction Window/Peak Dynamic': 1.6763, 'Execution Unit/Instruction Scheduler/Instruction Window/Runtime Dynamic': 0.20803, 'Execution Unit/Instruction Scheduler/Instruction Window/Subthreshold Leakage': 0.0625755, 'Execution Unit/Instruction Scheduler/Instruction Window/Subthreshold Leakage with power gating': 0.0355964, 'Execution Unit/Instruction Scheduler/Peak Dynamic': 3.82262, 'Execution Unit/Instruction Scheduler/ROB/Area': 0.584388, 'Execution Unit/Instruction Scheduler/ROB/Gate Leakage': 0.00056608, 'Execution Unit/Instruction Scheduler/ROB/Peak Dynamic': 1.10451, 'Execution Unit/Instruction Scheduler/ROB/Runtime Dynamic': 0.105006, 'Execution Unit/Instruction Scheduler/ROB/Subthreshold Leakage': 0.00906853, 'Execution Unit/Instruction Scheduler/ROB/Subthreshold Leakage with power gating': 0.00364446, 'Execution Unit/Instruction Scheduler/Runtime Dynamic': 0.44201, 'Execution Unit/Instruction Scheduler/Subthreshold Leakage': 0.0859892, 'Execution Unit/Instruction Scheduler/Subthreshold Leakage with power gating': 0.047346, 'Execution Unit/Integer ALUs/Area': 0.47087, 'Execution Unit/Integer ALUs/Gate Leakage': 0.0265291, 'Execution Unit/Integer ALUs/Peak Dynamic': 0.102778, 'Execution Unit/Integer ALUs/Runtime Dynamic': 0.101344, 'Execution Unit/Integer ALUs/Subthreshold Leakage': 0.40222, 'Execution Unit/Integer ALUs/Subthreshold Leakage with power gating': 0.150833, 'Execution Unit/Peak Dynamic': 4.53858, 'Execution Unit/Register Files/Area': 0.570804, 'Execution Unit/Register Files/Floating Point RF/Area': 0.208131, 'Execution Unit/Register Files/Floating Point RF/Gate Leakage': 0.000232788, 'Execution Unit/Register Files/Floating Point RF/Peak Dynamic': 0.0551181, 'Execution Unit/Register Files/Floating Point RF/Runtime Dynamic': 0.00540973, 'Execution Unit/Register Files/Floating Point RF/Subthreshold Leakage': 0.00399698, 'Execution Unit/Register Files/Floating Point RF/Subthreshold Leakage with power gating': 0.00176968, 'Execution Unit/Register Files/Gate Leakage': 0.000622708, 'Execution Unit/Register Files/Integer RF/Area': 0.362673, 'Execution Unit/Register Files/Integer RF/Gate Leakage': 0.00038992, 'Execution Unit/Register Files/Integer RF/Peak Dynamic': 0.0594634, 'Execution Unit/Register Files/Integer RF/Runtime Dynamic': 0.0400083, 'Execution Unit/Register Files/Integer RF/Subthreshold Leakage': 0.00614175, 'Execution Unit/Register Files/Integer RF/Subthreshold Leakage with power gating': 0.00246675, 'Execution Unit/Register Files/Peak Dynamic': 0.114581, 'Execution Unit/Register Files/Runtime Dynamic': 0.045418, 'Execution Unit/Register Files/Subthreshold Leakage': 0.0101387, 'Execution Unit/Register Files/Subthreshold Leakage with power gating': 0.00423643, 'Execution Unit/Results Broadcast Bus/Area Overhead': 0.0390912, 'Execution Unit/Results Broadcast Bus/Gate Leakage': 0.00537402, 'Execution Unit/Results Broadcast Bus/Peak Dynamic': 0.138832, 'Execution Unit/Results Broadcast Bus/Runtime Dynamic': 0.327911, 'Execution Unit/Results Broadcast Bus/Subthreshold Leakage': 0.081478, 'Execution Unit/Results Broadcast Bus/Subthreshold Leakage with power gating': 0.0305543, 'Execution Unit/Runtime Dynamic': 1.466, 'Execution Unit/Subthreshold Leakage': 1.79543, 'Execution Unit/Subthreshold Leakage with power gating': 0.688821, 'Gate Leakage': 0.368936, 'Instruction Fetch Unit/Area': 5.85939, 'Instruction Fetch Unit/Branch Predictor/Area': 0.138516, 'Instruction Fetch Unit/Branch Predictor/Chooser/Area': 0.0435221, 'Instruction Fetch Unit/Branch Predictor/Chooser/Gate Leakage': 0.000278362, 'Instruction Fetch Unit/Branch Predictor/Chooser/Peak Dynamic': 0.0168831, 'Instruction Fetch Unit/Branch Predictor/Chooser/Runtime Dynamic': 0.000569244, 'Instruction Fetch Unit/Branch Predictor/Chooser/Subthreshold Leakage': 0.00759719, 'Instruction Fetch Unit/Branch Predictor/Chooser/Subthreshold Leakage with power gating': 0.0039236, 'Instruction Fetch Unit/Branch Predictor/Gate Leakage': 0.000757657, 'Instruction Fetch Unit/Branch Predictor/Global Predictor/Area': 0.0435221, 'Instruction Fetch Unit/Branch Predictor/Global Predictor/Gate Leakage': 0.000278362, 'Instruction Fetch Unit/Branch Predictor/Global Predictor/Peak Dynamic': 0.0168831, 'Instruction Fetch Unit/Branch Predictor/Global Predictor/Runtime Dynamic': 0.000569244, 'Instruction Fetch Unit/Branch Predictor/Global Predictor/Subthreshold Leakage': 0.00759719, 'Instruction Fetch Unit/Branch Predictor/Global Predictor/Subthreshold Leakage with power gating': 0.0039236, 'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Area': 0.0257064, 'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Gate Leakage': 0.000154548, 'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Peak Dynamic': 0.0142575, 'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Runtime Dynamic': 0.000514967, 'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Subthreshold Leakage': 0.00384344, 'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Subthreshold Leakage with power gating': 0.00198631, 'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Area': 0.0151917, 'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Gate Leakage': 8.00196e-05, 'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Peak Dynamic': 0.00527447, 'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Runtime Dynamic': 0.000209829, 'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Subthreshold Leakage': 0.00181347, 'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Subthreshold Leakage with power gating': 0.000957045, 'Instruction Fetch Unit/Branch Predictor/Peak Dynamic': 0.0597838, 'Instruction Fetch Unit/Branch Predictor/RAS/Area': 0.0105732, 'Instruction Fetch Unit/Branch Predictor/RAS/Gate Leakage': 4.63858e-05, 'Instruction Fetch Unit/Branch Predictor/RAS/Peak Dynamic': 0.0117602, 'Instruction Fetch Unit/Branch Predictor/RAS/Runtime Dynamic': 0.000574722, 'Instruction Fetch Unit/Branch Predictor/RAS/Subthreshold Leakage': 0.000932505, 'Instruction Fetch Unit/Branch Predictor/RAS/Subthreshold Leakage with power gating': 0.000494733, 'Instruction Fetch Unit/Branch Predictor/Runtime Dynamic': 0.00222818, 'Instruction Fetch Unit/Branch Predictor/Subthreshold Leakage': 0.0199703, 'Instruction Fetch Unit/Branch Predictor/Subthreshold Leakage with power gating': 0.0103282, 'Instruction Fetch Unit/Branch Target Buffer/Area': 0.64954, 'Instruction Fetch Unit/Branch Target Buffer/Gate Leakage': 0.00272758, 'Instruction Fetch Unit/Branch Target Buffer/Peak Dynamic': 0.177867, 'Instruction Fetch Unit/Branch Target Buffer/Runtime Dynamic': 0.00477343, 'Instruction Fetch Unit/Branch Target Buffer/Subthreshold Leakage': 0.0811682, 'Instruction Fetch Unit/Branch Target Buffer/Subthreshold Leakage with power gating': 0.0435357, 'Instruction Fetch Unit/Gate Leakage': 0.0589979, 'Instruction Fetch Unit/Instruction Buffer/Area': 0.0226323, 'Instruction Fetch Unit/Instruction Buffer/Gate Leakage': 6.83558e-05, 'Instruction Fetch Unit/Instruction Buffer/Peak Dynamic': 0.606827, 'Instruction Fetch Unit/Instruction Buffer/Runtime Dynamic': 0.038461, 'Instruction Fetch Unit/Instruction Buffer/Subthreshold Leakage': 0.00151885, 'Instruction Fetch Unit/Instruction Buffer/Subthreshold Leakage with power gating': 0.000701682, 'Instruction Fetch Unit/Instruction Cache/Area': 3.14635, 'Instruction Fetch Unit/Instruction Cache/Gate Leakage': 0.029931, 'Instruction Fetch Unit/Instruction Cache/Peak Dynamic': 2.44645, 'Instruction Fetch Unit/Instruction Cache/Runtime Dynamic': 0.0992052, 'Instruction Fetch Unit/Instruction Cache/Subthreshold Leakage': 0.367022, 'Instruction Fetch Unit/Instruction Cache/Subthreshold Leakage with power gating': 0.180386, 'Instruction Fetch Unit/Instruction Decoder/Area': 1.85799, 'Instruction Fetch Unit/Instruction Decoder/Gate Leakage': 0.0222493, 'Instruction Fetch Unit/Instruction Decoder/Peak Dynamic': 1.37404, 'Instruction Fetch Unit/Instruction Decoder/Runtime Dynamic': 0.130631, 'Instruction Fetch Unit/Instruction Decoder/Subthreshold Leakage': 0.442943, 'Instruction Fetch Unit/Instruction Decoder/Subthreshold Leakage with power gating': 0.166104, 'Instruction Fetch Unit/Peak Dynamic': 4.78369, 'Instruction Fetch Unit/Runtime Dynamic': 0.275299, 'Instruction Fetch Unit/Subthreshold Leakage': 0.932286, 'Instruction Fetch Unit/Subthreshold Leakage with power gating': 0.40843, 'L2/Area': 4.53318, 'L2/Gate Leakage': 0.015464, 'L2/Peak Dynamic': 0.0398849, 'L2/Runtime Dynamic': 0.0072389, 'L2/Subthreshold Leakage': 0.834142, 'L2/Subthreshold Leakage with power gating': 0.401066, 'Load Store Unit/Area': 8.80901, 'Load Store Unit/Data Cache/Area': 6.84535, 'Load Store Unit/Data Cache/Gate Leakage': 0.0279261, 'Load Store Unit/Data Cache/Peak Dynamic': 2.62402, 'Load Store Unit/Data Cache/Runtime Dynamic': 0.67604, 'Load Store Unit/Data Cache/Subthreshold Leakage': 0.527675, 'Load Store Unit/Data Cache/Subthreshold Leakage with power gating': 0.25085, 'Load Store Unit/Gate Leakage': 0.0350888, 'Load Store Unit/LoadQ/Area': 0.0836782, 'Load Store Unit/LoadQ/Gate Leakage': 0.00059896, 'Load Store Unit/LoadQ/Peak Dynamic': 0.0448694, 'Load Store Unit/LoadQ/Runtime Dynamic': 0.0448695, 'Load Store Unit/LoadQ/Subthreshold Leakage': 0.00941961, 'Load Store Unit/LoadQ/Subthreshold Leakage with power gating': 0.00536918, 'Load Store Unit/Peak Dynamic': 2.8359, 'Load Store Unit/Runtime Dynamic': 0.94219, 'Load Store Unit/StoreQ/Area': 0.322079, 'Load Store Unit/StoreQ/Gate Leakage': 0.00329971, 'Load Store Unit/StoreQ/Peak Dynamic': 0.11064, 'Load Store Unit/StoreQ/Runtime Dynamic': 0.221281, 'Load Store Unit/StoreQ/Subthreshold Leakage': 0.0345621, 'Load Store Unit/StoreQ/Subthreshold Leakage with power gating': 0.0197004, 'Load Store Unit/Subthreshold Leakage': 0.591321, 'Load Store Unit/Subthreshold Leakage with power gating': 0.283293, 'Memory Management Unit/Area': 0.4339, 'Memory Management Unit/Dtlb/Area': 0.0879726, 'Memory Management Unit/Dtlb/Gate Leakage': 0.00088729, 'Memory Management Unit/Dtlb/Peak Dynamic': 0.0392666, 'Memory Management Unit/Dtlb/Runtime Dynamic': 0.0398373, 'Memory Management Unit/Dtlb/Subthreshold Leakage': 0.0155699, 'Memory Management Unit/Dtlb/Subthreshold Leakage with power gating': 0.00887485, 'Memory Management Unit/Gate Leakage': 0.00808595, 'Memory Management Unit/Itlb/Area': 0.301552, 'Memory Management Unit/Itlb/Gate Leakage': 0.00393464, 'Memory Management Unit/Itlb/Peak Dynamic': 0.152111, 'Memory Management Unit/Itlb/Runtime Dynamic': 0.0163474, 'Memory Management Unit/Itlb/Subthreshold Leakage': 0.0413758, 'Memory Management Unit/Itlb/Subthreshold Leakage with power gating': 0.0235842, 'Memory Management Unit/Peak Dynamic': 0.375673, 'Memory Management Unit/Runtime Dynamic': 0.0561847, 'Memory Management Unit/Subthreshold Leakage': 0.0766103, 'Memory Management Unit/Subthreshold Leakage with power gating': 0.0398333, 'Peak Dynamic': 16.1632, 'Renaming Unit/Area': 0.303608, 'Renaming Unit/FP Front End RAT/Area': 0.131045, 'Renaming Unit/FP Front End RAT/Gate Leakage': 0.00351123, 'Renaming Unit/FP Front End RAT/Peak Dynamic': 2.51468, 'Renaming Unit/FP Front End RAT/Runtime Dynamic': 0.14499, 'Renaming Unit/FP Front End RAT/Subthreshold Leakage': 0.0308571, 'Renaming Unit/FP Front End RAT/Subthreshold Leakage with power gating': 0.0175885, 'Renaming Unit/Free List/Area': 0.0340654, 'Renaming Unit/Free List/Gate Leakage': 2.5481e-05, 'Renaming Unit/Free List/Peak Dynamic': 0.0306032, 'Renaming Unit/Free List/Runtime Dynamic': 0.00758344, 'Renaming Unit/Free List/Subthreshold Leakage': 0.000370144, 'Renaming Unit/Free List/Subthreshold Leakage with power gating': 0.000201064, 'Renaming Unit/Gate Leakage': 0.00708398, 'Renaming Unit/Int Front End RAT/Area': 0.0941223, 'Renaming Unit/Int Front End RAT/Gate Leakage': 0.000283242, 'Renaming Unit/Int Front End RAT/Peak Dynamic': 0.731965, 'Renaming Unit/Int Front End RAT/Runtime Dynamic': 0.0629768, 'Renaming Unit/Int Front End RAT/Subthreshold Leakage': 0.00435488, 'Renaming Unit/Int Front End RAT/Subthreshold Leakage with power gating': 0.00248228, 'Renaming Unit/Peak Dynamic': 3.58947, 'Renaming Unit/Runtime Dynamic': 0.215551, 'Renaming Unit/Subthreshold Leakage': 0.0552466, 'Renaming Unit/Subthreshold Leakage with power gating': 0.0276461, 'Runtime Dynamic': 2.96246, 'Subthreshold Leakage': 6.16288, 'Subthreshold Leakage with power gating': 2.55328}, {'Area': 32.0201, 'Execution Unit/Area': 7.68434, 'Execution Unit/Complex ALUs/Area': 0.235435, 'Execution Unit/Complex ALUs/Gate Leakage': 0.0132646, 'Execution Unit/Complex ALUs/Peak Dynamic': 0.0529102, 'Execution Unit/Complex ALUs/Runtime Dynamic': 0.244246, 'Execution Unit/Complex ALUs/Subthreshold Leakage': 0.20111, 'Execution Unit/Complex ALUs/Subthreshold Leakage with power gating': 0.0754163, 'Execution Unit/Floating Point Units/Area': 4.6585, 'Execution Unit/Floating Point Units/Gate Leakage': 0.0656156, 'Execution Unit/Floating Point Units/Peak Dynamic': 0.270256, 'Execution Unit/Floating Point Units/Runtime Dynamic': 0.304033, 'Execution Unit/Floating Point Units/Subthreshold Leakage': 0.994829, 'Execution Unit/Floating Point Units/Subthreshold Leakage with power gating': 0.373061, 'Execution Unit/Gate Leakage': 0.120359, 'Execution Unit/Instruction Scheduler/Area': 1.66526, 'Execution Unit/Instruction Scheduler/FP Instruction Window/Area': 0.275653, 'Execution Unit/Instruction Scheduler/FP Instruction Window/Gate Leakage': 0.000977433, 'Execution Unit/Instruction Scheduler/FP Instruction Window/Peak Dynamic': 1.04181, 'Execution Unit/Instruction Scheduler/FP Instruction Window/Runtime Dynamic': 0.0878707, 'Execution Unit/Instruction Scheduler/FP Instruction Window/Subthreshold Leakage': 0.0143453, 'Execution Unit/Instruction Scheduler/FP Instruction Window/Subthreshold Leakage with power gating': 0.00810519, 'Execution Unit/Instruction Scheduler/Gate Leakage': 0.00568913, 'Execution Unit/Instruction Scheduler/Instruction Window/Area': 0.805223, 'Execution Unit/Instruction Scheduler/Instruction Window/Gate Leakage': 0.00414562, 'Execution Unit/Instruction Scheduler/Instruction Window/Peak Dynamic': 1.6763, 'Execution Unit/Instruction Scheduler/Instruction Window/Runtime Dynamic': 0.141732, 'Execution Unit/Instruction Scheduler/Instruction Window/Subthreshold Leakage': 0.0625755, 'Execution Unit/Instruction Scheduler/Instruction Window/Subthreshold Leakage with power gating': 0.0355964, 'Execution Unit/Instruction Scheduler/Peak Dynamic': 3.82262, 'Execution Unit/Instruction Scheduler/ROB/Area': 0.584388, 'Execution Unit/Instruction Scheduler/ROB/Gate Leakage': 0.00056608, 'Execution Unit/Instruction Scheduler/ROB/Peak Dynamic': 1.10451, 'Execution Unit/Instruction Scheduler/ROB/Runtime Dynamic': 0.0715416, 'Execution Unit/Instruction Scheduler/ROB/Subthreshold Leakage': 0.00906853, 'Execution Unit/Instruction Scheduler/ROB/Subthreshold Leakage with power gating': 0.00364446, 'Execution Unit/Instruction Scheduler/Runtime Dynamic': 0.301145, 'Execution Unit/Instruction Scheduler/Subthreshold Leakage': 0.0859892, 'Execution Unit/Instruction Scheduler/Subthreshold Leakage with power gating': 0.047346, 'Execution Unit/Integer ALUs/Area': 0.47087, 'Execution Unit/Integer ALUs/Gate Leakage': 0.0265291, 'Execution Unit/Integer ALUs/Peak Dynamic': 0.0590634, 'Execution Unit/Integer ALUs/Runtime Dynamic': 0.101344, 'Execution Unit/Integer ALUs/Subthreshold Leakage': 0.40222, 'Execution Unit/Integer ALUs/Subthreshold Leakage with power gating': 0.150833, 'Execution Unit/Peak Dynamic': 4.42336, 'Execution Unit/Register Files/Area': 0.570804, 'Execution Unit/Register Files/Floating Point RF/Area': 0.208131, 'Execution Unit/Register Files/Floating Point RF/Gate Leakage': 0.000232788, 'Execution Unit/Register Files/Floating Point RF/Peak Dynamic': 0.0510571, 'Execution Unit/Register Files/Floating Point RF/Runtime Dynamic': 0.00368569, 'Execution Unit/Register Files/Floating Point RF/Subthreshold Leakage': 0.00399698, 'Execution Unit/Register Files/Floating Point RF/Subthreshold Leakage with power gating': 0.00176968, 'Execution Unit/Register Files/Gate Leakage': 0.000622708, 'Execution Unit/Register Files/Integer RF/Area': 0.362673, 'Execution Unit/Register Files/Integer RF/Gate Leakage': 0.00038992, 'Execution Unit/Register Files/Integer RF/Peak Dynamic': 0.0470898, 'Execution Unit/Register Files/Integer RF/Runtime Dynamic': 0.0272579, 'Execution Unit/Register Files/Integer RF/Subthreshold Leakage': 0.00614175, 'Execution Unit/Register Files/Integer RF/Subthreshold Leakage with power gating': 0.00246675, 'Execution Unit/Register Files/Peak Dynamic': 0.0981469, 'Execution Unit/Register Files/Runtime Dynamic': 0.0309436, 'Execution Unit/Register Files/Subthreshold Leakage': 0.0101387, 'Execution Unit/Register Files/Subthreshold Leakage with power gating': 0.00423643, 'Execution Unit/Results Broadcast Bus/Area Overhead': 0.0390912, 'Execution Unit/Results Broadcast Bus/Gate Leakage': 0.00537402, 'Execution Unit/Results Broadcast Bus/Peak Dynamic': 0.112436, 'Execution Unit/Results Broadcast Bus/Runtime Dynamic': 0.232057, 'Execution Unit/Results Broadcast Bus/Subthreshold Leakage': 0.081478, 'Execution Unit/Results Broadcast Bus/Subthreshold Leakage with power gating': 0.0305543, 'Execution Unit/Runtime Dynamic': 1.21377, 'Execution Unit/Subthreshold Leakage': 1.79543, 'Execution Unit/Subthreshold Leakage with power gating': 0.688821, 'Gate Leakage': 0.368936, 'Instruction Fetch Unit/Area': 5.85939, 'Instruction Fetch Unit/Branch Predictor/Area': 0.138516, 'Instruction Fetch Unit/Branch Predictor/Chooser/Area': 0.0435221, 'Instruction Fetch Unit/Branch Predictor/Chooser/Gate Leakage': 0.000278362, 'Instruction Fetch Unit/Branch Predictor/Chooser/Peak Dynamic': 0.0168831, 'Instruction Fetch Unit/Branch Predictor/Chooser/Runtime Dynamic': 0.000249816, 'Instruction Fetch Unit/Branch Predictor/Chooser/Subthreshold Leakage': 0.00759719, 'Instruction Fetch Unit/Branch Predictor/Chooser/Subthreshold Leakage with power gating': 0.0039236, 'Instruction Fetch Unit/Branch Predictor/Gate Leakage': 0.000757657, 'Instruction Fetch Unit/Branch Predictor/Global Predictor/Area': 0.0435221, 'Instruction Fetch Unit/Branch Predictor/Global Predictor/Gate Leakage': 0.000278362, 'Instruction Fetch Unit/Branch Predictor/Global Predictor/Peak Dynamic': 0.0168831, 'Instruction Fetch Unit/Branch Predictor/Global Predictor/Runtime Dynamic': 0.000249816, 'Instruction Fetch Unit/Branch Predictor/Global Predictor/Subthreshold Leakage': 0.00759719, 'Instruction Fetch Unit/Branch Predictor/Global Predictor/Subthreshold Leakage with power gating': 0.0039236, 'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Area': 0.0257064, 'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Gate Leakage': 0.000154548, 'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Peak Dynamic': 0.0142575, 'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Runtime Dynamic': 0.000226678, 'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Subthreshold Leakage': 0.00384344, 'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Subthreshold Leakage with power gating': 0.00198631, 'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Area': 0.0151917, 'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Gate Leakage': 8.00196e-05, 'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Peak Dynamic': 0.00527447, 'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Runtime Dynamic': 9.27219e-05, 'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Subthreshold Leakage': 0.00181347, 'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Subthreshold Leakage with power gating': 0.000957045, 'Instruction Fetch Unit/Branch Predictor/Peak Dynamic': 0.0597838, 'Instruction Fetch Unit/Branch Predictor/RAS/Area': 0.0105732, 'Instruction Fetch Unit/Branch Predictor/RAS/Gate Leakage': 4.63858e-05, 'Instruction Fetch Unit/Branch Predictor/RAS/Peak Dynamic': 0.0117602, 'Instruction Fetch Unit/Branch Predictor/RAS/Runtime Dynamic': 0.000391563, 'Instruction Fetch Unit/Branch Predictor/RAS/Subthreshold Leakage': 0.000932505, 'Instruction Fetch Unit/Branch Predictor/RAS/Subthreshold Leakage with power gating': 0.000494733, 'Instruction Fetch Unit/Branch Predictor/Runtime Dynamic': 0.00111787, 'Instruction Fetch Unit/Branch Predictor/Subthreshold Leakage': 0.0199703, 'Instruction Fetch Unit/Branch Predictor/Subthreshold Leakage with power gating': 0.0103282, 'Instruction Fetch Unit/Branch Target Buffer/Area': 0.64954, 'Instruction Fetch Unit/Branch Target Buffer/Gate Leakage': 0.00272758, 'Instruction Fetch Unit/Branch Target Buffer/Peak Dynamic': 0.177867, 'Instruction Fetch Unit/Branch Target Buffer/Runtime Dynamic': 0.00207049, 'Instruction Fetch Unit/Branch Target Buffer/Subthreshold Leakage': 0.0811682, 'Instruction Fetch Unit/Branch Target Buffer/Subthreshold Leakage with power gating': 0.0435357, 'Instruction Fetch Unit/Gate Leakage': 0.0589979, 'Instruction Fetch Unit/Instruction Buffer/Area': 0.0226323, 'Instruction Fetch Unit/Instruction Buffer/Gate Leakage': 6.83558e-05, 'Instruction Fetch Unit/Instruction Buffer/Peak Dynamic': 0.606827, 'Instruction Fetch Unit/Instruction Buffer/Runtime Dynamic': 0.0262038, 'Instruction Fetch Unit/Instruction Buffer/Subthreshold Leakage': 0.00151885, 'Instruction Fetch Unit/Instruction Buffer/Subthreshold Leakage with power gating': 0.000701682, 'Instruction Fetch Unit/Instruction Cache/Area': 3.14635, 'Instruction Fetch Unit/Instruction Cache/Gate Leakage': 0.029931, 'Instruction Fetch Unit/Instruction Cache/Peak Dynamic': 1.66679, 'Instruction Fetch Unit/Instruction Cache/Runtime Dynamic': 0.0613393, 'Instruction Fetch Unit/Instruction Cache/Subthreshold Leakage': 0.367022, 'Instruction Fetch Unit/Instruction Cache/Subthreshold Leakage with power gating': 0.180386, 'Instruction Fetch Unit/Instruction Decoder/Area': 1.85799, 'Instruction Fetch Unit/Instruction Decoder/Gate Leakage': 0.0222493, 'Instruction Fetch Unit/Instruction Decoder/Peak Dynamic': 1.37404, 'Instruction Fetch Unit/Instruction Decoder/Runtime Dynamic': 0.0889998, 'Instruction Fetch Unit/Instruction Decoder/Subthreshold Leakage': 0.442943, 'Instruction Fetch Unit/Instruction Decoder/Subthreshold Leakage with power gating': 0.166104, 'Instruction Fetch Unit/Peak Dynamic': 3.96619, 'Instruction Fetch Unit/Runtime Dynamic': 0.179731, 'Instruction Fetch Unit/Subthreshold Leakage': 0.932286, 'Instruction Fetch Unit/Subthreshold Leakage with power gating': 0.40843, 'L2/Area': 4.53318, 'L2/Gate Leakage': 0.015464, 'L2/Peak Dynamic': 0.0285357, 'L2/Runtime Dynamic': 0.00792079, 'L2/Subthreshold Leakage': 0.834142, 'L2/Subthreshold Leakage with power gating': 0.401066, 'Load Store Unit/Area': 8.80901, 'Load Store Unit/Data Cache/Area': 6.84535, 'Load Store Unit/Data Cache/Gate Leakage': 0.0279261, 'Load Store Unit/Data Cache/Peak Dynamic': 1.99531, 'Load Store Unit/Data Cache/Runtime Dynamic': 0.376367, 'Load Store Unit/Data Cache/Subthreshold Leakage': 0.527675, 'Load Store Unit/Data Cache/Subthreshold Leakage with power gating': 0.25085, 'Load Store Unit/Gate Leakage': 0.0350888, 'Load Store Unit/LoadQ/Area': 0.0836782, 'Load Store Unit/LoadQ/Gate Leakage': 0.00059896, 'Load Store Unit/LoadQ/Peak Dynamic': 0.0245292, 'Load Store Unit/LoadQ/Runtime Dynamic': 0.0245291, 'Load Store Unit/LoadQ/Subthreshold Leakage': 0.00941961, 'Load Store Unit/LoadQ/Subthreshold Leakage with power gating': 0.00536918, 'Load Store Unit/Peak Dynamic': 2.11114, 'Load Store Unit/Runtime Dynamic': 0.521865, 'Load Store Unit/StoreQ/Area': 0.322079, 'Load Store Unit/StoreQ/Gate Leakage': 0.00329971, 'Load Store Unit/StoreQ/Peak Dynamic': 0.0604848, 'Load Store Unit/StoreQ/Runtime Dynamic': 0.120969, 'Load Store Unit/StoreQ/Subthreshold Leakage': 0.0345621, 'Load Store Unit/StoreQ/Subthreshold Leakage with power gating': 0.0197004, 'Load Store Unit/Subthreshold Leakage': 0.591321, 'Load Store Unit/Subthreshold Leakage with power gating': 0.283293, 'Memory Management Unit/Area': 0.4339, 'Memory Management Unit/Dtlb/Area': 0.0879726, 'Memory Management Unit/Dtlb/Gate Leakage': 0.00088729, 'Memory Management Unit/Dtlb/Peak Dynamic': 0.0214663, 'Memory Management Unit/Dtlb/Runtime Dynamic': 0.0218912, 'Memory Management Unit/Dtlb/Subthreshold Leakage': 0.0155699, 'Memory Management Unit/Dtlb/Subthreshold Leakage with power gating': 0.00887485, 'Memory Management Unit/Gate Leakage': 0.00808595, 'Memory Management Unit/Itlb/Area': 0.301552, 'Memory Management Unit/Itlb/Gate Leakage': 0.00393464, 'Memory Management Unit/Itlb/Peak Dynamic': 0.103635, 'Memory Management Unit/Itlb/Runtime Dynamic': 0.0100662, 'Memory Management Unit/Itlb/Subthreshold Leakage': 0.0413758, 'Memory Management Unit/Itlb/Subthreshold Leakage with power gating': 0.0235842, 'Memory Management Unit/Peak Dynamic': 0.296619, 'Memory Management Unit/Runtime Dynamic': 0.0319575, 'Memory Management Unit/Subthreshold Leakage': 0.0766103, 'Memory Management Unit/Subthreshold Leakage with power gating': 0.0398333, 'Peak Dynamic': 14.4153, 'Renaming Unit/Area': 0.303608, 'Renaming Unit/FP Front End RAT/Area': 0.131045, 'Renaming Unit/FP Front End RAT/Gate Leakage': 0.00351123, 'Renaming Unit/FP Front End RAT/Peak Dynamic': 2.51468, 'Renaming Unit/FP Front End RAT/Runtime Dynamic': 0.134308, 'Renaming Unit/FP Front End RAT/Subthreshold Leakage': 0.0308571, 'Renaming Unit/FP Front End RAT/Subthreshold Leakage with power gating': 0.0175885, 'Renaming Unit/Free List/Area': 0.0340654, 'Renaming Unit/Free List/Gate Leakage': 2.5481e-05, 'Renaming Unit/Free List/Peak Dynamic': 0.0306032, 'Renaming Unit/Free List/Runtime Dynamic': 0.00559899, 'Renaming Unit/Free List/Subthreshold Leakage': 0.000370144, 'Renaming Unit/Free List/Subthreshold Leakage with power gating': 0.000201064, 'Renaming Unit/Gate Leakage': 0.00708398, 'Renaming Unit/Int Front End RAT/Area': 0.0941223, 'Renaming Unit/Int Front End RAT/Gate Leakage': 0.000283242, 'Renaming Unit/Int Front End RAT/Peak Dynamic': 0.731965, 'Renaming Unit/Int Front End RAT/Runtime Dynamic': 0.0419014, 'Renaming Unit/Int Front End RAT/Subthreshold Leakage': 0.00435488, 'Renaming Unit/Int Front End RAT/Subthreshold Leakage with power gating': 0.00248228, 'Renaming Unit/Peak Dynamic': 3.58947, 'Renaming Unit/Runtime Dynamic': 0.181809, 'Renaming Unit/Subthreshold Leakage': 0.0552466, 'Renaming Unit/Subthreshold Leakage with power gating': 0.0276461, 'Runtime Dynamic': 2.13705, 'Subthreshold Leakage': 6.16288, 'Subthreshold Leakage with power gating': 2.55328}], 'DRAM': {'Area': 0, 'Gate Leakage': 0, 'Peak Dynamic': 5.992947460345098, 'Runtime Dynamic': 5.992947460345098, 'Subthreshold Leakage': 4.252, 'Subthreshold Leakage with power gating': 4.252}, 'L3': [{'Area': 61.9075, 'Gate Leakage': 0.0484137, 'Peak Dynamic': 0.282264, 'Runtime Dynamic': 0.0831713, 'Subthreshold Leakage': 6.80085, 'Subthreshold Leakage with power gating': 3.32364}], 'Processor': {'Area': 191.908, 'Gate Leakage': 1.53485, 'Peak Dynamic': 73.8327, 'Peak Power': 106.945, 'Runtime Dynamic': 15.6615, 'Subthreshold Leakage': 31.5774, 'Subthreshold Leakage with power gating': 13.9484, 'Total Cores/Area': 128.669, 'Total Cores/Gate Leakage': 1.4798, 'Total Cores/Peak Dynamic': 73.5505, 'Total Cores/Runtime Dynamic': 15.5783, 'Total Cores/Subthreshold Leakage': 24.7074, 'Total Cores/Subthreshold Leakage with power gating': 10.2429, 'Total L3s/Area': 61.9075, 'Total L3s/Gate Leakage': 0.0484137, 'Total L3s/Peak Dynamic': 0.282264, 'Total L3s/Runtime Dynamic': 0.0831713, 'Total L3s/Subthreshold Leakage': 6.80085, 'Total L3s/Subthreshold Leakage with power gating': 3.32364, 'Total Leakage': 33.1122, 'Total NoCs/Area': 1.33155, 'Total NoCs/Gate Leakage': 0.00662954, 'Total NoCs/Peak Dynamic': 0.0, 'Total NoCs/Runtime Dynamic': 0.0, 'Total NoCs/Subthreshold Leakage': 0.0691322, 'Total NoCs/Subthreshold Leakage with power gating': 0.0259246}}
def solve(): print(5) def calc_new_grid(grid): ans = grid.copy() for i in range(len(grid)): for j in range(len(grid[i])): if grid[i][j] == '.': ans[i] = ans[i][0:j] + '.' + ans[i][j+1:] continue ctr = 0 if ((i > 0 and i < len(grid)-1) and (j > 0 and j < len(grid[i])-1)): if grid[i-1][j-1] == '#': ctr +=1 if grid[i-1][j] == '#': ctr +=1 if grid[i-1][j+1] == '#': ctr +=1 if grid[i][j-1] == '#': ctr +=1 if grid[i][j+1] == '#': ctr +=1 if grid[i+1][j-1] == '#': ctr +=1 if grid[i+1][j] == '#': ctr +=1 if grid[i+1][j+1] == '#': ctr +=1 else: if i == 0 and j == 0: if grid[0][1] == '#': ctr+=1 if grid[1][0] == '#': ctr+=1 if grid[1][1] == '#': ctr+=1 elif (i == len(grid)-1 and j == 0): if grid[i-1][j] == '#': ctr+=1 if grid[i-1][j+1] == '#': ctr+=1 if grid[i][j+1] == '#': ctr+=1 elif (i == 0 and j == len(grid[i])-1): if grid[i][j-1] == '#': ctr+=1 if grid[i+1][j] == '#': ctr+=1 if grid[i+1][j-1] == '#': ctr+=1 elif (i == len(grid)-1 and j == len(grid[i])-1): if grid[i][j-1] == '#': ctr+=1 if grid[i-1][j] == '#': ctr+=1 if grid[i-1][j-1] == '#': ctr+=1 else: if i == 0: if grid[i][j-1] == '#': ctr+=1 if grid[i][j+1] == '#': ctr+=1 if grid[i+1][j+1] == '#': ctr+=1 if grid[i+1][j] == '#': ctr+=1 if grid[i+1][j-1] == '#': ctr+=1 if i == len(grid)-1: if grid[i][j-1] == '#': ctr+=1 if grid[i][j+1] == '#': ctr+=1 if grid[i-1][j+1] == '#': ctr+=1 if grid[i-1][j] == '#': ctr+=1 if grid[i-1][j-1] == '#': ctr+=1 if j == 0: if grid[i+1][j] == '#': ctr+=1 if grid[i+1][j+1] == '#': ctr+=1 if grid[i][j+1] == '#': ctr+=1 if grid[i-1][j] == '#': ctr+=1 if grid[i-1][j+1] == '#': ctr+=1 if j == len(grid[i])-1: if grid[i+1][j] == '#': ctr+=1 if grid[i+1][j-1] == '#': ctr+=1 if grid[i][j-1] == '#': ctr+=1 if grid[i-1][j] == '#': ctr+=1 if grid[i-1][j-1] == '#': ctr+=1 if ctr >= 4: ans[i] = ans[i][0:j] + 'L' + ans[i][j+1:] elif (ctr == 0 and grid[i][j] == 'L'): ans[i] = ans[i][0:j] + '#' + ans[i][j+1:] return ans def print_grid(grid): for i in grid: print(i) print('\n\n') def main(): grid = open('etc/data.txt').read().splitlines() last = grid.copy() ctr=0 print_grid(last) while ctr < 1000: new_grid = calc_new_grid(last) if new_grid == last: break else: last = new_grid print_grid(last) ctr+=1 ans = 0 for i in last: for j in i: if j == '#': ans += 1 print(ans) main()
def solve(): print(5) def calc_new_grid(grid): ans = grid.copy() for i in range(len(grid)): for j in range(len(grid[i])): if grid[i][j] == '.': ans[i] = ans[i][0:j] + '.' + ans[i][j + 1:] continue ctr = 0 if (i > 0 and i < len(grid) - 1) and (j > 0 and j < len(grid[i]) - 1): if grid[i - 1][j - 1] == '#': ctr += 1 if grid[i - 1][j] == '#': ctr += 1 if grid[i - 1][j + 1] == '#': ctr += 1 if grid[i][j - 1] == '#': ctr += 1 if grid[i][j + 1] == '#': ctr += 1 if grid[i + 1][j - 1] == '#': ctr += 1 if grid[i + 1][j] == '#': ctr += 1 if grid[i + 1][j + 1] == '#': ctr += 1 elif i == 0 and j == 0: if grid[0][1] == '#': ctr += 1 if grid[1][0] == '#': ctr += 1 if grid[1][1] == '#': ctr += 1 elif i == len(grid) - 1 and j == 0: if grid[i - 1][j] == '#': ctr += 1 if grid[i - 1][j + 1] == '#': ctr += 1 if grid[i][j + 1] == '#': ctr += 1 elif i == 0 and j == len(grid[i]) - 1: if grid[i][j - 1] == '#': ctr += 1 if grid[i + 1][j] == '#': ctr += 1 if grid[i + 1][j - 1] == '#': ctr += 1 elif i == len(grid) - 1 and j == len(grid[i]) - 1: if grid[i][j - 1] == '#': ctr += 1 if grid[i - 1][j] == '#': ctr += 1 if grid[i - 1][j - 1] == '#': ctr += 1 else: if i == 0: if grid[i][j - 1] == '#': ctr += 1 if grid[i][j + 1] == '#': ctr += 1 if grid[i + 1][j + 1] == '#': ctr += 1 if grid[i + 1][j] == '#': ctr += 1 if grid[i + 1][j - 1] == '#': ctr += 1 if i == len(grid) - 1: if grid[i][j - 1] == '#': ctr += 1 if grid[i][j + 1] == '#': ctr += 1 if grid[i - 1][j + 1] == '#': ctr += 1 if grid[i - 1][j] == '#': ctr += 1 if grid[i - 1][j - 1] == '#': ctr += 1 if j == 0: if grid[i + 1][j] == '#': ctr += 1 if grid[i + 1][j + 1] == '#': ctr += 1 if grid[i][j + 1] == '#': ctr += 1 if grid[i - 1][j] == '#': ctr += 1 if grid[i - 1][j + 1] == '#': ctr += 1 if j == len(grid[i]) - 1: if grid[i + 1][j] == '#': ctr += 1 if grid[i + 1][j - 1] == '#': ctr += 1 if grid[i][j - 1] == '#': ctr += 1 if grid[i - 1][j] == '#': ctr += 1 if grid[i - 1][j - 1] == '#': ctr += 1 if ctr >= 4: ans[i] = ans[i][0:j] + 'L' + ans[i][j + 1:] elif ctr == 0 and grid[i][j] == 'L': ans[i] = ans[i][0:j] + '#' + ans[i][j + 1:] return ans def print_grid(grid): for i in grid: print(i) print('\n\n') def main(): grid = open('etc/data.txt').read().splitlines() last = grid.copy() ctr = 0 print_grid(last) while ctr < 1000: new_grid = calc_new_grid(last) if new_grid == last: break else: last = new_grid print_grid(last) ctr += 1 ans = 0 for i in last: for j in i: if j == '#': ans += 1 print(ans) main()
{ 'includes': ['../../common.gypi'], 'targets': [ { 'target_name': 'harfbuzz', 'type': 'static_library', 'defines': [ 'HAVE_FREETYPE', 'HAVE_FT_GET_VAR_BLEND_COORDINATES', 'HAVE_INTEL_ATOMIC_PRIMITIVES', 'HAVE_OT', 'HAVE_UCDN', ], 'sources': [ 'harfbuzz/src/hb-blob.cc', 'harfbuzz/src/hb-buffer-serialize.cc', 'harfbuzz/src/hb-buffer.cc', 'harfbuzz/src/hb-common.cc', #'harfbuzz/src/hb-coretext.cc', #'harfbuzz/src/hb-directwrite.cc', 'harfbuzz/src/hb-face.cc', #'harfbuzz/src/hb-fallback-shape.cc', 'harfbuzz/src/hb-font.cc', 'harfbuzz/src/hb-ft.cc', #'harfbuzz/src/hb-glib.cc', #'harfbuzz/src/hb-gobject-structs.cc', #'harfbuzz/src/hb-graphite2.cc', #'harfbuzz/src/hb-icu.cc', 'harfbuzz/src/hb-ot-font.cc', 'harfbuzz/src/hb-ot-layout.cc', 'harfbuzz/src/hb-ot-map.cc', 'harfbuzz/src/hb-ot-var.cc', 'harfbuzz/src/hb-ot-shape-complex-arabic.cc', 'harfbuzz/src/hb-ot-shape-complex-default.cc', 'harfbuzz/src/hb-ot-shape-complex-hangul.cc', 'harfbuzz/src/hb-ot-shape-complex-hebrew.cc', 'harfbuzz/src/hb-ot-shape-complex-indic-table.cc', 'harfbuzz/src/hb-ot-shape-complex-indic.cc', 'harfbuzz/src/hb-ot-shape-complex-khmer.cc', 'harfbuzz/src/hb-ot-shape-complex-myanmar.cc', 'harfbuzz/src/hb-ot-shape-complex-thai.cc', 'harfbuzz/src/hb-ot-shape-complex-tibetan.cc', 'harfbuzz/src/hb-ot-shape-complex-use-table.cc', 'harfbuzz/src/hb-ot-shape-complex-use.cc', 'harfbuzz/src/hb-ot-shape-fallback.cc', 'harfbuzz/src/hb-ot-shape-normalize.cc', 'harfbuzz/src/hb-ot-shape.cc', 'harfbuzz/src/hb-ot-tag.cc', 'harfbuzz/src/hb-set.cc', 'harfbuzz/src/hb-shape-plan.cc', 'harfbuzz/src/hb-shape.cc', 'harfbuzz/src/hb-shaper.cc', 'harfbuzz/src/hb-ucdn.cc', #'harfbuzz/src/hb-ucdn/ucdn.c', 'harfbuzz/src/hb-unicode.cc', #'harfbuzz/src/hb-uniscribe.cc', 'harfbuzz/src/hb-warning.cc', 'harfbuzz/src/hb-buffer-deserialize-json.rl', 'harfbuzz/src/hb-buffer-deserialize-text.rl', 'harfbuzz/src/hb-ot-shape-complex-indic-machine.rl', 'harfbuzz/src/hb-ot-shape-complex-khmer-machine.rl', 'harfbuzz/src/hb-ot-shape-complex-myanmar-machine.rl', 'harfbuzz/src/hb-ot-shape-complex-use-machine.rl', ], 'direct_dependent_settings': { 'include_dirs': [ 'autoconf_generated', 'harfbuzz/src', ], }, 'include_dirs': [ 'autoconf_generated', 'harfbuzz/src', #'harfbuzz/src/hb-ucdn', '<(INTERMEDIATE_DIR)', ], 'rules': [ { 'rule_name': 'ragel', 'extension': 'rl', 'outputs': [ '<(INTERMEDIATE_DIR)/<(RULE_INPUT_ROOT).hh' ], 'action': [ '<(PRODUCT_DIR)/ragel', '-e', '-F1', '-o', '<@(_outputs)', '<(RULE_INPUT_PATH)' ], } ], 'dependencies': [ '../freetype/freetype.gyp:freetype', '../ragel/ragel.gyp:ragel', '../ucdn/ucdn.gyp:ucdn', ], }, ] }
{'includes': ['../../common.gypi'], 'targets': [{'target_name': 'harfbuzz', 'type': 'static_library', 'defines': ['HAVE_FREETYPE', 'HAVE_FT_GET_VAR_BLEND_COORDINATES', 'HAVE_INTEL_ATOMIC_PRIMITIVES', 'HAVE_OT', 'HAVE_UCDN'], 'sources': ['harfbuzz/src/hb-blob.cc', 'harfbuzz/src/hb-buffer-serialize.cc', 'harfbuzz/src/hb-buffer.cc', 'harfbuzz/src/hb-common.cc', 'harfbuzz/src/hb-face.cc', 'harfbuzz/src/hb-font.cc', 'harfbuzz/src/hb-ft.cc', 'harfbuzz/src/hb-ot-font.cc', 'harfbuzz/src/hb-ot-layout.cc', 'harfbuzz/src/hb-ot-map.cc', 'harfbuzz/src/hb-ot-var.cc', 'harfbuzz/src/hb-ot-shape-complex-arabic.cc', 'harfbuzz/src/hb-ot-shape-complex-default.cc', 'harfbuzz/src/hb-ot-shape-complex-hangul.cc', 'harfbuzz/src/hb-ot-shape-complex-hebrew.cc', 'harfbuzz/src/hb-ot-shape-complex-indic-table.cc', 'harfbuzz/src/hb-ot-shape-complex-indic.cc', 'harfbuzz/src/hb-ot-shape-complex-khmer.cc', 'harfbuzz/src/hb-ot-shape-complex-myanmar.cc', 'harfbuzz/src/hb-ot-shape-complex-thai.cc', 'harfbuzz/src/hb-ot-shape-complex-tibetan.cc', 'harfbuzz/src/hb-ot-shape-complex-use-table.cc', 'harfbuzz/src/hb-ot-shape-complex-use.cc', 'harfbuzz/src/hb-ot-shape-fallback.cc', 'harfbuzz/src/hb-ot-shape-normalize.cc', 'harfbuzz/src/hb-ot-shape.cc', 'harfbuzz/src/hb-ot-tag.cc', 'harfbuzz/src/hb-set.cc', 'harfbuzz/src/hb-shape-plan.cc', 'harfbuzz/src/hb-shape.cc', 'harfbuzz/src/hb-shaper.cc', 'harfbuzz/src/hb-ucdn.cc', 'harfbuzz/src/hb-unicode.cc', 'harfbuzz/src/hb-warning.cc', 'harfbuzz/src/hb-buffer-deserialize-json.rl', 'harfbuzz/src/hb-buffer-deserialize-text.rl', 'harfbuzz/src/hb-ot-shape-complex-indic-machine.rl', 'harfbuzz/src/hb-ot-shape-complex-khmer-machine.rl', 'harfbuzz/src/hb-ot-shape-complex-myanmar-machine.rl', 'harfbuzz/src/hb-ot-shape-complex-use-machine.rl'], 'direct_dependent_settings': {'include_dirs': ['autoconf_generated', 'harfbuzz/src']}, 'include_dirs': ['autoconf_generated', 'harfbuzz/src', '<(INTERMEDIATE_DIR)'], 'rules': [{'rule_name': 'ragel', 'extension': 'rl', 'outputs': ['<(INTERMEDIATE_DIR)/<(RULE_INPUT_ROOT).hh'], 'action': ['<(PRODUCT_DIR)/ragel', '-e', '-F1', '-o', '<@(_outputs)', '<(RULE_INPUT_PATH)']}], 'dependencies': ['../freetype/freetype.gyp:freetype', '../ragel/ragel.gyp:ragel', '../ucdn/ucdn.gyp:ucdn']}]}
print('===== DESAFIO 085 =====') num = 0 for p in range(0, 7): num = int(input('digite um numero: '))
print('===== DESAFIO 085 =====') num = 0 for p in range(0, 7): num = int(input('digite um numero: '))
sites_dict = { 'forbes': '(.*)forbes.com(.*)', 'hnews': '(.*)news.ycombinator.com(.*)', 'reddit': '(.*)reddit.com(.*)', 'hackaday': '(.*)hackaday.com(.*)', }
sites_dict = {'forbes': '(.*)forbes.com(.*)', 'hnews': '(.*)news.ycombinator.com(.*)', 'reddit': '(.*)reddit.com(.*)', 'hackaday': '(.*)hackaday.com(.*)'}
# Python Program To Insert A New Elements Into A Tuple Of Elements At A Specified Position ''' Function Name : Insert New Element Into Tuple At Any Position. Function Date : 12 Sep 2020 Function Author : Prasad Dangare Input : String,Integer Output : String,Integer ''' print("\n") names = (' Prasad', 'Hritik','Shubham', 'Shiva') print(names) # Accept New Name And Position Numbers lst = [input('\n Enter A New Name : ')] new = tuple(lst) pos = int(input('\n Enter Position No : ')) # Copy From 0th To pos-2 Into Tuple names1 names1 = names[0:pos-1] # Concatenate New Elements At pos -1 names1 = names1+new # Concatenate The Remaining Elements Of Names From pos-1 Till End names = names1+names[pos-1:] print(names) print("\n")
""" Function Name : Insert New Element Into Tuple At Any Position. Function Date : 12 Sep 2020 Function Author : Prasad Dangare Input : String,Integer Output : String,Integer """ print('\n') names = (' Prasad', 'Hritik', 'Shubham', 'Shiva') print(names) lst = [input('\n Enter A New Name : ')] new = tuple(lst) pos = int(input('\n Enter Position No : ')) names1 = names[0:pos - 1] names1 = names1 + new names = names1 + names[pos - 1:] print(names) print('\n')
#chamar 5 valores #-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= #analisando os valores passados.. #1 2 3 Foram informados 3 valores ao todos. #o maior valor informado foi 3. #-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= #se for zero o maior valor vai ser zero def valores(*n): maior = menor = 0 print('-'*35) print('Analisando os valores passados...') print(*n,sep=' ',end=' ') tamanho = len(n) print(f'Foram informados {tamanho} valores ao todos.') #print(f'O maior valor informado foi {max(n)}') for tp in n: if tp == 1: maior = tp menor = tp else: if tp>maior: maior = tp if tp<menor: menor = tp print(f'O maior valor informado foi {maior}') valores(1,2,3,4,5) valores(12,34,5) valores(78,6,45,32) valores(7) valores(20,21,22,23) valores() valores(0)
def valores(*n): maior = menor = 0 print('-' * 35) print('Analisando os valores passados...') print(*n, sep=' ', end=' ') tamanho = len(n) print(f'Foram informados {tamanho} valores ao todos.') for tp in n: if tp == 1: maior = tp menor = tp else: if tp > maior: maior = tp if tp < menor: menor = tp print(f'O maior valor informado foi {maior}') valores(1, 2, 3, 4, 5) valores(12, 34, 5) valores(78, 6, 45, 32) valores(7) valores(20, 21, 22, 23) valores() valores(0)
#!/usr/bin/env python3 inputStr = input() map1Str = input() map2Str = input() outputStr = '' for i in inputStr: match = False for mapCharIndex, mapChar in enumerate( map1Str ): if i == mapChar: outputStr += map2Str[mapCharIndex] match = True break for mapCharIndex, mapChar in enumerate( map2Str ): if i == mapChar: outputStr += map1Str[mapCharIndex] match = True break if not match: outputStr += i print( '{}'.format( outputStr ) )
input_str = input() map1_str = input() map2_str = input() output_str = '' for i in inputStr: match = False for (map_char_index, map_char) in enumerate(map1Str): if i == mapChar: output_str += map2Str[mapCharIndex] match = True break for (map_char_index, map_char) in enumerate(map2Str): if i == mapChar: output_str += map1Str[mapCharIndex] match = True break if not match: output_str += i print('{}'.format(outputStr))
class spexxyException(Exception): def __init__(self, message=""): self.message = message class spexxyValueTooLowException(spexxyException): pass class spexxyValueTooHighException(spexxyException): pass
class Spexxyexception(Exception): def __init__(self, message=''): self.message = message class Spexxyvaluetoolowexception(spexxyException): pass class Spexxyvaluetoohighexception(spexxyException): pass
coordinates_E0E1E1 = ((127, 121), (128, 121), (129, 105), (129, 107), (129, 121), (130, 103), (130, 104), (130, 108), (130, 121), (130, 123), (131, 100), (131, 105), (131, 106), (131, 107), (131, 109), (131, 120), (131, 122), (132, 100), (132, 103), (132, 104), (132, 105), (132, 106), (132, 108), (132, 119), (132, 122), (133, 100), (133, 102), (133, 103), (133, 104), (133, 105), (133, 107), (133, 118), (133, 121), (133, 132), (134, 100), (134, 101), (134, 102), (134, 103), (134, 104), (134, 105), (134, 107), (134, 117), (134, 119), (134, 122), (134, 133), (134, 135), (135, 101), (135, 103), (135, 104), (135, 105), (135, 107), (135, 115), (135, 117), (135, 122), (135, 133), (135, 135), (136, 101), (136, 103), (136, 104), (136, 105), (136, 106), (136, 107), (136, 108), (136, 112), (136, 113), (136, 122), (136, 123), (136, 133), (136, 134), (137, 101), (137, 103), (137, 104), (137, 105), (137, 108), (137, 110), (137, 124), (137, 132), (138, 101), (138, 103), (138, 104), (138, 107), (138, 123), (138, 125), (138, 130), (139, 101), (139, 103), (139, 105), (139, 123), (139, 127), (139, 129), (140, 101), (140, 104), (140, 124), (140, 126), (141, 103), (141, 112), (141, 124), (141, 126), (141, 128), (142, 102), (142, 110), (142, 111), (142, 124), (142, 126), (142, 128), (143, 102), (143, 108), (143, 109), (143, 124), (143, 126), (143, 128), (143, 140), (144, 102), (144, 108), (144, 123), (144, 125), (144, 126), (144, 128), (144, 133), (144, 134), (144, 138), (144, 140), (145, 103), (145, 105), (145, 107), (145, 121), (145, 128), (145, 129), (145, 133), (145, 140), (146, 103), (146, 107), (146, 119), (146, 121), (146, 122), (146, 123), (146, 124), (146, 125), (146, 126), (146, 127), (146, 128), (146, 130), (146, 132), (146, 140), (147, 104), (147, 106), (147, 128), (147, 131), (148, 105), (148, 107), (148, 128), (148, 130), (149, 106), (149, 107), (149, 128), (149, 129), (150, 107), (150, 128), (150, 129), (151, 108), (151, 110), (151, 111), (151, 128), (151, 129), (152, 109), (152, 112), (152, 113), (152, 115), (152, 128), (153, 111), (153, 116), (153, 131), (153, 132), (154, 132), (154, 134), (155, 133), (158, 133), ) coordinates_E1E1E1 = ((87, 126), (87, 128), (88, 124), (88, 127), (89, 125), (89, 127), (90, 126), (90, 127), (91, 127), (92, 127), (93, 127), (94, 104), (94, 118), (94, 119), (94, 127), (94, 136), (94, 138), (95, 103), (95, 105), (95, 113), (95, 115), (95, 116), (95, 117), (95, 127), (95, 128), (95, 136), (95, 140), (96, 105), (96, 119), (96, 128), (96, 136), (96, 138), (96, 140), (97, 105), (97, 115), (97, 118), (97, 127), (97, 136), (97, 138), (97, 140), (98, 105), (98, 116), (98, 118), (98, 127), (98, 136), (98, 138), (98, 139), (98, 140), (98, 141), (99, 105), (99, 106), (99, 116), (99, 118), (99, 135), (99, 136), (99, 143), (100, 104), (100, 106), (100, 116), (100, 118), (100, 135), (100, 137), (100, 138), (100, 139), (100, 140), (100, 142), (101, 104), (101, 106), (101, 115), (101, 118), (101, 135), (102, 103), (102, 105), (102, 114), (102, 116), (102, 117), (102, 119), (102, 134), (103, 103), (103, 105), (103, 113), (103, 115), (103, 116), (103, 117), (103, 119), (103, 132), (103, 133), (104, 103), (104, 105), (104, 113), (104, 115), (104, 116), (104, 117), (104, 118), (104, 120), (104, 132), (105, 103), (105, 105), (105, 113), (105, 114), (105, 115), (105, 116), (105, 117), (105, 118), (105, 119), (105, 121), (105, 127), (105, 129), (106, 103), (106, 105), (106, 114), (106, 116), (106, 117), (106, 118), (106, 119), (106, 120), (106, 122), (106, 126), (106, 130), (107, 102), (107, 105), (107, 114), (107, 116), (107, 117), (107, 118), (107, 119), (107, 120), (107, 122), (107, 125), (107, 127), (107, 128), (107, 130), (108, 102), (108, 105), (108, 114), (108, 116), (108, 117), (108, 118), (108, 119), (108, 120), (108, 121), (108, 122), (108, 124), (108, 126), (108, 127), (108, 128), (108, 130), (109, 101), (109, 103), (109, 114), (109, 116), (109, 117), (109, 118), (109, 119), (109, 120), (109, 121), (109, 122), (109, 123), (109, 125), (109, 129), (109, 131), (110, 102), (110, 114), (110, 116), (110, 120), (110, 121), (110, 122), (110, 123), (110, 126), (110, 127), (110, 128), (110, 129), (110, 130), (110, 131), (110, 132), (110, 133), (110, 134), (110, 135), (110, 137), (111, 100), (111, 102), (111, 113), (111, 115), (111, 118), (111, 119), (111, 120), (111, 121), (111, 122), (111, 125), (111, 134), (112, 100), (112, 102), (112, 113), (112, 120), (112, 123), (112, 136), (113, 100), (113, 102), (113, 112), (113, 113), (113, 114), (113, 116), (113, 120), (113, 122), (113, 136), (114, 101), (114, 103), (114, 106), (114, 108), (114, 109), (114, 120), (114, 122), (115, 102), (115, 104), (115, 105), (115, 106), (115, 107), (115, 120), (115, 121), (116, 119), (116, 121), (117, 119), (117, 121), (118, 118), (118, 120), (119, 113), (119, 115), (119, 116), (119, 120), (120, 112), (120, 114), (120, 115), (120, 116), (120, 117), (120, 119), ) coordinates_60CC60 = ((97, 158), (97, 159), (98, 157), (98, 159), (99, 159), (100, 151), (100, 156), (100, 158), (100, 160), (101, 151), (101, 155), (101, 157), (101, 158), (101, 160), (102, 150), (102, 152), (102, 153), (102, 156), (102, 157), (102, 158), (102, 160), (103, 151), (103, 152), (103, 155), (103, 156), (103, 157), (103, 158), (103, 160), (104, 149), (104, 151), (104, 152), (104, 153), (104, 154), (104, 155), (104, 156), (104, 157), (104, 158), (104, 160), (105, 148), (105, 150), (105, 151), (105, 152), (105, 153), (105, 154), (105, 155), (105, 156), (105, 157), (105, 158), (105, 160), (106, 148), (106, 150), (106, 151), (106, 152), (106, 153), (106, 154), (106, 155), (106, 156), (106, 157), (106, 158), (106, 159), (106, 161), (107, 147), (107, 149), (107, 150), (107, 151), (107, 152), (107, 153), (107, 154), (107, 155), (107, 156), (107, 157), (107, 158), (107, 159), (107, 161), (108, 147), (108, 149), (108, 150), (108, 151), (108, 152), (108, 153), (108, 154), (108, 155), (108, 156), (108, 157), (108, 158), (108, 159), (108, 160), (108, 161), (108, 162), (109, 147), (109, 149), (109, 150), (109, 151), (109, 152), (109, 153), (109, 154), (109, 155), (109, 156), (109, 157), (109, 158), (109, 159), (109, 160), (109, 162), (110, 147), (110, 149), (110, 150), (110, 151), (110, 152), (110, 153), (110, 154), (110, 155), (110, 156), (110, 157), (110, 158), (110, 159), (110, 160), (110, 162), (111, 147), (111, 149), (111, 150), (111, 151), (111, 152), (111, 153), (111, 154), (111, 155), (111, 156), (111, 157), (111, 158), (111, 159), (111, 161), (112, 147), (112, 149), (112, 150), (112, 151), (112, 152), (112, 153), (112, 154), (112, 155), (112, 156), (112, 157), (112, 158), (112, 159), (112, 161), (113, 147), (113, 149), (113, 150), (113, 151), (113, 152), (113, 153), (113, 154), (113, 155), (113, 156), (113, 157), (113, 158), (113, 159), (113, 161), (114, 147), (114, 149), (114, 150), (114, 151), (114, 152), (114, 153), (114, 154), (114, 155), (114, 156), (114, 157), (114, 158), (114, 159), (114, 161), (115, 147), (115, 149), (115, 150), (115, 151), (115, 152), (115, 153), (115, 154), (115, 155), (115, 156), (115, 157), (115, 158), (115, 160), (116, 147), (116, 149), (116, 150), (116, 151), (116, 152), (116, 153), (116, 154), (116, 155), (116, 156), (116, 157), (116, 158), (116, 160), (117, 147), (117, 149), (117, 150), (117, 151), (117, 152), (117, 153), (117, 154), (117, 155), (117, 156), (117, 157), (117, 159), (118, 147), (118, 149), (118, 150), (118, 151), (118, 152), (118, 153), (118, 154), (118, 155), (118, 156), (118, 157), (118, 159), (119, 148), (119, 150), (119, 151), (119, 152), (119, 153), (119, 154), (119, 155), (119, 156), (119, 158), (120, 155), (120, 156), (120, 158), (121, 149), (121, 151), (121, 153), (121, 154), (121, 158), (122, 155), (122, 157), ) coordinates_5FCC60 = ((131, 153), (132, 148), (132, 150), (132, 151), (132, 152), (132, 153), (132, 155), (133, 147), (133, 153), (133, 156), (133, 158), (134, 147), (134, 149), (134, 150), (134, 151), (134, 152), (134, 153), (134, 154), (134, 155), (134, 158), (135, 147), (135, 149), (135, 150), (135, 151), (135, 152), (135, 153), (135, 154), (135, 155), (135, 156), (135, 157), (135, 159), (136, 147), (136, 149), (136, 150), (136, 151), (136, 152), (136, 153), (136, 154), (136, 155), (136, 156), (136, 157), (136, 159), (137, 147), (137, 149), (137, 150), (137, 151), (137, 152), (137, 153), (137, 154), (137, 155), (137, 156), (137, 157), (137, 159), (138, 146), (138, 148), (138, 149), (138, 150), (138, 151), (138, 152), (138, 153), (138, 154), (138, 155), (138, 156), (138, 157), (138, 159), (139, 146), (139, 148), (139, 149), (139, 150), (139, 151), (139, 152), (139, 153), (139, 154), (139, 155), (139, 156), (139, 157), (139, 159), (140, 147), (140, 149), (140, 150), (140, 151), (140, 152), (140, 153), (140, 154), (140, 155), (140, 156), (140, 157), (140, 159), (141, 147), (141, 149), (141, 150), (141, 151), (141, 152), (141, 153), (141, 154), (141, 155), (141, 156), (141, 157), (141, 159), (142, 147), (142, 149), (142, 150), (142, 151), (142, 152), (142, 153), (142, 154), (142, 155), (142, 156), (142, 157), (142, 158), (142, 159), (143, 148), (143, 150), (143, 151), (143, 152), (143, 153), (143, 154), (143, 155), (143, 156), (143, 158), (144, 148), (144, 150), (144, 151), (144, 152), (144, 158), (145, 147), (145, 149), (145, 150), (145, 151), (145, 152), (145, 154), (145, 155), (145, 157), (146, 147), (146, 150), (146, 152), (146, 157), (147, 148), (147, 152), (148, 151), (149, 150), ) coordinates_F4DEB3 = ((138, 93), (138, 94), (139, 93), (139, 95), (140, 95), (141, 94), (141, 95), ) coordinates_26408B = ((134, 92), (134, 93), (135, 92), (135, 94), (136, 92), (136, 94), ) coordinates_F5DEB3 = ((93, 99), (93, 100), (94, 98), (94, 100), (95, 97), (95, 101), (96, 97), (96, 100), (97, 96), (97, 99), (98, 96), (98, 98), (99, 95), (99, 97), (100, 95), (101, 95), ) coordinates_016400 = ((124, 132), (124, 134), (125, 132), (125, 135), (126, 132), (126, 134), (126, 137), (127, 133), (127, 135), (127, 138), (128, 133), (128, 135), (128, 136), (128, 137), (128, 140), (129, 133), (129, 135), (129, 136), (129, 137), (129, 138), (129, 141), (130, 133), (130, 135), (130, 136), (130, 137), (130, 138), (130, 139), (130, 140), (130, 142), (131, 133), (131, 137), (131, 138), (131, 139), (131, 140), (131, 142), (132, 135), (132, 137), (132, 138), (132, 139), (132, 140), (132, 142), (133, 137), (133, 139), (133, 140), (133, 142), (134, 137), (134, 139), (134, 141), (135, 137), (135, 139), (135, 141), (136, 137), (136, 139), (136, 141), (137, 136), (137, 138), (137, 141), (138, 134), (138, 137), (138, 140), (139, 132), (139, 134), (139, 135), (139, 138), (140, 131), (140, 132), (140, 137), (141, 130), ) coordinates_27408B = ((97, 101), (98, 100), (99, 99), (99, 100), (100, 98), (100, 99), (101, 97), (102, 96), (102, 98), (103, 95), (103, 97), ) coordinates_006400 = ((106, 132), (106, 133), (106, 135), (106, 136), (106, 137), (106, 138), (106, 139), (107, 132), (107, 141), (108, 133), (108, 135), (108, 136), (108, 137), (108, 138), (108, 139), (108, 144), (109, 140), (109, 144), (110, 140), (110, 142), (110, 143), (110, 145), (111, 139), (111, 141), (111, 142), (111, 143), (111, 145), (112, 138), (112, 140), (112, 141), (112, 142), (112, 143), (112, 145), (113, 138), (113, 140), (113, 141), (113, 142), (113, 143), (113, 145), (114, 138), (114, 140), (114, 141), (114, 142), (114, 143), (114, 145), (115, 139), (115, 141), (115, 142), (115, 143), (115, 145), (116, 139), (116, 141), (116, 142), (116, 144), (117, 139), (117, 141), (117, 143), (118, 138), (118, 139), (118, 142), (119, 137), (119, 141), (120, 134), (120, 135), (120, 140), (121, 132), (121, 134), (121, 135), (121, 136), (121, 137), (121, 139), ) coordinates_6395ED = ((123, 129), (124, 129), (125, 128), (125, 130), (126, 128), (126, 130), (127, 127), (127, 130), (128, 127), (128, 129), (128, 131), (129, 127), (129, 129), (129, 131), (130, 125), (130, 127), (130, 128), (130, 130), (131, 125), (131, 127), (131, 128), (131, 129), (131, 131), (132, 124), (132, 126), (132, 127), (132, 128), (132, 130), (133, 124), (133, 126), (133, 127), (133, 128), (133, 130), (134, 124), (134, 126), (134, 127), (134, 128), (134, 130), (134, 131), (135, 125), (135, 127), (135, 128), (135, 129), (135, 131), (136, 126), (136, 130), (137, 127), (137, 129), ) coordinates_00FFFE = ((138, 142), (139, 141), (139, 143), (140, 140), (140, 143), (141, 139), (141, 141), (141, 143), (142, 138), (142, 142), (142, 143), (143, 142), (143, 143), (144, 142), (144, 143), (145, 142), (145, 143), (146, 138), (146, 142), (146, 143), (147, 138), (147, 142), (147, 143), (148, 138), (148, 140), (148, 141), (148, 143), (149, 139), (149, 142), (149, 144), (150, 139), (150, 141), (150, 143), (151, 140), (151, 143), (152, 141), (152, 143), (153, 142), ) coordinates_F98072 = ((124, 110), (124, 112), (124, 113), (124, 114), (124, 115), (124, 116), (124, 117), (124, 118), (124, 119), (124, 120), (124, 121), (124, 122), (124, 123), (124, 124), (124, 126), (125, 108), (125, 112), (125, 115), (125, 122), (125, 126), (126, 105), (126, 106), (126, 107), (126, 110), (126, 112), (126, 116), (126, 118), (126, 120), (126, 123), (126, 125), (127, 101), (127, 102), (127, 103), (127, 104), (127, 105), (127, 106), (127, 107), (127, 110), (127, 112), (127, 116), (127, 119), (127, 123), (127, 125), (128, 99), (128, 103), (128, 109), (128, 111), (128, 113), (128, 116), (128, 119), (128, 123), (128, 124), (129, 98), (129, 101), (129, 110), (129, 112), (129, 115), (129, 116), (129, 117), (129, 119), (130, 111), (130, 113), (130, 116), (130, 118), (131, 111), (131, 113), (131, 114), (131, 115), (132, 111), (132, 113), (132, 116), (133, 110), (133, 115), (134, 109), (134, 111), (134, 113), ) coordinates_97FB98 = ((141, 134), (142, 132), (142, 134), (142, 136), (143, 130), (143, 132), (145, 136), (146, 136), (147, 134), (147, 136), (148, 133), (148, 136), (149, 132), (149, 134), (149, 136), (150, 131), (150, 135), (150, 137), (151, 131), (151, 133), (151, 136), (151, 138), (152, 135), (152, 136), (152, 137), (152, 139), (153, 136), (153, 140), (154, 136), (154, 138), (154, 141), (155, 131), (155, 136), (155, 138), (155, 139), (155, 141), (156, 131), (156, 135), (156, 136), (156, 137), (156, 138), (156, 139), (156, 140), (156, 142), (157, 130), (157, 133), (157, 136), (157, 137), (157, 138), (157, 139), (157, 140), (157, 142), (158, 130), (158, 132), (158, 134), (158, 135), (158, 136), (158, 137), (158, 138), (158, 139), (158, 140), (158, 143), (159, 130), (159, 132), (159, 133), (159, 134), (159, 135), (159, 136), (159, 138), (159, 139), (160, 130), (160, 132), (160, 133), (160, 134), (160, 135), (160, 137), (160, 141), (161, 130), (161, 132), (161, 133), (161, 134), (161, 135), (161, 138), (161, 140), (162, 129), (162, 135), (163, 130), (163, 132), (163, 134), ) coordinates_323287 = ((156, 113), (156, 114), (156, 115), (156, 116), (156, 117), (156, 118), (156, 119), (156, 120), (156, 121), (156, 122), (156, 123), (156, 125), (157, 111), (157, 126), (158, 111), (158, 113), (158, 114), (158, 115), (158, 116), (158, 117), (158, 118), (158, 119), (158, 120), (158, 121), (158, 122), (158, 123), (158, 124), (158, 126), (159, 111), (159, 113), (159, 114), (159, 115), (159, 117), (159, 118), (159, 119), (159, 120), (159, 121), (159, 122), (159, 123), (159, 124), (159, 126), (160, 112), (160, 114), (160, 118), (160, 119), (160, 120), (160, 121), (160, 122), (160, 123), (160, 124), (160, 126), (161, 112), (161, 115), (161, 119), (161, 120), (161, 121), (161, 122), (161, 125), (162, 113), (162, 114), (162, 118), (162, 123), (162, 125), (163, 119), (163, 121), (163, 122), ) coordinates_6495ED = ((112, 127), (112, 129), (112, 130), (112, 132), (113, 125), (113, 134), (114, 124), (114, 127), (114, 128), (114, 129), (114, 130), (114, 131), (114, 132), (114, 135), (115, 124), (115, 126), (115, 127), (115, 128), (115, 129), (115, 130), (115, 131), (115, 132), (115, 133), (115, 135), (116, 123), (116, 125), (116, 126), (116, 127), (116, 128), (116, 129), (116, 130), (116, 131), (116, 132), (116, 133), (116, 134), (116, 136), (117, 123), (117, 125), (117, 126), (117, 127), (117, 128), (117, 129), (117, 130), (117, 131), (117, 132), (117, 136), (118, 123), (118, 125), (118, 126), (118, 127), (118, 128), (118, 129), (118, 130), (118, 135), (119, 123), (119, 125), (119, 126), (119, 127), (119, 128), (119, 129), (119, 132), (120, 123), (120, 130), (121, 124), (121, 126), (121, 127), (121, 129), ) coordinates_01FFFF = ((102, 139), (102, 140), (102, 142), (103, 135), (103, 137), (104, 134), (104, 136), (104, 137), (104, 138), (104, 139), (104, 140), (104, 144), (104, 146), (105, 141), (105, 146), (106, 143), (106, 146), ) coordinates_FA8072 = ((97, 103), (98, 103), (99, 102), (100, 102), (101, 101), (102, 100), (102, 101), (103, 101), (104, 99), (104, 101), (105, 99), (105, 101), (106, 99), (106, 101), (107, 99), (107, 100), (108, 99), (109, 98), (109, 99), (110, 98), (111, 98), (112, 97), (112, 98), (113, 97), (113, 98), (113, 118), (114, 97), (114, 118), (115, 97), (115, 99), (115, 111), (115, 112), (115, 113), (115, 114), (115, 115), (115, 116), (115, 118), (116, 100), (116, 109), (116, 110), (116, 117), (117, 98), (117, 102), (117, 105), (117, 106), (117, 107), (117, 113), (117, 114), (117, 116), (117, 117), (118, 99), (118, 103), (118, 109), (118, 110), (118, 111), (119, 100), (119, 104), (119, 105), (119, 108), (119, 110), (120, 106), (120, 110), (121, 108), (121, 110), (121, 111), (121, 121), (121, 122), (122, 114), (122, 115), (122, 116), (122, 117), (122, 118), (122, 119), ) coordinates_98FB98 = ((85, 134), (85, 136), (86, 134), (86, 137), (87, 133), (87, 136), (87, 138), (88, 133), (88, 135), (88, 137), (88, 139), (88, 143), (89, 132), (89, 134), (89, 137), (89, 138), (89, 139), (89, 144), (89, 146), (90, 132), (90, 134), (90, 137), (90, 139), (90, 141), (90, 143), (90, 147), (91, 132), (91, 134), (91, 137), (91, 139), (91, 140), (91, 142), (91, 143), (91, 144), (91, 145), (91, 147), (92, 132), (92, 134), (92, 135), (92, 136), (92, 137), (92, 138), (92, 141), (92, 142), (92, 143), (92, 144), (92, 145), (92, 147), (93, 133), (93, 134), (93, 140), (93, 142), (93, 143), (93, 144), (93, 145), (93, 146), (93, 147), (93, 148), (94, 133), (94, 134), (94, 141), (94, 143), (94, 144), (94, 145), (94, 146), (94, 148), (95, 134), (95, 142), (95, 144), (95, 145), (95, 146), (95, 148), (96, 134), (96, 142), (96, 145), (96, 146), (96, 148), (97, 134), (97, 143), (97, 144), (97, 145), (97, 146), (97, 148), (98, 145), (98, 148), (99, 133), (99, 145), (99, 147), (99, 148), (100, 133), (100, 144), (100, 147), (101, 132), (101, 144), (102, 144), (102, 147), ) coordinates_FEC0CB = ((131, 97), (131, 98), (132, 97), (132, 98), (133, 97), (133, 98), (134, 98), (135, 98), (136, 98), (136, 119), (136, 120), (137, 98), (137, 116), (137, 117), (137, 118), (137, 120), (138, 99), (138, 112), (138, 113), (138, 114), (138, 119), (138, 121), (139, 99), (139, 109), (139, 111), (139, 112), (139, 113), (139, 114), (139, 115), (139, 116), (139, 117), (139, 118), (139, 119), (139, 121), (140, 99), (140, 107), (140, 110), (140, 117), (140, 118), (140, 119), (140, 121), (141, 99), (141, 108), (141, 116), (141, 117), (141, 118), (141, 119), (141, 120), (141, 122), (142, 99), (142, 105), (142, 107), (142, 115), (142, 117), (142, 118), (142, 122), (143, 99), (143, 100), (143, 104), (143, 113), (143, 116), (143, 117), (143, 119), (143, 121), (143, 122), (144, 99), (144, 100), (144, 111), (144, 115), (144, 116), (144, 117), (144, 118), (145, 99), (145, 101), (145, 110), (145, 113), (145, 114), (145, 115), (145, 117), (146, 99), (146, 101), (146, 109), (146, 111), (146, 112), (146, 113), (146, 114), (146, 115), (146, 117), (147, 100), (147, 102), (147, 109), (147, 111), (147, 112), (147, 113), (147, 114), (147, 115), (147, 116), (147, 117), (148, 100), (148, 109), (148, 113), (148, 114), (148, 115), (148, 116), (148, 117), (148, 119), (148, 120), (148, 121), (148, 122), (148, 123), (148, 124), (148, 126), (149, 101), (149, 110), (149, 112), (149, 117), (149, 120), (149, 124), (149, 126), (150, 102), (150, 113), (150, 114), (150, 115), (150, 118), (150, 120), (150, 124), (150, 126), (151, 102), (151, 117), (151, 119), (151, 121), (151, 124), (152, 103), (152, 107), (152, 118), (152, 124), (152, 126), (153, 104), (153, 108), (153, 118), (153, 119), (153, 120), (153, 121), (153, 122), (153, 126), (154, 105), (154, 109), (154, 114), (154, 124), (154, 125), (155, 107), (155, 109), (155, 110), (155, 111), (155, 129), (156, 128), (157, 128), ) coordinates_333287 = ((81, 114), (81, 116), (81, 117), (81, 120), (81, 122), (82, 112), (82, 118), (82, 119), (82, 125), (82, 126), (82, 127), (82, 128), (82, 129), (82, 130), (83, 111), (83, 114), (83, 115), (83, 116), (83, 117), (83, 120), (83, 121), (83, 122), (83, 132), (84, 110), (84, 112), (84, 113), (84, 114), (84, 115), (84, 116), (84, 117), (84, 118), (84, 119), (84, 120), (84, 121), (84, 122), (84, 123), (84, 130), (84, 132), (85, 109), (85, 111), (85, 112), (85, 113), (85, 114), (85, 115), (85, 116), (85, 117), (85, 118), (85, 119), (85, 120), (85, 121), (85, 122), (85, 125), (85, 126), (85, 127), (85, 128), (85, 129), (85, 130), (85, 132), (86, 109), (86, 111), (86, 112), (86, 113), (86, 114), (86, 115), (86, 116), (86, 117), (86, 118), (86, 119), (86, 120), (86, 121), (86, 122), (86, 123), (86, 130), (86, 132), (87, 109), (87, 111), (87, 112), (87, 113), (87, 114), (87, 115), (87, 116), (87, 117), (87, 118), (87, 119), (87, 120), (87, 121), (87, 122), (87, 130), (87, 131), (88, 109), (88, 111), (88, 112), (88, 113), (88, 114), (88, 115), (88, 122), (88, 130), (88, 131), (89, 104), (89, 108), (89, 110), (89, 111), (89, 112), (89, 116), (89, 117), (89, 118), (89, 119), (89, 120), (89, 123), (89, 129), (89, 130), (90, 114), (90, 122), (90, 129), (90, 130), (91, 108), (91, 110), (91, 112), (91, 123), (91, 124), (91, 129), (91, 130), (92, 124), (92, 125), (92, 129), (92, 130), (93, 124), (93, 125), (93, 129), (93, 131), (94, 124), (94, 125), (94, 130), (94, 131), (95, 125), (95, 130), (95, 132), (96, 125), (96, 130), (96, 132), (97, 125), (97, 130), (97, 132), (98, 129), (98, 131), (99, 129), (99, 131), ) coordinates_FFC0CB = ((91, 117), (91, 118), (91, 120), (92, 102), (92, 104), (92, 106), (92, 114), (92, 118), (92, 119), (92, 121), (93, 102), (93, 105), (93, 107), (93, 113), (93, 114), (93, 115), (93, 116), (93, 122), (94, 106), (94, 110), (94, 122), (95, 107), (95, 111), (95, 122), (96, 107), (96, 109), (96, 110), (96, 112), (96, 121), (96, 122), (97, 108), (97, 110), (97, 111), (97, 113), (97, 121), (97, 123), (98, 108), (98, 110), (98, 111), (98, 112), (98, 114), (98, 120), (98, 123), (99, 108), (99, 110), (99, 111), (99, 112), (99, 114), (99, 120), (99, 122), (99, 124), (100, 108), (100, 110), (100, 111), (100, 113), (100, 120), (100, 122), (100, 123), (100, 126), (101, 108), (101, 110), (101, 112), (101, 121), (101, 123), (101, 124), (101, 128), (101, 130), (102, 108), (102, 111), (102, 121), (102, 123), (102, 124), (102, 125), (102, 126), (102, 130), (103, 108), (103, 111), (103, 122), (103, 124), (103, 127), (103, 128), (104, 107), (104, 109), (104, 111), (104, 122), (105, 107), (105, 109), (105, 111), (105, 123), (105, 125), (106, 107), (106, 109), (106, 111), (106, 124), (107, 107), (107, 109), (107, 111), (108, 107), (108, 109), (108, 110), (108, 112), (109, 107), (109, 109), (109, 110), (109, 112), (110, 105), (110, 107), (110, 108), (110, 109), (110, 110), (111, 104), (111, 111), (112, 104), (112, 106), (112, 107), (112, 108), (112, 110), )
coordinates_e0_e1_e1 = ((127, 121), (128, 121), (129, 105), (129, 107), (129, 121), (130, 103), (130, 104), (130, 108), (130, 121), (130, 123), (131, 100), (131, 105), (131, 106), (131, 107), (131, 109), (131, 120), (131, 122), (132, 100), (132, 103), (132, 104), (132, 105), (132, 106), (132, 108), (132, 119), (132, 122), (133, 100), (133, 102), (133, 103), (133, 104), (133, 105), (133, 107), (133, 118), (133, 121), (133, 132), (134, 100), (134, 101), (134, 102), (134, 103), (134, 104), (134, 105), (134, 107), (134, 117), (134, 119), (134, 122), (134, 133), (134, 135), (135, 101), (135, 103), (135, 104), (135, 105), (135, 107), (135, 115), (135, 117), (135, 122), (135, 133), (135, 135), (136, 101), (136, 103), (136, 104), (136, 105), (136, 106), (136, 107), (136, 108), (136, 112), (136, 113), (136, 122), (136, 123), (136, 133), (136, 134), (137, 101), (137, 103), (137, 104), (137, 105), (137, 108), (137, 110), (137, 124), (137, 132), (138, 101), (138, 103), (138, 104), (138, 107), (138, 123), (138, 125), (138, 130), (139, 101), (139, 103), (139, 105), (139, 123), (139, 127), (139, 129), (140, 101), (140, 104), (140, 124), (140, 126), (141, 103), (141, 112), (141, 124), (141, 126), (141, 128), (142, 102), (142, 110), (142, 111), (142, 124), (142, 126), (142, 128), (143, 102), (143, 108), (143, 109), (143, 124), (143, 126), (143, 128), (143, 140), (144, 102), (144, 108), (144, 123), (144, 125), (144, 126), (144, 128), (144, 133), (144, 134), (144, 138), (144, 140), (145, 103), (145, 105), (145, 107), (145, 121), (145, 128), (145, 129), (145, 133), (145, 140), (146, 103), (146, 107), (146, 119), (146, 121), (146, 122), (146, 123), (146, 124), (146, 125), (146, 126), (146, 127), (146, 128), (146, 130), (146, 132), (146, 140), (147, 104), (147, 106), (147, 128), (147, 131), (148, 105), (148, 107), (148, 128), (148, 130), (149, 106), (149, 107), (149, 128), (149, 129), (150, 107), (150, 128), (150, 129), (151, 108), (151, 110), (151, 111), (151, 128), (151, 129), (152, 109), (152, 112), (152, 113), (152, 115), (152, 128), (153, 111), (153, 116), (153, 131), (153, 132), (154, 132), (154, 134), (155, 133), (158, 133)) coordinates_e1_e1_e1 = ((87, 126), (87, 128), (88, 124), (88, 127), (89, 125), (89, 127), (90, 126), (90, 127), (91, 127), (92, 127), (93, 127), (94, 104), (94, 118), (94, 119), (94, 127), (94, 136), (94, 138), (95, 103), (95, 105), (95, 113), (95, 115), (95, 116), (95, 117), (95, 127), (95, 128), (95, 136), (95, 140), (96, 105), (96, 119), (96, 128), (96, 136), (96, 138), (96, 140), (97, 105), (97, 115), (97, 118), (97, 127), (97, 136), (97, 138), (97, 140), (98, 105), (98, 116), (98, 118), (98, 127), (98, 136), (98, 138), (98, 139), (98, 140), (98, 141), (99, 105), (99, 106), (99, 116), (99, 118), (99, 135), (99, 136), (99, 143), (100, 104), (100, 106), (100, 116), (100, 118), (100, 135), (100, 137), (100, 138), (100, 139), (100, 140), (100, 142), (101, 104), (101, 106), (101, 115), (101, 118), (101, 135), (102, 103), (102, 105), (102, 114), (102, 116), (102, 117), (102, 119), (102, 134), (103, 103), (103, 105), (103, 113), (103, 115), (103, 116), (103, 117), (103, 119), (103, 132), (103, 133), (104, 103), (104, 105), (104, 113), (104, 115), (104, 116), (104, 117), (104, 118), (104, 120), (104, 132), (105, 103), (105, 105), (105, 113), (105, 114), (105, 115), (105, 116), (105, 117), (105, 118), (105, 119), (105, 121), (105, 127), (105, 129), (106, 103), (106, 105), (106, 114), (106, 116), (106, 117), (106, 118), (106, 119), (106, 120), (106, 122), (106, 126), (106, 130), (107, 102), (107, 105), (107, 114), (107, 116), (107, 117), (107, 118), (107, 119), (107, 120), (107, 122), (107, 125), (107, 127), (107, 128), (107, 130), (108, 102), (108, 105), (108, 114), (108, 116), (108, 117), (108, 118), (108, 119), (108, 120), (108, 121), (108, 122), (108, 124), (108, 126), (108, 127), (108, 128), (108, 130), (109, 101), (109, 103), (109, 114), (109, 116), (109, 117), (109, 118), (109, 119), (109, 120), (109, 121), (109, 122), (109, 123), (109, 125), (109, 129), (109, 131), (110, 102), (110, 114), (110, 116), (110, 120), (110, 121), (110, 122), (110, 123), (110, 126), (110, 127), (110, 128), (110, 129), (110, 130), (110, 131), (110, 132), (110, 133), (110, 134), (110, 135), (110, 137), (111, 100), (111, 102), (111, 113), (111, 115), (111, 118), (111, 119), (111, 120), (111, 121), (111, 122), (111, 125), (111, 134), (112, 100), (112, 102), (112, 113), (112, 120), (112, 123), (112, 136), (113, 100), (113, 102), (113, 112), (113, 113), (113, 114), (113, 116), (113, 120), (113, 122), (113, 136), (114, 101), (114, 103), (114, 106), (114, 108), (114, 109), (114, 120), (114, 122), (115, 102), (115, 104), (115, 105), (115, 106), (115, 107), (115, 120), (115, 121), (116, 119), (116, 121), (117, 119), (117, 121), (118, 118), (118, 120), (119, 113), (119, 115), (119, 116), (119, 120), (120, 112), (120, 114), (120, 115), (120, 116), (120, 117), (120, 119)) coordinates_60_cc60 = ((97, 158), (97, 159), (98, 157), (98, 159), (99, 159), (100, 151), (100, 156), (100, 158), (100, 160), (101, 151), (101, 155), (101, 157), (101, 158), (101, 160), (102, 150), (102, 152), (102, 153), (102, 156), (102, 157), (102, 158), (102, 160), (103, 151), (103, 152), (103, 155), (103, 156), (103, 157), (103, 158), (103, 160), (104, 149), (104, 151), (104, 152), (104, 153), (104, 154), (104, 155), (104, 156), (104, 157), (104, 158), (104, 160), (105, 148), (105, 150), (105, 151), (105, 152), (105, 153), (105, 154), (105, 155), (105, 156), (105, 157), (105, 158), (105, 160), (106, 148), (106, 150), (106, 151), (106, 152), (106, 153), (106, 154), (106, 155), (106, 156), (106, 157), (106, 158), (106, 159), (106, 161), (107, 147), (107, 149), (107, 150), (107, 151), (107, 152), (107, 153), (107, 154), (107, 155), (107, 156), (107, 157), (107, 158), (107, 159), (107, 161), (108, 147), (108, 149), (108, 150), (108, 151), (108, 152), (108, 153), (108, 154), (108, 155), (108, 156), (108, 157), (108, 158), (108, 159), (108, 160), (108, 161), (108, 162), (109, 147), (109, 149), (109, 150), (109, 151), (109, 152), (109, 153), (109, 154), (109, 155), (109, 156), (109, 157), (109, 158), (109, 159), (109, 160), (109, 162), (110, 147), (110, 149), (110, 150), (110, 151), (110, 152), (110, 153), (110, 154), (110, 155), (110, 156), (110, 157), (110, 158), (110, 159), (110, 160), (110, 162), (111, 147), (111, 149), (111, 150), (111, 151), (111, 152), (111, 153), (111, 154), (111, 155), (111, 156), (111, 157), (111, 158), (111, 159), (111, 161), (112, 147), (112, 149), (112, 150), (112, 151), (112, 152), (112, 153), (112, 154), (112, 155), (112, 156), (112, 157), (112, 158), (112, 159), (112, 161), (113, 147), (113, 149), (113, 150), (113, 151), (113, 152), (113, 153), (113, 154), (113, 155), (113, 156), (113, 157), (113, 158), (113, 159), (113, 161), (114, 147), (114, 149), (114, 150), (114, 151), (114, 152), (114, 153), (114, 154), (114, 155), (114, 156), (114, 157), (114, 158), (114, 159), (114, 161), (115, 147), (115, 149), (115, 150), (115, 151), (115, 152), (115, 153), (115, 154), (115, 155), (115, 156), (115, 157), (115, 158), (115, 160), (116, 147), (116, 149), (116, 150), (116, 151), (116, 152), (116, 153), (116, 154), (116, 155), (116, 156), (116, 157), (116, 158), (116, 160), (117, 147), (117, 149), (117, 150), (117, 151), (117, 152), (117, 153), (117, 154), (117, 155), (117, 156), (117, 157), (117, 159), (118, 147), (118, 149), (118, 150), (118, 151), (118, 152), (118, 153), (118, 154), (118, 155), (118, 156), (118, 157), (118, 159), (119, 148), (119, 150), (119, 151), (119, 152), (119, 153), (119, 154), (119, 155), (119, 156), (119, 158), (120, 155), (120, 156), (120, 158), (121, 149), (121, 151), (121, 153), (121, 154), (121, 158), (122, 155), (122, 157)) coordinates_5_fcc60 = ((131, 153), (132, 148), (132, 150), (132, 151), (132, 152), (132, 153), (132, 155), (133, 147), (133, 153), (133, 156), (133, 158), (134, 147), (134, 149), (134, 150), (134, 151), (134, 152), (134, 153), (134, 154), (134, 155), (134, 158), (135, 147), (135, 149), (135, 150), (135, 151), (135, 152), (135, 153), (135, 154), (135, 155), (135, 156), (135, 157), (135, 159), (136, 147), (136, 149), (136, 150), (136, 151), (136, 152), (136, 153), (136, 154), (136, 155), (136, 156), (136, 157), (136, 159), (137, 147), (137, 149), (137, 150), (137, 151), (137, 152), (137, 153), (137, 154), (137, 155), (137, 156), (137, 157), (137, 159), (138, 146), (138, 148), (138, 149), (138, 150), (138, 151), (138, 152), (138, 153), (138, 154), (138, 155), (138, 156), (138, 157), (138, 159), (139, 146), (139, 148), (139, 149), (139, 150), (139, 151), (139, 152), (139, 153), (139, 154), (139, 155), (139, 156), (139, 157), (139, 159), (140, 147), (140, 149), (140, 150), (140, 151), (140, 152), (140, 153), (140, 154), (140, 155), (140, 156), (140, 157), (140, 159), (141, 147), (141, 149), (141, 150), (141, 151), (141, 152), (141, 153), (141, 154), (141, 155), (141, 156), (141, 157), (141, 159), (142, 147), (142, 149), (142, 150), (142, 151), (142, 152), (142, 153), (142, 154), (142, 155), (142, 156), (142, 157), (142, 158), (142, 159), (143, 148), (143, 150), (143, 151), (143, 152), (143, 153), (143, 154), (143, 155), (143, 156), (143, 158), (144, 148), (144, 150), (144, 151), (144, 152), (144, 158), (145, 147), (145, 149), (145, 150), (145, 151), (145, 152), (145, 154), (145, 155), (145, 157), (146, 147), (146, 150), (146, 152), (146, 157), (147, 148), (147, 152), (148, 151), (149, 150)) coordinates_f4_deb3 = ((138, 93), (138, 94), (139, 93), (139, 95), (140, 95), (141, 94), (141, 95)) coordinates_26408_b = ((134, 92), (134, 93), (135, 92), (135, 94), (136, 92), (136, 94)) coordinates_f5_deb3 = ((93, 99), (93, 100), (94, 98), (94, 100), (95, 97), (95, 101), (96, 97), (96, 100), (97, 96), (97, 99), (98, 96), (98, 98), (99, 95), (99, 97), (100, 95), (101, 95)) coordinates_016400 = ((124, 132), (124, 134), (125, 132), (125, 135), (126, 132), (126, 134), (126, 137), (127, 133), (127, 135), (127, 138), (128, 133), (128, 135), (128, 136), (128, 137), (128, 140), (129, 133), (129, 135), (129, 136), (129, 137), (129, 138), (129, 141), (130, 133), (130, 135), (130, 136), (130, 137), (130, 138), (130, 139), (130, 140), (130, 142), (131, 133), (131, 137), (131, 138), (131, 139), (131, 140), (131, 142), (132, 135), (132, 137), (132, 138), (132, 139), (132, 140), (132, 142), (133, 137), (133, 139), (133, 140), (133, 142), (134, 137), (134, 139), (134, 141), (135, 137), (135, 139), (135, 141), (136, 137), (136, 139), (136, 141), (137, 136), (137, 138), (137, 141), (138, 134), (138, 137), (138, 140), (139, 132), (139, 134), (139, 135), (139, 138), (140, 131), (140, 132), (140, 137), (141, 130)) coordinates_27408_b = ((97, 101), (98, 100), (99, 99), (99, 100), (100, 98), (100, 99), (101, 97), (102, 96), (102, 98), (103, 95), (103, 97)) coordinates_006400 = ((106, 132), (106, 133), (106, 135), (106, 136), (106, 137), (106, 138), (106, 139), (107, 132), (107, 141), (108, 133), (108, 135), (108, 136), (108, 137), (108, 138), (108, 139), (108, 144), (109, 140), (109, 144), (110, 140), (110, 142), (110, 143), (110, 145), (111, 139), (111, 141), (111, 142), (111, 143), (111, 145), (112, 138), (112, 140), (112, 141), (112, 142), (112, 143), (112, 145), (113, 138), (113, 140), (113, 141), (113, 142), (113, 143), (113, 145), (114, 138), (114, 140), (114, 141), (114, 142), (114, 143), (114, 145), (115, 139), (115, 141), (115, 142), (115, 143), (115, 145), (116, 139), (116, 141), (116, 142), (116, 144), (117, 139), (117, 141), (117, 143), (118, 138), (118, 139), (118, 142), (119, 137), (119, 141), (120, 134), (120, 135), (120, 140), (121, 132), (121, 134), (121, 135), (121, 136), (121, 137), (121, 139)) coordinates_6395_ed = ((123, 129), (124, 129), (125, 128), (125, 130), (126, 128), (126, 130), (127, 127), (127, 130), (128, 127), (128, 129), (128, 131), (129, 127), (129, 129), (129, 131), (130, 125), (130, 127), (130, 128), (130, 130), (131, 125), (131, 127), (131, 128), (131, 129), (131, 131), (132, 124), (132, 126), (132, 127), (132, 128), (132, 130), (133, 124), (133, 126), (133, 127), (133, 128), (133, 130), (134, 124), (134, 126), (134, 127), (134, 128), (134, 130), (134, 131), (135, 125), (135, 127), (135, 128), (135, 129), (135, 131), (136, 126), (136, 130), (137, 127), (137, 129)) coordinates_00_fffe = ((138, 142), (139, 141), (139, 143), (140, 140), (140, 143), (141, 139), (141, 141), (141, 143), (142, 138), (142, 142), (142, 143), (143, 142), (143, 143), (144, 142), (144, 143), (145, 142), (145, 143), (146, 138), (146, 142), (146, 143), (147, 138), (147, 142), (147, 143), (148, 138), (148, 140), (148, 141), (148, 143), (149, 139), (149, 142), (149, 144), (150, 139), (150, 141), (150, 143), (151, 140), (151, 143), (152, 141), (152, 143), (153, 142)) coordinates_f98072 = ((124, 110), (124, 112), (124, 113), (124, 114), (124, 115), (124, 116), (124, 117), (124, 118), (124, 119), (124, 120), (124, 121), (124, 122), (124, 123), (124, 124), (124, 126), (125, 108), (125, 112), (125, 115), (125, 122), (125, 126), (126, 105), (126, 106), (126, 107), (126, 110), (126, 112), (126, 116), (126, 118), (126, 120), (126, 123), (126, 125), (127, 101), (127, 102), (127, 103), (127, 104), (127, 105), (127, 106), (127, 107), (127, 110), (127, 112), (127, 116), (127, 119), (127, 123), (127, 125), (128, 99), (128, 103), (128, 109), (128, 111), (128, 113), (128, 116), (128, 119), (128, 123), (128, 124), (129, 98), (129, 101), (129, 110), (129, 112), (129, 115), (129, 116), (129, 117), (129, 119), (130, 111), (130, 113), (130, 116), (130, 118), (131, 111), (131, 113), (131, 114), (131, 115), (132, 111), (132, 113), (132, 116), (133, 110), (133, 115), (134, 109), (134, 111), (134, 113)) coordinates_97_fb98 = ((141, 134), (142, 132), (142, 134), (142, 136), (143, 130), (143, 132), (145, 136), (146, 136), (147, 134), (147, 136), (148, 133), (148, 136), (149, 132), (149, 134), (149, 136), (150, 131), (150, 135), (150, 137), (151, 131), (151, 133), (151, 136), (151, 138), (152, 135), (152, 136), (152, 137), (152, 139), (153, 136), (153, 140), (154, 136), (154, 138), (154, 141), (155, 131), (155, 136), (155, 138), (155, 139), (155, 141), (156, 131), (156, 135), (156, 136), (156, 137), (156, 138), (156, 139), (156, 140), (156, 142), (157, 130), (157, 133), (157, 136), (157, 137), (157, 138), (157, 139), (157, 140), (157, 142), (158, 130), (158, 132), (158, 134), (158, 135), (158, 136), (158, 137), (158, 138), (158, 139), (158, 140), (158, 143), (159, 130), (159, 132), (159, 133), (159, 134), (159, 135), (159, 136), (159, 138), (159, 139), (160, 130), (160, 132), (160, 133), (160, 134), (160, 135), (160, 137), (160, 141), (161, 130), (161, 132), (161, 133), (161, 134), (161, 135), (161, 138), (161, 140), (162, 129), (162, 135), (163, 130), (163, 132), (163, 134)) coordinates_323287 = ((156, 113), (156, 114), (156, 115), (156, 116), (156, 117), (156, 118), (156, 119), (156, 120), (156, 121), (156, 122), (156, 123), (156, 125), (157, 111), (157, 126), (158, 111), (158, 113), (158, 114), (158, 115), (158, 116), (158, 117), (158, 118), (158, 119), (158, 120), (158, 121), (158, 122), (158, 123), (158, 124), (158, 126), (159, 111), (159, 113), (159, 114), (159, 115), (159, 117), (159, 118), (159, 119), (159, 120), (159, 121), (159, 122), (159, 123), (159, 124), (159, 126), (160, 112), (160, 114), (160, 118), (160, 119), (160, 120), (160, 121), (160, 122), (160, 123), (160, 124), (160, 126), (161, 112), (161, 115), (161, 119), (161, 120), (161, 121), (161, 122), (161, 125), (162, 113), (162, 114), (162, 118), (162, 123), (162, 125), (163, 119), (163, 121), (163, 122)) coordinates_6495_ed = ((112, 127), (112, 129), (112, 130), (112, 132), (113, 125), (113, 134), (114, 124), (114, 127), (114, 128), (114, 129), (114, 130), (114, 131), (114, 132), (114, 135), (115, 124), (115, 126), (115, 127), (115, 128), (115, 129), (115, 130), (115, 131), (115, 132), (115, 133), (115, 135), (116, 123), (116, 125), (116, 126), (116, 127), (116, 128), (116, 129), (116, 130), (116, 131), (116, 132), (116, 133), (116, 134), (116, 136), (117, 123), (117, 125), (117, 126), (117, 127), (117, 128), (117, 129), (117, 130), (117, 131), (117, 132), (117, 136), (118, 123), (118, 125), (118, 126), (118, 127), (118, 128), (118, 129), (118, 130), (118, 135), (119, 123), (119, 125), (119, 126), (119, 127), (119, 128), (119, 129), (119, 132), (120, 123), (120, 130), (121, 124), (121, 126), (121, 127), (121, 129)) coordinates_01_ffff = ((102, 139), (102, 140), (102, 142), (103, 135), (103, 137), (104, 134), (104, 136), (104, 137), (104, 138), (104, 139), (104, 140), (104, 144), (104, 146), (105, 141), (105, 146), (106, 143), (106, 146)) coordinates_fa8072 = ((97, 103), (98, 103), (99, 102), (100, 102), (101, 101), (102, 100), (102, 101), (103, 101), (104, 99), (104, 101), (105, 99), (105, 101), (106, 99), (106, 101), (107, 99), (107, 100), (108, 99), (109, 98), (109, 99), (110, 98), (111, 98), (112, 97), (112, 98), (113, 97), (113, 98), (113, 118), (114, 97), (114, 118), (115, 97), (115, 99), (115, 111), (115, 112), (115, 113), (115, 114), (115, 115), (115, 116), (115, 118), (116, 100), (116, 109), (116, 110), (116, 117), (117, 98), (117, 102), (117, 105), (117, 106), (117, 107), (117, 113), (117, 114), (117, 116), (117, 117), (118, 99), (118, 103), (118, 109), (118, 110), (118, 111), (119, 100), (119, 104), (119, 105), (119, 108), (119, 110), (120, 106), (120, 110), (121, 108), (121, 110), (121, 111), (121, 121), (121, 122), (122, 114), (122, 115), (122, 116), (122, 117), (122, 118), (122, 119)) coordinates_98_fb98 = ((85, 134), (85, 136), (86, 134), (86, 137), (87, 133), (87, 136), (87, 138), (88, 133), (88, 135), (88, 137), (88, 139), (88, 143), (89, 132), (89, 134), (89, 137), (89, 138), (89, 139), (89, 144), (89, 146), (90, 132), (90, 134), (90, 137), (90, 139), (90, 141), (90, 143), (90, 147), (91, 132), (91, 134), (91, 137), (91, 139), (91, 140), (91, 142), (91, 143), (91, 144), (91, 145), (91, 147), (92, 132), (92, 134), (92, 135), (92, 136), (92, 137), (92, 138), (92, 141), (92, 142), (92, 143), (92, 144), (92, 145), (92, 147), (93, 133), (93, 134), (93, 140), (93, 142), (93, 143), (93, 144), (93, 145), (93, 146), (93, 147), (93, 148), (94, 133), (94, 134), (94, 141), (94, 143), (94, 144), (94, 145), (94, 146), (94, 148), (95, 134), (95, 142), (95, 144), (95, 145), (95, 146), (95, 148), (96, 134), (96, 142), (96, 145), (96, 146), (96, 148), (97, 134), (97, 143), (97, 144), (97, 145), (97, 146), (97, 148), (98, 145), (98, 148), (99, 133), (99, 145), (99, 147), (99, 148), (100, 133), (100, 144), (100, 147), (101, 132), (101, 144), (102, 144), (102, 147)) coordinates_fec0_cb = ((131, 97), (131, 98), (132, 97), (132, 98), (133, 97), (133, 98), (134, 98), (135, 98), (136, 98), (136, 119), (136, 120), (137, 98), (137, 116), (137, 117), (137, 118), (137, 120), (138, 99), (138, 112), (138, 113), (138, 114), (138, 119), (138, 121), (139, 99), (139, 109), (139, 111), (139, 112), (139, 113), (139, 114), (139, 115), (139, 116), (139, 117), (139, 118), (139, 119), (139, 121), (140, 99), (140, 107), (140, 110), (140, 117), (140, 118), (140, 119), (140, 121), (141, 99), (141, 108), (141, 116), (141, 117), (141, 118), (141, 119), (141, 120), (141, 122), (142, 99), (142, 105), (142, 107), (142, 115), (142, 117), (142, 118), (142, 122), (143, 99), (143, 100), (143, 104), (143, 113), (143, 116), (143, 117), (143, 119), (143, 121), (143, 122), (144, 99), (144, 100), (144, 111), (144, 115), (144, 116), (144, 117), (144, 118), (145, 99), (145, 101), (145, 110), (145, 113), (145, 114), (145, 115), (145, 117), (146, 99), (146, 101), (146, 109), (146, 111), (146, 112), (146, 113), (146, 114), (146, 115), (146, 117), (147, 100), (147, 102), (147, 109), (147, 111), (147, 112), (147, 113), (147, 114), (147, 115), (147, 116), (147, 117), (148, 100), (148, 109), (148, 113), (148, 114), (148, 115), (148, 116), (148, 117), (148, 119), (148, 120), (148, 121), (148, 122), (148, 123), (148, 124), (148, 126), (149, 101), (149, 110), (149, 112), (149, 117), (149, 120), (149, 124), (149, 126), (150, 102), (150, 113), (150, 114), (150, 115), (150, 118), (150, 120), (150, 124), (150, 126), (151, 102), (151, 117), (151, 119), (151, 121), (151, 124), (152, 103), (152, 107), (152, 118), (152, 124), (152, 126), (153, 104), (153, 108), (153, 118), (153, 119), (153, 120), (153, 121), (153, 122), (153, 126), (154, 105), (154, 109), (154, 114), (154, 124), (154, 125), (155, 107), (155, 109), (155, 110), (155, 111), (155, 129), (156, 128), (157, 128)) coordinates_333287 = ((81, 114), (81, 116), (81, 117), (81, 120), (81, 122), (82, 112), (82, 118), (82, 119), (82, 125), (82, 126), (82, 127), (82, 128), (82, 129), (82, 130), (83, 111), (83, 114), (83, 115), (83, 116), (83, 117), (83, 120), (83, 121), (83, 122), (83, 132), (84, 110), (84, 112), (84, 113), (84, 114), (84, 115), (84, 116), (84, 117), (84, 118), (84, 119), (84, 120), (84, 121), (84, 122), (84, 123), (84, 130), (84, 132), (85, 109), (85, 111), (85, 112), (85, 113), (85, 114), (85, 115), (85, 116), (85, 117), (85, 118), (85, 119), (85, 120), (85, 121), (85, 122), (85, 125), (85, 126), (85, 127), (85, 128), (85, 129), (85, 130), (85, 132), (86, 109), (86, 111), (86, 112), (86, 113), (86, 114), (86, 115), (86, 116), (86, 117), (86, 118), (86, 119), (86, 120), (86, 121), (86, 122), (86, 123), (86, 130), (86, 132), (87, 109), (87, 111), (87, 112), (87, 113), (87, 114), (87, 115), (87, 116), (87, 117), (87, 118), (87, 119), (87, 120), (87, 121), (87, 122), (87, 130), (87, 131), (88, 109), (88, 111), (88, 112), (88, 113), (88, 114), (88, 115), (88, 122), (88, 130), (88, 131), (89, 104), (89, 108), (89, 110), (89, 111), (89, 112), (89, 116), (89, 117), (89, 118), (89, 119), (89, 120), (89, 123), (89, 129), (89, 130), (90, 114), (90, 122), (90, 129), (90, 130), (91, 108), (91, 110), (91, 112), (91, 123), (91, 124), (91, 129), (91, 130), (92, 124), (92, 125), (92, 129), (92, 130), (93, 124), (93, 125), (93, 129), (93, 131), (94, 124), (94, 125), (94, 130), (94, 131), (95, 125), (95, 130), (95, 132), (96, 125), (96, 130), (96, 132), (97, 125), (97, 130), (97, 132), (98, 129), (98, 131), (99, 129), (99, 131)) coordinates_ffc0_cb = ((91, 117), (91, 118), (91, 120), (92, 102), (92, 104), (92, 106), (92, 114), (92, 118), (92, 119), (92, 121), (93, 102), (93, 105), (93, 107), (93, 113), (93, 114), (93, 115), (93, 116), (93, 122), (94, 106), (94, 110), (94, 122), (95, 107), (95, 111), (95, 122), (96, 107), (96, 109), (96, 110), (96, 112), (96, 121), (96, 122), (97, 108), (97, 110), (97, 111), (97, 113), (97, 121), (97, 123), (98, 108), (98, 110), (98, 111), (98, 112), (98, 114), (98, 120), (98, 123), (99, 108), (99, 110), (99, 111), (99, 112), (99, 114), (99, 120), (99, 122), (99, 124), (100, 108), (100, 110), (100, 111), (100, 113), (100, 120), (100, 122), (100, 123), (100, 126), (101, 108), (101, 110), (101, 112), (101, 121), (101, 123), (101, 124), (101, 128), (101, 130), (102, 108), (102, 111), (102, 121), (102, 123), (102, 124), (102, 125), (102, 126), (102, 130), (103, 108), (103, 111), (103, 122), (103, 124), (103, 127), (103, 128), (104, 107), (104, 109), (104, 111), (104, 122), (105, 107), (105, 109), (105, 111), (105, 123), (105, 125), (106, 107), (106, 109), (106, 111), (106, 124), (107, 107), (107, 109), (107, 111), (108, 107), (108, 109), (108, 110), (108, 112), (109, 107), (109, 109), (109, 110), (109, 112), (110, 105), (110, 107), (110, 108), (110, 109), (110, 110), (111, 104), (111, 111), (112, 104), (112, 106), (112, 107), (112, 108), (112, 110))
{ "name": "Web Refresher", "version": "14.0.1.0.0", "author": "Compassion Switzerland, Odoo Community Association (OCA)", "license": "AGPL-3", "website": "https://github.com/OCA/web", "qweb": ["templates/pager_button.xml"], "depends": ["web"], "installable": True, "auto_install": False, }
{'name': 'Web Refresher', 'version': '14.0.1.0.0', 'author': 'Compassion Switzerland, Odoo Community Association (OCA)', 'license': 'AGPL-3', 'website': 'https://github.com/OCA/web', 'qweb': ['templates/pager_button.xml'], 'depends': ['web'], 'installable': True, 'auto_install': False}
load("//github.com/gogo/protobuf:gogofaster_grpc_compile.bzl", "gogofaster_grpc_compile") load("@io_bazel_rules_go//go:def.bzl", "go_library") load("//go:utils.bzl", "get_importmappings") wkt_mappings = get_importmappings({ "google/protobuf/any.proto": "github.com/gogo/protobuf/types", "google/protobuf/duration.proto": "github.com/gogo/protobuf/types", "google/protobuf/struct.proto": "github.com/gogo/protobuf/types", "google/protobuf/timestamp.proto": "github.com/gogo/protobuf/types", "google/protobuf/wrappers.proto": "github.com/gogo/protobuf/types", }) def gogofaster_grpc_library(**kwargs): name = kwargs.get("name") deps = kwargs.get("deps") importpath = kwargs.get("importpath") visibility = kwargs.get("visibility") go_deps = kwargs.get("go_deps", []) name_pb = name + "_pb" gogofaster_grpc_compile( name = name_pb, deps = deps, transitive = True, plugin_options = get_importmappings(kwargs.pop("importmap", {})) + wkt_mappings, visibility = visibility, ) go_library( name = name, srcs = [name_pb], deps = go_deps + [ "@com_github_gogo_protobuf//proto:go_default_library", "@org_golang_google_grpc//:go_default_library", "@org_golang_x_net//context:go_default_library", ], importpath = importpath, visibility = visibility, )
load('//github.com/gogo/protobuf:gogofaster_grpc_compile.bzl', 'gogofaster_grpc_compile') load('@io_bazel_rules_go//go:def.bzl', 'go_library') load('//go:utils.bzl', 'get_importmappings') wkt_mappings = get_importmappings({'google/protobuf/any.proto': 'github.com/gogo/protobuf/types', 'google/protobuf/duration.proto': 'github.com/gogo/protobuf/types', 'google/protobuf/struct.proto': 'github.com/gogo/protobuf/types', 'google/protobuf/timestamp.proto': 'github.com/gogo/protobuf/types', 'google/protobuf/wrappers.proto': 'github.com/gogo/protobuf/types'}) def gogofaster_grpc_library(**kwargs): name = kwargs.get('name') deps = kwargs.get('deps') importpath = kwargs.get('importpath') visibility = kwargs.get('visibility') go_deps = kwargs.get('go_deps', []) name_pb = name + '_pb' gogofaster_grpc_compile(name=name_pb, deps=deps, transitive=True, plugin_options=get_importmappings(kwargs.pop('importmap', {})) + wkt_mappings, visibility=visibility) go_library(name=name, srcs=[name_pb], deps=go_deps + ['@com_github_gogo_protobuf//proto:go_default_library', '@org_golang_google_grpc//:go_default_library', '@org_golang_x_net//context:go_default_library'], importpath=importpath, visibility=visibility)
class Solution: def transpose(self, A: List[List[int]]) -> List[List[int]]: l=[] i=0 while(i!=len(A[0])): x=[] j=0 while(j<len(A)): x.append(A[j][i]) j+=1 if(x!=[]): l.append(x) i+=1 return(l)
class Solution: def transpose(self, A: List[List[int]]) -> List[List[int]]: l = [] i = 0 while i != len(A[0]): x = [] j = 0 while j < len(A): x.append(A[j][i]) j += 1 if x != []: l.append(x) i += 1 return l
class Automobil(object): # Oberklasse / Superklasse antrieb = "Ottomotor" leistung_in_kw = 120 def ausgabe(self): print("Antrieb: ", self.antrieb) print("Leistung: ", self.leistung_in_kw) class PKW(Automobil): # Unterklasse / Subklasse pass print("Automobil a: ") a = Automobil() a.ausgabe() print("PKW b: ") b = PKW() b.ausgabe() # Mehrfachvererbung class lkw(object): # object sorgt dafuer, dass die Klasse lkw nur vererben kann ladeflaeche = 6 def ausgabe_lkw(self): print("Ladeflaeche in qm: ", self.ladeflaeche) class pkw(object): sitzplaetze = 4 def ausgabe_pkw(self): print("Sitzplaetze: ", self.sitzplaetze) class pick_up(lkw, pkw): motorleistung = 120 def ausgabe(self): self.ausgabe_lkw() self.ausgabe_pkw() print("Motorleistung in KW: ", self.motorleistung) print("LKW c:") c = lkw() c.ausgabe_lkw print("Pick-Up d:") d = pick_up() d.ausgabe()
class Automobil(object): antrieb = 'Ottomotor' leistung_in_kw = 120 def ausgabe(self): print('Antrieb: ', self.antrieb) print('Leistung: ', self.leistung_in_kw) class Pkw(Automobil): pass print('Automobil a: ') a = automobil() a.ausgabe() print('PKW b: ') b = pkw() b.ausgabe() class Lkw(object): ladeflaeche = 6 def ausgabe_lkw(self): print('Ladeflaeche in qm: ', self.ladeflaeche) class Pkw(object): sitzplaetze = 4 def ausgabe_pkw(self): print('Sitzplaetze: ', self.sitzplaetze) class Pick_Up(lkw, pkw): motorleistung = 120 def ausgabe(self): self.ausgabe_lkw() self.ausgabe_pkw() print('Motorleistung in KW: ', self.motorleistung) print('LKW c:') c = lkw() c.ausgabe_lkw print('Pick-Up d:') d = pick_up() d.ausgabe()
print("I will now count my chickens:") print("Hens", 25 + 30 / 6) print(f"Roosters {100 - 25 * 3 % 4}")
print('I will now count my chickens:') print('Hens', 25 + 30 / 6) print(f'Roosters {100 - 25 * 3 % 4}')
def saddle_points(matrix): if not all(len(row) == len(matrix[0]) for row in matrix): raise ValueError("Rows have different length!") _rot_mat = zip(*matrix[::1]) return set([ (row,i) for row in range(len(matrix)) for i,x in enumerate(matrix[row]) if x == max(matrix[row])]) & set([ (i,row) for row in range(len(_rot_mat)) for i,x in enumerate(_rot_mat[row]) if x == min(_rot_mat[row])])
def saddle_points(matrix): if not all((len(row) == len(matrix[0]) for row in matrix)): raise value_error('Rows have different length!') _rot_mat = zip(*matrix[::1]) return set([(row, i) for row in range(len(matrix)) for (i, x) in enumerate(matrix[row]) if x == max(matrix[row])]) & set([(i, row) for row in range(len(_rot_mat)) for (i, x) in enumerate(_rot_mat[row]) if x == min(_rot_mat[row])])
# Create empty list: empty = [] print("empty_list: ", empty ) # Create list of fruits: fruits = ["apple", "banana", "strawberry", "banana", "orange"] print("fruits: ", fruits) # Create list of numbers: numbers = [1,2,3,4,5] # Indexing from start to end: print(numbers[0], numbers[1], numbers[2], numbers[3], numbers[4]) # Indexing from end to start: print(numbers[-1], numbers[-2], numbers[-3], numbers[-4], numbers[-5])
empty = [] print('empty_list: ', empty) fruits = ['apple', 'banana', 'strawberry', 'banana', 'orange'] print('fruits: ', fruits) numbers = [1, 2, 3, 4, 5] print(numbers[0], numbers[1], numbers[2], numbers[3], numbers[4]) print(numbers[-1], numbers[-2], numbers[-3], numbers[-4], numbers[-5])
# If I leave my house at 6:52 am and run 1 mile at an easy pace (8:15 per mile), # then 3 miles at tempo (7:12 per mile) and 1 mile at easy pace again, # what time do I get home for breakfast? sec_in_1m = 60 left_home_at_in_sec = 6 * 3600 + 52 * 60 total_journey_in_sec = (2 * 8 * sec_in_1m + 2 * 15) + (3 * 7 * sec_in_1m + 3 * 12) got_home_at_in_sec = left_home_at_in_sec + total_journey_in_sec m, s = divmod(got_home_at_in_sec, 60) h, m = divmod(m, 60) print("{:02d}:{:02d}:{:02d}".format(h, m, s))
sec_in_1m = 60 left_home_at_in_sec = 6 * 3600 + 52 * 60 total_journey_in_sec = 2 * 8 * sec_in_1m + 2 * 15 + (3 * 7 * sec_in_1m + 3 * 12) got_home_at_in_sec = left_home_at_in_sec + total_journey_in_sec (m, s) = divmod(got_home_at_in_sec, 60) (h, m) = divmod(m, 60) print('{:02d}:{:02d}:{:02d}'.format(h, m, s))
# Copyright 2013 the V8 project authors. All rights reserved. # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are # met: # # * Redistributions of source code must retain the above copyright # notice, this list of conditions and the following disclaimer. # * Redistributions in binary form must reproduce the above # copyright notice, this list of conditions and the following # disclaimer in the documentation and/or other materials provided # with the distribution. # * Neither the name of Google Inc. nor the names of its # contributors may be used to endorse or promote products derived # from this software without specific prior written permission. # # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS # "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT # LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR # A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT # OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, # SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT # LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, # DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY # THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. # This file is automatically generated from the V8 source and should not # be modified manually, run 'make grokdump' instead to update this file. # List of known V8 instance types. INSTANCE_TYPES = { 64: "STRING_TYPE", 68: "ASCII_STRING_TYPE", 65: "CONS_STRING_TYPE", 69: "CONS_ASCII_STRING_TYPE", 67: "SLICED_STRING_TYPE", 71: "SLICED_ASCII_STRING_TYPE", 66: "EXTERNAL_STRING_TYPE", 70: "EXTERNAL_ASCII_STRING_TYPE", 74: "EXTERNAL_STRING_WITH_ONE_BYTE_DATA_TYPE", 82: "SHORT_EXTERNAL_STRING_TYPE", 86: "SHORT_EXTERNAL_ASCII_STRING_TYPE", 90: "SHORT_EXTERNAL_STRING_WITH_ONE_BYTE_DATA_TYPE", 0: "INTERNALIZED_STRING_TYPE", 4: "ASCII_INTERNALIZED_STRING_TYPE", 1: "CONS_INTERNALIZED_STRING_TYPE", 5: "CONS_ASCII_INTERNALIZED_STRING_TYPE", 2: "EXTERNAL_INTERNALIZED_STRING_TYPE", 6: "EXTERNAL_ASCII_INTERNALIZED_STRING_TYPE", 10: "EXTERNAL_INTERNALIZED_STRING_WITH_ONE_BYTE_DATA_TYPE", 18: "SHORT_EXTERNAL_INTERNALIZED_STRING_TYPE", 22: "SHORT_EXTERNAL_ASCII_INTERNALIZED_STRING_TYPE", 26: "SHORT_EXTERNAL_INTERNALIZED_STRING_WITH_ONE_BYTE_DATA_TYPE", 128: "SYMBOL_TYPE", 129: "MAP_TYPE", 130: "CODE_TYPE", 131: "ODDBALL_TYPE", 132: "CELL_TYPE", 133: "PROPERTY_CELL_TYPE", 134: "HEAP_NUMBER_TYPE", 135: "FOREIGN_TYPE", 136: "BYTE_ARRAY_TYPE", 137: "FREE_SPACE_TYPE", 138: "EXTERNAL_INT8_ARRAY_TYPE", 139: "EXTERNAL_UINT8_ARRAY_TYPE", 140: "EXTERNAL_INT16_ARRAY_TYPE", 141: "EXTERNAL_UINT16_ARRAY_TYPE", 142: "EXTERNAL_INT32_ARRAY_TYPE", 143: "EXTERNAL_UINT32_ARRAY_TYPE", 144: "EXTERNAL_FLOAT32_ARRAY_TYPE", 145: "EXTERNAL_FLOAT64_ARRAY_TYPE", 146: "EXTERNAL_UINT8_CLAMPED_ARRAY_TYPE", 147: "FIXED_INT8_ARRAY_TYPE", 148: "FIXED_UINT8_ARRAY_TYPE", 149: "FIXED_INT16_ARRAY_TYPE", 150: "FIXED_UINT16_ARRAY_TYPE", 151: "FIXED_INT32_ARRAY_TYPE", 152: "FIXED_UINT32_ARRAY_TYPE", 153: "FIXED_FLOAT32_ARRAY_TYPE", 154: "FIXED_FLOAT64_ARRAY_TYPE", 155: "FIXED_UINT8_CLAMPED_ARRAY_TYPE", 157: "FILLER_TYPE", 158: "DECLARED_ACCESSOR_DESCRIPTOR_TYPE", 159: "DECLARED_ACCESSOR_INFO_TYPE", 160: "EXECUTABLE_ACCESSOR_INFO_TYPE", 161: "ACCESSOR_PAIR_TYPE", 162: "ACCESS_CHECK_INFO_TYPE", 163: "INTERCEPTOR_INFO_TYPE", 164: "CALL_HANDLER_INFO_TYPE", 165: "FUNCTION_TEMPLATE_INFO_TYPE", 166: "OBJECT_TEMPLATE_INFO_TYPE", 167: "SIGNATURE_INFO_TYPE", 168: "TYPE_SWITCH_INFO_TYPE", 170: "ALLOCATION_MEMENTO_TYPE", 169: "ALLOCATION_SITE_TYPE", 171: "SCRIPT_TYPE", 172: "CODE_CACHE_TYPE", 173: "POLYMORPHIC_CODE_CACHE_TYPE", 174: "TYPE_FEEDBACK_INFO_TYPE", 175: "ALIASED_ARGUMENTS_ENTRY_TYPE", 176: "BOX_TYPE", 179: "FIXED_ARRAY_TYPE", 156: "FIXED_DOUBLE_ARRAY_TYPE", 180: "CONSTANT_POOL_ARRAY_TYPE", 181: "SHARED_FUNCTION_INFO_TYPE", 182: "JS_MESSAGE_OBJECT_TYPE", 185: "JS_VALUE_TYPE", 186: "JS_DATE_TYPE", 187: "JS_OBJECT_TYPE", 188: "JS_CONTEXT_EXTENSION_OBJECT_TYPE", 189: "JS_GENERATOR_OBJECT_TYPE", 190: "JS_MODULE_TYPE", 191: "JS_GLOBAL_OBJECT_TYPE", 192: "JS_BUILTINS_OBJECT_TYPE", 193: "JS_GLOBAL_PROXY_TYPE", 194: "JS_ARRAY_TYPE", 195: "JS_ARRAY_BUFFER_TYPE", 196: "JS_TYPED_ARRAY_TYPE", 197: "JS_DATA_VIEW_TYPE", 184: "JS_PROXY_TYPE", 198: "JS_SET_TYPE", 199: "JS_MAP_TYPE", 200: "JS_WEAK_MAP_TYPE", 201: "JS_WEAK_SET_TYPE", 202: "JS_REGEXP_TYPE", 203: "JS_FUNCTION_TYPE", 183: "JS_FUNCTION_PROXY_TYPE", 177: "DEBUG_INFO_TYPE", 178: "BREAK_POINT_INFO_TYPE", } # List of known V8 maps. KNOWN_MAPS = { 0x08081: (136, "ByteArrayMap"), 0x080a9: (129, "MetaMap"), 0x080d1: (131, "OddballMap"), 0x080f9: (4, "AsciiInternalizedStringMap"), 0x08121: (179, "FixedArrayMap"), 0x08149: (134, "HeapNumberMap"), 0x08171: (137, "FreeSpaceMap"), 0x08199: (157, "OnePointerFillerMap"), 0x081c1: (157, "TwoPointerFillerMap"), 0x081e9: (132, "CellMap"), 0x08211: (133, "GlobalPropertyCellMap"), 0x08239: (181, "SharedFunctionInfoMap"), 0x08261: (179, "NativeContextMap"), 0x08289: (130, "CodeMap"), 0x082b1: (179, "ScopeInfoMap"), 0x082d9: (179, "FixedCOWArrayMap"), 0x08301: (156, "FixedDoubleArrayMap"), 0x08329: (180, "ConstantPoolArrayMap"), 0x08351: (179, "HashTableMap"), 0x08379: (128, "SymbolMap"), 0x083a1: (64, "StringMap"), 0x083c9: (68, "AsciiStringMap"), 0x083f1: (65, "ConsStringMap"), 0x08419: (69, "ConsAsciiStringMap"), 0x08441: (67, "SlicedStringMap"), 0x08469: (71, "SlicedAsciiStringMap"), 0x08491: (66, "ExternalStringMap"), 0x084b9: (74, "ExternalStringWithOneByteDataMap"), 0x084e1: (70, "ExternalAsciiStringMap"), 0x08509: (82, "ShortExternalStringMap"), 0x08531: (90, "ShortExternalStringWithOneByteDataMap"), 0x08559: (0, "InternalizedStringMap"), 0x08581: (1, "ConsInternalizedStringMap"), 0x085a9: (5, "ConsAsciiInternalizedStringMap"), 0x085d1: (2, "ExternalInternalizedStringMap"), 0x085f9: (10, "ExternalInternalizedStringWithOneByteDataMap"), 0x08621: (6, "ExternalAsciiInternalizedStringMap"), 0x08649: (18, "ShortExternalInternalizedStringMap"), 0x08671: (26, "ShortExternalInternalizedStringWithOneByteDataMap"), 0x08699: (22, "ShortExternalAsciiInternalizedStringMap"), 0x086c1: (86, "ShortExternalAsciiStringMap"), 0x086e9: (64, "UndetectableStringMap"), 0x08711: (68, "UndetectableAsciiStringMap"), 0x08739: (138, "ExternalInt8ArrayMap"), 0x08761: (139, "ExternalUint8ArrayMap"), 0x08789: (140, "ExternalInt16ArrayMap"), 0x087b1: (141, "ExternalUint16ArrayMap"), 0x087d9: (142, "ExternalInt32ArrayMap"), 0x08801: (143, "ExternalUint32ArrayMap"), 0x08829: (144, "ExternalFloat32ArrayMap"), 0x08851: (145, "ExternalFloat64ArrayMap"), 0x08879: (146, "ExternalUint8ClampedArrayMap"), 0x088a1: (148, "FixedUint8ArrayMap"), 0x088c9: (147, "FixedInt8ArrayMap"), 0x088f1: (150, "FixedUint16ArrayMap"), 0x08919: (149, "FixedInt16ArrayMap"), 0x08941: (152, "FixedUint32ArrayMap"), 0x08969: (151, "FixedInt32ArrayMap"), 0x08991: (153, "FixedFloat32ArrayMap"), 0x089b9: (154, "FixedFloat64ArrayMap"), 0x089e1: (155, "FixedUint8ClampedArrayMap"), 0x08a09: (179, "NonStrictArgumentsElementsMap"), 0x08a31: (179, "FunctionContextMap"), 0x08a59: (179, "CatchContextMap"), 0x08a81: (179, "WithContextMap"), 0x08aa9: (179, "BlockContextMap"), 0x08ad1: (179, "ModuleContextMap"), 0x08af9: (179, "GlobalContextMap"), 0x08b21: (182, "JSMessageObjectMap"), 0x08b49: (135, "ForeignMap"), 0x08b71: (187, "NeanderMap"), 0x08b99: (170, "AllocationMementoMap"), 0x08bc1: (169, "AllocationSiteMap"), 0x08be9: (173, "PolymorphicCodeCacheMap"), 0x08c11: (171, "ScriptMap"), 0x08c61: (187, "ExternalMap"), 0x08cb1: (176, "BoxMap"), 0x08cd9: (158, "DeclaredAccessorDescriptorMap"), 0x08d01: (159, "DeclaredAccessorInfoMap"), 0x08d29: (160, "ExecutableAccessorInfoMap"), 0x08d51: (161, "AccessorPairMap"), 0x08d79: (162, "AccessCheckInfoMap"), 0x08da1: (163, "InterceptorInfoMap"), 0x08dc9: (164, "CallHandlerInfoMap"), 0x08df1: (165, "FunctionTemplateInfoMap"), 0x08e19: (166, "ObjectTemplateInfoMap"), 0x08e41: (167, "SignatureInfoMap"), 0x08e69: (168, "TypeSwitchInfoMap"), 0x08e91: (172, "CodeCacheMap"), 0x08eb9: (174, "TypeFeedbackInfoMap"), 0x08ee1: (175, "AliasedArgumentsEntryMap"), 0x08f09: (177, "DebugInfoMap"), 0x08f31: (178, "BreakPointInfoMap"), } # List of known V8 objects. KNOWN_OBJECTS = { ("OLD_POINTER_SPACE", 0x08081): "NullValue", ("OLD_POINTER_SPACE", 0x08091): "UndefinedValue", ("OLD_POINTER_SPACE", 0x080a1): "TheHoleValue", ("OLD_POINTER_SPACE", 0x080b1): "TrueValue", ("OLD_POINTER_SPACE", 0x080c1): "FalseValue", ("OLD_POINTER_SPACE", 0x080d1): "UninitializedValue", ("OLD_POINTER_SPACE", 0x080e1): "NoInterceptorResultSentinel", ("OLD_POINTER_SPACE", 0x080f1): "ArgumentsMarker", ("OLD_POINTER_SPACE", 0x08101): "NumberStringCache", ("OLD_POINTER_SPACE", 0x08909): "SingleCharacterStringCache", ("OLD_POINTER_SPACE", 0x08d11): "StringSplitCache", ("OLD_POINTER_SPACE", 0x09119): "RegExpMultipleCache", ("OLD_POINTER_SPACE", 0x09521): "TerminationException", ("OLD_POINTER_SPACE", 0x09531): "MessageListeners", ("OLD_POINTER_SPACE", 0x0954d): "CodeStubs", ("OLD_POINTER_SPACE", 0x0ca65): "MegamorphicSymbol", ("OLD_POINTER_SPACE", 0x0ca75): "UninitializedSymbol", ("OLD_POINTER_SPACE", 0x10ae9): "NonMonomorphicCache", ("OLD_POINTER_SPACE", 0x110fd): "PolymorphicCodeCache", ("OLD_POINTER_SPACE", 0x11105): "NativesSourceCache", ("OLD_POINTER_SPACE", 0x11155): "EmptyScript", ("OLD_POINTER_SPACE", 0x11189): "IntrinsicFunctionNames", ("OLD_POINTER_SPACE", 0x141a5): "ObservationState", ("OLD_POINTER_SPACE", 0x141b1): "FrozenSymbol", ("OLD_POINTER_SPACE", 0x141c1): "NonExistentSymbol", ("OLD_POINTER_SPACE", 0x141d1): "ElementsTransitionSymbol", ("OLD_POINTER_SPACE", 0x141e1): "EmptySlowElementDictionary", ("OLD_POINTER_SPACE", 0x1437d): "ObservedSymbol", ("OLD_POINTER_SPACE", 0x1438d): "AllocationSitesScratchpad", ("OLD_POINTER_SPACE", 0x14795): "MicrotaskState", ("OLD_POINTER_SPACE", 0x36241): "StringTable", ("OLD_DATA_SPACE", 0x08099): "EmptyDescriptorArray", ("OLD_DATA_SPACE", 0x080a1): "EmptyFixedArray", ("OLD_DATA_SPACE", 0x080a9): "NanValue", ("OLD_DATA_SPACE", 0x08141): "EmptyByteArray", ("OLD_DATA_SPACE", 0x08149): "EmptyConstantPoolArray", ("OLD_DATA_SPACE", 0x0828d): "EmptyExternalInt8Array", ("OLD_DATA_SPACE", 0x08299): "EmptyExternalUint8Array", ("OLD_DATA_SPACE", 0x082a5): "EmptyExternalInt16Array", ("OLD_DATA_SPACE", 0x082b1): "EmptyExternalUint16Array", ("OLD_DATA_SPACE", 0x082bd): "EmptyExternalInt32Array", ("OLD_DATA_SPACE", 0x082c9): "EmptyExternalUint32Array", ("OLD_DATA_SPACE", 0x082d5): "EmptyExternalFloat32Array", ("OLD_DATA_SPACE", 0x082e1): "EmptyExternalFloat64Array", ("OLD_DATA_SPACE", 0x082ed): "EmptyExternalUint8ClampedArray", ("OLD_DATA_SPACE", 0x082f9): "InfinityValue", ("OLD_DATA_SPACE", 0x08305): "MinusZeroValue", ("CODE_SPACE", 0x138e1): "JsConstructEntryCode", ("CODE_SPACE", 0x21361): "JsEntryCode", }
instance_types = {64: 'STRING_TYPE', 68: 'ASCII_STRING_TYPE', 65: 'CONS_STRING_TYPE', 69: 'CONS_ASCII_STRING_TYPE', 67: 'SLICED_STRING_TYPE', 71: 'SLICED_ASCII_STRING_TYPE', 66: 'EXTERNAL_STRING_TYPE', 70: 'EXTERNAL_ASCII_STRING_TYPE', 74: 'EXTERNAL_STRING_WITH_ONE_BYTE_DATA_TYPE', 82: 'SHORT_EXTERNAL_STRING_TYPE', 86: 'SHORT_EXTERNAL_ASCII_STRING_TYPE', 90: 'SHORT_EXTERNAL_STRING_WITH_ONE_BYTE_DATA_TYPE', 0: 'INTERNALIZED_STRING_TYPE', 4: 'ASCII_INTERNALIZED_STRING_TYPE', 1: 'CONS_INTERNALIZED_STRING_TYPE', 5: 'CONS_ASCII_INTERNALIZED_STRING_TYPE', 2: 'EXTERNAL_INTERNALIZED_STRING_TYPE', 6: 'EXTERNAL_ASCII_INTERNALIZED_STRING_TYPE', 10: 'EXTERNAL_INTERNALIZED_STRING_WITH_ONE_BYTE_DATA_TYPE', 18: 'SHORT_EXTERNAL_INTERNALIZED_STRING_TYPE', 22: 'SHORT_EXTERNAL_ASCII_INTERNALIZED_STRING_TYPE', 26: 'SHORT_EXTERNAL_INTERNALIZED_STRING_WITH_ONE_BYTE_DATA_TYPE', 128: 'SYMBOL_TYPE', 129: 'MAP_TYPE', 130: 'CODE_TYPE', 131: 'ODDBALL_TYPE', 132: 'CELL_TYPE', 133: 'PROPERTY_CELL_TYPE', 134: 'HEAP_NUMBER_TYPE', 135: 'FOREIGN_TYPE', 136: 'BYTE_ARRAY_TYPE', 137: 'FREE_SPACE_TYPE', 138: 'EXTERNAL_INT8_ARRAY_TYPE', 139: 'EXTERNAL_UINT8_ARRAY_TYPE', 140: 'EXTERNAL_INT16_ARRAY_TYPE', 141: 'EXTERNAL_UINT16_ARRAY_TYPE', 142: 'EXTERNAL_INT32_ARRAY_TYPE', 143: 'EXTERNAL_UINT32_ARRAY_TYPE', 144: 'EXTERNAL_FLOAT32_ARRAY_TYPE', 145: 'EXTERNAL_FLOAT64_ARRAY_TYPE', 146: 'EXTERNAL_UINT8_CLAMPED_ARRAY_TYPE', 147: 'FIXED_INT8_ARRAY_TYPE', 148: 'FIXED_UINT8_ARRAY_TYPE', 149: 'FIXED_INT16_ARRAY_TYPE', 150: 'FIXED_UINT16_ARRAY_TYPE', 151: 'FIXED_INT32_ARRAY_TYPE', 152: 'FIXED_UINT32_ARRAY_TYPE', 153: 'FIXED_FLOAT32_ARRAY_TYPE', 154: 'FIXED_FLOAT64_ARRAY_TYPE', 155: 'FIXED_UINT8_CLAMPED_ARRAY_TYPE', 157: 'FILLER_TYPE', 158: 'DECLARED_ACCESSOR_DESCRIPTOR_TYPE', 159: 'DECLARED_ACCESSOR_INFO_TYPE', 160: 'EXECUTABLE_ACCESSOR_INFO_TYPE', 161: 'ACCESSOR_PAIR_TYPE', 162: 'ACCESS_CHECK_INFO_TYPE', 163: 'INTERCEPTOR_INFO_TYPE', 164: 'CALL_HANDLER_INFO_TYPE', 165: 'FUNCTION_TEMPLATE_INFO_TYPE', 166: 'OBJECT_TEMPLATE_INFO_TYPE', 167: 'SIGNATURE_INFO_TYPE', 168: 'TYPE_SWITCH_INFO_TYPE', 170: 'ALLOCATION_MEMENTO_TYPE', 169: 'ALLOCATION_SITE_TYPE', 171: 'SCRIPT_TYPE', 172: 'CODE_CACHE_TYPE', 173: 'POLYMORPHIC_CODE_CACHE_TYPE', 174: 'TYPE_FEEDBACK_INFO_TYPE', 175: 'ALIASED_ARGUMENTS_ENTRY_TYPE', 176: 'BOX_TYPE', 179: 'FIXED_ARRAY_TYPE', 156: 'FIXED_DOUBLE_ARRAY_TYPE', 180: 'CONSTANT_POOL_ARRAY_TYPE', 181: 'SHARED_FUNCTION_INFO_TYPE', 182: 'JS_MESSAGE_OBJECT_TYPE', 185: 'JS_VALUE_TYPE', 186: 'JS_DATE_TYPE', 187: 'JS_OBJECT_TYPE', 188: 'JS_CONTEXT_EXTENSION_OBJECT_TYPE', 189: 'JS_GENERATOR_OBJECT_TYPE', 190: 'JS_MODULE_TYPE', 191: 'JS_GLOBAL_OBJECT_TYPE', 192: 'JS_BUILTINS_OBJECT_TYPE', 193: 'JS_GLOBAL_PROXY_TYPE', 194: 'JS_ARRAY_TYPE', 195: 'JS_ARRAY_BUFFER_TYPE', 196: 'JS_TYPED_ARRAY_TYPE', 197: 'JS_DATA_VIEW_TYPE', 184: 'JS_PROXY_TYPE', 198: 'JS_SET_TYPE', 199: 'JS_MAP_TYPE', 200: 'JS_WEAK_MAP_TYPE', 201: 'JS_WEAK_SET_TYPE', 202: 'JS_REGEXP_TYPE', 203: 'JS_FUNCTION_TYPE', 183: 'JS_FUNCTION_PROXY_TYPE', 177: 'DEBUG_INFO_TYPE', 178: 'BREAK_POINT_INFO_TYPE'} known_maps = {32897: (136, 'ByteArrayMap'), 32937: (129, 'MetaMap'), 32977: (131, 'OddballMap'), 33017: (4, 'AsciiInternalizedStringMap'), 33057: (179, 'FixedArrayMap'), 33097: (134, 'HeapNumberMap'), 33137: (137, 'FreeSpaceMap'), 33177: (157, 'OnePointerFillerMap'), 33217: (157, 'TwoPointerFillerMap'), 33257: (132, 'CellMap'), 33297: (133, 'GlobalPropertyCellMap'), 33337: (181, 'SharedFunctionInfoMap'), 33377: (179, 'NativeContextMap'), 33417: (130, 'CodeMap'), 33457: (179, 'ScopeInfoMap'), 33497: (179, 'FixedCOWArrayMap'), 33537: (156, 'FixedDoubleArrayMap'), 33577: (180, 'ConstantPoolArrayMap'), 33617: (179, 'HashTableMap'), 33657: (128, 'SymbolMap'), 33697: (64, 'StringMap'), 33737: (68, 'AsciiStringMap'), 33777: (65, 'ConsStringMap'), 33817: (69, 'ConsAsciiStringMap'), 33857: (67, 'SlicedStringMap'), 33897: (71, 'SlicedAsciiStringMap'), 33937: (66, 'ExternalStringMap'), 33977: (74, 'ExternalStringWithOneByteDataMap'), 34017: (70, 'ExternalAsciiStringMap'), 34057: (82, 'ShortExternalStringMap'), 34097: (90, 'ShortExternalStringWithOneByteDataMap'), 34137: (0, 'InternalizedStringMap'), 34177: (1, 'ConsInternalizedStringMap'), 34217: (5, 'ConsAsciiInternalizedStringMap'), 34257: (2, 'ExternalInternalizedStringMap'), 34297: (10, 'ExternalInternalizedStringWithOneByteDataMap'), 34337: (6, 'ExternalAsciiInternalizedStringMap'), 34377: (18, 'ShortExternalInternalizedStringMap'), 34417: (26, 'ShortExternalInternalizedStringWithOneByteDataMap'), 34457: (22, 'ShortExternalAsciiInternalizedStringMap'), 34497: (86, 'ShortExternalAsciiStringMap'), 34537: (64, 'UndetectableStringMap'), 34577: (68, 'UndetectableAsciiStringMap'), 34617: (138, 'ExternalInt8ArrayMap'), 34657: (139, 'ExternalUint8ArrayMap'), 34697: (140, 'ExternalInt16ArrayMap'), 34737: (141, 'ExternalUint16ArrayMap'), 34777: (142, 'ExternalInt32ArrayMap'), 34817: (143, 'ExternalUint32ArrayMap'), 34857: (144, 'ExternalFloat32ArrayMap'), 34897: (145, 'ExternalFloat64ArrayMap'), 34937: (146, 'ExternalUint8ClampedArrayMap'), 34977: (148, 'FixedUint8ArrayMap'), 35017: (147, 'FixedInt8ArrayMap'), 35057: (150, 'FixedUint16ArrayMap'), 35097: (149, 'FixedInt16ArrayMap'), 35137: (152, 'FixedUint32ArrayMap'), 35177: (151, 'FixedInt32ArrayMap'), 35217: (153, 'FixedFloat32ArrayMap'), 35257: (154, 'FixedFloat64ArrayMap'), 35297: (155, 'FixedUint8ClampedArrayMap'), 35337: (179, 'NonStrictArgumentsElementsMap'), 35377: (179, 'FunctionContextMap'), 35417: (179, 'CatchContextMap'), 35457: (179, 'WithContextMap'), 35497: (179, 'BlockContextMap'), 35537: (179, 'ModuleContextMap'), 35577: (179, 'GlobalContextMap'), 35617: (182, 'JSMessageObjectMap'), 35657: (135, 'ForeignMap'), 35697: (187, 'NeanderMap'), 35737: (170, 'AllocationMementoMap'), 35777: (169, 'AllocationSiteMap'), 35817: (173, 'PolymorphicCodeCacheMap'), 35857: (171, 'ScriptMap'), 35937: (187, 'ExternalMap'), 36017: (176, 'BoxMap'), 36057: (158, 'DeclaredAccessorDescriptorMap'), 36097: (159, 'DeclaredAccessorInfoMap'), 36137: (160, 'ExecutableAccessorInfoMap'), 36177: (161, 'AccessorPairMap'), 36217: (162, 'AccessCheckInfoMap'), 36257: (163, 'InterceptorInfoMap'), 36297: (164, 'CallHandlerInfoMap'), 36337: (165, 'FunctionTemplateInfoMap'), 36377: (166, 'ObjectTemplateInfoMap'), 36417: (167, 'SignatureInfoMap'), 36457: (168, 'TypeSwitchInfoMap'), 36497: (172, 'CodeCacheMap'), 36537: (174, 'TypeFeedbackInfoMap'), 36577: (175, 'AliasedArgumentsEntryMap'), 36617: (177, 'DebugInfoMap'), 36657: (178, 'BreakPointInfoMap')} known_objects = {('OLD_POINTER_SPACE', 32897): 'NullValue', ('OLD_POINTER_SPACE', 32913): 'UndefinedValue', ('OLD_POINTER_SPACE', 32929): 'TheHoleValue', ('OLD_POINTER_SPACE', 32945): 'TrueValue', ('OLD_POINTER_SPACE', 32961): 'FalseValue', ('OLD_POINTER_SPACE', 32977): 'UninitializedValue', ('OLD_POINTER_SPACE', 32993): 'NoInterceptorResultSentinel', ('OLD_POINTER_SPACE', 33009): 'ArgumentsMarker', ('OLD_POINTER_SPACE', 33025): 'NumberStringCache', ('OLD_POINTER_SPACE', 35081): 'SingleCharacterStringCache', ('OLD_POINTER_SPACE', 36113): 'StringSplitCache', ('OLD_POINTER_SPACE', 37145): 'RegExpMultipleCache', ('OLD_POINTER_SPACE', 38177): 'TerminationException', ('OLD_POINTER_SPACE', 38193): 'MessageListeners', ('OLD_POINTER_SPACE', 38221): 'CodeStubs', ('OLD_POINTER_SPACE', 51813): 'MegamorphicSymbol', ('OLD_POINTER_SPACE', 51829): 'UninitializedSymbol', ('OLD_POINTER_SPACE', 68329): 'NonMonomorphicCache', ('OLD_POINTER_SPACE', 69885): 'PolymorphicCodeCache', ('OLD_POINTER_SPACE', 69893): 'NativesSourceCache', ('OLD_POINTER_SPACE', 69973): 'EmptyScript', ('OLD_POINTER_SPACE', 70025): 'IntrinsicFunctionNames', ('OLD_POINTER_SPACE', 82341): 'ObservationState', ('OLD_POINTER_SPACE', 82353): 'FrozenSymbol', ('OLD_POINTER_SPACE', 82369): 'NonExistentSymbol', ('OLD_POINTER_SPACE', 82385): 'ElementsTransitionSymbol', ('OLD_POINTER_SPACE', 82401): 'EmptySlowElementDictionary', ('OLD_POINTER_SPACE', 82813): 'ObservedSymbol', ('OLD_POINTER_SPACE', 82829): 'AllocationSitesScratchpad', ('OLD_POINTER_SPACE', 83861): 'MicrotaskState', ('OLD_POINTER_SPACE', 221761): 'StringTable', ('OLD_DATA_SPACE', 32921): 'EmptyDescriptorArray', ('OLD_DATA_SPACE', 32929): 'EmptyFixedArray', ('OLD_DATA_SPACE', 32937): 'NanValue', ('OLD_DATA_SPACE', 33089): 'EmptyByteArray', ('OLD_DATA_SPACE', 33097): 'EmptyConstantPoolArray', ('OLD_DATA_SPACE', 33421): 'EmptyExternalInt8Array', ('OLD_DATA_SPACE', 33433): 'EmptyExternalUint8Array', ('OLD_DATA_SPACE', 33445): 'EmptyExternalInt16Array', ('OLD_DATA_SPACE', 33457): 'EmptyExternalUint16Array', ('OLD_DATA_SPACE', 33469): 'EmptyExternalInt32Array', ('OLD_DATA_SPACE', 33481): 'EmptyExternalUint32Array', ('OLD_DATA_SPACE', 33493): 'EmptyExternalFloat32Array', ('OLD_DATA_SPACE', 33505): 'EmptyExternalFloat64Array', ('OLD_DATA_SPACE', 33517): 'EmptyExternalUint8ClampedArray', ('OLD_DATA_SPACE', 33529): 'InfinityValue', ('OLD_DATA_SPACE', 33541): 'MinusZeroValue', ('CODE_SPACE', 80097): 'JsConstructEntryCode', ('CODE_SPACE', 136033): 'JsEntryCode'}
# Databricks notebook source # MAGIC %md-sandbox # MAGIC # MAGIC <div style="text-align: center; line-height: 0; padding-top: 9px;"> # MAGIC <img src="https://databricks.com/wp-content/uploads/2018/03/db-academy-rgb-1200px.png" alt="Databricks Learning" style="width: 600px"> # MAGIC </div> # COMMAND ---------- # MAGIC %md # MAGIC # Conditionals and Loops # MAGIC # MAGIC ## In this lesson you: # MAGIC - Create a simple list # MAGIC - Iterate over a list using a **`for`** expression # MAGIC - Conditionally execute statements using **`if`**, **`elif`** and **`else`** expressions # COMMAND ---------- # MAGIC %md # MAGIC ##![Spark Logo Tiny](https://files.training.databricks.com/images/105/logo_spark_tiny.png) C-Style For Loops # MAGIC # MAGIC If you have any programming experience in other structured programming languages, you should be familair with **C-Style For Loops** # MAGIC # MAGIC If not, a little history wont hurt... # MAGIC # MAGIC The classic c-style for loop will look something like this: # COMMAND ---------- # MAGIC %md # MAGIC # MAGIC ``` # MAGIC for (i = 0; i < 10; i++) { # MAGIC print(i) # MAGIC } # MAGIC ``` # COMMAND ---------- # MAGIC %md # MAGIC What is unique about this syntax is: # MAGIC * **`i`** is a varaible that is initially set to **`0`** # MAGIC * **`i`** is incremented by one (**`i++`**) after each iteration of the loop # MAGIC * Incrementation and block-execution is repeated while the prescribed condition (**`i < 10`**) is true # COMMAND ---------- # MAGIC %md # MAGIC ##![Spark Logo Tiny](https://files.training.databricks.com/images/105/logo_spark_tiny.png) For-In Loops # MAGIC # MAGIC More modern programming languages such as Python, Scala, Java, and others, have abandoned if not deprecated this type of loop. # MAGIC # MAGIC Instead they use a for-in methodology that amounts to executing a block of code once for every item in a list. # MAGIC # MAGIC To see how this works, we need to first introduce a list - we will cover lists in more details in a latter section. # COMMAND ---------- # MAGIC %md # MAGIC Let's make a <a href="https://docs.python.org/3/library/stdtypes.html#list" target="_blank">list</a> of what everyone ate for breakfast this morning. # MAGIC # MAGIC <img src="https://upload.wikimedia.org/wikipedia/commons/thumb/2/20/Scrambed_eggs.jpg/1280px-Scrambed_eggs.jpg" width="20%" height="10%"> # COMMAND ---------- breakfast_list = ["pancakes", "eggs", "waffles"] # Declare the list print(breakfast_list) # Print the entire list # COMMAND ---------- # MAGIC %md # MAGIC There are a lot of different things we can do with a list such as: # MAGIC * Iterating over a list # MAGIC * Accessing specific elements of a list # MAGIC * Slicing a list # MAGIC * Appending to a list # MAGIC * Removing items from a list # MAGIC * Concatenating lists # MAGIC * and so on... # MAGIC # MAGIC For now, let's focus on iterating over a list and printing each individual item in the list: # COMMAND ---------- for food in breakfast_list: print(food) print("This is executed once because it is outside the for loop") # COMMAND ---------- # MAGIC %md So how does one replicate a C-Style For Loop on a range of numbers in Python? # MAGIC # MAGIC For that, we can use the <a href="https://docs.python.org/3/library/functions.html#func-range" target="_blank">range</a> function which produces an immutable collection of nubmers (a type of list). # COMMAND ---------- for i in range(0, 5): print(i) # COMMAND ---------- # MAGIC %md We will talk more about collections in a later section including lists, ranges, dictionaries, etc. # MAGIC # MAGIC The key thing to remember here is that they are all iterable and the **`for-in`** expression allows us to iterate over them. # COMMAND ---------- # MAGIC %md # MAGIC ##![Spark Logo Tiny](https://files.training.databricks.com/images/105/logo_spark_tiny.png) Conditionals # MAGIC # MAGIC Before exploring loops further, let's take a look at conditionals. # MAGIC # MAGIC At the end of this lesson, we combine these two concepts so as to develop more complex constructs. # COMMAND ---------- # MAGIC %md # MAGIC # MAGIC We don't always want to execute every line of code. # MAGIC # MAGIC We can that process by employing **`if`**, **`elif`**, and **`else`** expressions. # MAGIC # MAGIC We can see a few examples here: # COMMAND ---------- food = "bacon" if food == "eggs": print("Make scrambled eggs") print("All done") # COMMAND ---------- # MAGIC %md In the example above, line #5 is not executed. # MAGIC # MAGIC Edit line #2 above and set the variable **`food`** to **`"eggs"`** and rerun the command. # COMMAND ---------- # MAGIC %md Let's build on this example with an **`else`** expression... # COMMAND ---------- food = "bacon" if food == "eggs": print("Make scrambled eggs") else: print(f"I don't know what to do with {food}") print("All done") # COMMAND ---------- # MAGIC %md And lastly, we can introduce the **`elif`** expression... # COMMAND ---------- food = "bacon" if food == "eggs": print("Make scrambled eggs") elif food == "waffles": print("I need syrup for my waffles") else: print(f"I don't know what to do with {food}") print("All done") # COMMAND ---------- # MAGIC %md # MAGIC What if the expression needs to be more complex? # MAGIC # MAGIC For example, if I need syrup with waffles or pancakes? # MAGIC # MAGIC Each **`if`** and **`elif`** expression can get increasignly more complex by adding more conditional statements and combining them with various **`and`** &amp; **`or`** operators # COMMAND ---------- food = "bacon" if food == "eggs": print("Make scrambled eggs") elif food == "waffles" or food == "pancakes": print(f"I need syrup for my {food}") else: print(f"I don't know what to do with {food}") print("All done") # COMMAND ---------- # MAGIC %md # MAGIC Besides compounding conditional statements, we can also nest **`if`**, **`elif`** and **`else`** expressions: # COMMAND ---------- food = "bacon" if food != "eggs": if food == "waffles" or food == "pancakes": print(f"I need syrup for my {food}") else: print(f"I don't know what to do with {food}") else: print("Make scrambled eggs") print("All done") # COMMAND ---------- # MAGIC %md # MAGIC ##![Spark Logo Tiny](https://files.training.databricks.com/images/105/logo_spark_tiny.png) Loops & Conditionals # MAGIC # MAGIC Lastly, let's take a look at how we can combine these two constructs. # MAGIC # MAGIC Before we do, let's review the contents of our breakfast list: # COMMAND ---------- for food in breakfast_list: print(food) # COMMAND ---------- # MAGIC %md Next we will iterate over that list and instead of printing each item, we can run through our conditionals instead # COMMAND ---------- for food in breakfast_list: if food != "eggs": if food == "waffles" or food == "pancakes": print(f"I need syrup for my {food}") else: print(f"I don't know what to do with {food}") else: print("Make scrambled eggs") print("All done") # COMMAND ---------- # MAGIC %md-sandbox # MAGIC &copy; 2020 Databricks, Inc. All rights reserved.<br/> # MAGIC Apache, Apache Spark, Spark and the Spark logo are trademarks of the <a href="http://www.apache.org/">Apache Software Foundation</a>.<br/> # MAGIC <br/> # MAGIC <a href="https://databricks.com/privacy-policy">Privacy Policy</a> | <a href="https://databricks.com/terms-of-use">Terms of Use</a> | <a href="http://help.databricks.com/">Support</a>
breakfast_list = ['pancakes', 'eggs', 'waffles'] print(breakfast_list) for food in breakfast_list: print(food) print('This is executed once because it is outside the for loop') for i in range(0, 5): print(i) food = 'bacon' if food == 'eggs': print('Make scrambled eggs') print('All done') food = 'bacon' if food == 'eggs': print('Make scrambled eggs') else: print(f"I don't know what to do with {food}") print('All done') food = 'bacon' if food == 'eggs': print('Make scrambled eggs') elif food == 'waffles': print('I need syrup for my waffles') else: print(f"I don't know what to do with {food}") print('All done') food = 'bacon' if food == 'eggs': print('Make scrambled eggs') elif food == 'waffles' or food == 'pancakes': print(f'I need syrup for my {food}') else: print(f"I don't know what to do with {food}") print('All done') food = 'bacon' if food != 'eggs': if food == 'waffles' or food == 'pancakes': print(f'I need syrup for my {food}') else: print(f"I don't know what to do with {food}") else: print('Make scrambled eggs') print('All done') for food in breakfast_list: print(food) for food in breakfast_list: if food != 'eggs': if food == 'waffles' or food == 'pancakes': print(f'I need syrup for my {food}') else: print(f"I don't know what to do with {food}") else: print('Make scrambled eggs') print('All done')
def solution(): T = int(input()) for t in range(1, T+1): solve(t) def solve(t): m = int(input()) c = list(map(int, input().split(' '))) c[0] = -c[0] # Newton's method, not well, binary is good f = lambda x: sum([e*x**(m-i) for i,e in enumerate(c)]) ef = lambda x: sum([(m-i)*e*x**(m-i-1) for i,e in enumerate(c)]) x = 1.0 left, right = 10**-10, 2.0 - 10**-10 while right - left > 10**-10: a = f(left) b = f(x) if a==0: x = a break if b==0: break if a*b > 0: left = x else: right = x x = (left+right)/2 print('Case #%d: %.12f' % (t, x-1)) solution()
def solution(): t = int(input()) for t in range(1, T + 1): solve(t) def solve(t): m = int(input()) c = list(map(int, input().split(' '))) c[0] = -c[0] f = lambda x: sum([e * x ** (m - i) for (i, e) in enumerate(c)]) ef = lambda x: sum([(m - i) * e * x ** (m - i - 1) for (i, e) in enumerate(c)]) x = 1.0 (left, right) = (10 ** (-10), 2.0 - 10 ** (-10)) while right - left > 10 ** (-10): a = f(left) b = f(x) if a == 0: x = a break if b == 0: break if a * b > 0: left = x else: right = x x = (left + right) / 2 print('Case #%d: %.12f' % (t, x - 1)) solution()
class destination(object): planet = 1 debris = 2 moon = 3 def coordinates(galaxy, system, position=None, dest=destination.planet): return [galaxy, system, position, dest] class mission(object): attack = 1 transport = 3 park = 4 park_ally = 5 spy = 6 colonize = 7 recycle = 8 destroy = 9 expedition = 15 class speed(object): _10 = 1 _20 = 2 _30 = 3 _40 = 4 _50 = 5 _60 = 6 _70 = 7 _80 = 8 _90 = 9 _100 = 10 max = 10 min = 1 class buildings(object): metal_mine = 1, 1, 'supplies' crystal_mine = 2, 1, 'supplies' deuterium_mine = 3, 1, 'supplies' solar_plant = 4, 1, 'supplies' fusion_plant = 12, 1, 'supplies' def solar_satellite(self=1): return 212, self, 'supplies' def crawler(self=1): return 217, self, 'supplies' metal_storage = 22, 1, 'supplies' crystal_storage = 23, 1, 'supplies' deuterium_storage = 24, 1, 'supplies' robotics_factory = 14, 1, 'facilities' shipyard = 21, 1, 'facilities' research_laboratory = 31, 1, 'facilities' alliance_depot = 34, 1, 'facilities' missile_silo = 44, 1, 'facilities' nanite_factory = 15, 1, 'facilities' terraformer = 33, 1, 'facilities' repair_dock = 36, 1, 'facilities' def rocket_launcher(self=1): return 401, self, 'defenses' def laser_cannon_light(self=1): return 402, self, 'defenses' def laser_cannon_heavy(self=1): return 403, self, 'defenses' def gauss_cannon(self=1): return 404, self, 'defenses' def ion_cannon(self=1): return 405, self, 'defenses' def plasma_cannon(self=1): return 406, self, 'defenses' def shield_dome_small(self=1): return 407, self, 'defenses' def shield_dome_large(self=1): return 408, self, 'defenses' def missile_interceptor(self=1): return 502, self, 'defenses' def missile_interplanetary(self=1): return 503, self, 'defenses' moon_base = 41, 1, 'facilities' sensor_phalanx = 42, 1, 'facilities' jump_gate = 43, 1, 'facilities' class research(object): energy = 113, 1, 'research' laser = 120, 1, 'research' ion = 121, 1, 'research' hyperspace = 114, 1, 'research' plasma = 122, 1, 'research' combustion_drive = 115, 1, 'research' impulse_drive = 117, 1, 'research' hyperspace_drive = 118, 1, 'research' espionage = 106, 1, 'research' computer = 108, 1, 'research' astrophysics = 124, 1, 'research' research_network = 123, 1, 'research' graviton = 199, 1, 'research' weapons = 109, 1, 'research' shielding = 110, 1, 'research' armor = 111, 1, 'research' class ships(object): def light_fighter(self): return 204, self, 'shipyard' def heavy_fighter(self): return 205, self, 'shipyard' def cruiser(self): return 206, self, 'shipyard' def battleship(self): return 207, self, 'shipyard' def interceptor(self): return 215, self, 'shipyard' def bomber(self): return 211, self, 'shipyard' def destroyer(self): return 213, self, 'shipyard' def deathstar(self): return 214, self, 'shipyard' def reaper(self): return 218, self, 'shipyard' def explorer(self): return 219, self, 'shipyard' def small_transporter(self): return 202, self, 'shipyard' def large_transporter(self): return 203, self, 'shipyard' def colonyShip(self): return 208, self, 'shipyard' def recycler(self): return 209, self, 'shipyard' def espionage_probe(self): return 210, self, 'shipyard' def is_ship(ship): if ship[2] == 'shipyard': return True else: return False def get_ship_name(ship): if ships.is_ship(ship): if ship[0] == 204: return 'light_fighter' if ship[0] == 205: return 'heavy_fighter' if ship[0] == 206: return 'cruiser' if ship[0] == 207: return 'battleship' if ship[0] == 215: return 'interceptor' if ship[0] == 211: return 'bomber' if ship[0] == 213: return 'destroyer' if ship[0] == 214: return 'deathstar' if ship[0] == 218: return 'reaper' if ship[0] == 219: return 'explorer' if ship[0] == 202: return 'small_transporter' if ship[0] == 203: return 'large_transporter' if ship[0] == 208: return 'colonyShip' if ship[0] == 209: return 'recycler' if ship[0] == 210: return 'espionage_probe' if ship[0] == 217: return 'crawler' def get_ship_amount(ship): if ships.is_ship(ship): return ship[1] def get_ship_id(ship): if ships.is_ship(ship): return ship[0] def resources(metal=0, crystal=0, deuterium=0): return [metal, crystal, deuterium] class status: inactive = 'inactive' longinactive = 'longinactive' vacation = 'vacation' admin = 'admin' noob = 'noob' honorable_target = 'honorableTarget' active = 'active'
class Destination(object): planet = 1 debris = 2 moon = 3 def coordinates(galaxy, system, position=None, dest=destination.planet): return [galaxy, system, position, dest] class Mission(object): attack = 1 transport = 3 park = 4 park_ally = 5 spy = 6 colonize = 7 recycle = 8 destroy = 9 expedition = 15 class Speed(object): _10 = 1 _20 = 2 _30 = 3 _40 = 4 _50 = 5 _60 = 6 _70 = 7 _80 = 8 _90 = 9 _100 = 10 max = 10 min = 1 class Buildings(object): metal_mine = (1, 1, 'supplies') crystal_mine = (2, 1, 'supplies') deuterium_mine = (3, 1, 'supplies') solar_plant = (4, 1, 'supplies') fusion_plant = (12, 1, 'supplies') def solar_satellite(self=1): return (212, self, 'supplies') def crawler(self=1): return (217, self, 'supplies') metal_storage = (22, 1, 'supplies') crystal_storage = (23, 1, 'supplies') deuterium_storage = (24, 1, 'supplies') robotics_factory = (14, 1, 'facilities') shipyard = (21, 1, 'facilities') research_laboratory = (31, 1, 'facilities') alliance_depot = (34, 1, 'facilities') missile_silo = (44, 1, 'facilities') nanite_factory = (15, 1, 'facilities') terraformer = (33, 1, 'facilities') repair_dock = (36, 1, 'facilities') def rocket_launcher(self=1): return (401, self, 'defenses') def laser_cannon_light(self=1): return (402, self, 'defenses') def laser_cannon_heavy(self=1): return (403, self, 'defenses') def gauss_cannon(self=1): return (404, self, 'defenses') def ion_cannon(self=1): return (405, self, 'defenses') def plasma_cannon(self=1): return (406, self, 'defenses') def shield_dome_small(self=1): return (407, self, 'defenses') def shield_dome_large(self=1): return (408, self, 'defenses') def missile_interceptor(self=1): return (502, self, 'defenses') def missile_interplanetary(self=1): return (503, self, 'defenses') moon_base = (41, 1, 'facilities') sensor_phalanx = (42, 1, 'facilities') jump_gate = (43, 1, 'facilities') class Research(object): energy = (113, 1, 'research') laser = (120, 1, 'research') ion = (121, 1, 'research') hyperspace = (114, 1, 'research') plasma = (122, 1, 'research') combustion_drive = (115, 1, 'research') impulse_drive = (117, 1, 'research') hyperspace_drive = (118, 1, 'research') espionage = (106, 1, 'research') computer = (108, 1, 'research') astrophysics = (124, 1, 'research') research_network = (123, 1, 'research') graviton = (199, 1, 'research') weapons = (109, 1, 'research') shielding = (110, 1, 'research') armor = (111, 1, 'research') class Ships(object): def light_fighter(self): return (204, self, 'shipyard') def heavy_fighter(self): return (205, self, 'shipyard') def cruiser(self): return (206, self, 'shipyard') def battleship(self): return (207, self, 'shipyard') def interceptor(self): return (215, self, 'shipyard') def bomber(self): return (211, self, 'shipyard') def destroyer(self): return (213, self, 'shipyard') def deathstar(self): return (214, self, 'shipyard') def reaper(self): return (218, self, 'shipyard') def explorer(self): return (219, self, 'shipyard') def small_transporter(self): return (202, self, 'shipyard') def large_transporter(self): return (203, self, 'shipyard') def colony_ship(self): return (208, self, 'shipyard') def recycler(self): return (209, self, 'shipyard') def espionage_probe(self): return (210, self, 'shipyard') def is_ship(ship): if ship[2] == 'shipyard': return True else: return False def get_ship_name(ship): if ships.is_ship(ship): if ship[0] == 204: return 'light_fighter' if ship[0] == 205: return 'heavy_fighter' if ship[0] == 206: return 'cruiser' if ship[0] == 207: return 'battleship' if ship[0] == 215: return 'interceptor' if ship[0] == 211: return 'bomber' if ship[0] == 213: return 'destroyer' if ship[0] == 214: return 'deathstar' if ship[0] == 218: return 'reaper' if ship[0] == 219: return 'explorer' if ship[0] == 202: return 'small_transporter' if ship[0] == 203: return 'large_transporter' if ship[0] == 208: return 'colonyShip' if ship[0] == 209: return 'recycler' if ship[0] == 210: return 'espionage_probe' if ship[0] == 217: return 'crawler' def get_ship_amount(ship): if ships.is_ship(ship): return ship[1] def get_ship_id(ship): if ships.is_ship(ship): return ship[0] def resources(metal=0, crystal=0, deuterium=0): return [metal, crystal, deuterium] class Status: inactive = 'inactive' longinactive = 'longinactive' vacation = 'vacation' admin = 'admin' noob = 'noob' honorable_target = 'honorableTarget' active = 'active'
class Solution: def intToRoman(self, num: int) -> str: M = ["", "M", "MM", "MMM"] C = ["", "C", "CC", "CCC", "CD", "D", "DC", "DCC", "DCCC", "CM"] X = ["", "X", "XX", "XXX", "XL", "L", "LX", "LXX", "LXXX", "XC"] I = ["", "I", "II", "III", "IV", "V", "VI", "VII", "VIII", "IX"] return M[num // 1000] + C[num % 1000 // 100] + X[num % 100 // 10] + I[num % 10] # TESTS for num, expected in [ (3, "III"), (4, "IV"), (9, "IX"), (58, "LVIII"), (1994, "MCMXCIV"), ]: sol = Solution() actual = sol.intToRoman(num) print("Int", num, "to roman ->", actual) assert actual == expected
class Solution: def int_to_roman(self, num: int) -> str: m = ['', 'M', 'MM', 'MMM'] c = ['', 'C', 'CC', 'CCC', 'CD', 'D', 'DC', 'DCC', 'DCCC', 'CM'] x = ['', 'X', 'XX', 'XXX', 'XL', 'L', 'LX', 'LXX', 'LXXX', 'XC'] i = ['', 'I', 'II', 'III', 'IV', 'V', 'VI', 'VII', 'VIII', 'IX'] return M[num // 1000] + C[num % 1000 // 100] + X[num % 100 // 10] + I[num % 10] for (num, expected) in [(3, 'III'), (4, 'IV'), (9, 'IX'), (58, 'LVIII'), (1994, 'MCMXCIV')]: sol = solution() actual = sol.intToRoman(num) print('Int', num, 'to roman ->', actual) assert actual == expected
# # PySNMP MIB module CISCO-ZS-EXT-MIB (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/CISCO-ZS-EXT-MIB # Produced by pysmi-0.3.4 at Wed May 1 12:21:44 2019 # On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4 # Using Python version 3.7.3 (default, Mar 27 2019, 09:23:15) # Integer, OctetString, ObjectIdentifier = mibBuilder.importSymbols("ASN1", "Integer", "OctetString", "ObjectIdentifier") NamedValues, = mibBuilder.importSymbols("ASN1-ENUMERATION", "NamedValues") ValueSizeConstraint, ValueRangeConstraint, ConstraintsIntersection, SingleValueConstraint, ConstraintsUnion = mibBuilder.importSymbols("ASN1-REFINEMENT", "ValueSizeConstraint", "ValueRangeConstraint", "ConstraintsIntersection", "SingleValueConstraint", "ConstraintsUnion") ciscoMgmt, = mibBuilder.importSymbols("CISCO-SMI", "ciscoMgmt") vsanIndex, = mibBuilder.importSymbols("CISCO-VSAN-MIB", "vsanIndex") ModuleCompliance, NotificationGroup, ObjectGroup = mibBuilder.importSymbols("SNMPv2-CONF", "ModuleCompliance", "NotificationGroup", "ObjectGroup") ObjectIdentity, IpAddress, Gauge32, ModuleIdentity, MibScalar, MibTable, MibTableRow, MibTableColumn, iso, NotificationType, Integer32, TimeTicks, Unsigned32, Counter64, Bits, Counter32, MibIdentifier = mibBuilder.importSymbols("SNMPv2-SMI", "ObjectIdentity", "IpAddress", "Gauge32", "ModuleIdentity", "MibScalar", "MibTable", "MibTableRow", "MibTableColumn", "iso", "NotificationType", "Integer32", "TimeTicks", "Unsigned32", "Counter64", "Bits", "Counter32", "MibIdentifier") DisplayString, TextualConvention = mibBuilder.importSymbols("SNMPv2-TC", "DisplayString", "TextualConvention") ciscoZsExtMIB = ModuleIdentity((1, 3, 6, 1, 4, 1, 9, 9, 427)) ciscoZsExtMIB.setRevisions(('2006-01-03 00:00', '2004-08-11 00:00',)) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): if mibBuilder.loadTexts: ciscoZsExtMIB.setRevisionsDescriptions(('Added objects czseGlobalDefaultZoneBehaviour and czseGlobalPropagationMode.', 'Initial version of this MIB.',)) if mibBuilder.loadTexts: ciscoZsExtMIB.setLastUpdated('200601030000Z') if mibBuilder.loadTexts: ciscoZsExtMIB.setOrganization('Cisco Systems Inc.') if mibBuilder.loadTexts: ciscoZsExtMIB.setContactInfo(' Cisco Systems Customer Service Postal: 170 W Tasman Drive San Jose, CA 95134 USA Tel: +1 800 553 -NETS E-mail: cs-san@cisco.com') if mibBuilder.loadTexts: ciscoZsExtMIB.setDescription("The MIB module for the management of zoning within the framework of Cisco's Zoning Server (ZS) Archi- tecture which realizes the FC-GS4/SW3 requirements for Zone Server. This MIB is an extension to the CISCO-ZS-MIB, which is for managing zoning conforming to FC-GS3/SW2. The FC-GS4 specification is Fibre-Channel - Generic Services - 4 T11/ Project 1505-D/Rev 7.8. The SW3 specification is Fibre-Channel - Switch Fabric - 3 T11/Project 1508- D/Rev 6.6. GS4/SW3 allows zoning to operate in either basic or enhanced mode of operation. Basic mode is essentially GS3/SW2 compatible mode (as modelled by CISCO-ZS-MIB). Enhanced mode of operation provides additional capabilities. In enhanced mode of operation, all the configuration should be done within the scope of a session. The current 'Running Configuration' on the local device for zone server is called the 'effective' database. When the first configuration command on the zone server data is received, a snapshot of the current 'effective database' is taken on the local device. This snapshot is called the 'copy' database. An implicit session is started by the Zone Server on the local device and all subsequent SET operations take place in the context of this session. The 'copy' database is used for all further modifications in the session. There can be only one session active in the entire Fibre Channel fabric. The user who initiates the creation of this 'copy', is called the owner of session. When a session has been created on a device in the Fibre Channel fabric, if an attempt is made to start a session from any other device in the fabric, it results in error. Once the modifications to the 'copy' are done, a 'commit' operation can be done. The 'commit' done on the local device, results in the local 'effective database' being overwritten with the 'copy' and then the new local 'effective database' is distributed to all other devices in the Fibre Channel fabric. The successful 'commit' operation also results in destroying the 'copy' on the local device. The 'commit' can only be performed by the owner of the session. The 'copy' can optionally be destroyed without any distribution. This can be done by performing a 'clear' operation. Glossary of terms used in this MIB ---------------------------------- VSAN - Virtual Storage Area Network.") ciscoZsExtMIBNotifs = MibIdentifier((1, 3, 6, 1, 4, 1, 9, 9, 427, 0)) ciscoZsExtMIBObjects = MibIdentifier((1, 3, 6, 1, 4, 1, 9, 9, 427, 1)) ciscoZsExtMIBConform = MibIdentifier((1, 3, 6, 1, 4, 1, 9, 9, 427, 2)) czseConfiguration = MibIdentifier((1, 3, 6, 1, 4, 1, 9, 9, 427, 1, 1)) czseStats = MibIdentifier((1, 3, 6, 1, 4, 1, 9, 9, 427, 1, 2)) class CzseSessOwnerType(TextualConvention, Integer32): description = 'Represents the type of owner of a GS4 session. other - other type of owner. cli - Command Line Interface (CLI) is the owner. gs4client - Fibre Channel GS4 services client. snmp - SNMP is the owner.' status = 'current' subtypeSpec = Integer32.subtypeSpec + ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4)) namedValues = NamedValues(("other", 1), ("cli", 2), ("gs4client", 3), ("snmp", 4)) czseCapabilityTable = MibTable((1, 3, 6, 1, 4, 1, 9, 9, 427, 1, 1, 1), ) if mibBuilder.loadTexts: czseCapabilityTable.setStatus('current') if mibBuilder.loadTexts: czseCapabilityTable.setDescription('This table lists the capabilities of the Zone Server on the local device. This information is maintained on a per VSAN basis.') czseCapabilityEntry = MibTableRow((1, 3, 6, 1, 4, 1, 9, 9, 427, 1, 1, 1, 1), ).setIndexNames((0, "CISCO-VSAN-MIB", "vsanIndex")) if mibBuilder.loadTexts: czseCapabilityEntry.setStatus('current') if mibBuilder.loadTexts: czseCapabilityEntry.setDescription('An entry represents the capability of the Zone Server on the local device on a VSAN.') czseCapabilityObject = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 427, 1, 1, 1, 1, 1), Bits().clone(namedValues=NamedValues(("enhancedMode", 0), ("zsetDb", 1), ("dirAct", 2), ("hardZoning", 3)))).setMaxAccess("readonly") if mibBuilder.loadTexts: czseCapabilityObject.setReference('Fibre-Channel - Switch fabric - 3 T11/ Project 1505-D/Rev 6.6 Section 6.1.22.4.4') if mibBuilder.loadTexts: czseCapabilityObject.setStatus('current') if mibBuilder.loadTexts: czseCapabilityObject.setDescription("This bitmap represents the capability of the local Zone Server on this VSAN. If 'enhancedMode(0)' bit is set, the local Zone Server is capable of supporting enhanced Zoning mode of operation. If this bit is reset, it does not have this capability. If 'zsetDb(1)' bit is set, the local Zone Server supports maintaining of zoneset database. If this bit is reset, the local Zone Server does not allow maintaining of zoneset database. If 'dirAct(2)' bit is set, the local Zone Server supports direct activation command. If this bit is reset, the local Zone Server does not support this. If 'hardZoning(3)' bit is set, the local Zone Server supports hard zoning. If this bit is reset, the local Zone Server does not support hard zoning.") czseModeTable = MibTable((1, 3, 6, 1, 4, 1, 9, 9, 427, 1, 1, 2), ) if mibBuilder.loadTexts: czseModeTable.setStatus('current') if mibBuilder.loadTexts: czseModeTable.setDescription('A table containing information on the mode of operation of the zone server on all VSANs on the local device.') czseModeEntry = MibTableRow((1, 3, 6, 1, 4, 1, 9, 9, 427, 1, 1, 2, 1), ).setIndexNames((0, "CISCO-VSAN-MIB", "vsanIndex")) if mibBuilder.loadTexts: czseModeEntry.setStatus('current') if mibBuilder.loadTexts: czseModeEntry.setDescription('An entry represents the mode of operation of the local zone server on a VSAN. The mode can be modified on a VSAN and the outcome of the operation obtained.') czseOperationMode = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 427, 1, 1, 2, 1, 1), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("basic", 1), ("enhanced", 2))).clone('basic')).setMaxAccess("readwrite") if mibBuilder.loadTexts: czseOperationMode.setReference('Fibre-Channel - Generic Services - 4 T11/ Project 1505-D/Rev 7.8 Section 6.4.7. Fibre-Channel - Switch fabric - 3 T11/ Project 1505-D/Rev 6.6 Section 10.6') if mibBuilder.loadTexts: czseOperationMode.setStatus('current') if mibBuilder.loadTexts: czseOperationMode.setDescription("This object when set to 'basic(1)', results in the zone server operating in the basic mode as defined by FC-GS4 standards. This object when set to 'enhanced(2)', results in the zone server operating in the enhanced mode as defined by FC-GS4 standards. The local zone server can move to the enhanced mode of operation only if all devices in the Fibre Channel fabric are capable of working in enhanced mode. Otherwise, the set operation trying to set this object to 'enhanced(2)' will fail.") czseOperationModeResult = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 427, 1, 1, 2, 1, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("success", 1), ("failure", 2), ("inProgress", 3)))).setMaxAccess("readonly") if mibBuilder.loadTexts: czseOperationModeResult.setStatus('current') if mibBuilder.loadTexts: czseOperationModeResult.setDescription('The outcome of setting the mode of operation of the local Zone Server on this VSAN.') czseReadFrom = MibScalar((1, 3, 6, 1, 4, 1, 9, 9, 427, 1, 1, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("effectiveDB", 1), ("copyDB", 2))).clone('effectiveDB')).setMaxAccess("readwrite") if mibBuilder.loadTexts: czseReadFrom.setStatus('current') if mibBuilder.loadTexts: czseReadFrom.setDescription("This object specifies whether the management station wishes to read from the 'effective database' or from the 'copy' database.") czseSessionTable = MibTable((1, 3, 6, 1, 4, 1, 9, 9, 427, 1, 1, 4), ) if mibBuilder.loadTexts: czseSessionTable.setStatus('current') if mibBuilder.loadTexts: czseSessionTable.setDescription("A table containing information on sessions on the local device on all VSANs. Operations are permitted on this table only when the zone server is running in 'enhanced' mode.") czseSessionEntry = MibTableRow((1, 3, 6, 1, 4, 1, 9, 9, 427, 1, 1, 4, 1), ).setIndexNames((0, "CISCO-VSAN-MIB", "vsanIndex")) if mibBuilder.loadTexts: czseSessionEntry.setStatus('current') if mibBuilder.loadTexts: czseSessionEntry.setDescription('An entry contains information on the owner of a session on a VSAN. It also assists in performing commit/clear operations on the session.') czseSessionOwnerType = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 427, 1, 1, 4, 1, 1), CzseSessOwnerType()).setMaxAccess("readonly") if mibBuilder.loadTexts: czseSessionOwnerType.setStatus('current') if mibBuilder.loadTexts: czseSessionOwnerType.setDescription('This object specifies the owner type for this session.') czseSessionOwner = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 427, 1, 1, 4, 1, 2), OctetString().subtype(subtypeSpec=ValueSizeConstraint(0, 64))).setMaxAccess("readonly") if mibBuilder.loadTexts: czseSessionOwner.setStatus('current') if mibBuilder.loadTexts: czseSessionOwner.setDescription("This object specifies the owner for this session. If the value of the corresponding instance of czseSessionOwnerType object is 'cli', this object will contain the user name of the CLI (Command Line Interface) user, who is the owner of the session on this VSAN. If the value of the corresponding instance of czseSessionOwnerType is 'gs4client', this object will contain the FCID of the GS4 management station, which is the owner of the session on this VSAN. If the value of the corresponding instance of czseSessionOwnerType is 'snmp', this object will contain the IP address of the management station, which is the owner of the session on this VSAN.") czseSessionCntl = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 427, 1, 1, 4, 1, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("commitChanges", 1), ("cleanup", 2), ("noop", 3)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: czseSessionCntl.setStatus('current') if mibBuilder.loadTexts: czseSessionCntl.setDescription("This object assists in committing or clearing the contents of the 'copy' database on this session. No action is taken if this object is set to 'noop(3)'. The value of this object when read is always 'noop(3)'. The above operation can only be performed by the owner of the session.") czseSessionCntlResult = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 427, 1, 1, 4, 1, 4), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("commitSuccess", 1), ("commitFailure", 2), ("inProgress", 3)))).setMaxAccess("readonly") if mibBuilder.loadTexts: czseSessionCntlResult.setStatus('current') if mibBuilder.loadTexts: czseSessionCntlResult.setDescription("This object indicates the outcome of setting the corresponding instance of czseSessionCntl object to 'commitChanges(1)'.") czseMergeControlTable = MibTable((1, 3, 6, 1, 4, 1, 9, 9, 427, 1, 1, 5), ) if mibBuilder.loadTexts: czseMergeControlTable.setStatus('current') if mibBuilder.loadTexts: czseMergeControlTable.setDescription("A table containing information on zone merge control policy on all VSANs in the entire fabric. Operations on this table are permitted only when the zone server is running in 'enhanced' mode.") czseMergeControlEntry = MibTableRow((1, 3, 6, 1, 4, 1, 9, 9, 427, 1, 1, 5, 1), ).setIndexNames((0, "CISCO-VSAN-MIB", "vsanIndex")) if mibBuilder.loadTexts: czseMergeControlEntry.setReference('Fibre-Channel - Switch fabric - 3 T11/ Project 1505-D/Rev 6.6 Section 10.5.2.2') if mibBuilder.loadTexts: czseMergeControlEntry.setStatus('current') if mibBuilder.loadTexts: czseMergeControlEntry.setDescription('An entry contains information on the Merge Control policy on a VSAN. The policy can be modified on a per VSAN basis by making use of czseMergeContolRestrict object.') czseMergeControlRestrict = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 427, 1, 1, 5, 1, 1), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("allow", 1), ("restrict", 2))).clone('allow')).setMaxAccess("readwrite") if mibBuilder.loadTexts: czseMergeControlRestrict.setStatus('current') if mibBuilder.loadTexts: czseMergeControlRestrict.setDescription("This object controls the zone merge behavior. If this object is set to 'allow', then the merge takes place according to the merge rules. If this object is set to 'restrict', then if the merging databases are not exactly identical, the Inter-Switch Link (ISL) between the devices is isolated.") czseGlobalDefaultZoneBehaviour = MibScalar((1, 3, 6, 1, 4, 1, 9, 9, 427, 1, 1, 6), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("permit", 1), ("deny", 2))).clone('deny')).setMaxAccess("readwrite") if mibBuilder.loadTexts: czseGlobalDefaultZoneBehaviour.setStatus('current') if mibBuilder.loadTexts: czseGlobalDefaultZoneBehaviour.setDescription("This object represents the initial value for default zone behaviour on a VSAN when it is created. If a VSAN were to be deleted and re-created again, the default zone behaviour will be set to the value specified for this object. The semantics of setting this object to 'permit' or 'deny' are described in the description for zoneDefaultZoneBehaviour object in CISCO-ZS-MIB. After a VSAN has been created, if the value for default zone behaviour for that VSAN has to be changed, the zoneDefaultZoneBehaviour object in CISCO-ZS-MIB has to be used.") czseGlobalPropagationMode = MibScalar((1, 3, 6, 1, 4, 1, 9, 9, 427, 1, 1, 7), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("fullZoneset", 1), ("activeZoneset", 2))).clone('activeZoneset')).setMaxAccess("readwrite") if mibBuilder.loadTexts: czseGlobalPropagationMode.setStatus('current') if mibBuilder.loadTexts: czseGlobalPropagationMode.setDescription("This object represents the initial value for zone set propagation mode on a VSAN when it is created. If a VSAN were to be deleted and re-created again, the zone set propagation mode will be set to the value specified for this object. The semantics of setting this object to 'fullZoneset' or 'activeZoneset' are described in the description for zoneSetPropagationMode object in CISCO-ZS-MIB. After a VSAN has been created, if the value for zone set propagation mode has to be changed for that particular VSAN, the zoneSetPropagationMode object in CISCO-ZS-MIB has to be used.") ciscoZsExtMIBCompliances = MibIdentifier((1, 3, 6, 1, 4, 1, 9, 9, 427, 2, 1)) ciscoZsExtMIBGroups = MibIdentifier((1, 3, 6, 1, 4, 1, 9, 9, 427, 2, 2)) ciscoZsExtMIBCompliance = ModuleCompliance((1, 3, 6, 1, 4, 1, 9, 9, 427, 2, 1, 1)).setObjects(("CISCO-ZS-EXT-MIB", "ciscoZsExtConfigGroup")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): ciscoZsExtMIBCompliance = ciscoZsExtMIBCompliance.setStatus('deprecated') if mibBuilder.loadTexts: ciscoZsExtMIBCompliance.setDescription('The compliance statement for entities which implement the Zone Server conforming to FC-GS4/SW3.') ciscoZsExtMIBComplianceRev1 = ModuleCompliance((1, 3, 6, 1, 4, 1, 9, 9, 427, 2, 1, 2)).setObjects(("CISCO-ZS-EXT-MIB", "ciscoZsExtConfigGroup"), ("CISCO-ZS-EXT-MIB", "ciscoZsExtConfigGroupSup1")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): ciscoZsExtMIBComplianceRev1 = ciscoZsExtMIBComplianceRev1.setStatus('current') if mibBuilder.loadTexts: ciscoZsExtMIBComplianceRev1.setDescription('The compliance statement for entities which implement the Zone Server conforming to FC-GS4/SW3.') ciscoZsExtConfigGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 9, 9, 427, 2, 2, 1)).setObjects(("CISCO-ZS-EXT-MIB", "czseCapabilityObject"), ("CISCO-ZS-EXT-MIB", "czseOperationMode"), ("CISCO-ZS-EXT-MIB", "czseOperationModeResult"), ("CISCO-ZS-EXT-MIB", "czseReadFrom"), ("CISCO-ZS-EXT-MIB", "czseSessionOwnerType"), ("CISCO-ZS-EXT-MIB", "czseSessionOwner"), ("CISCO-ZS-EXT-MIB", "czseSessionCntl"), ("CISCO-ZS-EXT-MIB", "czseSessionCntlResult"), ("CISCO-ZS-EXT-MIB", "czseMergeControlRestrict")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): ciscoZsExtConfigGroup = ciscoZsExtConfigGroup.setStatus('current') if mibBuilder.loadTexts: ciscoZsExtConfigGroup.setDescription('A collection of object(s) for configuring and displaying Zone Server conforming with FC-GS4/SW3.') ciscoZsExtConfigGroupSup1 = ObjectGroup((1, 3, 6, 1, 4, 1, 9, 9, 427, 2, 2, 2)).setObjects(("CISCO-ZS-EXT-MIB", "czseGlobalDefaultZoneBehaviour"), ("CISCO-ZS-EXT-MIB", "czseGlobalPropagationMode")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): ciscoZsExtConfigGroupSup1 = ciscoZsExtConfigGroupSup1.setStatus('current') if mibBuilder.loadTexts: ciscoZsExtConfigGroupSup1.setDescription('A collection of objects for configuring global zoning policies.') mibBuilder.exportSymbols("CISCO-ZS-EXT-MIB", czseOperationMode=czseOperationMode, czseSessionEntry=czseSessionEntry, czseMergeControlTable=czseMergeControlTable, czseSessionOwnerType=czseSessionOwnerType, czseMergeControlEntry=czseMergeControlEntry, PYSNMP_MODULE_ID=ciscoZsExtMIB, czseOperationModeResult=czseOperationModeResult, czseCapabilityTable=czseCapabilityTable, ciscoZsExtMIBCompliance=ciscoZsExtMIBCompliance, ciscoZsExtMIB=ciscoZsExtMIB, czseModeEntry=czseModeEntry, czseModeTable=czseModeTable, czseSessionCntlResult=czseSessionCntlResult, czseCapabilityObject=czseCapabilityObject, czseSessionOwner=czseSessionOwner, czseCapabilityEntry=czseCapabilityEntry, ciscoZsExtMIBComplianceRev1=ciscoZsExtMIBComplianceRev1, ciscoZsExtMIBConform=ciscoZsExtMIBConform, czseStats=czseStats, ciscoZsExtMIBGroups=ciscoZsExtMIBGroups, czseSessionTable=czseSessionTable, ciscoZsExtConfigGroupSup1=ciscoZsExtConfigGroupSup1, ciscoZsExtMIBCompliances=ciscoZsExtMIBCompliances, czseGlobalPropagationMode=czseGlobalPropagationMode, ciscoZsExtConfigGroup=ciscoZsExtConfigGroup, czseSessionCntl=czseSessionCntl, czseReadFrom=czseReadFrom, czseMergeControlRestrict=czseMergeControlRestrict, czseConfiguration=czseConfiguration, ciscoZsExtMIBObjects=ciscoZsExtMIBObjects, CzseSessOwnerType=CzseSessOwnerType, czseGlobalDefaultZoneBehaviour=czseGlobalDefaultZoneBehaviour, ciscoZsExtMIBNotifs=ciscoZsExtMIBNotifs)
(integer, octet_string, object_identifier) = mibBuilder.importSymbols('ASN1', 'Integer', 'OctetString', 'ObjectIdentifier') (named_values,) = mibBuilder.importSymbols('ASN1-ENUMERATION', 'NamedValues') (value_size_constraint, value_range_constraint, constraints_intersection, single_value_constraint, constraints_union) = mibBuilder.importSymbols('ASN1-REFINEMENT', 'ValueSizeConstraint', 'ValueRangeConstraint', 'ConstraintsIntersection', 'SingleValueConstraint', 'ConstraintsUnion') (cisco_mgmt,) = mibBuilder.importSymbols('CISCO-SMI', 'ciscoMgmt') (vsan_index,) = mibBuilder.importSymbols('CISCO-VSAN-MIB', 'vsanIndex') (module_compliance, notification_group, object_group) = mibBuilder.importSymbols('SNMPv2-CONF', 'ModuleCompliance', 'NotificationGroup', 'ObjectGroup') (object_identity, ip_address, gauge32, module_identity, mib_scalar, mib_table, mib_table_row, mib_table_column, iso, notification_type, integer32, time_ticks, unsigned32, counter64, bits, counter32, mib_identifier) = mibBuilder.importSymbols('SNMPv2-SMI', 'ObjectIdentity', 'IpAddress', 'Gauge32', 'ModuleIdentity', 'MibScalar', 'MibTable', 'MibTableRow', 'MibTableColumn', 'iso', 'NotificationType', 'Integer32', 'TimeTicks', 'Unsigned32', 'Counter64', 'Bits', 'Counter32', 'MibIdentifier') (display_string, textual_convention) = mibBuilder.importSymbols('SNMPv2-TC', 'DisplayString', 'TextualConvention') cisco_zs_ext_mib = module_identity((1, 3, 6, 1, 4, 1, 9, 9, 427)) ciscoZsExtMIB.setRevisions(('2006-01-03 00:00', '2004-08-11 00:00')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): if mibBuilder.loadTexts: ciscoZsExtMIB.setRevisionsDescriptions(('Added objects czseGlobalDefaultZoneBehaviour and czseGlobalPropagationMode.', 'Initial version of this MIB.')) if mibBuilder.loadTexts: ciscoZsExtMIB.setLastUpdated('200601030000Z') if mibBuilder.loadTexts: ciscoZsExtMIB.setOrganization('Cisco Systems Inc.') if mibBuilder.loadTexts: ciscoZsExtMIB.setContactInfo(' Cisco Systems Customer Service Postal: 170 W Tasman Drive San Jose, CA 95134 USA Tel: +1 800 553 -NETS E-mail: cs-san@cisco.com') if mibBuilder.loadTexts: ciscoZsExtMIB.setDescription("The MIB module for the management of zoning within the framework of Cisco's Zoning Server (ZS) Archi- tecture which realizes the FC-GS4/SW3 requirements for Zone Server. This MIB is an extension to the CISCO-ZS-MIB, which is for managing zoning conforming to FC-GS3/SW2. The FC-GS4 specification is Fibre-Channel - Generic Services - 4 T11/ Project 1505-D/Rev 7.8. The SW3 specification is Fibre-Channel - Switch Fabric - 3 T11/Project 1508- D/Rev 6.6. GS4/SW3 allows zoning to operate in either basic or enhanced mode of operation. Basic mode is essentially GS3/SW2 compatible mode (as modelled by CISCO-ZS-MIB). Enhanced mode of operation provides additional capabilities. In enhanced mode of operation, all the configuration should be done within the scope of a session. The current 'Running Configuration' on the local device for zone server is called the 'effective' database. When the first configuration command on the zone server data is received, a snapshot of the current 'effective database' is taken on the local device. This snapshot is called the 'copy' database. An implicit session is started by the Zone Server on the local device and all subsequent SET operations take place in the context of this session. The 'copy' database is used for all further modifications in the session. There can be only one session active in the entire Fibre Channel fabric. The user who initiates the creation of this 'copy', is called the owner of session. When a session has been created on a device in the Fibre Channel fabric, if an attempt is made to start a session from any other device in the fabric, it results in error. Once the modifications to the 'copy' are done, a 'commit' operation can be done. The 'commit' done on the local device, results in the local 'effective database' being overwritten with the 'copy' and then the new local 'effective database' is distributed to all other devices in the Fibre Channel fabric. The successful 'commit' operation also results in destroying the 'copy' on the local device. The 'commit' can only be performed by the owner of the session. The 'copy' can optionally be destroyed without any distribution. This can be done by performing a 'clear' operation. Glossary of terms used in this MIB ---------------------------------- VSAN - Virtual Storage Area Network.") cisco_zs_ext_mib_notifs = mib_identifier((1, 3, 6, 1, 4, 1, 9, 9, 427, 0)) cisco_zs_ext_mib_objects = mib_identifier((1, 3, 6, 1, 4, 1, 9, 9, 427, 1)) cisco_zs_ext_mib_conform = mib_identifier((1, 3, 6, 1, 4, 1, 9, 9, 427, 2)) czse_configuration = mib_identifier((1, 3, 6, 1, 4, 1, 9, 9, 427, 1, 1)) czse_stats = mib_identifier((1, 3, 6, 1, 4, 1, 9, 9, 427, 1, 2)) class Czsesessownertype(TextualConvention, Integer32): description = 'Represents the type of owner of a GS4 session. other - other type of owner. cli - Command Line Interface (CLI) is the owner. gs4client - Fibre Channel GS4 services client. snmp - SNMP is the owner.' status = 'current' subtype_spec = Integer32.subtypeSpec + constraints_union(single_value_constraint(1, 2, 3, 4)) named_values = named_values(('other', 1), ('cli', 2), ('gs4client', 3), ('snmp', 4)) czse_capability_table = mib_table((1, 3, 6, 1, 4, 1, 9, 9, 427, 1, 1, 1)) if mibBuilder.loadTexts: czseCapabilityTable.setStatus('current') if mibBuilder.loadTexts: czseCapabilityTable.setDescription('This table lists the capabilities of the Zone Server on the local device. This information is maintained on a per VSAN basis.') czse_capability_entry = mib_table_row((1, 3, 6, 1, 4, 1, 9, 9, 427, 1, 1, 1, 1)).setIndexNames((0, 'CISCO-VSAN-MIB', 'vsanIndex')) if mibBuilder.loadTexts: czseCapabilityEntry.setStatus('current') if mibBuilder.loadTexts: czseCapabilityEntry.setDescription('An entry represents the capability of the Zone Server on the local device on a VSAN.') czse_capability_object = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 427, 1, 1, 1, 1, 1), bits().clone(namedValues=named_values(('enhancedMode', 0), ('zsetDb', 1), ('dirAct', 2), ('hardZoning', 3)))).setMaxAccess('readonly') if mibBuilder.loadTexts: czseCapabilityObject.setReference('Fibre-Channel - Switch fabric - 3 T11/ Project 1505-D/Rev 6.6 Section 6.1.22.4.4') if mibBuilder.loadTexts: czseCapabilityObject.setStatus('current') if mibBuilder.loadTexts: czseCapabilityObject.setDescription("This bitmap represents the capability of the local Zone Server on this VSAN. If 'enhancedMode(0)' bit is set, the local Zone Server is capable of supporting enhanced Zoning mode of operation. If this bit is reset, it does not have this capability. If 'zsetDb(1)' bit is set, the local Zone Server supports maintaining of zoneset database. If this bit is reset, the local Zone Server does not allow maintaining of zoneset database. If 'dirAct(2)' bit is set, the local Zone Server supports direct activation command. If this bit is reset, the local Zone Server does not support this. If 'hardZoning(3)' bit is set, the local Zone Server supports hard zoning. If this bit is reset, the local Zone Server does not support hard zoning.") czse_mode_table = mib_table((1, 3, 6, 1, 4, 1, 9, 9, 427, 1, 1, 2)) if mibBuilder.loadTexts: czseModeTable.setStatus('current') if mibBuilder.loadTexts: czseModeTable.setDescription('A table containing information on the mode of operation of the zone server on all VSANs on the local device.') czse_mode_entry = mib_table_row((1, 3, 6, 1, 4, 1, 9, 9, 427, 1, 1, 2, 1)).setIndexNames((0, 'CISCO-VSAN-MIB', 'vsanIndex')) if mibBuilder.loadTexts: czseModeEntry.setStatus('current') if mibBuilder.loadTexts: czseModeEntry.setDescription('An entry represents the mode of operation of the local zone server on a VSAN. The mode can be modified on a VSAN and the outcome of the operation obtained.') czse_operation_mode = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 427, 1, 1, 2, 1, 1), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('basic', 1), ('enhanced', 2))).clone('basic')).setMaxAccess('readwrite') if mibBuilder.loadTexts: czseOperationMode.setReference('Fibre-Channel - Generic Services - 4 T11/ Project 1505-D/Rev 7.8 Section 6.4.7. Fibre-Channel - Switch fabric - 3 T11/ Project 1505-D/Rev 6.6 Section 10.6') if mibBuilder.loadTexts: czseOperationMode.setStatus('current') if mibBuilder.loadTexts: czseOperationMode.setDescription("This object when set to 'basic(1)', results in the zone server operating in the basic mode as defined by FC-GS4 standards. This object when set to 'enhanced(2)', results in the zone server operating in the enhanced mode as defined by FC-GS4 standards. The local zone server can move to the enhanced mode of operation only if all devices in the Fibre Channel fabric are capable of working in enhanced mode. Otherwise, the set operation trying to set this object to 'enhanced(2)' will fail.") czse_operation_mode_result = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 427, 1, 1, 2, 1, 2), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('success', 1), ('failure', 2), ('inProgress', 3)))).setMaxAccess('readonly') if mibBuilder.loadTexts: czseOperationModeResult.setStatus('current') if mibBuilder.loadTexts: czseOperationModeResult.setDescription('The outcome of setting the mode of operation of the local Zone Server on this VSAN.') czse_read_from = mib_scalar((1, 3, 6, 1, 4, 1, 9, 9, 427, 1, 1, 3), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('effectiveDB', 1), ('copyDB', 2))).clone('effectiveDB')).setMaxAccess('readwrite') if mibBuilder.loadTexts: czseReadFrom.setStatus('current') if mibBuilder.loadTexts: czseReadFrom.setDescription("This object specifies whether the management station wishes to read from the 'effective database' or from the 'copy' database.") czse_session_table = mib_table((1, 3, 6, 1, 4, 1, 9, 9, 427, 1, 1, 4)) if mibBuilder.loadTexts: czseSessionTable.setStatus('current') if mibBuilder.loadTexts: czseSessionTable.setDescription("A table containing information on sessions on the local device on all VSANs. Operations are permitted on this table only when the zone server is running in 'enhanced' mode.") czse_session_entry = mib_table_row((1, 3, 6, 1, 4, 1, 9, 9, 427, 1, 1, 4, 1)).setIndexNames((0, 'CISCO-VSAN-MIB', 'vsanIndex')) if mibBuilder.loadTexts: czseSessionEntry.setStatus('current') if mibBuilder.loadTexts: czseSessionEntry.setDescription('An entry contains information on the owner of a session on a VSAN. It also assists in performing commit/clear operations on the session.') czse_session_owner_type = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 427, 1, 1, 4, 1, 1), czse_sess_owner_type()).setMaxAccess('readonly') if mibBuilder.loadTexts: czseSessionOwnerType.setStatus('current') if mibBuilder.loadTexts: czseSessionOwnerType.setDescription('This object specifies the owner type for this session.') czse_session_owner = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 427, 1, 1, 4, 1, 2), octet_string().subtype(subtypeSpec=value_size_constraint(0, 64))).setMaxAccess('readonly') if mibBuilder.loadTexts: czseSessionOwner.setStatus('current') if mibBuilder.loadTexts: czseSessionOwner.setDescription("This object specifies the owner for this session. If the value of the corresponding instance of czseSessionOwnerType object is 'cli', this object will contain the user name of the CLI (Command Line Interface) user, who is the owner of the session on this VSAN. If the value of the corresponding instance of czseSessionOwnerType is 'gs4client', this object will contain the FCID of the GS4 management station, which is the owner of the session on this VSAN. If the value of the corresponding instance of czseSessionOwnerType is 'snmp', this object will contain the IP address of the management station, which is the owner of the session on this VSAN.") czse_session_cntl = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 427, 1, 1, 4, 1, 3), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('commitChanges', 1), ('cleanup', 2), ('noop', 3)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: czseSessionCntl.setStatus('current') if mibBuilder.loadTexts: czseSessionCntl.setDescription("This object assists in committing or clearing the contents of the 'copy' database on this session. No action is taken if this object is set to 'noop(3)'. The value of this object when read is always 'noop(3)'. The above operation can only be performed by the owner of the session.") czse_session_cntl_result = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 427, 1, 1, 4, 1, 4), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('commitSuccess', 1), ('commitFailure', 2), ('inProgress', 3)))).setMaxAccess('readonly') if mibBuilder.loadTexts: czseSessionCntlResult.setStatus('current') if mibBuilder.loadTexts: czseSessionCntlResult.setDescription("This object indicates the outcome of setting the corresponding instance of czseSessionCntl object to 'commitChanges(1)'.") czse_merge_control_table = mib_table((1, 3, 6, 1, 4, 1, 9, 9, 427, 1, 1, 5)) if mibBuilder.loadTexts: czseMergeControlTable.setStatus('current') if mibBuilder.loadTexts: czseMergeControlTable.setDescription("A table containing information on zone merge control policy on all VSANs in the entire fabric. Operations on this table are permitted only when the zone server is running in 'enhanced' mode.") czse_merge_control_entry = mib_table_row((1, 3, 6, 1, 4, 1, 9, 9, 427, 1, 1, 5, 1)).setIndexNames((0, 'CISCO-VSAN-MIB', 'vsanIndex')) if mibBuilder.loadTexts: czseMergeControlEntry.setReference('Fibre-Channel - Switch fabric - 3 T11/ Project 1505-D/Rev 6.6 Section 10.5.2.2') if mibBuilder.loadTexts: czseMergeControlEntry.setStatus('current') if mibBuilder.loadTexts: czseMergeControlEntry.setDescription('An entry contains information on the Merge Control policy on a VSAN. The policy can be modified on a per VSAN basis by making use of czseMergeContolRestrict object.') czse_merge_control_restrict = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 427, 1, 1, 5, 1, 1), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('allow', 1), ('restrict', 2))).clone('allow')).setMaxAccess('readwrite') if mibBuilder.loadTexts: czseMergeControlRestrict.setStatus('current') if mibBuilder.loadTexts: czseMergeControlRestrict.setDescription("This object controls the zone merge behavior. If this object is set to 'allow', then the merge takes place according to the merge rules. If this object is set to 'restrict', then if the merging databases are not exactly identical, the Inter-Switch Link (ISL) between the devices is isolated.") czse_global_default_zone_behaviour = mib_scalar((1, 3, 6, 1, 4, 1, 9, 9, 427, 1, 1, 6), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('permit', 1), ('deny', 2))).clone('deny')).setMaxAccess('readwrite') if mibBuilder.loadTexts: czseGlobalDefaultZoneBehaviour.setStatus('current') if mibBuilder.loadTexts: czseGlobalDefaultZoneBehaviour.setDescription("This object represents the initial value for default zone behaviour on a VSAN when it is created. If a VSAN were to be deleted and re-created again, the default zone behaviour will be set to the value specified for this object. The semantics of setting this object to 'permit' or 'deny' are described in the description for zoneDefaultZoneBehaviour object in CISCO-ZS-MIB. After a VSAN has been created, if the value for default zone behaviour for that VSAN has to be changed, the zoneDefaultZoneBehaviour object in CISCO-ZS-MIB has to be used.") czse_global_propagation_mode = mib_scalar((1, 3, 6, 1, 4, 1, 9, 9, 427, 1, 1, 7), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('fullZoneset', 1), ('activeZoneset', 2))).clone('activeZoneset')).setMaxAccess('readwrite') if mibBuilder.loadTexts: czseGlobalPropagationMode.setStatus('current') if mibBuilder.loadTexts: czseGlobalPropagationMode.setDescription("This object represents the initial value for zone set propagation mode on a VSAN when it is created. If a VSAN were to be deleted and re-created again, the zone set propagation mode will be set to the value specified for this object. The semantics of setting this object to 'fullZoneset' or 'activeZoneset' are described in the description for zoneSetPropagationMode object in CISCO-ZS-MIB. After a VSAN has been created, if the value for zone set propagation mode has to be changed for that particular VSAN, the zoneSetPropagationMode object in CISCO-ZS-MIB has to be used.") cisco_zs_ext_mib_compliances = mib_identifier((1, 3, 6, 1, 4, 1, 9, 9, 427, 2, 1)) cisco_zs_ext_mib_groups = mib_identifier((1, 3, 6, 1, 4, 1, 9, 9, 427, 2, 2)) cisco_zs_ext_mib_compliance = module_compliance((1, 3, 6, 1, 4, 1, 9, 9, 427, 2, 1, 1)).setObjects(('CISCO-ZS-EXT-MIB', 'ciscoZsExtConfigGroup')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): cisco_zs_ext_mib_compliance = ciscoZsExtMIBCompliance.setStatus('deprecated') if mibBuilder.loadTexts: ciscoZsExtMIBCompliance.setDescription('The compliance statement for entities which implement the Zone Server conforming to FC-GS4/SW3.') cisco_zs_ext_mib_compliance_rev1 = module_compliance((1, 3, 6, 1, 4, 1, 9, 9, 427, 2, 1, 2)).setObjects(('CISCO-ZS-EXT-MIB', 'ciscoZsExtConfigGroup'), ('CISCO-ZS-EXT-MIB', 'ciscoZsExtConfigGroupSup1')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): cisco_zs_ext_mib_compliance_rev1 = ciscoZsExtMIBComplianceRev1.setStatus('current') if mibBuilder.loadTexts: ciscoZsExtMIBComplianceRev1.setDescription('The compliance statement for entities which implement the Zone Server conforming to FC-GS4/SW3.') cisco_zs_ext_config_group = object_group((1, 3, 6, 1, 4, 1, 9, 9, 427, 2, 2, 1)).setObjects(('CISCO-ZS-EXT-MIB', 'czseCapabilityObject'), ('CISCO-ZS-EXT-MIB', 'czseOperationMode'), ('CISCO-ZS-EXT-MIB', 'czseOperationModeResult'), ('CISCO-ZS-EXT-MIB', 'czseReadFrom'), ('CISCO-ZS-EXT-MIB', 'czseSessionOwnerType'), ('CISCO-ZS-EXT-MIB', 'czseSessionOwner'), ('CISCO-ZS-EXT-MIB', 'czseSessionCntl'), ('CISCO-ZS-EXT-MIB', 'czseSessionCntlResult'), ('CISCO-ZS-EXT-MIB', 'czseMergeControlRestrict')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): cisco_zs_ext_config_group = ciscoZsExtConfigGroup.setStatus('current') if mibBuilder.loadTexts: ciscoZsExtConfigGroup.setDescription('A collection of object(s) for configuring and displaying Zone Server conforming with FC-GS4/SW3.') cisco_zs_ext_config_group_sup1 = object_group((1, 3, 6, 1, 4, 1, 9, 9, 427, 2, 2, 2)).setObjects(('CISCO-ZS-EXT-MIB', 'czseGlobalDefaultZoneBehaviour'), ('CISCO-ZS-EXT-MIB', 'czseGlobalPropagationMode')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): cisco_zs_ext_config_group_sup1 = ciscoZsExtConfigGroupSup1.setStatus('current') if mibBuilder.loadTexts: ciscoZsExtConfigGroupSup1.setDescription('A collection of objects for configuring global zoning policies.') mibBuilder.exportSymbols('CISCO-ZS-EXT-MIB', czseOperationMode=czseOperationMode, czseSessionEntry=czseSessionEntry, czseMergeControlTable=czseMergeControlTable, czseSessionOwnerType=czseSessionOwnerType, czseMergeControlEntry=czseMergeControlEntry, PYSNMP_MODULE_ID=ciscoZsExtMIB, czseOperationModeResult=czseOperationModeResult, czseCapabilityTable=czseCapabilityTable, ciscoZsExtMIBCompliance=ciscoZsExtMIBCompliance, ciscoZsExtMIB=ciscoZsExtMIB, czseModeEntry=czseModeEntry, czseModeTable=czseModeTable, czseSessionCntlResult=czseSessionCntlResult, czseCapabilityObject=czseCapabilityObject, czseSessionOwner=czseSessionOwner, czseCapabilityEntry=czseCapabilityEntry, ciscoZsExtMIBComplianceRev1=ciscoZsExtMIBComplianceRev1, ciscoZsExtMIBConform=ciscoZsExtMIBConform, czseStats=czseStats, ciscoZsExtMIBGroups=ciscoZsExtMIBGroups, czseSessionTable=czseSessionTable, ciscoZsExtConfigGroupSup1=ciscoZsExtConfigGroupSup1, ciscoZsExtMIBCompliances=ciscoZsExtMIBCompliances, czseGlobalPropagationMode=czseGlobalPropagationMode, ciscoZsExtConfigGroup=ciscoZsExtConfigGroup, czseSessionCntl=czseSessionCntl, czseReadFrom=czseReadFrom, czseMergeControlRestrict=czseMergeControlRestrict, czseConfiguration=czseConfiguration, ciscoZsExtMIBObjects=ciscoZsExtMIBObjects, CzseSessOwnerType=CzseSessOwnerType, czseGlobalDefaultZoneBehaviour=czseGlobalDefaultZoneBehaviour, ciscoZsExtMIBNotifs=ciscoZsExtMIBNotifs)
class Solution: def minCostClimbingStairs(self, cost: List[int]) -> int: n = len(cost) dp = [cost[0], cost[1], 0] for i in range(2, n): dp[i % 3] = cost[i] + min(dp[(i - 1) % 3], dp[(i - 2) % 3]) return min(dp[(n - 1) % 3], dp[(n - 2) % 3])
class Solution: def min_cost_climbing_stairs(self, cost: List[int]) -> int: n = len(cost) dp = [cost[0], cost[1], 0] for i in range(2, n): dp[i % 3] = cost[i] + min(dp[(i - 1) % 3], dp[(i - 2) % 3]) return min(dp[(n - 1) % 3], dp[(n - 2) % 3])
# Copyright (c) 2018 PrimeVR # All rights Reserved ############################################################################### # print helpers ############################################################################### CHILL_WHITE = '\x1b[0;37;40m' CHILL_PURPLE = '\x1b[0;35;40m' CHILL_LIGHT_BLUE = '\x1b[0;36;40m' CHILL_BLUE = '\x1b[0;34;40m' MEGA_WHITE = '\x1b[1;37;40m' LIGHT_BLUE = '\x1b[1;36;40m' BLUE = '\x1b[1;34;40m' GREEN = '\x1b[1;32;40m' CHILL_GREEN = '\x1b[0;32;40m' RED = '\x1b[1;31;40m' YELLOW = '\x1b[1;33;40m' CHILL_YELLOW = '\x1b[0;33;40m' FANCY_BLUE = '\x1b[1;37;44m' ANNOYING = '\x1b[5;31;44m' ENDC = '\x1b[0m' def print_red(string): print(RED + string + ENDC) def print_green(string): print(GREEN + string + ENDC) def print_chill_green(string): print(CHILL_GREEN + string + ENDC) def print_light_blue(string): print(LIGHT_BLUE + string + ENDC) def print_fancy_blue(string): print(FANCY_BLUE + string + ENDC) def print_blue(string): print(BLUE + string + ENDC) def print_yellow(string): print(YELLOW + string + ENDC) def print_chill_yellow(string): print(CHILL_YELLOW + string + ENDC) def print_chill_white(string): print(CHILL_WHITE + string + ENDC) def print_chill_purple(string): print(CHILL_PURPLE + string + ENDC) def print_chill_light_blue(string): print(CHILL_LIGHT_BLUE + string + ENDC) def print_chill_blue(string): print(CHILL_BLUE + string + ENDC) def print_mega_white(string): print(MEGA_WHITE + string + ENDC) def print_annoying(string): print(ANNOYING + string + ENDC) ################################################################## def red_str(string): return RED + string + ENDC def chill_green_str(string): return CHILL_GREEN + string + ENDC def light_blue_str(string): return LIGHT_BLUE + string + ENDC def fancy_blue_str(string): return FANCY_BLUE + string + ENDC def blue_str(string): return BLUE + string + ENDC def yellow_str(string): return YELLOW + string + ENDC def chill_yellow_str(string): return CHILL_YELLOW + string + ENDC def chill_white_str(string): return CHILL_WHITE + string + ENDC def chill_purple_str(string): return CHILL_PURPLE + string + ENDC def chill_light_blue_str(string): return CHILL_LIGHT_BLUE + string + ENDC def chill_blue_str(string): return CHILL_BLUE + string + ENDC def mega_white_str(string): return MEGA_WHITE + string + ENDC def annoying_str(string): return ANNOYING + string + ENDC
chill_white = '\x1b[0;37;40m' chill_purple = '\x1b[0;35;40m' chill_light_blue = '\x1b[0;36;40m' chill_blue = '\x1b[0;34;40m' mega_white = '\x1b[1;37;40m' light_blue = '\x1b[1;36;40m' blue = '\x1b[1;34;40m' green = '\x1b[1;32;40m' chill_green = '\x1b[0;32;40m' red = '\x1b[1;31;40m' yellow = '\x1b[1;33;40m' chill_yellow = '\x1b[0;33;40m' fancy_blue = '\x1b[1;37;44m' annoying = '\x1b[5;31;44m' endc = '\x1b[0m' def print_red(string): print(RED + string + ENDC) def print_green(string): print(GREEN + string + ENDC) def print_chill_green(string): print(CHILL_GREEN + string + ENDC) def print_light_blue(string): print(LIGHT_BLUE + string + ENDC) def print_fancy_blue(string): print(FANCY_BLUE + string + ENDC) def print_blue(string): print(BLUE + string + ENDC) def print_yellow(string): print(YELLOW + string + ENDC) def print_chill_yellow(string): print(CHILL_YELLOW + string + ENDC) def print_chill_white(string): print(CHILL_WHITE + string + ENDC) def print_chill_purple(string): print(CHILL_PURPLE + string + ENDC) def print_chill_light_blue(string): print(CHILL_LIGHT_BLUE + string + ENDC) def print_chill_blue(string): print(CHILL_BLUE + string + ENDC) def print_mega_white(string): print(MEGA_WHITE + string + ENDC) def print_annoying(string): print(ANNOYING + string + ENDC) def red_str(string): return RED + string + ENDC def chill_green_str(string): return CHILL_GREEN + string + ENDC def light_blue_str(string): return LIGHT_BLUE + string + ENDC def fancy_blue_str(string): return FANCY_BLUE + string + ENDC def blue_str(string): return BLUE + string + ENDC def yellow_str(string): return YELLOW + string + ENDC def chill_yellow_str(string): return CHILL_YELLOW + string + ENDC def chill_white_str(string): return CHILL_WHITE + string + ENDC def chill_purple_str(string): return CHILL_PURPLE + string + ENDC def chill_light_blue_str(string): return CHILL_LIGHT_BLUE + string + ENDC def chill_blue_str(string): return CHILL_BLUE + string + ENDC def mega_white_str(string): return MEGA_WHITE + string + ENDC def annoying_str(string): return ANNOYING + string + ENDC
def jonSnowParents(dad, mom): if dad == 'Rhaegar Targaryen' and mom == 'Lyanna Stark': return 'Jon Snow you deserve the throne' return 'Jon Snow, you know nothing'
def jon_snow_parents(dad, mom): if dad == 'Rhaegar Targaryen' and mom == 'Lyanna Stark': return 'Jon Snow you deserve the throne' return 'Jon Snow, you know nothing'
if node.os != 'ubuntu' and node.os != 'raspbian': raise Exception('{} {} is not supported by this bundle'.format(node.os, node.os_version)) pkg_apt = {} files = {} actions = { } if node.metadata.get('grub', {}).get('enabled', False): pkg_apt['grub2-common'] = {} actions['update-grub'] = { 'command': 'update-grub', 'triggered': True, 'cascade_skip': False, } name = '' if node.os == 'ubuntu': name = 'Ubuntu' if node.os == 'debian': name = 'Debian' if node.os == 'raspbian': name = 'Raspbian' if len(name) == 0: raise Exception('can not find name for grub files') files['/etc/default/grub'] = { 'source': 'default-grub', 'content_type': 'mako', 'mode': '0644', 'owner': 'root', 'group': 'root', 'context': { 'name': name, 'default': node.metadata.get('grub', {}).get('default', ''), 'cmd_args': node.metadata.get('grub', {}).get('cmd_args', {}), 'serial': node.metadata.get('grub', {}).get('serial', False), }, 'triggers': ['action:update-grub'], 'needs': ['pkg_apt:grub2-common'], }
if node.os != 'ubuntu' and node.os != 'raspbian': raise exception('{} {} is not supported by this bundle'.format(node.os, node.os_version)) pkg_apt = {} files = {} actions = {} if node.metadata.get('grub', {}).get('enabled', False): pkg_apt['grub2-common'] = {} actions['update-grub'] = {'command': 'update-grub', 'triggered': True, 'cascade_skip': False} name = '' if node.os == 'ubuntu': name = 'Ubuntu' if node.os == 'debian': name = 'Debian' if node.os == 'raspbian': name = 'Raspbian' if len(name) == 0: raise exception('can not find name for grub files') files['/etc/default/grub'] = {'source': 'default-grub', 'content_type': 'mako', 'mode': '0644', 'owner': 'root', 'group': 'root', 'context': {'name': name, 'default': node.metadata.get('grub', {}).get('default', ''), 'cmd_args': node.metadata.get('grub', {}).get('cmd_args', {}), 'serial': node.metadata.get('grub', {}).get('serial', False)}, 'triggers': ['action:update-grub'], 'needs': ['pkg_apt:grub2-common']}
def myif(test, trueval, falseval): if test: return trueval else: return falseval myif(True, "hello", "goodbye")
def myif(test, trueval, falseval): if test: return trueval else: return falseval myif(True, 'hello', 'goodbye')
def apply_async(func, args, *, callback): result = func(*args) callback(result) def print_result(result): print('Got:', result) def add(x, y): return (x + y) apply_async(add, (2, 3), callback=print_result) apply_async(add, ("hello", "world"), callback=print_result) def make_handler(): sequence = 0 def handler(result): nonlocal sequence sequence += 1 print('[{}] Got: {}'.format(sequence, result)) return handler handler = make_handler() apply_async(add, (2, 3), callback=handler) apply_async(add, ("hello", "world"), callback=handler)
def apply_async(func, args, *, callback): result = func(*args) callback(result) def print_result(result): print('Got:', result) def add(x, y): return x + y apply_async(add, (2, 3), callback=print_result) apply_async(add, ('hello', 'world'), callback=print_result) def make_handler(): sequence = 0 def handler(result): nonlocal sequence sequence += 1 print('[{}] Got: {}'.format(sequence, result)) return handler handler = make_handler() apply_async(add, (2, 3), callback=handler) apply_async(add, ('hello', 'world'), callback=handler)
class Solution: def __init__(self): self.dic_no_circle = {} def rob_no_circle(self, nums: List[int], start, end) -> int: n = len(nums) if (start,end) in self.dic_no_circle: return self.dic_no_circle[start,end] if n == 0: return 0 if n == 1: self.dic_no_circle[start,end] = nums[0] return nums[0] if n == 2: self.dic_no_circle[start,end] = max(nums[0], nums[1]) return self.dic_no_circle[start,end] ans = max(self.rob_no_circle(nums[:-2], start, end-2)+nums[-1],self.rob_no_circle(nums[:-1], start, end-1)) self.dic_no_circle[start,end] = ans return ans def rob(self, nums: List[int]) -> int: n = len(nums) if n <= 2: return self.rob_no_circle(nums, 0, n) if n == 3: return max(nums[0], nums[1], nums[2]) # if the robber robs at the last (n-1 th) house, you cannot rob from index 0 and n-2. profit = self.rob_no_circle(nums[1:-2], 1, n-2) + nums[-1] # if the robber robs as the first (0 th) house, you cannot rob from index 1 and n-1. profit = max(profit, self.rob_no_circle(nums[2:-1], 2, n-1) + nums[0]) # what if we choose neither index 0 nor index n-1? profit = max(profit, self.rob_no_circle(nums[1:-1], 1, n-1)) return profit
class Solution: def __init__(self): self.dic_no_circle = {} def rob_no_circle(self, nums: List[int], start, end) -> int: n = len(nums) if (start, end) in self.dic_no_circle: return self.dic_no_circle[start, end] if n == 0: return 0 if n == 1: self.dic_no_circle[start, end] = nums[0] return nums[0] if n == 2: self.dic_no_circle[start, end] = max(nums[0], nums[1]) return self.dic_no_circle[start, end] ans = max(self.rob_no_circle(nums[:-2], start, end - 2) + nums[-1], self.rob_no_circle(nums[:-1], start, end - 1)) self.dic_no_circle[start, end] = ans return ans def rob(self, nums: List[int]) -> int: n = len(nums) if n <= 2: return self.rob_no_circle(nums, 0, n) if n == 3: return max(nums[0], nums[1], nums[2]) profit = self.rob_no_circle(nums[1:-2], 1, n - 2) + nums[-1] profit = max(profit, self.rob_no_circle(nums[2:-1], 2, n - 1) + nums[0]) profit = max(profit, self.rob_no_circle(nums[1:-1], 1, n - 1)) return profit
# t = True # count= 0 # sum = 0 # while t==True: # x = int(input()) # if x >=0: # count+=1 # sum+=x # if x<0: # t = False # print(sum) # print(f'{sum/count:.2f}') t = True count= 0 sum = 0 while t==True: x = int(input()) if x<=0: t = False else: count+=1 sum+=x print(sum) print(f'{sum/count:.2f}')
t = True count = 0 sum = 0 while t == True: x = int(input()) if x <= 0: t = False else: count += 1 sum += x print(sum) print(f'{sum / count:.2f}')
class Files(object): def __init__(self): return @staticmethod def save_output(filename, content): try: with open('./' + filename, 'w') as out_file: out_file.write('\n'.join(content) + '\n') out_file.close() except IOError as err: print('Error writing file')
class Files(object): def __init__(self): return @staticmethod def save_output(filename, content): try: with open('./' + filename, 'w') as out_file: out_file.write('\n'.join(content) + '\n') out_file.close() except IOError as err: print('Error writing file')
#!/usr/bin/env python3 '''This is Example module''' print("useless script")
"""This is Example module""" print('useless script')
class Node: def __init__(self, x): self.val = x self.next = None def __str__(self): string = "[" node = self while node: string += "{} ->".format(node.val) node = node.next string += "None]" return string def get_nodes(values): next_node = None for value in values[::-1]: node = Node(value) node.next = next_node next_node = node return next_node def get_list(head): node = head nodes = list() while node: nodes.append(node.val) node = node.next return nodes def partition(llist, k): head = llist prev, curr = head, head.next while curr: if curr.val < k: prev.next = curr.next curr.next = head head = curr curr = prev.next else: prev = curr curr = curr.next return head # Tests assert get_list(partition(get_nodes([5, 1, 8, 0, 3]), 3)) == [0, 1, 5, 8, 3]
class Node: def __init__(self, x): self.val = x self.next = None def __str__(self): string = '[' node = self while node: string += '{} ->'.format(node.val) node = node.next string += 'None]' return string def get_nodes(values): next_node = None for value in values[::-1]: node = node(value) node.next = next_node next_node = node return next_node def get_list(head): node = head nodes = list() while node: nodes.append(node.val) node = node.next return nodes def partition(llist, k): head = llist (prev, curr) = (head, head.next) while curr: if curr.val < k: prev.next = curr.next curr.next = head head = curr curr = prev.next else: prev = curr curr = curr.next return head assert get_list(partition(get_nodes([5, 1, 8, 0, 3]), 3)) == [0, 1, 5, 8, 3]
common_urls_http = [ 'http://www.youtube.com' 'http://www.facebook.com' 'http://www.baidu.com' 'http://www.yahoo.com' 'http://www.amazon.com' 'http://www.wikipedia.org' 'http://www.qq.com' 'http://www.google.co.in' 'http://www.twitter.com' 'http://www.live.com' 'http://www.taobao.com' 'http://www.bing.com' 'http://www.instagram.com' 'http://www.weibo.com' 'http://www.sina.com.cn' 'http://www.linkedin.com' 'http://www.yahoo.co.jp' 'http://www.msn.com' 'http://www.vk.com' 'http://www.google.de' 'http://www.yandex.ru' 'http://www.hao123.com' 'http://www.google.co.uk' 'http://www.reddit.com' 'http://www.ebay.com' 'http://www.google.fr' 'http://www.t.co' 'http://www.tmall.com' 'http://www.google.com.br' 'http://www.360.cn' 'http://www.sohu.com' 'http://www.amazon.co.jp' 'http://www.pinterest.com' 'http://www.netflix.com' 'http://www.google.it' 'http://www.google.ru' 'http://www.microsoft.com' 'http://www.google.es' 'http://www.wordpress.com' 'http://www.gmw.cn' 'http://www.tumblr.com' 'http://www.paypal.com' 'http://www.blogspot.com' 'http://www.imgur.com' 'http://www.stackoverflow.com' 'http://www.aliexpress.com' 'http://www.naver.com' 'http://www.ok.ru' 'http://www.apple.com' 'http://www.github.com' 'http://www.chinadaily.com.cn' 'http://www.imdb.com' 'http://www.google.co.kr' 'http://www.fc2.com' 'http://www.jd.com' 'http://www.blogger.com' 'http://www.163.com' 'http://www.google.ca' 'http://www.whatsapp.com' 'http://www.amazon.in' 'http://www.office.com' 'http://www.tianya.cn' 'http://www.google.co.id' 'http://www.youku.com' 'http://www.rakuten.co.jp' 'http://www.craigslist.org' 'http://www.amazon.de' 'http://www.nicovideo.jp' 'http://www.google.pl' 'http://www.soso.com' 'http://www.bilibili.com' 'http://www.dropbox.com' 'http://www.xinhuanet.com' 'http://www.outbrain.com' 'http://www.pixnet.net' 'http://www.alibaba.com' 'http://www.alipay.com' 'http://www.microsoftonline.com' 'http://www.booking.com' 'http://www.googleusercontent.com' 'http://www.google.com.au' 'http://www.popads.net' 'http://www.cntv.cn' 'http://www.zhihu.com' 'http://www.amazon.co.uk' 'http://www.diply.com' 'http://www.coccoc.com' 'http://www.cnn.com' 'http://www.bbc.co.uk' 'http://www.twitch.tv' 'http://www.wikia.com' 'http://www.google.co.th' 'http://www.go.com' 'http://www.google.com.ph' 'http://www.doubleclick.net' 'http://www.onet.pl' 'http://www.googleadservices.com' 'http://www.accuweather.com' 'http://www.googleweblight.com' 'http://www.answers.yahoo.com' 'http://www.sans.org' ] common_urls_https = [ 'https://www.youtube.com', 'https://www.facebook.com', 'https://www.baidu.com', 'https://www.yahoo.com', 'https://www.amazon.com', 'https://www.wikipedia.org', 'https://www.qq.com', 'https://www.google.co.in', 'https://www.twitter.com', 'https://www.live.com', 'https://www.taobao.com', 'https://www.bing.com', 'https://www.instagram.com', 'https://www.weibo.com', 'https://www.sina.com.cn', 'https://www.linkedin.com', 'https://www.yahoo.co.jp', 'https://www.msn.com', 'https://www.vk.com', 'https://www.google.de', 'https://www.yandex.ru', 'https://www.hao123.com', 'https://www.google.co.uk', 'https://www.reddit.com', 'https://www.ebay.com', 'https://www.google.fr', 'https://www.t.com', 'https://www.tmall.com', 'https://www.google.com.br', 'https://www.360.cn', 'https://www.sohu.com', 'https://www.amazon.co.jp', 'https://www.pinterest.com', 'https://www.netflix.com', 'https://www.google.it', 'https://www.google.ru', 'https://www.microsoft.com', 'https://www.google.es', 'https://www.wordpress.com', 'https://www.gmw.cn', 'https://www.tumblr.com', 'https://www.paypal.com', 'https://www.blogspot.com', 'https://www.imgur.com', 'https://www.stackoverflow.com', 'https://www.aliexpress.com', 'https://www.naver.com', 'https://www.ok.ru', 'https://www.apple.com', 'https://www.github.com', 'https://www.chinadaily.com.cn', 'https://www.imdb.com', 'https://www.google.co.kr', 'https://www.fc2.com', 'https://www.jd.com', 'https://www.blogger.com', 'https://www.163.com', 'https://www.google.ca', 'https://www.whatsapp.com', 'https://www.amazon.in', 'https://www.office.com', 'https://www.tianya.cn', 'https://www.google.co.id', 'https://www.youku.com', 'https://www.rakuten.co.jp', 'https://www.craigslist.org', 'https://www.amazon.de', 'https://www.nicovideo.jp', 'https://www.google.pl', 'https://www.soso.com', 'https://www.bilibili.com', 'https://www.dropbox.com', 'https://www.xinhuanet.com', 'https://www.outbrain.com', 'https://www.pixnet.net', 'https://www.alibaba.com', 'https://www.alipay.com', 'https://www.microsoftonline.com', 'https://www.booking.com', 'https://www.googleusercontent.com', 'https://www.google.com.au', 'https://www.popads.net', 'https://www.cntv.cn', 'https://www.zhihu.com', 'https://www.amazon.co.uk', 'https://www.diply.com', 'https://www.coccoc.com', 'https://www.cnn.com', 'https://www.bbc.co.uk', 'https://www.twitch.tv', 'https://www.wikia.com', 'https://www.google.co.th', 'https://www.go.com', 'https://www.google.com.ph', 'https://www.doubleclick.net', 'https://www.onet.pl', 'https://www.googleadservices.com', 'https://www.accuweather.com', 'https://www.googleweblight.com', 'https://www.answers.yahoo.com', 'https://www.sans.org', 'https://support.google.com', 'https://www.adobe.com', 'https://www.gulf-times.com', ]
common_urls_http = ['http://www.youtube.comhttp://www.facebook.comhttp://www.baidu.comhttp://www.yahoo.comhttp://www.amazon.comhttp://www.wikipedia.orghttp://www.qq.comhttp://www.google.co.inhttp://www.twitter.comhttp://www.live.comhttp://www.taobao.comhttp://www.bing.comhttp://www.instagram.comhttp://www.weibo.comhttp://www.sina.com.cnhttp://www.linkedin.comhttp://www.yahoo.co.jphttp://www.msn.comhttp://www.vk.comhttp://www.google.dehttp://www.yandex.ruhttp://www.hao123.comhttp://www.google.co.ukhttp://www.reddit.comhttp://www.ebay.comhttp://www.google.frhttp://www.t.cohttp://www.tmall.comhttp://www.google.com.brhttp://www.360.cnhttp://www.sohu.comhttp://www.amazon.co.jphttp://www.pinterest.comhttp://www.netflix.comhttp://www.google.ithttp://www.google.ruhttp://www.microsoft.comhttp://www.google.eshttp://www.wordpress.comhttp://www.gmw.cnhttp://www.tumblr.comhttp://www.paypal.comhttp://www.blogspot.comhttp://www.imgur.comhttp://www.stackoverflow.comhttp://www.aliexpress.comhttp://www.naver.comhttp://www.ok.ruhttp://www.apple.comhttp://www.github.comhttp://www.chinadaily.com.cnhttp://www.imdb.comhttp://www.google.co.krhttp://www.fc2.comhttp://www.jd.comhttp://www.blogger.comhttp://www.163.comhttp://www.google.cahttp://www.whatsapp.comhttp://www.amazon.inhttp://www.office.comhttp://www.tianya.cnhttp://www.google.co.idhttp://www.youku.comhttp://www.rakuten.co.jphttp://www.craigslist.orghttp://www.amazon.dehttp://www.nicovideo.jphttp://www.google.plhttp://www.soso.comhttp://www.bilibili.comhttp://www.dropbox.comhttp://www.xinhuanet.comhttp://www.outbrain.comhttp://www.pixnet.nethttp://www.alibaba.comhttp://www.alipay.comhttp://www.microsoftonline.comhttp://www.booking.comhttp://www.googleusercontent.comhttp://www.google.com.auhttp://www.popads.nethttp://www.cntv.cnhttp://www.zhihu.comhttp://www.amazon.co.ukhttp://www.diply.comhttp://www.coccoc.comhttp://www.cnn.comhttp://www.bbc.co.ukhttp://www.twitch.tvhttp://www.wikia.comhttp://www.google.co.thhttp://www.go.comhttp://www.google.com.phhttp://www.doubleclick.nethttp://www.onet.plhttp://www.googleadservices.comhttp://www.accuweather.comhttp://www.googleweblight.comhttp://www.answers.yahoo.comhttp://www.sans.org'] common_urls_https = ['https://www.youtube.com', 'https://www.facebook.com', 'https://www.baidu.com', 'https://www.yahoo.com', 'https://www.amazon.com', 'https://www.wikipedia.org', 'https://www.qq.com', 'https://www.google.co.in', 'https://www.twitter.com', 'https://www.live.com', 'https://www.taobao.com', 'https://www.bing.com', 'https://www.instagram.com', 'https://www.weibo.com', 'https://www.sina.com.cn', 'https://www.linkedin.com', 'https://www.yahoo.co.jp', 'https://www.msn.com', 'https://www.vk.com', 'https://www.google.de', 'https://www.yandex.ru', 'https://www.hao123.com', 'https://www.google.co.uk', 'https://www.reddit.com', 'https://www.ebay.com', 'https://www.google.fr', 'https://www.t.com', 'https://www.tmall.com', 'https://www.google.com.br', 'https://www.360.cn', 'https://www.sohu.com', 'https://www.amazon.co.jp', 'https://www.pinterest.com', 'https://www.netflix.com', 'https://www.google.it', 'https://www.google.ru', 'https://www.microsoft.com', 'https://www.google.es', 'https://www.wordpress.com', 'https://www.gmw.cn', 'https://www.tumblr.com', 'https://www.paypal.com', 'https://www.blogspot.com', 'https://www.imgur.com', 'https://www.stackoverflow.com', 'https://www.aliexpress.com', 'https://www.naver.com', 'https://www.ok.ru', 'https://www.apple.com', 'https://www.github.com', 'https://www.chinadaily.com.cn', 'https://www.imdb.com', 'https://www.google.co.kr', 'https://www.fc2.com', 'https://www.jd.com', 'https://www.blogger.com', 'https://www.163.com', 'https://www.google.ca', 'https://www.whatsapp.com', 'https://www.amazon.in', 'https://www.office.com', 'https://www.tianya.cn', 'https://www.google.co.id', 'https://www.youku.com', 'https://www.rakuten.co.jp', 'https://www.craigslist.org', 'https://www.amazon.de', 'https://www.nicovideo.jp', 'https://www.google.pl', 'https://www.soso.com', 'https://www.bilibili.com', 'https://www.dropbox.com', 'https://www.xinhuanet.com', 'https://www.outbrain.com', 'https://www.pixnet.net', 'https://www.alibaba.com', 'https://www.alipay.com', 'https://www.microsoftonline.com', 'https://www.booking.com', 'https://www.googleusercontent.com', 'https://www.google.com.au', 'https://www.popads.net', 'https://www.cntv.cn', 'https://www.zhihu.com', 'https://www.amazon.co.uk', 'https://www.diply.com', 'https://www.coccoc.com', 'https://www.cnn.com', 'https://www.bbc.co.uk', 'https://www.twitch.tv', 'https://www.wikia.com', 'https://www.google.co.th', 'https://www.go.com', 'https://www.google.com.ph', 'https://www.doubleclick.net', 'https://www.onet.pl', 'https://www.googleadservices.com', 'https://www.accuweather.com', 'https://www.googleweblight.com', 'https://www.answers.yahoo.com', 'https://www.sans.org', 'https://support.google.com', 'https://www.adobe.com', 'https://www.gulf-times.com']
# Implement a quicksort items = [20, 6, 8, 53, 56, 23, 87, 41, 49, 19] def quickSort(dataset, first, last): if first < last: # calculate the split point pivotIdx = partition(dataset, first, last) # now sort the two partitions quickSort(dataset, first, pivotIdx-1) quickSort(dataset, pivotIdx+1, last) def partition(datavalues, first, last): # choose the first item as the pivot value pivotvalue = datavalues[first] # establish the upper and lower indexes lower = first + 1 upper = last # start searching for the crossing point done = False while not done: # advance the lower index while lower <= upper and datavalues[lower] <= pivotvalue: lower += 1 # advance the upper index while datavalues[upper] >= pivotvalue and upper >= lower: upper -= 1 # if the two indexes cross, we have found the split point if upper < lower: done = True else: # exchange the two values temp = datavalues[lower] datavalues[lower] = datavalues[upper] datavalues[upper] = temp # when the split point is found, exchange the pivot value temp = datavalues[first] datavalues[first] = datavalues[upper] datavalues[upper] = temp # return the split point index return upper # test the merge sort with data print(items) quickSort(items, 0, len(items)-1) print(items)
items = [20, 6, 8, 53, 56, 23, 87, 41, 49, 19] def quick_sort(dataset, first, last): if first < last: pivot_idx = partition(dataset, first, last) quick_sort(dataset, first, pivotIdx - 1) quick_sort(dataset, pivotIdx + 1, last) def partition(datavalues, first, last): pivotvalue = datavalues[first] lower = first + 1 upper = last done = False while not done: while lower <= upper and datavalues[lower] <= pivotvalue: lower += 1 while datavalues[upper] >= pivotvalue and upper >= lower: upper -= 1 if upper < lower: done = True else: temp = datavalues[lower] datavalues[lower] = datavalues[upper] datavalues[upper] = temp temp = datavalues[first] datavalues[first] = datavalues[upper] datavalues[upper] = temp return upper print(items) quick_sort(items, 0, len(items) - 1) print(items)
FOUND_PYTORCH = True # TODO check using code CONFIG = "config_file" BASELOGFOLDER = 'base_log_folder' SEED = 'seed' DEVICE = None
found_pytorch = True config = 'config_file' baselogfolder = 'base_log_folder' seed = 'seed' device = None
def is_palindrome(n): s, r = str(n), str(n)[::-1] return s == r def solve(d): n, m, largest = 10 ** (d - 1), 10 ** d, 0 for i in range(n, m): for j in range(i + 1, m): p = i * j if largest < p and is_palindrome(p): largest = p return largest # d = 2 d = 3 print(solve(d))
def is_palindrome(n): (s, r) = (str(n), str(n)[::-1]) return s == r def solve(d): (n, m, largest) = (10 ** (d - 1), 10 ** d, 0) for i in range(n, m): for j in range(i + 1, m): p = i * j if largest < p and is_palindrome(p): largest = p return largest d = 3 print(solve(d))
# TC: O(n) | SC: O(n) def solution_1(price): profit = [0]*len(price) # right to left max_price = price[-1] for i in range(len(price)-2, -1, -1): if price[i] > max_price: max_price = price[i] profit[i] = max(profit[i+1], (max_price-price[i])) # left to right min_price = price[0] for i in range(1, len(price)): if min_price > price[i]: min_price = price[i] profit[i] = max(profit[i-1], profit[i]+(price[i]-min_price)) return profit[-1] if __name__ == '__main__': price = [10, 22, 5, 75, 65, 80] # 87 # price = [2, 30, 15, 10, 8, 25, 80] # 100 # price = [100, 30, 15, 10, 8, 25, 80] # 72 # price = [90, 80, 70, 60, 50] # 0 print('solution_1: ', solution_1(price))
def solution_1(price): profit = [0] * len(price) max_price = price[-1] for i in range(len(price) - 2, -1, -1): if price[i] > max_price: max_price = price[i] profit[i] = max(profit[i + 1], max_price - price[i]) min_price = price[0] for i in range(1, len(price)): if min_price > price[i]: min_price = price[i] profit[i] = max(profit[i - 1], profit[i] + (price[i] - min_price)) return profit[-1] if __name__ == '__main__': price = [10, 22, 5, 75, 65, 80] print('solution_1: ', solution_1(price))
input_string = input('Please input a number: ') if input_string.isnumeric(): print('The number is accepted') else: print('The input is invalid')
input_string = input('Please input a number: ') if input_string.isnumeric(): print('The number is accepted') else: print('The input is invalid')
input() S=input() dot=S.count(".") ans=dot sharp=0 for s in S: if s=="#":sharp+=1 else:dot-=1 ans=min(ans,sharp+dot) print(ans)
input() s = input() dot = S.count('.') ans = dot sharp = 0 for s in S: if s == '#': sharp += 1 else: dot -= 1 ans = min(ans, sharp + dot) print(ans)
# Project Quex (http://quex.sourceforge.net); License: MIT; # (C) 2005-2020 Frank-Rene Schaefer; #_______________________________________________________________________________ __debug_recursion_depth = -1 __debug_output_enabled_f = False # True / False def __debug_print(msg, msg2="", msg3=""): global __debug_recursion_depth if not __debug_output_enabled_f: return if type(msg2) != str: msg2 = repr(msg2) if type(msg3) != str: msg3 = repr(msg3) txt = "##" + " " * __debug_recursion_depth + msg + " " + msg2 + " " + msg3 txt = txt.replace("\n", "\n " + " " * __debug_recursion_depth) print(txt) def __debug_exit(result, stream): global __debug_recursion_depth __debug_recursion_depth -= 1 if __debug_output_enabled_f: pos = stream.tell() txt = stream.read(64).replace("\n", "\\n") stream.seek(pos) __debug_print("##exit: [%s], remainder = \"%s\"" % (type(result), txt)) return result def __debug_entry(function_name, stream): global __debug_recursion_depth __debug_recursion_depth += 1 if __debug_output_enabled_f: pos = stream.tell() txt = stream.read(64).replace("\n", "\\n") stream.seek(pos) __debug_print("##entry: %s, remainder = \"%s\"" % (function_name, txt)) def __debug_print_stream(Prefix, stream): pos = stream.tell() print("#%s: [%s]" % (Prefix, stream.read(64).replace("\n", "\\n"))) stream.seek(pos)
__debug_recursion_depth = -1 __debug_output_enabled_f = False def __debug_print(msg, msg2='', msg3=''): global __debug_recursion_depth if not __debug_output_enabled_f: return if type(msg2) != str: msg2 = repr(msg2) if type(msg3) != str: msg3 = repr(msg3) txt = '##' + ' ' * __debug_recursion_depth + msg + ' ' + msg2 + ' ' + msg3 txt = txt.replace('\n', '\n ' + ' ' * __debug_recursion_depth) print(txt) def __debug_exit(result, stream): global __debug_recursion_depth __debug_recursion_depth -= 1 if __debug_output_enabled_f: pos = stream.tell() txt = stream.read(64).replace('\n', '\\n') stream.seek(pos) __debug_print('##exit: [%s], remainder = "%s"' % (type(result), txt)) return result def __debug_entry(function_name, stream): global __debug_recursion_depth __debug_recursion_depth += 1 if __debug_output_enabled_f: pos = stream.tell() txt = stream.read(64).replace('\n', '\\n') stream.seek(pos) __debug_print('##entry: %s, remainder = "%s"' % (function_name, txt)) def __debug_print_stream(Prefix, stream): pos = stream.tell() print('#%s: [%s]' % (Prefix, stream.read(64).replace('\n', '\\n'))) stream.seek(pos)
dollar_bill = 10 if dollar_bill < 1000: print('bill exist') else: print ('bill does not exist') # dollar_bill = 1000 # # if dollar_bill < 800: # print ('bill exist') # else: # print ('bill does not exist') # # dollar_bill = 1000 # if dollar_bill > 500: # print ('bill exist') # else: # print ('bill does not exist') # # dollar_bill = 1000 # if dollar_bill > 500: # print('bill exist') # else: # print('bill does not exist') jKDK
dollar_bill = 10 if dollar_bill < 1000: print('bill exist') else: print('bill does not exist') jKDK
def abc() : print('a') print('b') print('c') def get_vat(price) : percent = 0.1 return price*percent p = 1000 answer = get_vat(p) print(answer)
def abc(): print('a') print('b') print('c') def get_vat(price): percent = 0.1 return price * percent p = 1000 answer = get_vat(p) print(answer)
class CreateOrderController: def __init__(self, create_order_use_case): self.create_order_use_case = create_order_use_case def route(self, body): if body is not None: consumed_in = body["consumed_in"] if "consumed_in" in body else None table = body["table"] if "table" in body else None payment_method = body["payment_method"] if "payment_method" in body else None obs = body["obs"] if "obs" in body else None response = self.create_order_use_case.create_order( consumed_in=consumed_in, table=table, payment_method=payment_method, obs=obs) return response return {"data": None, "status": 400, "errors": ["Invalid request"]}
class Createordercontroller: def __init__(self, create_order_use_case): self.create_order_use_case = create_order_use_case def route(self, body): if body is not None: consumed_in = body['consumed_in'] if 'consumed_in' in body else None table = body['table'] if 'table' in body else None payment_method = body['payment_method'] if 'payment_method' in body else None obs = body['obs'] if 'obs' in body else None response = self.create_order_use_case.create_order(consumed_in=consumed_in, table=table, payment_method=payment_method, obs=obs) return response return {'data': None, 'status': 400, 'errors': ['Invalid request']}
################################################################## # this function will print any AST that follows the # # (TYPE [, child1, child2,...]) # # tuple format for tree nodes. def dumpast(node): _dumpast(node) print('') def _dumpast(node, level=0): if isinstance(node, tuple): indent(level) nchildren = len(node) - 1 print("(%s" % node[0], end='') if nchildren > 0: print(" ", end='') for c in range(nchildren): _dumpast(node[c+1], level+1) if c != nchildren-1: print(' ', end='') print(")", end='') elif isinstance(node, list): indent(level) nchildren = len(node) print("[", end='') if nchildren > 0: print(" ", end='') for c in range(nchildren): _dumpast(node[c], level+1) if c != nchildren-1: print(' ', end='') print("]", end='') else: print("%s" % str(node), end='') def indent(level): print('') for i in range(level): print(' |',end='')
def dumpast(node): _dumpast(node) print('') def _dumpast(node, level=0): if isinstance(node, tuple): indent(level) nchildren = len(node) - 1 print('(%s' % node[0], end='') if nchildren > 0: print(' ', end='') for c in range(nchildren): _dumpast(node[c + 1], level + 1) if c != nchildren - 1: print(' ', end='') print(')', end='') elif isinstance(node, list): indent(level) nchildren = len(node) print('[', end='') if nchildren > 0: print(' ', end='') for c in range(nchildren): _dumpast(node[c], level + 1) if c != nchildren - 1: print(' ', end='') print(']', end='') else: print('%s' % str(node), end='') def indent(level): print('') for i in range(level): print(' |', end='')
def read_passports(): with open('input.txt') as fh: lines = fh.readlines() pp_chunks = [] chunk = "" for li in range(len(lines)): if lines[li].strip(): chunk += lines[li].strip() + " " else: pp_chunks.append(chunk) chunk = "" # I added 2 newlines at the end of the input so this will catch the last one. HAX. print(len(pp_chunks), pp_chunks) # each chunk is a one-line string containing all fields passports = [] for chunk in pp_chunks: p = dict() try: for tok in chunk.strip().split(' '): if not tok.strip(): # could have multiple spaces, no biggie continue k, v = tok.split(':') # might error if bad token p[k] = v except Exception: # invalid - skip. print("skipping chunk:", chunk) continue passports.append(p) print(len(passports,), passports) return passports def check_required_fields_present(p): # cid not actually required min_fields = {'byr', 'iyr', 'eyr', 'hgt', 'hcl', 'ecl', 'pid'} for field in min_fields: if field not in p: print("p missing", field, len(p), ":", p) return False return True def main(): pps = read_passports() valid_pps = [] for p in pps: if not check_required_fields_present(p): continue valid_pps.append(p) print(len(valid_pps)) if __name__ == '__main__': # 225 - too low # 235 - too high, so the idea's roughly right. main()
def read_passports(): with open('input.txt') as fh: lines = fh.readlines() pp_chunks = [] chunk = '' for li in range(len(lines)): if lines[li].strip(): chunk += lines[li].strip() + ' ' else: pp_chunks.append(chunk) chunk = '' print(len(pp_chunks), pp_chunks) passports = [] for chunk in pp_chunks: p = dict() try: for tok in chunk.strip().split(' '): if not tok.strip(): continue (k, v) = tok.split(':') p[k] = v except Exception: print('skipping chunk:', chunk) continue passports.append(p) print(len(passports), passports) return passports def check_required_fields_present(p): min_fields = {'byr', 'iyr', 'eyr', 'hgt', 'hcl', 'ecl', 'pid'} for field in min_fields: if field not in p: print('p missing', field, len(p), ':', p) return False return True def main(): pps = read_passports() valid_pps = [] for p in pps: if not check_required_fields_present(p): continue valid_pps.append(p) print(len(valid_pps)) if __name__ == '__main__': main()
#Brian Condon # 28/02/18 Week 5 formatting exercise # prints the headings # opens the data file print("petal length, petal width, sepal length, sepal width") with open("data/iris.csv") as data_file: # loops through the data file # prints and formats the data using the line split for line in data_file: print('{:13} {:12} {:13} {:8}'.format(line.split(',')[0], line.split(',')[1], line.split(',')[2], line.split(',')[3]))
print('petal length, petal width, sepal length, sepal width') with open('data/iris.csv') as data_file: for line in data_file: print('{:13} {:12} {:13} {:8}'.format(line.split(',')[0], line.split(',')[1], line.split(',')[2], line.split(',')[3]))
classification_file = open('classifications.csv') new_class_file = open('new_class.csv', mode='w') new_class_file.write(classification_file.readline()) for line in classification_file: line = line.strip().split(',') new_class_file.write(line[0] + ',') new_class_file.write(('1' if line[1] == 'True' else '0') + '\n')
classification_file = open('classifications.csv') new_class_file = open('new_class.csv', mode='w') new_class_file.write(classification_file.readline()) for line in classification_file: line = line.strip().split(',') new_class_file.write(line[0] + ',') new_class_file.write(('1' if line[1] == 'True' else '0') + '\n')
class Solution: def scoreOfParentheses(self, S): stack, res = [], 0 for c in S: if c == "(": stack.append(0) else: add = 2 * stack.pop() or 1 if stack: stack[-1] += add else: res += add return res
class Solution: def score_of_parentheses(self, S): (stack, res) = ([], 0) for c in S: if c == '(': stack.append(0) else: add = 2 * stack.pop() or 1 if stack: stack[-1] += add else: res += add return res
# Colors (Fixed Color Graph Indices) # Returns (red, green, blue, opacity) colors = [ "EEEEEE", # White (1, n) "FF0000", # Red (i, s) "00FF00", # Green (j, t) "0000FF", # Blue (k, u) "DDDDDD", # Gray (L, N) "00FFFF", # Cyan (I, S) "FF00FF", # Magenta (J, T) "FFFF00", # Yellow (K, U) "CCCCCC", # Gray (m, o) "FF8000", # Orange (p, v) "FF0080", # Pink (q, w) "80FF00", # Lime (r, x) "BBBBBB", # Gray (M, O) "FF8000", # Teal (P, V) "8000FF", # Purple (Q, W) "0080FF", # Blue (R, X) ] * 2 def color(order, id): negative = True if id >= 2**order else False id -= 2**order if negative else 0 color = colors[id] out = [0, 0, 0, 1] for i in range(3): hex = color[i * 2 : i * 2 + 2] out[i] = int(hex, 16) / 0xFF if negative: out[i] *= 0.50 # Color 50% Darker If Negative return tuple(out) # Location (Fixed Location Graph Indices) # Returns [Horizontal, Vertical] # Left / Top := [-, -] # Left / Bottom := [-, +] # Right / Bottom := [+, +] # Right / Top := [+, -] # Center := [0, 0] locations = [ [1, 0], [0, -1], # 1, i, Complex [2, 2], [2, -2], # j, k, Quaternion [-1.5, -4], [-4, -1.5], [-4, 1.5], [-1.5, 4], # L, I, J, K Octonion [-2, -6], [-5, -6], [-6, -5], [-6, -2], # m, p, q, r Sedenion [-6, 2], [-6, 5], [-5, 6], [-2, 6], # M, P, Q, R Sedenion [-6, -9], [-8, -9], [-9, -8], [-9, -6], # n, s, t, u Pathion [-9, 6], [-9, 8], [-8, 9], [-6, +9], # N, S, T, U Pathion [-9, 4], [-11, 3], [-11, -3], [-9, -4], # o, v, w, x Pathion [4, 9], [3, 11], [-3, 11], [-4, 9], # O, V, W, X Pathion ] def location(order, id): negative = True if id >= 2**order else False id -= 2**order if negative else 0 location = locations[id] for i in range(2): if negative: location[i] *= -1 # Reversed Location If Negative return location
colors = ['EEEEEE', 'FF0000', '00FF00', '0000FF', 'DDDDDD', '00FFFF', 'FF00FF', 'FFFF00', 'CCCCCC', 'FF8000', 'FF0080', '80FF00', 'BBBBBB', 'FF8000', '8000FF', '0080FF'] * 2 def color(order, id): negative = True if id >= 2 ** order else False id -= 2 ** order if negative else 0 color = colors[id] out = [0, 0, 0, 1] for i in range(3): hex = color[i * 2:i * 2 + 2] out[i] = int(hex, 16) / 255 if negative: out[i] *= 0.5 return tuple(out) locations = [[1, 0], [0, -1], [2, 2], [2, -2], [-1.5, -4], [-4, -1.5], [-4, 1.5], [-1.5, 4], [-2, -6], [-5, -6], [-6, -5], [-6, -2], [-6, 2], [-6, 5], [-5, 6], [-2, 6], [-6, -9], [-8, -9], [-9, -8], [-9, -6], [-9, 6], [-9, 8], [-8, 9], [-6, +9], [-9, 4], [-11, 3], [-11, -3], [-9, -4], [4, 9], [3, 11], [-3, 11], [-4, 9]] def location(order, id): negative = True if id >= 2 ** order else False id -= 2 ** order if negative else 0 location = locations[id] for i in range(2): if negative: location[i] *= -1 return location
# HEAD # DataType - Strings with Sequence/Tuples behaviour # DESCRIPTION # Describes how strings behave as a list or a sequence # Strings can be referenced per character using indexes like lists # String indexing also starts from 0/Zero # Strings can be looped like lists # RESOURCES # name = 'Zophie' print(name[0]) # 'Z' print(name[-2]) # 'i' print(name[0:4]) # 'Zoph' print('Zo' in name) # True print('z' in name) # False print('p' not in name) # False for i in name: print('* * * ' + i + ' * * *')
name = 'Zophie' print(name[0]) print(name[-2]) print(name[0:4]) print('Zo' in name) print('z' in name) print('p' not in name) for i in name: print('* * * ' + i + ' * * *')
APPLICATION_NAME = "Actuator Updater" APP_AUTHOR_DIR = "FarSite" APP_NAME_DIR = "ActuatorUpdater" # MENU_DISCONNECTED = "Connect to site..." MENU_DISCONNECTED = "Connect/disconnect" MENU_CONNECTED = "Disconnect from site"
application_name = 'Actuator Updater' app_author_dir = 'FarSite' app_name_dir = 'ActuatorUpdater' menu_disconnected = 'Connect/disconnect' menu_connected = 'Disconnect from site'
''' This is a first name / last name dictionary & retrieval system Try this: 1. Add your name 2. Use the difflib tricks in Challenge0 to match SIMILAR names (instead of exact names) ''' database = { 'Luke':'Skywalker', 'Leia':'Skywalker', 'Han':'Solo', 'Chewie':'Chewbacca', 'Finn':'FN-2187', } # in case you forgot to type the keys (prompts) as all lower case for key in dict(database): if key != key.lower(): # if some upper case characters # Add an extra entry with all lower case characters in prompt database[key.lower()] = database[key] def sorry(): print('Sorry, no records found matching that name!') while True: typ = input('Search By First Name or Last Name? (type "first" or "last") >> ') if typ.lower() == 'first': name = input('First Name? >> ') name = name.lower() if name in database.keys(): print('Last Name Is', database[name]) else: sorry() elif typ.lower() == 'last': name = input('Last Name? >> ') name = name.lower() if name in database.values(): for first, last in database.items(): if last == name: print('First Name Is', first) break # quit this for loop else: sorry()
""" This is a first name / last name dictionary & retrieval system Try this: 1. Add your name 2. Use the difflib tricks in Challenge0 to match SIMILAR names (instead of exact names) """ database = {'Luke': 'Skywalker', 'Leia': 'Skywalker', 'Han': 'Solo', 'Chewie': 'Chewbacca', 'Finn': 'FN-2187'} for key in dict(database): if key != key.lower(): database[key.lower()] = database[key] def sorry(): print('Sorry, no records found matching that name!') while True: typ = input('Search By First Name or Last Name? (type "first" or "last") >> ') if typ.lower() == 'first': name = input('First Name? >> ') name = name.lower() if name in database.keys(): print('Last Name Is', database[name]) else: sorry() elif typ.lower() == 'last': name = input('Last Name? >> ') name = name.lower() if name in database.values(): for (first, last) in database.items(): if last == name: print('First Name Is', first) break else: sorry()
pkgname = "icu" pkgver = "70.1" pkgrel = 0 build_wrksrc = "source" build_style = "gnu_configure" configure_args = [ "--with-data-packaging=archive", "--enable-static", ] make_cmd = "gmake" hostmakedepends = ["gmake", "pkgconf"] checkdepends = ["python"] pkgdesc = "Robust and fully-featured Unicode libraries" maintainer = "q66 <q66@chimera-linux.org>" license = "ICU" url = "https://home.unicode.org" source = f"https://github.com/unicode-org/{pkgname}/releases/download/release-{pkgver.replace('.', '-')}/icu4c-{pkgver.replace('.', '_')}-src.tgz" sha256 = "8d205428c17bf13bb535300669ed28b338a157b1c01ae66d31d0d3e2d47c3fd5" tool_flags = {"CFLAGS": ["-fPIC"], "CXXFLAGS": ["-fPIC"]} def init_configure(self): if not self.profile().cross: return # we build special host icu for cross self.configure_args.append( "--with-cross-build=" + str(self.chroot_cwd / "icu-host") ) def pre_configure(self): if not self.profile().cross: return # host build; first clean up potential old stuff self.rm("build-host", recursive = True, force = True) self.rm("icu-host", recursive = True, force = True) self.mkdir("build-host") # override most build-related environment self.do( self.chroot_cwd / "configure", "--prefix=/", "--sbindir=/bin", wrksrc = "build-host", env = { "CC": "cc", "LD": "ld", "CXX": "c++", "AR": "ar", "AS": "cc", "RANLIB": "ranlib", "STRIP": "strip", "CFLAGS": "-Os", "CXXFLAGS": "-Os", "LDFLAGS": "", } ) self.make.build(wrksrc = "build-host") self.mkdir("icu-host/config", parents = True) # copy over icucross for f in (self.cwd / "build-host/config").glob("icucross.*"): self.cp(f, "icu-host/config") # finally install host icu into special prefix self.make.install( ["DESTDIR=" + str(self.chroot_cwd / "icu-host")], wrksrc = "build-host", default_args = False ) def post_install(self): # FIXME: check if cross-endian icudt is still busted later self.install_license(self.builddir / self.wrksrc / "LICENSE") @subpackage("icu-libs") def _libs(self): return self.default_libs(extra = [ f"usr/share/icu/{pkgver}/icudt*.dat" ]) @subpackage("icu-devel") def _devel(self): return self.default_devel(extra = ["usr/share/icu", "usr/lib/icu"])
pkgname = 'icu' pkgver = '70.1' pkgrel = 0 build_wrksrc = 'source' build_style = 'gnu_configure' configure_args = ['--with-data-packaging=archive', '--enable-static'] make_cmd = 'gmake' hostmakedepends = ['gmake', 'pkgconf'] checkdepends = ['python'] pkgdesc = 'Robust and fully-featured Unicode libraries' maintainer = 'q66 <q66@chimera-linux.org>' license = 'ICU' url = 'https://home.unicode.org' source = f"https://github.com/unicode-org/{pkgname}/releases/download/release-{pkgver.replace('.', '-')}/icu4c-{pkgver.replace('.', '_')}-src.tgz" sha256 = '8d205428c17bf13bb535300669ed28b338a157b1c01ae66d31d0d3e2d47c3fd5' tool_flags = {'CFLAGS': ['-fPIC'], 'CXXFLAGS': ['-fPIC']} def init_configure(self): if not self.profile().cross: return self.configure_args.append('--with-cross-build=' + str(self.chroot_cwd / 'icu-host')) def pre_configure(self): if not self.profile().cross: return self.rm('build-host', recursive=True, force=True) self.rm('icu-host', recursive=True, force=True) self.mkdir('build-host') self.do(self.chroot_cwd / 'configure', '--prefix=/', '--sbindir=/bin', wrksrc='build-host', env={'CC': 'cc', 'LD': 'ld', 'CXX': 'c++', 'AR': 'ar', 'AS': 'cc', 'RANLIB': 'ranlib', 'STRIP': 'strip', 'CFLAGS': '-Os', 'CXXFLAGS': '-Os', 'LDFLAGS': ''}) self.make.build(wrksrc='build-host') self.mkdir('icu-host/config', parents=True) for f in (self.cwd / 'build-host/config').glob('icucross.*'): self.cp(f, 'icu-host/config') self.make.install(['DESTDIR=' + str(self.chroot_cwd / 'icu-host')], wrksrc='build-host', default_args=False) def post_install(self): self.install_license(self.builddir / self.wrksrc / 'LICENSE') @subpackage('icu-libs') def _libs(self): return self.default_libs(extra=[f'usr/share/icu/{pkgver}/icudt*.dat']) @subpackage('icu-devel') def _devel(self): return self.default_devel(extra=['usr/share/icu', 'usr/lib/icu'])
def intersection(start_i, end_i, start_j, end_j): i0 = max(start_i, start_j) i1 = min(end_i, end_j) if i0 >= i1: return 0 else: return i1 - i0 def percentage_intervention(doc, shot_start, shot_end): interventions = doc.getElementsByTagName("Intervention") case_size = shot_end - shot_start percentage = {'long': 0, 'short': 0} for intervention in interventions: intervention_start = float(intervention.getAttribute('start')) intervention_end = float(intervention.getAttribute('end')) intervention_type = intervention.getAttribute('type') intersect = intersection(shot_start, shot_end, intervention_start, intervention_end) percentage[intervention_type] = percentage[intervention_type] + intersect # print "intervention_start: " + str(intervention_start) # print "intervention_end: " + str(intervention_end) # print "shot_start: " + str(shot_start) # print "shot_end: " + str(shot_end) # print "shot_end: " + str(percentage[intervention_type]) percentage['long'] = round(percentage['long'] * 100 / case_size, 2) percentage['short'] = round(percentage['short'] * 100 / case_size, 2) return percentage
def intersection(start_i, end_i, start_j, end_j): i0 = max(start_i, start_j) i1 = min(end_i, end_j) if i0 >= i1: return 0 else: return i1 - i0 def percentage_intervention(doc, shot_start, shot_end): interventions = doc.getElementsByTagName('Intervention') case_size = shot_end - shot_start percentage = {'long': 0, 'short': 0} for intervention in interventions: intervention_start = float(intervention.getAttribute('start')) intervention_end = float(intervention.getAttribute('end')) intervention_type = intervention.getAttribute('type') intersect = intersection(shot_start, shot_end, intervention_start, intervention_end) percentage[intervention_type] = percentage[intervention_type] + intersect percentage['long'] = round(percentage['long'] * 100 / case_size, 2) percentage['short'] = round(percentage['short'] * 100 / case_size, 2) return percentage
# -------------- #Code starts here #Function to check for palindrome def palindrome_check(num): num=str(num) return (num[::-1]==num) #Function to find the smallest palindrome def palindrome(num): while(1): num=num+1 if palindrome_check(num): return num #Code ends here # -------------- #Code starts here #Function to find anagram of one word in another def a_scramble(str_1,str_2): result=True for i in (str_2.lower()): if i not in (str_1.lower()): result=False break str_1=str_1.replace(i,'',1) #Removing the letters from str_1 that are already checked return (result) #Code ends here # -------------- #Code starts here def check_fib(num): a,b = 0,1 L = [0,1] c = a + b for i in range(2,num+1): L.append(c) a = b b = c c = a + b if num in L: return True else: return False # -------------- #Code starts here def compress(word): count,index,i = 0,1,0 word = word.lower() new_word = "" while (i < len(word)): w = word[i] for j in range(i,len(word)): if w == word[j]: count += 1 else: break new_word = new_word+w+str(count) i = i+count count=0 print(new_word) return new_word # -------------- #Code starts here def k_distinct(string,k): string = string.lower() L = [] for i in range(len(string)): if string[i] not in L: L.append(string[i]) else: continue if len(L) >=k: return True else: return False
def palindrome_check(num): num = str(num) return num[::-1] == num def palindrome(num): while 1: num = num + 1 if palindrome_check(num): return num def a_scramble(str_1, str_2): result = True for i in str_2.lower(): if i not in str_1.lower(): result = False break str_1 = str_1.replace(i, '', 1) return result def check_fib(num): (a, b) = (0, 1) l = [0, 1] c = a + b for i in range(2, num + 1): L.append(c) a = b b = c c = a + b if num in L: return True else: return False def compress(word): (count, index, i) = (0, 1, 0) word = word.lower() new_word = '' while i < len(word): w = word[i] for j in range(i, len(word)): if w == word[j]: count += 1 else: break new_word = new_word + w + str(count) i = i + count count = 0 print(new_word) return new_word def k_distinct(string, k): string = string.lower() l = [] for i in range(len(string)): if string[i] not in L: L.append(string[i]) else: continue if len(L) >= k: return True else: return False
class ChainingTimeStampF1D: def __init__(self): pass def __call__(self, inter): pass class Curvature2DAngleF0D: def __init__(self): pass def __call__(self, it): pass class Curvature2DAngleF1D: def __init__(self, integration_type=IntegrationType.MEAN): pass def __call__(self, inter): pass class CurveMaterialF0D: pass class CurveNatureF0D: def __init__(self): pass def __call__(self, it): pass class CurveNatureF1D: def __init__(self, integration_type=IntegrationType.MEAN): pass def __call__(self, inter): pass class DensityF0D: def __init__(self, sigma=2.0): pass def __call__(self, it): pass class DensityF1D: def __init__(self, sigma=2.0, integration_type=IntegrationType.MEAN, sampling=2.0): pass def __call__(self, inter): pass class GetCompleteViewMapDensityF1D: def __init__(self, level, integration_type=IntegrationType.MEAN, sampling=2.0): pass def __call__(self, inter): pass class GetCurvilinearAbscissaF0D: def __init__(self): pass def __call__(self, it): pass class GetDirectionalViewMapDensityF1D: def __init__(self, orientation, level, integration_type=IntegrationType.MEAN, sampling=2.0): pass def __call__(self, inter): pass class GetOccludeeF0D: def __init__(self): pass def __call__(self, it): pass class GetOccludeeF1D: def __init__(self): pass def __call__(self, inter): pass class GetOccludersF0D: def __init__(self): pass def __call__(self, it): pass class GetOccludersF1D: def __init__(self): pass def __call__(self, inter): pass class GetParameterF0D: def __init__(self): pass def __call__(self, it): pass class GetProjectedXF0D: def __init__(self): pass def __call__(self, it): pass class GetProjectedXF1D: def __init__(self, integration_type=IntegrationType.MEAN): pass def __call__(self, inter): pass class GetProjectedYF0D: def __init__(self): pass def __call__(self, it): pass class GetProjectedYF1D: def __init__(self, integration_type=IntegrationType.MEAN): pass def __call__(self, inter): pass class GetProjectedZF0D: def __init__(self): pass def __call__(self, it): pass class GetProjectedZF1D: def __init__(self, integration_type=IntegrationType.MEAN): pass def __call__(self, inter): pass class GetShapeF0D: def __init__(self): pass def __call__(self, it): pass class GetShapeF1D: def __init__(self): pass def __call__(self, inter): pass class GetSteerableViewMapDensityF1D: def __init__(self, level, integration_type=IntegrationType.MEAN, sampling=2.0): pass def __call__(self, inter): pass class GetViewMapGradientNormF0D: def __init__(self, level): pass def __call__(self, it): pass class GetViewMapGradientNormF1D: def __init__(self, level, integration_type=IntegrationType.MEAN, sampling=2.0): pass def __call__(self, inter): pass class GetXF0D: def __init__(self): pass def __call__(self, it): pass class GetXF1D: def __init__(self, integration_type=IntegrationType.MEAN): pass def __call__(self, inter): pass class GetYF0D: def __init__(self): pass def __call__(self, it): pass class GetYF1D: def __init__(self, integration_type=IntegrationType.MEAN): pass def __call__(self, inter): pass class GetZF0D: def __init__(self): pass def __call__(self, it): pass class GetZF1D: def __init__(self, integration_type=IntegrationType.MEAN): pass def __call__(self, inter): pass class IncrementChainingTimeStampF1D: def __init__(self): pass def __call__(self, inter): pass class LocalAverageDepthF0D: def __init__(self, mask_size=5.0): pass def __call__(self, it): pass class LocalAverageDepthF1D: def __init__(self, sigma, integration_type=IntegrationType.MEAN): pass def __call__(self, inter): pass class MaterialF0D: def __init__(self): pass def __call__(self, it): pass class Normal2DF0D: def __init__(self): pass def __call__(self, it): pass class Normal2DF1D: def __init__(self, integration_type=IntegrationType.MEAN): pass def __call__(self, inter): pass class Orientation2DF1D: def __init__(self, integration_type=IntegrationType.MEAN): pass def __call__(self, inter): pass class Orientation3DF1D: def __init__(self, integration_type=IntegrationType.MEAN): pass def __call__(self, inter): pass class QuantitativeInvisibilityF0D: def __init__(self): pass def __call__(self, it): pass class QuantitativeInvisibilityF1D: def __init__(self, integration_type=IntegrationType.MEAN): pass def __call__(self, inter): pass class ReadCompleteViewMapPixelF0D: def __init__(self, level): pass def __call__(self, it): pass class ReadMapPixelF0D: def __init__(self, map_name, level): pass def __call__(self, it): pass class ReadSteerableViewMapPixelF0D: def __init__(self, orientation, level): pass def __call__(self, it): pass class ShapeIdF0D: def __init__(self): pass def __call__(self, it): pass class TimeStampF1D: def __init__(self): pass def __call__(self, inter): pass class VertexOrientation2DF0D: def __init__(self): pass def __call__(self, it): pass class VertexOrientation3DF0D: def __init__(self): pass def __call__(self, it): pass class ZDiscontinuityF0D: def __init__(self): pass def __call__(self, it): pass class ZDiscontinuityF1D: def __init__(self, integration_type=IntegrationType.MEAN): pass def __call__(self, inter): pass class pyCurvilinearLengthF0D: pass class pyDensityAnisotropyF0D: pass class pyDensityAnisotropyF1D: pass class pyGetInverseProjectedZF1D: pass class pyGetSquareInverseProjectedZF1D: pass class pyInverseCurvature2DAngleF0D: pass class pyViewMapGradientNormF0D: pass class pyViewMapGradientNormF1D: pass class pyViewMapGradientVectorF0D: def __init__(self, level): pass
class Chainingtimestampf1D: def __init__(self): pass def __call__(self, inter): pass class Curvature2Danglef0D: def __init__(self): pass def __call__(self, it): pass class Curvature2Danglef1D: def __init__(self, integration_type=IntegrationType.MEAN): pass def __call__(self, inter): pass class Curvematerialf0D: pass class Curvenaturef0D: def __init__(self): pass def __call__(self, it): pass class Curvenaturef1D: def __init__(self, integration_type=IntegrationType.MEAN): pass def __call__(self, inter): pass class Densityf0D: def __init__(self, sigma=2.0): pass def __call__(self, it): pass class Densityf1D: def __init__(self, sigma=2.0, integration_type=IntegrationType.MEAN, sampling=2.0): pass def __call__(self, inter): pass class Getcompleteviewmapdensityf1D: def __init__(self, level, integration_type=IntegrationType.MEAN, sampling=2.0): pass def __call__(self, inter): pass class Getcurvilinearabscissaf0D: def __init__(self): pass def __call__(self, it): pass class Getdirectionalviewmapdensityf1D: def __init__(self, orientation, level, integration_type=IntegrationType.MEAN, sampling=2.0): pass def __call__(self, inter): pass class Getoccludeef0D: def __init__(self): pass def __call__(self, it): pass class Getoccludeef1D: def __init__(self): pass def __call__(self, inter): pass class Getoccludersf0D: def __init__(self): pass def __call__(self, it): pass class Getoccludersf1D: def __init__(self): pass def __call__(self, inter): pass class Getparameterf0D: def __init__(self): pass def __call__(self, it): pass class Getprojectedxf0D: def __init__(self): pass def __call__(self, it): pass class Getprojectedxf1D: def __init__(self, integration_type=IntegrationType.MEAN): pass def __call__(self, inter): pass class Getprojectedyf0D: def __init__(self): pass def __call__(self, it): pass class Getprojectedyf1D: def __init__(self, integration_type=IntegrationType.MEAN): pass def __call__(self, inter): pass class Getprojectedzf0D: def __init__(self): pass def __call__(self, it): pass class Getprojectedzf1D: def __init__(self, integration_type=IntegrationType.MEAN): pass def __call__(self, inter): pass class Getshapef0D: def __init__(self): pass def __call__(self, it): pass class Getshapef1D: def __init__(self): pass def __call__(self, inter): pass class Getsteerableviewmapdensityf1D: def __init__(self, level, integration_type=IntegrationType.MEAN, sampling=2.0): pass def __call__(self, inter): pass class Getviewmapgradientnormf0D: def __init__(self, level): pass def __call__(self, it): pass class Getviewmapgradientnormf1D: def __init__(self, level, integration_type=IntegrationType.MEAN, sampling=2.0): pass def __call__(self, inter): pass class Getxf0D: def __init__(self): pass def __call__(self, it): pass class Getxf1D: def __init__(self, integration_type=IntegrationType.MEAN): pass def __call__(self, inter): pass class Getyf0D: def __init__(self): pass def __call__(self, it): pass class Getyf1D: def __init__(self, integration_type=IntegrationType.MEAN): pass def __call__(self, inter): pass class Getzf0D: def __init__(self): pass def __call__(self, it): pass class Getzf1D: def __init__(self, integration_type=IntegrationType.MEAN): pass def __call__(self, inter): pass class Incrementchainingtimestampf1D: def __init__(self): pass def __call__(self, inter): pass class Localaveragedepthf0D: def __init__(self, mask_size=5.0): pass def __call__(self, it): pass class Localaveragedepthf1D: def __init__(self, sigma, integration_type=IntegrationType.MEAN): pass def __call__(self, inter): pass class Materialf0D: def __init__(self): pass def __call__(self, it): pass class Normal2Df0D: def __init__(self): pass def __call__(self, it): pass class Normal2Df1D: def __init__(self, integration_type=IntegrationType.MEAN): pass def __call__(self, inter): pass class Orientation2Df1D: def __init__(self, integration_type=IntegrationType.MEAN): pass def __call__(self, inter): pass class Orientation3Df1D: def __init__(self, integration_type=IntegrationType.MEAN): pass def __call__(self, inter): pass class Quantitativeinvisibilityf0D: def __init__(self): pass def __call__(self, it): pass class Quantitativeinvisibilityf1D: def __init__(self, integration_type=IntegrationType.MEAN): pass def __call__(self, inter): pass class Readcompleteviewmappixelf0D: def __init__(self, level): pass def __call__(self, it): pass class Readmappixelf0D: def __init__(self, map_name, level): pass def __call__(self, it): pass class Readsteerableviewmappixelf0D: def __init__(self, orientation, level): pass def __call__(self, it): pass class Shapeidf0D: def __init__(self): pass def __call__(self, it): pass class Timestampf1D: def __init__(self): pass def __call__(self, inter): pass class Vertexorientation2Df0D: def __init__(self): pass def __call__(self, it): pass class Vertexorientation3Df0D: def __init__(self): pass def __call__(self, it): pass class Zdiscontinuityf0D: def __init__(self): pass def __call__(self, it): pass class Zdiscontinuityf1D: def __init__(self, integration_type=IntegrationType.MEAN): pass def __call__(self, inter): pass class Pycurvilinearlengthf0D: pass class Pydensityanisotropyf0D: pass class Pydensityanisotropyf1D: pass class Pygetinverseprojectedzf1D: pass class Pygetsquareinverseprojectedzf1D: pass class Pyinversecurvature2Danglef0D: pass class Pyviewmapgradientnormf0D: pass class Pyviewmapgradientnormf1D: pass class Pyviewmapgradientvectorf0D: def __init__(self, level): pass
def bubblesort(A): for i in range(len(A)): for k in range(len(A) - 1, i, -1): if (A[k] < A[k - 1]): swap(A,k,k-1) def swap(A,x,y): temp = A[x] A[x] = A[y] A[y] = temp A= [534,689,235,124,525,216,134,356] bubblesort(A) print(A)
def bubblesort(A): for i in range(len(A)): for k in range(len(A) - 1, i, -1): if A[k] < A[k - 1]: swap(A, k, k - 1) def swap(A, x, y): temp = A[x] A[x] = A[y] A[y] = temp a = [534, 689, 235, 124, 525, 216, 134, 356] bubblesort(A) print(A)
BACKGROUND = "red" FONT_NAME = "Consolas" FONT_SIZE = 19 DEFAULT_FONT = (FONT_NAME, FONT_SIZE) HEADER_FONT = (FONT_NAME, int(FONT_SIZE*1.3))
background = 'red' font_name = 'Consolas' font_size = 19 default_font = (FONT_NAME, FONT_SIZE) header_font = (FONT_NAME, int(FONT_SIZE * 1.3))
'''Developed by Jakub21 in June 2018 License: MIT Python version: 3.6.5 ''' class Chunk: '''Chunk Class Contains methods inherited by ProvGroup and Province classes ''' def __init__(self, parent, name, type): '''Constructor''' self.parent, self.name, self.type = parent, name, type self.marked = False self.pixels = [] def __repr__(self): '''Generates repr string of the object''' i = ' '*4 text = 'Chunk "'+str(self.name)+'"\n' text += i + 'Type: '+str(self.type)+'\n' text += i + 'Is marked: '+str(self.marked)+'\n' text += i + 'Pixels count: '+str(len(self.pixels))+'\n' try: text += i+'Colors: '+str([self.color, self.g_clr, self.m_clr])+'\n' except AttributeError: text += i + 'Colors not set\n' return text def set_pixels(self, pixels): '''Sets pixels of the chunk''' self.pixels = pixels def set_color(self, color): '''Sets chunk colors. Pass identifier color as a parameter. Marked and Grayed colors are calculated by helper methods. ''' self.color = color self.g_clr = self._get_gray(color) self.m_clr = self._get_marked(color) def mark(self, modify_map=True, force=None): '''Marks or Unmarks the chunk. To skip map update set modify_map to False. To force state of marked attr. use force parameter. ''' color = { True: self.m_clr, False: self.g_clr, } if force in (True, False): self.marked = force else: self.marked = not self.marked if modify_map == True: self.parent.mark_chunk(self.pixels, color[self.marked]) elif modify_map == 'provs': self.parent.mark_src_map(self.pixels, color[self.marked]) # set_color helper methods def _get_gray(self, color): r, g, b = color r = (r+100)//4 g = (g+100)//4 b = (b+100)//4 return r, g, b def _get_marked(self, color): r, g, b = color r = (r+510)//3 g = (g+510)//3 b = (b+510)//3 return r, g, b
"""Developed by Jakub21 in June 2018 License: MIT Python version: 3.6.5 """ class Chunk: """Chunk Class Contains methods inherited by ProvGroup and Province classes """ def __init__(self, parent, name, type): """Constructor""" (self.parent, self.name, self.type) = (parent, name, type) self.marked = False self.pixels = [] def __repr__(self): """Generates repr string of the object""" i = ' ' * 4 text = 'Chunk "' + str(self.name) + '"\n' text += i + 'Type: ' + str(self.type) + '\n' text += i + 'Is marked: ' + str(self.marked) + '\n' text += i + 'Pixels count: ' + str(len(self.pixels)) + '\n' try: text += i + 'Colors: ' + str([self.color, self.g_clr, self.m_clr]) + '\n' except AttributeError: text += i + 'Colors not set\n' return text def set_pixels(self, pixels): """Sets pixels of the chunk""" self.pixels = pixels def set_color(self, color): """Sets chunk colors. Pass identifier color as a parameter. Marked and Grayed colors are calculated by helper methods. """ self.color = color self.g_clr = self._get_gray(color) self.m_clr = self._get_marked(color) def mark(self, modify_map=True, force=None): """Marks or Unmarks the chunk. To skip map update set modify_map to False. To force state of marked attr. use force parameter. """ color = {True: self.m_clr, False: self.g_clr} if force in (True, False): self.marked = force else: self.marked = not self.marked if modify_map == True: self.parent.mark_chunk(self.pixels, color[self.marked]) elif modify_map == 'provs': self.parent.mark_src_map(self.pixels, color[self.marked]) def _get_gray(self, color): (r, g, b) = color r = (r + 100) // 4 g = (g + 100) // 4 b = (b + 100) // 4 return (r, g, b) def _get_marked(self, color): (r, g, b) = color r = (r + 510) // 3 g = (g + 510) // 3 b = (b + 510) // 3 return (r, g, b)
# AUTOGENERATED BY NBDEV! DO NOT EDIT! __all__ = ["index", "modules", "custom_doc_links", "git_url"] index = {"log_it": "00_tspecscores.ipynb", "tsi": "00_tspecscores.ipynb", "spm": "00_tspecscores.ipynb", "zscore": "00_tspecscores.ipynb", "tau": "00_tspecscores.ipynb", "ts_func": "00_tspecscores.ipynb", "calc_ts": "00_tspecscores.ipynb"} modules = ["tspecscores.py"] doc_url = "https://morriso1.github.io/tspecscores/" git_url = "https://github.com/morriso1/tspecscores/tree/main/" def custom_doc_links(name): return None
__all__ = ['index', 'modules', 'custom_doc_links', 'git_url'] index = {'log_it': '00_tspecscores.ipynb', 'tsi': '00_tspecscores.ipynb', 'spm': '00_tspecscores.ipynb', 'zscore': '00_tspecscores.ipynb', 'tau': '00_tspecscores.ipynb', 'ts_func': '00_tspecscores.ipynb', 'calc_ts': '00_tspecscores.ipynb'} modules = ['tspecscores.py'] doc_url = 'https://morriso1.github.io/tspecscores/' git_url = 'https://github.com/morriso1/tspecscores/tree/main/' def custom_doc_links(name): return None
n = int(input()) s = set(map(int, input().split())) for x in range(int(input())): method, *args = input().split() getattr(s, method)(*map(int, args)) print(sum(s))
n = int(input()) s = set(map(int, input().split())) for x in range(int(input())): (method, *args) = input().split() getattr(s, method)(*map(int, args)) print(sum(s))
# Copyright (c) 2011 Google Inc. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. { 'includes': [ 'mini_chromium/build/common.gypi', ], 'targets': [ { 'target_name': 'csfde', 'type': 'executable', 'include_dirs': [ 'mini_chromium', ], 'sources': [ 'csfde.mm', 'mini_chromium/base/basictypes.h', 'mini_chromium/base/compiler_specific.h', 'mini_chromium/base/logging.h', 'mini_chromium/base/logging.cc', 'mini_chromium/base/mac/scoped_cftyperef.h', 'mini_chromium/base/mac/scoped_nsautorelease_pool.h', 'mini_chromium/base/mac/scoped_nsautorelease_pool.mm', 'mini_chromium/base/memory/scoped_nsobject.h', 'mini_chromium/base/safe_strerror_posix.h', 'mini_chromium/base/safe_strerror_posix.cc', 'mini_chromium/build/build_config.h', 'mini_chromium/chrome/browser/mac/scoped_ioobject.h', ], 'libraries': [ '$(SDKROOT)/System/Library/Frameworks/CoreFoundation.framework', '$(SDKROOT)/System/Library/Frameworks/DiskArbitration.framework', '$(SDKROOT)/System/Library/Frameworks/Foundation.framework', '$(SDKROOT)/System/Library/Frameworks/IOKit.framework', '$(SDKROOT)/System/Library/Frameworks/OpenDirectory.framework', '$(SDKROOT)/System/Library/PrivateFrameworks/DiskManagement.framework', '$(SDKROOT)/System/Library/PrivateFrameworks/EFILogin.framework', '$(SDKROOT)/usr/lib/libcsfde.dylib', ], 'xcode_settings': { 'ARCHS': [ 'x86_64', 'i386', ], 'FRAMEWORK_SEARCH_PATHS': [ '$(SDKROOT)/System/Library/PrivateFrameworks', ], }, }, ], }
{'includes': ['mini_chromium/build/common.gypi'], 'targets': [{'target_name': 'csfde', 'type': 'executable', 'include_dirs': ['mini_chromium'], 'sources': ['csfde.mm', 'mini_chromium/base/basictypes.h', 'mini_chromium/base/compiler_specific.h', 'mini_chromium/base/logging.h', 'mini_chromium/base/logging.cc', 'mini_chromium/base/mac/scoped_cftyperef.h', 'mini_chromium/base/mac/scoped_nsautorelease_pool.h', 'mini_chromium/base/mac/scoped_nsautorelease_pool.mm', 'mini_chromium/base/memory/scoped_nsobject.h', 'mini_chromium/base/safe_strerror_posix.h', 'mini_chromium/base/safe_strerror_posix.cc', 'mini_chromium/build/build_config.h', 'mini_chromium/chrome/browser/mac/scoped_ioobject.h'], 'libraries': ['$(SDKROOT)/System/Library/Frameworks/CoreFoundation.framework', '$(SDKROOT)/System/Library/Frameworks/DiskArbitration.framework', '$(SDKROOT)/System/Library/Frameworks/Foundation.framework', '$(SDKROOT)/System/Library/Frameworks/IOKit.framework', '$(SDKROOT)/System/Library/Frameworks/OpenDirectory.framework', '$(SDKROOT)/System/Library/PrivateFrameworks/DiskManagement.framework', '$(SDKROOT)/System/Library/PrivateFrameworks/EFILogin.framework', '$(SDKROOT)/usr/lib/libcsfde.dylib'], 'xcode_settings': {'ARCHS': ['x86_64', 'i386'], 'FRAMEWORK_SEARCH_PATHS': ['$(SDKROOT)/System/Library/PrivateFrameworks']}}]}
''' Given a binary tree, return the level order traversal of its nodes' values. (ie, from left to right, level by level). For example: Given binary tree [3,9,20,null,null,15,7], 3 / \ 9 20 / \ 15 7 return its level order traversal as: [ [3], [9,20], [15,7] ] ''' # Definition for a binary tree node. # class TreeNode: # def __init__(self, val=0, left=None, right=None): # self.val = val # self.left = left # self.right = right class Solution: def levelOrder(self, root: TreeNode) -> List[List[int]]: stack = [[root]] self.final = [] while stack: cur_list = [] onelist = stack.pop() tmp_list = [] for x in onelist: if x != None: tmp_list.append(x.val) if x.left != None: cur_list.append(x.left) if x.right != None: cur_list.append(x.right) if len(cur_list) > 0: stack.append(cur_list) if len(tmp_list) > 0: self.final.append(tmp_list) return self.final
""" Given a binary tree, return the level order traversal of its nodes' values. (ie, from left to right, level by level). For example: Given binary tree [3,9,20,null,null,15,7], 3 / 9 20 / 15 7 return its level order traversal as: [ [3], [9,20], [15,7] ] """ class Solution: def level_order(self, root: TreeNode) -> List[List[int]]: stack = [[root]] self.final = [] while stack: cur_list = [] onelist = stack.pop() tmp_list = [] for x in onelist: if x != None: tmp_list.append(x.val) if x.left != None: cur_list.append(x.left) if x.right != None: cur_list.append(x.right) if len(cur_list) > 0: stack.append(cur_list) if len(tmp_list) > 0: self.final.append(tmp_list) return self.final
# model model = Model() i1 = Input("op1", "TENSOR_QUANT8_ASYMM", "{3,4}, 0.5f, 1") # a vector of input k = Int32Scalar("k", 2) i2 = Output("op2", "TENSOR_QUANT8_ASYMM", "{3,2}, 0.5f, 1") # values of output i3 = Output("op3", "TENSOR_INT32", "{3,2}") # indexes of output model = model.Operation("TOPK_V2", i1, k).To([i2, i3]) # Example 1. Input in operand 0, input0 = {i1: # input 0 [3, 4, 5, 6, 7, 8, 9, 1, 2, 18, 19, 11]} output0 = {i2: # output 0 [6, 5, 9, 8, 19, 18], i3: # output 1 [3, 2, 2, 1, 2, 1]} # Instantiate an example Example((input0, output0))
model = model() i1 = input('op1', 'TENSOR_QUANT8_ASYMM', '{3,4}, 0.5f, 1') k = int32_scalar('k', 2) i2 = output('op2', 'TENSOR_QUANT8_ASYMM', '{3,2}, 0.5f, 1') i3 = output('op3', 'TENSOR_INT32', '{3,2}') model = model.Operation('TOPK_V2', i1, k).To([i2, i3]) input0 = {i1: [3, 4, 5, 6, 7, 8, 9, 1, 2, 18, 19, 11]} output0 = {i2: [6, 5, 9, 8, 19, 18], i3: [3, 2, 2, 1, 2, 1]} example((input0, output0))
def memmove(data, dest, src, n): '''Copy data in the array from ``src`` to ``dest``. Like ``memmove(3)`` in C, the source and destination may overlap. Arguments: data (list): The list being manipulated. dest (int): The destination index of the copy. src (int): The source index of the copy. n (int): The number of elements to copy. ''' if dest < src: for i in range(n): data[dest + i] = data[src + i] else: for i in range(n): data[dest + n - i - 1] = data[src + n - i - 1] def test_memmove(): data = ['_', '_', 'A', 'B', 'C', '_', '_', '_'] data1 = data.copy() memmove(data1, 5, 2, 3) assert data1 == ['_', '_', 'A', 'B', 'C', 'A', 'B', 'C'] data2 = data.copy() memmove(data2, 3, 2, 3) assert data2 == ['_', '_', 'A', 'A', 'B', 'C', '_', '_'] data3 = data.copy() memmove(data3, 1, 2, 3) assert data3 == ['_', 'A', 'B', 'C', 'C', '_', '_', '_'] data4 = data.copy() memmove(data4, 2, 2, 3) assert data4 == ['_', '_', 'A', 'B', 'C', '_', '_', '_']
def memmove(data, dest, src, n): """Copy data in the array from ``src`` to ``dest``. Like ``memmove(3)`` in C, the source and destination may overlap. Arguments: data (list): The list being manipulated. dest (int): The destination index of the copy. src (int): The source index of the copy. n (int): The number of elements to copy. """ if dest < src: for i in range(n): data[dest + i] = data[src + i] else: for i in range(n): data[dest + n - i - 1] = data[src + n - i - 1] def test_memmove(): data = ['_', '_', 'A', 'B', 'C', '_', '_', '_'] data1 = data.copy() memmove(data1, 5, 2, 3) assert data1 == ['_', '_', 'A', 'B', 'C', 'A', 'B', 'C'] data2 = data.copy() memmove(data2, 3, 2, 3) assert data2 == ['_', '_', 'A', 'A', 'B', 'C', '_', '_'] data3 = data.copy() memmove(data3, 1, 2, 3) assert data3 == ['_', 'A', 'B', 'C', 'C', '_', '_', '_'] data4 = data.copy() memmove(data4, 2, 2, 3) assert data4 == ['_', '_', 'A', 'B', 'C', '_', '_', '_']
def insertion_sort(arr): for i in range(len(arr)): cursor = arr[i] pos = i while pos > 0 and arr[pos - 1] > cursor: arr[pos] = arr[pos - 1] pos = pos - 1 arr[pos] = cursor return arr a = insertion_sort([3, 2, 5, 4, 1, 0]) print(a)
def insertion_sort(arr): for i in range(len(arr)): cursor = arr[i] pos = i while pos > 0 and arr[pos - 1] > cursor: arr[pos] = arr[pos - 1] pos = pos - 1 arr[pos] = cursor return arr a = insertion_sort([3, 2, 5, 4, 1, 0]) print(a)
''' Juan Ivan Medina Martinez Exercise 5.6 ''' def stepLife(yourAge): if isinstance(yourAge,int): if(yourAge>=0): if(yourAge<2): print("Yo are an baby.") elif(4>yourAge>=2): print("You are an toddler.") elif(13>yourAge>=4): print("You are an kid.") elif(20>yourAge>=13): print("You are an teenager.") elif(65>yourAge>=20): print("You are an adult.") else: print("You are an elder.") else: print("Sorry, only positives.") else: print("Sorry, only 'int'.") if __name__ == '__main__': print(" *** Welcome to stageLife.py ***") age=input("Please enter your age: ") #if isinstance(age,int): # stepLife(age)
""" Juan Ivan Medina Martinez Exercise 5.6 """ def step_life(yourAge): if isinstance(yourAge, int): if yourAge >= 0: if yourAge < 2: print('Yo are an baby.') elif 4 > yourAge >= 2: print('You are an toddler.') elif 13 > yourAge >= 4: print('You are an kid.') elif 20 > yourAge >= 13: print('You are an teenager.') elif 65 > yourAge >= 20: print('You are an adult.') else: print('You are an elder.') else: print('Sorry, only positives.') else: print("Sorry, only 'int'.") if __name__ == '__main__': print(' *** Welcome to stageLife.py ***') age = input('Please enter your age: ')
for i in range(10): n=int(input()) if(n< 1): n = 1 print("X[%d] = %d" % (i, n))
for i in range(10): n = int(input()) if n < 1: n = 1 print('X[%d] = %d' % (i, n))
class GithubRequest(): def clone(self): raise NotImplementedError() def auth(self): raise NotImplementedError() def execute(self): raise NotImplementedError()
class Githubrequest: def clone(self): raise not_implemented_error() def auth(self): raise not_implemented_error() def execute(self): raise not_implemented_error()
# AUTOGENERATED BY NBDEV! DO NOT EDIT! __all__ = ["index", "modules", "custom_doc_links", "git_url"] index = {"h3.libh3.experimentalH3ToLocalIj.restype": "00_core.ipynb", "h3.libh3.experimentalH3ToLocalIj.argtypes": "00_core.ipynb", "local_ij_delta": "00_core.ipynb", "local_ij_delta_to_class": "00_core.ipynb", "coordinatesToH3IndexSequence": "00_core.ipynb", "window": "00_core.ipynb", "generate_sequences_with_next_hex_class": "00_core.ipynb", "generate_sequences_with_next_hex_class_from_path": "00_core.ipynb", "parse_strava_gpx": "00_core.ipynb"} modules = ["core.py"] doc_url = "https://jaredwinick.github.io/h3_sequence/" git_url = "https://github.com/jaredwinick/h3_sequence/tree/master/" def custom_doc_links(name): return None
__all__ = ['index', 'modules', 'custom_doc_links', 'git_url'] index = {'h3.libh3.experimentalH3ToLocalIj.restype': '00_core.ipynb', 'h3.libh3.experimentalH3ToLocalIj.argtypes': '00_core.ipynb', 'local_ij_delta': '00_core.ipynb', 'local_ij_delta_to_class': '00_core.ipynb', 'coordinatesToH3IndexSequence': '00_core.ipynb', 'window': '00_core.ipynb', 'generate_sequences_with_next_hex_class': '00_core.ipynb', 'generate_sequences_with_next_hex_class_from_path': '00_core.ipynb', 'parse_strava_gpx': '00_core.ipynb'} modules = ['core.py'] doc_url = 'https://jaredwinick.github.io/h3_sequence/' git_url = 'https://github.com/jaredwinick/h3_sequence/tree/master/' def custom_doc_links(name): return None
#!/usr/bin/python coins = [1,5,6,8] target = 51 def cons(e, xs): ys = xs.copy() ys.append(e) return ys # DP solution find the least number of coins for a given total # minCoins[i] is list of coins needed to make i # O(c * y) compared to O(c ^ n) def search(): minCoins = [[]] * (target + 1) for i in range(1, target+1): for c in coins: if i == c: minCoins[i] = [c] elif i > c: prev = len(minCoins[i-c]) curr = len(minCoins[i]) if prev > 0 and (curr == 0 or prev + 1 < curr): minCoins[i] = cons(c, minCoins[i-c]) # print(minCoins) return minCoins[target] soln = search() print(f'min coins {len(soln)}') print(soln)
coins = [1, 5, 6, 8] target = 51 def cons(e, xs): ys = xs.copy() ys.append(e) return ys def search(): min_coins = [[]] * (target + 1) for i in range(1, target + 1): for c in coins: if i == c: minCoins[i] = [c] elif i > c: prev = len(minCoins[i - c]) curr = len(minCoins[i]) if prev > 0 and (curr == 0 or prev + 1 < curr): minCoins[i] = cons(c, minCoins[i - c]) return minCoins[target] soln = search() print(f'min coins {len(soln)}') print(soln)
#! /usr/bin/python3 def a(k, x1, x2, x3, x4, x5): def b(): def c(): return a(k, x1, x2, x3, x4, x5) nonlocal k k -= 1 return a(k, c(), x1, x2, x3, x4) return x4 + x5 if k <= 0 else b() for i in range(0,8): print(a(i,1,-1,-1,1,0))
def a(k, x1, x2, x3, x4, x5): def b(): def c(): return a(k, x1, x2, x3, x4, x5) nonlocal k k -= 1 return a(k, c(), x1, x2, x3, x4) return x4 + x5 if k <= 0 else b() for i in range(0, 8): print(a(i, 1, -1, -1, 1, 0))
class Match(): def __init__(self, span, value): self.span = span self.token = span.text self.value = value self.start = span[0].idx self.end = span[0].idx + len(span.text) def contains(self, other): return self.start <= other.start and self.end >= other.end def __repr__(self): return 'Match (%s, %d, %d)' % \ (self.value, self.start, self.end)
class Match: def __init__(self, span, value): self.span = span self.token = span.text self.value = value self.start = span[0].idx self.end = span[0].idx + len(span.text) def contains(self, other): return self.start <= other.start and self.end >= other.end def __repr__(self): return 'Match (%s, %d, %d)' % (self.value, self.start, self.end)
class Mapping(): # TODO: add support for one_of=str(group) which extends required # It should be used to group multiple mappings together and only one of # the mapping of the group can and has to be set. Mappings of one_of # cannot have default value. def __init__(self, name, source=None, required=True, default=None, inherited=False, func=None, allowed_types=str): self.name = name self.source = source if source is not None else name self.required = required self.default = default self.inherited = inherited self.func = func self.allowed_types = allowed_types if not isinstance(allowed_types, tuple): self.allowed_types = (self.allowed_types, ) if self.required == False and self.default is None and type(None) not in self.allowed_types: self.allowed_types = self.allowed_types + (type(None), ) # Enable using mapping in dict constructor def __iter__(self): yield self.name yield self
class Mapping: def __init__(self, name, source=None, required=True, default=None, inherited=False, func=None, allowed_types=str): self.name = name self.source = source if source is not None else name self.required = required self.default = default self.inherited = inherited self.func = func self.allowed_types = allowed_types if not isinstance(allowed_types, tuple): self.allowed_types = (self.allowed_types,) if self.required == False and self.default is None and (type(None) not in self.allowed_types): self.allowed_types = self.allowed_types + (type(None),) def __iter__(self): yield self.name yield self
# generated from genmsg/cmake/pkg-genmsg.context.in messages_str = "/home/ubuntu/catkin_ws/src/navigation/costmap_2d/msg/VoxelGrid.msg" services_str = "" pkg_name = "costmap_2d" dependencies_str = "std_msgs;geometry_msgs;map_msgs" langs = "gencpp;genlisp;genpy" dep_include_paths_str = "costmap_2d;/home/ubuntu/catkin_ws/src/navigation/costmap_2d/msg;std_msgs;/opt/ros/indigo/share/std_msgs/cmake/../msg;geometry_msgs;/opt/ros/indigo/share/geometry_msgs/cmake/../msg;map_msgs;/opt/ros/indigo/share/map_msgs/cmake/../msg;sensor_msgs;/opt/ros/indigo/share/sensor_msgs/cmake/../msg;nav_msgs;/opt/ros/indigo/share/nav_msgs/cmake/../msg;actionlib_msgs;/opt/ros/indigo/share/actionlib_msgs/cmake/../msg" PYTHON_EXECUTABLE = "/usr/bin/python" package_has_static_sources = '' == 'TRUE' genmsg_check_deps_script = "/opt/ros/indigo/share/genmsg/cmake/../../../lib/genmsg/genmsg_check_deps.py"
messages_str = '/home/ubuntu/catkin_ws/src/navigation/costmap_2d/msg/VoxelGrid.msg' services_str = '' pkg_name = 'costmap_2d' dependencies_str = 'std_msgs;geometry_msgs;map_msgs' langs = 'gencpp;genlisp;genpy' dep_include_paths_str = 'costmap_2d;/home/ubuntu/catkin_ws/src/navigation/costmap_2d/msg;std_msgs;/opt/ros/indigo/share/std_msgs/cmake/../msg;geometry_msgs;/opt/ros/indigo/share/geometry_msgs/cmake/../msg;map_msgs;/opt/ros/indigo/share/map_msgs/cmake/../msg;sensor_msgs;/opt/ros/indigo/share/sensor_msgs/cmake/../msg;nav_msgs;/opt/ros/indigo/share/nav_msgs/cmake/../msg;actionlib_msgs;/opt/ros/indigo/share/actionlib_msgs/cmake/../msg' python_executable = '/usr/bin/python' package_has_static_sources = '' == 'TRUE' genmsg_check_deps_script = '/opt/ros/indigo/share/genmsg/cmake/../../../lib/genmsg/genmsg_check_deps.py'
# Language: Python 3 i = 4 d = 4.0 s = 'HackerRank ' int2 = int(input()) double2 = float(input()) string2 = input() int2_i = i + int2 double2_d = d + double2 string2_s = s + string2 print(int2_i, double2_d, string2_s, sep="\n")
i = 4 d = 4.0 s = 'HackerRank ' int2 = int(input()) double2 = float(input()) string2 = input() int2_i = i + int2 double2_d = d + double2 string2_s = s + string2 print(int2_i, double2_d, string2_s, sep='\n')
a = list(map(int,input().split())) def heapsort(arr,e): i=1 while i<e: upheap(arr,i) i+=1 i-=1 while i>0: tmp=arr[0] arr[0]=arr[i] arr[i]=tmp i-=1 downheap(arr,i) def leftC(i): return int(((i) + 1) * 2 - 1) def rightC(i): return int(((i) + 1) * 2) def parent(i): return int(((i) + 1) / 2 - 1) def upheap(arr,n): while n>0: m = parent(n) if arr[m]<arr[n]: tmp=arr[m] arr[m]=arr[n] arr[n]=tmp else: break n=m def downheap(arr,n): m=0 tmp=0 while True: lc=leftC(m) rc=rightC(m) if lc>=n: break if arr[lc]>arr[tmp]: tmp=lc if rc<n and arr[rc]>arr[tmp]: tmp=rc if tmp==m: break swp=arr[tmp] arr[tmp]=arr[m] arr[m]=swp m=tmp heapsort(a,len(a)) #print(a)
a = list(map(int, input().split())) def heapsort(arr, e): i = 1 while i < e: upheap(arr, i) i += 1 i -= 1 while i > 0: tmp = arr[0] arr[0] = arr[i] arr[i] = tmp i -= 1 downheap(arr, i) def left_c(i): return int((i + 1) * 2 - 1) def right_c(i): return int((i + 1) * 2) def parent(i): return int((i + 1) / 2 - 1) def upheap(arr, n): while n > 0: m = parent(n) if arr[m] < arr[n]: tmp = arr[m] arr[m] = arr[n] arr[n] = tmp else: break n = m def downheap(arr, n): m = 0 tmp = 0 while True: lc = left_c(m) rc = right_c(m) if lc >= n: break if arr[lc] > arr[tmp]: tmp = lc if rc < n and arr[rc] > arr[tmp]: tmp = rc if tmp == m: break swp = arr[tmp] arr[tmp] = arr[m] arr[m] = swp m = tmp heapsort(a, len(a))
fname = input('Enter the file name') try: f = open(fname) except: print('The file could not be opened') quit() total = 0 count = 0 for line in f: if 'X-DSPAM-Confidence' in line: print(line) i = line.find(': ') + 1 total += float(line[i:len(line)]) count += 1 print('Average spam confidence:', total / count)
fname = input('Enter the file name') try: f = open(fname) except: print('The file could not be opened') quit() total = 0 count = 0 for line in f: if 'X-DSPAM-Confidence' in line: print(line) i = line.find(': ') + 1 total += float(line[i:len(line)]) count += 1 print('Average spam confidence:', total / count)
# -*- coding: utf-8 -*- # @Author : Ecohnoch(xcy) # @File : configs.py # @Function : TODO app_redis_hostname = 'my_redis' app_redis_port = 6379 app_info_key = 'INFO_KEY' app_response_key = 'RESPONSE_KEY' app_error_key = 'ERROR_KEY' app_kafka_host = 'my_kafka:9092' app_kafka_topic = 'user_queue' app_kafka_key = 'user_requests' app_group_id = 'calculator' app_web_host = 'http://face_storage:12350' app_file_interface = '/get_image_file' call_interval = 1 sleep_interval = 7
app_redis_hostname = 'my_redis' app_redis_port = 6379 app_info_key = 'INFO_KEY' app_response_key = 'RESPONSE_KEY' app_error_key = 'ERROR_KEY' app_kafka_host = 'my_kafka:9092' app_kafka_topic = 'user_queue' app_kafka_key = 'user_requests' app_group_id = 'calculator' app_web_host = 'http://face_storage:12350' app_file_interface = '/get_image_file' call_interval = 1 sleep_interval = 7
class DjangoUser(object): def dangerous_method(self): pass def safe_method(self): pass def get_user(): # without an inference tip, this will be un-inferrable return DjangoUser.objects.get(id=1337) user = get_user() # dangerous_method call #1 user.dangerous_method() def get_users(): return DjangoUser.objects.bulk_create() # dangerous_method call #2 users = get_users() for user in users: user.dangerous_method() # dangerous_method call #3 # Chained call all_users = DjangoUser.objects.all() all_users.latest().dangerous_method() # dangerous_method call #4 all_users.filter().order_by().all().first().dangerous_method() # dangerous_method call #5 # vanilla python method call DjangoUser().dangerous_method() # not a call DjangoUser.dangerous_method def dangerous_method(): pass # not a call on DjangoUser dangerous_method() DjangoUser().safe_method()
class Djangouser(object): def dangerous_method(self): pass def safe_method(self): pass def get_user(): return DjangoUser.objects.get(id=1337) user = get_user() user.dangerous_method() def get_users(): return DjangoUser.objects.bulk_create() users = get_users() for user in users: user.dangerous_method() all_users = DjangoUser.objects.all() all_users.latest().dangerous_method() all_users.filter().order_by().all().first().dangerous_method() django_user().dangerous_method() DjangoUser.dangerous_method def dangerous_method(): pass dangerous_method() django_user().safe_method()
[ i+j for i in range(1) for j in range(2) ] { x * x for x in seq } { y.attr : z() for y, z in mapping }
[i + j for i in range(1) for j in range(2)] {x * x for x in seq} {y.attr: z() for (y, z) in mapping}
# Adding a new method during runtime: class A: def foo(self): print('A.foo()') x = A() y = A() x.foo() # A.foo() y.foo() # A.foo() def foo2(self): print('A.foo2()') A.foo2 = foo2 x.foo2() # A.foo2() y.foo2() # A.foo2()
class A: def foo(self): print('A.foo()') x = a() y = a() x.foo() y.foo() def foo2(self): print('A.foo2()') A.foo2 = foo2 x.foo2() y.foo2()
# -*- coding: utf-8 -*- def main(): a = int(input()) b = int(input()) c = int(input()) d = int(input()) p = int(input()) print(min(a * p, b + max(0, (p - c)) * d)) if __name__ == '__main__': main()
def main(): a = int(input()) b = int(input()) c = int(input()) d = int(input()) p = int(input()) print(min(a * p, b + max(0, p - c) * d)) if __name__ == '__main__': main()