blob_id
stringlengths 40
40
| directory_id
stringlengths 40
40
| path
stringlengths 3
616
| content_id
stringlengths 40
40
| detected_licenses
sequencelengths 0
112
| license_type
stringclasses 2
values | repo_name
stringlengths 5
115
| snapshot_id
stringlengths 40
40
| revision_id
stringlengths 40
40
| branch_name
stringclasses 777
values | visit_date
timestamp[us]date 2015-08-06 10:31:46
2023-09-06 10:44:38
| revision_date
timestamp[us]date 1970-01-01 02:38:32
2037-05-03 13:00:00
| committer_date
timestamp[us]date 1970-01-01 02:38:32
2023-09-06 01:08:06
| github_id
int64 4.92k
681M
⌀ | star_events_count
int64 0
209k
| fork_events_count
int64 0
110k
| gha_license_id
stringclasses 22
values | gha_event_created_at
timestamp[us]date 2012-06-04 01:52:49
2023-09-14 21:59:50
⌀ | gha_created_at
timestamp[us]date 2008-05-22 07:58:19
2023-08-21 12:35:19
⌀ | gha_language
stringclasses 149
values | src_encoding
stringclasses 26
values | language
stringclasses 1
value | is_vendor
bool 2
classes | is_generated
bool 2
classes | length_bytes
int64 3
10.2M
| extension
stringclasses 188
values | content
stringlengths 3
10.2M
| authors
sequencelengths 1
1
| author_id
stringlengths 1
132
|
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
f13e42f723dfc011017c86d5d9d5266a52e16dcf | ba694353a3cb1cfd02a6773b40f693386d0dba39 | /sdk/python/pulumi_google_native/dataform/v1beta1/repository_workspace_iam_member.py | a82ed59fcb5af3a81d30a219472de2490307c4b6 | [
"BSD-3-Clause",
"Apache-2.0"
] | permissive | pulumi/pulumi-google-native | cc57af8bd3d1d6b76f1f48333ed1f1b31d56f92b | 124d255e5b7f5440d1ef63c9a71e4cc1d661cd10 | refs/heads/master | 2023-08-25T00:18:00.300230 | 2023-07-20T04:25:48 | 2023-07-20T04:25:48 | 323,680,373 | 69 | 16 | Apache-2.0 | 2023-09-13T00:28:04 | 2020-12-22T16:39:01 | Python | UTF-8 | Python | false | false | 13,541 | py | # coding=utf-8
# *** WARNING: this file was generated by the Pulumi SDK Generator. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import copy
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union, overload
from ... import _utilities
from ... import iam as _iam
__all__ = ['RepositoryWorkspaceIamMemberArgs', 'RepositoryWorkspaceIamMember']
@pulumi.input_type
class RepositoryWorkspaceIamMemberArgs:
def __init__(__self__, *,
member: pulumi.Input[str],
name: pulumi.Input[str],
role: pulumi.Input[str],
condition: Optional[pulumi.Input['_iam.v1.ConditionArgs']] = None):
"""
The set of arguments for constructing a RepositoryWorkspaceIamMember resource.
:param pulumi.Input[str] member: Identity that will be granted the privilege in role. The entry can have one of the following values:
* user:{emailid}: An email address that represents a specific Google account. For example, [email protected] or [email protected].
* serviceAccount:{emailid}: An email address that represents a service account. For example, [email protected].
* group:{emailid}: An email address that represents a Google group. For example, [email protected].
* domain:{domain}: A G Suite domain (primary, instead of alias) name that represents all the users of that domain. For example, google.com or example.com.
:param pulumi.Input[str] name: The name of the resource to manage IAM policies for.
:param pulumi.Input[str] role: The role that should be applied.
:param pulumi.Input['_iam.v1.ConditionArgs'] condition: An IAM Condition for a given binding.
"""
pulumi.set(__self__, "member", member)
pulumi.set(__self__, "name", name)
pulumi.set(__self__, "role", role)
if condition is not None:
pulumi.set(__self__, "condition", condition)
@property
@pulumi.getter
def member(self) -> pulumi.Input[str]:
"""
Identity that will be granted the privilege in role. The entry can have one of the following values:
* user:{emailid}: An email address that represents a specific Google account. For example, [email protected] or [email protected].
* serviceAccount:{emailid}: An email address that represents a service account. For example, [email protected].
* group:{emailid}: An email address that represents a Google group. For example, [email protected].
* domain:{domain}: A G Suite domain (primary, instead of alias) name that represents all the users of that domain. For example, google.com or example.com.
"""
return pulumi.get(self, "member")
@member.setter
def member(self, value: pulumi.Input[str]):
pulumi.set(self, "member", value)
@property
@pulumi.getter
def name(self) -> pulumi.Input[str]:
"""
The name of the resource to manage IAM policies for.
"""
return pulumi.get(self, "name")
@name.setter
def name(self, value: pulumi.Input[str]):
pulumi.set(self, "name", value)
@property
@pulumi.getter
def role(self) -> pulumi.Input[str]:
"""
The role that should be applied.
"""
return pulumi.get(self, "role")
@role.setter
def role(self, value: pulumi.Input[str]):
pulumi.set(self, "role", value)
@property
@pulumi.getter
def condition(self) -> Optional[pulumi.Input['_iam.v1.ConditionArgs']]:
"""
An IAM Condition for a given binding.
"""
return pulumi.get(self, "condition")
@condition.setter
def condition(self, value: Optional[pulumi.Input['_iam.v1.ConditionArgs']]):
pulumi.set(self, "condition", value)
class RepositoryWorkspaceIamMember(pulumi.CustomResource):
@overload
def __init__(__self__,
resource_name: str,
opts: Optional[pulumi.ResourceOptions] = None,
condition: Optional[pulumi.Input[pulumi.InputType['_iam.v1.ConditionArgs']]] = None,
member: Optional[pulumi.Input[str]] = None,
name: Optional[pulumi.Input[str]] = None,
role: Optional[pulumi.Input[str]] = None,
__props__=None):
"""
Sets the access control policy on the specified resource. Replaces any existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors.
:param str resource_name: The name of the resource.
:param pulumi.ResourceOptions opts: Options for the resource.
:param pulumi.Input[pulumi.InputType['_iam.v1.ConditionArgs']] condition: An IAM Condition for a given binding.
:param pulumi.Input[str] member: Identity that will be granted the privilege in role. The entry can have one of the following values:
* user:{emailid}: An email address that represents a specific Google account. For example, [email protected] or [email protected].
* serviceAccount:{emailid}: An email address that represents a service account. For example, [email protected].
* group:{emailid}: An email address that represents a Google group. For example, [email protected].
* domain:{domain}: A G Suite domain (primary, instead of alias) name that represents all the users of that domain. For example, google.com or example.com.
:param pulumi.Input[str] name: The name of the resource to manage IAM policies for.
:param pulumi.Input[str] role: The role that should be applied.
"""
...
@overload
def __init__(__self__,
resource_name: str,
args: RepositoryWorkspaceIamMemberArgs,
opts: Optional[pulumi.ResourceOptions] = None):
"""
Sets the access control policy on the specified resource. Replaces any existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors.
:param str resource_name: The name of the resource.
:param RepositoryWorkspaceIamMemberArgs args: The arguments to use to populate this resource's properties.
:param pulumi.ResourceOptions opts: Options for the resource.
"""
...
def __init__(__self__, resource_name: str, *args, **kwargs):
resource_args, opts = _utilities.get_resource_args_opts(RepositoryWorkspaceIamMemberArgs, pulumi.ResourceOptions, *args, **kwargs)
if resource_args is not None:
__self__._internal_init(resource_name, opts, **resource_args.__dict__)
else:
__self__._internal_init(resource_name, *args, **kwargs)
def _internal_init(__self__,
resource_name: str,
opts: Optional[pulumi.ResourceOptions] = None,
condition: Optional[pulumi.Input[pulumi.InputType['_iam.v1.ConditionArgs']]] = None,
member: Optional[pulumi.Input[str]] = None,
name: Optional[pulumi.Input[str]] = None,
role: Optional[pulumi.Input[str]] = None,
__props__=None):
opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts)
if not isinstance(opts, pulumi.ResourceOptions):
raise TypeError('Expected resource options to be a ResourceOptions instance')
if opts.id is None:
if __props__ is not None:
raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource')
__props__ = RepositoryWorkspaceIamMemberArgs.__new__(RepositoryWorkspaceIamMemberArgs)
__props__.__dict__["condition"] = condition
if member is None and not opts.urn:
raise TypeError("Missing required property 'member'")
__props__.__dict__["member"] = member
if name is None and not opts.urn:
raise TypeError("Missing required property 'name'")
__props__.__dict__["name"] = name
if role is None and not opts.urn:
raise TypeError("Missing required property 'role'")
__props__.__dict__["role"] = role
__props__.__dict__["etag"] = None
__props__.__dict__["project"] = None
super(RepositoryWorkspaceIamMember, __self__).__init__(
'google-native:dataform/v1beta1:RepositoryWorkspaceIamMember',
resource_name,
__props__,
opts)
@staticmethod
def get(resource_name: str,
id: pulumi.Input[str],
opts: Optional[pulumi.ResourceOptions] = None) -> 'RepositoryWorkspaceIamMember':
"""
Get an existing RepositoryWorkspaceIamMember resource's state with the given name, id, and optional extra
properties used to qualify the lookup.
:param str resource_name: The unique name of the resulting resource.
:param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
:param pulumi.ResourceOptions opts: Options for the resource.
"""
opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
__props__ = RepositoryWorkspaceIamMemberArgs.__new__(RepositoryWorkspaceIamMemberArgs)
__props__.__dict__["condition"] = None
__props__.__dict__["etag"] = None
__props__.__dict__["member"] = None
__props__.__dict__["name"] = None
__props__.__dict__["project"] = None
__props__.__dict__["role"] = None
return RepositoryWorkspaceIamMember(resource_name, opts=opts, __props__=__props__)
@property
@pulumi.getter
def condition(self) -> pulumi.Output[Optional['_iam.v1.outputs.Condition']]:
"""
An IAM Condition for a given binding. See https://cloud.google.com/iam/docs/conditions-overview for additional details.
"""
return pulumi.get(self, "condition")
@property
@pulumi.getter
def etag(self) -> pulumi.Output[str]:
"""
The etag of the resource's IAM policy.
"""
return pulumi.get(self, "etag")
@property
@pulumi.getter
def member(self) -> pulumi.Output[str]:
"""
Specifies the principals requesting access for a Google Cloud resource. `members` can have the following values: * `allUsers`: A special identifier that represents anyone who is on the internet; with or without a Google account. * `allAuthenticatedUsers`: A special identifier that represents anyone who is authenticated with a Google account or a service account. Does not include identities that come from external identity providers (IdPs) through identity federation. * `user:{emailid}`: An email address that represents a specific Google account. For example, `[email protected]` . * `serviceAccount:{emailid}`: An email address that represents a Google service account. For example, `[email protected]`. * `serviceAccount:{projectid}.svc.id.goog[{namespace}/{kubernetes-sa}]`: An identifier for a [Kubernetes service account](https://cloud.google.com/kubernetes-engine/docs/how-to/kubernetes-service-accounts). For example, `my-project.svc.id.goog[my-namespace/my-kubernetes-sa]`. * `group:{emailid}`: An email address that represents a Google group. For example, `[email protected]`. * `domain:{domain}`: The G Suite domain (primary) that represents all the users of that domain. For example, `google.com` or `example.com`. * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a user that has been recently deleted. For example, `[email protected]?uid=123456789012345678901`. If the user is recovered, this value reverts to `user:{emailid}` and the recovered user retains the role in the binding. * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a service account that has been recently deleted. For example, `[email protected]?uid=123456789012345678901`. If the service account is undeleted, this value reverts to `serviceAccount:{emailid}` and the undeleted service account retains the role in the binding. * `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a Google group that has been recently deleted. For example, `[email protected]?uid=123456789012345678901`. If the group is recovered, this value reverts to `group:{emailid}` and the recovered group retains the role in the binding.
"""
return pulumi.get(self, "member")
@property
@pulumi.getter
def name(self) -> pulumi.Output[str]:
"""
The name of the resource to manage IAM policies for.
"""
return pulumi.get(self, "name")
@property
@pulumi.getter
def project(self) -> pulumi.Output[str]:
"""
The project in which the resource belongs. If it is not provided, a default will be supplied.
"""
return pulumi.get(self, "project")
@property
@pulumi.getter
def role(self) -> pulumi.Output[str]:
"""
Role that is assigned to the list of `members`, or principals. For example, `roles/viewer`, `roles/editor`, or `roles/owner`.
"""
return pulumi.get(self, "role")
| [
"[email protected]"
] | |
b0e675a66588e8634b1b1524e860f5399ed48426 | 051910d10f4597cd1148207b1f5f2030c01d7ddf | /py/src/consts.py | e63df96ef48d5d3fb483637f645611bd156ae172 | [
"MIT"
] | permissive | LaplaceKorea/rosettaboy | 831cd285e1a305690f2ee76861ccff91d77fa4a7 | fb238cb8b73eb7903ce8b9b298896c549e75fccb | refs/heads/master | 2023-08-15T15:41:36.459790 | 2021-10-12T12:13:55 | 2021-10-12T12:13:55 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,381 | py | class Mem:
VBLANK_HANDLER = 0x40
LCD_HANDLER = 0x48
TIMER_HANDLER = 0x50
SERIAL_HANDLER = 0x58
JOYPAD_HANDLER = 0x60
VRAM_BASE = 0x8000
TILE_DATA_TABLE_0 = 0x8800
TILE_DATA_TABLE_1 = 0x8000
BACKGROUND_MAP_0 = 0x9800
BACKGROUND_MAP_1 = 0x9C00
WINDOW_MAP_0 = 0x9800
WINDOW_MAP_1 = 0x9C00
OAM_BASE = 0xFE00
JOYP = 0xFF00
SB = 0xFF01 # Serial Data
SC = 0xFF02 # Serial Control
DIV = 0xFF04
TIMA = 0xFF05
TMA = 0xFF06
TAC = 0xFF07
IF = 0xFF0F
NR10 = 0xFF10
NR11 = 0xFF11
NR12 = 0xFF12
NR13 = 0xFF13
NR14 = 0xFF14
NR20 = 0xFF15
NR21 = 0xFF16
NR22 = 0xFF17
NR23 = 0xFF18
NR24 = 0xFF19
NR30 = 0xFF1A
NR31 = 0xFF1B
NR32 = 0xFF1C
NR33 = 0xFF1D
NR34 = 0xFF1E
NR40 = 0xFF1F
NR41 = 0xFF20
NR42 = 0xFF21
NR43 = 0xFF22
NR44 = 0xFF23
NR50 = 0xFF24
NR51 = 0xFF25
NR52 = 0xFF26
LCDC = 0xFF40
STAT = 0xFF41
SCY = 0xFF42 # SCROLL_Y
SCX = 0xFF43 # SCROLL_X
LY = 0xFF44 # LY aka currently drawn line 0-153 >144 = vblank
LCY = 0xFF45
DMA = 0xFF46
BGP = 0xFF47
OBP0 = 0xFF48
OBP1 = 0xFF49
WY = 0xFF4A
WX = 0xFF4B
BOOT = 0xFF50
IE = 0xFFFF
class Interrupt:
VBLANK = 1 << 0
STAT = 1 << 1
TIMER = 1 << 2
SERIAL = 1 << 3
JOYPAD = 1 << 4
| [
"[email protected]"
] | |
a7a7d34db8b105e67c352abaceb211f4a7e084c3 | a97f789530412fc1cb83170a11811f294b139ee8 | /疯狂Python讲义/codes/12/12.6/writebytes_test.py | 36e61f54a785fdf550bc07aebcbd19870b13ad75 | [] | no_license | baidongbin/python | 3cebf2cc342a15b38bf20c23f941e6887dac187a | 1c1398bff1f1820afdd8ddfa0c95ccebb4ee836f | refs/heads/master | 2021-07-21T19:23:32.860444 | 2020-03-07T11:55:30 | 2020-03-07T11:55:30 | 195,909,272 | 0 | 1 | null | 2020-07-21T00:51:24 | 2019-07-09T01:24:31 | Python | UTF-8 | Python | false | false | 413 | py | import os
f = open('y.txt', 'wb+')
# os.linesep 代表当前操作系统上的换行符
f.write(('我爱Python' + os.linesep).encode('utf-8'))
f.writelines((('土门壁甚坚,' + os.linesep).encode('utf-8'),
('杏园度亦难。' + os.linesep).encode('utf-8'),
('势异邺城下,' + os.linesep).encode('utf-8'),
('纵死时犹宽。' + os.linesep).encode('utf-8')))
| [
"[email protected]"
] | |
9606fc118d763b54512c8278ba1755a594d973cb | 61e98b0302a43ab685be4c255b4ecf2979db55b6 | /sdks/python/.tox/docs/lib/python2.7/site-packages/sphinx/environment/__init__.py | f760583ece5807e4a028e2fb675ec70d4f9836db | [
"BSD-3-Clause",
"EPL-2.0",
"CDDL-1.0",
"Apache-2.0",
"WTFPL",
"GPL-2.0-only",
"BSD-2-Clause",
"MIT",
"LicenseRef-scancode-unknown-license-reference",
"CDDL-1.1",
"Classpath-exception-2.0"
] | permissive | dzenyu/kafka | 5631c05a6de6e288baeb8955bdddf2ff60ec2a0e | d69a24bce8d108f43376271f89ecc3b81c7b6622 | refs/heads/master | 2021-07-16T12:31:09.623509 | 2021-06-28T18:22:16 | 2021-06-28T18:22:16 | 198,724,535 | 0 | 0 | Apache-2.0 | 2019-07-24T23:51:47 | 2019-07-24T23:51:46 | null | UTF-8 | Python | false | false | 50,863 | py | # -*- coding: utf-8 -*-
"""
sphinx.environment
~~~~~~~~~~~~~~~~~~
Global creation environment.
:copyright: Copyright 2007-2016 by the Sphinx team, see AUTHORS.
:license: BSD, see LICENSE for details.
"""
import re
import os
import sys
import time
import types
import codecs
import fnmatch
from os import path
from glob import glob
from six import iteritems, itervalues, class_types, next
from six.moves import cPickle as pickle
from docutils import nodes
from docutils.io import NullOutput
from docutils.core import Publisher
from docutils.utils import Reporter, relative_path, get_source_line
from docutils.parsers.rst import roles
from docutils.parsers.rst.languages import en as english
from docutils.frontend import OptionParser
from sphinx import addnodes
from sphinx.io import SphinxStandaloneReader, SphinxDummyWriter, SphinxFileInput
from sphinx.util import get_matching_docs, docname_join, FilenameUniqDict
from sphinx.util.nodes import clean_astext, WarningStream, is_translatable, \
process_only_nodes
from sphinx.util.osutil import SEP, getcwd, fs_encoding, ensuredir
from sphinx.util.images import guess_mimetype
from sphinx.util.i18n import find_catalog_files, get_image_filename_for_language, \
search_image_for_language
from sphinx.util.console import bold, purple
from sphinx.util.docutils import sphinx_domains
from sphinx.util.matching import compile_matchers
from sphinx.util.parallel import ParallelTasks, parallel_available, make_chunks
from sphinx.util.websupport import is_commentable
from sphinx.errors import SphinxError, ExtensionError
from sphinx.versioning import add_uids, merge_doctrees
from sphinx.transforms import SphinxContentsFilter
from sphinx.environment.managers.indexentries import IndexEntries
from sphinx.environment.managers.toctree import Toctree
default_settings = {
'embed_stylesheet': False,
'cloak_email_addresses': True,
'pep_base_url': 'https://www.python.org/dev/peps/',
'rfc_base_url': 'https://tools.ietf.org/html/',
'input_encoding': 'utf-8-sig',
'doctitle_xform': False,
'sectsubtitle_xform': False,
'halt_level': 5,
'file_insertion_enabled': True,
}
# This is increased every time an environment attribute is added
# or changed to properly invalidate pickle files.
#
# NOTE: increase base version by 2 to have distinct numbers for Py2 and 3
ENV_VERSION = 50 + (sys.version_info[0] - 2)
dummy_reporter = Reporter('', 4, 4)
versioning_conditions = {
'none': False,
'text': is_translatable,
'commentable': is_commentable,
}
class NoUri(Exception):
"""Raised by get_relative_uri if there is no URI available."""
pass
class BuildEnvironment(object):
"""
The environment in which the ReST files are translated.
Stores an inventory of cross-file targets and provides doctree
transformations to resolve links to them.
"""
# --------- ENVIRONMENT PERSISTENCE ----------------------------------------
@staticmethod
def frompickle(srcdir, config, filename):
with open(filename, 'rb') as picklefile:
env = pickle.load(picklefile)
if env.version != ENV_VERSION:
raise IOError('build environment version not current')
if env.srcdir != srcdir:
raise IOError('source directory has changed')
env.config.values = config.values
return env
def topickle(self, filename):
# remove unpicklable attributes
warnfunc = self._warnfunc
self.set_warnfunc(None)
values = self.config.values
del self.config.values
domains = self.domains
del self.domains
managers = self.detach_managers()
# remove potentially pickling-problematic values from config
for key, val in list(vars(self.config).items()):
if key.startswith('_') or \
isinstance(val, types.ModuleType) or \
isinstance(val, types.FunctionType) or \
isinstance(val, class_types):
del self.config[key]
with open(filename, 'wb') as picklefile:
pickle.dump(self, picklefile, pickle.HIGHEST_PROTOCOL)
# reset attributes
self.attach_managers(managers)
self.domains = domains
self.config.values = values
self.set_warnfunc(warnfunc)
# --------- ENVIRONMENT INITIALIZATION -------------------------------------
def __init__(self, srcdir, doctreedir, config):
self.doctreedir = doctreedir
self.srcdir = srcdir
self.config = config
# the method of doctree versioning; see set_versioning_method
self.versioning_condition = None
self.versioning_compare = None
# the application object; only set while update() runs
self.app = None
# all the registered domains, set by the application
self.domains = {}
# the docutils settings for building
self.settings = default_settings.copy()
self.settings['env'] = self
# the function to write warning messages with
self._warnfunc = None
# this is to invalidate old pickles
self.version = ENV_VERSION
# All "docnames" here are /-separated and relative and exclude
# the source suffix.
self.found_docs = set() # contains all existing docnames
self.all_docs = {} # docname -> mtime at the time of reading
# contains all read docnames
self.dependencies = {} # docname -> set of dependent file
# names, relative to documentation root
self.included = set() # docnames included from other documents
self.reread_always = set() # docnames to re-read unconditionally on
# next build
# File metadata
self.metadata = {} # docname -> dict of metadata items
# TOC inventory
self.titles = {} # docname -> title node
self.longtitles = {} # docname -> title node; only different if
# set differently with title directive
self.tocs = {} # docname -> table of contents nodetree
self.toc_num_entries = {} # docname -> number of real entries
# used to determine when to show the TOC
# in a sidebar (don't show if it's only one item)
self.toc_secnumbers = {} # docname -> dict of sectionid -> number
self.toc_fignumbers = {} # docname -> dict of figtype ->
# dict of figureid -> number
self.toctree_includes = {} # docname -> list of toctree includefiles
self.files_to_rebuild = {} # docname -> set of files
# (containing its TOCs) to rebuild too
self.glob_toctrees = set() # docnames that have :glob: toctrees
self.numbered_toctrees = set() # docnames that have :numbered: toctrees
# domain-specific inventories, here to be pickled
self.domaindata = {} # domainname -> domain-specific dict
# Other inventories
self.indexentries = {} # docname -> list of
# (type, string, target, aliasname)
self.versionchanges = {} # version -> list of (type, docname,
# lineno, module, descname, content)
# these map absolute path -> (docnames, unique filename)
self.images = FilenameUniqDict()
self.dlfiles = FilenameUniqDict()
# temporary data storage while reading a document
self.temp_data = {}
# context for cross-references (e.g. current module or class)
# this is similar to temp_data, but will for example be copied to
# attributes of "any" cross references
self.ref_context = {}
self.managers = {}
self.init_managers()
def init_managers(self):
managers = {}
for manager_class in [IndexEntries, Toctree]:
managers[manager_class.name] = manager_class(self)
self.attach_managers(managers)
def attach_managers(self, managers):
for name, manager in iteritems(managers):
self.managers[name] = manager
manager.attach(self)
def detach_managers(self):
managers = self.managers
self.managers = {}
for _, manager in iteritems(managers):
manager.detach(self)
return managers
def set_warnfunc(self, func):
self._warnfunc = func
self.settings['warning_stream'] = WarningStream(func)
def set_versioning_method(self, method, compare):
"""This sets the doctree versioning method for this environment.
Versioning methods are a builder property; only builders with the same
versioning method can share the same doctree directory. Therefore, we
raise an exception if the user tries to use an environment with an
incompatible versioning method.
"""
if method not in versioning_conditions:
raise ValueError('invalid versioning method: %r' % method)
condition = versioning_conditions[method]
if self.versioning_condition not in (None, condition):
raise SphinxError('This environment is incompatible with the '
'selected builder, please choose another '
'doctree directory.')
self.versioning_condition = condition
self.versioning_compare = compare
def warn(self, docname, msg, lineno=None, **kwargs):
"""Emit a warning.
This differs from using ``app.warn()`` in that the warning may not
be emitted instantly, but collected for emitting all warnings after
the update of the environment.
"""
# strange argument order is due to backwards compatibility
self._warnfunc(msg, (docname, lineno), **kwargs)
def warn_node(self, msg, node, **kwargs):
"""Like :meth:`warn`, but with source information taken from *node*."""
self._warnfunc(msg, '%s:%s' % get_source_line(node), **kwargs)
def clear_doc(self, docname):
"""Remove all traces of a source file in the inventory."""
if docname in self.all_docs:
self.all_docs.pop(docname, None)
self.reread_always.discard(docname)
self.metadata.pop(docname, None)
self.dependencies.pop(docname, None)
self.titles.pop(docname, None)
self.longtitles.pop(docname, None)
self.images.purge_doc(docname)
self.dlfiles.purge_doc(docname)
for version, changes in self.versionchanges.items():
new = [change for change in changes if change[1] != docname]
changes[:] = new
for manager in itervalues(self.managers):
manager.clear_doc(docname)
for domain in self.domains.values():
domain.clear_doc(docname)
def merge_info_from(self, docnames, other, app):
"""Merge global information gathered about *docnames* while reading them
from the *other* environment.
This possibly comes from a parallel build process.
"""
docnames = set(docnames)
for docname in docnames:
self.all_docs[docname] = other.all_docs[docname]
if docname in other.reread_always:
self.reread_always.add(docname)
self.metadata[docname] = other.metadata[docname]
if docname in other.dependencies:
self.dependencies[docname] = other.dependencies[docname]
self.titles[docname] = other.titles[docname]
self.longtitles[docname] = other.longtitles[docname]
self.images.merge_other(docnames, other.images)
self.dlfiles.merge_other(docnames, other.dlfiles)
for version, changes in other.versionchanges.items():
self.versionchanges.setdefault(version, []).extend(
change for change in changes if change[1] in docnames)
for manager in itervalues(self.managers):
manager.merge_other(docnames, other)
for domainname, domain in self.domains.items():
domain.merge_domaindata(docnames, other.domaindata[domainname])
app.emit('env-merge-info', self, docnames, other)
def path2doc(self, filename):
"""Return the docname for the filename if the file is document.
*filename* should be absolute or relative to the source directory.
"""
if filename.startswith(self.srcdir):
filename = filename[len(self.srcdir) + 1:]
for suffix in self.config.source_suffix:
if fnmatch.fnmatch(filename, '*' + suffix):
return filename[:-len(suffix)]
else:
# the file does not have docname
return None
def doc2path(self, docname, base=True, suffix=None):
"""Return the filename for the document name.
If *base* is True, return absolute path under self.srcdir.
If *base* is None, return relative path to self.srcdir.
If *base* is a path string, return absolute path under that.
If *suffix* is not None, add it instead of config.source_suffix.
"""
docname = docname.replace(SEP, path.sep)
if suffix is None:
for candidate_suffix in self.config.source_suffix:
if path.isfile(path.join(self.srcdir, docname) +
candidate_suffix):
suffix = candidate_suffix
break
else:
# document does not exist
suffix = self.config.source_suffix[0]
if base is True:
return path.join(self.srcdir, docname) + suffix
elif base is None:
return docname + suffix
else:
return path.join(base, docname) + suffix
def relfn2path(self, filename, docname=None):
"""Return paths to a file referenced from a document, relative to
documentation root and absolute.
In the input "filename", absolute filenames are taken as relative to the
source dir, while relative filenames are relative to the dir of the
containing document.
"""
if filename.startswith('/') or filename.startswith(os.sep):
rel_fn = filename[1:]
else:
docdir = path.dirname(self.doc2path(docname or self.docname,
base=None))
rel_fn = path.join(docdir, filename)
try:
# the path.abspath() might seem redundant, but otherwise artifacts
# such as ".." will remain in the path
return rel_fn, path.abspath(path.join(self.srcdir, rel_fn))
except UnicodeDecodeError:
# the source directory is a bytestring with non-ASCII characters;
# let's try to encode the rel_fn in the file system encoding
enc_rel_fn = rel_fn.encode(sys.getfilesystemencoding())
return rel_fn, path.abspath(path.join(self.srcdir, enc_rel_fn))
def find_files(self, config, buildername=None):
"""Find all source files in the source dir and put them in
self.found_docs.
"""
matchers = compile_matchers(
config.exclude_patterns[:] +
config.templates_path +
config.html_extra_path +
['**/_sources', '.#*', '**/.#*', '*.lproj/**']
)
self.found_docs = set()
for docname in get_matching_docs(self.srcdir, config.source_suffix,
exclude_matchers=matchers):
if os.access(self.doc2path(docname), os.R_OK):
self.found_docs.add(docname)
else:
self.warn(docname, "document not readable. Ignored.")
# Current implementation is applying translated messages in the reading
# phase.Therefore, in order to apply the updated message catalog, it is
# necessary to re-process from the reading phase. Here, if dependency
# is set for the doc source and the mo file, it is processed again from
# the reading phase when mo is updated. In the future, we would like to
# move i18n process into the writing phase, and remove these lines.
if buildername != 'gettext':
# add catalog mo file dependency
for docname in self.found_docs:
catalog_files = find_catalog_files(
docname,
self.srcdir,
self.config.locale_dirs,
self.config.language,
self.config.gettext_compact)
for filename in catalog_files:
self.dependencies.setdefault(docname, set()).add(filename)
def get_outdated_files(self, config_changed):
"""Return (added, changed, removed) sets."""
# clear all files no longer present
removed = set(self.all_docs) - self.found_docs
added = set()
changed = set()
if config_changed:
# config values affect e.g. substitutions
added = self.found_docs
else:
for docname in self.found_docs:
if docname not in self.all_docs:
added.add(docname)
continue
# if the doctree file is not there, rebuild
if not path.isfile(self.doc2path(docname, self.doctreedir,
'.doctree')):
changed.add(docname)
continue
# check the "reread always" list
if docname in self.reread_always:
changed.add(docname)
continue
# check the mtime of the document
mtime = self.all_docs[docname]
newmtime = path.getmtime(self.doc2path(docname))
if newmtime > mtime:
changed.add(docname)
continue
# finally, check the mtime of dependencies
for dep in self.dependencies.get(docname, ()):
try:
# this will do the right thing when dep is absolute too
deppath = path.join(self.srcdir, dep)
if not path.isfile(deppath):
changed.add(docname)
break
depmtime = path.getmtime(deppath)
if depmtime > mtime:
changed.add(docname)
break
except EnvironmentError:
# give it another chance
changed.add(docname)
break
return added, changed, removed
def update(self, config, srcdir, doctreedir, app):
"""(Re-)read all files new or changed since last update.
Store all environment docnames in the canonical format (ie using SEP as
a separator in place of os.path.sep).
"""
config_changed = False
if self.config is None:
msg = '[new config] '
config_changed = True
else:
# check if a config value was changed that affects how
# doctrees are read
for key, descr in iteritems(config.values):
if descr[1] != 'env':
continue
if self.config[key] != config[key]:
msg = '[config changed] '
config_changed = True
break
else:
msg = ''
# this value is not covered by the above loop because it is handled
# specially by the config class
if self.config.extensions != config.extensions:
msg = '[extensions changed] '
config_changed = True
# the source and doctree directories may have been relocated
self.srcdir = srcdir
self.doctreedir = doctreedir
self.find_files(config, app.buildername)
self.config = config
# this cache also needs to be updated every time
self._nitpick_ignore = set(self.config.nitpick_ignore)
app.info(bold('updating environment: '), nonl=True)
added, changed, removed = self.get_outdated_files(config_changed)
# allow user intervention as well
for docs in app.emit('env-get-outdated', self, added, changed, removed):
changed.update(set(docs) & self.found_docs)
# if files were added or removed, all documents with globbed toctrees
# must be reread
if added or removed:
# ... but not those that already were removed
changed.update(self.glob_toctrees & self.found_docs)
msg += '%s added, %s changed, %s removed' % (len(added), len(changed),
len(removed))
app.info(msg)
self.app = app
# clear all files no longer present
for docname in removed:
app.emit('env-purge-doc', self, docname)
self.clear_doc(docname)
# read all new and changed files
docnames = sorted(added | changed)
# allow changing and reordering the list of docs to read
app.emit('env-before-read-docs', self, docnames)
# check if we should do parallel or serial read
par_ok = False
if parallel_available and len(docnames) > 5 and app.parallel > 1:
par_ok = True
for extname, md in app._extension_metadata.items():
ext_ok = md.get('parallel_read_safe')
if ext_ok:
continue
if ext_ok is None:
app.warn('the %s extension does not declare if it '
'is safe for parallel reading, assuming it '
'isn\'t - please ask the extension author to '
'check and make it explicit' % extname)
app.warn('doing serial read')
else:
app.warn('the %s extension is not safe for parallel '
'reading, doing serial read' % extname)
par_ok = False
break
if par_ok:
self._read_parallel(docnames, app, nproc=app.parallel)
else:
self._read_serial(docnames, app)
if config.master_doc not in self.all_docs:
raise SphinxError('master file %s not found' %
self.doc2path(config.master_doc))
self.app = None
for retval in app.emit('env-updated', self):
if retval is not None:
docnames.extend(retval)
return sorted(docnames)
def _read_serial(self, docnames, app):
for docname in app.status_iterator(docnames, 'reading sources... ',
purple, len(docnames)):
# remove all inventory entries for that file
app.emit('env-purge-doc', self, docname)
self.clear_doc(docname)
self.read_doc(docname, app)
def _read_parallel(self, docnames, app, nproc):
# clear all outdated docs at once
for docname in docnames:
app.emit('env-purge-doc', self, docname)
self.clear_doc(docname)
def read_process(docs):
self.app = app
self.warnings = []
self.set_warnfunc(lambda *args, **kwargs: self.warnings.append((args, kwargs)))
for docname in docs:
self.read_doc(docname, app)
# allow pickling self to send it back
self.set_warnfunc(None)
del self.app
del self.domains
del self.config.values
del self.config
return self
def merge(docs, otherenv):
warnings.extend(otherenv.warnings)
self.merge_info_from(docs, otherenv, app)
tasks = ParallelTasks(nproc)
chunks = make_chunks(docnames, nproc)
warnings = []
for chunk in app.status_iterator(
chunks, 'reading sources... ', purple, len(chunks)):
tasks.add_task(read_process, chunk, merge)
# make sure all threads have finished
app.info(bold('waiting for workers...'))
tasks.join()
for warning, kwargs in warnings:
self._warnfunc(*warning, **kwargs)
def check_dependents(self, already):
to_rewrite = (self.toctree.assign_section_numbers() +
self.toctree.assign_figure_numbers())
for docname in set(to_rewrite):
if docname not in already:
yield docname
# --------- SINGLE FILE READING --------------------------------------------
def warn_and_replace(self, error):
"""Custom decoding error handler that warns and replaces."""
linestart = error.object.rfind(b'\n', 0, error.start)
lineend = error.object.find(b'\n', error.start)
if lineend == -1:
lineend = len(error.object)
lineno = error.object.count(b'\n', 0, error.start) + 1
self.warn(self.docname, 'undecodable source characters, '
'replacing with "?": %r' %
(error.object[linestart + 1:error.start] + b'>>>' +
error.object[error.start:error.end] + b'<<<' +
error.object[error.end:lineend]), lineno)
return (u'?', error.end)
def read_doc(self, docname, app=None):
"""Parse a file and add/update inventory entries for the doctree."""
self.temp_data['docname'] = docname
# defaults to the global default, but can be re-set in a document
self.temp_data['default_domain'] = \
self.domains.get(self.config.primary_domain)
self.settings['input_encoding'] = self.config.source_encoding
self.settings['trim_footnote_reference_space'] = \
self.config.trim_footnote_reference_space
self.settings['gettext_compact'] = self.config.gettext_compact
docutilsconf = path.join(self.srcdir, 'docutils.conf')
# read docutils.conf from source dir, not from current dir
OptionParser.standard_config_files[1] = docutilsconf
if path.isfile(docutilsconf):
self.note_dependency(docutilsconf)
with sphinx_domains(self):
if self.config.default_role:
role_fn, messages = roles.role(self.config.default_role, english,
0, dummy_reporter)
if role_fn:
roles._roles[''] = role_fn
else:
self.warn(docname, 'default role %s not found' %
self.config.default_role)
codecs.register_error('sphinx', self.warn_and_replace)
# publish manually
reader = SphinxStandaloneReader(self.app, parsers=self.config.source_parsers)
pub = Publisher(reader=reader,
writer=SphinxDummyWriter(),
destination_class=NullOutput)
pub.set_components(None, 'restructuredtext', None)
pub.process_programmatic_settings(None, self.settings, None)
src_path = self.doc2path(docname)
source = SphinxFileInput(app, self, source=None, source_path=src_path,
encoding=self.config.source_encoding)
pub.source = source
pub.settings._source = src_path
pub.set_destination(None, None)
pub.publish()
doctree = pub.document
# post-processing
self.process_dependencies(docname, doctree)
self.process_images(docname, doctree)
self.process_downloads(docname, doctree)
self.process_metadata(docname, doctree)
self.create_title_from(docname, doctree)
for manager in itervalues(self.managers):
manager.process_doc(docname, doctree)
for domain in itervalues(self.domains):
domain.process_doc(self, docname, doctree)
# allow extension-specific post-processing
if app:
app.emit('doctree-read', doctree)
# store time of reading, for outdated files detection
# (Some filesystems have coarse timestamp resolution;
# therefore time.time() can be older than filesystem's timestamp.
# For example, FAT32 has 2sec timestamp resolution.)
self.all_docs[docname] = max(
time.time(), path.getmtime(self.doc2path(docname)))
if self.versioning_condition:
old_doctree = None
if self.versioning_compare:
# get old doctree
try:
with open(self.doc2path(docname,
self.doctreedir, '.doctree'), 'rb') as f:
old_doctree = pickle.load(f)
except EnvironmentError:
pass
# add uids for versioning
if not self.versioning_compare or old_doctree is None:
list(add_uids(doctree, self.versioning_condition))
else:
list(merge_doctrees(
old_doctree, doctree, self.versioning_condition))
# make it picklable
doctree.reporter = None
doctree.transformer = None
doctree.settings.warning_stream = None
doctree.settings.env = None
doctree.settings.record_dependencies = None
# cleanup
self.temp_data.clear()
self.ref_context.clear()
roles._roles.pop('', None) # if a document has set a local default role
# save the parsed doctree
doctree_filename = self.doc2path(docname, self.doctreedir,
'.doctree')
ensuredir(path.dirname(doctree_filename))
with open(doctree_filename, 'wb') as f:
pickle.dump(doctree, f, pickle.HIGHEST_PROTOCOL)
# utilities to use while reading a document
@property
def docname(self):
"""Returns the docname of the document currently being parsed."""
return self.temp_data['docname']
@property
def currmodule(self):
"""Backwards compatible alias. Will be removed."""
self.warn(self.docname, 'env.currmodule is being referenced by an '
'extension; this API will be removed in the future')
return self.ref_context.get('py:module')
@property
def currclass(self):
"""Backwards compatible alias. Will be removed."""
self.warn(self.docname, 'env.currclass is being referenced by an '
'extension; this API will be removed in the future')
return self.ref_context.get('py:class')
def new_serialno(self, category=''):
"""Return a serial number, e.g. for index entry targets.
The number is guaranteed to be unique in the current document.
"""
key = category + 'serialno'
cur = self.temp_data.get(key, 0)
self.temp_data[key] = cur + 1
return cur
def note_dependency(self, filename):
"""Add *filename* as a dependency of the current document.
This means that the document will be rebuilt if this file changes.
*filename* should be absolute or relative to the source directory.
"""
self.dependencies.setdefault(self.docname, set()).add(filename)
def note_included(self, filename):
"""Add *filename* as a included from other document.
This means the document is not orphaned.
*filename* should be absolute or relative to the source directory.
"""
self.included.add(self.path2doc(filename))
def note_reread(self):
"""Add the current document to the list of documents that will
automatically be re-read at the next build.
"""
self.reread_always.add(self.docname)
def note_versionchange(self, type, version, node, lineno):
self.versionchanges.setdefault(version, []).append(
(type, self.temp_data['docname'], lineno,
self.ref_context.get('py:module'),
self.temp_data.get('object'), node.astext()))
# post-processing of read doctrees
def process_dependencies(self, docname, doctree):
"""Process docutils-generated dependency info."""
cwd = getcwd()
frompath = path.join(path.normpath(self.srcdir), 'dummy')
deps = doctree.settings.record_dependencies
if not deps:
return
for dep in deps.list:
# the dependency path is relative to the working dir, so get
# one relative to the srcdir
if isinstance(dep, bytes):
dep = dep.decode(fs_encoding)
relpath = relative_path(frompath,
path.normpath(path.join(cwd, dep)))
self.dependencies.setdefault(docname, set()).add(relpath)
def process_downloads(self, docname, doctree):
"""Process downloadable file paths. """
for node in doctree.traverse(addnodes.download_reference):
targetname = node['reftarget']
rel_filename, filename = self.relfn2path(targetname, docname)
self.dependencies.setdefault(docname, set()).add(rel_filename)
if not os.access(filename, os.R_OK):
self.warn_node('download file not readable: %s' % filename,
node)
continue
uniquename = self.dlfiles.add_file(docname, filename)
node['filename'] = uniquename
def process_images(self, docname, doctree):
"""Process and rewrite image URIs."""
def collect_candidates(imgpath, candidates):
globbed = {}
for filename in glob(imgpath):
new_imgpath = relative_path(path.join(self.srcdir, 'dummy'),
filename)
try:
mimetype = guess_mimetype(filename)
if mimetype not in candidates:
globbed.setdefault(mimetype, []).append(new_imgpath)
except (OSError, IOError) as err:
self.warn_node('image file %s not readable: %s' %
(filename, err), node)
for key, files in iteritems(globbed):
candidates[key] = sorted(files, key=len)[0] # select by similarity
for node in doctree.traverse(nodes.image):
# Map the mimetype to the corresponding image. The writer may
# choose the best image from these candidates. The special key * is
# set if there is only single candidate to be used by a writer.
# The special key ? is set for nonlocal URIs.
node['candidates'] = candidates = {}
imguri = node['uri']
if imguri.startswith('data:'):
self.warn_node('image data URI found. some builders might not support', node,
type='image', subtype='data_uri')
candidates['?'] = imguri
continue
elif imguri.find('://') != -1:
self.warn_node('nonlocal image URI found: %s' % imguri, node,
type='image', subtype='nonlocal_uri')
candidates['?'] = imguri
continue
rel_imgpath, full_imgpath = self.relfn2path(imguri, docname)
if self.config.language:
# substitute figures (ex. foo.png -> foo.en.png)
i18n_full_imgpath = search_image_for_language(full_imgpath, self)
if i18n_full_imgpath != full_imgpath:
full_imgpath = i18n_full_imgpath
rel_imgpath = relative_path(path.join(self.srcdir, 'dummy'),
i18n_full_imgpath)
# set imgpath as default URI
node['uri'] = rel_imgpath
if rel_imgpath.endswith(os.extsep + '*'):
if self.config.language:
# Search language-specific figures at first
i18n_imguri = get_image_filename_for_language(imguri, self)
_, full_i18n_imgpath = self.relfn2path(i18n_imguri, docname)
collect_candidates(full_i18n_imgpath, candidates)
collect_candidates(full_imgpath, candidates)
else:
candidates['*'] = rel_imgpath
# map image paths to unique image names (so that they can be put
# into a single directory)
for imgpath in itervalues(candidates):
self.dependencies.setdefault(docname, set()).add(imgpath)
if not os.access(path.join(self.srcdir, imgpath), os.R_OK):
self.warn_node('image file not readable: %s' % imgpath,
node)
continue
self.images.add_file(docname, imgpath)
def process_metadata(self, docname, doctree):
"""Process the docinfo part of the doctree as metadata.
Keep processing minimal -- just return what docutils says.
"""
self.metadata[docname] = md = {}
try:
docinfo = doctree[0]
except IndexError:
# probably an empty document
return
if docinfo.__class__ is not nodes.docinfo:
# nothing to see here
return
for node in docinfo:
# nodes are multiply inherited...
if isinstance(node, nodes.authors):
md['authors'] = [author.astext() for author in node]
elif isinstance(node, nodes.TextElement): # e.g. author
md[node.__class__.__name__] = node.astext()
else:
name, body = node
md[name.astext()] = body.astext()
for name, value in md.items():
if name in ('tocdepth',):
try:
value = int(value)
except ValueError:
value = 0
md[name] = value
del doctree[0]
def create_title_from(self, docname, document):
"""Add a title node to the document (just copy the first section title),
and store that title in the environment.
"""
titlenode = nodes.title()
longtitlenode = titlenode
# explicit title set with title directive; use this only for
# the <title> tag in HTML output
if 'title' in document:
longtitlenode = nodes.title()
longtitlenode += nodes.Text(document['title'])
# look for first section title and use that as the title
for node in document.traverse(nodes.section):
visitor = SphinxContentsFilter(document)
node[0].walkabout(visitor)
titlenode += visitor.get_entry_text()
break
else:
# document has no title
titlenode += nodes.Text('<no title>')
self.titles[docname] = titlenode
self.longtitles[docname] = longtitlenode
def note_toctree(self, docname, toctreenode):
"""Note a TOC tree directive in a document and gather information about
file relations from it.
"""
self.toctree.note_toctree(docname, toctreenode)
def get_toc_for(self, docname, builder):
"""Return a TOC nodetree -- for use on the same page only!"""
return self.toctree.get_toc_for(docname, builder)
def get_toctree_for(self, docname, builder, collapse, **kwds):
"""Return the global TOC nodetree."""
return self.toctree.get_toctree_for(docname, builder, collapse, **kwds)
def get_domain(self, domainname):
"""Return the domain instance with the specified name.
Raises an ExtensionError if the domain is not registered.
"""
try:
return self.domains[domainname]
except KeyError:
raise ExtensionError('Domain %r is not registered' % domainname)
# --------- RESOLVING REFERENCES AND TOCTREES ------------------------------
def get_doctree(self, docname):
"""Read the doctree for a file from the pickle and return it."""
doctree_filename = self.doc2path(docname, self.doctreedir, '.doctree')
with open(doctree_filename, 'rb') as f:
doctree = pickle.load(f)
doctree.settings.env = self
doctree.reporter = Reporter(self.doc2path(docname), 2, 5,
stream=WarningStream(self._warnfunc))
return doctree
def get_and_resolve_doctree(self, docname, builder, doctree=None,
prune_toctrees=True, includehidden=False):
"""Read the doctree from the pickle, resolve cross-references and
toctrees and return it.
"""
if doctree is None:
doctree = self.get_doctree(docname)
# resolve all pending cross-references
self.resolve_references(doctree, docname, builder)
# now, resolve all toctree nodes
for toctreenode in doctree.traverse(addnodes.toctree):
result = self.resolve_toctree(docname, builder, toctreenode,
prune=prune_toctrees,
includehidden=includehidden)
if result is None:
toctreenode.replace_self([])
else:
toctreenode.replace_self(result)
return doctree
def resolve_toctree(self, docname, builder, toctree, prune=True, maxdepth=0,
titles_only=False, collapse=False, includehidden=False):
"""Resolve a *toctree* node into individual bullet lists with titles
as items, returning None (if no containing titles are found) or
a new node.
If *prune* is True, the tree is pruned to *maxdepth*, or if that is 0,
to the value of the *maxdepth* option on the *toctree* node.
If *titles_only* is True, only toplevel document titles will be in the
resulting tree.
If *collapse* is True, all branches not containing docname will
be collapsed.
"""
return self.toctree.resolve_toctree(docname, builder, toctree, prune,
maxdepth, titles_only, collapse,
includehidden)
def resolve_references(self, doctree, fromdocname, builder):
for node in doctree.traverse(addnodes.pending_xref):
contnode = node[0].deepcopy()
newnode = None
typ = node['reftype']
target = node['reftarget']
refdoc = node.get('refdoc', fromdocname)
domain = None
try:
if 'refdomain' in node and node['refdomain']:
# let the domain try to resolve the reference
try:
domain = self.domains[node['refdomain']]
except KeyError:
raise NoUri
newnode = domain.resolve_xref(self, refdoc, builder,
typ, target, node, contnode)
# really hardwired reference types
elif typ == 'any':
newnode = self._resolve_any_reference(builder, refdoc, node, contnode)
elif typ == 'doc':
newnode = self._resolve_doc_reference(builder, refdoc, node, contnode)
# no new node found? try the missing-reference event
if newnode is None:
newnode = builder.app.emit_firstresult(
'missing-reference', self, node, contnode)
# still not found? warn if node wishes to be warned about or
# we are in nit-picky mode
if newnode is None:
self._warn_missing_reference(refdoc, typ, target, node, domain)
except NoUri:
newnode = contnode
node.replace_self(newnode or contnode)
# remove only-nodes that do not belong to our builder
process_only_nodes(doctree, builder.tags, warn_node=self.warn_node)
# allow custom references to be resolved
builder.app.emit('doctree-resolved', doctree, fromdocname)
def _warn_missing_reference(self, refdoc, typ, target, node, domain):
warn = node.get('refwarn')
if self.config.nitpicky:
warn = True
if self._nitpick_ignore:
dtype = domain and '%s:%s' % (domain.name, typ) or typ
if (dtype, target) in self._nitpick_ignore:
warn = False
# for "std" types also try without domain name
if (not domain or domain.name == 'std') and \
(typ, target) in self._nitpick_ignore:
warn = False
if not warn:
return
if domain and typ in domain.dangling_warnings:
msg = domain.dangling_warnings[typ]
elif typ == 'doc':
msg = 'unknown document: %(target)s'
elif node.get('refdomain', 'std') not in ('', 'std'):
msg = '%s:%s reference target not found: %%(target)s' % \
(node['refdomain'], typ)
else:
msg = '%r reference target not found: %%(target)s' % typ
self.warn_node(msg % {'target': target}, node, type='ref', subtype=typ)
def _resolve_doc_reference(self, builder, refdoc, node, contnode):
# directly reference to document by source name;
# can be absolute or relative
docname = docname_join(refdoc, node['reftarget'])
if docname in self.all_docs:
if node['refexplicit']:
# reference with explicit title
caption = node.astext()
else:
caption = clean_astext(self.titles[docname])
innernode = nodes.inline(caption, caption)
innernode['classes'].append('doc')
newnode = nodes.reference('', '', internal=True)
newnode['refuri'] = builder.get_relative_uri(refdoc, docname)
newnode.append(innernode)
return newnode
def _resolve_any_reference(self, builder, refdoc, node, contnode):
"""Resolve reference generated by the "any" role."""
target = node['reftarget']
results = []
# first, try resolving as :doc:
doc_ref = self._resolve_doc_reference(builder, refdoc, node, contnode)
if doc_ref:
results.append(('doc', doc_ref))
# next, do the standard domain (makes this a priority)
results.extend(self.domains['std'].resolve_any_xref(
self, refdoc, builder, target, node, contnode))
for domain in self.domains.values():
if domain.name == 'std':
continue # we did this one already
try:
results.extend(domain.resolve_any_xref(self, refdoc, builder,
target, node, contnode))
except NotImplementedError:
# the domain doesn't yet support the new interface
# we have to manually collect possible references (SLOW)
for role in domain.roles:
res = domain.resolve_xref(self, refdoc, builder, role, target,
node, contnode)
if res and isinstance(res[0], nodes.Element):
results.append(('%s:%s' % (domain.name, role), res))
# now, see how many matches we got...
if not results:
return None
if len(results) > 1:
nice_results = ' or '.join(':%s:' % r[0] for r in results)
self.warn_node('more than one target found for \'any\' cross-'
'reference %r: could be %s' % (target, nice_results),
node)
res_role, newnode = results[0]
# Override "any" class with the actual role type to get the styling
# approximately correct.
res_domain = res_role.split(':')[0]
if newnode and newnode[0].get('classes'):
newnode[0]['classes'].append(res_domain)
newnode[0]['classes'].append(res_role.replace(':', '-'))
return newnode
def create_index(self, builder, group_entries=True,
_fixre=re.compile(r'(.*) ([(][^()]*[)])')):
return self.indices.create_index(builder, group_entries=group_entries, _fixre=_fixre)
def collect_relations(self):
traversed = set()
def traverse_toctree(parent, docname):
if parent == docname:
self.warn(docname, 'self referenced toctree found. Ignored.')
return
# traverse toctree by pre-order
yield parent, docname
traversed.add(docname)
for child in (self.toctree_includes.get(docname) or []):
for subparent, subdocname in traverse_toctree(docname, child):
if subdocname not in traversed:
yield subparent, subdocname
traversed.add(subdocname)
relations = {}
docnames = traverse_toctree(None, self.config.master_doc)
prevdoc = None
parent, docname = next(docnames)
for nextparent, nextdoc in docnames:
relations[docname] = [parent, prevdoc, nextdoc]
prevdoc = docname
docname = nextdoc
parent = nextparent
relations[docname] = [parent, prevdoc, None]
return relations
def check_consistency(self):
"""Do consistency checks."""
for docname in sorted(self.all_docs):
if docname not in self.files_to_rebuild:
if docname == self.config.master_doc:
# the master file is not included anywhere ;)
continue
if docname in self.included:
# the document is included from other documents
continue
if 'orphan' in self.metadata[docname]:
continue
self.warn(docname, 'document isn\'t included in any toctree')
| [
"[email protected]"
] | |
1f31c768f9d581da1b7ad412a23ad6d4e24ce3e6 | ede5e159641ba71a1a25a50a1328c11175459cce | /day-3/generate.py | d2f956f398b09d0fff8c03fbfb6e5c34d5a4d14d | [
"BSD-3-Clause"
] | permissive | sbu-python-summer/python-tutorial | 1cf23c700b7b2588680ad78a06a3582dfcce873b | c93ac1d75188d762df7d17df7045af39dbc1bee8 | refs/heads/master | 2021-01-20T18:08:21.393092 | 2017-06-16T18:50:06 | 2017-06-16T18:50:06 | 90,908,339 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 153 | py | # generate data for a histogram example
import numpy as np
N = 100
a = 10*np.random.randn(N)
for i in range(N):
print("{} {}".format(i, a[i]))
| [
"[email protected]"
] | |
7848ffce0b6988c96aae1efeb96a21b0d8bb93f4 | c762ab8c1c25ffa97229a62ff43a33543093f963 | /venv/bin/easy_install | 06e9fd8505708c760e9975bfea10710ea86251e7 | [
"Apache-2.0"
] | permissive | nahyunkwon/multi-ttach | e68948d66541e85b764216efc54a82f6fc9ac044 | 971d0d93cc39f295deb23ea71146647f6db50ebc | refs/heads/master | 2023-08-09T18:25:31.658950 | 2023-07-24T17:46:04 | 2023-07-24T17:46:04 | 297,783,964 | 0 | 1 | Apache-2.0 | 2021-04-07T07:46:24 | 2020-09-22T22:08:53 | G-code | UTF-8 | Python | false | false | 458 | #!/Users/kwon/PycharmProjects/digital_fabrication_studio/venv/bin/python
# EASY-INSTALL-ENTRY-SCRIPT: 'setuptools==39.1.0','console_scripts','easy_install'
__requires__ = 'setuptools==39.1.0'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(
load_entry_point('setuptools==39.1.0', 'console_scripts', 'easy_install')()
)
| [
"[email protected]"
] | ||
ad94567b4862afe2ff1de2f46b5864cbb56a525b | 9e988c0dfbea15cd23a3de860cb0c88c3dcdbd97 | /sdBs/AllRun/sdssj_162711.80-000950.8/sdB_SDSSJ_162711.80-000950.8_lc.py | 29d244111b17ca32fa317154ab63ad362a67cc25 | [] | no_license | tboudreaux/SummerSTScICode | 73b2e5839b10c0bf733808f4316d34be91c5a3bd | 4dd1ffbb09e0a599257d21872f9d62b5420028b0 | refs/heads/master | 2021-01-20T18:07:44.723496 | 2016-08-08T16:49:53 | 2016-08-08T16:49:53 | 65,221,159 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 371 | py | from gPhoton.gAperture import gAperture
def main():
gAperture(band="NUV", skypos=[246.799167,0.164111], stepsz=30., csvfile="/data2/fleming/GPHOTON_OUTPU/LIGHTCURVES/sdBs/sdB_SDSSJ_162711.80-000950.8 /sdB_SDSSJ_162711.80-000950.8_lc.csv", maxgap=1000., overwrite=True, radius=0.00555556, annulus=[0.005972227,0.0103888972], verbose=3)
if __name__ == "__main__":
main()
| [
"[email protected]"
] | |
7ef19c5af8cd92e5af1c9714f074511ef1854b6e | 1ab7b3f2aa63de8488ce7c466a67d367771aa1f2 | /Ricardo_OS/Python_backend/venv/lib/python3.8/site-packages/wcwidth/table_zero.py | ab5150f51734a90985f4d011aeb89f7d575dd887 | [
"MIT"
] | permissive | icl-rocketry/Avionics | 9d39aeb11aba11115826fd73357b415026a7adad | 95b7a061eabd6f2b607fba79e007186030f02720 | refs/heads/master | 2022-07-30T07:54:10.642930 | 2022-07-10T12:19:10 | 2022-07-10T12:19:10 | 216,184,670 | 9 | 1 | MIT | 2022-06-27T10:17:06 | 2019-10-19T09:57:07 | C++ | UTF-8 | Python | false | false | 310,230 | py | """Zero_Width table, created by bin/update-tables.py."""
# Generated: 2020-06-23T16:03:21.187024
ZERO_WIDTH = {
'4.1.0': (
# Source: DerivedGeneralCategory-4.1.0.txt
# Date: 2005-02-26, 02:35:50 GMT [MD]
#
(0x00300, 0x0036f,), # Combining Grave Accent ..Combining Latin Small Le
(0x00483, 0x00486,), # Combining Cyrillic Titlo..Combining Cyrillic Psili
(0x00488, 0x00489,), # Combining Cyrillic Hundr..Combining Cyrillic Milli
(0x00591, 0x005b9,), # Hebrew Accent Etnahta ..Hebrew Point Holam
(0x005bb, 0x005bd,), # Hebrew Point Qubuts ..Hebrew Point Meteg
(0x005bf, 0x005bf,), # Hebrew Point Rafe ..Hebrew Point Rafe
(0x005c1, 0x005c2,), # Hebrew Point Shin Dot ..Hebrew Point Sin Dot
(0x005c4, 0x005c5,), # Hebrew Mark Upper Dot ..Hebrew Mark Lower Dot
(0x005c7, 0x005c7,), # Hebrew Point Qamats Qata..Hebrew Point Qamats Qata
(0x00610, 0x00615,), # Arabic Sign Sallallahou ..Arabic Small High Tah
(0x0064b, 0x0065e,), # Arabic Fathatan ..Arabic Fatha With Two Do
(0x00670, 0x00670,), # Arabic Letter Superscrip..Arabic Letter Superscrip
(0x006d6, 0x006dc,), # Arabic Small High Ligatu..Arabic Small High Seen
(0x006de, 0x006e4,), # Arabic Start Of Rub El H..Arabic Small High Madda
(0x006e7, 0x006e8,), # Arabic Small High Yeh ..Arabic Small High Noon
(0x006ea, 0x006ed,), # Arabic Empty Centre Low ..Arabic Small Low Meem
(0x00711, 0x00711,), # Syriac Letter Superscrip..Syriac Letter Superscrip
(0x00730, 0x0074a,), # Syriac Pthaha Above ..Syriac Barrekh
(0x007a6, 0x007b0,), # Thaana Abafili ..Thaana Sukun
(0x00901, 0x00902,), # Devanagari Sign Candrabi..Devanagari Sign Anusvara
(0x0093c, 0x0093c,), # Devanagari Sign Nukta ..Devanagari Sign Nukta
(0x00941, 0x00948,), # Devanagari Vowel Sign U ..Devanagari Vowel Sign Ai
(0x0094d, 0x0094d,), # Devanagari Sign Virama ..Devanagari Sign Virama
(0x00951, 0x00954,), # Devanagari Stress Sign U..Devanagari Acute Accent
(0x00962, 0x00963,), # Devanagari Vowel Sign Vo..Devanagari Vowel Sign Vo
(0x00981, 0x00981,), # Bengali Sign Candrabindu..Bengali Sign Candrabindu
(0x009bc, 0x009bc,), # Bengali Sign Nukta ..Bengali Sign Nukta
(0x009c1, 0x009c4,), # Bengali Vowel Sign U ..Bengali Vowel Sign Vocal
(0x009cd, 0x009cd,), # Bengali Sign Virama ..Bengali Sign Virama
(0x009e2, 0x009e3,), # Bengali Vowel Sign Vocal..Bengali Vowel Sign Vocal
(0x00a01, 0x00a02,), # Gurmukhi Sign Adak Bindi..Gurmukhi Sign Bindi
(0x00a3c, 0x00a3c,), # Gurmukhi Sign Nukta ..Gurmukhi Sign Nukta
(0x00a41, 0x00a42,), # Gurmukhi Vowel Sign U ..Gurmukhi Vowel Sign Uu
(0x00a47, 0x00a48,), # Gurmukhi Vowel Sign Ee ..Gurmukhi Vowel Sign Ai
(0x00a4b, 0x00a4d,), # Gurmukhi Vowel Sign Oo ..Gurmukhi Sign Virama
(0x00a70, 0x00a71,), # Gurmukhi Tippi ..Gurmukhi Addak
(0x00a81, 0x00a82,), # Gujarati Sign Candrabind..Gujarati Sign Anusvara
(0x00abc, 0x00abc,), # Gujarati Sign Nukta ..Gujarati Sign Nukta
(0x00ac1, 0x00ac5,), # Gujarati Vowel Sign U ..Gujarati Vowel Sign Cand
(0x00ac7, 0x00ac8,), # Gujarati Vowel Sign E ..Gujarati Vowel Sign Ai
(0x00acd, 0x00acd,), # Gujarati Sign Virama ..Gujarati Sign Virama
(0x00ae2, 0x00ae3,), # Gujarati Vowel Sign Voca..Gujarati Vowel Sign Voca
(0x00b01, 0x00b01,), # Oriya Sign Candrabindu ..Oriya Sign Candrabindu
(0x00b3c, 0x00b3c,), # Oriya Sign Nukta ..Oriya Sign Nukta
(0x00b3f, 0x00b3f,), # Oriya Vowel Sign I ..Oriya Vowel Sign I
(0x00b41, 0x00b43,), # Oriya Vowel Sign U ..Oriya Vowel Sign Vocalic
(0x00b4d, 0x00b4d,), # Oriya Sign Virama ..Oriya Sign Virama
(0x00b56, 0x00b56,), # Oriya Ai Length Mark ..Oriya Ai Length Mark
(0x00b82, 0x00b82,), # Tamil Sign Anusvara ..Tamil Sign Anusvara
(0x00bc0, 0x00bc0,), # Tamil Vowel Sign Ii ..Tamil Vowel Sign Ii
(0x00bcd, 0x00bcd,), # Tamil Sign Virama ..Tamil Sign Virama
(0x00c3e, 0x00c40,), # Telugu Vowel Sign Aa ..Telugu Vowel Sign Ii
(0x00c46, 0x00c48,), # Telugu Vowel Sign E ..Telugu Vowel Sign Ai
(0x00c4a, 0x00c4d,), # Telugu Vowel Sign O ..Telugu Sign Virama
(0x00c55, 0x00c56,), # Telugu Length Mark ..Telugu Ai Length Mark
(0x00cbc, 0x00cbc,), # Kannada Sign Nukta ..Kannada Sign Nukta
(0x00cbf, 0x00cbf,), # Kannada Vowel Sign I ..Kannada Vowel Sign I
(0x00cc6, 0x00cc6,), # Kannada Vowel Sign E ..Kannada Vowel Sign E
(0x00ccc, 0x00ccd,), # Kannada Vowel Sign Au ..Kannada Sign Virama
(0x00d41, 0x00d43,), # Malayalam Vowel Sign U ..Malayalam Vowel Sign Voc
(0x00d4d, 0x00d4d,), # Malayalam Sign Virama ..Malayalam Sign Virama
(0x00dca, 0x00dca,), # Sinhala Sign Al-lakuna ..Sinhala Sign Al-lakuna
(0x00dd2, 0x00dd4,), # Sinhala Vowel Sign Ketti..Sinhala Vowel Sign Ketti
(0x00dd6, 0x00dd6,), # Sinhala Vowel Sign Diga ..Sinhala Vowel Sign Diga
(0x00e31, 0x00e31,), # Thai Character Mai Han-a..Thai Character Mai Han-a
(0x00e34, 0x00e3a,), # Thai Character Sara I ..Thai Character Phinthu
(0x00e47, 0x00e4e,), # Thai Character Maitaikhu..Thai Character Yamakkan
(0x00eb1, 0x00eb1,), # Lao Vowel Sign Mai Kan ..Lao Vowel Sign Mai Kan
(0x00eb4, 0x00eb9,), # Lao Vowel Sign I ..Lao Vowel Sign Uu
(0x00ebb, 0x00ebc,), # Lao Vowel Sign Mai Kon ..Lao Semivowel Sign Lo
(0x00ec8, 0x00ecd,), # Lao Tone Mai Ek ..Lao Niggahita
(0x00f18, 0x00f19,), # Tibetan Astrological Sig..Tibetan Astrological Sig
(0x00f35, 0x00f35,), # Tibetan Mark Ngas Bzung ..Tibetan Mark Ngas Bzung
(0x00f37, 0x00f37,), # Tibetan Mark Ngas Bzung ..Tibetan Mark Ngas Bzung
(0x00f39, 0x00f39,), # Tibetan Mark Tsa -phru ..Tibetan Mark Tsa -phru
(0x00f71, 0x00f7e,), # Tibetan Vowel Sign Aa ..Tibetan Sign Rjes Su Nga
(0x00f80, 0x00f84,), # Tibetan Vowel Sign Rever..Tibetan Mark Halanta
(0x00f86, 0x00f87,), # Tibetan Sign Lci Rtags ..Tibetan Sign Yang Rtags
(0x00f90, 0x00f97,), # Tibetan Subjoined Letter..Tibetan Subjoined Letter
(0x00f99, 0x00fbc,), # Tibetan Subjoined Letter..Tibetan Subjoined Letter
(0x00fc6, 0x00fc6,), # Tibetan Symbol Padma Gda..Tibetan Symbol Padma Gda
(0x0102d, 0x01030,), # Myanmar Vowel Sign I ..Myanmar Vowel Sign Uu
(0x01032, 0x01032,), # Myanmar Vowel Sign Ai ..Myanmar Vowel Sign Ai
(0x01036, 0x01037,), # Myanmar Sign Anusvara ..Myanmar Sign Dot Below
(0x01039, 0x01039,), # Myanmar Sign Virama ..Myanmar Sign Virama
(0x01058, 0x01059,), # Myanmar Vowel Sign Vocal..Myanmar Vowel Sign Vocal
(0x0135f, 0x0135f,), # Ethiopic Combining Gemin..Ethiopic Combining Gemin
(0x01712, 0x01714,), # Tagalog Vowel Sign I ..Tagalog Sign Virama
(0x01732, 0x01734,), # Hanunoo Vowel Sign I ..Hanunoo Sign Pamudpod
(0x01752, 0x01753,), # Buhid Vowel Sign I ..Buhid Vowel Sign U
(0x01772, 0x01773,), # Tagbanwa Vowel Sign I ..Tagbanwa Vowel Sign U
(0x017b7, 0x017bd,), # Khmer Vowel Sign I ..Khmer Vowel Sign Ua
(0x017c6, 0x017c6,), # Khmer Sign Nikahit ..Khmer Sign Nikahit
(0x017c9, 0x017d3,), # Khmer Sign Muusikatoan ..Khmer Sign Bathamasat
(0x017dd, 0x017dd,), # Khmer Sign Atthacan ..Khmer Sign Atthacan
(0x0180b, 0x0180d,), # Mongolian Free Variation..Mongolian Free Variation
(0x018a9, 0x018a9,), # Mongolian Letter Ali Gal..Mongolian Letter Ali Gal
(0x01920, 0x01922,), # Limbu Vowel Sign A ..Limbu Vowel Sign U
(0x01927, 0x01928,), # Limbu Vowel Sign E ..Limbu Vowel Sign O
(0x01932, 0x01932,), # Limbu Small Letter Anusv..Limbu Small Letter Anusv
(0x01939, 0x0193b,), # Limbu Sign Mukphreng ..Limbu Sign Sa-i
(0x01a17, 0x01a18,), # Buginese Vowel Sign I ..Buginese Vowel Sign U
(0x01dc0, 0x01dc3,), # Combining Dotted Grave A..Combining Suspension Mar
(0x020d0, 0x020eb,), # Combining Left Harpoon A..Combining Long Double So
(0x0302a, 0x0302f,), # Ideographic Level Tone M..Hangul Double Dot Tone M
(0x03099, 0x0309a,), # Combining Katakana-hirag..Combining Katakana-hirag
(0x0a806, 0x0a806,), # Syloti Nagri Sign Hasant..Syloti Nagri Sign Hasant
(0x0a80b, 0x0a80b,), # Syloti Nagri Sign Anusva..Syloti Nagri Sign Anusva
(0x0a825, 0x0a826,), # Syloti Nagri Vowel Sign ..Syloti Nagri Vowel Sign
(0x0fb1e, 0x0fb1e,), # Hebrew Point Judeo-spani..Hebrew Point Judeo-spani
(0x0fe00, 0x0fe0f,), # Variation Selector-1 ..Variation Selector-16
(0x0fe20, 0x0fe23,), # Combining Ligature Left ..Combining Double Tilde R
(0x10a01, 0x10a03,), # Kharoshthi Vowel Sign I ..Kharoshthi Vowel Sign Vo
(0x10a05, 0x10a06,), # Kharoshthi Vowel Sign E ..Kharoshthi Vowel Sign O
(0x10a0c, 0x10a0f,), # Kharoshthi Vowel Length ..Kharoshthi Sign Visarga
(0x10a38, 0x10a3a,), # Kharoshthi Sign Bar Abov..Kharoshthi Sign Dot Belo
(0x10a3f, 0x10a3f,), # Kharoshthi Virama ..Kharoshthi Virama
(0x1d167, 0x1d169,), # Musical Symbol Combining..Musical Symbol Combining
(0x1d17b, 0x1d182,), # Musical Symbol Combining..Musical Symbol Combining
(0x1d185, 0x1d18b,), # Musical Symbol Combining..Musical Symbol Combining
(0x1d1aa, 0x1d1ad,), # Musical Symbol Combining..Musical Symbol Combining
(0x1d242, 0x1d244,), # Combining Greek Musical ..Combining Greek Musical
(0xe0100, 0xe01ef,), # Variation Selector-17 ..Variation Selector-256
),
'5.0.0': (
# Source: DerivedGeneralCategory-5.0.0.txt
# Date: 2006-02-27, 23:41:27 GMT [MD]
#
(0x00300, 0x0036f,), # Combining Grave Accent ..Combining Latin Small Le
(0x00483, 0x00486,), # Combining Cyrillic Titlo..Combining Cyrillic Psili
(0x00488, 0x00489,), # Combining Cyrillic Hundr..Combining Cyrillic Milli
(0x00591, 0x005bd,), # Hebrew Accent Etnahta ..Hebrew Point Meteg
(0x005bf, 0x005bf,), # Hebrew Point Rafe ..Hebrew Point Rafe
(0x005c1, 0x005c2,), # Hebrew Point Shin Dot ..Hebrew Point Sin Dot
(0x005c4, 0x005c5,), # Hebrew Mark Upper Dot ..Hebrew Mark Lower Dot
(0x005c7, 0x005c7,), # Hebrew Point Qamats Qata..Hebrew Point Qamats Qata
(0x00610, 0x00615,), # Arabic Sign Sallallahou ..Arabic Small High Tah
(0x0064b, 0x0065e,), # Arabic Fathatan ..Arabic Fatha With Two Do
(0x00670, 0x00670,), # Arabic Letter Superscrip..Arabic Letter Superscrip
(0x006d6, 0x006dc,), # Arabic Small High Ligatu..Arabic Small High Seen
(0x006de, 0x006e4,), # Arabic Start Of Rub El H..Arabic Small High Madda
(0x006e7, 0x006e8,), # Arabic Small High Yeh ..Arabic Small High Noon
(0x006ea, 0x006ed,), # Arabic Empty Centre Low ..Arabic Small Low Meem
(0x00711, 0x00711,), # Syriac Letter Superscrip..Syriac Letter Superscrip
(0x00730, 0x0074a,), # Syriac Pthaha Above ..Syriac Barrekh
(0x007a6, 0x007b0,), # Thaana Abafili ..Thaana Sukun
(0x007eb, 0x007f3,), # Nko Combining Short High..Nko Combining Double Dot
(0x00901, 0x00902,), # Devanagari Sign Candrabi..Devanagari Sign Anusvara
(0x0093c, 0x0093c,), # Devanagari Sign Nukta ..Devanagari Sign Nukta
(0x00941, 0x00948,), # Devanagari Vowel Sign U ..Devanagari Vowel Sign Ai
(0x0094d, 0x0094d,), # Devanagari Sign Virama ..Devanagari Sign Virama
(0x00951, 0x00954,), # Devanagari Stress Sign U..Devanagari Acute Accent
(0x00962, 0x00963,), # Devanagari Vowel Sign Vo..Devanagari Vowel Sign Vo
(0x00981, 0x00981,), # Bengali Sign Candrabindu..Bengali Sign Candrabindu
(0x009bc, 0x009bc,), # Bengali Sign Nukta ..Bengali Sign Nukta
(0x009c1, 0x009c4,), # Bengali Vowel Sign U ..Bengali Vowel Sign Vocal
(0x009cd, 0x009cd,), # Bengali Sign Virama ..Bengali Sign Virama
(0x009e2, 0x009e3,), # Bengali Vowel Sign Vocal..Bengali Vowel Sign Vocal
(0x00a01, 0x00a02,), # Gurmukhi Sign Adak Bindi..Gurmukhi Sign Bindi
(0x00a3c, 0x00a3c,), # Gurmukhi Sign Nukta ..Gurmukhi Sign Nukta
(0x00a41, 0x00a42,), # Gurmukhi Vowel Sign U ..Gurmukhi Vowel Sign Uu
(0x00a47, 0x00a48,), # Gurmukhi Vowel Sign Ee ..Gurmukhi Vowel Sign Ai
(0x00a4b, 0x00a4d,), # Gurmukhi Vowel Sign Oo ..Gurmukhi Sign Virama
(0x00a70, 0x00a71,), # Gurmukhi Tippi ..Gurmukhi Addak
(0x00a81, 0x00a82,), # Gujarati Sign Candrabind..Gujarati Sign Anusvara
(0x00abc, 0x00abc,), # Gujarati Sign Nukta ..Gujarati Sign Nukta
(0x00ac1, 0x00ac5,), # Gujarati Vowel Sign U ..Gujarati Vowel Sign Cand
(0x00ac7, 0x00ac8,), # Gujarati Vowel Sign E ..Gujarati Vowel Sign Ai
(0x00acd, 0x00acd,), # Gujarati Sign Virama ..Gujarati Sign Virama
(0x00ae2, 0x00ae3,), # Gujarati Vowel Sign Voca..Gujarati Vowel Sign Voca
(0x00b01, 0x00b01,), # Oriya Sign Candrabindu ..Oriya Sign Candrabindu
(0x00b3c, 0x00b3c,), # Oriya Sign Nukta ..Oriya Sign Nukta
(0x00b3f, 0x00b3f,), # Oriya Vowel Sign I ..Oriya Vowel Sign I
(0x00b41, 0x00b43,), # Oriya Vowel Sign U ..Oriya Vowel Sign Vocalic
(0x00b4d, 0x00b4d,), # Oriya Sign Virama ..Oriya Sign Virama
(0x00b56, 0x00b56,), # Oriya Ai Length Mark ..Oriya Ai Length Mark
(0x00b82, 0x00b82,), # Tamil Sign Anusvara ..Tamil Sign Anusvara
(0x00bc0, 0x00bc0,), # Tamil Vowel Sign Ii ..Tamil Vowel Sign Ii
(0x00bcd, 0x00bcd,), # Tamil Sign Virama ..Tamil Sign Virama
(0x00c3e, 0x00c40,), # Telugu Vowel Sign Aa ..Telugu Vowel Sign Ii
(0x00c46, 0x00c48,), # Telugu Vowel Sign E ..Telugu Vowel Sign Ai
(0x00c4a, 0x00c4d,), # Telugu Vowel Sign O ..Telugu Sign Virama
(0x00c55, 0x00c56,), # Telugu Length Mark ..Telugu Ai Length Mark
(0x00cbc, 0x00cbc,), # Kannada Sign Nukta ..Kannada Sign Nukta
(0x00cbf, 0x00cbf,), # Kannada Vowel Sign I ..Kannada Vowel Sign I
(0x00cc6, 0x00cc6,), # Kannada Vowel Sign E ..Kannada Vowel Sign E
(0x00ccc, 0x00ccd,), # Kannada Vowel Sign Au ..Kannada Sign Virama
(0x00ce2, 0x00ce3,), # Kannada Vowel Sign Vocal..Kannada Vowel Sign Vocal
(0x00d41, 0x00d43,), # Malayalam Vowel Sign U ..Malayalam Vowel Sign Voc
(0x00d4d, 0x00d4d,), # Malayalam Sign Virama ..Malayalam Sign Virama
(0x00dca, 0x00dca,), # Sinhala Sign Al-lakuna ..Sinhala Sign Al-lakuna
(0x00dd2, 0x00dd4,), # Sinhala Vowel Sign Ketti..Sinhala Vowel Sign Ketti
(0x00dd6, 0x00dd6,), # Sinhala Vowel Sign Diga ..Sinhala Vowel Sign Diga
(0x00e31, 0x00e31,), # Thai Character Mai Han-a..Thai Character Mai Han-a
(0x00e34, 0x00e3a,), # Thai Character Sara I ..Thai Character Phinthu
(0x00e47, 0x00e4e,), # Thai Character Maitaikhu..Thai Character Yamakkan
(0x00eb1, 0x00eb1,), # Lao Vowel Sign Mai Kan ..Lao Vowel Sign Mai Kan
(0x00eb4, 0x00eb9,), # Lao Vowel Sign I ..Lao Vowel Sign Uu
(0x00ebb, 0x00ebc,), # Lao Vowel Sign Mai Kon ..Lao Semivowel Sign Lo
(0x00ec8, 0x00ecd,), # Lao Tone Mai Ek ..Lao Niggahita
(0x00f18, 0x00f19,), # Tibetan Astrological Sig..Tibetan Astrological Sig
(0x00f35, 0x00f35,), # Tibetan Mark Ngas Bzung ..Tibetan Mark Ngas Bzung
(0x00f37, 0x00f37,), # Tibetan Mark Ngas Bzung ..Tibetan Mark Ngas Bzung
(0x00f39, 0x00f39,), # Tibetan Mark Tsa -phru ..Tibetan Mark Tsa -phru
(0x00f71, 0x00f7e,), # Tibetan Vowel Sign Aa ..Tibetan Sign Rjes Su Nga
(0x00f80, 0x00f84,), # Tibetan Vowel Sign Rever..Tibetan Mark Halanta
(0x00f86, 0x00f87,), # Tibetan Sign Lci Rtags ..Tibetan Sign Yang Rtags
(0x00f90, 0x00f97,), # Tibetan Subjoined Letter..Tibetan Subjoined Letter
(0x00f99, 0x00fbc,), # Tibetan Subjoined Letter..Tibetan Subjoined Letter
(0x00fc6, 0x00fc6,), # Tibetan Symbol Padma Gda..Tibetan Symbol Padma Gda
(0x0102d, 0x01030,), # Myanmar Vowel Sign I ..Myanmar Vowel Sign Uu
(0x01032, 0x01032,), # Myanmar Vowel Sign Ai ..Myanmar Vowel Sign Ai
(0x01036, 0x01037,), # Myanmar Sign Anusvara ..Myanmar Sign Dot Below
(0x01039, 0x01039,), # Myanmar Sign Virama ..Myanmar Sign Virama
(0x01058, 0x01059,), # Myanmar Vowel Sign Vocal..Myanmar Vowel Sign Vocal
(0x0135f, 0x0135f,), # Ethiopic Combining Gemin..Ethiopic Combining Gemin
(0x01712, 0x01714,), # Tagalog Vowel Sign I ..Tagalog Sign Virama
(0x01732, 0x01734,), # Hanunoo Vowel Sign I ..Hanunoo Sign Pamudpod
(0x01752, 0x01753,), # Buhid Vowel Sign I ..Buhid Vowel Sign U
(0x01772, 0x01773,), # Tagbanwa Vowel Sign I ..Tagbanwa Vowel Sign U
(0x017b7, 0x017bd,), # Khmer Vowel Sign I ..Khmer Vowel Sign Ua
(0x017c6, 0x017c6,), # Khmer Sign Nikahit ..Khmer Sign Nikahit
(0x017c9, 0x017d3,), # Khmer Sign Muusikatoan ..Khmer Sign Bathamasat
(0x017dd, 0x017dd,), # Khmer Sign Atthacan ..Khmer Sign Atthacan
(0x0180b, 0x0180d,), # Mongolian Free Variation..Mongolian Free Variation
(0x018a9, 0x018a9,), # Mongolian Letter Ali Gal..Mongolian Letter Ali Gal
(0x01920, 0x01922,), # Limbu Vowel Sign A ..Limbu Vowel Sign U
(0x01927, 0x01928,), # Limbu Vowel Sign E ..Limbu Vowel Sign O
(0x01932, 0x01932,), # Limbu Small Letter Anusv..Limbu Small Letter Anusv
(0x01939, 0x0193b,), # Limbu Sign Mukphreng ..Limbu Sign Sa-i
(0x01a17, 0x01a18,), # Buginese Vowel Sign I ..Buginese Vowel Sign U
(0x01b00, 0x01b03,), # Balinese Sign Ulu Ricem ..Balinese Sign Surang
(0x01b34, 0x01b34,), # Balinese Sign Rerekan ..Balinese Sign Rerekan
(0x01b36, 0x01b3a,), # Balinese Vowel Sign Ulu ..Balinese Vowel Sign Ra R
(0x01b3c, 0x01b3c,), # Balinese Vowel Sign La L..Balinese Vowel Sign La L
(0x01b42, 0x01b42,), # Balinese Vowel Sign Pepe..Balinese Vowel Sign Pepe
(0x01b6b, 0x01b73,), # Balinese Musical Symbol ..Balinese Musical Symbol
(0x01dc0, 0x01dca,), # Combining Dotted Grave A..Combining Latin Small Le
(0x01dfe, 0x01dff,), # Combining Left Arrowhead..Combining Right Arrowhea
(0x020d0, 0x020ef,), # Combining Left Harpoon A..Combining Right Arrow Be
(0x0302a, 0x0302f,), # Ideographic Level Tone M..Hangul Double Dot Tone M
(0x03099, 0x0309a,), # Combining Katakana-hirag..Combining Katakana-hirag
(0x0a806, 0x0a806,), # Syloti Nagri Sign Hasant..Syloti Nagri Sign Hasant
(0x0a80b, 0x0a80b,), # Syloti Nagri Sign Anusva..Syloti Nagri Sign Anusva
(0x0a825, 0x0a826,), # Syloti Nagri Vowel Sign ..Syloti Nagri Vowel Sign
(0x0fb1e, 0x0fb1e,), # Hebrew Point Judeo-spani..Hebrew Point Judeo-spani
(0x0fe00, 0x0fe0f,), # Variation Selector-1 ..Variation Selector-16
(0x0fe20, 0x0fe23,), # Combining Ligature Left ..Combining Double Tilde R
(0x10a01, 0x10a03,), # Kharoshthi Vowel Sign I ..Kharoshthi Vowel Sign Vo
(0x10a05, 0x10a06,), # Kharoshthi Vowel Sign E ..Kharoshthi Vowel Sign O
(0x10a0c, 0x10a0f,), # Kharoshthi Vowel Length ..Kharoshthi Sign Visarga
(0x10a38, 0x10a3a,), # Kharoshthi Sign Bar Abov..Kharoshthi Sign Dot Belo
(0x10a3f, 0x10a3f,), # Kharoshthi Virama ..Kharoshthi Virama
(0x1d167, 0x1d169,), # Musical Symbol Combining..Musical Symbol Combining
(0x1d17b, 0x1d182,), # Musical Symbol Combining..Musical Symbol Combining
(0x1d185, 0x1d18b,), # Musical Symbol Combining..Musical Symbol Combining
(0x1d1aa, 0x1d1ad,), # Musical Symbol Combining..Musical Symbol Combining
(0x1d242, 0x1d244,), # Combining Greek Musical ..Combining Greek Musical
(0xe0100, 0xe01ef,), # Variation Selector-17 ..Variation Selector-256
),
'5.1.0': (
# Source: DerivedGeneralCategory-5.1.0.txt
# Date: 2008-03-20, 17:54:57 GMT [MD]
#
(0x00300, 0x0036f,), # Combining Grave Accent ..Combining Latin Small Le
(0x00483, 0x00489,), # Combining Cyrillic Titlo..Combining Cyrillic Milli
(0x00591, 0x005bd,), # Hebrew Accent Etnahta ..Hebrew Point Meteg
(0x005bf, 0x005bf,), # Hebrew Point Rafe ..Hebrew Point Rafe
(0x005c1, 0x005c2,), # Hebrew Point Shin Dot ..Hebrew Point Sin Dot
(0x005c4, 0x005c5,), # Hebrew Mark Upper Dot ..Hebrew Mark Lower Dot
(0x005c7, 0x005c7,), # Hebrew Point Qamats Qata..Hebrew Point Qamats Qata
(0x00610, 0x0061a,), # Arabic Sign Sallallahou ..Arabic Small Kasra
(0x0064b, 0x0065e,), # Arabic Fathatan ..Arabic Fatha With Two Do
(0x00670, 0x00670,), # Arabic Letter Superscrip..Arabic Letter Superscrip
(0x006d6, 0x006dc,), # Arabic Small High Ligatu..Arabic Small High Seen
(0x006de, 0x006e4,), # Arabic Start Of Rub El H..Arabic Small High Madda
(0x006e7, 0x006e8,), # Arabic Small High Yeh ..Arabic Small High Noon
(0x006ea, 0x006ed,), # Arabic Empty Centre Low ..Arabic Small Low Meem
(0x00711, 0x00711,), # Syriac Letter Superscrip..Syriac Letter Superscrip
(0x00730, 0x0074a,), # Syriac Pthaha Above ..Syriac Barrekh
(0x007a6, 0x007b0,), # Thaana Abafili ..Thaana Sukun
(0x007eb, 0x007f3,), # Nko Combining Short High..Nko Combining Double Dot
(0x00901, 0x00902,), # Devanagari Sign Candrabi..Devanagari Sign Anusvara
(0x0093c, 0x0093c,), # Devanagari Sign Nukta ..Devanagari Sign Nukta
(0x00941, 0x00948,), # Devanagari Vowel Sign U ..Devanagari Vowel Sign Ai
(0x0094d, 0x0094d,), # Devanagari Sign Virama ..Devanagari Sign Virama
(0x00951, 0x00954,), # Devanagari Stress Sign U..Devanagari Acute Accent
(0x00962, 0x00963,), # Devanagari Vowel Sign Vo..Devanagari Vowel Sign Vo
(0x00981, 0x00981,), # Bengali Sign Candrabindu..Bengali Sign Candrabindu
(0x009bc, 0x009bc,), # Bengali Sign Nukta ..Bengali Sign Nukta
(0x009c1, 0x009c4,), # Bengali Vowel Sign U ..Bengali Vowel Sign Vocal
(0x009cd, 0x009cd,), # Bengali Sign Virama ..Bengali Sign Virama
(0x009e2, 0x009e3,), # Bengali Vowel Sign Vocal..Bengali Vowel Sign Vocal
(0x00a01, 0x00a02,), # Gurmukhi Sign Adak Bindi..Gurmukhi Sign Bindi
(0x00a3c, 0x00a3c,), # Gurmukhi Sign Nukta ..Gurmukhi Sign Nukta
(0x00a41, 0x00a42,), # Gurmukhi Vowel Sign U ..Gurmukhi Vowel Sign Uu
(0x00a47, 0x00a48,), # Gurmukhi Vowel Sign Ee ..Gurmukhi Vowel Sign Ai
(0x00a4b, 0x00a4d,), # Gurmukhi Vowel Sign Oo ..Gurmukhi Sign Virama
(0x00a51, 0x00a51,), # Gurmukhi Sign Udaat ..Gurmukhi Sign Udaat
(0x00a70, 0x00a71,), # Gurmukhi Tippi ..Gurmukhi Addak
(0x00a75, 0x00a75,), # Gurmukhi Sign Yakash ..Gurmukhi Sign Yakash
(0x00a81, 0x00a82,), # Gujarati Sign Candrabind..Gujarati Sign Anusvara
(0x00abc, 0x00abc,), # Gujarati Sign Nukta ..Gujarati Sign Nukta
(0x00ac1, 0x00ac5,), # Gujarati Vowel Sign U ..Gujarati Vowel Sign Cand
(0x00ac7, 0x00ac8,), # Gujarati Vowel Sign E ..Gujarati Vowel Sign Ai
(0x00acd, 0x00acd,), # Gujarati Sign Virama ..Gujarati Sign Virama
(0x00ae2, 0x00ae3,), # Gujarati Vowel Sign Voca..Gujarati Vowel Sign Voca
(0x00b01, 0x00b01,), # Oriya Sign Candrabindu ..Oriya Sign Candrabindu
(0x00b3c, 0x00b3c,), # Oriya Sign Nukta ..Oriya Sign Nukta
(0x00b3f, 0x00b3f,), # Oriya Vowel Sign I ..Oriya Vowel Sign I
(0x00b41, 0x00b44,), # Oriya Vowel Sign U ..Oriya Vowel Sign Vocalic
(0x00b4d, 0x00b4d,), # Oriya Sign Virama ..Oriya Sign Virama
(0x00b56, 0x00b56,), # Oriya Ai Length Mark ..Oriya Ai Length Mark
(0x00b62, 0x00b63,), # Oriya Vowel Sign Vocalic..Oriya Vowel Sign Vocalic
(0x00b82, 0x00b82,), # Tamil Sign Anusvara ..Tamil Sign Anusvara
(0x00bc0, 0x00bc0,), # Tamil Vowel Sign Ii ..Tamil Vowel Sign Ii
(0x00bcd, 0x00bcd,), # Tamil Sign Virama ..Tamil Sign Virama
(0x00c3e, 0x00c40,), # Telugu Vowel Sign Aa ..Telugu Vowel Sign Ii
(0x00c46, 0x00c48,), # Telugu Vowel Sign E ..Telugu Vowel Sign Ai
(0x00c4a, 0x00c4d,), # Telugu Vowel Sign O ..Telugu Sign Virama
(0x00c55, 0x00c56,), # Telugu Length Mark ..Telugu Ai Length Mark
(0x00c62, 0x00c63,), # Telugu Vowel Sign Vocali..Telugu Vowel Sign Vocali
(0x00cbc, 0x00cbc,), # Kannada Sign Nukta ..Kannada Sign Nukta
(0x00cbf, 0x00cbf,), # Kannada Vowel Sign I ..Kannada Vowel Sign I
(0x00cc6, 0x00cc6,), # Kannada Vowel Sign E ..Kannada Vowel Sign E
(0x00ccc, 0x00ccd,), # Kannada Vowel Sign Au ..Kannada Sign Virama
(0x00ce2, 0x00ce3,), # Kannada Vowel Sign Vocal..Kannada Vowel Sign Vocal
(0x00d41, 0x00d44,), # Malayalam Vowel Sign U ..Malayalam Vowel Sign Voc
(0x00d4d, 0x00d4d,), # Malayalam Sign Virama ..Malayalam Sign Virama
(0x00d62, 0x00d63,), # Malayalam Vowel Sign Voc..Malayalam Vowel Sign Voc
(0x00dca, 0x00dca,), # Sinhala Sign Al-lakuna ..Sinhala Sign Al-lakuna
(0x00dd2, 0x00dd4,), # Sinhala Vowel Sign Ketti..Sinhala Vowel Sign Ketti
(0x00dd6, 0x00dd6,), # Sinhala Vowel Sign Diga ..Sinhala Vowel Sign Diga
(0x00e31, 0x00e31,), # Thai Character Mai Han-a..Thai Character Mai Han-a
(0x00e34, 0x00e3a,), # Thai Character Sara I ..Thai Character Phinthu
(0x00e47, 0x00e4e,), # Thai Character Maitaikhu..Thai Character Yamakkan
(0x00eb1, 0x00eb1,), # Lao Vowel Sign Mai Kan ..Lao Vowel Sign Mai Kan
(0x00eb4, 0x00eb9,), # Lao Vowel Sign I ..Lao Vowel Sign Uu
(0x00ebb, 0x00ebc,), # Lao Vowel Sign Mai Kon ..Lao Semivowel Sign Lo
(0x00ec8, 0x00ecd,), # Lao Tone Mai Ek ..Lao Niggahita
(0x00f18, 0x00f19,), # Tibetan Astrological Sig..Tibetan Astrological Sig
(0x00f35, 0x00f35,), # Tibetan Mark Ngas Bzung ..Tibetan Mark Ngas Bzung
(0x00f37, 0x00f37,), # Tibetan Mark Ngas Bzung ..Tibetan Mark Ngas Bzung
(0x00f39, 0x00f39,), # Tibetan Mark Tsa -phru ..Tibetan Mark Tsa -phru
(0x00f71, 0x00f7e,), # Tibetan Vowel Sign Aa ..Tibetan Sign Rjes Su Nga
(0x00f80, 0x00f84,), # Tibetan Vowel Sign Rever..Tibetan Mark Halanta
(0x00f86, 0x00f87,), # Tibetan Sign Lci Rtags ..Tibetan Sign Yang Rtags
(0x00f90, 0x00f97,), # Tibetan Subjoined Letter..Tibetan Subjoined Letter
(0x00f99, 0x00fbc,), # Tibetan Subjoined Letter..Tibetan Subjoined Letter
(0x00fc6, 0x00fc6,), # Tibetan Symbol Padma Gda..Tibetan Symbol Padma Gda
(0x0102d, 0x01030,), # Myanmar Vowel Sign I ..Myanmar Vowel Sign Uu
(0x01032, 0x01037,), # Myanmar Vowel Sign Ai ..Myanmar Sign Dot Below
(0x01039, 0x0103a,), # Myanmar Sign Virama ..Myanmar Sign Asat
(0x0103d, 0x0103e,), # Myanmar Consonant Sign M..Myanmar Consonant Sign M
(0x01058, 0x01059,), # Myanmar Vowel Sign Vocal..Myanmar Vowel Sign Vocal
(0x0105e, 0x01060,), # Myanmar Consonant Sign M..Myanmar Consonant Sign M
(0x01071, 0x01074,), # Myanmar Vowel Sign Geba ..Myanmar Vowel Sign Kayah
(0x01082, 0x01082,), # Myanmar Consonant Sign S..Myanmar Consonant Sign S
(0x01085, 0x01086,), # Myanmar Vowel Sign Shan ..Myanmar Vowel Sign Shan
(0x0108d, 0x0108d,), # Myanmar Sign Shan Counci..Myanmar Sign Shan Counci
(0x0135f, 0x0135f,), # Ethiopic Combining Gemin..Ethiopic Combining Gemin
(0x01712, 0x01714,), # Tagalog Vowel Sign I ..Tagalog Sign Virama
(0x01732, 0x01734,), # Hanunoo Vowel Sign I ..Hanunoo Sign Pamudpod
(0x01752, 0x01753,), # Buhid Vowel Sign I ..Buhid Vowel Sign U
(0x01772, 0x01773,), # Tagbanwa Vowel Sign I ..Tagbanwa Vowel Sign U
(0x017b7, 0x017bd,), # Khmer Vowel Sign I ..Khmer Vowel Sign Ua
(0x017c6, 0x017c6,), # Khmer Sign Nikahit ..Khmer Sign Nikahit
(0x017c9, 0x017d3,), # Khmer Sign Muusikatoan ..Khmer Sign Bathamasat
(0x017dd, 0x017dd,), # Khmer Sign Atthacan ..Khmer Sign Atthacan
(0x0180b, 0x0180d,), # Mongolian Free Variation..Mongolian Free Variation
(0x018a9, 0x018a9,), # Mongolian Letter Ali Gal..Mongolian Letter Ali Gal
(0x01920, 0x01922,), # Limbu Vowel Sign A ..Limbu Vowel Sign U
(0x01927, 0x01928,), # Limbu Vowel Sign E ..Limbu Vowel Sign O
(0x01932, 0x01932,), # Limbu Small Letter Anusv..Limbu Small Letter Anusv
(0x01939, 0x0193b,), # Limbu Sign Mukphreng ..Limbu Sign Sa-i
(0x01a17, 0x01a18,), # Buginese Vowel Sign I ..Buginese Vowel Sign U
(0x01b00, 0x01b03,), # Balinese Sign Ulu Ricem ..Balinese Sign Surang
(0x01b34, 0x01b34,), # Balinese Sign Rerekan ..Balinese Sign Rerekan
(0x01b36, 0x01b3a,), # Balinese Vowel Sign Ulu ..Balinese Vowel Sign Ra R
(0x01b3c, 0x01b3c,), # Balinese Vowel Sign La L..Balinese Vowel Sign La L
(0x01b42, 0x01b42,), # Balinese Vowel Sign Pepe..Balinese Vowel Sign Pepe
(0x01b6b, 0x01b73,), # Balinese Musical Symbol ..Balinese Musical Symbol
(0x01b80, 0x01b81,), # Sundanese Sign Panyecek ..Sundanese Sign Panglayar
(0x01ba2, 0x01ba5,), # Sundanese Consonant Sign..Sundanese Vowel Sign Pan
(0x01ba8, 0x01ba9,), # Sundanese Vowel Sign Pam..Sundanese Vowel Sign Pan
(0x01c2c, 0x01c33,), # Lepcha Vowel Sign E ..Lepcha Consonant Sign T
(0x01c36, 0x01c37,), # Lepcha Sign Ran ..Lepcha Sign Nukta
(0x01dc0, 0x01de6,), # Combining Dotted Grave A..Combining Latin Small Le
(0x01dfe, 0x01dff,), # Combining Left Arrowhead..Combining Right Arrowhea
(0x020d0, 0x020f0,), # Combining Left Harpoon A..Combining Asterisk Above
(0x02de0, 0x02dff,), # Combining Cyrillic Lette..Combining Cyrillic Lette
(0x0302a, 0x0302f,), # Ideographic Level Tone M..Hangul Double Dot Tone M
(0x03099, 0x0309a,), # Combining Katakana-hirag..Combining Katakana-hirag
(0x0a66f, 0x0a672,), # Combining Cyrillic Vzmet..Combining Cyrillic Thous
(0x0a67c, 0x0a67d,), # Combining Cyrillic Kavyk..Combining Cyrillic Payer
(0x0a802, 0x0a802,), # Syloti Nagri Sign Dvisva..Syloti Nagri Sign Dvisva
(0x0a806, 0x0a806,), # Syloti Nagri Sign Hasant..Syloti Nagri Sign Hasant
(0x0a80b, 0x0a80b,), # Syloti Nagri Sign Anusva..Syloti Nagri Sign Anusva
(0x0a825, 0x0a826,), # Syloti Nagri Vowel Sign ..Syloti Nagri Vowel Sign
(0x0a8c4, 0x0a8c4,), # Saurashtra Sign Virama ..Saurashtra Sign Virama
(0x0a926, 0x0a92d,), # Kayah Li Vowel Ue ..Kayah Li Tone Calya Plop
(0x0a947, 0x0a951,), # Rejang Vowel Sign I ..Rejang Consonant Sign R
(0x0aa29, 0x0aa2e,), # Cham Vowel Sign Aa ..Cham Vowel Sign Oe
(0x0aa31, 0x0aa32,), # Cham Vowel Sign Au ..Cham Vowel Sign Ue
(0x0aa35, 0x0aa36,), # Cham Consonant Sign La ..Cham Consonant Sign Wa
(0x0aa43, 0x0aa43,), # Cham Consonant Sign Fina..Cham Consonant Sign Fina
(0x0aa4c, 0x0aa4c,), # Cham Consonant Sign Fina..Cham Consonant Sign Fina
(0x0fb1e, 0x0fb1e,), # Hebrew Point Judeo-spani..Hebrew Point Judeo-spani
(0x0fe00, 0x0fe0f,), # Variation Selector-1 ..Variation Selector-16
(0x0fe20, 0x0fe26,), # Combining Ligature Left ..Combining Conjoining Mac
(0x101fd, 0x101fd,), # Phaistos Disc Sign Combi..Phaistos Disc Sign Combi
(0x10a01, 0x10a03,), # Kharoshthi Vowel Sign I ..Kharoshthi Vowel Sign Vo
(0x10a05, 0x10a06,), # Kharoshthi Vowel Sign E ..Kharoshthi Vowel Sign O
(0x10a0c, 0x10a0f,), # Kharoshthi Vowel Length ..Kharoshthi Sign Visarga
(0x10a38, 0x10a3a,), # Kharoshthi Sign Bar Abov..Kharoshthi Sign Dot Belo
(0x10a3f, 0x10a3f,), # Kharoshthi Virama ..Kharoshthi Virama
(0x1d167, 0x1d169,), # Musical Symbol Combining..Musical Symbol Combining
(0x1d17b, 0x1d182,), # Musical Symbol Combining..Musical Symbol Combining
(0x1d185, 0x1d18b,), # Musical Symbol Combining..Musical Symbol Combining
(0x1d1aa, 0x1d1ad,), # Musical Symbol Combining..Musical Symbol Combining
(0x1d242, 0x1d244,), # Combining Greek Musical ..Combining Greek Musical
(0xe0100, 0xe01ef,), # Variation Selector-17 ..Variation Selector-256
),
'5.2.0': (
# Source: DerivedGeneralCategory-5.2.0.txt
# Date: 2009-08-22, 04:58:21 GMT [MD]
#
(0x00300, 0x0036f,), # Combining Grave Accent ..Combining Latin Small Le
(0x00483, 0x00489,), # Combining Cyrillic Titlo..Combining Cyrillic Milli
(0x00591, 0x005bd,), # Hebrew Accent Etnahta ..Hebrew Point Meteg
(0x005bf, 0x005bf,), # Hebrew Point Rafe ..Hebrew Point Rafe
(0x005c1, 0x005c2,), # Hebrew Point Shin Dot ..Hebrew Point Sin Dot
(0x005c4, 0x005c5,), # Hebrew Mark Upper Dot ..Hebrew Mark Lower Dot
(0x005c7, 0x005c7,), # Hebrew Point Qamats Qata..Hebrew Point Qamats Qata
(0x00610, 0x0061a,), # Arabic Sign Sallallahou ..Arabic Small Kasra
(0x0064b, 0x0065e,), # Arabic Fathatan ..Arabic Fatha With Two Do
(0x00670, 0x00670,), # Arabic Letter Superscrip..Arabic Letter Superscrip
(0x006d6, 0x006dc,), # Arabic Small High Ligatu..Arabic Small High Seen
(0x006de, 0x006e4,), # Arabic Start Of Rub El H..Arabic Small High Madda
(0x006e7, 0x006e8,), # Arabic Small High Yeh ..Arabic Small High Noon
(0x006ea, 0x006ed,), # Arabic Empty Centre Low ..Arabic Small Low Meem
(0x00711, 0x00711,), # Syriac Letter Superscrip..Syriac Letter Superscrip
(0x00730, 0x0074a,), # Syriac Pthaha Above ..Syriac Barrekh
(0x007a6, 0x007b0,), # Thaana Abafili ..Thaana Sukun
(0x007eb, 0x007f3,), # Nko Combining Short High..Nko Combining Double Dot
(0x00816, 0x00819,), # Samaritan Mark In ..Samaritan Mark Dagesh
(0x0081b, 0x00823,), # Samaritan Mark Epentheti..Samaritan Vowel Sign A
(0x00825, 0x00827,), # Samaritan Vowel Sign Sho..Samaritan Vowel Sign U
(0x00829, 0x0082d,), # Samaritan Vowel Sign Lon..Samaritan Mark Nequdaa
(0x00900, 0x00902,), # Devanagari Sign Inverted..Devanagari Sign Anusvara
(0x0093c, 0x0093c,), # Devanagari Sign Nukta ..Devanagari Sign Nukta
(0x00941, 0x00948,), # Devanagari Vowel Sign U ..Devanagari Vowel Sign Ai
(0x0094d, 0x0094d,), # Devanagari Sign Virama ..Devanagari Sign Virama
(0x00951, 0x00955,), # Devanagari Stress Sign U..Devanagari Vowel Sign Ca
(0x00962, 0x00963,), # Devanagari Vowel Sign Vo..Devanagari Vowel Sign Vo
(0x00981, 0x00981,), # Bengali Sign Candrabindu..Bengali Sign Candrabindu
(0x009bc, 0x009bc,), # Bengali Sign Nukta ..Bengali Sign Nukta
(0x009c1, 0x009c4,), # Bengali Vowel Sign U ..Bengali Vowel Sign Vocal
(0x009cd, 0x009cd,), # Bengali Sign Virama ..Bengali Sign Virama
(0x009e2, 0x009e3,), # Bengali Vowel Sign Vocal..Bengali Vowel Sign Vocal
(0x00a01, 0x00a02,), # Gurmukhi Sign Adak Bindi..Gurmukhi Sign Bindi
(0x00a3c, 0x00a3c,), # Gurmukhi Sign Nukta ..Gurmukhi Sign Nukta
(0x00a41, 0x00a42,), # Gurmukhi Vowel Sign U ..Gurmukhi Vowel Sign Uu
(0x00a47, 0x00a48,), # Gurmukhi Vowel Sign Ee ..Gurmukhi Vowel Sign Ai
(0x00a4b, 0x00a4d,), # Gurmukhi Vowel Sign Oo ..Gurmukhi Sign Virama
(0x00a51, 0x00a51,), # Gurmukhi Sign Udaat ..Gurmukhi Sign Udaat
(0x00a70, 0x00a71,), # Gurmukhi Tippi ..Gurmukhi Addak
(0x00a75, 0x00a75,), # Gurmukhi Sign Yakash ..Gurmukhi Sign Yakash
(0x00a81, 0x00a82,), # Gujarati Sign Candrabind..Gujarati Sign Anusvara
(0x00abc, 0x00abc,), # Gujarati Sign Nukta ..Gujarati Sign Nukta
(0x00ac1, 0x00ac5,), # Gujarati Vowel Sign U ..Gujarati Vowel Sign Cand
(0x00ac7, 0x00ac8,), # Gujarati Vowel Sign E ..Gujarati Vowel Sign Ai
(0x00acd, 0x00acd,), # Gujarati Sign Virama ..Gujarati Sign Virama
(0x00ae2, 0x00ae3,), # Gujarati Vowel Sign Voca..Gujarati Vowel Sign Voca
(0x00b01, 0x00b01,), # Oriya Sign Candrabindu ..Oriya Sign Candrabindu
(0x00b3c, 0x00b3c,), # Oriya Sign Nukta ..Oriya Sign Nukta
(0x00b3f, 0x00b3f,), # Oriya Vowel Sign I ..Oriya Vowel Sign I
(0x00b41, 0x00b44,), # Oriya Vowel Sign U ..Oriya Vowel Sign Vocalic
(0x00b4d, 0x00b4d,), # Oriya Sign Virama ..Oriya Sign Virama
(0x00b56, 0x00b56,), # Oriya Ai Length Mark ..Oriya Ai Length Mark
(0x00b62, 0x00b63,), # Oriya Vowel Sign Vocalic..Oriya Vowel Sign Vocalic
(0x00b82, 0x00b82,), # Tamil Sign Anusvara ..Tamil Sign Anusvara
(0x00bc0, 0x00bc0,), # Tamil Vowel Sign Ii ..Tamil Vowel Sign Ii
(0x00bcd, 0x00bcd,), # Tamil Sign Virama ..Tamil Sign Virama
(0x00c3e, 0x00c40,), # Telugu Vowel Sign Aa ..Telugu Vowel Sign Ii
(0x00c46, 0x00c48,), # Telugu Vowel Sign E ..Telugu Vowel Sign Ai
(0x00c4a, 0x00c4d,), # Telugu Vowel Sign O ..Telugu Sign Virama
(0x00c55, 0x00c56,), # Telugu Length Mark ..Telugu Ai Length Mark
(0x00c62, 0x00c63,), # Telugu Vowel Sign Vocali..Telugu Vowel Sign Vocali
(0x00cbc, 0x00cbc,), # Kannada Sign Nukta ..Kannada Sign Nukta
(0x00cbf, 0x00cbf,), # Kannada Vowel Sign I ..Kannada Vowel Sign I
(0x00cc6, 0x00cc6,), # Kannada Vowel Sign E ..Kannada Vowel Sign E
(0x00ccc, 0x00ccd,), # Kannada Vowel Sign Au ..Kannada Sign Virama
(0x00ce2, 0x00ce3,), # Kannada Vowel Sign Vocal..Kannada Vowel Sign Vocal
(0x00d41, 0x00d44,), # Malayalam Vowel Sign U ..Malayalam Vowel Sign Voc
(0x00d4d, 0x00d4d,), # Malayalam Sign Virama ..Malayalam Sign Virama
(0x00d62, 0x00d63,), # Malayalam Vowel Sign Voc..Malayalam Vowel Sign Voc
(0x00dca, 0x00dca,), # Sinhala Sign Al-lakuna ..Sinhala Sign Al-lakuna
(0x00dd2, 0x00dd4,), # Sinhala Vowel Sign Ketti..Sinhala Vowel Sign Ketti
(0x00dd6, 0x00dd6,), # Sinhala Vowel Sign Diga ..Sinhala Vowel Sign Diga
(0x00e31, 0x00e31,), # Thai Character Mai Han-a..Thai Character Mai Han-a
(0x00e34, 0x00e3a,), # Thai Character Sara I ..Thai Character Phinthu
(0x00e47, 0x00e4e,), # Thai Character Maitaikhu..Thai Character Yamakkan
(0x00eb1, 0x00eb1,), # Lao Vowel Sign Mai Kan ..Lao Vowel Sign Mai Kan
(0x00eb4, 0x00eb9,), # Lao Vowel Sign I ..Lao Vowel Sign Uu
(0x00ebb, 0x00ebc,), # Lao Vowel Sign Mai Kon ..Lao Semivowel Sign Lo
(0x00ec8, 0x00ecd,), # Lao Tone Mai Ek ..Lao Niggahita
(0x00f18, 0x00f19,), # Tibetan Astrological Sig..Tibetan Astrological Sig
(0x00f35, 0x00f35,), # Tibetan Mark Ngas Bzung ..Tibetan Mark Ngas Bzung
(0x00f37, 0x00f37,), # Tibetan Mark Ngas Bzung ..Tibetan Mark Ngas Bzung
(0x00f39, 0x00f39,), # Tibetan Mark Tsa -phru ..Tibetan Mark Tsa -phru
(0x00f71, 0x00f7e,), # Tibetan Vowel Sign Aa ..Tibetan Sign Rjes Su Nga
(0x00f80, 0x00f84,), # Tibetan Vowel Sign Rever..Tibetan Mark Halanta
(0x00f86, 0x00f87,), # Tibetan Sign Lci Rtags ..Tibetan Sign Yang Rtags
(0x00f90, 0x00f97,), # Tibetan Subjoined Letter..Tibetan Subjoined Letter
(0x00f99, 0x00fbc,), # Tibetan Subjoined Letter..Tibetan Subjoined Letter
(0x00fc6, 0x00fc6,), # Tibetan Symbol Padma Gda..Tibetan Symbol Padma Gda
(0x0102d, 0x01030,), # Myanmar Vowel Sign I ..Myanmar Vowel Sign Uu
(0x01032, 0x01037,), # Myanmar Vowel Sign Ai ..Myanmar Sign Dot Below
(0x01039, 0x0103a,), # Myanmar Sign Virama ..Myanmar Sign Asat
(0x0103d, 0x0103e,), # Myanmar Consonant Sign M..Myanmar Consonant Sign M
(0x01058, 0x01059,), # Myanmar Vowel Sign Vocal..Myanmar Vowel Sign Vocal
(0x0105e, 0x01060,), # Myanmar Consonant Sign M..Myanmar Consonant Sign M
(0x01071, 0x01074,), # Myanmar Vowel Sign Geba ..Myanmar Vowel Sign Kayah
(0x01082, 0x01082,), # Myanmar Consonant Sign S..Myanmar Consonant Sign S
(0x01085, 0x01086,), # Myanmar Vowel Sign Shan ..Myanmar Vowel Sign Shan
(0x0108d, 0x0108d,), # Myanmar Sign Shan Counci..Myanmar Sign Shan Counci
(0x0109d, 0x0109d,), # Myanmar Vowel Sign Aiton..Myanmar Vowel Sign Aiton
(0x0135f, 0x0135f,), # Ethiopic Combining Gemin..Ethiopic Combining Gemin
(0x01712, 0x01714,), # Tagalog Vowel Sign I ..Tagalog Sign Virama
(0x01732, 0x01734,), # Hanunoo Vowel Sign I ..Hanunoo Sign Pamudpod
(0x01752, 0x01753,), # Buhid Vowel Sign I ..Buhid Vowel Sign U
(0x01772, 0x01773,), # Tagbanwa Vowel Sign I ..Tagbanwa Vowel Sign U
(0x017b7, 0x017bd,), # Khmer Vowel Sign I ..Khmer Vowel Sign Ua
(0x017c6, 0x017c6,), # Khmer Sign Nikahit ..Khmer Sign Nikahit
(0x017c9, 0x017d3,), # Khmer Sign Muusikatoan ..Khmer Sign Bathamasat
(0x017dd, 0x017dd,), # Khmer Sign Atthacan ..Khmer Sign Atthacan
(0x0180b, 0x0180d,), # Mongolian Free Variation..Mongolian Free Variation
(0x018a9, 0x018a9,), # Mongolian Letter Ali Gal..Mongolian Letter Ali Gal
(0x01920, 0x01922,), # Limbu Vowel Sign A ..Limbu Vowel Sign U
(0x01927, 0x01928,), # Limbu Vowel Sign E ..Limbu Vowel Sign O
(0x01932, 0x01932,), # Limbu Small Letter Anusv..Limbu Small Letter Anusv
(0x01939, 0x0193b,), # Limbu Sign Mukphreng ..Limbu Sign Sa-i
(0x01a17, 0x01a18,), # Buginese Vowel Sign I ..Buginese Vowel Sign U
(0x01a56, 0x01a56,), # Tai Tham Consonant Sign ..Tai Tham Consonant Sign
(0x01a58, 0x01a5e,), # Tai Tham Sign Mai Kang L..Tai Tham Consonant Sign
(0x01a60, 0x01a60,), # Tai Tham Sign Sakot ..Tai Tham Sign Sakot
(0x01a62, 0x01a62,), # Tai Tham Vowel Sign Mai ..Tai Tham Vowel Sign Mai
(0x01a65, 0x01a6c,), # Tai Tham Vowel Sign I ..Tai Tham Vowel Sign Oa B
(0x01a73, 0x01a7c,), # Tai Tham Vowel Sign Oa A..Tai Tham Sign Khuen-lue
(0x01a7f, 0x01a7f,), # Tai Tham Combining Crypt..Tai Tham Combining Crypt
(0x01b00, 0x01b03,), # Balinese Sign Ulu Ricem ..Balinese Sign Surang
(0x01b34, 0x01b34,), # Balinese Sign Rerekan ..Balinese Sign Rerekan
(0x01b36, 0x01b3a,), # Balinese Vowel Sign Ulu ..Balinese Vowel Sign Ra R
(0x01b3c, 0x01b3c,), # Balinese Vowel Sign La L..Balinese Vowel Sign La L
(0x01b42, 0x01b42,), # Balinese Vowel Sign Pepe..Balinese Vowel Sign Pepe
(0x01b6b, 0x01b73,), # Balinese Musical Symbol ..Balinese Musical Symbol
(0x01b80, 0x01b81,), # Sundanese Sign Panyecek ..Sundanese Sign Panglayar
(0x01ba2, 0x01ba5,), # Sundanese Consonant Sign..Sundanese Vowel Sign Pan
(0x01ba8, 0x01ba9,), # Sundanese Vowel Sign Pam..Sundanese Vowel Sign Pan
(0x01c2c, 0x01c33,), # Lepcha Vowel Sign E ..Lepcha Consonant Sign T
(0x01c36, 0x01c37,), # Lepcha Sign Ran ..Lepcha Sign Nukta
(0x01cd0, 0x01cd2,), # Vedic Tone Karshana ..Vedic Tone Prenkha
(0x01cd4, 0x01ce0,), # Vedic Sign Yajurvedic Mi..Vedic Tone Rigvedic Kash
(0x01ce2, 0x01ce8,), # Vedic Sign Visarga Svari..Vedic Sign Visarga Anuda
(0x01ced, 0x01ced,), # Vedic Sign Tiryak ..Vedic Sign Tiryak
(0x01dc0, 0x01de6,), # Combining Dotted Grave A..Combining Latin Small Le
(0x01dfd, 0x01dff,), # Combining Almost Equal T..Combining Right Arrowhea
(0x020d0, 0x020f0,), # Combining Left Harpoon A..Combining Asterisk Above
(0x02cef, 0x02cf1,), # Coptic Combining Ni Abov..Coptic Combining Spiritu
(0x02de0, 0x02dff,), # Combining Cyrillic Lette..Combining Cyrillic Lette
(0x0302a, 0x0302f,), # Ideographic Level Tone M..Hangul Double Dot Tone M
(0x03099, 0x0309a,), # Combining Katakana-hirag..Combining Katakana-hirag
(0x0a66f, 0x0a672,), # Combining Cyrillic Vzmet..Combining Cyrillic Thous
(0x0a67c, 0x0a67d,), # Combining Cyrillic Kavyk..Combining Cyrillic Payer
(0x0a6f0, 0x0a6f1,), # Bamum Combining Mark Koq..Bamum Combining Mark Tuk
(0x0a802, 0x0a802,), # Syloti Nagri Sign Dvisva..Syloti Nagri Sign Dvisva
(0x0a806, 0x0a806,), # Syloti Nagri Sign Hasant..Syloti Nagri Sign Hasant
(0x0a80b, 0x0a80b,), # Syloti Nagri Sign Anusva..Syloti Nagri Sign Anusva
(0x0a825, 0x0a826,), # Syloti Nagri Vowel Sign ..Syloti Nagri Vowel Sign
(0x0a8c4, 0x0a8c4,), # Saurashtra Sign Virama ..Saurashtra Sign Virama
(0x0a8e0, 0x0a8f1,), # Combining Devanagari Dig..Combining Devanagari Sig
(0x0a926, 0x0a92d,), # Kayah Li Vowel Ue ..Kayah Li Tone Calya Plop
(0x0a947, 0x0a951,), # Rejang Vowel Sign I ..Rejang Consonant Sign R
(0x0a980, 0x0a982,), # Javanese Sign Panyangga ..Javanese Sign Layar
(0x0a9b3, 0x0a9b3,), # Javanese Sign Cecak Telu..Javanese Sign Cecak Telu
(0x0a9b6, 0x0a9b9,), # Javanese Vowel Sign Wulu..Javanese Vowel Sign Suku
(0x0a9bc, 0x0a9bc,), # Javanese Vowel Sign Pepe..Javanese Vowel Sign Pepe
(0x0aa29, 0x0aa2e,), # Cham Vowel Sign Aa ..Cham Vowel Sign Oe
(0x0aa31, 0x0aa32,), # Cham Vowel Sign Au ..Cham Vowel Sign Ue
(0x0aa35, 0x0aa36,), # Cham Consonant Sign La ..Cham Consonant Sign Wa
(0x0aa43, 0x0aa43,), # Cham Consonant Sign Fina..Cham Consonant Sign Fina
(0x0aa4c, 0x0aa4c,), # Cham Consonant Sign Fina..Cham Consonant Sign Fina
(0x0aab0, 0x0aab0,), # Tai Viet Mai Kang ..Tai Viet Mai Kang
(0x0aab2, 0x0aab4,), # Tai Viet Vowel I ..Tai Viet Vowel U
(0x0aab7, 0x0aab8,), # Tai Viet Mai Khit ..Tai Viet Vowel Ia
(0x0aabe, 0x0aabf,), # Tai Viet Vowel Am ..Tai Viet Tone Mai Ek
(0x0aac1, 0x0aac1,), # Tai Viet Tone Mai Tho ..Tai Viet Tone Mai Tho
(0x0abe5, 0x0abe5,), # Meetei Mayek Vowel Sign ..Meetei Mayek Vowel Sign
(0x0abe8, 0x0abe8,), # Meetei Mayek Vowel Sign ..Meetei Mayek Vowel Sign
(0x0abed, 0x0abed,), # Meetei Mayek Apun Iyek ..Meetei Mayek Apun Iyek
(0x0fb1e, 0x0fb1e,), # Hebrew Point Judeo-spani..Hebrew Point Judeo-spani
(0x0fe00, 0x0fe0f,), # Variation Selector-1 ..Variation Selector-16
(0x0fe20, 0x0fe26,), # Combining Ligature Left ..Combining Conjoining Mac
(0x101fd, 0x101fd,), # Phaistos Disc Sign Combi..Phaistos Disc Sign Combi
(0x10a01, 0x10a03,), # Kharoshthi Vowel Sign I ..Kharoshthi Vowel Sign Vo
(0x10a05, 0x10a06,), # Kharoshthi Vowel Sign E ..Kharoshthi Vowel Sign O
(0x10a0c, 0x10a0f,), # Kharoshthi Vowel Length ..Kharoshthi Sign Visarga
(0x10a38, 0x10a3a,), # Kharoshthi Sign Bar Abov..Kharoshthi Sign Dot Belo
(0x10a3f, 0x10a3f,), # Kharoshthi Virama ..Kharoshthi Virama
(0x11080, 0x11081,), # Kaithi Sign Candrabindu ..Kaithi Sign Anusvara
(0x110b3, 0x110b6,), # Kaithi Vowel Sign U ..Kaithi Vowel Sign Ai
(0x110b9, 0x110ba,), # Kaithi Sign Virama ..Kaithi Sign Nukta
(0x1d167, 0x1d169,), # Musical Symbol Combining..Musical Symbol Combining
(0x1d17b, 0x1d182,), # Musical Symbol Combining..Musical Symbol Combining
(0x1d185, 0x1d18b,), # Musical Symbol Combining..Musical Symbol Combining
(0x1d1aa, 0x1d1ad,), # Musical Symbol Combining..Musical Symbol Combining
(0x1d242, 0x1d244,), # Combining Greek Musical ..Combining Greek Musical
(0xe0100, 0xe01ef,), # Variation Selector-17 ..Variation Selector-256
),
'6.0.0': (
# Source: DerivedGeneralCategory-6.0.0.txt
# Date: 2010-08-19, 00:48:09 GMT [MD]
#
(0x00300, 0x0036f,), # Combining Grave Accent ..Combining Latin Small Le
(0x00483, 0x00489,), # Combining Cyrillic Titlo..Combining Cyrillic Milli
(0x00591, 0x005bd,), # Hebrew Accent Etnahta ..Hebrew Point Meteg
(0x005bf, 0x005bf,), # Hebrew Point Rafe ..Hebrew Point Rafe
(0x005c1, 0x005c2,), # Hebrew Point Shin Dot ..Hebrew Point Sin Dot
(0x005c4, 0x005c5,), # Hebrew Mark Upper Dot ..Hebrew Mark Lower Dot
(0x005c7, 0x005c7,), # Hebrew Point Qamats Qata..Hebrew Point Qamats Qata
(0x00610, 0x0061a,), # Arabic Sign Sallallahou ..Arabic Small Kasra
(0x0064b, 0x0065f,), # Arabic Fathatan ..Arabic Wavy Hamza Below
(0x00670, 0x00670,), # Arabic Letter Superscrip..Arabic Letter Superscrip
(0x006d6, 0x006dc,), # Arabic Small High Ligatu..Arabic Small High Seen
(0x006df, 0x006e4,), # Arabic Small High Rounde..Arabic Small High Madda
(0x006e7, 0x006e8,), # Arabic Small High Yeh ..Arabic Small High Noon
(0x006ea, 0x006ed,), # Arabic Empty Centre Low ..Arabic Small Low Meem
(0x00711, 0x00711,), # Syriac Letter Superscrip..Syriac Letter Superscrip
(0x00730, 0x0074a,), # Syriac Pthaha Above ..Syriac Barrekh
(0x007a6, 0x007b0,), # Thaana Abafili ..Thaana Sukun
(0x007eb, 0x007f3,), # Nko Combining Short High..Nko Combining Double Dot
(0x00816, 0x00819,), # Samaritan Mark In ..Samaritan Mark Dagesh
(0x0081b, 0x00823,), # Samaritan Mark Epentheti..Samaritan Vowel Sign A
(0x00825, 0x00827,), # Samaritan Vowel Sign Sho..Samaritan Vowel Sign U
(0x00829, 0x0082d,), # Samaritan Vowel Sign Lon..Samaritan Mark Nequdaa
(0x00859, 0x0085b,), # Mandaic Affrication Mark..Mandaic Gemination Mark
(0x00900, 0x00902,), # Devanagari Sign Inverted..Devanagari Sign Anusvara
(0x0093a, 0x0093a,), # Devanagari Vowel Sign Oe..Devanagari Vowel Sign Oe
(0x0093c, 0x0093c,), # Devanagari Sign Nukta ..Devanagari Sign Nukta
(0x00941, 0x00948,), # Devanagari Vowel Sign U ..Devanagari Vowel Sign Ai
(0x0094d, 0x0094d,), # Devanagari Sign Virama ..Devanagari Sign Virama
(0x00951, 0x00957,), # Devanagari Stress Sign U..Devanagari Vowel Sign Uu
(0x00962, 0x00963,), # Devanagari Vowel Sign Vo..Devanagari Vowel Sign Vo
(0x00981, 0x00981,), # Bengali Sign Candrabindu..Bengali Sign Candrabindu
(0x009bc, 0x009bc,), # Bengali Sign Nukta ..Bengali Sign Nukta
(0x009c1, 0x009c4,), # Bengali Vowel Sign U ..Bengali Vowel Sign Vocal
(0x009cd, 0x009cd,), # Bengali Sign Virama ..Bengali Sign Virama
(0x009e2, 0x009e3,), # Bengali Vowel Sign Vocal..Bengali Vowel Sign Vocal
(0x00a01, 0x00a02,), # Gurmukhi Sign Adak Bindi..Gurmukhi Sign Bindi
(0x00a3c, 0x00a3c,), # Gurmukhi Sign Nukta ..Gurmukhi Sign Nukta
(0x00a41, 0x00a42,), # Gurmukhi Vowel Sign U ..Gurmukhi Vowel Sign Uu
(0x00a47, 0x00a48,), # Gurmukhi Vowel Sign Ee ..Gurmukhi Vowel Sign Ai
(0x00a4b, 0x00a4d,), # Gurmukhi Vowel Sign Oo ..Gurmukhi Sign Virama
(0x00a51, 0x00a51,), # Gurmukhi Sign Udaat ..Gurmukhi Sign Udaat
(0x00a70, 0x00a71,), # Gurmukhi Tippi ..Gurmukhi Addak
(0x00a75, 0x00a75,), # Gurmukhi Sign Yakash ..Gurmukhi Sign Yakash
(0x00a81, 0x00a82,), # Gujarati Sign Candrabind..Gujarati Sign Anusvara
(0x00abc, 0x00abc,), # Gujarati Sign Nukta ..Gujarati Sign Nukta
(0x00ac1, 0x00ac5,), # Gujarati Vowel Sign U ..Gujarati Vowel Sign Cand
(0x00ac7, 0x00ac8,), # Gujarati Vowel Sign E ..Gujarati Vowel Sign Ai
(0x00acd, 0x00acd,), # Gujarati Sign Virama ..Gujarati Sign Virama
(0x00ae2, 0x00ae3,), # Gujarati Vowel Sign Voca..Gujarati Vowel Sign Voca
(0x00b01, 0x00b01,), # Oriya Sign Candrabindu ..Oriya Sign Candrabindu
(0x00b3c, 0x00b3c,), # Oriya Sign Nukta ..Oriya Sign Nukta
(0x00b3f, 0x00b3f,), # Oriya Vowel Sign I ..Oriya Vowel Sign I
(0x00b41, 0x00b44,), # Oriya Vowel Sign U ..Oriya Vowel Sign Vocalic
(0x00b4d, 0x00b4d,), # Oriya Sign Virama ..Oriya Sign Virama
(0x00b56, 0x00b56,), # Oriya Ai Length Mark ..Oriya Ai Length Mark
(0x00b62, 0x00b63,), # Oriya Vowel Sign Vocalic..Oriya Vowel Sign Vocalic
(0x00b82, 0x00b82,), # Tamil Sign Anusvara ..Tamil Sign Anusvara
(0x00bc0, 0x00bc0,), # Tamil Vowel Sign Ii ..Tamil Vowel Sign Ii
(0x00bcd, 0x00bcd,), # Tamil Sign Virama ..Tamil Sign Virama
(0x00c3e, 0x00c40,), # Telugu Vowel Sign Aa ..Telugu Vowel Sign Ii
(0x00c46, 0x00c48,), # Telugu Vowel Sign E ..Telugu Vowel Sign Ai
(0x00c4a, 0x00c4d,), # Telugu Vowel Sign O ..Telugu Sign Virama
(0x00c55, 0x00c56,), # Telugu Length Mark ..Telugu Ai Length Mark
(0x00c62, 0x00c63,), # Telugu Vowel Sign Vocali..Telugu Vowel Sign Vocali
(0x00cbc, 0x00cbc,), # Kannada Sign Nukta ..Kannada Sign Nukta
(0x00cbf, 0x00cbf,), # Kannada Vowel Sign I ..Kannada Vowel Sign I
(0x00cc6, 0x00cc6,), # Kannada Vowel Sign E ..Kannada Vowel Sign E
(0x00ccc, 0x00ccd,), # Kannada Vowel Sign Au ..Kannada Sign Virama
(0x00ce2, 0x00ce3,), # Kannada Vowel Sign Vocal..Kannada Vowel Sign Vocal
(0x00d41, 0x00d44,), # Malayalam Vowel Sign U ..Malayalam Vowel Sign Voc
(0x00d4d, 0x00d4d,), # Malayalam Sign Virama ..Malayalam Sign Virama
(0x00d62, 0x00d63,), # Malayalam Vowel Sign Voc..Malayalam Vowel Sign Voc
(0x00dca, 0x00dca,), # Sinhala Sign Al-lakuna ..Sinhala Sign Al-lakuna
(0x00dd2, 0x00dd4,), # Sinhala Vowel Sign Ketti..Sinhala Vowel Sign Ketti
(0x00dd6, 0x00dd6,), # Sinhala Vowel Sign Diga ..Sinhala Vowel Sign Diga
(0x00e31, 0x00e31,), # Thai Character Mai Han-a..Thai Character Mai Han-a
(0x00e34, 0x00e3a,), # Thai Character Sara I ..Thai Character Phinthu
(0x00e47, 0x00e4e,), # Thai Character Maitaikhu..Thai Character Yamakkan
(0x00eb1, 0x00eb1,), # Lao Vowel Sign Mai Kan ..Lao Vowel Sign Mai Kan
(0x00eb4, 0x00eb9,), # Lao Vowel Sign I ..Lao Vowel Sign Uu
(0x00ebb, 0x00ebc,), # Lao Vowel Sign Mai Kon ..Lao Semivowel Sign Lo
(0x00ec8, 0x00ecd,), # Lao Tone Mai Ek ..Lao Niggahita
(0x00f18, 0x00f19,), # Tibetan Astrological Sig..Tibetan Astrological Sig
(0x00f35, 0x00f35,), # Tibetan Mark Ngas Bzung ..Tibetan Mark Ngas Bzung
(0x00f37, 0x00f37,), # Tibetan Mark Ngas Bzung ..Tibetan Mark Ngas Bzung
(0x00f39, 0x00f39,), # Tibetan Mark Tsa -phru ..Tibetan Mark Tsa -phru
(0x00f71, 0x00f7e,), # Tibetan Vowel Sign Aa ..Tibetan Sign Rjes Su Nga
(0x00f80, 0x00f84,), # Tibetan Vowel Sign Rever..Tibetan Mark Halanta
(0x00f86, 0x00f87,), # Tibetan Sign Lci Rtags ..Tibetan Sign Yang Rtags
(0x00f8d, 0x00f97,), # Tibetan Subjoined Sign L..Tibetan Subjoined Letter
(0x00f99, 0x00fbc,), # Tibetan Subjoined Letter..Tibetan Subjoined Letter
(0x00fc6, 0x00fc6,), # Tibetan Symbol Padma Gda..Tibetan Symbol Padma Gda
(0x0102d, 0x01030,), # Myanmar Vowel Sign I ..Myanmar Vowel Sign Uu
(0x01032, 0x01037,), # Myanmar Vowel Sign Ai ..Myanmar Sign Dot Below
(0x01039, 0x0103a,), # Myanmar Sign Virama ..Myanmar Sign Asat
(0x0103d, 0x0103e,), # Myanmar Consonant Sign M..Myanmar Consonant Sign M
(0x01058, 0x01059,), # Myanmar Vowel Sign Vocal..Myanmar Vowel Sign Vocal
(0x0105e, 0x01060,), # Myanmar Consonant Sign M..Myanmar Consonant Sign M
(0x01071, 0x01074,), # Myanmar Vowel Sign Geba ..Myanmar Vowel Sign Kayah
(0x01082, 0x01082,), # Myanmar Consonant Sign S..Myanmar Consonant Sign S
(0x01085, 0x01086,), # Myanmar Vowel Sign Shan ..Myanmar Vowel Sign Shan
(0x0108d, 0x0108d,), # Myanmar Sign Shan Counci..Myanmar Sign Shan Counci
(0x0109d, 0x0109d,), # Myanmar Vowel Sign Aiton..Myanmar Vowel Sign Aiton
(0x0135d, 0x0135f,), # Ethiopic Combining Gemin..Ethiopic Combining Gemin
(0x01712, 0x01714,), # Tagalog Vowel Sign I ..Tagalog Sign Virama
(0x01732, 0x01734,), # Hanunoo Vowel Sign I ..Hanunoo Sign Pamudpod
(0x01752, 0x01753,), # Buhid Vowel Sign I ..Buhid Vowel Sign U
(0x01772, 0x01773,), # Tagbanwa Vowel Sign I ..Tagbanwa Vowel Sign U
(0x017b7, 0x017bd,), # Khmer Vowel Sign I ..Khmer Vowel Sign Ua
(0x017c6, 0x017c6,), # Khmer Sign Nikahit ..Khmer Sign Nikahit
(0x017c9, 0x017d3,), # Khmer Sign Muusikatoan ..Khmer Sign Bathamasat
(0x017dd, 0x017dd,), # Khmer Sign Atthacan ..Khmer Sign Atthacan
(0x0180b, 0x0180d,), # Mongolian Free Variation..Mongolian Free Variation
(0x018a9, 0x018a9,), # Mongolian Letter Ali Gal..Mongolian Letter Ali Gal
(0x01920, 0x01922,), # Limbu Vowel Sign A ..Limbu Vowel Sign U
(0x01927, 0x01928,), # Limbu Vowel Sign E ..Limbu Vowel Sign O
(0x01932, 0x01932,), # Limbu Small Letter Anusv..Limbu Small Letter Anusv
(0x01939, 0x0193b,), # Limbu Sign Mukphreng ..Limbu Sign Sa-i
(0x01a17, 0x01a18,), # Buginese Vowel Sign I ..Buginese Vowel Sign U
(0x01a56, 0x01a56,), # Tai Tham Consonant Sign ..Tai Tham Consonant Sign
(0x01a58, 0x01a5e,), # Tai Tham Sign Mai Kang L..Tai Tham Consonant Sign
(0x01a60, 0x01a60,), # Tai Tham Sign Sakot ..Tai Tham Sign Sakot
(0x01a62, 0x01a62,), # Tai Tham Vowel Sign Mai ..Tai Tham Vowel Sign Mai
(0x01a65, 0x01a6c,), # Tai Tham Vowel Sign I ..Tai Tham Vowel Sign Oa B
(0x01a73, 0x01a7c,), # Tai Tham Vowel Sign Oa A..Tai Tham Sign Khuen-lue
(0x01a7f, 0x01a7f,), # Tai Tham Combining Crypt..Tai Tham Combining Crypt
(0x01b00, 0x01b03,), # Balinese Sign Ulu Ricem ..Balinese Sign Surang
(0x01b34, 0x01b34,), # Balinese Sign Rerekan ..Balinese Sign Rerekan
(0x01b36, 0x01b3a,), # Balinese Vowel Sign Ulu ..Balinese Vowel Sign Ra R
(0x01b3c, 0x01b3c,), # Balinese Vowel Sign La L..Balinese Vowel Sign La L
(0x01b42, 0x01b42,), # Balinese Vowel Sign Pepe..Balinese Vowel Sign Pepe
(0x01b6b, 0x01b73,), # Balinese Musical Symbol ..Balinese Musical Symbol
(0x01b80, 0x01b81,), # Sundanese Sign Panyecek ..Sundanese Sign Panglayar
(0x01ba2, 0x01ba5,), # Sundanese Consonant Sign..Sundanese Vowel Sign Pan
(0x01ba8, 0x01ba9,), # Sundanese Vowel Sign Pam..Sundanese Vowel Sign Pan
(0x01be6, 0x01be6,), # Batak Sign Tompi ..Batak Sign Tompi
(0x01be8, 0x01be9,), # Batak Vowel Sign Pakpak ..Batak Vowel Sign Ee
(0x01bed, 0x01bed,), # Batak Vowel Sign Karo O ..Batak Vowel Sign Karo O
(0x01bef, 0x01bf1,), # Batak Vowel Sign U For S..Batak Consonant Sign H
(0x01c2c, 0x01c33,), # Lepcha Vowel Sign E ..Lepcha Consonant Sign T
(0x01c36, 0x01c37,), # Lepcha Sign Ran ..Lepcha Sign Nukta
(0x01cd0, 0x01cd2,), # Vedic Tone Karshana ..Vedic Tone Prenkha
(0x01cd4, 0x01ce0,), # Vedic Sign Yajurvedic Mi..Vedic Tone Rigvedic Kash
(0x01ce2, 0x01ce8,), # Vedic Sign Visarga Svari..Vedic Sign Visarga Anuda
(0x01ced, 0x01ced,), # Vedic Sign Tiryak ..Vedic Sign Tiryak
(0x01dc0, 0x01de6,), # Combining Dotted Grave A..Combining Latin Small Le
(0x01dfc, 0x01dff,), # Combining Double Inverte..Combining Right Arrowhea
(0x020d0, 0x020f0,), # Combining Left Harpoon A..Combining Asterisk Above
(0x02cef, 0x02cf1,), # Coptic Combining Ni Abov..Coptic Combining Spiritu
(0x02d7f, 0x02d7f,), # Tifinagh Consonant Joine..Tifinagh Consonant Joine
(0x02de0, 0x02dff,), # Combining Cyrillic Lette..Combining Cyrillic Lette
(0x0302a, 0x0302f,), # Ideographic Level Tone M..Hangul Double Dot Tone M
(0x03099, 0x0309a,), # Combining Katakana-hirag..Combining Katakana-hirag
(0x0a66f, 0x0a672,), # Combining Cyrillic Vzmet..Combining Cyrillic Thous
(0x0a67c, 0x0a67d,), # Combining Cyrillic Kavyk..Combining Cyrillic Payer
(0x0a6f0, 0x0a6f1,), # Bamum Combining Mark Koq..Bamum Combining Mark Tuk
(0x0a802, 0x0a802,), # Syloti Nagri Sign Dvisva..Syloti Nagri Sign Dvisva
(0x0a806, 0x0a806,), # Syloti Nagri Sign Hasant..Syloti Nagri Sign Hasant
(0x0a80b, 0x0a80b,), # Syloti Nagri Sign Anusva..Syloti Nagri Sign Anusva
(0x0a825, 0x0a826,), # Syloti Nagri Vowel Sign ..Syloti Nagri Vowel Sign
(0x0a8c4, 0x0a8c4,), # Saurashtra Sign Virama ..Saurashtra Sign Virama
(0x0a8e0, 0x0a8f1,), # Combining Devanagari Dig..Combining Devanagari Sig
(0x0a926, 0x0a92d,), # Kayah Li Vowel Ue ..Kayah Li Tone Calya Plop
(0x0a947, 0x0a951,), # Rejang Vowel Sign I ..Rejang Consonant Sign R
(0x0a980, 0x0a982,), # Javanese Sign Panyangga ..Javanese Sign Layar
(0x0a9b3, 0x0a9b3,), # Javanese Sign Cecak Telu..Javanese Sign Cecak Telu
(0x0a9b6, 0x0a9b9,), # Javanese Vowel Sign Wulu..Javanese Vowel Sign Suku
(0x0a9bc, 0x0a9bc,), # Javanese Vowel Sign Pepe..Javanese Vowel Sign Pepe
(0x0aa29, 0x0aa2e,), # Cham Vowel Sign Aa ..Cham Vowel Sign Oe
(0x0aa31, 0x0aa32,), # Cham Vowel Sign Au ..Cham Vowel Sign Ue
(0x0aa35, 0x0aa36,), # Cham Consonant Sign La ..Cham Consonant Sign Wa
(0x0aa43, 0x0aa43,), # Cham Consonant Sign Fina..Cham Consonant Sign Fina
(0x0aa4c, 0x0aa4c,), # Cham Consonant Sign Fina..Cham Consonant Sign Fina
(0x0aab0, 0x0aab0,), # Tai Viet Mai Kang ..Tai Viet Mai Kang
(0x0aab2, 0x0aab4,), # Tai Viet Vowel I ..Tai Viet Vowel U
(0x0aab7, 0x0aab8,), # Tai Viet Mai Khit ..Tai Viet Vowel Ia
(0x0aabe, 0x0aabf,), # Tai Viet Vowel Am ..Tai Viet Tone Mai Ek
(0x0aac1, 0x0aac1,), # Tai Viet Tone Mai Tho ..Tai Viet Tone Mai Tho
(0x0abe5, 0x0abe5,), # Meetei Mayek Vowel Sign ..Meetei Mayek Vowel Sign
(0x0abe8, 0x0abe8,), # Meetei Mayek Vowel Sign ..Meetei Mayek Vowel Sign
(0x0abed, 0x0abed,), # Meetei Mayek Apun Iyek ..Meetei Mayek Apun Iyek
(0x0fb1e, 0x0fb1e,), # Hebrew Point Judeo-spani..Hebrew Point Judeo-spani
(0x0fe00, 0x0fe0f,), # Variation Selector-1 ..Variation Selector-16
(0x0fe20, 0x0fe26,), # Combining Ligature Left ..Combining Conjoining Mac
(0x101fd, 0x101fd,), # Phaistos Disc Sign Combi..Phaistos Disc Sign Combi
(0x10a01, 0x10a03,), # Kharoshthi Vowel Sign I ..Kharoshthi Vowel Sign Vo
(0x10a05, 0x10a06,), # Kharoshthi Vowel Sign E ..Kharoshthi Vowel Sign O
(0x10a0c, 0x10a0f,), # Kharoshthi Vowel Length ..Kharoshthi Sign Visarga
(0x10a38, 0x10a3a,), # Kharoshthi Sign Bar Abov..Kharoshthi Sign Dot Belo
(0x10a3f, 0x10a3f,), # Kharoshthi Virama ..Kharoshthi Virama
(0x11001, 0x11001,), # Brahmi Sign Anusvara ..Brahmi Sign Anusvara
(0x11038, 0x11046,), # Brahmi Vowel Sign Aa ..Brahmi Virama
(0x11080, 0x11081,), # Kaithi Sign Candrabindu ..Kaithi Sign Anusvara
(0x110b3, 0x110b6,), # Kaithi Vowel Sign U ..Kaithi Vowel Sign Ai
(0x110b9, 0x110ba,), # Kaithi Sign Virama ..Kaithi Sign Nukta
(0x1d167, 0x1d169,), # Musical Symbol Combining..Musical Symbol Combining
(0x1d17b, 0x1d182,), # Musical Symbol Combining..Musical Symbol Combining
(0x1d185, 0x1d18b,), # Musical Symbol Combining..Musical Symbol Combining
(0x1d1aa, 0x1d1ad,), # Musical Symbol Combining..Musical Symbol Combining
(0x1d242, 0x1d244,), # Combining Greek Musical ..Combining Greek Musical
(0xe0100, 0xe01ef,), # Variation Selector-17 ..Variation Selector-256
),
'6.1.0': (
# Source: DerivedGeneralCategory-6.1.0.txt
# Date: 2011-11-27, 05:10:22 GMT [MD]
#
(0x00300, 0x0036f,), # Combining Grave Accent ..Combining Latin Small Le
(0x00483, 0x00489,), # Combining Cyrillic Titlo..Combining Cyrillic Milli
(0x00591, 0x005bd,), # Hebrew Accent Etnahta ..Hebrew Point Meteg
(0x005bf, 0x005bf,), # Hebrew Point Rafe ..Hebrew Point Rafe
(0x005c1, 0x005c2,), # Hebrew Point Shin Dot ..Hebrew Point Sin Dot
(0x005c4, 0x005c5,), # Hebrew Mark Upper Dot ..Hebrew Mark Lower Dot
(0x005c7, 0x005c7,), # Hebrew Point Qamats Qata..Hebrew Point Qamats Qata
(0x00610, 0x0061a,), # Arabic Sign Sallallahou ..Arabic Small Kasra
(0x0064b, 0x0065f,), # Arabic Fathatan ..Arabic Wavy Hamza Below
(0x00670, 0x00670,), # Arabic Letter Superscrip..Arabic Letter Superscrip
(0x006d6, 0x006dc,), # Arabic Small High Ligatu..Arabic Small High Seen
(0x006df, 0x006e4,), # Arabic Small High Rounde..Arabic Small High Madda
(0x006e7, 0x006e8,), # Arabic Small High Yeh ..Arabic Small High Noon
(0x006ea, 0x006ed,), # Arabic Empty Centre Low ..Arabic Small Low Meem
(0x00711, 0x00711,), # Syriac Letter Superscrip..Syriac Letter Superscrip
(0x00730, 0x0074a,), # Syriac Pthaha Above ..Syriac Barrekh
(0x007a6, 0x007b0,), # Thaana Abafili ..Thaana Sukun
(0x007eb, 0x007f3,), # Nko Combining Short High..Nko Combining Double Dot
(0x00816, 0x00819,), # Samaritan Mark In ..Samaritan Mark Dagesh
(0x0081b, 0x00823,), # Samaritan Mark Epentheti..Samaritan Vowel Sign A
(0x00825, 0x00827,), # Samaritan Vowel Sign Sho..Samaritan Vowel Sign U
(0x00829, 0x0082d,), # Samaritan Vowel Sign Lon..Samaritan Mark Nequdaa
(0x00859, 0x0085b,), # Mandaic Affrication Mark..Mandaic Gemination Mark
(0x008e4, 0x008fe,), # Arabic Curly Fatha ..Arabic Damma With Dot
(0x00900, 0x00902,), # Devanagari Sign Inverted..Devanagari Sign Anusvara
(0x0093a, 0x0093a,), # Devanagari Vowel Sign Oe..Devanagari Vowel Sign Oe
(0x0093c, 0x0093c,), # Devanagari Sign Nukta ..Devanagari Sign Nukta
(0x00941, 0x00948,), # Devanagari Vowel Sign U ..Devanagari Vowel Sign Ai
(0x0094d, 0x0094d,), # Devanagari Sign Virama ..Devanagari Sign Virama
(0x00951, 0x00957,), # Devanagari Stress Sign U..Devanagari Vowel Sign Uu
(0x00962, 0x00963,), # Devanagari Vowel Sign Vo..Devanagari Vowel Sign Vo
(0x00981, 0x00981,), # Bengali Sign Candrabindu..Bengali Sign Candrabindu
(0x009bc, 0x009bc,), # Bengali Sign Nukta ..Bengali Sign Nukta
(0x009c1, 0x009c4,), # Bengali Vowel Sign U ..Bengali Vowel Sign Vocal
(0x009cd, 0x009cd,), # Bengali Sign Virama ..Bengali Sign Virama
(0x009e2, 0x009e3,), # Bengali Vowel Sign Vocal..Bengali Vowel Sign Vocal
(0x00a01, 0x00a02,), # Gurmukhi Sign Adak Bindi..Gurmukhi Sign Bindi
(0x00a3c, 0x00a3c,), # Gurmukhi Sign Nukta ..Gurmukhi Sign Nukta
(0x00a41, 0x00a42,), # Gurmukhi Vowel Sign U ..Gurmukhi Vowel Sign Uu
(0x00a47, 0x00a48,), # Gurmukhi Vowel Sign Ee ..Gurmukhi Vowel Sign Ai
(0x00a4b, 0x00a4d,), # Gurmukhi Vowel Sign Oo ..Gurmukhi Sign Virama
(0x00a51, 0x00a51,), # Gurmukhi Sign Udaat ..Gurmukhi Sign Udaat
(0x00a70, 0x00a71,), # Gurmukhi Tippi ..Gurmukhi Addak
(0x00a75, 0x00a75,), # Gurmukhi Sign Yakash ..Gurmukhi Sign Yakash
(0x00a81, 0x00a82,), # Gujarati Sign Candrabind..Gujarati Sign Anusvara
(0x00abc, 0x00abc,), # Gujarati Sign Nukta ..Gujarati Sign Nukta
(0x00ac1, 0x00ac5,), # Gujarati Vowel Sign U ..Gujarati Vowel Sign Cand
(0x00ac7, 0x00ac8,), # Gujarati Vowel Sign E ..Gujarati Vowel Sign Ai
(0x00acd, 0x00acd,), # Gujarati Sign Virama ..Gujarati Sign Virama
(0x00ae2, 0x00ae3,), # Gujarati Vowel Sign Voca..Gujarati Vowel Sign Voca
(0x00b01, 0x00b01,), # Oriya Sign Candrabindu ..Oriya Sign Candrabindu
(0x00b3c, 0x00b3c,), # Oriya Sign Nukta ..Oriya Sign Nukta
(0x00b3f, 0x00b3f,), # Oriya Vowel Sign I ..Oriya Vowel Sign I
(0x00b41, 0x00b44,), # Oriya Vowel Sign U ..Oriya Vowel Sign Vocalic
(0x00b4d, 0x00b4d,), # Oriya Sign Virama ..Oriya Sign Virama
(0x00b56, 0x00b56,), # Oriya Ai Length Mark ..Oriya Ai Length Mark
(0x00b62, 0x00b63,), # Oriya Vowel Sign Vocalic..Oriya Vowel Sign Vocalic
(0x00b82, 0x00b82,), # Tamil Sign Anusvara ..Tamil Sign Anusvara
(0x00bc0, 0x00bc0,), # Tamil Vowel Sign Ii ..Tamil Vowel Sign Ii
(0x00bcd, 0x00bcd,), # Tamil Sign Virama ..Tamil Sign Virama
(0x00c3e, 0x00c40,), # Telugu Vowel Sign Aa ..Telugu Vowel Sign Ii
(0x00c46, 0x00c48,), # Telugu Vowel Sign E ..Telugu Vowel Sign Ai
(0x00c4a, 0x00c4d,), # Telugu Vowel Sign O ..Telugu Sign Virama
(0x00c55, 0x00c56,), # Telugu Length Mark ..Telugu Ai Length Mark
(0x00c62, 0x00c63,), # Telugu Vowel Sign Vocali..Telugu Vowel Sign Vocali
(0x00cbc, 0x00cbc,), # Kannada Sign Nukta ..Kannada Sign Nukta
(0x00cbf, 0x00cbf,), # Kannada Vowel Sign I ..Kannada Vowel Sign I
(0x00cc6, 0x00cc6,), # Kannada Vowel Sign E ..Kannada Vowel Sign E
(0x00ccc, 0x00ccd,), # Kannada Vowel Sign Au ..Kannada Sign Virama
(0x00ce2, 0x00ce3,), # Kannada Vowel Sign Vocal..Kannada Vowel Sign Vocal
(0x00d41, 0x00d44,), # Malayalam Vowel Sign U ..Malayalam Vowel Sign Voc
(0x00d4d, 0x00d4d,), # Malayalam Sign Virama ..Malayalam Sign Virama
(0x00d62, 0x00d63,), # Malayalam Vowel Sign Voc..Malayalam Vowel Sign Voc
(0x00dca, 0x00dca,), # Sinhala Sign Al-lakuna ..Sinhala Sign Al-lakuna
(0x00dd2, 0x00dd4,), # Sinhala Vowel Sign Ketti..Sinhala Vowel Sign Ketti
(0x00dd6, 0x00dd6,), # Sinhala Vowel Sign Diga ..Sinhala Vowel Sign Diga
(0x00e31, 0x00e31,), # Thai Character Mai Han-a..Thai Character Mai Han-a
(0x00e34, 0x00e3a,), # Thai Character Sara I ..Thai Character Phinthu
(0x00e47, 0x00e4e,), # Thai Character Maitaikhu..Thai Character Yamakkan
(0x00eb1, 0x00eb1,), # Lao Vowel Sign Mai Kan ..Lao Vowel Sign Mai Kan
(0x00eb4, 0x00eb9,), # Lao Vowel Sign I ..Lao Vowel Sign Uu
(0x00ebb, 0x00ebc,), # Lao Vowel Sign Mai Kon ..Lao Semivowel Sign Lo
(0x00ec8, 0x00ecd,), # Lao Tone Mai Ek ..Lao Niggahita
(0x00f18, 0x00f19,), # Tibetan Astrological Sig..Tibetan Astrological Sig
(0x00f35, 0x00f35,), # Tibetan Mark Ngas Bzung ..Tibetan Mark Ngas Bzung
(0x00f37, 0x00f37,), # Tibetan Mark Ngas Bzung ..Tibetan Mark Ngas Bzung
(0x00f39, 0x00f39,), # Tibetan Mark Tsa -phru ..Tibetan Mark Tsa -phru
(0x00f71, 0x00f7e,), # Tibetan Vowel Sign Aa ..Tibetan Sign Rjes Su Nga
(0x00f80, 0x00f84,), # Tibetan Vowel Sign Rever..Tibetan Mark Halanta
(0x00f86, 0x00f87,), # Tibetan Sign Lci Rtags ..Tibetan Sign Yang Rtags
(0x00f8d, 0x00f97,), # Tibetan Subjoined Sign L..Tibetan Subjoined Letter
(0x00f99, 0x00fbc,), # Tibetan Subjoined Letter..Tibetan Subjoined Letter
(0x00fc6, 0x00fc6,), # Tibetan Symbol Padma Gda..Tibetan Symbol Padma Gda
(0x0102d, 0x01030,), # Myanmar Vowel Sign I ..Myanmar Vowel Sign Uu
(0x01032, 0x01037,), # Myanmar Vowel Sign Ai ..Myanmar Sign Dot Below
(0x01039, 0x0103a,), # Myanmar Sign Virama ..Myanmar Sign Asat
(0x0103d, 0x0103e,), # Myanmar Consonant Sign M..Myanmar Consonant Sign M
(0x01058, 0x01059,), # Myanmar Vowel Sign Vocal..Myanmar Vowel Sign Vocal
(0x0105e, 0x01060,), # Myanmar Consonant Sign M..Myanmar Consonant Sign M
(0x01071, 0x01074,), # Myanmar Vowel Sign Geba ..Myanmar Vowel Sign Kayah
(0x01082, 0x01082,), # Myanmar Consonant Sign S..Myanmar Consonant Sign S
(0x01085, 0x01086,), # Myanmar Vowel Sign Shan ..Myanmar Vowel Sign Shan
(0x0108d, 0x0108d,), # Myanmar Sign Shan Counci..Myanmar Sign Shan Counci
(0x0109d, 0x0109d,), # Myanmar Vowel Sign Aiton..Myanmar Vowel Sign Aiton
(0x0135d, 0x0135f,), # Ethiopic Combining Gemin..Ethiopic Combining Gemin
(0x01712, 0x01714,), # Tagalog Vowel Sign I ..Tagalog Sign Virama
(0x01732, 0x01734,), # Hanunoo Vowel Sign I ..Hanunoo Sign Pamudpod
(0x01752, 0x01753,), # Buhid Vowel Sign I ..Buhid Vowel Sign U
(0x01772, 0x01773,), # Tagbanwa Vowel Sign I ..Tagbanwa Vowel Sign U
(0x017b4, 0x017b5,), # Khmer Vowel Inherent Aq ..Khmer Vowel Inherent Aa
(0x017b7, 0x017bd,), # Khmer Vowel Sign I ..Khmer Vowel Sign Ua
(0x017c6, 0x017c6,), # Khmer Sign Nikahit ..Khmer Sign Nikahit
(0x017c9, 0x017d3,), # Khmer Sign Muusikatoan ..Khmer Sign Bathamasat
(0x017dd, 0x017dd,), # Khmer Sign Atthacan ..Khmer Sign Atthacan
(0x0180b, 0x0180d,), # Mongolian Free Variation..Mongolian Free Variation
(0x018a9, 0x018a9,), # Mongolian Letter Ali Gal..Mongolian Letter Ali Gal
(0x01920, 0x01922,), # Limbu Vowel Sign A ..Limbu Vowel Sign U
(0x01927, 0x01928,), # Limbu Vowel Sign E ..Limbu Vowel Sign O
(0x01932, 0x01932,), # Limbu Small Letter Anusv..Limbu Small Letter Anusv
(0x01939, 0x0193b,), # Limbu Sign Mukphreng ..Limbu Sign Sa-i
(0x01a17, 0x01a18,), # Buginese Vowel Sign I ..Buginese Vowel Sign U
(0x01a56, 0x01a56,), # Tai Tham Consonant Sign ..Tai Tham Consonant Sign
(0x01a58, 0x01a5e,), # Tai Tham Sign Mai Kang L..Tai Tham Consonant Sign
(0x01a60, 0x01a60,), # Tai Tham Sign Sakot ..Tai Tham Sign Sakot
(0x01a62, 0x01a62,), # Tai Tham Vowel Sign Mai ..Tai Tham Vowel Sign Mai
(0x01a65, 0x01a6c,), # Tai Tham Vowel Sign I ..Tai Tham Vowel Sign Oa B
(0x01a73, 0x01a7c,), # Tai Tham Vowel Sign Oa A..Tai Tham Sign Khuen-lue
(0x01a7f, 0x01a7f,), # Tai Tham Combining Crypt..Tai Tham Combining Crypt
(0x01b00, 0x01b03,), # Balinese Sign Ulu Ricem ..Balinese Sign Surang
(0x01b34, 0x01b34,), # Balinese Sign Rerekan ..Balinese Sign Rerekan
(0x01b36, 0x01b3a,), # Balinese Vowel Sign Ulu ..Balinese Vowel Sign Ra R
(0x01b3c, 0x01b3c,), # Balinese Vowel Sign La L..Balinese Vowel Sign La L
(0x01b42, 0x01b42,), # Balinese Vowel Sign Pepe..Balinese Vowel Sign Pepe
(0x01b6b, 0x01b73,), # Balinese Musical Symbol ..Balinese Musical Symbol
(0x01b80, 0x01b81,), # Sundanese Sign Panyecek ..Sundanese Sign Panglayar
(0x01ba2, 0x01ba5,), # Sundanese Consonant Sign..Sundanese Vowel Sign Pan
(0x01ba8, 0x01ba9,), # Sundanese Vowel Sign Pam..Sundanese Vowel Sign Pan
(0x01bab, 0x01bab,), # Sundanese Sign Virama ..Sundanese Sign Virama
(0x01be6, 0x01be6,), # Batak Sign Tompi ..Batak Sign Tompi
(0x01be8, 0x01be9,), # Batak Vowel Sign Pakpak ..Batak Vowel Sign Ee
(0x01bed, 0x01bed,), # Batak Vowel Sign Karo O ..Batak Vowel Sign Karo O
(0x01bef, 0x01bf1,), # Batak Vowel Sign U For S..Batak Consonant Sign H
(0x01c2c, 0x01c33,), # Lepcha Vowel Sign E ..Lepcha Consonant Sign T
(0x01c36, 0x01c37,), # Lepcha Sign Ran ..Lepcha Sign Nukta
(0x01cd0, 0x01cd2,), # Vedic Tone Karshana ..Vedic Tone Prenkha
(0x01cd4, 0x01ce0,), # Vedic Sign Yajurvedic Mi..Vedic Tone Rigvedic Kash
(0x01ce2, 0x01ce8,), # Vedic Sign Visarga Svari..Vedic Sign Visarga Anuda
(0x01ced, 0x01ced,), # Vedic Sign Tiryak ..Vedic Sign Tiryak
(0x01cf4, 0x01cf4,), # Vedic Tone Candra Above ..Vedic Tone Candra Above
(0x01dc0, 0x01de6,), # Combining Dotted Grave A..Combining Latin Small Le
(0x01dfc, 0x01dff,), # Combining Double Inverte..Combining Right Arrowhea
(0x020d0, 0x020f0,), # Combining Left Harpoon A..Combining Asterisk Above
(0x02cef, 0x02cf1,), # Coptic Combining Ni Abov..Coptic Combining Spiritu
(0x02d7f, 0x02d7f,), # Tifinagh Consonant Joine..Tifinagh Consonant Joine
(0x02de0, 0x02dff,), # Combining Cyrillic Lette..Combining Cyrillic Lette
(0x0302a, 0x0302d,), # Ideographic Level Tone M..Ideographic Entering Ton
(0x03099, 0x0309a,), # Combining Katakana-hirag..Combining Katakana-hirag
(0x0a66f, 0x0a672,), # Combining Cyrillic Vzmet..Combining Cyrillic Thous
(0x0a674, 0x0a67d,), # Combining Cyrillic Lette..Combining Cyrillic Payer
(0x0a69f, 0x0a69f,), # Combining Cyrillic Lette..Combining Cyrillic Lette
(0x0a6f0, 0x0a6f1,), # Bamum Combining Mark Koq..Bamum Combining Mark Tuk
(0x0a802, 0x0a802,), # Syloti Nagri Sign Dvisva..Syloti Nagri Sign Dvisva
(0x0a806, 0x0a806,), # Syloti Nagri Sign Hasant..Syloti Nagri Sign Hasant
(0x0a80b, 0x0a80b,), # Syloti Nagri Sign Anusva..Syloti Nagri Sign Anusva
(0x0a825, 0x0a826,), # Syloti Nagri Vowel Sign ..Syloti Nagri Vowel Sign
(0x0a8c4, 0x0a8c4,), # Saurashtra Sign Virama ..Saurashtra Sign Virama
(0x0a8e0, 0x0a8f1,), # Combining Devanagari Dig..Combining Devanagari Sig
(0x0a926, 0x0a92d,), # Kayah Li Vowel Ue ..Kayah Li Tone Calya Plop
(0x0a947, 0x0a951,), # Rejang Vowel Sign I ..Rejang Consonant Sign R
(0x0a980, 0x0a982,), # Javanese Sign Panyangga ..Javanese Sign Layar
(0x0a9b3, 0x0a9b3,), # Javanese Sign Cecak Telu..Javanese Sign Cecak Telu
(0x0a9b6, 0x0a9b9,), # Javanese Vowel Sign Wulu..Javanese Vowel Sign Suku
(0x0a9bc, 0x0a9bc,), # Javanese Vowel Sign Pepe..Javanese Vowel Sign Pepe
(0x0aa29, 0x0aa2e,), # Cham Vowel Sign Aa ..Cham Vowel Sign Oe
(0x0aa31, 0x0aa32,), # Cham Vowel Sign Au ..Cham Vowel Sign Ue
(0x0aa35, 0x0aa36,), # Cham Consonant Sign La ..Cham Consonant Sign Wa
(0x0aa43, 0x0aa43,), # Cham Consonant Sign Fina..Cham Consonant Sign Fina
(0x0aa4c, 0x0aa4c,), # Cham Consonant Sign Fina..Cham Consonant Sign Fina
(0x0aab0, 0x0aab0,), # Tai Viet Mai Kang ..Tai Viet Mai Kang
(0x0aab2, 0x0aab4,), # Tai Viet Vowel I ..Tai Viet Vowel U
(0x0aab7, 0x0aab8,), # Tai Viet Mai Khit ..Tai Viet Vowel Ia
(0x0aabe, 0x0aabf,), # Tai Viet Vowel Am ..Tai Viet Tone Mai Ek
(0x0aac1, 0x0aac1,), # Tai Viet Tone Mai Tho ..Tai Viet Tone Mai Tho
(0x0aaec, 0x0aaed,), # Meetei Mayek Vowel Sign ..Meetei Mayek Vowel Sign
(0x0aaf6, 0x0aaf6,), # Meetei Mayek Virama ..Meetei Mayek Virama
(0x0abe5, 0x0abe5,), # Meetei Mayek Vowel Sign ..Meetei Mayek Vowel Sign
(0x0abe8, 0x0abe8,), # Meetei Mayek Vowel Sign ..Meetei Mayek Vowel Sign
(0x0abed, 0x0abed,), # Meetei Mayek Apun Iyek ..Meetei Mayek Apun Iyek
(0x0fb1e, 0x0fb1e,), # Hebrew Point Judeo-spani..Hebrew Point Judeo-spani
(0x0fe00, 0x0fe0f,), # Variation Selector-1 ..Variation Selector-16
(0x0fe20, 0x0fe26,), # Combining Ligature Left ..Combining Conjoining Mac
(0x101fd, 0x101fd,), # Phaistos Disc Sign Combi..Phaistos Disc Sign Combi
(0x10a01, 0x10a03,), # Kharoshthi Vowel Sign I ..Kharoshthi Vowel Sign Vo
(0x10a05, 0x10a06,), # Kharoshthi Vowel Sign E ..Kharoshthi Vowel Sign O
(0x10a0c, 0x10a0f,), # Kharoshthi Vowel Length ..Kharoshthi Sign Visarga
(0x10a38, 0x10a3a,), # Kharoshthi Sign Bar Abov..Kharoshthi Sign Dot Belo
(0x10a3f, 0x10a3f,), # Kharoshthi Virama ..Kharoshthi Virama
(0x11001, 0x11001,), # Brahmi Sign Anusvara ..Brahmi Sign Anusvara
(0x11038, 0x11046,), # Brahmi Vowel Sign Aa ..Brahmi Virama
(0x11080, 0x11081,), # Kaithi Sign Candrabindu ..Kaithi Sign Anusvara
(0x110b3, 0x110b6,), # Kaithi Vowel Sign U ..Kaithi Vowel Sign Ai
(0x110b9, 0x110ba,), # Kaithi Sign Virama ..Kaithi Sign Nukta
(0x11100, 0x11102,), # Chakma Sign Candrabindu ..Chakma Sign Visarga
(0x11127, 0x1112b,), # Chakma Vowel Sign A ..Chakma Vowel Sign Uu
(0x1112d, 0x11134,), # Chakma Vowel Sign Ai ..Chakma Maayyaa
(0x11180, 0x11181,), # Sharada Sign Candrabindu..Sharada Sign Anusvara
(0x111b6, 0x111be,), # Sharada Vowel Sign U ..Sharada Vowel Sign O
(0x116ab, 0x116ab,), # Takri Sign Anusvara ..Takri Sign Anusvara
(0x116ad, 0x116ad,), # Takri Vowel Sign Aa ..Takri Vowel Sign Aa
(0x116b0, 0x116b5,), # Takri Vowel Sign U ..Takri Vowel Sign Au
(0x116b7, 0x116b7,), # Takri Sign Nukta ..Takri Sign Nukta
(0x16f8f, 0x16f92,), # Miao Tone Right ..Miao Tone Below
(0x1d167, 0x1d169,), # Musical Symbol Combining..Musical Symbol Combining
(0x1d17b, 0x1d182,), # Musical Symbol Combining..Musical Symbol Combining
(0x1d185, 0x1d18b,), # Musical Symbol Combining..Musical Symbol Combining
(0x1d1aa, 0x1d1ad,), # Musical Symbol Combining..Musical Symbol Combining
(0x1d242, 0x1d244,), # Combining Greek Musical ..Combining Greek Musical
(0xe0100, 0xe01ef,), # Variation Selector-17 ..Variation Selector-256
),
'6.2.0': (
# Source: DerivedGeneralCategory-6.2.0.txt
# Date: 2012-05-20, 00:42:34 GMT [MD]
#
(0x00300, 0x0036f,), # Combining Grave Accent ..Combining Latin Small Le
(0x00483, 0x00489,), # Combining Cyrillic Titlo..Combining Cyrillic Milli
(0x00591, 0x005bd,), # Hebrew Accent Etnahta ..Hebrew Point Meteg
(0x005bf, 0x005bf,), # Hebrew Point Rafe ..Hebrew Point Rafe
(0x005c1, 0x005c2,), # Hebrew Point Shin Dot ..Hebrew Point Sin Dot
(0x005c4, 0x005c5,), # Hebrew Mark Upper Dot ..Hebrew Mark Lower Dot
(0x005c7, 0x005c7,), # Hebrew Point Qamats Qata..Hebrew Point Qamats Qata
(0x00610, 0x0061a,), # Arabic Sign Sallallahou ..Arabic Small Kasra
(0x0064b, 0x0065f,), # Arabic Fathatan ..Arabic Wavy Hamza Below
(0x00670, 0x00670,), # Arabic Letter Superscrip..Arabic Letter Superscrip
(0x006d6, 0x006dc,), # Arabic Small High Ligatu..Arabic Small High Seen
(0x006df, 0x006e4,), # Arabic Small High Rounde..Arabic Small High Madda
(0x006e7, 0x006e8,), # Arabic Small High Yeh ..Arabic Small High Noon
(0x006ea, 0x006ed,), # Arabic Empty Centre Low ..Arabic Small Low Meem
(0x00711, 0x00711,), # Syriac Letter Superscrip..Syriac Letter Superscrip
(0x00730, 0x0074a,), # Syriac Pthaha Above ..Syriac Barrekh
(0x007a6, 0x007b0,), # Thaana Abafili ..Thaana Sukun
(0x007eb, 0x007f3,), # Nko Combining Short High..Nko Combining Double Dot
(0x00816, 0x00819,), # Samaritan Mark In ..Samaritan Mark Dagesh
(0x0081b, 0x00823,), # Samaritan Mark Epentheti..Samaritan Vowel Sign A
(0x00825, 0x00827,), # Samaritan Vowel Sign Sho..Samaritan Vowel Sign U
(0x00829, 0x0082d,), # Samaritan Vowel Sign Lon..Samaritan Mark Nequdaa
(0x00859, 0x0085b,), # Mandaic Affrication Mark..Mandaic Gemination Mark
(0x008e4, 0x008fe,), # Arabic Curly Fatha ..Arabic Damma With Dot
(0x00900, 0x00902,), # Devanagari Sign Inverted..Devanagari Sign Anusvara
(0x0093a, 0x0093a,), # Devanagari Vowel Sign Oe..Devanagari Vowel Sign Oe
(0x0093c, 0x0093c,), # Devanagari Sign Nukta ..Devanagari Sign Nukta
(0x00941, 0x00948,), # Devanagari Vowel Sign U ..Devanagari Vowel Sign Ai
(0x0094d, 0x0094d,), # Devanagari Sign Virama ..Devanagari Sign Virama
(0x00951, 0x00957,), # Devanagari Stress Sign U..Devanagari Vowel Sign Uu
(0x00962, 0x00963,), # Devanagari Vowel Sign Vo..Devanagari Vowel Sign Vo
(0x00981, 0x00981,), # Bengali Sign Candrabindu..Bengali Sign Candrabindu
(0x009bc, 0x009bc,), # Bengali Sign Nukta ..Bengali Sign Nukta
(0x009c1, 0x009c4,), # Bengali Vowel Sign U ..Bengali Vowel Sign Vocal
(0x009cd, 0x009cd,), # Bengali Sign Virama ..Bengali Sign Virama
(0x009e2, 0x009e3,), # Bengali Vowel Sign Vocal..Bengali Vowel Sign Vocal
(0x00a01, 0x00a02,), # Gurmukhi Sign Adak Bindi..Gurmukhi Sign Bindi
(0x00a3c, 0x00a3c,), # Gurmukhi Sign Nukta ..Gurmukhi Sign Nukta
(0x00a41, 0x00a42,), # Gurmukhi Vowel Sign U ..Gurmukhi Vowel Sign Uu
(0x00a47, 0x00a48,), # Gurmukhi Vowel Sign Ee ..Gurmukhi Vowel Sign Ai
(0x00a4b, 0x00a4d,), # Gurmukhi Vowel Sign Oo ..Gurmukhi Sign Virama
(0x00a51, 0x00a51,), # Gurmukhi Sign Udaat ..Gurmukhi Sign Udaat
(0x00a70, 0x00a71,), # Gurmukhi Tippi ..Gurmukhi Addak
(0x00a75, 0x00a75,), # Gurmukhi Sign Yakash ..Gurmukhi Sign Yakash
(0x00a81, 0x00a82,), # Gujarati Sign Candrabind..Gujarati Sign Anusvara
(0x00abc, 0x00abc,), # Gujarati Sign Nukta ..Gujarati Sign Nukta
(0x00ac1, 0x00ac5,), # Gujarati Vowel Sign U ..Gujarati Vowel Sign Cand
(0x00ac7, 0x00ac8,), # Gujarati Vowel Sign E ..Gujarati Vowel Sign Ai
(0x00acd, 0x00acd,), # Gujarati Sign Virama ..Gujarati Sign Virama
(0x00ae2, 0x00ae3,), # Gujarati Vowel Sign Voca..Gujarati Vowel Sign Voca
(0x00b01, 0x00b01,), # Oriya Sign Candrabindu ..Oriya Sign Candrabindu
(0x00b3c, 0x00b3c,), # Oriya Sign Nukta ..Oriya Sign Nukta
(0x00b3f, 0x00b3f,), # Oriya Vowel Sign I ..Oriya Vowel Sign I
(0x00b41, 0x00b44,), # Oriya Vowel Sign U ..Oriya Vowel Sign Vocalic
(0x00b4d, 0x00b4d,), # Oriya Sign Virama ..Oriya Sign Virama
(0x00b56, 0x00b56,), # Oriya Ai Length Mark ..Oriya Ai Length Mark
(0x00b62, 0x00b63,), # Oriya Vowel Sign Vocalic..Oriya Vowel Sign Vocalic
(0x00b82, 0x00b82,), # Tamil Sign Anusvara ..Tamil Sign Anusvara
(0x00bc0, 0x00bc0,), # Tamil Vowel Sign Ii ..Tamil Vowel Sign Ii
(0x00bcd, 0x00bcd,), # Tamil Sign Virama ..Tamil Sign Virama
(0x00c3e, 0x00c40,), # Telugu Vowel Sign Aa ..Telugu Vowel Sign Ii
(0x00c46, 0x00c48,), # Telugu Vowel Sign E ..Telugu Vowel Sign Ai
(0x00c4a, 0x00c4d,), # Telugu Vowel Sign O ..Telugu Sign Virama
(0x00c55, 0x00c56,), # Telugu Length Mark ..Telugu Ai Length Mark
(0x00c62, 0x00c63,), # Telugu Vowel Sign Vocali..Telugu Vowel Sign Vocali
(0x00cbc, 0x00cbc,), # Kannada Sign Nukta ..Kannada Sign Nukta
(0x00cbf, 0x00cbf,), # Kannada Vowel Sign I ..Kannada Vowel Sign I
(0x00cc6, 0x00cc6,), # Kannada Vowel Sign E ..Kannada Vowel Sign E
(0x00ccc, 0x00ccd,), # Kannada Vowel Sign Au ..Kannada Sign Virama
(0x00ce2, 0x00ce3,), # Kannada Vowel Sign Vocal..Kannada Vowel Sign Vocal
(0x00d41, 0x00d44,), # Malayalam Vowel Sign U ..Malayalam Vowel Sign Voc
(0x00d4d, 0x00d4d,), # Malayalam Sign Virama ..Malayalam Sign Virama
(0x00d62, 0x00d63,), # Malayalam Vowel Sign Voc..Malayalam Vowel Sign Voc
(0x00dca, 0x00dca,), # Sinhala Sign Al-lakuna ..Sinhala Sign Al-lakuna
(0x00dd2, 0x00dd4,), # Sinhala Vowel Sign Ketti..Sinhala Vowel Sign Ketti
(0x00dd6, 0x00dd6,), # Sinhala Vowel Sign Diga ..Sinhala Vowel Sign Diga
(0x00e31, 0x00e31,), # Thai Character Mai Han-a..Thai Character Mai Han-a
(0x00e34, 0x00e3a,), # Thai Character Sara I ..Thai Character Phinthu
(0x00e47, 0x00e4e,), # Thai Character Maitaikhu..Thai Character Yamakkan
(0x00eb1, 0x00eb1,), # Lao Vowel Sign Mai Kan ..Lao Vowel Sign Mai Kan
(0x00eb4, 0x00eb9,), # Lao Vowel Sign I ..Lao Vowel Sign Uu
(0x00ebb, 0x00ebc,), # Lao Vowel Sign Mai Kon ..Lao Semivowel Sign Lo
(0x00ec8, 0x00ecd,), # Lao Tone Mai Ek ..Lao Niggahita
(0x00f18, 0x00f19,), # Tibetan Astrological Sig..Tibetan Astrological Sig
(0x00f35, 0x00f35,), # Tibetan Mark Ngas Bzung ..Tibetan Mark Ngas Bzung
(0x00f37, 0x00f37,), # Tibetan Mark Ngas Bzung ..Tibetan Mark Ngas Bzung
(0x00f39, 0x00f39,), # Tibetan Mark Tsa -phru ..Tibetan Mark Tsa -phru
(0x00f71, 0x00f7e,), # Tibetan Vowel Sign Aa ..Tibetan Sign Rjes Su Nga
(0x00f80, 0x00f84,), # Tibetan Vowel Sign Rever..Tibetan Mark Halanta
(0x00f86, 0x00f87,), # Tibetan Sign Lci Rtags ..Tibetan Sign Yang Rtags
(0x00f8d, 0x00f97,), # Tibetan Subjoined Sign L..Tibetan Subjoined Letter
(0x00f99, 0x00fbc,), # Tibetan Subjoined Letter..Tibetan Subjoined Letter
(0x00fc6, 0x00fc6,), # Tibetan Symbol Padma Gda..Tibetan Symbol Padma Gda
(0x0102d, 0x01030,), # Myanmar Vowel Sign I ..Myanmar Vowel Sign Uu
(0x01032, 0x01037,), # Myanmar Vowel Sign Ai ..Myanmar Sign Dot Below
(0x01039, 0x0103a,), # Myanmar Sign Virama ..Myanmar Sign Asat
(0x0103d, 0x0103e,), # Myanmar Consonant Sign M..Myanmar Consonant Sign M
(0x01058, 0x01059,), # Myanmar Vowel Sign Vocal..Myanmar Vowel Sign Vocal
(0x0105e, 0x01060,), # Myanmar Consonant Sign M..Myanmar Consonant Sign M
(0x01071, 0x01074,), # Myanmar Vowel Sign Geba ..Myanmar Vowel Sign Kayah
(0x01082, 0x01082,), # Myanmar Consonant Sign S..Myanmar Consonant Sign S
(0x01085, 0x01086,), # Myanmar Vowel Sign Shan ..Myanmar Vowel Sign Shan
(0x0108d, 0x0108d,), # Myanmar Sign Shan Counci..Myanmar Sign Shan Counci
(0x0109d, 0x0109d,), # Myanmar Vowel Sign Aiton..Myanmar Vowel Sign Aiton
(0x0135d, 0x0135f,), # Ethiopic Combining Gemin..Ethiopic Combining Gemin
(0x01712, 0x01714,), # Tagalog Vowel Sign I ..Tagalog Sign Virama
(0x01732, 0x01734,), # Hanunoo Vowel Sign I ..Hanunoo Sign Pamudpod
(0x01752, 0x01753,), # Buhid Vowel Sign I ..Buhid Vowel Sign U
(0x01772, 0x01773,), # Tagbanwa Vowel Sign I ..Tagbanwa Vowel Sign U
(0x017b4, 0x017b5,), # Khmer Vowel Inherent Aq ..Khmer Vowel Inherent Aa
(0x017b7, 0x017bd,), # Khmer Vowel Sign I ..Khmer Vowel Sign Ua
(0x017c6, 0x017c6,), # Khmer Sign Nikahit ..Khmer Sign Nikahit
(0x017c9, 0x017d3,), # Khmer Sign Muusikatoan ..Khmer Sign Bathamasat
(0x017dd, 0x017dd,), # Khmer Sign Atthacan ..Khmer Sign Atthacan
(0x0180b, 0x0180d,), # Mongolian Free Variation..Mongolian Free Variation
(0x018a9, 0x018a9,), # Mongolian Letter Ali Gal..Mongolian Letter Ali Gal
(0x01920, 0x01922,), # Limbu Vowel Sign A ..Limbu Vowel Sign U
(0x01927, 0x01928,), # Limbu Vowel Sign E ..Limbu Vowel Sign O
(0x01932, 0x01932,), # Limbu Small Letter Anusv..Limbu Small Letter Anusv
(0x01939, 0x0193b,), # Limbu Sign Mukphreng ..Limbu Sign Sa-i
(0x01a17, 0x01a18,), # Buginese Vowel Sign I ..Buginese Vowel Sign U
(0x01a56, 0x01a56,), # Tai Tham Consonant Sign ..Tai Tham Consonant Sign
(0x01a58, 0x01a5e,), # Tai Tham Sign Mai Kang L..Tai Tham Consonant Sign
(0x01a60, 0x01a60,), # Tai Tham Sign Sakot ..Tai Tham Sign Sakot
(0x01a62, 0x01a62,), # Tai Tham Vowel Sign Mai ..Tai Tham Vowel Sign Mai
(0x01a65, 0x01a6c,), # Tai Tham Vowel Sign I ..Tai Tham Vowel Sign Oa B
(0x01a73, 0x01a7c,), # Tai Tham Vowel Sign Oa A..Tai Tham Sign Khuen-lue
(0x01a7f, 0x01a7f,), # Tai Tham Combining Crypt..Tai Tham Combining Crypt
(0x01b00, 0x01b03,), # Balinese Sign Ulu Ricem ..Balinese Sign Surang
(0x01b34, 0x01b34,), # Balinese Sign Rerekan ..Balinese Sign Rerekan
(0x01b36, 0x01b3a,), # Balinese Vowel Sign Ulu ..Balinese Vowel Sign Ra R
(0x01b3c, 0x01b3c,), # Balinese Vowel Sign La L..Balinese Vowel Sign La L
(0x01b42, 0x01b42,), # Balinese Vowel Sign Pepe..Balinese Vowel Sign Pepe
(0x01b6b, 0x01b73,), # Balinese Musical Symbol ..Balinese Musical Symbol
(0x01b80, 0x01b81,), # Sundanese Sign Panyecek ..Sundanese Sign Panglayar
(0x01ba2, 0x01ba5,), # Sundanese Consonant Sign..Sundanese Vowel Sign Pan
(0x01ba8, 0x01ba9,), # Sundanese Vowel Sign Pam..Sundanese Vowel Sign Pan
(0x01bab, 0x01bab,), # Sundanese Sign Virama ..Sundanese Sign Virama
(0x01be6, 0x01be6,), # Batak Sign Tompi ..Batak Sign Tompi
(0x01be8, 0x01be9,), # Batak Vowel Sign Pakpak ..Batak Vowel Sign Ee
(0x01bed, 0x01bed,), # Batak Vowel Sign Karo O ..Batak Vowel Sign Karo O
(0x01bef, 0x01bf1,), # Batak Vowel Sign U For S..Batak Consonant Sign H
(0x01c2c, 0x01c33,), # Lepcha Vowel Sign E ..Lepcha Consonant Sign T
(0x01c36, 0x01c37,), # Lepcha Sign Ran ..Lepcha Sign Nukta
(0x01cd0, 0x01cd2,), # Vedic Tone Karshana ..Vedic Tone Prenkha
(0x01cd4, 0x01ce0,), # Vedic Sign Yajurvedic Mi..Vedic Tone Rigvedic Kash
(0x01ce2, 0x01ce8,), # Vedic Sign Visarga Svari..Vedic Sign Visarga Anuda
(0x01ced, 0x01ced,), # Vedic Sign Tiryak ..Vedic Sign Tiryak
(0x01cf4, 0x01cf4,), # Vedic Tone Candra Above ..Vedic Tone Candra Above
(0x01dc0, 0x01de6,), # Combining Dotted Grave A..Combining Latin Small Le
(0x01dfc, 0x01dff,), # Combining Double Inverte..Combining Right Arrowhea
(0x020d0, 0x020f0,), # Combining Left Harpoon A..Combining Asterisk Above
(0x02cef, 0x02cf1,), # Coptic Combining Ni Abov..Coptic Combining Spiritu
(0x02d7f, 0x02d7f,), # Tifinagh Consonant Joine..Tifinagh Consonant Joine
(0x02de0, 0x02dff,), # Combining Cyrillic Lette..Combining Cyrillic Lette
(0x0302a, 0x0302d,), # Ideographic Level Tone M..Ideographic Entering Ton
(0x03099, 0x0309a,), # Combining Katakana-hirag..Combining Katakana-hirag
(0x0a66f, 0x0a672,), # Combining Cyrillic Vzmet..Combining Cyrillic Thous
(0x0a674, 0x0a67d,), # Combining Cyrillic Lette..Combining Cyrillic Payer
(0x0a69f, 0x0a69f,), # Combining Cyrillic Lette..Combining Cyrillic Lette
(0x0a6f0, 0x0a6f1,), # Bamum Combining Mark Koq..Bamum Combining Mark Tuk
(0x0a802, 0x0a802,), # Syloti Nagri Sign Dvisva..Syloti Nagri Sign Dvisva
(0x0a806, 0x0a806,), # Syloti Nagri Sign Hasant..Syloti Nagri Sign Hasant
(0x0a80b, 0x0a80b,), # Syloti Nagri Sign Anusva..Syloti Nagri Sign Anusva
(0x0a825, 0x0a826,), # Syloti Nagri Vowel Sign ..Syloti Nagri Vowel Sign
(0x0a8c4, 0x0a8c4,), # Saurashtra Sign Virama ..Saurashtra Sign Virama
(0x0a8e0, 0x0a8f1,), # Combining Devanagari Dig..Combining Devanagari Sig
(0x0a926, 0x0a92d,), # Kayah Li Vowel Ue ..Kayah Li Tone Calya Plop
(0x0a947, 0x0a951,), # Rejang Vowel Sign I ..Rejang Consonant Sign R
(0x0a980, 0x0a982,), # Javanese Sign Panyangga ..Javanese Sign Layar
(0x0a9b3, 0x0a9b3,), # Javanese Sign Cecak Telu..Javanese Sign Cecak Telu
(0x0a9b6, 0x0a9b9,), # Javanese Vowel Sign Wulu..Javanese Vowel Sign Suku
(0x0a9bc, 0x0a9bc,), # Javanese Vowel Sign Pepe..Javanese Vowel Sign Pepe
(0x0aa29, 0x0aa2e,), # Cham Vowel Sign Aa ..Cham Vowel Sign Oe
(0x0aa31, 0x0aa32,), # Cham Vowel Sign Au ..Cham Vowel Sign Ue
(0x0aa35, 0x0aa36,), # Cham Consonant Sign La ..Cham Consonant Sign Wa
(0x0aa43, 0x0aa43,), # Cham Consonant Sign Fina..Cham Consonant Sign Fina
(0x0aa4c, 0x0aa4c,), # Cham Consonant Sign Fina..Cham Consonant Sign Fina
(0x0aab0, 0x0aab0,), # Tai Viet Mai Kang ..Tai Viet Mai Kang
(0x0aab2, 0x0aab4,), # Tai Viet Vowel I ..Tai Viet Vowel U
(0x0aab7, 0x0aab8,), # Tai Viet Mai Khit ..Tai Viet Vowel Ia
(0x0aabe, 0x0aabf,), # Tai Viet Vowel Am ..Tai Viet Tone Mai Ek
(0x0aac1, 0x0aac1,), # Tai Viet Tone Mai Tho ..Tai Viet Tone Mai Tho
(0x0aaec, 0x0aaed,), # Meetei Mayek Vowel Sign ..Meetei Mayek Vowel Sign
(0x0aaf6, 0x0aaf6,), # Meetei Mayek Virama ..Meetei Mayek Virama
(0x0abe5, 0x0abe5,), # Meetei Mayek Vowel Sign ..Meetei Mayek Vowel Sign
(0x0abe8, 0x0abe8,), # Meetei Mayek Vowel Sign ..Meetei Mayek Vowel Sign
(0x0abed, 0x0abed,), # Meetei Mayek Apun Iyek ..Meetei Mayek Apun Iyek
(0x0fb1e, 0x0fb1e,), # Hebrew Point Judeo-spani..Hebrew Point Judeo-spani
(0x0fe00, 0x0fe0f,), # Variation Selector-1 ..Variation Selector-16
(0x0fe20, 0x0fe26,), # Combining Ligature Left ..Combining Conjoining Mac
(0x101fd, 0x101fd,), # Phaistos Disc Sign Combi..Phaistos Disc Sign Combi
(0x10a01, 0x10a03,), # Kharoshthi Vowel Sign I ..Kharoshthi Vowel Sign Vo
(0x10a05, 0x10a06,), # Kharoshthi Vowel Sign E ..Kharoshthi Vowel Sign O
(0x10a0c, 0x10a0f,), # Kharoshthi Vowel Length ..Kharoshthi Sign Visarga
(0x10a38, 0x10a3a,), # Kharoshthi Sign Bar Abov..Kharoshthi Sign Dot Belo
(0x10a3f, 0x10a3f,), # Kharoshthi Virama ..Kharoshthi Virama
(0x11001, 0x11001,), # Brahmi Sign Anusvara ..Brahmi Sign Anusvara
(0x11038, 0x11046,), # Brahmi Vowel Sign Aa ..Brahmi Virama
(0x11080, 0x11081,), # Kaithi Sign Candrabindu ..Kaithi Sign Anusvara
(0x110b3, 0x110b6,), # Kaithi Vowel Sign U ..Kaithi Vowel Sign Ai
(0x110b9, 0x110ba,), # Kaithi Sign Virama ..Kaithi Sign Nukta
(0x11100, 0x11102,), # Chakma Sign Candrabindu ..Chakma Sign Visarga
(0x11127, 0x1112b,), # Chakma Vowel Sign A ..Chakma Vowel Sign Uu
(0x1112d, 0x11134,), # Chakma Vowel Sign Ai ..Chakma Maayyaa
(0x11180, 0x11181,), # Sharada Sign Candrabindu..Sharada Sign Anusvara
(0x111b6, 0x111be,), # Sharada Vowel Sign U ..Sharada Vowel Sign O
(0x116ab, 0x116ab,), # Takri Sign Anusvara ..Takri Sign Anusvara
(0x116ad, 0x116ad,), # Takri Vowel Sign Aa ..Takri Vowel Sign Aa
(0x116b0, 0x116b5,), # Takri Vowel Sign U ..Takri Vowel Sign Au
(0x116b7, 0x116b7,), # Takri Sign Nukta ..Takri Sign Nukta
(0x16f8f, 0x16f92,), # Miao Tone Right ..Miao Tone Below
(0x1d167, 0x1d169,), # Musical Symbol Combining..Musical Symbol Combining
(0x1d17b, 0x1d182,), # Musical Symbol Combining..Musical Symbol Combining
(0x1d185, 0x1d18b,), # Musical Symbol Combining..Musical Symbol Combining
(0x1d1aa, 0x1d1ad,), # Musical Symbol Combining..Musical Symbol Combining
(0x1d242, 0x1d244,), # Combining Greek Musical ..Combining Greek Musical
(0xe0100, 0xe01ef,), # Variation Selector-17 ..Variation Selector-256
),
'6.3.0': (
# Source: DerivedGeneralCategory-6.3.0.txt
# Date: 2013-07-05, 14:08:45 GMT [MD]
#
(0x00300, 0x0036f,), # Combining Grave Accent ..Combining Latin Small Le
(0x00483, 0x00489,), # Combining Cyrillic Titlo..Combining Cyrillic Milli
(0x00591, 0x005bd,), # Hebrew Accent Etnahta ..Hebrew Point Meteg
(0x005bf, 0x005bf,), # Hebrew Point Rafe ..Hebrew Point Rafe
(0x005c1, 0x005c2,), # Hebrew Point Shin Dot ..Hebrew Point Sin Dot
(0x005c4, 0x005c5,), # Hebrew Mark Upper Dot ..Hebrew Mark Lower Dot
(0x005c7, 0x005c7,), # Hebrew Point Qamats Qata..Hebrew Point Qamats Qata
(0x00610, 0x0061a,), # Arabic Sign Sallallahou ..Arabic Small Kasra
(0x0064b, 0x0065f,), # Arabic Fathatan ..Arabic Wavy Hamza Below
(0x00670, 0x00670,), # Arabic Letter Superscrip..Arabic Letter Superscrip
(0x006d6, 0x006dc,), # Arabic Small High Ligatu..Arabic Small High Seen
(0x006df, 0x006e4,), # Arabic Small High Rounde..Arabic Small High Madda
(0x006e7, 0x006e8,), # Arabic Small High Yeh ..Arabic Small High Noon
(0x006ea, 0x006ed,), # Arabic Empty Centre Low ..Arabic Small Low Meem
(0x00711, 0x00711,), # Syriac Letter Superscrip..Syriac Letter Superscrip
(0x00730, 0x0074a,), # Syriac Pthaha Above ..Syriac Barrekh
(0x007a6, 0x007b0,), # Thaana Abafili ..Thaana Sukun
(0x007eb, 0x007f3,), # Nko Combining Short High..Nko Combining Double Dot
(0x00816, 0x00819,), # Samaritan Mark In ..Samaritan Mark Dagesh
(0x0081b, 0x00823,), # Samaritan Mark Epentheti..Samaritan Vowel Sign A
(0x00825, 0x00827,), # Samaritan Vowel Sign Sho..Samaritan Vowel Sign U
(0x00829, 0x0082d,), # Samaritan Vowel Sign Lon..Samaritan Mark Nequdaa
(0x00859, 0x0085b,), # Mandaic Affrication Mark..Mandaic Gemination Mark
(0x008e4, 0x008fe,), # Arabic Curly Fatha ..Arabic Damma With Dot
(0x00900, 0x00902,), # Devanagari Sign Inverted..Devanagari Sign Anusvara
(0x0093a, 0x0093a,), # Devanagari Vowel Sign Oe..Devanagari Vowel Sign Oe
(0x0093c, 0x0093c,), # Devanagari Sign Nukta ..Devanagari Sign Nukta
(0x00941, 0x00948,), # Devanagari Vowel Sign U ..Devanagari Vowel Sign Ai
(0x0094d, 0x0094d,), # Devanagari Sign Virama ..Devanagari Sign Virama
(0x00951, 0x00957,), # Devanagari Stress Sign U..Devanagari Vowel Sign Uu
(0x00962, 0x00963,), # Devanagari Vowel Sign Vo..Devanagari Vowel Sign Vo
(0x00981, 0x00981,), # Bengali Sign Candrabindu..Bengali Sign Candrabindu
(0x009bc, 0x009bc,), # Bengali Sign Nukta ..Bengali Sign Nukta
(0x009c1, 0x009c4,), # Bengali Vowel Sign U ..Bengali Vowel Sign Vocal
(0x009cd, 0x009cd,), # Bengali Sign Virama ..Bengali Sign Virama
(0x009e2, 0x009e3,), # Bengali Vowel Sign Vocal..Bengali Vowel Sign Vocal
(0x00a01, 0x00a02,), # Gurmukhi Sign Adak Bindi..Gurmukhi Sign Bindi
(0x00a3c, 0x00a3c,), # Gurmukhi Sign Nukta ..Gurmukhi Sign Nukta
(0x00a41, 0x00a42,), # Gurmukhi Vowel Sign U ..Gurmukhi Vowel Sign Uu
(0x00a47, 0x00a48,), # Gurmukhi Vowel Sign Ee ..Gurmukhi Vowel Sign Ai
(0x00a4b, 0x00a4d,), # Gurmukhi Vowel Sign Oo ..Gurmukhi Sign Virama
(0x00a51, 0x00a51,), # Gurmukhi Sign Udaat ..Gurmukhi Sign Udaat
(0x00a70, 0x00a71,), # Gurmukhi Tippi ..Gurmukhi Addak
(0x00a75, 0x00a75,), # Gurmukhi Sign Yakash ..Gurmukhi Sign Yakash
(0x00a81, 0x00a82,), # Gujarati Sign Candrabind..Gujarati Sign Anusvara
(0x00abc, 0x00abc,), # Gujarati Sign Nukta ..Gujarati Sign Nukta
(0x00ac1, 0x00ac5,), # Gujarati Vowel Sign U ..Gujarati Vowel Sign Cand
(0x00ac7, 0x00ac8,), # Gujarati Vowel Sign E ..Gujarati Vowel Sign Ai
(0x00acd, 0x00acd,), # Gujarati Sign Virama ..Gujarati Sign Virama
(0x00ae2, 0x00ae3,), # Gujarati Vowel Sign Voca..Gujarati Vowel Sign Voca
(0x00b01, 0x00b01,), # Oriya Sign Candrabindu ..Oriya Sign Candrabindu
(0x00b3c, 0x00b3c,), # Oriya Sign Nukta ..Oriya Sign Nukta
(0x00b3f, 0x00b3f,), # Oriya Vowel Sign I ..Oriya Vowel Sign I
(0x00b41, 0x00b44,), # Oriya Vowel Sign U ..Oriya Vowel Sign Vocalic
(0x00b4d, 0x00b4d,), # Oriya Sign Virama ..Oriya Sign Virama
(0x00b56, 0x00b56,), # Oriya Ai Length Mark ..Oriya Ai Length Mark
(0x00b62, 0x00b63,), # Oriya Vowel Sign Vocalic..Oriya Vowel Sign Vocalic
(0x00b82, 0x00b82,), # Tamil Sign Anusvara ..Tamil Sign Anusvara
(0x00bc0, 0x00bc0,), # Tamil Vowel Sign Ii ..Tamil Vowel Sign Ii
(0x00bcd, 0x00bcd,), # Tamil Sign Virama ..Tamil Sign Virama
(0x00c3e, 0x00c40,), # Telugu Vowel Sign Aa ..Telugu Vowel Sign Ii
(0x00c46, 0x00c48,), # Telugu Vowel Sign E ..Telugu Vowel Sign Ai
(0x00c4a, 0x00c4d,), # Telugu Vowel Sign O ..Telugu Sign Virama
(0x00c55, 0x00c56,), # Telugu Length Mark ..Telugu Ai Length Mark
(0x00c62, 0x00c63,), # Telugu Vowel Sign Vocali..Telugu Vowel Sign Vocali
(0x00cbc, 0x00cbc,), # Kannada Sign Nukta ..Kannada Sign Nukta
(0x00cbf, 0x00cbf,), # Kannada Vowel Sign I ..Kannada Vowel Sign I
(0x00cc6, 0x00cc6,), # Kannada Vowel Sign E ..Kannada Vowel Sign E
(0x00ccc, 0x00ccd,), # Kannada Vowel Sign Au ..Kannada Sign Virama
(0x00ce2, 0x00ce3,), # Kannada Vowel Sign Vocal..Kannada Vowel Sign Vocal
(0x00d41, 0x00d44,), # Malayalam Vowel Sign U ..Malayalam Vowel Sign Voc
(0x00d4d, 0x00d4d,), # Malayalam Sign Virama ..Malayalam Sign Virama
(0x00d62, 0x00d63,), # Malayalam Vowel Sign Voc..Malayalam Vowel Sign Voc
(0x00dca, 0x00dca,), # Sinhala Sign Al-lakuna ..Sinhala Sign Al-lakuna
(0x00dd2, 0x00dd4,), # Sinhala Vowel Sign Ketti..Sinhala Vowel Sign Ketti
(0x00dd6, 0x00dd6,), # Sinhala Vowel Sign Diga ..Sinhala Vowel Sign Diga
(0x00e31, 0x00e31,), # Thai Character Mai Han-a..Thai Character Mai Han-a
(0x00e34, 0x00e3a,), # Thai Character Sara I ..Thai Character Phinthu
(0x00e47, 0x00e4e,), # Thai Character Maitaikhu..Thai Character Yamakkan
(0x00eb1, 0x00eb1,), # Lao Vowel Sign Mai Kan ..Lao Vowel Sign Mai Kan
(0x00eb4, 0x00eb9,), # Lao Vowel Sign I ..Lao Vowel Sign Uu
(0x00ebb, 0x00ebc,), # Lao Vowel Sign Mai Kon ..Lao Semivowel Sign Lo
(0x00ec8, 0x00ecd,), # Lao Tone Mai Ek ..Lao Niggahita
(0x00f18, 0x00f19,), # Tibetan Astrological Sig..Tibetan Astrological Sig
(0x00f35, 0x00f35,), # Tibetan Mark Ngas Bzung ..Tibetan Mark Ngas Bzung
(0x00f37, 0x00f37,), # Tibetan Mark Ngas Bzung ..Tibetan Mark Ngas Bzung
(0x00f39, 0x00f39,), # Tibetan Mark Tsa -phru ..Tibetan Mark Tsa -phru
(0x00f71, 0x00f7e,), # Tibetan Vowel Sign Aa ..Tibetan Sign Rjes Su Nga
(0x00f80, 0x00f84,), # Tibetan Vowel Sign Rever..Tibetan Mark Halanta
(0x00f86, 0x00f87,), # Tibetan Sign Lci Rtags ..Tibetan Sign Yang Rtags
(0x00f8d, 0x00f97,), # Tibetan Subjoined Sign L..Tibetan Subjoined Letter
(0x00f99, 0x00fbc,), # Tibetan Subjoined Letter..Tibetan Subjoined Letter
(0x00fc6, 0x00fc6,), # Tibetan Symbol Padma Gda..Tibetan Symbol Padma Gda
(0x0102d, 0x01030,), # Myanmar Vowel Sign I ..Myanmar Vowel Sign Uu
(0x01032, 0x01037,), # Myanmar Vowel Sign Ai ..Myanmar Sign Dot Below
(0x01039, 0x0103a,), # Myanmar Sign Virama ..Myanmar Sign Asat
(0x0103d, 0x0103e,), # Myanmar Consonant Sign M..Myanmar Consonant Sign M
(0x01058, 0x01059,), # Myanmar Vowel Sign Vocal..Myanmar Vowel Sign Vocal
(0x0105e, 0x01060,), # Myanmar Consonant Sign M..Myanmar Consonant Sign M
(0x01071, 0x01074,), # Myanmar Vowel Sign Geba ..Myanmar Vowel Sign Kayah
(0x01082, 0x01082,), # Myanmar Consonant Sign S..Myanmar Consonant Sign S
(0x01085, 0x01086,), # Myanmar Vowel Sign Shan ..Myanmar Vowel Sign Shan
(0x0108d, 0x0108d,), # Myanmar Sign Shan Counci..Myanmar Sign Shan Counci
(0x0109d, 0x0109d,), # Myanmar Vowel Sign Aiton..Myanmar Vowel Sign Aiton
(0x0135d, 0x0135f,), # Ethiopic Combining Gemin..Ethiopic Combining Gemin
(0x01712, 0x01714,), # Tagalog Vowel Sign I ..Tagalog Sign Virama
(0x01732, 0x01734,), # Hanunoo Vowel Sign I ..Hanunoo Sign Pamudpod
(0x01752, 0x01753,), # Buhid Vowel Sign I ..Buhid Vowel Sign U
(0x01772, 0x01773,), # Tagbanwa Vowel Sign I ..Tagbanwa Vowel Sign U
(0x017b4, 0x017b5,), # Khmer Vowel Inherent Aq ..Khmer Vowel Inherent Aa
(0x017b7, 0x017bd,), # Khmer Vowel Sign I ..Khmer Vowel Sign Ua
(0x017c6, 0x017c6,), # Khmer Sign Nikahit ..Khmer Sign Nikahit
(0x017c9, 0x017d3,), # Khmer Sign Muusikatoan ..Khmer Sign Bathamasat
(0x017dd, 0x017dd,), # Khmer Sign Atthacan ..Khmer Sign Atthacan
(0x0180b, 0x0180d,), # Mongolian Free Variation..Mongolian Free Variation
(0x018a9, 0x018a9,), # Mongolian Letter Ali Gal..Mongolian Letter Ali Gal
(0x01920, 0x01922,), # Limbu Vowel Sign A ..Limbu Vowel Sign U
(0x01927, 0x01928,), # Limbu Vowel Sign E ..Limbu Vowel Sign O
(0x01932, 0x01932,), # Limbu Small Letter Anusv..Limbu Small Letter Anusv
(0x01939, 0x0193b,), # Limbu Sign Mukphreng ..Limbu Sign Sa-i
(0x01a17, 0x01a18,), # Buginese Vowel Sign I ..Buginese Vowel Sign U
(0x01a1b, 0x01a1b,), # Buginese Vowel Sign Ae ..Buginese Vowel Sign Ae
(0x01a56, 0x01a56,), # Tai Tham Consonant Sign ..Tai Tham Consonant Sign
(0x01a58, 0x01a5e,), # Tai Tham Sign Mai Kang L..Tai Tham Consonant Sign
(0x01a60, 0x01a60,), # Tai Tham Sign Sakot ..Tai Tham Sign Sakot
(0x01a62, 0x01a62,), # Tai Tham Vowel Sign Mai ..Tai Tham Vowel Sign Mai
(0x01a65, 0x01a6c,), # Tai Tham Vowel Sign I ..Tai Tham Vowel Sign Oa B
(0x01a73, 0x01a7c,), # Tai Tham Vowel Sign Oa A..Tai Tham Sign Khuen-lue
(0x01a7f, 0x01a7f,), # Tai Tham Combining Crypt..Tai Tham Combining Crypt
(0x01b00, 0x01b03,), # Balinese Sign Ulu Ricem ..Balinese Sign Surang
(0x01b34, 0x01b34,), # Balinese Sign Rerekan ..Balinese Sign Rerekan
(0x01b36, 0x01b3a,), # Balinese Vowel Sign Ulu ..Balinese Vowel Sign Ra R
(0x01b3c, 0x01b3c,), # Balinese Vowel Sign La L..Balinese Vowel Sign La L
(0x01b42, 0x01b42,), # Balinese Vowel Sign Pepe..Balinese Vowel Sign Pepe
(0x01b6b, 0x01b73,), # Balinese Musical Symbol ..Balinese Musical Symbol
(0x01b80, 0x01b81,), # Sundanese Sign Panyecek ..Sundanese Sign Panglayar
(0x01ba2, 0x01ba5,), # Sundanese Consonant Sign..Sundanese Vowel Sign Pan
(0x01ba8, 0x01ba9,), # Sundanese Vowel Sign Pam..Sundanese Vowel Sign Pan
(0x01bab, 0x01bab,), # Sundanese Sign Virama ..Sundanese Sign Virama
(0x01be6, 0x01be6,), # Batak Sign Tompi ..Batak Sign Tompi
(0x01be8, 0x01be9,), # Batak Vowel Sign Pakpak ..Batak Vowel Sign Ee
(0x01bed, 0x01bed,), # Batak Vowel Sign Karo O ..Batak Vowel Sign Karo O
(0x01bef, 0x01bf1,), # Batak Vowel Sign U For S..Batak Consonant Sign H
(0x01c2c, 0x01c33,), # Lepcha Vowel Sign E ..Lepcha Consonant Sign T
(0x01c36, 0x01c37,), # Lepcha Sign Ran ..Lepcha Sign Nukta
(0x01cd0, 0x01cd2,), # Vedic Tone Karshana ..Vedic Tone Prenkha
(0x01cd4, 0x01ce0,), # Vedic Sign Yajurvedic Mi..Vedic Tone Rigvedic Kash
(0x01ce2, 0x01ce8,), # Vedic Sign Visarga Svari..Vedic Sign Visarga Anuda
(0x01ced, 0x01ced,), # Vedic Sign Tiryak ..Vedic Sign Tiryak
(0x01cf4, 0x01cf4,), # Vedic Tone Candra Above ..Vedic Tone Candra Above
(0x01dc0, 0x01de6,), # Combining Dotted Grave A..Combining Latin Small Le
(0x01dfc, 0x01dff,), # Combining Double Inverte..Combining Right Arrowhea
(0x020d0, 0x020f0,), # Combining Left Harpoon A..Combining Asterisk Above
(0x02cef, 0x02cf1,), # Coptic Combining Ni Abov..Coptic Combining Spiritu
(0x02d7f, 0x02d7f,), # Tifinagh Consonant Joine..Tifinagh Consonant Joine
(0x02de0, 0x02dff,), # Combining Cyrillic Lette..Combining Cyrillic Lette
(0x0302a, 0x0302d,), # Ideographic Level Tone M..Ideographic Entering Ton
(0x03099, 0x0309a,), # Combining Katakana-hirag..Combining Katakana-hirag
(0x0a66f, 0x0a672,), # Combining Cyrillic Vzmet..Combining Cyrillic Thous
(0x0a674, 0x0a67d,), # Combining Cyrillic Lette..Combining Cyrillic Payer
(0x0a69f, 0x0a69f,), # Combining Cyrillic Lette..Combining Cyrillic Lette
(0x0a6f0, 0x0a6f1,), # Bamum Combining Mark Koq..Bamum Combining Mark Tuk
(0x0a802, 0x0a802,), # Syloti Nagri Sign Dvisva..Syloti Nagri Sign Dvisva
(0x0a806, 0x0a806,), # Syloti Nagri Sign Hasant..Syloti Nagri Sign Hasant
(0x0a80b, 0x0a80b,), # Syloti Nagri Sign Anusva..Syloti Nagri Sign Anusva
(0x0a825, 0x0a826,), # Syloti Nagri Vowel Sign ..Syloti Nagri Vowel Sign
(0x0a8c4, 0x0a8c4,), # Saurashtra Sign Virama ..Saurashtra Sign Virama
(0x0a8e0, 0x0a8f1,), # Combining Devanagari Dig..Combining Devanagari Sig
(0x0a926, 0x0a92d,), # Kayah Li Vowel Ue ..Kayah Li Tone Calya Plop
(0x0a947, 0x0a951,), # Rejang Vowel Sign I ..Rejang Consonant Sign R
(0x0a980, 0x0a982,), # Javanese Sign Panyangga ..Javanese Sign Layar
(0x0a9b3, 0x0a9b3,), # Javanese Sign Cecak Telu..Javanese Sign Cecak Telu
(0x0a9b6, 0x0a9b9,), # Javanese Vowel Sign Wulu..Javanese Vowel Sign Suku
(0x0a9bc, 0x0a9bc,), # Javanese Vowel Sign Pepe..Javanese Vowel Sign Pepe
(0x0aa29, 0x0aa2e,), # Cham Vowel Sign Aa ..Cham Vowel Sign Oe
(0x0aa31, 0x0aa32,), # Cham Vowel Sign Au ..Cham Vowel Sign Ue
(0x0aa35, 0x0aa36,), # Cham Consonant Sign La ..Cham Consonant Sign Wa
(0x0aa43, 0x0aa43,), # Cham Consonant Sign Fina..Cham Consonant Sign Fina
(0x0aa4c, 0x0aa4c,), # Cham Consonant Sign Fina..Cham Consonant Sign Fina
(0x0aab0, 0x0aab0,), # Tai Viet Mai Kang ..Tai Viet Mai Kang
(0x0aab2, 0x0aab4,), # Tai Viet Vowel I ..Tai Viet Vowel U
(0x0aab7, 0x0aab8,), # Tai Viet Mai Khit ..Tai Viet Vowel Ia
(0x0aabe, 0x0aabf,), # Tai Viet Vowel Am ..Tai Viet Tone Mai Ek
(0x0aac1, 0x0aac1,), # Tai Viet Tone Mai Tho ..Tai Viet Tone Mai Tho
(0x0aaec, 0x0aaed,), # Meetei Mayek Vowel Sign ..Meetei Mayek Vowel Sign
(0x0aaf6, 0x0aaf6,), # Meetei Mayek Virama ..Meetei Mayek Virama
(0x0abe5, 0x0abe5,), # Meetei Mayek Vowel Sign ..Meetei Mayek Vowel Sign
(0x0abe8, 0x0abe8,), # Meetei Mayek Vowel Sign ..Meetei Mayek Vowel Sign
(0x0abed, 0x0abed,), # Meetei Mayek Apun Iyek ..Meetei Mayek Apun Iyek
(0x0fb1e, 0x0fb1e,), # Hebrew Point Judeo-spani..Hebrew Point Judeo-spani
(0x0fe00, 0x0fe0f,), # Variation Selector-1 ..Variation Selector-16
(0x0fe20, 0x0fe26,), # Combining Ligature Left ..Combining Conjoining Mac
(0x101fd, 0x101fd,), # Phaistos Disc Sign Combi..Phaistos Disc Sign Combi
(0x10a01, 0x10a03,), # Kharoshthi Vowel Sign I ..Kharoshthi Vowel Sign Vo
(0x10a05, 0x10a06,), # Kharoshthi Vowel Sign E ..Kharoshthi Vowel Sign O
(0x10a0c, 0x10a0f,), # Kharoshthi Vowel Length ..Kharoshthi Sign Visarga
(0x10a38, 0x10a3a,), # Kharoshthi Sign Bar Abov..Kharoshthi Sign Dot Belo
(0x10a3f, 0x10a3f,), # Kharoshthi Virama ..Kharoshthi Virama
(0x11001, 0x11001,), # Brahmi Sign Anusvara ..Brahmi Sign Anusvara
(0x11038, 0x11046,), # Brahmi Vowel Sign Aa ..Brahmi Virama
(0x11080, 0x11081,), # Kaithi Sign Candrabindu ..Kaithi Sign Anusvara
(0x110b3, 0x110b6,), # Kaithi Vowel Sign U ..Kaithi Vowel Sign Ai
(0x110b9, 0x110ba,), # Kaithi Sign Virama ..Kaithi Sign Nukta
(0x11100, 0x11102,), # Chakma Sign Candrabindu ..Chakma Sign Visarga
(0x11127, 0x1112b,), # Chakma Vowel Sign A ..Chakma Vowel Sign Uu
(0x1112d, 0x11134,), # Chakma Vowel Sign Ai ..Chakma Maayyaa
(0x11180, 0x11181,), # Sharada Sign Candrabindu..Sharada Sign Anusvara
(0x111b6, 0x111be,), # Sharada Vowel Sign U ..Sharada Vowel Sign O
(0x116ab, 0x116ab,), # Takri Sign Anusvara ..Takri Sign Anusvara
(0x116ad, 0x116ad,), # Takri Vowel Sign Aa ..Takri Vowel Sign Aa
(0x116b0, 0x116b5,), # Takri Vowel Sign U ..Takri Vowel Sign Au
(0x116b7, 0x116b7,), # Takri Sign Nukta ..Takri Sign Nukta
(0x16f8f, 0x16f92,), # Miao Tone Right ..Miao Tone Below
(0x1d167, 0x1d169,), # Musical Symbol Combining..Musical Symbol Combining
(0x1d17b, 0x1d182,), # Musical Symbol Combining..Musical Symbol Combining
(0x1d185, 0x1d18b,), # Musical Symbol Combining..Musical Symbol Combining
(0x1d1aa, 0x1d1ad,), # Musical Symbol Combining..Musical Symbol Combining
(0x1d242, 0x1d244,), # Combining Greek Musical ..Combining Greek Musical
(0xe0100, 0xe01ef,), # Variation Selector-17 ..Variation Selector-256
),
'7.0.0': (
# Source: DerivedGeneralCategory-7.0.0.txt
# Date: 2014-02-07, 18:42:12 GMT [MD]
#
(0x00300, 0x0036f,), # Combining Grave Accent ..Combining Latin Small Le
(0x00483, 0x00489,), # Combining Cyrillic Titlo..Combining Cyrillic Milli
(0x00591, 0x005bd,), # Hebrew Accent Etnahta ..Hebrew Point Meteg
(0x005bf, 0x005bf,), # Hebrew Point Rafe ..Hebrew Point Rafe
(0x005c1, 0x005c2,), # Hebrew Point Shin Dot ..Hebrew Point Sin Dot
(0x005c4, 0x005c5,), # Hebrew Mark Upper Dot ..Hebrew Mark Lower Dot
(0x005c7, 0x005c7,), # Hebrew Point Qamats Qata..Hebrew Point Qamats Qata
(0x00610, 0x0061a,), # Arabic Sign Sallallahou ..Arabic Small Kasra
(0x0064b, 0x0065f,), # Arabic Fathatan ..Arabic Wavy Hamza Below
(0x00670, 0x00670,), # Arabic Letter Superscrip..Arabic Letter Superscrip
(0x006d6, 0x006dc,), # Arabic Small High Ligatu..Arabic Small High Seen
(0x006df, 0x006e4,), # Arabic Small High Rounde..Arabic Small High Madda
(0x006e7, 0x006e8,), # Arabic Small High Yeh ..Arabic Small High Noon
(0x006ea, 0x006ed,), # Arabic Empty Centre Low ..Arabic Small Low Meem
(0x00711, 0x00711,), # Syriac Letter Superscrip..Syriac Letter Superscrip
(0x00730, 0x0074a,), # Syriac Pthaha Above ..Syriac Barrekh
(0x007a6, 0x007b0,), # Thaana Abafili ..Thaana Sukun
(0x007eb, 0x007f3,), # Nko Combining Short High..Nko Combining Double Dot
(0x00816, 0x00819,), # Samaritan Mark In ..Samaritan Mark Dagesh
(0x0081b, 0x00823,), # Samaritan Mark Epentheti..Samaritan Vowel Sign A
(0x00825, 0x00827,), # Samaritan Vowel Sign Sho..Samaritan Vowel Sign U
(0x00829, 0x0082d,), # Samaritan Vowel Sign Lon..Samaritan Mark Nequdaa
(0x00859, 0x0085b,), # Mandaic Affrication Mark..Mandaic Gemination Mark
(0x008e4, 0x00902,), # Arabic Curly Fatha ..Devanagari Sign Anusvara
(0x0093a, 0x0093a,), # Devanagari Vowel Sign Oe..Devanagari Vowel Sign Oe
(0x0093c, 0x0093c,), # Devanagari Sign Nukta ..Devanagari Sign Nukta
(0x00941, 0x00948,), # Devanagari Vowel Sign U ..Devanagari Vowel Sign Ai
(0x0094d, 0x0094d,), # Devanagari Sign Virama ..Devanagari Sign Virama
(0x00951, 0x00957,), # Devanagari Stress Sign U..Devanagari Vowel Sign Uu
(0x00962, 0x00963,), # Devanagari Vowel Sign Vo..Devanagari Vowel Sign Vo
(0x00981, 0x00981,), # Bengali Sign Candrabindu..Bengali Sign Candrabindu
(0x009bc, 0x009bc,), # Bengali Sign Nukta ..Bengali Sign Nukta
(0x009c1, 0x009c4,), # Bengali Vowel Sign U ..Bengali Vowel Sign Vocal
(0x009cd, 0x009cd,), # Bengali Sign Virama ..Bengali Sign Virama
(0x009e2, 0x009e3,), # Bengali Vowel Sign Vocal..Bengali Vowel Sign Vocal
(0x00a01, 0x00a02,), # Gurmukhi Sign Adak Bindi..Gurmukhi Sign Bindi
(0x00a3c, 0x00a3c,), # Gurmukhi Sign Nukta ..Gurmukhi Sign Nukta
(0x00a41, 0x00a42,), # Gurmukhi Vowel Sign U ..Gurmukhi Vowel Sign Uu
(0x00a47, 0x00a48,), # Gurmukhi Vowel Sign Ee ..Gurmukhi Vowel Sign Ai
(0x00a4b, 0x00a4d,), # Gurmukhi Vowel Sign Oo ..Gurmukhi Sign Virama
(0x00a51, 0x00a51,), # Gurmukhi Sign Udaat ..Gurmukhi Sign Udaat
(0x00a70, 0x00a71,), # Gurmukhi Tippi ..Gurmukhi Addak
(0x00a75, 0x00a75,), # Gurmukhi Sign Yakash ..Gurmukhi Sign Yakash
(0x00a81, 0x00a82,), # Gujarati Sign Candrabind..Gujarati Sign Anusvara
(0x00abc, 0x00abc,), # Gujarati Sign Nukta ..Gujarati Sign Nukta
(0x00ac1, 0x00ac5,), # Gujarati Vowel Sign U ..Gujarati Vowel Sign Cand
(0x00ac7, 0x00ac8,), # Gujarati Vowel Sign E ..Gujarati Vowel Sign Ai
(0x00acd, 0x00acd,), # Gujarati Sign Virama ..Gujarati Sign Virama
(0x00ae2, 0x00ae3,), # Gujarati Vowel Sign Voca..Gujarati Vowel Sign Voca
(0x00b01, 0x00b01,), # Oriya Sign Candrabindu ..Oriya Sign Candrabindu
(0x00b3c, 0x00b3c,), # Oriya Sign Nukta ..Oriya Sign Nukta
(0x00b3f, 0x00b3f,), # Oriya Vowel Sign I ..Oriya Vowel Sign I
(0x00b41, 0x00b44,), # Oriya Vowel Sign U ..Oriya Vowel Sign Vocalic
(0x00b4d, 0x00b4d,), # Oriya Sign Virama ..Oriya Sign Virama
(0x00b56, 0x00b56,), # Oriya Ai Length Mark ..Oriya Ai Length Mark
(0x00b62, 0x00b63,), # Oriya Vowel Sign Vocalic..Oriya Vowel Sign Vocalic
(0x00b82, 0x00b82,), # Tamil Sign Anusvara ..Tamil Sign Anusvara
(0x00bc0, 0x00bc0,), # Tamil Vowel Sign Ii ..Tamil Vowel Sign Ii
(0x00bcd, 0x00bcd,), # Tamil Sign Virama ..Tamil Sign Virama
(0x00c00, 0x00c00,), # Telugu Sign Combining Ca..Telugu Sign Combining Ca
(0x00c3e, 0x00c40,), # Telugu Vowel Sign Aa ..Telugu Vowel Sign Ii
(0x00c46, 0x00c48,), # Telugu Vowel Sign E ..Telugu Vowel Sign Ai
(0x00c4a, 0x00c4d,), # Telugu Vowel Sign O ..Telugu Sign Virama
(0x00c55, 0x00c56,), # Telugu Length Mark ..Telugu Ai Length Mark
(0x00c62, 0x00c63,), # Telugu Vowel Sign Vocali..Telugu Vowel Sign Vocali
(0x00c81, 0x00c81,), # Kannada Sign Candrabindu..Kannada Sign Candrabindu
(0x00cbc, 0x00cbc,), # Kannada Sign Nukta ..Kannada Sign Nukta
(0x00cbf, 0x00cbf,), # Kannada Vowel Sign I ..Kannada Vowel Sign I
(0x00cc6, 0x00cc6,), # Kannada Vowel Sign E ..Kannada Vowel Sign E
(0x00ccc, 0x00ccd,), # Kannada Vowel Sign Au ..Kannada Sign Virama
(0x00ce2, 0x00ce3,), # Kannada Vowel Sign Vocal..Kannada Vowel Sign Vocal
(0x00d01, 0x00d01,), # Malayalam Sign Candrabin..Malayalam Sign Candrabin
(0x00d41, 0x00d44,), # Malayalam Vowel Sign U ..Malayalam Vowel Sign Voc
(0x00d4d, 0x00d4d,), # Malayalam Sign Virama ..Malayalam Sign Virama
(0x00d62, 0x00d63,), # Malayalam Vowel Sign Voc..Malayalam Vowel Sign Voc
(0x00dca, 0x00dca,), # Sinhala Sign Al-lakuna ..Sinhala Sign Al-lakuna
(0x00dd2, 0x00dd4,), # Sinhala Vowel Sign Ketti..Sinhala Vowel Sign Ketti
(0x00dd6, 0x00dd6,), # Sinhala Vowel Sign Diga ..Sinhala Vowel Sign Diga
(0x00e31, 0x00e31,), # Thai Character Mai Han-a..Thai Character Mai Han-a
(0x00e34, 0x00e3a,), # Thai Character Sara I ..Thai Character Phinthu
(0x00e47, 0x00e4e,), # Thai Character Maitaikhu..Thai Character Yamakkan
(0x00eb1, 0x00eb1,), # Lao Vowel Sign Mai Kan ..Lao Vowel Sign Mai Kan
(0x00eb4, 0x00eb9,), # Lao Vowel Sign I ..Lao Vowel Sign Uu
(0x00ebb, 0x00ebc,), # Lao Vowel Sign Mai Kon ..Lao Semivowel Sign Lo
(0x00ec8, 0x00ecd,), # Lao Tone Mai Ek ..Lao Niggahita
(0x00f18, 0x00f19,), # Tibetan Astrological Sig..Tibetan Astrological Sig
(0x00f35, 0x00f35,), # Tibetan Mark Ngas Bzung ..Tibetan Mark Ngas Bzung
(0x00f37, 0x00f37,), # Tibetan Mark Ngas Bzung ..Tibetan Mark Ngas Bzung
(0x00f39, 0x00f39,), # Tibetan Mark Tsa -phru ..Tibetan Mark Tsa -phru
(0x00f71, 0x00f7e,), # Tibetan Vowel Sign Aa ..Tibetan Sign Rjes Su Nga
(0x00f80, 0x00f84,), # Tibetan Vowel Sign Rever..Tibetan Mark Halanta
(0x00f86, 0x00f87,), # Tibetan Sign Lci Rtags ..Tibetan Sign Yang Rtags
(0x00f8d, 0x00f97,), # Tibetan Subjoined Sign L..Tibetan Subjoined Letter
(0x00f99, 0x00fbc,), # Tibetan Subjoined Letter..Tibetan Subjoined Letter
(0x00fc6, 0x00fc6,), # Tibetan Symbol Padma Gda..Tibetan Symbol Padma Gda
(0x0102d, 0x01030,), # Myanmar Vowel Sign I ..Myanmar Vowel Sign Uu
(0x01032, 0x01037,), # Myanmar Vowel Sign Ai ..Myanmar Sign Dot Below
(0x01039, 0x0103a,), # Myanmar Sign Virama ..Myanmar Sign Asat
(0x0103d, 0x0103e,), # Myanmar Consonant Sign M..Myanmar Consonant Sign M
(0x01058, 0x01059,), # Myanmar Vowel Sign Vocal..Myanmar Vowel Sign Vocal
(0x0105e, 0x01060,), # Myanmar Consonant Sign M..Myanmar Consonant Sign M
(0x01071, 0x01074,), # Myanmar Vowel Sign Geba ..Myanmar Vowel Sign Kayah
(0x01082, 0x01082,), # Myanmar Consonant Sign S..Myanmar Consonant Sign S
(0x01085, 0x01086,), # Myanmar Vowel Sign Shan ..Myanmar Vowel Sign Shan
(0x0108d, 0x0108d,), # Myanmar Sign Shan Counci..Myanmar Sign Shan Counci
(0x0109d, 0x0109d,), # Myanmar Vowel Sign Aiton..Myanmar Vowel Sign Aiton
(0x0135d, 0x0135f,), # Ethiopic Combining Gemin..Ethiopic Combining Gemin
(0x01712, 0x01714,), # Tagalog Vowel Sign I ..Tagalog Sign Virama
(0x01732, 0x01734,), # Hanunoo Vowel Sign I ..Hanunoo Sign Pamudpod
(0x01752, 0x01753,), # Buhid Vowel Sign I ..Buhid Vowel Sign U
(0x01772, 0x01773,), # Tagbanwa Vowel Sign I ..Tagbanwa Vowel Sign U
(0x017b4, 0x017b5,), # Khmer Vowel Inherent Aq ..Khmer Vowel Inherent Aa
(0x017b7, 0x017bd,), # Khmer Vowel Sign I ..Khmer Vowel Sign Ua
(0x017c6, 0x017c6,), # Khmer Sign Nikahit ..Khmer Sign Nikahit
(0x017c9, 0x017d3,), # Khmer Sign Muusikatoan ..Khmer Sign Bathamasat
(0x017dd, 0x017dd,), # Khmer Sign Atthacan ..Khmer Sign Atthacan
(0x0180b, 0x0180d,), # Mongolian Free Variation..Mongolian Free Variation
(0x018a9, 0x018a9,), # Mongolian Letter Ali Gal..Mongolian Letter Ali Gal
(0x01920, 0x01922,), # Limbu Vowel Sign A ..Limbu Vowel Sign U
(0x01927, 0x01928,), # Limbu Vowel Sign E ..Limbu Vowel Sign O
(0x01932, 0x01932,), # Limbu Small Letter Anusv..Limbu Small Letter Anusv
(0x01939, 0x0193b,), # Limbu Sign Mukphreng ..Limbu Sign Sa-i
(0x01a17, 0x01a18,), # Buginese Vowel Sign I ..Buginese Vowel Sign U
(0x01a1b, 0x01a1b,), # Buginese Vowel Sign Ae ..Buginese Vowel Sign Ae
(0x01a56, 0x01a56,), # Tai Tham Consonant Sign ..Tai Tham Consonant Sign
(0x01a58, 0x01a5e,), # Tai Tham Sign Mai Kang L..Tai Tham Consonant Sign
(0x01a60, 0x01a60,), # Tai Tham Sign Sakot ..Tai Tham Sign Sakot
(0x01a62, 0x01a62,), # Tai Tham Vowel Sign Mai ..Tai Tham Vowel Sign Mai
(0x01a65, 0x01a6c,), # Tai Tham Vowel Sign I ..Tai Tham Vowel Sign Oa B
(0x01a73, 0x01a7c,), # Tai Tham Vowel Sign Oa A..Tai Tham Sign Khuen-lue
(0x01a7f, 0x01a7f,), # Tai Tham Combining Crypt..Tai Tham Combining Crypt
(0x01ab0, 0x01abe,), # Combining Doubled Circum..Combining Parentheses Ov
(0x01b00, 0x01b03,), # Balinese Sign Ulu Ricem ..Balinese Sign Surang
(0x01b34, 0x01b34,), # Balinese Sign Rerekan ..Balinese Sign Rerekan
(0x01b36, 0x01b3a,), # Balinese Vowel Sign Ulu ..Balinese Vowel Sign Ra R
(0x01b3c, 0x01b3c,), # Balinese Vowel Sign La L..Balinese Vowel Sign La L
(0x01b42, 0x01b42,), # Balinese Vowel Sign Pepe..Balinese Vowel Sign Pepe
(0x01b6b, 0x01b73,), # Balinese Musical Symbol ..Balinese Musical Symbol
(0x01b80, 0x01b81,), # Sundanese Sign Panyecek ..Sundanese Sign Panglayar
(0x01ba2, 0x01ba5,), # Sundanese Consonant Sign..Sundanese Vowel Sign Pan
(0x01ba8, 0x01ba9,), # Sundanese Vowel Sign Pam..Sundanese Vowel Sign Pan
(0x01bab, 0x01bad,), # Sundanese Sign Virama ..Sundanese Consonant Sign
(0x01be6, 0x01be6,), # Batak Sign Tompi ..Batak Sign Tompi
(0x01be8, 0x01be9,), # Batak Vowel Sign Pakpak ..Batak Vowel Sign Ee
(0x01bed, 0x01bed,), # Batak Vowel Sign Karo O ..Batak Vowel Sign Karo O
(0x01bef, 0x01bf1,), # Batak Vowel Sign U For S..Batak Consonant Sign H
(0x01c2c, 0x01c33,), # Lepcha Vowel Sign E ..Lepcha Consonant Sign T
(0x01c36, 0x01c37,), # Lepcha Sign Ran ..Lepcha Sign Nukta
(0x01cd0, 0x01cd2,), # Vedic Tone Karshana ..Vedic Tone Prenkha
(0x01cd4, 0x01ce0,), # Vedic Sign Yajurvedic Mi..Vedic Tone Rigvedic Kash
(0x01ce2, 0x01ce8,), # Vedic Sign Visarga Svari..Vedic Sign Visarga Anuda
(0x01ced, 0x01ced,), # Vedic Sign Tiryak ..Vedic Sign Tiryak
(0x01cf4, 0x01cf4,), # Vedic Tone Candra Above ..Vedic Tone Candra Above
(0x01cf8, 0x01cf9,), # Vedic Tone Ring Above ..Vedic Tone Double Ring A
(0x01dc0, 0x01df5,), # Combining Dotted Grave A..Combining Up Tack Above
(0x01dfc, 0x01dff,), # Combining Double Inverte..Combining Right Arrowhea
(0x020d0, 0x020f0,), # Combining Left Harpoon A..Combining Asterisk Above
(0x02cef, 0x02cf1,), # Coptic Combining Ni Abov..Coptic Combining Spiritu
(0x02d7f, 0x02d7f,), # Tifinagh Consonant Joine..Tifinagh Consonant Joine
(0x02de0, 0x02dff,), # Combining Cyrillic Lette..Combining Cyrillic Lette
(0x0302a, 0x0302d,), # Ideographic Level Tone M..Ideographic Entering Ton
(0x03099, 0x0309a,), # Combining Katakana-hirag..Combining Katakana-hirag
(0x0a66f, 0x0a672,), # Combining Cyrillic Vzmet..Combining Cyrillic Thous
(0x0a674, 0x0a67d,), # Combining Cyrillic Lette..Combining Cyrillic Payer
(0x0a69f, 0x0a69f,), # Combining Cyrillic Lette..Combining Cyrillic Lette
(0x0a6f0, 0x0a6f1,), # Bamum Combining Mark Koq..Bamum Combining Mark Tuk
(0x0a802, 0x0a802,), # Syloti Nagri Sign Dvisva..Syloti Nagri Sign Dvisva
(0x0a806, 0x0a806,), # Syloti Nagri Sign Hasant..Syloti Nagri Sign Hasant
(0x0a80b, 0x0a80b,), # Syloti Nagri Sign Anusva..Syloti Nagri Sign Anusva
(0x0a825, 0x0a826,), # Syloti Nagri Vowel Sign ..Syloti Nagri Vowel Sign
(0x0a8c4, 0x0a8c4,), # Saurashtra Sign Virama ..Saurashtra Sign Virama
(0x0a8e0, 0x0a8f1,), # Combining Devanagari Dig..Combining Devanagari Sig
(0x0a926, 0x0a92d,), # Kayah Li Vowel Ue ..Kayah Li Tone Calya Plop
(0x0a947, 0x0a951,), # Rejang Vowel Sign I ..Rejang Consonant Sign R
(0x0a980, 0x0a982,), # Javanese Sign Panyangga ..Javanese Sign Layar
(0x0a9b3, 0x0a9b3,), # Javanese Sign Cecak Telu..Javanese Sign Cecak Telu
(0x0a9b6, 0x0a9b9,), # Javanese Vowel Sign Wulu..Javanese Vowel Sign Suku
(0x0a9bc, 0x0a9bc,), # Javanese Vowel Sign Pepe..Javanese Vowel Sign Pepe
(0x0a9e5, 0x0a9e5,), # Myanmar Sign Shan Saw ..Myanmar Sign Shan Saw
(0x0aa29, 0x0aa2e,), # Cham Vowel Sign Aa ..Cham Vowel Sign Oe
(0x0aa31, 0x0aa32,), # Cham Vowel Sign Au ..Cham Vowel Sign Ue
(0x0aa35, 0x0aa36,), # Cham Consonant Sign La ..Cham Consonant Sign Wa
(0x0aa43, 0x0aa43,), # Cham Consonant Sign Fina..Cham Consonant Sign Fina
(0x0aa4c, 0x0aa4c,), # Cham Consonant Sign Fina..Cham Consonant Sign Fina
(0x0aa7c, 0x0aa7c,), # Myanmar Sign Tai Laing T..Myanmar Sign Tai Laing T
(0x0aab0, 0x0aab0,), # Tai Viet Mai Kang ..Tai Viet Mai Kang
(0x0aab2, 0x0aab4,), # Tai Viet Vowel I ..Tai Viet Vowel U
(0x0aab7, 0x0aab8,), # Tai Viet Mai Khit ..Tai Viet Vowel Ia
(0x0aabe, 0x0aabf,), # Tai Viet Vowel Am ..Tai Viet Tone Mai Ek
(0x0aac1, 0x0aac1,), # Tai Viet Tone Mai Tho ..Tai Viet Tone Mai Tho
(0x0aaec, 0x0aaed,), # Meetei Mayek Vowel Sign ..Meetei Mayek Vowel Sign
(0x0aaf6, 0x0aaf6,), # Meetei Mayek Virama ..Meetei Mayek Virama
(0x0abe5, 0x0abe5,), # Meetei Mayek Vowel Sign ..Meetei Mayek Vowel Sign
(0x0abe8, 0x0abe8,), # Meetei Mayek Vowel Sign ..Meetei Mayek Vowel Sign
(0x0abed, 0x0abed,), # Meetei Mayek Apun Iyek ..Meetei Mayek Apun Iyek
(0x0fb1e, 0x0fb1e,), # Hebrew Point Judeo-spani..Hebrew Point Judeo-spani
(0x0fe00, 0x0fe0f,), # Variation Selector-1 ..Variation Selector-16
(0x0fe20, 0x0fe2d,), # Combining Ligature Left ..Combining Conjoining Mac
(0x101fd, 0x101fd,), # Phaistos Disc Sign Combi..Phaistos Disc Sign Combi
(0x102e0, 0x102e0,), # Coptic Epact Thousands M..Coptic Epact Thousands M
(0x10376, 0x1037a,), # Combining Old Permic Let..Combining Old Permic Let
(0x10a01, 0x10a03,), # Kharoshthi Vowel Sign I ..Kharoshthi Vowel Sign Vo
(0x10a05, 0x10a06,), # Kharoshthi Vowel Sign E ..Kharoshthi Vowel Sign O
(0x10a0c, 0x10a0f,), # Kharoshthi Vowel Length ..Kharoshthi Sign Visarga
(0x10a38, 0x10a3a,), # Kharoshthi Sign Bar Abov..Kharoshthi Sign Dot Belo
(0x10a3f, 0x10a3f,), # Kharoshthi Virama ..Kharoshthi Virama
(0x10ae5, 0x10ae6,), # Manichaean Abbreviation ..Manichaean Abbreviation
(0x11001, 0x11001,), # Brahmi Sign Anusvara ..Brahmi Sign Anusvara
(0x11038, 0x11046,), # Brahmi Vowel Sign Aa ..Brahmi Virama
(0x1107f, 0x11081,), # Brahmi Number Joiner ..Kaithi Sign Anusvara
(0x110b3, 0x110b6,), # Kaithi Vowel Sign U ..Kaithi Vowel Sign Ai
(0x110b9, 0x110ba,), # Kaithi Sign Virama ..Kaithi Sign Nukta
(0x11100, 0x11102,), # Chakma Sign Candrabindu ..Chakma Sign Visarga
(0x11127, 0x1112b,), # Chakma Vowel Sign A ..Chakma Vowel Sign Uu
(0x1112d, 0x11134,), # Chakma Vowel Sign Ai ..Chakma Maayyaa
(0x11173, 0x11173,), # Mahajani Sign Nukta ..Mahajani Sign Nukta
(0x11180, 0x11181,), # Sharada Sign Candrabindu..Sharada Sign Anusvara
(0x111b6, 0x111be,), # Sharada Vowel Sign U ..Sharada Vowel Sign O
(0x1122f, 0x11231,), # Khojki Vowel Sign U ..Khojki Vowel Sign Ai
(0x11234, 0x11234,), # Khojki Sign Anusvara ..Khojki Sign Anusvara
(0x11236, 0x11237,), # Khojki Sign Nukta ..Khojki Sign Shadda
(0x112df, 0x112df,), # Khudawadi Sign Anusvara ..Khudawadi Sign Anusvara
(0x112e3, 0x112ea,), # Khudawadi Vowel Sign U ..Khudawadi Sign Virama
(0x11301, 0x11301,), # Grantha Sign Candrabindu..Grantha Sign Candrabindu
(0x1133c, 0x1133c,), # Grantha Sign Nukta ..Grantha Sign Nukta
(0x11340, 0x11340,), # Grantha Vowel Sign Ii ..Grantha Vowel Sign Ii
(0x11366, 0x1136c,), # Combining Grantha Digit ..Combining Grantha Digit
(0x11370, 0x11374,), # Combining Grantha Letter..Combining Grantha Letter
(0x114b3, 0x114b8,), # Tirhuta Vowel Sign U ..Tirhuta Vowel Sign Vocal
(0x114ba, 0x114ba,), # Tirhuta Vowel Sign Short..Tirhuta Vowel Sign Short
(0x114bf, 0x114c0,), # Tirhuta Sign Candrabindu..Tirhuta Sign Anusvara
(0x114c2, 0x114c3,), # Tirhuta Sign Virama ..Tirhuta Sign Nukta
(0x115b2, 0x115b5,), # Siddham Vowel Sign U ..Siddham Vowel Sign Vocal
(0x115bc, 0x115bd,), # Siddham Sign Candrabindu..Siddham Sign Anusvara
(0x115bf, 0x115c0,), # Siddham Sign Virama ..Siddham Sign Nukta
(0x11633, 0x1163a,), # Modi Vowel Sign U ..Modi Vowel Sign Ai
(0x1163d, 0x1163d,), # Modi Sign Anusvara ..Modi Sign Anusvara
(0x1163f, 0x11640,), # Modi Sign Virama ..Modi Sign Ardhacandra
(0x116ab, 0x116ab,), # Takri Sign Anusvara ..Takri Sign Anusvara
(0x116ad, 0x116ad,), # Takri Vowel Sign Aa ..Takri Vowel Sign Aa
(0x116b0, 0x116b5,), # Takri Vowel Sign U ..Takri Vowel Sign Au
(0x116b7, 0x116b7,), # Takri Sign Nukta ..Takri Sign Nukta
(0x16af0, 0x16af4,), # Bassa Vah Combining High..Bassa Vah Combining High
(0x16b30, 0x16b36,), # Pahawh Hmong Mark Cim Tu..Pahawh Hmong Mark Cim Ta
(0x16f8f, 0x16f92,), # Miao Tone Right ..Miao Tone Below
(0x1bc9d, 0x1bc9e,), # Duployan Thick Letter Se..Duployan Double Mark
(0x1d167, 0x1d169,), # Musical Symbol Combining..Musical Symbol Combining
(0x1d17b, 0x1d182,), # Musical Symbol Combining..Musical Symbol Combining
(0x1d185, 0x1d18b,), # Musical Symbol Combining..Musical Symbol Combining
(0x1d1aa, 0x1d1ad,), # Musical Symbol Combining..Musical Symbol Combining
(0x1d242, 0x1d244,), # Combining Greek Musical ..Combining Greek Musical
(0x1e8d0, 0x1e8d6,), # Mende Kikakui Combining ..Mende Kikakui Combining
(0xe0100, 0xe01ef,), # Variation Selector-17 ..Variation Selector-256
),
'8.0.0': (
# Source: DerivedGeneralCategory-8.0.0.txt
# Date: 2015-02-13, 13:47:11 GMT [MD]
#
(0x00300, 0x0036f,), # Combining Grave Accent ..Combining Latin Small Le
(0x00483, 0x00489,), # Combining Cyrillic Titlo..Combining Cyrillic Milli
(0x00591, 0x005bd,), # Hebrew Accent Etnahta ..Hebrew Point Meteg
(0x005bf, 0x005bf,), # Hebrew Point Rafe ..Hebrew Point Rafe
(0x005c1, 0x005c2,), # Hebrew Point Shin Dot ..Hebrew Point Sin Dot
(0x005c4, 0x005c5,), # Hebrew Mark Upper Dot ..Hebrew Mark Lower Dot
(0x005c7, 0x005c7,), # Hebrew Point Qamats Qata..Hebrew Point Qamats Qata
(0x00610, 0x0061a,), # Arabic Sign Sallallahou ..Arabic Small Kasra
(0x0064b, 0x0065f,), # Arabic Fathatan ..Arabic Wavy Hamza Below
(0x00670, 0x00670,), # Arabic Letter Superscrip..Arabic Letter Superscrip
(0x006d6, 0x006dc,), # Arabic Small High Ligatu..Arabic Small High Seen
(0x006df, 0x006e4,), # Arabic Small High Rounde..Arabic Small High Madda
(0x006e7, 0x006e8,), # Arabic Small High Yeh ..Arabic Small High Noon
(0x006ea, 0x006ed,), # Arabic Empty Centre Low ..Arabic Small Low Meem
(0x00711, 0x00711,), # Syriac Letter Superscrip..Syriac Letter Superscrip
(0x00730, 0x0074a,), # Syriac Pthaha Above ..Syriac Barrekh
(0x007a6, 0x007b0,), # Thaana Abafili ..Thaana Sukun
(0x007eb, 0x007f3,), # Nko Combining Short High..Nko Combining Double Dot
(0x00816, 0x00819,), # Samaritan Mark In ..Samaritan Mark Dagesh
(0x0081b, 0x00823,), # Samaritan Mark Epentheti..Samaritan Vowel Sign A
(0x00825, 0x00827,), # Samaritan Vowel Sign Sho..Samaritan Vowel Sign U
(0x00829, 0x0082d,), # Samaritan Vowel Sign Lon..Samaritan Mark Nequdaa
(0x00859, 0x0085b,), # Mandaic Affrication Mark..Mandaic Gemination Mark
(0x008e3, 0x00902,), # Arabic Turned Damma Belo..Devanagari Sign Anusvara
(0x0093a, 0x0093a,), # Devanagari Vowel Sign Oe..Devanagari Vowel Sign Oe
(0x0093c, 0x0093c,), # Devanagari Sign Nukta ..Devanagari Sign Nukta
(0x00941, 0x00948,), # Devanagari Vowel Sign U ..Devanagari Vowel Sign Ai
(0x0094d, 0x0094d,), # Devanagari Sign Virama ..Devanagari Sign Virama
(0x00951, 0x00957,), # Devanagari Stress Sign U..Devanagari Vowel Sign Uu
(0x00962, 0x00963,), # Devanagari Vowel Sign Vo..Devanagari Vowel Sign Vo
(0x00981, 0x00981,), # Bengali Sign Candrabindu..Bengali Sign Candrabindu
(0x009bc, 0x009bc,), # Bengali Sign Nukta ..Bengali Sign Nukta
(0x009c1, 0x009c4,), # Bengali Vowel Sign U ..Bengali Vowel Sign Vocal
(0x009cd, 0x009cd,), # Bengali Sign Virama ..Bengali Sign Virama
(0x009e2, 0x009e3,), # Bengali Vowel Sign Vocal..Bengali Vowel Sign Vocal
(0x00a01, 0x00a02,), # Gurmukhi Sign Adak Bindi..Gurmukhi Sign Bindi
(0x00a3c, 0x00a3c,), # Gurmukhi Sign Nukta ..Gurmukhi Sign Nukta
(0x00a41, 0x00a42,), # Gurmukhi Vowel Sign U ..Gurmukhi Vowel Sign Uu
(0x00a47, 0x00a48,), # Gurmukhi Vowel Sign Ee ..Gurmukhi Vowel Sign Ai
(0x00a4b, 0x00a4d,), # Gurmukhi Vowel Sign Oo ..Gurmukhi Sign Virama
(0x00a51, 0x00a51,), # Gurmukhi Sign Udaat ..Gurmukhi Sign Udaat
(0x00a70, 0x00a71,), # Gurmukhi Tippi ..Gurmukhi Addak
(0x00a75, 0x00a75,), # Gurmukhi Sign Yakash ..Gurmukhi Sign Yakash
(0x00a81, 0x00a82,), # Gujarati Sign Candrabind..Gujarati Sign Anusvara
(0x00abc, 0x00abc,), # Gujarati Sign Nukta ..Gujarati Sign Nukta
(0x00ac1, 0x00ac5,), # Gujarati Vowel Sign U ..Gujarati Vowel Sign Cand
(0x00ac7, 0x00ac8,), # Gujarati Vowel Sign E ..Gujarati Vowel Sign Ai
(0x00acd, 0x00acd,), # Gujarati Sign Virama ..Gujarati Sign Virama
(0x00ae2, 0x00ae3,), # Gujarati Vowel Sign Voca..Gujarati Vowel Sign Voca
(0x00b01, 0x00b01,), # Oriya Sign Candrabindu ..Oriya Sign Candrabindu
(0x00b3c, 0x00b3c,), # Oriya Sign Nukta ..Oriya Sign Nukta
(0x00b3f, 0x00b3f,), # Oriya Vowel Sign I ..Oriya Vowel Sign I
(0x00b41, 0x00b44,), # Oriya Vowel Sign U ..Oriya Vowel Sign Vocalic
(0x00b4d, 0x00b4d,), # Oriya Sign Virama ..Oriya Sign Virama
(0x00b56, 0x00b56,), # Oriya Ai Length Mark ..Oriya Ai Length Mark
(0x00b62, 0x00b63,), # Oriya Vowel Sign Vocalic..Oriya Vowel Sign Vocalic
(0x00b82, 0x00b82,), # Tamil Sign Anusvara ..Tamil Sign Anusvara
(0x00bc0, 0x00bc0,), # Tamil Vowel Sign Ii ..Tamil Vowel Sign Ii
(0x00bcd, 0x00bcd,), # Tamil Sign Virama ..Tamil Sign Virama
(0x00c00, 0x00c00,), # Telugu Sign Combining Ca..Telugu Sign Combining Ca
(0x00c3e, 0x00c40,), # Telugu Vowel Sign Aa ..Telugu Vowel Sign Ii
(0x00c46, 0x00c48,), # Telugu Vowel Sign E ..Telugu Vowel Sign Ai
(0x00c4a, 0x00c4d,), # Telugu Vowel Sign O ..Telugu Sign Virama
(0x00c55, 0x00c56,), # Telugu Length Mark ..Telugu Ai Length Mark
(0x00c62, 0x00c63,), # Telugu Vowel Sign Vocali..Telugu Vowel Sign Vocali
(0x00c81, 0x00c81,), # Kannada Sign Candrabindu..Kannada Sign Candrabindu
(0x00cbc, 0x00cbc,), # Kannada Sign Nukta ..Kannada Sign Nukta
(0x00cbf, 0x00cbf,), # Kannada Vowel Sign I ..Kannada Vowel Sign I
(0x00cc6, 0x00cc6,), # Kannada Vowel Sign E ..Kannada Vowel Sign E
(0x00ccc, 0x00ccd,), # Kannada Vowel Sign Au ..Kannada Sign Virama
(0x00ce2, 0x00ce3,), # Kannada Vowel Sign Vocal..Kannada Vowel Sign Vocal
(0x00d01, 0x00d01,), # Malayalam Sign Candrabin..Malayalam Sign Candrabin
(0x00d41, 0x00d44,), # Malayalam Vowel Sign U ..Malayalam Vowel Sign Voc
(0x00d4d, 0x00d4d,), # Malayalam Sign Virama ..Malayalam Sign Virama
(0x00d62, 0x00d63,), # Malayalam Vowel Sign Voc..Malayalam Vowel Sign Voc
(0x00dca, 0x00dca,), # Sinhala Sign Al-lakuna ..Sinhala Sign Al-lakuna
(0x00dd2, 0x00dd4,), # Sinhala Vowel Sign Ketti..Sinhala Vowel Sign Ketti
(0x00dd6, 0x00dd6,), # Sinhala Vowel Sign Diga ..Sinhala Vowel Sign Diga
(0x00e31, 0x00e31,), # Thai Character Mai Han-a..Thai Character Mai Han-a
(0x00e34, 0x00e3a,), # Thai Character Sara I ..Thai Character Phinthu
(0x00e47, 0x00e4e,), # Thai Character Maitaikhu..Thai Character Yamakkan
(0x00eb1, 0x00eb1,), # Lao Vowel Sign Mai Kan ..Lao Vowel Sign Mai Kan
(0x00eb4, 0x00eb9,), # Lao Vowel Sign I ..Lao Vowel Sign Uu
(0x00ebb, 0x00ebc,), # Lao Vowel Sign Mai Kon ..Lao Semivowel Sign Lo
(0x00ec8, 0x00ecd,), # Lao Tone Mai Ek ..Lao Niggahita
(0x00f18, 0x00f19,), # Tibetan Astrological Sig..Tibetan Astrological Sig
(0x00f35, 0x00f35,), # Tibetan Mark Ngas Bzung ..Tibetan Mark Ngas Bzung
(0x00f37, 0x00f37,), # Tibetan Mark Ngas Bzung ..Tibetan Mark Ngas Bzung
(0x00f39, 0x00f39,), # Tibetan Mark Tsa -phru ..Tibetan Mark Tsa -phru
(0x00f71, 0x00f7e,), # Tibetan Vowel Sign Aa ..Tibetan Sign Rjes Su Nga
(0x00f80, 0x00f84,), # Tibetan Vowel Sign Rever..Tibetan Mark Halanta
(0x00f86, 0x00f87,), # Tibetan Sign Lci Rtags ..Tibetan Sign Yang Rtags
(0x00f8d, 0x00f97,), # Tibetan Subjoined Sign L..Tibetan Subjoined Letter
(0x00f99, 0x00fbc,), # Tibetan Subjoined Letter..Tibetan Subjoined Letter
(0x00fc6, 0x00fc6,), # Tibetan Symbol Padma Gda..Tibetan Symbol Padma Gda
(0x0102d, 0x01030,), # Myanmar Vowel Sign I ..Myanmar Vowel Sign Uu
(0x01032, 0x01037,), # Myanmar Vowel Sign Ai ..Myanmar Sign Dot Below
(0x01039, 0x0103a,), # Myanmar Sign Virama ..Myanmar Sign Asat
(0x0103d, 0x0103e,), # Myanmar Consonant Sign M..Myanmar Consonant Sign M
(0x01058, 0x01059,), # Myanmar Vowel Sign Vocal..Myanmar Vowel Sign Vocal
(0x0105e, 0x01060,), # Myanmar Consonant Sign M..Myanmar Consonant Sign M
(0x01071, 0x01074,), # Myanmar Vowel Sign Geba ..Myanmar Vowel Sign Kayah
(0x01082, 0x01082,), # Myanmar Consonant Sign S..Myanmar Consonant Sign S
(0x01085, 0x01086,), # Myanmar Vowel Sign Shan ..Myanmar Vowel Sign Shan
(0x0108d, 0x0108d,), # Myanmar Sign Shan Counci..Myanmar Sign Shan Counci
(0x0109d, 0x0109d,), # Myanmar Vowel Sign Aiton..Myanmar Vowel Sign Aiton
(0x0135d, 0x0135f,), # Ethiopic Combining Gemin..Ethiopic Combining Gemin
(0x01712, 0x01714,), # Tagalog Vowel Sign I ..Tagalog Sign Virama
(0x01732, 0x01734,), # Hanunoo Vowel Sign I ..Hanunoo Sign Pamudpod
(0x01752, 0x01753,), # Buhid Vowel Sign I ..Buhid Vowel Sign U
(0x01772, 0x01773,), # Tagbanwa Vowel Sign I ..Tagbanwa Vowel Sign U
(0x017b4, 0x017b5,), # Khmer Vowel Inherent Aq ..Khmer Vowel Inherent Aa
(0x017b7, 0x017bd,), # Khmer Vowel Sign I ..Khmer Vowel Sign Ua
(0x017c6, 0x017c6,), # Khmer Sign Nikahit ..Khmer Sign Nikahit
(0x017c9, 0x017d3,), # Khmer Sign Muusikatoan ..Khmer Sign Bathamasat
(0x017dd, 0x017dd,), # Khmer Sign Atthacan ..Khmer Sign Atthacan
(0x0180b, 0x0180d,), # Mongolian Free Variation..Mongolian Free Variation
(0x018a9, 0x018a9,), # Mongolian Letter Ali Gal..Mongolian Letter Ali Gal
(0x01920, 0x01922,), # Limbu Vowel Sign A ..Limbu Vowel Sign U
(0x01927, 0x01928,), # Limbu Vowel Sign E ..Limbu Vowel Sign O
(0x01932, 0x01932,), # Limbu Small Letter Anusv..Limbu Small Letter Anusv
(0x01939, 0x0193b,), # Limbu Sign Mukphreng ..Limbu Sign Sa-i
(0x01a17, 0x01a18,), # Buginese Vowel Sign I ..Buginese Vowel Sign U
(0x01a1b, 0x01a1b,), # Buginese Vowel Sign Ae ..Buginese Vowel Sign Ae
(0x01a56, 0x01a56,), # Tai Tham Consonant Sign ..Tai Tham Consonant Sign
(0x01a58, 0x01a5e,), # Tai Tham Sign Mai Kang L..Tai Tham Consonant Sign
(0x01a60, 0x01a60,), # Tai Tham Sign Sakot ..Tai Tham Sign Sakot
(0x01a62, 0x01a62,), # Tai Tham Vowel Sign Mai ..Tai Tham Vowel Sign Mai
(0x01a65, 0x01a6c,), # Tai Tham Vowel Sign I ..Tai Tham Vowel Sign Oa B
(0x01a73, 0x01a7c,), # Tai Tham Vowel Sign Oa A..Tai Tham Sign Khuen-lue
(0x01a7f, 0x01a7f,), # Tai Tham Combining Crypt..Tai Tham Combining Crypt
(0x01ab0, 0x01abe,), # Combining Doubled Circum..Combining Parentheses Ov
(0x01b00, 0x01b03,), # Balinese Sign Ulu Ricem ..Balinese Sign Surang
(0x01b34, 0x01b34,), # Balinese Sign Rerekan ..Balinese Sign Rerekan
(0x01b36, 0x01b3a,), # Balinese Vowel Sign Ulu ..Balinese Vowel Sign Ra R
(0x01b3c, 0x01b3c,), # Balinese Vowel Sign La L..Balinese Vowel Sign La L
(0x01b42, 0x01b42,), # Balinese Vowel Sign Pepe..Balinese Vowel Sign Pepe
(0x01b6b, 0x01b73,), # Balinese Musical Symbol ..Balinese Musical Symbol
(0x01b80, 0x01b81,), # Sundanese Sign Panyecek ..Sundanese Sign Panglayar
(0x01ba2, 0x01ba5,), # Sundanese Consonant Sign..Sundanese Vowel Sign Pan
(0x01ba8, 0x01ba9,), # Sundanese Vowel Sign Pam..Sundanese Vowel Sign Pan
(0x01bab, 0x01bad,), # Sundanese Sign Virama ..Sundanese Consonant Sign
(0x01be6, 0x01be6,), # Batak Sign Tompi ..Batak Sign Tompi
(0x01be8, 0x01be9,), # Batak Vowel Sign Pakpak ..Batak Vowel Sign Ee
(0x01bed, 0x01bed,), # Batak Vowel Sign Karo O ..Batak Vowel Sign Karo O
(0x01bef, 0x01bf1,), # Batak Vowel Sign U For S..Batak Consonant Sign H
(0x01c2c, 0x01c33,), # Lepcha Vowel Sign E ..Lepcha Consonant Sign T
(0x01c36, 0x01c37,), # Lepcha Sign Ran ..Lepcha Sign Nukta
(0x01cd0, 0x01cd2,), # Vedic Tone Karshana ..Vedic Tone Prenkha
(0x01cd4, 0x01ce0,), # Vedic Sign Yajurvedic Mi..Vedic Tone Rigvedic Kash
(0x01ce2, 0x01ce8,), # Vedic Sign Visarga Svari..Vedic Sign Visarga Anuda
(0x01ced, 0x01ced,), # Vedic Sign Tiryak ..Vedic Sign Tiryak
(0x01cf4, 0x01cf4,), # Vedic Tone Candra Above ..Vedic Tone Candra Above
(0x01cf8, 0x01cf9,), # Vedic Tone Ring Above ..Vedic Tone Double Ring A
(0x01dc0, 0x01df5,), # Combining Dotted Grave A..Combining Up Tack Above
(0x01dfc, 0x01dff,), # Combining Double Inverte..Combining Right Arrowhea
(0x020d0, 0x020f0,), # Combining Left Harpoon A..Combining Asterisk Above
(0x02cef, 0x02cf1,), # Coptic Combining Ni Abov..Coptic Combining Spiritu
(0x02d7f, 0x02d7f,), # Tifinagh Consonant Joine..Tifinagh Consonant Joine
(0x02de0, 0x02dff,), # Combining Cyrillic Lette..Combining Cyrillic Lette
(0x0302a, 0x0302d,), # Ideographic Level Tone M..Ideographic Entering Ton
(0x03099, 0x0309a,), # Combining Katakana-hirag..Combining Katakana-hirag
(0x0a66f, 0x0a672,), # Combining Cyrillic Vzmet..Combining Cyrillic Thous
(0x0a674, 0x0a67d,), # Combining Cyrillic Lette..Combining Cyrillic Payer
(0x0a69e, 0x0a69f,), # Combining Cyrillic Lette..Combining Cyrillic Lette
(0x0a6f0, 0x0a6f1,), # Bamum Combining Mark Koq..Bamum Combining Mark Tuk
(0x0a802, 0x0a802,), # Syloti Nagri Sign Dvisva..Syloti Nagri Sign Dvisva
(0x0a806, 0x0a806,), # Syloti Nagri Sign Hasant..Syloti Nagri Sign Hasant
(0x0a80b, 0x0a80b,), # Syloti Nagri Sign Anusva..Syloti Nagri Sign Anusva
(0x0a825, 0x0a826,), # Syloti Nagri Vowel Sign ..Syloti Nagri Vowel Sign
(0x0a8c4, 0x0a8c4,), # Saurashtra Sign Virama ..Saurashtra Sign Virama
(0x0a8e0, 0x0a8f1,), # Combining Devanagari Dig..Combining Devanagari Sig
(0x0a926, 0x0a92d,), # Kayah Li Vowel Ue ..Kayah Li Tone Calya Plop
(0x0a947, 0x0a951,), # Rejang Vowel Sign I ..Rejang Consonant Sign R
(0x0a980, 0x0a982,), # Javanese Sign Panyangga ..Javanese Sign Layar
(0x0a9b3, 0x0a9b3,), # Javanese Sign Cecak Telu..Javanese Sign Cecak Telu
(0x0a9b6, 0x0a9b9,), # Javanese Vowel Sign Wulu..Javanese Vowel Sign Suku
(0x0a9bc, 0x0a9bc,), # Javanese Vowel Sign Pepe..Javanese Vowel Sign Pepe
(0x0a9e5, 0x0a9e5,), # Myanmar Sign Shan Saw ..Myanmar Sign Shan Saw
(0x0aa29, 0x0aa2e,), # Cham Vowel Sign Aa ..Cham Vowel Sign Oe
(0x0aa31, 0x0aa32,), # Cham Vowel Sign Au ..Cham Vowel Sign Ue
(0x0aa35, 0x0aa36,), # Cham Consonant Sign La ..Cham Consonant Sign Wa
(0x0aa43, 0x0aa43,), # Cham Consonant Sign Fina..Cham Consonant Sign Fina
(0x0aa4c, 0x0aa4c,), # Cham Consonant Sign Fina..Cham Consonant Sign Fina
(0x0aa7c, 0x0aa7c,), # Myanmar Sign Tai Laing T..Myanmar Sign Tai Laing T
(0x0aab0, 0x0aab0,), # Tai Viet Mai Kang ..Tai Viet Mai Kang
(0x0aab2, 0x0aab4,), # Tai Viet Vowel I ..Tai Viet Vowel U
(0x0aab7, 0x0aab8,), # Tai Viet Mai Khit ..Tai Viet Vowel Ia
(0x0aabe, 0x0aabf,), # Tai Viet Vowel Am ..Tai Viet Tone Mai Ek
(0x0aac1, 0x0aac1,), # Tai Viet Tone Mai Tho ..Tai Viet Tone Mai Tho
(0x0aaec, 0x0aaed,), # Meetei Mayek Vowel Sign ..Meetei Mayek Vowel Sign
(0x0aaf6, 0x0aaf6,), # Meetei Mayek Virama ..Meetei Mayek Virama
(0x0abe5, 0x0abe5,), # Meetei Mayek Vowel Sign ..Meetei Mayek Vowel Sign
(0x0abe8, 0x0abe8,), # Meetei Mayek Vowel Sign ..Meetei Mayek Vowel Sign
(0x0abed, 0x0abed,), # Meetei Mayek Apun Iyek ..Meetei Mayek Apun Iyek
(0x0fb1e, 0x0fb1e,), # Hebrew Point Judeo-spani..Hebrew Point Judeo-spani
(0x0fe00, 0x0fe0f,), # Variation Selector-1 ..Variation Selector-16
(0x0fe20, 0x0fe2f,), # Combining Ligature Left ..Combining Cyrillic Titlo
(0x101fd, 0x101fd,), # Phaistos Disc Sign Combi..Phaistos Disc Sign Combi
(0x102e0, 0x102e0,), # Coptic Epact Thousands M..Coptic Epact Thousands M
(0x10376, 0x1037a,), # Combining Old Permic Let..Combining Old Permic Let
(0x10a01, 0x10a03,), # Kharoshthi Vowel Sign I ..Kharoshthi Vowel Sign Vo
(0x10a05, 0x10a06,), # Kharoshthi Vowel Sign E ..Kharoshthi Vowel Sign O
(0x10a0c, 0x10a0f,), # Kharoshthi Vowel Length ..Kharoshthi Sign Visarga
(0x10a38, 0x10a3a,), # Kharoshthi Sign Bar Abov..Kharoshthi Sign Dot Belo
(0x10a3f, 0x10a3f,), # Kharoshthi Virama ..Kharoshthi Virama
(0x10ae5, 0x10ae6,), # Manichaean Abbreviation ..Manichaean Abbreviation
(0x11001, 0x11001,), # Brahmi Sign Anusvara ..Brahmi Sign Anusvara
(0x11038, 0x11046,), # Brahmi Vowel Sign Aa ..Brahmi Virama
(0x1107f, 0x11081,), # Brahmi Number Joiner ..Kaithi Sign Anusvara
(0x110b3, 0x110b6,), # Kaithi Vowel Sign U ..Kaithi Vowel Sign Ai
(0x110b9, 0x110ba,), # Kaithi Sign Virama ..Kaithi Sign Nukta
(0x11100, 0x11102,), # Chakma Sign Candrabindu ..Chakma Sign Visarga
(0x11127, 0x1112b,), # Chakma Vowel Sign A ..Chakma Vowel Sign Uu
(0x1112d, 0x11134,), # Chakma Vowel Sign Ai ..Chakma Maayyaa
(0x11173, 0x11173,), # Mahajani Sign Nukta ..Mahajani Sign Nukta
(0x11180, 0x11181,), # Sharada Sign Candrabindu..Sharada Sign Anusvara
(0x111b6, 0x111be,), # Sharada Vowel Sign U ..Sharada Vowel Sign O
(0x111ca, 0x111cc,), # Sharada Sign Nukta ..Sharada Extra Short Vowe
(0x1122f, 0x11231,), # Khojki Vowel Sign U ..Khojki Vowel Sign Ai
(0x11234, 0x11234,), # Khojki Sign Anusvara ..Khojki Sign Anusvara
(0x11236, 0x11237,), # Khojki Sign Nukta ..Khojki Sign Shadda
(0x112df, 0x112df,), # Khudawadi Sign Anusvara ..Khudawadi Sign Anusvara
(0x112e3, 0x112ea,), # Khudawadi Vowel Sign U ..Khudawadi Sign Virama
(0x11300, 0x11301,), # Grantha Sign Combining A..Grantha Sign Candrabindu
(0x1133c, 0x1133c,), # Grantha Sign Nukta ..Grantha Sign Nukta
(0x11340, 0x11340,), # Grantha Vowel Sign Ii ..Grantha Vowel Sign Ii
(0x11366, 0x1136c,), # Combining Grantha Digit ..Combining Grantha Digit
(0x11370, 0x11374,), # Combining Grantha Letter..Combining Grantha Letter
(0x114b3, 0x114b8,), # Tirhuta Vowel Sign U ..Tirhuta Vowel Sign Vocal
(0x114ba, 0x114ba,), # Tirhuta Vowel Sign Short..Tirhuta Vowel Sign Short
(0x114bf, 0x114c0,), # Tirhuta Sign Candrabindu..Tirhuta Sign Anusvara
(0x114c2, 0x114c3,), # Tirhuta Sign Virama ..Tirhuta Sign Nukta
(0x115b2, 0x115b5,), # Siddham Vowel Sign U ..Siddham Vowel Sign Vocal
(0x115bc, 0x115bd,), # Siddham Sign Candrabindu..Siddham Sign Anusvara
(0x115bf, 0x115c0,), # Siddham Sign Virama ..Siddham Sign Nukta
(0x115dc, 0x115dd,), # Siddham Vowel Sign Alter..Siddham Vowel Sign Alter
(0x11633, 0x1163a,), # Modi Vowel Sign U ..Modi Vowel Sign Ai
(0x1163d, 0x1163d,), # Modi Sign Anusvara ..Modi Sign Anusvara
(0x1163f, 0x11640,), # Modi Sign Virama ..Modi Sign Ardhacandra
(0x116ab, 0x116ab,), # Takri Sign Anusvara ..Takri Sign Anusvara
(0x116ad, 0x116ad,), # Takri Vowel Sign Aa ..Takri Vowel Sign Aa
(0x116b0, 0x116b5,), # Takri Vowel Sign U ..Takri Vowel Sign Au
(0x116b7, 0x116b7,), # Takri Sign Nukta ..Takri Sign Nukta
(0x1171d, 0x1171f,), # Ahom Consonant Sign Medi..Ahom Consonant Sign Medi
(0x11722, 0x11725,), # Ahom Vowel Sign I ..Ahom Vowel Sign Uu
(0x11727, 0x1172b,), # Ahom Vowel Sign Aw ..Ahom Sign Killer
(0x16af0, 0x16af4,), # Bassa Vah Combining High..Bassa Vah Combining High
(0x16b30, 0x16b36,), # Pahawh Hmong Mark Cim Tu..Pahawh Hmong Mark Cim Ta
(0x16f8f, 0x16f92,), # Miao Tone Right ..Miao Tone Below
(0x1bc9d, 0x1bc9e,), # Duployan Thick Letter Se..Duployan Double Mark
(0x1d167, 0x1d169,), # Musical Symbol Combining..Musical Symbol Combining
(0x1d17b, 0x1d182,), # Musical Symbol Combining..Musical Symbol Combining
(0x1d185, 0x1d18b,), # Musical Symbol Combining..Musical Symbol Combining
(0x1d1aa, 0x1d1ad,), # Musical Symbol Combining..Musical Symbol Combining
(0x1d242, 0x1d244,), # Combining Greek Musical ..Combining Greek Musical
(0x1da00, 0x1da36,), # Signwriting Head Rim ..Signwriting Air Sucking
(0x1da3b, 0x1da6c,), # Signwriting Mouth Closed..Signwriting Excitement
(0x1da75, 0x1da75,), # Signwriting Upper Body T..Signwriting Upper Body T
(0x1da84, 0x1da84,), # Signwriting Location Hea..Signwriting Location Hea
(0x1da9b, 0x1da9f,), # Signwriting Fill Modifie..Signwriting Fill Modifie
(0x1daa1, 0x1daaf,), # Signwriting Rotation Mod..Signwriting Rotation Mod
(0x1e8d0, 0x1e8d6,), # Mende Kikakui Combining ..Mende Kikakui Combining
(0xe0100, 0xe01ef,), # Variation Selector-17 ..Variation Selector-256
),
'9.0.0': (
# Source: DerivedGeneralCategory-9.0.0.txt
# Date: 2016-06-01, 10:34:26 GMT
#
(0x00300, 0x0036f,), # Combining Grave Accent ..Combining Latin Small Le
(0x00483, 0x00489,), # Combining Cyrillic Titlo..Combining Cyrillic Milli
(0x00591, 0x005bd,), # Hebrew Accent Etnahta ..Hebrew Point Meteg
(0x005bf, 0x005bf,), # Hebrew Point Rafe ..Hebrew Point Rafe
(0x005c1, 0x005c2,), # Hebrew Point Shin Dot ..Hebrew Point Sin Dot
(0x005c4, 0x005c5,), # Hebrew Mark Upper Dot ..Hebrew Mark Lower Dot
(0x005c7, 0x005c7,), # Hebrew Point Qamats Qata..Hebrew Point Qamats Qata
(0x00610, 0x0061a,), # Arabic Sign Sallallahou ..Arabic Small Kasra
(0x0064b, 0x0065f,), # Arabic Fathatan ..Arabic Wavy Hamza Below
(0x00670, 0x00670,), # Arabic Letter Superscrip..Arabic Letter Superscrip
(0x006d6, 0x006dc,), # Arabic Small High Ligatu..Arabic Small High Seen
(0x006df, 0x006e4,), # Arabic Small High Rounde..Arabic Small High Madda
(0x006e7, 0x006e8,), # Arabic Small High Yeh ..Arabic Small High Noon
(0x006ea, 0x006ed,), # Arabic Empty Centre Low ..Arabic Small Low Meem
(0x00711, 0x00711,), # Syriac Letter Superscrip..Syriac Letter Superscrip
(0x00730, 0x0074a,), # Syriac Pthaha Above ..Syriac Barrekh
(0x007a6, 0x007b0,), # Thaana Abafili ..Thaana Sukun
(0x007eb, 0x007f3,), # Nko Combining Short High..Nko Combining Double Dot
(0x00816, 0x00819,), # Samaritan Mark In ..Samaritan Mark Dagesh
(0x0081b, 0x00823,), # Samaritan Mark Epentheti..Samaritan Vowel Sign A
(0x00825, 0x00827,), # Samaritan Vowel Sign Sho..Samaritan Vowel Sign U
(0x00829, 0x0082d,), # Samaritan Vowel Sign Lon..Samaritan Mark Nequdaa
(0x00859, 0x0085b,), # Mandaic Affrication Mark..Mandaic Gemination Mark
(0x008d4, 0x008e1,), # Arabic Small High Word A..Arabic Small High Sign S
(0x008e3, 0x00902,), # Arabic Turned Damma Belo..Devanagari Sign Anusvara
(0x0093a, 0x0093a,), # Devanagari Vowel Sign Oe..Devanagari Vowel Sign Oe
(0x0093c, 0x0093c,), # Devanagari Sign Nukta ..Devanagari Sign Nukta
(0x00941, 0x00948,), # Devanagari Vowel Sign U ..Devanagari Vowel Sign Ai
(0x0094d, 0x0094d,), # Devanagari Sign Virama ..Devanagari Sign Virama
(0x00951, 0x00957,), # Devanagari Stress Sign U..Devanagari Vowel Sign Uu
(0x00962, 0x00963,), # Devanagari Vowel Sign Vo..Devanagari Vowel Sign Vo
(0x00981, 0x00981,), # Bengali Sign Candrabindu..Bengali Sign Candrabindu
(0x009bc, 0x009bc,), # Bengali Sign Nukta ..Bengali Sign Nukta
(0x009c1, 0x009c4,), # Bengali Vowel Sign U ..Bengali Vowel Sign Vocal
(0x009cd, 0x009cd,), # Bengali Sign Virama ..Bengali Sign Virama
(0x009e2, 0x009e3,), # Bengali Vowel Sign Vocal..Bengali Vowel Sign Vocal
(0x00a01, 0x00a02,), # Gurmukhi Sign Adak Bindi..Gurmukhi Sign Bindi
(0x00a3c, 0x00a3c,), # Gurmukhi Sign Nukta ..Gurmukhi Sign Nukta
(0x00a41, 0x00a42,), # Gurmukhi Vowel Sign U ..Gurmukhi Vowel Sign Uu
(0x00a47, 0x00a48,), # Gurmukhi Vowel Sign Ee ..Gurmukhi Vowel Sign Ai
(0x00a4b, 0x00a4d,), # Gurmukhi Vowel Sign Oo ..Gurmukhi Sign Virama
(0x00a51, 0x00a51,), # Gurmukhi Sign Udaat ..Gurmukhi Sign Udaat
(0x00a70, 0x00a71,), # Gurmukhi Tippi ..Gurmukhi Addak
(0x00a75, 0x00a75,), # Gurmukhi Sign Yakash ..Gurmukhi Sign Yakash
(0x00a81, 0x00a82,), # Gujarati Sign Candrabind..Gujarati Sign Anusvara
(0x00abc, 0x00abc,), # Gujarati Sign Nukta ..Gujarati Sign Nukta
(0x00ac1, 0x00ac5,), # Gujarati Vowel Sign U ..Gujarati Vowel Sign Cand
(0x00ac7, 0x00ac8,), # Gujarati Vowel Sign E ..Gujarati Vowel Sign Ai
(0x00acd, 0x00acd,), # Gujarati Sign Virama ..Gujarati Sign Virama
(0x00ae2, 0x00ae3,), # Gujarati Vowel Sign Voca..Gujarati Vowel Sign Voca
(0x00b01, 0x00b01,), # Oriya Sign Candrabindu ..Oriya Sign Candrabindu
(0x00b3c, 0x00b3c,), # Oriya Sign Nukta ..Oriya Sign Nukta
(0x00b3f, 0x00b3f,), # Oriya Vowel Sign I ..Oriya Vowel Sign I
(0x00b41, 0x00b44,), # Oriya Vowel Sign U ..Oriya Vowel Sign Vocalic
(0x00b4d, 0x00b4d,), # Oriya Sign Virama ..Oriya Sign Virama
(0x00b56, 0x00b56,), # Oriya Ai Length Mark ..Oriya Ai Length Mark
(0x00b62, 0x00b63,), # Oriya Vowel Sign Vocalic..Oriya Vowel Sign Vocalic
(0x00b82, 0x00b82,), # Tamil Sign Anusvara ..Tamil Sign Anusvara
(0x00bc0, 0x00bc0,), # Tamil Vowel Sign Ii ..Tamil Vowel Sign Ii
(0x00bcd, 0x00bcd,), # Tamil Sign Virama ..Tamil Sign Virama
(0x00c00, 0x00c00,), # Telugu Sign Combining Ca..Telugu Sign Combining Ca
(0x00c3e, 0x00c40,), # Telugu Vowel Sign Aa ..Telugu Vowel Sign Ii
(0x00c46, 0x00c48,), # Telugu Vowel Sign E ..Telugu Vowel Sign Ai
(0x00c4a, 0x00c4d,), # Telugu Vowel Sign O ..Telugu Sign Virama
(0x00c55, 0x00c56,), # Telugu Length Mark ..Telugu Ai Length Mark
(0x00c62, 0x00c63,), # Telugu Vowel Sign Vocali..Telugu Vowel Sign Vocali
(0x00c81, 0x00c81,), # Kannada Sign Candrabindu..Kannada Sign Candrabindu
(0x00cbc, 0x00cbc,), # Kannada Sign Nukta ..Kannada Sign Nukta
(0x00cbf, 0x00cbf,), # Kannada Vowel Sign I ..Kannada Vowel Sign I
(0x00cc6, 0x00cc6,), # Kannada Vowel Sign E ..Kannada Vowel Sign E
(0x00ccc, 0x00ccd,), # Kannada Vowel Sign Au ..Kannada Sign Virama
(0x00ce2, 0x00ce3,), # Kannada Vowel Sign Vocal..Kannada Vowel Sign Vocal
(0x00d01, 0x00d01,), # Malayalam Sign Candrabin..Malayalam Sign Candrabin
(0x00d41, 0x00d44,), # Malayalam Vowel Sign U ..Malayalam Vowel Sign Voc
(0x00d4d, 0x00d4d,), # Malayalam Sign Virama ..Malayalam Sign Virama
(0x00d62, 0x00d63,), # Malayalam Vowel Sign Voc..Malayalam Vowel Sign Voc
(0x00dca, 0x00dca,), # Sinhala Sign Al-lakuna ..Sinhala Sign Al-lakuna
(0x00dd2, 0x00dd4,), # Sinhala Vowel Sign Ketti..Sinhala Vowel Sign Ketti
(0x00dd6, 0x00dd6,), # Sinhala Vowel Sign Diga ..Sinhala Vowel Sign Diga
(0x00e31, 0x00e31,), # Thai Character Mai Han-a..Thai Character Mai Han-a
(0x00e34, 0x00e3a,), # Thai Character Sara I ..Thai Character Phinthu
(0x00e47, 0x00e4e,), # Thai Character Maitaikhu..Thai Character Yamakkan
(0x00eb1, 0x00eb1,), # Lao Vowel Sign Mai Kan ..Lao Vowel Sign Mai Kan
(0x00eb4, 0x00eb9,), # Lao Vowel Sign I ..Lao Vowel Sign Uu
(0x00ebb, 0x00ebc,), # Lao Vowel Sign Mai Kon ..Lao Semivowel Sign Lo
(0x00ec8, 0x00ecd,), # Lao Tone Mai Ek ..Lao Niggahita
(0x00f18, 0x00f19,), # Tibetan Astrological Sig..Tibetan Astrological Sig
(0x00f35, 0x00f35,), # Tibetan Mark Ngas Bzung ..Tibetan Mark Ngas Bzung
(0x00f37, 0x00f37,), # Tibetan Mark Ngas Bzung ..Tibetan Mark Ngas Bzung
(0x00f39, 0x00f39,), # Tibetan Mark Tsa -phru ..Tibetan Mark Tsa -phru
(0x00f71, 0x00f7e,), # Tibetan Vowel Sign Aa ..Tibetan Sign Rjes Su Nga
(0x00f80, 0x00f84,), # Tibetan Vowel Sign Rever..Tibetan Mark Halanta
(0x00f86, 0x00f87,), # Tibetan Sign Lci Rtags ..Tibetan Sign Yang Rtags
(0x00f8d, 0x00f97,), # Tibetan Subjoined Sign L..Tibetan Subjoined Letter
(0x00f99, 0x00fbc,), # Tibetan Subjoined Letter..Tibetan Subjoined Letter
(0x00fc6, 0x00fc6,), # Tibetan Symbol Padma Gda..Tibetan Symbol Padma Gda
(0x0102d, 0x01030,), # Myanmar Vowel Sign I ..Myanmar Vowel Sign Uu
(0x01032, 0x01037,), # Myanmar Vowel Sign Ai ..Myanmar Sign Dot Below
(0x01039, 0x0103a,), # Myanmar Sign Virama ..Myanmar Sign Asat
(0x0103d, 0x0103e,), # Myanmar Consonant Sign M..Myanmar Consonant Sign M
(0x01058, 0x01059,), # Myanmar Vowel Sign Vocal..Myanmar Vowel Sign Vocal
(0x0105e, 0x01060,), # Myanmar Consonant Sign M..Myanmar Consonant Sign M
(0x01071, 0x01074,), # Myanmar Vowel Sign Geba ..Myanmar Vowel Sign Kayah
(0x01082, 0x01082,), # Myanmar Consonant Sign S..Myanmar Consonant Sign S
(0x01085, 0x01086,), # Myanmar Vowel Sign Shan ..Myanmar Vowel Sign Shan
(0x0108d, 0x0108d,), # Myanmar Sign Shan Counci..Myanmar Sign Shan Counci
(0x0109d, 0x0109d,), # Myanmar Vowel Sign Aiton..Myanmar Vowel Sign Aiton
(0x0135d, 0x0135f,), # Ethiopic Combining Gemin..Ethiopic Combining Gemin
(0x01712, 0x01714,), # Tagalog Vowel Sign I ..Tagalog Sign Virama
(0x01732, 0x01734,), # Hanunoo Vowel Sign I ..Hanunoo Sign Pamudpod
(0x01752, 0x01753,), # Buhid Vowel Sign I ..Buhid Vowel Sign U
(0x01772, 0x01773,), # Tagbanwa Vowel Sign I ..Tagbanwa Vowel Sign U
(0x017b4, 0x017b5,), # Khmer Vowel Inherent Aq ..Khmer Vowel Inherent Aa
(0x017b7, 0x017bd,), # Khmer Vowel Sign I ..Khmer Vowel Sign Ua
(0x017c6, 0x017c6,), # Khmer Sign Nikahit ..Khmer Sign Nikahit
(0x017c9, 0x017d3,), # Khmer Sign Muusikatoan ..Khmer Sign Bathamasat
(0x017dd, 0x017dd,), # Khmer Sign Atthacan ..Khmer Sign Atthacan
(0x0180b, 0x0180d,), # Mongolian Free Variation..Mongolian Free Variation
(0x01885, 0x01886,), # Mongolian Letter Ali Gal..Mongolian Letter Ali Gal
(0x018a9, 0x018a9,), # Mongolian Letter Ali Gal..Mongolian Letter Ali Gal
(0x01920, 0x01922,), # Limbu Vowel Sign A ..Limbu Vowel Sign U
(0x01927, 0x01928,), # Limbu Vowel Sign E ..Limbu Vowel Sign O
(0x01932, 0x01932,), # Limbu Small Letter Anusv..Limbu Small Letter Anusv
(0x01939, 0x0193b,), # Limbu Sign Mukphreng ..Limbu Sign Sa-i
(0x01a17, 0x01a18,), # Buginese Vowel Sign I ..Buginese Vowel Sign U
(0x01a1b, 0x01a1b,), # Buginese Vowel Sign Ae ..Buginese Vowel Sign Ae
(0x01a56, 0x01a56,), # Tai Tham Consonant Sign ..Tai Tham Consonant Sign
(0x01a58, 0x01a5e,), # Tai Tham Sign Mai Kang L..Tai Tham Consonant Sign
(0x01a60, 0x01a60,), # Tai Tham Sign Sakot ..Tai Tham Sign Sakot
(0x01a62, 0x01a62,), # Tai Tham Vowel Sign Mai ..Tai Tham Vowel Sign Mai
(0x01a65, 0x01a6c,), # Tai Tham Vowel Sign I ..Tai Tham Vowel Sign Oa B
(0x01a73, 0x01a7c,), # Tai Tham Vowel Sign Oa A..Tai Tham Sign Khuen-lue
(0x01a7f, 0x01a7f,), # Tai Tham Combining Crypt..Tai Tham Combining Crypt
(0x01ab0, 0x01abe,), # Combining Doubled Circum..Combining Parentheses Ov
(0x01b00, 0x01b03,), # Balinese Sign Ulu Ricem ..Balinese Sign Surang
(0x01b34, 0x01b34,), # Balinese Sign Rerekan ..Balinese Sign Rerekan
(0x01b36, 0x01b3a,), # Balinese Vowel Sign Ulu ..Balinese Vowel Sign Ra R
(0x01b3c, 0x01b3c,), # Balinese Vowel Sign La L..Balinese Vowel Sign La L
(0x01b42, 0x01b42,), # Balinese Vowel Sign Pepe..Balinese Vowel Sign Pepe
(0x01b6b, 0x01b73,), # Balinese Musical Symbol ..Balinese Musical Symbol
(0x01b80, 0x01b81,), # Sundanese Sign Panyecek ..Sundanese Sign Panglayar
(0x01ba2, 0x01ba5,), # Sundanese Consonant Sign..Sundanese Vowel Sign Pan
(0x01ba8, 0x01ba9,), # Sundanese Vowel Sign Pam..Sundanese Vowel Sign Pan
(0x01bab, 0x01bad,), # Sundanese Sign Virama ..Sundanese Consonant Sign
(0x01be6, 0x01be6,), # Batak Sign Tompi ..Batak Sign Tompi
(0x01be8, 0x01be9,), # Batak Vowel Sign Pakpak ..Batak Vowel Sign Ee
(0x01bed, 0x01bed,), # Batak Vowel Sign Karo O ..Batak Vowel Sign Karo O
(0x01bef, 0x01bf1,), # Batak Vowel Sign U For S..Batak Consonant Sign H
(0x01c2c, 0x01c33,), # Lepcha Vowel Sign E ..Lepcha Consonant Sign T
(0x01c36, 0x01c37,), # Lepcha Sign Ran ..Lepcha Sign Nukta
(0x01cd0, 0x01cd2,), # Vedic Tone Karshana ..Vedic Tone Prenkha
(0x01cd4, 0x01ce0,), # Vedic Sign Yajurvedic Mi..Vedic Tone Rigvedic Kash
(0x01ce2, 0x01ce8,), # Vedic Sign Visarga Svari..Vedic Sign Visarga Anuda
(0x01ced, 0x01ced,), # Vedic Sign Tiryak ..Vedic Sign Tiryak
(0x01cf4, 0x01cf4,), # Vedic Tone Candra Above ..Vedic Tone Candra Above
(0x01cf8, 0x01cf9,), # Vedic Tone Ring Above ..Vedic Tone Double Ring A
(0x01dc0, 0x01df5,), # Combining Dotted Grave A..Combining Up Tack Above
(0x01dfb, 0x01dff,), # Combining Deletion Mark ..Combining Right Arrowhea
(0x020d0, 0x020f0,), # Combining Left Harpoon A..Combining Asterisk Above
(0x02cef, 0x02cf1,), # Coptic Combining Ni Abov..Coptic Combining Spiritu
(0x02d7f, 0x02d7f,), # Tifinagh Consonant Joine..Tifinagh Consonant Joine
(0x02de0, 0x02dff,), # Combining Cyrillic Lette..Combining Cyrillic Lette
(0x0302a, 0x0302d,), # Ideographic Level Tone M..Ideographic Entering Ton
(0x03099, 0x0309a,), # Combining Katakana-hirag..Combining Katakana-hirag
(0x0a66f, 0x0a672,), # Combining Cyrillic Vzmet..Combining Cyrillic Thous
(0x0a674, 0x0a67d,), # Combining Cyrillic Lette..Combining Cyrillic Payer
(0x0a69e, 0x0a69f,), # Combining Cyrillic Lette..Combining Cyrillic Lette
(0x0a6f0, 0x0a6f1,), # Bamum Combining Mark Koq..Bamum Combining Mark Tuk
(0x0a802, 0x0a802,), # Syloti Nagri Sign Dvisva..Syloti Nagri Sign Dvisva
(0x0a806, 0x0a806,), # Syloti Nagri Sign Hasant..Syloti Nagri Sign Hasant
(0x0a80b, 0x0a80b,), # Syloti Nagri Sign Anusva..Syloti Nagri Sign Anusva
(0x0a825, 0x0a826,), # Syloti Nagri Vowel Sign ..Syloti Nagri Vowel Sign
(0x0a8c4, 0x0a8c5,), # Saurashtra Sign Virama ..Saurashtra Sign Candrabi
(0x0a8e0, 0x0a8f1,), # Combining Devanagari Dig..Combining Devanagari Sig
(0x0a926, 0x0a92d,), # Kayah Li Vowel Ue ..Kayah Li Tone Calya Plop
(0x0a947, 0x0a951,), # Rejang Vowel Sign I ..Rejang Consonant Sign R
(0x0a980, 0x0a982,), # Javanese Sign Panyangga ..Javanese Sign Layar
(0x0a9b3, 0x0a9b3,), # Javanese Sign Cecak Telu..Javanese Sign Cecak Telu
(0x0a9b6, 0x0a9b9,), # Javanese Vowel Sign Wulu..Javanese Vowel Sign Suku
(0x0a9bc, 0x0a9bc,), # Javanese Vowel Sign Pepe..Javanese Vowel Sign Pepe
(0x0a9e5, 0x0a9e5,), # Myanmar Sign Shan Saw ..Myanmar Sign Shan Saw
(0x0aa29, 0x0aa2e,), # Cham Vowel Sign Aa ..Cham Vowel Sign Oe
(0x0aa31, 0x0aa32,), # Cham Vowel Sign Au ..Cham Vowel Sign Ue
(0x0aa35, 0x0aa36,), # Cham Consonant Sign La ..Cham Consonant Sign Wa
(0x0aa43, 0x0aa43,), # Cham Consonant Sign Fina..Cham Consonant Sign Fina
(0x0aa4c, 0x0aa4c,), # Cham Consonant Sign Fina..Cham Consonant Sign Fina
(0x0aa7c, 0x0aa7c,), # Myanmar Sign Tai Laing T..Myanmar Sign Tai Laing T
(0x0aab0, 0x0aab0,), # Tai Viet Mai Kang ..Tai Viet Mai Kang
(0x0aab2, 0x0aab4,), # Tai Viet Vowel I ..Tai Viet Vowel U
(0x0aab7, 0x0aab8,), # Tai Viet Mai Khit ..Tai Viet Vowel Ia
(0x0aabe, 0x0aabf,), # Tai Viet Vowel Am ..Tai Viet Tone Mai Ek
(0x0aac1, 0x0aac1,), # Tai Viet Tone Mai Tho ..Tai Viet Tone Mai Tho
(0x0aaec, 0x0aaed,), # Meetei Mayek Vowel Sign ..Meetei Mayek Vowel Sign
(0x0aaf6, 0x0aaf6,), # Meetei Mayek Virama ..Meetei Mayek Virama
(0x0abe5, 0x0abe5,), # Meetei Mayek Vowel Sign ..Meetei Mayek Vowel Sign
(0x0abe8, 0x0abe8,), # Meetei Mayek Vowel Sign ..Meetei Mayek Vowel Sign
(0x0abed, 0x0abed,), # Meetei Mayek Apun Iyek ..Meetei Mayek Apun Iyek
(0x0fb1e, 0x0fb1e,), # Hebrew Point Judeo-spani..Hebrew Point Judeo-spani
(0x0fe00, 0x0fe0f,), # Variation Selector-1 ..Variation Selector-16
(0x0fe20, 0x0fe2f,), # Combining Ligature Left ..Combining Cyrillic Titlo
(0x101fd, 0x101fd,), # Phaistos Disc Sign Combi..Phaistos Disc Sign Combi
(0x102e0, 0x102e0,), # Coptic Epact Thousands M..Coptic Epact Thousands M
(0x10376, 0x1037a,), # Combining Old Permic Let..Combining Old Permic Let
(0x10a01, 0x10a03,), # Kharoshthi Vowel Sign I ..Kharoshthi Vowel Sign Vo
(0x10a05, 0x10a06,), # Kharoshthi Vowel Sign E ..Kharoshthi Vowel Sign O
(0x10a0c, 0x10a0f,), # Kharoshthi Vowel Length ..Kharoshthi Sign Visarga
(0x10a38, 0x10a3a,), # Kharoshthi Sign Bar Abov..Kharoshthi Sign Dot Belo
(0x10a3f, 0x10a3f,), # Kharoshthi Virama ..Kharoshthi Virama
(0x10ae5, 0x10ae6,), # Manichaean Abbreviation ..Manichaean Abbreviation
(0x11001, 0x11001,), # Brahmi Sign Anusvara ..Brahmi Sign Anusvara
(0x11038, 0x11046,), # Brahmi Vowel Sign Aa ..Brahmi Virama
(0x1107f, 0x11081,), # Brahmi Number Joiner ..Kaithi Sign Anusvara
(0x110b3, 0x110b6,), # Kaithi Vowel Sign U ..Kaithi Vowel Sign Ai
(0x110b9, 0x110ba,), # Kaithi Sign Virama ..Kaithi Sign Nukta
(0x11100, 0x11102,), # Chakma Sign Candrabindu ..Chakma Sign Visarga
(0x11127, 0x1112b,), # Chakma Vowel Sign A ..Chakma Vowel Sign Uu
(0x1112d, 0x11134,), # Chakma Vowel Sign Ai ..Chakma Maayyaa
(0x11173, 0x11173,), # Mahajani Sign Nukta ..Mahajani Sign Nukta
(0x11180, 0x11181,), # Sharada Sign Candrabindu..Sharada Sign Anusvara
(0x111b6, 0x111be,), # Sharada Vowel Sign U ..Sharada Vowel Sign O
(0x111ca, 0x111cc,), # Sharada Sign Nukta ..Sharada Extra Short Vowe
(0x1122f, 0x11231,), # Khojki Vowel Sign U ..Khojki Vowel Sign Ai
(0x11234, 0x11234,), # Khojki Sign Anusvara ..Khojki Sign Anusvara
(0x11236, 0x11237,), # Khojki Sign Nukta ..Khojki Sign Shadda
(0x1123e, 0x1123e,), # Khojki Sign Sukun ..Khojki Sign Sukun
(0x112df, 0x112df,), # Khudawadi Sign Anusvara ..Khudawadi Sign Anusvara
(0x112e3, 0x112ea,), # Khudawadi Vowel Sign U ..Khudawadi Sign Virama
(0x11300, 0x11301,), # Grantha Sign Combining A..Grantha Sign Candrabindu
(0x1133c, 0x1133c,), # Grantha Sign Nukta ..Grantha Sign Nukta
(0x11340, 0x11340,), # Grantha Vowel Sign Ii ..Grantha Vowel Sign Ii
(0x11366, 0x1136c,), # Combining Grantha Digit ..Combining Grantha Digit
(0x11370, 0x11374,), # Combining Grantha Letter..Combining Grantha Letter
(0x11438, 0x1143f,), # Newa Vowel Sign U ..Newa Vowel Sign Ai
(0x11442, 0x11444,), # Newa Sign Virama ..Newa Sign Anusvara
(0x11446, 0x11446,), # Newa Sign Nukta ..Newa Sign Nukta
(0x114b3, 0x114b8,), # Tirhuta Vowel Sign U ..Tirhuta Vowel Sign Vocal
(0x114ba, 0x114ba,), # Tirhuta Vowel Sign Short..Tirhuta Vowel Sign Short
(0x114bf, 0x114c0,), # Tirhuta Sign Candrabindu..Tirhuta Sign Anusvara
(0x114c2, 0x114c3,), # Tirhuta Sign Virama ..Tirhuta Sign Nukta
(0x115b2, 0x115b5,), # Siddham Vowel Sign U ..Siddham Vowel Sign Vocal
(0x115bc, 0x115bd,), # Siddham Sign Candrabindu..Siddham Sign Anusvara
(0x115bf, 0x115c0,), # Siddham Sign Virama ..Siddham Sign Nukta
(0x115dc, 0x115dd,), # Siddham Vowel Sign Alter..Siddham Vowel Sign Alter
(0x11633, 0x1163a,), # Modi Vowel Sign U ..Modi Vowel Sign Ai
(0x1163d, 0x1163d,), # Modi Sign Anusvara ..Modi Sign Anusvara
(0x1163f, 0x11640,), # Modi Sign Virama ..Modi Sign Ardhacandra
(0x116ab, 0x116ab,), # Takri Sign Anusvara ..Takri Sign Anusvara
(0x116ad, 0x116ad,), # Takri Vowel Sign Aa ..Takri Vowel Sign Aa
(0x116b0, 0x116b5,), # Takri Vowel Sign U ..Takri Vowel Sign Au
(0x116b7, 0x116b7,), # Takri Sign Nukta ..Takri Sign Nukta
(0x1171d, 0x1171f,), # Ahom Consonant Sign Medi..Ahom Consonant Sign Medi
(0x11722, 0x11725,), # Ahom Vowel Sign I ..Ahom Vowel Sign Uu
(0x11727, 0x1172b,), # Ahom Vowel Sign Aw ..Ahom Sign Killer
(0x11c30, 0x11c36,), # Bhaiksuki Vowel Sign I ..Bhaiksuki Vowel Sign Voc
(0x11c38, 0x11c3d,), # Bhaiksuki Vowel Sign E ..Bhaiksuki Sign Anusvara
(0x11c3f, 0x11c3f,), # Bhaiksuki Sign Virama ..Bhaiksuki Sign Virama
(0x11c92, 0x11ca7,), # Marchen Subjoined Letter..Marchen Subjoined Letter
(0x11caa, 0x11cb0,), # Marchen Subjoined Letter..Marchen Vowel Sign Aa
(0x11cb2, 0x11cb3,), # Marchen Vowel Sign U ..Marchen Vowel Sign E
(0x11cb5, 0x11cb6,), # Marchen Sign Anusvara ..Marchen Sign Candrabindu
(0x16af0, 0x16af4,), # Bassa Vah Combining High..Bassa Vah Combining High
(0x16b30, 0x16b36,), # Pahawh Hmong Mark Cim Tu..Pahawh Hmong Mark Cim Ta
(0x16f8f, 0x16f92,), # Miao Tone Right ..Miao Tone Below
(0x1bc9d, 0x1bc9e,), # Duployan Thick Letter Se..Duployan Double Mark
(0x1d167, 0x1d169,), # Musical Symbol Combining..Musical Symbol Combining
(0x1d17b, 0x1d182,), # Musical Symbol Combining..Musical Symbol Combining
(0x1d185, 0x1d18b,), # Musical Symbol Combining..Musical Symbol Combining
(0x1d1aa, 0x1d1ad,), # Musical Symbol Combining..Musical Symbol Combining
(0x1d242, 0x1d244,), # Combining Greek Musical ..Combining Greek Musical
(0x1da00, 0x1da36,), # Signwriting Head Rim ..Signwriting Air Sucking
(0x1da3b, 0x1da6c,), # Signwriting Mouth Closed..Signwriting Excitement
(0x1da75, 0x1da75,), # Signwriting Upper Body T..Signwriting Upper Body T
(0x1da84, 0x1da84,), # Signwriting Location Hea..Signwriting Location Hea
(0x1da9b, 0x1da9f,), # Signwriting Fill Modifie..Signwriting Fill Modifie
(0x1daa1, 0x1daaf,), # Signwriting Rotation Mod..Signwriting Rotation Mod
(0x1e000, 0x1e006,), # Combining Glagolitic Let..Combining Glagolitic Let
(0x1e008, 0x1e018,), # Combining Glagolitic Let..Combining Glagolitic Let
(0x1e01b, 0x1e021,), # Combining Glagolitic Let..Combining Glagolitic Let
(0x1e023, 0x1e024,), # Combining Glagolitic Let..Combining Glagolitic Let
(0x1e026, 0x1e02a,), # Combining Glagolitic Let..Combining Glagolitic Let
(0x1e8d0, 0x1e8d6,), # Mende Kikakui Combining ..Mende Kikakui Combining
(0x1e944, 0x1e94a,), # Adlam Alif Lengthener ..Adlam Nukta
(0xe0100, 0xe01ef,), # Variation Selector-17 ..Variation Selector-256
),
'10.0.0': (
# Source: DerivedGeneralCategory-10.0.0.txt
# Date: 2017-03-08, 08:41:49 GMT
#
(0x00300, 0x0036f,), # Combining Grave Accent ..Combining Latin Small Le
(0x00483, 0x00489,), # Combining Cyrillic Titlo..Combining Cyrillic Milli
(0x00591, 0x005bd,), # Hebrew Accent Etnahta ..Hebrew Point Meteg
(0x005bf, 0x005bf,), # Hebrew Point Rafe ..Hebrew Point Rafe
(0x005c1, 0x005c2,), # Hebrew Point Shin Dot ..Hebrew Point Sin Dot
(0x005c4, 0x005c5,), # Hebrew Mark Upper Dot ..Hebrew Mark Lower Dot
(0x005c7, 0x005c7,), # Hebrew Point Qamats Qata..Hebrew Point Qamats Qata
(0x00610, 0x0061a,), # Arabic Sign Sallallahou ..Arabic Small Kasra
(0x0064b, 0x0065f,), # Arabic Fathatan ..Arabic Wavy Hamza Below
(0x00670, 0x00670,), # Arabic Letter Superscrip..Arabic Letter Superscrip
(0x006d6, 0x006dc,), # Arabic Small High Ligatu..Arabic Small High Seen
(0x006df, 0x006e4,), # Arabic Small High Rounde..Arabic Small High Madda
(0x006e7, 0x006e8,), # Arabic Small High Yeh ..Arabic Small High Noon
(0x006ea, 0x006ed,), # Arabic Empty Centre Low ..Arabic Small Low Meem
(0x00711, 0x00711,), # Syriac Letter Superscrip..Syriac Letter Superscrip
(0x00730, 0x0074a,), # Syriac Pthaha Above ..Syriac Barrekh
(0x007a6, 0x007b0,), # Thaana Abafili ..Thaana Sukun
(0x007eb, 0x007f3,), # Nko Combining Short High..Nko Combining Double Dot
(0x00816, 0x00819,), # Samaritan Mark In ..Samaritan Mark Dagesh
(0x0081b, 0x00823,), # Samaritan Mark Epentheti..Samaritan Vowel Sign A
(0x00825, 0x00827,), # Samaritan Vowel Sign Sho..Samaritan Vowel Sign U
(0x00829, 0x0082d,), # Samaritan Vowel Sign Lon..Samaritan Mark Nequdaa
(0x00859, 0x0085b,), # Mandaic Affrication Mark..Mandaic Gemination Mark
(0x008d4, 0x008e1,), # Arabic Small High Word A..Arabic Small High Sign S
(0x008e3, 0x00902,), # Arabic Turned Damma Belo..Devanagari Sign Anusvara
(0x0093a, 0x0093a,), # Devanagari Vowel Sign Oe..Devanagari Vowel Sign Oe
(0x0093c, 0x0093c,), # Devanagari Sign Nukta ..Devanagari Sign Nukta
(0x00941, 0x00948,), # Devanagari Vowel Sign U ..Devanagari Vowel Sign Ai
(0x0094d, 0x0094d,), # Devanagari Sign Virama ..Devanagari Sign Virama
(0x00951, 0x00957,), # Devanagari Stress Sign U..Devanagari Vowel Sign Uu
(0x00962, 0x00963,), # Devanagari Vowel Sign Vo..Devanagari Vowel Sign Vo
(0x00981, 0x00981,), # Bengali Sign Candrabindu..Bengali Sign Candrabindu
(0x009bc, 0x009bc,), # Bengali Sign Nukta ..Bengali Sign Nukta
(0x009c1, 0x009c4,), # Bengali Vowel Sign U ..Bengali Vowel Sign Vocal
(0x009cd, 0x009cd,), # Bengali Sign Virama ..Bengali Sign Virama
(0x009e2, 0x009e3,), # Bengali Vowel Sign Vocal..Bengali Vowel Sign Vocal
(0x00a01, 0x00a02,), # Gurmukhi Sign Adak Bindi..Gurmukhi Sign Bindi
(0x00a3c, 0x00a3c,), # Gurmukhi Sign Nukta ..Gurmukhi Sign Nukta
(0x00a41, 0x00a42,), # Gurmukhi Vowel Sign U ..Gurmukhi Vowel Sign Uu
(0x00a47, 0x00a48,), # Gurmukhi Vowel Sign Ee ..Gurmukhi Vowel Sign Ai
(0x00a4b, 0x00a4d,), # Gurmukhi Vowel Sign Oo ..Gurmukhi Sign Virama
(0x00a51, 0x00a51,), # Gurmukhi Sign Udaat ..Gurmukhi Sign Udaat
(0x00a70, 0x00a71,), # Gurmukhi Tippi ..Gurmukhi Addak
(0x00a75, 0x00a75,), # Gurmukhi Sign Yakash ..Gurmukhi Sign Yakash
(0x00a81, 0x00a82,), # Gujarati Sign Candrabind..Gujarati Sign Anusvara
(0x00abc, 0x00abc,), # Gujarati Sign Nukta ..Gujarati Sign Nukta
(0x00ac1, 0x00ac5,), # Gujarati Vowel Sign U ..Gujarati Vowel Sign Cand
(0x00ac7, 0x00ac8,), # Gujarati Vowel Sign E ..Gujarati Vowel Sign Ai
(0x00acd, 0x00acd,), # Gujarati Sign Virama ..Gujarati Sign Virama
(0x00ae2, 0x00ae3,), # Gujarati Vowel Sign Voca..Gujarati Vowel Sign Voca
(0x00afa, 0x00aff,), # Gujarati Sign Sukun ..Gujarati Sign Two-circle
(0x00b01, 0x00b01,), # Oriya Sign Candrabindu ..Oriya Sign Candrabindu
(0x00b3c, 0x00b3c,), # Oriya Sign Nukta ..Oriya Sign Nukta
(0x00b3f, 0x00b3f,), # Oriya Vowel Sign I ..Oriya Vowel Sign I
(0x00b41, 0x00b44,), # Oriya Vowel Sign U ..Oriya Vowel Sign Vocalic
(0x00b4d, 0x00b4d,), # Oriya Sign Virama ..Oriya Sign Virama
(0x00b56, 0x00b56,), # Oriya Ai Length Mark ..Oriya Ai Length Mark
(0x00b62, 0x00b63,), # Oriya Vowel Sign Vocalic..Oriya Vowel Sign Vocalic
(0x00b82, 0x00b82,), # Tamil Sign Anusvara ..Tamil Sign Anusvara
(0x00bc0, 0x00bc0,), # Tamil Vowel Sign Ii ..Tamil Vowel Sign Ii
(0x00bcd, 0x00bcd,), # Tamil Sign Virama ..Tamil Sign Virama
(0x00c00, 0x00c00,), # Telugu Sign Combining Ca..Telugu Sign Combining Ca
(0x00c3e, 0x00c40,), # Telugu Vowel Sign Aa ..Telugu Vowel Sign Ii
(0x00c46, 0x00c48,), # Telugu Vowel Sign E ..Telugu Vowel Sign Ai
(0x00c4a, 0x00c4d,), # Telugu Vowel Sign O ..Telugu Sign Virama
(0x00c55, 0x00c56,), # Telugu Length Mark ..Telugu Ai Length Mark
(0x00c62, 0x00c63,), # Telugu Vowel Sign Vocali..Telugu Vowel Sign Vocali
(0x00c81, 0x00c81,), # Kannada Sign Candrabindu..Kannada Sign Candrabindu
(0x00cbc, 0x00cbc,), # Kannada Sign Nukta ..Kannada Sign Nukta
(0x00cbf, 0x00cbf,), # Kannada Vowel Sign I ..Kannada Vowel Sign I
(0x00cc6, 0x00cc6,), # Kannada Vowel Sign E ..Kannada Vowel Sign E
(0x00ccc, 0x00ccd,), # Kannada Vowel Sign Au ..Kannada Sign Virama
(0x00ce2, 0x00ce3,), # Kannada Vowel Sign Vocal..Kannada Vowel Sign Vocal
(0x00d00, 0x00d01,), # Malayalam Sign Combining..Malayalam Sign Candrabin
(0x00d3b, 0x00d3c,), # Malayalam Sign Vertical ..Malayalam Sign Circular
(0x00d41, 0x00d44,), # Malayalam Vowel Sign U ..Malayalam Vowel Sign Voc
(0x00d4d, 0x00d4d,), # Malayalam Sign Virama ..Malayalam Sign Virama
(0x00d62, 0x00d63,), # Malayalam Vowel Sign Voc..Malayalam Vowel Sign Voc
(0x00dca, 0x00dca,), # Sinhala Sign Al-lakuna ..Sinhala Sign Al-lakuna
(0x00dd2, 0x00dd4,), # Sinhala Vowel Sign Ketti..Sinhala Vowel Sign Ketti
(0x00dd6, 0x00dd6,), # Sinhala Vowel Sign Diga ..Sinhala Vowel Sign Diga
(0x00e31, 0x00e31,), # Thai Character Mai Han-a..Thai Character Mai Han-a
(0x00e34, 0x00e3a,), # Thai Character Sara I ..Thai Character Phinthu
(0x00e47, 0x00e4e,), # Thai Character Maitaikhu..Thai Character Yamakkan
(0x00eb1, 0x00eb1,), # Lao Vowel Sign Mai Kan ..Lao Vowel Sign Mai Kan
(0x00eb4, 0x00eb9,), # Lao Vowel Sign I ..Lao Vowel Sign Uu
(0x00ebb, 0x00ebc,), # Lao Vowel Sign Mai Kon ..Lao Semivowel Sign Lo
(0x00ec8, 0x00ecd,), # Lao Tone Mai Ek ..Lao Niggahita
(0x00f18, 0x00f19,), # Tibetan Astrological Sig..Tibetan Astrological Sig
(0x00f35, 0x00f35,), # Tibetan Mark Ngas Bzung ..Tibetan Mark Ngas Bzung
(0x00f37, 0x00f37,), # Tibetan Mark Ngas Bzung ..Tibetan Mark Ngas Bzung
(0x00f39, 0x00f39,), # Tibetan Mark Tsa -phru ..Tibetan Mark Tsa -phru
(0x00f71, 0x00f7e,), # Tibetan Vowel Sign Aa ..Tibetan Sign Rjes Su Nga
(0x00f80, 0x00f84,), # Tibetan Vowel Sign Rever..Tibetan Mark Halanta
(0x00f86, 0x00f87,), # Tibetan Sign Lci Rtags ..Tibetan Sign Yang Rtags
(0x00f8d, 0x00f97,), # Tibetan Subjoined Sign L..Tibetan Subjoined Letter
(0x00f99, 0x00fbc,), # Tibetan Subjoined Letter..Tibetan Subjoined Letter
(0x00fc6, 0x00fc6,), # Tibetan Symbol Padma Gda..Tibetan Symbol Padma Gda
(0x0102d, 0x01030,), # Myanmar Vowel Sign I ..Myanmar Vowel Sign Uu
(0x01032, 0x01037,), # Myanmar Vowel Sign Ai ..Myanmar Sign Dot Below
(0x01039, 0x0103a,), # Myanmar Sign Virama ..Myanmar Sign Asat
(0x0103d, 0x0103e,), # Myanmar Consonant Sign M..Myanmar Consonant Sign M
(0x01058, 0x01059,), # Myanmar Vowel Sign Vocal..Myanmar Vowel Sign Vocal
(0x0105e, 0x01060,), # Myanmar Consonant Sign M..Myanmar Consonant Sign M
(0x01071, 0x01074,), # Myanmar Vowel Sign Geba ..Myanmar Vowel Sign Kayah
(0x01082, 0x01082,), # Myanmar Consonant Sign S..Myanmar Consonant Sign S
(0x01085, 0x01086,), # Myanmar Vowel Sign Shan ..Myanmar Vowel Sign Shan
(0x0108d, 0x0108d,), # Myanmar Sign Shan Counci..Myanmar Sign Shan Counci
(0x0109d, 0x0109d,), # Myanmar Vowel Sign Aiton..Myanmar Vowel Sign Aiton
(0x0135d, 0x0135f,), # Ethiopic Combining Gemin..Ethiopic Combining Gemin
(0x01712, 0x01714,), # Tagalog Vowel Sign I ..Tagalog Sign Virama
(0x01732, 0x01734,), # Hanunoo Vowel Sign I ..Hanunoo Sign Pamudpod
(0x01752, 0x01753,), # Buhid Vowel Sign I ..Buhid Vowel Sign U
(0x01772, 0x01773,), # Tagbanwa Vowel Sign I ..Tagbanwa Vowel Sign U
(0x017b4, 0x017b5,), # Khmer Vowel Inherent Aq ..Khmer Vowel Inherent Aa
(0x017b7, 0x017bd,), # Khmer Vowel Sign I ..Khmer Vowel Sign Ua
(0x017c6, 0x017c6,), # Khmer Sign Nikahit ..Khmer Sign Nikahit
(0x017c9, 0x017d3,), # Khmer Sign Muusikatoan ..Khmer Sign Bathamasat
(0x017dd, 0x017dd,), # Khmer Sign Atthacan ..Khmer Sign Atthacan
(0x0180b, 0x0180d,), # Mongolian Free Variation..Mongolian Free Variation
(0x01885, 0x01886,), # Mongolian Letter Ali Gal..Mongolian Letter Ali Gal
(0x018a9, 0x018a9,), # Mongolian Letter Ali Gal..Mongolian Letter Ali Gal
(0x01920, 0x01922,), # Limbu Vowel Sign A ..Limbu Vowel Sign U
(0x01927, 0x01928,), # Limbu Vowel Sign E ..Limbu Vowel Sign O
(0x01932, 0x01932,), # Limbu Small Letter Anusv..Limbu Small Letter Anusv
(0x01939, 0x0193b,), # Limbu Sign Mukphreng ..Limbu Sign Sa-i
(0x01a17, 0x01a18,), # Buginese Vowel Sign I ..Buginese Vowel Sign U
(0x01a1b, 0x01a1b,), # Buginese Vowel Sign Ae ..Buginese Vowel Sign Ae
(0x01a56, 0x01a56,), # Tai Tham Consonant Sign ..Tai Tham Consonant Sign
(0x01a58, 0x01a5e,), # Tai Tham Sign Mai Kang L..Tai Tham Consonant Sign
(0x01a60, 0x01a60,), # Tai Tham Sign Sakot ..Tai Tham Sign Sakot
(0x01a62, 0x01a62,), # Tai Tham Vowel Sign Mai ..Tai Tham Vowel Sign Mai
(0x01a65, 0x01a6c,), # Tai Tham Vowel Sign I ..Tai Tham Vowel Sign Oa B
(0x01a73, 0x01a7c,), # Tai Tham Vowel Sign Oa A..Tai Tham Sign Khuen-lue
(0x01a7f, 0x01a7f,), # Tai Tham Combining Crypt..Tai Tham Combining Crypt
(0x01ab0, 0x01abe,), # Combining Doubled Circum..Combining Parentheses Ov
(0x01b00, 0x01b03,), # Balinese Sign Ulu Ricem ..Balinese Sign Surang
(0x01b34, 0x01b34,), # Balinese Sign Rerekan ..Balinese Sign Rerekan
(0x01b36, 0x01b3a,), # Balinese Vowel Sign Ulu ..Balinese Vowel Sign Ra R
(0x01b3c, 0x01b3c,), # Balinese Vowel Sign La L..Balinese Vowel Sign La L
(0x01b42, 0x01b42,), # Balinese Vowel Sign Pepe..Balinese Vowel Sign Pepe
(0x01b6b, 0x01b73,), # Balinese Musical Symbol ..Balinese Musical Symbol
(0x01b80, 0x01b81,), # Sundanese Sign Panyecek ..Sundanese Sign Panglayar
(0x01ba2, 0x01ba5,), # Sundanese Consonant Sign..Sundanese Vowel Sign Pan
(0x01ba8, 0x01ba9,), # Sundanese Vowel Sign Pam..Sundanese Vowel Sign Pan
(0x01bab, 0x01bad,), # Sundanese Sign Virama ..Sundanese Consonant Sign
(0x01be6, 0x01be6,), # Batak Sign Tompi ..Batak Sign Tompi
(0x01be8, 0x01be9,), # Batak Vowel Sign Pakpak ..Batak Vowel Sign Ee
(0x01bed, 0x01bed,), # Batak Vowel Sign Karo O ..Batak Vowel Sign Karo O
(0x01bef, 0x01bf1,), # Batak Vowel Sign U For S..Batak Consonant Sign H
(0x01c2c, 0x01c33,), # Lepcha Vowel Sign E ..Lepcha Consonant Sign T
(0x01c36, 0x01c37,), # Lepcha Sign Ran ..Lepcha Sign Nukta
(0x01cd0, 0x01cd2,), # Vedic Tone Karshana ..Vedic Tone Prenkha
(0x01cd4, 0x01ce0,), # Vedic Sign Yajurvedic Mi..Vedic Tone Rigvedic Kash
(0x01ce2, 0x01ce8,), # Vedic Sign Visarga Svari..Vedic Sign Visarga Anuda
(0x01ced, 0x01ced,), # Vedic Sign Tiryak ..Vedic Sign Tiryak
(0x01cf4, 0x01cf4,), # Vedic Tone Candra Above ..Vedic Tone Candra Above
(0x01cf8, 0x01cf9,), # Vedic Tone Ring Above ..Vedic Tone Double Ring A
(0x01dc0, 0x01df9,), # Combining Dotted Grave A..Combining Wide Inverted
(0x01dfb, 0x01dff,), # Combining Deletion Mark ..Combining Right Arrowhea
(0x020d0, 0x020f0,), # Combining Left Harpoon A..Combining Asterisk Above
(0x02cef, 0x02cf1,), # Coptic Combining Ni Abov..Coptic Combining Spiritu
(0x02d7f, 0x02d7f,), # Tifinagh Consonant Joine..Tifinagh Consonant Joine
(0x02de0, 0x02dff,), # Combining Cyrillic Lette..Combining Cyrillic Lette
(0x0302a, 0x0302d,), # Ideographic Level Tone M..Ideographic Entering Ton
(0x03099, 0x0309a,), # Combining Katakana-hirag..Combining Katakana-hirag
(0x0a66f, 0x0a672,), # Combining Cyrillic Vzmet..Combining Cyrillic Thous
(0x0a674, 0x0a67d,), # Combining Cyrillic Lette..Combining Cyrillic Payer
(0x0a69e, 0x0a69f,), # Combining Cyrillic Lette..Combining Cyrillic Lette
(0x0a6f0, 0x0a6f1,), # Bamum Combining Mark Koq..Bamum Combining Mark Tuk
(0x0a802, 0x0a802,), # Syloti Nagri Sign Dvisva..Syloti Nagri Sign Dvisva
(0x0a806, 0x0a806,), # Syloti Nagri Sign Hasant..Syloti Nagri Sign Hasant
(0x0a80b, 0x0a80b,), # Syloti Nagri Sign Anusva..Syloti Nagri Sign Anusva
(0x0a825, 0x0a826,), # Syloti Nagri Vowel Sign ..Syloti Nagri Vowel Sign
(0x0a8c4, 0x0a8c5,), # Saurashtra Sign Virama ..Saurashtra Sign Candrabi
(0x0a8e0, 0x0a8f1,), # Combining Devanagari Dig..Combining Devanagari Sig
(0x0a926, 0x0a92d,), # Kayah Li Vowel Ue ..Kayah Li Tone Calya Plop
(0x0a947, 0x0a951,), # Rejang Vowel Sign I ..Rejang Consonant Sign R
(0x0a980, 0x0a982,), # Javanese Sign Panyangga ..Javanese Sign Layar
(0x0a9b3, 0x0a9b3,), # Javanese Sign Cecak Telu..Javanese Sign Cecak Telu
(0x0a9b6, 0x0a9b9,), # Javanese Vowel Sign Wulu..Javanese Vowel Sign Suku
(0x0a9bc, 0x0a9bc,), # Javanese Vowel Sign Pepe..Javanese Vowel Sign Pepe
(0x0a9e5, 0x0a9e5,), # Myanmar Sign Shan Saw ..Myanmar Sign Shan Saw
(0x0aa29, 0x0aa2e,), # Cham Vowel Sign Aa ..Cham Vowel Sign Oe
(0x0aa31, 0x0aa32,), # Cham Vowel Sign Au ..Cham Vowel Sign Ue
(0x0aa35, 0x0aa36,), # Cham Consonant Sign La ..Cham Consonant Sign Wa
(0x0aa43, 0x0aa43,), # Cham Consonant Sign Fina..Cham Consonant Sign Fina
(0x0aa4c, 0x0aa4c,), # Cham Consonant Sign Fina..Cham Consonant Sign Fina
(0x0aa7c, 0x0aa7c,), # Myanmar Sign Tai Laing T..Myanmar Sign Tai Laing T
(0x0aab0, 0x0aab0,), # Tai Viet Mai Kang ..Tai Viet Mai Kang
(0x0aab2, 0x0aab4,), # Tai Viet Vowel I ..Tai Viet Vowel U
(0x0aab7, 0x0aab8,), # Tai Viet Mai Khit ..Tai Viet Vowel Ia
(0x0aabe, 0x0aabf,), # Tai Viet Vowel Am ..Tai Viet Tone Mai Ek
(0x0aac1, 0x0aac1,), # Tai Viet Tone Mai Tho ..Tai Viet Tone Mai Tho
(0x0aaec, 0x0aaed,), # Meetei Mayek Vowel Sign ..Meetei Mayek Vowel Sign
(0x0aaf6, 0x0aaf6,), # Meetei Mayek Virama ..Meetei Mayek Virama
(0x0abe5, 0x0abe5,), # Meetei Mayek Vowel Sign ..Meetei Mayek Vowel Sign
(0x0abe8, 0x0abe8,), # Meetei Mayek Vowel Sign ..Meetei Mayek Vowel Sign
(0x0abed, 0x0abed,), # Meetei Mayek Apun Iyek ..Meetei Mayek Apun Iyek
(0x0fb1e, 0x0fb1e,), # Hebrew Point Judeo-spani..Hebrew Point Judeo-spani
(0x0fe00, 0x0fe0f,), # Variation Selector-1 ..Variation Selector-16
(0x0fe20, 0x0fe2f,), # Combining Ligature Left ..Combining Cyrillic Titlo
(0x101fd, 0x101fd,), # Phaistos Disc Sign Combi..Phaistos Disc Sign Combi
(0x102e0, 0x102e0,), # Coptic Epact Thousands M..Coptic Epact Thousands M
(0x10376, 0x1037a,), # Combining Old Permic Let..Combining Old Permic Let
(0x10a01, 0x10a03,), # Kharoshthi Vowel Sign I ..Kharoshthi Vowel Sign Vo
(0x10a05, 0x10a06,), # Kharoshthi Vowel Sign E ..Kharoshthi Vowel Sign O
(0x10a0c, 0x10a0f,), # Kharoshthi Vowel Length ..Kharoshthi Sign Visarga
(0x10a38, 0x10a3a,), # Kharoshthi Sign Bar Abov..Kharoshthi Sign Dot Belo
(0x10a3f, 0x10a3f,), # Kharoshthi Virama ..Kharoshthi Virama
(0x10ae5, 0x10ae6,), # Manichaean Abbreviation ..Manichaean Abbreviation
(0x11001, 0x11001,), # Brahmi Sign Anusvara ..Brahmi Sign Anusvara
(0x11038, 0x11046,), # Brahmi Vowel Sign Aa ..Brahmi Virama
(0x1107f, 0x11081,), # Brahmi Number Joiner ..Kaithi Sign Anusvara
(0x110b3, 0x110b6,), # Kaithi Vowel Sign U ..Kaithi Vowel Sign Ai
(0x110b9, 0x110ba,), # Kaithi Sign Virama ..Kaithi Sign Nukta
(0x11100, 0x11102,), # Chakma Sign Candrabindu ..Chakma Sign Visarga
(0x11127, 0x1112b,), # Chakma Vowel Sign A ..Chakma Vowel Sign Uu
(0x1112d, 0x11134,), # Chakma Vowel Sign Ai ..Chakma Maayyaa
(0x11173, 0x11173,), # Mahajani Sign Nukta ..Mahajani Sign Nukta
(0x11180, 0x11181,), # Sharada Sign Candrabindu..Sharada Sign Anusvara
(0x111b6, 0x111be,), # Sharada Vowel Sign U ..Sharada Vowel Sign O
(0x111ca, 0x111cc,), # Sharada Sign Nukta ..Sharada Extra Short Vowe
(0x1122f, 0x11231,), # Khojki Vowel Sign U ..Khojki Vowel Sign Ai
(0x11234, 0x11234,), # Khojki Sign Anusvara ..Khojki Sign Anusvara
(0x11236, 0x11237,), # Khojki Sign Nukta ..Khojki Sign Shadda
(0x1123e, 0x1123e,), # Khojki Sign Sukun ..Khojki Sign Sukun
(0x112df, 0x112df,), # Khudawadi Sign Anusvara ..Khudawadi Sign Anusvara
(0x112e3, 0x112ea,), # Khudawadi Vowel Sign U ..Khudawadi Sign Virama
(0x11300, 0x11301,), # Grantha Sign Combining A..Grantha Sign Candrabindu
(0x1133c, 0x1133c,), # Grantha Sign Nukta ..Grantha Sign Nukta
(0x11340, 0x11340,), # Grantha Vowel Sign Ii ..Grantha Vowel Sign Ii
(0x11366, 0x1136c,), # Combining Grantha Digit ..Combining Grantha Digit
(0x11370, 0x11374,), # Combining Grantha Letter..Combining Grantha Letter
(0x11438, 0x1143f,), # Newa Vowel Sign U ..Newa Vowel Sign Ai
(0x11442, 0x11444,), # Newa Sign Virama ..Newa Sign Anusvara
(0x11446, 0x11446,), # Newa Sign Nukta ..Newa Sign Nukta
(0x114b3, 0x114b8,), # Tirhuta Vowel Sign U ..Tirhuta Vowel Sign Vocal
(0x114ba, 0x114ba,), # Tirhuta Vowel Sign Short..Tirhuta Vowel Sign Short
(0x114bf, 0x114c0,), # Tirhuta Sign Candrabindu..Tirhuta Sign Anusvara
(0x114c2, 0x114c3,), # Tirhuta Sign Virama ..Tirhuta Sign Nukta
(0x115b2, 0x115b5,), # Siddham Vowel Sign U ..Siddham Vowel Sign Vocal
(0x115bc, 0x115bd,), # Siddham Sign Candrabindu..Siddham Sign Anusvara
(0x115bf, 0x115c0,), # Siddham Sign Virama ..Siddham Sign Nukta
(0x115dc, 0x115dd,), # Siddham Vowel Sign Alter..Siddham Vowel Sign Alter
(0x11633, 0x1163a,), # Modi Vowel Sign U ..Modi Vowel Sign Ai
(0x1163d, 0x1163d,), # Modi Sign Anusvara ..Modi Sign Anusvara
(0x1163f, 0x11640,), # Modi Sign Virama ..Modi Sign Ardhacandra
(0x116ab, 0x116ab,), # Takri Sign Anusvara ..Takri Sign Anusvara
(0x116ad, 0x116ad,), # Takri Vowel Sign Aa ..Takri Vowel Sign Aa
(0x116b0, 0x116b5,), # Takri Vowel Sign U ..Takri Vowel Sign Au
(0x116b7, 0x116b7,), # Takri Sign Nukta ..Takri Sign Nukta
(0x1171d, 0x1171f,), # Ahom Consonant Sign Medi..Ahom Consonant Sign Medi
(0x11722, 0x11725,), # Ahom Vowel Sign I ..Ahom Vowel Sign Uu
(0x11727, 0x1172b,), # Ahom Vowel Sign Aw ..Ahom Sign Killer
(0x11a01, 0x11a06,), # Zanabazar Square Vowel S..Zanabazar Square Vowel S
(0x11a09, 0x11a0a,), # Zanabazar Square Vowel S..Zanabazar Square Vowel L
(0x11a33, 0x11a38,), # Zanabazar Square Final C..Zanabazar Square Sign An
(0x11a3b, 0x11a3e,), # Zanabazar Square Cluster..Zanabazar Square Cluster
(0x11a47, 0x11a47,), # Zanabazar Square Subjoin..Zanabazar Square Subjoin
(0x11a51, 0x11a56,), # Soyombo Vowel Sign I ..Soyombo Vowel Sign Oe
(0x11a59, 0x11a5b,), # Soyombo Vowel Sign Vocal..Soyombo Vowel Length Mar
(0x11a8a, 0x11a96,), # Soyombo Final Consonant ..Soyombo Sign Anusvara
(0x11a98, 0x11a99,), # Soyombo Gemination Mark ..Soyombo Subjoiner
(0x11c30, 0x11c36,), # Bhaiksuki Vowel Sign I ..Bhaiksuki Vowel Sign Voc
(0x11c38, 0x11c3d,), # Bhaiksuki Vowel Sign E ..Bhaiksuki Sign Anusvara
(0x11c3f, 0x11c3f,), # Bhaiksuki Sign Virama ..Bhaiksuki Sign Virama
(0x11c92, 0x11ca7,), # Marchen Subjoined Letter..Marchen Subjoined Letter
(0x11caa, 0x11cb0,), # Marchen Subjoined Letter..Marchen Vowel Sign Aa
(0x11cb2, 0x11cb3,), # Marchen Vowel Sign U ..Marchen Vowel Sign E
(0x11cb5, 0x11cb6,), # Marchen Sign Anusvara ..Marchen Sign Candrabindu
(0x11d31, 0x11d36,), # Masaram Gondi Vowel Sign..Masaram Gondi Vowel Sign
(0x11d3a, 0x11d3a,), # Masaram Gondi Vowel Sign..Masaram Gondi Vowel Sign
(0x11d3c, 0x11d3d,), # Masaram Gondi Vowel Sign..Masaram Gondi Vowel Sign
(0x11d3f, 0x11d45,), # Masaram Gondi Vowel Sign..Masaram Gondi Virama
(0x11d47, 0x11d47,), # Masaram Gondi Ra-kara ..Masaram Gondi Ra-kara
(0x16af0, 0x16af4,), # Bassa Vah Combining High..Bassa Vah Combining High
(0x16b30, 0x16b36,), # Pahawh Hmong Mark Cim Tu..Pahawh Hmong Mark Cim Ta
(0x16f8f, 0x16f92,), # Miao Tone Right ..Miao Tone Below
(0x1bc9d, 0x1bc9e,), # Duployan Thick Letter Se..Duployan Double Mark
(0x1d167, 0x1d169,), # Musical Symbol Combining..Musical Symbol Combining
(0x1d17b, 0x1d182,), # Musical Symbol Combining..Musical Symbol Combining
(0x1d185, 0x1d18b,), # Musical Symbol Combining..Musical Symbol Combining
(0x1d1aa, 0x1d1ad,), # Musical Symbol Combining..Musical Symbol Combining
(0x1d242, 0x1d244,), # Combining Greek Musical ..Combining Greek Musical
(0x1da00, 0x1da36,), # Signwriting Head Rim ..Signwriting Air Sucking
(0x1da3b, 0x1da6c,), # Signwriting Mouth Closed..Signwriting Excitement
(0x1da75, 0x1da75,), # Signwriting Upper Body T..Signwriting Upper Body T
(0x1da84, 0x1da84,), # Signwriting Location Hea..Signwriting Location Hea
(0x1da9b, 0x1da9f,), # Signwriting Fill Modifie..Signwriting Fill Modifie
(0x1daa1, 0x1daaf,), # Signwriting Rotation Mod..Signwriting Rotation Mod
(0x1e000, 0x1e006,), # Combining Glagolitic Let..Combining Glagolitic Let
(0x1e008, 0x1e018,), # Combining Glagolitic Let..Combining Glagolitic Let
(0x1e01b, 0x1e021,), # Combining Glagolitic Let..Combining Glagolitic Let
(0x1e023, 0x1e024,), # Combining Glagolitic Let..Combining Glagolitic Let
(0x1e026, 0x1e02a,), # Combining Glagolitic Let..Combining Glagolitic Let
(0x1e8d0, 0x1e8d6,), # Mende Kikakui Combining ..Mende Kikakui Combining
(0x1e944, 0x1e94a,), # Adlam Alif Lengthener ..Adlam Nukta
(0xe0100, 0xe01ef,), # Variation Selector-17 ..Variation Selector-256
),
'11.0.0': (
# Source: DerivedGeneralCategory-11.0.0.txt
# Date: 2018-02-21, 05:34:04 GMT
#
(0x00300, 0x0036f,), # Combining Grave Accent ..Combining Latin Small Le
(0x00483, 0x00489,), # Combining Cyrillic Titlo..Combining Cyrillic Milli
(0x00591, 0x005bd,), # Hebrew Accent Etnahta ..Hebrew Point Meteg
(0x005bf, 0x005bf,), # Hebrew Point Rafe ..Hebrew Point Rafe
(0x005c1, 0x005c2,), # Hebrew Point Shin Dot ..Hebrew Point Sin Dot
(0x005c4, 0x005c5,), # Hebrew Mark Upper Dot ..Hebrew Mark Lower Dot
(0x005c7, 0x005c7,), # Hebrew Point Qamats Qata..Hebrew Point Qamats Qata
(0x00610, 0x0061a,), # Arabic Sign Sallallahou ..Arabic Small Kasra
(0x0064b, 0x0065f,), # Arabic Fathatan ..Arabic Wavy Hamza Below
(0x00670, 0x00670,), # Arabic Letter Superscrip..Arabic Letter Superscrip
(0x006d6, 0x006dc,), # Arabic Small High Ligatu..Arabic Small High Seen
(0x006df, 0x006e4,), # Arabic Small High Rounde..Arabic Small High Madda
(0x006e7, 0x006e8,), # Arabic Small High Yeh ..Arabic Small High Noon
(0x006ea, 0x006ed,), # Arabic Empty Centre Low ..Arabic Small Low Meem
(0x00711, 0x00711,), # Syriac Letter Superscrip..Syriac Letter Superscrip
(0x00730, 0x0074a,), # Syriac Pthaha Above ..Syriac Barrekh
(0x007a6, 0x007b0,), # Thaana Abafili ..Thaana Sukun
(0x007eb, 0x007f3,), # Nko Combining Short High..Nko Combining Double Dot
(0x007fd, 0x007fd,), # Nko Dantayalan ..Nko Dantayalan
(0x00816, 0x00819,), # Samaritan Mark In ..Samaritan Mark Dagesh
(0x0081b, 0x00823,), # Samaritan Mark Epentheti..Samaritan Vowel Sign A
(0x00825, 0x00827,), # Samaritan Vowel Sign Sho..Samaritan Vowel Sign U
(0x00829, 0x0082d,), # Samaritan Vowel Sign Lon..Samaritan Mark Nequdaa
(0x00859, 0x0085b,), # Mandaic Affrication Mark..Mandaic Gemination Mark
(0x008d3, 0x008e1,), # Arabic Small Low Waw ..Arabic Small High Sign S
(0x008e3, 0x00902,), # Arabic Turned Damma Belo..Devanagari Sign Anusvara
(0x0093a, 0x0093a,), # Devanagari Vowel Sign Oe..Devanagari Vowel Sign Oe
(0x0093c, 0x0093c,), # Devanagari Sign Nukta ..Devanagari Sign Nukta
(0x00941, 0x00948,), # Devanagari Vowel Sign U ..Devanagari Vowel Sign Ai
(0x0094d, 0x0094d,), # Devanagari Sign Virama ..Devanagari Sign Virama
(0x00951, 0x00957,), # Devanagari Stress Sign U..Devanagari Vowel Sign Uu
(0x00962, 0x00963,), # Devanagari Vowel Sign Vo..Devanagari Vowel Sign Vo
(0x00981, 0x00981,), # Bengali Sign Candrabindu..Bengali Sign Candrabindu
(0x009bc, 0x009bc,), # Bengali Sign Nukta ..Bengali Sign Nukta
(0x009c1, 0x009c4,), # Bengali Vowel Sign U ..Bengali Vowel Sign Vocal
(0x009cd, 0x009cd,), # Bengali Sign Virama ..Bengali Sign Virama
(0x009e2, 0x009e3,), # Bengali Vowel Sign Vocal..Bengali Vowel Sign Vocal
(0x009fe, 0x009fe,), # Bengali Sandhi Mark ..Bengali Sandhi Mark
(0x00a01, 0x00a02,), # Gurmukhi Sign Adak Bindi..Gurmukhi Sign Bindi
(0x00a3c, 0x00a3c,), # Gurmukhi Sign Nukta ..Gurmukhi Sign Nukta
(0x00a41, 0x00a42,), # Gurmukhi Vowel Sign U ..Gurmukhi Vowel Sign Uu
(0x00a47, 0x00a48,), # Gurmukhi Vowel Sign Ee ..Gurmukhi Vowel Sign Ai
(0x00a4b, 0x00a4d,), # Gurmukhi Vowel Sign Oo ..Gurmukhi Sign Virama
(0x00a51, 0x00a51,), # Gurmukhi Sign Udaat ..Gurmukhi Sign Udaat
(0x00a70, 0x00a71,), # Gurmukhi Tippi ..Gurmukhi Addak
(0x00a75, 0x00a75,), # Gurmukhi Sign Yakash ..Gurmukhi Sign Yakash
(0x00a81, 0x00a82,), # Gujarati Sign Candrabind..Gujarati Sign Anusvara
(0x00abc, 0x00abc,), # Gujarati Sign Nukta ..Gujarati Sign Nukta
(0x00ac1, 0x00ac5,), # Gujarati Vowel Sign U ..Gujarati Vowel Sign Cand
(0x00ac7, 0x00ac8,), # Gujarati Vowel Sign E ..Gujarati Vowel Sign Ai
(0x00acd, 0x00acd,), # Gujarati Sign Virama ..Gujarati Sign Virama
(0x00ae2, 0x00ae3,), # Gujarati Vowel Sign Voca..Gujarati Vowel Sign Voca
(0x00afa, 0x00aff,), # Gujarati Sign Sukun ..Gujarati Sign Two-circle
(0x00b01, 0x00b01,), # Oriya Sign Candrabindu ..Oriya Sign Candrabindu
(0x00b3c, 0x00b3c,), # Oriya Sign Nukta ..Oriya Sign Nukta
(0x00b3f, 0x00b3f,), # Oriya Vowel Sign I ..Oriya Vowel Sign I
(0x00b41, 0x00b44,), # Oriya Vowel Sign U ..Oriya Vowel Sign Vocalic
(0x00b4d, 0x00b4d,), # Oriya Sign Virama ..Oriya Sign Virama
(0x00b56, 0x00b56,), # Oriya Ai Length Mark ..Oriya Ai Length Mark
(0x00b62, 0x00b63,), # Oriya Vowel Sign Vocalic..Oriya Vowel Sign Vocalic
(0x00b82, 0x00b82,), # Tamil Sign Anusvara ..Tamil Sign Anusvara
(0x00bc0, 0x00bc0,), # Tamil Vowel Sign Ii ..Tamil Vowel Sign Ii
(0x00bcd, 0x00bcd,), # Tamil Sign Virama ..Tamil Sign Virama
(0x00c00, 0x00c00,), # Telugu Sign Combining Ca..Telugu Sign Combining Ca
(0x00c04, 0x00c04,), # Telugu Sign Combining An..Telugu Sign Combining An
(0x00c3e, 0x00c40,), # Telugu Vowel Sign Aa ..Telugu Vowel Sign Ii
(0x00c46, 0x00c48,), # Telugu Vowel Sign E ..Telugu Vowel Sign Ai
(0x00c4a, 0x00c4d,), # Telugu Vowel Sign O ..Telugu Sign Virama
(0x00c55, 0x00c56,), # Telugu Length Mark ..Telugu Ai Length Mark
(0x00c62, 0x00c63,), # Telugu Vowel Sign Vocali..Telugu Vowel Sign Vocali
(0x00c81, 0x00c81,), # Kannada Sign Candrabindu..Kannada Sign Candrabindu
(0x00cbc, 0x00cbc,), # Kannada Sign Nukta ..Kannada Sign Nukta
(0x00cbf, 0x00cbf,), # Kannada Vowel Sign I ..Kannada Vowel Sign I
(0x00cc6, 0x00cc6,), # Kannada Vowel Sign E ..Kannada Vowel Sign E
(0x00ccc, 0x00ccd,), # Kannada Vowel Sign Au ..Kannada Sign Virama
(0x00ce2, 0x00ce3,), # Kannada Vowel Sign Vocal..Kannada Vowel Sign Vocal
(0x00d00, 0x00d01,), # Malayalam Sign Combining..Malayalam Sign Candrabin
(0x00d3b, 0x00d3c,), # Malayalam Sign Vertical ..Malayalam Sign Circular
(0x00d41, 0x00d44,), # Malayalam Vowel Sign U ..Malayalam Vowel Sign Voc
(0x00d4d, 0x00d4d,), # Malayalam Sign Virama ..Malayalam Sign Virama
(0x00d62, 0x00d63,), # Malayalam Vowel Sign Voc..Malayalam Vowel Sign Voc
(0x00dca, 0x00dca,), # Sinhala Sign Al-lakuna ..Sinhala Sign Al-lakuna
(0x00dd2, 0x00dd4,), # Sinhala Vowel Sign Ketti..Sinhala Vowel Sign Ketti
(0x00dd6, 0x00dd6,), # Sinhala Vowel Sign Diga ..Sinhala Vowel Sign Diga
(0x00e31, 0x00e31,), # Thai Character Mai Han-a..Thai Character Mai Han-a
(0x00e34, 0x00e3a,), # Thai Character Sara I ..Thai Character Phinthu
(0x00e47, 0x00e4e,), # Thai Character Maitaikhu..Thai Character Yamakkan
(0x00eb1, 0x00eb1,), # Lao Vowel Sign Mai Kan ..Lao Vowel Sign Mai Kan
(0x00eb4, 0x00eb9,), # Lao Vowel Sign I ..Lao Vowel Sign Uu
(0x00ebb, 0x00ebc,), # Lao Vowel Sign Mai Kon ..Lao Semivowel Sign Lo
(0x00ec8, 0x00ecd,), # Lao Tone Mai Ek ..Lao Niggahita
(0x00f18, 0x00f19,), # Tibetan Astrological Sig..Tibetan Astrological Sig
(0x00f35, 0x00f35,), # Tibetan Mark Ngas Bzung ..Tibetan Mark Ngas Bzung
(0x00f37, 0x00f37,), # Tibetan Mark Ngas Bzung ..Tibetan Mark Ngas Bzung
(0x00f39, 0x00f39,), # Tibetan Mark Tsa -phru ..Tibetan Mark Tsa -phru
(0x00f71, 0x00f7e,), # Tibetan Vowel Sign Aa ..Tibetan Sign Rjes Su Nga
(0x00f80, 0x00f84,), # Tibetan Vowel Sign Rever..Tibetan Mark Halanta
(0x00f86, 0x00f87,), # Tibetan Sign Lci Rtags ..Tibetan Sign Yang Rtags
(0x00f8d, 0x00f97,), # Tibetan Subjoined Sign L..Tibetan Subjoined Letter
(0x00f99, 0x00fbc,), # Tibetan Subjoined Letter..Tibetan Subjoined Letter
(0x00fc6, 0x00fc6,), # Tibetan Symbol Padma Gda..Tibetan Symbol Padma Gda
(0x0102d, 0x01030,), # Myanmar Vowel Sign I ..Myanmar Vowel Sign Uu
(0x01032, 0x01037,), # Myanmar Vowel Sign Ai ..Myanmar Sign Dot Below
(0x01039, 0x0103a,), # Myanmar Sign Virama ..Myanmar Sign Asat
(0x0103d, 0x0103e,), # Myanmar Consonant Sign M..Myanmar Consonant Sign M
(0x01058, 0x01059,), # Myanmar Vowel Sign Vocal..Myanmar Vowel Sign Vocal
(0x0105e, 0x01060,), # Myanmar Consonant Sign M..Myanmar Consonant Sign M
(0x01071, 0x01074,), # Myanmar Vowel Sign Geba ..Myanmar Vowel Sign Kayah
(0x01082, 0x01082,), # Myanmar Consonant Sign S..Myanmar Consonant Sign S
(0x01085, 0x01086,), # Myanmar Vowel Sign Shan ..Myanmar Vowel Sign Shan
(0x0108d, 0x0108d,), # Myanmar Sign Shan Counci..Myanmar Sign Shan Counci
(0x0109d, 0x0109d,), # Myanmar Vowel Sign Aiton..Myanmar Vowel Sign Aiton
(0x0135d, 0x0135f,), # Ethiopic Combining Gemin..Ethiopic Combining Gemin
(0x01712, 0x01714,), # Tagalog Vowel Sign I ..Tagalog Sign Virama
(0x01732, 0x01734,), # Hanunoo Vowel Sign I ..Hanunoo Sign Pamudpod
(0x01752, 0x01753,), # Buhid Vowel Sign I ..Buhid Vowel Sign U
(0x01772, 0x01773,), # Tagbanwa Vowel Sign I ..Tagbanwa Vowel Sign U
(0x017b4, 0x017b5,), # Khmer Vowel Inherent Aq ..Khmer Vowel Inherent Aa
(0x017b7, 0x017bd,), # Khmer Vowel Sign I ..Khmer Vowel Sign Ua
(0x017c6, 0x017c6,), # Khmer Sign Nikahit ..Khmer Sign Nikahit
(0x017c9, 0x017d3,), # Khmer Sign Muusikatoan ..Khmer Sign Bathamasat
(0x017dd, 0x017dd,), # Khmer Sign Atthacan ..Khmer Sign Atthacan
(0x0180b, 0x0180d,), # Mongolian Free Variation..Mongolian Free Variation
(0x01885, 0x01886,), # Mongolian Letter Ali Gal..Mongolian Letter Ali Gal
(0x018a9, 0x018a9,), # Mongolian Letter Ali Gal..Mongolian Letter Ali Gal
(0x01920, 0x01922,), # Limbu Vowel Sign A ..Limbu Vowel Sign U
(0x01927, 0x01928,), # Limbu Vowel Sign E ..Limbu Vowel Sign O
(0x01932, 0x01932,), # Limbu Small Letter Anusv..Limbu Small Letter Anusv
(0x01939, 0x0193b,), # Limbu Sign Mukphreng ..Limbu Sign Sa-i
(0x01a17, 0x01a18,), # Buginese Vowel Sign I ..Buginese Vowel Sign U
(0x01a1b, 0x01a1b,), # Buginese Vowel Sign Ae ..Buginese Vowel Sign Ae
(0x01a56, 0x01a56,), # Tai Tham Consonant Sign ..Tai Tham Consonant Sign
(0x01a58, 0x01a5e,), # Tai Tham Sign Mai Kang L..Tai Tham Consonant Sign
(0x01a60, 0x01a60,), # Tai Tham Sign Sakot ..Tai Tham Sign Sakot
(0x01a62, 0x01a62,), # Tai Tham Vowel Sign Mai ..Tai Tham Vowel Sign Mai
(0x01a65, 0x01a6c,), # Tai Tham Vowel Sign I ..Tai Tham Vowel Sign Oa B
(0x01a73, 0x01a7c,), # Tai Tham Vowel Sign Oa A..Tai Tham Sign Khuen-lue
(0x01a7f, 0x01a7f,), # Tai Tham Combining Crypt..Tai Tham Combining Crypt
(0x01ab0, 0x01abe,), # Combining Doubled Circum..Combining Parentheses Ov
(0x01b00, 0x01b03,), # Balinese Sign Ulu Ricem ..Balinese Sign Surang
(0x01b34, 0x01b34,), # Balinese Sign Rerekan ..Balinese Sign Rerekan
(0x01b36, 0x01b3a,), # Balinese Vowel Sign Ulu ..Balinese Vowel Sign Ra R
(0x01b3c, 0x01b3c,), # Balinese Vowel Sign La L..Balinese Vowel Sign La L
(0x01b42, 0x01b42,), # Balinese Vowel Sign Pepe..Balinese Vowel Sign Pepe
(0x01b6b, 0x01b73,), # Balinese Musical Symbol ..Balinese Musical Symbol
(0x01b80, 0x01b81,), # Sundanese Sign Panyecek ..Sundanese Sign Panglayar
(0x01ba2, 0x01ba5,), # Sundanese Consonant Sign..Sundanese Vowel Sign Pan
(0x01ba8, 0x01ba9,), # Sundanese Vowel Sign Pam..Sundanese Vowel Sign Pan
(0x01bab, 0x01bad,), # Sundanese Sign Virama ..Sundanese Consonant Sign
(0x01be6, 0x01be6,), # Batak Sign Tompi ..Batak Sign Tompi
(0x01be8, 0x01be9,), # Batak Vowel Sign Pakpak ..Batak Vowel Sign Ee
(0x01bed, 0x01bed,), # Batak Vowel Sign Karo O ..Batak Vowel Sign Karo O
(0x01bef, 0x01bf1,), # Batak Vowel Sign U For S..Batak Consonant Sign H
(0x01c2c, 0x01c33,), # Lepcha Vowel Sign E ..Lepcha Consonant Sign T
(0x01c36, 0x01c37,), # Lepcha Sign Ran ..Lepcha Sign Nukta
(0x01cd0, 0x01cd2,), # Vedic Tone Karshana ..Vedic Tone Prenkha
(0x01cd4, 0x01ce0,), # Vedic Sign Yajurvedic Mi..Vedic Tone Rigvedic Kash
(0x01ce2, 0x01ce8,), # Vedic Sign Visarga Svari..Vedic Sign Visarga Anuda
(0x01ced, 0x01ced,), # Vedic Sign Tiryak ..Vedic Sign Tiryak
(0x01cf4, 0x01cf4,), # Vedic Tone Candra Above ..Vedic Tone Candra Above
(0x01cf8, 0x01cf9,), # Vedic Tone Ring Above ..Vedic Tone Double Ring A
(0x01dc0, 0x01df9,), # Combining Dotted Grave A..Combining Wide Inverted
(0x01dfb, 0x01dff,), # Combining Deletion Mark ..Combining Right Arrowhea
(0x020d0, 0x020f0,), # Combining Left Harpoon A..Combining Asterisk Above
(0x02cef, 0x02cf1,), # Coptic Combining Ni Abov..Coptic Combining Spiritu
(0x02d7f, 0x02d7f,), # Tifinagh Consonant Joine..Tifinagh Consonant Joine
(0x02de0, 0x02dff,), # Combining Cyrillic Lette..Combining Cyrillic Lette
(0x0302a, 0x0302d,), # Ideographic Level Tone M..Ideographic Entering Ton
(0x03099, 0x0309a,), # Combining Katakana-hirag..Combining Katakana-hirag
(0x0a66f, 0x0a672,), # Combining Cyrillic Vzmet..Combining Cyrillic Thous
(0x0a674, 0x0a67d,), # Combining Cyrillic Lette..Combining Cyrillic Payer
(0x0a69e, 0x0a69f,), # Combining Cyrillic Lette..Combining Cyrillic Lette
(0x0a6f0, 0x0a6f1,), # Bamum Combining Mark Koq..Bamum Combining Mark Tuk
(0x0a802, 0x0a802,), # Syloti Nagri Sign Dvisva..Syloti Nagri Sign Dvisva
(0x0a806, 0x0a806,), # Syloti Nagri Sign Hasant..Syloti Nagri Sign Hasant
(0x0a80b, 0x0a80b,), # Syloti Nagri Sign Anusva..Syloti Nagri Sign Anusva
(0x0a825, 0x0a826,), # Syloti Nagri Vowel Sign ..Syloti Nagri Vowel Sign
(0x0a8c4, 0x0a8c5,), # Saurashtra Sign Virama ..Saurashtra Sign Candrabi
(0x0a8e0, 0x0a8f1,), # Combining Devanagari Dig..Combining Devanagari Sig
(0x0a8ff, 0x0a8ff,), # Devanagari Vowel Sign Ay..Devanagari Vowel Sign Ay
(0x0a926, 0x0a92d,), # Kayah Li Vowel Ue ..Kayah Li Tone Calya Plop
(0x0a947, 0x0a951,), # Rejang Vowel Sign I ..Rejang Consonant Sign R
(0x0a980, 0x0a982,), # Javanese Sign Panyangga ..Javanese Sign Layar
(0x0a9b3, 0x0a9b3,), # Javanese Sign Cecak Telu..Javanese Sign Cecak Telu
(0x0a9b6, 0x0a9b9,), # Javanese Vowel Sign Wulu..Javanese Vowel Sign Suku
(0x0a9bc, 0x0a9bc,), # Javanese Vowel Sign Pepe..Javanese Vowel Sign Pepe
(0x0a9e5, 0x0a9e5,), # Myanmar Sign Shan Saw ..Myanmar Sign Shan Saw
(0x0aa29, 0x0aa2e,), # Cham Vowel Sign Aa ..Cham Vowel Sign Oe
(0x0aa31, 0x0aa32,), # Cham Vowel Sign Au ..Cham Vowel Sign Ue
(0x0aa35, 0x0aa36,), # Cham Consonant Sign La ..Cham Consonant Sign Wa
(0x0aa43, 0x0aa43,), # Cham Consonant Sign Fina..Cham Consonant Sign Fina
(0x0aa4c, 0x0aa4c,), # Cham Consonant Sign Fina..Cham Consonant Sign Fina
(0x0aa7c, 0x0aa7c,), # Myanmar Sign Tai Laing T..Myanmar Sign Tai Laing T
(0x0aab0, 0x0aab0,), # Tai Viet Mai Kang ..Tai Viet Mai Kang
(0x0aab2, 0x0aab4,), # Tai Viet Vowel I ..Tai Viet Vowel U
(0x0aab7, 0x0aab8,), # Tai Viet Mai Khit ..Tai Viet Vowel Ia
(0x0aabe, 0x0aabf,), # Tai Viet Vowel Am ..Tai Viet Tone Mai Ek
(0x0aac1, 0x0aac1,), # Tai Viet Tone Mai Tho ..Tai Viet Tone Mai Tho
(0x0aaec, 0x0aaed,), # Meetei Mayek Vowel Sign ..Meetei Mayek Vowel Sign
(0x0aaf6, 0x0aaf6,), # Meetei Mayek Virama ..Meetei Mayek Virama
(0x0abe5, 0x0abe5,), # Meetei Mayek Vowel Sign ..Meetei Mayek Vowel Sign
(0x0abe8, 0x0abe8,), # Meetei Mayek Vowel Sign ..Meetei Mayek Vowel Sign
(0x0abed, 0x0abed,), # Meetei Mayek Apun Iyek ..Meetei Mayek Apun Iyek
(0x0fb1e, 0x0fb1e,), # Hebrew Point Judeo-spani..Hebrew Point Judeo-spani
(0x0fe00, 0x0fe0f,), # Variation Selector-1 ..Variation Selector-16
(0x0fe20, 0x0fe2f,), # Combining Ligature Left ..Combining Cyrillic Titlo
(0x101fd, 0x101fd,), # Phaistos Disc Sign Combi..Phaistos Disc Sign Combi
(0x102e0, 0x102e0,), # Coptic Epact Thousands M..Coptic Epact Thousands M
(0x10376, 0x1037a,), # Combining Old Permic Let..Combining Old Permic Let
(0x10a01, 0x10a03,), # Kharoshthi Vowel Sign I ..Kharoshthi Vowel Sign Vo
(0x10a05, 0x10a06,), # Kharoshthi Vowel Sign E ..Kharoshthi Vowel Sign O
(0x10a0c, 0x10a0f,), # Kharoshthi Vowel Length ..Kharoshthi Sign Visarga
(0x10a38, 0x10a3a,), # Kharoshthi Sign Bar Abov..Kharoshthi Sign Dot Belo
(0x10a3f, 0x10a3f,), # Kharoshthi Virama ..Kharoshthi Virama
(0x10ae5, 0x10ae6,), # Manichaean Abbreviation ..Manichaean Abbreviation
(0x10d24, 0x10d27,), # Hanifi Rohingya Sign Har..Hanifi Rohingya Sign Tas
(0x10f46, 0x10f50,), # Sogdian Combining Dot Be..Sogdian Combining Stroke
(0x11001, 0x11001,), # Brahmi Sign Anusvara ..Brahmi Sign Anusvara
(0x11038, 0x11046,), # Brahmi Vowel Sign Aa ..Brahmi Virama
(0x1107f, 0x11081,), # Brahmi Number Joiner ..Kaithi Sign Anusvara
(0x110b3, 0x110b6,), # Kaithi Vowel Sign U ..Kaithi Vowel Sign Ai
(0x110b9, 0x110ba,), # Kaithi Sign Virama ..Kaithi Sign Nukta
(0x11100, 0x11102,), # Chakma Sign Candrabindu ..Chakma Sign Visarga
(0x11127, 0x1112b,), # Chakma Vowel Sign A ..Chakma Vowel Sign Uu
(0x1112d, 0x11134,), # Chakma Vowel Sign Ai ..Chakma Maayyaa
(0x11173, 0x11173,), # Mahajani Sign Nukta ..Mahajani Sign Nukta
(0x11180, 0x11181,), # Sharada Sign Candrabindu..Sharada Sign Anusvara
(0x111b6, 0x111be,), # Sharada Vowel Sign U ..Sharada Vowel Sign O
(0x111c9, 0x111cc,), # Sharada Sandhi Mark ..Sharada Extra Short Vowe
(0x1122f, 0x11231,), # Khojki Vowel Sign U ..Khojki Vowel Sign Ai
(0x11234, 0x11234,), # Khojki Sign Anusvara ..Khojki Sign Anusvara
(0x11236, 0x11237,), # Khojki Sign Nukta ..Khojki Sign Shadda
(0x1123e, 0x1123e,), # Khojki Sign Sukun ..Khojki Sign Sukun
(0x112df, 0x112df,), # Khudawadi Sign Anusvara ..Khudawadi Sign Anusvara
(0x112e3, 0x112ea,), # Khudawadi Vowel Sign U ..Khudawadi Sign Virama
(0x11300, 0x11301,), # Grantha Sign Combining A..Grantha Sign Candrabindu
(0x1133b, 0x1133c,), # Combining Bindu Below ..Grantha Sign Nukta
(0x11340, 0x11340,), # Grantha Vowel Sign Ii ..Grantha Vowel Sign Ii
(0x11366, 0x1136c,), # Combining Grantha Digit ..Combining Grantha Digit
(0x11370, 0x11374,), # Combining Grantha Letter..Combining Grantha Letter
(0x11438, 0x1143f,), # Newa Vowel Sign U ..Newa Vowel Sign Ai
(0x11442, 0x11444,), # Newa Sign Virama ..Newa Sign Anusvara
(0x11446, 0x11446,), # Newa Sign Nukta ..Newa Sign Nukta
(0x1145e, 0x1145e,), # Newa Sandhi Mark ..Newa Sandhi Mark
(0x114b3, 0x114b8,), # Tirhuta Vowel Sign U ..Tirhuta Vowel Sign Vocal
(0x114ba, 0x114ba,), # Tirhuta Vowel Sign Short..Tirhuta Vowel Sign Short
(0x114bf, 0x114c0,), # Tirhuta Sign Candrabindu..Tirhuta Sign Anusvara
(0x114c2, 0x114c3,), # Tirhuta Sign Virama ..Tirhuta Sign Nukta
(0x115b2, 0x115b5,), # Siddham Vowel Sign U ..Siddham Vowel Sign Vocal
(0x115bc, 0x115bd,), # Siddham Sign Candrabindu..Siddham Sign Anusvara
(0x115bf, 0x115c0,), # Siddham Sign Virama ..Siddham Sign Nukta
(0x115dc, 0x115dd,), # Siddham Vowel Sign Alter..Siddham Vowel Sign Alter
(0x11633, 0x1163a,), # Modi Vowel Sign U ..Modi Vowel Sign Ai
(0x1163d, 0x1163d,), # Modi Sign Anusvara ..Modi Sign Anusvara
(0x1163f, 0x11640,), # Modi Sign Virama ..Modi Sign Ardhacandra
(0x116ab, 0x116ab,), # Takri Sign Anusvara ..Takri Sign Anusvara
(0x116ad, 0x116ad,), # Takri Vowel Sign Aa ..Takri Vowel Sign Aa
(0x116b0, 0x116b5,), # Takri Vowel Sign U ..Takri Vowel Sign Au
(0x116b7, 0x116b7,), # Takri Sign Nukta ..Takri Sign Nukta
(0x1171d, 0x1171f,), # Ahom Consonant Sign Medi..Ahom Consonant Sign Medi
(0x11722, 0x11725,), # Ahom Vowel Sign I ..Ahom Vowel Sign Uu
(0x11727, 0x1172b,), # Ahom Vowel Sign Aw ..Ahom Sign Killer
(0x1182f, 0x11837,), # Dogra Vowel Sign U ..Dogra Sign Anusvara
(0x11839, 0x1183a,), # Dogra Sign Virama ..Dogra Sign Nukta
(0x11a01, 0x11a0a,), # Zanabazar Square Vowel S..Zanabazar Square Vowel L
(0x11a33, 0x11a38,), # Zanabazar Square Final C..Zanabazar Square Sign An
(0x11a3b, 0x11a3e,), # Zanabazar Square Cluster..Zanabazar Square Cluster
(0x11a47, 0x11a47,), # Zanabazar Square Subjoin..Zanabazar Square Subjoin
(0x11a51, 0x11a56,), # Soyombo Vowel Sign I ..Soyombo Vowel Sign Oe
(0x11a59, 0x11a5b,), # Soyombo Vowel Sign Vocal..Soyombo Vowel Length Mar
(0x11a8a, 0x11a96,), # Soyombo Final Consonant ..Soyombo Sign Anusvara
(0x11a98, 0x11a99,), # Soyombo Gemination Mark ..Soyombo Subjoiner
(0x11c30, 0x11c36,), # Bhaiksuki Vowel Sign I ..Bhaiksuki Vowel Sign Voc
(0x11c38, 0x11c3d,), # Bhaiksuki Vowel Sign E ..Bhaiksuki Sign Anusvara
(0x11c3f, 0x11c3f,), # Bhaiksuki Sign Virama ..Bhaiksuki Sign Virama
(0x11c92, 0x11ca7,), # Marchen Subjoined Letter..Marchen Subjoined Letter
(0x11caa, 0x11cb0,), # Marchen Subjoined Letter..Marchen Vowel Sign Aa
(0x11cb2, 0x11cb3,), # Marchen Vowel Sign U ..Marchen Vowel Sign E
(0x11cb5, 0x11cb6,), # Marchen Sign Anusvara ..Marchen Sign Candrabindu
(0x11d31, 0x11d36,), # Masaram Gondi Vowel Sign..Masaram Gondi Vowel Sign
(0x11d3a, 0x11d3a,), # Masaram Gondi Vowel Sign..Masaram Gondi Vowel Sign
(0x11d3c, 0x11d3d,), # Masaram Gondi Vowel Sign..Masaram Gondi Vowel Sign
(0x11d3f, 0x11d45,), # Masaram Gondi Vowel Sign..Masaram Gondi Virama
(0x11d47, 0x11d47,), # Masaram Gondi Ra-kara ..Masaram Gondi Ra-kara
(0x11d90, 0x11d91,), # Gunjala Gondi Vowel Sign..Gunjala Gondi Vowel Sign
(0x11d95, 0x11d95,), # Gunjala Gondi Sign Anusv..Gunjala Gondi Sign Anusv
(0x11d97, 0x11d97,), # Gunjala Gondi Virama ..Gunjala Gondi Virama
(0x11ef3, 0x11ef4,), # Makasar Vowel Sign I ..Makasar Vowel Sign U
(0x16af0, 0x16af4,), # Bassa Vah Combining High..Bassa Vah Combining High
(0x16b30, 0x16b36,), # Pahawh Hmong Mark Cim Tu..Pahawh Hmong Mark Cim Ta
(0x16f8f, 0x16f92,), # Miao Tone Right ..Miao Tone Below
(0x1bc9d, 0x1bc9e,), # Duployan Thick Letter Se..Duployan Double Mark
(0x1d167, 0x1d169,), # Musical Symbol Combining..Musical Symbol Combining
(0x1d17b, 0x1d182,), # Musical Symbol Combining..Musical Symbol Combining
(0x1d185, 0x1d18b,), # Musical Symbol Combining..Musical Symbol Combining
(0x1d1aa, 0x1d1ad,), # Musical Symbol Combining..Musical Symbol Combining
(0x1d242, 0x1d244,), # Combining Greek Musical ..Combining Greek Musical
(0x1da00, 0x1da36,), # Signwriting Head Rim ..Signwriting Air Sucking
(0x1da3b, 0x1da6c,), # Signwriting Mouth Closed..Signwriting Excitement
(0x1da75, 0x1da75,), # Signwriting Upper Body T..Signwriting Upper Body T
(0x1da84, 0x1da84,), # Signwriting Location Hea..Signwriting Location Hea
(0x1da9b, 0x1da9f,), # Signwriting Fill Modifie..Signwriting Fill Modifie
(0x1daa1, 0x1daaf,), # Signwriting Rotation Mod..Signwriting Rotation Mod
(0x1e000, 0x1e006,), # Combining Glagolitic Let..Combining Glagolitic Let
(0x1e008, 0x1e018,), # Combining Glagolitic Let..Combining Glagolitic Let
(0x1e01b, 0x1e021,), # Combining Glagolitic Let..Combining Glagolitic Let
(0x1e023, 0x1e024,), # Combining Glagolitic Let..Combining Glagolitic Let
(0x1e026, 0x1e02a,), # Combining Glagolitic Let..Combining Glagolitic Let
(0x1e8d0, 0x1e8d6,), # Mende Kikakui Combining ..Mende Kikakui Combining
(0x1e944, 0x1e94a,), # Adlam Alif Lengthener ..Adlam Nukta
(0xe0100, 0xe01ef,), # Variation Selector-17 ..Variation Selector-256
),
'12.0.0': (
# Source: DerivedGeneralCategory-12.0.0.txt
# Date: 2019-01-22, 08:18:28 GMT
#
(0x00300, 0x0036f,), # Combining Grave Accent ..Combining Latin Small Le
(0x00483, 0x00489,), # Combining Cyrillic Titlo..Combining Cyrillic Milli
(0x00591, 0x005bd,), # Hebrew Accent Etnahta ..Hebrew Point Meteg
(0x005bf, 0x005bf,), # Hebrew Point Rafe ..Hebrew Point Rafe
(0x005c1, 0x005c2,), # Hebrew Point Shin Dot ..Hebrew Point Sin Dot
(0x005c4, 0x005c5,), # Hebrew Mark Upper Dot ..Hebrew Mark Lower Dot
(0x005c7, 0x005c7,), # Hebrew Point Qamats Qata..Hebrew Point Qamats Qata
(0x00610, 0x0061a,), # Arabic Sign Sallallahou ..Arabic Small Kasra
(0x0064b, 0x0065f,), # Arabic Fathatan ..Arabic Wavy Hamza Below
(0x00670, 0x00670,), # Arabic Letter Superscrip..Arabic Letter Superscrip
(0x006d6, 0x006dc,), # Arabic Small High Ligatu..Arabic Small High Seen
(0x006df, 0x006e4,), # Arabic Small High Rounde..Arabic Small High Madda
(0x006e7, 0x006e8,), # Arabic Small High Yeh ..Arabic Small High Noon
(0x006ea, 0x006ed,), # Arabic Empty Centre Low ..Arabic Small Low Meem
(0x00711, 0x00711,), # Syriac Letter Superscrip..Syriac Letter Superscrip
(0x00730, 0x0074a,), # Syriac Pthaha Above ..Syriac Barrekh
(0x007a6, 0x007b0,), # Thaana Abafili ..Thaana Sukun
(0x007eb, 0x007f3,), # Nko Combining Short High..Nko Combining Double Dot
(0x007fd, 0x007fd,), # Nko Dantayalan ..Nko Dantayalan
(0x00816, 0x00819,), # Samaritan Mark In ..Samaritan Mark Dagesh
(0x0081b, 0x00823,), # Samaritan Mark Epentheti..Samaritan Vowel Sign A
(0x00825, 0x00827,), # Samaritan Vowel Sign Sho..Samaritan Vowel Sign U
(0x00829, 0x0082d,), # Samaritan Vowel Sign Lon..Samaritan Mark Nequdaa
(0x00859, 0x0085b,), # Mandaic Affrication Mark..Mandaic Gemination Mark
(0x008d3, 0x008e1,), # Arabic Small Low Waw ..Arabic Small High Sign S
(0x008e3, 0x00902,), # Arabic Turned Damma Belo..Devanagari Sign Anusvara
(0x0093a, 0x0093a,), # Devanagari Vowel Sign Oe..Devanagari Vowel Sign Oe
(0x0093c, 0x0093c,), # Devanagari Sign Nukta ..Devanagari Sign Nukta
(0x00941, 0x00948,), # Devanagari Vowel Sign U ..Devanagari Vowel Sign Ai
(0x0094d, 0x0094d,), # Devanagari Sign Virama ..Devanagari Sign Virama
(0x00951, 0x00957,), # Devanagari Stress Sign U..Devanagari Vowel Sign Uu
(0x00962, 0x00963,), # Devanagari Vowel Sign Vo..Devanagari Vowel Sign Vo
(0x00981, 0x00981,), # Bengali Sign Candrabindu..Bengali Sign Candrabindu
(0x009bc, 0x009bc,), # Bengali Sign Nukta ..Bengali Sign Nukta
(0x009c1, 0x009c4,), # Bengali Vowel Sign U ..Bengali Vowel Sign Vocal
(0x009cd, 0x009cd,), # Bengali Sign Virama ..Bengali Sign Virama
(0x009e2, 0x009e3,), # Bengali Vowel Sign Vocal..Bengali Vowel Sign Vocal
(0x009fe, 0x009fe,), # Bengali Sandhi Mark ..Bengali Sandhi Mark
(0x00a01, 0x00a02,), # Gurmukhi Sign Adak Bindi..Gurmukhi Sign Bindi
(0x00a3c, 0x00a3c,), # Gurmukhi Sign Nukta ..Gurmukhi Sign Nukta
(0x00a41, 0x00a42,), # Gurmukhi Vowel Sign U ..Gurmukhi Vowel Sign Uu
(0x00a47, 0x00a48,), # Gurmukhi Vowel Sign Ee ..Gurmukhi Vowel Sign Ai
(0x00a4b, 0x00a4d,), # Gurmukhi Vowel Sign Oo ..Gurmukhi Sign Virama
(0x00a51, 0x00a51,), # Gurmukhi Sign Udaat ..Gurmukhi Sign Udaat
(0x00a70, 0x00a71,), # Gurmukhi Tippi ..Gurmukhi Addak
(0x00a75, 0x00a75,), # Gurmukhi Sign Yakash ..Gurmukhi Sign Yakash
(0x00a81, 0x00a82,), # Gujarati Sign Candrabind..Gujarati Sign Anusvara
(0x00abc, 0x00abc,), # Gujarati Sign Nukta ..Gujarati Sign Nukta
(0x00ac1, 0x00ac5,), # Gujarati Vowel Sign U ..Gujarati Vowel Sign Cand
(0x00ac7, 0x00ac8,), # Gujarati Vowel Sign E ..Gujarati Vowel Sign Ai
(0x00acd, 0x00acd,), # Gujarati Sign Virama ..Gujarati Sign Virama
(0x00ae2, 0x00ae3,), # Gujarati Vowel Sign Voca..Gujarati Vowel Sign Voca
(0x00afa, 0x00aff,), # Gujarati Sign Sukun ..Gujarati Sign Two-circle
(0x00b01, 0x00b01,), # Oriya Sign Candrabindu ..Oriya Sign Candrabindu
(0x00b3c, 0x00b3c,), # Oriya Sign Nukta ..Oriya Sign Nukta
(0x00b3f, 0x00b3f,), # Oriya Vowel Sign I ..Oriya Vowel Sign I
(0x00b41, 0x00b44,), # Oriya Vowel Sign U ..Oriya Vowel Sign Vocalic
(0x00b4d, 0x00b4d,), # Oriya Sign Virama ..Oriya Sign Virama
(0x00b56, 0x00b56,), # Oriya Ai Length Mark ..Oriya Ai Length Mark
(0x00b62, 0x00b63,), # Oriya Vowel Sign Vocalic..Oriya Vowel Sign Vocalic
(0x00b82, 0x00b82,), # Tamil Sign Anusvara ..Tamil Sign Anusvara
(0x00bc0, 0x00bc0,), # Tamil Vowel Sign Ii ..Tamil Vowel Sign Ii
(0x00bcd, 0x00bcd,), # Tamil Sign Virama ..Tamil Sign Virama
(0x00c00, 0x00c00,), # Telugu Sign Combining Ca..Telugu Sign Combining Ca
(0x00c04, 0x00c04,), # Telugu Sign Combining An..Telugu Sign Combining An
(0x00c3e, 0x00c40,), # Telugu Vowel Sign Aa ..Telugu Vowel Sign Ii
(0x00c46, 0x00c48,), # Telugu Vowel Sign E ..Telugu Vowel Sign Ai
(0x00c4a, 0x00c4d,), # Telugu Vowel Sign O ..Telugu Sign Virama
(0x00c55, 0x00c56,), # Telugu Length Mark ..Telugu Ai Length Mark
(0x00c62, 0x00c63,), # Telugu Vowel Sign Vocali..Telugu Vowel Sign Vocali
(0x00c81, 0x00c81,), # Kannada Sign Candrabindu..Kannada Sign Candrabindu
(0x00cbc, 0x00cbc,), # Kannada Sign Nukta ..Kannada Sign Nukta
(0x00cbf, 0x00cbf,), # Kannada Vowel Sign I ..Kannada Vowel Sign I
(0x00cc6, 0x00cc6,), # Kannada Vowel Sign E ..Kannada Vowel Sign E
(0x00ccc, 0x00ccd,), # Kannada Vowel Sign Au ..Kannada Sign Virama
(0x00ce2, 0x00ce3,), # Kannada Vowel Sign Vocal..Kannada Vowel Sign Vocal
(0x00d00, 0x00d01,), # Malayalam Sign Combining..Malayalam Sign Candrabin
(0x00d3b, 0x00d3c,), # Malayalam Sign Vertical ..Malayalam Sign Circular
(0x00d41, 0x00d44,), # Malayalam Vowel Sign U ..Malayalam Vowel Sign Voc
(0x00d4d, 0x00d4d,), # Malayalam Sign Virama ..Malayalam Sign Virama
(0x00d62, 0x00d63,), # Malayalam Vowel Sign Voc..Malayalam Vowel Sign Voc
(0x00dca, 0x00dca,), # Sinhala Sign Al-lakuna ..Sinhala Sign Al-lakuna
(0x00dd2, 0x00dd4,), # Sinhala Vowel Sign Ketti..Sinhala Vowel Sign Ketti
(0x00dd6, 0x00dd6,), # Sinhala Vowel Sign Diga ..Sinhala Vowel Sign Diga
(0x00e31, 0x00e31,), # Thai Character Mai Han-a..Thai Character Mai Han-a
(0x00e34, 0x00e3a,), # Thai Character Sara I ..Thai Character Phinthu
(0x00e47, 0x00e4e,), # Thai Character Maitaikhu..Thai Character Yamakkan
(0x00eb1, 0x00eb1,), # Lao Vowel Sign Mai Kan ..Lao Vowel Sign Mai Kan
(0x00eb4, 0x00ebc,), # Lao Vowel Sign I ..Lao Semivowel Sign Lo
(0x00ec8, 0x00ecd,), # Lao Tone Mai Ek ..Lao Niggahita
(0x00f18, 0x00f19,), # Tibetan Astrological Sig..Tibetan Astrological Sig
(0x00f35, 0x00f35,), # Tibetan Mark Ngas Bzung ..Tibetan Mark Ngas Bzung
(0x00f37, 0x00f37,), # Tibetan Mark Ngas Bzung ..Tibetan Mark Ngas Bzung
(0x00f39, 0x00f39,), # Tibetan Mark Tsa -phru ..Tibetan Mark Tsa -phru
(0x00f71, 0x00f7e,), # Tibetan Vowel Sign Aa ..Tibetan Sign Rjes Su Nga
(0x00f80, 0x00f84,), # Tibetan Vowel Sign Rever..Tibetan Mark Halanta
(0x00f86, 0x00f87,), # Tibetan Sign Lci Rtags ..Tibetan Sign Yang Rtags
(0x00f8d, 0x00f97,), # Tibetan Subjoined Sign L..Tibetan Subjoined Letter
(0x00f99, 0x00fbc,), # Tibetan Subjoined Letter..Tibetan Subjoined Letter
(0x00fc6, 0x00fc6,), # Tibetan Symbol Padma Gda..Tibetan Symbol Padma Gda
(0x0102d, 0x01030,), # Myanmar Vowel Sign I ..Myanmar Vowel Sign Uu
(0x01032, 0x01037,), # Myanmar Vowel Sign Ai ..Myanmar Sign Dot Below
(0x01039, 0x0103a,), # Myanmar Sign Virama ..Myanmar Sign Asat
(0x0103d, 0x0103e,), # Myanmar Consonant Sign M..Myanmar Consonant Sign M
(0x01058, 0x01059,), # Myanmar Vowel Sign Vocal..Myanmar Vowel Sign Vocal
(0x0105e, 0x01060,), # Myanmar Consonant Sign M..Myanmar Consonant Sign M
(0x01071, 0x01074,), # Myanmar Vowel Sign Geba ..Myanmar Vowel Sign Kayah
(0x01082, 0x01082,), # Myanmar Consonant Sign S..Myanmar Consonant Sign S
(0x01085, 0x01086,), # Myanmar Vowel Sign Shan ..Myanmar Vowel Sign Shan
(0x0108d, 0x0108d,), # Myanmar Sign Shan Counci..Myanmar Sign Shan Counci
(0x0109d, 0x0109d,), # Myanmar Vowel Sign Aiton..Myanmar Vowel Sign Aiton
(0x0135d, 0x0135f,), # Ethiopic Combining Gemin..Ethiopic Combining Gemin
(0x01712, 0x01714,), # Tagalog Vowel Sign I ..Tagalog Sign Virama
(0x01732, 0x01734,), # Hanunoo Vowel Sign I ..Hanunoo Sign Pamudpod
(0x01752, 0x01753,), # Buhid Vowel Sign I ..Buhid Vowel Sign U
(0x01772, 0x01773,), # Tagbanwa Vowel Sign I ..Tagbanwa Vowel Sign U
(0x017b4, 0x017b5,), # Khmer Vowel Inherent Aq ..Khmer Vowel Inherent Aa
(0x017b7, 0x017bd,), # Khmer Vowel Sign I ..Khmer Vowel Sign Ua
(0x017c6, 0x017c6,), # Khmer Sign Nikahit ..Khmer Sign Nikahit
(0x017c9, 0x017d3,), # Khmer Sign Muusikatoan ..Khmer Sign Bathamasat
(0x017dd, 0x017dd,), # Khmer Sign Atthacan ..Khmer Sign Atthacan
(0x0180b, 0x0180d,), # Mongolian Free Variation..Mongolian Free Variation
(0x01885, 0x01886,), # Mongolian Letter Ali Gal..Mongolian Letter Ali Gal
(0x018a9, 0x018a9,), # Mongolian Letter Ali Gal..Mongolian Letter Ali Gal
(0x01920, 0x01922,), # Limbu Vowel Sign A ..Limbu Vowel Sign U
(0x01927, 0x01928,), # Limbu Vowel Sign E ..Limbu Vowel Sign O
(0x01932, 0x01932,), # Limbu Small Letter Anusv..Limbu Small Letter Anusv
(0x01939, 0x0193b,), # Limbu Sign Mukphreng ..Limbu Sign Sa-i
(0x01a17, 0x01a18,), # Buginese Vowel Sign I ..Buginese Vowel Sign U
(0x01a1b, 0x01a1b,), # Buginese Vowel Sign Ae ..Buginese Vowel Sign Ae
(0x01a56, 0x01a56,), # Tai Tham Consonant Sign ..Tai Tham Consonant Sign
(0x01a58, 0x01a5e,), # Tai Tham Sign Mai Kang L..Tai Tham Consonant Sign
(0x01a60, 0x01a60,), # Tai Tham Sign Sakot ..Tai Tham Sign Sakot
(0x01a62, 0x01a62,), # Tai Tham Vowel Sign Mai ..Tai Tham Vowel Sign Mai
(0x01a65, 0x01a6c,), # Tai Tham Vowel Sign I ..Tai Tham Vowel Sign Oa B
(0x01a73, 0x01a7c,), # Tai Tham Vowel Sign Oa A..Tai Tham Sign Khuen-lue
(0x01a7f, 0x01a7f,), # Tai Tham Combining Crypt..Tai Tham Combining Crypt
(0x01ab0, 0x01abe,), # Combining Doubled Circum..Combining Parentheses Ov
(0x01b00, 0x01b03,), # Balinese Sign Ulu Ricem ..Balinese Sign Surang
(0x01b34, 0x01b34,), # Balinese Sign Rerekan ..Balinese Sign Rerekan
(0x01b36, 0x01b3a,), # Balinese Vowel Sign Ulu ..Balinese Vowel Sign Ra R
(0x01b3c, 0x01b3c,), # Balinese Vowel Sign La L..Balinese Vowel Sign La L
(0x01b42, 0x01b42,), # Balinese Vowel Sign Pepe..Balinese Vowel Sign Pepe
(0x01b6b, 0x01b73,), # Balinese Musical Symbol ..Balinese Musical Symbol
(0x01b80, 0x01b81,), # Sundanese Sign Panyecek ..Sundanese Sign Panglayar
(0x01ba2, 0x01ba5,), # Sundanese Consonant Sign..Sundanese Vowel Sign Pan
(0x01ba8, 0x01ba9,), # Sundanese Vowel Sign Pam..Sundanese Vowel Sign Pan
(0x01bab, 0x01bad,), # Sundanese Sign Virama ..Sundanese Consonant Sign
(0x01be6, 0x01be6,), # Batak Sign Tompi ..Batak Sign Tompi
(0x01be8, 0x01be9,), # Batak Vowel Sign Pakpak ..Batak Vowel Sign Ee
(0x01bed, 0x01bed,), # Batak Vowel Sign Karo O ..Batak Vowel Sign Karo O
(0x01bef, 0x01bf1,), # Batak Vowel Sign U For S..Batak Consonant Sign H
(0x01c2c, 0x01c33,), # Lepcha Vowel Sign E ..Lepcha Consonant Sign T
(0x01c36, 0x01c37,), # Lepcha Sign Ran ..Lepcha Sign Nukta
(0x01cd0, 0x01cd2,), # Vedic Tone Karshana ..Vedic Tone Prenkha
(0x01cd4, 0x01ce0,), # Vedic Sign Yajurvedic Mi..Vedic Tone Rigvedic Kash
(0x01ce2, 0x01ce8,), # Vedic Sign Visarga Svari..Vedic Sign Visarga Anuda
(0x01ced, 0x01ced,), # Vedic Sign Tiryak ..Vedic Sign Tiryak
(0x01cf4, 0x01cf4,), # Vedic Tone Candra Above ..Vedic Tone Candra Above
(0x01cf8, 0x01cf9,), # Vedic Tone Ring Above ..Vedic Tone Double Ring A
(0x01dc0, 0x01df9,), # Combining Dotted Grave A..Combining Wide Inverted
(0x01dfb, 0x01dff,), # Combining Deletion Mark ..Combining Right Arrowhea
(0x020d0, 0x020f0,), # Combining Left Harpoon A..Combining Asterisk Above
(0x02cef, 0x02cf1,), # Coptic Combining Ni Abov..Coptic Combining Spiritu
(0x02d7f, 0x02d7f,), # Tifinagh Consonant Joine..Tifinagh Consonant Joine
(0x02de0, 0x02dff,), # Combining Cyrillic Lette..Combining Cyrillic Lette
(0x0302a, 0x0302d,), # Ideographic Level Tone M..Ideographic Entering Ton
(0x03099, 0x0309a,), # Combining Katakana-hirag..Combining Katakana-hirag
(0x0a66f, 0x0a672,), # Combining Cyrillic Vzmet..Combining Cyrillic Thous
(0x0a674, 0x0a67d,), # Combining Cyrillic Lette..Combining Cyrillic Payer
(0x0a69e, 0x0a69f,), # Combining Cyrillic Lette..Combining Cyrillic Lette
(0x0a6f0, 0x0a6f1,), # Bamum Combining Mark Koq..Bamum Combining Mark Tuk
(0x0a802, 0x0a802,), # Syloti Nagri Sign Dvisva..Syloti Nagri Sign Dvisva
(0x0a806, 0x0a806,), # Syloti Nagri Sign Hasant..Syloti Nagri Sign Hasant
(0x0a80b, 0x0a80b,), # Syloti Nagri Sign Anusva..Syloti Nagri Sign Anusva
(0x0a825, 0x0a826,), # Syloti Nagri Vowel Sign ..Syloti Nagri Vowel Sign
(0x0a8c4, 0x0a8c5,), # Saurashtra Sign Virama ..Saurashtra Sign Candrabi
(0x0a8e0, 0x0a8f1,), # Combining Devanagari Dig..Combining Devanagari Sig
(0x0a8ff, 0x0a8ff,), # Devanagari Vowel Sign Ay..Devanagari Vowel Sign Ay
(0x0a926, 0x0a92d,), # Kayah Li Vowel Ue ..Kayah Li Tone Calya Plop
(0x0a947, 0x0a951,), # Rejang Vowel Sign I ..Rejang Consonant Sign R
(0x0a980, 0x0a982,), # Javanese Sign Panyangga ..Javanese Sign Layar
(0x0a9b3, 0x0a9b3,), # Javanese Sign Cecak Telu..Javanese Sign Cecak Telu
(0x0a9b6, 0x0a9b9,), # Javanese Vowel Sign Wulu..Javanese Vowel Sign Suku
(0x0a9bc, 0x0a9bd,), # Javanese Vowel Sign Pepe..Javanese Consonant Sign
(0x0a9e5, 0x0a9e5,), # Myanmar Sign Shan Saw ..Myanmar Sign Shan Saw
(0x0aa29, 0x0aa2e,), # Cham Vowel Sign Aa ..Cham Vowel Sign Oe
(0x0aa31, 0x0aa32,), # Cham Vowel Sign Au ..Cham Vowel Sign Ue
(0x0aa35, 0x0aa36,), # Cham Consonant Sign La ..Cham Consonant Sign Wa
(0x0aa43, 0x0aa43,), # Cham Consonant Sign Fina..Cham Consonant Sign Fina
(0x0aa4c, 0x0aa4c,), # Cham Consonant Sign Fina..Cham Consonant Sign Fina
(0x0aa7c, 0x0aa7c,), # Myanmar Sign Tai Laing T..Myanmar Sign Tai Laing T
(0x0aab0, 0x0aab0,), # Tai Viet Mai Kang ..Tai Viet Mai Kang
(0x0aab2, 0x0aab4,), # Tai Viet Vowel I ..Tai Viet Vowel U
(0x0aab7, 0x0aab8,), # Tai Viet Mai Khit ..Tai Viet Vowel Ia
(0x0aabe, 0x0aabf,), # Tai Viet Vowel Am ..Tai Viet Tone Mai Ek
(0x0aac1, 0x0aac1,), # Tai Viet Tone Mai Tho ..Tai Viet Tone Mai Tho
(0x0aaec, 0x0aaed,), # Meetei Mayek Vowel Sign ..Meetei Mayek Vowel Sign
(0x0aaf6, 0x0aaf6,), # Meetei Mayek Virama ..Meetei Mayek Virama
(0x0abe5, 0x0abe5,), # Meetei Mayek Vowel Sign ..Meetei Mayek Vowel Sign
(0x0abe8, 0x0abe8,), # Meetei Mayek Vowel Sign ..Meetei Mayek Vowel Sign
(0x0abed, 0x0abed,), # Meetei Mayek Apun Iyek ..Meetei Mayek Apun Iyek
(0x0fb1e, 0x0fb1e,), # Hebrew Point Judeo-spani..Hebrew Point Judeo-spani
(0x0fe00, 0x0fe0f,), # Variation Selector-1 ..Variation Selector-16
(0x0fe20, 0x0fe2f,), # Combining Ligature Left ..Combining Cyrillic Titlo
(0x101fd, 0x101fd,), # Phaistos Disc Sign Combi..Phaistos Disc Sign Combi
(0x102e0, 0x102e0,), # Coptic Epact Thousands M..Coptic Epact Thousands M
(0x10376, 0x1037a,), # Combining Old Permic Let..Combining Old Permic Let
(0x10a01, 0x10a03,), # Kharoshthi Vowel Sign I ..Kharoshthi Vowel Sign Vo
(0x10a05, 0x10a06,), # Kharoshthi Vowel Sign E ..Kharoshthi Vowel Sign O
(0x10a0c, 0x10a0f,), # Kharoshthi Vowel Length ..Kharoshthi Sign Visarga
(0x10a38, 0x10a3a,), # Kharoshthi Sign Bar Abov..Kharoshthi Sign Dot Belo
(0x10a3f, 0x10a3f,), # Kharoshthi Virama ..Kharoshthi Virama
(0x10ae5, 0x10ae6,), # Manichaean Abbreviation ..Manichaean Abbreviation
(0x10d24, 0x10d27,), # Hanifi Rohingya Sign Har..Hanifi Rohingya Sign Tas
(0x10f46, 0x10f50,), # Sogdian Combining Dot Be..Sogdian Combining Stroke
(0x11001, 0x11001,), # Brahmi Sign Anusvara ..Brahmi Sign Anusvara
(0x11038, 0x11046,), # Brahmi Vowel Sign Aa ..Brahmi Virama
(0x1107f, 0x11081,), # Brahmi Number Joiner ..Kaithi Sign Anusvara
(0x110b3, 0x110b6,), # Kaithi Vowel Sign U ..Kaithi Vowel Sign Ai
(0x110b9, 0x110ba,), # Kaithi Sign Virama ..Kaithi Sign Nukta
(0x11100, 0x11102,), # Chakma Sign Candrabindu ..Chakma Sign Visarga
(0x11127, 0x1112b,), # Chakma Vowel Sign A ..Chakma Vowel Sign Uu
(0x1112d, 0x11134,), # Chakma Vowel Sign Ai ..Chakma Maayyaa
(0x11173, 0x11173,), # Mahajani Sign Nukta ..Mahajani Sign Nukta
(0x11180, 0x11181,), # Sharada Sign Candrabindu..Sharada Sign Anusvara
(0x111b6, 0x111be,), # Sharada Vowel Sign U ..Sharada Vowel Sign O
(0x111c9, 0x111cc,), # Sharada Sandhi Mark ..Sharada Extra Short Vowe
(0x1122f, 0x11231,), # Khojki Vowel Sign U ..Khojki Vowel Sign Ai
(0x11234, 0x11234,), # Khojki Sign Anusvara ..Khojki Sign Anusvara
(0x11236, 0x11237,), # Khojki Sign Nukta ..Khojki Sign Shadda
(0x1123e, 0x1123e,), # Khojki Sign Sukun ..Khojki Sign Sukun
(0x112df, 0x112df,), # Khudawadi Sign Anusvara ..Khudawadi Sign Anusvara
(0x112e3, 0x112ea,), # Khudawadi Vowel Sign U ..Khudawadi Sign Virama
(0x11300, 0x11301,), # Grantha Sign Combining A..Grantha Sign Candrabindu
(0x1133b, 0x1133c,), # Combining Bindu Below ..Grantha Sign Nukta
(0x11340, 0x11340,), # Grantha Vowel Sign Ii ..Grantha Vowel Sign Ii
(0x11366, 0x1136c,), # Combining Grantha Digit ..Combining Grantha Digit
(0x11370, 0x11374,), # Combining Grantha Letter..Combining Grantha Letter
(0x11438, 0x1143f,), # Newa Vowel Sign U ..Newa Vowel Sign Ai
(0x11442, 0x11444,), # Newa Sign Virama ..Newa Sign Anusvara
(0x11446, 0x11446,), # Newa Sign Nukta ..Newa Sign Nukta
(0x1145e, 0x1145e,), # Newa Sandhi Mark ..Newa Sandhi Mark
(0x114b3, 0x114b8,), # Tirhuta Vowel Sign U ..Tirhuta Vowel Sign Vocal
(0x114ba, 0x114ba,), # Tirhuta Vowel Sign Short..Tirhuta Vowel Sign Short
(0x114bf, 0x114c0,), # Tirhuta Sign Candrabindu..Tirhuta Sign Anusvara
(0x114c2, 0x114c3,), # Tirhuta Sign Virama ..Tirhuta Sign Nukta
(0x115b2, 0x115b5,), # Siddham Vowel Sign U ..Siddham Vowel Sign Vocal
(0x115bc, 0x115bd,), # Siddham Sign Candrabindu..Siddham Sign Anusvara
(0x115bf, 0x115c0,), # Siddham Sign Virama ..Siddham Sign Nukta
(0x115dc, 0x115dd,), # Siddham Vowel Sign Alter..Siddham Vowel Sign Alter
(0x11633, 0x1163a,), # Modi Vowel Sign U ..Modi Vowel Sign Ai
(0x1163d, 0x1163d,), # Modi Sign Anusvara ..Modi Sign Anusvara
(0x1163f, 0x11640,), # Modi Sign Virama ..Modi Sign Ardhacandra
(0x116ab, 0x116ab,), # Takri Sign Anusvara ..Takri Sign Anusvara
(0x116ad, 0x116ad,), # Takri Vowel Sign Aa ..Takri Vowel Sign Aa
(0x116b0, 0x116b5,), # Takri Vowel Sign U ..Takri Vowel Sign Au
(0x116b7, 0x116b7,), # Takri Sign Nukta ..Takri Sign Nukta
(0x1171d, 0x1171f,), # Ahom Consonant Sign Medi..Ahom Consonant Sign Medi
(0x11722, 0x11725,), # Ahom Vowel Sign I ..Ahom Vowel Sign Uu
(0x11727, 0x1172b,), # Ahom Vowel Sign Aw ..Ahom Sign Killer
(0x1182f, 0x11837,), # Dogra Vowel Sign U ..Dogra Sign Anusvara
(0x11839, 0x1183a,), # Dogra Sign Virama ..Dogra Sign Nukta
(0x119d4, 0x119d7,), # Nandinagari Vowel Sign U..Nandinagari Vowel Sign V
(0x119da, 0x119db,), # Nandinagari Vowel Sign E..Nandinagari Vowel Sign A
(0x119e0, 0x119e0,), # Nandinagari Sign Virama ..Nandinagari Sign Virama
(0x11a01, 0x11a0a,), # Zanabazar Square Vowel S..Zanabazar Square Vowel L
(0x11a33, 0x11a38,), # Zanabazar Square Final C..Zanabazar Square Sign An
(0x11a3b, 0x11a3e,), # Zanabazar Square Cluster..Zanabazar Square Cluster
(0x11a47, 0x11a47,), # Zanabazar Square Subjoin..Zanabazar Square Subjoin
(0x11a51, 0x11a56,), # Soyombo Vowel Sign I ..Soyombo Vowel Sign Oe
(0x11a59, 0x11a5b,), # Soyombo Vowel Sign Vocal..Soyombo Vowel Length Mar
(0x11a8a, 0x11a96,), # Soyombo Final Consonant ..Soyombo Sign Anusvara
(0x11a98, 0x11a99,), # Soyombo Gemination Mark ..Soyombo Subjoiner
(0x11c30, 0x11c36,), # Bhaiksuki Vowel Sign I ..Bhaiksuki Vowel Sign Voc
(0x11c38, 0x11c3d,), # Bhaiksuki Vowel Sign E ..Bhaiksuki Sign Anusvara
(0x11c3f, 0x11c3f,), # Bhaiksuki Sign Virama ..Bhaiksuki Sign Virama
(0x11c92, 0x11ca7,), # Marchen Subjoined Letter..Marchen Subjoined Letter
(0x11caa, 0x11cb0,), # Marchen Subjoined Letter..Marchen Vowel Sign Aa
(0x11cb2, 0x11cb3,), # Marchen Vowel Sign U ..Marchen Vowel Sign E
(0x11cb5, 0x11cb6,), # Marchen Sign Anusvara ..Marchen Sign Candrabindu
(0x11d31, 0x11d36,), # Masaram Gondi Vowel Sign..Masaram Gondi Vowel Sign
(0x11d3a, 0x11d3a,), # Masaram Gondi Vowel Sign..Masaram Gondi Vowel Sign
(0x11d3c, 0x11d3d,), # Masaram Gondi Vowel Sign..Masaram Gondi Vowel Sign
(0x11d3f, 0x11d45,), # Masaram Gondi Vowel Sign..Masaram Gondi Virama
(0x11d47, 0x11d47,), # Masaram Gondi Ra-kara ..Masaram Gondi Ra-kara
(0x11d90, 0x11d91,), # Gunjala Gondi Vowel Sign..Gunjala Gondi Vowel Sign
(0x11d95, 0x11d95,), # Gunjala Gondi Sign Anusv..Gunjala Gondi Sign Anusv
(0x11d97, 0x11d97,), # Gunjala Gondi Virama ..Gunjala Gondi Virama
(0x11ef3, 0x11ef4,), # Makasar Vowel Sign I ..Makasar Vowel Sign U
(0x16af0, 0x16af4,), # Bassa Vah Combining High..Bassa Vah Combining High
(0x16b30, 0x16b36,), # Pahawh Hmong Mark Cim Tu..Pahawh Hmong Mark Cim Ta
(0x16f4f, 0x16f4f,), # Miao Sign Consonant Modi..Miao Sign Consonant Modi
(0x16f8f, 0x16f92,), # Miao Tone Right ..Miao Tone Below
(0x1bc9d, 0x1bc9e,), # Duployan Thick Letter Se..Duployan Double Mark
(0x1d167, 0x1d169,), # Musical Symbol Combining..Musical Symbol Combining
(0x1d17b, 0x1d182,), # Musical Symbol Combining..Musical Symbol Combining
(0x1d185, 0x1d18b,), # Musical Symbol Combining..Musical Symbol Combining
(0x1d1aa, 0x1d1ad,), # Musical Symbol Combining..Musical Symbol Combining
(0x1d242, 0x1d244,), # Combining Greek Musical ..Combining Greek Musical
(0x1da00, 0x1da36,), # Signwriting Head Rim ..Signwriting Air Sucking
(0x1da3b, 0x1da6c,), # Signwriting Mouth Closed..Signwriting Excitement
(0x1da75, 0x1da75,), # Signwriting Upper Body T..Signwriting Upper Body T
(0x1da84, 0x1da84,), # Signwriting Location Hea..Signwriting Location Hea
(0x1da9b, 0x1da9f,), # Signwriting Fill Modifie..Signwriting Fill Modifie
(0x1daa1, 0x1daaf,), # Signwriting Rotation Mod..Signwriting Rotation Mod
(0x1e000, 0x1e006,), # Combining Glagolitic Let..Combining Glagolitic Let
(0x1e008, 0x1e018,), # Combining Glagolitic Let..Combining Glagolitic Let
(0x1e01b, 0x1e021,), # Combining Glagolitic Let..Combining Glagolitic Let
(0x1e023, 0x1e024,), # Combining Glagolitic Let..Combining Glagolitic Let
(0x1e026, 0x1e02a,), # Combining Glagolitic Let..Combining Glagolitic Let
(0x1e130, 0x1e136,), # Nyiakeng Puachue Hmong T..Nyiakeng Puachue Hmong T
(0x1e2ec, 0x1e2ef,), # Wancho Tone Tup ..Wancho Tone Koini
(0x1e8d0, 0x1e8d6,), # Mende Kikakui Combining ..Mende Kikakui Combining
(0x1e944, 0x1e94a,), # Adlam Alif Lengthener ..Adlam Nukta
(0xe0100, 0xe01ef,), # Variation Selector-17 ..Variation Selector-256
),
'12.1.0': (
# Source: DerivedGeneralCategory-12.1.0.txt
# Date: 2019-03-10, 10:53:08 GMT
#
(0x00300, 0x0036f,), # Combining Grave Accent ..Combining Latin Small Le
(0x00483, 0x00489,), # Combining Cyrillic Titlo..Combining Cyrillic Milli
(0x00591, 0x005bd,), # Hebrew Accent Etnahta ..Hebrew Point Meteg
(0x005bf, 0x005bf,), # Hebrew Point Rafe ..Hebrew Point Rafe
(0x005c1, 0x005c2,), # Hebrew Point Shin Dot ..Hebrew Point Sin Dot
(0x005c4, 0x005c5,), # Hebrew Mark Upper Dot ..Hebrew Mark Lower Dot
(0x005c7, 0x005c7,), # Hebrew Point Qamats Qata..Hebrew Point Qamats Qata
(0x00610, 0x0061a,), # Arabic Sign Sallallahou ..Arabic Small Kasra
(0x0064b, 0x0065f,), # Arabic Fathatan ..Arabic Wavy Hamza Below
(0x00670, 0x00670,), # Arabic Letter Superscrip..Arabic Letter Superscrip
(0x006d6, 0x006dc,), # Arabic Small High Ligatu..Arabic Small High Seen
(0x006df, 0x006e4,), # Arabic Small High Rounde..Arabic Small High Madda
(0x006e7, 0x006e8,), # Arabic Small High Yeh ..Arabic Small High Noon
(0x006ea, 0x006ed,), # Arabic Empty Centre Low ..Arabic Small Low Meem
(0x00711, 0x00711,), # Syriac Letter Superscrip..Syriac Letter Superscrip
(0x00730, 0x0074a,), # Syriac Pthaha Above ..Syriac Barrekh
(0x007a6, 0x007b0,), # Thaana Abafili ..Thaana Sukun
(0x007eb, 0x007f3,), # Nko Combining Short High..Nko Combining Double Dot
(0x007fd, 0x007fd,), # Nko Dantayalan ..Nko Dantayalan
(0x00816, 0x00819,), # Samaritan Mark In ..Samaritan Mark Dagesh
(0x0081b, 0x00823,), # Samaritan Mark Epentheti..Samaritan Vowel Sign A
(0x00825, 0x00827,), # Samaritan Vowel Sign Sho..Samaritan Vowel Sign U
(0x00829, 0x0082d,), # Samaritan Vowel Sign Lon..Samaritan Mark Nequdaa
(0x00859, 0x0085b,), # Mandaic Affrication Mark..Mandaic Gemination Mark
(0x008d3, 0x008e1,), # Arabic Small Low Waw ..Arabic Small High Sign S
(0x008e3, 0x00902,), # Arabic Turned Damma Belo..Devanagari Sign Anusvara
(0x0093a, 0x0093a,), # Devanagari Vowel Sign Oe..Devanagari Vowel Sign Oe
(0x0093c, 0x0093c,), # Devanagari Sign Nukta ..Devanagari Sign Nukta
(0x00941, 0x00948,), # Devanagari Vowel Sign U ..Devanagari Vowel Sign Ai
(0x0094d, 0x0094d,), # Devanagari Sign Virama ..Devanagari Sign Virama
(0x00951, 0x00957,), # Devanagari Stress Sign U..Devanagari Vowel Sign Uu
(0x00962, 0x00963,), # Devanagari Vowel Sign Vo..Devanagari Vowel Sign Vo
(0x00981, 0x00981,), # Bengali Sign Candrabindu..Bengali Sign Candrabindu
(0x009bc, 0x009bc,), # Bengali Sign Nukta ..Bengali Sign Nukta
(0x009c1, 0x009c4,), # Bengali Vowel Sign U ..Bengali Vowel Sign Vocal
(0x009cd, 0x009cd,), # Bengali Sign Virama ..Bengali Sign Virama
(0x009e2, 0x009e3,), # Bengali Vowel Sign Vocal..Bengali Vowel Sign Vocal
(0x009fe, 0x009fe,), # Bengali Sandhi Mark ..Bengali Sandhi Mark
(0x00a01, 0x00a02,), # Gurmukhi Sign Adak Bindi..Gurmukhi Sign Bindi
(0x00a3c, 0x00a3c,), # Gurmukhi Sign Nukta ..Gurmukhi Sign Nukta
(0x00a41, 0x00a42,), # Gurmukhi Vowel Sign U ..Gurmukhi Vowel Sign Uu
(0x00a47, 0x00a48,), # Gurmukhi Vowel Sign Ee ..Gurmukhi Vowel Sign Ai
(0x00a4b, 0x00a4d,), # Gurmukhi Vowel Sign Oo ..Gurmukhi Sign Virama
(0x00a51, 0x00a51,), # Gurmukhi Sign Udaat ..Gurmukhi Sign Udaat
(0x00a70, 0x00a71,), # Gurmukhi Tippi ..Gurmukhi Addak
(0x00a75, 0x00a75,), # Gurmukhi Sign Yakash ..Gurmukhi Sign Yakash
(0x00a81, 0x00a82,), # Gujarati Sign Candrabind..Gujarati Sign Anusvara
(0x00abc, 0x00abc,), # Gujarati Sign Nukta ..Gujarati Sign Nukta
(0x00ac1, 0x00ac5,), # Gujarati Vowel Sign U ..Gujarati Vowel Sign Cand
(0x00ac7, 0x00ac8,), # Gujarati Vowel Sign E ..Gujarati Vowel Sign Ai
(0x00acd, 0x00acd,), # Gujarati Sign Virama ..Gujarati Sign Virama
(0x00ae2, 0x00ae3,), # Gujarati Vowel Sign Voca..Gujarati Vowel Sign Voca
(0x00afa, 0x00aff,), # Gujarati Sign Sukun ..Gujarati Sign Two-circle
(0x00b01, 0x00b01,), # Oriya Sign Candrabindu ..Oriya Sign Candrabindu
(0x00b3c, 0x00b3c,), # Oriya Sign Nukta ..Oriya Sign Nukta
(0x00b3f, 0x00b3f,), # Oriya Vowel Sign I ..Oriya Vowel Sign I
(0x00b41, 0x00b44,), # Oriya Vowel Sign U ..Oriya Vowel Sign Vocalic
(0x00b4d, 0x00b4d,), # Oriya Sign Virama ..Oriya Sign Virama
(0x00b56, 0x00b56,), # Oriya Ai Length Mark ..Oriya Ai Length Mark
(0x00b62, 0x00b63,), # Oriya Vowel Sign Vocalic..Oriya Vowel Sign Vocalic
(0x00b82, 0x00b82,), # Tamil Sign Anusvara ..Tamil Sign Anusvara
(0x00bc0, 0x00bc0,), # Tamil Vowel Sign Ii ..Tamil Vowel Sign Ii
(0x00bcd, 0x00bcd,), # Tamil Sign Virama ..Tamil Sign Virama
(0x00c00, 0x00c00,), # Telugu Sign Combining Ca..Telugu Sign Combining Ca
(0x00c04, 0x00c04,), # Telugu Sign Combining An..Telugu Sign Combining An
(0x00c3e, 0x00c40,), # Telugu Vowel Sign Aa ..Telugu Vowel Sign Ii
(0x00c46, 0x00c48,), # Telugu Vowel Sign E ..Telugu Vowel Sign Ai
(0x00c4a, 0x00c4d,), # Telugu Vowel Sign O ..Telugu Sign Virama
(0x00c55, 0x00c56,), # Telugu Length Mark ..Telugu Ai Length Mark
(0x00c62, 0x00c63,), # Telugu Vowel Sign Vocali..Telugu Vowel Sign Vocali
(0x00c81, 0x00c81,), # Kannada Sign Candrabindu..Kannada Sign Candrabindu
(0x00cbc, 0x00cbc,), # Kannada Sign Nukta ..Kannada Sign Nukta
(0x00cbf, 0x00cbf,), # Kannada Vowel Sign I ..Kannada Vowel Sign I
(0x00cc6, 0x00cc6,), # Kannada Vowel Sign E ..Kannada Vowel Sign E
(0x00ccc, 0x00ccd,), # Kannada Vowel Sign Au ..Kannada Sign Virama
(0x00ce2, 0x00ce3,), # Kannada Vowel Sign Vocal..Kannada Vowel Sign Vocal
(0x00d00, 0x00d01,), # Malayalam Sign Combining..Malayalam Sign Candrabin
(0x00d3b, 0x00d3c,), # Malayalam Sign Vertical ..Malayalam Sign Circular
(0x00d41, 0x00d44,), # Malayalam Vowel Sign U ..Malayalam Vowel Sign Voc
(0x00d4d, 0x00d4d,), # Malayalam Sign Virama ..Malayalam Sign Virama
(0x00d62, 0x00d63,), # Malayalam Vowel Sign Voc..Malayalam Vowel Sign Voc
(0x00dca, 0x00dca,), # Sinhala Sign Al-lakuna ..Sinhala Sign Al-lakuna
(0x00dd2, 0x00dd4,), # Sinhala Vowel Sign Ketti..Sinhala Vowel Sign Ketti
(0x00dd6, 0x00dd6,), # Sinhala Vowel Sign Diga ..Sinhala Vowel Sign Diga
(0x00e31, 0x00e31,), # Thai Character Mai Han-a..Thai Character Mai Han-a
(0x00e34, 0x00e3a,), # Thai Character Sara I ..Thai Character Phinthu
(0x00e47, 0x00e4e,), # Thai Character Maitaikhu..Thai Character Yamakkan
(0x00eb1, 0x00eb1,), # Lao Vowel Sign Mai Kan ..Lao Vowel Sign Mai Kan
(0x00eb4, 0x00ebc,), # Lao Vowel Sign I ..Lao Semivowel Sign Lo
(0x00ec8, 0x00ecd,), # Lao Tone Mai Ek ..Lao Niggahita
(0x00f18, 0x00f19,), # Tibetan Astrological Sig..Tibetan Astrological Sig
(0x00f35, 0x00f35,), # Tibetan Mark Ngas Bzung ..Tibetan Mark Ngas Bzung
(0x00f37, 0x00f37,), # Tibetan Mark Ngas Bzung ..Tibetan Mark Ngas Bzung
(0x00f39, 0x00f39,), # Tibetan Mark Tsa -phru ..Tibetan Mark Tsa -phru
(0x00f71, 0x00f7e,), # Tibetan Vowel Sign Aa ..Tibetan Sign Rjes Su Nga
(0x00f80, 0x00f84,), # Tibetan Vowel Sign Rever..Tibetan Mark Halanta
(0x00f86, 0x00f87,), # Tibetan Sign Lci Rtags ..Tibetan Sign Yang Rtags
(0x00f8d, 0x00f97,), # Tibetan Subjoined Sign L..Tibetan Subjoined Letter
(0x00f99, 0x00fbc,), # Tibetan Subjoined Letter..Tibetan Subjoined Letter
(0x00fc6, 0x00fc6,), # Tibetan Symbol Padma Gda..Tibetan Symbol Padma Gda
(0x0102d, 0x01030,), # Myanmar Vowel Sign I ..Myanmar Vowel Sign Uu
(0x01032, 0x01037,), # Myanmar Vowel Sign Ai ..Myanmar Sign Dot Below
(0x01039, 0x0103a,), # Myanmar Sign Virama ..Myanmar Sign Asat
(0x0103d, 0x0103e,), # Myanmar Consonant Sign M..Myanmar Consonant Sign M
(0x01058, 0x01059,), # Myanmar Vowel Sign Vocal..Myanmar Vowel Sign Vocal
(0x0105e, 0x01060,), # Myanmar Consonant Sign M..Myanmar Consonant Sign M
(0x01071, 0x01074,), # Myanmar Vowel Sign Geba ..Myanmar Vowel Sign Kayah
(0x01082, 0x01082,), # Myanmar Consonant Sign S..Myanmar Consonant Sign S
(0x01085, 0x01086,), # Myanmar Vowel Sign Shan ..Myanmar Vowel Sign Shan
(0x0108d, 0x0108d,), # Myanmar Sign Shan Counci..Myanmar Sign Shan Counci
(0x0109d, 0x0109d,), # Myanmar Vowel Sign Aiton..Myanmar Vowel Sign Aiton
(0x0135d, 0x0135f,), # Ethiopic Combining Gemin..Ethiopic Combining Gemin
(0x01712, 0x01714,), # Tagalog Vowel Sign I ..Tagalog Sign Virama
(0x01732, 0x01734,), # Hanunoo Vowel Sign I ..Hanunoo Sign Pamudpod
(0x01752, 0x01753,), # Buhid Vowel Sign I ..Buhid Vowel Sign U
(0x01772, 0x01773,), # Tagbanwa Vowel Sign I ..Tagbanwa Vowel Sign U
(0x017b4, 0x017b5,), # Khmer Vowel Inherent Aq ..Khmer Vowel Inherent Aa
(0x017b7, 0x017bd,), # Khmer Vowel Sign I ..Khmer Vowel Sign Ua
(0x017c6, 0x017c6,), # Khmer Sign Nikahit ..Khmer Sign Nikahit
(0x017c9, 0x017d3,), # Khmer Sign Muusikatoan ..Khmer Sign Bathamasat
(0x017dd, 0x017dd,), # Khmer Sign Atthacan ..Khmer Sign Atthacan
(0x0180b, 0x0180d,), # Mongolian Free Variation..Mongolian Free Variation
(0x01885, 0x01886,), # Mongolian Letter Ali Gal..Mongolian Letter Ali Gal
(0x018a9, 0x018a9,), # Mongolian Letter Ali Gal..Mongolian Letter Ali Gal
(0x01920, 0x01922,), # Limbu Vowel Sign A ..Limbu Vowel Sign U
(0x01927, 0x01928,), # Limbu Vowel Sign E ..Limbu Vowel Sign O
(0x01932, 0x01932,), # Limbu Small Letter Anusv..Limbu Small Letter Anusv
(0x01939, 0x0193b,), # Limbu Sign Mukphreng ..Limbu Sign Sa-i
(0x01a17, 0x01a18,), # Buginese Vowel Sign I ..Buginese Vowel Sign U
(0x01a1b, 0x01a1b,), # Buginese Vowel Sign Ae ..Buginese Vowel Sign Ae
(0x01a56, 0x01a56,), # Tai Tham Consonant Sign ..Tai Tham Consonant Sign
(0x01a58, 0x01a5e,), # Tai Tham Sign Mai Kang L..Tai Tham Consonant Sign
(0x01a60, 0x01a60,), # Tai Tham Sign Sakot ..Tai Tham Sign Sakot
(0x01a62, 0x01a62,), # Tai Tham Vowel Sign Mai ..Tai Tham Vowel Sign Mai
(0x01a65, 0x01a6c,), # Tai Tham Vowel Sign I ..Tai Tham Vowel Sign Oa B
(0x01a73, 0x01a7c,), # Tai Tham Vowel Sign Oa A..Tai Tham Sign Khuen-lue
(0x01a7f, 0x01a7f,), # Tai Tham Combining Crypt..Tai Tham Combining Crypt
(0x01ab0, 0x01abe,), # Combining Doubled Circum..Combining Parentheses Ov
(0x01b00, 0x01b03,), # Balinese Sign Ulu Ricem ..Balinese Sign Surang
(0x01b34, 0x01b34,), # Balinese Sign Rerekan ..Balinese Sign Rerekan
(0x01b36, 0x01b3a,), # Balinese Vowel Sign Ulu ..Balinese Vowel Sign Ra R
(0x01b3c, 0x01b3c,), # Balinese Vowel Sign La L..Balinese Vowel Sign La L
(0x01b42, 0x01b42,), # Balinese Vowel Sign Pepe..Balinese Vowel Sign Pepe
(0x01b6b, 0x01b73,), # Balinese Musical Symbol ..Balinese Musical Symbol
(0x01b80, 0x01b81,), # Sundanese Sign Panyecek ..Sundanese Sign Panglayar
(0x01ba2, 0x01ba5,), # Sundanese Consonant Sign..Sundanese Vowel Sign Pan
(0x01ba8, 0x01ba9,), # Sundanese Vowel Sign Pam..Sundanese Vowel Sign Pan
(0x01bab, 0x01bad,), # Sundanese Sign Virama ..Sundanese Consonant Sign
(0x01be6, 0x01be6,), # Batak Sign Tompi ..Batak Sign Tompi
(0x01be8, 0x01be9,), # Batak Vowel Sign Pakpak ..Batak Vowel Sign Ee
(0x01bed, 0x01bed,), # Batak Vowel Sign Karo O ..Batak Vowel Sign Karo O
(0x01bef, 0x01bf1,), # Batak Vowel Sign U For S..Batak Consonant Sign H
(0x01c2c, 0x01c33,), # Lepcha Vowel Sign E ..Lepcha Consonant Sign T
(0x01c36, 0x01c37,), # Lepcha Sign Ran ..Lepcha Sign Nukta
(0x01cd0, 0x01cd2,), # Vedic Tone Karshana ..Vedic Tone Prenkha
(0x01cd4, 0x01ce0,), # Vedic Sign Yajurvedic Mi..Vedic Tone Rigvedic Kash
(0x01ce2, 0x01ce8,), # Vedic Sign Visarga Svari..Vedic Sign Visarga Anuda
(0x01ced, 0x01ced,), # Vedic Sign Tiryak ..Vedic Sign Tiryak
(0x01cf4, 0x01cf4,), # Vedic Tone Candra Above ..Vedic Tone Candra Above
(0x01cf8, 0x01cf9,), # Vedic Tone Ring Above ..Vedic Tone Double Ring A
(0x01dc0, 0x01df9,), # Combining Dotted Grave A..Combining Wide Inverted
(0x01dfb, 0x01dff,), # Combining Deletion Mark ..Combining Right Arrowhea
(0x020d0, 0x020f0,), # Combining Left Harpoon A..Combining Asterisk Above
(0x02cef, 0x02cf1,), # Coptic Combining Ni Abov..Coptic Combining Spiritu
(0x02d7f, 0x02d7f,), # Tifinagh Consonant Joine..Tifinagh Consonant Joine
(0x02de0, 0x02dff,), # Combining Cyrillic Lette..Combining Cyrillic Lette
(0x0302a, 0x0302d,), # Ideographic Level Tone M..Ideographic Entering Ton
(0x03099, 0x0309a,), # Combining Katakana-hirag..Combining Katakana-hirag
(0x0a66f, 0x0a672,), # Combining Cyrillic Vzmet..Combining Cyrillic Thous
(0x0a674, 0x0a67d,), # Combining Cyrillic Lette..Combining Cyrillic Payer
(0x0a69e, 0x0a69f,), # Combining Cyrillic Lette..Combining Cyrillic Lette
(0x0a6f0, 0x0a6f1,), # Bamum Combining Mark Koq..Bamum Combining Mark Tuk
(0x0a802, 0x0a802,), # Syloti Nagri Sign Dvisva..Syloti Nagri Sign Dvisva
(0x0a806, 0x0a806,), # Syloti Nagri Sign Hasant..Syloti Nagri Sign Hasant
(0x0a80b, 0x0a80b,), # Syloti Nagri Sign Anusva..Syloti Nagri Sign Anusva
(0x0a825, 0x0a826,), # Syloti Nagri Vowel Sign ..Syloti Nagri Vowel Sign
(0x0a8c4, 0x0a8c5,), # Saurashtra Sign Virama ..Saurashtra Sign Candrabi
(0x0a8e0, 0x0a8f1,), # Combining Devanagari Dig..Combining Devanagari Sig
(0x0a8ff, 0x0a8ff,), # Devanagari Vowel Sign Ay..Devanagari Vowel Sign Ay
(0x0a926, 0x0a92d,), # Kayah Li Vowel Ue ..Kayah Li Tone Calya Plop
(0x0a947, 0x0a951,), # Rejang Vowel Sign I ..Rejang Consonant Sign R
(0x0a980, 0x0a982,), # Javanese Sign Panyangga ..Javanese Sign Layar
(0x0a9b3, 0x0a9b3,), # Javanese Sign Cecak Telu..Javanese Sign Cecak Telu
(0x0a9b6, 0x0a9b9,), # Javanese Vowel Sign Wulu..Javanese Vowel Sign Suku
(0x0a9bc, 0x0a9bd,), # Javanese Vowel Sign Pepe..Javanese Consonant Sign
(0x0a9e5, 0x0a9e5,), # Myanmar Sign Shan Saw ..Myanmar Sign Shan Saw
(0x0aa29, 0x0aa2e,), # Cham Vowel Sign Aa ..Cham Vowel Sign Oe
(0x0aa31, 0x0aa32,), # Cham Vowel Sign Au ..Cham Vowel Sign Ue
(0x0aa35, 0x0aa36,), # Cham Consonant Sign La ..Cham Consonant Sign Wa
(0x0aa43, 0x0aa43,), # Cham Consonant Sign Fina..Cham Consonant Sign Fina
(0x0aa4c, 0x0aa4c,), # Cham Consonant Sign Fina..Cham Consonant Sign Fina
(0x0aa7c, 0x0aa7c,), # Myanmar Sign Tai Laing T..Myanmar Sign Tai Laing T
(0x0aab0, 0x0aab0,), # Tai Viet Mai Kang ..Tai Viet Mai Kang
(0x0aab2, 0x0aab4,), # Tai Viet Vowel I ..Tai Viet Vowel U
(0x0aab7, 0x0aab8,), # Tai Viet Mai Khit ..Tai Viet Vowel Ia
(0x0aabe, 0x0aabf,), # Tai Viet Vowel Am ..Tai Viet Tone Mai Ek
(0x0aac1, 0x0aac1,), # Tai Viet Tone Mai Tho ..Tai Viet Tone Mai Tho
(0x0aaec, 0x0aaed,), # Meetei Mayek Vowel Sign ..Meetei Mayek Vowel Sign
(0x0aaf6, 0x0aaf6,), # Meetei Mayek Virama ..Meetei Mayek Virama
(0x0abe5, 0x0abe5,), # Meetei Mayek Vowel Sign ..Meetei Mayek Vowel Sign
(0x0abe8, 0x0abe8,), # Meetei Mayek Vowel Sign ..Meetei Mayek Vowel Sign
(0x0abed, 0x0abed,), # Meetei Mayek Apun Iyek ..Meetei Mayek Apun Iyek
(0x0fb1e, 0x0fb1e,), # Hebrew Point Judeo-spani..Hebrew Point Judeo-spani
(0x0fe00, 0x0fe0f,), # Variation Selector-1 ..Variation Selector-16
(0x0fe20, 0x0fe2f,), # Combining Ligature Left ..Combining Cyrillic Titlo
(0x101fd, 0x101fd,), # Phaistos Disc Sign Combi..Phaistos Disc Sign Combi
(0x102e0, 0x102e0,), # Coptic Epact Thousands M..Coptic Epact Thousands M
(0x10376, 0x1037a,), # Combining Old Permic Let..Combining Old Permic Let
(0x10a01, 0x10a03,), # Kharoshthi Vowel Sign I ..Kharoshthi Vowel Sign Vo
(0x10a05, 0x10a06,), # Kharoshthi Vowel Sign E ..Kharoshthi Vowel Sign O
(0x10a0c, 0x10a0f,), # Kharoshthi Vowel Length ..Kharoshthi Sign Visarga
(0x10a38, 0x10a3a,), # Kharoshthi Sign Bar Abov..Kharoshthi Sign Dot Belo
(0x10a3f, 0x10a3f,), # Kharoshthi Virama ..Kharoshthi Virama
(0x10ae5, 0x10ae6,), # Manichaean Abbreviation ..Manichaean Abbreviation
(0x10d24, 0x10d27,), # Hanifi Rohingya Sign Har..Hanifi Rohingya Sign Tas
(0x10f46, 0x10f50,), # Sogdian Combining Dot Be..Sogdian Combining Stroke
(0x11001, 0x11001,), # Brahmi Sign Anusvara ..Brahmi Sign Anusvara
(0x11038, 0x11046,), # Brahmi Vowel Sign Aa ..Brahmi Virama
(0x1107f, 0x11081,), # Brahmi Number Joiner ..Kaithi Sign Anusvara
(0x110b3, 0x110b6,), # Kaithi Vowel Sign U ..Kaithi Vowel Sign Ai
(0x110b9, 0x110ba,), # Kaithi Sign Virama ..Kaithi Sign Nukta
(0x11100, 0x11102,), # Chakma Sign Candrabindu ..Chakma Sign Visarga
(0x11127, 0x1112b,), # Chakma Vowel Sign A ..Chakma Vowel Sign Uu
(0x1112d, 0x11134,), # Chakma Vowel Sign Ai ..Chakma Maayyaa
(0x11173, 0x11173,), # Mahajani Sign Nukta ..Mahajani Sign Nukta
(0x11180, 0x11181,), # Sharada Sign Candrabindu..Sharada Sign Anusvara
(0x111b6, 0x111be,), # Sharada Vowel Sign U ..Sharada Vowel Sign O
(0x111c9, 0x111cc,), # Sharada Sandhi Mark ..Sharada Extra Short Vowe
(0x1122f, 0x11231,), # Khojki Vowel Sign U ..Khojki Vowel Sign Ai
(0x11234, 0x11234,), # Khojki Sign Anusvara ..Khojki Sign Anusvara
(0x11236, 0x11237,), # Khojki Sign Nukta ..Khojki Sign Shadda
(0x1123e, 0x1123e,), # Khojki Sign Sukun ..Khojki Sign Sukun
(0x112df, 0x112df,), # Khudawadi Sign Anusvara ..Khudawadi Sign Anusvara
(0x112e3, 0x112ea,), # Khudawadi Vowel Sign U ..Khudawadi Sign Virama
(0x11300, 0x11301,), # Grantha Sign Combining A..Grantha Sign Candrabindu
(0x1133b, 0x1133c,), # Combining Bindu Below ..Grantha Sign Nukta
(0x11340, 0x11340,), # Grantha Vowel Sign Ii ..Grantha Vowel Sign Ii
(0x11366, 0x1136c,), # Combining Grantha Digit ..Combining Grantha Digit
(0x11370, 0x11374,), # Combining Grantha Letter..Combining Grantha Letter
(0x11438, 0x1143f,), # Newa Vowel Sign U ..Newa Vowel Sign Ai
(0x11442, 0x11444,), # Newa Sign Virama ..Newa Sign Anusvara
(0x11446, 0x11446,), # Newa Sign Nukta ..Newa Sign Nukta
(0x1145e, 0x1145e,), # Newa Sandhi Mark ..Newa Sandhi Mark
(0x114b3, 0x114b8,), # Tirhuta Vowel Sign U ..Tirhuta Vowel Sign Vocal
(0x114ba, 0x114ba,), # Tirhuta Vowel Sign Short..Tirhuta Vowel Sign Short
(0x114bf, 0x114c0,), # Tirhuta Sign Candrabindu..Tirhuta Sign Anusvara
(0x114c2, 0x114c3,), # Tirhuta Sign Virama ..Tirhuta Sign Nukta
(0x115b2, 0x115b5,), # Siddham Vowel Sign U ..Siddham Vowel Sign Vocal
(0x115bc, 0x115bd,), # Siddham Sign Candrabindu..Siddham Sign Anusvara
(0x115bf, 0x115c0,), # Siddham Sign Virama ..Siddham Sign Nukta
(0x115dc, 0x115dd,), # Siddham Vowel Sign Alter..Siddham Vowel Sign Alter
(0x11633, 0x1163a,), # Modi Vowel Sign U ..Modi Vowel Sign Ai
(0x1163d, 0x1163d,), # Modi Sign Anusvara ..Modi Sign Anusvara
(0x1163f, 0x11640,), # Modi Sign Virama ..Modi Sign Ardhacandra
(0x116ab, 0x116ab,), # Takri Sign Anusvara ..Takri Sign Anusvara
(0x116ad, 0x116ad,), # Takri Vowel Sign Aa ..Takri Vowel Sign Aa
(0x116b0, 0x116b5,), # Takri Vowel Sign U ..Takri Vowel Sign Au
(0x116b7, 0x116b7,), # Takri Sign Nukta ..Takri Sign Nukta
(0x1171d, 0x1171f,), # Ahom Consonant Sign Medi..Ahom Consonant Sign Medi
(0x11722, 0x11725,), # Ahom Vowel Sign I ..Ahom Vowel Sign Uu
(0x11727, 0x1172b,), # Ahom Vowel Sign Aw ..Ahom Sign Killer
(0x1182f, 0x11837,), # Dogra Vowel Sign U ..Dogra Sign Anusvara
(0x11839, 0x1183a,), # Dogra Sign Virama ..Dogra Sign Nukta
(0x119d4, 0x119d7,), # Nandinagari Vowel Sign U..Nandinagari Vowel Sign V
(0x119da, 0x119db,), # Nandinagari Vowel Sign E..Nandinagari Vowel Sign A
(0x119e0, 0x119e0,), # Nandinagari Sign Virama ..Nandinagari Sign Virama
(0x11a01, 0x11a0a,), # Zanabazar Square Vowel S..Zanabazar Square Vowel L
(0x11a33, 0x11a38,), # Zanabazar Square Final C..Zanabazar Square Sign An
(0x11a3b, 0x11a3e,), # Zanabazar Square Cluster..Zanabazar Square Cluster
(0x11a47, 0x11a47,), # Zanabazar Square Subjoin..Zanabazar Square Subjoin
(0x11a51, 0x11a56,), # Soyombo Vowel Sign I ..Soyombo Vowel Sign Oe
(0x11a59, 0x11a5b,), # Soyombo Vowel Sign Vocal..Soyombo Vowel Length Mar
(0x11a8a, 0x11a96,), # Soyombo Final Consonant ..Soyombo Sign Anusvara
(0x11a98, 0x11a99,), # Soyombo Gemination Mark ..Soyombo Subjoiner
(0x11c30, 0x11c36,), # Bhaiksuki Vowel Sign I ..Bhaiksuki Vowel Sign Voc
(0x11c38, 0x11c3d,), # Bhaiksuki Vowel Sign E ..Bhaiksuki Sign Anusvara
(0x11c3f, 0x11c3f,), # Bhaiksuki Sign Virama ..Bhaiksuki Sign Virama
(0x11c92, 0x11ca7,), # Marchen Subjoined Letter..Marchen Subjoined Letter
(0x11caa, 0x11cb0,), # Marchen Subjoined Letter..Marchen Vowel Sign Aa
(0x11cb2, 0x11cb3,), # Marchen Vowel Sign U ..Marchen Vowel Sign E
(0x11cb5, 0x11cb6,), # Marchen Sign Anusvara ..Marchen Sign Candrabindu
(0x11d31, 0x11d36,), # Masaram Gondi Vowel Sign..Masaram Gondi Vowel Sign
(0x11d3a, 0x11d3a,), # Masaram Gondi Vowel Sign..Masaram Gondi Vowel Sign
(0x11d3c, 0x11d3d,), # Masaram Gondi Vowel Sign..Masaram Gondi Vowel Sign
(0x11d3f, 0x11d45,), # Masaram Gondi Vowel Sign..Masaram Gondi Virama
(0x11d47, 0x11d47,), # Masaram Gondi Ra-kara ..Masaram Gondi Ra-kara
(0x11d90, 0x11d91,), # Gunjala Gondi Vowel Sign..Gunjala Gondi Vowel Sign
(0x11d95, 0x11d95,), # Gunjala Gondi Sign Anusv..Gunjala Gondi Sign Anusv
(0x11d97, 0x11d97,), # Gunjala Gondi Virama ..Gunjala Gondi Virama
(0x11ef3, 0x11ef4,), # Makasar Vowel Sign I ..Makasar Vowel Sign U
(0x16af0, 0x16af4,), # Bassa Vah Combining High..Bassa Vah Combining High
(0x16b30, 0x16b36,), # Pahawh Hmong Mark Cim Tu..Pahawh Hmong Mark Cim Ta
(0x16f4f, 0x16f4f,), # Miao Sign Consonant Modi..Miao Sign Consonant Modi
(0x16f8f, 0x16f92,), # Miao Tone Right ..Miao Tone Below
(0x1bc9d, 0x1bc9e,), # Duployan Thick Letter Se..Duployan Double Mark
(0x1d167, 0x1d169,), # Musical Symbol Combining..Musical Symbol Combining
(0x1d17b, 0x1d182,), # Musical Symbol Combining..Musical Symbol Combining
(0x1d185, 0x1d18b,), # Musical Symbol Combining..Musical Symbol Combining
(0x1d1aa, 0x1d1ad,), # Musical Symbol Combining..Musical Symbol Combining
(0x1d242, 0x1d244,), # Combining Greek Musical ..Combining Greek Musical
(0x1da00, 0x1da36,), # Signwriting Head Rim ..Signwriting Air Sucking
(0x1da3b, 0x1da6c,), # Signwriting Mouth Closed..Signwriting Excitement
(0x1da75, 0x1da75,), # Signwriting Upper Body T..Signwriting Upper Body T
(0x1da84, 0x1da84,), # Signwriting Location Hea..Signwriting Location Hea
(0x1da9b, 0x1da9f,), # Signwriting Fill Modifie..Signwriting Fill Modifie
(0x1daa1, 0x1daaf,), # Signwriting Rotation Mod..Signwriting Rotation Mod
(0x1e000, 0x1e006,), # Combining Glagolitic Let..Combining Glagolitic Let
(0x1e008, 0x1e018,), # Combining Glagolitic Let..Combining Glagolitic Let
(0x1e01b, 0x1e021,), # Combining Glagolitic Let..Combining Glagolitic Let
(0x1e023, 0x1e024,), # Combining Glagolitic Let..Combining Glagolitic Let
(0x1e026, 0x1e02a,), # Combining Glagolitic Let..Combining Glagolitic Let
(0x1e130, 0x1e136,), # Nyiakeng Puachue Hmong T..Nyiakeng Puachue Hmong T
(0x1e2ec, 0x1e2ef,), # Wancho Tone Tup ..Wancho Tone Koini
(0x1e8d0, 0x1e8d6,), # Mende Kikakui Combining ..Mende Kikakui Combining
(0x1e944, 0x1e94a,), # Adlam Alif Lengthener ..Adlam Nukta
(0xe0100, 0xe01ef,), # Variation Selector-17 ..Variation Selector-256
),
'13.0.0': (
# Source: DerivedGeneralCategory-13.0.0.txt
# Date: 2019-10-21, 14:30:32 GMT
#
(0x00300, 0x0036f,), # Combining Grave Accent ..Combining Latin Small Le
(0x00483, 0x00489,), # Combining Cyrillic Titlo..Combining Cyrillic Milli
(0x00591, 0x005bd,), # Hebrew Accent Etnahta ..Hebrew Point Meteg
(0x005bf, 0x005bf,), # Hebrew Point Rafe ..Hebrew Point Rafe
(0x005c1, 0x005c2,), # Hebrew Point Shin Dot ..Hebrew Point Sin Dot
(0x005c4, 0x005c5,), # Hebrew Mark Upper Dot ..Hebrew Mark Lower Dot
(0x005c7, 0x005c7,), # Hebrew Point Qamats Qata..Hebrew Point Qamats Qata
(0x00610, 0x0061a,), # Arabic Sign Sallallahou ..Arabic Small Kasra
(0x0064b, 0x0065f,), # Arabic Fathatan ..Arabic Wavy Hamza Below
(0x00670, 0x00670,), # Arabic Letter Superscrip..Arabic Letter Superscrip
(0x006d6, 0x006dc,), # Arabic Small High Ligatu..Arabic Small High Seen
(0x006df, 0x006e4,), # Arabic Small High Rounde..Arabic Small High Madda
(0x006e7, 0x006e8,), # Arabic Small High Yeh ..Arabic Small High Noon
(0x006ea, 0x006ed,), # Arabic Empty Centre Low ..Arabic Small Low Meem
(0x00711, 0x00711,), # Syriac Letter Superscrip..Syriac Letter Superscrip
(0x00730, 0x0074a,), # Syriac Pthaha Above ..Syriac Barrekh
(0x007a6, 0x007b0,), # Thaana Abafili ..Thaana Sukun
(0x007eb, 0x007f3,), # Nko Combining Short High..Nko Combining Double Dot
(0x007fd, 0x007fd,), # Nko Dantayalan ..Nko Dantayalan
(0x00816, 0x00819,), # Samaritan Mark In ..Samaritan Mark Dagesh
(0x0081b, 0x00823,), # Samaritan Mark Epentheti..Samaritan Vowel Sign A
(0x00825, 0x00827,), # Samaritan Vowel Sign Sho..Samaritan Vowel Sign U
(0x00829, 0x0082d,), # Samaritan Vowel Sign Lon..Samaritan Mark Nequdaa
(0x00859, 0x0085b,), # Mandaic Affrication Mark..Mandaic Gemination Mark
(0x008d3, 0x008e1,), # Arabic Small Low Waw ..Arabic Small High Sign S
(0x008e3, 0x00902,), # Arabic Turned Damma Belo..Devanagari Sign Anusvara
(0x0093a, 0x0093a,), # Devanagari Vowel Sign Oe..Devanagari Vowel Sign Oe
(0x0093c, 0x0093c,), # Devanagari Sign Nukta ..Devanagari Sign Nukta
(0x00941, 0x00948,), # Devanagari Vowel Sign U ..Devanagari Vowel Sign Ai
(0x0094d, 0x0094d,), # Devanagari Sign Virama ..Devanagari Sign Virama
(0x00951, 0x00957,), # Devanagari Stress Sign U..Devanagari Vowel Sign Uu
(0x00962, 0x00963,), # Devanagari Vowel Sign Vo..Devanagari Vowel Sign Vo
(0x00981, 0x00981,), # Bengali Sign Candrabindu..Bengali Sign Candrabindu
(0x009bc, 0x009bc,), # Bengali Sign Nukta ..Bengali Sign Nukta
(0x009c1, 0x009c4,), # Bengali Vowel Sign U ..Bengali Vowel Sign Vocal
(0x009cd, 0x009cd,), # Bengali Sign Virama ..Bengali Sign Virama
(0x009e2, 0x009e3,), # Bengali Vowel Sign Vocal..Bengali Vowel Sign Vocal
(0x009fe, 0x009fe,), # Bengali Sandhi Mark ..Bengali Sandhi Mark
(0x00a01, 0x00a02,), # Gurmukhi Sign Adak Bindi..Gurmukhi Sign Bindi
(0x00a3c, 0x00a3c,), # Gurmukhi Sign Nukta ..Gurmukhi Sign Nukta
(0x00a41, 0x00a42,), # Gurmukhi Vowel Sign U ..Gurmukhi Vowel Sign Uu
(0x00a47, 0x00a48,), # Gurmukhi Vowel Sign Ee ..Gurmukhi Vowel Sign Ai
(0x00a4b, 0x00a4d,), # Gurmukhi Vowel Sign Oo ..Gurmukhi Sign Virama
(0x00a51, 0x00a51,), # Gurmukhi Sign Udaat ..Gurmukhi Sign Udaat
(0x00a70, 0x00a71,), # Gurmukhi Tippi ..Gurmukhi Addak
(0x00a75, 0x00a75,), # Gurmukhi Sign Yakash ..Gurmukhi Sign Yakash
(0x00a81, 0x00a82,), # Gujarati Sign Candrabind..Gujarati Sign Anusvara
(0x00abc, 0x00abc,), # Gujarati Sign Nukta ..Gujarati Sign Nukta
(0x00ac1, 0x00ac5,), # Gujarati Vowel Sign U ..Gujarati Vowel Sign Cand
(0x00ac7, 0x00ac8,), # Gujarati Vowel Sign E ..Gujarati Vowel Sign Ai
(0x00acd, 0x00acd,), # Gujarati Sign Virama ..Gujarati Sign Virama
(0x00ae2, 0x00ae3,), # Gujarati Vowel Sign Voca..Gujarati Vowel Sign Voca
(0x00afa, 0x00aff,), # Gujarati Sign Sukun ..Gujarati Sign Two-circle
(0x00b01, 0x00b01,), # Oriya Sign Candrabindu ..Oriya Sign Candrabindu
(0x00b3c, 0x00b3c,), # Oriya Sign Nukta ..Oriya Sign Nukta
(0x00b3f, 0x00b3f,), # Oriya Vowel Sign I ..Oriya Vowel Sign I
(0x00b41, 0x00b44,), # Oriya Vowel Sign U ..Oriya Vowel Sign Vocalic
(0x00b4d, 0x00b4d,), # Oriya Sign Virama ..Oriya Sign Virama
(0x00b55, 0x00b56,), # (nil) ..Oriya Ai Length Mark
(0x00b62, 0x00b63,), # Oriya Vowel Sign Vocalic..Oriya Vowel Sign Vocalic
(0x00b82, 0x00b82,), # Tamil Sign Anusvara ..Tamil Sign Anusvara
(0x00bc0, 0x00bc0,), # Tamil Vowel Sign Ii ..Tamil Vowel Sign Ii
(0x00bcd, 0x00bcd,), # Tamil Sign Virama ..Tamil Sign Virama
(0x00c00, 0x00c00,), # Telugu Sign Combining Ca..Telugu Sign Combining Ca
(0x00c04, 0x00c04,), # Telugu Sign Combining An..Telugu Sign Combining An
(0x00c3e, 0x00c40,), # Telugu Vowel Sign Aa ..Telugu Vowel Sign Ii
(0x00c46, 0x00c48,), # Telugu Vowel Sign E ..Telugu Vowel Sign Ai
(0x00c4a, 0x00c4d,), # Telugu Vowel Sign O ..Telugu Sign Virama
(0x00c55, 0x00c56,), # Telugu Length Mark ..Telugu Ai Length Mark
(0x00c62, 0x00c63,), # Telugu Vowel Sign Vocali..Telugu Vowel Sign Vocali
(0x00c81, 0x00c81,), # Kannada Sign Candrabindu..Kannada Sign Candrabindu
(0x00cbc, 0x00cbc,), # Kannada Sign Nukta ..Kannada Sign Nukta
(0x00cbf, 0x00cbf,), # Kannada Vowel Sign I ..Kannada Vowel Sign I
(0x00cc6, 0x00cc6,), # Kannada Vowel Sign E ..Kannada Vowel Sign E
(0x00ccc, 0x00ccd,), # Kannada Vowel Sign Au ..Kannada Sign Virama
(0x00ce2, 0x00ce3,), # Kannada Vowel Sign Vocal..Kannada Vowel Sign Vocal
(0x00d00, 0x00d01,), # Malayalam Sign Combining..Malayalam Sign Candrabin
(0x00d3b, 0x00d3c,), # Malayalam Sign Vertical ..Malayalam Sign Circular
(0x00d41, 0x00d44,), # Malayalam Vowel Sign U ..Malayalam Vowel Sign Voc
(0x00d4d, 0x00d4d,), # Malayalam Sign Virama ..Malayalam Sign Virama
(0x00d62, 0x00d63,), # Malayalam Vowel Sign Voc..Malayalam Vowel Sign Voc
(0x00d81, 0x00d81,), # (nil) ..(nil)
(0x00dca, 0x00dca,), # Sinhala Sign Al-lakuna ..Sinhala Sign Al-lakuna
(0x00dd2, 0x00dd4,), # Sinhala Vowel Sign Ketti..Sinhala Vowel Sign Ketti
(0x00dd6, 0x00dd6,), # Sinhala Vowel Sign Diga ..Sinhala Vowel Sign Diga
(0x00e31, 0x00e31,), # Thai Character Mai Han-a..Thai Character Mai Han-a
(0x00e34, 0x00e3a,), # Thai Character Sara I ..Thai Character Phinthu
(0x00e47, 0x00e4e,), # Thai Character Maitaikhu..Thai Character Yamakkan
(0x00eb1, 0x00eb1,), # Lao Vowel Sign Mai Kan ..Lao Vowel Sign Mai Kan
(0x00eb4, 0x00ebc,), # Lao Vowel Sign I ..Lao Semivowel Sign Lo
(0x00ec8, 0x00ecd,), # Lao Tone Mai Ek ..Lao Niggahita
(0x00f18, 0x00f19,), # Tibetan Astrological Sig..Tibetan Astrological Sig
(0x00f35, 0x00f35,), # Tibetan Mark Ngas Bzung ..Tibetan Mark Ngas Bzung
(0x00f37, 0x00f37,), # Tibetan Mark Ngas Bzung ..Tibetan Mark Ngas Bzung
(0x00f39, 0x00f39,), # Tibetan Mark Tsa -phru ..Tibetan Mark Tsa -phru
(0x00f71, 0x00f7e,), # Tibetan Vowel Sign Aa ..Tibetan Sign Rjes Su Nga
(0x00f80, 0x00f84,), # Tibetan Vowel Sign Rever..Tibetan Mark Halanta
(0x00f86, 0x00f87,), # Tibetan Sign Lci Rtags ..Tibetan Sign Yang Rtags
(0x00f8d, 0x00f97,), # Tibetan Subjoined Sign L..Tibetan Subjoined Letter
(0x00f99, 0x00fbc,), # Tibetan Subjoined Letter..Tibetan Subjoined Letter
(0x00fc6, 0x00fc6,), # Tibetan Symbol Padma Gda..Tibetan Symbol Padma Gda
(0x0102d, 0x01030,), # Myanmar Vowel Sign I ..Myanmar Vowel Sign Uu
(0x01032, 0x01037,), # Myanmar Vowel Sign Ai ..Myanmar Sign Dot Below
(0x01039, 0x0103a,), # Myanmar Sign Virama ..Myanmar Sign Asat
(0x0103d, 0x0103e,), # Myanmar Consonant Sign M..Myanmar Consonant Sign M
(0x01058, 0x01059,), # Myanmar Vowel Sign Vocal..Myanmar Vowel Sign Vocal
(0x0105e, 0x01060,), # Myanmar Consonant Sign M..Myanmar Consonant Sign M
(0x01071, 0x01074,), # Myanmar Vowel Sign Geba ..Myanmar Vowel Sign Kayah
(0x01082, 0x01082,), # Myanmar Consonant Sign S..Myanmar Consonant Sign S
(0x01085, 0x01086,), # Myanmar Vowel Sign Shan ..Myanmar Vowel Sign Shan
(0x0108d, 0x0108d,), # Myanmar Sign Shan Counci..Myanmar Sign Shan Counci
(0x0109d, 0x0109d,), # Myanmar Vowel Sign Aiton..Myanmar Vowel Sign Aiton
(0x0135d, 0x0135f,), # Ethiopic Combining Gemin..Ethiopic Combining Gemin
(0x01712, 0x01714,), # Tagalog Vowel Sign I ..Tagalog Sign Virama
(0x01732, 0x01734,), # Hanunoo Vowel Sign I ..Hanunoo Sign Pamudpod
(0x01752, 0x01753,), # Buhid Vowel Sign I ..Buhid Vowel Sign U
(0x01772, 0x01773,), # Tagbanwa Vowel Sign I ..Tagbanwa Vowel Sign U
(0x017b4, 0x017b5,), # Khmer Vowel Inherent Aq ..Khmer Vowel Inherent Aa
(0x017b7, 0x017bd,), # Khmer Vowel Sign I ..Khmer Vowel Sign Ua
(0x017c6, 0x017c6,), # Khmer Sign Nikahit ..Khmer Sign Nikahit
(0x017c9, 0x017d3,), # Khmer Sign Muusikatoan ..Khmer Sign Bathamasat
(0x017dd, 0x017dd,), # Khmer Sign Atthacan ..Khmer Sign Atthacan
(0x0180b, 0x0180d,), # Mongolian Free Variation..Mongolian Free Variation
(0x01885, 0x01886,), # Mongolian Letter Ali Gal..Mongolian Letter Ali Gal
(0x018a9, 0x018a9,), # Mongolian Letter Ali Gal..Mongolian Letter Ali Gal
(0x01920, 0x01922,), # Limbu Vowel Sign A ..Limbu Vowel Sign U
(0x01927, 0x01928,), # Limbu Vowel Sign E ..Limbu Vowel Sign O
(0x01932, 0x01932,), # Limbu Small Letter Anusv..Limbu Small Letter Anusv
(0x01939, 0x0193b,), # Limbu Sign Mukphreng ..Limbu Sign Sa-i
(0x01a17, 0x01a18,), # Buginese Vowel Sign I ..Buginese Vowel Sign U
(0x01a1b, 0x01a1b,), # Buginese Vowel Sign Ae ..Buginese Vowel Sign Ae
(0x01a56, 0x01a56,), # Tai Tham Consonant Sign ..Tai Tham Consonant Sign
(0x01a58, 0x01a5e,), # Tai Tham Sign Mai Kang L..Tai Tham Consonant Sign
(0x01a60, 0x01a60,), # Tai Tham Sign Sakot ..Tai Tham Sign Sakot
(0x01a62, 0x01a62,), # Tai Tham Vowel Sign Mai ..Tai Tham Vowel Sign Mai
(0x01a65, 0x01a6c,), # Tai Tham Vowel Sign I ..Tai Tham Vowel Sign Oa B
(0x01a73, 0x01a7c,), # Tai Tham Vowel Sign Oa A..Tai Tham Sign Khuen-lue
(0x01a7f, 0x01a7f,), # Tai Tham Combining Crypt..Tai Tham Combining Crypt
(0x01ab0, 0x01ac0,), # Combining Doubled Circum..(nil)
(0x01b00, 0x01b03,), # Balinese Sign Ulu Ricem ..Balinese Sign Surang
(0x01b34, 0x01b34,), # Balinese Sign Rerekan ..Balinese Sign Rerekan
(0x01b36, 0x01b3a,), # Balinese Vowel Sign Ulu ..Balinese Vowel Sign Ra R
(0x01b3c, 0x01b3c,), # Balinese Vowel Sign La L..Balinese Vowel Sign La L
(0x01b42, 0x01b42,), # Balinese Vowel Sign Pepe..Balinese Vowel Sign Pepe
(0x01b6b, 0x01b73,), # Balinese Musical Symbol ..Balinese Musical Symbol
(0x01b80, 0x01b81,), # Sundanese Sign Panyecek ..Sundanese Sign Panglayar
(0x01ba2, 0x01ba5,), # Sundanese Consonant Sign..Sundanese Vowel Sign Pan
(0x01ba8, 0x01ba9,), # Sundanese Vowel Sign Pam..Sundanese Vowel Sign Pan
(0x01bab, 0x01bad,), # Sundanese Sign Virama ..Sundanese Consonant Sign
(0x01be6, 0x01be6,), # Batak Sign Tompi ..Batak Sign Tompi
(0x01be8, 0x01be9,), # Batak Vowel Sign Pakpak ..Batak Vowel Sign Ee
(0x01bed, 0x01bed,), # Batak Vowel Sign Karo O ..Batak Vowel Sign Karo O
(0x01bef, 0x01bf1,), # Batak Vowel Sign U For S..Batak Consonant Sign H
(0x01c2c, 0x01c33,), # Lepcha Vowel Sign E ..Lepcha Consonant Sign T
(0x01c36, 0x01c37,), # Lepcha Sign Ran ..Lepcha Sign Nukta
(0x01cd0, 0x01cd2,), # Vedic Tone Karshana ..Vedic Tone Prenkha
(0x01cd4, 0x01ce0,), # Vedic Sign Yajurvedic Mi..Vedic Tone Rigvedic Kash
(0x01ce2, 0x01ce8,), # Vedic Sign Visarga Svari..Vedic Sign Visarga Anuda
(0x01ced, 0x01ced,), # Vedic Sign Tiryak ..Vedic Sign Tiryak
(0x01cf4, 0x01cf4,), # Vedic Tone Candra Above ..Vedic Tone Candra Above
(0x01cf8, 0x01cf9,), # Vedic Tone Ring Above ..Vedic Tone Double Ring A
(0x01dc0, 0x01df9,), # Combining Dotted Grave A..Combining Wide Inverted
(0x01dfb, 0x01dff,), # Combining Deletion Mark ..Combining Right Arrowhea
(0x020d0, 0x020f0,), # Combining Left Harpoon A..Combining Asterisk Above
(0x02cef, 0x02cf1,), # Coptic Combining Ni Abov..Coptic Combining Spiritu
(0x02d7f, 0x02d7f,), # Tifinagh Consonant Joine..Tifinagh Consonant Joine
(0x02de0, 0x02dff,), # Combining Cyrillic Lette..Combining Cyrillic Lette
(0x0302a, 0x0302d,), # Ideographic Level Tone M..Ideographic Entering Ton
(0x03099, 0x0309a,), # Combining Katakana-hirag..Combining Katakana-hirag
(0x0a66f, 0x0a672,), # Combining Cyrillic Vzmet..Combining Cyrillic Thous
(0x0a674, 0x0a67d,), # Combining Cyrillic Lette..Combining Cyrillic Payer
(0x0a69e, 0x0a69f,), # Combining Cyrillic Lette..Combining Cyrillic Lette
(0x0a6f0, 0x0a6f1,), # Bamum Combining Mark Koq..Bamum Combining Mark Tuk
(0x0a802, 0x0a802,), # Syloti Nagri Sign Dvisva..Syloti Nagri Sign Dvisva
(0x0a806, 0x0a806,), # Syloti Nagri Sign Hasant..Syloti Nagri Sign Hasant
(0x0a80b, 0x0a80b,), # Syloti Nagri Sign Anusva..Syloti Nagri Sign Anusva
(0x0a825, 0x0a826,), # Syloti Nagri Vowel Sign ..Syloti Nagri Vowel Sign
(0x0a82c, 0x0a82c,), # (nil) ..(nil)
(0x0a8c4, 0x0a8c5,), # Saurashtra Sign Virama ..Saurashtra Sign Candrabi
(0x0a8e0, 0x0a8f1,), # Combining Devanagari Dig..Combining Devanagari Sig
(0x0a8ff, 0x0a8ff,), # Devanagari Vowel Sign Ay..Devanagari Vowel Sign Ay
(0x0a926, 0x0a92d,), # Kayah Li Vowel Ue ..Kayah Li Tone Calya Plop
(0x0a947, 0x0a951,), # Rejang Vowel Sign I ..Rejang Consonant Sign R
(0x0a980, 0x0a982,), # Javanese Sign Panyangga ..Javanese Sign Layar
(0x0a9b3, 0x0a9b3,), # Javanese Sign Cecak Telu..Javanese Sign Cecak Telu
(0x0a9b6, 0x0a9b9,), # Javanese Vowel Sign Wulu..Javanese Vowel Sign Suku
(0x0a9bc, 0x0a9bd,), # Javanese Vowel Sign Pepe..Javanese Consonant Sign
(0x0a9e5, 0x0a9e5,), # Myanmar Sign Shan Saw ..Myanmar Sign Shan Saw
(0x0aa29, 0x0aa2e,), # Cham Vowel Sign Aa ..Cham Vowel Sign Oe
(0x0aa31, 0x0aa32,), # Cham Vowel Sign Au ..Cham Vowel Sign Ue
(0x0aa35, 0x0aa36,), # Cham Consonant Sign La ..Cham Consonant Sign Wa
(0x0aa43, 0x0aa43,), # Cham Consonant Sign Fina..Cham Consonant Sign Fina
(0x0aa4c, 0x0aa4c,), # Cham Consonant Sign Fina..Cham Consonant Sign Fina
(0x0aa7c, 0x0aa7c,), # Myanmar Sign Tai Laing T..Myanmar Sign Tai Laing T
(0x0aab0, 0x0aab0,), # Tai Viet Mai Kang ..Tai Viet Mai Kang
(0x0aab2, 0x0aab4,), # Tai Viet Vowel I ..Tai Viet Vowel U
(0x0aab7, 0x0aab8,), # Tai Viet Mai Khit ..Tai Viet Vowel Ia
(0x0aabe, 0x0aabf,), # Tai Viet Vowel Am ..Tai Viet Tone Mai Ek
(0x0aac1, 0x0aac1,), # Tai Viet Tone Mai Tho ..Tai Viet Tone Mai Tho
(0x0aaec, 0x0aaed,), # Meetei Mayek Vowel Sign ..Meetei Mayek Vowel Sign
(0x0aaf6, 0x0aaf6,), # Meetei Mayek Virama ..Meetei Mayek Virama
(0x0abe5, 0x0abe5,), # Meetei Mayek Vowel Sign ..Meetei Mayek Vowel Sign
(0x0abe8, 0x0abe8,), # Meetei Mayek Vowel Sign ..Meetei Mayek Vowel Sign
(0x0abed, 0x0abed,), # Meetei Mayek Apun Iyek ..Meetei Mayek Apun Iyek
(0x0fb1e, 0x0fb1e,), # Hebrew Point Judeo-spani..Hebrew Point Judeo-spani
(0x0fe00, 0x0fe0f,), # Variation Selector-1 ..Variation Selector-16
(0x0fe20, 0x0fe2f,), # Combining Ligature Left ..Combining Cyrillic Titlo
(0x101fd, 0x101fd,), # Phaistos Disc Sign Combi..Phaistos Disc Sign Combi
(0x102e0, 0x102e0,), # Coptic Epact Thousands M..Coptic Epact Thousands M
(0x10376, 0x1037a,), # Combining Old Permic Let..Combining Old Permic Let
(0x10a01, 0x10a03,), # Kharoshthi Vowel Sign I ..Kharoshthi Vowel Sign Vo
(0x10a05, 0x10a06,), # Kharoshthi Vowel Sign E ..Kharoshthi Vowel Sign O
(0x10a0c, 0x10a0f,), # Kharoshthi Vowel Length ..Kharoshthi Sign Visarga
(0x10a38, 0x10a3a,), # Kharoshthi Sign Bar Abov..Kharoshthi Sign Dot Belo
(0x10a3f, 0x10a3f,), # Kharoshthi Virama ..Kharoshthi Virama
(0x10ae5, 0x10ae6,), # Manichaean Abbreviation ..Manichaean Abbreviation
(0x10d24, 0x10d27,), # Hanifi Rohingya Sign Har..Hanifi Rohingya Sign Tas
(0x10eab, 0x10eac,), # (nil) ..(nil)
(0x10f46, 0x10f50,), # Sogdian Combining Dot Be..Sogdian Combining Stroke
(0x11001, 0x11001,), # Brahmi Sign Anusvara ..Brahmi Sign Anusvara
(0x11038, 0x11046,), # Brahmi Vowel Sign Aa ..Brahmi Virama
(0x1107f, 0x11081,), # Brahmi Number Joiner ..Kaithi Sign Anusvara
(0x110b3, 0x110b6,), # Kaithi Vowel Sign U ..Kaithi Vowel Sign Ai
(0x110b9, 0x110ba,), # Kaithi Sign Virama ..Kaithi Sign Nukta
(0x11100, 0x11102,), # Chakma Sign Candrabindu ..Chakma Sign Visarga
(0x11127, 0x1112b,), # Chakma Vowel Sign A ..Chakma Vowel Sign Uu
(0x1112d, 0x11134,), # Chakma Vowel Sign Ai ..Chakma Maayyaa
(0x11173, 0x11173,), # Mahajani Sign Nukta ..Mahajani Sign Nukta
(0x11180, 0x11181,), # Sharada Sign Candrabindu..Sharada Sign Anusvara
(0x111b6, 0x111be,), # Sharada Vowel Sign U ..Sharada Vowel Sign O
(0x111c9, 0x111cc,), # Sharada Sandhi Mark ..Sharada Extra Short Vowe
(0x111cf, 0x111cf,), # (nil) ..(nil)
(0x1122f, 0x11231,), # Khojki Vowel Sign U ..Khojki Vowel Sign Ai
(0x11234, 0x11234,), # Khojki Sign Anusvara ..Khojki Sign Anusvara
(0x11236, 0x11237,), # Khojki Sign Nukta ..Khojki Sign Shadda
(0x1123e, 0x1123e,), # Khojki Sign Sukun ..Khojki Sign Sukun
(0x112df, 0x112df,), # Khudawadi Sign Anusvara ..Khudawadi Sign Anusvara
(0x112e3, 0x112ea,), # Khudawadi Vowel Sign U ..Khudawadi Sign Virama
(0x11300, 0x11301,), # Grantha Sign Combining A..Grantha Sign Candrabindu
(0x1133b, 0x1133c,), # Combining Bindu Below ..Grantha Sign Nukta
(0x11340, 0x11340,), # Grantha Vowel Sign Ii ..Grantha Vowel Sign Ii
(0x11366, 0x1136c,), # Combining Grantha Digit ..Combining Grantha Digit
(0x11370, 0x11374,), # Combining Grantha Letter..Combining Grantha Letter
(0x11438, 0x1143f,), # Newa Vowel Sign U ..Newa Vowel Sign Ai
(0x11442, 0x11444,), # Newa Sign Virama ..Newa Sign Anusvara
(0x11446, 0x11446,), # Newa Sign Nukta ..Newa Sign Nukta
(0x1145e, 0x1145e,), # Newa Sandhi Mark ..Newa Sandhi Mark
(0x114b3, 0x114b8,), # Tirhuta Vowel Sign U ..Tirhuta Vowel Sign Vocal
(0x114ba, 0x114ba,), # Tirhuta Vowel Sign Short..Tirhuta Vowel Sign Short
(0x114bf, 0x114c0,), # Tirhuta Sign Candrabindu..Tirhuta Sign Anusvara
(0x114c2, 0x114c3,), # Tirhuta Sign Virama ..Tirhuta Sign Nukta
(0x115b2, 0x115b5,), # Siddham Vowel Sign U ..Siddham Vowel Sign Vocal
(0x115bc, 0x115bd,), # Siddham Sign Candrabindu..Siddham Sign Anusvara
(0x115bf, 0x115c0,), # Siddham Sign Virama ..Siddham Sign Nukta
(0x115dc, 0x115dd,), # Siddham Vowel Sign Alter..Siddham Vowel Sign Alter
(0x11633, 0x1163a,), # Modi Vowel Sign U ..Modi Vowel Sign Ai
(0x1163d, 0x1163d,), # Modi Sign Anusvara ..Modi Sign Anusvara
(0x1163f, 0x11640,), # Modi Sign Virama ..Modi Sign Ardhacandra
(0x116ab, 0x116ab,), # Takri Sign Anusvara ..Takri Sign Anusvara
(0x116ad, 0x116ad,), # Takri Vowel Sign Aa ..Takri Vowel Sign Aa
(0x116b0, 0x116b5,), # Takri Vowel Sign U ..Takri Vowel Sign Au
(0x116b7, 0x116b7,), # Takri Sign Nukta ..Takri Sign Nukta
(0x1171d, 0x1171f,), # Ahom Consonant Sign Medi..Ahom Consonant Sign Medi
(0x11722, 0x11725,), # Ahom Vowel Sign I ..Ahom Vowel Sign Uu
(0x11727, 0x1172b,), # Ahom Vowel Sign Aw ..Ahom Sign Killer
(0x1182f, 0x11837,), # Dogra Vowel Sign U ..Dogra Sign Anusvara
(0x11839, 0x1183a,), # Dogra Sign Virama ..Dogra Sign Nukta
(0x1193b, 0x1193c,), # (nil) ..(nil)
(0x1193e, 0x1193e,), # (nil) ..(nil)
(0x11943, 0x11943,), # (nil) ..(nil)
(0x119d4, 0x119d7,), # Nandinagari Vowel Sign U..Nandinagari Vowel Sign V
(0x119da, 0x119db,), # Nandinagari Vowel Sign E..Nandinagari Vowel Sign A
(0x119e0, 0x119e0,), # Nandinagari Sign Virama ..Nandinagari Sign Virama
(0x11a01, 0x11a0a,), # Zanabazar Square Vowel S..Zanabazar Square Vowel L
(0x11a33, 0x11a38,), # Zanabazar Square Final C..Zanabazar Square Sign An
(0x11a3b, 0x11a3e,), # Zanabazar Square Cluster..Zanabazar Square Cluster
(0x11a47, 0x11a47,), # Zanabazar Square Subjoin..Zanabazar Square Subjoin
(0x11a51, 0x11a56,), # Soyombo Vowel Sign I ..Soyombo Vowel Sign Oe
(0x11a59, 0x11a5b,), # Soyombo Vowel Sign Vocal..Soyombo Vowel Length Mar
(0x11a8a, 0x11a96,), # Soyombo Final Consonant ..Soyombo Sign Anusvara
(0x11a98, 0x11a99,), # Soyombo Gemination Mark ..Soyombo Subjoiner
(0x11c30, 0x11c36,), # Bhaiksuki Vowel Sign I ..Bhaiksuki Vowel Sign Voc
(0x11c38, 0x11c3d,), # Bhaiksuki Vowel Sign E ..Bhaiksuki Sign Anusvara
(0x11c3f, 0x11c3f,), # Bhaiksuki Sign Virama ..Bhaiksuki Sign Virama
(0x11c92, 0x11ca7,), # Marchen Subjoined Letter..Marchen Subjoined Letter
(0x11caa, 0x11cb0,), # Marchen Subjoined Letter..Marchen Vowel Sign Aa
(0x11cb2, 0x11cb3,), # Marchen Vowel Sign U ..Marchen Vowel Sign E
(0x11cb5, 0x11cb6,), # Marchen Sign Anusvara ..Marchen Sign Candrabindu
(0x11d31, 0x11d36,), # Masaram Gondi Vowel Sign..Masaram Gondi Vowel Sign
(0x11d3a, 0x11d3a,), # Masaram Gondi Vowel Sign..Masaram Gondi Vowel Sign
(0x11d3c, 0x11d3d,), # Masaram Gondi Vowel Sign..Masaram Gondi Vowel Sign
(0x11d3f, 0x11d45,), # Masaram Gondi Vowel Sign..Masaram Gondi Virama
(0x11d47, 0x11d47,), # Masaram Gondi Ra-kara ..Masaram Gondi Ra-kara
(0x11d90, 0x11d91,), # Gunjala Gondi Vowel Sign..Gunjala Gondi Vowel Sign
(0x11d95, 0x11d95,), # Gunjala Gondi Sign Anusv..Gunjala Gondi Sign Anusv
(0x11d97, 0x11d97,), # Gunjala Gondi Virama ..Gunjala Gondi Virama
(0x11ef3, 0x11ef4,), # Makasar Vowel Sign I ..Makasar Vowel Sign U
(0x16af0, 0x16af4,), # Bassa Vah Combining High..Bassa Vah Combining High
(0x16b30, 0x16b36,), # Pahawh Hmong Mark Cim Tu..Pahawh Hmong Mark Cim Ta
(0x16f4f, 0x16f4f,), # Miao Sign Consonant Modi..Miao Sign Consonant Modi
(0x16f8f, 0x16f92,), # Miao Tone Right ..Miao Tone Below
(0x16fe4, 0x16fe4,), # (nil) ..(nil)
(0x1bc9d, 0x1bc9e,), # Duployan Thick Letter Se..Duployan Double Mark
(0x1d167, 0x1d169,), # Musical Symbol Combining..Musical Symbol Combining
(0x1d17b, 0x1d182,), # Musical Symbol Combining..Musical Symbol Combining
(0x1d185, 0x1d18b,), # Musical Symbol Combining..Musical Symbol Combining
(0x1d1aa, 0x1d1ad,), # Musical Symbol Combining..Musical Symbol Combining
(0x1d242, 0x1d244,), # Combining Greek Musical ..Combining Greek Musical
(0x1da00, 0x1da36,), # Signwriting Head Rim ..Signwriting Air Sucking
(0x1da3b, 0x1da6c,), # Signwriting Mouth Closed..Signwriting Excitement
(0x1da75, 0x1da75,), # Signwriting Upper Body T..Signwriting Upper Body T
(0x1da84, 0x1da84,), # Signwriting Location Hea..Signwriting Location Hea
(0x1da9b, 0x1da9f,), # Signwriting Fill Modifie..Signwriting Fill Modifie
(0x1daa1, 0x1daaf,), # Signwriting Rotation Mod..Signwriting Rotation Mod
(0x1e000, 0x1e006,), # Combining Glagolitic Let..Combining Glagolitic Let
(0x1e008, 0x1e018,), # Combining Glagolitic Let..Combining Glagolitic Let
(0x1e01b, 0x1e021,), # Combining Glagolitic Let..Combining Glagolitic Let
(0x1e023, 0x1e024,), # Combining Glagolitic Let..Combining Glagolitic Let
(0x1e026, 0x1e02a,), # Combining Glagolitic Let..Combining Glagolitic Let
(0x1e130, 0x1e136,), # Nyiakeng Puachue Hmong T..Nyiakeng Puachue Hmong T
(0x1e2ec, 0x1e2ef,), # Wancho Tone Tup ..Wancho Tone Koini
(0x1e8d0, 0x1e8d6,), # Mende Kikakui Combining ..Mende Kikakui Combining
(0x1e944, 0x1e94a,), # Adlam Alif Lengthener ..Adlam Nukta
(0xe0100, 0xe01ef,), # Variation Selector-17 ..Variation Selector-256
),
}
| [
"[email protected]"
] | |
67cc8ae0e9b2a05fb85c2ca88cb58905348d3cf1 | 141545126466a00f32247dfa40e067ec049b0fa4 | /Programming Basics Python/Exam Problems 20042019/Easter Shop.py | 24f0f9d5278dd658f8d045e6e6d0eab1bb4ce257 | [] | no_license | RadkaValkova/SoftUni-Web-Developer | 83314367172a18f001e182b4e57f7ca0502ad1fc | 61d3414373498bb6009ae70e8d17f26cd2d88ea5 | refs/heads/main | 2023-06-01T02:11:06.606370 | 2021-06-29T19:39:19 | 2021-06-29T19:39:19 | 325,611,606 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 629 | py | start_eggs = int(input())
sold_eggs = 0
fill_eggs = 0
available_eggs = start_eggs
while True:
command = input()
if command == 'Close':
print('Store is closed!')
print(f'{sold_eggs} eggs sold.')
break
eggs_number = int(input())
if command == 'Buy':
if available_eggs < eggs_number:
print('Not enough eggs in store!')
print(f'You can buy only {available_eggs}.')
break
else:
sold_eggs += eggs_number
available_eggs -= eggs_number
else:
fill_eggs += eggs_number
available_eggs += eggs_number
| [
"[email protected]"
] | |
cac5a5118c1caa62049a0352cf2b96d18328b009 | 068d271e241d8cdb46dbf4243166e4b8ee7025b2 | /Django/rbac/day69/luffy_permission/rbac/middlewares/rbac.py | 05e05715e769339255dc4cd45e4b8f209919f427 | [] | no_license | caiqinxiong/python | f6e226e76cb62aac970bcfbcb6c8adfc64858b60 | 9029f6c528d2cb742b600af224e803baa74cbe6a | refs/heads/master | 2023-05-26T19:41:34.911885 | 2020-05-15T09:02:08 | 2020-05-15T09:02:08 | 195,261,757 | 1 | 0 | null | 2021-06-10T23:33:33 | 2019-07-04T15:01:42 | JavaScript | UTF-8 | Python | false | false | 1,122 | py | from django.utils.deprecation import MiddlewareMixin
from django.shortcuts import HttpResponse, redirect, reverse
from django.conf import settings
import re
class RbacMiddleWare(MiddlewareMixin):
def process_request(self, request):
# 获取当前访问的页面
url = request.path_info # index
# 白名单
for i in settings.WHITE_LIST:
if re.match(i, url):
return
# 获取登录状态
is_login = request.session.get('is_login')
# 没有登录跳转到登录页面
if not is_login:
return redirect(reverse('login'))
# 免认证
for i in settings.NO_PERMISSION_LIST:
if re.match(i, url):
return
# 获取当前用户的权限
permission_list = request.session['permission']
print(permission_list)
# 权限的校验
for i in permission_list:
if re.match('^{}$'.format(i['permissions__url']), url):
return
# 没匹配成功 没有权限
return HttpResponse('没有访问的权限')
| [
"[email protected]"
] | |
7bdbb45c2a647db014716b1afeeb24c732579da3 | 7a73fef9ae426c48573bae41447cef7cb2b97bf6 | /dynamicserialize/dstypes/com/raytheon/uf/common/management/response/__init__.py | e1e5fcfbdc6f395fcaab59c2371def4edec4459b | [
"LicenseRef-scancode-public-domain",
"BSD-3-Clause"
] | permissive | mjames-upc/python-awips | 7f0a80a04457224c9e195b82a95eef4d9b2b3091 | e2b05f5587b02761df3b6dd5c6ee1f196bd5f11c | refs/heads/master | 2020-03-31T03:00:49.540816 | 2018-10-05T23:15:42 | 2018-10-05T23:15:42 | 53,707,817 | 0 | 0 | null | 2017-04-12T18:00:59 | 2016-03-12T01:46:57 | Python | UTF-8 | Python | false | false | 104 | py | ##
##
# File auto-generated by PythonFileGenerator
__all__ = [
'diagnostic'
]
| [
"[email protected]"
] | |
2cd69de0ed6caab0657b020ebf567283aa2001c4 | 52a32a93942b7923b7c0c6ca5a4d5930bbba384b | /dojo/db_migrations/0051_regulation_categories.py | 2fe6ff5d352fd9d2bde9377ad6d5aaf8ae2c4bdb | [
"MIT-open-group",
"GCC-exception-2.0",
"BSD-3-Clause",
"LicenseRef-scancode-free-unknown",
"LGPL-3.0-only",
"GPL-3.0-or-later",
"LicenseRef-scancode-warranty-disclaimer",
"LGPL-3.0-or-later",
"IJG",
"Zlib",
"LicenseRef-scancode-proprietary-license",
"PSF-2.0",
"LicenseRef-scancode-python-cwi",
"GPL-2.0-or-later",
"HPND",
"libtiff",
"LGPL-2.1-or-later",
"EPL-2.0",
"GPL-3.0-only",
"MIT",
"BSD-3-Clause-Modification",
"LicenseRef-scancode-public-domain-disclaimer",
"HPND-Markus-Kuhn",
"CC-BY-SA-4.0",
"LicenseRef-scancode-secret-labs-2011",
"LicenseRef-scancode-other-copyleft",
"LicenseRef-scancode-unknown-license-reference",
"LGPL-2.1-only",
"LicenseRef-scancode-openssl-exception-lgpl3.0plus",
"Libpng",
"LicenseRef-scancode-other-permissive",
"Python-2.0",
"BSD-Advertising-Acknowledgement",
"LGPL-2.0-or-later",
"GPL-1.0-or-later",
"MPL-2.0",
"MIT-Modern-Variant",
"ISC",
"GPL-2.0-only",
"LicenseRef-scancode-xfree86-1.0",
"Apache-2.0",
"LicenseRef-scancode-public-domain",
"LicenseRef-scancode-unknown",
"BSD-2-Clause"
] | permissive | DefectDojo/django-DefectDojo | 43bfb1c728451335661dadc741be732a50cd2a12 | b98093dcb966ffe972f8719337de2209bf3989ec | refs/heads/master | 2023-08-21T13:42:07.238370 | 2023-08-14T18:00:34 | 2023-08-14T18:00:34 | 31,028,375 | 2,719 | 1,666 | BSD-3-Clause | 2023-09-14T19:46:49 | 2015-02-19T17:53:47 | HTML | UTF-8 | Python | false | false | 810 | py | # Generated by Django 2.2.15 on 2020-08-30 21:49
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('dojo', '0050_deduplication_on_engagement'),
]
operations = [
migrations.AlterField(
model_name='regulation',
name='category',
field=models.CharField(choices=[('privacy', 'Privacy'), ('finance', 'Finance'), ('education', 'Education'), ('medical', 'Medical'), ('corporate', 'Corporate'), ('other', 'Other')], help_text='The subject of the regulation.', max_length=9),
),
migrations.AlterField(
model_name='regulation',
name='name',
field=models.CharField(help_text='The name of the regulation.', max_length=128, unique=True),
),
]
| [
"[email protected]"
] | |
d8378edcd6198ed26579441c3a40b78c8cf15001 | bc233c24523f05708dd1e091dca817f9095e6bb5 | /bitmovin_api_sdk/encoding/manifests/dash/periods/adaptationsets/representations/__init__.py | bf71c01861311a939e78407acf62aa9512c59a19 | [
"MIT"
] | permissive | bitmovin/bitmovin-api-sdk-python | e3d6cf8eb8bdad62cb83ec77c0fc4950b06b9cdd | b0860c0b1be7747cf22ad060985504da625255eb | refs/heads/main | 2023-09-01T15:41:03.628720 | 2023-08-30T10:52:13 | 2023-08-30T10:52:13 | 175,209,828 | 13 | 14 | MIT | 2021-04-29T12:30:31 | 2019-03-12T12:47:18 | Python | UTF-8 | Python | false | false | 1,493 | py | from bitmovin_api_sdk.encoding.manifests.dash.periods.adaptationsets.representations.representations_api import RepresentationsApi
from bitmovin_api_sdk.encoding.manifests.dash.periods.adaptationsets.representations.type.type_api import TypeApi
from bitmovin_api_sdk.encoding.manifests.dash.periods.adaptationsets.representations.vtt.vtt_api import VttApi
from bitmovin_api_sdk.encoding.manifests.dash.periods.adaptationsets.representations.imsc.imsc_api import ImscApi
from bitmovin_api_sdk.encoding.manifests.dash.periods.adaptationsets.representations.sprite.sprite_api import SpriteApi
from bitmovin_api_sdk.encoding.manifests.dash.periods.adaptationsets.representations.fmp4.fmp4_api import Fmp4Api
from bitmovin_api_sdk.encoding.manifests.dash.periods.adaptationsets.representations.chunked_text.chunked_text_api import ChunkedTextApi
from bitmovin_api_sdk.encoding.manifests.dash.periods.adaptationsets.representations.cmaf.cmaf_api import CmafApi
from bitmovin_api_sdk.encoding.manifests.dash.periods.adaptationsets.representations.mp4.mp4_api import Mp4Api
from bitmovin_api_sdk.encoding.manifests.dash.periods.adaptationsets.representations.webm.webm_api import WebmApi
from bitmovin_api_sdk.encoding.manifests.dash.periods.adaptationsets.representations.progressive_webm.progressive_webm_api import ProgressiveWebmApi
from bitmovin_api_sdk.encoding.manifests.dash.periods.adaptationsets.representations.dash_representation_list_query_params import DashRepresentationListQueryParams
| [
"[email protected]"
] | |
ca40498aa30d2a1e5baee83adfbb27bbb25c2bfa | f18125b848e37a64e35136a90cf4694e52eb9fcc | /teek/_timeouts.py | 13563144be59e5b03aa5f93e5c8b5b14d4b72708 | [
"MIT"
] | permissive | carlbordum/teek | d19271dfe11e3e77052b1a3c215ddf6a9d50e440 | a931b468744c8236fd4ce6f1dc3a8c4829d59db3 | refs/heads/master | 2020-04-16T11:41:10.909230 | 2019-01-13T19:24:16 | 2019-01-13T19:24:16 | 165,547,247 | 0 | 0 | null | 2019-01-13T19:48:26 | 2019-01-13T19:48:26 | null | UTF-8 | Python | false | false | 2,489 | py | import teek as tk
from teek._tcl_calls import make_thread_safe
# there's no after_info because i don't see how it would be useful in
# teek
class _Timeout:
def __init__(self, after_what, callback, args, kwargs):
if kwargs is None:
kwargs = {}
self._callback = callback
self._args = args
self._kwargs = kwargs
self._state = 'pending' # just for __repr__ and error messages
self._tcl_command = tk.create_command(self._run)
self._id = tk.tcl_call(str, 'after', after_what, self._tcl_command)
def __repr__(self):
name = getattr(self._callback, '__name__', self._callback)
return '<%s %r timeout %r>' % (self._state, name, self._id)
def _run(self):
needs_cleanup = True
# this is important, thread tests freeze without this special
# case for some reason
def quit_callback():
nonlocal needs_cleanup
needs_cleanup = False
tk.before_quit.connect(quit_callback)
try:
self._callback(*self._args, **self._kwargs)
self._state = 'successfully completed'
except Exception as e:
self._state = 'failed'
raise e
finally:
tk.before_quit.disconnect(quit_callback)
if needs_cleanup:
tk.delete_command(self._tcl_command)
@make_thread_safe
def cancel(self):
"""Prevent this timeout from running as scheduled.
:exc:`RuntimeError` is raised if the timeout has already ran or
it has been cancelled.
"""
if self._state != 'pending':
raise RuntimeError("cannot cancel a %s timeout" % self._state)
tk.tcl_call(None, 'after', 'cancel', self._id)
self._state = 'cancelled'
tk.delete_command(self._tcl_command)
@make_thread_safe
def after(ms, callback, args=(), kwargs=None):
"""Run ``callback(*args, **kwargs)`` after waiting for the given time.
The *ms* argument should be a waiting time in milliseconds, and
*kwargs* defaults to ``{}``. This returns a timeout object with a
``cancel()`` method that takes no arguments; you can use that to
cancel the timeout before it runs.
"""
return _Timeout(ms, callback, args, kwargs)
@make_thread_safe
def after_idle(callback, args=(), kwargs=None):
"""Like :func:`after`, but runs the timeout as soon as possible."""
return _Timeout('idle', callback, args, kwargs)
| [
"[email protected]"
] | |
3c2f70f7d8cb1b239b139682b5e5bfd6579d4cb8 | 02c4c52f2f630df77bc25994aee13a7530e3136d | /012016/python/xmlParsing.py | ec2f58145a53178b29ba7dc467dc309ce4c9fc3c | [] | no_license | abgoswam/2016 | ac7d61828bc5fda8c003f135bc250ed57d03ae4c | 307844ba74bf302c290a4e2b4792a096e0c3cb56 | refs/heads/master | 2020-04-15T14:03:49.674650 | 2016-12-09T02:19:44 | 2016-12-09T02:19:44 | 57,982,844 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,555 | py | # -*- coding: utf-8 -*-
"""
Created on Sun Jan 10 07:38:36 2016
@author: agoswami
Code from : http://www.blog.pythonlibrary.org/2013/04/30/python-101-intro-to-xml-parsing-with-elementtree/
"""
import time
import xml.etree.ElementTree as xml
import xml.etree.cElementTree as ET
import xml.dom.minidom as minidom
#http://stackoverflow.com/questions/17402323/use-xml-etree-elementtree-to-write-out-nicely-formatted-xml-files
def prettify(elem):
"""Return a pretty-printed XML string for the Element.
"""
"The idea is to print your Element in a string, parse it using minidom and convert it again in XML using the toprettyxml function"
rough_string = xml.tostring(elem, 'utf-8')
reparsed = minidom.parseString(rough_string)
return reparsed.toprettyxml(indent="\t")
def createXML(filename):
root = xml.Element("zAppointments")
appt = xml.Element("appointment")
root.append(appt)
# adding appt children
begin = xml.SubElement(appt, "begin")
begin.text = "12345678"
uid = xml.SubElement(appt, "uid")
uid.text = "040000008200E000"
alarmTime = xml.SubElement(appt, "alarmTime")
alarmTime.text = "1181572063"
state = xml.SubElement(appt, "state")
location = xml.SubElement(appt, "location")
duration = xml.SubElement(appt, "duration")
duration.text = "1800"
subject = xml.SubElement(appt, "subject")
tree = xml.ElementTree(root)
with open(filename, "w") as fh:
tree.write(fh)
def editXML(filename, updatedfilename):
tree = ET.ElementTree(file=filename)
root = tree.getroot()
for begin_time in root.iter("begin"):
begin_time.text = time.ctime(int(begin_time.text))
s = prettify(root)
print s
# tree = ET.ElementTree(root)
with open(updatedfilename, "w") as f:
# tree.write(f)
f.write(s)
def parseXML(xml_file):
"""
Parse XML with ElementTree
"""
tree = ET.ElementTree(file=xml_file)
print tree.getroot()
root = tree.getroot()
print "tag=%s, attrib=%s" % (root.tag, root.attrib)
for child in root:
print child.tag, child.attrib
if child.tag == "appointment":
for step_child in child:
print step_child.tag
# iterate over the entire tree
print "-" * 40
print "Iterating using a tree iterator"
print "-" * 40
iter_ = tree.getiterator()
for elem in iter_:
print elem.tag
# get the information via the children!
print "-" * 40
print "Iterating using getchildren()"
print "-" * 40
appointments = root.getchildren()
for appointment in appointments:
appt_children = appointment.getchildren()
for appt_child in appt_children:
print "%s=%s" % (appt_child.tag, appt_child.text)
#----------------------------------------------------------------------
if __name__ == "__main__":
filename = "appt.xml"
updatedfilename = "updated.xml"
createXML(filename)
## just playing around with how to read / write text to files in python
# f = open(filename, "ab")
# f.writelines("abhishek\n")
# f.writelines("goswami\n")
# f.writelines("microsoft\n")
# f.close()
#
# with open(filename, "rb") as fh:
# s = fh.read()
# print "++ line:{0}".format(s)
# for line in fh:
# print "-- line:{0}".format(line)
editXML(filename, updatedfilename)
parseXML(updatedfilename)
| [
"[email protected]"
] | |
17f286bd52e1fda213acc5e1347e4d32bd730c24 | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/389/usersdata/346/73669/submittedfiles/poligono.py | 2d92908686c389fe16d305bc44eb0541a9bdb9f1 | [] | no_license | rafaelperazzo/programacao-web | 95643423a35c44613b0f64bed05bd34780fe2436 | 170dd5440afb9ee68a973f3de13a99aa4c735d79 | refs/heads/master | 2021-01-12T14:06:25.773146 | 2017-12-22T16:05:45 | 2017-12-22T16:05:45 | 69,566,344 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 156 | py | # -*- coding: utf-8 -*-
#ENTRADA
n= int(input('Digite quantos lados deve ter o seu polígono: ')
#PROCESSAMENTO
nd = (n*(n-3))/2
#SAÍDA
print('%.1f' % nd)
| [
"[email protected]"
] | |
a23a188a9a220ca25ffaec14f74dd0d311ecb76a | ba3be84d355e90860479fc2a0d92b536c377c643 | /PYTHON/Advance/Python Controls/py_Frame2.py | d9e598e1135bffa05661b601196ac36c71774648 | [] | no_license | vipin26/python | c62a3427511658ff292085fc382c5b3b3ff4d609 | e8442b84c385ddef972d6a514e471d8eba8af0a3 | refs/heads/master | 2020-09-29T12:39:52.775466 | 2019-12-15T05:44:31 | 2019-12-15T05:44:31 | 227,034,374 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 348 | py | from Tkinter import *
top = Tk()
top.geometry("500x500")
#width="200", height="200"
f1 = Frame(top,bg="green")
f1.pack(side="left",fill=BOTH,expand=1)
f2 = Frame(top,bg="Red", width="200", height="200")
f2.pack(side="right",fill=BOTH,expand=1)
b1= Button(f1,text="Button 1");
b1.pack()
b2= Button(f2,text="Button 2");
b2.pack()
top.mainloop()
| [
"[email protected]"
] | |
5d7f25c116d2a9fa1d5af893930135ce01f01bff | f07a42f652f46106dee4749277d41c302e2b7406 | /Data Set/bug-fixing-5/d3d1aa2dca4988bb7a232458338d86a0c9fef06e-<main>-fix.py | 2ca55744f3a4a48e7dd7ef030d5aae4df1a066eb | [] | no_license | wsgan001/PyFPattern | e0fe06341cc5d51b3ad0fe29b84098d140ed54d1 | cc347e32745f99c0cd95e79a18ddacc4574d7faa | refs/heads/main | 2023-08-25T23:48:26.112133 | 2021-10-23T14:11:22 | 2021-10-23T14:11:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,010 | py | def main():
module = AnsibleModule(argument_spec=dict(src=dict(required=True), dest=dict(required=True), dest_port=dict(default=None, type='int'), delete=dict(default='no', type='bool'), private_key=dict(default=None), rsync_path=dict(default=None), _local_rsync_path=dict(default='rsync', type='path'), _substitute_controller=dict(default='no', type='bool'), archive=dict(default='yes', type='bool'), checksum=dict(default='no', type='bool'), compress=dict(default='yes', type='bool'), existing_only=dict(default='no', type='bool'), dirs=dict(default='no', type='bool'), recursive=dict(type='bool'), links=dict(type='bool'), copy_links=dict(type='bool'), perms=dict(type='bool'), times=dict(type='bool'), owner=dict(type='bool'), group=dict(type='bool'), set_remote_user=dict(default='yes', type='bool'), rsync_timeout=dict(type='int', default=0), rsync_opts=dict(type='list'), ssh_args=dict(type='str'), partial=dict(default='no', type='bool'), verify_host=dict(default='no', type='bool'), mode=dict(default='push', choices=['push', 'pull'])), supports_check_mode=True)
if module.params['_substitute_controller']:
try:
source = (('"' + substitute_controller(module.params['src'])) + '"')
dest = (('"' + substitute_controller(module.params['dest'])) + '"')
except ValueError:
module.fail_json(msg='Could not determine controller hostname for rsync to send to')
else:
source = (('"' + module.params['src']) + '"')
dest = (('"' + module.params['dest']) + '"')
dest_port = module.params['dest_port']
delete = module.params['delete']
private_key = module.params['private_key']
rsync_path = module.params['rsync_path']
rsync = module.params.get('_local_rsync_path', 'rsync')
rsync_timeout = module.params.get('rsync_timeout', 'rsync_timeout')
archive = module.params['archive']
checksum = module.params['checksum']
compress = module.params['compress']
existing_only = module.params['existing_only']
dirs = module.params['dirs']
partial = module.params['partial']
recursive = module.params['recursive']
links = module.params['links']
copy_links = module.params['copy_links']
perms = module.params['perms']
times = module.params['times']
owner = module.params['owner']
group = module.params['group']
rsync_opts = module.params['rsync_opts']
ssh_args = module.params['ssh_args']
verify_host = module.params['verify_host']
if ('/' not in rsync):
rsync = module.get_bin_path(rsync, required=True)
ssh = module.get_bin_path('ssh', required=True)
cmd = ('%s --delay-updates -F' % rsync)
if compress:
cmd = (cmd + ' --compress')
if rsync_timeout:
cmd = (cmd + (' --timeout=%s' % rsync_timeout))
if module.check_mode:
cmd = (cmd + ' --dry-run')
if delete:
cmd = (cmd + ' --delete-after')
if existing_only:
cmd = (cmd + ' --existing')
if checksum:
cmd = (cmd + ' --checksum')
if archive:
cmd = (cmd + ' --archive')
if (recursive is False):
cmd = (cmd + ' --no-recursive')
if (links is False):
cmd = (cmd + ' --no-links')
if (copy_links is True):
cmd = (cmd + ' --copy-links')
if (perms is False):
cmd = (cmd + ' --no-perms')
if (times is False):
cmd = (cmd + ' --no-times')
if (owner is False):
cmd = (cmd + ' --no-owner')
if (group is False):
cmd = (cmd + ' --no-group')
else:
if (recursive is True):
cmd = (cmd + ' --recursive')
if (links is True):
cmd = (cmd + ' --links')
if (copy_links is True):
cmd = (cmd + ' --copy-links')
if (perms is True):
cmd = (cmd + ' --perms')
if (times is True):
cmd = (cmd + ' --times')
if (owner is True):
cmd = (cmd + ' --owner')
if (group is True):
cmd = (cmd + ' --group')
if dirs:
cmd = (cmd + ' --dirs')
if (private_key is None):
private_key = ''
else:
private_key = ('-i "%s"' % private_key)
ssh_opts = '-S none'
if (not verify_host):
ssh_opts = ('%s -o StrictHostKeyChecking=no' % ssh_opts)
if ssh_args:
ssh_opts = ('%s %s' % (ssh_opts, ssh_args))
if (source.startswith('"rsync://') and dest.startswith('"rsync://')):
module.fail_json(msg='either src or dest must be a localhost', rc=1)
if ((not source.startswith('"rsync://')) and (not dest.startswith('"rsync://'))):
if (dest_port is not None):
cmd += (" --rsh 'ssh %s %s -o Port=%s'" % (private_key, ssh_opts, dest_port))
else:
cmd += (" --rsh 'ssh %s %s'" % (private_key, ssh_opts))
if rsync_path:
cmd = (cmd + (' --rsync-path=%s' % rsync_path))
if rsync_opts:
cmd = ((cmd + ' ') + ' '.join(rsync_opts))
if partial:
cmd = (cmd + ' --partial')
changed_marker = '<<CHANGED>>'
cmd = (((cmd + " --out-format='") + changed_marker) + "%i %n%L'")
if ('@' not in source):
source = os.path.expanduser(source)
if ('@' not in dest):
dest = os.path.expanduser(dest)
cmd = ' '.join([cmd, source, dest])
cmdstr = cmd
(rc, out, err) = module.run_command(cmd)
if rc:
return module.fail_json(msg=err, rc=rc, cmd=cmdstr)
else:
changed = (changed_marker in out)
out_clean = out.replace(changed_marker, '')
out_lines = out_clean.split('\n')
while ('' in out_lines):
out_lines.remove('')
if module._diff:
diff = {
'prepared': out_clean,
}
return module.exit_json(changed=changed, msg=out_clean, rc=rc, cmd=cmdstr, stdout_lines=out_lines, diff=diff)
else:
return module.exit_json(changed=changed, msg=out_clean, rc=rc, cmd=cmdstr, stdout_lines=out_lines) | [
"[email protected]"
] | |
f1984d621cb9dff5c7d33467c52fd530da9da790 | d78d214c1040865d1d054cc034ff04e3cb025549 | /bdgtools/io.py | 526a76e4e092697ed3e067aaa8e3ee8588a8646d | [
"MIT"
] | permissive | knutdrand/bdgtools | 922685c6225bb0dc458d3f4b9dc6985aee0b9e51 | 18d21586515ec03e5fb96e959447f6b35e5350de | refs/heads/master | 2023-01-03T14:27:05.855074 | 2020-10-21T12:30:12 | 2020-10-21T12:30:12 | 301,361,372 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,279 | py | import logging
from itertools import chain, groupby
from more_itertools import pairwise
from operator import itemgetter
import pandas as pd
import numpy as np
from .regions import Regions
from .splitregions import SplitRegions, Genes
from .bedgraph import BedGraph, broadcast
log = logging
def _peek_line(f):
pos = f.tell()
line = f.readline()
f.seek(pos)
return line
def read_bedfile(file_obj):
n_cols = len(_peek_line(file_obj).split("\t"))
assert n_cols >=3, n_cols
if n_cols < 6:
table = pd.read_table(file_obj, names=["chrom", "start", "end"], usecols=[0, 1, 2])
else:
table = pd.read_table(file_obj, names=["chrom", "start", "end", "direction"], usecols=[0, 1, 2, 5])
table = table.sort_values(["chrom", "start"])
changes = np.flatnonzero(table["chrom"].values[:-1] != table["chrom"].values[1:])+1
changes = np.concatenate(([0], changes, [table["chrom"].values.size]))
chrom_split = (table.iloc[start:end] for start, end in zip(changes[:-1], changes[1:]))
r = {t["chrom"].iloc[0]: Regions(t["start"].values, t["end"].values,
np.where(t["direction"].values=="+", 1, -1) if n_cols>=6 else 1)
for t in chrom_split}
return r
def _fix_bedgraph(starts, ends, values):
ends_w_zero = np.insert(ends[:-1], 0, 0)
missing = np.flatnonzero(starts != ends_w_zero)
new_starts = ends_w_zero[missing]
new_ends = starts[missing]
all_starts = np.empty(starts.size+missing.size, dtype=starts.dtype)
all_ends = np.empty(starts.size+missing.size,dtype=ends.dtype)
all_values = np.empty(starts.size+missing.size, dtype=values.dtype)
new_missing = missing + np.arange(missing.size)
all_starts[new_missing] = ends_w_zero[missing]
all_ends[new_missing] = starts[missing]
all_values[new_missing] = 0
for i, (a, b) in enumerate(pairwise(chain([0], missing, [starts.size]))):
all_starts[a+i:b+i] = starts[a:b]
all_ends[a+i:b+i] = ends[a:b]
all_values[a+i:b+i] = values[a:b]
return all_starts, all_ends, all_values
def _get_bedgraph(chunks):
chunks = list(chunks)
cur_chrom = chunks[0]["chrom"].iloc[0]
starts = np.concatenate([c["start"].values for c in chunks])
ends = np.concatenate([c["end"].values for c in chunks])
values = np.concatenate([c["value"].values for c in chunks])
if starts[0] != 0 or not np.all(starts[1:] == ends[:-1]):
logging.warning(f"Uncomplete bedfile, fixing %s", starts[0])
starts, ends, values = _fix_bedgraph(starts, ends, values)
assert np.all(starts[1:] == ends[:-1]), f"Begraph is not continous on {cur_chrom}, {starts[1:]}, {ends[:-1]}\n{np.flatnonzero(starts[1:]!=ends[:-1])}, {starts.size}"
log.info("Read chromosome", cur_chrom)
return BedGraph(starts,
values,
chunks[-1]["end"].values[-1])
def read_bedgraph(file_obj, size_hint=1000000):
reader = pd.read_table(file_obj, names=["chrom", "start", "end", "value"], usecols=[0, 1, 2, 3], chunksize=size_hint)
grouped = groupby(chain.from_iterable(chunk.groupby("chrom", sort=False) for chunk in reader),
itemgetter(0))
grouped = ((chrom, map(itemgetter(1), group)) for chrom, group in grouped)
return ((chrom, _get_bedgraph(group)) for chrom, group in grouped)
def _get_bedfile(chunks, with_strand=False):
chunks = list(chunks)
cur_chrom = chunks[0]["chrom"].iloc[0]
starts = np.concatenate([c["start"].values for c in chunks])
ends = np.concatenate([c["end"].values for c in chunks])
if with_strand:
strands = np.concatenate([np.where(c["strand"].values=="+", 1, -1) for c in chunks])
else:
strands=1
log.info("Read chromosome", cur_chrom)
return Regions(starts,
ends,
strands)
def read_large_bedfile(file_obj, size_hint=1000000):
n_cols = len(_peek_line(file_obj).split("\t"))
assert n_cols >=3, n_cols
names=["chrom", "start", "end"]
cols = [0, 1, 2]
if n_cols>=6:
names.append("strand")
cols.append(5)
reader = pd.read_table(file_obj, names=names, usecols=cols, chunksize=size_hint)
grouped = groupby(chain.from_iterable(chunk.groupby("chrom", sort=False) for chunk in reader),
itemgetter(0))
grouped = ((chrom, map(itemgetter(1), group)) for chrom, group in grouped)
return ((chrom, _get_bedfile(group)) for chrom, group in grouped)
def _filter_coding(df):
s = np.array([starts[0] for starts in df["exon_starts"]])
e = np.array([ends[-1] for ends in df["exon_ends"]])
mask = df["cds_start"] > s
mask &= df["cds_end"] > df["cds_start"]
mask &= e > df["cds_end"]
if not np.any(mask):
return None
return df.loc[mask]
def _get_genes(df):
df = _filter_coding(df)
if df is None:
return None
directions = np.where(df["direction"].values=="+", 1, -1)
starts = np.concatenate([s[::d] for s, d in zip(df["exon_starts"].values, directions)])
ends = np.concatenate([s[::d] for s, d in zip(df["exon_ends"].values, directions)])
lens = [len(starts) for starts in df["exon_starts"]]
offsets=np.cumsum([0]+lens)
all_directions = broadcast(directions, offsets)
regions = Regions(starts, ends, all_directions)
coding_offsets = _find_coding_offsets(df["cds_start"].values,
df["cds_end"].values,
regions, offsets, all_directions)
return Genes(regions, offsets, coding_regions=Regions(coding_offsets[0], coding_offsets[1]))
def _find_coding_offsets(cds_starts, cds_ends, regions, offsets, directions):
cum_sizes = np.insert(np.cumsum(regions.sizes()), 0, 0)
starts = broadcast(cds_starts, offsets)
start_idxs = np.flatnonzero((regions.ends>=starts) & (regions.starts<=starts))
local_starts = np.where(directions[start_idxs]==1,
cds_starts-regions.starts[start_idxs],
regions.ends[start_idxs]-cds_starts)
local_starts += cum_sizes[start_idxs]-cum_sizes[offsets[:-1]]
ends = broadcast(cds_ends, offsets)
end_idxs = np.flatnonzero((regions.ends>=ends) & (regions.starts<=ends))
local_ends = np.where(directions[end_idxs]==1,
cds_ends-regions.starts[end_idxs],
regions.ends[end_idxs]-cds_ends)
local_ends += cum_sizes[end_idxs]-cum_sizes[offsets[:-1]]
return np.where(directions[start_idxs]==1, local_starts, local_ends), np.where(directions[start_idxs]==-1, local_starts, local_ends)
def read_refseq(file_obj):
get_ints = lambda x: [int(r) for r in x.split(",") if r]
df = pd.read_table(file_obj,
names=["chrom", "direction", "start", "end","cds_start","cds_end", "exon_starts", "exon_ends"],
usecols=[2,3,4,5,6,7,9,10],
converters={"exon_starts": get_ints, "exon_ends": get_ints})
grouped = df.sort_values(["chrom", "start"]).groupby("chrom", sort=False)
d = {chrom: _get_genes(df) for chrom, df in grouped}
return {chrom: genes for chrom, genes in d.items() if genes is not None}
def write_bedgraph(bedgraphs, f):
for chrom, bedgraph in bedgraphs:
if bedgraph._size is not None:
df = pd.DataFrame({"chrom": chrom,
"start": bedgraph._indices,
"end": np.append(bedgraph._indices, bedgraph._size),
"value": bedgraph._values})
else:
df = pd.DataFrame({"chrom": chrom,
"start": bedgraph._indices[:-1],
"end": bedgraph._indices[1:],
"value": bedgraph._values[:-1]})
df.to_csv(f, sep="\t", header=False, index=False)
def write_bedfile(regions_dict, f):
for chrom, regions in regions_dict.items():
df = pd.DataFrame({"chrom": chrom,
"start": regions.starts,
"end": regions.ends})
df.to_csv(f, sep="\t", header=False, index=False)
| [
"[email protected]"
] | |
2749a89da17d91be60716423a5b52e513374404b | 7e325da0ec25a56158f4a47acf6f594548a72384 | /users/migrations/0005_profile_stripe_customer_id.py | 97a12f3ccd87c340090928f9137cccccc4257501 | [
"MIT"
] | permissive | drewvpham/xclude.com | 5102a921721c508552648ee03f5a8e1b0bafb6e8 | 103e89e2326c4c6fbfab819c43bc4e4634913bc9 | refs/heads/master | 2022-12-16T06:36:00.631404 | 2019-12-29T20:35:16 | 2019-12-29T20:35:16 | 222,317,889 | 0 | 0 | MIT | 2022-12-07T23:54:06 | 2019-11-17T21:58:47 | Python | UTF-8 | Python | false | false | 428 | py | # Generated by Django 2.2.7 on 2019-12-24 16:01
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('users', '0004_profile_one_click_purchasing'),
]
operations = [
migrations.AddField(
model_name='profile',
name='stripe_customer_id',
field=models.CharField(blank=True, max_length=50, null=True),
),
]
| [
"[email protected]"
] | |
aa6c6881d7565c65dcc402b478b85a6aaab77318 | 8410bb5a2e8849bb3a554b95ddc713d88f3440c4 | /aws-dev/awsdev8/venv/Lib/site-packages/amazondax/grammar/DynamoDbGrammarListener.py | e8bd3845c650ff1693a6d39c27674112f67b43c3 | [
"MIT"
] | permissive | PacktPublishing/-AWS-Certified-Developer---Associate-Certification | ae99b6c1efb30e8fab5b76e3d8c821823a4cd852 | b9838b4e038b42ad1813a296379cbbc40cab6286 | refs/heads/master | 2022-11-03T04:37:49.014335 | 2022-10-31T05:42:19 | 2022-10-31T05:42:19 | 219,964,717 | 13 | 11 | MIT | 2021-06-02T00:57:45 | 2019-11-06T09:54:09 | Python | UTF-8 | Python | false | false | 13,172 | py | # Generated from grammar/DynamoDbGrammar.g4 by ANTLR 4.7
from antlr4 import *
if __name__ is not None and "." in __name__:
from .DynamoDbGrammarParser import DynamoDbGrammarParser
else:
from DynamoDbGrammarParser import DynamoDbGrammarParser
# This class defines a complete listener for a parse tree produced by DynamoDbGrammarParser.
class DynamoDbGrammarListener(ParseTreeListener):
# Enter a parse tree produced by DynamoDbGrammarParser#projection_.
def enterProjection_(self, ctx:DynamoDbGrammarParser.Projection_Context):
pass
# Exit a parse tree produced by DynamoDbGrammarParser#projection_.
def exitProjection_(self, ctx:DynamoDbGrammarParser.Projection_Context):
pass
# Enter a parse tree produced by DynamoDbGrammarParser#projection.
def enterProjection(self, ctx:DynamoDbGrammarParser.ProjectionContext):
pass
# Exit a parse tree produced by DynamoDbGrammarParser#projection.
def exitProjection(self, ctx:DynamoDbGrammarParser.ProjectionContext):
pass
# Enter a parse tree produced by DynamoDbGrammarParser#condition_.
def enterCondition_(self, ctx:DynamoDbGrammarParser.Condition_Context):
pass
# Exit a parse tree produced by DynamoDbGrammarParser#condition_.
def exitCondition_(self, ctx:DynamoDbGrammarParser.Condition_Context):
pass
# Enter a parse tree produced by DynamoDbGrammarParser#Or.
def enterOr(self, ctx:DynamoDbGrammarParser.OrContext):
pass
# Exit a parse tree produced by DynamoDbGrammarParser#Or.
def exitOr(self, ctx:DynamoDbGrammarParser.OrContext):
pass
# Enter a parse tree produced by DynamoDbGrammarParser#Negation.
def enterNegation(self, ctx:DynamoDbGrammarParser.NegationContext):
pass
# Exit a parse tree produced by DynamoDbGrammarParser#Negation.
def exitNegation(self, ctx:DynamoDbGrammarParser.NegationContext):
pass
# Enter a parse tree produced by DynamoDbGrammarParser#In.
def enterIn(self, ctx:DynamoDbGrammarParser.InContext):
pass
# Exit a parse tree produced by DynamoDbGrammarParser#In.
def exitIn(self, ctx:DynamoDbGrammarParser.InContext):
pass
# Enter a parse tree produced by DynamoDbGrammarParser#And.
def enterAnd(self, ctx:DynamoDbGrammarParser.AndContext):
pass
# Exit a parse tree produced by DynamoDbGrammarParser#And.
def exitAnd(self, ctx:DynamoDbGrammarParser.AndContext):
pass
# Enter a parse tree produced by DynamoDbGrammarParser#Between.
def enterBetween(self, ctx:DynamoDbGrammarParser.BetweenContext):
pass
# Exit a parse tree produced by DynamoDbGrammarParser#Between.
def exitBetween(self, ctx:DynamoDbGrammarParser.BetweenContext):
pass
# Enter a parse tree produced by DynamoDbGrammarParser#FunctionCondition.
def enterFunctionCondition(self, ctx:DynamoDbGrammarParser.FunctionConditionContext):
pass
# Exit a parse tree produced by DynamoDbGrammarParser#FunctionCondition.
def exitFunctionCondition(self, ctx:DynamoDbGrammarParser.FunctionConditionContext):
pass
# Enter a parse tree produced by DynamoDbGrammarParser#Comparator.
def enterComparator(self, ctx:DynamoDbGrammarParser.ComparatorContext):
pass
# Exit a parse tree produced by DynamoDbGrammarParser#Comparator.
def exitComparator(self, ctx:DynamoDbGrammarParser.ComparatorContext):
pass
# Enter a parse tree produced by DynamoDbGrammarParser#ConditionGrouping.
def enterConditionGrouping(self, ctx:DynamoDbGrammarParser.ConditionGroupingContext):
pass
# Exit a parse tree produced by DynamoDbGrammarParser#ConditionGrouping.
def exitConditionGrouping(self, ctx:DynamoDbGrammarParser.ConditionGroupingContext):
pass
# Enter a parse tree produced by DynamoDbGrammarParser#comparator_symbol.
def enterComparator_symbol(self, ctx:DynamoDbGrammarParser.Comparator_symbolContext):
pass
# Exit a parse tree produced by DynamoDbGrammarParser#comparator_symbol.
def exitComparator_symbol(self, ctx:DynamoDbGrammarParser.Comparator_symbolContext):
pass
# Enter a parse tree produced by DynamoDbGrammarParser#update_.
def enterUpdate_(self, ctx:DynamoDbGrammarParser.Update_Context):
pass
# Exit a parse tree produced by DynamoDbGrammarParser#update_.
def exitUpdate_(self, ctx:DynamoDbGrammarParser.Update_Context):
pass
# Enter a parse tree produced by DynamoDbGrammarParser#update.
def enterUpdate(self, ctx:DynamoDbGrammarParser.UpdateContext):
pass
# Exit a parse tree produced by DynamoDbGrammarParser#update.
def exitUpdate(self, ctx:DynamoDbGrammarParser.UpdateContext):
pass
# Enter a parse tree produced by DynamoDbGrammarParser#set_section.
def enterSet_section(self, ctx:DynamoDbGrammarParser.Set_sectionContext):
pass
# Exit a parse tree produced by DynamoDbGrammarParser#set_section.
def exitSet_section(self, ctx:DynamoDbGrammarParser.Set_sectionContext):
pass
# Enter a parse tree produced by DynamoDbGrammarParser#set_action.
def enterSet_action(self, ctx:DynamoDbGrammarParser.Set_actionContext):
pass
# Exit a parse tree produced by DynamoDbGrammarParser#set_action.
def exitSet_action(self, ctx:DynamoDbGrammarParser.Set_actionContext):
pass
# Enter a parse tree produced by DynamoDbGrammarParser#add_section.
def enterAdd_section(self, ctx:DynamoDbGrammarParser.Add_sectionContext):
pass
# Exit a parse tree produced by DynamoDbGrammarParser#add_section.
def exitAdd_section(self, ctx:DynamoDbGrammarParser.Add_sectionContext):
pass
# Enter a parse tree produced by DynamoDbGrammarParser#add_action.
def enterAdd_action(self, ctx:DynamoDbGrammarParser.Add_actionContext):
pass
# Exit a parse tree produced by DynamoDbGrammarParser#add_action.
def exitAdd_action(self, ctx:DynamoDbGrammarParser.Add_actionContext):
pass
# Enter a parse tree produced by DynamoDbGrammarParser#delete_section.
def enterDelete_section(self, ctx:DynamoDbGrammarParser.Delete_sectionContext):
pass
# Exit a parse tree produced by DynamoDbGrammarParser#delete_section.
def exitDelete_section(self, ctx:DynamoDbGrammarParser.Delete_sectionContext):
pass
# Enter a parse tree produced by DynamoDbGrammarParser#delete_action.
def enterDelete_action(self, ctx:DynamoDbGrammarParser.Delete_actionContext):
pass
# Exit a parse tree produced by DynamoDbGrammarParser#delete_action.
def exitDelete_action(self, ctx:DynamoDbGrammarParser.Delete_actionContext):
pass
# Enter a parse tree produced by DynamoDbGrammarParser#remove_section.
def enterRemove_section(self, ctx:DynamoDbGrammarParser.Remove_sectionContext):
pass
# Exit a parse tree produced by DynamoDbGrammarParser#remove_section.
def exitRemove_section(self, ctx:DynamoDbGrammarParser.Remove_sectionContext):
pass
# Enter a parse tree produced by DynamoDbGrammarParser#remove_action.
def enterRemove_action(self, ctx:DynamoDbGrammarParser.Remove_actionContext):
pass
# Exit a parse tree produced by DynamoDbGrammarParser#remove_action.
def exitRemove_action(self, ctx:DynamoDbGrammarParser.Remove_actionContext):
pass
# Enter a parse tree produced by DynamoDbGrammarParser#OperandValue.
def enterOperandValue(self, ctx:DynamoDbGrammarParser.OperandValueContext):
pass
# Exit a parse tree produced by DynamoDbGrammarParser#OperandValue.
def exitOperandValue(self, ctx:DynamoDbGrammarParser.OperandValueContext):
pass
# Enter a parse tree produced by DynamoDbGrammarParser#ArithmeticValue.
def enterArithmeticValue(self, ctx:DynamoDbGrammarParser.ArithmeticValueContext):
pass
# Exit a parse tree produced by DynamoDbGrammarParser#ArithmeticValue.
def exitArithmeticValue(self, ctx:DynamoDbGrammarParser.ArithmeticValueContext):
pass
# Enter a parse tree produced by DynamoDbGrammarParser#PlusMinus.
def enterPlusMinus(self, ctx:DynamoDbGrammarParser.PlusMinusContext):
pass
# Exit a parse tree produced by DynamoDbGrammarParser#PlusMinus.
def exitPlusMinus(self, ctx:DynamoDbGrammarParser.PlusMinusContext):
pass
# Enter a parse tree produced by DynamoDbGrammarParser#ArithmeticParens.
def enterArithmeticParens(self, ctx:DynamoDbGrammarParser.ArithmeticParensContext):
pass
# Exit a parse tree produced by DynamoDbGrammarParser#ArithmeticParens.
def exitArithmeticParens(self, ctx:DynamoDbGrammarParser.ArithmeticParensContext):
pass
# Enter a parse tree produced by DynamoDbGrammarParser#PathOperand.
def enterPathOperand(self, ctx:DynamoDbGrammarParser.PathOperandContext):
pass
# Exit a parse tree produced by DynamoDbGrammarParser#PathOperand.
def exitPathOperand(self, ctx:DynamoDbGrammarParser.PathOperandContext):
pass
# Enter a parse tree produced by DynamoDbGrammarParser#LiteralOperand.
def enterLiteralOperand(self, ctx:DynamoDbGrammarParser.LiteralOperandContext):
pass
# Exit a parse tree produced by DynamoDbGrammarParser#LiteralOperand.
def exitLiteralOperand(self, ctx:DynamoDbGrammarParser.LiteralOperandContext):
pass
# Enter a parse tree produced by DynamoDbGrammarParser#FunctionOperand.
def enterFunctionOperand(self, ctx:DynamoDbGrammarParser.FunctionOperandContext):
pass
# Exit a parse tree produced by DynamoDbGrammarParser#FunctionOperand.
def exitFunctionOperand(self, ctx:DynamoDbGrammarParser.FunctionOperandContext):
pass
# Enter a parse tree produced by DynamoDbGrammarParser#ParenOperand.
def enterParenOperand(self, ctx:DynamoDbGrammarParser.ParenOperandContext):
pass
# Exit a parse tree produced by DynamoDbGrammarParser#ParenOperand.
def exitParenOperand(self, ctx:DynamoDbGrammarParser.ParenOperandContext):
pass
# Enter a parse tree produced by DynamoDbGrammarParser#FunctionCall.
def enterFunctionCall(self, ctx:DynamoDbGrammarParser.FunctionCallContext):
pass
# Exit a parse tree produced by DynamoDbGrammarParser#FunctionCall.
def exitFunctionCall(self, ctx:DynamoDbGrammarParser.FunctionCallContext):
pass
# Enter a parse tree produced by DynamoDbGrammarParser#path.
def enterPath(self, ctx:DynamoDbGrammarParser.PathContext):
pass
# Exit a parse tree produced by DynamoDbGrammarParser#path.
def exitPath(self, ctx:DynamoDbGrammarParser.PathContext):
pass
# Enter a parse tree produced by DynamoDbGrammarParser#id_.
def enterId_(self, ctx:DynamoDbGrammarParser.Id_Context):
pass
# Exit a parse tree produced by DynamoDbGrammarParser#id_.
def exitId_(self, ctx:DynamoDbGrammarParser.Id_Context):
pass
# Enter a parse tree produced by DynamoDbGrammarParser#MapAccess.
def enterMapAccess(self, ctx:DynamoDbGrammarParser.MapAccessContext):
pass
# Exit a parse tree produced by DynamoDbGrammarParser#MapAccess.
def exitMapAccess(self, ctx:DynamoDbGrammarParser.MapAccessContext):
pass
# Enter a parse tree produced by DynamoDbGrammarParser#ListAccess.
def enterListAccess(self, ctx:DynamoDbGrammarParser.ListAccessContext):
pass
# Exit a parse tree produced by DynamoDbGrammarParser#ListAccess.
def exitListAccess(self, ctx:DynamoDbGrammarParser.ListAccessContext):
pass
# Enter a parse tree produced by DynamoDbGrammarParser#LiteralSub.
def enterLiteralSub(self, ctx:DynamoDbGrammarParser.LiteralSubContext):
pass
# Exit a parse tree produced by DynamoDbGrammarParser#LiteralSub.
def exitLiteralSub(self, ctx:DynamoDbGrammarParser.LiteralSubContext):
pass
# Enter a parse tree produced by DynamoDbGrammarParser#expression_attr_names_sub.
def enterExpression_attr_names_sub(self, ctx:DynamoDbGrammarParser.Expression_attr_names_subContext):
pass
# Exit a parse tree produced by DynamoDbGrammarParser#expression_attr_names_sub.
def exitExpression_attr_names_sub(self, ctx:DynamoDbGrammarParser.Expression_attr_names_subContext):
pass
# Enter a parse tree produced by DynamoDbGrammarParser#expression_attr_values_sub.
def enterExpression_attr_values_sub(self, ctx:DynamoDbGrammarParser.Expression_attr_values_subContext):
pass
# Exit a parse tree produced by DynamoDbGrammarParser#expression_attr_values_sub.
def exitExpression_attr_values_sub(self, ctx:DynamoDbGrammarParser.Expression_attr_values_subContext):
pass
# Enter a parse tree produced by DynamoDbGrammarParser#unknown.
def enterUnknown(self, ctx:DynamoDbGrammarParser.UnknownContext):
pass
# Exit a parse tree produced by DynamoDbGrammarParser#unknown.
def exitUnknown(self, ctx:DynamoDbGrammarParser.UnknownContext):
pass
| [
"[email protected]"
] | |
0e928393f712c9aa0b389fc8e611da0166635eb7 | a3d6eb92c6fc6ed6095d10bc7b329cb8b4a8b166 | /src/config.py | 9f147f5f9b4dfea32202702abb0161c77899e708 | [] | no_license | hgiesel/anki_straight_reward | ab29e6f154beba7c5f2f9bd9579c21cdd942b218 | 3fe72255f667d2eb544afb2541a1eb974c23eede | refs/heads/master | 2022-12-23T22:38:28.432113 | 2022-12-12T13:46:36 | 2022-12-12T13:46:36 | 245,190,627 | 19 | 4 | null | 2023-08-28T16:01:55 | 2020-03-05T14:53:08 | Python | UTF-8 | Python | false | false | 2,381 | py | from anki.cards import Card
from aqt import mw
from .types import StraightSetting
DEFAULT_SETTINGS = StraightSetting(2, True, 5, 5, 130, 250)
KEYWORD = "straightReward"
def serialize_setting(setting: StraightSetting) -> dict:
return {
"enableNotifications": setting.enable_notifications,
"straightLength": setting.straight_length,
"baseEase": setting.base_ease,
"stepEase": setting.step_ease,
"startEase": setting.start_ease,
"stopEase": setting.stop_ease,
}
def deserialize_setting(
straight_length: int,
enable_notifications: bool,
base_ease: int,
step_ease: int,
start_ease: int,
stop_ease: int,
) -> StraightSetting:
return StraightSetting(
straight_length,
enable_notifications,
base_ease,
step_ease,
start_ease,
stop_ease,
)
def deserialize_setting_from_dict(setting_data: dict) -> StraightSetting:
return StraightSetting(
setting_data["straightLength"]
if "straightLength" in setting_data
else DEFAULT_SETTINGS.straight_length,
setting_data["enableNotifications"]
if "enableNotifications" in setting_data
else DEFAULT_SETTINGS.enable_notifications,
setting_data["baseEase"]
if "baseEase" in setting_data
else DEFAULT_SETTINGS.base_ease,
setting_data["stepEase"]
if "stepEase" in setting_data
else DEFAULT_SETTINGS.step_ease,
setting_data["startEase"]
if "startEase" in setting_data
else DEFAULT_SETTINGS.start_ease,
setting_data["stopEase"]
if "stopEase" in setting_data
else DEFAULT_SETTINGS.stop_ease,
)
def get_setting_from_config(config) -> StraightSetting:
try:
return deserialize_setting_from_dict(config[KEYWORD])
except:
return get_default_setting()
def get_setting_from_card(card: Card) -> StraightSetting:
# confForDid did resort to conf for default deck if not available (TODO is this still true?)
config = mw.col.decks.config_dict_for_deck_id(card.odid or card.did)
return get_setting_from_config(config)
def get_default_setting() -> StraightSetting:
return DEFAULT_SETTINGS
def write_setting(config, setting: StraightSetting):
config[KEYWORD] = serialize_setting(setting)
mw.col.decks.update_config(config)
| [
"[email protected]"
] | |
841afbf9bb4cdfd5cafcbc0c6f3f11f329e527fc | 24fe1f54fee3a3df952ca26cce839cc18124357a | /servicegraph/lib/python2.7/site-packages/acimodel-4.0_3d-py2.7.egg/cobra/modelimpl/eqptcapacity/l3v4usage32per.py | ec7d3ed093f8b0173f4a279c5813fc5c3027ba2f | [] | no_license | aperiyed/servicegraph-cloudcenter | 4b8dc9e776f6814cf07fe966fbd4a3481d0f45ff | 9eb7975f2f6835e1c0528563a771526896306392 | refs/heads/master | 2023-05-10T17:27:18.022381 | 2020-01-20T09:18:28 | 2020-01-20T09:18:28 | 235,065,676 | 0 | 0 | null | 2023-05-01T21:19:14 | 2020-01-20T09:36:37 | Python | UTF-8 | Python | false | false | 12,181 | py | # coding=UTF-8
# **********************************************************************
# Copyright (c) 2013-2019 Cisco Systems, Inc. All rights reserved
# written by zen warriors, do not modify!
# **********************************************************************
from cobra.mit.meta import ClassMeta
from cobra.mit.meta import StatsClassMeta
from cobra.mit.meta import CounterMeta
from cobra.mit.meta import PropMeta
from cobra.mit.meta import Category
from cobra.mit.meta import SourceRelationMeta
from cobra.mit.meta import NamedSourceRelationMeta
from cobra.mit.meta import TargetRelationMeta
from cobra.mit.meta import DeploymentPathMeta, DeploymentCategory
from cobra.model.category import MoCategory, PropCategory, CounterCategory
from cobra.mit.mo import Mo
# ##################################################
class L3v4Usage32Per(Mo):
meta = StatsClassMeta("cobra.model.eqptcapacity.L3v4Usage32Per", "Layer3 v4 32 entries usage percentage")
counter = CounterMeta("normalizedv4Total", CounterCategory.GAUGE, "percentage", "Total v4 32 L3 entries usage percentage")
counter._propRefs[PropCategory.IMPLICIT_LASTREADING] = "normalizedv4TotalLast"
counter._propRefs[PropCategory.IMPLICIT_MIN] = "normalizedv4TotalMin"
counter._propRefs[PropCategory.IMPLICIT_MAX] = "normalizedv4TotalMax"
counter._propRefs[PropCategory.IMPLICIT_AVG] = "normalizedv4TotalAvg"
counter._propRefs[PropCategory.IMPLICIT_SUSPECT] = "normalizedv4TotalSpct"
counter._propRefs[PropCategory.IMPLICIT_TOTAL] = "normalizedv4TotalTtl"
counter._propRefs[PropCategory.IMPLICIT_THRESHOLDED] = "normalizedv4TotalThr"
counter._propRefs[PropCategory.IMPLICIT_TREND_BASE] = "normalizedv4TotalTrBase"
counter._propRefs[PropCategory.IMPLICIT_TREND] = "normalizedv4TotalTr"
meta._counters.append(counter)
meta.isAbstract = True
meta.moClassName = "eqptcapacityL3v4Usage32Per"
meta.moClassName = "eqptcapacityL3v4Usage32Per"
meta.rnFormat = ""
meta.category = MoCategory.STATS_CURRENT
meta.label = "current Layer3 v4 32 entries usage percentage stats"
meta.writeAccessMask = 0x1
meta.readAccessMask = 0x1
meta.isDomainable = False
meta.isReadOnly = True
meta.isConfigurable = False
meta.isDeletable = False
meta.isContextRoot = False
meta.superClasses.add("cobra.model.stats.Item")
meta.superClasses.add("cobra.model.stats.Curr")
meta.concreteSubClasses.add("cobra.model.eqptcapacity.L3v4Usage32Per1d")
meta.concreteSubClasses.add("cobra.model.eqptcapacity.L3v4Usage32Per5min")
meta.concreteSubClasses.add("cobra.model.eqptcapacity.L3v4Usage32Per1qtr")
meta.concreteSubClasses.add("cobra.model.eqptcapacity.L3v4Usage32Per1h")
meta.concreteSubClasses.add("cobra.model.eqptcapacity.L3v4Usage32Per1mo")
meta.concreteSubClasses.add("cobra.model.eqptcapacity.L3v4Usage32Per1year")
meta.concreteSubClasses.add("cobra.model.eqptcapacity.L3v4Usage32Per1w")
meta.concreteSubClasses.add("cobra.model.eqptcapacity.L3v4Usage32Per15min")
meta.rnPrefixes = [
]
prop = PropMeta("str", "childAction", "childAction", 4, PropCategory.CHILD_ACTION)
prop.label = "None"
prop.isImplicit = True
prop.isAdmin = True
prop._addConstant("deleteAll", "deleteall", 16384)
prop._addConstant("deleteNonPresent", "deletenonpresent", 8192)
prop._addConstant("ignore", "ignore", 4096)
meta.props.add("childAction", prop)
prop = PropMeta("str", "cnt", "cnt", 16212, PropCategory.REGULAR)
prop.label = "Number of Collections During this Interval"
prop.isImplicit = True
prop.isAdmin = True
meta.props.add("cnt", prop)
prop = PropMeta("str", "dn", "dn", 1, PropCategory.DN)
prop.label = "None"
prop.isDn = True
prop.isImplicit = True
prop.isAdmin = True
prop.isCreateOnly = True
meta.props.add("dn", prop)
prop = PropMeta("str", "lastCollOffset", "lastCollOffset", 111, PropCategory.REGULAR)
prop.label = "Collection Length"
prop.isImplicit = True
prop.isAdmin = True
meta.props.add("lastCollOffset", prop)
prop = PropMeta("str", "normalizedv4TotalAvg", "normalizedv4TotalAvg", 44076, PropCategory.IMPLICIT_AVG)
prop.label = "Total v4 32 L3 entries usage percentage average value"
prop.isOper = True
prop.isStats = True
meta.props.add("normalizedv4TotalAvg", prop)
prop = PropMeta("str", "normalizedv4TotalLast", "normalizedv4TotalLast", 44073, PropCategory.IMPLICIT_LASTREADING)
prop.label = "Total v4 32 L3 entries usage percentage current value"
prop.isOper = True
prop.isStats = True
meta.props.add("normalizedv4TotalLast", prop)
prop = PropMeta("str", "normalizedv4TotalMax", "normalizedv4TotalMax", 44075, PropCategory.IMPLICIT_MAX)
prop.label = "Total v4 32 L3 entries usage percentage maximum value"
prop.isOper = True
prop.isStats = True
meta.props.add("normalizedv4TotalMax", prop)
prop = PropMeta("str", "normalizedv4TotalMin", "normalizedv4TotalMin", 44074, PropCategory.IMPLICIT_MIN)
prop.label = "Total v4 32 L3 entries usage percentage minimum value"
prop.isOper = True
prop.isStats = True
meta.props.add("normalizedv4TotalMin", prop)
prop = PropMeta("str", "normalizedv4TotalSpct", "normalizedv4TotalSpct", 44077, PropCategory.IMPLICIT_SUSPECT)
prop.label = "Total v4 32 L3 entries usage percentage suspect count"
prop.isOper = True
prop.isStats = True
meta.props.add("normalizedv4TotalSpct", prop)
prop = PropMeta("str", "normalizedv4TotalThr", "normalizedv4TotalThr", 44079, PropCategory.IMPLICIT_THRESHOLDED)
prop.label = "Total v4 32 L3 entries usage percentage thresholded flags"
prop.isOper = True
prop.isStats = True
prop.defaultValue = 0
prop.defaultValueStr = "unspecified"
prop._addConstant("avgCrit", "avg-severity-critical", 2199023255552)
prop._addConstant("avgHigh", "avg-crossed-high-threshold", 68719476736)
prop._addConstant("avgLow", "avg-crossed-low-threshold", 137438953472)
prop._addConstant("avgMajor", "avg-severity-major", 1099511627776)
prop._addConstant("avgMinor", "avg-severity-minor", 549755813888)
prop._addConstant("avgRecovering", "avg-recovering", 34359738368)
prop._addConstant("avgWarn", "avg-severity-warning", 274877906944)
prop._addConstant("cumulativeCrit", "cumulative-severity-critical", 8192)
prop._addConstant("cumulativeHigh", "cumulative-crossed-high-threshold", 256)
prop._addConstant("cumulativeLow", "cumulative-crossed-low-threshold", 512)
prop._addConstant("cumulativeMajor", "cumulative-severity-major", 4096)
prop._addConstant("cumulativeMinor", "cumulative-severity-minor", 2048)
prop._addConstant("cumulativeRecovering", "cumulative-recovering", 128)
prop._addConstant("cumulativeWarn", "cumulative-severity-warning", 1024)
prop._addConstant("lastReadingCrit", "lastreading-severity-critical", 64)
prop._addConstant("lastReadingHigh", "lastreading-crossed-high-threshold", 2)
prop._addConstant("lastReadingLow", "lastreading-crossed-low-threshold", 4)
prop._addConstant("lastReadingMajor", "lastreading-severity-major", 32)
prop._addConstant("lastReadingMinor", "lastreading-severity-minor", 16)
prop._addConstant("lastReadingRecovering", "lastreading-recovering", 1)
prop._addConstant("lastReadingWarn", "lastreading-severity-warning", 8)
prop._addConstant("maxCrit", "max-severity-critical", 17179869184)
prop._addConstant("maxHigh", "max-crossed-high-threshold", 536870912)
prop._addConstant("maxLow", "max-crossed-low-threshold", 1073741824)
prop._addConstant("maxMajor", "max-severity-major", 8589934592)
prop._addConstant("maxMinor", "max-severity-minor", 4294967296)
prop._addConstant("maxRecovering", "max-recovering", 268435456)
prop._addConstant("maxWarn", "max-severity-warning", 2147483648)
prop._addConstant("minCrit", "min-severity-critical", 134217728)
prop._addConstant("minHigh", "min-crossed-high-threshold", 4194304)
prop._addConstant("minLow", "min-crossed-low-threshold", 8388608)
prop._addConstant("minMajor", "min-severity-major", 67108864)
prop._addConstant("minMinor", "min-severity-minor", 33554432)
prop._addConstant("minRecovering", "min-recovering", 2097152)
prop._addConstant("minWarn", "min-severity-warning", 16777216)
prop._addConstant("periodicCrit", "periodic-severity-critical", 1048576)
prop._addConstant("periodicHigh", "periodic-crossed-high-threshold", 32768)
prop._addConstant("periodicLow", "periodic-crossed-low-threshold", 65536)
prop._addConstant("periodicMajor", "periodic-severity-major", 524288)
prop._addConstant("periodicMinor", "periodic-severity-minor", 262144)
prop._addConstant("periodicRecovering", "periodic-recovering", 16384)
prop._addConstant("periodicWarn", "periodic-severity-warning", 131072)
prop._addConstant("rateCrit", "rate-severity-critical", 36028797018963968)
prop._addConstant("rateHigh", "rate-crossed-high-threshold", 1125899906842624)
prop._addConstant("rateLow", "rate-crossed-low-threshold", 2251799813685248)
prop._addConstant("rateMajor", "rate-severity-major", 18014398509481984)
prop._addConstant("rateMinor", "rate-severity-minor", 9007199254740992)
prop._addConstant("rateRecovering", "rate-recovering", 562949953421312)
prop._addConstant("rateWarn", "rate-severity-warning", 4503599627370496)
prop._addConstant("trendCrit", "trend-severity-critical", 281474976710656)
prop._addConstant("trendHigh", "trend-crossed-high-threshold", 8796093022208)
prop._addConstant("trendLow", "trend-crossed-low-threshold", 17592186044416)
prop._addConstant("trendMajor", "trend-severity-major", 140737488355328)
prop._addConstant("trendMinor", "trend-severity-minor", 70368744177664)
prop._addConstant("trendRecovering", "trend-recovering", 4398046511104)
prop._addConstant("trendWarn", "trend-severity-warning", 35184372088832)
prop._addConstant("unspecified", None, 0)
meta.props.add("normalizedv4TotalThr", prop)
prop = PropMeta("str", "normalizedv4TotalTr", "normalizedv4TotalTr", 44081, PropCategory.IMPLICIT_TREND)
prop.label = "Total v4 32 L3 entries usage percentage trend"
prop.isOper = True
prop.isStats = True
meta.props.add("normalizedv4TotalTr", prop)
prop = PropMeta("str", "normalizedv4TotalTrBase", "normalizedv4TotalTrBase", 44080, PropCategory.IMPLICIT_TREND_BASE)
prop.label = "Total v4 32 L3 entries usage percentage trend baseline"
prop.isOper = True
prop.isStats = True
meta.props.add("normalizedv4TotalTrBase", prop)
prop = PropMeta("str", "normalizedv4TotalTtl", "normalizedv4TotalTtl", 44078, PropCategory.IMPLICIT_TOTAL)
prop.label = "Total v4 32 L3 entries usage percentage total sum"
prop.isOper = True
prop.isStats = True
meta.props.add("normalizedv4TotalTtl", prop)
prop = PropMeta("str", "repIntvEnd", "repIntvEnd", 110, PropCategory.REGULAR)
prop.label = "Reporting End Time"
prop.isImplicit = True
prop.isAdmin = True
meta.props.add("repIntvEnd", prop)
prop = PropMeta("str", "repIntvStart", "repIntvStart", 109, PropCategory.REGULAR)
prop.label = "Reporting Start Time"
prop.isImplicit = True
prop.isAdmin = True
meta.props.add("repIntvStart", prop)
prop = PropMeta("str", "rn", "rn", 2, PropCategory.RN)
prop.label = "None"
prop.isRn = True
prop.isImplicit = True
prop.isAdmin = True
prop.isCreateOnly = True
meta.props.add("rn", prop)
prop = PropMeta("str", "status", "status", 3, PropCategory.STATUS)
prop.label = "None"
prop.isImplicit = True
prop.isAdmin = True
prop._addConstant("created", "created", 2)
prop._addConstant("deleted", "deleted", 8)
prop._addConstant("modified", "modified", 4)
meta.props.add("status", prop)
def __init__(self, parentMoOrDn, markDirty=True, **creationProps):
namingVals = []
Mo.__init__(self, parentMoOrDn, markDirty, *namingVals, **creationProps)
# End of package file
# ##################################################
| [
"[email protected]"
] | |
314181b6076dd4f353ab40ca9d5695c63949d5ba | c0a9460591dcb5a322c1c5ec8b67e1d775f8f4ba | /advec_1d/dg_modal_gpu.py | d4b79c2b6d4cba9f5cc88e1e69a5f264c41dfdf1 | [] | no_license | wbkifun/my_research | aca8f5132d03de2e15adc3b0ded164fbd89e38a3 | eb7e61f5405834dcbea240665bdc819f4b3f97bf | refs/heads/master | 2020-12-24T16:40:29.722161 | 2016-03-07T00:31:15 | 2016-03-07T00:31:15 | 5,176,828 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,676 | py | #===============================================================================
# DG method with modal basis functions
# 1-D advection equation
# ------------------------------------------------------------------------------
#
# Last update: 2012.4.26
# ------------------------------------------------------------------------------
#
# <Description>
# - basis function: Legendre polynomial
# - boundary condition: periodic
# - initial condition: Gaussian shape
# - numerical integration: Gauss quadrature (Gauss-lubatto rules)
# - time evolution: 4th-order Runge-Kutta
# - Legendre polynomial calculations: Numpy module (numpy.polynomial.legendre)
#
# <Variables>
# - ux solution u(x) at t in physical domain
# - ul spectral components of u(x) in Legendre polynomial space
# - fl spectral components of f(u), f=vu is used
# - v fluid velociy
# - ne # of elements
# - nne # of gaussian quadrature nodes in a element
# - nn # of total nodes
# - x4n global coordinates for each nodes
# - sle slice indices in a element
# - sles list of sle s
#
# <History>
# 2012.4.26 Class inheritance by Ki-Hwan Kim
# Reduce number of kernels (4 -> 2)
# 2012.4.25 fix dx -> de by Ki-Hwan Kim
# 2012.4.24 CUDA version by Ki-Hwan Kim
# 2012.4.14 Convert to object-oriented by Ki-Hwan Kim
# 2012.4.13 Rewriten using Python by Ki-Hwan Kim
# 2012.3.27 Matlab code by Shin-Hoo Kang
#===============================================================================
from __future__ import division
from dg_modal_base import DGModalBase
import numpy as np
import pycuda.driver as cuda
class DGModalGpu(DGModalBase):
def __init__(self, ne, p_degree, cfl=0.1, v=0.5, target_gpu=0):
cuda.init()
self.dev = cuda.Device(target_gpu)
self.ctx = self.dev.make_context()
import atexit
atexit.register(self.ctx.pop)
super(DGModalGpu, self).__init__(ne, p_degree, cfl, v)
def allocation(self):
super(DGModalGpu, self).allocation()
self.ul_gpu = cuda.to_device(self.ul)
self.ul_prev_gpu = cuda.to_device(self.ul)
self.ul_tmp_gpu = cuda.to_device(self.ul)
self.kl_gpu = cuda.to_device(self.ul)
self.el_sum_gpu = cuda.to_device(np.zeros(self.ne))
def x2l(self):
super(DGModalGpu, self).x2l()
cuda.memcpy_htod(self.ul_gpu, self.ul)
def l2x(self):
cuda.memcpy_dtoh(self.ul, self.ul_gpu)
super(DGModalGpu, self).l2x()
def prepare_update(self):
from pycuda.compiler import SourceModule
import os
src_path = '/'.join( os.path.abspath(__file__).split('/')[:-1] )
kernels = open(src_path + '/core.cu').read()
mod = SourceModule(kernels)
#mod = cuda.module_from_file('core.cubin')
self.update_pre = mod.get_function('update_pre')
self.update_ul = mod.get_function('update_ul')
def update(self):
nn, ne, nne = np.int32([self.nn, self.ne, self.nne])
dt, de, vf = np.float64([self.dt, self.de, self.vf])
bs, gs = (256,1,1), (self.nn//256+1,1)
ul, ul_prev, ul_tmp = self.ul_gpu, self.ul_prev_gpu, self.ul_tmp_gpu
kl = self.kl_gpu
el_sum = self.el_sum_gpu
c_ul_tmps = np.float32([0, 0.5, 0.5, 1])
c_uls = np.float32([1./6, 1./3, 1./3, 1./6])
cuda.memcpy_dtod(ul_prev, ul, self.ul.nbytes)
for c_ul_tmp, c_ul in zip(c_ul_tmps, c_uls):
self.update_pre(nn, nne, vf, c_ul_tmp, ul, ul_prev, ul_tmp, kl, el_sum, block=bs, grid=gs)
self.update_ul(nn, ne, nne, dt, de, vf, c_ul, ul, ul_tmp, kl, el_sum, block=bs, grid=gs)
| [
"[email protected]"
] | |
2ac42e0a73d94a3ea63cdde82603cce7f4879b66 | b697b98db859c061c1174837deee1d6fc47d115e | /examples/spot/futures/futures_loan_interest_history.py | d11b8ced29894bbc52ba7c6b24d2585c250be296 | [
"MIT"
] | permissive | leozaragoza/binance-connector-python | 7e684d6e68ff7d580b7e3fa83f952540a79b1120 | 3311d102c9e788e3d71047f0af103c00d1ae2162 | refs/heads/master | 2023-07-15T12:27:50.041388 | 2021-08-22T17:08:38 | 2021-08-22T17:08:38 | 396,354,910 | 3 | 0 | MIT | 2021-08-22T17:08:38 | 2021-08-15T13:12:41 | Python | UTF-8 | Python | false | false | 268 | py | #!/usr/bin/env python
import logging
from binance.spot import Spot as Client
from binance.lib.utils import config_logging
config_logging(logging, logging.DEBUG)
key = ""
secret = ""
client = Client(key, secret)
logging.info(client.futures_loan_interest_history())
| [
"[email protected]"
] | |
ba1e1883e6c6bba64621e521b0b4aa974fe7895f | 24fe1f54fee3a3df952ca26cce839cc18124357a | /servicegraph/lib/python2.7/site-packages/acimodel-4.0_3d-py2.7.egg/cobra/modelimpl/isis/isiscsnpstats1qtr.py | 5e12cd0cc2e3b1aa65da434a7ed773805e4aebed | [] | no_license | aperiyed/servicegraph-cloudcenter | 4b8dc9e776f6814cf07fe966fbd4a3481d0f45ff | 9eb7975f2f6835e1c0528563a771526896306392 | refs/heads/master | 2023-05-10T17:27:18.022381 | 2020-01-20T09:18:28 | 2020-01-20T09:18:28 | 235,065,676 | 0 | 0 | null | 2023-05-01T21:19:14 | 2020-01-20T09:36:37 | Python | UTF-8 | Python | false | false | 29,126 | py | # coding=UTF-8
# **********************************************************************
# Copyright (c) 2013-2019 Cisco Systems, Inc. All rights reserved
# written by zen warriors, do not modify!
# **********************************************************************
from cobra.mit.meta import ClassMeta
from cobra.mit.meta import StatsClassMeta
from cobra.mit.meta import CounterMeta
from cobra.mit.meta import PropMeta
from cobra.mit.meta import Category
from cobra.mit.meta import SourceRelationMeta
from cobra.mit.meta import NamedSourceRelationMeta
from cobra.mit.meta import TargetRelationMeta
from cobra.mit.meta import DeploymentPathMeta, DeploymentCategory
from cobra.model.category import MoCategory, PropCategory, CounterCategory
from cobra.mit.mo import Mo
# ##################################################
class IsisCsnpStats1qtr(Mo):
"""
Mo doc not defined in techpub!!!
"""
meta = StatsClassMeta("cobra.model.isis.IsisCsnpStats1qtr", "ISIS CSNP Packets")
counter = CounterMeta("fastCsnpPktsRx", CounterCategory.COUNTER, "packets", "Fast CSNP Packets Recevied")
counter._propRefs[PropCategory.IMPLICIT_LASTREADING] = "fastCsnpPktsRxLast"
counter._propRefs[PropCategory.IMPLICIT_CUMULATIVE] = "fastCsnpPktsRxCum"
counter._propRefs[PropCategory.IMPLICIT_PERIODIC] = "fastCsnpPktsRxPer"
counter._propRefs[PropCategory.IMPLICIT_MIN] = "fastCsnpPktsRxMin"
counter._propRefs[PropCategory.IMPLICIT_MAX] = "fastCsnpPktsRxMax"
counter._propRefs[PropCategory.IMPLICIT_AVG] = "fastCsnpPktsRxAvg"
counter._propRefs[PropCategory.IMPLICIT_SUSPECT] = "fastCsnpPktsRxSpct"
counter._propRefs[PropCategory.IMPLICIT_BASELINE] = "fastCsnpPktsRxBase"
counter._propRefs[PropCategory.IMPLICIT_THRESHOLDED] = "fastCsnpPktsRxThr"
counter._propRefs[PropCategory.IMPLICIT_TREND_BASE] = "fastCsnpPktsRxTrBase"
counter._propRefs[PropCategory.IMPLICIT_TREND] = "fastCsnpPktsRxTr"
counter._propRefs[PropCategory.IMPLICIT_RATE] = "fastCsnpPktsRxRate"
meta._counters.append(counter)
counter = CounterMeta("csnpPktsRx", CounterCategory.COUNTER, "packets", "CSNP Packets Recevied")
counter._propRefs[PropCategory.IMPLICIT_LASTREADING] = "csnpPktsRxLast"
counter._propRefs[PropCategory.IMPLICIT_CUMULATIVE] = "csnpPktsRxCum"
counter._propRefs[PropCategory.IMPLICIT_PERIODIC] = "csnpPktsRxPer"
counter._propRefs[PropCategory.IMPLICIT_MIN] = "csnpPktsRxMin"
counter._propRefs[PropCategory.IMPLICIT_MAX] = "csnpPktsRxMax"
counter._propRefs[PropCategory.IMPLICIT_AVG] = "csnpPktsRxAvg"
counter._propRefs[PropCategory.IMPLICIT_SUSPECT] = "csnpPktsRxSpct"
counter._propRefs[PropCategory.IMPLICIT_BASELINE] = "csnpPktsRxBase"
counter._propRefs[PropCategory.IMPLICIT_THRESHOLDED] = "csnpPktsRxThr"
counter._propRefs[PropCategory.IMPLICIT_TREND_BASE] = "csnpPktsRxTrBase"
counter._propRefs[PropCategory.IMPLICIT_TREND] = "csnpPktsRxTr"
counter._propRefs[PropCategory.IMPLICIT_RATE] = "csnpPktsRxRate"
meta._counters.append(counter)
counter = CounterMeta("csnpPktsTx", CounterCategory.COUNTER, "packets", "CSNP Packets Sent")
counter._propRefs[PropCategory.IMPLICIT_LASTREADING] = "csnpPktsTxLast"
counter._propRefs[PropCategory.IMPLICIT_CUMULATIVE] = "csnpPktsTxCum"
counter._propRefs[PropCategory.IMPLICIT_PERIODIC] = "csnpPktsTxPer"
counter._propRefs[PropCategory.IMPLICIT_MIN] = "csnpPktsTxMin"
counter._propRefs[PropCategory.IMPLICIT_MAX] = "csnpPktsTxMax"
counter._propRefs[PropCategory.IMPLICIT_AVG] = "csnpPktsTxAvg"
counter._propRefs[PropCategory.IMPLICIT_SUSPECT] = "csnpPktsTxSpct"
counter._propRefs[PropCategory.IMPLICIT_BASELINE] = "csnpPktsTxBase"
counter._propRefs[PropCategory.IMPLICIT_THRESHOLDED] = "csnpPktsTxThr"
counter._propRefs[PropCategory.IMPLICIT_TREND_BASE] = "csnpPktsTxTrBase"
counter._propRefs[PropCategory.IMPLICIT_TREND] = "csnpPktsTxTr"
counter._propRefs[PropCategory.IMPLICIT_RATE] = "csnpPktsTxRate"
meta._counters.append(counter)
meta.moClassName = "isisIsisCsnpStats1qtr"
meta.rnFormat = "CDisisIsisCsnpStats1qtr"
meta.category = MoCategory.STATS_CURRENT
meta.label = "current ISIS CSNP Packets stats in 1 quarter"
meta.writeAccessMask = 0x8008020040001
meta.readAccessMask = 0x8008020040001
meta.isDomainable = False
meta.isReadOnly = True
meta.isConfigurable = False
meta.isDeletable = False
meta.isContextRoot = True
meta.parentClasses.add("cobra.model.isis.If")
meta.superClasses.add("cobra.model.stats.Item")
meta.superClasses.add("cobra.model.stats.Curr")
meta.superClasses.add("cobra.model.isis.IsisCsnpStats")
meta.rnPrefixes = [
('CDisisIsisCsnpStats1qtr', False),
]
prop = PropMeta("str", "childAction", "childAction", 4, PropCategory.CHILD_ACTION)
prop.label = "None"
prop.isImplicit = True
prop.isAdmin = True
prop._addConstant("deleteAll", "deleteall", 16384)
prop._addConstant("deleteNonPresent", "deletenonpresent", 8192)
prop._addConstant("ignore", "ignore", 4096)
meta.props.add("childAction", prop)
prop = PropMeta("str", "cnt", "cnt", 16212, PropCategory.REGULAR)
prop.label = "Number of Collections During this Interval"
prop.isImplicit = True
prop.isAdmin = True
meta.props.add("cnt", prop)
prop = PropMeta("str", "csnpPktsRxAvg", "csnpPktsRxAvg", 46114, PropCategory.IMPLICIT_AVG)
prop.label = "CSNP Packets Recevied average value"
prop.isOper = True
prop.isStats = True
meta.props.add("csnpPktsRxAvg", prop)
prop = PropMeta("str", "csnpPktsRxBase", "csnpPktsRxBase", 46109, PropCategory.IMPLICIT_BASELINE)
prop.label = "CSNP Packets Recevied baseline"
prop.isOper = True
prop.isStats = True
meta.props.add("csnpPktsRxBase", prop)
prop = PropMeta("str", "csnpPktsRxCum", "csnpPktsRxCum", 46110, PropCategory.IMPLICIT_CUMULATIVE)
prop.label = "CSNP Packets Recevied cumulative"
prop.isOper = True
prop.isStats = True
meta.props.add("csnpPktsRxCum", prop)
prop = PropMeta("str", "csnpPktsRxLast", "csnpPktsRxLast", 46108, PropCategory.IMPLICIT_LASTREADING)
prop.label = "CSNP Packets Recevied current value"
prop.isOper = True
prop.isStats = True
meta.props.add("csnpPktsRxLast", prop)
prop = PropMeta("str", "csnpPktsRxMax", "csnpPktsRxMax", 46113, PropCategory.IMPLICIT_MAX)
prop.label = "CSNP Packets Recevied maximum value"
prop.isOper = True
prop.isStats = True
meta.props.add("csnpPktsRxMax", prop)
prop = PropMeta("str", "csnpPktsRxMin", "csnpPktsRxMin", 46112, PropCategory.IMPLICIT_MIN)
prop.label = "CSNP Packets Recevied minimum value"
prop.isOper = True
prop.isStats = True
meta.props.add("csnpPktsRxMin", prop)
prop = PropMeta("str", "csnpPktsRxPer", "csnpPktsRxPer", 46111, PropCategory.IMPLICIT_PERIODIC)
prop.label = "CSNP Packets Recevied periodic"
prop.isOper = True
prop.isStats = True
meta.props.add("csnpPktsRxPer", prop)
prop = PropMeta("str", "csnpPktsRxRate", "csnpPktsRxRate", 46119, PropCategory.IMPLICIT_RATE)
prop.label = "CSNP Packets Recevied rate"
prop.isOper = True
prop.isStats = True
meta.props.add("csnpPktsRxRate", prop)
prop = PropMeta("str", "csnpPktsRxSpct", "csnpPktsRxSpct", 46115, PropCategory.IMPLICIT_SUSPECT)
prop.label = "CSNP Packets Recevied suspect count"
prop.isOper = True
prop.isStats = True
meta.props.add("csnpPktsRxSpct", prop)
prop = PropMeta("str", "csnpPktsRxThr", "csnpPktsRxThr", 46116, PropCategory.IMPLICIT_THRESHOLDED)
prop.label = "CSNP Packets Recevied thresholded flags"
prop.isOper = True
prop.isStats = True
prop.defaultValue = 0
prop.defaultValueStr = "unspecified"
prop._addConstant("avgCrit", "avg-severity-critical", 2199023255552)
prop._addConstant("avgHigh", "avg-crossed-high-threshold", 68719476736)
prop._addConstant("avgLow", "avg-crossed-low-threshold", 137438953472)
prop._addConstant("avgMajor", "avg-severity-major", 1099511627776)
prop._addConstant("avgMinor", "avg-severity-minor", 549755813888)
prop._addConstant("avgRecovering", "avg-recovering", 34359738368)
prop._addConstant("avgWarn", "avg-severity-warning", 274877906944)
prop._addConstant("cumulativeCrit", "cumulative-severity-critical", 8192)
prop._addConstant("cumulativeHigh", "cumulative-crossed-high-threshold", 256)
prop._addConstant("cumulativeLow", "cumulative-crossed-low-threshold", 512)
prop._addConstant("cumulativeMajor", "cumulative-severity-major", 4096)
prop._addConstant("cumulativeMinor", "cumulative-severity-minor", 2048)
prop._addConstant("cumulativeRecovering", "cumulative-recovering", 128)
prop._addConstant("cumulativeWarn", "cumulative-severity-warning", 1024)
prop._addConstant("lastReadingCrit", "lastreading-severity-critical", 64)
prop._addConstant("lastReadingHigh", "lastreading-crossed-high-threshold", 2)
prop._addConstant("lastReadingLow", "lastreading-crossed-low-threshold", 4)
prop._addConstant("lastReadingMajor", "lastreading-severity-major", 32)
prop._addConstant("lastReadingMinor", "lastreading-severity-minor", 16)
prop._addConstant("lastReadingRecovering", "lastreading-recovering", 1)
prop._addConstant("lastReadingWarn", "lastreading-severity-warning", 8)
prop._addConstant("maxCrit", "max-severity-critical", 17179869184)
prop._addConstant("maxHigh", "max-crossed-high-threshold", 536870912)
prop._addConstant("maxLow", "max-crossed-low-threshold", 1073741824)
prop._addConstant("maxMajor", "max-severity-major", 8589934592)
prop._addConstant("maxMinor", "max-severity-minor", 4294967296)
prop._addConstant("maxRecovering", "max-recovering", 268435456)
prop._addConstant("maxWarn", "max-severity-warning", 2147483648)
prop._addConstant("minCrit", "min-severity-critical", 134217728)
prop._addConstant("minHigh", "min-crossed-high-threshold", 4194304)
prop._addConstant("minLow", "min-crossed-low-threshold", 8388608)
prop._addConstant("minMajor", "min-severity-major", 67108864)
prop._addConstant("minMinor", "min-severity-minor", 33554432)
prop._addConstant("minRecovering", "min-recovering", 2097152)
prop._addConstant("minWarn", "min-severity-warning", 16777216)
prop._addConstant("periodicCrit", "periodic-severity-critical", 1048576)
prop._addConstant("periodicHigh", "periodic-crossed-high-threshold", 32768)
prop._addConstant("periodicLow", "periodic-crossed-low-threshold", 65536)
prop._addConstant("periodicMajor", "periodic-severity-major", 524288)
prop._addConstant("periodicMinor", "periodic-severity-minor", 262144)
prop._addConstant("periodicRecovering", "periodic-recovering", 16384)
prop._addConstant("periodicWarn", "periodic-severity-warning", 131072)
prop._addConstant("rateCrit", "rate-severity-critical", 36028797018963968)
prop._addConstant("rateHigh", "rate-crossed-high-threshold", 1125899906842624)
prop._addConstant("rateLow", "rate-crossed-low-threshold", 2251799813685248)
prop._addConstant("rateMajor", "rate-severity-major", 18014398509481984)
prop._addConstant("rateMinor", "rate-severity-minor", 9007199254740992)
prop._addConstant("rateRecovering", "rate-recovering", 562949953421312)
prop._addConstant("rateWarn", "rate-severity-warning", 4503599627370496)
prop._addConstant("trendCrit", "trend-severity-critical", 281474976710656)
prop._addConstant("trendHigh", "trend-crossed-high-threshold", 8796093022208)
prop._addConstant("trendLow", "trend-crossed-low-threshold", 17592186044416)
prop._addConstant("trendMajor", "trend-severity-major", 140737488355328)
prop._addConstant("trendMinor", "trend-severity-minor", 70368744177664)
prop._addConstant("trendRecovering", "trend-recovering", 4398046511104)
prop._addConstant("trendWarn", "trend-severity-warning", 35184372088832)
prop._addConstant("unspecified", None, 0)
meta.props.add("csnpPktsRxThr", prop)
prop = PropMeta("str", "csnpPktsRxTr", "csnpPktsRxTr", 46118, PropCategory.IMPLICIT_TREND)
prop.label = "CSNP Packets Recevied trend"
prop.isOper = True
prop.isStats = True
meta.props.add("csnpPktsRxTr", prop)
prop = PropMeta("str", "csnpPktsRxTrBase", "csnpPktsRxTrBase", 46117, PropCategory.IMPLICIT_TREND_BASE)
prop.label = "CSNP Packets Recevied trend baseline"
prop.isOper = True
prop.isStats = True
meta.props.add("csnpPktsRxTrBase", prop)
prop = PropMeta("str", "csnpPktsTxAvg", "csnpPktsTxAvg", 46135, PropCategory.IMPLICIT_AVG)
prop.label = "CSNP Packets Sent average value"
prop.isOper = True
prop.isStats = True
meta.props.add("csnpPktsTxAvg", prop)
prop = PropMeta("str", "csnpPktsTxBase", "csnpPktsTxBase", 46130, PropCategory.IMPLICIT_BASELINE)
prop.label = "CSNP Packets Sent baseline"
prop.isOper = True
prop.isStats = True
meta.props.add("csnpPktsTxBase", prop)
prop = PropMeta("str", "csnpPktsTxCum", "csnpPktsTxCum", 46131, PropCategory.IMPLICIT_CUMULATIVE)
prop.label = "CSNP Packets Sent cumulative"
prop.isOper = True
prop.isStats = True
meta.props.add("csnpPktsTxCum", prop)
prop = PropMeta("str", "csnpPktsTxLast", "csnpPktsTxLast", 46129, PropCategory.IMPLICIT_LASTREADING)
prop.label = "CSNP Packets Sent current value"
prop.isOper = True
prop.isStats = True
meta.props.add("csnpPktsTxLast", prop)
prop = PropMeta("str", "csnpPktsTxMax", "csnpPktsTxMax", 46134, PropCategory.IMPLICIT_MAX)
prop.label = "CSNP Packets Sent maximum value"
prop.isOper = True
prop.isStats = True
meta.props.add("csnpPktsTxMax", prop)
prop = PropMeta("str", "csnpPktsTxMin", "csnpPktsTxMin", 46133, PropCategory.IMPLICIT_MIN)
prop.label = "CSNP Packets Sent minimum value"
prop.isOper = True
prop.isStats = True
meta.props.add("csnpPktsTxMin", prop)
prop = PropMeta("str", "csnpPktsTxPer", "csnpPktsTxPer", 46132, PropCategory.IMPLICIT_PERIODIC)
prop.label = "CSNP Packets Sent periodic"
prop.isOper = True
prop.isStats = True
meta.props.add("csnpPktsTxPer", prop)
prop = PropMeta("str", "csnpPktsTxRate", "csnpPktsTxRate", 46140, PropCategory.IMPLICIT_RATE)
prop.label = "CSNP Packets Sent rate"
prop.isOper = True
prop.isStats = True
meta.props.add("csnpPktsTxRate", prop)
prop = PropMeta("str", "csnpPktsTxSpct", "csnpPktsTxSpct", 46136, PropCategory.IMPLICIT_SUSPECT)
prop.label = "CSNP Packets Sent suspect count"
prop.isOper = True
prop.isStats = True
meta.props.add("csnpPktsTxSpct", prop)
prop = PropMeta("str", "csnpPktsTxThr", "csnpPktsTxThr", 46137, PropCategory.IMPLICIT_THRESHOLDED)
prop.label = "CSNP Packets Sent thresholded flags"
prop.isOper = True
prop.isStats = True
prop.defaultValue = 0
prop.defaultValueStr = "unspecified"
prop._addConstant("avgCrit", "avg-severity-critical", 2199023255552)
prop._addConstant("avgHigh", "avg-crossed-high-threshold", 68719476736)
prop._addConstant("avgLow", "avg-crossed-low-threshold", 137438953472)
prop._addConstant("avgMajor", "avg-severity-major", 1099511627776)
prop._addConstant("avgMinor", "avg-severity-minor", 549755813888)
prop._addConstant("avgRecovering", "avg-recovering", 34359738368)
prop._addConstant("avgWarn", "avg-severity-warning", 274877906944)
prop._addConstant("cumulativeCrit", "cumulative-severity-critical", 8192)
prop._addConstant("cumulativeHigh", "cumulative-crossed-high-threshold", 256)
prop._addConstant("cumulativeLow", "cumulative-crossed-low-threshold", 512)
prop._addConstant("cumulativeMajor", "cumulative-severity-major", 4096)
prop._addConstant("cumulativeMinor", "cumulative-severity-minor", 2048)
prop._addConstant("cumulativeRecovering", "cumulative-recovering", 128)
prop._addConstant("cumulativeWarn", "cumulative-severity-warning", 1024)
prop._addConstant("lastReadingCrit", "lastreading-severity-critical", 64)
prop._addConstant("lastReadingHigh", "lastreading-crossed-high-threshold", 2)
prop._addConstant("lastReadingLow", "lastreading-crossed-low-threshold", 4)
prop._addConstant("lastReadingMajor", "lastreading-severity-major", 32)
prop._addConstant("lastReadingMinor", "lastreading-severity-minor", 16)
prop._addConstant("lastReadingRecovering", "lastreading-recovering", 1)
prop._addConstant("lastReadingWarn", "lastreading-severity-warning", 8)
prop._addConstant("maxCrit", "max-severity-critical", 17179869184)
prop._addConstant("maxHigh", "max-crossed-high-threshold", 536870912)
prop._addConstant("maxLow", "max-crossed-low-threshold", 1073741824)
prop._addConstant("maxMajor", "max-severity-major", 8589934592)
prop._addConstant("maxMinor", "max-severity-minor", 4294967296)
prop._addConstant("maxRecovering", "max-recovering", 268435456)
prop._addConstant("maxWarn", "max-severity-warning", 2147483648)
prop._addConstant("minCrit", "min-severity-critical", 134217728)
prop._addConstant("minHigh", "min-crossed-high-threshold", 4194304)
prop._addConstant("minLow", "min-crossed-low-threshold", 8388608)
prop._addConstant("minMajor", "min-severity-major", 67108864)
prop._addConstant("minMinor", "min-severity-minor", 33554432)
prop._addConstant("minRecovering", "min-recovering", 2097152)
prop._addConstant("minWarn", "min-severity-warning", 16777216)
prop._addConstant("periodicCrit", "periodic-severity-critical", 1048576)
prop._addConstant("periodicHigh", "periodic-crossed-high-threshold", 32768)
prop._addConstant("periodicLow", "periodic-crossed-low-threshold", 65536)
prop._addConstant("periodicMajor", "periodic-severity-major", 524288)
prop._addConstant("periodicMinor", "periodic-severity-minor", 262144)
prop._addConstant("periodicRecovering", "periodic-recovering", 16384)
prop._addConstant("periodicWarn", "periodic-severity-warning", 131072)
prop._addConstant("rateCrit", "rate-severity-critical", 36028797018963968)
prop._addConstant("rateHigh", "rate-crossed-high-threshold", 1125899906842624)
prop._addConstant("rateLow", "rate-crossed-low-threshold", 2251799813685248)
prop._addConstant("rateMajor", "rate-severity-major", 18014398509481984)
prop._addConstant("rateMinor", "rate-severity-minor", 9007199254740992)
prop._addConstant("rateRecovering", "rate-recovering", 562949953421312)
prop._addConstant("rateWarn", "rate-severity-warning", 4503599627370496)
prop._addConstant("trendCrit", "trend-severity-critical", 281474976710656)
prop._addConstant("trendHigh", "trend-crossed-high-threshold", 8796093022208)
prop._addConstant("trendLow", "trend-crossed-low-threshold", 17592186044416)
prop._addConstant("trendMajor", "trend-severity-major", 140737488355328)
prop._addConstant("trendMinor", "trend-severity-minor", 70368744177664)
prop._addConstant("trendRecovering", "trend-recovering", 4398046511104)
prop._addConstant("trendWarn", "trend-severity-warning", 35184372088832)
prop._addConstant("unspecified", None, 0)
meta.props.add("csnpPktsTxThr", prop)
prop = PropMeta("str", "csnpPktsTxTr", "csnpPktsTxTr", 46139, PropCategory.IMPLICIT_TREND)
prop.label = "CSNP Packets Sent trend"
prop.isOper = True
prop.isStats = True
meta.props.add("csnpPktsTxTr", prop)
prop = PropMeta("str", "csnpPktsTxTrBase", "csnpPktsTxTrBase", 46138, PropCategory.IMPLICIT_TREND_BASE)
prop.label = "CSNP Packets Sent trend baseline"
prop.isOper = True
prop.isStats = True
meta.props.add("csnpPktsTxTrBase", prop)
prop = PropMeta("str", "dn", "dn", 1, PropCategory.DN)
prop.label = "None"
prop.isDn = True
prop.isImplicit = True
prop.isAdmin = True
prop.isCreateOnly = True
meta.props.add("dn", prop)
prop = PropMeta("str", "fastCsnpPktsRxAvg", "fastCsnpPktsRxAvg", 46156, PropCategory.IMPLICIT_AVG)
prop.label = "Fast CSNP Packets Recevied average value"
prop.isOper = True
prop.isStats = True
meta.props.add("fastCsnpPktsRxAvg", prop)
prop = PropMeta("str", "fastCsnpPktsRxBase", "fastCsnpPktsRxBase", 46151, PropCategory.IMPLICIT_BASELINE)
prop.label = "Fast CSNP Packets Recevied baseline"
prop.isOper = True
prop.isStats = True
meta.props.add("fastCsnpPktsRxBase", prop)
prop = PropMeta("str", "fastCsnpPktsRxCum", "fastCsnpPktsRxCum", 46152, PropCategory.IMPLICIT_CUMULATIVE)
prop.label = "Fast CSNP Packets Recevied cumulative"
prop.isOper = True
prop.isStats = True
meta.props.add("fastCsnpPktsRxCum", prop)
prop = PropMeta("str", "fastCsnpPktsRxLast", "fastCsnpPktsRxLast", 46150, PropCategory.IMPLICIT_LASTREADING)
prop.label = "Fast CSNP Packets Recevied current value"
prop.isOper = True
prop.isStats = True
meta.props.add("fastCsnpPktsRxLast", prop)
prop = PropMeta("str", "fastCsnpPktsRxMax", "fastCsnpPktsRxMax", 46155, PropCategory.IMPLICIT_MAX)
prop.label = "Fast CSNP Packets Recevied maximum value"
prop.isOper = True
prop.isStats = True
meta.props.add("fastCsnpPktsRxMax", prop)
prop = PropMeta("str", "fastCsnpPktsRxMin", "fastCsnpPktsRxMin", 46154, PropCategory.IMPLICIT_MIN)
prop.label = "Fast CSNP Packets Recevied minimum value"
prop.isOper = True
prop.isStats = True
meta.props.add("fastCsnpPktsRxMin", prop)
prop = PropMeta("str", "fastCsnpPktsRxPer", "fastCsnpPktsRxPer", 46153, PropCategory.IMPLICIT_PERIODIC)
prop.label = "Fast CSNP Packets Recevied periodic"
prop.isOper = True
prop.isStats = True
meta.props.add("fastCsnpPktsRxPer", prop)
prop = PropMeta("str", "fastCsnpPktsRxRate", "fastCsnpPktsRxRate", 46161, PropCategory.IMPLICIT_RATE)
prop.label = "Fast CSNP Packets Recevied rate"
prop.isOper = True
prop.isStats = True
meta.props.add("fastCsnpPktsRxRate", prop)
prop = PropMeta("str", "fastCsnpPktsRxSpct", "fastCsnpPktsRxSpct", 46157, PropCategory.IMPLICIT_SUSPECT)
prop.label = "Fast CSNP Packets Recevied suspect count"
prop.isOper = True
prop.isStats = True
meta.props.add("fastCsnpPktsRxSpct", prop)
prop = PropMeta("str", "fastCsnpPktsRxThr", "fastCsnpPktsRxThr", 46158, PropCategory.IMPLICIT_THRESHOLDED)
prop.label = "Fast CSNP Packets Recevied thresholded flags"
prop.isOper = True
prop.isStats = True
prop.defaultValue = 0
prop.defaultValueStr = "unspecified"
prop._addConstant("avgCrit", "avg-severity-critical", 2199023255552)
prop._addConstant("avgHigh", "avg-crossed-high-threshold", 68719476736)
prop._addConstant("avgLow", "avg-crossed-low-threshold", 137438953472)
prop._addConstant("avgMajor", "avg-severity-major", 1099511627776)
prop._addConstant("avgMinor", "avg-severity-minor", 549755813888)
prop._addConstant("avgRecovering", "avg-recovering", 34359738368)
prop._addConstant("avgWarn", "avg-severity-warning", 274877906944)
prop._addConstant("cumulativeCrit", "cumulative-severity-critical", 8192)
prop._addConstant("cumulativeHigh", "cumulative-crossed-high-threshold", 256)
prop._addConstant("cumulativeLow", "cumulative-crossed-low-threshold", 512)
prop._addConstant("cumulativeMajor", "cumulative-severity-major", 4096)
prop._addConstant("cumulativeMinor", "cumulative-severity-minor", 2048)
prop._addConstant("cumulativeRecovering", "cumulative-recovering", 128)
prop._addConstant("cumulativeWarn", "cumulative-severity-warning", 1024)
prop._addConstant("lastReadingCrit", "lastreading-severity-critical", 64)
prop._addConstant("lastReadingHigh", "lastreading-crossed-high-threshold", 2)
prop._addConstant("lastReadingLow", "lastreading-crossed-low-threshold", 4)
prop._addConstant("lastReadingMajor", "lastreading-severity-major", 32)
prop._addConstant("lastReadingMinor", "lastreading-severity-minor", 16)
prop._addConstant("lastReadingRecovering", "lastreading-recovering", 1)
prop._addConstant("lastReadingWarn", "lastreading-severity-warning", 8)
prop._addConstant("maxCrit", "max-severity-critical", 17179869184)
prop._addConstant("maxHigh", "max-crossed-high-threshold", 536870912)
prop._addConstant("maxLow", "max-crossed-low-threshold", 1073741824)
prop._addConstant("maxMajor", "max-severity-major", 8589934592)
prop._addConstant("maxMinor", "max-severity-minor", 4294967296)
prop._addConstant("maxRecovering", "max-recovering", 268435456)
prop._addConstant("maxWarn", "max-severity-warning", 2147483648)
prop._addConstant("minCrit", "min-severity-critical", 134217728)
prop._addConstant("minHigh", "min-crossed-high-threshold", 4194304)
prop._addConstant("minLow", "min-crossed-low-threshold", 8388608)
prop._addConstant("minMajor", "min-severity-major", 67108864)
prop._addConstant("minMinor", "min-severity-minor", 33554432)
prop._addConstant("minRecovering", "min-recovering", 2097152)
prop._addConstant("minWarn", "min-severity-warning", 16777216)
prop._addConstant("periodicCrit", "periodic-severity-critical", 1048576)
prop._addConstant("periodicHigh", "periodic-crossed-high-threshold", 32768)
prop._addConstant("periodicLow", "periodic-crossed-low-threshold", 65536)
prop._addConstant("periodicMajor", "periodic-severity-major", 524288)
prop._addConstant("periodicMinor", "periodic-severity-minor", 262144)
prop._addConstant("periodicRecovering", "periodic-recovering", 16384)
prop._addConstant("periodicWarn", "periodic-severity-warning", 131072)
prop._addConstant("rateCrit", "rate-severity-critical", 36028797018963968)
prop._addConstant("rateHigh", "rate-crossed-high-threshold", 1125899906842624)
prop._addConstant("rateLow", "rate-crossed-low-threshold", 2251799813685248)
prop._addConstant("rateMajor", "rate-severity-major", 18014398509481984)
prop._addConstant("rateMinor", "rate-severity-minor", 9007199254740992)
prop._addConstant("rateRecovering", "rate-recovering", 562949953421312)
prop._addConstant("rateWarn", "rate-severity-warning", 4503599627370496)
prop._addConstant("trendCrit", "trend-severity-critical", 281474976710656)
prop._addConstant("trendHigh", "trend-crossed-high-threshold", 8796093022208)
prop._addConstant("trendLow", "trend-crossed-low-threshold", 17592186044416)
prop._addConstant("trendMajor", "trend-severity-major", 140737488355328)
prop._addConstant("trendMinor", "trend-severity-minor", 70368744177664)
prop._addConstant("trendRecovering", "trend-recovering", 4398046511104)
prop._addConstant("trendWarn", "trend-severity-warning", 35184372088832)
prop._addConstant("unspecified", None, 0)
meta.props.add("fastCsnpPktsRxThr", prop)
prop = PropMeta("str", "fastCsnpPktsRxTr", "fastCsnpPktsRxTr", 46160, PropCategory.IMPLICIT_TREND)
prop.label = "Fast CSNP Packets Recevied trend"
prop.isOper = True
prop.isStats = True
meta.props.add("fastCsnpPktsRxTr", prop)
prop = PropMeta("str", "fastCsnpPktsRxTrBase", "fastCsnpPktsRxTrBase", 46159, PropCategory.IMPLICIT_TREND_BASE)
prop.label = "Fast CSNP Packets Recevied trend baseline"
prop.isOper = True
prop.isStats = True
meta.props.add("fastCsnpPktsRxTrBase", prop)
prop = PropMeta("str", "lastCollOffset", "lastCollOffset", 111, PropCategory.REGULAR)
prop.label = "Collection Length"
prop.isImplicit = True
prop.isAdmin = True
meta.props.add("lastCollOffset", prop)
prop = PropMeta("str", "modTs", "modTs", 7, PropCategory.REGULAR)
prop.label = "None"
prop.isImplicit = True
prop.isAdmin = True
prop.defaultValue = 0
prop.defaultValueStr = "never"
prop._addConstant("never", "never", 0)
meta.props.add("modTs", prop)
prop = PropMeta("str", "repIntvEnd", "repIntvEnd", 110, PropCategory.REGULAR)
prop.label = "Reporting End Time"
prop.isImplicit = True
prop.isAdmin = True
meta.props.add("repIntvEnd", prop)
prop = PropMeta("str", "repIntvStart", "repIntvStart", 109, PropCategory.REGULAR)
prop.label = "Reporting Start Time"
prop.isImplicit = True
prop.isAdmin = True
meta.props.add("repIntvStart", prop)
prop = PropMeta("str", "rn", "rn", 2, PropCategory.RN)
prop.label = "None"
prop.isRn = True
prop.isImplicit = True
prop.isAdmin = True
prop.isCreateOnly = True
meta.props.add("rn", prop)
prop = PropMeta("str", "status", "status", 3, PropCategory.STATUS)
prop.label = "None"
prop.isImplicit = True
prop.isAdmin = True
prop._addConstant("created", "created", 2)
prop._addConstant("deleted", "deleted", 8)
prop._addConstant("modified", "modified", 4)
meta.props.add("status", prop)
def __init__(self, parentMoOrDn, markDirty=True, **creationProps):
namingVals = []
Mo.__init__(self, parentMoOrDn, markDirty, *namingVals, **creationProps)
# End of package file
# ##################################################
| [
"[email protected]"
] | |
5994a372ecac4751d01b2d63d8cfe85ccff050c0 | e9331ebf2d83184924ade1c9e4849c3ba0285bf2 | /mutiple-devices/vgg16/8devices/node.py | 8e3356581b54e55c63cec2cc97e4e45d94968fb4 | [
"Apache-2.0"
] | permissive | parallel-ml/asplos2018-workshop | fcf7c13ff6723ac91f156377e27fc5acaf85367a | a05a63c17f43926d6411ada625b191db1abbee67 | refs/heads/master | 2022-12-02T02:12:34.450130 | 2022-11-29T16:06:36 | 2022-11-29T16:06:36 | 120,949,505 | 15 | 4 | Apache-2.0 | 2022-11-29T16:06:37 | 2018-02-09T19:58:11 | Python | UTF-8 | Python | false | false | 11,323 | py | """
This module shows the node for 8 nodes distributed system setup.
"""
import argparse
import os
import time
from BaseHTTPServer import BaseHTTPRequestHandler, HTTPServer
from SocketServer import ThreadingMixIn
from collections import deque
from multiprocessing import Queue
from threading import Thread, Lock
import avro.ipc as ipc
import avro.protocol as protocol
import avro.schema as schema
import numpy as np
import tensorflow as tf
import yaml
import model as ml
os.environ['TF_CPP_MIN_LOG_LEVEL'] = '3'
# read data packet format.
PROTOCOL = protocol.parse(open('resource/image.avpr').read())
class Node(object):
"""
Singleton Node class. It will store data if necessary, record next layer
response time, send data packet to next layer and store the loaded model
in memory without reloading.
Attributes:
ip: A dictionary contains Queue of ip addresses for different models type.
model: Loaded models associated to a node.
graph: Default graph used by Tensorflow.
debug: Flag for debugging.
lock: Threading lock for safe usage of this class. The lock is used
for safe models forwarding. If the models is processing input and
it gets request from other devices, the new request will wait
until the previous models forwarding finishes.
name: Model name.
total: Total time of getting frames.
count: Total number of frames gets back.
input: Store the input for last fully connected layer, it acts as a buffer
that it will kick out extra data and store unused data.
"""
instance = None
def __init__(self):
self.ip = dict()
self.model = None
self.graph = tf.get_default_graph()
self.debug = False
self.lock = Lock()
self.name = 'unknown'
self.total = 0
self.count = 1
self.input = deque()
def log(self, step, data=''):
"""
Log function for debug. Turn the flag on to show each step result.
Args:
step: Each step names.
data: Data format or size.
"""
if self.debug:
print '++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++'
for k in range(0, len(step), 68):
print '+{:^68.68}+'.format(step[k:k + 68])
for k in range(0, len(data), 68):
print '+{:^68.68}+'.format(data[k:k + 68])
print '++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++'
print
def acquire_lock(self):
self.lock.acquire()
def release_lock(self):
self.lock.release()
def timer(self, interval):
self.total += interval
print '{:s}: {:.3f}'.format(self.name, self.total / self.count)
self.count += 1
@classmethod
def create(cls):
if cls.instance is None:
cls.instance = cls()
return cls.instance
class Responder(ipc.Responder):
""" Responder called by handler when got request. """
def __init__(self):
ipc.Responder.__init__(self, PROTOCOL)
def invoke(self, msg, req):
"""
This functino is invoked by do_POST to handle the request. Invoke handles
the request and get response for the request. This is the key of each node.
All models forwarding and output redirect are done here. Because the invoke
method of initializer only needs to receive the data packet, it does not do
anything in the function and return None.
Because this is a node class, it has all necessary code here for handling
different inputs. Basically the logic is load model as the previous layer
request and run model inference. And it will send the current layer output
to next layer. We write different model's code all here for the sake of
convenience. In order to avoid long waiting time of model reloading, we
make sure each node is assigned to a unique job each time, so it does not
need to reload the model.
Args:
msg: Meta data.
req: Contains data packet.
Returns:
None: It just acts as confirmation for sender.
Raises:
AvroException: if the data does not have correct syntac defined in Schema
"""
node = Node.create()
node.acquire_lock()
if msg.name == 'forward':
try:
with node.graph.as_default():
bytestr = req['input']
if req['next'] == 'block1':
node.log('block1 gets data')
X = np.fromstring(bytestr, np.uint8).reshape(224, 224, 3)
node.model = ml.block1() if node.model is None else node.model
output = node.model.predict(np.array([X]))
node.log('finish block1 forward')
Thread(target=self.send, args=(output, 'block234', req['tag'])).start()
elif req['next'] == 'block234':
node.log('block234 gets data')
X = np.fromstring(bytestr, np.float32).reshape(112, 112, 64)
node.model = ml.block234() if node.model is None else node.model
output = node.model.predict(np.array([X]))
node.log('finish block234 forward')
Thread(target=self.send, args=(output, 'block5', req['tag'])).start()
elif req['next'] == 'block5':
node.log('block5 gets data')
X = np.fromstring(bytestr, np.float32).reshape(14, 14, 512)
node.model = ml.block5() if node.model is None else node.model
output = node.model.predict(np.array([X]))
node.log('finish block5 forward')
for _ in range(2):
Thread(target=self.send, args=(output, 'fc1', req['tag'])).start()
elif req['next'] == 'fc1':
node.log('fc1 gets data')
X = np.fromstring(bytestr, np.float32).reshape(25088)
node.model = ml.fc1() if node.model is None else node.model
output = node.model.predict(np.array([X]))
node.log('finish block6 forward')
Thread(target=self.send, args=(output, 'fc2', req['tag'])).start()
elif req['next'] == 'fc2':
node.log('fc2 gets data')
X = np.fromstring(bytestr, np.float32).reshape(2048)
node.input.append(X)
node.log('input size', str(len(node.input)))
# if the size is not enough, store in the queue and return.
if len(node.input) < 2:
node.release_lock()
return
# too many data packets, then drop some data.
while len(node.input) > 2:
node.input.popleft()
X = np.concatenate(node.input)
node.model = ml.fc2() if node.model is None else node.model
output = node.model.predict(np.array([X]))
node.log('finish model inference')
Thread(target=self.send, args=(output, 'initial', req['tag'])).start()
node.release_lock()
return
except Exception, e:
node.log('Error', e.message)
else:
raise schema.AvroException('unexpected message:', msg.getname())
def send(self, X, name, tag):
"""
Send data to other devices. The data packet contains data and models name.
Ip address of next device pop from Queue of a ip list.
Args:
X: numpy array
name: next device models name
tag: mark the current layer label
"""
node = Node.create()
queue = node.ip[name]
address = queue.get()
# initializer use port 9999 to receive data
port = 9999 if name == 'initial' else 12345
client = ipc.HTTPTransceiver(address, port)
requestor = ipc.Requestor(PROTOCOL, client)
node.name = name
data = dict()
data['input'] = X.tostring()
data['next'] = name
data['tag'] = tag
node.log('finish assembly')
start = time.time()
requestor.request('forward', data)
end = time.time()
node.timer(end - start)
node.log('node gets request back')
client.close()
queue.put(address)
class Handler(BaseHTTPRequestHandler):
def do_POST(self):
"""
do_POST is automatically called by ThreadedHTTPServer. It creates a new
responder for each request. The responder generates response and write
response to data sent back.
"""
self.responder = Responder()
call_request_reader = ipc.FramedReader(self.rfile)
call_request = call_request_reader.read_framed_message()
resp_body = self.responder.respond(call_request)
self.send_response(200)
self.send_header('Content-Type', 'avro/binary')
self.end_headers()
resp_writer = ipc.FramedWriter(self.wfile)
resp_writer.write_framed_message(resp_body)
class ThreadedHTTPServer(ThreadingMixIn, HTTPServer):
""" Handle requests in separate thread. """
def main(cmd):
node = Node.create()
node.debug = cmd.debug
# read ip resources from config file
with open('resource/ip') as file:
address = yaml.safe_load(file)
node.ip['block234'] = Queue()
node.ip['block5'] = Queue()
node.ip['fc1'] = Queue()
node.ip['fc2'] = Queue()
node.ip['initial'] = Queue()
address = address['node']
for addr in address['block234']:
if addr == '#':
break
node.ip['block234'].put(addr)
for addr in address['block5']:
if addr == '#':
break
node.ip['block5'].put(addr)
for addr in address['fc1']:
if addr == '#':
break
node.ip['fc1'].put(addr)
for addr in address['fc2']:
if addr == '#':
break
node.ip['fc2'].put(addr)
for addr in address['initial']:
if addr == '#':
break
node.ip['initial'].put(addr)
server = ThreadedHTTPServer(('0.0.0.0', 12345), Handler)
server.allow_reuse_address = True
server.serve_forever()
if __name__ == '__main__':
parser = argparse.ArgumentParser()
parser.add_argument('-d', '--debug', action='store_true', default=False,
help='set to debug mode')
cmd = parser.parse_args()
main(cmd)
| [
"[email protected]"
] | |
92f9238ad3092c97ec4b095701f67d1c55cfd079 | 5d302c38acd02d5af4ad7c8cfe244200f8e8f877 | /String/1408. String Matching in an Array(Easy).py | adf72b4a7fde98423f8ff4a18cf2a13c73a92e79 | [] | no_license | nerohuang/LeetCode | 2d5214a2938dc06600eb1afd21686044fe5b6db0 | f273c655f37da643a605cc5bebcda6660e702445 | refs/heads/master | 2023-06-05T00:08:41.312534 | 2021-06-21T01:03:40 | 2021-06-21T01:03:40 | 230,164,258 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 725 | py | class Solution:
def stringMatching(self, words: List[str]) -> List[str]:
store = set();
for i in range(len(words)):
for j in range(len(words)):
if len(words[i]) >= len(words[j]) and words[i] != words[j]:
if words[i].find(words[j]) != -1:
store.add(words[j])
return list(store)
#class Solution:
# def stringMatching(self, words: List[str]) -> List[str]:
# res = []
# words.sort(key=len)
# for i, word in enumerate(words):
# for k in range(i+1, len(words)):
# if word in words[k]:
# res.append(word)
# break
#
# return res | [
"[email protected]"
] | |
b24094d77418e88f7477458debc1594cdeb2b6fa | 021ce16e42120246557dfa210bef6e96a34623b6 | /tornado_sqlalchemy_login/sqla/models.py | 6769f29cf020d69ba5c5480e1a770a37fb2ae347 | [
"Apache-2.0"
] | permissive | timkpaine/tornado-sqlalchemy-login | f455b95d60d392202b46758ff230259785f7dc19 | 499bc7d79926b79352a3b9abdb864815e9896274 | refs/heads/main | 2022-12-01T22:28:06.620106 | 2022-11-22T01:46:21 | 2022-11-22T01:46:21 | 230,801,513 | 1 | 0 | Apache-2.0 | 2023-09-04T13:35:46 | 2019-12-29T20:46:05 | Python | UTF-8 | Python | false | false | 2,109 | py | import secrets
from sqlalchemy import Column, Integer, String, Boolean, ForeignKey
from sqlalchemy.ext.hybrid import hybrid_property
from sqlalchemy.orm import relationship
from sqlalchemy.ext.declarative import declarative_base
TOKEN_WIDTH = 64
Base = declarative_base()
class User(Base):
__tablename__ = "users"
id = Column(Integer, primary_key=True)
username = Column(String(100), nullable=False, unique=True)
password = Column(String(100), nullable=False)
_email = Column("email", String, nullable=False, unique=True)
apikeys = relationship("APIKey", back_populates="user")
admin = Column(Boolean, default=False)
@hybrid_property
def email(self):
return self._email
@email.setter
def email(self, email):
# TODO validate
self._email = email
def __repr__(self):
return "<User(id='{}', username='{}')>".format(self.id, self.username)
def to_dict(self):
ret = {}
for item in ("id", "username", "email"):
ret[item] = getattr(self, item)
return ret
def from_dict(self, d):
raise NotImplementedError()
class APIKey(Base):
__tablename__ = "apikeys"
id = Column(Integer, primary_key=True)
user_id = Column(Integer, ForeignKey("users.id", ondelete="cascade"))
user = relationship("User", back_populates="apikeys")
key = Column(
String(100), nullable=False, default=lambda: secrets.token_urlsafe(TOKEN_WIDTH)
)
secret = Column(
String(100), nullable=False, default=lambda: secrets.token_urlsafe(TOKEN_WIDTH)
)
@staticmethod
def generateKey():
return {
"key": secrets.token_urlsafe(TOKEN_WIDTH),
"secret": secrets.token_urlsafe(TOKEN_WIDTH),
}
def __repr__(self):
return "<Key(id='{}', key='{}', secret='***')>".format(self.id, self.key)
def to_dict(self):
ret = {}
for item in ("id", "user_id", "key", "secret"):
ret[item] = getattr(self, item)
return ret
def from_dict(self, d):
raise NotImplementedError()
| [
"[email protected]"
] | |
3e2af68956ab395d7d6c3ee1a4238c837c4b51cc | b2472967910be9c12576f0f97d33bca0576a8667 | /atcoder-old/2019/0901_abc139/d.py | 0f4f619ee2e61c90c3c79b0e44b9d3a7b51c02c3 | [] | no_license | ykmc/contest | 85c3d1231e553d37d1235e1b0fd2c6c23f06c1e4 | 69a73da70f7f987eb3e85da503ea6da0744544bd | refs/heads/master | 2020-09-01T22:56:10.444803 | 2020-07-14T11:36:43 | 2020-07-14T11:36:43 | 217,307,953 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 417 | py | # Python3 (3.4.3)
import sys
input = sys.stdin.readline
# -------------------------------------------------------------
# function
# -------------------------------------------------------------
# -------------------------------------------------------------
# main
# -------------------------------------------------------------
N = int(input())
# i % i+1 = i が最善, あまりは 1 〜 N-1
print(N*(N-1)//2) | [
"[email protected]"
] | |
368d3a8e796916e2e6cadcf0e634c978a7ef2699 | ae7ba9c83692cfcb39e95483d84610715930fe9e | /martinkersner/train-CRF-RNN/crfasrnn.py | 472a86f853e687aa057de49dcc8aa8957733f63d | [] | no_license | xenron/sandbox-github-clone | 364721769ea0784fb82827b07196eaa32190126b | 5eccdd8631f8bad78eb88bb89144972dbabc109c | refs/heads/master | 2022-05-01T21:18:43.101664 | 2016-09-12T12:38:32 | 2016-09-12T12:38:32 | 65,951,766 | 5 | 7 | null | null | null | null | UTF-8 | Python | false | false | 3,462 | py | #!/usr/bin/env python
# Martin Kersner, [email protected]
# 2016/03/03
from __future__ import print_function
caffe_root = '../caffe-crfrnn/'
import sys
sys.path.insert(0, caffe_root + 'python')
import os
import cPickle
import logging
import numpy as np
import pandas as pd
from PIL import Image as PILImage
import cStringIO as StringIO
import caffe
import matplotlib.pyplot as plt
from utils import palette_demo
# TODO concatenate input and output image
def main():
iteration, image_paths = process_arguments(sys.argv)
if iteration:
prototxt = 'TVG_CRFRNN_COCO_VOC_TEST_3_CLASSES.prototxt'
model = 'models/train_iter_{}.caffemodel'.format(iteration)
else:
prototxt = 'TVG_CRFRNN_COCO_VOC.prototxt'
model = 'TVG_CRFRNN_COCO_VOC.caffemodel'
if not exist_model(model, prototxt):
help()
# default images (part of http://www.cs.berkeley.edu/~bharath2/codes/SBD/download.html)
if not image_paths:
image_paths.append('images/2007_005844.png') # chair
image_paths.append('images/2008_007811.png') # bottle
image_paths.append('images/2007_002094.png') # bird
palette = palette_demo()
net = caffe.Segmenter(prototxt, model, True)
for path in image_paths:
image, cur_h, cur_w = preprocess_image(path)
if image == None:
print(path + ' does not exist! Skipping.' , file=sys.stderr)
continue
print('Processing ' + path + '...', end='')
segmentation = net.predict([image])
segm_post = postprocess_label(segmentation, cur_h, cur_w, palette)
plt.imshow(segm_post)
plt.savefig(create_label_name(path))
print('finished.')
def preprocess_image(image_path):
if not os.path.exists(image_path):
return None, 0, 0
input_image = 255 * caffe.io.load_image(image_path)
image = PILImage.fromarray(np.uint8(input_image))
image = np.array(image)
mean_vec = np.array([103.939, 116.779, 123.68], dtype=np.float32)
reshaped_mean_vec = mean_vec.reshape(1, 1, 3);
im = image[:,:,::-1]
im = im - reshaped_mean_vec
# Pad as necessary
cur_h, cur_w, cur_c = im.shape
pad_h = 500 - cur_h
pad_w = 500 - cur_w
im = np.pad(im, pad_width=((0, pad_h), (0, pad_w), (0, 0)), mode = 'constant', constant_values = 0)
return im, cur_h, cur_w
def postprocess_label(segmentation, cur_h, cur_w, palette):
segmentation2 = segmentation[0:cur_h, 0:cur_w]
output_im = PILImage.fromarray(segmentation2)
output_im.putpalette(palette)
return output_im
def create_label_name(orig_path):
return 'label_' + os.path.splitext(os.path.basename(orig_path))[0] + '.png'
def exist_model(model, prototxt):
if not os.path.exists(model):
print('Model ' + model + ' does not exist! Exiting.', file=sys.stderr)
return False
elif not os.path.exists(prototxt):
print('Prototxt' + prototxt + ' does not exist! Exiting.', file=sys.stderr)
return False
return True
def process_arguments(argv):
num_args = len(argv)
iteration = None
image_paths = []
if num_args == 2:
iteration = argv[1]
elif num_args > 2:
iteration = argv[1]
for name in argv[2:]:
image_paths.append(name)
return iteration, image_paths
def help():
print('Usage: python crfasrnn.py [ITERATION_NUM [IMAGE, IMAGE, ...]\n'
'ITERATION_NUM denotes iteration number of model which shall be run.\n'
'IMAGE one or more images can be passed as arguments.'
, file=sys.stderr)
exit()
if __name__ == '__main__':
main()
| [
"[email protected]"
] | |
f0ee9e58c7029957af4366c984e9861db7dfc8e2 | 6ffed3351dd608ce311a7c04d813e4cbcc283d6f | /djongo_project/files/api/serializers.py | e0c2ca3d77901c61c0d12799e99a053ec5653fad | [] | no_license | navill/ai_2-1 | bc2311dd5e8839c6bd4112965b7348252408785a | 7dd782b93286b7a407c433aa55a3b8f3f626fe89 | refs/heads/master | 2023-01-06T19:09:26.051130 | 2020-10-07T02:08:15 | 2020-10-07T02:08:15 | 290,131,119 | 0 | 0 | null | 2020-10-08T14:45:37 | 2020-08-25T06:20:46 | Python | UTF-8 | Python | false | false | 1,396 | py | from typing import *
from rest_framework import serializers
from rest_framework.reverse import reverse
from accounts.models import CommonUser
from utilities.file_utils import EncryptHandler
from files.models import CommonFile
class FileManageSerializer(serializers.ModelSerializer):
user = serializers.PrimaryKeyRelatedField(queryset=CommonUser.objects.all(), required=False)
patient_name = serializers.CharField(required=True)
file = serializers.FileField(use_url=False)
created_at = serializers.DateTimeField(read_only=True)
class Meta:
model = CommonFile
fields = ['user', 'patient_name', 'file', 'created_at']
read_only_fields = ['user']
def to_representation(self, instance: CommonFile) -> Dict:
ret = super().to_representation(instance)
encrypted_path = self._create_encrypted_path(str(instance.id))
encrypted_pull_url = reverse('files:download', args=[encrypted_path], request=self.context['request'])
ret['url'] = encrypted_pull_url
return ret
def create(self, validated_data: dict) -> CommonFile:
try:
file_obj = CommonFile.objects.create(**validated_data)
except Exception:
raise
return file_obj
def _create_encrypted_path(self, instance_id: str) -> str:
handler = EncryptHandler(instance_id)
return handler.encrypt()
| [
"[email protected]"
] | |
59f182eac7ff61fa54275583dd65186678b519c5 | ef34e68712fb4aa9a1320c4e1e370a24de34fcb4 | /nlu/utils/environment/authentication.py | 31b46bde24d6ece7e8670f0fe028b52bcba4a11a | [
"Apache-2.0"
] | permissive | milyiyo/nlu | dd656e77eedf2c831482edfd4ec59490b25d3954 | d209ed11c6a84639c268f08435552248391c5573 | refs/heads/master | 2023-08-16T00:03:10.326392 | 2021-10-16T03:05:49 | 2021-10-16T03:05:49 | 414,223,627 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,823 | py | from nlu.utils.environment.env_utils import *
def install_and_import_healthcare(JSL_SECRET):
""" Install Spark-NLP-Healthcare PyPI Package in current enviroment if it cannot be imported and liscense provided"""
import importlib
try:
importlib.import_module('sparknlp_jsl')
except ImportError:
import pip
print("Spark NLP Healthcare could not be imported. Installing latest spark-nlp-jsl PyPI package via pip...")
hc_version = JSL_SECRET.split('-')[0]
import pyspark
pip_major_version = int(pip.__version__.split('.')[0])
if pip_major_version in [10, 18, 19, 20]:
# for these versions pip module does not support installing, we install via OS command.
os.system(
f'pip install spark-nlp-jsl=={hc_version} --extra-index-url https://pypi.johnsnowlabs.com/{JSL_SECRET}')
else:
pip.main(['install', f'spark-nlp-jsl=={hc_version}', '--extra-index-url',
f'https://pypi.johnsnowlabs.com/{JSL_SECRET}'])
finally:
import site
from importlib import reload
reload(site)
globals()['sparknlp_jsl'] = importlib.import_module('sparknlp_jsl')
def authenticate_enviroment(SPARK_NLP_LICENSE, AWS_ACCESS_KEY_ID, AWS_SECRET_ACCESS_KEY):
"""Set Secret environ variables for Spark Context"""
os.environ['SPARK_NLP_LICENSE'] = SPARK_NLP_LICENSE
os.environ['AWS_ACCESS_KEY_ID'] = AWS_ACCESS_KEY_ID
os.environ['AWS_SECRET_ACCESS_KEY'] = AWS_SECRET_ACCESS_KEY
def get_authenticated_spark(SPARK_NLP_LICENSE, AWS_ACCESS_KEY_ID, AWS_SECRET_ACCESS_KEY, JSL_SECRET, gpu=False, ):
"""
Authenticates enviroment if not already done so and returns Spark Context with Healthcare Jar loaded
0. If no Spark-NLP-Healthcare, install it via PyPi
1. If not auth, run authenticate_enviroment()
"""
import sparknlp
authenticate_enviroment(SPARK_NLP_LICENSE, AWS_ACCESS_KEY_ID, AWS_SECRET_ACCESS_KEY)
install_and_import_healthcare(JSL_SECRET)
import sparknlp_jsl
if is_env_pyspark_2_3(): return sparknlp_jsl.start(JSL_SECRET, spark23=True, gpu=gpu)
if is_env_pyspark_2_4(): return sparknlp_jsl.start(JSL_SECRET, spark24=True, gpu=gpu)
if is_env_pyspark_3_0() or is_env_pyspark_3_1():
return sparknlp_jsl.start(JSL_SECRET, gpu=gpu, public=sparknlp.version())
print(f"Current Spark version {get_pyspark_version()} not supported!")
raise ValueError
def is_authorized_enviroment():
"""Check if auth secrets are set in enviroment"""
SPARK_NLP_LICENSE = os.getenv('SPARK_NLP_LICENSE')
AWS_ACCESS_KEY_ID = os.getenv('AWS_ACCESS_KEY_ID')
AWS_SECRET_ACCESS_KEY = os.getenv('AWS_SECRET_ACCESS_KEY')
return None not in [SPARK_NLP_LICENSE, AWS_ACCESS_KEY_ID, AWS_SECRET_ACCESS_KEY]
| [
"[email protected]"
] | |
71ca8542c4f7c61d9328341ec14b583e4d30c82d | e4920c4fe4290bde524e0c141189f80fddfe44b7 | /info/migrations/0023_remove_message_recaptcha.py | 85b4c72c01e9b2dc98df1f027f92d51e1b879720 | [] | no_license | ShahadatShuvo/Django_portfolio | 42af2b0aa686bff08730cdb105f95d6b63adb620 | 795ed7cbb6444245af08582ea63f57a0f32679a0 | refs/heads/master | 2023-05-30T01:43:50.409584 | 2021-06-14T08:29:18 | 2021-06-14T08:29:18 | 376,372,632 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 330 | py | # Generated by Django 2.2.16 on 2020-12-22 17:04
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('info', '0022_auto_20201222_1655'),
]
operations = [
migrations.RemoveField(
model_name='message',
name='recaptcha',
),
]
| [
"[email protected]"
] | |
e8720a42e2d433fa822311add8bf6a44faced378 | bda32ee120fd07499fad1e5e973249ac15861200 | /ValidSudoku.py | 5996590c78e0207e3f98330665a34507963f42cf | [] | no_license | congyingTech/leetcode | 5f76d11a283115e46fdf4f295cf0279f53e692a1 | 35ff5db1ee6abcb3cf1144a9bf5420758e31e6ec | refs/heads/master | 2021-01-21T04:41:20.195451 | 2016-06-16T07:03:09 | 2016-06-16T07:03:09 | 54,643,108 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,772 | py | #-*- coding:utf-8 -*-
'''
Created on Mar 30, 2016
@author: congyingw
'''
#Sudoku的要求有三条:每行的数只出现一次,每列的数只出现一次,每个九宫格数只出现一次。
#所以我们要验证这三个条件逐个遍历一遍。
class Solution:
def isValidSudoku(self, board):
for i in range(0, 9):
#第i行(固定的行)j列 or 第j行i列(固定的列)
if not self.isValidList([board[i][j] for j in range(0,9)]) or not self.isValidList([board[j][i] for j in range(0, 9)]):
return False
#检查第三条:九宫格里面是否出现重复,
for i in range(0, 3):
for j in range(0, 3):
if not self.isValidList([board[m][n] for m in range (3 * i, 3 * i + 3)for n in range(3 * j, 3*j + 3)]):
return False
return True
#判断是否是有效的list,去掉. 之后,set可以过滤相同的元素,过滤之后,看len是否相等
def isValidList(self, xs):
xs = list(filter(lambda x: x != '.', xs))
return len(set(xs)) == len(xs)
if __name__ == "__main__":
board = [[5, '.', '.', '.', '.', '.', '.', '.', '.'],
[5, 2, '.', '.', '.', '.', '.', '.', '.'],
['.', '.', 3, '.', '.', '.', '.', '.', '.'],
['.', '.', '.', 4, '.', '.', '.', '.', '.'],
['.', '.', '.', '.', 5, '.', '.', '.', '.'],
['.', '.', '.', '.', '.', 6, '.', '.', '.'],
['.', '.', '.', '.', '.', '.', 7, '.', '.'],
['.', '.', '.', '.', '.', '.', '.', 8, '.'],
['.', '.', '.', '.', '.', '.', '.', '.', 9]]
print(Solution().isValidSudoku(board))
| [
"[email protected]"
] | |
4ca6bb07c21ed85808635058d7bf3d36c71eb43e | b8f4b32171bba9e60a101f5a605e084c9aa974fd | /BaseTools/Source/Python/AutoGen/UniClassObject.py | b2895f7e5c63d238180b93830b7630499ffa202c | [
"BSD-3-Clause",
"BSD-2-Clause-Patent"
] | permissive | jinjhuli/slimbootloader | 3137ab83073865b247f69b09a628f8b39b4c05ee | cfba21067cf4dce659b508833d8c886967081375 | refs/heads/master | 2023-07-11T12:59:51.336343 | 2020-09-11T00:16:48 | 2020-09-11T00:24:52 | 149,729,121 | 1 | 0 | BSD-2-Clause | 2018-09-21T07:49:42 | 2018-09-21T07:49:42 | null | UTF-8 | Python | false | false | 29,575 | py | ## @file
# This file is used to collect all defined strings in multiple uni files
#
#
# Copyright (c) 2014 Hewlett-Packard Development Company, L.P.<BR>
#
# Copyright (c) 2007 - 2018, Intel Corporation. All rights reserved.<BR>
# SPDX-License-Identifier: BSD-2-Clause-Patent
##
# Import Modules
#
from __future__ import print_function
import Common.LongFilePathOs as os, codecs, re
import distutils.util
import Common.EdkLogger as EdkLogger
from io import BytesIO
from Common.BuildToolError import *
from Common.StringUtils import GetLineNo
from Common.Misc import PathClass
from Common.LongFilePathSupport import LongFilePath
from Common.GlobalData import *
##
# Static definitions
#
UNICODE_WIDE_CHAR = u'\\wide'
UNICODE_NARROW_CHAR = u'\\narrow'
UNICODE_NON_BREAKING_CHAR = u'\\nbr'
UNICODE_UNICODE_CR = '\r'
UNICODE_UNICODE_LF = '\n'
NARROW_CHAR = u'\uFFF0'
WIDE_CHAR = u'\uFFF1'
NON_BREAKING_CHAR = u'\uFFF2'
CR = u'\u000D'
LF = u'\u000A'
NULL = u'\u0000'
TAB = u'\t'
BACK_SLASH_PLACEHOLDER = u'\u0006'
gIncludePattern = re.compile("^#include +[\"<]+([^\"< >]+)[>\"]+$", re.MULTILINE | re.UNICODE)
## Convert a unicode string to a Hex list
#
# Convert a unicode string to a Hex list
# UniToHexList('ABC') is ['0x41', '0x00', '0x42', '0x00', '0x43', '0x00']
#
# @param Uni: The python unicode string
#
# @retval List: The formatted hex list
#
def UniToHexList(Uni):
List = []
for Item in Uni:
Temp = '%04X' % ord(Item)
List.append('0x' + Temp[2:4])
List.append('0x' + Temp[0:2])
return List
LangConvTable = {'eng':'en', 'fra':'fr', \
'aar':'aa', 'abk':'ab', 'ave':'ae', 'afr':'af', 'aka':'ak', 'amh':'am', \
'arg':'an', 'ara':'ar', 'asm':'as', 'ava':'av', 'aym':'ay', 'aze':'az', \
'bak':'ba', 'bel':'be', 'bul':'bg', 'bih':'bh', 'bis':'bi', 'bam':'bm', \
'ben':'bn', 'bod':'bo', 'bre':'br', 'bos':'bs', 'cat':'ca', 'che':'ce', \
'cha':'ch', 'cos':'co', 'cre':'cr', 'ces':'cs', 'chu':'cu', 'chv':'cv', \
'cym':'cy', 'dan':'da', 'deu':'de', 'div':'dv', 'dzo':'dz', 'ewe':'ee', \
'ell':'el', 'epo':'eo', 'spa':'es', 'est':'et', 'eus':'eu', 'fas':'fa', \
'ful':'ff', 'fin':'fi', 'fij':'fj', 'fao':'fo', 'fry':'fy', 'gle':'ga', \
'gla':'gd', 'glg':'gl', 'grn':'gn', 'guj':'gu', 'glv':'gv', 'hau':'ha', \
'heb':'he', 'hin':'hi', 'hmo':'ho', 'hrv':'hr', 'hat':'ht', 'hun':'hu', \
'hye':'hy', 'her':'hz', 'ina':'ia', 'ind':'id', 'ile':'ie', 'ibo':'ig', \
'iii':'ii', 'ipk':'ik', 'ido':'io', 'isl':'is', 'ita':'it', 'iku':'iu', \
'jpn':'ja', 'jav':'jv', 'kat':'ka', 'kon':'kg', 'kik':'ki', 'kua':'kj', \
'kaz':'kk', 'kal':'kl', 'khm':'km', 'kan':'kn', 'kor':'ko', 'kau':'kr', \
'kas':'ks', 'kur':'ku', 'kom':'kv', 'cor':'kw', 'kir':'ky', 'lat':'la', \
'ltz':'lb', 'lug':'lg', 'lim':'li', 'lin':'ln', 'lao':'lo', 'lit':'lt', \
'lub':'lu', 'lav':'lv', 'mlg':'mg', 'mah':'mh', 'mri':'mi', 'mkd':'mk', \
'mal':'ml', 'mon':'mn', 'mar':'mr', 'msa':'ms', 'mlt':'mt', 'mya':'my', \
'nau':'na', 'nob':'nb', 'nde':'nd', 'nep':'ne', 'ndo':'ng', 'nld':'nl', \
'nno':'nn', 'nor':'no', 'nbl':'nr', 'nav':'nv', 'nya':'ny', 'oci':'oc', \
'oji':'oj', 'orm':'om', 'ori':'or', 'oss':'os', 'pan':'pa', 'pli':'pi', \
'pol':'pl', 'pus':'ps', 'por':'pt', 'que':'qu', 'roh':'rm', 'run':'rn', \
'ron':'ro', 'rus':'ru', 'kin':'rw', 'san':'sa', 'srd':'sc', 'snd':'sd', \
'sme':'se', 'sag':'sg', 'sin':'si', 'slk':'sk', 'slv':'sl', 'smo':'sm', \
'sna':'sn', 'som':'so', 'sqi':'sq', 'srp':'sr', 'ssw':'ss', 'sot':'st', \
'sun':'su', 'swe':'sv', 'swa':'sw', 'tam':'ta', 'tel':'te', 'tgk':'tg', \
'tha':'th', 'tir':'ti', 'tuk':'tk', 'tgl':'tl', 'tsn':'tn', 'ton':'to', \
'tur':'tr', 'tso':'ts', 'tat':'tt', 'twi':'tw', 'tah':'ty', 'uig':'ug', \
'ukr':'uk', 'urd':'ur', 'uzb':'uz', 'ven':'ve', 'vie':'vi', 'vol':'vo', \
'wln':'wa', 'wol':'wo', 'xho':'xh', 'yid':'yi', 'yor':'yo', 'zha':'za', \
'zho':'zh', 'zul':'zu'}
## GetLanguageCode
#
# Check the language code read from .UNI file and convert ISO 639-2 codes to RFC 4646 codes if appropriate
# ISO 639-2 language codes supported in compatibility mode
# RFC 4646 language codes supported in native mode
#
# @param LangName: Language codes read from .UNI file
#
# @retval LangName: Valid language code in RFC 4646 format or None
#
def GetLanguageCode(LangName, IsCompatibleMode, File):
length = len(LangName)
if IsCompatibleMode:
if length == 3 and LangName.isalpha():
TempLangName = LangConvTable.get(LangName.lower())
if TempLangName is not None:
return TempLangName
return LangName
else:
EdkLogger.error("Unicode File Parser", FORMAT_INVALID, "Invalid ISO 639-2 language code : %s" % LangName, File)
if (LangName[0] == 'X' or LangName[0] == 'x') and LangName[1] == '-':
return LangName
if length == 2:
if LangName.isalpha():
return LangName
elif length == 3:
if LangName.isalpha() and LangConvTable.get(LangName.lower()) is None:
return LangName
elif length == 5:
if LangName[0:2].isalpha() and LangName[2] == '-':
return LangName
elif length >= 6:
if LangName[0:2].isalpha() and LangName[2] == '-':
return LangName
if LangName[0:3].isalpha() and LangConvTable.get(LangName.lower()) is None and LangName[3] == '-':
return LangName
EdkLogger.error("Unicode File Parser", FORMAT_INVALID, "Invalid RFC 4646 language code : %s" % LangName, File)
## Ucs2Codec
#
# This is only a partial codec implementation. It only supports
# encoding, and is primarily used to check that all the characters are
# valid for UCS-2.
#
class Ucs2Codec(codecs.Codec):
def __init__(self):
self.__utf16 = codecs.lookup('utf-16')
def encode(self, input, errors='strict'):
for Char in input:
CodePoint = ord(Char)
if CodePoint >= 0xd800 and CodePoint <= 0xdfff:
raise ValueError("Code Point is in range reserved for " +
"UTF-16 surrogate pairs")
elif CodePoint > 0xffff:
raise ValueError("Code Point too large to encode in UCS-2")
return self.__utf16.encode(input)
TheUcs2Codec = Ucs2Codec()
def Ucs2Search(name):
if name == 'ucs-2':
return codecs.CodecInfo(
name=name,
encode=TheUcs2Codec.encode,
decode=TheUcs2Codec.decode)
else:
return None
codecs.register(Ucs2Search)
## StringDefClassObject
#
# A structure for language definition
#
class StringDefClassObject(object):
def __init__(self, Name = None, Value = None, Referenced = False, Token = None, UseOtherLangDef = ''):
self.StringName = ''
self.StringNameByteList = []
self.StringValue = ''
self.StringValueByteList = ''
self.Token = 0
self.Referenced = Referenced
self.UseOtherLangDef = UseOtherLangDef
self.Length = 0
if Name is not None:
self.StringName = Name
self.StringNameByteList = UniToHexList(Name)
if Value is not None:
self.StringValue = Value + u'\x00' # Add a NULL at string tail
self.StringValueByteList = UniToHexList(self.StringValue)
self.Length = len(self.StringValueByteList)
if Token is not None:
self.Token = Token
def __str__(self):
return repr(self.StringName) + ' ' + \
repr(self.Token) + ' ' + \
repr(self.Referenced) + ' ' + \
repr(self.StringValue) + ' ' + \
repr(self.UseOtherLangDef)
def UpdateValue(self, Value = None):
if Value is not None:
self.StringValue = Value + u'\x00' # Add a NULL at string tail
self.StringValueByteList = UniToHexList(self.StringValue)
self.Length = len(self.StringValueByteList)
def StripComments(Line):
Comment = u'//'
CommentPos = Line.find(Comment)
while CommentPos >= 0:
# if there are non matched quotes before the comment header
# then we are in the middle of a string
# but we need to ignore the escaped quotes and backslashes.
if ((Line.count(u'"', 0, CommentPos) - Line.count(u'\\"', 0, CommentPos)) & 1) == 1:
CommentPos = Line.find (Comment, CommentPos + 1)
else:
return Line[:CommentPos].strip()
return Line.strip()
## UniFileClassObject
#
# A structure for .uni file definition
#
class UniFileClassObject(object):
def __init__(self, FileList = [], IsCompatibleMode = False, IncludePathList = []):
self.FileList = FileList
self.Token = 2
self.LanguageDef = [] #[ [u'LanguageIdentifier', u'PrintableName'], ... ]
self.OrderedStringList = {} #{ u'LanguageIdentifier' : [StringDefClassObject] }
self.OrderedStringDict = {} #{ u'LanguageIdentifier' : {StringName:(IndexInList)} }
self.OrderedStringListByToken = {} #{ u'LanguageIdentifier' : {Token: StringDefClassObject} }
self.IsCompatibleMode = IsCompatibleMode
self.IncludePathList = IncludePathList
if len(self.FileList) > 0:
self.LoadUniFiles(FileList)
#
# Get Language definition
#
def GetLangDef(self, File, Line):
Lang = distutils.util.split_quoted((Line.split(u"//")[0]))
if len(Lang) != 3:
try:
FileIn = UniFileClassObject.OpenUniFile(LongFilePath(File.Path))
except UnicodeError as X:
EdkLogger.error("build", FILE_READ_FAILURE, "File read failure: %s" % str(X), ExtraData=File);
except:
EdkLogger.error("build", FILE_OPEN_FAILURE, ExtraData=File);
LineNo = GetLineNo(FileIn, Line, False)
EdkLogger.error("Unicode File Parser", PARSER_ERROR, "Wrong language definition",
ExtraData="""%s\n\t*Correct format is like '#langdef en-US "English"'""" % Line, File=File, Line=LineNo)
else:
LangName = GetLanguageCode(Lang[1], self.IsCompatibleMode, self.File)
LangPrintName = Lang[2]
IsLangInDef = False
for Item in self.LanguageDef:
if Item[0] == LangName:
IsLangInDef = True
break;
if not IsLangInDef:
self.LanguageDef.append([LangName, LangPrintName])
#
# Add language string
#
self.AddStringToList(u'$LANGUAGE_NAME', LangName, LangName, 0, True, Index=0)
self.AddStringToList(u'$PRINTABLE_LANGUAGE_NAME', LangName, LangPrintName, 1, True, Index=1)
if not IsLangInDef:
#
# The found STRING tokens will be added into new language string list
# so that the unique STRING identifier is reserved for all languages in the package list.
#
FirstLangName = self.LanguageDef[0][0]
if LangName != FirstLangName:
for Index in range (2, len (self.OrderedStringList[FirstLangName])):
Item = self.OrderedStringList[FirstLangName][Index]
if Item.UseOtherLangDef != '':
OtherLang = Item.UseOtherLangDef
else:
OtherLang = FirstLangName
self.OrderedStringList[LangName].append (StringDefClassObject(Item.StringName, '', Item.Referenced, Item.Token, OtherLang))
self.OrderedStringDict[LangName][Item.StringName] = len(self.OrderedStringList[LangName]) - 1
return True
@staticmethod
def OpenUniFile(FileName):
#
# Read file
#
try:
UniFile = open(FileName, mode='rb')
FileIn = UniFile.read()
UniFile.close()
except:
EdkLogger.Error("build", FILE_OPEN_FAILURE, ExtraData=File)
#
# Detect Byte Order Mark at beginning of file. Default to UTF-8
#
Encoding = 'utf-8'
if (FileIn.startswith(codecs.BOM_UTF16_BE) or
FileIn.startswith(codecs.BOM_UTF16_LE)):
Encoding = 'utf-16'
UniFileClassObject.VerifyUcs2Data(FileIn, FileName, Encoding)
UniFile = BytesIO(FileIn)
Info = codecs.lookup(Encoding)
(Reader, Writer) = (Info.streamreader, Info.streamwriter)
return codecs.StreamReaderWriter(UniFile, Reader, Writer)
@staticmethod
def VerifyUcs2Data(FileIn, FileName, Encoding):
Ucs2Info = codecs.lookup('ucs-2')
#
# Convert to unicode
#
try:
FileDecoded = codecs.decode(FileIn, Encoding)
Ucs2Info.encode(FileDecoded)
except:
UniFile = BytesIO(FileIn)
Info = codecs.lookup(Encoding)
(Reader, Writer) = (Info.streamreader, Info.streamwriter)
File = codecs.StreamReaderWriter(UniFile, Reader, Writer)
LineNumber = 0
ErrMsg = lambda Encoding, LineNumber: \
'%s contains invalid %s characters on line %d.' % \
(FileName, Encoding, LineNumber)
while True:
LineNumber = LineNumber + 1
try:
Line = File.readline()
if Line == '':
EdkLogger.error('Unicode File Parser', PARSER_ERROR,
ErrMsg(Encoding, LineNumber))
Ucs2Info.encode(Line)
except:
EdkLogger.error('Unicode File Parser', PARSER_ERROR,
ErrMsg('UCS-2', LineNumber))
#
# Get String name and value
#
def GetStringObject(self, Item):
Language = ''
Value = ''
Name = Item.split()[1]
# Check the string name
if Name != '':
MatchString = gIdentifierPattern.match(Name)
if MatchString is None:
EdkLogger.error('Unicode File Parser', FORMAT_INVALID, 'The string token name %s defined in UNI file %s contains the invalid character.' % (Name, self.File))
LanguageList = Item.split(u'#language ')
for IndexI in range(len(LanguageList)):
if IndexI == 0:
continue
else:
Language = LanguageList[IndexI].split()[0]
Value = LanguageList[IndexI][LanguageList[IndexI].find(u'\"') + len(u'\"') : LanguageList[IndexI].rfind(u'\"')] #.replace(u'\r\n', u'')
Language = GetLanguageCode(Language, self.IsCompatibleMode, self.File)
self.AddStringToList(Name, Language, Value)
#
# Get include file list and load them
#
def GetIncludeFile(self, Item, Dir):
FileName = Item[Item.find(u'#include ') + len(u'#include ') :Item.find(u' ', len(u'#include '))][1:-1]
self.LoadUniFile(FileName)
#
# Pre-process before parse .uni file
#
def PreProcess(self, File):
try:
FileIn = UniFileClassObject.OpenUniFile(LongFilePath(File.Path))
except UnicodeError as X:
EdkLogger.error("build", FILE_READ_FAILURE, "File read failure: %s" % str(X), ExtraData=File.Path);
except OSError:
EdkLogger.error("Unicode File Parser", FILE_NOT_FOUND, ExtraData=File.Path)
except:
EdkLogger.error("build", FILE_OPEN_FAILURE, ExtraData=File.Path);
Lines = []
#
# Use unique identifier
#
for Line in FileIn:
Line = Line.strip()
Line = Line.replace(u'\\\\', BACK_SLASH_PLACEHOLDER)
Line = StripComments(Line)
#
# Ignore empty line
#
if len(Line) == 0:
continue
Line = Line.replace(u'/langdef', u'#langdef')
Line = Line.replace(u'/string', u'#string')
Line = Line.replace(u'/language', u'#language')
Line = Line.replace(u'/include', u'#include')
Line = Line.replace(UNICODE_WIDE_CHAR, WIDE_CHAR)
Line = Line.replace(UNICODE_NARROW_CHAR, NARROW_CHAR)
Line = Line.replace(UNICODE_NON_BREAKING_CHAR, NON_BREAKING_CHAR)
Line = Line.replace(u'\\r\\n', CR + LF)
Line = Line.replace(u'\\n', CR + LF)
Line = Line.replace(u'\\r', CR)
Line = Line.replace(u'\\t', u' ')
Line = Line.replace(u'\t', u' ')
Line = Line.replace(u'\\"', u'"')
Line = Line.replace(u"\\'", u"'")
Line = Line.replace(BACK_SLASH_PLACEHOLDER, u'\\')
StartPos = Line.find(u'\\x')
while (StartPos != -1):
EndPos = Line.find(u'\\', StartPos + 1, StartPos + 7)
if EndPos != -1 and EndPos - StartPos == 6 :
if g4HexChar.match(Line[StartPos + 2 : EndPos], re.UNICODE):
EndStr = Line[EndPos: ]
UniStr = Line[StartPos + 2: EndPos]
if EndStr.startswith(u'\\x') and len(EndStr) >= 7:
if EndStr[6] == u'\\' and g4HexChar.match(EndStr[2 : 6], re.UNICODE):
Line = Line[0 : StartPos] + UniStr + EndStr
else:
Line = Line[0 : StartPos] + UniStr + EndStr[1:]
StartPos = Line.find(u'\\x', StartPos + 1)
IncList = gIncludePattern.findall(Line)
if len(IncList) == 1:
for Dir in [File.Dir] + self.IncludePathList:
IncFile = PathClass(str(IncList[0]), Dir)
if os.path.isfile(IncFile.Path):
Lines.extend(self.PreProcess(IncFile))
break
else:
EdkLogger.error("Unicode File Parser", FILE_NOT_FOUND, Message="Cannot find include file", ExtraData=str(IncList[0]))
continue
Lines.append(Line)
return Lines
#
# Load a .uni file
#
def LoadUniFile(self, File = None):
if File is None:
EdkLogger.error("Unicode File Parser", PARSER_ERROR, 'No unicode file is given')
self.File = File
#
# Process special char in file
#
Lines = self.PreProcess(File)
#
# Get Unicode Information
#
for IndexI in range(len(Lines)):
Line = Lines[IndexI]
if (IndexI + 1) < len(Lines):
SecondLine = Lines[IndexI + 1]
if (IndexI + 2) < len(Lines):
ThirdLine = Lines[IndexI + 2]
#
# Get Language def information
#
if Line.find(u'#langdef ') >= 0:
self.GetLangDef(File, Line)
continue
Name = ''
Language = ''
Value = ''
#
# Get string def information format 1 as below
#
# #string MY_STRING_1
# #language eng
# My first English string line 1
# My first English string line 2
# #string MY_STRING_1
# #language spa
# Mi segunda secuencia 1
# Mi segunda secuencia 2
#
if Line.find(u'#string ') >= 0 and Line.find(u'#language ') < 0 and \
SecondLine.find(u'#string ') < 0 and SecondLine.find(u'#language ') >= 0 and \
ThirdLine.find(u'#string ') < 0 and ThirdLine.find(u'#language ') < 0:
Name = Line[Line.find(u'#string ') + len(u'#string ') : ].strip(' ')
Language = SecondLine[SecondLine.find(u'#language ') + len(u'#language ') : ].strip(' ')
for IndexJ in range(IndexI + 2, len(Lines)):
if Lines[IndexJ].find(u'#string ') < 0 and Lines[IndexJ].find(u'#language ') < 0:
Value = Value + Lines[IndexJ]
else:
IndexI = IndexJ
break
# Value = Value.replace(u'\r\n', u'')
Language = GetLanguageCode(Language, self.IsCompatibleMode, self.File)
# Check the string name
if not self.IsCompatibleMode and Name != '':
MatchString = gIdentifierPattern.match(Name)
if MatchString is None:
EdkLogger.error('Unicode File Parser', FORMAT_INVALID, 'The string token name %s defined in UNI file %s contains the invalid character.' % (Name, self.File))
self.AddStringToList(Name, Language, Value)
continue
#
# Get string def information format 2 as below
#
# #string MY_STRING_1 #language eng "My first English string line 1"
# "My first English string line 2"
# #language spa "Mi segunda secuencia 1"
# "Mi segunda secuencia 2"
# #string MY_STRING_2 #language eng "My first English string line 1"
# "My first English string line 2"
# #string MY_STRING_2 #language spa "Mi segunda secuencia 1"
# "Mi segunda secuencia 2"
#
if Line.find(u'#string ') >= 0 and Line.find(u'#language ') >= 0:
StringItem = Line
for IndexJ in range(IndexI + 1, len(Lines)):
if Lines[IndexJ].find(u'#string ') >= 0 and Lines[IndexJ].find(u'#language ') >= 0:
IndexI = IndexJ
break
elif Lines[IndexJ].find(u'#string ') < 0 and Lines[IndexJ].find(u'#language ') >= 0:
StringItem = StringItem + Lines[IndexJ]
elif Lines[IndexJ].count(u'\"') >= 2:
StringItem = StringItem[ : StringItem.rfind(u'\"')] + Lines[IndexJ][Lines[IndexJ].find(u'\"') + len(u'\"') : ]
self.GetStringObject(StringItem)
continue
#
# Load multiple .uni files
#
def LoadUniFiles(self, FileList):
if len(FileList) > 0:
for File in FileList:
self.LoadUniFile(File)
#
# Add a string to list
#
def AddStringToList(self, Name, Language, Value, Token = None, Referenced = False, UseOtherLangDef = '', Index = -1):
for LangNameItem in self.LanguageDef:
if Language == LangNameItem[0]:
break
else:
EdkLogger.error('Unicode File Parser', FORMAT_NOT_SUPPORTED, "The language '%s' for %s is not defined in Unicode file %s." \
% (Language, Name, self.File))
if Language not in self.OrderedStringList:
self.OrderedStringList[Language] = []
self.OrderedStringDict[Language] = {}
IsAdded = True
if Name in self.OrderedStringDict[Language]:
IsAdded = False
if Value is not None:
ItemIndexInList = self.OrderedStringDict[Language][Name]
Item = self.OrderedStringList[Language][ItemIndexInList]
Item.UpdateValue(Value)
Item.UseOtherLangDef = ''
if IsAdded:
Token = len(self.OrderedStringList[Language])
if Index == -1:
self.OrderedStringList[Language].append(StringDefClassObject(Name, Value, Referenced, Token, UseOtherLangDef))
self.OrderedStringDict[Language][Name] = Token
for LangName in self.LanguageDef:
#
# New STRING token will be added into all language string lists.
# so that the unique STRING identifier is reserved for all languages in the package list.
#
if LangName[0] != Language:
if UseOtherLangDef != '':
OtherLangDef = UseOtherLangDef
else:
OtherLangDef = Language
self.OrderedStringList[LangName[0]].append(StringDefClassObject(Name, '', Referenced, Token, OtherLangDef))
self.OrderedStringDict[LangName[0]][Name] = len(self.OrderedStringList[LangName[0]]) - 1
else:
self.OrderedStringList[Language].insert(Index, StringDefClassObject(Name, Value, Referenced, Token, UseOtherLangDef))
self.OrderedStringDict[Language][Name] = Index
#
# Set the string as referenced
#
def SetStringReferenced(self, Name):
#
# String stoken are added in the same order in all language string lists.
# So, only update the status of string stoken in first language string list.
#
Lang = self.LanguageDef[0][0]
if Name in self.OrderedStringDict[Lang]:
ItemIndexInList = self.OrderedStringDict[Lang][Name]
Item = self.OrderedStringList[Lang][ItemIndexInList]
Item.Referenced = True
#
# Search the string in language definition by Name
#
def FindStringValue(self, Name, Lang):
if Name in self.OrderedStringDict[Lang]:
ItemIndexInList = self.OrderedStringDict[Lang][Name]
return self.OrderedStringList[Lang][ItemIndexInList]
return None
#
# Search the string in language definition by Token
#
def FindByToken(self, Token, Lang):
for Item in self.OrderedStringList[Lang]:
if Item.Token == Token:
return Item
return None
#
# Re-order strings and re-generate tokens
#
def ReToken(self):
#
# Retoken all language strings according to the status of string stoken in the first language string.
#
FirstLangName = self.LanguageDef[0][0]
# Convert the OrderedStringList to be OrderedStringListByToken in order to faciliate future search by token
for LangNameItem in self.LanguageDef:
self.OrderedStringListByToken[LangNameItem[0]] = {}
#
# Use small token for all referred string stoken.
#
RefToken = 0
for Index in range (0, len (self.OrderedStringList[FirstLangName])):
FirstLangItem = self.OrderedStringList[FirstLangName][Index]
if FirstLangItem.Referenced == True:
for LangNameItem in self.LanguageDef:
LangName = LangNameItem[0]
OtherLangItem = self.OrderedStringList[LangName][Index]
OtherLangItem.Referenced = True
OtherLangItem.Token = RefToken
self.OrderedStringListByToken[LangName][OtherLangItem.Token] = OtherLangItem
RefToken = RefToken + 1
#
# Use big token for all unreferred string stoken.
#
UnRefToken = 0
for Index in range (0, len (self.OrderedStringList[FirstLangName])):
FirstLangItem = self.OrderedStringList[FirstLangName][Index]
if FirstLangItem.Referenced == False:
for LangNameItem in self.LanguageDef:
LangName = LangNameItem[0]
OtherLangItem = self.OrderedStringList[LangName][Index]
OtherLangItem.Token = RefToken + UnRefToken
self.OrderedStringListByToken[LangName][OtherLangItem.Token] = OtherLangItem
UnRefToken = UnRefToken + 1
#
# Show the instance itself
#
def ShowMe(self):
print(self.LanguageDef)
#print self.OrderedStringList
for Item in self.OrderedStringList:
print(Item)
for Member in self.OrderedStringList[Item]:
print(str(Member))
# This acts like the main() function for the script, unless it is 'import'ed into another
# script.
if __name__ == '__main__':
EdkLogger.Initialize()
EdkLogger.SetLevel(EdkLogger.DEBUG_0)
a = UniFileClassObject([PathClass("C:\\Edk\\Strings.uni"), PathClass("C:\\Edk\\Strings2.uni")])
a.ReToken()
a.ShowMe()
| [
"[email protected]"
] | |
94bb8b2a0fb2fd8136b0743980291df09b163012 | 850001831b1fcdd4d27e328b356fc34909ca2917 | /tests/test_map.py | 77237924f7d6561097ffea685bfbe60e67c465bc | [
"BSD-3-Clause"
] | permissive | yidiq7/pathos | b337353ccfe447866c46a4a784a7908c2f3fe31e | 7e4fef911dc0283e245189df4683eea65bfd90f0 | refs/heads/master | 2022-08-24T08:43:34.009115 | 2020-05-27T12:18:21 | 2020-05-27T12:18:21 | 267,310,390 | 0 | 0 | NOASSERTION | 2020-05-27T12:14:50 | 2020-05-27T12:14:47 | null | UTF-8 | Python | false | false | 2,170 | py | #!/usr/bin/env python
#
# Author: Mike McKerns (mmckerns @caltech and @uqfoundation)
# Copyright (c) 1997-2016 California Institute of Technology.
# Copyright (c) 2016-2020 The Uncertainty Quantification Foundation.
# License: 3-clause BSD. The full license text is available at:
# - https://github.com/uqfoundation/pathos/blob/master/LICENSE
import time
verbose = False
delay = 0.01
items = 100
def busy_add(x,y, delay=0.01):
import time
for n in range(x):
x += n
for n in range(y):
y -= n
time.sleep(delay)
return x + y
def timed_pool(pool, items=100, delay=0.1, verbose=False):
_x = range(-items//2,items//2,2)
_y = range(len(_x))
_d = [delay]*len(_x)
if verbose: print(pool)
start = time.time()
res = pool.map(busy_add, _x, _y, _d)
_t = time.time() - start
if verbose: print("time to queue: %s" % _t)
start = time.time()
_sol_ = list(res)
t_ = time.time() - start
if verbose: print("time to results: %s\n" % t_)
return _sol_
class BuiltinPool(object):
def map(self, *args):
return list(map(*args))
std = timed_pool(BuiltinPool(), items, delay=0, verbose=False)
def test_serial():
from pathos.pools import SerialPool as PS
pool = PS()
res = timed_pool(pool, items, delay, verbose)
assert res == std
def test_pp():
from pathos.pools import ParallelPool as PPP
pool = PPP(servers=('localhost:5653','localhost:2414'))
res = timed_pool(pool, items, delay, verbose)
assert res == std
def test_processing():
from pathos.pools import ProcessPool as MPP
pool = MPP()
res = timed_pool(pool, items, delay, verbose)
assert res == std
def test_threading():
from pathos.pools import ThreadPool as MTP
pool = MTP()
res = timed_pool(pool, items, delay, verbose)
assert res == std
if __name__ == '__main__':
if verbose:
print("CONFIG: delay = %s" % delay)
print("CONFIG: items = %s" % items)
print("")
from pathos.helpers import freeze_support, shutdown
freeze_support()
test_serial()
test_pp()
test_processing()
test_threading()
shutdown()
| [
"mmckerns@8bfda07e-5b16-0410-ab1d-fd04ec2748df"
] | mmckerns@8bfda07e-5b16-0410-ab1d-fd04ec2748df |
e93d618ef2a5f5ad993261c09a6a1b7b73293570 | 0fa1d839550f4bfb1d9d0860915770071422f2cd | /parrot.py | 51dd4bbc1ed740272deb7e105a164b4e9cb6f887 | [] | no_license | crystalDf/Python-Crash-Course-2nd-Edition-Chapter-07-Input | b996d5b5bfbf20be039ac2e2314e51d6a51545a1 | a8838fe405e4ce70e827a6ace98f3502b3a57f45 | refs/heads/master | 2023-06-10T08:12:07.675473 | 2021-06-20T14:45:01 | 2021-06-20T14:45:01 | 378,668,714 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 460 | py | message = input("Tell me something, and I will repeat it back to you: ")
print(message)
prompt = "\nTell me something, and I will repeat it back to you:"
prompt += "\nEnter 'quit' to end the program. "
message = ""
while message != 'quit':
message = input(prompt)
if message != 'quit':
print(message)
active = True
while active:
message = input(prompt)
if message == 'quit':
active = False
else:
print(message)
| [
"[email protected]"
] | |
e3cb34e969e398b08d9c43935908f7b26d4014f0 | 000a4b227d970cdc6c8db192f4437698cb782721 | /python/helpers/typeshed/stubs/stripe/stripe/api_resources/charge.pyi | 2e3467e67bc5e6b90113fd9988cf281a375bde2c | [
"Apache-2.0",
"MIT"
] | permissive | trinhanhngoc/intellij-community | 2eb2f66a2a3a9456e7a0c5e7be1eaba03c38815d | 1d4a962cfda308a73e0a7ef75186aaa4b15d1e17 | refs/heads/master | 2022-11-03T21:50:47.859675 | 2022-10-19T16:39:57 | 2022-10-19T23:25:35 | 205,765,945 | 1 | 0 | Apache-2.0 | 2019-09-02T02:55:15 | 2019-09-02T02:55:15 | null | UTF-8 | Python | false | false | 851 | pyi | from typing import Any
from stripe import api_requestor as api_requestor
from stripe.api_resources.abstract import (
CreateableAPIResource as CreateableAPIResource,
ListableAPIResource as ListableAPIResource,
UpdateableAPIResource as UpdateableAPIResource,
custom_method as custom_method,
)
class Charge(CreateableAPIResource, ListableAPIResource, UpdateableAPIResource):
OBJECT_NAME: str
def capture(self, idempotency_key: Any | None = ..., **params): ...
def refund(self, idempotency_key: Any | None = ..., **params): ...
def update_dispute(self, idempotency_key: Any | None = ..., **params): ...
def close_dispute(self, idempotency_key: Any | None = ..., **params): ...
def mark_as_fraudulent(self, idempotency_key: Any | None = ...): ...
def mark_as_safe(self, idempotency_key: Any | None = ...): ...
| [
"[email protected]"
] | |
37ed82c45df03e22c5d1a9edd666017218ee89f1 | c9500ad778b8521aaa85cb7fe3239989efaa4799 | /plugins/zscaler/icon_zscaler/util/helpers.py | 3a839a924b1fefd1411e0082e08af7540ce22557 | [
"MIT"
] | permissive | rapid7/insightconnect-plugins | 5a6465e720f114d71b1a82fe14e42e94db104a0b | 718d15ca36c57231bb89df0aebc53d0210db400c | refs/heads/master | 2023-09-01T09:21:27.143980 | 2023-08-31T10:25:36 | 2023-08-31T10:25:36 | 190,435,635 | 61 | 60 | MIT | 2023-09-14T08:47:37 | 2019-06-05T17:05:12 | Python | UTF-8 | Python | false | false | 4,440 | py | from insightconnect_plugin_runtime.exceptions import PluginException
from re import sub, match, split
from typing import Union, Any, Dict
from icon_zscaler.util.constants import Assistance, Cause
CAMEL_CASE_REGEX = r"\b[a-z0-9]+([A-Z][a-z]+[0-9]*)*\b"
PASCAL_CASE_REGEX = r"\b[A-Z][a-z]+[0-9]*([A-Z][a-z]+[0-9]*)*\b"
CAMEL_CASE_ACRONYM_REGEX = r"\b[a-z0-9]+([A-Z]+[0-9]*)*\b"
def clean_dict(dictionary: Dict[str, Any]) -> Dict[str, Any]:
cleaned_dict = dictionary.copy()
for key, value in dictionary.items():
if isinstance(value, dict):
cleaned_dict[key] = clean_dict(value)
if cleaned_dict[key] == {}:
del cleaned_dict[key]
elif value in [None, "", 0, [], {}]:
del cleaned_dict[key]
return cleaned_dict
def remove_password_from_result(dictionary: dict) -> dict:
return {key: value for key, value in dictionary.copy().items() if key != "password"}
def prepare_department(department_api_result: list, given_department_name: str) -> dict:
for department in department_api_result:
if department.get("name") == given_department_name:
return department
raise PluginException(
cause=Cause.DEPARTMENT_NOT_FOUND,
assistance=Assistance.VERIFY_INPUT,
)
def prepare_groups(groups_api_result: list, given_groups_names: list) -> list:
result_list = []
available_names = [item.get("name") for item in groups_api_result]
for name in given_groups_names:
if name not in available_names:
raise PluginException(
cause=Cause.GROUP_NOT_FOUND,
assistance=Assistance.VERIFY_INPUT,
)
for group in groups_api_result:
for name in given_groups_names:
if name == group.get("name"):
result_list.append(group)
return result_list
def to_camel_case(provided_string: str) -> str:
if match(CAMEL_CASE_REGEX, provided_string):
return provided_string
if match(PASCAL_CASE_REGEX, provided_string):
return provided_string[0].lower() + provided_string[1:]
if match(CAMEL_CASE_ACRONYM_REGEX, provided_string):
words = split(r"(?<=[a-z0-9])(?=[A-Z])|(?<=[A-Z0-9])(?=[a-z])", provided_string)
result = "".join([w.title() for w in words])
return result[0].lower() + result[1:]
init, *temp = provided_string.split("_")
result = "".join([init.lower(), *map(str.title, temp)])
return result
def convert_dict_keys_to_camel_case(to_modify: Union[dict, list]) -> Union[dict, list]:
if isinstance(to_modify, list):
return [convert_dict_keys_to_camel_case(element) for element in to_modify]
elif isinstance(to_modify, dict):
output_dict = {}
for key, value in to_modify.items():
output_dict[to_camel_case(key)] = convert_dict_keys_to_camel_case(value)
return output_dict
else:
return to_modify
def filter_dict_keys(dict_to_modify: dict, keys_to_keep: list) -> dict:
if not isinstance(dict_to_modify, dict):
return dict_to_modify
return {key: dict_to_modify.get(key) for key in keys_to_keep if key in dict_to_modify}
def find_custom_url_category_by_name(url_category_name: str, url_categories_list: list) -> dict:
if not url_categories_list or not url_category_name:
raise PluginException(
cause=Cause.CATEGORY_NOT_FOUND,
assistance=Assistance.VERIFY_INPUT,
)
url_category = list(
filter(lambda category: category.get("configuredName") == url_category_name, url_categories_list)
)
if url_category and url_category[0].get("id"):
return url_category[0]
else:
raise PluginException(
cause=Cause.CATEGORY_NOT_FOUND,
assistance=Assistance.VERIFY_INPUT,
)
def find_url_category_by_id(url_category_id: str, url_categories_list: str) -> dict:
if not url_categories_list or not url_category_id:
raise PluginException(
cause=Cause.CATEGORY_NOT_FOUND,
assistance=Assistance.VERIFY_INPUT,
)
url_category = list(filter(lambda category: category.get("id") == url_category_id, url_categories_list))
if url_category and url_category[0].get("id"):
return url_category[0]
else:
raise PluginException(
cause=Cause.CATEGORY_NOT_FOUND,
assistance=Assistance.VERIFY_INPUT,
)
| [
"[email protected]"
] | |
0292b72004bd85deca84805fc86f18693d557717 | 6fa7f99d3d3d9b177ef01ebf9a9da4982813b7d4 | /JFLADuABfkeoz8mqN_5.py | 418dc4c327c7b6b0b704d40cb3c93aa5c599e590 | [] | no_license | daniel-reich/ubiquitous-fiesta | 26e80f0082f8589e51d359ce7953117a3da7d38c | 9af2700dbe59284f5697e612491499841a6c126f | refs/heads/master | 2023-04-05T06:40:37.328213 | 2021-04-06T20:17:44 | 2021-04-06T20:17:44 | 355,318,759 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 386 | py |
class Person:
def __init__(self, name, age):
self.name = name
self.age = age
def compare_age(self, other):
modifier = ''
if self.age < other.age:
modifier = 'older than'
elif self.age == other.age:
modifier = 'the same age as'
else:
modifier = 'younger than'
return '{n} is {m} me.'.format(n = other.name, m = modifier)
| [
"[email protected]"
] | |
ca93607b79207cc78004efd8c339bc2ab7e9d567 | 6b2a8dd202fdce77c971c412717e305e1caaac51 | /solutions_5670465267826688_0/Python/yagao0o/dijkstra.py | 96ca68f0bdc39cf5943ae362656074c360209c95 | [] | no_license | alexandraback/datacollection | 0bc67a9ace00abbc843f4912562f3a064992e0e9 | 076a7bc7693f3abf07bfdbdac838cb4ef65ccfcf | refs/heads/master | 2021-01-24T18:27:24.417992 | 2017-05-23T09:23:38 | 2017-05-23T09:23:38 | 84,313,442 | 2 | 4 | null | null | null | null | UTF-8 | Python | false | false | 2,207 | py | # author: yagoa0o
# date : 2015/04/11
class Solution():
multi_square = {'1': {'1': '1', 'i': 'i', 'j': 'j', 'k': 'k'},
'i': {'1': 'i', 'i': '-1', 'j': 'k', 'k': '-j'},
'j': {'1': 'j', 'i': '-k', 'j': '-1', 'k': 'i'},
'k': {'1': 'k', 'i': 'j', 'j': '-i', 'k': '-1'}}
def get_result(self, input_file_name, output_file_name):
infile = open(input_file_name)
outfile = open(output_file_name, "w+")
total = int(infile.readline())
# main procedure
for i in range(total):
input_parms = infile.readline().split()
l = int(input_parms[0])
x = int(input_parms[1])
characters = infile.readline()
result = 'Yes'
if x % 4 != 0 and l > 1:
#count characters
cal_result = '1'
cal_string = characters[:l] * (x % 4 + 8) if x > 12 else characters[:l] * x
got_i = False
got_j = False
for char in cal_string:
cal_result = self.multiply(cal_result, char)
if (not got_i) and cal_result == 'i':
got_i = True
if (not got_j) and got_i and cal_result == 'k':
got_j = True
if cal_result == '-1' and got_i and got_j:
result = 'YES'
else:
result = 'NO'
else:
result = 'NO'
outfile.write('Case #' + str(i + 1) + ': ' + result + '\n')
infile.close()
outfile.close()
return False
def multiply(self, a, b):
is_negative = False
is_negative = is_negative != (a[0] == '-')
is_negative = is_negative != (b[0] == '-')
result = self.multi_square[a[-1]][b[-1]]
is_negative = is_negative != (result[0] == '-')
if not is_negative:
return result[-1]
else:
return '-' + result[-1]
solu = Solution()
file_name = 'C-small-attempt2'
solu.get_result(file_name + '.in', file_name + '.out')
| [
"[email protected]"
] | |
9b3c43e2159eccae5ed0ba80f67a626831e04c62 | 722d8f2aa69095dbdbe32ecdeebb4bcf20e2ea3c | /tests/test_issue10_17.py | e54ddd56630de1e5e811d12e7ec3f3da0d804333 | [] | permissive | clach04/pyqrcodeNG | 1bad85bea9c2a5ca9bcda8849e35af51f8e394f3 | 8033a915eca1946537002b8b271ea2cddb4e004b | refs/heads/master | 2022-04-23T00:18:36.478138 | 2020-01-21T22:28:44 | 2020-01-21T22:28:44 | 259,402,644 | 0 | 0 | BSD-3-Clause | 2020-04-27T17:24:36 | 2020-04-27T17:24:35 | null | UTF-8 | Python | false | false | 424 | py | # -*- coding: utf-8 -*-
"""\
Tests against <https://github.com/mnooner256/pyqrcode/issues/17> and
<https://github.com/heuer/pyqrcode/issues/10>
Unicode issues.
"""
from __future__ import unicode_literals
import pyqrcodeng as pyqrcode
def test_issue_10_17():
qr = pyqrcode.create('John’s Pizza')
assert qr
assert 'binary' == qr.mode
if __name__ == '__main__':
import pytest
pytest.main([__file__])
| [
"[email protected]"
] | |
9148b220bb576626f27c0f2cfb3cb25ebbcd7139 | ad13583673551857615498b9605d9dcab63bb2c3 | /output/models/ms_data/datatypes/facets/byte/byte_max_inclusive001_xsd/__init__.py | 0444a6966ba5abae09b921e38485930982799bb6 | [
"MIT"
] | permissive | tefra/xsdata-w3c-tests | 397180205a735b06170aa188f1f39451d2089815 | 081d0908382a0e0b29c8ee9caca6f1c0e36dd6db | refs/heads/main | 2023-08-03T04:25:37.841917 | 2023-07-29T17:10:13 | 2023-07-30T12:11:13 | 239,622,251 | 2 | 0 | MIT | 2023-07-25T14:19:04 | 2020-02-10T21:59:47 | Python | UTF-8 | Python | false | false | 173 | py | from output.models.ms_data.datatypes.facets.byte.byte_max_inclusive001_xsd.byte_max_inclusive001 import (
FooType,
Test,
)
__all__ = [
"FooType",
"Test",
]
| [
"[email protected]"
] | |
25a420ee9e5512309aafd20ed676820b038209ea | b86608b6de44642ed29cd88bba4acbbdd31a0b04 | /tools/agile-machine-learning-api/codes/trainer/launch_demo.py | 8bd90b27237627cf0a348cdc757db624b062bda7 | [
"Apache-2.0"
] | permissive | MCRen88/professional-services | a514a926dd23e3c4ac6dadb656faed22c3d91d5d | d7bc3b194159ffdb149c9507890bb1fbae7a8d88 | refs/heads/master | 2020-12-15T16:38:17.860940 | 2020-01-06T19:29:47 | 2020-01-06T19:29:47 | 235,181,173 | 1 | 0 | Apache-2.0 | 2020-01-20T19:26:15 | 2020-01-20T19:26:14 | null | UTF-8 | Python | false | false | 21,978 | py | # Copyright 2019 Google LLC
#
# 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.
"""End to End script draft."""
import argparse
import ast
import os
import time
import numpy as np
import six
import tensorflow as tf
from tensorflow.contrib.training.python.training import hparam
from input_pipeline_dask import InputReader, BasicStats, DatasetInput
from models import CannedModel, CustomModel
from utils.metric_utils import mean_acc, mar, my_auc, rmse
from utils.optimizer_utils import Optimizer
class Config(object):
"""
Creates a run config object for training an estimator.
Object to be initialized using default parameters or
can be parsed by the user.
"""
def __init__(
self,
model_dir=None,
tf_random_seed=None,
save_summary_steps=100,
save_checkpoints_steps=None,
save_checkpoints_secs=120,
session_config=None,
keep_checkpoint_max=5,
keep_checkpoint_every_n_hours=10000,
log_step_count_steps=100,
train_distribute=None):
"""Initializes the config object.
Arguments:
model_dir : string, directory where the checkpoints are stored
tf_random_seed : integer, seed to set for random initialization
save_summary_steps : integer, number of global steps to save summaries
save_checkpoints_steps ; integer, number of global steps to save checkpoints
save_checkpoints_secs : integer, number of seconds to save checkpoints
session_config : object, a config proto used to set session parameters
keep_checkpoint_max : integer, maximum number of checkpoints to be stored
keep_checkpoint_every_n_hours : integer, frequency of saving checkpoints
log_step_count_steps : integer, frequency of steps to log information
train_distribute : tf.distribute.Strategy object, distribution strategy for training
"""
self.model_dir = model_dir
self.tf_random_seed = tf_random_seed
self.save_summary_steps = save_summary_steps
self.save_checkpoints_steps = save_checkpoints_steps
self.save_checkpoints_secs = save_checkpoints_secs
self.session_config = session_config
self.keep_checkpoint_max = keep_checkpoint_max
self.keep_checkpoint_every_n_hours = keep_checkpoint_every_n_hours
self.log_step_count_steps = log_step_count_steps
self.train_distribute = train_distribute
def set_config(self):
"""
Sets the Run config object with the parameters parsed by the user
"""
self.RunConfig = tf.estimator.RunConfig(
model_dir=self.model_dir,
tf_random_seed=self.tf_random_seed,
save_summary_steps=self.save_summary_steps,
session_config=self.session_config,
save_checkpoints_steps=self.save_checkpoints_steps,
save_checkpoints_secs=self.save_checkpoints_secs,
keep_checkpoint_max=self.keep_checkpoint_max,
keep_checkpoint_every_n_hours=self.keep_checkpoint_every_n_hours,
log_step_count_steps=self.log_step_count_steps,
train_distribute=self.train_distribute)
def get_config(self):
"""
Get Config object with parameters parsed by the user
Returns: tf.estimator.RunConfig object for estimator training
"""
return self.RunConfig
def get_is_chief(self):
"""
Get _is_chief boolean from RunConfig object
Returns: tf.estimator.RunConfig object for estimator training
"""
return self.RunConfig._is_chief
def prep_input(
csv_path,
task_type,
target_var,
na_values,
column_names,
to_drop,
gcs_path,
data_type,
name):
"""
Preprocessing function for train and eval datasets.
Arguments:
csv_path : str, path of the csv file
task_type : string, ML task at hand, following options are expected
[classification, regression, clustering]
target_var : string, Name of the dependent/target variable
na_values : string, String by which the na values are represented in the data
column_names : string, Names of the columns passed in a text file
to_drop : list, Any redundant columns which can be dropped
gcs_path : boolean, Whether the csv is stored on google cloud storage
data_type : dict, dictionary containing the data type of all columns in format
{'a': 'float', 'b': 'object', 'c': 'int' }
name : str, name of the data being based [train, eval]
Returns:
df : dask.DataFrame object, dataframe containing cleaned data of the passed csv file
cols : list, list containing column names of the data
defaults : list, list containing defaults of the columns
mapped : dict, dictionary containing vocabulary of the categorical columns
mean : pandas.Series, pandas series containing mean values of continous columns
std_dev : pandas.Series, pandas series containing standard deviation values of continous columns
"""
inp = InputReader(
csv_path=csv_path,
task_type=task_type,
target_var=target_var,
na_values=na_values,
column_names=column_names,
to_drop=to_drop,
gcs_path=gcs_path,
data_type=data_type)
df, cols = inp.parse_csv_wrap()
stats = BasicStats()
df, mean, std_dev, defaults = stats.clean_data(
df=df,
target_var=inp.target_var,
task_type=task_type,
name=name)
mapped = stats.find_vocab(df=df)
mapped.pop(inp.target_var)
return df, cols, defaults, mapped, mean, std_dev
def create_deep_cols(feat_cols, name):
"""Creates embedding and indicator columns for canned DNNclassifier.
Arguments:
feat_cols : list, A list of feature column objects.
name : string, name of the task in hand
Returns:
A list of feature column objects.
"""
deep_cols = None
if name not in ['linearclassifier', 'linearregressor',
'polynomialclassifier', 'polynomialregressor']:
deep_cols = list()
for i in feat_cols:
if i.dtype == 'string':
i = tf.feature_column.indicator_column(i)
deep_cols.append(i)
return deep_cols
def none_or_str(value):
"""
Creates a nonetype argument from command line.
Arguments:
value : The keyword argument from command line
Returns:
None if the string none is found
"""
if value == 'None':
return None
return value
def convert_to_list(value):
"""
Creates a list argument from command line.
Arguments:
value : The keyword argument from command line
Returns:
None if the string none is found
list if the string is space seperated values is found
"""
if value == 'None':
return None
return value.split(' ')
def convert_to_dict(value):
"""
Creates a dict argument from command line.
Arguments:
value : The keyword argument from command line
Returns:
None if the string none is found
dict if the string is space seperated values is found
"""
if value == 'None':
return None
return ast.literal_eval(value)
def run_experiment(hparams):
"""
Arguments:
hparams : tf.contrib.training.HParams object, contains all the arguments
as a set of key value pairs
Sets up the experiment to be launched on cloud machine learning engine
"""
a = time.time()
_, csv_cols, csv_defaults, mapped, mean, std_dev = prep_input(
csv_path=hparams.train_csv_path,
task_type=hparams.task_type,
target_var=hparams.target_var,
na_values=hparams.na_values,
column_names=hparams.column_names,
to_drop=hparams.to_drop,
gcs_path=hparams.gcs_path,
data_type=hparams.data_type,
name='train')
_, _, _, _, _, _ = prep_input(
csv_path=hparams.eval_csv_path,
task_type=hparams.task_type,
target_var=hparams.target_var,
na_values=hparams.na_values,
column_names=hparams.column_names,
to_drop=hparams.to_drop,
gcs_path=hparams.gcs_path,
data_type=hparams.data_type,
name='eval')
data = DatasetInput(
num_epochs=hparams.num_epochs,
batch_size=hparams.batch_size,
buffer_size=hparams.buffer_size,
csv_defaults=csv_defaults,
csv_cols=csv_cols,
target_var=hparams.target_var,
task_type=hparams.task_type,
condition=hparams.condition)
feature_cols = data.create_feature_columns_wrap(
dictionary=mapped,
mean=mean,
std_dev=std_dev)
b = time.time()
tf.logging.info('Parse time is : %s', b - a)
if hparams.name == 'kmeanscluster':
def train_input():
return data.kmeans_input_fn('train')
def eval_input():
return data.kmeans_input_fn('eval')
else:
def train_input():
return data.input_fn('train')
def eval_input():
return data.input_fn('eval')
def json_serving_input_fn():
"""
Build the serving inputs.
Returns: Serving input function for JSON data
"""
inputs = {}
for feat in feature_cols:
inputs[feat.name] = tf.placeholder(
shape=[None], dtype=feat.dtype, name=feat.name)
return tf.estimator.export.ServingInputReceiver(inputs, inputs)
def parse_csv(rows_string_tensor):
"""
Takes the string input tensor and returns a dict of rank-2 tensors.
Arguments:
rows_string_tensor : tf.Tensor object, Tensor of the prediction datapoint
Returns:
features : tensor objects of features for inference
"""
columns = tf.decode_csv(
rows_string_tensor, record_defaults=csv_defaults)
features = dict(zip(csv_cols, columns))
for key, _ in six.iteritems(features):
features[key] = tf.expand_dims(features[key], -1)
return features
def csv_serving_input_fn():
"""
Build the serving inputs.
Returns: Serving input function for CSV data
"""
csv_row = tf.placeholder(
shape=[None],
dtype=tf.string)
features = parse_csv(rows_string_tensor=csv_row)
return tf.estimator.export.ServingInputReceiver(
features,
{'csv_row': csv_row})
serving_functions = {
'JSON': json_serving_input_fn,
'CSV': csv_serving_input_fn
}
config_obj = Config(
model_dir=hparams.job_dir,
tf_random_seed=hparams.seed,
save_summary_steps=hparams.save_summary_steps,
session_config=None,
save_checkpoints_secs=hparams.save_checkpoints_secs,
save_checkpoints_steps=hparams.save_checkpoints_steps,
keep_checkpoint_max=hparams.keep_checkpoint_max,
keep_checkpoint_every_n_hours=hparams.keep_checkpoint_every_n_hours,
log_step_count_steps=hparams.log_step_count_steps,
train_distribute=hparams.distribute_strategy)
config_obj.set_config()
config = config_obj.get_config()
opt = Optimizer()
def linear_optimizer():
return opt.set_opt_wrap(
hparams.lin_opt,
hparams.learning_rate,
hparams.lr_rate_decay)
def deep_optimizer():
return opt.set_opt_wrap(
hparams.deep_opt,
hparams.learning_rate,
hparams.lr_rate_decay)
def poly_optimizer():
return opt.set_opt_wrap(
hparams.poly_opt,
hparams.learning_rate,
hparams.lr_rate_decay)
deep_cols = create_deep_cols(feature_cols, hparams.name)
hidden_units = [hparams.hidden_units]
feature_names = list(csv_cols)
feature_names.remove(hparams.target_var)
if hparams.name not in ['polynomialclassifier', 'polynomialregressor']:
model = CannedModel(
model_name=hparams.name,
feature_columns=feature_cols,
deep_columns=deep_cols,
hidden_units=hidden_units,
n_classes=hparams.n_classes,
linear_optimizer=linear_optimizer,
dnn_optimizer=deep_optimizer,
activation_fn=hparams.activation_fn,
dropout=hparams.dropout,
batch_norm=hparams.batch_norm,
config=config)
else:
model = CustomModel(
model_name=hparams.name,
batch_size=hparams.batch_size,
optimizer=poly_optimizer,
model_dir=hparams.job_dir,
config=config,
feature_names=feature_names,
learning_rate=hparams.learning_rate)
def mean_acc_metric(labels, predictions):
"""
Defining mean per class accuracy metric
Arguments:
labels : labels of the data
predictions : prediction of the model
Returns: function defining mean per class accuracy metric
"""
return mean_acc(labels, predictions, hparams.n_classes)
estimator = model.build_model()
if data.task_type == 'classification' and hparams.n_classes == 2:
estimator = tf.contrib.estimator.add_metrics(estimator, my_auc)
elif hparams.n_classes > 2:
estimator = tf.contrib.estimator.add_metrics(
estimator, mean_acc_metric)
else:
estimator = tf.contrib.estimator.add_metrics(estimator, rmse)
estimator = tf.contrib.estimator.add_metrics(estimator, mar)
if hparams.early_stopping:
old_loss = np.inf
for _ in range(hparams.eval_times):
estimator.train(input_fn=train_input,
steps=hparams.train_steps // hparams.eval_times)
output = estimator.evaluate(
input_fn=eval_input, steps=hparams.eval_steps)
loss = output['loss']
if loss >= old_loss:
tf.logging.info(
'EARLY STOPPING....... LOSS SATURATED AT : %s', loss)
break
else:
old_loss = loss
else:
train_spec = tf.estimator.TrainSpec(
train_input,
hparams.train_steps)
eval_spec = tf.estimator.EvalSpec(
eval_input,
hparams.eval_steps,
throttle_secs=hparams.eval_freq)
tf.estimator.train_and_evaluate(estimator, train_spec, eval_spec)
if config_obj.get_is_chief():
estimator.export_savedmodel(
hparams.export_dir,
serving_functions[hparams.export_format],
assets_extra={
'lime_explainer': '/tmp/lime_explainer'},
strip_default_attrs=False)
if __name__ == '__main__':
parser = argparse.ArgumentParser()
parser.add_argument(
'--train_csv_path',
type=convert_to_list,
help='CSV file path[s] either on local or GCS',
required=True)
parser.add_argument(
'--eval_csv_path',
help='CSV file path for model eval',
required=True)
parser.add_argument(
'--task_type',
help='Machine learning task at hand',
required=True)
parser.add_argument(
'--target_var',
help='Name of the target variable',
required=True)
parser.add_argument(
'--data_type',
help='schema of the input data',
type=convert_to_dict,
default=None)
parser.add_argument(
'--column_names',
type=none_or_str,
help='text file containing column names',
default=None)
parser.add_argument(
'--num_clusters',
type=int,
help='number of clusters',
default=3)
parser.add_argument(
'--to_drop',
type=convert_to_list,
help='list of columns that can be dropped',
default=None)
parser.add_argument(
'--na_values',
type=none_or_str,
help='string by which na values are represented',
default=None)
parser.add_argument(
'--condition',
type=none_or_str,
help='logic to turn the target variable into levels',
default=None)
parser.add_argument(
'--gcs_path',
help='Whether the csv is on GCS',
default=True)
parser.add_argument(
'--num_epochs',
help='number of epochs for dataset to repeat',
type=int,
default=50)
parser.add_argument(
'--batch_size',
help='batch size to train and eval the model',
type=int,
default=64)
parser.add_argument(
'--buffer_size',
help='buffer size for prefetch',
type=int,
default=64)
parser.add_argument(
'--n_classes',
help='number of levels in target var',
default=2,
type=int)
parser.add_argument(
'--train_steps',
help='number of steps to train the model',
type=int,
default=50000)
parser.add_argument(
'--eval_steps',
help='number of eval batches to run',
type=int,
default=100)
parser.add_argument(
'--job-dir',
help='directory to store model checkpoints',
type=str,
default='/temp')
parser.add_argument(
'--seed',
help='seed to set for random initialization',
default=None)
parser.add_argument(
'--save_summary_steps',
help='number of global steps to save summaries',
type=int,
default=100)
parser.add_argument(
'--save_checkpoints_steps',
help='number of global steps to save checkpoints',
type=int,
default=500)
parser.add_argument(
'--save_checkpoints_secs',
help='number of seconds after which to save checkpoints',
type=int,
default=None)
parser.add_argument(
'--keep_checkpoint_max',
help='max number of checkpoints to save',
type=int,
default=5)
parser.add_argument(
'--keep_checkpoint_every_n_hours',
help='save checkpoint frequency',
type=int,
default=10000)
parser.add_argument(
'--log_step_count_steps',
help='how frequently to log information',
type=int,
default=100)
parser.add_argument(
'--distribute_strategy',
help='distribution strategy to use for training',
type=none_or_str,
default=None)
# model params
parser.add_argument(
'--name',
help='name of the model you want to use',
required=True,
choices=['linearclassifier', 'linearregressor',
'dnnclassifier', 'dnnregresssor', 'combinedclassifier',
'combinedregressor', 'kmeanscluster'])
parser.add_argument(
'--hidden_units',
help='number of hidden units in each layer of dnn',
type=int,
default=64
)
parser.add_argument(
'--num_layers',
help='number of hidden layers',
type=int,
default=2)
parser.add_argument(
'--lin_opt',
help='optimizer to use for linear models',
type=str,
default='ftrl')
parser.add_argument(
'--deep_opt',
help='optimizer to use for NN models',
type=str,
default='adam')
parser.add_argument(
'--lr_rate_decay',
help='whether to use learninf=g rate decay',
type=bool,
default=False)
parser.add_argument(
'--activation_fn',
help='activation fn to use for hidden units',
default=tf.nn.relu)
parser.add_argument(
'--dropout',
help='dropout rate for hidden layers',
default=None)
parser.add_argument(
'--batch_norm',
help='whether to use batch norm for hidden layers',
default=False)
parser.add_argument(
'--learning_rate',
help='learning rate for model training',
type=float,
default=0.001)
parser.add_argument(
'--eval_freq',
help='frequency in seconds to trigger evaluation run',
type=int,
default=30)
parser.add_argument(
'--eval_times',
help='early stopping criteria',
type=int,
default=10)
parser.add_argument(
'--early_stopping',
help='how to define when model training should end',
type=bool,
default=False)
parser.add_argument(
'--export_dir',
help='Directory for storing the frozen graph',
type=str,
required=True)
parser.add_argument(
'--export_format',
help='Format for the serving inputs',
type=str,
default='JSON')
parser.add_argument(
'--logging_level',
help='Format for the serving inputs',
type=str,
default='INFO',
choices=['INFO', 'DEBUG', 'ERROR', 'FATAL', 'WARN'])
args = parser.parse_args()
hparams = hparam.HParams(**args.__dict__)
tf.logging.set_verbosity(hparams.logging_level)
run_experiment(hparams)
os.system('rm -r /tmp/*.csv')
| [
"[email protected]"
] | |
274befd704407b98b615b5efb59b5c392ba2d396 | 82b946da326148a3c1c1f687f96c0da165bb2c15 | /sdk/python/pulumi_azure_native/sql/outbound_firewall_rule.py | 5a8309fc8ccaf95892a167a53395faad58b8bd6a | [
"Apache-2.0",
"BSD-3-Clause"
] | permissive | morrell/pulumi-azure-native | 3916e978382366607f3df0a669f24cb16293ff5e | cd3ba4b9cb08c5e1df7674c1c71695b80e443f08 | refs/heads/master | 2023-06-20T19:37:05.414924 | 2021-07-19T20:57:53 | 2021-07-19T20:57:53 | 387,815,163 | 0 | 0 | Apache-2.0 | 2021-07-20T14:18:29 | 2021-07-20T14:18:28 | null | UTF-8 | Python | false | false | 7,974 | py | # coding=utf-8
# *** WARNING: this file was generated by the Pulumi SDK Generator. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union, overload
from .. import _utilities
__all__ = ['OutboundFirewallRuleArgs', 'OutboundFirewallRule']
@pulumi.input_type
class OutboundFirewallRuleArgs:
def __init__(__self__, *,
resource_group_name: pulumi.Input[str],
server_name: pulumi.Input[str],
outbound_rule_fqdn: Optional[pulumi.Input[str]] = None):
"""
The set of arguments for constructing a OutboundFirewallRule resource.
:param pulumi.Input[str] resource_group_name: The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
:param pulumi.Input[str] server_name: The name of the server.
"""
pulumi.set(__self__, "resource_group_name", resource_group_name)
pulumi.set(__self__, "server_name", server_name)
if outbound_rule_fqdn is not None:
pulumi.set(__self__, "outbound_rule_fqdn", outbound_rule_fqdn)
@property
@pulumi.getter(name="resourceGroupName")
def resource_group_name(self) -> pulumi.Input[str]:
"""
The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
"""
return pulumi.get(self, "resource_group_name")
@resource_group_name.setter
def resource_group_name(self, value: pulumi.Input[str]):
pulumi.set(self, "resource_group_name", value)
@property
@pulumi.getter(name="serverName")
def server_name(self) -> pulumi.Input[str]:
"""
The name of the server.
"""
return pulumi.get(self, "server_name")
@server_name.setter
def server_name(self, value: pulumi.Input[str]):
pulumi.set(self, "server_name", value)
@property
@pulumi.getter(name="outboundRuleFqdn")
def outbound_rule_fqdn(self) -> Optional[pulumi.Input[str]]:
return pulumi.get(self, "outbound_rule_fqdn")
@outbound_rule_fqdn.setter
def outbound_rule_fqdn(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "outbound_rule_fqdn", value)
class OutboundFirewallRule(pulumi.CustomResource):
@overload
def __init__(__self__,
resource_name: str,
opts: Optional[pulumi.ResourceOptions] = None,
outbound_rule_fqdn: Optional[pulumi.Input[str]] = None,
resource_group_name: Optional[pulumi.Input[str]] = None,
server_name: Optional[pulumi.Input[str]] = None,
__props__=None):
"""
An Azure SQL DB Server Outbound Firewall Rule.
API Version: 2021-02-01-preview.
:param str resource_name: The name of the resource.
:param pulumi.ResourceOptions opts: Options for the resource.
:param pulumi.Input[str] resource_group_name: The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
:param pulumi.Input[str] server_name: The name of the server.
"""
...
@overload
def __init__(__self__,
resource_name: str,
args: OutboundFirewallRuleArgs,
opts: Optional[pulumi.ResourceOptions] = None):
"""
An Azure SQL DB Server Outbound Firewall Rule.
API Version: 2021-02-01-preview.
:param str resource_name: The name of the resource.
:param OutboundFirewallRuleArgs args: The arguments to use to populate this resource's properties.
:param pulumi.ResourceOptions opts: Options for the resource.
"""
...
def __init__(__self__, resource_name: str, *args, **kwargs):
resource_args, opts = _utilities.get_resource_args_opts(OutboundFirewallRuleArgs, pulumi.ResourceOptions, *args, **kwargs)
if resource_args is not None:
__self__._internal_init(resource_name, opts, **resource_args.__dict__)
else:
__self__._internal_init(resource_name, *args, **kwargs)
def _internal_init(__self__,
resource_name: str,
opts: Optional[pulumi.ResourceOptions] = None,
outbound_rule_fqdn: Optional[pulumi.Input[str]] = None,
resource_group_name: Optional[pulumi.Input[str]] = None,
server_name: Optional[pulumi.Input[str]] = None,
__props__=None):
if opts is None:
opts = pulumi.ResourceOptions()
if not isinstance(opts, pulumi.ResourceOptions):
raise TypeError('Expected resource options to be a ResourceOptions instance')
if opts.version is None:
opts.version = _utilities.get_version()
if opts.id is None:
if __props__ is not None:
raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource')
__props__ = OutboundFirewallRuleArgs.__new__(OutboundFirewallRuleArgs)
__props__.__dict__["outbound_rule_fqdn"] = outbound_rule_fqdn
if resource_group_name is None and not opts.urn:
raise TypeError("Missing required property 'resource_group_name'")
__props__.__dict__["resource_group_name"] = resource_group_name
if server_name is None and not opts.urn:
raise TypeError("Missing required property 'server_name'")
__props__.__dict__["server_name"] = server_name
__props__.__dict__["name"] = None
__props__.__dict__["provisioning_state"] = None
__props__.__dict__["type"] = None
alias_opts = pulumi.ResourceOptions(aliases=[pulumi.Alias(type_="azure-nextgen:sql:OutboundFirewallRule"), pulumi.Alias(type_="azure-native:sql/v20210201preview:OutboundFirewallRule"), pulumi.Alias(type_="azure-nextgen:sql/v20210201preview:OutboundFirewallRule")])
opts = pulumi.ResourceOptions.merge(opts, alias_opts)
super(OutboundFirewallRule, __self__).__init__(
'azure-native:sql:OutboundFirewallRule',
resource_name,
__props__,
opts)
@staticmethod
def get(resource_name: str,
id: pulumi.Input[str],
opts: Optional[pulumi.ResourceOptions] = None) -> 'OutboundFirewallRule':
"""
Get an existing OutboundFirewallRule resource's state with the given name, id, and optional extra
properties used to qualify the lookup.
:param str resource_name: The unique name of the resulting resource.
:param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
:param pulumi.ResourceOptions opts: Options for the resource.
"""
opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
__props__ = OutboundFirewallRuleArgs.__new__(OutboundFirewallRuleArgs)
__props__.__dict__["name"] = None
__props__.__dict__["provisioning_state"] = None
__props__.__dict__["type"] = None
return OutboundFirewallRule(resource_name, opts=opts, __props__=__props__)
@property
@pulumi.getter
def name(self) -> pulumi.Output[str]:
"""
Resource name.
"""
return pulumi.get(self, "name")
@property
@pulumi.getter(name="provisioningState")
def provisioning_state(self) -> pulumi.Output[str]:
"""
The state of the outbound rule.
"""
return pulumi.get(self, "provisioning_state")
@property
@pulumi.getter
def type(self) -> pulumi.Output[str]:
"""
Resource type.
"""
return pulumi.get(self, "type")
| [
"[email protected]"
] | |
fbc8f567fc64ca0f8626efc764da3297fb9e5918 | b5a9d42f7ea5e26cd82b3be2b26c324d5da79ba1 | /tensorflow/contrib/tensor_forest/hybrid/python/models/stochastic_soft_decisions_to_data_then_nn.py | e916a8734c524c83772576e38418e6667fa6b0c9 | [
"Apache-2.0"
] | permissive | uve/tensorflow | e48cb29f39ed24ee27e81afd1687960682e1fbef | e08079463bf43e5963acc41da1f57e95603f8080 | refs/heads/master | 2020-11-29T11:30:40.391232 | 2020-01-11T13:43:10 | 2020-01-11T13:43:10 | 230,088,347 | 0 | 0 | Apache-2.0 | 2019-12-25T10:49:15 | 2019-12-25T10:49:14 | null | UTF-8 | Python | false | false | 1,954 | py | # Copyright 2016 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.
# ==============================================================================
"""A hybrid model that samples paths when training."""
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
from tensorflow.contrib.tensor_forest.hybrid.python.layers import decisions_to_data
from tensorflow.contrib.tensor_forest.hybrid.python.layers import fully_connected
from tensorflow.contrib.tensor_forest.hybrid.python.models import hard_decisions_to_data_then_nn
from tensorflow.python.training import adagrad
class StochasticSoftDecisionsToDataThenNN(
hard_decisions_to_data_then_nn.HardDecisionsToDataThenNN):
"""A hybrid model that samples paths when training."""
def __init__(self,
params,
device_assigner=None,
optimizer_class=adagrad.AdagradOptimizer,
**kwargs):
super(StochasticSoftDecisionsToDataThenNN, self).__init__(
params,
device_assigner=device_assigner,
optimizer_class=optimizer_class,
**kwargs)
self.layers = [decisions_to_data.StochasticSoftDecisionsToDataLayer(
params, 0, device_assigner),
fully_connected.FullyConnectedLayer(
params, 1, device_assigner=device_assigner)]
| [
"[email protected]"
] | |
8095b9c0a7bae6822334409e1ce923939046e30c | 141b42d9d72636c869ff2ce7a2a9f7b9b24f508b | /myvenv/Lib/site-packages/cairosvg/colors.py | d77cb275f83cb564c24eb127821c4d38243acfbb | [
"BSD-3-Clause"
] | permissive | Fa67/saleor-shop | 105e1147e60396ddab6f006337436dcbf18e8fe1 | 76110349162c54c8bfcae61983bb59ba8fb0f778 | refs/heads/master | 2021-06-08T23:51:12.251457 | 2018-07-24T08:14:33 | 2018-07-24T08:14:33 | 168,561,915 | 1 | 0 | BSD-3-Clause | 2021-04-18T07:59:12 | 2019-01-31T17:00:39 | Python | UTF-8 | Python | false | false | 11,254 | py | # This file is part of CairoSVG
# Copyright © 2010-2015 Kozea
#
# 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 3 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 CairoSVG. If not, see <http://www.gnu.org/licenses/>.
"""
SVG colors.
"""
import re
COLORS = {
'aliceblue': (240 / 255, 248 / 255, 255 / 255, 1),
'antiquewhite': (250 / 255, 235 / 255, 215 / 255, 1),
'aqua': (0 / 255, 255 / 255, 255 / 255, 1),
'aquamarine': (127 / 255, 255 / 255, 212 / 255, 1),
'azure': (240 / 255, 255 / 255, 255 / 255, 1),
'beige': (245 / 255, 245 / 255, 220 / 255, 1),
'bisque': (255 / 255, 228 / 255, 196 / 255, 1),
'black': (0 / 255, 0 / 255, 0 / 255, 1),
'blanchedalmond': (255 / 255, 235 / 255, 205 / 255, 1),
'blue': (0 / 255, 0 / 255, 255 / 255, 1),
'blueviolet': (138 / 255, 43 / 255, 226 / 255, 1),
'brown': (165 / 255, 42 / 255, 42 / 255, 1),
'burlywood': (222 / 255, 184 / 255, 135 / 255, 1),
'cadetblue': (95 / 255, 158 / 255, 160 / 255, 1),
'chartreuse': (127 / 255, 255 / 255, 0 / 255, 1),
'chocolate': (210 / 255, 105 / 255, 30 / 255, 1),
'coral': (255 / 255, 127 / 255, 80 / 255, 1),
'cornflowerblue': (100 / 255, 149 / 255, 237 / 255, 1),
'cornsilk': (255 / 255, 248 / 255, 220 / 255, 1),
'crimson': (220 / 255, 20 / 255, 60 / 255, 1),
'cyan': (0 / 255, 255 / 255, 255 / 255, 1),
'darkblue': (0 / 255, 0 / 255, 139 / 255, 1),
'darkcyan': (0 / 255, 139 / 255, 139 / 255, 1),
'darkgoldenrod': (184 / 255, 134 / 255, 11 / 255, 1),
'darkgray': (169 / 255, 169 / 255, 169 / 255, 1),
'darkgreen': (0 / 255, 100 / 255, 0 / 255, 1),
'darkgrey': (169 / 255, 169 / 255, 169 / 255, 1),
'darkkhaki': (189 / 255, 183 / 255, 107 / 255, 1),
'darkmagenta': (139 / 255, 0 / 255, 139 / 255, 1),
'darkolivegreen': (85 / 255, 107 / 255, 47 / 255, 1),
'darkorange': (255 / 255, 140 / 255, 0 / 255, 1),
'darkorchid': (153 / 255, 50 / 255, 204 / 255, 1),
'darkred': (139 / 255, 0 / 255, 0 / 255, 1),
'darksalmon': (233 / 255, 150 / 255, 122 / 255, 1),
'darkseagreen': (143 / 255, 188 / 255, 143 / 255, 1),
'darkslateblue': (72 / 255, 61 / 255, 139 / 255, 1),
'darkslategray': (47 / 255, 79 / 255, 79 / 255, 1),
'darkslategrey': (47 / 255, 79 / 255, 79 / 255, 1),
'darkturquoise': (0 / 255, 206 / 255, 209 / 255, 1),
'darkviolet': (148 / 255, 0 / 255, 211 / 255, 1),
'deeppink': (255 / 255, 20 / 255, 147 / 255, 1),
'deepskyblue': (0 / 255, 191 / 255, 255 / 255, 1),
'dimgray': (105 / 255, 105 / 255, 105 / 255, 1),
'dimgrey': (105 / 255, 105 / 255, 105 / 255, 1),
'dodgerblue': (30 / 255, 144 / 255, 255 / 255, 1),
'firebrick': (178 / 255, 34 / 255, 34 / 255, 1),
'floralwhite': (255 / 255, 250 / 255, 240 / 255, 1),
'forestgreen': (34 / 255, 139 / 255, 34 / 255, 1),
'fuchsia': (255 / 255, 0 / 255, 255 / 255, 1),
'gainsboro': (220 / 255, 220 / 255, 220 / 255, 1),
'ghostwhite': (248 / 255, 248 / 255, 255 / 255, 1),
'gold': (255 / 255, 215 / 255, 0 / 255, 1),
'goldenrod': (218 / 255, 165 / 255, 32 / 255, 1),
'gray': (128 / 255, 128 / 255, 128 / 255, 1),
'grey': (128 / 255, 128 / 255, 128 / 255, 1),
'green': (0 / 255, 128 / 255, 0 / 255, 1),
'greenyellow': (173 / 255, 255 / 255, 47 / 255, 1),
'honeydew': (240 / 255, 255 / 255, 240 / 255, 1),
'hotpink': (255 / 255, 105 / 255, 180 / 255, 1),
'indianred': (205 / 255, 92 / 255, 92 / 255, 1),
'indigo': (75 / 255, 0 / 255, 130 / 255, 1),
'ivory': (255 / 255, 255 / 255, 240 / 255, 1),
'khaki': (240 / 255, 230 / 255, 140 / 255, 1),
'lavender': (230 / 255, 230 / 255, 250 / 255, 1),
'lavenderblush': (255 / 255, 240 / 255, 245 / 255, 1),
'lawngreen': (124 / 255, 252 / 255, 0 / 255, 1),
'lemonchiffon': (255 / 255, 250 / 255, 205 / 255, 1),
'lightblue': (173 / 255, 216 / 255, 230 / 255, 1),
'lightcoral': (240 / 255, 128 / 255, 128 / 255, 1),
'lightcyan': (224 / 255, 255 / 255, 255 / 255, 1),
'lightgoldenrodyellow': (250 / 255, 250 / 255, 210 / 255, 1),
'lightgray': (211 / 255, 211 / 255, 211 / 255, 1),
'lightgreen': (144 / 255, 238 / 255, 144 / 255, 1),
'lightgrey': (211 / 255, 211 / 255, 211 / 255, 1),
'lightpink': (255 / 255, 182 / 255, 193 / 255, 1),
'lightsalmon': (255 / 255, 160 / 255, 122 / 255, 1),
'lightseagreen': (32 / 255, 178 / 255, 170 / 255, 1),
'lightskyblue': (135 / 255, 206 / 255, 250 / 255, 1),
'lightslategray': (119 / 255, 136 / 255, 153 / 255, 1),
'lightslategrey': (119 / 255, 136 / 255, 153 / 255, 1),
'lightsteelblue': (176 / 255, 196 / 255, 222 / 255, 1),
'lightyellow': (255 / 255, 255 / 255, 224 / 255, 1),
'lime': (0 / 255, 255 / 255, 0 / 255, 1),
'limegreen': (50 / 255, 205 / 255, 50 / 255, 1),
'linen': (250 / 255, 240 / 255, 230 / 255, 1),
'magenta': (255 / 255, 0 / 255, 255 / 255, 1),
'maroon': (128 / 255, 0 / 255, 0 / 255, 1),
'mediumaquamarine': (102 / 255, 205 / 255, 170 / 255, 1),
'mediumblue': (0 / 255, 0 / 255, 205 / 255, 1),
'mediumorchid': (186 / 255, 85 / 255, 211 / 255, 1),
'mediumpurple': (147 / 255, 112 / 255, 219 / 255, 1),
'mediumseagreen': (60 / 255, 179 / 255, 113 / 255, 1),
'mediumslateblue': (123 / 255, 104 / 255, 238 / 255, 1),
'mediumspringgreen': (0 / 255, 250 / 255, 154 / 255, 1),
'mediumturquoise': (72 / 255, 209 / 255, 204 / 255, 1),
'mediumvioletred': (199 / 255, 21 / 255, 133 / 255, 1),
'midnightblue': (25 / 255, 25 / 255, 112 / 255, 1),
'mintcream': (245 / 255, 255 / 255, 250 / 255, 1),
'mistyrose': (255 / 255, 228 / 255, 225 / 255, 1),
'moccasin': (255 / 255, 228 / 255, 181 / 255, 1),
'navajowhite': (255 / 255, 222 / 255, 173 / 255, 1),
'navy': (0 / 255, 0 / 255, 128 / 255, 1),
'oldlace': (253 / 255, 245 / 255, 230 / 255, 1),
'olive': (128 / 255, 128 / 255, 0 / 255, 1),
'olivedrab': (107 / 255, 142 / 255, 35 / 255, 1),
'orange': (255 / 255, 165 / 255, 0 / 255, 1),
'orangered': (255 / 255, 69 / 255, 0 / 255, 1),
'orchid': (218 / 255, 112 / 255, 214 / 255, 1),
'palegoldenrod': (238 / 255, 232 / 255, 170 / 255, 1),
'palegreen': (152 / 255, 251 / 255, 152 / 255, 1),
'paleturquoise': (175 / 255, 238 / 255, 238 / 255, 1),
'palevioletred': (219 / 255, 112 / 255, 147 / 255, 1),
'papayawhip': (255 / 255, 239 / 255, 213 / 255, 1),
'peachpuff': (255 / 255, 218 / 255, 185 / 255, 1),
'peru': (205 / 255, 133 / 255, 63 / 255, 1),
'pink': (255 / 255, 192 / 255, 203 / 255, 1),
'plum': (221 / 255, 160 / 255, 221 / 255, 1),
'powderblue': (176 / 255, 224 / 255, 230 / 255, 1),
'purple': (128 / 255, 0 / 255, 128 / 255, 1),
'red': (255 / 255, 0 / 255, 0 / 255, 1),
'rosybrown': (188 / 255, 143 / 255, 143 / 255, 1),
'royalblue': (65 / 255, 105 / 255, 225 / 255, 1),
'saddlebrown': (139 / 255, 69 / 255, 19 / 255, 1),
'salmon': (250 / 255, 128 / 255, 114 / 255, 1),
'sandybrown': (244 / 255, 164 / 255, 96 / 255, 1),
'seagreen': (46 / 255, 139 / 255, 87 / 255, 1),
'seashell': (255 / 255, 245 / 255, 238 / 255, 1),
'sienna': (160 / 255, 82 / 255, 45 / 255, 1),
'silver': (192 / 255, 192 / 255, 192 / 255, 1),
'skyblue': (135 / 255, 206 / 255, 235 / 255, 1),
'slateblue': (106 / 255, 90 / 255, 205 / 255, 1),
'slategray': (112 / 255, 128 / 255, 144 / 255, 1),
'slategrey': (112 / 255, 128 / 255, 144 / 255, 1),
'snow': (255 / 255, 250 / 255, 250 / 255, 1),
'springgreen': (0 / 255, 255 / 255, 127 / 255, 1),
'steelblue': (70 / 255, 130 / 255, 180 / 255, 1),
'tan': (210 / 255, 180 / 255, 140 / 255, 1),
'teal': (0 / 255, 128 / 255, 128 / 255, 1),
'thistle': (216 / 255, 191 / 255, 216 / 255, 1),
'tomato': (255 / 255, 99 / 255, 71 / 255, 1),
'turquoise': (64 / 255, 224 / 255, 208 / 255, 1),
'violet': (238 / 255, 130 / 255, 238 / 255, 1),
'wheat': (245 / 255, 222 / 255, 179 / 255, 1),
'white': (255 / 255, 255 / 255, 255 / 255, 1),
'whitesmoke': (245 / 255, 245 / 255, 245 / 255, 1),
'yellow': (255 / 255, 255 / 255, 0 / 255, 1),
'yellowgreen': (154 / 255, 205 / 255, 50 / 255, 1),
'activeborder': (0, 0, 1, 1),
'activecaption': (0, 0, 1, 1),
'appworkspace': (1, 1, 1, 1),
'background': (1, 1, 1, 1),
'buttonface': (0, 0, 0, 1),
'buttonhighlight': (0.8, 0.8, 0.8, 1),
'buttonshadow': (0.2, 0.2, 0.2, 1),
'buttontext': (0, 0, 0, 1),
'captiontext': (0, 0, 0, 1),
'graytext': (0.2, 0.2, 0.2, 1),
'highlight': (0, 0, 1, 1),
'highlighttext': (0.8, 0.8, 0.8, 1),
'inactiveborder': (0.2, 0.2, 0.2, 1),
'inactivecaption': (0.8, 0.8, 0.8, 1),
'inactivecaptiontext': (0.2, 0.2, 0.2, 1),
'infobackground': (0.8, 0.8, 0.8, 1),
'infotext': (0, 0, 0, 1),
'menu': (0.8, 0.8, 0.8, 1),
'menutext': (0.2, 0.2, 0.2, 1),
'scrollbar': (0.8, 0.8, 0.8, 1),
'threeddarkshadow': (0.2, 0.2, 0.2, 1),
'threedface': (0.8, 0.8, 0.8, 1),
'threedhighlight': (1, 1, 1, 1),
'threedlightshadow': (0.2, 0.2, 0.2, 1),
'threedshadow': (0.2, 0.2, 0.2, 1),
'window': (0.8, 0.8, 0.8, 1),
'windowframe': (0.8, 0.8, 0.8, 1),
'windowtext': (0, 0, 0, 1),
'none': (0, 0, 0, 0),
'transparent': (0, 0, 0, 0),
}
RGBA = re.compile(r'rgba\([ \n\r\t]*(.+?)[ \n\r\t]*\)')
RGB = re.compile(r'rgb\([ \n\r\t]*(.+?)[ \n\r\t]*\)')
HEX_RRGGBB = re.compile('#[0-9a-f]{6}')
HEX_RGB = re.compile('#[0-9a-f]{3}')
def color(string, opacity=1):
"""Replace ``string`` representing a color by a RGBA tuple.
See http://www.w3.org/TR/SVG/types.html#DataTypeColor
"""
if not string:
return (0, 0, 0, 0)
string = string.strip().lower()
if string in COLORS:
r, g, b, a = COLORS[string]
return (r, g, b, a * opacity)
match = RGBA.search(string)
if match:
r, g, b, a = tuple(
float(i.strip(' %')) / 100 if '%' in i else float(i) / 255
for i in match.group(1).split(','))
return (r, g, b, a * 255 * opacity)
match = RGB.search(string)
if match:
r, g, b = tuple(
float(i.strip(' %')) / 100 if '%' in i else float(i) / 255
for i in match.group(1).split(','))
return (r, g, b, opacity)
match = HEX_RRGGBB.search(string)
if match:
plain_color = tuple(
int(value, 16) / 255 for value in (
string[1:3], string[3:5], string[5:7]))
return plain_color + (opacity,)
match = HEX_RGB.search(string)
if match:
plain_color = tuple(
int(value, 16) / 15 for value in (
string[1], string[2], string[3]))
return plain_color + (opacity,)
return (0, 0, 0, 1)
| [
"[email protected]"
] | |
290d3ea467c81eb4adcf2a72c26529c2a9e07eb4 | 1a2ca64839723ede3134a0781128b0dc0b5f6ab8 | /ExtractFeatures/Data/jsinix/Problem10.py | 8f8dd302f291fb441406f1d44ec06aae2c72032e | [] | no_license | vivekaxl/LexisNexis | bc8ee0b92ae95a200c41bd077082212243ee248c | 5fa3a818c3d41bd9c3eb25122e1d376c8910269c | refs/heads/master | 2021-01-13T01:44:41.814348 | 2015-07-08T15:42:35 | 2015-07-08T15:42:35 | 29,705,371 | 9 | 3 | null | null | null | null | UTF-8 | Python | false | false | 459 | py | # Question: Summation of primes
# Problem 10
# The sum of the primes below 10 is 2 + 3 + 5 + 7 = 17.
# Find the sum of all the primes below two million.
# Answer: 142913828922
#!/usr/bin/python
def is_prime(num):
for j in range(2,num):
if (num % j) == 0:
return False
return True
list1 = []
for i in range(3,2000000,2):
if is_prime(i) == True:
list1.append(i)
sum1 = 0
for j in list1:
sum1 = sum1+j
print sum1
| [
"[email protected]"
] | |
abdf25273170a0e464ee6c988a08c42a21bbd8b0 | f3a1629a46f5c3cbf7314c54fc36be3156146517 | /venv/bin/sqlformat | f01aa4e0e6285b25c7aec0571805920953267bed | [] | no_license | AlexsandroMO/qualiy_applications | ec4cdbcbacc9f403d7d34ca9573af44df9c9230a | 08656c8368f10d54e5b9c8e4a758989239224dc6 | refs/heads/main | 2023-01-13T03:50:21.779274 | 2020-11-14T19:05:20 | 2020-11-14T19:05:20 | 305,471,783 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 284 | #!/Users/alexsandromonteiro/Desktop/Prog_Python/qualiy_applications/venv/bin/python3.8
# -*- coding: utf-8 -*-
import re
import sys
from sqlparse.__main__ import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"[email protected]"
] | ||
da8b517d85a513db952f23fb60cba730404ee688 | 3c8cc407d7547f8702bfe06deb5f1c9087778ce3 | /hiword/dataloader.py | 4d6c1c1a4918a7d6da18e55b56ca7658f88ceae8 | [
"Apache-2.0"
] | permissive | jadbin/hiword | accaebbdee899e8e3ed11e024d6c488bca36c445 | 7789412747a2b6b59ee974f2a2efd57e355e3282 | refs/heads/master | 2023-04-06T21:57:17.260338 | 2023-03-15T16:21:49 | 2023-03-15T16:21:49 | 166,003,998 | 6 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,158 | py | import os
from collections import defaultdict
from os import listdir
from os.path import join, dirname, isdir
class DictLoader:
def __init__(self):
self.dict = self._load_dict()
def word_freq(self, word):
return self.dict[word]
@staticmethod
def _load_dict():
res = defaultdict(lambda: 0)
d = join(dirname(__file__), 'data', 'dicts')
for name in os.listdir(d):
if name.endswith('.txt'):
dict_file = join(d, name)
with open(dict_file) as f:
for line in f:
s = line.split()
res[s[0]] = max(res[s[0]], int(s[1]))
return res
class IDFLoader:
def __init__(self):
self.idf = self._load_idf()
self.median_idf = sorted(self.idf.values())[len(self.idf) // 2]
def word_idf(self, word):
return self.idf.get(word, self.median_idf)
@staticmethod
def _load_idf():
idf_file = join(dirname(__file__), 'data', 'idf.txt')
res = {}
with open(idf_file) as f:
while True:
line = f.readline()
if not line:
break
s = line.split()
res[s[0]] = float(s[1])
return res
class StopwordsLoader:
def __init__(self):
self.stopwords = self._load_stopwords()
def is_stopword(self, word):
return word in self.stopwords
def remove(self, word):
self.stopwords.remove(word)
@staticmethod
def _load_stopwords():
file = join(dirname(__file__), 'data', 'stopwords')
res = set()
files = []
if isdir(file):
for fname in listdir(file):
if fname.endswith('.txt'):
files.append(join(file, fname))
else:
files.append(file)
for fname in files:
with open(fname) as f:
while True:
line = f.readline()
if not line:
break
s = line.strip()
res.add(s)
return res
| [
"[email protected]"
] | |
db0ec3865a75078674e752309dad2296cd1bbd26 | f305f84ea6f721c2391300f0a60e21d2ce14f2a5 | /19_数学/计算几何/直线/practice/面试题 16.14. 最佳直线 copy.py | 9a95efaf08f17ae51ca4cf2e9edb0dae3b4f6f05 | [] | no_license | 981377660LMT/algorithm-study | f2ada3e6959338ae1bc21934a84f7314a8ecff82 | 7e79e26bb8f641868561b186e34c1127ed63c9e0 | refs/heads/master | 2023-09-01T18:26:16.525579 | 2023-09-01T12:21:58 | 2023-09-01T12:21:58 | 385,861,235 | 225 | 24 | null | null | null | null | UTF-8 | Python | false | false | 3,033 | py | from typing import List
from collections import defaultdict
def gcd(a, b):
return b if a == 0 else gcd(b % a, b)
class Solution:
def bestLine(self, points: List[List[int]]) -> List[int]:
n = len(points)
res = []
maxCount = 0
for i in range(n):
x1, y1 = points[i]
counter = defaultdict(int)
firstpair = defaultdict(list)
for j in range(i + 1, n):
x2, y2 = points[j]
A, B = (y2 - y1), (x2 - x1)
if B == 0:
key = (0, 0)
else:
gcd_ = gcd(A, B)
key = (A / gcd_, B / gcd_)
counter[key] += 1
firstpair.setdefault(key, [i, j])
if counter[key] > maxCount: # 只有更多,才更新
maxCount = counter[key]
res = firstpair[key]
return res
print(
Solution().bestLine(
[
[-24272, -29606],
[-37644, -4251],
[2691, -22513],
[-14592, -33765],
[-21858, 28550],
[-22264, 41303],
[-6960, 12785],
[-39133, -41833],
[25151, -26643],
[-19416, 28550],
[-17420, 22270],
[-8793, 16457],
[-4303, -25680],
[-14405, 26607],
[-49083, -26336],
[22629, 20544],
[-23939, -25038],
[-40441, -26962],
[-29484, -30503],
[-32927, -18287],
[-13312, -22513],
[15026, 12965],
[-16361, -23282],
[7296, -15750],
[-11690, -21723],
[-34850, -25928],
[-14933, -16169],
[23459, -9358],
[-45719, -13202],
[-26868, 28550],
[4627, 16457],
[-7296, -27760],
[-32230, 8174],
[-28233, -8627],
[-26520, 28550],
[5515, -26001],
[-16766, 28550],
[21888, -3740],
[1251, 28550],
[15333, -26322],
[-27677, -19790],
[20311, 7075],
[-10751, 16457],
[-47762, -44638],
[20991, 24942],
[-19056, -11105],
[-26639, 28550],
[-19862, 16457],
[-27506, -4251],
[-20172, -5440],
[-33757, -24717],
[-9411, -17379],
[12493, 29906],
[0, -21755],
[-36885, -16192],
[-38195, -40088],
[-40079, 7667],
[-29294, -34032],
[-55968, 23947],
[-22724, -22513],
[20362, -11530],
[-11817, -23957],
[-33742, 5259],
[-10350, -4251],
[-11690, -22513],
[-20241, -22513],
]
)
)
| [
"[email protected]"
] | |
d1d2cb8fa62f4abf11d0f3c031e100adb3008d82 | 6ed01f4503fc9de234a561c945adff7cf4b1c81b | /ncar_lib/incites_authors/incites_people_reporter.py | 24328f4c760673ff83a6c2cbdde1365ae3f9d3f8 | [] | no_license | ostwald/python-lib | b851943c913a68424a05ce3c7b42878ff9519f68 | 9acd97ffaa2f57b3e9e632e1b75016549beb29e5 | refs/heads/master | 2021-10-28T06:33:34.156095 | 2021-10-21T23:54:49 | 2021-10-21T23:54:49 | 69,060,616 | 0 | 1 | null | 2018-06-21T16:05:30 | 2016-09-23T21:04:46 | Roff | UTF-8 | Python | false | false | 5,465 | py | """
"""
import os, sys
from UserList import UserList
from find_person import PersonFinder, resolveFullName
from data_filter import FilteredAuthorData
from HyperText.HTML40 import *
from html import HtmlDocument
class InCitesAuthorInfo:
def __init__ (self, id, finder, matches):
"""
names are derived from inCitesAuthor data
matches come from peopleDB
"""
self.id = id
# self.inCitesName = fullname
for attr in ['fullname', 'firstName', 'middleName', 'lastName', 'note']:
setattr (self, attr, getattr (finder, attr))
self.matches = matches
self.numMatches = len(matches)
class SimpleReporter (UserList):
def __init__ (self):
self.data = []
self.recordsToReport = 10
self.errors = []
self.notes = []
self.people = FilteredAuthorData().people # UniquePeople
# self.report()
self.getAuthorMatchInfo()
def getAuthorMatchInfo (self):
person_counter = 1
max_count = self.recordsToReport or len(self.people.keys())
for fullname in self.people.keys()[:max_count]:
try:
finder = PersonFinder (fullname)
candidates = finder.candidates
id = 'author-%d' % person_counter
person_counter += 1
# print 'processing authorInfo for ' + fullname
authorInfo = InCitesAuthorInfo (id, finder, candidates)
self.append(authorInfo)
except KeyError, e:
print 'ERROR', e
self.errors.append(fullname + ": " + str(e))
def report(self):
for authorInfo in self:
try:
if authorInfo.numMatches == 1:
continue
if authorInfo.note:
self.notes.append(authorInfo.note)
## print '\n%s (%d)' % (fullname, size)
print "\n%d candidates found for '%s' (%s | %s)" % \
(len(authorInfo.matches),
authorInfo.fullname,
authorInfo.lastName,
authorInfo.firstName)
for person in authorInfo.matches:
print '- ', person
except Exception, e:
self.errors.append(authorInfo.fullname + ": " + str(e))
def showErrors (self):
if self.errors:
print '\nNames that could not be parsed'
for error in self.errors:
print error
else:
print '\nAll names were parsed'
def showNotes(self):
if self.notes:
print '\nNotes'
for note in notes:
print note
else:
print '\nNo notes generated'
class HtmlReporter (SimpleReporter):
results_columns = ['numMatches', 'inCitesName', 'peopleDBlink']
def __init__ (self):
SimpleReporter.__init__ (self)
self.htmlDoc = None
print '%d authorInfo instances' % len(self.data)
def asHtmlDoc (self):
if self.htmlDoc is None:
mockup_link = Href ("../reporter-mockup.html", 'to Mockup')
reportTable = self.makeReportHtml()
javascript = [
'javascript/prototype.js',
'javascript/scriptaculous-js-1.9.0/scriptaculous.js',
'javascript/toggler.js',
'javascript/decorate_upids.js'
]
self.htmlDoc = HtmlDocument(mockup_link,
reportTable,
title="inCites Author Reporter",
stylesheet="styles.css",
javascript=javascript)
return self.htmlDoc
def getInCitesAuthorInfo (self, authorInfo):
"""
make the html for a inCitesAuthor & its matches
"""
print 'getInCitesAuthorInfo with ' + authorInfo.fullname
id = authorInfo.id
togglerClass = authorInfo.matches and "toggler" or ""
toggler = DIV (id=id, klass=togglerClass)
if authorInfo.numMatches > 0:
togglerLnkClass = "inCitesAuthor togglerClosed"
else:
togglerLnkClass = "inCitesAuthor noTogglerClosed"
# print "%s %s" % (authorInfo.inCitesName, authorInfo.numMatches)
togglerLnk = DIV(id='toggler-lnk-'+id, klass=togglerLnkClass)
toggler.append(togglerLnk)
authorTable = TABLE(klass="authorTable")
togglerLnk.append(authorTable)
matchesContent = '(%d matches)' % authorInfo.numMatches
authorTable.append(
TR(
TD (authorInfo.fullname, klass="author"),
TD (matchesContent, klass="matches")
)
)
if authorInfo.numMatches > 0:
togglerCon = DIV(id='toggler-con-'+id, style="display:none")
toggler.append(togglerCon)
matchTable = TABLE(klass="matchTable")
togglerCon.append(matchTable)
for match in authorInfo.matches:
match_row = TR (klass="peopleDBmatch", id=match.upid)
match_row.append (
TD (match.getName(), klass="match-name"),
TD (match.upid, klass="match-upid"))
matchTable.append(match_row);
return toggler
def makeReportHtml (self):
report = DIV (id='reportTable')
person_counter = 1
max_count = self.recordsToReport or len(self.people.keys())
for authorInfo in self:
# print authorInfo.fullname, authorInfo.numMatches
try:
if authorInfo.numMatches == 1:
continue
if authorInfo.note:
self.notes.append(authorInfo.note)
# print 'processing authorInfo for ' + fullname
report.append (HR (klass="divider"))
report.append(self.getInCitesAuthorInfo (authorInfo))
except Exception, e:
self.errors.append(authorInfo.fullname + ": " + str(e))
return report
def writeHtmlDoc (self, path=None):
path = path or "report_html/INCITES_REPORT.html"
fp = open (path, 'w')
fp.write (self.asHtmlDoc().__str__())
fp.close()
print "wrote to " + path
if __name__ == '__main__':
# findPeople()
if 0:
reporter = SimpleReporter()
reporter.report()
if 1:
reporter = HtmlReporter()
print reporter.asHtmlDoc()
# reporter.writeHtmlDoc()
reporter.showErrors()
reporter.showNotes()
# print reporter.asHtmlDoc()
| [
"[email protected]"
] | |
e5159573514325ddff9f0569957cbbf720a52f0e | a34ec07c3464369a88e68c9006fa1115f5b61e5f | /B_HashTable/Basic/L1_2593_Find_Score_of_an_Array_After_Marking_All_Elements.py | c21970e05cffcfd0aa4f1a71aaa041f071a3ed8a | [] | no_license | 824zzy/Leetcode | 9220f2fb13e03d601d2b471b5cfa0c2364dbdf41 | 93b7f4448a366a709214c271a570c3399f5fc4d3 | refs/heads/master | 2023-06-27T02:53:51.812177 | 2023-06-16T16:25:39 | 2023-06-16T16:25:39 | 69,733,624 | 14 | 3 | null | 2022-05-25T06:48:38 | 2016-10-01T10:56:07 | Python | UTF-8 | Python | false | false | 493 | py | """ https://leetcode.com/problems/find-score-of-an-array-after-marking-all-elements/
Implement the problem description using a seen array
"""
from header import *
class Solution:
def findScore(self, A: List[int]) -> int:
seen = [0]*(len(A)+2)
ans = 0
for i, x in sorted(enumerate(A), key=lambda x: x[1]):
if not seen[i]:
ans += x
seen[i] = 1
seen[i-1] = 1
seen[i+1] = 1
return ans | [
"[email protected]"
] | |
6831b0fbb7a6dadcaef55a6df4497df57ec91df1 | 2b45cbccd03fb09be78b2241d05beeae171a2e18 | /字节跳动测试开发工程师面试准备/reverseList.py | 58fa0f6880134d2ea79618baafedb614640d8d8f | [] | no_license | MaoningGuan/LeetCode | c90f78ce87a8116458a86c49dbe32e172036f7b4 | 62419b49000e79962bcdc99cd98afd2fb82ea345 | refs/heads/master | 2023-01-03T14:52:04.278708 | 2020-11-01T12:15:41 | 2020-11-01T12:15:41 | 282,859,997 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,567 | py | # -*- coding: utf-8 -*-
"""
206. 反转链表
反转一个单链表。
示例:
输入: 1->2->3->4->5->NULL
输出: 5->4->3->2->1->NULL
进阶:
你可以迭代或递归地反转链表。你能否用两种方法解决这道题?
"""
# Definition for singly-linked list.
class ListNode:
def __init__(self, x):
self.val = x
self.next = None
def generateList(l: list) -> ListNode:
prenode = ListNode(0)
lastnode = prenode
for val in l:
lastnode.next = ListNode(val)
lastnode = lastnode.next
return prenode.next
def printList(l: ListNode):
while l:
print("%d, " % (l.val), end='')
l = l.next
print('')
class Solution:
def reverseList_recursive(self, head: ListNode) -> ListNode:
"""
递归解法
:type head: ListNode
:rtype: ListNode
"""
# 递归终止条件是当前为空,或者下一个节点为空
if (head == None or head.next == None):
return head
# 这里的cur就是最后一个节点
cur = self.reverseList_recursive(head.next)
# 这里请配合动画演示理解
# 如果链表是 1->2->3->4->5,那么此时的cur就是5
# 而head是4,head的下一个是5,下下一个是空
# 所以head.next.next 就是5->4
head.next.next = head
# 防止链表循环,需要将head.next设置为空(如:5 -> 4 -> 3 -> 2 <-> 1)
# if head.val == 1:
# head.next = None
head.next = None
# 每层递归函数都返回cur,也就是最后一个节点
return cur
def reverseList_iterate(self, head: ListNode) -> ListNode:
"""
迭代解法
:type head: ListNode
:rtype: ListNode
"""
# 申请两个节点,pre和 cur,pre指向None
pre = None
cur = head
# 遍历链表,while循环里面的内容其实可以写成一行
# 这里只做演示,就不搞那么骚气的写法了
while cur:
# pre, cur.next, cur = cur, pre, cur.next
# 记录当前节点的下一个节点
tmp = cur.next
# 然后将当前节点指向pre
cur.next = pre
# pre和cur节点都前进一位
pre = cur
cur = tmp
return pre
if __name__ == '__main__':
solution = Solution()
nodes = [1, 2, 3, 4, 5]
linked_list = generateList(nodes)
reversed_link = solution.reverseList_iterate(linked_list)
printList(reversed_link)
| [
"[email protected]"
] | |
26f47532449dbed8b39096a83f8cc42ae7de4c34 | 4dbe3b1b2af3ff77e8086ec32ab58dcf47849a3e | /tests/__init__.py | 50530a34b837af8bd1a04e3a510f33988b96846e | [
"MIT"
] | permissive | mnpk/dynamo3 | b83dc700345972ea2336ac8ca842fd9f23edf5c2 | 51eacee60bdf8d058831a9ab3583a2cfe9f91ca9 | refs/heads/master | 2021-01-16T21:54:32.089114 | 2016-04-30T00:53:55 | 2016-04-30T00:53:55 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 21,985 | py | """ Tests for Dynamo3 """
from __future__ import unicode_literals
import six
from botocore.exceptions import ClientError
from decimal import Decimal
from mock import patch, MagicMock, ANY
from six.moves.cPickle import dumps, loads # pylint: disable=F0401,E0611
from six.moves.urllib.parse import urlparse # pylint: disable=F0401,E0611
from dynamo3 import (DynamoDBConnection, Binary, DynamoKey, Dynamizer, STRING,
ThroughputException, Table, GlobalIndex, DynamoDBError,
Limit)
from dynamo3.result import (add_dicts, Count, Capacity, ConsumedCapacity,
ResultSet)
try:
import unittest2 as unittest # pylint: disable=F0401
except ImportError:
import unittest
if six.PY3:
unittest.TestCase.assertItemsEqual = unittest.TestCase.assertCountEqual
def is_number(value):
""" Check if a value is a float or int """
return isinstance(value, float) or isinstance(value, six.integer_types)
class BaseSystemTest(unittest.TestCase):
""" Base class for system tests """
dynamo = None
def setUp(self):
super(BaseSystemTest, self).setUp()
# Clear out any pre-existing tables
for tablename in self.dynamo.list_tables():
self.dynamo.delete_table(tablename)
def tearDown(self):
super(BaseSystemTest, self).tearDown()
for tablename in self.dynamo.list_tables():
self.dynamo.delete_table(tablename)
self.dynamo.clear_hooks()
class TestMisc(BaseSystemTest):
""" Tests that don't fit anywhere else """
def tearDown(self):
super(TestMisc, self).tearDown()
self.dynamo.default_return_capacity = False
def test_connection_host(self):
""" Connection can access host of endpoint """
urlparse(self.dynamo.host)
def test_connection_region(self):
""" Connection can access name of connected region """
self.assertTrue(isinstance(self.dynamo.region, six.string_types))
def test_connect_to_region_old(self):
""" Can connect to a dynamo region """
conn = DynamoDBConnection.connect_to_region('us-west-1')
self.assertIsNotNone(conn.host)
def test_connect_to_region_creds_old(self):
""" Can connect to a dynamo region with credentials """
conn = DynamoDBConnection.connect_to_region(
'us-west-1', access_key='abc', secret_key='12345')
self.assertIsNotNone(conn.host)
def test_connect_to_host_without_session_old(self):
""" Can connect to a dynamo host without passing in a session """
conn = DynamoDBConnection.connect_to_host(access_key='abc',
secret_key='12345')
self.assertIsNotNone(conn.host)
def test_connect_to_region(self):
""" Can connect to a dynamo region """
conn = DynamoDBConnection.connect('us-west-1')
self.assertIsNotNone(conn.host)
def test_connect_to_region_creds(self):
""" Can connect to a dynamo region with credentials """
conn = DynamoDBConnection.connect(
'us-west-1', access_key='abc', secret_key='12345')
self.assertIsNotNone(conn.host)
def test_connect_to_host_without_session(self):
""" Can connect to a dynamo host without passing in a session """
conn = DynamoDBConnection.connect('us-west-1', host='localhost')
self.assertIsNotNone(conn.host)
@patch('dynamo3.connection.time')
def test_retry_on_throughput_error(self, time):
""" Throughput exceptions trigger a retry of the request """
def call(*_, **__):
""" Dummy service call """
response = {
'ResponseMetadata': {
'HTTPStatusCode': 400,
},
'Error': {
'Code': 'ProvisionedThroughputExceededException',
'Message': 'Does not matter',
}
}
raise ClientError(response, 'list_tables')
with patch.object(self.dynamo, 'client') as client:
client.list_tables.side_effect = call
with self.assertRaises(ThroughputException):
self.dynamo.call('list_tables')
self.assertEqual(len(time.sleep.mock_calls),
self.dynamo.request_retries - 1)
self.assertTrue(time.sleep.called)
def test_describe_missing(self):
""" Describing a missing table returns None """
ret = self.dynamo.describe_table('foobar')
self.assertIsNone(ret)
def test_magic_table_props(self):
""" Table magically looks up properties on response object """
hash_key = DynamoKey('id')
self.dynamo.create_table('foobar', hash_key=hash_key)
ret = self.dynamo.describe_table('foobar')
self.assertIsNotNone(ret.item_count)
with self.assertRaises(AttributeError):
self.assertIsNotNone(ret.crazy_property)
def test_magic_index_props(self):
""" Index magically looks up properties on response object """
index = GlobalIndex.all('idx-name', DynamoKey('id'))
index.response = {
'FooBar': 2
}
self.assertEqual(index.foo_bar, 2)
with self.assertRaises(AttributeError):
self.assertIsNotNone(index.crazy_property)
def test_describe_during_delete(self):
""" Describing a table during a delete operation should not crash """
response = {
'ItemCount': 0,
'ProvisionedThroughput': {
'NumberOfDecreasesToday': 0,
'ReadCapacityUnits': 5,
'WriteCapacityUnits': 5
},
'TableName': 'myTableName',
'TableSizeBytes': 0,
'TableStatus': 'DELETING'
}
table = Table.from_response(response)
self.assertEqual(table.status, 'DELETING')
def test_delete_missing(self):
""" Deleting a missing table returns False """
ret = self.dynamo.delete_table('foobar')
self.assertTrue(not ret)
def test_re_raise(self):
""" DynamoDBError can re-raise itself if missing exc_info """
err = DynamoDBError(400, Code='ErrCode', Message='Ouch', args={})
try:
err.re_raise()
self.assertTrue(False)
except DynamoDBError as e:
self.assertEqual(err, e)
def test_default_return_capacity(self):
""" When default_return_capacity=True, always return capacity """
self.dynamo.default_return_capacity = True
with patch.object(self.dynamo, 'call') as call:
call().get.return_value = None
rs = self.dynamo.scan('foobar')
list(rs)
call.assert_called_with('scan', TableName='foobar',
ReturnConsumedCapacity='INDEXES')
def test_list_tables_page(self):
""" Call to ListTables should page results """
hash_key = DynamoKey('id')
for i in range(120):
self.dynamo.create_table('table%d' % i, hash_key=hash_key)
tables = list(self.dynamo.list_tables(110))
self.assertEqual(len(tables), 110)
def test_limit_complete(self):
""" A limit with item_capacity = 0 is 'complete' """
limit = Limit(item_limit=0)
self.assertTrue(limit.complete)
class TestDataTypes(BaseSystemTest):
""" Tests for Dynamo data types """
def make_table(self):
""" Convenience method for making a table """
hash_key = DynamoKey('id')
self.dynamo.create_table('foobar', hash_key=hash_key)
def test_string(self):
""" Store and retrieve a string """
self.make_table()
self.dynamo.put_item('foobar', {'id': 'abc'})
item = list(self.dynamo.scan('foobar'))[0]
self.assertEqual(item['id'], 'abc')
self.assertTrue(isinstance(item['id'], six.text_type))
def test_int(self):
""" Store and retrieve an int """
self.make_table()
self.dynamo.put_item('foobar', {'id': 'a', 'num': 1})
item = list(self.dynamo.scan('foobar'))[0]
self.assertEqual(item['num'], 1)
def test_float(self):
""" Store and retrieve a float """
self.make_table()
self.dynamo.put_item('foobar', {'id': 'a', 'num': 1.1})
item = list(self.dynamo.scan('foobar'))[0]
self.assertAlmostEqual(float(item['num']), 1.1)
def test_decimal(self):
""" Store and retrieve a Decimal """
self.make_table()
self.dynamo.put_item('foobar', {'id': 'a', 'num': Decimal('1.1')})
item = list(self.dynamo.scan('foobar'))[0]
self.assertEqual(item['num'], Decimal('1.1'))
def test_binary(self):
""" Store and retrieve a binary """
self.make_table()
self.dynamo.put_item('foobar', {'id': 'a', 'data': Binary('abc')})
item = list(self.dynamo.scan('foobar'))[0]
self.assertEqual(item['data'].value, b'abc')
def test_binary_bytes(self):
""" Store and retrieve bytes as a binary """
self.make_table()
data = {'a': 1, 'b': 2}
self.dynamo.put_item('foobar', {'id': 'a',
'data': Binary(dumps(data))})
item = list(self.dynamo.scan('foobar'))[0]
self.assertEqual(loads(item['data'].value), data)
def test_string_set(self):
""" Store and retrieve a string set """
self.make_table()
item = {
'id': 'a',
'datas': set(['a', 'b']),
}
self.dynamo.put_item('foobar', item)
ret = list(self.dynamo.scan('foobar'))[0]
self.assertEqual(ret, item)
def test_number_set(self):
""" Store and retrieve a number set """
self.make_table()
item = {
'id': 'a',
'datas': set([1, 2, 3]),
}
self.dynamo.put_item('foobar', item)
ret = list(self.dynamo.scan('foobar'))[0]
self.assertEqual(ret, item)
def test_binary_set(self):
""" Store and retrieve a binary set """
self.make_table()
item = {
'id': 'a',
'datas': set([Binary('a'), Binary('b')]),
}
self.dynamo.put_item('foobar', item)
ret = list(self.dynamo.scan('foobar'))[0]
self.assertEqual(ret, item)
def test_binary_equal(self):
""" Binary should eq other Binaries and also raw bytestrings """
self.assertEqual(Binary('a'), Binary('a'))
self.assertEqual(Binary('a'), b'a')
self.assertFalse(Binary('a') != Binary('a'))
def test_binary_repr(self):
""" Binary repr should wrap the contained value """
self.assertEqual(repr(Binary('a')), 'Binary(%s)' % b'a')
def test_binary_converts_unicode(self):
""" Binary will convert unicode to bytes """
b = Binary('a')
self.assertTrue(isinstance(b.value, six.binary_type))
def test_binary_force_string(self):
""" Binary must wrap a string type """
with self.assertRaises(TypeError):
Binary(2)
def test_bool(self):
""" Store and retrieve a boolean """
self.make_table()
self.dynamo.put_item('foobar', {'id': 'abc', 'b': True})
item = list(self.dynamo.scan('foobar'))[0]
self.assertEqual(item['b'], True)
self.assertTrue(isinstance(item['b'], bool))
def test_list(self):
""" Store and retrieve a list """
self.make_table()
self.dynamo.put_item('foobar', {'id': 'abc', 'l': ['a', 1, False]})
item = list(self.dynamo.scan('foobar'))[0]
self.assertEqual(item['l'], ['a', 1, False])
def test_dict(self):
""" Store and retrieve a dict """
self.make_table()
data = {
'i': 1,
's': 'abc',
'n': None,
'l': ['a', 1, True],
'b': False,
}
self.dynamo.put_item('foobar', {'id': 'abc', 'd': data})
item = list(self.dynamo.scan('foobar'))[0]
self.assertEqual(item['d'], data)
def test_nested_dict(self):
""" Store and retrieve a nested dict """
self.make_table()
data = {
's': 'abc',
'd': {
'i': 42,
},
}
self.dynamo.put_item('foobar', {'id': 'abc', 'd': data})
item = list(self.dynamo.scan('foobar'))[0]
self.assertEqual(item['d'], data)
def test_nested_list(self):
""" Store and retrieve a nested list """
self.make_table()
data = [
1,
[
True,
None,
'abc',
],
]
self.dynamo.put_item('foobar', {'id': 'abc', 'l': data})
item = list(self.dynamo.scan('foobar'))[0]
self.assertEqual(item['l'], data)
def test_unrecognized_type(self):
""" Dynamizer throws error on unrecognized type """
value = {
'ASDF': 'abc',
}
with self.assertRaises(TypeError):
self.dynamo.dynamizer.decode(value)
class TestDynamizer(unittest.TestCase):
""" Tests for the Dynamizer """
def test_register_encoder(self):
""" Can register a custom encoder """
from datetime import datetime
dynamizer = Dynamizer()
dynamizer.register_encoder(datetime, lambda d, v:
(STRING, v.isoformat()))
now = datetime.utcnow()
self.assertEqual(dynamizer.raw_encode(now), (STRING, now.isoformat()))
def test_encoder_missing(self):
""" If no encoder is found, raise ValueError """
from datetime import datetime
dynamizer = Dynamizer()
with self.assertRaises(ValueError):
dynamizer.encode(datetime.utcnow())
class TestResultModels(unittest.TestCase):
""" Tests for the model classes in results.py """
def test_add_dicts_base_case(self):
""" add_dict where one argument is None returns the other """
f = object()
self.assertEqual(add_dicts(f, None), f)
self.assertEqual(add_dicts(None, f), f)
def test_add_dicts(self):
""" Merge two dicts of values together """
a = {
'a': 1,
'b': 2,
}
b = {
'a': 3,
'c': 4,
}
ret = add_dicts(a, b)
self.assertEqual(ret, {
'a': 4,
'b': 2,
'c': 4,
})
def test_count_repr(self):
""" Count repr """
count = Count(0, 0)
self.assertEqual(repr(count), "Count(0)")
def test_count_addition(self):
""" Count addition """
count = Count(4, 2)
self.assertEqual(count + 5, 9)
def test_count_subtraction(self):
""" Count subtraction """
count = Count(4, 2)
self.assertEqual(count - 2, 2)
def test_count_multiplication(self):
""" Count multiplication """
count = Count(4, 2)
self.assertEqual(2 * count, 8)
def test_count_division(self):
""" Count division """
count = Count(4, 2)
self.assertEqual(count / 2, 2)
def test_count_add_none_capacity(self):
""" Count addition with one None consumed_capacity """
cap = Capacity.create_read({'CapacityUnits': 3})
count = Count(4, 2)
count2 = Count(5, 3, cap)
ret = count + count2
self.assertEqual(ret, 9)
self.assertEqual(ret.scanned_count, 5)
self.assertEqual(ret.consumed_capacity, cap)
def test_count_add_capacity(self):
""" Count addition with consumed_capacity """
count = Count(4, 2, Capacity.create_read({'CapacityUnits': 3}))
count2 = Count(5, 3, Capacity.create_read({'CapacityUnits': 2}))
ret = count + count2
self.assertEqual(ret, 9)
self.assertEqual(ret.scanned_count, 5)
self.assertEqual(ret.consumed_capacity.read, 5)
def test_capacity_factories(self):
""" Capacity.create_(read|write) factories """
cap = Capacity.create_read({'CapacityUnits': 3})
self.assertEqual(cap.read, 3)
self.assertEqual(cap.write, 0)
cap = Capacity.create_write({'CapacityUnits': 3})
self.assertEqual(cap.write, 3)
self.assertEqual(cap.read, 0)
def test_capacity_math(self):
""" Capacity addition and equality """
cap = Capacity(2, 4)
s = set([cap])
self.assertIn(Capacity(2, 4), s)
self.assertNotEqual(Capacity(1, 4), cap)
self.assertEqual(Capacity(1, 1) + Capacity(2, 2), Capacity(3, 3))
def test_capacity_format(self):
""" String formatting for Capacity """
c = Capacity(1, 3)
self.assertEqual(str(c), "R:1.0 W:3.0")
c = Capacity(0, 0)
self.assertEqual(str(c), "0")
def test_total_consumed_capacity(self):
""" ConsumedCapacity can parse results with only Total """
response = {
'TableName': 'foobar',
'CapacityUnits': 4,
}
cap = ConsumedCapacity.from_response(response, True)
self.assertEqual(cap.total.read, 4)
self.assertIsNone(cap.table_capacity)
def test_consumed_capacity_equality(self):
""" ConsumedCapacity addition and equality """
cap = ConsumedCapacity('foobar', Capacity(0, 10), Capacity(0, 2), {
'l-index': Capacity(0, 4),
}, {
'g-index': Capacity(0, 3),
})
c2 = ConsumedCapacity('foobar', Capacity(0, 10), Capacity(0, 2), {
'l-index': Capacity(0, 4),
'l-index2': Capacity(0, 7),
})
self.assertNotEqual(cap, c2)
c3 = ConsumedCapacity('foobar', Capacity(0, 10), Capacity(0, 2), {
'l-index': Capacity(0, 4),
}, {
'g-index': Capacity(0, 3),
})
self.assertIn(cap, set([c3]))
combined = cap + c2
self.assertEqual(
cap + c2,
ConsumedCapacity('foobar', Capacity(0, 20), Capacity(0, 4),
{'l-index': Capacity(0, 8), 'l-index2': Capacity(0, 7), },
{'g-index': Capacity(0, 3), }))
self.assertIn(str(Capacity(0, 3)), str(combined))
def test_add_different_tables(self):
""" Cannot add ConsumedCapacity of two different tables """
c1 = ConsumedCapacity('foobar', Capacity(1, 28))
c2 = ConsumedCapacity('boofar', Capacity(3, 0))
with self.assertRaises(TypeError):
c1 += c2
def test_always_continue_query(self):
""" Regression test.
If result has no items but does have LastEvaluatedKey, keep querying.
"""
conn = MagicMock()
conn.dynamizer.decode_keys.side_effect = lambda x: x
items = ['a', 'b']
results = [
{'Items': [], 'LastEvaluatedKey': {'foo': 1, 'bar': 2}},
{'Items': [], 'LastEvaluatedKey': {'foo': 1, 'bar': 2}},
{'Items': items},
]
conn.call.side_effect = lambda *_, **__: results.pop(0)
rs = ResultSet(conn, Limit())
results = list(rs)
self.assertEqual(results, items)
class TestHooks(BaseSystemTest):
""" Tests for connection callback hooks """
def tearDown(self):
super(TestHooks, self).tearDown()
for hooks in six.itervalues(self.dynamo._hooks):
while hooks:
hooks.pop()
def test_precall(self):
""" precall hooks are called before an API call """
hook = MagicMock()
self.dynamo.subscribe('precall', hook)
def throw(**_):
""" Throw an exception to terminate the request """
raise Exception()
with patch.object(self.dynamo, 'client') as client:
client.describe_table.side_effect = throw
with self.assertRaises(Exception):
self.dynamo.describe_table('foobar')
hook.assert_called_with(
self.dynamo, 'describe_table', {
'TableName': 'foobar'})
def test_postcall(self):
""" postcall hooks are called after API call """
hash_key = DynamoKey('id')
self.dynamo.create_table('foobar', hash_key=hash_key)
calls = []
def hook(*args):
""" Log the call into a list """
calls.append(args)
self.dynamo.subscribe('postcall', hook)
self.dynamo.describe_table('foobar')
self.assertEqual(len(calls), 1)
args = calls[0]
self.assertEqual(len(args), 4)
conn, command, kwargs, response = args
self.assertEqual(conn, self.dynamo)
self.assertEqual(command, 'describe_table')
self.assertEqual(kwargs['TableName'], 'foobar')
self.assertEqual(response['Table']['TableName'], 'foobar')
def test_capacity(self):
""" capacity hooks are called whenever response has ConsumedCapacity """
hash_key = DynamoKey('id')
self.dynamo.create_table('foobar', hash_key=hash_key)
hook = MagicMock()
self.dynamo.subscribe('capacity', hook)
with patch.object(self.dynamo, 'client') as client:
client.scan.return_value = {
'Items': [],
'ConsumedCapacity': {
'TableName': 'foobar',
'CapacityUnits': 4,
}
}
rs = self.dynamo.scan('foobar')
list(rs)
cap = ConsumedCapacity('foobar', Capacity(4, 0))
hook.assert_called_with(self.dynamo, 'scan', ANY, ANY, cap)
def test_subscribe(self):
""" Can subscribe and unsubscribe from hooks """
hook = object()
self.dynamo.subscribe('precall', hook)
self.assertEqual(len(self.dynamo._hooks['precall']), 1)
self.dynamo.unsubscribe('precall', hook)
self.assertEqual(len(self.dynamo._hooks['precall']), 0)
| [
"[email protected]"
] | |
26c93247ee4200baadf6355f694c14262a0ea35e | 0d09e32620e2e82f243ba86e2cc7bec19e521b1b | /Exercises/01-Sequential-Structure/ex06.py | ac27e05e4d8dd83905a5665183e94f38cefa3c27 | [] | no_license | hikarocarvalho/Python_Wiki | 401f7466377f2053cda8bfa850afd0bd64cce047 | 01f755ecc18de13a9ded794ece9e7a8bd4ad7d9e | refs/heads/main | 2023-06-14T08:37:10.728067 | 2021-07-12T20:24:41 | 2021-07-12T20:24:41 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 270 | py | #the user gives the ray value
#o usuário dá o valor do raio
ray = float(input("Enter with the ray value: "))
#calculate the area of a circle
#calcula a área do circulo
area = ray**2 * 3.14
#Show the result
#mostra o resultado
print("The area of this circle is:",area) | [
"[email protected]"
] | |
dcebdc63fede722d67b16b2fb6757f67c3e20076 | 59f03c7528c9c806e3e25b9864db89f25dfa73c2 | /tests/conftest.py | 340ea85a5b213e3a629d9ba903138e93c3473583 | [
"MIT"
] | permissive | OneGov/onegov-cloud | 8d8cd6d0378991ebc2333b62337246719102e723 | c706b38d5b67692b4146cdf14ef24d971a32c6b8 | refs/heads/master | 2023-08-24T15:37:52.536958 | 2023-08-24T14:15:54 | 2023-08-24T14:15:54 | 189,431,418 | 17 | 4 | MIT | 2023-09-14T20:39:37 | 2019-05-30T14:47:14 | Python | UTF-8 | Python | false | false | 34 | py | pytest_plugins = ['tests.shared']
| [
"[email protected]"
] | |
65e75880a88ed030115589f4646788aa413fd91e | 7f7213fe407f252b2323025c9b9e381a73474b7d | /drag_sheet/sds/check_files.py | 077feba9a15d97280ae0c711e7c9b67f9866a925 | [] | no_license | ahy3nz/graphene_build | 0ce62c2123b8c39248048d2cafbd0aafdd06ff9a | 44590b8db799136929fc06e490151f450ad30029 | refs/heads/master | 2021-06-20T07:28:20.958807 | 2019-07-03T19:48:24 | 2019-07-03T19:48:24 | 135,504,561 | 0 | 1 | null | 2018-08-06T21:47:17 | 2018-05-30T22:40:17 | Python | UTF-8 | Python | false | false | 572 | py | import os
import itertools as it
curr_dir = os.getcwd()
sds_folders = ['10sds', '20sds', '30sds', '40sds', '50sds', '60sds',
'70sds', '80sds', '90sds', '100sds']
k_folders = ['k50']
angle_folders = ['0']
trials = ['a', 'b', 'c']
for combo in it.product(sds_folders, k_folders, angle_folders,trials):
sim_dir = os.path.join(curr_dir, '{0}/{1}_{2}_{3}'.format(*combo))
if os.path.isdir(sim_dir):
os.chdir(sim_dir)
if not os.path.isfile('pull.gro'):
print(sim_dir)
else:
print("{} doesn't exist".format(sim_dir))
| [
"[email protected]"
] | |
54348e0bd8926ccdffa383c51db801b380d5f575 | 428f2c48d6e9dabc3ac63012d4146b98bc38efc1 | /refresh/refresh/wsgi.py | 5f348f3bcbf706c24a9dad495e9bb99837caa19e | [] | no_license | Arange-code/Django-project | f96d61fcebe0aa93bd311f86fe0a0f539b0b68f5 | 53527d1f442d87f8ac8f37d0c544168670e054cf | refs/heads/master | 2021-02-05T12:29:56.201975 | 2020-02-28T14:31:58 | 2020-02-28T14:31:58 | 243,780,561 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 391 | py | """
WSGI config for refresh project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/3.0/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'refresh.settings')
application = get_wsgi_application()
| [
"[email protected]"
] | |
1cb4aefd9a5b1077a5c844f51cf26e0e25ef605b | f6761bd4b74ed9c3bc0e8f62e5a1db70c03096f0 | /torch/nn/quantized/dynamic/modules/linear.py | 7574dd53eb761570aa1b6445bc8593eba60de6c2 | [
"BSD-2-Clause",
"BSD-3-Clause",
"LicenseRef-scancode-generic-cla",
"Apache-2.0"
] | permissive | MarisaKirisame/pytorch | b638790a0997d776ad4c5e4c77badc77e5dc94f9 | 59c5de4d0eda8d4f5494602034093933600d0a3d | refs/heads/master | 2021-06-19T10:44:33.846286 | 2019-10-31T22:56:55 | 2019-10-31T22:58:28 | 218,881,408 | 2 | 0 | NOASSERTION | 2019-11-01T00:02:51 | 2019-11-01T00:02:51 | null | UTF-8 | Python | false | false | 3,423 | py | from __future__ import absolute_import, division, print_function, unicode_literals
import torch
from ....modules.linear import Linear as NNLinear
import torch.nn.quantized as nnq
class Linear(nnq.Linear):
r"""
A dynamic quantized linear module with quantized tensor as inputs and outputs.
We adopt the same interface as `torch.nn.Linear`, please see
https://pytorch.org/docs/stable/nn.html#torch.nn.Linear for documentation.
Similar to :class:`torch.nn.Linear`, attributes will be randomly
initialized at module creation time and will be overwritten later
Attributes:
weight (Tensor): the non-learnable quantized weights of the module which are of
shape :math:`(\text{out\_features}, \text{in\_features})`.
bias (Tensor): the non-learnable bias of the module of shape :math:`(\text{out\_features})`.
If :attr:`bias` is ``True``, the values are initialized to zero.
Examples::
>>> m = nn.quantized.dynamic.Linear(20, 30)
>>> input = torch.randn(128, 20)
>>> output = m(input)
>>> print(output.size())
torch.Size([128, 30])
"""
def __init__(self, in_features, out_features, bias_=True):
super(Linear, self).__init__(in_features, out_features, bias_)
# We don't muck around with buffers or attributes or anything here
# to keep the module simple. *everything* is simply a Python attribute.
# Serialization logic is explicitly handled in the below serialization and
# deserialization modules
def forward(self, x):
# Note that we can handle self.bias == None case.
Y = torch.ops.quantized.linear_dynamic(
x, self._packed_params)
return Y.to(x.dtype)
def _get_name(self):
return 'DynamicQuantizedLinear'
def extra_repr(self):
return 'in_features={}, out_features={}'.format(
self.in_features, self.out_features
)
@classmethod
def from_float(cls, mod):
r"""Create a dynamic quantized module from a float module or qparams_dict
Args:
mod (Module): a float module, either produced by torch.quantization
utilities or provided by the user
"""
assert type(mod) == NNLinear, 'nn.quantized.dynamic.Linear.from_float only works for nn.Linear'
assert hasattr(mod, 'qconfig'), 'Input float module must have qconfig defined'
if mod.qconfig is not None and mod.qconfig.weight is not None:
weight_observer = mod.qconfig.weight()
else:
# We have the circular import issues if we import the qconfig in the beginning of this file:
# https://github.com/pytorch/pytorch/pull/24231. The current workaround is to postpone the
# import until we need it.
from torch.quantization.qconfig import default_dynamic_qconfig
weight_observer = default_dynamic_qconfig.weight()
assert weight_observer.dtype == torch.qint8, 'Weight observer must have dtype torch.qint8'
weight_observer(mod.weight)
wt_scale, wt_zp = weight_observer.calculate_qparams()
qweight = torch.quantize_per_tensor(mod.weight.float(), float(wt_scale), int(wt_zp), torch.qint8)
qlinear = Linear(mod.in_features, mod.out_features)
qlinear.set_weight_bias(qweight, mod.bias)
return qlinear
| [
"[email protected]"
] | |
574a978e3031c00ce0d37a59ee379800c4f2d854 | a3b306df800059a5b74975793251a28b8a5f49c7 | /Graphs/LX-2/molecule_otsu = False/BioImageXD-1.0/ITK/lib/InsightToolkit/WrapITK/Configuration/Languages/SwigInterface/pygccxml-1.0.0/pygccxml/parser/scanner.py | 967c877a080cf5e421a7027aab7eb78b513ab7b5 | [
"BSL-1.0"
] | permissive | giacomo21/Image-analysis | dc17ba2b6eb53f48963fad931568576fda4e1349 | ea8bafa073de5090bd8f83fb4f5ca16669d0211f | refs/heads/master | 2016-09-06T21:42:13.530256 | 2013-07-22T09:35:56 | 2013-07-22T09:35:56 | 11,384,784 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 21,301 | py | # Copyright 2004-2008 Roman Yakovenko.
# Distributed under the Boost Software License, Version 1.0. (See
# accompanying file LICENSE_1_0.txt or copy at
# http://www.boost.org/LICENSE_1_0.txt)
import os
import types
import pprint
import xml.sax
import warnings
import xml.sax.handler
from pygccxml.declarations import *
from pygccxml import utils
##convention
#XML_NN - XML Node Name
#XML_AN - XML Attribute Name
#also those constants are sorted for easy searching.
XML_AN_ABSTRACT = "abstract"
XML_AN_ACCESS = "access"
XML_AN_ALIGN = "align"
XML_AN_ARTIFICIAL = "artificial"
XML_AN_ATTRIBUTES = "attributes"
XML_AN_BASE_TYPE = "basetype"
XML_AN_BASES = "bases"
XML_AN_BITS = "bits"
XML_AN_CONST = "const"
XML_AN_CONTEXT = "context"
XML_AN_CVS_REVISION = "cvs_revision"
XML_AN_DEFAULT = "default"
XML_AN_DEMANGLED = "demangled"
XML_AN_EXTERN = "extern"
XML_AN_FILE = "file"
XML_AN_ID = "id"
XML_AN_INCOMPLETE = "incomplete"
XML_AN_INIT = "init"
XML_AN_LINE = "line"
XML_AN_MANGLED = "mangled"
XML_AN_MAX = "max"
XML_AN_MEMBERS = "members"
XML_AN_MUTABLE = "mutable"
XML_AN_NAME = "name"
XML_AN_OFFSET = "offset"
XML_AN_PURE_VIRTUAL = "pure_virtual"
XML_AN_RESTRICT = "restrict"
XML_AN_RETURNS = "returns"
XML_AN_SIZE = "size"
XML_AN_STATIC = "static"
XML_AN_THROW = "throw"
XML_AN_TYPE = "type"
XML_AN_VIRTUAL = "virtual"
XML_AN_VOLATILE = "volatile"
XML_NN_ARGUMENT = "Argument"
XML_NN_ARRAY_TYPE = "ArrayType"
XML_NN_CASTING_OPERATOR = "Converter"
XML_NN_CLASS = "Class"
XML_NN_CONSTRUCTOR = "Constructor"
XML_NN_CV_QUALIFIED_TYPE = "CvQualifiedType"
XML_NN_DESTRUCTOR = "Destructor"
XML_NN_ELLIPSIS = "Ellipsis"
XML_NN_ENUMERATION = "Enumeration"
XML_NN_ENUMERATION_VALUE = "EnumValue"
XML_NN_FIELD = "Field"
XML_NN_FILE = "File"
XML_NN_FUNCTION = "Function"
XML_NN_FUNCTION_TYPE = "FunctionType"
XML_NN_FUNDAMENTAL_TYPE = "FundamentalType"
XML_NN_FREE_OPERATOR = "OperatorFunction"
XML_NN_GCC_XML = "GCC_XML"
XML_NN_MEMBER_OPERATOR = "OperatorMethod"
XML_NN_METHOD = "Method"
XML_NN_METHOD_TYPE = "MethodType"
XML_NN_NAMESPACE = "Namespace"
XML_NN_OFFSET_TYPE = "OffsetType"
XML_NN_POINTER_TYPE = "PointerType"
XML_NN_REFERENCE_TYPE = "ReferenceType"
XML_NN_ROOT = "GCC_XML"
XML_NN_STRUCT = "Struct"
XML_NN_TYPEDEF = "Typedef"
XML_NN_UNION = "Union"
XML_NN_VARIABLE = "Variable"
class scanner_t( xml.sax.handler.ContentHandler ):
def __init__(self, gccxml_file, decl_factory, *args ):
xml.sax.handler.ContentHandler.__init__(self, *args )
self.logger = utils.loggers.gccxml
self.gccxml_file = gccxml_file
#defining parsing tables
self.__readers = {
XML_NN_FILE : self.__read_file
, XML_NN_NAMESPACE : self.__read_namespace
, XML_NN_ENUMERATION : self.__read_enumeration
, XML_NN_ENUMERATION_VALUE : self.__read_enumeration_value
, XML_NN_ARRAY_TYPE : self.__read_array_type
, XML_NN_CV_QUALIFIED_TYPE : self.__read_cv_qualified_type
, XML_NN_POINTER_TYPE : self.__read_pointer_type
, XML_NN_REFERENCE_TYPE : self.__read_reference_type
, XML_NN_FUNDAMENTAL_TYPE : self.__read_fundamental_type
, XML_NN_ARGUMENT : self.__read_argument
, XML_NN_FUNCTION_TYPE : self.__read_function_type
, XML_NN_METHOD_TYPE : self.__read_method_type
, XML_NN_OFFSET_TYPE : self.__read_offset_type
, XML_NN_TYPEDEF : self.__read_typedef
, XML_NN_VARIABLE : self.__read_variable
, XML_NN_CLASS : self.__read_class
, XML_NN_STRUCT : self.__read_struct
, XML_NN_UNION : self.__read_union
, XML_NN_FIELD : self.__read_field
, XML_NN_CASTING_OPERATOR : self.__read_casting_operator
, XML_NN_CONSTRUCTOR : self.__read_constructor
, XML_NN_DESTRUCTOR : self.__read_destructor
, XML_NN_FUNCTION : self.__read_function
, XML_NN_FREE_OPERATOR : self.__read_free_operator
, XML_NN_MEMBER_OPERATOR : self.__read_member_operator
, XML_NN_METHOD : self.__read_method
, XML_NN_GCC_XML : self.__read_version
, XML_NN_ELLIPSIS : self.__read_ellipsis
}
self.deep_declarations = [
XML_NN_CASTING_OPERATOR
, XML_NN_CONSTRUCTOR
, XML_NN_DESTRUCTOR
, XML_NN_ENUMERATION
, XML_NN_FILE
, XML_NN_FUNCTION
, XML_NN_FREE_OPERATOR
, XML_NN_MEMBER_OPERATOR
, XML_NN_METHOD
, XML_NN_FUNCTION_TYPE
, XML_NN_METHOD_TYPE
]
assert isinstance( decl_factory, decl_factory_t )
self.__decl_factory = decl_factory
#mapping from id -> decl
self.__declarations = {}
#list of all read declarations
self.__calldefs = []
#list of enums I need later
self.__enums = []
#mapping from id -> type
self.__types = {}
#mapping from id -> file
self.__files = {}
#mapping between decl id -> access
self.__access = {}
#current object under construction
self.__inst = None
#mapping from id to members
self.__members = {}
self.__compiler = None
def read( self ):
xml.sax.parse( self.gccxml_file, self )
def endDocument( self ):
#updating membership
members_mapping = {}
for gccxml_id, members in self.__members.iteritems():
decl = self.__declarations.get( gccxml_id, None )
if not decl or not isinstance( decl, scopedef_t):
continue
members_mapping[ id( decl ) ] = members
self.__members = members_mapping
def declarations(self):
return self.__declarations
def calldefs( self ):
return self.__calldefs
def enums(self):
return self.__enums
def types(self):
return self.__types
def files(self):
return self.__files
def access(self):
return self.__access
def members(self):
return self.__members
def startElementNS(self, name, qname, attrs):
return self.startElement( name[1], attrs )
def endElementNS(self, name, qname):
return self.endElement( name[1] )
def startElement(self, name, attrs):
try:
if name not in self.__readers:
return
obj = self.__readers[name]( attrs )
if not obj:
return #it means that we worked on internals
#for example EnumValue of function argument
if name in self.deep_declarations:
self.__inst = obj
self.__read_access( attrs )
element_id = attrs.get(XML_AN_ID, None)
if isinstance( obj, declaration_t ):
obj.compiler = self.__compiler
self.__update_membership( attrs )
self.__declarations[ element_id ] = obj
if not isinstance( obj, namespace_t ):
self.__read_location( obj, attrs )
if isinstance( obj, class_t):
self.__read_bases( obj, attrs )
self.__read_artificial(obj, attrs)
self.__read_mangled( obj, attrs)
self.__read_demangled( obj, attrs)
self.__read_attributes(obj, attrs)
elif isinstance( obj, type_t ):
self.__types[ element_id ] = obj
self.__read_byte_size(obj, attrs)
self.__read_byte_align(obj, attrs)
elif isinstance( obj, types.StringTypes ):
self.__files[ element_id ] = obj
else:
self.logger.warning( 'Unknown object type has been found.'
+ ' Please report this bug to pygccxml development team.' )
except Exception, error:
msg = 'error occured, while parsing element with name "%s" and attrs "%s".'
msg = msg + os.linesep + 'Error: %s.' % str( error )
self.logger.error( msg % ( name, pprint.pformat( attrs.keys() ) ) )
raise
def endElement(self, name):
if name in self.deep_declarations:
self.__inst = None
def __read_location(self, decl, attrs):
decl.location = location_t( file_name=attrs[XML_AN_FILE], line=int(attrs[XML_AN_LINE]))
def __update_membership(self, attrs):
parent = attrs.get( XML_AN_CONTEXT, None )
if not parent:
return
if not self.__members.has_key( parent ):
self.__members[ parent ] = []
self.__members[parent].append( attrs[XML_AN_ID] )
def __read_members(self, decl, attrs ):
decl.declarations = attrs.get(XML_AN_MEMBERS, "")
def __read_bases(self, decl, attrs ):
decl.bases = attrs.get( XML_AN_BASES, "" )
def __read_artificial( self, decl, attrs ):
decl.is_artificial = attrs.get( XML_AN_ARTIFICIAL, False )
def __read_mangled( self, decl, attrs ):
decl.mangled = attrs.get( XML_AN_MANGLED, None )
def __read_demangled( self, decl, attrs ):
decl.demangled = attrs.get( XML_AN_DEMANGLED, None )
def __read_attributes( self, decl, attrs ):
decl.attributes = attrs.get( XML_AN_ATTRIBUTES, None )
def __read_access( self, attrs ):
self.__access[ attrs[XML_AN_ID] ] = attrs.get( XML_AN_ACCESS, ACCESS_TYPES.PUBLIC )
def __read_byte_size (self, decl, attrs):
"Using duck typing to set the size instead of in constructor"
size = attrs.get(XML_AN_SIZE, 0)
decl.byte_size = int(size)/8 # Make sure the size is in bytes instead of bits
def __read_byte_offset (self, decl, attrs):
"Using duck typing to set the offset instead of in constructor"
offset = attrs.get(XML_AN_OFFSET, 0)
decl.byte_offset = int(offset)/8 # Make sure the size is in bytes instead of bits
def __read_byte_align (self, decl, attrs):
"Using duck typing to set the alignment"
align = attrs.get(XML_AN_ALIGN, 0)
decl.byte_align = int(align)/8 # Make sure the size is in bytes instead of bits
def __read_root(self, attrs):
pass
def __read_file( self, attrs ):
return attrs.get( XML_AN_NAME, '' )
def __read_namespace(self, attrs):
ns_name = attrs.get( XML_AN_NAME, '' )
if '.' in ns_name:
#if '.' in namespace then this is mangled namespace -> in c++ namespace{...}
#that is almost true: gcc mangale name using top file name.
#almost all files has '.' in name
ns_name = ''
return self.__decl_factory.create_namespace( name=ns_name )
def __read_enumeration(self, attrs):
enum_name = attrs.get( XML_AN_NAME, '' )
if '$_' in enum_name or '._' in enum_name:
#it means that this is unnamed enum. in c++ enum{ x };
enum_name = ''
decl = self.__decl_factory.create_enumeration( name=enum_name )
self.__read_byte_size(decl, attrs)
self.__read_byte_align(decl, attrs)
self.__enums.append( decl )
return decl
def __read_enumeration_value( self, attrs ):
name = attrs.get( XML_AN_NAME, '' )
num = int(attrs[XML_AN_INIT])
self.__inst.append_value(name, num)
def __guess_int_value( self, value_as_str ):
#returns instance of int or None
#if gcc compiled the code, than it is correct!
numeric_suffix_letters = 'UuLlFf'
for s in numeric_suffix_letters:
value_as_str = value_as_str.replace( s, '' )
try:
return int( value_as_str )
except ValueError:
try:
return int( value_as_str, 16 )
except ValueError:
return None
def __read_array_type( self, attrs ):
type_ = attrs[ XML_AN_TYPE ]
size = self.__guess_int_value( attrs.get(XML_AN_MAX, '' ) )
if size is None:
size = array_t.SIZE_UNKNOWN
msg = 'unable to find out array size from expression "%s"' % attrs[ XML_AN_MAX ]
# warning is absolutely useless without much clue
# warnings.warn( msg )
return array_t( type_, size + 1 )
def __read_cv_qualified_type( self, attrs ):
if attrs.has_key( XML_AN_CONST ):
return const_t( attrs[XML_AN_TYPE] )
elif attrs.has_key( XML_AN_VOLATILE ):
return volatile_t( attrs[XML_AN_TYPE] )
elif attrs.has_key( XML_AN_RESTRICT ):
return restrict_t( attrs[XML_AN_TYPE] )
else:
assert 0
def __read_pointer_type( self, attrs ):
return pointer_t( attrs[XML_AN_TYPE] )
def __read_reference_type( self, attrs ):
return reference_t( attrs[XML_AN_TYPE] )
def __read_fundamental_type(self, attrs ):
try:
return FUNDAMENTAL_TYPES[ attrs.get( XML_AN_NAME, '' ) ]
except KeyError:
raise RuntimeError( "pygccxml error: unable to find fundamental type with name '%s'."
% attrs.get( XML_AN_NAME, '' ) )
def __read_offset_type( self,attrs ):
base = attrs[ XML_AN_BASE_TYPE ]
type_ = attrs[ XML_AN_TYPE ]
if '0.9' in self.__compiler:
return pointer_t( member_variable_type_t( class_inst=base, variable_type=type_ ) )
else:
return member_variable_type_t( class_inst=base, variable_type=type_ )
def __read_argument( self, attrs ):
if isinstance( self.__inst, calldef_type_t ):
self.__inst.arguments_types.append( attrs[XML_AN_TYPE] )
else:
argument = argument_t()
argument.name = attrs.get( XML_AN_NAME, 'arg%d' % len(self.__inst.arguments) )
argument.type = attrs[XML_AN_TYPE]
argument.default_value = attrs.get( XML_AN_DEFAULT, None )
self.__read_attributes( argument, attrs )
if argument.default_value == '<gccxml-cast-expr>':
argument.default_value = None
self.__inst.arguments.append( argument )
def __read_ellipsis( self, attrs ):
if isinstance( self.__inst, calldef_type_t ):
self.__inst.arguments_types.append( '...' )
else:
argument = argument_t( type='...' )
self.__inst.arguments.append( argument )
def __read_calldef( self, calldef, attrs, is_declaration ):
#destructor for example doesn't have return type
calldef.return_type = attrs.get( XML_AN_RETURNS, None )
if is_declaration:
self.__calldefs.append( calldef )
calldef.name = attrs.get(XML_AN_NAME, '')
calldef.has_extern = attrs.get( XML_AN_EXTERN, False )
throw_stmt = attrs.get( XML_AN_THROW, None )
if None is throw_stmt:
calldef.does_throw = True
calldef.exceptions = []
elif "" == throw_stmt:
calldef.does_throw = False
calldef.exceptions = []
else:
calldef.does_throw = True
calldef.exceptions = throw_stmt.split()
def __read_member_function( self, calldef, attrs, is_declaration ):
self.__read_calldef( calldef, attrs, is_declaration )
calldef.has_const = attrs.get( XML_AN_CONST, False )
if is_declaration:
calldef.has_static = attrs.get( XML_AN_STATIC, False )
if attrs.has_key( XML_AN_PURE_VIRTUAL ):
calldef.virtuality = VIRTUALITY_TYPES.PURE_VIRTUAL
elif attrs.has_key( XML_AN_VIRTUAL ):
calldef.virtuality = VIRTUALITY_TYPES.VIRTUAL
else:
calldef.virtuality = VIRTUALITY_TYPES.NOT_VIRTUAL
else:
calldef.class_inst = attrs[XML_AN_BASE_TYPE]
def __read_function_type(self, attrs):
answer = free_function_type_t()
self.__read_calldef( answer, attrs, False )
return answer
def __read_method_type(self, attrs):
answer = member_function_type_t()
self.__read_member_function( answer, attrs, False )
return answer
def __read_typedef(self, attrs ):
return self.__decl_factory.create_typedef( name=attrs.get( XML_AN_NAME, '' ), type=attrs[XML_AN_TYPE])
def __read_variable(self, attrs ):
type_qualifiers = type_qualifiers_t()
type_qualifiers.has_mutable = attrs.get(XML_AN_MUTABLE, False)
type_qualifiers.has_static = attrs.get(XML_AN_EXTERN, False)
bits = attrs.get( XML_AN_BITS, None )
if bits:
bits = int( bits )
decl = self.__decl_factory.create_variable( name=attrs.get( XML_AN_NAME, '' )
, type=attrs[XML_AN_TYPE]
, type_qualifiers=type_qualifiers
, value=attrs.get( XML_AN_INIT, None )
, bits=bits)
self.__read_byte_offset(decl, attrs)
return decl
__read_field = __read_variable #just a synonim
def __read_class_impl(self, class_type, attrs):
decl = None
name = attrs.get(XML_AN_NAME, '')
if '$' in name or '.' in name:
name = ''
if attrs.has_key( XML_AN_INCOMPLETE ):
decl = self.__decl_factory.create_class_declaration(name=name)
else:
decl = self.__decl_factory.create_class( name=name, class_type=class_type )
if attrs.get( XML_AN_ABSTRACT, False ):
decl.is_abstract = True
else:
decl.is_abstract = False
self.__read_byte_size(decl, attrs)
self.__read_byte_align(decl, attrs)
return decl
def __read_class( self, attrs ):
return self.__read_class_impl( CLASS_TYPES.CLASS, attrs )
def __read_struct( self, attrs ):
return self.__read_class_impl( CLASS_TYPES.STRUCT, attrs )
def __read_union( self, attrs ):
return self.__read_class_impl( CLASS_TYPES.UNION, attrs )
def __read_casting_operator(self, attrs ):
operator = self.__decl_factory.create_casting_operator()
self.__read_member_function( operator, attrs, True )
return operator
def __read_constructor( self, attrs ):
constructor = self.__decl_factory.create_constructor()
self.__read_member_function( constructor, attrs, True )
return constructor
def __read_function(self, attrs):
gfunction = self.__decl_factory.create_free_function()
self.__read_calldef( gfunction, attrs, True )
return gfunction
def __read_method(self, attrs):
mfunction = self.__decl_factory.create_member_function()
self.__read_member_function( mfunction, attrs, True )
return mfunction
def __read_destructor(self, attrs):
destructor = self.__decl_factory.create_destructor()
self.__read_member_function( destructor, attrs, True )
destructor.name = '~' + destructor.name
return destructor
def __read_free_operator(self, attrs ):
operator = self.__decl_factory.create_free_operator()
self.__read_member_function( operator, attrs, True )
if 'new' in operator.name or 'delete' in operator.name:
operator.name = 'operator ' + operator.name
else:
operator.name = 'operator' + operator.name
return operator
def __read_member_operator(self, attrs):
operator = self.__decl_factory.create_member_operator()
self.__read_member_function( operator, attrs, True )
if 'new' in operator.name or 'delete' in operator.name:
operator.name = 'operator ' + operator.name
else:
operator.name = 'operator' + operator.name
return operator
def __read_version(self, attrs):
logger = utils.loggers.cxx_parser
version = float( attrs.get(XML_AN_CVS_REVISION, 0.6) )
if version is None:
logger.info ( 'GCCXML version - 0.6' )
self.__compiler = compilers.GCC_XML_06
elif version <= 1.114:
logger.info ( 'GCCXML version - 0.7' )
self.__compiler = compilers.GCC_XML_07
elif version in ( 1.115, 1.116, 1.117, 1.118, 1.119, 1.120, 1.121 ):
logger.info ( 'GCCXML version - 0.9 BUGGY' )
self.__compiler = compilers.GCC_XML_09_BUGGY
else:
logger.info ( 'GCCXML version - 0.9' )
self.__compiler = compilers.GCC_XML_09
| [
"[email protected]"
] | |
094f154dc9007753efa071553ad662baa9cb66f4 | 9ae6ce54bf9a2a86201961fdbd5e7b0ec913ff56 | /google/ads/googleads/v10/enums/types/matching_function_operator.py | 11a366438b14b5a9625600a5fa27c1e72a1abe49 | [
"Apache-2.0"
] | permissive | GerhardusM/google-ads-python | 73b275a06e5401e6b951a6cd99af98c247e34aa3 | 676ac5fcb5bec0d9b5897f4c950049dac5647555 | refs/heads/master | 2022-07-06T19:05:50.932553 | 2022-06-17T20:41:17 | 2022-06-17T20:41:17 | 207,535,443 | 0 | 0 | Apache-2.0 | 2019-09-10T10:58:55 | 2019-09-10T10:58:55 | null | UTF-8 | Python | false | false | 1,228 | py | # -*- coding: utf-8 -*-
# Copyright 2022 Google LLC
#
# 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 proto # type: ignore
__protobuf__ = proto.module(
package="google.ads.googleads.v10.enums",
marshal="google.ads.googleads.v10",
manifest={
"MatchingFunctionOperatorEnum",
},
)
class MatchingFunctionOperatorEnum(proto.Message):
r"""Container for enum describing matching function operator."""
class MatchingFunctionOperator(proto.Enum):
r"""Possible operators in a matching function."""
UNSPECIFIED = 0
UNKNOWN = 1
IN = 2
IDENTITY = 3
EQUALS = 4
AND = 5
CONTAINS_ANY = 6
__all__ = tuple(sorted(__protobuf__.manifest))
| [
"[email protected]"
] | |
233695bb1c57dade93d46c11765d5914bc3e29e0 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03039/s199470028.py | 5afbcf0436e1e2a41276ee67cfaa4072153695af | [] | no_license | Aasthaengg/IBMdataset | 7abb6cbcc4fb03ef5ca68ac64ba460c4a64f8901 | f33f1c5c3b16d0ea8d1f5a7d479ad288bb3f48d8 | refs/heads/main | 2023-04-22T10:22:44.763102 | 2021-05-13T17:27:22 | 2021-05-13T17:27:22 | 367,112,348 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 673 | py | from itertools import combinations
def solve(N, M, K):
#A = [(n, m) for n in range(N) for m in range(M)]
r = 0
for x in range(N):
r += x * (N - x) * M * M
for y in range(M):
r += y * (M - y) * N * N
return r
def main():
N, M, K = map(int, input().split())
g1 = [1, 1]
g2 = [1, 1]
inverse = [0, 1]
mod = 10 ** 9 + 7
for i in range(2, N * M):
g1.append((g1[-1] * i) % mod)
inverse.append((-inverse[mod % i] * (mod // i)) % mod)
g2.append((g2[-1] * inverse[-1]) % mod)
t = solve(N, M, 2)
for k in range(2, K):
t = t * (N * M - k) * inverse[k - 1] % mod
print(t)
main()
| [
"[email protected]"
] | |
6aa35f7716f196962697548423b8318a68aeb789 | 981e6d9d34a91852407d45c4b7863779e228a516 | /venv/bin/django-admin.py | 92b413158aeac93a5d38ab2670da12a6bbeeaa4c | [] | no_license | starwayagency/astrolabium_viber_bot | 5062ffcb7b35b3608f9434fd486e5806e9084ae1 | ec4e699bbc32e7275da0f12d77a0ae5cf32d000e | refs/heads/master | 2023-08-18T06:36:43.315701 | 2021-10-24T18:04:31 | 2021-10-24T18:04:31 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 710 | py | #!/home/jurgeon/projects/astrolabium/astrolabium_viber_bot/venv/bin/python3
# When the django-admin.py deprecation ends, remove this script.
import warnings
from django.core import management
try:
from django.utils.deprecation import RemovedInDjango40Warning
except ImportError:
raise ImportError(
'django-admin.py was deprecated in Django 3.1 and removed in Django '
'4.0. Please manually remove this script from your virtual environment '
'and use django-admin instead.'
)
if __name__ == "__main__":
warnings.warn(
'django-admin.py is deprecated in favor of django-admin.',
RemovedInDjango40Warning,
)
management.execute_from_command_line()
| [
"[email protected]"
] | |
87a8307caea5976b9dea43adb38dbb519f275bcd | 3474b315da3cc5cb3f7823f19a18b63a8da6a526 | /scratch/KRAMS/src/apps/scratch/jakub/nonlocal_averaging/2d_rotation.py | 44dd801a3538e23552901d09a1db0e020abcbe31 | [] | no_license | h4ck3rm1k3/scratch | 8df97462f696bc2be00f1e58232e1cd915f0fafd | 0a114a41b0d1e9b2d68dbe7af7cf34db11512539 | refs/heads/master | 2021-01-21T15:31:38.718039 | 2013-09-19T10:48:24 | 2013-09-19T10:48:24 | 29,173,525 | 0 | 0 | null | 2015-01-13T04:58:57 | 2015-01-13T04:58:56 | null | UTF-8 | Python | false | false | 5,857 | py | from ibvpy.api import \
TStepper as TS, RTraceGraph, TLoop, \
TLine, BCDof, IBVPSolve as IS, DOTSEval, FEDomain, FERefinementGrid,\
FEGrid, BCSlice
from apps.scratch.jakub.mlab.mlab_trace import RTraceDomainListField
from ibvpy.mats.mats2D.mats2D_sdamage.mats2D_sdamage import MATS2DScalarDamage
from ibvpy.mats.mats2D.mats2D_elastic.mats2D_elastic import MATS2DElastic
from ibvpy.mats.mats2D.mats2D_sdamage.strain_norm2d import Euclidean, Mazars, Rankine
from ibvpy.fets.fets2D.fets2D4q import FETS2D4Q
from ibvpy.fets.fets2D.fets2D4q9u import FETS2D4Q9U
from ibvpy.fets.fets2D.fets2D4q8u import FETS2D4Q8U
from averaging import UniformDomainAveraging, LinearAF, QuarticAF
from numpy import array, cos, sin, pi,sqrt, deg2rad, arctan
from mathkit.mfn.mfn_line.mfn_line import MFnLineArray
from ibvpy.dots.avg_fn import AveragingFunction, LinearAF,QuarticAF
def app():
mp = MATS2DScalarDamage(E = 1.,
nu = 0.2,
epsilon_0 = 1.e-3,
epsilon_f = 5.e-3,
#stiffness = "algorithmic",
stress_state = "plane_strain",
stiffness = "secant",
strain_norm = Euclidean())
me = MATS2DElastic(E = 34e3,
nu = 0.,
stress_state = "plane_strain")
fets_eval = FETS2D4Q9U(mats_eval = me, ngp_r = 3, ngp_s = 3)
# Discretization
fe_domain = FEDomain()
fe_level1 = FERefinementGrid( domain = fe_domain,
fets_eval = fets_eval,
averaging = QuarticAF(radius = 0.25,
correction = True))
fe_grid = FEGrid( #coord_min = (-1.,-.5,0.),
coord_max = (2.,1.,0.),
shape = (20,10),
fets_eval = fets_eval,
level = fe_level1 )
mf = MFnLineArray( #xdata = arange(10),
ydata = array([0,1,1]) )
angle = 2.#[deg]
angle_r = deg2rad(angle)
s_angle = sin(angle_r/2.)
c_angle = cos(angle_r/2.)
l_diag = sqrt(5.)
d_angle = arctan(0.5)
s_diag = sin((angle_r+d_angle))
c_diag = cos((angle_r+d_angle))
ts = TS(sdomain = fe_domain,
# conversion to list (square brackets) is only necessary for slicing of
# single dofs, e.g "get_left_dofs()[0,1]" which elsewise retuns an integer only
bcond_list = [
# constraint for all left dofs in y-direction:
BCSlice(var='u', slice = fe_grid[0,0,0,0],dims=[0,1], value = 0.),
BCSlice(var='u', slice = fe_grid[-1,0,-1,0],dims=[1],
time_function = mf.get_value, value = 2*s_angle*2*c_angle),
BCSlice(var='u', slice = fe_grid[-1,0,-1,0],dims=[0],
time_function = mf.get_value, value = - 2*s_angle**2*2),
BCSlice(var='u', slice = fe_grid[0,-1,0,-1],dims=[0],
time_function = mf.get_value, value = - 1*s_angle*2*c_angle),
BCSlice(var='u', slice = fe_grid[0,-1,0,-1],dims=[1],
time_function = mf.get_value, value = - 1*s_angle**2*2),
BCSlice(var='u', slice = fe_grid[-1,-1,-1,-1],dims = [1],
time_function = mf.get_value, value = s_diag*l_diag - 1.),
BCSlice(var='u', slice = fe_grid[-1,-1,-1,-1],dims = [0],
time_function = mf.get_value, value = c_diag*l_diag - 2.)
],
rtrace_list = [
# RTraceGraph(name = 'Fi,right over u_right (iteration)' ,
# var_y = 'F_int', idx_y = right_dof,
# var_x = 'U_k', idx_x = right_dof,
# record_on = 'update'),
RTraceDomainListField(name = 'Deformation' ,
var = 'eps', idx = 0,
record_on = 'update'),
RTraceDomainListField(name = 'Displacement' ,
var = 'u', idx = 1,
record_on = 'update',
warp = True),
RTraceDomainListField(name = 'Damage' ,
var = 'omega', idx = 0,
record_on = 'update',
warp = True),
# RTraceDomainField(name = 'Stress' ,
# var = 'sig', idx = 0,
# record_on = 'update'),
# RTraceDomainField(name = 'N0' ,
# var = 'N_mtx', idx = 0,
# record_on = 'update')
]
)
# Add the time-loop control
#
tl = TLoop( tstepper = ts,
tolerance = 1.e-4,
tline = TLine( min = 0.0, step = 1., max = 2.0 ))
tl.eval()
# Put the whole stuff into the simulation-framework to map the
# individual pieces of definition into the user interface.
#
from ibvpy.plugins.ibvpy_app import IBVPyApp
ibvpy_app = IBVPyApp( ibv_resource = ts )
ibvpy_app.main()
if __name__ == '__main__':
app() | [
"Axel@Axel-Pc"
] | Axel@Axel-Pc |
2a09d365cb4047774eb081599078201fca564efa | 4d8cfbfe6498d0808eefa8983b07940e006c49fb | /ges/forms.py | 7da85805e7e5201851422ce41a3674ddf51edaf3 | [] | no_license | nikolzp/ges_google | 4b7d18e4fa039a0d4b21e5d71b2a249df958ed2b | fe89f150a624411867877491f127d71eff92bfc9 | refs/heads/master | 2020-03-12T00:59:24.072648 | 2018-04-20T14:43:38 | 2018-04-20T14:43:38 | 130,363,767 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 407 | py | from django import forms
class GesFilterForm(forms.Form):
max_power = forms.IntegerField(label='Мощность от МВт', required=False)
min_power = forms.IntegerField(label='Мощность до МВт', required=False)
max_area = forms.IntegerField(label='Объем от кв.км', required=False)
min_area = forms.IntegerField(label='Объем до кв.км', required=False) | [
"[email protected]"
] | |
92208027272a6e16363b60e6e399cc6ec08fcbb5 | f3d757f421497e19f2de0d3be21b9ae381511577 | /phoneconfirmation/urls.py | 57e758f3e36f49419e6051dbeed37811f6ed3296 | [
"MIT"
] | permissive | pinax/pinax-phone-confirmation | 526ba350a5bbaaa58f229fad224cf9db41f5bcbc | 102d997db0a7cc00bd862a94987338c25ba24f98 | refs/heads/master | 2023-06-22T15:57:32.364754 | 2019-04-11T23:59:58 | 2019-04-11T23:59:58 | 22,494,944 | 12 | 3 | MIT | 2019-04-11T23:46:54 | 2014-08-01T04:14:23 | Python | UTF-8 | Python | false | false | 369 | py | from django.conf.urls import url, patterns
urlpatterns = patterns(
"phoneconfirmation.views",
url(r"^$", "phone_list", name="phone_list"),
url(r"^confirm_phone/(\w+)/$", "confirm_phone", name="phone_confirm"),
url(r"^action/$", "action", name="phone_action"),
url(r"^get-country-for-code/$", "get_country_for_code", name="get_country_for_code")
)
| [
"[email protected]"
] | |
bf1b684d24bbc4cf5a7179c2bf9f39cda4883aac | f9d564f1aa83eca45872dab7fbaa26dd48210d08 | /huaweicloud-sdk-eihealth/huaweicloudsdkeihealth/v1/model/delete_nextflow_job_request.py | 83b25425a82c6befc3917dc50bb320e6b8812723 | [
"Apache-2.0"
] | permissive | huaweicloud/huaweicloud-sdk-python-v3 | cde6d849ce5b1de05ac5ebfd6153f27803837d84 | f69344c1dadb79067746ddf9bfde4bddc18d5ecf | refs/heads/master | 2023-09-01T19:29:43.013318 | 2023-08-31T08:28:59 | 2023-08-31T08:28:59 | 262,207,814 | 103 | 44 | NOASSERTION | 2023-06-22T14:50:48 | 2020-05-08T02:28:43 | Python | UTF-8 | Python | false | false | 4,327 | py | # coding: utf-8
import six
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
class DeleteNextflowJobRequest:
"""
Attributes:
openapi_types (dict): The key is attribute name
and the value is attribute type.
attribute_map (dict): The key is attribute name
and the value is json key in definition.
"""
sensitive_list = []
openapi_types = {
'eihealth_project_id': 'str',
'job_id': 'str'
}
attribute_map = {
'eihealth_project_id': 'eihealth_project_id',
'job_id': 'job_id'
}
def __init__(self, eihealth_project_id=None, job_id=None):
"""DeleteNextflowJobRequest
The model defined in huaweicloud sdk
:param eihealth_project_id: 医疗智能体平台项目ID,您可以在EIHealth平台单击所需的项目名称,进入项目设置页面查看。
:type eihealth_project_id: str
:param job_id: 作业id
:type job_id: str
"""
self._eihealth_project_id = None
self._job_id = None
self.discriminator = None
self.eihealth_project_id = eihealth_project_id
self.job_id = job_id
@property
def eihealth_project_id(self):
"""Gets the eihealth_project_id of this DeleteNextflowJobRequest.
医疗智能体平台项目ID,您可以在EIHealth平台单击所需的项目名称,进入项目设置页面查看。
:return: The eihealth_project_id of this DeleteNextflowJobRequest.
:rtype: str
"""
return self._eihealth_project_id
@eihealth_project_id.setter
def eihealth_project_id(self, eihealth_project_id):
"""Sets the eihealth_project_id of this DeleteNextflowJobRequest.
医疗智能体平台项目ID,您可以在EIHealth平台单击所需的项目名称,进入项目设置页面查看。
:param eihealth_project_id: The eihealth_project_id of this DeleteNextflowJobRequest.
:type eihealth_project_id: str
"""
self._eihealth_project_id = eihealth_project_id
@property
def job_id(self):
"""Gets the job_id of this DeleteNextflowJobRequest.
作业id
:return: The job_id of this DeleteNextflowJobRequest.
:rtype: str
"""
return self._job_id
@job_id.setter
def job_id(self, job_id):
"""Sets the job_id of this DeleteNextflowJobRequest.
作业id
:param job_id: The job_id of this DeleteNextflowJobRequest.
:type job_id: str
"""
self._job_id = job_id
def to_dict(self):
"""Returns the model properties as a dict"""
result = {}
for attr, _ in six.iteritems(self.openapi_types):
value = getattr(self, attr)
if isinstance(value, list):
result[attr] = list(map(
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
value
))
elif hasattr(value, "to_dict"):
result[attr] = value.to_dict()
elif isinstance(value, dict):
result[attr] = dict(map(
lambda item: (item[0], item[1].to_dict())
if hasattr(item[1], "to_dict") else item,
value.items()
))
else:
if attr in self.sensitive_list:
result[attr] = "****"
else:
result[attr] = value
return result
def to_str(self):
"""Returns the string representation of the model"""
import simplejson as json
if six.PY2:
import sys
reload(sys)
sys.setdefaultencoding("utf-8")
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
def __repr__(self):
"""For `print`"""
return self.to_str()
def __eq__(self, other):
"""Returns true if both objects are equal"""
if not isinstance(other, DeleteNextflowJobRequest):
return False
return self.__dict__ == other.__dict__
def __ne__(self, other):
"""Returns true if both objects are not equal"""
return not self == other
| [
"[email protected]"
] | |
4b7ffa1ba61b1b2c13a7c33cbe25688ed235e748 | 673e829dda9583c8dd2ac8d958ba1dc304bffeaf | /data/multilingual/Latn.BAX/Mono_16/pdf_to_json_test_Latn.BAX_Mono_16.py | 419f2ec7b49e7c247dfa03dc2764cd5ebdafafec | [
"BSD-3-Clause"
] | permissive | antoinecarme/pdf_to_json_tests | 58bab9f6ba263531e69f793233ddc4d33b783b7e | d57a024fde862e698d916a1178f285883d7a3b2f | refs/heads/master | 2021-01-26T08:41:47.327804 | 2020-02-27T15:54:48 | 2020-02-27T15:54:48 | 243,359,934 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 303 | py | import pdf_to_json as p2j
import json
url = "file:data/multilingual/Latn.BAX/Mono_16/udhr_Latn.BAX_Mono_16.pdf"
lConverter = p2j.pdf_to_json.pdf_to_json_converter()
lConverter.mImageHashOnly = True
lDict = lConverter.convert(url)
print(json.dumps(lDict, indent=4, ensure_ascii=False, sort_keys=True))
| [
"[email protected]"
] | |
7e5bdb95eceb8d543706dd352ce4101905da500f | 95c71453ed6cc6f9b94f38a3c1655680618d71a4 | /kickstart/DE/EC.py | 477f7b6f874fc7fe1f0ee7f7bd160a909212de3b | [] | no_license | ZX1209/gl-algorithm-practise | 95f4d6627c1dbaf2b70be90149d897f003f9cb3a | dd0a1c92414e12d82053c3df981897e975063bb8 | refs/heads/master | 2020-05-16T14:56:34.568878 | 2019-12-27T07:37:11 | 2019-12-27T07:37:11 | 183,116,501 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,112 | py | from collections import Counter
def isOdd(n):
return n % 2
def sortl(ls):
sums = Counter()
tmpl = []
for i in range(len(ls)):
sums[i] = sum(ls[i])
for i, j in sums.most_common():
tmpl.append(ls[i])
return tmpl
def rate(lhu,lla):
win = 0
total = 0
for hu in lhu:
for la in lla:
total += 1
if hu>la:
win+=1
return wi
def dfs()
# la win >=
# hu win >
def solve_EC(N, hu, la):
lla = [sum(la[i:i+N]) for i in range(N)]
win = 0
lla.sort()
hu.sort()
while
for i in range(3*N):
if hu[i] > la[i]:
win += 1
return win/(3*N)
def main():
T = int(input())
for t in range(T):
tmp = input().split()
tmp = list(map(int, tmp))
N, = tmp
tmp = input().split()
tmp = list(map(int, tmp))
hu = tmp
tmp = input().split()
tmp = list(map(int, tmp))
la = tmp
print('Case #' + str(t + 1) + ': ', end='')
print(solve_EC(N, hu, la))
if __name__ == '__main__':
main()
| [
"[email protected]"
] | |
2180fbd40a9cda6cf6e7180218f7f525f2c351ce | 664269ec1346b69b1af11d041d5352921ebef060 | /sample-apps/rds/sample-app/src/pymysql/_compat.py | 252789ec4460a3ee383f18f8af26e42ba82b666d | [
"Apache-2.0"
] | permissive | awslabs/aws-servicebroker | 0f288d4da0201a85e99f27bf7d95cc84d30d2f93 | b28f42ad1e5861fd3009a10ad4bd511a384d3943 | refs/heads/main | 2023-08-30T01:09:05.351854 | 2023-07-06T18:09:22 | 2023-07-06T18:09:22 | 125,404,208 | 468 | 165 | Apache-2.0 | 2023-08-30T14:07:12 | 2018-03-15T17:36:28 | Python | UTF-8 | Python | false | false | 481 | py | import sys
PY2 = sys.version_info[0] == 2
PYPY = hasattr(sys, 'pypy_translation_info')
JYTHON = sys.platform.startswith('java')
IRONPYTHON = sys.platform == 'cli'
CPYTHON = not PYPY and not JYTHON and not IRONPYTHON
if PY2:
import __builtin__
range_type = xrange
text_type = unicode
long_type = long
str_type = basestring
unichr = __builtin__.unichr
else:
range_type = range
text_type = str
long_type = int
str_type = str
unichr = chr
| [
"[email protected]"
] | |
0f0b988db044a90843787fcfa17790f226c36531 | ce1f8877fa9ff084b75bceec4cc7ddf5b3153b07 | /clif/testing/python/imported_methods_test.py | be75ee040777a7e9a8efe35837f737faf0fc1cda | [
"Apache-2.0"
] | permissive | HenriChataing/clif | 034aba392294ac30e40801815cf4d3172d3d44bd | 307ac5b7957424706c598876d883936c245e2078 | refs/heads/master | 2021-01-23T16:25:19.543400 | 2017-09-01T22:18:03 | 2017-09-01T22:18:03 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 968 | py | # Copyright 2017 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.
"""Tests for clif.testing.python.imported_methods."""
import unittest
from clif.testing.python import imported_methods
class InheritedConstructorsTest(unittest.TestCase):
def testInheritedConstructor(self):
d = imported_methods.Derived(12345)
self.assertEqual(d.GetA(), 12345)
self.assertEqual(d.GetAWithOffset(43210), 55555)
if __name__ == '__main__':
unittest.main()
| [
"[email protected]"
] | |
19ed9b12b8f92747a7d5730dd8e9cfa7b98d1e12 | 6ed0b6576857efc67901790dbf926c558d440bd7 | /backend/manage.py | a6ec92e1ac1e5abe024afe74dc330d67aa5ff4bc | [] | no_license | crowdbotics-apps/test-aline-0721-dev-7964 | dae692cc48e757e0275c853ae975d90de97a1657 | 3104874e1b83a8863942ee6a10c2a8aceb6e52f5 | refs/heads/master | 2022-11-19T23:22:20.735744 | 2020-07-22T15:50:19 | 2020-07-22T15:50:19 | 281,442,246 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 644 | py | #!/usr/bin/env python
"""Django's command-line utility for administrative tasks."""
import os
import sys
def main():
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "test_aline_0721_dev_7964.settings")
try:
from django.core.management import execute_from_command_line
except ImportError as exc:
raise ImportError(
"Couldn't import Django. Are you sure it's installed and "
"available on your PYTHONPATH environment variable? Did you "
"forget to activate a virtual environment?"
) from exc
execute_from_command_line(sys.argv)
if __name__ == "__main__":
main()
| [
"[email protected]"
] | |
c32fdb4787b51913dcb94e2128d2912fad182b06 | 3b871bdc672632e72bbdb72f98c914db660829b4 | /Django_Project/Django_Project/asgi.py | 5eb588cf3ef16a21bf99a45c2a9698189ff79917 | [] | no_license | JasbirCodeSpace/Django-Blog-Web-App | b1a58730a17c204fe4c8ad8ab4f3f1d47d5b30e1 | 6af67d03bbec997b972feacb2873efaa542becaa | refs/heads/master | 2022-08-25T23:12:05.591494 | 2020-05-20T07:19:48 | 2020-05-20T07:19:48 | 264,860,882 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 411 | py | """
ASGI config for Blog project.
It exposes the ASGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/3.0/howto/deployment/asgi/
"""
import os
from django.core.asgi import get_asgi_application
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'Django_Project.settings')
application = get_asgi_application()
| [
"[email protected]"
] | |
950cf5404ea2b75c9cadf94aa12dfbb274256e43 | 70ad3badf3fa6e2edf1889d8640f25a7ec0d9db1 | /ros_catkin_ws/devel_isolated/rosparam/lib/python2.7/dist-packages/rosparam/__init__.py | 979cdadf5761c2736f68558fa36dbd74e4175656 | [] | no_license | MathieuHwei/OldGaitMaven | 758a937dfda2cf4f1aee266dbbf682ef34989199 | 873f7d9089c5d1c0772bd3447e2b0a31dac68b70 | refs/heads/main | 2023-06-17T18:40:06.230823 | 2021-07-19T23:08:20 | 2021-07-19T23:08:20 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,030 | py | # -*- coding: utf-8 -*-
# generated from catkin/cmake/template/__init__.py.in
# keep symbol table as clean as possible by deleting all unnecessary symbols
from os import path as os_path
from sys import path as sys_path
from pkgutil import extend_path
__extended_path = "/home/pi/ros_catkin_ws/src/ros_comm/rosparam/src".split(";")
for p in reversed(__extended_path):
sys_path.insert(0, p)
del p
del sys_path
__path__ = extend_path(__path__, __name__)
del extend_path
__execfiles = []
for p in __extended_path:
src_init_file = os_path.join(p, __name__ + '.py')
if os_path.isfile(src_init_file):
__execfiles.append(src_init_file)
else:
src_init_file = os_path.join(p, __name__, '__init__.py')
if os_path.isfile(src_init_file):
__execfiles.append(src_init_file)
del src_init_file
del p
del os_path
del __extended_path
for __execfile in __execfiles:
with open(__execfile, 'r') as __fh:
exec(__fh.read())
del __fh
del __execfile
del __execfiles
| [
"[email protected]"
] | |
9b51264685632fddec2373e3a341f25d8d1d3fc9 | e00fe1e065b448f6f8c0472ed2b8a39991fa7b1b | /Fuzzy_clustering/version2/template/project_run.py | 4188a8c1f9dfdd2d18eda05f8e884d4dcc2f62af | [
"Apache-2.0"
] | permissive | joesider9/forecasting_library | 1a4ded5b09fc603f91fa1c075e79fc2ed06c08a8 | db07ff8f0f2693983058d49004f2fc6f8849d197 | refs/heads/master | 2023-03-29T12:18:22.261488 | 2021-04-01T08:57:08 | 2021-04-01T08:57:08 | 319,906,316 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,106 | py | from Fuzzy_clustering.version2.project_managers.project_eval_manager import ProjectsEvalManager
from Fuzzy_clustering.version2.project_managers.projects_data_manager import ProjectsDataManager
from Fuzzy_clustering.version2.project_managers.projects_train_manager import ProjectsTrainManager
from Fuzzy_clustering.version2.template.constants import *
from Fuzzy_clustering.version2.template.util_database_timos import write_database
def prepare_data():
static_data = write_database()
project_data_manager = ProjectsDataManager(static_data, is_test=False)
nwp_response = project_data_manager.nwp_extractor()
if nwp_response == DONE:
data_response = project_data_manager.create_datasets()
else:
raise RuntimeError('Something was going wrong with nwp extractor')
if data_response == DONE:
project_data_manager.create_projects_relations()
else:
raise RuntimeError('Something was going wrong with data manager')
if hasattr(project_data_manager, 'data_eval'):
project_data_manager.is_test = True
nwp_response = project_data_manager.nwp_extractor()
if nwp_response == DONE:
nwp_response = project_data_manager.create_datasets()
if nwp_response != DONE:
raise RuntimeError('Something was going wrong with on evaluation dataset creator')
else:
raise RuntimeError('Something was going wrong with nwp extractor on evaluation')
print("Data is prepared, training can start")
def train_project():
static_data = write_database()
project_train_manager = ProjectsTrainManager(static_data)
project_train_manager.fit()
def eval_project():
static_data = write_database()
project_eval_manager = ProjectsEvalManager(static_data)
project_eval_manager.evaluate()
def backup_project():
static_data = write_database()
project_backup_manager = ProjectsTrainManager(static_data)
project_backup_manager.clear_backup_projects()
if __name__ == '__main__':
prepare_data()
train_project()
eval_project()
backup_project()
| [
"[email protected]"
] | |
a1b9c909d2e60fb563ed2c58c3bf28e228f2e771 | 751691a21ed1d8c69c35f3cd9b9fd395dc5c1aa8 | /{{cookiecutter.项目名称}}/{{cookiecutter.初始化app名称}}/custom_viewset.py | 10b0164eb8f5f4fa01443e26d36608d2830e48cc | [] | no_license | mtianyan/cookiecutter-drf-mtianyan | 5899847f46e853a0ec5be9bcbf9e7294ce2b70cd | b1298f6c5b20149db4589ce127b2e6e0392552b6 | refs/heads/master | 2022-12-28T18:26:57.969693 | 2020-10-10T08:29:08 | 2020-10-10T08:29:08 | 275,175,974 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,619 | py | from rest_framework import viewsets, status
from rest_framework.response import Response
from utils import change_key
class CustomViewSet(viewsets.ModelViewSet):
def retrieve(self, request, *args, **kwargs):
instance = self.get_object()
serializer = self.get_serializer(instance)
res = serializer.data
if "status" in res.keys():
res["status"] = str(res["status"])
return Response({
"code": 200,
"data": res
})
def create(self, request, *args, **kwargs):
serializer = self.get_serializer(data=request.data)
serializer.is_valid(raise_exception=True)
self.perform_create(serializer)
headers = self.get_success_headers(serializer.data)
return Response({'code': 200}, status=status.HTTP_201_CREATED, headers=headers)
def put(self, request, *args, **kwargs):
change_key(request)
update_fields = [one for one in request.data.keys() if one != self.serializer_class.Meta.model._meta.pk.name]
self.serializer_class.Meta.model(**request.data).save(update_fields=update_fields)
return Response({'code': 200, 'msg': '修改成功'})
# def destroy(self, request, *args, **kwargs):
# instance = self.get_object()
# self.perform_destroy(instance)
# return Response({'code': 200}, status=status.HTTP_200_OK)
def destroy(self, request, *args, **kwargs):
ids = kwargs["pk"].split(",")
self.serializer_class.Meta.model.objects.filter(pk__in=ids).delete()
return Response({
"code": 200
})
| [
"[email protected]"
] | |
7126110b6be5e67ec95d040579d17ce5b4278f11 | 0b51bc6c7a98d07880955a31e147c0c15b1e3151 | /tonkho/models/stock_quant.py | da383abe5fd406bbfc64072e6fd0731db111501c | [] | no_license | tu95ctv/duan_mi2 | 72e8bcbad73dfea1b57b69dbfd1c8d48ecebb975 | f1728d99e27fcc18684d50f5719f3dcedcffd755 | refs/heads/master | 2020-04-28T21:30:25.017845 | 2019-07-07T13:25:43 | 2019-07-07T13:25:43 | 175,584,277 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,283 | py |
# -*- coding: utf-8 -*-
from odoo import models, fields, api
from odoo.exceptions import UserError, ValidationError
from odoo.tools.translate import _
from odoo.tools.float_utils import float_compare
from odoo.addons.tutool.mytools import name_compute
from odoo.addons.tonkho.tonkho_tool import write_to_current_path
from odoo.addons.tutool.mytools import pn_replace
from lxml import etree
class Quant(models.Model):
""" Quants are the smallest unit of stock physical instances """
_inherit = "stock.quant"
pn = fields.Char(related='product_id.pn', store=True,string="Part number")
categ_id = fields.Many2one('product.category', related='product_id.categ_id',store=True,string=u'Nhóm')
thiet_bi_id = fields.Many2one('tonkho.thietbi',related='product_id.thiet_bi_id', string = u'Thiết bị',store=True)
brand_id = fields.Many2one('tonkho.brand',related='product_id.brand_id',string=u'Hãng sản xuất',store=True)
tracking = fields.Selection([
('serial', 'By Unique Serial Number'),
('none', 'No Tracking')], string=u"Có SN hay không", related='product_id.tracking',store=True)
stock_location_id_selection = fields.Selection('get_stock_for_selection_field_',store=False)
tinh_trang = fields.Selection([('tot',u'Tốt'),('hong',u'Hỏng')],default='tot',related='lot_id.tinh_trang',store=True,string=u'Tình trạng')
ghi_chu = fields.Text(string=u'Ghi chú',related='lot_id.ghi_chu')
stt = fields.Integer()
inventory_line_id = fields.Many2one('stock.inventory.line')
# ml_ids = fields.One2many('stock.move.line','lot_id',compute='ml_ids_',string=u'Các dòng điều chỉnh')
ml_ids = fields.Many2many('stock.move.line','stock_quant_stock_move_line_rel','quant_id','move_line_id',compute='ml_ids_',
string=u'Các dòng điều chỉnh')
# @api.depends('is_done_ml_filter','is_your_department_filter','id_show')
def ml_ids_(self):
for r in self:
# active_id = r.id_show
domain = [('lot_id','=',r.lot_id.id),('product_id','=',r.product_id.id),'|',('location_id','=',r.location_id.id),('location_dest_id','=',r.location_id.id)]# r.id = new object nên không được
# if r.is_done_ml_filter:
# domain.append(('state','=','done'))
# if r.is_your_department_filter:
# your_department_id = self.env.user.department_id.id
# # department_domain = ['|',('location_id.department_id','=',your_department_id),('location_dest_id.department_id','=',your_department_id)]
# domain.extend(department_domain)
r.ml_ids = self.env['stock.move.line'].search(domain,order='id desc')
# is_done_ml_filter = fields.Boolean(default= True,store=False, string=u'Chỉ lọc dòng hoàn thành')
# is_your_department_filter = fields.Boolean(default= True,store=False,string =u'Chỉ lọc kho đơn vị của bạn')
# id_show = fields.Integer(compute='id_show_')
# def id_show_(self):
# for r in self:
# r.id_show = r.id
@api.model
def create(self, values):
if 'update_inventory' in self._context:
values.update(self._context['update_inventory'])
res = super(Quant, self).create(values)
return res
def get_stock_for_selection_field_(self):
locs = self.env['stock.location'].search([('is_kho_cha','=',True)])
rs = list(map(lambda i:(i.name,i.name),locs))
return rs
# @api.constrains('lot_id')
# def check_product_id(self):
# not_allow_check_lot_id_in_different_location =self.env['ir.config_parameter'].sudo().get_param('tonkho.not_allow_check_lot_id_in_different_location' )
# if not_allow_check_lot_id_in_different_location ==False:
# if self.lot_id:
# rs = self.env['stock.quant'].search([('lot_id','=',self.lot_id.id),('quantity','>',0)])
# if len(rs)>1:
# raise UserError(u'Không được có quants nội bộ chung lot_id và quantity > 0 product:%s-sn: %s'%(self.product_id.name,self.lot_id.name))
@api.constrains('location_id','quantity')
def not_allow_negative_qty(self):
for r in self:
if not r.location_id.cho_phep_am:
if r.quantity < 0:
raise UserError ( u' Kho:%s, không cho phép tạo âm- sản phẩm:%s-Serial number:%s'%(r.location_id.name,r.product_id.name,r.lot_id.name))
# GHI ĐÈ CÁI XEM DỊCH CHUYỂN KHO, KHÔNG CẦN LỌC VỊ TRÍ KHO
def action_view_stock_moves(self):
self.ensure_one()
action = self.env.ref('stock.stock_move_line_action').read()[0]
action['domain'] = [
('product_id', '=', self.product_id.id),
# '|', ('location_id', '=', self.location_id.id),
# ('location_dest_id', '=', self.location_id.id),
('lot_id', '=', self.lot_id.id),
('package_id', '=', self.package_id.id)]
return action
def name_get(self):
res = []
for r in self:
adict=[
('product_id',{'pr':None,'func':lambda r: r.name + (' [PN:%s]'%r.pn if r.pn else '')}),
# ('product_id',{'pr':None}),
('lot_id',{'pr':None,'func':lambda r: r.name,'skip_if_False':False}),
('quantity',{'pr':None,'func':lambda val:'%s'%val,'skip_if_False':False}),
]
name = name_compute(r,adict,join_char = u' | ')
res.append((r.id,name))
return res
@api.model
def name_search(self, name, args=None, operator='ilike', limit=100):
args = args or []
context = self._context or {}
if context.get('kho_da_chon') !=None:
choosed_list = context.get('kho_da_chon') [0][2]
args +=[('id','not in',choosed_list)]
if name:
pn_replace_str = pn_replace(name)
else:
pn_replace_str = ''
recs = self.search(['|','|',('product_id', operator, name),('product_id.pn_replace', operator, pn_replace_str),('lot_id.name', operator, name)] + args, limit=limit)
return recs.name_get()
@api.model
def search(self, args, offset=0, limit=None, order=None, count=False):
context = self._context or {}
if context.get('kho_da_chon') !=None:
choosed_list = context.get('kho_da_chon') [0][2]
args +=[('id','not in',choosed_list)]
return super(Quant, self).search(args, offset, limit, order, count=count)
@api.constrains('quantity')
def check_quantity(self):
for quant in self:
if float_compare(quant.quantity, 1, precision_rounding=quant.product_uom_id.rounding) > 0 and quant.lot_id and quant.product_id.tracking == 'serial':
raise ValidationError(_('A serial number should only be linked to a single product. %s,%s,%s'%(quant.quantity,quant.product_id.name,quant.lot_id.name)))
@api.model
def fields_view_get(self, view_id=None, view_type='form', toolbar=False, submenu=False):
res = super(Quant, self).fields_view_get(
view_id=view_id, view_type=view_type, toolbar=toolbar, submenu=submenu)
if view_type =='search':
# write_to_current_path(u'%s'%res['arch'])
# print ("res['arch']",res['arch'])
doc = etree.fromstring(res['arch'])
node = doc.xpath("//filter[@name='locationgroup']")[0]
node.addnext(etree.Element('separator', {}))
node.addnext(etree.Element('filter', {'string':'Lọc theo kho của trạm %s'%self.env.user.department_id.name,'name': 'loc_theo_tram_137', 'domain': "[('location_id.department_id','=',%s)]"%self.env.user.department_id.id}))
res['arch'] = etree.tostring(doc, encoding='unicode')
return res
| [
"[email protected]"
] | |
44a6e5f1f5fda5f40b242e469cc4314b106c8306 | e6b969b7c50de5ae61c4b76ec31a982d16523e46 | /sym.py | 3f88fe9fcc929640105de765ca5654c69c9dd65f | [] | no_license | dlovemore/parle | 7d52dc76716f3f8a5f085aa26277b2c52b98b098 | e949c743b2760079eb3c3eb67198e69562521d20 | refs/heads/master | 2021-01-03T07:04:09.060552 | 2020-10-20T13:01:59 | 2020-10-20T13:01:59 | 239,972,201 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,418 | py | class Base:
def __init__(self, *args):
self._args = args
@property
def args(self): return self._args
@args.setter
def args(self, value): self._args = value
def __repr__(self):
rargs = repr(list(self.args))[1:-1]
return f'{type(self).__name__}({rargs})'
class E(Base):
@property
def op(self):
return self.args[0]
@property
def exprs(self):
return self.args[1:]
@property
def lhs(self):
return self.args[1]
@property
def rhs(self):
return self.args[2]
@property
def a1(self):
return self.args[1]
@property
def a2(self):
return self.args[2]
def __add__(self, rhs):
return E('+',self,rhs)
def __contains__(self, lhs):
return E(' in ',lhs,self)
def __truediv__(self, rhs):
return E('/',self,rhs)
def __floordiv__(self, rhs):
return E('//',self,rhs)
def __and__(self, rhs):
return E('&',self,rhs)
def __xor__(self, rhs):
return E('^',self,rhs)
def __invert__(self):
return E('~_',self)
def __or__(self, rhs):
return E('|',self,rhs)
def __pow__(self, rhs):
return E('**',self,rhs)
def __getitem__(self, k):
return E('[]',self, k)
def __lshift__(self, rhs):
return E('<<',self, rhs)
def __mod__(self, rhs):
return E('%',self, rhs)
def __mul__(self, rhs):
return E('*',self, rhs)
def __matmul__(self, rhs):
return E('@',self, rhs)
def __neg__(self):
return E('-_',self)
def __pos__(self):
return E('+_',self)
def __rshift__(self, rhs):
return E('>>',self, rhs)
def __sub__(self, rhs):
return E('-',self, rhs)
def __lt__(self, rhs):
return E('<',self, rhs)
def __le__(self, rhs):
return E('<=',self, rhs)
def __eq__(self, rhs):
return E('==',self, rhs)
def __ne__(self, rhs):
return E('!=',self, rhs)
def __ge__(self, rhs):
return E('>=',self, rhs)
def __gt__(self, rhs):
return E('>',self, rhs)
def __call__(self, *args):
return E('_()',self, *args)
def dolet(k,v): return E('=',k,v)
class LetClause(Base):
def __getitem__(self, k):
if isinstance(k,tuple):
k=E(',',*k)
return E('=',E('args',*self.args), k)
class Let:
def __setitem__(self,k,v):
stmts += dolet(k,v)
def __call__(self,*args):
return LetClause(*args)
let=Let()
class Stmt:
def __init__(self,k):
self.op = k
def __getitem__(self, k):
if isinstance(k,tuple):
k=E(',',*k)
return E(self.op, k)
# Use like:
# let(x)[x+1]
# or [let(x)[4], let(Y)[X+1]]
class Env:
def __init__(self, globals, op='var'):
self.globals=globals
self.vars=dict()
self.op=op
def __call__(self, name):
if name not in self.vars:
v=E(self.op, name)
self.globals[name]=v
self.vars[name]=v
return self.vars[name]
def __getattr__(self, name):
return self(name)
var=Env(globals())
v=var
arg=var
class OnClause:
def __init__(self, e):
self.e=e
def __getitem__(self, rhs):
if isinstance(rhs, slice):
assert(rhs.step is None)
return E('?:', self.e, rhs.start, rhs.stop)
else:
return E('?', self.e, rhs)
class On:
def __call__(self, e):
return OnClause(e)
on=On()
IF=on
class LambdaClause:
def __init__(self, *args):
self.args=args
def __getitem__(self, rhs):
return E('λ',self.args,rhs)
class LambdaDefiner:
def __call__(self, *args):
return LambdaClause(args)
λ=LambdaDefiner()
class Ref:
def __init__(self, r, uid):
self.refmaker = r
self.uid = uid
def __matmul__(self, rhs):
if self in self.refmaker.rees:
raise RuntimeError
self.refmaker.rees[self]=rhs
return rhs
def __repr__(self):
return f'{self.uid}@R'
class RefMaker:
def __init__(self):
self.refs = dict() # uid->ref
self.rees = dict() # ref->referee
def __rmatmul__(self, uid):
"Handles uid@self"
if uid not in self.refs:
self.refs[uid] = Ref(self,uid)
return self.refs[uid]
def save(x):
seen=set()
many=set()
def mr(x):
if id(x) in seen:
many.add(id(x))
else:
seen.add(id(x))
if isinstance(x, Base):
for a in x.args:
mr(a)
mr(x)
uids=dict() # ref id->ids
uid=1
def pr(x):
nonlocal uid
s=''
if id(x) in many:
if id(x) in uids:
return f'{uids[id(x)]}@R'
else:
uids[id(x)]=uid
s+=f'{uid}@R@'
uid+=1
if isinstance(x, Base):
first=True
s+=f'{type(x).__name__}('
for arg in x.args:
if first: first=False
else: s+=','
s+=pr(arg)
s+=')'
else:
s+=repr(x)
return s
return pr(x)
def load(s):
global R
R=RefMaker()
b=eval(s)
seen=set()
def resolve(x):
if id(x) not in seen:
seen.add(id(x))
if isinstance(x, Base):
x.args=[resolve(a) for a in x.args]
if isinstance(x, Ref):
return R.rees[x]
else:
return x
resolve(b)
return b
# >>> from sym import *
# >>> X=var.X
# >>> print(v.Y)
# E('var', 'Y')
# >>> a=[1,2]
# >>> a[0]=3
# >>> a[0]+=3
# >>> E('a','var')[3]
# E('[]', E('a', 'var'), 3)
# >>> a=v.a
# >>> a[0]
# E('[]', E('var', 'a'), 0)
# >>> v.X<v.Y
# E('<', E('var', 'X'), E('var', 'Y'))
# >>> v.X[v.X+1,]
# E('[]', E('var', 'X'), (E('+', E('var', 'X'), 1),))
# >>>
# >>> globals()['ai']=12
# >>> ai
# 12
# >>>
# >>> on(X)[3:4]
# E('?:', E('var', 'X'), 3, 4)
# >>> on(X)[3]
# E('?', E('var', 'X'), 3)
# >>> E(E('X','var'),'?',3)
# E(E('X', 'var'), '?', 3)
# >>> var.A
# E('var', 'A')
# >>> A
# Traceback (most recent call last):
# File "<console>", line 1, in <module>
# NameError: name 'A' is not defined
# >>> var=Env(globals())
# >>> var.A
# E('var', 'A')
# >>> A
# E('var', 'A')
# >>> E
# <class 'sym.E'>
# >>>
# >>> [getattr(var,x) for x in 'ABCDEFGHIJKLMNOPQRSTUVWXYZ']
# [E('var', 'A'), E('var', 'B'), E('var', 'C'), E('var', 'D'), E('var', 'E'), E('var', 'F'), E('var', 'G'), E('var', 'H'), E('var', 'I'), E('var', 'J'), E('var', 'K'), E('var', 'L'), E('var', 'M'), E('var', 'N'), E('var', 'O'), E('var', 'P'), E('var', 'Q'), E('var', 'R'), E('var', 'S'), E('var', 'T'), E('var', 'U'), E('var', 'V'), E('var', 'W'), E('var', 'X'), E('var', 'Y'), E('var', 'Z')]
# >>> A
# E('var', 'A')
# >>> E
# E('var', 'E')
# >>> import fun
# >>> fun.E
# <class 'parle.sym.E'>
# >>> var.E
# E('var', 'E')
# >>> fun.E
# <class 'parle.sym.E'>
# >>> λ(X)[X+1]
# E('λ', ((E('var', 'X'),),), E('+', E('var', 'X'), 1))
# >>>
# >>>
# >>> let(X)
# LetClause(E('var', 'X'))
# >>> let(X)[X+1]
# E('=', E('args', E('var', 'X')), E('+', E('var', 'X'), 1))
# >>> LET=Stmt('let')
# >>>
# >>> LET(X)
# Traceback (most recent call last):
# File "<console>", line 1, in <module>
# TypeError: 'Stmt' object is not callable
# >>> LET[X]
# E('let', E('var', 'X'))
# >>>
| [
"[email protected]"
] | |
f64233795111df760e19371a35a584413081cff7 | c9ddbdb5678ba6e1c5c7e64adf2802ca16df778c | /cases/synthetic/class_def_attr-big-407.py | d189ce0fed43c4a777ecf1f02981982293253209 | [] | no_license | Virtlink/ccbench-chocopy | c3f7f6af6349aff6503196f727ef89f210a1eac8 | c7efae43bf32696ee2b2ee781bdfe4f7730dec3f | refs/heads/main | 2023-04-07T15:07:12.464038 | 2022-02-03T15:42:39 | 2022-02-03T15:42:39 | 451,969,776 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,297 | py | class A(object):
x:int = 1
class A2(object):
x:int = 1
x2:int = 1
class A3(object):
x:int = 1
x2:int = 1
x3:int = 1
class A4(object):
x:int = 1
x2:int = 1
x3:int = 1
x4:int = 1
class A5(object):
x:int = 1
x2:int = 1
x3:int = 1
x4:int = 1
x5:int = 1
class B(A):
def __init__(self: "B"):
pass
class B2(A):
def __init__(self: "B2"):
pass
class B3(A):
def __init__(self: "B3"):
pass
class B4(A):
def __init__(self: "B4"):
pass
class B5(A):
def __init__(self: "B5"):
pass
class C(B):
z:bool = True
class C2(B):
z:bool = True
z2:bool = True
class C3(B):
z:bool = True
z2:bool = True
z3:bool = True
class C4(B):
z:bool = True
z2:bool = True
z3:bool = True
z4:bool = True
class C5(B):
z:bool = True
z2:bool = True
z3:bool = True
z4:bool = True
z5:bool = True
a:A = None
a2:A = None
a3:A = $Literal
a4:A = None
a5:A = None
b:B = None
b2:B = None
b3:B = None
b4:B = None
b5:B = None
c:C = None
c2:C = None
c3:C = None
c4:C = None
c5:C = None
a = A()
a2 = A()
a3 = A()
a4 = A()
a5 = A()
b = B()
b2 = B()
b3 = B()
b4 = B()
b5 = B()
c = C()
c2 = C()
c3 = C()
c4 = C()
c5 = C()
a.x = 1
b.x = a.x
c.z = a.x == b.x
| [
"[email protected]"
] | |
21f188524361b8fa84956085533990c2bc3dbde9 | dcc25b784213b17015d2080a7623c772d474dc22 | /reproduce/AlphaFold2-Chinese/tests/st/mindelec/networks/test_frequency_domain_maxwell/test_frequency_domain_maxwell.py | 65c3d50f3c3832682e1414cb4e3413c5f6f49489 | [
"LicenseRef-scancode-generic-cla",
"Apache-2.0"
] | permissive | mindspore-ai/community | 930c9d9fdbead852e3597d522a72fe5b66bfc005 | c72ce898482419117550ad16d93b38298f4306a1 | refs/heads/master | 2023-07-19T19:43:20.785198 | 2023-07-17T06:51:22 | 2023-07-17T06:51:22 | 250,693,100 | 193 | 10 | Apache-2.0 | 2022-10-29T10:01:40 | 2020-03-28T02:00:02 | Python | UTF-8 | Python | false | false | 5,395 | py | # Copyright 2021 Huawei Technologies Co., Ltd
#
# 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.
# ==============================================================================
"""
train
"""
import os
import pytest
import numpy as np
import mindspore.nn as nn
import mindspore.ops as ops
from mindspore import context, ms_function
from mindspore.common import set_seed
from mindspore.train.callback import LossMonitor
from mindspore.train.loss_scale_manager import DynamicLossScaleManager
from mindelec.solver import Solver, Problem
from mindelec.geometry import Rectangle, create_config_from_edict
from mindelec.common import L2
from mindelec.data import Dataset
from mindelec.operators import SecondOrderGrad as Hessian
from mindelec.loss import Constraints
from src.config import rectangle_sampling_config, helmholtz_2d_config
from src.model import FFNN
from src.dataset import test_data_prepare
from src.callback import PredictCallback, TimeMonitor
set_seed(0)
np.random.seed(0)
print("pid:", os.getpid())
context.set_context(mode=context.GRAPH_MODE, save_graphs=False, device_target="Ascend")
# define problem
class Helmholtz2D(Problem):
"""2D Helmholtz equation"""
def __init__(self, domain_name, bc_name, net, wavenumber=2):
super(Helmholtz2D, self).__init__()
self.domain_name = domain_name
self.bc_name = bc_name
self.type = "Equation"
self.wave_number = wavenumber
self.grad_xx = Hessian(net, input_idx1=0, input_idx2=0, output_idx=0)
self.grad_yy = Hessian(net, input_idx1=1, input_idx2=1, output_idx=0)
self.reshape = ops.Reshape()
@ms_function
def governing_equation(self, *output, **kwargs):
"""governing equation"""
u = output[0]
x = kwargs[self.domain_name][:, 0]
y = kwargs[self.domain_name][:, 1]
x = self.reshape(x, (-1, 1))
y = self.reshape(y, (-1, 1))
u_xx = self.grad_xx(kwargs[self.domain_name])
u_yy = self.grad_yy(kwargs[self.domain_name])
return u_xx + u_yy + self.wave_number**2 * u
@ms_function
def boundary_condition(self, *output, **kwargs):
"""boundary condition"""
u = output[0]
x = kwargs[self.bc_name][:, 0]
y = kwargs[self.bc_name][:, 1]
x = self.reshape(x, (-1, 1))
y = self.reshape(y, (-1, 1))
test_label = ops.sin(self.wave_number * x)
return 100 * (u - test_label)
@pytest.mark.level0
@pytest.mark.platform_arm_ascend_training
@pytest.mark.platform_x86_ascend_training
@pytest.mark.env_onecard
def test_frequency_domain_maxwell():
"""train process"""
net = FFNN(input_dim=2, output_dim=1, hidden_layer=64)
# define geometry
geom_name = "rectangle"
rect_space = Rectangle(geom_name,
coord_min=helmholtz_2d_config["coord_min"],
coord_max=helmholtz_2d_config["coord_max"],
sampling_config=create_config_from_edict(rectangle_sampling_config))
geom_dict = {rect_space: ["domain", "BC"]}
# create dataset for train and test
train_dataset = Dataset(geom_dict)
train_data = train_dataset.create_dataset(batch_size=helmholtz_2d_config.get("batch_size", 128),
shuffle=True, drop_remainder=False)
test_input, test_label = test_data_prepare(helmholtz_2d_config)
# define problem and constraints
train_prob_dict = {geom_name: Helmholtz2D(domain_name=geom_name + "_domain_points",
bc_name=geom_name + "_BC_points",
net=net,
wavenumber=helmholtz_2d_config.get("wavenumber", 2)),
}
train_constraints = Constraints(train_dataset, train_prob_dict)
# optimizer
optim = nn.Adam(net.trainable_params(), learning_rate=helmholtz_2d_config.get("lr", 1e-4))
# solver
solver = Solver(net,
optimizer=optim,
mode="PINNs",
train_constraints=train_constraints,
test_constraints=None,
amp_level="O2",
metrics={'l2': L2(), 'distance': nn.MAE()},
loss_scale_manager=DynamicLossScaleManager()
)
# train
time_cb = TimeMonitor()
loss_cb = PredictCallback(model=net, predict_interval=10, input_data=test_input, label=test_label)
solver.train(epoch=helmholtz_2d_config.get("epochs", 10),
train_dataset=train_data,
callbacks=[time_cb, LossMonitor(), loss_cb])
per_step_time = time_cb.get_step_time()
l2_error = loss_cb.get_l2_error()
print(f'l2 error: {l2_error:.10f}')
print(f'per step time: {per_step_time:.10f}')
assert l2_error <= 0.05
assert per_step_time <= 10.0
| [
"[email protected]"
] | |
a87bf5f31c6025305ca0fd7c72b461abad7671a5 | b2075a92c3854c921a95673a3c5ebb424ab08112 | /python/postprocessing/framework/postprocessor.py | 9eb1775d8dbd0f52159a9b31d8202b7f33272466 | [] | no_license | vhbb/nanoAOD-tools | cd2a6305991369948bb9577c5da3c7e4db275c52 | 14bce3dca68288e65b2daefce755d65914a3765d | refs/heads/master | 2021-09-04T21:44:29.892241 | 2018-01-22T12:50:50 | 2018-01-22T12:50:50 | 106,291,673 | 1 | 1 | null | 2018-01-22T12:50:51 | 2017-10-09T14:06:47 | Python | UTF-8 | Python | false | false | 4,843 | py | #!/usr/bin/env python
import os
import time
import ROOT
ROOT.PyConfig.IgnoreCommandLineOptions = True
from PhysicsTools.NanoAODTools.postprocessing.framework.branchselection import BranchSelection
from PhysicsTools.NanoAODTools.postprocessing.framework.datamodel import InputTree
from PhysicsTools.NanoAODTools.postprocessing.framework.eventloop import eventLoop
from PhysicsTools.NanoAODTools.postprocessing.framework.output import FriendOutput, FullOutput
from PhysicsTools.NanoAODTools.postprocessing.framework.preskimming import preSkim
from PhysicsTools.NanoAODTools.postprocessing.framework.jobreport import JobReport
class PostProcessor :
def __init__(self,outputDir,inputFiles,cut=None,branchsel=None,modules=[],compression="LZMA:9",friend=False,postfix=None,
jsonInput=None,noOut=False,justcount=False,provenance=False,haddFileName=None,fwkJobReport=False):
self.outputDir=outputDir
self.inputFiles=inputFiles
self.cut=cut
self.modules=modules
self.compression=compression
self.postfix=postfix
self.json=jsonInput
self.noOut=noOut
self.friend=friend
self.justcount=justcount
self.provenance=provenance
self.jobReport = JobReport() if fwkJobReport else None
self.haddFileName=haddFileName
if self.jobReport and not self.haddFileName :
print "Because you requested a FJR we assume you want the final hadd. No name specified for the output file, will use tree.root"
self.haddFileName="tree.root"
self.branchsel = BranchSelection(branchsel) if branchsel else None
def run(self) :
if not self.noOut:
outpostfix = self.postfix if self.postfix != None else ("_Friend" if self.friend else "_Skim")
if self.compression != "none":
ROOT.gInterpreter.ProcessLine("#include <Compression.h>")
(algo, level) = self.compression.split(":")
compressionLevel = int(level)
if algo == "LZMA": compressionAlgo = ROOT.ROOT.kLZMA
elif algo == "ZLIB": compressionAlgo = ROOT.ROOT.kZLIB
else: raise RuntimeError("Unsupported compression %s" % algo)
else:
compressionLevel = 0
print "Will write selected trees to "+self.outputDir
if not self.justcount:
if not os.path.exists(self.outputDir):
os.system("mkdir -p "+self.outputDir)
if self.noOut:
if len(self.modules) == 0:
raise RuntimeError("Running with --noout and no modules does nothing!")
for m in self.modules: m.beginJob()
fullClone = (len(self.modules) == 0)
outFileNames=[]
t0 = time.clock()
totEntriesRead=0
for fname in self.inputFiles:
# open input file
inFile = ROOT.TFile.Open(fname)
#get input tree
inTree = inFile.Get("Events")
totEntriesRead+=inTree.GetEntries()
# pre-skimming
elist,jsonFilter = preSkim(inTree, self.json, self.cut)
if self.justcount:
print 'Would select %d entries from %s'%(elist.GetN() if elist else inTree.GetEntries(), fname)
continue
else:
print 'Pre-select %d entries out of %s '%(elist.GetN() if elist else inTree.GetEntries(),inTree.GetEntries())
if fullClone:
# no need of a reader (no event loop), but set up the elist if available
if elist: inTree.SetEntryList(elist)
else:
# initialize reader
inTree = InputTree(inTree, elist)
# prepare output file
outFileName = os.path.join(self.outputDir, os.path.basename(fname).replace(".root",outpostfix+".root"))
outFile = ROOT.TFile.Open(outFileName, "RECREATE", "", compressionLevel)
outFileNames.append(outFileName)
if compressionLevel: outFile.SetCompressionAlgorithm(compressionAlgo)
# prepare output tree
if self.friend:
outTree = FriendOutput(inFile, inTree, outFile)
else:
outTree = FullOutput(inFile, inTree, outFile, branchSelection = self.branchsel, fullClone = fullClone, jsonFilter = jsonFilter,provenance=self.provenance)
# process events, if needed
if not fullClone:
(nall, npass, timeLoop) = eventLoop(self.modules, inFile, outFile, inTree, outTree)
print 'Processed %d preselected entries from %s (%s entries). Finally selected %d entries' % (nall, fname, inTree.GetEntries(), npass)
else:
print 'Selected %d entries from %s' % (outTree.tree().GetEntries(), fname)
# now write the output
outTree.write()
outFile.Close()
print "Done %s" % outFileName
if self.jobReport:
self.jobReport.addInputFile(fname,nall)
for m in self.modules: m.endJob()
print totEntriesRead/(time.clock()-t0), "Hz"
if self.haddFileName :
os.system("./haddnano.py %s %s" %(self.haddFileName," ".join(outFileNames))) #FIXME: remove "./" once haddnano.py is distributed with cms releases
if self.jobReport :
self.jobReport.addOutputFile(self.haddFileName)
self.jobReport.save()
| [
"[email protected]"
] | |
c74d3d817ada2bcf2794d7cffebfb2b3ccbf0e02 | 23a3c76882589d302b614da5f4be0fc626b4f3cd | /python_modules/dagster/dagster/api/snapshot_trigger.py | d9414b7c2318bcc7dc7ca624569ba3ba47f8ef8b | [
"Apache-2.0"
] | permissive | DavidKatz-il/dagster | 3641d04d387cdbe5535ae4f9726ce7dc1981a8c3 | 7c6d16eb8b3610a21020ecb479101db622d1535f | refs/heads/master | 2022-12-20T13:08:36.462058 | 2020-09-14T18:12:12 | 2020-09-14T22:43:26 | 264,703,873 | 0 | 0 | Apache-2.0 | 2020-06-16T09:49:00 | 2020-05-17T15:56:57 | Python | UTF-8 | Python | false | false | 2,276 | py | from dagster import check
from dagster.core.host_representation.external_data import (
ExternalExecutionParamsData,
ExternalExecutionParamsErrorData,
)
from dagster.core.host_representation.handle import RepositoryHandle
from dagster.core.types.loadable_target_origin import LoadableTargetOrigin
from dagster.grpc.types import ExternalTriggeredExecutionArgs
from .utils import execute_unary_api_cli_command
def sync_get_external_trigger_execution_params(instance, repository_handle, trigger_name):
check.inst_param(repository_handle, "repository_handle", RepositoryHandle)
check.str_param(trigger_name, "trigger_name")
origin = repository_handle.get_origin()
return check.inst(
execute_unary_api_cli_command(
origin.executable_path,
"trigger_execution_params",
ExternalTriggeredExecutionArgs(
repository_origin=origin,
instance_ref=instance.get_ref(),
trigger_name=trigger_name,
),
),
(ExternalExecutionParamsData, ExternalExecutionParamsErrorData),
)
def sync_get_external_trigger_execution_params_ephemeral_grpc(
instance, repository_handle, trigger_name
):
from dagster.grpc.client import ephemeral_grpc_api_client
origin = repository_handle.get_origin()
with ephemeral_grpc_api_client(
LoadableTargetOrigin(executable_path=origin.executable_path)
) as api_client:
return sync_get_external_trigger_execution_params_grpc(
api_client, instance, repository_handle, trigger_name
)
def sync_get_external_trigger_execution_params_grpc(
api_client, instance, repository_handle, trigger_name
):
check.inst_param(repository_handle, "repository_handle", RepositoryHandle)
check.str_param(trigger_name, "trigger_name")
origin = repository_handle.get_origin()
return check.inst(
api_client.external_trigger_execution_params(
external_triggered_execution_args=ExternalTriggeredExecutionArgs(
repository_origin=origin,
instance_ref=instance.get_ref(),
trigger_name=trigger_name,
)
),
(ExternalExecutionParamsData, ExternalExecutionParamsErrorData),
)
| [
"[email protected]"
] | |
2e5db24847888b7364737d3edcf63f609a59d47b | 65c001b5f572a6b0ca09dd9821016d628b745009 | /frappe-bench/env/lib/python2.7/site-packages/cssutils/css/colors.py | 0c4e4803b12d140e5337d66ce04c6406d01dfd2f | [
"MIT"
] | permissive | ibrahmm22/library-management | 666dffebdef1333db122c2a4a99286e7c174c518 | b88a2129a5a2e96ce1f945ec8ba99a0b63b8c506 | refs/heads/master | 2022-10-30T17:53:01.238240 | 2020-06-11T18:36:41 | 2020-06-11T18:36:41 | 271,620,992 | 0 | 1 | MIT | 2022-10-23T05:04:57 | 2020-06-11T18:36:21 | CSS | UTF-8 | Python | false | false | 6,669 | py | # -*- coding: utf-8 -*-
"""
Built from something like this:
print [
(
row[2].text_content().strip(),
eval(row[4].text_content().strip())
)
for row in lxml.html.parse('http://www.w3.org/TR/css3-color/')
.xpath("//*[@class='colortable']//tr[position()>1]")
]
by Simon Sapin
"""
COLORS = {
'transparent': (0, 0, 0, 0.0),
'black': (0, 0, 0, 1.0),
'silver': (192, 192, 192, 1.0),
'gray': (128, 128, 128, 1.0),
'white': (255, 255, 255, 1.0),
'maroon': (128, 0, 0, 1.0),
'red': (255, 0, 0, 1.0),
'purple': (128, 0, 128, 1.0),
'fuchsia': (255, 0, 255, 1.0),
'green': (0, 128, 0, 1.0),
'lime': (0, 255, 0, 1.0),
'olive': (128, 128, 0, 1.0),
'yellow': (255, 255, 0, 1.0),
'navy': (0, 0, 128, 1.0),
'blue': (0, 0, 255, 1.0),
'teal': (0, 128, 128, 1.0),
'aqua': (0, 255, 255, 1.0),
'aliceblue': (240, 248, 255, 1.0),
'antiquewhite': (250, 235, 215, 1.0),
'aqua': (0, 255, 255, 1.0),
'aquamarine': (127, 255, 212, 1.0),
'azure': (240, 255, 255, 1.0),
'beige': (245, 245, 220, 1.0),
'bisque': (255, 228, 196, 1.0),
'black': (0, 0, 0, 1.0),
'blanchedalmond': (255, 235, 205, 1.0),
'blue': (0, 0, 255, 1.0),
'blueviolet': (138, 43, 226, 1.0),
'brown': (165, 42, 42, 1.0),
'burlywood': (222, 184, 135, 1.0),
'cadetblue': (95, 158, 160, 1.0),
'chartreuse': (127, 255, 0, 1.0),
'chocolate': (210, 105, 30, 1.0),
'coral': (255, 127, 80, 1.0),
'cornflowerblue': (100, 149, 237, 1.0),
'cornsilk': (255, 248, 220, 1.0),
'crimson': (220, 20, 60, 1.0),
'cyan': (0, 255, 255, 1.0),
'darkblue': (0, 0, 139, 1.0),
'darkcyan': (0, 139, 139, 1.0),
'darkgoldenrod': (184, 134, 11, 1.0),
'darkgray': (169, 169, 169, 1.0),
'darkgreen': (0, 100, 0, 1.0),
'darkgrey': (169, 169, 169, 1.0),
'darkkhaki': (189, 183, 107, 1.0),
'darkmagenta': (139, 0, 139, 1.0),
'darkolivegreen': (85, 107, 47, 1.0),
'darkorange': (255, 140, 0, 1.0),
'darkorchid': (153, 50, 204, 1.0),
'darkred': (139, 0, 0, 1.0),
'darksalmon': (233, 150, 122, 1.0),
'darkseagreen': (143, 188, 143, 1.0),
'darkslateblue': (72, 61, 139, 1.0),
'darkslategray': (47, 79, 79, 1.0),
'darkslategrey': (47, 79, 79, 1.0),
'darkturquoise': (0, 206, 209, 1.0),
'darkviolet': (148, 0, 211, 1.0),
'deeppink': (255, 20, 147, 1.0),
'deepskyblue': (0, 191, 255, 1.0),
'dimgray': (105, 105, 105, 1.0),
'dimgrey': (105, 105, 105, 1.0),
'dodgerblue': (30, 144, 255, 1.0),
'firebrick': (178, 34, 34, 1.0),
'floralwhite': (255, 250, 240, 1.0),
'forestgreen': (34, 139, 34, 1.0),
'fuchsia': (255, 0, 255, 1.0),
'gainsboro': (220, 220, 220, 1.0),
'ghostwhite': (248, 248, 255, 1.0),
'gold': (255, 215, 0, 1.0),
'goldenrod': (218, 165, 32, 1.0),
'gray': (128, 128, 128, 1.0),
'green': (0, 128, 0, 1.0),
'greenyellow': (173, 255, 47, 1.0),
'grey': (128, 128, 128, 1.0),
'honeydew': (240, 255, 240, 1.0),
'hotpink': (255, 105, 180, 1.0),
'indianred': (205, 92, 92, 1.0),
'indigo': (75, 0, 130, 1.0),
'ivory': (255, 255, 240, 1.0),
'khaki': (240, 230, 140, 1.0),
'lavender': (230, 230, 250, 1.0),
'lavenderblush': (255, 240, 245, 1.0),
'lawngreen': (124, 252, 0, 1.0),
'lemonchiffon': (255, 250, 205, 1.0),
'lightblue': (173, 216, 230, 1.0),
'lightcoral': (240, 128, 128, 1.0),
'lightcyan': (224, 255, 255, 1.0),
'lightgoldenrodyellow': (250, 250, 210, 1.0),
'lightgray': (211, 211, 211, 1.0),
'lightgreen': (144, 238, 144, 1.0),
'lightgrey': (211, 211, 211, 1.0),
'lightpink': (255, 182, 193, 1.0),
'lightsalmon': (255, 160, 122, 1.0),
'lightseagreen': (32, 178, 170, 1.0),
'lightskyblue': (135, 206, 250, 1.0),
'lightslategray': (119, 136, 153, 1.0),
'lightslategrey': (119, 136, 153, 1.0),
'lightsteelblue': (176, 196, 222, 1.0),
'lightyellow': (255, 255, 224, 1.0),
'lime': (0, 255, 0, 1.0),
'limegreen': (50, 205, 50, 1.0),
'linen': (250, 240, 230, 1.0),
'magenta': (255, 0, 255, 1.0),
'maroon': (128, 0, 0, 1.0),
'mediumaquamarine': (102, 205, 170, 1.0),
'mediumblue': (0, 0, 205, 1.0),
'mediumorchid': (186, 85, 211, 1.0),
'mediumpurple': (147, 112, 219, 1.0),
'mediumseagreen': (60, 179, 113, 1.0),
'mediumslateblue': (123, 104, 238, 1.0),
'mediumspringgreen': (0, 250, 154, 1.0),
'mediumturquoise': (72, 209, 204, 1.0),
'mediumvioletred': (199, 21, 133, 1.0),
'midnightblue': (25, 25, 112, 1.0),
'mintcream': (245, 255, 250, 1.0),
'mistyrose': (255, 228, 225, 1.0),
'moccasin': (255, 228, 181, 1.0),
'navajowhite': (255, 222, 173, 1.0),
'navy': (0, 0, 128, 1.0),
'oldlace': (253, 245, 230, 1.0),
'olive': (128, 128, 0, 1.0),
'olivedrab': (107, 142, 35, 1.0),
'orange': (255, 165, 0, 1.0),
'orangered': (255, 69, 0, 1.0),
'orchid': (218, 112, 214, 1.0),
'palegoldenrod': (238, 232, 170, 1.0),
'palegreen': (152, 251, 152, 1.0),
'paleturquoise': (175, 238, 238, 1.0),
'palevioletred': (219, 112, 147, 1.0),
'papayawhip': (255, 239, 213, 1.0),
'peachpuff': (255, 218, 185, 1.0),
'peru': (205, 133, 63, 1.0),
'pink': (255, 192, 203, 1.0),
'plum': (221, 160, 221, 1.0),
'powderblue': (176, 224, 230, 1.0),
'purple': (128, 0, 128, 1.0),
'red': (255, 0, 0, 1.0),
'rosybrown': (188, 143, 143, 1.0),
'royalblue': (65, 105, 225, 1.0),
'saddlebrown': (139, 69, 19, 1.0),
'salmon': (250, 128, 114, 1.0),
'sandybrown': (244, 164, 96, 1.0),
'seagreen': (46, 139, 87, 1.0),
'seashell': (255, 245, 238, 1.0),
'sienna': (160, 82, 45, 1.0),
'silver': (192, 192, 192, 1.0),
'skyblue': (135, 206, 235, 1.0),
'slateblue': (106, 90, 205, 1.0),
'slategray': (112, 128, 144, 1.0),
'slategrey': (112, 128, 144, 1.0),
'snow': (255, 250, 250, 1.0),
'springgreen': (0, 255, 127, 1.0),
'steelblue': (70, 130, 180, 1.0),
'tan': (210, 180, 140, 1.0),
'teal': (0, 128, 128, 1.0),
'thistle': (216, 191, 216, 1.0),
'tomato': (255, 99, 71, 1.0),
'turquoise': (64, 224, 208, 1.0),
'violet': (238, 130, 238, 1.0),
'wheat': (245, 222, 179, 1.0),
'white': (255, 255, 255, 1.0),
'whitesmoke': (245, 245, 245, 1.0),
'yellow': (255, 255, 0, 1.0),
'yellowgreen': (154, 205, 50, 1.0),
}
| [
"[email protected]"
] | |
b731f7bb0a905cd69ba11d5d934cc0ac33f22050 | 781e2692049e87a4256320c76e82a19be257a05d | /all_data/exercism_data/python/simple-cipher/7df478df5b6546c4b554e717f00f4c75.py | 902cdef37788b91c86d3d3b606190688274c6913 | [] | no_license | itsolutionscorp/AutoStyle-Clustering | 54bde86fe6dbad35b568b38cfcb14c5ffaab51b0 | be0e2f635a7558f56c61bc0b36c6146b01d1e6e6 | refs/heads/master | 2020-12-11T07:27:19.291038 | 2016-03-16T03:18:00 | 2016-03-16T03:18:42 | 59,454,921 | 4 | 0 | null | 2016-05-23T05:40:56 | 2016-05-23T05:40:56 | null | UTF-8 | Python | false | false | 1,338 | py | '''cipher.py
created 6 Nov 2014
by @jestuber '''
import string
class Caesar(object):
"""docstring for Caesar"""
def __init__(self):
super(Caesar, self).__init__()
# self.arg = arg
def encode(self,plaintext):
return Cipher().encode(plaintext)
def decode(self,encoded):
return Cipher().decode(encoded)
class Cipher(object):
"""docstring for cipher"""
def __init__(self, key='d'):
super(Cipher, self).__init__()
self.key = key
self.shift = [string.lowercase.index(c) for c in key]
def encode(self,plaintext):
encoded = []
plaintext = plaintext.translate(None, string.punctuation+string.digits+' ').lower()
ishift = 0
for c in plaintext:
plainkey = string.lowercase.index(c)
newkey = plainkey + self.shift[ishift]
if newkey > 25:
newkey -= 26
encoded.append(string.lowercase[newkey])
ishift = 0 if ishift>=len(self.shift)-1 else ishift+1
return ''.join(encoded)
def decode(self,encoded):
plaintext = []
encoded = encoded.translate(None, string.punctuation+string.digits+' ').lower()
ishift = 0
for c in encoded:
enckey = string.lowercase.index(c)
newkey = enckey - self.shift[ishift]
if newkey < 0:
newkey += 26
plaintext.append(string.lowercase[newkey])
ishift = 0 if ishift>=len(self.shift)-1 else ishift+1
return ''.join(plaintext)
| [
"[email protected]"
] | |
51ef9ebcaa98ebc7587f1a24b2cf0e33fca79a0f | 127ed1ba90dcced8cce8366a5139973f1d21c372 | /python/lang/security/audit/insecure-transport/urllib/insecure-urlopener-open-ftp.py | edb25f3b511977c953c437733a648bdd97fd483d | [] | no_license | Silentsoul04/semgrep-rules-1 | f0c53e04b4239555a688bca687340af4736d2514 | 81b81481c0a81e45d3ffba8d60dd98491a1b0446 | refs/heads/master | 2022-12-22T15:41:34.399652 | 2020-09-13T14:59:38 | 2020-09-13T14:59:38 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,388 | py | from urllib.request import URLopener
def test1():
od = URLopener()
# ruleid: insecure-urlopener-open-ftp
od.open("ftp://example.com")
def test1_ok():
od = URLopener()
# ok: insecure-urlopener-open-ftp
od.open("ftps://example.com")
def test2():
od = URLopener()
# ruleid: insecure-urlopener-open-ftp
url = "ftp://example.com"
od.open(url)
def test2_ok():
od = URLopener()
# ok: insecure-urlopener-open-ftp
url = "ftps://example.com"
od.open(url)
def test3():
# ruleid: insecure-urlopener-open-ftp
URLopener().open("ftp://example.com")
def test3_ok():
# ok: insecure-urlopener-open-ftp
URLopener().open("ftps://example.com")
def test4():
# ruleid: insecure-urlopener-open-ftp
url = "ftp://example.com"
URLopener().open(url)
def test4_ok():
# ok: insecure-urlopener-open-ftp
url = "ftps://example.com"
URLopener().open(url)
def test5(url = "ftp://example.com"):
# ruleid: insecure-urlopener-open-ftp
URLopener().open(url)
def test5_ok(url = "ftps://example.com"):
# ok: insecure-urlopener-open-ftp
URLopener().open(url)
def test6(url = "ftp://example.com"):
od = URLopener()
# ruleid: insecure-urlopener-open-ftp
od.open(url)
def test6_ok(url = "ftps://example.com"):
od = URLopener()
# ok: insecure-urlopener-open-ftp
od.open(url) | [
"[email protected]"
] | |
d8df3e108eb2a60fcac671fff7ece2212a4fd8a5 | f0e11aeb7b5bd96c828cf39728eb2fa523f320df | /snapflow/cli/commands/generate.py | 10a6882c60f47d5c9c2a9a96f8435d9b031bb621 | [
"BSD-3-Clause"
] | permissive | sathya-reddy-m/snapflow | 7bc1fa7de7fd93b81e5b0538ba73ca68e9e109db | 9e9e73f0d5a3d6b92f528ef1e2840ad92582502e | refs/heads/master | 2023-05-01T05:14:08.479073 | 2021-05-21T00:14:56 | 2021-05-21T00:14:56 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,840 | py | from __future__ import annotations
import os
from snapflow.cli.commands.base import SnapflowCommandBase
import sys
from contextlib import contextmanager
from importlib import import_module
from pathlib import Path
from types import ModuleType
from typing import List, Pattern
from cleo import Command
from snapflow.core.declarative.dataspace import DataspaceCfg
from snapflow.templates.generator import generate_template, insert_into_file
def strip_snapflow(s: str) -> str:
if s.startswith("snapflow_"):
return s[9:]
return s
class GenerateCommand(SnapflowCommandBase, Command):
"""
Generate new snapflow component
new
{type : Type of component to generate (module, dataspace, function, schema, or flow)}
{name : name of the component }
{--s|namespace : namespace of the component, defaults to current module namespace }
"""
def handle(self):
# self.import_current_snapflow_module()
type_ = self.argument("type")
name = self.argument("name")
namespace = self.option("namespace")
try:
getattr(self, f"handle_{type_}")(name, namespace)
except AttributeError:
raise ValueError(
f"Invalid type {type_}, must be one of (module, dataspace, flow, function, schema)"
)
def handle_module(self, name: str, namespace: str):
namespace = namespace or name
generate_template(
"module", namespace=namespace, name=name,
)
# generate_template("tests", py_module_name=py_module_name, module_name=name)
def handle_dataspace(self, name: str, namespace: str):
name = namespace or name
generate_template(
"dataspace", name=name,
)
# Move single file back down to root (cookiecutter doesn't support)
os.rename(f"{name}/snapflow.yml", "snapflow.yml")
def handle_function(self, name: str, namespace: str):
module = self.import_current_snapflow_module()
namespace = getattr(module, "namespace", None)
with self.chdir_relative("functions"):
generate_template("function", function_name=name, namespace=namespace)
self.insert_function_into_current_init_file(name)
def handle_schema(self, name: str, namespace: str):
namespace = strip_snapflow(namespace or self.get_current_snapflow_module_name())
with self.chdir_relative("schemas"):
generate_template("schema", schema_name=name, namespace=namespace)
self.insert_schema_into_current_init_file(name)
def handle_flow(self, name: str, namespace: str):
namespace = strip_snapflow(namespace or self.get_current_snapflow_module_name())
os.chdir(self.abs_path("flows"))
generate_template("flow", flow_name=name, namespace=namespace)
| [
"[email protected]"
] | |
30a67ecaa65f58462ea307f9e7814f41c0df1c1a | 2aace9bb170363e181eb7520e93def25f38dbe5c | /build/idea-sandbox/system/python_stubs/cache/2e033ce6e3a2cdde5174895cadb3b406b2a013729dd641fee2cebd9f7ed97879/cv2/cv2/StereoMatcher.py | 7ab88dbc440f1ef092cd9bd0c28536beb666920f | [] | no_license | qkpqkp/PlagCheck | 13cb66fd2b2caa2451690bb72a2634bdaa07f1e6 | d229904674a5a6e46738179c7494488ca930045e | refs/heads/master | 2023-05-28T15:06:08.723143 | 2021-06-09T05:36:34 | 2021-06-09T05:36:34 | 375,235,940 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,845 | py | # encoding: utf-8
# module cv2.cv2
# from C:\Users\Doly\Anaconda3\lib\site-packages\cv2\cv2.cp37-win_amd64.pyd
# by generator 1.147
""" Python wrapper for OpenCV. """
# imports
import cv2.cv2 as # C:\Users\Doly\Anaconda3\lib\site-packages\cv2\cv2.cp37-win_amd64.pyd
import cv2.Error as Error # <module 'cv2.Error'>
import cv2.aruco as aruco # <module 'cv2.aruco'>
import cv2.bgsegm as bgsegm # <module 'cv2.bgsegm'>
import cv2.bioinspired as bioinspired # <module 'cv2.bioinspired'>
import cv2.cuda as cuda # <module 'cv2.cuda'>
import cv2.datasets as datasets # <module 'cv2.datasets'>
import cv2.detail as detail # <module 'cv2.detail'>
import cv2.dnn as dnn # <module 'cv2.dnn'>
import cv2.face as face # <module 'cv2.face'>
import cv2.fisheye as fisheye # <module 'cv2.fisheye'>
import cv2.flann as flann # <module 'cv2.flann'>
import cv2.ft as ft # <module 'cv2.ft'>
import cv2.hfs as hfs # <module 'cv2.hfs'>
import cv2.img_hash as img_hash # <module 'cv2.img_hash'>
import cv2.instr as instr # <module 'cv2.instr'>
import cv2.ipp as ipp # <module 'cv2.ipp'>
import cv2.kinfu as kinfu # <module 'cv2.kinfu'>
import cv2.line_descriptor as line_descriptor # <module 'cv2.line_descriptor'>
import cv2.linemod as linemod # <module 'cv2.linemod'>
import cv2.ml as ml # <module 'cv2.ml'>
import cv2.motempl as motempl # <module 'cv2.motempl'>
import cv2.multicalib as multicalib # <module 'cv2.multicalib'>
import cv2.ocl as ocl # <module 'cv2.ocl'>
import cv2.ogl as ogl # <module 'cv2.ogl'>
import cv2.omnidir as omnidir # <module 'cv2.omnidir'>
import cv2.optflow as optflow # <module 'cv2.optflow'>
import cv2.plot as plot # <module 'cv2.plot'>
import cv2.ppf_match_3d as ppf_match_3d # <module 'cv2.ppf_match_3d'>
import cv2.quality as quality # <module 'cv2.quality'>
import cv2.reg as reg # <module 'cv2.reg'>
import cv2.rgbd as rgbd # <module 'cv2.rgbd'>
import cv2.saliency as saliency # <module 'cv2.saliency'>
import cv2.samples as samples # <module 'cv2.samples'>
import cv2.structured_light as structured_light # <module 'cv2.structured_light'>
import cv2.text as text # <module 'cv2.text'>
import cv2.utils as utils # <module 'cv2.utils'>
import cv2.videoio_registry as videoio_registry # <module 'cv2.videoio_registry'>
import cv2.videostab as videostab # <module 'cv2.videostab'>
import cv2.xfeatures2d as xfeatures2d # <module 'cv2.xfeatures2d'>
import cv2.ximgproc as ximgproc # <module 'cv2.ximgproc'>
import cv2.xphoto as xphoto # <module 'cv2.xphoto'>
import cv2 as __cv2
class StereoMatcher(__cv2.Algorithm):
# no doc
def compute(self, left, right, disparity=None): # real signature unknown; restored from __doc__
"""
compute(left, right[, disparity]) -> disparity
. @brief Computes disparity map for the specified stereo pair
.
. @param left Left 8-bit single-channel image.
. @param right Right image of the same size and the same type as the left one.
. @param disparity Output disparity map. It has the same size as the input images. Some algorithms,
. like StereoBM or StereoSGBM compute 16-bit fixed-point disparity map (where each disparity value
. has 4 fractional bits), whereas other algorithms output 32-bit floating-point disparity map.
"""
pass
def getBlockSize(self): # real signature unknown; restored from __doc__
"""
getBlockSize() -> retval
.
"""
pass
def getDisp12MaxDiff(self): # real signature unknown; restored from __doc__
"""
getDisp12MaxDiff() -> retval
.
"""
pass
def getMinDisparity(self): # real signature unknown; restored from __doc__
"""
getMinDisparity() -> retval
.
"""
pass
def getNumDisparities(self): # real signature unknown; restored from __doc__
"""
getNumDisparities() -> retval
.
"""
pass
def getSpeckleRange(self): # real signature unknown; restored from __doc__
"""
getSpeckleRange() -> retval
.
"""
pass
def getSpeckleWindowSize(self): # real signature unknown; restored from __doc__
"""
getSpeckleWindowSize() -> retval
.
"""
pass
def setBlockSize(self, blockSize): # real signature unknown; restored from __doc__
"""
setBlockSize(blockSize) -> None
.
"""
pass
def setDisp12MaxDiff(self, disp12MaxDiff): # real signature unknown; restored from __doc__
"""
setDisp12MaxDiff(disp12MaxDiff) -> None
.
"""
pass
def setMinDisparity(self, minDisparity): # real signature unknown; restored from __doc__
"""
setMinDisparity(minDisparity) -> None
.
"""
pass
def setNumDisparities(self, numDisparities): # real signature unknown; restored from __doc__
"""
setNumDisparities(numDisparities) -> None
.
"""
pass
def setSpeckleRange(self, speckleRange): # real signature unknown; restored from __doc__
"""
setSpeckleRange(speckleRange) -> None
.
"""
pass
def setSpeckleWindowSize(self, speckleWindowSize): # real signature unknown; restored from __doc__
"""
setSpeckleWindowSize(speckleWindowSize) -> None
.
"""
pass
def __init__(self, *args, **kwargs): # real signature unknown
pass
@staticmethod # known case of __new__
def __new__(*args, **kwargs): # real signature unknown
""" Create and return a new object. See help(type) for accurate signature. """
pass
def __repr__(self, *args, **kwargs): # real signature unknown
""" Return repr(self). """
pass
| [
"[email protected]"
] | |
60c9db8974c4fcdaf3f0fc22cf0b0a1ad6083ca1 | 5095a2cbc3fea5b63b6f3cabf4ae1bd930cdb479 | /영동/16_숨바꼭질.py | 68332c98c92b749a3fb174e52d26d5d881b07e15 | [] | no_license | syeeuns/week03 | a198150d94caf772d6421b4adf6d8e28793853db | cf40b994fa285800854bac07b7ef86ad5dbdf35a | refs/heads/master | 2023-02-06T13:13:11.012967 | 2020-12-31T04:14:10 | 2020-12-31T04:14:10 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 438 | py |
from collections import deque
N,K = map(int, input().split())
Max=10**5+1
queue=deque([N])
D=[[-1]*2 for _ in range(Max)]
D[N][0]=0
T=[K]
z=K
while queue:
v = queue.popleft()
for newv in [v-1,v+1,v*2]:
if 0<= newv < Max and D[newv][0]==-1:
queue.append(newv)
D[newv][0]=D[v][0]+1
D[newv][1]=v
while D[z][1]!=-1:
T.append(D[z][1])
z=D[z][1]
print(D[K][0])
print(*reversed(T)) | [
"[email protected]"
] | |
cde76863a99e655e46b43112532dd7da3bcc13d4 | 1bde0c807f17fc431b04b4b9cb338ee3acd34b7d | /.history/predict_20210713124241.py | 7c01488a87ec48a2cd94cb2965aba58fb29d0d56 | [] | no_license | Harrysibbenga/Pytorch-NLP | cf9d7e6376d5e19929e6703c3342c81c1a128be1 | 6f22f6ac5f2bf37f27ed2d6285f3a154eda4b566 | refs/heads/main | 2023-06-19T22:43:35.513874 | 2021-07-14T19:45:15 | 2021-07-14T19:45:15 | 385,595,855 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 822 | py | from model import *
from data import *
import sys
rnn = torch.load('char-rnn-classification.pt')
# Just return an output given a line
def evaluate(line_tensor):
hidden = rnn.initHidden()
for i in range(line_tensor.size()[0]):
output, hidden = rnn(line_tensor[i], hidden)
return output
def predict(line, n_predictions=3):
output = evaluate(Variable(lineToTensor(line)))
# Get top N categories
topv, topi = output.data.topk(n_predictions, 1, True)
predictions = []
for i in range(n_predictions):
value = topv[0][i]
category_index = topi[0][i]
print('(%.2f) %s' % (value, all_categories[category_index]))
predictions.append([value, all_categories[category_index]])
return predictions
if __name__ == '__main__':
predict(sys.argv[1])
| [
"[email protected]"
] | |
504ef30ee0168bc45ae83697c4235349baea0e97 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03636/s442033431.py | c0c4bfde22c431f0bcb92965231ba4426799433b | [] | no_license | Aasthaengg/IBMdataset | 7abb6cbcc4fb03ef5ca68ac64ba460c4a64f8901 | f33f1c5c3b16d0ea8d1f5a7d479ad288bb3f48d8 | refs/heads/main | 2023-04-22T10:22:44.763102 | 2021-05-13T17:27:22 | 2021-05-13T17:27:22 | 367,112,348 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 107 | py | strings = list(input())
str_len = len(strings)
print(strings[0] + str(str_len - 2) + strings[str_len - 1])
| [
"[email protected]"
] | |
e2a883be7a61493ac52b48a563af686087b2640a | 9dba277eeb0d5e9d2ac75e2e17ab5b5eda100612 | /19100101/sundyyang/d11_training1.py | 1583902d982bb0769ab8ae4731fc7504566a7143 | [] | no_license | shen-huang/selfteaching-python-camp | e8410bfc06eca24ee2866c5d890fd063e9d4be89 | 459f90c9f09bd3a3df9e776fc64dfd64ac65f976 | refs/heads/master | 2022-05-02T05:39:08.932008 | 2022-03-17T07:56:30 | 2022-03-17T07:56:30 | 201,287,222 | 9 | 6 | null | 2019-08-08T15:34:26 | 2019-08-08T15:34:25 | null | UTF-8 | Python | false | false | 875 | py |
# day 11
import requests
import getpass
import yagmail
from pyquery import PyQuery
from mymodule import stats_word
# 提取微信公众号正文
response = requests.get('https://mp.weixin.qq.com/s/pLmuGoc4bZrMNl7MSoWgiA')
document = PyQuery(response.text)
content = document('#js_content').text()
# 应用 stats_word 方法提取前100个词
day11 = stats_word.stats_text_cn(content)
content = day11.most_common(100)
day11_1 = str(day11)
# print(day11_1)
# 设置邮箱
user = input('请输入你的邮箱:') #邮箱账号
password = getpass.getpass('请输入发件人邮箱密码(可复制粘贴):') #邮箱开通smtp服务授权码
recipient = input('请输入收件人邮箱:')
smtp = "smtp.163.com" #服务器地址
# print(user,password,recipient) #检查
# 发送邮件
yag = yagmail.SMTP(user,password,smtp)
yag.send(recipient,'19100101 sundyyang',day11_1)
| [
"[email protected]"
] | |
2b7b1e3cfa9dbc03cc1d297534895c8a4362ab7a | 3fa27b3ad1c1ca90f2bcf311d89fe8c2ca241cb4 | /Location/models.py | 86164283ca0e8eeb3356a4bbbb87c92cee61e3a0 | [] | no_license | emperorDuke/django-backend-for-ecommerce | 717e15d7be899abcd5a4b7a7d2203c612f001aeb | 83c1ca4d016d876a5c8711ac5cdc448d5a4a533d | refs/heads/master | 2023-02-10T08:57:17.852721 | 2021-01-02T15:49:07 | 2021-01-02T15:49:07 | 271,039,012 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 869 | py | from django.db import models
from django.utils.translation import gettext_lazy as _
from phonenumber_field.modelfields import PhoneNumberField
# Create your models here
class Location(models.Model):
address = models.CharField(_('address'), max_length=100, blank=False)
city = models.CharField(_('city'), max_length=50, blank=False)
country = models.CharField(_('country'), max_length=50, blank=False)
zip_code = models.CharField(_('zip code'), max_length=50, blank=True)
state = models.CharField(_('state'), max_length=50, blank=False)
phone_number = PhoneNumberField(_('Phone number'), blank=False)
added_at = models.DateField(auto_now=True)
class Meta:
unique_together = ('address', 'city', 'state')
db_table = 'location'
def __str__(self):
return '%s, %s, %s' % (self.city, self.state, self.country)
| [
"[email protected]"
] | |
093ee2463b1a86d455d7fd106f214c73722c2ee1 | 503d2f8f5f5f547acb82f7299d86886691966ca5 | /atcoder/abc172_a.py | b5c6641365ed028613ce1898499a4b6fd7f432d3 | [] | no_license | Hironobu-Kawaguchi/atcoder | 3fcb649cb920dd837a1ced6713bbb939ecc090a9 | df4b55cc7d557bf61607ffde8bda8655cf129017 | refs/heads/master | 2023-08-21T14:13:13.856604 | 2023-08-12T14:53:03 | 2023-08-12T14:53:03 | 197,216,790 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 751 | py | # https://atcoder.jp/contests/abc172/tasks/abc172_a
# import sys
# def input(): return sys.stdin.readline().rstrip()
# input = sys.stdin.readline
# input = sys.stdin.buffer.readline
# from numba import njit
# from functools import lru_cache
# sys.setrecursionlimit(10 ** 7)
# @njit('(i8,i8[::1],i4[::1])', cache=True)
# @njit(cache=True)
# def main():
# # @lru_cache(None)
# # def dfs():
# # return
# A, B = map(int, input().split())
# print(A*B)
# return
# main()
a = int(input())
ans = a + a*a + a*a*a
print(ans)
# S = input()
# n = int(input())
# N, K = map(int, input().split())
# l = list(map(int, (input().split())))
# A = [[int(i) for i in input().split()] for _ in range(N)]
| [
"[email protected]"
] | |
e8bb363682e5f8e63ac0e56a986076f1e43f91b6 | 7722c0c2d616af965124120c76bed472900d48bf | /build/pi_io/cmake/pi_io-genmsg-context.py | 093469fa89dd16ff069e8425074390da5c5219da | [] | no_license | EdisonAltamirano/Turtlebot_Mapping | f1cfb190b5a239d0e0bb4932e766cce1ec6c42ba | cfb98058745e5fbf84b2388254dbad2d045362ef | refs/heads/master | 2022-11-13T11:48:27.915328 | 2020-07-06T00:02:45 | 2020-07-06T00:02:45 | 276,209,053 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 602 | py | # generated from genmsg/cmake/pkg-genmsg.context.in
messages_str = "/home/edison/turtle_ws1/src/pi_io/msg/gpio_input.msg"
services_str = "/home/edison/turtle_ws1/src/pi_io/srv/gpio_output.srv"
pkg_name = "pi_io"
dependencies_str = "std_msgs"
langs = "gencpp;geneus;genlisp;gennodejs;genpy"
dep_include_paths_str = "pi_io;/home/edison/turtle_ws1/src/pi_io/msg;std_msgs;/opt/ros/kinetic/share/std_msgs/cmake/../msg"
PYTHON_EXECUTABLE = "/usr/bin/python2"
package_has_static_sources = '' == 'TRUE'
genmsg_check_deps_script = "/opt/ros/kinetic/share/genmsg/cmake/../../../lib/genmsg/genmsg_check_deps.py"
| [
"[email protected]"
] | |
3a332e60dcd0d31aa40dd5f4b190704f255a6135 | 9d484077026b7fcf26188d77281f573eaec1f1d3 | /scripts/adhoc/dendrogram_cuts.py | fef1177f5d92df2b34a79f14c35a9204d2660122 | [] | no_license | gaberosser/qmul-bioinf | 603d0fe1ed07d7233f752e9d8fe7b02c7cf505fe | 3cb6fa0e763ddc0a375fcd99a55eab5f9df26fe3 | refs/heads/master | 2022-02-22T06:40:29.539333 | 2022-02-12T00:44:04 | 2022-02-12T00:44:04 | 202,544,760 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 582 | py |
plt.figure(figsize=(10, 4))
ax = plt.gca()
hierarchy.dendrogram(z, no_labels=True, color_threshold=0., above_threshold_color='k')
ax.axis('off')
plt.tight_layout()
plt.savefig('methyl_dendrogram_%dcuts.png' % 0, dpi=200)
for i in range(2, 7):
c = clustering.dendrogram_threshold_by_nclust(z, i)
plt.figure(figsize=(10, 4))
ax = plt.gca()
hierarchy.dendrogram(z, no_labels=True, color_threshold=c, above_threshold_color='k')
ax.axhline(c, c='gray', ls='--')
ax.axis('off')
plt.tight_layout()
plt.savefig('methyl_dendrogram_%dcuts.png' % i, dpi=200)
| [
"[email protected]"
] | |
92c8a0f78906a2f80b77ac6550c0ec6dda1495c7 | 9df2fb0bc59ab44f026b0a2f5ef50c72b2fb2ceb | /sdk/videoanalyzer/azure-media-videoanalyzer-edge/azure/media/videoanalyzeredge/_generated/models/_azure_video_analyzerfor_edge_enums.py | 35371307bdbb6776cf7c3d240b1ac8a296876400 | [
"MIT",
"LGPL-2.1-or-later",
"LicenseRef-scancode-generic-cla"
] | permissive | openapi-env-test/azure-sdk-for-python | b334a2b65eeabcf9b7673879a621abb9be43b0f6 | f61090e96094cfd4f43650be1a53425736bd8985 | refs/heads/main | 2023-08-30T14:22:14.300080 | 2023-06-08T02:53:04 | 2023-06-08T02:53:04 | 222,384,897 | 1 | 0 | MIT | 2023-09-08T08:38:48 | 2019-11-18T07:09:24 | Python | UTF-8 | Python | false | false | 8,408 | py | # coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
# --------------------------------------------------------------------------
from enum import Enum
from six import with_metaclass
from azure.core import CaseInsensitiveEnumMeta
class GrpcExtensionDataTransferMode(with_metaclass(CaseInsensitiveEnumMeta, str, Enum)):
"""Data transfer mode: embedded or sharedMemory.
"""
#: Media samples are embedded into the gRPC messages. This mode is less efficient but it requires
#: a simpler implementations and can be used with plugins which are not on the same node as the
#: Video Analyzer module.
EMBEDDED = "embedded"
#: Media samples are made available through shared memory. This mode enables efficient data
#: transfers but it requires that the extension plugin to be co-located on the same node and
#: sharing the same shared memory space.
SHARED_MEMORY = "sharedMemory"
class H264Profile(with_metaclass(CaseInsensitiveEnumMeta, str, Enum)):
"""The H264 Profile
"""
BASELINE = "Baseline"
MAIN = "Main"
EXTENDED = "Extended"
HIGH = "High"
class ImageFormatRawPixelFormat(with_metaclass(CaseInsensitiveEnumMeta, str, Enum)):
"""Pixel format to be applied to the raw image.
"""
#: Planar YUV 4:2:0, 12bpp, (1 Cr and Cb sample per 2x2 Y samples).
YUV420_P = "yuv420p"
#: Packed RGB 5:6:5, 16bpp, (msb) 5R 6G 5B(lsb), big-endian.
RGB565_BE = "rgb565be"
#: Packed RGB 5:6:5, 16bpp, (msb) 5R 6G 5B(lsb), little-endian.
RGB565_LE = "rgb565le"
#: Packed RGB 5:5:5, 16bpp, (msb)1X 5R 5G 5B(lsb), big-endian , X=unused/undefined.
RGB555_BE = "rgb555be"
#: Packed RGB 5:5:5, 16bpp, (msb)1X 5R 5G 5B(lsb), little-endian, X=unused/undefined.
RGB555_LE = "rgb555le"
#: Packed RGB 8:8:8, 24bpp, RGBRGB.
RGB24 = "rgb24"
#: Packed RGB 8:8:8, 24bpp, BGRBGR.
BGR24 = "bgr24"
#: Packed ARGB 8:8:8:8, 32bpp, ARGBARGB.
ARGB = "argb"
#: Packed RGBA 8:8:8:8, 32bpp, RGBARGBA.
RGBA = "rgba"
#: Packed ABGR 8:8:8:8, 32bpp, ABGRABGR.
ABGR = "abgr"
#: Packed BGRA 8:8:8:8, 32bpp, BGRABGRA.
BGRA = "bgra"
class ImageScaleMode(with_metaclass(CaseInsensitiveEnumMeta, str, Enum)):
"""Describes the image scaling mode to be applied. Default mode is 'pad'.
"""
#: Preserves the same aspect ratio as the input image. If only one image dimension is provided,
#: the second dimension is calculated based on the input image aspect ratio. When 2 dimensions are
#: provided, the image is resized to fit the most constraining dimension, considering the input
#: image size and aspect ratio.
PRESERVE_ASPECT_RATIO = "preserveAspectRatio"
#: Pads the image with black horizontal stripes (letterbox) or black vertical stripes (pillar-box)
#: so the image is resized to the specified dimensions while not altering the content aspect
#: ratio.
PAD = "pad"
#: Stretches the original image so it resized to the specified dimensions.
STRETCH = "stretch"
class LivePipelineState(with_metaclass(CaseInsensitiveEnumMeta, str, Enum)):
"""Current pipeline state (read-only).
"""
#: The live pipeline is idle and not processing media.
INACTIVE = "inactive"
#: The live pipeline is transitioning into the active state.
ACTIVATING = "activating"
#: The live pipeline is active and able to process media. If your data source is not available,
#: for instance, if your RTSP camera is powered off or unreachable, the pipeline will still be
#: active and periodically retrying the connection. Your Azure subscription will be billed for the
#: duration in which the live pipeline is in the active state.
ACTIVE = "active"
#: The live pipeline is transitioning into the inactive state.
DEACTIVATING = "deactivating"
class MotionDetectionSensitivity(with_metaclass(CaseInsensitiveEnumMeta, str, Enum)):
"""Motion detection sensitivity: low, medium, high.
"""
#: Low sensitivity.
LOW = "low"
#: Medium sensitivity.
MEDIUM = "medium"
#: High sensitivity.
HIGH = "high"
class MPEG4Profile(with_metaclass(CaseInsensitiveEnumMeta, str, Enum)):
"""The MPEG4 Profile
"""
#: Simple Profile.
SP = "SP"
#: Advanced Simple Profile.
ASP = "ASP"
class ObjectTrackingAccuracy(with_metaclass(CaseInsensitiveEnumMeta, str, Enum)):
"""Object tracker accuracy: low, medium, high. Higher accuracy leads to higher CPU consumption in
average.
"""
#: Low accuracy.
LOW = "low"
#: Medium accuracy.
MEDIUM = "medium"
#: High accuracy.
HIGH = "high"
class OnvifSystemDateTimeType(with_metaclass(CaseInsensitiveEnumMeta, str, Enum)):
"""An enum value determining whether the date time was configured using NTP or manual.
"""
NTP = "Ntp"
MANUAL = "Manual"
class OutputSelectorOperator(with_metaclass(CaseInsensitiveEnumMeta, str, Enum)):
"""The operator to compare properties by.
"""
#: The property is of the type defined by value.
IS_ENUM = "is"
#: The property is not of the type defined by value.
IS_NOT = "isNot"
class OutputSelectorProperty(with_metaclass(CaseInsensitiveEnumMeta, str, Enum)):
"""The property of the data stream to be used as the selection criteria.
"""
#: The stream's MIME type or subtype: audio, video or application.
MEDIA_TYPE = "mediaType"
class ParameterType(with_metaclass(CaseInsensitiveEnumMeta, str, Enum)):
"""Type of the parameter.
"""
#: The parameter's value is a string.
STRING = "string"
#: The parameter's value is a string that holds sensitive information.
SECRET_STRING = "secretString"
#: The parameter's value is a 32-bit signed integer.
INT = "int"
#: The parameter's value is a 64-bit double-precision floating point.
DOUBLE = "double"
#: The parameter's value is a boolean value that is either true or false.
BOOL = "bool"
class RtspTransport(with_metaclass(CaseInsensitiveEnumMeta, str, Enum)):
"""Network transport utilized by the RTSP and RTP exchange: TCP or HTTP. When using TCP, the RTP
packets are interleaved on the TCP RTSP connection. When using HTTP, the RTSP messages are
exchanged through long lived HTTP connections, and the RTP packages are interleaved in the HTTP
connections alongside the RTSP messages.
"""
#: HTTP transport. RTSP messages are exchanged over long running HTTP requests and RTP packets are
#: interleaved within the HTTP channel.
HTTP = "http"
#: TCP transport. RTSP is used directly over TCP and RTP packets are interleaved within the TCP
#: channel.
TCP = "tcp"
class SpatialAnalysisOperationFocus(with_metaclass(CaseInsensitiveEnumMeta, str, Enum)):
"""The operation focus type.
"""
#: The center of the object.
CENTER = "center"
#: The bottom center of the object.
BOTTOM_CENTER = "bottomCenter"
#: The footprint.
FOOTPRINT = "footprint"
class SpatialAnalysisPersonCountEventTrigger(with_metaclass(CaseInsensitiveEnumMeta, str, Enum)):
"""The event trigger type.
"""
#: Event trigger.
EVENT = "event"
#: Interval trigger.
INTERVAL = "interval"
class SpatialAnalysisPersonDistanceEventTrigger(with_metaclass(CaseInsensitiveEnumMeta, str, Enum)):
"""The event trigger type.
"""
#: Event trigger.
EVENT = "event"
#: Interval trigger.
INTERVAL = "interval"
class SpatialAnalysisPersonZoneCrossingEventType(with_metaclass(CaseInsensitiveEnumMeta, str, Enum)):
"""The event type.
"""
#: Zone crossing event type.
ZONE_CROSSING = "zoneCrossing"
#: Zone dwell time event type.
ZONE_DWELL_TIME = "zoneDwellTime"
class VideoEncoding(with_metaclass(CaseInsensitiveEnumMeta, str, Enum)):
"""The video codec used by the Media Profile.
"""
#: The Media Profile uses JPEG encoding.
JPEG = "JPEG"
#: The Media Profile uses H264 encoding.
H264 = "H264"
#: The Media Profile uses MPEG4 encoding.
MPEG4 = "MPEG4"
| [
"[email protected]"
] | |
470289561cd1a64a4f86181ed762202ddd73d780 | 7ba48f82dac0c19d41d7da51cda3aef5173dd77c | /statements/chart_configs.py | 919e9f14fa9b673184013653232467eb12101965 | [] | no_license | saiful7/Betasmartz | 09af8b11f816adf3c2dc41ad5a70f170d6dbb981 | 337a79b59498f42294f19e53eea9cd1c8019ee48 | refs/heads/master | 2022-05-10T04:14:31.382569 | 2018-11-23T06:50:45 | 2018-11-23T06:50:45 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 46,429 | py | from datetime import datetime
from django.db.models import Max
from .constants import *
from common.utils import Month
from portfolios.models import MarketIndex
from .utils import get_price_from_index
class ChartData:
def portfolio_performance_config(self):
config = {
"exporting": { "enabled": False },
"credits": {
"enabled": False
},
"chart": {
"type": "column"
},
"title": {
"text": ""
},
"series": [{
"name": "OPW Moderato",
"data": [-1, 14, 18, 5, 6, 5]
},{
"name": "Reference Portfolio Benchmark",
"data": [-4, 2, 3, 4, 5, 6]
}],
"xAxis": {
"categories": ["July 2018", "6 months", "1 year", "3 years", "5 years", "Since inception"]
},
"yAxis": {
"allowDecimals": "False",
"title": {
"text": ""
},
"gridLineWidth": 0,
"tickLength": 5,
"tickWidth": 1,
"tickPosition": "outside",
"labels": {
"align": "right",
"x":-10
},
"lineWidth":1
},
"plotOptions": {
"series": {
"borderWidth": 0,
"dataLabels": {
"enabled": "True",
"format": "{point.y:.1f}%"
}
}
},
"colors": ["#93979b", "#fda934"]
}
return config
def investment_growth_config(self):
config = {
"exporting": { "enabled": False },
"credits": {
"enabled": False
},
"chart": {
"type": "spline",
"scrollablePlotArea": {
"scrollPositionX": 1
}
},
"title": {
"text": ""
},
"xAxis": {
"type": "datetime",
"labels": {
"overflow": "justify"
}
},
"yAxis": {
"title": "",
"gridLineWidth": 0,
"tickLength": 5,
"tickWidth": 1,
"tickPosition": "outside",
"labels": {
"align": "right",
"x":-10,
"y":5
},
"lineWidth":1
},
"tooltip": {
"valueSuffix": "m/s",
"crosshairs": [True]
},
"plotOptions": {
"spline": {
"lineWidth": 4,
"states": {
"hover": {
"lineWidth": 5
}
},
"marker": {
"enabled": False
},
"pointInterval": 3600000,
"pointStart": 1517529600000
}
},
"colors": ["#93979b", "#fda934"],
"series": [{
"data": [
3.7, 3.3, 3.9, 5.1, 3.5, 3.8, 4.0, 5.0, 6.1, 3.7, 3.3, 6.4,
6.9, 6.0, 6.8, 4.4, 4.0, 3.8, 5.0, 4.9, 9.2, 9.6, 9.5, 6.3,
9.5, 10.8, 14.0, 11.5, 10.0, 10.2, 10.3, 9.4, 8.9, 10.6, 10.5, 11.1,
10.4, 10.7, 11.3, 10.2, 9.6, 10.2, 11.1, 10.8, 13.0, 12.5, 12.5, 11.3,
10.1
]
}, {
"data": [
0.2, 0.1, 0.1, 0.1, 0.3, 0.2, 0.3, 0.1, 0.7, 0.3, 0.2, 0.2,
0.3, 0.1, 0.3, 0.4, 0.3, 0.2, 0.3, 0.2, 0.4, 0.0, 0.9, 0.3,
0.7, 1.1, 1.8, 1.2, 1.4, 1.2, 0.9, 0.8, 0.9, 0.2, 0.4, 1.2,
0.3, 2.3, 1.0, 0.7, 1.0, 0.8, 2.0, 1.2, 1.4, 3.7, 2.1, 2.0,
1.5
]
}],
"navigation": {
"menuItemStyle": {
"fontSize": "10px"
}
}
}
return config
def asset_allocation_config(self):
config = {
"exporting": { "enabled": False },
"credits": {
"enabled": False
},
"chart": {
"height":400,
"plotBackgroundColor": None,
"plotBorderWidth": 0,
"plotShadow": False
},
"title": {
"text": "",
"align": "center",
"verticalAlign": "middle"
},
"tooltip": {
"pointFormat": "<b>{point.percentage:.1f}%</b>"
},
"plotOptions": {
"pie": {
"dataLabels": {
"distance": -40,
"style": {
"fontWeight": "bold",
"color": "white"
},
"format": "{y} %"
},
"size":300,
"startAngle": 0,
"endAngle": 360,
"center": ["50%", "50%"],
"showInLegend": True
}
},
"series": [{
"type": "pie",
"innerSize": "50%",
"data": [
["Traditional Equity", 7.5],
["Non-traditional Equity", 17.5],
["Investment grade bonds", 10.5],
["Non-traditional fixed income", 17.5],
["Alternatives", 10.5],
["Cash", 5.5]
]
}]
}
return config
def portfolio_tilts(self):
config = {
"exporting": { "enabled": False },
"chart": {
"type": "column"
},
"title": {
"text": ""
},
"subtitle": {
"text": ""
},
"xAxis": {
"type": "category",
"labels": {
"rotation": 90
}
},
"yAxis": {
"title": {
"text": ""
},
"gridLineWidth": 0,
"tickLength": 5,
"tickWidth": 1,
"tickPosition": "outside",
"labels": {
"align": "right",
"x":-10,
"y":5
},
"lineWidth":1,
"plotBands": [{
"from": 70,
"to": 80,
"label": {
"text": "Overweight",
"style": {
"color": "#606060"
}
}
},{
"from": -20,
"to": -10,
"label": {
"text": "Underweight",
"style": {
"color": "#606060"
}
}
}]
},
"legend": {
"enabled": False
},
"credits": {
"enabled": False
},
"plotOptions": {
"series": {
"borderWidth": 0,
"color": "#93979b"
}
},
"tooltip": {
"headerFormat": "<span style=font-size:11px>{series.name}</span><br>",
"pointFormat": "<span style=color:{point.color}>{point.name}</span>: <b>{point.y:.2f}%</b> of total<br/>"
},
"series": [
{
"name": "Browsers",
"data": [
{
"name": "Traditional Equity",
"y": 62.74
},
{
"name": "Non-traditional Equity",
"y": -10.57
},
{
"name": "Investment grade bonds",
"y": 7.23
},
{
"name": "Non-traditional fixed income",
"y": 5.58
},
{
"name": "Alternatives",
"y": 4.02
},
{
"name": "Cash",
"y": 1.92
}
]
}
]
}
return config
def portfolio_weight_risk(self):
config = {
"legend": {
"verticalAlign": "top"
},
"exporting": { "enabled": False },
"credits": {
"enabled": False
},
"chart": {
"type": "column"
},
"title": {
"text": ""
},
"series": [{
"name": "Portfolio weight",
"data": [-1, 14, 18, 5, 6, 5]
},{
"name": "Risk contribution",
"data": [-4, 2, 3, 4, 5, 6]
}],
"xAxis": {
"categories": ["Traditional Equity",
"Non-traditional Equity",
"Investment grade bonds",
"Non-traditional fixed income",
"Alternatives",
"Cash"],
"labels": {
"rotation": -90
}
},
"yAxis": {
"allowDecimals": False,
"title": {
"text": ""
},
"gridLineWidth": 0,
"tickLength": 5,
"tickWidth": 1,
"tickPosition": "outside",
"labels": {
"align": "right",
"x":-10
},
"lineWidth":1
},
"colors": ["#93979b", "#fda934"]
}
return config
def portfolio_weight_return(self):
config = {
"legend": {
"verticalAlign": "top"
},
"exporting": { "enabled": False },
"credits": {
"enabled": False
},
"chart": {
"type": "column"
},
"title": {
"text": ""
},
"series": [{
"name": "Portfolio weight",
"data": [-1, 14, 18, 5, 6, 5]
},{
"name": "Risk contribution",
"data": [-4, 2, 3, 4, 5, 6]
}],
"xAxis": {
"categories": ["Traditional Equity",
"Non-traditional Equity",
"Investment grade bonds",
"Non-traditional fixed income",
"Alternatives",
"Cash"],
"labels": {
"rotation": -90
}
},
"yAxis": {
"allowDecimals": False,
"title": {
"text": ""
},
"gridLineWidth": 0,
"tickLength": 5,
"tickWidth": 1,
"tickPosition": "outside",
"labels": {
"align": "right",
"x":-10
},
"lineWidth":1
},
"colors": ["#93979b", "#fda934"]
}
return config
def geographic_exposure(self):
config = {
"legend": {
"verticalAlign": "top"
},
"exporting": { "enabled": False },
"credits": {
"enabled": False
},
"chart": {
"type": "column"
},
"title": {
"text": ""
},
"series": [{
"name": "Portfolio",
"data": [4, 14, 18, 5, 6, 5, 14, 15, 18]
},{
"name": "Benchmark",
"data": [1,2,3,4,5,6,7,8,9]
}],
"xAxis": {
"categories": [{
"name": "Americas",
"categories": ["Nth America", "Last Am"]
}, {
"name": "Greater Europe",
"categories": ["UK", "Europe", "EM Europe", "Africa/Middle<br> East"]
}, {
"name": "Greater Asia",
"categories": ["Australia", "Asia", "Japan"]
}],
"labels": {
"rotation": 0
}
},
"yAxis": {
"allowDecimals": False,
"title": {
"text": ""
},
"gridLineWidth": 0,
"tickLength": 5,
"tickWidth": 1,
"tickPosition": "outside",
"labels": {
"align": "right",
"x":-10
},
"lineWidth":1
},
"colors": ["#93979b", "#fda934"]
}
return config
def gics_sector(self):
config = {
"legend": {
"verticalAlign": "top"
},
"exporting": { "enabled": False },
"credits": {
"enabled": False
},
"chart": {
"type": "column"
},
"title": {
"text": ""
},
"series": [{
"name": "Portfolio",
"data": [4, 14, 18, 5, 6, 5, 14, 15, 18, 5]
},{
"name": "Benchmark",
"data": [1,2,3,4,5,6,7,8,9,10]
}],
"xAxis": {
"categories": ["Comcrtable bilogy", "Comcrtable", "Energy", "Financials", "Indonesia", "Iiko bich", "Hero bich", "Musume", "Teldom", "Ulente"],
"labels": {
"rotation": 90
}
},
"yAxis": {
"allowDecimals": False,
"title": {
"text": ""
},
"gridLineWidth": 0,
"tickLength": 5,
"tickWidth": 1,
"tickPosition": "outside",
"labels": {
"align": "right",
"x":-10
},
"lineWidth":1
},
"colors": ["#93979b", "#fda934"]
}
return config
def get_data_from_index(self, index):
daily_prices_array = MarketIndex.objects.get(data_api_param__iexact=index) \
.daily_prices \
.all() \
.annotate(last_date=Max('date'), month=Month('date')) \
.values('price', 'last_date') \
.order_by('last_date') \
daily_prices_data = []
for daily_price in daily_prices_array:
daily_prices_data.append([int(daily_price['last_date'].strftime("%s")) * 1000, daily_price['price']])
return daily_prices_data
def get_us_economic_chart1(self):
return self.get_economic_chart_config([
{
"name": "GDP (yoy%, lhs)",
"index": GDP_API_PARAM_INDEX
},
{
"name": "GS Current Activity Indicator(rhs)",
"index": GSUSCAI_API_PARAM_INDEX
}
])
def get_us_economic_chart2(self):
return self.get_economic_chart_config([
{
"name": "Headline CPI inflation(%yoy, lhs)",
"index": CPI_YOY_INDEX
},
{
"name": "US Fed Policy rate(%, rhs)",
"index": FDTR_INDEX
}
])
def get_eu_economic_chart1(self):
return self.get_economic_chart_config([
{
"name": "GDP (yoy%, lhs)",
"index": EUGNEMUY_INDEX
},
{
"name": "GS Current Activity Indicator(rhs)",
"index": GSEACAI_INDEX
}
])
def get_eu_economic_chart2(self):
return self.get_economic_chart_config([
{
"name": "Headline CPI inflation(%yoy, lhs)",
"index": ECCPEUY_INDEX
},
{
"name": "US Fed Policy rate(%, rhs)",
"index": EUORDEPO_INDEX
}
])
def get_jp_economic_chart1(self):
return self.get_economic_chart_config([
{
"name": "GDP (yoy%, lhs)",
"index": JGDPNSAQ_INDEX
},
{
"name": "GS Current Activity Indicator(rhs)",
"index": GSJPCAI_INDEX
}
])
def get_jp_economic_chart2(self):
return self.get_economic_chart_config([
{
"name": "Headline CPI inflation(%yoy, lhs)",
"index": JNCPIYOY_INDEX
},
{
"name": "US Fed Policy rate(%, rhs)",
"index": BOJDPBAL_INDEX
}
])
def get_au_economic_chart1(self):
return self.get_economic_chart_config([
{
"name": "GDP (yoy%, lhs)",
"index": AUNAGDPY_INDEX
},
{
"name": "GS Current Activity Indicator(rhs)",
"index": GSAUCAI_INDEX
}
])
def get_au_economic_chart2(self):
return self.get_economic_chart_config([
{
"name": "Headline CPI inflation(%yoy, lhs)",
"index": AUCPIYOY_INDEX
},
{
"name": "US Fed Policy rate(%, rhs)",
"index": RBACTRD_INDEX
}
])
def get_cn_economic_chart1(self):
return self.get_economic_chart_config([
{
"name": "GDP (yoy%, lhs)",
"index": CNGDPYOY_INDEX
},
{
"name": "GS Current Activity Indicator(rhs)",
"index": GSCNCAI_INDEX
}
])
def get_cn_economic_chart2(self):
return self.get_economic_chart_config([
{
"name": "Headline CPI inflation(%yoy, lhs)",
"index": CNCPIYOY_INDEX
},
{
"name": "US Fed Policy rate(%, rhs)",
"index": CHBM7D_INDEX
}
])
def get_hk_economic_chart1(self):
return self.get_economic_chart_config([
{
"name": "GDP (yoy%, lhs)",
"index": HKGDYOY_INDEX
},
{
"name": "GS Current Activity Indicator(rhs)",
"index": GSHKCAI_INDEX
}
])
def get_hk_economic_chart2(self):
return self.get_economic_chart_config([
{
"name": "Headline CPI inflation(%yoy, lhs)",
"index": HKCPIY_INDEX
},
{
"name": "US Fed Policy rate(%, rhs)",
"index": HKBASE_INDEX
}
])
def get_economic_chart_config(self, options):
series = [{
"name": option['name'],
"data": self.get_data_from_index(option['index'])
} for option in options]
config = {
"legend": {
"verticalAlign": "top",
"align": "right"
},
"exporting": { "enabled": False },
"credits": {
"enabled": False
},
"chart": {
"type": "line",
"scrollablePlotArea": {
"scrollPositionX": 1
}
},
"title": {
"text": ""
},
"xAxis": {
"type": "datetime",
"labels": {
"overflow": "justify"
}
},
"yAxis": {
"title": "",
"gridLineWidth": 0,
"tickLength": 5,
"tickWidth": 1,
"tickPosition": "outside",
"labels": {
"align": "right",
"x":-10,
"y":5
},
"lineWidth":1
},
"tooltip": {
"crosshairs": [True]
},
"plotOptions": {
"line": {
"lineWidth": 1,
"states": {
"hover": {
"lineWidth": 1
}
},
"marker": {
"enabled": False
}
}
},
"colors": ["#93979b", "#fda934"],
"series": series,
"navigation": {
"menuItemStyle": {
"fontSize": "10px"
}
},
"navigation": {
"menuItemStyle": {
"fontSize": "10px"
}
}
}
return config
def equities(self):
indices = [AS51_INDEX, SPX_INDEX, NKY_INDEX, HSI_INDEX, SHSZ300_INDEX, UKX_INDEX, DAX_INDEX]
categories = [
SPASX_200 + "<br>" + AUSTRALIA,
SP500 +"<br>" + US,
NIKKEI225 + "<br>" + JAPAN,
HANG_SENG + "<br>" + HONGKONG,
CSI300 + "<br>" + CHINA,
FTSE100 + "<br>" + UK,
DAX_30 + "<br>" + GERMANY
]
return self.get_market_chart_config(options=[
{
"name": "1 month",
"daydelta": 30
},
{
"name": "Year to Date",
"daydelta": 180
},
{
"name": "12 months",
"daydelta": 365
}
], indices=indices, categories=categories, chart_index=1)
def get_market_data_from_index(self, indices=[], daydelta=0, chart_index=1):
values = []
for index in indices:
latest_price = get_price_from_index(index, 0)
last_month_price = get_price_from_index(index, daydelta)
if latest_price and last_month_price:
if chart_index == 1:
values.append(round(latest_price / last_month_price - 1, 2))
else:
values.append(round(latest_price - last_month_price/100, 2))
else:
values.append(0)
return values
def get_market_chart_config(self, options=[], indices=[], categories=[], chart_index=1):
series = [{
"name": option['name'],
"data": self.get_market_data_from_index(indices=indices, daydelta=option['daydelta'], chart_index=chart_index)
} for option in options]
config = {
"legend": {
"verticalAlign": "bottom",
"align": "left"
},
"exporting": { "enabled": False },
"credits": {
"enabled": False
},
"title": {
"text": ""
},
"chart": {
"type": "column"
},
"series": series,
"yAxis": {
"title": "",
"gridLineWidth": 0,
"tickLength": 5,
"tickWidth": 1,
"tickPosition": "outside",
"labels": {
"align": "right",
"x":-10
},
"lineWidth":1
},
"colors": ["#93979b", "#fda934", "#ff0000"],
"plotOptions": {
"series": {
"borderWidth": 0,
"dataLabels": {
"enabled": True,
"format": "{point.y:.1f}%"
}
}
},
"xAxis": {
"categories": categories
}
}
return config
def fx(self):
indices = [AUD_CURNCY, AUDGBP_CURNCY, AUDEUR_CURNCY, AUDJPY_CURNCY, AUD_TWI_INDEX]
categories = [
AUD_USD + "<br>" + US_DOLLAR,
AUD_GBP +"<br>" + BRITISH_POUND,
AUD_EUR + "<br>" + EURO,
AUD_YEN + "<br>" + JAPANESE_YEN,
AUD_TWI + "<br>" + AUD_TRADE_WEIGHTED_INDEX
]
return self.get_market_chart_config(options=[
{
"name": "1 month",
"daydelta": 30
},
{
"name": "Year to Date",
"daydelta": 180
},
{
"name": "12 months",
"daydelta": 365
}
], indices=indices, categories=categories, chart_index=1)
def fixed_income(self):
indices = [FFA_COMDTY, USGG2YR_INDEX, USGG10YR_INDEX, RBACTRD_INDEX,\
GACGB3_INDEX, GACGB10_INDEX, JGAGHYSP_INDEX, JGAGCTP1_INDEX]
categories = [
{
"name": "United States",
"categories": [FED_FUNDS_RATE, US_2_YEAR, US_10_YEAR]
}, {
"name": "Australia",
"categories": [RBA_CASH, AUD_3_YEAR, AUD_10_YEAR]
}, {
"name": "Credit Spreads",
"categories": [JP_IG, JP_HY]
}
]
return self.get_market_chart_config(options=[
{
"name": "1 month",
"daydelta": 30
},
{
"name": "Year to Date",
"daydelta": 180
},
{
"name": "12 months",
"daydelta": 365
}
], indices=indices, categories=categories, chart_index=2)
def asset_contributions_returns(self):
config = {
"exporting": { "enabled": False },
"credits": {
"enabled": False
},
"title": {
"text": ""
},
"xAxis": {
"categories": ["Mar-17", "Jan-17", "Sep-17", "Dec-17", "Mar-18"]
},
"yAxis": {
"title": {
"text": ""
},
"stackLa1bels": {
"enab1led": True,
"style": {
"fontWeight": "bold",
"color": "gray"
}
},
"gridLineWidth": 0,
"tickLength": 5,
"tickWidth": 1,
"tickPosition": "outside",
"labels": {
"align": "right",
"x":-10
},
"lineWidth":1
},
"legend": {
"align": "right",
"x": -30,
"verticalAlign": "top",
"y": 25,
"floating": True,
"backgroundColor": "white",
"borderColor": "#CCC",
"borderWidth": 1,
"shadow": False
},
"tooltip": {
"headerFormat": "<b>{point.x}</b><br/>",
"pointFormat": "{series.name}: {point.y}<br/>Total: {point.stackTotal}"
},
"plotOptions": {
"column": {
"stacking": "normal",
"dataLabels": {
"color": "white"
}
}
},
"series": [{
"name": "Traditional Equity",
"type": "column",
"data": [5, -3, 4, 7, 2]
}, {
"name": "Non-traditional Equity",
"type": "column",
"data": [2, 2, -3, 2, -1]
}, {
"name": "Investment grade bonds",
"type": "column",
"data": [-3, 4, 4, 2, 5]
}, {
"name": "Non-traditional fixed income",
"type": "column",
"data": [3, -1, 2, 2, -4]
}, {
"name": "Alternatives",
"type": "column",
"data": [4, -2, -6, -3, 2]
}, {
"name": "Cash",
"type": "column",
"data": [4, -2, -6, -3, 2]
}, {
"name": "Transfers",
"data": [3, 2.67, 3, 6.33, 3.33],
"marker": {
"lineWidth": 2,
"lineColor": "blue",
"fillColor": "white"
}
}]
}
return config
def asset_contributions_volatility(self):
config = {
"exporting": { "enabled": False },
"credits": {
"enabled": False
},
"title": {
"text": ""
},
"xAxis": {
"categories": ["Mar-17", "Jan-17", "Sep-17", "Dec-17", "Mar-18"]
},
"yAxis": {
"title": {
"text": ""
},
"stackLa1bels": {
"enab1led": True,
"style": {
"fontWeight": "bold",
"color": "gray"
}
},
"gridLineWidth": 0,
"tickLength": 5,
"tickWidth": 1,
"tickPosition": "outside",
"labels": {
"align": "right",
"x":-10
},
"lineWidth":1
},
"legend": {
"align": "right",
"x": -30,
"verticalAlign": "top",
"y": 25,
"floating": True,
"backgroundColor": "white",
"borderColor": "#CCC",
"borderWidth": 1,
"shadow": False
},
"tooltip": {
"headerFormat": "<b>{point.x}</b><br/>",
"pointFormat": "{series.name}: {point.y}<br/>Total: {point.stackTotal}"
},
"plotOptions": {
"column": {
"stacking": "normal",
"dataLabels": {
"color": "white"
}
}
},
"series": [{
"name": "Traditional Equity",
"type": "column",
"data": [5, -3, 4, 7, 2]
}, {
"name": "Non-traditional Equity",
"type": "column",
"data": [2, 2, -3, 2, -1]
}, {
"name": "Investment grade bonds",
"type": "column",
"data": [-3, 4, 4, 2, 5]
}, {
"name": "Non-traditional fixed income",
"type": "column",
"data": [3, -1, 2, 2, -4]
}, {
"name": "Alternatives",
"type": "column",
"data": [4, -2, -6, -3, 2]
}, {
"name": "Cash",
"type": "column",
"data": [4, -2, -6, -3, 2]
}, {
"name": "Transfers",
"data": [3, 2.67, 3, 6.33, 3.33],
"marker": {
"lineWidth": 2,
"lineColor": "blue",
"fillColor": "white"
}
}]
}
return config
def portfolio_weight_risk1(self):
config = {
"legend": {
"verticalAlign": "top"
},
"exporting": { "enabled": False },
"credits": {
"enabled": False
},
"title": {
"text": ""
},
"chart": {
"type": "column"
},
"series": [{
"name": "Portfolio",
"data": [4, 14, 18, 5, 6, 5]
},{
"name": "Benchmark",
"data": [1, 2, 3, 4, 5, 6]
}],
"xAxis": {
"categories": ["Traditional Equity", "Non-traditional Equity", "Investment grade bonds", "Non-traditional fixed income", "Alternatives", "Cash"],
"labels": {
"rotation": -90
}
},
"yAxis": {
"allowDecimals": False,
"title": "",
"gridLineWidth": 0,
"tickLength": 5,
"tickWidth": 1,
"tickPosition": "outside",
"labels": {
"align": "right",
"x":-10
},
"lineWidth":1
},
"colors": ["#93979b", "#fda934"]
}
return config
def portfolio_weight_contributions(self):
config = {
"legend": {
"verticalAlign": "top"
},
"exporting": { "enabled": False },
"credits": {
"enabled": False
},
"title": {
"text": ""
},
"chart": {
"type": "column"
},
"series": [{
"name": "Portfolio",
"data": [4, 14, 18, 5, 6, 5, 14, 15, 18]
},{
"name": "Benchmark",
"data": [1,2,3,4,5,6,7,8,9]
}],
"xAxis": {
"categories": ["1", "2", "3", "4", "5", "6", "7", "8", "9"],
"labels": {
"rotation": -90
}
},
"yAxis": {
"allowDecimals": False,
"title": "",
"gridLineWidth": 0,
"tickLength": 5,
"tickWidth": 1,
"tickPosition": "outside",
"labels": {
"align": "right",
"x":-10
},
"lineWidth":1
},
"colors": ["#93979b", "#fda934"]
}
return config
def fund_performance(self):
config = {
"exporting": { "enabled": False },
"title": {
"text": ""
},
"xAxis": {
"categories": ["Mar-17", "Jan-17", "Sep-17", "Dec-17", "Mar-18"]
},
"yAxis": {
"title": "",
"stackLa1bels": {
"enab1led": True,
"style": {
"fontWeight": "bold",
"color": "gray"
}
},
"gridLineWidth": 0,
"tickLength": 5,
"tickWidth": 1,
"tickPosition": "outside",
"labels": {
"align": "right",
"x":-10
},
"lineWidth":1
},
"legend": {
"align": "right",
"x": -30,
"verticalAlign": "top",
"y": 25,
"floating": True,
"backgroundColor": "white",
"borderColor": "#CCC",
"borderWidth": 1,
"shadow": False
},
"tooltip": {
"headerFormat": "<b>{point.x}</b><br/>",
"pointFormat": "{series.name}: {point.y}<br/>Total: {point.stackTotal}"
},
"plotOptions": {
"column": {
"stacking": "normal",
"dataLabels": {
"color": "white"
}
}
},
"series": [{
"name": "Traditional Equity",
"type": "column",
"data": [5, -3, 4, 7, 2]
}, {
"name": "Non-traditional Equity",
"type": "column",
"data": [2, 2, -3, 2, -1]
}, {
"name": "Investment grade bonds",
"type": "column",
"data": [-3, 4, 4, 2, 5]
}, {
"name": "Non-traditional fixed income",
"type": "column",
"data": [3, -1, 2, 2, -4]
}, {
"name": "Alternatives",
"type": "column",
"data": [4, -2, -6, -3, 2]
}, {
"name": "Cash",
"type": "column",
"data": [4, -2, -6, -3, 2]
}]
}
return config
def fund_risk(self):
config = {
"legend": {
"verticalAlign": "bottom",
"align": "left"
},
"exporting": { "enabled": False },
"credits": {
"enabled": False
},
"title": {
"text": ""
},
"chart": {
"type": "spline",
"scrollablePlotArea": {
"scrollPositionX": 1
}
},
"xAxis": {
"type": "datetime",
"labels": {
"overflow": "justify"
}
},
"yAxis": {
"title": "",
"gridLineWidth": 0,
"tickLength": 5,
"tickWidth": 1,
"tickPosition": "outside",
"labels": {
"align": "right",
"x":-10,
"y":5
},
"lineWidth":1
},
"tooltip": {
"valueSuffix": "m/s",
"crosshairs": [True]
},
"plotOptions": {
"spline": {
"lineWidth": 1,
"states": {
"hover": {
"lineWidth": 1
}
},
"marker": {
"enabled": False
},
"pointInterval": 3600000,
"pointStart": 1517529600000
}
},
"colors": ["#93979b", "#fda934"],
"series": [{
"data": [
3.7, 3.3, 3.9, 5.1, 3.5, 3.8, 4.0, 5.0, 6.1, 3.7, 3.3, 6.4,
6.9, 6.0, 6.8, 4.4, 4.0, 3.8, 5.0, 4.9, 9.2, 9.6, 9.5, 6.3,
9.5, 10.8, 14.0, 11.5, 10.0, 10.2, 10.3, 9.4, 8.9, 10.6, 10.5, 11.1,
10.4, 10.7, 11.3, 10.2, 9.6, 10.2, 11.1, 10.8, 13.0, 12.5, 12.5, 11.3,
10.1, 3.7, 3.3, 3.9, 5.1, 3.5, 3.8, 4.0, 5.0, 6.1, 3.7, 3.3, 6.4,
6.9, 6.0, 6.8, 4.4, 4.0, 3.8, 5.0, 4.9, 9.2, 9.6, 9.5, 6.3,
9.5, 10.8, 14.0, 11.5, 10.0, 10.2, 10.3, 9.4, 8.9, 10.6, 10.5, 11.1,
10.4, 10.7, 11.3, 10.2, 9.6, 10.2, 11.1, 10.8, 13.0, 12.5, 12.5, 11.3,
10.1
]
}, {
"data": [
0.2, 0.1, 0.1, 0.1, 0.3, 0.2, 0.3, 0.1, 0.7, 0.3, 0.2, 0.2,
0.3, 0.1, 0.3, 0.4, 0.3, 0.2, 0.3, 0.2, 0.4, 0.0, 0.9, 0.3,
0.7, 1.1, 1.8, 1.2, 1.4, 1.2, 0.9, 0.8, 0.9, 0.2, 0.4, 1.2,
0.3, 2.3, 1.0, 0.7, 1.0, 0.8, 2.0, 1.2, 1.4, 3.7, 2.1, 2.0,
1.5, 0.2, 0.1, 0.1, 0.1, 0.3, 0.2, 0.3, 0.1, 0.7, 0.3, 0.2, 0.2,
0.3, 0.1, 0.3, 0.4, 0.3, 0.2, 0.3, 0.2, 0.4, 0.0, 0.9, 0.3,
0.7, 1.1, 1.8, 1.2, 1.4, 1.2, 0.9, 0.8, 0.9, 0.2, 0.4, 1.2,
0.3, 2.3, 1.0, 0.7, 1.0, 0.8, 2.0, 1.2, 1.4, 3.7, 2.1, 2.0,
1.5
]
}],
"navigation": {
"menuItemStyle": {
"fontSize": "10px"
}
}
}
return config
def asset_allocation1(self):
config = {
"exporting": { "enabled": False },
"credits": {
"enabled": False
},
"chart": {
"type": "area"
},
"title": {
"text": ""
},
"subtitle": {
"text": ""
},
"xAxis": {
"type": "datetime"
},
"yAxis": {
"title": {
"text": ""
}
},
"tooltip": {
"pointFormat": "<span style=color:{series.color}>{series.name}</span>: <b>{point.percentage:.1f}%</b> ({point.y:,.0f} millions)<br/>",
"split": True
},
"plotOptions": {
"area": {
"stacking": "percent",
"lineColor": "#ffffff",
"lineWidth": 0,
"marker": {
"enabled": False,
"lineWidth": 1,
"lineColor": "#ffffff"
},
"pointInterval": 3600000,
"pointStart": 1517529600000
}
},
"series": [{
"name": "Traditional Equity",
"data": [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 5268, 5268]
},{
"name": "Non-traditional Equity",
"data": [502, 635, 809, 947, 1402, 3634, 5268,502, 635, 809, 947, 1402, 3634, 5268]
}, {
"name": "Investment grade bonds",
"data": [106, 107, 111, 133, 221, 767, 1766, 106, 107, 111, 133, 221, 767, 1766]
}, {
"name": "Non-traditional fixed income",
"data": [163, 203, 276, 408, 547, 729, 628, 163, 203, 276, 408, 547, 729, 628]
}, {
"name": "Alternatives",
"data": [18, 31, 54, 156, 339, 818, 1201, 18, 31, 54, 156, 339, 818, 1201]
}, {
"name": "Cash",
"data": [2, 2, 2, 6, 13, 30, 46, 2, 2, 2, 6, 13, 30, 46]
}]
}
return config
def daa_change(self):
config = {
"legend": {
"verticalAlign": "bottom",
"align": "left"
},
"exporting": { "enabled": False },
"credits": {
"enabled": False
},
"chart": {
"type": "spline",
"scrollablePlotArea": {
"scrollPositionX": 1
}
},
"title": {
"text": ""
},
"xAxis": {
"type": "datetime",
"labels": {
"overflow": "justify"
}
},
"yAxis": {
"title": "",
"gridLineWidth": 0,
"tickLength": 5,
"tickWidth": 1,
"tickPosition": "outside",
"labels": {
"align": "right",
"x":-10,
"y":5
},
"lineWidth":1
},
"tooltip": {
"valueSuffix": "m/s",
"crosshairs": [True]
},
"plotOptions": {
"spline": {
"lineWidth": 1,
"states": {
"hover": {
"lineWidth": 1
}
},
"marker": {
"enabled": False
},
"pointInterval": 3600000,
"pointStart": 1517529600000
}
},
"colors": ["#93979b", "#fda934"],
"series": [{
"data": [
3.7, 3.3, 3.9, 5.1, 3.5, 3.8, 4.0, 5.0, 6.1, 3.7, 3.3, 6.4,
6.9, 6.0, 6.8, 4.4, 4.0, 3.8, 5.0, 4.9, 9.2, 9.6, 9.5, 6.3,
9.5, 10.8, 14.0, 11.5, 10.0, 10.2, 10.3, 9.4, 8.9, 10.6, 10.5, 11.1,
10.4, 10.7, 11.3, 10.2, 9.6, 10.2, 11.1, 10.8, 13.0, 12.5, 12.5, 11.3,
10.1, 3.7, 3.3, 3.9, 5.1, 3.5, 3.8, 4.0, 5.0, 6.1, 3.7, 3.3, 6.4,
6.9, 6.0, 6.8, 4.4, 4.0, 3.8, 5.0, 4.9, 9.2, 9.6, 9.5, 6.3,
9.5, 10.8, 14.0, 11.5, 10.0, 10.2, 10.3, 9.4, 8.9, 10.6, 10.5, 11.1,
10.4, 10.7, 11.3, 10.2, 9.6, 10.2, 11.1, 10.8, 13.0, 12.5, 12.5, 11.3,
10.1
]
}, {
"data": [
0.2, 0.1, 0.1, 0.1, 0.3, 0.2, 0.3, 0.1, 0.7, 0.3, 0.2, 0.2,
0.3, 0.1, 0.3, 0.4, 0.3, 0.2, 0.3, 0.2, 0.4, 0.0, 0.9, 0.3,
0.7, 1.1, 1.8, 1.2, 1.4, 1.2, 0.9, 0.8, 0.9, 0.2, 0.4, 1.2,
0.3, 2.3, 1.0, 0.7, 1.0, 0.8, 2.0, 1.2, 1.4, 3.7, 2.1, 2.0,
1.5, 0.2, 0.1, 0.1, 0.1, 0.3, 0.2, 0.3, 0.1, 0.7, 0.3, 0.2, 0.2,
0.3, 0.1, 0.3, 0.4, 0.3, 0.2, 0.3, 0.2, 0.4, 0.0, 0.9, 0.3,
0.7, 1.1, 1.8, 1.2, 1.4, 1.2, 0.9, 0.8, 0.9, 0.2, 0.4, 1.2,
0.3, 2.3, 1.0, 0.7, 1.0, 0.8, 2.0, 1.2, 1.4, 3.7, 2.1, 2.0,
1.5
]
}],
"navigation": {
"menuItemStyle": {
"fontSize": "10px"
}
}
}
return config
def daa_change1(self):
config = {
"legend": {
"verticalAlign": "top"
},
"exporting": { "enabled": False },
"credits": {
"enabled": False
},
"chart": {
"type": "column"
},
"title": {
"text": ""
},
"series": [{
"name": "Portfolio",
"data": [4, 14, 18, 5, 6, 5, 14, 15, 18]
},{
"name": "Benchmark",
"data": [1,2,3,4,5,6,7,8,9]
}],
"xAxis": {
"categories": ["Aug 17", "Sep", "Oct", "Nov", "Dec", "Jan 18", "Feb", "Mar", "Apr"],
"gridLineWidth": 1,
"gridLineDashStyle" : "dot"
},
"yAxis": {
"allowDecimals": False,
"title": "",
"gridLineWidth": 1,
"tickLength": 5,
"tickWidth": 1,
"tickPosition": "outside",
"labels": {
"align": "right",
"x":-10
},
"lineWidth":1
},
"colors": ["#93979b", "#fda934"]
}
return config
def daa_change2(self):
config = {
"legend": {
"verticalAlign": "top"
},
"exporting": { "enabled": False },
"credits": {
"enabled": False
},
"chart": {
"type": "column"
},
"title": {
"text": ""
},
"series": [{
"name": "Portfolio",
"data": [4, 14, 18, 5, 6, 5, 14, 15, 18]
},{
"name": "Benchmark",
"data": [1,2,3,4,5,6,7,8,9]
}],
"xAxis": {
"categories": ["Aug 17", "Sep", "Oct", "Nov", "Dec", "Jan 18", "Feb", "Mar", "Apr"],
"gridLineWidth": 1,
"gridLineDashStyle" : "dot"
},
"yAxis": {
"allowDecimals": False,
"title": "",
"gridLineWidth": 1,
"tickLength": 5,
"tickWidth": 1,
"tickPosition": "outside",
"labels": {
"align": "right",
"x":-10
},
"lineWidth":1
},
"colors": ["#93979b", "#fda934"]
}
return config | [
"[email protected]"
] | |
aa1b71d24e45defa75b428b775fb1f2ecb43ba1d | 0c4bb0b0c91a6bfb8c6ea529b93a303661bcd625 | /python/table_parse/table_data.py | c6dd3b8e0345ebfde4e1382caa04ecbcd3604d16 | [] | no_license | shahrukhqasim/TIES | 28de4bd962624856e58f5293b5a91427132fa38d | 279ce12ef5303f9428cf72d3f01a1922c7c5d584 | refs/heads/master | 2021-08-23T16:29:02.057736 | 2017-12-05T17:34:55 | 2017-12-05T17:34:55 | 106,605,384 | 3 | 2 | null | null | null | null | UTF-8 | Python | false | false | 844 | py | class TableData:
def __init__(self, tokens_embeddings, tokens_rects, neighbor_distance_matrix, tokens_neighbor_matrix,
tokens_share_row_matrix, tokens_share_col_matrix, tokens_share_cell_matrix, neighbors_same_row,
neighbors_same_col, neighbors_same_cell, conv_features):
self.embeddings = tokens_embeddings
self.rects = tokens_rects
self.distances = neighbor_distance_matrix
self.neighbor_graph = tokens_neighbor_matrix
self.row_share = tokens_share_row_matrix
self.col_share = tokens_share_col_matrix
self.cell_share = tokens_share_cell_matrix
self.neighbors_same_row = neighbors_same_row
self.neighbors_same_col = neighbors_same_col
self.neighbors_same_cell = neighbors_same_cell
self.conv_features = conv_features
| [
"[email protected]"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.