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
|
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
ebf006c8185185dddd4a84f9ef15bb8c06bb38ac | 07622a0fb38e843ab0eef4f69bb8fb25d107c06d | /pretrained_mol_sim/Theano-master/theano/tests/main.py | 97fea16ecc4d8d8763b25fdd0fb1d970cab187e3 | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | andreeadeac22/graph_coattention | fa59d77252625e4bee1cb9670e4a0fd0fec98135 | 23781fedaa942ca5614054f965cb7b6543e533fa | refs/heads/master | 2023-08-08T01:51:51.368457 | 2020-02-19T04:56:59 | 2020-02-19T04:56:59 | 207,414,336 | 15 | 4 | MIT | 2023-07-22T15:47:39 | 2019-09-09T22:13:34 | Python | UTF-8 | Python | false | false | 6,222 | py | from __future__ import absolute_import, print_function, division
import os
import unittest
import sys
from numpy.testing.nosetester import NoseTester
# This class contains code adapted from NumPy,
# numpy/testing/nosetester.py,
# Copyright (c) 2005-2011, NumPy Developers
class TheanoNoseTester(NoseTester):
"""
Nose test runner.
This class enables running nose tests from inside Theano,
by calling theano.test().
This version is more adapted to what we want than Numpy's one.
"""
def _test_argv(self, verbose, extra_argv):
"""
Generate argv for nosetest command
:type verbose: int
:param verbose: Verbosity value for test outputs, in the range 1-10.
Default is 1.
:type extra_argv: list
:param extra_argv: List with any extra arguments to pass to nosetests.
"""
# self.package_path = os.path.abspath(self.package_path)
argv = [__file__, self.package_path]
argv += ['--verbosity', str(verbose)]
if extra_argv:
argv += extra_argv
return argv
def _show_system_info(self):
import theano
print("Theano version %s" % theano.__version__)
theano_dir = os.path.dirname(theano.__file__)
print("theano is installed in %s" % theano_dir)
super(TheanoNoseTester, self)._show_system_info()
def prepare_test_args(self, verbose=1, extra_argv=None, coverage=False,
capture=True, knownfailure=True):
"""
Prepare arguments for the `test` method.
Takes the same arguments as `test`.
"""
import nose.plugins.builtin
# compile argv
argv = self._test_argv(verbose, extra_argv)
# numpy way of doing coverage
if coverage:
argv += ['--cover-package=%s' % self.package_name,
'--with-coverage', '--cover-tests',
'--cover-inclusive', '--cover-erase']
# Capture output only if needed
if not capture:
argv += ['-s']
# construct list of plugins
plugins = []
if knownfailure:
from numpy.testing.noseclasses import KnownFailure
plugins.append(KnownFailure())
plugins += [p() for p in nose.plugins.builtin.plugins]
return argv, plugins
def test(self, verbose=1, extra_argv=None, coverage=False, capture=True,
knownfailure=True):
"""
Run tests for module using nose.
:type verbose: int
:param verbose: Verbosity value for test outputs, in the range 1-10.
Default is 1.
:type extra_argv: list
:param extra_argv: List with any extra arguments to pass to nosetests.
:type coverage: bool
:param coverage: If True, report coverage of Theano
code. Default is False.
:type capture: bool
:param capture: If True, capture the standard output of the tests, like
nosetests does in command-line. The output of failing
tests will be displayed at the end. Default is True.
:type knownfailure: bool
:param knownfailure: If True, tests raising KnownFailureTest will
not be considered Errors nor Failure, but reported as
"known failures" and treated quite like skipped tests.
Default is True.
:returns: Returns the result of running the tests as a
``nose.result.TextTestResult`` object.
"""
from nose.config import Config
from nose.plugins.manager import PluginManager
from numpy.testing.noseclasses import NumpyTestProgram
# Many Theano tests suppose device=cpu, so we need to raise an
# error if device==gpu.
if not os.path.exists('theano/__init__.py'):
try:
from theano import config
if config.device != "cpu":
raise ValueError("Theano tests must be run with device=cpu."
" This will also run GPU tests when possible.\n"
" If you want GPU-related tests to run on a"
" specific GPU device, and not the default one,"
" you should use the init_gpu_device theano flag.")
except ImportError:
pass
# cap verbosity at 3 because nose becomes *very* verbose beyond that
verbose = min(verbose, 3)
self._show_system_info()
cwd = os.getcwd()
if self.package_path in os.listdir(cwd):
# The tests give weird errors if the package to test is
# in current directory.
raise RuntimeError((
"This function does not run correctly when, at the time "
"theano was imported, the working directory was theano's "
"parent directory. You should exit your Python prompt, change "
"directory, then launch Python again, import theano, then "
"launch theano.test()."))
argv, plugins = self.prepare_test_args(verbose, extra_argv, coverage,
capture, knownfailure)
# The "plugins" keyword of NumpyTestProgram gets ignored if config is
# specified. Moreover, using "addplugins" instead can lead to strange
# errors. So, we specify the plugins in the Config as well.
cfg = Config(includeExe=True, plugins=PluginManager(plugins=plugins))
t = NumpyTestProgram(argv=argv, exit=False, config=cfg)
return t.result
def main(modulename):
if 0:
unittest.main()
elif len(sys.argv) == 2 and sys.argv[1] == "--debug":
module = __import__(modulename)
tests = unittest.TestLoader().loadTestsFromModule(module)
tests.debug()
elif len(sys.argv) == 1:
module = __import__(modulename)
tests = unittest.TestLoader().loadTestsFromModule(module)
unittest.TextTestRunner(verbosity=2).run(tests)
else:
print("options: [--debug]")
| [
"[email protected]"
] | |
dd9342b5d54c739cf9849c117a9e29a645ae9176 | 5884ceea5e7f2d6dfa1e2bcfb08af7229923fc1f | /test9/.env/bin/easy_install-3.6 | fb04d2eed2eb425ccfe10daa0996f2e4754018e7 | [] | no_license | Durant21/test9a | 118716614c3e8c45fea3ea28babf8613c7cbb6c0 | 8979cb3fd1bb770dca3a1078a43ca395a14e2c10 | refs/heads/master | 2020-07-11T14:21:23.703613 | 2019-08-26T21:52:49 | 2019-08-26T21:52:49 | 204,566,373 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 267 | 6 | #!/home/dante/Projects/test9/test9/.env/bin/python3
# -*- coding: utf-8 -*-
import re
import sys
from setuptools.command.easy_install import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"[email protected]"
] | |
6372135fc16eea5d5a7e51601a76f80eaa89bac6 | c61b1c1b65034215e85266db918c39946a3bafe7 | /athletes/serializers.py | 474ff1d5651ddb2dd3fc4d48d21a27ada56cb54d | [] | no_license | enias-oliveira/olympicHistory | 06cdc64f0ef06cf6b33472872539a0c57831f52c | e02f648d2bd127c8ae16c976fb8610005ac27604 | refs/heads/master | 2023-08-16T03:36:33.261214 | 2021-10-05T18:11:52 | 2021-10-05T18:11:52 | 411,797,836 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,494 | py | from rest_framework import serializers
from medals.models import Medal
from medals.serializers import MedalSerializer
from games.models import Event
from games.serializers import EventSerializer
from .models import Athlete, Country
class AthleteMedalSerializer(MedalSerializer):
class Meta:
model = Medal
fields = ["id", "medal_class", "event"]
class CountrySerializer(serializers.ModelSerializer):
class Meta:
model = Country
fields = ["id", "name", "noc"]
class AthleteCountrySerializer(CountrySerializer):
class Meta:
model = Country
fields = ["noc", "name"]
class AthleteEventSerializer(EventSerializer):
competition = serializers.SlugRelatedField(
slug_field="name",
read_only=True,
)
class Meta:
model = Event
fields = "__all__"
class AthleteRelatedField(serializers.RelatedField):
def to_representation(self, value):
serialized_data = self.serializer_class(value)
return serialized_data.data
def to_internal_value(self, data):
return self.queryset.get(pk=data)
class AthleteCountryField(AthleteRelatedField):
queryset = Country.objects.all()
serializer_class = AthleteCountrySerializer
def to_internal_value(self, data):
return self.queryset.get(name=data)
class AthleteMedalsField(AthleteRelatedField):
queryset = Medal.objects.all()
serializer_class = AthleteMedalSerializer
class AthleteEventsField(AthleteRelatedField):
queryset = Event.objects.all()
serializer_class = AthleteEventSerializer
def to_representation(self, value):
value.sport = value.competition.sport.name
serialized_data = self.serializer_class(value)
return serialized_data.data
class AthleteSerializer(serializers.ModelSerializer):
medals = AthleteMedalsField(many=True, required=False)
country = AthleteCountryField()
class Meta:
model = Athlete
fields = "__all__"
def to_representation(self, instance):
current_representation = super().to_representation(instance)
current_representation["sex"] = dict(Athlete.SEX_CHOICES)[
current_representation["sex"]
]
return current_representation
def to_internal_value(self, data):
if data.get("sex"):
season_full_to_short = {v: k for k, v in Athlete.SEX_CHOICES}
data["sex"] = season_full_to_short[data["sex"]]
return data
| [
"[email protected]"
] | |
2ba268102fe8f16978356394926d7b179fdf9dc9 | 69819f1d554e48b6d1f280e4d4785b35734e6235 | /py_learning/test3_4.py | 55da6b2b3bb96778e1fca613dd93c9a228e22b41 | [] | no_license | SamKaiYang/python_code | 8b60b4b68ab7cd4261e237972c0f6e45fc2dced5 | fb16471aa96082efc906fd8129cecd3a8b19e8a0 | refs/heads/master | 2020-04-26T03:26:38.041377 | 2019-04-11T06:38:09 | 2019-04-11T06:38:09 | 173,267,336 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,202 | py | import numpy
###--------------------ch.3-------------------
years_list = [1996 ,1997 ,1998 ,1999 ,2000]
print("----------------ch3----------------------------")
print("3.1:",years_list)
print("-----------------------------------------------")
print("3.2:",years_list[2])
print("-----------------------------------------------")
print("3.3:",years_list[-1])
print("-----------------------------------------------")
thing = ["mozzarella" , "cinderella" ,"salmonella"]
print("3.4:",thing)
print("-----------------------------------------------")
print("3.5:",thing[1].capitalize())
print("-----------------------------------------------")
thing[0].capitalize()
thing[0] = thing[0].upper()
print("3.6:",thing)
print("-----------------------------------------------")
del thing[2]
print("3.7:",thing)
print("-----------------------------------------------")
surprise = ["Croucho","Chico","Harpo"]
print("3.8:",surprise)
print("-----------------------------------------------")
def reverse(str):
out = ''
li = list(str)
for i in range(len(li), 0, -1):
out += ''.join(li[i-1])
return out
surprise[2] =surprise[2].lower()
surprise[2] =reverse(surprise[2])
surprise[2]= surprise[2].capitalize()
print("3.9:",surprise)
print("-----------------------------------------------")
e2f = {"dog": 'chien', "cat": 'chat', "walrus": 'morse'}
print("3.10:",e2f)
print("-----------------------------------------------")
print("3.11:",e2f["walrus"])
print("-----------------------------------------------")
f2e = {v: k for k, v in e2f.items()}
print("3.12:",e2f.items())
print("-----------------------------------------------")
print("3.13:",f2e["chien"])
print("-----------------------------------------------")
print("3.14:",e2f.keys())
print("-----------------------------------------------")
life = {"animals": {'cats':["Henri","Grumpy","Lucy"],'octopi':None,'emus':None},"plants": None, "other": None, }
print("3.15:",life)
###--------------------ch.4------------------
print("-----------------ch4---------------------------")
guess_me = 7
print("4.1:")
if guess_me < 7 :
print("too low")
elif guess_me >7:
print("too high")
elif guess_me == 7:
print("just righ")
print("-----------------------------------------------")
print("4.2:")
start = 1
while(1):
if start < guess_me:
print("too low")
elif start == guess_me:
print("found it")
break
elif start > guess_me:
print("Oops!!")
break
start += 1
print("-----------------------------------------------")
num = [3,2,1,0]
for i in range(len(num)):
print("4.3:",num[i])
print("-----------------------------------------------")
number_list = [i for i in range(0,10) if i%2==0]
print("4.4:",number_list)
print("-----------------------------------------------")
word = 'squares'
letter_count = {letter:pow(word.count(letter),2) for letter in set(word)}
print("4.5:", letter_count)
print("-----------------------------------------------")
set1 = {number for number in range(10) if number%2 == 1}
print("4.6:", set1)
print("-----------------------------------------------")
def good():
list_a = ['Harry','Ron','hermione']
return(list_a)
print("4.8:",good()) | [
"[email protected]"
] | |
905a119de0d7d34cc786486287e9cd094818c475 | c82cefee68d557b0790483500b58e7e2988bd33b | /lib/web.py | 2b001db7cb369359b02c9788fdcdc55fce7b4de8 | [
"MIT"
] | permissive | amadeobrands/electrum | c5def78731faf6908cf48342ce3d291547d1a52f | 459100eda0f3cdcf6d75e304d08345a627364078 | refs/heads/master | 2021-08-29T11:38:29.221991 | 2017-12-13T11:00:16 | 2017-12-13T21:05:53 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,964 | py | # Electrum - lightweight Bitcoin client
# Copyright (C) 2011 Thomas Voegtlin
#
# Permission is hereby granted, free of charge, to any person
# obtaining a copy of this software and associated documentation files
# (the "Software"), to deal in the Software without restriction,
# including without limitation the rights to use, copy, modify, merge,
# publish, distribute, sublicense, and/or sell copies of the Software,
# and to permit persons to whom the Software is furnished to do so,
# subject to the following conditions:
#
# The above copyright notice and this permission notice shall be
# included in all copies or substantial portions of the Software.
#
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
# EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
# NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS
# BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
# ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
# CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
# SOFTWARE.
from decimal import Decimal
import os
import re
import shutil
import urllib
from .address import Address
from . import bitcoin
from .networks import NetworkConstants
mainnet_block_explorers = {
'Blockchair.com': ('https://blockchair.com/bitcoin-cash',
Address.FMT_LEGACY,
{'tx': 'transaction', 'addr': 'address'}),
}
testnet_block_explorers = {
'Blocktrail.com': ('https://www.blocktrail.com/tBCC',
Address.FMT_LEGACY,
{'tx': 'tx', 'addr': 'address'}),
'system default': ('blockchain:',
Address.FMT_LEGACY,
{'tx': 'tx', 'addr': 'address'}),
}
def BE_info():
if NetworkConstants.TESTNET:
return testnet_block_explorers
return mainnet_block_explorers
def BE_tuple(config):
return BE_info().get(BE_from_config(config))
def BE_from_config(config):
return config.get('block_explorer', 'Blockchair.com')
def BE_URL(config, kind, item):
be_tuple = BE_tuple(config)
if not be_tuple:
return
url_base, addr_fmt, parts = be_tuple
kind_str = parts.get(kind)
if not kind_str:
return
if kind == 'addr':
assert isinstance(item, Address)
item = item.to_string(addr_fmt)
return "/".join([url_base, kind_str, item])
def BE_sorted_list():
return sorted(BE_info())
def create_URI(addr, amount, message):
if not isinstance(addr, Address):
return ""
path = addr.to_ui_string()
query = []
if amount:
query.append('amount=%s'%format_satoshis_plain(amount))
if message:
query.append('message=%s'%urllib.parse.quote(message))
p = urllib.parse.ParseResult(scheme='bitcoincash', netloc='', path=path, params='', query='&'.join(query), fragment='')
return urllib.parse.urlunparse(p)
# URL decode
#_ud = re.compile('%([0-9a-hA-H]{2})', re.MULTILINE)
#urldecode = lambda x: _ud.sub(lambda m: chr(int(m.group(1), 16)), x)
def parse_URI(uri, on_pr=None):
if ':' not in uri:
# Test it's valid
Address.from_string(uri)
return {'address': uri}
u = urllib.parse.urlparse(uri)
if u.scheme != 'bitcoincash':
raise BaseException("Not a bitcoincash URI")
address = u.path
# python for android fails to parse query
if address.find('?') > 0:
address, query = u.path.split('?')
pq = urllib.parse.parse_qs(query)
else:
pq = urllib.parse.parse_qs(u.query)
for k, v in pq.items():
if len(v)!=1:
raise Exception('Duplicate Key', k)
out = {k: v[0] for k, v in pq.items()}
if address:
Address.from_string(address)
out['address'] = address
if 'amount' in out:
am = out['amount']
m = re.match('([0-9\.]+)X([0-9])', am)
if m:
k = int(m.group(2)) - 8
amount = Decimal(m.group(1)) * pow(10, k)
else:
amount = Decimal(am) * bitcoin.COIN
out['amount'] = int(amount)
if 'message' in out:
out['message'] = out['message']
out['memo'] = out['message']
if 'time' in out:
out['time'] = int(out['time'])
if 'exp' in out:
out['exp'] = int(out['exp'])
if 'sig' in out:
out['sig'] = bh2u(bitcoin.base_decode(out['sig'], None, base=58))
r = out.get('r')
sig = out.get('sig')
name = out.get('name')
if on_pr and (r or (name and sig)):
def get_payment_request_thread():
from . import paymentrequest as pr
if name and sig:
s = pr.serialize_request(out).SerializeToString()
request = pr.PaymentRequest(s)
else:
request = pr.get_payment_request(r)
if on_pr:
on_pr(request)
t = threading.Thread(target=get_payment_request_thread)
t.setDaemon(True)
t.start()
return out
def check_www_dir(rdir):
if not os.path.exists(rdir):
os.mkdir(rdir)
index = os.path.join(rdir, 'index.html')
if not os.path.exists(index):
print_error("copying index.html")
src = os.path.join(os.path.dirname(__file__), 'www', 'index.html')
shutil.copy(src, index)
files = [
"https://code.jquery.com/jquery-1.9.1.min.js",
"https://raw.githubusercontent.com/davidshimjs/qrcodejs/master/qrcode.js",
"https://code.jquery.com/ui/1.10.3/jquery-ui.js",
"https://code.jquery.com/ui/1.10.3/themes/smoothness/jquery-ui.css"
]
for URL in files:
path = urllib.parse.urlsplit(URL).path
filename = os.path.basename(path)
path = os.path.join(rdir, filename)
if not os.path.exists(path):
print_error("downloading ", URL)
urllib.request.urlretrieve(URL, path)
| [
"[email protected]"
] | |
99851ffa805c3ed010783c1fa4bcefd5dc0b55af | f07a42f652f46106dee4749277d41c302e2b7406 | /Data Set/bug-fixing-5/f05c02c4b8d4e423e57d453c4bd699dc5ff7eaa7-<test_quote_value>-fix.py | b76461e1c58bbd3cbb3da8d06195ffab39dbfdfe | [] | 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 | 433 | py | def test_quote_value(self):
import MySQLdb
editor = connection.schema_editor()
tested_values = [('string', "'string'"), (42, '42'), (1.754, ('1.754e0' if (MySQLdb.version_info >= (1, 3, 14)) else '1.754')), (False, (b'0' if (MySQLdb.version_info >= (1, 4, 0)) else '0'))]
for (value, expected) in tested_values:
with self.subTest(value=value):
self.assertEqual(editor.quote_value(value), expected) | [
"[email protected]"
] | |
b6a5ed0416da616a2c7f584e7ad77d7f96bb9d7a | 65e73c6c4a9e66715be2cbdd93339ebcab93976e | /windmill/fundo/migrations/0032_vertice_corretora.py | a3eb1329352877a6515e34208cf08afdae56e014 | [] | no_license | AnimaTakeshi/windmill-django | 3577f304d5e7f74750c7d95369e87d37209f1ac6 | 78bde49ace1ed215f6238fe94c142eac16e164dc | refs/heads/master | 2022-12-13T11:13:21.859012 | 2019-02-07T20:50:01 | 2019-02-07T20:50:01 | 150,470,109 | 0 | 0 | null | 2022-12-08T01:29:36 | 2018-09-26T18:13:54 | Python | UTF-8 | Python | false | false | 493 | py | # Generated by Django 2.0 on 2018-11-29 19:24
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('fundo', '0031_auto_20181129_1104'),
]
operations = [
migrations.AddField(
model_name='vertice',
name='corretora',
field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.PROTECT, to='fundo.Corretora'),
),
]
| [
"[email protected]"
] | |
f67cdbfe0e4394de9e3098f44b044ab56b238f57 | a9fbbfc990ad79f412d8078d27b8937e5ef00bde | /inheritance/exercise/problem_03/knight.py | 334ddf65c77ff19a4a263ea75168b1dd9a6af0cf | [
"MIT"
] | permissive | BoyanPeychinov/object_oriented_programming | e2d23ec0ff681ca2c6cf1805e581af3d601aafee | a960721c7c17710bd7b151a9025647e953435962 | refs/heads/main | 2023-03-31T16:19:20.239216 | 2021-03-30T19:43:42 | 2021-03-30T19:43:42 | 342,281,483 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 64 | py | from problem_03.hero import Hero
class Knight(Hero):
pass
| [
"[email protected]"
] | |
a164d0312f3a5559e47223aa73fad366d912287a | ce6739d9e76f16d1cbdfbb3292cdabac62d23ee1 | /mod_2/lesson_8/homework_2/main.py | 388347f374c64f6a6f86d8e8dd8ed5640d330d2c | [] | no_license | adrbed/python_poczatek | 1a863c0dc40c2315ced8985cf0b31d1b84e3f940 | 134626ccbe2255b0a28183e7d5d212db12c7deb4 | refs/heads/master | 2023-02-10T15:06:51.888544 | 2021-01-09T18:23:56 | 2021-01-09T18:23:56 | 328,218,686 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,654 | py |
# Dodaj do programu obsługę polityki rabatowej.
# Zaimplementuj funkcje reprezentujące politykę podatkową i przekaż je do konstruktora zamówienia.
# Jeżeli polityka została przekazana to podczas liczenia łącznej kwoty zamówienia należy naliczyć rabat.
# Jeżeli nie - obliczamy łączną kwotę jak dotychczas.
# Zaimplementuj dwie polityki rabatowe:
# Dla stałych klientów: 5% rabatu na każdą pozycję
# Rabat świąteczny: rabat 20 PLN dla zamówień o łącznej kwocie powyżej 100 PLN
import random
from shop.order_element import OrderElement
from shop.product import Product
from shop.discount_policy import loyal_customer_policy, christmas_policy
from shop.order import Order
def generate_order_elements():
order_elements = []
for product_number in range(5):
product_name = f"Produkt-{product_number}"
category_name = "Inne"
unit_price = random.randint(1, 30)
product = Product(product_name, category_name, unit_price)
quantity = random.randint(1, 10)
order_elements.append(OrderElement(product, quantity))
return order_elements
def run_homework():
first_name = "Mikołaj"
last_name = "Lewandowski"
order_elements = generate_order_elements()
normal_order = Order(first_name, last_name, order_elements)
loyal_customer_order = Order(first_name, last_name, order_elements, discount_policy=loyal_customer_policy)
christmas_order = Order(first_name, last_name, order_elements, discount_policy=christmas_policy)
print(normal_order)
print(loyal_customer_order)
print(christmas_order)
if __name__ == '__main__':
run_homework()
| [
"[email protected]"
] | |
e9e9799b02db2f0a528239390a1408c0943ce0df | c3e776b885ac9552ad4b96b63594ab759f12cc3a | /test/test_shape.py | c641e71e3eca4afe9db6faef214267b55670c856 | [] | no_license | wing328/petstore-python | e9ff3c2a5ff0fdddb1e6b0f12fc7e1d48f65590a | fa65c111bb2a040ebb0ed0db3ff9c52c8821922e | refs/heads/master | 2021-10-20T22:22:33.677235 | 2021-10-17T10:33:24 | 2021-10-17T10:33:24 | 54,948,706 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 955 | py | """
OpenAPI Petstore
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501
The version of the OpenAPI document: 1.0.0
Generated by: https://openapi-generator.tech
"""
import sys
import unittest
import petstore_api
from petstore_api.model.quadrilateral import Quadrilateral
from petstore_api.model.triangle import Triangle
globals()['Quadrilateral'] = Quadrilateral
globals()['Triangle'] = Triangle
from petstore_api.model.shape import Shape
class TestShape(unittest.TestCase):
"""Shape unit test stubs"""
def setUp(self):
pass
def tearDown(self):
pass
def testShape(self):
"""Test Shape"""
# FIXME: construct object with mandatory attributes with example values
# model = Shape() # noqa: E501
pass
if __name__ == '__main__':
unittest.main()
| [
"[email protected]"
] | |
6964898e391447b3d1130c2528211f4e8de6b23d | cdbf40c2de7b22a10e07a1f612cb49059a3fc858 | /main/cache.py | 970f75c7d612d8b1dcad2a10c9422a214c3a4833 | [
"MIT"
] | permissive | riccitensor/gae-init | 2e86a77e5a99a8a0ad4889a275974409945a1940 | d9061cf32a26ebc03873431838ead0b1150374b9 | refs/heads/master | 2020-12-31T03:35:49.650513 | 2014-09-15T23:45:57 | 2014-09-15T23:45:57 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 486 | py | # coding: utf-8
from google.appengine.api import memcache
###############################################################################
# Helpers
###############################################################################
def bump_counter(key, time=3600, limit=4):
client = memcache.Client()
for _ in range(limit):
counter = client.gets(key)
if counter is None:
client.set(key, 0, time=time)
counter = 0
if client.cas(key, counter + 1):
break
| [
"[email protected]"
] | |
32b125c421cc16caea121a8692ce403e096ba7ff | 3f4b535e537666b669b4cfbfca05c7529d2fb631 | /Algorithms/generate_palindromes_recursion.py | 4b79f741f374bae1608a3aa0949e2745f2171c29 | [] | no_license | iliachigogidze/Python | ded0a78a1751a536fcdf1fd864fc296ef52f6164 | 6db759b3ee4f4b866421b2cb3a775b7aec32b0c9 | refs/heads/master | 2020-04-09T08:15:07.107069 | 2019-03-11T10:35:23 | 2019-03-11T10:35:23 | 160,187,366 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 796 | py | '''
18. Given a list of distinct letters and a positive number N, generate all possible palindromes
having the length not greater than N. Single word can be used multiple times per palindrome. Example: ['a', 'b'], N=3 a aa aaa b bb bbb aba bab
'''
def main(ls, n):
print('List: ', ls)
word = 'a' * n
return recursion(word, ls)
def recursion(word,ls):
if len(word) == 0: return ['']
elif len(word) == 1: return [c for c in ls]
else:
word = word[1:-1]
word = recursion(word,ls)
palindromes = []
for w in word:
palindromes.append(w)
for c in ls:
if c is w:
palindromes.append(c+w)
palindromes.append(c+w+c)
return palindromes
print(main(['a','b'], 4)) | [
"[email protected]"
] | |
9baf2660cc9fa21d1bb8c3a35013e783982f39b3 | de78652f2d804755b19a8bd9402e4a649d5ff1c1 | /delira/models/segmentation/__init__.py | 1b951f9e63b3e5cdd9e6ad222050d82d02d7299e | [
"BSD-2-Clause"
] | permissive | NKPmedia/delira | a3e63adbfb82e7d4c80571e66f33c5afea43ab9b | a10227e30c14c6507a1790813e53572e0d841c21 | refs/heads/master | 2020-06-05T06:41:57.120344 | 2019-06-17T13:16:32 | 2019-06-17T13:16:32 | 192,347,832 | 0 | 0 | BSD-2-Clause | 2019-06-17T13:16:33 | 2019-06-17T13:00:27 | Python | UTF-8 | Python | false | false | 114 | py | from delira import get_backends
if "TORCH" in get_backends():
from .unet import UNet2dPyTorch, UNet3dPyTorch
| [
"[email protected]"
] | |
85c201f5f5de17ab3e1365558c6188fbb929728d | 1825283527f5a479204708feeaf55f4ab6d1290b | /leetcode/python/841/841.keys-and-rooms.py | 0656b2ebe9f552d97e1b6e8129c65305972f48bf | [] | no_license | frankieliu/problems | b82c61d3328ffcc1da2cbc95712563355f5d44b5 | 911c6622448a4be041834bcab25051dd0f9209b2 | refs/heads/master | 2023-01-06T14:41:58.044871 | 2019-11-24T03:47:22 | 2019-11-24T03:47:22 | 115,065,956 | 1 | 0 | null | 2023-01-04T07:25:52 | 2017-12-22T02:06:57 | HTML | UTF-8 | Python | false | false | 1,525 | py | #
# @lc app=leetcode id=841 lang=python3
#
# [841] Keys and Rooms
#
# https://leetcode.com/problems/keys-and-rooms/description/
#
# algorithms
# Medium (58.74%)
# Total Accepted: 24.4K
# Total Submissions: 41.6K
# Testcase Example: '[[1],[2],[3],[]]'
#
# There are N rooms and you start in room 0. Each room has a distinct number
# in 0, 1, 2, ..., N-1, and each room may have some keys to access the next
# room.
#
# Formally, each room i has a list of keys rooms[i], and each key rooms[i][j]
# is an integer in [0, 1, ..., N-1] where N = rooms.length. A key rooms[i][j]
# = v opens the room with number v.
#
# Initially, all the rooms start locked (except for room 0).
#
# You can walk back and forth between rooms freely.
#
# Return true if and only if you can enter every room.
#
#
#
#
# Example 1:
#
#
# Input: [[1],[2],[3],[]]
# Output: true
# Explanation:
# We start in room 0, and pick up key 1.
# We then go to room 1, and pick up key 2.
# We then go to room 2, and pick up key 3.
# We then go to room 3. Since we were able to go to every room, we return
# true.
#
#
# Example 2:
#
#
# Input: [[1,3],[3,0,1],[2],[0]]
# Output: false
# Explanation: We can't enter the room with number 2.
#
#
# Note:
#
#
# 1 <= rooms.length <= 1000
# 0 <= rooms[i].length <= 1000
# The number of keys in all rooms combined is at most 3000.
#
#
#
class Solution:
def canVisitAllRooms(self, rooms):
"""
:type rooms: List[List[int]]
:rtype: bool
"""
| [
"[email protected]"
] | |
0ba08eb41cfb2e76bd9b6aa1e05cd05ecd2ebf2b | 9047aec2400933376e71fdc24d087d2ad35b4d45 | /flipAndInvertImage_832.py | 0145883c6e9c652019e80f3433fce0bc3df0edd1 | [] | no_license | sasankyadavalli/leetcode | a8c3a4b63970cfa67a8bbec5d1fb7cca818f7ea9 | 555931bc5a74e0031726070be90c945da9cb3251 | refs/heads/master | 2021-02-07T12:12:06.938562 | 2020-07-28T18:25:10 | 2020-07-28T18:25:10 | 244,024,453 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 252 | py | class Solution:
def flipAndInvertImage(self, A: List[List[int]]) -> List[List[int]]:
for i in range(len(A)):
A[i] = A[i][::-1]
for j in range(len(A[i])):
A[i][j] ^= 1
return A | [
"[email protected]"
] | |
43c1a91b4e3f8f288ce744bcc1e36236880f0919 | 9268c07cd58f68fd20daf5e38880ef452eeca331 | /10219-.py | 7e62d546d53bceb63e73315a6a81a245e42f14d1 | [] | no_license | rkdr055/BOJ | bbdbdcf8a9df399c3655eea3d9f337275b1ae504 | d90465cfa80d124aba8f9572b9bd5e4bb2a62031 | refs/heads/master | 2021-04-09T14:26:04.811468 | 2018-03-18T10:05:20 | 2018-03-18T10:05:20 | 125,712,186 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 226 | py | case=int(input())
list=[]
list2=[]
for z in range(case):
h,w=map(int,input().split())
for i in range(h):
list.append(input())
list2.append(list[i][::-1])
for i in range(len(list2)):
print(list2[i])
| [
"[email protected]"
] | |
b109faeccfded125ae603f0cd2ccb693475c2cdf | 31f9333012fd7dad7b8b12c1568f59f33420b0a5 | /Alessandria/env/lib/python3.8/site-packages/django/template/utils.py | 41921a09a2c9c6ce444863547c4c915b4f03271c | [] | no_license | jcmloiacono/Django | 0c69131fae569ef8cb72b135ab81c8e957d2a640 | 20b9a4a1b655ae4b8ff2a66d50314ed9732b5110 | refs/heads/master | 2022-11-15T22:18:57.610642 | 2020-07-14T14:43:16 | 2020-07-14T14:43:16 | 255,125,001 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,566 | py | import functools
from collections import Counter
from pathlib import Path
from django.apps import apps
from django.conf import settings
from django.core.exceptions import ImproperlyConfigured
from django.utils.functional import cached_property
from django.utils.module_loading import import_string
class InvalidTemplateEngineError(ImproperlyConfigured):
pass
class EngineHandler:
def __init__(self, templates=None):
"""
templates is an optional list of template engine definitions
(structured like settings.TEMPLATES).
"""
self._templates = templates
self._engines = {}
@cached_property
def templates(self):
if self._templates is None:
self._templates = settings.TEMPLATES
templates = {}
backend_names = []
for tpl in self._templates:
try:
# This will raise an exception if 'BACKEND' doesn't exist or
# isn't a string containing at least one dot.
default_name = tpl['BACKEND'].rsplit('.', 2)[-2]
except Exception:
invalid_backend = tpl.get('BACKEND', '<not defined>')
raise ImproperlyConfigured(
"Invalid BACKEND for a template engine: {}. Check "
"your TEMPLATES setting.".format(invalid_backend))
tpl = {
'NAME': default_name,
'DIRS': [],
'APP_DIRS': False,
'OPTIONS': {},
**tpl,
}
templates[tpl['NAME']] = tpl
backend_names.append(tpl['NAME'])
counts = Counter(backend_names)
duplicates = [alias for alias, count in counts.most_common() if count > 1]
if duplicates:
raise ImproperlyConfigured(
"Template engine aliases aren't unique, duplicates: {}. "
"Set a unique NAME for each engine in settings.TEMPLATES."
.format(", ".join(duplicates)))
return templates
def __getitem__(self, alias):
try:
return self._engines[alias]
except KeyError:
try:
params = self.templates[alias]
except KeyError:
raise InvalidTemplateEngineError(
"Could not find config for '{}' "
"in settings.TEMPLATES".format(alias))
# If importing or initializing the backend raises an exception,
# self._engines[alias] isn't set and this code may get executed
# again, so we must preserve the original params. See #24265.
params = params.copy()
backend = params.pop('BACKEND')
engine_cls = import_string(backend)
engine = engine_cls(params)
self._engines[alias] = engine
return engine
def __iter__(self):
return iter(self.templates)
def all(self):
return [self[alias] for alias in self]
@functools.lru_cache()
def get_app_template_dirs(dirname):
"""
Return an iterable of paths of directories to load app2 templates from.
dirname is the name of the subdirectory containing templates inside
installed applications.
"""
template_dirs = [
str(Path(app_config.path) / dirname)
for app_config in apps.get_app_configs()
if app_config.path and (Path(app_config.path) / dirname).is_dir()
]
# Immutable return value because it will be cached and shared by callers.
return tuple(template_dirs)
| [
"[email protected]"
] | |
64b3160aa692224fc730910648c06f459dd7b7b6 | 28bf7793cde66074ac6cbe2c76df92bd4803dab9 | /answers/VanshBaijal/Day3/Question1.py | 2c1ff6a179fd4d3ee0ee7cf7dbb9dfe3fd33f32c | [
"MIT"
] | permissive | Codechef-SRM-NCR-Chapter/30-DaysOfCode-March-2021 | 2dee33e057ba22092795a6ecc6686a9d31607c9d | 66c7d85025481074c93cfda7853b145c88a30da4 | refs/heads/main | 2023-05-29T10:33:31.795738 | 2021-06-10T14:57:30 | 2021-06-10T14:57:30 | 348,153,476 | 22 | 135 | MIT | 2021-06-10T14:57:31 | 2021-03-15T23:37:26 | Java | UTF-8 | Python | false | false | 108 | py | n=int(input("Enter the number of terms:"))
s=0
x=0
for i in range(1,n+1):
x=(x*10+i)
s=s+x
print(s)
| [
"[email protected]"
] | |
b408eb1c942cd29c1efe13d3c57a2c4785cf6995 | 95cdf7753fc4022be239666a902df217a93f7125 | /dangdang/test_case/test_login_2.py | 5af74b59fe9373ec7b2a931f7cda17f213c6b17c | [] | no_license | he9mei/python_appium | ffe1b872d3732b9e8510da0dd24f7a791c534be0 | 9fc5dcb67769d2d103756b9fca82d2cfeae40e72 | refs/heads/master | 2022-06-01T03:24:36.821931 | 2022-05-22T07:55:58 | 2022-05-22T07:55:58 | 223,714,095 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,002 | py |
import os
import pytest
from selenium.common.exceptions import NoSuchElementException
from selenium.webdriver.common.by import By
from dangdang.base.base_try_2py import BasePre #导入包时应该from到py文件
class TestLogin(BasePre):
def test_01(self):
#进入登录页面
driver=self.driver
# driver.find_element_by_id("com.dangdang.reader:id/tab_personal_iv").click()
#尝试做代码与元素的分离
# by_el = By.ID("com.dangdang.reader:id/tab_personal_iv") 用法不对,这个是java中的用法
el="com.dangdang.reader:id/tab_personal_iv"
driver.find_element(By.ID,el).click()
driver.find_element_by_id("com.dangdang.reader:id/nickname_tv").click()
@pytest.mark.skip()
def test_02(self):
driver = self.driver
# 默认如果没有进入账号密码登录,先点击账号密码登录
try:
el_pw_login = driver.find_element_by_id("com.dangdang.reader:id/custom_login_tv")
if el_pw_login .is_displayed():
print("默认进入短信验证码登录,找到了账号登录按钮!")
el_pw_login .click()
# except Exception as e: #如果不打印异常会提示异常太宽泛
except NoSuchElementException:
print("可能默认就是账号密码登录!")
# print(e)
# 切换输入法
os.system("adb shell ime set io.appium.android.ime/.UnicodeIME")
el_name_input=driver.find_element_by_id("com.dangdang.reader:id/name_edit")
el_name_input.clear()
el_name_input.send_keys("18500000005")
el_pw_input = driver.find_element_by_id("com.dangdang.reader:id/password_et")
el_pw_input.clear()
el_pw_input.send_keys("111111")
# 遇到问题:输入之后,键盘没有关闭,挡住了登录按钮
driver.press_keycode(4)
driver.find_element_by_id("com.dangdang.reader:id/login_tv").click()
| [
"[email protected]"
] | |
1d93f4bb189ee252ecebd41ce794245b3625565b | d904745c7c8a84e70a7e21f89415791d7bbe093d | /thermo/stream.py | 206a51cc185fd62fc326b95e61ec76e41c0fdfd2 | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | leeathorskey/thermo | 1ebf73f8d80d1fdc3e49876d4f9d0767e24c3b22 | 095c03381f6e0d244499c55e274a1aade169045e | refs/heads/master | 2023-02-12T03:52:42.839693 | 2021-01-15T02:19:24 | 2021-01-15T02:19:24 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 80,577 | py | # -*- coding: utf-8 -*-
'''Chemical Engineering Design Library (ChEDL). Utilities for process modeling.
Copyright (C) 2017, 2018, 2019 Caleb Bell <[email protected]>
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.'''
from __future__ import division
__all__ = ['Stream', 'EnergyTypes', 'EnergyStream', 'StreamArgs', 'EquilibriumStream', 'mole_balance', 'energy_balance']
#import enum
try:
from collections import OrderedDict
except:
pass
#from numbers import Number
from fluids.constants import R
from chemicals.utils import property_molar_to_mass, property_mass_to_molar, solve_flow_composition_mix
from chemicals.exceptions import OverspeficiedError
from chemicals.utils import mixing_simple, normalize, Vfs_to_zs, ws_to_zs, zs_to_ws
from thermo.mixture import Mixture, preprocess_mixture_composition
from thermo.equilibrium import EquilibriumState
from thermo.flash import Flash
from fluids.pump import voltages_1_phase_residential, voltages_3_phase, residential_power_frequencies
# Could just assume IDs is always specified and constant.
# This might be useful for regular streams too, just to keep track of what values were specified by the user!
# If one composition value gets set to, remove those from every other value
base_specifications = {'zs': None, 'ws': None, 'Vfls': None, 'Vfgs': None,
'ns': None, 'ms': None, 'Qls': None, 'Qgs': None,
'n': None, 'm': None, 'Q': None,
'T': None, 'P': None, 'VF': None, 'H': None,
'Hm': None, 'S': None, 'Sm': None, 'energy': None}
class StreamArgs(object):
flashed = False
_state_cache = None
def __init__(self, IDs=None, zs=None, ws=None, Vfls=None, Vfgs=None,
T=None, P=None,
VF=None, H=None, Hm=None, S=None, Sm=None,
ns=None, ms=None, Qls=None, Qgs=None, m=None, n=None, Q=None,
energy=None,
Vf_TP=(None, None), Q_TP=(None, None, ''), pkg=None,
single_composition_basis=True):
# self.specifications = base_specifications.copy()
self.specifications = s = {'zs': None, 'ws': None, 'Vfls': None, 'Vfgs': None,
'ns': None, 'ms': None, 'Qls': None, 'Qgs': None,
'n': None, 'm': None, 'Q': None,
'T': None, 'P': None, 'VF': None, 'H': None,
'Hm': None, 'S': None, 'Sm': None, 'energy': None}
# If this is False, DO NOT CLEAR OTHER COMPOSITION / FLOW VARIABLES WHEN SETTING ONE!
# This makes sense for certain cases but not all.
self.single_composition_basis = single_composition_basis
self.IDs = IDs
self.Vf_TP = Vf_TP
self.Q_TP = Q_TP
# pkg should be either a property package or property package constants
self.pkg = self.property_package = self.property_package_constants = pkg
self.equilibrium_pkg = isinstance(pkg, Flash)
composition_specs = state_specs = flow_specs = 0
if zs is not None:
s['zs'] = zs
composition_specs += 1
if ws is not None:
s['ws'] = ws
composition_specs += 1
if Vfls is not None:
s['Vfls'] = Vfls
composition_specs += 1
if Vfgs is not None:
s['Vfgs'] = Vfls
composition_specs += 1
if ns is not None:
s['ns'] = ns
composition_specs += 1
flow_specs += 1
if ms is not None:
s['ms'] = ms
composition_specs += 1
flow_specs += 1
if Qls is not None:
s['Qls'] = Qls
composition_specs += 1
flow_specs += 1
if Qgs is not None:
s['Qgs'] = Qgs
composition_specs += 1
flow_specs += 1
if n is not None:
s['n'] = n
flow_specs += 1
if m is not None:
s['m'] = m
flow_specs += 1
if Q is not None:
s['Q'] = Q
flow_specs += 1
if T is not None:
s['T'] = T
state_specs += 1
if P is not None:
s['P'] = P
state_specs += 1
if VF is not None:
s['VF'] = VF
state_specs += 1
if Hm is not None:
s['Hm'] = Hm
state_specs += 1
if H is not None:
s['H'] = H
state_specs += 1
if Sm is not None:
s['Sm'] = Sm
state_specs += 1
if S is not None:
s['S'] = S
state_specs += 1
if energy is not None:
s['energy'] = energy
state_specs += 1
if flow_specs > 1 or composition_specs > 1:
self.reconcile_flows()
# raise ValueError("Flow specification is overspecified")
if composition_specs > 1 and single_composition_basis:
raise ValueError("Composition specification is overspecified")
if state_specs > 2:
raise ValueError("State specification is overspecified")
def __add__(self, b):
if not isinstance(b, StreamArgs):
raise Exception('Adding to a StreamArgs requires that the other object '
'also be a StreamArgs.')
a_flow_spec, b_flow_spec = self.flow_spec, b.flow_spec
a_composition_spec, b_composition_spec = self.composition_spec, b.composition_spec
a_state_specs, b_state_specs = self.state_specs, b.state_specs
args = {}
if b.IDs:
args['IDs'] = b.IDs
elif self.IDs:
args['IDs'] = self.IDs
flow_spec = b_flow_spec if b_flow_spec else a_flow_spec
if flow_spec:
args[flow_spec[0]] = flow_spec[1]
composition_spec = b_composition_spec if b_composition_spec else a_composition_spec
if composition_spec:
args[composition_spec[0]] = composition_spec[1]
if b_state_specs:
for i, j in b_state_specs:
args[i] = j
c = StreamArgs(**args)
if b_state_specs and len(b_state_specs) < 2 and a_state_specs:
for i, j in a_state_specs:
try:
setattr(c, i, j)
except:
pass
return c
def copy(self):
# single_composition_basis may mean multiple sets of specs for comp/flow
kwargs = self.specifications.copy()
if kwargs['zs'] is not None:
kwargs['zs'] = [i for i in kwargs['zs']]
if kwargs['ws'] is not None:
kwargs['ws'] = [i for i in kwargs['ws']]
if kwargs['ns'] is not None:
kwargs['ns'] = [i for i in kwargs['ns']]
if kwargs['ms'] is not None:
kwargs['ms'] = [i for i in kwargs['ms']]
if kwargs['Qls'] is not None:
kwargs['Qls'] = [i for i in kwargs['Qls']]
if kwargs['Qgs'] is not None:
kwargs['Qgs'] = [i for i in kwargs['Qgs']]
if kwargs['Vfgs'] is not None:
kwargs['Vfgs'] = [i for i in kwargs['Vfgs']]
if kwargs['Vfls'] is not None:
kwargs['Vfls'] = [i for i in kwargs['Vfls']]
return StreamArgs(Vf_TP=self.Vf_TP, Q_TP=self.Q_TP, pkg=self.pkg,
single_composition_basis=self.single_composition_basis, **kwargs)
__copy__ = copy
# return self.copy()
# return deepcopy(self)
@property
def IDs(self):
return self.specifications['IDs']
@IDs.setter
def IDs(self, IDs):
self.specifications['IDs'] = IDs
@property
def energy(self):
return self.specifications['energy']
@energy.setter
def energy(self, energy):
if energy is None:
self.specifications['energy'] = energy
return None
if self.specified_state_vars > 1 and self.flow_specified and self.energy is None:
raise Exception('Two state vars and a flow var already specified; unset another first')
self.specifications['energy'] = energy
@property
def T(self):
return self.specifications['T']
@T.setter
def T(self, T):
s = self.specifications
if T is None:
s['T'] = T
return None
if s['T'] is None and self.state_specified:
raise Exception('Two state vars already specified; unset another first')
s['T'] = T
@property
def T_calc(self):
T = self.specifications['T']
if T is not None:
return T
try:
return self.mixture.T
except:
return None
@property
def P_calc(self):
P = self.specifications['P']
if P is not None:
return P
try:
return self.mixture.P
except:
return None
@property
def VF_calc(self):
VF = self.specifications['VF']
if VF is not None:
return VF
try:
return self.mixture.VF
except:
return None
@property
def Hm_calc(self):
Hm = self.specifications['Hm']
if Hm is not None:
return Hm
try:
return self.mixture.H()
except:
return None
@property
def P(self):
return self.specifications['P']
@P.setter
def P(self, P):
s = self.specifications
if P is None:
s['P'] = None
return None
if s['P'] is None and self.state_specified:
raise Exception('Two state vars already specified; unset another first')
s['P'] = P
@property
def VF(self):
return self.specifications['VF']
@VF.setter
def VF(self, VF):
if VF is None:
self.specifications['VF'] = VF
return None
if self.state_specified and self.VF is None:
raise Exception('Two state vars already specified; unset another first')
self.specifications['VF'] = VF
@property
def H(self):
return self.specifications['H']
@H.setter
def H(self, H):
if H is None:
self.specifications['H'] = H
return None
if self.state_specified and self.H is None:
raise Exception('Two state vars already specified; unset another first')
self.specifications['H'] = H
@property
def Hm(self):
return self.specifications['Hm']
@Hm.setter
def Hm(self, Hm):
if Hm is None:
self.specifications['Hm'] = Hm
return None
if self.specified_state_vars > 1 and self.Hm is None:
raise Exception('Two state vars already specified; unset another first')
self.specifications['Hm'] = Hm
@property
def S(self):
return self.specifications['S']
@S.setter
def S(self, S):
if S is None:
self.specifications['S'] = S
return None
if self.specified_state_vars > 1 and self.S is None:
raise Exception('Two state vars already specified; unset another first')
self.specifications['S'] = S
@property
def Sm(self):
return self.specifications['Sm']
@Sm.setter
def Sm(self, Sm):
if Sm is None:
self.specifications['Sm'] = Sm
return None
if self.specified_state_vars > 1 and self.Sm is None:
raise Exception('Two state vars already specified; unset another first')
self.specifications['Sm'] = Sm
@property
def zs(self):
return self.specifications['zs']
@zs.setter
def zs(self, arg):
s = self.specifications
if arg is None:
specifications['zs'] = arg
else:
if self.single_composition_basis:
# args = {'zs': arg, 'ws': None, 'Vfls': None, 'Vfgs': None, 'ns': None,
# 'ms': None, 'Qls': None, 'Qgs': None}
s['zs'] = arg
s['ws'] = s['Vfls'] = s['Vfgs'] = s['ns'] = s['ms'] = s['Qls'] = s['Qgs'] = None
else:
specifications['zs'] = arg
@property
def zs_calc(self):
s = self.specifications
zs = s['zs']
if zs is not None:
if self.single_composition_basis:
return zs
else:
if None not in zs:
return zs
return None
ns = s['ns']
if ns is not None:
if self.single_composition_basis:
return normalize(ns)
if self.equilibrium_pkg:
MWs = self.pkg.constants.MWs
ws = s['ws']
if ws is not None and None not in ws:
return ws_to_zs(ws, MWs)
ms = s['ms']
if ms is not None and None not in ms:
return ws_to_zs(normalize(ms), MWs)
return None
@property
def ws(self):
return self.specifications['ws']
@ws.setter
def ws(self, arg):
if arg is None:
self.specifications['ws'] = arg
else:
if self.single_composition_basis:
args = {'zs': None, 'ws': arg, 'Vfls': None, 'Vfgs': None, 'ns': None,
'ms': None, 'Qls': None, 'Qgs': None}
self.specifications.update(args)
else:
self.specifications['ws'] = arg
@property
def Vfls(self):
return self.specifications['Vfls']
@Vfls.setter
def Vfls(self, arg):
if arg is None:
self.specifications['Vfls'] = arg
else:
if self.single_composition_basis:
args = {'zs': None, 'ws': None, 'Vfls': arg, 'Vfgs': None, 'ns': None,
'ms': None, 'Qls': None, 'Qgs': None}
self.specifications.update(args)
else:
self.specifications['Vfls'] = arg
@property
def Vfgs(self):
return self.specifications['Vfgs']
@Vfgs.setter
def Vfgs(self, arg):
if arg is None:
self.specifications['Vfgs'] = arg
else:
if self.single_composition_basis:
args = {'zs': None, 'ws': None, 'Vfls': None, 'Vfgs': arg, 'ns': None,
'ms': None, 'Qls': None, 'Qgs': None}
self.specifications.update(args)
else:
self.specifications['Vfgs'] = arg
@property
def ns(self):
return self.specifications['ns']
@ns.setter
def ns(self, arg):
s = self.specifications
if arg is None:
s['ns'] = arg
else:
if self.single_composition_basis:
s['zs'] = s['ws'] = s['Vfls'] = s['Vfgs'] = s['ms'] = s['Qls'] = s['Qgs'] = s['n'] = s['m'] = s['Q'] = None
s['ns'] = arg
else:
s['ns'] = arg
@property
def ns_calc(self):
s = self.specifications
ns = s['ns']
if ns is not None:
if self.single_composition_basis:
return ns
else:
if None not in ns:
return ns
return None
n = s['n']
if n is not None:
zs = self.zs_calc
if zs is not None:
return [n*zi for zi in zs]
m = s['m']
if m is not None:
zs = self.zs_calc
try:
MWs = self.pkg.constants.MWs
MW = mixing_simple(MWs, zs)
n = property_molar_to_mass(m, MW)
return [n*zi for zi in zs]
except:
pass
Q = s['Q']
if Q is not None:
zs = self.zs_calc
if zs is not None:
Q_TP = self.Q_TP
if Q_TP is not None:
if len(Q_TP) == 2 or (len(Q_TP) == 3 and not Q_TP[-1]):
# Calculate the volume via the property package
expensive_flash = self.pkg.flash(zs=zs, T=Q_TP[0], P=Q_TP[1])
V = expensive_flash.V()
if Q_TP[-1] == 'l':
V = self.pkg.liquids[0].to(T=Q_TP[0], P=Q_TP[1], zs=zs).V()
elif Q_TP[-1] == 'g':
V = self.pkg.gas.to(T=Q_TP[0], P=Q_TP[1], zs=zs).V()
else:
mixture = self.mixture
if mixture is not None:
V = mixture.V()
if V is not None:
n = Q/V
return [n*zi for zi in zs]
return None
@property
def ms(self):
return self.specifications['ms']
@ms.setter
def ms(self, arg):
s = self.specifications
if arg is None:
s['ms'] = arg
else:
if self.single_composition_basis:
s['zs'] = s['ws'] = s['Vfls'] = s['Vfgs'] = s['ns'] = s['Qls'] = s['Qgs'] = s['n'] = s['m'] = s['Q'] = None
s['ms'] = arg
else:
s['ms'] = arg
@property
def Qls(self):
return self.specifications['Qls']
@Qls.setter
def Qls(self, arg):
if arg is None:
s['Qls'] = arg
else:
if self.single_composition_basis:
s['zs'] = s['ws'] = s['Vfls'] = s['Vfgs'] = s['ms'] = s['ns'] = s['Qgs'] = s['n'] = s['m'] = s['Q'] = None
s['Qls'] = arg
else:
s['Qls'] = arg
@property
def Qgs(self):
return self.specifications['Qgs']
@Qgs.setter
def Qgs(self, arg):
if arg is None:
self.specifications['Qgs'] = arg
else:
if self.single_composition_basis:
args = {'zs': None, 'ws': None, 'Vfls': None, 'Vfgs': None,
'ns': None, 'ms': None, 'Qls': None, 'Qgs': arg,
'n': None, 'm': None, 'Q': None}
self.specifications.update(args)
else:
self.specifications['Qgs'] = arg
@property
def m(self):
return self.specifications['m']
@m.setter
def m(self, arg):
if arg is None:
self.specifications['m'] = arg
else:
args = {'ns': None, 'ms': None, 'Qls': None, 'Qgs': None,
'n': None, 'm': arg, 'Q': None}
self.specifications.update(args)
@property
def n(self):
return self.specifications['n']
@n.setter
def n(self, arg):
s = self.specifications
if arg is None:
s['n'] = None
else:
s['n'] = arg
s['ns'] = s['ms'] = s['Qls'] = s['Qgs'] = s['m'] = s['Q'] = None
@property
def n_calc(self):
s = self.specifications
n = s['n']
if n is not None:
return n
ns = s['ns']
if ns is not None and None not in ns:
return sum(ns)
# Everything funnels into ns_calc to avoid conflicts
ns_calc = self.ns_calc
if ns_calc is not None and None not in ns_calc:
return sum(ns_calc)
# m = s['m']
# if m is not None:
# zs = self.zs_calc
# if zs is not None and None not in zs:
# try:
# MWs = self.pkg.constants.MWs
# MW = mixing_simple(MWs, zs)
# n = property_molar_to_mass(m, MW)
# return n
# except:
# pass
return None
@property
def MW(self):
try:
MWs = self.pkg.constants.MWs
zs = self.zs_calc
MW = mixing_simple(MWs, zs)
return MW
except:
return None
@property
def m_calc(self):
m = self.specifications['m']
if m is not None:
return m
ms = self.specifications['ms']
if ms is not None and None not in ms:
return sum(ms)
return None
@property
def energy_calc(self):
s = self.specifications
# Try to get H from energy, or a molar specification
Q = s['energy']
m, n = None, None
if Q is None:
H = s['Hm']
if H is not None:
n = s['n']
if n is None:
n = self.n_calc
if n is not None:
Q = n*H
# Try to get H from a mass specification
if Q is None:
H_mass = s['H']
if H_mass is not None:
m = s['m']
if m is None:
m = self.m_calc
if m is not None:
Q = m*H_mass
# Try to flash and get enthalpy
if Q is None:
n = self.n_calc
if n is None:
m = self.m_calc
if m is not None or n is not None:
mixture = self.mixture
if mixture is not None:
if n is not None:
Q = mixture.H()*n
elif m is not None:
Q = mixture.H()*property_molar_to_mass(m, mixture.MW())
return Q
@property
def Q(self):
return self.specifications['Q']
@Q.setter
def Q(self, arg):
if arg is None:
self.specifications['Q'] = arg
else:
args = {'ns': None, 'ms': None, 'Qls': None, 'Qgs': None,
'n': None, 'm': None, 'Q': arg}
self.specifications.update(args)
def __repr__(self):
return '<StreamArgs, specs %s>' % self.specifications
def reconcile_flows(self, n_tol=2e-15, m_tol=2e-15):
s = self.specifications
n, m, Q = s['n'], s['m'], s['Q']
overspecified = False
if n is not None:
if m is not None:
raise OverspeficiedError("Flow specification is overspecified: n=%g, m=%g" %(n, m))
elif Q is not None:
raise OverspeficiedError("Flow specification is overspecified: n=%g, Q=%g" %(n, Q))
elif m is not None and Q is not None:
raise OverspeficiedError("Flow specification is overspecified: m=%g, Q=%g" %(m, Q))
ns, zs, ms, ws = s['ns'], s['zs'], s['ms'], s['ws']
if n is not None and ns is not None:
calc = 0.0
missing = 0
missing_idx = None
for i in range(len(ns)):
if ns[i] is None:
missing += 1
missing_idx = i
else:
calc += ns[i]
if missing == 0:
if abs((calc - n)/n) > n_tol:
raise ValueError("Flow specification is overspecified and inconsistent")
elif missing == 1:
ns[missing_idx] = n - calc
if m is not None and ms is not None:
calc = 0.0
missing = 0
missing_idx = None
for i in range(len(ms)):
if ms[i] is None:
missing += 1
missing_idx = i
else:
calc += ms[i]
if missing == 0:
if abs((calc - m)/m) > m_tol:
raise ValueError("Flow specification is overspecified and inconsistent")
elif missing == 1:
ms[missing_idx] = m - calc
if ns is not None and ms is not None:
try:
# Convert any ms to ns
MWs = self.pkg.constants.MWs
except:
return False
for i in range(len(ms)):
if ms[i] is not None:
ni = property_molar_to_mass(ms[i], MWs[i])
if ns[i] is not None and abs((ns[i] - ni)/ni) > n_tol:
raise ValueError("Flow specification is overspecified and inconsistent on component %d" %i)
else:
ns[i] = ni
if (zs is not None or ns is not None) and (ws is not None or ms is not None) and (m is not None or n is not None or ns is not None or ms is not None):
# We need the MWs
try:
MWs = self.pkg.constants.MWs
if zs is None:
zs = [None]*len(MWs)
if ws is None:
ws = [None]*len(MWs)
ns, zs, ws = solve_flow_composition_mix(ns, zs, ws, MWs)
s['ns'] = ns
except:
return False
# # Do our best to compute mole flows of everything
# if ns is not None:
# pass
@property
def composition_spec(self):
if self.equilibrium_pkg:
s = self.specifications
if s['zs'] is not None:
return 'zs', s['zs']
if s['ws'] is not None:
return 'ws', s['ws']
if s['Vfls'] is not None:
return 'Vfls', s['Vfls']
if s['Vfgs'] is not None:
return 'Vfgs', s['Vfgs']
if s['ns'] is not None:
return 'ns', s['ns']
if s['ms'] is not None:
return 'ms', s['ms']
if s['Qls'] is not None:
return 'Qls', s['Qls']
if s['Qgs'] is not None:
return 'Qgs', s['Qgs']
else:
IDs, zs, ws, Vfls, Vfgs = preprocess_mixture_composition(IDs=self.IDs,
zs=self.zs, ws=self.ws, Vfls=self.Vfls,
Vfgs=self.Vfgs, ignore_exceptions=True)
if zs is not None:
return 'zs', zs
elif ws is not None:
return 'ws', ws
elif Vfls is not None:
return 'Vfls', Vfls
elif Vfgs is not None:
return 'Vfgs', Vfgs
elif self.ns is not None:
return 'ns', self.ns
elif self.ms is not None:
return 'ms', self.ms
elif self.Qls is not None:
return 'Qls', self.Qls
elif self.Qgs is not None:
return 'Qgs', self.Qgs
@property
def clean(self):
'''If no variables (other than IDs) have been specified, return True,
otherwise return False.
'''
if self.composition_specified or self.state_specs or self.flow_specified:
return False
return True
@property
def specified_composition_vars(self):
IDs, zs, ws, Vfls, Vfgs = preprocess_mixture_composition(IDs=self.IDs,
zs=self.zs, ws=self.ws, Vfls=self.Vfls,
Vfgs=self.Vfgs, ignore_exceptions=True)
return sum(i is not None for i in (zs, ws, Vfls, Vfgs, self.ns, self.ms, self.Qls, self.Qgs))
@property
def composition_specified(self):
if self.equilibrium_pkg:
s = self.specifications
if s['zs'] is not None and None not in s['zs']:
return True
if s['ws'] is not None and None not in s['ws']:
return True
if s['Vfls'] is not None and None not in s['Vfls']:
return True
if s['Vfgs'] is not None and None not in s['Vfgs']:
return True
if s['ns'] is not None and None not in s['ns']:
return True
if s['ms'] is not None and None not in s['ms']:
return True
if s['Qls'] is not None and None not in s['Qls']:
return True
if s['Qgs'] is not None and None not in s['Qgs']:
return True
return False
IDs, zs, ws, Vfls, Vfgs = preprocess_mixture_composition(IDs=self.IDs,
zs=self.zs, ws=self.ws, Vfls=self.Vfls,
Vfgs=self.Vfgs, ignore_exceptions=True)
specified_vals = (i is not None for i in (zs, ws, Vfls, Vfgs, self.ns, self.ms, self.Qls, self.Qgs))
if any(specified_vals) and IDs:
return True
return False
@property
def state_specs(self):
s = self.specifications
specs = []
if s['T'] is not None:
specs.append(('T', s['T']))
if s['P'] is not None:
specs.append(('P', s['P']))
if s['VF'] is not None:
specs.append(('VF', s['VF']))
if s['Hm'] is not None:
specs.append(('Hm', s['Hm']))
if s['H'] is not None:
specs.append(('H', s['H']))
if s['Sm'] is not None:
specs.append(('Sm', s['Sm']))
if s['S'] is not None:
specs.append(('S', s['S']))
if s['energy'] is not None:
specs.append(('energy', s['energy']))
# for var in ('T', 'P', 'VF', 'Hm', 'H', 'Sm', 'S', 'energy'):
# v = getattr(self, var)
# if v is not None:
# specs.append((var, v))
return specs
@property
def specified_state_vars(self):
# Slightly faster
return sum(self.specifications[i] is not None for i in ('T', 'P', 'VF', 'Hm', 'H', 'Sm', 'S', 'energy'))
# return sum(i is not None for i in (self.T, self.P, self.VF, self.Hm, self.H, self.Sm, self.S, self.energy))
@property
def state_specified(self):
s = self.specifications
state_vars = 0
if s['T'] is not None:
state_vars += 1
if s['P'] is not None:
state_vars += 1
if s['VF'] is not None:
state_vars += 1
if s['Hm'] is not None:
state_vars += 1
if s['H'] is not None:
state_vars += 1
if s['S'] is not None:
state_vars += 1
if s['Sm'] is not None:
state_vars += 1
if s['energy'] is not None:
state_vars += 1
# state_vars = (i is not None for i in (self.T, self.P, self.VF, self.Hm, self.H, self.Sm, self.S, self.energy))
if state_vars == 2:
return True
return False
@property
def non_pressure_spec_specified(self):
state_vars = (i is not None for i in (self.T, self.VF, self.Hm, self.H, self.Sm, self.S, self.energy))
if sum(state_vars) >= 1:
return True
return False
@property
def flow_spec(self):
s = self.specifications
if s['ns'] is not None:
return ('ns', s['ns'])
if s['ms'] is not None:
return ('ms', s['ms'])
if s['Qls'] is not None:
return ('Qls', s['Qls'])
if s['Qgs'] is not None:
return ('Qgs', s['Qgs'])
if s['m'] is not None:
return ('m', s['m'])
if s['n'] is not None:
return ('n', s['n'])
if s['Q'] is not None:
return ('Q', s['Q'])
#
# # TODO consider energy?
# specs = []
# for var in ('ns', 'ms', 'Qls', 'Qgs', 'm', 'n', 'Q'):
# v = getattr(self, var)
# if v is not None:
# return var, v
@property
def specified_flow_vars(self):
return sum(i is not None for i in (self.ns, self.ms, self.Qls, self.Qgs, self.m, self.n, self.Q))
@property
def flow_specified(self):
s = self.specifications
if s['ns'] is not None:
return True
if s['ms'] is not None:
return True
if s['Qls'] is not None:
return True
if s['Qgs'] is not None:
return True
if s['m'] is not None:
return True
if s['n'] is not None:
return True
if s['Q'] is not None:
return True
return False
# flow_vars = (i is not None for i in (self.ns, self.ms, self.Qls, self.Qgs, self.m, self.n, self.Q))
# if sum(flow_vars) == 1:
# return True
# return False
def update(self, **kwargs):
for key, value in kwargs:
setattr(self, key, value)
def flash(self, hot_start=None, existing_flash=None):
# if self.flow_specified and self.composition_specified and self.state_specified:
s = self.specifications.copy()
del s['IDs']
if 'S' in s:
if s['S'] is not None:
s['S_mass'] = s['S']
del s['S']
if 'Sm' in s:
if s['Sm'] is not None:
s['S'] = s['Sm']
del s['Sm']
if 'H' in s:
if s['H'] is not None:
s['H_mass'] = s['H']
del s['H']
if 'Hm' in s:
if s['Hm'] is not None:
s['H'] = s['Hm']
del s['Hm']
return EquilibriumStream(self.property_package, hot_start=hot_start,
existing_flash=existing_flash, **s)
@property
def stream(self):
if self.equilibrium_pkg:
if self.flow_specified and self.composition_specified and self.state_specified:
s = self.specifications.copy()
del s['IDs']
if 'S' in s:
if s['S'] is not None:
s['S_mass'] = s['S']
del s['S']
if 'Sm' in s:
if s['Sm'] is not None:
s['S'] = s['Sm']
del s['Sm']
if 'H' in s:
if s['H'] is not None:
s['H_mass'] = s['H']
del s['H']
if 'Hm' in s:
if s['Hm'] is not None:
s['H'] = s['Hm']
del s['Hm']
return EquilibriumStream(self.property_package, **s)
else:
if self.IDs and self.composition_specified and self.state_specified and self.flow_specified:
return Stream(IDs=self.IDs, zs=self.zs, ws=self.ws, Vfls=self.Vfls, Vfgs=self.Vfgs,
ns=self.ns, ms=self.ms, Qls=self.Qls, Qgs=self.Qgs,
n=self.n, m=self.m, Q=self.Q,
T=self.T, P=self.P, VF=self.VF, H=self.H, S=self.S,
Hm=self.Hm, Sm=self.Sm,
Vf_TP=self.Vf_TP, Q_TP=self.Q_TP, energy=self.energy,
pkg=self.property_package)
def flash_state(self, hot_start=None):
if self.composition_specified and self.state_specified:
s = self.specifications
# Flash call only takes `zs`
zs = self.zs_calc
T, P, H, S, VF = s['T'], s['P'], s['Hm'], s['Sm'], s['VF']
# Do we need
spec_count = 0
if T is not None:
spec_count += 1
if P is not None:
spec_count += 1
if H is not None:
spec_count += 1
if S is not None:
spec_count += 1
if VF is not None:
spec_count += 1
if spec_count < 2:
energy = s['energy']
if energy is not None:
n = self.n_calc
if n is not None:
H = energy/n
spec_count += 1
if spec_count < 2:
H_mass = s['H']
if H_mass is not None:
MW = self.MW
if MW is not None:
H = property_mass_to_molar(H_mass, MW)
spec_count += 1
if spec_count < 2:
S_mass = s['S']
if S_mass is not None:
MW = self.MW
if MW is not None:
S = property_mass_to_molar(S_mass, MW)
spec_count += 1
state_cache = (T, P, H, S, VF, tuple(zs))
if state_cache == self._state_cache:
try:
return self._mixture
except:
pass
m = self.property_package.flash(T=T, P=P, zs=zs, H=H, S=S, VF=VF, hot_start=hot_start)
self._mixture = m
self._state_cache = state_cache
return m
@property
def mixture(self):
if self.equilibrium_pkg:
return self.flash_state()
else:
if self.IDs and self.composition_specified and self.state_specified:
return Mixture(IDs=self.IDs, zs=self.zs, ws=self.ws, Vfls=self.Vfls, Vfgs=self.Vfgs,
T=self.T, P=self.P, VF=self.VF, H=self.H, S=self.S, Hm=self.Hm, Sm=self.Sm,
Vf_TP=self.Vf_TP, pkg=self.property_package)
class Stream(Mixture):
'''Creates a Stream object which is useful for modeling mass and energy
balances.
Streams have five variables. The flow rate, composition, and components are
mandatory; and two of the variables temperature, pressure, vapor fraction,
enthalpy, or entropy are required. Entropy and enthalpy may also be
provided in a molar basis; energy can also be provided, which when
combined with either a flow rate or enthalpy will calculate the other
variable.
The composition and flow rate may be specified together or separately. The
options for specifying them are:
* Mole fractions `zs`
* Mass fractions `ws`
* Liquid standard volume fractions `Vfls`
* Gas standard volume fractions `Vfgs`
* Mole flow rates `ns`
* Mass flow rates `ms`
* Liquid flow rates `Qls` (based on pure component volumes at the T and P
specified by `Q_TP`)
* Gas flow rates `Qgs` (based on pure component volumes at the T and P
specified by `Q_TP`)
If only the composition is specified by providing any of `zs`, `ws`, `Vfls`
or `Vfgs`, the flow rate must be specified by providing one of these:
* Mole flow rate `n`
* Mass flow rate `m`
* Volumetric flow rate `Q` at the provided `T` and `P` or if specified,
`Q_TP`
* Energy `energy`
The state variables must be two of the following. Not all combinations
result in a supported flash.
* Tempetarure `T`
* Pressure `P`
* Vapor fraction `VF`
* Enthalpy `H`
* Molar enthalpy `Hm`
* Entropy `S`
* Molar entropy `Sm`
* Energy `energy`
Parameters
----------
IDs : list, optional
List of chemical identifiers - names, CAS numbers, SMILES or InChi
strings can all be recognized and may be mixed [-]
zs : list or dict, optional
Mole fractions of all components in the stream [-]
ws : list or dict, optional
Mass fractions of all components in the stream [-]
Vfls : list or dict, optional
Volume fractions of all components as a hypothetical liquid phase based
on pure component densities [-]
Vfgs : list or dict, optional
Volume fractions of all components as a hypothetical gas phase based
on pure component densities [-]
ns : list or dict, optional
Mole flow rates of each component [mol/s]
ms : list or dict, optional
Mass flow rates of each component [kg/s]
Qls : list or dict, optional
Liquid flow rates of all components as a hypothetical liquid phase
based on pure component densities [m^3/s]
Qgs : list or dict, optional
Gas flow rates of all components as a hypothetical gas phase
based on pure component densities [m^3/s]
n : float, optional
Total mole flow rate of all components in the stream [mol/s]
m : float, optional
Total mass flow rate of all components in the stream [kg/s]
Q : float, optional
Total volumetric flow rate of all components in the stream based on the
temperature and pressure specified by `T` and `P` [m^3/s]
T : float, optional
Temperature of the stream (default 298.15 K), [K]
P : float, optional
Pressure of the stream (default 101325 Pa) [Pa]
VF : float, optional
Vapor fraction (mole basis) of the stream, [-]
H : float, optional
Mass enthalpy of the stream, [J]
Hm : float, optional
Molar enthalpy of the stream, [J/mol]
S : float, optional
Mass entropy of the stream, [J/kg/K]
Sm : float, optional
Molar entropy of the stream, [J/mol/K]
energy : float, optional
Flowing energy of the stream (`H`*`m`), [W]
pkg : object
The thermodynamic property package to use for flash calculations;
one of the caloric packages in :obj:`thermo.property_package`;
defaults to the ideal model [-]
Vf_TP : tuple(2, float), optional
The (T, P) at which the volume fractions are specified to be at, [K]
and [Pa]
Q_TP : tuple(3, float, float, str), optional
The (T, P, phase) at which the volumetric flow rate is specified to be
at, [K] and [Pa]
Examples
--------
Creating Stream objects:
A stream of vodka with volume fractions 60% liquid, 40% ethanol, 1 kg/s:
>>> from thermo import Stream
>>> Stream(['water', 'ethanol'], Vfls=[.6, .4], T=300, P=1E5, m=1)
<Stream, components=['water', 'ethanol'], mole fractions=[0.8299, 0.1701], mass flow=1.0 kg/s, mole flow=43.883974 mol/s, T=300.00 K, P=100000 Pa>
A stream of air at 400 K and 1 bar, flow rate of 1 mol/s:
>>> Stream('air', T=400, P=1e5, n=1)
<Stream, components=['nitrogen', 'argon', 'oxygen'], mole fractions=[0.7812, 0.0092, 0.2096], mass flow=0.028958 kg/s, mole flow=1 mol/s, T=400.00 K, P=100000 Pa>
A flow of 1 L/s of 10 wt% phosphoric acid at 320 K:
>>> Stream(['water', 'phosphoric acid'], ws=[.9, .1], T=320, P=1E5, Q=0.001)
<Stream, components=['water', 'phosphoric acid'], mole fractions=[0.98, 0.02], mole flow=53.2136286991 mol/s, T=320.00 K, P=100000 Pa>
Instead of specifying the composition and flow rate separately, they can
be specified as a list of flow rates in the appropriate units.
80 kg/s of furfuryl alcohol/water solution:
>>> Stream(['furfuryl alcohol', 'water'], ms=[50, 30])
<Stream, components=['furfuryl alcohol', 'water'], mole fractions=[0.2343, 0.7657], mole flow=2174.93735951 mol/s, T=298.15 K, P=101325 Pa>
A stream of 100 mol/s of 400 K, 1 MPa argon:
>>> Stream(['argon'], ns=[100], T=400, P=1E6)
<Stream, components=['argon'], mole fractions=[1.0], mole flow=100 mol/s, T=400.00 K, P=1000000 Pa>
A large stream of vinegar, 8 volume %:
>>> Stream(['Acetic acid', 'water'], Qls=[1, 1/.088])
<Stream, components=['acetic acid', 'water'], mole fractions=[0.0269, 0.9731], mole flow=646268.518749 mol/s, T=298.15 K, P=101325 Pa>
A very large stream of 100 m^3/s of steam at 500 K and 2 MPa:
>>> Stream(['water'], Qls=[100], T=500, P=2E6)
<Stream, components=['water'], mole fractions=[1.0], mole flow=4617174.33613 mol/s, T=500.00 K, P=2000000 Pa>
A real example of a stream from a pulp mill:
>>> Stream(['Methanol', 'Sulphuric acid', 'sodium chlorate', 'Water', 'Chlorine dioxide', 'Sodium chloride', 'Carbon dioxide', 'Formic Acid', 'sodium sulfate', 'Chlorine'], T=365.2, P=70900, ns=[0.3361749, 11.5068909, 16.8895876, 7135.9902928, 1.8538332, 0.0480655, 0.0000000, 2.9135162, 205.7106922, 0.0012694])
<Stream, components=['methanol', 'sulfuric acid', 'sodium chlorate', 'water', 'chlorine dioxide', 'sodium chloride', 'carbon dioxide', 'formic acid', 'sodium sulfate', 'chlorine'], mole fractions=[0.0, 0.0016, 0.0023, 0.9676, 0.0003, 0.0, 0.0, 0.0004, 0.0279, 0.0], mole flow=7375.2503227 mol/s, T=365.20 K, P=70900 Pa>
For streams with large numbers of components, it may be confusing to enter
the composition separate from the names of the chemicals. For that case,
the syntax using dictionaries as follows is supported with any composition
specification:
>>> comp = OrderedDict([('methane', 0.96522),
... ('nitrogen', 0.00259),
... ('carbon dioxide', 0.00596),
... ('ethane', 0.01819),
... ('propane', 0.0046),
... ('isobutane', 0.00098),
... ('butane', 0.00101),
... ('2-methylbutane', 0.00047),
... ('pentane', 0.00032),
... ('hexane', 0.00066)])
>>> m = Stream(ws=comp, m=33)
Notes
-----
.. warning::
The Stream class is not designed for high-performance or the ability
to use different thermodynamic models. It is especially limited in its
multiphase support and the ability to solve with specifications other
than temperature and pressure. It is impossible to change constant
properties such as a compound's critical temperature in this interface.
It is recommended to switch over to the :obj:`thermo.flash` and
:obj:`EquilibriumStream` interfaces
which solves those problems and are better positioned to grow. That
interface also requires users to be responsible for their chemical
constants and pure component correlations; while default values can
easily be loaded for most compounds, the user is ultimately responsible
for them.
'''
flashed = True
def __repr__(self): # pragma: no cover
txt = '<Stream, components=%s, mole fractions=%s, mass flow=%s kg/s, mole flow=%s mol/s' % (self.names, [round(i,4) for i in self.zs], self.m, self.n)
# T and P may not be available if a flash has failed
try:
txt += ', T=%.2f K, P=%.0f Pa>' %(self.T, self.P)
except:
txt += ', thermodynamic conditions unknown>'
return txt
def __init__(self, IDs=None, zs=None, ws=None, Vfls=None, Vfgs=None,
ns=None, ms=None, Qls=None, Qgs=None,
n=None, m=None, Q=None,
T=None, P=None, VF=None, H=None, Hm=None, S=None, Sm=None,
energy=None, pkg=None, Vf_TP=(None, None), Q_TP=(None, None, '')):
composition_options = ('zs', 'ws', 'Vfls', 'Vfgs', 'ns', 'ms', 'Qls', 'Qgs')
composition_option_count = 0
for i in composition_options:
if locals()[i] is not None:
composition_option_count += 1
self.composition_spec = (i, locals()[i])
if hasattr(IDs, 'strip') or (type(IDs) == list and len(IDs) == 1):
pass # one component only - do not raise an exception
elif composition_option_count < 1:
raise Exception("No composition information is provided; one of "
"'ws', 'zs', 'Vfls', 'Vfgs', 'ns', 'ms', 'Qls' or "
"'Qgs' must be specified")
elif composition_option_count > 1:
raise Exception("More than one source of composition information "
"is provided; only one of "
"'ws', 'zs', 'Vfls', 'Vfgs', 'ns', 'ms', 'Qls' or "
"'Qgs' can be specified")
# if more than 1 of composition_options is given, raise an exception
flow_options = ('ns', 'ms', 'Qls', 'Qgs', 'm', 'n', 'Q') # energy
flow_option_count = 0
for i in flow_options:
if locals()[i] is not None:
flow_option_count += 1
self.flow_spec = (i, locals()[i])
# flow_option_count = sum(i is not None for i in flow_options)
# Energy can be used as an enthalpy spec or a flow rate spec
if flow_option_count > 1 and energy is not None:
if Hm is not None or H is not None:
flow_option_count -= 1
if flow_option_count < 1:
raise Exception("No flow rate information is provided; one of "
"'m', 'n', 'Q', 'ms', 'ns', 'Qls', 'Qgs' or "
"'energy' must be specified")
elif flow_option_count > 1:
raise Exception("More than one source of flow rate information is "
"provided; only one of "
"'m', 'n', 'Q', 'ms', 'ns', 'Qls', 'Qgs' or "
"'energy' can be specified")
if ns is not None:
zs = ns
elif ms is not None:
ws = ms
elif Qls is not None:
Vfls = Qls
elif Qgs is not None:
Vfgs = Qgs
# If T and P are known, only need to flash once
if T is not None and P is not None:
super(Stream, self).__init__(IDs, zs=zs, ws=ws, Vfls=Vfls, Vfgs=Vfgs,
T=T, P=P, Vf_TP=Vf_TP, pkg=pkg)
else:
# Initialize without a flash
Mixture.autoflash = False
super(Stream, self).__init__(IDs, zs=zs, ws=ws, Vfls=Vfls, Vfgs=Vfgs,
Vf_TP=Vf_TP, pkg=pkg)
Mixture.autoflash = True
if n is not None:
self.n = n
elif m is not None:
self.n = property_molar_to_mass(m, self.MW) # m*10000/MW
elif Q is not None:
try:
if Q_TP != (None, None, ''):
if len(Q_TP) == 2 or (len(Q_TP) == 3 and not Q_TP[-1]):
# Calculate the phase via the property package
self.property_package.flash(self.zs, T=Q_TP[0], P=Q_TP[1])
phase = self.property_package.phase if self.property_package.phase in ('l', 'g') else 'g'
else:
phase = Q_TP[-1]
if phase == 'l':
Vm = self.VolumeLiquidMixture(T=Q_TP[0], P=Q_TP[1], zs=self.zs, ws=self.ws)
else:
Vm = self.VolumeGasMixture(T=Q_TP[0], P=Q_TP[1], zs=self.zs, ws=self.ws)
else:
Vm = self.Vm
self.n = Q/Vm
except:
raise Exception('Molar volume could not be calculated to determine the flow rate of the stream.')
elif ns is not None:
if isinstance(ns, (OrderedDict, dict)):
ns = ns.values()
self.n = sum(ns)
elif ms is not None:
if isinstance(ms, (OrderedDict, dict)):
ms = ms.values()
self.n = property_molar_to_mass(sum(ms), self.MW)
elif Qls is not None:
# volume flows and total enthalpy/entropy should be disabled
try:
if isinstance(Qls, (OrderedDict, dict)):
Qls = Qls.values()
self.n = sum([Q/Vml for Q, Vml in zip(Qls, self.Vmls)])
except:
raise Exception('Liquid molar volume could not be calculated to determine the flow rate of the stream.')
elif Qgs is not None:
try:
if isinstance(Qgs, (OrderedDict, dict)):
Qgs = Qgs.values()
self.n = sum([Q/Vmg for Q, Vmg in zip(Qgs, self.Vmgs)])
except:
raise Exception('Gas molar volume could not be calculated to determine the flow rate of the stream.')
elif energy is not None:
if H is not None:
self.m = energy/H # Watt/(J/kg) = kg/s
elif Hm is not None:
self.n = energy/Hm # Watt/(J/kg) = mol/s
else:
raise NotImplemented
# Energy specified - calculate H or Hm
if energy is not None:
if hasattr(self, 'm'):
H = energy/self.m
if hasattr(self, 'n'):
Hm = energy/self.n
if T is None or P is None:
non_TP_state_vars = sum(i is not None for i in [VF, H, Hm, S, Sm, energy])
if non_TP_state_vars == 0:
if T is None:
T = self.T_default
if P is None:
P = self.P_default
self.flash(T=T, P=P, VF=VF, H=H, Hm=Hm, S=S, Sm=Sm)
self.set_extensive_flow(self.n)
self.set_extensive_properties()
def set_extensive_flow(self, n=None):
if n is None:
n = self.n
self.n = n
self.m = property_mass_to_molar(self.n, self.MW)
self.ns = [self.n*zi for zi in self.zs]
self.ms = [self.m*wi for wi in self.ws]
try:
self.Q = self.m/self.rho
except:
pass
try:
self.Qgs = [m/rho for m, rho in zip(self.ms, self.rhogs)]
except:
pass
try:
self.Qls = [m/rho for m, rho in zip(self.ms, self.rhols)]
except:
pass
if self.phase == 'l/g' or self.phase == 'l':
self.nl = self.n*(1. - self.V_over_F)
self.nls = [xi*self.nl for xi in self.xs]
self.mls = [ni*MWi*1E-3 for ni, MWi in zip(self.nls, self.MWs)]
self.ml = sum(self.mls)
if self.rhol:
self.Ql = self.ml/self.rhol
else:
self.Ql = None
if self.phase == 'l/g' or self.phase == 'g':
self.ng = self.n*self.V_over_F
self.ngs = [yi*self.ng for yi in self.ys]
self.mgs = [ni*MWi*1E-3 for ni, MWi in zip(self.ngs, self.MWs)]
self.mg = sum(self.mgs)
if self.rhog:
self.Qg = self.mg/self.rhog
else:
self.Qg = None
def StreamArgs(self):
'''Goal to create a StreamArgs instance, with the user specified
variables always being here.
The state variables are currently correctly tracked. The flow rate and
composition variable needs to be tracked as a function of what was
specified as the input variables.
The flow rate needs to be changed wen the stream flow rate is changed.
Note this stores unnormalized specs, but that this is OK.
'''
kwargs = {i:j for i, j in zip(('T', 'P', 'VF', 'H', 'Hm', 'S', 'Sm'), self.specs)}
kwargs['IDs'] = self.IDs
kwargs[self.composition_spec[0]] = self.composition_spec[1]
kwargs[self.flow_spec[0]] = self.flow_spec[1]
return StreamArgs(**kwargs)
# flow_spec, composition_spec are attributes already
@property
def specified_composition_vars(self):
'''number of composition variables'''
return 1
@property
def composition_specified(self):
'''Always needs a composition'''
return True
@property
def specified_state_vars(self):
'''Always needs two states'''
return 2
@property
def non_pressure_spec_specified(self):
'''Cannot have a stream without an energy-type spec.
'''
return True
@property
def state_specified(self):
'''Always needs a state'''
return True
@property
def state_specs(self):
'''Returns a list of tuples of (state_variable, state_value) representing
the thermodynamic state of the system.
'''
specs = []
for i, var in enumerate(('T', 'P', 'VF', 'Hm', 'H', 'Sm', 'S', 'energy')):
v = self.specs[i]
if v is not None:
specs.append((var, v))
return specs
@property
def specified_flow_vars(self):
'''Always needs only one flow specified'''
return 1
@property
def flow_specified(self):
'''Always needs a flow specified'''
return True
def flash(self, T=None, P=None, VF=None, H=None, Hm=None, S=None, Sm=None,
energy=None):
self.specs = (T, P, VF, H, Hm, S, Sm, energy)
if energy is not None:
H = energy/self.m
if H is not None:
Hm = property_mass_to_molar(H, self.MW)
if S is not None:
Sm = property_mass_to_molar(S, self.MW)
super(Stream, self).flash_caloric(T=T, P=P, VF=VF, Hm=Hm, Sm=Sm)
self.set_extensive_properties()
def set_extensive_properties(self):
if not hasattr(self, 'm'):
self.energy = None
return None
if self.H is not None and self.m is not None:
self.energy = self.H*self.m
self.energy_reactive = self.H_reactive*self.m
else:
self.energy = None
def calculate(self, T=None, P=None):
self.set_TP(T=T, P=P)
self.set_phase()
if hasattr(self, 'rho') and self.rho:
self.Q = self.m/self.rho
else:
self.Q = None
self.set_extensive_flow()
self.set_extensive_properties()
def __add__(self, other):
if not isinstance(other, Stream):
raise Exception('Adding to a stream requires that the other object '
'also be a stream.')
if (set(self.CASs) == set(other.CASs)) and (len(self.CASs) == len(other.CASs)):
cmps = self.CASs
else:
cmps = sorted(list(set((self.CASs + other.CASs))))
mole = self.n + other.n
moles = []
for cmp in cmps:
moles.append(0)
if cmp in self.CASs:
ind = self.CASs.index(cmp)
moles[-1] += self.zs[ind]*self.n
if cmp in other.CASs:
ind = other.CASs.index(cmp)
moles[-1] += other.zs[ind]*other.n
T = min(self.T, other.T)
P = min(self.P, other.P)
return Stream(IDs=cmps, ns=moles, T=T, P=P, pkg=self.property_package)
def __sub__(self, other):
# Subtracts the mass flow rates in other from self and returns a new
# Stream instance
# Check if all components are present in the original stream,
# while ignoring 0-flow streams in other
components_in_self = [i in self.CASs for i in other.CASs]
if not all(components_in_self):
for i, in_self in enumerate(components_in_self):
if not in_self and other.zs[i] > 0:
raise Exception('Not all components to be removed are \
present in the first stream; %s is not present.' %other.IDs[i])
# Calculate the mole flows of each species
ns_self = list(self.ns)
ns_other = list(other.ns)
n_product = sum(ns_self) - sum(ns_other)
for i, CAS in enumerate(self.CASs):
if CAS in other.CASs:
nj = ns_other[other.CASs.index(CAS)]
# Merely normalizing the mole flow difference is enough to make
# ~1E-16 relative differences; allow for a little tolerance here
relative_difference_product = abs(ns_self[i] - nj)/n_product
relative_difference_self = abs(ns_self[i] - nj)/ns_self[i]
if ns_self[i] - nj < 0 and (relative_difference_product > 1E-12 or relative_difference_self > 1E-9):
raise Exception('Attempting to remove more %s than is in the \
first stream.' %self.IDs[i])
if ns_self[i] - nj < 0.:
ns_self[i] = 0.
elif relative_difference_product < 1E-12:
ns_self[i] = 0.
else:
ns_self[i] = ns_self[i] - nj
# Remove now-empty streams:
ns_product = []
CASs_product = []
for n, CAS in zip(ns_self, self.CASs):
if n != 0:
ns_product.append(n)
CASs_product.append(CAS)
# Create the resulting stream
return Stream(IDs=CASs_product, ns=ns_product, T=self.T, P=self.P)
class EquilibriumStream(EquilibriumState):
flashed = True
def __repr__(self):
s = '<EquilibriumStream, T=%.4f, P=%.4f, zs=%s, betas=%s, mass flow=%s kg/s, mole flow=%s mol/s, phases=%s>'
s = s %(self.T, self.P, self.zs, self.betas, self.m, self.n, self.phases)
return s
def __init__(self, flasher, zs=None, ws=None, Vfls=None, Vfgs=None,
ns=None, ms=None, Qls=None, Qgs=None,
n=None, m=None, Q=None,
T=None, P=None, VF=None, H=None, H_mass=None, S=None, S_mass=None,
energy=None, Vf_TP=None, Q_TP=None, hot_start=None,
existing_flash=None):
constants = flasher.constants
# Composition information
composition_option_count = 0
if zs is not None:
composition_option_count += 1
self.composition_spec = ('zs', zs)
if ws is not None:
composition_option_count += 1
self.composition_spec = ('ws', ws)
if Vfls is not None:
composition_option_count += 1
self.composition_spec = ('Vfls', Vfls)
if Vfgs is not None:
composition_option_count += 1
self.composition_spec = ('Vfgs', Vfgs)
if ns is not None:
composition_option_count += 1
self.composition_spec = ('ns', ns)
if ms is not None:
composition_option_count += 1
self.composition_spec = ('ms', ms)
if Qls is not None:
composition_option_count += 1
self.composition_spec = ('Qls', Qls)
if Qgs is not None:
composition_option_count += 1
self.composition_spec = ('Qgs', Qgs)
if composition_option_count < 1:
raise Exception("No composition information is provided; one of "
"'ws', 'zs', 'Vfls', 'Vfgs', 'ns', 'ms', 'Qls' or "
"'Qgs' must be specified")
elif composition_option_count > 1:
raise Exception("More than one source of composition information "
"is provided; only one of "
"'ws', 'zs', 'Vfls', 'Vfgs', 'ns', 'ms', 'Qls' or "
"'Qgs' can be specified")
flow_option_count = 0
if ns is not None:
flow_option_count += 1
self.flow_spec = ('ns', ns)
if ms is not None:
flow_option_count += 1
self.flow_spec = ('ms', ms)
if Qls is not None:
flow_option_count += 1
self.flow_spec = ('Qls', Qls)
if Qgs is not None:
flow_option_count += 1
self.flow_spec = ('Qgs', Qgs)
if m is not None:
flow_option_count += 1
self.flow_spec = ('m', m)
if n is not None:
flow_option_count += 1
self.flow_spec = ('n', n)
if Q is not None:
flow_option_count += 1
self.flow_spec = ('Q', Q)
if flow_option_count > 1 and energy is not None:
if H is not None or H_mass is not None:
flow_option_count -= 1
if flow_option_count < 1:
raise Exception("No flow rate information is provided; one of "
"'m', 'n', 'Q', 'ms', 'ns', 'Qls', 'Qgs' or "
"'energy' must be specified")
elif flow_option_count > 1:
raise Exception("More than one source of flow rate information is "
"provided; only one of "
"'m', 'n', 'Q', 'ms', 'ns', 'Qls', 'Qgs' or "
"'energy' can be specified")
# Make sure mole fractions are available
if ns is not None:
zs = normalize(ns)
elif ms is not None:
zs = ws_to_zs(normalize(ms), constants.MWs)
elif ws is not None:
zs = ws_to_zs(ws, constants.MWs)
elif Qls is not None or Vfls is not None:
if Vfls is None:
Vfls = normalize(Qls)
if Vf_TP is not None and Vf_TP != (None, None):
VolumeObjects = flasher.properties.VolumeLiquids
Vms_TP = [i(T_vf, P_vf) for i in VolumeObjects]
else:
Vms_TP = constants.Vml_STPs
zs = Vfs_to_zs(Vfls, Vms_TP)
elif Qgs is not None:
zs = normalize(Qgs)
elif Vfgs is not None:
zs = Vfgs
MW = 0.0
MWs = constants.MWs
for i in range(len(zs)):
MW += zs[i]*MWs[i]
self._MW = MW
MW_inv = 1.0/MW
if H_mass is not None:
H = property_mass_to_molar(H_mass, MW)
if S_mass is not None:
S = property_mass_to_molar(S_mass, MW)
if energy is not None:
# Handle the various mole flows - converting to get energy; subset for now
if m is not None:
n = property_molar_to_mass(m, MW) # m*10000/MW
elif ns is not None:
n = sum(ns)
elif ms is not None:
n = property_molar_to_mass(sum(ms), MW)
H = energy/n
if existing_flash is not None:
# All variable which have been set
if type(existing_flash) is EquilibriumStream:
composition_spec, flow_spec = self.composition_spec, self.flow_spec
self.__dict__.update(existing_flash.__dict__)
if type(existing_flash) is EquilibriumStream:
self.composition_spec, self.flow_spec = composition_spec, flow_spec
# TODO: are any variables caried over from an existing equilibrium stream?
# Delete if so
else:
dest = super(EquilibriumStream, self).__init__
flasher.flash(T=T, P=P, VF=VF, H=H, S=S, dest=dest, zs=zs, hot_start=hot_start)
# Convert the flow rate into total molar flow
if m is not None:
n = property_molar_to_mass(m, MW) # m*10000/MW
elif ns is not None:
n = sum(ns)
elif ms is not None:
n = property_molar_to_mass(sum(ms), MW)
elif Q is not None:
try:
if Q_TP is not None:
if len(Q_TP) == 2 or (len(Q_TP) == 3 and not Q_TP[-1]):
# Calculate the volume via the property package
expensive_flash = flasher.flash(zs=zs, T=Q_TP[0], P=Q_TP[1])
V = expensive_flash.V()
if Q_TP[-1] == 'l':
V = flasher.liquids[0].to(T=Q_TP[0], P=Q_TP[1], zs=zs).V()
elif Q_TP[-1] == 'g':
V = flasher.gas.to(T=Q_TP[0], P=Q_TP[1], zs=zs).V()
else:
V = self.V()
n = Q/V
except:
raise Exception('Molar volume could not be calculated to determine the flow rate of the stream.')
elif Qls is not None:
n = 0.0
try:
for i in self.cmps:
n += Qls[i]/Vms_TP[i]
except:
raise Exception('Liquid molar volume could not be calculated to determine the flow rate of the stream.')
elif Qgs is not None:
# Use only ideal gas law; allow user T, P but default to flasher settings when not speced
if Q_TP is not None and Q_TP[0] is not None and Q_TP[1] is not None:
V = R*Q_TP[0]/Q_TP[1]
else:
V = R*flasher.settings.T_gas_ref/flasher.settings.P_gas_ref
n = sum(Qgs)/V
elif energy is not None:
n = energy/H # Watt/(J/mol) = mol/s # probably wrong
self.n = n
self.m = m = property_mass_to_molar(n, MW)
self.ns = [n*zi for zi in zs]
self._ws = ws = [zi*MWi*MW_inv for zi, MWi in zip(zs, constants.MWs)]
self.ms = [m*wi for wi in ws]
@property
def T_calc(self):
return self.T
@property
def P_calc(self):
return self.P
@property
def VF_calc(self):
return self.VF
@property
def zs_calc(self):
return self.zs
@property
def ns_calc(self):
return self.ns
@property
def ms_calc(self):
return self.ms
@property
def n_calc(self):
return self.n
@property
def energy(self):
return self.H()*self.n
energy_calc = energy
@property
def energy_reactive(self):
return self.H_reactive()*self.n
energy_reactive_calc = energy_reactive
@property
def property_package(self):
return self.flasher
@property
def Q(self):
return self.n*self.V()
Q_calc = Q
@property
def Qgs(self):
# Always use flash settings - do not store weird input
settings = self.flasher.settings
V = R*settings.T_gas_ref/settings.P_gas_ref
n = self.n
Vn = V*n
return [zi*Vn for zi in self.zs]
Qgs_calc = Qgs
@property
def Qls(self):
T_liquid_volume_ref = self.flasher.settings.T_liquid_volume_ref
ns = self.ns
Vms_TP = self.constants.Vml_STPs
return [ns[i]*Vms_TP[i] for i in self.cmps]
Qls_calc = Qls
def StreamArgs(self):
'''Goal to create a StreamArgs instance, with the user specified
variables always being here.
The state variables are currently correctly tracked. The flow rate and
composition variable needs to be tracked as a function of what was
specified as the input variables.
The flow rate needs to be changed wen the stream flow rate is changed.
Note this stores unnormalized specs, but that this is OK.
'''
kwargs = self.flash_specs.copy()
del kwargs['zs']
kwargs['pkg'] = self.flasher
kwargs[self.composition_spec[0]] = self.composition_spec[1]
kwargs[self.flow_spec[0]] = self.flow_spec[1]
return StreamArgs(**kwargs)
# flow_spec, composition_spec are attributes already
@property
def specified_composition_vars(self):
'''number of composition variables'''
return 1
@property
def composition_specified(self):
'''Always needs a composition'''
return True
@property
def specified_state_vars(self):
'''Always needs two states'''
return 2
@property
def non_pressure_spec_specified(self):
'''Cannot have a stream without an energy-type spec.
'''
return True
@property
def state_specified(self):
'''Always needs a state'''
return True
@property
def state_specs(self):
'''Returns a list of tuples of (state_variable, state_value) representing
the thermodynamic state of the system.
'''
specs = []
flash_specs = self.flash_specs
for i, var in enumerate(('T', 'P', 'VF', 'H', 'S', 'energy')):
if var in flash_specs:
v = flash_specs[var]
if v is not None:
specs.append((var, v))
return specs
@property
def specified_flow_vars(self):
'''Always needs only one flow specified'''
return 1
@property
def flow_specified(self):
'''Always needs a flow specified'''
return True
energy_types = {'LP_STEAM': 'Steam 50 psi',
'MP_STEAM': 'Steam 150 psi',
'HP_STEAM': 'Steam 300 psi',
'ELECTRICITY': 'Electricity',
'AC_ELECTRICITY': 'AC Electricity',
'DC_ELECTRICITY': 'DC Electricity'}
for freq in residential_power_frequencies:
for voltage in voltages_1_phase_residential:
energy_types['AC_ELECTRICITY_1_PHASE_%s_V_%s_Hz'% (str(voltage), str(freq))] = 'AC_ELECTRICITY 1 PHASE %s V %s Hz'% (str(voltage), str(freq))
for voltage in voltages_3_phase:
energy_types['AC_ELECTRICITY_3_PHASE_%s_V_%s_Hz'% (str(voltage), str(freq))] = 'AC_ELECTRICITY 3 PHASE %s V %s Hz'% (str(voltage), str(freq))
try:
EnergyTypes = enum.Enum('EnergyTypes', energy_types)
except:
EnergyTypes = ''
class EnergyStream(object):
'''
'''
Q = None
medium = None
Hm = None
def copy(self):
return EnergyStream(Q=self.Q, medium=self.medium)
def __repr__(self):
return '<Energy stream, Q=%s W, medium=%s>' %(self.Q, self.medium.value)
def __init__(self, Q, medium=None):
self.medium = medium
# isinstance test is slow, especially with Number - faster to check float and int first
if not (Q is None or isinstance(Q, (float, int, Number))):
raise Exception('Energy stream flow rate is not a flow rate')
self.Q = Q
@property
def energy(self):
return self.Q
@energy.setter
def energy(self, energy):
self.Q = energy
energy_calc = energy
def mole_balance(inlets, outlets, compounds):
inlet_count = len(inlets)
outlet_count = len(outlets)
in_unknown_count = out_unknown_count = 0
in_unknown_idx = out_unknown_idx = None
all_ns_in, all_ns_out = [], []
all_in_known = all_out_known = True
for i in range(inlet_count):
f = inlets[i]
try:
ns = f.specifications['ns']
except:
ns = f.ns
if ns is None:
ns = f.ns_calc
if ns is None or None in ns:
all_in_known = False
in_unknown_count += 1
in_unknown_idx = i
all_ns_in.append(ns)
for i in range(outlet_count):
f = outlets[i]
try:
ns = f.specifications['ns']
except:
ns = f.ns
if ns is None:
ns = f.ns_calc
if ns is None or None in ns:
all_out_known = False
out_unknown_count += 1
out_unknown_idx = i
all_ns_out.append(ns)
if all_out_known and all_in_known:
# Fast path - all known
return False
if all_in_known:
inlet_ns = [] # List of all molar flows in; set only when everything in is known
for j in range(compounds):
v = 0.0
for i in range(inlet_count):
v += all_ns_in[i][j]
inlet_ns.append(v)
if all_out_known:
outlet_ns = []
for j in range(compounds):
v = 0.0
for i in range(outlet_count):
v += all_ns_out[i][j]
outlet_ns.append(v)
if out_unknown_count == 1 and in_unknown_count == 0:
if outlet_count == 1:
out_ns_calc = [i for i in inlet_ns]
else:
out_ns_calc = [inlet_ns[i] - sum(all_ns_out[j][i] for j in range(outlet_count) if (all_ns_out[j] and all_ns_out[j][i] is not None))
for i in range(compounds)]
outlets[out_unknown_idx].ns = out_ns_calc
return True
if in_unknown_count == 1 and out_unknown_count == 0:
if inlet_count == 1:
in_ns_calc = [i for i in outlet_ns]
else:
in_ns_calc = [outlet_ns[i] - sum(all_ns_in[j][i] for j in range(inlet_count) if (all_ns_in[j] and all_ns_in[j][i] is not None))
for i in range(compounds)]
inlets[in_unknown_idx].ns = in_ns_calc
return True
elif in_unknown_count == 0 and out_unknown_count == 0:
return False # Nothing to do - everything is known
progress = False
# For each component, see if only one stream is missing it
for j in range(compounds):
in_missing, idx_missing = None, None
missing_count = 0
v = 0
for i in range(inlet_count):
ns = all_ns_in[i]
if ns is None or ns[j] is None:
missing_count += 1
in_missing, idx_missing = True, i
else:
v += ns[j]
for i in range(outlet_count):
ns = all_ns_out[i]
if ns is None or ns[j] is None:
missing_count += 1
in_missing, idx_missing = False, i
else:
v -= ns[j]
if missing_count == 1:
progress = True
if in_missing:
inlets[idx_missing].specifications['ns'][j] = -v
else:
outlets[idx_missing].specifications['ns'][j] = v
if progress:
return progress
# Try a total mole balance
n_in_missing_count = 0
if all_in_known:
n_in = sum(inlet_ns)
else:
n_in_missing_idx = None
n_in = 0.0
for i in range(inlet_count):
f = inlets[i]
n = f.specifications['n']
if n is None:
n = f.n_calc
if n is None:
n_in_missing_count += 1
n_in_missing_idx = i
else:
n_in += n
n_out_missing_count = 0
if all_out_known:
n_out = sum(outlet_ns)
else:
n_out_missing_idx = None
n_out = 0.0
for i in range(outlet_count):
f = outlets[i]
n = f.specifications['n']
if n is None:
n = f.n_calc
if n is None:
n_out_missing_count += 1
n_out_missing_idx = i
else:
n_out += n
if n_out_missing_count == 0 and n_in_missing_count == 1:
inlets[n_in_missing_idx].specifications['n'] = n_out - n_in
progress = True
if n_in_missing_count == 0 and n_out_missing_count == 1:
outlets[n_out_missing_idx].specifications['n'] = n_in - n_out
progress = True
return progress
def energy_balance(inlets, outlets):
inlet_count = len(inlets)
outlet_count = len(outlets)
in_unknown_count = out_unknown_count = 0
in_unknown_idx = out_unknown_idx = None
all_energy_in, all_energy_out = [], []
all_in_known = all_out_known = True
if inlet_count == 1 and outlet_count == 1:
# Don't need flow rates for one in one out
fin = inlets[0]
try:
Hin = fin.H()
except:
Hin = fin.Hm_calc
fout = outlets[0]
try:
Hout = fout.H()
except:
Hout = fout.Hm_calc
if Hin is not None and Hout is None:
fout.Hm = Hin
return True
elif Hin is None and Hout is not None:
fin.Hm = Hout
return True
for i in range(inlet_count):
f = inlets[i]
Q = f.energy
if Q is None:
Q = f.energy_calc
if Q is None:
all_in_known = False
in_unknown_count += 1
in_unknown_idx = i
all_energy_in.append(Q)
for i in range(outlet_count):
f = outlets[i]
Q = f.energy
if Q is None:
Q = f.energy_calc
if Q is None:
all_out_known = False
out_unknown_count += 1
out_unknown_idx = i
all_energy_out.append(Q)
if all_out_known and all_in_known:
# Fast path - all known
return False
if all_in_known:
inlet_energy = sum(all_energy_in)
if all_out_known:
outlet_energy = sum(all_energy_out)
if out_unknown_count == 1 and in_unknown_count == 0:
set_energy = inlet_energy
for v in all_energy_out:
if v is not None:
set_energy -= v
outlets[out_unknown_idx].energy = set_energy
return True
if in_unknown_count == 1 and out_unknown_count == 0:
set_energy = outlet_energy
for v in all_energy_in:
if v is not None:
set_energy -= v
inlets[in_unknown_idx].energy = set_energy
return True
return False | [
"[email protected]"
] | |
0e2e8ebd7cc2d7103bce5e551dfe8fdb46f11f37 | 039f2c747a9524daa1e45501ada5fb19bd5dd28f | /ARC070/ARC070e.py | 180283ee92bad6826c10a5ff60317df1e96f5613 | [
"Unlicense"
] | permissive | yuto-moriizumi/AtCoder | 86dbb4f98fea627c68b5391bf0cc25bcce556b88 | 21acb489f1594bbb1cdc64fbf8421d876b5b476d | refs/heads/master | 2023-03-25T08:10:31.738457 | 2021-03-23T08:48:01 | 2021-03-23T08:48:01 | 242,283,632 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 136 | py | #ARC070e
def main():
import sys
input=sys.stdin.readline
sys.setrecursionlimit(10**6)
if __name__ == '__main__':
main() | [
"[email protected]"
] | |
d3794f2b28a9458808b14c3906f02f49f7c018d0 | 622f779c8ed0bf589b947c5550c11f64f438444a | /src/108-convert-sorted-array-to-binary-search-tree.py | 2b05af9f48d9a0ecb0fa80a84c03597351f4918c | [
"MIT"
] | permissive | sahilrider/LeetCode-Solutions | 9290f69096af53e5c7212fe1e3820131a89257d0 | 9cac844c27b5dbf37a70c2981a09cd92457f7ff1 | refs/heads/master | 2023-01-03T22:35:28.377721 | 2020-10-25T16:15:49 | 2020-10-25T16:15:49 | 232,368,847 | 2 | 0 | MIT | 2020-10-25T16:15:50 | 2020-01-07T16:37:43 | Python | UTF-8 | Python | false | false | 806 | py | '''https://leetcode.com/problems/convert-sorted-array-to-binary-search-tree/'''
# Definition for a binary tree node.
class TreeNode:
def __init__(self, val=0, left=None, right=None):
self.val = val
self.left = left
self.right = right
class Solution:
def sortedArrayToBST(self, nums: List[int]) -> TreeNode:
def helper(low, high):
m = (low+high)//2
node = TreeNode(nums[m])
if m-1>=low:
node.left = helper(low, m-1)
if m+1<=high:
node.right = helper(m+1, high)
return node
if nums is None or len(nums)==0:
return None
if len(nums)==1:
return TreeNode(nums[0])
ans = helper( 0, len(nums)-1)
return ans | [
"[email protected]"
] | |
e7d71e403f48b53d8264ec423ce14f51ac3ee2fa | 72f6abca19153ebc58921b148f51c09967e131d7 | /examples/correlated_gaussians/run_test.py | 83e0aa23cd49c234198a0e984df5977af54c1706 | [] | no_license | mboudiaf/Mutual-Information-Variational-Bounds | 3e2693a5b2a06d65988ded931e0a5116456697e6 | 56e8e3f2369ed107cd363d854d9f155fbf242930 | refs/heads/master | 2023-04-08T00:03:46.946564 | 2019-10-31T18:48:17 | 2019-10-31T18:48:17 | 216,642,876 | 38 | 5 | null | 2023-03-24T23:13:25 | 2019-10-21T18:55:11 | Python | UTF-8 | Python | false | false | 851 | py | #!/usr/bin/env python
"""run_tests.py: Script to execute in order to make sure basic features work properly."""
import os
import itertools
regularizers = ["nce", "mine", "nwj"]
critic_types = ["joint", "separate"]
comb_test_params = itertools.product(regularizers, critic_types)
name_test_params = ['regularizer', 'critic_type']
fixed_params = {"epochs": 1, "rho_points": 2, "data_size": 1000}
for param_comb in comb_test_params:
command_line = "python3 demo_gaussian.py "
for fix_param_name, fix_param_value in fixed_params.items():
command_line += "--{} {} ".format(fix_param_name, fix_param_value)
for i, param in enumerate(param_comb):
command_line += "--{} {} ".format(name_test_params[i], param)
print(command_line)
os.system(command_line)
print("All tests were successfully passed. ")
| [
"[email protected]"
] | |
34752630bb94a41e0623b3e17a229516d7faaf70 | fc772efe3eccb65e4e4a8da7f2b2897586b6a0e8 | /Controller/glance/tests/functional/v1/test_multiprocessing.py | bfbb88b6aaa9ce22c2afe7d5cd7e4980f891b31c | [] | no_license | iphonestack/Openstack_Kilo | 9ae12505cf201839631a68c9ab4c041f737c1c19 | b0ac29ddcf24ea258ee893daf22879cff4d03c1f | refs/heads/master | 2021-06-10T23:16:48.372132 | 2016-04-18T07:25:40 | 2016-04-18T07:25:40 | 56,471,076 | 0 | 2 | null | 2020-07-24T02:17:46 | 2016-04-18T02:32:43 | Python | UTF-8 | Python | false | false | 2,497 | py | # Copyright 2012 OpenStack Foundation
# All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
# License for the specific language governing permissions and limitations
# under the License.
import time
import httplib2
import psutil
from glance.tests import functional
from glance.tests.utils import execute
class TestMultiprocessing(functional.FunctionalTest):
"""Functional tests for the bin/glance CLI tool"""
def setUp(self):
self.workers = 2
super(TestMultiprocessing, self).setUp()
def test_multiprocessing(self):
"""Spin up the api servers with multiprocessing on"""
self.cleanup()
self.start_servers(**self.__dict__.copy())
path = "http://%s:%d/v1/images" % ("127.0.0.1", self.api_port)
http = httplib2.Http()
response, content = http.request(path, 'GET')
self.assertEqual(200, response.status)
self.assertEqual('{"images": []}', content)
self.stop_servers()
def _get_children(self):
api_pid = self.api_server.process_pid
process = psutil.Process(api_pid)
children = process.get_children()
pids = [str(child.pid) for child in children]
return pids
def test_interrupt_avoids_respawn_storm(self):
"""
Ensure an interrupt signal does not cause a respawn storm.
See bug #978130
"""
self.start_servers(**self.__dict__.copy())
children = self._get_children()
cmd = "kill -INT %s" % ' '.join(children)
execute(cmd, raise_error=True)
for _ in range(9):
# Yeah. This totally isn't a race condition. Randomly fails
# set at 0.05. Works most of the time at 0.10
time.sleep(0.10)
# ensure number of children hasn't grown
self.assertTrue(len(children) >= len(self._get_children()))
for child in self._get_children():
# ensure no new children spawned
self.assertTrue(child in children, child)
self.stop_servers()
| [
"[email protected]"
] | |
37dd20ca33af6650ee883d4ca2fd0f9b900b00f9 | d7141ff15e6d9e4760705719c0718cb4926d71ad | /libfuturize/test_scripts/py2/print_range.py | ff0b2c61650512f363dea73a04495f6dcb58958e | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | AndreaCrotti/python-future | 4a1f1f29741493f7abab841a184450b36ffde424 | 16635ad986ab10a337267f637a8b040a70bc5258 | refs/heads/master | 2021-01-15T09:36:47.268437 | 2014-01-10T00:02:14 | 2014-01-10T00:13:17 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 92 | py | from __future__ import print_function
from future.builtins import *
print(list(range(10)))
| [
"[email protected]"
] | |
b4d2f22c243abcdb7cfdc00ff5f2301660c09102 | bc9bdfc1fa556339bddb3b2eda4c3eac3575ed93 | /tensorpack/input_source/input_source.py | 553f16b077b5466e1078e0bdc9418754faec68b4 | [
"Apache-2.0"
] | permissive | TPLink32/tensorpack | 55c55d25e70116ec87df8ac0322d0628b52bd4a8 | b325e25727ba06be848b74466b33140dd42a0c7e | refs/heads/master | 2021-08-14T16:07:49.642032 | 2017-11-15T15:22:46 | 2017-11-15T15:28:04 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 18,536 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# File: input_source.py
# Author: Yuxin Wu <[email protected]>
import tensorflow as tf
try:
from tensorflow.python.ops.data_flow_ops import StagingArea
except ImportError:
pass
from itertools import chain
from six.moves import range, zip
import threading
from .input_source_base import InputSource
from ..dataflow import DataFlow, RepeatedData, DataFlowTerminated
from ..tfutils.summary import add_moving_summary
from ..tfutils.common import get_op_tensor_name
from ..tfutils.tower import get_current_tower_context
from ..utils import logger
from ..utils.concurrency import ShareSessionThread
from ..utils.develop import log_deprecated
from ..callbacks.base import Callback
from ..callbacks.graph import RunOp
__all__ = ['PlaceholderInput', 'FeedInput',
'FeedfreeInput',
'QueueInput', 'BatchQueueInput',
'DummyConstantInput', 'TensorInput',
'TFDatasetInput',
'StagingInputWrapper',
'StagingInput']
class PlaceholderInput(InputSource):
"""
Just produce placeholders as input tensors.
"""
def __init__(self, prefix=''):
"""
Args:
prefix(str): an optional prefix to add to the placeholder.
"""
self._prefix = prefix
def _setup(self, inputs):
self._all_placehdrs = [v.build_placeholder(prefix=self._prefix) for v in inputs]
def _get_input_tensors(self):
return self._all_placehdrs
class FeedInput(InputSource):
""" Input by iterating over a DataFlow and feed datapoints. """
class _FeedCallback(Callback):
def __init__(self, ds, placeholders):
self._ds = ds
self._itr = self._ds.get_data()
self._placeholders = placeholders
def _before_run(self, _):
dp = next(self._itr)
assert len(dp) == len(self._placeholders), "[FeedInput] datapoints and inputs are of different length!"
feed = dict(zip(self._placeholders, dp))
return tf.train.SessionRunArgs(fetches=[], feed_dict=feed)
def _reset(self):
self._ds.reset_state()
self._itr = self._ds.get_data()
def __init__(self, ds, infinite=True):
"""
Args:
ds (DataFlow): the input DataFlow.
infinite (bool): When set to False, will raise StopIteration when
ds is exhausted.
"""
assert isinstance(ds, DataFlow), ds
self.ds = ds
if infinite:
self._iter_ds = RepeatedData(self.ds, -1)
else:
self._iter_ds = self.ds
def _size(self):
return self.ds.size()
def _setup(self, inputs):
# placeholders as input are always safe to reuse.
self._all_placehdrs = [v.build_placeholder_reuse() for v in inputs]
self._cb = self._FeedCallback(self._iter_ds, self._all_placehdrs)
def _get_input_tensors(self):
return self._all_placehdrs
def _reset_state(self):
self._cb._reset()
def _get_callbacks(self):
return [self._cb]
class FeedfreeInput(InputSource):
""" Abstract base for input without feed,
e.g. by queue or other operations. """
def _reset_state(self):
pass
# TODO enqueu_many? https://github.com/tensorflow/tensorflow/issues/7817#issuecomment-282053155
class EnqueueThread(ShareSessionThread):
def __init__(self, queue, ds, placehdrs):
super(EnqueueThread, self).__init__()
self.name = 'EnqueueThread ' + queue.name
self.daemon = True
self.dataflow = RepeatedData(ds, -1)
self.queue = queue
self.placehdrs = placehdrs
self.op = self.queue.enqueue(self.placehdrs)
self.close_op = self.queue.close(cancel_pending_enqueues=True)
self._lock = threading.Lock()
def run(self):
with self.default_sess():
try:
self.reset_dataflow()
while True:
# pausable loop
self._lock.acquire()
self._lock.release()
dp = next(self._itr)
feed = dict(zip(self.placehdrs, dp))
self.op.run(feed_dict=feed)
except (tf.errors.CancelledError, tf.errors.OutOfRangeError, DataFlowTerminated):
pass
except Exception as e:
if isinstance(e, RuntimeError) and 'closed Session' in str(e):
pass
else:
logger.exception("Exception in {}:".format(self.name))
finally:
try:
self.close_op.run()
except Exception:
pass
logger.info("{} Exited.".format(self.name))
def reset_dataflow(self):
self.dataflow.reset_state()
self._itr = self.dataflow.get_data()
def pause(self):
self._lock.acquire()
def resume(self):
self._lock.release()
class QueueInput(FeedfreeInput):
""" Enqueue datapoints from a DataFlow to a TF queue.
And the model receives dequeued tensors.
Calling :meth:`reset_state()` will clear the queue and reset the dataflow.
"""
def __init__(self, ds, queue=None):
"""
Args:
ds(DataFlow): the input DataFlow.
queue (tf.QueueBase): A :class:`tf.QueueBase` whose type
should match the corresponding InputDesc of the model.
Defaults to a FIFO queue of size 50.
"""
assert isinstance(ds, DataFlow), ds
self.queue = queue
self.ds = ds
def _size(self):
return self.ds.size()
def _setup(self, inputs):
self._input_placehdrs = [v.build_placeholder_reuse() for v in inputs]
assert len(self._input_placehdrs) > 0, \
"QueueInput has to be used with some inputs!"
with self.cached_name_scope():
if self.queue is None:
self.queue = tf.FIFOQueue(
50, [x.dtype for x in self._input_placehdrs],
name='input_queue')
logger.info("Setting up the queue '{}' for CPU prefetching ...".format(self.queue.name))
self.thread = EnqueueThread(self.queue, self.ds, self._input_placehdrs)
self._dequeue_op = self.queue.dequeue(name='dequeue_for_reset')
def _reset_state(self):
self.thread.pause() # pause enqueue
opt = tf.RunOptions()
opt.timeout_in_ms = 2000 # 2s
sess = tf.get_default_session()
# dequeue until empty
try:
while True:
sess.run(self._dequeue_op, options=opt)
except tf.errors.DeadlineExceededError:
pass
# reset dataflow, start thread
self.thread.reset_dataflow()
self.thread.resume()
def _create_ema_callback(self):
"""
Create a hook-only callback which maintain EMA of the queue size.
Also tf.summary.scalar the EMA.
"""
with self.cached_name_scope():
# in TF there is no API to get queue capacity, so we can only summary the size
size = tf.cast(self.queue.size(), tf.float32, name='queue_size')
size_ema_op = add_moving_summary(size, collection=None)[0].op
return RunOp(
lambda: size_ema_op,
run_before=False,
run_as_trigger=False,
run_step=True)
def _get_callbacks(self):
from ..callbacks.concurrency import StartProcOrThread
cb = StartProcOrThread(self.thread)
cb.chief_only = False
return [cb, self._create_ema_callback()]
def _get_input_tensors(self):
with tf.device('/cpu:0'), self.cached_name_scope():
ret = self.queue.dequeue(name='input_deque')
if isinstance(ret, tf.Tensor): # only one input
ret = [ret]
assert len(ret) == len(self._input_placehdrs)
for qv, v in zip(ret, self._input_placehdrs):
qv.set_shape(v.get_shape())
return ret
class BatchQueueInput(QueueInput):
""" Enqueue datapoints from a DataFlow to a TF queue.
And the model receives batches formed by concatenating
dequeued tensors.
"""
def __init__(self, ds, batch_size, queue=None):
"""
Args:
ds(DataFlow): the input DataFlow.
batch_size(int): the batch size.
queue (tf.QueueBase): A :class:`tf.QueueBase` whose type
should match the corresponding InputDesc of the model.
Defaults to a FIFO queue of size 3000.
"""
super(BatchQueueInput, self).__init__(ds, queue)
self.batch_size = int(batch_size)
def _size(self):
return self.ds.size() // self.batch_size
def _setup(self, inputs):
logger.info("Setting up the queue for CPU prefetching ...")
self.input_placehdrs = [v.build_placeholder_reuse() for v in inputs]
assert len(self.input_placehdrs) > 0, \
"BatchQueueInput has to be used with some InputDesc!"
# prepare placeholders without the first dimension
placehdrs_nobatch = []
for p in self.input_placehdrs:
placehdrs_nobatch.append(tf.placeholder(
dtype=p.dtype, shape=p.get_shape().as_list()[1:],
name=get_op_tensor_name(p.name)[0] + '-nobatch'))
# dequeue_many requires fully-defined shapes
shape_err = "Use of BatchQueueInput requires inputs to have fully-defined "
"shapes except for the batch dimension"
shapes = []
for p in placehdrs_nobatch:
assert p.get_shape().is_fully_defined(), shape_err
shapes.append(p.get_shape())
with self.cached_name_scope():
if self.queue is None:
self.queue = tf.FIFOQueue(
3000, [x.dtype for x in self.input_placehdrs],
shapes=shapes,
name='input_queue')
for shp in self.queue.shapes:
assert shp.is_fully_defined(), shape_err
self.thread = EnqueueThread(self.queue, self.ds, placehdrs_nobatch)
def _get_input_tensors(self):
with tf.device('/cpu:0'), self.cached_name_scope():
ret = self.queue.dequeue_many(self.batch_size, name='input_deque')
if isinstance(ret, tf.Tensor): # only one input
ret = [ret]
assert len(ret) == len(self.input_placehdrs)
for qv, v in zip(ret, self.input_placehdrs):
shp = v.get_shape().as_list()
shp[0] = self.batch_size
qv.set_shape(shp)
return ret
# TODO tensor inputs can be drained? look at the new dataset API.
class TensorInput(FeedfreeInput):
""" Input from a list of tensors, e.g. a TF data reading pipeline.
The PTB training example shows how to use it.
"""
def __init__(self, get_tensor_fn, size=None):
"""
Args:
get_tensor_fn: a function which returns a list of input tensors
when called. It will be called under a TowerContext.
size(int): size of this input. Use None to leave it undefined.
"""
self.get_tensor_fn = get_tensor_fn
if size is not None:
size = int(size)
assert size > 0
self._fixed_size = size
def _setup(self, inputs_desc):
self._desc = inputs_desc
def _size(self):
if self._fixed_size is None:
raise NotImplementedError("size of TensorInput is undefined!")
return self._fixed_size
def _get_input_tensors(self):
with self.cached_name_scope():
ret = self.get_tensor_fn()
assert len(ret) == len(self._desc), "{} != {}".format(len(ret), len(self._desc))
return ret
class DummyConstantInput(TensorInput):
""" Input with some random tensor placed on GPU.
Useful for debugging performance issues """
def __init__(self, shapes):
"""
Args:
shapes (list[list]): a list of fully-sepcified shapes.
"""
self.shapes = shapes
logger.warn("Using dummy input for debug!")
def fn():
tlist = []
ctx = get_current_tower_context()
assert ctx is not None
assert len(self.shapes) == len(self._desc)
for idx, p in enumerate(self._desc):
tlist.append(tf.constant(
0, dtype=p.type,
name='dummy-{}-{}'.format(p.name, ctx.index),
shape=self.shapes[idx]))
return tlist
super(DummyConstantInput, self).__init__(fn)
class ZMQInput(TensorInput):
"""
Not well implemented yet. Don't use.
"""
def __init__(self, endpoint):
self._endpoint = endpoint
from tensorpack.user_ops import zmq_recv
def fn():
ret = zmq_recv(self._endpoint, [x.dtype for x in self.inputs_desc])
if isinstance(ret, tf.Tensor):
ret = [ret]
assert len(ret) == len(self.inputs_desc)
for qv, v in zip(ret, self.inputs_desc):
qv.set_shape(v.shape)
return ret
super(ZMQInput, self).__init__(fn)
def _setup(self, inputs_desc):
self.inputs_desc = inputs_desc
assert len(self.inputs_desc) > 0, \
"ZMQInput has to be used with InputDesc!"
class TFDatasetInput(FeedfreeInput):
"""
Use a :class:`tf.contrib.data.Dataset` instance as input.
Note:
In training, the dataset should be infinite (use :func:`repeat()`).
"""
def __init__(self, dataset):
"""
Args:
dataset (tf.contrib.data.Dataset):
"""
self._dataset = dataset
def _setup(self, inputs_desc):
self._desc = inputs_desc
types = self._dataset.output_types
desc_types = tuple([k.type for k in inputs_desc])
assert len(types) == len(desc_types), \
"Dataset and InputDesc has different length! {} != {}".format(
len(types), len(desc_types))
assert types == desc_types, \
"Types of dataset and InputDesc don't match! {} != {}".format(
str(types), str(desc_types))
shapes = self._dataset.output_shapes
desc_shapes = [k.shape for k in inputs_desc]
for idx, (s1, s2) in enumerate(zip(shapes, desc_shapes)):
s2 = tf.TensorShape(s2)
assert s2.is_compatible_with(s1), \
"InputDesc '{}' has incompatible shape with dataset! {} vs {}".format(
inputs_desc[idx].name, s2, s1)
self._iterator = self._dataset.make_initializable_iterator()
self._init_op = self._iterator.initializer
def _reset_state(self):
self._init_op.run()
def _get_input_tensors(self):
return self._iterator.get_next()
class StagingInput(FeedfreeInput):
"""
A wrapper around a feedfree input,
to prefetch the input in StagingArea (on GPUs).
"""
class StagingCallback(Callback):
"""
A callback registered by this input source, to make sure stage/unstage
is run at each step.
"""
def __init__(self, stage_op, unstage_op, nr_stage):
self.nr_stage = nr_stage
self.stage_op = stage_op
self.fetches = tf.train.SessionRunArgs(
fetches=[stage_op, unstage_op])
self._initialized = False
def _prefill(self):
logger.info("Pre-filling staging area ...")
for k in range(self.nr_stage):
self.stage_op.run()
def _before_run(self, ctx):
# This has to happen once, right before the first iteration.
if not self._initialized:
self._initialized = True
self._prefill()
return self.fetches
def __init__(self, input, towers, nr_stage=5):
"""
Args:
input (FeedfreeInput):
towers ([int]): list of GPU ids to prefetch on.
nr_stage: number of elements to prefetch on each GPU.
"""
assert isinstance(input, FeedfreeInput), input
self._input = input
if not isinstance(towers[0], int):
# API changed
log_deprecated("StagingInput(devices=)", "Use (towers=) instead!", "2018-01-31")
self._devices = towers
else:
self._devices = ['/gpu:{}'.format(k) for k in towers]
self._nr_stage = nr_stage
self._areas = []
self._stage_ops = []
self._unstage_ops = []
def _setup(self, inputs):
self._input.setup(inputs)
self._setup_staging_areas()
def _get_callbacks(self):
cbs = self._input.get_callbacks()
cbs.append(
StagingInput.StagingCallback(
self._get_stage_op(), self._get_unstage_op(), self._nr_stage))
return cbs
def _setup_staging_areas(self):
logger.info("Setting up StagingArea for GPU prefetching ...")
with self.cached_name_scope():
for idx, device in enumerate(self._devices):
with tf.device(device):
inputs = self._input.get_input_tensors()
dtypes = [x.dtype for x in inputs]
stage = StagingArea(dtypes, shapes=None)
self._stage_ops.append(stage.put(inputs))
self._areas.append(stage)
outputs = stage.get()
if isinstance(outputs, tf.Tensor): # when size=1, TF doesn't return a list
outputs = [outputs]
for vin, vout in zip(inputs, outputs):
vout.set_shape(vin.get_shape())
self._unstage_ops.append(outputs)
def _size(self):
return self._input.size()
def _get_input_tensors(self):
ctx = get_current_tower_context()
ret = self._unstage_ops[ctx.index]
return ret
def _get_stage_op(self):
with self.cached_name_scope():
return tf.group(*self._stage_ops)
def _get_unstage_op(self):
with self.cached_name_scope():
all_outputs = list(chain.from_iterable(self._unstage_ops))
return tf.group(*all_outputs)
StagingInputWrapper = StagingInput
| [
"[email protected]"
] | |
582971ce3a9a478be81b73546667dd8843b56322 | 97543ae8e1ad7bf3d17dd87171aaac04f6737b5f | /bibliopixel/util/server_cache.py | 6752a1a164b698f46bdec0887fe6f9a44ffab3a0 | [
"MIT"
] | permissive | dr-aryone/BiblioPixel | a3c630bf1cd5db2b014b86775d283c61565a193e | fd97e6c651a4bbcade64733847f4eec8f7704b7c | refs/heads/master | 2020-05-27T16:19:15.043592 | 2019-03-23T08:52:37 | 2019-03-25T11:10:39 | 188,698,414 | 2 | 1 | MIT | 2019-05-26T15:12:38 | 2019-05-26T15:12:37 | null | UTF-8 | Python | false | false | 3,322 | py | import errno
from . import log
class StaticCache:
SERVER_CLASS = None
SERVER_KWDS = {}
CACHE = None
@classmethod
def cache(cls):
if not cls.CACHE:
cls.CACHE = ServerCache(cls.SERVER_CLASS, **cls.SERVER_KWDS)
return cls.CACHE
@classmethod
def close_all(cls):
if cls.CACHE:
cls.CACHE.close_all()
cls.CACHE = None
class ServerCache:
"""
A class that caches servers by key so you don't keep closing and re-opening
the same server and interrupting your connection.
The exact nature of the key depends on the sort of server.
For example, for a server socket like SimPixel, it would be just a port
number, whereas for a UDP connection like Art-Net, it would be a
port, ip_address pair.
"""
def __init__(self, constructor, **kwds):
"""
:param constructor: a function which takes a key and some keywords,
and returns a new server
:param kwds: keywords to the ``constructor`` function
"""
self.servers = {}
self.constructor = constructor
self.kwds = kwds
def get_server(self, key, **kwds):
"""
Get a new or existing server for this key.
:param int key: key for the server to use
"""
kwds = dict(self.kwds, **kwds)
server = self.servers.get(key)
if server:
# Make sure it's the right server.
server.check_keywords(self.constructor, kwds)
else:
# Make a new server
server = _CachedServer(self.constructor, key, kwds)
self.servers[key] = server
return server
def close(self, key):
server = self.servers.pop(key, None)
if server:
server.server.close()
return True
def close_all(self):
for key in list(self.servers.keys()):
self.close(key)
class _CachedServer:
def __init__(self, constructor, key, kwds):
try:
self.server = constructor(key, **kwds)
except OSError as e:
if e.errno == errno.EADDRINUSE:
e.strerror += ADDRESS_IN_USE_ERROR.format(key)
e.args = (e.errno, e.strerror)
raise
self.key = key
self.constructor = constructor
self.kwds = kwds
def check_keywords(self, constructor, kwds):
if self.constructor != constructor:
raise ValueError(CACHED_SERVER_ERROR.format(
key=self.key,
new_type=str(constructor),
old_type=str(self.constructor)))
if self.kwds != kwds:
log.warning(CACHED_KWDS_WARNING.format(server=self, kwds=kwds))
def close(self):
pass
def __getattr__(self, key):
# Pass through all other attributes to the server.
return getattr(self.server, key)
ADDRESS_IN_USE_ERROR = """
Cached server {0} on your machine is already in use.
Perhaps BiblioPixel is already running on your machine?
"""
CACHED_SERVER_ERROR = """
Tried to open server of type {new_type} on {port}, but there was already
a server of type {old_type} running there.
"""
CACHED_KWDS_WARNING = """
Cached server for {server.port} had keywords {server.kwds},
but keywords {kwds} were requested.
"""
| [
"[email protected]"
] | |
131ab62769f61bb7383f1f1debef3512ce034caf | b47c136e077f5100478338280495193a8ab81801 | /Lights/adafruit-circuitpython-bundle-6.x-mpy-20210310/examples/trellism4_neopixel_toggle.py | 96f58e006b9ea62fbbd51578016af63ab64293da | [
"Apache-2.0"
] | permissive | IanSMoyes/SpiderPi | 22cd8747cc389f674cc8d95f32b4d86f9b7b2d8e | cc3469980ae87b92d0dc43c05dbd579f0fa8c4b1 | refs/heads/master | 2023-03-20T22:30:23.362137 | 2021-03-12T17:37:33 | 2021-03-12T17:37:33 | 339,555,949 | 16 | 2 | null | null | null | null | UTF-8 | Python | false | false | 1,207 | py | # SPDX-FileCopyrightText: 2021 ladyada for Adafruit Industries
# SPDX-License-Identifier: MIT
import adafruit_trellism4
trellis = adafruit_trellism4.TrellisM4Express()
def wheel(pos):
if pos < 0 or pos > 255:
return 0, 0, 0
if pos < 85:
return int(255 - pos * 3), int(pos * 3), 0
if pos < 170:
pos -= 85
return 0, int(255 - pos * 3), int(pos * 3)
pos -= 170
return int(pos * 3), 0, int(255 - (pos * 3))
led_on = []
for x in range(trellis.pixels.width):
led_on.append([])
for y in range(trellis.pixels.height):
led_on[x].append(False)
trellis.pixels.fill((0, 0, 0))
current_press = set()
while True:
pressed = set(trellis.pressed_keys)
for press in pressed - current_press:
x, y = press
if not led_on[x][y]:
print("Turning on:", press)
pixel_index = (x + (y * 8)) * 256 // 32
trellis.pixels[x, y] = wheel(pixel_index & 255)
led_on[x][y] = True
else:
print("Turning off:", press)
trellis.pixels[x, y] = (0, 0, 0)
led_on[x][y] = False
current_press = pressed
| [
"[email protected]"
] | |
81c3fe0c21b388da7fe81eb05e8d462f98493ed4 | d081f87beb90e0e3697045b9139bde67253faf4d | /capsule_em/cap_datasets/dataset_utils.py | e51817113705f395f1898dfceabc979141a42d4c | [] | no_license | hannarud/deep_learning | db9ed75c9fedd70dc3cb3935bba3947c818095ee | b5d1c91e8dcb6252e24f3ab35797ca4130381ec0 | refs/heads/master | 2020-03-28T03:21:20.849132 | 2019-05-08T08:43:23 | 2019-05-08T08:43:23 | 147,638,984 | 0 | 0 | null | 2018-09-06T08:02:52 | 2018-09-06T08:02:52 | null | UTF-8 | Python | false | false | 4,679 | 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.
# ==============================================================================
"""Contains utilities for downloading and converting datasets."""
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
import os
import sys
import tarfile
from six.moves import urllib
import tensorflow as tf
LABELS_FILENAME = 'labels.txt'
def int64_feature(values):
"""Returns a TF-Feature of int64s.
Args:
values: A scalar or list of values.
Returns:
A TF-Feature.
"""
if not isinstance(values, (tuple, list)):
values = [values]
return tf.train.Feature(int64_list=tf.train.Int64List(value=values))
def bytes_feature(values):
"""Returns a TF-Feature of bytes.
Args:
values: A string.
Returns:
A TF-Feature.
"""
return tf.train.Feature(bytes_list=tf.train.BytesList(value=[values]))
def float_feature(values):
"""Returns a TF-Feature of floats.
Args:
values: A scalar of list of values.
Returns:
A TF-Feature.
"""
if not isinstance(values, (tuple, list)):
values = [values]
return tf.train.Feature(float_list=tf.train.FloatList(value=values))
def image_to_tfexample(image_data, image_format, height, width, class_id):
return tf.train.Example(features=tf.train.Features(feature={
'image/encoded': bytes_feature(image_data),
'image/format': bytes_feature(image_format),
'image/class/label': int64_feature(class_id),
'image/height': int64_feature(height),
'image/width': int64_feature(width),
}))
def download_and_uncompress_tarball(tarball_url, dataset_dir):
"""Downloads the `tarball_url` and uncompresses it locally.
Args:
tarball_url: The URL of a tarball file.
dataset_dir: The directory where the temporary files are stored.
"""
filename = tarball_url.split('/')[-1]
filepath = os.path.join(dataset_dir, filename)
def _progress(count, block_size, total_size):
sys.stdout.write('\r>> Downloading %s %.1f%%' % (
filename, float(count * block_size) / float(total_size) * 100.0))
sys.stdout.flush()
filepath, _ = urllib.request.urlretrieve(tarball_url, filepath, _progress)
print()
statinfo = os.stat(filepath)
print('Successfully downloaded', filename, statinfo.st_size, 'bytes.')
tarfile.open(filepath, 'r:gz').extractall(dataset_dir)
def write_label_file(labels_to_class_names, dataset_dir,
filename=LABELS_FILENAME):
"""Writes a file with the list of class names.
Args:
labels_to_class_names: A map of (integer) labels to class names.
dataset_dir: The directory in which the labels file should be written.
filename: The filename where the class names are written.
"""
labels_filename = os.path.join(dataset_dir, filename)
with tf.gfile.Open(labels_filename, 'w') as f:
for label in labels_to_class_names:
class_name = labels_to_class_names[label]
f.write('%d:%s\n' % (label, class_name))
def has_labels(dataset_dir, filename=LABELS_FILENAME):
"""Specifies whether or not the dataset directory contains a label map file.
Args:
dataset_dir: The directory in which the labels file is found.
filename: The filename where the class names are written.
Returns:
`True` if the labels file exists and `False` otherwise.
"""
return tf.gfile.Exists(os.path.join(dataset_dir, filename))
def read_label_file(dataset_dir, filename=LABELS_FILENAME):
"""Reads the labels file and returns a mapping from ID to class name.
Args:
dataset_dir: The directory in which the labels file is found.
filename: The filename where the class names are written.
Returns:
A map from a label (integer) to class name.
"""
labels_filename = os.path.join(dataset_dir, filename)
with tf.gfile.Open(labels_filename, 'rb') as f:
lines = f.read().decode()
lines = lines.split('\n')
lines = filter(None, lines)
labels_to_class_names = {}
for line in lines:
index = line.index(':')
labels_to_class_names[int(line[:index])] = line[index+1:]
return labels_to_class_names | [
"[email protected]"
] | |
9a24299854d18bdf5acbd798a36d3a8c59c91c20 | 8ef8e6818c977c26d937d09b46be0d748022ea09 | /cv/super_resolution/ttvsr/pytorch/mmedit/datasets/pipelines/__init__.py | c13aa348d3e6cc61b5ca58e39f9d48692875f339 | [
"MIT",
"Apache-2.0"
] | permissive | Deep-Spark/DeepSparkHub | eb5996607e63ccd2c706789f64b3cc0070e7f8ef | 9d643e88946fc4a24f2d4d073c08b05ea693f4c5 | refs/heads/master | 2023-09-01T11:26:49.648759 | 2023-08-25T01:50:18 | 2023-08-25T01:50:18 | 534,133,249 | 7 | 6 | Apache-2.0 | 2023-03-28T02:54:59 | 2022-09-08T09:07:01 | Python | UTF-8 | Python | false | false | 2,111 | py | from .augmentation import (BinarizeImage, Flip, GenerateFrameIndices,
GenerateFrameIndiceswithPadding,
GenerateSegmentIndices, MirrorSequence, Pad,
RandomAffine, RandomJitter, RandomMaskDilation,
RandomTransposeHW, Resize, TemporalReverse)
from .compose import Compose
from .crop import (Crop, CropAroundCenter, CropAroundFg, CropAroundUnknown,
CropLike, FixedCrop, ModCrop, PairedRandomCrop)
from .formating import (Collect, FormatTrimap, GetMaskedImage, ImageToTensor,
ToTensor)
from .generate_assistant import GenerateCoordinateAndCell, GenerateHeatmap
from .loading import (GetSpatialDiscountMask, LoadImageFromFile,
LoadImageFromFileList, LoadMask, LoadPairedImageFromFile,
RandomLoadResizeBg)
from .matting_aug import (CompositeFg, GenerateSeg, GenerateSoftSeg,
GenerateTrimap, GenerateTrimapWithDistTransform,
MergeFgAndBg, PerturbBg, TransformTrimap)
from .normalization import Normalize, RescaleToZeroOne
from .random_down_sampling import RandomDownSampling
__all__ = [
'Collect', 'FormatTrimap', 'LoadImageFromFile', 'LoadMask',
'RandomLoadResizeBg', 'Compose', 'ImageToTensor', 'ToTensor',
'GetMaskedImage', 'BinarizeImage', 'Flip', 'Pad', 'RandomAffine',
'RandomJitter', 'RandomMaskDilation', 'RandomTransposeHW', 'Resize',
'Crop', 'CropAroundCenter', 'CropAroundUnknown', 'ModCrop',
'PairedRandomCrop', 'Normalize', 'RescaleToZeroOne', 'GenerateTrimap',
'MergeFgAndBg', 'CompositeFg', 'TemporalReverse', 'LoadImageFromFileList',
'GenerateFrameIndices', 'GenerateFrameIndiceswithPadding', 'FixedCrop',
'LoadPairedImageFromFile', 'GenerateSoftSeg', 'GenerateSeg', 'PerturbBg',
'CropAroundFg', 'GetSpatialDiscountMask', 'RandomDownSampling',
'GenerateTrimapWithDistTransform', 'TransformTrimap',
'GenerateCoordinateAndCell', 'GenerateSegmentIndices', 'MirrorSequence',
'CropLike', 'GenerateHeatmap'
]
| [
"[email protected]"
] | |
26130706f87e5a118dc66d2a02de049ab432949c | 5878d1482e9780a2d4cdcaf6ec5a624fa62b0283 | /cars/urls.py | 330b556f8d24123d0479fba1b76cd0118021ed6e | [] | no_license | solar1um/caarsssss | 2d5c3f466d681739a26d69f8caba0773b9e3bf06 | e7d826f8984fa90832c099ce1b4d5efb74578c5e | refs/heads/main | 2023-07-13T03:44:07.805703 | 2021-08-19T13:15:11 | 2021-08-19T13:15:11 | 398,232,307 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 683 | py | from django.conf import settings
from django.conf.urls.static import static
from django.contrib.auth import login
from django.urls import path
from .views import main_page, create_ad, all_cars, car_detail, user_cars, car_update, car_delete, search
urlpatterns = [
path('search/', search, name='search'),
path('car-delete/<int:pk>/', car_delete, name='car_delete'),
path('car-update/<int:pk>/', car_update, name='car_update'),
path('my-cars/', user_cars, name='user_cars'),
path('car/<int:pk>/', car_detail, name='car_detail'),
path('cars', all_cars, name='cars'),
path('create', create_ad, name='create_ad'),
path('', main_page, name='main_page'),
]
| [
"[email protected]"
] | |
2ce0493d54e9a48fe0d474e508f638583259cd3c | fa4e5513fc069f0b7aeed1d86b78081c05253822 | /jophiel/spiders/scrapy/contrib/memdebug.py | d4b1570b0a210936e70355383db0849da8d99b32 | [] | no_license | dreamfrog/jophiel | b0f00c62a8061030cd4a5a075cc8faf9686d44b8 | 1c51a16eca7201c0dec9bb94acd25f5a4038a862 | refs/heads/master | 2021-01-01T05:47:43.157268 | 2013-09-23T12:15:18 | 2013-09-23T12:15:18 | 3,557,963 | 0 | 1 | null | 2023-03-20T11:56:29 | 2012-02-27T06:31:50 | Python | UTF-8 | Python | false | false | 1,568 | py | """
MemoryDebugger extension
See documentation in docs/topics/extensions.rst
"""
import gc
from scrapy.xlib.pydispatch import dispatcher
from scrapy import signals
from scrapy.exceptions import NotConfigured
from scrapy.stats import stats
from scrapy.utils.trackref import live_refs
from scrapy.middleware import BaseMiddleware
from scrapy.meta import BooleanField
class MemoryDebugger(BaseMiddleware):
memdebug_enable = BooleanField(default=False)
track_refs = BooleanField(default=False)
def __init__(self, settings):
super(MemoryDebugger, self).__init__(settings)
try:
import libxml2
self.libxml2 = libxml2
except ImportError:
self.libxml2 = None
if not self.memdebug_enable.to_value():
raise NotConfigured
dispatcher.connect(self.engine_started, signals.engine_started)
dispatcher.connect(self.engine_stopped, signals.engine_stopped)
def engine_started(self):
if self.libxml2:
self.libxml2.debugMemory(1)
def engine_stopped(self):
if self.libxml2:
self.libxml2.cleanupParser()
stats.set_value('memdebug/libxml2_leaked_bytes', self.libxml2.debugMemory(1))
gc.collect()
stats.set_value('memdebug/gc_garbage_count', len(gc.garbage))
if self.track_refs.to_value():
for cls, wdict in live_refs.iteritems():
if not wdict:
continue
stats.set_value('memdebug/live_refs/%s' % cls.__name__, len(wdict))
| [
"[email protected]"
] | |
dcb88fcac088e2f235e2bfafaf887c4e4e052c50 | d420b5780e26071caa34de8bc0cfcaf431ae4dcd | /articles/pd/gencsv.py | 4de6bf7a26c26b4e6f1566f0ad547fe8d673eb83 | [
"MIT"
] | permissive | parrt/stratx | 2a09fdacd6b7a0f9b065feada1ecdfdfa0f0b513 | 97741afcead00c83dbe7fce37a42c4a4d4890a1c | refs/heads/master | 2022-04-30T13:57:50.037114 | 2022-04-24T16:55:58 | 2022-04-24T16:55:58 | 185,261,236 | 61 | 14 | MIT | 2019-10-21T21:14:14 | 2019-05-06T19:46:39 | Jupyter Notebook | UTF-8 | Python | false | false | 630 | py | # Code to gen .csv files for use with R
from articles.pd.support import *
X, y = load_bulldozer(n=10_000)
df = pd.concat([X, y], axis=1)
df.to_csv("bulldozer10k.csv", index=False)
X, y = load_bulldozer(n=20_000)
df = pd.concat([X, y], axis=1)
df.to_csv("bulldozer20k.csv", index=False)
X, y = load_rent(n=10_000)
df = pd.concat([X, y], axis=1)
df.to_csv("rent10k.csv", index=False)
df = toy_weather_data()
df.sort_values('state').to_csv("weather.csv", index=False)
X, y, df, eqn = toy_weight_data(2000)
df.to_csv("weight.csv", index=False)
df = synthetic_interaction_data(n=2000)
df.to_csv("interaction.csv", index=False)
| [
"[email protected]"
] | |
8ebd725ae76370b7b0bf9bffa31bab21e7446f39 | a2e638cd0c124254e67963bda62c21351881ee75 | /Extensions/AMWIDealTaker/FPythonCode/FClearingBusinessProcessAdaptation.py | 15a7a2b48961c3ed020da2732bd32996beaf139c | [] | no_license | webclinic017/fa-absa-py3 | 1ffa98f2bd72d541166fdaac421d3c84147a4e01 | 5e7cc7de3495145501ca53deb9efee2233ab7e1c | refs/heads/main | 2023-04-19T10:41:21.273030 | 2021-05-10T08:50:05 | 2021-05-10T08:50:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,905 | py | """------------------------------------------------------------------------
MODULE
FClearingBusinessProcessAdaptation -
DESCRIPTION:
The additionalInfos that need to be set/ trade attributes that need to be set while the business process is associated to a trade can be achieved here.
Please refer to documentation for further details
VERSION: 1.0.30
--------------------------------------------------------------------------"""
def getResultingClearingStatus(acmTrade):
"""the key of this dictionary is trade status and value is
corresponding clearing status that needs to be set for that Trade Status
The user can use the trade object sent into this function for conditional check
and deciding on the instrument type associated to the trade can return dictionary
for setting trade status
"""
tradeNClearingStatus = {'BO Confirmed': 'Agreed'}
return tradeNClearingStatus
def getClearingProcessDictionary():
"""This values in this dictionary for each workflow mentioned if match found, will be used to set the values on trade"""
#The attributes that are supported are: cHouse, acquirer, repository, cBroker, middleware
#The significance of each attribute is as follows:
#cHouse: The Clearing House to which trade would be reported for clearing purposes
#acquirer: The acquirer of this trade (could be specific on the basis of the Business Process being associated on the trade)
#repository: The repository for the trade
#cBroker: The clearing broker for the trade
#middleware: The middleware for the deal
clDict = {
'LCH.Clearnet': {'cHouse':'LCH.Clearnet','acquirer':'Credit Desk', 'middleware':'MarkitWire', 'repository':'DTCC Copper'},
'Bilateral': {'acquirer':'Swap Desk', 'cHouse':'Clearstream', 'cBroker': 'BrokerD'}
}
return clDict
| [
"[email protected]"
] | |
30d9b29184f7186d667901a02ae029dcb3cd192b | 08a4030ed3724f6d28141923fb94d76f9b4be9e4 | /sparcur/backends.py | 63fa277dfc250d642cea64f53a9e7569ac7c0a98 | [
"MIT"
] | permissive | ankap2/sparc-curation | 366f68dc2e76b9734e94603c830e236656752b7e | bf383d8babc15f41a291710393ce6e056f3d1eff | refs/heads/master | 2020-08-11T08:33:29.302380 | 2019-10-11T17:53:56 | 2019-10-11T17:53:56 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 27,412 | py | import os
from pathlib import PurePosixPath, PurePath
from datetime import datetime
import requests
from pyontutils.utils import Async, deferred
from sparcur import exceptions as exc
from sparcur.utils import log
from sparcur.core import BlackfynnId, DoiId
from sparcur.paths import RemotePath, LocalPath, Path, BlackfynnCache
from augpathlib import StatResult, PathMeta
from augpathlib.remotes import RemotePath, RemoteFactory
from sparcur.blackfynn_api import BFLocal, FakeBFLocal # FIXME there should be a better way ...
from blackfynn import Collection, DataPackage, Organization, File
from blackfynn import Dataset
from blackfynn.models import BaseNode
from ast import literal_eval
class BlackfynnRemote(RemotePath):
uri_human = BlackfynnCache.uri_human
uri_api = BlackfynnCache.uri_api
_api_class = BFLocal
_async_rate = None
@property
def errors(self):
yield from self._errors
if self.remote_in_error:
yield 'remote-error'
@property
def remote_in_error(self):
return self.state == 'ERROR'
@property
def state(self):
if not self.is_dir():
return self.bfobject.state
@staticmethod
def get_file(package, file_id):
files = package.files
if len(files) > 1:
log.critical(f'MORE THAN ONE FILE IN PACKAGE {package.id}')
for file in files:
if file.id == file_id:
return file
else:
raise FileNotFoundError(f'{package} has no file with id {file_id} but has:\n{files}')
@classmethod
def get_file_url(cls, id, file_id):
if file_id is not None:
return cls._api.get_file_url(id, file_id)
@classmethod
def get_file_by_id(cls, id, file_id):
url = cls.get_file_url(id, file_id)
yield from cls.get_file_by_url(url)
@classmethod
def get_file_by_url(cls, url):
""" NOTE THAT THE FIRST YIELD IS HEADERS """
resp = requests.get(url, stream=True)
headers = resp.headers
yield headers
log.debug(f'reading from {url}')
for chunk in resp.iter_content(chunk_size=4096): # FIXME align chunksizes between local and remote
if chunk:
yield chunk
def __init__(self, id_bfo_or_bfr, *, file_id=None, cache=None):
self._seed = id_bfo_or_bfr
self._file_id = file_id
if not [type_ for type_ in (self.__class__,
BaseNode,
str,
PathMeta)
if isinstance(self._seed, type_)]:
raise TypeError(self._seed)
if cache is not None:
self._cache_setter(cache, update_meta=False)
self._errors = []
@property
def bfobject(self):
if hasattr(self, '_bfobject'):
return self._bfobject
if isinstance(self._seed, self.__class__):
bfobject = self._seed.bfobject
elif isinstance(self._seed, BaseNode):
bfobject = self._seed
elif isinstance(self._seed, str):
bfobject = self._api.get(self._seed)
elif isinstance(self._seed, PathMeta):
bfobject = self._api.get(self._seed.id)
else:
raise TypeError(self._seed)
if hasattr(bfobject, '_json'):
# constructed from a packages query
# which we need in order for things to be fastish
self._bfobject = bfobject
return self._bfobject
if isinstance(bfobject, DataPackage):
def transfer(file, bfobject):
file.parent = bfobject.parent
file.dataset = bfobject.dataset
file.state = bfobject.state
file.package = bfobject
return file
files = bfobject.files
parent = bfobject.parent
if files:
if self._file_id is not None:
for file in files:
if file.id == self._file_id:
bfobject = transfer(file, bfobject)
elif len(files) > 1:
log.critical(f'MORE THAN ONE FILE IN PACKAGE {bfobject.id}')
if (len(set(f.size for f in files)) == 1 and
len(set(f.name for f in files)) == 1):
log.critical('Why are there multiple files with the same name and size here?')
file = files[0]
bfobject = transfer(file, bfobject)
else:
log.critical(f'There are actually multiple files ...\n{files}')
else:
file = files[0]
bfobject = transfer(file, bfobject)
bfobject.parent = parent # sometimes we will just reset a parent to itself
else:
log.warning(f'No files in package {bfobject.id}')
self._bfobject = bfobject
return self._bfobject
def is_anchor(self):
return self.anchor == self
@property
def anchor(self):
""" NOTE: this is a slight depature from the semantics in pathlib
because this returns the path representation NOT the string """
return self.organization
@property
def organization(self):
# organization is the root in this system so
# we do not want to depend on parent to look this up
# nesting organizations is file, but we need to know
# what the 'expected' root is independent of the actual root
# because if you have multiple virtual trees on top of the
# same file system then you need to know the root for
# your current tree assuming that the underlying ids
# can be reused (as in something like dat)
if not hasattr(self.__class__, '_organization'):
self.__class__._organization = self.__class__(self._api.organization)
return self._organization
def is_organization(self):
return isinstance(self.bfobject, Organization)
def is_dataset(self):
return isinstance(self.bfobject, Dataset)
@property
def dataset_id(self):
""" save a network transit if we don't need it """
dataset = self.bfobject.dataset
if isinstance(dataset, str):
return dataset
else:
return dataset.id
@property
def dataset(self):
dataset = self.bfobject.dataset
if isinstance(dataset, str):
dataset = self.organization.get_child_by_id(dataset)
self.bfobject.dataset = dataset.bfobject
else:
dataset = self.__class__(dataset)
return dataset
def get_child_by_id(self, id):
for c in self.children:
if c.id == id:
return c
@property
def from_packages(self):
return hasattr(self.bfobject, '_json')
@property
def stem(self):
name = PurePosixPath(self._name)
return name.stem
#if isinstance(self.bfobject, File) and not self.from_packages:
#return name.stem
#else:
#return name.stem
@property
def suffix(self):
# fixme loads of shoddy logic in here
name = PurePosixPath(self._name)
if isinstance(self.bfobject, File) and not self.from_packages:
return name.suffix
elif isinstance(self.bfobject, Collection):
return ''
elif isinstance(self.bfobject, Dataset):
return ''
elif isinstance(self.bfobject, Organization):
return ''
else:
raise NotImplementedError('should not be needed anymore when using packages')
if hasattr(self.bfobject, 'type'):
type = self.bfobject.type.lower() # FIXME ... can we match s3key?
else:
type = None
if type not in ('unknown', 'unsupported', 'generic', 'genericdata'):
pass
elif hasattr(self.bfobject, 'properties'):
for p in self.bfobject.properties:
if p.key == 'subtype':
type = p.value.replace(' ', '').lower()
break
return ('.' + type) if type is not None else ''
@property
def _name(self):
name = self.bfobject.name
if isinstance(self.bfobject, File) and not self.from_packages:
realname = os.path.basename(self.bfobject.s3_key)
if name != realname: # mega weirdness
if realname.startswith(name):
name = realname
else:
realpath = PurePath(realname)
namepath = PurePath(name)
if namepath.suffixes:
log.critical('sigh {namepath!r} -?-> {realpath!r}')
else:
path = namepath
for suffix in realpath.suffixes:
path = path.with_suffix(suffix)
old_name = name
name = path.as_posix()
log.info(f'name {old_name} -> {name}')
if '/' in name:
bads = ','.join(f'{i}' for i, c in enumerate(name) if c == '/')
self._errors.append(f'slashes {bads}')
log.critical(f'GO AWAY {self}')
name = name.replace('/', '_')
self.bfobject.name = name # AND DON'T BOTHER US AGAIN
return name
@property
def name(self):
if isinstance(self.bfobject, File) and self.from_packages:
return self.bfobject.filename
else:
return self.stem + self.suffix
@property
def id(self):
if isinstance(self._seed, self.__class__):
id = self._seed.bfobject.id
elif isinstance(self._seed, BaseNode):
if isinstance(self._seed, File):
id = self._seed.pkg_id
else:
id = self._seed.id
elif isinstance(self._seed, str):
id = self._seed
elif isinstance(self._seed, PathMeta):
id = self._seed.id
else:
raise TypeError(self._seed)
return BlackfynnId(id)
@property
def doi(self):
blob = self.bfobject.doi
print(blob)
if blob:
return DoiId(blob['doi'])
@property
def size(self):
if isinstance(self.bfobject, File):
return self.bfobject.size
@property
def created(self):
if not isinstance(self.bfobject, Organization):
return self.bfobject.created_at
@property
def updated(self):
if not isinstance(self.bfobject, Organization):
return self.bfobject.updated_at
@property
def file_id(self):
if isinstance(self.bfobject, File):
return self.bfobject.id
@property
def old_id(self):
return None
def exists(self):
try:
bfo = self.bfobject
if not isinstance(bfo, BaseNode):
_cache = bfo.refresh(force=True)
bf = _cache.remote.bfo
return bfo.exists
except exn.NoRemoteFileWithThatIdError as e:
return False
def is_dir(self):
bfo = self.bfobject
return not isinstance(bfo, File) and not isinstance(bfo, DataPackage)
def is_file(self):
bfo = self.bfobject
return (isinstance(bfo, File) or
isinstance(bfo, DataPackage) and
(hasattr(bfo, 'fake_files') and bfo.fake_files
or
not hasattr(bfo, '_json') and
not (not log.warning('going to network for files') and self._has_remote_files())
# massively inefficient but probably shouldn't get here?
))
def _has_remote_files(self):
""" this will fetch """
bfobject = self.bfobject
if not isinstance(bfobject, DataPackage):
return False
files = bfobject.files
if not files:
return False
if len(files) > 1:
log.critical(f'{self} has more than one file! Not switching bfobject!')
return True
file, = files
file.parent = bfobject.parent
file.dataset = bfobject.dataset
file.package = bfobject
self._bfobject = file
return True
@property
def checksum(self): # FIXME using a property is inconsistent with LocalPath
if hasattr(self.bfobject, 'checksum'):
checksum = self.bfobject.checksum
if checksum and '-' not in checksum:
return bytes.fromhex(checksum)
@property
def etag(self):
""" NOTE returns checksum, count since it is an etag"""
# FIXME rename to etag in the event that we get proper checksumming ??
if hasattr(self.bfobject, 'checksum'):
checksum = self.bfobject.checksum
if checksum and '-' in checksum:
log.debug(checksum)
if isinstance(checksum, str):
checksum, strcount = checksum.rsplit('-', 1)
count = int(strcount)
#if checksum[-2] == '-': # these are 34 long, i assume the -1 is a check byte?
#return bytes.fromhex(checksum[:-2])
return bytes.fromhex(checksum), count
@property
def chunksize(self):
if hasattr(self.bfobject, 'chunksize'):
return self.bfobject.chunksize
@property
def owner_id(self):
if not isinstance(self.bfobject, Organization):
# This seems like an oversight ...
return self.bfobject.owner_id
@property
def parent(self):
if isinstance(self.bfobject, Organization):
return None
elif isinstance(self.bfobject, Dataset):
return self.organization
#parent = self.bfobject._api._context
else:
parent = self.bfobject.parent
if parent is None:
parent = self.bfobject.dataset
if False and isinstance(parent, str):
if parent in self.helper_index:
return self.helper_index[parent]
else:
raise TypeError('grrrrrrrrrrrrrrr')
if parent:
parent_cache = self.cache.parent if self.cache is not None else None
return self.__class__(parent, cache=parent_cache)
@property
def children(self):
if isinstance(self.bfobject, File):
return
elif isinstance(self.bfobject, DataPackage):
return # we conflate data packages and files
elif isinstance(self.bfobject, Organization):
for dataset in self.bfobject.datasets:
child = self.__class__(dataset)
self.cache / child # construction will cause registration without needing to assign
assert child.cache
yield child
else:
for bfobject in self.bfobject:
child = self.__class__(bfobject)
self.cache / child # construction will cause registration without needing to assign
assert child.cache
yield child
@property
def rchildren(self):
yield from self._rchildren()
def _rchildren(self, create_cache=True):
if isinstance(self.bfobject, File):
return
elif isinstance(self.bfobject, DataPackage):
return # should we return files inside packages? are they 1:1?
elif any(isinstance(self.bfobject, t) for t in (Organization, Collection)):
for child in self.children:
yield child
yield from child.rchildren
elif isinstance(self.bfobject, Dataset):
for bfobject in self.bfobject.packages:
child = self.__class__(bfobject)
if child.is_dir() or child.is_file():
if child.is_file():
cid = child.id
existing = [c for c in self.cache.local.children
if (c.is_file() and c.cache or c.is_broken_symlink())
and c.cache.id == cid]
if existing:
unmatched = [e for e in existing if child.name != e.name]
if unmatched:
log.debug(f'skipping {child.name} becuase a file with that '
f'id already exists {unmatched}')
continue
if create_cache:
# FIXME I don't think existing detection is working
# correctly here so this get's triggered incorrectly?
self.cache / child # construction will cause registration without needing to assign
assert child.cache is not None
yield child
else:
# probably a package that has files
log.debug(f'skipping {child} becuase it is neither a directory nor a file')
else:
raise exc.UnhandledTypeError # TODO
def children_pull(self, existing_caches=tuple(), only=tuple(), skip=tuple()):
# FIXME this is really a recursive pull for organization level only ...
sname = lambda gen: sorted(gen, key=lambda c: c.name)
def refresh(c):
updated = c.meta.updated
newc = c.refresh()
if newc is None:
return
nupdated = newc.meta.updated
if nupdated != updated:
return newc
existing = sname(existing_caches)
if not self._debug:
skipexisting = {e.id:e for e in
Async(rate=self._async_rate)(deferred(refresh)(e) for e in existing)
if e is not None}
else: # debug ...
skipexisting = {e.id:e for e in
(refresh(e) for e in existing)
if e is not None}
# FIXME
# in theory the remote could change betwee these two loops
# since we currently cannot do a single atomic pull for
# a set of remotes and have them refresh existing files
# in one shot
if not self._debug:
yield from (rc for d in Async(rate=self._async_rate)(
deferred(child.bootstrap)(recursive=True, only=only, skip=skip)
for child in sname(self.children)
#if child.id in skipexisting
# TODO when dataset's have a 'anything in me updated'
# field then we can use that to skip things that haven't
# changed (hello git ...)
) for rc in d)
else: # debug
yield from (rc for d in (
child.bootstrap(recursive=True, only=only, skip=skip)
for child in sname(self.children))
#if child.id in skipexisting
# TODO when dataset's have a 'anything in me updated'
# field then we can use that to skip things that haven't
# changed (hello git ...)
for rc in d)
def isinstance_bf(self, *types):
return [t for t in types if isinstance(self.bfobject, t)]
def refresh(self, update_cache=False, update_data=False,
update_data_on_cache=False, size_limit_mb=2, force=False):
""" use force if you have a file from packages """
try:
old_meta = self.meta
except exc.NoMetadataRetrievedError as e:
log.error(f'{e}\nYou will need to individually refresh {self.local}')
return
except exc.NoRemoteFileWithThatIdError as e:
log.exception(e)
return
if self.is_file() and not force: # this will tigger a fetch
pass
else:
#self._bfo0 = self._bfobject
self._bfobject = self._api.get(self.id)
#self._bfo1 = self._bfobject
self.is_file() # trigger fetching file in the no file_id case
#self._bfo2 = self._bfobject
if update_cache or update_data:
file_is_different = self.update_cache()
update_existing = file_is_different and self.cache.exists()
udoc = update_data_on_cache and file_is_different
if update_existing or udoc:
size_limit_mb = None
update_data = update_data or update_existing or udoc
if update_data and self.is_file():
self.cache.fetch(size_limit_mb=size_limit_mb)
return self.cache # when a cache calls refresh it needs to know if it no longer exists
def update_cache(self):
log.debug(f'maybe updating cache for {self.name}')
file_is_different = self.cache._meta_updater(self.meta)
# update the cache first
# then move to the new name if relevant
# prevents moving partial metadata onto existing files
if self.cache.name != self.name: # this is localy correct
# the issue is that move is now smarter
# and will detect if a parent path has changed
try:
self.cache.move(remote=self)
except exc.WhyDidntThisGetMovedBeforeError as e:
# AAAAAAAAAAAAAAAAAAAAAAAAAAAAA
# deal with the sadness that is non-unique filenames
# I am 99.999999999999999% certain that users do not
# expect this behavior ...
log.error(e)
if self.bfobject.package.name != self.bfobject.name:
argh = self.bfobject.name
self.bfobject.name = self.bfobject.package.name
try:
log.critical(f'Non unique filename :( '
f'{self.cache.name} -> {argh} -> {self.bfobject.name}')
self.cache.move(remote=self)
finally:
self.bfobject.name = argh
else:
raise e
return file_is_different
@property
def data(self):
if isinstance(self.bfobject, DataPackage):
files = list(self.bfobject.files)
if len(files) > 1:
raise BaseException('TODO too many files')
file = files[0]
elif isinstance(self.bfobject, File):
file = self.bfobject
else:
return
gen = self.get_file_by_url(file.url)
self.data_headers = next(gen)
yield from gen
@data.setter
def data(self):
if hasattr(self, '_seed'):
# upload the new file
# delete the old file
# or move to .trash self._api.bf.move(target, self.id)
# where target is the bfobject for .trash
raise NotImplementedError('TODO')
else: # doesn't exist yet
# see https://github.com/HumanCellAtlas/dcp-cli/pull/252
# for many useful references
raise NotImplementedError('TODO')
def __truediv__(self, other): # XXX
""" this is probably the we want to use for this at all
it is kept around as a reminder NOT to do this
however might revisit this at some point if we want
to explore translating remote semantics to file system
on the RemotePath class ... """
# probably better to work from the cache class
# since it is the one that knows that the file doesn't
# exist at the remote and can provide a way to move data
# to the remote using copy_to or something like that
children = list(self.children)
names = {c.name:c for c in children}
opath = PurePath(other)
if len(opath.parts) > 1:
# FIXME ... handle/paths/like/this
raise NotImplementedError('TODO')
else:
if other in names:
return names[other]
else: # create an empty
child = object.__new__(self.__class__)
child._parent = self
class TempBFObject:
name = other
child._bfobject = TempBFObject()
return child
def _mkdir_child(self, child_name):
""" direct children only for this, call in recursion for multi """
if self.is_organization():
bfobject = self._api.bf.create_dataset(child_name)
elif self.is_dir(): # all other possible dirs are already handled
bfobject = self.bfobject.create_collection(child_name)
else:
raise exc.NotADirectoryError(f'{self}')
return bfobject
def mkdir(self, parents=False): # XXX
# same issue as with __rtruediv__
if hasattr(self, '_seed'):
raise exc.PathExistsError(f'remote already exists {self}')
bfobject = self._parent._mkdir_child(self.name)
self._seed = bfobject
self._bfobject = bfobject
@property
def meta(self):
return PathMeta(size=self.size,
created=self.created,
updated=self.updated,
checksum=self.checksum,
etag=self.etag,
chunksize=self.chunksize,
id=self.id,
file_id=self.file_id,
old_id=None,
gid=None, # needed to determine local writability
user_id=self.owner_id,
mode=None,
errors=self.errors)
def __eq__(self, other):
return self.id == other.id and self.file_id == other.file_id
#return self.bfobject == other.bfobject
def __hash__(self):
return hash((self.__class__, self.id))
def __repr__(self):
file_id = f', file_id={self.file_id}' if self.file_id else ''
return f'{self.__class__.__name__}({self.id!r}{file_id})'
class BlackfynnRemoteFactory(RemoteFactory, BlackfynnRemote): # XXX soon to be deprecated
# FIXME helper index should try to cooperate with the packages index?
def __new__(cls, cache_anchor, local_class):
if isinstance(cache_anchor, BlackfynnCache):
try:
blackfynn_local_instance = BFLocal(cache_anchor.id)
except (requests.exceptions.ConnectionError, exc.MissingSecretError) as e:
log.critical(f'Could not connect to blackfynn {e!r}')
#blackfynn_local_instance = FakeBFLocal(anchor.id, anchor) # WARNING polutes things!
blackfynn_local_instance = 'CONNECTION ERROR'
else:
raise TypeError(f'{type(cache_anchor)} is not BFLocal or BlackfynnCache!')
cache_class = cache_anchor.__class__
self = super().__new__(cls, local_class, cache_class, _api=blackfynn_local_instance)
cls._cache_anchor = cache_anchor
self._errors = []
self.root = self._api.root
return self
| [
"[email protected]"
] | |
5b7fde37c03368ce9cd12fd8b7638884e0891f63 | 987a68b9c196f39ba1810a2261cd4a08c35416a3 | /DynamicProgramming/343-integer-break.py | 5e3e2720b0fc1d758103f49e3a9a3171172eee0d | [] | no_license | xizhang77/LeetCode | c26e4699fbe1f2d2c4706b2e5ee82131be066ee5 | ce68f5af57f772185211f4e81952d0345a6d23cb | refs/heads/master | 2021-06-05T15:33:22.318833 | 2019-11-19T06:53:24 | 2019-11-19T06:53:24 | 135,076,199 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 990 | py | # -*- coding: utf-8 -*-
'''
Given a positive integer n, break it into the sum of at least two positive integers and maximize the product of those integers. Return the maximum product you can get.
Example 1:
Input: 2
Output: 1
Explanation: 2 = 1 + 1, 1 × 1 = 1.
Example 2:
Input: 10
Output: 36
Explanation: 10 = 3 + 3 + 4, 3 × 3 × 4 = 36.
Note: You may assume that n is not less than 2 and not larger than 58.
'''
# Solution 1: DP
# Time: O(n^2); Space: O(n)
class Solution(object):
def integerBreak(self, n):
"""
:type n: int
:rtype: int
"""
ans = [1, 1]
for num in range(3, n+2):
i, j = 0, len(ans) - 1
temp = num - 1
while i <= j:
temp = max( temp, ans[i]*ans[j], (i+1)*(j+1), (i+1)*ans[j], (j+1)*ans[i] )
i += 1
j -= 1
ans.append(temp)
return ans[n-1]
# Solution 2: Math & Recursive
# Time & Space: at most O(n) | [
"[email protected]"
] | |
092024187dc7bb38f56d29f6ee511ec6fdf2b1cc | 69da803ffcba97b079bce6f8e3a73903b0a7e5b5 | /jasmine_zinc/__init__.py | 43c7edec784605cc93d009303383088623dfbd03 | [
"MIT"
] | permissive | aoirint/jasmine_zinc | 612c3efcca199ef3e26af0a84af3fdf8744e6479 | d70fbdbc0273015e73962be4239be0a7cbdd2bd4 | refs/heads/main | 2023-07-17T16:59:15.914680 | 2021-09-03T00:55:56 | 2021-09-03T00:55:56 | 402,569,583 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 488 | py | __VERSION__ = '20210903.14'
from .Avatar import (
Avatar,
dict2avatar,
)
from .get_avatars import (
get_avatars,
)
from .Talk import (
Talk,
TalkEffects,
TalkEmotions,
talk2dict,
)
from .talk_on_server import (
talk_on_server,
TalkOnServerResponse,
)
from .record_talk import (
record_talk,
RecordTalkResponse,
)
from .add_talk_arguments import (
add_talk_arguments,
add_talk_arguments_effects,
add_talk_arguments_emotions,
)
| [
"[email protected]"
] | |
eff8f8643d4b57a7e031e552085f7c818008c9cb | 09e57dd1374713f06b70d7b37a580130d9bbab0d | /benchmark/startQiskit_QC1688.py | 76f588bacee542205822753e644a580d1e04d3e7 | [
"BSD-3-Clause"
] | permissive | UCLA-SEAL/QDiff | ad53650034897abb5941e74539e3aee8edb600ab | d968cbc47fe926b7f88b4adf10490f1edd6f8819 | refs/heads/main | 2023-08-05T04:52:24.961998 | 2021-09-19T02:56:16 | 2021-09-19T02:56:16 | 405,159,939 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,768 | py | # qubit number=5
# total number=59
import cirq
import qiskit
from qiskit import IBMQ
from qiskit.providers.ibmq import least_busy
from qiskit import QuantumCircuit, QuantumRegister, ClassicalRegister
from qiskit import BasicAer, execute, transpile
from pprint import pprint
from qiskit.test.mock import FakeVigo
from math import log2,floor, sqrt, pi
import numpy as np
import networkx as nx
def build_oracle(n: int, f) -> QuantumCircuit:
# implement the oracle O_f^\pm
# NOTE: use U1 gate (P gate) with \lambda = 180 ==> CZ gate
# or multi_control_Z_gate (issue #127)
controls = QuantumRegister(n, "ofc")
oracle = QuantumCircuit(controls, name="Zf")
for i in range(2 ** n):
rep = np.binary_repr(i, n)
if f(rep) == "1":
for j in range(n):
if rep[j] == "0":
oracle.x(controls[j])
# oracle.h(controls[n])
if n >= 2:
oracle.mcu1(pi, controls[1:], controls[0])
for j in range(n):
if rep[j] == "0":
oracle.x(controls[j])
# oracle.barrier()
return oracle
def make_circuit(n:int,f) -> QuantumCircuit:
# circuit begin
input_qubit = QuantumRegister(n,"qc")
classical = ClassicalRegister(n, "qm")
prog = QuantumCircuit(input_qubit, classical)
prog.h(input_qubit[0]) # number=3
prog.h(input_qubit[1]) # number=4
prog.h(input_qubit[2]) # number=5
prog.h(input_qubit[3]) # number=6
prog.h(input_qubit[4]) # number=21
prog.h(input_qubit[0]) # number=43
prog.cz(input_qubit[4],input_qubit[0]) # number=44
prog.h(input_qubit[0]) # number=45
prog.cx(input_qubit[4],input_qubit[0]) # number=46
prog.z(input_qubit[4]) # number=47
prog.cx(input_qubit[4],input_qubit[0]) # number=48
prog.h(input_qubit[0]) # number=37
prog.cz(input_qubit[4],input_qubit[0]) # number=38
prog.h(input_qubit[0]) # number=39
Zf = build_oracle(n, f)
repeat = floor(sqrt(2 ** n) * pi / 4)
for i in range(repeat):
prog.append(Zf.to_gate(), [input_qubit[i] for i in range(n)])
prog.h(input_qubit[0]) # number=1
prog.rx(-1.0430087609918113,input_qubit[4]) # number=36
prog.h(input_qubit[1]) # number=2
prog.h(input_qubit[2]) # number=7
prog.h(input_qubit[3]) # number=8
prog.h(input_qubit[0]) # number=56
prog.cz(input_qubit[1],input_qubit[0]) # number=57
prog.h(input_qubit[0]) # number=58
prog.cx(input_qubit[1],input_qubit[0]) # number=52
prog.x(input_qubit[0]) # number=53
prog.cx(input_qubit[1],input_qubit[0]) # number=54
prog.h(input_qubit[0]) # number=49
prog.cz(input_qubit[1],input_qubit[0]) # number=50
prog.h(input_qubit[0]) # number=51
prog.x(input_qubit[1]) # number=10
prog.rx(-0.06597344572538572,input_qubit[3]) # number=27
prog.cx(input_qubit[0],input_qubit[2]) # number=22
prog.x(input_qubit[2]) # number=23
prog.h(input_qubit[2]) # number=28
prog.cz(input_qubit[0],input_qubit[2]) # number=29
prog.h(input_qubit[2]) # number=30
prog.x(input_qubit[3]) # number=12
if n>=2:
prog.mcu1(pi,input_qubit[1:],input_qubit[0])
prog.x(input_qubit[0]) # number=13
prog.x(input_qubit[1]) # number=14
prog.x(input_qubit[2]) # number=15
prog.x(input_qubit[3]) # number=16
prog.h(input_qubit[4]) # number=35
prog.h(input_qubit[0]) # number=17
prog.rx(2.4912829742967055,input_qubit[2]) # number=26
prog.h(input_qubit[1]) # number=18
prog.h(input_qubit[2]) # number=19
prog.h(input_qubit[2]) # number=55
prog.h(input_qubit[2]) # number=25
prog.h(input_qubit[3]) # number=20
# circuit end
for i in range(n):
prog.measure(input_qubit[i], classical[i])
return prog
if __name__ == '__main__':
key = "00000"
f = lambda rep: str(int(rep == key))
prog = make_circuit(5,f)
IBMQ.load_account()
provider = IBMQ.get_provider(hub='ibm-q')
provider.backends()
backend = least_busy(provider.backends(filters=lambda x: x.configuration().n_qubits >= 2 and not x.configuration().simulator and x.status().operational == True))
sample_shot =7924
info = execute(prog, backend=backend, shots=sample_shot).result().get_counts()
backend = FakeVigo()
circuit1 = transpile(prog,backend,optimization_level=2)
writefile = open("../data/startQiskit_QC1688.csv","w")
print(info,file=writefile)
print("results end", file=writefile)
print(circuit1.depth(),file=writefile)
print(circuit1,file=writefile)
writefile.close()
| [
"[email protected]"
] | |
9ec9f95899aec565605da89f2d4e864571d320d9 | d554b1aa8b70fddf81da8988b4aaa43788fede88 | /5 - Notebooks e Data/1 - Análises numéricas/Arquivos David/Atualizados/logDicas-master/data/2019-1/223/users/3113/codes/1679_1100.py | a55b3972ba6f87e44e9892302818bd9371515644 | [] | no_license | JosephLevinthal/Research-projects | a3bc3ca3b09faad16f5cce5949a2279cf14742ba | 60d5fd6eb864a5181f4321e7a992812f3c2139f9 | refs/heads/master | 2022-07-31T06:43:02.686109 | 2020-05-23T00:24:26 | 2020-05-23T00:24:26 | 266,199,309 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 416 | py | # Teste seu código aos poucos.
# Não teste tudo no final, pois fica mais difícil de identificar erros.
# Ao testar sua solução, não se limite ao caso de exemplo.
X=int(input(""))
print("Entrada:",X)
if(X==2):
Y="Tartaruga"
elif(X==5):
Y="Garca"
elif(X==10):
Y="Arara"
elif(X==20):
Y="Mico-leao-dourado"
elif(X==50):
Y="Onca-pintada"
elif(X==100):
Y="Garoupa"
else:
Y="Invalido"
print("Animal:",Y)
| [
"[email protected]"
] | |
b9464a2e0ee57271ea62fdd620998eaf44debd29 | 10d98fecb882d4c84595364f715f4e8b8309a66f | /covid_epidemiology/src/models/shared/output_utils.py | 774adb21cb78d9ee754464ef2a9691cbcce537a1 | [
"CC-BY-4.0",
"Apache-2.0"
] | permissive | afcarl/google-research | 51c7b70d176c0d70a5ee31ea1d87590f3d6c6f42 | 320a49f768cea27200044c0d12f394aa6c795feb | refs/heads/master | 2021-12-02T18:36:03.760434 | 2021-09-30T20:59:01 | 2021-09-30T21:07:02 | 156,725,548 | 1 | 0 | Apache-2.0 | 2018-11-08T15:13:53 | 2018-11-08T15:13:52 | null | UTF-8 | Python | false | false | 4,592 | py | # coding=utf-8
# Copyright 2021 The Google Research Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
"""Utilities for dealing with model output including Tensorboard."""
import json
import logging
import os
import random
import time
from dataclasses import dataclass
from google import api_core
from google.cloud import storage
from covid_epidemiology.src import constants
@dataclass
class TensorboardConfig:
"""Class for holding Tensorboard configuration information."""
mode: str
gcs_directory: str = 'unknown_experiment/unknown_run'
gcs_bucket_name: str = constants.TENSORBOARD_BUCKET
local_directory: str = constants.TENSORBOARD_LOCAL_DIR
log_iterations: int = constants.TENSORBOARD_LOG_ITERATIONS
# The profiler only avilable in TensorFlow >= 2.2
use_profiler: bool = True
profiler_start: int = 10
profiler_end: int = 15
def bucket(self, project=None):
client = storage.Client(project)
return client.bucket(self.gcs_bucket_name)
@property
def log_location(self):
return self.local_directory if self.mode == 'LOCAL' else self.gcs_url
@property
def enabled(self):
return self.mode != constants.TENSORBOARD_OFF
@property
def gcs_url(self):
return os.path.join(
'gs://',
self.gcs_bucket_name,
self.gcs_directory,
)
def upload_local_directory_to_gcs(local_directory, bucket,
gcs_path):
"""Uploads all files in a directory to GCS recursively.
Args:
local_directory: The base directory.
bucket: The GCS bucket object to upload the data
gcs_path: The base "directory" to upload the files to.
"""
for entry in os.scandir(local_directory,):
local_path = entry.path
local_subdir = local_path[1 + len(local_directory):]
if entry.is_file():
remote_path = os.path.join(gcs_path, local_subdir)
blob = bucket.blob(remote_path)
blob.upload_from_filename(local_path)
elif entry.is_dir():
upload_local_directory_to_gcs(local_path, bucket,
os.path.join(gcs_path, local_subdir))
def write_tensorboard_metadata(tensorboard_config,
output_filename):
"""Writes the metadata for tensorboard if it is enabled."""
if tensorboard_config.enabled:
if tensorboard_config.mode == 'LOCAL':
upload_local_directory_to_gcs(
tensorboard_config.local_directory,
tensorboard_config.bucket(),
tensorboard_config.gcs_directory,
)
# This only works with a GCS path. It does not work with a local path.
metadata = {
'outputs': [{
'type': 'tensorboard',
'source': tensorboard_config.gcs_url,
}]
}
with open(output_filename, 'w') as f:
json.dump(metadata, f)
def upload_string_to_gcs(
output_data,
output_bucket,
output_filename,
gcs_client = None,
num_retries = 5,
base_retry_delay = 4.0,
max_retry_delay = 120,
):
"""Uploads a string to GCS with retries.
Retries using exponential backoff with full jitter when a handled exception is
thrown.
Args:
output_data: The string to be uploaded.
output_bucket: The bucket where the string will be uploaded.
output_filename: The file's name.
gcs_client: The storage client for the project.
num_retries: The maximum number of retries
base_retry_delay: The maximum initial time to wait before retrying.
max_retry_delay: The maximum total time to wait before retrying.
"""
if gcs_client is None:
gcs_client = storage.Client(project=constants.PROJECT_ID_MODEL_TRAINING)
for retry in range(num_retries + 1):
try:
output_bucket = gcs_client.get_bucket(output_bucket)
output_blob = output_bucket.blob(output_filename)
output_blob.upload_from_string(output_data)
break
except api_core.exceptions.Forbidden as e:
if retry >= num_retries:
raise
logging.warning('Retrying GCS upload: %s', e)
time.sleep(
random.uniform(0, min(max_retry_delay, base_retry_delay * 2**retry)))
| [
"[email protected]"
] | |
41c598c7131b453e6ff11fbb7c4216da4a3bad8b | 73758dde83d1a1823c103e1a4ba71e7c95168f71 | /nsd2008/py01/day05/login.py | 41b2a5b3856835bdf645d86b39c1113f9812d3e2 | [] | no_license | tonggh220/md_5_nsd_notes | 07ffdee7c23963a7a461f2a2340143b0e97bd9e1 | a58a021ad4c7fbdf7df327424dc518f4044c5116 | refs/heads/master | 2023-07-02T01:34:38.798929 | 2021-05-12T08:48:40 | 2021-05-12T08:48:40 | 393,885,415 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,094 | py | import getpass
userdb = {}
def register():
'用于新用户注册'
user = input("username: ").strip()
if user == "":
print("用户名不能为空")
elif user in userdb:
print("用户已存在")
else:
password = input("password: ")
userdb[user] = password
print("注册成功")
def login():
'用于登陆'
user = input("username: ").strip()
passwd = getpass.getpass("password: ")
# if (user in userdb) and (userdb[user] == passwd):
if userdb.get(user) == passwd:
print("登陆成功")
else:
print("登陆失败")
def show_menu():
'程序主体,实现代码逻辑'
funcs = {'0': register, '1': login}
prompt = """(0) 注册
(1) 登陆
(2) 退出
请选择(0/1/2): """
while 1:
choice = input(prompt).strip()
if choice not in ['0', '1', '2']:
print("无效的输入,请重试。")
continue
if choice == '2':
print('Bye-bye')
break
funcs[choice]()
if __name__ == '__main__':
show_menu()
| [
"[email protected]"
] | |
597e3fae0245c167c66c0802ad2ab108945c5cad | 18d55703fe368ddeb568833cecf4138d2dab2b5c | /faqs/migrations/0002_auto_20190227_1937.py | 90b461793cb76881c19cd2530bedda3409bfd6d1 | [] | no_license | Rood17/CAWebApp | b660f5d0c01cb2c37f274b9d310922058150c2ec | de5f06c571782d68d8ca9afced8d7c70408ada99 | refs/heads/master | 2022-11-24T22:27:14.088809 | 2019-08-07T23:23:25 | 2019-08-07T23:23:25 | 188,956,728 | 0 | 0 | null | 2022-11-22T02:57:00 | 2019-05-28T04:58:37 | HTML | UTF-8 | Python | false | false | 1,078 | py | # Generated by Django 2.0.2 on 2019-02-28 01:37
import ckeditor.fields
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('faqs', '0001_initial'),
]
operations = [
migrations.CreateModel(
name='faqs',
fields=[
('id_faqs', models.AutoField(primary_key=True, serialize=False)),
('pregunta', ckeditor.fields.RichTextField(max_length=8000, verbose_name='Información')),
('respuesta', ckeditor.fields.RichTextField(max_length=8000, verbose_name='Información')),
('created', models.DateField(auto_now_add=True, verbose_name='Fecha de Creación')),
('updated', models.DateTimeField(auto_now=True, verbose_name='Fecha de Edición')),
],
options={
'verbose_name': 'faq',
'verbose_name_plural': 'Faqs',
'ordering': ['-created'],
},
),
migrations.DeleteModel(
name='about',
),
]
| [
"[email protected]"
] | |
4a2998c954284363974f561d17c0b99493284a37 | d7a68c636e6128533b17975655bd6b46ed222916 | /adapter-transformers-adapters3.1.0/src/transformers/models/layoutlmv3/feature_extraction_layoutlmv3.py | 6f2d54529ba9718906fe5d9b0ced7019634bd8f6 | [
"Apache-2.0"
] | permissive | cambridgeltl/autopeft | 69179f8faf2cc4d2164ff78e544dc3fe2d39c331 | d8ad6bea93aa413a54d0e09fe25bdd62b46cfcf5 | refs/heads/main | 2023-05-23T09:21:59.912941 | 2023-04-25T14:35:31 | 2023-04-25T14:35:31 | 594,316,585 | 26 | 4 | Apache-2.0 | 2023-04-25T14:35:32 | 2023-01-28T06:39:25 | Python | UTF-8 | Python | false | false | 10,636 | py | # coding=utf-8
# Copyright 2022 The HuggingFace Inc. team.
#
# 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.
"""
Feature extractor class for LayoutLMv3.
"""
from typing import List, Optional, Union
import numpy as np
from PIL import Image
from ...feature_extraction_utils import BatchFeature, FeatureExtractionMixin
from ...image_utils import IMAGENET_STANDARD_MEAN, IMAGENET_STANDARD_STD, ImageFeatureExtractionMixin, is_torch_tensor
from ...utils import TensorType, is_pytesseract_available, logging, requires_backends
# soft dependency
if is_pytesseract_available():
import pytesseract
logger = logging.get_logger(__name__)
ImageInput = Union[
Image.Image, np.ndarray, "torch.Tensor", List[Image.Image], List[np.ndarray], List["torch.Tensor"] # noqa
]
def normalize_box(box, width, height):
return [
int(1000 * (box[0] / width)),
int(1000 * (box[1] / height)),
int(1000 * (box[2] / width)),
int(1000 * (box[3] / height)),
]
def apply_tesseract(image: Image.Image, lang: Optional[str]):
"""Applies Tesseract OCR on a document image, and returns recognized words + normalized bounding boxes."""
# apply OCR
data = pytesseract.image_to_data(image, lang=lang, output_type="dict")
words, left, top, width, height = data["text"], data["left"], data["top"], data["width"], data["height"]
# filter empty words and corresponding coordinates
irrelevant_indices = [idx for idx, word in enumerate(words) if not word.strip()]
words = [word for idx, word in enumerate(words) if idx not in irrelevant_indices]
left = [coord for idx, coord in enumerate(left) if idx not in irrelevant_indices]
top = [coord for idx, coord in enumerate(top) if idx not in irrelevant_indices]
width = [coord for idx, coord in enumerate(width) if idx not in irrelevant_indices]
height = [coord for idx, coord in enumerate(height) if idx not in irrelevant_indices]
# turn coordinates into (left, top, left+width, top+height) format
actual_boxes = []
for x, y, w, h in zip(left, top, width, height):
actual_box = [x, y, x + w, y + h]
actual_boxes.append(actual_box)
image_width, image_height = image.size
# finally, normalize the bounding boxes
normalized_boxes = []
for box in actual_boxes:
normalized_boxes.append(normalize_box(box, image_width, image_height))
assert len(words) == len(normalized_boxes), "Not as many words as there are bounding boxes"
return words, normalized_boxes
class LayoutLMv3FeatureExtractor(FeatureExtractionMixin, ImageFeatureExtractionMixin):
r"""
Constructs a LayoutLMv3 feature extractor. This can be used to resize + normalize document images, as well as to
apply OCR on them in order to get a list of words and normalized bounding boxes.
This feature extractor inherits from [`~feature_extraction_utils.PreTrainedFeatureExtractor`] which contains most
of the main methods. Users should refer to this superclass for more information regarding those methods.
Args:
do_resize (`bool`, *optional*, defaults to `True`):
Whether to resize the input to a certain `size`.
size (`int` or `Tuple(int)`, *optional*, defaults to 224):
Resize the input to the given size. If a tuple is provided, it should be (width, height). If only an
integer is provided, then the input will be resized to (size, size). Only has an effect if `do_resize` is
set to `True`.
resample (`int`, *optional*, defaults to `PIL.Image.BILINEAR`):
An optional resampling filter. This can be one of `PIL.Image.NEAREST`, `PIL.Image.BOX`,
`PIL.Image.BILINEAR`, `PIL.Image.HAMMING`, `PIL.Image.BICUBIC` or `PIL.Image.LANCZOS`. Only has an effect
if `do_resize` is set to `True`.
do_normalize (`bool`, *optional*, defaults to `True`):
Whether or not to normalize the input with mean and standard deviation.
image_mean (`List[int]`, defaults to `[0.5, 0.5, 0.5]`):
The sequence of means for each channel, to be used when normalizing images.
image_std (`List[int]`, defaults to `[0.5, 0.5, 0.5]`):
The sequence of standard deviations for each channel, to be used when normalizing images.
apply_ocr (`bool`, *optional*, defaults to `True`):
Whether to apply the Tesseract OCR engine to get words + normalized bounding boxes.
ocr_lang (`Optional[str]`, *optional*):
The language, specified by its ISO code, to be used by the Tesseract OCR engine. By default, English is
used.
<Tip>
LayoutLMv3FeatureExtractor uses Google's Tesseract OCR engine under the hood.
</Tip>"""
model_input_names = ["pixel_values"]
def __init__(
self,
do_resize=True,
size=224,
resample=Image.BILINEAR,
do_normalize=True,
image_mean=None,
image_std=None,
apply_ocr=True,
ocr_lang=None,
**kwargs
):
super().__init__(**kwargs)
self.do_resize = do_resize
self.size = size
self.resample = resample
self.do_normalize = do_normalize
self.image_mean = image_mean if image_mean is not None else IMAGENET_STANDARD_MEAN
self.image_std = image_std if image_std is not None else IMAGENET_STANDARD_STD
self.apply_ocr = apply_ocr
self.ocr_lang = ocr_lang
def __call__(
self, images: ImageInput, return_tensors: Optional[Union[str, TensorType]] = None, **kwargs
) -> BatchFeature:
"""
Main method to prepare for the model one or several image(s).
Args:
images (`PIL.Image.Image`, `np.ndarray`, `torch.Tensor`, `List[PIL.Image.Image]`, `List[np.ndarray]`, `List[torch.Tensor]`):
The image or batch of images to be prepared. Each image can be a PIL image, NumPy array or PyTorch
tensor. In case of a NumPy array/PyTorch tensor, each image should be of shape (C, H, W), where C is a
number of channels, H and W are image height and width.
return_tensors (`str` or [`~utils.TensorType`], *optional*, defaults to `'np'`):
If set, will return tensors of a particular framework. Acceptable values are:
- `'tf'`: Return TensorFlow `tf.constant` objects.
- `'pt'`: Return PyTorch `torch.Tensor` objects.
- `'np'`: Return NumPy `np.ndarray` objects.
- `'jax'`: Return JAX `jnp.ndarray` objects.
Returns:
[`BatchFeature`]: A [`BatchFeature`] with the following fields:
- **pixel_values** -- Pixel values to be fed to a model, of shape (batch_size, num_channels, height,
width).
- **words** -- Optional words as identified by Tesseract OCR (only when [`LayoutLMv3FeatureExtractor`] was
initialized with `apply_ocr` set to `True`).
- **boxes** -- Optional bounding boxes as identified by Tesseract OCR, normalized based on the image size
(only when [`LayoutLMv3FeatureExtractor`] was initialized with `apply_ocr` set to `True`).
Examples:
```python
>>> from transformers import LayoutLMv3FeatureExtractor
>>> from PIL import Image
>>> image = Image.open("name_of_your_document - can be a png file, pdf, etc.").convert("RGB")
>>> # option 1: with apply_ocr=True (default)
>>> feature_extractor = LayoutLMv3FeatureExtractor()
>>> encoding = feature_extractor(image, return_tensors="pt")
>>> print(encoding.keys())
>>> # dict_keys(['pixel_values', 'words', 'boxes'])
>>> # option 2: with apply_ocr=False
>>> feature_extractor = LayoutLMv3FeatureExtractor(apply_ocr=False)
>>> encoding = feature_extractor(image, return_tensors="pt")
>>> print(encoding.keys())
>>> # dict_keys(['pixel_values'])
```"""
# Input type checking for clearer error
valid_images = False
# Check that images has a valid type
if isinstance(images, (Image.Image, np.ndarray)) or is_torch_tensor(images):
valid_images = True
elif isinstance(images, (list, tuple)):
if len(images) == 0 or isinstance(images[0], (Image.Image, np.ndarray)) or is_torch_tensor(images[0]):
valid_images = True
if not valid_images:
raise ValueError(
"Images must of type `PIL.Image.Image`, `np.ndarray` or `torch.Tensor` (single example), "
"`List[PIL.Image.Image]`, `List[np.ndarray]` or `List[torch.Tensor]` (batch of examples), "
f"but is of type {type(images)}."
)
is_batched = bool(
isinstance(images, (list, tuple))
and (isinstance(images[0], (Image.Image, np.ndarray)) or is_torch_tensor(images[0]))
)
if not is_batched:
images = [images]
# Tesseract OCR to get words + normalized bounding boxes
if self.apply_ocr:
requires_backends(self, "pytesseract")
words_batch = []
boxes_batch = []
for image in images:
words, boxes = apply_tesseract(self.to_pil_image(image), self.ocr_lang)
words_batch.append(words)
boxes_batch.append(boxes)
# transformations (resizing + normalization)
if self.do_resize and self.size is not None:
images = [self.resize(image=image, size=self.size, resample=self.resample) for image in images]
if self.do_normalize:
images = [self.normalize(image=image, mean=self.image_mean, std=self.image_std) for image in images]
# return as BatchFeature
data = {"pixel_values": images}
encoded_inputs = BatchFeature(data=data, tensor_type=return_tensors)
if self.apply_ocr:
encoded_inputs["words"] = words_batch
encoded_inputs["boxes"] = boxes_batch
return encoded_inputs
| [
"[email protected]"
] | |
c39130c949648637391d0534dc3556ac91430aaf | 07bf4a6fc924dfc5198ab55c7185bf8f1b36865b | /django_crud/articles/migrations/0007_comment_question_question.py | 2ba202d31838f01f57b7b79874fe93157ef9aa68 | [] | no_license | tesschung/django | c73d29a5cece83f852766ff66c635c82d3337f30 | 231a6131532757a66ac3dd038a2f2f1024faf14f | refs/heads/master | 2020-07-04T14:15:57.246652 | 2020-02-12T09:23:23 | 2020-02-12T09:23:23 | 202,301,189 | 4 | 1 | null | 2019-12-05T00:37:33 | 2019-08-14T07:48:52 | Python | UTF-8 | Python | false | false | 940 | py | # Generated by Django 2.2.5 on 2019-09-25 08:23
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('articles', '0006_school_student'),
]
operations = [
migrations.CreateModel(
name='Question',
fields=[
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('question', models.CharField(max_length=50)),
],
),
migrations.CreateModel(
name='Comment_question',
fields=[
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('comment_question', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='comment_questions', to='articles.Question')),
],
),
]
| [
"[email protected]"
] | |
839d9030156fe6510670b1c7827942fb927c1ebd | c47340ae6bcac6002961cc2c6d2fecb353c1e502 | /controlm_py/models/variables.py | c26b170ca12b2bb0246d5a53137761c803f3be1b | [
"MIT"
] | permissive | rafaeldelrey/controlm_py | 6d9f56b8b6e72750f329d85b932ace6c41002cbd | ed1eb648d1d23e587321227217cbfcc5065535ab | refs/heads/main | 2023-04-23T09:01:32.024725 | 2021-05-19T00:25:53 | 2021-05-19T00:25:53 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,352 | py | # coding: utf-8
"""
Control-M Services
Provides access to BMC Control-M Services # noqa: E501
OpenAPI spec version: 9.20.115
Contact: [email protected]
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
import pprint
import re # noqa: F401
import six
class Variables(object):
"""NOTE: This class is auto generated by the swagger code generator program.
Do not edit the class manually.
"""
"""
Attributes:
swagger_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.
"""
swagger_types = {
'variables': 'list[dict(str, str)]'
}
attribute_map = {
'variables': 'variables'
}
def __init__(self, variables=None): # noqa: E501
"""Variables - a model defined in Swagger""" # noqa: E501
self._variables = None
self.discriminator = None
if variables is not None:
self.variables = variables
@property
def variables(self):
"""Gets the variables of this Variables. # noqa: E501
Key value map where key is pool variables in format %%\\\\PoolName\\AUTOVarInPool. HIDDEN. # noqa: E501
:return: The variables of this Variables. # noqa: E501
:rtype: list[dict(str, str)]
"""
return self._variables
@variables.setter
def variables(self, variables):
"""Sets the variables of this Variables.
Key value map where key is pool variables in format %%\\\\PoolName\\AUTOVarInPool. HIDDEN. # noqa: E501
:param variables: The variables of this Variables. # noqa: E501
:type: list[dict(str, str)]
"""
self._variables = variables
def to_dict(self):
"""Returns the model properties as a dict"""
result = {}
for attr, _ in six.iteritems(self.swagger_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:
result[attr] = value
if issubclass(Variables, dict):
for key, value in self.items():
result[key] = value
return result
def to_str(self):
"""Returns the string representation of the model"""
return pprint.pformat(self.to_dict())
def __repr__(self):
"""For `print` and `pprint`"""
return self.to_str()
def __eq__(self, other):
"""Returns true if both objects are equal"""
if not isinstance(other, Variables):
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]"
] | |
666971d8d10dd3a8574ea38e045f5d89f1b53419 | fee12edf8fed01439d1801ce7aad9ac38d4ec079 | /files-working2.py | 9f79888120e60234fbb25c5a9fa5d2c4b4e9826a | [] | no_license | frclasso/python_examples_three | 18fd855f60644a52507fe3cffa3a4a3445435f1a | 05c013aadd6d953283928f525aff051c6f04f5d6 | refs/heads/master | 2020-12-31T06:08:47.156170 | 2017-02-01T16:06:10 | 2017-02-01T16:06:10 | 80,636,736 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 425 | py | #!/usr/bin/env python3
def main():
buffersize = 50000
infile = open('bigfile.txt', 'r') #segundo argumento define a ação, r = read, w = write, a = append
outfile = open('new.txt', 'w')
buffer = infile.read(buffersize)
while len(buffer):
outfile.write(buffer)
print ('.', end='')
buffer = infile.read(buffersize)
print()
print('Done!!')
if __name__=='__main__':main() | [
"[email protected]"
] | |
2f8164d7bafe20bd474ad14f2c94e8c354756b2c | 86fcf88a4a4fe94871bc835580059d140e6d4ce5 | /1_Prepare_Data/load_redis_q.py | 294c30bc3dcdba48de6a41da263d5b640e190fc0 | [
"MIT"
] | permissive | BL-Labs/19Cbooks | 576fc8eb40f7df5c8284fdb0ff425b7e5d74dddc | 3166c7adad151d5e5194171cd5b0397bd910b669 | refs/heads/master | 2020-07-02T05:09:05.881257 | 2013-09-17T13:18:25 | 2013-09-17T13:18:25 | 12,895,637 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 473 | py | import os, time
from redis import Redis
r = Redis()
root = "md"
q = "q"
LIMIT = 3000
PAUSE = 15
cur = 0.0
st = time.time()
for div in os.listdir(root):
for ident in os.listdir(os.path.join(root, div)):
cur += 1
r.lpush(q, ident)
if not cur % 100:
print("{0} added. {1}/s".format(cur, (time.time()-st) / float(cur) ))
if r.llen(q) > LIMIT:
print("Input Queue over {0}, pausing for {1}s".format(LIMIT, PAUSE))
time.sleep(PAUSE)
| [
"[email protected]"
] | |
b08db675f1efda20dd51b209dbacb5b01c41de6e | bc9f66258575dd5c8f36f5ad3d9dfdcb3670897d | /platform/bq/third_party/wcwidth/table_zero.py | 7e848a96a76f07fe95b7eb04be5cabc291dfe496 | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference",
"MIT",
"HPND-Markus-Kuhn"
] | permissive | google-cloud-sdk-unofficial/google-cloud-sdk | 05fbb473d629195f25887fc5bfaa712f2cbc0a24 | 392abf004b16203030e6efd2f0af24db7c8d669e | refs/heads/master | 2023-08-31T05:40:41.317697 | 2023-08-23T18:23:16 | 2023-08-23T18:23:16 | 335,182,594 | 9 | 2 | NOASSERTION | 2022-10-29T20:49:13 | 2021-02-02T05:47:30 | Python | UTF-8 | Python | false | false | 329,117 | py | #!/usr/bin/env python
"""
Exports ZERO_WIDTH table keyed by supporting unicode version level.
This code generated by wcwidth/bin/update-tables.py on 2023-01-14 03:25:41 UTC.
"""
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
(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 Qatan
(0x00610, 0x00615,), # Arabic Sign Sallallahou ..Arabic Small High Tah
(0x0064b, 0x0065e,), # Arabic Fathatan ..Arabic Fatha With Two Do
(0x00670, 0x00670,), # Arabic Letter Superscript Alef
(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 Superscript Alaph
(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
(0x00941, 0x00948,), # Devanagari Vowel Sign U ..Devanagari Vowel Sign Ai
(0x0094d, 0x0094d,), # 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
(0x009bc, 0x009bc,), # Bengali Sign Nukta
(0x009c1, 0x009c4,), # Bengali Vowel Sign U ..Bengali Vowel Sign Vocal
(0x009cd, 0x009cd,), # 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
(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
(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
(0x00ae2, 0x00ae3,), # Gujarati Vowel Sign Voca..Gujarati Vowel Sign Voca
(0x00b01, 0x00b01,), # Oriya Sign Candrabindu
(0x00b3c, 0x00b3c,), # Oriya Sign Nukta
(0x00b3f, 0x00b3f,), # Oriya Vowel Sign I
(0x00b41, 0x00b43,), # Oriya Vowel Sign U ..Oriya Vowel Sign Vocalic
(0x00b4d, 0x00b4d,), # Oriya Sign Virama
(0x00b56, 0x00b56,), # Oriya Ai Length Mark
(0x00b82, 0x00b82,), # Tamil Sign Anusvara
(0x00bc0, 0x00bc0,), # Tamil Vowel Sign Ii
(0x00bcd, 0x00bcd,), # 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
(0x00cbf, 0x00cbf,), # Kannada Vowel Sign I
(0x00cc6, 0x00cc6,), # 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
(0x00dca, 0x00dca,), # Sinhala Sign Al-lakuna
(0x00dd2, 0x00dd4,), # Sinhala Vowel Sign Ketti..Sinhala Vowel Sign Ketti
(0x00dd6, 0x00dd6,), # Sinhala Vowel Sign Diga Paa-pilla
(0x00e31, 0x00e31,), # Thai Character Mai Han-akat
(0x00e34, 0x00e3a,), # Thai Character Sara I ..Thai Character Phinthu
(0x00e47, 0x00e4e,), # Thai Character Maitaikhu..Thai Character Yamakkan
(0x00eb1, 0x00eb1,), # 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 Nyi Zla
(0x00f37, 0x00f37,), # Tibetan Mark Ngas Bzung Sgor Rtags
(0x00f39, 0x00f39,), # 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 Gdan
(0x0102d, 0x01030,), # Myanmar Vowel Sign I ..Myanmar Vowel Sign Uu
(0x01032, 0x01032,), # Myanmar Vowel Sign Ai
(0x01036, 0x01037,), # Myanmar Sign Anusvara ..Myanmar Sign Dot Below
(0x01039, 0x01039,), # Myanmar Sign Virama
(0x01058, 0x01059,), # Myanmar Vowel Sign Vocal..Myanmar Vowel Sign Vocal
(0x0135f, 0x0135f,), # Ethiopic Combining Gemination Mark
(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
(0x017c9, 0x017d3,), # Khmer Sign Muusikatoan ..Khmer Sign Bathamasat
(0x017dd, 0x017dd,), # Khmer Sign Atthacan
(0x0180b, 0x0180d,), # Mongolian Free Variation..Mongolian Free Variation
(0x018a9, 0x018a9,), # Mongolian Letter Ali Gali Dagalga
(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 Anusvara
(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 Hasanta
(0x0a80b, 0x0a80b,), # Syloti Nagri Sign Anusvara
(0x0a825, 0x0a826,), # Syloti Nagri Vowel Sign ..Syloti Nagri Vowel Sign
(0x0fb1e, 0x0fb1e,), # Hebrew Point Judeo-spanish Varika
(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
(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
(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 Qatan
(0x00610, 0x00615,), # Arabic Sign Sallallahou ..Arabic Small High Tah
(0x0064b, 0x0065e,), # Arabic Fathatan ..Arabic Fatha With Two Do
(0x00670, 0x00670,), # Arabic Letter Superscript Alef
(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 Superscript Alaph
(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
(0x00941, 0x00948,), # Devanagari Vowel Sign U ..Devanagari Vowel Sign Ai
(0x0094d, 0x0094d,), # 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
(0x009bc, 0x009bc,), # Bengali Sign Nukta
(0x009c1, 0x009c4,), # Bengali Vowel Sign U ..Bengali Vowel Sign Vocal
(0x009cd, 0x009cd,), # 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
(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
(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
(0x00ae2, 0x00ae3,), # Gujarati Vowel Sign Voca..Gujarati Vowel Sign Voca
(0x00b01, 0x00b01,), # Oriya Sign Candrabindu
(0x00b3c, 0x00b3c,), # Oriya Sign Nukta
(0x00b3f, 0x00b3f,), # Oriya Vowel Sign I
(0x00b41, 0x00b43,), # Oriya Vowel Sign U ..Oriya Vowel Sign Vocalic
(0x00b4d, 0x00b4d,), # Oriya Sign Virama
(0x00b56, 0x00b56,), # Oriya Ai Length Mark
(0x00b82, 0x00b82,), # Tamil Sign Anusvara
(0x00bc0, 0x00bc0,), # Tamil Vowel Sign Ii
(0x00bcd, 0x00bcd,), # 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
(0x00cbf, 0x00cbf,), # Kannada Vowel Sign I
(0x00cc6, 0x00cc6,), # 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
(0x00dca, 0x00dca,), # Sinhala Sign Al-lakuna
(0x00dd2, 0x00dd4,), # Sinhala Vowel Sign Ketti..Sinhala Vowel Sign Ketti
(0x00dd6, 0x00dd6,), # Sinhala Vowel Sign Diga Paa-pilla
(0x00e31, 0x00e31,), # Thai Character Mai Han-akat
(0x00e34, 0x00e3a,), # Thai Character Sara I ..Thai Character Phinthu
(0x00e47, 0x00e4e,), # Thai Character Maitaikhu..Thai Character Yamakkan
(0x00eb1, 0x00eb1,), # 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 Nyi Zla
(0x00f37, 0x00f37,), # Tibetan Mark Ngas Bzung Sgor Rtags
(0x00f39, 0x00f39,), # 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 Gdan
(0x0102d, 0x01030,), # Myanmar Vowel Sign I ..Myanmar Vowel Sign Uu
(0x01032, 0x01032,), # Myanmar Vowel Sign Ai
(0x01036, 0x01037,), # Myanmar Sign Anusvara ..Myanmar Sign Dot Below
(0x01039, 0x01039,), # Myanmar Sign Virama
(0x01058, 0x01059,), # Myanmar Vowel Sign Vocal..Myanmar Vowel Sign Vocal
(0x0135f, 0x0135f,), # Ethiopic Combining Gemination Mark
(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
(0x017c9, 0x017d3,), # Khmer Sign Muusikatoan ..Khmer Sign Bathamasat
(0x017dd, 0x017dd,), # Khmer Sign Atthacan
(0x0180b, 0x0180d,), # Mongolian Free Variation..Mongolian Free Variation
(0x018a9, 0x018a9,), # Mongolian Letter Ali Gali Dagalga
(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 Anusvara
(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
(0x01b36, 0x01b3a,), # Balinese Vowel Sign Ulu ..Balinese Vowel Sign Ra R
(0x01b3c, 0x01b3c,), # Balinese Vowel Sign La Lenga
(0x01b42, 0x01b42,), # Balinese Vowel Sign Pepet
(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 Hasanta
(0x0a80b, 0x0a80b,), # Syloti Nagri Sign Anusvara
(0x0a825, 0x0a826,), # Syloti Nagri Vowel Sign ..Syloti Nagri Vowel Sign
(0x0fb1e, 0x0fb1e,), # Hebrew Point Judeo-spanish Varika
(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
(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
(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 Qatan
(0x00610, 0x0061a,), # Arabic Sign Sallallahou ..Arabic Small Kasra
(0x0064b, 0x0065e,), # Arabic Fathatan ..Arabic Fatha With Two Do
(0x00670, 0x00670,), # Arabic Letter Superscript Alef
(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 Superscript Alaph
(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
(0x00941, 0x00948,), # Devanagari Vowel Sign U ..Devanagari Vowel Sign Ai
(0x0094d, 0x0094d,), # 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
(0x009bc, 0x009bc,), # Bengali Sign Nukta
(0x009c1, 0x009c4,), # Bengali Vowel Sign U ..Bengali Vowel Sign Vocal
(0x009cd, 0x009cd,), # 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
(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
(0x00a70, 0x00a71,), # Gurmukhi Tippi ..Gurmukhi Addak
(0x00a75, 0x00a75,), # Gurmukhi Sign Yakash
(0x00a81, 0x00a82,), # Gujarati Sign Candrabind..Gujarati Sign Anusvara
(0x00abc, 0x00abc,), # 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
(0x00ae2, 0x00ae3,), # Gujarati Vowel Sign Voca..Gujarati Vowel Sign Voca
(0x00b01, 0x00b01,), # Oriya Sign Candrabindu
(0x00b3c, 0x00b3c,), # Oriya Sign Nukta
(0x00b3f, 0x00b3f,), # Oriya Vowel Sign I
(0x00b41, 0x00b44,), # Oriya Vowel Sign U ..Oriya Vowel Sign Vocalic
(0x00b4d, 0x00b4d,), # Oriya Sign Virama
(0x00b56, 0x00b56,), # Oriya Ai Length Mark
(0x00b62, 0x00b63,), # Oriya Vowel Sign Vocalic..Oriya Vowel Sign Vocalic
(0x00b82, 0x00b82,), # Tamil Sign Anusvara
(0x00bc0, 0x00bc0,), # Tamil Vowel Sign Ii
(0x00bcd, 0x00bcd,), # 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
(0x00cbf, 0x00cbf,), # Kannada Vowel Sign I
(0x00cc6, 0x00cc6,), # 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
(0x00d62, 0x00d63,), # Malayalam Vowel Sign Voc..Malayalam Vowel Sign Voc
(0x00dca, 0x00dca,), # Sinhala Sign Al-lakuna
(0x00dd2, 0x00dd4,), # Sinhala Vowel Sign Ketti..Sinhala Vowel Sign Ketti
(0x00dd6, 0x00dd6,), # Sinhala Vowel Sign Diga Paa-pilla
(0x00e31, 0x00e31,), # Thai Character Mai Han-akat
(0x00e34, 0x00e3a,), # Thai Character Sara I ..Thai Character Phinthu
(0x00e47, 0x00e4e,), # Thai Character Maitaikhu..Thai Character Yamakkan
(0x00eb1, 0x00eb1,), # 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 Nyi Zla
(0x00f37, 0x00f37,), # Tibetan Mark Ngas Bzung Sgor Rtags
(0x00f39, 0x00f39,), # 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 Gdan
(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 Shan Medial Wa
(0x01085, 0x01086,), # Myanmar Vowel Sign Shan ..Myanmar Vowel Sign Shan
(0x0108d, 0x0108d,), # Myanmar Sign Shan Council Emphatic Tone
(0x0135f, 0x0135f,), # Ethiopic Combining Gemination Mark
(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
(0x017c9, 0x017d3,), # Khmer Sign Muusikatoan ..Khmer Sign Bathamasat
(0x017dd, 0x017dd,), # Khmer Sign Atthacan
(0x0180b, 0x0180d,), # Mongolian Free Variation..Mongolian Free Variation
(0x018a9, 0x018a9,), # Mongolian Letter Ali Gali Dagalga
(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 Anusvara
(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
(0x01b36, 0x01b3a,), # Balinese Vowel Sign Ulu ..Balinese Vowel Sign Ra R
(0x01b3c, 0x01b3c,), # Balinese Vowel Sign La Lenga
(0x01b42, 0x01b42,), # Balinese Vowel Sign Pepet
(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 Dvisvara
(0x0a806, 0x0a806,), # Syloti Nagri Sign Hasanta
(0x0a80b, 0x0a80b,), # Syloti Nagri Sign Anusvara
(0x0a825, 0x0a826,), # Syloti Nagri Vowel Sign ..Syloti Nagri Vowel Sign
(0x0a8c4, 0x0a8c4,), # 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 Final Ng
(0x0aa4c, 0x0aa4c,), # Cham Consonant Sign Final M
(0x0fb1e, 0x0fb1e,), # Hebrew Point Judeo-spanish Varika
(0x0fe00, 0x0fe0f,), # Variation Selector-1 ..Variation Selector-16
(0x0fe20, 0x0fe26,), # Combining Ligature Left ..Combining Conjoining Mac
(0x101fd, 0x101fd,), # Phaistos Disc Sign Combining Oblique Stroke
(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
(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
(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 Qatan
(0x00610, 0x0061a,), # Arabic Sign Sallallahou ..Arabic Small Kasra
(0x0064b, 0x0065e,), # Arabic Fathatan ..Arabic Fatha With Two Do
(0x00670, 0x00670,), # Arabic Letter Superscript Alef
(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 Superscript Alaph
(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
(0x00941, 0x00948,), # Devanagari Vowel Sign U ..Devanagari Vowel Sign Ai
(0x0094d, 0x0094d,), # 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
(0x009bc, 0x009bc,), # Bengali Sign Nukta
(0x009c1, 0x009c4,), # Bengali Vowel Sign U ..Bengali Vowel Sign Vocal
(0x009cd, 0x009cd,), # 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
(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
(0x00a70, 0x00a71,), # Gurmukhi Tippi ..Gurmukhi Addak
(0x00a75, 0x00a75,), # Gurmukhi Sign Yakash
(0x00a81, 0x00a82,), # Gujarati Sign Candrabind..Gujarati Sign Anusvara
(0x00abc, 0x00abc,), # 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
(0x00ae2, 0x00ae3,), # Gujarati Vowel Sign Voca..Gujarati Vowel Sign Voca
(0x00b01, 0x00b01,), # Oriya Sign Candrabindu
(0x00b3c, 0x00b3c,), # Oriya Sign Nukta
(0x00b3f, 0x00b3f,), # Oriya Vowel Sign I
(0x00b41, 0x00b44,), # Oriya Vowel Sign U ..Oriya Vowel Sign Vocalic
(0x00b4d, 0x00b4d,), # Oriya Sign Virama
(0x00b56, 0x00b56,), # Oriya Ai Length Mark
(0x00b62, 0x00b63,), # Oriya Vowel Sign Vocalic..Oriya Vowel Sign Vocalic
(0x00b82, 0x00b82,), # Tamil Sign Anusvara
(0x00bc0, 0x00bc0,), # Tamil Vowel Sign Ii
(0x00bcd, 0x00bcd,), # 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
(0x00cbf, 0x00cbf,), # Kannada Vowel Sign I
(0x00cc6, 0x00cc6,), # 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
(0x00d62, 0x00d63,), # Malayalam Vowel Sign Voc..Malayalam Vowel Sign Voc
(0x00dca, 0x00dca,), # Sinhala Sign Al-lakuna
(0x00dd2, 0x00dd4,), # Sinhala Vowel Sign Ketti..Sinhala Vowel Sign Ketti
(0x00dd6, 0x00dd6,), # Sinhala Vowel Sign Diga Paa-pilla
(0x00e31, 0x00e31,), # Thai Character Mai Han-akat
(0x00e34, 0x00e3a,), # Thai Character Sara I ..Thai Character Phinthu
(0x00e47, 0x00e4e,), # Thai Character Maitaikhu..Thai Character Yamakkan
(0x00eb1, 0x00eb1,), # 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 Nyi Zla
(0x00f37, 0x00f37,), # Tibetan Mark Ngas Bzung Sgor Rtags
(0x00f39, 0x00f39,), # 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 Gdan
(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 Shan Medial Wa
(0x01085, 0x01086,), # Myanmar Vowel Sign Shan ..Myanmar Vowel Sign Shan
(0x0108d, 0x0108d,), # Myanmar Sign Shan Council Emphatic Tone
(0x0109d, 0x0109d,), # Myanmar Vowel Sign Aiton Ai
(0x0135f, 0x0135f,), # Ethiopic Combining Gemination Mark
(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
(0x017c9, 0x017d3,), # Khmer Sign Muusikatoan ..Khmer Sign Bathamasat
(0x017dd, 0x017dd,), # Khmer Sign Atthacan
(0x0180b, 0x0180d,), # Mongolian Free Variation..Mongolian Free Variation
(0x018a9, 0x018a9,), # Mongolian Letter Ali Gali Dagalga
(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 Anusvara
(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 Medial La
(0x01a58, 0x01a5e,), # Tai Tham Sign Mai Kang L..Tai Tham Consonant Sign
(0x01a60, 0x01a60,), # Tai Tham Sign Sakot
(0x01a62, 0x01a62,), # Tai Tham Vowel Sign Mai Sat
(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 Cryptogrammic Dot
(0x01b00, 0x01b03,), # Balinese Sign Ulu Ricem ..Balinese Sign Surang
(0x01b34, 0x01b34,), # Balinese Sign Rerekan
(0x01b36, 0x01b3a,), # Balinese Vowel Sign Ulu ..Balinese Vowel Sign Ra R
(0x01b3c, 0x01b3c,), # Balinese Vowel Sign La Lenga
(0x01b42, 0x01b42,), # Balinese Vowel Sign Pepet
(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
(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 Dvisvara
(0x0a806, 0x0a806,), # Syloti Nagri Sign Hasanta
(0x0a80b, 0x0a80b,), # Syloti Nagri Sign Anusvara
(0x0a825, 0x0a826,), # Syloti Nagri Vowel Sign ..Syloti Nagri Vowel Sign
(0x0a8c4, 0x0a8c4,), # 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
(0x0a9b6, 0x0a9b9,), # Javanese Vowel Sign Wulu..Javanese Vowel Sign Suku
(0x0a9bc, 0x0a9bc,), # Javanese Vowel Sign Pepet
(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 Final Ng
(0x0aa4c, 0x0aa4c,), # Cham Consonant Sign Final M
(0x0aab0, 0x0aab0,), # 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
(0x0abe5, 0x0abe5,), # Meetei Mayek Vowel Sign Anap
(0x0abe8, 0x0abe8,), # Meetei Mayek Vowel Sign Unap
(0x0abed, 0x0abed,), # Meetei Mayek Apun Iyek
(0x0fb1e, 0x0fb1e,), # Hebrew Point Judeo-spanish Varika
(0x0fe00, 0x0fe0f,), # Variation Selector-1 ..Variation Selector-16
(0x0fe20, 0x0fe26,), # Combining Ligature Left ..Combining Conjoining Mac
(0x101fd, 0x101fd,), # Phaistos Disc Sign Combining Oblique Stroke
(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
(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
(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 Qatan
(0x00610, 0x0061a,), # Arabic Sign Sallallahou ..Arabic Small Kasra
(0x0064b, 0x0065f,), # Arabic Fathatan ..Arabic Wavy Hamza Below
(0x00670, 0x00670,), # Arabic Letter Superscript Alef
(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 Superscript Alaph
(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
(0x0093c, 0x0093c,), # Devanagari Sign Nukta
(0x00941, 0x00948,), # Devanagari Vowel Sign U ..Devanagari Vowel Sign Ai
(0x0094d, 0x0094d,), # 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
(0x009bc, 0x009bc,), # Bengali Sign Nukta
(0x009c1, 0x009c4,), # Bengali Vowel Sign U ..Bengali Vowel Sign Vocal
(0x009cd, 0x009cd,), # 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
(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
(0x00a70, 0x00a71,), # Gurmukhi Tippi ..Gurmukhi Addak
(0x00a75, 0x00a75,), # Gurmukhi Sign Yakash
(0x00a81, 0x00a82,), # Gujarati Sign Candrabind..Gujarati Sign Anusvara
(0x00abc, 0x00abc,), # 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
(0x00ae2, 0x00ae3,), # Gujarati Vowel Sign Voca..Gujarati Vowel Sign Voca
(0x00b01, 0x00b01,), # Oriya Sign Candrabindu
(0x00b3c, 0x00b3c,), # Oriya Sign Nukta
(0x00b3f, 0x00b3f,), # Oriya Vowel Sign I
(0x00b41, 0x00b44,), # Oriya Vowel Sign U ..Oriya Vowel Sign Vocalic
(0x00b4d, 0x00b4d,), # Oriya Sign Virama
(0x00b56, 0x00b56,), # Oriya Ai Length Mark
(0x00b62, 0x00b63,), # Oriya Vowel Sign Vocalic..Oriya Vowel Sign Vocalic
(0x00b82, 0x00b82,), # Tamil Sign Anusvara
(0x00bc0, 0x00bc0,), # Tamil Vowel Sign Ii
(0x00bcd, 0x00bcd,), # 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
(0x00cbf, 0x00cbf,), # Kannada Vowel Sign I
(0x00cc6, 0x00cc6,), # 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
(0x00d62, 0x00d63,), # Malayalam Vowel Sign Voc..Malayalam Vowel Sign Voc
(0x00dca, 0x00dca,), # Sinhala Sign Al-lakuna
(0x00dd2, 0x00dd4,), # Sinhala Vowel Sign Ketti..Sinhala Vowel Sign Ketti
(0x00dd6, 0x00dd6,), # Sinhala Vowel Sign Diga Paa-pilla
(0x00e31, 0x00e31,), # Thai Character Mai Han-akat
(0x00e34, 0x00e3a,), # Thai Character Sara I ..Thai Character Phinthu
(0x00e47, 0x00e4e,), # Thai Character Maitaikhu..Thai Character Yamakkan
(0x00eb1, 0x00eb1,), # 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 Nyi Zla
(0x00f37, 0x00f37,), # Tibetan Mark Ngas Bzung Sgor Rtags
(0x00f39, 0x00f39,), # 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 Gdan
(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 Shan Medial Wa
(0x01085, 0x01086,), # Myanmar Vowel Sign Shan ..Myanmar Vowel Sign Shan
(0x0108d, 0x0108d,), # Myanmar Sign Shan Council Emphatic Tone
(0x0109d, 0x0109d,), # Myanmar Vowel Sign Aiton Ai
(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
(0x017c9, 0x017d3,), # Khmer Sign Muusikatoan ..Khmer Sign Bathamasat
(0x017dd, 0x017dd,), # Khmer Sign Atthacan
(0x0180b, 0x0180d,), # Mongolian Free Variation..Mongolian Free Variation
(0x018a9, 0x018a9,), # Mongolian Letter Ali Gali Dagalga
(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 Anusvara
(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 Medial La
(0x01a58, 0x01a5e,), # Tai Tham Sign Mai Kang L..Tai Tham Consonant Sign
(0x01a60, 0x01a60,), # Tai Tham Sign Sakot
(0x01a62, 0x01a62,), # Tai Tham Vowel Sign Mai Sat
(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 Cryptogrammic Dot
(0x01b00, 0x01b03,), # Balinese Sign Ulu Ricem ..Balinese Sign Surang
(0x01b34, 0x01b34,), # Balinese Sign Rerekan
(0x01b36, 0x01b3a,), # Balinese Vowel Sign Ulu ..Balinese Vowel Sign Ra R
(0x01b3c, 0x01b3c,), # Balinese Vowel Sign La Lenga
(0x01b42, 0x01b42,), # Balinese Vowel Sign Pepet
(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
(0x01be8, 0x01be9,), # Batak Vowel Sign Pakpak ..Batak Vowel Sign Ee
(0x01bed, 0x01bed,), # 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
(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 Joiner
(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 Dvisvara
(0x0a806, 0x0a806,), # Syloti Nagri Sign Hasanta
(0x0a80b, 0x0a80b,), # Syloti Nagri Sign Anusvara
(0x0a825, 0x0a826,), # Syloti Nagri Vowel Sign ..Syloti Nagri Vowel Sign
(0x0a8c4, 0x0a8c4,), # 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
(0x0a9b6, 0x0a9b9,), # Javanese Vowel Sign Wulu..Javanese Vowel Sign Suku
(0x0a9bc, 0x0a9bc,), # Javanese Vowel Sign Pepet
(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 Final Ng
(0x0aa4c, 0x0aa4c,), # Cham Consonant Sign Final M
(0x0aab0, 0x0aab0,), # 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
(0x0abe5, 0x0abe5,), # Meetei Mayek Vowel Sign Anap
(0x0abe8, 0x0abe8,), # Meetei Mayek Vowel Sign Unap
(0x0abed, 0x0abed,), # Meetei Mayek Apun Iyek
(0x0fb1e, 0x0fb1e,), # Hebrew Point Judeo-spanish Varika
(0x0fe00, 0x0fe0f,), # Variation Selector-1 ..Variation Selector-16
(0x0fe20, 0x0fe26,), # Combining Ligature Left ..Combining Conjoining Mac
(0x101fd, 0x101fd,), # Phaistos Disc Sign Combining Oblique Stroke
(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
(0x11001, 0x11001,), # 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
(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 Qatan
(0x00610, 0x0061a,), # Arabic Sign Sallallahou ..Arabic Small Kasra
(0x0064b, 0x0065f,), # Arabic Fathatan ..Arabic Wavy Hamza Below
(0x00670, 0x00670,), # Arabic Letter Superscript Alef
(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 Superscript Alaph
(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
(0x0093c, 0x0093c,), # Devanagari Sign Nukta
(0x00941, 0x00948,), # Devanagari Vowel Sign U ..Devanagari Vowel Sign Ai
(0x0094d, 0x0094d,), # 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
(0x009bc, 0x009bc,), # Bengali Sign Nukta
(0x009c1, 0x009c4,), # Bengali Vowel Sign U ..Bengali Vowel Sign Vocal
(0x009cd, 0x009cd,), # 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
(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
(0x00a70, 0x00a71,), # Gurmukhi Tippi ..Gurmukhi Addak
(0x00a75, 0x00a75,), # Gurmukhi Sign Yakash
(0x00a81, 0x00a82,), # Gujarati Sign Candrabind..Gujarati Sign Anusvara
(0x00abc, 0x00abc,), # 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
(0x00ae2, 0x00ae3,), # Gujarati Vowel Sign Voca..Gujarati Vowel Sign Voca
(0x00b01, 0x00b01,), # Oriya Sign Candrabindu
(0x00b3c, 0x00b3c,), # Oriya Sign Nukta
(0x00b3f, 0x00b3f,), # Oriya Vowel Sign I
(0x00b41, 0x00b44,), # Oriya Vowel Sign U ..Oriya Vowel Sign Vocalic
(0x00b4d, 0x00b4d,), # Oriya Sign Virama
(0x00b56, 0x00b56,), # Oriya Ai Length Mark
(0x00b62, 0x00b63,), # Oriya Vowel Sign Vocalic..Oriya Vowel Sign Vocalic
(0x00b82, 0x00b82,), # Tamil Sign Anusvara
(0x00bc0, 0x00bc0,), # Tamil Vowel Sign Ii
(0x00bcd, 0x00bcd,), # 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
(0x00cbf, 0x00cbf,), # Kannada Vowel Sign I
(0x00cc6, 0x00cc6,), # 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
(0x00d62, 0x00d63,), # Malayalam Vowel Sign Voc..Malayalam Vowel Sign Voc
(0x00dca, 0x00dca,), # Sinhala Sign Al-lakuna
(0x00dd2, 0x00dd4,), # Sinhala Vowel Sign Ketti..Sinhala Vowel Sign Ketti
(0x00dd6, 0x00dd6,), # Sinhala Vowel Sign Diga Paa-pilla
(0x00e31, 0x00e31,), # Thai Character Mai Han-akat
(0x00e34, 0x00e3a,), # Thai Character Sara I ..Thai Character Phinthu
(0x00e47, 0x00e4e,), # Thai Character Maitaikhu..Thai Character Yamakkan
(0x00eb1, 0x00eb1,), # 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 Nyi Zla
(0x00f37, 0x00f37,), # Tibetan Mark Ngas Bzung Sgor Rtags
(0x00f39, 0x00f39,), # 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 Gdan
(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 Shan Medial Wa
(0x01085, 0x01086,), # Myanmar Vowel Sign Shan ..Myanmar Vowel Sign Shan
(0x0108d, 0x0108d,), # Myanmar Sign Shan Council Emphatic Tone
(0x0109d, 0x0109d,), # Myanmar Vowel Sign Aiton Ai
(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
(0x017c9, 0x017d3,), # Khmer Sign Muusikatoan ..Khmer Sign Bathamasat
(0x017dd, 0x017dd,), # Khmer Sign Atthacan
(0x0180b, 0x0180d,), # Mongolian Free Variation..Mongolian Free Variation
(0x018a9, 0x018a9,), # Mongolian Letter Ali Gali Dagalga
(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 Anusvara
(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 Medial La
(0x01a58, 0x01a5e,), # Tai Tham Sign Mai Kang L..Tai Tham Consonant Sign
(0x01a60, 0x01a60,), # Tai Tham Sign Sakot
(0x01a62, 0x01a62,), # Tai Tham Vowel Sign Mai Sat
(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 Cryptogrammic Dot
(0x01b00, 0x01b03,), # Balinese Sign Ulu Ricem ..Balinese Sign Surang
(0x01b34, 0x01b34,), # Balinese Sign Rerekan
(0x01b36, 0x01b3a,), # Balinese Vowel Sign Ulu ..Balinese Vowel Sign Ra R
(0x01b3c, 0x01b3c,), # Balinese Vowel Sign La Lenga
(0x01b42, 0x01b42,), # Balinese Vowel Sign Pepet
(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
(0x01be6, 0x01be6,), # Batak Sign Tompi
(0x01be8, 0x01be9,), # Batak Vowel Sign Pakpak ..Batak Vowel Sign Ee
(0x01bed, 0x01bed,), # 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
(0x01cf4, 0x01cf4,), # 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 Joiner
(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 Letter Iotified E
(0x0a6f0, 0x0a6f1,), # Bamum Combining Mark Koq..Bamum Combining Mark Tuk
(0x0a802, 0x0a802,), # Syloti Nagri Sign Dvisvara
(0x0a806, 0x0a806,), # Syloti Nagri Sign Hasanta
(0x0a80b, 0x0a80b,), # Syloti Nagri Sign Anusvara
(0x0a825, 0x0a826,), # Syloti Nagri Vowel Sign ..Syloti Nagri Vowel Sign
(0x0a8c4, 0x0a8c4,), # 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
(0x0a9b6, 0x0a9b9,), # Javanese Vowel Sign Wulu..Javanese Vowel Sign Suku
(0x0a9bc, 0x0a9bc,), # Javanese Vowel Sign Pepet
(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 Final Ng
(0x0aa4c, 0x0aa4c,), # Cham Consonant Sign Final M
(0x0aab0, 0x0aab0,), # 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
(0x0aaec, 0x0aaed,), # Meetei Mayek Vowel Sign ..Meetei Mayek Vowel Sign
(0x0aaf6, 0x0aaf6,), # Meetei Mayek Virama
(0x0abe5, 0x0abe5,), # Meetei Mayek Vowel Sign Anap
(0x0abe8, 0x0abe8,), # Meetei Mayek Vowel Sign Unap
(0x0abed, 0x0abed,), # Meetei Mayek Apun Iyek
(0x0fb1e, 0x0fb1e,), # Hebrew Point Judeo-spanish Varika
(0x0fe00, 0x0fe0f,), # Variation Selector-1 ..Variation Selector-16
(0x0fe20, 0x0fe26,), # Combining Ligature Left ..Combining Conjoining Mac
(0x101fd, 0x101fd,), # Phaistos Disc Sign Combining Oblique Stroke
(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
(0x11001, 0x11001,), # 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
(0x116ad, 0x116ad,), # Takri Vowel Sign Aa
(0x116b0, 0x116b5,), # Takri Vowel Sign U ..Takri Vowel Sign Au
(0x116b7, 0x116b7,), # 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
(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 Qatan
(0x00610, 0x0061a,), # Arabic Sign Sallallahou ..Arabic Small Kasra
(0x0064b, 0x0065f,), # Arabic Fathatan ..Arabic Wavy Hamza Below
(0x00670, 0x00670,), # Arabic Letter Superscript Alef
(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 Superscript Alaph
(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
(0x0093c, 0x0093c,), # Devanagari Sign Nukta
(0x00941, 0x00948,), # Devanagari Vowel Sign U ..Devanagari Vowel Sign Ai
(0x0094d, 0x0094d,), # 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
(0x009bc, 0x009bc,), # Bengali Sign Nukta
(0x009c1, 0x009c4,), # Bengali Vowel Sign U ..Bengali Vowel Sign Vocal
(0x009cd, 0x009cd,), # 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
(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
(0x00a70, 0x00a71,), # Gurmukhi Tippi ..Gurmukhi Addak
(0x00a75, 0x00a75,), # Gurmukhi Sign Yakash
(0x00a81, 0x00a82,), # Gujarati Sign Candrabind..Gujarati Sign Anusvara
(0x00abc, 0x00abc,), # 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
(0x00ae2, 0x00ae3,), # Gujarati Vowel Sign Voca..Gujarati Vowel Sign Voca
(0x00b01, 0x00b01,), # Oriya Sign Candrabindu
(0x00b3c, 0x00b3c,), # Oriya Sign Nukta
(0x00b3f, 0x00b3f,), # Oriya Vowel Sign I
(0x00b41, 0x00b44,), # Oriya Vowel Sign U ..Oriya Vowel Sign Vocalic
(0x00b4d, 0x00b4d,), # Oriya Sign Virama
(0x00b56, 0x00b56,), # Oriya Ai Length Mark
(0x00b62, 0x00b63,), # Oriya Vowel Sign Vocalic..Oriya Vowel Sign Vocalic
(0x00b82, 0x00b82,), # Tamil Sign Anusvara
(0x00bc0, 0x00bc0,), # Tamil Vowel Sign Ii
(0x00bcd, 0x00bcd,), # 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
(0x00cbf, 0x00cbf,), # Kannada Vowel Sign I
(0x00cc6, 0x00cc6,), # 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
(0x00d62, 0x00d63,), # Malayalam Vowel Sign Voc..Malayalam Vowel Sign Voc
(0x00dca, 0x00dca,), # Sinhala Sign Al-lakuna
(0x00dd2, 0x00dd4,), # Sinhala Vowel Sign Ketti..Sinhala Vowel Sign Ketti
(0x00dd6, 0x00dd6,), # Sinhala Vowel Sign Diga Paa-pilla
(0x00e31, 0x00e31,), # Thai Character Mai Han-akat
(0x00e34, 0x00e3a,), # Thai Character Sara I ..Thai Character Phinthu
(0x00e47, 0x00e4e,), # Thai Character Maitaikhu..Thai Character Yamakkan
(0x00eb1, 0x00eb1,), # 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 Nyi Zla
(0x00f37, 0x00f37,), # Tibetan Mark Ngas Bzung Sgor Rtags
(0x00f39, 0x00f39,), # 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 Gdan
(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 Shan Medial Wa
(0x01085, 0x01086,), # Myanmar Vowel Sign Shan ..Myanmar Vowel Sign Shan
(0x0108d, 0x0108d,), # Myanmar Sign Shan Council Emphatic Tone
(0x0109d, 0x0109d,), # Myanmar Vowel Sign Aiton Ai
(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
(0x017c9, 0x017d3,), # Khmer Sign Muusikatoan ..Khmer Sign Bathamasat
(0x017dd, 0x017dd,), # Khmer Sign Atthacan
(0x0180b, 0x0180d,), # Mongolian Free Variation..Mongolian Free Variation
(0x018a9, 0x018a9,), # Mongolian Letter Ali Gali Dagalga
(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 Anusvara
(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 Medial La
(0x01a58, 0x01a5e,), # Tai Tham Sign Mai Kang L..Tai Tham Consonant Sign
(0x01a60, 0x01a60,), # Tai Tham Sign Sakot
(0x01a62, 0x01a62,), # Tai Tham Vowel Sign Mai Sat
(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 Cryptogrammic Dot
(0x01b00, 0x01b03,), # Balinese Sign Ulu Ricem ..Balinese Sign Surang
(0x01b34, 0x01b34,), # Balinese Sign Rerekan
(0x01b36, 0x01b3a,), # Balinese Vowel Sign Ulu ..Balinese Vowel Sign Ra R
(0x01b3c, 0x01b3c,), # Balinese Vowel Sign La Lenga
(0x01b42, 0x01b42,), # Balinese Vowel Sign Pepet
(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
(0x01be6, 0x01be6,), # Batak Sign Tompi
(0x01be8, 0x01be9,), # Batak Vowel Sign Pakpak ..Batak Vowel Sign Ee
(0x01bed, 0x01bed,), # 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
(0x01cf4, 0x01cf4,), # 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 Joiner
(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 Letter Iotified E
(0x0a6f0, 0x0a6f1,), # Bamum Combining Mark Koq..Bamum Combining Mark Tuk
(0x0a802, 0x0a802,), # Syloti Nagri Sign Dvisvara
(0x0a806, 0x0a806,), # Syloti Nagri Sign Hasanta
(0x0a80b, 0x0a80b,), # Syloti Nagri Sign Anusvara
(0x0a825, 0x0a826,), # Syloti Nagri Vowel Sign ..Syloti Nagri Vowel Sign
(0x0a8c4, 0x0a8c4,), # 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
(0x0a9b6, 0x0a9b9,), # Javanese Vowel Sign Wulu..Javanese Vowel Sign Suku
(0x0a9bc, 0x0a9bc,), # Javanese Vowel Sign Pepet
(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 Final Ng
(0x0aa4c, 0x0aa4c,), # Cham Consonant Sign Final M
(0x0aab0, 0x0aab0,), # 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
(0x0aaec, 0x0aaed,), # Meetei Mayek Vowel Sign ..Meetei Mayek Vowel Sign
(0x0aaf6, 0x0aaf6,), # Meetei Mayek Virama
(0x0abe5, 0x0abe5,), # Meetei Mayek Vowel Sign Anap
(0x0abe8, 0x0abe8,), # Meetei Mayek Vowel Sign Unap
(0x0abed, 0x0abed,), # Meetei Mayek Apun Iyek
(0x0fb1e, 0x0fb1e,), # Hebrew Point Judeo-spanish Varika
(0x0fe00, 0x0fe0f,), # Variation Selector-1 ..Variation Selector-16
(0x0fe20, 0x0fe26,), # Combining Ligature Left ..Combining Conjoining Mac
(0x101fd, 0x101fd,), # Phaistos Disc Sign Combining Oblique Stroke
(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
(0x11001, 0x11001,), # 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
(0x116ad, 0x116ad,), # Takri Vowel Sign Aa
(0x116b0, 0x116b5,), # Takri Vowel Sign U ..Takri Vowel Sign Au
(0x116b7, 0x116b7,), # 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
(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 Qatan
(0x00610, 0x0061a,), # Arabic Sign Sallallahou ..Arabic Small Kasra
(0x0064b, 0x0065f,), # Arabic Fathatan ..Arabic Wavy Hamza Below
(0x00670, 0x00670,), # Arabic Letter Superscript Alef
(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 Superscript Alaph
(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
(0x0093c, 0x0093c,), # Devanagari Sign Nukta
(0x00941, 0x00948,), # Devanagari Vowel Sign U ..Devanagari Vowel Sign Ai
(0x0094d, 0x0094d,), # 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
(0x009bc, 0x009bc,), # Bengali Sign Nukta
(0x009c1, 0x009c4,), # Bengali Vowel Sign U ..Bengali Vowel Sign Vocal
(0x009cd, 0x009cd,), # 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
(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
(0x00a70, 0x00a71,), # Gurmukhi Tippi ..Gurmukhi Addak
(0x00a75, 0x00a75,), # Gurmukhi Sign Yakash
(0x00a81, 0x00a82,), # Gujarati Sign Candrabind..Gujarati Sign Anusvara
(0x00abc, 0x00abc,), # 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
(0x00ae2, 0x00ae3,), # Gujarati Vowel Sign Voca..Gujarati Vowel Sign Voca
(0x00b01, 0x00b01,), # Oriya Sign Candrabindu
(0x00b3c, 0x00b3c,), # Oriya Sign Nukta
(0x00b3f, 0x00b3f,), # Oriya Vowel Sign I
(0x00b41, 0x00b44,), # Oriya Vowel Sign U ..Oriya Vowel Sign Vocalic
(0x00b4d, 0x00b4d,), # Oriya Sign Virama
(0x00b56, 0x00b56,), # Oriya Ai Length Mark
(0x00b62, 0x00b63,), # Oriya Vowel Sign Vocalic..Oriya Vowel Sign Vocalic
(0x00b82, 0x00b82,), # Tamil Sign Anusvara
(0x00bc0, 0x00bc0,), # Tamil Vowel Sign Ii
(0x00bcd, 0x00bcd,), # 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
(0x00cbf, 0x00cbf,), # Kannada Vowel Sign I
(0x00cc6, 0x00cc6,), # 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
(0x00d62, 0x00d63,), # Malayalam Vowel Sign Voc..Malayalam Vowel Sign Voc
(0x00dca, 0x00dca,), # Sinhala Sign Al-lakuna
(0x00dd2, 0x00dd4,), # Sinhala Vowel Sign Ketti..Sinhala Vowel Sign Ketti
(0x00dd6, 0x00dd6,), # Sinhala Vowel Sign Diga Paa-pilla
(0x00e31, 0x00e31,), # Thai Character Mai Han-akat
(0x00e34, 0x00e3a,), # Thai Character Sara I ..Thai Character Phinthu
(0x00e47, 0x00e4e,), # Thai Character Maitaikhu..Thai Character Yamakkan
(0x00eb1, 0x00eb1,), # 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 Nyi Zla
(0x00f37, 0x00f37,), # Tibetan Mark Ngas Bzung Sgor Rtags
(0x00f39, 0x00f39,), # 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 Gdan
(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 Shan Medial Wa
(0x01085, 0x01086,), # Myanmar Vowel Sign Shan ..Myanmar Vowel Sign Shan
(0x0108d, 0x0108d,), # Myanmar Sign Shan Council Emphatic Tone
(0x0109d, 0x0109d,), # Myanmar Vowel Sign Aiton Ai
(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
(0x017c9, 0x017d3,), # Khmer Sign Muusikatoan ..Khmer Sign Bathamasat
(0x017dd, 0x017dd,), # Khmer Sign Atthacan
(0x0180b, 0x0180d,), # Mongolian Free Variation..Mongolian Free Variation
(0x018a9, 0x018a9,), # Mongolian Letter Ali Gali Dagalga
(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 Anusvara
(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
(0x01a56, 0x01a56,), # Tai Tham Consonant Sign Medial La
(0x01a58, 0x01a5e,), # Tai Tham Sign Mai Kang L..Tai Tham Consonant Sign
(0x01a60, 0x01a60,), # Tai Tham Sign Sakot
(0x01a62, 0x01a62,), # Tai Tham Vowel Sign Mai Sat
(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 Cryptogrammic Dot
(0x01b00, 0x01b03,), # Balinese Sign Ulu Ricem ..Balinese Sign Surang
(0x01b34, 0x01b34,), # Balinese Sign Rerekan
(0x01b36, 0x01b3a,), # Balinese Vowel Sign Ulu ..Balinese Vowel Sign Ra R
(0x01b3c, 0x01b3c,), # Balinese Vowel Sign La Lenga
(0x01b42, 0x01b42,), # Balinese Vowel Sign Pepet
(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
(0x01be6, 0x01be6,), # Batak Sign Tompi
(0x01be8, 0x01be9,), # Batak Vowel Sign Pakpak ..Batak Vowel Sign Ee
(0x01bed, 0x01bed,), # 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
(0x01cf4, 0x01cf4,), # 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 Joiner
(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 Letter Iotified E
(0x0a6f0, 0x0a6f1,), # Bamum Combining Mark Koq..Bamum Combining Mark Tuk
(0x0a802, 0x0a802,), # Syloti Nagri Sign Dvisvara
(0x0a806, 0x0a806,), # Syloti Nagri Sign Hasanta
(0x0a80b, 0x0a80b,), # Syloti Nagri Sign Anusvara
(0x0a825, 0x0a826,), # Syloti Nagri Vowel Sign ..Syloti Nagri Vowel Sign
(0x0a8c4, 0x0a8c4,), # 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
(0x0a9b6, 0x0a9b9,), # Javanese Vowel Sign Wulu..Javanese Vowel Sign Suku
(0x0a9bc, 0x0a9bc,), # Javanese Vowel Sign Pepet
(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 Final Ng
(0x0aa4c, 0x0aa4c,), # Cham Consonant Sign Final M
(0x0aab0, 0x0aab0,), # 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
(0x0aaec, 0x0aaed,), # Meetei Mayek Vowel Sign ..Meetei Mayek Vowel Sign
(0x0aaf6, 0x0aaf6,), # Meetei Mayek Virama
(0x0abe5, 0x0abe5,), # Meetei Mayek Vowel Sign Anap
(0x0abe8, 0x0abe8,), # Meetei Mayek Vowel Sign Unap
(0x0abed, 0x0abed,), # Meetei Mayek Apun Iyek
(0x0fb1e, 0x0fb1e,), # Hebrew Point Judeo-spanish Varika
(0x0fe00, 0x0fe0f,), # Variation Selector-1 ..Variation Selector-16
(0x0fe20, 0x0fe26,), # Combining Ligature Left ..Combining Conjoining Mac
(0x101fd, 0x101fd,), # Phaistos Disc Sign Combining Oblique Stroke
(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
(0x11001, 0x11001,), # 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
(0x116ad, 0x116ad,), # Takri Vowel Sign Aa
(0x116b0, 0x116b5,), # Takri Vowel Sign U ..Takri Vowel Sign Au
(0x116b7, 0x116b7,), # 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
(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 Qatan
(0x00610, 0x0061a,), # Arabic Sign Sallallahou ..Arabic Small Kasra
(0x0064b, 0x0065f,), # Arabic Fathatan ..Arabic Wavy Hamza Below
(0x00670, 0x00670,), # Arabic Letter Superscript Alef
(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 Superscript Alaph
(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
(0x0093c, 0x0093c,), # Devanagari Sign Nukta
(0x00941, 0x00948,), # Devanagari Vowel Sign U ..Devanagari Vowel Sign Ai
(0x0094d, 0x0094d,), # 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
(0x009bc, 0x009bc,), # Bengali Sign Nukta
(0x009c1, 0x009c4,), # Bengali Vowel Sign U ..Bengali Vowel Sign Vocal
(0x009cd, 0x009cd,), # 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
(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
(0x00a70, 0x00a71,), # Gurmukhi Tippi ..Gurmukhi Addak
(0x00a75, 0x00a75,), # Gurmukhi Sign Yakash
(0x00a81, 0x00a82,), # Gujarati Sign Candrabind..Gujarati Sign Anusvara
(0x00abc, 0x00abc,), # 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
(0x00ae2, 0x00ae3,), # Gujarati Vowel Sign Voca..Gujarati Vowel Sign Voca
(0x00b01, 0x00b01,), # Oriya Sign Candrabindu
(0x00b3c, 0x00b3c,), # Oriya Sign Nukta
(0x00b3f, 0x00b3f,), # Oriya Vowel Sign I
(0x00b41, 0x00b44,), # Oriya Vowel Sign U ..Oriya Vowel Sign Vocalic
(0x00b4d, 0x00b4d,), # Oriya Sign Virama
(0x00b56, 0x00b56,), # Oriya Ai Length Mark
(0x00b62, 0x00b63,), # Oriya Vowel Sign Vocalic..Oriya Vowel Sign Vocalic
(0x00b82, 0x00b82,), # Tamil Sign Anusvara
(0x00bc0, 0x00bc0,), # Tamil Vowel Sign Ii
(0x00bcd, 0x00bcd,), # Tamil Sign Virama
(0x00c00, 0x00c00,), # Telugu Sign Combining Candrabindu Above
(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
(0x00cbc, 0x00cbc,), # Kannada Sign Nukta
(0x00cbf, 0x00cbf,), # Kannada Vowel Sign I
(0x00cc6, 0x00cc6,), # 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 Candrabindu
(0x00d41, 0x00d44,), # Malayalam Vowel Sign U ..Malayalam Vowel Sign Voc
(0x00d4d, 0x00d4d,), # Malayalam Sign Virama
(0x00d62, 0x00d63,), # Malayalam Vowel Sign Voc..Malayalam Vowel Sign Voc
(0x00dca, 0x00dca,), # Sinhala Sign Al-lakuna
(0x00dd2, 0x00dd4,), # Sinhala Vowel Sign Ketti..Sinhala Vowel Sign Ketti
(0x00dd6, 0x00dd6,), # Sinhala Vowel Sign Diga Paa-pilla
(0x00e31, 0x00e31,), # Thai Character Mai Han-akat
(0x00e34, 0x00e3a,), # Thai Character Sara I ..Thai Character Phinthu
(0x00e47, 0x00e4e,), # Thai Character Maitaikhu..Thai Character Yamakkan
(0x00eb1, 0x00eb1,), # 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 Nyi Zla
(0x00f37, 0x00f37,), # Tibetan Mark Ngas Bzung Sgor Rtags
(0x00f39, 0x00f39,), # 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 Gdan
(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 Shan Medial Wa
(0x01085, 0x01086,), # Myanmar Vowel Sign Shan ..Myanmar Vowel Sign Shan
(0x0108d, 0x0108d,), # Myanmar Sign Shan Council Emphatic Tone
(0x0109d, 0x0109d,), # Myanmar Vowel Sign Aiton Ai
(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
(0x017c9, 0x017d3,), # Khmer Sign Muusikatoan ..Khmer Sign Bathamasat
(0x017dd, 0x017dd,), # Khmer Sign Atthacan
(0x0180b, 0x0180d,), # Mongolian Free Variation..Mongolian Free Variation
(0x018a9, 0x018a9,), # Mongolian Letter Ali Gali Dagalga
(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 Anusvara
(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
(0x01a56, 0x01a56,), # Tai Tham Consonant Sign Medial La
(0x01a58, 0x01a5e,), # Tai Tham Sign Mai Kang L..Tai Tham Consonant Sign
(0x01a60, 0x01a60,), # Tai Tham Sign Sakot
(0x01a62, 0x01a62,), # Tai Tham Vowel Sign Mai Sat
(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 Cryptogrammic Dot
(0x01ab0, 0x01abe,), # Combining Doubled Circum..Combining Parentheses Ov
(0x01b00, 0x01b03,), # Balinese Sign Ulu Ricem ..Balinese Sign Surang
(0x01b34, 0x01b34,), # Balinese Sign Rerekan
(0x01b36, 0x01b3a,), # Balinese Vowel Sign Ulu ..Balinese Vowel Sign Ra R
(0x01b3c, 0x01b3c,), # Balinese Vowel Sign La Lenga
(0x01b42, 0x01b42,), # Balinese Vowel Sign Pepet
(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
(0x01be8, 0x01be9,), # Batak Vowel Sign Pakpak ..Batak Vowel Sign Ee
(0x01bed, 0x01bed,), # 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
(0x01cf4, 0x01cf4,), # 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 Joiner
(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 Letter Iotified E
(0x0a6f0, 0x0a6f1,), # Bamum Combining Mark Koq..Bamum Combining Mark Tuk
(0x0a802, 0x0a802,), # Syloti Nagri Sign Dvisvara
(0x0a806, 0x0a806,), # Syloti Nagri Sign Hasanta
(0x0a80b, 0x0a80b,), # Syloti Nagri Sign Anusvara
(0x0a825, 0x0a826,), # Syloti Nagri Vowel Sign ..Syloti Nagri Vowel Sign
(0x0a8c4, 0x0a8c4,), # 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
(0x0a9b6, 0x0a9b9,), # Javanese Vowel Sign Wulu..Javanese Vowel Sign Suku
(0x0a9bc, 0x0a9bc,), # Javanese Vowel Sign Pepet
(0x0a9e5, 0x0a9e5,), # 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 Final Ng
(0x0aa4c, 0x0aa4c,), # Cham Consonant Sign Final M
(0x0aa7c, 0x0aa7c,), # Myanmar Sign Tai Laing Tone-2
(0x0aab0, 0x0aab0,), # 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
(0x0aaec, 0x0aaed,), # Meetei Mayek Vowel Sign ..Meetei Mayek Vowel Sign
(0x0aaf6, 0x0aaf6,), # Meetei Mayek Virama
(0x0abe5, 0x0abe5,), # Meetei Mayek Vowel Sign Anap
(0x0abe8, 0x0abe8,), # Meetei Mayek Vowel Sign Unap
(0x0abed, 0x0abed,), # Meetei Mayek Apun Iyek
(0x0fb1e, 0x0fb1e,), # Hebrew Point Judeo-spanish Varika
(0x0fe00, 0x0fe0f,), # Variation Selector-1 ..Variation Selector-16
(0x0fe20, 0x0fe2d,), # Combining Ligature Left ..Combining Conjoining Mac
(0x101fd, 0x101fd,), # Phaistos Disc Sign Combining Oblique Stroke
(0x102e0, 0x102e0,), # Coptic Epact Thousands Mark
(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
(0x10ae5, 0x10ae6,), # Manichaean Abbreviation ..Manichaean Abbreviation
(0x11001, 0x11001,), # 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
(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
(0x11236, 0x11237,), # Khojki Sign Nukta ..Khojki Sign Shadda
(0x112df, 0x112df,), # Khudawadi Sign Anusvara
(0x112e3, 0x112ea,), # Khudawadi Vowel Sign U ..Khudawadi Sign Virama
(0x11301, 0x11301,), # Grantha Sign Candrabindu
(0x1133c, 0x1133c,), # Grantha Sign Nukta
(0x11340, 0x11340,), # 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 E
(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
(0x1163f, 0x11640,), # Modi Sign Virama ..Modi Sign Ardhacandra
(0x116ab, 0x116ab,), # Takri Sign Anusvara
(0x116ad, 0x116ad,), # Takri Vowel Sign Aa
(0x116b0, 0x116b5,), # Takri Vowel Sign U ..Takri Vowel Sign Au
(0x116b7, 0x116b7,), # 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
(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 Qatan
(0x00610, 0x0061a,), # Arabic Sign Sallallahou ..Arabic Small Kasra
(0x0064b, 0x0065f,), # Arabic Fathatan ..Arabic Wavy Hamza Below
(0x00670, 0x00670,), # Arabic Letter Superscript Alef
(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 Superscript Alaph
(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
(0x0093c, 0x0093c,), # Devanagari Sign Nukta
(0x00941, 0x00948,), # Devanagari Vowel Sign U ..Devanagari Vowel Sign Ai
(0x0094d, 0x0094d,), # 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
(0x009bc, 0x009bc,), # Bengali Sign Nukta
(0x009c1, 0x009c4,), # Bengali Vowel Sign U ..Bengali Vowel Sign Vocal
(0x009cd, 0x009cd,), # 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
(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
(0x00a70, 0x00a71,), # Gurmukhi Tippi ..Gurmukhi Addak
(0x00a75, 0x00a75,), # Gurmukhi Sign Yakash
(0x00a81, 0x00a82,), # Gujarati Sign Candrabind..Gujarati Sign Anusvara
(0x00abc, 0x00abc,), # 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
(0x00ae2, 0x00ae3,), # Gujarati Vowel Sign Voca..Gujarati Vowel Sign Voca
(0x00b01, 0x00b01,), # Oriya Sign Candrabindu
(0x00b3c, 0x00b3c,), # Oriya Sign Nukta
(0x00b3f, 0x00b3f,), # Oriya Vowel Sign I
(0x00b41, 0x00b44,), # Oriya Vowel Sign U ..Oriya Vowel Sign Vocalic
(0x00b4d, 0x00b4d,), # Oriya Sign Virama
(0x00b56, 0x00b56,), # Oriya Ai Length Mark
(0x00b62, 0x00b63,), # Oriya Vowel Sign Vocalic..Oriya Vowel Sign Vocalic
(0x00b82, 0x00b82,), # Tamil Sign Anusvara
(0x00bc0, 0x00bc0,), # Tamil Vowel Sign Ii
(0x00bcd, 0x00bcd,), # Tamil Sign Virama
(0x00c00, 0x00c00,), # Telugu Sign Combining Candrabindu Above
(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
(0x00cbc, 0x00cbc,), # Kannada Sign Nukta
(0x00cbf, 0x00cbf,), # Kannada Vowel Sign I
(0x00cc6, 0x00cc6,), # 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 Candrabindu
(0x00d41, 0x00d44,), # Malayalam Vowel Sign U ..Malayalam Vowel Sign Voc
(0x00d4d, 0x00d4d,), # Malayalam Sign Virama
(0x00d62, 0x00d63,), # Malayalam Vowel Sign Voc..Malayalam Vowel Sign Voc
(0x00dca, 0x00dca,), # Sinhala Sign Al-lakuna
(0x00dd2, 0x00dd4,), # Sinhala Vowel Sign Ketti..Sinhala Vowel Sign Ketti
(0x00dd6, 0x00dd6,), # Sinhala Vowel Sign Diga Paa-pilla
(0x00e31, 0x00e31,), # Thai Character Mai Han-akat
(0x00e34, 0x00e3a,), # Thai Character Sara I ..Thai Character Phinthu
(0x00e47, 0x00e4e,), # Thai Character Maitaikhu..Thai Character Yamakkan
(0x00eb1, 0x00eb1,), # 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 Nyi Zla
(0x00f37, 0x00f37,), # Tibetan Mark Ngas Bzung Sgor Rtags
(0x00f39, 0x00f39,), # 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 Gdan
(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 Shan Medial Wa
(0x01085, 0x01086,), # Myanmar Vowel Sign Shan ..Myanmar Vowel Sign Shan
(0x0108d, 0x0108d,), # Myanmar Sign Shan Council Emphatic Tone
(0x0109d, 0x0109d,), # Myanmar Vowel Sign Aiton Ai
(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
(0x017c9, 0x017d3,), # Khmer Sign Muusikatoan ..Khmer Sign Bathamasat
(0x017dd, 0x017dd,), # Khmer Sign Atthacan
(0x0180b, 0x0180d,), # Mongolian Free Variation..Mongolian Free Variation
(0x018a9, 0x018a9,), # Mongolian Letter Ali Gali Dagalga
(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 Anusvara
(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
(0x01a56, 0x01a56,), # Tai Tham Consonant Sign Medial La
(0x01a58, 0x01a5e,), # Tai Tham Sign Mai Kang L..Tai Tham Consonant Sign
(0x01a60, 0x01a60,), # Tai Tham Sign Sakot
(0x01a62, 0x01a62,), # Tai Tham Vowel Sign Mai Sat
(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 Cryptogrammic Dot
(0x01ab0, 0x01abe,), # Combining Doubled Circum..Combining Parentheses Ov
(0x01b00, 0x01b03,), # Balinese Sign Ulu Ricem ..Balinese Sign Surang
(0x01b34, 0x01b34,), # Balinese Sign Rerekan
(0x01b36, 0x01b3a,), # Balinese Vowel Sign Ulu ..Balinese Vowel Sign Ra R
(0x01b3c, 0x01b3c,), # Balinese Vowel Sign La Lenga
(0x01b42, 0x01b42,), # Balinese Vowel Sign Pepet
(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
(0x01be8, 0x01be9,), # Batak Vowel Sign Pakpak ..Batak Vowel Sign Ee
(0x01bed, 0x01bed,), # 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
(0x01cf4, 0x01cf4,), # 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 Joiner
(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 Dvisvara
(0x0a806, 0x0a806,), # Syloti Nagri Sign Hasanta
(0x0a80b, 0x0a80b,), # Syloti Nagri Sign Anusvara
(0x0a825, 0x0a826,), # Syloti Nagri Vowel Sign ..Syloti Nagri Vowel Sign
(0x0a8c4, 0x0a8c4,), # 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
(0x0a9b6, 0x0a9b9,), # Javanese Vowel Sign Wulu..Javanese Vowel Sign Suku
(0x0a9bc, 0x0a9bc,), # Javanese Vowel Sign Pepet
(0x0a9e5, 0x0a9e5,), # 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 Final Ng
(0x0aa4c, 0x0aa4c,), # Cham Consonant Sign Final M
(0x0aa7c, 0x0aa7c,), # Myanmar Sign Tai Laing Tone-2
(0x0aab0, 0x0aab0,), # 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
(0x0aaec, 0x0aaed,), # Meetei Mayek Vowel Sign ..Meetei Mayek Vowel Sign
(0x0aaf6, 0x0aaf6,), # Meetei Mayek Virama
(0x0abe5, 0x0abe5,), # Meetei Mayek Vowel Sign Anap
(0x0abe8, 0x0abe8,), # Meetei Mayek Vowel Sign Unap
(0x0abed, 0x0abed,), # Meetei Mayek Apun Iyek
(0x0fb1e, 0x0fb1e,), # Hebrew Point Judeo-spanish Varika
(0x0fe00, 0x0fe0f,), # Variation Selector-1 ..Variation Selector-16
(0x0fe20, 0x0fe2f,), # Combining Ligature Left ..Combining Cyrillic Titlo
(0x101fd, 0x101fd,), # Phaistos Disc Sign Combining Oblique Stroke
(0x102e0, 0x102e0,), # Coptic Epact Thousands Mark
(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
(0x10ae5, 0x10ae6,), # Manichaean Abbreviation ..Manichaean Abbreviation
(0x11001, 0x11001,), # 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
(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
(0x11236, 0x11237,), # Khojki Sign Nukta ..Khojki Sign Shadda
(0x112df, 0x112df,), # 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
(0x11340, 0x11340,), # 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 E
(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
(0x1163f, 0x11640,), # Modi Sign Virama ..Modi Sign Ardhacandra
(0x116ab, 0x116ab,), # Takri Sign Anusvara
(0x116ad, 0x116ad,), # Takri Vowel Sign Aa
(0x116b0, 0x116b5,), # Takri Vowel Sign U ..Takri Vowel Sign Au
(0x116b7, 0x116b7,), # 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 Tilting From Hip Joints
(0x1da84, 0x1da84,), # Signwriting Location Head Neck
(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
(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 Qatan
(0x00610, 0x0061a,), # Arabic Sign Sallallahou ..Arabic Small Kasra
(0x0064b, 0x0065f,), # Arabic Fathatan ..Arabic Wavy Hamza Below
(0x00670, 0x00670,), # Arabic Letter Superscript Alef
(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 Superscript Alaph
(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
(0x0093c, 0x0093c,), # Devanagari Sign Nukta
(0x00941, 0x00948,), # Devanagari Vowel Sign U ..Devanagari Vowel Sign Ai
(0x0094d, 0x0094d,), # 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
(0x009bc, 0x009bc,), # Bengali Sign Nukta
(0x009c1, 0x009c4,), # Bengali Vowel Sign U ..Bengali Vowel Sign Vocal
(0x009cd, 0x009cd,), # 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
(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
(0x00a70, 0x00a71,), # Gurmukhi Tippi ..Gurmukhi Addak
(0x00a75, 0x00a75,), # Gurmukhi Sign Yakash
(0x00a81, 0x00a82,), # Gujarati Sign Candrabind..Gujarati Sign Anusvara
(0x00abc, 0x00abc,), # 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
(0x00ae2, 0x00ae3,), # Gujarati Vowel Sign Voca..Gujarati Vowel Sign Voca
(0x00b01, 0x00b01,), # Oriya Sign Candrabindu
(0x00b3c, 0x00b3c,), # Oriya Sign Nukta
(0x00b3f, 0x00b3f,), # Oriya Vowel Sign I
(0x00b41, 0x00b44,), # Oriya Vowel Sign U ..Oriya Vowel Sign Vocalic
(0x00b4d, 0x00b4d,), # Oriya Sign Virama
(0x00b56, 0x00b56,), # Oriya Ai Length Mark
(0x00b62, 0x00b63,), # Oriya Vowel Sign Vocalic..Oriya Vowel Sign Vocalic
(0x00b82, 0x00b82,), # Tamil Sign Anusvara
(0x00bc0, 0x00bc0,), # Tamil Vowel Sign Ii
(0x00bcd, 0x00bcd,), # Tamil Sign Virama
(0x00c00, 0x00c00,), # Telugu Sign Combining Candrabindu Above
(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
(0x00cbc, 0x00cbc,), # Kannada Sign Nukta
(0x00cbf, 0x00cbf,), # Kannada Vowel Sign I
(0x00cc6, 0x00cc6,), # 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 Candrabindu
(0x00d41, 0x00d44,), # Malayalam Vowel Sign U ..Malayalam Vowel Sign Voc
(0x00d4d, 0x00d4d,), # Malayalam Sign Virama
(0x00d62, 0x00d63,), # Malayalam Vowel Sign Voc..Malayalam Vowel Sign Voc
(0x00dca, 0x00dca,), # Sinhala Sign Al-lakuna
(0x00dd2, 0x00dd4,), # Sinhala Vowel Sign Ketti..Sinhala Vowel Sign Ketti
(0x00dd6, 0x00dd6,), # Sinhala Vowel Sign Diga Paa-pilla
(0x00e31, 0x00e31,), # Thai Character Mai Han-akat
(0x00e34, 0x00e3a,), # Thai Character Sara I ..Thai Character Phinthu
(0x00e47, 0x00e4e,), # Thai Character Maitaikhu..Thai Character Yamakkan
(0x00eb1, 0x00eb1,), # 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 Nyi Zla
(0x00f37, 0x00f37,), # Tibetan Mark Ngas Bzung Sgor Rtags
(0x00f39, 0x00f39,), # 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 Gdan
(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 Shan Medial Wa
(0x01085, 0x01086,), # Myanmar Vowel Sign Shan ..Myanmar Vowel Sign Shan
(0x0108d, 0x0108d,), # Myanmar Sign Shan Council Emphatic Tone
(0x0109d, 0x0109d,), # Myanmar Vowel Sign Aiton Ai
(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
(0x017c9, 0x017d3,), # Khmer Sign Muusikatoan ..Khmer Sign Bathamasat
(0x017dd, 0x017dd,), # 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 Gali Dagalga
(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 Anusvara
(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
(0x01a56, 0x01a56,), # Tai Tham Consonant Sign Medial La
(0x01a58, 0x01a5e,), # Tai Tham Sign Mai Kang L..Tai Tham Consonant Sign
(0x01a60, 0x01a60,), # Tai Tham Sign Sakot
(0x01a62, 0x01a62,), # Tai Tham Vowel Sign Mai Sat
(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 Cryptogrammic Dot
(0x01ab0, 0x01abe,), # Combining Doubled Circum..Combining Parentheses Ov
(0x01b00, 0x01b03,), # Balinese Sign Ulu Ricem ..Balinese Sign Surang
(0x01b34, 0x01b34,), # Balinese Sign Rerekan
(0x01b36, 0x01b3a,), # Balinese Vowel Sign Ulu ..Balinese Vowel Sign Ra R
(0x01b3c, 0x01b3c,), # Balinese Vowel Sign La Lenga
(0x01b42, 0x01b42,), # Balinese Vowel Sign Pepet
(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
(0x01be8, 0x01be9,), # Batak Vowel Sign Pakpak ..Batak Vowel Sign Ee
(0x01bed, 0x01bed,), # 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
(0x01cf4, 0x01cf4,), # 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 Joiner
(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 Dvisvara
(0x0a806, 0x0a806,), # Syloti Nagri Sign Hasanta
(0x0a80b, 0x0a80b,), # Syloti Nagri Sign Anusvara
(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
(0x0a9b6, 0x0a9b9,), # Javanese Vowel Sign Wulu..Javanese Vowel Sign Suku
(0x0a9bc, 0x0a9bc,), # Javanese Vowel Sign Pepet
(0x0a9e5, 0x0a9e5,), # 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 Final Ng
(0x0aa4c, 0x0aa4c,), # Cham Consonant Sign Final M
(0x0aa7c, 0x0aa7c,), # Myanmar Sign Tai Laing Tone-2
(0x0aab0, 0x0aab0,), # 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
(0x0aaec, 0x0aaed,), # Meetei Mayek Vowel Sign ..Meetei Mayek Vowel Sign
(0x0aaf6, 0x0aaf6,), # Meetei Mayek Virama
(0x0abe5, 0x0abe5,), # Meetei Mayek Vowel Sign Anap
(0x0abe8, 0x0abe8,), # Meetei Mayek Vowel Sign Unap
(0x0abed, 0x0abed,), # Meetei Mayek Apun Iyek
(0x0fb1e, 0x0fb1e,), # Hebrew Point Judeo-spanish Varika
(0x0fe00, 0x0fe0f,), # Variation Selector-1 ..Variation Selector-16
(0x0fe20, 0x0fe2f,), # Combining Ligature Left ..Combining Cyrillic Titlo
(0x101fd, 0x101fd,), # Phaistos Disc Sign Combining Oblique Stroke
(0x102e0, 0x102e0,), # Coptic Epact Thousands Mark
(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
(0x10ae5, 0x10ae6,), # Manichaean Abbreviation ..Manichaean Abbreviation
(0x11001, 0x11001,), # 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
(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
(0x11236, 0x11237,), # Khojki Sign Nukta ..Khojki Sign Shadda
(0x1123e, 0x1123e,), # Khojki Sign Sukun
(0x112df, 0x112df,), # 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
(0x11340, 0x11340,), # 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
(0x114b3, 0x114b8,), # Tirhuta Vowel Sign U ..Tirhuta Vowel Sign Vocal
(0x114ba, 0x114ba,), # Tirhuta Vowel Sign Short E
(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
(0x1163f, 0x11640,), # Modi Sign Virama ..Modi Sign Ardhacandra
(0x116ab, 0x116ab,), # Takri Sign Anusvara
(0x116ad, 0x116ad,), # Takri Vowel Sign Aa
(0x116b0, 0x116b5,), # Takri Vowel Sign U ..Takri Vowel Sign Au
(0x116b7, 0x116b7,), # 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
(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 Tilting From Hip Joints
(0x1da84, 0x1da84,), # Signwriting Location Head Neck
(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
(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 Qatan
(0x00610, 0x0061a,), # Arabic Sign Sallallahou ..Arabic Small Kasra
(0x0064b, 0x0065f,), # Arabic Fathatan ..Arabic Wavy Hamza Below
(0x00670, 0x00670,), # Arabic Letter Superscript Alef
(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 Superscript Alaph
(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
(0x0093c, 0x0093c,), # Devanagari Sign Nukta
(0x00941, 0x00948,), # Devanagari Vowel Sign U ..Devanagari Vowel Sign Ai
(0x0094d, 0x0094d,), # 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
(0x009bc, 0x009bc,), # Bengali Sign Nukta
(0x009c1, 0x009c4,), # Bengali Vowel Sign U ..Bengali Vowel Sign Vocal
(0x009cd, 0x009cd,), # 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
(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
(0x00a70, 0x00a71,), # Gurmukhi Tippi ..Gurmukhi Addak
(0x00a75, 0x00a75,), # Gurmukhi Sign Yakash
(0x00a81, 0x00a82,), # Gujarati Sign Candrabind..Gujarati Sign Anusvara
(0x00abc, 0x00abc,), # 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
(0x00ae2, 0x00ae3,), # Gujarati Vowel Sign Voca..Gujarati Vowel Sign Voca
(0x00afa, 0x00aff,), # Gujarati Sign Sukun ..Gujarati Sign Two-circle
(0x00b01, 0x00b01,), # Oriya Sign Candrabindu
(0x00b3c, 0x00b3c,), # Oriya Sign Nukta
(0x00b3f, 0x00b3f,), # Oriya Vowel Sign I
(0x00b41, 0x00b44,), # Oriya Vowel Sign U ..Oriya Vowel Sign Vocalic
(0x00b4d, 0x00b4d,), # Oriya Sign Virama
(0x00b56, 0x00b56,), # Oriya Ai Length Mark
(0x00b62, 0x00b63,), # Oriya Vowel Sign Vocalic..Oriya Vowel Sign Vocalic
(0x00b82, 0x00b82,), # Tamil Sign Anusvara
(0x00bc0, 0x00bc0,), # Tamil Vowel Sign Ii
(0x00bcd, 0x00bcd,), # Tamil Sign Virama
(0x00c00, 0x00c00,), # Telugu Sign Combining Candrabindu Above
(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
(0x00cbc, 0x00cbc,), # Kannada Sign Nukta
(0x00cbf, 0x00cbf,), # Kannada Vowel Sign I
(0x00cc6, 0x00cc6,), # 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
(0x00d62, 0x00d63,), # Malayalam Vowel Sign Voc..Malayalam Vowel Sign Voc
(0x00dca, 0x00dca,), # Sinhala Sign Al-lakuna
(0x00dd2, 0x00dd4,), # Sinhala Vowel Sign Ketti..Sinhala Vowel Sign Ketti
(0x00dd6, 0x00dd6,), # Sinhala Vowel Sign Diga Paa-pilla
(0x00e31, 0x00e31,), # Thai Character Mai Han-akat
(0x00e34, 0x00e3a,), # Thai Character Sara I ..Thai Character Phinthu
(0x00e47, 0x00e4e,), # Thai Character Maitaikhu..Thai Character Yamakkan
(0x00eb1, 0x00eb1,), # 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 Nyi Zla
(0x00f37, 0x00f37,), # Tibetan Mark Ngas Bzung Sgor Rtags
(0x00f39, 0x00f39,), # 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 Gdan
(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 Shan Medial Wa
(0x01085, 0x01086,), # Myanmar Vowel Sign Shan ..Myanmar Vowel Sign Shan
(0x0108d, 0x0108d,), # Myanmar Sign Shan Council Emphatic Tone
(0x0109d, 0x0109d,), # Myanmar Vowel Sign Aiton Ai
(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
(0x017c9, 0x017d3,), # Khmer Sign Muusikatoan ..Khmer Sign Bathamasat
(0x017dd, 0x017dd,), # 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 Gali Dagalga
(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 Anusvara
(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
(0x01a56, 0x01a56,), # Tai Tham Consonant Sign Medial La
(0x01a58, 0x01a5e,), # Tai Tham Sign Mai Kang L..Tai Tham Consonant Sign
(0x01a60, 0x01a60,), # Tai Tham Sign Sakot
(0x01a62, 0x01a62,), # Tai Tham Vowel Sign Mai Sat
(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 Cryptogrammic Dot
(0x01ab0, 0x01abe,), # Combining Doubled Circum..Combining Parentheses Ov
(0x01b00, 0x01b03,), # Balinese Sign Ulu Ricem ..Balinese Sign Surang
(0x01b34, 0x01b34,), # Balinese Sign Rerekan
(0x01b36, 0x01b3a,), # Balinese Vowel Sign Ulu ..Balinese Vowel Sign Ra R
(0x01b3c, 0x01b3c,), # Balinese Vowel Sign La Lenga
(0x01b42, 0x01b42,), # Balinese Vowel Sign Pepet
(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
(0x01be8, 0x01be9,), # Batak Vowel Sign Pakpak ..Batak Vowel Sign Ee
(0x01bed, 0x01bed,), # 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
(0x01cf4, 0x01cf4,), # 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 Joiner
(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 Dvisvara
(0x0a806, 0x0a806,), # Syloti Nagri Sign Hasanta
(0x0a80b, 0x0a80b,), # Syloti Nagri Sign Anusvara
(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
(0x0a9b6, 0x0a9b9,), # Javanese Vowel Sign Wulu..Javanese Vowel Sign Suku
(0x0a9bc, 0x0a9bc,), # Javanese Vowel Sign Pepet
(0x0a9e5, 0x0a9e5,), # 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 Final Ng
(0x0aa4c, 0x0aa4c,), # Cham Consonant Sign Final M
(0x0aa7c, 0x0aa7c,), # Myanmar Sign Tai Laing Tone-2
(0x0aab0, 0x0aab0,), # 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
(0x0aaec, 0x0aaed,), # Meetei Mayek Vowel Sign ..Meetei Mayek Vowel Sign
(0x0aaf6, 0x0aaf6,), # Meetei Mayek Virama
(0x0abe5, 0x0abe5,), # Meetei Mayek Vowel Sign Anap
(0x0abe8, 0x0abe8,), # Meetei Mayek Vowel Sign Unap
(0x0abed, 0x0abed,), # Meetei Mayek Apun Iyek
(0x0fb1e, 0x0fb1e,), # Hebrew Point Judeo-spanish Varika
(0x0fe00, 0x0fe0f,), # Variation Selector-1 ..Variation Selector-16
(0x0fe20, 0x0fe2f,), # Combining Ligature Left ..Combining Cyrillic Titlo
(0x101fd, 0x101fd,), # Phaistos Disc Sign Combining Oblique Stroke
(0x102e0, 0x102e0,), # Coptic Epact Thousands Mark
(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
(0x10ae5, 0x10ae6,), # Manichaean Abbreviation ..Manichaean Abbreviation
(0x11001, 0x11001,), # 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
(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
(0x11236, 0x11237,), # Khojki Sign Nukta ..Khojki Sign Shadda
(0x1123e, 0x1123e,), # Khojki Sign Sukun
(0x112df, 0x112df,), # 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
(0x11340, 0x11340,), # 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
(0x114b3, 0x114b8,), # Tirhuta Vowel Sign U ..Tirhuta Vowel Sign Vocal
(0x114ba, 0x114ba,), # Tirhuta Vowel Sign Short E
(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
(0x1163f, 0x11640,), # Modi Sign Virama ..Modi Sign Ardhacandra
(0x116ab, 0x116ab,), # Takri Sign Anusvara
(0x116ad, 0x116ad,), # Takri Vowel Sign Aa
(0x116b0, 0x116b5,), # Takri Vowel Sign U ..Takri Vowel Sign Au
(0x116b7, 0x116b7,), # 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 Subjoiner
(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
(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 E
(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
(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 Tilting From Hip Joints
(0x1da84, 0x1da84,), # Signwriting Location Head Neck
(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
(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 Qatan
(0x00610, 0x0061a,), # Arabic Sign Sallallahou ..Arabic Small Kasra
(0x0064b, 0x0065f,), # Arabic Fathatan ..Arabic Wavy Hamza Below
(0x00670, 0x00670,), # Arabic Letter Superscript Alef
(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 Superscript Alaph
(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
(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
(0x0093c, 0x0093c,), # Devanagari Sign Nukta
(0x00941, 0x00948,), # Devanagari Vowel Sign U ..Devanagari Vowel Sign Ai
(0x0094d, 0x0094d,), # 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
(0x009bc, 0x009bc,), # Bengali Sign Nukta
(0x009c1, 0x009c4,), # Bengali Vowel Sign U ..Bengali Vowel Sign Vocal
(0x009cd, 0x009cd,), # Bengali Sign Virama
(0x009e2, 0x009e3,), # Bengali Vowel Sign Vocal..Bengali Vowel Sign Vocal
(0x009fe, 0x009fe,), # Bengali Sandhi Mark
(0x00a01, 0x00a02,), # Gurmukhi Sign Adak Bindi..Gurmukhi Sign Bindi
(0x00a3c, 0x00a3c,), # 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
(0x00a70, 0x00a71,), # Gurmukhi Tippi ..Gurmukhi Addak
(0x00a75, 0x00a75,), # Gurmukhi Sign Yakash
(0x00a81, 0x00a82,), # Gujarati Sign Candrabind..Gujarati Sign Anusvara
(0x00abc, 0x00abc,), # 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
(0x00ae2, 0x00ae3,), # Gujarati Vowel Sign Voca..Gujarati Vowel Sign Voca
(0x00afa, 0x00aff,), # Gujarati Sign Sukun ..Gujarati Sign Two-circle
(0x00b01, 0x00b01,), # Oriya Sign Candrabindu
(0x00b3c, 0x00b3c,), # Oriya Sign Nukta
(0x00b3f, 0x00b3f,), # Oriya Vowel Sign I
(0x00b41, 0x00b44,), # Oriya Vowel Sign U ..Oriya Vowel Sign Vocalic
(0x00b4d, 0x00b4d,), # Oriya Sign Virama
(0x00b56, 0x00b56,), # Oriya Ai Length Mark
(0x00b62, 0x00b63,), # Oriya Vowel Sign Vocalic..Oriya Vowel Sign Vocalic
(0x00b82, 0x00b82,), # Tamil Sign Anusvara
(0x00bc0, 0x00bc0,), # Tamil Vowel Sign Ii
(0x00bcd, 0x00bcd,), # Tamil Sign Virama
(0x00c00, 0x00c00,), # Telugu Sign Combining Candrabindu Above
(0x00c04, 0x00c04,), # Telugu Sign Combining Anusvara Above
(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
(0x00cbc, 0x00cbc,), # Kannada Sign Nukta
(0x00cbf, 0x00cbf,), # Kannada Vowel Sign I
(0x00cc6, 0x00cc6,), # 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
(0x00d62, 0x00d63,), # Malayalam Vowel Sign Voc..Malayalam Vowel Sign Voc
(0x00dca, 0x00dca,), # Sinhala Sign Al-lakuna
(0x00dd2, 0x00dd4,), # Sinhala Vowel Sign Ketti..Sinhala Vowel Sign Ketti
(0x00dd6, 0x00dd6,), # Sinhala Vowel Sign Diga Paa-pilla
(0x00e31, 0x00e31,), # Thai Character Mai Han-akat
(0x00e34, 0x00e3a,), # Thai Character Sara I ..Thai Character Phinthu
(0x00e47, 0x00e4e,), # Thai Character Maitaikhu..Thai Character Yamakkan
(0x00eb1, 0x00eb1,), # 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 Nyi Zla
(0x00f37, 0x00f37,), # Tibetan Mark Ngas Bzung Sgor Rtags
(0x00f39, 0x00f39,), # 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 Gdan
(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 Shan Medial Wa
(0x01085, 0x01086,), # Myanmar Vowel Sign Shan ..Myanmar Vowel Sign Shan
(0x0108d, 0x0108d,), # Myanmar Sign Shan Council Emphatic Tone
(0x0109d, 0x0109d,), # Myanmar Vowel Sign Aiton Ai
(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
(0x017c9, 0x017d3,), # Khmer Sign Muusikatoan ..Khmer Sign Bathamasat
(0x017dd, 0x017dd,), # 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 Gali Dagalga
(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 Anusvara
(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
(0x01a56, 0x01a56,), # Tai Tham Consonant Sign Medial La
(0x01a58, 0x01a5e,), # Tai Tham Sign Mai Kang L..Tai Tham Consonant Sign
(0x01a60, 0x01a60,), # Tai Tham Sign Sakot
(0x01a62, 0x01a62,), # Tai Tham Vowel Sign Mai Sat
(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 Cryptogrammic Dot
(0x01ab0, 0x01abe,), # Combining Doubled Circum..Combining Parentheses Ov
(0x01b00, 0x01b03,), # Balinese Sign Ulu Ricem ..Balinese Sign Surang
(0x01b34, 0x01b34,), # Balinese Sign Rerekan
(0x01b36, 0x01b3a,), # Balinese Vowel Sign Ulu ..Balinese Vowel Sign Ra R
(0x01b3c, 0x01b3c,), # Balinese Vowel Sign La Lenga
(0x01b42, 0x01b42,), # Balinese Vowel Sign Pepet
(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
(0x01be8, 0x01be9,), # Batak Vowel Sign Pakpak ..Batak Vowel Sign Ee
(0x01bed, 0x01bed,), # 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
(0x01cf4, 0x01cf4,), # 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 Joiner
(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 Dvisvara
(0x0a806, 0x0a806,), # Syloti Nagri Sign Hasanta
(0x0a80b, 0x0a80b,), # Syloti Nagri Sign Anusvara
(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
(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
(0x0a9b6, 0x0a9b9,), # Javanese Vowel Sign Wulu..Javanese Vowel Sign Suku
(0x0a9bc, 0x0a9bc,), # Javanese Vowel Sign Pepet
(0x0a9e5, 0x0a9e5,), # 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 Final Ng
(0x0aa4c, 0x0aa4c,), # Cham Consonant Sign Final M
(0x0aa7c, 0x0aa7c,), # Myanmar Sign Tai Laing Tone-2
(0x0aab0, 0x0aab0,), # 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
(0x0aaec, 0x0aaed,), # Meetei Mayek Vowel Sign ..Meetei Mayek Vowel Sign
(0x0aaf6, 0x0aaf6,), # Meetei Mayek Virama
(0x0abe5, 0x0abe5,), # Meetei Mayek Vowel Sign Anap
(0x0abe8, 0x0abe8,), # Meetei Mayek Vowel Sign Unap
(0x0abed, 0x0abed,), # Meetei Mayek Apun Iyek
(0x0fb1e, 0x0fb1e,), # Hebrew Point Judeo-spanish Varika
(0x0fe00, 0x0fe0f,), # Variation Selector-1 ..Variation Selector-16
(0x0fe20, 0x0fe2f,), # Combining Ligature Left ..Combining Cyrillic Titlo
(0x101fd, 0x101fd,), # Phaistos Disc Sign Combining Oblique Stroke
(0x102e0, 0x102e0,), # Coptic Epact Thousands Mark
(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
(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
(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
(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
(0x11236, 0x11237,), # Khojki Sign Nukta ..Khojki Sign Shadda
(0x1123e, 0x1123e,), # Khojki Sign Sukun
(0x112df, 0x112df,), # 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
(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
(0x1145e, 0x1145e,), # Newa Sandhi Mark
(0x114b3, 0x114b8,), # Tirhuta Vowel Sign U ..Tirhuta Vowel Sign Vocal
(0x114ba, 0x114ba,), # Tirhuta Vowel Sign Short E
(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
(0x1163f, 0x11640,), # Modi Sign Virama ..Modi Sign Ardhacandra
(0x116ab, 0x116ab,), # Takri Sign Anusvara
(0x116ad, 0x116ad,), # Takri Vowel Sign Aa
(0x116b0, 0x116b5,), # Takri Vowel Sign U ..Takri Vowel Sign Au
(0x116b7, 0x116b7,), # 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 Subjoiner
(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
(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 E
(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
(0x11d90, 0x11d91,), # Gunjala Gondi Vowel Sign..Gunjala Gondi Vowel Sign
(0x11d95, 0x11d95,), # Gunjala Gondi Sign Anusvara
(0x11d97, 0x11d97,), # 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 Tilting From Hip Joints
(0x1da84, 0x1da84,), # Signwriting Location Head Neck
(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
(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 Qatan
(0x00610, 0x0061a,), # Arabic Sign Sallallahou ..Arabic Small Kasra
(0x0064b, 0x0065f,), # Arabic Fathatan ..Arabic Wavy Hamza Below
(0x00670, 0x00670,), # Arabic Letter Superscript Alef
(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 Superscript Alaph
(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
(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
(0x0093c, 0x0093c,), # Devanagari Sign Nukta
(0x00941, 0x00948,), # Devanagari Vowel Sign U ..Devanagari Vowel Sign Ai
(0x0094d, 0x0094d,), # 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
(0x009bc, 0x009bc,), # Bengali Sign Nukta
(0x009c1, 0x009c4,), # Bengali Vowel Sign U ..Bengali Vowel Sign Vocal
(0x009cd, 0x009cd,), # Bengali Sign Virama
(0x009e2, 0x009e3,), # Bengali Vowel Sign Vocal..Bengali Vowel Sign Vocal
(0x009fe, 0x009fe,), # Bengali Sandhi Mark
(0x00a01, 0x00a02,), # Gurmukhi Sign Adak Bindi..Gurmukhi Sign Bindi
(0x00a3c, 0x00a3c,), # 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
(0x00a70, 0x00a71,), # Gurmukhi Tippi ..Gurmukhi Addak
(0x00a75, 0x00a75,), # Gurmukhi Sign Yakash
(0x00a81, 0x00a82,), # Gujarati Sign Candrabind..Gujarati Sign Anusvara
(0x00abc, 0x00abc,), # 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
(0x00ae2, 0x00ae3,), # Gujarati Vowel Sign Voca..Gujarati Vowel Sign Voca
(0x00afa, 0x00aff,), # Gujarati Sign Sukun ..Gujarati Sign Two-circle
(0x00b01, 0x00b01,), # Oriya Sign Candrabindu
(0x00b3c, 0x00b3c,), # Oriya Sign Nukta
(0x00b3f, 0x00b3f,), # Oriya Vowel Sign I
(0x00b41, 0x00b44,), # Oriya Vowel Sign U ..Oriya Vowel Sign Vocalic
(0x00b4d, 0x00b4d,), # Oriya Sign Virama
(0x00b56, 0x00b56,), # Oriya Ai Length Mark
(0x00b62, 0x00b63,), # Oriya Vowel Sign Vocalic..Oriya Vowel Sign Vocalic
(0x00b82, 0x00b82,), # Tamil Sign Anusvara
(0x00bc0, 0x00bc0,), # Tamil Vowel Sign Ii
(0x00bcd, 0x00bcd,), # Tamil Sign Virama
(0x00c00, 0x00c00,), # Telugu Sign Combining Candrabindu Above
(0x00c04, 0x00c04,), # Telugu Sign Combining Anusvara Above
(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
(0x00cbc, 0x00cbc,), # Kannada Sign Nukta
(0x00cbf, 0x00cbf,), # Kannada Vowel Sign I
(0x00cc6, 0x00cc6,), # 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
(0x00d62, 0x00d63,), # Malayalam Vowel Sign Voc..Malayalam Vowel Sign Voc
(0x00dca, 0x00dca,), # Sinhala Sign Al-lakuna
(0x00dd2, 0x00dd4,), # Sinhala Vowel Sign Ketti..Sinhala Vowel Sign Ketti
(0x00dd6, 0x00dd6,), # Sinhala Vowel Sign Diga Paa-pilla
(0x00e31, 0x00e31,), # Thai Character Mai Han-akat
(0x00e34, 0x00e3a,), # Thai Character Sara I ..Thai Character Phinthu
(0x00e47, 0x00e4e,), # Thai Character Maitaikhu..Thai Character Yamakkan
(0x00eb1, 0x00eb1,), # 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 Nyi Zla
(0x00f37, 0x00f37,), # Tibetan Mark Ngas Bzung Sgor Rtags
(0x00f39, 0x00f39,), # 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 Gdan
(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 Shan Medial Wa
(0x01085, 0x01086,), # Myanmar Vowel Sign Shan ..Myanmar Vowel Sign Shan
(0x0108d, 0x0108d,), # Myanmar Sign Shan Council Emphatic Tone
(0x0109d, 0x0109d,), # Myanmar Vowel Sign Aiton Ai
(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
(0x017c9, 0x017d3,), # Khmer Sign Muusikatoan ..Khmer Sign Bathamasat
(0x017dd, 0x017dd,), # 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 Gali Dagalga
(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 Anusvara
(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
(0x01a56, 0x01a56,), # Tai Tham Consonant Sign Medial La
(0x01a58, 0x01a5e,), # Tai Tham Sign Mai Kang L..Tai Tham Consonant Sign
(0x01a60, 0x01a60,), # Tai Tham Sign Sakot
(0x01a62, 0x01a62,), # Tai Tham Vowel Sign Mai Sat
(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 Cryptogrammic Dot
(0x01ab0, 0x01abe,), # Combining Doubled Circum..Combining Parentheses Ov
(0x01b00, 0x01b03,), # Balinese Sign Ulu Ricem ..Balinese Sign Surang
(0x01b34, 0x01b34,), # Balinese Sign Rerekan
(0x01b36, 0x01b3a,), # Balinese Vowel Sign Ulu ..Balinese Vowel Sign Ra R
(0x01b3c, 0x01b3c,), # Balinese Vowel Sign La Lenga
(0x01b42, 0x01b42,), # Balinese Vowel Sign Pepet
(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
(0x01be8, 0x01be9,), # Batak Vowel Sign Pakpak ..Batak Vowel Sign Ee
(0x01bed, 0x01bed,), # 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
(0x01cf4, 0x01cf4,), # 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 Joiner
(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 Dvisvara
(0x0a806, 0x0a806,), # Syloti Nagri Sign Hasanta
(0x0a80b, 0x0a80b,), # Syloti Nagri Sign Anusvara
(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
(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
(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
(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 Final Ng
(0x0aa4c, 0x0aa4c,), # Cham Consonant Sign Final M
(0x0aa7c, 0x0aa7c,), # Myanmar Sign Tai Laing Tone-2
(0x0aab0, 0x0aab0,), # 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
(0x0aaec, 0x0aaed,), # Meetei Mayek Vowel Sign ..Meetei Mayek Vowel Sign
(0x0aaf6, 0x0aaf6,), # Meetei Mayek Virama
(0x0abe5, 0x0abe5,), # Meetei Mayek Vowel Sign Anap
(0x0abe8, 0x0abe8,), # Meetei Mayek Vowel Sign Unap
(0x0abed, 0x0abed,), # Meetei Mayek Apun Iyek
(0x0fb1e, 0x0fb1e,), # Hebrew Point Judeo-spanish Varika
(0x0fe00, 0x0fe0f,), # Variation Selector-1 ..Variation Selector-16
(0x0fe20, 0x0fe2f,), # Combining Ligature Left ..Combining Cyrillic Titlo
(0x101fd, 0x101fd,), # Phaistos Disc Sign Combining Oblique Stroke
(0x102e0, 0x102e0,), # Coptic Epact Thousands Mark
(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
(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
(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
(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
(0x11236, 0x11237,), # Khojki Sign Nukta ..Khojki Sign Shadda
(0x1123e, 0x1123e,), # Khojki Sign Sukun
(0x112df, 0x112df,), # 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
(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
(0x1145e, 0x1145e,), # Newa Sandhi Mark
(0x114b3, 0x114b8,), # Tirhuta Vowel Sign U ..Tirhuta Vowel Sign Vocal
(0x114ba, 0x114ba,), # Tirhuta Vowel Sign Short E
(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
(0x1163f, 0x11640,), # Modi Sign Virama ..Modi Sign Ardhacandra
(0x116ab, 0x116ab,), # Takri Sign Anusvara
(0x116ad, 0x116ad,), # Takri Vowel Sign Aa
(0x116b0, 0x116b5,), # Takri Vowel Sign U ..Takri Vowel Sign Au
(0x116b7, 0x116b7,), # 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
(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 Subjoiner
(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
(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 E
(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
(0x11d90, 0x11d91,), # Gunjala Gondi Vowel Sign..Gunjala Gondi Vowel Sign
(0x11d95, 0x11d95,), # Gunjala Gondi Sign Anusvara
(0x11d97, 0x11d97,), # 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 Modifier Bar
(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 Tilting From Hip Joints
(0x1da84, 0x1da84,), # Signwriting Location Head Neck
(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
(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 Qatan
(0x00610, 0x0061a,), # Arabic Sign Sallallahou ..Arabic Small Kasra
(0x0064b, 0x0065f,), # Arabic Fathatan ..Arabic Wavy Hamza Below
(0x00670, 0x00670,), # Arabic Letter Superscript Alef
(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 Superscript Alaph
(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
(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
(0x0093c, 0x0093c,), # Devanagari Sign Nukta
(0x00941, 0x00948,), # Devanagari Vowel Sign U ..Devanagari Vowel Sign Ai
(0x0094d, 0x0094d,), # 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
(0x009bc, 0x009bc,), # Bengali Sign Nukta
(0x009c1, 0x009c4,), # Bengali Vowel Sign U ..Bengali Vowel Sign Vocal
(0x009cd, 0x009cd,), # Bengali Sign Virama
(0x009e2, 0x009e3,), # Bengali Vowel Sign Vocal..Bengali Vowel Sign Vocal
(0x009fe, 0x009fe,), # Bengali Sandhi Mark
(0x00a01, 0x00a02,), # Gurmukhi Sign Adak Bindi..Gurmukhi Sign Bindi
(0x00a3c, 0x00a3c,), # 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
(0x00a70, 0x00a71,), # Gurmukhi Tippi ..Gurmukhi Addak
(0x00a75, 0x00a75,), # Gurmukhi Sign Yakash
(0x00a81, 0x00a82,), # Gujarati Sign Candrabind..Gujarati Sign Anusvara
(0x00abc, 0x00abc,), # 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
(0x00ae2, 0x00ae3,), # Gujarati Vowel Sign Voca..Gujarati Vowel Sign Voca
(0x00afa, 0x00aff,), # Gujarati Sign Sukun ..Gujarati Sign Two-circle
(0x00b01, 0x00b01,), # Oriya Sign Candrabindu
(0x00b3c, 0x00b3c,), # Oriya Sign Nukta
(0x00b3f, 0x00b3f,), # Oriya Vowel Sign I
(0x00b41, 0x00b44,), # Oriya Vowel Sign U ..Oriya Vowel Sign Vocalic
(0x00b4d, 0x00b4d,), # Oriya Sign Virama
(0x00b56, 0x00b56,), # Oriya Ai Length Mark
(0x00b62, 0x00b63,), # Oriya Vowel Sign Vocalic..Oriya Vowel Sign Vocalic
(0x00b82, 0x00b82,), # Tamil Sign Anusvara
(0x00bc0, 0x00bc0,), # Tamil Vowel Sign Ii
(0x00bcd, 0x00bcd,), # Tamil Sign Virama
(0x00c00, 0x00c00,), # Telugu Sign Combining Candrabindu Above
(0x00c04, 0x00c04,), # Telugu Sign Combining Anusvara Above
(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
(0x00cbc, 0x00cbc,), # Kannada Sign Nukta
(0x00cbf, 0x00cbf,), # Kannada Vowel Sign I
(0x00cc6, 0x00cc6,), # 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
(0x00d62, 0x00d63,), # Malayalam Vowel Sign Voc..Malayalam Vowel Sign Voc
(0x00dca, 0x00dca,), # Sinhala Sign Al-lakuna
(0x00dd2, 0x00dd4,), # Sinhala Vowel Sign Ketti..Sinhala Vowel Sign Ketti
(0x00dd6, 0x00dd6,), # Sinhala Vowel Sign Diga Paa-pilla
(0x00e31, 0x00e31,), # Thai Character Mai Han-akat
(0x00e34, 0x00e3a,), # Thai Character Sara I ..Thai Character Phinthu
(0x00e47, 0x00e4e,), # Thai Character Maitaikhu..Thai Character Yamakkan
(0x00eb1, 0x00eb1,), # 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 Nyi Zla
(0x00f37, 0x00f37,), # Tibetan Mark Ngas Bzung Sgor Rtags
(0x00f39, 0x00f39,), # 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 Gdan
(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 Shan Medial Wa
(0x01085, 0x01086,), # Myanmar Vowel Sign Shan ..Myanmar Vowel Sign Shan
(0x0108d, 0x0108d,), # Myanmar Sign Shan Council Emphatic Tone
(0x0109d, 0x0109d,), # Myanmar Vowel Sign Aiton Ai
(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
(0x017c9, 0x017d3,), # Khmer Sign Muusikatoan ..Khmer Sign Bathamasat
(0x017dd, 0x017dd,), # 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 Gali Dagalga
(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 Anusvara
(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
(0x01a56, 0x01a56,), # Tai Tham Consonant Sign Medial La
(0x01a58, 0x01a5e,), # Tai Tham Sign Mai Kang L..Tai Tham Consonant Sign
(0x01a60, 0x01a60,), # Tai Tham Sign Sakot
(0x01a62, 0x01a62,), # Tai Tham Vowel Sign Mai Sat
(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 Cryptogrammic Dot
(0x01ab0, 0x01abe,), # Combining Doubled Circum..Combining Parentheses Ov
(0x01b00, 0x01b03,), # Balinese Sign Ulu Ricem ..Balinese Sign Surang
(0x01b34, 0x01b34,), # Balinese Sign Rerekan
(0x01b36, 0x01b3a,), # Balinese Vowel Sign Ulu ..Balinese Vowel Sign Ra R
(0x01b3c, 0x01b3c,), # Balinese Vowel Sign La Lenga
(0x01b42, 0x01b42,), # Balinese Vowel Sign Pepet
(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
(0x01be8, 0x01be9,), # Batak Vowel Sign Pakpak ..Batak Vowel Sign Ee
(0x01bed, 0x01bed,), # 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
(0x01cf4, 0x01cf4,), # 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 Joiner
(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 Dvisvara
(0x0a806, 0x0a806,), # Syloti Nagri Sign Hasanta
(0x0a80b, 0x0a80b,), # Syloti Nagri Sign Anusvara
(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
(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
(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
(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 Final Ng
(0x0aa4c, 0x0aa4c,), # Cham Consonant Sign Final M
(0x0aa7c, 0x0aa7c,), # Myanmar Sign Tai Laing Tone-2
(0x0aab0, 0x0aab0,), # 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
(0x0aaec, 0x0aaed,), # Meetei Mayek Vowel Sign ..Meetei Mayek Vowel Sign
(0x0aaf6, 0x0aaf6,), # Meetei Mayek Virama
(0x0abe5, 0x0abe5,), # Meetei Mayek Vowel Sign Anap
(0x0abe8, 0x0abe8,), # Meetei Mayek Vowel Sign Unap
(0x0abed, 0x0abed,), # Meetei Mayek Apun Iyek
(0x0fb1e, 0x0fb1e,), # Hebrew Point Judeo-spanish Varika
(0x0fe00, 0x0fe0f,), # Variation Selector-1 ..Variation Selector-16
(0x0fe20, 0x0fe2f,), # Combining Ligature Left ..Combining Cyrillic Titlo
(0x101fd, 0x101fd,), # Phaistos Disc Sign Combining Oblique Stroke
(0x102e0, 0x102e0,), # Coptic Epact Thousands Mark
(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
(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
(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
(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
(0x11236, 0x11237,), # Khojki Sign Nukta ..Khojki Sign Shadda
(0x1123e, 0x1123e,), # Khojki Sign Sukun
(0x112df, 0x112df,), # 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
(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
(0x1145e, 0x1145e,), # Newa Sandhi Mark
(0x114b3, 0x114b8,), # Tirhuta Vowel Sign U ..Tirhuta Vowel Sign Vocal
(0x114ba, 0x114ba,), # Tirhuta Vowel Sign Short E
(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
(0x1163f, 0x11640,), # Modi Sign Virama ..Modi Sign Ardhacandra
(0x116ab, 0x116ab,), # Takri Sign Anusvara
(0x116ad, 0x116ad,), # Takri Vowel Sign Aa
(0x116b0, 0x116b5,), # Takri Vowel Sign U ..Takri Vowel Sign Au
(0x116b7, 0x116b7,), # 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
(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 Subjoiner
(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
(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 E
(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
(0x11d90, 0x11d91,), # Gunjala Gondi Vowel Sign..Gunjala Gondi Vowel Sign
(0x11d95, 0x11d95,), # Gunjala Gondi Sign Anusvara
(0x11d97, 0x11d97,), # 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 Modifier Bar
(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 Tilting From Hip Joints
(0x1da84, 0x1da84,), # Signwriting Location Head Neck
(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
(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 Qatan
(0x00610, 0x0061a,), # Arabic Sign Sallallahou ..Arabic Small Kasra
(0x0064b, 0x0065f,), # Arabic Fathatan ..Arabic Wavy Hamza Below
(0x00670, 0x00670,), # Arabic Letter Superscript Alef
(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 Superscript Alaph
(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
(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
(0x0093c, 0x0093c,), # Devanagari Sign Nukta
(0x00941, 0x00948,), # Devanagari Vowel Sign U ..Devanagari Vowel Sign Ai
(0x0094d, 0x0094d,), # 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
(0x009bc, 0x009bc,), # Bengali Sign Nukta
(0x009c1, 0x009c4,), # Bengali Vowel Sign U ..Bengali Vowel Sign Vocal
(0x009cd, 0x009cd,), # Bengali Sign Virama
(0x009e2, 0x009e3,), # Bengali Vowel Sign Vocal..Bengali Vowel Sign Vocal
(0x009fe, 0x009fe,), # Bengali Sandhi Mark
(0x00a01, 0x00a02,), # Gurmukhi Sign Adak Bindi..Gurmukhi Sign Bindi
(0x00a3c, 0x00a3c,), # 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
(0x00a70, 0x00a71,), # Gurmukhi Tippi ..Gurmukhi Addak
(0x00a75, 0x00a75,), # Gurmukhi Sign Yakash
(0x00a81, 0x00a82,), # Gujarati Sign Candrabind..Gujarati Sign Anusvara
(0x00abc, 0x00abc,), # 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
(0x00ae2, 0x00ae3,), # Gujarati Vowel Sign Voca..Gujarati Vowel Sign Voca
(0x00afa, 0x00aff,), # Gujarati Sign Sukun ..Gujarati Sign Two-circle
(0x00b01, 0x00b01,), # Oriya Sign Candrabindu
(0x00b3c, 0x00b3c,), # Oriya Sign Nukta
(0x00b3f, 0x00b3f,), # Oriya Vowel Sign I
(0x00b41, 0x00b44,), # Oriya Vowel Sign U ..Oriya Vowel Sign Vocalic
(0x00b4d, 0x00b4d,), # Oriya Sign Virama
(0x00b55, 0x00b56,), # Oriya Sign Overline ..Oriya Ai Length Mark
(0x00b62, 0x00b63,), # Oriya Vowel Sign Vocalic..Oriya Vowel Sign Vocalic
(0x00b82, 0x00b82,), # Tamil Sign Anusvara
(0x00bc0, 0x00bc0,), # Tamil Vowel Sign Ii
(0x00bcd, 0x00bcd,), # Tamil Sign Virama
(0x00c00, 0x00c00,), # Telugu Sign Combining Candrabindu Above
(0x00c04, 0x00c04,), # Telugu Sign Combining Anusvara Above
(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
(0x00cbc, 0x00cbc,), # Kannada Sign Nukta
(0x00cbf, 0x00cbf,), # Kannada Vowel Sign I
(0x00cc6, 0x00cc6,), # 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
(0x00d62, 0x00d63,), # Malayalam Vowel Sign Voc..Malayalam Vowel Sign Voc
(0x00d81, 0x00d81,), # Sinhala Sign Candrabindu
(0x00dca, 0x00dca,), # Sinhala Sign Al-lakuna
(0x00dd2, 0x00dd4,), # Sinhala Vowel Sign Ketti..Sinhala Vowel Sign Ketti
(0x00dd6, 0x00dd6,), # Sinhala Vowel Sign Diga Paa-pilla
(0x00e31, 0x00e31,), # Thai Character Mai Han-akat
(0x00e34, 0x00e3a,), # Thai Character Sara I ..Thai Character Phinthu
(0x00e47, 0x00e4e,), # Thai Character Maitaikhu..Thai Character Yamakkan
(0x00eb1, 0x00eb1,), # 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 Nyi Zla
(0x00f37, 0x00f37,), # Tibetan Mark Ngas Bzung Sgor Rtags
(0x00f39, 0x00f39,), # 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 Gdan
(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 Shan Medial Wa
(0x01085, 0x01086,), # Myanmar Vowel Sign Shan ..Myanmar Vowel Sign Shan
(0x0108d, 0x0108d,), # Myanmar Sign Shan Council Emphatic Tone
(0x0109d, 0x0109d,), # Myanmar Vowel Sign Aiton Ai
(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
(0x017c9, 0x017d3,), # Khmer Sign Muusikatoan ..Khmer Sign Bathamasat
(0x017dd, 0x017dd,), # 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 Gali Dagalga
(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 Anusvara
(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
(0x01a56, 0x01a56,), # Tai Tham Consonant Sign Medial La
(0x01a58, 0x01a5e,), # Tai Tham Sign Mai Kang L..Tai Tham Consonant Sign
(0x01a60, 0x01a60,), # Tai Tham Sign Sakot
(0x01a62, 0x01a62,), # Tai Tham Vowel Sign Mai Sat
(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 Cryptogrammic Dot
(0x01ab0, 0x01ac0,), # Combining Doubled Circum..Combining Latin Small Le
(0x01b00, 0x01b03,), # Balinese Sign Ulu Ricem ..Balinese Sign Surang
(0x01b34, 0x01b34,), # Balinese Sign Rerekan
(0x01b36, 0x01b3a,), # Balinese Vowel Sign Ulu ..Balinese Vowel Sign Ra R
(0x01b3c, 0x01b3c,), # Balinese Vowel Sign La Lenga
(0x01b42, 0x01b42,), # Balinese Vowel Sign Pepet
(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
(0x01be8, 0x01be9,), # Batak Vowel Sign Pakpak ..Batak Vowel Sign Ee
(0x01bed, 0x01bed,), # 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
(0x01cf4, 0x01cf4,), # 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 Joiner
(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 Dvisvara
(0x0a806, 0x0a806,), # Syloti Nagri Sign Hasanta
(0x0a80b, 0x0a80b,), # Syloti Nagri Sign Anusvara
(0x0a825, 0x0a826,), # Syloti Nagri Vowel Sign ..Syloti Nagri Vowel Sign
(0x0a82c, 0x0a82c,), # Syloti Nagri Sign Alternate Hasanta
(0x0a8c4, 0x0a8c5,), # Saurashtra Sign Virama ..Saurashtra Sign Candrabi
(0x0a8e0, 0x0a8f1,), # Combining Devanagari Dig..Combining Devanagari Sig
(0x0a8ff, 0x0a8ff,), # 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
(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
(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 Final Ng
(0x0aa4c, 0x0aa4c,), # Cham Consonant Sign Final M
(0x0aa7c, 0x0aa7c,), # Myanmar Sign Tai Laing Tone-2
(0x0aab0, 0x0aab0,), # 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
(0x0aaec, 0x0aaed,), # Meetei Mayek Vowel Sign ..Meetei Mayek Vowel Sign
(0x0aaf6, 0x0aaf6,), # Meetei Mayek Virama
(0x0abe5, 0x0abe5,), # Meetei Mayek Vowel Sign Anap
(0x0abe8, 0x0abe8,), # Meetei Mayek Vowel Sign Unap
(0x0abed, 0x0abed,), # Meetei Mayek Apun Iyek
(0x0fb1e, 0x0fb1e,), # Hebrew Point Judeo-spanish Varika
(0x0fe00, 0x0fe0f,), # Variation Selector-1 ..Variation Selector-16
(0x0fe20, 0x0fe2f,), # Combining Ligature Left ..Combining Cyrillic Titlo
(0x101fd, 0x101fd,), # Phaistos Disc Sign Combining Oblique Stroke
(0x102e0, 0x102e0,), # Coptic Epact Thousands Mark
(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
(0x10ae5, 0x10ae6,), # Manichaean Abbreviation ..Manichaean Abbreviation
(0x10d24, 0x10d27,), # Hanifi Rohingya Sign Har..Hanifi Rohingya Sign Tas
(0x10eab, 0x10eac,), # Yezidi Combining Hamza M..Yezidi Combining Madda M
(0x10f46, 0x10f50,), # Sogdian Combining Dot Be..Sogdian Combining Stroke
(0x11001, 0x11001,), # 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
(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,), # Sharada Sign Inverted Candrabindu
(0x1122f, 0x11231,), # Khojki Vowel Sign U ..Khojki Vowel Sign Ai
(0x11234, 0x11234,), # Khojki Sign Anusvara
(0x11236, 0x11237,), # Khojki Sign Nukta ..Khojki Sign Shadda
(0x1123e, 0x1123e,), # Khojki Sign Sukun
(0x112df, 0x112df,), # 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
(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
(0x1145e, 0x1145e,), # Newa Sandhi Mark
(0x114b3, 0x114b8,), # Tirhuta Vowel Sign U ..Tirhuta Vowel Sign Vocal
(0x114ba, 0x114ba,), # Tirhuta Vowel Sign Short E
(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
(0x1163f, 0x11640,), # Modi Sign Virama ..Modi Sign Ardhacandra
(0x116ab, 0x116ab,), # Takri Sign Anusvara
(0x116ad, 0x116ad,), # Takri Vowel Sign Aa
(0x116b0, 0x116b5,), # Takri Vowel Sign U ..Takri Vowel Sign Au
(0x116b7, 0x116b7,), # 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,), # Dives Akuru Sign Anusvar..Dives Akuru Sign Candrab
(0x1193e, 0x1193e,), # Dives Akuru Virama
(0x11943, 0x11943,), # Dives Akuru 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
(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 Subjoiner
(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
(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 E
(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
(0x11d90, 0x11d91,), # Gunjala Gondi Vowel Sign..Gunjala Gondi Vowel Sign
(0x11d95, 0x11d95,), # Gunjala Gondi Sign Anusvara
(0x11d97, 0x11d97,), # 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 Modifier Bar
(0x16f8f, 0x16f92,), # Miao Tone Right ..Miao Tone Below
(0x16fe4, 0x16fe4,), # Khitan Small Script Filler
(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 Tilting From Hip Joints
(0x1da84, 0x1da84,), # Signwriting Location Head Neck
(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
),
'14.0.0': (
# Source: DerivedGeneralCategory-14.0.0.txt
# Date: 2021-07-10, 00:35: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
(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 Qatan
(0x00610, 0x0061a,), # Arabic Sign Sallallahou ..Arabic Small Kasra
(0x0064b, 0x0065f,), # Arabic Fathatan ..Arabic Wavy Hamza Below
(0x00670, 0x00670,), # Arabic Letter Superscript Alef
(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 Superscript Alaph
(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
(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
(0x00898, 0x0089f,), # Arabic Small High Word A..Arabic Half Madda Over M
(0x008ca, 0x008e1,), # Arabic Small High Farsi ..Arabic Small High Sign S
(0x008e3, 0x00902,), # Arabic Turned Damma Belo..Devanagari Sign Anusvara
(0x0093a, 0x0093a,), # Devanagari Vowel Sign Oe
(0x0093c, 0x0093c,), # Devanagari Sign Nukta
(0x00941, 0x00948,), # Devanagari Vowel Sign U ..Devanagari Vowel Sign Ai
(0x0094d, 0x0094d,), # 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
(0x009bc, 0x009bc,), # Bengali Sign Nukta
(0x009c1, 0x009c4,), # Bengali Vowel Sign U ..Bengali Vowel Sign Vocal
(0x009cd, 0x009cd,), # Bengali Sign Virama
(0x009e2, 0x009e3,), # Bengali Vowel Sign Vocal..Bengali Vowel Sign Vocal
(0x009fe, 0x009fe,), # Bengali Sandhi Mark
(0x00a01, 0x00a02,), # Gurmukhi Sign Adak Bindi..Gurmukhi Sign Bindi
(0x00a3c, 0x00a3c,), # 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
(0x00a70, 0x00a71,), # Gurmukhi Tippi ..Gurmukhi Addak
(0x00a75, 0x00a75,), # Gurmukhi Sign Yakash
(0x00a81, 0x00a82,), # Gujarati Sign Candrabind..Gujarati Sign Anusvara
(0x00abc, 0x00abc,), # 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
(0x00ae2, 0x00ae3,), # Gujarati Vowel Sign Voca..Gujarati Vowel Sign Voca
(0x00afa, 0x00aff,), # Gujarati Sign Sukun ..Gujarati Sign Two-circle
(0x00b01, 0x00b01,), # Oriya Sign Candrabindu
(0x00b3c, 0x00b3c,), # Oriya Sign Nukta
(0x00b3f, 0x00b3f,), # Oriya Vowel Sign I
(0x00b41, 0x00b44,), # Oriya Vowel Sign U ..Oriya Vowel Sign Vocalic
(0x00b4d, 0x00b4d,), # Oriya Sign Virama
(0x00b55, 0x00b56,), # Oriya Sign Overline ..Oriya Ai Length Mark
(0x00b62, 0x00b63,), # Oriya Vowel Sign Vocalic..Oriya Vowel Sign Vocalic
(0x00b82, 0x00b82,), # Tamil Sign Anusvara
(0x00bc0, 0x00bc0,), # Tamil Vowel Sign Ii
(0x00bcd, 0x00bcd,), # Tamil Sign Virama
(0x00c00, 0x00c00,), # Telugu Sign Combining Candrabindu Above
(0x00c04, 0x00c04,), # Telugu Sign Combining Anusvara Above
(0x00c3c, 0x00c3c,), # Telugu Sign Nukta
(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
(0x00cbc, 0x00cbc,), # Kannada Sign Nukta
(0x00cbf, 0x00cbf,), # Kannada Vowel Sign I
(0x00cc6, 0x00cc6,), # 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
(0x00d62, 0x00d63,), # Malayalam Vowel Sign Voc..Malayalam Vowel Sign Voc
(0x00d81, 0x00d81,), # Sinhala Sign Candrabindu
(0x00dca, 0x00dca,), # Sinhala Sign Al-lakuna
(0x00dd2, 0x00dd4,), # Sinhala Vowel Sign Ketti..Sinhala Vowel Sign Ketti
(0x00dd6, 0x00dd6,), # Sinhala Vowel Sign Diga Paa-pilla
(0x00e31, 0x00e31,), # Thai Character Mai Han-akat
(0x00e34, 0x00e3a,), # Thai Character Sara I ..Thai Character Phinthu
(0x00e47, 0x00e4e,), # Thai Character Maitaikhu..Thai Character Yamakkan
(0x00eb1, 0x00eb1,), # 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 Nyi Zla
(0x00f37, 0x00f37,), # Tibetan Mark Ngas Bzung Sgor Rtags
(0x00f39, 0x00f39,), # 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 Gdan
(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 Shan Medial Wa
(0x01085, 0x01086,), # Myanmar Vowel Sign Shan ..Myanmar Vowel Sign Shan
(0x0108d, 0x0108d,), # Myanmar Sign Shan Council Emphatic Tone
(0x0109d, 0x0109d,), # Myanmar Vowel Sign Aiton Ai
(0x0135d, 0x0135f,), # Ethiopic Combining Gemin..Ethiopic Combining Gemin
(0x01712, 0x01714,), # Tagalog Vowel Sign I ..Tagalog Sign Virama
(0x01732, 0x01733,), # Hanunoo Vowel Sign I ..Hanunoo Vowel Sign U
(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
(0x017c9, 0x017d3,), # Khmer Sign Muusikatoan ..Khmer Sign Bathamasat
(0x017dd, 0x017dd,), # Khmer Sign Atthacan
(0x0180b, 0x0180d,), # Mongolian Free Variation..Mongolian Free Variation
(0x0180f, 0x0180f,), # Mongolian Free Variation Selector Four
(0x01885, 0x01886,), # Mongolian Letter Ali Gal..Mongolian Letter Ali Gal
(0x018a9, 0x018a9,), # Mongolian Letter Ali Gali Dagalga
(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 Anusvara
(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
(0x01a56, 0x01a56,), # Tai Tham Consonant Sign Medial La
(0x01a58, 0x01a5e,), # Tai Tham Sign Mai Kang L..Tai Tham Consonant Sign
(0x01a60, 0x01a60,), # Tai Tham Sign Sakot
(0x01a62, 0x01a62,), # Tai Tham Vowel Sign Mai Sat
(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 Cryptogrammic Dot
(0x01ab0, 0x01ace,), # Combining Doubled Circum..Combining Latin Small Le
(0x01b00, 0x01b03,), # Balinese Sign Ulu Ricem ..Balinese Sign Surang
(0x01b34, 0x01b34,), # Balinese Sign Rerekan
(0x01b36, 0x01b3a,), # Balinese Vowel Sign Ulu ..Balinese Vowel Sign Ra R
(0x01b3c, 0x01b3c,), # Balinese Vowel Sign La Lenga
(0x01b42, 0x01b42,), # Balinese Vowel Sign Pepet
(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
(0x01be8, 0x01be9,), # Batak Vowel Sign Pakpak ..Batak Vowel Sign Ee
(0x01bed, 0x01bed,), # 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
(0x01cf4, 0x01cf4,), # Vedic Tone Candra Above
(0x01cf8, 0x01cf9,), # Vedic Tone Ring Above ..Vedic Tone Double Ring A
(0x01dc0, 0x01dff,), # Combining Dotted Grave A..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 Joiner
(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 Dvisvara
(0x0a806, 0x0a806,), # Syloti Nagri Sign Hasanta
(0x0a80b, 0x0a80b,), # Syloti Nagri Sign Anusvara
(0x0a825, 0x0a826,), # Syloti Nagri Vowel Sign ..Syloti Nagri Vowel Sign
(0x0a82c, 0x0a82c,), # Syloti Nagri Sign Alternate Hasanta
(0x0a8c4, 0x0a8c5,), # Saurashtra Sign Virama ..Saurashtra Sign Candrabi
(0x0a8e0, 0x0a8f1,), # Combining Devanagari Dig..Combining Devanagari Sig
(0x0a8ff, 0x0a8ff,), # 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
(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
(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 Final Ng
(0x0aa4c, 0x0aa4c,), # Cham Consonant Sign Final M
(0x0aa7c, 0x0aa7c,), # Myanmar Sign Tai Laing Tone-2
(0x0aab0, 0x0aab0,), # 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
(0x0aaec, 0x0aaed,), # Meetei Mayek Vowel Sign ..Meetei Mayek Vowel Sign
(0x0aaf6, 0x0aaf6,), # Meetei Mayek Virama
(0x0abe5, 0x0abe5,), # Meetei Mayek Vowel Sign Anap
(0x0abe8, 0x0abe8,), # Meetei Mayek Vowel Sign Unap
(0x0abed, 0x0abed,), # Meetei Mayek Apun Iyek
(0x0fb1e, 0x0fb1e,), # Hebrew Point Judeo-spanish Varika
(0x0fe00, 0x0fe0f,), # Variation Selector-1 ..Variation Selector-16
(0x0fe20, 0x0fe2f,), # Combining Ligature Left ..Combining Cyrillic Titlo
(0x101fd, 0x101fd,), # Phaistos Disc Sign Combining Oblique Stroke
(0x102e0, 0x102e0,), # Coptic Epact Thousands Mark
(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
(0x10ae5, 0x10ae6,), # Manichaean Abbreviation ..Manichaean Abbreviation
(0x10d24, 0x10d27,), # Hanifi Rohingya Sign Har..Hanifi Rohingya Sign Tas
(0x10eab, 0x10eac,), # Yezidi Combining Hamza M..Yezidi Combining Madda M
(0x10f46, 0x10f50,), # Sogdian Combining Dot Be..Sogdian Combining Stroke
(0x10f82, 0x10f85,), # Old Uyghur Combining Dot..Old Uyghur Combining Two
(0x11001, 0x11001,), # Brahmi Sign Anusvara
(0x11038, 0x11046,), # Brahmi Vowel Sign Aa ..Brahmi Virama
(0x11070, 0x11070,), # Brahmi Sign Old Tamil Virama
(0x11073, 0x11074,), # Brahmi Vowel Sign Old Ta..Brahmi Vowel Sign Old Ta
(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
(0x110c2, 0x110c2,), # Kaithi Vowel Sign Vocalic R
(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
(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,), # Sharada Sign Inverted Candrabindu
(0x1122f, 0x11231,), # Khojki Vowel Sign U ..Khojki Vowel Sign Ai
(0x11234, 0x11234,), # Khojki Sign Anusvara
(0x11236, 0x11237,), # Khojki Sign Nukta ..Khojki Sign Shadda
(0x1123e, 0x1123e,), # Khojki Sign Sukun
(0x112df, 0x112df,), # 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
(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
(0x1145e, 0x1145e,), # Newa Sandhi Mark
(0x114b3, 0x114b8,), # Tirhuta Vowel Sign U ..Tirhuta Vowel Sign Vocal
(0x114ba, 0x114ba,), # Tirhuta Vowel Sign Short E
(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
(0x1163f, 0x11640,), # Modi Sign Virama ..Modi Sign Ardhacandra
(0x116ab, 0x116ab,), # Takri Sign Anusvara
(0x116ad, 0x116ad,), # Takri Vowel Sign Aa
(0x116b0, 0x116b5,), # Takri Vowel Sign U ..Takri Vowel Sign Au
(0x116b7, 0x116b7,), # 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,), # Dives Akuru Sign Anusvar..Dives Akuru Sign Candrab
(0x1193e, 0x1193e,), # Dives Akuru Virama
(0x11943, 0x11943,), # Dives Akuru 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
(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 Subjoiner
(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
(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 E
(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
(0x11d90, 0x11d91,), # Gunjala Gondi Vowel Sign..Gunjala Gondi Vowel Sign
(0x11d95, 0x11d95,), # Gunjala Gondi Sign Anusvara
(0x11d97, 0x11d97,), # 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 Modifier Bar
(0x16f8f, 0x16f92,), # Miao Tone Right ..Miao Tone Below
(0x16fe4, 0x16fe4,), # Khitan Small Script Filler
(0x1bc9d, 0x1bc9e,), # Duployan Thick Letter Se..Duployan Double Mark
(0x1cf00, 0x1cf2d,), # Znamenny Combining Mark ..Znamenny Combining Mark
(0x1cf30, 0x1cf46,), # Znamenny Combining Tonal..Znamenny Priznak Modifie
(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 Tilting From Hip Joints
(0x1da84, 0x1da84,), # Signwriting Location Head Neck
(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
(0x1e2ae, 0x1e2ae,), # Toto Sign Rising Tone
(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
),
'15.0.0': (
# Source: DerivedGeneralCategory-15.0.0.txt
# Date: 2022-04-26, 23:14:35 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
(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 Qatan
(0x00610, 0x0061a,), # Arabic Sign Sallallahou ..Arabic Small Kasra
(0x0064b, 0x0065f,), # Arabic Fathatan ..Arabic Wavy Hamza Below
(0x00670, 0x00670,), # Arabic Letter Superscript Alef
(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 Superscript Alaph
(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
(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
(0x00898, 0x0089f,), # Arabic Small High Word A..Arabic Half Madda Over M
(0x008ca, 0x008e1,), # Arabic Small High Farsi ..Arabic Small High Sign S
(0x008e3, 0x00902,), # Arabic Turned Damma Belo..Devanagari Sign Anusvara
(0x0093a, 0x0093a,), # Devanagari Vowel Sign Oe
(0x0093c, 0x0093c,), # Devanagari Sign Nukta
(0x00941, 0x00948,), # Devanagari Vowel Sign U ..Devanagari Vowel Sign Ai
(0x0094d, 0x0094d,), # 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
(0x009bc, 0x009bc,), # Bengali Sign Nukta
(0x009c1, 0x009c4,), # Bengali Vowel Sign U ..Bengali Vowel Sign Vocal
(0x009cd, 0x009cd,), # Bengali Sign Virama
(0x009e2, 0x009e3,), # Bengali Vowel Sign Vocal..Bengali Vowel Sign Vocal
(0x009fe, 0x009fe,), # Bengali Sandhi Mark
(0x00a01, 0x00a02,), # Gurmukhi Sign Adak Bindi..Gurmukhi Sign Bindi
(0x00a3c, 0x00a3c,), # 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
(0x00a70, 0x00a71,), # Gurmukhi Tippi ..Gurmukhi Addak
(0x00a75, 0x00a75,), # Gurmukhi Sign Yakash
(0x00a81, 0x00a82,), # Gujarati Sign Candrabind..Gujarati Sign Anusvara
(0x00abc, 0x00abc,), # 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
(0x00ae2, 0x00ae3,), # Gujarati Vowel Sign Voca..Gujarati Vowel Sign Voca
(0x00afa, 0x00aff,), # Gujarati Sign Sukun ..Gujarati Sign Two-circle
(0x00b01, 0x00b01,), # Oriya Sign Candrabindu
(0x00b3c, 0x00b3c,), # Oriya Sign Nukta
(0x00b3f, 0x00b3f,), # Oriya Vowel Sign I
(0x00b41, 0x00b44,), # Oriya Vowel Sign U ..Oriya Vowel Sign Vocalic
(0x00b4d, 0x00b4d,), # Oriya Sign Virama
(0x00b55, 0x00b56,), # Oriya Sign Overline ..Oriya Ai Length Mark
(0x00b62, 0x00b63,), # Oriya Vowel Sign Vocalic..Oriya Vowel Sign Vocalic
(0x00b82, 0x00b82,), # Tamil Sign Anusvara
(0x00bc0, 0x00bc0,), # Tamil Vowel Sign Ii
(0x00bcd, 0x00bcd,), # Tamil Sign Virama
(0x00c00, 0x00c00,), # Telugu Sign Combining Candrabindu Above
(0x00c04, 0x00c04,), # Telugu Sign Combining Anusvara Above
(0x00c3c, 0x00c3c,), # Telugu Sign Nukta
(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
(0x00cbc, 0x00cbc,), # Kannada Sign Nukta
(0x00cbf, 0x00cbf,), # Kannada Vowel Sign I
(0x00cc6, 0x00cc6,), # 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
(0x00d62, 0x00d63,), # Malayalam Vowel Sign Voc..Malayalam Vowel Sign Voc
(0x00d81, 0x00d81,), # Sinhala Sign Candrabindu
(0x00dca, 0x00dca,), # Sinhala Sign Al-lakuna
(0x00dd2, 0x00dd4,), # Sinhala Vowel Sign Ketti..Sinhala Vowel Sign Ketti
(0x00dd6, 0x00dd6,), # Sinhala Vowel Sign Diga Paa-pilla
(0x00e31, 0x00e31,), # Thai Character Mai Han-akat
(0x00e34, 0x00e3a,), # Thai Character Sara I ..Thai Character Phinthu
(0x00e47, 0x00e4e,), # Thai Character Maitaikhu..Thai Character Yamakkan
(0x00eb1, 0x00eb1,), # Lao Vowel Sign Mai Kan
(0x00eb4, 0x00ebc,), # Lao Vowel Sign I ..Lao Semivowel Sign Lo
(0x00ec8, 0x00ece,), # Lao Tone Mai Ek ..(nil)
(0x00f18, 0x00f19,), # Tibetan Astrological Sig..Tibetan Astrological Sig
(0x00f35, 0x00f35,), # Tibetan Mark Ngas Bzung Nyi Zla
(0x00f37, 0x00f37,), # Tibetan Mark Ngas Bzung Sgor Rtags
(0x00f39, 0x00f39,), # 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 Gdan
(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 Shan Medial Wa
(0x01085, 0x01086,), # Myanmar Vowel Sign Shan ..Myanmar Vowel Sign Shan
(0x0108d, 0x0108d,), # Myanmar Sign Shan Council Emphatic Tone
(0x0109d, 0x0109d,), # Myanmar Vowel Sign Aiton Ai
(0x0135d, 0x0135f,), # Ethiopic Combining Gemin..Ethiopic Combining Gemin
(0x01712, 0x01714,), # Tagalog Vowel Sign I ..Tagalog Sign Virama
(0x01732, 0x01733,), # Hanunoo Vowel Sign I ..Hanunoo Vowel Sign U
(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
(0x017c9, 0x017d3,), # Khmer Sign Muusikatoan ..Khmer Sign Bathamasat
(0x017dd, 0x017dd,), # Khmer Sign Atthacan
(0x0180b, 0x0180d,), # Mongolian Free Variation..Mongolian Free Variation
(0x0180f, 0x0180f,), # Mongolian Free Variation Selector Four
(0x01885, 0x01886,), # Mongolian Letter Ali Gal..Mongolian Letter Ali Gal
(0x018a9, 0x018a9,), # Mongolian Letter Ali Gali Dagalga
(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 Anusvara
(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
(0x01a56, 0x01a56,), # Tai Tham Consonant Sign Medial La
(0x01a58, 0x01a5e,), # Tai Tham Sign Mai Kang L..Tai Tham Consonant Sign
(0x01a60, 0x01a60,), # Tai Tham Sign Sakot
(0x01a62, 0x01a62,), # Tai Tham Vowel Sign Mai Sat
(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 Cryptogrammic Dot
(0x01ab0, 0x01ace,), # Combining Doubled Circum..Combining Latin Small Le
(0x01b00, 0x01b03,), # Balinese Sign Ulu Ricem ..Balinese Sign Surang
(0x01b34, 0x01b34,), # Balinese Sign Rerekan
(0x01b36, 0x01b3a,), # Balinese Vowel Sign Ulu ..Balinese Vowel Sign Ra R
(0x01b3c, 0x01b3c,), # Balinese Vowel Sign La Lenga
(0x01b42, 0x01b42,), # Balinese Vowel Sign Pepet
(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
(0x01be8, 0x01be9,), # Batak Vowel Sign Pakpak ..Batak Vowel Sign Ee
(0x01bed, 0x01bed,), # 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
(0x01cf4, 0x01cf4,), # Vedic Tone Candra Above
(0x01cf8, 0x01cf9,), # Vedic Tone Ring Above ..Vedic Tone Double Ring A
(0x01dc0, 0x01dff,), # Combining Dotted Grave A..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 Joiner
(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 Dvisvara
(0x0a806, 0x0a806,), # Syloti Nagri Sign Hasanta
(0x0a80b, 0x0a80b,), # Syloti Nagri Sign Anusvara
(0x0a825, 0x0a826,), # Syloti Nagri Vowel Sign ..Syloti Nagri Vowel Sign
(0x0a82c, 0x0a82c,), # Syloti Nagri Sign Alternate Hasanta
(0x0a8c4, 0x0a8c5,), # Saurashtra Sign Virama ..Saurashtra Sign Candrabi
(0x0a8e0, 0x0a8f1,), # Combining Devanagari Dig..Combining Devanagari Sig
(0x0a8ff, 0x0a8ff,), # 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
(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
(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 Final Ng
(0x0aa4c, 0x0aa4c,), # Cham Consonant Sign Final M
(0x0aa7c, 0x0aa7c,), # Myanmar Sign Tai Laing Tone-2
(0x0aab0, 0x0aab0,), # 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
(0x0aaec, 0x0aaed,), # Meetei Mayek Vowel Sign ..Meetei Mayek Vowel Sign
(0x0aaf6, 0x0aaf6,), # Meetei Mayek Virama
(0x0abe5, 0x0abe5,), # Meetei Mayek Vowel Sign Anap
(0x0abe8, 0x0abe8,), # Meetei Mayek Vowel Sign Unap
(0x0abed, 0x0abed,), # Meetei Mayek Apun Iyek
(0x0fb1e, 0x0fb1e,), # Hebrew Point Judeo-spanish Varika
(0x0fe00, 0x0fe0f,), # Variation Selector-1 ..Variation Selector-16
(0x0fe20, 0x0fe2f,), # Combining Ligature Left ..Combining Cyrillic Titlo
(0x101fd, 0x101fd,), # Phaistos Disc Sign Combining Oblique Stroke
(0x102e0, 0x102e0,), # Coptic Epact Thousands Mark
(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
(0x10ae5, 0x10ae6,), # Manichaean Abbreviation ..Manichaean Abbreviation
(0x10d24, 0x10d27,), # Hanifi Rohingya Sign Har..Hanifi Rohingya Sign Tas
(0x10eab, 0x10eac,), # Yezidi Combining Hamza M..Yezidi Combining Madda M
(0x10efd, 0x10eff,), # (nil)
(0x10f46, 0x10f50,), # Sogdian Combining Dot Be..Sogdian Combining Stroke
(0x10f82, 0x10f85,), # Old Uyghur Combining Dot..Old Uyghur Combining Two
(0x11001, 0x11001,), # Brahmi Sign Anusvara
(0x11038, 0x11046,), # Brahmi Vowel Sign Aa ..Brahmi Virama
(0x11070, 0x11070,), # Brahmi Sign Old Tamil Virama
(0x11073, 0x11074,), # Brahmi Vowel Sign Old Ta..Brahmi Vowel Sign Old Ta
(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
(0x110c2, 0x110c2,), # Kaithi Vowel Sign Vocalic R
(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
(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,), # Sharada Sign Inverted Candrabindu
(0x1122f, 0x11231,), # Khojki Vowel Sign U ..Khojki Vowel Sign Ai
(0x11234, 0x11234,), # Khojki Sign Anusvara
(0x11236, 0x11237,), # Khojki Sign Nukta ..Khojki Sign Shadda
(0x1123e, 0x1123e,), # Khojki Sign Sukun
(0x11241, 0x11241,), # (nil)
(0x112df, 0x112df,), # 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
(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
(0x1145e, 0x1145e,), # Newa Sandhi Mark
(0x114b3, 0x114b8,), # Tirhuta Vowel Sign U ..Tirhuta Vowel Sign Vocal
(0x114ba, 0x114ba,), # Tirhuta Vowel Sign Short E
(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
(0x1163f, 0x11640,), # Modi Sign Virama ..Modi Sign Ardhacandra
(0x116ab, 0x116ab,), # Takri Sign Anusvara
(0x116ad, 0x116ad,), # Takri Vowel Sign Aa
(0x116b0, 0x116b5,), # Takri Vowel Sign U ..Takri Vowel Sign Au
(0x116b7, 0x116b7,), # 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,), # Dives Akuru Sign Anusvar..Dives Akuru Sign Candrab
(0x1193e, 0x1193e,), # Dives Akuru Virama
(0x11943, 0x11943,), # Dives Akuru 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
(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 Subjoiner
(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
(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 E
(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
(0x11d90, 0x11d91,), # Gunjala Gondi Vowel Sign..Gunjala Gondi Vowel Sign
(0x11d95, 0x11d95,), # Gunjala Gondi Sign Anusvara
(0x11d97, 0x11d97,), # Gunjala Gondi Virama
(0x11ef3, 0x11ef4,), # Makasar Vowel Sign I ..Makasar Vowel Sign U
(0x11f00, 0x11f01,), # (nil)
(0x11f36, 0x11f3a,), # (nil)
(0x11f40, 0x11f40,), # (nil)
(0x11f42, 0x11f42,), # (nil)
(0x13440, 0x13440,), # (nil)
(0x13447, 0x13455,), # (nil)
(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 Modifier Bar
(0x16f8f, 0x16f92,), # Miao Tone Right ..Miao Tone Below
(0x16fe4, 0x16fe4,), # Khitan Small Script Filler
(0x1bc9d, 0x1bc9e,), # Duployan Thick Letter Se..Duployan Double Mark
(0x1cf00, 0x1cf2d,), # Znamenny Combining Mark ..Znamenny Combining Mark
(0x1cf30, 0x1cf46,), # Znamenny Combining Tonal..Znamenny Priznak Modifie
(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 Tilting From Hip Joints
(0x1da84, 0x1da84,), # Signwriting Location Head Neck
(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
(0x1e08f, 0x1e08f,), # (nil)
(0x1e130, 0x1e136,), # Nyiakeng Puachue Hmong T..Nyiakeng Puachue Hmong T
(0x1e2ae, 0x1e2ae,), # Toto Sign Rising Tone
(0x1e2ec, 0x1e2ef,), # Wancho Tone Tup ..Wancho Tone Koini
(0x1e4ec, 0x1e4ef,), # (nil)
(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]"
] | |
85a9e832946350559a5ea18d4d1eccba4f712d9c | 6f3b1ed2385f484c39fccb47d9f75bc1179859aa | /src/main/resources/terraxld/organizations.py | b2ce7cdb9b1aaa6d6b67a54e97e3211c717b1a10 | [
"MIT"
] | permissive | xebialabs-community/xld-terraform-enterprise-plugin | f3302aa0648d4886147248fac4611497a4b508bd | d0c478c604fcaca483e68fc9d593b82ed7399eaa | refs/heads/master | 2021-06-24T06:06:49.580042 | 2021-04-28T06:37:28 | 2021-04-28T06:37:28 | 222,692,769 | 1 | 1 | null | 2019-11-19T12:37:54 | 2019-11-19T12:37:53 | null | UTF-8 | Python | false | false | 1,960 | py | #
# Copyright 2020 XEBIALABS
#
# Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
#
# The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
#
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
#
"""
Module for Terraform Enterprise API Endpoint: Organizations.
"""
import json
import requests
from .endpoint import TFEEndpoint
class TFEOrganizations(TFEEndpoint):
"""
The Organizations API is used to list, show, create, update, and destroy organizations.
https://www.terraform.io/docs/enterprise/api/organizations.html
"""
def __init__(self, base_url, organization, headers):
super(TFEOrganizations, self).__init__(base_url, organization, headers)
self._org_base_url = "{base_url}/organizations".format(base_url=base_url)
def lst(self):
"""
GET /organizations
"""
return self._ls(self._org_base_url)
def show(self, organization_name):
"""
GET /organizations/:organization_name
"""
url = "{0}/{1}".format(self._org_base_url, organization_name)
return self._show(url)
| [
"[email protected]"
] | |
04c4e1dbc15292698a6064855c10f110889f5581 | 9d0195aa83cc594a8c61f334b90375961e62d4fe | /JTTest/SL7/CMSSW_10_2_15/src/dataRunA/nano4719.py | ef90ef7b456b07e11a3309b3e6b09a511ebabcab | [] | no_license | rsk146/CMS | 4e49592fc64f6438051544c5de18598db36ed985 | 5f8dab8c59ae556598b9747b52b88205fffc4dbe | refs/heads/master | 2022-12-01T03:57:12.126113 | 2020-08-04T03:29:27 | 2020-08-04T03:29:27 | 284,863,383 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,293 | py | # Auto generated configuration file
# using:
# Revision: 1.19
# Source: /local/reps/CMSSW/CMSSW/Configuration/Applications/python/ConfigBuilder.py,v
# with command line options: nanoAOD_jetToolbox_cff -s NANO --data --eventcontent NANOAOD --datatier NANOAOD --no_exec --conditions 102X_dataRun2_Sep2018Rereco_v1 --era Run2_2018,run2_nanoAOD_102Xv1 --customise_commands=process.add_(cms.Service('InitRootHandlers', EnableIMT = cms.untracked.bool(False))) --customise JMEAnalysis/JetToolbox/nanoAOD_jetToolbox_cff.nanoJTB_customizeMC --filein /users/h2/rsk146/JTTest/SL7/CMSSW_10_6_12/src/ttbarCutTest/dataReprocessing/0004A5E9-9F18-6B42-B31D-4206406CE423.root --fileout file:jetToolbox_nano_datatest.root
import FWCore.ParameterSet.Config as cms
from Configuration.StandardSequences.Eras import eras
process = cms.Process('NANO',eras.Run2_2018,eras.run2_nanoAOD_102Xv1)
# import of standard configurations
process.load('Configuration.StandardSequences.Services_cff')
process.load('SimGeneral.HepPDTESSource.pythiapdt_cfi')
process.load('FWCore.MessageService.MessageLogger_cfi')
process.load('Configuration.EventContent.EventContent_cff')
process.load('Configuration.StandardSequences.GeometryRecoDB_cff')
process.load('Configuration.StandardSequences.MagneticField_AutoFromDBCurrent_cff')
process.load('PhysicsTools.NanoAOD.nano_cff')
process.load('Configuration.StandardSequences.EndOfProcess_cff')
process.load('Configuration.StandardSequences.FrontierConditions_GlobalTag_cff')
process.maxEvents = cms.untracked.PSet(
input = cms.untracked.int32(-1)
)
# Input source
process.source = cms.Source("PoolSource",
fileNames = cms.untracked.vstring('file:root://cms-xrd-global.cern.ch//store/data/Run2018A/EGamma/MINIAOD/17Sep2018-v2/270000/75C7B29F-C23C-4A4A-9B68-D5E22E2B6DB3.root'),
secondaryFileNames = cms.untracked.vstring()
)
process.options = cms.untracked.PSet(
)
# Production Info
process.configurationMetadata = cms.untracked.PSet(
annotation = cms.untracked.string('nanoAOD_jetToolbox_cff nevts:1'),
name = cms.untracked.string('Applications'),
version = cms.untracked.string('$Revision: 1.19 $')
)
# Output definition
process.NANOAODoutput = cms.OutputModule("NanoAODOutputModule",
compressionAlgorithm = cms.untracked.string('LZMA'),
compressionLevel = cms.untracked.int32(9),
dataset = cms.untracked.PSet(
dataTier = cms.untracked.string('NANOAOD'),
filterName = cms.untracked.string('')
),
fileName = cms.untracked.string('file:jetToolbox_nano_datatest4719.root'),
outputCommands = process.NANOAODEventContent.outputCommands
)
# Additional output definition
# Other statements
from Configuration.AlCa.GlobalTag import GlobalTag
process.GlobalTag = GlobalTag(process.GlobalTag, '102X_dataRun2_Sep2018Rereco_v1', '')
# Path and EndPath definitions
process.nanoAOD_step = cms.Path(process.nanoSequence)
process.endjob_step = cms.EndPath(process.endOfProcess)
process.NANOAODoutput_step = cms.EndPath(process.NANOAODoutput)
# Schedule definition
process.schedule = cms.Schedule(process.nanoAOD_step,process.endjob_step,process.NANOAODoutput_step)
from PhysicsTools.PatAlgos.tools.helpers import associatePatAlgosToolsTask
associatePatAlgosToolsTask(process)
# customisation of the process.
# Automatic addition of the customisation function from PhysicsTools.NanoAOD.nano_cff
from PhysicsTools.NanoAOD.nano_cff import nanoAOD_customizeData
#call to customisation function nanoAOD_customizeData imported from PhysicsTools.NanoAOD.nano_cff
process = nanoAOD_customizeData(process)
# Automatic addition of the customisation function from JMEAnalysis.JetToolbox.nanoAOD_jetToolbox_cff
from JMEAnalysis.JetToolbox.nanoAOD_jetToolbox_cff import nanoJTB_customizeMC
#call to customisation function nanoJTB_customizeMC imported from JMEAnalysis.JetToolbox.nanoAOD_jetToolbox_cff
process = nanoJTB_customizeMC(process)
# End of customisation functions
# Customisation from command line
process.add_(cms.Service('InitRootHandlers', EnableIMT = cms.untracked.bool(False)))
# Add early deletion of temporary data products to reduce peak memory need
from Configuration.StandardSequences.earlyDeleteSettings_cff import customiseEarlyDelete
process = customiseEarlyDelete(process)
# End adding early deletion | [
"[email protected]"
] | |
4ca435b4ad5d6b232ef752a8f27ca8a10af958c1 | 92d20de51f5bb380a2d23dbcc37d33ffb2d939dc | /famous_quote2.py | 9e1a75ce1c4410682b6e91652f707c290fe69887 | [] | no_license | pzrsa/pcc2-work | 082de24c3b934d40c05f5b5445e01c26d487e4f5 | e37f5e9c19e962e6ba172b43682375d1b5ecf9ab | refs/heads/main | 2023-08-02T00:49:50.736677 | 2021-06-08T16:44:05 | 2021-06-08T16:44:05 | 375,075,723 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 127 | py | author = "Neil Armstrong"
quote = '"One small step for man, one giant leap for mankind."'
print(f"{author} once said, {quote}") | [
"[email protected]"
] | |
36f370bfc178c0aa306640b63a65da98ab663980 | 3c52eda991b4a37e2b807dd1e05f07139637c758 | /examples/chat_sock_client.py | fa28e7decb30698e7e07a783163e3c8203bfc7ec | [
"Apache-2.0"
] | permissive | pgiri/pycos | ebea05b045f15f505eff5cf175798c0cf2b4a1db | 6594c311a02490ae0701fa741b508c335f305816 | refs/heads/master | 2022-12-25T21:53:15.091319 | 2022-12-18T17:27:05 | 2022-12-18T17:27:05 | 91,977,091 | 52 | 9 | NOASSERTION | 2020-02-19T01:47:09 | 2017-05-21T17:58:23 | Python | UTF-8 | Python | false | false | 1,798 | py | #!/usr/bin/env python
# run at least two instances of this program on either same node or multiple
# nodes on local network, along with 'chat_sock_server.py'; text typed in a
# client is sent to the all other clients. To use server on another computer,
# give network IP address as argument (and port as additional argument if
# necessary)
import sys, socket
import pycos
def client_recv(conn, task=None):
task.set_daemon()
while True:
line = yield conn.recv_msg()
if not line:
break
print(line.decode())
def client_send(conn, task=None):
task.set_daemon()
while True:
msg = yield task.recv()
yield conn.send_msg(msg)
if __name__ == '__main__':
# pycos.logger.setLevel(pycos.logger.DEBUG)
# optional arg 1 is host IP address and arg 2 is port to use
host, port = '', 3456
if len(sys.argv) > 1:
host = sys.argv[1]
if len(sys.argv) > 2:
port = int(sys.argv[2])
sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
sock.connect((host, port))
sock = pycos.AsyncSocket(sock)
# same connection is used to receive messages in one task and to send
# messages in another task
pycos.Task(client_recv, sock)
sender = pycos.Task(client_send, sock)
if sys.version_info.major > 2:
read_input = input
else:
read_input = raw_input
while True:
try:
line = read_input().strip()
if line.lower() in ('quit', 'exit'):
break
if not line:
continue
except:
break
# use message passing to send message to sender which will use
# connection's asynchronous socket method to transmit it
sender.send(line.encode())
sock.close()
| [
"[email protected]"
] | |
45dffbeb7c7a300afca0e26cb23b61451df816bf | 163bbb4e0920dedd5941e3edfb2d8706ba75627d | /Code/CodeRecords/2474/60832/271152.py | 83c2b7b872d226c351dce414d3b13e6efbb81199 | [] | no_license | AdamZhouSE/pythonHomework | a25c120b03a158d60aaa9fdc5fb203b1bb377a19 | ffc5606817a666aa6241cfab27364326f5c066ff | refs/heads/master | 2022-11-24T08:05:22.122011 | 2020-07-28T16:21:24 | 2020-07-28T16:21:24 | 259,576,640 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 260 | py | All = int(input())
for q in range(0, All):
s=input()
stack=[]
ans=0
for c in s:
if c=='(':
stack.append(c)
elif c==')':
if len(stack)!=0:
ans+=2
stack.pop()
print(ans) | [
"[email protected]"
] | |
eac0725aee74355dd77a533cc1a5991aabb1eff4 | 9c90b9b3c831c57b55e0a545bf047d298118e4bb | /test/functional/mempool_limit.py | 044db3a1f783578e02d47d7757b043de70f0ab09 | [
"MIT"
] | permissive | wolfoxonly/dk | c320958d778cb2831ae6b5f28798238c632218f6 | 090c9862a1a14c187eefcb8285e43601db5ed35b | refs/heads/master | 2021-09-14T01:38:54.560917 | 2018-05-07T09:19:49 | 2018-05-07T09:19:49 | 125,704,169 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,514 | py | #!/usr/bin/env python3
# Copyright (c) 2014-2017 The Dealtoken Core developers
# Distributed under the MIT software license, see the accompanying
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
"""Test mempool limiting together/eviction with the wallet."""
from test_framework.test_framework import DealtokenTestFramework
from test_framework.util import *
class MempoolLimitTest(DealtokenTestFramework):
def set_test_params(self):
self.setup_clean_chain = True
self.num_nodes = 1
self.extra_args = [["-maxmempool=5", "-spendzeroconfchange=0"]]
def run_test(self):
txouts = gen_return_txouts()
relayfee = self.nodes[0].getnetworkinfo()['relayfee']
self.log.info('Check that mempoolminfee is minrelytxfee')
assert_equal(self.nodes[0].getmempoolinfo()['minrelaytxfee'], Decimal('0.00001000'))
assert_equal(self.nodes[0].getmempoolinfo()['mempoolminfee'], Decimal('0.00001000'))
txids = []
utxos = create_confirmed_utxos(relayfee, self.nodes[0], 91)
self.log.info('Create a mempool tx that will be evicted')
us0 = utxos.pop()
inputs = [{ "txid" : us0["txid"], "vout" : us0["vout"]}]
outputs = {self.nodes[0].getnewaddress() : 0.0001}
tx = self.nodes[0].createrawtransaction(inputs, outputs)
self.nodes[0].settxfee(relayfee) # specifically fund this tx with low fee
txF = self.nodes[0].fundrawtransaction(tx)
self.nodes[0].settxfee(0) # return to automatic fee selection
txFS = self.nodes[0].signrawtransaction(txF['hex'])
txid = self.nodes[0].sendrawtransaction(txFS['hex'])
relayfee = self.nodes[0].getnetworkinfo()['relayfee']
base_fee = relayfee*100
for i in range (3):
txids.append([])
txids[i] = create_lots_of_big_transactions(self.nodes[0], txouts, utxos[30*i:30*i+30], 30, (i+1)*base_fee)
self.log.info('The tx should be evicted by now')
assert(txid not in self.nodes[0].getrawmempool())
txdata = self.nodes[0].gettransaction(txid)
assert(txdata['confirmations'] == 0) #confirmation should still be 0
self.log.info('Check that mempoolminfee is larger than minrelytxfee')
assert_equal(self.nodes[0].getmempoolinfo()['minrelaytxfee'], Decimal('0.00001000'))
assert_greater_than(self.nodes[0].getmempoolinfo()['mempoolminfee'], Decimal('0.00001000'))
if __name__ == '__main__':
MempoolLimitTest().main()
| [
"[email protected]"
] | |
d66d586e7b16e912053b19f171aa3d4e15a341f9 | 5f86944bdf1b810a84c63adc6ed01bbb48d2c59a | /kubernetes/client/models/v1beta1_stateful_set_spec.py | 0288ff6cba3d852e235cad1c93025464292b168a | [
"Apache-2.0"
] | permissive | m4ttshaw/client-python | 384c721ba57b7ccc824d5eca25834d0288b211e2 | 4eac56a8b65d56eb23d738ceb90d3afb6dbd96c1 | refs/heads/master | 2021-01-13T06:05:51.564765 | 2017-06-21T08:31:03 | 2017-06-21T08:31:03 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,117 | py | # coding: utf-8
"""
Kubernetes
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
OpenAPI spec version: v1.6.5
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from pprint import pformat
from six import iteritems
import re
class V1beta1StatefulSetSpec(object):
"""
NOTE: This class is auto generated by the swagger code generator program.
Do not edit the class manually.
"""
def __init__(self, replicas=None, selector=None, service_name=None, template=None, volume_claim_templates=None):
"""
V1beta1StatefulSetSpec - a model defined in Swagger
:param dict swaggerTypes: The key is attribute name
and the value is attribute type.
:param dict attributeMap: The key is attribute name
and the value is json key in definition.
"""
self.swagger_types = {
'replicas': 'int',
'selector': 'V1LabelSelector',
'service_name': 'str',
'template': 'V1PodTemplateSpec',
'volume_claim_templates': 'list[V1PersistentVolumeClaim]'
}
self.attribute_map = {
'replicas': 'replicas',
'selector': 'selector',
'service_name': 'serviceName',
'template': 'template',
'volume_claim_templates': 'volumeClaimTemplates'
}
self._replicas = replicas
self._selector = selector
self._service_name = service_name
self._template = template
self._volume_claim_templates = volume_claim_templates
@property
def replicas(self):
"""
Gets the replicas of this V1beta1StatefulSetSpec.
Replicas is the desired number of replicas of the given Template. These are replicas in the sense that they are instantiations of the same Template, but individual replicas also have a consistent identity. If unspecified, defaults to 1.
:return: The replicas of this V1beta1StatefulSetSpec.
:rtype: int
"""
return self._replicas
@replicas.setter
def replicas(self, replicas):
"""
Sets the replicas of this V1beta1StatefulSetSpec.
Replicas is the desired number of replicas of the given Template. These are replicas in the sense that they are instantiations of the same Template, but individual replicas also have a consistent identity. If unspecified, defaults to 1.
:param replicas: The replicas of this V1beta1StatefulSetSpec.
:type: int
"""
self._replicas = replicas
@property
def selector(self):
"""
Gets the selector of this V1beta1StatefulSetSpec.
Selector is a label query over pods that should match the replica count. If empty, defaulted to labels on the pod template. More info: http://kubernetes.io/docs/user-guide/labels#label-selectors
:return: The selector of this V1beta1StatefulSetSpec.
:rtype: V1LabelSelector
"""
return self._selector
@selector.setter
def selector(self, selector):
"""
Sets the selector of this V1beta1StatefulSetSpec.
Selector is a label query over pods that should match the replica count. If empty, defaulted to labels on the pod template. More info: http://kubernetes.io/docs/user-guide/labels#label-selectors
:param selector: The selector of this V1beta1StatefulSetSpec.
:type: V1LabelSelector
"""
self._selector = selector
@property
def service_name(self):
"""
Gets the service_name of this V1beta1StatefulSetSpec.
ServiceName is the name of the service that governs this StatefulSet. This service must exist before the StatefulSet, and is responsible for the network identity of the set. Pods get DNS/hostnames that follow the pattern: pod-specific-string.serviceName.default.svc.cluster.local where \"pod-specific-string\" is managed by the StatefulSet controller.
:return: The service_name of this V1beta1StatefulSetSpec.
:rtype: str
"""
return self._service_name
@service_name.setter
def service_name(self, service_name):
"""
Sets the service_name of this V1beta1StatefulSetSpec.
ServiceName is the name of the service that governs this StatefulSet. This service must exist before the StatefulSet, and is responsible for the network identity of the set. Pods get DNS/hostnames that follow the pattern: pod-specific-string.serviceName.default.svc.cluster.local where \"pod-specific-string\" is managed by the StatefulSet controller.
:param service_name: The service_name of this V1beta1StatefulSetSpec.
:type: str
"""
if service_name is None:
raise ValueError("Invalid value for `service_name`, must not be `None`")
self._service_name = service_name
@property
def template(self):
"""
Gets the template of this V1beta1StatefulSetSpec.
Template is the object that describes the pod that will be created if insufficient replicas are detected. Each pod stamped out by the StatefulSet will fulfill this Template, but have a unique identity from the rest of the StatefulSet.
:return: The template of this V1beta1StatefulSetSpec.
:rtype: V1PodTemplateSpec
"""
return self._template
@template.setter
def template(self, template):
"""
Sets the template of this V1beta1StatefulSetSpec.
Template is the object that describes the pod that will be created if insufficient replicas are detected. Each pod stamped out by the StatefulSet will fulfill this Template, but have a unique identity from the rest of the StatefulSet.
:param template: The template of this V1beta1StatefulSetSpec.
:type: V1PodTemplateSpec
"""
if template is None:
raise ValueError("Invalid value for `template`, must not be `None`")
self._template = template
@property
def volume_claim_templates(self):
"""
Gets the volume_claim_templates of this V1beta1StatefulSetSpec.
VolumeClaimTemplates is a list of claims that pods are allowed to reference. The StatefulSet controller is responsible for mapping network identities to claims in a way that maintains the identity of a pod. Every claim in this list must have at least one matching (by name) volumeMount in one container in the template. A claim in this list takes precedence over any volumes in the template, with the same name.
:return: The volume_claim_templates of this V1beta1StatefulSetSpec.
:rtype: list[V1PersistentVolumeClaim]
"""
return self._volume_claim_templates
@volume_claim_templates.setter
def volume_claim_templates(self, volume_claim_templates):
"""
Sets the volume_claim_templates of this V1beta1StatefulSetSpec.
VolumeClaimTemplates is a list of claims that pods are allowed to reference. The StatefulSet controller is responsible for mapping network identities to claims in a way that maintains the identity of a pod. Every claim in this list must have at least one matching (by name) volumeMount in one container in the template. A claim in this list takes precedence over any volumes in the template, with the same name.
:param volume_claim_templates: The volume_claim_templates of this V1beta1StatefulSetSpec.
:type: list[V1PersistentVolumeClaim]
"""
self._volume_claim_templates = volume_claim_templates
def to_dict(self):
"""
Returns the model properties as a dict
"""
result = {}
for attr, _ in iteritems(self.swagger_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:
result[attr] = value
return result
def to_str(self):
"""
Returns the string representation of the model
"""
return pformat(self.to_dict())
def __repr__(self):
"""
For `print` and `pprint`
"""
return self.to_str()
def __eq__(self, other):
"""
Returns true if both objects are equal
"""
if not isinstance(other, V1beta1StatefulSetSpec):
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]"
] | |
2b2dce53205515424c5bb11c71552d4553094d37 | 3a298c93b67386392d3dee243671f2c101decf01 | /leetcode/learn-cards/array-101/12_move_zeros.py | b550db407a56d2417d7e7300073945f2bd13d3af | [] | no_license | Zahidsqldba07/coding-problems-2 | ffbc8408e4408fc846c828af2ec50a9d72e799bc | 020bffbd14ca9993f1e678181ee7df761f1533de | refs/heads/master | 2023-06-26T11:05:34.089697 | 2021-07-21T15:16:10 | 2021-07-21T15:16:10 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 295 | py | class Solution:
def moveZeroes(self, nums):
"""
Do not return anything, modify nums in-place instead.
"""
z = 0
for i in range(len(nums)):
if nums[i] != 0:
nums[i], nums[z] = nums[z], nums[i]
z += 1 | [
"[email protected]"
] | |
070f9494314e7d8a7ce8283fe45bb2b13ae5e7d8 | 9f9f4280a02f451776ea08365a3f119448025c25 | /plans/hsppw/lcut_hsp-s_070_pwde_mlpc_hs.py | b7b1a1ccf1a62ce508fefc6b8b40da3238c1b831 | [
"BSD-2-Clause"
] | permissive | dbis-uibk/hit-prediction-code | 6b7effb2313d2499f49b2b14dd95ae7545299291 | c95be2cdedfcd5d5c27d0186f4c801d9be475389 | refs/heads/master | 2023-02-04T16:07:24.118915 | 2022-09-22T12:49:50 | 2022-09-22T12:49:50 | 226,829,436 | 2 | 2 | null | null | null | null | UTF-8 | Python | false | false | 2,159 | py | """Plan using all features."""
import os.path
from dbispipeline.evaluators import CvEpochEvaluator
from sklearn.neural_network import MLPClassifier
from sklearn.pipeline import Pipeline
from sklearn.preprocessing import MinMaxScaler
import hit_prediction_code.common as common
from hit_prediction_code.dataloaders import ClassLoaderWrapper
from hit_prediction_code.dataloaders import CutLoaderWrapper
from hit_prediction_code.dataloaders import EssentiaLoader
import hit_prediction_code.evaluations as evaluations
from hit_prediction_code.models.pairwise import PairwiseOrdinalModel
from hit_prediction_code.result_handlers import print_results_as_json
from hit_prediction_code.transformers.label import compute_hit_score_on_df
PATH_PREFIX = 'data/hit_song_prediction_msd_bb_lfm_ab/processed'
number_of_classes = 70
dataloader = ClassLoaderWrapper(
wrapped_loader=CutLoaderWrapper(
wrapped_loader=EssentiaLoader(
dataset_path=os.path.join(
PATH_PREFIX,
'hsp-s_acousticbrainz.parquet',
),
features=[
*common.all_no_year_list(),
],
label='yang_hit_score',
nan_value=0,
data_modifier=lambda df: compute_hit_score_on_df(
df,
pc_column='lastfm_playcount',
lc_column='lastfm_listener_count',
hit_score_column='yang_hit_score',
),
),
number_of_bins=number_of_classes,
),
labels=list(range(number_of_classes)),
)
pipeline = Pipeline([
('scale', MinMaxScaler()),
('model',
PairwiseOrdinalModel(
wrapped_model=MLPClassifier(
hidden_layer_sizes=(256, 128, 128, 128, 64),
verbose=True,
),
pairs_factor=3.,
threshold_type='average',
pair_strategy='random',
pair_encoding='delta',
threshold_sample_training=False,
)),
])
evaluator = CvEpochEvaluator(
cv=evaluations.cv(),
scoring=evaluations.metrics.ordinal_classifier_scoring(),
scoring_step_size=1,
)
result_handlers = [
print_results_as_json,
]
| [
"[email protected]"
] | |
010044719defff9a149b002bb54cdbca81295588 | 929f00c386b8686e1c802aa622875c62d295e216 | /spikeforest/forestview/recording_views/testplotlyview.py | 61f739cfd85644eeaf32c4bad8d6f58d58d8258e | [
"Apache-2.0"
] | permissive | mhhennig/spikeforest | e0d6cbb47d15131e683545c1978abc6f99c51dc5 | 5b4507ead724af3de0be5d48a3b23aaedb0be170 | refs/heads/master | 2020-05-31T11:03:58.438693 | 2019-06-04T18:06:37 | 2019-06-04T18:06:37 | 190,254,208 | 0 | 0 | Apache-2.0 | 2019-06-04T18:05:28 | 2019-06-04T18:05:28 | null | UTF-8 | Python | false | false | 2,824 | py | import vdomr as vd
import time
import multiprocessing
import sys
from .stdoutsender import StdoutSender
import mtlogging
import numpy as np
class TestPlotlyView(vd.Component):
def __init__(self, context):
vd.Component.__init__(self)
self._context = context
self._size = (100, 100)
self._test_plotly_widget = None
self._connection_to_init, connection_to_parent = multiprocessing.Pipe()
self._init_process = multiprocessing.Process(target=_initialize, args=(context, connection_to_parent))
self._init_process.start()
self._init_log_text = ''
vd.set_timeout(self._check_init, 0.5)
def _on_init_completed(self, init):
self._test_plotly_widget = TestPlotlyWidget()
self._test_plotly_widget.setSize(self._size)
self.refresh()
def setSize(self, size):
self._size = size
if self._test_plotly_widget:
self._test_plotly_widget.setSize(size)
def size(self):
return self._size
def tabLabel(self):
return 'Test plotly'
def render(self):
if self._test_plotly_widget:
return vd.div(
self._test_plotly_widget
)
else:
return vd.div(
vd.h3('Initializing...'),
vd.pre(self._init_log_text)
)
def _check_init(self):
if not self._test_plotly_widget:
if self._connection_to_init.poll():
msg = self._connection_to_init.recv()
if msg['name'] == 'log':
self._init_log_text = self._init_log_text + msg['text']
self.refresh()
elif msg['name'] == 'result':
self._on_init_completed(msg['result'])
return
vd.set_timeout(self._check_init, 1)
class TestPlotlyWidget(vd.Component):
def __init__(self):
vd.Component.__init__(self)
self._size = (100, 100)
self._plot = None
self._update_plot()
def setSize(self, size):
self._size = size
self._update_plot()
def _update_plot(self):
xx = np.linspace(0, 1, 10)
yy = np.cos((10 * xx)**2)
self._plot = vd.components.PlotlyPlot(
data=dict(x=xx, y=yy),
layout=dict(margin=dict(t=5)),
config=dict(),
size=self._size
)
self.refresh()
def render(self):
if not self._plot:
return vd.div('no plot.')
return self._plot
# Initialization in a worker thread
mtlogging.log(root=True)
def _initialize(context, connection_to_parent):
with StdoutSender(connection=connection_to_parent):
pass
connection_to_parent.send(dict(
name='result',
result=dict()
))
| [
"[email protected]"
] | |
9a179c09c2ccd31e9d0d55efe8784ca707ccebf0 | 2efa640e2c089a601a3c748d5ec4c80d65cb9695 | /src/ploomber/dag/dagclients.py | 45a7f88f2b788e3e2e5c68606b8dd5f15f4a8368 | [
"Apache-2.0"
] | permissive | BigRLab/ploomber | 19d35345cc8548b79f73f026674186969f1c3d4e | e2732be116507128ec900e4ef6195f529f639358 | refs/heads/master | 2023-05-08T03:37:11.384226 | 2021-05-31T20:57:37 | 2021-05-31T20:57:37 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,054 | py | from inspect import isclass
from collections.abc import MutableMapping
from ploomber.tasks.abc import Task
from ploomber.products.Product import Product
from ploomber.validators.string import get_suggestion, str_to_class
class DAGClients(MutableMapping):
"""
A dict-like object with validations
1. __setitem__, __getitem__ work with strings (e.g., clients['SQLScript'])
2. __setitem__ validates the key is a Task or Product subclass
"""
def __init__(self, mapping=None):
self._mapping = mapping or dict()
def __getitem__(self, key):
if isinstance(key, str):
key_obj = str_to_class(key)
else:
key_obj = key
if key_obj is None:
error = repr(key)
suggestion = get_suggestion(key)
if suggestion and str_to_class(suggestion) in self:
error += f'. Did you mean {suggestion!r}?'
raise KeyError(error)
return self._mapping[key_obj]
def __setitem__(self, key, value):
if isinstance(key, str):
key_obj = str_to_class(key)
if key_obj is None:
maybe = get_suggestion(key)
msg = (f'Could not set DAG-level client {value!r}. '
f'{key!r} is not a valid Task or '
'Product class name')
if maybe:
msg += f'. Did you mean {maybe!r}?'
raise ValueError(msg)
else:
key_obj = key
if not isclass(key_obj) or not issubclass(key_obj, (Task, Product)):
raise ValueError('DAG client keys must be Tasks '
f'or Products, value {key_obj!r} is not')
self._mapping[key_obj] = value
def __delitem__(self, key):
del self._mapping[key]
def __iter__(self):
for item in self._mapping:
yield item
def __len__(self):
return len(self._mapping)
def __repr__(self):
return f'{type(self).__name__}({self._mapping!r})'
| [
"[email protected]"
] | |
0c08520810a73883b54bd1055179f58e7e018a84 | cc873161235502933845cfdaa7b2bfd9006b70c8 | /week7/coffeehouse/menu_api/migrations/0003_special_created_by.py | 5eba7622b1e13064f614216ac101479e0582a734 | [] | no_license | taddeimania/class_notes | d8a7f72ac9abf927768072a253effd35e521fb6d | 1cb321782caf9d823eee69fa43175cf31fd6b34f | refs/heads/master | 2020-04-10T03:55:44.311163 | 2016-11-08T14:22:41 | 2016-11-08T14:22:41 | 68,213,614 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 695 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.10.1 on 2016-10-27 14:02
from __future__ import unicode_literals
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
('menu_api', '0002_auto_20161026_1447'),
]
operations = [
migrations.AddField(
model_name='special',
name='created_by',
field=models.ForeignKey(default=1, on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL),
preserve_default=False,
),
]
| [
"[email protected]"
] | |
713c2b5154472452b4241477e6f47c0611a1fe82 | 4d5e6e0a7057123ddd7cb97027e667117e1be143 | /control/type_casting_v2.py | f0aefebd5cad5c7423fdfb73587172c2743d6a1d | [] | no_license | shubhomedia/Learn_Python | cee48990c04521fcbb7dbf5ad120c69170dcd1be | 01e0a8e3dc2de87b09c963e7cb9fc5e246831ddb | refs/heads/master | 2021-07-01T08:53:51.151326 | 2021-01-02T17:31:36 | 2021-01-02T17:31:36 | 204,191,119 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 142 | py | x = str("s1") # x will be 's1'
y = str(2) # y will be '2'
z = str(3.0) # z will be '3.0'
print(x,y,z)
# all print type will be string type | [
"[email protected]"
] | |
fba6bc3853ad3d4853ed6461e4c967589c6920e7 | 1b4abb5e310c7ae1b2928f9ea80a6b3a8c2fb8ed | /model/ml/active_learning_unique_mincertainty.py | cd034340d19b28b3fea4a25a2635ca76c9456298 | [] | no_license | zhang-198/ExampleDrivenErrorDetection | 2e2c708665f2b57b6ac7c785604a2ac6234f7ba9 | ae8bc24fc441957d9a29e5fa4cc247f1805d8b4d | refs/heads/master | 2023-05-23T14:49:29.628520 | 2020-04-09T14:02:28 | 2020-04-09T14:02:28 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 19,230 | py | import pickle
from ml.active_learning.library import *
import xgboost as xgb
from sklearn.metrics import confusion_matrix
# best version
def go_to_next_column_prob1(column_id, pred_potential):
minimum_pred = 0.0
for column_step in range(len(pred_potential)):
if pred_potential[column_step] != -1.0:
if pred_potential[column_step] < minimum_pred:
minimum_pred = pred_potential[column_step]
new_potential = pred_potential - minimum_pred
for column_step in range(len(pred_potential)):
if pred_potential[column_step] == -1.0:
new_potential[column_step] = 0.0
# print str(new_potential)
# print str(np.sum(new_potential))
new_potential = np.square(new_potential)
new_potential = new_potential / np.sum(new_potential)
print "pot: " + str(new_potential) + " sum: " + str(np.sum(new_potential))
# return np.random.choice(len(new_potential), 1, p=new_potential)[0]
return np.argmax(new_potential)
def go_to_next_column_prob(id_next, avg_certainty):
import operator
return min(avg_certainty.iteritems(), key=operator.itemgetter(1))[0]
def go_to_next_column_round(column_id):
column_id = column_id + 1
if column_id == dataSet.shape[1]:
column_id = 0
return column_id
def load_model(dataSet, classifier):
dataset_log_files = {}
dataset_log_files[HospitalHoloClean().name] = "hospital"
dataset_log_files[BlackOakDataSetUppercase().name] = "blackoak"
dataset_log_files[FlightHoloClean().name] = "flight"
# not yet
dataset_log_files[Salary().name] = "hospital" # be careful
dataset_log_files[Book().name] = "hospital" # be careful
potential_model_dir = Config.get("column.potential.models")
return pickle.load(
open(potential_model_dir + "/model" + dataset_log_files[dataSet.name] + "_" + classifier.name + ".p"))
def add_lstm_features(data, use_lstm_only, all_matrix_train, feature_name_list):
lstm_path = ""
if dataSet.name == 'Flight HoloClean':
lstm_path = "/home/felix/SequentialPatternErrorDetection/deepfeatures/Flights/last/"
elif dataSet.name == 'HospitalHoloClean':
lstm_path = "/home/felix/SequentialPatternErrorDetection/deepfeatures/HospitalHoloClean/last/"
elif dataSet.name == 'BlackOakUppercase':
lstm_path = "/home/felix/SequentialPatternErrorDetection/deepfeatures/BlackOakUppercase/last/"
else:
raise Exception('We have no potential model for this dataset yet')
all_matrix_train_deep = read_compressed_deep_features(lstm_path)
all_matrix_test = None
feature_name_list_deep = ['deep ' + str(dfeature) for dfeature in range(all_matrix_train_deep.shape[1])]
if use_lstm_only:
all_matrix_train = all_matrix_train_deep
feature_name_list = feature_name_list_deep
else:
all_matrix_train = hstack((all_matrix_train, all_matrix_train_deep)).tocsr()
feature_name_list.extend(feature_name_list_deep)
return all_matrix_train, all_matrix_test, feature_name_list
# input
start_time = time.time()
from ml.datasets.flights.FlightHoloClean import FlightHoloClean
#dataSet = FlightHoloClean()
from ml.datasets.hospital.HospitalHoloClean import HospitalHoloClean
#dataSet = HospitalHoloClean()
from ml.datasets.blackOak.BlackOakDataSetUppercase import BlackOakDataSetUppercase
dataSet = BlackOakDataSetUppercase()
from ml.datasets.salary_data.Salary import Salary
#dataSet = Salary()
from ml.datasets.luna.book.Book import Book
#dataSet = Book()
from ml.datasets.luna.restaurant.Restaurant import Restaurant
#dataSet = Restaurant()
'''
from ml.datasets.synthetic.Synthetic import Synthetic
from ml.datasets.synthetic.ReplaceError import ReplaceError
rows = 2000
datasets =[BlackOakDataSetUppercase(), BlackOakDataSetUppercase(), BlackOakDataSetUppercase(), BlackOakDataSetUppercase(), BlackOakDataSetUppercase(), BlackOakDataSetUppercase(), BlackOakDataSetUppercase(), BlackOakDataSetUppercase(), BlackOakDataSetUppercase(), BlackOakDataSetUppercase()]
columns = [4,4,4,4,4,4,4,4,4,4]
error_fraction = [0.01, 0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9]
error_types = [ReplaceError, ReplaceError,ReplaceError, ReplaceError,ReplaceError, ReplaceError,ReplaceError, ReplaceError,ReplaceError, ReplaceError]
seed_synth = 41
dataSet = Synthetic(rows, datasets, columns, error_fraction, error_types, seed_synth)
'''
'''
from ml.datasets.synthetic.Synthetic import Synthetic
from ml.datasets.synthetic.ReplaceError import ReplaceError
rows = 2000
datasets =[BlackOakDataSetUppercase()]
columns = [4]
error_fraction = [0.9]
error_types = [ReplaceError]
seed_synth = 41
dataSet = Synthetic(rows, datasets, columns, error_fraction, error_types, seed_synth)
'''
print("read: %s seconds ---" % (time.time() - start_time))
start_time = time.time()
number_of_round_robin_rounds = 2
train_fraction = 1.0
ngrams = 1
runSVD = False
use_metadata = True
use_metadata_only = False
use_lstm = False
user_error_probability = 0.00
step_size = 10
cross_validation_rounds = 1 # 1
use_change_features = True
checkN = 10 # 5
# total runs
label_iterations = 6 # 6
run_round_robin = False
if run_round_robin:
number_of_round_robin_rounds = 10000
label_iterations = 41
checkN = 10
feature_names_potential = ['distinct_values_fraction', 'labels', 'certainty', 'certainty_stddev', 'minimum_certainty']
for i in range(100):
feature_names_potential.append('certainty_histogram' + str(i))
feature_names_potential.append('predicted_error_fraction')
for i in range(7):
feature_names_potential.append('icross_val' + str(i))
feature_names_potential.append('mean_cross_val')
feature_names_potential.append('stddev_cross_val')
feature_names_potential.append('training_error_fraction')
for i in range(100):
feature_names_potential.append('change_histogram' + str(i))
feature_names_potential.append('mean_squared_certainty_change')
feature_names_potential.append('stddev_squared_certainty_change')
for i in range(10):
feature_names_potential.append('batch_certainty_' + str(i))
if use_change_features:
feature_names_potential.append('no_change_0')
feature_names_potential.append('no_change_1')
feature_names_potential.append('change_0_to_1')
feature_names_potential.append('change_1_to_0')
print(str(feature_names_potential))
size = len(feature_names_potential)
for s in range(size):
feature_names_potential.append(feature_names_potential[s] + "_old")
which_features_to_use = []
for feature_index in range(len(feature_names_potential)):
if True: #not 'histogram' in feature_names_potential[feature_index]:
which_features_to_use.append(feature_index)
print which_features_to_use
feature_names_potential = [i for j, i in enumerate(feature_names_potential) if j in which_features_to_use]
feature_gen_time = 0.0
for check_this in range(checkN):
f = open("/home/felix/ExampleDrivenErrorDetection/log_progress_" + dataSet.name + "_" + str(check_this) + ".csv",
'w+')
train_indices, test_indices = split_data_indices(dataSet, train_fraction, fold_number=check_this)
total_start_time = time.time()
feature_gen_start = time.time()
all_matrix_train, all_matrix_test, feature_name_list = create_features(dataSet, train_indices, test_indices, ngrams,
runSVD)
if use_metadata:
all_matrix_train, all_matrix_test, feature_name_list = add_metadata_features(dataSet, train_indices,
test_indices, all_matrix_train,
all_matrix_test, feature_name_list,
use_metadata_only)
if use_lstm:
all_matrix_train, all_matrix_test, feature_name_list = add_lstm_features(dataSet, False, all_matrix_train,
feature_name_list)
print("features: %s seconds ---" % (time.time() - start_time))
data_result = []
column_id = 0
feature_matrix = all_matrix_train.tocsr()
from ml.active_learning.classifier.XGBoostClassifier import XGBoostClassifier
classifier = XGBoostClassifier(all_matrix_train, all_matrix_test)
from ml.active_learning.classifier.LinearSVMClassifier import LinearSVMClassifier
# classifier = LinearSVMClassifier(all_matrix_train, all_matrix_test)
from ml.active_learning.classifier.NaiveBayesClassifier import NaiveBayesClassifier
# classifier = NaiveBayesClassifier(all_matrix_train, all_matrix_test)
all_error_status = np.zeros((all_matrix_train.shape[0], dataSet.shape[1]), dtype=bool)
if all_matrix_test != None:
all_error_status_test = np.zeros((all_matrix_test.shape[0], dataSet.shape[1]), dtype=bool)
feature_gen_time = time.time() - feature_gen_start
print("Feature Generation Time: " + str(feature_gen_time))
save_fscore = []
save_labels = []
save_certainty = []
save_fscore_general = []
save_time = []
our_params = {}
train = {}
train_target = {}
train_chosen_ids = {}
y_pred = {}
certainty = {}
min_certainty = {}
final_gb = {}
res = {}
feature_array_all = {}
zero_change_count = {}
rounds_per_column = {}
model = None
pred_potential = {}
y_next = {}
x_next = {}
id_next = {}
diff_certainty = {}
avg_certainty = {}
for round in range(label_iterations * dataSet.shape[1]):
print("round: " + str(round))
if column_id in rounds_per_column:
current_rounds = rounds_per_column[column_id]
current_rounds += 1
rounds_per_column[column_id] = current_rounds
else:
rounds_per_column[column_id] = 1
# switch to column
target_run, target_test = getTarget(dataSet, column_id, train_indices, test_indices)
if rounds_per_column[column_id] == 1:
start_time = time.time()
num_errors = 2
train[column_id], train_target[column_id], train_chosen_ids[column_id] = create_user_start_data(feature_matrix.tocsr(), target_run,
num_errors, return_ids=True)
if train[column_id] == None:
certainty[column_id] = 1.0
#pred_potential[column_id] = -1.0
column_id = go_to_next_column_round(column_id)
continue
print("Number of errors in training: " + str(np.sum(train_target[column_id])))
print("clustering: %s seconds ---" % (time.time() - start_time))
# cross-validation
start_time = time.time()
classifier.run_cross_validation(train[column_id], train_target[column_id], num_errors, column_id)
print("cv: %s seconds ---" % (time.time() - start_time))
min_certainty[column_id] = 0.0
eval_scores = np.zeros(7)
else:
if train[column_id] == None:
if round < dataSet.shape[1] * number_of_round_robin_rounds:
column_id = go_to_next_column_round(column_id)
else:
column_id = go_to_next_column_prob(id_next, avg_certainty)
continue
# change column
if column_id in certainty:
min_certainty[column_id] = np.min(np.absolute(y_pred[column_id] - 0.5))
else:
min_certainty[column_id] = 0.0
diff = np.absolute(y_pred[column_id] - 0.5)
print("min certainty: " + str(np.min(diff)))
'''
train[column_id], train_target[column_id], certainty[column_id], train_chosen_ids[column_id] = create_next_data(train[column_id],
train_target[column_id],
feature_matrix,
target_run,
y_pred[column_id],
step_size,
dataSet,
column_id,
user_error_probability,
train_chosen_ids[column_id])
'''
train[column_id], train_target[column_id], train_chosen_ids[column_id] = add_data_next(
train[column_id],
train_target[column_id],
train_chosen_ids[column_id],
x_next[column_id],
y_next[column_id],
id_next[column_id])
#print "len: " + str(len(train[column_id])) + " - " + str(len(train_target[column_id]))
# cross-validation
if round < dataSet.shape[1] * cross_validation_rounds:
our_params[column_id] = classifier.run_cross_validation(train[column_id], train_target[column_id],
num_errors, column_id)
# print("cv: %s seconds ---" % (time.time() - start_time))
eval_scores = classifier.run_cross_validation_eval(train[column_id], train_target[column_id], 7, column_id)
start_time = time.time()
# train
# predict
y_pred_current_prediction, res_new = classifier.train_predict(train[column_id], train_target[column_id],
column_id)
if column_id in y_pred:
prediction_change_y_pred = np.square(y_pred_current_prediction - y_pred[column_id])
else:
prediction_change_y_pred = np.zeros(len(y_pred_current_prediction))
y_pred[column_id] = y_pred_current_prediction
x_next[column_id], y_next[column_id], diff_certainty[column_id], id_next[column_id] = create_next_part(
feature_matrix,
target_run,
y_pred[column_id],
step_size,
dataSet,
column_id,
user_error_probability,
train_chosen_ids[column_id])
print "size x: " + str(len(x_next[column_id]))
if column_id in res:
no_change_0, no_change_1, change_0_to_1, change_1_to_0 = compare_change(res[column_id], res_new)
print("no change 0: " + str(no_change_0) + " no change 1: " + str(no_change_1) + " sum no change: " + str(
no_change_0 + no_change_1))
print("change 0 ->1: " + str(change_0_to_1) + " change 1->0: " + str(change_1_to_0) + " sum change: " + str(
change_0_to_1 + change_1_to_0))
else:
no_change_0, no_change_1, change_0_to_1, change_1_to_0 = compare_change(np.zeros(len(res_new)), res_new)
res[column_id] = res_new
all_error_status[:, column_id] = res[column_id]
print("train & predict: %s seconds ---" % (time.time() - start_time))
if all_matrix_test != None:
y_pred_test, res_gen = classifier.predict(column_id)
all_error_status_test[:, column_id] = res_gen
# visualize_model(dataSet, column_id, final_gb, feature_name_list, train, target_run, res)
print ("current train shape: " + str(train[column_id].shape))
print ("column: " + str(column_id))
print_stats(target_run, res[column_id])
print_stats_whole(dataSet.matrix_is_error[train_indices, :], all_error_status, "run all")
calc_my_fscore(dataSet.matrix_is_error[train_indices, :], all_error_status, dataSet)
if all_matrix_test != None:
print_stats_whole(dataSet.matrix_is_error[test_indices, :], all_error_status_test, "test general")
number_samples = 0
for key, value in train.iteritems():
if value != None:
number_samples += value.shape[0]
print("total labels: " + str(number_samples) + " in %: " + str(
float(number_samples) / (dataSet.shape[0] * dataSet.shape[1])))
sum_certainty = 0.0
for key, value in certainty.iteritems():
if value != None:
sum_certainty += value
sum_certainty /= dataSet.shape[1]
print("total certainty: " + str(sum_certainty))
save_fscore.append(f1_score(dataSet.matrix_is_error[train_indices, :].flatten(), all_error_status.flatten()))
if all_matrix_test != None:
save_fscore_general.append(
f1_score(dataSet.matrix_is_error[test_indices, :].flatten(), all_error_status_test.flatten()))
save_labels.append(number_samples)
save_certainty.append(sum_certainty)
num_hist_bin = 100
diff = np.absolute(y_pred[column_id] - 0.5)
certainty_here = (np.sum(diff) / len(diff)) * 2
distinct_values_fraction = float(
len(dataSet.dirty_pd[dataSet.dirty_pd.columns[column_id]].unique())) / float(dataSet.shape[0])
feature_array = []
feature_array.append(distinct_values_fraction)
feature_array.append(train[column_id].shape[0])
feature_array.append(certainty_here)
avg_certainty[column_id] = certainty_here
feature_array.append(np.std(diff))
feature_array.append(np.min(np.absolute(y_pred[column_id] - 0.5)))
for i in range(num_hist_bin):
feature_array.append(float(len(
diff[np.logical_and(diff >= i * (0.5 / num_hist_bin), diff < (i + 1) * (0.5 / num_hist_bin))])) / len(
diff))
predicted_error_fraction = float(np.sum(y_pred[column_id] > 0.5)) / float(len(y_pred[column_id]))
print "predicted error fraction: " + str(predicted_error_fraction)
feature_array.append(predicted_error_fraction)
for score in eval_scores:
feature_array.append(score)
feature_array.append(np.mean(eval_scores))
feature_array.append(np.std(eval_scores))
training_error_fraction = float(np.sum(train_target[column_id])) / float(len(train_target[column_id]))
print "training error fraction: " + str(training_error_fraction)
feature_array.append(training_error_fraction)
hist_pred_change = []
for histogram_i in range(num_hist_bin):
feature_array.append(float(len(prediction_change_y_pred[np.logical_and(
prediction_change_y_pred >= histogram_i * (1.0 / num_hist_bin),
prediction_change_y_pred < (histogram_i + 1) * (1.0 / num_hist_bin))])) / len(prediction_change_y_pred))
hist_pred_change.append(float(len(prediction_change_y_pred[np.logical_and(
prediction_change_y_pred >= histogram_i * (1.0 / num_hist_bin),
prediction_change_y_pred < (histogram_i + 1) * (1.0 / num_hist_bin))])) / len(prediction_change_y_pred))
feature_array.append(np.mean(prediction_change_y_pred))
feature_array.append(np.std(prediction_change_y_pred))
print "Mean Squared certainty change: " + str(np.mean(prediction_change_y_pred))
batch_certainties = diff_certainty[column_id][id_next[column_id]]
assert len(batch_certainties) == 10
for batch_certainty in batch_certainties:
feature_array.append(batch_certainty)
# print "hist: pred: " + str(hist_pred_change)
# plt.bar(range(100), hist_pred_change)
# plt.show()
if use_change_features:
feature_array.append(no_change_0)
feature_array.append(no_change_1)
feature_array.append(change_0_to_1)
feature_array.append(change_1_to_0)
feature_vector = []
if column_id in feature_array_all:
if not run_round_robin:
column_list = feature_array_all[column_id]
column_list.append(feature_array)
feature_array_all[column_id] = column_list
feature_vector.extend(feature_array)
feature_vector.extend(column_list[len(column_list) - 2])
feature_vector_new = np.matrix(feature_vector)[0, which_features_to_use]
'''
if model == None:
model = load_model(dataSet, classifier)
mat_potential = xgb.DMatrix(feature_vector_new, feature_names=feature_names_potential)
pred_potential[column_id] = model.predict(mat_potential)
print("prediction: " + str(pred_potential[column_id]))
'''
else:
column_list = []
column_list.append(feature_array)
feature_array_all[column_id] = column_list
for feature_e in feature_array:
f.write(str(feature_e) + ",")
tn, fp, fn, tp = confusion_matrix(target_run, res[column_id]).ravel()
# tn = float(tn) / float(len(target_run))
fp = float(fp) / float(len(target_run))
fn = float(fn) / float(len(target_run))
tp = float(tp) / float(len(target_run))
f.write(str(f1_score(target_run, res[column_id])) + "," + str(fp) + "," + str(fn) + "," + str(tp) + '\n')
if round < dataSet.shape[1] * number_of_round_robin_rounds:
column_id = go_to_next_column_round(column_id)
else:
print ("start using prediction")
column_id = go_to_next_column_prob(id_next, avg_certainty)
current_runtime = (time.time() - total_start_time)
print("iteration end: %s seconds ---" % current_runtime)
save_time.append(current_runtime)
print (save_fscore)
print (save_fscore_general)
print (save_labels)
print (save_certainty)
print (save_time)
f.close()
| [
"[email protected]"
] | |
e5d01453be61f2b329f66383a47ae1bd9104c98e | 288a00d2ab34cba6c389b8c2444455aee55a8a95 | /tests/data23/recipe-576938.py | 252a8acccd4b737098c0a74b541a95691ad026fb | [
"BSD-2-Clause"
] | permissive | JohannesBuchner/pystrict3 | ffd77b7bbc378bd4d8f21b5c6bd69a0d64a52ddb | 18b0dd369082422f9bf0f89c72e7acb53a49849c | refs/heads/master | 2023-08-14T06:37:37.954880 | 2023-07-13T11:16:38 | 2023-07-13T11:16:38 | 268,571,175 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,153 | py | # -*- coding: iso-8859-1 -*-
# laplace.py with mpmath
# appropriate for high precision
# Talbot suggested that the Bromwich line be deformed into a contour that begins
# and ends in the left half plane, i.e., z \to \infty at both ends.
# Due to the exponential factor the integrand decays rapidly
# on such a contour. In such situations the trapezoidal rule converge
# extraordinarily rapidly.
# For example here we compute the inverse transform of F(s) = 1/(s+1) at t = 1
#
# >>> error = Talbot(1,24)-exp(-1)
# >>> error
# (3.3306690738754696e-015+0j)
#
# Talbot method is very powerful here we see an error of 3.3e-015
# with only 24 function evaluations
#
# Created by Fernando Damian Nieuwveldt
# email:[email protected]
# Date : 25 October 2009
#
# Adapted to mpmath and classes by Dieter Kadelka
# email: [email protected]
# Date : 27 October 2009
#
# Reference
# L.N.Trefethen, J.A.C.Weideman, and T.Schmelzer. Talbot quadratures
# and rational approximations. BIT. Numerical Mathematics,
# 46(3):653 670, 2006.
from mpmath import mpf,mpc,pi,sin,tan,exp
# testfunction: Laplace-transform of exp(-t)
def F(s):
return 1.0/(s+1.0)
class Talbot(object):
def __init__(self,F=F,shift=0.0):
self.F = F
# test = Talbot() or test = Talbot(F) initializes with testfunction F
self.shift = shift
# Shift contour to the right in case there is a pole on the
# positive real axis :
# Note the contour will not be optimal since it was originally devoloped
# for function with singularities on the negative real axis For example
# take F(s) = 1/(s-1), it has a pole at s = 1, the contour needs to be
# shifted with one unit, i.e shift = 1.
# But in the test example no shifting is necessary
self.N = 24
# with double precision this constant N seems to best for the testfunction
# given. For N = 22 or N = 26 the error is larger (for this special
# testfunction).
# With laplace.py:
# >>> test.N = 500
# >>> print test(1) - exp(-1)
# >>> -2.10032517928e+21
# Huge (rounding?) error!
# with mp_laplace.py
# >>> mp.dps = 100
# >>> test.N = 500
# >>> print test(1) - exp(-1)
# >>> -5.098571435907316903360293189717305540117774982775731009465612344056911792735539092934425236391407436e-64
def __call__(self,t):
if t == 0:
print("ERROR: Inverse transform can not be calculated for t=0")
return ("Error");
# Initiate the stepsize
h = 2*pi/self.N
ans = 0.0
# parameters from
# T. Schmelzer, L.N. Trefethen, SIAM J. Numer. Anal. 45 (2007) 558-571
c1 = mpf('0.5017')
c2 = mpf('0.6407')
c3 = mpf('0.6122')
c4 = mpc('0','0.2645')
# The for loop is evaluating the Laplace inversion at each point theta i
# which is based on the trapezoidal rule
for k in range(self.N):
theta = -pi + (k+0.5)*h
z = self.shift + self.N/t*(c1*theta/tan(c2*theta) - c3 + c4*theta)
dz = self.N/t * (-c1*c2*theta/sin(c2*theta)**2 + c1/tan(c2*theta)+c4)
ans += exp(z*t)*self.F(z)*dz
return ((h/(2j*pi))*ans).real
| [
"[email protected]"
] | |
5f6f1d4d9488f159cbe77963ab23c55884831ffc | 181af10fcf40b824fe92d3b8f72fd15d6d1490c2 | /Contests/101-200/week 200/1536. Minimum Swaps to Arrange a Binary Grid/Minimum Swaps to Arrange a Binary Grid.py | 3945b9170c8ea867c0294760570f9df5e6239462 | [] | no_license | wangyendt/LeetCode | 402c59a0b7b7f5b3a672231ea5dad8056ade36af | 4a3ba15284c45b2d8bf38306c8c8526ae174615c | refs/heads/master | 2023-08-10T06:27:54.995152 | 2023-08-10T02:22:27 | 2023-08-10T02:22:27 | 176,651,399 | 6 | 0 | null | null | null | null | UTF-8 | Python | false | false | 919 | py | #!/usr/bin/env python
# encoding: utf-8
"""
@author: Wayne
@contact: [email protected]
@software: PyCharm
@file: Minimum Swaps to Arrange a Binary Grid
@time: 2020/08/03 04:39
"""
class Solution:
def minSwaps(self, A: list(list())) -> int:
m, n = len(A), len(A[0])
res = [0] * m
for i in range(m):
for j in range(n):
if not A[i][~j]:
res[i] += 1
else:
break
ret = 0
for i, r in enumerate(res):
target = m - 1 - i
if res[i] >= target: continue
for j in range(i + 1, m):
if res[j] >= target:
ret += j - i
res[i + 1:j + 1] = res[i:j]
break
else:
return -1
return ret
so = Solution()
print(so.minSwaps([[0, 0, 1], [1, 1, 0], [1, 0, 0]]))
| [
"[email protected]"
] | |
aea2948697eef4b3cd89e905116f4a3832e63170 | 38ac429d63369922e12e19cdda042b08b8123027 | /test/test_json_view.py | c5b01994dc9e1d97795a7c689c0a2b5dd2bb5dcb | [] | no_license | aviv-julienjehannet/collibra_apiclient | 0dfebe5df2eb929645b87eba42fab4c06ff0a6be | 10a89e7acaf56ab8c7417698cd12616107706b6b | refs/heads/master | 2021-09-12T16:52:19.803624 | 2018-04-19T01:35:20 | 2018-04-19T01:35:20 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 911 | py | # coding: utf-8
"""
\"Data Governance Center: REST API v2\"
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501
OpenAPI spec version: 2.0
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from __future__ import absolute_import
import unittest
import swagger_client
from swagger_client.models.json_view import JsonView # noqa: E501
from swagger_client.rest import ApiException
class TestJsonView(unittest.TestCase):
"""JsonView unit test stubs"""
def setUp(self):
pass
def tearDown(self):
pass
def testJsonView(self):
"""Test JsonView"""
# FIXME: construct object with mandatory attributes with example values
# model = swagger_client.models.json_view.JsonView() # noqa: E501
pass
if __name__ == '__main__':
unittest.main()
| [
"[email protected]"
] | |
3b8d5fa6b4cced71be6df8eb6d0a7e4f9cbb5ac9 | ed1dd7bc3837cf4059a529d71f43b53d7c6a65d8 | /RosieGUI.py | cb83e9b57f6ff93bdfdee5437d9ca7db7b2e8604 | [] | no_license | amininger/rosiethor | dbc290e8684e2b1a73962af0fb84ad6c65956f1e | 789396f08e10d6e46a684622cd95e7d309d9a246 | refs/heads/master | 2021-04-28T14:25:19.807467 | 2019-03-05T16:49:21 | 2019-03-05T16:49:21 | 121,964,339 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,356 | py | from tkinter import *
import tkinter.font
import sys
from rosiethor import *
class RosieGUI(Frame):
def create_widgets(self):
self.grid(row=0, column=0, sticky=N+S+E+W)
self.columnconfigure(0, weight=3, minsize=600)
self.columnconfigure(1, weight=1, minsize=400)
self.columnconfigure(2, weight=1, minsize=100)
self.rowconfigure(0, weight=10, minsize=400)
self.rowconfigure(1, weight=1, minsize=50)
self.messages_list = Listbox(self, font=("Times", "12"))
self.scrollbar = Scrollbar(self.messages_list)
self.messages_list.config(yscrollcommand=self.scrollbar.set)
self.scrollbar.config(command=self.messages_list.yview)
self.messages_list.grid(row=0, column=0, sticky=N+S+E+W)
self.scrollbar.pack(side=RIGHT, fill=Y)
self.script_frame = Frame(self)
self.script_frame.grid(row=0, column=1, sticky=N+S+E+W)
self.chat_entry = Entry(self, font=("Times", "16"))
self.chat_entry.bind('<Return>', lambda key: self.on_submit_click())
self.chat_entry.bind('<Up>', lambda key: self.scroll_history(-1))
self.chat_entry.bind('<Down>', lambda key: self.scroll_history(1))
self.chat_entry.grid(row=1, column=0, sticky=N+S+E+W)
self.submit_button = Button(self, text="Send", font=("Times", "24"))
self.submit_button["command"] = self.on_submit_click
self.submit_button.grid(row=1, column=1, sticky=N+S+E+W)
self.run_button = Button(self, text="Run", font=("Times", "24"))
self.run_button["command"] = self.on_run_click
self.run_button.grid(row=1, column=2, sticky=N+S+E+W)
def init_soar_agent(self, config_file):
self.agent = RosieThorAgent(self.sim, config_filename=config_file)
self.agent.connectors["language"].register_message_callback(self.receive_message)
self.agent.connect()
self.sim.start(self.agent.scene)
def create_script_buttons(self):
self.script = []
if self.agent.messages_file != None:
with open(self.agent.messages_file, 'r') as f:
self.script = [ line.rstrip('\n') for line in f.readlines() if len(line.rstrip('\n')) > 0 and line[0] != '#']
row = 0
for message in self.script:
button = Button(self.script_frame, text=message[:30], font=("Times", "16"))
button["command"] = lambda message=message: self.send_message(message)
button.grid(row=row, column=0, sticky=N+S+E+W)
row += 1
def send_message(self, message):
self.messages_list.insert(END, message)
self.chat_entry.delete(0, END)
if len(self.message_history) == 0 or self.message_history[-1] != message:
self.message_history.append(message)
self.history_index = len(self.message_history)
self.agent.connectors["language"].send_message(message)
def receive_message(self, message):
self.messages_list.insert(END, message)
def on_submit_click(self):
self.send_message(self.chat_entry.get())
def on_run_click(self):
self.agent.start()
def scroll_history(self, delta):
if self.history_index == 0 and delta == -1:
return
if self.history_index == len(self.message_history) and delta == 1:
return
self.history_index += delta
self.chat_entry.delete(0, END)
if self.history_index < len(self.message_history):
self.chat_entry.insert(END, self.message_history[self.history_index])
def on_exit(self):
self.agent.kill()
root.destroy()
def __init__(self, rosie_config, master=None):
Frame.__init__(self, master, width=800, height=600)
master.columnconfigure(0, weight=1)
master.rowconfigure(0, weight=1)
self.message_history = []
self.history_index = 0
self.create_widgets()
self.sim = Ai2ThorSimulator()
self.init_soar_agent(rosie_config)
self.create_script_buttons()
controller_gui = ControllerGUI(self.sim, master=self)
if len(sys.argv) == 1:
print("Need to specify rosie config file as argument")
else:
root = Tk()
rosie_gui = RosieGUI(sys.argv[1], master=root)
root.protocol("WM_DELETE_WINDOW", rosie_gui.on_exit)
root.mainloop()
| [
"[email protected]"
] | |
4116173f3381c4d0ec24d7a2542a504531fa2eb0 | 60a831fb3c92a9d2a2b52ff7f5a0f665d4692a24 | /IronPythonStubs/release/stubs.min/System/__init___parts/EntryPointNotFoundException.py | cd35b92ca551fc01347a5e98978af60cbbbfdd4f | [
"MIT"
] | permissive | shnlmn/Rhino-Grasshopper-Scripts | a9411098c5d1bbc55feb782def565d535b27b709 | 0e43c3c1d09fb12cdbd86a3c4e2ba49982e0f823 | refs/heads/master | 2020-04-10T18:59:43.518140 | 2020-04-08T02:49:07 | 2020-04-08T02:49:07 | 161,219,695 | 11 | 2 | null | null | null | null | UTF-8 | Python | false | false | 1,221 | py | class EntryPointNotFoundException(TypeLoadException,ISerializable,_Exception):
"""
The exception that is thrown when an attempt to load a class fails due to the absence of an entry method.
EntryPointNotFoundException()
EntryPointNotFoundException(message: str)
EntryPointNotFoundException(message: str,inner: Exception)
"""
def add_SerializeObjectState(self,*args):
""" add_SerializeObjectState(self: Exception,value: EventHandler[SafeSerializationEventArgs]) """
pass
def remove_SerializeObjectState(self,*args):
""" remove_SerializeObjectState(self: Exception,value: EventHandler[SafeSerializationEventArgs]) """
pass
def __init__(self,*args):
""" x.__init__(...) initializes x; see x.__class__.__doc__ for signaturex.__init__(...) initializes x; see x.__class__.__doc__ for signaturex.__init__(...) initializes x; see x.__class__.__doc__ for signature """
pass
@staticmethod
def __new__(self,message=None,inner=None):
"""
__new__(cls: type)
__new__(cls: type,message: str)
__new__(cls: type,message: str,inner: Exception)
__new__(cls: type,info: SerializationInfo,context: StreamingContext)
"""
pass
def __reduce_ex__(self,*args):
pass
def __str__(self,*args):
pass
| [
"[email protected]"
] | |
44b42dfbde5aabbad49f01d0c40eae805b3bd01f | 0d61f90e3a7877e91d72fed71b0895c7070dc046 | /final_project/.history/project/account_app/forms_20210104104511.py | 4936c5cd23264028d4004e9275b0dd27cb819201 | [] | no_license | lienusrob/final_project | 44d7d90dc0b7efc0cf55501549a5af0110d09b3b | 4164769626813f044ec2af3e7842514b5699ef77 | refs/heads/master | 2023-02-10T16:36:33.439215 | 2021-01-05T09:34:01 | 2021-01-05T09:34:01 | 325,002,104 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 603 | py |
from django.forms import ModelForm, widgets
from django.forms import Textarea
from .models import Contact, AnonymousReview
from django import forms
# class ContactForm(forms.Form):
# subject = forms.CharField(max_length=100)
# message = forms.CharField(widget=forms.Textarea)
# sender = forms.EmailField()
# cc_myself = forms.BooleanField(required=False)
class ReviewsFrom(forms.ModelForm)
name = forms.CharField(max_length= 100)
details = forms.CharField(widget=forms.Textarea)
date = forms.DateTimeField(required=True, input_formats=["%Y-%m-%dT%H:%M"]) | [
"[email protected]"
] | |
386494348a69dc42f26350743415cea70795bbb9 | a03a7935a191d63bee76fd3b85a61ee27f98904a | /test/tests/databases/bov.py | d2400c2618fb6604ee069a960e95c77fb50876f3 | [] | no_license | cchriste/visit | 57091c4a512ab87efd17c64c7494aa4cf01b7e53 | c72c413f571e56b52fb7221955219f11f4ba19e3 | refs/heads/master | 2020-04-12T06:25:27.458132 | 2015-10-12T15:41:49 | 2015-10-12T15:41:49 | 10,111,791 | 5 | 1 | null | null | null | null | UTF-8 | Python | false | false | 6,436 | py | # ----------------------------------------------------------------------------
# CLASSES: nightly
#
# Test Case: bov.py
#
# Tests: mesh - 3D rectilinear, multiple domain
# plots - Pseudocolor, Subset, Label, Contour
# operators - Slice
#
# Programmer: Brad Whitlock
# Date: Fri Mar 17 14:37:45 PST 2006
#
# Modifications:
# Brad Whitlock, Thu May 4 14:02:29 PST 2006
# Added testing of INT and DOUBLE BOV files.
#
# ----------------------------------------------------------------------------
def SaveTestImage(name):
# Save these images somewhat larger than a regular test case image
# since the images contain a lot of text.
backup = GetSaveWindowAttributes()
swa = SaveWindowAttributes()
swa.width = 500
swa.height = 500
swa.screenCapture = 0
Test(name, swa)
SetSaveWindowAttributes(backup)
def TestBOVDivide(prefix, db, doSubset):
# Take a picture to make sure that the division took. There will be
# a lot of bricks.
OpenDatabase(db)
if doSubset:
AddPlot("Subset", "bricks")
subAtts = SubsetAttributes()
subAtts.legendFlag = 0
SetPlotOptions(subAtts)
else:
AddPlot("Pseudocolor", "myvar")
DrawPlots()
v = View3DAttributes()
v.viewNormal = (0.534598, 0.40012, 0.744385)
v.focus = (15, 15, 15)
v.viewUp = (-0.228183, 0.916444, -0.32873)
v.viewAngle = 30
v.parallelScale = 8.66025
v.nearPlane = -17.3205
v.farPlane = 17.3205
v.imagePan = (0, 0)
v.imageZoom = 1
v.perspective = 1
v.eyeAngle = 2
v.centerOfRotationSet = 0
v.centerOfRotation = (15, 15, 15)
SetView3D(v)
Test(prefix + "00")
# Make sure there are the right number of zones.
Query("NumZones")
TestText(prefix + "01", GetQueryOutputString())
# Let's slice a few times to make sure that crucial areas have the
# right values
AddPlot("Mesh", "mesh")
AddPlot("Label", "myvar")
L = LabelAttributes()
L.textHeight1 = 0.03
L.textHeight2 = 0.03
SetPlotOptions(L)
SetActivePlots((0,1,2))
AddOperator("Slice")
s = SliceAttributes()
s.originType = s.Intercept # Point, Intercept, Percent, Zone, Node
s.originIntercept = 10.001
s.normal = (0, 0, 1)
s.axisType = s.ZAxis # XAxis, YAxis, ZAxis, Arbitrary
s.upAxis = (0, 1, 0)
s.project2d = 1
SetOperatorOptions(s)
DrawPlots()
v2 = GetView2D()
v2.windowCoords = (12.0201, 13.0004, 9.99781, 10.9888)
v2.viewportCoords = (0.2, 0.95, 0.15, 0.95)
v2.fullFrameActivationMode = v2.Auto # On, Off, Auto
v2.fullFrameAutoThreshold = 100
SetView2D(v2)
SaveTestImage(prefix+"02")
# Move to another slice on the far edge that will have the max zone #
s.originIntercept = 19.998
SetOperatorOptions(s)
v3 = View2DAttributes()
v3.windowCoords = (19.2017, 20.0179, 19.1966, 20.0217)
v3.viewportCoords = (0.2, 0.95, 0.15, 0.95)
v3.fullFrameActivationMode = v3.Auto # On, Off, Auto
v3.fullFrameAutoThreshold = 100
SetView2D(v3)
SaveTestImage(prefix+"03")
# Move to another slice in the middle.
s.originIntercept = 15.01
SetOperatorOptions(s)
v4 = View2DAttributes()
v4.windowCoords = (14.6419, 15.361, 15.638, 16.365)
v4.viewportCoords = (0.2, 0.95, 0.15, 0.95)
v4.fullFrameActivationMode = v4.Auto # On, Off, Auto
v4.fullFrameAutoThreshold = 100
SetView2D(v4)
SaveTestImage(prefix+"04")
DeleteAllPlots()
# Test that ghost zones are right.
AddPlot("Pseudocolor", "myvar")
p = PseudocolorAttributes()
p.SetOpacityType(p.Constant)
p.opacity = 0.25
SetPlotOptions(p)
DrawPlots()
v5 = View3DAttributes()
v5.viewNormal = (0.772475, 0.402431, 0.491255)
v5.focus = (15, 15, 15)
v5.viewUp = (-0.355911, 0.915018, -0.18992)
v5.viewAngle = 30
v5.parallelScale = 8.66025
v5.nearPlane = -17.3205
v5.farPlane = 17.3205
v5.imagePan = (-0.0253114, 0.0398304)
v5.imageZoom = 1.20806
v5.perspective = 1
v5.eyeAngle = 2
v5.centerOfRotationSet = 0
v5.centerOfRotation = (15, 15, 15)
SetView3D(v5)
Test(prefix+"05")
# Zoom in on a contour plot to make sure that there are no tears.
# This means that the ghost zones were created properly.
ClearWindow()
p.SetOpacityType(p.FullyOpaque)
SetPlotOptions(p)
AddOperator("Isosurface")
iso = IsosurfaceAttributes()
iso.variable = "radial"
SetOperatorOptions(iso)
DrawPlots()
v6 = View3DAttributes()
v6.viewNormal = (0.373168, 0.412282, 0.831125)
v6.focus = (15, 15, 15)
v6.viewUp = (-0.181836, 0.910964, -0.370244)
v6.viewAngle = 30
v6.parallelScale = 8.66025
v6.nearPlane = -17.3205
v6.farPlane = 17.3205
v6.imagePan = (0.0994254, 0.0810457)
v6.imageZoom = 1.94126
v6.perspective = 1
v6.eyeAngle = 2
v6.centerOfRotationSet = 0
v6.centerOfRotation = (15, 15, 15)
SetView3D(v6)
Test(prefix+"06")
DeleteAllPlots()
CloseDatabase(db)
def TestBOVType(bovtype, prefixes):
# Test the original BOV file without it being divided.
TestSection("Reading BOV file of %s" % bovtype)
TestBOVDivide(prefixes[0], data_path("bov_test_data/%s_indices.bov") % bovtype, 0)
#
# Test 2 BOV files that are being subdivided into smaller bricks
# by the BOV plugin so that there are multiple domains that
# can be processed in parallel.
#
TestSection("Decomposing BOV of %s into smaller bricks" % bovtype)
TestBOVDivide(prefixes[1], data_path("bov_test_data/%s_indices_div.bov") % bovtype, 1)
TestSection("Decomposing BOV of %s with small header into smaller bricks" % bovtype)
TestBOVDivide(prefixes[2], data_path("bov_test_data/%s_indices_div_with_header.bov") % bovtype, 1)
def main():
# Define some expressions
DefineScalarExpression("x", "coord(mesh)[0]")
DefineScalarExpression("y", "coord(mesh)[1]")
DefineScalarExpression("z", "coord(mesh)[2]")
DefineScalarExpression("dx", "x - 15.")
DefineScalarExpression("dy", "y - 15.")
DefineScalarExpression("dz", "z - 15.")
DefineScalarExpression("radial", "sqrt(dx*dx + dy*dy + dz*dz)")
TestBOVType("FLOAT", ("bov_0_", "bov_1_", "bov_2_"))
TestBOVType("DOUBLE", ("bov_3_", "bov_4_", "bov_5_"))
TestBOVType("INT", ("bov_6_", "bov_7_", "bov_8_"))
Exit()
main()
| [
"bonnell@18c085ea-50e0-402c-830e-de6fd14e8384"
] | bonnell@18c085ea-50e0-402c-830e-de6fd14e8384 |
44a9e486f57f5d09e2a7f03dcd8cab278f223b96 | 8f9f6a5348b832e9f12ef6baf6bcdd8842ff1c83 | /core/migrations/0002_profile.py | 987bf0b7af1dcd2c764ae64e1df702d401441278 | [] | no_license | jbrit/raffle | 20b48d016ac50082733c7c34f3891beb268c4eb9 | 2ee83ffe564f59bc7afd6b12740ea3a98c42986e | refs/heads/main | 2023-06-04T14:22:09.808595 | 2021-03-19T14:13:38 | 2021-03-19T14:13:38 | 343,774,020 | 1 | 2 | null | null | null | null | UTF-8 | Python | false | false | 702 | py | # Generated by Django 3.1.7 on 2021-03-02 23:09
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('core', '0001_initial'),
]
operations = [
migrations.CreateModel(
name='Profile',
fields=[
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('email_confirmed', models.BooleanField(default=False)),
('user', models.OneToOneField(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)),
],
),
]
| [
"[email protected]"
] | |
f3197d14dbee34f7d0ebfe6c8268d9e4f61c5fde | 00ccdc877771cb0cf493526d1e201e0f625bf5e7 | /dohq_teamcity/api/test_api.py | 1335616d3fe97e39870d49b309ae190556a049db | [
"MIT"
] | permissive | expobrain/teamcity | a52928045166bb5d34f4a0396cb840bfee8f43d5 | 9f04c0692a2c5b277a608c2f11cc1fb48e0c87e2 | refs/heads/master | 2020-04-13T13:11:07.270515 | 2018-10-18T01:40:06 | 2018-10-18T01:40:06 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,708 | py | # coding: utf-8
"""
TeamCity REST API
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501
OpenAPI spec version: 10.0
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from __future__ import absolute_import
from dohq_teamcity.custom.base_model import TeamCityObject
import re # noqa: F401
# python 2 and python 3 compatibility library
import six
from dohq_teamcity.models.test import Test # noqa: F401,E501
from dohq_teamcity.models.tests import Tests # noqa: F401,E501
class TestApi(object):
"""NOTE: This class is auto generated by the swagger code generator program.
Do not edit the class manually.
Ref: https://github.com/swagger-api/swagger-codegen
"""
base_name = 'Test'
def __init__(self, api_client=None):
self.api_client = api_client
def get_tests(self, **kwargs): # noqa: E501
"""get_tests # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.get_tests(async_req=True)
>>> result = thread.get()
:param async_req: bool
:param str locator:
:param str fields:
:return: Tests
If the method is called asynchronously,
returns the request thread.
"""
kwargs['_return_http_data_only'] = True
if kwargs.get('async_req'):
return self.__get_tests_with_http_info(**kwargs) # noqa: E501
else:
(data) = self.__get_tests_with_http_info(**kwargs) # noqa: E501
return data
def serve_instance(self, test_locator, **kwargs): # noqa: E501
"""serve_instance # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.serve_instance(test_locator, async_req=True)
>>> result = thread.get()
:param async_req: bool
:param str test_locator: (required)
:param str fields:
:return: Test
If the method is called asynchronously,
returns the request thread.
"""
kwargs['_return_http_data_only'] = True
if kwargs.get('async_req'):
return self.__serve_instance_with_http_info(test_locator, **kwargs) # noqa: E501
else:
(data) = self.__serve_instance_with_http_info(test_locator, **kwargs) # noqa: E501
return data
def __get_tests_with_http_info(self, **kwargs): # noqa: E501
"""get_tests # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.__get_tests_with_http_info(async_req=True)
>>> result = thread.get()
:param async_req bool
:param str locator:
:param str fields:
:return: Tests
If the method is called asynchronously,
returns the request thread.
"""
all_params = ['locator', 'fields'] # noqa: E501
all_params.append('async_req')
all_params.append('_return_http_data_only')
all_params.append('_preload_content')
all_params.append('_request_timeout')
params = locals()
for key, val in six.iteritems(params['kwargs']):
if key not in all_params:
raise TypeError(
"Got an unexpected keyword argument '%s'"
" to method get_tests" % key
)
params[key] = val
del params['kwargs']
collection_formats = {}
path_params = {}
query_params = []
if 'locator' in params:
query_params.append(('locator', params['locator'])) # noqa: E501
if 'fields' in params:
query_params.append(('fields', params['fields'])) # noqa: E501
header_params = {}
form_params = []
local_var_files = {}
body_params = None
# Authentication setting
auth_settings = [] # noqa: E501
return self.api_client.call_api(
'/app/rest/tests', 'GET',
path_params,
query_params,
header_params,
body=body_params,
post_params=form_params,
files=local_var_files,
response_type='Tests', # noqa: E501
auth_settings=auth_settings,
async_req=params.get('async_req'),
_return_http_data_only=params.get('_return_http_data_only'),
_preload_content=params.get('_preload_content', True),
_request_timeout=params.get('_request_timeout'),
collection_formats=collection_formats)
def __serve_instance_with_http_info(self, test_locator, **kwargs): # noqa: E501
"""serve_instance # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.__serve_instance_with_http_info(test_locator, async_req=True)
>>> result = thread.get()
:param async_req bool
:param str test_locator: (required)
:param str fields:
:return: Test
If the method is called asynchronously,
returns the request thread.
"""
all_params = ['test_locator', 'fields'] # noqa: E501
all_params.append('async_req')
all_params.append('_return_http_data_only')
all_params.append('_preload_content')
all_params.append('_request_timeout')
params = locals()
for key, val in six.iteritems(params['kwargs']):
if key not in all_params:
raise TypeError(
"Got an unexpected keyword argument '%s'"
" to method serve_instance" % key
)
params[key] = val
del params['kwargs']
# verify the required parameter 'test_locator' is set
if ('test_locator' not in params or
params['test_locator'] is None):
raise ValueError("Missing the required parameter `test_locator` when calling `serve_instance`") # noqa: E501
collection_formats = {}
path_params = {}
if 'test_locator' in params:
if isinstance(params['test_locator'], TeamCityObject):
path_params['testLocator'] = params['test_locator'].locator_id
else:
path_params['testLocator'] = params['test_locator'] # noqa: E501
query_params = []
if 'fields' in params:
query_params.append(('fields', params['fields'])) # noqa: E501
header_params = {}
form_params = []
local_var_files = {}
body_params = None
# Authentication setting
auth_settings = [] # noqa: E501
return self.api_client.call_api(
'/app/rest/tests/{testLocator}', 'GET',
path_params,
query_params,
header_params,
body=body_params,
post_params=form_params,
files=local_var_files,
response_type='Test', # noqa: E501
auth_settings=auth_settings,
async_req=params.get('async_req'),
_return_http_data_only=params.get('_return_http_data_only'),
_preload_content=params.get('_preload_content', True),
_request_timeout=params.get('_request_timeout'),
collection_formats=collection_formats)
| [
"[email protected]"
] | |
b15b14e0a3c393b327f48b7c2211d0d7ea88c5fa | cd2d3b6be41eb9b96ecc3a22dc730325c21f22e6 | /charalog/log/qaswsq19.cgi | e5245d1c362c4cf17fe5f3a09188c1705fb8ddce | [] | no_license | cappuu/TC | c61f235349e9a68d472fa85bbea1adbef3ea154a | def08d09219e11bee2135f6b796569b769ee21c1 | refs/heads/master | 2021-09-10T19:37:33.847161 | 2018-03-31T22:56:05 | 2018-03-31T22:56:05 | 124,523,296 | 0 | 0 | null | null | null | null | UHC | Python | false | false | 1,944 | cgi | 11월 : 남피의 기술을 <font color=red>+9</font> 개발했습니다.(15일23시38분)
10월 : 남피의 기술을 <font color=red>+7</font> 개발했습니다.(15일22시38분)
9월 : 남피의 기술을 <font color=red>+6</font> 개발했습니다.(15일21시38분)
8월 : 현재 기운이 충만한 상태입니다.(15일20시38분)
7월 : 남피의 기술을 <font color=red>+7</font> 개발했습니다.(15일19시39분)
7월 : 수확으로 <font color=red>2834</font>의 식량을 수확했습니다. [봉토추가봉록:34](15일19시39분)
7월 : [<font color=red>레벨업</font>] Lv.13이 되었다! 봉록이 <font color=red> 2950 </font>로 늘어났다!(15일19시39분)
7월 : [<font color=red>레벨업</font>] 무력이 1포인트 올랐습니다!(15일19시39분)
6월 : 남피의 기술을 <font color=red>+8</font> 개발했습니다.(15일18시38분)
5월 : 남피의 기술을 <font color=red>+9</font> 개발했습니다.(15일17시38분)
4월 : 남피의 기술을 <font color=red>+6</font> 개발했습니다.(15일16시38분)
3월 : 남피의 기술을 <font color=red>+6</font> 개발했습니다.(15일15시38분)
2월 : <font color=red>[상승] </font>:진등의 지력이 1포인트 올랐다.(15일14시40분)
2월 : 남피의 기술을 <font color=red>+8</font> 개발했습니다.(15일14시40분)
2월 : 기술치부대는 대장의 명령에 의해 남피성에 집결했습니다.(15일14시8분)
1월 : 북평의 기술을 <font color=red>+6</font> 개발했습니다.(15일13시40분)
1월 : 세금으로 <font color=red>3300</font>의 돈을 징수했습니다. [관직추가봉록:200] [봉토추가봉록:300](15일13시40분)
12월 : 북평의 기술을 <font color=red>+6</font> 개발했습니다.(15일12시39분)
11월 : 북평의 기술을 <font color=red>+9</font> 개발했습니다.(15일11시39분)
10월 : 북평의 기술을 <font color=red>+9</font> 개발했습니다.(15일10시38분)
| [
"[email protected]"
] | |
8782c7c8bb56b0118c1f5cd84e030e48d23be1d5 | 6a0abe2f4172f680415d83f1946baaf85e5711b7 | /aliyun-python-sdk-slb/aliyunsdkslb/request/v20140515/DescribeAccessControlListsRequest.py | d63e244ab470b758431d5842a789854ee82f0557 | [
"Apache-2.0"
] | permissive | brw123/aliyun-openapi-python-sdk | 905556b268cbe4398f0f57b48422b713d9e89a51 | 8c77db6fd6503343cffa3c86fcb9d11770a64ca2 | refs/heads/master | 2020-05-01T16:26:49.291948 | 2019-03-21T09:11:55 | 2019-03-21T09:11:55 | 177,572,187 | 1 | 0 | null | 2019-03-25T11:21:59 | 2019-03-25T11:21:59 | null | UTF-8 | Python | false | false | 2,788 | py | # Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance
# with the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
#
#
# Unless required by applicable law or agreed to in writing,
# software distributed under the License is distributed on an
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.
from aliyunsdkcore.request import RpcRequest
class DescribeAccessControlListsRequest(RpcRequest):
def __init__(self):
RpcRequest.__init__(self, 'Slb', '2014-05-15', 'DescribeAccessControlLists','slb')
def get_access_key_id(self):
return self.get_query_params().get('access_key_id')
def set_access_key_id(self,access_key_id):
self.add_query_param('access_key_id',access_key_id)
def get_ResourceOwnerId(self):
return self.get_query_params().get('ResourceOwnerId')
def set_ResourceOwnerId(self,ResourceOwnerId):
self.add_query_param('ResourceOwnerId',ResourceOwnerId)
def get_AclName(self):
return self.get_query_params().get('AclName')
def set_AclName(self,AclName):
self.add_query_param('AclName',AclName)
def get_ResourceOwnerAccount(self):
return self.get_query_params().get('ResourceOwnerAccount')
def set_ResourceOwnerAccount(self,ResourceOwnerAccount):
self.add_query_param('ResourceOwnerAccount',ResourceOwnerAccount)
def get_OwnerAccount(self):
return self.get_query_params().get('OwnerAccount')
def set_OwnerAccount(self,OwnerAccount):
self.add_query_param('OwnerAccount',OwnerAccount)
def get_OwnerId(self):
return self.get_query_params().get('OwnerId')
def set_OwnerId(self,OwnerId):
self.add_query_param('OwnerId',OwnerId)
def get_AddressIPVersion(self):
return self.get_query_params().get('AddressIPVersion')
def set_AddressIPVersion(self,AddressIPVersion):
self.add_query_param('AddressIPVersion',AddressIPVersion)
def get_PageNumber(self):
return self.get_query_params().get('PageNumber')
def set_PageNumber(self,PageNumber):
self.add_query_param('PageNumber',PageNumber)
def get_Tags(self):
return self.get_query_params().get('Tags')
def set_Tags(self,Tags):
self.add_query_param('Tags',Tags)
def get_PageSize(self):
return self.get_query_params().get('PageSize')
def set_PageSize(self,PageSize):
self.add_query_param('PageSize',PageSize) | [
"[email protected]"
] | |
660fb803c45459f81ec12dded0ca2bcdc1611bde | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_016/ch31_2020_03_30_19_43_47_008102.py | d7542220ac3217770604bf2f6d5102dfb4b58bc3 | [] | no_license | gabriellaec/desoft-analise-exercicios | b77c6999424c5ce7e44086a12589a0ad43d6adca | 01940ab0897aa6005764fc220b900e4d6161d36b | refs/heads/main | 2023-01-31T17:19:42.050628 | 2020-12-16T05:21:31 | 2020-12-16T05:21:31 | 306,735,108 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 149 | py | def eh_primo(x):
r = x%2
return r
exercicio = True
while exercicio:
if r == 0:
print('True')
else:
exercicio = False
| [
"[email protected]"
] | |
cc14b6eaaffadd74381b2c758e2324c947a2db53 | 3a6cbe6940b657ac6b608ce93d8d41ffeb6b9e65 | /rocon_python_comms/src/rocon_python_comms/subscriber_proxy.py | 307b3a19e2da6b0f0d8015cf88ad17466399e082 | [] | no_license | robotics-in-concert/rocon_tools | cdfc4ccfc04b79262fb151640966a33bd0b5f498 | 1f182537b26e8622eefaf6737d3b3d18b1741ca6 | refs/heads/devel | 2021-01-17T01:58:12.163878 | 2018-02-06T15:20:29 | 2018-02-06T15:20:29 | 15,774,638 | 7 | 22 | null | 2017-08-16T06:39:47 | 2014-01-09T18:02:42 | Python | UTF-8 | Python | false | false | 4,285 | py | #
# License: BSD
# https://raw.github.com/robotics-in-concert/rocon_tools/license/LICENSE
#
##############################################################################
# Description
##############################################################################
"""
.. module:: subscriber_proxy
:platform: Unix
:synopsis: Request-response style communication with a latched publisher.
This module provides a means of interacting with a ros latched publisher
in the same style as you would a ros service (request-response).
----
"""
##############################################################################
# Imports
##############################################################################
import time
import rospy
import threading
##############################################################################
# Subscriber Proxy
##############################################################################
class SubscriberProxy():
'''
Works like a service proxy, but using a latched subscriber instead (regular
subscribers will also work, but this is especially useful for latched
subscribers since they typically always provide data).
If no timeout is specified when calling, it blocks indefinitely on a
100ms loop until a message arrives. Alternatively it will return with None
if a specified timeout is reached.
**Usage:**
.. code-block:: python
from rocon_python_comms import SubscriberProxy
try:
gateway_info = SubscriberProxy('gateway_info', gateway_msgs.GatewayInfo)(rospy.Duration(0.5))
if gateway_info is not None:
# do something
except rospy.exceptions.ROSInterruptException: # make sure to handle a Ros shutdown
# react something
:todo: upgrade to make use of python events instead of manual loops
'''
def __init__(self, topic, msg_type):
'''
:param str topic: the topic name to subscriber to
:param str msg_type: any ros message type (e.g. std_msgs/String)
'''
self._data = None
self._lock = threading.Lock()
self._subscriber = rospy.Subscriber(topic, msg_type, self._callback)
def __call__(self, timeout=None):
'''
Returns immediately with the latest data or blocks to a timeout/indefinitely
until the next data arrives.
:param rospy.Duration timeout: time to wait for data, polling at 10Hz (None = /infty)
:returns: msg type data or None
:rtype: same as the msg type specified in the arg or None
:returns: latest data or None
'''
if timeout is not None:
# everything in floating point calculations
timeout_time = time.time() + timeout.to_sec()
with self._lock:
data = self._data
while not rospy.is_shutdown() and data is None:
rospy.rostime.wallsleep(0.1)
if timeout is not None:
if time.time() > timeout_time:
return None
# check to see if there is new data
with self._lock:
data = self._data
return data
def wait_for_next(self, timeout=None):
'''
Makes sure any current data is cleared and waits for new data.
:param rospy.Duration timeout: time to wait for data, polling at 10Hz.
:returns: latest data or None
'''
self._data = None
return self.__call__(timeout)
def wait_for_publishers(self):
'''
Blocks until publishers are seen.
:raises: rospy.ROSInterruptException if we are in shutdown.
'''
r = rospy.Rate(10)
while not rospy.is_shutdown():
if self._subscriber.get_num_connections() != 0:
return
else:
r.sleep()
# we are shutting down
raise rospy.exceptions.ROSInterruptException
def _callback(self, data):
with self._lock:
self._data = data
def unregister(self):
'''
Unregister the subscriber so future instantiations of this class can pull a
fresh subscriber (important if the data is latched).
'''
self._subscriber.unregister()
| [
"[email protected]"
] | |
e8055cef7954132336a38efaaff3f88a5092ec0d | 66d184a2b36ab1db564305ea36be891aaf0e236b | /py/function_local.py | 32bd23b710843314480e40414153008ee5c24f6f | [] | no_license | joyDDT/python_code | bef57936a1167fa65e28b6c52ab7857b34dc74a8 | 3aae56c51660579a4eaaa087ac2459c9bf2f2e23 | refs/heads/master | 2021-10-30T10:22:21.328633 | 2019-04-26T04:45:01 | 2019-04-26T04:45:01 | 112,004,435 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 125 | py | x = 50
def func(x):
print('x is', x)
x = 2
print('Changed local x to',x)
func(x)
print('x is still ',x)
| [
"[email protected]"
] | |
816f7c9573750b418355b515fae6a322cac506a0 | d842a95213e48e30139b9a8227fb7e757f834784 | /gcloud/google-cloud-sdk/lib/surface/spanner/databases/create.py | 85d2e132651f4d9072e81b0f73b363d8ae6a24bf | [
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0",
"MIT"
] | permissive | bopopescu/JobSniperRails | f37a15edb89f54916cc272884b36dcd83cdc868a | 39e7f871887176770de0f4fc6789e9ddc7f32b1f | refs/heads/master | 2022-11-22T18:12:37.972441 | 2019-09-20T22:43:14 | 2019-09-20T22:43:14 | 282,293,504 | 0 | 0 | MIT | 2020-07-24T18:47:35 | 2020-07-24T18:47:34 | null | UTF-8 | Python | false | false | 2,348 | py | # -*- coding: utf-8 -*- #
# Copyright 2016 Google LLC. 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.
"""Command for spanner databases create."""
from __future__ import absolute_import
from __future__ import division
from __future__ import unicode_literals
from googlecloudsdk.api_lib.spanner import database_operations
from googlecloudsdk.api_lib.spanner import databases
from googlecloudsdk.calliope import base
from googlecloudsdk.command_lib.spanner import flags
from googlecloudsdk.command_lib.spanner import resource_args
class Create(base.CreateCommand):
"""Create a Cloud Spanner database."""
@staticmethod
def Args(parser):
"""See base class."""
resource_args.AddDatabaseResourceArg(parser, 'to create')
flags.Ddl(help_text='Semi-colon separated DDL (data definition language) '
'statements to run inside the '
'newly created database. If there is an error in any statement, '
'the database is not created. Full DDL specification is at '
'https://cloud.google.com/spanner/docs/data-definition-language'
).AddToParser(parser)
base.ASYNC_FLAG.AddToParser(parser)
parser.display_info.AddCacheUpdater(flags.DatabaseCompleter)
def Run(self, args):
"""This is what gets called when the user runs this command.
Args:
args: an argparse namespace. All the arguments that were provided to this
command invocation.
Returns:
Some value that we want to have printed later.
"""
database_ref = args.CONCEPTS.database.Parse()
instance_ref = database_ref.Parent()
op = databases.Create(instance_ref, args.database,
flags.SplitDdlIntoStatements(args.ddl or []))
if args.async:
return op
return database_operations.Await(op, 'Creating database')
| [
"[email protected]"
] | |
47d4c7cb7eb9933b0369b1e45e59ea87c9b72b5f | f1d01d9074ace289e7e43530079b0c34ccdde4c4 | /ontology/creation/data/patents/concatenate_features.py | 5d008e8f60662834f64b614c5873f3ab50efcfec | [] | no_license | techknowledgist/techknowledgist | 4889300a92aad8fa940d1246ddd75036d90a6563 | 7d422ac38a9212670d0ce6e26e1446fb46740837 | refs/heads/master | 2021-04-26T22:35:50.390037 | 2015-11-23T19:52:26 | 2015-11-23T19:52:26 | 124,117,298 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 731 | py | """
Takes a corpus and concatenates all phr_feats files into a single file
Usage:
$ python concatenate_features.py CORPUS OUTFILE
TODO: this script, and others, should probably live in another directory
"""
import os, sys, codecs, glob, gzip
corpus = sys.argv[1]
outfile = sys.argv[2]
fh_out = codecs.open(outfile, 'w', encoding='utf-8')
feats_dir = os.path.join(corpus, 'data', 'd3_phr_feats', '01', 'files')
regexp = "%s/WoS.out.*/*.xml.gz" % feats_dir
fnames = glob.glob(regexp)
count = 0
for fname in fnames:
count += 1
print "%05d %s" % (count, fname)
gzipfile = gzip.open(fname, 'rb')
reader = codecs.getreader('utf-8')
fh = reader(gzipfile)
for line in fh:
fh_out.write(line)
| [
"[email protected]"
] | |
1b82e86c123a177a8f2ea505f676028ecdf4d35f | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/otherforms/_caretakers.py | 24865dfee38f564211700a1151c979c6df6fd6e9 | [
"MIT"
] | permissive | cash2one/xai | de7adad1758f50dd6786bf0111e71a903f039b64 | e76f12c9f4dcf3ac1c7c08b0cc8844c0b0a104b6 | refs/heads/master | 2021-01-19T12:33:54.964379 | 2017-01-28T02:00:50 | 2017-01-28T02:00:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 234 | py |
#calss header
class _CARETAKERS():
def __init__(self,):
self.name = "CARETAKERS"
self.definitions = caretaker
self.parents = []
self.childen = []
self.properties = []
self.jsondata = {}
self.basic = ['caretaker']
| [
"[email protected]"
] | |
7f3dc2eb57b3190f8010e6c0bdaf16ea89358dcb | 99f9483263dfb2f6989ffc70e9d2fcfacc365bc8 | /noccwiki/urls.py | 73ff0ba967c037a22d8e773a712fc3cac28c1da0 | [] | no_license | shaktijeet-ego/noccguide | 9b53afd47bcb6388f1b1df85695a9cee64198a08 | c123ee3a3f8d058eada3cb42d64e4f8282566afe | refs/heads/master | 2023-07-01T00:44:14.686615 | 2021-08-02T06:34:26 | 2021-08-02T06:34:26 | 391,839,487 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 750 | py | """noccwiki URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/3.2/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
Class-based views
1. Add an import: from other_app.views import Home
2. Add a URL to urlpatterns: path('', Home.as_view(), name='home')
Including another URLconf
1. Import the include() function: from django.urls import include, path
2. Add a URL to urlpatterns: path('blog/', include('blog.urls'))
"""
from django.contrib import admin
from django.urls import path
urlpatterns = [
path('admin/', admin.site.urls),
]
| [
"[email protected]"
] | |
10f3f0ca057e6383b33ac0929fc7f212d2521e61 | b9e4bf5c00ac0d6c1a6e6038e8dc18041819ff99 | /Python3/0224_Basic_Calculator.py | 8dc3ecb6218b2b585509e0dca74cd886059e4f2d | [] | no_license | kiranani/playground | 98fdb70a3ca651436cc1eede0d2ba1b1ea9aba1d | 12f62a218e827e6be2578b206dee9ce256da8d3d | refs/heads/master | 2021-06-03T12:43:29.388589 | 2020-06-12T15:43:45 | 2020-06-12T15:43:45 | 149,614,802 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,125 | py | from operator import add, sub
class Solution:
def calculate(self, s: str) -> int:
ops = {"+": add, "-": sub}
i, n = 0, len(s)
def helper(i):
values, opers = [0], []
while i < n:
c = s[i]
if c.isdigit():
j = i
while j + 1 < n and s[j + 1].isdigit():
j += 1
values.append(int(s[i:j + 1]))
i = j
elif c in ops:
while opers and len(values) > 1:
r = values.pop()
values.append(ops[opers.pop()](values.pop(), r))
opers.append(c)
elif c == "(":
i, value = helper(i + 1)
values.append(value)
elif c == ")":
break
i += 1
while opers and len(values) > 1:
r = values.pop()
values.append(ops[opers.pop()](values.pop(), r))
return i, values[-1]
return helper(0)[1]
| [
"[email protected]"
] | |
4bd3fea9df0d339760410abcb7bc705831ee1022 | b40e5c6c1787dd222702b3dc817537c059e3abf7 | /interlink/migrations/0004_auto__add_field_incomingmail_owner.py | bca828735df8a4344e1f4d980a41e9d1b5389875 | [
"LicenseRef-scancode-warranty-disclaimer",
"Apache-2.0"
] | permissive | tevatia/nadine | 2e1d4908cab37c2f893f68ce59d939b5621c14a0 | e1db914ae70d3f7f3de719c8fb54b0e2198e2b56 | refs/heads/master | 2021-01-18T11:15:48.083446 | 2014-04-18T22:39:42 | 2014-04-18T22:39:42 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,572 | py | # encoding: utf-8
import datetime
from south.db import db
from south.v2 import SchemaMigration
from django.db import models
class Migration(SchemaMigration):
def forwards(self, orm):
# Adding field 'IncomingMail.owner'
db.add_column('interlink_incomingmail', 'owner', self.gf('django.db.models.fields.related.ForeignKey')(default=None, to=orm['auth.User'], null=True, blank=True), keep_default=False)
def backwards(self, orm):
# Deleting field 'IncomingMail.owner'
db.delete_column('interlink_incomingmail', 'owner_id')
models = {
'auth.group': {
'Meta': {'object_name': 'Group'},
'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '80'}),
'permissions': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Permission']", 'symmetrical': 'False', 'blank': 'True'})
},
'auth.permission': {
'Meta': {'ordering': "('content_type__app_label', 'content_type__model', 'codename')", 'unique_together': "(('content_type', 'codename'),)", 'object_name': 'Permission'},
'codename': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['contenttypes.ContentType']"}),
'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
'name': ('django.db.models.fields.CharField', [], {'max_length': '50'})
},
'auth.user': {
'Meta': {'object_name': 'User'},
'date_joined': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
'email': ('django.db.models.fields.EmailField', [], {'max_length': '75', 'blank': 'True'}),
'first_name': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}),
'groups': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Group']", 'symmetrical': 'False', 'blank': 'True'}),
'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
'is_active': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),
'is_staff': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
'is_superuser': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
'last_login': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
'last_name': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}),
'password': ('django.db.models.fields.CharField', [], {'max_length': '128'}),
'user_permissions': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Permission']", 'symmetrical': 'False', 'blank': 'True'}),
'username': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '30'})
},
'contenttypes.contenttype': {
'Meta': {'ordering': "('name',)", 'unique_together': "(('app_label', 'model'),)", 'object_name': 'ContentType', 'db_table': "'django_content_type'"},
'app_label': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
'model': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
'name': ('django.db.models.fields.CharField', [], {'max_length': '100'})
},
'interlink.incomingmail': {
'Meta': {'object_name': 'IncomingMail'},
'body': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
'created': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
'mailing_list': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'incoming_mails'", 'to': "orm['interlink.MailingList']"}),
'origin_address': ('django.db.models.fields.EmailField', [], {'max_length': '75'}),
'owner': ('django.db.models.fields.related.ForeignKey', [], {'default': 'None', 'to': "orm['auth.User']", 'null': 'True', 'blank': 'True'}),
'sent_time': ('django.db.models.fields.DateTimeField', [], {}),
'state': ('django.db.models.fields.CharField', [], {'default': "'raw'", 'max_length': '10'}),
'subject': ('django.db.models.fields.TextField', [], {'blank': 'True'})
},
'interlink.mailinglist': {
'Meta': {'object_name': 'MailingList'},
'description': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
'email_address': ('django.db.models.fields.EmailField', [], {'max_length': '75'}),
'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
'is_opt_out': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
'moderators': ('django.db.models.fields.related.ManyToManyField', [], {'symmetrical': 'False', 'related_name': "'moderated_mailing_lists'", 'blank': 'True', 'to': "orm['auth.User']"}),
'name': ('django.db.models.fields.CharField', [], {'max_length': '1024'}),
'password': ('django.db.models.fields.CharField', [], {'max_length': '1024'}),
'pop_host': ('django.db.models.fields.CharField', [], {'max_length': '1024'}),
'pop_port': ('django.db.models.fields.IntegerField', [], {'default': '995'}),
'smtp_host': ('django.db.models.fields.CharField', [], {'max_length': '1024'}),
'smtp_port': ('django.db.models.fields.IntegerField', [], {'default': '587'}),
'subject_prefix': ('django.db.models.fields.CharField', [], {'max_length': '1024', 'blank': 'True'}),
'subscribers': ('django.db.models.fields.related.ManyToManyField', [], {'symmetrical': 'False', 'related_name': "'subscribed_mailing_lists'", 'blank': 'True', 'to': "orm['auth.User']"}),
'username': ('django.db.models.fields.CharField', [], {'max_length': '1024'})
},
'interlink.outgoingmail': {
'Meta': {'ordering': "['-created']", 'object_name': 'OutgoingMail'},
'attempts': ('django.db.models.fields.IntegerField', [], {'default': '0'}),
'body': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
'created': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
'last_attempt': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}),
'mailing_list': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'outgoing_mails'", 'to': "orm['interlink.MailingList']"}),
'moderators_only': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
'original_mail': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['interlink.IncomingMail']", 'blank': 'True'}),
'sent': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}),
'subject': ('django.db.models.fields.TextField', [], {'blank': 'True'})
}
}
complete_apps = ['interlink']
| [
"[email protected]"
] | |
b3c615e65519ecbd43687d83e8216c9f86283458 | 4bf7abfb2d02be6cce23828d0554ccb575b91c3a | /step02/bookings.py | bc2ee7c8312d9977f6c5975d40040a7a883b6119 | [] | no_license | OneScreenfulOfPython/booking-system | 5c6471ec1e4c0103bd871d1e7a45a474a30f7e91 | e4daf5d3eb6e8620acb164f35ad09cb9081612aa | refs/heads/master | 2021-06-01T23:14:25.649607 | 2014-09-24T08:01:32 | 2014-09-24T08:01:32 | 24,347,319 | 10 | 14 | null | 2020-10-01T16:53:56 | 2014-09-22T22:04:53 | Python | UTF-8 | Python | false | false | 3,003 | py | #!python3
import os, sys
import sqlite3
#
# Ensure we're using the same database filename throughout.
# It doesn't matter what this is called or where it is:
# sqlite3 will just accept anything.
#
DATABASE_FILEPATH = "bookings.db"
def create_database():
"""Connect to the database, read the CREATE statements and split
them at the semicolon into individual statements. Once each
statement has been executed, close the connection.
"""
#
# Since we might be re-running this, delete the file and rebuild
# it if necessary.
#
if os.path.exists(DATABASE_FILEPATH):
os.remove(DATABASE_FILEPATH)
#
# A database cursor the the Python mechanism for running something
# against any database. You create a cursor and then .execute
# SQL statements through it.
#
db = sqlite3.connect(DATABASE_FILEPATH)
q = db.cursor()
#
# Read all the contents of create.sql in one gulp
#
sql = open("create.sql").read()
#
# Split it into individual statements, breaking on the semicolon
#
statements = sql.split(";")
#
# Execute each of the individual statements against the database
#
for statement in statements:
q.execute(statement)
#
# Close everything
#
q.close()
db.commit()
db.close()
def populate_database():
"""Populate the database with some valid test data
"""
db = sqlite3.connect(DATABASE_FILEPATH)
q = db.cursor()
sql = "INSERT INTO users(id, name, email_address) VALUES(?, ?, ?)"
q.execute(sql, [1, "Mickey Mouse", "[email protected]"])
q.execute(sql, [2, "Donald Duck", "[email protected]"])
q.execute(sql, [3, "Kermit the Frog", None])
sql = "INSERT INTO rooms(id, name, location) VALUES(?, ?, ?)"
q.execute(sql, [1, "Room A", "Next to the stairway"])
q.execute(sql, [2, "Room B", "On the Second Floor"])
q.execute(sql, [3, "Main Hall", None])
#
# Triple-quoted strings can cross lines
# NB the column order doesn't matter if you specify it
#
sql = """
INSERT INTO
bookings
(
room_id, user_id, booked_on, booked_from, booked_to
)
VALUES(
?, ?, ?, ?, ?
)"""
q.execute(sql, [1, 1, '2014-09-25', '09:00', '10:00']) # Room A (1) booked by Mickey (1) from 9am to 10am on 25th Sep 2014
q.execute(sql, [3, 1, '2015-09-25', None, None]) # Main Hall (3) booked by Mickey (1) from all day on 25th Sep 2014
q.execute(sql, [2, 3, '2014-09-22', '12:00', None]) # Room B (2) booked by Kermit (3) from midday onwards on 22nd Sep 2014
q.execute(sql, [1, 2, '2015-02-14', '09:30', '10:00']) # Room A (1) booked by Donald (2) from 9.30am to 10am on 15th Feb 2014
q.close()
db.commit()
db.close()
if __name__ == '__main__':
print("About to create database %s" % DATABASE_FILEPATH)
create_database()
print("About to populate database %s" % DATABASE_FILEPATH)
populate_database()
print("Finished")
| [
"[email protected]"
] | |
6689bda17969ce7d5c74c76e31523e8c509ba831 | ebd24e400986c57b4bb1b9578ebd8807a6db62e8 | /InstaGrade-FormBuilder/xlsxwriter/test/worksheet/test_extract_filter_tokens.py | f42d6ade4765867a416adf7c334a45d6f2c4965c | [] | no_license | nate-parrott/ig | 6abed952bf32119a536a524422037ede9b431926 | 6e0b6ac0fb4b59846680567150ce69a620e7f15d | refs/heads/master | 2021-01-12T10:15:15.825004 | 2016-12-13T21:23:17 | 2016-12-13T21:23:17 | 76,399,529 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,714 | py | ###############################################################################
#
# Tests for XlsxWriter.
#
# Copyright (c), 2013-2014, John McNamara, [email protected]
#
import unittest
from ...compatibility import StringIO
from ...worksheet import Worksheet
class TestExtractFilterTokens(unittest.TestCase):
"""
Test the Worksheet _extract_filter_tokens() method.
"""
def setUp(self):
self.fh = StringIO()
self.worksheet = Worksheet()
self.worksheet._set_filehandle(self.fh)
def test_extract_filter_tokens(self):
"""Test the _extract_filter_tokens() method"""
testcases = [
[
None,
[],
],
[
'',
[],
],
[
'0 < 2001',
['0', '<', '2001'],
],
[
'x < 2000',
['x', '<', '2000'],
],
[
'x > 2000',
['x', '>', '2000'],
],
[
'x == 2000',
['x', '==', '2000'],
],
[
'x > 2000 and x < 5000',
['x', '>', '2000', 'and', 'x', '<', '5000'],
],
[
'x = "goo"',
['x', '=', 'goo'],
],
[
'x = moo',
['x', '=', 'moo'],
],
[
'x = "foo baz"',
['x', '=', 'foo baz'],
],
[
'x = "moo "" bar"',
['x', '=', 'moo " bar'],
],
[
'x = "foo bar" or x = "bar foo"',
['x', '=', 'foo bar', 'or', 'x', '=', 'bar foo'],
],
[
'x = "foo "" bar" or x = "bar "" foo"',
['x', '=', 'foo " bar', 'or', 'x', '=', 'bar " foo'],
],
[
'x = """"""""',
['x', '=', '"""'],
],
[
'x = Blanks',
['x', '=', 'Blanks'],
],
[
'x = NonBlanks',
['x', '=', 'NonBlanks'],
],
[
'top 10 %',
['top', '10', '%'],
],
[
'top 10 items',
['top', '10', 'items'],
],
]
for testcase in testcases:
expression = testcase[0]
exp = testcase[1]
got = self.worksheet._extract_filter_tokens(expression)
self.assertEqual(got, exp)
| [
"[email protected]"
] | |
186d6c74a11f3723f7afa9fee9fabb8293b12090 | a7122df9b74c12a5ef23af3cd38550e03a23461d | /Elementary/Popular Words.py | b195f9aa52413e4b553b3d220df0730845fc443b | [] | no_license | CompetitiveCode/py.checkIO.org | c41f6901c576c614c4c77ad5c4162448828c3902 | e34648dcec54364a7006e4d78313e9a6ec6c498b | refs/heads/master | 2022-01-09T05:48:02.493606 | 2019-05-27T20:29:24 | 2019-05-27T20:29:24 | 168,180,493 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 846 | py | #Answer to Popular Words - https://py.checkio.org/en/mission/popular-words/
import re
def popular_words(text: str, words: list) -> dict:
dictionary = {}
for i in words:
count = sum(1 for _ in re.finditer(r'\b%s\b' %re.escape(i), text, re.I))
dictionary[i] = count
return dictionary
if __name__ == '__main__':
print("Example:")
print(popular_words('''
When I was One
I had just begun
When I was Two
I was nearly new
''', ['i', 'was', 'three', 'near']))
# These "asserts" are used for self-checking and not for an auto-testing
assert popular_words('''
When I was One
I had just begun
When I was Two
I was nearly new
''', ['i', 'was', 'three', 'near']) == {
'i': 4,
'was': 3,
'three': 0,
'near': 0
}
print("Coding complete? Click 'Check' to earn cool rewards!") | [
"[email protected]"
] | |
2909dee689cf910623e0d1009c4341bc11275cfa | 20044db9ab2c773cc80caa4a5a1175ee8148269d | /test/test_win.py | dd916746e989802e3b643dfe3860a27d8b315dfd | [] | no_license | senganal/mpi4py | a4e5dbf2d7e6cf9b6eb783f1e5f1c523326d667f | 28a2e95506844a32efb6b14238ca60173fe7c5a2 | refs/heads/master | 2021-01-13T08:02:43.439643 | 2017-06-16T15:03:44 | 2017-06-16T15:03:44 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,255 | py | from mpi4py import MPI
import mpiunittest as unittest
try:
from sys import getrefcount
except ImportError:
class getrefcount(object):
def __init__(self, arg):
pass
def __eq__(self, other):
return True
def __add__(self, other):
return self
def __sub__(self, other):
return self
def memzero(m):
try:
m[:] = 0
except IndexError: # cffi buffer
m[0:len(m)] = b'\0'*len(m)
class BaseTestWin(object):
COMM = MPI.COMM_NULL
INFO = MPI.INFO_NULL
CREATE_FLAVOR = MPI.UNDEFINED
def testGetAttr(self):
base = MPI.Get_address(self.memory)
size = len(self.memory)
unit = 1
self.assertEqual(size, self.WIN.Get_attr(MPI.WIN_SIZE))
self.assertEqual(unit, self.WIN.Get_attr(MPI.WIN_DISP_UNIT))
self.assertEqual(base, self.WIN.Get_attr(MPI.WIN_BASE))
def testMemory(self):
memory = self.WIN.memory
pointer = MPI.Get_address(memory)
length = len(memory)
base, size, dunit = self.WIN.attrs
self.assertEqual(size, length)
self.assertEqual(dunit, 1)
self.assertEqual(base, pointer)
def testAttributes(self):
base, size, unit = self.WIN.attrs
self.assertEqual(size, len(self.memory))
self.assertEqual(unit, 1)
self.assertEqual(base, MPI.Get_address(self.memory))
def testGetGroup(self):
cgroup = self.COMM.Get_group()
wgroup = self.WIN.Get_group()
grpcmp = MPI.Group.Compare(cgroup, wgroup)
cgroup.Free()
wgroup.Free()
self.assertEqual(grpcmp, MPI.IDENT)
def testGetSetInfo(self):
#info = MPI.INFO_NULL
#self.WIN.Set_info(info)
info = MPI.Info.Create()
self.WIN.Set_info(info)
info.Free()
info = self.WIN.Get_info()
self.WIN.Set_info(info)
info.Free()
def testGetSetErrhandler(self):
for ERRHANDLER in [MPI.ERRORS_ARE_FATAL, MPI.ERRORS_RETURN,
MPI.ERRORS_ARE_FATAL, MPI.ERRORS_RETURN,]:
errhdl_1 = self.WIN.Get_errhandler()
self.assertNotEqual(errhdl_1, MPI.ERRHANDLER_NULL)
self.WIN.Set_errhandler(ERRHANDLER)
errhdl_2 = self.WIN.Get_errhandler()
self.assertEqual(errhdl_2, ERRHANDLER)
errhdl_2.Free()
self.assertEqual(errhdl_2, MPI.ERRHANDLER_NULL)
self.WIN.Set_errhandler(errhdl_1)
errhdl_1.Free()
self.assertEqual(errhdl_1, MPI.ERRHANDLER_NULL)
def testGetSetName(self):
try:
name = self.WIN.Get_name()
self.WIN.Set_name('mywin')
self.assertEqual(self.WIN.Get_name(), 'mywin')
self.WIN.Set_name(name)
self.assertEqual(self.WIN.Get_name(), name)
except NotImplementedError:
pass
def testCreateFlavor(self):
if MPI.WIN_CREATE_FLAVOR == MPI.KEYVAL_INVALID: return
flavors = (MPI.WIN_FLAVOR_CREATE,
MPI.WIN_FLAVOR_ALLOCATE,
MPI.WIN_FLAVOR_DYNAMIC,
MPI.WIN_FLAVOR_SHARED,)
flavor = self.WIN.Get_attr(MPI.WIN_CREATE_FLAVOR)
self.assertTrue (flavor in flavors)
self.assertEqual(flavor, self.WIN.flavor)
self.assertEqual(flavor, self.CREATE_FLAVOR)
def testMemoryModel(self):
if MPI.WIN_MODEL == MPI.KEYVAL_INVALID: return
models = (MPI.WIN_SEPARATE, MPI.WIN_UNIFIED)
model = self.WIN.Get_attr(MPI.WIN_MODEL)
self.assertTrue (model in models)
self.assertEqual(model, self.WIN.model)
class BaseTestWinCreate(BaseTestWin):
CREATE_FLAVOR = MPI.WIN_FLAVOR_CREATE
def setUp(self):
self.memory = MPI.Alloc_mem(10)
memzero(self.memory)
self.WIN = MPI.Win.Create(self.memory, 1, self.INFO, self.COMM)
def tearDown(self):
self.WIN.Free()
MPI.Free_mem(self.memory)
class BaseTestWinAllocate(BaseTestWin):
CREATE_FLAVOR = MPI.WIN_FLAVOR_ALLOCATE
def setUp(self):
self.WIN = MPI.Win.Allocate(10, 1, self.INFO, self.COMM)
self.memory = self.WIN.memory
memzero(self.memory)
def tearDown(self):
self.WIN.Free()
class BaseTestWinAllocateShared(BaseTestWin):
CREATE_FLAVOR = MPI.WIN_FLAVOR_SHARED
def setUp(self):
self.WIN = MPI.Win.Allocate_shared(10, 1, self.INFO, self.COMM)
self.memory = self.WIN.memory
memzero(self.memory)
def tearDown(self):
self.WIN.Free()
def testSharedQuery(self):
memory = self.WIN.memory
address = MPI.Get_address(memory)
length = len(memory)
memories = self.COMM.allgather((address, length))
rank = self.COMM.Get_rank()
size = self.COMM.Get_size()
for i in range(size):
mem, disp = self.WIN.Shared_query(rank)
base = MPI.Get_address(mem)
size = len(mem)
if i == rank:
self.assertEqual(base, memories[i][0])
self.assertEqual(size, memories[i][1])
self.assertEqual(disp, 1)
class BaseTestWinCreateDynamic(BaseTestWin):
CREATE_FLAVOR = MPI.WIN_FLAVOR_DYNAMIC
def setUp(self):
self.WIN = MPI.Win.Create_dynamic(self.INFO, self.COMM)
def tearDown(self):
self.WIN.Free()
def testGetAttr(self):
base = self.WIN.Get_attr(MPI.WIN_BASE)
size = self.WIN.Get_attr(MPI.WIN_SIZE)
disp = self.WIN.Get_attr(MPI.WIN_DISP_UNIT)
self.assertEqual(base, 0)
self.assertEqual(size, 0)
#self.assertEqual(disp, 1)
def testMemory(self):
self.assertTrue(self.WIN.memory is None)
def testAttributes(self):
pass
def testAttachDetach(self):
mem1 = MPI.Alloc_mem(8)
mem2 = MPI.Alloc_mem(16)
mem3 = MPI.Alloc_mem(32)
for mem in (mem1, mem2, mem3):
self.WIN.Attach(mem)
self.testMemory()
self.WIN.Detach(mem)
for mem in (mem1, mem2, mem3):
self.WIN.Attach(mem)
self.testMemory()
for mem in (mem1, mem2, mem3):
self.WIN.Detach(mem)
for mem in (mem1, mem2, mem3):
self.WIN.Attach(mem)
self.testMemory()
for mem in (mem3, mem2, mem1):
self.WIN.Detach(mem)
MPI.Free_mem(mem1)
MPI.Free_mem(mem2)
MPI.Free_mem(mem3)
class TestWinCreateSelf(BaseTestWinCreate, unittest.TestCase):
COMM = MPI.COMM_SELF
class TestWinCreateWorld(BaseTestWinCreate, unittest.TestCase):
COMM = MPI.COMM_WORLD
class TestWinAllocateSelf(BaseTestWinAllocate, unittest.TestCase):
COMM = MPI.COMM_SELF
class TestWinAllocateWorld(BaseTestWinAllocate, unittest.TestCase):
COMM = MPI.COMM_WORLD
class TestWinAllocateSharedSelf(BaseTestWinAllocateShared, unittest.TestCase):
COMM = MPI.COMM_SELF
class TestWinAllocateSharedWorld(BaseTestWinAllocateShared, unittest.TestCase):
COMM = MPI.COMM_WORLD
class TestWinCreateDynamicSelf(BaseTestWinCreateDynamic, unittest.TestCase):
COMM = MPI.COMM_SELF
class TestWinCreateDynamicWorld(BaseTestWinCreateDynamic, unittest.TestCase):
COMM = MPI.COMM_WORLD
try:
MPI.Win.Create(MPI.BOTTOM, 1, MPI.INFO_NULL, MPI.COMM_SELF).Free()
except NotImplementedError:
del TestWinCreateSelf, TestWinCreateWorld
try:
MPI.Win.Allocate(1, 1, MPI.INFO_NULL, MPI.COMM_SELF).Free()
except NotImplementedError:
del TestWinAllocateSelf, TestWinAllocateWorld
try:
MPI.Win.Allocate_shared(1, 1, MPI.INFO_NULL, MPI.COMM_SELF).Free()
except NotImplementedError:
del TestWinAllocateSharedSelf, TestWinAllocateSharedWorld
try:
MPI.Win.Create_dynamic(MPI.INFO_NULL, MPI.COMM_SELF).Free()
except NotImplementedError:
del TestWinCreateDynamicSelf, TestWinCreateDynamicWorld
name, version = MPI.get_vendor()
if name == 'Open MPI':
if version < (1,4,0):
if MPI.Query_thread() > MPI.THREAD_SINGLE:
del TestWinCreateWorld
del TestWinAllocateWorld
if name == 'MPICH2':
import sys
if sys.platform.startswith('win'):
del BaseTestWin.testAttributes
if __name__ == '__main__':
unittest.main()
| [
"[email protected]"
] | |
67bed8ee2cf8654efc0ac980515699f555298c21 | bcb178eabc006d2d3dcff3d35bb3a47dc1573841 | /tools/nicythize | 01143856430ef42cc335ccecd619ec488c98f407 | [
"BSD-3-Clause"
] | permissive | poldrack/nipy | dc34e341ce07ecd6a1240b84582186073a1348a7 | cffbb76c86e648a647327e654f0d33220035c6ec | refs/heads/master | 2022-04-24T00:23:12.054157 | 2020-04-23T15:29:34 | 2020-04-23T15:29:34 | 258,041,266 | 0 | 0 | NOASSERTION | 2020-04-22T23:12:22 | 2020-04-22T23:12:21 | null | UTF-8 | Python | false | false | 5,989 | #!/usr/bin/env python
""" nicythize
Cythonize pyx files into C files as needed.
Usage: nicythize [root_dir]
Default [root_dir] is 'nipy'.
Checks pyx files to see if they have been changed relative to their
corresponding C files. If they have, then runs cython on these files to
recreate the C files.
The script thinks that the pyx files have changed relative to the C files if:
* The pyx file is modified compared to the version checked into git, and the C
file is not
* The pyx file was committed to the repository more recently than the C file.
Simple script to invoke Cython (and Tempita) on all .pyx (.pyx.in)
files; while waiting for a proper build system. Uses file hashes to
figure out if rebuild is needed (using dates seem to fail with
frequent change of git branch).
For now, this script should be run by developers when changing Cython files
only, and the resulting C files checked in, so that end-users (and Python-only
developers) do not get the Cython/Tempita dependencies.
Originally written by Dag Sverre Seljebotn, and copied here from:
https://raw.github.com/dagss/private-scipy-refactor/cythonize/cythonize.py
Note: this script does not check any of the dependent C libraries; it only
operates on the Cython .pyx files.
"""
import os
from os.path import join as pjoin, abspath
import sys
import hashlib
import pickle
from subprocess import Popen, PIPE
from distutils.version import LooseVersion
try:
import Cython
except ImportError:
raise OSError('We need cython for this script')
from Cython.Compiler.Version import version as cython_version
HAVE_CYTHON_0p14 = LooseVersion(cython_version) >= LooseVersion('0.14')
HASH_FILE = 'cythonize.dat'
DEFAULT_ROOT = 'nipy'
EXTRA_FLAGS = '-I {}'.format(
abspath(pjoin('lib', 'fff_python_wrapper')))
#
# Rules
#
def process_pyx(fromfile, tofile):
if HAVE_CYTHON_0p14:
opt_str = '--fast-fail'
else:
opt_str = ''
if os.system('cython %s %s -o "%s" "%s"' % (
opt_str, EXTRA_FLAGS, tofile, fromfile)) != 0:
raise Exception('Cython failed')
def process_tempita_pyx(fromfile, tofile):
import tempita
with open(fromfile, 'rt') as f:
tmpl = f.read()
pyxcontent = tempita.sub(tmpl)
assert fromfile.endswith('.pyx.in')
pyxfile = fromfile[:-len('.pyx.in')] + '.pyx'
with open(pyxfile, 'w') as f:
f.write(pyxcontent)
process_pyx(pyxfile, tofile)
rules = {
# fromext : (toext, function)
'.pyx' : ('.c', process_pyx),
'.pyx.in' : ('.c', process_tempita_pyx)
}
#
# Hash db
#
def load_hashes(filename):
# Return { filename : (sha1 of input, sha1 of output) }
if os.path.isfile(filename):
with open(filename, 'rb') as f:
hashes = pickle.load(f)
else:
hashes = {}
return hashes
def save_hashes(hash_db, filename):
with open(filename, 'wb') as f:
pickle.dump(hash_db, f)
def sha1_of_file(filename):
h = hashlib.sha1()
with open(filename, 'rb') as f:
h.update(f.read())
return h.hexdigest()
#
# interface with git
#
def execproc(cmd):
assert isinstance(cmd, (list, tuple))
pp = Popen(cmd, stdout=PIPE, stderr=PIPE)
result = pp.stdout.read().strip()
err = pp.stderr.read()
retcode = pp.wait()
if retcode != 0:
return None
else:
return result
def git_last_commit_to(filename):
out = execproc(['git', 'log', '-1', '--format=format:%H', filename])
if out == '':
out = None
return out
def git_is_dirty(filename):
out = execproc(['git', 'status', '--porcelain', filename])
assert out is not None
return (out != '')
def git_is_child(parent_sha, child_sha):
out = execproc(['git', 'rev-list', child_sha, '^%s^' % parent_sha])
assert out is not None
for line in out.split('\n'):
if line == parent_sha:
return True
return False
#
# Main program
#
def get_hash(frompath, topath):
from_hash = sha1_of_file(frompath)
to_hash = sha1_of_file(topath) if os.path.exists(topath) else None
return (from_hash, to_hash)
def process(path, fromfile, tofile, processor_function, hash_db):
fullfrompath = os.path.join(path, fromfile)
fulltopath = os.path.join(path, tofile)
current_hash = get_hash(fullfrompath, fulltopath)
if current_hash == hash_db.get(fullfrompath, None):
print('%s has not changed' % fullfrompath)
return
from_sha = git_last_commit_to(fullfrompath)
to_sha = git_last_commit_to(fulltopath)
if (from_sha is not None and to_sha is not None and
not git_is_dirty(fullfrompath)):
# Both source and target is under revision control;
# check with revision control system whether we need to
# update
if git_is_child(from_sha, to_sha):
hash_db[fullfrompath] = current_hash
print('%s is up to date (according to git)' % fullfrompath)
return
orig_cwd = os.getcwd()
try:
os.chdir(path)
print('Processing %s' % fullfrompath)
processor_function(fromfile, tofile)
finally:
os.chdir(orig_cwd)
# changed target file, recompute hash
current_hash = get_hash(fullfrompath, fulltopath)
# store hash in db
hash_db[fullfrompath] = current_hash
def find_process_files(root_dir):
hash_db = load_hashes(HASH_FILE)
for cur_dir, dirs, files in os.walk(root_dir):
for filename in files:
for fromext, rule in rules.items():
if filename.endswith(fromext):
toext, function = rule
fromfile = filename
tofile = filename[:-len(fromext)] + toext
process(cur_dir, fromfile, tofile, function, hash_db)
save_hashes(hash_db, HASH_FILE)
def main():
try:
root_dir = sys.argv[1]
except IndexError:
root_dir = DEFAULT_ROOT
find_process_files(root_dir)
if __name__ == '__main__':
main()
| [
"[email protected]"
] | ||
4fb63461d25aae70e78349f22ea21fa4ac0d836a | 1b0a729f6e20c542a6370785a49c181c0675e334 | /mint/_versions/20151206231927 router/mint/host.py | 2ead8cb0368f35e377b1077b2efe0c88d58c32b6 | [] | no_license | fans656/mint-dev | 68125c4b41ab64b20d54a2b19e8bf0179dc4636b | 408f6f055670b15a3f3ee9c9ec086b1090cce372 | refs/heads/master | 2021-05-04T11:43:44.740116 | 2016-09-07T13:43:44 | 2016-09-07T13:43:44 | 45,515,119 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,711 | py | import mint
from mint.interface import Interface
from mint.routetable import RouteTable
from mint.core import EntityWithNIC
from mint.libsocket import LibSocket
from mint.pdus import (
Frame, Packet,
IP,
Discomposer,
)
class Host(EntityWithNIC):
def __init__(self, **kwargs):
super(Host, self).__init__(n_interfaces=1)
self.libsocket = LibSocket(self)
ip = kwargs.get('ip', '192.168.0.1{:02}'.format(self.index))
mask = kwargs.get('mask', '255.255.255.0')
mac = kwargs.get('mac', None)
self.interfaces = [Interface(self, nic, ip, mask, mac)
for nic in self.nics]
self.interface = self.interfaces[0]
self.interface.report.connect(self.report)
self.interface.on_ipv4.connect(self.on_ipv4)
self.routes = RouteTable(self)
def send(self, data, ip, protocol=Packet.Protocol.Raw):
dst_ip = IP(ip)
_, _, gateway, interface = self.routes.find(dst_ip)
if gateway:
self.report('{} is non-local, beg {} to deliver', dst_ip, gateway)
else:
self.report('{} is local, send directly', dst_ip)
packet = Packet(
src_ip=interface.ip,
dst_ip=dst_ip,
protocol=protocol,
payload=data,
)
interface.send_packet(
packet.raw,
gateway if gateway else dst_ip,
Frame.EtherType.IPv4,
)
@property
def ip(self):
return self.interface.ip
@ip.setter
def ip(self, val):
self.interface.ip = val
@property
def mask(self):
return self.interface.mask
@mask.setter
def mask(self, val):
self.interface.mask = val
@property
def mac(self):
return self.interface.mac
@mac.setter
def mac(self, val):
self.interface.mac = val
@property
def default_gateway(self):
return self._default_gateway
@default_gateway.setter
def default_gateway(self, val):
gateway = IP(val)
self._default_gateway = gateway
self.routes[-1].gateway = gateway
def on_ipv4(self, frame, **_):
packet = Packet(frame.payload)
self.send('wooo..', packet.src_ip)
def run(self):
while True:
self.interface.do_send()
self.interface.do_recv()
mint.elapse(1)
@property
def status(self):
nic_title = 'IP:{}/{} MAC:{}'.format(
self.ip, self.mask.net_len, self.mac)
return [
(nic_title, self.nic),
('O', Discomposer(lambda: self.nic.odata)),
('I', Discomposer(lambda: self.nic.idata)),
]
| [
"[email protected]"
] | |
cfa734dc45fd018c8e7f698ec5da162694aa8ce6 | dcce56815dca2b18039e392053376636505ce672 | /dumpscripts/collections_deque_rotate.py | bcc8cb420d285ce582d140a4f19d8855221efbf4 | [] | no_license | robertopauletto/PyMOTW-it_3.0 | 28ff05d8aeccd61ade7d4107a971d9d2576fb579 | c725df4a2aa2e799a969e90c64898f08b7eaad7d | refs/heads/master | 2021-01-20T18:51:30.512327 | 2020-01-09T19:30:14 | 2020-01-09T19:30:14 | 63,536,756 | 4 | 1 | null | null | null | null | UTF-8 | Python | false | false | 267 | py | # collections_deque_rotate.py
import collections
d = collections.deque(range(10))
print('Normale :', d)
d = collections.deque(range(10))
d.rotate(2)
print('Rotazione destra:', d)
d = collections.deque(range(10))
d.rotate(-2)
print('Rotazione sinistra:', d)
| [
"[email protected]"
] | |
244c6f3bb61e659a079e842e9b933fbcbc9b1d94 | 644b13f90d43e9eb2fae0d2dc580c7484b4c931b | /programmers/level1/최소공배수, 최대공약수.py | 9ae0e0c7b50f0b452035698c8c30943f5df4074d | [] | no_license | yeonnseok/ps-algorithm | c79a41f132c8016655719f74e9e224c0870a8f75 | fc9d52b42385916344bdd923a7eb3839a3233f18 | refs/heads/master | 2020-07-09T11:53:55.786001 | 2020-01-26T02:27:09 | 2020-01-26T02:27:09 | 203,962,358 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 216 | py | def solution(n, m):
answer = []
a, b = max(n, m), min(n, m)
if a == b:
return a
while a % b != 0:
a, b = b, a % b
answer.append(b)
answer.append(n * m // b)
return answer | [
"[email protected]"
] | |
f92f1dc064ee15db14477b6d7d43f81fc28eb2ce | 36ac195ecceb868e78372bc8e976066cc9ff0fae | /torch_glow/tests/nodes/bitwise_not_test.py | 638abae4da1c69f85aee374d8a864635a2f08b75 | [
"Apache-2.0"
] | permissive | jeff60907/glow | d283d65bc67e0cc9836854fa7e4e270b77023fff | 34214caa999e4428edbd08783243d29a4454133f | refs/heads/master | 2021-09-23T07:30:29.459957 | 2021-09-14T01:47:06 | 2021-09-14T01:48:00 | 216,199,454 | 0 | 0 | Apache-2.0 | 2019-10-19T12:00:31 | 2019-10-19T12:00:31 | null | UTF-8 | Python | false | false | 1,295 | py | from __future__ import absolute_import, division, print_function, unicode_literals
import unittest
import torch
from parameterized import parameterized
from tests import utils
class SimpleBitwiseNotModule(torch.nn.Module):
def __init__(self):
super(SimpleBitwiseNotModule, self).__init__()
def forward(self, a):
b = torch.bitwise_not(a)
return torch.bitwise_not(b)
class TestBitwiseNot(utils.TorchGlowTestCase):
@utils.deterministic_expand(
[
lambda: ("basic", torch.tensor([-1, -2, 3], dtype=torch.int32)),
lambda: ("basic_int64", torch.tensor([-1, -2, 3], dtype=torch.int64)),
lambda: (
"rand_int",
torch.randint(-1000000000, 1000000000, (2, 3), dtype=torch.int64),
),
lambda: ("bool_ts", torch.zeros((2, 2, 3), dtype=torch.bool)),
lambda: ("bool_fs", torch.ones((2, 2, 3), dtype=torch.bool)),
lambda: ("bool_tf", torch.tensor([False, True], dtype=torch.bool)),
]
)
def test_bitwise_not(self, _, x):
"""Tests of the PyTorch Bitwise Not Node on Glow."""
utils.compare_tracing_methods(
SimpleBitwiseNotModule(),
x,
fusible_ops={"aten::bitwise_not"},
)
| [
"[email protected]"
] | |
11ee931e40d0bb015d6763cf38814d5e8f796363 | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/85/usersdata/216/58702/submittedfiles/funcoes1.py | e3b878f3470c294280f93e1db209d477acd78ca7 | [] | 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 | 1,314 | py | # -*- coding: utf-8 -*-
def crescente (lista):
for i in range(0,len(lista)-1,1):
if lista[i]<lista[i+1]:
return True
return False
def decrescente(lista):
for i in range(0,len(lista)-1,1):
if lista[i]>lista[i+1]:
return True
return False
def numiguais(lista):
for i in range(0,len(lista)-1,1):
if lista[i]==lista[i+1]:
return True
break
return False
n=int(input('Digite a quantidade de elementos:'))
a=[]
b=[]
c=[]
for i in range(0,n,1):
x=float(input('Digite os elementos:'))
a.append(x)
for i in range(0,n,1):
y=float(input('Digite os elementos:'))
b.append(y)
for i in range(0,n,1):
w=float(input('Digite os elementos:'))
c.append(w)
if crescente (a):
print('S')
else:
print('N')
if decrescente (a):
print('S')
else:
print('N')
if numiguais (a):
print('S')
else:
print('N')
if crescente (b):
print('S')
else:
print('N')
if decrescente (b):
print('S')
else:
print('N')
if numiguais (b):
print('S')
else:
print('N')
if crescente (c):
print('S')
else:
print('N')
if decrescente (c):
print('S')
else:
print('N')
if numiguais (c):
print('S')
else:
print('N') | [
"[email protected]"
] | |
9bad7ba88b49290861ae215cd0a3410b76a09167 | ee41311a11a1c6baedafd9a914d5a1f8330fe8a9 | /SANEF_LIVE/agentBulkTransaction.py | 2d2bc2ee94b1cacb4deac3295236f24beb6442f9 | [] | no_license | sethnanati/CodeRepoPython | 2dffb7263620bd905bf694f348485d894a9513db | b55e66611d19b35e9926d1b1387320cf48e177c8 | refs/heads/master | 2023-07-07T11:16:12.958401 | 2021-02-13T10:09:48 | 2021-02-13T10:09:48 | 376,531,283 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,118 | py | import requests
import requests
import json
import time
from signatureEncoding256 import encrypt_string
import authorizationEncoding64
from cryptoAESLatest import encrypt
from config import endpoints
from ResponseErrorLog import ErrorLog
from iLogs import iLog
def createAgent():
try:
bulkdata = [ {"transactionDate":"2018-07-12", "cashInCount":"1000", "cashInValue":"20000", "cashOutCount":"1000",
"cashOutValue":"2000", "accountOpeningCount":"2000", "accountOpeningValue":"4000",
"billsPaymentCount":"2000", "billsPaymentValue":"3000", "airtimeRechargeCount":"20000",
"airtimeRechargeValue":"4000", "fundTransferCount":"2000", "fundTransferValue":"3000",
"bvnEnrollmentCount":"1000", "bvnEnrollmentValue":"3000", "othersCount":"4000", "othersValue":"30000",
"additionalService1Count":"", "additionalService1Value":"", "additionalService2Count":"",
"additionalService2Value":"", "agentCode":"99988171" }, {"transactionDate":"2018-07-12", "cashInCount":"1000", "cashInValue":"20000", "cashOutCount":"1000",
"cashOutValue":"2000", "accountOpeningCount":"2000", "accountOpeningValue":"4000",
"billsPaymentCount":"2000", "billsPaymentValue":"3000", "airtimeRechargeCount":"20000",
"airtimeRechargeValue":"4000", "fundTransferCount":"2000", "fundTransferValue":"3000",
"bvnEnrollmentCount":"1000", "bvnEnrollmentValue":"3000", "othersCount":"4000", "othersValue":"30000",
"additionalService1Count":"", "additionalService1Value":"", "additionalService2Count":"",
"additionalService2Value":"", "agentCode":"99988172" }, {"transactionDate":"2018-07-12", "cashInCount":"1000", "cashInValue":"20000", "cashOutCount":"1000",
"cashOutValue":"2000", "accountOpeningCount":"2000", "accountOpeningValue":"4000",
"billsPaymentCount":"2000", "billsPaymentValue":"3000", "airtimeRechargeCount":"20000",
"airtimeRechargeValue":"4000", "fundTransferCount":"2000", "fundTransferValue":"3000",
"bvnEnrollmentCount":"1000", "bvnEnrollmentValue":"3000", "othersCount":"4000", "othersValue":"30000",
"additionalService1Count":"", "additionalService1Value":"", "additionalService2Count":"",
"additionalService2Value":"", "agentCode":"99988173" }, {"transactionDate":"2018-07-12", "cashInCount":"1000", "cashInValue":"20000", "cashOutCount":"1000",
"cashOutValue":"2000", "accountOpeningCount":"2000", "accountOpeningValue":"4000",
"billsPaymentCount":"2000", "billsPaymentValue":"3000", "airtimeRechargeCount":"20000",
"airtimeRechargeValue":"4000", "fundTransferCount":"2000", "fundTransferValue":"3000",
"bvnEnrollmentCount":"1000", "bvnEnrollmentValue":"3000", "othersCount":"4000", "othersValue":"30000",
"additionalService1Count":"", "additionalService1Value":"", "additionalService2Count":"",
"additionalService2Value":"", "agentCode":"99988170" }, {"transactionDate":"2018-07-12", "cashInCount":"1000", "cashInValue":"20000", "cashOutCount":"1000",
"cashOutValue":"2000", "accountOpeningCount":"2000", "accountOpeningValue":"4000",
"billsPaymentCount":"2000", "billsPaymentValue":"3000", "airtimeRechargeCount":"20000",
"airtimeRechargeValue":"4000", "fundTransferCount":"2000", "fundTransferValue":"3000",
"bvnEnrollmentCount":"1000", "bvnEnrollmentValue":"3000", "othersCount":"4000", "othersValue":"30000",
"additionalService1Count":"", "additionalService1Value":"", "additionalService2Count":"",
"additionalService2Value":"", "agentCode":"99988169" }, {"transactionDate":"2018-07-12", "cashInCount":"1000", "cashInValue":"20000", "cashOutCount":"1000",
"cashOutValue":"2000", "accountOpeningCount":"2000", "accountOpeningValue":"4000",
"billsPaymentCount":"2000", "billsPaymentValue":"3000", "airtimeRechargeCount":"20000",
"airtimeRechargeValue":"4000", "fundTransferCount":"2000", "fundTransferValue":"3000",
"bvnEnrollmentCount":"1000", "bvnEnrollmentValue":"3000", "othersCount":"4000", "othersValue":"30000",
"additionalService1Count":"", "additionalService1Value":"", "additionalService2Count":"",
"additionalService2Value":"", "agentCode":"99988168" }, {"transactionDate":"2018-07-12", "cashInCount":"1000", "cashInValue":"20000", "cashOutCount":"1000",
"cashOutValue":"2000", "accountOpeningCount":"2000", "accountOpeningValue":"4000",
"billsPaymentCount":"2000", "billsPaymentValue":"3000", "airtimeRechargeCount":"20000",
"airtimeRechargeValue":"4000", "fundTransferCount":"2000", "fundTransferValue":"3000",
"bvnEnrollmentCount":"1000", "bvnEnrollmentValue":"3000", "othersCount":"4000", "othersValue":"30000",
"additionalService1Count":"", "additionalService1Value":"", "additionalService2Count":"",
"additionalService2Value":"", "agentCode":"99988167" }, {"transactionDate":"2018-07-12", "cashInCount":"1000", "cashInValue":"20000", "cashOutCount":"1000",
"cashOutValue":"2000", "accountOpeningCount":"2000", "accountOpeningValue":"4000",
"billsPaymentCount":"2000", "billsPaymentValue":"3000", "airtimeRechargeCount":"20000",
"airtimeRechargeValue":"4000", "fundTransferCount":"2000", "fundTransferValue":"3000",
"bvnEnrollmentCount":"1000", "bvnEnrollmentValue":"3000", "othersCount":"4000", "othersValue":"30000",
"additionalService1Count":"", "additionalService1Value":"", "additionalService2Count":"",
"additionalService2Value":"", "agentCode":"99988166" }, {"transactionDate":"2018-07-12", "cashInCount":"1000", "cashInValue":"20000", "cashOutCount":"1000",
"cashOutValue":"2000", "accountOpeningCount":"2000", "accountOpeningValue":"4000",
"billsPaymentCount":"2000", "billsPaymentValue":"3000", "airtimeRechargeCount":"20000",
"airtimeRechargeValue":"4000", "fundTransferCount":"2000", "fundTransferValue":"3000",
"bvnEnrollmentCount":"1000", "bvnEnrollmentValue":"3000", "othersCount":"4000", "othersValue":"30000",
"additionalService1Count":"", "additionalService1Value":"", "additionalService2Count":"",
"additionalService2Value":"", "agentCode":"99988165" }, {"transactionDate":"2018-07-12", "cashInCount":"1000", "cashInValue":"20000", "cashOutCount":"1000",
"cashOutValue":"2000", "accountOpeningCount":"2000", "accountOpeningValue":"4000",
"billsPaymentCount":"2000", "billsPaymentValue":"3000", "airtimeRechargeCount":"20000",
"airtimeRechargeValue":"4000", "fundTransferCount":"2000", "fundTransferValue":"3000",
"bvnEnrollmentCount":"1000", "bvnEnrollmentValue":"3000", "othersCount":"4000", "othersValue":"30000",
"additionalService1Count":"", "additionalService1Value":"", "additionalService2Count":"",
"additionalService2Value":"", "agentCode":"99988164" }, {"transactionDate":"2018-07-12", "cashInCount":"1000", "cashInValue":"20000", "cashOutCount":"1000",
"cashOutValue":"2000", "accountOpeningCount":"2000", "accountOpeningValue":"4000",
"billsPaymentCount":"2000", "billsPaymentValue":"3000", "airtimeRechargeCount":"20000",
"airtimeRechargeValue":"4000", "fundTransferCount":"2000", "fundTransferValue":"3000",
"bvnEnrollmentCount":"1000", "bvnEnrollmentValue":"3000", "othersCount":"4000", "othersValue":"30000",
"additionalService1Count":"", "additionalService1Value":"", "additionalService2Count":"",
"additionalService2Value":"", "agentCode":"99988163" }]
json.dumps(bulkdata)
data = str(json.dumps(bulkdata)).encode('utf-8')
print(data)
serviceurl = endpoints()['transactionReportBulk']
print('url:', serviceurl)
base_data = encrypt(data)
print('request:', base_data)
iLog(base_data)
headers = {"Authorization":authorizationEncoding64.authdecoded, "Signature":encrypt_string(),
"Content-Type": 'application/json', 'HTTP method':'POST', 'Signature_Meth':'SHA256'}
serviceurl = requests.post(url=serviceurl, data=base_data, headers=headers)
responsetext = serviceurl.text
print(responsetext)
#iLog(responsetext)
#print('Status_Code:', serviceurl.status_code, 'Status_Text:', responsetext, ErrorLog()[str(serviceurl.status_code)], 'Status_Reason:', serviceurl.reason)
except requests.ConnectionError as e:
print("OOPS! Connection Error:", e)
except requests.RequestException as e:
print("OOPS! Request Error:", e)
except requests.ConnectTimeout as e:
print("OOPS! Connect Timeout:", e)
try:
getErrorMessage = ErrorLog()[str(serviceurl.status_code)]
try:
errorDesc = ErrorLog()[json.loads(serviceurl.text)['responseCode']]
result = 'Status_Code:', serviceurl.status_code, 'Status_Msg:', getErrorMessage, 'Response:', responsetext, errorDesc
except KeyError:
errorDesc = KeyError
result = 'Status_Code:', serviceurl.status_code, 'Status_Msg:', getErrorMessage, 'Response:', responsetext, errorDesc
print(result)
iLog(result)
except json.JSONDecodeError as e:
print('JSON Error:', e)
createAgent()
# print('-----Initializing Create Agent-------')
# while True:
# if ping.pingConnection()[0] == 200:
# time.sleep(2)
# createAgent()
#
# else:
# ping.pingConnection()
# print('...Service is unavailable retrying in 60sec.....')
# time.sleep(60)
# def createAgent(pingresp): | [
"[email protected]"
] | |
fe85918273b3ffd9dc2339a9b0f97a381f0ab2db | 22f80b809204010da7e8217374a2ca78a5613308 | /files/ResourceTools.py | 8f03f0628ceb8a13b409ba83e82ad66a8f46bbb8 | [
"BSD-3-Clause"
] | permissive | frohro/pysam | 23421f506c25e3f2a57ef2533029e64dc856612d | cac4423410d948d886b3f19c83a73ac29ab618ae | refs/heads/master | 2021-02-09T03:46:56.540560 | 2020-03-17T13:32:05 | 2020-03-17T13:32:05 | 244,236,139 | 0 | 0 | BSD-3-Clause | 2020-03-01T22:49:09 | 2020-03-01T22:49:08 | null | UTF-8 | Python | false | false | 6,820 | py | import csv
import os
from collections import defaultdict
def TMY_CSV_to_solar_data(filename):
"""
Format a TMY csv file as 'solar_resource_data' dictionary for use in PySAM.
:param: filename:
any csv resource file formatted according to NSRDB
:return: dictionary for PySAM.Pvwattsv7.Pvwattsv7.SolarResource, and other models
"""
if not os.path.isfile(filename):
raise FileNotFoundError(filename + " does not exist.")
wfd = defaultdict(list)
with open(filename) as file_in:
info = []
for i in range(2):
info.append(file_in.readline())
info[i] = info[i].split(",")
if "Time Zone" not in info[0]:
raise ValueError("`Time Zone` field not found in solar resource file.")
latitude = info[1][info[0].index("Latitude")]
longitude = info[1][info[0].index("Longitude")]
tz = info[1][info[0].index("Time Zone")]
elev = info[1][info[0].index("Elevation")]
reader = csv.DictReader(file_in)
for row in reader:
for col, dat in row.items():
if len(col) > 0:
wfd[col].append(float(dat))
weather = dict()
weather['tz'] = float(tz)
weather['elev'] = float(elev)
weather['lat'] = float(latitude)
weather['lon'] = float(longitude)
weather['year'] = wfd.pop('Year')
weather['month'] = wfd.pop('Month')
weather['day'] = wfd.pop('Day')
weather['hour'] = wfd.pop('Hour')
weather['minute'] = wfd.pop('Minute')
weather['dn'] = wfd.pop('DNI')
weather['df'] = wfd.pop('DHI')
weather['gh'] = wfd.pop('GHI')
weather['wspd'] = wfd.pop('Wind Speed')
weather['tdry'] = wfd.pop('Temperature')
return weather
def SRW_to_wind_data(filename):
"""
Format as 'wind_resource_data' dictionary for use in PySAM.
:param: filename:
srw wind resource file
:return: dictionary for PySAM.Windpower.Windpower.Resource
"""
if not os.path.isfile(filename):
raise FileNotFoundError(filename + " does not exist.")
data_dict = dict()
field_names = ('Temperature', 'Pressure', 'Speed', 'Direction')
fields_id = (1, 2, 3, 4)
with open(filename) as file_in:
file_in.readline()
file_in.readline()
fields = str(file_in.readline().strip()).split(',')
file_in.readline()
heights = str(file_in.readline().strip()).split(',')
data_dict['heights'] = [float(i) for i in heights]
data_dict['fields'] = []
for field_name in fields:
if field_name not in field_names:
raise ValueError(field_name + " required for wind data")
data_dict['fields'].append(field_names.index(field_name) + 1)
data_dict['data'] = []
reader = csv.reader(file_in)
for row in reader:
data_dict['data'].append([float(i) for i in row])
return data_dict
def URDBv7_to_ElectricityRates(urdb_response):
"""
Formats response from Utility Rate Database API version 7 for use in PySAM
i.e.
model = PySAM.UtilityRate5.new()
rates = PySAM.ResourceTools.URDBv7_to_ElectricityRates(urdb_response)
model.ElectricityRates.assign(rates)
:param: urdb_response
dictionary with response fields following https://openei.org/services/doc/rest/util_rates/?version=7
:return: dictionary for PySAM.UtilityRate5.UtilityRate5.ElectricityRates
"""
def try_get_schedule(urdb_name, data_name):
if urdb_name in urdb_response.keys():
data[data_name] = urdb_response[urdb_name]
for i in range(12):
for j in range(24):
data[data_name][i][j] += 1
def try_get_rate_structure(urdb_name, data_name):
mat = []
if urdb_name in urdb_response.keys():
structure = urdb_response[urdb_name]
for i, period in enumerate(structure):
for j, entry in enumerate(period):
rate = entry['rate']
if 'adj' in entry.keys():
rate += entry['adj']
tier_max = 1e38
if 'max' in entry.keys():
tier_max = entry['max']
sell = 0
if 'sell' in entry.keys():
sell = entry['sell']
units = ['kwh', 'kw']
if 'unit' in entry.keys():
if entry['unit'].lower() not in units:
raise RuntimeError("UtilityRateDatabase error: unrecognized unit in rate structure")
mat.append((i + 1, j + 1, tier_max, 0.0, rate, sell))
data[data_name] = mat
data = dict()
data['en_electricity_rates'] = 1
rules = urdb_response['dgrules']
if rules == "Net Metering":
data['ur_metering_option'] = 0
elif rules == "Net Billing Instantaneous":
data['ur_metering_option'] = 2
elif rules == "Net Billing Hourly":
data['ur_metering_option'] = 3
elif rules == "Buy All Sell All":
data['ur_metering_option'] = 4
if 'fixedchargefirstmeter' in urdb_response.keys():
fixed_charge = urdb_response['fixedchargefirstmeter']
fixed_charge_units = urdb_response['fixedchargeunits']
if fixed_charge_units == "$/day":
fixed_charge *= 365/30
elif fixed_charge_units == "$/year":
fixed_charge /= 12
data['ur_fixed_monthly_charge'] = fixed_charge
if 'mincharge' in urdb_response.keys():
min_charge = urdb_response['mincharge']
min_charge_units = urdb_response['minchargeunits']
if min_charge_units == "$/year":
data['ur_annual_min_charge'] = min_charge
else:
if min_charge_units == "$/day":
min_charge *= 365 / 30
data['ur_monthly_min_charge'] = min_charge
try_get_schedule('energyweekdayschedule', 'ur_ec_sched_weekday')
try_get_schedule('energyweekendschedule', 'ur_ec_sched_weekend')
if 'flatdemandmonths' in urdb_response.keys():
data['ur_dc_enable'] = 1
flat_mat = []
flat_demand = urdb_response['flatdemandmonths']
for i in range(12):
flat_mat.append([i, 1, 1e38, flat_demand[i]])
data['ur_dc_flat_mat'] = flat_mat
try_get_rate_structure('energyratestructure', 'ur_ec_tou_mat')
try_get_rate_structure('flatdemandstructure', 'ur_dc_flat_mat')
try_get_rate_structure('demandratestructure', 'ur_dc_tou_mat')
try_get_schedule('demandweekdayschedule', 'ur_dc_sched_weekday')
try_get_schedule('demandweekendschedule', 'ur_dc_sched_weekend')
return data
| [
"[email protected]"
] | |
11904ef28fb8158f2089b88efb705ee390701ba2 | 47008724082fd7fa39b87416bcd1d7633e9d8ef7 | /04-使用Item封装数据/example/example/pipelines.py | 65d9fcd59f07f0c6977eae5bb000f890f65df5e8 | [
"Apache-2.0"
] | permissive | gy0109/matser-scrapy-liushuo | 1909d5902dcaf9a119a1cbf42dff9c9434fb58cc | 99afa51aa30248282bf6d86f8a98a28b086f54ff | refs/heads/master | 2020-05-16T09:25:13.429519 | 2019-04-25T12:34:30 | 2019-04-25T12:34:30 | 182,947,663 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 756 | py | # -*- coding: utf-8 -*-
# Define your item pipelines here
#
# Don't forget to add your pipeline to the ITEM_PIPELINES setting
# See: https://doc.scrapy.org/en/latest/topics/item-pipeline.html
class ExamplePipeline(object):
def process_item(self, item, spider):
return item
# pipeline不需要继承什么基类,只需要实现特定的方法 open_spider close_spider process_item
# process_item是必须要有的 用来处理spider怕取到的数据 item: 爬取到的一项数据 spider 爬取的spider对象
class BookPipeline(object):
# 汇率
exchange_rate = 8.5309
def process_item(self, item, spider):
price = float(item['price'][1:])
item['price'] = '¥%.2f'% price
return item
| [
"[email protected]"
] | |
c303cf21bf6d1ff3eeb3773c71c758ca5533d3e5 | b4c93bad8ccc9007a7d3e7e1d1d4eb8388f6e988 | /ph_locations/migrations/0002_auto_20210319_1358.py | 6de5bb1e1c5891f630460b5a245aa21ef859f2f2 | [] | no_license | flashdreiv/fis | 39b60c010d0d989a34c01b39ea88f7fc3be0a87d | b93277785d6ad113a90a011f7c43b1e3e9209ec5 | refs/heads/main | 2023-04-02T12:46:32.249800 | 2021-03-31T00:27:29 | 2021-03-31T00:27:29 | 343,431,800 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 802 | py | # Generated by Django 3.1.7 on 2021-03-19 05:58
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('ph_locations', '0001_initial'),
]
operations = [
migrations.AddField(
model_name='city',
name='name',
field=models.CharField(max_length=80, null=True),
),
migrations.AddField(
model_name='city',
name='province',
field=models.ForeignKey(null=True, on_delete=django.db.models.deletion.SET_NULL, to='ph_locations.province'),
),
migrations.AddField(
model_name='province',
name='name',
field=models.CharField(max_length=80, null=True),
),
]
| [
"[email protected]"
] | |
6b172bfdaa735bf76829cc5489e174778ff42719 | 0910e259a9bd252300f19b2ff22049d640f19b1a | /keras1/keras29_LSTM_ensemble2_differ.py | d841844016d8c7af269a3cb1dde3aa105b767905 | [] | no_license | kimtaeuk-AI/Study | c7259a0ed1770f249b78f096ad853be7424a1c8e | bad5a0ea72a0117035b5e45652819a3f7206c66f | refs/heads/master | 2023-05-05T12:34:52.471831 | 2021-05-22T16:16:12 | 2021-05-22T16:16:12 | 368,745,041 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,932 | py | #2개의 모델을 하나는 LSTM, 하나는 DENSE로
#앙상블로 구현
# 29_1번 과 성능 비교
import numpy as np
import tensorflow as tf
x1 = np.array([[1,2,3], [2,3,4], [3,4,5], [4,5,6], [5,6,7], [6,7,8], [7,8,9], [8,9,10], [9,10,11], [10,11,12], [20,30,40], [30,40,50], [40,50,60]])
x2 = np.array([[10,20,30],[20,30,40],[30,40,50],[40,50,60],[50,60,70],[60,70,80],[70,80,90],[80,90,100],[90,100,110],[100,110,120],[2,3,4],[3,4,5],[4,5,6]])
y = np.array([4,5,6,7,8,9,10,11,12,13,50,60,70])
x1_predict = np.array([55,65,75])
x2_predict = np.array([65,75,85])
print(x1.shape) #(13,3)
print(x2.shape) #(13,3)
print(y.shape) #(13,)
print(x1_predict.shape) #(3,)
print(x2_predict.shape) #(3,)
x1_LSTM=x1.reshape(x1.shape[0],x1.shape[1],1)
x2_LSTM=x2.reshape(x2.shape[0],x1.shape[1],1)
# x1_predict = x1_predict.reshape(1, 3,1)
from sklearn.model_selection import train_test_split
x1_train, x1_test, y_train, y_test = train_test_split(x1, y, train_size=0.8, shuffle=True, random_state=66)
x2_train, x2_test, y_train, y_test = train_test_split(x2, y, train_size=0.8, shuffle=True, random_state=66)
# from sklearn.preprocessing import MinMaxScaler
# scaler = MinMaxScaler()
# scaler.fit(x1_train)
# # scaler.fit(x2_train)
# # scaler.fit(x1_test)
# # scaler.fit(x2_test)
# x1_train = scaler.transform(x1_train)
# x1_train = scaler.transform(x1_train)
# x1_test = scaler.transform(x1_test)
# x2_test = scaler.transform(x2_test)
# from tensorflow.keras.callbacks import EarlyStopping
# early_stopping = EarlyStopping(monitor='loss',patience=20, mode='min')
from tensorflow.keras.models import Sequential, Model
from tensorflow.keras.layers import Dense, Input, concatenate, LSTM
input1 = Input(shape=(3,1))
dense1 = LSTM(10, activation='relu')(input1)
dense1 = Dense(10)(dense1)
input2 = Input(shape=(3))
dense2 = Dense(10, activation='relu')(input2)
dense2 = Dense(10)(dense2)
merge1 = concatenate([dense1, dense2])
# middle1 = Dense(10, activation='relu')(merge1)
# middle1 = Dense(10)(middle1) #middle 안해도 됨
output1 = Dense(10)(merge1)
output1 = Dense(30)(output1)
output1 = Dense(1)(output1)
# output2 = Dense(10)(middle1)
# output2 = Dense(1)(output2)
model = Model(inputs=[input1, input2], outputs=output1)
model.compile(loss = 'mse', optimizer='adam', metrics='mae')
model.fit([x1_train,x2_train], y_train, epochs=500, validation_split=0.2, batch_size=1)
loss = model.evaluate([x1_test,x2_test], y_test)
x1_pred= x1_predict.reshape(1,3,1) # (3,) -> (1, 3)(dense) ->(1, 3, 1)(LSTM)
x2_pred= x2_predict.reshape(1, 3, 1) # (3,) -> (1, 3)(dense) ->(1, 3, 1)(LSTM)
y1_predict = model.predict([x1_pred,x2_pred])
print('loss = ', loss)
print('result : ', y1_predict)
# loss = [5.709522724151611, 1.6373800039291382] -왼 LSTM 오른쪽이 더좋다
# result : [[94.837204]]
# loss = [2.0639169216156006, 1.1473256349563599]
# result : [[78.38083]] - train_test_split | [
"[email protected]"
] | |
8aa93dfa835ec3cb06e3867216f4f73df6106212 | b0e66db67b34b88e7884aa9b4a7b7607bbe9651b | /data/codec/codec.py | 3ac7e325f53e8dd3ed1092e07be8bbdf47665358 | [] | no_license | cole-brown/veredi-code | 15cf47c688c909b27ad2f2f3518df72862bd17bc | 8c9fc1170ceac335985686571568eebf08b0db7a | refs/heads/master | 2023-04-22T03:21:10.506392 | 2021-05-01T19:05:10 | 2021-05-01T19:05:10 | 296,949,870 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 49,719 | py | # coding: utf-8
'''
Class for Encoding/Decoding the Encodables.
'''
# -----------------------------------------------------------------------------
# Imports
# -----------------------------------------------------------------------------
from typing import (TYPE_CHECKING,
Optional, Union, Any, Type, NewType,
Dict, List, Iterable, Mapping, Tuple)
from veredi.base.null import NullNoneOr, null_or_none
if TYPE_CHECKING:
from veredi.base.context import VerediContext
from veredi.data.config.context import ConfigContext
import collections
from datetime import datetime
import enum as py_enum
from veredi.logs import log
from veredi.logs.mixin import LogMixin
from veredi.base import numbers
from veredi.base.const import SimpleTypes, SimpleTypesTuple
from veredi.base.strings import label, pretty
from veredi.base.strings.mixin import NamesMixin
from veredi import time
from veredi.data import background
from veredi.data.context import DataOperation
from veredi.data.registration import codec as registrar
from ..exceptions import EncodableError
from .const import (EncodeNull,
EncodeAsIs,
EncodedComplex,
EncodedSimple,
EncodedSimpleTuple,
EncodedEither,
Encoding)
from .encodable import Encodable
from . import enum
# -----------------------------------------------------------------------------
# Constants
# -----------------------------------------------------------------------------
EncodableAny = NewType('EncodeInput',
Union[EncodeNull,
EncodeAsIs,
Encodable,
Mapping,
enum.EnumEncode,
py_enum.Enum])
EncodableTypes = NewType('EncodableTypes',
Union[Encodable,
enum.EnumEncode,
py_enum.Enum])
# -----------------------------------------------------------------------------
# Code
# -----------------------------------------------------------------------------
class Codec(LogMixin, NamesMixin,
name_dotted='veredi.codec.codec',
name_string='codec'):
'''
Coder/Decoder for Encodables and the EncodableRegistry.
Repository gets data from storage to Veredi.
Serdes gets data from storage format to Python simple data types.
Codec gets data from simple data types to Veredi classes.
And the backwards version for saving.
'''
# -------------------------------------------------------------------------
# Constants
# -------------------------------------------------------------------------
# ------------------------------
# Logging
# ------------------------------
_LOG_INIT: List[log.Group] = [
log.Group.START_UP,
log.Group.DATA_PROCESSING
]
'''
Group of logs we use a lot for log.group_multi().
'''
# -------------------------------------------------------------------------
# Initialization
# -------------------------------------------------------------------------
def _define_vars(self) -> None:
'''
Instance variable definitions, type hinting, doc strings, etc.
'''
self._bg: Dict[Any, Any] = {}
'''Our background context data that is shared to the background.'''
def __init__(self,
config_context: Optional['ConfigContext'] = None,
codec_name: Optional[str] = None) -> None:
'''
`codec_name` should be short and will be lowercased. It should be
equivalent to the Serdes names of 'json', 'yaml'... It will be 'codec'
if not supplied.
`config_context` is the context being used to set us up.
'''
self._define_vars()
if codec_name:
self.name = codec_name.lower()
# ---
# Set-Up LogMixin before _configure() so we have logging.
# ---
self._log_config(self.dotted)
self._log_group_multi(self._LOG_INIT,
self.dotted,
f"Codec ({self.klass}) init...")
self._configure(config_context)
self._log_group_multi(self._LOG_INIT,
self.dotted,
f"Done with Codec init.")
def _configure(self,
context: Optional['ConfigContext']) -> None:
'''
Do whatever configuration we can as the base class; sub-classes should
finish up whatever is needed to set up themselves.
'''
self._log_group_multi(self._LOG_INIT,
self.dotted,
f"Codec ({self.klass}) "
"configure...")
# Set up our background for when it gets pulled in.
self._make_background()
self._log_group_multi(self._LOG_INIT,
self.dotted,
"Done with Codec configuration.")
# -------------------------------------------------------------------------
# Context Properties/Methods
# -------------------------------------------------------------------------
@property
def background(self) -> Tuple[Dict[str, str], background.Ownership]:
'''
Data for the Veredi Background context.
Returns: (data, background.Ownership)
'''
return self._bg, background.Ownership.SHARE
def _make_background(self) -> Dict[str, str]:
'''
Start of the background data.
'''
self._bg = {
'dotted': self.dotted,
'type': self.name,
}
return self._bg
def _context_data(self,
context: 'VerediContext',
action: DataOperation) -> 'VerediContext':
'''
Inject our codec data into the context.
'''
key = str(background.Name.CODEC)
meta, _ = self.background
context[key] = {
# Push our context data into our sub-context key.
'meta': meta,
# And add any extra info.
'action': action,
}
return context
# -------------------------------------------------------------------------
# API Encoding
# -------------------------------------------------------------------------
def encode(self,
target: EncodableAny,
in_progress: Optional[EncodedComplex] = None,
with_reg_field: bool = True) -> EncodedEither:
'''
Encode `target`, depending on target's type and encoding settings. See
typing of `target` for all encodable types.
If target is Null or None:
- returns None
If target is an Encodable or enum with registered Encodable wrapper:
- Encodes using Encodable functionality. See `_encode_encodable()`
for details.
If target is a Mapping:
- Encodes as a dictionary.
If target is a non-Encodable py_enum.Enum:
- Encodes target.value.
If target is an EncodeAsIs type:
- Returns as-is; already 'encoded'.
Else raises an EncodableError.
'''
# log.debug(f"{self.klass}.encode: {target}")
encoded = None
if null_or_none(target):
# Null/None encode to None.
return encoded
# Translate enum to its wrapper if needed/supported.
if enum.is_encodable(target):
input_enum = target
target = enum.wrap(target)
self._log_data_processing(self.dotted,
"codec.encode: enum found. "
"enum: {} -wrap-> {}",
input_enum, target)
if isinstance(target, Encodable):
# Encode via its function.
encoded = self._encode_encodable(target,
in_progress,
with_reg_field)
elif isinstance(target, collections.abc.Mapping):
# Encode via our map helper.
encoded = self.encode_map(target)
elif isinstance(target, py_enum.Enum):
# Assume, if it's a py_enum.Enum (that isn't an Encodable), that
# just value is fine. If that isn't fine, the enum can make itself
# an Encodable.
encoded = target.value
elif (isinstance(target, time.DateTypesTuple)
or isinstance(target, SimpleTypesTuple)):
encoded = self._encode_simple_types(target)
else:
msg = (f"Do not know how to encode type '{type(target)}'.")
error = EncodableError(msg,
data={
'target': target,
'in_progress': in_progress,
'with_reg_field': with_reg_field,
})
raise self._log_exception(error, msg)
# log.debug(f"{self.klass}.encode: Done. {encoded}")
return encoded
def _encode_encodable(self,
target: Optional[Encodable],
in_progress: Optional[EncodedComplex] = None,
with_reg_field: bool = True) -> EncodedEither:
'''
Encode `target` as a simple or complex encoding, depending on
`target`.encoding().
If `target`.encoding() is SIMPLE, encodes to a string/number.
Otherwise:
- If `encode_in_progress` is provided, encodes this to a sub-field
under `target.type_field()`.
- Else encodes this to a dict and provides `target.type_field()` as
the value of `target.TYPE_FIELD_NAME`.
If `with_reg_field` is True, returns:
An output dict with key/values:
- ENCODABLE_REG_FIELD: `target.dotted`
- ENCODABLE_PAYLOAD_FIELD: `target` encoded data
Else returns:
`target` encoded data
'''
# TODO v://future/2021-03-14T12:27:54
self._log_data_processing(self.dotted,
'_encode_encodable(): target: {}, '
'in_progress: {}, with_reg_field: {}',
target,
in_progress,
with_reg_field)
encoded = None
if null_or_none(target):
# Null/None encode to None.
return encoded
encoding, encoded = target.encode(self)
# TODO v://future/2021-03-14T12:27:54
self._log_data_processing(self.dotted,
'_encode_encodable(): Encoded.\n'
' encoding: {}\n'
' data: {}',
encoding,
encoded)
# ---
# Encoding.SIMPLE
# ---
# If we encoded it simply, we're basically done.
if encoding.has(Encoding.SIMPLE):
# If there's an in_progress that's been pass in, and we just
# encoded ourtarget to a string... That's a bit awkward. But I
# guess do this. Will make weird-ish looking stuff like: 'v.mid':
# 'v.mid:1'
if in_progress is not None:
in_progress[target.type_field()] = encoded
# TODO v://future/2021-03-14T12:27:54
self._log_data_processing(
self.dotted,
'_encode_encodable(): Simple encoding was inserted into '
'`in_progress` data and is complete.\n'
' field: {}\n'
' in_progress: {}',
target.type_field(),
in_progress)
return in_progress
# TODO v://future/2021-03-14T12:27:54
self._log_data_processing(
self.dotted,
'_encode_encodable(): Simple encoding is complete.\n'
' encoded: {}',
encoded)
return encoded
# ---
# Encoding.COMPLEX
# ---
# Put the type somewhere and return encoded data.
if in_progress is not None:
# Encode as a sub-field in the provided data.
in_progress[target.type_field()] = encoded
# TODO v://future/2021-03-14T12:27:54
self._log_data_processing(
self.dotted,
'_encode_encodable(): Complex encoding inserted into '
'`in_progress` data.\n'
' field: {}\n'
' in_progress: {}',
target.type_field(),
in_progress)
return in_progress
encoded[target.TYPE_FIELD_NAME] = target.type_field()
# TODO v://future/2021-03-14T12:27:54
self._log_data_processing(
self.dotted,
'_encode_encodable(): Complex encoding had type-field '
'added to its data.\n'
' field: {}\n'
' data: {}',
target.type_field(),
encoded)
# Encode with reg/payload fields if requested.
if with_reg_field:
enc_with_reg = {
Encodable.ENCODABLE_REG_FIELD: target.dotted,
Encodable.ENCODABLE_PAYLOAD_FIELD: encoded,
}
# TODO v://future/2021-03-14T12:27:54
self._log_data_processing(
self.dotted,
'_encode_encodable(): Complex encoding had reg-field '
'added to its data and is complete.\n'
' reg: {}\n'
' value: {}\n'
' payload: {}\n'
' value: {}\n'
' encoded: {}',
Encodable.ENCODABLE_REG_FIELD,
target.dotted,
Encodable.ENCODABLE_PAYLOAD_FIELD,
encoded,
enc_with_reg)
return enc_with_reg
# Or just return the encoded data.
# TODO v://future/2021-03-14T12:27:54
self._log_data_processing(
self.dotted,
'_encode_encodable(): Complex encoding is complete.\n'
' encoded: {}',
encoded)
return encoded
def encode_map(self,
encode_from: Mapping,
encode_to: Optional[Mapping] = None,
) -> Mapping[str, Union[str, numbers.NumberTypes, None]]:
'''
If `encode_to` is supplied, use that. Else create an empty `encode_to`
dictionary. Get values in `encode_from` dict, encode them, and put them
in `encode_to` under an encoded key.
Returns `encode_to` instance (either the new one we created or the
existing updated one).
'''
if null_or_none(encode_from):
# Null/None encode to None.
return None
if encode_to is None:
encode_to = {}
# log.debug(f"\n\nlogging.encode_map: {encode_from}\n\n")
for key, value in encode_from.items():
field = self._encode_key(key)
node = self._encode_value(value)
encode_to[field] = node
# log.debug(f"\n\n done.\nencode_map: {encode_to}\n\n")
return encode_to
def _encode_key(self, key: Any) -> str:
'''
Encode a dict key.
'''
# log.debug(f"\n\nlogging._encode_key: {key}\n\n")
field = None
if enum.is_encodable(key):
input_enum = key
key = enum.wrap(key)
self._log_data_processing(self.dotted,
"codec._encode_key: enum found. "
"enum: {} -wrap-> {}",
input_enum, key)
# If key is an encodable, can it encode into a key?
if isinstance(key, Encodable):
if key.encoding().has(Encoding.SIMPLE):
field = self._encode_encodable(key)
else:
msg = (f"{self.klass}._encode_key: Encodable "
f"'{key}' cannot be encoded into a key value for "
"a dict - only Encoding.SIMPLE can be used here.")
error = EncodableError(msg,
data={
'key': key,
})
raise log.exception(error, msg)
# Is key something simple?
elif isinstance(key, SimpleTypesTuple):
field = self._encode_simple_types(key)
# If key is an enum that is not an Encodable, use it's value, I guess?
elif isinstance(key, py_enum.Enum):
field = self._encode_simple_types(key.value)
# If key is a just a number, just use it.
elif isinstance(key, numbers.NumberTypesTuple):
field = numbers.serialize(key)
# No idea... error on it.
else:
# # Final guess: stringify it.
# field = str(key)
msg = (f"{self.klass}._encode_key: Key of type "
f"'{type(key)}' is not currently supported for encoding "
" into a field for an encoded dictionary.")
error = EncodableError(msg,
data={
'key': key,
})
raise log.exception(error, msg)
# log.debug(f"\n\n done._encode_key: {field}\n\n")
return field
def _encode_simple_types(self,
value: SimpleTypes) -> Union[str, int, float]:
'''
Encode a simple type.
'''
encoded = value
if isinstance(value, numbers.NumberTypesTuple):
# Numbers have to serialize their Decimals.
encoded = numbers.serialize(value)
elif isinstance(value, str):
encoded = value
else:
msg = (f"{self.klass}._encode_simple_types: "
f"'{type(value)}' is not a member of "
"SimpleTypes and cannot be encoded this way.")
error = EncodableError(msg, value)
raise log.exception(error, msg)
return encoded
def _encode_value(self, value: Any) -> str:
'''
Encode a dict value.
If value is:
- dict or encodable: Step into them for encoding.
- enum: Use the enum's value.
Else assume it is already encoded.
'''
# log.debug(f"\n\nlogging._encode_value: {value}\n\n")
node = None
if isinstance(value, dict):
node = self.encode_map(value)
elif (isinstance(value, Encodable)
or enum.is_encodable(value)):
# Encode it with its registry field so we can
# know what it was encoded as during decoding.
node = self.encode(value, with_reg_field=True)
elif isinstance(value, py_enum.Enum):
# An enum that isn't registered as Encodable - just use value.
node = value.value
else:
node = value
# log.debug(f"\n\n done._encode_value: {node}\n\n")
return node
# -------------------------------------------------------------------------
# Decoding
# -------------------------------------------------------------------------
def _decode_enum_check(self,
target: Optional[EncodableTypes]
) -> Type[Encodable]:
'''
Convert `target` to its Encodable EnumWrap if it is an enum.
Return as-is otherwise.
'''
# Allow target of either the Enum type or the EnumWrap type
# as target.
if enum.is_encodable(target): # Given the enum type as the target?
# Target is enum; translate to its EnumWrap class for decoding.
input_enum = target
target = enum.wrap(target)
self._log_data_processing(self.dotted,
"codec._decode_enum_check: enum found. "
"enum: {} -wrap-> {}",
input_enum, target)
elif enum.is_decodable(target): # Given the EnumWrap as target?
# EnumWrap is what we need - no change.
self._log_data_processing(self.dotted,
"codec._decode_enum_check: EnumWrap found. "
"EnumWrap: {} - Use as-is.",
target)
return target
def _decode_finalize(self, result: Any) -> Any:
'''
Finalize decoding by e.g. converting EnumWrap to its enum value.
'''
finalized = result
if result and enum.needs_unwrapped(result):
finalized = enum.unwrap(result)
self._log_data_processing(self.dotted,
"codec._decode_finalize: "
"{} -> {}",
result, finalized)
return finalized
def decode(self,
target: Optional[EncodableTypes],
data: EncodedEither,
error_squelch: bool = False,
reg_find_dotted: Optional[str] = None,
reg_find_types: Optional[Type[Encodable]] = None,
map_expected: Iterable[Type[EncodableTypes]] = None,
fallback: Optional[Type[Any]] = None
) -> Optional[Any]:
'''
Decode simple or complex `data` input, using it to build an
instance of the `target` class.
If `target` is known, it is used to decode and return a new
`target` instance or None.
If `target` is unknown (and therefore None), `data` must exist and
have keys:
- Encodable.ENCODABLE_REG_FIELD
- Encodable.ENCODABLE_PAYLOAD_FIELD
Raises KeyError if not present.
Takes EncodedComplex `data` input, and uses
`Encodable.ENCODABLE_REG_FIELD` key to find registered Encodable to
decode `data[Encodable.ENCODABLE_PAYLOAD_FIELD]`.
These keyword args are used for getting Encodables from the
EncodableRegistry:
- reg_find_dotted: Encodable's dotted registry string to use for
searching for the encodable that can decode the data.
- reg_find_types: Search for Encodables of this class or its
subclasses that can decode the data.
- fallback: Thing to return if no valid Encodable found for
decoding.
If data is a map with several expected Encodables in it, supply
those in `map_expected` or just use `decode_map()`.
`error_squelch` will try to only raise the exception, instead of
raising it through log.exception().
'''
# ---
# Decode at all?
# ---
if null_or_none(data):
# Can't decode nothing; return nothing.
self._log_data_processing(
self.dotted,
"decode: Cannot decode nothing:\n"
" data: {}",
data)
return self._decode_finalize(None)
# ---
# Decode target already known?
# ---
if target:
self._log_data_processing(
self.dotted,
"decode: Attempting to decode via Encodable:\n"
" data: {}",
data)
decoded = self._decode_encodable(target, data)
self._log_data_processing(
self.dotted,
"decode: Decode via Encodable returned:\n"
" decoded: {}",
decoded)
return self._decode_finalize(decoded)
self._log_data_processing(
self.dotted,
"decode: No target...\n"
" type: {}\n"
" data: {}",
type(data),
data)
# ---
# Is it an Encoding.SIMPLE?
# ---
if isinstance(data, EncodedSimpleTuple):
self._log_data_processing(
self.dotted,
"decode: Attempting to decode simply encoded data...\n"
" data: {}",
data)
decoded = self._decode_simple(data, None)
if decoded:
self._log_data_processing(
self.dotted,
"decode: Decoded simply encoded data to:\n"
" decoded: {}",
decoded)
return self._decode_finalize(decoded)
# Else: not this... Keep looking.
self._log_data_processing(
self.dotted,
"decode: Data is not Encoding.SIMPLE. Continuing...")
# ---
# Does the EncodableRegistry know about it?
# ---
try:
self._log_data_processing(
self.dotted,
"decode: Attempting to decode with registry...\n"
" reg_find_dotted: {}\n"
" reg_find_types: {}\n"
" error_squelch: {}\n\n"
" data:\n{}\n"
" fallback:\n{}\n",
reg_find_dotted,
reg_find_types,
error_squelch,
log.format_pretty(data, prefix=' '),
log.format_pretty(fallback, prefix=' '))
decoded = self._decode_with_registry(data,
dotted=reg_find_dotted,
data_types=reg_find_types,
error_squelch=error_squelch,
fallback=fallback)
if self._log_will_output(log.Group.DATA_PROCESSING):
self._log_data_processing(
self.dotted,
"decode: Decode with registry returned:\n"
" type: {}\n"
"{}",
type(decoded),
log.format_pretty(decoded,
prefix=' '))
return self._decode_finalize(decoded)
except (KeyError, ValueError, TypeError):
# Expected exceptions from `_decode_with_registry`...
# Try more things?
pass
# ---
# Mapping?
# ---
if isinstance(data, dict):
self._log_data_processing(
self.dotted,
"decode: Attempting to decode mapping...\n"
" map_expected: {}\n"
" data: {}",
map_expected,
data)
# Decode via our map helper.
decoded = self.decode_map(data, expected=map_expected)
self._log_data_processing(
self.dotted,
"decode: Decoded mapping returned:\n"
" decoded: {}",
decoded)
return self._decode_finalize(decoded)
# ---
# Something Basic?
# ---
try:
self._log_data_processing(
self.dotted,
"decode: Attempting to decode basic data type...\n"
" data: {}",
data)
decoded = self._decode_basic_types(data)
self._log_data_processing(
self.dotted,
"decode: Decoded basic data to:\n"
" decoded: {}",
decoded)
return self._decode_finalize(decoded)
except EncodableError:
# Not this either...
pass
# ---
# Ran out of options... Return fallback or error out.
# ---
if fallback:
self._log_data_processing(
self.dotted,
"decode: No decoding known for data; returning fallback:\n"
" fallback: {}",
fallback)
return self._decode_finalize(fallback)
msg = (f"{self.klass}.decode: unknown "
f"type of data {type(data)}. Cannot decode.")
error = EncodableError(msg,
data={
'target': target,
'data': data,
'error_squelch': error_squelch,
'reg_find_dotted': reg_find_dotted,
'reg_find_types': reg_find_types,
'fallback': fallback,
})
raise self._log_exception(error, msg)
def _decode_encodable(self,
target: Optional[Type[Encodable]],
data: EncodedEither,
) -> Union[Encodable,
enum.EnumEncode,
None]:
'''
Decode simple or complex `data` input, using it to build an
instance of the `target` class.
If `target` is known, it is used to decode and return a new
`target` instance or None.
'''
self._log_data_processing(
self.dotted,
"_decode_encodable will be decoding data to target '{}'.\n"
" data: {}",
target,
data)
# ---
# Wrong data for target?
# ---
target = self._decode_enum_check(target)
target.error_for_claim(data)
# ---
# Decode it.
# ---
encoding, decoded = target.decode(data, self, None)
self._log_data_processing(
self.dotted,
"_decode_encodable decoded target '{}' to: {}",
target,
decoded)
if enum.needs_unwrapped(decoded):
self._log_data_processing(
self.dotted,
"_decode_encodable unwrapped decoded EnumWrap "
"'{}' to: {} {}",
decoded,
type(decoded.enum),
decoded.enum)
decoded = decoded.enum
# Right now, same from here on for SIMPLE vs COMPLEX.
# Keeping split up for parity with `_encode_encodable`, clarity,
# and such.
# ---
# Decode Simply?
# ---
if encoding == Encoding.SIMPLE:
self._log_data_processing(
self.dotted,
"_decode_encodable {} decoding completed.\n"
" type(): {}\n"
" decoded: {}",
encoding,
type(decoded),
decoded)
return decoded
# ---
# Decode Complexly?
# ---
self._log_data_processing(
self.dotted,
"_decode_encodable {} decoding completed.\n"
" type(): {}\n"
" decoded: {}",
encoding,
type(decoded),
decoded)
return decoded
def _decode_simple(self,
data: EncodedSimple,
data_type: Optional[Type[Encodable]]
) -> Optional[Encodable]:
'''
Input data must be a string.
Will look for an Encodable that can claim the simple encoding, and then
use that to decode it if found.
Will return None if no Encodable target is found.
'''
self._log_data_processing(self.dotted,
"_decode_simple:\n"
" data_type: {}\n"
" data: {}",
data_type, data)
if not data:
self._log_data_processing(self.dotted,
"_decode_simple:\n"
" no data; returning None")
return None
target = registrar.codec.simple(data,
data_type=data_type)
if not target:
self._log_data_processing(self.dotted,
"_decode_simple: "
"codec.simple() found no target for:\n"
" data_type: {}\n"
" data: {}",
data_type, data)
return None
self._log_data_processing(self.dotted,
"_decode_simple: "
"codec.simple() found target {}; "
"decoding...",
target)
return self._decode_encodable(target, data)
def _decode_with_registry(self,
data: EncodedComplex,
dotted: Optional[str] = None,
data_types: Optional[Type[Encodable]] = None,
error_squelch: bool = False,
fallback: Optional[Type[Encodable]] = None,
) -> Optional[Encodable]:
'''
Input `data` must have keys:
- Encodable.ENCODABLE_REG_FIELD
- Encodable.ENCODABLE_PAYLOAD_FIELD
Raises KeyError if not present.
Takes EncodedComplex `data` input, and uses
`Encodable.ENCODABLE_REG_FIELD` key to find registered Encodable to
decode `data[Encodable.ENCODABLE_PAYLOAD_FIELD]`.
All the keyword args are forwarded to EncodableRegistry.get() (e.g.
'data_types').
Return a new `target` instance.
'''
# ------------------------------
# Fallback early.
# ------------------------------
if data is None:
# No data at all. Use either fallback or None.
if fallback:
self._log_data_processing(
self.dotted,
"decode_with_registry: data is None; using "
"fallback.\n"
" data: {}\n"
" fallback:\n"
"{}",
data,
log.format_pretty(fallback, prefix=' '))
return fallback
# `None` is an acceptable enough value for us... Lots of things are
# optional. Errors for unexpectedly None things should happen in
# the caller.
self._log_data_processing(
self.dotted,
"decode_with_registry: data is None; no "
"fallback. Returning None.",
data, fallback)
return None
self._log_data_processing(
self.dotted,
"decode_with_registry: Decoding...\n"
" dotted: {}\n"
" data_types: {}\n"
" error_squelch: {}\n"
" data:\n{}\n"
" fallback:\n{}\n",
dotted,
data_types,
error_squelch,
log.format_pretty(data, prefix=' '),
log.format_pretty(fallback, prefix=' '))
# When no ENCODABLE_REG_FIELD, we can't do anything since we don't
# know how to decode. But only deal with fallback case here. If they
# don't have a fallback, let it error soon (but not here).
if (fallback
and Encodable.ENCODABLE_REG_FIELD not in data):
# No hint as to what data is - use fallback.
self._log_data_processing(
self.dotted,
"decode_with_registry: No {} in data; using fallback. "
"data: {}, fallback: {}",
Encodable.ENCODABLE_REG_FIELD,
data, fallback,
log_minimum=log.Level.WARNING)
return fallback
# ------------------------------
# Better KeyError exceptions.
# ------------------------------
if not dotted:
try:
dotted = data[Encodable.ENCODABLE_REG_FIELD]
self._log_data_processing(
self.dotted,
"decode_with_registry: No 'dotted' provided; "
"got dotted from data: {}",
dotted)
except KeyError:
# Error on the missing decoding hint.
self._log_data_processing(
self.dotted,
"decode_with_registry: No 'dotted' provided "
"and none in data!")
# Don't `self._log_exception()`... exceptions expected.
raise KeyError(Encodable.ENCODABLE_REG_FIELD,
("decode_with_registry: data has no "
f"'{Encodable.ENCODABLE_REG_FIELD}' key."),
data)
except TypeError:
# Error on the missing decoding hint.
self._log_data_processing(
self.dotted,
"decode_with_registry: No 'dotted' provided. "
"...and data is not a dict type?\n"
" type: {}",
type(data))
# Don't `self._log_exception()`... exceptions expected.
raise TypeError(Encodable.ENCODABLE_REG_FIELD,
("decode_with_registry: data is not dict "
"type? Cannot check for "
f"'{Encodable.ENCODABLE_REG_FIELD}' key."),
data)
try:
encoded_data = data[Encodable.ENCODABLE_PAYLOAD_FIELD]
self._log_data_processing(
self.dotted,
"decode_with_registry: Pulled encoded data field from data.\n"
" encoded_data: {}",
encoded_data)
except KeyError:
self._log_data_processing(
self.dotted,
"decode_with_registry: No payload in encoded_data?\n"
" payload field name: {}\n"
" encoded_data: {}",
Encodable.ENCODABLE_PAYLOAD_FIELD,
encoded_data)
# Don't `self._log_exception()`... exceptions expected.
raise KeyError(Encodable.ENCODABLE_PAYLOAD_FIELD,
("decode_with_registry: data has no "
f"'{Encodable.ENCODABLE_PAYLOAD_FIELD}' key. "
"Cannot decode data.."),
data)
except TypeError:
self._log_data_processing(
self.dotted,
"decode_with_registry: ...encoded_data is not a dict type?\n"
" type: {}"
" encoded_data: {}",
type(encoded_data),
encoded_data)
# Don't `self._log_exception()`... exceptions expected.
raise KeyError(Encodable.ENCODABLE_PAYLOAD_FIELD,
("decode_with_registry: data is not dict type? "
f"Cannot find '{Encodable.ENCODABLE_PAYLOAD_FIELD}' "
"key."),
data)
# ------------------------------
# Now decode it.
# ------------------------------
self._log_data_processing(
self.dotted,
"decode_with_registry: Checking registrar for:"
" dotted: {}\n"
" data_type: {}\n"
" encoded_data: {}",
dotted,
data_types,
encoded_data)
target = registrar.codec.get(encoded_data,
dotted=dotted,
data_type=data_types,
error_squelch=error_squelch,
fallback=fallback)
self._log_data_processing(
self.dotted,
"decode_with_registry: registrar returned target: {}",
target)
decoded = self._decode_encodable(target, data)
return decoded
def decode_map(self,
mapping: NullNoneOr[Mapping],
expected: Iterable[Type[Encodable]] = None
) -> Mapping[str, Any]:
'''
Decode a mapping.
'''
if null_or_none(mapping):
self._log_data_processing(
self.dotted,
"decode_map: Cannot decode nothing.\n"
" expecting: {}\n"
" mapping: {}",
expected,
log.format_pretty(mapping,
prefix=' '))
return None
self._log_data_processing(
self.dotted,
"decode_map: Decoding...\n"
" expecting: {}\n"
"{}",
expected,
log.format_pretty(mapping,
prefix=' '))
# ---
# Decode the Base Level
# ---
decoded = {}
for key, value in mapping.items():
field = self._decode_key(key, expected)
node = self._decode_value(value, expected)
decoded[field] = node
self._log_data_processing(
self.dotted,
"decode_map: Decoded to:\n"
" decoded: {}",
decoded)
return decoded
def _decode_key(self,
key: Any,
expected: Iterable[Type[Encodable]] = None) -> str:
'''
Decode a mapping's key.
Encodable is pretty stupid. string is only supported type. Override or
smart-ify if you need support for more key types.
'''
self._log_data_processing(
self.dotted,
"decode_key:\n"
" expecting: {}\n"
" key: {}",
expected,
key)
field = None
# Can we decode to a specified Encodable?
if expected:
for encodable in expected:
encodable = self._decode_enum_check(encodable)
# Does this encodable want the key?
claiming, claim, _ = encodable.claim(key)
if not claiming:
continue
self._log_data_processing(
self.dotted,
"decode_key:\n"
" Found expected to use as target: {}",
encodable)
# Yeah - get it to decode it then.
field = self.decode(encodable, claim,
map_expected=expected)
self._log_data_processing(
self.dotted,
"decode_key:\n"
" Decoded key to: {}",
field)
# And we are done; give the decoded field back.
return field
# Not an Encodable (or none supplied as expected). Not sure what to do
# past here, really... Use the string or error, and let the next guy
# along update it (hello Future Me, probably).
if isinstance(key, str):
field = key
self._log_data_processing(
self.dotted,
"decode_key:\n"
" Key is string; use as-is: {}",
field)
else:
self._log_data_processing(
self.dotted,
"decode_key:\n"
" Key is un-decodable?\n"
" type: {}\n"
" key: {}",
type(key),
key)
raise EncodableError(f"Don't know how to decode key: {key}",
None,
data={
'key': key,
'expected': expected,
})
return field
def _decode_value(self,
value: Any,
expected: Iterable[Type[Encodable]] = None
) -> str:
'''
Decode a mapping's value.
Passes `expected` along for continuing the decoding.
'''
self._log_data_processing(
self.dotted,
"decode_value:\n"
" Decoding...\n"
" expecting: {}\n"
" value: {}",
expected,
value)
node = self.decode(None, value,
map_expected=expected)
self._log_data_processing(
self.dotted,
"decode_value:\n"
" Decoded value to:\n"
" {}",
node)
return node
def _decode_basic_types(self,
value: Union[datetime, str, int, float]
) -> SimpleTypes:
'''
'Decode' a basic type. Generally as itself.
Returns the simple type or raises an EncodableError.
'''
self._log_data_processing(
self.dotted,
"decode_basic_types:\n"
" Decoding...\n"
" type: {}\n"
" value: {}",
type(value),
value)
if time.deserialize_claim(value):
decoded = time.deserialize(value)
self._log_data_processing(
self.dotted,
"decode_basic_types:\n"
" Decoded via time."
" type: {}\n"
" decoded: {}",
type(decoded),
decoded)
return decoded
# Give numbers a shot at Decimals saved as strings before we deal with
# other kinds of strings.
try:
decoded = numbers.deserialize(value)
self._log_data_processing(
self.dotted,
"decode_basic_types:\n"
" Decoded via numbers."
" type: {}\n"
" decoded: {}",
type(decoded),
decoded)
return decoded
except Exception as error:
self._log_exception(
error,
"decode_basic_types:\n"
" `numbers.deserialize()` raised exception on:"
" type: {}\n"
" decoded: {}",
type(decoded),
decoded)
raise
if decoded:
return decoded
if isinstance(value, str):
decoded = value
self._log_data_processing(
self.dotted,
"decode_basic_types:\n"
" Is a string; return as-is."
" type: {}\n"
" decoded: '{}'",
type(decoded),
decoded)
return decoded
self._log_data_processing(
self.dotted,
"decode_basic_types:\n"
" Unknown/unclaimed value; erroring."
" type: {}\n"
" value: {}",
type(value),
value)
msg = (f"{self.klass}.decode_basic_types: "
f"'{type(value)}' is not a known 'basic' type "
"and cannot be decoded.")
error = EncodableError(msg, value)
raise self._log_exception(error, msg)
| [
"[email protected]"
] | |
19c5bac30dc1812153c6ada47917d8a1ad43f1cf | a4cfe8b47d3da97d335b210994fe03f8aa5b2f77 | /vint/linting/config/config_project_source.py | 0869f9ee8a02f71819a20b3062f265425bec19e2 | [
"MIT"
] | permissive | blueyed/vint | e6e7bbbf43a7b337f60d05d768d424fe400d40d8 | 9ae019d6e7863a4c9634faa39b9b75111dd2ad36 | refs/heads/master | 2021-01-13T16:40:04.962921 | 2016-12-22T12:00:45 | 2016-12-22T12:00:45 | 78,246,540 | 0 | 0 | null | 2017-01-06T23:28:35 | 2017-01-06T23:28:35 | null | UTF-8 | Python | false | false | 805 | py | from pathlib import Path
from vint.asset import get_asset_path
from vint.linting.config.config_file_source import ConfigFileSource
PROJECT_CONFIG_FILENAMES = [
'.vintrc.yaml',
'.vintrc.yml',
'.vintrc',
]
VOID_CONFIG_PATH = get_asset_path('void_config.yaml')
class ConfigProjectSource(ConfigFileSource):
def get_file_path(self, env):
proj_conf_path = VOID_CONFIG_PATH
path_list_to_search = [Path(env['cwd'])] + list(Path(env['cwd']).parents)
for project_path in path_list_to_search:
for basename in PROJECT_CONFIG_FILENAMES:
proj_conf_path_tmp = project_path / basename
if proj_conf_path_tmp.is_file():
proj_conf_path = proj_conf_path_tmp
break
return proj_conf_path
| [
"[email protected]"
] | |
c1aaf2884f69b654897f07ef3bb94e0e6ac0e31c | 5f5d8a7d1461ff85d2282bba77d137980c43cb7c | /NAS/single-path-one-shot/src/cifar100/train_fair_way.py | 7af80218d80035a0310d2676809a43aef7db8624 | [
"Apache-2.0"
] | permissive | ahai-code/SimpleCVReproduction | 268d92667ea55e42b8a8f3c9972c486bb32766a2 | 00bdce21e9048d82b836b64ac05c99713e90e056 | refs/heads/master | 2023-04-15T00:31:24.495143 | 2021-04-11T01:03:46 | 2021-04-11T01:03:46 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,849 | py | import argparse
import copy
import functools
import os
import pickle
import random
import shutil
import sys
import time
import numpy as np
import torch
import torch.backends.cudnn as cudnn
import torch.nn as nn
import torch.optim as optim
from torch import nn
from torch.autograd import Variable
from torch.optim import lr_scheduler
from torch.utils.tensorboard import SummaryWriter
from datasets.cifar100_dataset import get_train_loader, get_val_loader
from model.slimmable_resnet20 import mutableResNet20
from utils.utils import (ArchLoader, AvgrageMeter, CrossEntropyLabelSmooth,
DataIterator, accuracy, bn_calibration_init,
reduce_tensor, save_checkpoint)
print = functools.partial(print, flush=True)
CIFAR100_TRAINING_SET_SIZE = 50000
CIFAR100_TEST_SET_SIZE = 10000
parser = argparse.ArgumentParser("ImageNet")
parser.add_argument('--local_rank', type=int, default=None,
help='local rank for distributed training')
parser.add_argument('--batch_size', type=int, default=16384, help='batch size')
parser.add_argument('--learning_rate', type=float,
default=0.894, help='init learning rate')
parser.add_argument('--num_workers', type=int,
default=6, help='num of workers')
# hyper parameter
parser.add_argument('--momentum', type=float, default=0.9, help='momentum')
parser.add_argument('--weight_decay', type=float,
default=4e-5, help='weight decay')
parser.add_argument('--report_freq', type=float,
default=100, help='report frequency')
parser.add_argument('--gpu', type=int, default=0, help='gpu device id')
parser.add_argument('--epochs', type=int, default=30000,
help='num of training epochs')
parser.add_argument('--total_iters', type=int,
default=300000, help='total iters')
parser.add_argument('--classes', type=int, default=100,
help='number of classes')
parser.add_argument('--seed', type=int, default=0, help='random seed')
parser.add_argument('--grad_clip', type=float,
default=5, help='gradient clipping')
parser.add_argument('--label_smooth', type=float,
default=0.1, help='label smoothing')
args = parser.parse_args()
per_epoch_iters = CIFAR100_TRAINING_SET_SIZE // args.batch_size
val_iters = CIFAR100_TEST_SET_SIZE // 200
def main():
if not torch.cuda.is_available():
print('no gpu device available')
sys.exit(1)
writer = None
num_gpus = torch.cuda.device_count()
np.random.seed(args.seed)
args.gpu = args.local_rank % num_gpus
torch.cuda.set_device(args.gpu)
cudnn.benchmark = True
cudnn.deterministic = True
torch.manual_seed(args.seed)
cudnn.enabled = True
torch.cuda.manual_seed(args.seed)
print('gpu device = %d' % args.gpu)
print("args = %s", args)
torch.distributed.init_process_group(
backend='nccl', init_method='env://')
args.world_size = torch.distributed.get_world_size()
args.batch_size = args.batch_size // args.world_size
criterion_smooth = CrossEntropyLabelSmooth(args.classes, args.label_smooth)
criterion_smooth = criterion_smooth.cuda()
model = mutableResNet20()
model = model.cuda(args.gpu)
model = torch.nn.parallel.DistributedDataParallel(
model, device_ids=[args.local_rank], output_device=args.local_rank, find_unused_parameters=True)
# all_parameters = model.parameters()
# weight_parameters = []
# for pname, p in model.named_parameters():
# if p.ndimension() == 4 or 'classifier.0.weight' in pname or 'classifier.0.bias' in pname:
# weight_parameters.append(p)
# weight_parameters_id = list(map(id, weight_parameters))
# other_parameters = list(
# filter(lambda p: id(p) not in weight_parameters_id, all_parameters))
# optimizer = torch.optim.SGD(
# [{'params': other_parameters},
# {'params': weight_parameters, 'weight_decay': args.weight_decay}],
# args.learning_rate,
# momentum=args.momentum,
# )
optimizer = torch.optim.SGD(model.parameters(),
lr=args.learning_rate,
momentum=args.momentum,
weight_decay=args.weight_decay)
args.total_iters = args.epochs * per_epoch_iters # // 16 # 16 代表是每个子网的个数
scheduler = torch.optim.lr_scheduler.LambdaLR(
optimizer, lambda step: (1.0-step/args.total_iters), last_epoch=-1)
if args.local_rank == 0:
writer = SummaryWriter("./runs/%s-%05d" %
(time.strftime("%m-%d", time.localtime()), random.randint(0, 100)))
# Prepare data
train_loader = get_train_loader(
args.batch_size, args.local_rank, args.num_workers, args.total_iters)
train_dataprovider = DataIterator(train_loader)
val_loader = get_val_loader(args.batch_size, args.num_workers)
val_dataprovider = DataIterator(val_loader)
archloader = ArchLoader("data/Track1_final_archs.json")
train(train_dataprovider, val_dataprovider, optimizer, scheduler,
model, archloader, criterion_smooth, args, val_iters, args.seed, writer)
def train(train_dataprovider, val_dataprovider, optimizer, scheduler, model, archloader, criterion, args, val_iters, seed, writer=None):
objs, top1 = AvgrageMeter(), AvgrageMeter()
for p in model.parameters():
p.grad = torch.zeros_like(p)
for step in range(args.total_iters):
model.train()
t0 = time.time()
image, target = train_dataprovider.next()
datatime = time.time() - t0
n = image.size(0)
optimizer.zero_grad()
image = Variable(image, requires_grad=False).cuda(args.gpu)
target = Variable(target, requires_grad=False).cuda(args.gpu)
# Fair Sampling
fair_arc_list = archloader.generate_niu_fair_batch()
for ii, arc in enumerate(fair_arc_list):
logits = model(image, archloader.convert_list_arc_str(arc))
loss = criterion(logits, target)
loss_reduce = reduce_tensor(loss, 0, args.world_size)
loss.backward()
nn.utils.clip_grad_value_(model.parameters(), args.grad_clip)
optimizer.step()
scheduler.step()
prec1, _ = accuracy(logits, target, topk=(1, 5))
objs.update(loss_reduce.data.item(), n)
top1.update(prec1.data.item(), n)
if step % args.report_freq == 0 and args.local_rank == 0:
now = time.strftime('%Y-%m-%d %H:%M:%S',
time.localtime(time.time()))
print('{} |=> train: {} / {}, lr={}, loss={:.2f}, acc={:.2f}, datatime={:.2f}, seed={}'
.format(now, step, args.total_iters, scheduler.get_lr()[0], objs.avg, top1.avg, float(datatime), seed))
if args.local_rank == 0 and step % 5 == 0 and writer is not None:
writer.add_scalar("Train/loss", objs.avg, step)
writer.add_scalar("Train/acc1", top1.avg, step)
if args.local_rank == 0 and step % args.report_freq == 0:
top1_val, objs_val = infer(val_dataprovider, model.module, criterion,
fair_arc_list, val_iters, archloader)
if writer is not None:
writer.add_scalar("Val/loss", objs_val, step)
writer.add_scalar("Val/acc1", top1_val, step)
save_checkpoint({'state_dict': model.state_dict(),}, step)
def infer(val_dataprovider, model, criterion, fair_arc_list, val_iters, archloader):
objs = AvgrageMeter()
top1 = AvgrageMeter()
model.eval()
now = time.strftime('%Y-%m-%d %H:%M:%S', time.localtime(time.time()))
print('{} |=> Test rng = {}'.format(now, fair_arc_list[0]))
with torch.no_grad():
for step in range(val_iters):
t0 = time.time()
image, target = val_dataprovider.next()
datatime = time.time() - t0
image = Variable(image, requires_grad=False).cuda()
target = Variable(target, requires_grad=False).cuda()
logits = model(
image, archloader.convert_list_arc_str(fair_arc_list[0]))
loss = criterion(logits, target)
prec1, _ = accuracy(logits, target, topk=(1, 5))
n = image.size(0)
objs.update(loss.data.item(), n)
top1.update(prec1.data.item(), n)
now = time.strftime('%Y-%m-%d %H:%M:%S',
time.localtime(time.time()))
print('{} |=> valid: step={}, loss={:.2f}, acc={:.2f}, datatime={:.2f}'.format(
now, step, objs.avg, top1.avg, datatime))
return top1.avg, objs.avg
if __name__ == '__main__':
main()
| [
"[email protected]"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.