content
stringlengths 7
1.05M
| fixed_cases
stringlengths 1
1.28M
|
|---|---|
# -*- coding: utf-8 -*-
"""
"""
#Function that checks whether a string can be converted into a float
def isfloat(value):
try:
float(value)
return True
except ValueError:
return False
#Function that checks whether a string can be converted into an integer
def isint(value):
try:
int(value)
return True
except ValueError:
return False
|
"""
"""
def isfloat(value):
try:
float(value)
return True
except ValueError:
return False
def isint(value):
try:
int(value)
return True
except ValueError:
return False
|
winClass = window.get_active_class()
if winClass not in ("code.Code", "emacs.Emacs"):
# Regular window
keyboard.send_keys('<home>')
else:
# VS Code
keyboard.send_keys('<alt>+a')
|
win_class = window.get_active_class()
if winClass not in ('code.Code', 'emacs.Emacs'):
keyboard.send_keys('<home>')
else:
keyboard.send_keys('<alt>+a')
|
""" Module to manage affiliate marketing links
Purpose: allow managing affiliate marketing links in one place
Author: Tom W. Hartung
Date: Winter, 2019
Copyright: (c) 2019 Tom W. Hartung, Groja.com, and JooMoo Websites LLC.
Reference:
"""
class AffiliateLinks:
"""
Use python dictionaries to make it easier to update affiliate links
"""
#
# Source Link Dictionaries:
#
afl_default = {
'ah_by_ax': 'https://groja.com/conversion/afl_default',
'ah_by_chernow': 'https://groja.com/conversion/afl_default',
'bf_by_isaacson': 'https://groja.com/conversion/afl_default',
'big_sleep': 'https://groja.com/conversion/afl_default',
'chinatown': 'https://groja.com/conversion/afl_default',
'fawlty_towers': 'https://groja.com/conversion/afl_default',
'fn_encyclopedia': 'https://groja.com/conversion/afl_default',
'gw_by_chernow': 'https://groja.com/conversion/afl_default',
'ja_by_ax': 'https://groja.com/conversion/afl_default',
'ja_by_hbo': 'https://groja.com/conversion/afl_default',
'ja_by_mccullough': 'https://groja.com/conversion/afl_default',
'kiss_me_deadly': 'https://groja.com/conversion/afl_default',
'maltese_falcon': 'https://groja.com/conversion/afl_default',
'ph_by_kukla': 'https://groja.com/conversion/afl_default',
'star_trek_tos': 'https://groja.com/conversion/afl_default',
'star_wars_psych': 'https://groja.com/conversion/afl_default',
'tj_himself': 'https://groja.com/conversion/afl_default',
'tj_by_burns': 'https://groja.com/conversion/afl_default',
'white_heat': 'https://groja.com/conversion/afl_default',
'x_files': 'https://groja.com/conversion/afl_default',
'xxx': 'https://groja.com/conversion/afl_default',
}
afl_none = {
'ah_by_ax': '',
'ah_by_chernow': '',
'bf_by_isaacson': '',
'big_sleep': '',
'chinatown': '',
'fawlty_towers': '',
'fn_encyclopedia': '',
'gw_by_chernow': '',
'ja_by_ax': '',
'ja_by_hbo': '',
'ja_by_mccullough': '',
'kiss_me_deadly': '',
'maltese_falcon': '',
'ph_by_kukla': '',
'star_trek_tos': '',
'star_wars_psych': '',
'tj_by_burns': '',
'tj_himself': '',
'white_heat': '',
'x_files': '',
'xxx': '',
}
#
# Active Link Dictionaries:
#
afl_content = {}
afl_button = {}
def __init__(self):
"""
Assign source links to active links
Use expressions like this to reference the values in templates
{{ afl_content.xxx }}
{{ afl_button.xxx }}
"""
self.afl_content['ah_by_ax'] = self.afl_default['ah_by_ax']
self.afl_button['ah_by_ax'] = self.afl_default['ah_by_ax']
self.afl_content['ah_by_chernow'] = self.afl_default['ah_by_chernow']
self.afl_button['ah_by_chernow'] = self.afl_default['ah_by_chernow']
self.afl_content['bf_by_isaacson'] = self.afl_default['bf_by_isaacson']
self.afl_button['bf_by_isaacson'] = self.afl_default['bf_by_isaacson']
self.afl_content['big_sleep'] = self.afl_default['big_sleep']
self.afl_button['big_sleep'] = self.afl_default['big_sleep']
self.afl_content['chinatown'] = self.afl_default['chinatown']
self.afl_button['chinatown'] = self.afl_default['chinatown']
self.afl_content['fawlty_towers'] = self.afl_default['fawlty_towers']
self.afl_button['fawlty_towers'] = self.afl_default['fawlty_towers']
self.afl_content['fn_encyclopedia'] = self.afl_default['fn_encyclopedia']
self.afl_button['fn_encyclopedia'] = self.afl_default['fn_encyclopedia']
self.afl_content['gw_by_chernow'] = self.afl_default['gw_by_chernow']
self.afl_button['gw_by_chernow'] = self.afl_default['gw_by_chernow']
self.afl_content['ja_by_ax'] = self.afl_default['ja_by_ax']
self.afl_button['ja_by_ax'] = self.afl_default['ja_by_ax']
self.afl_content['ja_by_hbo'] = self.afl_default['ja_by_hbo']
self.afl_button['ja_by_hbo'] = self.afl_default['ja_by_hbo']
self.afl_content['ja_by_mccullough'] = self.afl_default['ja_by_mccullough']
self.afl_button['ja_by_mccullough'] = self.afl_default['ja_by_mccullough']
self.afl_content['kiss_me_deadly'] = self.afl_default['kiss_me_deadly']
self.afl_button['kiss_me_deadly'] = self.afl_default['kiss_me_deadly']
self.afl_content['maltese_falcon'] = self.afl_default['maltese_falcon']
self.afl_button['maltese_falcon'] = self.afl_default['maltese_falcon']
self.afl_content['ph_by_kukla'] = self.afl_default['ph_by_kukla']
self.afl_button['ph_by_kukla'] = self.afl_default['ph_by_kukla']
self.afl_content['star_trek_tos'] = self.afl_default['star_trek_tos']
self.afl_button['star_trek_tos'] = self.afl_default['star_trek_tos']
self.afl_content['star_wars_psych'] = self.afl_default['star_wars_psych']
self.afl_button['star_wars_psych'] = self.afl_default['star_wars_psych']
self.afl_content['tj_by_burns'] = self.afl_default['tj_by_burns']
self.afl_button['tj_by_burns'] = self.afl_default['tj_by_burns']
self.afl_content['tj_himself'] = self.afl_default['tj_himself']
self.afl_button['tj_himself'] = self.afl_default['tj_himself']
self.afl_content['white_heat'] = self.afl_default['white_heat']
self.afl_button['white_heat'] = self.afl_default['white_heat']
self.afl_content['x_files'] = self.afl_default['x_files']
self.afl_button['x_files'] = self.afl_default['x_files']
self.afl_content['xxx'] = self.afl_default['xxx']
self.afl_button['xxx'] = self.afl_default['xxx']
|
""" Module to manage affiliate marketing links
Purpose: allow managing affiliate marketing links in one place
Author: Tom W. Hartung
Date: Winter, 2019
Copyright: (c) 2019 Tom W. Hartung, Groja.com, and JooMoo Websites LLC.
Reference:
"""
class Affiliatelinks:
"""
Use python dictionaries to make it easier to update affiliate links
"""
afl_default = {'ah_by_ax': 'https://groja.com/conversion/afl_default', 'ah_by_chernow': 'https://groja.com/conversion/afl_default', 'bf_by_isaacson': 'https://groja.com/conversion/afl_default', 'big_sleep': 'https://groja.com/conversion/afl_default', 'chinatown': 'https://groja.com/conversion/afl_default', 'fawlty_towers': 'https://groja.com/conversion/afl_default', 'fn_encyclopedia': 'https://groja.com/conversion/afl_default', 'gw_by_chernow': 'https://groja.com/conversion/afl_default', 'ja_by_ax': 'https://groja.com/conversion/afl_default', 'ja_by_hbo': 'https://groja.com/conversion/afl_default', 'ja_by_mccullough': 'https://groja.com/conversion/afl_default', 'kiss_me_deadly': 'https://groja.com/conversion/afl_default', 'maltese_falcon': 'https://groja.com/conversion/afl_default', 'ph_by_kukla': 'https://groja.com/conversion/afl_default', 'star_trek_tos': 'https://groja.com/conversion/afl_default', 'star_wars_psych': 'https://groja.com/conversion/afl_default', 'tj_himself': 'https://groja.com/conversion/afl_default', 'tj_by_burns': 'https://groja.com/conversion/afl_default', 'white_heat': 'https://groja.com/conversion/afl_default', 'x_files': 'https://groja.com/conversion/afl_default', 'xxx': 'https://groja.com/conversion/afl_default'}
afl_none = {'ah_by_ax': '', 'ah_by_chernow': '', 'bf_by_isaacson': '', 'big_sleep': '', 'chinatown': '', 'fawlty_towers': '', 'fn_encyclopedia': '', 'gw_by_chernow': '', 'ja_by_ax': '', 'ja_by_hbo': '', 'ja_by_mccullough': '', 'kiss_me_deadly': '', 'maltese_falcon': '', 'ph_by_kukla': '', 'star_trek_tos': '', 'star_wars_psych': '', 'tj_by_burns': '', 'tj_himself': '', 'white_heat': '', 'x_files': '', 'xxx': ''}
afl_content = {}
afl_button = {}
def __init__(self):
"""
Assign source links to active links
Use expressions like this to reference the values in templates
{{ afl_content.xxx }}
{{ afl_button.xxx }}
"""
self.afl_content['ah_by_ax'] = self.afl_default['ah_by_ax']
self.afl_button['ah_by_ax'] = self.afl_default['ah_by_ax']
self.afl_content['ah_by_chernow'] = self.afl_default['ah_by_chernow']
self.afl_button['ah_by_chernow'] = self.afl_default['ah_by_chernow']
self.afl_content['bf_by_isaacson'] = self.afl_default['bf_by_isaacson']
self.afl_button['bf_by_isaacson'] = self.afl_default['bf_by_isaacson']
self.afl_content['big_sleep'] = self.afl_default['big_sleep']
self.afl_button['big_sleep'] = self.afl_default['big_sleep']
self.afl_content['chinatown'] = self.afl_default['chinatown']
self.afl_button['chinatown'] = self.afl_default['chinatown']
self.afl_content['fawlty_towers'] = self.afl_default['fawlty_towers']
self.afl_button['fawlty_towers'] = self.afl_default['fawlty_towers']
self.afl_content['fn_encyclopedia'] = self.afl_default['fn_encyclopedia']
self.afl_button['fn_encyclopedia'] = self.afl_default['fn_encyclopedia']
self.afl_content['gw_by_chernow'] = self.afl_default['gw_by_chernow']
self.afl_button['gw_by_chernow'] = self.afl_default['gw_by_chernow']
self.afl_content['ja_by_ax'] = self.afl_default['ja_by_ax']
self.afl_button['ja_by_ax'] = self.afl_default['ja_by_ax']
self.afl_content['ja_by_hbo'] = self.afl_default['ja_by_hbo']
self.afl_button['ja_by_hbo'] = self.afl_default['ja_by_hbo']
self.afl_content['ja_by_mccullough'] = self.afl_default['ja_by_mccullough']
self.afl_button['ja_by_mccullough'] = self.afl_default['ja_by_mccullough']
self.afl_content['kiss_me_deadly'] = self.afl_default['kiss_me_deadly']
self.afl_button['kiss_me_deadly'] = self.afl_default['kiss_me_deadly']
self.afl_content['maltese_falcon'] = self.afl_default['maltese_falcon']
self.afl_button['maltese_falcon'] = self.afl_default['maltese_falcon']
self.afl_content['ph_by_kukla'] = self.afl_default['ph_by_kukla']
self.afl_button['ph_by_kukla'] = self.afl_default['ph_by_kukla']
self.afl_content['star_trek_tos'] = self.afl_default['star_trek_tos']
self.afl_button['star_trek_tos'] = self.afl_default['star_trek_tos']
self.afl_content['star_wars_psych'] = self.afl_default['star_wars_psych']
self.afl_button['star_wars_psych'] = self.afl_default['star_wars_psych']
self.afl_content['tj_by_burns'] = self.afl_default['tj_by_burns']
self.afl_button['tj_by_burns'] = self.afl_default['tj_by_burns']
self.afl_content['tj_himself'] = self.afl_default['tj_himself']
self.afl_button['tj_himself'] = self.afl_default['tj_himself']
self.afl_content['white_heat'] = self.afl_default['white_heat']
self.afl_button['white_heat'] = self.afl_default['white_heat']
self.afl_content['x_files'] = self.afl_default['x_files']
self.afl_button['x_files'] = self.afl_default['x_files']
self.afl_content['xxx'] = self.afl_default['xxx']
self.afl_button['xxx'] = self.afl_default['xxx']
|
# GYP project file for TDesktop
{
'targets': [
{
'target_name': 'libtgvoip',
'type': 'static_library',
'dependencies': [],
'defines': [
'WEBRTC_APM_DEBUG_DUMP=0',
'TGVOIP_USE_DESKTOP_DSP',
'WEBRTC_NS_FLOAT',
],
'variables': {
'tgvoip_src_loc': '.',
'official_build_target%': '',
'linux_path_opus_include%': '<(DEPTH)/../../../Libraries/opus/include',
},
'include_dirs': [
'<(tgvoip_src_loc)/webrtc_dsp',
'<(linux_path_opus_include)',
],
'direct_dependent_settings': {
'include_dirs': [
'<(tgvoip_src_loc)',
],
},
'export_dependent_settings': [],
'sources': [
'<(tgvoip_src_loc)/BlockingQueue.cpp',
'<(tgvoip_src_loc)/BlockingQueue.h',
'<(tgvoip_src_loc)/Buffers.cpp',
'<(tgvoip_src_loc)/Buffers.h',
'<(tgvoip_src_loc)/CongestionControl.cpp',
'<(tgvoip_src_loc)/CongestionControl.h',
'<(tgvoip_src_loc)/EchoCanceller.cpp',
'<(tgvoip_src_loc)/EchoCanceller.h',
'<(tgvoip_src_loc)/JitterBuffer.cpp',
'<(tgvoip_src_loc)/JitterBuffer.h',
'<(tgvoip_src_loc)/logging.cpp',
'<(tgvoip_src_loc)/logging.h',
'<(tgvoip_src_loc)/MediaStreamItf.cpp',
'<(tgvoip_src_loc)/MediaStreamItf.h',
'<(tgvoip_src_loc)/OpusDecoder.cpp',
'<(tgvoip_src_loc)/OpusDecoder.h',
'<(tgvoip_src_loc)/OpusEncoder.cpp',
'<(tgvoip_src_loc)/OpusEncoder.h',
'<(tgvoip_src_loc)/threading.h',
'<(tgvoip_src_loc)/VoIPController.cpp',
'<(tgvoip_src_loc)/VoIPGroupController.cpp',
'<(tgvoip_src_loc)/VoIPController.h',
'<(tgvoip_src_loc)/PrivateDefines.h',
'<(tgvoip_src_loc)/VoIPServerConfig.cpp',
'<(tgvoip_src_loc)/VoIPServerConfig.h',
'<(tgvoip_src_loc)/audio/AudioInput.cpp',
'<(tgvoip_src_loc)/audio/AudioInput.h',
'<(tgvoip_src_loc)/audio/AudioOutput.cpp',
'<(tgvoip_src_loc)/audio/AudioOutput.h',
'<(tgvoip_src_loc)/audio/Resampler.cpp',
'<(tgvoip_src_loc)/audio/Resampler.h',
'<(tgvoip_src_loc)/NetworkSocket.cpp',
'<(tgvoip_src_loc)/NetworkSocket.h',
'<(tgvoip_src_loc)/PacketReassembler.cpp',
'<(tgvoip_src_loc)/PacketReassembler.h',
'<(tgvoip_src_loc)/MessageThread.cpp',
'<(tgvoip_src_loc)/MessageThread.h',
'<(tgvoip_src_loc)/audio/AudioIO.cpp',
'<(tgvoip_src_loc)/audio/AudioIO.h',
'<(tgvoip_src_loc)/video/ScreamCongestionController.cpp',
'<(tgvoip_src_loc)/video/ScreamCongestionController.h',
'<(tgvoip_src_loc)/video/VideoSource.cpp',
'<(tgvoip_src_loc)/video/VideoSource.h',
'<(tgvoip_src_loc)/video/VideoRenderer.cpp',
'<(tgvoip_src_loc)/video/VideoRenderer.h',
'<(tgvoip_src_loc)/video/VideoPacketSender.cpp',
'<(tgvoip_src_loc)/video/VideoPacketSender.h',
'<(tgvoip_src_loc)/video/VideoFEC.cpp',
'<(tgvoip_src_loc)/video/VideoFEC.h',
'<(tgvoip_src_loc)/json11.cpp',
'<(tgvoip_src_loc)/json11.hpp',
# Windows
'<(tgvoip_src_loc)/os/windows/NetworkSocketWinsock.cpp',
'<(tgvoip_src_loc)/os/windows/NetworkSocketWinsock.h',
'<(tgvoip_src_loc)/os/windows/AudioInputWave.cpp',
'<(tgvoip_src_loc)/os/windows/AudioInputWave.h',
'<(tgvoip_src_loc)/os/windows/AudioOutputWave.cpp',
'<(tgvoip_src_loc)/os/windows/AudioOutputWave.h',
'<(tgvoip_src_loc)/os/windows/AudioOutputWASAPI.cpp',
'<(tgvoip_src_loc)/os/windows/AudioOutputWASAPI.h',
'<(tgvoip_src_loc)/os/windows/AudioInputWASAPI.cpp',
'<(tgvoip_src_loc)/os/windows/AudioInputWASAPI.h',
'<(tgvoip_src_loc)/os/windows/WindowsSpecific.cpp',
'<(tgvoip_src_loc)/os/windows/WindowsSpecific.h',
# macOS
'<(tgvoip_src_loc)/os/darwin/AudioInputAudioUnit.cpp',
'<(tgvoip_src_loc)/os/darwin/AudioInputAudioUnit.h',
'<(tgvoip_src_loc)/os/darwin/AudioOutputAudioUnit.cpp',
'<(tgvoip_src_loc)/os/darwin/AudioOutputAudioUnit.h',
'<(tgvoip_src_loc)/os/darwin/AudioInputAudioUnitOSX.cpp',
'<(tgvoip_src_loc)/os/darwin/AudioInputAudioUnitOSX.h',
'<(tgvoip_src_loc)/os/darwin/AudioOutputAudioUnitOSX.cpp',
'<(tgvoip_src_loc)/os/darwin/AudioOutputAudioUnitOSX.h',
'<(tgvoip_src_loc)/os/darwin/AudioUnitIO.cpp',
'<(tgvoip_src_loc)/os/darwin/AudioUnitIO.h',
'<(tgvoip_src_loc)/os/darwin/DarwinSpecific.mm',
'<(tgvoip_src_loc)/os/darwin/DarwinSpecific.h',
# Linux
'<(tgvoip_src_loc)/os/linux/AudioInputALSA.cpp',
'<(tgvoip_src_loc)/os/linux/AudioInputALSA.h',
'<(tgvoip_src_loc)/os/linux/AudioOutputALSA.cpp',
'<(tgvoip_src_loc)/os/linux/AudioOutputALSA.h',
'<(tgvoip_src_loc)/os/linux/AudioOutputPulse.cpp',
'<(tgvoip_src_loc)/os/linux/AudioOutputPulse.h',
'<(tgvoip_src_loc)/os/linux/AudioInputPulse.cpp',
'<(tgvoip_src_loc)/os/linux/AudioInputPulse.h',
'<(tgvoip_src_loc)/os/linux/AudioPulse.cpp',
'<(tgvoip_src_loc)/os/linux/AudioPulse.h',
# POSIX
'<(tgvoip_src_loc)/os/posix/NetworkSocketPosix.cpp',
'<(tgvoip_src_loc)/os/posix/NetworkSocketPosix.h',
# WebRTC APM
'<(tgvoip_src_loc)/webrtc_dsp/system_wrappers/include/field_trial.h',
'<(tgvoip_src_loc)/webrtc_dsp/system_wrappers/include/cpu_features_wrapper.h',
'<(tgvoip_src_loc)/webrtc_dsp/system_wrappers/include/asm_defines.h',
'<(tgvoip_src_loc)/webrtc_dsp/system_wrappers/include/metrics.h',
'<(tgvoip_src_loc)/webrtc_dsp/system_wrappers/include/compile_assert_c.h',
'<(tgvoip_src_loc)/webrtc_dsp/system_wrappers/source/field_trial.cc',
'<(tgvoip_src_loc)/webrtc_dsp/system_wrappers/source/metrics.cc',
'<(tgvoip_src_loc)/webrtc_dsp/system_wrappers/source/cpu_features.cc',
'<(tgvoip_src_loc)/webrtc_dsp/typedefs.h',
'<(tgvoip_src_loc)/webrtc_dsp/absl/strings/internal/memutil.h',
'<(tgvoip_src_loc)/webrtc_dsp/absl/strings/internal/memutil.cc',
'<(tgvoip_src_loc)/webrtc_dsp/absl/strings/string_view.cc',
'<(tgvoip_src_loc)/webrtc_dsp/absl/strings/ascii.h',
'<(tgvoip_src_loc)/webrtc_dsp/absl/strings/ascii.cc',
'<(tgvoip_src_loc)/webrtc_dsp/absl/strings/string_view.h',
'<(tgvoip_src_loc)/webrtc_dsp/absl/types/optional.h',
'<(tgvoip_src_loc)/webrtc_dsp/absl/types/bad_optional_access.h',
'<(tgvoip_src_loc)/webrtc_dsp/absl/types/bad_optional_access.cc',
'<(tgvoip_src_loc)/webrtc_dsp/absl/types/optional.cc',
'<(tgvoip_src_loc)/webrtc_dsp/absl/memory/memory.h',
'<(tgvoip_src_loc)/webrtc_dsp/absl/meta/type_traits.h',
'<(tgvoip_src_loc)/webrtc_dsp/absl/algorithm/algorithm.h',
'<(tgvoip_src_loc)/webrtc_dsp/absl/container/inlined_vector.h',
'<(tgvoip_src_loc)/webrtc_dsp/absl/base/policy_checks.h',
'<(tgvoip_src_loc)/webrtc_dsp/absl/base/port.h',
'<(tgvoip_src_loc)/webrtc_dsp/absl/base/config.h',
'<(tgvoip_src_loc)/webrtc_dsp/absl/base/internal/raw_logging.cc',
'<(tgvoip_src_loc)/webrtc_dsp/absl/base/internal/throw_delegate.cc',
'<(tgvoip_src_loc)/webrtc_dsp/absl/base/internal/invoke.h',
'<(tgvoip_src_loc)/webrtc_dsp/absl/base/internal/inline_variable.h',
'<(tgvoip_src_loc)/webrtc_dsp/absl/base/internal/atomic_hook.h',
'<(tgvoip_src_loc)/webrtc_dsp/absl/base/internal/identity.h',
'<(tgvoip_src_loc)/webrtc_dsp/absl/base/internal/raw_logging.h',
'<(tgvoip_src_loc)/webrtc_dsp/absl/base/internal/throw_delegate.h',
'<(tgvoip_src_loc)/webrtc_dsp/absl/base/attributes.h',
'<(tgvoip_src_loc)/webrtc_dsp/absl/base/macros.h',
'<(tgvoip_src_loc)/webrtc_dsp/absl/base/optimization.h',
'<(tgvoip_src_loc)/webrtc_dsp/absl/base/log_severity.h',
'<(tgvoip_src_loc)/webrtc_dsp/absl/utility/utility.h',
'<(tgvoip_src_loc)/webrtc_dsp/rtc_base/string_to_number.h',
'<(tgvoip_src_loc)/webrtc_dsp/rtc_base/constructormagic.h',
'<(tgvoip_src_loc)/webrtc_dsp/rtc_base/race_checker.cc',
'<(tgvoip_src_loc)/webrtc_dsp/rtc_base/strings/string_builder.h',
'<(tgvoip_src_loc)/webrtc_dsp/rtc_base/strings/string_builder.cc',
'<(tgvoip_src_loc)/webrtc_dsp/rtc_base/event_tracer.h',
'<(tgvoip_src_loc)/webrtc_dsp/rtc_base/stringencode.h',
'<(tgvoip_src_loc)/webrtc_dsp/rtc_base/memory/aligned_malloc.cc',
'<(tgvoip_src_loc)/webrtc_dsp/rtc_base/memory/aligned_malloc.h',
'<(tgvoip_src_loc)/webrtc_dsp/rtc_base/timeutils.cc',
'<(tgvoip_src_loc)/webrtc_dsp/rtc_base/event.h',
'<(tgvoip_src_loc)/webrtc_dsp/rtc_base/ignore_wundef.h',
'<(tgvoip_src_loc)/webrtc_dsp/rtc_base/stringutils.h',
'<(tgvoip_src_loc)/webrtc_dsp/rtc_base/arraysize.h',
'<(tgvoip_src_loc)/webrtc_dsp/rtc_base/platform_file.cc',
'<(tgvoip_src_loc)/webrtc_dsp/rtc_base/swap_queue.h',
'<(tgvoip_src_loc)/webrtc_dsp/rtc_base/string_to_number.cc',
'<(tgvoip_src_loc)/webrtc_dsp/rtc_base/trace_event.h',
'<(tgvoip_src_loc)/webrtc_dsp/rtc_base/checks.h',
'<(tgvoip_src_loc)/webrtc_dsp/rtc_base/deprecation.h',
'<(tgvoip_src_loc)/webrtc_dsp/rtc_base/thread_checker_impl.cc',
'<(tgvoip_src_loc)/webrtc_dsp/rtc_base/sanitizer.h',
'<(tgvoip_src_loc)/webrtc_dsp/rtc_base/scoped_ref_ptr.h',
'<(tgvoip_src_loc)/webrtc_dsp/rtc_base/logging.h',
'<(tgvoip_src_loc)/webrtc_dsp/rtc_base/timeutils.h',
'<(tgvoip_src_loc)/webrtc_dsp/rtc_base/atomicops.h',
'<(tgvoip_src_loc)/webrtc_dsp/rtc_base/stringencode.cc',
'<(tgvoip_src_loc)/webrtc_dsp/rtc_base/stringutils.cc',
'<(tgvoip_src_loc)/webrtc_dsp/rtc_base/checks.cc',
'<(tgvoip_src_loc)/webrtc_dsp/rtc_base/numerics/safe_minmax.h',
'<(tgvoip_src_loc)/webrtc_dsp/rtc_base/numerics/safe_conversions.h',
'<(tgvoip_src_loc)/webrtc_dsp/rtc_base/numerics/safe_conversions_impl.h',
'<(tgvoip_src_loc)/webrtc_dsp/rtc_base/numerics/safe_compare.h',
'<(tgvoip_src_loc)/webrtc_dsp/rtc_base/system/unused.h',
'<(tgvoip_src_loc)/webrtc_dsp/rtc_base/system/inline.h',
'<(tgvoip_src_loc)/webrtc_dsp/rtc_base/system/ignore_warnings.h',
'<(tgvoip_src_loc)/webrtc_dsp/rtc_base/system/asm_defines.h',
'<(tgvoip_src_loc)/webrtc_dsp/rtc_base/system/rtc_export.h',
'<(tgvoip_src_loc)/webrtc_dsp/rtc_base/system/arch.h',
'<(tgvoip_src_loc)/webrtc_dsp/rtc_base/platform_thread.cc',
'<(tgvoip_src_loc)/webrtc_dsp/rtc_base/platform_thread.h',
'<(tgvoip_src_loc)/webrtc_dsp/rtc_base/platform_thread_types.h',
'<(tgvoip_src_loc)/webrtc_dsp/rtc_base/protobuf_utils.h',
'<(tgvoip_src_loc)/webrtc_dsp/rtc_base/thread_annotations.h',
'<(tgvoip_src_loc)/webrtc_dsp/rtc_base/gtest_prod_util.h',
'<(tgvoip_src_loc)/webrtc_dsp/rtc_base/function_view.h',
'<(tgvoip_src_loc)/webrtc_dsp/rtc_base/criticalsection.h',
'<(tgvoip_src_loc)/webrtc_dsp/rtc_base/criticalsection.cc',
'<(tgvoip_src_loc)/webrtc_dsp/rtc_base/platform_thread_types.cc',
'<(tgvoip_src_loc)/webrtc_dsp/rtc_base/refcount.h',
'<(tgvoip_src_loc)/webrtc_dsp/rtc_base/event.cc',
'<(tgvoip_src_loc)/webrtc_dsp/rtc_base/thread_checker_impl.h',
'<(tgvoip_src_loc)/webrtc_dsp/rtc_base/event_tracer.cc',
'<(tgvoip_src_loc)/webrtc_dsp/rtc_base/compile_assert_c.h',
'<(tgvoip_src_loc)/webrtc_dsp/rtc_base/logging_webrtc.cc',
'<(tgvoip_src_loc)/webrtc_dsp/rtc_base/type_traits.h',
'<(tgvoip_src_loc)/webrtc_dsp/rtc_base/platform_file.h',
'<(tgvoip_src_loc)/webrtc_dsp/rtc_base/refcounter.h',
'<(tgvoip_src_loc)/webrtc_dsp/rtc_base/logging_mac.h',
'<(tgvoip_src_loc)/webrtc_dsp/rtc_base/thread_checker.h',
'<(tgvoip_src_loc)/webrtc_dsp/rtc_base/race_checker.h',
'<(tgvoip_src_loc)/webrtc_dsp/rtc_base/refcountedobject.h',
'<(tgvoip_src_loc)/webrtc_dsp/third_party/rnnoise/src/rnn_vad_weights.cc',
'<(tgvoip_src_loc)/webrtc_dsp/third_party/rnnoise/src/rnn_activations.h',
'<(tgvoip_src_loc)/webrtc_dsp/third_party/rnnoise/src/kiss_fft.h',
'<(tgvoip_src_loc)/webrtc_dsp/third_party/rnnoise/src/kiss_fft.cc',
'<(tgvoip_src_loc)/webrtc_dsp/third_party/rnnoise/src/rnn_vad_weights.h',
'<(tgvoip_src_loc)/webrtc_dsp/api/audio/audio_frame.cc',
'<(tgvoip_src_loc)/webrtc_dsp/api/audio/echo_canceller3_config.h',
'<(tgvoip_src_loc)/webrtc_dsp/api/audio/echo_control.h',
'<(tgvoip_src_loc)/webrtc_dsp/api/audio/audio_frame.h',
'<(tgvoip_src_loc)/webrtc_dsp/api/audio/echo_canceller3_config.cc',
'<(tgvoip_src_loc)/webrtc_dsp/api/audio/echo_canceller3_factory.h',
'<(tgvoip_src_loc)/webrtc_dsp/api/audio/echo_canceller3_factory.cc',
'<(tgvoip_src_loc)/webrtc_dsp/api/array_view.h',
'<(tgvoip_src_loc)/webrtc_dsp/modules/third_party/fft/fft.h',
'<(tgvoip_src_loc)/webrtc_dsp/modules/third_party/fft/fft.c',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_coding/codecs/isac/bandwidth_info.h',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_coding/codecs/isac/main/include/isac.h',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_coding/codecs/isac/main/source/pitch_estimator.c',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_coding/codecs/isac/main/source/lpc_shape_swb16_tables.c',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_coding/codecs/isac/main/source/pitch_gain_tables.c',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_coding/codecs/isac/main/source/arith_routines_logist.c',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_coding/codecs/isac/main/source/os_specific_inline.h',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_coding/codecs/isac/main/source/filterbanks.c',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_coding/codecs/isac/main/source/entropy_coding.h',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_coding/codecs/isac/main/source/isac_vad.h',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_coding/codecs/isac/main/source/settings.h',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_coding/codecs/isac/main/source/transform.c',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_coding/codecs/isac/main/source/lpc_shape_swb12_tables.h',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_coding/codecs/isac/main/source/arith_routines.h',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_coding/codecs/isac/main/source/crc.h',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_coding/codecs/isac/main/source/pitch_filter.c',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_coding/codecs/isac/main/source/encode_lpc_swb.c',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_coding/codecs/isac/main/source/filter_functions.c',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_coding/codecs/isac/main/source/decode.c',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_coding/codecs/isac/main/source/lattice.c',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_coding/codecs/isac/main/source/intialize.c',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_coding/codecs/isac/main/source/lpc_tables.c',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_coding/codecs/isac/main/source/lpc_gain_swb_tables.c',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_coding/codecs/isac/main/source/bandwidth_estimator.c',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_coding/codecs/isac/main/source/isac_float_type.h',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_coding/codecs/isac/main/source/pitch_lag_tables.h',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_coding/codecs/isac/main/source/encode.c',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_coding/codecs/isac/main/source/lpc_analysis.c',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_coding/codecs/isac/main/source/spectrum_ar_model_tables.h',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_coding/codecs/isac/main/source/arith_routines_hist.c',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_coding/codecs/isac/main/source/codec.h',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_coding/codecs/isac/main/source/pitch_gain_tables.h',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_coding/codecs/isac/main/source/lpc_shape_swb16_tables.h',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_coding/codecs/isac/main/source/pitch_estimator.h',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_coding/codecs/isac/main/source/entropy_coding.c',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_coding/codecs/isac/main/source/isac_vad.c',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_coding/codecs/isac/main/source/structs.h',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_coding/codecs/isac/main/source/filter_functions.h',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_coding/codecs/isac/main/source/encode_lpc_swb.h',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_coding/codecs/isac/main/source/pitch_filter.h',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_coding/codecs/isac/main/source/arith_routines.c',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_coding/codecs/isac/main/source/crc.c',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_coding/codecs/isac/main/source/lpc_shape_swb12_tables.c',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_coding/codecs/isac/main/source/lpc_analysis.h',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_coding/codecs/isac/main/source/decode_bwe.c',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_coding/codecs/isac/main/source/spectrum_ar_model_tables.c',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_coding/codecs/isac/main/source/bandwidth_estimator.h',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_coding/codecs/isac/main/source/pitch_lag_tables.c',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_coding/codecs/isac/main/source/isac.c',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_coding/codecs/isac/main/source/lpc_gain_swb_tables.h',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_coding/codecs/isac/main/source/lpc_tables.h',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/rms_level.cc',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/echo_detector/moving_max.h',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/echo_detector/circular_buffer.h',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/echo_detector/normalized_covariance_estimator.h',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/echo_detector/normalized_covariance_estimator.cc',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/echo_detector/moving_max.cc',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/echo_detector/circular_buffer.cc',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/echo_detector/mean_variance_estimator.cc',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/echo_detector/mean_variance_estimator.h',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/gain_control_for_experimental_agc.h',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/splitting_filter.cc',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/gain_control_impl.cc',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/rms_level.h',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/ns/ns_core.h',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/ns/nsx_core.c',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/ns/noise_suppression_x.c',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/ns/nsx_core_c.c',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/ns/defines.h',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/ns/noise_suppression.h',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/ns/ns_core.c',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/ns/nsx_core.h',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/ns/windows_private.h',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/ns/noise_suppression_x.h',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/ns/noise_suppression.c',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/ns/nsx_defines.h',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/residual_echo_detector.h',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/audio_processing_impl.h',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/audio_buffer.cc',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/typing_detection.cc',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/render_queue_item_verifier.h',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/include/audio_generator.h',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/include/config.h',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/include/audio_frame_view.h',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/include/mock_audio_processing.h',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/include/gain_control.h',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/include/audio_generator_factory.h',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/include/audio_processing_statistics.cc',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/include/audio_generator_factory.cc',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/include/aec_dump.cc',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/include/aec_dump.h',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/include/audio_processing_statistics.h',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/include/audio_processing.h',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/include/audio_processing.cc',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/include/config.cc',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/agc2/interpolated_gain_curve.h',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/agc2/biquad_filter.h',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/agc2/interpolated_gain_curve.cc',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/agc2/agc2_common.cc',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/agc2/agc2_testing_common.h',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/agc2/adaptive_mode_level_estimator.h',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/agc2/gain_applier.cc',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/agc2/signal_classifier.h',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/agc2/adaptive_agc.cc',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/agc2/adaptive_digital_gain_applier.cc',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/agc2/limiter.cc',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/agc2/saturation_protector.cc',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/agc2/vector_float_frame.h',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/agc2/rnn_vad/spectral_features_internal.cc',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/agc2/rnn_vad/sequence_buffer.h',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/agc2/rnn_vad/rnn.h',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/agc2/rnn_vad/rnn.cc',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/agc2/rnn_vad/test_utils.h',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/agc2/rnn_vad/pitch_info.h',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/agc2/rnn_vad/lp_residual.h',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/agc2/rnn_vad/ring_buffer.h',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/agc2/rnn_vad/pitch_search_internal.cc',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/agc2/rnn_vad/symmetric_matrix_buffer.h',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/agc2/rnn_vad/spectral_features.h',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/agc2/rnn_vad/features_extraction.h',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/agc2/rnn_vad/common.h',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/agc2/rnn_vad/spectral_features_internal.h',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/agc2/rnn_vad/fft_util.h',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/agc2/rnn_vad/spectral_features.cc',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/agc2/rnn_vad/pitch_search_internal.h',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/agc2/rnn_vad/pitch_search.cc',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/agc2/rnn_vad/pitch_search.h',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/agc2/rnn_vad/features_extraction.cc',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/agc2/rnn_vad/fft_util.cc',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/agc2/rnn_vad/lp_residual.cc',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/agc2/fixed_gain_controller.h',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/agc2/adaptive_mode_level_estimator_agc.cc',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/agc2/vector_float_frame.cc',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/agc2/down_sampler.h',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/agc2/noise_level_estimator.cc',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/agc2/agc2_testing_common.cc',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/agc2/fixed_digital_level_estimator.cc',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/agc2/fixed_gain_controller.cc',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/agc2/saturation_protector.h',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/agc2/vad_with_level.cc',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/agc2/limiter_db_gain_curve.cc',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/agc2/agc2_common.h',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/agc2/adaptive_mode_level_estimator_agc.h',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/agc2/adaptive_digital_gain_applier.h',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/agc2/vad_with_level.h',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/agc2/limiter_db_gain_curve.h',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/agc2/fixed_digital_level_estimator.h',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/agc2/adaptive_agc.h',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/agc2/gain_applier.h',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/agc2/down_sampler.cc',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/agc2/noise_level_estimator.h',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/agc2/signal_classifier.cc',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/agc2/noise_spectrum_estimator.cc',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/agc2/compute_interpolated_gain_curve.cc',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/agc2/compute_interpolated_gain_curve.h',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/agc2/biquad_filter.cc',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/agc2/noise_spectrum_estimator.h',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/agc2/limiter.h',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/agc2/adaptive_mode_level_estimator.cc',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/transient/moving_moments.cc',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/transient/transient_detector.h',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/transient/wpd_tree.cc',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/transient/transient_suppressor.h',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/transient/daubechies_8_wavelet_coeffs.h',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/transient/common.h',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/transient/wpd_node.h',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/transient/moving_moments.h',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/transient/wpd_tree.h',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/transient/wpd_node.cc',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/transient/transient_suppressor.cc',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/transient/transient_detector.cc',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/transient/dyadic_decimator.h',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/low_cut_filter.cc',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/noise_suppression_impl.h',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/level_estimator_impl.cc',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/three_band_filter_bank.cc',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/aec/echo_cancellation.cc',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/aec/aec_resampler.h',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/aec/aec_resampler.cc',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/aec/echo_cancellation.h',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/aec/aec_core.cc',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/aec/aec_core.h',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/aec/aec_core_optimized_methods.h',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/aec/aec_core_sse2.cc',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/aec/aec_common.h',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/voice_detection_impl.h',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/voice_detection_impl.cc',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/echo_cancellation_impl.cc',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/gain_control_for_experimental_agc.cc',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/agc/agc.cc',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/agc/loudness_histogram.cc',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/agc/agc_manager_direct.cc',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/agc/legacy/analog_agc.h',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/agc/legacy/gain_control.h',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/agc/legacy/digital_agc.h',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/agc/legacy/analog_agc.c',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/agc/legacy/digital_agc.c',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/agc/utility.cc',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/agc/mock_agc.h',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/agc/loudness_histogram.h',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/agc/gain_map_internal.h',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/agc/utility.h',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/agc/agc_manager_direct.h',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/agc/agc.h',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/common.h',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/audio_processing_impl.cc',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/audio_buffer.h',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/echo_control_mobile_impl.h',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/splitting_filter.h',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/low_cut_filter.h',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/audio_generator/file_audio_generator.h',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/audio_generator/file_audio_generator.cc',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/gain_controller2.cc',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/three_band_filter_bank.h',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/residual_echo_detector.cc',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/echo_cancellation_impl.h',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/noise_suppression_impl.cc',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/level_estimator_impl.h',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/gain_controller2.h',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/aecm/aecm_core.h',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/aecm/aecm_defines.h',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/aecm/aecm_core.cc',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/aecm/aecm_core_c.cc',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/aecm/echo_control_mobile.h',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/aecm/echo_control_mobile.cc',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/aec3/render_reverb_model.cc',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/aec3/downsampled_render_buffer.h',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/aec3/subtractor_output_analyzer.h',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/aec3/reverb_model_fallback.cc',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/aec3/residual_echo_estimator.h',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/aec3/shadow_filter_update_gain.h',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/aec3/echo_remover_metrics.cc',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/aec3/matched_filter_lag_aggregator.cc',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/aec3/render_delay_buffer2.cc',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/aec3/aec_state.h',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/aec3/suppression_filter.h',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/aec3/echo_path_variability.cc',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/aec3/frame_blocker.cc',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/aec3/subtractor.cc',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/aec3/block_delay_buffer.h',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/aec3/adaptive_fir_filter.h',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/aec3/cascaded_biquad_filter.h',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/aec3/matched_filter.h',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/aec3/subtractor_output.h',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/aec3/render_signal_analyzer.h',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/aec3/aec3_fft.cc',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/aec3/aec3_fft.h',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/aec3/echo_remover_metrics.h',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/aec3/fullband_erle_estimator.cc',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/aec3/suppression_filter.cc',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/aec3/block_processor.cc',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/aec3/filter_analyzer.h',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/aec3/subtractor.h',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/aec3/echo_path_delay_estimator.h',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/aec3/subband_erle_estimator.cc',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/aec3/render_delay_controller_metrics.cc',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/aec3/render_delay_buffer.cc',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/aec3/block_processor_metrics.h',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/aec3/vector_buffer.cc',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/aec3/erl_estimator.cc',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/aec3/aec_state.cc',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/aec3/adaptive_fir_filter.cc',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/aec3/fft_data.h',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/aec3/render_delay_controller.cc',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/aec3/skew_estimator.cc',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/aec3/render_delay_controller_metrics.h',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/aec3/comfort_noise_generator.h',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/aec3/echo_path_delay_estimator.cc',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/aec3/erl_estimator.h',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/aec3/echo_remover.h',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/aec3/block_framer.cc',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/aec3/erle_estimator.cc',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/aec3/reverb_model.cc',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/aec3/cascaded_biquad_filter.cc',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/aec3/matrix_buffer.h',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/aec3/render_buffer.cc',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/aec3/reverb_model_estimator.h',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/aec3/subtractor_output.cc',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/aec3/stationarity_estimator.cc',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/aec3/render_signal_analyzer.cc',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/aec3/echo_path_variability.h',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/aec3/moving_average.h',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/aec3/render_reverb_model.h',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/aec3/subtractor_output_analyzer.cc',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/aec3/suppression_gain.cc',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/aec3/echo_audibility.cc',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/aec3/block_processor_metrics.cc',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/aec3/render_delay_controller.h',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/aec3/suppression_gain.h',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/aec3/moving_average.cc',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/aec3/erle_estimator.h',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/aec3/subband_erle_estimator.h',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/aec3/reverb_model_estimator.cc',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/aec3/aec3_common.cc',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/aec3/residual_echo_estimator.cc',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/aec3/block_processor.h',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/aec3/fullband_erle_estimator.h',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/aec3/matched_filter.cc',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/aec3/stationarity_estimator.h',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/aec3/echo_canceller3.h',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/aec3/skew_estimator.h',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/aec3/reverb_decay_estimator.cc',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/aec3/render_delay_controller2.cc',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/aec3/render_buffer.h',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/aec3/suppression_gain_limiter.cc',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/aec3/main_filter_update_gain.cc',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/aec3/echo_remover.cc',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/aec3/reverb_model_fallback.h',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/aec3/downsampled_render_buffer.cc',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/aec3/vector_buffer.h',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/aec3/matrix_buffer.cc',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/aec3/reverb_frequency_response.h',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/aec3/echo_audibility.h',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/aec3/fft_buffer.h',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/aec3/block_processor2.cc',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/aec3/echo_canceller3.cc',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/aec3/block_delay_buffer.cc',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/aec3/aec3_common.h',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/aec3/fft_buffer.cc',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/aec3/vector_math.h',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/aec3/decimator.h',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/aec3/frame_blocker.h',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/aec3/block_framer.h',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/aec3/suppression_gain_limiter.h',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/aec3/delay_estimate.h',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/aec3/comfort_noise_generator.cc',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/aec3/reverb_model.h',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/aec3/main_filter_update_gain.h',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/aec3/matched_filter_lag_aggregator.h',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/aec3/shadow_filter_update_gain.cc',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/aec3/filter_analyzer.cc',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/aec3/reverb_decay_estimator.h',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/aec3/reverb_frequency_response.cc',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/aec3/decimator.cc',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/aec3/render_delay_buffer.h',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/echo_control_mobile_impl.cc',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/gain_control_impl.h',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/typing_detection.h',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/logging/apm_data_dumper.cc',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/logging/apm_data_dumper.h',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/vad/voice_activity_detector.cc',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/vad/standalone_vad.cc',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/vad/vad_audio_proc_internal.h',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/vad/pitch_internal.cc',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/vad/vad_circular_buffer.cc',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/vad/vad_circular_buffer.h',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/vad/pitch_based_vad.h',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/vad/vad_audio_proc.cc',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/vad/pole_zero_filter.cc',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/vad/pole_zero_filter.h',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/vad/pitch_based_vad.cc',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/vad/gmm.h',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/vad/common.h',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/vad/vad_audio_proc.h',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/vad/voice_gmm_tables.h',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/vad/noise_gmm_tables.h',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/vad/pitch_internal.h',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/vad/gmm.cc',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/vad/standalone_vad.h',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/vad/voice_activity_detector.h',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/utility/delay_estimator_internal.h',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/utility/ooura_fft.cc',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/utility/ooura_fft.h',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/utility/delay_estimator_wrapper.cc',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/utility/ooura_fft_sse2.cc',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/utility/delay_estimator.cc',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/utility/block_mean_calculator.h',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/utility/block_mean_calculator.cc',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/utility/delay_estimator.h',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/utility/ooura_fft_tables_common.h',
'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/utility/delay_estimator_wrapper.h',
'<(tgvoip_src_loc)/webrtc_dsp/common_audio/mocks/mock_smoothing_filter.h',
'<(tgvoip_src_loc)/webrtc_dsp/common_audio/wav_file.h',
'<(tgvoip_src_loc)/webrtc_dsp/common_audio/window_generator.cc',
'<(tgvoip_src_loc)/webrtc_dsp/common_audio/channel_buffer.cc',
'<(tgvoip_src_loc)/webrtc_dsp/common_audio/fir_filter_factory.cc',
'<(tgvoip_src_loc)/webrtc_dsp/common_audio/sparse_fir_filter.h',
'<(tgvoip_src_loc)/webrtc_dsp/common_audio/fir_filter_sse.h',
'<(tgvoip_src_loc)/webrtc_dsp/common_audio/window_generator.h',
'<(tgvoip_src_loc)/webrtc_dsp/common_audio/ring_buffer.h',
'<(tgvoip_src_loc)/webrtc_dsp/common_audio/fir_filter.h',
'<(tgvoip_src_loc)/webrtc_dsp/common_audio/include/audio_util.h',
'<(tgvoip_src_loc)/webrtc_dsp/common_audio/wav_header.cc',
'<(tgvoip_src_loc)/webrtc_dsp/common_audio/real_fourier_ooura.cc',
'<(tgvoip_src_loc)/webrtc_dsp/common_audio/audio_util.cc',
'<(tgvoip_src_loc)/webrtc_dsp/common_audio/real_fourier_ooura.h',
'<(tgvoip_src_loc)/webrtc_dsp/common_audio/fir_filter_sse.cc',
'<(tgvoip_src_loc)/webrtc_dsp/common_audio/smoothing_filter.h',
'<(tgvoip_src_loc)/webrtc_dsp/common_audio/resampler/push_sinc_resampler.cc',
'<(tgvoip_src_loc)/webrtc_dsp/common_audio/resampler/sinc_resampler.h',
'<(tgvoip_src_loc)/webrtc_dsp/common_audio/resampler/resampler.cc',
'<(tgvoip_src_loc)/webrtc_dsp/common_audio/resampler/sinc_resampler_sse.cc',
'<(tgvoip_src_loc)/webrtc_dsp/common_audio/resampler/include/push_resampler.h',
'<(tgvoip_src_loc)/webrtc_dsp/common_audio/resampler/include/resampler.h',
'<(tgvoip_src_loc)/webrtc_dsp/common_audio/resampler/push_sinc_resampler.h',
'<(tgvoip_src_loc)/webrtc_dsp/common_audio/resampler/push_resampler.cc',
'<(tgvoip_src_loc)/webrtc_dsp/common_audio/resampler/sinusoidal_linear_chirp_source.h',
'<(tgvoip_src_loc)/webrtc_dsp/common_audio/resampler/sinc_resampler.cc',
'<(tgvoip_src_loc)/webrtc_dsp/common_audio/resampler/sinusoidal_linear_chirp_source.cc',
'<(tgvoip_src_loc)/webrtc_dsp/common_audio/fir_filter_factory.h',
'<(tgvoip_src_loc)/webrtc_dsp/common_audio/audio_converter.h',
'<(tgvoip_src_loc)/webrtc_dsp/common_audio/wav_file.cc',
'<(tgvoip_src_loc)/webrtc_dsp/common_audio/third_party/spl_sqrt_floor/spl_sqrt_floor.c',
'<(tgvoip_src_loc)/webrtc_dsp/common_audio/third_party/spl_sqrt_floor/spl_sqrt_floor.h',
'<(tgvoip_src_loc)/webrtc_dsp/common_audio/third_party/fft4g/fft4g.c',
'<(tgvoip_src_loc)/webrtc_dsp/common_audio/third_party/fft4g/fft4g.h',
'<(tgvoip_src_loc)/webrtc_dsp/common_audio/audio_converter.cc',
'<(tgvoip_src_loc)/webrtc_dsp/common_audio/real_fourier.cc',
'<(tgvoip_src_loc)/webrtc_dsp/common_audio/channel_buffer.h',
'<(tgvoip_src_loc)/webrtc_dsp/common_audio/real_fourier.h',
'<(tgvoip_src_loc)/webrtc_dsp/common_audio/sparse_fir_filter.cc',
'<(tgvoip_src_loc)/webrtc_dsp/common_audio/smoothing_filter.cc',
'<(tgvoip_src_loc)/webrtc_dsp/common_audio/fir_filter_c.cc',
'<(tgvoip_src_loc)/webrtc_dsp/common_audio/ring_buffer.c',
'<(tgvoip_src_loc)/webrtc_dsp/common_audio/fir_filter_c.h',
'<(tgvoip_src_loc)/webrtc_dsp/common_audio/signal_processing/complex_fft_tables.h',
'<(tgvoip_src_loc)/webrtc_dsp/common_audio/signal_processing/complex_fft.c',
'<(tgvoip_src_loc)/webrtc_dsp/common_audio/signal_processing/filter_ma_fast_q12.c',
'<(tgvoip_src_loc)/webrtc_dsp/common_audio/signal_processing/levinson_durbin.c',
'<(tgvoip_src_loc)/webrtc_dsp/common_audio/signal_processing/dot_product_with_scale.cc',
'<(tgvoip_src_loc)/webrtc_dsp/common_audio/signal_processing/auto_corr_to_refl_coef.c',
'<(tgvoip_src_loc)/webrtc_dsp/common_audio/signal_processing/resample_by_2_internal.c',
'<(tgvoip_src_loc)/webrtc_dsp/common_audio/signal_processing/energy.c',
'<(tgvoip_src_loc)/webrtc_dsp/common_audio/signal_processing/sqrt_of_one_minus_x_squared.c',
'<(tgvoip_src_loc)/webrtc_dsp/common_audio/signal_processing/downsample_fast.c',
'<(tgvoip_src_loc)/webrtc_dsp/common_audio/signal_processing/splitting_filter1.c',
'<(tgvoip_src_loc)/webrtc_dsp/common_audio/signal_processing/filter_ar_fast_q12.c',
'<(tgvoip_src_loc)/webrtc_dsp/common_audio/signal_processing/spl_init.c',
'<(tgvoip_src_loc)/webrtc_dsp/common_audio/signal_processing/lpc_to_refl_coef.c',
'<(tgvoip_src_loc)/webrtc_dsp/common_audio/signal_processing/cross_correlation.c',
'<(tgvoip_src_loc)/webrtc_dsp/common_audio/signal_processing/include/signal_processing_library.h',
'<(tgvoip_src_loc)/webrtc_dsp/common_audio/signal_processing/include/real_fft.h',
'<(tgvoip_src_loc)/webrtc_dsp/common_audio/signal_processing/include/spl_inl.h',
'<(tgvoip_src_loc)/webrtc_dsp/common_audio/signal_processing/division_operations.c',
'<(tgvoip_src_loc)/webrtc_dsp/common_audio/signal_processing/auto_correlation.c',
'<(tgvoip_src_loc)/webrtc_dsp/common_audio/signal_processing/get_scaling_square.c',
'<(tgvoip_src_loc)/webrtc_dsp/common_audio/signal_processing/dot_product_with_scale.h',
'<(tgvoip_src_loc)/webrtc_dsp/common_audio/signal_processing/resample_by_2_internal.h',
'<(tgvoip_src_loc)/webrtc_dsp/common_audio/signal_processing/resample.c',
'<(tgvoip_src_loc)/webrtc_dsp/common_audio/signal_processing/min_max_operations.c',
'<(tgvoip_src_loc)/webrtc_dsp/common_audio/signal_processing/refl_coef_to_lpc.c',
'<(tgvoip_src_loc)/webrtc_dsp/common_audio/signal_processing/filter_ar.c',
'<(tgvoip_src_loc)/webrtc_dsp/common_audio/signal_processing/vector_scaling_operations.c',
'<(tgvoip_src_loc)/webrtc_dsp/common_audio/signal_processing/resample_fractional.c',
'<(tgvoip_src_loc)/webrtc_dsp/common_audio/signal_processing/real_fft.c',
'<(tgvoip_src_loc)/webrtc_dsp/common_audio/signal_processing/ilbc_specific_functions.c',
'<(tgvoip_src_loc)/webrtc_dsp/common_audio/signal_processing/complex_bit_reverse.c',
'<(tgvoip_src_loc)/webrtc_dsp/common_audio/signal_processing/randomization_functions.c',
'<(tgvoip_src_loc)/webrtc_dsp/common_audio/signal_processing/copy_set_operations.c',
'<(tgvoip_src_loc)/webrtc_dsp/common_audio/signal_processing/resample_by_2.c',
'<(tgvoip_src_loc)/webrtc_dsp/common_audio/signal_processing/get_hanning_window.c',
'<(tgvoip_src_loc)/webrtc_dsp/common_audio/signal_processing/resample_48khz.c',
'<(tgvoip_src_loc)/webrtc_dsp/common_audio/signal_processing/spl_inl.c',
'<(tgvoip_src_loc)/webrtc_dsp/common_audio/signal_processing/spl_sqrt.c',
'<(tgvoip_src_loc)/webrtc_dsp/common_audio/wav_header.h',
'<(tgvoip_src_loc)/webrtc_dsp/common_audio/vad/vad_sp.c',
'<(tgvoip_src_loc)/webrtc_dsp/common_audio/vad/vad.cc',
'<(tgvoip_src_loc)/webrtc_dsp/common_audio/vad/webrtc_vad.c',
'<(tgvoip_src_loc)/webrtc_dsp/common_audio/vad/vad_core.h',
'<(tgvoip_src_loc)/webrtc_dsp/common_audio/vad/include/vad.h',
'<(tgvoip_src_loc)/webrtc_dsp/common_audio/vad/include/webrtc_vad.h',
'<(tgvoip_src_loc)/webrtc_dsp/common_audio/vad/vad_gmm.h',
'<(tgvoip_src_loc)/webrtc_dsp/common_audio/vad/vad_filterbank.c',
'<(tgvoip_src_loc)/webrtc_dsp/common_audio/vad/vad_core.c',
'<(tgvoip_src_loc)/webrtc_dsp/common_audio/vad/vad_sp.h',
'<(tgvoip_src_loc)/webrtc_dsp/common_audio/vad/vad_filterbank.h',
'<(tgvoip_src_loc)/webrtc_dsp/common_audio/vad/vad_gmm.c',
# ARM/NEON sources
# TODO check if there's a good way to make these compile with ARM ports of TDesktop
#'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/ns/nsx_core_neon.c',
#'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/aec/aec_core_neon.cc',
#'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/aecm/aecm_core_neon.cc',
#'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/utility/ooura_fft_tables_neon_sse2.h',
#'<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/utility/ooura_fft_neon.cc',
#'<(tgvoip_src_loc)/webrtc_dsp/common_audio/fir_filter_neon.cc',
#'<(tgvoip_src_loc)/webrtc_dsp/common_audio/resampler/sinc_resampler_neon.cc',
#'<(tgvoip_src_loc)/webrtc_dsp/common_audio/third_party/spl_sqrt_floor/spl_sqrt_floor_arm.S',
#'<(tgvoip_src_loc)/webrtc_dsp/common_audio/fir_filter_neon.h',
#'<(tgvoip_src_loc)/webrtc_dsp/common_audio/signal_processing/downsample_fast_neon.c',
#'<(tgvoip_src_loc)/webrtc_dsp/common_audio/signal_processing/complex_bit_reverse_arm.S',
#'<(tgvoip_src_loc)/webrtc_dsp/common_audio/signal_processing/include/spl_inl_armv7.h',
#'<(tgvoip_src_loc)/webrtc_dsp/common_audio/signal_processing/min_max_operations_neon.c',
#'<(tgvoip_src_loc)/webrtc_dsp/common_audio/signal_processing/cross_correlation_neon.c',
#'<(tgvoip_src_loc)/webrtc_dsp/common_audio/signal_processing/filter_ar_fast_q12_armv7.S',
],
'libraries': [],
'configurations': {
'Debug': {},
'Release': {},
},
'conditions': [
[
'"<(OS)" != "win"', {
'sources/': [['exclude', '<(tgvoip_src_loc)/os/windows/']],
}, {
'sources/': [['exclude', '<(tgvoip_src_loc)/os/posix/']],
},
],
[
'"<(OS)" != "mac"', {
'sources/': [['exclude', '<(tgvoip_src_loc)/os/darwin/']],
},
],
[
'"<(OS)" != "linux"', {
'sources/': [['exclude', '<(tgvoip_src_loc)/os/linux/']],
},
],
[
'"<(OS)" == "mac"', {
'xcode_settings': {
'CLANG_CXX_LANGUAGE_STANDARD': 'c++11',
'ALWAYS_SEARCH_USER_PATHS': 'NO',
},
'defines': [
'WEBRTC_POSIX',
'WEBRTC_MAC',
'TARGET_OS_OSX',
],
'sources': [
'<(tgvoip_src_loc)/webrtc_dsp/rtc_base/logging_mac.mm',
'<(tgvoip_src_loc)/webrtc_dsp/rtc_base/logging_mac.h',
],
'conditions': [
[ '"<(official_build_target)" == "mac32"', {
'xcode_settings': {
'MACOSX_DEPLOYMENT_TARGET': '10.6',
'OTHER_CPLUSPLUSFLAGS': [ '-nostdinc++' ],
},
'include_dirs': [
'/usr/local/macold/include/c++/v1',
'<(DEPTH)/../../../Libraries/macold/openssl/include',
],
'defines': [
'TARGET_OSX32',
],
}, {
'xcode_settings': {
'MACOSX_DEPLOYMENT_TARGET': '10.8',
'CLANG_CXX_LIBRARY': 'libc++',
},
'include_dirs': [
'<(DEPTH)/../../../Libraries/openssl/include',
],
'direct_dependent_settings': {
'linkflags': [
'-framework VideoToolbox',
],
},
'sources': [
'<(tgvoip_src_loc)/os/darwin/TGVVideoRenderer.mm',
'<(tgvoip_src_loc)/os/darwin/TGVVideoRenderer.h',
'<(tgvoip_src_loc)/os/darwin/TGVVideoSource.mm',
'<(tgvoip_src_loc)/os/darwin/TGVVideoSource.h',
'<(tgvoip_src_loc)/os/darwin/VideoToolboxEncoderSource.mm',
'<(tgvoip_src_loc)/os/darwin/VideoToolboxEncoderSource.h',
'<(tgvoip_src_loc)/os/darwin/SampleBufferDisplayLayerRenderer.mm',
'<(tgvoip_src_loc)/os/darwin/SampleBufferDisplayLayerRenderer.h',
],
}],
['"<(official_build_target)" == "macstore"', {
'defines': [
'TGVOIP_NO_OSX_PRIVATE_API',
],
}],
],
},
],
[
'"<(OS)" == "win"', {
'msbuild_toolset': 'v141',
'defines': [
'NOMINMAX',
'_USING_V110_SDK71_',
'TGVOIP_WINXP_COMPAT',
'WEBRTC_WIN',
],
'libraries': [
'winmm',
'ws2_32',
'kernel32',
'user32',
],
'msvs_cygwin_shell': 0,
'msvs_settings': {
'VCCLCompilerTool': {
'ProgramDataBaseFileName': '$(OutDir)\\$(ProjectName).pdb',
'DebugInformationFormat': '3', # Program Database (/Zi)
'AdditionalOptions': [
'/MP', # Enable multi process build.
'/EHsc', # Catch C++ exceptions only, extern C functions never throw a C++ exception.
'/wd4068', # Disable "warning C4068: unknown pragma"
],
'TreatWChar_tAsBuiltInType': 'false',
},
},
'msvs_external_builder_build_cmd': [
'ninja.exe',
'-C',
'$(OutDir)',
'-k0',
'$(ProjectName)',
],
'configurations': {
'Debug': {
'defines': [
'_DEBUG',
],
'include_dirs': [
'<(DEPTH)/../../../Libraries/openssl/Debug/include',
],
'msvs_settings': {
'VCCLCompilerTool': {
'Optimization': '0', # Disabled (/Od)
'RuntimeLibrary': '1', # Multi-threaded Debug (/MTd)
'RuntimeTypeInfo': 'true',
},
'VCLibrarianTool': {
'AdditionalOptions': [
'/NODEFAULTLIB:LIBCMT'
]
}
},
},
'Release': {
'defines': [
'NDEBUG',
],
'include_dirs': [
'<(DEPTH)/../../../Libraries/openssl/Release/include',
],
'msvs_settings': {
'VCCLCompilerTool': {
'Optimization': '2', # Maximize Speed (/O2)
'InlineFunctionExpansion': '2', # Any suitable (/Ob2)
'EnableIntrinsicFunctions': 'true', # Yes (/Oi)
'FavorSizeOrSpeed': '1', # Favor fast code (/Ot)
'RuntimeLibrary': '0', # Multi-threaded (/MT)
'EnableEnhancedInstructionSet': '2', # Streaming SIMD Extensions 2 (/arch:SSE2)
'WholeProgramOptimization': 'true', # /GL
},
'VCLibrarianTool': {
'AdditionalOptions': [
'/LTCG',
]
},
},
},
},
},
],
[
'"<(OS)" == "linux"', {
'defines': [
'WEBRTC_POSIX',
'WEBRTC_LINUX',
],
'conditions': [
[ '"<!(uname -m)" == "i686"', {
'cflags_cc': [
'-msse2',
],
}]
],
'direct_dependent_settings': {
'libraries': [
],
},
},
],
],
},
],
}
|
{'targets': [{'target_name': 'libtgvoip', 'type': 'static_library', 'dependencies': [], 'defines': ['WEBRTC_APM_DEBUG_DUMP=0', 'TGVOIP_USE_DESKTOP_DSP', 'WEBRTC_NS_FLOAT'], 'variables': {'tgvoip_src_loc': '.', 'official_build_target%': '', 'linux_path_opus_include%': '<(DEPTH)/../../../Libraries/opus/include'}, 'include_dirs': ['<(tgvoip_src_loc)/webrtc_dsp', '<(linux_path_opus_include)'], 'direct_dependent_settings': {'include_dirs': ['<(tgvoip_src_loc)']}, 'export_dependent_settings': [], 'sources': ['<(tgvoip_src_loc)/BlockingQueue.cpp', '<(tgvoip_src_loc)/BlockingQueue.h', '<(tgvoip_src_loc)/Buffers.cpp', '<(tgvoip_src_loc)/Buffers.h', '<(tgvoip_src_loc)/CongestionControl.cpp', '<(tgvoip_src_loc)/CongestionControl.h', '<(tgvoip_src_loc)/EchoCanceller.cpp', '<(tgvoip_src_loc)/EchoCanceller.h', '<(tgvoip_src_loc)/JitterBuffer.cpp', '<(tgvoip_src_loc)/JitterBuffer.h', '<(tgvoip_src_loc)/logging.cpp', '<(tgvoip_src_loc)/logging.h', '<(tgvoip_src_loc)/MediaStreamItf.cpp', '<(tgvoip_src_loc)/MediaStreamItf.h', '<(tgvoip_src_loc)/OpusDecoder.cpp', '<(tgvoip_src_loc)/OpusDecoder.h', '<(tgvoip_src_loc)/OpusEncoder.cpp', '<(tgvoip_src_loc)/OpusEncoder.h', '<(tgvoip_src_loc)/threading.h', '<(tgvoip_src_loc)/VoIPController.cpp', '<(tgvoip_src_loc)/VoIPGroupController.cpp', '<(tgvoip_src_loc)/VoIPController.h', '<(tgvoip_src_loc)/PrivateDefines.h', '<(tgvoip_src_loc)/VoIPServerConfig.cpp', '<(tgvoip_src_loc)/VoIPServerConfig.h', '<(tgvoip_src_loc)/audio/AudioInput.cpp', '<(tgvoip_src_loc)/audio/AudioInput.h', '<(tgvoip_src_loc)/audio/AudioOutput.cpp', '<(tgvoip_src_loc)/audio/AudioOutput.h', '<(tgvoip_src_loc)/audio/Resampler.cpp', '<(tgvoip_src_loc)/audio/Resampler.h', '<(tgvoip_src_loc)/NetworkSocket.cpp', '<(tgvoip_src_loc)/NetworkSocket.h', '<(tgvoip_src_loc)/PacketReassembler.cpp', '<(tgvoip_src_loc)/PacketReassembler.h', '<(tgvoip_src_loc)/MessageThread.cpp', '<(tgvoip_src_loc)/MessageThread.h', '<(tgvoip_src_loc)/audio/AudioIO.cpp', '<(tgvoip_src_loc)/audio/AudioIO.h', '<(tgvoip_src_loc)/video/ScreamCongestionController.cpp', '<(tgvoip_src_loc)/video/ScreamCongestionController.h', '<(tgvoip_src_loc)/video/VideoSource.cpp', '<(tgvoip_src_loc)/video/VideoSource.h', '<(tgvoip_src_loc)/video/VideoRenderer.cpp', '<(tgvoip_src_loc)/video/VideoRenderer.h', '<(tgvoip_src_loc)/video/VideoPacketSender.cpp', '<(tgvoip_src_loc)/video/VideoPacketSender.h', '<(tgvoip_src_loc)/video/VideoFEC.cpp', '<(tgvoip_src_loc)/video/VideoFEC.h', '<(tgvoip_src_loc)/json11.cpp', '<(tgvoip_src_loc)/json11.hpp', '<(tgvoip_src_loc)/os/windows/NetworkSocketWinsock.cpp', '<(tgvoip_src_loc)/os/windows/NetworkSocketWinsock.h', '<(tgvoip_src_loc)/os/windows/AudioInputWave.cpp', '<(tgvoip_src_loc)/os/windows/AudioInputWave.h', '<(tgvoip_src_loc)/os/windows/AudioOutputWave.cpp', '<(tgvoip_src_loc)/os/windows/AudioOutputWave.h', '<(tgvoip_src_loc)/os/windows/AudioOutputWASAPI.cpp', '<(tgvoip_src_loc)/os/windows/AudioOutputWASAPI.h', '<(tgvoip_src_loc)/os/windows/AudioInputWASAPI.cpp', '<(tgvoip_src_loc)/os/windows/AudioInputWASAPI.h', '<(tgvoip_src_loc)/os/windows/WindowsSpecific.cpp', '<(tgvoip_src_loc)/os/windows/WindowsSpecific.h', '<(tgvoip_src_loc)/os/darwin/AudioInputAudioUnit.cpp', '<(tgvoip_src_loc)/os/darwin/AudioInputAudioUnit.h', '<(tgvoip_src_loc)/os/darwin/AudioOutputAudioUnit.cpp', '<(tgvoip_src_loc)/os/darwin/AudioOutputAudioUnit.h', '<(tgvoip_src_loc)/os/darwin/AudioInputAudioUnitOSX.cpp', '<(tgvoip_src_loc)/os/darwin/AudioInputAudioUnitOSX.h', '<(tgvoip_src_loc)/os/darwin/AudioOutputAudioUnitOSX.cpp', '<(tgvoip_src_loc)/os/darwin/AudioOutputAudioUnitOSX.h', '<(tgvoip_src_loc)/os/darwin/AudioUnitIO.cpp', '<(tgvoip_src_loc)/os/darwin/AudioUnitIO.h', '<(tgvoip_src_loc)/os/darwin/DarwinSpecific.mm', '<(tgvoip_src_loc)/os/darwin/DarwinSpecific.h', '<(tgvoip_src_loc)/os/linux/AudioInputALSA.cpp', '<(tgvoip_src_loc)/os/linux/AudioInputALSA.h', '<(tgvoip_src_loc)/os/linux/AudioOutputALSA.cpp', '<(tgvoip_src_loc)/os/linux/AudioOutputALSA.h', '<(tgvoip_src_loc)/os/linux/AudioOutputPulse.cpp', '<(tgvoip_src_loc)/os/linux/AudioOutputPulse.h', '<(tgvoip_src_loc)/os/linux/AudioInputPulse.cpp', '<(tgvoip_src_loc)/os/linux/AudioInputPulse.h', '<(tgvoip_src_loc)/os/linux/AudioPulse.cpp', '<(tgvoip_src_loc)/os/linux/AudioPulse.h', '<(tgvoip_src_loc)/os/posix/NetworkSocketPosix.cpp', '<(tgvoip_src_loc)/os/posix/NetworkSocketPosix.h', '<(tgvoip_src_loc)/webrtc_dsp/system_wrappers/include/field_trial.h', '<(tgvoip_src_loc)/webrtc_dsp/system_wrappers/include/cpu_features_wrapper.h', '<(tgvoip_src_loc)/webrtc_dsp/system_wrappers/include/asm_defines.h', '<(tgvoip_src_loc)/webrtc_dsp/system_wrappers/include/metrics.h', '<(tgvoip_src_loc)/webrtc_dsp/system_wrappers/include/compile_assert_c.h', '<(tgvoip_src_loc)/webrtc_dsp/system_wrappers/source/field_trial.cc', '<(tgvoip_src_loc)/webrtc_dsp/system_wrappers/source/metrics.cc', '<(tgvoip_src_loc)/webrtc_dsp/system_wrappers/source/cpu_features.cc', '<(tgvoip_src_loc)/webrtc_dsp/typedefs.h', '<(tgvoip_src_loc)/webrtc_dsp/absl/strings/internal/memutil.h', '<(tgvoip_src_loc)/webrtc_dsp/absl/strings/internal/memutil.cc', '<(tgvoip_src_loc)/webrtc_dsp/absl/strings/string_view.cc', '<(tgvoip_src_loc)/webrtc_dsp/absl/strings/ascii.h', '<(tgvoip_src_loc)/webrtc_dsp/absl/strings/ascii.cc', '<(tgvoip_src_loc)/webrtc_dsp/absl/strings/string_view.h', '<(tgvoip_src_loc)/webrtc_dsp/absl/types/optional.h', '<(tgvoip_src_loc)/webrtc_dsp/absl/types/bad_optional_access.h', '<(tgvoip_src_loc)/webrtc_dsp/absl/types/bad_optional_access.cc', '<(tgvoip_src_loc)/webrtc_dsp/absl/types/optional.cc', '<(tgvoip_src_loc)/webrtc_dsp/absl/memory/memory.h', '<(tgvoip_src_loc)/webrtc_dsp/absl/meta/type_traits.h', '<(tgvoip_src_loc)/webrtc_dsp/absl/algorithm/algorithm.h', '<(tgvoip_src_loc)/webrtc_dsp/absl/container/inlined_vector.h', '<(tgvoip_src_loc)/webrtc_dsp/absl/base/policy_checks.h', '<(tgvoip_src_loc)/webrtc_dsp/absl/base/port.h', '<(tgvoip_src_loc)/webrtc_dsp/absl/base/config.h', '<(tgvoip_src_loc)/webrtc_dsp/absl/base/internal/raw_logging.cc', '<(tgvoip_src_loc)/webrtc_dsp/absl/base/internal/throw_delegate.cc', '<(tgvoip_src_loc)/webrtc_dsp/absl/base/internal/invoke.h', '<(tgvoip_src_loc)/webrtc_dsp/absl/base/internal/inline_variable.h', '<(tgvoip_src_loc)/webrtc_dsp/absl/base/internal/atomic_hook.h', '<(tgvoip_src_loc)/webrtc_dsp/absl/base/internal/identity.h', '<(tgvoip_src_loc)/webrtc_dsp/absl/base/internal/raw_logging.h', '<(tgvoip_src_loc)/webrtc_dsp/absl/base/internal/throw_delegate.h', '<(tgvoip_src_loc)/webrtc_dsp/absl/base/attributes.h', '<(tgvoip_src_loc)/webrtc_dsp/absl/base/macros.h', '<(tgvoip_src_loc)/webrtc_dsp/absl/base/optimization.h', '<(tgvoip_src_loc)/webrtc_dsp/absl/base/log_severity.h', '<(tgvoip_src_loc)/webrtc_dsp/absl/utility/utility.h', '<(tgvoip_src_loc)/webrtc_dsp/rtc_base/string_to_number.h', '<(tgvoip_src_loc)/webrtc_dsp/rtc_base/constructormagic.h', '<(tgvoip_src_loc)/webrtc_dsp/rtc_base/race_checker.cc', '<(tgvoip_src_loc)/webrtc_dsp/rtc_base/strings/string_builder.h', '<(tgvoip_src_loc)/webrtc_dsp/rtc_base/strings/string_builder.cc', '<(tgvoip_src_loc)/webrtc_dsp/rtc_base/event_tracer.h', '<(tgvoip_src_loc)/webrtc_dsp/rtc_base/stringencode.h', '<(tgvoip_src_loc)/webrtc_dsp/rtc_base/memory/aligned_malloc.cc', '<(tgvoip_src_loc)/webrtc_dsp/rtc_base/memory/aligned_malloc.h', '<(tgvoip_src_loc)/webrtc_dsp/rtc_base/timeutils.cc', '<(tgvoip_src_loc)/webrtc_dsp/rtc_base/event.h', '<(tgvoip_src_loc)/webrtc_dsp/rtc_base/ignore_wundef.h', '<(tgvoip_src_loc)/webrtc_dsp/rtc_base/stringutils.h', '<(tgvoip_src_loc)/webrtc_dsp/rtc_base/arraysize.h', '<(tgvoip_src_loc)/webrtc_dsp/rtc_base/platform_file.cc', '<(tgvoip_src_loc)/webrtc_dsp/rtc_base/swap_queue.h', '<(tgvoip_src_loc)/webrtc_dsp/rtc_base/string_to_number.cc', '<(tgvoip_src_loc)/webrtc_dsp/rtc_base/trace_event.h', '<(tgvoip_src_loc)/webrtc_dsp/rtc_base/checks.h', '<(tgvoip_src_loc)/webrtc_dsp/rtc_base/deprecation.h', '<(tgvoip_src_loc)/webrtc_dsp/rtc_base/thread_checker_impl.cc', '<(tgvoip_src_loc)/webrtc_dsp/rtc_base/sanitizer.h', '<(tgvoip_src_loc)/webrtc_dsp/rtc_base/scoped_ref_ptr.h', '<(tgvoip_src_loc)/webrtc_dsp/rtc_base/logging.h', '<(tgvoip_src_loc)/webrtc_dsp/rtc_base/timeutils.h', '<(tgvoip_src_loc)/webrtc_dsp/rtc_base/atomicops.h', '<(tgvoip_src_loc)/webrtc_dsp/rtc_base/stringencode.cc', '<(tgvoip_src_loc)/webrtc_dsp/rtc_base/stringutils.cc', '<(tgvoip_src_loc)/webrtc_dsp/rtc_base/checks.cc', '<(tgvoip_src_loc)/webrtc_dsp/rtc_base/numerics/safe_minmax.h', '<(tgvoip_src_loc)/webrtc_dsp/rtc_base/numerics/safe_conversions.h', '<(tgvoip_src_loc)/webrtc_dsp/rtc_base/numerics/safe_conversions_impl.h', '<(tgvoip_src_loc)/webrtc_dsp/rtc_base/numerics/safe_compare.h', '<(tgvoip_src_loc)/webrtc_dsp/rtc_base/system/unused.h', '<(tgvoip_src_loc)/webrtc_dsp/rtc_base/system/inline.h', '<(tgvoip_src_loc)/webrtc_dsp/rtc_base/system/ignore_warnings.h', '<(tgvoip_src_loc)/webrtc_dsp/rtc_base/system/asm_defines.h', '<(tgvoip_src_loc)/webrtc_dsp/rtc_base/system/rtc_export.h', '<(tgvoip_src_loc)/webrtc_dsp/rtc_base/system/arch.h', '<(tgvoip_src_loc)/webrtc_dsp/rtc_base/platform_thread.cc', '<(tgvoip_src_loc)/webrtc_dsp/rtc_base/platform_thread.h', '<(tgvoip_src_loc)/webrtc_dsp/rtc_base/platform_thread_types.h', '<(tgvoip_src_loc)/webrtc_dsp/rtc_base/protobuf_utils.h', '<(tgvoip_src_loc)/webrtc_dsp/rtc_base/thread_annotations.h', '<(tgvoip_src_loc)/webrtc_dsp/rtc_base/gtest_prod_util.h', '<(tgvoip_src_loc)/webrtc_dsp/rtc_base/function_view.h', '<(tgvoip_src_loc)/webrtc_dsp/rtc_base/criticalsection.h', '<(tgvoip_src_loc)/webrtc_dsp/rtc_base/criticalsection.cc', '<(tgvoip_src_loc)/webrtc_dsp/rtc_base/platform_thread_types.cc', '<(tgvoip_src_loc)/webrtc_dsp/rtc_base/refcount.h', '<(tgvoip_src_loc)/webrtc_dsp/rtc_base/event.cc', '<(tgvoip_src_loc)/webrtc_dsp/rtc_base/thread_checker_impl.h', '<(tgvoip_src_loc)/webrtc_dsp/rtc_base/event_tracer.cc', '<(tgvoip_src_loc)/webrtc_dsp/rtc_base/compile_assert_c.h', '<(tgvoip_src_loc)/webrtc_dsp/rtc_base/logging_webrtc.cc', '<(tgvoip_src_loc)/webrtc_dsp/rtc_base/type_traits.h', '<(tgvoip_src_loc)/webrtc_dsp/rtc_base/platform_file.h', '<(tgvoip_src_loc)/webrtc_dsp/rtc_base/refcounter.h', '<(tgvoip_src_loc)/webrtc_dsp/rtc_base/logging_mac.h', '<(tgvoip_src_loc)/webrtc_dsp/rtc_base/thread_checker.h', '<(tgvoip_src_loc)/webrtc_dsp/rtc_base/race_checker.h', '<(tgvoip_src_loc)/webrtc_dsp/rtc_base/refcountedobject.h', '<(tgvoip_src_loc)/webrtc_dsp/third_party/rnnoise/src/rnn_vad_weights.cc', '<(tgvoip_src_loc)/webrtc_dsp/third_party/rnnoise/src/rnn_activations.h', '<(tgvoip_src_loc)/webrtc_dsp/third_party/rnnoise/src/kiss_fft.h', '<(tgvoip_src_loc)/webrtc_dsp/third_party/rnnoise/src/kiss_fft.cc', '<(tgvoip_src_loc)/webrtc_dsp/third_party/rnnoise/src/rnn_vad_weights.h', '<(tgvoip_src_loc)/webrtc_dsp/api/audio/audio_frame.cc', '<(tgvoip_src_loc)/webrtc_dsp/api/audio/echo_canceller3_config.h', '<(tgvoip_src_loc)/webrtc_dsp/api/audio/echo_control.h', '<(tgvoip_src_loc)/webrtc_dsp/api/audio/audio_frame.h', '<(tgvoip_src_loc)/webrtc_dsp/api/audio/echo_canceller3_config.cc', '<(tgvoip_src_loc)/webrtc_dsp/api/audio/echo_canceller3_factory.h', '<(tgvoip_src_loc)/webrtc_dsp/api/audio/echo_canceller3_factory.cc', '<(tgvoip_src_loc)/webrtc_dsp/api/array_view.h', '<(tgvoip_src_loc)/webrtc_dsp/modules/third_party/fft/fft.h', '<(tgvoip_src_loc)/webrtc_dsp/modules/third_party/fft/fft.c', '<(tgvoip_src_loc)/webrtc_dsp/modules/audio_coding/codecs/isac/bandwidth_info.h', '<(tgvoip_src_loc)/webrtc_dsp/modules/audio_coding/codecs/isac/main/include/isac.h', '<(tgvoip_src_loc)/webrtc_dsp/modules/audio_coding/codecs/isac/main/source/pitch_estimator.c', '<(tgvoip_src_loc)/webrtc_dsp/modules/audio_coding/codecs/isac/main/source/lpc_shape_swb16_tables.c', '<(tgvoip_src_loc)/webrtc_dsp/modules/audio_coding/codecs/isac/main/source/pitch_gain_tables.c', '<(tgvoip_src_loc)/webrtc_dsp/modules/audio_coding/codecs/isac/main/source/arith_routines_logist.c', '<(tgvoip_src_loc)/webrtc_dsp/modules/audio_coding/codecs/isac/main/source/os_specific_inline.h', '<(tgvoip_src_loc)/webrtc_dsp/modules/audio_coding/codecs/isac/main/source/filterbanks.c', '<(tgvoip_src_loc)/webrtc_dsp/modules/audio_coding/codecs/isac/main/source/entropy_coding.h', '<(tgvoip_src_loc)/webrtc_dsp/modules/audio_coding/codecs/isac/main/source/isac_vad.h', '<(tgvoip_src_loc)/webrtc_dsp/modules/audio_coding/codecs/isac/main/source/settings.h', '<(tgvoip_src_loc)/webrtc_dsp/modules/audio_coding/codecs/isac/main/source/transform.c', '<(tgvoip_src_loc)/webrtc_dsp/modules/audio_coding/codecs/isac/main/source/lpc_shape_swb12_tables.h', '<(tgvoip_src_loc)/webrtc_dsp/modules/audio_coding/codecs/isac/main/source/arith_routines.h', '<(tgvoip_src_loc)/webrtc_dsp/modules/audio_coding/codecs/isac/main/source/crc.h', '<(tgvoip_src_loc)/webrtc_dsp/modules/audio_coding/codecs/isac/main/source/pitch_filter.c', '<(tgvoip_src_loc)/webrtc_dsp/modules/audio_coding/codecs/isac/main/source/encode_lpc_swb.c', '<(tgvoip_src_loc)/webrtc_dsp/modules/audio_coding/codecs/isac/main/source/filter_functions.c', '<(tgvoip_src_loc)/webrtc_dsp/modules/audio_coding/codecs/isac/main/source/decode.c', '<(tgvoip_src_loc)/webrtc_dsp/modules/audio_coding/codecs/isac/main/source/lattice.c', '<(tgvoip_src_loc)/webrtc_dsp/modules/audio_coding/codecs/isac/main/source/intialize.c', '<(tgvoip_src_loc)/webrtc_dsp/modules/audio_coding/codecs/isac/main/source/lpc_tables.c', '<(tgvoip_src_loc)/webrtc_dsp/modules/audio_coding/codecs/isac/main/source/lpc_gain_swb_tables.c', '<(tgvoip_src_loc)/webrtc_dsp/modules/audio_coding/codecs/isac/main/source/bandwidth_estimator.c', '<(tgvoip_src_loc)/webrtc_dsp/modules/audio_coding/codecs/isac/main/source/isac_float_type.h', '<(tgvoip_src_loc)/webrtc_dsp/modules/audio_coding/codecs/isac/main/source/pitch_lag_tables.h', '<(tgvoip_src_loc)/webrtc_dsp/modules/audio_coding/codecs/isac/main/source/encode.c', '<(tgvoip_src_loc)/webrtc_dsp/modules/audio_coding/codecs/isac/main/source/lpc_analysis.c', '<(tgvoip_src_loc)/webrtc_dsp/modules/audio_coding/codecs/isac/main/source/spectrum_ar_model_tables.h', '<(tgvoip_src_loc)/webrtc_dsp/modules/audio_coding/codecs/isac/main/source/arith_routines_hist.c', '<(tgvoip_src_loc)/webrtc_dsp/modules/audio_coding/codecs/isac/main/source/codec.h', '<(tgvoip_src_loc)/webrtc_dsp/modules/audio_coding/codecs/isac/main/source/pitch_gain_tables.h', '<(tgvoip_src_loc)/webrtc_dsp/modules/audio_coding/codecs/isac/main/source/lpc_shape_swb16_tables.h', '<(tgvoip_src_loc)/webrtc_dsp/modules/audio_coding/codecs/isac/main/source/pitch_estimator.h', '<(tgvoip_src_loc)/webrtc_dsp/modules/audio_coding/codecs/isac/main/source/entropy_coding.c', '<(tgvoip_src_loc)/webrtc_dsp/modules/audio_coding/codecs/isac/main/source/isac_vad.c', '<(tgvoip_src_loc)/webrtc_dsp/modules/audio_coding/codecs/isac/main/source/structs.h', '<(tgvoip_src_loc)/webrtc_dsp/modules/audio_coding/codecs/isac/main/source/filter_functions.h', '<(tgvoip_src_loc)/webrtc_dsp/modules/audio_coding/codecs/isac/main/source/encode_lpc_swb.h', '<(tgvoip_src_loc)/webrtc_dsp/modules/audio_coding/codecs/isac/main/source/pitch_filter.h', '<(tgvoip_src_loc)/webrtc_dsp/modules/audio_coding/codecs/isac/main/source/arith_routines.c', '<(tgvoip_src_loc)/webrtc_dsp/modules/audio_coding/codecs/isac/main/source/crc.c', '<(tgvoip_src_loc)/webrtc_dsp/modules/audio_coding/codecs/isac/main/source/lpc_shape_swb12_tables.c', '<(tgvoip_src_loc)/webrtc_dsp/modules/audio_coding/codecs/isac/main/source/lpc_analysis.h', '<(tgvoip_src_loc)/webrtc_dsp/modules/audio_coding/codecs/isac/main/source/decode_bwe.c', '<(tgvoip_src_loc)/webrtc_dsp/modules/audio_coding/codecs/isac/main/source/spectrum_ar_model_tables.c', '<(tgvoip_src_loc)/webrtc_dsp/modules/audio_coding/codecs/isac/main/source/bandwidth_estimator.h', '<(tgvoip_src_loc)/webrtc_dsp/modules/audio_coding/codecs/isac/main/source/pitch_lag_tables.c', '<(tgvoip_src_loc)/webrtc_dsp/modules/audio_coding/codecs/isac/main/source/isac.c', '<(tgvoip_src_loc)/webrtc_dsp/modules/audio_coding/codecs/isac/main/source/lpc_gain_swb_tables.h', '<(tgvoip_src_loc)/webrtc_dsp/modules/audio_coding/codecs/isac/main/source/lpc_tables.h', '<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/rms_level.cc', '<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/echo_detector/moving_max.h', '<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/echo_detector/circular_buffer.h', '<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/echo_detector/normalized_covariance_estimator.h', '<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/echo_detector/normalized_covariance_estimator.cc', '<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/echo_detector/moving_max.cc', '<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/echo_detector/circular_buffer.cc', '<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/echo_detector/mean_variance_estimator.cc', '<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/echo_detector/mean_variance_estimator.h', '<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/gain_control_for_experimental_agc.h', '<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/splitting_filter.cc', '<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/gain_control_impl.cc', '<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/rms_level.h', '<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/ns/ns_core.h', '<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/ns/nsx_core.c', '<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/ns/noise_suppression_x.c', '<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/ns/nsx_core_c.c', '<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/ns/defines.h', '<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/ns/noise_suppression.h', '<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/ns/ns_core.c', '<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/ns/nsx_core.h', '<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/ns/windows_private.h', '<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/ns/noise_suppression_x.h', '<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/ns/noise_suppression.c', '<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/ns/nsx_defines.h', '<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/residual_echo_detector.h', '<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/audio_processing_impl.h', '<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/audio_buffer.cc', '<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/typing_detection.cc', '<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/render_queue_item_verifier.h', '<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/include/audio_generator.h', '<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/include/config.h', '<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/include/audio_frame_view.h', '<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/include/mock_audio_processing.h', '<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/include/gain_control.h', '<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/include/audio_generator_factory.h', '<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/include/audio_processing_statistics.cc', '<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/include/audio_generator_factory.cc', '<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/include/aec_dump.cc', '<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/include/aec_dump.h', '<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/include/audio_processing_statistics.h', '<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/include/audio_processing.h', '<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/include/audio_processing.cc', '<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/include/config.cc', '<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/agc2/interpolated_gain_curve.h', '<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/agc2/biquad_filter.h', '<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/agc2/interpolated_gain_curve.cc', '<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/agc2/agc2_common.cc', '<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/agc2/agc2_testing_common.h', '<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/agc2/adaptive_mode_level_estimator.h', '<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/agc2/gain_applier.cc', '<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/agc2/signal_classifier.h', '<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/agc2/adaptive_agc.cc', '<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/agc2/adaptive_digital_gain_applier.cc', '<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/agc2/limiter.cc', '<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/agc2/saturation_protector.cc', '<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/agc2/vector_float_frame.h', '<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/agc2/rnn_vad/spectral_features_internal.cc', '<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/agc2/rnn_vad/sequence_buffer.h', '<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/agc2/rnn_vad/rnn.h', '<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/agc2/rnn_vad/rnn.cc', '<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/agc2/rnn_vad/test_utils.h', '<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/agc2/rnn_vad/pitch_info.h', '<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/agc2/rnn_vad/lp_residual.h', '<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/agc2/rnn_vad/ring_buffer.h', '<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/agc2/rnn_vad/pitch_search_internal.cc', '<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/agc2/rnn_vad/symmetric_matrix_buffer.h', '<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/agc2/rnn_vad/spectral_features.h', '<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/agc2/rnn_vad/features_extraction.h', '<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/agc2/rnn_vad/common.h', '<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/agc2/rnn_vad/spectral_features_internal.h', '<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/agc2/rnn_vad/fft_util.h', '<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/agc2/rnn_vad/spectral_features.cc', '<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/agc2/rnn_vad/pitch_search_internal.h', '<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/agc2/rnn_vad/pitch_search.cc', '<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/agc2/rnn_vad/pitch_search.h', '<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/agc2/rnn_vad/features_extraction.cc', '<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/agc2/rnn_vad/fft_util.cc', '<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/agc2/rnn_vad/lp_residual.cc', '<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/agc2/fixed_gain_controller.h', '<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/agc2/adaptive_mode_level_estimator_agc.cc', '<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/agc2/vector_float_frame.cc', '<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/agc2/down_sampler.h', '<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/agc2/noise_level_estimator.cc', '<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/agc2/agc2_testing_common.cc', '<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/agc2/fixed_digital_level_estimator.cc', '<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/agc2/fixed_gain_controller.cc', '<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/agc2/saturation_protector.h', '<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/agc2/vad_with_level.cc', '<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/agc2/limiter_db_gain_curve.cc', '<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/agc2/agc2_common.h', '<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/agc2/adaptive_mode_level_estimator_agc.h', '<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/agc2/adaptive_digital_gain_applier.h', '<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/agc2/vad_with_level.h', '<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/agc2/limiter_db_gain_curve.h', '<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/agc2/fixed_digital_level_estimator.h', '<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/agc2/adaptive_agc.h', '<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/agc2/gain_applier.h', '<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/agc2/down_sampler.cc', '<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/agc2/noise_level_estimator.h', '<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/agc2/signal_classifier.cc', '<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/agc2/noise_spectrum_estimator.cc', '<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/agc2/compute_interpolated_gain_curve.cc', '<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/agc2/compute_interpolated_gain_curve.h', '<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/agc2/biquad_filter.cc', '<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/agc2/noise_spectrum_estimator.h', '<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/agc2/limiter.h', '<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/agc2/adaptive_mode_level_estimator.cc', '<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/transient/moving_moments.cc', '<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/transient/transient_detector.h', '<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/transient/wpd_tree.cc', '<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/transient/transient_suppressor.h', '<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/transient/daubechies_8_wavelet_coeffs.h', '<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/transient/common.h', '<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/transient/wpd_node.h', '<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/transient/moving_moments.h', '<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/transient/wpd_tree.h', '<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/transient/wpd_node.cc', '<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/transient/transient_suppressor.cc', '<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/transient/transient_detector.cc', '<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/transient/dyadic_decimator.h', '<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/low_cut_filter.cc', '<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/noise_suppression_impl.h', '<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/level_estimator_impl.cc', '<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/three_band_filter_bank.cc', '<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/aec/echo_cancellation.cc', '<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/aec/aec_resampler.h', '<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/aec/aec_resampler.cc', '<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/aec/echo_cancellation.h', '<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/aec/aec_core.cc', '<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/aec/aec_core.h', '<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/aec/aec_core_optimized_methods.h', '<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/aec/aec_core_sse2.cc', '<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/aec/aec_common.h', '<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/voice_detection_impl.h', '<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/voice_detection_impl.cc', '<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/echo_cancellation_impl.cc', '<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/gain_control_for_experimental_agc.cc', '<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/agc/agc.cc', '<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/agc/loudness_histogram.cc', '<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/agc/agc_manager_direct.cc', '<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/agc/legacy/analog_agc.h', '<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/agc/legacy/gain_control.h', '<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/agc/legacy/digital_agc.h', '<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/agc/legacy/analog_agc.c', '<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/agc/legacy/digital_agc.c', '<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/agc/utility.cc', '<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/agc/mock_agc.h', '<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/agc/loudness_histogram.h', '<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/agc/gain_map_internal.h', '<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/agc/utility.h', '<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/agc/agc_manager_direct.h', '<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/agc/agc.h', '<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/common.h', '<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/audio_processing_impl.cc', '<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/audio_buffer.h', '<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/echo_control_mobile_impl.h', '<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/splitting_filter.h', '<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/low_cut_filter.h', '<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/audio_generator/file_audio_generator.h', '<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/audio_generator/file_audio_generator.cc', '<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/gain_controller2.cc', '<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/three_band_filter_bank.h', '<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/residual_echo_detector.cc', '<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/echo_cancellation_impl.h', '<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/noise_suppression_impl.cc', '<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/level_estimator_impl.h', '<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/gain_controller2.h', '<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/aecm/aecm_core.h', '<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/aecm/aecm_defines.h', '<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/aecm/aecm_core.cc', '<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/aecm/aecm_core_c.cc', '<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/aecm/echo_control_mobile.h', '<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/aecm/echo_control_mobile.cc', '<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/aec3/render_reverb_model.cc', '<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/aec3/downsampled_render_buffer.h', '<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/aec3/subtractor_output_analyzer.h', '<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/aec3/reverb_model_fallback.cc', '<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/aec3/residual_echo_estimator.h', '<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/aec3/shadow_filter_update_gain.h', '<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/aec3/echo_remover_metrics.cc', '<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/aec3/matched_filter_lag_aggregator.cc', '<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/aec3/render_delay_buffer2.cc', '<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/aec3/aec_state.h', '<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/aec3/suppression_filter.h', '<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/aec3/echo_path_variability.cc', '<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/aec3/frame_blocker.cc', '<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/aec3/subtractor.cc', '<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/aec3/block_delay_buffer.h', '<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/aec3/adaptive_fir_filter.h', '<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/aec3/cascaded_biquad_filter.h', '<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/aec3/matched_filter.h', '<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/aec3/subtractor_output.h', '<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/aec3/render_signal_analyzer.h', '<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/aec3/aec3_fft.cc', '<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/aec3/aec3_fft.h', '<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/aec3/echo_remover_metrics.h', '<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/aec3/fullband_erle_estimator.cc', '<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/aec3/suppression_filter.cc', '<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/aec3/block_processor.cc', '<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/aec3/filter_analyzer.h', '<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/aec3/subtractor.h', '<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/aec3/echo_path_delay_estimator.h', '<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/aec3/subband_erle_estimator.cc', '<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/aec3/render_delay_controller_metrics.cc', '<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/aec3/render_delay_buffer.cc', '<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/aec3/block_processor_metrics.h', '<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/aec3/vector_buffer.cc', '<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/aec3/erl_estimator.cc', '<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/aec3/aec_state.cc', '<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/aec3/adaptive_fir_filter.cc', '<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/aec3/fft_data.h', '<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/aec3/render_delay_controller.cc', '<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/aec3/skew_estimator.cc', '<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/aec3/render_delay_controller_metrics.h', '<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/aec3/comfort_noise_generator.h', '<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/aec3/echo_path_delay_estimator.cc', '<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/aec3/erl_estimator.h', '<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/aec3/echo_remover.h', '<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/aec3/block_framer.cc', '<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/aec3/erle_estimator.cc', '<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/aec3/reverb_model.cc', '<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/aec3/cascaded_biquad_filter.cc', '<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/aec3/matrix_buffer.h', '<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/aec3/render_buffer.cc', '<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/aec3/reverb_model_estimator.h', '<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/aec3/subtractor_output.cc', '<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/aec3/stationarity_estimator.cc', '<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/aec3/render_signal_analyzer.cc', '<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/aec3/echo_path_variability.h', '<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/aec3/moving_average.h', '<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/aec3/render_reverb_model.h', '<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/aec3/subtractor_output_analyzer.cc', '<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/aec3/suppression_gain.cc', '<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/aec3/echo_audibility.cc', '<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/aec3/block_processor_metrics.cc', '<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/aec3/render_delay_controller.h', '<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/aec3/suppression_gain.h', '<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/aec3/moving_average.cc', '<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/aec3/erle_estimator.h', '<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/aec3/subband_erle_estimator.h', '<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/aec3/reverb_model_estimator.cc', '<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/aec3/aec3_common.cc', '<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/aec3/residual_echo_estimator.cc', '<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/aec3/block_processor.h', '<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/aec3/fullband_erle_estimator.h', '<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/aec3/matched_filter.cc', '<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/aec3/stationarity_estimator.h', '<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/aec3/echo_canceller3.h', '<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/aec3/skew_estimator.h', '<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/aec3/reverb_decay_estimator.cc', '<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/aec3/render_delay_controller2.cc', '<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/aec3/render_buffer.h', '<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/aec3/suppression_gain_limiter.cc', '<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/aec3/main_filter_update_gain.cc', '<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/aec3/echo_remover.cc', '<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/aec3/reverb_model_fallback.h', '<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/aec3/downsampled_render_buffer.cc', '<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/aec3/vector_buffer.h', '<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/aec3/matrix_buffer.cc', '<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/aec3/reverb_frequency_response.h', '<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/aec3/echo_audibility.h', '<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/aec3/fft_buffer.h', '<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/aec3/block_processor2.cc', '<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/aec3/echo_canceller3.cc', '<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/aec3/block_delay_buffer.cc', '<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/aec3/aec3_common.h', '<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/aec3/fft_buffer.cc', '<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/aec3/vector_math.h', '<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/aec3/decimator.h', '<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/aec3/frame_blocker.h', '<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/aec3/block_framer.h', '<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/aec3/suppression_gain_limiter.h', '<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/aec3/delay_estimate.h', '<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/aec3/comfort_noise_generator.cc', '<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/aec3/reverb_model.h', '<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/aec3/main_filter_update_gain.h', '<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/aec3/matched_filter_lag_aggregator.h', '<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/aec3/shadow_filter_update_gain.cc', '<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/aec3/filter_analyzer.cc', '<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/aec3/reverb_decay_estimator.h', '<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/aec3/reverb_frequency_response.cc', '<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/aec3/decimator.cc', '<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/aec3/render_delay_buffer.h', '<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/echo_control_mobile_impl.cc', '<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/gain_control_impl.h', '<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/typing_detection.h', '<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/logging/apm_data_dumper.cc', '<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/logging/apm_data_dumper.h', '<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/vad/voice_activity_detector.cc', '<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/vad/standalone_vad.cc', '<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/vad/vad_audio_proc_internal.h', '<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/vad/pitch_internal.cc', '<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/vad/vad_circular_buffer.cc', '<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/vad/vad_circular_buffer.h', '<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/vad/pitch_based_vad.h', '<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/vad/vad_audio_proc.cc', '<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/vad/pole_zero_filter.cc', '<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/vad/pole_zero_filter.h', '<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/vad/pitch_based_vad.cc', '<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/vad/gmm.h', '<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/vad/common.h', '<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/vad/vad_audio_proc.h', '<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/vad/voice_gmm_tables.h', '<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/vad/noise_gmm_tables.h', '<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/vad/pitch_internal.h', '<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/vad/gmm.cc', '<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/vad/standalone_vad.h', '<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/vad/voice_activity_detector.h', '<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/utility/delay_estimator_internal.h', '<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/utility/ooura_fft.cc', '<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/utility/ooura_fft.h', '<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/utility/delay_estimator_wrapper.cc', '<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/utility/ooura_fft_sse2.cc', '<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/utility/delay_estimator.cc', '<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/utility/block_mean_calculator.h', '<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/utility/block_mean_calculator.cc', '<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/utility/delay_estimator.h', '<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/utility/ooura_fft_tables_common.h', '<(tgvoip_src_loc)/webrtc_dsp/modules/audio_processing/utility/delay_estimator_wrapper.h', '<(tgvoip_src_loc)/webrtc_dsp/common_audio/mocks/mock_smoothing_filter.h', '<(tgvoip_src_loc)/webrtc_dsp/common_audio/wav_file.h', '<(tgvoip_src_loc)/webrtc_dsp/common_audio/window_generator.cc', '<(tgvoip_src_loc)/webrtc_dsp/common_audio/channel_buffer.cc', '<(tgvoip_src_loc)/webrtc_dsp/common_audio/fir_filter_factory.cc', '<(tgvoip_src_loc)/webrtc_dsp/common_audio/sparse_fir_filter.h', '<(tgvoip_src_loc)/webrtc_dsp/common_audio/fir_filter_sse.h', '<(tgvoip_src_loc)/webrtc_dsp/common_audio/window_generator.h', '<(tgvoip_src_loc)/webrtc_dsp/common_audio/ring_buffer.h', '<(tgvoip_src_loc)/webrtc_dsp/common_audio/fir_filter.h', '<(tgvoip_src_loc)/webrtc_dsp/common_audio/include/audio_util.h', '<(tgvoip_src_loc)/webrtc_dsp/common_audio/wav_header.cc', '<(tgvoip_src_loc)/webrtc_dsp/common_audio/real_fourier_ooura.cc', '<(tgvoip_src_loc)/webrtc_dsp/common_audio/audio_util.cc', '<(tgvoip_src_loc)/webrtc_dsp/common_audio/real_fourier_ooura.h', '<(tgvoip_src_loc)/webrtc_dsp/common_audio/fir_filter_sse.cc', '<(tgvoip_src_loc)/webrtc_dsp/common_audio/smoothing_filter.h', '<(tgvoip_src_loc)/webrtc_dsp/common_audio/resampler/push_sinc_resampler.cc', '<(tgvoip_src_loc)/webrtc_dsp/common_audio/resampler/sinc_resampler.h', '<(tgvoip_src_loc)/webrtc_dsp/common_audio/resampler/resampler.cc', '<(tgvoip_src_loc)/webrtc_dsp/common_audio/resampler/sinc_resampler_sse.cc', '<(tgvoip_src_loc)/webrtc_dsp/common_audio/resampler/include/push_resampler.h', '<(tgvoip_src_loc)/webrtc_dsp/common_audio/resampler/include/resampler.h', '<(tgvoip_src_loc)/webrtc_dsp/common_audio/resampler/push_sinc_resampler.h', '<(tgvoip_src_loc)/webrtc_dsp/common_audio/resampler/push_resampler.cc', '<(tgvoip_src_loc)/webrtc_dsp/common_audio/resampler/sinusoidal_linear_chirp_source.h', '<(tgvoip_src_loc)/webrtc_dsp/common_audio/resampler/sinc_resampler.cc', '<(tgvoip_src_loc)/webrtc_dsp/common_audio/resampler/sinusoidal_linear_chirp_source.cc', '<(tgvoip_src_loc)/webrtc_dsp/common_audio/fir_filter_factory.h', '<(tgvoip_src_loc)/webrtc_dsp/common_audio/audio_converter.h', '<(tgvoip_src_loc)/webrtc_dsp/common_audio/wav_file.cc', '<(tgvoip_src_loc)/webrtc_dsp/common_audio/third_party/spl_sqrt_floor/spl_sqrt_floor.c', '<(tgvoip_src_loc)/webrtc_dsp/common_audio/third_party/spl_sqrt_floor/spl_sqrt_floor.h', '<(tgvoip_src_loc)/webrtc_dsp/common_audio/third_party/fft4g/fft4g.c', '<(tgvoip_src_loc)/webrtc_dsp/common_audio/third_party/fft4g/fft4g.h', '<(tgvoip_src_loc)/webrtc_dsp/common_audio/audio_converter.cc', '<(tgvoip_src_loc)/webrtc_dsp/common_audio/real_fourier.cc', '<(tgvoip_src_loc)/webrtc_dsp/common_audio/channel_buffer.h', '<(tgvoip_src_loc)/webrtc_dsp/common_audio/real_fourier.h', '<(tgvoip_src_loc)/webrtc_dsp/common_audio/sparse_fir_filter.cc', '<(tgvoip_src_loc)/webrtc_dsp/common_audio/smoothing_filter.cc', '<(tgvoip_src_loc)/webrtc_dsp/common_audio/fir_filter_c.cc', '<(tgvoip_src_loc)/webrtc_dsp/common_audio/ring_buffer.c', '<(tgvoip_src_loc)/webrtc_dsp/common_audio/fir_filter_c.h', '<(tgvoip_src_loc)/webrtc_dsp/common_audio/signal_processing/complex_fft_tables.h', '<(tgvoip_src_loc)/webrtc_dsp/common_audio/signal_processing/complex_fft.c', '<(tgvoip_src_loc)/webrtc_dsp/common_audio/signal_processing/filter_ma_fast_q12.c', '<(tgvoip_src_loc)/webrtc_dsp/common_audio/signal_processing/levinson_durbin.c', '<(tgvoip_src_loc)/webrtc_dsp/common_audio/signal_processing/dot_product_with_scale.cc', '<(tgvoip_src_loc)/webrtc_dsp/common_audio/signal_processing/auto_corr_to_refl_coef.c', '<(tgvoip_src_loc)/webrtc_dsp/common_audio/signal_processing/resample_by_2_internal.c', '<(tgvoip_src_loc)/webrtc_dsp/common_audio/signal_processing/energy.c', '<(tgvoip_src_loc)/webrtc_dsp/common_audio/signal_processing/sqrt_of_one_minus_x_squared.c', '<(tgvoip_src_loc)/webrtc_dsp/common_audio/signal_processing/downsample_fast.c', '<(tgvoip_src_loc)/webrtc_dsp/common_audio/signal_processing/splitting_filter1.c', '<(tgvoip_src_loc)/webrtc_dsp/common_audio/signal_processing/filter_ar_fast_q12.c', '<(tgvoip_src_loc)/webrtc_dsp/common_audio/signal_processing/spl_init.c', '<(tgvoip_src_loc)/webrtc_dsp/common_audio/signal_processing/lpc_to_refl_coef.c', '<(tgvoip_src_loc)/webrtc_dsp/common_audio/signal_processing/cross_correlation.c', '<(tgvoip_src_loc)/webrtc_dsp/common_audio/signal_processing/include/signal_processing_library.h', '<(tgvoip_src_loc)/webrtc_dsp/common_audio/signal_processing/include/real_fft.h', '<(tgvoip_src_loc)/webrtc_dsp/common_audio/signal_processing/include/spl_inl.h', '<(tgvoip_src_loc)/webrtc_dsp/common_audio/signal_processing/division_operations.c', '<(tgvoip_src_loc)/webrtc_dsp/common_audio/signal_processing/auto_correlation.c', '<(tgvoip_src_loc)/webrtc_dsp/common_audio/signal_processing/get_scaling_square.c', '<(tgvoip_src_loc)/webrtc_dsp/common_audio/signal_processing/dot_product_with_scale.h', '<(tgvoip_src_loc)/webrtc_dsp/common_audio/signal_processing/resample_by_2_internal.h', '<(tgvoip_src_loc)/webrtc_dsp/common_audio/signal_processing/resample.c', '<(tgvoip_src_loc)/webrtc_dsp/common_audio/signal_processing/min_max_operations.c', '<(tgvoip_src_loc)/webrtc_dsp/common_audio/signal_processing/refl_coef_to_lpc.c', '<(tgvoip_src_loc)/webrtc_dsp/common_audio/signal_processing/filter_ar.c', '<(tgvoip_src_loc)/webrtc_dsp/common_audio/signal_processing/vector_scaling_operations.c', '<(tgvoip_src_loc)/webrtc_dsp/common_audio/signal_processing/resample_fractional.c', '<(tgvoip_src_loc)/webrtc_dsp/common_audio/signal_processing/real_fft.c', '<(tgvoip_src_loc)/webrtc_dsp/common_audio/signal_processing/ilbc_specific_functions.c', '<(tgvoip_src_loc)/webrtc_dsp/common_audio/signal_processing/complex_bit_reverse.c', '<(tgvoip_src_loc)/webrtc_dsp/common_audio/signal_processing/randomization_functions.c', '<(tgvoip_src_loc)/webrtc_dsp/common_audio/signal_processing/copy_set_operations.c', '<(tgvoip_src_loc)/webrtc_dsp/common_audio/signal_processing/resample_by_2.c', '<(tgvoip_src_loc)/webrtc_dsp/common_audio/signal_processing/get_hanning_window.c', '<(tgvoip_src_loc)/webrtc_dsp/common_audio/signal_processing/resample_48khz.c', '<(tgvoip_src_loc)/webrtc_dsp/common_audio/signal_processing/spl_inl.c', '<(tgvoip_src_loc)/webrtc_dsp/common_audio/signal_processing/spl_sqrt.c', '<(tgvoip_src_loc)/webrtc_dsp/common_audio/wav_header.h', '<(tgvoip_src_loc)/webrtc_dsp/common_audio/vad/vad_sp.c', '<(tgvoip_src_loc)/webrtc_dsp/common_audio/vad/vad.cc', '<(tgvoip_src_loc)/webrtc_dsp/common_audio/vad/webrtc_vad.c', '<(tgvoip_src_loc)/webrtc_dsp/common_audio/vad/vad_core.h', '<(tgvoip_src_loc)/webrtc_dsp/common_audio/vad/include/vad.h', '<(tgvoip_src_loc)/webrtc_dsp/common_audio/vad/include/webrtc_vad.h', '<(tgvoip_src_loc)/webrtc_dsp/common_audio/vad/vad_gmm.h', '<(tgvoip_src_loc)/webrtc_dsp/common_audio/vad/vad_filterbank.c', '<(tgvoip_src_loc)/webrtc_dsp/common_audio/vad/vad_core.c', '<(tgvoip_src_loc)/webrtc_dsp/common_audio/vad/vad_sp.h', '<(tgvoip_src_loc)/webrtc_dsp/common_audio/vad/vad_filterbank.h', '<(tgvoip_src_loc)/webrtc_dsp/common_audio/vad/vad_gmm.c'], 'libraries': [], 'configurations': {'Debug': {}, 'Release': {}}, 'conditions': [['"<(OS)" != "win"', {'sources/': [['exclude', '<(tgvoip_src_loc)/os/windows/']]}, {'sources/': [['exclude', '<(tgvoip_src_loc)/os/posix/']]}], ['"<(OS)" != "mac"', {'sources/': [['exclude', '<(tgvoip_src_loc)/os/darwin/']]}], ['"<(OS)" != "linux"', {'sources/': [['exclude', '<(tgvoip_src_loc)/os/linux/']]}], ['"<(OS)" == "mac"', {'xcode_settings': {'CLANG_CXX_LANGUAGE_STANDARD': 'c++11', 'ALWAYS_SEARCH_USER_PATHS': 'NO'}, 'defines': ['WEBRTC_POSIX', 'WEBRTC_MAC', 'TARGET_OS_OSX'], 'sources': ['<(tgvoip_src_loc)/webrtc_dsp/rtc_base/logging_mac.mm', '<(tgvoip_src_loc)/webrtc_dsp/rtc_base/logging_mac.h'], 'conditions': [['"<(official_build_target)" == "mac32"', {'xcode_settings': {'MACOSX_DEPLOYMENT_TARGET': '10.6', 'OTHER_CPLUSPLUSFLAGS': ['-nostdinc++']}, 'include_dirs': ['/usr/local/macold/include/c++/v1', '<(DEPTH)/../../../Libraries/macold/openssl/include'], 'defines': ['TARGET_OSX32']}, {'xcode_settings': {'MACOSX_DEPLOYMENT_TARGET': '10.8', 'CLANG_CXX_LIBRARY': 'libc++'}, 'include_dirs': ['<(DEPTH)/../../../Libraries/openssl/include'], 'direct_dependent_settings': {'linkflags': ['-framework VideoToolbox']}, 'sources': ['<(tgvoip_src_loc)/os/darwin/TGVVideoRenderer.mm', '<(tgvoip_src_loc)/os/darwin/TGVVideoRenderer.h', '<(tgvoip_src_loc)/os/darwin/TGVVideoSource.mm', '<(tgvoip_src_loc)/os/darwin/TGVVideoSource.h', '<(tgvoip_src_loc)/os/darwin/VideoToolboxEncoderSource.mm', '<(tgvoip_src_loc)/os/darwin/VideoToolboxEncoderSource.h', '<(tgvoip_src_loc)/os/darwin/SampleBufferDisplayLayerRenderer.mm', '<(tgvoip_src_loc)/os/darwin/SampleBufferDisplayLayerRenderer.h']}], ['"<(official_build_target)" == "macstore"', {'defines': ['TGVOIP_NO_OSX_PRIVATE_API']}]]}], ['"<(OS)" == "win"', {'msbuild_toolset': 'v141', 'defines': ['NOMINMAX', '_USING_V110_SDK71_', 'TGVOIP_WINXP_COMPAT', 'WEBRTC_WIN'], 'libraries': ['winmm', 'ws2_32', 'kernel32', 'user32'], 'msvs_cygwin_shell': 0, 'msvs_settings': {'VCCLCompilerTool': {'ProgramDataBaseFileName': '$(OutDir)\\$(ProjectName).pdb', 'DebugInformationFormat': '3', 'AdditionalOptions': ['/MP', '/EHsc', '/wd4068'], 'TreatWChar_tAsBuiltInType': 'false'}}, 'msvs_external_builder_build_cmd': ['ninja.exe', '-C', '$(OutDir)', '-k0', '$(ProjectName)'], 'configurations': {'Debug': {'defines': ['_DEBUG'], 'include_dirs': ['<(DEPTH)/../../../Libraries/openssl/Debug/include'], 'msvs_settings': {'VCCLCompilerTool': {'Optimization': '0', 'RuntimeLibrary': '1', 'RuntimeTypeInfo': 'true'}, 'VCLibrarianTool': {'AdditionalOptions': ['/NODEFAULTLIB:LIBCMT']}}}, 'Release': {'defines': ['NDEBUG'], 'include_dirs': ['<(DEPTH)/../../../Libraries/openssl/Release/include'], 'msvs_settings': {'VCCLCompilerTool': {'Optimization': '2', 'InlineFunctionExpansion': '2', 'EnableIntrinsicFunctions': 'true', 'FavorSizeOrSpeed': '1', 'RuntimeLibrary': '0', 'EnableEnhancedInstructionSet': '2', 'WholeProgramOptimization': 'true'}, 'VCLibrarianTool': {'AdditionalOptions': ['/LTCG']}}}}}], ['"<(OS)" == "linux"', {'defines': ['WEBRTC_POSIX', 'WEBRTC_LINUX'], 'conditions': [['"<!(uname -m)" == "i686"', {'cflags_cc': ['-msse2']}]], 'direct_dependent_settings': {'libraries': []}}]]}]}
|
#!/usr/bin/env python
GLOBAL_ARGUMENTS = [
'property-id',
'start-date',
'end-date',
'ndays',
'domain',
'prefix',
]
def format_comma(d):
"""
Format a comma separated number.
"""
return '{:,d}'.format(int(d))
def format_duration(secs):
"""
Format a duration in seconds as minutes and seconds.
"""
secs = int(secs)
if abs(secs) > 60:
mins = abs(secs) / 60
secs = abs(secs) - (mins * 60)
return '%s%im %02is' % ('-' if secs < 0 else '', mins, secs)
return '%is' % secs
def format_percent(d, t):
"""
Format a value as a percent of a total.
"""
return '{:.1%}'.format(float(d) / t)
|
global_arguments = ['property-id', 'start-date', 'end-date', 'ndays', 'domain', 'prefix']
def format_comma(d):
"""
Format a comma separated number.
"""
return '{:,d}'.format(int(d))
def format_duration(secs):
"""
Format a duration in seconds as minutes and seconds.
"""
secs = int(secs)
if abs(secs) > 60:
mins = abs(secs) / 60
secs = abs(secs) - mins * 60
return '%s%im %02is' % ('-' if secs < 0 else '', mins, secs)
return '%is' % secs
def format_percent(d, t):
"""
Format a value as a percent of a total.
"""
return '{:.1%}'.format(float(d) / t)
|
# Time: O(n * l^2)
# Space: O(n * l)
# Given a list of words, please write a program that returns
# all concatenated words in the given list of words.
#
# A concatenated word is defined as a string that is comprised entirely of
# at least two shorter words in the given array.
#
# Example:
# Input: ["cat","cats","catsdogcats","dog","dogcatsdog","hippopotamuses","rat","ratcatdogcat"]
#
# Output: ["catsdogcats","dogcatsdog","ratcatdogcat"]
#
# Explanation: "catsdogcats" can be concatenated by "cats", "dog" and "cats";
# "dogcatsdog" can be concatenated by "dog", "cats" and "dog";
# "ratcatdogcat" can be concatenated by "rat", "cat", "dog" and "cat".
# Note:
# The number of elements of the given array will not exceed 10,000
# The length sum of elements in the given array will not exceed 600,000.
# All the input string will only include lower case letters.
# The returned elements order does not matter.
class Solution(object):
def findAllConcatenatedWordsInADict(self, words):
"""
:type words: List[str]
:rtype: List[str]
"""
lookup = set(words)
result = []
for word in words:
dp = [False] * (len(word)+1)
dp[0] = True
for i in xrange(len(word)):
if not dp[i]:
continue
for j in xrange(i+1, len(word)+1):
if j - i < len(word) and word[i:j] in lookup:
dp[j] = True
if dp[len(word)]:
result.append(word)
break
return result
|
class Solution(object):
def find_all_concatenated_words_in_a_dict(self, words):
"""
:type words: List[str]
:rtype: List[str]
"""
lookup = set(words)
result = []
for word in words:
dp = [False] * (len(word) + 1)
dp[0] = True
for i in xrange(len(word)):
if not dp[i]:
continue
for j in xrange(i + 1, len(word) + 1):
if j - i < len(word) and word[i:j] in lookup:
dp[j] = True
if dp[len(word)]:
result.append(word)
break
return result
|
def get_chunks(l, n, max_chunks=None):
"""
Returns a chunked version of list l with a maximum of n items in each chunk
:param iterable[T] l: list of items of type T
:param int n: max size of each chunk
:param int max_chunks: maximum number of chunks that can be returned. Pass none (the default) for unbounded
:return: list of chunks
:rtype: list[T]
"""
if n is None:
return [l]
if n <= 0:
raise ValueError('get_chunk: n must be a positive value. Received {}'.format(n))
if max_chunks is not None and max_chunks > 0:
n = max(max_chunks, int(float(len(l)) / float(n)) + 1)
return [l[i:i+n] for i in range(0, len(l), n)]
|
def get_chunks(l, n, max_chunks=None):
"""
Returns a chunked version of list l with a maximum of n items in each chunk
:param iterable[T] l: list of items of type T
:param int n: max size of each chunk
:param int max_chunks: maximum number of chunks that can be returned. Pass none (the default) for unbounded
:return: list of chunks
:rtype: list[T]
"""
if n is None:
return [l]
if n <= 0:
raise value_error('get_chunk: n must be a positive value. Received {}'.format(n))
if max_chunks is not None and max_chunks > 0:
n = max(max_chunks, int(float(len(l)) / float(n)) + 1)
return [l[i:i + n] for i in range(0, len(l), n)]
|
print("####################################################")
print("#FILENAME:\t\ta1p3.py\t\t\t #")
print("#ASSIGNMENT:\t\tHomework Assignment 1 Pt. 3#")
print("#COURSE/SECTION:\tCIS 3389.251\t\t #")
print("#DUE DATE:\t\tWednesday, 12.February 2020#")
print("####################################################\n\n\n")
sum = 0
for i in range(1,6):
print("\nMONTH ", i, "\n--------")
sum += float(input("Enter rainfall for month: "))
print("\n\n")
if sum >= 20:
print(sum, " inches:\nPLENTY RAINFALL")
elif sum >= 15:
print(sum, " inches:\nMODERATELY HIGH RAINFALL")
elif sum >= 10:
print(sum, " inches:\nMODERATELY LOW RAINFALL")
else:
print(sum, " inches:\nLOW RAINFALL")
print("\n\n") #add blank line before return to prompt
|
print('####################################################')
print('#FILENAME:\t\ta1p3.py\t\t\t #')
print('#ASSIGNMENT:\t\tHomework Assignment 1 Pt. 3#')
print('#COURSE/SECTION:\tCIS 3389.251\t\t #')
print('#DUE DATE:\t\tWednesday, 12.February 2020#')
print('####################################################\n\n\n')
sum = 0
for i in range(1, 6):
print('\nMONTH ', i, '\n--------')
sum += float(input('Enter rainfall for month: '))
print('\n\n')
if sum >= 20:
print(sum, ' inches:\nPLENTY RAINFALL')
elif sum >= 15:
print(sum, ' inches:\nMODERATELY HIGH RAINFALL')
elif sum >= 10:
print(sum, ' inches:\nMODERATELY LOW RAINFALL')
else:
print(sum, ' inches:\nLOW RAINFALL')
print('\n\n')
|
description = ''
pages = ['header',
'checkout']
def setup(data):
pass
def test(data):
navigate('http://store.demoqa.com/')
click(header.go_to_checkout)
verify_text_in_element(checkout.title, 'Checkout')
capture('Checkout page is displayed')
def teardown(data):
pass
|
description = ''
pages = ['header', 'checkout']
def setup(data):
pass
def test(data):
navigate('http://store.demoqa.com/')
click(header.go_to_checkout)
verify_text_in_element(checkout.title, 'Checkout')
capture('Checkout page is displayed')
def teardown(data):
pass
|
# ENUM definitions
# Symbol type
SYMBOL_TYPE_SPOT = 'SPOT'
# Order status
ORDER_STATUS_NEW = 'NEW'
ORDER_STATUS_PARTIALLY_FILLED = 'PARTIALLY_FILLED'
ORDER_STATUS_FILLED = 'FILLED'
ORDER_STATUS_CANCELED = 'CANCELED'
ORDER_STATUS_PENDING_CANCEL = 'PENDING_CANCEL'
ORDER_STATUS_REJECTED = 'REJECTED'
ORDER_STATUS_EXPIRED = 'EXPIRED'
# Order types
ORDER_TYPE_LIMIT = 'LIMIT'
ORDER_TYPE_MARKET = 'MARKET'
# Order side
ORDER_SIDE_BUY = 'BUY'
ORDER_SIDE_SELL = 'SELL'
# Time in force
TIME_IN_FORCE_GTC = 'GTC'
TIME_IN_FORCE_IOC = 'IOC'
# Kline intervals
# m -> minutes; h -> hours; d -> days; w -> weeks; M -> months
KLINE_INTERVAL_1MINUTE = '1m'
KLINE_INTERVAL_3MINUTE = '3m'
KLINE_INTERVAL_5MINUTE = '5m'
KLINE_INTERVAL_15MINUTE = '15m'
KLINE_INTERVAL_30MINUTE = '30m'
KLINE_INTERVAL_1HOUR = '1h'
KLINE_INTERVAL_2HOUR = '2h'
KLINE_INTERVAL_4HOUR = '4h'
KLINE_INTERVAL_6HOUR = '6h'
KLINE_INTERVAL_8HOUR = '8h'
KLINE_INTERVAL_12HOUR = '12h'
KLINE_INTERVAL_1DAY = '1d'
KLINE_INTERVAL_3DAY = '3d'
KLINE_INTERVAL_1WEEK = '1w'
KLINE_INTERVAL_1MONTH = '1M'
|
symbol_type_spot = 'SPOT'
order_status_new = 'NEW'
order_status_partially_filled = 'PARTIALLY_FILLED'
order_status_filled = 'FILLED'
order_status_canceled = 'CANCELED'
order_status_pending_cancel = 'PENDING_CANCEL'
order_status_rejected = 'REJECTED'
order_status_expired = 'EXPIRED'
order_type_limit = 'LIMIT'
order_type_market = 'MARKET'
order_side_buy = 'BUY'
order_side_sell = 'SELL'
time_in_force_gtc = 'GTC'
time_in_force_ioc = 'IOC'
kline_interval_1_minute = '1m'
kline_interval_3_minute = '3m'
kline_interval_5_minute = '5m'
kline_interval_15_minute = '15m'
kline_interval_30_minute = '30m'
kline_interval_1_hour = '1h'
kline_interval_2_hour = '2h'
kline_interval_4_hour = '4h'
kline_interval_6_hour = '6h'
kline_interval_8_hour = '8h'
kline_interval_12_hour = '12h'
kline_interval_1_day = '1d'
kline_interval_3_day = '3d'
kline_interval_1_week = '1w'
kline_interval_1_month = '1M'
|
# cases where DictAchievement should unlock
# >> CASE
{'name': 'John Doe', 'age': 24}
# >> CASE
{
'name': 'John Doe',
'age': 24
}
# >> CASE
func({'name': 'John Doe', 'age': 24})
|
{'name': 'John Doe', 'age': 24}
{'name': 'John Doe', 'age': 24}
func({'name': 'John Doe', 'age': 24})
|
#!/usr/bin/env python3
# default arguments, assume a default value if one is not provided
def display_info(name, age='42'):
print('Name: ', name, 'Age', age)
display_info(age='56', name='Marc Wilson')
display_info(name='Marc Wilson')
|
def display_info(name, age='42'):
print('Name: ', name, 'Age', age)
display_info(age='56', name='Marc Wilson')
display_info(name='Marc Wilson')
|
#!/usr/bin/env python
'''
Copyright (C) 2019, WAFW00F Developers.
See the LICENSE file for copying permission.
'''
NAME = 'Malcare (Inactiv)'
def is_waf(self):
schemes = [
self.matchContent(r'firewall.{0,15}?powered.by.{0,15}?malcare.{0,15}?pro'),
self.matchContent('blocked because of malicious activities')
]
if any(i for i in schemes):
return True
return False
|
"""
Copyright (C) 2019, WAFW00F Developers.
See the LICENSE file for copying permission.
"""
name = 'Malcare (Inactiv)'
def is_waf(self):
schemes = [self.matchContent('firewall.{0,15}?powered.by.{0,15}?malcare.{0,15}?pro'), self.matchContent('blocked because of malicious activities')]
if any((i for i in schemes)):
return True
return False
|
n,k=map(int,input().split())
if k<n//2 or (n==1 and k!=0):
print(-1)
else:
if n==1:
print(1)
else:
x=r=k-(n-2)//2
while r<=x+n:
r+=x
ans=[r,x]
for i in range(2,n):
ans.append(ans[1]+i-1)
print(*ans)
|
(n, k) = map(int, input().split())
if k < n // 2 or (n == 1 and k != 0):
print(-1)
elif n == 1:
print(1)
else:
x = r = k - (n - 2) // 2
while r <= x + n:
r += x
ans = [r, x]
for i in range(2, n):
ans.append(ans[1] + i - 1)
print(*ans)
|
class news_source:
'''
News Source Class to define News Source Objects
'''
def __init__(self, id, name, homepage_url, description):
self.id = id
self.name = name
self.homepage_url = homepage_url
self.description = description
# self.logo = logo
class Articles:
'''
Articles class to define Source's Articles Objects
'''
def __init__(self, author, title, description, article_url, logo, publishedAt):
# self.source_id = source
self.author = author
self.title = title
self.description = description
self.article_url = article_url
self.logo = logo
self.publishedAt = publishedAt
|
class News_Source:
"""
News Source Class to define News Source Objects
"""
def __init__(self, id, name, homepage_url, description):
self.id = id
self.name = name
self.homepage_url = homepage_url
self.description = description
class Articles:
"""
Articles class to define Source's Articles Objects
"""
def __init__(self, author, title, description, article_url, logo, publishedAt):
self.author = author
self.title = title
self.description = description
self.article_url = article_url
self.logo = logo
self.publishedAt = publishedAt
|
# Time: O(n)
# Space: O(1)
class Solution(object):
def numberOfLines(self, widths, S):
"""
:type widths: List[int]
:type S: str
:rtype: List[int]
"""
result = [1, 0]
for c in S:
w = widths[ord(c)-ord('a')]
result[1] += w
if result[1] > 100:
result[0] += 1
result[1] = w
return result
|
class Solution(object):
def number_of_lines(self, widths, S):
"""
:type widths: List[int]
:type S: str
:rtype: List[int]
"""
result = [1, 0]
for c in S:
w = widths[ord(c) - ord('a')]
result[1] += w
if result[1] > 100:
result[0] += 1
result[1] = w
return result
|
class MarkerPosition:
def __init__(self, markers_points, rotation_vector, translation_vector):
self.markers_points = markers_points
self.rotation_vector = rotation_vector
self.translation_vector = translation_vector
def set_markers_points(self, markers_points):
self.markers_points = markers_points
def set_rotation_vector(self, rotation_vector):
self.rotation_vector = rotation_vector
def get_markers_points(self):
return self.markers_points
def get_rotation_vector(self):
return self.rotation_vector
def get_translation_vector(self):
return self.translation_vector
|
class Markerposition:
def __init__(self, markers_points, rotation_vector, translation_vector):
self.markers_points = markers_points
self.rotation_vector = rotation_vector
self.translation_vector = translation_vector
def set_markers_points(self, markers_points):
self.markers_points = markers_points
def set_rotation_vector(self, rotation_vector):
self.rotation_vector = rotation_vector
def get_markers_points(self):
return self.markers_points
def get_rotation_vector(self):
return self.rotation_vector
def get_translation_vector(self):
return self.translation_vector
|
def _ghc_paths_module_impl(ctx):
tools = ctx.toolchains["@rules_haskell//haskell:toolchain"].tools
ghc = tools.ghc
ctx.actions.run_shell(
inputs = [ghc],
outputs = [ctx.outputs.out],
command = """
cat > {out} << EOM
module GHC.Paths (
ghc, ghc_pkg, libdir, docdir
) where
ghc, ghc_pkg, docdir, libdir :: FilePath
ghc = "{ghc}"
ghc_pkg = "{ghc_pkg}"
docdir = "DOCDIR_IS_NOT_SET"
EOM
echo -n 'libdir = "' >> {out}
{ghc} --print-libdir | tr '\\' '/' | tr -d '[:space:]' >> {out}
echo '"' >> {out}
""".format(
ghc = ghc.path,
ghc_pkg = tools.ghc_pkg.path,
out = ctx.outputs.out.path,
),
)
return [DefaultInfo(runfiles = ctx.runfiles(collect_data = True))]
ghc_paths_module = rule(
_ghc_paths_module_impl,
toolchains = ["@rules_haskell//haskell:toolchain"],
outputs = {"out": "GHC/Paths.hs"},
)
|
def _ghc_paths_module_impl(ctx):
tools = ctx.toolchains['@rules_haskell//haskell:toolchain'].tools
ghc = tools.ghc
ctx.actions.run_shell(inputs=[ghc], outputs=[ctx.outputs.out], command='\n cat > {out} << EOM\nmodule GHC.Paths (\n ghc, ghc_pkg, libdir, docdir\n ) where\n\nghc, ghc_pkg, docdir, libdir :: FilePath\n\nghc = "{ghc}"\nghc_pkg = "{ghc_pkg}"\n\ndocdir = "DOCDIR_IS_NOT_SET"\nEOM\n\n echo -n \'libdir = "\' >> {out}\n {ghc} --print-libdir | tr \'\\\' \'/\' | tr -d \'[:space:]\' >> {out}\n echo \'"\' >> {out}\n'.format(ghc=ghc.path, ghc_pkg=tools.ghc_pkg.path, out=ctx.outputs.out.path))
return [default_info(runfiles=ctx.runfiles(collect_data=True))]
ghc_paths_module = rule(_ghc_paths_module_impl, toolchains=['@rules_haskell//haskell:toolchain'], outputs={'out': 'GHC/Paths.hs'})
|
#import formatter
#import htmllib
url="http://www.cnn.com"
filehandle = urllib.urlopen(url)
#w = formatter.DumbWriter() # plain text
#f = formatter.AbstractFormatter(w)
#p = htmllib.HTMLParser(f)
#p.feed(filehandle.read())
#p.close()
#filehandle.close()
fromaddr = "ahouman2@hatswitch.crhc.illinois.edu"
msg = MIMEMultipart()
msg['From'] = "amir"
msg['To'] = "asdsadad"
msg['Date'] = formatdate(localtime=True)
msg['Subject'] = "salam"
text = "saaalaaam"
msg.attach( MIMEText(text) )
part = MIMEBase('application', "octet-stream")
part.set_payload( filehandle.read() )
Encoders.encode_base64(part)
part.add_header('Content-Disposition', 'attachment; filename="file.html"')
msg.attach(part)
smtp = smtplib.SMTP("localhost")
smtp.sendmail("amir@localhost", "freeman77200@gmail.com", msg.as_string() )
smtp.close()
|
url = 'http://www.cnn.com'
filehandle = urllib.urlopen(url)
fromaddr = 'ahouman2@hatswitch.crhc.illinois.edu'
msg = mime_multipart()
msg['From'] = 'amir'
msg['To'] = 'asdsadad'
msg['Date'] = formatdate(localtime=True)
msg['Subject'] = 'salam'
text = 'saaalaaam'
msg.attach(mime_text(text))
part = mime_base('application', 'octet-stream')
part.set_payload(filehandle.read())
Encoders.encode_base64(part)
part.add_header('Content-Disposition', 'attachment; filename="file.html"')
msg.attach(part)
smtp = smtplib.SMTP('localhost')
smtp.sendmail('amir@localhost', 'freeman77200@gmail.com', msg.as_string())
smtp.close()
|
def factI(n):
""" Assumes that n is an int > 0
Returns n!"""
result = 1
while n > 1:
result = result * n
n -= 1
return result
def factR(n):
""" Assumes that n is an int > 0
Returns n! """
if n == 1:
return n
else:
return n*factR(n-1)
|
def fact_i(n):
""" Assumes that n is an int > 0
Returns n!"""
result = 1
while n > 1:
result = result * n
n -= 1
return result
def fact_r(n):
""" Assumes that n is an int > 0
Returns n! """
if n == 1:
return n
else:
return n * fact_r(n - 1)
|
class WebPageCssSelect:
def __init__(self, url, ua_type, selector_name, value):
self.url = url
self.ua_type = ua_type
self.selector_name = selector_name
self.value = value
def output(self):
return self.url + ',' + self.ua_type + ',' + self.selector_name + ',' + self.value
|
class Webpagecssselect:
def __init__(self, url, ua_type, selector_name, value):
self.url = url
self.ua_type = ua_type
self.selector_name = selector_name
self.value = value
def output(self):
return self.url + ',' + self.ua_type + ',' + self.selector_name + ',' + self.value
|
num = 10
num1 = 10
num2 = 20
num3 = 30
|
num = 10
num1 = 10
num2 = 20
num3 = 30
|
#
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance
# with the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing,
# software distributed under the License is distributed on an
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.
#
class Context:
def __init__(self):
self.containers = []
def push(self, o):
self.containers.append(o)
def pop(self):
return self.containers.pop()
class Values:
def __init__(self, *values):
self.values = values
def validate(self, o, ctx):
if not o in self.values:
return "%s not in %s" % (o, self.values)
def __str__(self):
return self.value
class Types:
def __init__(self, *types):
self.types = types
def validate(self, o, ctx):
for t in self.types:
if isinstance(o, t):
return
if len(self.types) == 1:
return "%s is not a %s" % (o, self.types[0].__name__)
else:
return "%s is not one of: %s" % (o, ", ".join([t.__name__ for t in self.types]))
class List:
def __init__(self, condition):
self.condition = condition
def validate(self, o, ctx):
if not isinstance(o, list):
return "%s is not a list" % o
ctx.push(o)
for v in o:
err = self.condition.validate(v, ctx)
if err: return err
class Map:
def __init__(self, map, restricted=True):
self.map = map
self.restricted = restricted
def validate(self, o, ctx):
errors = []
if not hasattr(o, "get"):
return "%s is not a map" % o
ctx.push(o)
for k, t in self.map.items():
v = o.get(k)
if v is not None:
err = t.validate(v, ctx)
if err: errors.append("%s: %s" % (k, err))
if self.restricted:
for k in o:
if not k in self.map:
errors.append("%s: illegal key" % k)
ctx.pop()
if errors:
return ", ".join(errors)
class And:
def __init__(self, *conditions):
self.conditions = conditions
def validate(self, o, ctx):
for c in self.conditions:
err = c.validate(o, ctx)
if err:
return err
|
class Context:
def __init__(self):
self.containers = []
def push(self, o):
self.containers.append(o)
def pop(self):
return self.containers.pop()
class Values:
def __init__(self, *values):
self.values = values
def validate(self, o, ctx):
if not o in self.values:
return '%s not in %s' % (o, self.values)
def __str__(self):
return self.value
class Types:
def __init__(self, *types):
self.types = types
def validate(self, o, ctx):
for t in self.types:
if isinstance(o, t):
return
if len(self.types) == 1:
return '%s is not a %s' % (o, self.types[0].__name__)
else:
return '%s is not one of: %s' % (o, ', '.join([t.__name__ for t in self.types]))
class List:
def __init__(self, condition):
self.condition = condition
def validate(self, o, ctx):
if not isinstance(o, list):
return '%s is not a list' % o
ctx.push(o)
for v in o:
err = self.condition.validate(v, ctx)
if err:
return err
class Map:
def __init__(self, map, restricted=True):
self.map = map
self.restricted = restricted
def validate(self, o, ctx):
errors = []
if not hasattr(o, 'get'):
return '%s is not a map' % o
ctx.push(o)
for (k, t) in self.map.items():
v = o.get(k)
if v is not None:
err = t.validate(v, ctx)
if err:
errors.append('%s: %s' % (k, err))
if self.restricted:
for k in o:
if not k in self.map:
errors.append('%s: illegal key' % k)
ctx.pop()
if errors:
return ', '.join(errors)
class And:
def __init__(self, *conditions):
self.conditions = conditions
def validate(self, o, ctx):
for c in self.conditions:
err = c.validate(o, ctx)
if err:
return err
|
# Copyright 2013-2020 Lawrence Livermore National Security, LLC and other
# Spack Project Developers. See the top-level COPYRIGHT file for details.
#
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
class PyTensorflow(Package):
"""TensorFlow is an Open Source Software Library for Machine Intelligence
This is a wheel based recipe as opposed to source-based installation in
the upstream spack."""
homepage = "https://www.tensorflow.org"
url = "https://storage.googleapis.com/tensorflow/linux/gpu/tensorflow_gpu-2.5.0-cp38-cp38-manylinux2010_x86_64.whl"
maintainers = ['pramodk', 'matz-e']
import_modules = ['tensorflow']
# For now only support python 38 wheels on linux with gpu. Mac os urls
# are broken on the docuementation page. Below dict is setup so that this
# can be easily extended.
tensorflow_sha = {
('2.4.2', 'gpu-2.4.2-cp38-cp38-manylinux2010_x86_64'): 'a33acffb4816c5456eb0cbc1654e3f270d17245322aa3d7bfdd22a610c862e0a',
}
def wheel_url(version_id):
return (
'https://storage.googleapis.com/tensorflow/linux/gpu/tensorflow_{0}.whl' # noqa: E501
).format(version_id)
# add all version
for key in tensorflow_sha.keys():
version(key[0], url=wheel_url(key[1]), sha256=tensorflow_sha[key], expand=False)
extends('python')
depends_on('cudnn@8:')
depends_on('cuda@11:')
depends_on('python@3:', type=('build', 'run'))
depends_on('py-numpy', type=('build', 'run'))
depends_on('py-pip', type='build')
# compatible versions of py-h5py and py-six needs to be added
# otherwise setup.py tries to uninstall them
depends_on('py-h5py@2.10:2.99', when='@:2.4.99', type=('build', 'run'))
depends_on('py-h5py@3:', when='@2.5:', type=('build', 'run'))
depends_on('py-six@1.15.0', when='@:2.4.99', type=('build', 'run'))
depends_on('py-six@1.16:', when='@2.5:', type=('build', 'run'))
# no versions for Mac OS added
conflicts('platform=darwin', msg='macOS is not supported')
def install(self, spec, prefix):
pip = which('pip')
pip('install', self.stage.archive_file, '--prefix={0}'.format(prefix))
@run_after('install')
@on_package_attributes(run_tests=True)
def import_module_test(self):
with working_dir('spack-test', create=True):
for module in self.import_modules:
python('-c', 'import {0}'.format(module))
def setup_run_environment(self, env):
env.prepend_path('LD_LIBRARY_PATH', self.spec['cuda'].prefix.lib64)
env.prepend_path('LD_LIBRARY_PATH', self.spec['cuda'].prefix.extras.CUPTI.lib64) # noqa: E501
env.prepend_path('LD_LIBRARY_PATH', self.spec['cudnn'].prefix.lib64)
|
class Pytensorflow(Package):
"""TensorFlow is an Open Source Software Library for Machine Intelligence
This is a wheel based recipe as opposed to source-based installation in
the upstream spack."""
homepage = 'https://www.tensorflow.org'
url = 'https://storage.googleapis.com/tensorflow/linux/gpu/tensorflow_gpu-2.5.0-cp38-cp38-manylinux2010_x86_64.whl'
maintainers = ['pramodk', 'matz-e']
import_modules = ['tensorflow']
tensorflow_sha = {('2.4.2', 'gpu-2.4.2-cp38-cp38-manylinux2010_x86_64'): 'a33acffb4816c5456eb0cbc1654e3f270d17245322aa3d7bfdd22a610c862e0a'}
def wheel_url(version_id):
return 'https://storage.googleapis.com/tensorflow/linux/gpu/tensorflow_{0}.whl'.format(version_id)
for key in tensorflow_sha.keys():
version(key[0], url=wheel_url(key[1]), sha256=tensorflow_sha[key], expand=False)
extends('python')
depends_on('cudnn@8:')
depends_on('cuda@11:')
depends_on('python@3:', type=('build', 'run'))
depends_on('py-numpy', type=('build', 'run'))
depends_on('py-pip', type='build')
depends_on('py-h5py@2.10:2.99', when='@:2.4.99', type=('build', 'run'))
depends_on('py-h5py@3:', when='@2.5:', type=('build', 'run'))
depends_on('py-six@1.15.0', when='@:2.4.99', type=('build', 'run'))
depends_on('py-six@1.16:', when='@2.5:', type=('build', 'run'))
conflicts('platform=darwin', msg='macOS is not supported')
def install(self, spec, prefix):
pip = which('pip')
pip('install', self.stage.archive_file, '--prefix={0}'.format(prefix))
@run_after('install')
@on_package_attributes(run_tests=True)
def import_module_test(self):
with working_dir('spack-test', create=True):
for module in self.import_modules:
python('-c', 'import {0}'.format(module))
def setup_run_environment(self, env):
env.prepend_path('LD_LIBRARY_PATH', self.spec['cuda'].prefix.lib64)
env.prepend_path('LD_LIBRARY_PATH', self.spec['cuda'].prefix.extras.CUPTI.lib64)
env.prepend_path('LD_LIBRARY_PATH', self.spec['cudnn'].prefix.lib64)
|
'''
https://leetcode.com/problems/longest-valid-parentheses/
'''
class Solution:
def longestValidParentheses(self, s: str) -> int:
stack=[-1]
maxValid=0
for i in range(0,len(s)):
if s[i]=="(": stack.append(i)
else:
stack.pop()
if stack==[]: stack.append(i)
else: maxValid=max(maxValid,i-stack[-1])
return maxValid
|
"""
https://leetcode.com/problems/longest-valid-parentheses/
"""
class Solution:
def longest_valid_parentheses(self, s: str) -> int:
stack = [-1]
max_valid = 0
for i in range(0, len(s)):
if s[i] == '(':
stack.append(i)
else:
stack.pop()
if stack == []:
stack.append(i)
else:
max_valid = max(maxValid, i - stack[-1])
return maxValid
|
class Response:
def __init__(self, inst):
self.instance = inst
@property
def id(self):
return self.instance['status']
@property
def status(self):
return self.instance['status']
|
class Response:
def __init__(self, inst):
self.instance = inst
@property
def id(self):
return self.instance['status']
@property
def status(self):
return self.instance['status']
|
NUM_ROWS = 10
NUM_COLS = 10
with open('input.txt') as file:
octopi = []
num_flashes = 0
for row in range(NUM_ROWS):
line = file.readline()
octopi.append([])
for col in range(NUM_COLS):
octopi[row].append(int(line[col]))
for step in range(100):
flashes = []
for row in range(NUM_ROWS):
for col in range(NUM_COLS):
octopi[row][col] += 1
check = [(row, col)]
while (len(check) > 0):
this = check.pop()
r, c = this[0], this[1]
if this in flashes:
continue
if octopi[r][c] > 9:
# flashes
flashes.append(this)
# check clearances
north = r > 0
west = c > 0
south = r < (NUM_ROWS - 1)
east = c < (NUM_COLS - 1)
# add 1 to all nearby and check them too
if north:
check.append((r-1,c))
octopi[r-1][c] += 1
if west:
check.append((r-1,c-1))
octopi[r-1][c-1] += 1
if east:
check.append((r-1,c+1))
octopi[r-1][c+1] += 1
if south:
check.append((r+1,c))
octopi[r+1][c] += 1
if west:
check.append((r+1,c-1))
octopi[r+1][c-1] += 1
if east:
check.append((r+1,c+1))
octopi[r+1][c+1] += 1
if west:
check.append((r,c-1))
octopi[r][c-1] += 1
if east:
check.append((r,c+1))
octopi[r][c+1] += 1
for point in flashes:
row, col = point[0], point[1]
octopi[row][col] = 0
num_flashes += len(flashes)
print(num_flashes)
|
num_rows = 10
num_cols = 10
with open('input.txt') as file:
octopi = []
num_flashes = 0
for row in range(NUM_ROWS):
line = file.readline()
octopi.append([])
for col in range(NUM_COLS):
octopi[row].append(int(line[col]))
for step in range(100):
flashes = []
for row in range(NUM_ROWS):
for col in range(NUM_COLS):
octopi[row][col] += 1
check = [(row, col)]
while len(check) > 0:
this = check.pop()
(r, c) = (this[0], this[1])
if this in flashes:
continue
if octopi[r][c] > 9:
flashes.append(this)
north = r > 0
west = c > 0
south = r < NUM_ROWS - 1
east = c < NUM_COLS - 1
if north:
check.append((r - 1, c))
octopi[r - 1][c] += 1
if west:
check.append((r - 1, c - 1))
octopi[r - 1][c - 1] += 1
if east:
check.append((r - 1, c + 1))
octopi[r - 1][c + 1] += 1
if south:
check.append((r + 1, c))
octopi[r + 1][c] += 1
if west:
check.append((r + 1, c - 1))
octopi[r + 1][c - 1] += 1
if east:
check.append((r + 1, c + 1))
octopi[r + 1][c + 1] += 1
if west:
check.append((r, c - 1))
octopi[r][c - 1] += 1
if east:
check.append((r, c + 1))
octopi[r][c + 1] += 1
for point in flashes:
(row, col) = (point[0], point[1])
octopi[row][col] = 0
num_flashes += len(flashes)
print(num_flashes)
|
FILTERS_KEY = 'FILTERS'
SAMPLE_RATE_METRIC_KEY = '_sample_rate'
SAMPLING_PRIORITY_KEY = '_sampling_priority_v1'
ANALYTICS_SAMPLE_RATE_KEY = '_dd1.sr.eausr'
ORIGIN_KEY = '_dd.origin'
HOSTNAME_KEY = '_dd.hostname'
ENV_KEY = 'env'
NUMERIC_TAGS = (ANALYTICS_SAMPLE_RATE_KEY, )
MANUAL_DROP_KEY = 'manual.drop'
MANUAL_KEEP_KEY = 'manual.keep'
|
filters_key = 'FILTERS'
sample_rate_metric_key = '_sample_rate'
sampling_priority_key = '_sampling_priority_v1'
analytics_sample_rate_key = '_dd1.sr.eausr'
origin_key = '_dd.origin'
hostname_key = '_dd.hostname'
env_key = 'env'
numeric_tags = (ANALYTICS_SAMPLE_RATE_KEY,)
manual_drop_key = 'manual.drop'
manual_keep_key = 'manual.keep'
|
def init(bot, data):
@bot.command()
async def add(ctx):
await ctx.send("Add Ludus to your server: <https://discordapp.com/api/oauth2/authorize?client_id=593828724001079297&permissions=124992&scope=bot>")
@bot.command()
async def github(ctx):
await ctx.send("Ludus is open source! You can find the source code here: https://github.com/mninc/ludus")
@bot.command()
async def server(ctx):
await ctx.send("You can join the official Ludus discord server here: https://discord.gg/qZQN53p")
@bot.command()
async def contributors(ctx):
await ctx.send("Ludus was developed by <@156895789795246081> and <@197059070740398080>, with art from <@253584079113551873>.")
@bot.command()
async def website(ctx):
await ctx.send("Visit our website: https://mninc.github.io/ludus/")
|
def init(bot, data):
@bot.command()
async def add(ctx):
await ctx.send('Add Ludus to your server: <https://discordapp.com/api/oauth2/authorize?client_id=593828724001079297&permissions=124992&scope=bot>')
@bot.command()
async def github(ctx):
await ctx.send('Ludus is open source! You can find the source code here: https://github.com/mninc/ludus')
@bot.command()
async def server(ctx):
await ctx.send('You can join the official Ludus discord server here: https://discord.gg/qZQN53p')
@bot.command()
async def contributors(ctx):
await ctx.send('Ludus was developed by <@156895789795246081> and <@197059070740398080>, with art from <@253584079113551873>.')
@bot.command()
async def website(ctx):
await ctx.send('Visit our website: https://mninc.github.io/ludus/')
|
"""User provided customizations.
Here one changes the default arguments for compiling _gpaw.so (serial)
and gpaw-python (parallel).
Here are all the lists that can be modified:
* libraries
* library_dirs
* include_dirs
* extra_link_args
* extra_compile_args
* runtime_library_dirs
* extra_objects
* define_macros
* mpi_libraries
* mpi_library_dirs
* mpi_include_dirs
* mpi_runtime_library_dirs
* mpi_define_macros
To override use the form:
libraries = ['somelib', 'otherlib']
To append use the form
libraries += ['somelib', 'otherlib']
"""
parallel_python_interpreter = True
# compiler
compiler = os.environ['CC']
mpicompiler = 'mpicc'
mpilinker = 'mpicc'
extra_compile_args = ['-std=c99', '-O3', '-fopenmp-simd', '-march=native',
'-mtune=native', '-mavx2']
#extra_link_args = ['-fno-lto']
# libz
libraries = ['z']
# libxc
library_dirs += [os.environ['LIBXCDIR'] + '/lib']
include_dirs += [os.environ['LIBXCDIR'] + '/include']
libraries += ['xc']
# MKL
# libraries += ['mkl_core', 'mkl_intel_lp64' ,'mkl_sequential']
libraries += os.environ['BLAS_LIBS'].split()
# use ScaLAPACK and HDF5
scalapack = True
if scalapack:
libraries += os.environ['SCALAPACK_LIBS'].split()
# hdf5 = True
# GPAW defines
define_macros += [('GPAW_NO_UNDERSCORE_CBLACS', '1')]
define_macros += [('GPAW_NO_UNDERSCORE_CSCALAPACK', '1')]
define_macros += [("GPAW_ASYNC",1)]
define_macros += [("GPAW_MPI2",1)]
|
"""User provided customizations.
Here one changes the default arguments for compiling _gpaw.so (serial)
and gpaw-python (parallel).
Here are all the lists that can be modified:
* libraries
* library_dirs
* include_dirs
* extra_link_args
* extra_compile_args
* runtime_library_dirs
* extra_objects
* define_macros
* mpi_libraries
* mpi_library_dirs
* mpi_include_dirs
* mpi_runtime_library_dirs
* mpi_define_macros
To override use the form:
libraries = ['somelib', 'otherlib']
To append use the form
libraries += ['somelib', 'otherlib']
"""
parallel_python_interpreter = True
compiler = os.environ['CC']
mpicompiler = 'mpicc'
mpilinker = 'mpicc'
extra_compile_args = ['-std=c99', '-O3', '-fopenmp-simd', '-march=native', '-mtune=native', '-mavx2']
libraries = ['z']
library_dirs += [os.environ['LIBXCDIR'] + '/lib']
include_dirs += [os.environ['LIBXCDIR'] + '/include']
libraries += ['xc']
libraries += os.environ['BLAS_LIBS'].split()
scalapack = True
if scalapack:
libraries += os.environ['SCALAPACK_LIBS'].split()
define_macros += [('GPAW_NO_UNDERSCORE_CBLACS', '1')]
define_macros += [('GPAW_NO_UNDERSCORE_CSCALAPACK', '1')]
define_macros += [('GPAW_ASYNC', 1)]
define_macros += [('GPAW_MPI2', 1)]
|
# -*- coding: utf-8 -*-
"""Top-level package for Spectrify."""
__author__ = """The Narrativ Company, Inc."""
__email__ = 'engineering@narrativ.com'
__version__ = '1.0.1'
|
"""Top-level package for Spectrify."""
__author__ = 'The Narrativ Company, Inc.'
__email__ = 'engineering@narrativ.com'
__version__ = '1.0.1'
|
#! /usr/bin/env zxpy
~'echo Hello world!'
def print_file_count():
file_count = ~'ls -1 | wc -l'
~"echo -n 'file count is: '"
print(file_count)
print_file_count()
|
~'echo Hello world!'
def print_file_count():
file_count = ~'ls -1 | wc -l'
~"echo -n 'file count is: '"
print(file_count)
print_file_count()
|
class Solution(object):
def __init__(self, nums):
"""
:type nums: List[int]
:type numsSize: int
"""
self.nums = nums
def pick(self, target):
"""
:type target: int
:rtype: int
"""
count = 0
ans = -1
for i in xrange(0, len(self.nums)):
if self.nums[i] == target:
count += 1
if random.randrange(0, count) == 0:
ans = i
return ans
# Your Solution object will be instantiated and called as such:
# obj = Solution(nums)
# param_1 = obj.pick(target)
|
class Solution(object):
def __init__(self, nums):
"""
:type nums: List[int]
:type numsSize: int
"""
self.nums = nums
def pick(self, target):
"""
:type target: int
:rtype: int
"""
count = 0
ans = -1
for i in xrange(0, len(self.nums)):
if self.nums[i] == target:
count += 1
if random.randrange(0, count) == 0:
ans = i
return ans
|
def extractLasciviousImouto(item):
"""
"""
vol, chp, frag, postfix = extractVolChapterFragmentPostfix(item['title'].replace('-', '.'))
if not (chp or vol) or 'preview' in item['title'].lower():
return None
if 'The Beast of the 17th District' in item['tags'] or 'the beast of the 17th district' in item['title'].lower():
return buildReleaseMessageWithType(item, 'The Beast of the 17th District', vol, chp, frag=frag, postfix=postfix, tl_type='oel')
if 'Le Festin de Vampire' in item['tags']:
return buildReleaseMessageWithType(item, 'Le Festin de Vampire', vol, chp, frag=frag, postfix=postfix)
return False
|
def extract_lascivious_imouto(item):
"""
"""
(vol, chp, frag, postfix) = extract_vol_chapter_fragment_postfix(item['title'].replace('-', '.'))
if not (chp or vol) or 'preview' in item['title'].lower():
return None
if 'The Beast of the 17th District' in item['tags'] or 'the beast of the 17th district' in item['title'].lower():
return build_release_message_with_type(item, 'The Beast of the 17th District', vol, chp, frag=frag, postfix=postfix, tl_type='oel')
if 'Le Festin de Vampire' in item['tags']:
return build_release_message_with_type(item, 'Le Festin de Vampire', vol, chp, frag=frag, postfix=postfix)
return False
|
## Capitalizes the first letter of a string.
## Capitalizes the fist letter of the sring and then adds it with rest of the string. Omit the lower_rest parameter to keep the rest of the string intact, or set it to true to convert to lowercase.
def capitalize(string, lower_rest=False):
return string[:1].upper() + (string[1:].lower() if lower_rest else string[1:])
# capitalize('fooBar') # 'FooBar'
# capitalize('fooBar', True) # 'Foobar'
|
def capitalize(string, lower_rest=False):
return string[:1].upper() + (string[1:].lower() if lower_rest else string[1:])
|
# Topological sorting of a directed ascylic graph
#
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this file,
# You can obtain one at http://mozilla.org/MPL/2.0/.
#
# Copyright (c) 2014-2019, Lars Asplund lars.anders.asplund@gmail.com
"""
Functionality to compute a dependency graph
"""
class DependencyGraph(object):
"""
A dependency graph
"""
def __init__(self):
self._forward = {}
self._backward = {}
self._nodes = []
def toposort(self):
"""
Perform a topological sort returning a list of nodes such that
every node is located after its dependency nodes
"""
sorted_nodes = []
self._visit(sorted(self._nodes),
dict((key, sorted(values)) for key, values in self._forward.items()),
sorted_nodes.append)
sorted_nodes = list(reversed(sorted_nodes))
return sorted_nodes
def add_node(self, node):
self._nodes.append(node)
def add_dependency(self, start, end):
"""
Add a dependency edge between the start and end node such that
end node depends on the start node
"""
new_dependency = (start not in self._forward
or end not in self._forward[start])
if start not in self._forward:
self._forward[start] = set()
if end not in self._backward:
self._backward[end] = set()
self._forward[start].add(end)
self._backward[end].add(start)
return new_dependency
@staticmethod
def _visit(nodes, graph, callback):
"""
Follow graph edges starting from the nodes iteratively
returning all the nodes visited
"""
def visit(node):
"""
Visit a single node and all following nodes in the graph
that have not already been visisted.
Detects circular dependencies
"""
if node in path:
start = path_ordered.index(node)
raise CircularDependencyException(path_ordered[start:] + [node, ])
path.add(node)
path_ordered.append(node)
if node in graph:
for other_node in graph[node]:
if other_node not in visited:
visit(other_node)
path.remove(node)
path_ordered.pop()
visited.add(node)
callback(node)
visited = set()
for node in nodes:
if node not in visited:
path = set()
path_ordered = []
visit(node)
def get_dependent(self, nodes):
"""
Get all nodes which are directly or indirectly dependent on
the input nodes
"""
result = set()
self._visit(nodes, self._forward, result.add)
return result
def get_dependencies(self, nodes):
"""
Get all nodes which are directly or indirectly dependencies of
the input nodes
"""
result = set()
self._visit(nodes, self._backward, result.add)
return result
def get_direct_dependencies(self, node):
"""
Get the direct dependencies of node
"""
return self._backward.get(node, set())
class CircularDependencyException(Exception):
"""
Raised when there are circular dependencies
"""
def __init__(self, path):
Exception.__init__(self)
self.path = path
def __repr__(self):
return "CircularDependencyException(%r)" % self.path
|
"""
Functionality to compute a dependency graph
"""
class Dependencygraph(object):
"""
A dependency graph
"""
def __init__(self):
self._forward = {}
self._backward = {}
self._nodes = []
def toposort(self):
"""
Perform a topological sort returning a list of nodes such that
every node is located after its dependency nodes
"""
sorted_nodes = []
self._visit(sorted(self._nodes), dict(((key, sorted(values)) for (key, values) in self._forward.items())), sorted_nodes.append)
sorted_nodes = list(reversed(sorted_nodes))
return sorted_nodes
def add_node(self, node):
self._nodes.append(node)
def add_dependency(self, start, end):
"""
Add a dependency edge between the start and end node such that
end node depends on the start node
"""
new_dependency = start not in self._forward or end not in self._forward[start]
if start not in self._forward:
self._forward[start] = set()
if end not in self._backward:
self._backward[end] = set()
self._forward[start].add(end)
self._backward[end].add(start)
return new_dependency
@staticmethod
def _visit(nodes, graph, callback):
"""
Follow graph edges starting from the nodes iteratively
returning all the nodes visited
"""
def visit(node):
"""
Visit a single node and all following nodes in the graph
that have not already been visisted.
Detects circular dependencies
"""
if node in path:
start = path_ordered.index(node)
raise circular_dependency_exception(path_ordered[start:] + [node])
path.add(node)
path_ordered.append(node)
if node in graph:
for other_node in graph[node]:
if other_node not in visited:
visit(other_node)
path.remove(node)
path_ordered.pop()
visited.add(node)
callback(node)
visited = set()
for node in nodes:
if node not in visited:
path = set()
path_ordered = []
visit(node)
def get_dependent(self, nodes):
"""
Get all nodes which are directly or indirectly dependent on
the input nodes
"""
result = set()
self._visit(nodes, self._forward, result.add)
return result
def get_dependencies(self, nodes):
"""
Get all nodes which are directly or indirectly dependencies of
the input nodes
"""
result = set()
self._visit(nodes, self._backward, result.add)
return result
def get_direct_dependencies(self, node):
"""
Get the direct dependencies of node
"""
return self._backward.get(node, set())
class Circulardependencyexception(Exception):
"""
Raised when there are circular dependencies
"""
def __init__(self, path):
Exception.__init__(self)
self.path = path
def __repr__(self):
return 'CircularDependencyException(%r)' % self.path
|
# Rock, paper, scissors game
print("--------------------------------")
print(" Rock, Paper, Scissors v1")
print("--------------------------------")
player1 = input("Player 1, enter your name: ")
player2 = input("Player 2, enter your name: ")
rolls = ["rock", "paper", "scissors"]
roll1 = input(f"{player1}, enter your roll [rock, paper, scissors]: ")
roll1 = roll1.lower().strip()
if roll1 not in rolls:
print(f"Sorry {player1}, {roll1} is not a valid roll.")
roll2 = input(f"{player2}, enter your roll [rock, paper, scissors]: ")
roll2 = roll2.lower().strip()
if roll2 not in rolls:
print(f"Sorry {player2}, {roll2} is not a valid roll.")
print(f"{player1} rolls {roll1}.")
print(f"{player2} rolls {roll2}.")
# Win conditions
winner = None
if roll1 == roll2:
winner = None
elif roll1 == 'rock':
if roll2 == 'paper':
winner = player2
elif roll2 == 'scissors':
winner = player1
elif roll1 == 'paper':
if roll2 == 'rock':
winner = player1
elif roll2 == 'scissors':
winner = player2
elif roll1 == 'scissors':
if roll2 == 'paper':
winner = player1
elif roll2 == 'rock':
winner = player2
print("The game is over!")
if winner is None:
print("It was a tie!")
else:
print(f"{winner} takes the game!")
|
print('--------------------------------')
print(' Rock, Paper, Scissors v1')
print('--------------------------------')
player1 = input('Player 1, enter your name: ')
player2 = input('Player 2, enter your name: ')
rolls = ['rock', 'paper', 'scissors']
roll1 = input(f'{player1}, enter your roll [rock, paper, scissors]: ')
roll1 = roll1.lower().strip()
if roll1 not in rolls:
print(f'Sorry {player1}, {roll1} is not a valid roll.')
roll2 = input(f'{player2}, enter your roll [rock, paper, scissors]: ')
roll2 = roll2.lower().strip()
if roll2 not in rolls:
print(f'Sorry {player2}, {roll2} is not a valid roll.')
print(f'{player1} rolls {roll1}.')
print(f'{player2} rolls {roll2}.')
winner = None
if roll1 == roll2:
winner = None
elif roll1 == 'rock':
if roll2 == 'paper':
winner = player2
elif roll2 == 'scissors':
winner = player1
elif roll1 == 'paper':
if roll2 == 'rock':
winner = player1
elif roll2 == 'scissors':
winner = player2
elif roll1 == 'scissors':
if roll2 == 'paper':
winner = player1
elif roll2 == 'rock':
winner = player2
print('The game is over!')
if winner is None:
print('It was a tie!')
else:
print(f'{winner} takes the game!')
|
"""Constants for the Carson integration."""
DOMAIN = "carson"
UNLOCKED_TIMESPAN_SEC = 5
ATTRIBUTION = "provided by Eagle Eye"
CONF_LIST_FROM_EAGLE_EYE = "list_from_eagle_eye"
DEFAULT_CONF_LIST_FROM_EAGLE_EYE = False
|
"""Constants for the Carson integration."""
domain = 'carson'
unlocked_timespan_sec = 5
attribution = 'provided by Eagle Eye'
conf_list_from_eagle_eye = 'list_from_eagle_eye'
default_conf_list_from_eagle_eye = False
|
# Copyright 2016 IBM All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
class ScorerConfigurationException(Exception):
"""
Define exceptions to be used by various services.
ScorerConfigurationException: Raised if a Scorer is improperly configured
ScorerRuntimeException: Raised if a Scorer has a runtime error
"""
def __init__(self, message):
""" Wrapper exception for configuration issues. Should be raised if:
1) Inputs to the constructor of a scorer are bad,
2) Invariant to scorer is violated
etc.
"""
super(ScorerConfigurationException, self).__init__(message)
# endclass ScorerConfigurationException
class ScorerRuntimeException(Exception):
def __init__(self, message):
""" Wrapper exception for general runtime issues for a scorer. Should be raised if:
1) Input to an api method (likely .score) is invalid
2) Unforeseen problems prevent properly scoring a query, document, query/document pair
"""
super(ScorerRuntimeException, self).__init__(message)
# endclass ScorerRuntimeException
class ScorerTimeoutException(ScorerRuntimeException):
def __init__(self, message, args, kwargs):
""" Should be raised if a scorer times out
"""
super(ScorerTimeoutException, self).__init__(message)
self._args = args
self._kwargs = kwargs
#endclass ScorerTimeoutException
|
class Scorerconfigurationexception(Exception):
"""
Define exceptions to be used by various services.
ScorerConfigurationException: Raised if a Scorer is improperly configured
ScorerRuntimeException: Raised if a Scorer has a runtime error
"""
def __init__(self, message):
""" Wrapper exception for configuration issues. Should be raised if:
1) Inputs to the constructor of a scorer are bad,
2) Invariant to scorer is violated
etc.
"""
super(ScorerConfigurationException, self).__init__(message)
class Scorerruntimeexception(Exception):
def __init__(self, message):
""" Wrapper exception for general runtime issues for a scorer. Should be raised if:
1) Input to an api method (likely .score) is invalid
2) Unforeseen problems prevent properly scoring a query, document, query/document pair
"""
super(ScorerRuntimeException, self).__init__(message)
class Scorertimeoutexception(ScorerRuntimeException):
def __init__(self, message, args, kwargs):
""" Should be raised if a scorer times out
"""
super(ScorerTimeoutException, self).__init__(message)
self._args = args
self._kwargs = kwargs
|
class VkError(Exception):
def __init__(self, code, message, request_params):
super(VkError, self).__init__()
self.code = code
self.message = message
self.request_params = request_params
def __str__(self):
return 'VkError {}: {} (request_params: {})'.format(self.code, self.message, self.request_params)
class VkWallAccessDeniedError(VkError):
def __init__(self, code, message, request_params):
super(VkWallAccessDeniedError, self).__init__(code, message, request_params)
|
class Vkerror(Exception):
def __init__(self, code, message, request_params):
super(VkError, self).__init__()
self.code = code
self.message = message
self.request_params = request_params
def __str__(self):
return 'VkError {}: {} (request_params: {})'.format(self.code, self.message, self.request_params)
class Vkwallaccessdeniederror(VkError):
def __init__(self, code, message, request_params):
super(VkWallAccessDeniedError, self).__init__(code, message, request_params)
|
#!/usr/bin/env python
# -*- coding: utf-8 -*-
print('''
.intel_syntax noprefix
.extern isr_common
''')
print('// Interrupt Service Routines')
for i in range(255):
print('''isr{0}:
cli
{1}
push {0}
jmp isr_common
'''.format(i,
'push 0' if i not in [8, 10, 11, 12, 13, 14, 17] else 'nop'))
print('''
// Vector table
.section .data
.global isr_table
isr_table:
''')
for i in range(255):
print(' .quad isr{}'.format(i))
|
print('\n.intel_syntax noprefix\n.extern isr_common\n')
print('// Interrupt Service Routines')
for i in range(255):
print('isr{0}:\n cli\n {1}\n push {0}\n jmp isr_common\n '.format(i, 'push 0' if i not in [8, 10, 11, 12, 13, 14, 17] else 'nop'))
print('\n\n// Vector table\n\n.section .data\n.global isr_table\nisr_table:\n')
for i in range(255):
print(' .quad isr{}'.format(i))
|
"""Find first and last position of elements in sorted arrays."""
"""First and last position in sorted arrays."""
def searchRange(nums, target):
"""Find first and last position."""
def midpoint(x, y):
"""Find mid point."""
return x + (y - x) // 2
lo, hi = 0, len(nums)-1
_max = -1
_min = float('inf')
while lo <= hi:
mid = midpoint(lo, hi)
if nums[mid] == target:
_max = max(_max, mid)
_min = min(_min, mid)
if nums[mid] <= target:
lo = mid+1
else:
hi = mid-1
if _max == -1:
return [-1, _max]
lo, hi = 0, _min
while lo <= hi:
mid = midpoint(lo, hi)
if nums[mid] == target:
_min = min(_min, mid)
if nums[mid] >= target:
hi = mid-1
else:
lo = mid+1
return [_min, _max]
|
"""Find first and last position of elements in sorted arrays."""
'First and last position in sorted arrays.'
def search_range(nums, target):
"""Find first and last position."""
def midpoint(x, y):
"""Find mid point."""
return x + (y - x) // 2
(lo, hi) = (0, len(nums) - 1)
_max = -1
_min = float('inf')
while lo <= hi:
mid = midpoint(lo, hi)
if nums[mid] == target:
_max = max(_max, mid)
_min = min(_min, mid)
if nums[mid] <= target:
lo = mid + 1
else:
hi = mid - 1
if _max == -1:
return [-1, _max]
(lo, hi) = (0, _min)
while lo <= hi:
mid = midpoint(lo, hi)
if nums[mid] == target:
_min = min(_min, mid)
if nums[mid] >= target:
hi = mid - 1
else:
lo = mid + 1
return [_min, _max]
|
# This sample tests the logic that infers parameter types based on
# default argument values or annotated base class methods.
class Parent:
def func1(self, a: int, b: str) -> float:
...
class Child(Parent):
def func1(self, a, b):
reveal_type(self, expected_text="Self@Child")
reveal_type(a, expected_text="int")
reveal_type(b, expected_text="str")
return a
def func2(a, b=0, c=None):
reveal_type(a, expected_text="Unknown")
reveal_type(b, expected_text="int")
reveal_type(c, expected_text="Unknown | None")
def func3(a=(1, 2), b=[1,2], c={1: 2}):
reveal_type(a, expected_text="Unknown")
reveal_type(b, expected_text="Unknown")
reveal_type(c, expected_text="Unknown")
|
class Parent:
def func1(self, a: int, b: str) -> float:
...
class Child(Parent):
def func1(self, a, b):
reveal_type(self, expected_text='Self@Child')
reveal_type(a, expected_text='int')
reveal_type(b, expected_text='str')
return a
def func2(a, b=0, c=None):
reveal_type(a, expected_text='Unknown')
reveal_type(b, expected_text='int')
reveal_type(c, expected_text='Unknown | None')
def func3(a=(1, 2), b=[1, 2], c={1: 2}):
reveal_type(a, expected_text='Unknown')
reveal_type(b, expected_text='Unknown')
reveal_type(c, expected_text='Unknown')
|
#!/usr/bin/python3
class Solution:
def isPalindrome(self, x: int) -> bool:
if x < 0:
return False
s = str(x)
for i in range(int(len(s)/2)):
last = len(s) - i - 1
if s[i] != s[last]:
return False
return True
if __name__ == "__main__":
solution = Solution()
print(solution.isPalindrome(121))
|
class Solution:
def is_palindrome(self, x: int) -> bool:
if x < 0:
return False
s = str(x)
for i in range(int(len(s) / 2)):
last = len(s) - i - 1
if s[i] != s[last]:
return False
return True
if __name__ == '__main__':
solution = solution()
print(solution.isPalindrome(121))
|
# *** DEFINE CONSTANTS ***
# DO NOT ADD TO VERSION CONTROL AFTER ENTERING PERSONAL INFO
# LOCATION WHERE BLOTTER FILE IS LOCATED (INPUT)
SRCPATH = "D:/financial/"
SRCFILE = "blotter.xlsx"
# OUTPUT DATA DESTINATION (WINDOWS FORMAT)
outpath = "D://financial//"
outpath_linux = "/mnt/d/financial/"
# OUTPUT FILE NAMES
outfile = "stock_data_output.xlsx"
out_screener = "screener_output.xlsx"
# **ROBOADVISOR DEFAULTS (OVERRIDDEN IN APP)
# DATABASE FOR HISTORICAL STOCK INFO (USED BY stock_analysisPME)
HIST_DB_SERVER = "sqlite"
HIST_DB_NAME = "hist.db"
HIST_DB_SCHEMA = "db_schema.sql"
# RULES FOR DIVERSIFICATION & RISK (AS PERCENTAGE OF TOTAL PORTFOLIO)
max_sector_pct = 0.2
max_stock_pct = 0.1
# INTERNAL DISCOUNT RATE (WHAT OPPORTUNITY COST OF INVESTED FUNDS)
discount_rate = 0.12
|
srcpath = 'D:/financial/'
srcfile = 'blotter.xlsx'
outpath = 'D://financial//'
outpath_linux = '/mnt/d/financial/'
outfile = 'stock_data_output.xlsx'
out_screener = 'screener_output.xlsx'
hist_db_server = 'sqlite'
hist_db_name = 'hist.db'
hist_db_schema = 'db_schema.sql'
max_sector_pct = 0.2
max_stock_pct = 0.1
discount_rate = 0.12
|
"""
https://leetcode.com/problems/reverse-integer/
"""
class Solution:
def reverse(self, x: int) -> int:
multiply = 1
upper_bound = 2**31-1
lower_bound = -2**31
if x < 0:
multiply = -1
value = int(str(abs(x))[::-1])
print(f"mult={multiply}, value={value}, final={multiply*value}")
if lower_bound < value < upper_bound:
# prin(f"{lower_bound} < {value} < {upper_bound}")
return multiply * value
return 0
def test_1():
assert Solution().reverse(-123) == -321
def test_outOfScope():
assert Solution().reverse(1534236469) == 0
|
"""
https://leetcode.com/problems/reverse-integer/
"""
class Solution:
def reverse(self, x: int) -> int:
multiply = 1
upper_bound = 2 ** 31 - 1
lower_bound = -2 ** 31
if x < 0:
multiply = -1
value = int(str(abs(x))[::-1])
print(f'mult={multiply}, value={value}, final={multiply * value}')
if lower_bound < value < upper_bound:
return multiply * value
return 0
def test_1():
assert solution().reverse(-123) == -321
def test_out_of_scope():
assert solution().reverse(1534236469) == 0
|
def get_num(capacity, p):
cell = []
for i in range(len(p) + 1):
cell.append([])
for j in range(capacity + 1):
cell[i].append(0)
for i in range(1, len(p) + 1):
for j in range(1, capacity + 1):
if p[i - 1] <= i:
cell[i][j] = max(p[i -1], cell[i][j-1])
if j - p[i - 1] >= 0:
cell[i][j] = max(cell[i-1][j], p[i - 1] + cell[i - 1][j - p[i - 1]])
else:
cell[i][j] = cell[i - 1][j]
# for i in range(len(p) + 1):
# for j in range(capacity + 1):
# print(cell[i][j], end=' ')
# print()
# print()
# print()
if cell[len(p)][capacity] != capacity:
return []
k = capacity
t = len(p)
ans = []
while k > 0:
for el in p[::-1]:
if k - el >= 0 and t - 1 >= 0 :
if cell[t][k] - el == cell[t][k - el]:
ans.append(el)
k -= el
elif cell[t][k] - el == cell[t - 1][k - el]:
ans.append(el)
t -= 1
k -= el
return ans
n =int(input())
p = list(map(int, input().split()))
p.sort()
if sum(p) % 3 == 0:
capacity = sum(p) // 3
for i in range(3):
k = get_num(capacity, p)
if sum(k) != capacity:
break
for el in k:
p.pop(p.index(el))
else:
print(1)
exit()
print(0)
# 11
# 17 59 34 57 17 23 67 1 18 2 59
# 11 2
# 21 10 1
|
def get_num(capacity, p):
cell = []
for i in range(len(p) + 1):
cell.append([])
for j in range(capacity + 1):
cell[i].append(0)
for i in range(1, len(p) + 1):
for j in range(1, capacity + 1):
if p[i - 1] <= i:
cell[i][j] = max(p[i - 1], cell[i][j - 1])
if j - p[i - 1] >= 0:
cell[i][j] = max(cell[i - 1][j], p[i - 1] + cell[i - 1][j - p[i - 1]])
else:
cell[i][j] = cell[i - 1][j]
if cell[len(p)][capacity] != capacity:
return []
k = capacity
t = len(p)
ans = []
while k > 0:
for el in p[::-1]:
if k - el >= 0 and t - 1 >= 0:
if cell[t][k] - el == cell[t][k - el]:
ans.append(el)
k -= el
elif cell[t][k] - el == cell[t - 1][k - el]:
ans.append(el)
t -= 1
k -= el
return ans
n = int(input())
p = list(map(int, input().split()))
p.sort()
if sum(p) % 3 == 0:
capacity = sum(p) // 3
for i in range(3):
k = get_num(capacity, p)
if sum(k) != capacity:
break
for el in k:
p.pop(p.index(el))
else:
print(1)
exit()
print(0)
|
#!/usr/bin/env python
# examples of Church numerals
zero = lambda f: lambda x: x
one = lambda f: lambda x: f(x)
two = lambda f: lambda x: f(f(x))
three = lambda f: lambda x: f(f(f(x)))
four = lambda f: lambda x: f(f(f(f(x))))
five = lambda f: lambda x: f(f(f(f(f(x)))))
def to_intp(f):
print (f(lambda x: x + 1)(0))
def to_int(f):
return (f(lambda x: x + 1)(0))
# boolean
TRUE = lambda x: lambda y: x
FALSE = lambda x: lambda y: y
# logic operators
AND = lambda x: lambda y: x(y)(x)
OR = lambda x: lambda y: x(x)(y)
NOT = lambda p: p(FALSE)(TRUE)
XOR = lambda x: lambda y: x(NOT(y))(y)
def to_boolp(f):
print (f(True)(False))
def to_bool(f):
return (f(True)(False))
# incrementation n+1
inc = lambda n: lambda f: lambda x: f(n(f)(x))
# decrementation n-1
dec = lambda n: lambda f: lambda x: n(lambda g: lambda h: h(g(f)))(lambda y: x)(lambda y: y)
# addition n+m
add = lambda n: lambda m: m(inc)(n)
# subtraction n-m
sub = lambda n: lambda m: m(dec)(n)
# multiplying n*m
mul = lambda n: lambda m: (m(add(n))(zero))
# exponentiation n^m
pow = lambda n: lambda m: (m(mul(n))(one))
# if f.e. IF(TRUE)(one)(two)->one, IF(FALSE)(one)(two) -> two
IF = lambda n: lambda x: lambda y: n(x)(y)
# checking if the numeral equals ZERO
is_zero = lambda n: n(lambda x: (FALSE))(TRUE)
# checking if m<=n ?
less_or_equal = lambda m: lambda n: is_zero(sub(m)(n))
# checking if m==n
equal = lambda m: lambda n: AND(less_or_equal(m)(n))(less_or_equal(n)(m))
# Z_combinator is needed for recursion
Z = lambda f: (lambda x: (f(lambda y: x(x)(y))))(lambda x: f(lambda y: (x(x)(y))))
# modulo m%n
mod = Z(lambda f: lambda m: lambda n: IF(less_or_equal(n)(m))(lambda x: f(sub(m)(n))(n)(x))(m))
# pairs
PAIR = lambda x: lambda y: lambda f: f(x)(y)
LEFT = lambda p: p(lambda x: lambda y: x)
RIGHT = lambda p: p(lambda x: lambda y: y)
# list
EMPTY = PAIR(TRUE)(TRUE)
NEW = lambda l: lambda x: PAIR(FALSE)(PAIR(x)(l))
IS_EMPTY = LEFT
FIRST = lambda l: (LEFT(RIGHT(l)))
REST = lambda l: (RIGHT(RIGHT(l)))
def to_int_array(k):
array = []
while not to_bool(IS_EMPTY(k)):
array.append(to_int(FIRST(k)))
k = REST(k)
return array
# range(making list of range [m,n])
RANGE = Z(lambda f: lambda m: lambda n: IF(less_or_equal(m)(n))(lambda x: NEW(f(inc(m))(n))(m)(x))(EMPTY))
# fold
FOLD = Z(lambda f: lambda l: lambda x: lambda g: IF(IS_EMPTY(l))(x)(lambda y: g(f(REST(l))(x)(g))(FIRST(l))(y)))
# mapping function on the list
MAP = lambda k: lambda f: FOLD(k)(EMPTY)(lambda l: lambda x: NEW(l)(f(x)))
# gcd
gcd = Z(lambda f: lambda m: lambda n: IF(is_zero(n))(m)(lambda x: f(n)(mod(m)(n))(x)))
# program which for numbers from 1 to 50 puts gcd of this number and 54 in array
ten = mul(two)(five)
fifty = mul(ten)(five)
fifty_four = add(fifty)(four)
list = MAP(RANGE(one)(fifty))(lambda n: gcd(fifty_four)(n))
print(to_int_array(list))
|
zero = lambda f: lambda x: x
one = lambda f: lambda x: f(x)
two = lambda f: lambda x: f(f(x))
three = lambda f: lambda x: f(f(f(x)))
four = lambda f: lambda x: f(f(f(f(x))))
five = lambda f: lambda x: f(f(f(f(f(x)))))
def to_intp(f):
print(f(lambda x: x + 1)(0))
def to_int(f):
return f(lambda x: x + 1)(0)
true = lambda x: lambda y: x
false = lambda x: lambda y: y
and = lambda x: lambda y: x(y)(x)
or = lambda x: lambda y: x(x)(y)
not = lambda p: p(FALSE)(TRUE)
xor = lambda x: lambda y: x(not(y))(y)
def to_boolp(f):
print(f(True)(False))
def to_bool(f):
return f(True)(False)
inc = lambda n: lambda f: lambda x: f(n(f)(x))
dec = lambda n: lambda f: lambda x: n(lambda g: lambda h: h(g(f)))(lambda y: x)(lambda y: y)
add = lambda n: lambda m: m(inc)(n)
sub = lambda n: lambda m: m(dec)(n)
mul = lambda n: lambda m: m(add(n))(zero)
pow = lambda n: lambda m: m(mul(n))(one)
if = lambda n: lambda x: lambda y: n(x)(y)
is_zero = lambda n: n(lambda x: FALSE)(TRUE)
less_or_equal = lambda m: lambda n: is_zero(sub(m)(n))
equal = lambda m: lambda n: and(less_or_equal(m)(n))(less_or_equal(n)(m))
z = lambda f: (lambda x: f(lambda y: x(x)(y)))(lambda x: f(lambda y: x(x)(y)))
mod = z(lambda f: lambda m: lambda n: if(less_or_equal(n)(m))(lambda x: f(sub(m)(n))(n)(x))(m))
pair = lambda x: lambda y: lambda f: f(x)(y)
left = lambda p: p(lambda x: lambda y: x)
right = lambda p: p(lambda x: lambda y: y)
empty = pair(TRUE)(TRUE)
new = lambda l: lambda x: pair(FALSE)(pair(x)(l))
is_empty = LEFT
first = lambda l: left(right(l))
rest = lambda l: right(right(l))
def to_int_array(k):
array = []
while not to_bool(is_empty(k)):
array.append(to_int(first(k)))
k = rest(k)
return array
range = z(lambda f: lambda m: lambda n: if(less_or_equal(m)(n))(lambda x: new(f(inc(m))(n))(m)(x))(EMPTY))
fold = z(lambda f: lambda l: lambda x: lambda g: if(is_empty(l))(x)(lambda y: g(f(rest(l))(x)(g))(first(l))(y)))
map = lambda k: lambda f: fold(k)(EMPTY)(lambda l: lambda x: new(l)(f(x)))
gcd = z(lambda f: lambda m: lambda n: if(is_zero(n))(m)(lambda x: f(n)(mod(m)(n))(x)))
ten = mul(two)(five)
fifty = mul(ten)(five)
fifty_four = add(fifty)(four)
list = map(range(one)(fifty))(lambda n: gcd(fifty_four)(n))
print(to_int_array(list))
|
#!/usr/bin/env python3
# https://arc098.contest.atcoder.jp/tasks/arc098_a
n = int(input())
s = input()
a = [0] * n
if s[0] == 'W': a[0] = 1
for i in range(1, n):
c = s[i]
if c == 'E':
a[i] = a[i - 1]
else:
a[i] = a[i - 1] + 1
b = [0] * n
if s[n - 1] == 'E': b[n - 1] = 1
for i in range(n - 2, -1, -1):
c = s[i]
if c == 'W':
b[i] = b[i + 1]
else:
b[i] = b[i + 1] + 1
m = n
for i in range(n):
m = min(m, a[i] + b[i])
print(m - 1)
|
n = int(input())
s = input()
a = [0] * n
if s[0] == 'W':
a[0] = 1
for i in range(1, n):
c = s[i]
if c == 'E':
a[i] = a[i - 1]
else:
a[i] = a[i - 1] + 1
b = [0] * n
if s[n - 1] == 'E':
b[n - 1] = 1
for i in range(n - 2, -1, -1):
c = s[i]
if c == 'W':
b[i] = b[i + 1]
else:
b[i] = b[i + 1] + 1
m = n
for i in range(n):
m = min(m, a[i] + b[i])
print(m - 1)
|
#
# Copyright (c) 2013,2014, Oracle and/or its affiliates. All rights reserved.
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; version 2 of the License.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
#
"""Errors raised within the MySQL Fabric library.
"""
class Error(Exception):
"""Base exception for all errors in the package.
"""
pass
class NotCallableError(Error):
"""Exception raised when a callable was expected but not provided.
"""
pass
class NotEventError(Error):
"""Exception raised when a non-event instance was passed where an
event instance was expected.
"""
pass
class UnknownCallableError(Error):
"""Exception raised when trying to use a callable that was not
known when a known callable was expected.
"""
pass
class ExecutorError(Error):
"""Exception raised when the one tries to access the executor that
is not properly configured.
"""
pass
class InvalidGtidError(Error):
"""Exception raised when the one tries to use and make operations with
invalid GTID(s).
"""
pass
class InternalError(Error):
"""Exception raised when an internal error occurs.
Typically it is raised when an extension added does not honor the
internal interfaces.
"""
pass
class UuidError(Error):
"""Exception raised when there are problems with uuids. For example,
if the expected uuid does not match the server's uuid.
"""
pass
class TimeoutError(Error):
"""Exception raised when there is a timeout.
"""
class DatabaseError(Error):
"""Exception raised when something bad happens while accessing a
database.
"""
def __init__(self, msg, errno=None):
"""Constructor for DatabaseError object.
"""
super(DatabaseError, self).__init__(msg)
self.errno = errno
class ProgrammingError(Error):
"""Exception raised when a developer tries to use the interfaces and
executes an invalid operation.
"""
pass
class ConfigurationError(ProgrammingError):
"""Exception raised when configuration options are not properly set.
"""
pass
class LockManagerError(Error):
"""Exception raised when an invalid operation is attempted on the
lock manager or locks are broken.
"""
pass
class ServiceError(Error):
"""Exception raised when one tries to use the service interface and
executes an invalid operation.
"""
pass
class GroupError(ServiceError):
"""Exception raised when one tries to execute an invalid operation on a
group. For example, it is not possible to create two groups with the
same id or remove a group that has associated servers.
"""
pass
class ServerError(ServiceError):
"""Exception raised when one tries to execute an invalid operation on a
server. For example, it is not possible to create two servers with the
same uuid.
"""
pass
class ProcedureError(ServiceError):
"""Exception raised when a procedure is not found.
"""
pass
class ShardingError(ServiceError):
"""Exception raised when an invalid operation is attempted on the
sharding system.
"""
pass
class BackupError(Error):
"""Exception raised when a error occurs in the backup restore framework
of Fabric.
"""
pass
class CredentialError(Error):
"""Exception raised when something is wrong with credentials"""
pass
class CommandResultError(Error):
"""Exception raised for incorrect command result
"""
pass
class ProviderError(ServiceError):
"""Exception raised when something is wrong while accessing a
cloud provider.
"""
pass
class MachineError(ServiceError):
"""Exception while processing a request that requires access to
provider's machine.
"""
pass
|
"""Errors raised within the MySQL Fabric library.
"""
class Error(Exception):
"""Base exception for all errors in the package.
"""
pass
class Notcallableerror(Error):
"""Exception raised when a callable was expected but not provided.
"""
pass
class Noteventerror(Error):
"""Exception raised when a non-event instance was passed where an
event instance was expected.
"""
pass
class Unknowncallableerror(Error):
"""Exception raised when trying to use a callable that was not
known when a known callable was expected.
"""
pass
class Executorerror(Error):
"""Exception raised when the one tries to access the executor that
is not properly configured.
"""
pass
class Invalidgtiderror(Error):
"""Exception raised when the one tries to use and make operations with
invalid GTID(s).
"""
pass
class Internalerror(Error):
"""Exception raised when an internal error occurs.
Typically it is raised when an extension added does not honor the
internal interfaces.
"""
pass
class Uuiderror(Error):
"""Exception raised when there are problems with uuids. For example,
if the expected uuid does not match the server's uuid.
"""
pass
class Timeouterror(Error):
"""Exception raised when there is a timeout.
"""
class Databaseerror(Error):
"""Exception raised when something bad happens while accessing a
database.
"""
def __init__(self, msg, errno=None):
"""Constructor for DatabaseError object.
"""
super(DatabaseError, self).__init__(msg)
self.errno = errno
class Programmingerror(Error):
"""Exception raised when a developer tries to use the interfaces and
executes an invalid operation.
"""
pass
class Configurationerror(ProgrammingError):
"""Exception raised when configuration options are not properly set.
"""
pass
class Lockmanagererror(Error):
"""Exception raised when an invalid operation is attempted on the
lock manager or locks are broken.
"""
pass
class Serviceerror(Error):
"""Exception raised when one tries to use the service interface and
executes an invalid operation.
"""
pass
class Grouperror(ServiceError):
"""Exception raised when one tries to execute an invalid operation on a
group. For example, it is not possible to create two groups with the
same id or remove a group that has associated servers.
"""
pass
class Servererror(ServiceError):
"""Exception raised when one tries to execute an invalid operation on a
server. For example, it is not possible to create two servers with the
same uuid.
"""
pass
class Procedureerror(ServiceError):
"""Exception raised when a procedure is not found.
"""
pass
class Shardingerror(ServiceError):
"""Exception raised when an invalid operation is attempted on the
sharding system.
"""
pass
class Backuperror(Error):
"""Exception raised when a error occurs in the backup restore framework
of Fabric.
"""
pass
class Credentialerror(Error):
"""Exception raised when something is wrong with credentials"""
pass
class Commandresulterror(Error):
"""Exception raised for incorrect command result
"""
pass
class Providererror(ServiceError):
"""Exception raised when something is wrong while accessing a
cloud provider.
"""
pass
class Machineerror(ServiceError):
"""Exception while processing a request that requires access to
provider's machine.
"""
pass
|
def reverse_string(string):
reverse = ''
for char in range(len(string) - 1, -1, -1):
reverse += string[char]
print(reverse)
|
def reverse_string(string):
reverse = ''
for char in range(len(string) - 1, -1, -1):
reverse += string[char]
print(reverse)
|
class RestException(Exception):
pass
class ResourceException(RestException):
pass
class RestServerException(RestException):
pass
|
class Restexception(Exception):
pass
class Resourceexception(RestException):
pass
class Restserverexception(RestException):
pass
|
class CreateAuth:
def __init__(self, repository):
self.auth_repository = repository
async def create(self):
return await self.auth_repository.create()
|
class Createauth:
def __init__(self, repository):
self.auth_repository = repository
async def create(self):
return await self.auth_repository.create()
|
length = int( input("Enter the length of rectagle: ") )
width = int( input("Enter the width of rectange: ") )
perimeter = 2 * (length + width)
area = length * width
print("Area: ", area, "square cm")
print("Perimeter:", perimeter, "cm")
|
length = int(input('Enter the length of rectagle: '))
width = int(input('Enter the width of rectange: '))
perimeter = 2 * (length + width)
area = length * width
print('Area: ', area, 'square cm')
print('Perimeter:', perimeter, 'cm')
|
def read_matrix():
(rows, columns) = map(int, input().split(" "))
matrix = []
for r in range(rows):
row = input().split(" ")
matrix.append(row)
return matrix, rows, columns
def subsqares_count(matrix,subsquare, rows, columns):
count = 0
for r in range(rows - (subsquare - 1)):
for c in range(columns - (subsquare - 1)):
data = set()
for r2 in range(0, subsquare):
for c2 in range(0, subsquare):
data.add(matrix[r + r2][c + c2])
if len(data) == 1:
count += 1
return count
matrix, rows, columns = read_matrix()
subsquare = 2
print(subsqares_count(matrix, subsquare, rows, columns))
|
def read_matrix():
(rows, columns) = map(int, input().split(' '))
matrix = []
for r in range(rows):
row = input().split(' ')
matrix.append(row)
return (matrix, rows, columns)
def subsqares_count(matrix, subsquare, rows, columns):
count = 0
for r in range(rows - (subsquare - 1)):
for c in range(columns - (subsquare - 1)):
data = set()
for r2 in range(0, subsquare):
for c2 in range(0, subsquare):
data.add(matrix[r + r2][c + c2])
if len(data) == 1:
count += 1
return count
(matrix, rows, columns) = read_matrix()
subsquare = 2
print(subsqares_count(matrix, subsquare, rows, columns))
|
DEBUG = True
APP_DIR = '/home/harish/django_projects/cinepura/'
STATIC_MEDIA_PREFIX = '/static_media/cinepura'
|
debug = True
app_dir = '/home/harish/django_projects/cinepura/'
static_media_prefix = '/static_media/cinepura'
|
"""
'pass' or '...' (ellipsis) works as a placeholder for the programmer to write something later
"""
valor = True
if valor:
pass
else:
print('Bye')
print()
if valor:
...
else:
print('Bye')
|
"""
'pass' or '...' (ellipsis) works as a placeholder for the programmer to write something later
"""
valor = True
if valor:
pass
else:
print('Bye')
print()
if valor:
...
else:
print('Bye')
|
def reverse_num(x: int) -> int :
if x == 0:
return 0
else:
num_temp = str(x)
tam = len(num_temp)
num_zeros = 0
if num_temp[0] == "-":
if num_temp[tam - 1] == "0":
dici = {"0": 0}
for value in num_temp[:1:-1]:
if value in dici:
dici[value] += 1
num_zeros += 1
else:
break
num_temp = num_temp[tam-num_zeros:0:-1]
x = (int(num_temp)) * -1
else:
num_temp = num_temp[:0:-1]
x = (int(num_temp)) * -1
else:
if num_temp[tam - 1] == "0":
dici = {"0": 0}
for value in num_temp[::-1]:
if value in dici:
dici[value] += 1
num_zeros += 1
else:
break
num_temp = num_temp[tam-num_zeros::-1]
x = (int(num_temp))
else:
x = int(num_temp[::-1])
if x > (2 ** 31 - 1) or x < (-2 ** 31):
return 0
else:
return x
if __name__ == "__main__":
print(reverse_num(65090))
|
def reverse_num(x: int) -> int:
if x == 0:
return 0
else:
num_temp = str(x)
tam = len(num_temp)
num_zeros = 0
if num_temp[0] == '-':
if num_temp[tam - 1] == '0':
dici = {'0': 0}
for value in num_temp[:1:-1]:
if value in dici:
dici[value] += 1
num_zeros += 1
else:
break
num_temp = num_temp[tam - num_zeros:0:-1]
x = int(num_temp) * -1
else:
num_temp = num_temp[:0:-1]
x = int(num_temp) * -1
elif num_temp[tam - 1] == '0':
dici = {'0': 0}
for value in num_temp[::-1]:
if value in dici:
dici[value] += 1
num_zeros += 1
else:
break
num_temp = num_temp[tam - num_zeros::-1]
x = int(num_temp)
else:
x = int(num_temp[::-1])
if x > 2 ** 31 - 1 or x < -2 ** 31:
return 0
else:
return x
if __name__ == '__main__':
print(reverse_num(65090))
|
class BasicPagination:
items_per_page = 1
max_items_per_page = 100
def __init__(self,
pagination: dict = None,
items_per_page: int = None,
max_items_per_page: int = None):
pagination = pagination or {}
self.page = pagination.get('page', 0)
self.max_items_per_page = max_items_per_page
self.items_per_page = min(
pagination.get('items_per_page', items_per_page),
self.max_items_per_page
)
self.limit = (self.page + 1) * self.items_per_page
self.offset = self.page * self.items_per_page
self.next = False
def paginate(self, query):
return query.limit(self.limit).offset(self.offset)
@property
def result(self):
# TODO next page
return {
'page': self.page
}
|
class Basicpagination:
items_per_page = 1
max_items_per_page = 100
def __init__(self, pagination: dict=None, items_per_page: int=None, max_items_per_page: int=None):
pagination = pagination or {}
self.page = pagination.get('page', 0)
self.max_items_per_page = max_items_per_page
self.items_per_page = min(pagination.get('items_per_page', items_per_page), self.max_items_per_page)
self.limit = (self.page + 1) * self.items_per_page
self.offset = self.page * self.items_per_page
self.next = False
def paginate(self, query):
return query.limit(self.limit).offset(self.offset)
@property
def result(self):
return {'page': self.page}
|
'''
This problem was recently asked by Apple:
You are given two singly linked lists. The lists intersect at some node. Find, and return the node. Note: the lists are non-cyclical.
Example:
A = 1 -> 2 -> 3 -> 4
B = 6 -> 3 -> 4
This should return 3 (you may assume that any nodes with the same value are the same node).
'''
def intersection(a, b):
def findlength(node):
if not node:
return 0
return findlength(node.next) + 1
if not a or not b:
return None
asize, bsize = findlength(a), findlength(b)
diffsize = abs(asize - bsize)
while diffsize > 0:
if asize > bsize:
a = a.next
else:
b = b.next
diffsize -= 1
while a:
if a == b:
return a
a = a.next
b = b.next
return None
class Node(object):
def __init__(self, val):
self.val = val
self.next = None
def prettyPrint(self):
c = self
while c:
print(c.val,)
c = c.next
a = Node(1)
a.next = Node(2)
a.next.next = Node(3)
a.next.next.next = Node(4)
b = Node(6)
b.next = a.next.next
c = intersection(a, b)
c.prettyPrint()
# 3 4
|
"""
This problem was recently asked by Apple:
You are given two singly linked lists. The lists intersect at some node. Find, and return the node. Note: the lists are non-cyclical.
Example:
A = 1 -> 2 -> 3 -> 4
B = 6 -> 3 -> 4
This should return 3 (you may assume that any nodes with the same value are the same node).
"""
def intersection(a, b):
def findlength(node):
if not node:
return 0
return findlength(node.next) + 1
if not a or not b:
return None
(asize, bsize) = (findlength(a), findlength(b))
diffsize = abs(asize - bsize)
while diffsize > 0:
if asize > bsize:
a = a.next
else:
b = b.next
diffsize -= 1
while a:
if a == b:
return a
a = a.next
b = b.next
return None
class Node(object):
def __init__(self, val):
self.val = val
self.next = None
def pretty_print(self):
c = self
while c:
print(c.val)
c = c.next
a = node(1)
a.next = node(2)
a.next.next = node(3)
a.next.next.next = node(4)
b = node(6)
b.next = a.next.next
c = intersection(a, b)
c.prettyPrint()
|
class Solution:
def climbStairs(self, n: int) -> int:
if n == 0:
return 0
if n == 1:
return 1
if n == 2:
return 2
"""
Approach #1:
- use a dp array and a helper function
- pretty intuitive
"""
dp = [-1 for _ in range(n+1)]
dp[0] = 0
dp[1] = 1
dp[2] = 2
return self.climb_stairs(n, dp)
def climb_stairs(self, n, dp):
if dp[n] != -1:
return dp[n]
else:
dp[n] = self.climb_stairs(n-1, dp) + self.climb_stairs(n-2, dp)
return dp[n]
"""
Approach #2
Two step variables - very intuitive as well
"""
# one_step = 1
# two_step = 2
# new = 0
# for each in range(2,n):
# new = one_step + two_step
# one_step = two_step
# two_step = new
# return new
|
class Solution:
def climb_stairs(self, n: int) -> int:
if n == 0:
return 0
if n == 1:
return 1
if n == 2:
return 2
'\n Approach #1:\n - use a dp array and a helper function\n - pretty intuitive\n '
dp = [-1 for _ in range(n + 1)]
dp[0] = 0
dp[1] = 1
dp[2] = 2
return self.climb_stairs(n, dp)
def climb_stairs(self, n, dp):
if dp[n] != -1:
return dp[n]
else:
dp[n] = self.climb_stairs(n - 1, dp) + self.climb_stairs(n - 2, dp)
return dp[n]
'\n Approach #2\n Two step variables - very intuitive as well\n '
|
WELCOME_DIALOG_TEXT = (
"Welcome to NVDA dialog Welcome to NVDA! Most commands for controlling NVDA require you to hold "
"down the NVDA key while pressing other keys. By default, the numpad Insert and main Insert keys "
"may both be used as the NVDA key. You can also configure NVDA to use the Caps Lock as the NVDA "
"key. Press NVDA plus n at any time to activate the NVDA menu. From this menu, you can configure "
"NVDA, get help and access other NVDA functions. \n"
"Options grouping \n"
"Keyboard layout: combo box desktop collapsed Alt plus k"
)
QUIT_DIALOG_TEXT = (
"Exit NVDA dialog \n"
"What would you like to do? combo box Exit collapsed Alt plus d"
)
|
welcome_dialog_text = 'Welcome to NVDA dialog Welcome to NVDA! Most commands for controlling NVDA require you to hold down the NVDA key while pressing other keys. By default, the numpad Insert and main Insert keys may both be used as the NVDA key. You can also configure NVDA to use the Caps Lock as the NVDA key. Press NVDA plus n at any time to activate the NVDA menu. From this menu, you can configure NVDA, get help and access other NVDA functions. \nOptions grouping \nKeyboard layout: combo box desktop collapsed Alt plus k'
quit_dialog_text = 'Exit NVDA dialog \nWhat would you like to do? combo box Exit collapsed Alt plus d'
|
__author__ = "NuoDB, Inc."
__copyright__ = "(C) Copyright NuoDB, Inc. 2019"
__license__ = "MIT"
__version__ = "1.0"
__maintainer__ = "NuoDB Drivers"
__email__ = "drivers@nuodb.com"
__status__ = "Production"
|
__author__ = 'NuoDB, Inc.'
__copyright__ = '(C) Copyright NuoDB, Inc. 2019'
__license__ = 'MIT'
__version__ = '1.0'
__maintainer__ = 'NuoDB Drivers'
__email__ = 'drivers@nuodb.com'
__status__ = 'Production'
|
class CurrentChangedEventManager(WeakEventManager):
""" Provides a System.Windows.WeakEventManager implementation so that you can use the "weak event listener" pattern to attach listeners for the System.ComponentModel.ICollectionView.CurrentChanged event. """
@staticmethod
def AddHandler(source,handler):
""" AddHandler(source: ICollectionView,handler: EventHandler[EventArgs]) """
pass
@staticmethod
def AddListener(source,listener):
"""
AddListener(source: ICollectionView,listener: IWeakEventListener)
Adds the specified listener to the
System.ComponentModel.ICollectionView.CurrentChanged event of the specified
source.
source: The object with the event.
listener: The object to add as a listener.
"""
pass
@staticmethod
def RemoveHandler(source,handler):
""" RemoveHandler(source: ICollectionView,handler: EventHandler[EventArgs]) """
pass
@staticmethod
def RemoveListener(source,listener):
"""
RemoveListener(source: ICollectionView,listener: IWeakEventListener)
Removes the specified listener from the
System.ComponentModel.ICollectionView.CurrentChanged event of the specified
source.
source: The object with the event.
listener: The listener to remove.
"""
pass
ReadLock=property(lambda self: object(),lambda self,v: None,lambda self: None)
"""Establishes a read-lock on the underlying data table,and returns an System.IDisposable.
"""
WriteLock=property(lambda self: object(),lambda self,v: None,lambda self: None)
"""Establishes a write-lock on the underlying data table,and returns an System.IDisposable.
"""
|
class Currentchangedeventmanager(WeakEventManager):
""" Provides a System.Windows.WeakEventManager implementation so that you can use the "weak event listener" pattern to attach listeners for the System.ComponentModel.ICollectionView.CurrentChanged event. """
@staticmethod
def add_handler(source, handler):
""" AddHandler(source: ICollectionView,handler: EventHandler[EventArgs]) """
pass
@staticmethod
def add_listener(source, listener):
"""
AddListener(source: ICollectionView,listener: IWeakEventListener)
Adds the specified listener to the
System.ComponentModel.ICollectionView.CurrentChanged event of the specified
source.
source: The object with the event.
listener: The object to add as a listener.
"""
pass
@staticmethod
def remove_handler(source, handler):
""" RemoveHandler(source: ICollectionView,handler: EventHandler[EventArgs]) """
pass
@staticmethod
def remove_listener(source, listener):
"""
RemoveListener(source: ICollectionView,listener: IWeakEventListener)
Removes the specified listener from the
System.ComponentModel.ICollectionView.CurrentChanged event of the specified
source.
source: The object with the event.
listener: The listener to remove.
"""
pass
read_lock = property(lambda self: object(), lambda self, v: None, lambda self: None)
'Establishes a read-lock on the underlying data table,and returns an System.IDisposable.\n\n\n\n'
write_lock = property(lambda self: object(), lambda self, v: None, lambda self: None)
'Establishes a write-lock on the underlying data table,and returns an System.IDisposable.\n\n\n\n'
|
class Color(object):
""" Represents an ARGB (alpha,red,green,blue) color. """
def Equals(self,obj):
"""
Equals(self: Color,obj: object) -> bool
Tests whether the specified object is a System.Drawing.Color structure and is equivalent to this
System.Drawing.Color structure.
obj: The object to test.
Returns: true if obj is a System.Drawing.Color structure equivalent to this System.Drawing.Color
structure; otherwise,false.
"""
pass
@staticmethod
def FromArgb(*__args):
"""
FromArgb(alpha: int,baseColor: Color) -> Color
Creates a System.Drawing.Color structure from the specified System.Drawing.Color structure,but
with the new specified alpha value. Although this method allows a 32-bit value to be passed for
the alpha value,the value is limited to 8 bits.
alpha: The alpha value for the new System.Drawing.Color. Valid values are 0 through 255.
baseColor: The System.Drawing.Color from which to create the new System.Drawing.Color.
Returns: The System.Drawing.Color that this method creates.
FromArgb(red: int,green: int,blue: int) -> Color
Creates a System.Drawing.Color structure from the specified 8-bit color values (red,green,and
blue). The alpha value is implicitly 255 (fully opaque). Although this method allows a 32-bit
value to be passed for each color component,the value of each component is limited to 8 bits.
red: The red component value for the new System.Drawing.Color. Valid values are 0 through 255.
green: The green component value for the new System.Drawing.Color. Valid values are 0 through 255.
blue: The blue component value for the new System.Drawing.Color. Valid values are 0 through 255.
Returns: The System.Drawing.Color that this method creates.
FromArgb(argb: int) -> Color
Creates a System.Drawing.Color structure from a 32-bit ARGB value.
argb: A value specifying the 32-bit ARGB value.
Returns: The System.Drawing.Color structure that this method creates.
FromArgb(alpha: int,red: int,green: int,blue: int) -> Color
Creates a System.Drawing.Color structure from the four ARGB component (alpha,red,green,and
blue) values. Although this method allows a 32-bit value to be passed for each component,the
value of each component is limited to 8 bits.
alpha: The alpha component. Valid values are 0 through 255.
red: The red component. Valid values are 0 through 255.
green: The green component. Valid values are 0 through 255.
blue: The blue component. Valid values are 0 through 255.
Returns: The System.Drawing.Color that this method creates.
"""
pass
@staticmethod
def FromKnownColor(color):
"""
FromKnownColor(color: KnownColor) -> Color
Creates a System.Drawing.Color structure from the specified predefined color.
color: An element of the System.Drawing.KnownColor enumeration.
Returns: The System.Drawing.Color that this method creates.
"""
pass
@staticmethod
def FromName(name):
"""
FromName(name: str) -> Color
Creates a System.Drawing.Color structure from the specified name of a predefined color.
name: A string that is the name of a predefined color. Valid names are the same as the names of the
elements of the System.Drawing.KnownColor enumeration.
Returns: The System.Drawing.Color that this method creates.
"""
pass
def GetBrightness(self):
"""
GetBrightness(self: Color) -> Single
Gets the hue-saturation-brightness (HSB) brightness value for this System.Drawing.Color
structure.
Returns: The brightness of this System.Drawing.Color. The brightness ranges from 0.0 through 1.0,where
0.0 represents black and 1.0 represents white.
"""
pass
def GetHashCode(self):
"""
GetHashCode(self: Color) -> int
Returns a hash code for this System.Drawing.Color structure.
Returns: An integer value that specifies the hash code for this System.Drawing.Color.
"""
pass
def GetHue(self):
"""
GetHue(self: Color) -> Single
Gets the hue-saturation-brightness (HSB) hue value,in degrees,for this System.Drawing.Color
structure.
Returns: The hue,in degrees,of this System.Drawing.Color. The hue is measured in degrees,ranging from
0.0 through 360.0,in HSB color space.
"""
pass
def GetSaturation(self):
"""
GetSaturation(self: Color) -> Single
Gets the hue-saturation-brightness (HSB) saturation value for this System.Drawing.Color
structure.
Returns: The saturation of this System.Drawing.Color. The saturation ranges from 0.0 through 1.0,where
0.0 is grayscale and 1.0 is the most saturated.
"""
pass
def ToArgb(self):
"""
ToArgb(self: Color) -> int
Gets the 32-bit ARGB value of this System.Drawing.Color structure.
Returns: The 32-bit ARGB value of this System.Drawing.Color.
"""
pass
def ToKnownColor(self):
"""
ToKnownColor(self: Color) -> KnownColor
Gets the System.Drawing.KnownColor value of this System.Drawing.Color structure.
Returns: An element of the System.Drawing.KnownColor enumeration,if the System.Drawing.Color is created
from a predefined color by using either the System.Drawing.Color.FromName(System.String) method
or the System.Drawing.Color.FromKnownColor(System.Drawing.KnownColor) method; otherwise,0.
"""
pass
def ToString(self):
"""
ToString(self: Color) -> str
Converts this System.Drawing.Color structure to a human-readable string.
Returns: A string that is the name of this System.Drawing.Color,if the System.Drawing.Color is created
from a predefined color by using either the System.Drawing.Color.FromName(System.String) method
or the System.Drawing.Color.FromKnownColor(System.Drawing.KnownColor) method; otherwise,a
string that consists of the ARGB component names and their values.
"""
pass
def __eq__(self,*args):
""" x.__eq__(y) <==> x==y """
pass
def __ne__(self,*args):
pass
A=property(lambda self: object(),lambda self,v: None,lambda self: None)
"""Gets the alpha component value of this System.Drawing.Color structure.
Get: A(self: Color) -> Byte
"""
B=property(lambda self: object(),lambda self,v: None,lambda self: None)
"""Gets the blue component value of this System.Drawing.Color structure.
Get: B(self: Color) -> Byte
"""
G=property(lambda self: object(),lambda self,v: None,lambda self: None)
"""Gets the green component value of this System.Drawing.Color structure.
Get: G(self: Color) -> Byte
"""
IsEmpty=property(lambda self: object(),lambda self,v: None,lambda self: None)
"""Specifies whether this System.Drawing.Color structure is uninitialized.
Get: IsEmpty(self: Color) -> bool
"""
IsKnownColor=property(lambda self: object(),lambda self,v: None,lambda self: None)
"""Gets a value indicating whether this System.Drawing.Color structure is a predefined color. Predefined colors are represented by the elements of the System.Drawing.KnownColor enumeration.
Get: IsKnownColor(self: Color) -> bool
"""
IsNamedColor=property(lambda self: object(),lambda self,v: None,lambda self: None)
"""Gets a value indicating whether this System.Drawing.Color structure is a named color or a member of the System.Drawing.KnownColor enumeration.
Get: IsNamedColor(self: Color) -> bool
"""
IsSystemColor=property(lambda self: object(),lambda self,v: None,lambda self: None)
"""Gets a value indicating whether this System.Drawing.Color structure is a system color. A system color is a color that is used in a Windows display element. System colors are represented by elements of the System.Drawing.KnownColor enumeration.
Get: IsSystemColor(self: Color) -> bool
"""
Name=property(lambda self: object(),lambda self,v: None,lambda self: None)
"""Gets the name of this System.Drawing.Color.
Get: Name(self: Color) -> str
"""
R=property(lambda self: object(),lambda self,v: None,lambda self: None)
"""Gets the red component value of this System.Drawing.Color structure.
Get: R(self: Color) -> Byte
"""
AliceBlue=None
AntiqueWhite=None
Aqua=None
Aquamarine=None
Azure=None
Beige=None
Bisque=None
Black=None
BlanchedAlmond=None
Blue=None
BlueViolet=None
Brown=None
BurlyWood=None
CadetBlue=None
Chartreuse=None
Chocolate=None
Coral=None
CornflowerBlue=None
Cornsilk=None
Crimson=None
Cyan=None
DarkBlue=None
DarkCyan=None
DarkGoldenrod=None
DarkGray=None
DarkGreen=None
DarkKhaki=None
DarkMagenta=None
DarkOliveGreen=None
DarkOrange=None
DarkOrchid=None
DarkRed=None
DarkSalmon=None
DarkSeaGreen=None
DarkSlateBlue=None
DarkSlateGray=None
DarkTurquoise=None
DarkViolet=None
DeepPink=None
DeepSkyBlue=None
DimGray=None
DodgerBlue=None
Empty=None
Firebrick=None
FloralWhite=None
ForestGreen=None
Fuchsia=None
Gainsboro=None
GhostWhite=None
Gold=None
Goldenrod=None
Gray=None
Green=None
GreenYellow=None
Honeydew=None
HotPink=None
IndianRed=None
Indigo=None
Ivory=None
Khaki=None
Lavender=None
LavenderBlush=None
LawnGreen=None
LemonChiffon=None
LightBlue=None
LightCoral=None
LightCyan=None
LightGoldenrodYellow=None
LightGray=None
LightGreen=None
LightPink=None
LightSalmon=None
LightSeaGreen=None
LightSkyBlue=None
LightSlateGray=None
LightSteelBlue=None
LightYellow=None
Lime=None
LimeGreen=None
Linen=None
Magenta=None
Maroon=None
MediumAquamarine=None
MediumBlue=None
MediumOrchid=None
MediumPurple=None
MediumSeaGreen=None
MediumSlateBlue=None
MediumSpringGreen=None
MediumTurquoise=None
MediumVioletRed=None
MidnightBlue=None
MintCream=None
MistyRose=None
Moccasin=None
NavajoWhite=None
Navy=None
OldLace=None
Olive=None
OliveDrab=None
Orange=None
OrangeRed=None
Orchid=None
PaleGoldenrod=None
PaleGreen=None
PaleTurquoise=None
PaleVioletRed=None
PapayaWhip=None
PeachPuff=None
Peru=None
Pink=None
Plum=None
PowderBlue=None
Purple=None
Red=None
RosyBrown=None
RoyalBlue=None
SaddleBrown=None
Salmon=None
SandyBrown=None
SeaGreen=None
SeaShell=None
Sienna=None
Silver=None
SkyBlue=None
SlateBlue=None
SlateGray=None
Snow=None
SpringGreen=None
SteelBlue=None
Tan=None
Teal=None
Thistle=None
Tomato=None
Transparent=None
Turquoise=None
Violet=None
Wheat=None
White=None
WhiteSmoke=None
Yellow=None
YellowGreen=None
|
class Color(object):
""" Represents an ARGB (alpha,red,green,blue) color. """
def equals(self, obj):
"""
Equals(self: Color,obj: object) -> bool
Tests whether the specified object is a System.Drawing.Color structure and is equivalent to this
System.Drawing.Color structure.
obj: The object to test.
Returns: true if obj is a System.Drawing.Color structure equivalent to this System.Drawing.Color
structure; otherwise,false.
"""
pass
@staticmethod
def from_argb(*__args):
"""
FromArgb(alpha: int,baseColor: Color) -> Color
Creates a System.Drawing.Color structure from the specified System.Drawing.Color structure,but
with the new specified alpha value. Although this method allows a 32-bit value to be passed for
the alpha value,the value is limited to 8 bits.
alpha: The alpha value for the new System.Drawing.Color. Valid values are 0 through 255.
baseColor: The System.Drawing.Color from which to create the new System.Drawing.Color.
Returns: The System.Drawing.Color that this method creates.
FromArgb(red: int,green: int,blue: int) -> Color
Creates a System.Drawing.Color structure from the specified 8-bit color values (red,green,and
blue). The alpha value is implicitly 255 (fully opaque). Although this method allows a 32-bit
value to be passed for each color component,the value of each component is limited to 8 bits.
red: The red component value for the new System.Drawing.Color. Valid values are 0 through 255.
green: The green component value for the new System.Drawing.Color. Valid values are 0 through 255.
blue: The blue component value for the new System.Drawing.Color. Valid values are 0 through 255.
Returns: The System.Drawing.Color that this method creates.
FromArgb(argb: int) -> Color
Creates a System.Drawing.Color structure from a 32-bit ARGB value.
argb: A value specifying the 32-bit ARGB value.
Returns: The System.Drawing.Color structure that this method creates.
FromArgb(alpha: int,red: int,green: int,blue: int) -> Color
Creates a System.Drawing.Color structure from the four ARGB component (alpha,red,green,and
blue) values. Although this method allows a 32-bit value to be passed for each component,the
value of each component is limited to 8 bits.
alpha: The alpha component. Valid values are 0 through 255.
red: The red component. Valid values are 0 through 255.
green: The green component. Valid values are 0 through 255.
blue: The blue component. Valid values are 0 through 255.
Returns: The System.Drawing.Color that this method creates.
"""
pass
@staticmethod
def from_known_color(color):
"""
FromKnownColor(color: KnownColor) -> Color
Creates a System.Drawing.Color structure from the specified predefined color.
color: An element of the System.Drawing.KnownColor enumeration.
Returns: The System.Drawing.Color that this method creates.
"""
pass
@staticmethod
def from_name(name):
"""
FromName(name: str) -> Color
Creates a System.Drawing.Color structure from the specified name of a predefined color.
name: A string that is the name of a predefined color. Valid names are the same as the names of the
elements of the System.Drawing.KnownColor enumeration.
Returns: The System.Drawing.Color that this method creates.
"""
pass
def get_brightness(self):
"""
GetBrightness(self: Color) -> Single
Gets the hue-saturation-brightness (HSB) brightness value for this System.Drawing.Color
structure.
Returns: The brightness of this System.Drawing.Color. The brightness ranges from 0.0 through 1.0,where
0.0 represents black and 1.0 represents white.
"""
pass
def get_hash_code(self):
"""
GetHashCode(self: Color) -> int
Returns a hash code for this System.Drawing.Color structure.
Returns: An integer value that specifies the hash code for this System.Drawing.Color.
"""
pass
def get_hue(self):
"""
GetHue(self: Color) -> Single
Gets the hue-saturation-brightness (HSB) hue value,in degrees,for this System.Drawing.Color
structure.
Returns: The hue,in degrees,of this System.Drawing.Color. The hue is measured in degrees,ranging from
0.0 through 360.0,in HSB color space.
"""
pass
def get_saturation(self):
"""
GetSaturation(self: Color) -> Single
Gets the hue-saturation-brightness (HSB) saturation value for this System.Drawing.Color
structure.
Returns: The saturation of this System.Drawing.Color. The saturation ranges from 0.0 through 1.0,where
0.0 is grayscale and 1.0 is the most saturated.
"""
pass
def to_argb(self):
"""
ToArgb(self: Color) -> int
Gets the 32-bit ARGB value of this System.Drawing.Color structure.
Returns: The 32-bit ARGB value of this System.Drawing.Color.
"""
pass
def to_known_color(self):
"""
ToKnownColor(self: Color) -> KnownColor
Gets the System.Drawing.KnownColor value of this System.Drawing.Color structure.
Returns: An element of the System.Drawing.KnownColor enumeration,if the System.Drawing.Color is created
from a predefined color by using either the System.Drawing.Color.FromName(System.String) method
or the System.Drawing.Color.FromKnownColor(System.Drawing.KnownColor) method; otherwise,0.
"""
pass
def to_string(self):
"""
ToString(self: Color) -> str
Converts this System.Drawing.Color structure to a human-readable string.
Returns: A string that is the name of this System.Drawing.Color,if the System.Drawing.Color is created
from a predefined color by using either the System.Drawing.Color.FromName(System.String) method
or the System.Drawing.Color.FromKnownColor(System.Drawing.KnownColor) method; otherwise,a
string that consists of the ARGB component names and their values.
"""
pass
def __eq__(self, *args):
""" x.__eq__(y) <==> x==y """
pass
def __ne__(self, *args):
pass
a = property(lambda self: object(), lambda self, v: None, lambda self: None)
'Gets the alpha component value of this System.Drawing.Color structure.\n\n\n\nGet: A(self: Color) -> Byte\n\n\n\n'
b = property(lambda self: object(), lambda self, v: None, lambda self: None)
'Gets the blue component value of this System.Drawing.Color structure.\n\n\n\nGet: B(self: Color) -> Byte\n\n\n\n'
g = property(lambda self: object(), lambda self, v: None, lambda self: None)
'Gets the green component value of this System.Drawing.Color structure.\n\n\n\nGet: G(self: Color) -> Byte\n\n\n\n'
is_empty = property(lambda self: object(), lambda self, v: None, lambda self: None)
'Specifies whether this System.Drawing.Color structure is uninitialized.\n\n\n\nGet: IsEmpty(self: Color) -> bool\n\n\n\n'
is_known_color = property(lambda self: object(), lambda self, v: None, lambda self: None)
'Gets a value indicating whether this System.Drawing.Color structure is a predefined color. Predefined colors are represented by the elements of the System.Drawing.KnownColor enumeration.\n\n\n\nGet: IsKnownColor(self: Color) -> bool\n\n\n\n'
is_named_color = property(lambda self: object(), lambda self, v: None, lambda self: None)
'Gets a value indicating whether this System.Drawing.Color structure is a named color or a member of the System.Drawing.KnownColor enumeration.\n\n\n\nGet: IsNamedColor(self: Color) -> bool\n\n\n\n'
is_system_color = property(lambda self: object(), lambda self, v: None, lambda self: None)
'Gets a value indicating whether this System.Drawing.Color structure is a system color. A system color is a color that is used in a Windows display element. System colors are represented by elements of the System.Drawing.KnownColor enumeration.\n\n\n\nGet: IsSystemColor(self: Color) -> bool\n\n\n\n'
name = property(lambda self: object(), lambda self, v: None, lambda self: None)
'Gets the name of this System.Drawing.Color.\n\n\n\nGet: Name(self: Color) -> str\n\n\n\n'
r = property(lambda self: object(), lambda self, v: None, lambda self: None)
'Gets the red component value of this System.Drawing.Color structure.\n\n\n\nGet: R(self: Color) -> Byte\n\n\n\n'
alice_blue = None
antique_white = None
aqua = None
aquamarine = None
azure = None
beige = None
bisque = None
black = None
blanched_almond = None
blue = None
blue_violet = None
brown = None
burly_wood = None
cadet_blue = None
chartreuse = None
chocolate = None
coral = None
cornflower_blue = None
cornsilk = None
crimson = None
cyan = None
dark_blue = None
dark_cyan = None
dark_goldenrod = None
dark_gray = None
dark_green = None
dark_khaki = None
dark_magenta = None
dark_olive_green = None
dark_orange = None
dark_orchid = None
dark_red = None
dark_salmon = None
dark_sea_green = None
dark_slate_blue = None
dark_slate_gray = None
dark_turquoise = None
dark_violet = None
deep_pink = None
deep_sky_blue = None
dim_gray = None
dodger_blue = None
empty = None
firebrick = None
floral_white = None
forest_green = None
fuchsia = None
gainsboro = None
ghost_white = None
gold = None
goldenrod = None
gray = None
green = None
green_yellow = None
honeydew = None
hot_pink = None
indian_red = None
indigo = None
ivory = None
khaki = None
lavender = None
lavender_blush = None
lawn_green = None
lemon_chiffon = None
light_blue = None
light_coral = None
light_cyan = None
light_goldenrod_yellow = None
light_gray = None
light_green = None
light_pink = None
light_salmon = None
light_sea_green = None
light_sky_blue = None
light_slate_gray = None
light_steel_blue = None
light_yellow = None
lime = None
lime_green = None
linen = None
magenta = None
maroon = None
medium_aquamarine = None
medium_blue = None
medium_orchid = None
medium_purple = None
medium_sea_green = None
medium_slate_blue = None
medium_spring_green = None
medium_turquoise = None
medium_violet_red = None
midnight_blue = None
mint_cream = None
misty_rose = None
moccasin = None
navajo_white = None
navy = None
old_lace = None
olive = None
olive_drab = None
orange = None
orange_red = None
orchid = None
pale_goldenrod = None
pale_green = None
pale_turquoise = None
pale_violet_red = None
papaya_whip = None
peach_puff = None
peru = None
pink = None
plum = None
powder_blue = None
purple = None
red = None
rosy_brown = None
royal_blue = None
saddle_brown = None
salmon = None
sandy_brown = None
sea_green = None
sea_shell = None
sienna = None
silver = None
sky_blue = None
slate_blue = None
slate_gray = None
snow = None
spring_green = None
steel_blue = None
tan = None
teal = None
thistle = None
tomato = None
transparent = None
turquoise = None
violet = None
wheat = None
white = None
white_smoke = None
yellow = None
yellow_green = None
|
class Jaro:
def similarity(self, s, t):
if not s and not t:
return 1
if not s or not t:
return 0
if len(s) > len(t):
s, t = t, s
max_dist = (len(t) // 2) - 1
s_matched = []
t_matched = []
matches = 0
for i, c in enumerate(s):
for j in range(max(0, i-max_dist), min(len(t), i+max_dist+1)):
if c == t[j]:
matches += 1
s_matched.append(c)
t_matched.insert(j, c)
break
transpositions = 0
for m in range(0, len(s_matched)):
if(s_matched[m] != t_matched[m]):
transpositions += 1
return (matches/len(s) + matches / len(t) + (matches-(transpositions//2)) / matches) / 3
def dissimilarity(self, s, t):
return 1 - self.similarity(s, t)
def __repr__(self):
return 'Jaro'
|
class Jaro:
def similarity(self, s, t):
if not s and (not t):
return 1
if not s or not t:
return 0
if len(s) > len(t):
(s, t) = (t, s)
max_dist = len(t) // 2 - 1
s_matched = []
t_matched = []
matches = 0
for (i, c) in enumerate(s):
for j in range(max(0, i - max_dist), min(len(t), i + max_dist + 1)):
if c == t[j]:
matches += 1
s_matched.append(c)
t_matched.insert(j, c)
break
transpositions = 0
for m in range(0, len(s_matched)):
if s_matched[m] != t_matched[m]:
transpositions += 1
return (matches / len(s) + matches / len(t) + (matches - transpositions // 2) / matches) / 3
def dissimilarity(self, s, t):
return 1 - self.similarity(s, t)
def __repr__(self):
return 'Jaro'
|
class Smartphone:
def gallary(self):
print("Gallary")
def browser(self):
print("Browser")
def app_store(self):
print("App Store")
x = Smartphone()
x.gallary()
x.browser()
x.gallary()
|
class Smartphone:
def gallary(self):
print('Gallary')
def browser(self):
print('Browser')
def app_store(self):
print('App Store')
x = smartphone()
x.gallary()
x.browser()
x.gallary()
|
class Solution:
"""
@param nums: The number array
@return: Return the single number
"""
def getSingleNumber(self, nums):
n = len(nums)
if n == 1:
return nums[0]
if nums[n // 2] == nums[n - n // 2]:
if n // 2 % 2 == 0:
return self.getSingleNumber(nums[n - n // 2 + 1:])
else:
return self.getSingleNumber(nums[: n // 2])
else:
if n // 2 % 2 == 0:
if nums[n // 2] == nums[n // 2 - 1]:
return self.getSingleNumber(nums[: n // 2 - 1])
else:
print(nums[n // 2 % 2:])
return self.getSingleNumber(nums[n // 2:])
else:
if nums[n // 2] == nums[n // 2- 1]:
return self.getSingleNumber(nums[n // 2 + 1:])
else:
return self.getSingleNumber(nums[: n // 2])
|
class Solution:
"""
@param nums: The number array
@return: Return the single number
"""
def get_single_number(self, nums):
n = len(nums)
if n == 1:
return nums[0]
if nums[n // 2] == nums[n - n // 2]:
if n // 2 % 2 == 0:
return self.getSingleNumber(nums[n - n // 2 + 1:])
else:
return self.getSingleNumber(nums[:n // 2])
elif n // 2 % 2 == 0:
if nums[n // 2] == nums[n // 2 - 1]:
return self.getSingleNumber(nums[:n // 2 - 1])
else:
print(nums[n // 2 % 2:])
return self.getSingleNumber(nums[n // 2:])
elif nums[n // 2] == nums[n // 2 - 1]:
return self.getSingleNumber(nums[n // 2 + 1:])
else:
return self.getSingleNumber(nums[:n // 2])
|
'''
@file ion/core/__init__.py
@mainpage Overview
@section intro Introduction
This is the repository that defines the COI services.
@note Initially, all ION services are defined here and later moved to
subsystem repositories.
COI services are intended to be deployed as part of the ION system launch.
Services are deployed in pyon capability containers.
@see Architecture page at https://confluence.oceanobservatories.org/display/syseng/CIAD+COI+Common+Operating+Infrastructure
@see COI Services definition at https://confluence.oceanobservatories.org/display/syseng/CIAD+OV+Services
'''
__author__ = 'mmeisinger'
|
"""
@file ion/core/__init__.py
@mainpage Overview
@section intro Introduction
This is the repository that defines the COI services.
@note Initially, all ION services are defined here and later moved to
subsystem repositories.
COI services are intended to be deployed as part of the ION system launch.
Services are deployed in pyon capability containers.
@see Architecture page at https://confluence.oceanobservatories.org/display/syseng/CIAD+COI+Common+Operating+Infrastructure
@see COI Services definition at https://confluence.oceanobservatories.org/display/syseng/CIAD+OV+Services
"""
__author__ = 'mmeisinger'
|
PATH_IMAGE = "img"
BACKGROUND_IMAGE = 'background'
LOOT_IMAGE = 'point_5'
GHOST_RED_IMAGE = 'ghost_red_30'
GHOST_BLUE_IMAGE = 'ghost_blue_30'
GHOST_PINK_IMAGE = 'ghost_pink_30'
GHOST_ORANGE_IMAGE = 'ghost_orange_30'
FONT_REGULAR = 'couriernew_regular.ttf'
FONT_BOLD = 'couriernew_bold.ttf'
PACMAN_SIZE = (30, 30)
GHOST_SIZE = (30, 30)
LOOT_VERTICAL_SPACE = 18
LOOT_HORIZONTAL_SPACE = 22.5
SCREEN_SIZE = (700, 700)
|
path_image = 'img'
background_image = 'background'
loot_image = 'point_5'
ghost_red_image = 'ghost_red_30'
ghost_blue_image = 'ghost_blue_30'
ghost_pink_image = 'ghost_pink_30'
ghost_orange_image = 'ghost_orange_30'
font_regular = 'couriernew_regular.ttf'
font_bold = 'couriernew_bold.ttf'
pacman_size = (30, 30)
ghost_size = (30, 30)
loot_vertical_space = 18
loot_horizontal_space = 22.5
screen_size = (700, 700)
|
"""
# @Time : 2020/9/17
# @Author : Jimou Chen
"""
def T(n):
if n == 1:
return 4
elif n > 1:
return 3 * T(n - 1)
def T(n):
if n == 1:
return 1
elif n > 1:
return 2 * T(n // 3) + n
print(T(5))
|
"""
# @Time : 2020/9/17
# @Author : Jimou Chen
"""
def t(n):
if n == 1:
return 4
elif n > 1:
return 3 * t(n - 1)
def t(n):
if n == 1:
return 1
elif n > 1:
return 2 * t(n // 3) + n
print(t(5))
|
'''
Created on Sat 04/04/2020 11:55:38
99 Bottles of Beer
@author: MarsCandyBars
'''
class BottlesOfBeer():
def __init__(self):
'''
Description:
This method provides attributes for the main lyrics
of the song to make looping cleaner.
Args:
None.
Returns:
Attributes for the lyrics of '99 Bottles of Beer' up
to the last bottle.
'''
lyric1 = ('bottles of beer on the wall,')
self.lyric1 = lyric1
lyric2 = ('bottles of beer. Take one down and pass it around,')
self.lyric2 = lyric2
lyric3 = ('bottles of beer on the wall.\n')
self.lyric3 = lyric3
def lyric_print():
'''
Description:
This function provides looping for the main song
and adds the last 2 lines.
Args:
None.
Returns:
Prints the lyrics for the entire song.
'''
#Calling class BottlesOfBeer()
call = BottlesOfBeer()
#Setting counter for loop
beer_count = 99
for i in range(99, -1, -1):
if beer_count > 1:
print(beer_count, call.lyric1, beer_count, call.lyric2, (beer_count - 1), call.lyric3)
beer_count -= 1
#Exits if-statement in order to provide the last two lines of the song, whose format
#is different from the rest of the song.
else:
print(beer_count, 'bottle of beer on the wall,', beer_count, 'bottle of beer.',
'Take one down and pass it around, no more bottles of beer on the wall.\n')
beer_count = 99
print('No more bottles of beer on the wall, no more bottles of beer. Go to the',
'store and buy some more,', beer_count, 'bottles of beer on the wall.')
#Breaks from the loop at the end of the song.
break
#Calling lyric_print() function.
lyric_print()
|
"""
Created on Sat 04/04/2020 11:55:38
99 Bottles of Beer
@author: MarsCandyBars
"""
class Bottlesofbeer:
def __init__(self):
"""
Description:
This method provides attributes for the main lyrics
of the song to make looping cleaner.
Args:
None.
Returns:
Attributes for the lyrics of '99 Bottles of Beer' up
to the last bottle.
"""
lyric1 = 'bottles of beer on the wall,'
self.lyric1 = lyric1
lyric2 = 'bottles of beer. Take one down and pass it around,'
self.lyric2 = lyric2
lyric3 = 'bottles of beer on the wall.\n'
self.lyric3 = lyric3
def lyric_print():
"""
Description:
This function provides looping for the main song
and adds the last 2 lines.
Args:
None.
Returns:
Prints the lyrics for the entire song.
"""
call = bottles_of_beer()
beer_count = 99
for i in range(99, -1, -1):
if beer_count > 1:
print(beer_count, call.lyric1, beer_count, call.lyric2, beer_count - 1, call.lyric3)
beer_count -= 1
else:
print(beer_count, 'bottle of beer on the wall,', beer_count, 'bottle of beer.', 'Take one down and pass it around, no more bottles of beer on the wall.\n')
beer_count = 99
print('No more bottles of beer on the wall, no more bottles of beer. Go to the', 'store and buy some more,', beer_count, 'bottles of beer on the wall.')
break
lyric_print()
|
class Library:
def __init__(self, id, books, signup_days, book_p_day):
self.id = id
self.books = books
self.signup_days = signup_days
self.book_p_day = book_p_day
def score(self, books_so_far):
possible_reward = sum([self.books[id] for id in self.books.keys() if id not in books_so_far])
return possible_reward * self.book_p_day / self.signup_days
def score4(self, books_so_far):
possible_reward = sum([self.books[id] for id in self.books.keys() if id not in books_so_far])
return possible_reward * self.book_p_day / self.signup_days**3
def score2(self, books_so_far, days_left):
books = sorted(self.books.items(), key=lambda x: x[1], reverse=True)
n_books = int(days_left / self.book_p_day)
selected = []
i = 0
while n_books > 0 and i < len(books):
if books[i][0] not in books_so_far:
selected.append(books[i][1])
n_books -= 1
i += 1
return sum(selected) * self.book_p_day / self.signup_days
def score3(self, books_so_far):
possible_reward = sum([self.books[id] for id in self.books.keys() if id not in books_so_far])
return possible_reward * self.book_p_day / self.signup_days**6
def score5(self, books_so_far):
scores = [self.books[id] for id in self.books.keys() if id not in books_so_far]
possible_reward = sum(scores)
return 0 if len(scores)==0 else possible_reward * (len(scores) - self.signup_days) / len(scores)
|
class Library:
def __init__(self, id, books, signup_days, book_p_day):
self.id = id
self.books = books
self.signup_days = signup_days
self.book_p_day = book_p_day
def score(self, books_so_far):
possible_reward = sum([self.books[id] for id in self.books.keys() if id not in books_so_far])
return possible_reward * self.book_p_day / self.signup_days
def score4(self, books_so_far):
possible_reward = sum([self.books[id] for id in self.books.keys() if id not in books_so_far])
return possible_reward * self.book_p_day / self.signup_days ** 3
def score2(self, books_so_far, days_left):
books = sorted(self.books.items(), key=lambda x: x[1], reverse=True)
n_books = int(days_left / self.book_p_day)
selected = []
i = 0
while n_books > 0 and i < len(books):
if books[i][0] not in books_so_far:
selected.append(books[i][1])
n_books -= 1
i += 1
return sum(selected) * self.book_p_day / self.signup_days
def score3(self, books_so_far):
possible_reward = sum([self.books[id] for id in self.books.keys() if id not in books_so_far])
return possible_reward * self.book_p_day / self.signup_days ** 6
def score5(self, books_so_far):
scores = [self.books[id] for id in self.books.keys() if id not in books_so_far]
possible_reward = sum(scores)
return 0 if len(scores) == 0 else possible_reward * (len(scores) - self.signup_days) / len(scores)
|
#Write a program that prompts for a file name, then opens that file and reads through the file, looking for lines of the form:
#X-DSPAM-Confidence: 0.8475
#Count these lines and extract the floating point values from each of the lines and compute the average of those values
#and produce an output as shown below. Do not use the sum() function or a variable named sum in your solution.
#You can download the sample data at http://www.py4e.com/code3/mbox-short.txt when you are testing below enter mbox-short.txt as the file name
# Use the file name mbox-short.txt as the file name
fname = input("Enter file name: ")
fh = open(fname)
count = 0
add = 0
for line in fh:
if not line.startswith("X-DSPAM-Confidence:") :
continue
bnpos = line.find('0')
host = line[bnpos:]
fhost = float(host)
count = count +1
add = add + fhost
print("Average spam confidence",add/count)
|
fname = input('Enter file name: ')
fh = open(fname)
count = 0
add = 0
for line in fh:
if not line.startswith('X-DSPAM-Confidence:'):
continue
bnpos = line.find('0')
host = line[bnpos:]
fhost = float(host)
count = count + 1
add = add + fhost
print('Average spam confidence', add / count)
|
'''
'''
__version__ = '0.1-dev'
device_config_name = 'Devices'
exp_config_name = 'experiment'
|
"""
"""
__version__ = '0.1-dev'
device_config_name = 'Devices'
exp_config_name = 'experiment'
|
#
# Copyright 2015 Tickle Labs, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
class LocalizedString(object):
def __init__(self, source, localized=None, comment=None):
"""
:type source: str
:type localized: str
:type comment: str
:rtype: LocalizedString
"""
assert source, 'Source could not be none'
self.source = source
""":type: str"""
self._localized = localized or ''
""":type: str"""
self.comment = comment
""":type: str"""
@property
def localized(self):
"""
:rtype: str
"""
return self._localized or self.source
@localized.setter
def localized(self, new_localized):
"""
:type new_localized: str
"""
self._localized = new_localized
@property
def stored_localized(self):
"""
:rtype: str
"""
return self._localized
def __str__(self):
return repr(self)
def __repr__(self):
escaped_source = self.source.replace('"', r'\"')
escaped_localized = self._localized.replace('"', r'\"') if self._localized else ''
result = '"{escaped_source}" = "{escaped_localized}";'.format(**locals())
if self.comment:
result = '/* {} */\n{}'.format(self.comment, result)
return result
def __eq__(self, other):
if not isinstance(other, LocalizedString):
return False
else:
return self.source == other.source and self._localized == other._localized and self.comment == other.comment
|
class Localizedstring(object):
def __init__(self, source, localized=None, comment=None):
"""
:type source: str
:type localized: str
:type comment: str
:rtype: LocalizedString
"""
assert source, 'Source could not be none'
self.source = source
':type: str'
self._localized = localized or ''
':type: str'
self.comment = comment
':type: str'
@property
def localized(self):
"""
:rtype: str
"""
return self._localized or self.source
@localized.setter
def localized(self, new_localized):
"""
:type new_localized: str
"""
self._localized = new_localized
@property
def stored_localized(self):
"""
:rtype: str
"""
return self._localized
def __str__(self):
return repr(self)
def __repr__(self):
escaped_source = self.source.replace('"', '\\"')
escaped_localized = self._localized.replace('"', '\\"') if self._localized else ''
result = '"{escaped_source}" = "{escaped_localized}";'.format(**locals())
if self.comment:
result = '/* {} */\n{}'.format(self.comment, result)
return result
def __eq__(self, other):
if not isinstance(other, LocalizedString):
return False
else:
return self.source == other.source and self._localized == other._localized and (self.comment == other.comment)
|
# Python code to demonstrate naive
# method to compute gcd ( Euclidean algo )
def computeGCD(x, y):
while(y):
x, y = y, x % y
return x
a = 60
b= 48
# prints 12
print ("The gcd of 60 and 48 is : ",end="")
print (computeGCD(60,48))
|
def compute_gcd(x, y):
while y:
(x, y) = (y, x % y)
return x
a = 60
b = 48
print('The gcd of 60 and 48 is : ', end='')
print(compute_gcd(60, 48))
|
class Solution:
def intersection(self, nums1, nums2):
"""
:type nums1: List[int]
:type nums2: List[int]
:rtype: List[int]
"""
return list(set(nums1) & set(nums2))
if __name__ == '__main__':
solution = Solution()
print(solution.intersection([1, 2, 2, 1], [2, 2]))
else:
pass
|
class Solution:
def intersection(self, nums1, nums2):
"""
:type nums1: List[int]
:type nums2: List[int]
:rtype: List[int]
"""
return list(set(nums1) & set(nums2))
if __name__ == '__main__':
solution = solution()
print(solution.intersection([1, 2, 2, 1], [2, 2]))
else:
pass
|
"""Blank file for Python transversal.
This can be deleted or renamed to store the source code of your project.
"""
|
"""Blank file for Python transversal.
This can be deleted or renamed to store the source code of your project.
"""
|
# URI Online Judge 2787
L = int(input())
C = int(input())
if L % 2 == 0:
if C % 2 == 0:
print(1)
else:
print(0)
else:
if C % 2 == 0:
print(0)
else:
print(1)
|
l = int(input())
c = int(input())
if L % 2 == 0:
if C % 2 == 0:
print(1)
else:
print(0)
elif C % 2 == 0:
print(0)
else:
print(1)
|
def convert_string_to_int(list_a):
new_list = []
for item in list_a:
num = int(item)
new_list.append(num)
return new_list
str_num_list = input().split(",")
rotate_times = int(input())
int_list = convert_string_to_int(str_num_list)
len_of_list = len(int_list)
val = rotate_times % len_of_list
first_part = int_list[0:val]
second_part = int_list[val:]
second_part.extend(first_part)
print(second_part)
|
def convert_string_to_int(list_a):
new_list = []
for item in list_a:
num = int(item)
new_list.append(num)
return new_list
str_num_list = input().split(',')
rotate_times = int(input())
int_list = convert_string_to_int(str_num_list)
len_of_list = len(int_list)
val = rotate_times % len_of_list
first_part = int_list[0:val]
second_part = int_list[val:]
second_part.extend(first_part)
print(second_part)
|
class Publisher:
def __init__(self):
self.observers = []
def add(self, observer):
if observer not in self.observers:
self.observers.append(observer)
else:
print('Failed to add: {}'.format(observer))
def remove(self, observer):
try:
self.observers.remove(observer)
except ValueError:
print('Failed to remove: {}'.format(observer))
def notify(self):
[o.notify(self) for o in self.observers]
class DefaultFormatter(Publisher):
def __init__(self, name):
Publisher.__init__(self)
self.name = name
self._data = 0
def __str__(self):
return "{}: '{}' has data = {}".format(type(self).__name__, self.name, self._data)
@property
def data(self):
return self._data
@data.setter
def data(self, new_value):
try:
self._data = int(new_value)
except ValueError as e:
print('Error: {}'.format(e))
self.notify()
class HexFormatter:
def notify(self, publisher):
print("{}: '{}' has now hex data = {}".format(type(self).__name__, publisher.name, hex(publisher.data)))
class BinaryFormatter:
def notify(self, publisher):
print("{}: '{}' has now bin data = {}".format(type(self).__name__, publisher.name, bin(publisher.data)))
def main():
df = DefaultFormatter('test1')
print(df)
print()
hf = HexFormatter()
df.add(hf)
df.data = 3
print(df)
print()
bf = BinaryFormatter()
df.add(bf)
df.data = 21
print(df)
print()
df.remove(hf)
df.data = 40
print(df)
print()
df.remove(hf)
df.add(bf)
df.data = 'hello'
print(df)
print()
df.data = 15.8
print(df)
if __name__ == '__main__':
main()
|
class Publisher:
def __init__(self):
self.observers = []
def add(self, observer):
if observer not in self.observers:
self.observers.append(observer)
else:
print('Failed to add: {}'.format(observer))
def remove(self, observer):
try:
self.observers.remove(observer)
except ValueError:
print('Failed to remove: {}'.format(observer))
def notify(self):
[o.notify(self) for o in self.observers]
class Defaultformatter(Publisher):
def __init__(self, name):
Publisher.__init__(self)
self.name = name
self._data = 0
def __str__(self):
return "{}: '{}' has data = {}".format(type(self).__name__, self.name, self._data)
@property
def data(self):
return self._data
@data.setter
def data(self, new_value):
try:
self._data = int(new_value)
except ValueError as e:
print('Error: {}'.format(e))
self.notify()
class Hexformatter:
def notify(self, publisher):
print("{}: '{}' has now hex data = {}".format(type(self).__name__, publisher.name, hex(publisher.data)))
class Binaryformatter:
def notify(self, publisher):
print("{}: '{}' has now bin data = {}".format(type(self).__name__, publisher.name, bin(publisher.data)))
def main():
df = default_formatter('test1')
print(df)
print()
hf = hex_formatter()
df.add(hf)
df.data = 3
print(df)
print()
bf = binary_formatter()
df.add(bf)
df.data = 21
print(df)
print()
df.remove(hf)
df.data = 40
print(df)
print()
df.remove(hf)
df.add(bf)
df.data = 'hello'
print(df)
print()
df.data = 15.8
print(df)
if __name__ == '__main__':
main()
|
Version = "5.6.5"
if __name__ == "__main__":
print (Version)
|
version = '5.6.5'
if __name__ == '__main__':
print(Version)
|
'''Implements /src/Resource/index.ts'''
class Resource:
''' Enum implemenation '''
class Types:
WOOD = 'wood'
COAL = 'coal'
URANIUM = 'uranium'
def __init__(self, type, amount) -> None:
self.type = type
self.amount = amount
|
"""Implements /src/Resource/index.ts"""
class Resource:
""" Enum implemenation """
class Types:
wood = 'wood'
coal = 'coal'
uranium = 'uranium'
def __init__(self, type, amount) -> None:
self.type = type
self.amount = amount
|
class RNNConfig(object):
"""
Holds logistic regression model hyperparams.
:param height: image height
:type heights: int
:param width: image width
:type width: int
:param channels: image channels
:type channels: int
:param batch_size: batch size for training
:type batch_size: int
:param epochs: number of epochs
:type epochs: int
:param save_step: when step % save_step == 0, the model
parameters are saved.
:type save_step: int
:param learning_rate: learning rate for the optimizer
:type learning_rate: float
:param momentum: momentum param
:type momentum: float
"""
def __init__(self,
vocab_size=25000,
batch_size=32,
embedding_dim=100,
rnn_dim=100,
output_dim=2,
layers=1,
epochs=8,
learning_rate=0.01,
momentum=0.2,
bidirectional=False,
opt="sgd",
drop=0):
self.vocab_size = vocab_size
self.batch_size = batch_size
self.embedding_dim = embedding_dim
self.rnn_dim = rnn_dim
self.layers = layers
self.output_dim = output_dim
self.epochs = epochs
self.learning_rate = learning_rate
self.momentum = momentum
self.bidirectional = bidirectional
self.opt = opt
self.drop = drop
def __str__(self):
"""
Get all attributs values.
:return: all hyperparams as a string
:rtype: str
"""
status = "vocab_size = {}\n".format(self.vocab_size)
status += "batch_size = {}\n".format(self.batch_size)
status += "embedding_dim = {}\n".format(self.embedding_dim)
status += "rnn_dim = {}\n".format(self.rnn_dim)
status += "layers = {}\n".format(self.layers)
status += "output_dim = {}\n".format(self.output_dim)
status += "epochs = {}\n".format(self.epochs)
status += "learning_rate = {}\n".format(self.learning_rate)
status += "momentum = {}\n".format(self.momentum)
status += "bidirectional = {}\n".format(self.bidirectional)
status += "opt = {}\n".format(self.opt)
status += "drop = {}\n".format(self.drop)
return status
|
class Rnnconfig(object):
"""
Holds logistic regression model hyperparams.
:param height: image height
:type heights: int
:param width: image width
:type width: int
:param channels: image channels
:type channels: int
:param batch_size: batch size for training
:type batch_size: int
:param epochs: number of epochs
:type epochs: int
:param save_step: when step % save_step == 0, the model
parameters are saved.
:type save_step: int
:param learning_rate: learning rate for the optimizer
:type learning_rate: float
:param momentum: momentum param
:type momentum: float
"""
def __init__(self, vocab_size=25000, batch_size=32, embedding_dim=100, rnn_dim=100, output_dim=2, layers=1, epochs=8, learning_rate=0.01, momentum=0.2, bidirectional=False, opt='sgd', drop=0):
self.vocab_size = vocab_size
self.batch_size = batch_size
self.embedding_dim = embedding_dim
self.rnn_dim = rnn_dim
self.layers = layers
self.output_dim = output_dim
self.epochs = epochs
self.learning_rate = learning_rate
self.momentum = momentum
self.bidirectional = bidirectional
self.opt = opt
self.drop = drop
def __str__(self):
"""
Get all attributs values.
:return: all hyperparams as a string
:rtype: str
"""
status = 'vocab_size = {}\n'.format(self.vocab_size)
status += 'batch_size = {}\n'.format(self.batch_size)
status += 'embedding_dim = {}\n'.format(self.embedding_dim)
status += 'rnn_dim = {}\n'.format(self.rnn_dim)
status += 'layers = {}\n'.format(self.layers)
status += 'output_dim = {}\n'.format(self.output_dim)
status += 'epochs = {}\n'.format(self.epochs)
status += 'learning_rate = {}\n'.format(self.learning_rate)
status += 'momentum = {}\n'.format(self.momentum)
status += 'bidirectional = {}\n'.format(self.bidirectional)
status += 'opt = {}\n'.format(self.opt)
status += 'drop = {}\n'.format(self.drop)
return status
|
t = int(input())
i=0
while i < t:
st = str(input())
length = len(st)
j = 0
cnt = 0
while j < length:
num = int(st[j])
#print(num)
if num == 4:
cnt = cnt + 1
j=j+1
print(cnt)
i=i+1
|
t = int(input())
i = 0
while i < t:
st = str(input())
length = len(st)
j = 0
cnt = 0
while j < length:
num = int(st[j])
if num == 4:
cnt = cnt + 1
j = j + 1
print(cnt)
i = i + 1
|
#
# @lc app=leetcode id=693 lang=python3
#
# [693] Binary Number with Alternating Bits
#
# https://leetcode.com/problems/binary-number-with-alternating-bits/description/
#
# algorithms
# Easy (58.47%)
# Likes: 359
# Dislikes: 74
# Total Accepted: 52.4K
# Total Submissions: 89.1K
# Testcase Example: '5'
#
# Given a positive integer, check whether it has alternating bits: namely, if
# two adjacent bits will always have different values.
#
# Example 1:
#
# Input: 5
# Output: True
# Explanation:
# The binary representation of 5 is: 101
#
#
#
# Example 2:
#
# Input: 7
# Output: False
# Explanation:
# The binary representation of 7 is: 111.
#
#
#
# Example 3:
#
# Input: 11
# Output: False
# Explanation:
# The binary representation of 11 is: 1011.
#
#
#
# Example 4:
#
# Input: 10
# Output: True
# Explanation:
# The binary representation of 10 is: 1010.
#
#
#
# @lc code=start
class Solution:
def hasAlternatingBits(self, n: int) -> bool:
b = list(bin(n)[2:])
if len(b)<2:
return True
else:
return b[0]!=b[1] and len(set(b[::2]))==1 and len(set(b[1::2]))==1
# @lc code=end
|
class Solution:
def has_alternating_bits(self, n: int) -> bool:
b = list(bin(n)[2:])
if len(b) < 2:
return True
else:
return b[0] != b[1] and len(set(b[::2])) == 1 and (len(set(b[1::2])) == 1)
|
# Copyright 2013 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.
{
'targets': [
{
'target_name': 'memconsumer',
'type': 'none',
'dependencies': [
'memconsumer_apk',
],
},
{
'target_name': 'memconsumer_apk',
'type': 'none',
'variables': {
'apk_name': 'MemConsumer',
'java_in_dir': 'java',
'resource_dir': 'java/res',
'native_lib_target': 'libmemconsumer',
},
'dependencies': [
'libmemconsumer',
],
'includes': [ '../../../build/java_apk.gypi' ],
},
{
'target_name': 'libmemconsumer',
'type': 'shared_library',
'sources': [
'memconsumer_hook.cc',
],
'libraries': [
'-llog',
],
},
],
}
|
{'targets': [{'target_name': 'memconsumer', 'type': 'none', 'dependencies': ['memconsumer_apk']}, {'target_name': 'memconsumer_apk', 'type': 'none', 'variables': {'apk_name': 'MemConsumer', 'java_in_dir': 'java', 'resource_dir': 'java/res', 'native_lib_target': 'libmemconsumer'}, 'dependencies': ['libmemconsumer'], 'includes': ['../../../build/java_apk.gypi']}, {'target_name': 'libmemconsumer', 'type': 'shared_library', 'sources': ['memconsumer_hook.cc'], 'libraries': ['-llog']}]}
|
# https://leetcode.com/problems/contains-duplicate
class Solution:
def containsDuplicate(self, nums):
hs = set()
for num in nums:
hs.add(num)
return len(hs) != len(nums)
|
class Solution:
def contains_duplicate(self, nums):
hs = set()
for num in nums:
hs.add(num)
return len(hs) != len(nums)
|
class Emitter:
"""This class implements a simple event emitter.
Args:
emitterIsEnabled: enable callbacks execution?
Example usage::
callback = lambda message: print(message)
event = Emitter()
event.on('ready', callback)
event.emit('ready', 'Finished!')
"""
def __init__(self, emitterIsEnabled: bool = True, *args, **kwargs):
self.callbacks = None
self.emitterIsEnabled = emitterIsEnabled
def on(self, eventName: str = "", callback=None):
"""It sets the callback functions.
Args:
eventName: name of the event
callback: function
"""
if self.callbacks is None:
self.callbacks = {}
if eventName in self.callbacks:
self.callbacks[eventName].append(callback)
else:
self.callbacks[eventName] = [callback]
def emit(self, eventName: str = "", *args, **kwargs):
"""It emits an event, and calls the corresponding callback function.
Args:
eventName: name of the event.
"""
if self.emitterIsEnabled:
if self.callbacks is not None and len(eventName) > 0:
if eventName in self.callbacks:
for callback in self.callbacks[eventName]:
if callback.__code__.co_argcount > 0:
callback(*args, **kwargs)
else:
callback()
def clearEvent(self, eventName: str):
"""It clears the callbacks associated to a specific event name.
Args:
eventName: name of the event.
"""
if eventName in self.callbacks:
del self.callbacks[eventName]
def clearAllEvents(self):
"""It clears all events."""
self.callbacks = None
def disableEvents(self):
"""It disables emit function."""
self.emitterIsEnabled = False
def enableEvents(self):
"""It enables emit function."""
self.emitterIsEnabled = True
|
class Emitter:
"""This class implements a simple event emitter.
Args:
emitterIsEnabled: enable callbacks execution?
Example usage::
callback = lambda message: print(message)
event = Emitter()
event.on('ready', callback)
event.emit('ready', 'Finished!')
"""
def __init__(self, emitterIsEnabled: bool=True, *args, **kwargs):
self.callbacks = None
self.emitterIsEnabled = emitterIsEnabled
def on(self, eventName: str='', callback=None):
"""It sets the callback functions.
Args:
eventName: name of the event
callback: function
"""
if self.callbacks is None:
self.callbacks = {}
if eventName in self.callbacks:
self.callbacks[eventName].append(callback)
else:
self.callbacks[eventName] = [callback]
def emit(self, eventName: str='', *args, **kwargs):
"""It emits an event, and calls the corresponding callback function.
Args:
eventName: name of the event.
"""
if self.emitterIsEnabled:
if self.callbacks is not None and len(eventName) > 0:
if eventName in self.callbacks:
for callback in self.callbacks[eventName]:
if callback.__code__.co_argcount > 0:
callback(*args, **kwargs)
else:
callback()
def clear_event(self, eventName: str):
"""It clears the callbacks associated to a specific event name.
Args:
eventName: name of the event.
"""
if eventName in self.callbacks:
del self.callbacks[eventName]
def clear_all_events(self):
"""It clears all events."""
self.callbacks = None
def disable_events(self):
"""It disables emit function."""
self.emitterIsEnabled = False
def enable_events(self):
"""It enables emit function."""
self.emitterIsEnabled = True
|
""" Class to count the inversion count using merge sort"""
class InversionCount:
def count(self, A: [int]) -> [int]:
""" Count and return the array containing the count of each element """
index_array = []
rc_arr = []
for ind in range(0, len(A)):
index_array.append(ind)
rc_arr.append(0)
self.sort(A, index_array, 0, len(index_array) - 1, rc_arr)
return rc_arr
def merge(self, A, ind, p, q, r, rc_array):
""" This method does the same work as mergeSort but we will be checking for the inversion and increase the
count """
left = ind[p:q + 1]
right = ind[q + 1:r + 1]
i = 0
j = 0
ic = 0
k = p
while i < len(left) and j < len(right):
if A[left[i]] > A[right[j]]:
ind[k] = right[j]
ic += 1
k += 1
j += 1
else:
rc_array[left[i]] = rc_array[left[i]] + ic
ind[k] = left[i]
i += 1
k += 1
while i < len(left):
rc_array[left[i]] = rc_array[left[i]] + ic
ind[k] = left[i]
k += 1
i += 1
while j < len(right):
ind[k] = right[j]
k += 1
j += 1
def sort(self, A, index, p, r, rc_arr):
"""Function to Divide the input Array into equal sub-arrays"""
if p < r:
q = (p + r) // 2
self.sort(A, index, p, q, rc_arr)
self.sort(A, index, q + 1, r, rc_arr)
self.merge(A, index, p, q, r, rc_arr)
if __name__ == "__main__":
A = [5, 10, 4, 7, 9, 2, 1, 0]
print(InversionCount().count(A))
|
""" Class to count the inversion count using merge sort"""
class Inversioncount:
def count(self, A: [int]) -> [int]:
""" Count and return the array containing the count of each element """
index_array = []
rc_arr = []
for ind in range(0, len(A)):
index_array.append(ind)
rc_arr.append(0)
self.sort(A, index_array, 0, len(index_array) - 1, rc_arr)
return rc_arr
def merge(self, A, ind, p, q, r, rc_array):
""" This method does the same work as mergeSort but we will be checking for the inversion and increase the
count """
left = ind[p:q + 1]
right = ind[q + 1:r + 1]
i = 0
j = 0
ic = 0
k = p
while i < len(left) and j < len(right):
if A[left[i]] > A[right[j]]:
ind[k] = right[j]
ic += 1
k += 1
j += 1
else:
rc_array[left[i]] = rc_array[left[i]] + ic
ind[k] = left[i]
i += 1
k += 1
while i < len(left):
rc_array[left[i]] = rc_array[left[i]] + ic
ind[k] = left[i]
k += 1
i += 1
while j < len(right):
ind[k] = right[j]
k += 1
j += 1
def sort(self, A, index, p, r, rc_arr):
"""Function to Divide the input Array into equal sub-arrays"""
if p < r:
q = (p + r) // 2
self.sort(A, index, p, q, rc_arr)
self.sort(A, index, q + 1, r, rc_arr)
self.merge(A, index, p, q, r, rc_arr)
if __name__ == '__main__':
a = [5, 10, 4, 7, 9, 2, 1, 0]
print(inversion_count().count(A))
|
#!/usr/bin/env python3
#
# Author:
# Tamas Jos (@skelsec)
#
class CommentStreamA:
def __init__(self):
self.data = None
@staticmethod
def parse(dir, buff):
csa = CommentStreamA()
buff.seek(dir.Location.Rva)
csa.data = buff.read(dir.Location.DataSize).decode()
return csa
def __str__(self):
return 'CommentA: %s' % self.data
|
class Commentstreama:
def __init__(self):
self.data = None
@staticmethod
def parse(dir, buff):
csa = comment_stream_a()
buff.seek(dir.Location.Rva)
csa.data = buff.read(dir.Location.DataSize).decode()
return csa
def __str__(self):
return 'CommentA: %s' % self.data
|
#
# PySNMP MIB module Nortel-MsCarrier-MscPassport-DataCollectionMIB (http://snmplabs.com/pysmi)
# ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/Nortel-MsCarrier-MscPassport-DataCollectionMIB
# Produced by pysmi-0.3.4 at Mon Apr 29 20:20:12 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)
#
ObjectIdentifier, OctetString, Integer = mibBuilder.importSymbols("ASN1", "ObjectIdentifier", "OctetString", "Integer")
NamedValues, = mibBuilder.importSymbols("ASN1-ENUMERATION", "NamedValues")
ConstraintsUnion, SingleValueConstraint, ValueRangeConstraint, ValueSizeConstraint, ConstraintsIntersection = mibBuilder.importSymbols("ASN1-REFINEMENT", "ConstraintsUnion", "SingleValueConstraint", "ValueRangeConstraint", "ValueSizeConstraint", "ConstraintsIntersection")
DisplayString, Integer32, RowStatus, Gauge32, Counter32, Unsigned32, StorageType = mibBuilder.importSymbols("Nortel-MsCarrier-MscPassport-StandardTextualConventionsMIB", "DisplayString", "Integer32", "RowStatus", "Gauge32", "Counter32", "Unsigned32", "StorageType")
AsciiString, EnterpriseDateAndTime, NonReplicated = mibBuilder.importSymbols("Nortel-MsCarrier-MscPassport-TextualConventionsMIB", "AsciiString", "EnterpriseDateAndTime", "NonReplicated")
mscPassportMIBs, mscComponents = mibBuilder.importSymbols("Nortel-MsCarrier-MscPassport-UsefulDefinitionsMIB", "mscPassportMIBs", "mscComponents")
NotificationGroup, ModuleCompliance = mibBuilder.importSymbols("SNMPv2-CONF", "NotificationGroup", "ModuleCompliance")
Integer32, Counter64, MibIdentifier, NotificationType, ObjectIdentity, MibScalar, MibTable, MibTableRow, MibTableColumn, TimeTicks, ModuleIdentity, IpAddress, iso, Gauge32, Counter32, Bits, Unsigned32 = mibBuilder.importSymbols("SNMPv2-SMI", "Integer32", "Counter64", "MibIdentifier", "NotificationType", "ObjectIdentity", "MibScalar", "MibTable", "MibTableRow", "MibTableColumn", "TimeTicks", "ModuleIdentity", "IpAddress", "iso", "Gauge32", "Counter32", "Bits", "Unsigned32")
DisplayString, TextualConvention = mibBuilder.importSymbols("SNMPv2-TC", "DisplayString", "TextualConvention")
dataCollectionMIB = MibIdentifier((1, 3, 6, 1, 4, 1, 562, 36, 2, 2, 14))
mscCol = MibIdentifier((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 21))
mscColRowStatusTable = MibTable((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 21, 1), )
if mibBuilder.loadTexts: mscColRowStatusTable.setStatus('mandatory')
mscColRowStatusEntry = MibTableRow((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 21, 1, 1), ).setIndexNames((0, "Nortel-MsCarrier-MscPassport-DataCollectionMIB", "mscColIndex"))
if mibBuilder.loadTexts: mscColRowStatusEntry.setStatus('mandatory')
mscColRowStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 21, 1, 1, 1), RowStatus()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: mscColRowStatus.setStatus('mandatory')
mscColComponentName = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 21, 1, 1, 2), DisplayString()).setMaxAccess("readonly")
if mibBuilder.loadTexts: mscColComponentName.setStatus('mandatory')
mscColStorageType = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 21, 1, 1, 4), StorageType()).setMaxAccess("readonly")
if mibBuilder.loadTexts: mscColStorageType.setStatus('mandatory')
mscColIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 21, 1, 1, 10), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1, 2, 3, 4, 5, 6))).clone(namedValues=NamedValues(("accounting", 0), ("alarm", 1), ("log", 2), ("debug", 3), ("scn", 4), ("trap", 5), ("stats", 6))))
if mibBuilder.loadTexts: mscColIndex.setStatus('mandatory')
mscColProvTable = MibTable((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 21, 10), )
if mibBuilder.loadTexts: mscColProvTable.setStatus('mandatory')
mscColProvEntry = MibTableRow((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 21, 10, 1), ).setIndexNames((0, "Nortel-MsCarrier-MscPassport-DataCollectionMIB", "mscColIndex"))
if mibBuilder.loadTexts: mscColProvEntry.setStatus('mandatory')
mscColAgentQueueSize = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 21, 10, 1, 1), Unsigned32().subtype(subtypeSpec=ConstraintsUnion(ValueRangeConstraint(0, 0), ValueRangeConstraint(20, 10000), ))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: mscColAgentQueueSize.setStatus('obsolete')
mscColStatsTable = MibTable((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 21, 11), )
if mibBuilder.loadTexts: mscColStatsTable.setStatus('mandatory')
mscColStatsEntry = MibTableRow((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 21, 11, 1), ).setIndexNames((0, "Nortel-MsCarrier-MscPassport-DataCollectionMIB", "mscColIndex"))
if mibBuilder.loadTexts: mscColStatsEntry.setStatus('mandatory')
mscColCurrentQueueSize = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 21, 11, 1, 1), Gauge32().subtype(subtypeSpec=ValueRangeConstraint(0, 4294967295))).setMaxAccess("readonly")
if mibBuilder.loadTexts: mscColCurrentQueueSize.setStatus('mandatory')
mscColRecordsRx = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 21, 11, 1, 2), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: mscColRecordsRx.setStatus('mandatory')
mscColRecordsDiscarded = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 21, 11, 1, 3), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: mscColRecordsDiscarded.setStatus('mandatory')
mscColTimesTable = MibTable((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 21, 266), )
if mibBuilder.loadTexts: mscColTimesTable.setStatus('mandatory')
mscColTimesEntry = MibTableRow((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 21, 266, 1), ).setIndexNames((0, "Nortel-MsCarrier-MscPassport-DataCollectionMIB", "mscColIndex"), (0, "Nortel-MsCarrier-MscPassport-DataCollectionMIB", "mscColTimesValue"))
if mibBuilder.loadTexts: mscColTimesEntry.setStatus('mandatory')
mscColTimesValue = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 21, 266, 1, 1), EnterpriseDateAndTime().subtype(subtypeSpec=ValueSizeConstraint(5, 5)).setFixedLength(5)).setMaxAccess("readwrite")
if mibBuilder.loadTexts: mscColTimesValue.setStatus('mandatory')
mscColTimesRowStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 21, 266, 1, 2), RowStatus()).setMaxAccess("writeonly")
if mibBuilder.loadTexts: mscColTimesRowStatus.setStatus('mandatory')
mscColLastTable = MibTable((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 21, 275), )
if mibBuilder.loadTexts: mscColLastTable.setStatus('obsolete')
mscColLastEntry = MibTableRow((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 21, 275, 1), ).setIndexNames((0, "Nortel-MsCarrier-MscPassport-DataCollectionMIB", "mscColIndex"), (0, "Nortel-MsCarrier-MscPassport-DataCollectionMIB", "mscColLastValue"))
if mibBuilder.loadTexts: mscColLastEntry.setStatus('obsolete')
mscColLastValue = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 21, 275, 1, 1), EnterpriseDateAndTime().subtype(subtypeSpec=ValueSizeConstraint(19, 19)).setFixedLength(19)).setMaxAccess("readonly")
if mibBuilder.loadTexts: mscColLastValue.setStatus('obsolete')
mscColPeakTable = MibTable((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 21, 279), )
if mibBuilder.loadTexts: mscColPeakTable.setStatus('mandatory')
mscColPeakEntry = MibTableRow((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 21, 279, 1), ).setIndexNames((0, "Nortel-MsCarrier-MscPassport-DataCollectionMIB", "mscColIndex"), (0, "Nortel-MsCarrier-MscPassport-DataCollectionMIB", "mscColPeakValue"))
if mibBuilder.loadTexts: mscColPeakEntry.setStatus('mandatory')
mscColPeakValue = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 21, 279, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 15))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: mscColPeakValue.setStatus('mandatory')
mscColPeakRowStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 21, 279, 1, 2), RowStatus()).setMaxAccess("writeonly")
if mibBuilder.loadTexts: mscColPeakRowStatus.setStatus('mandatory')
mscColSp = MibIdentifier((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 21, 2))
mscColSpRowStatusTable = MibTable((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 21, 2, 1), )
if mibBuilder.loadTexts: mscColSpRowStatusTable.setStatus('mandatory')
mscColSpRowStatusEntry = MibTableRow((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 21, 2, 1, 1), ).setIndexNames((0, "Nortel-MsCarrier-MscPassport-DataCollectionMIB", "mscColIndex"), (0, "Nortel-MsCarrier-MscPassport-DataCollectionMIB", "mscColSpIndex"))
if mibBuilder.loadTexts: mscColSpRowStatusEntry.setStatus('mandatory')
mscColSpRowStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 21, 2, 1, 1, 1), RowStatus()).setMaxAccess("readonly")
if mibBuilder.loadTexts: mscColSpRowStatus.setStatus('mandatory')
mscColSpComponentName = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 21, 2, 1, 1, 2), DisplayString()).setMaxAccess("readonly")
if mibBuilder.loadTexts: mscColSpComponentName.setStatus('mandatory')
mscColSpStorageType = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 21, 2, 1, 1, 4), StorageType()).setMaxAccess("readonly")
if mibBuilder.loadTexts: mscColSpStorageType.setStatus('mandatory')
mscColSpIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 21, 2, 1, 1, 10), NonReplicated())
if mibBuilder.loadTexts: mscColSpIndex.setStatus('mandatory')
mscColSpProvTable = MibTable((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 21, 2, 10), )
if mibBuilder.loadTexts: mscColSpProvTable.setStatus('mandatory')
mscColSpProvEntry = MibTableRow((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 21, 2, 10, 1), ).setIndexNames((0, "Nortel-MsCarrier-MscPassport-DataCollectionMIB", "mscColIndex"), (0, "Nortel-MsCarrier-MscPassport-DataCollectionMIB", "mscColSpIndex"))
if mibBuilder.loadTexts: mscColSpProvEntry.setStatus('mandatory')
mscColSpSpooling = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 21, 2, 10, 1, 1), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1))).clone(namedValues=NamedValues(("off", 0), ("on", 1)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: mscColSpSpooling.setStatus('mandatory')
mscColSpMaximumNumberOfFiles = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 21, 2, 10, 1, 2), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(0, 200))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: mscColSpMaximumNumberOfFiles.setStatus('mandatory')
mscColSpStateTable = MibTable((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 21, 2, 11), )
if mibBuilder.loadTexts: mscColSpStateTable.setStatus('mandatory')
mscColSpStateEntry = MibTableRow((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 21, 2, 11, 1), ).setIndexNames((0, "Nortel-MsCarrier-MscPassport-DataCollectionMIB", "mscColIndex"), (0, "Nortel-MsCarrier-MscPassport-DataCollectionMIB", "mscColSpIndex"))
if mibBuilder.loadTexts: mscColSpStateEntry.setStatus('mandatory')
mscColSpAdminState = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 21, 2, 11, 1, 1), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1, 2))).clone(namedValues=NamedValues(("locked", 0), ("unlocked", 1), ("shuttingDown", 2))).clone('unlocked')).setMaxAccess("readonly")
if mibBuilder.loadTexts: mscColSpAdminState.setStatus('mandatory')
mscColSpOperationalState = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 21, 2, 11, 1, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1))).clone(namedValues=NamedValues(("disabled", 0), ("enabled", 1))).clone('disabled')).setMaxAccess("readonly")
if mibBuilder.loadTexts: mscColSpOperationalState.setStatus('mandatory')
mscColSpUsageState = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 21, 2, 11, 1, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1, 2))).clone(namedValues=NamedValues(("idle", 0), ("active", 1), ("busy", 2))).clone('idle')).setMaxAccess("readonly")
if mibBuilder.loadTexts: mscColSpUsageState.setStatus('mandatory')
mscColSpAvailabilityStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 21, 2, 11, 1, 4), OctetString().subtype(subtypeSpec=ValueSizeConstraint(2, 2)).setFixedLength(2)).setMaxAccess("readonly")
if mibBuilder.loadTexts: mscColSpAvailabilityStatus.setStatus('mandatory')
mscColSpProceduralStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 21, 2, 11, 1, 5), OctetString().subtype(subtypeSpec=ValueSizeConstraint(1, 1)).setFixedLength(1)).setMaxAccess("readonly")
if mibBuilder.loadTexts: mscColSpProceduralStatus.setStatus('mandatory')
mscColSpControlStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 21, 2, 11, 1, 6), OctetString().subtype(subtypeSpec=ValueSizeConstraint(1, 1)).setFixedLength(1)).setMaxAccess("readonly")
if mibBuilder.loadTexts: mscColSpControlStatus.setStatus('mandatory')
mscColSpAlarmStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 21, 2, 11, 1, 7), OctetString().subtype(subtypeSpec=ValueSizeConstraint(1, 1)).setFixedLength(1)).setMaxAccess("readonly")
if mibBuilder.loadTexts: mscColSpAlarmStatus.setStatus('mandatory')
mscColSpStandbyStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 21, 2, 11, 1, 8), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1, 2, 15))).clone(namedValues=NamedValues(("hotStandby", 0), ("coldStandby", 1), ("providingService", 2), ("notSet", 15))).clone('notSet')).setMaxAccess("readonly")
if mibBuilder.loadTexts: mscColSpStandbyStatus.setStatus('mandatory')
mscColSpUnknownStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 21, 2, 11, 1, 9), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1))).clone(namedValues=NamedValues(("false", 0), ("true", 1))).clone('false')).setMaxAccess("readonly")
if mibBuilder.loadTexts: mscColSpUnknownStatus.setStatus('mandatory')
mscColSpOperTable = MibTable((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 21, 2, 12), )
if mibBuilder.loadTexts: mscColSpOperTable.setStatus('mandatory')
mscColSpOperEntry = MibTableRow((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 21, 2, 12, 1), ).setIndexNames((0, "Nortel-MsCarrier-MscPassport-DataCollectionMIB", "mscColIndex"), (0, "Nortel-MsCarrier-MscPassport-DataCollectionMIB", "mscColSpIndex"))
if mibBuilder.loadTexts: mscColSpOperEntry.setStatus('mandatory')
mscColSpSpoolingFileName = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 21, 2, 12, 1, 1), AsciiString().subtype(subtypeSpec=ValueSizeConstraint(0, 128))).setMaxAccess("readonly")
if mibBuilder.loadTexts: mscColSpSpoolingFileName.setStatus('mandatory')
mscColSpStatsTable = MibTable((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 21, 2, 13), )
if mibBuilder.loadTexts: mscColSpStatsTable.setStatus('mandatory')
mscColSpStatsEntry = MibTableRow((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 21, 2, 13, 1), ).setIndexNames((0, "Nortel-MsCarrier-MscPassport-DataCollectionMIB", "mscColIndex"), (0, "Nortel-MsCarrier-MscPassport-DataCollectionMIB", "mscColSpIndex"))
if mibBuilder.loadTexts: mscColSpStatsEntry.setStatus('mandatory')
mscColSpCurrentQueueSize = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 21, 2, 13, 1, 1), Gauge32().subtype(subtypeSpec=ValueRangeConstraint(0, 4294967295))).setMaxAccess("readonly")
if mibBuilder.loadTexts: mscColSpCurrentQueueSize.setStatus('mandatory')
mscColSpRecordsRx = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 21, 2, 13, 1, 2), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: mscColSpRecordsRx.setStatus('mandatory')
mscColSpRecordsDiscarded = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 21, 2, 13, 1, 3), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: mscColSpRecordsDiscarded.setStatus('mandatory')
mscColAg = MibIdentifier((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 21, 3))
mscColAgRowStatusTable = MibTable((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 21, 3, 1), )
if mibBuilder.loadTexts: mscColAgRowStatusTable.setStatus('mandatory')
mscColAgRowStatusEntry = MibTableRow((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 21, 3, 1, 1), ).setIndexNames((0, "Nortel-MsCarrier-MscPassport-DataCollectionMIB", "mscColIndex"), (0, "Nortel-MsCarrier-MscPassport-DataCollectionMIB", "mscColAgIndex"))
if mibBuilder.loadTexts: mscColAgRowStatusEntry.setStatus('mandatory')
mscColAgRowStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 21, 3, 1, 1, 1), RowStatus()).setMaxAccess("readonly")
if mibBuilder.loadTexts: mscColAgRowStatus.setStatus('mandatory')
mscColAgComponentName = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 21, 3, 1, 1, 2), DisplayString()).setMaxAccess("readonly")
if mibBuilder.loadTexts: mscColAgComponentName.setStatus('mandatory')
mscColAgStorageType = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 21, 3, 1, 1, 4), StorageType()).setMaxAccess("readonly")
if mibBuilder.loadTexts: mscColAgStorageType.setStatus('mandatory')
mscColAgIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 21, 3, 1, 1, 10), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 15)))
if mibBuilder.loadTexts: mscColAgIndex.setStatus('mandatory')
mscColAgStatsTable = MibTable((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 21, 3, 10), )
if mibBuilder.loadTexts: mscColAgStatsTable.setStatus('mandatory')
mscColAgStatsEntry = MibTableRow((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 21, 3, 10, 1), ).setIndexNames((0, "Nortel-MsCarrier-MscPassport-DataCollectionMIB", "mscColIndex"), (0, "Nortel-MsCarrier-MscPassport-DataCollectionMIB", "mscColAgIndex"))
if mibBuilder.loadTexts: mscColAgStatsEntry.setStatus('mandatory')
mscColAgCurrentQueueSize = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 21, 3, 10, 1, 1), Gauge32().subtype(subtypeSpec=ValueRangeConstraint(0, 4294967295))).setMaxAccess("readonly")
if mibBuilder.loadTexts: mscColAgCurrentQueueSize.setStatus('mandatory')
mscColAgRecordsRx = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 21, 3, 10, 1, 2), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: mscColAgRecordsRx.setStatus('mandatory')
mscColAgRecordsDiscarded = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 21, 3, 10, 1, 3), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: mscColAgRecordsDiscarded.setStatus('mandatory')
mscColAgAgentStatsTable = MibTable((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 21, 3, 11), )
if mibBuilder.loadTexts: mscColAgAgentStatsTable.setStatus('mandatory')
mscColAgAgentStatsEntry = MibTableRow((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 21, 3, 11, 1), ).setIndexNames((0, "Nortel-MsCarrier-MscPassport-DataCollectionMIB", "mscColIndex"), (0, "Nortel-MsCarrier-MscPassport-DataCollectionMIB", "mscColAgIndex"))
if mibBuilder.loadTexts: mscColAgAgentStatsEntry.setStatus('mandatory')
mscColAgRecordsNotGenerated = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 21, 3, 11, 1, 1), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: mscColAgRecordsNotGenerated.setStatus('mandatory')
dataCollectionGroup = MibIdentifier((1, 3, 6, 1, 4, 1, 562, 36, 2, 2, 14, 1))
dataCollectionGroupCA = MibIdentifier((1, 3, 6, 1, 4, 1, 562, 36, 2, 2, 14, 1, 1))
dataCollectionGroupCA02 = MibIdentifier((1, 3, 6, 1, 4, 1, 562, 36, 2, 2, 14, 1, 1, 3))
dataCollectionGroupCA02A = MibIdentifier((1, 3, 6, 1, 4, 1, 562, 36, 2, 2, 14, 1, 1, 3, 2))
dataCollectionCapabilities = MibIdentifier((1, 3, 6, 1, 4, 1, 562, 36, 2, 2, 14, 3))
dataCollectionCapabilitiesCA = MibIdentifier((1, 3, 6, 1, 4, 1, 562, 36, 2, 2, 14, 3, 1))
dataCollectionCapabilitiesCA02 = MibIdentifier((1, 3, 6, 1, 4, 1, 562, 36, 2, 2, 14, 3, 1, 3))
dataCollectionCapabilitiesCA02A = MibIdentifier((1, 3, 6, 1, 4, 1, 562, 36, 2, 2, 14, 3, 1, 3, 2))
mibBuilder.exportSymbols("Nortel-MsCarrier-MscPassport-DataCollectionMIB", mscColProvEntry=mscColProvEntry, mscColSpUsageState=mscColSpUsageState, mscColAgRowStatus=mscColAgRowStatus, mscColIndex=mscColIndex, mscColSpProvEntry=mscColSpProvEntry, mscColSpStandbyStatus=mscColSpStandbyStatus, mscColAgComponentName=mscColAgComponentName, mscColCurrentQueueSize=mscColCurrentQueueSize, mscColAgCurrentQueueSize=mscColAgCurrentQueueSize, mscColStatsEntry=mscColStatsEntry, mscColStatsTable=mscColStatsTable, mscColSpSpoolingFileName=mscColSpSpoolingFileName, mscColAgStorageType=mscColAgStorageType, mscColAgRecordsRx=mscColAgRecordsRx, mscColPeakTable=mscColPeakTable, mscColSpRecordsDiscarded=mscColSpRecordsDiscarded, mscColSpControlStatus=mscColSpControlStatus, dataCollectionGroupCA02=dataCollectionGroupCA02, dataCollectionCapabilitiesCA02A=dataCollectionCapabilitiesCA02A, mscColAgAgentStatsEntry=mscColAgAgentStatsEntry, mscColSpOperTable=mscColSpOperTable, mscColSpOperationalState=mscColSpOperationalState, mscColAgRowStatusTable=mscColAgRowStatusTable, dataCollectionMIB=dataCollectionMIB, mscColAgRowStatusEntry=mscColAgRowStatusEntry, mscColAgRecordsDiscarded=mscColAgRecordsDiscarded, mscColSpAdminState=mscColSpAdminState, mscColAgStatsTable=mscColAgStatsTable, mscColSpAlarmStatus=mscColSpAlarmStatus, mscColTimesValue=mscColTimesValue, mscColAgAgentStatsTable=mscColAgAgentStatsTable, mscColTimesRowStatus=mscColTimesRowStatus, mscColTimesTable=mscColTimesTable, mscColAgIndex=mscColAgIndex, mscColLastEntry=mscColLastEntry, mscColPeakValue=mscColPeakValue, dataCollectionGroupCA=dataCollectionGroupCA, mscColSpSpooling=mscColSpSpooling, dataCollectionCapabilitiesCA02=dataCollectionCapabilitiesCA02, mscColSpMaximumNumberOfFiles=mscColSpMaximumNumberOfFiles, mscColSpProvTable=mscColSpProvTable, mscColSpAvailabilityStatus=mscColSpAvailabilityStatus, mscColSpCurrentQueueSize=mscColSpCurrentQueueSize, mscColSpStorageType=mscColSpStorageType, dataCollectionGroupCA02A=dataCollectionGroupCA02A, mscColAg=mscColAg, mscColSpUnknownStatus=mscColSpUnknownStatus, mscColAgStatsEntry=mscColAgStatsEntry, dataCollectionGroup=dataCollectionGroup, mscCol=mscCol, mscColSpOperEntry=mscColSpOperEntry, mscColSpRowStatusEntry=mscColSpRowStatusEntry, mscColSpStateEntry=mscColSpStateEntry, mscColAgRecordsNotGenerated=mscColAgRecordsNotGenerated, mscColSpStateTable=mscColSpStateTable, mscColSpRecordsRx=mscColSpRecordsRx, mscColSpRowStatusTable=mscColSpRowStatusTable, mscColSpComponentName=mscColSpComponentName, mscColSpProceduralStatus=mscColSpProceduralStatus, mscColRowStatusTable=mscColRowStatusTable, mscColPeakEntry=mscColPeakEntry, mscColLastValue=mscColLastValue, mscColRowStatusEntry=mscColRowStatusEntry, mscColAgentQueueSize=mscColAgentQueueSize, mscColLastTable=mscColLastTable, mscColRowStatus=mscColRowStatus, mscColTimesEntry=mscColTimesEntry, mscColSp=mscColSp, mscColPeakRowStatus=mscColPeakRowStatus, mscColStorageType=mscColStorageType, dataCollectionCapabilitiesCA=dataCollectionCapabilitiesCA, mscColSpRowStatus=mscColSpRowStatus, mscColComponentName=mscColComponentName, mscColSpIndex=mscColSpIndex, mscColRecordsRx=mscColRecordsRx, mscColSpStatsTable=mscColSpStatsTable, mscColProvTable=mscColProvTable, mscColSpStatsEntry=mscColSpStatsEntry, dataCollectionCapabilities=dataCollectionCapabilities, mscColRecordsDiscarded=mscColRecordsDiscarded)
|
(object_identifier, octet_string, integer) = mibBuilder.importSymbols('ASN1', 'ObjectIdentifier', 'OctetString', 'Integer')
(named_values,) = mibBuilder.importSymbols('ASN1-ENUMERATION', 'NamedValues')
(constraints_union, single_value_constraint, value_range_constraint, value_size_constraint, constraints_intersection) = mibBuilder.importSymbols('ASN1-REFINEMENT', 'ConstraintsUnion', 'SingleValueConstraint', 'ValueRangeConstraint', 'ValueSizeConstraint', 'ConstraintsIntersection')
(display_string, integer32, row_status, gauge32, counter32, unsigned32, storage_type) = mibBuilder.importSymbols('Nortel-MsCarrier-MscPassport-StandardTextualConventionsMIB', 'DisplayString', 'Integer32', 'RowStatus', 'Gauge32', 'Counter32', 'Unsigned32', 'StorageType')
(ascii_string, enterprise_date_and_time, non_replicated) = mibBuilder.importSymbols('Nortel-MsCarrier-MscPassport-TextualConventionsMIB', 'AsciiString', 'EnterpriseDateAndTime', 'NonReplicated')
(msc_passport_mi_bs, msc_components) = mibBuilder.importSymbols('Nortel-MsCarrier-MscPassport-UsefulDefinitionsMIB', 'mscPassportMIBs', 'mscComponents')
(notification_group, module_compliance) = mibBuilder.importSymbols('SNMPv2-CONF', 'NotificationGroup', 'ModuleCompliance')
(integer32, counter64, mib_identifier, notification_type, object_identity, mib_scalar, mib_table, mib_table_row, mib_table_column, time_ticks, module_identity, ip_address, iso, gauge32, counter32, bits, unsigned32) = mibBuilder.importSymbols('SNMPv2-SMI', 'Integer32', 'Counter64', 'MibIdentifier', 'NotificationType', 'ObjectIdentity', 'MibScalar', 'MibTable', 'MibTableRow', 'MibTableColumn', 'TimeTicks', 'ModuleIdentity', 'IpAddress', 'iso', 'Gauge32', 'Counter32', 'Bits', 'Unsigned32')
(display_string, textual_convention) = mibBuilder.importSymbols('SNMPv2-TC', 'DisplayString', 'TextualConvention')
data_collection_mib = mib_identifier((1, 3, 6, 1, 4, 1, 562, 36, 2, 2, 14))
msc_col = mib_identifier((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 21))
msc_col_row_status_table = mib_table((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 21, 1))
if mibBuilder.loadTexts:
mscColRowStatusTable.setStatus('mandatory')
msc_col_row_status_entry = mib_table_row((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 21, 1, 1)).setIndexNames((0, 'Nortel-MsCarrier-MscPassport-DataCollectionMIB', 'mscColIndex'))
if mibBuilder.loadTexts:
mscColRowStatusEntry.setStatus('mandatory')
msc_col_row_status = mib_table_column((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 21, 1, 1, 1), row_status()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
mscColRowStatus.setStatus('mandatory')
msc_col_component_name = mib_table_column((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 21, 1, 1, 2), display_string()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
mscColComponentName.setStatus('mandatory')
msc_col_storage_type = mib_table_column((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 21, 1, 1, 4), storage_type()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
mscColStorageType.setStatus('mandatory')
msc_col_index = mib_table_column((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 21, 1, 1, 10), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(0, 1, 2, 3, 4, 5, 6))).clone(namedValues=named_values(('accounting', 0), ('alarm', 1), ('log', 2), ('debug', 3), ('scn', 4), ('trap', 5), ('stats', 6))))
if mibBuilder.loadTexts:
mscColIndex.setStatus('mandatory')
msc_col_prov_table = mib_table((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 21, 10))
if mibBuilder.loadTexts:
mscColProvTable.setStatus('mandatory')
msc_col_prov_entry = mib_table_row((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 21, 10, 1)).setIndexNames((0, 'Nortel-MsCarrier-MscPassport-DataCollectionMIB', 'mscColIndex'))
if mibBuilder.loadTexts:
mscColProvEntry.setStatus('mandatory')
msc_col_agent_queue_size = mib_table_column((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 21, 10, 1, 1), unsigned32().subtype(subtypeSpec=constraints_union(value_range_constraint(0, 0), value_range_constraint(20, 10000)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
mscColAgentQueueSize.setStatus('obsolete')
msc_col_stats_table = mib_table((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 21, 11))
if mibBuilder.loadTexts:
mscColStatsTable.setStatus('mandatory')
msc_col_stats_entry = mib_table_row((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 21, 11, 1)).setIndexNames((0, 'Nortel-MsCarrier-MscPassport-DataCollectionMIB', 'mscColIndex'))
if mibBuilder.loadTexts:
mscColStatsEntry.setStatus('mandatory')
msc_col_current_queue_size = mib_table_column((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 21, 11, 1, 1), gauge32().subtype(subtypeSpec=value_range_constraint(0, 4294967295))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
mscColCurrentQueueSize.setStatus('mandatory')
msc_col_records_rx = mib_table_column((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 21, 11, 1, 2), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
mscColRecordsRx.setStatus('mandatory')
msc_col_records_discarded = mib_table_column((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 21, 11, 1, 3), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
mscColRecordsDiscarded.setStatus('mandatory')
msc_col_times_table = mib_table((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 21, 266))
if mibBuilder.loadTexts:
mscColTimesTable.setStatus('mandatory')
msc_col_times_entry = mib_table_row((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 21, 266, 1)).setIndexNames((0, 'Nortel-MsCarrier-MscPassport-DataCollectionMIB', 'mscColIndex'), (0, 'Nortel-MsCarrier-MscPassport-DataCollectionMIB', 'mscColTimesValue'))
if mibBuilder.loadTexts:
mscColTimesEntry.setStatus('mandatory')
msc_col_times_value = mib_table_column((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 21, 266, 1, 1), enterprise_date_and_time().subtype(subtypeSpec=value_size_constraint(5, 5)).setFixedLength(5)).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
mscColTimesValue.setStatus('mandatory')
msc_col_times_row_status = mib_table_column((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 21, 266, 1, 2), row_status()).setMaxAccess('writeonly')
if mibBuilder.loadTexts:
mscColTimesRowStatus.setStatus('mandatory')
msc_col_last_table = mib_table((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 21, 275))
if mibBuilder.loadTexts:
mscColLastTable.setStatus('obsolete')
msc_col_last_entry = mib_table_row((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 21, 275, 1)).setIndexNames((0, 'Nortel-MsCarrier-MscPassport-DataCollectionMIB', 'mscColIndex'), (0, 'Nortel-MsCarrier-MscPassport-DataCollectionMIB', 'mscColLastValue'))
if mibBuilder.loadTexts:
mscColLastEntry.setStatus('obsolete')
msc_col_last_value = mib_table_column((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 21, 275, 1, 1), enterprise_date_and_time().subtype(subtypeSpec=value_size_constraint(19, 19)).setFixedLength(19)).setMaxAccess('readonly')
if mibBuilder.loadTexts:
mscColLastValue.setStatus('obsolete')
msc_col_peak_table = mib_table((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 21, 279))
if mibBuilder.loadTexts:
mscColPeakTable.setStatus('mandatory')
msc_col_peak_entry = mib_table_row((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 21, 279, 1)).setIndexNames((0, 'Nortel-MsCarrier-MscPassport-DataCollectionMIB', 'mscColIndex'), (0, 'Nortel-MsCarrier-MscPassport-DataCollectionMIB', 'mscColPeakValue'))
if mibBuilder.loadTexts:
mscColPeakEntry.setStatus('mandatory')
msc_col_peak_value = mib_table_column((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 21, 279, 1, 1), integer32().subtype(subtypeSpec=value_range_constraint(1, 15))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
mscColPeakValue.setStatus('mandatory')
msc_col_peak_row_status = mib_table_column((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 21, 279, 1, 2), row_status()).setMaxAccess('writeonly')
if mibBuilder.loadTexts:
mscColPeakRowStatus.setStatus('mandatory')
msc_col_sp = mib_identifier((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 21, 2))
msc_col_sp_row_status_table = mib_table((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 21, 2, 1))
if mibBuilder.loadTexts:
mscColSpRowStatusTable.setStatus('mandatory')
msc_col_sp_row_status_entry = mib_table_row((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 21, 2, 1, 1)).setIndexNames((0, 'Nortel-MsCarrier-MscPassport-DataCollectionMIB', 'mscColIndex'), (0, 'Nortel-MsCarrier-MscPassport-DataCollectionMIB', 'mscColSpIndex'))
if mibBuilder.loadTexts:
mscColSpRowStatusEntry.setStatus('mandatory')
msc_col_sp_row_status = mib_table_column((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 21, 2, 1, 1, 1), row_status()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
mscColSpRowStatus.setStatus('mandatory')
msc_col_sp_component_name = mib_table_column((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 21, 2, 1, 1, 2), display_string()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
mscColSpComponentName.setStatus('mandatory')
msc_col_sp_storage_type = mib_table_column((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 21, 2, 1, 1, 4), storage_type()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
mscColSpStorageType.setStatus('mandatory')
msc_col_sp_index = mib_table_column((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 21, 2, 1, 1, 10), non_replicated())
if mibBuilder.loadTexts:
mscColSpIndex.setStatus('mandatory')
msc_col_sp_prov_table = mib_table((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 21, 2, 10))
if mibBuilder.loadTexts:
mscColSpProvTable.setStatus('mandatory')
msc_col_sp_prov_entry = mib_table_row((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 21, 2, 10, 1)).setIndexNames((0, 'Nortel-MsCarrier-MscPassport-DataCollectionMIB', 'mscColIndex'), (0, 'Nortel-MsCarrier-MscPassport-DataCollectionMIB', 'mscColSpIndex'))
if mibBuilder.loadTexts:
mscColSpProvEntry.setStatus('mandatory')
msc_col_sp_spooling = mib_table_column((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 21, 2, 10, 1, 1), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(0, 1))).clone(namedValues=named_values(('off', 0), ('on', 1)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
mscColSpSpooling.setStatus('mandatory')
msc_col_sp_maximum_number_of_files = mib_table_column((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 21, 2, 10, 1, 2), unsigned32().subtype(subtypeSpec=value_range_constraint(0, 200))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
mscColSpMaximumNumberOfFiles.setStatus('mandatory')
msc_col_sp_state_table = mib_table((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 21, 2, 11))
if mibBuilder.loadTexts:
mscColSpStateTable.setStatus('mandatory')
msc_col_sp_state_entry = mib_table_row((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 21, 2, 11, 1)).setIndexNames((0, 'Nortel-MsCarrier-MscPassport-DataCollectionMIB', 'mscColIndex'), (0, 'Nortel-MsCarrier-MscPassport-DataCollectionMIB', 'mscColSpIndex'))
if mibBuilder.loadTexts:
mscColSpStateEntry.setStatus('mandatory')
msc_col_sp_admin_state = mib_table_column((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 21, 2, 11, 1, 1), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(0, 1, 2))).clone(namedValues=named_values(('locked', 0), ('unlocked', 1), ('shuttingDown', 2))).clone('unlocked')).setMaxAccess('readonly')
if mibBuilder.loadTexts:
mscColSpAdminState.setStatus('mandatory')
msc_col_sp_operational_state = mib_table_column((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 21, 2, 11, 1, 2), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(0, 1))).clone(namedValues=named_values(('disabled', 0), ('enabled', 1))).clone('disabled')).setMaxAccess('readonly')
if mibBuilder.loadTexts:
mscColSpOperationalState.setStatus('mandatory')
msc_col_sp_usage_state = mib_table_column((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 21, 2, 11, 1, 3), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(0, 1, 2))).clone(namedValues=named_values(('idle', 0), ('active', 1), ('busy', 2))).clone('idle')).setMaxAccess('readonly')
if mibBuilder.loadTexts:
mscColSpUsageState.setStatus('mandatory')
msc_col_sp_availability_status = mib_table_column((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 21, 2, 11, 1, 4), octet_string().subtype(subtypeSpec=value_size_constraint(2, 2)).setFixedLength(2)).setMaxAccess('readonly')
if mibBuilder.loadTexts:
mscColSpAvailabilityStatus.setStatus('mandatory')
msc_col_sp_procedural_status = mib_table_column((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 21, 2, 11, 1, 5), octet_string().subtype(subtypeSpec=value_size_constraint(1, 1)).setFixedLength(1)).setMaxAccess('readonly')
if mibBuilder.loadTexts:
mscColSpProceduralStatus.setStatus('mandatory')
msc_col_sp_control_status = mib_table_column((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 21, 2, 11, 1, 6), octet_string().subtype(subtypeSpec=value_size_constraint(1, 1)).setFixedLength(1)).setMaxAccess('readonly')
if mibBuilder.loadTexts:
mscColSpControlStatus.setStatus('mandatory')
msc_col_sp_alarm_status = mib_table_column((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 21, 2, 11, 1, 7), octet_string().subtype(subtypeSpec=value_size_constraint(1, 1)).setFixedLength(1)).setMaxAccess('readonly')
if mibBuilder.loadTexts:
mscColSpAlarmStatus.setStatus('mandatory')
msc_col_sp_standby_status = mib_table_column((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 21, 2, 11, 1, 8), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(0, 1, 2, 15))).clone(namedValues=named_values(('hotStandby', 0), ('coldStandby', 1), ('providingService', 2), ('notSet', 15))).clone('notSet')).setMaxAccess('readonly')
if mibBuilder.loadTexts:
mscColSpStandbyStatus.setStatus('mandatory')
msc_col_sp_unknown_status = mib_table_column((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 21, 2, 11, 1, 9), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(0, 1))).clone(namedValues=named_values(('false', 0), ('true', 1))).clone('false')).setMaxAccess('readonly')
if mibBuilder.loadTexts:
mscColSpUnknownStatus.setStatus('mandatory')
msc_col_sp_oper_table = mib_table((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 21, 2, 12))
if mibBuilder.loadTexts:
mscColSpOperTable.setStatus('mandatory')
msc_col_sp_oper_entry = mib_table_row((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 21, 2, 12, 1)).setIndexNames((0, 'Nortel-MsCarrier-MscPassport-DataCollectionMIB', 'mscColIndex'), (0, 'Nortel-MsCarrier-MscPassport-DataCollectionMIB', 'mscColSpIndex'))
if mibBuilder.loadTexts:
mscColSpOperEntry.setStatus('mandatory')
msc_col_sp_spooling_file_name = mib_table_column((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 21, 2, 12, 1, 1), ascii_string().subtype(subtypeSpec=value_size_constraint(0, 128))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
mscColSpSpoolingFileName.setStatus('mandatory')
msc_col_sp_stats_table = mib_table((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 21, 2, 13))
if mibBuilder.loadTexts:
mscColSpStatsTable.setStatus('mandatory')
msc_col_sp_stats_entry = mib_table_row((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 21, 2, 13, 1)).setIndexNames((0, 'Nortel-MsCarrier-MscPassport-DataCollectionMIB', 'mscColIndex'), (0, 'Nortel-MsCarrier-MscPassport-DataCollectionMIB', 'mscColSpIndex'))
if mibBuilder.loadTexts:
mscColSpStatsEntry.setStatus('mandatory')
msc_col_sp_current_queue_size = mib_table_column((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 21, 2, 13, 1, 1), gauge32().subtype(subtypeSpec=value_range_constraint(0, 4294967295))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
mscColSpCurrentQueueSize.setStatus('mandatory')
msc_col_sp_records_rx = mib_table_column((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 21, 2, 13, 1, 2), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
mscColSpRecordsRx.setStatus('mandatory')
msc_col_sp_records_discarded = mib_table_column((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 21, 2, 13, 1, 3), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
mscColSpRecordsDiscarded.setStatus('mandatory')
msc_col_ag = mib_identifier((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 21, 3))
msc_col_ag_row_status_table = mib_table((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 21, 3, 1))
if mibBuilder.loadTexts:
mscColAgRowStatusTable.setStatus('mandatory')
msc_col_ag_row_status_entry = mib_table_row((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 21, 3, 1, 1)).setIndexNames((0, 'Nortel-MsCarrier-MscPassport-DataCollectionMIB', 'mscColIndex'), (0, 'Nortel-MsCarrier-MscPassport-DataCollectionMIB', 'mscColAgIndex'))
if mibBuilder.loadTexts:
mscColAgRowStatusEntry.setStatus('mandatory')
msc_col_ag_row_status = mib_table_column((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 21, 3, 1, 1, 1), row_status()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
mscColAgRowStatus.setStatus('mandatory')
msc_col_ag_component_name = mib_table_column((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 21, 3, 1, 1, 2), display_string()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
mscColAgComponentName.setStatus('mandatory')
msc_col_ag_storage_type = mib_table_column((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 21, 3, 1, 1, 4), storage_type()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
mscColAgStorageType.setStatus('mandatory')
msc_col_ag_index = mib_table_column((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 21, 3, 1, 1, 10), integer32().subtype(subtypeSpec=value_range_constraint(0, 15)))
if mibBuilder.loadTexts:
mscColAgIndex.setStatus('mandatory')
msc_col_ag_stats_table = mib_table((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 21, 3, 10))
if mibBuilder.loadTexts:
mscColAgStatsTable.setStatus('mandatory')
msc_col_ag_stats_entry = mib_table_row((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 21, 3, 10, 1)).setIndexNames((0, 'Nortel-MsCarrier-MscPassport-DataCollectionMIB', 'mscColIndex'), (0, 'Nortel-MsCarrier-MscPassport-DataCollectionMIB', 'mscColAgIndex'))
if mibBuilder.loadTexts:
mscColAgStatsEntry.setStatus('mandatory')
msc_col_ag_current_queue_size = mib_table_column((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 21, 3, 10, 1, 1), gauge32().subtype(subtypeSpec=value_range_constraint(0, 4294967295))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
mscColAgCurrentQueueSize.setStatus('mandatory')
msc_col_ag_records_rx = mib_table_column((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 21, 3, 10, 1, 2), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
mscColAgRecordsRx.setStatus('mandatory')
msc_col_ag_records_discarded = mib_table_column((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 21, 3, 10, 1, 3), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
mscColAgRecordsDiscarded.setStatus('mandatory')
msc_col_ag_agent_stats_table = mib_table((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 21, 3, 11))
if mibBuilder.loadTexts:
mscColAgAgentStatsTable.setStatus('mandatory')
msc_col_ag_agent_stats_entry = mib_table_row((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 21, 3, 11, 1)).setIndexNames((0, 'Nortel-MsCarrier-MscPassport-DataCollectionMIB', 'mscColIndex'), (0, 'Nortel-MsCarrier-MscPassport-DataCollectionMIB', 'mscColAgIndex'))
if mibBuilder.loadTexts:
mscColAgAgentStatsEntry.setStatus('mandatory')
msc_col_ag_records_not_generated = mib_table_column((1, 3, 6, 1, 4, 1, 562, 36, 2, 1, 21, 3, 11, 1, 1), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
mscColAgRecordsNotGenerated.setStatus('mandatory')
data_collection_group = mib_identifier((1, 3, 6, 1, 4, 1, 562, 36, 2, 2, 14, 1))
data_collection_group_ca = mib_identifier((1, 3, 6, 1, 4, 1, 562, 36, 2, 2, 14, 1, 1))
data_collection_group_ca02 = mib_identifier((1, 3, 6, 1, 4, 1, 562, 36, 2, 2, 14, 1, 1, 3))
data_collection_group_ca02_a = mib_identifier((1, 3, 6, 1, 4, 1, 562, 36, 2, 2, 14, 1, 1, 3, 2))
data_collection_capabilities = mib_identifier((1, 3, 6, 1, 4, 1, 562, 36, 2, 2, 14, 3))
data_collection_capabilities_ca = mib_identifier((1, 3, 6, 1, 4, 1, 562, 36, 2, 2, 14, 3, 1))
data_collection_capabilities_ca02 = mib_identifier((1, 3, 6, 1, 4, 1, 562, 36, 2, 2, 14, 3, 1, 3))
data_collection_capabilities_ca02_a = mib_identifier((1, 3, 6, 1, 4, 1, 562, 36, 2, 2, 14, 3, 1, 3, 2))
mibBuilder.exportSymbols('Nortel-MsCarrier-MscPassport-DataCollectionMIB', mscColProvEntry=mscColProvEntry, mscColSpUsageState=mscColSpUsageState, mscColAgRowStatus=mscColAgRowStatus, mscColIndex=mscColIndex, mscColSpProvEntry=mscColSpProvEntry, mscColSpStandbyStatus=mscColSpStandbyStatus, mscColAgComponentName=mscColAgComponentName, mscColCurrentQueueSize=mscColCurrentQueueSize, mscColAgCurrentQueueSize=mscColAgCurrentQueueSize, mscColStatsEntry=mscColStatsEntry, mscColStatsTable=mscColStatsTable, mscColSpSpoolingFileName=mscColSpSpoolingFileName, mscColAgStorageType=mscColAgStorageType, mscColAgRecordsRx=mscColAgRecordsRx, mscColPeakTable=mscColPeakTable, mscColSpRecordsDiscarded=mscColSpRecordsDiscarded, mscColSpControlStatus=mscColSpControlStatus, dataCollectionGroupCA02=dataCollectionGroupCA02, dataCollectionCapabilitiesCA02A=dataCollectionCapabilitiesCA02A, mscColAgAgentStatsEntry=mscColAgAgentStatsEntry, mscColSpOperTable=mscColSpOperTable, mscColSpOperationalState=mscColSpOperationalState, mscColAgRowStatusTable=mscColAgRowStatusTable, dataCollectionMIB=dataCollectionMIB, mscColAgRowStatusEntry=mscColAgRowStatusEntry, mscColAgRecordsDiscarded=mscColAgRecordsDiscarded, mscColSpAdminState=mscColSpAdminState, mscColAgStatsTable=mscColAgStatsTable, mscColSpAlarmStatus=mscColSpAlarmStatus, mscColTimesValue=mscColTimesValue, mscColAgAgentStatsTable=mscColAgAgentStatsTable, mscColTimesRowStatus=mscColTimesRowStatus, mscColTimesTable=mscColTimesTable, mscColAgIndex=mscColAgIndex, mscColLastEntry=mscColLastEntry, mscColPeakValue=mscColPeakValue, dataCollectionGroupCA=dataCollectionGroupCA, mscColSpSpooling=mscColSpSpooling, dataCollectionCapabilitiesCA02=dataCollectionCapabilitiesCA02, mscColSpMaximumNumberOfFiles=mscColSpMaximumNumberOfFiles, mscColSpProvTable=mscColSpProvTable, mscColSpAvailabilityStatus=mscColSpAvailabilityStatus, mscColSpCurrentQueueSize=mscColSpCurrentQueueSize, mscColSpStorageType=mscColSpStorageType, dataCollectionGroupCA02A=dataCollectionGroupCA02A, mscColAg=mscColAg, mscColSpUnknownStatus=mscColSpUnknownStatus, mscColAgStatsEntry=mscColAgStatsEntry, dataCollectionGroup=dataCollectionGroup, mscCol=mscCol, mscColSpOperEntry=mscColSpOperEntry, mscColSpRowStatusEntry=mscColSpRowStatusEntry, mscColSpStateEntry=mscColSpStateEntry, mscColAgRecordsNotGenerated=mscColAgRecordsNotGenerated, mscColSpStateTable=mscColSpStateTable, mscColSpRecordsRx=mscColSpRecordsRx, mscColSpRowStatusTable=mscColSpRowStatusTable, mscColSpComponentName=mscColSpComponentName, mscColSpProceduralStatus=mscColSpProceduralStatus, mscColRowStatusTable=mscColRowStatusTable, mscColPeakEntry=mscColPeakEntry, mscColLastValue=mscColLastValue, mscColRowStatusEntry=mscColRowStatusEntry, mscColAgentQueueSize=mscColAgentQueueSize, mscColLastTable=mscColLastTable, mscColRowStatus=mscColRowStatus, mscColTimesEntry=mscColTimesEntry, mscColSp=mscColSp, mscColPeakRowStatus=mscColPeakRowStatus, mscColStorageType=mscColStorageType, dataCollectionCapabilitiesCA=dataCollectionCapabilitiesCA, mscColSpRowStatus=mscColSpRowStatus, mscColComponentName=mscColComponentName, mscColSpIndex=mscColSpIndex, mscColRecordsRx=mscColRecordsRx, mscColSpStatsTable=mscColSpStatsTable, mscColProvTable=mscColProvTable, mscColSpStatsEntry=mscColSpStatsEntry, dataCollectionCapabilities=dataCollectionCapabilities, mscColRecordsDiscarded=mscColRecordsDiscarded)
|
for i in range(1,101) :
if(i % 2 != 0):
pass
else:
print(i,"is even number")
|
for i in range(1, 101):
if i % 2 != 0:
pass
else:
print(i, 'is even number')
|
class PriorityQueueBase:
''' abstract base class for a priority queue '''
class _Item:
__slots_ = '_key', '_value'
def __init__(self, k, v):
self._key = k
self._value = v
def __lt__(self, other):
return self._key < other._key
def is_empty(self):
return len(self) == 0
class UnsortedPriorityQueue(PriorityQueueBase):
''' a min-oriented priority queue implemented with unsorted list '''
def _find_min(self):
''' private function. Finds position holding smallest element in the queue'''
if self.is_empty():
raise ValueError('priority queue is empty')
small = self._data.first()
walk = self._data.after(small)
while walk is not None:
if walk.element() < small.element():
small = walk
walk = self._data.after(walk)
return small
def __init__(self):
self._data = PositionalList()
def __len__(self):
return len(self._data)
def add(self, key, value):
''' adds a key-value pair '''
self._data.add_last(self._Item(key, value))
def min(self):
''' inspect min key-value pair '''
if self.is_empty():
raise ValueError('empty')
p = self._find_min()
item = p.element()
return (item._key, item._value)
def remove_min(self):
''' remove and return min key-value pair '''
if self.is_empty():
raise ValueError('empty')
p = self._find_min()
item = self._data.delete(p)
return (item._key, item._value)
class SortedPriorityQueue(PriorityQueueBase):
def __init__(self):
self._data = PositionalList()
def __len__(self):
return len(self._data)
def add(self, key, value):
''' add a key-value pair '''
newest = self._Item(key, value)
walk = self._data.last()
while walk is not None and newest < walk.element():
walk = self._data.before(walk)
if walk is None:
self._data.add_first(newest)
else:
self._data.add_after(newest, walk)
def min(self):
''' inspects minimum key-value pair '''
if self.is_empty():
raise ValueError('empty')
item = self._data.first().element()
return (item._key, item._value)
def remove_min(self):
''' removes and returns min key-value pair '''
if self.is_empty():
raise ValueError('empty')
p = self._data.first()
item = self._data.delete(p)
return (item._key, item._value)
class MaxPriorityQueue(PriorityQueueBase):
def _left(self, j):
return 2 * j + 1
def _right(self, j):
return 2 * j + 2
def _parent(self, j):
return (j - 1) // 2
def _swap(self, i, j):
self._data[i], self._data[j] = self._data[j], self._data[i]
def _upheap(self, j):
parent = self._parent(j)
if parent >= 0 and self._data[j] > self._data[parent]:
self._swap(j, parent)
self._upheap(parent)
def _downheap(self, j):
left = self._left(j)
if left < len(self._data):
big = left
right = self._right(j)
if right < len(self._data) and self._data[right] > self._data[left]:
big = right
if self._data[big] > self._data[j]:
self._swap(big, j)
self._downheap(big)
def __len__(self):
return len(self._data)
def __init__(self, contents=()):
self._data = [self._Item(k, v) for k, v in contents]
if len(self._data) > 1:
self._heapify()
def _heapify(self):
'''
private function. Finds first non-leaf element and performs down heap for each element from first non-leaf to root
'''
first_non_leaf = self._parent(len(self._data) - 1)
for i in range(first_non_leaf, -1, -1):
self._downheap(i)
def add(self, key, value):
''' adds key-value pair'''
self._data.append(self._Item(key, value))
self._upheap(len(self._data) - 1)
def max(self):
''' inspects head of the queue
Head of the queue is the minimum element heap
'''
if self.is_empty():
raise ValueError('empty')
item = self._data[0]
return (item._key, item._value)
def remove_max(self):
'''
removes and returns head of the queue
head of the queue is the minimum element in the heap
'''
if self.is_empty():
raise ValueError('empty')
self._swap(0, len(self._data) - 1)
item = self._data.pop()
self._downheap(0)
return (item._key, item._value)
class MinPriorityQueue(PriorityQueueBase):
def _left(self, j):
return 2 * j + 1
def _right(self, j):
return 2 * j + 2
def _parent(self, j):
return (j - 1) // 2
def _swap(self, i, j):
self._data[i], self._data[j] = self._data[j], self._data[i]
def _upheap(self, j):
parent = self._parent(j)
if parent >= 0 and self._data[j] < self._data[parent]:
self._swap(j, parent)
self._upheap(parent)
def _downheap(self, j):
left = self._left(j)
if left < len(self._data):
small = left
right = self._right(j)
if right < len(self._data) and self._data[right] < self._data[left]:
small = right
if self._data[small] < self._data[j]:
self._swap(small, j)
self._downheap(small)
def __len__(self):
return len(self._data)
def __init__(self, contents=()):
self._data = [self._Item(k, v) for k, v in contents]
if len(self._data) > 1:
self._heapify()
def _heapify(self):
'''
private function. Finds first non-leaf element and performs down heap for each element from first non-leaf to root
'''
first_non_leaf = self._parent(len(self._data) - 1)
for i in range(first_non_leaf, -1, -1):
self._downheap(i)
def add(self, key, value):
''' adds key-value pair'''
self._data.append(self._Item(key, value))
self._upheap(len(self._data) - 1)
def min(self):
''' inspects head of the queue
Head of the queue is the minimum element heap
'''
if self.is_empty():
raise ValueError('empty')
item = self._data[0]
return (item._key, item._value)
def remove_min(self):
'''
removes and returns head of the queue
head of the queue is the minimum element in the heap
'''
if self.is_empty():
raise ValueError('empty')
self._swap(0, len(self._data) - 1)
item = self._data.pop()
self._downheap(0)
return (item._key, item._value)
class AdaptableMinPriorityQueue(MinPriorityQueue):
class Locator(MinPriorityQueue._Item):
__slots_ = '_index'
def __init__(self, k, v, j):
super().__init__(k, v)
self._index = j
def _swap(self, i, j):
super()._swap(i, j)
self._data[i]._index = i # reset locator index, post-swap
self._data[j]._index = j # reset locator index, post-swap
def _validate_loc(self, loc):
if not type(loc) is self.Locator:
raise TypeError('not locator')
j = loc._index
if not (0 <= j < len(self._data) and self._data[j] is loc):
raise ValueError('invalid locator')
return j
def _bubble(self, j):
if j > 0 and self._data[j] < self._data[self._parent(j)]:
self._upheap(j)
else:
self._downheap(j)
def add(self, key, value):
''' Add a key,value pair and returns Locator for new entry '''
token = self.Locator(key, value, len(self._data))
self._data.append(token)
self._upheap(len(self._data) - 1)
return token
def update(self, loc, newkey, newvalue):
''' Updates key and value for the entry identified by Locator loc '''
j = self._validate_loc(loc)
loc._key = newkey
loc._value = newvalue
self._bubble(j)
def remove(self, loc):
''' Remove and return (k,v) pair identified by Locator loc '''
j = self._validate_loc(loc)
if j == len(self._data) - 1:
self._data.pop()
else:
self._swap(j, len(self._data) - 1)
self._data.pop()
self._bubble(j)
return (loc._key, loc._value)
class AdaptableMaxPriorityQueue(MaxPriorityQueue):
class Locator(MaxPriorityQueue._Item):
__slots_ = '_index'
def __init__(self, k, v, j):
super().__init__(k, v)
self._index = j
def _swap(self, i, j):
super()._swap(i, j)
self._data[i]._index = i # reset locator index, post-swap
self._data[j]._index = j # reset locator index, post-swap
def _validate_loc(self, loc):
if not type(loc) is self.Locator:
raise TypeError('not locator')
j = loc._index
if not (0 <= j < len(self._data) and self._data[j] is loc):
raise ValueError('invalid locator')
return j
def _bubble(self, j):
if j > 0 and self._data[j] > self._data[self._parent(j)]:
self._upheap(j)
else:
self._downheap(j)
def add(self, key, value):
''' Add a key,value pair and returns Locator for new entry '''
token = self.Locator(key, value, len(self._data))
self._data.append(token)
self._upheap(len(self._data) - 1)
return token
def update(self, loc, newkey, newvalue):
''' Updates key and value for the entry identified by Locator loc '''
j = self._validate_loc(loc)
loc._key = newkey
loc._value = newvalue
self._bubble(j)
def remove(self, loc):
''' Remove and return (k,v) pair identified by Locator loc '''
j = self._validate_loc(loc)
if j == len(self._data) - 1:
self._data.pop()
else:
self._swap(j, len(self._data) - 1)
self._data.pop()
self._bubble(j)
return (loc._key, loc._value)
class Graph:
'''
representation of simple graph ( no self cycles and parallel edges ) using and adjacency map
'''
def __init__(self, directed=False):
self._outgoing = {}
self._incoming = {} if directed else self._outgoing
def is_directed(self):
'''
return True if graph is directed, False otherwise
'''
return self._incoming is not self._outgoing
def vertex_count(self):
'''
return count of all vertices in the graph
'''
return len(self._outgoing)
def vertices(self):
'''
return iteration over all vertices in the graph
'''
return self._outgoing.keys()
def edge_count(self):
'''
return count of all edges off the graph
'''
total = sum(len(self._outgoing[v]) for v in self._outgoing)
return total if self.is_directed() else total // 2
def edges(self):
'''
return a set of all edges of the graph
'''
result = set()
for secondary_map in self._outgoing.values():
result.update(secondary_map.values())
return result
def get_edge(self, u, v):
'''
return the edge from u to v, or None if not adjacent.
'''
return self._outgoing[u].get(v) # returns None if not adjacent
def degree(self, v, outgoing=True):
'''
Return number of (outgoing) edges incident to vertex v in the graph
If graph is directed, optional paramter used to count incoming edges
'''
adj = self._outgoing if outgoing else self._incoming
return len(adj[v])
def incident_edges(self, v, outgoing=True):
'''
Return all (outgoing) edges incident to vertex v in the graph.
If graph is directed, optional parameter used to request incoming edges.
'''
adj = self._outgoing if outgoing else self._incoming
for vertex in adj[v]:
yield vertex
def insert_edge(self, u, v, x):
'''
insert and return new edge from u to v with auxiliary element x
'''
if u not in self._outgoing:
self._outgoing[u] = {}
if v not in self._outgoing:
self._outgoing[v] = {}
if u not in self._incoming:
self._incoming[u] = {}
if v not in self._incoming:
self._incoming[v] = {}
self._outgoing[u][v] = x
self._incoming[v][u] = x
def remove_node(self, x):
del self._incoming[x]
for v in self.vertices():
if x in self._outgoing[v]:
del self._outgoing[v][x]
def farthest(self, s):
d = {}
cloud = {}
pq = AdaptableMaxPriorityQueue()
pqlocator = {}
for v in self.vertices():
if v is s:
d[v] = 0
else:
d[v] = -1
pqlocator[v] = pq.add(d[v], v)
while not pq.is_empty():
key, u = pq.remove_max()
cloud[u] = key
del pqlocator[u]
for v in self.incident_edges(u):
if v not in cloud:
wgt = self._outgoing[u][v]
if d[u] + wgt > d[v]:
d[v] = d[u] + wgt
pq.update(pqlocator[v], d[v], v)
max = 0
retnode = None
for node, cost in cloud.items():
if max < cost:
max = cost
retnode = node
return retnode
def distance(self, s, y):
d = {}
cloud = {}
pq = AdaptableMinPriorityQueue()
pqlocator = {}
for v in self.vertices():
if v is s:
d[v] = 0
else:
d[v] = float('inf')
pqlocator[v] = pq.add(d[v], v)
while not pq.is_empty():
key, u = pq.remove_min()
cloud[u] = key
del pqlocator[u]
for v in self.incident_edges(u):
if v not in cloud:
wgt = self._outgoing[u][v]
if d[u] + wgt < d[v]:
d[v] = d[u] + wgt
pq.update(pqlocator[v], d[v], v)
return cloud[y]
def dijkstra(g, s):
d = {}
cloud = {}
pq = AdaptableMinPriorityQueue()
pqlocator = {}
for v in g.vertices():
if v is s:
d[v] = 0
else:
d[v] = float('inf')
pqlocator[v] = pq.add(d[v], v)
while not pq.is_empty():
key, u = pq.remove_min()
cloud[u] = key
del pqlocator[u]
for e in g.incident_edges(u):
v = e.opposite(u)
if v not in cloud:
wgt = e.element()
if d[u] + wgt < d[v]:
d[v] = d[u] + wgt
pq.update(pqlocator[v], d[v], v)
return cloud
def query_one(g, x, w):
y = g.farthest(x)
n = g.vertex_count()
g.insert_edge(y, n+1, w)
def query_two(g, x, w):
n = g.vertex_count()
g.insert_edge(x, n+1, w)
def query_three(g, x):
y = g.farthest(x)
g.remove_node(y)
def query_four(g, x):
y = g.farthest(x)
return g.distance(x, y)
def cyclicalQueries(w, m):
g = Graph(directed=True)
n = len(w)
for i in range(n):
g.insert_edge((i+1) % n+1, (i+2) % n+1, w[i])
queries = []
for _ in range(m):
query = list(map(int, input().rstrip().split()))
queries.append(query)
result = []
for query in queries:
qtype = query[0]
if qtype == 1:
query_one(g, query[1], query[2])
elif qtype == 2:
query_two(g, query[1], query[2])
elif qtype == 3:
query_three(g, query[1])
elif qtype == 4:
result.append(query_four(g, query[1]))
else:
raise ValueError('input error')
return result
if __name__ == '__main__':
n = int(input())
w = list(map(int, input().rstrip().split()))
m = int(input())
result = cyclicalQueries(w, m)
print('\n'.join(map(str, result)))
|
class Priorityqueuebase:
""" abstract base class for a priority queue """
class _Item:
__slots_ = ('_key', '_value')
def __init__(self, k, v):
self._key = k
self._value = v
def __lt__(self, other):
return self._key < other._key
def is_empty(self):
return len(self) == 0
class Unsortedpriorityqueue(PriorityQueueBase):
""" a min-oriented priority queue implemented with unsorted list """
def _find_min(self):
""" private function. Finds position holding smallest element in the queue"""
if self.is_empty():
raise value_error('priority queue is empty')
small = self._data.first()
walk = self._data.after(small)
while walk is not None:
if walk.element() < small.element():
small = walk
walk = self._data.after(walk)
return small
def __init__(self):
self._data = positional_list()
def __len__(self):
return len(self._data)
def add(self, key, value):
""" adds a key-value pair """
self._data.add_last(self._Item(key, value))
def min(self):
""" inspect min key-value pair """
if self.is_empty():
raise value_error('empty')
p = self._find_min()
item = p.element()
return (item._key, item._value)
def remove_min(self):
""" remove and return min key-value pair """
if self.is_empty():
raise value_error('empty')
p = self._find_min()
item = self._data.delete(p)
return (item._key, item._value)
class Sortedpriorityqueue(PriorityQueueBase):
def __init__(self):
self._data = positional_list()
def __len__(self):
return len(self._data)
def add(self, key, value):
""" add a key-value pair """
newest = self._Item(key, value)
walk = self._data.last()
while walk is not None and newest < walk.element():
walk = self._data.before(walk)
if walk is None:
self._data.add_first(newest)
else:
self._data.add_after(newest, walk)
def min(self):
""" inspects minimum key-value pair """
if self.is_empty():
raise value_error('empty')
item = self._data.first().element()
return (item._key, item._value)
def remove_min(self):
""" removes and returns min key-value pair """
if self.is_empty():
raise value_error('empty')
p = self._data.first()
item = self._data.delete(p)
return (item._key, item._value)
class Maxpriorityqueue(PriorityQueueBase):
def _left(self, j):
return 2 * j + 1
def _right(self, j):
return 2 * j + 2
def _parent(self, j):
return (j - 1) // 2
def _swap(self, i, j):
(self._data[i], self._data[j]) = (self._data[j], self._data[i])
def _upheap(self, j):
parent = self._parent(j)
if parent >= 0 and self._data[j] > self._data[parent]:
self._swap(j, parent)
self._upheap(parent)
def _downheap(self, j):
left = self._left(j)
if left < len(self._data):
big = left
right = self._right(j)
if right < len(self._data) and self._data[right] > self._data[left]:
big = right
if self._data[big] > self._data[j]:
self._swap(big, j)
self._downheap(big)
def __len__(self):
return len(self._data)
def __init__(self, contents=()):
self._data = [self._Item(k, v) for (k, v) in contents]
if len(self._data) > 1:
self._heapify()
def _heapify(self):
"""
private function. Finds first non-leaf element and performs down heap for each element from first non-leaf to root
"""
first_non_leaf = self._parent(len(self._data) - 1)
for i in range(first_non_leaf, -1, -1):
self._downheap(i)
def add(self, key, value):
""" adds key-value pair"""
self._data.append(self._Item(key, value))
self._upheap(len(self._data) - 1)
def max(self):
""" inspects head of the queue
Head of the queue is the minimum element heap
"""
if self.is_empty():
raise value_error('empty')
item = self._data[0]
return (item._key, item._value)
def remove_max(self):
"""
removes and returns head of the queue
head of the queue is the minimum element in the heap
"""
if self.is_empty():
raise value_error('empty')
self._swap(0, len(self._data) - 1)
item = self._data.pop()
self._downheap(0)
return (item._key, item._value)
class Minpriorityqueue(PriorityQueueBase):
def _left(self, j):
return 2 * j + 1
def _right(self, j):
return 2 * j + 2
def _parent(self, j):
return (j - 1) // 2
def _swap(self, i, j):
(self._data[i], self._data[j]) = (self._data[j], self._data[i])
def _upheap(self, j):
parent = self._parent(j)
if parent >= 0 and self._data[j] < self._data[parent]:
self._swap(j, parent)
self._upheap(parent)
def _downheap(self, j):
left = self._left(j)
if left < len(self._data):
small = left
right = self._right(j)
if right < len(self._data) and self._data[right] < self._data[left]:
small = right
if self._data[small] < self._data[j]:
self._swap(small, j)
self._downheap(small)
def __len__(self):
return len(self._data)
def __init__(self, contents=()):
self._data = [self._Item(k, v) for (k, v) in contents]
if len(self._data) > 1:
self._heapify()
def _heapify(self):
"""
private function. Finds first non-leaf element and performs down heap for each element from first non-leaf to root
"""
first_non_leaf = self._parent(len(self._data) - 1)
for i in range(first_non_leaf, -1, -1):
self._downheap(i)
def add(self, key, value):
""" adds key-value pair"""
self._data.append(self._Item(key, value))
self._upheap(len(self._data) - 1)
def min(self):
""" inspects head of the queue
Head of the queue is the minimum element heap
"""
if self.is_empty():
raise value_error('empty')
item = self._data[0]
return (item._key, item._value)
def remove_min(self):
"""
removes and returns head of the queue
head of the queue is the minimum element in the heap
"""
if self.is_empty():
raise value_error('empty')
self._swap(0, len(self._data) - 1)
item = self._data.pop()
self._downheap(0)
return (item._key, item._value)
class Adaptableminpriorityqueue(MinPriorityQueue):
class Locator(MinPriorityQueue._Item):
__slots_ = '_index'
def __init__(self, k, v, j):
super().__init__(k, v)
self._index = j
def _swap(self, i, j):
super()._swap(i, j)
self._data[i]._index = i
self._data[j]._index = j
def _validate_loc(self, loc):
if not type(loc) is self.Locator:
raise type_error('not locator')
j = loc._index
if not (0 <= j < len(self._data) and self._data[j] is loc):
raise value_error('invalid locator')
return j
def _bubble(self, j):
if j > 0 and self._data[j] < self._data[self._parent(j)]:
self._upheap(j)
else:
self._downheap(j)
def add(self, key, value):
""" Add a key,value pair and returns Locator for new entry """
token = self.Locator(key, value, len(self._data))
self._data.append(token)
self._upheap(len(self._data) - 1)
return token
def update(self, loc, newkey, newvalue):
""" Updates key and value for the entry identified by Locator loc """
j = self._validate_loc(loc)
loc._key = newkey
loc._value = newvalue
self._bubble(j)
def remove(self, loc):
""" Remove and return (k,v) pair identified by Locator loc """
j = self._validate_loc(loc)
if j == len(self._data) - 1:
self._data.pop()
else:
self._swap(j, len(self._data) - 1)
self._data.pop()
self._bubble(j)
return (loc._key, loc._value)
class Adaptablemaxpriorityqueue(MaxPriorityQueue):
class Locator(MaxPriorityQueue._Item):
__slots_ = '_index'
def __init__(self, k, v, j):
super().__init__(k, v)
self._index = j
def _swap(self, i, j):
super()._swap(i, j)
self._data[i]._index = i
self._data[j]._index = j
def _validate_loc(self, loc):
if not type(loc) is self.Locator:
raise type_error('not locator')
j = loc._index
if not (0 <= j < len(self._data) and self._data[j] is loc):
raise value_error('invalid locator')
return j
def _bubble(self, j):
if j > 0 and self._data[j] > self._data[self._parent(j)]:
self._upheap(j)
else:
self._downheap(j)
def add(self, key, value):
""" Add a key,value pair and returns Locator for new entry """
token = self.Locator(key, value, len(self._data))
self._data.append(token)
self._upheap(len(self._data) - 1)
return token
def update(self, loc, newkey, newvalue):
""" Updates key and value for the entry identified by Locator loc """
j = self._validate_loc(loc)
loc._key = newkey
loc._value = newvalue
self._bubble(j)
def remove(self, loc):
""" Remove and return (k,v) pair identified by Locator loc """
j = self._validate_loc(loc)
if j == len(self._data) - 1:
self._data.pop()
else:
self._swap(j, len(self._data) - 1)
self._data.pop()
self._bubble(j)
return (loc._key, loc._value)
class Graph:
"""
representation of simple graph ( no self cycles and parallel edges ) using and adjacency map
"""
def __init__(self, directed=False):
self._outgoing = {}
self._incoming = {} if directed else self._outgoing
def is_directed(self):
"""
return True if graph is directed, False otherwise
"""
return self._incoming is not self._outgoing
def vertex_count(self):
"""
return count of all vertices in the graph
"""
return len(self._outgoing)
def vertices(self):
"""
return iteration over all vertices in the graph
"""
return self._outgoing.keys()
def edge_count(self):
"""
return count of all edges off the graph
"""
total = sum((len(self._outgoing[v]) for v in self._outgoing))
return total if self.is_directed() else total // 2
def edges(self):
"""
return a set of all edges of the graph
"""
result = set()
for secondary_map in self._outgoing.values():
result.update(secondary_map.values())
return result
def get_edge(self, u, v):
"""
return the edge from u to v, or None if not adjacent.
"""
return self._outgoing[u].get(v)
def degree(self, v, outgoing=True):
"""
Return number of (outgoing) edges incident to vertex v in the graph
If graph is directed, optional paramter used to count incoming edges
"""
adj = self._outgoing if outgoing else self._incoming
return len(adj[v])
def incident_edges(self, v, outgoing=True):
"""
Return all (outgoing) edges incident to vertex v in the graph.
If graph is directed, optional parameter used to request incoming edges.
"""
adj = self._outgoing if outgoing else self._incoming
for vertex in adj[v]:
yield vertex
def insert_edge(self, u, v, x):
"""
insert and return new edge from u to v with auxiliary element x
"""
if u not in self._outgoing:
self._outgoing[u] = {}
if v not in self._outgoing:
self._outgoing[v] = {}
if u not in self._incoming:
self._incoming[u] = {}
if v not in self._incoming:
self._incoming[v] = {}
self._outgoing[u][v] = x
self._incoming[v][u] = x
def remove_node(self, x):
del self._incoming[x]
for v in self.vertices():
if x in self._outgoing[v]:
del self._outgoing[v][x]
def farthest(self, s):
d = {}
cloud = {}
pq = adaptable_max_priority_queue()
pqlocator = {}
for v in self.vertices():
if v is s:
d[v] = 0
else:
d[v] = -1
pqlocator[v] = pq.add(d[v], v)
while not pq.is_empty():
(key, u) = pq.remove_max()
cloud[u] = key
del pqlocator[u]
for v in self.incident_edges(u):
if v not in cloud:
wgt = self._outgoing[u][v]
if d[u] + wgt > d[v]:
d[v] = d[u] + wgt
pq.update(pqlocator[v], d[v], v)
max = 0
retnode = None
for (node, cost) in cloud.items():
if max < cost:
max = cost
retnode = node
return retnode
def distance(self, s, y):
d = {}
cloud = {}
pq = adaptable_min_priority_queue()
pqlocator = {}
for v in self.vertices():
if v is s:
d[v] = 0
else:
d[v] = float('inf')
pqlocator[v] = pq.add(d[v], v)
while not pq.is_empty():
(key, u) = pq.remove_min()
cloud[u] = key
del pqlocator[u]
for v in self.incident_edges(u):
if v not in cloud:
wgt = self._outgoing[u][v]
if d[u] + wgt < d[v]:
d[v] = d[u] + wgt
pq.update(pqlocator[v], d[v], v)
return cloud[y]
def dijkstra(g, s):
d = {}
cloud = {}
pq = adaptable_min_priority_queue()
pqlocator = {}
for v in g.vertices():
if v is s:
d[v] = 0
else:
d[v] = float('inf')
pqlocator[v] = pq.add(d[v], v)
while not pq.is_empty():
(key, u) = pq.remove_min()
cloud[u] = key
del pqlocator[u]
for e in g.incident_edges(u):
v = e.opposite(u)
if v not in cloud:
wgt = e.element()
if d[u] + wgt < d[v]:
d[v] = d[u] + wgt
pq.update(pqlocator[v], d[v], v)
return cloud
def query_one(g, x, w):
y = g.farthest(x)
n = g.vertex_count()
g.insert_edge(y, n + 1, w)
def query_two(g, x, w):
n = g.vertex_count()
g.insert_edge(x, n + 1, w)
def query_three(g, x):
y = g.farthest(x)
g.remove_node(y)
def query_four(g, x):
y = g.farthest(x)
return g.distance(x, y)
def cyclical_queries(w, m):
g = graph(directed=True)
n = len(w)
for i in range(n):
g.insert_edge((i + 1) % n + 1, (i + 2) % n + 1, w[i])
queries = []
for _ in range(m):
query = list(map(int, input().rstrip().split()))
queries.append(query)
result = []
for query in queries:
qtype = query[0]
if qtype == 1:
query_one(g, query[1], query[2])
elif qtype == 2:
query_two(g, query[1], query[2])
elif qtype == 3:
query_three(g, query[1])
elif qtype == 4:
result.append(query_four(g, query[1]))
else:
raise value_error('input error')
return result
if __name__ == '__main__':
n = int(input())
w = list(map(int, input().rstrip().split()))
m = int(input())
result = cyclical_queries(w, m)
print('\n'.join(map(str, result)))
|
class Solution:
"""
@param A : a list of integers
@param target : an integer to be inserted
@return : an integer
"""
def searchInsert(self, A, target):
# write your code here
l, r = 0, len(A) - 1
while l <= r:
m = (l + r) / 2
if A[m] == target:
return m
elif A[m] > target:
r = m - 1
else:
l = m + 1
return l
sl = Solution()
A = [1, 3, 5, 6]
target = [5, 2, 7, 0]
for t in target:
print
sl.searchInsert(A, t)
|
class Solution:
"""
@param A : a list of integers
@param target : an integer to be inserted
@return : an integer
"""
def search_insert(self, A, target):
(l, r) = (0, len(A) - 1)
while l <= r:
m = (l + r) / 2
if A[m] == target:
return m
elif A[m] > target:
r = m - 1
else:
l = m + 1
return l
sl = solution()
a = [1, 3, 5, 6]
target = [5, 2, 7, 0]
for t in target:
print
sl.searchInsert(A, t)
|
# AUTOGENERATED BY NBDEV! DO NOT EDIT!
__all__ = ["index", "modules", "custom_doc_links", "git_url"]
index = {"example_func": "00_core.ipynb",
"process_data": "01_cli.ipynb",
"train": "01_cli.ipynb",
"evaluate": "01_cli.ipynb",
"reproduce": "01_cli.ipynb"}
modules = ["core.py",
"cli.py"]
doc_url = "https://wm-semeru.github.io/mlproj_template/"
git_url = "https://github.com/wm-semeru/mlproj_template/tree/main/"
def custom_doc_links(name): return None
|
__all__ = ['index', 'modules', 'custom_doc_links', 'git_url']
index = {'example_func': '00_core.ipynb', 'process_data': '01_cli.ipynb', 'train': '01_cli.ipynb', 'evaluate': '01_cli.ipynb', 'reproduce': '01_cli.ipynb'}
modules = ['core.py', 'cli.py']
doc_url = 'https://wm-semeru.github.io/mlproj_template/'
git_url = 'https://github.com/wm-semeru/mlproj_template/tree/main/'
def custom_doc_links(name):
return None
|
class RPGinfo():
author = 'BigBoi'
def __init__(self,name):
self.title = name
def welcome(self):
print("Welcome to " + self.title)
@staticmethod
def info():
print("Made using my amazing powers and Raseberry Pi's awesome team")
@classmethod
def credits(cls,name):
print("Thanks for playing "+str(name))
print("Created by "+cls.author)
|
class Rpginfo:
author = 'BigBoi'
def __init__(self, name):
self.title = name
def welcome(self):
print('Welcome to ' + self.title)
@staticmethod
def info():
print("Made using my amazing powers and Raseberry Pi's awesome team")
@classmethod
def credits(cls, name):
print('Thanks for playing ' + str(name))
print('Created by ' + cls.author)
|
def previous_answer():
#1.
num1 = int(input("Please enter your number!"))
if num1 % 2 == 0:
print("Your number is EVEN number!")
else:
print("Your number is ODD number!")
#2.
num2 = int(input("Please enter second number!"))
num3 = int(input("Please enter third number!"))
if num2 % num3 == 0:
print("second number is divisible by third number perfectly!")
else:
print("Second number is not divisible by third number!")
# Current answer starts here.
num = int(input('Please enter your number'))
if num % 2 == 0:
if num % 4 == 0:
print('It is an even number and also a multiple of 4')
else:
print('It is an even number')
else:
print('It is an odd number')
|
def previous_answer():
num1 = int(input('Please enter your number!'))
if num1 % 2 == 0:
print('Your number is EVEN number!')
else:
print('Your number is ODD number!')
num2 = int(input('Please enter second number!'))
num3 = int(input('Please enter third number!'))
if num2 % num3 == 0:
print('second number is divisible by third number perfectly!')
else:
print('Second number is not divisible by third number!')
num = int(input('Please enter your number'))
if num % 2 == 0:
if num % 4 == 0:
print('It is an even number and also a multiple of 4')
else:
print('It is an even number')
else:
print('It is an odd number')
|
merge_tags = {
"StudyDate": 0x00080020,
"StudyTime": 0x00080030,
"AccessionNumber": 0x00080050,
"ReferringPhysicianName": 0x00080090,
"StudyInstanceUID": 0x0020000D,
"StudyID": 0x00200010,
"Modality": 0x00080060,
# "ModalitiesInStudy": ,
"SeriesInstanceUID": 0x0020000E,
"SeriesNumber": 0x00200011,
"SOPClassUID": 0x00080016,
"SOPInstanceUID": 0x00080018,
# "InstanceNumber": ,
"PatientAge": 0x00101010,
"PatientName": 0x00100010,
"PatientID": 0x00100020,
"PatientSex": 0x00100040,
"StudyDate": 0x00080020,
"NumberOfStudyRelatedSeries": 0x00201206,
"NumberOfStudyRelatedInstances": 0x00201208,
"BodyPartExamined": 0x00180015,
}
class InstanceExistedException(Exception):
pass
|
merge_tags = {'StudyDate': 524320, 'StudyTime': 524336, 'AccessionNumber': 524368, 'ReferringPhysicianName': 524432, 'StudyInstanceUID': 2097165, 'StudyID': 2097168, 'Modality': 524384, 'SeriesInstanceUID': 2097166, 'SeriesNumber': 2097169, 'SOPClassUID': 524310, 'SOPInstanceUID': 524312, 'PatientAge': 1052688, 'PatientName': 1048592, 'PatientID': 1048608, 'PatientSex': 1048640, 'StudyDate': 524320, 'NumberOfStudyRelatedSeries': 2101766, 'NumberOfStudyRelatedInstances': 2101768, 'BodyPartExamined': 1572885}
class Instanceexistedexception(Exception):
pass
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.