hexsha
string | size
int64 | ext
string | lang
string | max_stars_repo_path
string | max_stars_repo_name
string | max_stars_repo_head_hexsha
string | max_stars_repo_licenses
list | max_stars_count
int64 | max_stars_repo_stars_event_min_datetime
string | max_stars_repo_stars_event_max_datetime
string | max_issues_repo_path
string | max_issues_repo_name
string | max_issues_repo_head_hexsha
string | max_issues_repo_licenses
list | max_issues_count
int64 | max_issues_repo_issues_event_min_datetime
string | max_issues_repo_issues_event_max_datetime
string | max_forks_repo_path
string | max_forks_repo_name
string | max_forks_repo_head_hexsha
string | max_forks_repo_licenses
list | max_forks_count
int64 | max_forks_repo_forks_event_min_datetime
string | max_forks_repo_forks_event_max_datetime
string | content
string | avg_line_length
float64 | max_line_length
int64 | alphanum_fraction
float64 | qsc_code_num_words_quality_signal
int64 | qsc_code_num_chars_quality_signal
float64 | qsc_code_mean_word_length_quality_signal
float64 | qsc_code_frac_words_unique_quality_signal
float64 | qsc_code_frac_chars_top_2grams_quality_signal
float64 | qsc_code_frac_chars_top_3grams_quality_signal
float64 | qsc_code_frac_chars_top_4grams_quality_signal
float64 | qsc_code_frac_chars_dupe_5grams_quality_signal
float64 | qsc_code_frac_chars_dupe_6grams_quality_signal
float64 | qsc_code_frac_chars_dupe_7grams_quality_signal
float64 | qsc_code_frac_chars_dupe_8grams_quality_signal
float64 | qsc_code_frac_chars_dupe_9grams_quality_signal
float64 | qsc_code_frac_chars_dupe_10grams_quality_signal
float64 | qsc_code_frac_chars_replacement_symbols_quality_signal
float64 | qsc_code_frac_chars_digital_quality_signal
float64 | qsc_code_frac_chars_whitespace_quality_signal
float64 | qsc_code_size_file_byte_quality_signal
float64 | qsc_code_num_lines_quality_signal
float64 | qsc_code_num_chars_line_max_quality_signal
float64 | qsc_code_num_chars_line_mean_quality_signal
float64 | qsc_code_frac_chars_alphabet_quality_signal
float64 | qsc_code_frac_chars_comments_quality_signal
float64 | qsc_code_cate_xml_start_quality_signal
float64 | qsc_code_frac_lines_dupe_lines_quality_signal
float64 | qsc_code_cate_autogen_quality_signal
float64 | qsc_code_frac_lines_long_string_quality_signal
float64 | qsc_code_frac_chars_string_length_quality_signal
float64 | qsc_code_frac_chars_long_word_length_quality_signal
float64 | qsc_code_frac_lines_string_concat_quality_signal
float64 | qsc_code_cate_encoded_data_quality_signal
float64 | qsc_code_frac_chars_hex_words_quality_signal
float64 | qsc_code_frac_lines_prompt_comments_quality_signal
float64 | qsc_code_frac_lines_assert_quality_signal
float64 | qsc_codepython_cate_ast_quality_signal
float64 | qsc_codepython_frac_lines_func_ratio_quality_signal
float64 | qsc_codepython_cate_var_zero_quality_signal
bool | qsc_codepython_frac_lines_pass_quality_signal
float64 | qsc_codepython_frac_lines_import_quality_signal
float64 | qsc_codepython_frac_lines_simplefunc_quality_signal
float64 | qsc_codepython_score_lines_no_logic_quality_signal
float64 | qsc_codepython_frac_lines_print_quality_signal
float64 | qsc_code_num_words
int64 | qsc_code_num_chars
int64 | qsc_code_mean_word_length
int64 | qsc_code_frac_words_unique
null | qsc_code_frac_chars_top_2grams
int64 | qsc_code_frac_chars_top_3grams
int64 | qsc_code_frac_chars_top_4grams
int64 | qsc_code_frac_chars_dupe_5grams
int64 | qsc_code_frac_chars_dupe_6grams
int64 | qsc_code_frac_chars_dupe_7grams
int64 | qsc_code_frac_chars_dupe_8grams
int64 | qsc_code_frac_chars_dupe_9grams
int64 | qsc_code_frac_chars_dupe_10grams
int64 | qsc_code_frac_chars_replacement_symbols
int64 | qsc_code_frac_chars_digital
int64 | qsc_code_frac_chars_whitespace
int64 | qsc_code_size_file_byte
int64 | qsc_code_num_lines
int64 | qsc_code_num_chars_line_max
int64 | qsc_code_num_chars_line_mean
int64 | qsc_code_frac_chars_alphabet
int64 | qsc_code_frac_chars_comments
int64 | qsc_code_cate_xml_start
int64 | qsc_code_frac_lines_dupe_lines
int64 | qsc_code_cate_autogen
int64 | qsc_code_frac_lines_long_string
int64 | qsc_code_frac_chars_string_length
int64 | qsc_code_frac_chars_long_word_length
int64 | qsc_code_frac_lines_string_concat
null | qsc_code_cate_encoded_data
int64 | qsc_code_frac_chars_hex_words
int64 | qsc_code_frac_lines_prompt_comments
int64 | qsc_code_frac_lines_assert
int64 | qsc_codepython_cate_ast
int64 | qsc_codepython_frac_lines_func_ratio
int64 | qsc_codepython_cate_var_zero
int64 | qsc_codepython_frac_lines_pass
int64 | qsc_codepython_frac_lines_import
int64 | qsc_codepython_frac_lines_simplefunc
int64 | qsc_codepython_score_lines_no_logic
int64 | qsc_codepython_frac_lines_print
int64 | effective
string | hits
int64 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
d5f96bcceb11840f7a9f135acb4e9650425403c4
| 27,365
|
py
|
Python
|
tests/apps/courses/test_admin_course_run.py
|
kbneedscoffee/richie
|
b1961a9404eb83212e5845abffd645f86b22350e
|
[
"MIT"
] | null | null | null |
tests/apps/courses/test_admin_course_run.py
|
kbneedscoffee/richie
|
b1961a9404eb83212e5845abffd645f86b22350e
|
[
"MIT"
] | null | null | null |
tests/apps/courses/test_admin_course_run.py
|
kbneedscoffee/richie
|
b1961a9404eb83212e5845abffd645f86b22350e
|
[
"MIT"
] | null | null | null |
"""
Test suite defining the admin pages for the CourseRun model
"""
import random
from datetime import datetime
from django.test.utils import override_settings
from django.urls import reverse
from django.utils import timezone
import pytz
from cms.models import GlobalPagePermission, PagePermission
from cms.test_utils.testcases import CMSTestCase
from richie.apps.core.factories import UserFactory
from richie.apps.courses.factories import CourseFactory, CourseRunFactory
from richie.apps.courses.models import Course, CourseRun
# pylint: disable=too-many-public-methods
class CourseRunAdminTestCase(CMSTestCase):
"""
Integration test suite to validate the behavior of admin pages for the CourseRun model
"""
def test_admin_course_run_index(self):
"""
Course runs should not be listed on the index and should be handled via frontend editing.
"""
user = UserFactory(is_staff=True, is_superuser=True)
self.client.login(username=user.username, password="password")
# Get the admin index view
url = reverse("admin:index")
response = self.client.get(url, follow=True)
self.assertEqual(response.status_code, 200)
# Check that there is no link to the course run list view
course_run_url = reverse("admin:courses_courserun_changelist")
self.assertNotContains(response, course_run_url)
def test_admin_course_run_add_view(self):
"""
The admin add view should work for course runs.
"""
user = UserFactory(is_staff=True, is_superuser=True)
self.client.login(username=user.username, password="password")
# Get the admin change view
url = reverse("admin:courses_courserun_add")
response = self.client.get(url, follow=True)
# Check that the page includes all our fields
self.assertContains(response, "id_title")
self.assertContains(response, "id_resource_link")
self.assertContains(response, "id_start_", count=3)
self.assertContains(response, "id_end_", count=3)
self.assertContains(response, "id_enrollment_start_", count=3)
self.assertContains(response, "id_enrollment_end_", count=3)
self.assertContains(response, "id_languages")
self.assertContains(response, "id_enrollment_count")
# List
def test_admin_course_run_list_view_anonymous(self):
"""
Anonymous users should not be allowed to access the change list view.
"""
CourseRunFactory()
# Get the admin list view
url = reverse("admin:courses_courserun_changelist")
response = self.client.get(url, follow=True)
# Check that the user is redirected to the login page
self.assertContains(
response, "<title>Log in | Django site admin</title>", html=True
)
def test_admin_course_run_list_view_superuser(self):
"""
The admin list view of course runs should only show the id field.
"""
user = UserFactory(is_staff=True, is_superuser=True)
self.client.login(username=user.username, password="password")
# Create a course run linked to a page
course = CourseFactory()
course_run = CourseRunFactory(direct_course=course)
course.extended_object.publish("en")
self.assertEqual(CourseRun.objects.count(), 2)
# Get the admin list view
url = reverse("admin:courses_courserun_changelist")
response = self.client.get(url, follow=True)
self.assertEqual(response.status_code, 200)
# Check that only the id field is displayed
self.assertContains(response, "field-id", 2)
self.assertContains(response, "field-", 2)
# Check that the page includes both course run
self.assertContains(
response, '<p class="paginator">2 course runs</p>', html=True
)
change_url_draft = reverse(
"admin:courses_courserun_change", args=[course_run.id]
)
self.assertContains(response, change_url_draft)
change_url_public = reverse(
"admin:courses_courserun_change", args=[course_run.public_course_run.id]
)
self.assertContains(response, change_url_public)
def test_admin_course_run_list_view_staff(self):
"""
On the course run change list view, staff users can see all draft course runs
whether they have related page permissions or not.
"""
user = UserFactory(is_staff=True)
self.client.login(username=user.username, password="password")
# Create course runs each linked to their page
course_run1 = CourseRunFactory()
course_run2 = CourseRunFactory()
# Create the required permissions only for the first course run
self.add_permission(user, "change_courserun")
self.add_permission(user, "change_page")
PagePermission.objects.create(
page=course_run1.direct_course.extended_object,
user=user,
can_add=False,
can_change=True,
can_delete=False,
can_publish=False,
can_move_page=False,
)
# Get the admin list view
url = reverse("admin:courses_courserun_changelist")
response = self.client.get(url, follow=True)
self.assertEqual(response.status_code, 200)
# Check that the page includes only the first course run
self.assertContains(
response, '<p class="paginator">2 course runs</p>', html=True
)
change_url1 = reverse("admin:courses_courserun_change", args=[course_run1.id])
self.assertContains(response, change_url1)
change_url2 = reverse("admin:courses_courserun_change", args=[course_run2.id])
self.assertContains(response, change_url2)
# Same if the CMS permissions are not activated
with override_settings(CMS_PERMISSION=False):
response = self.client.get(url, follow=True)
self.assertEqual(response.status_code, 200)
# Check that the page includes both course runs
self.assertContains(
response, '<p class="paginator">2 course runs</p>', html=True
)
change_url1 = reverse("admin:courses_courserun_change", args=[course_run1.id])
self.assertContains(response, change_url1)
change_url2 = reverse("admin:courses_courserun_change", args=[course_run2.id])
self.assertContains(response, change_url2)
# Get
def test_admin_course_run_change_view_get_anonymous(self):
"""
Anonymous users should not be allowed to view course runs via the admin.
"""
course_run = CourseRunFactory()
# Get the admin change view
url = reverse("admin:courses_courserun_change", args=[course_run.id])
response = self.client.get(url, follow=True)
# Check that the user is redirected to the login page
self.assertContains(
response, "<title>Log in | Django site admin</title>", html=True
)
def test_admin_course_run_change_view_get_superuser_draft(self):
"""
The admin change view should include the editable and readonly fields as expected.
In particular, the relation fields should only include options for related objects in
their draft version.
"""
user = UserFactory(is_staff=True, is_superuser=True)
self.client.login(username=user.username, password="password")
# Create a course run
course_run = CourseRunFactory()
# Get the admin change view
url = reverse("admin:courses_courserun_change", args=[course_run.id])
response = self.client.get(url)
# Check that the page includes the page title
self.assertContains(response, course_run.title, status_code=200)
# Check that the page includes all our fields
self.assertContains(response, "id_title", count=2)
self.assertContains(response, "id_resource_link", count=2)
self.assertContains(response, "id_start_", count=3)
self.assertContains(response, "id_end_", count=3)
self.assertContains(response, "id_enrollment_start_", count=3)
self.assertContains(response, "id_enrollment_end_", count=3)
self.assertContains(response, "id_languages", count=2)
self.assertContains(response, "id_enrollment_count", count=2)
def test_admin_course_run_change_view_get_superuser_public(self):
"""Public course runs should not render a change view."""
user = UserFactory(is_staff=True, is_superuser=True)
self.client.login(username=user.username, password="password")
# Create a public course run
course = CourseFactory()
CourseRunFactory(direct_course=course)
course.extended_object.publish("en")
self.assertEqual(CourseRun.objects.count(), 2)
public_course_run = CourseRun.objects.get(draft_course_run__isnull=False)
# Get the admin change view
url = reverse("admin:courses_courserun_change", args=[public_course_run.id])
response = self.client.get(url, follow=True)
self.assertEqual(response.status_code, 403)
def test_admin_course_run_change_view_get_staff_missing_model_permission(self):
"""
Staff users missing permissions should not be allowed to view a course run's change view.
"""
user = UserFactory(is_staff=True)
self.client.login(username=user.username, password="password")
course_run = CourseRunFactory()
# Create the required model permissions except one
missing = random.randint(0, 1)
if missing != 0:
self.add_permission(user, "change_courserun")
if missing != 1:
self.add_permission(user, "change_page")
# Create the object permission on the course page
PagePermission.objects.create(
page=course_run.direct_course.extended_object,
user=user,
can_add=False,
can_change=True,
can_delete=False,
can_publish=False,
can_move_page=False,
)
# Get the admin change view
url = reverse("admin:courses_courserun_change", args=[course_run.id])
response = self.client.get(url, follow=True)
self.assertEqual(response.status_code, 403)
def test_admin_course_run_change_view_get_staff_missing_object_permission(self):
"""
Staff users missing permissions should not be allowed to view a course run's change view.
"""
user = UserFactory(is_staff=True)
self.client.login(username=user.username, password="password")
course_run = CourseRunFactory()
# Create the required model permissions but not the page permission
self.add_permission(user, "change_courserun")
self.add_permission(user, "change_page")
# Get the admin change view
url = reverse("admin:courses_courserun_change", args=[course_run.id])
response = self.client.get(url, follow=True)
self.assertEqual(response.status_code, 403)
def test_admin_course_run_change_view_get_staff_all_permissions(self):
"""
Staff users with all permissions should allowed to view a course run's change view.
"""
user = UserFactory(is_staff=True)
self.client.login(username=user.username, password="password")
course_run = CourseRunFactory()
# Create the required permissions
self.add_permission(user, "change_courserun")
self.add_permission(user, "change_page")
PagePermission.objects.create(
page=course_run.direct_course.extended_object,
user=user,
can_add=False,
can_change=True,
can_delete=False,
can_publish=False,
can_move_page=False,
)
# Get the admin change view
url = reverse("admin:courses_courserun_change", args=[course_run.id])
response = self.client.get(url, follow=True)
# Check that the page includes the page title
self.assertContains(response, course_run.title, status_code=200)
# Check that the page includes all our fields
self.assertContains(response, "id_title", count=2)
self.assertContains(response, "id_resource_link", count=2)
self.assertContains(response, "id_start_", count=3)
self.assertContains(response, "id_end_", count=3)
self.assertContains(response, "id_enrollment_start_", count=3)
self.assertContains(response, "id_enrollment_end_", count=3)
self.assertContains(response, "id_languages", count=2)
self.assertContains(response, "id_enrollment_count", count=2)
# Add
def _prepare_add_view_post(self, course, status_code):
"""Helper method to test the add view."""
url = reverse("admin:courses_courserun_add")
data = {
"direct_course": course.id,
"title": "My title",
"languages": ["fr", "en"],
"resource_link": "https://example.com/my-resource-link",
"start_0": "2015-01-15",
"start_1": "07:06:15",
"end_0": "2015-01-30",
"end_1": "23:52:34",
"enrollment_start_0": "2015-01-02",
"enrollment_start_1": "13:13:07",
"enrollment_end_0": "2015-01-23",
"enrollment_end_1": "09:07:11",
"catalog_visibility": "course_and_search",
}
with timezone.override(pytz.utc):
response = self.client.post(url, data, follow=True)
self.assertEqual(response.status_code, status_code)
return response
def test_admin_course_run_add_view_post_anonymous(self):
"""
Anonymous users should not be allowed to add course runs via the admin.
"""
course = CourseFactory()
response = self._prepare_add_view_post(course, 200)
self.assertFalse(CourseRun.objects.exists())
self.assertContains(
response, "<title>Log in | Django site admin</title>", html=True
)
def test_admin_course_run_add_view_post_superuser_draft(self):
"""
Validate that the draft course run can be created via the admin.
"""
course = CourseFactory()
user = UserFactory(is_staff=True, is_superuser=True)
self.client.login(username=user.username, password="password")
response = self._prepare_add_view_post(course, 200)
self.assertTrue(CourseRun.objects.exists())
self.assertContains(response, "successful")
def test_admin_course_run_add_view_post_staff_user_missing_permission(self):
"""
Staff users with missing page permissions can not add a course run via the admin
unless CMS permissions are not activated.
"""
course = CourseFactory()
user = UserFactory(is_staff=True)
self.client.login(username=user.username, password="password")
# Add only model permissions, not page permission on the course page
self.add_permission(user, "add_courserun")
self.add_permission(user, "change_page")
response = self._prepare_add_view_post(course, 200)
self.assertContains(
response, "You do not have permission to change this course page."
)
self.assertFalse(CourseRun.objects.exists())
# But it should work if CMS permissions are not activated
with override_settings(CMS_PERMISSION=False):
self._prepare_add_view_post(course, 200)
self.assertTrue(CourseRun.objects.exists())
def test_admin_course_run_add_view_post_staff_user_page_permission(self):
"""Staff users with all necessary permissions can add a course run via the admin."""
course = CourseFactory()
user = UserFactory(is_staff=True)
self.client.login(username=user.username, password="password")
# Add all necessary model and object level permissions
self.add_permission(user, "add_courserun")
self.add_permission(user, "change_page")
PagePermission.objects.create(
page=course.extended_object,
user=user,
can_add=False,
can_change=True,
can_delete=False,
can_publish=False,
can_move_page=False,
)
response = self._prepare_add_view_post(course, 200)
self.assertTrue(CourseRun.objects.exists())
self.assertContains(response, "successful")
# Change
def _prepare_change_view_post(self, course_run, course, status_code, check_method):
"""Helper method to test the change view."""
url = reverse("admin:courses_courserun_change", args=[course_run.id])
data = {
"direct_course": course.id,
"title": "My title",
"languages": ["fr", "en"],
"resource_link": "https://example.com/my-resource-link",
"start_0": "2015-01-15",
"start_1": "07:06:15",
"end_0": "2015-01-30",
"end_1": "23:52:34",
"enrollment_start_0": "2015-01-02",
"enrollment_start_1": "13:13:07",
"enrollment_end_0": "2015-01-23",
"enrollment_end_1": "09:07:11",
"enrollment_count": "5",
"catalog_visibility": "course_and_search",
}
with timezone.override(pytz.utc):
response = self.client.post(url, data, follow=True)
self.assertEqual(response.status_code, status_code)
# Check that the course run was updated as expected
course_run.refresh_from_db()
check_method(course_run.direct_course, course)
check_method(course_run.title, "My title")
check_method(course_run.languages, ["fr", "en"])
check_method(course_run.resource_link, "https://example.com/my-resource-link")
check_method(course_run.start, datetime(2015, 1, 15, 7, 6, 15, tzinfo=pytz.utc))
check_method(course_run.end, datetime(2015, 1, 30, 23, 52, 34, tzinfo=pytz.utc))
check_method(
course_run.enrollment_start,
datetime(2015, 1, 2, 13, 13, 7, tzinfo=pytz.utc),
)
check_method(
course_run.enrollment_end, datetime(2015, 1, 23, 9, 7, 11, tzinfo=pytz.utc)
)
check_method(course_run.enrollment_count, 5)
return response
def test_admin_course_run_change_view_post_anonymous(self):
"""
Anonymous users should not be allowed to update course runs via the admin.
"""
course_run = CourseRunFactory()
snapshot = CourseFactory(page_parent=course_run.direct_course.extended_object)
response = self._prepare_change_view_post(
course_run, snapshot, 200, self.assertNotEqual
)
self.assertContains(
response, "<title>Log in | Django site admin</title>", html=True
)
def test_admin_course_run_change_view_post_superuser_draft(self):
"""
Validate that the draft course run can be updated via the admin.
"""
course_run = CourseRunFactory()
snapshot = CourseFactory(page_parent=course_run.direct_course.extended_object)
user = UserFactory(is_staff=True, is_superuser=True)
self.client.login(username=user.username, password="password")
self._prepare_change_view_post(course_run, snapshot, 200, self.assertEqual)
def test_admin_course_run_change_view_post_superuser_public(self):
"""
Validate that the public course run can not be updated via the admin.
"""
course_run = CourseRunFactory()
snapshot = CourseFactory(page_parent=course_run.direct_course.extended_object)
course_run.direct_course.extended_object.publish("en")
course_run.refresh_from_db()
user = UserFactory(is_staff=True, is_superuser=True)
self.client.login(username=user.username, password="password")
self._prepare_change_view_post(
course_run.public_course_run, snapshot, 403, self.assertNotEqual
)
def test_admin_course_run_change_view_post_staff_user_missing_permission(self):
"""
Staff users with missing page permissions can not update a course run via the admin
unless CMS permissions are not activated.
"""
course_run = CourseRunFactory()
snapshot = CourseFactory(page_parent=course_run.direct_course.extended_object)
user = UserFactory(is_staff=True)
self.client.login(username=user.username, password="password")
# Add only model permissions, not page permission on the course page
self.add_permission(user, "add_courserun")
self.add_permission(user, "change_courserun")
self.add_permission(user, "change_page")
self._prepare_change_view_post(course_run, snapshot, 403, self.assertNotEqual)
# But it should work if CMS permissions are not activated
with override_settings(CMS_PERMISSION=False):
self._prepare_change_view_post(course_run, snapshot, 200, self.assertEqual)
def test_admin_course_run_change_view_post_staff_user_page_permission(self):
"""Staff users with all necessary permissions can update a course run via the admin."""
course_run = CourseRunFactory()
snapshot = CourseFactory(page_parent=course_run.direct_course.extended_object)
user = UserFactory(is_staff=True)
self.client.login(username=user.username, password="password")
# Add all necessary model and object level permissions
self.add_permission(user, "add_courserun")
self.add_permission(user, "change_courserun")
self.add_permission(user, "change_page")
PagePermission.objects.create(
page=course_run.direct_course.extended_object,
user=user,
can_add=False,
can_change=True,
can_delete=False,
can_publish=False,
can_move_page=False,
)
self._prepare_change_view_post(course_run, snapshot, 200, self.assertEqual)
def test_admin_course_run_change_view_post_staff_user_global_page_permission(self):
"""
Staff users missing page permissions can still update the course run if the
global permissions allow it.
"""
course_run = CourseRunFactory()
snapshot = CourseFactory(page_parent=course_run.direct_course.extended_object)
user = UserFactory(is_staff=True)
self.client.login(username=user.username, password="password")
# Add all necessary model and object level permissions
self.add_permission(user, "add_courserun")
self.add_permission(user, "change_courserun")
self.add_permission(user, "change_page")
GlobalPagePermission.objects.create(
user=user,
can_add=False,
can_change=True,
can_delete=False,
can_publish=False,
can_move_page=False,
)
self._prepare_change_view_post(course_run, snapshot, 200, self.assertEqual)
# Delete
def _prepare_delete(self, course_run, status_code, check_method):
"""Helper method to test the delete view."""
url = reverse("admin:courses_courserun_delete", args=[course_run.id])
response = self.client.post(url, {"post": "yes"}, follow=True)
self.assertEqual(response.status_code, status_code)
# Check whether the course run was deleted
check_method(CourseRun.objects.filter(id=course_run.id).exists())
return response
def test_admin_course_run_delete_anonymous(self):
"""
Anonymous users should not be allowed to delete course runs via the admin.
"""
course_run = CourseRunFactory()
response = self._prepare_delete(course_run, 200, self.assertTrue)
# Anonymous users are redirected to the login form
self.assertContains(
response, "<title>Log in | Django site admin</title>", html=True
)
def test_admin_course_run_delete_superuser_draft(self):
"""
Validate that the draft course run can be deleted via the admin and that
it deletes the associated public course run.
"""
course_run = CourseRunFactory()
course_run.direct_course.extended_object.publish("en")
course_run.refresh_from_db()
self.assertEqual(CourseRun.objects.count(), 2)
user = UserFactory(is_staff=True, is_superuser=True)
self.client.login(username=user.username, password="password")
response = self._prepare_delete(course_run, 200, self.assertFalse)
self.assertEqual(Course.objects.count(), 2)
self.assertContains(response, "was deleted successfully")
def test_admin_course_run_delete_superuser_public(self):
"""
Validate that the public course run can not be deleted via the admin.
"""
course_run = CourseRunFactory()
course_run.direct_course.extended_object.publish("en")
course_run.refresh_from_db()
user = UserFactory(is_staff=True, is_superuser=True)
self.client.login(username=user.username, password="password")
self._prepare_delete(course_run.public_course_run, 200, self.assertFalse)
def test_admin_course_run_delete_staff_user_missing_permission(self):
"""
Staff users with missing page permissions can not delete a course run via the admin
unless CMS permissions are not activated.
"""
course_run = CourseRunFactory()
user = UserFactory(is_staff=True)
self.client.login(username=user.username, password="password")
# Add only model permissions, not page permission on the course page
self.add_permission(user, "delete_courserun")
self.add_permission(user, "change_page")
self._prepare_delete(course_run, 403, self.assertTrue)
# But it should work if CMS permissions are not activated
with override_settings(CMS_PERMISSION=False):
self._prepare_delete(course_run, 200, self.assertFalse)
# The course object should not be deleted
self.assertEqual(Course.objects.count(), 1)
def test_admin_course_run_delete_staff_user_page_permission(self):
"""Staff users with all necessary permissions can delete a course run via the admin."""
course_run = CourseRunFactory()
course_run.direct_course.extended_object.publish("en")
course_run.refresh_from_db()
user = UserFactory(is_staff=True)
self.client.login(username=user.username, password="password")
# Add all necessary model and object level permissions
self.add_permission(user, "delete_courserun")
self.add_permission(user, "change_page")
PagePermission.objects.create(
page=course_run.direct_course.extended_object,
user=user,
can_add=False,
can_change=True,
can_delete=False,
can_publish=False,
can_move_page=False,
)
self._prepare_delete(course_run, 200, self.assertFalse)
| 39.890671
| 97
| 0.665704
| 3,303
| 27,365
| 5.295489
| 0.073872
| 0.067921
| 0.068378
| 0.026757
| 0.85181
| 0.823738
| 0.798525
| 0.776514
| 0.740952
| 0.711051
| 0
| 0.014788
| 0.243815
| 27,365
| 685
| 98
| 39.948905
| 0.830474
| 0.171131
| 0
| 0.709524
| 0
| 0
| 0.115217
| 0.027725
| 0
| 0
| 0
| 0
| 0.190476
| 1
| 0.069048
| false
| 0.05
| 0.02619
| 0
| 0.104762
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
912372eb088cc17dc973afdbdb8da3aac72f8928
| 27,242
|
py
|
Python
|
tests/v2/test_1240-v2-implementation-of-numba-1.py
|
douglasdavis/awkward-1.0
|
f00775803a5568efb0a8e2dae3b1a4f23228fa40
|
[
"BSD-3-Clause"
] | 2
|
2019-09-12T03:07:23.000Z
|
2019-09-27T05:32:07.000Z
|
tests/v2/test_1240-v2-implementation-of-numba-1.py
|
douglasdavis/awkward-1.0
|
f00775803a5568efb0a8e2dae3b1a4f23228fa40
|
[
"BSD-3-Clause"
] | 1
|
2019-09-26T17:57:45.000Z
|
2019-09-26T17:57:45.000Z
|
tests/v2/test_1240-v2-implementation-of-numba-1.py
|
douglasdavis/awkward-1.0
|
f00775803a5568efb0a8e2dae3b1a4f23228fa40
|
[
"BSD-3-Clause"
] | null | null | null |
# BSD 3-Clause License; see https://github.com/scikit-hep/awkward-1.0/blob/main/LICENSE
import sys
import pytest # noqa: F401
import numpy as np # noqa: F401
import awkward as ak # noqa: F401
numba = pytest.importorskip("numba")
ak_numba = pytest.importorskip("awkward._v2.numba")
ak_numba_arrayview = pytest.importorskip("awkward._v2._connect.numba.arrayview")
ak_numba_layout = pytest.importorskip("awkward._v2._connect.numba.layout")
ak_numba.register_and_check()
def roundtrip(layout):
assert isinstance(layout, ak._v2.contents.Content)
lookup = ak._v2._lookup.Lookup(layout)
assert isinstance(lookup, ak._v2._lookup.Lookup)
numbatype = ak_numba_arrayview.tonumbatype(layout.form)
assert isinstance(numbatype, ak_numba_layout.ContentType)
layout2 = numbatype.tolayout(lookup, 0, ())
assert isinstance(layout2, ak._v2.contents.Content)
assert layout.to_list() == layout2.to_list()
assert layout.form.type == layout2.form.type
@numba.njit
def swallow(array):
pass
@numba.njit
def passthrough(array):
return array
@numba.njit
def passthrough2(array):
return array, array
@numba.njit
def digest(array):
return array[0]
@numba.njit
def digest2(array):
tmp = array[0]
return tmp, tmp, array[0]
def buffers(layout):
if isinstance(layout, ak._v2.contents.NumpyArray):
yield layout.data
for attr in dir(layout):
obj = getattr(layout, attr)
if isinstance(obj, ak._v2.index.Index):
yield obj.data
elif attr == "content":
yield from buffers(obj)
elif attr == "contents":
for x in obj:
yield from buffers(x)
def memoryleak(array, function):
counts = None
for _ in range(10):
function(array)
this_counts = [sys.getrefcount(x) for x in buffers(array.layout)]
if counts is None:
counts = this_counts
else:
assert counts == this_counts
def test_EmptyArray():
v2a = ak._v2.contents.emptyarray.EmptyArray().toNumpyArray(np.dtype(np.float64))
roundtrip(v2a)
array = ak._v2.highlevel.Array(v2a)
memoryleak(array, swallow)
memoryleak(array, passthrough)
memoryleak(array, passthrough2)
def test_NumpyArray():
v2a = ak._v2.contents.numpyarray.NumpyArray(np.array([0.0, 1.1, 2.2, 3.3]))
roundtrip(v2a)
array = ak._v2.highlevel.Array(v2a)
memoryleak(array, swallow)
memoryleak(array, passthrough)
memoryleak(array, passthrough2)
memoryleak(array, digest)
memoryleak(array, digest2)
v2b = ak._v2.contents.numpyarray.NumpyArray(
np.arange(2 * 3 * 5, dtype=np.int64).reshape(2, 3, 5)
)
roundtrip(v2b)
array = ak._v2.highlevel.Array(v2b)
memoryleak(array, swallow)
memoryleak(array, passthrough)
memoryleak(array, passthrough2)
memoryleak(array, digest)
memoryleak(array, digest2)
def test_RegularArray_NumpyArray():
v2a = ak._v2.contents.regulararray.RegularArray(
ak._v2.contents.numpyarray.NumpyArray(np.array([0.0, 1.1, 2.2, 3.3, 4.4, 5.5])),
3,
)
roundtrip(v2a)
array = ak._v2.highlevel.Array(v2a)
memoryleak(array, swallow)
memoryleak(array, passthrough)
memoryleak(array, passthrough2)
memoryleak(array, digest)
memoryleak(array, digest2)
v2b = ak._v2.contents.regulararray.RegularArray(
ak._v2.contents.emptyarray.EmptyArray().toNumpyArray(np.dtype(np.float64)),
0,
zeros_length=10,
)
roundtrip(v2b)
array = ak._v2.highlevel.Array(v2b)
memoryleak(array, swallow)
memoryleak(array, passthrough)
memoryleak(array, passthrough2)
memoryleak(array, digest)
memoryleak(array, digest2)
def test_ListArray_NumpyArray():
v2a = ak._v2.contents.listarray.ListArray(
ak._v2.index.Index(np.array([4, 100, 1], np.int64)),
ak._v2.index.Index(np.array([7, 100, 3, 200], np.int64)),
ak._v2.contents.numpyarray.NumpyArray(
np.array([6.6, 4.4, 5.5, 7.7, 1.1, 2.2, 3.3, 8.8])
),
)
roundtrip(v2a)
array = ak._v2.highlevel.Array(v2a)
memoryleak(array, swallow)
memoryleak(array, passthrough)
memoryleak(array, passthrough2)
memoryleak(array, digest)
memoryleak(array, digest2)
def test_ListOffsetArray_NumpyArray():
v2a = ak._v2.contents.listoffsetarray.ListOffsetArray(
ak._v2.index.Index(np.array([1, 4, 4, 6, 7], np.int64)),
ak._v2.contents.numpyarray.NumpyArray([6.6, 1.1, 2.2, 3.3, 4.4, 5.5, 7.7]),
)
roundtrip(v2a)
array = ak._v2.highlevel.Array(v2a)
memoryleak(array, swallow)
memoryleak(array, passthrough)
memoryleak(array, passthrough2)
memoryleak(array, digest)
memoryleak(array, digest2)
def test_RecordArray_NumpyArray():
v2a = ak._v2.contents.recordarray.RecordArray(
[
ak._v2.contents.numpyarray.NumpyArray(np.array([0, 1, 2, 3, 4], np.int64)),
ak._v2.contents.numpyarray.NumpyArray(
np.array([0.0, 1.1, 2.2, 3.3, 4.4, 5.5])
),
],
["x", "y"],
)
roundtrip(v2a)
array = ak._v2.highlevel.Array(v2a)
memoryleak(array, swallow)
memoryleak(array, passthrough)
memoryleak(array, passthrough2)
memoryleak(array, digest)
memoryleak(array, digest2)
v2b = ak._v2.contents.recordarray.RecordArray(
[
ak._v2.contents.numpyarray.NumpyArray(np.array([0, 1, 2, 3, 4], np.int64)),
ak._v2.contents.numpyarray.NumpyArray(
np.array([0.0, 1.1, 2.2, 3.3, 4.4, 5.5])
),
],
None,
)
roundtrip(v2b)
array = ak._v2.highlevel.Array(v2b)
memoryleak(array, swallow)
memoryleak(array, passthrough)
memoryleak(array, passthrough2)
memoryleak(array, digest)
memoryleak(array, digest2)
v2c = ak._v2.contents.recordarray.RecordArray([], [], 10)
roundtrip(v2c)
array = ak._v2.highlevel.Array(v2c)
memoryleak(array, swallow)
memoryleak(array, passthrough)
memoryleak(array, passthrough2)
memoryleak(array, digest)
memoryleak(array, digest2)
v2d = ak._v2.contents.recordarray.RecordArray([], None, 10)
roundtrip(v2d)
array = ak._v2.highlevel.Array(v2d)
memoryleak(array, swallow)
memoryleak(array, passthrough)
memoryleak(array, passthrough2)
memoryleak(array, digest)
memoryleak(array, digest2)
def test_IndexedArray_NumpyArray():
v2a = ak._v2.contents.indexedarray.IndexedArray(
ak._v2.index.Index(np.array([2, 2, 0, 1, 4, 5, 4], np.int64)),
ak._v2.contents.numpyarray.NumpyArray(np.array([1.1, 2.2, 3.3, 4.4, 5.5, 6.6])),
)
roundtrip(v2a)
array = ak._v2.highlevel.Array(v2a)
memoryleak(array, swallow)
memoryleak(array, passthrough)
memoryleak(array, passthrough2)
memoryleak(array, digest)
memoryleak(array, digest2)
def test_IndexedOptionArray_NumpyArray():
v2a = ak._v2.contents.indexedoptionarray.IndexedOptionArray(
ak._v2.index.Index(np.array([2, 2, -1, 1, -1, 5, 4], np.int64)),
ak._v2.contents.numpyarray.NumpyArray(np.array([1.1, 2.2, 3.3, 4.4, 5.5, 6.6])),
)
roundtrip(v2a)
array = ak._v2.highlevel.Array(v2a)
memoryleak(array, swallow)
memoryleak(array, passthrough)
memoryleak(array, passthrough2)
memoryleak(array, digest)
memoryleak(array, digest2)
def test_ByteMaskedArray_NumpyArray():
v2a = ak._v2.contents.bytemaskedarray.ByteMaskedArray(
ak._v2.index.Index(np.array([1, 0, 1, 0, 1], np.int8)),
ak._v2.contents.numpyarray.NumpyArray(np.array([1.1, 2.2, 3.3, 4.4, 5.5, 6.6])),
valid_when=True,
)
roundtrip(v2a)
array = ak._v2.highlevel.Array(v2a)
memoryleak(array, swallow)
memoryleak(array, passthrough)
memoryleak(array, passthrough2)
memoryleak(array, digest)
memoryleak(array, digest2)
v2b = ak._v2.contents.bytemaskedarray.ByteMaskedArray(
ak._v2.index.Index(np.array([0, 1, 0, 1, 0], np.int8)),
ak._v2.contents.numpyarray.NumpyArray(np.array([1.1, 2.2, 3.3, 4.4, 5.5, 6.6])),
valid_when=False,
)
roundtrip(v2b)
array = ak._v2.highlevel.Array(v2b)
memoryleak(array, swallow)
memoryleak(array, passthrough)
memoryleak(array, passthrough2)
memoryleak(array, digest)
memoryleak(array, digest2)
def test_BitMaskedArray_NumpyArray():
v2a = ak._v2.contents.bitmaskedarray.BitMaskedArray(
ak._v2.index.Index(
np.packbits(
np.array(
[
1,
1,
1,
1,
0,
0,
0,
0,
1,
0,
1,
0,
1,
],
np.uint8,
)
)
),
ak._v2.contents.numpyarray.NumpyArray(
np.array(
[0.0, 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 1.1, 2.2, 3.3, 4.4, 5.5, 6.6]
)
),
valid_when=True,
length=13,
lsb_order=False,
)
roundtrip(v2a)
array = ak._v2.highlevel.Array(v2a)
memoryleak(array, swallow)
memoryleak(array, passthrough)
memoryleak(array, passthrough2)
memoryleak(array, digest)
memoryleak(array, digest2)
v2b = ak._v2.contents.bitmaskedarray.BitMaskedArray(
ak._v2.index.Index(
np.packbits(
np.array(
[
0,
0,
0,
0,
1,
1,
1,
1,
0,
1,
0,
1,
0,
],
np.uint8,
)
)
),
ak._v2.contents.numpyarray.NumpyArray(
np.array(
[0.0, 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 1.1, 2.2, 3.3, 4.4, 5.5, 6.6]
)
),
valid_when=False,
length=13,
lsb_order=False,
)
roundtrip(v2b)
array = ak._v2.highlevel.Array(v2b)
memoryleak(array, swallow)
memoryleak(array, passthrough)
memoryleak(array, passthrough2)
memoryleak(array, digest)
memoryleak(array, digest2)
v2c = ak._v2.contents.bitmaskedarray.BitMaskedArray(
ak._v2.index.Index(
np.packbits(
np.array(
[
0,
0,
0,
0,
1,
1,
1,
1,
0,
0,
0,
1,
0,
1,
0,
1,
],
np.uint8,
)
)
),
ak._v2.contents.numpyarray.NumpyArray(
np.array(
[0.0, 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 1.1, 2.2, 3.3, 4.4, 5.5, 6.6]
)
),
valid_when=True,
length=13,
lsb_order=True,
)
roundtrip(v2c)
array = ak._v2.highlevel.Array(v2c)
memoryleak(array, swallow)
memoryleak(array, passthrough)
memoryleak(array, passthrough2)
memoryleak(array, digest)
memoryleak(array, digest2)
v2d = ak._v2.contents.bitmaskedarray.BitMaskedArray(
ak._v2.index.Index(
np.packbits(
np.array(
[
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
1,
0,
1,
0,
],
np.uint8,
)
)
),
ak._v2.contents.numpyarray.NumpyArray(
np.array(
[0.0, 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 1.1, 2.2, 3.3, 4.4, 5.5, 6.6]
)
),
valid_when=False,
length=13,
lsb_order=True,
)
roundtrip(v2d)
array = ak._v2.highlevel.Array(v2c)
memoryleak(array, swallow)
memoryleak(array, passthrough)
memoryleak(array, passthrough2)
memoryleak(array, digest)
memoryleak(array, digest2)
def test_UnmaskedArray_NumpyArray():
v2a = ak._v2.contents.unmaskedarray.UnmaskedArray(
ak._v2.contents.numpyarray.NumpyArray(np.array([0.0, 1.1, 2.2, 3.3]))
)
roundtrip(v2a)
array = ak._v2.highlevel.Array(v2a)
memoryleak(array, swallow)
memoryleak(array, passthrough)
memoryleak(array, passthrough2)
memoryleak(array, digest)
memoryleak(array, digest2)
def test_UnionArray_NumpyArray():
v2a = ak._v2.contents.unionarray.UnionArray(
ak._v2.index.Index(np.array([1, 1, 0, 0, 1, 0, 1], np.int8)),
ak._v2.index.Index(np.array([4, 3, 0, 1, 2, 2, 4, 100], np.int64)),
[
ak._v2.contents.numpyarray.NumpyArray(np.array([1, 2, 3], np.int64)),
ak._v2.contents.numpyarray.NumpyArray(np.array([1.1, 2.2, 3.3, 4.4, 5.5])),
],
)
roundtrip(v2a)
array = ak._v2.highlevel.Array(v2a)
memoryleak(array, swallow)
memoryleak(array, passthrough)
memoryleak(array, passthrough2)
def test_RegularArray_RecordArray_NumpyArray():
v2a = ak._v2.contents.regulararray.RegularArray(
ak._v2.contents.recordarray.RecordArray(
[
ak._v2.contents.numpyarray.NumpyArray(
np.array([0.0, 1.1, 2.2, 3.3, 4.4, 5.5, 6.6])
)
],
["nest"],
),
3,
)
roundtrip(v2a)
array = ak._v2.highlevel.Array(v2a)
memoryleak(array, swallow)
memoryleak(array, passthrough)
memoryleak(array, passthrough2)
memoryleak(array, digest)
memoryleak(array, digest2)
v2b = ak._v2.contents.regulararray.RegularArray(
ak._v2.contents.recordarray.RecordArray(
[
ak._v2.contents.emptyarray.EmptyArray().toNumpyArray(
np.dtype(np.float64)
)
],
["nest"],
),
0,
zeros_length=10,
)
roundtrip(v2b)
array = ak._v2.highlevel.Array(v2b)
memoryleak(array, swallow)
memoryleak(array, passthrough)
memoryleak(array, passthrough2)
memoryleak(array, digest)
memoryleak(array, digest2)
def test_ListArray_RecordArray_NumpyArray():
v2a = ak._v2.contents.listarray.ListArray(
ak._v2.index.Index(np.array([4, 100, 1], np.int64)),
ak._v2.index.Index(np.array([7, 100, 3, 200], np.int64)),
ak._v2.contents.recordarray.RecordArray(
[
ak._v2.contents.numpyarray.NumpyArray(
np.array([6.6, 4.4, 5.5, 7.7, 1.1, 2.2, 3.3, 8.8])
)
],
["nest"],
),
)
roundtrip(v2a)
array = ak._v2.highlevel.Array(v2a)
memoryleak(array, swallow)
memoryleak(array, passthrough)
memoryleak(array, passthrough2)
memoryleak(array, digest)
memoryleak(array, digest2)
def test_ListOffsetArray_RecordArray_NumpyArray():
v2a = ak._v2.contents.listoffsetarray.ListOffsetArray(
ak._v2.index.Index(np.array([1, 4, 4, 6], np.int64)),
ak._v2.contents.recordarray.RecordArray(
[
ak._v2.contents.numpyarray.NumpyArray(
[6.6, 1.1, 2.2, 3.3, 4.4, 5.5, 7.7]
)
],
["nest"],
),
)
roundtrip(v2a)
array = ak._v2.highlevel.Array(v2a)
memoryleak(array, swallow)
memoryleak(array, passthrough)
memoryleak(array, passthrough2)
memoryleak(array, digest)
memoryleak(array, digest2)
def test_IndexedArray_RecordArray_NumpyArray():
v2a = ak._v2.contents.indexedarray.IndexedArray(
ak._v2.index.Index(np.array([2, 2, 0, 1, 4, 5, 4], np.int64)),
ak._v2.contents.recordarray.RecordArray(
[
ak._v2.contents.numpyarray.NumpyArray(
np.array([1.1, 2.2, 3.3, 4.4, 5.5, 6.6])
)
],
["nest"],
),
)
roundtrip(v2a)
array = ak._v2.highlevel.Array(v2a)
memoryleak(array, swallow)
memoryleak(array, passthrough)
memoryleak(array, passthrough2)
memoryleak(array, digest)
memoryleak(array, digest2)
def test_IndexedOptionArray_RecordArray_NumpyArray():
v2a = ak._v2.contents.indexedoptionarray.IndexedOptionArray(
ak._v2.index.Index(np.array([2, 2, -1, 1, -1, 5, 4], np.int64)),
ak._v2.contents.recordarray.RecordArray(
[
ak._v2.contents.numpyarray.NumpyArray(
np.array([1.1, 2.2, 3.3, 4.4, 5.5, 6.6])
)
],
["nest"],
),
)
roundtrip(v2a)
array = ak._v2.highlevel.Array(v2a)
memoryleak(array, swallow)
memoryleak(array, passthrough)
memoryleak(array, passthrough2)
memoryleak(array, digest)
memoryleak(array, digest2)
def test_ByteMaskedArray_RecordArray_NumpyArray():
v2a = ak._v2.contents.bytemaskedarray.ByteMaskedArray(
ak._v2.index.Index(np.array([1, 0, 1, 0, 1], np.int8)),
ak._v2.contents.recordarray.RecordArray(
[
ak._v2.contents.numpyarray.NumpyArray(
np.array([1.1, 2.2, 3.3, 4.4, 5.5, 6.6])
)
],
["nest"],
),
valid_when=True,
)
roundtrip(v2a)
array = ak._v2.highlevel.Array(v2a)
memoryleak(array, swallow)
memoryleak(array, passthrough)
memoryleak(array, passthrough2)
memoryleak(array, digest)
memoryleak(array, digest2)
v2b = ak._v2.contents.bytemaskedarray.ByteMaskedArray(
ak._v2.index.Index(np.array([0, 1, 0, 1, 0], np.int8)),
ak._v2.contents.recordarray.RecordArray(
[
ak._v2.contents.numpyarray.NumpyArray(
np.array([1.1, 2.2, 3.3, 4.4, 5.5, 6.6])
)
],
["nest"],
),
valid_when=False,
)
roundtrip(v2b)
array = ak._v2.highlevel.Array(v2b)
memoryleak(array, swallow)
memoryleak(array, passthrough)
memoryleak(array, passthrough2)
memoryleak(array, digest)
memoryleak(array, digest2)
def test_BitMaskedArray_RecordArray_NumpyArray():
v2a = ak._v2.contents.bitmaskedarray.BitMaskedArray(
ak._v2.index.Index(
np.packbits(
np.array(
[
True,
True,
True,
True,
False,
False,
False,
False,
True,
False,
True,
False,
True,
]
)
)
),
ak._v2.contents.recordarray.RecordArray(
[
ak._v2.contents.numpyarray.NumpyArray(
np.array(
[
0.0,
1.0,
2.0,
3.0,
4.0,
5.0,
6.0,
7.0,
1.1,
2.2,
3.3,
4.4,
5.5,
6.6,
]
)
)
],
["nest"],
),
valid_when=True,
length=13,
lsb_order=False,
)
roundtrip(v2a)
array = ak._v2.highlevel.Array(v2a)
memoryleak(array, swallow)
memoryleak(array, passthrough)
memoryleak(array, passthrough2)
memoryleak(array, digest)
memoryleak(array, digest2)
v2b = ak._v2.contents.bitmaskedarray.BitMaskedArray(
ak._v2.index.Index(
np.packbits(
np.array(
[
0,
0,
0,
0,
1,
1,
1,
1,
0,
1,
0,
1,
0,
],
np.uint8,
)
)
),
ak._v2.contents.recordarray.RecordArray(
[
ak._v2.contents.numpyarray.NumpyArray(
np.array(
[
0.0,
1.0,
2.0,
3.0,
4.0,
5.0,
6.0,
7.0,
1.1,
2.2,
3.3,
4.4,
5.5,
6.6,
]
)
)
],
["nest"],
),
valid_when=False,
length=13,
lsb_order=False,
)
roundtrip(v2b)
array = ak._v2.highlevel.Array(v2b)
memoryleak(array, swallow)
memoryleak(array, passthrough)
memoryleak(array, passthrough2)
memoryleak(array, digest)
memoryleak(array, digest2)
v2c = ak._v2.contents.bitmaskedarray.BitMaskedArray(
ak._v2.index.Index(
np.packbits(
np.array(
[
0,
0,
0,
0,
1,
1,
1,
1,
0,
0,
0,
1,
0,
1,
0,
1,
],
np.uint8,
)
)
),
ak._v2.contents.recordarray.RecordArray(
[
ak._v2.contents.numpyarray.NumpyArray(
np.array(
[
0.0,
1.0,
2.0,
3.0,
4.0,
5.0,
6.0,
7.0,
1.1,
2.2,
3.3,
4.4,
5.5,
6.6,
]
)
)
],
["nest"],
),
valid_when=True,
length=13,
lsb_order=True,
)
roundtrip(v2c)
array = ak._v2.highlevel.Array(v2c)
memoryleak(array, swallow)
memoryleak(array, passthrough)
memoryleak(array, passthrough2)
memoryleak(array, digest)
memoryleak(array, digest2)
v2d = ak._v2.contents.bitmaskedarray.BitMaskedArray(
ak._v2.index.Index(
np.packbits(
np.array(
[
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
1,
0,
1,
0,
],
np.uint8,
)
)
),
ak._v2.contents.recordarray.RecordArray(
[
ak._v2.contents.numpyarray.NumpyArray(
np.array(
[
0.0,
1.0,
2.0,
3.0,
4.0,
5.0,
6.0,
7.0,
1.1,
2.2,
3.3,
4.4,
5.5,
6.6,
]
)
)
],
["nest"],
),
valid_when=False,
length=13,
lsb_order=True,
)
roundtrip(v2d)
array = ak._v2.highlevel.Array(v2d)
memoryleak(array, swallow)
memoryleak(array, passthrough)
memoryleak(array, passthrough2)
memoryleak(array, digest)
memoryleak(array, digest2)
def test_UnmaskedArray_RecordArray_NumpyArray():
v2a = ak._v2.contents.unmaskedarray.UnmaskedArray(
ak._v2.contents.recordarray.RecordArray(
[ak._v2.contents.numpyarray.NumpyArray(np.array([0.0, 1.1, 2.2, 3.3]))],
["nest"],
)
)
roundtrip(v2a)
array = ak._v2.highlevel.Array(v2a)
memoryleak(array, swallow)
memoryleak(array, passthrough)
memoryleak(array, passthrough2)
memoryleak(array, digest)
memoryleak(array, digest2)
def test_UnionArray_RecordArray_NumpyArray():
v2a = ak._v2.contents.unionarray.UnionArray(
ak._v2.index.Index(np.array([1, 1, 0, 0, 1, 0, 1], np.int8)),
ak._v2.index.Index(np.array([4, 3, 0, 1, 2, 2, 4, 100], np.int64)),
[
ak._v2.contents.recordarray.RecordArray(
[ak._v2.contents.numpyarray.NumpyArray(np.array([1, 2, 3], np.int64))],
["nest"],
),
ak._v2.contents.recordarray.RecordArray(
[
ak._v2.contents.numpyarray.NumpyArray(
np.array([1.1, 2.2, 3.3, 4.4, 5.5])
)
],
["nest"],
),
],
)
roundtrip(v2a)
array = ak._v2.highlevel.Array(v2a)
memoryleak(array, swallow)
memoryleak(array, passthrough)
memoryleak(array, passthrough2)
| 29.135829
| 88
| 0.475736
| 2,726
| 27,242
| 4.66361
| 0.047322
| 0.200582
| 0.082121
| 0.060568
| 0.89908
| 0.88673
| 0.869189
| 0.868638
| 0.868638
| 0.868638
| 0
| 0.071491
| 0.411056
| 27,242
| 934
| 89
| 29.167024
| 0.720893
| 0.004332
| 0
| 0.765533
| 0
| 0
| 0.006195
| 0.002544
| 0
| 0
| 0
| 0
| 0.008206
| 1
| 0.033998
| false
| 0.08558
| 0.009379
| 0.003517
| 0.048066
| 0
| 0
| 0
| 0
| null | 1
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
|
0
| 9
|
e6aefdfe8a65e064336ce7969ca8bb0f3fd70ea6
| 315
|
py
|
Python
|
pyop2/types/__init__.py
|
OP2/PyOP2
|
be8adeab3f3a3dfee979843c9444249220cc0ae7
|
[
"BSD-3-Clause"
] | 51
|
2015-02-01T20:28:21.000Z
|
2022-03-11T03:55:44.000Z
|
pyop2/types/__init__.py
|
OP2/PyOP2
|
be8adeab3f3a3dfee979843c9444249220cc0ae7
|
[
"BSD-3-Clause"
] | 176
|
2015-01-06T09:22:45.000Z
|
2022-03-29T13:05:02.000Z
|
pyop2/types/__init__.py
|
OP2/PyOP2
|
be8adeab3f3a3dfee979843c9444249220cc0ae7
|
[
"BSD-3-Clause"
] | 27
|
2015-01-21T14:36:32.000Z
|
2022-03-17T01:45:33.000Z
|
from .access import * # noqa: F401
from .data_carrier import * # noqa: F401
from .dataset import * # noqa: F401
from .dat import * # noqa: F401
from .glob import * # noqa: F401
from .halo import * # noqa: F401
from .map import * # noqa: F401
from .mat import * # noqa: F401
from .set import * # noqa: F401
| 31.5
| 41
| 0.657143
| 46
| 315
| 4.478261
| 0.304348
| 0.436893
| 0.61165
| 0.699029
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.111111
| 0.228571
| 315
| 9
| 42
| 35
| 0.736626
| 0.311111
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 0
| 1
| 0
| 0
| 0
| 0
| null | 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 7
|
e6d4a6d3c08b007c0a80b090a84d2b7c9f11ffc8
| 3,772
|
py
|
Python
|
chess/pieces/bishop.py
|
BlankGodd/Games-
|
76d701ee0f78031280fddaa95b30cbc9b1482321
|
[
"Unlicense"
] | null | null | null |
chess/pieces/bishop.py
|
BlankGodd/Games-
|
76d701ee0f78031280fddaa95b30cbc9b1482321
|
[
"Unlicense"
] | null | null | null |
chess/pieces/bishop.py
|
BlankGodd/Games-
|
76d701ee0f78031280fddaa95b30cbc9b1482321
|
[
"Unlicense"
] | null | null | null |
#!/usr/bin/python
# Author: @BlankGodd
# bishop
from pieces.positions import Pos
class Bishop:
def __init__(self,board):
self.position = Pos._positions
self.board = board
self.alpha = Pos._alpha
def move(self,p,ab,player):
a,b = self.position[ab]
if self.board[a][b] == ' ':
if player == 1:
m = self.move_white(ab,player)
return m
else:
m = self.move_black(ab,player)
return m
else:
if player == 1: #white
x = self.board[a][b]
if x[-1] == ' ':
return False
cond = self.white_take(ab,player)
return cond
else: # black
x = self.board[a][b]
if x[-1] == '.':
return False
cond = self.black_take(ab,player)
return cond
def white_take(self,ab,player):
mode = self.check_left(ab,player)
if not mode:
mode = self.check_right(ab,player)
if mode:
a,b = self.position[ab]
c,d = self.position[mode]
self.board[a][b] = 'B '
self.board[c][d] = ' '
print('B{}x{}'.format(mode,ab))
return True
return mode
def black_take(self,ab,player):
mode = self.check_left(ab,player)
if not mode:
mode = self.check_right(ab,player)
if mode:
a,b = self.position[ab]
c,d = self.position[mode]
self.board[a][b] = 'B.'
self.board[c][d] = ' '
print('B.{}x{}'.format(mode,ab))
return True
return mode
def move_white(self,ab,player):
mode = self.check_left(ab,player)
if not mode:
mode = self.check_right(ab,player)
if mode:
a,b = self.position[ab]
c,d = self.position[mode]
self.board[a][b] = 'B '
self.board[c][d] = ' '
return True
return mode
def move_black(self,ab,player):
mode = self.check_left(ab,player)
if not mode:
mode = self.check_right(ab,player)
if mode:
a,b = self.position[ab]
c,d = self.position[mode]
self.board[a][b] = 'B.'
self.board[c][d] = ' '
return True
return mode
def check_right(self,ab,player):
check = ""
prev_pos = ''
if player == 1:
check = 'B '
else:
check = 'B.'
alp = ab[0]
num = int(ab[-1])
l = self.alpha[alp]
cond = False
for i in range(1,8):
j = num-i
if j < 1:
break
k = l+i
if k > 8:
break
k = self.alpha[k]
pos = k+str(j)
a,b = self.position[pos]
if self.board[a][b] != ' ':
if self.board[a][b] == check:
prev_pos = pos
cond = True
break
else:
break
if not cond:
for i in range(1,8):
j = num+i
if j > 8:
break
k = l+i
if k > 8:
break
k = self.alpha[k]
pos = k+str(j)
a,b = self.position[pos]
if self.board[a][b] != ' ':
if self.board[a][b] == check:
prev_pos = pos
cond = True
break
else:
break
if cond:
return prev_pos
return cond
def check_left(self,ab,player):
check = ""
prev_pos = ''
if player == 1:
check = 'B '
else:
check = 'B.'
alp = ab[0]
num = int(ab[-1])
l = self.alpha[alp]
cond = False
for i in range(1,8):
j = num-i
if j < 1:
break
k = l-i
if k < 1:
break
k = self.alpha[k]
pos = k+str(j)
a,b = self.position[pos]
if self.board[a][b] != ' ':
if self.board[a][b] == check:
prev_pos = pos
cond = True
break
else:
break
if not cond:
for i in range(1,8):
j = num+i
if j > 8:
break
k = l-i
if k < 1:
break
k = self.alpha[k]
pos = k+str(j)
a,b = self.position[pos]
if self.board[a][b] != ' ':
if self.board[a][b] == check:
prev_pos = pos
cond = True
break
else:
break
if cond:
return prev_pos
return cond
| 20.171123
| 38
| 0.524125
| 591
| 3,772
| 3.291032
| 0.101523
| 0.024679
| 0.077121
| 0.084833
| 0.858098
| 0.807712
| 0.795887
| 0.795887
| 0.795887
| 0.795887
| 0
| 0.010236
| 0.326617
| 3,772
| 186
| 39
| 20.27957
| 0.755512
| 0.014581
| 0
| 0.872093
| 0
| 0
| 0.013901
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.046512
| false
| 0
| 0.005814
| 0
| 0.162791
| 0.011628
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
fc18d7931774fd97f7ffcc0b290d4f582a227b65
| 200,180
|
py
|
Python
|
HARK/interpolation.py
|
AMonninger/HARK
|
7cd5a0cdc0acd38aea674eefeb526c0316fa2d28
|
[
"Apache-2.0"
] | 264
|
2016-06-20T18:06:44.000Z
|
2022-03-31T12:40:31.000Z
|
HARK/interpolation.py
|
AMonninger/HARK
|
7cd5a0cdc0acd38aea674eefeb526c0316fa2d28
|
[
"Apache-2.0"
] | 876
|
2016-06-16T19:41:13.000Z
|
2022-03-30T20:44:52.000Z
|
HARK/interpolation.py
|
AMonninger/HARK
|
7cd5a0cdc0acd38aea674eefeb526c0316fa2d28
|
[
"Apache-2.0"
] | 194
|
2016-06-17T16:12:29.000Z
|
2022-03-01T15:11:43.000Z
|
"""
Custom interpolation methods for representing approximations to functions.
It also includes wrapper classes to enforce standard methods across classes.
Each interpolation class must have a distance() method that compares itself to
another instance; this is used in HARK.core's solve() method to check for solution
convergence. The interpolator classes currently in this module inherit their
distance method from MetricObject.
"""
import warnings
from copy import deepcopy
import numpy as np
from scipy.interpolate import CubicHermiteSpline
from HARK.utilities import CRRAutility, CRRAutilityP, CRRAutilityPP
from .core import MetricObject
def _isscalar(x):
"""
Check whether x is if a scalar type, or 0-dim.
Parameters
----------
x : anything
An input to be checked for scalar-ness.
Returns
-------
is_scalar : boolean
True if the input is a scalar, False otherwise.
"""
return np.isscalar(x) or hasattr(x, "shape") and x.shape == ()
def _check_grid_dimensions(dimension, *args):
if dimension == 1:
if len(args[0]) != len(args[1]):
raise ValueError("Grid dimensions of x and f(x) do not match")
elif dimension == 2:
if args[0].shape != (args[1].size, args[2].size):
raise ValueError("Grid dimensions of x, y and f(x, y) do not match")
elif dimension == 3:
if args[0].shape != (args[1].size, args[2].size, args[3].size):
raise ValueError("Grid dimensions of x, y, z and f(x, y, z) do not match")
elif dimension == 4:
if args[0].shape != (args[1].size, args[2].size, args[3].size, args[4].size):
raise ValueError("Grid dimensions of x, y, z and f(x, y, z) do not match")
else:
raise ValueError("Dimension should be between 1 and 4 inclusive.")
def _check_flatten(dimension, *args):
if dimension == 1:
if isinstance(args[0], np.ndarray) and args[0].shape != args[0].flatten().shape:
warnings.warn("input not of the size (n, ), attempting to flatten")
return False
else:
return True
class HARKinterpolator1D(MetricObject):
"""
A wrapper class for 1D interpolation methods in HARK.
"""
distance_criteria = []
def __call__(self, x):
"""
Evaluates the interpolated function at the given input.
Parameters
----------
x : np.array or float
Real values to be evaluated in the interpolated function.
Returns
-------
y : np.array or float
The interpolated function evaluated at x: y = f(x), with the same
shape as x.
"""
z = np.asarray(x)
return (self._evaluate(z.flatten())).reshape(z.shape)
def derivative(self, x):
"""
Evaluates the derivative of the interpolated function at the given input.
Parameters
----------
x : np.array or float
Real values to be evaluated in the interpolated function.
Returns
-------
dydx : np.array or float
The interpolated function's first derivative evaluated at x:
dydx = f'(x), with the same shape as x.
"""
z = np.asarray(x)
return (self._der(z.flatten())).reshape(z.shape)
def eval_with_derivative(self, x):
"""
Evaluates the interpolated function and its derivative at the given input.
Parameters
----------
x : np.array or float
Real values to be evaluated in the interpolated function.
Returns
-------
y : np.array or float
The interpolated function evaluated at x: y = f(x), with the same
shape as x.
dydx : np.array or float
The interpolated function's first derivative evaluated at x:
dydx = f'(x), with the same shape as x.
"""
z = np.asarray(x)
y, dydx = self._evalAndDer(z.flatten())
return y.reshape(z.shape), dydx.reshape(z.shape)
def _evaluate(self, x):
"""
Interpolated function evaluator, to be defined in subclasses.
"""
raise NotImplementedError()
def _der(self, x):
"""
Interpolated function derivative evaluator, to be defined in subclasses.
"""
raise NotImplementedError()
def _evalAndDer(self, x):
"""
Interpolated function and derivative evaluator, to be defined in subclasses.
"""
raise NotImplementedError()
class HARKinterpolator2D(MetricObject):
"""
A wrapper class for 2D interpolation methods in HARK.
"""
distance_criteria = []
def __call__(self, x, y):
"""
Evaluates the interpolated function at the given input.
Parameters
----------
x : np.array or float
Real values to be evaluated in the interpolated function.
y : np.array or float
Real values to be evaluated in the interpolated function; must be
the same size as x.
Returns
-------
fxy : np.array or float
The interpolated function evaluated at x,y: fxy = f(x,y), with the
same shape as x and y.
"""
xa = np.asarray(x)
ya = np.asarray(y)
return (self._evaluate(xa.flatten(), ya.flatten())).reshape(xa.shape)
def derivativeX(self, x, y):
"""
Evaluates the partial derivative of interpolated function with respect
to x (the first argument) at the given input.
Parameters
----------
x : np.array or float
Real values to be evaluated in the interpolated function.
y : np.array or float
Real values to be evaluated in the interpolated function; must be
the same size as x.
Returns
-------
dfdx : np.array or float
The derivative of the interpolated function with respect to x, eval-
uated at x,y: dfdx = f_x(x,y), with the same shape as x and y.
"""
xa = np.asarray(x)
ya = np.asarray(y)
return (self._derX(xa.flatten(), ya.flatten())).reshape(xa.shape)
def derivativeY(self, x, y):
"""
Evaluates the partial derivative of interpolated function with respect
to y (the second argument) at the given input.
Parameters
----------
x : np.array or float
Real values to be evaluated in the interpolated function.
y : np.array or float
Real values to be evaluated in the interpolated function; must be
the same size as x.
Returns
-------
dfdy : np.array or float
The derivative of the interpolated function with respect to y, eval-
uated at x,y: dfdx = f_y(x,y), with the same shape as x and y.
"""
xa = np.asarray(x)
ya = np.asarray(y)
return (self._derY(xa.flatten(), ya.flatten())).reshape(xa.shape)
def _evaluate(self, x, y):
"""
Interpolated function evaluator, to be defined in subclasses.
"""
raise NotImplementedError()
def _derX(self, x, y):
"""
Interpolated function x-derivative evaluator, to be defined in subclasses.
"""
raise NotImplementedError()
def _derY(self, x, y):
"""
Interpolated function y-derivative evaluator, to be defined in subclasses.
"""
raise NotImplementedError()
class HARKinterpolator3D(MetricObject):
"""
A wrapper class for 3D interpolation methods in HARK.
"""
distance_criteria = []
def __call__(self, x, y, z):
"""
Evaluates the interpolated function at the given input.
Parameters
----------
x : np.array or float
Real values to be evaluated in the interpolated function.
y : np.array or float
Real values to be evaluated in the interpolated function; must be
the same size as x.
z : np.array or float
Real values to be evaluated in the interpolated function; must be
the same size as x.
Returns
-------
fxyz : np.array or float
The interpolated function evaluated at x,y,z: fxyz = f(x,y,z), with
the same shape as x, y, and z.
"""
xa = np.asarray(x)
ya = np.asarray(y)
za = np.asarray(z)
return (self._evaluate(xa.flatten(), ya.flatten(), za.flatten())).reshape(
xa.shape
)
def derivativeX(self, x, y, z):
"""
Evaluates the partial derivative of the interpolated function with respect
to x (the first argument) at the given input.
Parameters
----------
x : np.array or float
Real values to be evaluated in the interpolated function.
y : np.array or float
Real values to be evaluated in the interpolated function; must be
the same size as x.
z : np.array or float
Real values to be evaluated in the interpolated function; must be
the same size as x.
Returns
-------
dfdx : np.array or float
The derivative with respect to x of the interpolated function evaluated
at x,y,z: dfdx = f_x(x,y,z), with the same shape as x, y, and z.
"""
xa = np.asarray(x)
ya = np.asarray(y)
za = np.asarray(z)
return (self._derX(xa.flatten(), ya.flatten(), za.flatten())).reshape(xa.shape)
def derivativeY(self, x, y, z):
"""
Evaluates the partial derivative of the interpolated function with respect
to y (the second argument) at the given input.
Parameters
----------
x : np.array or float
Real values to be evaluated in the interpolated function.
y : np.array or float
Real values to be evaluated in the interpolated function; must be
the same size as x.
z : np.array or float
Real values to be evaluated in the interpolated function; must be
the same size as x.
Returns
-------
dfdy : np.array or float
The derivative with respect to y of the interpolated function evaluated
at x,y,z: dfdy = f_y(x,y,z), with the same shape as x, y, and z.
"""
xa = np.asarray(x)
ya = np.asarray(y)
za = np.asarray(z)
return (self._derY(xa.flatten(), ya.flatten(), za.flatten())).reshape(xa.shape)
def derivativeZ(self, x, y, z):
"""
Evaluates the partial derivative of the interpolated function with respect
to z (the third argument) at the given input.
Parameters
----------
x : np.array or float
Real values to be evaluated in the interpolated function.
y : np.array or float
Real values to be evaluated in the interpolated function; must be
the same size as x.
z : np.array or float
Real values to be evaluated in the interpolated function; must be
the same size as x.
Returns
-------
dfdz : np.array or float
The derivative with respect to z of the interpolated function evaluated
at x,y,z: dfdz = f_z(x,y,z), with the same shape as x, y, and z.
"""
xa = np.asarray(x)
ya = np.asarray(y)
za = np.asarray(z)
return (self._derZ(xa.flatten(), ya.flatten(), za.flatten())).reshape(xa.shape)
def _evaluate(self, x, y, z):
"""
Interpolated function evaluator, to be defined in subclasses.
"""
raise NotImplementedError()
def _derX(self, x, y, z):
"""
Interpolated function x-derivative evaluator, to be defined in subclasses.
"""
raise NotImplementedError()
def _derY(self, x, y, z):
"""
Interpolated function y-derivative evaluator, to be defined in subclasses.
"""
raise NotImplementedError()
def _derZ(self, x, y, z):
"""
Interpolated function y-derivative evaluator, to be defined in subclasses.
"""
raise NotImplementedError()
class HARKinterpolator4D(MetricObject):
"""
A wrapper class for 4D interpolation methods in HARK.
"""
distance_criteria = []
def __call__(self, w, x, y, z):
"""
Evaluates the interpolated function at the given input.
Parameters
----------
w : np.array or float
Real values to be evaluated in the interpolated function.
x : np.array or float
Real values to be evaluated in the interpolated function; must be
the same size as w.
y : np.array or float
Real values to be evaluated in the interpolated function; must be
the same size as w.
z : np.array or float
Real values to be evaluated in the interpolated function; must be
the same size as w.
Returns
-------
fwxyz : np.array or float
The interpolated function evaluated at w,x,y,z: fwxyz = f(w,x,y,z),
with the same shape as w, x, y, and z.
"""
wa = np.asarray(w)
xa = np.asarray(x)
ya = np.asarray(y)
za = np.asarray(z)
return (
self._evaluate(wa.flatten(), xa.flatten(), ya.flatten(), za.flatten())
).reshape(wa.shape)
def derivativeW(self, w, x, y, z):
"""
Evaluates the partial derivative with respect to w (the first argument)
of the interpolated function at the given input.
Parameters
----------
w : np.array or float
Real values to be evaluated in the interpolated function.
x : np.array or float
Real values to be evaluated in the interpolated function; must be
the same size as w.
y : np.array or float
Real values to be evaluated in the interpolated function; must be
the same size as w.
z : np.array or float
Real values to be evaluated in the interpolated function; must be
the same size as w.
Returns
-------
dfdw : np.array or float
The derivative with respect to w of the interpolated function eval-
uated at w,x,y,z: dfdw = f_w(w,x,y,z), with the same shape as inputs.
"""
wa = np.asarray(w)
xa = np.asarray(x)
ya = np.asarray(y)
za = np.asarray(z)
return (
self._derW(wa.flatten(), xa.flatten(), ya.flatten(), za.flatten())
).reshape(wa.shape)
def derivativeX(self, w, x, y, z):
"""
Evaluates the partial derivative with respect to x (the second argument)
of the interpolated function at the given input.
Parameters
----------
w : np.array or float
Real values to be evaluated in the interpolated function.
x : np.array or float
Real values to be evaluated in the interpolated function; must be
the same size as w.
y : np.array or float
Real values to be evaluated in the interpolated function; must be
the same size as w.
z : np.array or float
Real values to be evaluated in the interpolated function; must be
the same size as w.
Returns
-------
dfdx : np.array or float
The derivative with respect to x of the interpolated function eval-
uated at w,x,y,z: dfdx = f_x(w,x,y,z), with the same shape as inputs.
"""
wa = np.asarray(w)
xa = np.asarray(x)
ya = np.asarray(y)
za = np.asarray(z)
return (
self._derX(wa.flatten(), xa.flatten(), ya.flatten(), za.flatten())
).reshape(wa.shape)
def derivativeY(self, w, x, y, z):
"""
Evaluates the partial derivative with respect to y (the third argument)
of the interpolated function at the given input.
Parameters
----------
w : np.array or float
Real values to be evaluated in the interpolated function.
x : np.array or float
Real values to be evaluated in the interpolated function; must be
the same size as w.
y : np.array or float
Real values to be evaluated in the interpolated function; must be
the same size as w.
z : np.array or float
Real values to be evaluated in the interpolated function; must be
the same size as w.
Returns
-------
dfdy : np.array or float
The derivative with respect to y of the interpolated function eval-
uated at w,x,y,z: dfdy = f_y(w,x,y,z), with the same shape as inputs.
"""
wa = np.asarray(w)
xa = np.asarray(x)
ya = np.asarray(y)
za = np.asarray(z)
return (
self._derY(wa.flatten(), xa.flatten(), ya.flatten(), za.flatten())
).reshape(wa.shape)
def derivativeZ(self, w, x, y, z):
"""
Evaluates the partial derivative with respect to z (the fourth argument)
of the interpolated function at the given input.
Parameters
----------
w : np.array or float
Real values to be evaluated in the interpolated function.
x : np.array or float
Real values to be evaluated in the interpolated function; must be
the same size as w.
y : np.array or float
Real values to be evaluated in the interpolated function; must be
the same size as w.
z : np.array or float
Real values to be evaluated in the interpolated function; must be
the same size as w.
Returns
-------
dfdz : np.array or float
The derivative with respect to z of the interpolated function eval-
uated at w,x,y,z: dfdz = f_z(w,x,y,z), with the same shape as inputs.
"""
wa = np.asarray(w)
xa = np.asarray(x)
ya = np.asarray(y)
za = np.asarray(z)
return (
self._derZ(wa.flatten(), xa.flatten(), ya.flatten(), za.flatten())
).reshape(wa.shape)
def _evaluate(self, w, x, y, z):
"""
Interpolated function evaluator, to be defined in subclasses.
"""
raise NotImplementedError()
def _derW(self, w, x, y, z):
"""
Interpolated function w-derivative evaluator, to be defined in subclasses.
"""
raise NotImplementedError()
def _derX(self, w, x, y, z):
"""
Interpolated function w-derivative evaluator, to be defined in subclasses.
"""
raise NotImplementedError()
def _derY(self, w, x, y, z):
"""
Interpolated function w-derivative evaluator, to be defined in subclasses.
"""
raise NotImplementedError()
def _derZ(self, w, x, y, z):
"""
Interpolated function w-derivative evaluator, to be defined in subclasses.
"""
raise NotImplementedError()
class IdentityFunction(MetricObject):
"""
A fairly trivial interpolator that simply returns one of its arguments. Useful for avoiding
numeric error in extreme cases.
Parameters
----------
i_dim : int
Index of the dimension on which the identity is defined. f(*x) = x[i]
n_dims : int
Total number of input dimensions for this function.
"""
distance_criteria = ["i_dim"]
def __init__(self, i_dim=0, n_dims=1):
self.i_dim = i_dim
self.n_dims = n_dims
def __call__(self, *args):
"""
Evaluate the identity function.
"""
return args[self.i_dim]
def derivative(self, *args):
"""
Returns the derivative of the function with respect to the first dimension.
"""
if self.i_dim == 0:
return np.ones_like(*args[0])
else:
return np.zeros_like(*args[0])
def derivativeX(self, *args):
"""
Returns the derivative of the function with respect to the X dimension.
This is the first input whenever n_dims < 4 and the second input otherwise.
"""
if self.n_dims >= 4:
j = 1
else:
j = 0
if self.i_dim == j:
return np.ones_like(*args[0])
else:
return np.zeros_like(*args[0])
def derivativeY(self, *args):
"""
Returns the derivative of the function with respect to the Y dimension.
This is the second input whenever n_dims < 4 and the third input otherwise.
"""
if self.n_dims >= 4:
j = 2
else:
j = 1
if self.i_dim == j:
return np.ones_like(*args[0])
else:
return np.zeros_like(*args[0])
def derivativeZ(self, *args):
"""
Returns the derivative of the function with respect to the Z dimension.
This is the third input whenever n_dims < 4 and the fourth input otherwise.
"""
if self.n_dims >= 4:
j = 3
else:
j = 2
if self.i_dim == j:
return np.ones_like(*args[0])
else:
return np.zeros_like(*args[0])
def derivativeW(self, *args):
"""
Returns the derivative of the function with respect to the W dimension.
This should only exist when n_dims >= 4.
"""
if self.n_dims >= 4:
j = 0
else:
assert (
False
), "Derivative with respect to W can't be called when n_dims < 4!"
if self.i_dim == j:
return np.ones_like(*args[0])
else:
return np.zeros_like(*args[0])
class ConstantFunction(MetricObject):
"""
A class for representing trivial functions that return the same real output for any input. This
is convenient for models where an object might be a (non-trivial) function, but in some variations
that object is just a constant number. Rather than needing to make a (Bi/Tri/Quad)-
LinearInterpolation with trivial state grids and the same f_value in every entry, ConstantFunction
allows the user to quickly make a constant/trivial function. This comes up, e.g., in models
with endogenous pricing of insurance contracts; a contract's premium might depend on some state
variables of the individual, but in some variations the premium of a contract is just a number.
Parameters
----------
value : float
The constant value that the function returns.
"""
convergence_criteria = ["value"]
def __init__(self, value):
self.value = float(value)
def __call__(self, *args):
"""
Evaluate the constant function. The first input must exist and should be an array.
Returns an array of identical shape to args[0] (if it exists).
"""
if (
len(args) > 0
): # If there is at least one argument, return appropriately sized array
if _isscalar(args[0]):
return self.value
else:
shape = args[0].shape
return self.value * np.ones(shape)
else: # Otherwise, return a single instance of the constant value
return self.value
def _der(self, *args):
"""
Evaluate the derivative of the function. The first input must exist and should be an array.
Returns an array of identical shape to args[0] (if it exists). This is an array of zeros.
"""
if len(args) > 0:
if _isscalar(args[0]):
return 0.0
else:
shape = args[0].shape
return np.zeros(shape)
else:
return 0.0
# All other derivatives are also zero everywhere, so these methods just point to derivative
derivative = _der
derivativeX = derivative
derivativeY = derivative
derivativeZ = derivative
derivativeW = derivative
derivativeXX = derivative
class LinearInterp(HARKinterpolator1D):
"""
A "from scratch" 1D linear interpolation class. Allows for linear or decay
extrapolation (approaching a limiting linear function from below).
NOTE: When no input is given for the limiting linear function, linear
extrapolation is used above the highest gridpoint.
Parameters
----------
x_list : np.array
List of x values composing the grid.
y_list : np.array
List of y values, representing f(x) at the points in x_list.
intercept_limit : float
Intercept of limiting linear function.
slope_limit : float
Slope of limiting linear function.
lower_extrap : boolean
Indicator for whether lower extrapolation is allowed. False means
f(x) = NaN for x < min(x_list); True means linear extrapolation.
"""
distance_criteria = ["x_list", "y_list"]
def __init__(
self, x_list, y_list, intercept_limit=None, slope_limit=None, lower_extrap=False
):
# Make the basic linear spline interpolation
self.x_list = (
np.array(x_list)
if _check_flatten(1, x_list)
else np.array(x_list).flatten()
)
self.y_list = (
np.array(y_list)
if _check_flatten(1, y_list)
else np.array(y_list).flatten()
)
_check_grid_dimensions(1, self.y_list, self.x_list)
self.lower_extrap = lower_extrap
self.x_n = self.x_list.size
# Make a decay extrapolation
if intercept_limit is not None and slope_limit is not None:
slope_at_top = (y_list[-1] - y_list[-2]) / (x_list[-1] - x_list[-2])
level_diff = intercept_limit + slope_limit * x_list[-1] - y_list[-1]
slope_diff = slope_limit - slope_at_top
# If the model that can handle uncertainty has been calibrated with
# with uncertainty set to zero, the 'extrapolation' will blow up
# Guard against that and nearby problems by testing slope equality
if not np.isclose(slope_limit, slope_at_top, atol=1e-15):
self.decay_extrap_A = level_diff
self.decay_extrap_B = -slope_diff / level_diff
self.intercept_limit = intercept_limit
self.slope_limit = slope_limit
self.decay_extrap = True
else:
self.decay_extrap = False
else:
self.decay_extrap = False
def _evalOrDer(self, x, _eval, _Der):
"""
Returns the level and/or first derivative of the function at each value in
x. Only called internally by HARKinterpolator1D.eval_and_der (etc).
Parameters
----------
x_list : scalar or np.array
Set of points where we want to evlauate the interpolated function and/or its derivative..
_eval : boolean
Indicator for whether to evalute the level of the interpolated function.
_Der : boolean
Indicator for whether to evaluate the derivative of the interpolated function.
Returns
-------
A list including the level and/or derivative of the interpolated function where requested.
"""
i = np.maximum(np.searchsorted(self.x_list[:-1], x), 1)
alpha = (x - self.x_list[i - 1]) / (self.x_list[i] - self.x_list[i - 1])
if _eval:
y = (1.0 - alpha) * self.y_list[i - 1] + alpha * self.y_list[i]
if _Der:
dydx = (self.y_list[i] - self.y_list[i - 1]) / (
self.x_list[i] - self.x_list[i - 1]
)
if not self.lower_extrap:
below_lower_bound = x < self.x_list[0]
if _eval:
y[below_lower_bound] = np.nan
if _Der:
dydx[below_lower_bound] = np.nan
if self.decay_extrap:
above_upper_bound = x > self.x_list[-1]
x_temp = x[above_upper_bound] - self.x_list[-1]
if _eval:
y[above_upper_bound] = (
self.intercept_limit
+ self.slope_limit * x[above_upper_bound]
- self.decay_extrap_A * np.exp(-self.decay_extrap_B * x_temp)
)
if _Der:
dydx[above_upper_bound] = (
self.slope_limit
+ self.decay_extrap_B
* self.decay_extrap_A
* np.exp(-self.decay_extrap_B * x_temp)
)
output = []
if _eval:
output += [
y,
]
if _Der:
output += [
dydx,
]
return output
def _evaluate(self, x, return_indices=False):
"""
Returns the level of the interpolated function at each value in x. Only
called internally by HARKinterpolator1D.__call__ (etc).
"""
return self._evalOrDer(x, True, False)[0]
def _der(self, x):
"""
Returns the first derivative of the interpolated function at each value
in x. Only called internally by HARKinterpolator1D.derivative (etc).
"""
return self._evalOrDer(x, False, True)[0]
def _evalAndDer(self, x):
"""
Returns the level and first derivative of the function at each value in
x. Only called internally by HARKinterpolator1D.eval_and_der (etc).
"""
y, dydx = self._evalOrDer(x, True, True)
return y, dydx
class CubicInterp(HARKinterpolator1D):
"""
An interpolating function using piecewise cubic splines. Matches level and
slope of 1D function at gridpoints, smoothly interpolating in between.
Extrapolation above highest gridpoint approaches a limiting linear function
if desired (linear extrapolation also enabled.)
NOTE: When no input is given for the limiting linear function, linear
extrapolation is used above the highest gridpoint.
Parameters
----------
x_list : np.array
List of x values composing the grid.
y_list : np.array
List of y values, representing f(x) at the points in x_list.
dydx_list : np.array
List of dydx values, representing f'(x) at the points in x_list
intercept_limit : float
Intercept of limiting linear function.
slope_limit : float
Slope of limiting linear function.
lower_extrap : boolean
Indicator for whether lower extrapolation is allowed. False means
f(x) = NaN for x < min(x_list); True means linear extrapolation.
"""
distance_criteria = ["x_list", "y_list", "dydx_list"]
def __init__(
self,
x_list,
y_list,
dydx_list,
intercept_limit=None,
slope_limit=None,
lower_extrap=False,
):
self.x_list = (
np.asarray(x_list)
if _check_flatten(1, x_list)
else np.array(x_list).flatten()
)
self.y_list = (
np.asarray(y_list)
if _check_flatten(1, y_list)
else np.array(y_list).flatten()
)
self.dydx_list = (
np.asarray(dydx_list)
if _check_flatten(1, dydx_list)
else np.array(dydx_list).flatten()
)
_check_grid_dimensions(1, self.y_list, self.x_list)
_check_grid_dimensions(1, self.dydx_list, self.x_list)
self.n = len(x_list)
# Define lower extrapolation as linear function (or just NaN)
if lower_extrap:
self.coeffs = [[y_list[0], dydx_list[0], 0, 0]]
else:
self.coeffs = [[np.nan, np.nan, np.nan, np.nan]]
# Calculate interpolation coefficients on segments mapped to [0,1]
for i in range(self.n - 1):
x0 = x_list[i]
y0 = y_list[i]
x1 = x_list[i + 1]
y1 = y_list[i + 1]
Span = x1 - x0
dydx0 = dydx_list[i] * Span
dydx1 = dydx_list[i + 1] * Span
temp = [
y0,
dydx0,
3 * (y1 - y0) - 2 * dydx0 - dydx1,
2 * (y0 - y1) + dydx0 + dydx1,
]
self.coeffs.append(temp)
# Calculate extrapolation coefficients as a decay toward limiting function y = mx+b
if slope_limit is None and intercept_limit is None:
slope_limit = dydx_list[-1]
intercept_limit = y_list[-1] - slope_limit * x_list[-1]
gap = slope_limit * x1 + intercept_limit - y1
slope = slope_limit - dydx_list[self.n - 1]
if (gap != 0) and (slope <= 0):
temp = [intercept_limit, slope_limit, gap, slope / gap]
elif slope > 0:
temp = [
intercept_limit,
slope_limit,
0,
0,
] # fixing a problem when slope is positive
else:
temp = [intercept_limit, slope_limit, gap, 0]
self.coeffs.append(temp)
self.coeffs = np.array(self.coeffs)
def _evaluate(self, x):
"""
Returns the level of the interpolated function at each value in x. Only
called internally by HARKinterpolator1D.__call__ (etc).
"""
if _isscalar(x):
pos = np.searchsorted(self.x_list, x)
if pos == 0:
y = self.coeffs[0, 0] + self.coeffs[0, 1] * (x - self.x_list[0])
elif pos < self.n:
alpha = (x - self.x_list[pos - 1]) / (
self.x_list[pos] - self.x_list[pos - 1]
)
y = self.coeffs[pos, 0] + alpha * (
self.coeffs[pos, 1]
+ alpha * (self.coeffs[pos, 2] + alpha * self.coeffs[pos, 3])
)
else:
alpha = x - self.x_list[self.n - 1]
y = (
self.coeffs[pos, 0]
+ x * self.coeffs[pos, 1]
- self.coeffs[pos, 2] * np.exp(alpha * self.coeffs[pos, 3])
)
else:
m = len(x)
pos = np.searchsorted(self.x_list, x)
y = np.zeros(m)
if y.size > 0:
out_bot = pos == 0
out_top = pos == self.n
in_bnds = np.logical_not(np.logical_or(out_bot, out_top))
# Do the "in bounds" evaluation points
i = pos[in_bnds]
coeffs_in = self.coeffs[i, :]
alpha = (x[in_bnds] - self.x_list[i - 1]) / (
self.x_list[i] - self.x_list[i - 1]
)
y[in_bnds] = coeffs_in[:, 0] + alpha * (
coeffs_in[:, 1]
+ alpha * (coeffs_in[:, 2] + alpha * coeffs_in[:, 3])
)
# Do the "out of bounds" evaluation points
y[out_bot] = self.coeffs[0, 0] + self.coeffs[0, 1] * (
x[out_bot] - self.x_list[0]
)
alpha = x[out_top] - self.x_list[self.n - 1]
y[out_top] = (
self.coeffs[self.n, 0]
+ x[out_top] * self.coeffs[self.n, 1]
- self.coeffs[self.n, 2] * np.exp(alpha * self.coeffs[self.n, 3])
)
y[x == self.x_list[0]] = self.y_list[0]
return y
def _der(self, x):
"""
Returns the first derivative of the interpolated function at each value
in x. Only called internally by HARKinterpolator1D.derivative (etc).
"""
if _isscalar(x):
pos = np.searchsorted(self.x_list, x)
if pos == 0:
dydx = self.coeffs[0, 1]
elif pos < self.n:
alpha = (x - self.x_list[pos - 1]) / (
self.x_list[pos] - self.x_list[pos - 1]
)
dydx = (
self.coeffs[pos, 1]
+ alpha
* (2 * self.coeffs[pos, 2] + alpha * 3 * self.coeffs[pos, 3])
) / (self.x_list[pos] - self.x_list[pos - 1])
else:
alpha = x - self.x_list[self.n - 1]
dydx = self.coeffs[pos, 1] - self.coeffs[pos, 2] * self.coeffs[
pos, 3
] * np.exp(alpha * self.coeffs[pos, 3])
else:
m = len(x)
pos = np.searchsorted(self.x_list, x)
dydx = np.zeros(m)
if dydx.size > 0:
out_bot = pos == 0
out_top = pos == self.n
in_bnds = np.logical_not(np.logical_or(out_bot, out_top))
# Do the "in bounds" evaluation points
i = pos[in_bnds]
coeffs_in = self.coeffs[i, :]
alpha = (x[in_bnds] - self.x_list[i - 1]) / (
self.x_list[i] - self.x_list[i - 1]
)
dydx[in_bnds] = (
coeffs_in[:, 1]
+ alpha * (2 * coeffs_in[:, 2] + alpha * 3 * coeffs_in[:, 3])
) / (self.x_list[i] - self.x_list[i - 1])
# Do the "out of bounds" evaluation points
dydx[out_bot] = self.coeffs[0, 1]
alpha = x[out_top] - self.x_list[self.n - 1]
dydx[out_top] = self.coeffs[self.n, 1] - self.coeffs[
self.n, 2
] * self.coeffs[self.n, 3] * np.exp(alpha * self.coeffs[self.n, 3])
return dydx
def _evalAndDer(self, x):
"""
Returns the level and first derivative of the function at each value in
x. Only called internally by HARKinterpolator1D.eval_and_der (etc).
"""
if _isscalar(x):
pos = np.searchsorted(self.x_list, x)
if pos == 0:
y = self.coeffs[0, 0] + self.coeffs[0, 1] * (x - self.x_list[0])
dydx = self.coeffs[0, 1]
elif pos < self.n:
alpha = (x - self.x_list[pos - 1]) / (
self.x_list[pos] - self.x_list[pos - 1]
)
y = self.coeffs[pos, 0] + alpha * (
self.coeffs[pos, 1]
+ alpha * (self.coeffs[pos, 2] + alpha * self.coeffs[pos, 3])
)
dydx = (
self.coeffs[pos, 1]
+ alpha
* (2 * self.coeffs[pos, 2] + alpha * 3 * self.coeffs[pos, 3])
) / (self.x_list[pos] - self.x_list[pos - 1])
else:
alpha = x - self.x_list[self.n - 1]
y = (
self.coeffs[pos, 0]
+ x * self.coeffs[pos, 1]
- self.coeffs[pos, 2] * np.exp(alpha * self.coeffs[pos, 3])
)
dydx = self.coeffs[pos, 1] - self.coeffs[pos, 2] * self.coeffs[
pos, 3
] * np.exp(alpha * self.coeffs[pos, 3])
else:
m = len(x)
pos = np.searchsorted(self.x_list, x)
y = np.zeros(m)
dydx = np.zeros(m)
if y.size > 0:
out_bot = pos == 0
out_top = pos == self.n
in_bnds = np.logical_not(np.logical_or(out_bot, out_top))
# Do the "in bounds" evaluation points
i = pos[in_bnds]
coeffs_in = self.coeffs[i, :]
alpha = (x[in_bnds] - self.x_list[i - 1]) / (
self.x_list[i] - self.x_list[i - 1]
)
y[in_bnds] = coeffs_in[:, 0] + alpha * (
coeffs_in[:, 1]
+ alpha * (coeffs_in[:, 2] + alpha * coeffs_in[:, 3])
)
dydx[in_bnds] = (
coeffs_in[:, 1]
+ alpha * (2 * coeffs_in[:, 2] + alpha * 3 * coeffs_in[:, 3])
) / (self.x_list[i] - self.x_list[i - 1])
# Do the "out of bounds" evaluation points
y[out_bot] = self.coeffs[0, 0] + self.coeffs[0, 1] * (
x[out_bot] - self.x_list[0]
)
dydx[out_bot] = self.coeffs[0, 1]
alpha = x[out_top] - self.x_list[self.n - 1]
y[out_top] = (
self.coeffs[self.n, 0]
+ x[out_top] * self.coeffs[self.n, 1]
- self.coeffs[self.n, 2] * np.exp(alpha * self.coeffs[self.n, 3])
)
dydx[out_top] = self.coeffs[self.n, 1] - self.coeffs[
self.n, 2
] * self.coeffs[self.n, 3] * np.exp(alpha * self.coeffs[self.n, 3])
return y, dydx
class CubicHermiteInterp(HARKinterpolator1D):
"""
An interpolating function using piecewise cubic splines. Matches level and
slope of 1D function at gridpoints, smoothly interpolating in between.
Extrapolation above highest gridpoint approaches a limiting linear function
if desired (linear extrapolation also enabled.)
NOTE: When no input is given for the limiting linear function, linear
extrapolation is used above the highest gridpoint.
Parameters
----------
x_list : np.array
List of x values composing the grid.
y_list : np.array
List of y values, representing f(x) at the points in x_list.
dydx_list : np.array
List of dydx values, representing f'(x) at the points in x_list
intercept_limit : float
Intercept of limiting linear function.
slope_limit : float
Slope of limiting linear function.
lower_extrap : boolean
Indicator for whether lower extrapolation is allowed. False means
f(x) = NaN for x < min(x_list); True means linear extrapolation.
"""
distance_criteria = ["x_list", "y_list", "dydx_list"]
def __init__(
self,
x_list,
y_list,
dydx_list,
intercept_limit=None,
slope_limit=None,
lower_extrap=False,
):
self.x_list = (
np.asarray(x_list)
if _check_flatten(1, x_list)
else np.array(x_list).flatten()
)
self.y_list = (
np.asarray(y_list)
if _check_flatten(1, y_list)
else np.array(y_list).flatten()
)
self.dydx_list = (
np.asarray(dydx_list)
if _check_flatten(1, dydx_list)
else np.array(dydx_list).flatten()
)
_check_grid_dimensions(1, self.y_list, self.x_list)
_check_grid_dimensions(1, self.dydx_list, self.x_list)
self.n = len(x_list)
self._chs = CubicHermiteSpline(
self.x_list, self.y_list, self.dydx_list, extrapolate=None
)
self.coeffs = np.flip(self._chs.c.T, 1)
# Define lower extrapolation as linear function (or just NaN)
if lower_extrap:
temp = np.array([y_list[0], dydx_list[0], 0, 0])
else:
temp = np.array([np.nan, np.nan, np.nan, np.nan])
self.coeffs = np.vstack((temp, self.coeffs))
x1 = x_list[self.n - 1]
y1 = y_list[self.n - 1]
# Calculate extrapolation coefficients as a decay toward limiting function y = mx+b
if slope_limit is None and intercept_limit is None:
slope_limit = dydx_list[-1]
intercept_limit = y_list[-1] - slope_limit * x_list[-1]
gap = slope_limit * x1 + intercept_limit - y1
slope = slope_limit - dydx_list[self.n - 1]
if (gap != 0) and (slope <= 0):
temp = np.array([intercept_limit, slope_limit, gap, slope / gap])
elif slope > 0:
# fixing a problem when slope is positive
temp = np.array([intercept_limit, slope_limit, 0, 0])
else:
temp = np.array([intercept_limit, slope_limit, gap, 0])
self.coeffs = np.vstack((self.coeffs, temp))
def out_of_bounds(self, x):
out_bot = x < self.x_list[0]
out_top = x > self.x_list[-1]
return out_bot, out_top
def _evaluate(self, x):
"""
Returns the level of the interpolated function at each value in x. Only
called internally by HARKinterpolator1D.__call__ (etc).
"""
out_bot, out_top = self.out_of_bounds(x)
return self._eval_helper(x, out_bot, out_top)
def _eval_helper(self, x, out_bot, out_top):
y = self._chs(x)
# Do the "out of bounds" evaluation points
if any(out_bot):
y[out_bot] = self.coeffs[0, 0] + self.coeffs[0, 1] * (
x[out_bot] - self.x_list[0]
)
if any(out_top):
alpha = x[out_top] - self.x_list[self.n - 1]
y[out_top] = (
self.coeffs[self.n, 0]
+ x[out_top] * self.coeffs[self.n, 1]
- self.coeffs[self.n, 2] * np.exp(alpha * self.coeffs[self.n, 3])
)
return y
def _der(self, x):
"""
Returns the first derivative of the interpolated function at each value
in x. Only called internally by HARKinterpolator1D.derivative (etc).
"""
out_bot, out_top = self.out_of_bounds(x)
return self._der_helper(x, out_bot, out_top)
def _der_helper(self, x, out_bot, out_top):
dydx = self._chs(x, nu=1)
# Do the "out of bounds" evaluation points
if any(out_bot):
dydx[out_bot] = self.coeffs[0, 1]
if any(out_top):
alpha = x[out_top] - self.x_list[self.n - 1]
dydx[out_top] = self.coeffs[self.n, 1] - self.coeffs[
self.n, 2
] * self.coeffs[self.n, 3] * np.exp(alpha * self.coeffs[self.n, 3])
return dydx
def _evalAndDer(self, x):
"""
Returns the level and first derivative of the function at each value in
x. Only called internally by HARKinterpolator1D.eval_and_der (etc).
"""
out_bot, out_top = self.out_of_bounds(x)
y = self._eval_helper(x, out_bot, out_top)
dydx = self._der_helper(x, out_bot, out_top)
return y, dydx
class BilinearInterp(HARKinterpolator2D):
"""
Bilinear full (or tensor) grid interpolation of a function f(x,y).
Parameters
----------
f_values : numpy.array
An array of size (x_n,y_n) such that f_values[i,j] = f(x_list[i],y_list[j])
x_list : numpy.array
An array of x values, with length designated x_n.
y_list : numpy.array
An array of y values, with length designated y_n.
xSearchFunc : function
An optional function that returns the reference location for x values:
indices = xSearchFunc(x_list,x). Default is np.searchsorted
ySearchFunc : function
An optional function that returns the reference location for y values:
indices = ySearchFunc(y_list,y). Default is np.searchsorted
"""
distance_criteria = ["x_list", "y_list", "f_values"]
def __init__(self, f_values, x_list, y_list, xSearchFunc=None, ySearchFunc=None):
self.f_values = f_values
self.x_list = (
np.array(x_list)
if _check_flatten(1, x_list)
else np.array(x_list).flatten()
)
self.y_list = (
np.array(y_list)
if _check_flatten(1, y_list)
else np.array(y_list).flatten()
)
_check_grid_dimensions(2, self.f_values, self.x_list, self.y_list)
self.x_n = x_list.size
self.y_n = y_list.size
if xSearchFunc is None:
xSearchFunc = np.searchsorted
if ySearchFunc is None:
ySearchFunc = np.searchsorted
self.xSearchFunc = xSearchFunc
self.ySearchFunc = ySearchFunc
def _evaluate(self, x, y):
"""
Returns the level of the interpolated function at each value in x,y.
Only called internally by HARKinterpolator2D.__call__ (etc).
"""
if _isscalar(x):
x_pos = max(min(self.xSearchFunc(self.x_list, x), self.x_n - 1), 1)
y_pos = max(min(self.ySearchFunc(self.y_list, y), self.y_n - 1), 1)
else:
x_pos = self.xSearchFunc(self.x_list, x)
x_pos[x_pos < 1] = 1
x_pos[x_pos > self.x_n - 1] = self.x_n - 1
y_pos = self.ySearchFunc(self.y_list, y)
y_pos[y_pos < 1] = 1
y_pos[y_pos > self.y_n - 1] = self.y_n - 1
alpha = (x - self.x_list[x_pos - 1]) / (
self.x_list[x_pos] - self.x_list[x_pos - 1]
)
beta = (y - self.y_list[y_pos - 1]) / (
self.y_list[y_pos] - self.y_list[y_pos - 1]
)
f = (
(1 - alpha) * (1 - beta) * self.f_values[x_pos - 1, y_pos - 1]
+ (1 - alpha) * beta * self.f_values[x_pos - 1, y_pos]
+ alpha * (1 - beta) * self.f_values[x_pos, y_pos - 1]
+ alpha * beta * self.f_values[x_pos, y_pos]
)
return f
def _derX(self, x, y):
"""
Returns the derivative with respect to x of the interpolated function
at each value in x,y. Only called internally by HARKinterpolator2D.derivativeX.
"""
if _isscalar(x):
x_pos = max(min(self.xSearchFunc(self.x_list, x), self.x_n - 1), 1)
y_pos = max(min(self.ySearchFunc(self.y_list, y), self.y_n - 1), 1)
else:
x_pos = self.xSearchFunc(self.x_list, x)
x_pos[x_pos < 1] = 1
x_pos[x_pos > self.x_n - 1] = self.x_n - 1
y_pos = self.ySearchFunc(self.y_list, y)
y_pos[y_pos < 1] = 1
y_pos[y_pos > self.y_n - 1] = self.y_n - 1
beta = (y - self.y_list[y_pos - 1]) / (
self.y_list[y_pos] - self.y_list[y_pos - 1]
)
dfdx = (
(
(1 - beta) * self.f_values[x_pos, y_pos - 1]
+ beta * self.f_values[x_pos, y_pos]
)
- (
(1 - beta) * self.f_values[x_pos - 1, y_pos - 1]
+ beta * self.f_values[x_pos - 1, y_pos]
)
) / (self.x_list[x_pos] - self.x_list[x_pos - 1])
return dfdx
def _derY(self, x, y):
"""
Returns the derivative with respect to y of the interpolated function
at each value in x,y. Only called internally by HARKinterpolator2D.derivativeY.
"""
if _isscalar(x):
x_pos = max(min(self.xSearchFunc(self.x_list, x), self.x_n - 1), 1)
y_pos = max(min(self.ySearchFunc(self.y_list, y), self.y_n - 1), 1)
else:
x_pos = self.xSearchFunc(self.x_list, x)
x_pos[x_pos < 1] = 1
x_pos[x_pos > self.x_n - 1] = self.x_n - 1
y_pos = self.ySearchFunc(self.y_list, y)
y_pos[y_pos < 1] = 1
y_pos[y_pos > self.y_n - 1] = self.y_n - 1
alpha = (x - self.x_list[x_pos - 1]) / (
self.x_list[x_pos] - self.x_list[x_pos - 1]
)
dfdy = (
(
(1 - alpha) * self.f_values[x_pos - 1, y_pos]
+ alpha * self.f_values[x_pos, y_pos]
)
- (
(1 - alpha) * self.f_values[x_pos - 1, y_pos - 1]
+ alpha * self.f_values[x_pos, y_pos - 1]
)
) / (self.y_list[y_pos] - self.y_list[y_pos - 1])
return dfdy
class TrilinearInterp(HARKinterpolator3D):
"""
Trilinear full (or tensor) grid interpolation of a function f(x,y,z).
Parameters
----------
f_values : numpy.array
An array of size (x_n,y_n,z_n) such that f_values[i,j,k] =
f(x_list[i],y_list[j],z_list[k])
x_list : numpy.array
An array of x values, with length designated x_n.
y_list : numpy.array
An array of y values, with length designated y_n.
z_list : numpy.array
An array of z values, with length designated z_n.
xSearchFunc : function
An optional function that returns the reference location for x values:
indices = xSearchFunc(x_list,x). Default is np.searchsorted
ySearchFunc : function
An optional function that returns the reference location for y values:
indices = ySearchFunc(y_list,y). Default is np.searchsorted
zSearchFunc : function
An optional function that returns the reference location for z values:
indices = zSearchFunc(z_list,z). Default is np.searchsorted
"""
distance_criteria = ["f_values", "x_list", "y_list", "z_list"]
def __init__(
self,
f_values,
x_list,
y_list,
z_list,
xSearchFunc=None,
ySearchFunc=None,
zSearchFunc=None,
):
self.f_values = f_values
self.x_list = (
np.array(x_list)
if _check_flatten(1, x_list)
else np.array(x_list).flatten()
)
self.y_list = (
np.array(y_list)
if _check_flatten(1, y_list)
else np.array(y_list).flatten()
)
self.z_list = (
np.array(z_list)
if _check_flatten(1, z_list)
else np.array(z_list).flatten()
)
_check_grid_dimensions(3, self.f_values, self.x_list, self.y_list, self.z_list)
self.x_n = x_list.size
self.y_n = y_list.size
self.z_n = z_list.size
if xSearchFunc is None:
xSearchFunc = np.searchsorted
if ySearchFunc is None:
ySearchFunc = np.searchsorted
if zSearchFunc is None:
zSearchFunc = np.searchsorted
self.xSearchFunc = xSearchFunc
self.ySearchFunc = ySearchFunc
self.zSearchFunc = zSearchFunc
def _evaluate(self, x, y, z):
"""
Returns the level of the interpolated function at each value in x,y,z.
Only called internally by HARKinterpolator3D.__call__ (etc).
"""
if _isscalar(x):
x_pos = max(min(self.xSearchFunc(self.x_list, x), self.x_n - 1), 1)
y_pos = max(min(self.ySearchFunc(self.y_list, y), self.y_n - 1), 1)
z_pos = max(min(self.zSearchFunc(self.z_list, z), self.z_n - 1), 1)
else:
x_pos = self.xSearchFunc(self.x_list, x)
x_pos[x_pos < 1] = 1
x_pos[x_pos > self.x_n - 1] = self.x_n - 1
y_pos = self.ySearchFunc(self.y_list, y)
y_pos[y_pos < 1] = 1
y_pos[y_pos > self.y_n - 1] = self.y_n - 1
z_pos = self.zSearchFunc(self.z_list, z)
z_pos[z_pos < 1] = 1
z_pos[z_pos > self.z_n - 1] = self.z_n - 1
alpha = (x - self.x_list[x_pos - 1]) / (
self.x_list[x_pos] - self.x_list[x_pos - 1]
)
beta = (y - self.y_list[y_pos - 1]) / (
self.y_list[y_pos] - self.y_list[y_pos - 1]
)
gamma = (z - self.z_list[z_pos - 1]) / (
self.z_list[z_pos] - self.z_list[z_pos - 1]
)
f = (
(1 - alpha)
* (1 - beta)
* (1 - gamma)
* self.f_values[x_pos - 1, y_pos - 1, z_pos - 1]
+ (1 - alpha)
* (1 - beta)
* gamma
* self.f_values[x_pos - 1, y_pos - 1, z_pos]
+ (1 - alpha)
* beta
* (1 - gamma)
* self.f_values[x_pos - 1, y_pos, z_pos - 1]
+ (1 - alpha) * beta * gamma * self.f_values[x_pos - 1, y_pos, z_pos]
+ alpha
* (1 - beta)
* (1 - gamma)
* self.f_values[x_pos, y_pos - 1, z_pos - 1]
+ alpha * (1 - beta) * gamma * self.f_values[x_pos, y_pos - 1, z_pos]
+ alpha * beta * (1 - gamma) * self.f_values[x_pos, y_pos, z_pos - 1]
+ alpha * beta * gamma * self.f_values[x_pos, y_pos, z_pos]
)
return f
def _derX(self, x, y, z):
"""
Returns the derivative with respect to x of the interpolated function
at each value in x,y,z. Only called internally by HARKinterpolator3D.derivativeX.
"""
if _isscalar(x):
x_pos = max(min(self.xSearchFunc(self.x_list, x), self.x_n - 1), 1)
y_pos = max(min(self.ySearchFunc(self.y_list, y), self.y_n - 1), 1)
z_pos = max(min(self.zSearchFunc(self.z_list, z), self.z_n - 1), 1)
else:
x_pos = self.xSearchFunc(self.x_list, x)
x_pos[x_pos < 1] = 1
x_pos[x_pos > self.x_n - 1] = self.x_n - 1
y_pos = self.ySearchFunc(self.y_list, y)
y_pos[y_pos < 1] = 1
y_pos[y_pos > self.y_n - 1] = self.y_n - 1
z_pos = self.zSearchFunc(self.z_list, z)
z_pos[z_pos < 1] = 1
z_pos[z_pos > self.z_n - 1] = self.z_n - 1
beta = (y - self.y_list[y_pos - 1]) / (
self.y_list[y_pos] - self.y_list[y_pos - 1]
)
gamma = (z - self.z_list[z_pos - 1]) / (
self.z_list[z_pos] - self.z_list[z_pos - 1]
)
dfdx = (
(
(1 - beta) * (1 - gamma) * self.f_values[x_pos, y_pos - 1, z_pos - 1]
+ (1 - beta) * gamma * self.f_values[x_pos, y_pos - 1, z_pos]
+ beta * (1 - gamma) * self.f_values[x_pos, y_pos, z_pos - 1]
+ beta * gamma * self.f_values[x_pos, y_pos, z_pos]
)
- (
(1 - beta)
* (1 - gamma)
* self.f_values[x_pos - 1, y_pos - 1, z_pos - 1]
+ (1 - beta) * gamma * self.f_values[x_pos - 1, y_pos - 1, z_pos]
+ beta * (1 - gamma) * self.f_values[x_pos - 1, y_pos, z_pos - 1]
+ beta * gamma * self.f_values[x_pos - 1, y_pos, z_pos]
)
) / (self.x_list[x_pos] - self.x_list[x_pos - 1])
return dfdx
def _derY(self, x, y, z):
"""
Returns the derivative with respect to y of the interpolated function
at each value in x,y,z. Only called internally by HARKinterpolator3D.derivativeY.
"""
if _isscalar(x):
x_pos = max(min(self.xSearchFunc(self.x_list, x), self.x_n - 1), 1)
y_pos = max(min(self.ySearchFunc(self.y_list, y), self.y_n - 1), 1)
z_pos = max(min(self.zSearchFunc(self.z_list, z), self.z_n - 1), 1)
else:
x_pos = self.xSearchFunc(self.x_list, x)
x_pos[x_pos < 1] = 1
x_pos[x_pos > self.x_n - 1] = self.x_n - 1
y_pos = self.ySearchFunc(self.y_list, y)
y_pos[y_pos < 1] = 1
y_pos[y_pos > self.y_n - 1] = self.y_n - 1
z_pos = self.zSearchFunc(self.z_list, z)
z_pos[z_pos < 1] = 1
z_pos[z_pos > self.z_n - 1] = self.z_n - 1
alpha = (x - self.x_list[x_pos - 1]) / (
self.x_list[x_pos] - self.x_list[x_pos - 1]
)
gamma = (z - self.z_list[z_pos - 1]) / (
self.z_list[z_pos] - self.z_list[z_pos - 1]
)
dfdy = (
(
(1 - alpha) * (1 - gamma) * self.f_values[x_pos - 1, y_pos, z_pos - 1]
+ (1 - alpha) * gamma * self.f_values[x_pos - 1, y_pos, z_pos]
+ alpha * (1 - gamma) * self.f_values[x_pos, y_pos, z_pos - 1]
+ alpha * gamma * self.f_values[x_pos, y_pos, z_pos]
)
- (
(1 - alpha)
* (1 - gamma)
* self.f_values[x_pos - 1, y_pos - 1, z_pos - 1]
+ (1 - alpha) * gamma * self.f_values[x_pos - 1, y_pos - 1, z_pos]
+ alpha * (1 - gamma) * self.f_values[x_pos, y_pos - 1, z_pos - 1]
+ alpha * gamma * self.f_values[x_pos, y_pos - 1, z_pos]
)
) / (self.y_list[y_pos] - self.y_list[y_pos - 1])
return dfdy
def _derZ(self, x, y, z):
"""
Returns the derivative with respect to z of the interpolated function
at each value in x,y,z. Only called internally by HARKinterpolator3D.derivativeZ.
"""
if _isscalar(x):
x_pos = max(min(self.xSearchFunc(self.x_list, x), self.x_n - 1), 1)
y_pos = max(min(self.ySearchFunc(self.y_list, y), self.y_n - 1), 1)
z_pos = max(min(self.zSearchFunc(self.z_list, z), self.z_n - 1), 1)
else:
x_pos = self.xSearchFunc(self.x_list, x)
x_pos[x_pos < 1] = 1
x_pos[x_pos > self.x_n - 1] = self.x_n - 1
y_pos = self.ySearchFunc(self.y_list, y)
y_pos[y_pos < 1] = 1
y_pos[y_pos > self.y_n - 1] = self.y_n - 1
z_pos = self.zSearchFunc(self.z_list, z)
z_pos[z_pos < 1] = 1
z_pos[z_pos > self.z_n - 1] = self.z_n - 1
alpha = (x - self.x_list[x_pos - 1]) / (
self.x_list[x_pos] - self.x_list[x_pos - 1]
)
beta = (y - self.y_list[y_pos - 1]) / (
self.y_list[y_pos] - self.y_list[y_pos - 1]
)
dfdz = (
(
(1 - alpha) * (1 - beta) * self.f_values[x_pos - 1, y_pos - 1, z_pos]
+ (1 - alpha) * beta * self.f_values[x_pos - 1, y_pos, z_pos]
+ alpha * (1 - beta) * self.f_values[x_pos, y_pos - 1, z_pos]
+ alpha * beta * self.f_values[x_pos, y_pos, z_pos]
)
- (
(1 - alpha)
* (1 - beta)
* self.f_values[x_pos - 1, y_pos - 1, z_pos - 1]
+ (1 - alpha) * beta * self.f_values[x_pos - 1, y_pos, z_pos - 1]
+ alpha * (1 - beta) * self.f_values[x_pos, y_pos - 1, z_pos - 1]
+ alpha * beta * self.f_values[x_pos, y_pos, z_pos - 1]
)
) / (self.z_list[z_pos] - self.z_list[z_pos - 1])
return dfdz
class QuadlinearInterp(HARKinterpolator4D):
"""
Quadlinear full (or tensor) grid interpolation of a function f(w,x,y,z).
Parameters
----------
f_values : numpy.array
An array of size (w_n,x_n,y_n,z_n) such that f_values[i,j,k,l] =
f(w_list[i],x_list[j],y_list[k],z_list[l])
w_list : numpy.array
An array of x values, with length designated w_n.
x_list : numpy.array
An array of x values, with length designated x_n.
y_list : numpy.array
An array of y values, with length designated y_n.
z_list : numpy.array
An array of z values, with length designated z_n.
wSearchFunc : function
An optional function that returns the reference location for w values:
indices = wSearchFunc(w_list,w). Default is np.searchsorted
xSearchFunc : function
An optional function that returns the reference location for x values:
indices = xSearchFunc(x_list,x). Default is np.searchsorted
ySearchFunc : function
An optional function that returns the reference location for y values:
indices = ySearchFunc(y_list,y). Default is np.searchsorted
zSearchFunc : function
An optional function that returns the reference location for z values:
indices = zSearchFunc(z_list,z). Default is np.searchsorted
"""
distance_criteria = ["f_values", "w_list", "x_list", "y_list", "z_list"]
def __init__(
self,
f_values,
w_list,
x_list,
y_list,
z_list,
wSearchFunc=None,
xSearchFunc=None,
ySearchFunc=None,
zSearchFunc=None,
):
self.f_values = f_values
self.w_list = (
np.array(w_list)
if _check_flatten(1, w_list)
else np.array(w_list).flatten()
)
self.x_list = (
np.array(x_list)
if _check_flatten(1, x_list)
else np.array(x_list).flatten()
)
self.y_list = (
np.array(y_list)
if _check_flatten(1, y_list)
else np.array(y_list).flatten()
)
self.z_list = (
np.array(z_list)
if _check_flatten(1, z_list)
else np.array(z_list).flatten()
)
_check_grid_dimensions(
4, self.f_values, self.w_list, self.x_list, self.y_list, self.z_list
)
self.w_n = w_list.size
self.x_n = x_list.size
self.y_n = y_list.size
self.z_n = z_list.size
if wSearchFunc is None:
wSearchFunc = np.searchsorted
if xSearchFunc is None:
xSearchFunc = np.searchsorted
if ySearchFunc is None:
ySearchFunc = np.searchsorted
if zSearchFunc is None:
zSearchFunc = np.searchsorted
self.wSearchFunc = wSearchFunc
self.xSearchFunc = xSearchFunc
self.ySearchFunc = ySearchFunc
self.zSearchFunc = zSearchFunc
def _evaluate(self, w, x, y, z):
"""
Returns the level of the interpolated function at each value in x,y,z.
Only called internally by HARKinterpolator4D.__call__ (etc).
"""
if _isscalar(w):
w_pos = max(min(self.wSearchFunc(self.w_list, w), self.w_n - 1), 1)
x_pos = max(min(self.xSearchFunc(self.x_list, x), self.x_n - 1), 1)
y_pos = max(min(self.ySearchFunc(self.y_list, y), self.y_n - 1), 1)
z_pos = max(min(self.zSearchFunc(self.z_list, z), self.z_n - 1), 1)
else:
w_pos = self.wSearchFunc(self.w_list, w)
w_pos[w_pos < 1] = 1
w_pos[w_pos > self.w_n - 1] = self.w_n - 1
x_pos = self.xSearchFunc(self.x_list, x)
x_pos[x_pos < 1] = 1
x_pos[x_pos > self.x_n - 1] = self.x_n - 1
y_pos = self.ySearchFunc(self.y_list, y)
y_pos[y_pos < 1] = 1
y_pos[y_pos > self.y_n - 1] = self.y_n - 1
z_pos = self.zSearchFunc(self.z_list, z)
z_pos[z_pos < 1] = 1
z_pos[z_pos > self.z_n - 1] = self.z_n - 1
i = w_pos # for convenience
j = x_pos
k = y_pos
l = z_pos
alpha = (w - self.w_list[i - 1]) / (self.w_list[i] - self.w_list[i - 1])
beta = (x - self.x_list[j - 1]) / (self.x_list[j] - self.x_list[j - 1])
gamma = (y - self.y_list[k - 1]) / (self.y_list[k] - self.y_list[k - 1])
delta = (z - self.z_list[l - 1]) / (self.z_list[l] - self.z_list[l - 1])
f = (1 - alpha) * (
(1 - beta)
* (
(1 - gamma) * (1 - delta) * self.f_values[i - 1, j - 1, k - 1, l - 1]
+ (1 - gamma) * delta * self.f_values[i - 1, j - 1, k - 1, l]
+ gamma * (1 - delta) * self.f_values[i - 1, j - 1, k, l - 1]
+ gamma * delta * self.f_values[i - 1, j - 1, k, l]
)
+ beta
* (
(1 - gamma) * (1 - delta) * self.f_values[i - 1, j, k - 1, l - 1]
+ (1 - gamma) * delta * self.f_values[i - 1, j, k - 1, l]
+ gamma * (1 - delta) * self.f_values[i - 1, j, k, l - 1]
+ gamma * delta * self.f_values[i - 1, j, k, l]
)
) + alpha * (
(1 - beta)
* (
(1 - gamma) * (1 - delta) * self.f_values[i, j - 1, k - 1, l - 1]
+ (1 - gamma) * delta * self.f_values[i, j - 1, k - 1, l]
+ gamma * (1 - delta) * self.f_values[i, j - 1, k, l - 1]
+ gamma * delta * self.f_values[i, j - 1, k, l]
)
+ beta
* (
(1 - gamma) * (1 - delta) * self.f_values[i, j, k - 1, l - 1]
+ (1 - gamma) * delta * self.f_values[i, j, k - 1, l]
+ gamma * (1 - delta) * self.f_values[i, j, k, l - 1]
+ gamma * delta * self.f_values[i, j, k, l]
)
)
return f
def _derW(self, w, x, y, z):
"""
Returns the derivative with respect to w of the interpolated function
at each value in w,x,y,z. Only called internally by HARKinterpolator4D.derivativeW.
"""
if _isscalar(w):
w_pos = max(min(self.wSearchFunc(self.w_list, w), self.w_n - 1), 1)
x_pos = max(min(self.xSearchFunc(self.x_list, x), self.x_n - 1), 1)
y_pos = max(min(self.ySearchFunc(self.y_list, y), self.y_n - 1), 1)
z_pos = max(min(self.zSearchFunc(self.z_list, z), self.z_n - 1), 1)
else:
w_pos = self.wSearchFunc(self.w_list, w)
w_pos[w_pos < 1] = 1
w_pos[w_pos > self.w_n - 1] = self.w_n - 1
x_pos = self.xSearchFunc(self.x_list, x)
x_pos[x_pos < 1] = 1
x_pos[x_pos > self.x_n - 1] = self.x_n - 1
y_pos = self.ySearchFunc(self.y_list, y)
y_pos[y_pos < 1] = 1
y_pos[y_pos > self.y_n - 1] = self.y_n - 1
z_pos = self.zSearchFunc(self.z_list, z)
z_pos[z_pos < 1] = 1
z_pos[z_pos > self.z_n - 1] = self.z_n - 1
i = w_pos # for convenience
j = x_pos
k = y_pos
l = z_pos
beta = (x - self.x_list[j - 1]) / (self.x_list[j] - self.x_list[j - 1])
gamma = (y - self.y_list[k - 1]) / (self.y_list[k] - self.y_list[k - 1])
delta = (z - self.z_list[l - 1]) / (self.z_list[l] - self.z_list[l - 1])
dfdw = (
(
(1 - beta)
* (1 - gamma)
* (1 - delta)
* self.f_values[i, j - 1, k - 1, l - 1]
+ (1 - beta) * (1 - gamma) * delta * self.f_values[i, j - 1, k - 1, l]
+ (1 - beta) * gamma * (1 - delta) * self.f_values[i, j - 1, k, l - 1]
+ (1 - beta) * gamma * delta * self.f_values[i, j - 1, k, l]
+ beta * (1 - gamma) * (1 - delta) * self.f_values[i, j, k - 1, l - 1]
+ beta * (1 - gamma) * delta * self.f_values[i, j, k - 1, l]
+ beta * gamma * (1 - delta) * self.f_values[i, j, k, l - 1]
+ beta * gamma * delta * self.f_values[i, j, k, l]
)
- (
(1 - beta)
* (1 - gamma)
* (1 - delta)
* self.f_values[i - 1, j - 1, k - 1, l - 1]
+ (1 - beta)
* (1 - gamma)
* delta
* self.f_values[i - 1, j - 1, k - 1, l]
+ (1 - beta)
* gamma
* (1 - delta)
* self.f_values[i - 1, j - 1, k, l - 1]
+ (1 - beta) * gamma * delta * self.f_values[i - 1, j - 1, k, l]
+ beta
* (1 - gamma)
* (1 - delta)
* self.f_values[i - 1, j, k - 1, l - 1]
+ beta * (1 - gamma) * delta * self.f_values[i - 1, j, k - 1, l]
+ beta * gamma * (1 - delta) * self.f_values[i - 1, j, k, l - 1]
+ beta * gamma * delta * self.f_values[i - 1, j, k, l]
)
) / (self.w_list[i] - self.w_list[i - 1])
return dfdw
def _derX(self, w, x, y, z):
"""
Returns the derivative with respect to x of the interpolated function
at each value in w,x,y,z. Only called internally by HARKinterpolator4D.derivativeX.
"""
if _isscalar(w):
w_pos = max(min(self.wSearchFunc(self.w_list, w), self.w_n - 1), 1)
x_pos = max(min(self.xSearchFunc(self.x_list, x), self.x_n - 1), 1)
y_pos = max(min(self.ySearchFunc(self.y_list, y), self.y_n - 1), 1)
z_pos = max(min(self.zSearchFunc(self.z_list, z), self.z_n - 1), 1)
else:
w_pos = self.wSearchFunc(self.w_list, w)
w_pos[w_pos < 1] = 1
w_pos[w_pos > self.w_n - 1] = self.w_n - 1
x_pos = self.xSearchFunc(self.x_list, x)
x_pos[x_pos < 1] = 1
x_pos[x_pos > self.x_n - 1] = self.x_n - 1
y_pos = self.ySearchFunc(self.y_list, y)
y_pos[y_pos < 1] = 1
y_pos[y_pos > self.y_n - 1] = self.y_n - 1
z_pos = self.zSearchFunc(self.z_list, z)
z_pos[z_pos < 1] = 1
z_pos[z_pos > self.z_n - 1] = self.z_n - 1
i = w_pos # for convenience
j = x_pos
k = y_pos
l = z_pos
alpha = (w - self.w_list[i - 1]) / (self.w_list[i] - self.w_list[i - 1])
gamma = (y - self.y_list[k - 1]) / (self.y_list[k] - self.y_list[k - 1])
delta = (z - self.z_list[l - 1]) / (self.z_list[l] - self.z_list[l - 1])
dfdx = (
(
(1 - alpha)
* (1 - gamma)
* (1 - delta)
* self.f_values[i - 1, j, k - 1, l - 1]
+ (1 - alpha) * (1 - gamma) * delta * self.f_values[i - 1, j, k - 1, l]
+ (1 - alpha) * gamma * (1 - delta) * self.f_values[i - 1, j, k, l - 1]
+ (1 - alpha) * gamma * delta * self.f_values[i - 1, j, k, l]
+ alpha * (1 - gamma) * (1 - delta) * self.f_values[i, j, k - 1, l - 1]
+ alpha * (1 - gamma) * delta * self.f_values[i, j, k - 1, l]
+ alpha * gamma * (1 - delta) * self.f_values[i, j, k, l - 1]
+ alpha * gamma * delta * self.f_values[i, j, k, l]
)
- (
(1 - alpha)
* (1 - gamma)
* (1 - delta)
* self.f_values[i - 1, j - 1, k - 1, l - 1]
+ (1 - alpha)
* (1 - gamma)
* delta
* self.f_values[i - 1, j - 1, k - 1, l]
+ (1 - alpha)
* gamma
* (1 - delta)
* self.f_values[i - 1, j - 1, k, l - 1]
+ (1 - alpha) * gamma * delta * self.f_values[i - 1, j - 1, k, l]
+ alpha
* (1 - gamma)
* (1 - delta)
* self.f_values[i, j - 1, k - 1, l - 1]
+ alpha * (1 - gamma) * delta * self.f_values[i, j - 1, k - 1, l]
+ alpha * gamma * (1 - delta) * self.f_values[i, j - 1, k, l - 1]
+ alpha * gamma * delta * self.f_values[i, j - 1, k, l]
)
) / (self.x_list[j] - self.x_list[j - 1])
return dfdx
def _derY(self, w, x, y, z):
"""
Returns the derivative with respect to y of the interpolated function
at each value in w,x,y,z. Only called internally by HARKinterpolator4D.derivativeY.
"""
if _isscalar(w):
w_pos = max(min(self.wSearchFunc(self.w_list, w), self.w_n - 1), 1)
x_pos = max(min(self.xSearchFunc(self.x_list, x), self.x_n - 1), 1)
y_pos = max(min(self.ySearchFunc(self.y_list, y), self.y_n - 1), 1)
z_pos = max(min(self.zSearchFunc(self.z_list, z), self.z_n - 1), 1)
else:
w_pos = self.wSearchFunc(self.w_list, w)
w_pos[w_pos < 1] = 1
w_pos[w_pos > self.w_n - 1] = self.w_n - 1
x_pos = self.xSearchFunc(self.x_list, x)
x_pos[x_pos < 1] = 1
x_pos[x_pos > self.x_n - 1] = self.x_n - 1
y_pos = self.ySearchFunc(self.y_list, y)
y_pos[y_pos < 1] = 1
y_pos[y_pos > self.y_n - 1] = self.y_n - 1
z_pos = self.zSearchFunc(self.z_list, z)
z_pos[z_pos < 1] = 1
z_pos[z_pos > self.z_n - 1] = self.z_n - 1
i = w_pos # for convenience
j = x_pos
k = y_pos
l = z_pos
alpha = (w - self.w_list[i - 1]) / (self.w_list[i] - self.w_list[i - 1])
beta = (x - self.x_list[j - 1]) / (self.x_list[j] - self.x_list[j - 1])
delta = (z - self.z_list[l - 1]) / (self.z_list[l] - self.z_list[l - 1])
dfdy = (
(
(1 - alpha)
* (1 - beta)
* (1 - delta)
* self.f_values[i - 1, j - 1, k, l - 1]
+ (1 - alpha) * (1 - beta) * delta * self.f_values[i - 1, j - 1, k, l]
+ (1 - alpha) * beta * (1 - delta) * self.f_values[i - 1, j, k, l - 1]
+ (1 - alpha) * beta * delta * self.f_values[i - 1, j, k, l]
+ alpha * (1 - beta) * (1 - delta) * self.f_values[i, j - 1, k, l - 1]
+ alpha * (1 - beta) * delta * self.f_values[i, j - 1, k, l]
+ alpha * beta * (1 - delta) * self.f_values[i, j, k, l - 1]
+ alpha * beta * delta * self.f_values[i, j, k, l]
)
- (
(1 - alpha)
* (1 - beta)
* (1 - delta)
* self.f_values[i - 1, j - 1, k - 1, l - 1]
+ (1 - alpha)
* (1 - beta)
* delta
* self.f_values[i - 1, j - 1, k - 1, l]
+ (1 - alpha)
* beta
* (1 - delta)
* self.f_values[i - 1, j, k - 1, l - 1]
+ (1 - alpha) * beta * delta * self.f_values[i - 1, j, k - 1, l]
+ alpha
* (1 - beta)
* (1 - delta)
* self.f_values[i, j - 1, k - 1, l - 1]
+ alpha * (1 - beta) * delta * self.f_values[i, j - 1, k - 1, l]
+ alpha * beta * (1 - delta) * self.f_values[i, j, k - 1, l - 1]
+ alpha * beta * delta * self.f_values[i, j, k - 1, l]
)
) / (self.y_list[k] - self.y_list[k - 1])
return dfdy
def _derZ(self, w, x, y, z):
"""
Returns the derivative with respect to z of the interpolated function
at each value in w,x,y,z. Only called internally by HARKinterpolator4D.derivativeZ.
"""
if _isscalar(w):
w_pos = max(min(self.wSearchFunc(self.w_list, w), self.w_n - 1), 1)
x_pos = max(min(self.xSearchFunc(self.x_list, x), self.x_n - 1), 1)
y_pos = max(min(self.ySearchFunc(self.y_list, y), self.y_n - 1), 1)
z_pos = max(min(self.zSearchFunc(self.z_list, z), self.z_n - 1), 1)
else:
w_pos = self.wSearchFunc(self.w_list, w)
w_pos[w_pos < 1] = 1
w_pos[w_pos > self.w_n - 1] = self.w_n - 1
x_pos = self.xSearchFunc(self.x_list, x)
x_pos[x_pos < 1] = 1
x_pos[x_pos > self.x_n - 1] = self.x_n - 1
y_pos = self.ySearchFunc(self.y_list, y)
y_pos[y_pos < 1] = 1
y_pos[y_pos > self.y_n - 1] = self.y_n - 1
z_pos = self.zSearchFunc(self.z_list, z)
z_pos[z_pos < 1] = 1
z_pos[z_pos > self.z_n - 1] = self.z_n - 1
i = w_pos # for convenience
j = x_pos
k = y_pos
l = z_pos
alpha = (w - self.w_list[i - 1]) / (self.w_list[i] - self.w_list[i - 1])
beta = (x - self.x_list[j - 1]) / (self.x_list[j] - self.x_list[j - 1])
gamma = (y - self.y_list[k - 1]) / (self.y_list[k] - self.y_list[k - 1])
dfdz = (
(
(1 - alpha)
* (1 - beta)
* (1 - gamma)
* self.f_values[i - 1, j - 1, k - 1, l]
+ (1 - alpha) * (1 - beta) * gamma * self.f_values[i - 1, j - 1, k, l]
+ (1 - alpha) * beta * (1 - gamma) * self.f_values[i - 1, j, k - 1, l]
+ (1 - alpha) * beta * gamma * self.f_values[i - 1, j, k, l]
+ alpha * (1 - beta) * (1 - gamma) * self.f_values[i, j - 1, k - 1, l]
+ alpha * (1 - beta) * gamma * self.f_values[i, j - 1, k, l]
+ alpha * beta * (1 - gamma) * self.f_values[i, j, k - 1, l]
+ alpha * beta * gamma * self.f_values[i, j, k, l]
)
- (
(1 - alpha)
* (1 - beta)
* (1 - gamma)
* self.f_values[i - 1, j - 1, k - 1, l - 1]
+ (1 - alpha)
* (1 - beta)
* gamma
* self.f_values[i - 1, j - 1, k, l - 1]
+ (1 - alpha)
* beta
* (1 - gamma)
* self.f_values[i - 1, j, k - 1, l - 1]
+ (1 - alpha) * beta * gamma * self.f_values[i - 1, j, k, l - 1]
+ alpha
* (1 - beta)
* (1 - gamma)
* self.f_values[i, j - 1, k - 1, l - 1]
+ alpha * (1 - beta) * gamma * self.f_values[i, j - 1, k, l - 1]
+ alpha * beta * (1 - gamma) * self.f_values[i, j, k - 1, l - 1]
+ alpha * beta * gamma * self.f_values[i, j, k, l - 1]
)
) / (self.z_list[l] - self.z_list[l - 1])
return dfdz
class LowerEnvelope(HARKinterpolator1D):
"""
The lower envelope of a finite set of 1D functions, each of which can be of
any class that has the methods __call__, derivative, and eval_with_derivative.
Generally: it combines HARKinterpolator1Ds.
Parameters
----------
*functions : function
Any number of real functions; often instances of HARKinterpolator1D
nan_bool : boolean
An indicator for whether the solver should exclude NA's when
forming the lower envelope
"""
distance_criteria = ["functions"]
def __init__(self, *functions, nan_bool=True):
if nan_bool:
self.compare = np.nanmin
self.argcompare = np.nanargmin
else:
self.compare = np.min
self.argcompare = np.argmin
self.functions = []
for function in functions:
self.functions.append(function)
self.funcCount = len(self.functions)
def _evaluate(self, x):
"""
Returns the level of the function at each value in x as the minimum among
all of the functions. Only called internally by HARKinterpolator1D.__call__.
"""
if _isscalar(x):
y = self.compare([f(x) for f in self.functions])
else:
m = len(x)
fx = np.zeros((m, self.funcCount))
for j in range(self.funcCount):
fx[:, j] = self.functions[j](x)
y = self.compare(fx, axis=1)
return y
def _der(self, x):
"""
Returns the first derivative of the function at each value in x. Only
called internally by HARKinterpolator1D.derivative.
"""
y, dydx = self._evalAndDer(x)
return dydx # Sadly, this is the fastest / most convenient way...
def _evalAndDer(self, x):
"""
Returns the level and first derivative of the function at each value in
x. Only called internally by HARKinterpolator1D.eval_and_der.
"""
m = len(x)
fx = np.zeros((m, self.funcCount))
for j in range(self.funcCount):
fx[:, j] = self.functions[j](x)
i = self.argcompare(fx, axis=1)
y = fx[np.arange(m), i]
dydx = np.zeros_like(y)
for j in range(self.funcCount):
c = i == j
dydx[c] = self.functions[j].derivative(x[c])
return y, dydx
class UpperEnvelope(HARKinterpolator1D):
"""
The upper envelope of a finite set of 1D functions, each of which can be of
any class that has the methods __call__, derivative, and eval_with_derivative.
Generally: it combines HARKinterpolator1Ds.
Parameters
----------
*functions : function
Any number of real functions; often instances of HARKinterpolator1D
nan_bool : boolean
An indicator for whether the solver should exclude NA's when forming
the lower envelope.
"""
distance_criteria = ["functions"]
def __init__(self, *functions, nan_bool=True):
if nan_bool:
self.compare = np.nanmax
self.argcompare = np.nanargmax
else:
self.compare = np.max
self.argcompare = np.argmax
self.functions = []
for function in functions:
self.functions.append(function)
self.funcCount = len(self.functions)
def _evaluate(self, x):
"""
Returns the level of the function at each value in x as the maximum among
all of the functions. Only called internally by HARKinterpolator1D.__call__.
"""
if _isscalar(x):
y = self.compare([f(x) for f in self.functions])
else:
m = len(x)
fx = np.zeros((m, self.funcCount))
for j in range(self.funcCount):
fx[:, j] = self.functions[j](x)
y = self.compare(fx, axis=1)
return y
def _der(self, x):
"""
Returns the first derivative of the function at each value in x. Only
called internally by HARKinterpolator1D.derivative.
"""
y, dydx = self._evalAndDer(x)
return dydx # Sadly, this is the fastest / most convenient way...
def _evalAndDer(self, x):
"""
Returns the level and first derivative of the function at each value in
x. Only called internally by HARKinterpolator1D.eval_and_der.
"""
m = len(x)
fx = np.zeros((m, self.funcCount))
for j in range(self.funcCount):
fx[:, j] = self.functions[j](x)
i = self.argcompare(fx, axis=1)
y = fx[np.arange(m), i]
dydx = np.zeros_like(y)
for j in range(self.funcCount):
c = i == j
dydx[c] = self.functions[j].derivative(x[c])
return y, dydx
class LowerEnvelope2D(HARKinterpolator2D):
"""
The lower envelope of a finite set of 2D functions, each of which can be of
any class that has the methods __call__, derivativeX, and derivativeY.
Generally: it combines HARKinterpolator2Ds.
Parameters
----------
*functions : function
Any number of real functions; often instances of HARKinterpolator2D
nan_bool : boolean
An indicator for whether the solver should exclude NA's when forming
the lower envelope.
"""
distance_criteria = ["functions"]
def __init__(self, *functions, nan_bool=True):
if nan_bool:
self.compare = np.nanmin
self.argcompare = np.nanargmin
else:
self.compare = np.min
self.argcompare = np.argmin
self.functions = []
for function in functions:
self.functions.append(function)
self.funcCount = len(self.functions)
def _evaluate(self, x, y):
"""
Returns the level of the function at each value in (x,y) as the minimum
among all of the functions. Only called internally by
HARKinterpolator2D.__call__.
"""
if _isscalar(x):
f = self.compare([f(x, y) for f in self.functions])
else:
m = len(x)
temp = np.zeros((m, self.funcCount))
for j in range(self.funcCount):
temp[:, j] = self.functions[j](x, y)
f = self.compare(temp, axis=1)
return f
def _derX(self, x, y):
"""
Returns the first derivative of the function with respect to X at each
value in (x,y). Only called internally by HARKinterpolator2D._derX.
"""
m = len(x)
temp = np.zeros((m, self.funcCount))
for j in range(self.funcCount):
temp[:, j] = self.functions[j](x, y)
i = self.argcompare(temp, axis=1)
dfdx = np.zeros_like(x)
for j in range(self.funcCount):
c = i == j
dfdx[c] = self.functions[j].derivativeX(x[c], y[c])
return dfdx
def _derY(self, x, y):
"""
Returns the first derivative of the function with respect to Y at each
value in (x,y). Only called internally by HARKinterpolator2D._derY.
"""
m = len(x)
temp = np.zeros((m, self.funcCount))
for j in range(self.funcCount):
temp[:, j] = self.functions[j](x, y)
i = self.argcompare(temp, axis=1)
y = temp[np.arange(m), i]
dfdy = np.zeros_like(x)
for j in range(self.funcCount):
c = i == j
dfdy[c] = self.functions[j].derivativeY(x[c], y[c])
return dfdy
class LowerEnvelope3D(HARKinterpolator3D):
"""
The lower envelope of a finite set of 3D functions, each of which can be of
any class that has the methods __call__, derivativeX, derivativeY, and
derivativeZ. Generally: it combines HARKinterpolator2Ds.
Parameters
----------
*functions : function
Any number of real functions; often instances of HARKinterpolator3D
nan_bool : boolean
An indicator for whether the solver should exclude NA's when forming
the lower envelope.
"""
distance_criteria = ["functions"]
def __init__(self, *functions, nan_bool=True):
if nan_bool:
self.compare = np.nanmin
self.argcompare = np.nanargmin
else:
self.compare = np.min
self.argcompare = np.argmin
self.functions = []
for function in functions:
self.functions.append(function)
self.funcCount = len(self.functions)
def _evaluate(self, x, y, z):
"""
Returns the level of the function at each value in (x,y,z) as the minimum
among all of the functions. Only called internally by
HARKinterpolator3D.__call__.
"""
if _isscalar(x):
f = self.compare([f(x, y, z) for f in self.functions])
else:
m = len(x)
temp = np.zeros((m, self.funcCount))
for j in range(self.funcCount):
temp[:, j] = self.functions[j](x, y, z)
f = self.compare(temp, axis=1)
return f
def _derX(self, x, y, z):
"""
Returns the first derivative of the function with respect to X at each
value in (x,y,z). Only called internally by HARKinterpolator3D._derX.
"""
m = len(x)
temp = np.zeros((m, self.funcCount))
for j in range(self.funcCount):
temp[:, j] = self.functions[j](x, y, z)
i = self.argcompare(temp, axis=1)
dfdx = np.zeros_like(x)
for j in range(self.funcCount):
c = i == j
dfdx[c] = self.functions[j].derivativeX(x[c], y[c], z[c])
return dfdx
def _derY(self, x, y, z):
"""
Returns the first derivative of the function with respect to Y at each
value in (x,y,z). Only called internally by HARKinterpolator3D._derY.
"""
m = len(x)
temp = np.zeros((m, self.funcCount))
for j in range(self.funcCount):
temp[:, j] = self.functions[j](x, y, z)
i = self.argcompare(temp, axis=1)
y = temp[np.arange(m), i]
dfdy = np.zeros_like(x)
for j in range(self.funcCount):
c = i == j
dfdy[c] = self.functions[j].derivativeY(x[c], y[c], z[c])
return dfdy
def _derZ(self, x, y, z):
"""
Returns the first derivative of the function with respect to Z at each
value in (x,y,z). Only called internally by HARKinterpolator3D._derZ.
"""
m = len(x)
temp = np.zeros((m, self.funcCount))
for j in range(self.funcCount):
temp[:, j] = self.functions[j](x, y, z)
i = self.argcompare(temp, axis=1)
y = temp[np.arange(m), i]
dfdz = np.zeros_like(x)
for j in range(self.funcCount):
c = i == j
dfdz[c] = self.functions[j].derivativeZ(x[c], y[c], z[c])
return dfdz
class VariableLowerBoundFunc2D(MetricObject):
"""
A class for representing a function with two real inputs whose lower bound
in the first input depends on the second input. Useful for managing curved
natural borrowing constraints, as occurs in the persistent shocks model.
Parameters
----------
func : function
A function f: (R_+ x R) --> R representing the function of interest
shifted by its lower bound in the first input.
lowerBound : function
The lower bound in the first input of the function of interest, as
a function of the second input.
"""
distance_criteria = ["func", "lowerBound"]
def __init__(self, func, lowerBound):
self.func = func
self.lowerBound = lowerBound
def __call__(self, x, y):
"""
Evaluate the function at given state space points.
Parameters
----------
x : np.array
First input values.
y : np.array
Second input values; should be of same shape as x.
Returns
-------
f_out : np.array
Function evaluated at (x,y), of same shape as inputs.
"""
xShift = self.lowerBound(y)
f_out = self.func(x - xShift, y)
return f_out
def derivativeX(self, x, y):
"""
Evaluate the first derivative with respect to x of the function at given
state space points.
Parameters
----------
x : np.array
First input values.
y : np.array
Second input values; should be of same shape as x.
Returns
-------
dfdx_out : np.array
First derivative of function with respect to the first input,
evaluated at (x,y), of same shape as inputs.
"""
xShift = self.lowerBound(y)
dfdx_out = self.func.derivativeX(x - xShift, y)
return dfdx_out
def derivativeY(self, x, y):
"""
Evaluate the first derivative with respect to y of the function at given
state space points.
Parameters
----------
x : np.array
First input values.
y : np.array
Second input values; should be of same shape as x.
Returns
-------
dfdy_out : np.array
First derivative of function with respect to the second input,
evaluated at (x,y), of same shape as inputs.
"""
xShift, xShiftDer = self.lowerBound.eval_with_derivative(y)
dfdy_out = self.func.derivativeY(
x - xShift, y
) - xShiftDer * self.func.derivativeX(x - xShift, y)
return dfdy_out
class VariableLowerBoundFunc3D(MetricObject):
"""
A class for representing a function with three real inputs whose lower bound
in the first input depends on the second input. Useful for managing curved
natural borrowing constraints.
Parameters
----------
func : function
A function f: (R_+ x R^2) --> R representing the function of interest
shifted by its lower bound in the first input.
lowerBound : function
The lower bound in the first input of the function of interest, as
a function of the second input.
"""
distance_criteria = ["func", "lowerBound"]
def __init__(self, func, lowerBound):
self.func = func
self.lowerBound = lowerBound
def __call__(self, x, y, z):
"""
Evaluate the function at given state space points.
Parameters
----------
x : np.array
First input values.
y : np.array
Second input values; should be of same shape as x.
z : np.array
Third input values; should be of same shape as x.
Returns
-------
f_out : np.array
Function evaluated at (x,y,z), of same shape as inputs.
"""
xShift = self.lowerBound(y)
f_out = self.func(x - xShift, y, z)
return f_out
def derivativeX(self, x, y, z):
"""
Evaluate the first derivative with respect to x of the function at given
state space points.
Parameters
----------
x : np.array
First input values.
y : np.array
Second input values; should be of same shape as x.
z : np.array
Third input values; should be of same shape as x.
Returns
-------
dfdx_out : np.array
First derivative of function with respect to the first input,
evaluated at (x,y,z), of same shape as inputs.
"""
xShift = self.lowerBound(y)
dfdx_out = self.func.derivativeX(x - xShift, y, z)
return dfdx_out
def derivativeY(self, x, y, z):
"""
Evaluate the first derivative with respect to y of the function at given
state space points.
Parameters
----------
x : np.array
First input values.
y : np.array
Second input values; should be of same shape as x.
z : np.array
Third input values; should be of same shape as x.
Returns
-------
dfdy_out : np.array
First derivative of function with respect to the second input,
evaluated at (x,y,z), of same shape as inputs.
"""
xShift, xShiftDer = self.lowerBound.eval_with_derivative(y)
dfdy_out = self.func.derivativeY(
x - xShift, y, z
) - xShiftDer * self.func.derivativeX(x - xShift, y, z)
return dfdy_out
def derivativeZ(self, x, y, z):
"""
Evaluate the first derivative with respect to z of the function at given
state space points.
Parameters
----------
x : np.array
First input values.
y : np.array
Second input values; should be of same shape as x.
z : np.array
Third input values; should be of same shape as x.
Returns
-------
dfdz_out : np.array
First derivative of function with respect to the third input,
evaluated at (x,y,z), of same shape as inputs.
"""
xShift = self.lowerBound(y)
dfdz_out = self.func.derivativeZ(x - xShift, y, z)
return dfdz_out
class LinearInterpOnInterp1D(HARKinterpolator2D):
"""
A 2D interpolator that linearly interpolates among a list of 1D interpolators.
Parameters
----------
xInterpolators : [HARKinterpolator1D]
A list of 1D interpolations over the x variable. The nth element of
xInterpolators represents f(x,y_values[n]).
y_values: numpy.array
An array of y values equal in length to xInterpolators.
"""
distance_criteria = ["xInterpolators", "y_list"]
def __init__(self, xInterpolators, y_values):
self.xInterpolators = xInterpolators
self.y_list = y_values
self.y_n = y_values.size
def _evaluate(self, x, y):
"""
Returns the level of the interpolated function at each value in x,y.
Only called internally by HARKinterpolator2D.__call__ (etc).
"""
if _isscalar(x):
y_pos = max(min(np.searchsorted(self.y_list, y), self.y_n - 1), 1)
alpha = (y - self.y_list[y_pos - 1]) / (
self.y_list[y_pos] - self.y_list[y_pos - 1]
)
f = (1 - alpha) * self.xInterpolators[y_pos - 1](
x
) + alpha * self.xInterpolators[y_pos](x)
else:
m = len(x)
y_pos = np.searchsorted(self.y_list, y)
y_pos[y_pos > self.y_n - 1] = self.y_n - 1
y_pos[y_pos < 1] = 1
f = np.zeros(m) + np.nan
if y.size > 0:
for i in range(1, self.y_n):
c = y_pos == i
if np.any(c):
alpha = (y[c] - self.y_list[i - 1]) / (
self.y_list[i] - self.y_list[i - 1]
)
f[c] = (1 - alpha) * self.xInterpolators[i - 1](
x[c]
) + alpha * self.xInterpolators[i](x[c])
return f
def _derX(self, x, y):
"""
Returns the derivative with respect to x of the interpolated function
at each value in x,y. Only called internally by HARKinterpolator2D.derivativeX.
"""
if _isscalar(x):
y_pos = max(min(np.searchsorted(self.y_list, y), self.y_n - 1), 1)
alpha = (y - self.y_list[y_pos - 1]) / (
self.y_list[y_pos] - self.y_list[y_pos - 1]
)
dfdx = (1 - alpha) * self.xInterpolators[y_pos - 1]._der(
x
) + alpha * self.xInterpolators[y_pos]._der(x)
else:
m = len(x)
y_pos = np.searchsorted(self.y_list, y)
y_pos[y_pos > self.y_n - 1] = self.y_n - 1
y_pos[y_pos < 1] = 1
dfdx = np.zeros(m) + np.nan
if y.size > 0:
for i in range(1, self.y_n):
c = y_pos == i
if np.any(c):
alpha = (y[c] - self.y_list[i - 1]) / (
self.y_list[i] - self.y_list[i - 1]
)
dfdx[c] = (1 - alpha) * self.xInterpolators[i - 1]._der(
x[c]
) + alpha * self.xInterpolators[i]._der(x[c])
return dfdx
def _derY(self, x, y):
"""
Returns the derivative with respect to y of the interpolated function
at each value in x,y. Only called internally by HARKinterpolator2D.derivativeY.
"""
if _isscalar(x):
y_pos = max(min(np.searchsorted(self.y_list, y), self.y_n - 1), 1)
dfdy = (
self.xInterpolators[y_pos](x) - self.xInterpolators[y_pos - 1](x)
) / (self.y_list[y_pos] - self.y_list[y_pos - 1])
else:
m = len(x)
y_pos = np.searchsorted(self.y_list, y)
y_pos[y_pos > self.y_n - 1] = self.y_n - 1
y_pos[y_pos < 1] = 1
dfdy = np.zeros(m) + np.nan
if y.size > 0:
for i in range(1, self.y_n):
c = y_pos == i
if np.any(c):
dfdy[c] = (
self.xInterpolators[i](x[c])
- self.xInterpolators[i - 1](x[c])
) / (self.y_list[i] - self.y_list[i - 1])
return dfdy
class BilinearInterpOnInterp1D(HARKinterpolator3D):
"""
A 3D interpolator that bilinearly interpolates among a list of lists of 1D
interpolators.
Constructor for the class, generating an approximation to a function of
the form f(x,y,z) using interpolations over f(x,y_0,z_0) for a fixed grid
of y_0 and z_0 values.
Parameters
----------
xInterpolators : [[HARKinterpolator1D]]
A list of lists of 1D interpolations over the x variable. The i,j-th
element of xInterpolators represents f(x,y_values[i],z_values[j]).
y_values: numpy.array
An array of y values equal in length to xInterpolators.
z_values: numpy.array
An array of z values equal in length to xInterpolators[0].
"""
distance_criteria = ["xInterpolators", "y_list", "z_list"]
def __init__(self, xInterpolators, y_values, z_values):
self.xInterpolators = xInterpolators
self.y_list = y_values
self.y_n = y_values.size
self.z_list = z_values
self.z_n = z_values.size
def _evaluate(self, x, y, z):
"""
Returns the level of the interpolated function at each value in x,y,z.
Only called internally by HARKinterpolator3D.__call__ (etc).
"""
if _isscalar(x):
y_pos = max(min(np.searchsorted(self.y_list, y), self.y_n - 1), 1)
z_pos = max(min(np.searchsorted(self.z_list, z), self.z_n - 1), 1)
alpha = (y - self.y_list[y_pos - 1]) / (
self.y_list[y_pos] - self.y_list[y_pos - 1]
)
beta = (z - self.z_list[z_pos - 1]) / (
self.z_list[z_pos] - self.z_list[z_pos - 1]
)
f = (
(1 - alpha) * (1 - beta) * self.xInterpolators[y_pos - 1][z_pos - 1](x)
+ (1 - alpha) * beta * self.xInterpolators[y_pos - 1][z_pos](x)
+ alpha * (1 - beta) * self.xInterpolators[y_pos][z_pos - 1](x)
+ alpha * beta * self.xInterpolators[y_pos][z_pos](x)
)
else:
m = len(x)
y_pos = np.searchsorted(self.y_list, y)
y_pos[y_pos > self.y_n - 1] = self.y_n - 1
y_pos[y_pos < 1] = 1
z_pos = np.searchsorted(self.z_list, z)
z_pos[z_pos > self.z_n - 1] = self.z_n - 1
z_pos[z_pos < 1] = 1
f = np.zeros(m) + np.nan
for i in range(1, self.y_n):
for j in range(1, self.z_n):
c = np.logical_and(i == y_pos, j == z_pos)
if np.any(c):
alpha = (y[c] - self.y_list[i - 1]) / (
self.y_list[i] - self.y_list[i - 1]
)
beta = (z[c] - self.z_list[j - 1]) / (
self.z_list[j] - self.z_list[j - 1]
)
f[c] = (
(1 - alpha)
* (1 - beta)
* self.xInterpolators[i - 1][j - 1](x[c])
+ (1 - alpha) * beta * self.xInterpolators[i - 1][j](x[c])
+ alpha * (1 - beta) * self.xInterpolators[i][j - 1](x[c])
+ alpha * beta * self.xInterpolators[i][j](x[c])
)
return f
def _derX(self, x, y, z):
"""
Returns the derivative with respect to x of the interpolated function
at each value in x,y,z. Only called internally by HARKinterpolator3D.derivativeX.
"""
if _isscalar(x):
y_pos = max(min(np.searchsorted(self.y_list, y), self.y_n - 1), 1)
z_pos = max(min(np.searchsorted(self.z_list, z), self.z_n - 1), 1)
alpha = (y - self.y_list[y_pos - 1]) / (
self.y_list[y_pos] - self.y_list[y_pos - 1]
)
beta = (z - self.z_list[z_pos - 1]) / (
self.z_list[z_pos] - self.z_list[z_pos - 1]
)
dfdx = (
(1 - alpha)
* (1 - beta)
* self.xInterpolators[y_pos - 1][z_pos - 1]._der(x)
+ (1 - alpha) * beta * self.xInterpolators[y_pos - 1][z_pos]._der(x)
+ alpha * (1 - beta) * self.xInterpolators[y_pos][z_pos - 1]._der(x)
+ alpha * beta * self.xInterpolators[y_pos][z_pos]._der(x)
)
else:
m = len(x)
y_pos = np.searchsorted(self.y_list, y)
y_pos[y_pos > self.y_n - 1] = self.y_n - 1
y_pos[y_pos < 1] = 1
z_pos = np.searchsorted(self.z_list, z)
z_pos[z_pos > self.z_n - 1] = self.z_n - 1
z_pos[z_pos < 1] = 1
dfdx = np.zeros(m) + np.nan
for i in range(1, self.y_n):
for j in range(1, self.z_n):
c = np.logical_and(i == y_pos, j == z_pos)
if np.any(c):
alpha = (y[c] - self.y_list[i - 1]) / (
self.y_list[i] - self.y_list[i - 1]
)
beta = (z[c] - self.z_list[j - 1]) / (
self.z_list[j] - self.z_list[j - 1]
)
dfdx[c] = (
(1 - alpha)
* (1 - beta)
* self.xInterpolators[i - 1][j - 1]._der(x[c])
+ (1 - alpha)
* beta
* self.xInterpolators[i - 1][j]._der(x[c])
+ alpha
* (1 - beta)
* self.xInterpolators[i][j - 1]._der(x[c])
+ alpha * beta * self.xInterpolators[i][j]._der(x[c])
)
return dfdx
def _derY(self, x, y, z):
"""
Returns the derivative with respect to y of the interpolated function
at each value in x,y,z. Only called internally by HARKinterpolator3D.derivativeY.
"""
if _isscalar(x):
y_pos = max(min(np.searchsorted(self.y_list, y), self.y_n - 1), 1)
z_pos = max(min(np.searchsorted(self.z_list, z), self.z_n - 1), 1)
beta = (z - self.z_list[z_pos - 1]) / (
self.z_list[z_pos] - self.z_list[z_pos - 1]
)
dfdy = (
(
(1 - beta) * self.xInterpolators[y_pos][z_pos - 1](x)
+ beta * self.xInterpolators[y_pos][z_pos](x)
)
- (
(1 - beta) * self.xInterpolators[y_pos - 1][z_pos - 1](x)
+ beta * self.xInterpolators[y_pos - 1][z_pos](x)
)
) / (self.y_list[y_pos] - self.y_list[y_pos - 1])
else:
m = len(x)
y_pos = np.searchsorted(self.y_list, y)
y_pos[y_pos > self.y_n - 1] = self.y_n - 1
y_pos[y_pos < 1] = 1
z_pos = np.searchsorted(self.z_list, z)
z_pos[z_pos > self.z_n - 1] = self.z_n - 1
z_pos[z_pos < 1] = 1
dfdy = np.zeros(m) + np.nan
for i in range(1, self.y_n):
for j in range(1, self.z_n):
c = np.logical_and(i == y_pos, j == z_pos)
if np.any(c):
beta = (z[c] - self.z_list[j - 1]) / (
self.z_list[j] - self.z_list[j - 1]
)
dfdy[c] = (
(
(1 - beta) * self.xInterpolators[i][j - 1](x[c])
+ beta * self.xInterpolators[i][j](x[c])
)
- (
(1 - beta) * self.xInterpolators[i - 1][j - 1](x[c])
+ beta * self.xInterpolators[i - 1][j](x[c])
)
) / (self.y_list[i] - self.y_list[i - 1])
return dfdy
def _derZ(self, x, y, z):
"""
Returns the derivative with respect to z of the interpolated function
at each value in x,y,z. Only called internally by HARKinterpolator3D.derivativeZ.
"""
if _isscalar(x):
y_pos = max(min(np.searchsorted(self.y_list, y), self.y_n - 1), 1)
z_pos = max(min(np.searchsorted(self.z_list, z), self.z_n - 1), 1)
alpha = (y - self.y_list[y_pos - 1]) / (
self.y_list[y_pos] - self.y_list[y_pos - 1]
)
dfdz = (
(
(1 - alpha) * self.xInterpolators[y_pos - 1][z_pos](x)
+ alpha * self.xInterpolators[y_pos][z_pos](x)
)
- (
(1 - alpha) * self.xInterpolators[y_pos - 1][z_pos - 1](x)
+ alpha * self.xInterpolators[y_pos][z_pos - 1](x)
)
) / (self.z_list[z_pos] - self.z_list[z_pos - 1])
else:
m = len(x)
y_pos = np.searchsorted(self.y_list, y)
y_pos[y_pos > self.y_n - 1] = self.y_n - 1
y_pos[y_pos < 1] = 1
z_pos = np.searchsorted(self.z_list, z)
z_pos[z_pos > self.z_n - 1] = self.z_n - 1
z_pos[z_pos < 1] = 1
dfdz = np.zeros(m) + np.nan
for i in range(1, self.y_n):
for j in range(1, self.z_n):
c = np.logical_and(i == y_pos, j == z_pos)
if np.any(c):
alpha = (y[c] - self.y_list[i - 1]) / (
self.y_list[i] - self.y_list[i - 1]
)
dfdz[c] = (
(
(1 - alpha) * self.xInterpolators[i - 1][j](x[c])
+ alpha * self.xInterpolators[i][j](x[c])
)
- (
(1 - alpha) * self.xInterpolators[i - 1][j - 1](x[c])
+ alpha * self.xInterpolators[i][j - 1](x[c])
)
) / (self.z_list[j] - self.z_list[j - 1])
return dfdz
class TrilinearInterpOnInterp1D(HARKinterpolator4D):
"""
A 4D interpolator that trilinearly interpolates among a list of lists of 1D interpolators.
Constructor for the class, generating an approximation to a function of
the form f(w,x,y,z) using interpolations over f(w,x_0,y_0,z_0) for a fixed
grid of y_0 and z_0 values.
Parameters
----------
wInterpolators : [[[HARKinterpolator1D]]]
A list of lists of lists of 1D interpolations over the x variable.
The i,j,k-th element of wInterpolators represents f(w,x_values[i],y_values[j],z_values[k]).
x_values: numpy.array
An array of x values equal in length to wInterpolators.
y_values: numpy.array
An array of y values equal in length to wInterpolators[0].
z_values: numpy.array
An array of z values equal in length to wInterpolators[0][0]
"""
distance_criteria = ["wInterpolators", "x_list", "y_list", "z_list"]
def __init__(self, wInterpolators, x_values, y_values, z_values):
self.wInterpolators = wInterpolators
self.x_list = x_values
self.x_n = x_values.size
self.y_list = y_values
self.y_n = y_values.size
self.z_list = z_values
self.z_n = z_values.size
def _evaluate(self, w, x, y, z):
"""
Returns the level of the interpolated function at each value in w,x,y,z.
Only called internally by HARKinterpolator4D.__call__ (etc).
"""
if _isscalar(w):
x_pos = max(min(np.searchsorted(self.x_list, x), self.x_n - 1), 1)
y_pos = max(min(np.searchsorted(self.y_list, y), self.y_n - 1), 1)
z_pos = max(min(np.searchsorted(self.z_list, z), self.z_n - 1), 1)
alpha = (x - self.x_list[x_pos - 1]) / (
self.x_list[x_pos] - self.x_list[x_pos - 1]
)
beta = (y - self.y_list[y_pos - 1]) / (
self.y_list[y_pos] - self.y_list[y_pos - 1]
)
gamma = (z - self.z_list[z_pos - 1]) / (
self.z_list[z_pos] - self.z_list[z_pos - 1]
)
f = (
(1 - alpha)
* (1 - beta)
* (1 - gamma)
* self.wInterpolators[x_pos - 1][y_pos - 1][z_pos - 1](w)
+ (1 - alpha)
* (1 - beta)
* gamma
* self.wInterpolators[x_pos - 1][y_pos - 1][z_pos](w)
+ (1 - alpha)
* beta
* (1 - gamma)
* self.wInterpolators[x_pos - 1][y_pos][z_pos - 1](w)
+ (1 - alpha)
* beta
* gamma
* self.wInterpolators[x_pos - 1][y_pos][z_pos](w)
+ alpha
* (1 - beta)
* (1 - gamma)
* self.wInterpolators[x_pos][y_pos - 1][z_pos - 1](w)
+ alpha
* (1 - beta)
* gamma
* self.wInterpolators[x_pos][y_pos - 1][z_pos](w)
+ alpha
* beta
* (1 - gamma)
* self.wInterpolators[x_pos][y_pos][z_pos - 1](w)
+ alpha * beta * gamma * self.wInterpolators[x_pos][y_pos][z_pos](w)
)
else:
m = len(x)
x_pos = np.searchsorted(self.x_list, x)
x_pos[x_pos > self.x_n - 1] = self.x_n - 1
y_pos = np.searchsorted(self.y_list, y)
y_pos[y_pos > self.y_n - 1] = self.y_n - 1
y_pos[y_pos < 1] = 1
z_pos = np.searchsorted(self.z_list, z)
z_pos[z_pos > self.z_n - 1] = self.z_n - 1
z_pos[z_pos < 1] = 1
f = np.zeros(m) + np.nan
for i in range(1, self.x_n):
for j in range(1, self.y_n):
for k in range(1, self.z_n):
c = np.logical_and(
np.logical_and(i == x_pos, j == y_pos), k == z_pos
)
if np.any(c):
alpha = (x[c] - self.x_list[i - 1]) / (
self.x_list[i] - self.x_list[i - 1]
)
beta = (y[c] - self.y_list[j - 1]) / (
self.y_list[j] - self.y_list[j - 1]
)
gamma = (z[c] - self.z_list[k - 1]) / (
self.z_list[k] - self.z_list[k - 1]
)
f[c] = (
(1 - alpha)
* (1 - beta)
* (1 - gamma)
* self.wInterpolators[i - 1][j - 1][k - 1](w[c])
+ (1 - alpha)
* (1 - beta)
* gamma
* self.wInterpolators[i - 1][j - 1][k](w[c])
+ (1 - alpha)
* beta
* (1 - gamma)
* self.wInterpolators[i - 1][j][k - 1](w[c])
+ (1 - alpha)
* beta
* gamma
* self.wInterpolators[i - 1][j][k](w[c])
+ alpha
* (1 - beta)
* (1 - gamma)
* self.wInterpolators[i][j - 1][k - 1](w[c])
+ alpha
* (1 - beta)
* gamma
* self.wInterpolators[i][j - 1][k](w[c])
+ alpha
* beta
* (1 - gamma)
* self.wInterpolators[i][j][k - 1](w[c])
+ alpha
* beta
* gamma
* self.wInterpolators[i][j][k](w[c])
)
return f
def _derW(self, w, x, y, z):
"""
Returns the derivative with respect to w of the interpolated function
at each value in w,x,y,z. Only called internally by HARKinterpolator4D.derivativeW.
"""
if _isscalar(w):
x_pos = max(min(np.searchsorted(self.x_list, x), self.x_n - 1), 1)
y_pos = max(min(np.searchsorted(self.y_list, y), self.y_n - 1), 1)
z_pos = max(min(np.searchsorted(self.z_list, z), self.z_n - 1), 1)
alpha = (x - self.x_list[x_pos - 1]) / (
self.x_list[x_pos] - self.x_list[x_pos - 1]
)
beta = (y - self.y_list[y_pos - 1]) / (
self.y_list[y_pos] - self.y_list[y_pos - 1]
)
gamma = (z - self.z_list[z_pos - 1]) / (
self.z_list[z_pos] - self.z_list[z_pos - 1]
)
dfdw = (
(1 - alpha)
* (1 - beta)
* (1 - gamma)
* self.wInterpolators[x_pos - 1][y_pos - 1][z_pos - 1]._der(w)
+ (1 - alpha)
* (1 - beta)
* gamma
* self.wInterpolators[x_pos - 1][y_pos - 1][z_pos]._der(w)
+ (1 - alpha)
* beta
* (1 - gamma)
* self.wInterpolators[x_pos - 1][y_pos][z_pos - 1]._der(w)
+ (1 - alpha)
* beta
* gamma
* self.wInterpolators[x_pos - 1][y_pos][z_pos]._der(w)
+ alpha
* (1 - beta)
* (1 - gamma)
* self.wInterpolators[x_pos][y_pos - 1][z_pos - 1]._der(w)
+ alpha
* (1 - beta)
* gamma
* self.wInterpolators[x_pos][y_pos - 1][z_pos]._der(w)
+ alpha
* beta
* (1 - gamma)
* self.wInterpolators[x_pos][y_pos][z_pos - 1]._der(w)
+ alpha
* beta
* gamma
* self.wInterpolators[x_pos][y_pos][z_pos]._der(w)
)
else:
m = len(x)
x_pos = np.searchsorted(self.x_list, x)
x_pos[x_pos > self.x_n - 1] = self.x_n - 1
y_pos = np.searchsorted(self.y_list, y)
y_pos[y_pos > self.y_n - 1] = self.y_n - 1
y_pos[y_pos < 1] = 1
z_pos = np.searchsorted(self.z_list, z)
z_pos[z_pos > self.z_n - 1] = self.z_n - 1
z_pos[z_pos < 1] = 1
dfdw = np.zeros(m) + np.nan
for i in range(1, self.x_n):
for j in range(1, self.y_n):
for k in range(1, self.z_n):
c = np.logical_and(
np.logical_and(i == x_pos, j == y_pos), k == z_pos
)
if np.any(c):
alpha = (x[c] - self.x_list[i - 1]) / (
self.x_list[i] - self.x_list[i - 1]
)
beta = (y[c] - self.y_list[j - 1]) / (
self.y_list[j] - self.y_list[j - 1]
)
gamma = (z[c] - self.z_list[k - 1]) / (
self.z_list[k] - self.z_list[k - 1]
)
dfdw[c] = (
(1 - alpha)
* (1 - beta)
* (1 - gamma)
* self.wInterpolators[i - 1][j - 1][k - 1]._der(w[c])
+ (1 - alpha)
* (1 - beta)
* gamma
* self.wInterpolators[i - 1][j - 1][k]._der(w[c])
+ (1 - alpha)
* beta
* (1 - gamma)
* self.wInterpolators[i - 1][j][k - 1]._der(w[c])
+ (1 - alpha)
* beta
* gamma
* self.wInterpolators[i - 1][j][k]._der(w[c])
+ alpha
* (1 - beta)
* (1 - gamma)
* self.wInterpolators[i][j - 1][k - 1]._der(w[c])
+ alpha
* (1 - beta)
* gamma
* self.wInterpolators[i][j - 1][k]._der(w[c])
+ alpha
* beta
* (1 - gamma)
* self.wInterpolators[i][j][k - 1]._der(w[c])
+ alpha
* beta
* gamma
* self.wInterpolators[i][j][k]._der(w[c])
)
return dfdw
def _derX(self, w, x, y, z):
"""
Returns the derivative with respect to x of the interpolated function
at each value in w,x,y,z. Only called internally by HARKinterpolator4D.derivativeX.
"""
if _isscalar(w):
x_pos = max(min(np.searchsorted(self.x_list, x), self.x_n - 1), 1)
y_pos = max(min(np.searchsorted(self.y_list, y), self.y_n - 1), 1)
z_pos = max(min(np.searchsorted(self.z_list, z), self.z_n - 1), 1)
beta = (y - self.y_list[y_pos - 1]) / (
self.y_list[y_pos] - self.y_list[y_pos - 1]
)
gamma = (z - self.z_list[z_pos - 1]) / (
self.z_list[z_pos] - self.z_list[z_pos - 1]
)
dfdx = (
(
(1 - beta)
* (1 - gamma)
* self.wInterpolators[x_pos][y_pos - 1][z_pos - 1](w)
+ (1 - beta)
* gamma
* self.wInterpolators[x_pos][y_pos - 1][z_pos](w)
+ beta
* (1 - gamma)
* self.wInterpolators[x_pos][y_pos][z_pos - 1](w)
+ beta * gamma * self.wInterpolators[x_pos][y_pos][z_pos](w)
)
- (
(1 - beta)
* (1 - gamma)
* self.wInterpolators[x_pos - 1][y_pos - 1][z_pos - 1](w)
+ (1 - beta)
* gamma
* self.wInterpolators[x_pos - 1][y_pos - 1][z_pos](w)
+ beta
* (1 - gamma)
* self.wInterpolators[x_pos - 1][y_pos][z_pos - 1](w)
+ beta * gamma * self.wInterpolators[x_pos - 1][y_pos][z_pos](w)
)
) / (self.x_list[x_pos] - self.x_list[x_pos - 1])
else:
m = len(x)
x_pos = np.searchsorted(self.x_list, x)
x_pos[x_pos > self.x_n - 1] = self.x_n - 1
y_pos = np.searchsorted(self.y_list, y)
y_pos[y_pos > self.y_n - 1] = self.y_n - 1
y_pos[y_pos < 1] = 1
z_pos = np.searchsorted(self.z_list, z)
z_pos[z_pos > self.z_n - 1] = self.z_n - 1
z_pos[z_pos < 1] = 1
dfdx = np.zeros(m) + np.nan
for i in range(1, self.x_n):
for j in range(1, self.y_n):
for k in range(1, self.z_n):
c = np.logical_and(
np.logical_and(i == x_pos, j == y_pos), k == z_pos
)
if np.any(c):
beta = (y[c] - self.y_list[j - 1]) / (
self.y_list[j] - self.y_list[j - 1]
)
gamma = (z[c] - self.z_list[k - 1]) / (
self.z_list[k] - self.z_list[k - 1]
)
dfdx[c] = (
(
(1 - beta)
* (1 - gamma)
* self.wInterpolators[i][j - 1][k - 1](w[c])
+ (1 - beta)
* gamma
* self.wInterpolators[i][j - 1][k](w[c])
+ beta
* (1 - gamma)
* self.wInterpolators[i][j][k - 1](w[c])
+ beta * gamma * self.wInterpolators[i][j][k](w[c])
)
- (
(1 - beta)
* (1 - gamma)
* self.wInterpolators[i - 1][j - 1][k - 1](w[c])
+ (1 - beta)
* gamma
* self.wInterpolators[i - 1][j - 1][k](w[c])
+ beta
* (1 - gamma)
* self.wInterpolators[i - 1][j][k - 1](w[c])
+ beta
* gamma
* self.wInterpolators[i - 1][j][k](w[c])
)
) / (self.x_list[i] - self.x_list[i - 1])
return dfdx
def _derY(self, w, x, y, z):
"""
Returns the derivative with respect to y of the interpolated function
at each value in w,x,y,z. Only called internally by HARKinterpolator4D.derivativeY.
"""
if _isscalar(w):
x_pos = max(min(np.searchsorted(self.x_list, x), self.x_n - 1), 1)
y_pos = max(min(np.searchsorted(self.y_list, y), self.y_n - 1), 1)
z_pos = max(min(np.searchsorted(self.z_list, z), self.z_n - 1), 1)
alpha = (x - self.x_list[x_pos - 1]) / (
self.y_list[x_pos] - self.x_list[x_pos - 1]
)
gamma = (z - self.z_list[z_pos - 1]) / (
self.z_list[z_pos] - self.z_list[z_pos - 1]
)
dfdy = (
(
(1 - alpha)
* (1 - gamma)
* self.wInterpolators[x_pos - 1][y_pos][z_pos - 1](w)
+ (1 - alpha)
* gamma
* self.wInterpolators[x_pos - 1][y_pos][z_pos](w)
+ alpha
* (1 - gamma)
* self.wInterpolators[x_pos][y_pos][z_pos - 1](w)
+ alpha * gamma * self.wInterpolators[x_pos][y_pos][z_pos](w)
)
- (
(1 - alpha)
* (1 - gamma)
* self.wInterpolators[x_pos - 1][y_pos - 1][z_pos - 1](w)
+ (1 - alpha)
* gamma
* self.wInterpolators[x_pos - 1][y_pos - 1][z_pos](w)
+ alpha
* (1 - gamma)
* self.wInterpolators[x_pos][y_pos - 1][z_pos - 1](w)
+ alpha * gamma * self.wInterpolators[x_pos][y_pos - 1][z_pos](w)
)
) / (self.y_list[y_pos] - self.y_list[y_pos - 1])
else:
m = len(x)
x_pos = np.searchsorted(self.x_list, x)
x_pos[x_pos > self.x_n - 1] = self.x_n - 1
y_pos = np.searchsorted(self.y_list, y)
y_pos[y_pos > self.y_n - 1] = self.y_n - 1
y_pos[y_pos < 1] = 1
z_pos = np.searchsorted(self.z_list, z)
z_pos[z_pos > self.z_n - 1] = self.z_n - 1
z_pos[z_pos < 1] = 1
dfdy = np.zeros(m) + np.nan
for i in range(1, self.x_n):
for j in range(1, self.y_n):
for k in range(1, self.z_n):
c = np.logical_and(
np.logical_and(i == x_pos, j == y_pos), k == z_pos
)
if np.any(c):
alpha = (x[c] - self.x_list[i - 1]) / (
self.x_list[i] - self.x_list[i - 1]
)
gamma = (z[c] - self.z_list[k - 1]) / (
self.z_list[k] - self.z_list[k - 1]
)
dfdy[c] = (
(
(1 - alpha)
* (1 - gamma)
* self.wInterpolators[i - 1][j][k - 1](w[c])
+ (1 - alpha)
* gamma
* self.wInterpolators[i - 1][j][k](w[c])
+ alpha
* (1 - gamma)
* self.wInterpolators[i][j][k - 1](w[c])
+ alpha * gamma * self.wInterpolators[i][j][k](w[c])
)
- (
(1 - alpha)
* (1 - gamma)
* self.wInterpolators[i - 1][j - 1][k - 1](w[c])
+ (1 - alpha)
* gamma
* self.wInterpolators[i - 1][j - 1][k](w[c])
+ alpha
* (1 - gamma)
* self.wInterpolators[i][j - 1][k - 1](w[c])
+ alpha
* gamma
* self.wInterpolators[i][j - 1][k](w[c])
)
) / (self.y_list[j] - self.y_list[j - 1])
return dfdy
def _derZ(self, w, x, y, z):
"""
Returns the derivative with respect to z of the interpolated function
at each value in w,x,y,z. Only called internally by HARKinterpolator4D.derivativeZ.
"""
if _isscalar(w):
x_pos = max(min(np.searchsorted(self.x_list, x), self.x_n - 1), 1)
y_pos = max(min(np.searchsorted(self.y_list, y), self.y_n - 1), 1)
z_pos = max(min(np.searchsorted(self.z_list, z), self.z_n - 1), 1)
alpha = (x - self.x_list[x_pos - 1]) / (
self.y_list[x_pos] - self.x_list[x_pos - 1]
)
beta = (y - self.y_list[y_pos - 1]) / (
self.y_list[y_pos] - self.y_list[y_pos - 1]
)
dfdz = (
(
(1 - alpha)
* (1 - beta)
* self.wInterpolators[x_pos - 1][y_pos - 1][z_pos](w)
+ (1 - alpha)
* beta
* self.wInterpolators[x_pos - 1][y_pos][z_pos](w)
+ alpha
* (1 - beta)
* self.wInterpolators[x_pos][y_pos - 1][z_pos](w)
+ alpha * beta * self.wInterpolators[x_pos][y_pos][z_pos](w)
)
- (
(1 - alpha)
* (1 - beta)
* self.wInterpolators[x_pos - 1][y_pos - 1][z_pos - 1](w)
+ (1 - alpha)
* beta
* self.wInterpolators[x_pos - 1][y_pos][z_pos - 1](w)
+ alpha
* (1 - beta)
* self.wInterpolators[x_pos][y_pos - 1][z_pos - 1](w)
+ alpha * beta * self.wInterpolators[x_pos][y_pos][z_pos - 1](w)
)
) / (self.z_list[z_pos] - self.z_list[z_pos - 1])
else:
m = len(x)
x_pos = np.searchsorted(self.x_list, x)
x_pos[x_pos > self.x_n - 1] = self.x_n - 1
y_pos = np.searchsorted(self.y_list, y)
y_pos[y_pos > self.y_n - 1] = self.y_n - 1
y_pos[y_pos < 1] = 1
z_pos = np.searchsorted(self.z_list, z)
z_pos[z_pos > self.z_n - 1] = self.z_n - 1
z_pos[z_pos < 1] = 1
dfdz = np.zeros(m) + np.nan
for i in range(1, self.x_n):
for j in range(1, self.y_n):
for k in range(1, self.z_n):
c = np.logical_and(
np.logical_and(i == x_pos, j == y_pos), k == z_pos
)
if np.any(c):
alpha = (x[c] - self.x_list[i - 1]) / (
self.x_list[i] - self.x_list[i - 1]
)
beta = (y[c] - self.y_list[j - 1]) / (
self.y_list[j] - self.y_list[j - 1]
)
dfdz[c] = (
(
(1 - alpha)
* (1 - beta)
* self.wInterpolators[i - 1][j - 1][k](w[c])
+ (1 - alpha)
* beta
* self.wInterpolators[i - 1][j][k](w[c])
+ alpha
* (1 - beta)
* self.wInterpolators[i][j - 1][k](w[c])
+ alpha * beta * self.wInterpolators[i][j][k](w[c])
)
- (
(1 - alpha)
* (1 - beta)
* self.wInterpolators[i - 1][j - 1][k - 1](w[c])
+ (1 - alpha)
* beta
* self.wInterpolators[i - 1][j][k - 1](w[c])
+ alpha
* (1 - beta)
* self.wInterpolators[i][j - 1][k - 1](w[c])
+ alpha
* beta
* self.wInterpolators[i][j][k - 1](w[c])
)
) / (self.z_list[k] - self.z_list[k - 1])
return dfdz
class LinearInterpOnInterp2D(HARKinterpolator3D):
"""
A 3D interpolation method that linearly interpolates between "layers" of
arbitrary 2D interpolations. Useful for models with two endogenous state
variables and one exogenous state variable when solving with the endogenous
grid method. NOTE: should not be used if an exogenous 3D grid is used, will
be significantly slower than TrilinearInterp.
Constructor for the class, generating an approximation to a function of
the form f(x,y,z) using interpolations over f(x,y,z_0) for a fixed grid
of z_0 values.
Parameters
----------
xyInterpolators : [HARKinterpolator2D]
A list of 2D interpolations over the x and y variables. The nth
element of xyInterpolators represents f(x,y,z_values[n]).
z_values: numpy.array
An array of z values equal in length to xyInterpolators.
"""
distance_criteria = ["xyInterpolators", "z_list"]
def __init__(self, xyInterpolators, z_values):
self.xyInterpolators = xyInterpolators
self.z_list = z_values
self.z_n = z_values.size
def _evaluate(self, x, y, z):
"""
Returns the level of the interpolated function at each value in x,y,z.
Only called internally by HARKinterpolator3D.__call__ (etc).
"""
if _isscalar(x):
z_pos = max(min(np.searchsorted(self.z_list, z), self.z_n - 1), 1)
alpha = (z - self.z_list[z_pos - 1]) / (
self.z_list[z_pos] - self.z_list[z_pos - 1]
)
f = (1 - alpha) * self.xyInterpolators[z_pos - 1](
x, y
) + alpha * self.xyInterpolators[z_pos](x, y)
else:
m = len(x)
z_pos = np.searchsorted(self.z_list, z)
z_pos[z_pos > self.z_n - 1] = self.z_n - 1
z_pos[z_pos < 1] = 1
f = np.zeros(m) + np.nan
if x.size > 0:
for i in range(1, self.z_n):
c = z_pos == i
if np.any(c):
alpha = (z[c] - self.z_list[i - 1]) / (
self.z_list[i] - self.z_list[i - 1]
)
f[c] = (1 - alpha) * self.xyInterpolators[i - 1](
x[c], y[c]
) + alpha * self.xyInterpolators[i](x[c], y[c])
return f
def _derX(self, x, y, z):
"""
Returns the derivative with respect to x of the interpolated function
at each value in x,y,z. Only called internally by HARKinterpolator3D.derivativeX.
"""
if _isscalar(x):
z_pos = max(min(np.searchsorted(self.z_list, z), self.z_n - 1), 1)
alpha = (z - self.z_list[z_pos - 1]) / (
self.z_list[z_pos] - self.z_list[z_pos - 1]
)
dfdx = (1 - alpha) * self.xyInterpolators[z_pos - 1].derivativeX(
x, y
) + alpha * self.xyInterpolators[z_pos].derivativeX(x, y)
else:
m = len(x)
z_pos = np.searchsorted(self.z_list, z)
z_pos[z_pos > self.z_n - 1] = self.z_n - 1
z_pos[z_pos < 1] = 1
dfdx = np.zeros(m) + np.nan
if x.size > 0:
for i in range(1, self.z_n):
c = z_pos == i
if np.any(c):
alpha = (z[c] - self.z_list[i - 1]) / (
self.z_list[i] - self.z_list[i - 1]
)
dfdx[c] = (1 - alpha) * self.xyInterpolators[i - 1].derivativeX(
x[c], y[c]
) + alpha * self.xyInterpolators[i].derivativeX(x[c], y[c])
return dfdx
def _derY(self, x, y, z):
"""
Returns the derivative with respect to y of the interpolated function
at each value in x,y,z. Only called internally by HARKinterpolator3D.derivativeY.
"""
if _isscalar(x):
z_pos = max(min(np.searchsorted(self.z_list, z), self.z_n - 1), 1)
alpha = (z - self.z_list[z_pos - 1]) / (
self.z_list[z_pos] - self.z_list[z_pos - 1]
)
dfdy = (1 - alpha) * self.xyInterpolators[z_pos - 1].derivativeY(
x, y
) + alpha * self.xyInterpolators[z_pos].derivativeY(x, y)
else:
m = len(x)
z_pos = np.searchsorted(self.z_list, z)
z_pos[z_pos > self.z_n - 1] = self.z_n - 1
z_pos[z_pos < 1] = 1
dfdy = np.zeros(m) + np.nan
if x.size > 0:
for i in range(1, self.z_n):
c = z_pos == i
if np.any(c):
alpha = (z[c] - self.z_list[i - 1]) / (
self.z_list[i] - self.z_list[i - 1]
)
dfdy[c] = (1 - alpha) * self.xyInterpolators[i - 1].derivativeY(
x[c], y[c]
) + alpha * self.xyInterpolators[i].derivativeY(x[c], y[c])
return dfdy
def _derZ(self, x, y, z):
"""
Returns the derivative with respect to z of the interpolated function
at each value in x,y,z. Only called internally by HARKinterpolator3D.derivativeZ.
"""
if _isscalar(x):
z_pos = max(min(np.searchsorted(self.z_list, z), self.z_n - 1), 1)
dfdz = (
self.xyInterpolators[z_pos].derivativeX(x, y)
- self.xyInterpolators[z_pos - 1].derivativeX(x, y)
) / (self.z_list[z_pos] - self.z_list[z_pos - 1])
else:
m = len(x)
z_pos = np.searchsorted(self.z_list, z)
z_pos[z_pos > self.z_n - 1] = self.z_n - 1
z_pos[z_pos < 1] = 1
dfdz = np.zeros(m) + np.nan
if x.size > 0:
for i in range(1, self.z_n):
c = z_pos == i
if np.any(c):
dfdz[c] = (
self.xyInterpolators[i](x[c], y[c])
- self.xyInterpolators[i - 1](x[c], y[c])
) / (self.z_list[i] - self.z_list[i - 1])
return dfdz
class BilinearInterpOnInterp2D(HARKinterpolator4D):
"""
A 4D interpolation method that bilinearly interpolates among "layers" of
arbitrary 2D interpolations. Useful for models with two endogenous state
variables and two exogenous state variables when solving with the endogenous
grid method. NOTE: should not be used if an exogenous 4D grid is used, will
be significantly slower than QuadlinearInterp.
Constructor for the class, generating an approximation to a function of
the form f(w,x,y,z) using interpolations over f(w,x,y_0,z_0) for a fixed
grid of y_0 and z_0 values.
Parameters
----------
wxInterpolators : [[HARKinterpolator2D]]
A list of lists of 2D interpolations over the w and x variables.
The i,j-th element of wxInterpolators represents
f(w,x,y_values[i],z_values[j]).
y_values: numpy.array
An array of y values equal in length to wxInterpolators.
z_values: numpy.array
An array of z values equal in length to wxInterpolators[0].
"""
distance_criteria = ["wxInterpolators", "y_list", "z_list"]
def __init__(self, wxInterpolators, y_values, z_values):
self.wxInterpolators = wxInterpolators
self.y_list = y_values
self.y_n = y_values.size
self.z_list = z_values
self.z_n = z_values.size
def _evaluate(self, w, x, y, z):
"""
Returns the level of the interpolated function at each value in x,y,z.
Only called internally by HARKinterpolator4D.__call__ (etc).
"""
if _isscalar(x):
y_pos = max(min(np.searchsorted(self.y_list, y), self.y_n - 1), 1)
z_pos = max(min(np.searchsorted(self.z_list, z), self.z_n - 1), 1)
alpha = (y - self.y_list[y_pos - 1]) / (
self.y_list[y_pos] - self.y_list[y_pos - 1]
)
beta = (z - self.z_list[z_pos - 1]) / (
self.z_list[z_pos] - self.z_list[z_pos - 1]
)
f = (
(1 - alpha)
* (1 - beta)
* self.wxInterpolators[y_pos - 1][z_pos - 1](w, x)
+ (1 - alpha) * beta * self.wxInterpolators[y_pos - 1][z_pos](w, x)
+ alpha * (1 - beta) * self.wxInterpolators[y_pos][z_pos - 1](w, x)
+ alpha * beta * self.wxInterpolators[y_pos][z_pos](w, x)
)
else:
m = len(x)
y_pos = np.searchsorted(self.y_list, y)
y_pos[y_pos > self.y_n - 1] = self.y_n - 1
y_pos[y_pos < 1] = 1
z_pos = np.searchsorted(self.z_list, z)
z_pos[z_pos > self.z_n - 1] = self.z_n - 1
z_pos[z_pos < 1] = 1
f = np.zeros(m) + np.nan
for i in range(1, self.y_n):
for j in range(1, self.z_n):
c = np.logical_and(i == y_pos, j == z_pos)
if np.any(c):
alpha = (y[c] - self.y_list[i - 1]) / (
self.y_list[i] - self.y_list[i - 1]
)
beta = (z[c] - self.z_list[j - 1]) / (
self.z_list[j] - self.z_list[j - 1]
)
f[c] = (
(1 - alpha)
* (1 - beta)
* self.wxInterpolators[i - 1][j - 1](w[c], x[c])
+ (1 - alpha)
* beta
* self.wxInterpolators[i - 1][j](w[c], x[c])
+ alpha
* (1 - beta)
* self.wxInterpolators[i][j - 1](w[c], x[c])
+ alpha * beta * self.wxInterpolators[i][j](w[c], x[c])
)
return f
def _derW(self, w, x, y, z):
"""
Returns the derivative with respect to w of the interpolated function
at each value in w,x,y,z. Only called internally by HARKinterpolator4D.derivativeW.
"""
# This may look strange, as we call the derivativeX() method to get the
# derivative with respect to w, but that's just a quirk of 4D interpolations
# beginning with w rather than x. The derivative wrt the first dimension
# of an element of wxInterpolators is the w-derivative of the main function.
if _isscalar(x):
y_pos = max(min(np.searchsorted(self.y_list, y), self.y_n - 1), 1)
z_pos = max(min(np.searchsorted(self.z_list, z), self.z_n - 1), 1)
alpha = (y - self.y_list[y_pos - 1]) / (
self.y_list[y_pos] - self.y_list[y_pos - 1]
)
beta = (z - self.z_list[z_pos - 1]) / (
self.z_list[z_pos] - self.z_list[z_pos - 1]
)
dfdw = (
(1 - alpha)
* (1 - beta)
* self.wxInterpolators[y_pos - 1][z_pos - 1].derivativeX(w, x)
+ (1 - alpha)
* beta
* self.wxInterpolators[y_pos - 1][z_pos].derivativeX(w, x)
+ alpha
* (1 - beta)
* self.wxInterpolators[y_pos][z_pos - 1].derivativeX(w, x)
+ alpha * beta * self.wxInterpolators[y_pos][z_pos].derivativeX(w, x)
)
else:
m = len(x)
y_pos = np.searchsorted(self.y_list, y)
y_pos[y_pos > self.y_n - 1] = self.y_n - 1
y_pos[y_pos < 1] = 1
z_pos = np.searchsorted(self.z_list, z)
z_pos[z_pos > self.z_n - 1] = self.z_n - 1
z_pos[z_pos < 1] = 1
dfdw = np.zeros(m) + np.nan
for i in range(1, self.y_n):
for j in range(1, self.z_n):
c = np.logical_and(i == y_pos, j == z_pos)
if np.any(c):
alpha = (y[c] - self.y_list[i - 1]) / (
self.y_list[i] - self.y_list[i - 1]
)
beta = (z[c] - self.z_list[j - 1]) / (
self.z_list[j] - self.z_list[j - 1]
)
dfdw[c] = (
(1 - alpha)
* (1 - beta)
* self.wxInterpolators[i - 1][j - 1].derivativeX(w[c], x[c])
+ (1 - alpha)
* beta
* self.wxInterpolators[i - 1][j].derivativeX(w[c], x[c])
+ alpha
* (1 - beta)
* self.wxInterpolators[i][j - 1].derivativeX(w[c], x[c])
+ alpha
* beta
* self.wxInterpolators[i][j].derivativeX(w[c], x[c])
)
return dfdw
def _derX(self, w, x, y, z):
"""
Returns the derivative with respect to x of the interpolated function
at each value in w,x,y,z. Only called internally by HARKinterpolator4D.derivativeX.
"""
# This may look strange, as we call the derivativeY() method to get the
# derivative with respect to x, but that's just a quirk of 4D interpolations
# beginning with w rather than x. The derivative wrt the second dimension
# of an element of wxInterpolators is the x-derivative of the main function.
if _isscalar(x):
y_pos = max(min(np.searchsorted(self.y_list, y), self.y_n - 1), 1)
z_pos = max(min(np.searchsorted(self.z_list, z), self.z_n - 1), 1)
alpha = (y - self.y_list[y_pos - 1]) / (
self.y_list[y_pos] - self.y_list[y_pos - 1]
)
beta = (z - self.z_list[z_pos - 1]) / (
self.z_list[z_pos] - self.z_list[z_pos - 1]
)
dfdx = (
(1 - alpha)
* (1 - beta)
* self.wxInterpolators[y_pos - 1][z_pos - 1].derivativeY(w, x)
+ (1 - alpha)
* beta
* self.wxInterpolators[y_pos - 1][z_pos].derivativeY(w, x)
+ alpha
* (1 - beta)
* self.wxInterpolators[y_pos][z_pos - 1].derivativeY(w, x)
+ alpha * beta * self.wxInterpolators[y_pos][z_pos].derivativeY(w, x)
)
else:
m = len(x)
y_pos = np.searchsorted(self.y_list, y)
y_pos[y_pos > self.y_n - 1] = self.y_n - 1
y_pos[y_pos < 1] = 1
z_pos = np.searchsorted(self.z_list, z)
z_pos[z_pos > self.z_n - 1] = self.z_n - 1
z_pos[z_pos < 1] = 1
dfdx = np.zeros(m) + np.nan
for i in range(1, self.y_n):
for j in range(1, self.z_n):
c = np.logical_and(i == y_pos, j == z_pos)
if np.any(c):
alpha = (y[c] - self.y_list[i - 1]) / (
self.y_list[i] - self.y_list[i - 1]
)
beta = (z[c] - self.z_list[j - 1]) / (
self.z_list[j] - self.z_list[j - 1]
)
dfdx[c] = (
(1 - alpha)
* (1 - beta)
* self.wxInterpolators[i - 1][j - 1].derivativeY(w[c], x[c])
+ (1 - alpha)
* beta
* self.wxInterpolators[i - 1][j].derivativeY(w[c], x[c])
+ alpha
* (1 - beta)
* self.wxInterpolators[i][j - 1].derivativeY(w[c], x[c])
+ alpha
* beta
* self.wxInterpolators[i][j].derivativeY(w[c], x[c])
)
return dfdx
def _derY(self, w, x, y, z):
"""
Returns the derivative with respect to y of the interpolated function
at each value in w,x,y,z. Only called internally by HARKinterpolator4D.derivativeY.
"""
if _isscalar(x):
y_pos = max(min(np.searchsorted(self.y_list, y), self.y_n - 1), 1)
z_pos = max(min(np.searchsorted(self.z_list, z), self.z_n - 1), 1)
beta = (z - self.z_list[z_pos - 1]) / (
self.z_list[z_pos] - self.z_list[z_pos - 1]
)
dfdy = (
(
(1 - beta) * self.wxInterpolators[y_pos][z_pos - 1](w, x)
+ beta * self.wxInterpolators[y_pos][z_pos](w, x)
)
- (
(1 - beta) * self.wxInterpolators[y_pos - 1][z_pos - 1](w, x)
+ beta * self.wxInterpolators[y_pos - 1][z_pos](w, x)
)
) / (self.y_list[y_pos] - self.y_list[y_pos - 1])
else:
m = len(x)
y_pos = np.searchsorted(self.y_list, y)
y_pos[y_pos > self.y_n - 1] = self.y_n - 1
y_pos[y_pos < 1] = 1
z_pos = np.searchsorted(self.z_list, z)
z_pos[z_pos > self.z_n - 1] = self.z_n - 1
z_pos[z_pos < 1] = 1
dfdy = np.zeros(m) + np.nan
for i in range(1, self.y_n):
for j in range(1, self.z_n):
c = np.logical_and(i == y_pos, j == z_pos)
if np.any(c):
beta = (z[c] - self.z_list[j - 1]) / (
self.z_list[j] - self.z_list[j - 1]
)
dfdy[c] = (
(
(1 - beta) * self.wxInterpolators[i][j - 1](w[c], x[c])
+ beta * self.wxInterpolators[i][j](w[c], x[c])
)
- (
(1 - beta)
* self.wxInterpolators[i - 1][j - 1](w[c], x[c])
+ beta * self.wxInterpolators[i - 1][j](w[c], x[c])
)
) / (self.y_list[i] - self.y_list[i - 1])
return dfdy
def _derZ(self, w, x, y, z):
"""
Returns the derivative with respect to z of the interpolated function
at each value in w,x,y,z. Only called internally by HARKinterpolator4D.derivativeZ.
"""
if _isscalar(x):
y_pos = max(min(np.searchsorted(self.y_list, y), self.y_n - 1), 1)
z_pos = max(min(np.searchsorted(self.z_list, z), self.z_n - 1), 1)
alpha = (y - self.y_list[y_pos - 1]) / (
self.y_list[y_pos] - self.y_list[y_pos - 1]
)
dfdz = (
(
(1 - alpha) * self.wxInterpolators[y_pos - 1][z_pos](w, x)
+ alpha * self.wxInterpolators[y_pos][z_pos](w, x)
)
- (
(1 - alpha) * self.wxInterpolators[y_pos - 1][z_pos - 1](w, x)
+ alpha * self.wxInterpolators[y_pos][z_pos - 1](w, x)
)
) / (self.z_list[z_pos] - self.z_list[z_pos - 1])
else:
m = len(x)
y_pos = np.searchsorted(self.y_list, y)
y_pos[y_pos > self.y_n - 1] = self.y_n - 1
y_pos[y_pos < 1] = 1
z_pos = np.searchsorted(self.z_list, z)
z_pos[z_pos > self.z_n - 1] = self.z_n - 1
z_pos[z_pos < 1] = 1
dfdz = np.zeros(m) + np.nan
for i in range(1, self.y_n):
for j in range(1, self.z_n):
c = np.logical_and(i == y_pos, j == z_pos)
if np.any(c):
alpha = (y[c] - self.y_list[i - 1]) / (
self.y_list[i] - self.y_list[i - 1]
)
dfdz[c] = (
(
(1 - alpha) * self.wxInterpolators[i - 1][j](w[c], x[c])
+ alpha * self.wxInterpolators[i][j](w[c], x[c])
)
- (
(1 - alpha)
* self.wxInterpolators[i - 1][j - 1](w[c], x[c])
+ alpha * self.wxInterpolators[i][j - 1](w[c], x[c])
)
) / (self.z_list[j] - self.z_list[j - 1])
return dfdz
class Curvilinear2DInterp(HARKinterpolator2D):
"""
A 2D interpolation method for curvilinear or "warped grid" interpolation, as
in White (2015). Used for models with two endogenous states that are solved
with the endogenous grid method.
Parameters
----------
f_values: numpy.array
A 2D array of function values such that f_values[i,j] =
f(x_values[i,j],y_values[i,j]).
x_values: numpy.array
A 2D array of x values of the same size as f_values.
y_values: numpy.array
A 2D array of y values of the same size as f_values.
"""
distance_criteria = ["f_values", "x_values", "y_values"]
def __init__(self, f_values, x_values, y_values):
self.f_values = f_values
self.x_values = x_values
self.y_values = y_values
my_shape = f_values.shape
self.x_n = my_shape[0]
self.y_n = my_shape[1]
self.update_polarity()
def update_polarity(self):
"""
Fills in the polarity attribute of the interpolation, determining whether
the "plus" (True) or "minus" (False) solution of the system of equations
should be used for each sector. Needs to be called in __init__.
Parameters
----------
none
Returns
-------
none
"""
# Grab a point known to be inside each sector: the midway point between
# the lower left and upper right vertex of each sector
x_temp = 0.5 * (
self.x_values[0 : (self.x_n - 1), 0 : (self.y_n - 1)]
+ self.x_values[1 : self.x_n, 1 : self.y_n]
)
y_temp = 0.5 * (
self.y_values[0 : (self.x_n - 1), 0 : (self.y_n - 1)]
+ self.y_values[1 : self.x_n, 1 : self.y_n]
)
size = (self.x_n - 1) * (self.y_n - 1)
x_temp = np.reshape(x_temp, size)
y_temp = np.reshape(y_temp, size)
y_pos = np.tile(np.arange(0, self.y_n - 1), self.x_n - 1)
x_pos = np.reshape(
np.tile(np.arange(0, self.x_n - 1), (self.y_n - 1, 1)).transpose(), size
)
# Set the polarity of all sectors to "plus", then test each sector
self.polarity = np.ones((self.x_n - 1, self.y_n - 1), dtype=bool)
alpha, beta = self.find_coords(x_temp, y_temp, x_pos, y_pos)
polarity = np.logical_and(
np.logical_and(alpha > 0, alpha < 1), np.logical_and(beta > 0, beta < 1)
)
# Update polarity: if (alpha,beta) not in the unit square, then that
# sector must use the "minus" solution instead
self.polarity = np.reshape(polarity, (self.x_n - 1, self.y_n - 1))
def find_sector(self, x, y):
"""
Finds the quadrilateral "sector" for each (x,y) point in the input.
Only called as a subroutine of _evaluate().
Parameters
----------
x : np.array
Values whose sector should be found.
y : np.array
Values whose sector should be found. Should be same size as x.
Returns
-------
x_pos : np.array
Sector x-coordinates for each point of the input, of the same size.
y_pos : np.array
Sector y-coordinates for each point of the input, of the same size.
"""
# Initialize the sector guess
m = x.size
x_pos_guess = (np.ones(m) * self.x_n / 2).astype(int)
y_pos_guess = (np.ones(m) * self.y_n / 2).astype(int)
# Define a function that checks whether a set of points violates a linear
# boundary defined by (x_bound_1,y_bound_1) and (x_bound_2,y_bound_2),
# where the latter is *COUNTER CLOCKWISE* from the former. Returns
# 1 if the point is outside the boundary and 0 otherwise.
violation_check = (
lambda x_check, y_check, x_bound_1, y_bound_1, x_bound_2, y_bound_2: (
(y_bound_2 - y_bound_1) * x_check - (x_bound_2 - x_bound_1) * y_check
> x_bound_1 * y_bound_2 - y_bound_1 * x_bound_2
)
+ 0
)
# Identify the correct sector for each point to be evaluated
these = np.ones(m, dtype=bool)
max_loops = self.x_n + self.y_n
loops = 0
while np.any(these) and loops < max_loops:
# Get coordinates for the four vertices: (xA,yA),...,(xD,yD)
x_temp = x[these]
y_temp = y[these]
xA = self.x_values[x_pos_guess[these], y_pos_guess[these]]
xB = self.x_values[x_pos_guess[these] + 1, y_pos_guess[these]]
xC = self.x_values[x_pos_guess[these], y_pos_guess[these] + 1]
xD = self.x_values[x_pos_guess[these] + 1, y_pos_guess[these] + 1]
yA = self.y_values[x_pos_guess[these], y_pos_guess[these]]
yB = self.y_values[x_pos_guess[these] + 1, y_pos_guess[these]]
yC = self.y_values[x_pos_guess[these], y_pos_guess[these] + 1]
yD = self.y_values[x_pos_guess[these] + 1, y_pos_guess[these] + 1]
# Check the "bounding box" for the sector: is this guess plausible?
move_down = (y_temp < np.minimum(yA, yB)) + 0
move_right = (x_temp > np.maximum(xB, xD)) + 0
move_up = (y_temp > np.maximum(yC, yD)) + 0
move_left = (x_temp < np.minimum(xA, xC)) + 0
# Check which boundaries are violated (and thus where to look next)
c = (move_down + move_right + move_up + move_left) == 0
move_down[c] = violation_check(
x_temp[c], y_temp[c], xA[c], yA[c], xB[c], yB[c]
)
move_right[c] = violation_check(
x_temp[c], y_temp[c], xB[c], yB[c], xD[c], yD[c]
)
move_up[c] = violation_check(
x_temp[c], y_temp[c], xD[c], yD[c], xC[c], yC[c]
)
move_left[c] = violation_check(
x_temp[c], y_temp[c], xC[c], yC[c], xA[c], yA[c]
)
# Update the sector guess based on the violations
x_pos_next = x_pos_guess[these] - move_left + move_right
x_pos_next[x_pos_next < 0] = 0
x_pos_next[x_pos_next > (self.x_n - 2)] = self.x_n - 2
y_pos_next = y_pos_guess[these] - move_down + move_up
y_pos_next[y_pos_next < 0] = 0
y_pos_next[y_pos_next > (self.y_n - 2)] = self.y_n - 2
# Check which sectors have not changed, and mark them as complete
no_move = np.array(
np.logical_and(
x_pos_guess[these] == x_pos_next, y_pos_guess[these] == y_pos_next
)
)
x_pos_guess[these] = x_pos_next
y_pos_guess[these] = y_pos_next
temp = these.nonzero()
these[temp[0][no_move]] = False
# Move to the next iteration of the search
loops += 1
# Return the output
x_pos = x_pos_guess
y_pos = y_pos_guess
return x_pos, y_pos
def find_coords(self, x, y, x_pos, y_pos):
"""
Calculates the relative coordinates (alpha,beta) for each point (x,y),
given the sectors (x_pos,y_pos) in which they reside. Only called as
a subroutine of __call__().
Parameters
----------
x : np.array
Values whose sector should be found.
y : np.array
Values whose sector should be found. Should be same size as x.
x_pos : np.array
Sector x-coordinates for each point in (x,y), of the same size.
y_pos : np.array
Sector y-coordinates for each point in (x,y), of the same size.
Returns
-------
alpha : np.array
Relative "horizontal" position of the input in their respective sectors.
beta : np.array
Relative "vertical" position of the input in their respective sectors.
"""
# Calculate relative coordinates in the sector for each point
xA = self.x_values[x_pos, y_pos]
xB = self.x_values[x_pos + 1, y_pos]
xC = self.x_values[x_pos, y_pos + 1]
xD = self.x_values[x_pos + 1, y_pos + 1]
yA = self.y_values[x_pos, y_pos]
yB = self.y_values[x_pos + 1, y_pos]
yC = self.y_values[x_pos, y_pos + 1]
yD = self.y_values[x_pos + 1, y_pos + 1]
polarity = 2.0 * self.polarity[x_pos, y_pos] - 1.0
a = xA
b = xB - xA
c = xC - xA
d = xA - xB - xC + xD
e = yA
f = yB - yA
g = yC - yA
h = yA - yB - yC + yD
denom = d * g - h * c
mu = (h * b - d * f) / denom
tau = (h * (a - x) - d * (e - y)) / denom
zeta = a - x + c * tau
eta = b + c * mu + d * tau
theta = d * mu
alpha = (-eta + polarity * np.sqrt(eta ** 2.0 - 4.0 * zeta * theta)) / (
2.0 * theta
)
beta = mu * alpha + tau
# Alternate method if there are sectors that are "too regular"
z = np.logical_or(
np.isnan(alpha), np.isnan(beta)
) # These points weren't able to identify coordinates
if np.any(z):
these = np.isclose(
f / b, (yD - yC) / (xD - xC)
) # iso-beta lines have equal slope
if np.any(these):
kappa = f[these] / b[these]
int_bot = yA[these] - kappa * xA[these]
int_top = yC[these] - kappa * xC[these]
int_these = y[these] - kappa * x[these]
beta_temp = (int_these - int_bot) / (int_top - int_bot)
x_left = beta_temp * xC[these] + (1.0 - beta_temp) * xA[these]
x_right = beta_temp * xD[these] + (1.0 - beta_temp) * xB[these]
alpha_temp = (x[these] - x_left) / (x_right - x_left)
beta[these] = beta_temp
alpha[these] = alpha_temp
# print(np.sum(np.isclose(g/c,(yD-yB)/(xD-xB))))
return alpha, beta
def _evaluate(self, x, y):
"""
Returns the level of the interpolated function at each value in x,y.
Only called internally by HARKinterpolator2D.__call__ (etc).
"""
x_pos, y_pos = self.find_sector(x, y)
alpha, beta = self.find_coords(x, y, x_pos, y_pos)
# Calculate the function at each point using bilinear interpolation
f = (
(1 - alpha) * (1 - beta) * self.f_values[x_pos, y_pos]
+ (1 - alpha) * beta * self.f_values[x_pos, y_pos + 1]
+ alpha * (1 - beta) * self.f_values[x_pos + 1, y_pos]
+ alpha * beta * self.f_values[x_pos + 1, y_pos + 1]
)
return f
def _derX(self, x, y):
"""
Returns the derivative with respect to x of the interpolated function
at each value in x,y. Only called internally by HARKinterpolator2D.derivativeX.
"""
x_pos, y_pos = self.find_sector(x, y)
alpha, beta = self.find_coords(x, y, x_pos, y_pos)
# Get four corners data for each point
xA = self.x_values[x_pos, y_pos]
xB = self.x_values[x_pos + 1, y_pos]
xC = self.x_values[x_pos, y_pos + 1]
xD = self.x_values[x_pos + 1, y_pos + 1]
yA = self.y_values[x_pos, y_pos]
yB = self.y_values[x_pos + 1, y_pos]
yC = self.y_values[x_pos, y_pos + 1]
yD = self.y_values[x_pos + 1, y_pos + 1]
fA = self.f_values[x_pos, y_pos]
fB = self.f_values[x_pos + 1, y_pos]
fC = self.f_values[x_pos, y_pos + 1]
fD = self.f_values[x_pos + 1, y_pos + 1]
# Calculate components of the alpha,beta --> x,y delta translation matrix
alpha_x = (1 - beta) * (xB - xA) + beta * (xD - xC)
alpha_y = (1 - beta) * (yB - yA) + beta * (yD - yC)
beta_x = (1 - alpha) * (xC - xA) + alpha * (xD - xB)
beta_y = (1 - alpha) * (yC - yA) + alpha * (yD - yB)
# Invert the delta translation matrix into x,y --> alpha,beta
det = alpha_x * beta_y - beta_x * alpha_y
x_alpha = beta_y / det
x_beta = -alpha_y / det
# Calculate the derivative of f w.r.t. alpha and beta
dfda = (1 - beta) * (fB - fA) + beta * (fD - fC)
dfdb = (1 - alpha) * (fC - fA) + alpha * (fD - fB)
# Calculate the derivative with respect to x (and return it)
dfdx = x_alpha * dfda + x_beta * dfdb
return dfdx
def _derY(self, x, y):
"""
Returns the derivative with respect to y of the interpolated function
at each value in x,y. Only called internally by HARKinterpolator2D.derivativeX.
"""
x_pos, y_pos = self.find_sector(x, y)
alpha, beta = self.find_coords(x, y, x_pos, y_pos)
# Get four corners data for each point
xA = self.x_values[x_pos, y_pos]
xB = self.x_values[x_pos + 1, y_pos]
xC = self.x_values[x_pos, y_pos + 1]
xD = self.x_values[x_pos + 1, y_pos + 1]
yA = self.y_values[x_pos, y_pos]
yB = self.y_values[x_pos + 1, y_pos]
yC = self.y_values[x_pos, y_pos + 1]
yD = self.y_values[x_pos + 1, y_pos + 1]
fA = self.f_values[x_pos, y_pos]
fB = self.f_values[x_pos + 1, y_pos]
fC = self.f_values[x_pos, y_pos + 1]
fD = self.f_values[x_pos + 1, y_pos + 1]
# Calculate components of the alpha,beta --> x,y delta translation matrix
alpha_x = (1 - beta) * (xB - xA) + beta * (xD - xC)
alpha_y = (1 - beta) * (yB - yA) + beta * (yD - yC)
beta_x = (1 - alpha) * (xC - xA) + alpha * (xD - xB)
beta_y = (1 - alpha) * (yC - yA) + alpha * (yD - yB)
# Invert the delta translation matrix into x,y --> alpha,beta
det = alpha_x * beta_y - beta_x * alpha_y
y_alpha = -beta_x / det
y_beta = alpha_x / det
# Calculate the derivative of f w.r.t. alpha and beta
dfda = (1 - beta) * (fB - fA) + beta * (fD - fC)
dfdb = (1 - alpha) * (fC - fA) + alpha * (fD - fB)
# Calculate the derivative with respect to x (and return it)
dfdy = y_alpha * dfda + y_beta * dfdb
return dfdy
class DiscreteInterp(MetricObject):
"""
An interpolator for variables that can only take a discrete set of values.
If the function we wish to interpolate, f(args) can take on the list of
values discrete_vals, this class expects an interpolator for the index of
f's value in discrete_vals.
E.g., if f(a,b,c) = discrete_vals[5], then index_interp(a,b,c) = 5.
Parameters
----------
index_interp: HARKInterpolator
An interpolator giving an approximation to the index of the value in
discrete_vals that corresponds to a given set of arguments.
discrete_vals: numpy.array
A 1D array containing the values in the range of the discrete function
to be interpolated.
"""
distance_criteria = ["index_interp"]
def __init__(self, index_interp, discrete_vals):
self.index_interp = index_interp
self.discrete_vals = discrete_vals
self.n_vals = len(self.discrete_vals)
def __call__(self, *args):
# Interpolate indices and round to integers
inds = np.rint(self.index_interp(*args)).astype(int)
if type(inds) is not np.ndarray:
inds = np.array(inds)
# Deal with out-of range indices
inds[inds < 0] = 0
inds[inds >= self.n_vals] = self.n_vals - 1
# Get values from grid
return self.discrete_vals[inds]
###############################################################################
## Functions used in discrete choice models with T1EV taste shocks ############
###############################################################################
def calc_log_sum_choice_probs(Vals, sigma):
"""
Returns the final optimal value and choice probabilities given the choice
specific value functions `Vals`. Probabilities are degenerate if sigma == 0.0.
Parameters
----------
Vals : [numpy.array]
A numpy.array that holds choice specific values at common grid points.
sigma : float
A number that controls the variance of the taste shocks
Returns
-------
V : [numpy.array]
A numpy.array that holds the integrated value function.
P : [numpy.array]
A numpy.array that holds the discrete choice probabilities
"""
# Assumes that NaNs have been replaced by -numpy.inf or similar
if sigma == 0.0:
# We could construct a linear index here and use unravel_index.
Pflat = np.argmax(Vals, axis=0)
V = np.zeros(Vals[0].shape)
Probs = np.zeros(Vals.shape)
for i in range(Vals.shape[0]):
optimalIndices = Pflat == i
V[optimalIndices] = Vals[i][optimalIndices]
Probs[i][optimalIndices] = 1
return V, Probs
# else we have a taste shock
maxV = np.max(Vals, axis=0)
# calculate maxV+sigma*log(sum_i=1^J exp((V[i]-maxV))/sigma)
sumexp = np.sum(np.exp((Vals - maxV) / sigma), axis=0)
LogSumV = np.log(sumexp)
LogSumV = maxV + sigma * LogSumV
Probs = np.exp((Vals - LogSumV) / sigma)
return LogSumV, Probs
def calc_choice_probs(Vals, sigma):
"""
Returns the choice probabilities given the choice specific value functions
`Vals`. Probabilities are degenerate if sigma == 0.0.
Parameters
----------
Vals : [numpy.array]
A numpy.array that holds choice specific values at common grid points.
sigma : float
A number that controls the variance of the taste shocks
Returns
-------
Probs : [numpy.array]
A numpy.array that holds the discrete choice probabilities
"""
# Assumes that NaNs have been replaced by -numpy.inf or similar
if sigma == 0.0:
# We could construct a linear index here and use unravel_index.
Pflat = np.argmax(Vals, axis=0)
Probs = np.zeros(Vals.shape)
for i in range(Vals.shape[0]):
Probs[i][Pflat == i] = 1
return Probs
maxV = np.max(Vals, axis=0)
Probs = np.divide(
np.exp((Vals - maxV) / sigma), np.sum(np.exp((Vals - maxV) / sigma), axis=0)
)
return Probs
def calc_log_sum(Vals, sigma):
"""
Returns the optimal value given the choice specific value functions Vals.
Parameters
----------
Vals : [numpy.array]
A numpy.array that holds choice specific values at common grid points.
sigma : float
A number that controls the variance of the taste shocks
Returns
-------
V : [numpy.array]
A numpy.array that holds the integrated value function.
"""
# Assumes that NaNs have been replaced by -numpy.inf or similar
if sigma == 0.0:
# We could construct a linear index here and use unravel_index.
V = np.amax(Vals, axis=0)
return V
# else we have a taste shock
maxV = np.max(Vals, axis=0)
# calculate maxV+sigma*log(sum_i=1^J exp((V[i]-maxV))/sigma)
sumexp = np.sum(np.exp((Vals - maxV) / sigma), axis=0)
LogSumV = np.log(sumexp)
LogSumV = maxV + sigma * LogSumV
return LogSumV
###############################################################################
# Tools for value and marginal-value functions in models where #
# - dvdm = u'(c). #
# - u is of the CRRA family. #
###############################################################################
class ValueFuncCRRA(MetricObject):
"""
A class for representing a value function. The underlying interpolation is
in the space of (state,u_inv(v)); this class "re-curves" to the value function.
Parameters
----------
vFuncNvrs : function
A real function representing the value function composed with the
inverse utility function, defined on the state: u_inv(vFunc(state))
CRRA : float
Coefficient of relative risk aversion.
"""
distance_criteria = ["func", "CRRA"]
def __init__(self, vFuncNvrs, CRRA):
self.vFuncNvrs = deepcopy(vFuncNvrs)
self.CRRA = CRRA
def __call__(self, *vFuncArgs):
"""
Evaluate the value function at given levels of market resources m.
Parameters
----------
vFuncArgs : floats or np.arrays, all of the same dimensions.
Values for the state variables. These usually start with 'm',
market resources normalized by the level of permanent income.
Returns
-------
v : float or np.array
Lifetime value of beginning this period with the given states; has
same size as the state inputs.
"""
# return CRRAutility(self.func(*vFuncArgs), gam=self.CRRA)
return CRRAutility(self.vFuncNvrs(*vFuncArgs), self.CRRA)
class MargValueFuncCRRA(MetricObject):
"""
A class for representing a marginal value function in models where the
standard envelope condition of dvdm(state) = u'(c(state)) holds (with CRRA utility).
Parameters
----------
cFunc : function.
Its first argument must be normalized market resources m.
A real function representing the marginal value function composed
with the inverse marginal utility function, defined on the state
variables: uP_inv(dvdmFunc(state)). Called cFunc because when standard
envelope condition applies, uP_inv(dvdm(state)) = cFunc(state).
CRRA : float
Coefficient of relative risk aversion.
"""
distance_criteria = ["cFunc", "CRRA"]
def __init__(self, cFunc, CRRA):
self.cFunc = deepcopy(cFunc)
self.CRRA = CRRA
def __call__(self, *cFuncArgs):
"""
Evaluate the marginal value function at given levels of market resources m.
Parameters
----------
cFuncArgs : floats or np.arrays
Values of the state variables at which to evaluate the marginal
value function.
Returns
-------
vP : float or np.array
Marginal lifetime value of beginning this period with state
cFuncArgs
"""
return CRRAutilityP(self.cFunc(*cFuncArgs), gam=self.CRRA)
def derivativeX(self, *cFuncArgs):
"""
Evaluate the derivative of the marginal value function with respect to
market resources at given state; this is the marginal marginal value
function.
Parameters
----------
cFuncArgs : floats or np.arrays
State variables.
Returns
-------
vPP : float or np.array
Marginal marginal lifetime value of beginning this period with
state cFuncArgs; has same size as inputs.
"""
# The derivative method depends on the dimension of the function
if isinstance(self.cFunc, (HARKinterpolator1D)):
c, MPC = self.cFunc.eval_with_derivative(*cFuncArgs)
elif hasattr(self.cFunc, "derivativeX"):
c = self.cFunc(*cFuncArgs)
MPC = self.cFunc.derivativeX(*cFuncArgs)
else:
raise Exception(
"cFunc does not have a 'derivativeX' attribute. Can't compute"
+ "marginal marginal value."
)
return MPC * CRRAutilityPP(c, gam=self.CRRA)
class MargMargValueFuncCRRA(MetricObject):
"""
A class for representing a marginal marginal value function in models where
the standard envelope condition of dvdm = u'(c(state)) holds (with CRRA utility).
Parameters
----------
cFunc : function.
Its first argument must be normalized market resources m.
A real function representing the marginal value function composed
with the inverse marginal utility function, defined on the state
variables: uP_inv(dvdmFunc(state)). Called cFunc because when standard
envelope condition applies, uP_inv(dvdm(state)) = cFunc(state).
CRRA : float
Coefficient of relative risk aversion.
"""
distance_criteria = ["cFunc", "CRRA"]
def __init__(self, cFunc, CRRA):
self.cFunc = deepcopy(cFunc)
self.CRRA = CRRA
def __call__(self, *cFuncArgs):
"""
Evaluate the marginal marginal value function at given levels of market
resources m.
Parameters
----------
m : float or np.array
Market resources (normalized by permanent income) whose marginal
marginal value is to be found.
Returns
-------
vPP : float or np.array
Marginal marginal lifetime value of beginning this period with market
resources m; has same size as input m.
"""
# The derivative method depends on the dimension of the function
if isinstance(self.cFunc, (HARKinterpolator1D)):
c, MPC = self.cFunc.eval_with_derivative(*cFuncArgs)
elif hasattr(self.cFunc, "derivativeX"):
c = self.cFunc(*cFuncArgs)
MPC = self.cFunc.derivativeX(*cFuncArgs)
else:
raise Exception(
"cFunc does not have a 'derivativeX' attribute. Can't compute"
+ "marginal marginal value."
)
return MPC * CRRAutilityPP(c, gam=self.CRRA)
##############################################################################
# Examples and tests
##############################################################################
def main():
print("Sorry, HARK.interpolation doesn't actually do much on its own.")
print("To see some examples of its interpolation methods in action, look at any")
print("of the model modules in /ConsumptionSavingModel. In the future, running")
print("this module will show examples of each interpolation class.")
RNG = np.random.RandomState(123)
if False:
x = np.linspace(1, 20, 39)
y = np.log(x)
dydx = 1.0 / x
f = CubicInterp(x, y, dydx)
x_test = np.linspace(0, 30, 200)
y_test = f(x_test)
plt.plot(x_test, y_test)
plt.show()
if False:
def f(x, y):
return 3.0 * x ** 2.0 + x * y + 4.0 * y ** 2.0
def dfdx(x, y):
return 6.0 * x + y
def dfdy(x, y):
return x + 8.0 * y
y_list = np.linspace(0, 5, 100, dtype=float)
xInterpolators = []
xInterpolators_alt = []
for y in y_list:
this_x_list = np.sort((RNG.rand(100) * 5.0))
this_interpolation = LinearInterp(
this_x_list, f(this_x_list, y * np.ones(this_x_list.size))
)
that_interpolation = CubicInterp(
this_x_list,
f(this_x_list, y * np.ones(this_x_list.size)),
dfdx(this_x_list, y * np.ones(this_x_list.size)),
)
xInterpolators.append(this_interpolation)
xInterpolators_alt.append(that_interpolation)
g = LinearInterpOnInterp1D(xInterpolators, y_list)
h = LinearInterpOnInterp1D(xInterpolators_alt, y_list)
rand_x = RNG.rand(100) * 5.0
rand_y = RNG.rand(100) * 5.0
z = (f(rand_x, rand_y) - g(rand_x, rand_y)) / f(rand_x, rand_y)
q = (dfdx(rand_x, rand_y) - g.derivativeX(rand_x, rand_y)) / dfdx(
rand_x, rand_y
)
r = (dfdy(rand_x, rand_y) - g.derivativeY(rand_x, rand_y)) / dfdy(
rand_x, rand_y
)
# print(z)
# print(q)
# print(r)
z = (f(rand_x, rand_y) - g(rand_x, rand_y)) / f(rand_x, rand_y)
q = (dfdx(rand_x, rand_y) - g.derivativeX(rand_x, rand_y)) / dfdx(
rand_x, rand_y
)
r = (dfdy(rand_x, rand_y) - g.derivativeY(rand_x, rand_y)) / dfdy(
rand_x, rand_y
)
print(z)
# print(q)
# print(r)
if False:
f = (
lambda x, y, z: 3.0 * x ** 2.0
+ x * y
+ 4.0 * y ** 2.0
- 5 * z ** 2.0
+ 1.5 * x * z
)
def dfdx(x, y, z):
return 6.0 * x + y + 1.5 * z
def dfdy(x, y, z):
return x + 8.0 * y
def dfdz(x, y, z):
return -10.0 * z + 1.5 * x
y_list = np.linspace(0, 5, 51, dtype=float)
z_list = np.linspace(0, 5, 51, dtype=float)
xInterpolators = []
for y in y_list:
temp = []
for z in z_list:
this_x_list = np.sort((RNG.rand(100) * 5.0))
this_interpolation = LinearInterp(
this_x_list,
f(
this_x_list,
y * np.ones(this_x_list.size),
z * np.ones(this_x_list.size),
),
)
temp.append(this_interpolation)
xInterpolators.append(deepcopy(temp))
g = BilinearInterpOnInterp1D(xInterpolators, y_list, z_list)
rand_x = RNG.rand(1000) * 5.0
rand_y = RNG.rand(1000) * 5.0
rand_z = RNG.rand(1000) * 5.0
z = (f(rand_x, rand_y, rand_z) - g(rand_x, rand_y, rand_z)) / f(
rand_x, rand_y, rand_z
)
q = (
dfdx(rand_x, rand_y, rand_z) - g.derivativeX(rand_x, rand_y, rand_z)
) / dfdx(rand_x, rand_y, rand_z)
r = (
dfdy(rand_x, rand_y, rand_z) - g.derivativeY(rand_x, rand_y, rand_z)
) / dfdy(rand_x, rand_y, rand_z)
p = (
dfdz(rand_x, rand_y, rand_z) - g.derivativeZ(rand_x, rand_y, rand_z)
) / dfdz(rand_x, rand_y, rand_z)
z.sort()
if False:
f = (
lambda w, x, y, z: 4.0 * w * z
- 2.5 * w * x
+ w * y
+ 6.0 * x * y
- 10.0 * x * z
+ 3.0 * y * z
- 7.0 * z
+ 4.0 * x
+ 2.0 * y
- 5.0 * w
)
def dfdw(w, x, y, z):
return 4.0 * z - 2.5 * x + y - 5.0
def dfdx(w, x, y, z):
return -2.5 * w + 6.0 * y - 10.0 * z + 4.0
def dfdy(w, x, y, z):
return w + 6.0 * x + 3.0 * z + 2.0
def dfdz(w, x, y, z):
return 4.0 * w - 10.0 * x + 3.0 * y - 7
x_list = np.linspace(0, 5, 16, dtype=float)
y_list = np.linspace(0, 5, 16, dtype=float)
z_list = np.linspace(0, 5, 16, dtype=float)
wInterpolators = []
for x in x_list:
temp = []
for y in y_list:
temptemp = []
for z in z_list:
this_w_list = np.sort((RNG.rand(16) * 5.0))
this_interpolation = LinearInterp(
this_w_list,
f(
this_w_list,
x * np.ones(this_w_list.size),
y * np.ones(this_w_list.size),
z * np.ones(this_w_list.size),
),
)
temptemp.append(this_interpolation)
temp.append(deepcopy(temptemp))
wInterpolators.append(deepcopy(temp))
g = TrilinearInterpOnInterp1D(wInterpolators, x_list, y_list, z_list)
N = 20000
rand_w = RNG.rand(N) * 5.0
rand_x = RNG.rand(N) * 5.0
rand_y = RNG.rand(N) * 5.0
rand_z = RNG.rand(N) * 5.0
t_start = time()
z = (f(rand_w, rand_x, rand_y, rand_z) - g(rand_w, rand_x, rand_y, rand_z)) / f(
rand_w, rand_x, rand_y, rand_z
)
q = (
dfdw(rand_w, rand_x, rand_y, rand_z)
- g.derivativeW(rand_w, rand_x, rand_y, rand_z)
) / dfdw(rand_w, rand_x, rand_y, rand_z)
r = (
dfdx(rand_w, rand_x, rand_y, rand_z)
- g.derivativeX(rand_w, rand_x, rand_y, rand_z)
) / dfdx(rand_w, rand_x, rand_y, rand_z)
p = (
dfdy(rand_w, rand_x, rand_y, rand_z)
- g.derivativeY(rand_w, rand_x, rand_y, rand_z)
) / dfdy(rand_w, rand_x, rand_y, rand_z)
s = (
dfdz(rand_w, rand_x, rand_y, rand_z)
- g.derivativeZ(rand_w, rand_x, rand_y, rand_z)
) / dfdz(rand_w, rand_x, rand_y, rand_z)
t_end = time()
z.sort()
print(z)
print(t_end - t_start)
if False:
def f(x, y):
return 3.0 * x ** 2.0 + x * y + 4.0 * y ** 2.0
def dfdx(x, y):
return 6.0 * x + y
def dfdy(x, y):
return x + 8.0 * y
x_list = np.linspace(0, 5, 101, dtype=float)
y_list = np.linspace(0, 5, 101, dtype=float)
x_temp, y_temp = np.meshgrid(x_list, y_list, indexing="ij")
g = BilinearInterp(f(x_temp, y_temp), x_list, y_list)
rand_x = RNG.rand(100) * 5.0
rand_y = RNG.rand(100) * 5.0
z = (f(rand_x, rand_y) - g(rand_x, rand_y)) / f(rand_x, rand_y)
q = (f(x_temp, y_temp) - g(x_temp, y_temp)) / f(x_temp, y_temp)
# print(z)
# print(q)
if False:
f = (
lambda x, y, z: 3.0 * x ** 2.0
+ x * y
+ 4.0 * y ** 2.0
- 5 * z ** 2.0
+ 1.5 * x * z
)
def dfdx(x, y, z):
return 6.0 * x + y + 1.5 * z
def dfdy(x, y, z):
return x + 8.0 * y
def dfdz(x, y, z):
return -10.0 * z + 1.5 * x
x_list = np.linspace(0, 5, 11, dtype=float)
y_list = np.linspace(0, 5, 11, dtype=float)
z_list = np.linspace(0, 5, 101, dtype=float)
x_temp, y_temp, z_temp = np.meshgrid(x_list, y_list, z_list, indexing="ij")
g = TrilinearInterp(f(x_temp, y_temp, z_temp), x_list, y_list, z_list)
rand_x = RNG.rand(1000) * 5.0
rand_y = RNG.rand(1000) * 5.0
rand_z = RNG.rand(1000) * 5.0
z = (f(rand_x, rand_y, rand_z) - g(rand_x, rand_y, rand_z)) / f(
rand_x, rand_y, rand_z
)
q = (
dfdx(rand_x, rand_y, rand_z) - g.derivativeX(rand_x, rand_y, rand_z)
) / dfdx(rand_x, rand_y, rand_z)
r = (
dfdy(rand_x, rand_y, rand_z) - g.derivativeY(rand_x, rand_y, rand_z)
) / dfdy(rand_x, rand_y, rand_z)
p = (
dfdz(rand_x, rand_y, rand_z) - g.derivativeZ(rand_x, rand_y, rand_z)
) / dfdz(rand_x, rand_y, rand_z)
p.sort()
plt.plot(p)
if False:
f = (
lambda w, x, y, z: 4.0 * w * z
- 2.5 * w * x
+ w * y
+ 6.0 * x * y
- 10.0 * x * z
+ 3.0 * y * z
- 7.0 * z
+ 4.0 * x
+ 2.0 * y
- 5.0 * w
)
def dfdw(w, x, y, z):
return 4.0 * z - 2.5 * x + y - 5.0
def dfdx(w, x, y, z):
return -2.5 * w + 6.0 * y - 10.0 * z + 4.0
def dfdy(w, x, y, z):
return w + 6.0 * x + 3.0 * z + 2.0
def dfdz(w, x, y, z):
return 4.0 * w - 10.0 * x + 3.0 * y - 7
w_list = np.linspace(0, 5, 16, dtype=float)
x_list = np.linspace(0, 5, 16, dtype=float)
y_list = np.linspace(0, 5, 16, dtype=float)
z_list = np.linspace(0, 5, 16, dtype=float)
w_temp, x_temp, y_temp, z_temp = np.meshgrid(
w_list, x_list, y_list, z_list, indexing="ij"
)
def mySearch(trash, x):
return np.floor(x / 5 * 32).astype(int)
g = QuadlinearInterp(
f(w_temp, x_temp, y_temp, z_temp), w_list, x_list, y_list, z_list
)
N = 1000000
rand_w = RNG.rand(N) * 5.0
rand_x = RNG.rand(N) * 5.0
rand_y = RNG.rand(N) * 5.0
rand_z = RNG.rand(N) * 5.0
t_start = time()
z = (f(rand_w, rand_x, rand_y, rand_z) - g(rand_w, rand_x, rand_y, rand_z)) / f(
rand_w, rand_x, rand_y, rand_z
)
t_end = time()
# print(z)
print(t_end - t_start)
if False:
def f(x, y):
return 3.0 * x ** 2.0 + x * y + 4.0 * y ** 2.0
def dfdx(x, y):
return 6.0 * x + y
def dfdy(x, y):
return x + 8.0 * y
warp_factor = 0.01
x_list = np.linspace(0, 5, 71, dtype=float)
y_list = np.linspace(0, 5, 51, dtype=float)
x_temp, y_temp = np.meshgrid(x_list, y_list, indexing="ij")
x_adj = x_temp + warp_factor * (RNG.rand(x_list.size, y_list.size) - 0.5)
y_adj = y_temp + warp_factor * (RNG.rand(x_list.size, y_list.size) - 0.5)
g = Curvilinear2DInterp(f(x_adj, y_adj), x_adj, y_adj)
rand_x = RNG.rand(1000) * 5.0
rand_y = RNG.rand(1000) * 5.0
t_start = time()
z = (f(rand_x, rand_y) - g(rand_x, rand_y)) / f(rand_x, rand_y)
q = (dfdx(rand_x, rand_y) - g.derivativeX(rand_x, rand_y)) / dfdx(
rand_x, rand_y
)
r = (dfdy(rand_x, rand_y) - g.derivativeY(rand_x, rand_y)) / dfdy(
rand_x, rand_y
)
t_end = time()
z.sort()
q.sort()
r.sort()
# print(z)
print(t_end - t_start)
if False:
f = (
lambda x, y, z: 3.0 * x ** 2.0
+ x * y
+ 4.0 * y ** 2.0
- 5 * z ** 2.0
+ 1.5 * x * z
)
def dfdx(x, y, z):
return 6.0 * x + y + 1.5 * z
def dfdy(x, y, z):
return x + 8.0 * y
def dfdz(x, y, z):
return -10.0 * z + 1.5 * x
warp_factor = 0.01
x_list = np.linspace(0, 5, 11, dtype=float)
y_list = np.linspace(0, 5, 11, dtype=float)
z_list = np.linspace(0, 5, 101, dtype=float)
x_temp, y_temp = np.meshgrid(x_list, y_list, indexing="ij")
xyInterpolators = []
for j in range(z_list.size):
x_adj = x_temp + warp_factor * (RNG.rand(x_list.size, y_list.size) - 0.5)
y_adj = y_temp + warp_factor * (RNG.rand(x_list.size, y_list.size) - 0.5)
z_temp = z_list[j] * np.ones(x_adj.shape)
thisInterp = Curvilinear2DInterp(f(x_adj, y_adj, z_temp), x_adj, y_adj)
xyInterpolators.append(thisInterp)
g = LinearInterpOnInterp2D(xyInterpolators, z_list)
N = 1000
rand_x = RNG.rand(N) * 5.0
rand_y = RNG.rand(N) * 5.0
rand_z = RNG.rand(N) * 5.0
z = (f(rand_x, rand_y, rand_z) - g(rand_x, rand_y, rand_z)) / f(
rand_x, rand_y, rand_z
)
p = (
dfdz(rand_x, rand_y, rand_z) - g.derivativeZ(rand_x, rand_y, rand_z)
) / dfdz(rand_x, rand_y, rand_z)
p.sort()
plt.plot(p)
if False:
f = (
lambda w, x, y, z: 4.0 * w * z
- 2.5 * w * x
+ w * y
+ 6.0 * x * y
- 10.0 * x * z
+ 3.0 * y * z
- 7.0 * z
+ 4.0 * x
+ 2.0 * y
- 5.0 * w
)
def dfdw(w, x, y, z):
return 4.0 * z - 2.5 * x + y - 5.0
def dfdx(w, x, y, z):
return -2.5 * w + 6.0 * y - 10.0 * z + 4.0
def dfdy(w, x, y, z):
return w + 6.0 * x + 3.0 * z + 2.0
def dfdz(w, x, y, z):
return 4.0 * w - 10.0 * x + 3.0 * y - 7
warp_factor = 0.1
w_list = np.linspace(0, 5, 16, dtype=float)
x_list = np.linspace(0, 5, 16, dtype=float)
y_list = np.linspace(0, 5, 16, dtype=float)
z_list = np.linspace(0, 5, 16, dtype=float)
w_temp, x_temp = np.meshgrid(w_list, x_list, indexing="ij")
wxInterpolators = []
for i in range(y_list.size):
temp = []
for j in range(z_list.size):
w_adj = w_temp + warp_factor * (
RNG.rand(w_list.size, x_list.size) - 0.5
)
x_adj = x_temp + warp_factor * (
RNG.rand(w_list.size, x_list.size) - 0.5
)
y_temp = y_list[i] * np.ones(w_adj.shape)
z_temp = z_list[j] * np.ones(w_adj.shape)
thisInterp = Curvilinear2DInterp(
f(w_adj, x_adj, y_temp, z_temp), w_adj, x_adj
)
temp.append(thisInterp)
wxInterpolators.append(temp)
g = BilinearInterpOnInterp2D(wxInterpolators, y_list, z_list)
N = 1000000
rand_w = RNG.rand(N) * 5.0
rand_x = RNG.rand(N) * 5.0
rand_y = RNG.rand(N) * 5.0
rand_z = RNG.rand(N) * 5.0
t_start = time()
z = (f(rand_w, rand_x, rand_y, rand_z) - g(rand_w, rand_x, rand_y, rand_z)) / f(
rand_w, rand_x, rand_y, rand_z
)
t_end = time()
z.sort()
print(z)
print(t_end - t_start)
| 38.644788
| 102
| 0.493391
| 26,971
| 200,180
| 3.509288
| 0.029847
| 0.019398
| 0.019873
| 0.013524
| 0.857706
| 0.837103
| 0.817293
| 0.800315
| 0.776405
| 0.759744
| 0
| 0.021942
| 0.390539
| 200,180
| 5,179
| 103
| 38.652249
| 0.753856
| 0.239784
| 0
| 0.702306
| 0
| 0
| 0.008516
| 0.000167
| 0
| 0
| 0
| 0
| 0.000299
| 1
| 0.05301
| false
| 0
| 0.001797
| 0.009284
| 0.1177
| 0.003294
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
fc245c9ccb3aa6b44699d3f837bef4e4d24c389f
| 43,882
|
py
|
Python
|
src/oci/devops/devops_client_composite_operations.py
|
Manny27nyc/oci-python-sdk
|
de60b04e07a99826254f7255e992f41772902df7
|
[
"Apache-2.0",
"BSD-3-Clause"
] | null | null | null |
src/oci/devops/devops_client_composite_operations.py
|
Manny27nyc/oci-python-sdk
|
de60b04e07a99826254f7255e992f41772902df7
|
[
"Apache-2.0",
"BSD-3-Clause"
] | null | null | null |
src/oci/devops/devops_client_composite_operations.py
|
Manny27nyc/oci-python-sdk
|
de60b04e07a99826254f7255e992f41772902df7
|
[
"Apache-2.0",
"BSD-3-Clause"
] | null | null | null |
# coding: utf-8
# Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved.
# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
import oci # noqa: F401
from oci.util import WAIT_RESOURCE_NOT_FOUND # noqa: F401
class DevopsClientCompositeOperations(object):
"""
This class provides a wrapper around :py:class:`~oci.devops.DevopsClient` and offers convenience methods
for operations that would otherwise need to be chained together. For example, instead of performing an action
on a resource (e.g. launching an instance, creating a load balancer) and then using a waiter to wait for the resource
to enter a given state, you can call a single method in this class to accomplish the same functionality
"""
def __init__(self, client, **kwargs):
"""
Creates a new DevopsClientCompositeOperations object
:param DevopsClient client:
The service client which will be wrapped by this object
"""
self.client = client
def approve_deployment_and_wait_for_state(self, deployment_id, approve_deployment_details, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}):
"""
Calls :py:func:`~oci.devops.DevopsClient.approve_deployment` and waits for the :py:class:`~oci.devops.models.Deployment` acted upon
to enter the given state(s).
:param str deployment_id: (required)
Unique deployment identifier.
:param oci.devops.models.ApproveDeploymentDetails approve_deployment_details: (required)
The stage information for approval.
:param list[str] wait_for_states:
An array of states to wait on. These should be valid values for :py:attr:`~oci.devops.models.Deployment.lifecycle_state`
:param dict operation_kwargs:
A dictionary of keyword arguments to pass to :py:func:`~oci.devops.DevopsClient.approve_deployment`
:param dict waiter_kwargs:
A dictionary of keyword arguments to pass to the :py:func:`oci.wait_until` function. For example, you could pass ``max_interval_seconds`` or ``max_interval_seconds``
as dictionary keys to modify how long the waiter function will wait between retries and the maximum amount of time it will wait
"""
operation_result = self.client.approve_deployment(deployment_id, approve_deployment_details, **operation_kwargs)
if not wait_for_states:
return operation_result
lowered_wait_for_states = [w.lower() for w in wait_for_states]
wait_for_resource_id = operation_result.data.id
try:
waiter_result = oci.wait_until(
self.client,
self.client.get_deployment(wait_for_resource_id),
evaluate_response=lambda r: getattr(r.data, 'lifecycle_state') and getattr(r.data, 'lifecycle_state').lower() in lowered_wait_for_states,
**waiter_kwargs
)
result_to_return = waiter_result
return result_to_return
except Exception as e:
raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
def cancel_deployment_and_wait_for_state(self, deployment_id, cancel_deployment_details, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}):
"""
Calls :py:func:`~oci.devops.DevopsClient.cancel_deployment` and waits for the :py:class:`~oci.devops.models.Deployment` acted upon
to enter the given state(s).
:param str deployment_id: (required)
Unique deployment identifier.
:param oci.devops.models.CancelDeploymentDetails cancel_deployment_details: (required)
The information regarding the deployment to be canceled.
:param list[str] wait_for_states:
An array of states to wait on. These should be valid values for :py:attr:`~oci.devops.models.Deployment.lifecycle_state`
:param dict operation_kwargs:
A dictionary of keyword arguments to pass to :py:func:`~oci.devops.DevopsClient.cancel_deployment`
:param dict waiter_kwargs:
A dictionary of keyword arguments to pass to the :py:func:`oci.wait_until` function. For example, you could pass ``max_interval_seconds`` or ``max_interval_seconds``
as dictionary keys to modify how long the waiter function will wait between retries and the maximum amount of time it will wait
"""
operation_result = self.client.cancel_deployment(deployment_id, cancel_deployment_details, **operation_kwargs)
if not wait_for_states:
return operation_result
lowered_wait_for_states = [w.lower() for w in wait_for_states]
wait_for_resource_id = operation_result.data.id
try:
waiter_result = oci.wait_until(
self.client,
self.client.get_deployment(wait_for_resource_id),
evaluate_response=lambda r: getattr(r.data, 'lifecycle_state') and getattr(r.data, 'lifecycle_state').lower() in lowered_wait_for_states,
**waiter_kwargs
)
result_to_return = waiter_result
return result_to_return
except Exception as e:
raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
def change_project_compartment_and_wait_for_state(self, project_id, change_project_compartment_details, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}):
"""
Calls :py:func:`~oci.devops.DevopsClient.change_project_compartment` and waits for the :py:class:`~oci.devops.models.WorkRequest`
to enter the given state(s).
:param str project_id: (required)
Unique project identifier.
:param oci.devops.models.ChangeProjectCompartmentDetails change_project_compartment_details: (required)
The information to be updated.
:param list[str] wait_for_states:
An array of states to wait on. These should be valid values for :py:attr:`~oci.devops.models.WorkRequest.status`
:param dict operation_kwargs:
A dictionary of keyword arguments to pass to :py:func:`~oci.devops.DevopsClient.change_project_compartment`
:param dict waiter_kwargs:
A dictionary of keyword arguments to pass to the :py:func:`oci.wait_until` function. For example, you could pass ``max_interval_seconds`` or ``max_interval_seconds``
as dictionary keys to modify how long the waiter function will wait between retries and the maximum amount of time it will wait
"""
operation_result = self.client.change_project_compartment(project_id, change_project_compartment_details, **operation_kwargs)
if not wait_for_states:
return operation_result
lowered_wait_for_states = [w.lower() for w in wait_for_states]
wait_for_resource_id = operation_result.headers['opc-work-request-id']
try:
waiter_result = oci.wait_until(
self.client,
self.client.get_work_request(wait_for_resource_id),
evaluate_response=lambda r: getattr(r.data, 'status') and getattr(r.data, 'status').lower() in lowered_wait_for_states,
**waiter_kwargs
)
result_to_return = waiter_result
return result_to_return
except Exception as e:
raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
def create_deploy_artifact_and_wait_for_state(self, create_deploy_artifact_details, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}):
"""
Calls :py:func:`~oci.devops.DevopsClient.create_deploy_artifact` and waits for the :py:class:`~oci.devops.models.WorkRequest`
to enter the given state(s).
:param oci.devops.models.CreateDeployArtifactDetails create_deploy_artifact_details: (required)
Details for the new deployment artifact.
:param list[str] wait_for_states:
An array of states to wait on. These should be valid values for :py:attr:`~oci.devops.models.WorkRequest.status`
:param dict operation_kwargs:
A dictionary of keyword arguments to pass to :py:func:`~oci.devops.DevopsClient.create_deploy_artifact`
:param dict waiter_kwargs:
A dictionary of keyword arguments to pass to the :py:func:`oci.wait_until` function. For example, you could pass ``max_interval_seconds`` or ``max_interval_seconds``
as dictionary keys to modify how long the waiter function will wait between retries and the maximum amount of time it will wait
"""
operation_result = self.client.create_deploy_artifact(create_deploy_artifact_details, **operation_kwargs)
if not wait_for_states:
return operation_result
lowered_wait_for_states = [w.lower() for w in wait_for_states]
wait_for_resource_id = operation_result.headers['opc-work-request-id']
try:
waiter_result = oci.wait_until(
self.client,
self.client.get_work_request(wait_for_resource_id),
evaluate_response=lambda r: getattr(r.data, 'status') and getattr(r.data, 'status').lower() in lowered_wait_for_states,
**waiter_kwargs
)
result_to_return = waiter_result
return result_to_return
except Exception as e:
raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
def create_deploy_environment_and_wait_for_state(self, create_deploy_environment_details, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}):
"""
Calls :py:func:`~oci.devops.DevopsClient.create_deploy_environment` and waits for the :py:class:`~oci.devops.models.WorkRequest`
to enter the given state(s).
:param oci.devops.models.CreateDeployEnvironmentDetails create_deploy_environment_details: (required)
Details for the new deployment environment.
:param list[str] wait_for_states:
An array of states to wait on. These should be valid values for :py:attr:`~oci.devops.models.WorkRequest.status`
:param dict operation_kwargs:
A dictionary of keyword arguments to pass to :py:func:`~oci.devops.DevopsClient.create_deploy_environment`
:param dict waiter_kwargs:
A dictionary of keyword arguments to pass to the :py:func:`oci.wait_until` function. For example, you could pass ``max_interval_seconds`` or ``max_interval_seconds``
as dictionary keys to modify how long the waiter function will wait between retries and the maximum amount of time it will wait
"""
operation_result = self.client.create_deploy_environment(create_deploy_environment_details, **operation_kwargs)
if not wait_for_states:
return operation_result
lowered_wait_for_states = [w.lower() for w in wait_for_states]
wait_for_resource_id = operation_result.headers['opc-work-request-id']
try:
waiter_result = oci.wait_until(
self.client,
self.client.get_work_request(wait_for_resource_id),
evaluate_response=lambda r: getattr(r.data, 'status') and getattr(r.data, 'status').lower() in lowered_wait_for_states,
**waiter_kwargs
)
result_to_return = waiter_result
return result_to_return
except Exception as e:
raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
def create_deploy_pipeline_and_wait_for_state(self, create_deploy_pipeline_details, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}):
"""
Calls :py:func:`~oci.devops.DevopsClient.create_deploy_pipeline` and waits for the :py:class:`~oci.devops.models.WorkRequest`
to enter the given state(s).
:param oci.devops.models.CreateDeployPipelineDetails create_deploy_pipeline_details: (required)
Details for the new deployment pipeline.
:param list[str] wait_for_states:
An array of states to wait on. These should be valid values for :py:attr:`~oci.devops.models.WorkRequest.status`
:param dict operation_kwargs:
A dictionary of keyword arguments to pass to :py:func:`~oci.devops.DevopsClient.create_deploy_pipeline`
:param dict waiter_kwargs:
A dictionary of keyword arguments to pass to the :py:func:`oci.wait_until` function. For example, you could pass ``max_interval_seconds`` or ``max_interval_seconds``
as dictionary keys to modify how long the waiter function will wait between retries and the maximum amount of time it will wait
"""
operation_result = self.client.create_deploy_pipeline(create_deploy_pipeline_details, **operation_kwargs)
if not wait_for_states:
return operation_result
lowered_wait_for_states = [w.lower() for w in wait_for_states]
wait_for_resource_id = operation_result.headers['opc-work-request-id']
try:
waiter_result = oci.wait_until(
self.client,
self.client.get_work_request(wait_for_resource_id),
evaluate_response=lambda r: getattr(r.data, 'status') and getattr(r.data, 'status').lower() in lowered_wait_for_states,
**waiter_kwargs
)
result_to_return = waiter_result
return result_to_return
except Exception as e:
raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
def create_deploy_stage_and_wait_for_state(self, create_deploy_stage_details, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}):
"""
Calls :py:func:`~oci.devops.DevopsClient.create_deploy_stage` and waits for the :py:class:`~oci.devops.models.WorkRequest`
to enter the given state(s).
:param oci.devops.models.CreateDeployStageDetails create_deploy_stage_details: (required)
Details for the new DeployStage.
:param list[str] wait_for_states:
An array of states to wait on. These should be valid values for :py:attr:`~oci.devops.models.WorkRequest.status`
:param dict operation_kwargs:
A dictionary of keyword arguments to pass to :py:func:`~oci.devops.DevopsClient.create_deploy_stage`
:param dict waiter_kwargs:
A dictionary of keyword arguments to pass to the :py:func:`oci.wait_until` function. For example, you could pass ``max_interval_seconds`` or ``max_interval_seconds``
as dictionary keys to modify how long the waiter function will wait between retries and the maximum amount of time it will wait
"""
operation_result = self.client.create_deploy_stage(create_deploy_stage_details, **operation_kwargs)
if not wait_for_states:
return operation_result
lowered_wait_for_states = [w.lower() for w in wait_for_states]
wait_for_resource_id = operation_result.headers['opc-work-request-id']
try:
waiter_result = oci.wait_until(
self.client,
self.client.get_work_request(wait_for_resource_id),
evaluate_response=lambda r: getattr(r.data, 'status') and getattr(r.data, 'status').lower() in lowered_wait_for_states,
**waiter_kwargs
)
result_to_return = waiter_result
return result_to_return
except Exception as e:
raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
def create_deployment_and_wait_for_state(self, create_deployment_details, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}):
"""
Calls :py:func:`~oci.devops.DevopsClient.create_deployment` and waits for the :py:class:`~oci.devops.models.Deployment` acted upon
to enter the given state(s).
:param oci.devops.models.CreateDeploymentDetails create_deployment_details: (required)
Details for the new deployment.
:param list[str] wait_for_states:
An array of states to wait on. These should be valid values for :py:attr:`~oci.devops.models.Deployment.lifecycle_state`
:param dict operation_kwargs:
A dictionary of keyword arguments to pass to :py:func:`~oci.devops.DevopsClient.create_deployment`
:param dict waiter_kwargs:
A dictionary of keyword arguments to pass to the :py:func:`oci.wait_until` function. For example, you could pass ``max_interval_seconds`` or ``max_interval_seconds``
as dictionary keys to modify how long the waiter function will wait between retries and the maximum amount of time it will wait
"""
operation_result = self.client.create_deployment(create_deployment_details, **operation_kwargs)
if not wait_for_states:
return operation_result
lowered_wait_for_states = [w.lower() for w in wait_for_states]
wait_for_resource_id = operation_result.data.id
try:
waiter_result = oci.wait_until(
self.client,
self.client.get_deployment(wait_for_resource_id),
evaluate_response=lambda r: getattr(r.data, 'lifecycle_state') and getattr(r.data, 'lifecycle_state').lower() in lowered_wait_for_states,
**waiter_kwargs
)
result_to_return = waiter_result
return result_to_return
except Exception as e:
raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
def create_project_and_wait_for_state(self, create_project_details, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}):
"""
Calls :py:func:`~oci.devops.DevopsClient.create_project` and waits for the :py:class:`~oci.devops.models.WorkRequest`
to enter the given state(s).
:param oci.devops.models.CreateProjectDetails create_project_details: (required)
Details for the new project.
:param list[str] wait_for_states:
An array of states to wait on. These should be valid values for :py:attr:`~oci.devops.models.WorkRequest.status`
:param dict operation_kwargs:
A dictionary of keyword arguments to pass to :py:func:`~oci.devops.DevopsClient.create_project`
:param dict waiter_kwargs:
A dictionary of keyword arguments to pass to the :py:func:`oci.wait_until` function. For example, you could pass ``max_interval_seconds`` or ``max_interval_seconds``
as dictionary keys to modify how long the waiter function will wait between retries and the maximum amount of time it will wait
"""
operation_result = self.client.create_project(create_project_details, **operation_kwargs)
if not wait_for_states:
return operation_result
lowered_wait_for_states = [w.lower() for w in wait_for_states]
wait_for_resource_id = operation_result.headers['opc-work-request-id']
try:
waiter_result = oci.wait_until(
self.client,
self.client.get_work_request(wait_for_resource_id),
evaluate_response=lambda r: getattr(r.data, 'status') and getattr(r.data, 'status').lower() in lowered_wait_for_states,
**waiter_kwargs
)
result_to_return = waiter_result
return result_to_return
except Exception as e:
raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
def delete_deploy_artifact_and_wait_for_state(self, deploy_artifact_id, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}):
"""
Calls :py:func:`~oci.devops.DevopsClient.delete_deploy_artifact` and waits for the :py:class:`~oci.devops.models.WorkRequest`
to enter the given state(s).
:param str deploy_artifact_id: (required)
Unique artifact identifier.
:param list[str] wait_for_states:
An array of states to wait on. These should be valid values for :py:attr:`~oci.devops.models.WorkRequest.status`
:param dict operation_kwargs:
A dictionary of keyword arguments to pass to :py:func:`~oci.devops.DevopsClient.delete_deploy_artifact`
:param dict waiter_kwargs:
A dictionary of keyword arguments to pass to the :py:func:`oci.wait_until` function. For example, you could pass ``max_interval_seconds`` or ``max_interval_seconds``
as dictionary keys to modify how long the waiter function will wait between retries and the maximum amount of time it will wait
"""
operation_result = None
try:
operation_result = self.client.delete_deploy_artifact(deploy_artifact_id, **operation_kwargs)
except oci.exceptions.ServiceError as e:
if e.status == 404:
return WAIT_RESOURCE_NOT_FOUND
else:
raise e
if not wait_for_states:
return operation_result
lowered_wait_for_states = [w.lower() for w in wait_for_states]
wait_for_resource_id = operation_result.headers['opc-work-request-id']
try:
waiter_result = oci.wait_until(
self.client,
self.client.get_work_request(wait_for_resource_id),
evaluate_response=lambda r: getattr(r.data, 'status') and getattr(r.data, 'status').lower() in lowered_wait_for_states,
**waiter_kwargs
)
result_to_return = waiter_result
return result_to_return
except Exception as e:
raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
def delete_deploy_environment_and_wait_for_state(self, deploy_environment_id, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}):
"""
Calls :py:func:`~oci.devops.DevopsClient.delete_deploy_environment` and waits for the :py:class:`~oci.devops.models.WorkRequest`
to enter the given state(s).
:param str deploy_environment_id: (required)
Unique environment identifier.
:param list[str] wait_for_states:
An array of states to wait on. These should be valid values for :py:attr:`~oci.devops.models.WorkRequest.status`
:param dict operation_kwargs:
A dictionary of keyword arguments to pass to :py:func:`~oci.devops.DevopsClient.delete_deploy_environment`
:param dict waiter_kwargs:
A dictionary of keyword arguments to pass to the :py:func:`oci.wait_until` function. For example, you could pass ``max_interval_seconds`` or ``max_interval_seconds``
as dictionary keys to modify how long the waiter function will wait between retries and the maximum amount of time it will wait
"""
operation_result = None
try:
operation_result = self.client.delete_deploy_environment(deploy_environment_id, **operation_kwargs)
except oci.exceptions.ServiceError as e:
if e.status == 404:
return WAIT_RESOURCE_NOT_FOUND
else:
raise e
if not wait_for_states:
return operation_result
lowered_wait_for_states = [w.lower() for w in wait_for_states]
wait_for_resource_id = operation_result.headers['opc-work-request-id']
try:
waiter_result = oci.wait_until(
self.client,
self.client.get_work_request(wait_for_resource_id),
evaluate_response=lambda r: getattr(r.data, 'status') and getattr(r.data, 'status').lower() in lowered_wait_for_states,
**waiter_kwargs
)
result_to_return = waiter_result
return result_to_return
except Exception as e:
raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
def delete_deploy_pipeline_and_wait_for_state(self, deploy_pipeline_id, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}):
"""
Calls :py:func:`~oci.devops.DevopsClient.delete_deploy_pipeline` and waits for the :py:class:`~oci.devops.models.WorkRequest`
to enter the given state(s).
:param str deploy_pipeline_id: (required)
Unique pipeline identifier.
:param list[str] wait_for_states:
An array of states to wait on. These should be valid values for :py:attr:`~oci.devops.models.WorkRequest.status`
:param dict operation_kwargs:
A dictionary of keyword arguments to pass to :py:func:`~oci.devops.DevopsClient.delete_deploy_pipeline`
:param dict waiter_kwargs:
A dictionary of keyword arguments to pass to the :py:func:`oci.wait_until` function. For example, you could pass ``max_interval_seconds`` or ``max_interval_seconds``
as dictionary keys to modify how long the waiter function will wait between retries and the maximum amount of time it will wait
"""
operation_result = None
try:
operation_result = self.client.delete_deploy_pipeline(deploy_pipeline_id, **operation_kwargs)
except oci.exceptions.ServiceError as e:
if e.status == 404:
return WAIT_RESOURCE_NOT_FOUND
else:
raise e
if not wait_for_states:
return operation_result
lowered_wait_for_states = [w.lower() for w in wait_for_states]
wait_for_resource_id = operation_result.headers['opc-work-request-id']
try:
waiter_result = oci.wait_until(
self.client,
self.client.get_work_request(wait_for_resource_id),
evaluate_response=lambda r: getattr(r.data, 'status') and getattr(r.data, 'status').lower() in lowered_wait_for_states,
**waiter_kwargs
)
result_to_return = waiter_result
return result_to_return
except Exception as e:
raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
def delete_deploy_stage_and_wait_for_state(self, deploy_stage_id, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}):
"""
Calls :py:func:`~oci.devops.DevopsClient.delete_deploy_stage` and waits for the :py:class:`~oci.devops.models.WorkRequest`
to enter the given state(s).
:param str deploy_stage_id: (required)
Unique stage identifier.
:param list[str] wait_for_states:
An array of states to wait on. These should be valid values for :py:attr:`~oci.devops.models.WorkRequest.status`
:param dict operation_kwargs:
A dictionary of keyword arguments to pass to :py:func:`~oci.devops.DevopsClient.delete_deploy_stage`
:param dict waiter_kwargs:
A dictionary of keyword arguments to pass to the :py:func:`oci.wait_until` function. For example, you could pass ``max_interval_seconds`` or ``max_interval_seconds``
as dictionary keys to modify how long the waiter function will wait between retries and the maximum amount of time it will wait
"""
operation_result = None
try:
operation_result = self.client.delete_deploy_stage(deploy_stage_id, **operation_kwargs)
except oci.exceptions.ServiceError as e:
if e.status == 404:
return WAIT_RESOURCE_NOT_FOUND
else:
raise e
if not wait_for_states:
return operation_result
lowered_wait_for_states = [w.lower() for w in wait_for_states]
wait_for_resource_id = operation_result.headers['opc-work-request-id']
try:
waiter_result = oci.wait_until(
self.client,
self.client.get_work_request(wait_for_resource_id),
evaluate_response=lambda r: getattr(r.data, 'status') and getattr(r.data, 'status').lower() in lowered_wait_for_states,
**waiter_kwargs
)
result_to_return = waiter_result
return result_to_return
except Exception as e:
raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
def delete_project_and_wait_for_state(self, project_id, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}):
"""
Calls :py:func:`~oci.devops.DevopsClient.delete_project` and waits for the :py:class:`~oci.devops.models.WorkRequest`
to enter the given state(s).
:param str project_id: (required)
Unique project identifier.
:param list[str] wait_for_states:
An array of states to wait on. These should be valid values for :py:attr:`~oci.devops.models.WorkRequest.status`
:param dict operation_kwargs:
A dictionary of keyword arguments to pass to :py:func:`~oci.devops.DevopsClient.delete_project`
:param dict waiter_kwargs:
A dictionary of keyword arguments to pass to the :py:func:`oci.wait_until` function. For example, you could pass ``max_interval_seconds`` or ``max_interval_seconds``
as dictionary keys to modify how long the waiter function will wait between retries and the maximum amount of time it will wait
"""
operation_result = None
try:
operation_result = self.client.delete_project(project_id, **operation_kwargs)
except oci.exceptions.ServiceError as e:
if e.status == 404:
return WAIT_RESOURCE_NOT_FOUND
else:
raise e
if not wait_for_states:
return operation_result
lowered_wait_for_states = [w.lower() for w in wait_for_states]
wait_for_resource_id = operation_result.headers['opc-work-request-id']
try:
waiter_result = oci.wait_until(
self.client,
self.client.get_work_request(wait_for_resource_id),
evaluate_response=lambda r: getattr(r.data, 'status') and getattr(r.data, 'status').lower() in lowered_wait_for_states,
**waiter_kwargs
)
result_to_return = waiter_result
return result_to_return
except Exception as e:
raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
def update_deploy_artifact_and_wait_for_state(self, deploy_artifact_id, update_deploy_artifact_details, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}):
"""
Calls :py:func:`~oci.devops.DevopsClient.update_deploy_artifact` and waits for the :py:class:`~oci.devops.models.WorkRequest`
to enter the given state(s).
:param str deploy_artifact_id: (required)
Unique artifact identifier.
:param oci.devops.models.UpdateDeployArtifactDetails update_deploy_artifact_details: (required)
The information to be updated.
:param list[str] wait_for_states:
An array of states to wait on. These should be valid values for :py:attr:`~oci.devops.models.WorkRequest.status`
:param dict operation_kwargs:
A dictionary of keyword arguments to pass to :py:func:`~oci.devops.DevopsClient.update_deploy_artifact`
:param dict waiter_kwargs:
A dictionary of keyword arguments to pass to the :py:func:`oci.wait_until` function. For example, you could pass ``max_interval_seconds`` or ``max_interval_seconds``
as dictionary keys to modify how long the waiter function will wait between retries and the maximum amount of time it will wait
"""
operation_result = self.client.update_deploy_artifact(deploy_artifact_id, update_deploy_artifact_details, **operation_kwargs)
if not wait_for_states:
return operation_result
lowered_wait_for_states = [w.lower() for w in wait_for_states]
wait_for_resource_id = operation_result.headers['opc-work-request-id']
try:
waiter_result = oci.wait_until(
self.client,
self.client.get_work_request(wait_for_resource_id),
evaluate_response=lambda r: getattr(r.data, 'status') and getattr(r.data, 'status').lower() in lowered_wait_for_states,
**waiter_kwargs
)
result_to_return = waiter_result
return result_to_return
except Exception as e:
raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
def update_deploy_environment_and_wait_for_state(self, deploy_environment_id, update_deploy_environment_details, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}):
"""
Calls :py:func:`~oci.devops.DevopsClient.update_deploy_environment` and waits for the :py:class:`~oci.devops.models.WorkRequest`
to enter the given state(s).
:param str deploy_environment_id: (required)
Unique environment identifier.
:param oci.devops.models.UpdateDeployEnvironmentDetails update_deploy_environment_details: (required)
The information to be updated.
:param list[str] wait_for_states:
An array of states to wait on. These should be valid values for :py:attr:`~oci.devops.models.WorkRequest.status`
:param dict operation_kwargs:
A dictionary of keyword arguments to pass to :py:func:`~oci.devops.DevopsClient.update_deploy_environment`
:param dict waiter_kwargs:
A dictionary of keyword arguments to pass to the :py:func:`oci.wait_until` function. For example, you could pass ``max_interval_seconds`` or ``max_interval_seconds``
as dictionary keys to modify how long the waiter function will wait between retries and the maximum amount of time it will wait
"""
operation_result = self.client.update_deploy_environment(deploy_environment_id, update_deploy_environment_details, **operation_kwargs)
if not wait_for_states:
return operation_result
lowered_wait_for_states = [w.lower() for w in wait_for_states]
wait_for_resource_id = operation_result.headers['opc-work-request-id']
try:
waiter_result = oci.wait_until(
self.client,
self.client.get_work_request(wait_for_resource_id),
evaluate_response=lambda r: getattr(r.data, 'status') and getattr(r.data, 'status').lower() in lowered_wait_for_states,
**waiter_kwargs
)
result_to_return = waiter_result
return result_to_return
except Exception as e:
raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
def update_deploy_pipeline_and_wait_for_state(self, deploy_pipeline_id, update_deploy_pipeline_details, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}):
"""
Calls :py:func:`~oci.devops.DevopsClient.update_deploy_pipeline` and waits for the :py:class:`~oci.devops.models.WorkRequest`
to enter the given state(s).
:param str deploy_pipeline_id: (required)
Unique pipeline identifier.
:param oci.devops.models.UpdateDeployPipelineDetails update_deploy_pipeline_details: (required)
The information to be updated.
:param list[str] wait_for_states:
An array of states to wait on. These should be valid values for :py:attr:`~oci.devops.models.WorkRequest.status`
:param dict operation_kwargs:
A dictionary of keyword arguments to pass to :py:func:`~oci.devops.DevopsClient.update_deploy_pipeline`
:param dict waiter_kwargs:
A dictionary of keyword arguments to pass to the :py:func:`oci.wait_until` function. For example, you could pass ``max_interval_seconds`` or ``max_interval_seconds``
as dictionary keys to modify how long the waiter function will wait between retries and the maximum amount of time it will wait
"""
operation_result = self.client.update_deploy_pipeline(deploy_pipeline_id, update_deploy_pipeline_details, **operation_kwargs)
if not wait_for_states:
return operation_result
lowered_wait_for_states = [w.lower() for w in wait_for_states]
wait_for_resource_id = operation_result.headers['opc-work-request-id']
try:
waiter_result = oci.wait_until(
self.client,
self.client.get_work_request(wait_for_resource_id),
evaluate_response=lambda r: getattr(r.data, 'status') and getattr(r.data, 'status').lower() in lowered_wait_for_states,
**waiter_kwargs
)
result_to_return = waiter_result
return result_to_return
except Exception as e:
raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
def update_deploy_stage_and_wait_for_state(self, deploy_stage_id, update_deploy_stage_details, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}):
"""
Calls :py:func:`~oci.devops.DevopsClient.update_deploy_stage` and waits for the :py:class:`~oci.devops.models.WorkRequest`
to enter the given state(s).
:param str deploy_stage_id: (required)
Unique stage identifier.
:param oci.devops.models.UpdateDeployStageDetails update_deploy_stage_details: (required)
The information to be updated.
:param list[str] wait_for_states:
An array of states to wait on. These should be valid values for :py:attr:`~oci.devops.models.WorkRequest.status`
:param dict operation_kwargs:
A dictionary of keyword arguments to pass to :py:func:`~oci.devops.DevopsClient.update_deploy_stage`
:param dict waiter_kwargs:
A dictionary of keyword arguments to pass to the :py:func:`oci.wait_until` function. For example, you could pass ``max_interval_seconds`` or ``max_interval_seconds``
as dictionary keys to modify how long the waiter function will wait between retries and the maximum amount of time it will wait
"""
operation_result = self.client.update_deploy_stage(deploy_stage_id, update_deploy_stage_details, **operation_kwargs)
if not wait_for_states:
return operation_result
lowered_wait_for_states = [w.lower() for w in wait_for_states]
wait_for_resource_id = operation_result.headers['opc-work-request-id']
try:
waiter_result = oci.wait_until(
self.client,
self.client.get_work_request(wait_for_resource_id),
evaluate_response=lambda r: getattr(r.data, 'status') and getattr(r.data, 'status').lower() in lowered_wait_for_states,
**waiter_kwargs
)
result_to_return = waiter_result
return result_to_return
except Exception as e:
raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
def update_deployment_and_wait_for_state(self, deployment_id, update_deployment_details, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}):
"""
Calls :py:func:`~oci.devops.DevopsClient.update_deployment` and waits for the :py:class:`~oci.devops.models.Deployment` acted upon
to enter the given state(s).
:param str deployment_id: (required)
Unique deployment identifier.
:param oci.devops.models.UpdateDeploymentDetails update_deployment_details: (required)
The information to be updated.
:param list[str] wait_for_states:
An array of states to wait on. These should be valid values for :py:attr:`~oci.devops.models.Deployment.lifecycle_state`
:param dict operation_kwargs:
A dictionary of keyword arguments to pass to :py:func:`~oci.devops.DevopsClient.update_deployment`
:param dict waiter_kwargs:
A dictionary of keyword arguments to pass to the :py:func:`oci.wait_until` function. For example, you could pass ``max_interval_seconds`` or ``max_interval_seconds``
as dictionary keys to modify how long the waiter function will wait between retries and the maximum amount of time it will wait
"""
operation_result = self.client.update_deployment(deployment_id, update_deployment_details, **operation_kwargs)
if not wait_for_states:
return operation_result
lowered_wait_for_states = [w.lower() for w in wait_for_states]
wait_for_resource_id = operation_result.data.id
try:
waiter_result = oci.wait_until(
self.client,
self.client.get_deployment(wait_for_resource_id),
evaluate_response=lambda r: getattr(r.data, 'lifecycle_state') and getattr(r.data, 'lifecycle_state').lower() in lowered_wait_for_states,
**waiter_kwargs
)
result_to_return = waiter_result
return result_to_return
except Exception as e:
raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
def update_project_and_wait_for_state(self, project_id, update_project_details, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}):
"""
Calls :py:func:`~oci.devops.DevopsClient.update_project` and waits for the :py:class:`~oci.devops.models.WorkRequest`
to enter the given state(s).
:param str project_id: (required)
Unique project identifier.
:param oci.devops.models.UpdateProjectDetails update_project_details: (required)
The information to be updated.
:param list[str] wait_for_states:
An array of states to wait on. These should be valid values for :py:attr:`~oci.devops.models.WorkRequest.status`
:param dict operation_kwargs:
A dictionary of keyword arguments to pass to :py:func:`~oci.devops.DevopsClient.update_project`
:param dict waiter_kwargs:
A dictionary of keyword arguments to pass to the :py:func:`oci.wait_until` function. For example, you could pass ``max_interval_seconds`` or ``max_interval_seconds``
as dictionary keys to modify how long the waiter function will wait between retries and the maximum amount of time it will wait
"""
operation_result = self.client.update_project(project_id, update_project_details, **operation_kwargs)
if not wait_for_states:
return operation_result
lowered_wait_for_states = [w.lower() for w in wait_for_states]
wait_for_resource_id = operation_result.headers['opc-work-request-id']
try:
waiter_result = oci.wait_until(
self.client,
self.client.get_work_request(wait_for_resource_id),
evaluate_response=lambda r: getattr(r.data, 'status') and getattr(r.data, 'status').lower() in lowered_wait_for_states,
**waiter_kwargs
)
result_to_return = waiter_result
return result_to_return
except Exception as e:
raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
| 51.504695
| 245
| 0.684495
| 5,627
| 43,882
| 5.098098
| 0.040697
| 0.044166
| 0.05438
| 0.020915
| 0.935685
| 0.924391
| 0.917907
| 0.901802
| 0.893471
| 0.893471
| 0
| 0.001077
| 0.238116
| 43,882
| 851
| 246
| 51.565217
| 0.856968
| 0.443325
| 0
| 0.828947
| 0
| 0
| 0.027807
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.055263
| false
| 0
| 0.005263
| 0
| 0.181579
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
5d95d3ca0247d1eca5069baa7ca249aff73100e8
| 10,958
|
py
|
Python
|
server/tests/test_schema.py
|
Codered9/githubsrm
|
df5084aa84c9154a62187d07d27f2f2257e26195
|
[
"MIT"
] | null | null | null |
server/tests/test_schema.py
|
Codered9/githubsrm
|
df5084aa84c9154a62187d07d27f2f2257e26195
|
[
"MIT"
] | null | null | null |
server/tests/test_schema.py
|
Codered9/githubsrm
|
df5084aa84c9154a62187d07d27f2f2257e26195
|
[
"MIT"
] | null | null | null |
import unittest
import os
from dotenv import load_dotenv
import requests
import pymongo
import time
import unittest
from hashlib import sha256
import secrets
import json
from githubsrm.core.settings import DATABASE
from . import Base
entry = Base()
class TestSchema(unittest.TestCase):
@classmethod
def setUpClass(cls) -> None:
load_dotenv()
cls.client = requests.Session()
cls.pymongo_client = pymongo.MongoClient(DATABASE["mongo_uri"])
cls.db = cls.pymongo_client[os.getenv("TestDB")]
cls.base_url = "http://localhost:8000/"
cls.webhook = list(cls.db.webHook.find({}))[0]["token"]
def test_schema_alpha(self):
self.clean()
for j in [0, "", " ", None]:
for i in entry.alpha_data.keys():
time.sleep(1)
if i == "project_url" and j == "":
continue
data = entry.alpha_data.copy()
if j == 0:
del data[i]
else:
data[i] = j
response = entry.add_alpha_maintainer(self, data)
self.assertEqual(response.status_code, 400)
self.clean()
def test_schema_beta(self):
self.clean()
response = entry.add_alpha_maintainer(self)
self.assertEqual(response.status_code, 201)
id = dict(self.db.maintainer.find_one({"github_id": "riju561"}))["project_id"]
for j in [0, "", " ", None]:
for i in entry.beta_data.keys():
time.sleep(1)
data = entry.beta_data.copy()
if j == 0:
del data[i]
else:
data[i] = j
response = entry.add_beta_maintainer(self, None, id, data)
self.assertEqual(response.status_code, 400)
self.clean()
def test_schema_contributor(self):
self.clean()
response = entry.register_admin(self)
self.assertEqual(response.status_code, 200)
response = entry.login_admin(self)
admin_jwt = response.json()["access_token"]
self.assertEqual(response.status_code, 200)
response = entry.add_alpha_maintainer(self)
self.assertEqual(response.status_code, 201)
alpha = dict(self.db.maintainer.find_one({"github_id": "riju561"}))
response = entry.approve_alpha_maintainer(self, alpha, admin_jwt)
self.assertEqual(response.status_code, 200)
response = entry.approve_project(self, alpha, admin_jwt)
self.assertEqual(response.status_code, 200)
for j in [0, "", " ", None]:
for i in entry.contributor_data.keys():
time.sleep(1)
data = entry.contributor_data.copy()
if j == 0:
del data[i]
else:
data[i] = j
response = entry.add_contributor(self, alpha, data)
self.assertEqual(response.status_code, 400)
self.clean()
def test_project_approval_schema(self):
# Failing test since academic year is accepted as string
self.clean()
response = entry.register_admin(self)
self.assertEqual(response.status_code, 200)
response = entry.login_admin(self)
admin_jwt = response.json()["access_token"]
self.assertEqual(response.status_code, 200)
response = entry.add_alpha_maintainer(self)
self.assertEqual(response.status_code, 201)
alpha = dict(self.db.maintainer.find_one({"github_id": "riju561"}))
response = entry.approve_alpha_maintainer(self, alpha, admin_jwt)
self.assertEqual(response.status_code, 200)
data = entry.project_details.copy()
data["year"] = None
response = entry.approve_project(self, alpha, admin_jwt, data)
self.assertEqual(response.status_code, 400)
self.clean()
def test_alpha_maintainer_approval_schema(self):
self.clean()
response = entry.register_admin(self)
self.assertEqual(response.status_code, 200)
response = entry.login_admin(self)
admin_jwt = response.json()["access_token"]
self.assertEqual(response.status_code, 200)
response = entry.add_alpha_maintainer(self)
self.assertEqual(response.status_code, 201)
alpha = dict(self.db.maintainer.find_one({"github_id": "riju561"}))
alpha_data = {
"maintainer_id": alpha["_id"],
"project_id": alpha["project_id"],
"email": alpha["email"],
}
for j in [0, "", " ", None]:
for i in alpha_data.keys():
time.sleep(1)
data = alpha_data.copy()
if j == 0:
del data[i]
else:
data[i] = j
response = entry.approve_alpha_maintainer(self, alpha, admin_jwt, data)
self.assertEqual(response.status_code, 400)
self.clean()
def test_beta_maintainer_approval_schema(self):
self.clean()
response = entry.register_admin(self)
self.assertEqual(response.status_code, 200)
response = entry.login_admin(self)
admin_jwt = response.json()["access_token"]
self.assertEqual(response.status_code, 200)
response = entry.add_alpha_maintainer(self)
self.assertEqual(response.status_code, 201)
id = dict(self.db.maintainer.find_one({"github_id": "riju561"}))["project_id"]
response = entry.add_beta_maintainer(self, None, id)
self.assertEqual(response.status_code, 201)
beta = dict(self.db.maintainer.find_one({"github_id": "riju"}))
beta_data = {
"maintainer_id": beta["_id"],
"project_id": beta["project_id"],
"email": beta["email"],
}
for j in [0, "", " ", None]:
for i in beta_data.keys():
time.sleep(1)
data = beta_data.copy()
if j == 0:
del data[i]
else:
data[i] = j
response = entry.approve_beta_maintainer(self, beta, admin_jwt, data)
self.assertEqual(response.status_code, 400)
self.clean()
def test_contributor_approval_admin_schema(self):
self.clean()
response = entry.register_admin(self)
self.assertEqual(response.status_code, 200)
response = entry.login_admin(self)
admin_jwt = response.json()["access_token"]
self.assertEqual(response.status_code, 200)
response = entry.add_alpha_maintainer(self)
self.assertEqual(response.status_code, 201)
alpha = dict(self.db.maintainer.find_one({"github_id": "riju561"}))
response = entry.approve_alpha_maintainer(self, alpha, admin_jwt)
self.assertEqual(response.status_code, 200)
response = entry.approve_project(self, alpha, admin_jwt)
self.assertEqual(response.status_code, 200)
response = entry.add_contributor(self, alpha)
self.assertEqual(response.status_code, 201)
contri = dict(self.db.contributor.find_one({"github_id": "xyz"}))
contri_data = {
"contributor_id": contri["_id"],
"project_id": contri["interested_project"],
}
for j in [0, "", " ", None]:
for i in contri_data.keys():
time.sleep(1)
data = contri_data.copy()
if j == 0:
del data[i]
else:
data[i] = j
response = entry.approve_contributor_admin(
self, contri, admin_jwt, data
)
self.assertEqual(response.status_code, 400)
self.clean()
def test_contributor_approval_maintainer_schema(self):
self.clean()
response = entry.register_admin(self)
self.assertEqual(response.status_code, 200)
response = entry.login_admin(self)
admin_jwt = response.json()["access_token"]
self.assertEqual(response.status_code, 200)
response = entry.add_alpha_maintainer(self)
self.assertEqual(response.status_code, 201)
alpha = dict(self.db.maintainer.find_one({"github_id": "riju561"}))
response = entry.approve_alpha_maintainer(self, alpha, admin_jwt)
self.assertEqual(response.status_code, 200)
response = entry.approve_project(self, alpha, admin_jwt)
self.assertEqual(response.status_code, 200)
response = entry.add_contributor(self, alpha)
self.assertEqual(response.status_code, 201)
contri = dict(self.db.contributor.find_one({"github_id": "xyz"}))
response = entry.approve_contributor_admin(self, contri, admin_jwt)
self.assertEqual(response.status_code, 200)
entry.set_alpha_password(self)
response = entry.login_maintainer(self)
maintainer_jwt = response.json()["access_token"]
self.assertEqual(response.status_code, 200)
contri_data = {
"contributor_id": contri["_id"],
"project_id": contri["interested_project"],
}
for j in [0, "", " ", None]:
for i in contri_data.keys():
time.sleep(1)
data = contri_data.copy()
if j == 0:
del data[i]
else:
data[i] = j
response = entry.approve_contributor_maintainer(
self, contri, maintainer_jwt, data
)
self.assertEqual(response.status_code, 400)
self.clean()
def test_contact_us_schema(self):
self.clean()
for j in [0, "", " ", None]:
for i in entry.contact_us_data.keys():
time.sleep(1)
if i == "phone_number" and j == "":
continue
data = entry.contact_us_data.copy()
if j == 0:
del data[i]
else:
data[i] = j
response = entry.contact_us(self, data)
self.assertEqual(response.status_code, 400)
self.clean()
@classmethod
def tearDownClass(cls) -> None:
cls.db.admins.delete_many({})
cls.db.project.delete_many({})
cls.db.maintainer.delete_many({})
cls.db.maintainer_credentials.delete_many({})
cls.db.contributor.delete_many({})
cls.db.contactUs.delete_many({})
cls.pymongo_client.close()
cls.client.close()
def clean(self):
self.db.admins.delete_many({})
self.db.project.delete_many({})
self.db.maintainer.delete_many({})
self.db.maintainer_credentials.delete_many({})
self.db.contributor.delete_many({})
self.db.contactUs.delete_many({})
| 35.009585
| 87
| 0.579303
| 1,230
| 10,958
| 4.965854
| 0.092683
| 0.085134
| 0.150622
| 0.189915
| 0.8037
| 0.77112
| 0.754257
| 0.733628
| 0.707105
| 0.678946
| 0
| 0.022805
| 0.30772
| 10,958
| 312
| 88
| 35.121795
| 0.782362
| 0.004928
| 0
| 0.644531
| 0
| 0
| 0.046964
| 0
| 0
| 0
| 0
| 0
| 0.15625
| 1
| 0.046875
| false
| 0.003906
| 0.046875
| 0
| 0.097656
| 0
| 0
| 0
| 0
| null | 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
5da3906dbbbbfd02b18cc9fdd22d3ef5d3fd3f2c
| 16,511
|
py
|
Python
|
sdk/python/pulumi_ucloud/vpc/vip.py
|
AaronFriel/pulumi-ucloud
|
199278786dddf46bdd370f3f805e30b279c63ff2
|
[
"ECL-2.0",
"Apache-2.0"
] | 4
|
2021-08-18T04:55:38.000Z
|
2021-09-08T07:59:24.000Z
|
sdk/python/pulumi_ucloud/vpc/vip.py
|
AaronFriel/pulumi-ucloud
|
199278786dddf46bdd370f3f805e30b279c63ff2
|
[
"ECL-2.0",
"Apache-2.0"
] | 1
|
2022-01-28T17:59:37.000Z
|
2022-01-29T03:44:09.000Z
|
sdk/python/pulumi_ucloud/vpc/vip.py
|
AaronFriel/pulumi-ucloud
|
199278786dddf46bdd370f3f805e30b279c63ff2
|
[
"ECL-2.0",
"Apache-2.0"
] | 2
|
2021-06-23T07:10:40.000Z
|
2021-06-23T09:25:12.000Z
|
# coding=utf-8
# *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union, overload
from .. import _utilities
__all__ = ['VIPArgs', 'VIP']
@pulumi.input_type
class VIPArgs:
def __init__(__self__, *,
subnet_id: pulumi.Input[str],
vpc_id: pulumi.Input[str],
name: Optional[pulumi.Input[str]] = None,
remark: Optional[pulumi.Input[str]] = None,
tag: Optional[pulumi.Input[str]] = None):
"""
The set of arguments for constructing a VIP resource.
:param pulumi.Input[str] subnet_id: The ID of subnet. If defined `vpc_id`, the `subnet_id` is Required.
:param pulumi.Input[str] vpc_id: The ID of VPC linked to the VIP.
:param pulumi.Input[str] remark: The remarks of the VIP. (Default: `""`).
:param pulumi.Input[str] tag: A tag assigned to VIP, which contains at most 63 characters and only support Chinese, English, numbers, '-', '_', and '.'. If it is not filled in or a empty string is filled in, then default tag will be assigned. (Default: `Default`).
"""
pulumi.set(__self__, "subnet_id", subnet_id)
pulumi.set(__self__, "vpc_id", vpc_id)
if name is not None:
pulumi.set(__self__, "name", name)
if remark is not None:
pulumi.set(__self__, "remark", remark)
if tag is not None:
pulumi.set(__self__, "tag", tag)
@property
@pulumi.getter(name="subnetId")
def subnet_id(self) -> pulumi.Input[str]:
"""
The ID of subnet. If defined `vpc_id`, the `subnet_id` is Required.
"""
return pulumi.get(self, "subnet_id")
@subnet_id.setter
def subnet_id(self, value: pulumi.Input[str]):
pulumi.set(self, "subnet_id", value)
@property
@pulumi.getter(name="vpcId")
def vpc_id(self) -> pulumi.Input[str]:
"""
The ID of VPC linked to the VIP.
"""
return pulumi.get(self, "vpc_id")
@vpc_id.setter
def vpc_id(self, value: pulumi.Input[str]):
pulumi.set(self, "vpc_id", value)
@property
@pulumi.getter
def name(self) -> Optional[pulumi.Input[str]]:
return pulumi.get(self, "name")
@name.setter
def name(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "name", value)
@property
@pulumi.getter
def remark(self) -> Optional[pulumi.Input[str]]:
"""
The remarks of the VIP. (Default: `""`).
"""
return pulumi.get(self, "remark")
@remark.setter
def remark(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "remark", value)
@property
@pulumi.getter
def tag(self) -> Optional[pulumi.Input[str]]:
"""
A tag assigned to VIP, which contains at most 63 characters and only support Chinese, English, numbers, '-', '_', and '.'. If it is not filled in or a empty string is filled in, then default tag will be assigned. (Default: `Default`).
"""
return pulumi.get(self, "tag")
@tag.setter
def tag(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "tag", value)
@pulumi.input_type
class _VIPState:
def __init__(__self__, *,
create_time: Optional[pulumi.Input[str]] = None,
ip_address: Optional[pulumi.Input[str]] = None,
name: Optional[pulumi.Input[str]] = None,
remark: Optional[pulumi.Input[str]] = None,
subnet_id: Optional[pulumi.Input[str]] = None,
tag: Optional[pulumi.Input[str]] = None,
vpc_id: Optional[pulumi.Input[str]] = None):
"""
Input properties used for looking up and filtering VIP resources.
:param pulumi.Input[str] create_time: The time of creation for VIP, formatted in RFC3339 time string.
:param pulumi.Input[str] ip_address: The ip address of the VIP.
:param pulumi.Input[str] remark: The remarks of the VIP. (Default: `""`).
:param pulumi.Input[str] subnet_id: The ID of subnet. If defined `vpc_id`, the `subnet_id` is Required.
:param pulumi.Input[str] tag: A tag assigned to VIP, which contains at most 63 characters and only support Chinese, English, numbers, '-', '_', and '.'. If it is not filled in or a empty string is filled in, then default tag will be assigned. (Default: `Default`).
:param pulumi.Input[str] vpc_id: The ID of VPC linked to the VIP.
"""
if create_time is not None:
pulumi.set(__self__, "create_time", create_time)
if ip_address is not None:
pulumi.set(__self__, "ip_address", ip_address)
if name is not None:
pulumi.set(__self__, "name", name)
if remark is not None:
pulumi.set(__self__, "remark", remark)
if subnet_id is not None:
pulumi.set(__self__, "subnet_id", subnet_id)
if tag is not None:
pulumi.set(__self__, "tag", tag)
if vpc_id is not None:
pulumi.set(__self__, "vpc_id", vpc_id)
@property
@pulumi.getter(name="createTime")
def create_time(self) -> Optional[pulumi.Input[str]]:
"""
The time of creation for VIP, formatted in RFC3339 time string.
"""
return pulumi.get(self, "create_time")
@create_time.setter
def create_time(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "create_time", value)
@property
@pulumi.getter(name="ipAddress")
def ip_address(self) -> Optional[pulumi.Input[str]]:
"""
The ip address of the VIP.
"""
return pulumi.get(self, "ip_address")
@ip_address.setter
def ip_address(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "ip_address", value)
@property
@pulumi.getter
def name(self) -> Optional[pulumi.Input[str]]:
return pulumi.get(self, "name")
@name.setter
def name(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "name", value)
@property
@pulumi.getter
def remark(self) -> Optional[pulumi.Input[str]]:
"""
The remarks of the VIP. (Default: `""`).
"""
return pulumi.get(self, "remark")
@remark.setter
def remark(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "remark", value)
@property
@pulumi.getter(name="subnetId")
def subnet_id(self) -> Optional[pulumi.Input[str]]:
"""
The ID of subnet. If defined `vpc_id`, the `subnet_id` is Required.
"""
return pulumi.get(self, "subnet_id")
@subnet_id.setter
def subnet_id(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "subnet_id", value)
@property
@pulumi.getter
def tag(self) -> Optional[pulumi.Input[str]]:
"""
A tag assigned to VIP, which contains at most 63 characters and only support Chinese, English, numbers, '-', '_', and '.'. If it is not filled in or a empty string is filled in, then default tag will be assigned. (Default: `Default`).
"""
return pulumi.get(self, "tag")
@tag.setter
def tag(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "tag", value)
@property
@pulumi.getter(name="vpcId")
def vpc_id(self) -> Optional[pulumi.Input[str]]:
"""
The ID of VPC linked to the VIP.
"""
return pulumi.get(self, "vpc_id")
@vpc_id.setter
def vpc_id(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "vpc_id", value)
class VIP(pulumi.CustomResource):
@overload
def __init__(__self__,
resource_name: str,
opts: Optional[pulumi.ResourceOptions] = None,
name: Optional[pulumi.Input[str]] = None,
remark: Optional[pulumi.Input[str]] = None,
subnet_id: Optional[pulumi.Input[str]] = None,
tag: Optional[pulumi.Input[str]] = None,
vpc_id: Optional[pulumi.Input[str]] = None,
__props__=None):
"""
Provides a VIP resource.
## Example Usage
```python
import pulumi
import pulumi_ucloud as ucloud
foo_vpc = ucloud.vpc.VPC("fooVPC",
tag="tf-acc",
cidr_blocks=["192.168.0.0/16"])
foo_subnet = ucloud.vpc.Subnet("fooSubnet",
tag="tf-acc",
cidr_block="192.168.1.0/24",
vpc_id=foo_vpc.id)
foo_vip = ucloud.vpc.VIP("fooVIP",
vpc_id=foo_vpc.id,
subnet_id=foo_subnet.id,
remark="test")
```
:param str resource_name: The name of the resource.
:param pulumi.ResourceOptions opts: Options for the resource.
:param pulumi.Input[str] remark: The remarks of the VIP. (Default: `""`).
:param pulumi.Input[str] subnet_id: The ID of subnet. If defined `vpc_id`, the `subnet_id` is Required.
:param pulumi.Input[str] tag: A tag assigned to VIP, which contains at most 63 characters and only support Chinese, English, numbers, '-', '_', and '.'. If it is not filled in or a empty string is filled in, then default tag will be assigned. (Default: `Default`).
:param pulumi.Input[str] vpc_id: The ID of VPC linked to the VIP.
"""
...
@overload
def __init__(__self__,
resource_name: str,
args: VIPArgs,
opts: Optional[pulumi.ResourceOptions] = None):
"""
Provides a VIP resource.
## Example Usage
```python
import pulumi
import pulumi_ucloud as ucloud
foo_vpc = ucloud.vpc.VPC("fooVPC",
tag="tf-acc",
cidr_blocks=["192.168.0.0/16"])
foo_subnet = ucloud.vpc.Subnet("fooSubnet",
tag="tf-acc",
cidr_block="192.168.1.0/24",
vpc_id=foo_vpc.id)
foo_vip = ucloud.vpc.VIP("fooVIP",
vpc_id=foo_vpc.id,
subnet_id=foo_subnet.id,
remark="test")
```
:param str resource_name: The name of the resource.
:param VIPArgs args: The arguments to use to populate this resource's properties.
:param pulumi.ResourceOptions opts: Options for the resource.
"""
...
def __init__(__self__, resource_name: str, *args, **kwargs):
resource_args, opts = _utilities.get_resource_args_opts(VIPArgs, pulumi.ResourceOptions, *args, **kwargs)
if resource_args is not None:
__self__._internal_init(resource_name, opts, **resource_args.__dict__)
else:
__self__._internal_init(resource_name, *args, **kwargs)
def _internal_init(__self__,
resource_name: str,
opts: Optional[pulumi.ResourceOptions] = None,
name: Optional[pulumi.Input[str]] = None,
remark: Optional[pulumi.Input[str]] = None,
subnet_id: Optional[pulumi.Input[str]] = None,
tag: Optional[pulumi.Input[str]] = None,
vpc_id: Optional[pulumi.Input[str]] = None,
__props__=None):
if opts is None:
opts = pulumi.ResourceOptions()
if not isinstance(opts, pulumi.ResourceOptions):
raise TypeError('Expected resource options to be a ResourceOptions instance')
if opts.version is None:
opts.version = _utilities.get_version()
if opts.id is None:
if __props__ is not None:
raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource')
__props__ = VIPArgs.__new__(VIPArgs)
__props__.__dict__["name"] = name
__props__.__dict__["remark"] = remark
if subnet_id is None and not opts.urn:
raise TypeError("Missing required property 'subnet_id'")
__props__.__dict__["subnet_id"] = subnet_id
__props__.__dict__["tag"] = tag
if vpc_id is None and not opts.urn:
raise TypeError("Missing required property 'vpc_id'")
__props__.__dict__["vpc_id"] = vpc_id
__props__.__dict__["create_time"] = None
__props__.__dict__["ip_address"] = None
super(VIP, __self__).__init__(
'ucloud:vpc/vIP:VIP',
resource_name,
__props__,
opts)
@staticmethod
def get(resource_name: str,
id: pulumi.Input[str],
opts: Optional[pulumi.ResourceOptions] = None,
create_time: Optional[pulumi.Input[str]] = None,
ip_address: Optional[pulumi.Input[str]] = None,
name: Optional[pulumi.Input[str]] = None,
remark: Optional[pulumi.Input[str]] = None,
subnet_id: Optional[pulumi.Input[str]] = None,
tag: Optional[pulumi.Input[str]] = None,
vpc_id: Optional[pulumi.Input[str]] = None) -> 'VIP':
"""
Get an existing VIP resource's state with the given name, id, and optional extra
properties used to qualify the lookup.
:param str resource_name: The unique name of the resulting resource.
:param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
:param pulumi.ResourceOptions opts: Options for the resource.
:param pulumi.Input[str] create_time: The time of creation for VIP, formatted in RFC3339 time string.
:param pulumi.Input[str] ip_address: The ip address of the VIP.
:param pulumi.Input[str] remark: The remarks of the VIP. (Default: `""`).
:param pulumi.Input[str] subnet_id: The ID of subnet. If defined `vpc_id`, the `subnet_id` is Required.
:param pulumi.Input[str] tag: A tag assigned to VIP, which contains at most 63 characters and only support Chinese, English, numbers, '-', '_', and '.'. If it is not filled in or a empty string is filled in, then default tag will be assigned. (Default: `Default`).
:param pulumi.Input[str] vpc_id: The ID of VPC linked to the VIP.
"""
opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
__props__ = _VIPState.__new__(_VIPState)
__props__.__dict__["create_time"] = create_time
__props__.__dict__["ip_address"] = ip_address
__props__.__dict__["name"] = name
__props__.__dict__["remark"] = remark
__props__.__dict__["subnet_id"] = subnet_id
__props__.__dict__["tag"] = tag
__props__.__dict__["vpc_id"] = vpc_id
return VIP(resource_name, opts=opts, __props__=__props__)
@property
@pulumi.getter(name="createTime")
def create_time(self) -> pulumi.Output[str]:
"""
The time of creation for VIP, formatted in RFC3339 time string.
"""
return pulumi.get(self, "create_time")
@property
@pulumi.getter(name="ipAddress")
def ip_address(self) -> pulumi.Output[str]:
"""
The ip address of the VIP.
"""
return pulumi.get(self, "ip_address")
@property
@pulumi.getter
def name(self) -> pulumi.Output[str]:
return pulumi.get(self, "name")
@property
@pulumi.getter
def remark(self) -> pulumi.Output[str]:
"""
The remarks of the VIP. (Default: `""`).
"""
return pulumi.get(self, "remark")
@property
@pulumi.getter(name="subnetId")
def subnet_id(self) -> pulumi.Output[str]:
"""
The ID of subnet. If defined `vpc_id`, the `subnet_id` is Required.
"""
return pulumi.get(self, "subnet_id")
@property
@pulumi.getter
def tag(self) -> pulumi.Output[Optional[str]]:
"""
A tag assigned to VIP, which contains at most 63 characters and only support Chinese, English, numbers, '-', '_', and '.'. If it is not filled in or a empty string is filled in, then default tag will be assigned. (Default: `Default`).
"""
return pulumi.get(self, "tag")
@property
@pulumi.getter(name="vpcId")
def vpc_id(self) -> pulumi.Output[str]:
"""
The ID of VPC linked to the VIP.
"""
return pulumi.get(self, "vpc_id")
| 39.405728
| 272
| 0.603053
| 2,099
| 16,511
| 4.530253
| 0.086232
| 0.089074
| 0.110422
| 0.108739
| 0.828899
| 0.799138
| 0.767168
| 0.745609
| 0.730992
| 0.691766
| 0
| 0.005953
| 0.277694
| 16,511
| 418
| 273
| 39.5
| 0.79138
| 0.330446
| 0
| 0.659664
| 1
| 0
| 0.070833
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.159664
| false
| 0.004202
| 0.021008
| 0.012605
| 0.277311
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
5df532d02826dc68c92ea2c7b0f86da587aef8ff
| 190
|
py
|
Python
|
leather/scales/__init__.py
|
timgates42/leather
|
84d88d3d4cf84c2f3ac40d252c6e7a81c870db64
|
[
"MIT"
] | 198
|
2016-05-17T23:39:24.000Z
|
2016-06-10T18:43:43.000Z
|
leather/scales/__init__.py
|
timgates42/leather
|
84d88d3d4cf84c2f3ac40d252c6e7a81c870db64
|
[
"MIT"
] | 69
|
2016-05-18T16:17:28.000Z
|
2016-06-10T17:34:16.000Z
|
leather/scales/__init__.py
|
timgates42/leather
|
84d88d3d4cf84c2f3ac40d252c6e7a81c870db64
|
[
"MIT"
] | 26
|
2016-06-11T14:52:07.000Z
|
2021-10-08T17:16:11.000Z
|
#!/usr/bin/env python
from leather.scales.base import Scale
from leather.scales.linear import Linear
from leather.scales.ordinal import Ordinal
from leather.scales.temporal import Temporal
| 27.142857
| 44
| 0.831579
| 28
| 190
| 5.642857
| 0.464286
| 0.278481
| 0.43038
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.1
| 190
| 6
| 45
| 31.666667
| 0.923977
| 0.105263
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 0
| 1
| 0
| 1
| 0
| 0
| null | 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 7
|
b90abd4cbd8ae14e472891ad622a88c42d689980
| 12,871
|
py
|
Python
|
array_api_tests/special_cases/test_dunder_pow.py
|
honno/array-api-tests
|
081d7009c1cad91eadbc4b0868c954769e25162f
|
[
"MIT"
] | 1
|
2022-03-05T12:22:09.000Z
|
2022-03-05T12:22:09.000Z
|
array_api_tests/special_cases/test_dunder_pow.py
|
oryme/array-api-tests
|
605621381a48d0373ef40f3f88b217cb817e0404
|
[
"MIT"
] | null | null | null |
array_api_tests/special_cases/test_dunder_pow.py
|
oryme/array-api-tests
|
605621381a48d0373ef40f3f88b217cb817e0404
|
[
"MIT"
] | null | null | null |
"""
Special cases tests for __pow__.
These tests are generated from the special cases listed in the spec.
NOTE: This file is generated automatically by the generate_stubs.py script. Do
not modify it directly.
"""
from ..array_helpers import (NaN, assert_exactly_equal, exactly_equal, greater, infinity, isfinite,
isintegral, isodd, less, logical_and, logical_not, notequal, one, zero)
from ..hypothesis_helpers import numeric_arrays
from hypothesis import given
@given(numeric_arrays, numeric_arrays)
def test_pow_special_cases_two_args_notequal__equal(arg1, arg2):
"""
Special case test for `__pow__(self, other, /)`:
- If `x1_i` is not equal to `1` and `x2_i` is `NaN`, the result is `NaN`.
"""
res = arg1.__pow__(arg2)
mask = logical_and(logical_not(exactly_equal(arg1, one(arg1.shape, arg1.dtype))), exactly_equal(arg2, NaN(arg2.shape, arg2.dtype)))
assert_exactly_equal(res[mask], (NaN(arg1.shape, arg1.dtype))[mask])
@given(numeric_arrays, numeric_arrays)
def test_pow_special_cases_two_args_even_if_1(arg1, arg2):
"""
Special case test for `__pow__(self, other, /)`:
- If `x2_i` is `+0`, the result is `1`, even if `x1_i` is `NaN`.
"""
res = arg1.__pow__(arg2)
mask = exactly_equal(arg2, zero(arg2.shape, arg2.dtype))
assert_exactly_equal(res[mask], (one(arg1.shape, arg1.dtype))[mask])
@given(numeric_arrays, numeric_arrays)
def test_pow_special_cases_two_args_even_if_2(arg1, arg2):
"""
Special case test for `__pow__(self, other, /)`:
- If `x2_i` is `-0`, the result is `1`, even if `x1_i` is `NaN`.
"""
res = arg1.__pow__(arg2)
mask = exactly_equal(arg2, -zero(arg2.shape, arg2.dtype))
assert_exactly_equal(res[mask], (one(arg1.shape, arg1.dtype))[mask])
@given(numeric_arrays, numeric_arrays)
def test_pow_special_cases_two_args_equal__notequal_1(arg1, arg2):
"""
Special case test for `__pow__(self, other, /)`:
- If `x1_i` is `NaN` and `x2_i` is not equal to `0`, the result is `NaN`.
"""
res = arg1.__pow__(arg2)
mask = logical_and(exactly_equal(arg1, NaN(arg1.shape, arg1.dtype)), notequal(arg2, zero(arg2.shape, arg2.dtype)))
assert_exactly_equal(res[mask], (NaN(arg1.shape, arg1.dtype))[mask])
@given(numeric_arrays, numeric_arrays)
def test_pow_special_cases_two_args_equal__notequal_2(arg1, arg2):
"""
Special case test for `__pow__(self, other, /)`:
- If `x1_i` is `1` and `x2_i` is not `NaN`, the result is `1`.
"""
res = arg1.__pow__(arg2)
mask = logical_and(exactly_equal(arg1, one(arg1.shape, arg1.dtype)), logical_not(exactly_equal(arg2, NaN(arg2.shape, arg2.dtype))))
assert_exactly_equal(res[mask], (one(arg1.shape, arg1.dtype))[mask])
@given(numeric_arrays, numeric_arrays)
def test_pow_special_cases_two_args_absgreater__equal_1(arg1, arg2):
"""
Special case test for `__pow__(self, other, /)`:
- If `abs(x1_i)` is greater than `1` and `x2_i` is `+infinity`, the result is `+infinity`.
"""
res = arg1.__pow__(arg2)
mask = logical_and(greater(abs(arg1), one(arg1.shape, arg1.dtype)), exactly_equal(arg2, infinity(arg2.shape, arg2.dtype)))
assert_exactly_equal(res[mask], (infinity(arg1.shape, arg1.dtype))[mask])
@given(numeric_arrays, numeric_arrays)
def test_pow_special_cases_two_args_absgreater__equal_2(arg1, arg2):
"""
Special case test for `__pow__(self, other, /)`:
- If `abs(x1_i)` is greater than `1` and `x2_i` is `-infinity`, the result is `+0`.
"""
res = arg1.__pow__(arg2)
mask = logical_and(greater(abs(arg1), one(arg1.shape, arg1.dtype)), exactly_equal(arg2, -infinity(arg2.shape, arg2.dtype)))
assert_exactly_equal(res[mask], (zero(arg1.shape, arg1.dtype))[mask])
@given(numeric_arrays, numeric_arrays)
def test_pow_special_cases_two_args_absequal__equal_1(arg1, arg2):
"""
Special case test for `__pow__(self, other, /)`:
- If `abs(x1_i)` is `1` and `x2_i` is `+infinity`, the result is `1`.
"""
res = arg1.__pow__(arg2)
mask = logical_and(exactly_equal(abs(arg1), one(arg1.shape, arg1.dtype)), exactly_equal(arg2, infinity(arg2.shape, arg2.dtype)))
assert_exactly_equal(res[mask], (one(arg1.shape, arg1.dtype))[mask])
@given(numeric_arrays, numeric_arrays)
def test_pow_special_cases_two_args_absequal__equal_2(arg1, arg2):
"""
Special case test for `__pow__(self, other, /)`:
- If `abs(x1_i)` is `1` and `x2_i` is `-infinity`, the result is `1`.
"""
res = arg1.__pow__(arg2)
mask = logical_and(exactly_equal(abs(arg1), one(arg1.shape, arg1.dtype)), exactly_equal(arg2, -infinity(arg2.shape, arg2.dtype)))
assert_exactly_equal(res[mask], (one(arg1.shape, arg1.dtype))[mask])
@given(numeric_arrays, numeric_arrays)
def test_pow_special_cases_two_args_absless__equal_1(arg1, arg2):
"""
Special case test for `__pow__(self, other, /)`:
- If `abs(x1_i)` is less than `1` and `x2_i` is `+infinity`, the result is `+0`.
"""
res = arg1.__pow__(arg2)
mask = logical_and(less(abs(arg1), one(arg1.shape, arg1.dtype)), exactly_equal(arg2, infinity(arg2.shape, arg2.dtype)))
assert_exactly_equal(res[mask], (zero(arg1.shape, arg1.dtype))[mask])
@given(numeric_arrays, numeric_arrays)
def test_pow_special_cases_two_args_absless__equal_2(arg1, arg2):
"""
Special case test for `__pow__(self, other, /)`:
- If `abs(x1_i)` is less than `1` and `x2_i` is `-infinity`, the result is `+infinity`.
"""
res = arg1.__pow__(arg2)
mask = logical_and(less(abs(arg1), one(arg1.shape, arg1.dtype)), exactly_equal(arg2, -infinity(arg2.shape, arg2.dtype)))
assert_exactly_equal(res[mask], (infinity(arg1.shape, arg1.dtype))[mask])
@given(numeric_arrays, numeric_arrays)
def test_pow_special_cases_two_args_equal__greater_1(arg1, arg2):
"""
Special case test for `__pow__(self, other, /)`:
- If `x1_i` is `+infinity` and `x2_i` is greater than `0`, the result is `+infinity`.
"""
res = arg1.__pow__(arg2)
mask = logical_and(exactly_equal(arg1, infinity(arg1.shape, arg1.dtype)), greater(arg2, zero(arg2.shape, arg2.dtype)))
assert_exactly_equal(res[mask], (infinity(arg1.shape, arg1.dtype))[mask])
@given(numeric_arrays, numeric_arrays)
def test_pow_special_cases_two_args_equal__greater_2(arg1, arg2):
"""
Special case test for `__pow__(self, other, /)`:
- If `x1_i` is `+0` and `x2_i` is greater than `0`, the result is `+0`.
"""
res = arg1.__pow__(arg2)
mask = logical_and(exactly_equal(arg1, zero(arg1.shape, arg1.dtype)), greater(arg2, zero(arg2.shape, arg2.dtype)))
assert_exactly_equal(res[mask], (zero(arg1.shape, arg1.dtype))[mask])
@given(numeric_arrays, numeric_arrays)
def test_pow_special_cases_two_args_equal__less_1(arg1, arg2):
"""
Special case test for `__pow__(self, other, /)`:
- If `x1_i` is `+infinity` and `x2_i` is less than `0`, the result is `+0`.
"""
res = arg1.__pow__(arg2)
mask = logical_and(exactly_equal(arg1, infinity(arg1.shape, arg1.dtype)), less(arg2, zero(arg2.shape, arg2.dtype)))
assert_exactly_equal(res[mask], (zero(arg1.shape, arg1.dtype))[mask])
@given(numeric_arrays, numeric_arrays)
def test_pow_special_cases_two_args_equal__less_2(arg1, arg2):
"""
Special case test for `__pow__(self, other, /)`:
- If `x1_i` is `+0` and `x2_i` is less than `0`, the result is `+infinity`.
"""
res = arg1.__pow__(arg2)
mask = logical_and(exactly_equal(arg1, zero(arg1.shape, arg1.dtype)), less(arg2, zero(arg2.shape, arg2.dtype)))
assert_exactly_equal(res[mask], (infinity(arg1.shape, arg1.dtype))[mask])
@given(numeric_arrays, numeric_arrays)
def test_pow_special_cases_two_args_equal__greater_equal_1(arg1, arg2):
"""
Special case test for `__pow__(self, other, /)`:
- If `x1_i` is `-infinity`, `x2_i` is greater than `0`, and `x2_i` is an odd integer value, the result is `-infinity`.
"""
res = arg1.__pow__(arg2)
mask = logical_and(exactly_equal(arg1, -infinity(arg1.shape, arg1.dtype)), logical_and(greater(arg2, zero(arg2.shape, arg2.dtype)), isodd(arg2)))
assert_exactly_equal(res[mask], (-infinity(arg1.shape, arg1.dtype))[mask])
@given(numeric_arrays, numeric_arrays)
def test_pow_special_cases_two_args_equal__greater_equal_2(arg1, arg2):
"""
Special case test for `__pow__(self, other, /)`:
- If `x1_i` is `-0`, `x2_i` is greater than `0`, and `x2_i` is an odd integer value, the result is `-0`.
"""
res = arg1.__pow__(arg2)
mask = logical_and(exactly_equal(arg1, -zero(arg1.shape, arg1.dtype)), logical_and(greater(arg2, zero(arg2.shape, arg2.dtype)), isodd(arg2)))
assert_exactly_equal(res[mask], (-zero(arg1.shape, arg1.dtype))[mask])
@given(numeric_arrays, numeric_arrays)
def test_pow_special_cases_two_args_equal__greater_notequal_1(arg1, arg2):
"""
Special case test for `__pow__(self, other, /)`:
- If `x1_i` is `-infinity`, `x2_i` is greater than `0`, and `x2_i` is not an odd integer value, the result is `+infinity`.
"""
res = arg1.__pow__(arg2)
mask = logical_and(exactly_equal(arg1, -infinity(arg1.shape, arg1.dtype)), logical_and(greater(arg2, zero(arg2.shape, arg2.dtype)), logical_not(isodd(arg2))))
assert_exactly_equal(res[mask], (infinity(arg1.shape, arg1.dtype))[mask])
@given(numeric_arrays, numeric_arrays)
def test_pow_special_cases_two_args_equal__greater_notequal_2(arg1, arg2):
"""
Special case test for `__pow__(self, other, /)`:
- If `x1_i` is `-0`, `x2_i` is greater than `0`, and `x2_i` is not an odd integer value, the result is `+0`.
"""
res = arg1.__pow__(arg2)
mask = logical_and(exactly_equal(arg1, -zero(arg1.shape, arg1.dtype)), logical_and(greater(arg2, zero(arg2.shape, arg2.dtype)), logical_not(isodd(arg2))))
assert_exactly_equal(res[mask], (zero(arg1.shape, arg1.dtype))[mask])
@given(numeric_arrays, numeric_arrays)
def test_pow_special_cases_two_args_equal__less_equal_1(arg1, arg2):
"""
Special case test for `__pow__(self, other, /)`:
- If `x1_i` is `-infinity`, `x2_i` is less than `0`, and `x2_i` is an odd integer value, the result is `-0`.
"""
res = arg1.__pow__(arg2)
mask = logical_and(exactly_equal(arg1, -infinity(arg1.shape, arg1.dtype)), logical_and(less(arg2, zero(arg2.shape, arg2.dtype)), isodd(arg2)))
assert_exactly_equal(res[mask], (-zero(arg1.shape, arg1.dtype))[mask])
@given(numeric_arrays, numeric_arrays)
def test_pow_special_cases_two_args_equal__less_equal_2(arg1, arg2):
"""
Special case test for `__pow__(self, other, /)`:
- If `x1_i` is `-0`, `x2_i` is less than `0`, and `x2_i` is an odd integer value, the result is `-infinity`.
"""
res = arg1.__pow__(arg2)
mask = logical_and(exactly_equal(arg1, -zero(arg1.shape, arg1.dtype)), logical_and(less(arg2, zero(arg2.shape, arg2.dtype)), isodd(arg2)))
assert_exactly_equal(res[mask], (-infinity(arg1.shape, arg1.dtype))[mask])
@given(numeric_arrays, numeric_arrays)
def test_pow_special_cases_two_args_equal__less_notequal_1(arg1, arg2):
"""
Special case test for `__pow__(self, other, /)`:
- If `x1_i` is `-infinity`, `x2_i` is less than `0`, and `x2_i` is not an odd integer value, the result is `+0`.
"""
res = arg1.__pow__(arg2)
mask = logical_and(exactly_equal(arg1, -infinity(arg1.shape, arg1.dtype)), logical_and(less(arg2, zero(arg2.shape, arg2.dtype)), logical_not(isodd(arg2))))
assert_exactly_equal(res[mask], (zero(arg1.shape, arg1.dtype))[mask])
@given(numeric_arrays, numeric_arrays)
def test_pow_special_cases_two_args_equal__less_notequal_2(arg1, arg2):
"""
Special case test for `__pow__(self, other, /)`:
- If `x1_i` is `-0`, `x2_i` is less than `0`, and `x2_i` is not an odd integer value, the result is `+infinity`.
"""
res = arg1.__pow__(arg2)
mask = logical_and(exactly_equal(arg1, -zero(arg1.shape, arg1.dtype)), logical_and(less(arg2, zero(arg2.shape, arg2.dtype)), logical_not(isodd(arg2))))
assert_exactly_equal(res[mask], (infinity(arg1.shape, arg1.dtype))[mask])
@given(numeric_arrays, numeric_arrays)
def test_pow_special_cases_two_args_less_equal__equal_notequal(arg1, arg2):
"""
Special case test for `__pow__(self, other, /)`:
- If `x1_i` is less than `0`, `x1_i` is a finite number, `x2_i` is a finite number, and `x2_i` is not an integer value, the result is `NaN`.
"""
res = arg1.__pow__(arg2)
mask = logical_and(logical_and(less(arg1, zero(arg1.shape, arg1.dtype)), isfinite(arg1)), logical_and(isfinite(arg2), logical_not(isintegral(arg2))))
assert_exactly_equal(res[mask], (NaN(arg1.shape, arg1.dtype))[mask])
| 39.360856
| 162
| 0.686738
| 1,943
| 12,871
| 4.216161
| 0.043747
| 0.02124
| 0.072998
| 0.101074
| 0.941406
| 0.92627
| 0.921021
| 0.921021
| 0.915894
| 0.912842
| 0
| 0.038337
| 0.163002
| 12,871
| 326
| 163
| 39.481595
| 0.722083
| 0.289488
| 0
| 0.580645
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.201613
| 1
| 0.193548
| false
| 0
| 0.024194
| 0
| 0.217742
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
f8e34d5b6df71debd3e510b0aac9d5cdfa003f61
| 18,601
|
py
|
Python
|
src/genie/libs/parser/iosxe/tests/ShowLispEidTableVrfUserIpv4MapCache/cli/equal/golden_output_expected.py
|
balmasea/genieparser
|
d1e71a96dfb081e0a8591707b9d4872decd5d9d3
|
[
"Apache-2.0"
] | 204
|
2018-06-27T00:55:27.000Z
|
2022-03-06T21:12:18.000Z
|
src/genie/libs/parser/iosxe/tests/ShowLispEidTableVrfUserIpv4MapCache/cli/equal/golden_output_expected.py
|
balmasea/genieparser
|
d1e71a96dfb081e0a8591707b9d4872decd5d9d3
|
[
"Apache-2.0"
] | 468
|
2018-06-19T00:33:18.000Z
|
2022-03-31T23:23:35.000Z
|
src/genie/libs/parser/iosxe/tests/ShowLispEidTableVrfUserIpv4MapCache/cli/equal/golden_output_expected.py
|
balmasea/genieparser
|
d1e71a96dfb081e0a8591707b9d4872decd5d9d3
|
[
"Apache-2.0"
] | 309
|
2019-01-16T20:21:07.000Z
|
2022-03-30T12:56:41.000Z
|
expected_output = {
"vrf": {
"User": {
"iid": 4100,
"number_of_entries": 2186,
"eid": {
"0.0.0.0/0": {
"uptime": "1w6d",
"expire": "never",
"via": [
"static-send-map-request"
],
"rloc": {
"status": "Negative cache entry",
"action": "send-map-request"
}
},
"0.0.0.0/5": {
"uptime": "4w6d",
"expire": "00:14:38",
"via": [
"map-reply",
"forward-native"
],
"rloc": {
"status": "Encapsulating to proxy ETR"
}
},
"10.64.0.0/7": {
"uptime": "07:18:55",
"expire": "00:07:19",
"via": [
"map-reply",
"forward-native"
],
"rloc": {
"status": "Encapsulating to proxy ETR"
}
},
"10.0.0.0/9": {
"uptime": "1w4d",
"expire": "00:00:13",
"via": [
"map-reply",
"forward-native"
],
"rloc": {
"status": "Encapsulating to proxy ETR"
}
},
"10.128.0.0/11": {
"uptime": "4w6d",
"expire": "00:04:45",
"via": [
"map-reply",
"forward-native"
],
"rloc": {
"status": "Encapsulating to proxy ETR"
}
},
"10.16.0.17/32": {
"uptime": "1w6d",
"expire": "13:36:24",
"via": [
"map-reply",
"self",
"complete"
],
"rloc": {
"ip": "10.8.129.94",
"uptime": "1w6d",
"state": "up",
"priority": 10,
"weight": 10,
"encap_iid": "-"
}
},
"10.16.0.18/32": {
"uptime": "1w6d",
"expire": "13:40:30",
"via": [
"map-reply",
"self",
"complete"
],
"rloc": {
"ip": "10.8.129.65",
"uptime": "1w6d",
"state": "up",
"priority": 10,
"weight": 10,
"encap_iid": "-"
}
},
"10.16.0.21/32": {
"uptime": "1w6d",
"expire": "12:55:06",
"via": [
"map-reply",
"self",
"complete"
],
"rloc": {
"ip": "10.8.129.124",
"uptime": "1w6d",
"state": "up",
"priority": 10,
"weight": 10,
"encap_iid": "-"
}
},
"10.16.0.22/32": {
"uptime": "1w6d",
"expire": "20:44:39",
"via": [
"map-reply",
"self",
"complete"
],
"rloc": {
"ip": "10.8.129.94",
"uptime": "1w6d",
"state": "up",
"priority": 10,
"weight": 10,
"encap_iid": "-"
}
},
"10.16.0.24/32": {
"uptime": "1w6d",
"expire": "20:44:39",
"via": [
"map-reply",
"self",
"complete"
],
"rloc": {
"ip": "10.8.129.94",
"uptime": "1w6d",
"state": "up",
"priority": 10,
"weight": 10,
"encap_iid": "-"
}
},
"10.16.0.25/32": {
"uptime": "1w6d",
"expire": "12:45:50",
"via": [
"map-reply",
"self",
"complete"
],
"rloc": {
"ip": "10.8.129.94",
"uptime": "1w6d",
"state": "up",
"priority": 10,
"weight": 10,
"encap_iid": "-"
}
},
"10.16.0.26/32": {
"uptime": "1w6d",
"expire": "12:52:40",
"via": [
"map-reply",
"self",
"complete"
],
"rloc": {
"ip": "10.8.129.124",
"uptime": "1w6d",
"state": "up",
"priority": 10,
"weight": 10,
"encap_iid": "-"
}
},
"10.16.0.27/32": {
"uptime": "00:54:02",
"expire": "23:06:55",
"via": [
"map-reply",
"self",
"complete"
],
"rloc": {
"ip": "10.8.129.65",
"uptime": "00:54:02",
"state": "up",
"priority": 10,
"weight": 10,
"encap_iid": "-"
}
},
"10.16.0.28/32": {
"uptime": "1w6d",
"expire": "20:44:39",
"via": [
"map-reply",
"self",
"complete"
],
"rloc": {
"ip": "10.8.129.112",
"uptime": "1w6d",
"state": "up",
"priority": 10,
"weight": 10,
"encap_iid": "-"
}
},
"10.16.0.29/32": {
"uptime": "1w6d",
"expire": "20:44:39",
"via": [
"map-reply",
"self",
"complete"
],
"rloc": {
"ip": "10.8.129.138",
"uptime": "1w6d",
"state": "up",
"priority": 10,
"weight": 10,
"encap_iid": "-"
}
},
"10.16.0.30/32": {
"uptime": "01:56:35",
"expire": "22:44:59",
"via": [
"map-reply",
"self",
"complete"
],
"rloc": {
"ip": "10.8.129.16",
"uptime": "01:56:35",
"state": "up",
"priority": 10,
"weight": 10,
"encap_iid": "-"
}
},
"10.16.0.31/32": {
"uptime": "03:12:53",
"expire": "20:47:07",
"via": [
"map-reply",
"self",
"complete"
],
"rloc": {
"ip": "10.8.129.17",
"uptime": "03:12:53",
"state": "up",
"priority": 10,
"weight": 10,
"encap_iid": "-"
}
},
"10.16.0.130/32": {
"uptime": "1w1d",
"expire": "20:26:54",
"via": [
"map-reply",
"self",
"complete"
],
"rloc": {
"ip": "10.8.128.173",
"uptime": "1w1d",
"state": "up",
"priority": 10,
"weight": 10,
"encap_iid": "-"
}
},
"10.16.0.131/32": {
"uptime": "1w6d",
"expire": "20:44:39",
"via": [
"map-reply",
"self",
"complete"
],
"rloc": {
"ip": "10.8.128.135",
"uptime": "1w6d",
"state": "up",
"priority": 10,
"weight": 10,
"encap_iid": "-"
}
},
"10.16.0.132/32": {
"uptime": "1w6d",
"expire": "22:07:00",
"via": [
"map-reply",
"self",
"complete"
],
"rloc": {
"ip": "10.8.128.147",
"uptime": "1w6d",
"state": "up",
"priority": 10,
"weight": 10,
"encap_iid": "-"
}
},
"10.16.0.133/32": {
"uptime": "5d21h",
"expire": "02:29:10",
"via": [
"map-reply",
"self",
"complete"
],
"rloc": {
"ip": "10.8.128.152",
"uptime": "5d21h",
"state": "up",
"priority": 10,
"weight": 10,
"encap_iid": "-"
}
},
"10.16.0.134/32": {
"uptime": "1w6d",
"expire": "22:04:32",
"via": [
"map-reply",
"self",
"complete"
],
"rloc": {
"ip": "10.8.128.141",
"uptime": "1w6d",
"state": "up",
"priority": 10,
"weight": 10,
"encap_iid": "-"
}
},
"10.16.0.135/32": {
"uptime": "08:39:11",
"expire": "15:20:49",
"via": [
"map-reply",
"self",
"complete"
],
"rloc": {
"ip": "10.8.128.153",
"uptime": "08:39:11",
"state": "up",
"priority": 10,
"weight": 10,
"encap_iid": "-"
}
},
"10.16.0.136/32": {
"uptime": "1d08h",
"expire": "15:20:44",
"via": [
"map-reply",
"self",
"complete"
],
"rloc": {
"ip": "10.8.128.141",
"uptime": "1d08h",
"state": "up",
"priority": 10,
"weight": 10,
"encap_iid": "-"
}
},
"10.16.0.137/32": {
"uptime": "1d08h",
"expire": "15:20:40",
"via": [
"map-reply",
"self",
"complete"
],
"rloc": {
"ip": "10.8.128.178",
"uptime": "1d08h",
"state": "up",
"priority": 10,
"weight": 10,
"encap_iid": "-"
}
},
"10.16.0.138/32": {
"uptime": "1d08h",
"expire": "15:20:46",
"via": [
"map-reply",
"self",
"complete"
],
"rloc": {
"ip": "10.8.128.152",
"uptime": "1d08h",
"state": "up",
"priority": 10,
"weight": 10,
"encap_iid": "-"
}
},
"10.16.0.139/32": {
"uptime": "1d08h",
"expire": "15:21:32",
"via": [
"map-reply",
"self",
"complete"
],
"rloc": {
"ip": "10.8.128.140",
"uptime": "1d08h",
"state": "up",
"priority": 10,
"weight": 10,
"encap_iid": "-"
}
},
"10.16.0.140/32": {
"uptime": "1d08h",
"expire": "15:20:46",
"via": [
"map-reply",
"self",
"complete"
],
"rloc": {
"ip": "10.8.128.140",
"uptime": "1d08h",
"state": "up",
"priority": 10,
"weight": 10,
"encap_iid": "-"
}
},
"10.16.0.141/32": {
"uptime": "1d08h",
"expire": "15:21:41",
"via": [
"map-reply",
"self",
"complete"
],
"rloc": {
"ip": "10.8.128.140",
"uptime": "1d08h",
"state": "up",
"priority": 10,
"weight": 10,
"encap_iid": "-"
}
},
"10.16.0.142/32": {
"uptime": "1d08h",
"expire": "15:21:29",
"via": [
"map-reply",
"self",
"complete"
],
"rloc": {
"ip": "10.8.128.147",
"uptime": "1d08h",
"state": "up",
"priority": 10,
"weight": 10,
"encap_iid": "-"
}
},
"10.16.0.143/32": {
"uptime": "1d08h",
"expire": "15:20:37",
"via": [
"map-reply",
"self",
"complete"
],
"rloc": {
"ip": "10.8.128.152",
"uptime": "1d08h",
"state": "up",
"priority": 10,
"weight": 10,
"encap_iid": "-"
}
},
"10.16.0.144/32": {
"uptime": "1d08h",
"expire": "15:21:28",
"via": [
"map-reply",
"self",
"complete"
],
"rloc": {
"ip": "10.8.128.178",
"uptime": "1d08h",
"state": "up",
"priority": 10,
"weight": 10,
"encap_iid": "-"
}
},
"10.16.0.145/32": {
"uptime": "08:39:13",
"expire": "15:20:46",
"via": [
"map-reply",
"self",
"complete"
],
"rloc": {
"ip": "10.8.128.178",
"uptime": "08:39:13",
"state": "up",
"priority": 10,
"weight": 10,
"encap_iid": "-"
}
}
}
}
}
}
| 34.382625
| 62
| 0.19929
| 1,040
| 18,601
| 3.534615
| 0.124038
| 0.052231
| 0.095756
| 0.114255
| 0.832427
| 0.794342
| 0.750544
| 0.750544
| 0.741567
| 0.741567
| 0
| 0.167929
| 0.666416
| 18,601
| 541
| 63
| 34.382625
| 0.424496
| 0
| 0
| 0.730129
| 0
| 0
| 0.212719
| 0.001236
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 9
|
5d66887570fef55dfc796bc291cd085883405979
| 14,074
|
py
|
Python
|
main/Letency_Quant/Letency_Quant_RN_CIFAR.py
|
abirhossen786/greedyhpo
|
5295f1322acceb5907d1e251344a069a332b7967
|
[
"MIT"
] | null | null | null |
main/Letency_Quant/Letency_Quant_RN_CIFAR.py
|
abirhossen786/greedyhpo
|
5295f1322acceb5907d1e251344a069a332b7967
|
[
"MIT"
] | null | null | null |
main/Letency_Quant/Letency_Quant_RN_CIFAR.py
|
abirhossen786/greedyhpo
|
5295f1322acceb5907d1e251344a069a332b7967
|
[
"MIT"
] | null | null | null |
import tensorflow as tf
from tensorflow.keras.datasets import cifar10
import os
import pandas as pd
import matplotlib.pyplot as plt
import matplotlib.pylab as plt
import numpy as np
import time
import pathlib
import timeit
import seaborn as sns
(train_images, train_labels), (test_images, test_labels) = cifar10.load_data()
# Normalize pixel values to be between 0 and 1
test_images = test_images / 255.0
## No_quant
testcode = '''
def test():
model = keras.models.load_model('/home/anjir29/Desktop/greedyhpo-main/Main_test_case/CIFAR10/greedy_approch_Cifar10_ResNet50')
model.predict(test_images[0])
'''
time = timeit.repeat(stmt=testcode, repeat=100)
#time = np.array(time)
time = np.reshape(time, (100, 1))
#print(time)
pd.DataFrame(time).to_csv("NQ_greedy_approch_Cifar10_ResNet50.csv")
print("Latency saved...")
testcode = '''
def test():
model = keras.models.load_model('/home/anjir29/Desktop/greedyhpo-main/Main_test_case/CIFAR10/Bayesian_Search_Cifar10_ResNet50')
model.predict(test_images[0])
'''
time = timeit.repeat(stmt=testcode, repeat=100)
#time = np.array(time)
time = np.reshape(time, (100, 1))
#print(time)
pd.DataFrame(time).to_csv("NQ_Bayesian_Search_Cifar10_ResNet50.csv")
print("Latency saved...")
testcode = '''
def test():
model = keras.models.load_model('/home/anjir29/Desktop/greedyhpo-main/Main_test_case/CIFAR10/Random_Search_Cifar10_ResNet50')
model.predict(test_images[0])
'''
time = timeit.repeat(stmt=testcode, repeat=100)
#time = np.array(time)
time = np.reshape(time, (100, 1))
#print(time)
pd.DataFrame(time).to_csv("NQ_Random_Search_Cifar10_ResNet50.csv")
print("Latency saved...")
#Q1
converter = tf.lite.TFLiteConverter.from_saved_model('/home/anjir29/Desktop/greedyhpo-main/Main_test_case/CIFAR10/greedy_approch_Cifar10_ResNet50')
converter.optimizations = [tf.lite.Optimize.DEFAULT]
tflite_quant_model = converter.convert()
tflite_models_dir = pathlib.Path("Quant_Models")
tflite_models_dir.mkdir(exist_ok=True, parents=True)
tflite_model_file = tflite_models_dir/"Q1_greedy_approch_Cifar10_ResNet50.tflite"
tflite_model_file.write_bytes(tflite_quant_model)
interpreter = tf.lite.Interpreter(model_path=str(tflite_model_file))
interpreter.allocate_tensors()
interpreter_quant = tf.lite.Interpreter(model_path=str(tflite_model_file))
interpreter_quant.allocate_tensors()
testcode = '''
def test():
test_image = np.expand_dims(test_images[0], axis=0).astype(np.float32)
input_index = interpreter.get_input_details()[0]["index"]
output_index = interpreter.get_output_details()[0]["index"]
interpreter.set_tensor(input_index, test_image)
interpreter.invoke()
predictions = interpreter.get_tensor(output_index)
'''
time = timeit.repeat(stmt=testcode, repeat=100)
#time = np.array(time)
time = np.reshape(time, (100, 1))
#print(time)
pd.DataFrame(time).to_csv("Q1_greedy_approch_Cifar10_ResNet50.csv")
print("Latency saved...")
converter = tf.lite.TFLiteConverter.from_saved_model('/home/anjir29/Desktop/greedyhpo-main/Main_test_case/CIFAR10/Bayesian_Search_Cifar10_ResNet50')
converter.optimizations = [tf.lite.Optimize.DEFAULT]
tflite_quant_model = converter.convert()
tflite_models_dir = pathlib.Path("Quant_Models")
tflite_models_dir.mkdir(exist_ok=True, parents=True)
tflite_model_file = tflite_models_dir/"Q1_Bayesian_Search_Cifar10_ResNet50.tflite"
tflite_model_file.write_bytes(tflite_quant_model)
interpreter = tf.lite.Interpreter(model_path=str(tflite_model_file))
interpreter.allocate_tensors()
interpreter_quant = tf.lite.Interpreter(model_path=str(tflite_model_file))
interpreter_quant.allocate_tensors()
testcode = '''
def test():
test_image = np.expand_dims(test_images[0], axis=0).astype(np.float32)
input_index = interpreter.get_input_details()[0]["index"]
output_index = interpreter.get_output_details()[0]["index"]
interpreter.set_tensor(input_index, test_image)
interpreter.invoke()
predictions = interpreter.get_tensor(output_index)
'''
time = timeit.repeat(stmt=testcode, repeat=100)
#time = np.array(time)
time = np.reshape(time, (100, 1))
#print(time)
pd.DataFrame(time).to_csv("Q1_Bayesian_Search_Cifar10_ResNet50.csv")
print("Latency saved...")
converter = tf.lite.TFLiteConverter.from_saved_model('/home/anjir29/Desktop/greedyhpo-main/Main_test_case/CIFAR10/Random_Search_Cifar10_ResNet50')
converter.optimizations = [tf.lite.Optimize.DEFAULT]
tflite_quant_model = converter.convert()
tflite_models_dir = pathlib.Path("Quant_Models")
tflite_models_dir.mkdir(exist_ok=True, parents=True)
tflite_model_file = tflite_models_dir/"Q1_Random_Search_Cifar10_ResNet50.tflite"
tflite_model_file.write_bytes(tflite_quant_model)
interpreter = tf.lite.Interpreter(model_path=str(tflite_model_file))
interpreter.allocate_tensors()
interpreter_quant = tf.lite.Interpreter(model_path=str(tflite_model_file))
interpreter_quant.allocate_tensors()
testcode = '''
def test():
test_image = np.expand_dims(test_images[0], axis=0).astype(np.float32)
input_index = interpreter.get_input_details()[0]["index"]
output_index = interpreter.get_output_details()[0]["index"]
interpreter.set_tensor(input_index, test_image)
interpreter.invoke()
predictions = interpreter.get_tensor(output_index)
'''
time = timeit.repeat(stmt=testcode, repeat=100)
#time = np.array(time)
time = np.reshape(time, (100, 1))
#print(time)
pd.DataFrame(time).to_csv("Q1_Random_Search_Cifar10_ResNet50.csv")
print("Latency saved...")
#Q2
converter = tf.lite.TFLiteConverter.from_saved_model('/home/anjir29/Desktop/greedyhpo-main/Main_test_case/CIFAR10/greedy_approch_Cifar10_ResNet50')
converter.optimizations = [tf.lite.Optimize.DEFAULT]
converter.target_spec.supported_types = [tf.float16]
tflite_quant_model = converter.convert()
tflite_models_dir = pathlib.Path("Quant_Models")
tflite_models_dir.mkdir(exist_ok=True, parents=True)
tflite_model_file = tflite_models_dir/"Q2_greedy_approch_Cifar10_ResNet50.tflite"
tflite_model_file.write_bytes(tflite_quant_model)
interpreter = tf.lite.Interpreter(model_path=str(tflite_model_file))
interpreter.allocate_tensors()
interpreter_quant = tf.lite.Interpreter(model_path=str(tflite_model_file))
interpreter_quant.allocate_tensors()
testcode = '''
def test():
test_image = np.expand_dims(test_images[0], axis=0).astype(np.float32)
input_index = interpreter.get_input_details()[0]["index"]
output_index = interpreter.get_output_details()[0]["index"]
interpreter.set_tensor(input_index, test_image)
interpreter.invoke()
predictions = interpreter.get_tensor(output_index)
'''
time = timeit.repeat(stmt=testcode, repeat=100)
#time = np.array(time)
time = np.reshape(time, (100, 1))
#print(time)
pd.DataFrame(time).to_csv("Q2_greedy_approch_Cifar10_ResNet50.csv")
print("Latency saved...")
converter = tf.lite.TFLiteConverter.from_saved_model('/home/anjir29/Desktop/greedyhpo-main/Main_test_case/CIFAR10/Bayesian_Search_Cifar10_ResNet50')
converter.optimizations = [tf.lite.Optimize.DEFAULT]
converter.target_spec.supported_types = [tf.float16]
tflite_quant_model = converter.convert()
tflite_models_dir = pathlib.Path("Quant_Models")
tflite_models_dir.mkdir(exist_ok=True, parents=True)
tflite_model_file = tflite_models_dir/"Q2_Bayesian_Search_Cifar10_ResNet50.tflite"
tflite_model_file.write_bytes(tflite_quant_model)
interpreter = tf.lite.Interpreter(model_path=str(tflite_model_file))
interpreter.allocate_tensors()
interpreter_quant = tf.lite.Interpreter(model_path=str(tflite_model_file))
interpreter_quant.allocate_tensors()
testcode = '''
def test():
test_image = np.expand_dims(test_images[0], axis=0).astype(np.float32)
input_index = interpreter.get_input_details()[0]["index"]
output_index = interpreter.get_output_details()[0]["index"]
interpreter.set_tensor(input_index, test_image)
interpreter.invoke()
predictions = interpreter.get_tensor(output_index)
'''
time = timeit.repeat(stmt=testcode, repeat=100)
#time = np.array(time)
time = np.reshape(time, (100, 1))
#print(time)
pd.DataFrame(time).to_csv("Q2_Bayesian_Search_Cifar10_ResNet50.csv")
print("Latency saved...")
converter = tf.lite.TFLiteConverter.from_saved_model('/home/anjir29/Desktop/greedyhpo-main/Main_test_case/CIFAR10/Random_Search_Cifar10_ResNet50')
converter.optimizations = [tf.lite.Optimize.DEFAULT]
tflite_quant_model = converter.convert()
tflite_models_dir = pathlib.Path("Quant_Models")
tflite_models_dir.mkdir(exist_ok=True, parents=True)
tflite_model_file = tflite_models_dir/"Q2_Random_Search_Cifar10_ResNet50.tflite"
tflite_model_file.write_bytes(tflite_quant_model)
interpreter = tf.lite.Interpreter(model_path=str(tflite_model_file))
interpreter.allocate_tensors()
interpreter_quant = tf.lite.Interpreter(model_path=str(tflite_model_file))
interpreter_quant.allocate_tensors()
testcode = '''
def test():
test_image = np.expand_dims(test_images[0], axis=0).astype(np.float32)
input_index = interpreter.get_input_details()[0]["index"]
output_index = interpreter.get_output_details()[0]["index"]
interpreter.set_tensor(input_index, test_image)
interpreter.invoke()
predictions = interpreter.get_tensor(output_index)
'''
time = timeit.repeat(stmt=testcode, repeat=100)
#time = np.array(time)
time = np.reshape(time, (100, 1))
#print(time)
pd.DataFrame(time).to_csv("Q2_Random_Search_Cifar10_ResNet50.csv")
print("Latency saved...")
def representative_data_gen():
for input_value in tf.data.Dataset.from_tensor_slices(train_images).batch(1).take(100):
yield [tf.dtypes.cast(input_value, tf.float32)]
converter = tf.lite.TFLiteConverter.from_saved_model('/home/anjir29/Desktop/greedyhpo-main/Main_test_case/CIFAR10/greedy_approch_Cifar10_ResNet50')
converter.optimizations = [tf.lite.Optimize.DEFAULT]
converter.representative_dataset = representative_data_gen
converter.target_spec.supported_ops = [tf.lite.OpsSet.TFLITE_BUILTINS_INT8]
converter.inference_input_type = tf.uint8
converter.inference_output_type = tf.uint8
tflite_quant_model = converter.convert()
tflite_models_dir = pathlib.Path("Quant_Models")
tflite_models_dir.mkdir(exist_ok=True, parents=True)
tflite_model_file = tflite_models_dir/"Q3_greedy_approch_Cifar10_ResNet50.tflite"
tflite_model_file.write_bytes(tflite_quant_model)
interpreter = tf.lite.Interpreter(model_path=str(tflite_model_file))
interpreter.allocate_tensors()
interpreter_quant = tf.lite.Interpreter(model_path=str(tflite_model_file))
interpreter_quant.allocate_tensors()
testcode = '''
def test():
test_image = np.expand_dims(test_images[0], axis=0).astype(np.float32)
input_index = interpreter.get_input_details()[0]["index"]
output_index = interpreter.get_output_details()[0]["index"]
interpreter.set_tensor(input_index, test_image)
interpreter.invoke()
predictions = interpreter.get_tensor(output_index)
'''
time = timeit.repeat(stmt=testcode, repeat=100)
#time = np.array(time)
time = np.reshape(time, (100, 1))
#print(time)
pd.DataFrame(time).to_csv("Q3_greedy_approch_Cifar10_ResNet50.csv")
print("Latency saved...")
converter = tf.lite.TFLiteConverter.from_saved_model('/home/anjir29/Desktop/greedyhpo-main/Main_test_case/CIFAR10/Bayesian_Search_Cifar10_ResNet50')
converter.optimizations = [tf.lite.Optimize.DEFAULT]
converter.representative_dataset = representative_data_gen
converter.target_spec.supported_ops = [tf.lite.OpsSet.TFLITE_BUILTINS_INT8]
converter.inference_input_type = tf.uint8
converter.inference_output_type = tf.uint8
tflite_quant_model = converter.convert()
tflite_models_dir = pathlib.Path("Quant_Models")
tflite_models_dir.mkdir(exist_ok=True, parents=True)
tflite_model_file = tflite_models_dir/"Q3_Bayesian_Search_Cifar10_ResNet50.tflite"
tflite_model_file.write_bytes(tflite_quant_model)
interpreter = tf.lite.Interpreter(model_path=str(tflite_model_file))
interpreter.allocate_tensors()
interpreter_quant = tf.lite.Interpreter(model_path=str(tflite_model_file))
interpreter_quant.allocate_tensors()
testcode = '''
def test():
test_image = np.expand_dims(test_images[0], axis=0).astype(np.float32)
input_index = interpreter.get_input_details()[0]["index"]
output_index = interpreter.get_output_details()[0]["index"]
interpreter.set_tensor(input_index, test_image)
interpreter.invoke()
predictions = interpreter.get_tensor(output_index)
'''
time = timeit.repeat(stmt=testcode, repeat=100)
#time = np.array(time)
time = np.reshape(time, (100, 1))
#print(time)
pd.DataFrame(time).to_csv("Q3_Bayesian_Search_Cifar10_ResNet50.csv")
print("Latency saved...")
converter = tf.lite.TFLiteConverter.from_saved_model('/home/anjir29/Desktop/greedyhpo-main/Main_test_case/CIFAR10/Random_Search_Cifar10_ResNet50')
converter.optimizations = [tf.lite.Optimize.DEFAULT]
converter.representative_dataset = representative_data_gen
converter.target_spec.supported_ops = [tf.lite.OpsSet.TFLITE_BUILTINS_INT8]
converter.inference_input_type = tf.uint8
converter.inference_output_type = tf.uint8
tflite_quant_model = converter.convert()
tflite_models_dir = pathlib.Path("Quant_Models")
tflite_models_dir.mkdir(exist_ok=True, parents=True)
tflite_model_file = tflite_models_dir/"Q3_Random_Search_Cifar10_ResNet50.tflite"
tflite_model_file.write_bytes(tflite_quant_model)
interpreter = tf.lite.Interpreter(model_path=str(tflite_model_file))
interpreter.allocate_tensors()
interpreter_quant = tf.lite.Interpreter(model_path=str(tflite_model_file))
interpreter_quant.allocate_tensors()
testcode = '''
def test():
test_image = np.expand_dims(test_images[0], axis=0).astype(np.float32)
input_index = interpreter.get_input_details()[0]["index"]
output_index = interpreter.get_output_details()[0]["index"]
interpreter.set_tensor(input_index, test_image)
interpreter.invoke()
predictions = interpreter.get_tensor(output_index)
'''
time = timeit.repeat(stmt=testcode, repeat=100)
#time = np.array(time)
time = np.reshape(time, (100, 1))
#print(time)
pd.DataFrame(time).to_csv("Q3_Random_Search_Cifar10_ResNet50.csv")
print("Latency saved...")
| 36.842932
| 148
| 0.795083
| 1,951
| 14,074
| 5.427473
| 0.067658
| 0.022098
| 0.050996
| 0.037397
| 0.956464
| 0.956464
| 0.956464
| 0.956464
| 0.93616
| 0.93616
| 0
| 0.028567
| 0.079721
| 14,074
| 381
| 149
| 36.939633
| 0.78899
| 0.031334
| 0
| 0.85348
| 0
| 0.010989
| 0.414234
| 0.294905
| 0
| 0
| 0
| 0
| 0
| 1
| 0.003663
| false
| 0
| 0.040293
| 0
| 0.043956
| 0.043956
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
5388c9bbc141409d4a3bb8ccaccf1432678eb7e4
| 3,499
|
py
|
Python
|
project_euler/problem_008/sol3.py
|
TeddyFirman/Algorithm_Python
|
edbd50a97a62c2beb2a187e4c411c677aa43115e
|
[
"MIT"
] | null | null | null |
project_euler/problem_008/sol3.py
|
TeddyFirman/Algorithm_Python
|
edbd50a97a62c2beb2a187e4c411c677aa43115e
|
[
"MIT"
] | null | null | null |
project_euler/problem_008/sol3.py
|
TeddyFirman/Algorithm_Python
|
edbd50a97a62c2beb2a187e4c411c677aa43115e
|
[
"MIT"
] | null | null | null |
"""
Project Euler Problem 8: https://projecteuler.net/problem=8
Largest product in a series
The four adjacent digits in the 1000-digit number that have the greatest
product are 9 × 9 × 8 × 9 = 5832.
73167176531330624919225119674426574742355349194934
96983520312774506326239578318016984801869478851843
85861560789112949495459501737958331952853208805511
12540698747158523863050715693290963295227443043557
66896648950445244523161731856403098711121722383113
62229893423380308135336276614282806444486645238749
30358907296290491560440772390713810515859307960866
70172427121883998797908792274921901699720888093776
65727333001053367881220235421809751254540594752243
52584907711670556013604839586446706324415722155397
53697817977846174064955149290862569321978468622482
83972241375657056057490261407972968652414535100474
82166370484403199890008895243450658541227588666881
16427171479924442928230863465674813919123162824586
17866458359124566529476545682848912883142607690042
24219022671055626321111109370544217506941658960408
07198403850962455444362981230987879927244284909188
84580156166097919133875499200524063689912560717606
05886116467109405077541002256983155200055935729725
71636269561882670428252483600823257530420752963450
Find the thirteen adjacent digits in the 1000-digit number that have the
greatest product. What is the value of this product?
"""
import sys
N = """73167176531330624919225119674426574742355349194934\
96983520312774506326239578318016984801869478851843\
85861560789112949495459501737958331952853208805511\
12540698747158523863050715693290963295227443043557\
66896648950445244523161731856403098711121722383113\
62229893423380308135336276614282806444486645238749\
30358907296290491560440772390713810515859307960866\
70172427121883998797908792274921901699720888093776\
65727333001053367881220235421809751254540594752243\
52584907711670556013604839586446706324415722155397\
53697817977846174064955149290862569321978468622482\
83972241375657056057490261407972968652414535100474\
82166370484403199890008895243450658541227588666881\
16427171479924442928230863465674813919123162824586\
17866458359124566529476545682848912883142607690042\
24219022671055626321111109370544217506941658960408\
07198403850962455444362981230987879927244284909188\
84580156166097919133875499200524063689912560717606\
05886116467109405077541002256983155200055935729725\
71636269561882670428252483600823257530420752963450"""
def str_eval(s: str) -> int:
"""
Returns product of digits in given string n
>>> str_eval("987654321")
362880
>>> str_eval("22222222")
256
"""
product = 1
for digit in s:
product *= int(digit)
return product
def solution(n: str = N) -> int:
"""
Find the thirteen adjacent digits in the 1000-digit number n that have
the greatest product and returns it.
"""
largest_product = -sys.maxsize - 1
substr = n[:13]
cur_index = 13
while cur_index < len(n) - 13:
if int(n[cur_index]) >= int(substr[0]):
substr = substr[1:] + n[cur_index]
cur_index += 1
else:
largest_product = max(largest_product, str_eval(substr))
substr = n[cur_index : cur_index + 13]
cur_index += 13
return largest_product
if __name__ == "__main__":
print(f"{solution() = }")
| 36.831579
| 75
| 0.793655
| 222
| 3,499
| 12.414414
| 0.400901
| 0.023222
| 0.017417
| 0.020682
| 0.814224
| 0.792453
| 0.792453
| 0.792453
| 0.792453
| 0.792453
| 0
| 0.703136
| 0.161475
| 3,499
| 94
| 76
| 37.223404
| 0.235174
| 0.46842
| 0
| 0
| 0
| 0
| 0.621194
| 0.596604
| 0
| 0
| 0
| 0
| 0
| 1
| 0.04878
| false
| 0
| 0.02439
| 0
| 0.121951
| 0.02439
| 0
| 0
| 1
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 11
|
53a6d929b6c38eb8e93b956f7f8cce407ab203a7
| 16,577
|
py
|
Python
|
tests/library/test_ceph_volume.py
|
jrosser/ceph-ansible
|
d67759611ea13f2157b2a8715e4783403ea0f1b9
|
[
"Apache-2.0"
] | null | null | null |
tests/library/test_ceph_volume.py
|
jrosser/ceph-ansible
|
d67759611ea13f2157b2a8715e4783403ea0f1b9
|
[
"Apache-2.0"
] | null | null | null |
tests/library/test_ceph_volume.py
|
jrosser/ceph-ansible
|
d67759611ea13f2157b2a8715e4783403ea0f1b9
|
[
"Apache-2.0"
] | null | null | null |
import sys
sys.path.append('./library')
import ceph_volume
import mock
import os
import pytest
# Python 3
try:
from unittest.mock import MagicMock
except ImportError:
# Python 2
try:
from mock import MagicMock
except ImportError:
print('You need the mock library installed on python2.x to run tests')
container_cmd = ['docker', 'run', '--rm', '--privileged',
'--net=host', '--ipc=host',
'-v', '/run/lock/lvm:/run/lock/lvm:z',
'-v', '/var/run/udev/:/var/run/udev/:z',
'-v', '/dev:/dev', '-v', '/etc/ceph:/etc/ceph:z',
'-v', '/run/lvm/:/run/lvm/',
'-v', '/var/lib/ceph/:/var/lib/ceph/:z',
'-v', '/var/log/ceph/:/var/log/ceph/:z',
'--entrypoint=ceph-volume']
@mock.patch.dict(os.environ, {'CEPH_CONTAINER_BINARY': 'docker'})
class TestCephVolumeModule(object):
def test_data_no_vg(self):
result = ceph_volume.get_data("/dev/sda", None)
assert result == "/dev/sda"
def test_data_with_vg(self):
result = ceph_volume.get_data("data-lv", "data-vg")
assert result == "data-vg/data-lv"
def test_journal_no_vg(self):
result = ceph_volume.get_journal("/dev/sda1", None)
assert result == "/dev/sda1"
def test_journal_with_vg(self):
result = ceph_volume.get_journal("journal-lv", "journal-vg")
assert result == "journal-vg/journal-lv"
def test_db_no_vg(self):
result = ceph_volume.get_db("/dev/sda1", None)
assert result == "/dev/sda1"
def test_db_with_vg(self):
result = ceph_volume.get_db("db-lv", "db-vg")
assert result == "db-vg/db-lv"
def test_wal_no_vg(self):
result = ceph_volume.get_wal("/dev/sda1", None)
assert result == "/dev/sda1"
def test_wal_with_vg(self):
result = ceph_volume.get_wal("wal-lv", "wal-vg")
assert result == "wal-vg/wal-lv"
def test_container_exec(self):
fake_binary = "ceph-volume"
fake_container_image = "docker.io/ceph/daemon:latest"
expected_command_list = container_cmd + [fake_container_image]
result = ceph_volume.container_exec(fake_binary, fake_container_image)
assert result == expected_command_list
def test_zap_osd_container(self):
fake_module = MagicMock()
fake_module.params = {'data': '/dev/sda'}
fake_container_image = "docker.io/ceph/daemon:latest"
expected_command_list = container_cmd + [fake_container_image,
'lvm',
'zap',
'--destroy',
'/dev/sda']
result = ceph_volume.zap_devices(fake_module, fake_container_image)
assert result == expected_command_list
def test_zap_osd(self):
fake_module = MagicMock()
fake_module.params = {'data': '/dev/sda'}
fake_container_image = None
expected_command_list = ['ceph-volume',
'lvm',
'zap',
'--destroy',
'/dev/sda']
result = ceph_volume.zap_devices(fake_module, fake_container_image)
assert result == expected_command_list
def test_zap_osd_fsid(self):
fake_module = MagicMock()
fake_module.params = {'osd_fsid': 'a_uuid'}
fake_container_image = None
expected_command_list = ['ceph-volume',
'lvm',
'zap',
'--destroy',
'--osd-fsid',
'a_uuid']
result = ceph_volume.zap_devices(fake_module, fake_container_image)
assert result == expected_command_list
def test_activate_osd(self):
expected_command_list = ['ceph-volume',
'lvm',
'activate',
'--all']
result = ceph_volume.activate_osd()
assert result == expected_command_list
def test_list_osd(self):
fake_module = MagicMock()
fake_module.params = {'cluster': 'ceph', 'data': '/dev/sda'}
fake_container_image = None
expected_command_list = ['ceph-volume',
'--cluster',
'ceph',
'lvm',
'list',
'/dev/sda',
'--format=json']
result = ceph_volume.list_osd(fake_module, fake_container_image)
assert result == expected_command_list
def test_list_osd_container(self):
fake_module = MagicMock()
fake_module.params = {'cluster': 'ceph', 'data': '/dev/sda'}
fake_container_image = "docker.io/ceph/daemon:latest"
expected_command_list = container_cmd + [fake_container_image,
'--cluster',
'ceph',
'lvm',
'list',
'/dev/sda',
'--format=json']
result = ceph_volume.list_osd(fake_module, fake_container_image)
assert result == expected_command_list
def test_list_storage_inventory(self):
fake_module = MagicMock()
fake_container_image = None
expected_command_list = ['ceph-volume',
'inventory',
'--format=json',
]
result = ceph_volume.list_storage_inventory(fake_module, fake_container_image)
assert result == expected_command_list
def test_list_storage_inventory_container(self):
fake_module = MagicMock()
fake_container_image = "docker.io/ceph/daemon:latest"
expected_command_list = container_cmd + [fake_container_image,
'inventory',
'--format=json']
result = ceph_volume.list_storage_inventory(fake_module, fake_container_image)
assert result == expected_command_list
@pytest.mark.parametrize('objectstore', ['bluestore','filestore'])
def test_create_osd_container(self, objectstore):
fake_module = MagicMock()
fake_module.params = {'data': '/dev/sda',
'objectstore': objectstore,
'cluster': 'ceph', }
fake_action = "create"
fake_container_image = "docker.io/ceph/daemon:latest"
expected_command_list = container_cmd + [fake_container_image,
'--cluster',
'ceph',
'lvm',
'create',
'--%s' % objectstore,
'--data',
'/dev/sda']
result = ceph_volume.prepare_or_create_osd(
fake_module, fake_action, fake_container_image)
assert result == expected_command_list
@pytest.mark.parametrize('objectstore', ['bluestore','filestore'])
def test_create_osd(self, objectstore):
fake_module = MagicMock()
fake_module.params = {'data': '/dev/sda',
'objectstore': objectstore,
'cluster': 'ceph', }
fake_container_image = None
fake_action = "create"
expected_command_list = ['ceph-volume',
'--cluster',
'ceph',
'lvm',
'create',
'--%s' % objectstore,
'--data',
'/dev/sda']
result = ceph_volume.prepare_or_create_osd(
fake_module, fake_action, fake_container_image)
assert result == expected_command_list
@pytest.mark.parametrize('objectstore', ['bluestore','filestore'])
def test_prepare_osd_container(self, objectstore):
fake_module = MagicMock()
fake_module.params = {'data': '/dev/sda',
'objectstore': objectstore,
'cluster': 'ceph', }
fake_action = "prepare"
fake_container_image = "docker.io/ceph/daemon:latest"
expected_command_list = container_cmd + [fake_container_image,
'--cluster',
'ceph',
'lvm',
'prepare',
'--%s' % objectstore,
'--data',
'/dev/sda']
result = ceph_volume.prepare_or_create_osd(
fake_module, fake_action, fake_container_image)
assert result == expected_command_list
@pytest.mark.parametrize('objectstore', ['bluestore','filestore'])
def test_prepare_osd(self, objectstore):
fake_module = MagicMock()
fake_module.params = {'data': '/dev/sda',
'objectstore': objectstore,
'cluster': 'ceph', }
fake_container_image = None
fake_action = "prepare"
expected_command_list = ['ceph-volume',
'--cluster',
'ceph',
'lvm',
'prepare',
'--%s' % objectstore,
'--data',
'/dev/sda']
result = ceph_volume.prepare_or_create_osd(
fake_module, fake_action, fake_container_image)
assert result == expected_command_list
@pytest.mark.parametrize('objectstore', ['bluestore','filestore'])
def test_batch_osd_container(self, objectstore):
fake_module = MagicMock()
fake_module.params = {'data': '/dev/sda',
'objectstore': objectstore,
'block_db_size': '4096',
'journal_size': '4096',
'cluster': 'ceph',
'batch_devices': ["/dev/sda", "/dev/sdb"]}
fake_container_image = "docker.io/ceph/daemon:latest"
expected_command_list = container_cmd + [fake_container_image,
'--cluster',
'ceph',
'lvm',
'batch',
'--%s' % objectstore,
'--yes',
'--prepare',
'--journal-size' if objectstore == 'filestore' else '--block-db-size', # noqa E501
'4096',
'/dev/sda',
'/dev/sdb']
result = ceph_volume.batch(
fake_module, fake_container_image)
assert result == expected_command_list
@pytest.mark.parametrize('objectstore', ['bluestore','filestore'])
def test_batch_osd(self, objectstore):
fake_module = MagicMock()
fake_module.params = {'data': '/dev/sda',
'objectstore': objectstore,
'block_db_size': '4096',
'journal_size': '4096',
'cluster': 'ceph',
'batch_devices': ["/dev/sda", "/dev/sdb"]}
fake_container_image = None
expected_command_list = ['ceph-volume',
'--cluster',
'ceph',
'lvm',
'batch',
'--%s' % objectstore,
'--yes',
'--journal-size' if objectstore == 'filestore' else '--block-db-size', # noqa E501
'4096',
'/dev/sda',
'/dev/sdb']
result = ceph_volume.batch(
fake_module, fake_container_image)
assert result == expected_command_list
def test_batch_filestore_with_dedicated_journal(self):
fake_module = MagicMock()
fake_module.params = {'objectstore': 'filestore',
'journal_size': '100',
'cluster': 'ceph',
'batch_devices': ["/dev/sda", "/dev/sdb"],
'journal_devices': ["/dev/sdc", "/dev/sdd"]}
fake_container_image = None
expected_command_list = ['ceph-volume',
'--cluster',
'ceph',
'lvm',
'batch',
'--filestore',
'--yes',
'--journal-size',
'100',
'/dev/sda',
'/dev/sdb',
'--journal-devices',
'/dev/sdc',
'/dev/sdd']
result = ceph_volume.batch(
fake_module, fake_container_image)
assert result == expected_command_list
def test_batch_bluestore_with_dedicated_db(self):
fake_module = MagicMock()
fake_module.params = {'objectstore': 'bluestore',
'block_db_size': '-1',
'cluster': 'ceph',
'batch_devices': ["/dev/sda", "/dev/sdb"],
'block_db_devices': ["/dev/sdc", "/dev/sdd"]}
fake_container_image = None
expected_command_list = ['ceph-volume',
'--cluster',
'ceph',
'lvm',
'batch',
'--bluestore',
'--yes',
'/dev/sda',
'/dev/sdb',
'--db-devices',
'/dev/sdc',
'/dev/sdd']
result = ceph_volume.batch(
fake_module, fake_container_image)
assert result == expected_command_list
def test_batch_bluestore_with_dedicated_wal(self):
fake_module = MagicMock()
fake_module.params = {'objectstore': 'bluestore',
'cluster': 'ceph',
'block_db_size': '-1',
'batch_devices': ["/dev/sda", "/dev/sdb"],
'wal_devices': ["/dev/sdc", "/dev/sdd"]}
fake_container_image = None
expected_command_list = ['ceph-volume',
'--cluster',
'ceph',
'lvm',
'batch',
'--bluestore',
'--yes',
'/dev/sda',
'/dev/sdb',
'--wal-devices',
'/dev/sdc',
'/dev/sdd']
result = ceph_volume.batch(
fake_module, fake_container_image)
assert result == expected_command_list
| 43.854497
| 132
| 0.435242
| 1,339
| 16,577
| 5.105302
| 0.09186
| 0.067291
| 0.107958
| 0.071094
| 0.854593
| 0.844061
| 0.835723
| 0.78072
| 0.756437
| 0.705822
| 0
| 0.005234
| 0.458286
| 16,577
| 377
| 133
| 43.970822
| 0.756013
| 0.002232
| 0
| 0.754491
| 0
| 0
| 0.158694
| 0.024494
| 0
| 0
| 0
| 0
| 0.077844
| 1
| 0.077844
| false
| 0
| 0.026946
| 0
| 0.107784
| 0.002994
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
53b5057ce41f2ee4b42878ca7b1c5fdf123f8f3d
| 1,826
|
py
|
Python
|
saleor/order/migrations/0043_auto_20180317_2151.py
|
austineinstein/Dsaleor
|
d181f395f66bbaa7ba24edf9860a8f52c3c2af65
|
[
"BSD-3-Clause"
] | null | null | null |
saleor/order/migrations/0043_auto_20180317_2151.py
|
austineinstein/Dsaleor
|
d181f395f66bbaa7ba24edf9860a8f52c3c2af65
|
[
"BSD-3-Clause"
] | null | null | null |
saleor/order/migrations/0043_auto_20180317_2151.py
|
austineinstein/Dsaleor
|
d181f395f66bbaa7ba24edf9860a8f52c3c2af65
|
[
"BSD-3-Clause"
] | null | null | null |
# Generated by Django 2.0.3 on 2018-03-17 20:51
from django.db import migrations
import django_prices.models
class Migration(migrations.Migration):
dependencies = [
('order', '0042_auto_20180227_0436'),
]
operations = [
migrations.AlterField(
model_name='order',
name='discount_amount',
field=django_prices.models.MoneyField(blank=True, currency='NGN', decimal_places=2, max_digits=12, null=True),
),
migrations.AlterField(
model_name='order',
name='shipping_price_gross',
field=django_prices.models.MoneyField(currency='NGN', decimal_places=2, default=0, editable=False, max_digits=12),
),
migrations.AlterField(
model_name='order',
name='shipping_price_net',
field=django_prices.models.MoneyField(currency='NGN', decimal_places=2, default=0, editable=False, max_digits=12),
),
migrations.AlterField(
model_name='order',
name='total_gross',
field=django_prices.models.MoneyField(currency='NGN', decimal_places=2, default=0, max_digits=12),
),
migrations.AlterField(
model_name='order',
name='total_net',
field=django_prices.models.MoneyField(currency='NGN', decimal_places=2, default=0, max_digits=12),
),
migrations.AlterField(
model_name='orderline',
name='unit_price_gross',
field=django_prices.models.MoneyField(currency='NGN', decimal_places=4, max_digits=12),
),
migrations.AlterField(
model_name='orderline',
name='unit_price_net',
field=django_prices.models.MoneyField(currency='NGN', decimal_places=4, max_digits=12),
),
]
| 36.52
| 126
| 0.620482
| 199
| 1,826
| 5.477387
| 0.276382
| 0.088073
| 0.13211
| 0.186239
| 0.809174
| 0.755963
| 0.721101
| 0.721101
| 0.67156
| 0.67156
| 0
| 0.041481
| 0.260679
| 1,826
| 49
| 127
| 37.265306
| 0.765926
| 0.024644
| 0
| 0.627907
| 1
| 0
| 0.109612
| 0.012929
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.046512
| 0
| 0.116279
| 0
| 0
| 0
| 0
| null | 0
| 0
| 1
| 1
| 1
| 1
| 1
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
53c70fbe4e29304a88c75e61133d91ede0a91bb5
| 6,153
|
py
|
Python
|
backend/api/tests/api/test_annotation.py
|
hsnprsd/doccano
|
2fce22b7073bd38188c3df6732c273b1967966a8
|
[
"MIT"
] | null | null | null |
backend/api/tests/api/test_annotation.py
|
hsnprsd/doccano
|
2fce22b7073bd38188c3df6732c273b1967966a8
|
[
"MIT"
] | null | null | null |
backend/api/tests/api/test_annotation.py
|
hsnprsd/doccano
|
2fce22b7073bd38188c3df6732c273b1967966a8
|
[
"MIT"
] | null | null | null |
from rest_framework import status
from rest_framework.reverse import reverse
from ...models import DOCUMENT_CLASSIFICATION, DocumentAnnotation
from .utils import (CRUDMixin, make_annotation, make_doc, make_label,
make_user, prepare_project)
class TestAnnotationList(CRUDMixin):
@classmethod
def setUpTestData(cls):
cls.project = prepare_project(task=DOCUMENT_CLASSIFICATION)
cls.non_member = make_user()
doc = make_doc(cls.project.item)
for member in cls.project.users:
make_annotation(task=DOCUMENT_CLASSIFICATION, doc=doc, user=member)
cls.url = reverse(viewname='annotation_list', args=[cls.project.item.id, doc.id])
def test_allows_project_member_to_fetch_annotation(self):
for member in self.project.users:
response = self.assert_fetch(member, status.HTTP_200_OK)
self.assertEqual(len(response.data), 1) # fetch only own annotation
def test_denies_non_project_member_to_fetch_annotation(self):
self.assert_fetch(self.non_member, status.HTTP_403_FORBIDDEN)
def test_denies_unauthenticated_user_to_fetch_annotation(self):
self.assert_fetch(self.non_member, status.HTTP_403_FORBIDDEN)
def test_allows_project_member_to_bulk_delete_annotation(self):
self.assert_delete(self.project.users[0], status.HTTP_204_NO_CONTENT)
count = DocumentAnnotation.objects.count()
self.assertEqual(count, 2) # delete only own annotation
class TestSharedAnnotationList(CRUDMixin):
@classmethod
def setUpTestData(cls):
cls.project = prepare_project(task=DOCUMENT_CLASSIFICATION, collaborative_annotation=True)
doc = make_doc(cls.project.item)
for member in cls.project.users:
make_annotation(task=DOCUMENT_CLASSIFICATION, doc=doc, user=member)
cls.url = reverse(viewname='annotation_list', args=[cls.project.item.id, doc.id])
def test_allows_project_member_to_fetch_all_annotation(self):
for member in self.project.users:
response = self.assert_fetch(member, status.HTTP_200_OK)
self.assertEqual(len(response.data), 3)
def test_allows_project_member_to_bulk_delete_annotation(self):
self.assert_delete(self.project.users[0], status.HTTP_204_NO_CONTENT)
count = DocumentAnnotation.objects.count()
self.assertEqual(count, 0) # delete all annotation in the doc
class TestAnnotationCreation(CRUDMixin):
def setUp(self):
self.project = prepare_project(task=DOCUMENT_CLASSIFICATION)
self.non_member = make_user()
doc = make_doc(self.project.item)
label = make_label(self.project.item)
self.data = {'label': label.id}
self.url = reverse(viewname='annotation_list', args=[self.project.item.id, doc.id])
def test_allows_project_member_to_annotate(self):
for member in self.project.users:
self.assert_create(member, status.HTTP_201_CREATED)
def test_denies_non_project_member_to_annotate(self):
self.assert_create(self.non_member, status.HTTP_403_FORBIDDEN)
def test_denies_unauthenticated_user_to_annotate(self):
self.assert_create(expected=status.HTTP_403_FORBIDDEN)
class TestAnnotationDetail(CRUDMixin):
def setUp(self):
self.project = prepare_project(task=DOCUMENT_CLASSIFICATION)
self.non_member = make_user()
doc = make_doc(self.project.item)
label = make_label(self.project.item)
annotation = make_annotation(task=DOCUMENT_CLASSIFICATION, doc=doc, user=self.project.users[0])
self.data = {'label': label.id}
self.url = reverse(viewname='annotation_detail', args=[self.project.item.id, doc.id, annotation.id])
def test_allows_owner_to_get_annotation(self):
self.assert_fetch(self.project.users[0], status.HTTP_200_OK)
def test_denies_non_owner_to_get_annotation(self):
for member in self.project.users[1:]:
self.assert_fetch(member, status.HTTP_403_FORBIDDEN)
def test_denies_non_project_member_to_get_annotation(self):
self.assert_fetch(self.non_member, status.HTTP_403_FORBIDDEN)
def test_denies_unauthenticated_user_to_get_annotation(self):
self.assert_fetch(expected=status.HTTP_403_FORBIDDEN)
def test_allows_owner_to_update_annotation(self):
self.assert_update(self.project.users[0], status.HTTP_200_OK)
def test_denies_non_owner_to_update_annotation(self):
for member in self.project.users[1:]:
self.assert_update(member, status.HTTP_403_FORBIDDEN)
def test_denies_non_project_member_to_update_annotation(self):
self.assert_update(self.non_member, status.HTTP_403_FORBIDDEN)
def test_allows_owner_to_delete_annotation(self):
self.assert_delete(self.project.users[0], status.HTTP_204_NO_CONTENT)
def test_denies_non_owner_to_delete_annotation(self):
for member in self.project.users[1:]:
self.assert_delete(member, status.HTTP_403_FORBIDDEN)
def test_denies_non_project_member_to_delete_annotation(self):
self.assert_delete(self.non_member, status.HTTP_403_FORBIDDEN)
class TestSharedAnnotationDetail(CRUDMixin):
def setUp(self):
self.project = prepare_project(task=DOCUMENT_CLASSIFICATION, collaborative_annotation=True)
doc = make_doc(self.project.item)
annotation = make_annotation(task=DOCUMENT_CLASSIFICATION, doc=doc, user=self.project.users[0])
label = make_label(self.project.item)
self.data = {'label': label.id}
self.url = reverse(viewname='annotation_detail', args=[self.project.item.id, doc.id, annotation.id])
def test_allows_any_member_to_get_annotation(self):
for member in self.project.users:
self.assert_fetch(member, status.HTTP_200_OK)
def test_allows_any_member_to_update_annotation(self):
for member in self.project.users:
self.assert_update(member, status.HTTP_200_OK)
def test_allows_any_member_to_delete_annotation(self):
self.assert_delete(self.project.users[1], status.HTTP_204_NO_CONTENT)
| 42.729167
| 108
| 0.737201
| 812
| 6,153
| 5.269704
| 0.105911
| 0.071979
| 0.059827
| 0.067305
| 0.896237
| 0.875438
| 0.849965
| 0.815377
| 0.788736
| 0.758822
| 0
| 0.015914
| 0.172761
| 6,153
| 143
| 109
| 43.027972
| 0.824754
| 0.013814
| 0
| 0.495238
| 0
| 0
| 0.015501
| 0
| 0
| 0
| 0
| 0
| 0.247619
| 1
| 0.257143
| false
| 0
| 0.038095
| 0
| 0.342857
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
53e3e5f60dd5a73666cfdadd25830f571fe22cb0
| 185
|
py
|
Python
|
symupy/cli/__init__.py
|
symuvia/symupy
|
e6604c59bb4474f594ef5c997508f0407c9b3870
|
[
"MIT"
] | 2
|
2019-07-01T09:58:53.000Z
|
2020-06-12T12:12:46.000Z
|
symupy/cli/__init__.py
|
licit-lab/symupy
|
942a17ee78cd12a363a4cd7b7f8363e239ccf7fe
|
[
"MIT"
] | 33
|
2021-01-18T13:59:01.000Z
|
2021-11-29T13:21:10.000Z
|
symupy/cli/__init__.py
|
licit-lab/symupy
|
942a17ee78cd12a363a4cd7b7f8363e239ccf7fe
|
[
"MIT"
] | 7
|
2018-07-12T13:34:38.000Z
|
2019-10-02T13:37:31.000Z
|
"""
Command line interface
======================
This package contains implementation of a command line interface (CLI) to execute specific predefined tasks
"""
from .cli import main
| 23.125
| 107
| 0.691892
| 22
| 185
| 5.818182
| 0.818182
| 0.171875
| 0.3125
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.140541
| 185
| 7
| 108
| 26.428571
| 0.805031
| 0.827027
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 0
| 1
| 0
| 1
| 0
| 0
| null | 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 7
|
54d85f62840db26d9ac751ae4387845d867b29b6
| 12,350
|
py
|
Python
|
pettingzoo/tests/test_discovery.py
|
Knewton/pettingzoo-python
|
14f8dc47a202334b67fa3fd5b0340a9305ba5e8b
|
[
"Apache-2.0"
] | 3
|
2015-02-23T21:25:02.000Z
|
2018-06-09T14:04:37.000Z
|
pettingzoo/tests/test_discovery.py
|
Knewton/pettingzoo-python
|
14f8dc47a202334b67fa3fd5b0340a9305ba5e8b
|
[
"Apache-2.0"
] | null | null | null |
pettingzoo/tests/test_discovery.py
|
Knewton/pettingzoo-python
|
14f8dc47a202334b67fa3fd5b0340a9305ba5e8b
|
[
"Apache-2.0"
] | null | null | null |
import unittest
import yaml
import threading
import pettingzoo.local_config
import pettingzoo.discovery
from pettingzoo.utils import connect_to_zk
class DiscoveryTests(unittest.TestCase):
def setUp(self):
pettingzoo.utils.configure_logger()
self.mock = True
self.conn_string = '127.0.0.1:2181'
if self.mock:
import zc.zk.testing
zc.zk.testing.setUp(self, connection_string=self.conn_string)
self.connection = connect_to_zk(self.conn_string)
self.path = '/test_discovery'
pettingzoo.discovery.CONFIG_PATH = self.path
self.sample = {
'header': {
'service_class': 'mysql', 'metadata': {'version': 1.0}
},
'username': 'reports',
'host': 'localhost',
'port': 3306,
'password': 'reports',
'database': 'reports',
'encoding': 'utf8'
}
def test_write_distributed_config(self):
pettingzoo.discovery.write_distributed_config(
self.connection, 'mysql', 'reports', self.sample, '127.0.0.1')
znode = self.connection.get(self.path + '/mysql/reports/127.0.0.1')
config = yaml.load(znode[0])
mismatch_keys = [
key for key in self.sample
if not key in config or self.sample[key] != config[key]]
self.assertEqual(len(mismatch_keys), 0)
def test_write_distributed_config_no_ip(self):
pettingzoo.discovery.write_distributed_config(
self.connection, 'mysql', 'reports', self.sample, interface='lo')
znode = self.connection.get(self.path + '/mysql/reports/127.0.0.1')
config = yaml.load(znode[0])
mismatch_keys = [
key for key in self.sample
if not key in config or self.sample[key] != config[key]]
self.assertEqual(len(mismatch_keys), 0)
def test_remove_stale_config(self):
pettingzoo.discovery.write_distributed_config(
self.connection, 'mysql', 'reports',
self.sample, '127.0.0.1', ephemeral=False)
test = self.connection.exists(self.path + '/mysql/reports/127.0.0.1')
self.assertTrue(test)
pettingzoo.discovery.remove_stale_config(
self.connection, 'mysql', 'reports', '127.0.0.1')
test = self.connection.exists(self.path + '/mysql/reports/127.0.0.1')
self.assertTrue(not test)
def tearDown(self):
pettingzoo.discovery.CONFIG_PATH = '/discovery'
self.connection.close()
self.connection = connect_to_zk('127.0.0.1:2181')
self.connection.delete_recursive(self.path)
self.connection.close()
if self.mock:
import zc.zk.testing
zc.zk.testing.tearDown(self)
class DistributedDiscoveryTests(unittest.TestCase):
def setUp(self):
pettingzoo.utils.configure_logger()
self.mock = True
self.conn_string = '127.0.0.1:2181'
if self.mock:
import zc.zk.testing
zc.zk.testing.setUp(self, connection_string=self.conn_string)
self.connection = connect_to_zk(self.conn_string)
self.path = '/test_discovery'
pettingzoo.discovery.CONFIG_PATH = self.path
self.sample = {
'header': {
'service_class': 'mysql', 'metadata': {'version': 1.0}
},
'username': 'reports',
'host': 'localhost',
'port': 3306,
'password': 'reports',
'database': 'reports',
'encoding': 'utf8'
}
self.sample_slash = {
'header': {
'service_class': 'cassandra/thrift',
'metadata': {'version': 1.0}
},
'host': 'localhost',
'port': 9160,
}
def test_distributed_config_dne(self):
ddc = pettingzoo.discovery.DistributedDiscovery(self.connection)
self.assertRaises(IOError, ddc.load_config, "doesn't", "exist")
def test_load_config(self):
pettingzoo.discovery.write_distributed_config(
self.connection, 'mysql', 'reports', self.sample, '127.0.0.1')
ddc = pettingzoo.discovery.DistributedDiscovery(self.connection)
config = ddc.load_config('mysql', 'reports')
mismatch_keys = [
key for key in self.sample
if not key in config or self.sample[key] != config[key]]
self.assertEqual(len(mismatch_keys), 0)
def test_load_config_via_path(self):
pettingzoo.discovery.write_distributed_config(
self.connection, 'mysql', 'reports', self.sample, '127.0.0.1')
ddc = pettingzoo.discovery.DistributedDiscovery(self.connection)
config = ddc.load_config_via_path('mysql/reports.yml')
mismatch_keys = [
key for key in self.sample
if not key in config or self.sample[key] != config[key]]
self.assertEqual(len(mismatch_keys), 0)
def test_load_config_with_slash(self):
pettingzoo.discovery.write_distributed_config(
self.connection,
'cassandra/thrift', 'platform', self.sample_slash, '127.0.0.1')
ddc = pettingzoo.discovery.DistributedDiscovery(self.connection)
config = ddc.load_config('cassandra/thrift', 'platform')
mismatch_keys = [
key for key in self.sample_slash
if not key in config or self.sample_slash[key] != config[key]]
self.assertEqual(len(mismatch_keys), 0)
def test_load_config_with_callback(self):
self.touched = False
self.cbpath = None
self.cbconfig = None
event = threading.Event()
def callback(path, config):
self.touched = True
self.cbpath = path
self.cbconfig = config
event.set()
pettingzoo.discovery.write_distributed_config(
self.connection, 'mysql', 'reports', self.sample, '127.0.0.1')
ddc = pettingzoo.discovery.DistributedDiscovery(self.connection)
config = ddc.load_config('mysql', 'reports', callback=callback)
sample2 = {
'header': {
'service_class': 'mysql', 'metadata': {'version': 1.0}
},
'username': 'reports',
'host': 'notlocalhost',
'port': 3306,
'password': 'reports',
'database': 'reports',
'encoding': 'utf8'
}
pettingzoo.discovery.write_distributed_config(
self.connection, 'mysql', 'reports', sample2, '127.0.0.2')
event.wait(0.25)
self.assertTrue(self.touched)
self.assertEqual(self.cbpath, '/test_discovery/mysql/reports')
config = self.cbconfig
self.assertTrue(config['host'] in ['localhost', 'notlocalhost'])
mismatch_keys = [
key for key in self.sample
if not key in config or self.sample[key] != config[key]]
for key in mismatch_keys:
self.assertTrue(key in ['host', 'header'])
def test_load_config_with_multiple_entries(self):
pettingzoo.discovery.write_distributed_config(
self.connection, 'mysql', 'reports', self.sample, '127.0.0.1')
sample2 = {
'header': {
'service_class': 'mysql', 'metadata': {'version': 1.0}
},
'username': 'reports',
'host': 'notlocalhost',
'port': 3306,
'password': 'reports',
'database': 'reports',
'encoding': 'utf8'
}
pettingzoo.discovery.write_distributed_config(
self.connection, 'mysql', 'reports', sample2, '127.0.0.2')
ddc = pettingzoo.discovery.DistributedDiscovery(self.connection)
config = ddc.load_config('mysql', 'reports')
mismatch_keys = [
key for key in self.sample
if not key in config or self.sample[key] != config[key]]
for key in mismatch_keys:
self.assertTrue(key in ['host', 'header'])
def tearDown(self):
pettingzoo.discovery.CONFIG_PATH = '/discovery'
self.connection.close()
self.connection = connect_to_zk('127.0.0.1:2181')
self.connection.delete_recursive(self.path)
self.connection.close()
if self.mock:
import zc.zk.testing
zc.zk.testing.tearDown(self)
class DistributedMultiDiscovery(unittest.TestCase):
def setUp(self):
pettingzoo.utils.configure_logger()
self.mock = True
self.conn_string = '127.0.0.1:2181'
if self.mock:
import zc.zk.testing
zc.zk.testing.setUp(self, connection_string=self.conn_string)
self.connection = connect_to_zk(self.conn_string)
self.path = '/test_discovery'
pettingzoo.discovery.CONFIG_PATH = self.path
self.sample = {
'header': {
'service_class': 'mysql', 'metadata': {'version': 1.0}
},
'username': 'reports',
'host': 'localhost',
'port': 3306,
'password': 'reports',
'database': 'reports',
'encoding': 'utf8'
}
self.sample2 = {
'header': {
'service_class': 'mysql', 'metadata': {'version': 1.0}
},
'username': 'reports',
'host': 'notlocalhost',
'port': 3306,
'password': 'reports',
'database': 'reports',
'encoding': 'utf8'
}
def test_config_dne(self):
dmc = pettingzoo.discovery.DistributedMultiDiscovery(self.connection)
self.assertRaises(IOError, dmc.load_config, "doesn't", "exist")
def test_load_config(self):
pettingzoo.discovery.write_distributed_config(
self.connection, 'mysql', 'reports', self.sample, '127.0.0.1')
dmc = pettingzoo.discovery.DistributedMultiDiscovery(self.connection)
configs = dmc.load_config('mysql', 'reports')
self.assertTrue(len(configs), 1)
config = configs[0]
mismatch_keys = [
key for key in self.sample
if not key in config or self.sample[key] != config[key]]
self.assertEqual(len(mismatch_keys), 0)
def test_load_config_with_multiple_entries(self):
pettingzoo.discovery.write_distributed_config(
self.connection, 'mysql', 'reports', self.sample, '127.0.0.1')
pettingzoo.discovery.write_distributed_config(
self.connection, 'mysql', 'reports', self.sample2, '127.0.0.2')
dmc = pettingzoo.discovery.DistributedMultiDiscovery(self.connection)
configs = dmc.load_config('mysql', 'reports')
self.assertTrue(len(configs), 2)
ips = ['127.0.0.1', '127.0.0.2']
for config in configs:
mismatch_keys = [
key for key in self.sample
if not key in config or self.sample[key] != config[key]]
ips.remove(config['header']['metadata']['key'])
self.assertEquals(len(ips), 0)
def tearDown(self):
pettingzoo.discovery.CONFIG_PATH = '/discovery'
self.connection.close()
self.connection = connect_to_zk('127.0.0.1:2181')
self.connection.delete_recursive(self.path)
self.connection.close()
if self.mock:
import zc.zk.testing
zc.zk.testing.tearDown(self)
class FileFallbackTests(unittest.TestCase):
def setUp(self):
pettingzoo.utils.configure_logger()
self.mock = True
self.conn_string = '127.0.0.1:2181'
if self.mock:
import zc.zk.testing
zc.zk.testing.setUp(self, connection_string=self.conn_string)
self.connection = connect_to_zk(self.conn_string)
self.path = '/test_discovery'
pettingzoo.discovery.CONFIG_PATH = self.path
self.sample = {
'header': {
'service_class': 'mysql', 'metadata': {'version': 1.0}
},
'username': 'reports',
'host': 'localhost',
'port': 3306,
'password': 'reports',
'database': 'reports',
'encoding': 'utf8'
}
self.sample2 = {
'header': {
'service_class': 'mysql', 'metadata': {'version': 1.0}
},
'username': 'reports',
'host': 'notlocalhost',
'port': 3306,
'password': 'reports',
'database': 'reports',
'encoding': 'utf8'
}
pettingzoo.local_config.LocalConfig = pettingzoo.local_config.LocalConfigTest()
pettingzoo.local_config.LocalConfig().add_config(
self.sample, 'discovery/mysql/exist')
self.list_sample = {'server_list': [self.sample]}
pettingzoo.local_config.LocalConfig().add_config(
self.list_sample, 'discovery/mysql/list')
self.list_sample2 = {'server_list': [self.sample, self.sample2]}
pettingzoo.local_config.LocalConfig().add_config(
self.list_sample2, 'discovery/mysql/mlist')
def test_config_file_fallback_dc(self):
ddc = pettingzoo.discovery.DistributedDiscovery(self.connection)
config = ddc.load_config('mysql', 'exist')
self.assertEquals(config, self.sample)
def test_config_file_list_fallback_dc(self):
ddc = pettingzoo.discovery.DistributedDiscovery(self.connection)
config = ddc.load_config('mysql', 'list')
self.assertEquals(config, self.sample)
config = ddc.load_config('mysql', 'mlist')
self.assertTrue(config in [self.sample, self.sample2])
def test_config_file_fallback_dmc(self):
dmc = pettingzoo.discovery.DistributedMultiDiscovery(self.connection)
config = dmc.load_config('mysql', 'exist')
self.assertEquals(config[0], self.sample)
def test_config_file_fallback_list_dmc(self):
dmc = pettingzoo.discovery.DistributedMultiDiscovery(self.connection)
config = dmc.load_config('mysql', 'list')
self.assertEquals(config[0], self.sample)
config = dmc.load_config('mysql', 'mlist')
self.assertEquals(config[0], self.sample)
self.assertEquals(config[1], self.sample2)
def tearDown(self):
pettingzoo.local_config.LocalConfig = pettingzoo.local_config.LocalConfigDefault()
pettingzoo.discovery.CONFIG_PATH = '/discovery'
self.connection.close()
self.connection = connect_to_zk('127.0.0.1:2181')
self.connection.delete_recursive(self.path)
self.connection.close()
if self.mock:
import zc.zk.testing
zc.zk.testing.tearDown(self)
| 33.835616
| 84
| 0.710364
| 1,597
| 12,350
| 5.363807
| 0.078898
| 0.08989
| 0.01576
| 0.01611
| 0.856292
| 0.828391
| 0.814733
| 0.771305
| 0.745856
| 0.745856
| 0
| 0.027019
| 0.139919
| 12,350
| 364
| 85
| 33.928571
| 0.77942
| 0
| 0
| 0.713864
| 0
| 0
| 0.159203
| 0.013523
| 0
| 0
| 0
| 0
| 0.073746
| 1
| 0.073746
| false
| 0.023599
| 0.041298
| 0
| 0.126844
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
54dbf8703fa866dc5d9d4ea4437f1b2c7b9e3a60
| 69
|
py
|
Python
|
multilingual_t5/r_baseline_hi/__init__.py
|
sumanthd17/mt5
|
c99b4e3ad1c69908c852c730a1323ccb52d48f58
|
[
"Apache-2.0"
] | null | null | null |
multilingual_t5/r_baseline_hi/__init__.py
|
sumanthd17/mt5
|
c99b4e3ad1c69908c852c730a1323ccb52d48f58
|
[
"Apache-2.0"
] | null | null | null |
multilingual_t5/r_baseline_hi/__init__.py
|
sumanthd17/mt5
|
c99b4e3ad1c69908c852c730a1323ccb52d48f58
|
[
"Apache-2.0"
] | null | null | null |
"""r_baseline_hi dataset."""
from .r_baseline_hi import RBaselineHi
| 17.25
| 38
| 0.782609
| 10
| 69
| 5
| 0.7
| 0.36
| 0.44
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.101449
| 69
| 3
| 39
| 23
| 0.806452
| 0.318841
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 0
| 1
| 0
| 1
| 0
| 0
| null | 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 7
|
071813366b102027d7cc9c13e2902233af045bc1
| 10,681
|
py
|
Python
|
tests/schema/test_permission.py
|
TheVinhLuong102/Strawberry
|
3c442dc19d17bc55c4e26de1db7a9eedc0a228f5
|
[
"MIT"
] | 2,062
|
2019-04-07T17:47:30.000Z
|
2022-03-31T01:54:16.000Z
|
tests/schema/test_permission.py
|
TheVinhLuong102/Strawberry
|
3c442dc19d17bc55c4e26de1db7a9eedc0a228f5
|
[
"MIT"
] | 1,582
|
2019-04-07T18:31:33.000Z
|
2022-03-31T18:32:13.000Z
|
tests/schema/test_permission.py
|
TheVinhLuong102/Strawberry
|
3c442dc19d17bc55c4e26de1db7a9eedc0a228f5
|
[
"MIT"
] | 303
|
2019-04-13T08:44:40.000Z
|
2022-03-29T09:54:41.000Z
|
import typing
import pytest
import strawberry
from strawberry.permission import BasePermission
from strawberry.types import Info
def test_raises_graphql_error_when_permission_method_is_missing():
class IsAuthenticated(BasePermission):
pass
@strawberry.type
class Query:
@strawberry.field(permission_classes=[IsAuthenticated])
def user(self) -> str:
return "patrick"
schema = strawberry.Schema(query=Query)
query = "{ user }"
result = schema.execute_sync(query)
assert (
result.errors[0].message
== "Permission classes should override has_permission method"
)
def test_raises_graphql_error_when_permission_is_denied():
class IsAuthenticated(BasePermission):
message = "User is not authenticated"
def has_permission(self, source: typing.Any, info: Info, **kwargs) -> bool:
return False
@strawberry.type
class Query:
@strawberry.field(permission_classes=[IsAuthenticated])
def user(self) -> str:
return "patrick"
schema = strawberry.Schema(query=Query)
query = "{ user }"
result = schema.execute_sync(query)
assert result.errors[0].message == "User is not authenticated"
@pytest.mark.asyncio
async def test_raises_permission_error_for_subscription():
class IsAdmin(BasePermission):
message = "You are not authorized"
def has_permission(self, source: typing.Any, info: Info, **kwargs) -> bool:
return False
@strawberry.type
class Query:
name: str = "Andrew"
@strawberry.type
class Subscription:
@strawberry.subscription(permission_classes=[IsAdmin])
async def user(self, info) -> typing.AsyncGenerator[str, None]:
yield "Hello"
schema = strawberry.Schema(query=Query, subscription=Subscription)
query = "subscription { user }"
result = await schema.subscribe(query)
assert result.errors[0].message == "You are not authorized"
@pytest.mark.asyncio
async def test_sync_permissions_work_with_async_resolvers():
class IsAuthorized(BasePermission):
message = "User is not authorized"
def has_permission(self, source, info, **kwargs) -> bool:
return info.context["user"] == "Patrick"
@strawberry.type
class User:
name: str
email: str
@strawberry.type
class Query:
@strawberry.field(permission_classes=[IsAuthorized])
async def user(self, name: str) -> User:
return User(name=name, email="patrick.arminio@gmail.com")
schema = strawberry.Schema(query=Query)
query = '{ user(name: "patrick") { email } }'
result = await schema.execute(query, context_value={"user": "Patrick"})
assert result.data["user"]["email"] == "patrick.arminio@gmail.com"
query = '{ user(name: "marco") { email } }'
result = await schema.execute(query, context_value={"user": "Marco"})
assert result.errors[0].message == "User is not authorized"
def test_can_use_source_when_testing_permission():
class CanSeeEmail(BasePermission):
message = "Cannot see email for this user"
def has_permission(self, source: typing.Any, info: Info, **kwargs) -> bool:
return source.name.lower() == "patrick"
@strawberry.type
class User:
name: str
@strawberry.field(permission_classes=[CanSeeEmail])
def email(self) -> str:
return "patrick.arminio@gmail.com"
@strawberry.type
class Query:
@strawberry.field
def user(self, name: str) -> User:
return User(name=name)
schema = strawberry.Schema(query=Query)
query = '{ user(name: "patrick") { email } }'
result = schema.execute_sync(query)
assert result.data["user"]["email"] == "patrick.arminio@gmail.com"
query = '{ user(name: "marco") { email } }'
result = schema.execute_sync(query)
assert result.errors[0].message == "Cannot see email for this user"
def test_can_use_args_when_testing_permission():
class CanSeeEmail(BasePermission):
message = "Cannot see email for this user"
def has_permission(self, source: typing.Any, info: Info, **kwargs) -> bool:
return kwargs.get("secure", False)
@strawberry.type
class User:
name: str
@strawberry.field(permission_classes=[CanSeeEmail])
def email(self, secure: bool) -> str:
return "patrick.arminio@gmail.com"
@strawberry.type
class Query:
@strawberry.field
def user(self, name: str) -> User:
return User(name=name)
schema = strawberry.Schema(query=Query)
query = '{ user(name: "patrick") { email(secure: true) } }'
result = schema.execute_sync(query)
assert result.data["user"]["email"] == "patrick.arminio@gmail.com"
query = '{ user(name: "patrick") { email(secure: false) } }'
result = schema.execute_sync(query)
assert result.errors[0].message == "Cannot see email for this user"
def test_can_use_on_simple_fields():
class CanSeeEmail(BasePermission):
message = "Cannot see email for this user"
def has_permission(self, source: typing.Any, info: Info, **kwargs) -> bool:
return source.name.lower() == "patrick"
@strawberry.type
class User:
name: str
email: str = strawberry.field(permission_classes=[CanSeeEmail])
@strawberry.type
class Query:
@strawberry.field
def user(self, name: str) -> User:
return User(name=name, email="patrick.arminio@gmail.com")
schema = strawberry.Schema(query=Query)
query = '{ user(name: "patrick") { email } }'
result = schema.execute_sync(query)
assert result.data["user"]["email"] == "patrick.arminio@gmail.com"
query = '{ user(name: "marco") { email } }'
result = schema.execute_sync(query)
assert result.errors[0].message == "Cannot see email for this user"
@pytest.mark.asyncio
async def test_dataclass_field_with_async_permission_class():
class CanSeeEmail(BasePermission):
message = "Cannot see email for this user"
async def has_permission(self, source, info, **kwargs) -> bool:
return source.name.lower() == "patrick"
@strawberry.type
class User:
name: str
email: str = strawberry.field(permission_classes=[CanSeeEmail])
@strawberry.type
class Query:
@strawberry.field()
async def user(self, name: str) -> User:
return User(name=name, email="patrick.arminio@gmail.com")
schema = strawberry.Schema(query=Query)
query = '{ user(name: "patrick") { email } }'
result = await schema.execute(query)
assert result.data["user"]["email"] == "patrick.arminio@gmail.com"
query = '{ user(name: "marco") { email } }'
result = await schema.execute(query)
assert result.errors[0].message == "Cannot see email for this user"
@pytest.mark.asyncio
async def test_async_resolver_with_async_permission_class():
class IsAuthorized(BasePermission):
message = "User is not authorized"
async def has_permission(self, source, info, **kwargs) -> bool:
return info.context["user"] == "Patrick"
@strawberry.type
class User:
name: str
email: str
@strawberry.type
class Query:
@strawberry.field(permission_classes=[IsAuthorized])
async def user(self, name: str) -> User:
return User(name=name, email="patrick.arminio@gmail.com")
schema = strawberry.Schema(query=Query)
query = '{ user(name: "patrick") { email } }'
result = await schema.execute(query, context_value={"user": "Patrick"})
assert result.data["user"]["email"] == "patrick.arminio@gmail.com"
query = '{ user(name: "marco") { email } }'
result = await schema.execute(query, context_value={"user": "Marco"})
assert result.errors[0].message == "User is not authorized"
@pytest.mark.asyncio
async def test_sync_resolver_with_async_permission_class():
class IsAuthorized(BasePermission):
message = "User is not authorized"
async def has_permission(self, source, info, **kwargs) -> bool:
return info.context["user"] == "Patrick"
@strawberry.type
class User:
name: str
email: str
@strawberry.type
class Query:
@strawberry.field(permission_classes=[IsAuthorized])
def user(self, name: str) -> User:
return User(name=name, email="patrick.arminio@gmail.com")
schema = strawberry.Schema(query=Query)
query = '{ user(name: "patrick") { email } }'
result = await schema.execute(query, context_value={"user": "Patrick"})
assert result.data["user"]["email"] == "patrick.arminio@gmail.com"
query = '{ user(name: "marco") { email } }'
result = await schema.execute(query, context_value={"user": "Marco"})
assert result.errors[0].message == "User is not authorized"
@pytest.mark.asyncio
async def test_mixed_sync_and_async_permission_classes():
class IsAuthorizedAsync(BasePermission):
message = "User is not authorized (async)"
async def has_permission(self, source, info, **kwargs) -> bool:
return info.context.get("passAsync", False)
class IsAuthorizedSync(BasePermission):
message = "User is not authorized (sync)"
def has_permission(self, source, info, **kwargs) -> bool:
return info.context.get("passSync", False)
@strawberry.type
class User:
name: str
email: str
@strawberry.type
class Query:
@strawberry.field(permission_classes=[IsAuthorizedAsync, IsAuthorizedSync])
def user(self, name: str) -> User:
return User(name=name, email="patrick.arminio@gmail.com")
schema = strawberry.Schema(query=Query)
query = '{ user(name: "patrick") { email } }'
context = {"passAsync": False, "passSync": False}
result = await schema.execute(query, context_value=context)
assert result.errors[0].message == "User is not authorized (async)"
context = {"passAsync": True, "passSync": False}
result = await schema.execute(query, context_value=context)
assert result.errors[0].message == "User is not authorized (sync)"
context = {"passAsync": False, "passSync": True}
result = await schema.execute(query, context_value=context)
assert result.errors[0].message == "User is not authorized (async)"
context = {"passAsync": True, "passSync": True}
result = await schema.execute(query, context_value=context)
assert result.data["user"]["email"] == "patrick.arminio@gmail.com"
| 31.322581
| 83
| 0.653029
| 1,227
| 10,681
| 5.596577
| 0.08313
| 0.036115
| 0.055337
| 0.05126
| 0.88088
| 0.861803
| 0.842144
| 0.820882
| 0.811271
| 0.798893
| 0
| 0.001563
| 0.221328
| 10,681
| 340
| 84
| 31.414706
| 0.824095
| 0
| 0
| 0.783333
| 0
| 0
| 0.182661
| 0.03745
| 0
| 0
| 0
| 0
| 0.0875
| 1
| 0.0875
| false
| 0.029167
| 0.020833
| 0.066667
| 0.445833
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
4ad2d8f609de248198750bdfe7d1a0bf5b12c261
| 138,982
|
py
|
Python
|
PhotoFit/PhotoFit_fun.py
|
maayane/PhotoFit
|
e5461bc50a9587ed0fe5d323f6b6bbea8aa968d5
|
[
"Apache-2.0"
] | 2
|
2019-02-07T09:49:17.000Z
|
2020-04-07T14:39:10.000Z
|
PhotoFit/PhotoFit_fun.py
|
maayane/PhotoFit
|
e5461bc50a9587ed0fe5d323f6b6bbea8aa968d5
|
[
"Apache-2.0"
] | null | null | null |
PhotoFit/PhotoFit_fun.py
|
maayane/PhotoFit
|
e5461bc50a9587ed0fe5d323f6b6bbea8aa968d5
|
[
"Apache-2.0"
] | 1
|
2020-01-18T04:06:27.000Z
|
2020-01-18T04:06:27.000Z
|
"""*******************************************************
PhotoFit: calculates the evolution in time of the effective radius
and temperature, by interpolating to a common epoch, and fitting a
blackbody (after applying E and z corrections and synthetic photometry)
to each SED.
******************************************************"""
print(__doc__)
import numpy as np
import pylab
import pdb
import os
import shutil
import logging
import pyphot
from pathlib import Path
import matplotlib.pyplot as plt
import math
from . import interpolate_errors
from . import read_data_from_file
from . import fit_black_body_flux_filters_mcmc
from . import fit_black_body_flux_filters
from . import get_filter
from . import black_body_flux_density
from . import distances_conversions
from . import energy_conversions
from . import fitter_general
from . import fit_black_body_flux_filters_dynesty
#print('Hi')
#pdb.set_trace()
logging.basicConfig(level=logging.INFO)
logger = logging.getLogger(__name__)
__all__=['calculate_T_and_R_in_time','plot_T_and_R_in_time','plot_L_in_time','plot_SEDs']
#mcmc=params.mcmc
#output_file_mcmc=params.output_file_mcmc
#output_file_linear=params.output_file_linear
#output_file_interpolation=params.output_file_interpolation
#filters_directroy=params.filters_directory
#if mcmc==True:
# output=output_file_mcmc
#else:
# output=output_file_linear
#if os.path.exists(output):
# print('the output directory, '+output + ' exists already')
#else:
# os.mkdir(output)
########## Informations on the object ##########
#redshift = params.z
#distance_modulus=params.distance_modulus
#distance_pc=distances_conversions.DM_to_pc(distance_modulus) # sn distance in pc
#explosion_date=params.explosion_date
#EBV=params.EBV
########################################### Read and process the photometric data ############################################
# make sure you don't have cases with repeated x,y, and different yerr
#lower_limit_on_flux=params.lower_limit_on_flux
def calculate_T_and_R_in_time(data_file=None,dates_file=None,already_run_interp_errors_from_param=None,already_run_mcmc=None,already_run_dynesty=None,
already_run_matrix=None,show_underlying_plots=True,verbose=False,redshift=None,distance_pc=None,
distance_modulus=None,explosion_date=None,EBV=None,output=None,filters_directory=None,
mcmc=False, dynesty=None,output_file_interpolation=None,lower_limit_on_flux=None,num_iterations=None,
num_steps=None,nwalkers=None,csm=False,already_run_fit=None,excluded_bands=[],priors=False,lowrad=None,hirad=None,lowtemp=None,hitemp=None,**kwargs):
#print('num_steps is',num_steps)
#print('nwalkers is',nwalkers)
#pdb.set_trace()
print('**********************************')
print('** PRELIMINARY PARAMETERS CHECK **')
print('**********************************')
interpolation_dates = np.genfromtxt(dates_file) # param.dates_file
if data_file is None:
raise Exception('you need to provide a data_file')
#exit()
if dates_file is None:
raise Exception('you need to provide a dates file')
#exit()
#if already_run_interp_errors_from_param is None:
# raise Exception('you need to provide a already_run_interp_errors_from_param array')
#exit()
if already_run_mcmc is None:
raise Exception('you need to provide a already_run_mcmc param, True or False')
#exit()
if already_run_matrix is None:
raise Exception('you need to procide a already_run_matrix param, True or False')
#exit()
if already_run_dynesty is None:
raise Exception('you need to procide a already_run_dynesty param, True or False')
num_epochs = len(interpolation_dates)
if priors ==True:
if None in (lowrad,hirad,lowtemp,hitemp):
raise Exception('ERROR: if priors is set to "True", you need to provide four lists of priors limit: lowrad, hirad, lowtemp and hitemp')
if (len(lowrad) != num_epochs) | (len(hirad) != num_epochs)| (len(hitemp) != num_epochs)| (len(lowtemp) != num_epochs):
raise Exception('the prior on the radius and the temperature should be 4 lists with the same number of elements as in the dates file. The number of dates is: {}'.format(
len(interpolation_dates)))
if (already_run_mcmc==True) & (already_run_fit != None):
if len(already_run_fit) != num_epochs:
raise Exception(
'already_run_fit should be either None or a boolean list with the same number of elements as in the dates file. The number of dates is: {}'.format(
len(interpolation_dates)))
if (already_run_matrix == True) & (already_run_fit != None):
if len(already_run_fit) != num_epochs:
raise Exception(
'already_run_fit should be either None or a boolean list with the same number of elements as in the dates file. The number of dates is: {}'.format(
len(interpolation_dates)))
if distance_pc is None:
distance_pc = distances_conversions.DM_to_pc(distance_modulus)
data_dico = \
read_data_from_file.read_data_into_numpy_array(data_file, header=True, delimiter=',', no_repeat_rows=True)[2]
#pdb.set_trace()
data_dicts=dict()
for i,j in enumerate(data_dico['filter']):
data_dicts[j]=dict()
data_dicts[j]['jd']=data_dico['jd'][(data_dico['filter']==j) & (data_dico['flux']>lower_limit_on_flux)]
#data_dicts[j]['mag'] = data_dico['mag'][(data_dico['filter']==j) & (data_dico['flux']>lower_limit_on_flux)]
data_dicts[j]['flux'] = data_dico['flux'][(data_dico['filter']==j) & (data_dico['flux']>lower_limit_on_flux)]
#data_dicts[j]['magerr'] = data_dico['magerr'][(data_dico['filter']==j) & (data_dico['flux']>lower_limit_on_flux)]
data_dicts[j]['fluxerr'] = data_dico['fluxerr'][(data_dico['filter']==j) & (data_dico['flux']>lower_limit_on_flux)]
#data_dicts[j]['absmag'] = data_dico['absmag'][(data_dico['filter']==j) & (data_dico['flux']>lower_limit_on_flux)]
#data_dicts[j]['absmagerr'] = data_dico['absmagerr'][(data_dico['filter']==j) & (data_dico['flux']>lower_limit_on_flux)]
#data_dicts[j]['filter'] = data_dico['filter'][(data_dico['filter']==j) & (data_dico['flux']>lower_limit_on_flux)]
#data_dicts[j]['instr'] = data_dico['instr'][(data_dico['filter']==j) & (data_dico['flux']>lower_limit_on_flux)]
print('the bands of your multiple-bands data are:',data_dicts.keys())
print('the bands to be excluded are:',excluded_bands)
########################################### Make the spectrum to fit for each epoch ############################################
print('**********************************')
print('******* INTERPOLATION STEP *******')
print('**********************************')
print('I am interpolating on dates', interpolation_dates)
print('If I subtract the explosion dates you provided, this comes to interpolating on t_exp + ', interpolation_dates - explosion_date)
condition=dict()
JD_basis_interpolation=dict()
#already_run_interp_errors=dict()
jd_flux_fluxerr=dict()
interp_and_errors_array=dict()
interp=dict()
#print(data_dicts.keys())
#pdb.set_trace()
#for k in [x for x in data_dicts.keys() if x not in excluded_bands]:
# already_run_interp_errors[k] = already_run_interp_errors_from_param[k]#params.already_run_interp_errors[k]
### Interpolate all data on the interpolation dates dates ####
#print('data_dicts.keys() are',data_dicts.keys())
#print('without the excluded bands:',[x for x in data_dicts.keys() if x not in excluded_bands])
#pdb.set_trace()
# if os.path.exists(output_file_interpolation) == False:
# os.mkdir(output_file_interpolation)
#[x for x in a if x not in [2, 3, 7]]
for k in [x for x in data_dicts.keys() if x not in excluded_bands]:
#if verbose==True:
#print('I am looking at the {0} band of the data'.format(k))
#if already_run_interp_errors[k]==True:
# print('******')
# print('Band {0}: You indicated that the interpolation was already done for this band, so I am not doing it again.'.format(k))
#else:
# print('******')
# print('Band {0}: interpolating now'.format(
# k))
#print('the days of {0} are {1}'.format(k,data_dicts[k]['jd']-explosion_date))
condition[k]=np.logical_and(interpolation_dates>=np.min(data_dicts[k]['jd']),interpolation_dates<=np.max(data_dicts[k]['jd']))
JD_basis_interpolation[k] = interpolation_dates[condition[k]]
#if verbose == True:
print('The interpolation dates relevant to this band are {1}'.format(k,JD_basis_interpolation[k]-explosion_date))
#pdb.set_trace()
#print('and interpolating on {0}'.format(interpolation_dates-explosion_date))
#print('len(JD_basis_interpolation[k]) is',len(JD_basis_interpolation[k]))
if len(JD_basis_interpolation[k])>0:
if (len(JD_basis_interpolation[k]) ==1) and (JD_basis_interpolation[k][0]==data_dicts[k]['jd'][0]):
#print('we are in the case where there is one data point only')
interp[k] = dict()
interp[k][str(round(JD_basis_interpolation[k][0]-explosion_date, 8))]=[data_dicts[k]['jd'][0],data_dicts[k]['flux'][0],data_dicts[k]['flux'][0],data_dicts[k]['flux'][0]-data_dicts[k]['fluxerr'][0],data_dicts[k]['flux'][0]+data_dicts[k]['fluxerr'][0]]
#print(interp[k][str(round(JD_basis_interpolation[k][0]-explosion_date, 8))])
#print(interp[k][str(round(JD_basis_interpolation[k][0], 8))])
#pdb.set_trace()
else:
a=np.array(list(zip(data_dicts[k]['jd'],data_dicts[k]['flux'],data_dicts[k]['fluxerr'])))
jd_flux_fluxerr[k]=a[a[:, 0].argsort()]
#output_path=output_file_interpolation+'/errors_interpolation_results_{0}'.format(k)
#if already_run_interp_errors[k]==False:
# if os.path.exists(output_path)==True:
# shutil.rmtree(output_path)
# os.mkdir(output_path)
#path=output_file_interpolation+'/errors_interpolation_results_{0}'.format(k)
#already_run=already_run_interp_errors[k]
#title='{0}'.format(k)
#band_name='{0}'.format(k)
interp_and_errors_array[k]=interpolate_errors.interpolate_errors_analytic(jd_flux_fluxerr[k],JD_basis_interpolation[k]
,show_plot=False)
#check=interpolate_errors.interpolate_errors(jd_flux_fluxerr[k],JD_basis_interpolation[k]
# ,output_path=path,already_run=already_run,show_plot=False
# ,title=title,verbose=verbose,band_name=band_name)#array with days_nuv, interp1d P48, interp P48 with another method, lower limit 1sigma, upper limit 1 sigma
#
#import ipdb
#ipdb.set_trace()
interp[k]=dict()
#print('interp_and_errors_array[k] is',interp_and_errors_array[k])
#print('np.shape(interp_and_errors_array[k]) is',np.shape(interp_and_errors_array[k]))
#print('k is',k)
for i, j in enumerate(JD_basis_interpolation[k]):
if interp_and_errors_array[k].ndim==1:
interp[k][str(round(j - explosion_date, 8))] = interp_and_errors_array[k][:]
else:
interp[k][str(round(j-explosion_date,8))]=interp_and_errors_array[k][i,:]
#print('interp_and_errors_array[k] is',interp_and_errors_array[k])
#print('JD_basis_interpolation[k] is',JD_basis_interpolation[k]-explosion_date)
#print(interp['UVW1'])
#pdb.set_trace()
Spectra=[]
if verbose == True:
print('I am creating the Spectra')
#print(interp.keys())
#pdb.set_trace()
for i,j in enumerate(interpolation_dates):
epoch=dict()
epoch['time']=round(interpolation_dates[i]-explosion_date,8)#jd_flux_fluxerr_UVW2[2,0]#
#print('epoch[time] is',str(epoch['time']))
for k in [x for x in data_dicts.keys() if x not in excluded_bands]:
if len(JD_basis_interpolation[k]) > 0:
#print(interp.keys())
if str(epoch['time']) in interp[k].keys():
epoch[k]=interp[k][str(epoch['time'])][1] #flux
epoch[k+'_err']=[interp[k][str(epoch['time'])][3],interp[k][str(epoch['time'])][4]] # lower and higher limit of 2 sigma area. the error is half of this
Spectra.append(epoch)
print('***************************************************')
print('******* IMPORTANT CHECK BEFORE YOU PROCEED ********')
print('To check that your interpolation is correct: go to the directory where you store the interpolation results. For each band, PhotoFit produces a plot called "Plot_w_interpolated_errors.png". Check, for all bands, that '
'the green and blue points are superimposed on this plot (or almost superimposed). If you do not see any blue, you are good :-) If this is not the case, try changing your dates file so that none of the dates exactely coincides with one of'
'your observation dates. This should solve the problem.')
print('***************************************************')
########################################### Filters definition ###########################################
# Filter_vector for all the filters
Filter_vector = np.empty([21, 2], dtype=object)
Filter_vector[0] = [str('Swift'), str('UVW1')]
Filter_vector[1] = [str('Swift'), str('UVW2')]
Filter_vector[2] = [str('Swift'), str('UVM2')]
Filter_vector[3] = [str('Swift'), str('u_swift')]
Filter_vector[4] = [str('Swift'), str('b_swift')]
Filter_vector[5] = [str('Swift'), str('v_swift')]
Filter_vector[6] = [str('johnson'), str('u_johnson')]
Filter_vector[7] = [str('johnson'), str('v_johnson')]
Filter_vector[8] = [str('johnson'), str('b_johnson')]
Filter_vector[9] = [str('ztf_p48'), str('r_p48')]
Filter_vector[10] = [str('ztf_p48'), str('g_p48')]
Filter_vector[11] = [str('ztf_p48'), str('i_p48')]
Filter_vector[12] = [str('SDSS'), str('g_sdss')]
Filter_vector[13] = [str('SDSS'), str('i_sdss')]
Filter_vector[14] = [str('SDSS'), str('z_sdss')]
Filter_vector[15] = [str('SDSS'), str('r_sdss')]
Filter_vector[16] = [str('SDSS'), str('u_sdss')]
Filter_vector[17] = [str('cousin'), str('i_cousin')]
Filter_vector[18] = [str('cousin'), str('r_cousin')]
Filter_vector[19] = [str('2MASS'), str('j_2mass')]
Filter_vector[20] = [str('2MASS'), str('h_2mass')]
lib = pyphot.get_library()
#print("Library contains: ", len(lib), " filters")
[P,wavelengths_filter]=get_filter.make_filter_object(Filter_vector,filters_directory=filters_directory)
if verbose==True:
print('wavelengths are',wavelengths_filter)
################################## plot the x points spectra with error bars ###########################################
print('**********************************')
print('******* PLOTTING THE SEDs ********')
print('**********************************')
if show_underlying_plots==True:
print('You have set the parameter "show_underlying_plot" to True, so I will show you the SEDs before we proceed')
else:
print('You have set the parameter "show_underlying_plot" to False, so I will not show you the SEDs and store them instead in {0}/day_%/SED_date_%.png'.format(output))
# TO DO: put in parameters file
color=dict()
color['UVW1']='blue'
color['UVW2']='black'
color['UVM2']='purple'
color['u_swift']='orange'
color['b_swift']='cyan'
color['v_swift']='magenta'
color['r_sdss']='red'
color['i_sdss']='black'
color['g_sdss']='green'
color['z_sdss'] = 'grey'
color['u_sdss'] = 'orange'
color['r_p48']='red'
color['g_p48']='green'
color['i_p48']='black'
color['u_johnson']='orange'
color['b_johnson']='cyan'
color['v_johnson']='magenta'
color['r_cousin']='red'
color['i_cousin']='black'
color['h_2mass']='darkcyan'
color['j_2mass']='sienna'
symbol=dict()
symbol['UVW1']='d'
symbol['UVW2']='d'
symbol['UVM2']='d'
symbol['u_swift']='d'
symbol['b_swift']='d'
symbol['v_swift']='d'
symbol['r_cousin']='v'
symbol['i_cousin']='v'
symbol['r_sdss']='*'
symbol['i_sdss']='*'
symbol['g_sdss']='*'
symbol['z_sdss'] = '*'
symbol['u_sdss'] = '*'
symbol['r_p48']='o'
symbol['g_p48']='o'
symbol['i_p48'] = 'o'
symbol['j_2mass']='x'
symbol['h_2mass']='x'
symbol['u_johnson']='s'
symbol['b_johnson']='s'
symbol['v_johnson']='s'
for i,j in enumerate(Spectra):#j is an epoch, epoch['UVW1']=flux, epoch['UVW1_err']=fluxerr
if verbose==True:
print('the keys of this epoch are',j.keys())
pylab.figure()
for k in [x for x in data_dicts.keys() if x not in excluded_bands]:
if k in j.keys():
if verbose==True:
print('the filter name {0} is therefore in epoch'.format(k))
print('epoch[{0}] is {1}'.format(k,j[k]))
pylab.plot(wavelengths_filter[k], j[k], symbol[k], color=color[k],label=k)
pylab.vlines(wavelengths_filter[k], j[k + '_err'][0], j[k + '_err'][1], color=color[k])
pylab.legend()
pylab.title('flux spectrum on JD={0}'.format(j['time']))
pylab.grid()
pylab.ylabel('flux $F\; [erg/s/cm^2/\AA]$', fontsize=20)
pylab.xlabel(r'wavelength [$\AA$]', fontsize=20)
pylab.tight_layout()
if os.path.exists(output + '/day_' + str(round(j['time'], 3))):
if verbose==True:
print(output + '/day_' + str(round(j['time'], 3)) + 'exists')
else:
os.mkdir(output + '/day_' + str(round(j['time'], 3)))
pylab.savefig(output + '/day_'+str(round(j['time'],3))+'/SED_date_'+str(round(j['time'],3))+'.png',
facecolor='w', edgecolor='w', orientation='portrait', papertype=None, format='png',
transparent=False,
bbox_inches=None, pad_inches=0.5)
if show_underlying_plots==True:
pylab.show()
#pdb.set_trace()
################################################# Fit black body using mcmc/linear fit ###############################
print('**********************************')
print('************ FIT STEP ************')
print('**********************************')
already_run_mcmc=already_run_mcmc#params.already_run_mcmc
if already_run_fit is None:
already_run_fit=[False]*len(Spectra)
else:
already_run_fit=already_run_fit
already_run_matrix=already_run_matrix#params.already_run_matrix
if mcmc==True:
fast=[False]*len(Spectra)
already_run=already_run_mcmc
elif dynesty==True:
already_run=already_run_dynesty
else:
already_run=already_run_matrix
if already_run==False:
Best=np.zeros((np.shape(Spectra)[0],8))
#print(Best)
#pdb.set_trace()
for i,j in enumerate(Spectra): #goes through all epochs
Spectrum = []
if 'UVW2' in j.keys():
Spectrum.append(np.array(['Swift', 'UVW2',j['UVW2'],max(j['UVW2_err'][1]-j['UVW2'],j['UVW2']-j['UVW2_err'][0])],dtype=object))#the error is half od the length upper_sigma-lower_sigma
if 'UVW1' in j.keys():
Spectrum.append(np.array(['Swift', 'UVW1',j['UVW1'],max(j['UVW1_err'][1]-j['UVW1'],j['UVW1']-j['UVW1_err'][0]) ],dtype=object))
if 'UVM2' in j.keys():
Spectrum.append(np.array(['Swift', 'UVM2',j['UVM2'],max(j['UVM2_err'][1]-j['UVM2'],j['UVM2']-j['UVM2_err'][0])],dtype=object))
if 'u_swift' in j.keys():
Spectrum.append(np.array(['Swift', 'u_swift',j['u_swift'],max(j['u_swift_err'][1]-j['u_swift'],j['u_swift']-j['u_swift_err'][0]) ],dtype=object))
if 'v_swift' in j.keys():
Spectrum.append(np.array(['Swift', 'v_swift',j['v_swift'],max(j['v_swift_err'][1]-j['v_swift'],j['v_swift']-j['v_swift_err'][0]) ],dtype=object))
if 'b_swift' in j.keys():
Spectrum.append(np.array(['Swift', 'b_swift',j['b_swift'],max(j['b_swift_err'][1]-j['b_swift'],j['b_swift']-j['b_swift_err'][0]) ],dtype=object))
if 'r_p48' in j.keys():
Spectrum.append(np.array(['ztf_p48', 'r_p48',j['r_p48'],max(j['r_p48_err'][1]-j['r_p48'],j['r_p48']-j['r_p48_err'][0])],dtype=object))
if 'g_p48' in j.keys():
Spectrum.append(np.array(['ztf_p48', 'g_p48',j['g_p48'],max(j['g_p48_err'][1]-j['g_p48'],j['g_p48']-j['g_p48_err'][0])],dtype=object))
if 'i_p48' in j.keys():
Spectrum.append(np.array(['ztf_p48', 'i_p48',j['i_p48'],max(j['i_p48_err'][1]-j['i_p48'],j['i_p48']-j['i_p48_err'][0])],dtype=object))
if 'r_sdss' in j.keys():
Spectrum.append(np.array(['sdss', 'r_sdss',j['r_sdss'],max(j['r_sdss_err'][1]-j['r_sdss'],j['r_sdss']-j['r_sdss_err'][0])],dtype=object))
if 'g_sdss' in j.keys():
Spectrum.append(np.array(['sdss', 'g_sdss',j['g_sdss'],max(j['g_sdss_err'][1]-j['g_sdss'],j['g_sdss']-j['g_sdss_err'][0])],dtype=object))
if 'i_sdss' in j.keys():
Spectrum.append(np.array(['sdss', 'i_sdss',j['i_sdss'],max(j['i_sdss_err'][1]-j['i_sdss'],j['i_sdss']-j['i_sdss_err'][0])],dtype=object))
if 'z_sdss' in j.keys():
Spectrum.append(np.array(['sdss', 'z_sdss',j['z_sdss'],max(j['z_sdss_err'][1]-j['z_sdss'],j['z_sdss']-j['z_sdss_err'][0])],dtype=object))
if 'u_sdss' in j.keys():
Spectrum.append(np.array(['sdss', 'u_sdss', j['u_sdss'],
max(j['u_sdss_err'][1] - j['u_sdss'], j['u_sdss'] - j['u_sdss_err'][0])],
dtype=object))
if 'u_johnson' in j.keys():
Spectrum.append(np.array(['johnson', 'u_johnson',j['u_johnson'],max(j['u_johnson_err'][1]-j['u_johnson'],j['u_johnson']-j['u_johnson_err'][0])],dtype=object))
if 'b_johnson' in j.keys():
Spectrum.append(np.array(['johnson', 'b_johnson', j['b_johnson'], max(j['b_johnson_err'][1]-j['b_johnson'],j['b_johnson']-j['b_johnson_err'][0])],dtype=object))
if 'v_johnson' in j.keys():
Spectrum.append(np.array(['johnson', 'v_johnson', j['v_johnson'], max(j['v_johnson_err'][1]-j['v_johnson'],j['v_johnson']-j['v_johnson_err'][0])],dtype=object))
if 'i_cousin' in j.keys():
Spectrum.append(np.array(
['cousin', 'i_cousin', j['i_cousin'], max(j['i_cousin_err'][1]-j['i_cousin'],j['i_cousin']-j['i_cousin_err'][0])],dtype=object))
if 'r_cousin' in j.keys():
Spectrum.append(np.array(
['cousin', 'r_cousin', j['r_cousin'], max(j['r_cousin_err'][1]-j['r_cousin'],j['r_cousin']-j['r_cousin_err'][0])],dtype=object))
if 'h_2mass' in j.keys():
Spectrum.append(np.array(['2MASS', 'h_2mass', j['h_2mass'], max(j['h_2mass_err'][1]-j['h_2mass'],j['h_2mass']-j['h_2mass_err'][0])],dtype=object))
if 'j_2mass' in j.keys():
Spectrum.append(np.array(['2MASS', 'j_2mass', j['j_2mass'], max(j['j_2mass_err'][1]-j['j_2mass'],j['j_2mass']-j['j_2mass_err'][0])],dtype=object))
Spectrum_right_format=np.array(Spectrum)
#print('prior_on_raidus',priors)
#pdb.set_trace()
if csm==False:
if (j['time']< 1):
if priors == False:
hirad=1e15
hitemp = 3e5
elif(j['time'] < 2):
if priors == False:
hirad = 2e15
hitemp = 5e4
else:
if priors == False:
hirad = 2e15
hitemp = 5e4
elif csm==True:
if (j['time']< 1):
if priors == False:
hirad=7e15
hitemp = 3e5
elif(j['time'] < 3):
if priors == False:
hirad =7e15
hitemp = 5e4
else:
if priors == False:
hirad = 8e15
hitemp = 5e4
#print('hitemp is',hitemp)
#pdb.set_trace()
num_iterations=num_iterations
#math.log10(3000), math.log10(hitemp)
if mcmc==True:
print('******* method chosen: MCMC *******')
if already_run_fit[i]==False:
#if fast[i]==False:
if priors is False:
[best_temp, best_radius, best_luminosity,best_coeff,chi_square,chi_square_dof]=fit_black_body_flux_filters_mcmc.fit_black_body_flux_filters_mcmc\
(Spectrum_right_format,triangle_plot_title=r'$JD-t_{ref}=$'+str(round(j['time'],2)),nwalkers=nwalkers,num_steps=num_steps,num_winners=20,
already_run_mcmc=already_run_mcmc,already_run_calc_all_chis=False,Temp_prior=np.array([3000,hitemp]),
Radius_prior=np.array([0.8e14,hirad]),initial_conditions=np.array([15000,1.5e14]),distance_pc=distance_pc,Ebv=EBV,ndof=None,show_plot=False,output_mcmc=output+'/day_'+str(round(j['time'],3)),show_mag_AB=True,z=redshift,
path_to_txt_file=None,fast=fast[i],dilution_factor=10,filters_directory=filters_directory)
else:
#print('hirad is',hirad)
#print('the prior on the radius is ',[0.8e14,hirad[i]])
[best_temp, best_radius, best_luminosity,best_coeff,chi_square,chi_square_dof]=fit_black_body_flux_filters_mcmc.fit_black_body_flux_filters_mcmc\
(Spectrum_right_format,triangle_plot_title=r'$JD-t_{ref}=$'+str(round(j['time'],2)),nwalkers=nwalkers,num_steps=num_steps,num_winners=20,
already_run_mcmc=already_run_mcmc,already_run_calc_all_chis=False,Temp_prior=np.array([lowtemp[i],hitemp[i]]),
Radius_prior=np.array([lowrad[i],hirad[i]]),initial_conditions=np.array([(lowtemp[i]+hitemp[i])/2,(lowrad[i]+hirad[i])/2]),distance_pc=distance_pc,Ebv=EBV,ndof=None,show_plot=False,output_mcmc=output+'/day_'+str(round(j['time'],3)),show_mag_AB=True,z=redshift,
path_to_txt_file=None,fast=fast[i],dilution_factor=10,filters_directory=filters_directory)
'''
else:
if hirad is None:
[best_temp, best_radius, best_luminosity, best_coeff] = fit_black_body_flux_filters_mcmc.fit_black_body_flux_filters_mcmc \
(Spectrum_right_format,
triangle_plot_title=r'$JD-t_{ref}=$' + str(round(j['time'] - explosion_date, 2)), nwalkers=nwalkers,
num_steps=num_steps, num_winners=20, already_run_mcmc=already_run_mcmc,
already_run_calc_all_chis=False, Temp_prior=np.array([7000, 35000]),
Radius_prior=np.array([1e12, 1e15]), initial_conditions=np.array([15000, 1.5e14]),
distance_pc=distance_pc,
Ebv=EBV, ndof=None, show_plot=False,
output_mcmc=output+'/day_' + str(round(j['time'] - explosion_date, 3)),
show_mag_AB=True, z=redshift, path_to_txt_file=None, fast=fast[i], dilution_factor=10)
else:
print('the prior on the radius is ', [0.8e14, hirad[i]])
[best_temp, best_radius, best_luminosity, best_coeff] = fit_black_body_flux_filters_mcmc.fit_black_body_flux_filters_mcmc \
(Spectrum_right_format,
triangle_plot_title=r'$JD-t_{ref}=$' + str(round(j['time'] - explosion_date, 2)), nwalkers=nwalkers,
num_steps=num_steps, num_winners=20, already_run_mcmc=already_run_mcmc,
already_run_calc_all_chis=False, Temp_prior=np.array([7000, 35000]),
Radius_prior=np.array([1e12, hirad[i]]), initial_conditions=np.array([15000, 1.5e14]),
distance_pc=distance_pc,
Ebv=EBV, ndof=None, show_plot=False,
output_mcmc=output+'/day_' + str(round(j['time'] - explosion_date, 3)),
show_mag_AB=True, z=redshift, path_to_txt_file=None, fast=fast[i], dilution_factor=10)
'''
else:
if fast[i]==False:
best_temp=np.genfromtxt(output+'/day_'+str(round(j['time'],3))+'/best_fit_results.txt')[0]
best_radius=np.genfromtxt(output+'/day_'+str(round(j['time'],3))+'/best_fit_results.txt')[1]
best_luminosity=np.genfromtxt(output+'/day_'+str(round(j['time'],3))+'/best_fit_results.txt')[2]
else:
best_temp=np.genfromtxt(output+'/day_'+str(round(j['time'],3))+'/best_fit_results_from_median.txt')[0]
best_radius=np.genfromtxt(output+'/day_'+str(round(j['time'],3))+'/best_fit_results_from_median.txt')[1]
best_luminosity=np.genfromtxt(output+'/day_'+str(round(j['time'],3))+'/best_fit_results_from_median.txt')[2] #print('I got here 0')
Best[i, 0] = j['time']
Best[i, 1] = best_temp
Best[i, 2] = np.genfromtxt(output+'/day_' + str(round(j['time'], 3)) + '/1sigma.txt',skip_header=1)[0, 0]
Best[i, 3] =np.genfromtxt(output+'/day_' + str(round(j['time'], 3)) + '/1sigma.txt',skip_header=1)[0, 1]
Best[i, 4] = best_radius
Best[i, 5] = np.genfromtxt(output+'/day_' + str(round(j['time'], 3)) + '/1sigma.txt',skip_header=1)[1, 0]
Best[i, 6] = np.genfromtxt(output+'/day_' + str(round(j['time'], 3)) + '/1sigma.txt',skip_header=1)[1, 1]
Best[i, 7] = best_luminosity
elif dynesty==True:
print('******* method chosen: Nested Sampling *******')
if already_run_fit[i]==False:
#if fast[i]==False:
if priors is False:
p=[np.array([5e3,hitemp]),np.array([5e13,hirad])]
else:
p=[np.array([lowtemp[i],hitemp[i]]),np.array([lowrad[i],hirad[i]])]
res_obj=fit_black_body_flux_filters_dynesty.fit_black_body_flux_filters_dynesty\
(Spectrum_right_format,triangle_plot_title=r'$JD-t_{ref}=$'+str(round(j['time'],2)),num_winners=20,
already_run_dynesty=already_run_dynesty,already_run_calc_all_chis=False,priors=p,
distance_pc=distance_pc,Ebv=EBV,ndof=None,show_plot=False,output_dynesty=output+'/day_'+str(round(j['time'],3)),show_mag_AB=True,z=redshift,
path_to_txt_file=None,dilution_factor=10,filters_directory=filters_directory,**kwargs)
[best_temp, best_radius, best_luminosity,best_coeff,chi_square,chi_square_dof]=res_obj
'''
else:
if hirad is None:
[best_temp, best_radius, best_luminosity, best_coeff] = fit_black_body_flux_filters_mcmc.fit_black_body_flux_filters_mcmc \
(Spectrum_right_format,
triangle_plot_title=r'$JD-t_{ref}=$' + str(round(j['time'] - explosion_date, 2)), nwalkers=nwalkers,
num_steps=num_steps, num_winners=20, already_run_mcmc=already_run_mcmc,
already_run_calc_all_chis=False, Temp_prior=np.array([7000, 35000]),
Radius_prior=np.array([1e12, 1e15]), initial_conditions=np.array([15000, 1.5e14]),
distance_pc=distance_pc,
Ebv=EBV, ndof=None, show_plot=False,
output_mcmc=output+'/day_' + str(round(j['time'] - explosion_date, 3)),
show_mag_AB=True, z=redshift, path_to_txt_file=None, fast=fast[i], dilution_factor=10)
else:
print('the prior on the radius is ', [0.8e14, hirad[i]])
[best_temp, best_radius, best_luminosity, best_coeff] = fit_black_body_flux_filters_mcmc.fit_black_body_flux_filters_mcmc \
(Spectrum_right_format,
triangle_plot_title=r'$JD-t_{ref}=$' + str(round(j['time'] - explosion_date, 2)), nwalkers=nwalkers,
num_steps=num_steps, num_winners=20, already_run_mcmc=already_run_mcmc,
already_run_calc_all_chis=False, Temp_prior=np.array([7000, 35000]),
Radius_prior=np.array([1e12, hirad[i]]), initial_conditions=np.array([15000, 1.5e14]),
distance_pc=distance_pc,
Ebv=EBV, ndof=None, show_plot=False,
output_mcmc=output+'/day_' + str(round(j['time'] - explosion_date, 3)),
show_mag_AB=True, z=redshift, path_to_txt_file=None, fast=fast[i], dilution_factor=10)
'''
else:
best_temp=np.genfromtxt(output+'/day_'+str(round(j['time'],3))+'/best_fit_results.txt')[0]
best_radius=np.genfromtxt(output+'/day_'+str(round(j['time'],3))+'/best_fit_results.txt')[1]
best_luminosity=np.genfromtxt(output+'/day_'+str(round(j['time'],3))+'/best_fit_results.txt')[2]
Best[i, 0] = j['time']
Best[i, 1] = best_temp
Best[i, 2] = np.genfromtxt(output+'/day_' + str(round(j['time'], 3)) + '/1sigma.txt',skip_header=1)[0, 0]
Best[i, 3] = np.genfromtxt(output+'/day_' + str(round(j['time'], 3)) + '/1sigma.txt',skip_header=1)[0, 1]
Best[i, 4] = best_radius
Best[i, 5] = np.genfromtxt(output+'/day_' + str(round(j['time'], 3)) + '/1sigma.txt',skip_header=1)[1, 0]
Best[i, 6] = np.genfromtxt(output+'/day_' + str(round(j['time'], 3)) + '/1sigma.txt',skip_header=1)[1, 1]
Best[i, 7] = best_luminosity
else:
print('******* method chosen: LINEAR FIT *******')
#print(Spectrum_right_format)
#pdb.set_trace()
#print('Spectrum',Spectrum)
#print('Spectrum right format',Spectrum_right_format)
if already_run_fit[i]==False:
if priors is False:
[Xi_array, best_temp, index_min, best_coeff, best_radius,best_luminosity]=fit_black_body_flux_filters.fit_black_body_flux_filters(
Spectrum_right_format,TempVec=np.logspace(math.log10(3000),math.log10(hitemp),num_iterations),num_temp_iterations=None,
distance=distance_pc,uncertainties=Spectrum_right_format[:,3],Ebv=EBV,z=redshift,output_file_path=output+'/day_'+str(round(j['time'],3))
,path_to_txt_file=output+'/day_'+str(round(j['time'],3))+'/best_fit_result.txt',filters_directory=filters_directory)
else:
[Xi_array, best_temp, index_min, best_coeff, best_radius,best_luminosity]=fit_black_body_flux_filters.fit_black_body_flux_filters(
Spectrum_right_format,TempVec=np.logspace(math.log10(lowtemp[i]),math.log10(hitemp[i]),num_iterations),num_temp_iterations=None,
distance=distance_pc,uncertainties=Spectrum_right_format[:,3],Ebv=EBV,z=redshift,output_file_path=output+'/day_'+str(round(j['time'],3))
,path_to_txt_file=output+'/day_'+str(round(j['time'],3))+'/best_fit_result.txt',filters_directory=filters_directory)
else:
best_temp=np.genfromtxt(output+'/day_'+str(round(j['time'],3))+'/best_fit_result.txt')[1]
best_radius=np.genfromtxt(output+'/day_'+str(round(j['time'],3))+'/best_fit_result.txt')[4]
best_luminosity=np.genfromtxt(output+'/day_'+str(round(j['time'],3))+'/best_fit_result.txt')[5]
Best[i,0]=j['time']
Best[i,1]=best_temp
Best[i,2]='0'#np.genfromtxt(output_file_linear+'/day_'+str(round(j['time']-explosion_date,3))+'/1sigma.txt',skip_header=1)[0,0]
Best[i,3]='0'#np.genfromtxt(output_file_linear+'/day_'+str(round(j['time']-explosion_date,3))+'/1sigma.txt',skip_header=1)[0,1]
Best[i,4]=best_radius
Best[i,5]='0'#np.genfromtxt(output_file_linear+'/day_'+str(round(j['time']-explosion_date,3))+'/1sigma.txt',skip_header=1)[1,0]
Best[i,6] ='0'#np.genfromtxt(output_file_linear+'/day_'+str(round(j['time']-explosion_date,3))+'/1sigma.txt',skip_header=1)[1,1]
Best[i,7]=best_luminosity
#pylab.show()
np.savetxt(output + '/Results.txt', Best,
header='JD, best T, lower sigma_T, upper sigma_T,best R, lower sigma_R, upper sigma_R, best L')
else:
print('******* You have ran the fit already *******')
Best = np.genfromtxt(output+'/Results.txt', skip_header=1)
if show_underlying_plots==True:
pylab.show()
else:
pylab.close('all')
return Best #JD, best T, lower sigma_T, upper sigma_T,best R, lower sigma_R, upper sigma_R, best L
def plot_T_and_R_in_time(Best,data_compare=None,compare=False,label_comparision=None,output=None):
print('**********************************')
print('***** PLOT CALCULATED T AND R ****')
print('**********************************')
#if data_compare is None:
# print('you need to provide a "data_compare" parameter')
# exit()
#Best_comare=np.genfromtxt('/Users/maayanesoumagnac/PostDoc/projects/2018fif/comparision_with_others/results_fit_sed_mat_PTF13dqy_test/Results.txt')
if compare==True:
if os.path.isfile(data_compare)==False:
print('I do not find any file at the location of the data to compare,',data_compare)
Best_compare = np.genfromtxt(data_compare)
##################################### Plot best T and best R with error bars, compare with other methods ###############
pylab.figure()
pylab.plot(Best[:, 0], Best[:, 1], 'ro', label='Best fit')
if (compare==True) & (label_comparision is not None):
pylab.plot(Best_compare[:, 0], Best_compare[:, 1], 'bo', label=label_comparision)
pylab.legend()
elif (compare==True) & (label_comparision is None):
pylab.plot(Best_compare[:, 0], Best_compare[:, 1], 'bo',label='comparision file')
pylab.legend()
for i, j in enumerate(Best):
pylab.vlines(Best[i, 0] , Best[i, 2], Best[i, 3], color='red')
pylab.xlabel(r'time $[days]$')
pylab.ylabel(r'$T_{BB}\; [K]$')
pylab.grid()
#pylab.legend()
#pylab.xlim(np.min(Best[i, 0]) - 1, np.max(Best[i, 0]) + 1)
#pylab.xlim(0, np.max(Best[i, 0]) + 1)
pylab.savefig(output + '/T_bb_evo.png',
facecolor='w', edgecolor='w', orientation='portrait', papertype=None, format='png', transparent=False,
bbox_inches=None, pad_inches=0.5)
#pylab.show()
pylab.figure()
pylab.plot(Best[:, 0], Best[:, 4], 'go', label='Best fit')
for i, j in enumerate(Best):
pylab.vlines(Best[i, 0] , Best[i, 5], Best[i, 6], color='green')
if (compare==True) & (label_comparision is not None):
pylab.plot(Best_compare[:, 0], Best_compare[:, 2], 'bo', label=label_comparision)
pylab.legend()
elif (compare==True) & (label_comparision is None):
pylab.plot(Best_compare[:, 0], Best_compare[:, 2], 'bo',label='comparision file')
pylab.legend()
pylab.xlabel(r'time $[days]$')
pylab.ylabel(r'$r_{BB}\; [cm]$')
pylab.grid()
#pylab.legend()
#pylab.xlim(np.min(Best[i, 0])-1,np.max(Best[i, 0])+1)
pylab.savefig(output+'/r_bb_evo.png',
facecolor='w', edgecolor='w', orientation='portrait', papertype=None, format='png', transparent=False,
bbox_inches=None, pad_inches=0.5)
pylab.show()
'''
pylab.figure()
pylab.plot(Best[:,0],Best[:,7],'ro',label='best fit from mat')
#for i,j in enumerate(Best):
# pylab.vlines(Best[i,0],Best[i,2],Best[i,3],color='red')
#pylab.grid()
pylab.xlabel(r'time $[days]$')
pylab.ylabel(r'$L_{BB}$')
pylab.grid()
ax=pylab.gca()
ax.set_xscale("log")
ax.set_yscale("log")
#pylab.legend()
#pylab.savefig(output+'/L_bb_evo_log.png',
# facecolor='w', edgecolor='w', orientation='portrait', papertype=None, format='png', transparent=False,
# bbox_inches=None, pad_inches=0.5)
pylab.show()
'''
def plot_L_in_time(Best,dates_file=None,data_file=None,lower_limit_on_flux=None,error_lum_ran=False,explosion_date=None,output=None,mcmc=False,output_file_interpolation=None,ylim=None,excluded_bands=[],verbose=False):
################ L #######
print('**********************************')
print('******* PLOT CALCULATED L ********')
print('**********************************')
sigma_Boltzmann = 5.670367e-8
data_dico = \
read_data_from_file.read_data_into_numpy_array(data_file, header=True, delimiter=',', no_repeat_rows=True)[2]
if mcmc==True:
data_dicts = dict()
for i, j in enumerate(data_dico['filter']):
data_dicts[j] = dict()
data_dicts[j]['jd'] = data_dico['jd'][
(data_dico['filter'] == j) & (data_dico['flux'] > lower_limit_on_flux)]
#data_dicts[j]['mag'] = data_dico['mag'][
# (data_dico['filter'] == j) & (data_dico['flux'] > lower_limit_on_flux)]
data_dicts[j]['flux'] = data_dico['flux'][
(data_dico['filter'] == j) & (data_dico['flux'] > lower_limit_on_flux)]
#data_dicts[j]['magerr'] = data_dico['magerr'][
# (data_dico['filter'] == j) & (data_dico['flux'] > lower_limit_on_flux)]
data_dicts[j]['fluxerr'] = data_dico['fluxerr'][
(data_dico['filter'] == j) & (data_dico['flux'] > lower_limit_on_flux)]
#data_dicts[j]['absmag'] = data_dico['absmag'][
# (data_dico['filter'] == j) & (data_dico['flux'] > lower_limit_on_flux)]
#data_dicts[j]['absmagerr'] = data_dico['absmagerr'][
# (data_dico['filter'] == j) & (data_dico['flux'] > lower_limit_on_flux)]
data_dicts[j]['filter'] = data_dico['filter'][
(data_dico['filter'] == j) & (data_dico['flux'] > lower_limit_on_flux)]
#data_dicts[j]['instr'] = data_dico['instr'][
# (data_dico['filter'] == j) & (data_dico['flux'] > lower_limit_on_flux)]
#print(data_dicts.keys())
########################################### Make the spectrum to fit for each epoch ############################################
##### definition of interpolation dates
if dates_file is None:
print('you need to provide a dates_file')
exit()
interpolation_dates = np.genfromtxt(dates_file)
condition = dict()
JD_basis_interpolation = dict()
already_run_interp_errors = dict()
jd_flux_fluxerr = dict()
interp_and_errors_array = dict()
interp = dict()
already_run_interp_errors['UVW1'] = True
already_run_interp_errors['UVW2'] = True
already_run_interp_errors['UVM2'] = True
already_run_interp_errors['u_swift'] = True
already_run_interp_errors['b_swift'] = True
already_run_interp_errors['v_swift'] = True
already_run_interp_errors['r_sdss'] = True
already_run_interp_errors['g_sdss'] = True
already_run_interp_errors['i_sdss'] = True
already_run_interp_errors['u_sdss'] = True
already_run_interp_errors['r_p48'] = True
already_run_interp_errors['g_p48'] = True
already_run_interp_errors['i_p48'] = True
already_run_interp_errors['z_sdss'] = True
### Interpolate all data on the interpolation dates dates ####
for k in [x for x in data_dicts.keys() if x not in excluded_bands]:
if verbose==True:
print('I am looking at the {0} band of the data'.format(k))
print('the days of {0} are {1}'.format(k, data_dicts[k]['jd'] - explosion_date))
#print(k)
#print(data_dicts[k])
condition[k] = np.logical_and(interpolation_dates >= np.min(data_dicts[k]['jd']),
interpolation_dates <= np.max(data_dicts[k]['jd']))
JD_basis_interpolation[k] = interpolation_dates[condition[k]]
if verbose == True:
print('JD basis interp. of {0} over the interpolation days are {1}'.format(k, JD_basis_interpolation[
k] - explosion_date))
print('and interpolating on {0}'.format(interpolation_dates - explosion_date))
if len(JD_basis_interpolation[k]) > 0:
a = np.array(list(zip(data_dicts[k]['jd'], data_dicts[k]['flux'], data_dicts[k]['fluxerr'])))
jd_flux_fluxerr[k] = a[a[:, 0].argsort()]
#output_path = output_file_interpolation + '/errors_interpolation_results_{0}'.format(k)
#if os.path.exists(output_path):
# if verbose==True:
# print(output_path + 'exists')
#else:
# os.mkdir(output_path)
#print('already_run_interp_errors', already_run_interp_errors)
if (len(JD_basis_interpolation[k]) == 1) and (JD_basis_interpolation[k][0] == data_dicts[k]['jd'][0]):
interp_and_errors_array[k] = [
data_dicts[k]['jd'][0], data_dicts[k]['flux'][0], data_dicts[k]['flux'][0],
data_dicts[k]['flux'][0] - data_dicts[k]['fluxerr'][0],
data_dicts[k]['flux'][0] + data_dicts[k]['fluxerr'][0]]
interp[k] = dict()
#print(JD_basis_interpolation[k])
interp[k][str(round(JD_basis_interpolation[k][0] - explosion_date, 8))] = interp_and_errors_array[k][:]
else:
#interp_and_errors_array[k] = interpolate_errors.interpolate_errors \
# (jd_flux_fluxerr[k], JD_basis_interpolation[k],
# output_path=output_file_interpolation + '/errors_interpolation_results_{0}'.format(k),
# already_run=already_run_interp_errors[k], show_plot=False,
# title='{0} on the interpolation dates'.format(
# k)) # array with days_nuv, interp1d P48, interp P48 with another method, lower limit 1sigma, upper limit 1 sigma
#path=output_file_interpolation+'/errors_interpolation_results_{0}'.format(k)
#already_run=already_run_interp_errors[k]
interp_and_errors_array[k]=interpolate_errors.interpolate_errors_analytic(jd_flux_fluxerr[k],JD_basis_interpolation[k]
,show_plot=False)
interp[k] = dict()
#print(interp_and_errors_array[k])
for i, j in enumerate(JD_basis_interpolation[k]):
#print('k is',k)
#print(JD_basis_interpolation[k])
#print(interp_and_errors_array[k])
if len(JD_basis_interpolation[k])>1:
interp[k][str(round(j - explosion_date, 8))] = interp_and_errors_array[k][i, :]
else:
interp[k][str(round(j - explosion_date, 8))] = interp_and_errors_array[k][:]
pylab.close('all')
Spectra = []
for i, j in enumerate(interpolation_dates):
if verbose == True:
print('********')
print('i is', i)
print('********')
epoch = dict()
epoch['time'] = round(interpolation_dates[i] - explosion_date, 8) # jd_flux_fluxerr_UVW2[2,0]#
# print('epoch[time] is',str(epoch['time']))
for k in [x for x in data_dicts.keys() if x not in excluded_bands]:
if len(JD_basis_interpolation[k]) > 0:
if str(epoch['time']) in interp[k].keys():
epoch[k] = interp[k][str(epoch['time'])][1] # flux
epoch[k + '_err'] = [interp[k][str(epoch['time'])][3], interp[k][str(epoch['time'])][4]] # fluxerr
Spectra.append(epoch)
path_to_errors=Path(output+'/results_errors_lumi')
if path_to_errors.is_dir() == False:
os.mkdir(output+'/results_errors_lumi')
####################### Calc errors on L ################
errors_luminosity_early=np.zeros((np.shape(Spectra)[0],3))
errors_lum_ran=error_lum_ran
if errors_lum_ran==False:
for i, j in enumerate(Spectra):
print('epoch #{0}'.format(i+1))
#print('file is output+/day_' + str(round(j['time'], 3)) + '/flatchain.txt')
output_txt_file_path=output+'/results_errors_lumi/day_' + str(round(j['time'], 3))
output_png_file_path=output_txt_file_path
my_path=Path(output_txt_file_path)
if my_path.is_dir()==False:
os.mkdir(output_txt_file_path)
temperatures_early=np.genfromtxt(output+'/day_' + str(round(j['time'], 3))+'/flatchain.txt')[:,0]
radii_early=np.genfromtxt(output+'/day_' + str(round(j['time'], 3))+'/flatchain.txt')[:,1]
luminosities_early=energy_conversions.convert_energy(4*math.pi*np.power(radii_early*1e-2,2)*sigma_Boltzmann*np.power(temperatures_early,4),'J','erg')
#histos de luminosities
histos=fitter_general.plot_1D_marginalized_distribution(luminosities_early, bests=None, output_pdf_file_path=output_png_file_path, output_txt_file_path=output_txt_file_path,
parameters_labels=None, number_bins=20000)
for i, j in enumerate(Spectra):
errors_luminosity_early[i,0]=round(j['time'],3)
errors_luminosity_early[i,1]=np.genfromtxt(output+'/results_errors_lumi/day_'+str(round(j['time'],3))+'/1sigma.txt',comments='#')[0]
errors_luminosity_early[i,2]=np.genfromtxt(output+'/results_errors_lumi/day_'+str(round(j['time'],3))+'/1sigma.txt',comments='#')[1]
results=np.genfromtxt(output+'/Results.txt')
#my_file = Path(results)
#if my_file.is_file():
results_w_L_file=output+'/Results_w_L.txt'
matrice_resultls=np.hstack((Best,errors_luminosity_early[:,1:3]))
np.savetxt(results_w_L_file,matrice_resultls, header='JD, best T, lower 1sigma limit on T, upper 1sigma limit on T,best R, lower 1sigma limit on R, upper 1sigma limit on R, best L,lower 1sigma limit on L, upper 1sigma limit on L ')
Lum=Best[:,7]
pylab.figure()
pylab.plot(Best[:,0],Lum,'bo',label='Photometry')
pylab.xlabel(r'time [days]',fontsize=25)
pylab.ylabel(r'$\rm{L_{BB}}$ [erg/s]',fontsize=25)
#pylab.legend(prop={'size': 12})
ax=pylab.gca()
#ax.set_yscale("log")
#pylab.grid()
pylab.xticks(fontsize=16)
pylab.yticks(fontsize=16)
for i,j in enumerate(Spectra):
pylab.vlines(j['time'],errors_luminosity_early[i,1],errors_luminosity_early[i,2],color='blue')
pylab.grid(True, which="both")
if ylim is not None:
pylab.ylim(ylim[0],ylim[1])
pylab.tight_layout()
pylab.savefig(output+'/L_bb_evo.png',
facecolor='w', edgecolor='w', orientation='portrait', papertype=None, format='png', transparent=False,
bbox_inches=None, pad_inches=0.5)
else:
print('Because you did not use mcmc, I am plotting L without errors. To use mcmc change the "mcmc" parameter in params.py and re-run calculate_T_and_R_in_time')
Lum = Best[:, 7]
pylab.figure()
pylab.plot(Best[:, 0], Lum, 'bo', label='Photometry')
pylab.xlabel(r'time [days]', fontsize=25)
pylab.ylabel(r'$\rm{L_{BB}}$ [erg/s]', fontsize=25)
pylab.legend(prop={'size': 12})
ax = pylab.gca()
# ax.set_yscale("log")
# pylab.grid()
pylab.xticks(fontsize=16)
pylab.yticks(fontsize=16)
pylab.grid(True, which="both")
pylab.tight_layout()
pylab.savefig(output + '/L_bb_evo.png',
facecolor='w', edgecolor='w', orientation='portrait', papertype=None, format='png',
transparent=False,
bbox_inches=None, pad_inches=0.5)
plt.show()
def plot_SEDs(Best,already_interpolated=False,data_file=None,lower_limit_on_flux=None,dates_file=None,already_run_interp_errors_from_params=None, number_of_plot=9,redshift=None,distance_modulus=None,explosion_date=None,output=None,
filters_directory=None,output_file_interpolation=None,EBV=None,ylim=None,excluded_bands=[],verbose=False):
distance_pc = distances_conversions.DM_to_pc(distance_modulus)
print('**********************************')
print('***** MOSAIC PLOT OF SEDs ********')
print('**********************************')
#if ylim is not None:
#print('ylim is not none!')
#print('ylim is', ylim)
#pdb.set_trace()
if dates_file is None:
print('you need to provide a dates file')
exit()
if data_file is None:
print('you need to provide a data file')
exit()
#if already_run_interp_errors_from_params is None:
# print('you need to provide a already_run_interp_errors_from_params array')
# exit()
data_dico = \
read_data_from_file.read_data_into_numpy_array(data_file, header=True, delimiter=',', no_repeat_rows=True)[2]
color = dict()
color['UVW1'] = 'blue'
color['UVW2'] = 'black'
color['UVM2'] = 'purple'
color['u_swift'] = 'orange'
color['b_swift'] = 'cyan'
color['v_swift'] = 'magenta'
color['r_sdss'] = 'red'
color['i_sdss'] = 'black'
color['g_sdss'] = 'green'
color['z_sdss'] = 'grey'
color['u_sdss'] = 'orange'
color['r_p48'] = 'red'
color['g_p48'] = 'green'
color['i_p48'] = 'black'
color['u_johnson'] = 'orange'
color['b_johnson'] = 'cyan'
color['v_johnson'] = 'magenta'
color['r_cousin'] = 'red'
color['i_cousin'] = 'black'
color['h_2mass'] = 'darkcyan'
color['j_2mass'] = 'sienna'
symbol = dict()
symbol['UVW1'] = 'd'
symbol['UVW2'] = 'd'
symbol['UVM2'] = 'd'
symbol['u_swift'] = 'd'
symbol['b_swift'] = 'd'
symbol['v_swift'] = 'd'
symbol['r_cousin'] = 'v'
symbol['i_cousin'] = 'v'
symbol['r_sdss'] = '*'
symbol['i_sdss'] = '*'
symbol['g_sdss'] = '*'
symbol['z_sdss'] = '*'
symbol['u_sdss'] = '*'
symbol['r_p48'] = 'o'
symbol['g_p48'] = 'o'
symbol['i_p48'] = 'o'
symbol['j_2mass'] = 'x'
symbol['h_2mass'] = 'x'
symbol['u_johnson'] = 's'
symbol['b_johnson'] = 's'
symbol['v_johnson'] = 's'
name_bands = dict()
name_bands['UVW1'] = 'UW1'
name_bands['UVW2'] = 'UW2'
name_bands['UVM2'] = 'UM2'
name_bands['u_swift'] = 'u (UVOT)'
name_bands['b_swift'] = 'B (UVOT)'
name_bands['v_swift'] = 'V (UVOT)'
name_bands['r_cousin'] = 'R'
name_bands['i_cousin'] = 'I'
name_bands['r_sdss'] = "r'"
name_bands['i_sdss'] = "i'"
name_bands['g_sdss'] = "g'"
name_bands['z_sdss'] = "z'"
name_bands['u_sdss'] = "u'"
name_bands['r_p48'] = 'r (P48)'
name_bands['g_p48'] = 'g (P48)'
name_bands['i_p48'] = 'i (P48)'
name_bands['j_2mass'] = 'J'
name_bands['h_2mass'] = 'H'
name_bands['u_johnson'] = 'U'
name_bands['b_johnson'] = 'B'
name_bands['v_johnson'] = 'V'
order_bands=dict()
order_bands['UVW1'] = 3
order_bands['UVW2'] = 1
order_bands['UVM2'] = 2
order_bands['u_swift'] = 4
order_bands['b_swift'] = 5
order_bands['v_swift'] = 8
order_bands['r_cousin'] = 11
order_bands['i_cousin'] = 14
order_bands['r_sdss'] = 9
order_bands['i_sdss'] = 12
order_bands['g_sdss'] = 6
order_bands['z_sdss'] = 15
order_bands['u_sdss'] = 4.5
order_bands['r_p48'] = 10
order_bands['g_p48'] = 7
order_bands['i_p48'] = 13
order_bands['j_2mass'] = 15
order_bands['h_2mass'] = 16
order_bands['u_johnson'] = 4.7
order_bands['b_johnson'] = 5.5
order_bands['v_johnson'] = 8.5
data_dicts = dict()
for i, j in enumerate(data_dico['filter']):
data_dicts[j] = dict()
data_dicts[j]['jd'] = data_dico['jd'][
(data_dico['filter'] == j) & (data_dico['flux'] > lower_limit_on_flux)]
#data_dicts[j]['mag'] = data_dico['mag'][
# (data_dico['filter'] == j) & (data_dico['flux'] > lower_limit_on_flux)]
data_dicts[j]['flux'] = data_dico['flux'][
(data_dico['filter'] == j) & (data_dico['flux'] > lower_limit_on_flux)]
#data_dicts[j]['magerr'] = data_dico['magerr'][
# (data_dico['filter'] == j) & (data_dico['flux'] > lower_limit_on_flux)]
data_dicts[j]['fluxerr'] = data_dico['fluxerr'][
(data_dico['filter'] == j) & (data_dico['flux'] > lower_limit_on_flux)]
#data_dicts[j]['absmag'] = data_dico['absmag'][
# (data_dico['filter'] == j) & (data_dico['flux'] > lower_limit_on_flux)]
#data_dicts[j]['absmagerr'] = data_dico['absmagerr'][
# (data_dico['filter'] == j) & (data_dico['flux'] > lower_limit_on_flux)]
#data_dicts[j]['filter'] = data_dico['filter'][
# (data_dico['filter'] == j) & (data_dico['flux'] > lower_limit_on_flux)]
#data_dicts[j]['instr'] = data_dico['instr'][
# (data_dico['filter'] == j) & (data_dico['flux'] > lower_limit_on_flux)]
if verbose==True:
print(data_dicts.keys())
########################################### Make the spectrum to fit for each epoch ############################################
##### definition of interpolation dates
interpolation_dates = np.genfromtxt(dates_file)
condition = dict()
JD_basis_interpolation = dict()
already_run_interp_errors = dict()
jd_flux_fluxerr = dict()
interp_and_errors_array = dict()
interp = dict()
#for k in [x for x in data_dicts.keys() if x not in excluded_bands]:
# already_run_interp_errors[k] = already_run_interp_errors_from_params[k]
### Interpolate all data on the interpolation dates dates ####
for k in [x for x in data_dicts.keys() if x not in excluded_bands]:
#print('I am looking at the {0} band of the data'.format(k))
#print('the days of {0} are {1}'.format(k, data_dicts[k]['jd'] - explosion_date))
condition[k] = np.logical_and(interpolation_dates >= np.min(data_dicts[k]['jd']),
interpolation_dates <= np.max(data_dicts[k]['jd']))
JD_basis_interpolation[k] = interpolation_dates[condition[k]]
#print('JD basis interp. of {0} over the interpolation days are {1}'.format(k, JD_basis_interpolation[
# k] - explosion_date))
#print('and interpolating on {0}'.format(interpolation_dates - explosion_date))
if already_interpolated==False:
if len(JD_basis_interpolation[k]) > 0:
a = np.array(list(zip(data_dicts[k]['jd'], data_dicts[k]['flux'], data_dicts[k]['fluxerr'])))
jd_flux_fluxerr[k] = a[a[:, 0].argsort()]
#output_path = output_file_interpolation + '/errors_interpolation_results_{0}'.format(k)
#if os.path.exists==False:
# os.mkdir(output_path)
#interp_and_errors_array[k] = interpolate_errors.interpolate_errors \
# (jd_flux_fluxerr[k], JD_basis_interpolation[k],
# output_path=output_file_interpolation + '/errors_interpolation_results_{0}'.format(k),
# already_run=already_run_interp_errors[k], show_plot=False,
# title='{0} on the interpolation dates'.format(
# k)) # array with days_nuv, interp1d P48, interp P48 with another method, lower limit 1sigma, upper limit 1 sigma
#path=output_file_interpolation+'/errors_interpolation_results_{0}'.format(k)
#already_run=already_run_interp_errors[k]
interp_and_errors_array[k]=interpolate_errors.interpolate_errors_analytic(jd_flux_fluxerr[k],JD_basis_interpolation[k]
,show_plot=False)
interp[k] = dict()
for i, j in enumerate(JD_basis_interpolation[k]):
interp[k][str(round(j - explosion_date, 8))] = interp_and_errors_array[k][i, :]
else:
if len(JD_basis_interpolation[k]) > 0:
a = np.array(list(zip(data_dicts[k]['jd'], data_dicts[k]['flux'], data_dicts[k]['fluxerr'])))
jd_flux_fluxerr[k] = a[a[:, 0].argsort()]
#output_path = output_file_interpolation + '/errors_interpolation_results_{0}'.format(k)
#if os.path.exists(output_path):
# if verbose == True:
# print(output_path + 'exists')
#else:
# os.mkdir(output_path)
# print('already_run_interp_errors', already_run_interp_errors)
if (len(JD_basis_interpolation[k]) == 1) and (JD_basis_interpolation[k][0] == data_dicts[k]['jd'][0]):
interp_and_errors_array[k] = [
data_dicts[k]['jd'][0], data_dicts[k]['flux'][0], data_dicts[k]['flux'][0],
data_dicts[k]['flux'][0] - data_dicts[k]['fluxerr'][0],
data_dicts[k]['flux'][0] + data_dicts[k]['fluxerr'][0]]
interp[k] = dict()
# print(JD_basis_interpolation[k])
interp[k][str(round(JD_basis_interpolation[k][0] - explosion_date, 8))] = interp_and_errors_array[
k][:]
else:
#interp_and_errors_array[k] = interpolate_errors.interpolate_errors \
# (jd_flux_fluxerr[k], JD_basis_interpolation[k],
# output_path=output_file_interpolation + '/errors_interpolation_results_{0}'.format(k),
# already_run=already_run_interp_errors[k], show_plot=False,
# title='{0} on the interpolation dates'.format(
# k)) # array with days_nuv, interp1d P48, interp P48 with another method, lower limit 1sigma, upper limit 1 sigma
#path=output_file_interpolation+'/errors_interpolation_results_{0}'.format(k)
#already_run=already_run_interp_errors[k]
interp_and_errors_array[k]=interpolate_errors.interpolate_errors_analytic(jd_flux_fluxerr[k],JD_basis_interpolation[k]
,show_plot=False)
interp[k] = dict()
# print(interp_and_errors_array[k])
for i, j in enumerate(JD_basis_interpolation[k]):
# print('k is',k)
# print(JD_basis_interpolation[k])
# print(interp_and_errors_array[k])
if len(JD_basis_interpolation[k]) > 1:
interp[k][str(round(j - explosion_date, 8))] = interp_and_errors_array[k][i, :]
else:
interp[k][str(round(j - explosion_date, 8))] = interp_and_errors_array[k][:]
pylab.close('all')
'''
if len(JD_basis_interpolation[k]) > 0:
if (len(JD_basis_interpolation[k]) == 1) and (JD_basis_interpolation[k][0] == data_dicts[k]['jd'][0]):
# print('we are in the case where there is one data point only')
if JD_basis_interpolation[k][0] == data_dicts[k]['jd'][0]:
print('Yeah')
interp[k] = dict()
interp[k][str(round(JD_basis_interpolation[k][0] - explosion_date, 8))] = [
data_dicts[k]['jd'][0], data_dicts[k]['flux'][0], data_dicts[k]['flux'][0],
data_dicts[k]['flux'][0] - data_dicts[k]['fluxerr'][0],
data_dicts[k]['flux'][0] + data_dicts[k]['fluxerr'][0]]
else:
a = np.array(list(zip(data_dicts[k]['jd'], data_dicts[k]['flux'], data_dicts[k]['fluxerr'])))
jd_flux_fluxerr[k] = a[a[:, 0].argsort()]
output_path = output_file_interpolation + '/errors_interpolation_results_{0}'.format(k)
if os.path.exists == False:
os.mkdir(output_path)
interp_and_errors_array[k] = interpolate_errors.interpolate_errors \
(jd_flux_fluxerr[k], JD_basis_interpolation[k],
output_path=output_file_interpolation + '/errors_interpolation_results_{0}'.format(k),
already_run=already_interpolated, show_plot=False,
title='{0} on the interpolation dates'.format(k)) # array with days_nuv, interp1d P48, interp P48 with another method, lower limit 1sigma, upper limit 1 sigma
interp[k] = dict()
for i, j in enumerate(JD_basis_interpolation[k]):
if interp_and_errors_array[k].ndim == 1:
interp[k][str(round(j - explosion_date, 8))] = interp_and_errors_array[k][:]
else:
interp[k][str(round(j - explosion_date, 8))] = interp_and_errors_array[k][i, :]
pylab.close('all')
'''
#interp[k][str(round(j - explosion_date, 8))] = interp_and_errors_array[k][i, :]
Spectra = []
for i, j in enumerate(interpolation_dates):
#print('********')
#print('i is', i)
#print('********')
epoch = dict()
epoch['time'] = round(interpolation_dates[i] - explosion_date, 8) # jd_flux_fluxerr_UVW2[2,0]#
# print('epoch[time] is',str(epoch['time']))
for k in [x for x in data_dicts.keys() if x not in excluded_bands]:
if len(JD_basis_interpolation[k]) > 0:
#print(interp.keys())
if str(epoch['time']) in interp[k].keys():
epoch[k] = interp[k][str(epoch['time'])][1] # flux
epoch[k + '_err'] = [interp[k][str(epoch['time'])][3], interp[k][str(epoch['time'])][4]] # fluxerr
Spectra.append(epoch)
########################################### Filters definition ###########################################
# Filter_vector for all the filters
Filter_vector = np.empty([21, 2], dtype=object)
Filter_vector[0] = [str('Swift'), str('UVW1')]
Filter_vector[1] = [str('Swift'), str('UVW2')]
Filter_vector[2] = [str('Swift'), str('UVM2')]
Filter_vector[3] = [str('Swift'), str('u_swift')]
Filter_vector[4] = [str('Swift'), str('b_swift')]
Filter_vector[5] = [str('Swift'), str('v_swift')]
Filter_vector[6] = [str('johnson'), str('u_johnson')]
Filter_vector[7] = [str('johnson'), str('v_johnson')]
Filter_vector[8] = [str('johnson'), str('b_johnson')]
Filter_vector[9] = [str('ztf_p48'), str('r_p48')]
Filter_vector[10] = [str('ztf_p48'), str('g_p48')]
Filter_vector[11] = [str('ztf_p48'), str('i_p48')]
Filter_vector[12] = [str('SDSS'), str('g_sdss')]
Filter_vector[13] = [str('SDSS'), str('i_sdss')]
Filter_vector[14] = [str('SDSS'), str('z_sdss')]
Filter_vector[15] = [str('SDSS'), str('r_sdss')]
Filter_vector[16] = [str('SDSS'), str('u_sdss')]
Filter_vector[17] = [str('cousin'), str('i_cousin')]
Filter_vector[18] = [str('cousin'), str('r_cousin')]
Filter_vector[19] = [str('2MASS'), str('j_2mass')]
Filter_vector[20] = [str('2MASS'), str('h_2mass')]
lib = pyphot.get_library()
#print("Library contains: ", len(lib), " filters")
[P,wavelengths_filter]=get_filter.make_filter_object(Filter_vector,filters_directory=filters_directory)
#print('wavelengths are',wavelengths_filter)
#n=len([name for name in os.listdir(output)])
#print('output is',output)
if number_of_plot==9:
number=0
number=len(open(dates_file).readlines())
#for name in os.listdir(output):
# #print('os.path.splitext(name)[1] is ',os.path.splitext(name)[1])
# if os.path.splitext(name)[1] not in ['.png','.txt']:
# if name[0]=='d':#directories starting with "day"
# #print('it is neither .png or .txt')
# number=number+1
#print(name)
#else:
#print('it is png or txt')
print('there are {0} epochs to plot'.format(number))
indexes=range(number)
#for i in indexes:
# print(i)
#print(indexes)
if number>=9:
a = number // 9
print('I will take every {0} file from this directory'.format(a))
indexes = range(number)[0::a]
fig, axes2d = plt.subplots(nrows=3, ncols=3,
sharex=True, sharey=True,
figsize=(10, 10))
Spectra2D = np.empty((3, 3), dtype=object)
for i,j in enumerate( Spectra2D[0:3, 0]):
Spectra2D[i, 0] = Spectra[indexes[i]]
for i, j in enumerate(Spectra2D[0:3, 1]):
Spectra2D[i, 1] = Spectra[indexes[i+3]]
for i, j in enumerate(Spectra2D[0:3, 2]):
Spectra2D[i, 2] = Spectra[indexes[i+6]]
Result_T2D = np.empty((3, 3), dtype=object)
#for i,j in enumerate(Spectra2)
Result_T2D[0:3, 0] = Best[indexes[0:3], 1]
Result_T2D[0:3, 1] = Best[indexes[3:6], 1]
Result_T2D[0:3, 2] = Best[indexes[6:9], 1]
Result_R2D = np.empty((3, 3), dtype=object)
Result_R2D[0:3, 0] = Best[indexes[0:3], 4]
Result_R2D[0:3, 1] = Best[indexes[3:6], 4]
Result_R2D[0:3, 2] = Best[indexes[6:9], 4]
bands_in_legend=[]
order_in_legend=[]
line=np.empty((3,3))
#pylab.show()
'''
g[:, 1] = calc_black_body_flux_filters.calc_black_body_flux_filters(self.T, np.arange(1e-7, 3e-6, 1e-9),
Filter_vector=None, P_vector=P_vector,
Radius=self.r, distance_pc=distance_pc,
output_plot=False,
show_plots=False, output_txt=False,
lib=lib, z=z, Ebv=Ebv, R_ext=R_ext)[:,
3]
'''
for i, row in enumerate(Spectra2D):
for k, j in enumerate(row):
if verbose==True:
print('i is',i)
print('k is',k)
print('Result_T2D[i, k] is',Result_T2D[i, k])
print('Result_R2D[i, k] is',Result_R2D[i, k])
#pdb.set_trace()
# print(i)
#print(j['time'])
#print(j.keys())
best_fit_full = black_body_flux_density.black_body_flux_density_fast(Result_T2D[i, k],
np.arange(1e-7, 3e-6, 1e-9),
'P',
distance_pc=distance_pc,
Radius=distances_conversions.cm_to_solar_radius(
Result_R2D[i, k]),
redshift=redshift, Ebv=EBV)
axes2d[k, i].plot(best_fit_full[:, 0] * 1e10, best_fit_full[:, 1], 'k-')
#axes2d[k, i].plot(np.arange(1e-7, 3e-6, 1e-9) * 1e10,
# black_body_flux_density.black_body_flux_density(Result_T2D[i, k], np.arange(1e-7, 3e-6, 1e-9),
# 'P',
# distance_pc=distance_pc,
# Radius=distances_conversions.cm_to_solar_radius(
# Result_R2D[i, k]), redshift=redshift, Ebv=EBV)[
# 2][:, 1], 'k-')
if 'UVW1' in j.keys():
axes2d[k, i].plot([wavelengths_filter['UVW1']], [j['UVW1']], color=color['UVW1'], marker=symbol['UVW1'],label='UW1')
axes2d[k, i].vlines(wavelengths_filter['UVW1'], j['UVW1_err'][0], j['UVW1_err'][1])
if 'UVW1' not in bands_in_legend:
bands_in_legend.append('UVW1')
order_in_legend.append('UVW1')
# axes2d[k,i].errorbar([wavelengths_filter['UVW1']], [j['UVW1']],yerr=[j['UVW1_err']], color='purple',fmt='o', label='UVW1')
if 'UVW2' in j.keys():
axes2d[k, i].plot([wavelengths_filter['UVW2']], [j['UVW2']], color=color['UVW2'], marker=symbol['UVW2'],label='UW2') # , label='UVW2')
axes2d[k, i].vlines(wavelengths_filter['UVW2'], j['UVW2_err'][0], j['UVW2_err'][1])
if 'UVW2' not in bands_in_legend:
bands_in_legend.append('UVW2')
order_in_legend.append('UVW2')
# axes2d[k,i].errorbar([wavelengths_filter['UVW2']], [j['UVW2']],yerr=[j['UVW2_err']], color='k',fmt='o', label='UVW2')
if 'UVM2' in j.keys():
axes2d[k, i].plot([wavelengths_filter['UVM2']], [j['UVM2']], color=color['UVM2'], marker=symbol['UVM2'],label='UM2') # , label='UVM2')
axes2d[k, i].vlines(wavelengths_filter['UVM2'], j['UVM2_err'][0], j['UVM2_err'][1])
if 'UVM2' not in bands_in_legend:
bands_in_legend.append('UVM2')
order_in_legend.append('UVM2')
if 'r_p48' in j.keys():
axes2d[k, i].plot([wavelengths_filter['r_p48']], [j['r_p48']], color=color['r_p48'],marker=symbol['r_p48'],label='P48 r') # ,label='P48 r')
axes2d[k, i].vlines(wavelengths_filter['r_p48'], j['r_p48_err'][0], j['r_p48_err'][1])
if 'r_p48' not in bands_in_legend:
bands_in_legend.append('r_p48')
order_in_legend.append('r_p48')
if 'g_p48' in j.keys():
axes2d[k, i].plot([wavelengths_filter['g_p48']], [j['g_p48']], color=color['g_p48'],marker=symbol['g_p48'],label='P48 g') # ,label='P48 g')
axes2d[k, i].vlines(wavelengths_filter['g_p48'], j['g_p48_err'][0], j['g_p48_err'][1])
if 'g_p48' not in bands_in_legend:
bands_in_legend.append('g_p48')
order_in_legend.append('g_p48')
if 'g_sdss' in j.keys():
axes2d[k, i].plot([wavelengths_filter['g_sdss']], [j['g_sdss']], color=color['g_sdss'],marker=symbol['g_sdss'],label='P60 g') # ,label='P60 g')
axes2d[k, i].vlines(wavelengths_filter['g_sdss'], j['g_sdss_err'][0], j['g_sdss_err'][1])
if 'g_sdss' not in bands_in_legend:
bands_in_legend.append('g_sdss')
order_in_legend.append('g_sdss')
if 'i_sdss' in j.keys():
axes2d[k, i].plot([wavelengths_filter['i_sdss']], [j['i_sdss']], color=color['i_sdss'],marker=symbol['i_sdss'],label='P60 i') # ,label='P60 i')
axes2d[k, i].vlines(wavelengths_filter['i_sdss'], j['i_sdss_err'][0], j['i_sdss_err'][1])
if 'i_sdss' not in bands_in_legend:
bands_in_legend.append('i_sdss')
order_in_legend.append('i_sdss')
if 'r_sdss' in j.keys():
axes2d[k, i].plot([wavelengths_filter['r_sdss']], [j['r_sdss']], color=color['r_sdss'],marker=symbol['r_sdss'],label='P60 r') # ,label='P60 r')
axes2d[k, i].vlines(wavelengths_filter['r_sdss'], j['r_sdss_err'][0], j['r_sdss_err'][1])
if 'r_sdss' not in bands_in_legend:
bands_in_legend.append('r_sdss')
order_in_legend.append('r_sdss')
if 'z_sdss' in j.keys():
axes2d[k, i].plot([wavelengths_filter['z_sdss']], [j['z_sdss']], color=color['z_sdss'],
marker=symbol['z_sdss'], label='P60 z') # ,label='P60 r')
axes2d[k, i].vlines(wavelengths_filter['z_sdss'], j['z_sdss_err'][0], j['z_sdss_err'][1])
if 'z_sdss' not in bands_in_legend:
bands_in_legend.append('z_sdss')
order_in_legend.append('z_sdss')
if 'u_sdss' in j.keys():
axes2d[k, i].plot([wavelengths_filter['u_sdss']], [j['u_sdss']], color=color['u_sdss'],
marker=symbol['u_sdss'], label='P60 u') # ,label='P60 r')
axes2d[k, i].vlines(wavelengths_filter['u_sdss'], j['u_sdss_err'][0], j['u_sdss_err'][1])
if 'u_sdss' not in bands_in_legend:
bands_in_legend.append('u_sdss')
order_in_legend.append('u_sdss')
if 'u_swift' in j.keys():
axes2d[k, i].plot([wavelengths_filter['u_swift']], [j['u_swift']], color=color['u_swift'],marker=symbol['u_swift'],label='u') # ,label='u')
axes2d[k, i].vlines(wavelengths_filter['u_swift'], j['u_swift_err'][0], j['u_swift_err'][1])
if 'u_swift' not in bands_in_legend:
bands_in_legend.append('u_swift')
order_in_legend.append('u_swift')
if 'v_swift' in j.keys():
axes2d[k, i].plot([wavelengths_filter['v_swift']], [j['v_swift']], color=color['v_swift'],marker=symbol['v_swift'],label='V') # ,label='v_swift')
axes2d[k, i].vlines(wavelengths_filter['v_swift'], j['v_swift_err'][0], j['v_swift_err'][1])
if 'v_swift' not in bands_in_legend:
bands_in_legend.append('v_swift')
order_in_legend.append('v_swift')
if 'b_swift' in j.keys():
axes2d[k, i].plot([wavelengths_filter['b_swift']], [j['b_swift']], color=color['b_swift'],marker=symbol['b_swift'],label='B') # ,label='b_swift')
axes2d[k, i].vlines(wavelengths_filter['b_swift'], j['b_swift_err'][0], j['b_swift_err'][1])
if 'b_swift' not in bands_in_legend:
bands_in_legend.append('b_swift')
order_in_legend.append('b_swift')
if 'b_johnson' in j.keys():
axes2d[k, i].plot([wavelengths_filter['b_johnson']], [j['b_johnson']],color=color['b_johnson'],marker=symbol['b_johnson'],label='B') # ,label='b_swift')
axes2d[k, i].vlines(wavelengths_filter['b_johnson'], j['b_johnson_err'][0], j['b_johnson_err'][1])
if 'b_johnson' not in bands_in_legend:
bands_in_legend.append('b_johnson')
order_in_legend.append('b_johnson')
if 'v_johnson' in j.keys():
axes2d[k, i].plot([wavelengths_filter['v_johnson']], [j['v_johnson']],color=color['v_johnson'],marker=symbol['v_johnson'],label='V') # ,label='b_swift')
axes2d[k, i].vlines(wavelengths_filter['v_johnson'], j['v_johnson_err'][0], j['v_johnson_err'][1])
if 'v_johnson' not in bands_in_legend:
bands_in_legend.append('v_johnson')
order_in_legend.append('v_johnson')
if 'u_johnson' in j.keys():
axes2d[k, i].plot([wavelengths_filter['u_johnson']], [j['u_johnson']],color=color['u_johnson'],marker=symbol['u_johnson'],label='U') # ,label='b_swift')
axes2d[k, i].vlines(wavelengths_filter['u_johnson'], j['u_johnson_err'][0], j['u_johnson_err'][1])
if 'u_johnson' not in bands_in_legend:
bands_in_legend.append('u_johnson')
order_in_legend.append('u_johnson')
if 'i_cousin' in j.keys():
axes2d[k, i].plot([wavelengths_filter['i_cousin']], [j['i_cousin']], color=color['i_cousin'],
marker=symbol['i_cousin'], label='P60 r') # ,label='P60 r')
axes2d[k, i].vlines(wavelengths_filter['i_cousin'], j['i_cousin_err'][0], j['i_cousin_err'][1])
if 'i_cousin' not in bands_in_legend:
bands_in_legend.append('i_cousin')
order_in_legend.append('i_cousin')
if 'r_cousin' in j.keys():
axes2d[k, i].plot([wavelengths_filter['r_cousin']], [j['r_cousin']], color=color['r_cousin'],
marker=symbol['r_cousin'], label='P60 r') # ,label='P60 r')
axes2d[k, i].vlines(wavelengths_filter['r_cousin'], j['r_cousin_err'][0], j['r_cousin_err'][1])
if 'r_cousin' not in bands_in_legend:
bands_in_legend.append('r_cousin')
order_in_legend.append('r_cousin')
if 'j_2mass' in j.keys():
axes2d[k, i].plot([wavelengths_filter['j_2mass']], [j['j_2mass']], color=color['j_2mass'],
marker=symbol['j_2mass'], label='P60 r') # ,label='P60 r')
axes2d[k, i].vlines(wavelengths_filter['j_2mass'], j['j_2mass_err'][0], j['j_2mass_err'][1])
if 'j_2mass' not in bands_in_legend:
bands_in_legend.append('j_2mass')
order_in_legend.append('j_2mass')
if 'h_2mass' in j.keys():
axes2d[k, i].plot([wavelengths_filter['h_2mass']], [j['h_2mass']], color=color['h_2mass'],
marker=symbol['h_2mass'], label='P60 r') # ,label='P60 r')
axes2d[k, i].vlines(wavelengths_filter['h_2mass'], j['h_2mass_err'][0], j['h_2mass_err'][1])
if 'h_2mass' not in bands_in_legend:
bands_in_legend.append('h_2mass')
order_in_legend.append('h_2mass')
axes2d[k, i].set_xscale("log")#, nonposx='clip')
axes2d[k, i].set_yscale("log")#, nonposx='clip')
#axes2d[k, i].legend(loc='top right')
axes2d[k, i].grid()
axes2d[k, i].set_title(r'JD-t$_0$={0}'.format(round(j['time'],2)))
#if (ylim1 is not None)&(ylim2 is not None) & (ylim3 is not None):
# if k==0:
# axes2d[k, i].set_ylim(ylim1[0], ylim1[1])
# if k==1:
# axes2d[k, i].set_ylim(ylim2[0], ylim2[1])
# if k==2:
# axes2d[k, i].set_ylim(ylim3[0], ylim3[1])
if ylim is not None:
axes2d[k, i].set_ylim(ylim[0], ylim[1])
#axes2d[k,i].set_ylim(1e-17,1e-15)
# axes2d[k,i].set_ylabel('flux $F\; [erg/s/cm^2/\AA]$', fontsize=20)
# axes2d[k,i].set_xlabel(r'wavelength [$\AA$]', fontsize=20)
# axes2d[k,i].savefig('results_fit_sed_mat/day_'+str(round(j['time'],3))+'/spectrum.png',
# facecolor='w', edgecolor='w', orientation='portrait', papertype=None, format='png', transparent=False,
# bbox_inches=None, pad_inches=0.5)
# axes2d[k,i].show()
#ax = pylab.gca()
#box = ax.get_position()
#ax.set_position([box.x0, box.y0, box.width * 0.8, box.height])
#axes2d[1, 2 ].legend(loc='lower right',bbox_to_anchor=(1.2, 0.5))
#art=[]
from matplotlib.lines import Line2D
#handles, labels = plt.gca().get_legend_handles_labels()
#print(handles)
#fig.legend(handles, labels, loc='lower left')
#print(bands_in_legend)
#print(order_in_legend)
#pdb.set_trace()
labels=[name_bands[i] for i in bands_in_legend]
lines = [Line2D([0], [0], color=color[i],marker=symbol[i] ) for i in bands_in_legend]
fig.legend(lines,labels,loc='lower left')
#axes2d[1, 1].legend(loc='lower center', bbox_to_anchor = (0.5, -0.3),ncol=8)
#art.append(lgd)
axes2d[2,1].set_xlabel(r'wavelength [$\AA$]', fontsize=20)
axes2d[1,0].set_ylabel(r'flux $F\; \rm [erg/s/cm^2/\AA]$', fontsize=20)
#plt.tight_layout()
fig.subplots_adjust(left=0.2)
pylab.savefig(output + '/2D_SEDs_9.png',
facecolor='w', edgecolor='w', orientation='portrait', papertype=None, format='png', transparent=False,
bbox_inches=None, pad_inches=1.5)
plt.show()
else:
#print('number is',number)
fig, axes2d = plt.subplots(nrows=number, ncols=1,
sharex=True, sharey=True,
figsize=(10, 10))
#print('the shape of axes2d is '.format(axes2d))
#pdb.set_trace()
Spectra2D = np.empty((number, 1), dtype=object)
#print(np.shape(Spectra2D))
#print(np.shape(Spectra))
for i, j in enumerate(Spectra2D):
Spectra2D[i] = Spectra[i]
# Result_T2D = np.empty((number, 1), dtype=object)
# for i,j in enumerate(Spectra2)
Result_T2D = Best[:, 1]
Result_R2D = Best[:, 4]
bands_in_legend = []
#line = np.empty((3, 3))
for i, row in enumerate(Spectra2D):
#print('ble')
#pdb.set_trace()
for k, j in enumerate(row):
#print(i)
# print(j['time'])
# print(j.keys())
#axes2d[i].plot(np.arange(1e-7, 3e-6, 1e-9) * 1e10,
# black_body_flux_density.black_body_flux_density(Result_T2D[i],
# np.arange(1e-7, 3e-6, 1e-9),
# 'P',
# distance_pc=distance_pc,
# Radius=distances_conversions.cm_to_solar_radius(
# Result_R2D[i]),
# redshift=redshift, Ebv=EBV)[
# 2][:, 1], 'k-')
best_fit_full = black_body_flux_density.black_body_flux_density_fast(Result_T2D[i],
np.arange(1e-7, 3e-6, 1e-9),
'P',
distance_pc=distance_pc,
Radius=distances_conversions.cm_to_solar_radius(
Result_R2D[i]),
redshift=redshift, Ebv=EBV)
axes2d[i].plot(best_fit_full[:, 0] * 1e10, best_fit_full[:, 1], 'k-')
if 'UVW1' in j.keys():
axes2d[i].plot([wavelengths_filter['UVW1']], [j['UVW1']], color=color['UVW1'],
marker=symbol['UVW1'], label='UW1')
axes2d[i].vlines(wavelengths_filter['UVW1'], j['UVW1_err'][0], j['UVW1_err'][1])
if 'UVW1' not in bands_in_legend:
bands_in_legend.append('UVW1')
# axes2d[k,i].errorbar([wavelengths_filter['UVW1']], [j['UVW1']],yerr=[j['UVW1_err']], color='purple',fmt='o', label='UVW1')
if 'UVW2' in j.keys():
axes2d[i].plot([wavelengths_filter['UVW2']], [j['UVW2']], color=color['UVW2'],
marker=symbol['UVW2'], label='UW2') # , label='UVW2')
axes2d[i].vlines(wavelengths_filter['UVW2'], j['UVW2_err'][0], j['UVW2_err'][1])
if 'UVW2' not in bands_in_legend:
bands_in_legend.append('UVW2')
# axes2d[k,i].errorbar([wavelengths_filter['UVW2']], [j['UVW2']],yerr=[j['UVW2_err']], color='k',fmt='o', label='UVW2')
if 'UVM2' in j.keys():
axes2d[i].plot([wavelengths_filter['UVM2']], [j['UVM2']], color=color['UVM2'],
marker=symbol['UVM2'], label='UM2') # , label='UVM2')
axes2d[i].vlines(wavelengths_filter['UVM2'], j['UVM2_err'][0], j['UVM2_err'][1])
if 'UVM2' not in bands_in_legend:
bands_in_legend.append('UVM2')
if 'r_p48' in j.keys():
axes2d[i].plot([wavelengths_filter['r_p48']], [j['r_p48']], color=color['r_p48'],
marker=symbol['r_p48'], label='P48 r') # ,label='P48 r')
axes2d[i].vlines(wavelengths_filter['r_p48'], j['r_p48_err'][0], j['r_p48_err'][1])
if 'r_p48' not in bands_in_legend:
bands_in_legend.append('r_p48')
if 'g_p48' in j.keys():
axes2d[i].plot([wavelengths_filter['g_p48']], [j['g_p48']], color=color['g_p48'],
marker=symbol['g_p48'], label='P48 g') # ,label='P48 g')
axes2d[i].vlines(wavelengths_filter['g_p48'], j['g_p48_err'][0], j['g_p48_err'][1])
if 'g_p48' not in bands_in_legend:
bands_in_legend.append('g_p48')
if 'i_p48' in j.keys():
axes2d[i].plot([wavelengths_filter['i_p48']], [j['i_p48']], color=color['i_p48'],
marker=symbol['i_p48'], label='P48 i') # ,label='P48 g')
axes2d[i].vlines(wavelengths_filter['i_p48'], j['i_p48_err'][0], j['i_p48_err'][1])
if 'i_p48' not in bands_in_legend:
bands_in_legend.append('i_p48')
if 'g_sdss' in j.keys():
axes2d[i].plot([wavelengths_filter['g_sdss']], [j['g_sdss']], color=color['g_sdss'],
marker=symbol['g_sdss'], label='P60 g') # ,label='P60 g')
axes2d[i].vlines(wavelengths_filter['g_sdss'], j['g_sdss_err'][0], j['g_sdss_err'][1])
if 'g_sdss' not in bands_in_legend:
bands_in_legend.append('g_sdss')
if 'i_sdss' in j.keys():
axes2d[i].plot([wavelengths_filter['i_sdss']], [j['i_sdss']], color=color['i_sdss'],
marker=symbol['i_sdss'], label='P60 i') # ,label='P60 i')
axes2d[i].vlines(wavelengths_filter['i_sdss'], j['i_sdss_err'][0], j['i_sdss_err'][1])
if 'i_sdss' not in bands_in_legend:
bands_in_legend.append('i_sdss')
if 'r_sdss' in j.keys():
axes2d[i].plot([wavelengths_filter['r_sdss']], [j['r_sdss']], color=color['r_sdss'],
marker=symbol['r_sdss'], label='P60 r') # ,label='P60 r')
axes2d[i].vlines(wavelengths_filter['r_sdss'], j['r_sdss_err'][0], j['r_sdss_err'][1])
if 'r_sdss' not in bands_in_legend:
bands_in_legend.append('r_sdss')
if 'z_sdss' in j.keys():
axes2d[i].plot([wavelengths_filter['z_sdss']], [j['z_sdss']], color=color['z_sdss'],
marker=symbol['z_sdss'], label='P60 z') # ,label='P60 r')
axes2d[i].vlines(wavelengths_filter['z_sdss'], j['z_sdss_err'][0], j['z_sdss_err'][1])
if 'z_sdss' not in bands_in_legend:
bands_in_legend.append('z_sdss')
if 'u_sdss' in j.keys():
axes2d[i].plot([wavelengths_filter['u_sdss']], [j['u_sdss']], color=color['u_sdss'],
marker=symbol['u_sdss'], label='P60 u') # ,label='P60 r')
axes2d[i].vlines(wavelengths_filter['u_sdss'], j['u_sdss_err'][0], j['u_sdss_err'][1])
if 'u_sdss' not in bands_in_legend:
bands_in_legend.append('u_sdss')
if 'u_swift' in j.keys():
axes2d[i].plot([wavelengths_filter['u_swift']], [j['u_swift']], color=color['u_swift'],
marker=symbol['u_swift'], label='u') # ,label='u')
axes2d[i].vlines(wavelengths_filter['u_swift'], j['u_swift_err'][0], j['u_swift_err'][1])
if 'u_swift' not in bands_in_legend:
bands_in_legend.append('u_swift')
if 'v_swift' in j.keys():
axes2d[i].plot([wavelengths_filter['v_swift']], [j['v_swift']], color=color['v_swift'],
marker=symbol['v_swift'], label='V') # ,label='v_swift')
axes2d[i].vlines(wavelengths_filter['v_swift'], j['v_swift_err'][0], j['v_swift_err'][1])
if 'v_swift' not in bands_in_legend:
bands_in_legend.append('v_swift')
if 'b_swift' in j.keys():
axes2d[i].plot([wavelengths_filter['b_swift']], [j['b_swift']], color=color['b_swift'],
marker=symbol['b_swift'], label='B') # ,label='b_swift')
axes2d[i].vlines(wavelengths_filter['b_swift'], j['b_swift_err'][0], j['b_swift_err'][1])
if 'b_swift' not in bands_in_legend:
bands_in_legend.append('b_swift')
if 'b_johnson' in j.keys():
axes2d[i].plot([wavelengths_filter['b_johnson']], [j['b_johnson']], color=color['b_johnson'],
marker=symbol['b_johnson'], label='B') # ,label='b_swift')
axes2d[i].vlines(wavelengths_filter['b_johnson'], j['b_johnson_err'][0],
j['b_johnson_err'][1])
if 'b_johnson' not in bands_in_legend:
bands_in_legend.append('b_johnson')
if 'v_johnson' in j.keys():
axes2d[i].plot([wavelengths_filter['v_johnson']], [j['v_johnson']], color=color['v_johnson'],
marker=symbol['v_johnson'], label='V') # ,label='b_swift')
axes2d[i].vlines(wavelengths_filter['v_johnson'], j['v_johnson_err'][0],
j['v_johnson_err'][1])
if 'v_johnson' not in bands_in_legend:
bands_in_legend.append('v_johnson')
if 'u_johnson' in j.keys():
axes2d[i].plot([wavelengths_filter['u_johnson']], [j['u_johnson']], color=color['u_johnson'],
marker=symbol['u_johnson'], label='U') # ,label='b_swift')
axes2d[i].vlines(wavelengths_filter['u_johnson'], j['u_johnson_err'][0],
j['u_johnson_err'][1])
if 'u_johnson' not in bands_in_legend:
bands_in_legend.append('u_johnson')
if 'i_cousin' in j.keys():
axes2d[i].plot([wavelengths_filter['i_cousin']], [j['i_cousin']], color=color['i_cousin'],
marker=symbol['i_cousin'], label='P60 r') # ,label='P60 r')
axes2d[i].vlines(wavelengths_filter['i_cousin'], j['i_cousin_err'][0], j['i_cousin_err'][1])
if 'i_cousin' not in bands_in_legend:
bands_in_legend.append('i_cousin')
if 'r_cousin' in j.keys():
axes2d[i].plot([wavelengths_filter['r_cousin']], [j['r_cousin']], color=color['r_cousin'],
marker=symbol['r_cousin'], label='P60 r') # ,label='P60 r')
axes2d[i].vlines(wavelengths_filter['r_cousin'], j['r_cousin_err'][0], j['r_cousin_err'][1])
if 'r_cousin' not in bands_in_legend:
bands_in_legend.append('r_cousin')
if 'j_2mass' in j.keys():
axes2d[i].plot([wavelengths_filter['j_2mass']], [j['j_2mass']], color=color['j_2mass'],
marker=symbol['j_2mass'], label='P60 r') # ,label='P60 r')
axes2d[i].vlines(wavelengths_filter['j_2mass'], j['j_2mass_err'][0], j['j_2mass_err'][1])
if 'j_2mass' not in bands_in_legend:
bands_in_legend.append('j_2mass')
if 'h_2mass' in j.keys():
axes2d[i].plot([wavelengths_filter['h_2mass']], [j['h_2mass']], color=color['h_2mass'],
marker=symbol['h_2mass'], label='P60 r') # ,label='P60 r')
axes2d[i].vlines(wavelengths_filter['h_2mass'], j['h_2mass_err'][0], j['h_2mass_err'][1])
if 'h_2mass' not in bands_in_legend:
bands_in_legend.append('h_2mass')
axes2d[i].set_xscale("log")#, nonposx='clip')
axes2d[i].set_yscale("log")#, nonposx='clip')
# axes2d[k, i].legend(loc='top right')
axes2d[i].grid()
axes2d[i].set_title(r'JD-t$_0$={0}'.format(round(j['time'], 2)))
if ylim is not None:
print('ylim is not none!')
print('ylim is',ylim)
axes2d[i].set_ylim(ylim[0],ylim[1])
# axes2d[k,i].set_ylabel('flux $F\; [erg/s/cm^2/\AA]$', fontsize=20)
# axes2d[k,i].set_xlabel(r'wavelength [$\AA$]', fontsize=20)
# axes2d[k,i].savefig('results_fit_sed_mat/day_'+str(round(j['time'],3))+'/spectrum.png',
# facecolor='w', edgecolor='w', orientation='portrait', papertype=None, format='png', transparent=False,
# bbox_inches=None, pad_inches=0.5)
# axes2d[k,i].show()
# ax = pylab.gca()
# box = ax.get_position()
# ax.set_position([box.x0, box.y0, box.width * 0.8, box.height])
# axes2d[1, 2 ].legend(loc='lower right',bbox_to_anchor=(1.2, 0.5))
# art=[]
from matplotlib.lines import Line2D
# handles, labels = plt.gca().get_legend_handles_labels()
# print(handles)
# fig.legend(handles, labels, loc='lower left')
labels = [name_bands[i] for i in bands_in_legend]
lines = [Line2D([0], [0], color=color[i], marker=symbol[i]) for i in bands_in_legend]
fig.legend(lines, labels, loc='lower left')
# axes2d[1, 1].legend(loc='lower center', bbox_to_anchor = (0.5, -0.3),ncol=8)
# art.append(lgd)
axes2d[number-1].set_xlabel(r'wavelength [$\AA$]', fontsize=20)
axes2d[1].set_ylabel(r'flux $F\; \rm [erg/s/cm^2/\AA]$', fontsize=20)
# plt.tight_layout()
fig.subplots_adjust(left=0.2)
pylab.savefig(output + '/2D_SEDs_9.png',facecolor='w', edgecolor='w', orientation='portrait', papertype=None, format='png',
transparent=False,
bbox_inches=None, pad_inches=1.5)
plt.show()
elif number_of_plot==16:
number=0
for name in os.listdir(output):
#print('os.path.splitext(name)[1] is ',os.path.splitext(name)[1])
if os.path.splitext(name)[1] not in ['.png','.txt']:
if name[0]=='d':#directories starting with "day"
#print('it is neither .png or .txt')
number=number+1
#print(name)
#else:
#print('it is png or txt')
print('there are {0} directories in the output file'.format(number))
indexes=range(number)
#for i in indexes:
# print(i)
#print(indexes)
if number>=16:
a = number // 16
print('I will take every {0} file from this directory'.format(a))
indexes = range(number)[0::a]
fig, axes2d = plt.subplots(nrows=4, ncols=4,
sharex=True, sharey=True,
figsize=(10, 10))
Spectra2D = np.empty((4, 4), dtype=object)
for i,j in enumerate( Spectra2D[0:4, 0]):
Spectra2D[i, 0] = Spectra[indexes[i]]
for i, j in enumerate(Spectra2D[0:4, 1]):
Spectra2D[i, 1] = Spectra[indexes[i+4]]
for i, j in enumerate(Spectra2D[0:4, 2]):
Spectra2D[i, 2] = Spectra[indexes[i+8]]
for i, j in enumerate(Spectra2D[0:4, 3]):
Spectra2D[i, 3] = Spectra[indexes[i+12]]
Result_T2D = np.empty((4, 4), dtype=object)
#for i,j in enumerate(Spectra2)
Result_T2D[0:4, 0] = Best[indexes[0:4], 1]
Result_T2D[0:4, 1] = Best[indexes[4:8], 1]
Result_T2D[0:4, 2] = Best[indexes[8:12], 1]
Result_T2D[0:4, 3] = Best[indexes[12:16], 1]
Result_R2D = np.empty((4, 4), dtype=object)
Result_R2D[0:4, 0] = Best[indexes[0:4], 4]
Result_R2D[0:4, 1] = Best[indexes[4:8], 4]
Result_R2D[0:4, 2] = Best[indexes[8:12], 4]
Result_R2D[0:4, 3] = Best[indexes[12:16], 4]
bands_in_legend=[]
order_in_legend=[]
line=np.empty((4,4))
for i, row in enumerate(Spectra2D):
for k, j in enumerate(row):
# print(i)
#print(j['time'])
#print(j.keys())
best_fit_full = black_body_flux_density.black_body_flux_density_fast(Result_T2D[i, k],
np.arange(1e-7, 3e-6, 1e-9),
'P',
distance_pc=distance_pc,
Radius=distances_conversions.cm_to_solar_radius(
Result_R2D[i, k]),
redshift=redshift, Ebv=EBV)
axes2d[k, i].plot(best_fit_full[:, 0] * 1e10, best_fit_full[:, 1], 'k-')
#axes2d[k, i].plot(np.arange(1e-7, 3e-6, 1e-9) * 1e10,
# black_body_flux_density.black_body_flux_density(Result_T2D[i, k], np.arange(1e-7, 3e-6, 1e-9),
# 'P',
# distance_pc=distance_pc,
# Radius=distances_conversions.cm_to_solar_radius(
# Result_R2D[i, k]), redshift=redshift, Ebv=EBV)[
# 2][:, 1], 'k-')
if 'UVW1' in j.keys():
axes2d[k, i].plot([wavelengths_filter['UVW1']], [j['UVW1']], color=color['UVW1'], marker=symbol['UVW1'],label='UW1')
axes2d[k, i].vlines(wavelengths_filter['UVW1'], j['UVW1_err'][0], j['UVW1_err'][1])
if 'UVW1' not in bands_in_legend:
bands_in_legend.append('UVW1')
order_in_legend.append(order_bands['UVW1'])
# axes2d[k,i].errorbar([wavelengths_filter['UVW1']], [j['UVW1']],yerr=[j['UVW1_err']], color='purple',fmt='o', label='UVW1')
if 'UVW2' in j.keys():
axes2d[k, i].plot([wavelengths_filter['UVW2']], [j['UVW2']], color=color['UVW2'], marker=symbol['UVW2'],label='UW2') # , label='UVW2')
axes2d[k, i].vlines(wavelengths_filter['UVW2'], j['UVW2_err'][0], j['UVW2_err'][1])
if 'UVW2' not in bands_in_legend:
bands_in_legend.append('UVW2')
order_in_legend.append(order_bands['UVW2'])
# axes2d[k,i].errorbar([wavelengths_filter['UVW2']], [j['UVW2']],yerr=[j['UVW2_err']], color='k',fmt='o', label='UVW2')
if 'UVM2' in j.keys():
axes2d[k, i].plot([wavelengths_filter['UVM2']], [j['UVM2']], color=color['UVM2'], marker=symbol['UVM2'],label='UM2') # , label='UVM2')
axes2d[k, i].vlines(wavelengths_filter['UVM2'], j['UVM2_err'][0], j['UVM2_err'][1])
if 'UVM2' not in bands_in_legend:
bands_in_legend.append('UVM2')
order_in_legend.append(order_bands['UVM2'])
if 'r_p48' in j.keys():
axes2d[k, i].plot([wavelengths_filter['r_p48']], [j['r_p48']], color=color['r_p48'],marker=symbol['r_p48'],label='P48 r') # ,label='P48 r')
axes2d[k, i].vlines(wavelengths_filter['r_p48'], j['r_p48_err'][0], j['r_p48_err'][1])
if 'r_p48' not in bands_in_legend:
bands_in_legend.append('r_p48')
order_in_legend.append(order_bands['r_p48'])
if 'g_p48' in j.keys():
axes2d[k, i].plot([wavelengths_filter['g_p48']], [j['g_p48']], color=color['g_p48'],marker=symbol['g_p48'],label='P48 g') # ,label='P48 g')
axes2d[k, i].vlines(wavelengths_filter['g_p48'], j['g_p48_err'][0], j['g_p48_err'][1])
if 'g_p48' not in bands_in_legend:
bands_in_legend.append('g_p48')
order_in_legend.append(order_bands['g_p48'])
if 'i_p48' in j.keys():
axes2d[k, i].plot([wavelengths_filter['i_p48']], [j['i_p48']], color=color['i_p48'],marker=symbol['i_p48'],label='P48 i') # ,label='P48 g')
axes2d[k, i].vlines(wavelengths_filter['i_p48'], j['i_p48_err'][0], j['i_p48_err'][1])
if 'i_p48' not in bands_in_legend:
bands_in_legend.append('i_p48')
order_in_legend.append(order_bands['i_p48'])
if 'g_sdss' in j.keys():
axes2d[k, i].plot([wavelengths_filter['g_sdss']], [j['g_sdss']], color=color['g_sdss'],marker=symbol['g_sdss'],label='P60 g') # ,label='P60 g')
axes2d[k, i].vlines(wavelengths_filter['g_sdss'], j['g_sdss_err'][0], j['g_sdss_err'][1])
if 'g_sdss' not in bands_in_legend:
bands_in_legend.append('g_sdss')
order_in_legend.append(order_bands['g_sdss'])
if 'i_sdss' in j.keys():
axes2d[k, i].plot([wavelengths_filter['i_sdss']], [j['i_sdss']], color=color['i_sdss'],marker=symbol['i_sdss'],label='P60 i') # ,label='P60 i')
axes2d[k, i].vlines(wavelengths_filter['i_sdss'], j['i_sdss_err'][0], j['i_sdss_err'][1])
if 'i_sdss' not in bands_in_legend:
bands_in_legend.append('i_sdss')
order_in_legend.append(order_bands['i_sdss'])
if 'r_sdss' in j.keys():
axes2d[k, i].plot([wavelengths_filter['r_sdss']], [j['r_sdss']], color=color['r_sdss'],marker=symbol['r_sdss'],label='P60 r') # ,label='P60 r')
axes2d[k, i].vlines(wavelengths_filter['r_sdss'], j['r_sdss_err'][0], j['r_sdss_err'][1])
if 'r_sdss' not in bands_in_legend:
bands_in_legend.append('r_sdss')
order_in_legend.append(order_bands['r_sdss'])
if 'z_sdss' in j.keys():
axes2d[k, i].plot([wavelengths_filter['z_sdss']], [j['z_sdss']], color=color['z_sdss'],
marker=symbol['z_sdss'], label='P60 z') # ,label='P60 r')
axes2d[k, i].vlines(wavelengths_filter['z_sdss'], j['z_sdss_err'][0], j['z_sdss_err'][1])
if 'z_sdss' not in bands_in_legend:
bands_in_legend.append('z_sdss')
order_in_legend.append(order_bands['z_sdss'])
if 'u_sdss' in j.keys():
axes2d[k, i].plot([wavelengths_filter['u_sdss']], [j['u_sdss']], color=color['u_sdss'],
marker=symbol['u_sdss'], label='sdss u') # ,label='P60 r')
axes2d[k, i].vlines(wavelengths_filter['u_sdss'], j['u_sdss_err'][0], j['u_sdss_err'][1])
if 'u_sdss' not in bands_in_legend:
bands_in_legend.append('u_sdss')
order_in_legend.append(order_bands['u_sdss'])
if 'u_swift' in j.keys():
axes2d[k, i].plot([wavelengths_filter['u_swift']], [j['u_swift']], color=color['u_swift'],marker=symbol['u_swift'],label='u') # ,label='u')
axes2d[k, i].vlines(wavelengths_filter['u_swift'], j['u_swift_err'][0], j['u_swift_err'][1])
if 'u_swift' not in bands_in_legend:
bands_in_legend.append('u_swift')
order_in_legend.append(order_bands['u_swift'])
if 'v_swift' in j.keys():
axes2d[k, i].plot([wavelengths_filter['v_swift']], [j['v_swift']], color=color['v_swift'],marker=symbol['v_swift'],label='V') # ,label='v_swift')
axes2d[k, i].vlines(wavelengths_filter['v_swift'], j['v_swift_err'][0], j['v_swift_err'][1])
if 'v_swift' not in bands_in_legend:
bands_in_legend.append('v_swift')
order_in_legend.append(order_bands['v_swift'])
if 'b_swift' in j.keys():
axes2d[k, i].plot([wavelengths_filter['b_swift']], [j['b_swift']], color=color['b_swift'],marker=symbol['b_swift'],label='B') # ,label='b_swift')
axes2d[k, i].vlines(wavelengths_filter['b_swift'], j['b_swift_err'][0], j['b_swift_err'][1])
if 'b_swift' not in bands_in_legend:
bands_in_legend.append('b_swift')
order_in_legend.append(order_bands['b_swift'])
if 'b_johnson' in j.keys():
axes2d[k, i].plot([wavelengths_filter['b_johnson']], [j['b_johnson']],color=color['b_johnson'],marker=symbol['b_johnson'],label='B') # ,label='b_swift')
axes2d[k, i].vlines(wavelengths_filter['b_johnson'], j['b_johnson_err'][0], j['b_johnson_err'][1])
if 'b_johnson' not in bands_in_legend:
bands_in_legend.append('b_johnson')
order_in_legend.append(order_bands['b_johnson'])
if 'v_johnson' in j.keys():
axes2d[k, i].plot([wavelengths_filter['v_johnson']], [j['v_johnson']],color=color['v_johnson'],marker=symbol['v_johnson'],label='V') # ,label='b_swift')
axes2d[k, i].vlines(wavelengths_filter['v_johnson'], j['v_johnson_err'][0], j['v_johnson_err'][1])
if 'v_johnson' not in bands_in_legend:
bands_in_legend.append('v_johnson')
order_in_legend.append(order_bands['v_johnson'])
if 'u_johnson' in j.keys():
axes2d[k, i].plot([wavelengths_filter['u_johnson']], [j['u_johnson']],color=color['u_johnson'],marker=symbol['u_johnson'],label='U') # ,label='b_swift')
axes2d[k, i].vlines(wavelengths_filter['u_johnson'], j['u_johnson_err'][0], j['u_johnson_err'][1])
if 'u_johnson' not in bands_in_legend:
bands_in_legend.append('u_johnson')
order_in_legend.append(order_bands['u_johnson'])
if 'i_cousin' in j.keys():
axes2d[k, i].plot([wavelengths_filter['i_cousin']], [j['i_cousin']], color=color['i_cousin'],
marker=symbol['i_cousin'], label='P60 r') # ,label='P60 r')
axes2d[k, i].vlines(wavelengths_filter['i_cousin'], j['i_cousin_err'][0], j['i_cousin_err'][1])
if 'i_cousin' not in bands_in_legend:
bands_in_legend.append('i_cousin')
order_in_legend.append(order_bands['i_cousin'])
if 'r_cousin' in j.keys():
axes2d[k, i].plot([wavelengths_filter['r_cousin']], [j['r_cousin']], color=color['r_cousin'],
marker=symbol['r_cousin'], label='P60 r') # ,label='P60 r')
axes2d[k, i].vlines(wavelengths_filter['r_cousin'], j['r_cousin_err'][0], j['r_cousin_err'][1])
if 'r_cousin' not in bands_in_legend:
bands_in_legend.append('r_cousin')
order_in_legend.append(order_bands['r_cousin'])
if 'j_2mass' in j.keys():
axes2d[k, i].plot([wavelengths_filter['j_2mass']], [j['j_2mass']], color=color['j_2mass'],
marker=symbol['j_2mass'], label='P60 r') # ,label='P60 r')
axes2d[k, i].vlines(wavelengths_filter['j_2mass'], j['j_2mass_err'][0], j['j_2mass_err'][1])
if 'j_2mass' not in bands_in_legend:
bands_in_legend.append('j_2mass')
order_in_legend.append(order_bands['j_2mass'])
if 'h_2mass' in j.keys():
axes2d[k, i].plot([wavelengths_filter['h_2mass']], [j['h_2mass']], color=color['h_2mass'],
marker=symbol['h_2mass'], label='P60 r') # ,label='P60 r')
axes2d[k, i].vlines(wavelengths_filter['h_2mass'], j['h_2mass_err'][0], j['h_2mass_err'][1])
if 'h_2mass' not in bands_in_legend:
bands_in_legend.append('h_2mass')
order_in_legend.append(order_bands['h_2mass'])
axes2d[k, i].set_xscale("log")#, nonposx='clip')
axes2d[k, i].set_yscale("log")#, nonposx='clip')
#axes2d[k, i].legend(loc='top right')
axes2d[k, i].grid()
axes2d[k, i].set_title(r'JD-t$_0$={0}'.format(round(j['time'],2)))
#if (ylim1 is not None)&(ylim2 is not None) & (ylim3 is not None):
# if k==0:
# axes2d[k, i].set_ylim(ylim1[0], ylim1[1])
# if k==1:
# axes2d[k, i].set_ylim(ylim2[0], ylim2[1])
# if k==2:
# axes2d[k, i].set_ylim(ylim3[0], ylim3[1])
if ylim is not None:
axes2d[k, i].set_ylim(ylim[0], ylim[1])
#axes2d[k,i].set_ylim(1e-17,1e-15)
# axes2d[k,i].set_ylabel('flux $F\; [erg/s/cm^2/\AA]$', fontsize=20)
# axes2d[k,i].set_xlabel(r'wavelength [$\AA$]', fontsize=20)
# axes2d[k,i].savefig('results_fit_sed_mat/day_'+str(round(j['time'],3))+'/spectrum.png',
# facecolor='w', edgecolor='w', orientation='portrait', papertype=None, format='png', transparent=False,
# bbox_inches=None, pad_inches=0.5)
# axes2d[k,i].show()
#ax = pylab.gca()
#box = ax.get_position()
#ax.set_position([box.x0, box.y0, box.width * 0.8, box.height])
#axes2d[1, 2 ].legend(loc='lower right',bbox_to_anchor=(1.2, 0.5))
#art=[]
from matplotlib.lines import Line2D
#handles, labels = plt.gca().get_legend_handles_labels()
#print(handles)
#fig.legend(handles, labels, loc='lower left')
#print(bands_in_legend)
#print(order_in_legend)
#pdb.set_trace()
labels=[name_bands[i] for i in np.array(bands_in_legend)[np.argsort(order_in_legend)]]
lines = [Line2D([0], [0], color=color[i],marker=symbol[i] ) for i in np.array(bands_in_legend)[np.argsort(order_in_legend)]]
fig.legend(lines,labels,loc='lower left')
#axes2d[1, 1].legend(loc='lower center', bbox_to_anchor = (0.5, -0.3),ncol=8)
#art.append(lgd)
axes2d[3,1].set_xlabel(r'wavelength [$\rm \AA$]', fontsize=20)
axes2d[1,0].set_ylabel(r'flux $\rm F\; [erg/s/cm^2/\AA]$', fontsize=20)
#plt.tight_layout()
fig.subplots_adjust(left=0.2)
pylab.savefig(output + '/2D_SEDs_16.png',
facecolor='w', edgecolor='w', orientation='portrait', papertype=None, format='png', transparent=False,
bbox_inches=None, pad_inches=1.5)
plt.show()
else:
#print('number is',number)
fig, axes2d = plt.subplots(nrows=number, ncols=1,
sharex=True, sharey=True,
figsize=(10, 10))
#print('the shape of axes2d is '.format(axes2d))
#pdb.set_trace()
Spectra2D = np.empty((number, 1), dtype=object)
#print(np.shape(Spectra2D))
#print(np.shape(Spectra))
for i, j in enumerate(Spectra2D):
Spectra2D[i] = Spectra[i]
# Result_T2D = np.empty((number, 1), dtype=object)
# for i,j in enumerate(Spectra2)
Result_T2D = Best[:, 1]
Result_R2D = Best[:, 4]
bands_in_legend = []
#line = np.empty((3, 3))
for i, row in enumerate(Spectra2D):
#print('ble')
#pdb.set_trace()
for k, j in enumerate(row):
#print(i)
# print(j['time'])
# print(j.keys())
best_fit_full = black_body_flux_density.black_body_flux_density_fast(Result_T2D[i],
np.arange(1e-7, 3e-6, 1e-9),
'P',
distance_pc=distance_pc,
Radius=distances_conversions.cm_to_solar_radius(
Result_R2D[i]),
redshift=redshift, Ebv=EBV)
axes2d[i].plot(best_fit_full[:, 0] * 1e10, best_fit_full[:, 1], 'k-')
#axes2d[i].plot(np.arange(1e-7, 3e-6, 1e-9) * 1e10,
# black_body_flux_density.black_body_flux_density(Result_T2D[i],
# np.arange(1e-7, 3e-6, 1e-9),
# 'P',
# distance_pc=distance_pc,
# Radius=distances_conversions.cm_to_solar_radius(
# Result_R2D[i]),
# redshift=redshift, Ebv=EBV)[
# 2][:, 1], 'k-')
if 'UVW1' in j.keys():
axes2d[i].plot([wavelengths_filter['UVW1']], [j['UVW1']], color=color['UVW1'],
marker=symbol['UVW1'], label='UW1')
axes2d[i].vlines(wavelengths_filter['UVW1'], j['UVW1_err'][0], j['UVW1_err'][1])
if 'UVW1' not in bands_in_legend:
bands_in_legend.append('UVW1')
# axes2d[k,i].errorbar([wavelengths_filter['UVW1']], [j['UVW1']],yerr=[j['UVW1_err']], color='purple',fmt='o', label='UVW1')
if 'UVW2' in j.keys():
axes2d[i].plot([wavelengths_filter['UVW2']], [j['UVW2']], color=color['UVW2'],
marker=symbol['UVW2'], label='UW2') # , label='UVW2')
axes2d[i].vlines(wavelengths_filter['UVW2'], j['UVW2_err'][0], j['UVW2_err'][1])
if 'UVW2' not in bands_in_legend:
bands_in_legend.append('UVW2')
# axes2d[k,i].errorbar([wavelengths_filter['UVW2']], [j['UVW2']],yerr=[j['UVW2_err']], color='k',fmt='o', label='UVW2')
if 'UVM2' in j.keys():
axes2d[i].plot([wavelengths_filter['UVM2']], [j['UVM2']], color=color['UVM2'],
marker=symbol['UVM2'], label='UM2') # , label='UVM2')
axes2d[i].vlines(wavelengths_filter['UVM2'], j['UVM2_err'][0], j['UVM2_err'][1])
if 'UVM2' not in bands_in_legend:
bands_in_legend.append('UVM2')
if 'r_p48' in j.keys():
axes2d[i].plot([wavelengths_filter['r_p48']], [j['r_p48']], color=color['r_p48'],
marker=symbol['r_p48'], label='P48 r') # ,label='P48 r')
axes2d[i].vlines(wavelengths_filter['r_p48'], j['r_p48_err'][0], j['r_p48_err'][1])
if 'r_p48' not in bands_in_legend:
bands_in_legend.append('r_p48')
if 'g_p48' in j.keys():
axes2d[i].plot([wavelengths_filter['g_p48']], [j['g_p48']], color=color['g_p48'],
marker=symbol['g_p48'], label='P48 g') # ,label='P48 g')
axes2d[i].vlines(wavelengths_filter['g_p48'], j['g_p48_err'][0], j['g_p48_err'][1])
if 'g_p48' not in bands_in_legend:
bands_in_legend.append('g_p48')
if 'i_p48' in j.keys():
axes2d[i].plot([wavelengths_filter['i_p48']], [j['i_p48']], color=color['i_p48'],
marker=symbol['i_p48'], label='P48 i') # ,label='P48 g')
axes2d[i].vlines(wavelengths_filter['i_p48'], j['i_p48_err'][0], j['i_p48_err'][1])
if 'i_p48' not in bands_in_legend:
bands_in_legend.append('i_p48')
if 'g_sdss' in j.keys():
axes2d[i].plot([wavelengths_filter['g_sdss']], [j['g_sdss']], color=color['g_sdss'],
marker=symbol['g_sdss'], label='P60 g') # ,label='P60 g')
axes2d[i].vlines(wavelengths_filter['g_sdss'], j['g_sdss_err'][0], j['g_sdss_err'][1])
if 'g_sdss' not in bands_in_legend:
bands_in_legend.append('g_sdss')
if 'i_sdss' in j.keys():
axes2d[i].plot([wavelengths_filter['i_sdss']], [j['i_sdss']], color=color['i_sdss'],
marker=symbol['i_sdss'], label='P60 i') # ,label='P60 i')
axes2d[i].vlines(wavelengths_filter['i_sdss'], j['i_sdss_err'][0], j['i_sdss_err'][1])
if 'i_sdss' not in bands_in_legend:
bands_in_legend.append('i_sdss')
if 'r_sdss' in j.keys():
axes2d[i].plot([wavelengths_filter['r_sdss']], [j['r_sdss']], color=color['r_sdss'],
marker=symbol['r_sdss'], label='P60 r') # ,label='P60 r')
axes2d[i].vlines(wavelengths_filter['r_sdss'], j['r_sdss_err'][0], j['r_sdss_err'][1])
if 'r_sdss' not in bands_in_legend:
bands_in_legend.append('r_sdss')
if 'z_sdss' in j.keys():
axes2d[i].plot([wavelengths_filter['z_sdss']], [j['z_sdss']], color=color['z_sdss'],
marker=symbol['z_sdss'], label='P60 z') # ,label='P60 r')
axes2d[i].vlines(wavelengths_filter['z_sdss'], j['z_sdss_err'][0], j['z_sdss_err'][1])
if 'z_sdss' not in bands_in_legend:
bands_in_legend.append('z_sdss')
if 'u_sdss' in j.keys():
axes2d[i].plot([wavelengths_filter['u_sdss']], [j['u_sdss']], color=color['u_sdss'],
marker=symbol['u_sdss'], label='P60 u') # ,label='P60 r')
axes2d[i].vlines(wavelengths_filter['u_sdss'], j['u_sdss_err'][0], j['u_sdss_err'][1])
if 'u_sdss' not in bands_in_legend:
bands_in_legend.append('u_sdss')
if 'u_swift' in j.keys():
axes2d[i].plot([wavelengths_filter['u_swift']], [j['u_swift']], color=color['u_swift'],
marker=symbol['u_swift'], label='u') # ,label='u')
axes2d[i].vlines(wavelengths_filter['u_swift'], j['u_swift_err'][0], j['u_swift_err'][1])
if 'u_swift' not in bands_in_legend:
bands_in_legend.append('u_swift')
if 'v_swift' in j.keys():
axes2d[i].plot([wavelengths_filter['v_swift']], [j['v_swift']], color=color['v_swift'],
marker=symbol['v_swift'], label='V') # ,label='v_swift')
axes2d[i].vlines(wavelengths_filter['v_swift'], j['v_swift_err'][0], j['v_swift_err'][1])
if 'v_swift' not in bands_in_legend:
bands_in_legend.append('v_swift')
if 'b_swift' in j.keys():
axes2d[i].plot([wavelengths_filter['b_swift']], [j['b_swift']], color=color['b_swift'],
marker=symbol['b_swift'], label='B') # ,label='b_swift')
axes2d[i].vlines(wavelengths_filter['b_swift'], j['b_swift_err'][0], j['b_swift_err'][1])
if 'b_swift' not in bands_in_legend:
bands_in_legend.append('b_swift')
if 'b_johnson' in j.keys():
axes2d[i].plot([wavelengths_filter['b_johnson']], [j['b_johnson']], color=color['b_johnson'],
marker=symbol['b_johnson'], label='B') # ,label='b_swift')
axes2d[i].vlines(wavelengths_filter['b_johnson'], j['b_johnson_err'][0],
j['b_johnson_err'][1])
if 'b_johnson' not in bands_in_legend:
bands_in_legend.append('b_johnson')
if 'v_johnson' in j.keys():
axes2d[i].plot([wavelengths_filter['v_johnson']], [j['v_johnson']], color=color['v_johnson'],
marker=symbol['v_johnson'], label='V') # ,label='b_swift')
axes2d[i].vlines(wavelengths_filter['v_johnson'], j['v_johnson_err'][0],
j['v_johnson_err'][1])
if 'v_johnson' not in bands_in_legend:
bands_in_legend.append('v_johnson')
if 'u_johnson' in j.keys():
axes2d[i].plot([wavelengths_filter['u_johnson']], [j['u_johnson']], color=color['u_johnson'],
marker=symbol['u_johnson'], label='U') # ,label='b_swift')
axes2d[i].vlines(wavelengths_filter['u_johnson'], j['u_johnson_err'][0],
j['u_johnson_err'][1])
if 'u_johnson' not in bands_in_legend:
bands_in_legend.append('u_johnson')
if 'i_cousin' in j.keys():
axes2d[i].plot([wavelengths_filter['i_cousin']], [j['i_cousin']], color=color['i_cousin'],
marker=symbol['i_cousin'], label='P60 r') # ,label='P60 r')
axes2d[i].vlines(wavelengths_filter['i_cousin'], j['i_cousin_err'][0], j['i_cousin_err'][1])
if 'i_cousin' not in bands_in_legend:
bands_in_legend.append('i_cousin')
if 'r_cousin' in j.keys():
axes2d[i].plot([wavelengths_filter['r_cousin']], [j['r_cousin']], color=color['r_cousin'],
marker=symbol['r_cousin'], label='P60 r') # ,label='P60 r')
axes2d[i].vlines(wavelengths_filter['r_cousin'], j['r_cousin_err'][0], j['r_cousin_err'][1])
if 'r_cousin' not in bands_in_legend:
bands_in_legend.append('r_cousin')
if 'j_2mass' in j.keys():
axes2d[i].plot([wavelengths_filter['j_2mass']], [j['j_2mass']], color=color['j_2mass'],
marker=symbol['j_2mass'], label='P60 r') # ,label='P60 r')
axes2d[i].vlines(wavelengths_filter['j_2mass'], j['j_2mass_err'][0], j['j_2mass_err'][1])
if 'j_2mass' not in bands_in_legend:
bands_in_legend.append('j_2mass')
if 'h_2mass' in j.keys():
axes2d[i].plot([wavelengths_filter['h_2mass']], [j['h_2mass']], color=color['h_2mass'],
marker=symbol['h_2mass'], label='P60 r') # ,label='P60 r')
axes2d[i].vlines(wavelengths_filter['h_2mass'], j['h_2mass_err'][0], j['h_2mass_err'][1])
if 'h_2mass' not in bands_in_legend:
bands_in_legend.append('h_2mass')
axes2d[i].set_xscale("log")#, nonposx='clip')
axes2d[i].set_yscale("log")#, nonposx='clip')
# axes2d[k, i].legend(loc='top right')
axes2d[i].grid()
axes2d[i].set_title(r'JD-t$_0$={0}'.format(round(j['time'], 2)))
if ylim is not None:
print('ylim is not none!')
print('ylim is',ylim)
axes2d[i].set_ylim(ylim[0],ylim[1])
# axes2d[k,i].set_ylabel('flux $F\; [erg/s/cm^2/\AA]$', fontsize=20)
# axes2d[k,i].set_xlabel(r'wavelength [$\AA$]', fontsize=20)
# axes2d[k,i].savefig('results_fit_sed_mat/day_'+str(round(j['time'],3))+'/spectrum.png',
# facecolor='w', edgecolor='w', orientation='portrait', papertype=None, format='png', transparent=False,
# bbox_inches=None, pad_inches=0.5)
# axes2d[k,i].show()
# ax = pylab.gca()
# box = ax.get_position()
# ax.set_position([box.x0, box.y0, box.width * 0.8, box.height])
# axes2d[1, 2 ].legend(loc='lower right',bbox_to_anchor=(1.2, 0.5))
# art=[]
from matplotlib.lines import Line2D
# handles, labels = plt.gca().get_legend_handles_labels()
# print(handles)
# fig.legend(handles, labels, loc='lower left')
labels = [name_bands[i] for i in bands_in_legend]
lines = [Line2D([0], [0], color=color[i], marker=symbol[i]) for i in bands_in_legend]
fig.legend(lines, labels, loc='lower left')
# axes2d[1, 1].legend(loc='lower center', bbox_to_anchor = (0.5, -0.3),ncol=8)
# art.append(lgd)
axes2d[number-1].set_xlabel(r'wavelength [$\AA$]', fontsize=20)
axes2d[1].set_ylabel('flux $F\; \rm [erg/s/cm^2/\AA]$', fontsize=20)
# plt.tight_layout()
fig.subplots_adjust(left=0.2)
pylab.savefig(output + '/2D_SEDs_9.png',
facecolor='w', edgecolor='w', orientation='portrait', papertype=None, format='png',
transparent=False,
bbox_inches=None, pad_inches=1.5)
plt.show()
else:
print('Sorry, the number of plots can be either 9 or 16')
| 61.333628
| 285
| 0.515743
| 17,321
| 138,982
| 3.892789
| 0.03412
| 0.026933
| 0.034704
| 0.019799
| 0.879218
| 0.851884
| 0.826004
| 0.801993
| 0.789891
| 0.773726
| 0
| 0.02938
| 0.322603
| 138,982
| 2,265
| 286
| 61.360706
| 0.686816
| 0.164194
| 0
| 0.742725
| 0
| 0.007275
| 0.149417
| 0.009633
| 0
| 0
| 0
| 0
| 0
| 1
| 0.002646
| false
| 0
| 0.016534
| 0
| 0.019841
| 0.046296
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
db3c1d1f9ca9a3c89355653e28bc35a1d4753d22
| 68,646
|
py
|
Python
|
tests/test_graph_manager.py
|
admariner/shub-workflow
|
3e75fa05ab02492589c325abdd594e898675a2aa
|
[
"BSD-3-Clause"
] | null | null | null |
tests/test_graph_manager.py
|
admariner/shub-workflow
|
3e75fa05ab02492589c325abdd594e898675a2aa
|
[
"BSD-3-Clause"
] | null | null | null |
tests/test_graph_manager.py
|
admariner/shub-workflow
|
3e75fa05ab02492589c325abdd594e898675a2aa
|
[
"BSD-3-Clause"
] | null | null | null |
import os
import re
from io import StringIO
from unittest import TestCase
from unittest.mock import patch, Mock, call
from shub_workflow.graph import GraphManager
from shub_workflow.graph.task import Task, SpiderTask, Resource
from .utils.contexts import script_args
class TestManager(GraphManager):
name = "test"
def configure_workflow(self):
# define jobs
jobA = Task(
task_id="jobA",
command="commandA",
init_args=["argA", "--optionA"],
retry_args=["argA"],
tags=["tag1", "tag2"],
units=2,
)
jobB = Task(task_id="jobB", command="commandB", init_args=["argB", "--optionB"])
jobC = Task(task_id="jobC", command="commandC", init_args=["argC"])
jobD = Task(task_id="jobD", command="commandD", init_args=["argD"])
# connect them
jobA.add_next_task(jobC)
jobC.add_next_task(jobD)
jobC.add_wait_for(jobB)
# return root jobs
return jobA, jobB
class TestManager2(GraphManager):
name = "test"
def configure_workflow(self):
# define jobs
jobA = Task(
task_id="jobA",
command="{% for i in range(4) %}commandA --parg={{ i }}\n{% endfor %}",
init_args=["argA", "--optionA"],
retry_args=["argA"],
tags=["tag1", "tag2"],
retries=2,
)
jobB = Task(
task_id="jobB",
command="{% for i in range(4) %}commandB --parg={{ i }}\n{% endfor %}",
init_args=["argB", "--optionB"],
)
jobC = Task(task_id="jobC", command="commandC", init_args=["argC"], retries=2)
jobD = Task(task_id="jobD", command="commandD")
# connect them
jobA.add_next_task(jobB)
jobA.add_next_task(jobD)
jobB.add_next_task(jobC)
jobD.add_wait_for(jobB)
# return root jobs
return (jobA,)
class TestManager3(GraphManager):
name = "test"
def configure_workflow(self):
# define jobs
jobA = Task(
task_id="jobA",
command="{% for i in range(4) %}commandA --parg={{ i }}\n{% endfor %}",
init_args=["argA", "--optionA"],
retry_args=["argA"],
tags=["tag1", "tag2"],
)
jobB = Task(
task_id="jobB",
command="{% for i in range(4) %}commandB --parg={{ i }}\n{% endfor %}",
init_args=["argB", "--optionB"],
)
jobC = Task(task_id="jobC", command="commandC", init_args=["argC"])
jobD = Task(task_id="jobD", command="commandD")
jobE = Task(task_id="jobE", command="commandE")
# connect them
jobA.add_next_task(jobB)
jobA.add_next_task(jobC)
jobC.add_next_task(jobD)
jobD.add_next_task(jobE)
jobE.add_wait_for(jobB)
# return root jobs
return (jobA,)
def get_job_tags(self, jobid=None, project_id=None):
if jobid is None:
return ["FLOW_ID=mytagsflowid"]
return super().get_job_tags(jobid, project_id)
class BaseTestCase(TestCase):
def setUp(self):
os.environ["SH_APIKEY"] = "ffff"
os.environ["PROJECT_ID"] = "999"
class ManagerTest(BaseTestCase):
def test_full_specs(self):
with script_args(["--starting-job=jobA", "--starting-job=jobB"]):
manager = TestManager()
manager.schedule_script = Mock()
manager.schedule_script.side_effect = ["999/1/1", "999/1/2"]
manager._WorkFlowManager__on_start()
# first loop
result = manager.workflow_loop()
self.assertTrue(result)
self.assertEqual(manager.schedule_script.call_count, 2)
manager.schedule_script.assert_any_call(
["commandA", "argA", "--optionA"], tags=["tag1", "tag2"], units=2, project_id=None,
)
manager.schedule_script.assert_any_call(
["commandB", "argB", "--optionB"], tags=None, units=None, project_id=None
)
# second loop, something went wrong with jobA, retry with retry_args instead
manager.is_finished = lambda x: "failed" if x == "999/1/1" else None
manager.schedule_script.reset_mock()
manager.schedule_script.side_effect = ["999/1/3"]
result = manager.workflow_loop()
self.assertTrue(result)
manager.schedule_script.assert_called_with(
["commandA", "argA"], tags=["tag1", "tag2"], units=2, project_id=None
)
# third loop, both jobs are still running
manager.is_finished = lambda x: None
manager.schedule_script.reset_mock()
result = manager.workflow_loop()
self.assertTrue(result)
self.assertFalse(manager.schedule_script.called)
# fourth loop, jobA finished (but has to wait for jobB for next job)
manager.is_finished = lambda x: "finished" if x == "999/1/3" else None
result = manager.workflow_loop()
self.assertTrue(result)
self.assertFalse(manager.schedule_script.called)
# fifth loop, jobB finished, now we can run jobC
manager.is_finished = lambda x: "finished" if x == "999/1/2" else None
manager.schedule_script.side_effect = ["999/1/4"]
result = manager.workflow_loop()
self.assertTrue(result)
self.assertEqual(manager.schedule_script.call_count, 1)
manager.schedule_script.assert_called_with(["commandC", "argC"], tags=None, units=None, project_id=None)
# sixth loop, jobC finished, schedule jobD
manager.is_finished = lambda x: "finished" if x == "999/1/4" else None
manager.schedule_script.reset_mock()
manager.schedule_script.side_effect = ["999/1/5"]
result = manager.workflow_loop()
self.assertTrue(result)
self.assertEqual(manager.schedule_script.call_count, 1)
manager.schedule_script.assert_called_with(["commandD", "argD"], tags=None, units=None, project_id=None)
# last loop, jobD finished, workflow finished
manager.is_finished = lambda x: "finished" if x == "999/1/5" else None
manager.schedule_script.reset_mock()
result = manager.workflow_loop()
self.assertFalse(result)
self.assertFalse(manager.schedule_script.called)
@patch("sys.stderr", new_callable=StringIO)
def test_invalid_job(self, mock_stderr):
"""
Test error when a bad job was provided on command line.
"""
with script_args(["--starting-job=jobA", "--starting-job=jobN"]):
manager = TestManager()
with self.assertRaises(SystemExit):
manager._WorkFlowManager__on_start()
self.assertTrue(
"Invalid job: jobN. Available jobs: dict_keys(['jobA', 'jobC', 'jobD', 'jobB'])" in mock_stderr.getvalue()
)
@patch("sys.stderr", new_callable=StringIO)
def test_no_starting_job(self, mock_stderr):
"""
Test error when no starting job was provided.
"""
with script_args([]):
manager = TestManager()
with self.assertRaises(SystemExit):
manager._WorkFlowManager__on_start()
self.assertTrue("You must provide either --starting-job or --root-jobs." in mock_stderr.getvalue())
@patch("sys.stderr", new_callable=StringIO)
def test_starting_job_and_root_jobs(self, mock_stderr):
"""
Test error when no starting job was provided.
"""
with script_args(["-s", "jobA", "--root-jobs"]):
with self.assertRaises(SystemExit):
manager = TestManager()
self.assertTrue("You can't provide both --starting-job and --root-jobs" in mock_stderr.getvalue())
def test_root_jobs(self):
with script_args(["--root-jobs"]):
manager = TestManager()
manager.schedule_script = Mock()
manager.schedule_script.side_effect = ["999/1/1", "999/1/2"]
manager._WorkFlowManager__on_start()
# first loop
result = manager.workflow_loop()
self.assertTrue(result)
self.assertEqual(manager.schedule_script.call_count, 2)
manager.schedule_script.assert_any_call(
["commandA", "argA", "--optionA"], tags=["tag1", "tag2"], units=2, project_id=None,
)
manager.schedule_script.assert_any_call(
["commandB", "argB", "--optionB"], tags=None, units=None, project_id=None
)
def test_retry_job(self):
"""
Test that failed job is retried only the specified number of times
"""
with script_args(["--starting-job=jobA"]):
manager = TestManager2()
manager.is_finished = lambda x: None
manager.schedule_script = Mock()
manager.schedule_script.side_effect = [
"999/1/1",
"999/1/2",
"999/1/3",
"999/1/4",
]
manager._WorkFlowManager__on_start()
# first loop
result = manager.workflow_loop()
self.assertTrue(result)
self.assertEqual(manager.schedule_script.call_count, 4)
for i in range(4):
manager.schedule_script.assert_any_call(
["commandA", f"--parg={i}", "argA", "--optionA"], tags=["tag1", "tag2"], units=None, project_id=None,
)
# second loop still running job A
manager.schedule_script.reset_mock()
result = manager.workflow_loop()
self.assertTrue(result)
self.assertFalse(manager.schedule_script.called)
# third loop, job A_0 fails, must be retried
manager.is_finished = lambda x: "failed" if x == "999/1/1" else None
manager.schedule_script.side_effect = ["999/1/5"]
result = manager.workflow_loop()
self.assertTrue(result)
manager.schedule_script.assert_called_with(
["commandA", "--parg=0", "argA"], tags=["tag1", "tag2"], units=None, project_id=None,
)
# fourth loop, job A_0 fails, must be retried
manager.schedule_script.reset_mock()
manager.is_finished = lambda x: "failed" if x == "999/1/5" else None
manager.schedule_script.side_effect = ["999/1/6"]
result = manager.workflow_loop()
self.assertTrue(result)
manager.schedule_script.assert_called_with(
["commandA", "--parg=0", "argA"], tags=["tag1", "tag2"], units=None, project_id=None,
)
# fifth loop, job A_0 fails again, cannot be retried (retries=2)
manager.schedule_script.reset_mock()
manager.is_finished = lambda x: "failed" if x == "999/1/6" else None
result = manager.workflow_loop()
self.assertTrue(result)
self.assertFalse(manager.schedule_script.called)
# sixth loop, job A_1 fails, must be retried
manager.schedule_script.reset_mock()
manager.is_finished = lambda x: "failed" if x == "999/1/2" else None
manager.schedule_script.side_effect = ["999/1/7"]
result = manager.workflow_loop()
self.assertTrue(result)
manager.schedule_script.assert_called_with(
["commandA", "--parg=1", "argA"], tags=["tag1", "tag2"], units=None, project_id=None,
)
# 7th loop, job A_1 fails again, must be retried
manager.schedule_script.reset_mock()
manager.is_finished = lambda x: "failed" if x == "999/1/7" else None
manager.schedule_script.side_effect = ["999/1/8"]
result = manager.workflow_loop()
self.assertTrue(result)
manager.schedule_script.assert_called_with(
["commandA", "--parg=1", "argA"], tags=["tag1", "tag2"], units=None, project_id=None,
)
# 8th loop, job A_1 fails again, cannot be retried (retries=2)
manager.schedule_script.reset_mock()
manager.is_finished = lambda x: "failed" if x == "999/1/8" else None
result = manager.workflow_loop()
self.assertTrue(result)
self.assertFalse(manager.schedule_script.called)
def test_retry_job_without_retry_args(self):
"""
Test that failed job without retry args is retried with init args
"""
with script_args(["--starting-job=jobC"]):
manager = TestManager2()
manager.is_finished = lambda x: None
manager.schedule_script = Mock()
manager.schedule_script.side_effect = ["999/3/1"]
manager._WorkFlowManager__on_start()
# first loop
result = manager.workflow_loop()
self.assertTrue(result)
self.assertEqual(manager.schedule_script.call_count, 1)
manager.schedule_script.assert_any_call(["commandC", "argC"], tags=None, units=None, project_id=None)
# second loop, job C fails, must be retried.
manager.is_finished = lambda x: "failed" if x == "999/3/1" else None
manager.schedule_script.side_effect = ["999/3/2"]
result = manager.workflow_loop()
self.assertTrue(result)
self.assertEqual(manager.schedule_script.call_count, 2)
manager.schedule_script.assert_called_with(["commandC", "argC"], tags=None, units=None, project_id=None)
def test_max_retries(self):
"""
Test max retries
"""
with script_args(["--starting-job=jobC"]):
manager = TestManager2()
manager.is_finished = lambda x: None
manager.schedule_script = Mock()
manager.schedule_script.side_effect = ["999/3/1"]
manager._WorkFlowManager__on_start()
# first loop
result = manager.workflow_loop()
self.assertTrue(result)
self.assertEqual(manager.schedule_script.call_count, 1)
# second loop, job C fails, must be retried.
manager.is_finished = lambda x: "failed" if x == "999/3/1" else None
manager.schedule_script.side_effect = ["999/3/2"]
result = manager.workflow_loop()
self.assertTrue(result)
self.assertEqual(manager.schedule_script.call_count, 2)
manager.schedule_script.assert_called_with(["commandC", "argC"], tags=None, units=None, project_id=None)
# third loop, job C fails again, must be retried (last retry).
manager.is_finished = lambda x: "failed" if x == "999/3/2" else None
manager.schedule_script.side_effect = ["999/3/3"]
result = manager.workflow_loop()
self.assertTrue(result)
self.assertEqual(manager.schedule_script.call_count, 3)
manager.schedule_script.assert_called_with(["commandC", "argC"], tags=None, units=None, project_id=None)
# fourth loop, job C fails again, give up.
manager.is_finished = lambda x: "failed" if x == "999/3/3" else None
result = manager.workflow_loop()
self.assertFalse(result)
self.assertEqual(manager.schedule_script.call_count, 3)
def test_parallel_job(self):
"""
Test correct scheduling of a job with parallelization
"""
with script_args(["--starting-job=jobA"]):
manager = TestManager2()
manager.is_finished = lambda x: None
manager.schedule_script = Mock()
manager.schedule_script.side_effect = [
"999/1/1",
"999/1/2",
"999/1/3",
"999/1/4",
]
manager._WorkFlowManager__on_start()
# first loop
result = manager.workflow_loop()
self.assertTrue(result)
self.assertEqual(manager.schedule_script.call_count, 4)
for i in range(4):
manager.schedule_script.assert_any_call(
["commandA", f"--parg={i}", "argA", "--optionA"], tags=["tag1", "tag2"], units=None, project_id=None,
)
# second loop still running job A
manager.schedule_script.reset_mock()
result = manager.workflow_loop()
self.assertTrue(result)
self.assertFalse(manager.schedule_script.called)
# third loop, job A_0 fails, must be resumed
manager.is_finished = lambda x: "failed" if x == "999/1/1" else None
manager.schedule_script.side_effect = ["999/1/5"]
result = manager.workflow_loop()
self.assertTrue(result)
manager.schedule_script.assert_called_with(
["commandA", "--parg=0", "argA"], tags=["tag1", "tag2"], units=None, project_id=None,
)
# fourth loop, job A finishes, will start now parallel job B
manager.is_finished = lambda x: "finished"
manager.schedule_script.side_effect = [
"999/2/1",
"999/2/2",
"999/2/3",
"999/2/4",
]
result = manager.workflow_loop()
self.assertTrue(result)
for i in range(4):
manager.schedule_script.assert_any_call(
["commandB", f"--parg={i}", "argB", "--optionB"], tags=None, units=None, project_id=None,
)
# fifth loop, jobB finishes partially, neither jobD nor jobC can still be scheduled
manager.is_finished = lambda x: "finished" if x == "999/2/1" else None
manager.schedule_script.reset_mock()
result = manager.workflow_loop()
self.assertTrue(result)
self.assertFalse(manager.schedule_script.called)
# sixth loop, jobB finishes, jobD now can run, also jobC is scheduled
manager.is_finished = lambda x: "finished"
manager.schedule_script.side_effect = ["999/3/1", "999/3/2"]
result = manager.workflow_loop()
self.assertTrue(result)
manager.schedule_script.assert_any_call(["commandC", "argC"], tags=None, units=None, project_id=None)
manager.schedule_script.assert_any_call(["commandD"], tags=None, units=None, project_id=None)
def test_tags(self):
with script_args(["--starting-job=jobA", "--tag=tag3", "--tag=tag4"]):
manager = TestManager3()
manager.is_finished = lambda x: None
manager.schedule_script = Mock()
manager.schedule_script.side_effect = [
"999/1/1",
"999/1/2",
"999/1/3",
"999/1/4",
]
manager._WorkFlowManager__on_start()
# first loop
result = manager.workflow_loop()
self.assertTrue(result)
self.assertEqual(manager.schedule_script.call_count, 4)
for i in range(4):
manager.schedule_script.assert_any_call(
["commandA", f"--parg={i}", "argA", "--optionA"], tags=["tag1", "tag2"], units=None, project_id=None,
)
self.assertEqual(
set(manager._make_tags(["tag1", "tag2"])),
set(["tag1", "tag2", "tag3", "tag4", f"FLOW_ID={manager.flow_id}"]),
)
def test_flow_id_from_command_line(self):
with script_args(["--starting-job=jobA", "--flow-id=myflowid"]):
manager = TestManager3()
manager.is_finished = lambda x: None
manager.schedule_script = Mock()
manager.schedule_script.side_effect = [
"999/1/1",
"999/1/2",
"999/1/3",
"999/1/4",
]
manager._WorkFlowManager__on_start()
# first loop
result = manager.workflow_loop()
self.assertTrue(result)
self.assertEqual(manager.schedule_script.call_count, 4)
for i in range(4):
manager.schedule_script.assert_any_call(
["commandA", f"--parg={i}", "argA", "--optionA"], tags=["tag1", "tag2"], units=None, project_id=None,
)
self.assertEqual(
set(manager._make_tags(["tag1", "tag2"])), set(["tag1", "tag2", "FLOW_ID=myflowid"]),
)
def test_flow_id_from_job_tags(self):
with script_args(["--starting-job=jobA"]):
manager = TestManager3()
manager.is_finished = lambda x: None
manager.schedule_script = Mock()
manager.schedule_script.side_effect = [
"999/1/1",
"999/1/2",
"999/1/3",
"999/1/4",
]
manager._WorkFlowManager__on_start()
# first loop
result = manager.workflow_loop()
self.assertTrue(result)
self.assertEqual(manager.schedule_script.call_count, 4)
for i in range(4):
manager.schedule_script.assert_any_call(
["commandA", f"--parg={i}", "argA", "--optionA"], tags=["tag1", "tag2"], units=None, project_id=None,
)
self.assertEqual(
set(manager._make_tags(["tag1", "tag2"])), set(["tag1", "tag2", "FLOW_ID=mytagsflowid"]),
)
def test_skip_job(self):
with script_args(["--starting-job=jobA", "--skip-job=jobC"]):
manager = TestManager3()
manager.is_finished = lambda x: None
manager.schedule_script = Mock()
manager.schedule_script.side_effect = [
"999/1/1",
"999/1/2",
"999/1/3",
"999/1/4",
]
manager._WorkFlowManager__on_start()
# first loop
result = manager.workflow_loop()
self.assertTrue(result)
self.assertEqual(manager.schedule_script.call_count, 4)
for i in range(4):
manager.schedule_script.assert_any_call(
["commandA", f"--parg={i}", "argA", "--optionA"], tags=["tag1", "tag2"], units=None, project_id=None,
)
# second loop, jobA finishes, jobB is scheduled, not jobC or next ones as it was skipped
manager.is_finished = lambda x: "finished"
manager.schedule_script.side_effect = [
"999/2/1",
"999/2/2",
"999/2/3",
"999/2/4",
]
result = manager.workflow_loop()
self.assertTrue(result)
for i in range(4):
manager.schedule_script.assert_any_call(
["commandB", f"--parg={i}", "argB", "--optionB"], tags=None, units=None, project_id=None,
)
# last loop, jobB finished, workflow finished
manager.is_finished = lambda x: "finished" if x.startswith("999/2") else None
manager.schedule_script.reset_mock()
result = manager.workflow_loop()
self.assertFalse(result)
self.assertFalse(manager.schedule_script.called)
def test_wait_for_already_finished_job(self):
with script_args(["--starting-job=jobA"]):
manager = TestManager3()
manager.is_finished = lambda x: None
manager.schedule_script = Mock()
manager.schedule_script.side_effect = [
"999/1/1",
"999/1/2",
"999/1/3",
"999/1/4",
]
manager._WorkFlowManager__on_start()
# first loop
result = manager.workflow_loop()
self.assertTrue(result)
self.assertEqual(manager.schedule_script.call_count, 4)
for i in range(4):
manager.schedule_script.assert_any_call(
["commandA", f"--parg={i}", "argA", "--optionA"], tags=["tag1", "tag2"], units=None, project_id=None,
)
# second loop, jobA finishes, jobB and jobC are scheduled
manager.is_finished = lambda x: "finished"
manager.schedule_script.side_effect = [
"999/2/1",
"999/2/2",
"999/2/3",
"999/2/4",
"999/3/1",
]
result = manager.workflow_loop()
self.assertTrue(result)
for i in range(4):
manager.schedule_script.assert_any_call(
["commandB", f"--parg={i}", "argB", "--optionB"], tags=None, units=None, project_id=None,
)
manager.schedule_script.assert_any_call(["commandC", "argC"], tags=None, units=None, project_id=None)
# third loop, jobB finishes
manager.is_finished = lambda x: "finished" if x.startswith("999/2/") else None
manager.schedule_script.reset_mock()
result = manager.workflow_loop()
self.assertTrue(result)
self.assertFalse(manager.schedule_script.called)
# fourth loop, jobC finishes, jobD is scheduled
manager.is_finished = lambda x: "finished"
manager.schedule_script.side_effect = ["999/4/1"]
result = manager.workflow_loop()
self.assertTrue(result)
manager.schedule_script.assert_any_call(["commandD"], tags=None, units=None, project_id=None)
# fifth loop, jobD finishes, jobE is scheduled
manager.is_finished = lambda x: "finished"
manager.schedule_script.side_effect = ["999/5/1"]
result = manager.workflow_loop()
self.assertTrue(result)
manager.schedule_script.assert_any_call(["commandE"], tags=None, units=None, project_id=None)
def test_no_wait_for_a_job_that_will_not_be_run(self):
with script_args(["--starting-job=jobD"]):
manager = TestManager3()
manager.schedule_script = Mock()
manager.schedule_script.side_effect = ["999/4/1"]
manager._WorkFlowManager__on_start()
# first loop, jobD is scheduled
result = manager.workflow_loop()
self.assertTrue(result)
manager.schedule_script.assert_any_call(["commandD"], tags=None, units=None, project_id=None)
# second loop, jobD finishes, jobE is scheduled, regardless it should wait for jobB to finish.
# However, as defined in the start jobs, jobB will never be scheduled (i.e. could have been
# already scheduled/finished by another instance of the manager)
manager.is_finished = lambda x: "finished"
manager.schedule_script.side_effect = ["999/5/1"]
result = manager.workflow_loop()
self.assertTrue(result)
manager.schedule_script.assert_any_call(["commandE"], tags=None, units=None, project_id=None)
def test_skip_job_no_wait_for_skipped(self):
with script_args(["--starting-job=jobA", "--skip-job=jobB"]):
manager = TestManager3()
manager.is_finished = lambda x: None
manager.schedule_script = Mock()
manager.schedule_script.side_effect = [
"999/1/1",
"999/1/2",
"999/1/3",
"999/1/4",
]
manager._WorkFlowManager__on_start()
# first loop
result = manager.workflow_loop()
self.assertTrue(result)
self.assertEqual(manager.schedule_script.call_count, 4)
for i in range(4):
manager.schedule_script.assert_any_call(
["commandA", f"--parg={i}", "argA", "--optionA"], tags=["tag1", "tag2"], units=None, project_id=None,
)
# second loop, jobA finishes, jobC is scheduled, but not jobB as it is skipped.
manager.is_finished = lambda x: "finished"
manager.schedule_script.side_effect = ["999/3/1"]
result = manager.workflow_loop()
self.assertTrue(result)
manager.schedule_script.assert_any_call(["commandC", "argC"], tags=None, units=None, project_id=None)
# third loop, jobC finishes, jobD is scheduled
manager.is_finished = lambda x: "finished"
manager.schedule_script.side_effect = ["999/4/1"]
result = manager.workflow_loop()
self.assertTrue(result)
manager.schedule_script.assert_any_call(["commandD"], tags=None, units=None, project_id=None)
# fourth loop, jobD finishes, jobE is scheduled (will not wait for B as it was skipped)
manager.is_finished = lambda x: "finished"
manager.schedule_script.side_effect = ["999/5/1"]
result = manager.workflow_loop()
self.assertTrue(result)
manager.schedule_script.assert_any_call(["commandE"], tags=None, units=None, project_id=None)
def test_start_job_wait_for_another_in_start_jobs(self):
with script_args(["--starting-job=jobB", "--starting-job=jobE"]):
manager = TestManager3()
manager.schedule_script = Mock()
manager.schedule_script.side_effect = [
"999/2/1",
"999/2/2",
"999/2/3",
"999/2/4",
]
manager._WorkFlowManager__on_start()
# first loop, jobB is scheduled
result = manager.workflow_loop()
self.assertTrue(result)
for i in range(4):
manager.schedule_script.assert_any_call(
["commandB", f"--parg={i}", "argB", "--optionB"], tags=None, units=None, project_id=None,
)
# second loop, jobB finishes, jobE is scheduled
manager.is_finished = lambda x: "finished"
manager.schedule_script.side_effect = ["999/5/1"]
result = manager.workflow_loop()
self.assertTrue(result)
manager.schedule_script.assert_any_call(["commandE"], tags=None, units=None, project_id=None)
def test_wait_for_a_starting_parallel_job(self):
with script_args(["--starting-job=jobB"]):
manager = TestManager2()
manager.schedule_script = Mock()
manager.schedule_script.side_effect = [
"999/2/1",
"999/2/2",
"999/2/3",
"999/2/4",
]
manager._WorkFlowManager__on_start()
# first loop, jobB is scheduled
result = manager.workflow_loop()
self.assertTrue(result)
for i in range(4):
manager.schedule_script.assert_any_call(
["commandB", f"--parg={i}", "argB", "--optionB"], tags=None, units=None, project_id=None,
)
# second loop, one jobB finishes, jobC must not still be scheduled
manager.is_finished = lambda x: "finished" if x == "999/2/1" else None
manager.schedule_script.reset_mock()
result = manager.workflow_loop()
self.assertTrue(result)
self.assertFalse(manager.schedule_script.called)
def test_start_job_wait_for_a_job_after_another_start_job(self):
"""
One of the starting jobs must wait for a job triggered on the other start job finish:
jobC -> jobD
jobE must wait for jobD
"""
class _TestManager(GraphManager):
project_id = 999
name = "test"
def configure_workflow(self):
# define jobs
jobA = Task(
task_id="jobA",
command="{% for i in range(4) %}commandA --parg={{ i }}\n{% endfor %}",
init_args=["argA", "--optionA"],
retry_args=["argA"],
tags=["tag1", "tag2"],
)
jobB = Task(
task_id="jobB",
command="{% for i in range(4) %}commandB --parg={{ i }}\n{% endfor %}",
init_args=["argB", "--optionB"],
)
jobC = Task(task_id="jobC", command="commandC", init_args=["argC"])
jobD = Task(task_id="jobD", command="commandD")
jobE = Task(task_id="jobE", command="commandE")
# connect them
jobA.add_next_task(jobB)
jobA.add_next_task(jobC)
jobC.add_next_task(jobD)
jobE.add_wait_for(jobD)
return (jobA, jobE)
with script_args(["--starting-job=jobC", "--starting-job=jobE"]):
manager = _TestManager()
manager.schedule_script = Mock()
manager.schedule_script.side_effect = ["999/3/1"]
manager._WorkFlowManager__on_start()
# first loop, jobC is scheduled
result = manager.workflow_loop()
self.assertTrue(result)
manager.schedule_script.assert_called_with(["commandC", "argC"], tags=None, units=None, project_id=None)
# second loop, jobC finishes, jobD is scheduled
manager.is_finished = lambda x: "finished"
manager.schedule_script.side_effect = ["999/4/1"]
result = manager.workflow_loop()
self.assertTrue(result)
manager.schedule_script.assert_any_call(["commandD"], tags=None, units=None, project_id=None)
# third loop, jobD finishes, jobE is scheduled
manager.is_finished = lambda x: "finished"
manager.schedule_script.side_effect = ["999/5/1"]
result = manager.workflow_loop()
self.assertTrue(result)
manager.schedule_script.assert_any_call(["commandE"], tags=None, units=None, project_id=None)
def test_start_job_wait_for_another_that_must_wait_another(self):
"""
One of the starting jobs must wait for a job triggered on the other start job finish:
jobC -> jobD
jobE must wait for jobD
"""
class _TestManager(GraphManager):
project_id = 999
name = "test"
def configure_workflow(self):
# define jobs
jobA = Task(
task_id="jobA",
command="{% for i in range(4) %}commandA --parg={{ i }}\n{% endfor %}",
init_args=["argA", "--optionA"],
retry_args=["argA"],
tags=["tag1", "tag2"],
)
jobB = Task(
task_id="jobB",
command="{% for i in range(4) %}commandB --parg={{ i }}\n{% endfor %}",
init_args=["argB", "--optionB"],
)
jobC = Task(task_id="jobC", command="commandC", init_args=["argC"])
jobD = Task(task_id="jobD", command="commandD")
jobE = Task(task_id="jobE", command="commandE")
# connect them
jobA.add_next_task(jobB)
jobB.add_next_task(jobC)
jobD.add_wait_for(jobC)
jobE.add_wait_for(jobD)
return (jobA, jobD, jobE)
with script_args(["--starting-job=jobB", "--starting-job=jobD", "--starting-job=jobE"]):
manager = _TestManager()
manager.schedule_script = Mock()
manager.schedule_script.side_effect = [
"999/2/1",
"999/2/2",
"999/2/3",
"999/2/4",
]
manager._WorkFlowManager__on_start()
# first loop, jobB is scheduled
result = manager.workflow_loop()
self.assertTrue(result)
for i in range(4):
manager.schedule_script.assert_any_call(
["commandB", f"--parg={i}", "argB", "--optionB"], tags=None, units=None, project_id=None,
)
# second loop, jobB finishes, jobC is scheduled
manager.is_finished = lambda x: "finished"
manager.schedule_script.side_effect = ["999/3/1"]
result = manager.workflow_loop()
self.assertTrue(result)
manager.schedule_script.assert_called_with(["commandC", "argC"], tags=None, units=None, project_id=None)
# third loop, jobC finishes, jobD is scheduled
manager.is_finished = lambda x: "finished"
manager.schedule_script.side_effect = ["999/4/1"]
result = manager.workflow_loop()
self.assertTrue(result)
manager.schedule_script.assert_any_call(["commandD"], tags=None, units=None, project_id=None)
# fourth loop, jobD finishes, jobE is scheduled
manager.is_finished = lambda x: "finished"
manager.schedule_script.side_effect = ["999/5/1"]
result = manager.workflow_loop()
self.assertTrue(result)
manager.schedule_script.assert_any_call(["commandE"], tags=None, units=None, project_id=None)
def test_job_wait_for_another_that_must_wait_another_that_will_not_run(self):
"""
One of the jobs must wait for a job that waits for another that will never run
"""
class _TestManager(GraphManager):
project_id = 999
name = "test"
def configure_workflow(self):
# define jobs
jobA = Task(
task_id="jobA",
command="{% for i in range(4) %}commandA --parg={{ i }}\n{% endfor %}",
init_args=["argA", "--optionA"],
retry_args=["argA"],
tags=["tag1", "tag2"],
)
jobB = Task(
task_id="jobB",
command="{% for i in range(4) %}commandB --parg={{ i }}\n{% endfor %}",
init_args=["argB", "--optionB"],
)
jobC = Task(task_id="jobC", command="commandC", init_args=["argC"])
jobD = Task(task_id="jobD", command="commandD")
jobE = Task(task_id="jobE", command="commandE")
# connect them
jobA.add_next_task(jobB)
jobB.add_next_task(jobC)
jobB.add_next_task(jobD)
jobC.add_next_task(jobE)
jobD.add_wait_for(jobA)
jobE.add_wait_for(jobD)
return (jobA,)
with script_args(["--starting-job=jobB"]):
manager = _TestManager()
manager.schedule_script = Mock()
manager.schedule_script.side_effect = [
"999/2/1",
"999/2/2",
"999/2/3",
"999/2/4",
]
manager._WorkFlowManager__on_start()
# first loop, jobB is scheduled
result = manager.workflow_loop()
self.assertTrue(result)
for i in range(4):
manager.schedule_script.assert_any_call(
["commandB", f"--parg={i}", "argB", "--optionB"], tags=None, units=None, project_id=None,
)
# second loop, jobB finishes, jobC must be scheduled, but not jobD
manager.is_finished = lambda x: "finished"
manager.schedule_script.side_effect = ["999/3/1"]
result = manager.workflow_loop()
self.assertTrue(result)
manager.schedule_script.assert_called_with(["commandC", "argC"], tags=None, units=None, project_id=None)
# third loop, jobC finishes, jobD is scheduled, but not jobE
manager.is_finished = lambda x: "finished"
manager.schedule_script.side_effect = ["999/4/1"]
result = manager.workflow_loop()
self.assertTrue(result)
manager.schedule_script.assert_any_call(["commandD"], tags=None, units=None, project_id=None)
# fourth loop, jobD finishes, jobE is scheduled
manager.is_finished = lambda x: "finished"
manager.schedule_script.side_effect = ["999/5/1"]
result = manager.workflow_loop()
self.assertTrue(result)
manager.schedule_script.assert_any_call(["commandE"], tags=None, units=None, project_id=None)
def test_job_wait_for_another_that_must_wait_another_that_will_not_run_ii(self):
"""
One of the jobs must wait for a job that waits for another that will never run. Second variant.
"""
class _TestManager(GraphManager):
project_id = 999
name = "test"
def configure_workflow(self):
# define jobs
jobA = Task(
task_id="jobA",
command="{% for i in range(4) %}commandA --parg={{ i }}\n{% endfor %}",
init_args=["argA", "--optionA"],
retry_args=["argA"],
tags=["tag1", "tag2"],
)
jobB = Task(
task_id="jobB",
command="{% for i in range(4) %}commandB --parg={{ i }}\n{% endfor %}",
init_args=["argB", "--optionB"],
)
jobC = Task(task_id="jobC", command="commandC", init_args=["argC"])
jobD = Task(task_id="jobD", command="commandD")
jobE = Task(task_id="jobE", command="commandE")
# connect them
jobA.add_next_task(jobB)
jobB.add_next_task(jobC)
jobB.add_next_task(jobE)
jobC.add_next_task(jobD)
jobD.add_wait_for(jobE)
jobE.add_wait_for(jobA)
return (jobA,)
with script_args(["--starting-job=jobB"]):
manager = _TestManager()
manager.schedule_script = Mock()
manager.schedule_script.side_effect = [
"999/2/1",
"999/2/2",
"999/2/3",
"999/2/4",
]
manager._WorkFlowManager__on_start()
# first loop, jobB is scheduled
result = manager.workflow_loop()
self.assertTrue(result)
for i in range(4):
manager.schedule_script.assert_any_call(
["commandB", f"--parg={i}", "argB", "--optionB"], tags=None, units=None, project_id=None,
)
# second loop, jobB finishes, jobC must be scheduled, but not jobE
manager.is_finished = lambda x: "finished"
manager.schedule_script.side_effect = ["999/3/1"]
result = manager.workflow_loop()
self.assertTrue(result)
manager.schedule_script.assert_called_with(["commandC", "argC"], tags=None, units=None, project_id=None)
# third loop, jobC finishes, jobE is scheduled, but not jobD
manager.is_finished = lambda x: "finished"
manager.schedule_script.side_effect = ["999/5/1"]
result = manager.workflow_loop()
self.assertTrue(result)
manager.schedule_script.assert_any_call(["commandE"], tags=None, units=None, project_id=None)
# fourth loop, jobE finishes, jobD is scheduled
manager.is_finished = lambda x: "finished"
manager.schedule_script.side_effect = ["999/4/1"]
result = manager.workflow_loop()
self.assertTrue(result)
manager.schedule_script.assert_any_call(["commandD"], tags=None, units=None, project_id=None)
def test_many_jobs_waiting_for_not_running_job(self):
"""
When many jobs waits for the same that will not run, ensure that only one job at a time
is choosen for run, except when we run a job with parallelization (in this case, all
parallel jobs must run)
"""
class _TestManager(GraphManager):
project_id = 999
name = "test"
def configure_workflow(self):
# define jobs
jobA = Task(
task_id="jobA",
command="{% for i in range(4) %}commandA --parg={{ i }}\n{% endfor %}",
init_args=["argA", "--optionA"],
)
jobB = Task(task_id="jobB", command="commandB", init_args=["argB", "--optionB"])
jobC = Task(task_id="jobC", command="commandC", init_args=["argC", "--optionC"])
jobE = Task(task_id="jobE", command="commandE")
# connect them
jobA.add_wait_for(jobE)
jobB.add_wait_for(jobE)
jobC.add_wait_for(jobE)
return (jobA, jobB, jobC, jobE)
with script_args(["--starting-job=jobA", "--starting-job=jobB", "--starting-job=jobC"]):
manager = _TestManager()
manager.schedule_script = Mock()
manager.schedule_script.side_effect = [
"999/1/1",
"999/1/2",
"999/1/3",
"999/1/4",
]
manager._WorkFlowManager__on_start()
# first loop, All jobs A must be scheduled
self.assertTrue(manager.workflow_loop())
for i in range(4):
manager.schedule_script.assert_any_call(
["commandA", f"--parg={i}", "argA", "--optionA"], tags=None, units=None, project_id=None,
)
# second loop, jobs still running, nothing scheduled
manager.is_finished = lambda x: None
self.assertTrue(manager.workflow_loop())
# third loop, jobs A finishes, jobB scheduled
manager.is_finished = lambda x: "finished"
manager.schedule_script.side_effect = ["999/2/1"]
self.assertTrue(manager.workflow_loop())
manager.schedule_script.assert_called_with(
["commandB", "argB", "--optionB"], tags=None, units=None, project_id=None
)
# fourth loop, jobs still running, nothing scheduled
manager.is_finished = lambda x: None
self.assertTrue(manager.workflow_loop())
# 5th loop, job B finishes, jobC scheduled
manager.is_finished = lambda x: "finished"
manager.schedule_script.side_effect = ["999/3/1"]
self.assertTrue(manager.workflow_loop())
manager.schedule_script.assert_called_with(
["commandC", "argC", "--optionC"], tags=None, units=None, project_id=None
)
def test_job_cyclic_dependency(self):
"""If at some point all pending jobs depend on each other, raise an error."""
class _TestManager(GraphManager):
project_id = 999
name = "test"
def configure_workflow(self):
# define jobs
jobA = Task(task_id="jobA", command="commandA")
jobB = Task(
task_id="jobB",
command="{% for i in range(4) %}commandB --parg={{ i }}\n{% endfor %}",
init_args=["argB", "--optionB"],
)
jobC = Task(task_id="jobC", command="commandC")
jobD = Task(task_id="jobD", command="commandD")
# connect them
jobA.add_next_task(jobD)
jobB.add_wait_for(jobC)
jobC.add_wait_for(jobD)
jobD.add_wait_for(jobB)
return (jobA, jobB, jobC)
with script_args(["--starting-job=jobA", "--starting-job=jobB", "--starting-job=jobC"]):
manager = _TestManager()
manager.schedule_script = Mock()
manager.schedule_script.side_effect = ["999/2/1"]
manager._WorkFlowManager__on_start()
result = manager.workflow_loop()
self.assertTrue(result)
manager.schedule_script.assert_any_call(["commandA"], tags=None, units=None, project_id=None)
manager.is_finished = lambda x: "finished"
with self.assertRaisesRegex(
RuntimeError,
re.escape(
"Job dependency cycle detected:"
" jobB_0 waits for ['jobC'],"
" jobB_1 waits for ['jobC'],"
" jobB_2 waits for ['jobC'],"
" jobB_3 waits for ['jobC'],"
" jobC waits for ['jobD'],"
" jobD waits for ['jobB_0', 'jobB_1', 'jobB_2', 'jobB_3']"
),
):
manager.workflow_loop()
def test_job_required_resource(self):
"""If a jobs depends on an unavailable resource, it should not run."""
class _TestManager(GraphManager):
project_id = 999
name = "test"
fooR = Resource("foo")
def configure_workflow(self):
# define tasks
jobA = Task("jobA", command="commandA")
jobB = Task("jobB", command="commandB")
# set required resources
jobA.add_required_resources({self.fooR: 1})
jobB.add_required_resources({self.fooR: 1})
return jobA, jobB
with script_args(["--starting-job=jobA", "--starting-job=jobB"]):
manager = _TestManager()
manager.schedule_script = Mock()
manager.schedule_script.side_effect = ["999/2/1"]
manager._WorkFlowManager__on_start()
self.assertEqual(manager._available_resources, {manager.fooR: 1})
result = manager.workflow_loop()
self.assertTrue(result)
self.assertEqual(manager.schedule_script.call_count, 1)
manager.schedule_script.assert_called_with(["commandA"], tags=None, units=None, project_id=None)
# If commandA is still running, commandB should not get started.
manager.is_finished = lambda x: None
manager.schedule_script = Mock()
manager.schedule_script.side_effect = ["999/2/2"]
result = manager.workflow_loop()
self.assertTrue(result)
self.assertEqual(manager.schedule_script.call_count, 0)
manager.is_finished = lambda x: "finished"
result = manager.workflow_loop()
self.assertTrue(result)
self.assertEqual(manager.schedule_script.call_count, 1)
manager.schedule_script.assert_called_with(["commandB"], tags=None, units=None, project_id=None)
def test_job_required_alternative_resources(self):
"""Test alternative resources."""
class _TestManager(GraphManager):
project_id = 999
name = "test"
fooR = Resource("foo")
barR = Resource("bar")
def configure_workflow(self):
# define tasks
jobA = Task("jobA", command="commandA")
jobB = Task("jobB", command="commandB")
jobC = Task("jobC", command="commandC")
jobD = Task("jobD", command="commandD")
# set required resources
jobA.add_required_resources({self.fooR: 1})
jobB.add_required_resources({self.fooR: 1})
jobC.add_required_resources({self.fooR: 1})
jobC.add_required_resources({self.barR: 1})
jobD.add_required_resources({self.barR: 1})
return jobA, jobB, jobC, jobD
with script_args(
["--starting-job=jobA", "--starting-job=jobB", "--starting-job=jobC", "--starting-job=jobD",]
):
manager = _TestManager()
manager.schedule_script = Mock()
manager.schedule_script.side_effect = ["999/1/1", "999/3/1"]
manager._WorkFlowManager__on_start()
# First loop: can run jobA and jobC
result = manager.workflow_loop()
self.assertTrue(result)
manager.schedule_script.assert_any_call(["commandA"], tags=None, units=None, project_id=None)
manager.schedule_script.assert_any_call(["commandC"], tags=None, units=None, project_id=None)
# Second loop: if both commandA and command C are still running, nor commandB neither commandD can't start.
manager.is_finished = lambda x: None
manager.schedule_script.reset_mock()
result = manager.workflow_loop()
self.assertTrue(result)
self.assertEqual(manager.schedule_script.call_count, 0)
# third loop: commandC finishes so commandD can run
manager.is_finished = lambda x: "finished" if x == "999/3/1" else None
manager.schedule_script.side_effect = ["999/4/1"]
result = manager.workflow_loop()
self.assertTrue(result)
self.assertEqual(manager.schedule_script.call_count, 1)
manager.schedule_script.assert_called_with(["commandD"], tags=None, units=None, project_id=None)
# fourth loop: commandD finishes. commandB, can't still run
manager.schedule_script.reset_mock()
manager.is_finished = lambda x: "finished" if x == "999/4/1" else None
result = manager.workflow_loop()
self.assertTrue(result)
self.assertEqual(manager.schedule_script.call_count, 0)
# fifth loop: commandA finishes so commandB can run
manager.is_finished = lambda x: "finished"
manager.schedule_script.side_effect = ["999/2/1"]
result = manager.workflow_loop()
self.assertTrue(result)
self.assertEqual(manager.schedule_script.call_count, 1)
manager.schedule_script.assert_called_with(["commandB"], tags=None, units=None, project_id=None)
def test_parallel_job_required_resource(self):
"""If a job with required resource is parallel, divide the resource among all parallel subjobs"""
class _TestManager(GraphManager):
project_id = 999
name = "test"
fooR = Resource("foo")
def configure_workflow(self):
# define tasks
jobA = Task("jobA", command="{% for i in range(4) %}commandA --parg={{ i }}\n{% endfor %}",)
jobB = Task("jobB", command="commandB")
# set required resources
jobA.add_required_resources({self.fooR: 1})
jobB.add_required_resources({self.fooR: 1})
return jobA, jobB
with script_args(["--starting-job=jobA", "--starting-job=jobB"]):
manager = _TestManager()
def generate_job_keys(proj, spider):
for i in range(1000):
yield f"{proj}/{spider}/{i}"
manager.schedule_script = Mock(side_effect=generate_job_keys(999, 2))
manager._WorkFlowManager__on_start()
self.assertEqual(manager._available_resources, {manager.fooR: 1})
# First loop: schedule jobA
result = manager.workflow_loop()
self.assertTrue(result)
self.assertEqual(manager.schedule_script.call_count, 4)
calls = [call(["commandA", f"--parg={i}"], tags=None, units=None, project_id=None) for i in range(4)]
manager.schedule_script.assert_has_calls(calls)
# Second loop. If commandA is still running, commandB should not get started.
manager.is_finished = lambda x: None
manager.schedule_script.reset_mock()
result = manager.workflow_loop()
self.assertTrue(result)
self.assertEqual(manager.schedule_script.call_count, 0)
# Third loop. All jobA subjobs finished. Schedule jobB.
manager.is_finished = lambda x: "finished"
result = manager.workflow_loop()
self.assertTrue(result)
self.assertEqual(manager.schedule_script.call_count, 1)
manager.schedule_script.assert_called_with(["commandB"], tags=None, units=None, project_id=None)
def test_parallel_job_required_double_resource(self):
"""Double resources with parallel jobs"""
class _TestManager(GraphManager):
project_id = 999
name = "test"
fooR = Resource("foo")
barR = Resource("bar")
def configure_workflow(self):
# define tasks
jobA = Task("jobA", command="{% for i in range(4) %}commandA --parg={{ i }}\n{% endfor %}",)
jobB = Task("jobB", command="commandB")
jobC = Task("jobC", command="{% for i in range(4) %}commandC --parg={{ i }}\n{% endfor %}",)
# set required resources
jobA.add_required_resources({self.fooR: 1})
jobB.add_required_resources({self.fooR: 1})
jobB.add_required_resources({self.barR: 1})
jobC.add_required_resources({self.fooR: 1, self.barR: 1})
return jobA, jobB, jobC
with script_args(["--starting-job=jobA", "--starting-job=jobB", "--starting-job=jobC"]):
manager = _TestManager()
manager.schedule_script = Mock()
manager.schedule_script.side_effect = [f"999/1/{i}" for i in range(1, 5)] + ["999/2/1"]
manager._WorkFlowManager__on_start()
self.assertEqual(manager._available_resources, {manager.fooR: 1, manager.barR: 1})
# first loop: run jobA and jobB
result = manager.workflow_loop()
self.assertTrue(result)
self.assertEqual(manager.schedule_script.call_count, 5)
calls = [call(["commandA", f"--parg={i}"], tags=None, units=None, project_id=None) for i in range(4)] + [
call(["commandB"], tags=None, units=None, project_id=None)
]
manager.schedule_script.assert_has_calls(calls)
# If only jobA is finished, jobC can't run
manager.is_finished = lambda x: "finished" if x.startswith("999/1/") else None
manager.schedule_script.reset_mock()
result = manager.workflow_loop()
self.assertTrue(result)
self.assertEqual(manager.schedule_script.call_count, 0)
# finished jobB, jobC can run
manager.is_finished = lambda x: "finished"
manager.schedule_script.side_effect = [f"999/3/{i}" for i in range(1, 5)]
result = manager.workflow_loop()
self.assertTrue(result)
self.assertEqual(manager.schedule_script.call_count, 4)
calls = [call(["commandC", f"--parg={i}"], tags=None, units=None, project_id=None) for i in range(4)]
manager.schedule_script.assert_has_calls(calls)
def test_parallel_job_alternative_required_resource(self):
"""Alternative resources with parallel jobs"""
class _TestManager(GraphManager):
project_id = 999
name = "test"
fooR = Resource("foo")
barR = Resource("bar")
def configure_workflow(self):
# define tasks
jobA = Task("jobA", command="{% for i in range(4) %}commandA --parg={{ i }}\n{% endfor %}",)
jobB = Task("jobB", command="commandB")
jobC = Task("jobC", command="{% for i in range(4) %}commandC --parg={{ i }}\n{% endfor %}",)
# set required resources
jobA.add_required_resources({self.fooR: 1})
jobB.add_required_resources({self.fooR: 1})
jobB.add_required_resources({self.barR: 1})
jobC.add_required_resources({self.fooR: 1})
jobC.add_required_resources({self.barR: 1})
return jobA, jobB, jobC
with script_args(["--starting-job=jobA", "--starting-job=jobB", "--starting-job=jobC"]):
manager = _TestManager()
manager.schedule_script = Mock()
manager.schedule_script.side_effect = [f"999/1/{i}" for i in range(1, 5)] + ["999/2/1"]
manager._WorkFlowManager__on_start()
self.assertEqual(manager._available_resources, {manager.fooR: 1, manager.barR: 1})
# first loop: run commandA and command B
result = manager.workflow_loop()
self.assertTrue(result)
self.assertEqual(manager.schedule_script.call_count, 5)
calls = [call(["commandA", f"--parg={i}"], tags=None, units=None, project_id=None) for i in range(4)] + [
call(["commandB"], tags=None, units=None, project_id=None)
]
manager.schedule_script.assert_has_calls(calls)
# If any job is finished, jobC can run
manager.is_finished = lambda x: "finished" if x.startswith("999/1/") else None
manager.schedule_script.reset_mock()
manager.schedule_script.side_effect = [f"999/3/{i}" for i in range(1, 5)]
result = manager.workflow_loop()
self.assertTrue(result)
self.assertEqual(manager.schedule_script.call_count, 4)
calls = [call(["commandC", f"--parg={i}"], tags=None, units=None, project_id=None) for i in range(4)]
manager.schedule_script.assert_has_calls(calls)
def test_parallel_job_partial_resource(self):
"""When two parallel jobs share same resource, if one partially finishes,
the other can partially acquire the resource."""
class _TestManager(GraphManager):
project_id = 999
name = "test"
fooR = Resource("foo")
def configure_workflow(self):
# define tasks
jobA = Task("jobA", command="{% for i in range(4) %}commandA --parg={{ i }}\n{% endfor %}",)
jobC = Task("jobC", command="{% for i in range(4) %}commandC --parg={{ i }}\n{% endfor %}",)
# set required resources
jobA.add_required_resources({self.fooR: 1})
jobC.add_required_resources({self.fooR: 1})
return jobA, jobC
with script_args(["--starting-job=jobA", "--starting-job=jobC", "--max-running-job=3"]):
manager = _TestManager()
manager.schedule_script = Mock()
manager.schedule_script.side_effect = [f"999/1/{i}" for i in range(1, 5)] + [f"999/2/{i}" for i in range(1, 5)]
manager._WorkFlowManager__on_start()
# first loop: run three jobs of jobA
result = manager.workflow_loop()
self.assertTrue(result)
self.assertEqual(manager.schedule_script.call_count, 3)
calls = [call(["commandA", f"--parg={i}"], tags=None, units=None, project_id=None) for i in range(3)]
manager.schedule_script.assert_has_calls(calls)
# second loop: run remaining jobA and two jobC
manager.is_finished = lambda x: "finished"
manager.schedule_script.reset_mock()
result = manager.workflow_loop()
self.assertTrue(result)
self.assertEqual(manager.schedule_script.call_count, 3)
calls = [call(["commandA", "--parg=3"], tags=None, units=None, project_id=None)] + [
call(["commandC", f"--parg={i}"], tags=None, units=None, project_id=None) for i in range(2)
]
manager.schedule_script.assert_has_calls(calls)
# third loop: run remaining two jobC
manager.schedule_script.reset_mock()
result = manager.workflow_loop()
self.assertTrue(result)
self.assertEqual(manager.schedule_script.call_count, 2)
calls = [call(["commandC", f"--parg={i}"], tags=None, units=None, project_id=None) for i in range(2, 4)]
manager.schedule_script.assert_has_calls(calls)
def test_max_running_jobs(self):
"""
Test max running jobs
"""
class _TestManager(GraphManager):
project_id = 999
name = "test"
def configure_workflow(self):
# define tasks
jobA = Task("jobA", command="{% for i in range(4) %}commandA --parg={{ i }}\n{% endfor %}",)
jobB = Task("jobB", command="commandB")
return jobA, jobB
with script_args(["--starting-job=jobA", "--starting-job=jobB", "--max-running-jobs=2"]):
manager = _TestManager()
manager.is_finished = lambda x: None
manager.schedule_script = Mock()
manager._WorkFlowManager__on_start()
# will test that all 5 jobs (4 for A and 1 for B) will run one by one
side_effects = [f"999/1/{i+1}" for i in range(4)] + ["999/2/1"]
for i in range(3):
side_effect, side_effects = side_effects[:2], side_effects[2:]
manager.schedule_script.side_effect = side_effect
result = manager.workflow_loop()
self.assertTrue(result)
self.assertEqual(manager.schedule_script.call_count, len(side_effect))
manager.is_finished = lambda x: "finished"
manager.schedule_script.reset_mock()
result = manager.workflow_loop()
self.assertFalse(result)
def test_only_starting_jobs(self):
with script_args(["--starting-job=jobA", "--starting-job=jobB", "--only-starting-jobs"]):
manager = TestManager()
manager.is_finished = lambda x: None
manager.schedule_script = Mock()
manager._WorkFlowManager__on_start()
# first loop: job A and job B are scheduled
manager.schedule_script.side_effect = ["999/1/1", "999/2/1"]
result = manager.workflow_loop()
self.assertTrue(result)
self.assertEqual(manager.schedule_script.call_count, 2)
manager.is_finished = lambda x: "finished"
result = manager.workflow_loop()
self.assertFalse(result)
def test_multiple_parallel_arg_substitution(self):
class _TestManager(GraphManager):
project_id = 999
name = "test"
def configure_workflow(self):
command = """{% for i in range(4) %}commandB --config='{"topic": {{ i }}, "file": "ds_dump_{{ i }}"}'\n{% endfor %}"""
jobB = Task("jobB", command=command, init_args=["argB", "--optionB"])
return (jobB,)
with script_args(["--starting-job=jobB"]):
manager = _TestManager()
manager.schedule_script = Mock()
manager.schedule_script.side_effect = [
"999/2/1",
"999/2/2",
"999/2/3",
"999/2/4",
]
manager._WorkFlowManager__on_start()
result = manager.workflow_loop()
self.assertTrue(result)
for i in range(4):
manager.schedule_script.assert_any_call(
["commandB", f'--config={{"topic": {i}, "file": "ds_dump_{i}"}}', "argB", "--optionB",],
tags=None,
units=None,
project_id=None,
)
def test_custom_target_project_id(self):
class _TestManager(GraphManager):
project_id = 999
name = "test"
def configure_workflow(self):
jobB = Task(
"jobB",
command="""{% for i in range(4) %}commandB --config='{"topic": {{ i }}, "file": "ds_dump_{{ i }}"}'\n{% endfor %}""",
init_args=["argB", "--optionB"],
project_id=1999,
)
return (jobB,)
with script_args(["--starting-job=jobB"]):
manager = _TestManager()
manager.schedule_script = Mock()
manager.schedule_script.side_effect = [
"1999/2/1",
"1999/2/2",
"1999/2/3",
"1999/2/4",
]
manager._WorkFlowManager__on_start()
result = manager.workflow_loop()
self.assertTrue(result)
for i in range(4):
manager.schedule_script.assert_any_call(
["commandB", f'--config={{"topic": {i}, "file": "ds_dump_{i}"}}', "argB", "--optionB",],
tags=None,
units=None,
project_id=1999,
)
@patch("shub_workflow.graph.time")
def test_wait_time(self, mocked_time):
class _TestManager(GraphManager):
project_id = 999
name = "test"
def configure_workflow(self):
jobA = Task("jobA", "{% for i in range(4) %}commandA --parg={{ i }}\n{% endfor %}", wait_time=3600,)
jobB = Task("jobB", "commandB")
jobB.add_wait_for(jobA)
return (jobA, jobB)
mocked_time.side_effect = [0] * 8
with script_args(["--starting-job=jobA", "--starting-job=jobB"]):
manager = _TestManager()
manager.schedule_script = Mock()
manager._WorkFlowManager__on_start()
# first loop, jobA still can't run
self.assertTrue(manager.workflow_loop())
self.assertEqual(manager.schedule_script.call_count, 0)
# second loop, jobA can run now
mocked_time.side_effect = [3660] * 4
manager.schedule_script.side_effect = [f"999/1/{i}" for i in range(1, 5)]
self.assertTrue(manager.workflow_loop())
self.assertEqual(manager.schedule_script.call_count, 4)
calls = [call(["commandA", f"--parg={i}"], tags=None, units=None, project_id=None) for i in range(4)]
manager.schedule_script.assert_has_calls(calls)
# third loop: jobA finishes, can run jobB
manager.schedule_script.side_effect = ["999/2/1"]
manager.is_finished = lambda x: "finished"
self.assertTrue(manager.workflow_loop())
self.assertEqual(manager.schedule_script.call_count, 5)
manager.schedule_script.assert_called_with(["commandB"], tags=None, units=None, project_id=None)
# fourth loop: joB finishes, all finishes
self.assertFalse(manager.workflow_loop())
def test_spider_task(self):
class _TestManager(GraphManager):
project_id = 999
name = "test"
def configure_workflow(self):
# define jobs
jobS = SpiderTask(task_id="jobS", spider="myspiderS", tags=["tag1"], units=1, argA="valA", argB="valB",)
jobA = Task(task_id="jobA", command="commandA --optionA=A")
jobT = SpiderTask(task_id="jobT", spider="myspiderT", argC="valC", argD="valD")
# connect them
jobS.add_next_task(jobA)
jobA.add_next_task(jobT)
# return starting jobs
return (jobS,)
with script_args(["--starting-job=jobS"]):
manager = _TestManager()
manager.schedule_spider = Mock()
manager.schedule_spider.side_effect = ["999/1/1"]
manager._WorkFlowManager__on_start()
# first loop, run jobS
result = manager.workflow_loop()
self.assertTrue(result)
self.assertEqual(manager.schedule_spider.call_count, 1)
manager.schedule_spider.assert_any_call(
"myspiderS", tags=["tag1"], units=1, project_id=None, argA="valA", argB="valB",
)
| 40.356261
| 137
| 0.589474
| 8,027
| 68,646
| 4.85175
| 0.03999
| 0.100912
| 0.139119
| 0.055514
| 0.889896
| 0.874207
| 0.865015
| 0.852125
| 0.842419
| 0.818744
| 0
| 0.02345
| 0.284357
| 68,646
| 1,700
| 138
| 40.38
| 0.769308
| 0.090348
| 0
| 0.778931
| 0
| 0.002394
| 0.12518
| 0.000791
| 0
| 0
| 0
| 0
| 0.196329
| 1
| 0.047087
| false
| 0
| 0.006385
| 0
| 0.090982
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
db42e0377662e5973387957da24df6a8c2ec2ee7
| 10,279
|
py
|
Python
|
agency/algo/awac/network.py
|
jackharmer/agency
|
5a78dd23e14c44c4076e49ea44b83ab1697e51c8
|
[
"MIT"
] | 2
|
2022-03-30T19:51:42.000Z
|
2022-03-30T20:05:39.000Z
|
agency/algo/awac/network.py
|
jackharmer/agency
|
5a78dd23e14c44c4076e49ea44b83ab1697e51c8
|
[
"MIT"
] | null | null | null |
agency/algo/awac/network.py
|
jackharmer/agency
|
5a78dd23e14c44c4076e49ea44b83ab1697e51c8
|
[
"MIT"
] | null | null | null |
from dataclasses import dataclass
from typing import Any
import torch
from agency.algo.sac.network import (ContinuousDistParams, DiscreteDistParams,
MlpNetworkArchitecture,
VisionNetworkArchitecture)
from agency.layers.distributions import DiscretePolicy, GaussianPolicy
from agency.layers.feed_forward import (mlp, conv_encoder, GradientBlocker)
from agency.layers.policy_heads import PolicyHead
from agency.layers.value_heads import (QEncoder, QHead,
QVisionEncoder, soft_update)
from agency.tools.helpers import calculate_conv_output_size
@dataclass
class AwacParams:
beta: float = 0.2
adv_clip: float = 2.0
use_softmax: bool = False
@dataclass
class AwacData:
q1: Any
q2: Any
q1_target: Any
q2_target: Any
policy: Any
policy_params: Any
def __post_init__(self):
# update q target nets to have the same weights as q networks
self.update_target_weights(tau=1.0)
def update_target_weights(self, tau=0.005):
# update q target nets to have the same weights as q networks
soft_update(self.q1_target, self.q1, tau=tau)
soft_update(self.q2_target, self.q2, tau=tau)
def to(self, device):
self.q1.to(device)
self.q2.to(device)
self.q1_target.to(device)
self.q2_target.to(device)
self.policy.to(device)
return self
def create_continuous_network(
input_size: int,
arch: MlpNetworkArchitecture,
dist: ContinuousDistParams,
algo: AwacParams,
num_actions: int,
):
q_input_size = input_size + num_actions
q1_encoder = mlp(input_size=q_input_size, layer_sizes=arch.q_hidden_sizes)
q2_encoder = mlp(input_size=q_input_size, layer_sizes=arch.q_hidden_sizes)
q1_target_encoder = mlp(input_size=q_input_size, layer_sizes=arch.q_hidden_sizes)
q2_target_encoder = mlp(input_size=q_input_size, layer_sizes=arch.q_hidden_sizes)
policy_encoder = mlp(input_size=input_size, layer_sizes=arch.p_hidden_sizes)
policy_dist = GaussianPolicy(arch.p_hidden_sizes[-1], num_actions)
policy = PolicyHead(policy_encoder, policy_dist)
return AwacData(
q1=QHead(QEncoder(q1_encoder), input_size=arch.q_hidden_sizes[-1], output_size=1),
q2=QHead(QEncoder(q2_encoder), input_size=arch.q_hidden_sizes[-1], output_size=1),
q1_target=QHead(QEncoder(q1_target_encoder), input_size=arch.q_hidden_sizes[-1], output_size=1),
q2_target=QHead(QEncoder(q2_target_encoder), input_size=arch.q_hidden_sizes[-1], output_size=1),
policy=policy,
policy_params=list(policy.parameters())
)
def create_discrete_network(
input_size: int,
arch: MlpNetworkArchitecture,
dist: DiscreteDistParams,
algo: AwacParams,
num_actions: int,
):
q_input_size = input_size + num_actions
policy_encoder = mlp(input_size=input_size, layer_sizes=arch.p_hidden_sizes)
q1_encoder = mlp(input_size=q_input_size, layer_sizes=arch.q_hidden_sizes)
q2_encoder = mlp(input_size=q_input_size, layer_sizes=arch.q_hidden_sizes)
q1_target_encoder = mlp(input_size=q_input_size, layer_sizes=arch.q_hidden_sizes)
q2_target_encoder = mlp(input_size=q_input_size, layer_sizes=arch.q_hidden_sizes)
policy_dist = DiscretePolicy(arch.p_hidden_sizes[-1], num_actions, temperature=dist.temperature)
policy = PolicyHead(policy_encoder, policy_dist)
return AwacData(
q1=QHead(QEncoder(q1_encoder), input_size=arch.q_hidden_sizes[-1], output_size=1),
q2=QHead(QEncoder(q2_encoder), input_size=arch.q_hidden_sizes[-1], output_size=1),
q1_target=QHead(QEncoder(q1_target_encoder), input_size=arch.q_hidden_sizes[-1], output_size=1),
q2_target=QHead(QEncoder(q2_target_encoder), input_size=arch.q_hidden_sizes[-1], output_size=1),
policy=policy,
policy_params=list(policy.parameters())
)
def create_discrete_vision_network(
input_size: list[int],
arch: VisionNetworkArchitecture,
dist: DiscreteDistParams,
algo: AwacParams,
num_actions: int,
):
shared_enc_output_size = calculate_conv_output_size(
input_size[0:2],
arch.shared_enc_channels[-1],
arch.shared_enc_kernel_sizes,
arch.shared_enc_strides
)
q_input_size = shared_enc_output_size + num_actions
q_output_size = 1
def make_conv_encoder():
return torch.nn.Sequential(
conv_encoder(
input_channels=input_size[2],
layer_channels=arch.shared_enc_channels,
layer_kernels_sizes=arch.shared_enc_kernel_sizes,
layer_strides=arch.shared_enc_strides,
),
torch.nn.Flatten()
)
def make_q_encoder(_shared_encoder):
return QVisionEncoder(
_shared_encoder,
mlp(
input_size=q_input_size,
layer_sizes=arch.q_hidden_sizes,
)
)
if arch.use_shared_encoder:
shared_encoder = make_conv_encoder()
shared_target_encoder = make_conv_encoder()
policy_body = mlp(
input_size=shared_enc_output_size,
layer_sizes=arch.p_hidden_sizes,
)
policy_encoder = torch.nn.Sequential(
GradientBlocker(shared_encoder),
policy_body
)
q1_encoder = make_q_encoder(shared_encoder)
q2_encoder = make_q_encoder(shared_encoder)
# TODO: Shared_target_encoder will get updated twice when copying the weights.
# This shouldn't cause much of a problem though.
q1_target_encoder = make_q_encoder(shared_target_encoder)
q2_target_encoder = make_q_encoder(shared_target_encoder)
else:
policy_encoder = torch.nn.Sequential(
make_conv_encoder(),
mlp(
input_size=shared_enc_output_size,
layer_sizes=arch.p_hidden_sizes,
)
)
q1_encoder = make_q_encoder(make_conv_encoder())
q2_encoder = make_q_encoder(make_conv_encoder())
q1_target_encoder = make_q_encoder(make_conv_encoder())
q2_target_encoder = make_q_encoder(make_conv_encoder())
policy_dist = DiscretePolicy(arch.p_hidden_sizes[-1], num_actions, temperature=dist.temperature)
policy = PolicyHead(policy_encoder, policy_dist)
if arch.use_shared_encoder:
policy_params = list(policy_body.parameters()) + list(policy_dist.parameters())
else:
policy_params = list(policy.parameters())
net = AwacData(
q1=QHead(q1_encoder, input_size=arch.q_hidden_sizes[-1], output_size=q_output_size),
q2=QHead(q2_encoder, input_size=arch.q_hidden_sizes[-1], output_size=q_output_size),
q1_target=QHead(q1_target_encoder, input_size=arch.q_hidden_sizes[-1], output_size=q_output_size),
q2_target=QHead(q2_target_encoder, input_size=arch.q_hidden_sizes[-1], output_size=q_output_size),
policy=policy,
policy_params=policy_params
)
return net
def create_vision_network(
input_size: list[int],
arch: VisionNetworkArchitecture,
dist: ContinuousDistParams,
algo: AwacParams,
num_actions: int,
):
shared_enc_output_size = calculate_conv_output_size(
input_size[0:2],
arch.shared_enc_channels[-1],
arch.shared_enc_kernel_sizes,
arch.shared_enc_strides
)
q_input_size = shared_enc_output_size + num_actions
q_output_size = 1
def make_conv_encoder():
return torch.nn.Sequential(
conv_encoder(
input_channels=input_size[2],
layer_channels=arch.shared_enc_channels,
layer_kernels_sizes=arch.shared_enc_kernel_sizes,
layer_strides=arch.shared_enc_strides,
),
torch.nn.Flatten()
)
def make_q_encoder(_shared_encoder):
return QVisionEncoder(
_shared_encoder,
mlp(
input_size=q_input_size,
layer_sizes=arch.q_hidden_sizes,
)
)
if arch.use_shared_encoder:
shared_encoder = make_conv_encoder()
shared_target_encoder = make_conv_encoder()
policy_body = mlp(
input_size=shared_enc_output_size,
layer_sizes=arch.p_hidden_sizes,
)
policy_encoder = torch.nn.Sequential(
GradientBlocker(shared_encoder),
policy_body
)
q1_encoder = make_q_encoder(shared_encoder)
q2_encoder = make_q_encoder(shared_encoder)
# TODO: Shared_target_encoder will get updated twice when copying the weights.
# This shouldn't cause much of a problem though.
q1_target_encoder = make_q_encoder(shared_target_encoder)
q2_target_encoder = make_q_encoder(shared_target_encoder)
else:
policy_encoder = torch.nn.Sequential(
make_conv_encoder(),
mlp(
input_size=shared_enc_output_size,
layer_sizes=arch.p_hidden_sizes,
)
)
q1_encoder = make_q_encoder(make_conv_encoder())
q2_encoder = make_q_encoder(make_conv_encoder())
q1_target_encoder = make_q_encoder(make_conv_encoder())
q2_target_encoder = make_q_encoder(make_conv_encoder())
policy_dist = GaussianPolicy(arch.p_hidden_sizes[-1], num_actions)
policy = PolicyHead(policy_encoder, policy_dist)
if arch.use_shared_encoder:
policy_params = list(policy_body.parameters()) + list(policy_dist.parameters())
else:
policy_params = list(policy.parameters())
net = AwacData(
q1=QHead(q1_encoder, input_size=arch.q_hidden_sizes[-1], output_size=q_output_size),
q2=QHead(q2_encoder, input_size=arch.q_hidden_sizes[-1], output_size=q_output_size),
q1_target=QHead(q1_target_encoder, input_size=arch.q_hidden_sizes[-1], output_size=q_output_size),
q2_target=QHead(q2_target_encoder, input_size=arch.q_hidden_sizes[-1], output_size=q_output_size),
policy=policy,
policy_params=policy_params
)
return net
| 36.97482
| 106
| 0.681876
| 1,322
| 10,279
| 4.903177
| 0.091528
| 0.080531
| 0.044122
| 0.064178
| 0.862388
| 0.862388
| 0.862388
| 0.835545
| 0.835545
| 0.816415
| 0
| 0.014783
| 0.236599
| 10,279
| 278
| 107
| 36.97482
| 0.811265
| 0.035704
| 0
| 0.746781
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.003597
| 0
| 1
| 0.04721
| false
| 0
| 0.038627
| 0.017167
| 0.171674
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
db56d775113fb06f8edbf503f5d72c9f5ce74031
| 25,774
|
py
|
Python
|
Lib/site-packages/OCC/UnitsAPI.py
|
JWerbrouck/RWTH_M1_Projekt
|
7ae63a2277361fa3273cf0677b297379482b8240
|
[
"bzip2-1.0.6"
] | null | null | null |
Lib/site-packages/OCC/UnitsAPI.py
|
JWerbrouck/RWTH_M1_Projekt
|
7ae63a2277361fa3273cf0677b297379482b8240
|
[
"bzip2-1.0.6"
] | 1
|
2022-03-17T16:46:04.000Z
|
2022-03-17T16:46:04.000Z
|
Lib/site-packages/OCC/UnitsAPI.py
|
JWerbrouck/RWTH_M1_Projekt
|
7ae63a2277361fa3273cf0677b297379482b8240
|
[
"bzip2-1.0.6"
] | null | null | null |
# This file was automatically generated by SWIG (http://www.swig.org).
# Version 3.0.1
#
# Do not make changes to this file unless you know what you are doing--modify
# the SWIG interface file instead.
from sys import version_info
if version_info >= (3,0,0):
new_instancemethod = lambda func, inst, cls: _UnitsAPI.SWIG_PyInstanceMethod_New(func)
else:
from new import instancemethod as new_instancemethod
if version_info >= (2,6,0):
def swig_import_helper():
from os.path import dirname
import imp
fp = None
try:
fp, pathname, description = imp.find_module('_UnitsAPI', [dirname(__file__)])
except ImportError:
import _UnitsAPI
return _UnitsAPI
if fp is not None:
try:
_mod = imp.load_module('_UnitsAPI', fp, pathname, description)
finally:
fp.close()
return _mod
_UnitsAPI = swig_import_helper()
del swig_import_helper
else:
import _UnitsAPI
del version_info
try:
_swig_property = property
except NameError:
pass # Python < 2.2 doesn't have 'property'.
def _swig_setattr_nondynamic(self,class_type,name,value,static=1):
if (name == "thisown"): return self.this.own(value)
if (name == "this"):
if type(value).__name__ == 'SwigPyObject':
self.__dict__[name] = value
return
method = class_type.__swig_setmethods__.get(name,None)
if method: return method(self,value)
if (not static):
self.__dict__[name] = value
else:
raise AttributeError("You cannot add attributes to %s" % self)
def _swig_setattr(self,class_type,name,value):
return _swig_setattr_nondynamic(self,class_type,name,value,0)
def _swig_getattr(self,class_type,name):
if (name == "thisown"): return self.this.own()
method = class_type.__swig_getmethods__.get(name,None)
if method: return method(self)
raise AttributeError(name)
def _swig_repr(self):
try: strthis = "proxy of " + self.this.__repr__()
except: strthis = ""
return "<%s.%s; %s >" % (self.__class__.__module__, self.__class__.__name__, strthis,)
try:
_object = object
_newclass = 1
except AttributeError:
class _object : pass
_newclass = 0
def _swig_setattr_nondynamic_method(set):
def set_attr(self,name,value):
if (name == "thisown"): return self.this.own(value)
if hasattr(self,name) or (name == "this"):
set(self,name,value)
else:
raise AttributeError("You cannot add attributes to %s" % self)
return set_attr
class SwigPyIterator(object):
thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
def __init__(self, *args, **kwargs): raise AttributeError("No constructor defined - class is abstract")
__repr__ = _swig_repr
__swig_destroy__ = _UnitsAPI.delete_SwigPyIterator
def __iter__(self): return self
SwigPyIterator.value = new_instancemethod(_UnitsAPI.SwigPyIterator_value,None,SwigPyIterator)
SwigPyIterator.incr = new_instancemethod(_UnitsAPI.SwigPyIterator_incr,None,SwigPyIterator)
SwigPyIterator.decr = new_instancemethod(_UnitsAPI.SwigPyIterator_decr,None,SwigPyIterator)
SwigPyIterator.distance = new_instancemethod(_UnitsAPI.SwigPyIterator_distance,None,SwigPyIterator)
SwigPyIterator.equal = new_instancemethod(_UnitsAPI.SwigPyIterator_equal,None,SwigPyIterator)
SwigPyIterator.copy = new_instancemethod(_UnitsAPI.SwigPyIterator_copy,None,SwigPyIterator)
SwigPyIterator.next = new_instancemethod(_UnitsAPI.SwigPyIterator_next,None,SwigPyIterator)
SwigPyIterator.__next__ = new_instancemethod(_UnitsAPI.SwigPyIterator___next__,None,SwigPyIterator)
SwigPyIterator.previous = new_instancemethod(_UnitsAPI.SwigPyIterator_previous,None,SwigPyIterator)
SwigPyIterator.advance = new_instancemethod(_UnitsAPI.SwigPyIterator_advance,None,SwigPyIterator)
SwigPyIterator.__eq__ = new_instancemethod(_UnitsAPI.SwigPyIterator___eq__,None,SwigPyIterator)
SwigPyIterator.__ne__ = new_instancemethod(_UnitsAPI.SwigPyIterator___ne__,None,SwigPyIterator)
SwigPyIterator.__iadd__ = new_instancemethod(_UnitsAPI.SwigPyIterator___iadd__,None,SwigPyIterator)
SwigPyIterator.__isub__ = new_instancemethod(_UnitsAPI.SwigPyIterator___isub__,None,SwigPyIterator)
SwigPyIterator.__add__ = new_instancemethod(_UnitsAPI.SwigPyIterator___add__,None,SwigPyIterator)
SwigPyIterator.__sub__ = new_instancemethod(_UnitsAPI.SwigPyIterator___sub__,None,SwigPyIterator)
SwigPyIterator_swigregister = _UnitsAPI.SwigPyIterator_swigregister
SwigPyIterator_swigregister(SwigPyIterator)
import OCC.Standard
import OCC.Units
import OCC.TCollection
import OCC.MMgt
import OCC.TColStd
UnitsAPI_DEFAULT = _UnitsAPI.UnitsAPI_DEFAULT
UnitsAPI_SI = _UnitsAPI.UnitsAPI_SI
UnitsAPI_MDTV = _UnitsAPI.UnitsAPI_MDTV
class unitsapi(object):
thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
__repr__ = _swig_repr
def CurrentToLS(*args):
"""
* Converts the current unit value to the local system units value. Example: CurrentToLS(1.,'LENGTH') returns 1000. if the current length unit is meter and LocalSystem is MDTV.
:param aData:
:type aData: float
:param aQuantity:
:type aQuantity: char *
:rtype: float
"""
return _UnitsAPI.unitsapi_CurrentToLS(*args)
CurrentToLS = staticmethod(CurrentToLS)
def CurrentToSI(*args):
"""
* Converts the current unit value to the SI system units value. Example: CurrentToSI(1.,'LENGTH') returns 0.001 if current length unit is millimeter.
:param aData:
:type aData: float
:param aQuantity:
:type aQuantity: char *
:rtype: float
"""
return _UnitsAPI.unitsapi_CurrentToSI(*args)
CurrentToSI = staticmethod(CurrentToSI)
def CurrentFromLS(*args):
"""
* Converts the local system units value to the current unit value. Example: CurrentFromLS(1000.,'LENGTH') returns 1. if current length unit is meter and LocalSystem is MDTV.
:param aData:
:type aData: float
:param aQuantity:
:type aQuantity: char *
:rtype: float
"""
return _UnitsAPI.unitsapi_CurrentFromLS(*args)
CurrentFromLS = staticmethod(CurrentFromLS)
def CurrentFromSI(*args):
"""
* Converts the SI system units value to the current unit value. Example: CurrentFromSI(0.001,'LENGTH') returns 1 if current length unit is millimeter.
:param aData:
:type aData: float
:param aQuantity:
:type aQuantity: char *
:rtype: float
"""
return _UnitsAPI.unitsapi_CurrentFromSI(*args)
CurrentFromSI = staticmethod(CurrentFromSI)
def AnyToLS(*args):
"""
* Converts the local unit value to the local system units value. Example: AnyToLS(1.,'in.') returns 25.4 if the LocalSystem is MDTV.
:param aData:
:type aData: float
:param aUnit:
:type aUnit: char *
:rtype: float
* Converts the local unit value to the local system units value. and gives the associated dimension of the unit
:param aData:
:type aData: float
:param aUnit:
:type aUnit: char *
:param aDim:
:type aDim: Handle_Units_Dimensions &
:rtype: float
"""
return _UnitsAPI.unitsapi_AnyToLS(*args)
AnyToLS = staticmethod(AnyToLS)
def AnyToSI(*args):
"""
* Converts the local unit value to the SI system units value. Example: AnyToSI(1.,'in.') returns 0.0254
:param aData:
:type aData: float
:param aUnit:
:type aUnit: char *
:rtype: float
* Converts the local unit value to the SI system units value. and gives the associated dimension of the unit
:param aData:
:type aData: float
:param aUnit:
:type aUnit: char *
:param aDim:
:type aDim: Handle_Units_Dimensions &
:rtype: float
"""
return _UnitsAPI.unitsapi_AnyToSI(*args)
AnyToSI = staticmethod(AnyToSI)
def AnyFromLS(*args):
"""
* Converts the local system units value to the local unit value. Example: AnyFromLS(25.4,'in.') returns 1. if the LocalSystem is MDTV. Note: aUnit is also used to identify the type of physical quantity to convert.
:param aData:
:type aData: float
:param aUnit:
:type aUnit: char *
:rtype: float
"""
return _UnitsAPI.unitsapi_AnyFromLS(*args)
AnyFromLS = staticmethod(AnyFromLS)
def AnyFromSI(*args):
"""
* Converts the SI system units value to the local unit value. Example: AnyFromSI(0.0254,'in.') returns 0.001 Note: aUnit is also used to identify the type of physical quantity to convert.
:param aData:
:type aData: float
:param aUnit:
:type aUnit: char *
:rtype: float
"""
return _UnitsAPI.unitsapi_AnyFromSI(*args)
AnyFromSI = staticmethod(AnyFromSI)
def CurrentToAny(*args):
"""
* Converts the aData value expressed in the current unit for the working environment, as defined for the physical quantity aQuantity by the last call to the SetCurrentUnit function, into the unit aUnit.
:param aData:
:type aData: float
:param aQuantity:
:type aQuantity: char *
:param aUnit:
:type aUnit: char *
:rtype: float
"""
return _UnitsAPI.unitsapi_CurrentToAny(*args)
CurrentToAny = staticmethod(CurrentToAny)
def CurrentFromAny(*args):
"""
* Converts the aData value expressed in the unit aUnit, into the current unit for the working environment, as defined for the physical quantity aQuantity by the last call to the SetCurrentUnit function.
:param aData:
:type aData: float
:param aQuantity:
:type aQuantity: char *
:param aUnit:
:type aUnit: char *
:rtype: float
"""
return _UnitsAPI.unitsapi_CurrentFromAny(*args)
CurrentFromAny = staticmethod(CurrentFromAny)
def AnyToAny(*args):
"""
* Converts the local unit value to another local unit value. Example: AnyToAny(0.0254,'in.','millimeter') returns 1. ;
:param aData:
:type aData: float
:param aUnit1:
:type aUnit1: char *
:param aUnit2:
:type aUnit2: char *
:rtype: float
"""
return _UnitsAPI.unitsapi_AnyToAny(*args)
AnyToAny = staticmethod(AnyToAny)
def LSToSI(*args):
"""
* Converts the local system units value to the SI system unit value. Example: LSToSI(1.,'LENGTH') returns 0.001 if the local system //! length unit is millimeter.
:param aData:
:type aData: float
:param aQuantity:
:type aQuantity: char *
:rtype: float
"""
return _UnitsAPI.unitsapi_LSToSI(*args)
LSToSI = staticmethod(LSToSI)
def SIToLS(*args):
"""
* Converts the SI system unit value to the local system units value. Example: SIToLS(1.,'LENGTH') returns 1000. if the local system //! length unit is millimeter.
:param aData:
:type aData: float
:param aQuantity:
:type aQuantity: char *
:rtype: float
"""
return _UnitsAPI.unitsapi_SIToLS(*args)
SIToLS = staticmethod(SIToLS)
def SetLocalSystem(*args):
"""
* Sets the local system units. Example: SetLocalSystem(UnitsAPI_MDTV)
:param aSystemUnit: default value is UnitsAPI_SI
:type aSystemUnit: UnitsAPI_SystemUnits
:rtype: void
"""
return _UnitsAPI.unitsapi_SetLocalSystem(*args)
SetLocalSystem = staticmethod(SetLocalSystem)
def LocalSystem(*args):
"""
* Returns the current local system units.
:rtype: UnitsAPI_SystemUnits
"""
return _UnitsAPI.unitsapi_LocalSystem(*args)
LocalSystem = staticmethod(LocalSystem)
def SetCurrentUnit(*args):
"""
* Sets the current unit dimension <aUnit> to the unit quantity <aQuantity>. Example: SetCurrentUnit('LENGTH','millimeter')
:param aQuantity:
:type aQuantity: char *
:param aUnit:
:type aUnit: char *
:rtype: void
"""
return _UnitsAPI.unitsapi_SetCurrentUnit(*args)
SetCurrentUnit = staticmethod(SetCurrentUnit)
def CurrentUnit(*args):
"""
* Returns the current unit dimension <aUnit> from the unit quantity <aQuantity>.
:param aQuantity:
:type aQuantity: char *
:rtype: char *
"""
return _UnitsAPI.unitsapi_CurrentUnit(*args)
CurrentUnit = staticmethod(CurrentUnit)
def Save(*args):
"""
* saves the units in the file .CurrentUnits of the directory pointed by the CSF_CurrentUnitsUserDefaults environment variable.
:rtype: void
"""
return _UnitsAPI.unitsapi_Save(*args)
Save = staticmethod(Save)
def Reload(*args):
"""
:rtype: void
"""
return _UnitsAPI.unitsapi_Reload(*args)
Reload = staticmethod(Reload)
def Dimensions(*args):
"""
* return the dimension associated to the quantity
:param aQuantity:
:type aQuantity: char *
:rtype: Handle_Units_Dimensions
"""
return _UnitsAPI.unitsapi_Dimensions(*args)
Dimensions = staticmethod(Dimensions)
def DimensionLess(*args):
"""
:rtype: Handle_Units_Dimensions
"""
return _UnitsAPI.unitsapi_DimensionLess(*args)
DimensionLess = staticmethod(DimensionLess)
def DimensionMass(*args):
"""
:rtype: Handle_Units_Dimensions
"""
return _UnitsAPI.unitsapi_DimensionMass(*args)
DimensionMass = staticmethod(DimensionMass)
def DimensionLength(*args):
"""
:rtype: Handle_Units_Dimensions
"""
return _UnitsAPI.unitsapi_DimensionLength(*args)
DimensionLength = staticmethod(DimensionLength)
def DimensionTime(*args):
"""
:rtype: Handle_Units_Dimensions
"""
return _UnitsAPI.unitsapi_DimensionTime(*args)
DimensionTime = staticmethod(DimensionTime)
def DimensionElectricCurrent(*args):
"""
:rtype: Handle_Units_Dimensions
"""
return _UnitsAPI.unitsapi_DimensionElectricCurrent(*args)
DimensionElectricCurrent = staticmethod(DimensionElectricCurrent)
def DimensionThermodynamicTemperature(*args):
"""
:rtype: Handle_Units_Dimensions
"""
return _UnitsAPI.unitsapi_DimensionThermodynamicTemperature(*args)
DimensionThermodynamicTemperature = staticmethod(DimensionThermodynamicTemperature)
def DimensionAmountOfSubstance(*args):
"""
:rtype: Handle_Units_Dimensions
"""
return _UnitsAPI.unitsapi_DimensionAmountOfSubstance(*args)
DimensionAmountOfSubstance = staticmethod(DimensionAmountOfSubstance)
def DimensionLuminousIntensity(*args):
"""
:rtype: Handle_Units_Dimensions
"""
return _UnitsAPI.unitsapi_DimensionLuminousIntensity(*args)
DimensionLuminousIntensity = staticmethod(DimensionLuminousIntensity)
def DimensionPlaneAngle(*args):
"""
:rtype: Handle_Units_Dimensions
"""
return _UnitsAPI.unitsapi_DimensionPlaneAngle(*args)
DimensionPlaneAngle = staticmethod(DimensionPlaneAngle)
def DimensionSolidAngle(*args):
"""
* Returns the basic dimensions.
:rtype: Handle_Units_Dimensions
"""
return _UnitsAPI.unitsapi_DimensionSolidAngle(*args)
DimensionSolidAngle = staticmethod(DimensionSolidAngle)
def Check(*args):
"""
* Checks the coherence between the quantity <aQuantity> and the unit <aUnits> in the current system and //! returns False when it's WRONG.
:param aQuantity:
:type aQuantity: char *
:param aUnit:
:type aUnit: char *
:rtype: bool
"""
return _UnitsAPI.unitsapi_Check(*args)
Check = staticmethod(Check)
def __init__(self):
_UnitsAPI.unitsapi_swiginit(self,_UnitsAPI.new_unitsapi())
def __del__(self):
try:
self.thisown = False
GarbageCollector.garbage.collect_object(self)
except:
pass
unitsapi._kill_pointed = new_instancemethod(_UnitsAPI.unitsapi__kill_pointed,None,unitsapi)
unitsapi_swigregister = _UnitsAPI.unitsapi_swigregister
unitsapi_swigregister(unitsapi)
def unitsapi_CurrentToLS(*args):
"""
* Converts the current unit value to the local system units value. Example: CurrentToLS(1.,'LENGTH') returns 1000. if the current length unit is meter and LocalSystem is MDTV.
:param aData:
:type aData: float
:param aQuantity:
:type aQuantity: char *
:rtype: float
"""
return _UnitsAPI.unitsapi_CurrentToLS(*args)
def unitsapi_CurrentToSI(*args):
"""
* Converts the current unit value to the SI system units value. Example: CurrentToSI(1.,'LENGTH') returns 0.001 if current length unit is millimeter.
:param aData:
:type aData: float
:param aQuantity:
:type aQuantity: char *
:rtype: float
"""
return _UnitsAPI.unitsapi_CurrentToSI(*args)
def unitsapi_CurrentFromLS(*args):
"""
* Converts the local system units value to the current unit value. Example: CurrentFromLS(1000.,'LENGTH') returns 1. if current length unit is meter and LocalSystem is MDTV.
:param aData:
:type aData: float
:param aQuantity:
:type aQuantity: char *
:rtype: float
"""
return _UnitsAPI.unitsapi_CurrentFromLS(*args)
def unitsapi_CurrentFromSI(*args):
"""
* Converts the SI system units value to the current unit value. Example: CurrentFromSI(0.001,'LENGTH') returns 1 if current length unit is millimeter.
:param aData:
:type aData: float
:param aQuantity:
:type aQuantity: char *
:rtype: float
"""
return _UnitsAPI.unitsapi_CurrentFromSI(*args)
def unitsapi_AnyToLS(*args):
"""
* Converts the local unit value to the local system units value. Example: AnyToLS(1.,'in.') returns 25.4 if the LocalSystem is MDTV.
:param aData:
:type aData: float
:param aUnit:
:type aUnit: char *
:rtype: float
* Converts the local unit value to the local system units value. and gives the associated dimension of the unit
:param aData:
:type aData: float
:param aUnit:
:type aUnit: char *
:param aDim:
:type aDim: Handle_Units_Dimensions &
:rtype: float
"""
return _UnitsAPI.unitsapi_AnyToLS(*args)
def unitsapi_AnyToSI(*args):
"""
* Converts the local unit value to the SI system units value. Example: AnyToSI(1.,'in.') returns 0.0254
:param aData:
:type aData: float
:param aUnit:
:type aUnit: char *
:rtype: float
* Converts the local unit value to the SI system units value. and gives the associated dimension of the unit
:param aData:
:type aData: float
:param aUnit:
:type aUnit: char *
:param aDim:
:type aDim: Handle_Units_Dimensions &
:rtype: float
"""
return _UnitsAPI.unitsapi_AnyToSI(*args)
def unitsapi_AnyFromLS(*args):
"""
* Converts the local system units value to the local unit value. Example: AnyFromLS(25.4,'in.') returns 1. if the LocalSystem is MDTV. Note: aUnit is also used to identify the type of physical quantity to convert.
:param aData:
:type aData: float
:param aUnit:
:type aUnit: char *
:rtype: float
"""
return _UnitsAPI.unitsapi_AnyFromLS(*args)
def unitsapi_AnyFromSI(*args):
"""
* Converts the SI system units value to the local unit value. Example: AnyFromSI(0.0254,'in.') returns 0.001 Note: aUnit is also used to identify the type of physical quantity to convert.
:param aData:
:type aData: float
:param aUnit:
:type aUnit: char *
:rtype: float
"""
return _UnitsAPI.unitsapi_AnyFromSI(*args)
def unitsapi_CurrentToAny(*args):
"""
* Converts the aData value expressed in the current unit for the working environment, as defined for the physical quantity aQuantity by the last call to the SetCurrentUnit function, into the unit aUnit.
:param aData:
:type aData: float
:param aQuantity:
:type aQuantity: char *
:param aUnit:
:type aUnit: char *
:rtype: float
"""
return _UnitsAPI.unitsapi_CurrentToAny(*args)
def unitsapi_CurrentFromAny(*args):
"""
* Converts the aData value expressed in the unit aUnit, into the current unit for the working environment, as defined for the physical quantity aQuantity by the last call to the SetCurrentUnit function.
:param aData:
:type aData: float
:param aQuantity:
:type aQuantity: char *
:param aUnit:
:type aUnit: char *
:rtype: float
"""
return _UnitsAPI.unitsapi_CurrentFromAny(*args)
def unitsapi_AnyToAny(*args):
"""
* Converts the local unit value to another local unit value. Example: AnyToAny(0.0254,'in.','millimeter') returns 1. ;
:param aData:
:type aData: float
:param aUnit1:
:type aUnit1: char *
:param aUnit2:
:type aUnit2: char *
:rtype: float
"""
return _UnitsAPI.unitsapi_AnyToAny(*args)
def unitsapi_LSToSI(*args):
"""
* Converts the local system units value to the SI system unit value. Example: LSToSI(1.,'LENGTH') returns 0.001 if the local system //! length unit is millimeter.
:param aData:
:type aData: float
:param aQuantity:
:type aQuantity: char *
:rtype: float
"""
return _UnitsAPI.unitsapi_LSToSI(*args)
def unitsapi_SIToLS(*args):
"""
* Converts the SI system unit value to the local system units value. Example: SIToLS(1.,'LENGTH') returns 1000. if the local system //! length unit is millimeter.
:param aData:
:type aData: float
:param aQuantity:
:type aQuantity: char *
:rtype: float
"""
return _UnitsAPI.unitsapi_SIToLS(*args)
def unitsapi_SetLocalSystem(*args):
"""
* Sets the local system units. Example: SetLocalSystem(UnitsAPI_MDTV)
:param aSystemUnit: default value is UnitsAPI_SI
:type aSystemUnit: UnitsAPI_SystemUnits
:rtype: void
"""
return _UnitsAPI.unitsapi_SetLocalSystem(*args)
def unitsapi_LocalSystem(*args):
"""
* Returns the current local system units.
:rtype: UnitsAPI_SystemUnits
"""
return _UnitsAPI.unitsapi_LocalSystem(*args)
def unitsapi_SetCurrentUnit(*args):
"""
* Sets the current unit dimension <aUnit> to the unit quantity <aQuantity>. Example: SetCurrentUnit('LENGTH','millimeter')
:param aQuantity:
:type aQuantity: char *
:param aUnit:
:type aUnit: char *
:rtype: void
"""
return _UnitsAPI.unitsapi_SetCurrentUnit(*args)
def unitsapi_CurrentUnit(*args):
"""
* Returns the current unit dimension <aUnit> from the unit quantity <aQuantity>.
:param aQuantity:
:type aQuantity: char *
:rtype: char *
"""
return _UnitsAPI.unitsapi_CurrentUnit(*args)
def unitsapi_Save(*args):
"""
* saves the units in the file .CurrentUnits of the directory pointed by the CSF_CurrentUnitsUserDefaults environment variable.
:rtype: void
"""
return _UnitsAPI.unitsapi_Save(*args)
def unitsapi_Reload(*args):
"""
:rtype: void
"""
return _UnitsAPI.unitsapi_Reload(*args)
def unitsapi_Dimensions(*args):
"""
* return the dimension associated to the quantity
:param aQuantity:
:type aQuantity: char *
:rtype: Handle_Units_Dimensions
"""
return _UnitsAPI.unitsapi_Dimensions(*args)
def unitsapi_DimensionLess(*args):
"""
:rtype: Handle_Units_Dimensions
"""
return _UnitsAPI.unitsapi_DimensionLess(*args)
def unitsapi_DimensionMass(*args):
"""
:rtype: Handle_Units_Dimensions
"""
return _UnitsAPI.unitsapi_DimensionMass(*args)
def unitsapi_DimensionLength(*args):
"""
:rtype: Handle_Units_Dimensions
"""
return _UnitsAPI.unitsapi_DimensionLength(*args)
def unitsapi_DimensionTime(*args):
"""
:rtype: Handle_Units_Dimensions
"""
return _UnitsAPI.unitsapi_DimensionTime(*args)
def unitsapi_DimensionElectricCurrent(*args):
"""
:rtype: Handle_Units_Dimensions
"""
return _UnitsAPI.unitsapi_DimensionElectricCurrent(*args)
def unitsapi_DimensionThermodynamicTemperature(*args):
"""
:rtype: Handle_Units_Dimensions
"""
return _UnitsAPI.unitsapi_DimensionThermodynamicTemperature(*args)
def unitsapi_DimensionAmountOfSubstance(*args):
"""
:rtype: Handle_Units_Dimensions
"""
return _UnitsAPI.unitsapi_DimensionAmountOfSubstance(*args)
def unitsapi_DimensionLuminousIntensity(*args):
"""
:rtype: Handle_Units_Dimensions
"""
return _UnitsAPI.unitsapi_DimensionLuminousIntensity(*args)
def unitsapi_DimensionPlaneAngle(*args):
"""
:rtype: Handle_Units_Dimensions
"""
return _UnitsAPI.unitsapi_DimensionPlaneAngle(*args)
def unitsapi_DimensionSolidAngle(*args):
"""
* Returns the basic dimensions.
:rtype: Handle_Units_Dimensions
"""
return _UnitsAPI.unitsapi_DimensionSolidAngle(*args)
def unitsapi_Check(*args):
"""
* Checks the coherence between the quantity <aQuantity> and the unit <aUnits> in the current system and //! returns False when it's WRONG.
:param aQuantity:
:type aQuantity: char *
:param aUnit:
:type aUnit: char *
:rtype: bool
"""
return _UnitsAPI.unitsapi_Check(*args)
| 29.591274
| 221
| 0.677039
| 2,830
| 25,774
| 5.992933
| 0.089046
| 0.065094
| 0.080425
| 0.033608
| 0.725236
| 0.723939
| 0.723939
| 0.72217
| 0.712972
| 0.702594
| 0
| 0.007118
| 0.231435
| 25,774
| 870
| 222
| 29.625287
| 0.849059
| 0.425002
| 0
| 0.317164
| 1
| 0
| 0.018003
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.272388
| false
| 0.011194
| 0.05597
| 0.007463
| 0.727612
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 1
| 0
|
0
| 8
|
db74ff38c3c560ab6a77c864cd3e70b51a6e0db5
| 11,376
|
py
|
Python
|
terrascript/alicloud/d.py
|
jackluo923/python-terrascript
|
ed4b626e6d28621ea1b02fc16f7277a094d89830
|
[
"BSD-2-Clause"
] | 4
|
2022-02-07T21:08:14.000Z
|
2022-03-03T04:41:28.000Z
|
terrascript/alicloud/d.py
|
jackluo923/python-terrascript
|
ed4b626e6d28621ea1b02fc16f7277a094d89830
|
[
"BSD-2-Clause"
] | null | null | null |
terrascript/alicloud/d.py
|
jackluo923/python-terrascript
|
ed4b626e6d28621ea1b02fc16f7277a094d89830
|
[
"BSD-2-Clause"
] | 2
|
2022-02-06T01:49:42.000Z
|
2022-02-08T14:15:00.000Z
|
# terrascript/alicloud/d.py
import terrascript
class alicloud_account(terrascript.Data):
pass
class alicloud_caller_identity(terrascript.Data):
pass
class alicloud_images(terrascript.Data):
pass
class alicloud_regions(terrascript.Data):
pass
class alicloud_zones(terrascript.Data):
pass
class alicloud_db_zones(terrascript.Data):
pass
class alicloud_instance_type_families(terrascript.Data):
pass
class alicloud_instance_types(terrascript.Data):
pass
class alicloud_instances(terrascript.Data):
pass
class alicloud_disks(terrascript.Data):
pass
class alicloud_network_interfaces(terrascript.Data):
pass
class alicloud_snapshots(terrascript.Data):
pass
class alicloud_vpcs(terrascript.Data):
pass
class alicloud_vswitches(terrascript.Data):
pass
class alicloud_eips(terrascript.Data):
pass
class alicloud_key_pairs(terrascript.Data):
pass
class alicloud_kms_keys(terrascript.Data):
pass
class alicloud_kms_ciphertext(terrascript.Data):
pass
class alicloud_kms_plaintext(terrascript.Data):
pass
class alicloud_dns_resolution_lines(terrascript.Data):
pass
class alicloud_dns_domains(terrascript.Data):
pass
class alicloud_dns_groups(terrascript.Data):
pass
class alicloud_dns_records(terrascript.Data):
pass
class alicloud_dns_domain_groups(terrascript.Data):
pass
class alicloud_dns_domain_records(terrascript.Data):
pass
class alicloud_ram_account_alias(terrascript.Data):
pass
class alicloud_ram_account_aliases(terrascript.Data):
pass
class alicloud_ram_groups(terrascript.Data):
pass
class alicloud_ram_users(terrascript.Data):
pass
class alicloud_ram_roles(terrascript.Data):
pass
class alicloud_ram_policies(terrascript.Data):
pass
class alicloud_security_groups(terrascript.Data):
pass
class alicloud_security_group_rules(terrascript.Data):
pass
class alicloud_slbs(terrascript.Data):
pass
class alicloud_slb_attachments(terrascript.Data):
pass
class alicloud_slb_backend_servers(terrascript.Data):
pass
class alicloud_slb_listeners(terrascript.Data):
pass
class alicloud_slb_rules(terrascript.Data):
pass
class alicloud_slb_server_groups(terrascript.Data):
pass
class alicloud_slb_master_slave_server_groups(terrascript.Data):
pass
class alicloud_slb_acls(terrascript.Data):
pass
class alicloud_slb_server_certificates(terrascript.Data):
pass
class alicloud_slb_ca_certificates(terrascript.Data):
pass
class alicloud_slb_domain_extensions(terrascript.Data):
pass
class alicloud_slb_zones(terrascript.Data):
pass
class alicloud_oss_bucket_objects(terrascript.Data):
pass
class alicloud_oss_buckets(terrascript.Data):
pass
class alicloud_ons_instances(terrascript.Data):
pass
class alicloud_ons_topics(terrascript.Data):
pass
class alicloud_ons_groups(terrascript.Data):
pass
class alicloud_alikafka_consumer_groups(terrascript.Data):
pass
class alicloud_alikafka_instances(terrascript.Data):
pass
class alicloud_alikafka_topics(terrascript.Data):
pass
class alicloud_alikafka_sasl_users(terrascript.Data):
pass
class alicloud_alikafka_sasl_acls(terrascript.Data):
pass
class alicloud_fc_functions(terrascript.Data):
pass
class alicloud_file_crc64_checksum(terrascript.Data):
pass
class alicloud_fc_services(terrascript.Data):
pass
class alicloud_fc_triggers(terrascript.Data):
pass
class alicloud_fc_zones(terrascript.Data):
pass
class alicloud_db_instances(terrascript.Data):
pass
class alicloud_db_instance_engines(terrascript.Data):
pass
class alicloud_db_instance_classes(terrascript.Data):
pass
class alicloud_pvtz_zones(terrascript.Data):
pass
class alicloud_pvtz_zone_records(terrascript.Data):
pass
class alicloud_router_interfaces(terrascript.Data):
pass
class alicloud_vpn_gateways(terrascript.Data):
pass
class alicloud_vpn_customer_gateways(terrascript.Data):
pass
class alicloud_vpn_connections(terrascript.Data):
pass
class alicloud_ssl_vpn_servers(terrascript.Data):
pass
class alicloud_ssl_vpn_client_certs(terrascript.Data):
pass
class alicloud_mongo_instances(terrascript.Data):
pass
class alicloud_mongodb_instances(terrascript.Data):
pass
class alicloud_mongodb_zones(terrascript.Data):
pass
class alicloud_gpdb_instances(terrascript.Data):
pass
class alicloud_gpdb_zones(terrascript.Data):
pass
class alicloud_kvstore_instances(terrascript.Data):
pass
class alicloud_kvstore_zones(terrascript.Data):
pass
class alicloud_kvstore_instance_classes(terrascript.Data):
pass
class alicloud_kvstore_instance_engines(terrascript.Data):
pass
class alicloud_cen_instances(terrascript.Data):
pass
class alicloud_cen_bandwidth_packages(terrascript.Data):
pass
class alicloud_cen_bandwidth_limits(terrascript.Data):
pass
class alicloud_cen_route_entries(terrascript.Data):
pass
class alicloud_cen_region_route_entries(terrascript.Data):
pass
class alicloud_cs_kubernetes_clusters(terrascript.Data):
pass
class alicloud_cs_managed_kubernetes_clusters(terrascript.Data):
pass
class alicloud_cs_serverless_kubernetes_clusters(terrascript.Data):
pass
class alicloud_cr_namespaces(terrascript.Data):
pass
class alicloud_cr_repos(terrascript.Data):
pass
class alicloud_cr_ee_instances(terrascript.Data):
pass
class alicloud_cr_ee_namespaces(terrascript.Data):
pass
class alicloud_cr_ee_repos(terrascript.Data):
pass
class alicloud_cr_ee_sync_rules(terrascript.Data):
pass
class alicloud_mns_queues(terrascript.Data):
pass
class alicloud_mns_topics(terrascript.Data):
pass
class alicloud_mns_topic_subscriptions(terrascript.Data):
pass
class alicloud_api_gateway_apis(terrascript.Data):
pass
class alicloud_api_gateway_groups(terrascript.Data):
pass
class alicloud_api_gateway_apps(terrascript.Data):
pass
class alicloud_elasticsearch_instances(terrascript.Data):
pass
class alicloud_elasticsearch_zones(terrascript.Data):
pass
class alicloud_drds_instances(terrascript.Data):
pass
class alicloud_nas_access_groups(terrascript.Data):
pass
class alicloud_nas_access_rules(terrascript.Data):
pass
class alicloud_nas_mount_targets(terrascript.Data):
pass
class alicloud_nas_file_systems(terrascript.Data):
pass
class alicloud_nas_protocols(terrascript.Data):
pass
class alicloud_cas_certificates(terrascript.Data):
pass
class alicloud_actiontrails(terrascript.Data):
pass
class alicloud_common_bandwidth_packages(terrascript.Data):
pass
class alicloud_route_tables(terrascript.Data):
pass
class alicloud_route_entries(terrascript.Data):
pass
class alicloud_nat_gateways(terrascript.Data):
pass
class alicloud_snat_entries(terrascript.Data):
pass
class alicloud_forward_entries(terrascript.Data):
pass
class alicloud_ddoscoo_instances(terrascript.Data):
pass
class alicloud_ddosbgp_instances(terrascript.Data):
pass
class alicloud_ess_alarms(terrascript.Data):
pass
class alicloud_ess_notifications(terrascript.Data):
pass
class alicloud_ess_scaling_groups(terrascript.Data):
pass
class alicloud_ess_scaling_rules(terrascript.Data):
pass
class alicloud_ess_scaling_configurations(terrascript.Data):
pass
class alicloud_ess_lifecycle_hooks(terrascript.Data):
pass
class alicloud_ess_scheduled_tasks(terrascript.Data):
pass
class alicloud_ots_instances(terrascript.Data):
pass
class alicloud_ots_instance_attachments(terrascript.Data):
pass
class alicloud_ots_tables(terrascript.Data):
pass
class alicloud_cloud_connect_networks(terrascript.Data):
pass
class alicloud_emr_instance_types(terrascript.Data):
pass
class alicloud_emr_disk_types(terrascript.Data):
pass
class alicloud_emr_main_versions(terrascript.Data):
pass
class alicloud_sag_acls(terrascript.Data):
pass
class alicloud_yundun_dbaudit_instance(terrascript.Data):
pass
class alicloud_yundun_bastionhost_instances(terrascript.Data):
pass
class alicloud_market_product(terrascript.Data):
pass
class alicloud_market_products(terrascript.Data):
pass
class alicloud_polardb_clusters(terrascript.Data):
pass
class alicloud_polardb_node_classes(terrascript.Data):
pass
class alicloud_polardb_endpoints(terrascript.Data):
pass
class alicloud_polardb_accounts(terrascript.Data):
pass
class alicloud_polardb_databases(terrascript.Data):
pass
class alicloud_polardb_zones(terrascript.Data):
pass
class alicloud_hbase_instances(terrascript.Data):
pass
class alicloud_hbase_zones(terrascript.Data):
pass
class alicloud_adb_clusters(terrascript.Data):
pass
class alicloud_adb_zones(terrascript.Data):
pass
class alicloud_cen_flowlogs(terrascript.Data):
pass
class alicloud_kms_aliases(terrascript.Data):
pass
class alicloud_dns_domain_txt_guid(terrascript.Data):
pass
class alicloud_edas_applications(terrascript.Data):
pass
class alicloud_edas_deploy_groups(terrascript.Data):
pass
class alicloud_edas_clusters(terrascript.Data):
pass
class alicloud_resource_manager_folders(terrascript.Data):
pass
class alicloud_dns_instances(terrascript.Data):
pass
class alicloud_resource_manager_policies(terrascript.Data):
pass
class alicloud_resource_manager_resource_groups(terrascript.Data):
pass
class alicloud_resource_manager_roles(terrascript.Data):
pass
class alicloud_resource_manager_policy_versions(terrascript.Data):
pass
class alicloud_alidns_domain_groups(terrascript.Data):
pass
class alicloud_kms_key_versions(terrascript.Data):
pass
class alicloud_alidns_records(terrascript.Data):
pass
class alicloud_resource_manager_accounts(terrascript.Data):
pass
class alicloud_resource_manager_resource_directories(terrascript.Data):
pass
class alicloud_resource_manager_handshakes(terrascript.Data):
pass
class alicloud_waf_domains(terrascript.Data):
pass
class alicloud_kms_secrets(terrascript.Data):
pass
class alicloud_cen_route_maps(terrascript.Data):
pass
class alicloud_cen_private_zones(terrascript.Data):
pass
class alicloud_dms_enterprise_instances(terrascript.Data):
pass
class alicloud_cassandra_clusters(terrascript.Data):
pass
class alicloud_cassandra_data_centers(terrascript.Data):
pass
class alicloud_cassandra_zones(terrascript.Data):
pass
class alicloud_kms_secret_versions(terrascript.Data):
pass
class alicloud_waf_instances(terrascript.Data):
pass
class alicloud_eci_image_caches(terrascript.Data):
pass
class alicloud_dms_enterprise_users(terrascript.Data):
pass
class alicloud_ecs_dedicated_hosts(terrascript.Data):
pass
class alicloud_oos_templates(terrascript.Data):
pass
class alicloud_oos_executions(terrascript.Data):
pass
class alicloud_resource_manager_policy_attachments(terrascript.Data):
pass
class alicloud_dcdn_domains(terrascript.Data):
pass
class alicloud_mse_clusters(terrascript.Data):
pass
| 15.477551
| 71
| 0.790172
| 1,367
| 11,376
| 6.249451
| 0.146306
| 0.278474
| 0.407
| 0.511296
| 0.900269
| 0.851574
| 0.375863
| 0.058059
| 0
| 0
| 0
| 0.000206
| 0.14513
| 11,376
| 734
| 72
| 15.498638
| 0.878252
| 0.002198
| 0
| 0.498638
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0.498638
| 0.002725
| 0
| 0.501362
| 0
| 0
| 0
| 0
| null | 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| 0
| 0
| 0
| 0
|
0
| 7
|
db8c68a1b72f88a1bbc3d0807816ab7db2c6a5fb
| 2,740
|
py
|
Python
|
tests/scripts/test_set_user_readonly.py
|
nilsholle/sampledb
|
90d7487a3990995ca2ec5dfd8b59d4739d6a9a87
|
[
"MIT"
] | 5
|
2020-02-13T15:25:37.000Z
|
2021-05-06T21:05:14.000Z
|
tests/scripts/test_set_user_readonly.py
|
nilsholle/sampledb
|
90d7487a3990995ca2ec5dfd8b59d4739d6a9a87
|
[
"MIT"
] | 28
|
2019-11-12T14:14:08.000Z
|
2022-03-11T16:29:27.000Z
|
tests/scripts/test_set_user_readonly.py
|
nilsholle/sampledb
|
90d7487a3990995ca2ec5dfd8b59d4739d6a9a87
|
[
"MIT"
] | 8
|
2019-12-10T15:46:02.000Z
|
2021-11-02T12:24:52.000Z
|
# coding: utf-8
"""
"""
import pytest
from sampledb import db
from sampledb.logic import users
import sampledb.__main__ as scripts
def test_set_readonly_yes(capsys):
user_id = users.create_user("username", "example@example.com", users.UserType.PERSON).id
scripts.main([scripts.__file__, 'set_user_readonly', str(user_id), 'yes'])
assert 'Success' in capsys.readouterr()[0]
user = users.get_user(user_id)
assert user.is_readonly
def test_set_readonly_no(capsys):
user_id = users.create_user("username", "example@example.com", users.UserType.PERSON).id
user = users.get_user(user_id)
user.is_readonly = True
db.session.add(user)
db.session.commit()
scripts.main([scripts.__file__, 'set_user_readonly', str(user_id), 'no'])
assert 'Success' in capsys.readouterr()[0]
user = users.get_user(user_id)
assert not user.is_readonly
def test_set_readonly_yes_no_change(capsys):
user_id = users.create_user("username", "example@example.com", users.UserType.PERSON).id
user = users.get_user(user_id)
user.is_readonly = True
db.session.add(user)
db.session.commit()
scripts.main([scripts.__file__, 'set_user_readonly', str(user_id), 'yes'])
assert 'Success' in capsys.readouterr()[0]
user = users.get_user(user_id)
assert user.is_readonly
def test_set_readonly_no_no_change(capsys):
user_id = users.create_user("username", "example@example.com", users.UserType.PERSON).id
scripts.main([scripts.__file__, 'set_user_readonly', str(user_id), 'no'])
assert 'Success' in capsys.readouterr()[0]
user = users.get_user(user_id)
assert not user.is_readonly
def test_set_readonly_missing_arguments(capsys):
user_id = users.create_user("username", "example@example.com", users.UserType.PERSON).id
with pytest.raises(SystemExit) as exc_info:
scripts.main([scripts.__file__, 'set_user_readonly', str(user_id)])
assert exc_info.value != 0
assert 'Usage' in capsys.readouterr()[0]
user = users.get_user(user_id)
assert not user.is_readonly
def test_set_readonly_invalid_user_id(capsys):
with pytest.raises(SystemExit) as exc_info:
scripts.main([scripts.__file__, 'set_user_readonly', '1', 'yes'])
assert exc_info.value != 0
assert 'Error' in capsys.readouterr()[1]
def test_set_readonly_invalid_argument(capsys):
user_id = users.create_user("username", "example@example.com", users.UserType.PERSON).id
with pytest.raises(SystemExit) as exc_info:
scripts.main([scripts.__file__, 'set_user_readonly', str(user_id), 'maybe'])
assert exc_info.value != 0
assert 'Usage' in capsys.readouterr()[0]
user = users.get_user(user_id)
assert not user.is_readonly
| 33.012048
| 92
| 0.721898
| 397
| 2,740
| 4.672544
| 0.143577
| 0.067925
| 0.051752
| 0.069003
| 0.910512
| 0.880323
| 0.866846
| 0.866846
| 0.866846
| 0.866846
| 0
| 0.00515
| 0.149635
| 2,740
| 82
| 93
| 33.414634
| 0.790987
| 0.004745
| 0
| 0.736842
| 0
| 0
| 0.126242
| 0
| 0
| 0
| 0
| 0
| 0.280702
| 1
| 0.122807
| false
| 0
| 0.070175
| 0
| 0.192982
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
db9a867ccffe0fa6445dad33da1c82fbcc29cddb
| 448
|
py
|
Python
|
rl/environments/carla/__init__.py
|
Luca96/carla-driving-rl-agent
|
00ae9ec6dc61f82ecd19e96b6c1a5e1903911e62
|
[
"MIT"
] | 26
|
2021-01-27T21:42:17.000Z
|
2022-03-31T08:46:30.000Z
|
rl/environments/carla/__init__.py
|
Martje55555/carla-rl-agent
|
0d38cc3080cab900f4eaa3cd4735918c5868103a
|
[
"MIT"
] | 9
|
2021-05-21T14:50:57.000Z
|
2022-03-25T17:50:03.000Z
|
rl/environments/carla/__init__.py
|
Martje55555/carla-rl-agent
|
0d38cc3080cab900f4eaa3cd4735918c5868103a
|
[
"MIT"
] | 10
|
2021-03-23T14:10:14.000Z
|
2022-03-24T17:49:12.000Z
|
from rl.environments.carla import env_utils
from rl.environments.carla.environment import CARLABaseEnvironment, CARLAPlayWrapper, OneCameraCARLAEnvironment, \
OneCameraCARLAEnvironmentDiscrete, ThreeCameraCARLAEnvironment, \
ThreeCameraCARLAEnvironmentDiscrete, CARLAEvent, CARLACollectWrapper
from rl.environments.carla.sensors import Sensor, SensorSpecs
| 74.666667
| 114
| 0.705357
| 29
| 448
| 10.862069
| 0.655172
| 0.057143
| 0.171429
| 0.219048
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.254464
| 448
| 5
| 115
| 89.6
| 0.943114
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0.6
| 0
| 0.6
| 0
| 1
| 0
| 1
| null | 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 7
|
dbb4d5ac26ff778aefb738f66339d433fb21a60e
| 6,425
|
py
|
Python
|
layers/gated_gcn_layer.py
|
SauravMaheshkar/benchmarking-gnns
|
4665316322527634c23307556b63291c69dac4b0
|
[
"MIT"
] | null | null | null |
layers/gated_gcn_layer.py
|
SauravMaheshkar/benchmarking-gnns
|
4665316322527634c23307556b63291c69dac4b0
|
[
"MIT"
] | 6
|
2022-01-06T21:27:06.000Z
|
2022-01-19T06:28:56.000Z
|
layers/gated_gcn_layer.py
|
SauravMaheshkar/benchmarking-gnns
|
4665316322527634c23307556b63291c69dac4b0
|
[
"MIT"
] | null | null | null |
import dgl.function as fn
import torch
import torch.nn as nn
import torch.nn.functional as F
"""
ResGatedGCN: Residual Gated Graph ConvNets
An Experimental Study of Neural Networks for Variable Graphs (Xavier Bresson and Thomas Laurent, ICLR 2018)
https://arxiv.org/pdf/1711.07553v2.pdf
"""
class GatedGCNLayer(nn.Module):
"""
Param: []
"""
def __init__(self, input_dim, output_dim, dropout, batch_norm, residual=False):
super().__init__()
self.in_channels = input_dim
self.out_channels = output_dim
self.dropout = dropout
self.batch_norm = batch_norm
self.residual = residual
if input_dim != output_dim:
self.residual = False
self.A = nn.Linear(input_dim, output_dim, bias=True)
self.B = nn.Linear(input_dim, output_dim, bias=True)
self.C = nn.Linear(input_dim, output_dim, bias=True)
self.D = nn.Linear(input_dim, output_dim, bias=True)
self.E = nn.Linear(input_dim, output_dim, bias=True)
self.bn_node_h = nn.BatchNorm1d(output_dim)
self.bn_node_e = nn.BatchNorm1d(output_dim)
def forward(self, g, h, e):
h_in = h # for residual connection
e_in = e # for residual connection
g.ndata["h"] = h
g.ndata["Ah"] = self.A(h)
g.ndata["Bh"] = self.B(h)
g.ndata["Dh"] = self.D(h)
g.ndata["Eh"] = self.E(h)
g.edata["e"] = e
g.edata["Ce"] = self.C(e)
g.apply_edges(fn.u_add_v("Dh", "Eh", "DEh"))
g.edata["e"] = g.edata["DEh"] + g.edata["Ce"]
g.edata["sigma"] = torch.sigmoid(g.edata["e"])
g.update_all(fn.u_mul_e("Bh", "sigma", "m"), fn.sum("m", "sum_sigma_h"))
g.update_all(fn.copy_e("sigma", "m"), fn.sum("m", "sum_sigma"))
g.ndata["h"] = g.ndata["Ah"] + g.ndata["sum_sigma_h"] / (
g.ndata["sum_sigma"] + 1e-6
)
# g.update_all(self.message_func,self.reduce_func)
h = g.ndata["h"] # result of graph convolution
e = g.edata["e"] # result of graph convolution
if self.batch_norm:
h = self.bn_node_h(h) # batch normalization
e = self.bn_node_e(e) # batch normalization
h = F.relu(h) # non-linear activation
e = F.relu(e) # non-linear activation
if self.residual:
h = h_in + h # residual connection
e = e_in + e # residual connection
h = F.dropout(h, self.dropout, training=self.training)
e = F.dropout(e, self.dropout, training=self.training)
return h, e
def __repr__(self):
return "{}(in_channels={}, out_channels={})".format(
self.__class__.__name__, self.in_channels, self.out_channels
)
##############################################################
#
# Additional layers for edge feature/representation analysis
#
##############################################################
class GatedGCNLayerEdgeFeatOnly(nn.Module):
"""
Param: []
"""
def __init__(self, input_dim, output_dim, dropout, batch_norm, residual=False):
super().__init__()
self.in_channels = input_dim
self.out_channels = output_dim
self.dropout = dropout
self.batch_norm = batch_norm
self.residual = residual
if input_dim != output_dim:
self.residual = False
self.A = nn.Linear(input_dim, output_dim, bias=True)
self.B = nn.Linear(input_dim, output_dim, bias=True)
self.D = nn.Linear(input_dim, output_dim, bias=True)
self.E = nn.Linear(input_dim, output_dim, bias=True)
self.bn_node_h = nn.BatchNorm1d(output_dim)
def forward(self, g, h, e):
h_in = h # for residual connection
g.ndata["h"] = h
g.ndata["Ah"] = self.A(h)
g.ndata["Bh"] = self.B(h)
g.ndata["Dh"] = self.D(h)
g.ndata["Eh"] = self.E(h)
# g.update_all(self.message_func,self.reduce_func)
g.apply_edges(fn.u_add_v("Dh", "Eh", "e"))
g.edata["sigma"] = torch.sigmoid(g.edata["e"])
g.update_all(fn.u_mul_e("Bh", "sigma", "m"), fn.sum("m", "sum_sigma_h"))
g.update_all(fn.copy_e("sigma", "m"), fn.sum("m", "sum_sigma"))
g.ndata["h"] = g.ndata["Ah"] + g.ndata["sum_sigma_h"] / (
g.ndata["sum_sigma"] + 1e-6
)
h = g.ndata["h"] # result of graph convolution
if self.batch_norm:
h = self.bn_node_h(h) # batch normalization
h = F.relu(h) # non-linear activation
if self.residual:
h = h_in + h # residual connection
h = F.dropout(h, self.dropout, training=self.training)
return h, e
def __repr__(self):
return "{}(in_channels={}, out_channels={})".format(
self.__class__.__name__, self.in_channels, self.out_channels
)
##############################################################
class GatedGCNLayerIsotropic(nn.Module):
"""
Param: []
"""
def __init__(self, input_dim, output_dim, dropout, batch_norm, residual=False):
super().__init__()
self.in_channels = input_dim
self.out_channels = output_dim
self.dropout = dropout
self.batch_norm = batch_norm
self.residual = residual
if input_dim != output_dim:
self.residual = False
self.A = nn.Linear(input_dim, output_dim, bias=True)
self.B = nn.Linear(input_dim, output_dim, bias=True)
self.bn_node_h = nn.BatchNorm1d(output_dim)
def forward(self, g, h, e):
h_in = h # for residual connection
g.ndata["h"] = h
g.ndata["Ah"] = self.A(h)
g.ndata["Bh"] = self.B(h)
# g.update_all(self.message_func,self.reduce_func)
g.update_all(fn.copy_u("Bh", "m"), fn.sum("m", "sum_h"))
g.ndata["h"] = g.ndata["Ah"] + g.ndata["sum_h"]
h = g.ndata["h"] # result of graph convolution
if self.batch_norm:
h = self.bn_node_h(h) # batch normalization
h = F.relu(h) # non-linear activation
if self.residual:
h = h_in + h # residual connection
h = F.dropout(h, self.dropout, training=self.training)
return h, e
def __repr__(self):
return "{}(in_channels={}, out_channels={})".format(
self.__class__.__name__, self.in_channels, self.out_channels
)
| 31.965174
| 111
| 0.566537
| 886
| 6,425
| 3.883747
| 0.129797
| 0.047079
| 0.038652
| 0.083987
| 0.863121
| 0.855856
| 0.855856
| 0.855856
| 0.846556
| 0.802964
| 0
| 0.004665
| 0.265992
| 6,425
| 200
| 112
| 32.125
| 0.724979
| 0.107704
| 0
| 0.790698
| 0
| 0
| 0.056958
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.069767
| false
| 0
| 0.031008
| 0.023256
| 0.170543
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
9163068b8b3b28f39e06bf8207a55e58d5f2054f
| 5,259
|
py
|
Python
|
users-backend/users/api/tests/mutation/test_login_mutation.py
|
pauloxnet/pycon
|
82b6eff76dcc785865ea3ffd97a45e931c0add26
|
[
"MIT"
] | 56
|
2018-01-20T17:18:40.000Z
|
2022-03-28T22:42:04.000Z
|
users-backend/users/api/tests/mutation/test_login_mutation.py
|
pauloxnet/pycon
|
82b6eff76dcc785865ea3ffd97a45e931c0add26
|
[
"MIT"
] | 2,029
|
2018-01-20T11:37:24.000Z
|
2022-03-31T04:10:51.000Z
|
users-backend/users/api/tests/mutation/test_login_mutation.py
|
pauloxnet/pycon
|
82b6eff76dcc785865ea3ffd97a45e931c0add26
|
[
"MIT"
] | 17
|
2018-03-17T09:44:28.000Z
|
2021-12-27T19:57:35.000Z
|
from ward import test
from users.tests.api import graphql_client
from users.tests.factories import user_factory
from users.tests.session import db
@test("cannot login to non existent user")
async def _(graphql_client=graphql_client, db=db):
query = """
mutation($input: LoginInput!) {
login(input: $input) {
__typename
}
}
"""
response = await graphql_client.query(
query, variables={"input": {"email": "hah@pycon.it", "password": "ciao"}}
)
assert not response.errors
assert response.data["login"]["__typename"] == "WrongEmailOrPassword"
@test("cannot login to not active user")
async def _(graphql_client=graphql_client, db=db, user_factory=user_factory):
await user_factory(email="hah@pycon.it", password="test", is_active=False)
query = """
mutation($input: LoginInput!) {
login(input: $input) {
__typename
}
}
"""
response = await graphql_client.query(
query, variables={"input": {"email": "hah@pycon.it", "password": "test"}}
)
assert not response.errors
assert response.data["login"]["__typename"] == "WrongEmailOrPassword"
@test("cannot login with wrong password")
async def _(graphql_client=graphql_client, db=db, user_factory=user_factory):
await user_factory(email="hah@pycon.it", password="test")
query = """
mutation($input: LoginInput!) {
login(input: $input) {
__typename
}
}
"""
response = await graphql_client.query(
query, variables={"input": {"email": "hah@pycon.it", "password": "ciao"}}
)
assert not response.errors
assert response.data["login"]["__typename"] == "WrongEmailOrPassword"
@test("cannot login with empty password")
async def _(graphql_client=graphql_client, db=db):
query = """
mutation($input: LoginInput!) {
login(input: $input) {
__typename
... on LoginValidationError {
errors {
password {
message
type
}
email {
message
type
}
}
}
}
}
"""
response = await graphql_client.query(
query, variables={"input": {"email": "hah@pycon.it", "password": ""}}
)
assert not response.errors, response.errors
assert response.data["login"] == {
"__typename": "LoginValidationError",
"errors": {
"password": [
{
"message": "ensure this value has at least 1 characters",
"type": "value_error.any_str.min_length",
}
],
"email": None,
},
}
@test("cannot login with empty email")
async def _(graphql_client=graphql_client, db=db):
query = """
mutation($input: LoginInput!) {
login(input: $input) {
__typename
... on LoginValidationError {
errors {
password {
message
type
}
email {
message
type
}
}
}
}
}
"""
response = await graphql_client.query(
query, variables={"input": {"email": "", "password": "password"}}
)
assert not response.errors, response.errors
assert not response.errors, response.errors
assert response.data["login"] == {
"__typename": "LoginValidationError",
"errors": {
"email": [
{
"message": "value is not a valid email address",
"type": "value_error.email",
}
],
"password": None,
},
}
@test("cannot login with wrong password")
async def _(graphql_client=graphql_client, user_factory=user_factory, db=db):
user = await user_factory(email="test@email.it", password="hello")
query = """
mutation($input: LoginInput!) {
login(input: $input) {
__typename
}
}
"""
response = await graphql_client.query(
query, variables={"input": {"email": user.email, "password": "nope"}}
)
assert not response.errors
assert response.data["login"]["__typename"] == "WrongEmailOrPassword"
@test("can login")
async def _(graphql_client=graphql_client, user_factory=user_factory, db=db):
user = await user_factory(email="test@email.it", password="hello")
query = """
mutation($input: LoginInput!) {
login(input: $input) {
__typename
... on LoginSuccess {
user {
id
email
}
}
}
}
"""
response = await graphql_client.query(
query, variables={"input": {"email": user.email, "password": "hello"}}
)
assert not response.errors, response.errors
assert response.data["login"]["__typename"] == "LoginSuccess"
assert response.data["login"]["user"] == {"id": str(user.id), "email": user.email}
| 27.973404
| 86
| 0.53185
| 479
| 5,259
| 5.682672
| 0.150313
| 0.10507
| 0.049963
| 0.067597
| 0.836885
| 0.823292
| 0.821822
| 0.821822
| 0.80529
| 0.798677
| 0
| 0.000288
| 0.338848
| 5,259
| 187
| 87
| 28.122995
| 0.782571
| 0
| 0
| 0.56875
| 0
| 0
| 0.469671
| 0.005705
| 0
| 0
| 0
| 0
| 0.1
| 1
| 0
| false
| 0.1375
| 0.025
| 0
| 0.025
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
|
0
| 7
|
37da129984dd4f55b69acaeb6dfdc4744b97252c
| 5,360
|
py
|
Python
|
lemur/tests/test_destinations.py
|
pandragoq/lemur
|
4f289c790b6638be49dc6614045bcad01bebf7ba
|
[
"Apache-2.0"
] | null | null | null |
lemur/tests/test_destinations.py
|
pandragoq/lemur
|
4f289c790b6638be49dc6614045bcad01bebf7ba
|
[
"Apache-2.0"
] | null | null | null |
lemur/tests/test_destinations.py
|
pandragoq/lemur
|
4f289c790b6638be49dc6614045bcad01bebf7ba
|
[
"Apache-2.0"
] | null | null | null |
from lemur.destinations.service import * # noqa
from lemur.destinations.views import * # noqa
from json import dumps
def test_crud(session):
destination = create('testdest', 'aws-destination', {}, description='destination1')
assert destination.id > 0
destination = update(destination.id, 'testdest2', {}, 'destination2')
assert destination.label == 'testdest2'
assert len(get_all()) == 1
delete(1)
assert len(get_all()) == 0
def test_destination_get(client):
assert client.get(api.url_for(Destinations, destination_id=1)).status_code == 401
def test_destination_post(client):
assert client.post(api.url_for(Destinations, destination_id=1), data={}).status_code == 405
def test_destination_put(client):
assert client.put(api.url_for(Destinations, destination_id=1), data={}).status_code == 401
def test_destination_delete(client):
assert client.delete(api.url_for(Destinations, destination_id=1)).status_code == 401
def test_destination_patch(client):
assert client.patch(api.url_for(Destinations, destination_id=1), data={}).status_code == 405
VALID_USER_HEADER_TOKEN = {
'Authorization': 'Basic ' + 'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpYXQiOjE0MzUyMzMzNjksInN1YiI6MSwiZXhwIjoxNTIxNTQ2OTY5fQ.1qCi0Ip7mzKbjNh0tVd3_eJOrae3rNa_9MCVdA4WtQI'}
def test_auth_destination_get(client):
assert client.get(api.url_for(Destinations, destination_id=1), headers=VALID_USER_HEADER_TOKEN).status_code == 200
def test_auth_destination_post_(client):
assert client.post(api.url_for(Destinations, destination_id=1), data={}, headers=VALID_USER_HEADER_TOKEN).status_code == 405
def test_auth_destination_put(client):
assert client.put(api.url_for(Destinations, destination_id=1), data={}, headers=VALID_USER_HEADER_TOKEN).status_code == 403
def test_auth_destination_delete(client):
assert client.delete(api.url_for(Destinations, destination_id=1), headers=VALID_USER_HEADER_TOKEN).status_code == 403
def test_auth_destination_patch(client):
assert client.patch(api.url_for(Destinations, destination_id=1), data={}, headers=VALID_USER_HEADER_TOKEN).status_code == 405
VALID_ADMIN_HEADER_TOKEN = {
'Authorization': 'Basic ' + 'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpYXQiOjE0MzUyNTAyMTgsInN1YiI6MiwiZXhwIjoxNTIxNTYzODE4fQ.6mbq4-Ro6K5MmuNiTJBB153RDhlM5LGJBjI7GBKkfqA'}
def test_admin_destination_get(client):
assert client.get(api.url_for(Destinations, destination_id=1), headers=VALID_ADMIN_HEADER_TOKEN).status_code == 200
def test_admin_destination_post(client):
assert client.post(api.url_for(Destinations, destination_id=1), data={}, headers=VALID_ADMIN_HEADER_TOKEN).status_code == 405
def test_admin_destination_put(client):
assert client.put(api.url_for(Destinations, destination_id=1), data={}, headers=VALID_ADMIN_HEADER_TOKEN).status_code == 400
def test_admin_destination_delete(client):
assert client.delete(api.url_for(Destinations, destination_id=1), headers=VALID_ADMIN_HEADER_TOKEN).status_code == 200
def test_admin_destination_patch(client):
assert client.patch(api.url_for(Destinations, destination_id=1), data={}, headers=VALID_ADMIN_HEADER_TOKEN).status_code == 405
def test_destinations_get(client):
assert client.get(api.url_for(DestinationsList)).status_code == 401
def test_destinations_post(client):
assert client.post(api.url_for(DestinationsList), data={}).status_code == 401
def test_destinations_put(client):
assert client.put(api.url_for(DestinationsList), data={}).status_code == 405
def test_destinations_delete(client):
assert client.delete(api.url_for(DestinationsList)).status_code == 405
def test_destinations_patch(client):
assert client.patch(api.url_for(DestinationsList), data={}).status_code == 405
def test_auth_destinations_get(client):
assert client.get(api.url_for(DestinationsList), headers=VALID_USER_HEADER_TOKEN).status_code == 200
def test_auth_destinations_post(client):
assert client.post(api.url_for(DestinationsList), data={}, headers=VALID_USER_HEADER_TOKEN).status_code == 403
def test_admin_destinations_get(client):
resp = client.get(api.url_for(DestinationsList), headers=VALID_ADMIN_HEADER_TOKEN)
assert resp.status_code == 200
assert resp.json == {'items': [], 'total': 0}
def test_admin_destinations_crud(client):
assert client.post(api.url_for(DestinationsList), headers=VALID_ADMIN_HEADER_TOKEN).status_code == 400
data = {'plugin': {'slug': 'aws-destination', 'pluginOptions': {}}, 'label': 'test', 'description': 'test'}
resp = client.post(api.url_for(DestinationsList), data=dumps(data), content_type='application/json', headers=VALID_ADMIN_HEADER_TOKEN)
assert resp.status_code == 200
assert client.get(api.url_for(Destinations, destination_id=resp.json['id']), headers=VALID_ADMIN_HEADER_TOKEN).status_code == 200
resp = client.get(api.url_for(DestinationsList), headers=VALID_ADMIN_HEADER_TOKEN)
assert resp.status_code == 200
assert resp.json['items'][0]['description'] == 'test'
assert client.delete(api.url_for(Destinations, destination_id=2), headers=VALID_ADMIN_HEADER_TOKEN).status_code == 200
resp = client.get(api.url_for(DestinationsList), headers=VALID_ADMIN_HEADER_TOKEN)
assert resp.status_code == 200
assert resp.json == {'items': [], 'total': 0}
| 39.703704
| 174
| 0.775933
| 703
| 5,360
| 5.621622
| 0.105263
| 0.044028
| 0.066043
| 0.090334
| 0.80668
| 0.773785
| 0.74165
| 0.72748
| 0.694838
| 0.657389
| 0
| 0.030853
| 0.105037
| 5,360
| 134
| 175
| 40
| 0.792996
| 0.001679
| 0
| 0.118421
| 0
| 0
| 0.09368
| 0.051982
| 0
| 0
| 0
| 0
| 0.473684
| 1
| 0.328947
| false
| 0
| 0.039474
| 0
| 0.368421
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
37e15ca57927449210e6fc8595059d4705f9bfa2
| 3,637
|
py
|
Python
|
src/imds/azext_imds/imds.py
|
noelbundick/azure-cli-extension-imds
|
2702f6c119d5caaea4b4d9f518a7d42c297c99b8
|
[
"MIT"
] | null | null | null |
src/imds/azext_imds/imds.py
|
noelbundick/azure-cli-extension-imds
|
2702f6c119d5caaea4b4d9f518a7d42c297c99b8
|
[
"MIT"
] | null | null | null |
src/imds/azext_imds/imds.py
|
noelbundick/azure-cli-extension-imds
|
2702f6c119d5caaea4b4d9f518a7d42c297c99b8
|
[
"MIT"
] | null | null | null |
from enum import Enum
from base64 import b64decode
from http.server import BaseHTTPRequestHandler
from urllib.parse import urlparse, parse_qs
from azure.cli.command_modules.profile.custom import get_access_token
import json
import time
class AppService2017IMDS(BaseHTTPRequestHandler):
def __init__(self, secret, cmd, *args):
self.secret = secret
self.cmd = cmd
super(AppService2017IMDS, self).__init__(*args)
def do_GET(self):
url = urlparse(self.path)
if url.path != "/MSI/token":
print(f"{url.path} does not match /MSI/token")
self.send_response(404)
return
identity_header = self.headers.get("secret")
if identity_header != self.secret:
print("Identity header missing or invalid")
self.send_response(400)
return
query = parse_qs(url.query)
resource = query.get("resource")[0]
if not resource:
print("No resource specified")
self.send_response(400)
return
api_version = query.get("api-version")[0]
if api_version != "2017-09-01":
print("api-version missing or invalid")
self.send_response(400)
return
cli_token = get_access_token(self.cmd, resource=resource)
jwt = cli_token["accessToken"]
payload = json.loads(b64decode(jwt.split(".")[1] + "==="))
token = {
"access_token": cli_token["accessToken"],
"client_id": "",
"expires_on": time.strftime(
"%m/%d/%Y %H:%M:%S +00:00", time.localtime(payload["exp"])
),
"not_before": str(payload["nbf"]),
"resource": resource,
"token_type": "Bearer",
}
self.send_response(200)
self.send_header("Content-type", "application/json")
self.end_headers()
self.wfile.write(json.dumps(token).encode("utf-8"))
class AppService2019IMDS(BaseHTTPRequestHandler):
def __init__(self, secret, cmd, *args):
self.secret = secret
self.cmd = cmd
super(AppService2019IMDS, self).__init__(*args)
def do_GET(self):
url = urlparse(self.path)
if url.path != "/MSI/token":
print(f"{url.path} does not match /MSI/token")
self.send_response(404)
return
identity_header = self.headers.get("X-IDENTITY-HEADER")
if identity_header != self.secret:
print("Identity header missing or invalid")
self.send_response(400)
return
query = parse_qs(url.query)
resource = query.get("resource")[0]
if not resource:
print("No resource specified")
self.send_response(400)
return
api_version = query.get("api-version")[0]
if api_version != "2019-08-01":
print("api-version missing or invalid")
self.send_response(400)
return
cli_token = get_access_token(self.cmd, resource=resource)
jwt = cli_token["accessToken"]
payload = json.loads(b64decode(jwt.split(".")[1] + "==="))
token = {
"access_token": cli_token["accessToken"],
"client_id": "",
"expires_on": str(payload["exp"]),
"not_before": str(payload["nbf"]),
"resource": resource,
"token_type": "Bearer",
}
self.send_response(200)
self.send_header("Content-type", "application/json")
self.end_headers()
self.wfile.write(json.dumps(token).encode("utf-8"))
| 31.903509
| 74
| 0.578224
| 410
| 3,637
| 4.968293
| 0.246341
| 0.047128
| 0.078547
| 0.055965
| 0.826706
| 0.826706
| 0.826706
| 0.826706
| 0.826706
| 0.826706
| 0
| 0.031969
| 0.294748
| 3,637
| 113
| 75
| 32.185841
| 0.762183
| 0
| 0
| 0.774194
| 0
| 0
| 0.172395
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.043011
| false
| 0
| 0.075269
| 0
| 0.225806
| 0.086022
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
37ea574218d864356980c40ffc38e6fb4c988894
| 18,855
|
py
|
Python
|
web_app/main/utils/plotly_with_fft.py
|
karlberggren/QuantumCircuitsClass
|
ea0c7599c53a481ee854a0f8496cd91444311d16
|
[
"MIT"
] | 2
|
2021-04-11T05:48:47.000Z
|
2021-04-23T04:28:59.000Z
|
web_app/main/utils/plotly_with_fft.py
|
karlberggren/QuantumCircuitsClass
|
ea0c7599c53a481ee854a0f8496cd91444311d16
|
[
"MIT"
] | null | null | null |
web_app/main/utils/plotly_with_fft.py
|
karlberggren/QuantumCircuitsClass
|
ea0c7599c53a481ee854a0f8496cd91444311d16
|
[
"MIT"
] | null | null | null |
import plotly.graph_objects as go
from plotly.subplots import make_subplots
import numpy as np
from scipy.fftpack import fft, ifft, fftfreq
# Changing K plot
# Create figure
fig_k = make_subplots(
rows=1, cols=2,
shared_xaxes=False,
horizontal_spacing=0.02,
specs=[[{'type': 'scatter3d'}, {'type': 'scatter3d'}]])
# Add traces, one for each slider step
k= np.linspace(-10, 10, 21)
phi_0 = 0
sig = 0.5
x=np.arange(-20, 20.01, 0.01)
for k_i in np.arange(-10, 11, 1):
psi = np.multiply(np.exp(1j*k_i*x), np.sqrt(np.exp(-np.power(x-phi_0, 2)/(2*sig**2))/(sig*np.sqrt(2*np.pi))))
fig_k.add_trace(
go.Scatter3d(
visible=False,
line=dict(color="black", width=2),
name="wavefunction",
x=x,
y=np.imag(psi),
z=np.real(psi),
mode="lines"), row=1, col=1)
fig_k.add_trace(
go.Scatter3d(
visible=False,
line=dict(color="red", width=1),
name="real part",
x=x,
y=-2*np.ones(psi.shape),
z=np.real(psi),
mode="lines"), row=1, col=1)
fig_k.add_trace(
go.Scatter3d(
visible=False,
line=dict(color="orange", width=1),
name="imaginary part",
x= x,
y= np.imag(psi),
z= -2*np.ones(psi.shape),
mode="lines"), row=1, col=1)
fig_k.add_trace(
go.Scatter3d(
visible=False,
line=dict(color="black", width=1),
name="imaginary part",
x= x,
y= -2*np.ones(psi.shape),
z= np.abs(psi),
mode="lines"), row=1, col=1)
for k_i in np.arange(-10, 11, 1):
psi_fft = fft(np.multiply(np.exp(1j*k_i*x), np.sqrt(np.exp(-np.power(x-phi_0, 2)/(2*sig**2))/(sig*np.sqrt(2*np.pi)))))
xf = fftfreq(len(x), x[1] - x[0])
fig_k.add_trace(
go.Scatter3d(
visible=False,
line=dict(color="black", width=2),
name="wavefunction",
x=np.concatenate((xf[len(xf)//2+1:], [xf[0]], xf[1:len(xf)//2])),
y=np.imag(np.concatenate((psi_fft[len(xf)//2+1:],[psi_fft[0]], psi_fft[1:len(xf)//2]))),
z=np.real(np.concatenate((psi_fft[len(xf)//2+1:],[psi_fft[0]], psi_fft[1:len(xf)//2]))),
mode="lines"), row=1, col=2)
fig_k.add_trace(
go.Scatter3d(
visible=False,
line=dict(color="red", width=1),
name="real part",
#x=xf,
x=np.concatenate((xf[len(xf)//2+1:], [xf[0]], xf[1:len(xf)//2])),
y=-10*np.ones(psi_fft.shape),
#z=np.real(psi_fft),
z=np.real(np.concatenate((psi_fft[len(xf)//2+1:],[psi_fft[0]], psi_fft[1:len(xf)//2]))),
mode="lines"), row=1, col=2)
fig_k.add_trace(
go.Scatter3d(
visible=False,
line=dict(color="orange", width=1),
name="imaginary part",
x=np.concatenate((xf[len(xf)//2+1:], [xf[0]], xf[1:len(xf)//2])),
#x= xf,
#y= np.imag(psi_fft),
y=np.imag(np.concatenate((psi_fft[len(xf)//2+1:],[psi_fft[0]], psi_fft[1:len(xf)//2]))),
z= -200*np.ones(psi_fft.shape),
mode="lines"), row=1, col=2)
fig_k.add_trace(
go.Scatter3d(
visible=False,
line=dict(color="black", width=1),
name="imaginary part",
x=np.concatenate((xf[len(xf)//2+1:], [xf[0]], xf[1:len(xf)//2])),
#x= xf,
y= -10*np.ones(psi_fft.shape),
z= np.abs(np.concatenate((psi_fft[len(xf)//2+1:],[psi_fft[0]], psi_fft[1:len(xf)//2]))),
mode="lines"), row=1, col=2)
fig_k.data[40].visible = True
fig_k.data[41].visible = True
fig_k.data[42].visible = True
fig_k.data[43].visible = True
fig_k.data[(len(fig_k.data))//2+40].visible = True
fig_k.data[(len(fig_k.data))//2+41].visible = True
fig_k.data[(len(fig_k.data))//2+42].visible = True
fig_k.data[(len(fig_k.data))//2+43].visible = True
# Create and add slider
steps = []
for i in range(0, (len(fig_k.data))//2, 4):
step = dict(
method="update",
args=[{"visible": [False] * len(fig_k.data)}], # layout attribute
label=str(k[i//4])
)
step["args"][0]["visible"][i] = True # Toggle i'th trace to "visible"
step["args"][0]["visible"][i+1] = True # Toggle i'th trace to "visible"
step["args"][0]["visible"][i+2] = True # Toggle i'th trace to "visible"
step["args"][0]["visible"][i+3] = True # Toggle i'th trace to "visible"
step["args"][0]["visible"][(len(fig_k.data))//2+i] = True # Toggle i'th trace to "visible"
step["args"][0]["visible"][(len(fig_k.data))//2+i+1] = True # Toggle i'th trace to "visible"
step["args"][0]["visible"][(len(fig_k.data))//2+i+2] = True # Toggle i'th trace to "visible"
step["args"][0]["visible"][(len(fig_k.data))//2+i+3] = True # Toggle i'th trace to "visible"
#step["args"][0]["visible"][-1] = True
#step["args"][0]["visible"][-2] = True
steps.append(step)
sliders = [dict(
active=10,
currentvalue={"prefix": "Wave number: "},
pad={"t": 33},
steps=steps
)]
fig_k.update_layout(
sliders=sliders
)
fig_k.update_layout(
scene = dict(
xaxis = dict(nticks=10, range=[-5,5],),
yaxis = dict(nticks=4, range=[-2,2],),
zaxis = dict(nticks=4, range=[-2,2],),
xaxis_title='Phi',
yaxis_title='Imaginary',
zaxis_title='Real',))
#width=1000,
#margin=dict(r=20, l=10, b=10, t=10))
fig_k.update_layout(
scene2 = dict(
xaxis = dict(nticks=10, range=[-3, 3]),
yaxis = dict(nticks=4, range=[-10,10]),
zaxis = dict(nticks=4, range=[-200, 200]),
xaxis_title='Q',
yaxis_title='Imaginary',
zaxis_title='Real',))
fig_k.update_layout(scene_aspectmode='manual',
scene_aspectratio=dict(x=2, y=1, z=1),
scene2_aspectmode='manual',
scene2_aspectratio=dict(x=2, y=1, z=1),
showlegend=False,
margin=dict(l=10, r=10, t=5, b=5),
scene_camera=dict(eye=dict(x=1, y=2.4, z=0.4)),
scene2_camera=dict(eye=dict(x=1, y=2.4, z=0.4)))
fig_k.show(config = {'displayModeBar': False, 'displaylogo': False, 'scrollZoom': False})
fig_k.write_html("wavefunction_changing_k_with_fft.html", config={'displayModeBar': False, 'displaylogo': False, 'scrollZoom': False})
# Changing sig plot
# Create figure
fig_sig = make_subplots(
rows=1, cols=2,
shared_xaxes=True,
horizontal_spacing=0.02,
specs=[[{'type': 'scatter3d'}, {'type': 'scatter3d'}]])
# Add traces, one for each slider step
k = 3
sig_arr = np.logspace(-0.8, 0.5, 4)
phi_0 = 0
sig = 1
x=np.arange(-20, 20.01, 0.01)
for sig_i in sig_arr:
psi = np.multiply(np.exp(1j*k*x), np.sqrt(np.exp(-np.power(x-phi_0, 2)/(2*sig_i**2))/(sig_i*np.sqrt(2*np.pi))))
fig_sig.add_trace(
go.Scatter3d(
visible=False,
line=dict(color="black", width=2),
name="wavefunction",
x=x,
y=np.imag(psi),
z=np.real(psi),
mode="lines"), row=1, col=1)
fig_sig.add_trace(
go.Scatter3d(
visible=False,
line=dict(color="red", width=1),
name="real part",
x=x,
y=-2*np.ones(psi.shape),
z=np.real(psi),
mode="lines"), row=1, col=1)
fig_sig.add_trace(
go.Scatter3d(
visible=False,
line=dict(color="orange", width=1),
name="imaginary part",
x= x,
y= np.imag(psi),
z= -2*np.ones(psi.shape),
mode="lines"), row=1, col=1)
fig_sig.add_trace(
go.Scatter3d(
visible=False,
x=x,
y= -2*np.ones(psi.shape),
z=np.abs(psi),
name="prob amplitude", mode="lines", line=dict(color='black', width=2)), row=1, col=1)
for sig_i in sig_arr:
psi_fft = fft(np.multiply(np.exp(1j*k*x), np.sqrt(np.exp(-np.power(x-phi_0, 2)/(2*sig_i**2))/(sig_i*np.sqrt(2*np.pi)))))
xf = fftfreq(len(x), x[1] - x[0])
fig_sig.add_trace(
go.Scatter3d(
visible=False,
line=dict(color="black", width=2),
name="wavefunction",
x=np.concatenate((xf[len(xf)//2+1:], [xf[0]], xf[1:len(xf)//2])),
y=np.imag(np.concatenate((psi_fft[len(xf)//2+1:],[psi_fft[0]], psi_fft[1:len(xf)//2]))),
z=np.real(np.concatenate((psi_fft[len(xf)//2+1:],[psi_fft[0]], psi_fft[1:len(xf)//2]))),
mode="lines"), row=1, col=2)
fig_sig.add_trace(
go.Scatter3d(
visible=False,
line=dict(color="red", width=1),
name="real part",
x=np.concatenate((xf[len(xf)//2+1:], [xf[0]], xf[1:len(xf)//2])),
y=-9*np.ones(psi_fft.shape),
z=np.real(np.concatenate((psi_fft[len(xf)//2+1:],[psi_fft[0]], psi_fft[1:len(xf)//2]))),
mode="lines"), row=1, col=2)
fig_sig.add_trace(
go.Scatter3d(
visible=False,
line=dict(color="orange", width=1),
name="imaginary part",
x= np.concatenate((xf[len(xf)//2+1:], [xf[0]], xf[1:len(xf)//2])),
y= np.imag(np.concatenate((psi_fft[len(xf)//2+1:],[psi_fft[0]], psi_fft[1:len(xf)//2]))),
z= -320*np.ones(psi_fft.shape),
mode="lines"), row=1, col=2)
fig_sig.add_trace(
go.Scatter3d(
visible=False,
x=np.concatenate((xf[len(xf)//2+1:], [xf[0]], xf[1:len(xf)//2])),
y= -9*np.ones(psi_fft.shape),
z=np.abs(np.concatenate((psi_fft[len(xf)//2+1:],[psi_fft[0]], psi_fft[1:len(xf)//2]))),
name="prob amplitude", mode="lines", line=dict(color='black', width=2)), row=1, col=2)
# Make 10th trace visible
fig_sig.data[4].visible = True
fig_sig.data[5].visible = True
fig_sig.data[6].visible = True
fig_sig.data[7].visible = True
fig_sig.data[len(fig_sig.data)//2+4].visible = True
fig_sig.data[len(fig_sig.data)//2+5].visible = True
fig_sig.data[len(fig_sig.data)//2+6].visible = True
fig_sig.data[len(fig_sig.data)//2+7].visible = True
# Create and add slider
steps = []
for i in range(0, len(fig_sig.data)//2, 4):
step = dict(
method="update",
args=[{"visible": [False] * len(fig_sig.data)}], # layout attribute
label=str(round(sig_arr[i//4],2))
)
step["args"][0]["visible"][i] = True # Toggle i'th trace to "visible"
step["args"][0]["visible"][i+1] = True # Toggle i'th trace to "visible"
step["args"][0]["visible"][i+2] = True # Toggle i'th trace to "visible"
step["args"][0]["visible"][i+3] = True
step["args"][0]["visible"][len(fig_sig.data)//2+i] = True # Toggle i'th trace to "visible"
step["args"][0]["visible"][len(fig_sig.data)//2+i+1] = True # Toggle i'th trace to "visible"
step["args"][0]["visible"][len(fig_sig.data)//2+i+2] = True # Toggle i'th trace to "visible"
step["args"][0]["visible"][len(fig_sig.data)//2+i+3] = True
steps.append(step)
sliders = [dict(
active=1,
currentvalue={"prefix": "Standard diviation: "},
pad={"t": 33},
steps=steps
)]
fig_sig.update_layout(
sliders=sliders
)
fig_sig.update_layout(
scene = dict(
xaxis = dict(nticks=10, range=[-5,5],),
yaxis = dict(nticks=4, range=[-2,2],),
zaxis = dict(nticks=4, range=[-2,2],),
xaxis_title='Phi',
yaxis_title='Imaginary',
zaxis_title='Real',))
#margin=dict(r=20, l=10, b=10, t=10))
fig_sig.update_layout(
scene2 = dict(
xaxis = dict(nticks=10, range=[-5,5],),
yaxis = dict(nticks=4, range=[-9, 9],),
zaxis = dict(nticks=4, range=[-320, 320],),
xaxis_title='Q',
yaxis_title='Imaginary',
zaxis_title='Real',))
fig_sig.update_layout(scene_aspectmode='manual',
scene_aspectratio=dict(x=2, y=1, z=1),
scene2_aspectmode='manual',
scene2_aspectratio=dict(x=2, y=1, z=1),
showlegend=False,
margin=dict(l=10, r=10, t=5, b=5),
scene_camera=dict(eye=dict(x=1, y=2.4, z=0.4)),
scene2_camera=dict(eye=dict(x=1, y=2.4, z=0.4))
#width=1000
)
fig_sig.show(config={'displayModeBar': False, 'displaylogo': False, 'scrollZoom': False})
fig_sig.write_html("wavefunction_changing_sig_with_fft.html", config={'displayModeBar': False, 'displaylogo': False, 'scrollZoom': False})
# Changing sig plot
# Create figure
fig_mean = make_subplots(
rows=1, cols=2,
shared_xaxes=True,
horizontal_spacing=0.02,
specs=[[{'type': 'scatter3d'}, {'type': 'scatter3d'}]])
# Add traces, one for each slider step
k = 3
sig = 1
phi_0 = np.arange(-3, 3.5, 0.5)
sig = 1
x=np.arange(-20, 20.01, 0.01)
for phi_0_i in phi_0:
psi = np.multiply(np.exp(1j*k*x), np.sqrt(np.exp(-np.power(x-phi_0_i, 2)/(2*sig**2))/(sig*np.sqrt(2*np.pi))))
fig_mean.add_trace(
go.Scatter3d(
visible=False,
line=dict(color="black", width=2),
name="wavefunction",
x=x,
y=np.imag(psi),
z=np.real(psi),
mode="lines"), row=1, col=1)
fig_mean.add_trace(
go.Scatter3d(
visible=False,
line=dict(color="red", width=1),
name="real part",
x=x,
y=-np.ones(psi.shape),
z=np.real(psi),
mode="lines"), row=1, col=1)
fig_mean.add_trace(
go.Scatter3d(
visible=False,
line=dict(color="orange", width=1),
name="imaginary part",
x= x,
y= np.imag(psi),
z= -np.ones(psi.shape),
mode="lines"), row=1, col=1)
fig_mean.add_trace(
go.Scatter3d(
visible=False,
x=x,
y= -np.ones(psi.shape),
z=np.abs(psi),
name="prob amplitude", mode="lines", line=dict(color='black', width=2)), row=1, col=1)
for phi_0_i in phi_0:
psi_fft = fft(np.multiply(np.exp(1j*k*x), np.sqrt(np.exp(-np.power(x-phi_0_i, 2)/(2*sig**2))/(sig*np.sqrt(2*np.pi)))))
xf = fftfreq(len(x), x[1] - x[0])
fig_mean.add_trace(
go.Scatter3d(
visible=False,
line=dict(color="black", width=2),
name="wavefunction",
x=np.concatenate((xf[len(xf)//2+1:], [xf[0]], xf[1:len(xf)//2])),
y=np.imag(np.concatenate((psi_fft[len(xf)//2+1:],[psi_fft[0]], psi_fft[1:len(xf)//2]))),
z=np.real(np.concatenate((psi_fft[len(xf)//2+1:],[psi_fft[0]], psi_fft[1:len(xf)//2]))),
mode="lines"), row=1, col=2)
fig_mean.add_trace(
go.Scatter3d(
visible=False,
line=dict(color="red", width=1),
name="real part",
x=np.concatenate((xf[len(xf)//2+1:], [xf[0]], xf[1:len(xf)//2])),
y=-290*np.ones(psi_fft.shape),
z=np.real(np.concatenate((psi_fft[len(xf)//2+1:],[psi_fft[0]], psi_fft[1:len(xf)//2]))),
mode="lines"), row=1, col=2)
fig_mean.add_trace(
go.Scatter3d(
visible=False,
line=dict(color="orange", width=1),
name="imaginary part",
x= np.concatenate((xf[len(xf)//2+1:], [xf[0]], xf[1:len(xf)//2])),
y= np.imag(np.concatenate((psi_fft[len(xf)//2+1:],[psi_fft[0]], psi_fft[1:len(xf)//2]))),
z= -410*np.ones(psi_fft.shape),
mode="lines"), row=1, col=2)
fig_mean.add_trace(
go.Scatter3d(
visible=False,
x=np.concatenate((xf[len(xf)//2+1:], [xf[0]], xf[1:len(xf)//2])),
y= -290*np.ones(psi_fft.shape),
z=np.abs(np.concatenate((psi_fft[len(xf)//2+1:],[psi_fft[0]], psi_fft[1:len(xf)//2]))),
name="prob amplitude", mode="lines", line=dict(color='black', width=2)), row=1, col=2)
# Make 10th trace visible
fig_mean.data[24].visible = True
fig_mean.data[25].visible = True
fig_mean.data[26].visible = True
fig_mean.data[27].visible = True
fig_mean.data[len(fig_mean.data)//2+24].visible = True
fig_mean.data[len(fig_mean.data)//2+25].visible = True
fig_mean.data[len(fig_mean.data)//2+26].visible = True
fig_mean.data[len(fig_mean.data)//2+27].visible = True
# Create and add slider
steps = []
for i in range(0, len(fig_mean.data)//2, 4):
step = dict(
method="update",
args=[{"visible": [False] * len(fig_mean.data)}], # layout attribute
label=str(phi_0[i//4])
)
step["args"][0]["visible"][i] = True # Toggle i'th trace to "visible"
step["args"][0]["visible"][i+1] = True # Toggle i'th trace to "visible"
step["args"][0]["visible"][i+2] = True # Toggle i'th trace to "visible"
step["args"][0]["visible"][i+3] = True
step["args"][0]["visible"][len(fig_mean.data)//2+i] = True # Toggle i'th trace to "visible"
step["args"][0]["visible"][len(fig_mean.data)//2+i+1] = True # Toggle i'th trace to "visible"
step["args"][0]["visible"][len(fig_mean.data)//2+i+2] = True # Toggle i'th trace to "visible"
step["args"][0]["visible"][len(fig_mean.data)//2+i+3] = True
steps.append(step)
sliders = [dict(
active=6,
currentvalue={"prefix": "Mean: "},
pad={"t": 33},
steps=steps
)]
fig_mean.update_layout(
sliders=sliders
)
fig_mean.update_layout(
scene = dict(
xaxis = dict(nticks=10, range=[-5,5],),
yaxis = dict(nticks=4, range=[-2,2],),
zaxis = dict(nticks=4, range=[-2,2],),
xaxis_title='Phi',
yaxis_title='Imaginary',
zaxis_title='Real',))
#margin=dict(r=20, l=10, b=10, t=10))
fig_mean.update_layout(
scene2 = dict(
xaxis = dict(nticks=10, range=[-3,3],),
yaxis = dict(nticks=4, range=[-290, 290],),
zaxis = dict(nticks=4, range=[-430, 430],),
xaxis_title='Q',
yaxis_title='Imaginary',
zaxis_title='Real',))
fig_mean.update_layout(scene_aspectmode='manual',
scene_aspectratio=dict(x=2, y=1, z=1),
scene2_aspectmode='manual',
scene2_aspectratio=dict(x=2, y=1, z=1),
showlegend=False,
margin=dict(l=10, r=10, t=5, b=5),
scene_camera=dict(eye=dict(x=1, y=2.4, z=0.4)),
scene2_camera=dict(eye=dict(x=1, y=2.4, z=0.4))
#width=1000
)
fig_mean.show(config={'displayModeBar': False, 'displaylogo': False, 'scrollZoom': False})
fig_mean.write_html("wavefunction_changing_mu_with_fft.html", config={'displayModeBar': False, 'displaylogo': False, 'scrollZoom': False})
| 37.71
| 138
| 0.544789
| 2,938
| 18,855
| 3.39823
| 0.058203
| 0.035457
| 0.032452
| 0.01893
| 0.94361
| 0.916066
| 0.888421
| 0.880709
| 0.8748
| 0.848958
| 0
| 0.051067
| 0.252241
| 18,855
| 500
| 139
| 37.71
| 0.657068
| 0.066879
| 0
| 0.772414
| 0
| 0
| 0.080882
| 0.006498
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.009195
| 0
| 0.009195
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
7296c24c4616ef15891a6b80293d929e4f9fad0b
| 179
|
py
|
Python
|
Plant_Disease_Detection_Benchmark_models/Inception_V3/__init__.py
|
qvandenberg/plant-disease-experiments
|
fc79197a34acc3f03f6562e510255de28461b49d
|
[
"MIT"
] | 26
|
2018-05-04T15:15:57.000Z
|
2021-10-17T21:25:10.000Z
|
Plant_Disease_Detection_Benchmark_models/Inception_V3/__init__.py
|
qvandenberg/plant-disease-experiments
|
fc79197a34acc3f03f6562e510255de28461b49d
|
[
"MIT"
] | 5
|
2018-06-26T12:53:55.000Z
|
2019-08-13T10:57:54.000Z
|
Plant_Disease_Detection_Benchmark_models/Inception_V3/__init__.py
|
qvandenberg/plant-disease-experiments
|
fc79197a34acc3f03f6562e510255de28461b49d
|
[
"MIT"
] | 24
|
2018-10-09T07:04:10.000Z
|
2021-03-08T17:37:47.000Z
|
from Inception_V3.finetune import build_finetuned_model
from Inception_V3.baseline_scratch import build_baseline_model
from Inception_V3.custom_baseline import build_custom_model
| 44.75
| 62
| 0.916201
| 26
| 179
| 5.884615
| 0.423077
| 0.254902
| 0.294118
| 0.261438
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.017964
| 0.067039
| 179
| 3
| 63
| 59.666667
| 0.898204
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 0
| 1
| 0
| 1
| 0
| 0
| null | 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 8
|
72e1a184699b90a157be6d28f009a03e2afdd5b3
| 170
|
py
|
Python
|
hTools2.roboFontExt/lib/Scripts/selected glyphs/transform/slide.py
|
frankrolf/hTools2_extension
|
9d73b8640c85209853a72f8d4b167768de5e0d60
|
[
"BSD-3-Clause"
] | 2
|
2019-12-18T16:12:07.000Z
|
2019-12-21T01:19:23.000Z
|
hTools2.roboFontExt/lib/Scripts/selected glyphs/transform/slide.py
|
frankrolf/hTools2_extension
|
9d73b8640c85209853a72f8d4b167768de5e0d60
|
[
"BSD-3-Clause"
] | null | null | null |
hTools2.roboFontExt/lib/Scripts/selected glyphs/transform/slide.py
|
frankrolf/hTools2_extension
|
9d73b8640c85209853a72f8d4b167768de5e0d60
|
[
"BSD-3-Clause"
] | null | null | null |
# [h] slide glyphs
import hTools2.dialogs.glyphs.slide
import importlib
importlib.reload(hTools2.dialogs.glyphs.slide)
hTools2.dialogs.glyphs.slide.slideGlyphsDialog()
| 21.25
| 48
| 0.823529
| 21
| 170
| 6.666667
| 0.428571
| 0.3
| 0.428571
| 0.535714
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.018987
| 0.070588
| 170
| 7
| 49
| 24.285714
| 0.867089
| 0.094118
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0.75
| 0
| 0.75
| 0
| 1
| 0
| 0
| null | 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 8
|
72e84dfd5d3532df2d2023c1e5fa541a51572618
| 4,953
|
py
|
Python
|
test/test_njt_rail.py
|
Intersection/gtfs-realtime-translators
|
67919600a3511a5424a620be893982b968c782f7
|
[
"Apache-2.0"
] | 17
|
2019-06-20T15:09:57.000Z
|
2021-04-30T22:01:16.000Z
|
test/test_njt_rail.py
|
Intersection/gtfs-realtime-translators
|
67919600a3511a5424a620be893982b968c782f7
|
[
"Apache-2.0"
] | 18
|
2019-06-19T17:46:21.000Z
|
2022-03-25T20:28:34.000Z
|
test/test_njt_rail.py
|
Intersection/gtfs-realtime-translators
|
67919600a3511a5424a620be893982b968c782f7
|
[
"Apache-2.0"
] | null | null | null |
import pytest
from gtfs_realtime_translators.factories import FeedMessage
from gtfs_realtime_translators.translators import NjtRailGtfsRealtimeTranslator
from gtfs_realtime_translators.bindings import intersection_pb2 as intersection_gtfs_realtime
@pytest.fixture
def njt_rail():
with open('test/fixtures/njt_rail.xml') as f:
raw = f.read()
return raw
def test_njt_data(njt_rail):
translator = NjtRailGtfsRealtimeTranslator()
message = translator(njt_rail)
entity = message.entity[6]
trip_update = entity.trip_update
stop_time_update = trip_update.stop_time_update[0]
assert message.header.gtfs_realtime_version == FeedMessage.VERSION
assert entity.id == '7'
assert trip_update.trip.trip_id == ''
assert trip_update.trip.route_id == '9'
assert stop_time_update.stop_id == 'NP'
assert stop_time_update.departure.time == 1570045710
assert stop_time_update.arrival.time == 1570045710
intersection_trip_update = trip_update.Extensions[intersection_gtfs_realtime.intersection_trip_update]
assert intersection_trip_update.headsign == 'New York'
assert intersection_trip_update.route_short_name == 'NEC'
assert intersection_trip_update.route_long_name == 'Northeast Corridor Line'
assert intersection_trip_update.route_color == 'black'
assert intersection_trip_update.route_text_color == 'white'
assert intersection_trip_update.block_id == '3154'
assert intersection_trip_update.agency_timezone == 'America/New_York'
assert intersection_trip_update.custom_status == ''
intersection_stop_time_update = stop_time_update.Extensions[intersection_gtfs_realtime.intersection_stop_time_update]
assert intersection_stop_time_update.track == '1'
assert intersection_stop_time_update.scheduled_arrival.time == 1570045710
assert intersection_stop_time_update.scheduled_departure.time == 1570045710
assert intersection_stop_time_update.stop_name == 'Newark Penn'
def test_njt_data_amtrak(njt_rail):
translator = NjtRailGtfsRealtimeTranslator()
message = translator(njt_rail)
entity = message.entity[0]
trip_update = entity.trip_update
stop_time_update = trip_update.stop_time_update[0]
assert message.header.gtfs_realtime_version == FeedMessage.VERSION
assert entity.id == '1'
assert trip_update.trip.trip_id == ''
assert trip_update.trip.route_id == 'AMTK'
assert stop_time_update.stop_id == 'NP'
assert stop_time_update.departure.time == 1570044525
assert stop_time_update.arrival.time == 1570044525
intersection_trip_update = trip_update.Extensions[intersection_gtfs_realtime.intersection_trip_update]
assert intersection_trip_update.headsign == 'Boston'
assert intersection_trip_update.route_short_name == 'AMTRAK'
assert intersection_trip_update.route_long_name == 'Amtrak'
assert intersection_trip_update.route_color == 'yellow'
assert intersection_trip_update.route_text_color == 'black'
assert intersection_trip_update.block_id == 'A176'
assert intersection_trip_update.agency_timezone == 'America/New_York'
assert intersection_trip_update.custom_status == 'All Aboard'
intersection_stop_time_update = stop_time_update.Extensions[intersection_gtfs_realtime.intersection_stop_time_update]
assert intersection_stop_time_update.track == '2'
assert intersection_stop_time_update.scheduled_arrival.time == 1570042920
assert intersection_stop_time_update.scheduled_departure.time == 1570042920
entity = message.entity[15]
trip_update = entity.trip_update
stop_time_update = trip_update.stop_time_update[0]
assert message.header.gtfs_realtime_version == FeedMessage.VERSION
assert entity.id == '16'
assert trip_update.trip.trip_id == ''
assert trip_update.trip.route_id == 'AMTK'
assert stop_time_update.stop_id == 'NP'
assert stop_time_update.departure.time == 1570047420
assert stop_time_update.arrival.time == 1570047420
intersection_trip_update = trip_update.Extensions[intersection_gtfs_realtime.intersection_trip_update]
assert intersection_trip_update.headsign == 'Washington'
assert intersection_trip_update.route_short_name == 'ACELA EXPRESS'
assert intersection_trip_update.route_long_name == 'Amtrak Acela Express'
assert intersection_trip_update.route_color == 'yellow'
assert intersection_trip_update.route_text_color == 'black'
assert intersection_trip_update.block_id == 'A2165'
assert intersection_trip_update.agency_timezone == 'America/New_York'
assert intersection_trip_update.custom_status == ''
intersection_stop_time_update = stop_time_update.Extensions[intersection_gtfs_realtime.intersection_stop_time_update]
assert intersection_stop_time_update.track == '3'
assert intersection_stop_time_update.scheduled_arrival.time == 1570047420
assert intersection_stop_time_update.scheduled_departure.time == 1570047420
| 44.621622
| 121
| 0.793257
| 614
| 4,953
| 5.993485
| 0.149837
| 0.130435
| 0.129348
| 0.182609
| 0.853533
| 0.852446
| 0.804076
| 0.725
| 0.613043
| 0.613043
| 0
| 0.034194
| 0.132041
| 4,953
| 110
| 122
| 45.027273
| 0.821819
| 0
| 0
| 0.423529
| 0
| 0
| 0.051888
| 0.005249
| 0
| 0
| 0
| 0
| 0.647059
| 1
| 0.035294
| false
| 0
| 0.047059
| 0
| 0.094118
| 0
| 0
| 0
| 0
| null | 0
| 0
| 1
| 1
| 1
| 1
| 1
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
72fe82e9796ea23539e2cadc8a46726935c98643
| 329,260
|
py
|
Python
|
src/test/sharestore_lib/sharestore/ttypes.py
|
daimashusheng/SHAREdis
|
1cb3b9b92f245fae759492d67845afc4eb81c4b7
|
[
"Apache-2.0"
] | null | null | null |
src/test/sharestore_lib/sharestore/ttypes.py
|
daimashusheng/SHAREdis
|
1cb3b9b92f245fae759492d67845afc4eb81c4b7
|
[
"Apache-2.0"
] | 4
|
2022-02-18T07:36:57.000Z
|
2022-03-22T07:14:41.000Z
|
src/test/sharestore_lib/sharestore/ttypes.py
|
daimashusheng/SHAREdis
|
1cb3b9b92f245fae759492d67845afc4eb81c4b7
|
[
"Apache-2.0"
] | 1
|
2022-02-11T02:50:41.000Z
|
2022-02-11T02:50:41.000Z
|
#
# Autogenerated by Thrift Compiler (0.11.0)
#
# DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
#
# options string: py
#
from thrift.Thrift import TType, TMessageType, TFrozenDict, TException, TApplicationException
from thrift.protocol.TProtocol import TProtocolException
from thrift.TRecursive import fix_spec
import sys
import admin.ttypes
from thrift.transport import TTransport
all_structs = []
class ErrorCode(object):
OTHER = 0
DB_NOT_FOUND = 1
ROCKSDB_ERROR = 2
SEGMENT_NOT_FOUND = 3
KEY_NOT_FOUND = 4
ROUTING_ERROR = 5
WRITE_TO_SLAVE = 6
NUM_OVERFLOW = 7
REQUEST_INVALID = 8
THROTTLED = 9
VERSION_EXPIRE = 10
_VALUES_TO_NAMES = {
0: "OTHER",
1: "DB_NOT_FOUND",
2: "ROCKSDB_ERROR",
3: "SEGMENT_NOT_FOUND",
4: "KEY_NOT_FOUND",
5: "ROUTING_ERROR",
6: "WRITE_TO_SLAVE",
7: "NUM_OVERFLOW",
8: "REQUEST_INVALID",
9: "THROTTLED",
10: "VERSION_EXPIRE",
}
_NAMES_TO_VALUES = {
"OTHER": 0,
"DB_NOT_FOUND": 1,
"ROCKSDB_ERROR": 2,
"SEGMENT_NOT_FOUND": 3,
"KEY_NOT_FOUND": 4,
"ROUTING_ERROR": 5,
"WRITE_TO_SLAVE": 6,
"NUM_OVERFLOW": 7,
"REQUEST_INVALID": 8,
"THROTTLED": 9,
"VERSION_EXPIRE": 10,
}
class StoreType(object):
KV = 0
COUNTER = 1
DEDUP_SET = 2
SET = 3
HASH = 4
ZSET = 5
ZSET_IDX = 6
HASHEX = 7
OTHER = 8
_VALUES_TO_NAMES = {
0: "KV",
1: "COUNTER",
2: "DEDUP_SET",
3: "SET",
4: "HASH",
5: "ZSET",
6: "ZSET_IDX",
7: "HASHEX",
8: "OTHER",
}
_NAMES_TO_VALUES = {
"KV": 0,
"COUNTER": 1,
"DEDUP_SET": 2,
"SET": 3,
"HASH": 4,
"ZSET": 5,
"ZSET_IDX": 6,
"HASHEX": 7,
"OTHER": 8,
}
class HashType(object):
STR = 0
INT = 1
BUF = 2
_VALUES_TO_NAMES = {
0: "STR",
1: "INT",
2: "BUF",
}
_NAMES_TO_VALUES = {
"STR": 0,
"INT": 1,
"BUF": 2,
}
class SharestoreException(TException):
"""
Attributes:
- message
- code
"""
def __init__(self, message=None, code=None,):
self.message = message
self.code = code
def read(self, iprot):
if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
return
iprot.readStructBegin()
while True:
(fname, ftype, fid) = iprot.readFieldBegin()
if ftype == TType.STOP:
break
if fid == 1:
if ftype == TType.STRING:
self.message = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
else:
iprot.skip(ftype)
elif fid == 2:
if ftype == TType.I32:
self.code = iprot.readI32()
else:
iprot.skip(ftype)
else:
iprot.skip(ftype)
iprot.readFieldEnd()
iprot.readStructEnd()
def write(self, oprot):
if oprot._fast_encode is not None and self.thrift_spec is not None:
oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
return
oprot.writeStructBegin('SharestoreException')
if self.message is not None:
oprot.writeFieldBegin('message', TType.STRING, 1)
oprot.writeString(self.message.encode('utf-8') if sys.version_info[0] == 2 else self.message)
oprot.writeFieldEnd()
if self.code is not None:
oprot.writeFieldBegin('code', TType.I32, 2)
oprot.writeI32(self.code)
oprot.writeFieldEnd()
oprot.writeFieldStop()
oprot.writeStructEnd()
def validate(self):
if self.message is None:
raise TProtocolException(message='Required field message is unset!')
if self.code is None:
raise TProtocolException(message='Required field code is unset!')
return
def __str__(self):
return repr(self)
def __repr__(self):
L = ['%s=%r' % (key, value)
for key, value in self.__dict__.items()]
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
def __eq__(self, other):
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
def __ne__(self, other):
return not (self == other)
class GetRequest(object):
"""
Attributes:
- segment
- key
- need_routing
"""
def __init__(self, segment="default", key=None, need_routing=True,):
self.segment = segment
self.key = key
self.need_routing = need_routing
def read(self, iprot):
if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
return
iprot.readStructBegin()
while True:
(fname, ftype, fid) = iprot.readFieldBegin()
if ftype == TType.STOP:
break
if fid == 1:
if ftype == TType.STRING:
self.segment = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
else:
iprot.skip(ftype)
elif fid == 2:
if ftype == TType.STRING:
self.key = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
else:
iprot.skip(ftype)
elif fid == 3:
if ftype == TType.BOOL:
self.need_routing = iprot.readBool()
else:
iprot.skip(ftype)
else:
iprot.skip(ftype)
iprot.readFieldEnd()
iprot.readStructEnd()
def write(self, oprot):
if oprot._fast_encode is not None and self.thrift_spec is not None:
oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
return
oprot.writeStructBegin('GetRequest')
if self.segment is not None:
oprot.writeFieldBegin('segment', TType.STRING, 1)
oprot.writeString(self.segment.encode('utf-8') if sys.version_info[0] == 2 else self.segment)
oprot.writeFieldEnd()
if self.key is not None:
oprot.writeFieldBegin('key', TType.STRING, 2)
oprot.writeString(self.key.encode('utf-8') if sys.version_info[0] == 2 else self.key)
oprot.writeFieldEnd()
if self.need_routing is not None:
oprot.writeFieldBegin('need_routing', TType.BOOL, 3)
oprot.writeBool(self.need_routing)
oprot.writeFieldEnd()
oprot.writeFieldStop()
oprot.writeStructEnd()
def validate(self):
if self.key is None:
raise TProtocolException(message='Required field key is unset!')
return
def __repr__(self):
L = ['%s=%r' % (key, value)
for key, value in self.__dict__.items()]
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
def __eq__(self, other):
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
def __ne__(self, other):
return not (self == other)
class GetResponse(object):
"""
Attributes:
- value
- error
"""
def __init__(self, value=None, error=None,):
self.value = value
self.error = error
def read(self, iprot):
if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
return
iprot.readStructBegin()
while True:
(fname, ftype, fid) = iprot.readFieldBegin()
if ftype == TType.STOP:
break
if fid == 1:
if ftype == TType.STRING:
self.value = iprot.readBinary()
else:
iprot.skip(ftype)
elif fid == 2:
if ftype == TType.STRUCT:
self.error = SharestoreException()
self.error.read(iprot)
else:
iprot.skip(ftype)
else:
iprot.skip(ftype)
iprot.readFieldEnd()
iprot.readStructEnd()
def write(self, oprot):
if oprot._fast_encode is not None and self.thrift_spec is not None:
oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
return
oprot.writeStructBegin('GetResponse')
if self.value is not None:
oprot.writeFieldBegin('value', TType.STRING, 1)
oprot.writeBinary(self.value)
oprot.writeFieldEnd()
if self.error is not None:
oprot.writeFieldBegin('error', TType.STRUCT, 2)
self.error.write(oprot)
oprot.writeFieldEnd()
oprot.writeFieldStop()
oprot.writeStructEnd()
def validate(self):
if self.value is None:
raise TProtocolException(message='Required field value is unset!')
return
def __repr__(self):
L = ['%s=%r' % (key, value)
for key, value in self.__dict__.items()]
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
def __eq__(self, other):
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
def __ne__(self, other):
return not (self == other)
class MultiGetRequest(object):
"""
Attributes:
- segment
- keys
- index
- need_routing
"""
def __init__(self, segment="default", keys=None, index=None, need_routing=True,):
self.segment = segment
self.keys = keys
self.index = index
self.need_routing = need_routing
def read(self, iprot):
if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
return
iprot.readStructBegin()
while True:
(fname, ftype, fid) = iprot.readFieldBegin()
if ftype == TType.STOP:
break
if fid == 1:
if ftype == TType.STRING:
self.segment = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
else:
iprot.skip(ftype)
elif fid == 2:
if ftype == TType.LIST:
self.keys = []
(_etype3, _size0) = iprot.readListBegin()
for _i4 in range(_size0):
_elem5 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
self.keys.append(_elem5)
iprot.readListEnd()
else:
iprot.skip(ftype)
elif fid == 3:
if ftype == TType.LIST:
self.index = []
(_etype9, _size6) = iprot.readListBegin()
for _i10 in range(_size6):
_elem11 = iprot.readI32()
self.index.append(_elem11)
iprot.readListEnd()
else:
iprot.skip(ftype)
elif fid == 4:
if ftype == TType.BOOL:
self.need_routing = iprot.readBool()
else:
iprot.skip(ftype)
else:
iprot.skip(ftype)
iprot.readFieldEnd()
iprot.readStructEnd()
def write(self, oprot):
if oprot._fast_encode is not None and self.thrift_spec is not None:
oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
return
oprot.writeStructBegin('MultiGetRequest')
if self.segment is not None:
oprot.writeFieldBegin('segment', TType.STRING, 1)
oprot.writeString(self.segment.encode('utf-8') if sys.version_info[0] == 2 else self.segment)
oprot.writeFieldEnd()
if self.keys is not None:
oprot.writeFieldBegin('keys', TType.LIST, 2)
oprot.writeListBegin(TType.STRING, len(self.keys))
for iter12 in self.keys:
oprot.writeString(iter12.encode('utf-8') if sys.version_info[0] == 2 else iter12)
oprot.writeListEnd()
oprot.writeFieldEnd()
if self.index is not None:
oprot.writeFieldBegin('index', TType.LIST, 3)
oprot.writeListBegin(TType.I32, len(self.index))
for iter13 in self.index:
oprot.writeI32(iter13)
oprot.writeListEnd()
oprot.writeFieldEnd()
if self.need_routing is not None:
oprot.writeFieldBegin('need_routing', TType.BOOL, 4)
oprot.writeBool(self.need_routing)
oprot.writeFieldEnd()
oprot.writeFieldStop()
oprot.writeStructEnd()
def validate(self):
if self.keys is None:
raise TProtocolException(message='Required field keys is unset!')
return
def __repr__(self):
L = ['%s=%r' % (key, value)
for key, value in self.__dict__.items()]
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
def __eq__(self, other):
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
def __ne__(self, other):
return not (self == other)
class MultiGetResponse(object):
"""
Attributes:
- responses
- sub_request_indices
"""
def __init__(self, responses=None, sub_request_indices=None,):
self.responses = responses
self.sub_request_indices = sub_request_indices
def read(self, iprot):
if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
return
iprot.readStructBegin()
while True:
(fname, ftype, fid) = iprot.readFieldBegin()
if ftype == TType.STOP:
break
if fid == 1:
if ftype == TType.LIST:
self.responses = []
(_etype17, _size14) = iprot.readListBegin()
for _i18 in range(_size14):
_elem19 = GetResponse()
_elem19.read(iprot)
self.responses.append(_elem19)
iprot.readListEnd()
else:
iprot.skip(ftype)
elif fid == 2:
if ftype == TType.LIST:
self.sub_request_indices = []
(_etype23, _size20) = iprot.readListBegin()
for _i24 in range(_size20):
_elem25 = iprot.readI32()
self.sub_request_indices.append(_elem25)
iprot.readListEnd()
else:
iprot.skip(ftype)
else:
iprot.skip(ftype)
iprot.readFieldEnd()
iprot.readStructEnd()
def write(self, oprot):
if oprot._fast_encode is not None and self.thrift_spec is not None:
oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
return
oprot.writeStructBegin('MultiGetResponse')
if self.responses is not None:
oprot.writeFieldBegin('responses', TType.LIST, 1)
oprot.writeListBegin(TType.STRUCT, len(self.responses))
for iter26 in self.responses:
iter26.write(oprot)
oprot.writeListEnd()
oprot.writeFieldEnd()
if self.sub_request_indices is not None:
oprot.writeFieldBegin('sub_request_indices', TType.LIST, 2)
oprot.writeListBegin(TType.I32, len(self.sub_request_indices))
for iter27 in self.sub_request_indices:
oprot.writeI32(iter27)
oprot.writeListEnd()
oprot.writeFieldEnd()
oprot.writeFieldStop()
oprot.writeStructEnd()
def validate(self):
if self.responses is None:
raise TProtocolException(message='Required field responses is unset!')
return
def __repr__(self):
L = ['%s=%r' % (key, value)
for key, value in self.__dict__.items()]
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
def __eq__(self, other):
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
def __ne__(self, other):
return not (self == other)
class TtlRequest(object):
"""
Attributes:
- segment
- key
- need_routing
"""
def __init__(self, segment="default", key=None, need_routing=True,):
self.segment = segment
self.key = key
self.need_routing = need_routing
def read(self, iprot):
if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
return
iprot.readStructBegin()
while True:
(fname, ftype, fid) = iprot.readFieldBegin()
if ftype == TType.STOP:
break
if fid == 1:
if ftype == TType.STRING:
self.segment = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
else:
iprot.skip(ftype)
elif fid == 2:
if ftype == TType.STRING:
self.key = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
else:
iprot.skip(ftype)
elif fid == 3:
if ftype == TType.BOOL:
self.need_routing = iprot.readBool()
else:
iprot.skip(ftype)
else:
iprot.skip(ftype)
iprot.readFieldEnd()
iprot.readStructEnd()
def write(self, oprot):
if oprot._fast_encode is not None and self.thrift_spec is not None:
oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
return
oprot.writeStructBegin('TtlRequest')
if self.segment is not None:
oprot.writeFieldBegin('segment', TType.STRING, 1)
oprot.writeString(self.segment.encode('utf-8') if sys.version_info[0] == 2 else self.segment)
oprot.writeFieldEnd()
if self.key is not None:
oprot.writeFieldBegin('key', TType.STRING, 2)
oprot.writeString(self.key.encode('utf-8') if sys.version_info[0] == 2 else self.key)
oprot.writeFieldEnd()
if self.need_routing is not None:
oprot.writeFieldBegin('need_routing', TType.BOOL, 3)
oprot.writeBool(self.need_routing)
oprot.writeFieldEnd()
oprot.writeFieldStop()
oprot.writeStructEnd()
def validate(self):
if self.key is None:
raise TProtocolException(message='Required field key is unset!')
return
def __repr__(self):
L = ['%s=%r' % (key, value)
for key, value in self.__dict__.items()]
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
def __eq__(self, other):
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
def __ne__(self, other):
return not (self == other)
class TtlResponse(object):
"""
Attributes:
- ttl_sec
- error
"""
def __init__(self, ttl_sec=None, error=None,):
self.ttl_sec = ttl_sec
self.error = error
def read(self, iprot):
if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
return
iprot.readStructBegin()
while True:
(fname, ftype, fid) = iprot.readFieldBegin()
if ftype == TType.STOP:
break
if fid == 1:
if ftype == TType.I32:
self.ttl_sec = iprot.readI32()
else:
iprot.skip(ftype)
elif fid == 2:
if ftype == TType.STRUCT:
self.error = SharestoreException()
self.error.read(iprot)
else:
iprot.skip(ftype)
else:
iprot.skip(ftype)
iprot.readFieldEnd()
iprot.readStructEnd()
def write(self, oprot):
if oprot._fast_encode is not None and self.thrift_spec is not None:
oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
return
oprot.writeStructBegin('TtlResponse')
if self.ttl_sec is not None:
oprot.writeFieldBegin('ttl_sec', TType.I32, 1)
oprot.writeI32(self.ttl_sec)
oprot.writeFieldEnd()
if self.error is not None:
oprot.writeFieldBegin('error', TType.STRUCT, 2)
self.error.write(oprot)
oprot.writeFieldEnd()
oprot.writeFieldStop()
oprot.writeStructEnd()
def validate(self):
if self.ttl_sec is None:
raise TProtocolException(message='Required field ttl_sec is unset!')
return
def __repr__(self):
L = ['%s=%r' % (key, value)
for key, value in self.__dict__.items()]
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
def __eq__(self, other):
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
def __ne__(self, other):
return not (self == other)
class SetRequest(object):
"""
Attributes:
- segment
- key
- value
- ttl_sec
- need_routing
"""
def __init__(self, segment="default", key=None, value=None, ttl_sec=0, need_routing=True,):
self.segment = segment
self.key = key
self.value = value
self.ttl_sec = ttl_sec
self.need_routing = need_routing
def read(self, iprot):
if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
return
iprot.readStructBegin()
while True:
(fname, ftype, fid) = iprot.readFieldBegin()
if ftype == TType.STOP:
break
if fid == 1:
if ftype == TType.STRING:
self.segment = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
else:
iprot.skip(ftype)
elif fid == 2:
if ftype == TType.STRING:
self.key = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
else:
iprot.skip(ftype)
elif fid == 3:
if ftype == TType.STRING:
self.value = iprot.readBinary()
else:
iprot.skip(ftype)
elif fid == 4:
if ftype == TType.I32:
self.ttl_sec = iprot.readI32()
else:
iprot.skip(ftype)
elif fid == 5:
if ftype == TType.BOOL:
self.need_routing = iprot.readBool()
else:
iprot.skip(ftype)
else:
iprot.skip(ftype)
iprot.readFieldEnd()
iprot.readStructEnd()
def write(self, oprot):
if oprot._fast_encode is not None and self.thrift_spec is not None:
oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
return
oprot.writeStructBegin('SetRequest')
if self.segment is not None:
oprot.writeFieldBegin('segment', TType.STRING, 1)
oprot.writeString(self.segment.encode('utf-8') if sys.version_info[0] == 2 else self.segment)
oprot.writeFieldEnd()
if self.key is not None:
oprot.writeFieldBegin('key', TType.STRING, 2)
oprot.writeString(self.key.encode('utf-8') if sys.version_info[0] == 2 else self.key)
oprot.writeFieldEnd()
if self.value is not None:
oprot.writeFieldBegin('value', TType.STRING, 3)
oprot.writeBinary(self.value)
oprot.writeFieldEnd()
if self.ttl_sec is not None:
oprot.writeFieldBegin('ttl_sec', TType.I32, 4)
oprot.writeI32(self.ttl_sec)
oprot.writeFieldEnd()
if self.need_routing is not None:
oprot.writeFieldBegin('need_routing', TType.BOOL, 5)
oprot.writeBool(self.need_routing)
oprot.writeFieldEnd()
oprot.writeFieldStop()
oprot.writeStructEnd()
def validate(self):
if self.key is None:
raise TProtocolException(message='Required field key is unset!')
if self.value is None:
raise TProtocolException(message='Required field value is unset!')
return
def __repr__(self):
L = ['%s=%r' % (key, value)
for key, value in self.__dict__.items()]
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
def __eq__(self, other):
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
def __ne__(self, other):
return not (self == other)
class SetResponse(object):
"""
Attributes:
- error
"""
def __init__(self, error=None,):
self.error = error
def read(self, iprot):
if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
return
iprot.readStructBegin()
while True:
(fname, ftype, fid) = iprot.readFieldBegin()
if ftype == TType.STOP:
break
if fid == 1:
if ftype == TType.STRUCT:
self.error = SharestoreException()
self.error.read(iprot)
else:
iprot.skip(ftype)
else:
iprot.skip(ftype)
iprot.readFieldEnd()
iprot.readStructEnd()
def write(self, oprot):
if oprot._fast_encode is not None and self.thrift_spec is not None:
oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
return
oprot.writeStructBegin('SetResponse')
if self.error is not None:
oprot.writeFieldBegin('error', TType.STRUCT, 1)
self.error.write(oprot)
oprot.writeFieldEnd()
oprot.writeFieldStop()
oprot.writeStructEnd()
def validate(self):
return
def __repr__(self):
L = ['%s=%r' % (key, value)
for key, value in self.__dict__.items()]
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
def __eq__(self, other):
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
def __ne__(self, other):
return not (self == other)
class MultiSetRequest(object):
"""
Attributes:
- segment
- keys
- values
- ttl_secs
- index
- need_routing
"""
def __init__(self, segment="default", keys=None, values=None, ttl_secs=None, index=None, need_routing=True,):
self.segment = segment
self.keys = keys
self.values = values
self.ttl_secs = ttl_secs
self.index = index
self.need_routing = need_routing
def read(self, iprot):
if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
return
iprot.readStructBegin()
while True:
(fname, ftype, fid) = iprot.readFieldBegin()
if ftype == TType.STOP:
break
if fid == 1:
if ftype == TType.STRING:
self.segment = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
else:
iprot.skip(ftype)
elif fid == 2:
if ftype == TType.LIST:
self.keys = []
(_etype31, _size28) = iprot.readListBegin()
for _i32 in range(_size28):
_elem33 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
self.keys.append(_elem33)
iprot.readListEnd()
else:
iprot.skip(ftype)
elif fid == 3:
if ftype == TType.LIST:
self.values = []
(_etype37, _size34) = iprot.readListBegin()
for _i38 in range(_size34):
_elem39 = iprot.readBinary()
self.values.append(_elem39)
iprot.readListEnd()
else:
iprot.skip(ftype)
elif fid == 4:
if ftype == TType.LIST:
self.ttl_secs = []
(_etype43, _size40) = iprot.readListBegin()
for _i44 in range(_size40):
_elem45 = iprot.readI32()
self.ttl_secs.append(_elem45)
iprot.readListEnd()
else:
iprot.skip(ftype)
elif fid == 5:
if ftype == TType.LIST:
self.index = []
(_etype49, _size46) = iprot.readListBegin()
for _i50 in range(_size46):
_elem51 = iprot.readI32()
self.index.append(_elem51)
iprot.readListEnd()
else:
iprot.skip(ftype)
elif fid == 6:
if ftype == TType.BOOL:
self.need_routing = iprot.readBool()
else:
iprot.skip(ftype)
else:
iprot.skip(ftype)
iprot.readFieldEnd()
iprot.readStructEnd()
def write(self, oprot):
if oprot._fast_encode is not None and self.thrift_spec is not None:
oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
return
oprot.writeStructBegin('MultiSetRequest')
if self.segment is not None:
oprot.writeFieldBegin('segment', TType.STRING, 1)
oprot.writeString(self.segment.encode('utf-8') if sys.version_info[0] == 2 else self.segment)
oprot.writeFieldEnd()
if self.keys is not None:
oprot.writeFieldBegin('keys', TType.LIST, 2)
oprot.writeListBegin(TType.STRING, len(self.keys))
for iter52 in self.keys:
oprot.writeString(iter52.encode('utf-8') if sys.version_info[0] == 2 else iter52)
oprot.writeListEnd()
oprot.writeFieldEnd()
if self.values is not None:
oprot.writeFieldBegin('values', TType.LIST, 3)
oprot.writeListBegin(TType.STRING, len(self.values))
for iter53 in self.values:
oprot.writeBinary(iter53)
oprot.writeListEnd()
oprot.writeFieldEnd()
if self.ttl_secs is not None:
oprot.writeFieldBegin('ttl_secs', TType.LIST, 4)
oprot.writeListBegin(TType.I32, len(self.ttl_secs))
for iter54 in self.ttl_secs:
oprot.writeI32(iter54)
oprot.writeListEnd()
oprot.writeFieldEnd()
if self.index is not None:
oprot.writeFieldBegin('index', TType.LIST, 5)
oprot.writeListBegin(TType.I32, len(self.index))
for iter55 in self.index:
oprot.writeI32(iter55)
oprot.writeListEnd()
oprot.writeFieldEnd()
if self.need_routing is not None:
oprot.writeFieldBegin('need_routing', TType.BOOL, 6)
oprot.writeBool(self.need_routing)
oprot.writeFieldEnd()
oprot.writeFieldStop()
oprot.writeStructEnd()
def validate(self):
if self.keys is None:
raise TProtocolException(message='Required field keys is unset!')
if self.values is None:
raise TProtocolException(message='Required field values is unset!')
return
def __repr__(self):
L = ['%s=%r' % (key, value)
for key, value in self.__dict__.items()]
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
def __eq__(self, other):
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
def __ne__(self, other):
return not (self == other)
class MultiSetResponse(object):
"""
Attributes:
- responses
- sub_request_indices
"""
def __init__(self, responses=None, sub_request_indices=None,):
self.responses = responses
self.sub_request_indices = sub_request_indices
def read(self, iprot):
if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
return
iprot.readStructBegin()
while True:
(fname, ftype, fid) = iprot.readFieldBegin()
if ftype == TType.STOP:
break
if fid == 1:
if ftype == TType.LIST:
self.responses = []
(_etype59, _size56) = iprot.readListBegin()
for _i60 in range(_size56):
_elem61 = SetResponse()
_elem61.read(iprot)
self.responses.append(_elem61)
iprot.readListEnd()
else:
iprot.skip(ftype)
elif fid == 2:
if ftype == TType.LIST:
self.sub_request_indices = []
(_etype65, _size62) = iprot.readListBegin()
for _i66 in range(_size62):
_elem67 = iprot.readI32()
self.sub_request_indices.append(_elem67)
iprot.readListEnd()
else:
iprot.skip(ftype)
else:
iprot.skip(ftype)
iprot.readFieldEnd()
iprot.readStructEnd()
def write(self, oprot):
if oprot._fast_encode is not None and self.thrift_spec is not None:
oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
return
oprot.writeStructBegin('MultiSetResponse')
if self.responses is not None:
oprot.writeFieldBegin('responses', TType.LIST, 1)
oprot.writeListBegin(TType.STRUCT, len(self.responses))
for iter68 in self.responses:
iter68.write(oprot)
oprot.writeListEnd()
oprot.writeFieldEnd()
if self.sub_request_indices is not None:
oprot.writeFieldBegin('sub_request_indices', TType.LIST, 2)
oprot.writeListBegin(TType.I32, len(self.sub_request_indices))
for iter69 in self.sub_request_indices:
oprot.writeI32(iter69)
oprot.writeListEnd()
oprot.writeFieldEnd()
oprot.writeFieldStop()
oprot.writeStructEnd()
def validate(self):
if self.responses is None:
raise TProtocolException(message='Required field responses is unset!')
return
def __repr__(self):
L = ['%s=%r' % (key, value)
for key, value in self.__dict__.items()]
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
def __eq__(self, other):
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
def __ne__(self, other):
return not (self == other)
class DelRequest(object):
"""
Attributes:
- segment
- key
- need_routing
"""
def __init__(self, segment="default", key=None, need_routing=True,):
self.segment = segment
self.key = key
self.need_routing = need_routing
def read(self, iprot):
if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
return
iprot.readStructBegin()
while True:
(fname, ftype, fid) = iprot.readFieldBegin()
if ftype == TType.STOP:
break
if fid == 1:
if ftype == TType.STRING:
self.segment = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
else:
iprot.skip(ftype)
elif fid == 2:
if ftype == TType.STRING:
self.key = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
else:
iprot.skip(ftype)
elif fid == 3:
if ftype == TType.BOOL:
self.need_routing = iprot.readBool()
else:
iprot.skip(ftype)
else:
iprot.skip(ftype)
iprot.readFieldEnd()
iprot.readStructEnd()
def write(self, oprot):
if oprot._fast_encode is not None and self.thrift_spec is not None:
oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
return
oprot.writeStructBegin('DelRequest')
if self.segment is not None:
oprot.writeFieldBegin('segment', TType.STRING, 1)
oprot.writeString(self.segment.encode('utf-8') if sys.version_info[0] == 2 else self.segment)
oprot.writeFieldEnd()
if self.key is not None:
oprot.writeFieldBegin('key', TType.STRING, 2)
oprot.writeString(self.key.encode('utf-8') if sys.version_info[0] == 2 else self.key)
oprot.writeFieldEnd()
if self.need_routing is not None:
oprot.writeFieldBegin('need_routing', TType.BOOL, 3)
oprot.writeBool(self.need_routing)
oprot.writeFieldEnd()
oprot.writeFieldStop()
oprot.writeStructEnd()
def validate(self):
if self.key is None:
raise TProtocolException(message='Required field key is unset!')
return
def __repr__(self):
L = ['%s=%r' % (key, value)
for key, value in self.__dict__.items()]
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
def __eq__(self, other):
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
def __ne__(self, other):
return not (self == other)
class DelResponse(object):
"""
Attributes:
- error
"""
def __init__(self, error=None,):
self.error = error
def read(self, iprot):
if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
return
iprot.readStructBegin()
while True:
(fname, ftype, fid) = iprot.readFieldBegin()
if ftype == TType.STOP:
break
if fid == 1:
if ftype == TType.STRUCT:
self.error = SharestoreException()
self.error.read(iprot)
else:
iprot.skip(ftype)
else:
iprot.skip(ftype)
iprot.readFieldEnd()
iprot.readStructEnd()
def write(self, oprot):
if oprot._fast_encode is not None and self.thrift_spec is not None:
oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
return
oprot.writeStructBegin('DelResponse')
if self.error is not None:
oprot.writeFieldBegin('error', TType.STRUCT, 1)
self.error.write(oprot)
oprot.writeFieldEnd()
oprot.writeFieldStop()
oprot.writeStructEnd()
def validate(self):
return
def __repr__(self):
L = ['%s=%r' % (key, value)
for key, value in self.__dict__.items()]
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
def __eq__(self, other):
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
def __ne__(self, other):
return not (self == other)
class DSSetRequest(object):
"""
Attributes:
- segment
- key
- members
- ttl_secs
- need_routing
"""
def __init__(self, segment="default", key=None, members=None, ttl_secs=None, need_routing=True,):
self.segment = segment
self.key = key
self.members = members
self.ttl_secs = ttl_secs
self.need_routing = need_routing
def read(self, iprot):
if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
return
iprot.readStructBegin()
while True:
(fname, ftype, fid) = iprot.readFieldBegin()
if ftype == TType.STOP:
break
if fid == 1:
if ftype == TType.STRING:
self.segment = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
else:
iprot.skip(ftype)
elif fid == 2:
if ftype == TType.STRING:
self.key = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
else:
iprot.skip(ftype)
elif fid == 3:
if ftype == TType.LIST:
self.members = []
(_etype73, _size70) = iprot.readListBegin()
for _i74 in range(_size70):
_elem75 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
self.members.append(_elem75)
iprot.readListEnd()
else:
iprot.skip(ftype)
elif fid == 4:
if ftype == TType.LIST:
self.ttl_secs = []
(_etype79, _size76) = iprot.readListBegin()
for _i80 in range(_size76):
_elem81 = iprot.readI32()
self.ttl_secs.append(_elem81)
iprot.readListEnd()
else:
iprot.skip(ftype)
elif fid == 5:
if ftype == TType.BOOL:
self.need_routing = iprot.readBool()
else:
iprot.skip(ftype)
else:
iprot.skip(ftype)
iprot.readFieldEnd()
iprot.readStructEnd()
def write(self, oprot):
if oprot._fast_encode is not None and self.thrift_spec is not None:
oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
return
oprot.writeStructBegin('DSSetRequest')
if self.segment is not None:
oprot.writeFieldBegin('segment', TType.STRING, 1)
oprot.writeString(self.segment.encode('utf-8') if sys.version_info[0] == 2 else self.segment)
oprot.writeFieldEnd()
if self.key is not None:
oprot.writeFieldBegin('key', TType.STRING, 2)
oprot.writeString(self.key.encode('utf-8') if sys.version_info[0] == 2 else self.key)
oprot.writeFieldEnd()
if self.members is not None:
oprot.writeFieldBegin('members', TType.LIST, 3)
oprot.writeListBegin(TType.STRING, len(self.members))
for iter82 in self.members:
oprot.writeString(iter82.encode('utf-8') if sys.version_info[0] == 2 else iter82)
oprot.writeListEnd()
oprot.writeFieldEnd()
if self.ttl_secs is not None:
oprot.writeFieldBegin('ttl_secs', TType.LIST, 4)
oprot.writeListBegin(TType.I32, len(self.ttl_secs))
for iter83 in self.ttl_secs:
oprot.writeI32(iter83)
oprot.writeListEnd()
oprot.writeFieldEnd()
if self.need_routing is not None:
oprot.writeFieldBegin('need_routing', TType.BOOL, 5)
oprot.writeBool(self.need_routing)
oprot.writeFieldEnd()
oprot.writeFieldStop()
oprot.writeStructEnd()
def validate(self):
if self.key is None:
raise TProtocolException(message='Required field key is unset!')
if self.members is None:
raise TProtocolException(message='Required field members is unset!')
if self.ttl_secs is None:
raise TProtocolException(message='Required field ttl_secs is unset!')
return
def __repr__(self):
L = ['%s=%r' % (key, value)
for key, value in self.__dict__.items()]
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
def __eq__(self, other):
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
def __ne__(self, other):
return not (self == other)
class DSSetResponse(object):
"""
Attributes:
- error
"""
def __init__(self, error=None,):
self.error = error
def read(self, iprot):
if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
return
iprot.readStructBegin()
while True:
(fname, ftype, fid) = iprot.readFieldBegin()
if ftype == TType.STOP:
break
if fid == 1:
if ftype == TType.STRUCT:
self.error = SharestoreException()
self.error.read(iprot)
else:
iprot.skip(ftype)
else:
iprot.skip(ftype)
iprot.readFieldEnd()
iprot.readStructEnd()
def write(self, oprot):
if oprot._fast_encode is not None and self.thrift_spec is not None:
oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
return
oprot.writeStructBegin('DSSetResponse')
if self.error is not None:
oprot.writeFieldBegin('error', TType.STRUCT, 1)
self.error.write(oprot)
oprot.writeFieldEnd()
oprot.writeFieldStop()
oprot.writeStructEnd()
def validate(self):
return
def __repr__(self):
L = ['%s=%r' % (key, value)
for key, value in self.__dict__.items()]
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
def __eq__(self, other):
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
def __ne__(self, other):
return not (self == other)
class DSRemRequest(object):
"""
Attributes:
- segment
- key
- members
- need_routing
"""
def __init__(self, segment="default", key=None, members=None, need_routing=True,):
self.segment = segment
self.key = key
self.members = members
self.need_routing = need_routing
def read(self, iprot):
if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
return
iprot.readStructBegin()
while True:
(fname, ftype, fid) = iprot.readFieldBegin()
if ftype == TType.STOP:
break
if fid == 1:
if ftype == TType.STRING:
self.segment = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
else:
iprot.skip(ftype)
elif fid == 2:
if ftype == TType.STRING:
self.key = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
else:
iprot.skip(ftype)
elif fid == 3:
if ftype == TType.LIST:
self.members = []
(_etype87, _size84) = iprot.readListBegin()
for _i88 in range(_size84):
_elem89 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
self.members.append(_elem89)
iprot.readListEnd()
else:
iprot.skip(ftype)
elif fid == 4:
if ftype == TType.BOOL:
self.need_routing = iprot.readBool()
else:
iprot.skip(ftype)
else:
iprot.skip(ftype)
iprot.readFieldEnd()
iprot.readStructEnd()
def write(self, oprot):
if oprot._fast_encode is not None and self.thrift_spec is not None:
oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
return
oprot.writeStructBegin('DSRemRequest')
if self.segment is not None:
oprot.writeFieldBegin('segment', TType.STRING, 1)
oprot.writeString(self.segment.encode('utf-8') if sys.version_info[0] == 2 else self.segment)
oprot.writeFieldEnd()
if self.key is not None:
oprot.writeFieldBegin('key', TType.STRING, 2)
oprot.writeString(self.key.encode('utf-8') if sys.version_info[0] == 2 else self.key)
oprot.writeFieldEnd()
if self.members is not None:
oprot.writeFieldBegin('members', TType.LIST, 3)
oprot.writeListBegin(TType.STRING, len(self.members))
for iter90 in self.members:
oprot.writeString(iter90.encode('utf-8') if sys.version_info[0] == 2 else iter90)
oprot.writeListEnd()
oprot.writeFieldEnd()
if self.need_routing is not None:
oprot.writeFieldBegin('need_routing', TType.BOOL, 4)
oprot.writeBool(self.need_routing)
oprot.writeFieldEnd()
oprot.writeFieldStop()
oprot.writeStructEnd()
def validate(self):
if self.key is None:
raise TProtocolException(message='Required field key is unset!')
if self.members is None:
raise TProtocolException(message='Required field members is unset!')
return
def __repr__(self):
L = ['%s=%r' % (key, value)
for key, value in self.__dict__.items()]
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
def __eq__(self, other):
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
def __ne__(self, other):
return not (self == other)
class DSRemResponse(object):
"""
Attributes:
- error
"""
def __init__(self, error=None,):
self.error = error
def read(self, iprot):
if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
return
iprot.readStructBegin()
while True:
(fname, ftype, fid) = iprot.readFieldBegin()
if ftype == TType.STOP:
break
if fid == 1:
if ftype == TType.STRUCT:
self.error = SharestoreException()
self.error.read(iprot)
else:
iprot.skip(ftype)
else:
iprot.skip(ftype)
iprot.readFieldEnd()
iprot.readStructEnd()
def write(self, oprot):
if oprot._fast_encode is not None and self.thrift_spec is not None:
oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
return
oprot.writeStructBegin('DSRemResponse')
if self.error is not None:
oprot.writeFieldBegin('error', TType.STRUCT, 1)
self.error.write(oprot)
oprot.writeFieldEnd()
oprot.writeFieldStop()
oprot.writeStructEnd()
def validate(self):
return
def __repr__(self):
L = ['%s=%r' % (key, value)
for key, value in self.__dict__.items()]
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
def __eq__(self, other):
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
def __ne__(self, other):
return not (self == other)
class DSGetRequest(object):
"""
Attributes:
- segment
- key
- with_ttls
- need_routing
- max_nums
"""
def __init__(self, segment="default", key=None, with_ttls=False, need_routing=True, max_nums=5000,):
self.segment = segment
self.key = key
self.with_ttls = with_ttls
self.need_routing = need_routing
self.max_nums = max_nums
def read(self, iprot):
if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
return
iprot.readStructBegin()
while True:
(fname, ftype, fid) = iprot.readFieldBegin()
if ftype == TType.STOP:
break
if fid == 1:
if ftype == TType.STRING:
self.segment = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
else:
iprot.skip(ftype)
elif fid == 2:
if ftype == TType.STRING:
self.key = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
else:
iprot.skip(ftype)
elif fid == 3:
if ftype == TType.BOOL:
self.with_ttls = iprot.readBool()
else:
iprot.skip(ftype)
elif fid == 4:
if ftype == TType.BOOL:
self.need_routing = iprot.readBool()
else:
iprot.skip(ftype)
elif fid == 5:
if ftype == TType.I32:
self.max_nums = iprot.readI32()
else:
iprot.skip(ftype)
else:
iprot.skip(ftype)
iprot.readFieldEnd()
iprot.readStructEnd()
def write(self, oprot):
if oprot._fast_encode is not None and self.thrift_spec is not None:
oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
return
oprot.writeStructBegin('DSGetRequest')
if self.segment is not None:
oprot.writeFieldBegin('segment', TType.STRING, 1)
oprot.writeString(self.segment.encode('utf-8') if sys.version_info[0] == 2 else self.segment)
oprot.writeFieldEnd()
if self.key is not None:
oprot.writeFieldBegin('key', TType.STRING, 2)
oprot.writeString(self.key.encode('utf-8') if sys.version_info[0] == 2 else self.key)
oprot.writeFieldEnd()
if self.with_ttls is not None:
oprot.writeFieldBegin('with_ttls', TType.BOOL, 3)
oprot.writeBool(self.with_ttls)
oprot.writeFieldEnd()
if self.need_routing is not None:
oprot.writeFieldBegin('need_routing', TType.BOOL, 4)
oprot.writeBool(self.need_routing)
oprot.writeFieldEnd()
if self.max_nums is not None:
oprot.writeFieldBegin('max_nums', TType.I32, 5)
oprot.writeI32(self.max_nums)
oprot.writeFieldEnd()
oprot.writeFieldStop()
oprot.writeStructEnd()
def validate(self):
if self.key is None:
raise TProtocolException(message='Required field key is unset!')
return
def __repr__(self):
L = ['%s=%r' % (key, value)
for key, value in self.__dict__.items()]
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
def __eq__(self, other):
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
def __ne__(self, other):
return not (self == other)
class DSGetResponse(object):
"""
Attributes:
- members
- ttl_secs
- error
"""
def __init__(self, members=None, ttl_secs=None, error=None,):
self.members = members
self.ttl_secs = ttl_secs
self.error = error
def read(self, iprot):
if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
return
iprot.readStructBegin()
while True:
(fname, ftype, fid) = iprot.readFieldBegin()
if ftype == TType.STOP:
break
if fid == 1:
if ftype == TType.LIST:
self.members = []
(_etype94, _size91) = iprot.readListBegin()
for _i95 in range(_size91):
_elem96 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
self.members.append(_elem96)
iprot.readListEnd()
else:
iprot.skip(ftype)
elif fid == 2:
if ftype == TType.LIST:
self.ttl_secs = []
(_etype100, _size97) = iprot.readListBegin()
for _i101 in range(_size97):
_elem102 = iprot.readI32()
self.ttl_secs.append(_elem102)
iprot.readListEnd()
else:
iprot.skip(ftype)
elif fid == 3:
if ftype == TType.STRUCT:
self.error = SharestoreException()
self.error.read(iprot)
else:
iprot.skip(ftype)
else:
iprot.skip(ftype)
iprot.readFieldEnd()
iprot.readStructEnd()
def write(self, oprot):
if oprot._fast_encode is not None and self.thrift_spec is not None:
oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
return
oprot.writeStructBegin('DSGetResponse')
if self.members is not None:
oprot.writeFieldBegin('members', TType.LIST, 1)
oprot.writeListBegin(TType.STRING, len(self.members))
for iter103 in self.members:
oprot.writeString(iter103.encode('utf-8') if sys.version_info[0] == 2 else iter103)
oprot.writeListEnd()
oprot.writeFieldEnd()
if self.ttl_secs is not None:
oprot.writeFieldBegin('ttl_secs', TType.LIST, 2)
oprot.writeListBegin(TType.I32, len(self.ttl_secs))
for iter104 in self.ttl_secs:
oprot.writeI32(iter104)
oprot.writeListEnd()
oprot.writeFieldEnd()
if self.error is not None:
oprot.writeFieldBegin('error', TType.STRUCT, 3)
self.error.write(oprot)
oprot.writeFieldEnd()
oprot.writeFieldStop()
oprot.writeStructEnd()
def validate(self):
if self.members is None:
raise TProtocolException(message='Required field members is unset!')
return
def __repr__(self):
L = ['%s=%r' % (key, value)
for key, value in self.__dict__.items()]
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
def __eq__(self, other):
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
def __ne__(self, other):
return not (self == other)
class DSCountRequest(object):
"""
Attributes:
- segment
- key
- need_routing
- max_nums
"""
def __init__(self, segment="default", key=None, need_routing=True, max_nums=5000,):
self.segment = segment
self.key = key
self.need_routing = need_routing
self.max_nums = max_nums
def read(self, iprot):
if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
return
iprot.readStructBegin()
while True:
(fname, ftype, fid) = iprot.readFieldBegin()
if ftype == TType.STOP:
break
if fid == 1:
if ftype == TType.STRING:
self.segment = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
else:
iprot.skip(ftype)
elif fid == 2:
if ftype == TType.STRING:
self.key = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
else:
iprot.skip(ftype)
elif fid == 3:
if ftype == TType.BOOL:
self.need_routing = iprot.readBool()
else:
iprot.skip(ftype)
elif fid == 4:
if ftype == TType.I32:
self.max_nums = iprot.readI32()
else:
iprot.skip(ftype)
else:
iprot.skip(ftype)
iprot.readFieldEnd()
iprot.readStructEnd()
def write(self, oprot):
if oprot._fast_encode is not None and self.thrift_spec is not None:
oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
return
oprot.writeStructBegin('DSCountRequest')
if self.segment is not None:
oprot.writeFieldBegin('segment', TType.STRING, 1)
oprot.writeString(self.segment.encode('utf-8') if sys.version_info[0] == 2 else self.segment)
oprot.writeFieldEnd()
if self.key is not None:
oprot.writeFieldBegin('key', TType.STRING, 2)
oprot.writeString(self.key.encode('utf-8') if sys.version_info[0] == 2 else self.key)
oprot.writeFieldEnd()
if self.need_routing is not None:
oprot.writeFieldBegin('need_routing', TType.BOOL, 3)
oprot.writeBool(self.need_routing)
oprot.writeFieldEnd()
if self.max_nums is not None:
oprot.writeFieldBegin('max_nums', TType.I32, 4)
oprot.writeI32(self.max_nums)
oprot.writeFieldEnd()
oprot.writeFieldStop()
oprot.writeStructEnd()
def validate(self):
if self.key is None:
raise TProtocolException(message='Required field key is unset!')
return
def __repr__(self):
L = ['%s=%r' % (key, value)
for key, value in self.__dict__.items()]
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
def __eq__(self, other):
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
def __ne__(self, other):
return not (self == other)
class DSCountResponse(object):
"""
Attributes:
- count
- error
"""
def __init__(self, count=0, error=None,):
self.count = count
self.error = error
def read(self, iprot):
if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
return
iprot.readStructBegin()
while True:
(fname, ftype, fid) = iprot.readFieldBegin()
if ftype == TType.STOP:
break
if fid == 1:
if ftype == TType.I32:
self.count = iprot.readI32()
else:
iprot.skip(ftype)
elif fid == 2:
if ftype == TType.STRUCT:
self.error = SharestoreException()
self.error.read(iprot)
else:
iprot.skip(ftype)
else:
iprot.skip(ftype)
iprot.readFieldEnd()
iprot.readStructEnd()
def write(self, oprot):
if oprot._fast_encode is not None and self.thrift_spec is not None:
oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
return
oprot.writeStructBegin('DSCountResponse')
if self.count is not None:
oprot.writeFieldBegin('count', TType.I32, 1)
oprot.writeI32(self.count)
oprot.writeFieldEnd()
if self.error is not None:
oprot.writeFieldBegin('error', TType.STRUCT, 2)
self.error.write(oprot)
oprot.writeFieldEnd()
oprot.writeFieldStop()
oprot.writeStructEnd()
def validate(self):
if self.count is None:
raise TProtocolException(message='Required field count is unset!')
return
def __repr__(self):
L = ['%s=%r' % (key, value)
for key, value in self.__dict__.items()]
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
def __eq__(self, other):
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
def __ne__(self, other):
return not (self == other)
class DSDelRequest(object):
"""
Attributes:
- segment
- key
- need_routing
"""
def __init__(self, segment="default", key=None, need_routing=True,):
self.segment = segment
self.key = key
self.need_routing = need_routing
def read(self, iprot):
if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
return
iprot.readStructBegin()
while True:
(fname, ftype, fid) = iprot.readFieldBegin()
if ftype == TType.STOP:
break
if fid == 1:
if ftype == TType.STRING:
self.segment = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
else:
iprot.skip(ftype)
elif fid == 2:
if ftype == TType.STRING:
self.key = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
else:
iprot.skip(ftype)
elif fid == 3:
if ftype == TType.BOOL:
self.need_routing = iprot.readBool()
else:
iprot.skip(ftype)
else:
iprot.skip(ftype)
iprot.readFieldEnd()
iprot.readStructEnd()
def write(self, oprot):
if oprot._fast_encode is not None and self.thrift_spec is not None:
oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
return
oprot.writeStructBegin('DSDelRequest')
if self.segment is not None:
oprot.writeFieldBegin('segment', TType.STRING, 1)
oprot.writeString(self.segment.encode('utf-8') if sys.version_info[0] == 2 else self.segment)
oprot.writeFieldEnd()
if self.key is not None:
oprot.writeFieldBegin('key', TType.STRING, 2)
oprot.writeString(self.key.encode('utf-8') if sys.version_info[0] == 2 else self.key)
oprot.writeFieldEnd()
if self.need_routing is not None:
oprot.writeFieldBegin('need_routing', TType.BOOL, 3)
oprot.writeBool(self.need_routing)
oprot.writeFieldEnd()
oprot.writeFieldStop()
oprot.writeStructEnd()
def validate(self):
if self.key is None:
raise TProtocolException(message='Required field key is unset!')
return
def __repr__(self):
L = ['%s=%r' % (key, value)
for key, value in self.__dict__.items()]
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
def __eq__(self, other):
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
def __ne__(self, other):
return not (self == other)
class DSDelResponse(object):
"""
Attributes:
- error
"""
def __init__(self, error=None,):
self.error = error
def read(self, iprot):
if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
return
iprot.readStructBegin()
while True:
(fname, ftype, fid) = iprot.readFieldBegin()
if ftype == TType.STOP:
break
if fid == 1:
if ftype == TType.STRUCT:
self.error = SharestoreException()
self.error.read(iprot)
else:
iprot.skip(ftype)
else:
iprot.skip(ftype)
iprot.readFieldEnd()
iprot.readStructEnd()
def write(self, oprot):
if oprot._fast_encode is not None and self.thrift_spec is not None:
oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
return
oprot.writeStructBegin('DSDelResponse')
if self.error is not None:
oprot.writeFieldBegin('error', TType.STRUCT, 1)
self.error.write(oprot)
oprot.writeFieldEnd()
oprot.writeFieldStop()
oprot.writeStructEnd()
def validate(self):
return
def __repr__(self):
L = ['%s=%r' % (key, value)
for key, value in self.__dict__.items()]
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
def __eq__(self, other):
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
def __ne__(self, other):
return not (self == other)
class DSIsMemberRequest(object):
"""
Attributes:
- segment
- key
- member
- need_routing
"""
def __init__(self, segment="default", key=None, member=None, need_routing=True,):
self.segment = segment
self.key = key
self.member = member
self.need_routing = need_routing
def read(self, iprot):
if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
return
iprot.readStructBegin()
while True:
(fname, ftype, fid) = iprot.readFieldBegin()
if ftype == TType.STOP:
break
if fid == 1:
if ftype == TType.STRING:
self.segment = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
else:
iprot.skip(ftype)
elif fid == 2:
if ftype == TType.STRING:
self.key = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
else:
iprot.skip(ftype)
elif fid == 3:
if ftype == TType.STRING:
self.member = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
else:
iprot.skip(ftype)
elif fid == 4:
if ftype == TType.BOOL:
self.need_routing = iprot.readBool()
else:
iprot.skip(ftype)
else:
iprot.skip(ftype)
iprot.readFieldEnd()
iprot.readStructEnd()
def write(self, oprot):
if oprot._fast_encode is not None and self.thrift_spec is not None:
oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
return
oprot.writeStructBegin('DSIsMemberRequest')
if self.segment is not None:
oprot.writeFieldBegin('segment', TType.STRING, 1)
oprot.writeString(self.segment.encode('utf-8') if sys.version_info[0] == 2 else self.segment)
oprot.writeFieldEnd()
if self.key is not None:
oprot.writeFieldBegin('key', TType.STRING, 2)
oprot.writeString(self.key.encode('utf-8') if sys.version_info[0] == 2 else self.key)
oprot.writeFieldEnd()
if self.member is not None:
oprot.writeFieldBegin('member', TType.STRING, 3)
oprot.writeString(self.member.encode('utf-8') if sys.version_info[0] == 2 else self.member)
oprot.writeFieldEnd()
if self.need_routing is not None:
oprot.writeFieldBegin('need_routing', TType.BOOL, 4)
oprot.writeBool(self.need_routing)
oprot.writeFieldEnd()
oprot.writeFieldStop()
oprot.writeStructEnd()
def validate(self):
if self.key is None:
raise TProtocolException(message='Required field key is unset!')
if self.member is None:
raise TProtocolException(message='Required field member is unset!')
return
def __repr__(self):
L = ['%s=%r' % (key, value)
for key, value in self.__dict__.items()]
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
def __eq__(self, other):
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
def __ne__(self, other):
return not (self == other)
class DSIsMemberResponse(object):
"""
Attributes:
- yes
- error
"""
def __init__(self, yes=None, error=None,):
self.yes = yes
self.error = error
def read(self, iprot):
if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
return
iprot.readStructBegin()
while True:
(fname, ftype, fid) = iprot.readFieldBegin()
if ftype == TType.STOP:
break
if fid == 1:
if ftype == TType.BOOL:
self.yes = iprot.readBool()
else:
iprot.skip(ftype)
elif fid == 2:
if ftype == TType.STRUCT:
self.error = SharestoreException()
self.error.read(iprot)
else:
iprot.skip(ftype)
else:
iprot.skip(ftype)
iprot.readFieldEnd()
iprot.readStructEnd()
def write(self, oprot):
if oprot._fast_encode is not None and self.thrift_spec is not None:
oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
return
oprot.writeStructBegin('DSIsMemberResponse')
if self.yes is not None:
oprot.writeFieldBegin('yes', TType.BOOL, 1)
oprot.writeBool(self.yes)
oprot.writeFieldEnd()
if self.error is not None:
oprot.writeFieldBegin('error', TType.STRUCT, 2)
self.error.write(oprot)
oprot.writeFieldEnd()
oprot.writeFieldStop()
oprot.writeStructEnd()
def validate(self):
if self.yes is None:
raise TProtocolException(message='Required field yes is unset!')
return
def __repr__(self):
L = ['%s=%r' % (key, value)
for key, value in self.__dict__.items()]
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
def __eq__(self, other):
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
def __ne__(self, other):
return not (self == other)
class IncrCounterRequest(object):
"""
Attributes:
- segment
- key
- value
- need_routing
"""
def __init__(self, segment="default", key=None, value=1, need_routing=True,):
self.segment = segment
self.key = key
self.value = value
self.need_routing = need_routing
def read(self, iprot):
if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
return
iprot.readStructBegin()
while True:
(fname, ftype, fid) = iprot.readFieldBegin()
if ftype == TType.STOP:
break
if fid == 1:
if ftype == TType.STRING:
self.segment = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
else:
iprot.skip(ftype)
elif fid == 2:
if ftype == TType.STRING:
self.key = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
else:
iprot.skip(ftype)
elif fid == 3:
if ftype == TType.I64:
self.value = iprot.readI64()
else:
iprot.skip(ftype)
elif fid == 4:
if ftype == TType.BOOL:
self.need_routing = iprot.readBool()
else:
iprot.skip(ftype)
else:
iprot.skip(ftype)
iprot.readFieldEnd()
iprot.readStructEnd()
def write(self, oprot):
if oprot._fast_encode is not None and self.thrift_spec is not None:
oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
return
oprot.writeStructBegin('IncrCounterRequest')
if self.segment is not None:
oprot.writeFieldBegin('segment', TType.STRING, 1)
oprot.writeString(self.segment.encode('utf-8') if sys.version_info[0] == 2 else self.segment)
oprot.writeFieldEnd()
if self.key is not None:
oprot.writeFieldBegin('key', TType.STRING, 2)
oprot.writeString(self.key.encode('utf-8') if sys.version_info[0] == 2 else self.key)
oprot.writeFieldEnd()
if self.value is not None:
oprot.writeFieldBegin('value', TType.I64, 3)
oprot.writeI64(self.value)
oprot.writeFieldEnd()
if self.need_routing is not None:
oprot.writeFieldBegin('need_routing', TType.BOOL, 4)
oprot.writeBool(self.need_routing)
oprot.writeFieldEnd()
oprot.writeFieldStop()
oprot.writeStructEnd()
def validate(self):
if self.key is None:
raise TProtocolException(message='Required field key is unset!')
if self.value is None:
raise TProtocolException(message='Required field value is unset!')
return
def __repr__(self):
L = ['%s=%r' % (key, value)
for key, value in self.__dict__.items()]
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
def __eq__(self, other):
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
def __ne__(self, other):
return not (self == other)
class IncrCounterTtlRequest(object):
"""
Attributes:
- segment
- key
- value
- ttl_sec
- need_routing
"""
def __init__(self, segment="default", key=None, value=1, ttl_sec=None, need_routing=True,):
self.segment = segment
self.key = key
self.value = value
self.ttl_sec = ttl_sec
self.need_routing = need_routing
def read(self, iprot):
if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
return
iprot.readStructBegin()
while True:
(fname, ftype, fid) = iprot.readFieldBegin()
if ftype == TType.STOP:
break
if fid == 1:
if ftype == TType.STRING:
self.segment = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
else:
iprot.skip(ftype)
elif fid == 2:
if ftype == TType.STRING:
self.key = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
else:
iprot.skip(ftype)
elif fid == 3:
if ftype == TType.I64:
self.value = iprot.readI64()
else:
iprot.skip(ftype)
elif fid == 4:
if ftype == TType.I32:
self.ttl_sec = iprot.readI32()
else:
iprot.skip(ftype)
elif fid == 5:
if ftype == TType.BOOL:
self.need_routing = iprot.readBool()
else:
iprot.skip(ftype)
else:
iprot.skip(ftype)
iprot.readFieldEnd()
iprot.readStructEnd()
def write(self, oprot):
if oprot._fast_encode is not None and self.thrift_spec is not None:
oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
return
oprot.writeStructBegin('IncrCounterTtlRequest')
if self.segment is not None:
oprot.writeFieldBegin('segment', TType.STRING, 1)
oprot.writeString(self.segment.encode('utf-8') if sys.version_info[0] == 2 else self.segment)
oprot.writeFieldEnd()
if self.key is not None:
oprot.writeFieldBegin('key', TType.STRING, 2)
oprot.writeString(self.key.encode('utf-8') if sys.version_info[0] == 2 else self.key)
oprot.writeFieldEnd()
if self.value is not None:
oprot.writeFieldBegin('value', TType.I64, 3)
oprot.writeI64(self.value)
oprot.writeFieldEnd()
if self.ttl_sec is not None:
oprot.writeFieldBegin('ttl_sec', TType.I32, 4)
oprot.writeI32(self.ttl_sec)
oprot.writeFieldEnd()
if self.need_routing is not None:
oprot.writeFieldBegin('need_routing', TType.BOOL, 5)
oprot.writeBool(self.need_routing)
oprot.writeFieldEnd()
oprot.writeFieldStop()
oprot.writeStructEnd()
def validate(self):
if self.key is None:
raise TProtocolException(message='Required field key is unset!')
if self.value is None:
raise TProtocolException(message='Required field value is unset!')
if self.ttl_sec is None:
raise TProtocolException(message='Required field ttl_sec is unset!')
return
def __repr__(self):
L = ['%s=%r' % (key, value)
for key, value in self.__dict__.items()]
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
def __eq__(self, other):
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
def __ne__(self, other):
return not (self == other)
class IncrCounterResponse(object):
"""
Attributes:
- error
"""
def __init__(self, error=None,):
self.error = error
def read(self, iprot):
if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
return
iprot.readStructBegin()
while True:
(fname, ftype, fid) = iprot.readFieldBegin()
if ftype == TType.STOP:
break
if fid == 1:
if ftype == TType.STRUCT:
self.error = SharestoreException()
self.error.read(iprot)
else:
iprot.skip(ftype)
else:
iprot.skip(ftype)
iprot.readFieldEnd()
iprot.readStructEnd()
def write(self, oprot):
if oprot._fast_encode is not None and self.thrift_spec is not None:
oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
return
oprot.writeStructBegin('IncrCounterResponse')
if self.error is not None:
oprot.writeFieldBegin('error', TType.STRUCT, 1)
self.error.write(oprot)
oprot.writeFieldEnd()
oprot.writeFieldStop()
oprot.writeStructEnd()
def validate(self):
return
def __repr__(self):
L = ['%s=%r' % (key, value)
for key, value in self.__dict__.items()]
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
def __eq__(self, other):
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
def __ne__(self, other):
return not (self == other)
class MultiIncrCounterRequest(object):
"""
Attributes:
- segment
- keys
- values
- index
- need_routing
"""
def __init__(self, segment="default", keys=None, values=None, index=None, need_routing=True,):
self.segment = segment
self.keys = keys
self.values = values
self.index = index
self.need_routing = need_routing
def read(self, iprot):
if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
return
iprot.readStructBegin()
while True:
(fname, ftype, fid) = iprot.readFieldBegin()
if ftype == TType.STOP:
break
if fid == 1:
if ftype == TType.STRING:
self.segment = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
else:
iprot.skip(ftype)
elif fid == 2:
if ftype == TType.LIST:
self.keys = []
(_etype108, _size105) = iprot.readListBegin()
for _i109 in range(_size105):
_elem110 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
self.keys.append(_elem110)
iprot.readListEnd()
else:
iprot.skip(ftype)
elif fid == 3:
if ftype == TType.LIST:
self.values = []
(_etype114, _size111) = iprot.readListBegin()
for _i115 in range(_size111):
_elem116 = iprot.readI64()
self.values.append(_elem116)
iprot.readListEnd()
else:
iprot.skip(ftype)
elif fid == 4:
if ftype == TType.LIST:
self.index = []
(_etype120, _size117) = iprot.readListBegin()
for _i121 in range(_size117):
_elem122 = iprot.readI32()
self.index.append(_elem122)
iprot.readListEnd()
else:
iprot.skip(ftype)
elif fid == 5:
if ftype == TType.BOOL:
self.need_routing = iprot.readBool()
else:
iprot.skip(ftype)
else:
iprot.skip(ftype)
iprot.readFieldEnd()
iprot.readStructEnd()
def write(self, oprot):
if oprot._fast_encode is not None and self.thrift_spec is not None:
oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
return
oprot.writeStructBegin('MultiIncrCounterRequest')
if self.segment is not None:
oprot.writeFieldBegin('segment', TType.STRING, 1)
oprot.writeString(self.segment.encode('utf-8') if sys.version_info[0] == 2 else self.segment)
oprot.writeFieldEnd()
if self.keys is not None:
oprot.writeFieldBegin('keys', TType.LIST, 2)
oprot.writeListBegin(TType.STRING, len(self.keys))
for iter123 in self.keys:
oprot.writeString(iter123.encode('utf-8') if sys.version_info[0] == 2 else iter123)
oprot.writeListEnd()
oprot.writeFieldEnd()
if self.values is not None:
oprot.writeFieldBegin('values', TType.LIST, 3)
oprot.writeListBegin(TType.I64, len(self.values))
for iter124 in self.values:
oprot.writeI64(iter124)
oprot.writeListEnd()
oprot.writeFieldEnd()
if self.index is not None:
oprot.writeFieldBegin('index', TType.LIST, 4)
oprot.writeListBegin(TType.I32, len(self.index))
for iter125 in self.index:
oprot.writeI32(iter125)
oprot.writeListEnd()
oprot.writeFieldEnd()
if self.need_routing is not None:
oprot.writeFieldBegin('need_routing', TType.BOOL, 5)
oprot.writeBool(self.need_routing)
oprot.writeFieldEnd()
oprot.writeFieldStop()
oprot.writeStructEnd()
def validate(self):
if self.keys is None:
raise TProtocolException(message='Required field keys is unset!')
if self.values is None:
raise TProtocolException(message='Required field values is unset!')
return
def __repr__(self):
L = ['%s=%r' % (key, value)
for key, value in self.__dict__.items()]
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
def __eq__(self, other):
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
def __ne__(self, other):
return not (self == other)
class MultiIncrCounterTtlRequest(object):
"""
Attributes:
- segment
- keys
- values
- ttl_secs
- index
- need_routing
"""
def __init__(self, segment="default", keys=None, values=None, ttl_secs=None, index=None, need_routing=True,):
self.segment = segment
self.keys = keys
self.values = values
self.ttl_secs = ttl_secs
self.index = index
self.need_routing = need_routing
def read(self, iprot):
if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
return
iprot.readStructBegin()
while True:
(fname, ftype, fid) = iprot.readFieldBegin()
if ftype == TType.STOP:
break
if fid == 1:
if ftype == TType.STRING:
self.segment = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
else:
iprot.skip(ftype)
elif fid == 2:
if ftype == TType.LIST:
self.keys = []
(_etype129, _size126) = iprot.readListBegin()
for _i130 in range(_size126):
_elem131 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
self.keys.append(_elem131)
iprot.readListEnd()
else:
iprot.skip(ftype)
elif fid == 3:
if ftype == TType.LIST:
self.values = []
(_etype135, _size132) = iprot.readListBegin()
for _i136 in range(_size132):
_elem137 = iprot.readI64()
self.values.append(_elem137)
iprot.readListEnd()
else:
iprot.skip(ftype)
elif fid == 4:
if ftype == TType.LIST:
self.ttl_secs = []
(_etype141, _size138) = iprot.readListBegin()
for _i142 in range(_size138):
_elem143 = iprot.readI32()
self.ttl_secs.append(_elem143)
iprot.readListEnd()
else:
iprot.skip(ftype)
elif fid == 5:
if ftype == TType.LIST:
self.index = []
(_etype147, _size144) = iprot.readListBegin()
for _i148 in range(_size144):
_elem149 = iprot.readI32()
self.index.append(_elem149)
iprot.readListEnd()
else:
iprot.skip(ftype)
elif fid == 6:
if ftype == TType.BOOL:
self.need_routing = iprot.readBool()
else:
iprot.skip(ftype)
else:
iprot.skip(ftype)
iprot.readFieldEnd()
iprot.readStructEnd()
def write(self, oprot):
if oprot._fast_encode is not None and self.thrift_spec is not None:
oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
return
oprot.writeStructBegin('MultiIncrCounterTtlRequest')
if self.segment is not None:
oprot.writeFieldBegin('segment', TType.STRING, 1)
oprot.writeString(self.segment.encode('utf-8') if sys.version_info[0] == 2 else self.segment)
oprot.writeFieldEnd()
if self.keys is not None:
oprot.writeFieldBegin('keys', TType.LIST, 2)
oprot.writeListBegin(TType.STRING, len(self.keys))
for iter150 in self.keys:
oprot.writeString(iter150.encode('utf-8') if sys.version_info[0] == 2 else iter150)
oprot.writeListEnd()
oprot.writeFieldEnd()
if self.values is not None:
oprot.writeFieldBegin('values', TType.LIST, 3)
oprot.writeListBegin(TType.I64, len(self.values))
for iter151 in self.values:
oprot.writeI64(iter151)
oprot.writeListEnd()
oprot.writeFieldEnd()
if self.ttl_secs is not None:
oprot.writeFieldBegin('ttl_secs', TType.LIST, 4)
oprot.writeListBegin(TType.I32, len(self.ttl_secs))
for iter152 in self.ttl_secs:
oprot.writeI32(iter152)
oprot.writeListEnd()
oprot.writeFieldEnd()
if self.index is not None:
oprot.writeFieldBegin('index', TType.LIST, 5)
oprot.writeListBegin(TType.I32, len(self.index))
for iter153 in self.index:
oprot.writeI32(iter153)
oprot.writeListEnd()
oprot.writeFieldEnd()
if self.need_routing is not None:
oprot.writeFieldBegin('need_routing', TType.BOOL, 6)
oprot.writeBool(self.need_routing)
oprot.writeFieldEnd()
oprot.writeFieldStop()
oprot.writeStructEnd()
def validate(self):
if self.keys is None:
raise TProtocolException(message='Required field keys is unset!')
if self.values is None:
raise TProtocolException(message='Required field values is unset!')
if self.ttl_secs is None:
raise TProtocolException(message='Required field ttl_secs is unset!')
return
def __repr__(self):
L = ['%s=%r' % (key, value)
for key, value in self.__dict__.items()]
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
def __eq__(self, other):
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
def __ne__(self, other):
return not (self == other)
class MultiIncrCounterResponse(object):
"""
Attributes:
- responses
- sub_request_indices
"""
def __init__(self, responses=None, sub_request_indices=None,):
self.responses = responses
self.sub_request_indices = sub_request_indices
def read(self, iprot):
if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
return
iprot.readStructBegin()
while True:
(fname, ftype, fid) = iprot.readFieldBegin()
if ftype == TType.STOP:
break
if fid == 1:
if ftype == TType.LIST:
self.responses = []
(_etype157, _size154) = iprot.readListBegin()
for _i158 in range(_size154):
_elem159 = IncrCounterResponse()
_elem159.read(iprot)
self.responses.append(_elem159)
iprot.readListEnd()
else:
iprot.skip(ftype)
elif fid == 2:
if ftype == TType.LIST:
self.sub_request_indices = []
(_etype163, _size160) = iprot.readListBegin()
for _i164 in range(_size160):
_elem165 = iprot.readI32()
self.sub_request_indices.append(_elem165)
iprot.readListEnd()
else:
iprot.skip(ftype)
else:
iprot.skip(ftype)
iprot.readFieldEnd()
iprot.readStructEnd()
def write(self, oprot):
if oprot._fast_encode is not None and self.thrift_spec is not None:
oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
return
oprot.writeStructBegin('MultiIncrCounterResponse')
if self.responses is not None:
oprot.writeFieldBegin('responses', TType.LIST, 1)
oprot.writeListBegin(TType.STRUCT, len(self.responses))
for iter166 in self.responses:
iter166.write(oprot)
oprot.writeListEnd()
oprot.writeFieldEnd()
if self.sub_request_indices is not None:
oprot.writeFieldBegin('sub_request_indices', TType.LIST, 2)
oprot.writeListBegin(TType.I32, len(self.sub_request_indices))
for iter167 in self.sub_request_indices:
oprot.writeI32(iter167)
oprot.writeListEnd()
oprot.writeFieldEnd()
oprot.writeFieldStop()
oprot.writeStructEnd()
def validate(self):
if self.responses is None:
raise TProtocolException(message='Required field responses is unset!')
return
def __repr__(self):
L = ['%s=%r' % (key, value)
for key, value in self.__dict__.items()]
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
def __eq__(self, other):
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
def __ne__(self, other):
return not (self == other)
class GetCounterRequest(object):
"""
Attributes:
- segment
- key
- need_routing
"""
def __init__(self, segment="default", key=None, need_routing=True,):
self.segment = segment
self.key = key
self.need_routing = need_routing
def read(self, iprot):
if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
return
iprot.readStructBegin()
while True:
(fname, ftype, fid) = iprot.readFieldBegin()
if ftype == TType.STOP:
break
if fid == 1:
if ftype == TType.STRING:
self.segment = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
else:
iprot.skip(ftype)
elif fid == 2:
if ftype == TType.STRING:
self.key = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
else:
iprot.skip(ftype)
elif fid == 3:
if ftype == TType.BOOL:
self.need_routing = iprot.readBool()
else:
iprot.skip(ftype)
else:
iprot.skip(ftype)
iprot.readFieldEnd()
iprot.readStructEnd()
def write(self, oprot):
if oprot._fast_encode is not None and self.thrift_spec is not None:
oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
return
oprot.writeStructBegin('GetCounterRequest')
if self.segment is not None:
oprot.writeFieldBegin('segment', TType.STRING, 1)
oprot.writeString(self.segment.encode('utf-8') if sys.version_info[0] == 2 else self.segment)
oprot.writeFieldEnd()
if self.key is not None:
oprot.writeFieldBegin('key', TType.STRING, 2)
oprot.writeString(self.key.encode('utf-8') if sys.version_info[0] == 2 else self.key)
oprot.writeFieldEnd()
if self.need_routing is not None:
oprot.writeFieldBegin('need_routing', TType.BOOL, 3)
oprot.writeBool(self.need_routing)
oprot.writeFieldEnd()
oprot.writeFieldStop()
oprot.writeStructEnd()
def validate(self):
if self.key is None:
raise TProtocolException(message='Required field key is unset!')
return
def __repr__(self):
L = ['%s=%r' % (key, value)
for key, value in self.__dict__.items()]
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
def __eq__(self, other):
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
def __ne__(self, other):
return not (self == other)
class GetCounterResponse(object):
"""
Attributes:
- value
- error
"""
def __init__(self, value=None, error=None,):
self.value = value
self.error = error
def read(self, iprot):
if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
return
iprot.readStructBegin()
while True:
(fname, ftype, fid) = iprot.readFieldBegin()
if ftype == TType.STOP:
break
if fid == 1:
if ftype == TType.I64:
self.value = iprot.readI64()
else:
iprot.skip(ftype)
elif fid == 2:
if ftype == TType.STRUCT:
self.error = SharestoreException()
self.error.read(iprot)
else:
iprot.skip(ftype)
else:
iprot.skip(ftype)
iprot.readFieldEnd()
iprot.readStructEnd()
def write(self, oprot):
if oprot._fast_encode is not None and self.thrift_spec is not None:
oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
return
oprot.writeStructBegin('GetCounterResponse')
if self.value is not None:
oprot.writeFieldBegin('value', TType.I64, 1)
oprot.writeI64(self.value)
oprot.writeFieldEnd()
if self.error is not None:
oprot.writeFieldBegin('error', TType.STRUCT, 2)
self.error.write(oprot)
oprot.writeFieldEnd()
oprot.writeFieldStop()
oprot.writeStructEnd()
def validate(self):
if self.value is None:
raise TProtocolException(message='Required field value is unset!')
return
def __repr__(self):
L = ['%s=%r' % (key, value)
for key, value in self.__dict__.items()]
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
def __eq__(self, other):
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
def __ne__(self, other):
return not (self == other)
class SetCounterRequest(object):
"""
Attributes:
- segment
- key
- value
- need_routing
"""
def __init__(self, segment="default", key=None, value=None, need_routing=True,):
self.segment = segment
self.key = key
self.value = value
self.need_routing = need_routing
def read(self, iprot):
if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
return
iprot.readStructBegin()
while True:
(fname, ftype, fid) = iprot.readFieldBegin()
if ftype == TType.STOP:
break
if fid == 1:
if ftype == TType.STRING:
self.segment = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
else:
iprot.skip(ftype)
elif fid == 2:
if ftype == TType.STRING:
self.key = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
else:
iprot.skip(ftype)
elif fid == 3:
if ftype == TType.I64:
self.value = iprot.readI64()
else:
iprot.skip(ftype)
elif fid == 4:
if ftype == TType.BOOL:
self.need_routing = iprot.readBool()
else:
iprot.skip(ftype)
else:
iprot.skip(ftype)
iprot.readFieldEnd()
iprot.readStructEnd()
def write(self, oprot):
if oprot._fast_encode is not None and self.thrift_spec is not None:
oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
return
oprot.writeStructBegin('SetCounterRequest')
if self.segment is not None:
oprot.writeFieldBegin('segment', TType.STRING, 1)
oprot.writeString(self.segment.encode('utf-8') if sys.version_info[0] == 2 else self.segment)
oprot.writeFieldEnd()
if self.key is not None:
oprot.writeFieldBegin('key', TType.STRING, 2)
oprot.writeString(self.key.encode('utf-8') if sys.version_info[0] == 2 else self.key)
oprot.writeFieldEnd()
if self.value is not None:
oprot.writeFieldBegin('value', TType.I64, 3)
oprot.writeI64(self.value)
oprot.writeFieldEnd()
if self.need_routing is not None:
oprot.writeFieldBegin('need_routing', TType.BOOL, 4)
oprot.writeBool(self.need_routing)
oprot.writeFieldEnd()
oprot.writeFieldStop()
oprot.writeStructEnd()
def validate(self):
if self.key is None:
raise TProtocolException(message='Required field key is unset!')
if self.value is None:
raise TProtocolException(message='Required field value is unset!')
return
def __repr__(self):
L = ['%s=%r' % (key, value)
for key, value in self.__dict__.items()]
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
def __eq__(self, other):
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
def __ne__(self, other):
return not (self == other)
class SetCounterTtlRequest(object):
"""
Attributes:
- segment
- key
- value
- ttl_sec
- need_routing
"""
def __init__(self, segment="default", key=None, value=None, ttl_sec=None, need_routing=True,):
self.segment = segment
self.key = key
self.value = value
self.ttl_sec = ttl_sec
self.need_routing = need_routing
def read(self, iprot):
if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
return
iprot.readStructBegin()
while True:
(fname, ftype, fid) = iprot.readFieldBegin()
if ftype == TType.STOP:
break
if fid == 1:
if ftype == TType.STRING:
self.segment = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
else:
iprot.skip(ftype)
elif fid == 2:
if ftype == TType.STRING:
self.key = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
else:
iprot.skip(ftype)
elif fid == 3:
if ftype == TType.I64:
self.value = iprot.readI64()
else:
iprot.skip(ftype)
elif fid == 4:
if ftype == TType.I32:
self.ttl_sec = iprot.readI32()
else:
iprot.skip(ftype)
elif fid == 5:
if ftype == TType.BOOL:
self.need_routing = iprot.readBool()
else:
iprot.skip(ftype)
else:
iprot.skip(ftype)
iprot.readFieldEnd()
iprot.readStructEnd()
def write(self, oprot):
if oprot._fast_encode is not None and self.thrift_spec is not None:
oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
return
oprot.writeStructBegin('SetCounterTtlRequest')
if self.segment is not None:
oprot.writeFieldBegin('segment', TType.STRING, 1)
oprot.writeString(self.segment.encode('utf-8') if sys.version_info[0] == 2 else self.segment)
oprot.writeFieldEnd()
if self.key is not None:
oprot.writeFieldBegin('key', TType.STRING, 2)
oprot.writeString(self.key.encode('utf-8') if sys.version_info[0] == 2 else self.key)
oprot.writeFieldEnd()
if self.value is not None:
oprot.writeFieldBegin('value', TType.I64, 3)
oprot.writeI64(self.value)
oprot.writeFieldEnd()
if self.ttl_sec is not None:
oprot.writeFieldBegin('ttl_sec', TType.I32, 4)
oprot.writeI32(self.ttl_sec)
oprot.writeFieldEnd()
if self.need_routing is not None:
oprot.writeFieldBegin('need_routing', TType.BOOL, 5)
oprot.writeBool(self.need_routing)
oprot.writeFieldEnd()
oprot.writeFieldStop()
oprot.writeStructEnd()
def validate(self):
if self.key is None:
raise TProtocolException(message='Required field key is unset!')
if self.value is None:
raise TProtocolException(message='Required field value is unset!')
if self.ttl_sec is None:
raise TProtocolException(message='Required field ttl_sec is unset!')
return
def __repr__(self):
L = ['%s=%r' % (key, value)
for key, value in self.__dict__.items()]
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
def __eq__(self, other):
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
def __ne__(self, other):
return not (self == other)
class SetCounterResponse(object):
"""
Attributes:
- error
"""
def __init__(self, error=None,):
self.error = error
def read(self, iprot):
if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
return
iprot.readStructBegin()
while True:
(fname, ftype, fid) = iprot.readFieldBegin()
if ftype == TType.STOP:
break
if fid == 1:
if ftype == TType.STRUCT:
self.error = SharestoreException()
self.error.read(iprot)
else:
iprot.skip(ftype)
else:
iprot.skip(ftype)
iprot.readFieldEnd()
iprot.readStructEnd()
def write(self, oprot):
if oprot._fast_encode is not None and self.thrift_spec is not None:
oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
return
oprot.writeStructBegin('SetCounterResponse')
if self.error is not None:
oprot.writeFieldBegin('error', TType.STRUCT, 1)
self.error.write(oprot)
oprot.writeFieldEnd()
oprot.writeFieldStop()
oprot.writeStructEnd()
def validate(self):
return
def __repr__(self):
L = ['%s=%r' % (key, value)
for key, value in self.__dict__.items()]
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
def __eq__(self, other):
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
def __ne__(self, other):
return not (self == other)
class MultiSetCounterRequest(object):
"""
Attributes:
- segment
- keys
- values
- index
- need_routing
"""
def __init__(self, segment="default", keys=None, values=None, index=None, need_routing=True,):
self.segment = segment
self.keys = keys
self.values = values
self.index = index
self.need_routing = need_routing
def read(self, iprot):
if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
return
iprot.readStructBegin()
while True:
(fname, ftype, fid) = iprot.readFieldBegin()
if ftype == TType.STOP:
break
if fid == 1:
if ftype == TType.STRING:
self.segment = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
else:
iprot.skip(ftype)
elif fid == 2:
if ftype == TType.LIST:
self.keys = []
(_etype171, _size168) = iprot.readListBegin()
for _i172 in range(_size168):
_elem173 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
self.keys.append(_elem173)
iprot.readListEnd()
else:
iprot.skip(ftype)
elif fid == 3:
if ftype == TType.LIST:
self.values = []
(_etype177, _size174) = iprot.readListBegin()
for _i178 in range(_size174):
_elem179 = iprot.readI64()
self.values.append(_elem179)
iprot.readListEnd()
else:
iprot.skip(ftype)
elif fid == 4:
if ftype == TType.LIST:
self.index = []
(_etype183, _size180) = iprot.readListBegin()
for _i184 in range(_size180):
_elem185 = iprot.readI32()
self.index.append(_elem185)
iprot.readListEnd()
else:
iprot.skip(ftype)
elif fid == 5:
if ftype == TType.BOOL:
self.need_routing = iprot.readBool()
else:
iprot.skip(ftype)
else:
iprot.skip(ftype)
iprot.readFieldEnd()
iprot.readStructEnd()
def write(self, oprot):
if oprot._fast_encode is not None and self.thrift_spec is not None:
oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
return
oprot.writeStructBegin('MultiSetCounterRequest')
if self.segment is not None:
oprot.writeFieldBegin('segment', TType.STRING, 1)
oprot.writeString(self.segment.encode('utf-8') if sys.version_info[0] == 2 else self.segment)
oprot.writeFieldEnd()
if self.keys is not None:
oprot.writeFieldBegin('keys', TType.LIST, 2)
oprot.writeListBegin(TType.STRING, len(self.keys))
for iter186 in self.keys:
oprot.writeString(iter186.encode('utf-8') if sys.version_info[0] == 2 else iter186)
oprot.writeListEnd()
oprot.writeFieldEnd()
if self.values is not None:
oprot.writeFieldBegin('values', TType.LIST, 3)
oprot.writeListBegin(TType.I64, len(self.values))
for iter187 in self.values:
oprot.writeI64(iter187)
oprot.writeListEnd()
oprot.writeFieldEnd()
if self.index is not None:
oprot.writeFieldBegin('index', TType.LIST, 4)
oprot.writeListBegin(TType.I32, len(self.index))
for iter188 in self.index:
oprot.writeI32(iter188)
oprot.writeListEnd()
oprot.writeFieldEnd()
if self.need_routing is not None:
oprot.writeFieldBegin('need_routing', TType.BOOL, 5)
oprot.writeBool(self.need_routing)
oprot.writeFieldEnd()
oprot.writeFieldStop()
oprot.writeStructEnd()
def validate(self):
if self.keys is None:
raise TProtocolException(message='Required field keys is unset!')
if self.values is None:
raise TProtocolException(message='Required field values is unset!')
return
def __repr__(self):
L = ['%s=%r' % (key, value)
for key, value in self.__dict__.items()]
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
def __eq__(self, other):
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
def __ne__(self, other):
return not (self == other)
class MultiSetCounterTtlRequest(object):
"""
Attributes:
- segment
- keys
- values
- ttl_secs
- index
- need_routing
"""
def __init__(self, segment="default", keys=None, values=None, ttl_secs=None, index=None, need_routing=True,):
self.segment = segment
self.keys = keys
self.values = values
self.ttl_secs = ttl_secs
self.index = index
self.need_routing = need_routing
def read(self, iprot):
if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
return
iprot.readStructBegin()
while True:
(fname, ftype, fid) = iprot.readFieldBegin()
if ftype == TType.STOP:
break
if fid == 1:
if ftype == TType.STRING:
self.segment = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
else:
iprot.skip(ftype)
elif fid == 2:
if ftype == TType.LIST:
self.keys = []
(_etype192, _size189) = iprot.readListBegin()
for _i193 in range(_size189):
_elem194 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
self.keys.append(_elem194)
iprot.readListEnd()
else:
iprot.skip(ftype)
elif fid == 3:
if ftype == TType.LIST:
self.values = []
(_etype198, _size195) = iprot.readListBegin()
for _i199 in range(_size195):
_elem200 = iprot.readI64()
self.values.append(_elem200)
iprot.readListEnd()
else:
iprot.skip(ftype)
elif fid == 4:
if ftype == TType.LIST:
self.ttl_secs = []
(_etype204, _size201) = iprot.readListBegin()
for _i205 in range(_size201):
_elem206 = iprot.readI32()
self.ttl_secs.append(_elem206)
iprot.readListEnd()
else:
iprot.skip(ftype)
elif fid == 5:
if ftype == TType.LIST:
self.index = []
(_etype210, _size207) = iprot.readListBegin()
for _i211 in range(_size207):
_elem212 = iprot.readI32()
self.index.append(_elem212)
iprot.readListEnd()
else:
iprot.skip(ftype)
elif fid == 6:
if ftype == TType.BOOL:
self.need_routing = iprot.readBool()
else:
iprot.skip(ftype)
else:
iprot.skip(ftype)
iprot.readFieldEnd()
iprot.readStructEnd()
def write(self, oprot):
if oprot._fast_encode is not None and self.thrift_spec is not None:
oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
return
oprot.writeStructBegin('MultiSetCounterTtlRequest')
if self.segment is not None:
oprot.writeFieldBegin('segment', TType.STRING, 1)
oprot.writeString(self.segment.encode('utf-8') if sys.version_info[0] == 2 else self.segment)
oprot.writeFieldEnd()
if self.keys is not None:
oprot.writeFieldBegin('keys', TType.LIST, 2)
oprot.writeListBegin(TType.STRING, len(self.keys))
for iter213 in self.keys:
oprot.writeString(iter213.encode('utf-8') if sys.version_info[0] == 2 else iter213)
oprot.writeListEnd()
oprot.writeFieldEnd()
if self.values is not None:
oprot.writeFieldBegin('values', TType.LIST, 3)
oprot.writeListBegin(TType.I64, len(self.values))
for iter214 in self.values:
oprot.writeI64(iter214)
oprot.writeListEnd()
oprot.writeFieldEnd()
if self.ttl_secs is not None:
oprot.writeFieldBegin('ttl_secs', TType.LIST, 4)
oprot.writeListBegin(TType.I32, len(self.ttl_secs))
for iter215 in self.ttl_secs:
oprot.writeI32(iter215)
oprot.writeListEnd()
oprot.writeFieldEnd()
if self.index is not None:
oprot.writeFieldBegin('index', TType.LIST, 5)
oprot.writeListBegin(TType.I32, len(self.index))
for iter216 in self.index:
oprot.writeI32(iter216)
oprot.writeListEnd()
oprot.writeFieldEnd()
if self.need_routing is not None:
oprot.writeFieldBegin('need_routing', TType.BOOL, 6)
oprot.writeBool(self.need_routing)
oprot.writeFieldEnd()
oprot.writeFieldStop()
oprot.writeStructEnd()
def validate(self):
if self.keys is None:
raise TProtocolException(message='Required field keys is unset!')
if self.values is None:
raise TProtocolException(message='Required field values is unset!')
if self.ttl_secs is None:
raise TProtocolException(message='Required field ttl_secs is unset!')
return
def __repr__(self):
L = ['%s=%r' % (key, value)
for key, value in self.__dict__.items()]
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
def __eq__(self, other):
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
def __ne__(self, other):
return not (self == other)
class MultiSetCounterResponse(object):
"""
Attributes:
- responses
- sub_request_indices
"""
def __init__(self, responses=None, sub_request_indices=None,):
self.responses = responses
self.sub_request_indices = sub_request_indices
def read(self, iprot):
if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
return
iprot.readStructBegin()
while True:
(fname, ftype, fid) = iprot.readFieldBegin()
if ftype == TType.STOP:
break
if fid == 1:
if ftype == TType.LIST:
self.responses = []
(_etype220, _size217) = iprot.readListBegin()
for _i221 in range(_size217):
_elem222 = SetCounterResponse()
_elem222.read(iprot)
self.responses.append(_elem222)
iprot.readListEnd()
else:
iprot.skip(ftype)
elif fid == 2:
if ftype == TType.LIST:
self.sub_request_indices = []
(_etype226, _size223) = iprot.readListBegin()
for _i227 in range(_size223):
_elem228 = iprot.readI32()
self.sub_request_indices.append(_elem228)
iprot.readListEnd()
else:
iprot.skip(ftype)
else:
iprot.skip(ftype)
iprot.readFieldEnd()
iprot.readStructEnd()
def write(self, oprot):
if oprot._fast_encode is not None and self.thrift_spec is not None:
oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
return
oprot.writeStructBegin('MultiSetCounterResponse')
if self.responses is not None:
oprot.writeFieldBegin('responses', TType.LIST, 1)
oprot.writeListBegin(TType.STRUCT, len(self.responses))
for iter229 in self.responses:
iter229.write(oprot)
oprot.writeListEnd()
oprot.writeFieldEnd()
if self.sub_request_indices is not None:
oprot.writeFieldBegin('sub_request_indices', TType.LIST, 2)
oprot.writeListBegin(TType.I32, len(self.sub_request_indices))
for iter230 in self.sub_request_indices:
oprot.writeI32(iter230)
oprot.writeListEnd()
oprot.writeFieldEnd()
oprot.writeFieldStop()
oprot.writeStructEnd()
def validate(self):
if self.responses is None:
raise TProtocolException(message='Required field responses is unset!')
return
def __repr__(self):
L = ['%s=%r' % (key, value)
for key, value in self.__dict__.items()]
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
def __eq__(self, other):
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
def __ne__(self, other):
return not (self == other)
class MultiGetCounterRequest(object):
"""
Attributes:
- segment
- keys
- index
- need_routing
"""
def __init__(self, segment="default", keys=None, index=None, need_routing=True,):
self.segment = segment
self.keys = keys
self.index = index
self.need_routing = need_routing
def read(self, iprot):
if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
return
iprot.readStructBegin()
while True:
(fname, ftype, fid) = iprot.readFieldBegin()
if ftype == TType.STOP:
break
if fid == 1:
if ftype == TType.STRING:
self.segment = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
else:
iprot.skip(ftype)
elif fid == 2:
if ftype == TType.LIST:
self.keys = []
(_etype234, _size231) = iprot.readListBegin()
for _i235 in range(_size231):
_elem236 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
self.keys.append(_elem236)
iprot.readListEnd()
else:
iprot.skip(ftype)
elif fid == 3:
if ftype == TType.LIST:
self.index = []
(_etype240, _size237) = iprot.readListBegin()
for _i241 in range(_size237):
_elem242 = iprot.readI32()
self.index.append(_elem242)
iprot.readListEnd()
else:
iprot.skip(ftype)
elif fid == 4:
if ftype == TType.BOOL:
self.need_routing = iprot.readBool()
else:
iprot.skip(ftype)
else:
iprot.skip(ftype)
iprot.readFieldEnd()
iprot.readStructEnd()
def write(self, oprot):
if oprot._fast_encode is not None and self.thrift_spec is not None:
oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
return
oprot.writeStructBegin('MultiGetCounterRequest')
if self.segment is not None:
oprot.writeFieldBegin('segment', TType.STRING, 1)
oprot.writeString(self.segment.encode('utf-8') if sys.version_info[0] == 2 else self.segment)
oprot.writeFieldEnd()
if self.keys is not None:
oprot.writeFieldBegin('keys', TType.LIST, 2)
oprot.writeListBegin(TType.STRING, len(self.keys))
for iter243 in self.keys:
oprot.writeString(iter243.encode('utf-8') if sys.version_info[0] == 2 else iter243)
oprot.writeListEnd()
oprot.writeFieldEnd()
if self.index is not None:
oprot.writeFieldBegin('index', TType.LIST, 3)
oprot.writeListBegin(TType.I32, len(self.index))
for iter244 in self.index:
oprot.writeI32(iter244)
oprot.writeListEnd()
oprot.writeFieldEnd()
if self.need_routing is not None:
oprot.writeFieldBegin('need_routing', TType.BOOL, 4)
oprot.writeBool(self.need_routing)
oprot.writeFieldEnd()
oprot.writeFieldStop()
oprot.writeStructEnd()
def validate(self):
if self.keys is None:
raise TProtocolException(message='Required field keys is unset!')
return
def __repr__(self):
L = ['%s=%r' % (key, value)
for key, value in self.__dict__.items()]
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
def __eq__(self, other):
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
def __ne__(self, other):
return not (self == other)
class MultiGetCounterResponse(object):
"""
Attributes:
- responses
- sub_request_indices
"""
def __init__(self, responses=None, sub_request_indices=None,):
self.responses = responses
self.sub_request_indices = sub_request_indices
def read(self, iprot):
if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
return
iprot.readStructBegin()
while True:
(fname, ftype, fid) = iprot.readFieldBegin()
if ftype == TType.STOP:
break
if fid == 1:
if ftype == TType.LIST:
self.responses = []
(_etype248, _size245) = iprot.readListBegin()
for _i249 in range(_size245):
_elem250 = GetCounterResponse()
_elem250.read(iprot)
self.responses.append(_elem250)
iprot.readListEnd()
else:
iprot.skip(ftype)
elif fid == 2:
if ftype == TType.LIST:
self.sub_request_indices = []
(_etype254, _size251) = iprot.readListBegin()
for _i255 in range(_size251):
_elem256 = iprot.readI32()
self.sub_request_indices.append(_elem256)
iprot.readListEnd()
else:
iprot.skip(ftype)
else:
iprot.skip(ftype)
iprot.readFieldEnd()
iprot.readStructEnd()
def write(self, oprot):
if oprot._fast_encode is not None and self.thrift_spec is not None:
oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
return
oprot.writeStructBegin('MultiGetCounterResponse')
if self.responses is not None:
oprot.writeFieldBegin('responses', TType.LIST, 1)
oprot.writeListBegin(TType.STRUCT, len(self.responses))
for iter257 in self.responses:
iter257.write(oprot)
oprot.writeListEnd()
oprot.writeFieldEnd()
if self.sub_request_indices is not None:
oprot.writeFieldBegin('sub_request_indices', TType.LIST, 2)
oprot.writeListBegin(TType.I32, len(self.sub_request_indices))
for iter258 in self.sub_request_indices:
oprot.writeI32(iter258)
oprot.writeListEnd()
oprot.writeFieldEnd()
oprot.writeFieldStop()
oprot.writeStructEnd()
def validate(self):
if self.responses is None:
raise TProtocolException(message='Required field responses is unset!')
return
def __repr__(self):
L = ['%s=%r' % (key, value)
for key, value in self.__dict__.items()]
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
def __eq__(self, other):
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
def __ne__(self, other):
return not (self == other)
class HashValue(object):
"""
Attributes:
- str_val
- int_val
- buf_val
"""
def __init__(self, str_val=None, int_val=None, buf_val=None,):
self.str_val = str_val
self.int_val = int_val
self.buf_val = buf_val
def read(self, iprot):
if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
return
iprot.readStructBegin()
while True:
(fname, ftype, fid) = iprot.readFieldBegin()
if ftype == TType.STOP:
break
if fid == 1:
if ftype == TType.STRING:
self.str_val = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
else:
iprot.skip(ftype)
elif fid == 2:
if ftype == TType.I64:
self.int_val = iprot.readI64()
else:
iprot.skip(ftype)
elif fid == 3:
if ftype == TType.STRING:
self.buf_val = iprot.readBinary()
else:
iprot.skip(ftype)
else:
iprot.skip(ftype)
iprot.readFieldEnd()
iprot.readStructEnd()
def write(self, oprot):
if oprot._fast_encode is not None and self.thrift_spec is not None:
oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
return
oprot.writeStructBegin('HashValue')
if self.str_val is not None:
oprot.writeFieldBegin('str_val', TType.STRING, 1)
oprot.writeString(self.str_val.encode('utf-8') if sys.version_info[0] == 2 else self.str_val)
oprot.writeFieldEnd()
if self.int_val is not None:
oprot.writeFieldBegin('int_val', TType.I64, 2)
oprot.writeI64(self.int_val)
oprot.writeFieldEnd()
if self.buf_val is not None:
oprot.writeFieldBegin('buf_val', TType.STRING, 3)
oprot.writeBinary(self.buf_val)
oprot.writeFieldEnd()
oprot.writeFieldStop()
oprot.writeStructEnd()
def validate(self):
return
def __repr__(self):
L = ['%s=%r' % (key, value)
for key, value in self.__dict__.items()]
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
def __eq__(self, other):
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
def __ne__(self, other):
return not (self == other)
class HashSetRequest(object):
"""
Attributes:
- segment
- key
- members
- values
- ttl_secs
- need_routing
"""
def __init__(self, segment="default", key=None, members=None, values=None, ttl_secs=None, need_routing=True,):
self.segment = segment
self.key = key
self.members = members
self.values = values
self.ttl_secs = ttl_secs
self.need_routing = need_routing
def read(self, iprot):
if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
return
iprot.readStructBegin()
while True:
(fname, ftype, fid) = iprot.readFieldBegin()
if ftype == TType.STOP:
break
if fid == 1:
if ftype == TType.STRING:
self.segment = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
else:
iprot.skip(ftype)
elif fid == 2:
if ftype == TType.STRING:
self.key = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
else:
iprot.skip(ftype)
elif fid == 3:
if ftype == TType.LIST:
self.members = []
(_etype262, _size259) = iprot.readListBegin()
for _i263 in range(_size259):
_elem264 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
self.members.append(_elem264)
iprot.readListEnd()
else:
iprot.skip(ftype)
elif fid == 4:
if ftype == TType.LIST:
self.values = []
(_etype268, _size265) = iprot.readListBegin()
for _i269 in range(_size265):
_elem270 = HashValue()
_elem270.read(iprot)
self.values.append(_elem270)
iprot.readListEnd()
else:
iprot.skip(ftype)
elif fid == 5:
if ftype == TType.LIST:
self.ttl_secs = []
(_etype274, _size271) = iprot.readListBegin()
for _i275 in range(_size271):
_elem276 = iprot.readI32()
self.ttl_secs.append(_elem276)
iprot.readListEnd()
else:
iprot.skip(ftype)
elif fid == 6:
if ftype == TType.BOOL:
self.need_routing = iprot.readBool()
else:
iprot.skip(ftype)
else:
iprot.skip(ftype)
iprot.readFieldEnd()
iprot.readStructEnd()
def write(self, oprot):
if oprot._fast_encode is not None and self.thrift_spec is not None:
oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
return
oprot.writeStructBegin('HashSetRequest')
if self.segment is not None:
oprot.writeFieldBegin('segment', TType.STRING, 1)
oprot.writeString(self.segment.encode('utf-8') if sys.version_info[0] == 2 else self.segment)
oprot.writeFieldEnd()
if self.key is not None:
oprot.writeFieldBegin('key', TType.STRING, 2)
oprot.writeString(self.key.encode('utf-8') if sys.version_info[0] == 2 else self.key)
oprot.writeFieldEnd()
if self.members is not None:
oprot.writeFieldBegin('members', TType.LIST, 3)
oprot.writeListBegin(TType.STRING, len(self.members))
for iter277 in self.members:
oprot.writeString(iter277.encode('utf-8') if sys.version_info[0] == 2 else iter277)
oprot.writeListEnd()
oprot.writeFieldEnd()
if self.values is not None:
oprot.writeFieldBegin('values', TType.LIST, 4)
oprot.writeListBegin(TType.STRUCT, len(self.values))
for iter278 in self.values:
iter278.write(oprot)
oprot.writeListEnd()
oprot.writeFieldEnd()
if self.ttl_secs is not None:
oprot.writeFieldBegin('ttl_secs', TType.LIST, 5)
oprot.writeListBegin(TType.I32, len(self.ttl_secs))
for iter279 in self.ttl_secs:
oprot.writeI32(iter279)
oprot.writeListEnd()
oprot.writeFieldEnd()
if self.need_routing is not None:
oprot.writeFieldBegin('need_routing', TType.BOOL, 6)
oprot.writeBool(self.need_routing)
oprot.writeFieldEnd()
oprot.writeFieldStop()
oprot.writeStructEnd()
def validate(self):
if self.key is None:
raise TProtocolException(message='Required field key is unset!')
if self.members is None:
raise TProtocolException(message='Required field members is unset!')
if self.values is None:
raise TProtocolException(message='Required field values is unset!')
return
def __repr__(self):
L = ['%s=%r' % (key, value)
for key, value in self.__dict__.items()]
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
def __eq__(self, other):
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
def __ne__(self, other):
return not (self == other)
class HashSetResponse(object):
"""
Attributes:
- error
"""
def __init__(self, error=None,):
self.error = error
def read(self, iprot):
if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
return
iprot.readStructBegin()
while True:
(fname, ftype, fid) = iprot.readFieldBegin()
if ftype == TType.STOP:
break
if fid == 1:
if ftype == TType.STRUCT:
self.error = SharestoreException()
self.error.read(iprot)
else:
iprot.skip(ftype)
else:
iprot.skip(ftype)
iprot.readFieldEnd()
iprot.readStructEnd()
def write(self, oprot):
if oprot._fast_encode is not None and self.thrift_spec is not None:
oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
return
oprot.writeStructBegin('HashSetResponse')
if self.error is not None:
oprot.writeFieldBegin('error', TType.STRUCT, 1)
self.error.write(oprot)
oprot.writeFieldEnd()
oprot.writeFieldStop()
oprot.writeStructEnd()
def validate(self):
return
def __repr__(self):
L = ['%s=%r' % (key, value)
for key, value in self.__dict__.items()]
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
def __eq__(self, other):
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
def __ne__(self, other):
return not (self == other)
class MultiHashSetRequest(object):
"""
Attributes:
- segment
- keys
- members
- values
- ttl_secs
- index
- need_routing
"""
def __init__(self, segment="default", keys=None, members=None, values=None, ttl_secs=None, index=None, need_routing=True,):
self.segment = segment
self.keys = keys
self.members = members
self.values = values
self.ttl_secs = ttl_secs
self.index = index
self.need_routing = need_routing
def read(self, iprot):
if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
return
iprot.readStructBegin()
while True:
(fname, ftype, fid) = iprot.readFieldBegin()
if ftype == TType.STOP:
break
if fid == 1:
if ftype == TType.STRING:
self.segment = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
else:
iprot.skip(ftype)
elif fid == 2:
if ftype == TType.LIST:
self.keys = []
(_etype283, _size280) = iprot.readListBegin()
for _i284 in range(_size280):
_elem285 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
self.keys.append(_elem285)
iprot.readListEnd()
else:
iprot.skip(ftype)
elif fid == 3:
if ftype == TType.LIST:
self.members = []
(_etype289, _size286) = iprot.readListBegin()
for _i290 in range(_size286):
_elem291 = []
(_etype295, _size292) = iprot.readListBegin()
for _i296 in range(_size292):
_elem297 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
_elem291.append(_elem297)
iprot.readListEnd()
self.members.append(_elem291)
iprot.readListEnd()
else:
iprot.skip(ftype)
elif fid == 4:
if ftype == TType.LIST:
self.values = []
(_etype301, _size298) = iprot.readListBegin()
for _i302 in range(_size298):
_elem303 = []
(_etype307, _size304) = iprot.readListBegin()
for _i308 in range(_size304):
_elem309 = HashValue()
_elem309.read(iprot)
_elem303.append(_elem309)
iprot.readListEnd()
self.values.append(_elem303)
iprot.readListEnd()
else:
iprot.skip(ftype)
elif fid == 5:
if ftype == TType.LIST:
self.ttl_secs = []
(_etype313, _size310) = iprot.readListBegin()
for _i314 in range(_size310):
_elem315 = []
(_etype319, _size316) = iprot.readListBegin()
for _i320 in range(_size316):
_elem321 = iprot.readI32()
_elem315.append(_elem321)
iprot.readListEnd()
self.ttl_secs.append(_elem315)
iprot.readListEnd()
else:
iprot.skip(ftype)
elif fid == 6:
if ftype == TType.LIST:
self.index = []
(_etype325, _size322) = iprot.readListBegin()
for _i326 in range(_size322):
_elem327 = iprot.readI32()
self.index.append(_elem327)
iprot.readListEnd()
else:
iprot.skip(ftype)
elif fid == 7:
if ftype == TType.BOOL:
self.need_routing = iprot.readBool()
else:
iprot.skip(ftype)
else:
iprot.skip(ftype)
iprot.readFieldEnd()
iprot.readStructEnd()
def write(self, oprot):
if oprot._fast_encode is not None and self.thrift_spec is not None:
oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
return
oprot.writeStructBegin('MultiHashSetRequest')
if self.segment is not None:
oprot.writeFieldBegin('segment', TType.STRING, 1)
oprot.writeString(self.segment.encode('utf-8') if sys.version_info[0] == 2 else self.segment)
oprot.writeFieldEnd()
if self.keys is not None:
oprot.writeFieldBegin('keys', TType.LIST, 2)
oprot.writeListBegin(TType.STRING, len(self.keys))
for iter328 in self.keys:
oprot.writeString(iter328.encode('utf-8') if sys.version_info[0] == 2 else iter328)
oprot.writeListEnd()
oprot.writeFieldEnd()
if self.members is not None:
oprot.writeFieldBegin('members', TType.LIST, 3)
oprot.writeListBegin(TType.LIST, len(self.members))
for iter329 in self.members:
oprot.writeListBegin(TType.STRING, len(iter329))
for iter330 in iter329:
oprot.writeString(iter330.encode('utf-8') if sys.version_info[0] == 2 else iter330)
oprot.writeListEnd()
oprot.writeListEnd()
oprot.writeFieldEnd()
if self.values is not None:
oprot.writeFieldBegin('values', TType.LIST, 4)
oprot.writeListBegin(TType.LIST, len(self.values))
for iter331 in self.values:
oprot.writeListBegin(TType.STRUCT, len(iter331))
for iter332 in iter331:
iter332.write(oprot)
oprot.writeListEnd()
oprot.writeListEnd()
oprot.writeFieldEnd()
if self.ttl_secs is not None:
oprot.writeFieldBegin('ttl_secs', TType.LIST, 5)
oprot.writeListBegin(TType.LIST, len(self.ttl_secs))
for iter333 in self.ttl_secs:
oprot.writeListBegin(TType.I32, len(iter333))
for iter334 in iter333:
oprot.writeI32(iter334)
oprot.writeListEnd()
oprot.writeListEnd()
oprot.writeFieldEnd()
if self.index is not None:
oprot.writeFieldBegin('index', TType.LIST, 6)
oprot.writeListBegin(TType.I32, len(self.index))
for iter335 in self.index:
oprot.writeI32(iter335)
oprot.writeListEnd()
oprot.writeFieldEnd()
if self.need_routing is not None:
oprot.writeFieldBegin('need_routing', TType.BOOL, 7)
oprot.writeBool(self.need_routing)
oprot.writeFieldEnd()
oprot.writeFieldStop()
oprot.writeStructEnd()
def validate(self):
if self.keys is None:
raise TProtocolException(message='Required field keys is unset!')
if self.members is None:
raise TProtocolException(message='Required field members is unset!')
if self.values is None:
raise TProtocolException(message='Required field values is unset!')
return
def __repr__(self):
L = ['%s=%r' % (key, value)
for key, value in self.__dict__.items()]
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
def __eq__(self, other):
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
def __ne__(self, other):
return not (self == other)
class MultiHashSetResponse(object):
"""
Attributes:
- responses
- sub_request_indices
"""
def __init__(self, responses=None, sub_request_indices=None,):
self.responses = responses
self.sub_request_indices = sub_request_indices
def read(self, iprot):
if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
return
iprot.readStructBegin()
while True:
(fname, ftype, fid) = iprot.readFieldBegin()
if ftype == TType.STOP:
break
if fid == 1:
if ftype == TType.LIST:
self.responses = []
(_etype339, _size336) = iprot.readListBegin()
for _i340 in range(_size336):
_elem341 = HashSetResponse()
_elem341.read(iprot)
self.responses.append(_elem341)
iprot.readListEnd()
else:
iprot.skip(ftype)
elif fid == 2:
if ftype == TType.LIST:
self.sub_request_indices = []
(_etype345, _size342) = iprot.readListBegin()
for _i346 in range(_size342):
_elem347 = iprot.readI32()
self.sub_request_indices.append(_elem347)
iprot.readListEnd()
else:
iprot.skip(ftype)
else:
iprot.skip(ftype)
iprot.readFieldEnd()
iprot.readStructEnd()
def write(self, oprot):
if oprot._fast_encode is not None and self.thrift_spec is not None:
oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
return
oprot.writeStructBegin('MultiHashSetResponse')
if self.responses is not None:
oprot.writeFieldBegin('responses', TType.LIST, 1)
oprot.writeListBegin(TType.STRUCT, len(self.responses))
for iter348 in self.responses:
iter348.write(oprot)
oprot.writeListEnd()
oprot.writeFieldEnd()
if self.sub_request_indices is not None:
oprot.writeFieldBegin('sub_request_indices', TType.LIST, 2)
oprot.writeListBegin(TType.I32, len(self.sub_request_indices))
for iter349 in self.sub_request_indices:
oprot.writeI32(iter349)
oprot.writeListEnd()
oprot.writeFieldEnd()
oprot.writeFieldStop()
oprot.writeStructEnd()
def validate(self):
if self.responses is None:
raise TProtocolException(message='Required field responses is unset!')
return
def __repr__(self):
L = ['%s=%r' % (key, value)
for key, value in self.__dict__.items()]
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
def __eq__(self, other):
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
def __ne__(self, other):
return not (self == other)
class HashRemRequest(object):
"""
Attributes:
- segment
- key
- type
- members
- need_routing
"""
def __init__(self, segment="default", key=None, type=0, members=None, need_routing=True,):
self.segment = segment
self.key = key
self.type = type
self.members = members
self.need_routing = need_routing
def read(self, iprot):
if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
return
iprot.readStructBegin()
while True:
(fname, ftype, fid) = iprot.readFieldBegin()
if ftype == TType.STOP:
break
if fid == 1:
if ftype == TType.STRING:
self.segment = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
else:
iprot.skip(ftype)
elif fid == 2:
if ftype == TType.STRING:
self.key = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
else:
iprot.skip(ftype)
elif fid == 3:
if ftype == TType.I32:
self.type = iprot.readI32()
else:
iprot.skip(ftype)
elif fid == 4:
if ftype == TType.LIST:
self.members = []
(_etype353, _size350) = iprot.readListBegin()
for _i354 in range(_size350):
_elem355 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
self.members.append(_elem355)
iprot.readListEnd()
else:
iprot.skip(ftype)
elif fid == 5:
if ftype == TType.BOOL:
self.need_routing = iprot.readBool()
else:
iprot.skip(ftype)
else:
iprot.skip(ftype)
iprot.readFieldEnd()
iprot.readStructEnd()
def write(self, oprot):
if oprot._fast_encode is not None and self.thrift_spec is not None:
oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
return
oprot.writeStructBegin('HashRemRequest')
if self.segment is not None:
oprot.writeFieldBegin('segment', TType.STRING, 1)
oprot.writeString(self.segment.encode('utf-8') if sys.version_info[0] == 2 else self.segment)
oprot.writeFieldEnd()
if self.key is not None:
oprot.writeFieldBegin('key', TType.STRING, 2)
oprot.writeString(self.key.encode('utf-8') if sys.version_info[0] == 2 else self.key)
oprot.writeFieldEnd()
if self.type is not None:
oprot.writeFieldBegin('type', TType.I32, 3)
oprot.writeI32(self.type)
oprot.writeFieldEnd()
if self.members is not None:
oprot.writeFieldBegin('members', TType.LIST, 4)
oprot.writeListBegin(TType.STRING, len(self.members))
for iter356 in self.members:
oprot.writeString(iter356.encode('utf-8') if sys.version_info[0] == 2 else iter356)
oprot.writeListEnd()
oprot.writeFieldEnd()
if self.need_routing is not None:
oprot.writeFieldBegin('need_routing', TType.BOOL, 5)
oprot.writeBool(self.need_routing)
oprot.writeFieldEnd()
oprot.writeFieldStop()
oprot.writeStructEnd()
def validate(self):
if self.key is None:
raise TProtocolException(message='Required field key is unset!')
if self.type is None:
raise TProtocolException(message='Required field type is unset!')
return
def __repr__(self):
L = ['%s=%r' % (key, value)
for key, value in self.__dict__.items()]
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
def __eq__(self, other):
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
def __ne__(self, other):
return not (self == other)
class HashRemResponse(object):
"""
Attributes:
- error
"""
def __init__(self, error=None,):
self.error = error
def read(self, iprot):
if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
return
iprot.readStructBegin()
while True:
(fname, ftype, fid) = iprot.readFieldBegin()
if ftype == TType.STOP:
break
if fid == 1:
if ftype == TType.STRUCT:
self.error = SharestoreException()
self.error.read(iprot)
else:
iprot.skip(ftype)
else:
iprot.skip(ftype)
iprot.readFieldEnd()
iprot.readStructEnd()
def write(self, oprot):
if oprot._fast_encode is not None and self.thrift_spec is not None:
oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
return
oprot.writeStructBegin('HashRemResponse')
if self.error is not None:
oprot.writeFieldBegin('error', TType.STRUCT, 1)
self.error.write(oprot)
oprot.writeFieldEnd()
oprot.writeFieldStop()
oprot.writeStructEnd()
def validate(self):
return
def __repr__(self):
L = ['%s=%r' % (key, value)
for key, value in self.__dict__.items()]
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
def __eq__(self, other):
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
def __ne__(self, other):
return not (self == other)
class MultiHashRemRequest(object):
"""
Attributes:
- segment
- keys
- types
- members
- index
- need_routing
"""
def __init__(self, segment="default", keys=None, types=[
], members=None, index=None, need_routing=True,):
self.segment = segment
self.keys = keys
if types is self.thrift_spec[3][4]:
types = [
]
self.types = types
self.members = members
self.index = index
self.need_routing = need_routing
def read(self, iprot):
if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
return
iprot.readStructBegin()
while True:
(fname, ftype, fid) = iprot.readFieldBegin()
if ftype == TType.STOP:
break
if fid == 1:
if ftype == TType.STRING:
self.segment = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
else:
iprot.skip(ftype)
elif fid == 2:
if ftype == TType.LIST:
self.keys = []
(_etype360, _size357) = iprot.readListBegin()
for _i361 in range(_size357):
_elem362 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
self.keys.append(_elem362)
iprot.readListEnd()
else:
iprot.skip(ftype)
elif fid == 3:
if ftype == TType.LIST:
self.types = []
(_etype366, _size363) = iprot.readListBegin()
for _i367 in range(_size363):
_elem368 = iprot.readI32()
self.types.append(_elem368)
iprot.readListEnd()
else:
iprot.skip(ftype)
elif fid == 4:
if ftype == TType.LIST:
self.members = []
(_etype372, _size369) = iprot.readListBegin()
for _i373 in range(_size369):
_elem374 = []
(_etype378, _size375) = iprot.readListBegin()
for _i379 in range(_size375):
_elem380 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
_elem374.append(_elem380)
iprot.readListEnd()
self.members.append(_elem374)
iprot.readListEnd()
else:
iprot.skip(ftype)
elif fid == 5:
if ftype == TType.LIST:
self.index = []
(_etype384, _size381) = iprot.readListBegin()
for _i385 in range(_size381):
_elem386 = iprot.readI32()
self.index.append(_elem386)
iprot.readListEnd()
else:
iprot.skip(ftype)
elif fid == 6:
if ftype == TType.BOOL:
self.need_routing = iprot.readBool()
else:
iprot.skip(ftype)
else:
iprot.skip(ftype)
iprot.readFieldEnd()
iprot.readStructEnd()
def write(self, oprot):
if oprot._fast_encode is not None and self.thrift_spec is not None:
oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
return
oprot.writeStructBegin('MultiHashRemRequest')
if self.segment is not None:
oprot.writeFieldBegin('segment', TType.STRING, 1)
oprot.writeString(self.segment.encode('utf-8') if sys.version_info[0] == 2 else self.segment)
oprot.writeFieldEnd()
if self.keys is not None:
oprot.writeFieldBegin('keys', TType.LIST, 2)
oprot.writeListBegin(TType.STRING, len(self.keys))
for iter387 in self.keys:
oprot.writeString(iter387.encode('utf-8') if sys.version_info[0] == 2 else iter387)
oprot.writeListEnd()
oprot.writeFieldEnd()
if self.types is not None:
oprot.writeFieldBegin('types', TType.LIST, 3)
oprot.writeListBegin(TType.I32, len(self.types))
for iter388 in self.types:
oprot.writeI32(iter388)
oprot.writeListEnd()
oprot.writeFieldEnd()
if self.members is not None:
oprot.writeFieldBegin('members', TType.LIST, 4)
oprot.writeListBegin(TType.LIST, len(self.members))
for iter389 in self.members:
oprot.writeListBegin(TType.STRING, len(iter389))
for iter390 in iter389:
oprot.writeString(iter390.encode('utf-8') if sys.version_info[0] == 2 else iter390)
oprot.writeListEnd()
oprot.writeListEnd()
oprot.writeFieldEnd()
if self.index is not None:
oprot.writeFieldBegin('index', TType.LIST, 5)
oprot.writeListBegin(TType.I32, len(self.index))
for iter391 in self.index:
oprot.writeI32(iter391)
oprot.writeListEnd()
oprot.writeFieldEnd()
if self.need_routing is not None:
oprot.writeFieldBegin('need_routing', TType.BOOL, 6)
oprot.writeBool(self.need_routing)
oprot.writeFieldEnd()
oprot.writeFieldStop()
oprot.writeStructEnd()
def validate(self):
if self.keys is None:
raise TProtocolException(message='Required field keys is unset!')
return
def __repr__(self):
L = ['%s=%r' % (key, value)
for key, value in self.__dict__.items()]
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
def __eq__(self, other):
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
def __ne__(self, other):
return not (self == other)
class MultiHashRemResponse(object):
"""
Attributes:
- responses
- sub_request_indices
"""
def __init__(self, responses=None, sub_request_indices=None,):
self.responses = responses
self.sub_request_indices = sub_request_indices
def read(self, iprot):
if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
return
iprot.readStructBegin()
while True:
(fname, ftype, fid) = iprot.readFieldBegin()
if ftype == TType.STOP:
break
if fid == 1:
if ftype == TType.LIST:
self.responses = []
(_etype395, _size392) = iprot.readListBegin()
for _i396 in range(_size392):
_elem397 = HashRemResponse()
_elem397.read(iprot)
self.responses.append(_elem397)
iprot.readListEnd()
else:
iprot.skip(ftype)
elif fid == 2:
if ftype == TType.LIST:
self.sub_request_indices = []
(_etype401, _size398) = iprot.readListBegin()
for _i402 in range(_size398):
_elem403 = iprot.readI32()
self.sub_request_indices.append(_elem403)
iprot.readListEnd()
else:
iprot.skip(ftype)
else:
iprot.skip(ftype)
iprot.readFieldEnd()
iprot.readStructEnd()
def write(self, oprot):
if oprot._fast_encode is not None and self.thrift_spec is not None:
oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
return
oprot.writeStructBegin('MultiHashRemResponse')
if self.responses is not None:
oprot.writeFieldBegin('responses', TType.LIST, 1)
oprot.writeListBegin(TType.STRUCT, len(self.responses))
for iter404 in self.responses:
iter404.write(oprot)
oprot.writeListEnd()
oprot.writeFieldEnd()
if self.sub_request_indices is not None:
oprot.writeFieldBegin('sub_request_indices', TType.LIST, 2)
oprot.writeListBegin(TType.I32, len(self.sub_request_indices))
for iter405 in self.sub_request_indices:
oprot.writeI32(iter405)
oprot.writeListEnd()
oprot.writeFieldEnd()
oprot.writeFieldStop()
oprot.writeStructEnd()
def validate(self):
if self.responses is None:
raise TProtocolException(message='Required field responses is unset!')
return
def __repr__(self):
L = ['%s=%r' % (key, value)
for key, value in self.__dict__.items()]
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
def __eq__(self, other):
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
def __ne__(self, other):
return not (self == other)
class HashGetRequest(object):
"""
Attributes:
- segment
- key
- type
- members
- need_routing
- max_nums
"""
def __init__(self, segment="default", key=None, type=0, members=None, need_routing=True, max_nums=5000,):
self.segment = segment
self.key = key
self.type = type
self.members = members
self.need_routing = need_routing
self.max_nums = max_nums
def read(self, iprot):
if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
return
iprot.readStructBegin()
while True:
(fname, ftype, fid) = iprot.readFieldBegin()
if ftype == TType.STOP:
break
if fid == 1:
if ftype == TType.STRING:
self.segment = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
else:
iprot.skip(ftype)
elif fid == 2:
if ftype == TType.STRING:
self.key = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
else:
iprot.skip(ftype)
elif fid == 3:
if ftype == TType.I32:
self.type = iprot.readI32()
else:
iprot.skip(ftype)
elif fid == 4:
if ftype == TType.LIST:
self.members = []
(_etype409, _size406) = iprot.readListBegin()
for _i410 in range(_size406):
_elem411 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
self.members.append(_elem411)
iprot.readListEnd()
else:
iprot.skip(ftype)
elif fid == 5:
if ftype == TType.BOOL:
self.need_routing = iprot.readBool()
else:
iprot.skip(ftype)
elif fid == 6:
if ftype == TType.I32:
self.max_nums = iprot.readI32()
else:
iprot.skip(ftype)
else:
iprot.skip(ftype)
iprot.readFieldEnd()
iprot.readStructEnd()
def write(self, oprot):
if oprot._fast_encode is not None and self.thrift_spec is not None:
oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
return
oprot.writeStructBegin('HashGetRequest')
if self.segment is not None:
oprot.writeFieldBegin('segment', TType.STRING, 1)
oprot.writeString(self.segment.encode('utf-8') if sys.version_info[0] == 2 else self.segment)
oprot.writeFieldEnd()
if self.key is not None:
oprot.writeFieldBegin('key', TType.STRING, 2)
oprot.writeString(self.key.encode('utf-8') if sys.version_info[0] == 2 else self.key)
oprot.writeFieldEnd()
if self.type is not None:
oprot.writeFieldBegin('type', TType.I32, 3)
oprot.writeI32(self.type)
oprot.writeFieldEnd()
if self.members is not None:
oprot.writeFieldBegin('members', TType.LIST, 4)
oprot.writeListBegin(TType.STRING, len(self.members))
for iter412 in self.members:
oprot.writeString(iter412.encode('utf-8') if sys.version_info[0] == 2 else iter412)
oprot.writeListEnd()
oprot.writeFieldEnd()
if self.need_routing is not None:
oprot.writeFieldBegin('need_routing', TType.BOOL, 5)
oprot.writeBool(self.need_routing)
oprot.writeFieldEnd()
if self.max_nums is not None:
oprot.writeFieldBegin('max_nums', TType.I32, 6)
oprot.writeI32(self.max_nums)
oprot.writeFieldEnd()
oprot.writeFieldStop()
oprot.writeStructEnd()
def validate(self):
if self.key is None:
raise TProtocolException(message='Required field key is unset!')
if self.type is None:
raise TProtocolException(message='Required field type is unset!')
return
def __repr__(self):
L = ['%s=%r' % (key, value)
for key, value in self.__dict__.items()]
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
def __eq__(self, other):
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
def __ne__(self, other):
return not (self == other)
class HashGetResponse(object):
"""
Attributes:
- members
- values
- error
"""
def __init__(self, members=None, values=None, error=None,):
self.members = members
self.values = values
self.error = error
def read(self, iprot):
if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
return
iprot.readStructBegin()
while True:
(fname, ftype, fid) = iprot.readFieldBegin()
if ftype == TType.STOP:
break
if fid == 1:
if ftype == TType.LIST:
self.members = []
(_etype416, _size413) = iprot.readListBegin()
for _i417 in range(_size413):
_elem418 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
self.members.append(_elem418)
iprot.readListEnd()
else:
iprot.skip(ftype)
elif fid == 2:
if ftype == TType.LIST:
self.values = []
(_etype422, _size419) = iprot.readListBegin()
for _i423 in range(_size419):
_elem424 = HashValue()
_elem424.read(iprot)
self.values.append(_elem424)
iprot.readListEnd()
else:
iprot.skip(ftype)
elif fid == 3:
if ftype == TType.STRUCT:
self.error = SharestoreException()
self.error.read(iprot)
else:
iprot.skip(ftype)
else:
iprot.skip(ftype)
iprot.readFieldEnd()
iprot.readStructEnd()
def write(self, oprot):
if oprot._fast_encode is not None and self.thrift_spec is not None:
oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
return
oprot.writeStructBegin('HashGetResponse')
if self.members is not None:
oprot.writeFieldBegin('members', TType.LIST, 1)
oprot.writeListBegin(TType.STRING, len(self.members))
for iter425 in self.members:
oprot.writeString(iter425.encode('utf-8') if sys.version_info[0] == 2 else iter425)
oprot.writeListEnd()
oprot.writeFieldEnd()
if self.values is not None:
oprot.writeFieldBegin('values', TType.LIST, 2)
oprot.writeListBegin(TType.STRUCT, len(self.values))
for iter426 in self.values:
iter426.write(oprot)
oprot.writeListEnd()
oprot.writeFieldEnd()
if self.error is not None:
oprot.writeFieldBegin('error', TType.STRUCT, 3)
self.error.write(oprot)
oprot.writeFieldEnd()
oprot.writeFieldStop()
oprot.writeStructEnd()
def validate(self):
if self.members is None:
raise TProtocolException(message='Required field members is unset!')
if self.values is None:
raise TProtocolException(message='Required field values is unset!')
return
def __repr__(self):
L = ['%s=%r' % (key, value)
for key, value in self.__dict__.items()]
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
def __eq__(self, other):
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
def __ne__(self, other):
return not (self == other)
class MultiHashGetRequest(object):
"""
Attributes:
- segment
- keys
- types
- members
- max_nums
- index
- need_routing
"""
def __init__(self, segment="default", keys=None, types=[
], members=None, max_nums=5000, index=None, need_routing=True,):
self.segment = segment
self.keys = keys
if types is self.thrift_spec[3][4]:
types = [
]
self.types = types
self.members = members
self.max_nums = max_nums
self.index = index
self.need_routing = need_routing
def read(self, iprot):
if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
return
iprot.readStructBegin()
while True:
(fname, ftype, fid) = iprot.readFieldBegin()
if ftype == TType.STOP:
break
if fid == 1:
if ftype == TType.STRING:
self.segment = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
else:
iprot.skip(ftype)
elif fid == 2:
if ftype == TType.LIST:
self.keys = []
(_etype430, _size427) = iprot.readListBegin()
for _i431 in range(_size427):
_elem432 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
self.keys.append(_elem432)
iprot.readListEnd()
else:
iprot.skip(ftype)
elif fid == 3:
if ftype == TType.LIST:
self.types = []
(_etype436, _size433) = iprot.readListBegin()
for _i437 in range(_size433):
_elem438 = iprot.readI32()
self.types.append(_elem438)
iprot.readListEnd()
else:
iprot.skip(ftype)
elif fid == 4:
if ftype == TType.LIST:
self.members = []
(_etype442, _size439) = iprot.readListBegin()
for _i443 in range(_size439):
_elem444 = []
(_etype448, _size445) = iprot.readListBegin()
for _i449 in range(_size445):
_elem450 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
_elem444.append(_elem450)
iprot.readListEnd()
self.members.append(_elem444)
iprot.readListEnd()
else:
iprot.skip(ftype)
elif fid == 5:
if ftype == TType.I32:
self.max_nums = iprot.readI32()
else:
iprot.skip(ftype)
elif fid == 6:
if ftype == TType.LIST:
self.index = []
(_etype454, _size451) = iprot.readListBegin()
for _i455 in range(_size451):
_elem456 = iprot.readI32()
self.index.append(_elem456)
iprot.readListEnd()
else:
iprot.skip(ftype)
elif fid == 7:
if ftype == TType.BOOL:
self.need_routing = iprot.readBool()
else:
iprot.skip(ftype)
else:
iprot.skip(ftype)
iprot.readFieldEnd()
iprot.readStructEnd()
def write(self, oprot):
if oprot._fast_encode is not None and self.thrift_spec is not None:
oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
return
oprot.writeStructBegin('MultiHashGetRequest')
if self.segment is not None:
oprot.writeFieldBegin('segment', TType.STRING, 1)
oprot.writeString(self.segment.encode('utf-8') if sys.version_info[0] == 2 else self.segment)
oprot.writeFieldEnd()
if self.keys is not None:
oprot.writeFieldBegin('keys', TType.LIST, 2)
oprot.writeListBegin(TType.STRING, len(self.keys))
for iter457 in self.keys:
oprot.writeString(iter457.encode('utf-8') if sys.version_info[0] == 2 else iter457)
oprot.writeListEnd()
oprot.writeFieldEnd()
if self.types is not None:
oprot.writeFieldBegin('types', TType.LIST, 3)
oprot.writeListBegin(TType.I32, len(self.types))
for iter458 in self.types:
oprot.writeI32(iter458)
oprot.writeListEnd()
oprot.writeFieldEnd()
if self.members is not None:
oprot.writeFieldBegin('members', TType.LIST, 4)
oprot.writeListBegin(TType.LIST, len(self.members))
for iter459 in self.members:
oprot.writeListBegin(TType.STRING, len(iter459))
for iter460 in iter459:
oprot.writeString(iter460.encode('utf-8') if sys.version_info[0] == 2 else iter460)
oprot.writeListEnd()
oprot.writeListEnd()
oprot.writeFieldEnd()
if self.max_nums is not None:
oprot.writeFieldBegin('max_nums', TType.I32, 5)
oprot.writeI32(self.max_nums)
oprot.writeFieldEnd()
if self.index is not None:
oprot.writeFieldBegin('index', TType.LIST, 6)
oprot.writeListBegin(TType.I32, len(self.index))
for iter461 in self.index:
oprot.writeI32(iter461)
oprot.writeListEnd()
oprot.writeFieldEnd()
if self.need_routing is not None:
oprot.writeFieldBegin('need_routing', TType.BOOL, 7)
oprot.writeBool(self.need_routing)
oprot.writeFieldEnd()
oprot.writeFieldStop()
oprot.writeStructEnd()
def validate(self):
if self.keys is None:
raise TProtocolException(message='Required field keys is unset!')
if self.types is None:
raise TProtocolException(message='Required field types is unset!')
return
def __repr__(self):
L = ['%s=%r' % (key, value)
for key, value in self.__dict__.items()]
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
def __eq__(self, other):
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
def __ne__(self, other):
return not (self == other)
class MultiHashGetResponse(object):
"""
Attributes:
- responses
- sub_request_indices
"""
def __init__(self, responses=None, sub_request_indices=None,):
self.responses = responses
self.sub_request_indices = sub_request_indices
def read(self, iprot):
if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
return
iprot.readStructBegin()
while True:
(fname, ftype, fid) = iprot.readFieldBegin()
if ftype == TType.STOP:
break
if fid == 1:
if ftype == TType.LIST:
self.responses = []
(_etype465, _size462) = iprot.readListBegin()
for _i466 in range(_size462):
_elem467 = HashGetResponse()
_elem467.read(iprot)
self.responses.append(_elem467)
iprot.readListEnd()
else:
iprot.skip(ftype)
elif fid == 2:
if ftype == TType.LIST:
self.sub_request_indices = []
(_etype471, _size468) = iprot.readListBegin()
for _i472 in range(_size468):
_elem473 = iprot.readI32()
self.sub_request_indices.append(_elem473)
iprot.readListEnd()
else:
iprot.skip(ftype)
else:
iprot.skip(ftype)
iprot.readFieldEnd()
iprot.readStructEnd()
def write(self, oprot):
if oprot._fast_encode is not None and self.thrift_spec is not None:
oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
return
oprot.writeStructBegin('MultiHashGetResponse')
if self.responses is not None:
oprot.writeFieldBegin('responses', TType.LIST, 1)
oprot.writeListBegin(TType.STRUCT, len(self.responses))
for iter474 in self.responses:
iter474.write(oprot)
oprot.writeListEnd()
oprot.writeFieldEnd()
if self.sub_request_indices is not None:
oprot.writeFieldBegin('sub_request_indices', TType.LIST, 2)
oprot.writeListBegin(TType.I32, len(self.sub_request_indices))
for iter475 in self.sub_request_indices:
oprot.writeI32(iter475)
oprot.writeListEnd()
oprot.writeFieldEnd()
oprot.writeFieldStop()
oprot.writeStructEnd()
def validate(self):
if self.responses is None:
raise TProtocolException(message='Required field responses is unset!')
return
def __repr__(self):
L = ['%s=%r' % (key, value)
for key, value in self.__dict__.items()]
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
def __eq__(self, other):
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
def __ne__(self, other):
return not (self == other)
class HashIncrRequest(object):
"""
Attributes:
- segment
- key
- members
- values
- need_routing
"""
def __init__(self, segment="default", key=None, members=None, values=None, need_routing=True,):
self.segment = segment
self.key = key
self.members = members
self.values = values
self.need_routing = need_routing
def read(self, iprot):
if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
return
iprot.readStructBegin()
while True:
(fname, ftype, fid) = iprot.readFieldBegin()
if ftype == TType.STOP:
break
if fid == 1:
if ftype == TType.STRING:
self.segment = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
else:
iprot.skip(ftype)
elif fid == 2:
if ftype == TType.STRING:
self.key = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
else:
iprot.skip(ftype)
elif fid == 3:
if ftype == TType.LIST:
self.members = []
(_etype479, _size476) = iprot.readListBegin()
for _i480 in range(_size476):
_elem481 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
self.members.append(_elem481)
iprot.readListEnd()
else:
iprot.skip(ftype)
elif fid == 4:
if ftype == TType.LIST:
self.values = []
(_etype485, _size482) = iprot.readListBegin()
for _i486 in range(_size482):
_elem487 = iprot.readI64()
self.values.append(_elem487)
iprot.readListEnd()
else:
iprot.skip(ftype)
elif fid == 5:
if ftype == TType.BOOL:
self.need_routing = iprot.readBool()
else:
iprot.skip(ftype)
else:
iprot.skip(ftype)
iprot.readFieldEnd()
iprot.readStructEnd()
def write(self, oprot):
if oprot._fast_encode is not None and self.thrift_spec is not None:
oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
return
oprot.writeStructBegin('HashIncrRequest')
if self.segment is not None:
oprot.writeFieldBegin('segment', TType.STRING, 1)
oprot.writeString(self.segment.encode('utf-8') if sys.version_info[0] == 2 else self.segment)
oprot.writeFieldEnd()
if self.key is not None:
oprot.writeFieldBegin('key', TType.STRING, 2)
oprot.writeString(self.key.encode('utf-8') if sys.version_info[0] == 2 else self.key)
oprot.writeFieldEnd()
if self.members is not None:
oprot.writeFieldBegin('members', TType.LIST, 3)
oprot.writeListBegin(TType.STRING, len(self.members))
for iter488 in self.members:
oprot.writeString(iter488.encode('utf-8') if sys.version_info[0] == 2 else iter488)
oprot.writeListEnd()
oprot.writeFieldEnd()
if self.values is not None:
oprot.writeFieldBegin('values', TType.LIST, 4)
oprot.writeListBegin(TType.I64, len(self.values))
for iter489 in self.values:
oprot.writeI64(iter489)
oprot.writeListEnd()
oprot.writeFieldEnd()
if self.need_routing is not None:
oprot.writeFieldBegin('need_routing', TType.BOOL, 5)
oprot.writeBool(self.need_routing)
oprot.writeFieldEnd()
oprot.writeFieldStop()
oprot.writeStructEnd()
def validate(self):
if self.key is None:
raise TProtocolException(message='Required field key is unset!')
if self.members is None:
raise TProtocolException(message='Required field members is unset!')
if self.values is None:
raise TProtocolException(message='Required field values is unset!')
return
def __repr__(self):
L = ['%s=%r' % (key, value)
for key, value in self.__dict__.items()]
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
def __eq__(self, other):
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
def __ne__(self, other):
return not (self == other)
class HashIncrResponse(object):
"""
Attributes:
- error
"""
def __init__(self, error=None,):
self.error = error
def read(self, iprot):
if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
return
iprot.readStructBegin()
while True:
(fname, ftype, fid) = iprot.readFieldBegin()
if ftype == TType.STOP:
break
if fid == 1:
if ftype == TType.STRUCT:
self.error = SharestoreException()
self.error.read(iprot)
else:
iprot.skip(ftype)
else:
iprot.skip(ftype)
iprot.readFieldEnd()
iprot.readStructEnd()
def write(self, oprot):
if oprot._fast_encode is not None and self.thrift_spec is not None:
oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
return
oprot.writeStructBegin('HashIncrResponse')
if self.error is not None:
oprot.writeFieldBegin('error', TType.STRUCT, 1)
self.error.write(oprot)
oprot.writeFieldEnd()
oprot.writeFieldStop()
oprot.writeStructEnd()
def validate(self):
return
def __repr__(self):
L = ['%s=%r' % (key, value)
for key, value in self.__dict__.items()]
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
def __eq__(self, other):
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
def __ne__(self, other):
return not (self == other)
class HashCountRequest(object):
"""
Attributes:
- segment
- key
- type
- need_routing
- max_nums
"""
def __init__(self, segment="default", key=None, type=0, need_routing=True, max_nums=5000,):
self.segment = segment
self.key = key
self.type = type
self.need_routing = need_routing
self.max_nums = max_nums
def read(self, iprot):
if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
return
iprot.readStructBegin()
while True:
(fname, ftype, fid) = iprot.readFieldBegin()
if ftype == TType.STOP:
break
if fid == 1:
if ftype == TType.STRING:
self.segment = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
else:
iprot.skip(ftype)
elif fid == 2:
if ftype == TType.STRING:
self.key = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
else:
iprot.skip(ftype)
elif fid == 3:
if ftype == TType.I32:
self.type = iprot.readI32()
else:
iprot.skip(ftype)
elif fid == 4:
if ftype == TType.BOOL:
self.need_routing = iprot.readBool()
else:
iprot.skip(ftype)
elif fid == 5:
if ftype == TType.I32:
self.max_nums = iprot.readI32()
else:
iprot.skip(ftype)
else:
iprot.skip(ftype)
iprot.readFieldEnd()
iprot.readStructEnd()
def write(self, oprot):
if oprot._fast_encode is not None and self.thrift_spec is not None:
oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
return
oprot.writeStructBegin('HashCountRequest')
if self.segment is not None:
oprot.writeFieldBegin('segment', TType.STRING, 1)
oprot.writeString(self.segment.encode('utf-8') if sys.version_info[0] == 2 else self.segment)
oprot.writeFieldEnd()
if self.key is not None:
oprot.writeFieldBegin('key', TType.STRING, 2)
oprot.writeString(self.key.encode('utf-8') if sys.version_info[0] == 2 else self.key)
oprot.writeFieldEnd()
if self.type is not None:
oprot.writeFieldBegin('type', TType.I32, 3)
oprot.writeI32(self.type)
oprot.writeFieldEnd()
if self.need_routing is not None:
oprot.writeFieldBegin('need_routing', TType.BOOL, 4)
oprot.writeBool(self.need_routing)
oprot.writeFieldEnd()
if self.max_nums is not None:
oprot.writeFieldBegin('max_nums', TType.I32, 5)
oprot.writeI32(self.max_nums)
oprot.writeFieldEnd()
oprot.writeFieldStop()
oprot.writeStructEnd()
def validate(self):
if self.key is None:
raise TProtocolException(message='Required field key is unset!')
if self.type is None:
raise TProtocolException(message='Required field type is unset!')
return
def __repr__(self):
L = ['%s=%r' % (key, value)
for key, value in self.__dict__.items()]
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
def __eq__(self, other):
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
def __ne__(self, other):
return not (self == other)
class HashCountResponse(object):
"""
Attributes:
- count
- error
"""
def __init__(self, count=0, error=None,):
self.count = count
self.error = error
def read(self, iprot):
if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
return
iprot.readStructBegin()
while True:
(fname, ftype, fid) = iprot.readFieldBegin()
if ftype == TType.STOP:
break
if fid == 1:
if ftype == TType.I32:
self.count = iprot.readI32()
else:
iprot.skip(ftype)
elif fid == 2:
if ftype == TType.STRUCT:
self.error = SharestoreException()
self.error.read(iprot)
else:
iprot.skip(ftype)
else:
iprot.skip(ftype)
iprot.readFieldEnd()
iprot.readStructEnd()
def write(self, oprot):
if oprot._fast_encode is not None and self.thrift_spec is not None:
oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
return
oprot.writeStructBegin('HashCountResponse')
if self.count is not None:
oprot.writeFieldBegin('count', TType.I32, 1)
oprot.writeI32(self.count)
oprot.writeFieldEnd()
if self.error is not None:
oprot.writeFieldBegin('error', TType.STRUCT, 2)
self.error.write(oprot)
oprot.writeFieldEnd()
oprot.writeFieldStop()
oprot.writeStructEnd()
def validate(self):
if self.count is None:
raise TProtocolException(message='Required field count is unset!')
return
def __repr__(self):
L = ['%s=%r' % (key, value)
for key, value in self.__dict__.items()]
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
def __eq__(self, other):
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
def __ne__(self, other):
return not (self == other)
class HashExSetRequest(object):
"""
Attributes:
- segment
- key
- members
- values
- version
- ttl_secs
- need_routing
"""
def __init__(self, segment="default", key=None, members=None, values=None, version=0, ttl_secs=None, need_routing=True,):
self.segment = segment
self.key = key
self.members = members
self.values = values
self.version = version
self.ttl_secs = ttl_secs
self.need_routing = need_routing
def read(self, iprot):
if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
return
iprot.readStructBegin()
while True:
(fname, ftype, fid) = iprot.readFieldBegin()
if ftype == TType.STOP:
break
if fid == 1:
if ftype == TType.STRING:
self.segment = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
else:
iprot.skip(ftype)
elif fid == 2:
if ftype == TType.STRING:
self.key = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
else:
iprot.skip(ftype)
elif fid == 3:
if ftype == TType.LIST:
self.members = []
(_etype493, _size490) = iprot.readListBegin()
for _i494 in range(_size490):
_elem495 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
self.members.append(_elem495)
iprot.readListEnd()
else:
iprot.skip(ftype)
elif fid == 4:
if ftype == TType.LIST:
self.values = []
(_etype499, _size496) = iprot.readListBegin()
for _i500 in range(_size496):
_elem501 = HashValue()
_elem501.read(iprot)
self.values.append(_elem501)
iprot.readListEnd()
else:
iprot.skip(ftype)
elif fid == 5:
if ftype == TType.I64:
self.version = iprot.readI64()
else:
iprot.skip(ftype)
elif fid == 6:
if ftype == TType.LIST:
self.ttl_secs = []
(_etype505, _size502) = iprot.readListBegin()
for _i506 in range(_size502):
_elem507 = iprot.readI32()
self.ttl_secs.append(_elem507)
iprot.readListEnd()
else:
iprot.skip(ftype)
elif fid == 7:
if ftype == TType.BOOL:
self.need_routing = iprot.readBool()
else:
iprot.skip(ftype)
else:
iprot.skip(ftype)
iprot.readFieldEnd()
iprot.readStructEnd()
def write(self, oprot):
if oprot._fast_encode is not None and self.thrift_spec is not None:
oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
return
oprot.writeStructBegin('HashExSetRequest')
if self.segment is not None:
oprot.writeFieldBegin('segment', TType.STRING, 1)
oprot.writeString(self.segment.encode('utf-8') if sys.version_info[0] == 2 else self.segment)
oprot.writeFieldEnd()
if self.key is not None:
oprot.writeFieldBegin('key', TType.STRING, 2)
oprot.writeString(self.key.encode('utf-8') if sys.version_info[0] == 2 else self.key)
oprot.writeFieldEnd()
if self.members is not None:
oprot.writeFieldBegin('members', TType.LIST, 3)
oprot.writeListBegin(TType.STRING, len(self.members))
for iter508 in self.members:
oprot.writeString(iter508.encode('utf-8') if sys.version_info[0] == 2 else iter508)
oprot.writeListEnd()
oprot.writeFieldEnd()
if self.values is not None:
oprot.writeFieldBegin('values', TType.LIST, 4)
oprot.writeListBegin(TType.STRUCT, len(self.values))
for iter509 in self.values:
iter509.write(oprot)
oprot.writeListEnd()
oprot.writeFieldEnd()
if self.version is not None:
oprot.writeFieldBegin('version', TType.I64, 5)
oprot.writeI64(self.version)
oprot.writeFieldEnd()
if self.ttl_secs is not None:
oprot.writeFieldBegin('ttl_secs', TType.LIST, 6)
oprot.writeListBegin(TType.I32, len(self.ttl_secs))
for iter510 in self.ttl_secs:
oprot.writeI32(iter510)
oprot.writeListEnd()
oprot.writeFieldEnd()
if self.need_routing is not None:
oprot.writeFieldBegin('need_routing', TType.BOOL, 7)
oprot.writeBool(self.need_routing)
oprot.writeFieldEnd()
oprot.writeFieldStop()
oprot.writeStructEnd()
def validate(self):
if self.key is None:
raise TProtocolException(message='Required field key is unset!')
if self.members is None:
raise TProtocolException(message='Required field members is unset!')
if self.values is None:
raise TProtocolException(message='Required field values is unset!')
if self.version is None:
raise TProtocolException(message='Required field version is unset!')
return
def __repr__(self):
L = ['%s=%r' % (key, value)
for key, value in self.__dict__.items()]
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
def __eq__(self, other):
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
def __ne__(self, other):
return not (self == other)
class HashExSetResponse(object):
"""
Attributes:
- version
- error
"""
def __init__(self, version=None, error=None,):
self.version = version
self.error = error
def read(self, iprot):
if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
return
iprot.readStructBegin()
while True:
(fname, ftype, fid) = iprot.readFieldBegin()
if ftype == TType.STOP:
break
if fid == 1:
if ftype == TType.I64:
self.version = iprot.readI64()
else:
iprot.skip(ftype)
elif fid == 2:
if ftype == TType.STRUCT:
self.error = SharestoreException()
self.error.read(iprot)
else:
iprot.skip(ftype)
else:
iprot.skip(ftype)
iprot.readFieldEnd()
iprot.readStructEnd()
def write(self, oprot):
if oprot._fast_encode is not None and self.thrift_spec is not None:
oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
return
oprot.writeStructBegin('HashExSetResponse')
if self.version is not None:
oprot.writeFieldBegin('version', TType.I64, 1)
oprot.writeI64(self.version)
oprot.writeFieldEnd()
if self.error is not None:
oprot.writeFieldBegin('error', TType.STRUCT, 2)
self.error.write(oprot)
oprot.writeFieldEnd()
oprot.writeFieldStop()
oprot.writeStructEnd()
def validate(self):
if self.version is None:
raise TProtocolException(message='Required field version is unset!')
return
def __repr__(self):
L = ['%s=%r' % (key, value)
for key, value in self.__dict__.items()]
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
def __eq__(self, other):
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
def __ne__(self, other):
return not (self == other)
class HashExRemRequest(object):
"""
Attributes:
- segment
- key
- type
- version
- members
- need_routing
"""
def __init__(self, segment="default", key=None, type=0, version=0, members=None, need_routing=True,):
self.segment = segment
self.key = key
self.type = type
self.version = version
self.members = members
self.need_routing = need_routing
def read(self, iprot):
if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
return
iprot.readStructBegin()
while True:
(fname, ftype, fid) = iprot.readFieldBegin()
if ftype == TType.STOP:
break
if fid == 1:
if ftype == TType.STRING:
self.segment = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
else:
iprot.skip(ftype)
elif fid == 2:
if ftype == TType.STRING:
self.key = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
else:
iprot.skip(ftype)
elif fid == 3:
if ftype == TType.I32:
self.type = iprot.readI32()
else:
iprot.skip(ftype)
elif fid == 4:
if ftype == TType.I64:
self.version = iprot.readI64()
else:
iprot.skip(ftype)
elif fid == 5:
if ftype == TType.LIST:
self.members = []
(_etype514, _size511) = iprot.readListBegin()
for _i515 in range(_size511):
_elem516 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
self.members.append(_elem516)
iprot.readListEnd()
else:
iprot.skip(ftype)
elif fid == 6:
if ftype == TType.BOOL:
self.need_routing = iprot.readBool()
else:
iprot.skip(ftype)
else:
iprot.skip(ftype)
iprot.readFieldEnd()
iprot.readStructEnd()
def write(self, oprot):
if oprot._fast_encode is not None and self.thrift_spec is not None:
oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
return
oprot.writeStructBegin('HashExRemRequest')
if self.segment is not None:
oprot.writeFieldBegin('segment', TType.STRING, 1)
oprot.writeString(self.segment.encode('utf-8') if sys.version_info[0] == 2 else self.segment)
oprot.writeFieldEnd()
if self.key is not None:
oprot.writeFieldBegin('key', TType.STRING, 2)
oprot.writeString(self.key.encode('utf-8') if sys.version_info[0] == 2 else self.key)
oprot.writeFieldEnd()
if self.type is not None:
oprot.writeFieldBegin('type', TType.I32, 3)
oprot.writeI32(self.type)
oprot.writeFieldEnd()
if self.version is not None:
oprot.writeFieldBegin('version', TType.I64, 4)
oprot.writeI64(self.version)
oprot.writeFieldEnd()
if self.members is not None:
oprot.writeFieldBegin('members', TType.LIST, 5)
oprot.writeListBegin(TType.STRING, len(self.members))
for iter517 in self.members:
oprot.writeString(iter517.encode('utf-8') if sys.version_info[0] == 2 else iter517)
oprot.writeListEnd()
oprot.writeFieldEnd()
if self.need_routing is not None:
oprot.writeFieldBegin('need_routing', TType.BOOL, 6)
oprot.writeBool(self.need_routing)
oprot.writeFieldEnd()
oprot.writeFieldStop()
oprot.writeStructEnd()
def validate(self):
if self.key is None:
raise TProtocolException(message='Required field key is unset!')
if self.type is None:
raise TProtocolException(message='Required field type is unset!')
if self.version is None:
raise TProtocolException(message='Required field version is unset!')
return
def __repr__(self):
L = ['%s=%r' % (key, value)
for key, value in self.__dict__.items()]
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
def __eq__(self, other):
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
def __ne__(self, other):
return not (self == other)
class HashExRemResponse(object):
"""
Attributes:
- version
- error
"""
def __init__(self, version=0, error=None,):
self.version = version
self.error = error
def read(self, iprot):
if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
return
iprot.readStructBegin()
while True:
(fname, ftype, fid) = iprot.readFieldBegin()
if ftype == TType.STOP:
break
if fid == 1:
if ftype == TType.I64:
self.version = iprot.readI64()
else:
iprot.skip(ftype)
elif fid == 2:
if ftype == TType.STRUCT:
self.error = SharestoreException()
self.error.read(iprot)
else:
iprot.skip(ftype)
else:
iprot.skip(ftype)
iprot.readFieldEnd()
iprot.readStructEnd()
def write(self, oprot):
if oprot._fast_encode is not None and self.thrift_spec is not None:
oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
return
oprot.writeStructBegin('HashExRemResponse')
if self.version is not None:
oprot.writeFieldBegin('version', TType.I64, 1)
oprot.writeI64(self.version)
oprot.writeFieldEnd()
if self.error is not None:
oprot.writeFieldBegin('error', TType.STRUCT, 2)
self.error.write(oprot)
oprot.writeFieldEnd()
oprot.writeFieldStop()
oprot.writeStructEnd()
def validate(self):
if self.version is None:
raise TProtocolException(message='Required field version is unset!')
return
def __repr__(self):
L = ['%s=%r' % (key, value)
for key, value in self.__dict__.items()]
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
def __eq__(self, other):
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
def __ne__(self, other):
return not (self == other)
class HashExGetRequest(object):
"""
Attributes:
- segment
- key
- type
- members
- need_routing
- max_nums
"""
def __init__(self, segment="default", key=None, type=0, members=None, need_routing=True, max_nums=5000,):
self.segment = segment
self.key = key
self.type = type
self.members = members
self.need_routing = need_routing
self.max_nums = max_nums
def read(self, iprot):
if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
return
iprot.readStructBegin()
while True:
(fname, ftype, fid) = iprot.readFieldBegin()
if ftype == TType.STOP:
break
if fid == 1:
if ftype == TType.STRING:
self.segment = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
else:
iprot.skip(ftype)
elif fid == 2:
if ftype == TType.STRING:
self.key = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
else:
iprot.skip(ftype)
elif fid == 3:
if ftype == TType.I32:
self.type = iprot.readI32()
else:
iprot.skip(ftype)
elif fid == 4:
if ftype == TType.LIST:
self.members = []
(_etype521, _size518) = iprot.readListBegin()
for _i522 in range(_size518):
_elem523 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
self.members.append(_elem523)
iprot.readListEnd()
else:
iprot.skip(ftype)
elif fid == 5:
if ftype == TType.BOOL:
self.need_routing = iprot.readBool()
else:
iprot.skip(ftype)
elif fid == 6:
if ftype == TType.I32:
self.max_nums = iprot.readI32()
else:
iprot.skip(ftype)
else:
iprot.skip(ftype)
iprot.readFieldEnd()
iprot.readStructEnd()
def write(self, oprot):
if oprot._fast_encode is not None and self.thrift_spec is not None:
oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
return
oprot.writeStructBegin('HashExGetRequest')
if self.segment is not None:
oprot.writeFieldBegin('segment', TType.STRING, 1)
oprot.writeString(self.segment.encode('utf-8') if sys.version_info[0] == 2 else self.segment)
oprot.writeFieldEnd()
if self.key is not None:
oprot.writeFieldBegin('key', TType.STRING, 2)
oprot.writeString(self.key.encode('utf-8') if sys.version_info[0] == 2 else self.key)
oprot.writeFieldEnd()
if self.type is not None:
oprot.writeFieldBegin('type', TType.I32, 3)
oprot.writeI32(self.type)
oprot.writeFieldEnd()
if self.members is not None:
oprot.writeFieldBegin('members', TType.LIST, 4)
oprot.writeListBegin(TType.STRING, len(self.members))
for iter524 in self.members:
oprot.writeString(iter524.encode('utf-8') if sys.version_info[0] == 2 else iter524)
oprot.writeListEnd()
oprot.writeFieldEnd()
if self.need_routing is not None:
oprot.writeFieldBegin('need_routing', TType.BOOL, 5)
oprot.writeBool(self.need_routing)
oprot.writeFieldEnd()
if self.max_nums is not None:
oprot.writeFieldBegin('max_nums', TType.I32, 6)
oprot.writeI32(self.max_nums)
oprot.writeFieldEnd()
oprot.writeFieldStop()
oprot.writeStructEnd()
def validate(self):
if self.key is None:
raise TProtocolException(message='Required field key is unset!')
if self.type is None:
raise TProtocolException(message='Required field type is unset!')
return
def __repr__(self):
L = ['%s=%r' % (key, value)
for key, value in self.__dict__.items()]
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
def __eq__(self, other):
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
def __ne__(self, other):
return not (self == other)
class HashExGetResponse(object):
"""
Attributes:
- members
- values
- version
- error
"""
def __init__(self, members=None, values=None, version=None, error=None,):
self.members = members
self.values = values
self.version = version
self.error = error
def read(self, iprot):
if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
return
iprot.readStructBegin()
while True:
(fname, ftype, fid) = iprot.readFieldBegin()
if ftype == TType.STOP:
break
if fid == 1:
if ftype == TType.LIST:
self.members = []
(_etype528, _size525) = iprot.readListBegin()
for _i529 in range(_size525):
_elem530 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
self.members.append(_elem530)
iprot.readListEnd()
else:
iprot.skip(ftype)
elif fid == 2:
if ftype == TType.LIST:
self.values = []
(_etype534, _size531) = iprot.readListBegin()
for _i535 in range(_size531):
_elem536 = HashValue()
_elem536.read(iprot)
self.values.append(_elem536)
iprot.readListEnd()
else:
iprot.skip(ftype)
elif fid == 3:
if ftype == TType.I64:
self.version = iprot.readI64()
else:
iprot.skip(ftype)
elif fid == 4:
if ftype == TType.STRUCT:
self.error = SharestoreException()
self.error.read(iprot)
else:
iprot.skip(ftype)
else:
iprot.skip(ftype)
iprot.readFieldEnd()
iprot.readStructEnd()
def write(self, oprot):
if oprot._fast_encode is not None and self.thrift_spec is not None:
oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
return
oprot.writeStructBegin('HashExGetResponse')
if self.members is not None:
oprot.writeFieldBegin('members', TType.LIST, 1)
oprot.writeListBegin(TType.STRING, len(self.members))
for iter537 in self.members:
oprot.writeString(iter537.encode('utf-8') if sys.version_info[0] == 2 else iter537)
oprot.writeListEnd()
oprot.writeFieldEnd()
if self.values is not None:
oprot.writeFieldBegin('values', TType.LIST, 2)
oprot.writeListBegin(TType.STRUCT, len(self.values))
for iter538 in self.values:
iter538.write(oprot)
oprot.writeListEnd()
oprot.writeFieldEnd()
if self.version is not None:
oprot.writeFieldBegin('version', TType.I64, 3)
oprot.writeI64(self.version)
oprot.writeFieldEnd()
if self.error is not None:
oprot.writeFieldBegin('error', TType.STRUCT, 4)
self.error.write(oprot)
oprot.writeFieldEnd()
oprot.writeFieldStop()
oprot.writeStructEnd()
def validate(self):
if self.members is None:
raise TProtocolException(message='Required field members is unset!')
if self.values is None:
raise TProtocolException(message='Required field values is unset!')
if self.version is None:
raise TProtocolException(message='Required field version is unset!')
return
def __repr__(self):
L = ['%s=%r' % (key, value)
for key, value in self.__dict__.items()]
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
def __eq__(self, other):
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
def __ne__(self, other):
return not (self == other)
class HashExIncrRequest(object):
"""
Attributes:
- segment
- key
- members
- values
- version
- need_routing
"""
def __init__(self, segment="default", key=None, members=None, values=None, version=0, need_routing=True,):
self.segment = segment
self.key = key
self.members = members
self.values = values
self.version = version
self.need_routing = need_routing
def read(self, iprot):
if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
return
iprot.readStructBegin()
while True:
(fname, ftype, fid) = iprot.readFieldBegin()
if ftype == TType.STOP:
break
if fid == 1:
if ftype == TType.STRING:
self.segment = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
else:
iprot.skip(ftype)
elif fid == 2:
if ftype == TType.STRING:
self.key = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
else:
iprot.skip(ftype)
elif fid == 3:
if ftype == TType.LIST:
self.members = []
(_etype542, _size539) = iprot.readListBegin()
for _i543 in range(_size539):
_elem544 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
self.members.append(_elem544)
iprot.readListEnd()
else:
iprot.skip(ftype)
elif fid == 4:
if ftype == TType.LIST:
self.values = []
(_etype548, _size545) = iprot.readListBegin()
for _i549 in range(_size545):
_elem550 = iprot.readI64()
self.values.append(_elem550)
iprot.readListEnd()
else:
iprot.skip(ftype)
elif fid == 5:
if ftype == TType.I64:
self.version = iprot.readI64()
else:
iprot.skip(ftype)
elif fid == 6:
if ftype == TType.BOOL:
self.need_routing = iprot.readBool()
else:
iprot.skip(ftype)
else:
iprot.skip(ftype)
iprot.readFieldEnd()
iprot.readStructEnd()
def write(self, oprot):
if oprot._fast_encode is not None and self.thrift_spec is not None:
oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
return
oprot.writeStructBegin('HashExIncrRequest')
if self.segment is not None:
oprot.writeFieldBegin('segment', TType.STRING, 1)
oprot.writeString(self.segment.encode('utf-8') if sys.version_info[0] == 2 else self.segment)
oprot.writeFieldEnd()
if self.key is not None:
oprot.writeFieldBegin('key', TType.STRING, 2)
oprot.writeString(self.key.encode('utf-8') if sys.version_info[0] == 2 else self.key)
oprot.writeFieldEnd()
if self.members is not None:
oprot.writeFieldBegin('members', TType.LIST, 3)
oprot.writeListBegin(TType.STRING, len(self.members))
for iter551 in self.members:
oprot.writeString(iter551.encode('utf-8') if sys.version_info[0] == 2 else iter551)
oprot.writeListEnd()
oprot.writeFieldEnd()
if self.values is not None:
oprot.writeFieldBegin('values', TType.LIST, 4)
oprot.writeListBegin(TType.I64, len(self.values))
for iter552 in self.values:
oprot.writeI64(iter552)
oprot.writeListEnd()
oprot.writeFieldEnd()
if self.version is not None:
oprot.writeFieldBegin('version', TType.I64, 5)
oprot.writeI64(self.version)
oprot.writeFieldEnd()
if self.need_routing is not None:
oprot.writeFieldBegin('need_routing', TType.BOOL, 6)
oprot.writeBool(self.need_routing)
oprot.writeFieldEnd()
oprot.writeFieldStop()
oprot.writeStructEnd()
def validate(self):
if self.key is None:
raise TProtocolException(message='Required field key is unset!')
if self.members is None:
raise TProtocolException(message='Required field members is unset!')
if self.values is None:
raise TProtocolException(message='Required field values is unset!')
if self.version is None:
raise TProtocolException(message='Required field version is unset!')
return
def __repr__(self):
L = ['%s=%r' % (key, value)
for key, value in self.__dict__.items()]
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
def __eq__(self, other):
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
def __ne__(self, other):
return not (self == other)
class HashExIncrResponse(object):
"""
Attributes:
- version
- error
"""
def __init__(self, version=None, error=None,):
self.version = version
self.error = error
def read(self, iprot):
if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
return
iprot.readStructBegin()
while True:
(fname, ftype, fid) = iprot.readFieldBegin()
if ftype == TType.STOP:
break
if fid == 1:
if ftype == TType.I64:
self.version = iprot.readI64()
else:
iprot.skip(ftype)
elif fid == 2:
if ftype == TType.STRUCT:
self.error = SharestoreException()
self.error.read(iprot)
else:
iprot.skip(ftype)
else:
iprot.skip(ftype)
iprot.readFieldEnd()
iprot.readStructEnd()
def write(self, oprot):
if oprot._fast_encode is not None and self.thrift_spec is not None:
oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
return
oprot.writeStructBegin('HashExIncrResponse')
if self.version is not None:
oprot.writeFieldBegin('version', TType.I64, 1)
oprot.writeI64(self.version)
oprot.writeFieldEnd()
if self.error is not None:
oprot.writeFieldBegin('error', TType.STRUCT, 2)
self.error.write(oprot)
oprot.writeFieldEnd()
oprot.writeFieldStop()
oprot.writeStructEnd()
def validate(self):
if self.version is None:
raise TProtocolException(message='Required field version is unset!')
return
def __repr__(self):
L = ['%s=%r' % (key, value)
for key, value in self.__dict__.items()]
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
def __eq__(self, other):
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
def __ne__(self, other):
return not (self == other)
class HashExCountRequest(object):
"""
Attributes:
- segment
- key
- type
- version
- need_routing
- max_nums
"""
def __init__(self, segment="default", key=None, type=0, version=0, need_routing=True, max_nums=5000,):
self.segment = segment
self.key = key
self.type = type
self.version = version
self.need_routing = need_routing
self.max_nums = max_nums
def read(self, iprot):
if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
return
iprot.readStructBegin()
while True:
(fname, ftype, fid) = iprot.readFieldBegin()
if ftype == TType.STOP:
break
if fid == 1:
if ftype == TType.STRING:
self.segment = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
else:
iprot.skip(ftype)
elif fid == 2:
if ftype == TType.STRING:
self.key = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
else:
iprot.skip(ftype)
elif fid == 3:
if ftype == TType.I32:
self.type = iprot.readI32()
else:
iprot.skip(ftype)
elif fid == 4:
if ftype == TType.I64:
self.version = iprot.readI64()
else:
iprot.skip(ftype)
elif fid == 5:
if ftype == TType.BOOL:
self.need_routing = iprot.readBool()
else:
iprot.skip(ftype)
elif fid == 6:
if ftype == TType.I32:
self.max_nums = iprot.readI32()
else:
iprot.skip(ftype)
else:
iprot.skip(ftype)
iprot.readFieldEnd()
iprot.readStructEnd()
def write(self, oprot):
if oprot._fast_encode is not None and self.thrift_spec is not None:
oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
return
oprot.writeStructBegin('HashExCountRequest')
if self.segment is not None:
oprot.writeFieldBegin('segment', TType.STRING, 1)
oprot.writeString(self.segment.encode('utf-8') if sys.version_info[0] == 2 else self.segment)
oprot.writeFieldEnd()
if self.key is not None:
oprot.writeFieldBegin('key', TType.STRING, 2)
oprot.writeString(self.key.encode('utf-8') if sys.version_info[0] == 2 else self.key)
oprot.writeFieldEnd()
if self.type is not None:
oprot.writeFieldBegin('type', TType.I32, 3)
oprot.writeI32(self.type)
oprot.writeFieldEnd()
if self.version is not None:
oprot.writeFieldBegin('version', TType.I64, 4)
oprot.writeI64(self.version)
oprot.writeFieldEnd()
if self.need_routing is not None:
oprot.writeFieldBegin('need_routing', TType.BOOL, 5)
oprot.writeBool(self.need_routing)
oprot.writeFieldEnd()
if self.max_nums is not None:
oprot.writeFieldBegin('max_nums', TType.I32, 6)
oprot.writeI32(self.max_nums)
oprot.writeFieldEnd()
oprot.writeFieldStop()
oprot.writeStructEnd()
def validate(self):
if self.key is None:
raise TProtocolException(message='Required field key is unset!')
if self.type is None:
raise TProtocolException(message='Required field type is unset!')
if self.version is None:
raise TProtocolException(message='Required field version is unset!')
return
def __repr__(self):
L = ['%s=%r' % (key, value)
for key, value in self.__dict__.items()]
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
def __eq__(self, other):
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
def __ne__(self, other):
return not (self == other)
class HashExCountResponse(object):
"""
Attributes:
- count
- version
- error
"""
def __init__(self, count=0, version=None, error=None,):
self.count = count
self.version = version
self.error = error
def read(self, iprot):
if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
return
iprot.readStructBegin()
while True:
(fname, ftype, fid) = iprot.readFieldBegin()
if ftype == TType.STOP:
break
if fid == 1:
if ftype == TType.I32:
self.count = iprot.readI32()
else:
iprot.skip(ftype)
elif fid == 2:
if ftype == TType.I64:
self.version = iprot.readI64()
else:
iprot.skip(ftype)
elif fid == 3:
if ftype == TType.STRUCT:
self.error = SharestoreException()
self.error.read(iprot)
else:
iprot.skip(ftype)
else:
iprot.skip(ftype)
iprot.readFieldEnd()
iprot.readStructEnd()
def write(self, oprot):
if oprot._fast_encode is not None and self.thrift_spec is not None:
oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
return
oprot.writeStructBegin('HashExCountResponse')
if self.count is not None:
oprot.writeFieldBegin('count', TType.I32, 1)
oprot.writeI32(self.count)
oprot.writeFieldEnd()
if self.version is not None:
oprot.writeFieldBegin('version', TType.I64, 2)
oprot.writeI64(self.version)
oprot.writeFieldEnd()
if self.error is not None:
oprot.writeFieldBegin('error', TType.STRUCT, 3)
self.error.write(oprot)
oprot.writeFieldEnd()
oprot.writeFieldStop()
oprot.writeStructEnd()
def validate(self):
if self.count is None:
raise TProtocolException(message='Required field count is unset!')
if self.version is None:
raise TProtocolException(message='Required field version is unset!')
return
def __repr__(self):
L = ['%s=%r' % (key, value)
for key, value in self.__dict__.items()]
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
def __eq__(self, other):
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
def __ne__(self, other):
return not (self == other)
class ZSetAddRequest(object):
"""
Attributes:
- segment
- key
- members
- scores
- ttl_secs
- need_routing
"""
def __init__(self, segment="default", key=None, members=None, scores=None, ttl_secs=None, need_routing=True,):
self.segment = segment
self.key = key
self.members = members
self.scores = scores
self.ttl_secs = ttl_secs
self.need_routing = need_routing
def read(self, iprot):
if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
return
iprot.readStructBegin()
while True:
(fname, ftype, fid) = iprot.readFieldBegin()
if ftype == TType.STOP:
break
if fid == 1:
if ftype == TType.STRING:
self.segment = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
else:
iprot.skip(ftype)
elif fid == 2:
if ftype == TType.STRING:
self.key = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
else:
iprot.skip(ftype)
elif fid == 3:
if ftype == TType.LIST:
self.members = []
(_etype556, _size553) = iprot.readListBegin()
for _i557 in range(_size553):
_elem558 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
self.members.append(_elem558)
iprot.readListEnd()
else:
iprot.skip(ftype)
elif fid == 4:
if ftype == TType.LIST:
self.scores = []
(_etype562, _size559) = iprot.readListBegin()
for _i563 in range(_size559):
_elem564 = iprot.readI64()
self.scores.append(_elem564)
iprot.readListEnd()
else:
iprot.skip(ftype)
elif fid == 5:
if ftype == TType.LIST:
self.ttl_secs = []
(_etype568, _size565) = iprot.readListBegin()
for _i569 in range(_size565):
_elem570 = iprot.readI32()
self.ttl_secs.append(_elem570)
iprot.readListEnd()
else:
iprot.skip(ftype)
elif fid == 6:
if ftype == TType.BOOL:
self.need_routing = iprot.readBool()
else:
iprot.skip(ftype)
else:
iprot.skip(ftype)
iprot.readFieldEnd()
iprot.readStructEnd()
def write(self, oprot):
if oprot._fast_encode is not None and self.thrift_spec is not None:
oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
return
oprot.writeStructBegin('ZSetAddRequest')
if self.segment is not None:
oprot.writeFieldBegin('segment', TType.STRING, 1)
oprot.writeString(self.segment.encode('utf-8') if sys.version_info[0] == 2 else self.segment)
oprot.writeFieldEnd()
if self.key is not None:
oprot.writeFieldBegin('key', TType.STRING, 2)
oprot.writeString(self.key.encode('utf-8') if sys.version_info[0] == 2 else self.key)
oprot.writeFieldEnd()
if self.members is not None:
oprot.writeFieldBegin('members', TType.LIST, 3)
oprot.writeListBegin(TType.STRING, len(self.members))
for iter571 in self.members:
oprot.writeString(iter571.encode('utf-8') if sys.version_info[0] == 2 else iter571)
oprot.writeListEnd()
oprot.writeFieldEnd()
if self.scores is not None:
oprot.writeFieldBegin('scores', TType.LIST, 4)
oprot.writeListBegin(TType.I64, len(self.scores))
for iter572 in self.scores:
oprot.writeI64(iter572)
oprot.writeListEnd()
oprot.writeFieldEnd()
if self.ttl_secs is not None:
oprot.writeFieldBegin('ttl_secs', TType.LIST, 5)
oprot.writeListBegin(TType.I32, len(self.ttl_secs))
for iter573 in self.ttl_secs:
oprot.writeI32(iter573)
oprot.writeListEnd()
oprot.writeFieldEnd()
if self.need_routing is not None:
oprot.writeFieldBegin('need_routing', TType.BOOL, 6)
oprot.writeBool(self.need_routing)
oprot.writeFieldEnd()
oprot.writeFieldStop()
oprot.writeStructEnd()
def validate(self):
if self.key is None:
raise TProtocolException(message='Required field key is unset!')
if self.members is None:
raise TProtocolException(message='Required field members is unset!')
if self.scores is None:
raise TProtocolException(message='Required field scores is unset!')
return
def __repr__(self):
L = ['%s=%r' % (key, value)
for key, value in self.__dict__.items()]
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
def __eq__(self, other):
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
def __ne__(self, other):
return not (self == other)
class ZSetAddResponse(object):
"""
Attributes:
- error
"""
def __init__(self, error=None,):
self.error = error
def read(self, iprot):
if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
return
iprot.readStructBegin()
while True:
(fname, ftype, fid) = iprot.readFieldBegin()
if ftype == TType.STOP:
break
if fid == 1:
if ftype == TType.STRUCT:
self.error = SharestoreException()
self.error.read(iprot)
else:
iprot.skip(ftype)
else:
iprot.skip(ftype)
iprot.readFieldEnd()
iprot.readStructEnd()
def write(self, oprot):
if oprot._fast_encode is not None and self.thrift_spec is not None:
oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
return
oprot.writeStructBegin('ZSetAddResponse')
if self.error is not None:
oprot.writeFieldBegin('error', TType.STRUCT, 1)
self.error.write(oprot)
oprot.writeFieldEnd()
oprot.writeFieldStop()
oprot.writeStructEnd()
def validate(self):
return
def __repr__(self):
L = ['%s=%r' % (key, value)
for key, value in self.__dict__.items()]
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
def __eq__(self, other):
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
def __ne__(self, other):
return not (self == other)
class ZSetRemRequest(object):
"""
Attributes:
- segment
- key
- members
- need_routing
"""
def __init__(self, segment="default", key=None, members=None, need_routing=True,):
self.segment = segment
self.key = key
self.members = members
self.need_routing = need_routing
def read(self, iprot):
if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
return
iprot.readStructBegin()
while True:
(fname, ftype, fid) = iprot.readFieldBegin()
if ftype == TType.STOP:
break
if fid == 1:
if ftype == TType.STRING:
self.segment = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
else:
iprot.skip(ftype)
elif fid == 2:
if ftype == TType.STRING:
self.key = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
else:
iprot.skip(ftype)
elif fid == 3:
if ftype == TType.LIST:
self.members = []
(_etype577, _size574) = iprot.readListBegin()
for _i578 in range(_size574):
_elem579 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
self.members.append(_elem579)
iprot.readListEnd()
else:
iprot.skip(ftype)
elif fid == 4:
if ftype == TType.BOOL:
self.need_routing = iprot.readBool()
else:
iprot.skip(ftype)
else:
iprot.skip(ftype)
iprot.readFieldEnd()
iprot.readStructEnd()
def write(self, oprot):
if oprot._fast_encode is not None and self.thrift_spec is not None:
oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
return
oprot.writeStructBegin('ZSetRemRequest')
if self.segment is not None:
oprot.writeFieldBegin('segment', TType.STRING, 1)
oprot.writeString(self.segment.encode('utf-8') if sys.version_info[0] == 2 else self.segment)
oprot.writeFieldEnd()
if self.key is not None:
oprot.writeFieldBegin('key', TType.STRING, 2)
oprot.writeString(self.key.encode('utf-8') if sys.version_info[0] == 2 else self.key)
oprot.writeFieldEnd()
if self.members is not None:
oprot.writeFieldBegin('members', TType.LIST, 3)
oprot.writeListBegin(TType.STRING, len(self.members))
for iter580 in self.members:
oprot.writeString(iter580.encode('utf-8') if sys.version_info[0] == 2 else iter580)
oprot.writeListEnd()
oprot.writeFieldEnd()
if self.need_routing is not None:
oprot.writeFieldBegin('need_routing', TType.BOOL, 4)
oprot.writeBool(self.need_routing)
oprot.writeFieldEnd()
oprot.writeFieldStop()
oprot.writeStructEnd()
def validate(self):
if self.key is None:
raise TProtocolException(message='Required field key is unset!')
return
def __repr__(self):
L = ['%s=%r' % (key, value)
for key, value in self.__dict__.items()]
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
def __eq__(self, other):
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
def __ne__(self, other):
return not (self == other)
class ZSetRemResponse(object):
"""
Attributes:
- error
"""
def __init__(self, error=None,):
self.error = error
def read(self, iprot):
if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
return
iprot.readStructBegin()
while True:
(fname, ftype, fid) = iprot.readFieldBegin()
if ftype == TType.STOP:
break
if fid == 1:
if ftype == TType.STRUCT:
self.error = SharestoreException()
self.error.read(iprot)
else:
iprot.skip(ftype)
else:
iprot.skip(ftype)
iprot.readFieldEnd()
iprot.readStructEnd()
def write(self, oprot):
if oprot._fast_encode is not None and self.thrift_spec is not None:
oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
return
oprot.writeStructBegin('ZSetRemResponse')
if self.error is not None:
oprot.writeFieldBegin('error', TType.STRUCT, 1)
self.error.write(oprot)
oprot.writeFieldEnd()
oprot.writeFieldStop()
oprot.writeStructEnd()
def validate(self):
return
def __repr__(self):
L = ['%s=%r' % (key, value)
for key, value in self.__dict__.items()]
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
def __eq__(self, other):
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
def __ne__(self, other):
return not (self == other)
class ZSetGetRequest(object):
"""
Attributes:
- segment
- key
- with_scores
- members
- need_routing
- max_nums
"""
def __init__(self, segment="default", key=None, with_scores=True, members=None, need_routing=True, max_nums=5000,):
self.segment = segment
self.key = key
self.with_scores = with_scores
self.members = members
self.need_routing = need_routing
self.max_nums = max_nums
def read(self, iprot):
if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
return
iprot.readStructBegin()
while True:
(fname, ftype, fid) = iprot.readFieldBegin()
if ftype == TType.STOP:
break
if fid == 1:
if ftype == TType.STRING:
self.segment = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
else:
iprot.skip(ftype)
elif fid == 2:
if ftype == TType.STRING:
self.key = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
else:
iprot.skip(ftype)
elif fid == 3:
if ftype == TType.BOOL:
self.with_scores = iprot.readBool()
else:
iprot.skip(ftype)
elif fid == 4:
if ftype == TType.LIST:
self.members = []
(_etype584, _size581) = iprot.readListBegin()
for _i585 in range(_size581):
_elem586 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
self.members.append(_elem586)
iprot.readListEnd()
else:
iprot.skip(ftype)
elif fid == 5:
if ftype == TType.BOOL:
self.need_routing = iprot.readBool()
else:
iprot.skip(ftype)
elif fid == 6:
if ftype == TType.I32:
self.max_nums = iprot.readI32()
else:
iprot.skip(ftype)
else:
iprot.skip(ftype)
iprot.readFieldEnd()
iprot.readStructEnd()
def write(self, oprot):
if oprot._fast_encode is not None and self.thrift_spec is not None:
oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
return
oprot.writeStructBegin('ZSetGetRequest')
if self.segment is not None:
oprot.writeFieldBegin('segment', TType.STRING, 1)
oprot.writeString(self.segment.encode('utf-8') if sys.version_info[0] == 2 else self.segment)
oprot.writeFieldEnd()
if self.key is not None:
oprot.writeFieldBegin('key', TType.STRING, 2)
oprot.writeString(self.key.encode('utf-8') if sys.version_info[0] == 2 else self.key)
oprot.writeFieldEnd()
if self.with_scores is not None:
oprot.writeFieldBegin('with_scores', TType.BOOL, 3)
oprot.writeBool(self.with_scores)
oprot.writeFieldEnd()
if self.members is not None:
oprot.writeFieldBegin('members', TType.LIST, 4)
oprot.writeListBegin(TType.STRING, len(self.members))
for iter587 in self.members:
oprot.writeString(iter587.encode('utf-8') if sys.version_info[0] == 2 else iter587)
oprot.writeListEnd()
oprot.writeFieldEnd()
if self.need_routing is not None:
oprot.writeFieldBegin('need_routing', TType.BOOL, 5)
oprot.writeBool(self.need_routing)
oprot.writeFieldEnd()
if self.max_nums is not None:
oprot.writeFieldBegin('max_nums', TType.I32, 6)
oprot.writeI32(self.max_nums)
oprot.writeFieldEnd()
oprot.writeFieldStop()
oprot.writeStructEnd()
def validate(self):
if self.key is None:
raise TProtocolException(message='Required field key is unset!')
if self.with_scores is None:
raise TProtocolException(message='Required field with_scores is unset!')
return
def __repr__(self):
L = ['%s=%r' % (key, value)
for key, value in self.__dict__.items()]
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
def __eq__(self, other):
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
def __ne__(self, other):
return not (self == other)
class ZSetGetResponse(object):
"""
Attributes:
- members
- scores
- error
"""
def __init__(self, members=None, scores=None, error=None,):
self.members = members
self.scores = scores
self.error = error
def read(self, iprot):
if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
return
iprot.readStructBegin()
while True:
(fname, ftype, fid) = iprot.readFieldBegin()
if ftype == TType.STOP:
break
if fid == 1:
if ftype == TType.LIST:
self.members = []
(_etype591, _size588) = iprot.readListBegin()
for _i592 in range(_size588):
_elem593 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
self.members.append(_elem593)
iprot.readListEnd()
else:
iprot.skip(ftype)
elif fid == 2:
if ftype == TType.LIST:
self.scores = []
(_etype597, _size594) = iprot.readListBegin()
for _i598 in range(_size594):
_elem599 = iprot.readI64()
self.scores.append(_elem599)
iprot.readListEnd()
else:
iprot.skip(ftype)
elif fid == 3:
if ftype == TType.STRUCT:
self.error = SharestoreException()
self.error.read(iprot)
else:
iprot.skip(ftype)
else:
iprot.skip(ftype)
iprot.readFieldEnd()
iprot.readStructEnd()
def write(self, oprot):
if oprot._fast_encode is not None and self.thrift_spec is not None:
oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
return
oprot.writeStructBegin('ZSetGetResponse')
if self.members is not None:
oprot.writeFieldBegin('members', TType.LIST, 1)
oprot.writeListBegin(TType.STRING, len(self.members))
for iter600 in self.members:
oprot.writeString(iter600.encode('utf-8') if sys.version_info[0] == 2 else iter600)
oprot.writeListEnd()
oprot.writeFieldEnd()
if self.scores is not None:
oprot.writeFieldBegin('scores', TType.LIST, 2)
oprot.writeListBegin(TType.I64, len(self.scores))
for iter601 in self.scores:
oprot.writeI64(iter601)
oprot.writeListEnd()
oprot.writeFieldEnd()
if self.error is not None:
oprot.writeFieldBegin('error', TType.STRUCT, 3)
self.error.write(oprot)
oprot.writeFieldEnd()
oprot.writeFieldStop()
oprot.writeStructEnd()
def validate(self):
if self.members is None:
raise TProtocolException(message='Required field members is unset!')
return
def __repr__(self):
L = ['%s=%r' % (key, value)
for key, value in self.__dict__.items()]
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
def __eq__(self, other):
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
def __ne__(self, other):
return not (self == other)
class IndexRange(object):
"""
Attributes:
- start
- stop
"""
def __init__(self, start=0, stop=-1,):
self.start = start
self.stop = stop
def read(self, iprot):
if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
return
iprot.readStructBegin()
while True:
(fname, ftype, fid) = iprot.readFieldBegin()
if ftype == TType.STOP:
break
if fid == 1:
if ftype == TType.I32:
self.start = iprot.readI32()
else:
iprot.skip(ftype)
elif fid == 2:
if ftype == TType.I32:
self.stop = iprot.readI32()
else:
iprot.skip(ftype)
else:
iprot.skip(ftype)
iprot.readFieldEnd()
iprot.readStructEnd()
def write(self, oprot):
if oprot._fast_encode is not None and self.thrift_spec is not None:
oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
return
oprot.writeStructBegin('IndexRange')
if self.start is not None:
oprot.writeFieldBegin('start', TType.I32, 1)
oprot.writeI32(self.start)
oprot.writeFieldEnd()
if self.stop is not None:
oprot.writeFieldBegin('stop', TType.I32, 2)
oprot.writeI32(self.stop)
oprot.writeFieldEnd()
oprot.writeFieldStop()
oprot.writeStructEnd()
def validate(self):
if self.start is None:
raise TProtocolException(message='Required field start is unset!')
if self.stop is None:
raise TProtocolException(message='Required field stop is unset!')
return
def __repr__(self):
L = ['%s=%r' % (key, value)
for key, value in self.__dict__.items()]
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
def __eq__(self, other):
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
def __ne__(self, other):
return not (self == other)
class ScoreRange(object):
"""
Attributes:
- min
- max
"""
def __init__(self, min=0, max=9223372036854775807,):
self.min = min
self.max = max
def read(self, iprot):
if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
return
iprot.readStructBegin()
while True:
(fname, ftype, fid) = iprot.readFieldBegin()
if ftype == TType.STOP:
break
if fid == 1:
if ftype == TType.I64:
self.min = iprot.readI64()
else:
iprot.skip(ftype)
elif fid == 2:
if ftype == TType.I64:
self.max = iprot.readI64()
else:
iprot.skip(ftype)
else:
iprot.skip(ftype)
iprot.readFieldEnd()
iprot.readStructEnd()
def write(self, oprot):
if oprot._fast_encode is not None and self.thrift_spec is not None:
oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
return
oprot.writeStructBegin('ScoreRange')
if self.min is not None:
oprot.writeFieldBegin('min', TType.I64, 1)
oprot.writeI64(self.min)
oprot.writeFieldEnd()
if self.max is not None:
oprot.writeFieldBegin('max', TType.I64, 2)
oprot.writeI64(self.max)
oprot.writeFieldEnd()
oprot.writeFieldStop()
oprot.writeStructEnd()
def validate(self):
if self.min is None:
raise TProtocolException(message='Required field min is unset!')
if self.max is None:
raise TProtocolException(message='Required field max is unset!')
return
def __repr__(self):
L = ['%s=%r' % (key, value)
for key, value in self.__dict__.items()]
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
def __eq__(self, other):
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
def __ne__(self, other):
return not (self == other)
class ZSetGetRangeRequest(object):
"""
Attributes:
- segment
- key
- index_range
- score_range
- with_scores
- need_routing
- max_nums
"""
def __init__(self, segment="default", key=None, index_range=None, score_range=None, with_scores=True, need_routing=True, max_nums=5000,):
self.segment = segment
self.key = key
self.index_range = index_range
self.score_range = score_range
self.with_scores = with_scores
self.need_routing = need_routing
self.max_nums = max_nums
def read(self, iprot):
if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
return
iprot.readStructBegin()
while True:
(fname, ftype, fid) = iprot.readFieldBegin()
if ftype == TType.STOP:
break
if fid == 1:
if ftype == TType.STRING:
self.segment = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
else:
iprot.skip(ftype)
elif fid == 3:
if ftype == TType.STRING:
self.key = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
else:
iprot.skip(ftype)
elif fid == 4:
if ftype == TType.STRUCT:
self.index_range = IndexRange()
self.index_range.read(iprot)
else:
iprot.skip(ftype)
elif fid == 5:
if ftype == TType.STRUCT:
self.score_range = ScoreRange()
self.score_range.read(iprot)
else:
iprot.skip(ftype)
elif fid == 6:
if ftype == TType.BOOL:
self.with_scores = iprot.readBool()
else:
iprot.skip(ftype)
elif fid == 7:
if ftype == TType.BOOL:
self.need_routing = iprot.readBool()
else:
iprot.skip(ftype)
elif fid == 8:
if ftype == TType.I32:
self.max_nums = iprot.readI32()
else:
iprot.skip(ftype)
else:
iprot.skip(ftype)
iprot.readFieldEnd()
iprot.readStructEnd()
def write(self, oprot):
if oprot._fast_encode is not None and self.thrift_spec is not None:
oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
return
oprot.writeStructBegin('ZSetGetRangeRequest')
if self.segment is not None:
oprot.writeFieldBegin('segment', TType.STRING, 1)
oprot.writeString(self.segment.encode('utf-8') if sys.version_info[0] == 2 else self.segment)
oprot.writeFieldEnd()
if self.key is not None:
oprot.writeFieldBegin('key', TType.STRING, 3)
oprot.writeString(self.key.encode('utf-8') if sys.version_info[0] == 2 else self.key)
oprot.writeFieldEnd()
if self.index_range is not None:
oprot.writeFieldBegin('index_range', TType.STRUCT, 4)
self.index_range.write(oprot)
oprot.writeFieldEnd()
if self.score_range is not None:
oprot.writeFieldBegin('score_range', TType.STRUCT, 5)
self.score_range.write(oprot)
oprot.writeFieldEnd()
if self.with_scores is not None:
oprot.writeFieldBegin('with_scores', TType.BOOL, 6)
oprot.writeBool(self.with_scores)
oprot.writeFieldEnd()
if self.need_routing is not None:
oprot.writeFieldBegin('need_routing', TType.BOOL, 7)
oprot.writeBool(self.need_routing)
oprot.writeFieldEnd()
if self.max_nums is not None:
oprot.writeFieldBegin('max_nums', TType.I32, 8)
oprot.writeI32(self.max_nums)
oprot.writeFieldEnd()
oprot.writeFieldStop()
oprot.writeStructEnd()
def validate(self):
if self.key is None:
raise TProtocolException(message='Required field key is unset!')
return
def __repr__(self):
L = ['%s=%r' % (key, value)
for key, value in self.__dict__.items()]
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
def __eq__(self, other):
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
def __ne__(self, other):
return not (self == other)
class ZSetGetRangeResponse(object):
"""
Attributes:
- members
- scores
- error
"""
def __init__(self, members=None, scores=None, error=None,):
self.members = members
self.scores = scores
self.error = error
def read(self, iprot):
if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
return
iprot.readStructBegin()
while True:
(fname, ftype, fid) = iprot.readFieldBegin()
if ftype == TType.STOP:
break
if fid == 1:
if ftype == TType.LIST:
self.members = []
(_etype605, _size602) = iprot.readListBegin()
for _i606 in range(_size602):
_elem607 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
self.members.append(_elem607)
iprot.readListEnd()
else:
iprot.skip(ftype)
elif fid == 2:
if ftype == TType.LIST:
self.scores = []
(_etype611, _size608) = iprot.readListBegin()
for _i612 in range(_size608):
_elem613 = iprot.readI64()
self.scores.append(_elem613)
iprot.readListEnd()
else:
iprot.skip(ftype)
elif fid == 3:
if ftype == TType.STRUCT:
self.error = SharestoreException()
self.error.read(iprot)
else:
iprot.skip(ftype)
else:
iprot.skip(ftype)
iprot.readFieldEnd()
iprot.readStructEnd()
def write(self, oprot):
if oprot._fast_encode is not None and self.thrift_spec is not None:
oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
return
oprot.writeStructBegin('ZSetGetRangeResponse')
if self.members is not None:
oprot.writeFieldBegin('members', TType.LIST, 1)
oprot.writeListBegin(TType.STRING, len(self.members))
for iter614 in self.members:
oprot.writeString(iter614.encode('utf-8') if sys.version_info[0] == 2 else iter614)
oprot.writeListEnd()
oprot.writeFieldEnd()
if self.scores is not None:
oprot.writeFieldBegin('scores', TType.LIST, 2)
oprot.writeListBegin(TType.I64, len(self.scores))
for iter615 in self.scores:
oprot.writeI64(iter615)
oprot.writeListEnd()
oprot.writeFieldEnd()
if self.error is not None:
oprot.writeFieldBegin('error', TType.STRUCT, 3)
self.error.write(oprot)
oprot.writeFieldEnd()
oprot.writeFieldStop()
oprot.writeStructEnd()
def validate(self):
if self.members is None:
raise TProtocolException(message='Required field members is unset!')
return
def __repr__(self):
L = ['%s=%r' % (key, value)
for key, value in self.__dict__.items()]
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
def __eq__(self, other):
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
def __ne__(self, other):
return not (self == other)
class ZSetRemRangeRequest(object):
"""
Attributes:
- segment
- key
- index_range
- score_range
- need_routing
"""
def __init__(self, segment="default", key=None, index_range=None, score_range=None, need_routing=True,):
self.segment = segment
self.key = key
self.index_range = index_range
self.score_range = score_range
self.need_routing = need_routing
def read(self, iprot):
if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
return
iprot.readStructBegin()
while True:
(fname, ftype, fid) = iprot.readFieldBegin()
if ftype == TType.STOP:
break
if fid == 1:
if ftype == TType.STRING:
self.segment = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
else:
iprot.skip(ftype)
elif fid == 2:
if ftype == TType.STRING:
self.key = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
else:
iprot.skip(ftype)
elif fid == 3:
if ftype == TType.STRUCT:
self.index_range = IndexRange()
self.index_range.read(iprot)
else:
iprot.skip(ftype)
elif fid == 4:
if ftype == TType.STRUCT:
self.score_range = ScoreRange()
self.score_range.read(iprot)
else:
iprot.skip(ftype)
elif fid == 5:
if ftype == TType.BOOL:
self.need_routing = iprot.readBool()
else:
iprot.skip(ftype)
else:
iprot.skip(ftype)
iprot.readFieldEnd()
iprot.readStructEnd()
def write(self, oprot):
if oprot._fast_encode is not None and self.thrift_spec is not None:
oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
return
oprot.writeStructBegin('ZSetRemRangeRequest')
if self.segment is not None:
oprot.writeFieldBegin('segment', TType.STRING, 1)
oprot.writeString(self.segment.encode('utf-8') if sys.version_info[0] == 2 else self.segment)
oprot.writeFieldEnd()
if self.key is not None:
oprot.writeFieldBegin('key', TType.STRING, 2)
oprot.writeString(self.key.encode('utf-8') if sys.version_info[0] == 2 else self.key)
oprot.writeFieldEnd()
if self.index_range is not None:
oprot.writeFieldBegin('index_range', TType.STRUCT, 3)
self.index_range.write(oprot)
oprot.writeFieldEnd()
if self.score_range is not None:
oprot.writeFieldBegin('score_range', TType.STRUCT, 4)
self.score_range.write(oprot)
oprot.writeFieldEnd()
if self.need_routing is not None:
oprot.writeFieldBegin('need_routing', TType.BOOL, 5)
oprot.writeBool(self.need_routing)
oprot.writeFieldEnd()
oprot.writeFieldStop()
oprot.writeStructEnd()
def validate(self):
if self.key is None:
raise TProtocolException(message='Required field key is unset!')
return
def __repr__(self):
L = ['%s=%r' % (key, value)
for key, value in self.__dict__.items()]
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
def __eq__(self, other):
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
def __ne__(self, other):
return not (self == other)
class ZSetRemRangeResponse(object):
"""
Attributes:
- error
"""
def __init__(self, error=None,):
self.error = error
def read(self, iprot):
if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
return
iprot.readStructBegin()
while True:
(fname, ftype, fid) = iprot.readFieldBegin()
if ftype == TType.STOP:
break
if fid == 1:
if ftype == TType.STRUCT:
self.error = SharestoreException()
self.error.read(iprot)
else:
iprot.skip(ftype)
else:
iprot.skip(ftype)
iprot.readFieldEnd()
iprot.readStructEnd()
def write(self, oprot):
if oprot._fast_encode is not None and self.thrift_spec is not None:
oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
return
oprot.writeStructBegin('ZSetRemRangeResponse')
if self.error is not None:
oprot.writeFieldBegin('error', TType.STRUCT, 1)
self.error.write(oprot)
oprot.writeFieldEnd()
oprot.writeFieldStop()
oprot.writeStructEnd()
def validate(self):
return
def __repr__(self):
L = ['%s=%r' % (key, value)
for key, value in self.__dict__.items()]
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
def __eq__(self, other):
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
def __ne__(self, other):
return not (self == other)
class ZSetCountRequest(object):
"""
Attributes:
- segment
- key
- need_routing
- max_nums
"""
def __init__(self, segment="default", key=None, need_routing=True, max_nums=5000,):
self.segment = segment
self.key = key
self.need_routing = need_routing
self.max_nums = max_nums
def read(self, iprot):
if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
return
iprot.readStructBegin()
while True:
(fname, ftype, fid) = iprot.readFieldBegin()
if ftype == TType.STOP:
break
if fid == 1:
if ftype == TType.STRING:
self.segment = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
else:
iprot.skip(ftype)
elif fid == 2:
if ftype == TType.STRING:
self.key = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
else:
iprot.skip(ftype)
elif fid == 3:
if ftype == TType.BOOL:
self.need_routing = iprot.readBool()
else:
iprot.skip(ftype)
elif fid == 4:
if ftype == TType.I32:
self.max_nums = iprot.readI32()
else:
iprot.skip(ftype)
else:
iprot.skip(ftype)
iprot.readFieldEnd()
iprot.readStructEnd()
def write(self, oprot):
if oprot._fast_encode is not None and self.thrift_spec is not None:
oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
return
oprot.writeStructBegin('ZSetCountRequest')
if self.segment is not None:
oprot.writeFieldBegin('segment', TType.STRING, 1)
oprot.writeString(self.segment.encode('utf-8') if sys.version_info[0] == 2 else self.segment)
oprot.writeFieldEnd()
if self.key is not None:
oprot.writeFieldBegin('key', TType.STRING, 2)
oprot.writeString(self.key.encode('utf-8') if sys.version_info[0] == 2 else self.key)
oprot.writeFieldEnd()
if self.need_routing is not None:
oprot.writeFieldBegin('need_routing', TType.BOOL, 3)
oprot.writeBool(self.need_routing)
oprot.writeFieldEnd()
if self.max_nums is not None:
oprot.writeFieldBegin('max_nums', TType.I32, 4)
oprot.writeI32(self.max_nums)
oprot.writeFieldEnd()
oprot.writeFieldStop()
oprot.writeStructEnd()
def validate(self):
if self.key is None:
raise TProtocolException(message='Required field key is unset!')
return
def __repr__(self):
L = ['%s=%r' % (key, value)
for key, value in self.__dict__.items()]
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
def __eq__(self, other):
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
def __ne__(self, other):
return not (self == other)
class ZSetCountResponse(object):
"""
Attributes:
- count
- error
"""
def __init__(self, count=0, error=None,):
self.count = count
self.error = error
def read(self, iprot):
if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
return
iprot.readStructBegin()
while True:
(fname, ftype, fid) = iprot.readFieldBegin()
if ftype == TType.STOP:
break
if fid == 1:
if ftype == TType.I32:
self.count = iprot.readI32()
else:
iprot.skip(ftype)
elif fid == 2:
if ftype == TType.STRUCT:
self.error = SharestoreException()
self.error.read(iprot)
else:
iprot.skip(ftype)
else:
iprot.skip(ftype)
iprot.readFieldEnd()
iprot.readStructEnd()
def write(self, oprot):
if oprot._fast_encode is not None and self.thrift_spec is not None:
oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
return
oprot.writeStructBegin('ZSetCountResponse')
if self.count is not None:
oprot.writeFieldBegin('count', TType.I32, 1)
oprot.writeI32(self.count)
oprot.writeFieldEnd()
if self.error is not None:
oprot.writeFieldBegin('error', TType.STRUCT, 2)
self.error.write(oprot)
oprot.writeFieldEnd()
oprot.writeFieldStop()
oprot.writeStructEnd()
def validate(self):
if self.count is None:
raise TProtocolException(message='Required field count is unset!')
return
def __repr__(self):
L = ['%s=%r' % (key, value)
for key, value in self.__dict__.items()]
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
def __eq__(self, other):
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
def __ne__(self, other):
return not (self == other)
class ZSetScanRequest(object):
"""
Attributes:
- segment
- key
- cursor
- with_scores
- is_reverse
- need_routing
- max_nums
"""
def __init__(self, segment="default", key=None, cursor=None, with_scores=True, is_reverse=False, need_routing=True, max_nums=5000,):
self.segment = segment
self.key = key
self.cursor = cursor
self.with_scores = with_scores
self.is_reverse = is_reverse
self.need_routing = need_routing
self.max_nums = max_nums
def read(self, iprot):
if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
return
iprot.readStructBegin()
while True:
(fname, ftype, fid) = iprot.readFieldBegin()
if ftype == TType.STOP:
break
if fid == 1:
if ftype == TType.STRING:
self.segment = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
else:
iprot.skip(ftype)
elif fid == 2:
if ftype == TType.STRING:
self.key = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
else:
iprot.skip(ftype)
elif fid == 3:
if ftype == TType.STRING:
self.cursor = iprot.readBinary()
else:
iprot.skip(ftype)
elif fid == 4:
if ftype == TType.BOOL:
self.with_scores = iprot.readBool()
else:
iprot.skip(ftype)
elif fid == 5:
if ftype == TType.BOOL:
self.is_reverse = iprot.readBool()
else:
iprot.skip(ftype)
elif fid == 6:
if ftype == TType.BOOL:
self.need_routing = iprot.readBool()
else:
iprot.skip(ftype)
elif fid == 7:
if ftype == TType.I32:
self.max_nums = iprot.readI32()
else:
iprot.skip(ftype)
else:
iprot.skip(ftype)
iprot.readFieldEnd()
iprot.readStructEnd()
def write(self, oprot):
if oprot._fast_encode is not None and self.thrift_spec is not None:
oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
return
oprot.writeStructBegin('ZSetScanRequest')
if self.segment is not None:
oprot.writeFieldBegin('segment', TType.STRING, 1)
oprot.writeString(self.segment.encode('utf-8') if sys.version_info[0] == 2 else self.segment)
oprot.writeFieldEnd()
if self.key is not None:
oprot.writeFieldBegin('key', TType.STRING, 2)
oprot.writeString(self.key.encode('utf-8') if sys.version_info[0] == 2 else self.key)
oprot.writeFieldEnd()
if self.cursor is not None:
oprot.writeFieldBegin('cursor', TType.STRING, 3)
oprot.writeBinary(self.cursor)
oprot.writeFieldEnd()
if self.with_scores is not None:
oprot.writeFieldBegin('with_scores', TType.BOOL, 4)
oprot.writeBool(self.with_scores)
oprot.writeFieldEnd()
if self.is_reverse is not None:
oprot.writeFieldBegin('is_reverse', TType.BOOL, 5)
oprot.writeBool(self.is_reverse)
oprot.writeFieldEnd()
if self.need_routing is not None:
oprot.writeFieldBegin('need_routing', TType.BOOL, 6)
oprot.writeBool(self.need_routing)
oprot.writeFieldEnd()
if self.max_nums is not None:
oprot.writeFieldBegin('max_nums', TType.I32, 7)
oprot.writeI32(self.max_nums)
oprot.writeFieldEnd()
oprot.writeFieldStop()
oprot.writeStructEnd()
def validate(self):
if self.key is None:
raise TProtocolException(message='Required field key is unset!')
return
def __repr__(self):
L = ['%s=%r' % (key, value)
for key, value in self.__dict__.items()]
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
def __eq__(self, other):
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
def __ne__(self, other):
return not (self == other)
class ZSetScanResponse(object):
"""
Attributes:
- members
- scores
- cursor
- error
"""
def __init__(self, members=None, scores=None, cursor=None, error=None,):
self.members = members
self.scores = scores
self.cursor = cursor
self.error = error
def read(self, iprot):
if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
return
iprot.readStructBegin()
while True:
(fname, ftype, fid) = iprot.readFieldBegin()
if ftype == TType.STOP:
break
if fid == 1:
if ftype == TType.LIST:
self.members = []
(_etype619, _size616) = iprot.readListBegin()
for _i620 in range(_size616):
_elem621 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
self.members.append(_elem621)
iprot.readListEnd()
else:
iprot.skip(ftype)
elif fid == 2:
if ftype == TType.LIST:
self.scores = []
(_etype625, _size622) = iprot.readListBegin()
for _i626 in range(_size622):
_elem627 = iprot.readI64()
self.scores.append(_elem627)
iprot.readListEnd()
else:
iprot.skip(ftype)
elif fid == 3:
if ftype == TType.STRING:
self.cursor = iprot.readBinary()
else:
iprot.skip(ftype)
elif fid == 4:
if ftype == TType.STRUCT:
self.error = SharestoreException()
self.error.read(iprot)
else:
iprot.skip(ftype)
else:
iprot.skip(ftype)
iprot.readFieldEnd()
iprot.readStructEnd()
def write(self, oprot):
if oprot._fast_encode is not None and self.thrift_spec is not None:
oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
return
oprot.writeStructBegin('ZSetScanResponse')
if self.members is not None:
oprot.writeFieldBegin('members', TType.LIST, 1)
oprot.writeListBegin(TType.STRING, len(self.members))
for iter628 in self.members:
oprot.writeString(iter628.encode('utf-8') if sys.version_info[0] == 2 else iter628)
oprot.writeListEnd()
oprot.writeFieldEnd()
if self.scores is not None:
oprot.writeFieldBegin('scores', TType.LIST, 2)
oprot.writeListBegin(TType.I64, len(self.scores))
for iter629 in self.scores:
oprot.writeI64(iter629)
oprot.writeListEnd()
oprot.writeFieldEnd()
if self.cursor is not None:
oprot.writeFieldBegin('cursor', TType.STRING, 3)
oprot.writeBinary(self.cursor)
oprot.writeFieldEnd()
if self.error is not None:
oprot.writeFieldBegin('error', TType.STRUCT, 4)
self.error.write(oprot)
oprot.writeFieldEnd()
oprot.writeFieldStop()
oprot.writeStructEnd()
def validate(self):
if self.members is None:
raise TProtocolException(message='Required field members is unset!')
return
def __repr__(self):
L = ['%s=%r' % (key, value)
for key, value in self.__dict__.items()]
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
def __eq__(self, other):
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
def __ne__(self, other):
return not (self == other)
all_structs.append(SharestoreException)
SharestoreException.thrift_spec = (
None, # 0
(1, TType.STRING, 'message', 'UTF8', None, ), # 1
(2, TType.I32, 'code', None, None, ), # 2
)
all_structs.append(GetRequest)
GetRequest.thrift_spec = (
None, # 0
(1, TType.STRING, 'segment', 'UTF8', "default", ), # 1
(2, TType.STRING, 'key', 'UTF8', None, ), # 2
(3, TType.BOOL, 'need_routing', None, True, ), # 3
)
all_structs.append(GetResponse)
GetResponse.thrift_spec = (
None, # 0
(1, TType.STRING, 'value', 'BINARY', None, ), # 1
(2, TType.STRUCT, 'error', [SharestoreException, None], None, ), # 2
)
all_structs.append(MultiGetRequest)
MultiGetRequest.thrift_spec = (
None, # 0
(1, TType.STRING, 'segment', 'UTF8', "default", ), # 1
(2, TType.LIST, 'keys', (TType.STRING, 'UTF8', False), None, ), # 2
(3, TType.LIST, 'index', (TType.I32, None, False), None, ), # 3
(4, TType.BOOL, 'need_routing', None, True, ), # 4
)
all_structs.append(MultiGetResponse)
MultiGetResponse.thrift_spec = (
None, # 0
(1, TType.LIST, 'responses', (TType.STRUCT, [GetResponse, None], False), None, ), # 1
(2, TType.LIST, 'sub_request_indices', (TType.I32, None, False), None, ), # 2
)
all_structs.append(TtlRequest)
TtlRequest.thrift_spec = (
None, # 0
(1, TType.STRING, 'segment', 'UTF8', "default", ), # 1
(2, TType.STRING, 'key', 'UTF8', None, ), # 2
(3, TType.BOOL, 'need_routing', None, True, ), # 3
)
all_structs.append(TtlResponse)
TtlResponse.thrift_spec = (
None, # 0
(1, TType.I32, 'ttl_sec', None, None, ), # 1
(2, TType.STRUCT, 'error', [SharestoreException, None], None, ), # 2
)
all_structs.append(SetRequest)
SetRequest.thrift_spec = (
None, # 0
(1, TType.STRING, 'segment', 'UTF8', "default", ), # 1
(2, TType.STRING, 'key', 'UTF8', None, ), # 2
(3, TType.STRING, 'value', 'BINARY', None, ), # 3
(4, TType.I32, 'ttl_sec', None, 0, ), # 4
(5, TType.BOOL, 'need_routing', None, True, ), # 5
)
all_structs.append(SetResponse)
SetResponse.thrift_spec = (
None, # 0
(1, TType.STRUCT, 'error', [SharestoreException, None], None, ), # 1
)
all_structs.append(MultiSetRequest)
MultiSetRequest.thrift_spec = (
None, # 0
(1, TType.STRING, 'segment', 'UTF8', "default", ), # 1
(2, TType.LIST, 'keys', (TType.STRING, 'UTF8', False), None, ), # 2
(3, TType.LIST, 'values', (TType.STRING, 'BINARY', False), None, ), # 3
(4, TType.LIST, 'ttl_secs', (TType.I32, None, False), None, ), # 4
(5, TType.LIST, 'index', (TType.I32, None, False), None, ), # 5
(6, TType.BOOL, 'need_routing', None, True, ), # 6
)
all_structs.append(MultiSetResponse)
MultiSetResponse.thrift_spec = (
None, # 0
(1, TType.LIST, 'responses', (TType.STRUCT, [SetResponse, None], False), None, ), # 1
(2, TType.LIST, 'sub_request_indices', (TType.I32, None, False), None, ), # 2
)
all_structs.append(DelRequest)
DelRequest.thrift_spec = (
None, # 0
(1, TType.STRING, 'segment', 'UTF8', "default", ), # 1
(2, TType.STRING, 'key', 'UTF8', None, ), # 2
(3, TType.BOOL, 'need_routing', None, True, ), # 3
)
all_structs.append(DelResponse)
DelResponse.thrift_spec = (
None, # 0
(1, TType.STRUCT, 'error', [SharestoreException, None], None, ), # 1
)
all_structs.append(DSSetRequest)
DSSetRequest.thrift_spec = (
None, # 0
(1, TType.STRING, 'segment', 'UTF8', "default", ), # 1
(2, TType.STRING, 'key', 'UTF8', None, ), # 2
(3, TType.LIST, 'members', (TType.STRING, 'UTF8', False), None, ), # 3
(4, TType.LIST, 'ttl_secs', (TType.I32, None, False), None, ), # 4
(5, TType.BOOL, 'need_routing', None, True, ), # 5
)
all_structs.append(DSSetResponse)
DSSetResponse.thrift_spec = (
None, # 0
(1, TType.STRUCT, 'error', [SharestoreException, None], None, ), # 1
)
all_structs.append(DSRemRequest)
DSRemRequest.thrift_spec = (
None, # 0
(1, TType.STRING, 'segment', 'UTF8', "default", ), # 1
(2, TType.STRING, 'key', 'UTF8', None, ), # 2
(3, TType.LIST, 'members', (TType.STRING, 'UTF8', False), None, ), # 3
(4, TType.BOOL, 'need_routing', None, True, ), # 4
)
all_structs.append(DSRemResponse)
DSRemResponse.thrift_spec = (
None, # 0
(1, TType.STRUCT, 'error', [SharestoreException, None], None, ), # 1
)
all_structs.append(DSGetRequest)
DSGetRequest.thrift_spec = (
None, # 0
(1, TType.STRING, 'segment', 'UTF8', "default", ), # 1
(2, TType.STRING, 'key', 'UTF8', None, ), # 2
(3, TType.BOOL, 'with_ttls', None, False, ), # 3
(4, TType.BOOL, 'need_routing', None, True, ), # 4
(5, TType.I32, 'max_nums', None, 5000, ), # 5
)
all_structs.append(DSGetResponse)
DSGetResponse.thrift_spec = (
None, # 0
(1, TType.LIST, 'members', (TType.STRING, 'UTF8', False), None, ), # 1
(2, TType.LIST, 'ttl_secs', (TType.I32, None, False), None, ), # 2
(3, TType.STRUCT, 'error', [SharestoreException, None], None, ), # 3
)
all_structs.append(DSCountRequest)
DSCountRequest.thrift_spec = (
None, # 0
(1, TType.STRING, 'segment', 'UTF8', "default", ), # 1
(2, TType.STRING, 'key', 'UTF8', None, ), # 2
(3, TType.BOOL, 'need_routing', None, True, ), # 3
(4, TType.I32, 'max_nums', None, 5000, ), # 4
)
all_structs.append(DSCountResponse)
DSCountResponse.thrift_spec = (
None, # 0
(1, TType.I32, 'count', None, 0, ), # 1
(2, TType.STRUCT, 'error', [SharestoreException, None], None, ), # 2
)
all_structs.append(DSDelRequest)
DSDelRequest.thrift_spec = (
None, # 0
(1, TType.STRING, 'segment', 'UTF8', "default", ), # 1
(2, TType.STRING, 'key', 'UTF8', None, ), # 2
(3, TType.BOOL, 'need_routing', None, True, ), # 3
)
all_structs.append(DSDelResponse)
DSDelResponse.thrift_spec = (
None, # 0
(1, TType.STRUCT, 'error', [SharestoreException, None], None, ), # 1
)
all_structs.append(DSIsMemberRequest)
DSIsMemberRequest.thrift_spec = (
None, # 0
(1, TType.STRING, 'segment', 'UTF8', "default", ), # 1
(2, TType.STRING, 'key', 'UTF8', None, ), # 2
(3, TType.STRING, 'member', 'UTF8', None, ), # 3
(4, TType.BOOL, 'need_routing', None, True, ), # 4
)
all_structs.append(DSIsMemberResponse)
DSIsMemberResponse.thrift_spec = (
None, # 0
(1, TType.BOOL, 'yes', None, None, ), # 1
(2, TType.STRUCT, 'error', [SharestoreException, None], None, ), # 2
)
all_structs.append(IncrCounterRequest)
IncrCounterRequest.thrift_spec = (
None, # 0
(1, TType.STRING, 'segment', 'UTF8', "default", ), # 1
(2, TType.STRING, 'key', 'UTF8', None, ), # 2
(3, TType.I64, 'value', None, 1, ), # 3
(4, TType.BOOL, 'need_routing', None, True, ), # 4
)
all_structs.append(IncrCounterTtlRequest)
IncrCounterTtlRequest.thrift_spec = (
None, # 0
(1, TType.STRING, 'segment', 'UTF8', "default", ), # 1
(2, TType.STRING, 'key', 'UTF8', None, ), # 2
(3, TType.I64, 'value', None, 1, ), # 3
(4, TType.I32, 'ttl_sec', None, None, ), # 4
(5, TType.BOOL, 'need_routing', None, True, ), # 5
)
all_structs.append(IncrCounterResponse)
IncrCounterResponse.thrift_spec = (
None, # 0
(1, TType.STRUCT, 'error', [SharestoreException, None], None, ), # 1
)
all_structs.append(MultiIncrCounterRequest)
MultiIncrCounterRequest.thrift_spec = (
None, # 0
(1, TType.STRING, 'segment', 'UTF8', "default", ), # 1
(2, TType.LIST, 'keys', (TType.STRING, 'UTF8', False), None, ), # 2
(3, TType.LIST, 'values', (TType.I64, None, False), None, ), # 3
(4, TType.LIST, 'index', (TType.I32, None, False), None, ), # 4
(5, TType.BOOL, 'need_routing', None, True, ), # 5
)
all_structs.append(MultiIncrCounterTtlRequest)
MultiIncrCounterTtlRequest.thrift_spec = (
None, # 0
(1, TType.STRING, 'segment', 'UTF8', "default", ), # 1
(2, TType.LIST, 'keys', (TType.STRING, 'UTF8', False), None, ), # 2
(3, TType.LIST, 'values', (TType.I64, None, False), None, ), # 3
(4, TType.LIST, 'ttl_secs', (TType.I32, None, False), None, ), # 4
(5, TType.LIST, 'index', (TType.I32, None, False), None, ), # 5
(6, TType.BOOL, 'need_routing', None, True, ), # 6
)
all_structs.append(MultiIncrCounterResponse)
MultiIncrCounterResponse.thrift_spec = (
None, # 0
(1, TType.LIST, 'responses', (TType.STRUCT, [IncrCounterResponse, None], False), None, ), # 1
(2, TType.LIST, 'sub_request_indices', (TType.I32, None, False), None, ), # 2
)
all_structs.append(GetCounterRequest)
GetCounterRequest.thrift_spec = (
None, # 0
(1, TType.STRING, 'segment', 'UTF8', "default", ), # 1
(2, TType.STRING, 'key', 'UTF8', None, ), # 2
(3, TType.BOOL, 'need_routing', None, True, ), # 3
)
all_structs.append(GetCounterResponse)
GetCounterResponse.thrift_spec = (
None, # 0
(1, TType.I64, 'value', None, None, ), # 1
(2, TType.STRUCT, 'error', [SharestoreException, None], None, ), # 2
)
all_structs.append(SetCounterRequest)
SetCounterRequest.thrift_spec = (
None, # 0
(1, TType.STRING, 'segment', 'UTF8', "default", ), # 1
(2, TType.STRING, 'key', 'UTF8', None, ), # 2
(3, TType.I64, 'value', None, None, ), # 3
(4, TType.BOOL, 'need_routing', None, True, ), # 4
)
all_structs.append(SetCounterTtlRequest)
SetCounterTtlRequest.thrift_spec = (
None, # 0
(1, TType.STRING, 'segment', 'UTF8', "default", ), # 1
(2, TType.STRING, 'key', 'UTF8', None, ), # 2
(3, TType.I64, 'value', None, None, ), # 3
(4, TType.I32, 'ttl_sec', None, None, ), # 4
(5, TType.BOOL, 'need_routing', None, True, ), # 5
)
all_structs.append(SetCounterResponse)
SetCounterResponse.thrift_spec = (
None, # 0
(1, TType.STRUCT, 'error', [SharestoreException, None], None, ), # 1
)
all_structs.append(MultiSetCounterRequest)
MultiSetCounterRequest.thrift_spec = (
None, # 0
(1, TType.STRING, 'segment', 'UTF8', "default", ), # 1
(2, TType.LIST, 'keys', (TType.STRING, 'UTF8', False), None, ), # 2
(3, TType.LIST, 'values', (TType.I64, None, False), None, ), # 3
(4, TType.LIST, 'index', (TType.I32, None, False), None, ), # 4
(5, TType.BOOL, 'need_routing', None, True, ), # 5
)
all_structs.append(MultiSetCounterTtlRequest)
MultiSetCounterTtlRequest.thrift_spec = (
None, # 0
(1, TType.STRING, 'segment', 'UTF8', "default", ), # 1
(2, TType.LIST, 'keys', (TType.STRING, 'UTF8', False), None, ), # 2
(3, TType.LIST, 'values', (TType.I64, None, False), None, ), # 3
(4, TType.LIST, 'ttl_secs', (TType.I32, None, False), None, ), # 4
(5, TType.LIST, 'index', (TType.I32, None, False), None, ), # 5
(6, TType.BOOL, 'need_routing', None, True, ), # 6
)
all_structs.append(MultiSetCounterResponse)
MultiSetCounterResponse.thrift_spec = (
None, # 0
(1, TType.LIST, 'responses', (TType.STRUCT, [SetCounterResponse, None], False), None, ), # 1
(2, TType.LIST, 'sub_request_indices', (TType.I32, None, False), None, ), # 2
)
all_structs.append(MultiGetCounterRequest)
MultiGetCounterRequest.thrift_spec = (
None, # 0
(1, TType.STRING, 'segment', 'UTF8', "default", ), # 1
(2, TType.LIST, 'keys', (TType.STRING, 'UTF8', False), None, ), # 2
(3, TType.LIST, 'index', (TType.I32, None, False), None, ), # 3
(4, TType.BOOL, 'need_routing', None, True, ), # 4
)
all_structs.append(MultiGetCounterResponse)
MultiGetCounterResponse.thrift_spec = (
None, # 0
(1, TType.LIST, 'responses', (TType.STRUCT, [GetCounterResponse, None], False), None, ), # 1
(2, TType.LIST, 'sub_request_indices', (TType.I32, None, False), None, ), # 2
)
all_structs.append(HashValue)
HashValue.thrift_spec = (
None, # 0
(1, TType.STRING, 'str_val', 'UTF8', None, ), # 1
(2, TType.I64, 'int_val', None, None, ), # 2
(3, TType.STRING, 'buf_val', 'BINARY', None, ), # 3
)
all_structs.append(HashSetRequest)
HashSetRequest.thrift_spec = (
None, # 0
(1, TType.STRING, 'segment', 'UTF8', "default", ), # 1
(2, TType.STRING, 'key', 'UTF8', None, ), # 2
(3, TType.LIST, 'members', (TType.STRING, 'UTF8', False), None, ), # 3
(4, TType.LIST, 'values', (TType.STRUCT, [HashValue, None], False), None, ), # 4
(5, TType.LIST, 'ttl_secs', (TType.I32, None, False), None, ), # 5
(6, TType.BOOL, 'need_routing', None, True, ), # 6
)
all_structs.append(HashSetResponse)
HashSetResponse.thrift_spec = (
None, # 0
(1, TType.STRUCT, 'error', [SharestoreException, None], None, ), # 1
)
all_structs.append(MultiHashSetRequest)
MultiHashSetRequest.thrift_spec = (
None, # 0
(1, TType.STRING, 'segment', 'UTF8', "default", ), # 1
(2, TType.LIST, 'keys', (TType.STRING, 'UTF8', False), None, ), # 2
(3, TType.LIST, 'members', (TType.LIST, (TType.STRING, 'UTF8', False), False), None, ), # 3
(4, TType.LIST, 'values', (TType.LIST, (TType.STRUCT, [HashValue, None], False), False), None, ), # 4
(5, TType.LIST, 'ttl_secs', (TType.LIST, (TType.I32, None, False), False), None, ), # 5
(6, TType.LIST, 'index', (TType.I32, None, False), None, ), # 6
(7, TType.BOOL, 'need_routing', None, True, ), # 7
)
all_structs.append(MultiHashSetResponse)
MultiHashSetResponse.thrift_spec = (
None, # 0
(1, TType.LIST, 'responses', (TType.STRUCT, [HashSetResponse, None], False), None, ), # 1
(2, TType.LIST, 'sub_request_indices', (TType.I32, None, False), None, ), # 2
)
all_structs.append(HashRemRequest)
HashRemRequest.thrift_spec = (
None, # 0
(1, TType.STRING, 'segment', 'UTF8', "default", ), # 1
(2, TType.STRING, 'key', 'UTF8', None, ), # 2
(3, TType.I32, 'type', None, 0, ), # 3
(4, TType.LIST, 'members', (TType.STRING, 'UTF8', False), None, ), # 4
(5, TType.BOOL, 'need_routing', None, True, ), # 5
)
all_structs.append(HashRemResponse)
HashRemResponse.thrift_spec = (
None, # 0
(1, TType.STRUCT, 'error', [SharestoreException, None], None, ), # 1
)
all_structs.append(MultiHashRemRequest)
MultiHashRemRequest.thrift_spec = (
None, # 0
(1, TType.STRING, 'segment', 'UTF8', "default", ), # 1
(2, TType.LIST, 'keys', (TType.STRING, 'UTF8', False), None, ), # 2
(3, TType.LIST, 'types', (TType.I32, None, False), [
], ), # 3
(4, TType.LIST, 'members', (TType.LIST, (TType.STRING, 'UTF8', False), False), None, ), # 4
(5, TType.LIST, 'index', (TType.I32, None, False), None, ), # 5
(6, TType.BOOL, 'need_routing', None, True, ), # 6
)
all_structs.append(MultiHashRemResponse)
MultiHashRemResponse.thrift_spec = (
None, # 0
(1, TType.LIST, 'responses', (TType.STRUCT, [HashRemResponse, None], False), None, ), # 1
(2, TType.LIST, 'sub_request_indices', (TType.I32, None, False), None, ), # 2
)
all_structs.append(HashGetRequest)
HashGetRequest.thrift_spec = (
None, # 0
(1, TType.STRING, 'segment', 'UTF8', "default", ), # 1
(2, TType.STRING, 'key', 'UTF8', None, ), # 2
(3, TType.I32, 'type', None, 0, ), # 3
(4, TType.LIST, 'members', (TType.STRING, 'UTF8', False), None, ), # 4
(5, TType.BOOL, 'need_routing', None, True, ), # 5
(6, TType.I32, 'max_nums', None, 5000, ), # 6
)
all_structs.append(HashGetResponse)
HashGetResponse.thrift_spec = (
None, # 0
(1, TType.LIST, 'members', (TType.STRING, 'UTF8', False), None, ), # 1
(2, TType.LIST, 'values', (TType.STRUCT, [HashValue, None], False), None, ), # 2
(3, TType.STRUCT, 'error', [SharestoreException, None], None, ), # 3
)
all_structs.append(MultiHashGetRequest)
MultiHashGetRequest.thrift_spec = (
None, # 0
(1, TType.STRING, 'segment', 'UTF8', "default", ), # 1
(2, TType.LIST, 'keys', (TType.STRING, 'UTF8', False), None, ), # 2
(3, TType.LIST, 'types', (TType.I32, None, False), [
], ), # 3
(4, TType.LIST, 'members', (TType.LIST, (TType.STRING, 'UTF8', False), False), None, ), # 4
(5, TType.I32, 'max_nums', None, 5000, ), # 5
(6, TType.LIST, 'index', (TType.I32, None, False), None, ), # 6
(7, TType.BOOL, 'need_routing', None, True, ), # 7
)
all_structs.append(MultiHashGetResponse)
MultiHashGetResponse.thrift_spec = (
None, # 0
(1, TType.LIST, 'responses', (TType.STRUCT, [HashGetResponse, None], False), None, ), # 1
(2, TType.LIST, 'sub_request_indices', (TType.I32, None, False), None, ), # 2
)
all_structs.append(HashIncrRequest)
HashIncrRequest.thrift_spec = (
None, # 0
(1, TType.STRING, 'segment', 'UTF8', "default", ), # 1
(2, TType.STRING, 'key', 'UTF8', None, ), # 2
(3, TType.LIST, 'members', (TType.STRING, 'UTF8', False), None, ), # 3
(4, TType.LIST, 'values', (TType.I64, None, False), None, ), # 4
(5, TType.BOOL, 'need_routing', None, True, ), # 5
)
all_structs.append(HashIncrResponse)
HashIncrResponse.thrift_spec = (
None, # 0
(1, TType.STRUCT, 'error', [SharestoreException, None], None, ), # 1
)
all_structs.append(HashCountRequest)
HashCountRequest.thrift_spec = (
None, # 0
(1, TType.STRING, 'segment', 'UTF8', "default", ), # 1
(2, TType.STRING, 'key', 'UTF8', None, ), # 2
(3, TType.I32, 'type', None, 0, ), # 3
(4, TType.BOOL, 'need_routing', None, True, ), # 4
(5, TType.I32, 'max_nums', None, 5000, ), # 5
)
all_structs.append(HashCountResponse)
HashCountResponse.thrift_spec = (
None, # 0
(1, TType.I32, 'count', None, 0, ), # 1
(2, TType.STRUCT, 'error', [SharestoreException, None], None, ), # 2
)
all_structs.append(HashExSetRequest)
HashExSetRequest.thrift_spec = (
None, # 0
(1, TType.STRING, 'segment', 'UTF8', "default", ), # 1
(2, TType.STRING, 'key', 'UTF8', None, ), # 2
(3, TType.LIST, 'members', (TType.STRING, 'UTF8', False), None, ), # 3
(4, TType.LIST, 'values', (TType.STRUCT, [HashValue, None], False), None, ), # 4
(5, TType.I64, 'version', None, 0, ), # 5
(6, TType.LIST, 'ttl_secs', (TType.I32, None, False), None, ), # 6
(7, TType.BOOL, 'need_routing', None, True, ), # 7
)
all_structs.append(HashExSetResponse)
HashExSetResponse.thrift_spec = (
None, # 0
(1, TType.I64, 'version', None, None, ), # 1
(2, TType.STRUCT, 'error', [SharestoreException, None], None, ), # 2
)
all_structs.append(HashExRemRequest)
HashExRemRequest.thrift_spec = (
None, # 0
(1, TType.STRING, 'segment', 'UTF8', "default", ), # 1
(2, TType.STRING, 'key', 'UTF8', None, ), # 2
(3, TType.I32, 'type', None, 0, ), # 3
(4, TType.I64, 'version', None, 0, ), # 4
(5, TType.LIST, 'members', (TType.STRING, 'UTF8', False), None, ), # 5
(6, TType.BOOL, 'need_routing', None, True, ), # 6
)
all_structs.append(HashExRemResponse)
HashExRemResponse.thrift_spec = (
None, # 0
(1, TType.I64, 'version', None, 0, ), # 1
(2, TType.STRUCT, 'error', [SharestoreException, None], None, ), # 2
)
all_structs.append(HashExGetRequest)
HashExGetRequest.thrift_spec = (
None, # 0
(1, TType.STRING, 'segment', 'UTF8', "default", ), # 1
(2, TType.STRING, 'key', 'UTF8', None, ), # 2
(3, TType.I32, 'type', None, 0, ), # 3
(4, TType.LIST, 'members', (TType.STRING, 'UTF8', False), None, ), # 4
(5, TType.BOOL, 'need_routing', None, True, ), # 5
(6, TType.I32, 'max_nums', None, 5000, ), # 6
)
all_structs.append(HashExGetResponse)
HashExGetResponse.thrift_spec = (
None, # 0
(1, TType.LIST, 'members', (TType.STRING, 'UTF8', False), None, ), # 1
(2, TType.LIST, 'values', (TType.STRUCT, [HashValue, None], False), None, ), # 2
(3, TType.I64, 'version', None, None, ), # 3
(4, TType.STRUCT, 'error', [SharestoreException, None], None, ), # 4
)
all_structs.append(HashExIncrRequest)
HashExIncrRequest.thrift_spec = (
None, # 0
(1, TType.STRING, 'segment', 'UTF8', "default", ), # 1
(2, TType.STRING, 'key', 'UTF8', None, ), # 2
(3, TType.LIST, 'members', (TType.STRING, 'UTF8', False), None, ), # 3
(4, TType.LIST, 'values', (TType.I64, None, False), None, ), # 4
(5, TType.I64, 'version', None, 0, ), # 5
(6, TType.BOOL, 'need_routing', None, True, ), # 6
)
all_structs.append(HashExIncrResponse)
HashExIncrResponse.thrift_spec = (
None, # 0
(1, TType.I64, 'version', None, None, ), # 1
(2, TType.STRUCT, 'error', [SharestoreException, None], None, ), # 2
)
all_structs.append(HashExCountRequest)
HashExCountRequest.thrift_spec = (
None, # 0
(1, TType.STRING, 'segment', 'UTF8', "default", ), # 1
(2, TType.STRING, 'key', 'UTF8', None, ), # 2
(3, TType.I32, 'type', None, 0, ), # 3
(4, TType.I64, 'version', None, 0, ), # 4
(5, TType.BOOL, 'need_routing', None, True, ), # 5
(6, TType.I32, 'max_nums', None, 5000, ), # 6
)
all_structs.append(HashExCountResponse)
HashExCountResponse.thrift_spec = (
None, # 0
(1, TType.I32, 'count', None, 0, ), # 1
(2, TType.I64, 'version', None, None, ), # 2
(3, TType.STRUCT, 'error', [SharestoreException, None], None, ), # 3
)
all_structs.append(ZSetAddRequest)
ZSetAddRequest.thrift_spec = (
None, # 0
(1, TType.STRING, 'segment', 'UTF8', "default", ), # 1
(2, TType.STRING, 'key', 'UTF8', None, ), # 2
(3, TType.LIST, 'members', (TType.STRING, 'UTF8', False), None, ), # 3
(4, TType.LIST, 'scores', (TType.I64, None, False), None, ), # 4
(5, TType.LIST, 'ttl_secs', (TType.I32, None, False), None, ), # 5
(6, TType.BOOL, 'need_routing', None, True, ), # 6
)
all_structs.append(ZSetAddResponse)
ZSetAddResponse.thrift_spec = (
None, # 0
(1, TType.STRUCT, 'error', [SharestoreException, None], None, ), # 1
)
all_structs.append(ZSetRemRequest)
ZSetRemRequest.thrift_spec = (
None, # 0
(1, TType.STRING, 'segment', 'UTF8', "default", ), # 1
(2, TType.STRING, 'key', 'UTF8', None, ), # 2
(3, TType.LIST, 'members', (TType.STRING, 'UTF8', False), None, ), # 3
(4, TType.BOOL, 'need_routing', None, True, ), # 4
)
all_structs.append(ZSetRemResponse)
ZSetRemResponse.thrift_spec = (
None, # 0
(1, TType.STRUCT, 'error', [SharestoreException, None], None, ), # 1
)
all_structs.append(ZSetGetRequest)
ZSetGetRequest.thrift_spec = (
None, # 0
(1, TType.STRING, 'segment', 'UTF8', "default", ), # 1
(2, TType.STRING, 'key', 'UTF8', None, ), # 2
(3, TType.BOOL, 'with_scores', None, True, ), # 3
(4, TType.LIST, 'members', (TType.STRING, 'UTF8', False), None, ), # 4
(5, TType.BOOL, 'need_routing', None, True, ), # 5
(6, TType.I32, 'max_nums', None, 5000, ), # 6
)
all_structs.append(ZSetGetResponse)
ZSetGetResponse.thrift_spec = (
None, # 0
(1, TType.LIST, 'members', (TType.STRING, 'UTF8', False), None, ), # 1
(2, TType.LIST, 'scores', (TType.I64, None, False), None, ), # 2
(3, TType.STRUCT, 'error', [SharestoreException, None], None, ), # 3
)
all_structs.append(IndexRange)
IndexRange.thrift_spec = (
None, # 0
(1, TType.I32, 'start', None, 0, ), # 1
(2, TType.I32, 'stop', None, -1, ), # 2
)
all_structs.append(ScoreRange)
ScoreRange.thrift_spec = (
None, # 0
(1, TType.I64, 'min', None, 0, ), # 1
(2, TType.I64, 'max', None, 9223372036854775807, ), # 2
)
all_structs.append(ZSetGetRangeRequest)
ZSetGetRangeRequest.thrift_spec = (
None, # 0
(1, TType.STRING, 'segment', 'UTF8', "default", ), # 1
None, # 2
(3, TType.STRING, 'key', 'UTF8', None, ), # 3
(4, TType.STRUCT, 'index_range', [IndexRange, None], None, ), # 4
(5, TType.STRUCT, 'score_range', [ScoreRange, None], None, ), # 5
(6, TType.BOOL, 'with_scores', None, True, ), # 6
(7, TType.BOOL, 'need_routing', None, True, ), # 7
(8, TType.I32, 'max_nums', None, 5000, ), # 8
)
all_structs.append(ZSetGetRangeResponse)
ZSetGetRangeResponse.thrift_spec = (
None, # 0
(1, TType.LIST, 'members', (TType.STRING, 'UTF8', False), None, ), # 1
(2, TType.LIST, 'scores', (TType.I64, None, False), None, ), # 2
(3, TType.STRUCT, 'error', [SharestoreException, None], None, ), # 3
)
all_structs.append(ZSetRemRangeRequest)
ZSetRemRangeRequest.thrift_spec = (
None, # 0
(1, TType.STRING, 'segment', 'UTF8', "default", ), # 1
(2, TType.STRING, 'key', 'UTF8', None, ), # 2
(3, TType.STRUCT, 'index_range', [IndexRange, None], None, ), # 3
(4, TType.STRUCT, 'score_range', [ScoreRange, None], None, ), # 4
(5, TType.BOOL, 'need_routing', None, True, ), # 5
)
all_structs.append(ZSetRemRangeResponse)
ZSetRemRangeResponse.thrift_spec = (
None, # 0
(1, TType.STRUCT, 'error', [SharestoreException, None], None, ), # 1
)
all_structs.append(ZSetCountRequest)
ZSetCountRequest.thrift_spec = (
None, # 0
(1, TType.STRING, 'segment', 'UTF8', "default", ), # 1
(2, TType.STRING, 'key', 'UTF8', None, ), # 2
(3, TType.BOOL, 'need_routing', None, True, ), # 3
(4, TType.I32, 'max_nums', None, 5000, ), # 4
)
all_structs.append(ZSetCountResponse)
ZSetCountResponse.thrift_spec = (
None, # 0
(1, TType.I32, 'count', None, 0, ), # 1
(2, TType.STRUCT, 'error', [SharestoreException, None], None, ), # 2
)
all_structs.append(ZSetScanRequest)
ZSetScanRequest.thrift_spec = (
None, # 0
(1, TType.STRING, 'segment', 'UTF8', "default", ), # 1
(2, TType.STRING, 'key', 'UTF8', None, ), # 2
(3, TType.STRING, 'cursor', 'BINARY', None, ), # 3
(4, TType.BOOL, 'with_scores', None, True, ), # 4
(5, TType.BOOL, 'is_reverse', None, False, ), # 5
(6, TType.BOOL, 'need_routing', None, True, ), # 6
(7, TType.I32, 'max_nums', None, 5000, ), # 7
)
all_structs.append(ZSetScanResponse)
ZSetScanResponse.thrift_spec = (
None, # 0
(1, TType.LIST, 'members', (TType.STRING, 'UTF8', False), None, ), # 1
(2, TType.LIST, 'scores', (TType.I64, None, False), None, ), # 2
(3, TType.STRING, 'cursor', 'BINARY', None, ), # 3
(4, TType.STRUCT, 'error', [SharestoreException, None], None, ), # 4
)
fix_spec(all_structs)
del all_structs
| 37.505411
| 141
| 0.552785
| 35,351
| 329,260
| 4.951402
| 0.020735
| 0.017996
| 0.032393
| 0.038872
| 0.907008
| 0.888566
| 0.879534
| 0.870793
| 0.866023
| 0.862669
| 0
| 0.023952
| 0.336576
| 329,260
| 8,778
| 142
| 37.509683
| 0.777357
| 0.015735
| 0
| 0.829285
| 1
| 0
| 0.039884
| 0.000651
| 0
| 0
| 0
| 0
| 0
| 1
| 0.079929
| false
| 0
| 0.000814
| 0.024834
| 0.165016
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 8
|
be32fb3b31cd414dc9ea50ba7282439726a42d44
| 3,891
|
py
|
Python
|
mentoring_app/migrations/0005_auto_20211227_0650.py
|
ShouravAhmed/Luminar
|
f80c621028f81ef7f657592560e4c95fd8e91699
|
[
"MIT"
] | null | null | null |
mentoring_app/migrations/0005_auto_20211227_0650.py
|
ShouravAhmed/Luminar
|
f80c621028f81ef7f657592560e4c95fd8e91699
|
[
"MIT"
] | null | null | null |
mentoring_app/migrations/0005_auto_20211227_0650.py
|
ShouravAhmed/Luminar
|
f80c621028f81ef7f657592560e4c95fd8e91699
|
[
"MIT"
] | null | null | null |
# Generated by Django 3.2.7 on 2021-12-27 06:50
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('user_app', '0003_auto_20211202_1304'),
('mentoring_app', '0004_userenroll_userenroll_program'),
]
operations = [
migrations.AlterField(
model_name='feature',
name='feature_program',
field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='feature_program', to='mentoring_app.mentoringprogram'),
),
migrations.AlterField(
model_name='mentoringprogram',
name='admin',
field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='admin', to='user_app.profile'),
),
migrations.AlterField(
model_name='mmchat',
name='mmchat_mentor',
field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='mmchat_mentor', to='user_app.profile'),
),
migrations.AlterField(
model_name='mmchat',
name='mmchat_program',
field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='mmchat_program', to='mentoring_app.mentoringprogram'),
),
migrations.AlterField(
model_name='mmchat',
name='mmchat_receiver',
field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='mmchat_receiver', to='user_app.profile'),
),
migrations.AlterField(
model_name='mmchat',
name='mmchat_sender',
field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='mmchat_sender', to='user_app.profile'),
),
migrations.AlterField(
model_name='mmtask',
name='mmtask_mentor',
field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='mmtask_mentor', to='user_app.profile'),
),
migrations.AlterField(
model_name='mmtask',
name='mmtask_program',
field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='mmtask_program', to='mentoring_app.mentoringprogram'),
),
migrations.AlterField(
model_name='userenroll',
name='mentor',
field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='mentor', to='user_app.profile'),
),
migrations.AlterField(
model_name='userenroll',
name='user_profile',
field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='user_profile', to='user_app.profile'),
),
migrations.AlterField(
model_name='userenroll',
name='userenroll_program',
field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='userenroll_program', to='mentoring_app.mentoringprogram'),
),
migrations.AlterField(
model_name='userresponse',
name='feature',
field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='feature', to='mentoring_app.feature'),
),
migrations.AlterField(
model_name='userresponse',
name='userresponse_profile',
field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='userresponse_profile', to='user_app.profile'),
),
]
| 48.037037
| 176
| 0.652788
| 425
| 3,891
| 5.788235
| 0.127059
| 0.04878
| 0.079675
| 0.125203
| 0.834959
| 0.822764
| 0.792276
| 0.785772
| 0.785772
| 0.671138
| 0
| 0.011544
| 0.220766
| 3,891
| 80
| 177
| 48.6375
| 0.799802
| 0.011565
| 0
| 0.5
| 1
| 0
| 0.205515
| 0.051509
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.027027
| 0
| 0.067568
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
be7a372a184754ffcf5321e847c0122ce49421d6
| 106
|
py
|
Python
|
basiqrapid/__init__.py
|
mike-gee/basiqrapid
|
0e177a13a08f8247a74df680a47f85183a758d90
|
[
"MIT"
] | 1
|
2019-03-25T01:25:20.000Z
|
2019-03-25T01:25:20.000Z
|
basiqrapid/__init__.py
|
mike-gee/basiqrapid
|
0e177a13a08f8247a74df680a47f85183a758d90
|
[
"MIT"
] | null | null | null |
basiqrapid/__init__.py
|
mike-gee/basiqrapid
|
0e177a13a08f8247a74df680a47f85183a758d90
|
[
"MIT"
] | null | null | null |
try:
from .main import Session
from .util import *
except:
from main import Session
from util import *
| 17.666667
| 26
| 0.745283
| 16
| 106
| 4.9375
| 0.4375
| 0.202532
| 0.35443
| 0.531646
| 0.886076
| 0.886076
| 0.886076
| 0
| 0
| 0
| 0
| 0
| 0.198113
| 106
| 6
| 27
| 17.666667
| 0.929412
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0.666667
| 0
| 0.666667
| 0
| 1
| 0
| 0
| null | 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 11
|
fe5511316b7f0a959c1ca0e82a4ff617deabb7bf
| 5,223
|
py
|
Python
|
tests/monitor/test_component_keys.py
|
marco-buttu/suricate
|
89cb406ffde7a67db2ac8594d3e9c371924c57bb
|
[
"BSD-3-Clause"
] | 1
|
2020-03-26T15:27:42.000Z
|
2020-03-26T15:27:42.000Z
|
tests/monitor/test_component_keys.py
|
marco-buttu/suricate
|
89cb406ffde7a67db2ac8594d3e9c371924c57bb
|
[
"BSD-3-Clause"
] | 75
|
2019-08-19T14:21:08.000Z
|
2020-03-26T11:24:12.000Z
|
tests/monitor/test_component_keys.py
|
marco-buttu/suricate
|
89cb406ffde7a67db2ac8594d3e9c371924c57bb
|
[
"BSD-3-Clause"
] | null | null | null |
import pytest
import time
import json
import suricate.component
from mock import patch, mock_open
user_config = """
COMPONENTS:
TestNamespace/Positioner01:
startup_delay: 0
container: PositionerContainer
methods:
- name: getPosition
timer: 0.2
properties:
- name: position
timer: 0.2
TestNamespace/Positioner02:
startup_delay: 0
container: PositionerContainer
methods:
- name: getPosition
timer: 0.2
properties:
- name: position
timer: 0.2
- name: current
timer: 0.2
TestNamespace/Positioner03:
startup_delay: 0
container: PositionerContainer
properties:
- name: current
timer: 0.2
HTTP:
baseurl: http://127.0.0.1
port: 5000
SCHEDULER:
reschedule_error_interval: 0.4
reschedule_interval: 0.2
"""
startup_time = 5 # Seconds
def test_all_components_unavailable(Publisher, redis_client):
try: # Load the user configuration
from suricate import configuration
func = "suricate.configuration.open"
with patch(func, mock_open(read_data=user_config)) as f:
reload(configuration)
f.assert_called_with(configuration.config_file)
from suricate.configuration import config
# Components not available before starting the scheduler
for c in config['COMPONENTS']:
suricate.component.Component.unavailables.append(c)
p = Publisher(config['COMPONENTS'])
p.start()
time.sleep(startup_time)
waiting_time = 3 * config['SCHEDULER']['reschedule_interval']
time.sleep(waiting_time)
components = redis_client.hgetall('components')
assert len(components) == 3
assert components['TestNamespace/Positioner01'] == 'unavailable'
assert components['TestNamespace/Positioner02'] == 'unavailable'
assert components['TestNamespace/Positioner03'] == 'unavailable'
finally:
suricate.component.Component.unavailables = []
reload(configuration)
def test_all_components_available(Publisher, redis_client):
try: # Load the user configuration
from suricate import configuration
func = "suricate.configuration.open"
with patch(func, mock_open(read_data=user_config)) as f:
reload(configuration)
f.assert_called_with(configuration.config_file)
from suricate.configuration import config
p = Publisher(config['COMPONENTS'])
p.start()
time.sleep(startup_time)
waiting_time = 3 * config['SCHEDULER']['reschedule_interval']
time.sleep(waiting_time)
components = redis_client.hgetall('components')
assert len(components) == 3
assert components['TestNamespace/Positioner01'] == 'available'
assert components['TestNamespace/Positioner02'] == 'available'
assert components['TestNamespace/Positioner03'] == 'available'
finally:
suricate.component.Component.unavailables = []
reload(configuration)
def test_some_components_unavailable(Publisher, redis_client):
try: # Load the user configuration
from suricate import configuration
func = "suricate.configuration.open"
with patch(func, mock_open(read_data=user_config)) as f:
reload(configuration)
f.assert_called_with(configuration.config_file)
from suricate.configuration import config
# Components not available before starting the scheduler
suricate.component.Component.unavailables.append(
'TestNamespace/Positioner02'
)
p = Publisher(config['COMPONENTS'])
p.start()
time.sleep(startup_time)
waiting_time = 3 * config['SCHEDULER']['reschedule_interval']
time.sleep(waiting_time)
components = redis_client.hgetall('components')
assert len(components) == 3
assert components['TestNamespace/Positioner01'] == 'available'
assert components['TestNamespace/Positioner02'] == 'unavailable'
assert components['TestNamespace/Positioner03'] == 'available'
suricate.component.Component.unavailables.remove(
'TestNamespace/Positioner02'
)
time.sleep(startup_time)
time.sleep(waiting_time)
components = redis_client.hgetall('components')
assert len(components) == 3
assert components['TestNamespace/Positioner01'] == 'available'
assert components['TestNamespace/Positioner02'] == 'available'
assert components['TestNamespace/Positioner03'] == 'available'
suricate.component.Component.unavailables.append(
'TestNamespace/Positioner01'
)
time.sleep(startup_time)
time.sleep(waiting_time)
components = redis_client.hgetall('components')
assert len(components) == 3
assert components['TestNamespace/Positioner01'] == 'unavailable'
assert components['TestNamespace/Positioner02'] == 'available'
assert components['TestNamespace/Positioner03'] == 'available'
finally:
suricate.component.Component.unavailables = []
reload(configuration)
if __name__ == '__main__':
pytest.main()
| 35.530612
| 72
| 0.674325
| 506
| 5,223
| 6.826087
| 0.167984
| 0.106543
| 0.125941
| 0.077012
| 0.874349
| 0.839317
| 0.817313
| 0.817313
| 0.817313
| 0.740012
| 0
| 0.01993
| 0.231476
| 5,223
| 146
| 73
| 35.773973
| 0.840558
| 0.038484
| 0
| 0.763359
| 0
| 0
| 0.31326
| 0.130808
| 0
| 0
| 0
| 0
| 0.175573
| 1
| 0.022901
| false
| 0
| 0.083969
| 0
| 0.10687
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
fe765ac839edd71f1e68d4d517e51ee750d88cac
| 122
|
py
|
Python
|
vistrails/tests/resources/import_pkg/test_import_pkg/module2.py
|
celiafish/VisTrails
|
d8cb575b8b121941de190fe608003ad1427ef9f6
|
[
"BSD-3-Clause"
] | 83
|
2015-01-05T14:50:50.000Z
|
2021-09-17T19:45:26.000Z
|
vistrails/tests/resources/import_pkg/test_import_pkg/module2.py
|
celiafish/VisTrails
|
d8cb575b8b121941de190fe608003ad1427ef9f6
|
[
"BSD-3-Clause"
] | 254
|
2015-01-02T20:39:19.000Z
|
2018-11-28T17:16:44.000Z
|
vistrails/tests/resources/import_pkg/test_import_pkg/module2.py
|
celiafish/VisTrails
|
d8cb575b8b121941de190fe608003ad1427ef9f6
|
[
"BSD-3-Clause"
] | 40
|
2015-04-17T16:46:36.000Z
|
2021-09-28T22:43:24.000Z
|
# pragma: no testimport
import vistrails.tests.resources.import_targets.test5
import tests.resources.import_targets.test6
| 30.5
| 53
| 0.860656
| 16
| 122
| 6.4375
| 0.625
| 0.271845
| 0.38835
| 0.524272
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.017544
| 0.065574
| 122
| 3
| 54
| 40.666667
| 0.885965
| 0.172131
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 0
| 1
| 0
| 1
| 0
| 0
| null | 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 8
|
feacbe2ae292496b0478fa23b69d0fcc992424f7
| 72,392
|
py
|
Python
|
bench/lib/pg_workload_lib.py
|
TheYonk/os-db-json-tester
|
9209a5022b195d245a70312f9faea3fa38d71c5b
|
[
"MIT"
] | 6
|
2021-08-25T14:16:22.000Z
|
2022-03-14T06:23:08.000Z
|
bench/lib/pg_workload_lib.py
|
TheYonk/os-db-json-tester
|
9209a5022b195d245a70312f9faea3fa38d71c5b
|
[
"MIT"
] | null | null | null |
bench/lib/pg_workload_lib.py
|
TheYonk/os-db-json-tester
|
9209a5022b195d245a70312f9faea3fa38d71c5b
|
[
"MIT"
] | 3
|
2021-08-25T14:16:25.000Z
|
2021-12-10T13:24:35.000Z
|
import time
import random
import argparse
import threading
import logging
import psycopg2
import string
import os
import sys
def load_db(MYDSN):
print ('inside load function')
load_ids = "select ai_myid, imdb_id, year from movies_normalized_meta"
load_actors = "select actor_name from movies_normalized_actors where actor_name != ''"
load_titles = "select title, imdb_id, year from movies_normalized_meta"
load_directors = "select director from movies_normalized_director"
comments_cleanup = "truncate movies_normalized_user_comments"
directors_with_50_movies = "select director from movies_normalized_director group by director having count(*) > 49"
actors_with_50_movies = "select ai_actor_id from movies_normalized_cast group by ai_actor_id having count(*) > 49"
actors_with_200_movies = "select ai_actor_id from movies_normalized_cast group by ai_actor_id having count(*) > 199"
returnval = dict()
# actors list stored here for random searches
list_actors=[]
#titles list here for random searches
list_titles=[]
#list of ids
list_ids=[]
#list of ids
list_directors=[]
movie_years= dict()
ai_myids=[]
#MYDSN = pg_return_dsn()
cnx = psycopg2.connect(MYDSN)
#cnx.set_session(readonly=True, autocommit=True)
cursor = cnx.cursor()
cursor.execute(load_ids)
for (ai_myid, imdb_id, mv_year) in cursor:
ai_myids.append(ai_myid);
list_ids.append(imdb_id);
movie_years[imdb_id] = mv_year
logging.info("Loading Actors...")
#cursor.execute(comments_cleanup)
#cnx.commit()
#func_fill_random_comments(MYDSN,ai_myids,100000)
cursor.execute(load_actors)
for actor_name in cursor:
list_actors.append(actor_name);
logging.info("Loading Titles & ID's...")
cursor.execute(load_titles)
for (movie_titles, imdb_id, mv_year) in cursor:
list_titles.append(movie_titles);
list_ids.append(imdb_id);
movie_years[imdb_id] = mv_year
logging.info("Loading Movies and Directors with Many Movies")
cursor.execute(directors_with_50_movies)
list_50_directors = cursor.fetchall()
cursor.execute(actors_with_50_movies)
list_50_actors = cursor.fetchall()
cursor.execute(actors_with_200_movies)
list_200_actors = cursor.fetchall()
returnval['list_actors'] = list_actors
returnval['list_titles'] = list_titles
returnval['list_ids'] = list_ids
returnval['ai_myids'] = ai_myids
returnval['directors_with_50_movies'] = list_50_directors
returnval['actors_with_50_movies'] = list_50_actors
returnval['actors_with_200_movies'] = list_200_actors
return returnval
def query_db(cnx,sql,parms,fetch):
x=[]
try:
cursor = cnx.cursor()
cursor.execute(sql, parms)
if fetch:
x = cursor.fetchall()
cnx.commit();
except:
logging.error("Issue was raised in the query db function")
return(x)
def query_db_new_connect(MYDSN,sql,parms,fetch):
x=[]
connect = psycopg2.connect(MYDSN)
cursor = connect.cursor()
cursor.execute(sql, parms)
if fetch:
x = cursor.fetchall()
connect.commit()
connect.close()
return(x)
def new_connection(MYDSN):
connect = psycopg2.connect(MYDSN)
return connect
def single_user_actions_v2(MYDSN,time_to_run,sleep_timer,create_new_connection,create_new_connection_per_qry,list_actors,list_tiles,list_ids,ai_myids,default_values,activelist1,mytime,mycount,wid):
try:
current_time = 0
start_time = 0
qry = 0
debug = 0
pid = os.getpid()
logging.info("pid: %s" , pid)
logging.info("Active List: %s", str(activelist1))
find_movies_by_actor = "select title, imdb_rating, actor_character from movies_normalized_meta a, movies_normalized_cast b, movies_normalized_actors c where a.ai_myid=b.ai_myid and b.ai_actor_id = c.ai_actor_id and actor_name= %s and actor_name != ''"
find_movies_by_title = "select imdb_id, title, imdb_rating from movies_normalized_meta a where title = %s"
find_movies_by_fuzzy_actor = "select imdb_id, title, imdb_rating, actor_character from movies_normalized_meta a, movies_normalized_cast b, movies_normalized_actors c where a.ai_myid=b.ai_myid and b.ai_actor_id = c.ai_actor_id and actor_name like %s"
simulate_finding_a_movie_record = "select ai_myid, imdb_id, year, title, json_column from movies_normalized_meta where imdb_id = %s"
simulate_comment_on_movie = "insert into movies_normalized_user_comments (ai_myid, rating, comment ) values ( %s, %s, %s )"
simulate_updating_movie_record_with_vote = "update movies_normalized_meta set upvotes=upvotes+%s, downvotes=downvotes+%s where ai_myid = %s"
if create_new_connection :
my_query = query_db
parm1 = psycopg2.connect(MYDSN)
else :
if create_new_connection_per_qry :
my_query = query_db_new_connect
parm1 = MYDSN
else :
my_query = query_db
parm1 = psycopg2.connect(MYDSN)
parm1.commit()
letters = string.ascii_lowercase
start_time = time.perf_counter()
count = 0
while activelist1[os.getpid()] == 1 :
current_time = time.perf_counter()
count = count +1;
if create_new_connection :
parm1.commit()
parm1.close()
my_query = query_db
parm1 = psycopg2.connect(MYDSN)
search_actor = random.choice(list_actors)
search_title = random.choice(list_tiles)
search_id = random.choice(list_ids)
x = func_find_movie_by_actor(my_query,parm1,random.choice(list_actors))
x = func_find_movie_by_actor(my_query,parm1,random.choice(list_actors))
x = func_find_movies_by_title(my_query,parm1,(random.choice(list_tiles),))
myid = x[0][0]
x = func_find_movie_comments (my_query,parm1,myid)
vote = func_generate_vote()
#logging.info(str(vote))
comment = func_generate_comment(letters,20,50)
y = func_comment_on_movie(my_query,parm1,myid,vote['uservote'], comment)
y = func_update_vote_movie(my_query,parm1,myid, vote['upvote'], vote['downvote'])
time.sleep(sleep_timer)
x = func_find_movies_by_id(my_query,parm1,(random.choice(list_ids),))
x = func_find_movie_comments (my_query,parm1,x[0][0])
x = func_find_movies_by_title(my_query,parm1,(random.choice(list_tiles),))
x = func_find_movies_by_id(my_query,parm1,(random.choice(list_ids),))
x = func_find_up_down_votes(my_query,parm1,(random.choice(list_ids),))
vote = func_generate_vote()
x = func_update_vote_movie(my_query,parm1,x[0][0], vote['upvote'],vote['downvote'])
mycount[wid] = mycount[wid] + 1
mytime[wid] = round(mytime[wid] +(time.perf_counter() -current_time),4)
if not create_new_connection_per_qry :
parm1.commit()
logging.info("Ending Loop....")
logging.info("Started at..." + str( start_time))
logging.info("Ended at..." + str( time.perf_counter()))
mytime1 = round(time.perf_counter()-start_time,3);
timeper = round(mytime1/count,2)
logging.info("Thread: %s Times looped: %s Time per Loop : %s total time: %s", wid, count, timeper, mytime1 )
del activelist1[os.getpid()]
exit()
except:
logging.error("This web thread failed.... ooooops")
mytime1 = round(time.perf_counter()-start_time,3);
timeper = round(mytime1/count,2)
logging.info("Thread: %s Times looped: %s Time per Loop : %s total time: %s", wid, count, timeper, mytime1 )
def single_user_actions_solo(MYDSN,time_to_run,sleep_timer,create_new_connection,create_new_connection_per_qry,list_actors,list_tiles,list_ids,ai_myids):
try:
current_time = 0
start_time = 0
qry = 0
debug = 0
runme = 1
find_movies_by_actor = "select title, imdb_rating, actor_character from movies_normalized_meta a, movies_normalized_cast b, movies_normalized_actors c where a.ai_myid=b.ai_myid and b.ai_actor_id = c.ai_actor_id and actor_name= %s and actor_name != ''"
find_movies_by_title = "select imdb_id, title, imdb_rating from movies_normalized_meta a where title = %s"
find_movies_by_fuzzy_actor = "select imdb_id, title, imdb_rating, actor_character from movies_normalized_meta a, movies_normalized_cast b, movies_normalized_actors c where a.ai_myid=b.ai_myid and b.ai_actor_id = c.ai_actor_id and actor_name like %s"
simulate_finding_a_movie_record = "select ai_myid, imdb_id, year, title, json_column from movies_normalized_meta where imdb_id = %s"
simulate_comment_on_movie = "insert into movies_normalized_user_comments (ai_myid, rating, comment ) values ( %s, %s, %s )"
simulate_updating_movie_record_with_vote = "update movies_normalized_meta set upvotes=upvotes+%s, downvotes=downvotes+%s where ai_myid = %s"
if create_new_connection :
my_query = query_db
parm1 = psycopg2.connect(MYDSN)
else :
if create_new_connection_per_qry :
my_query = query_db_new_connect
parm1 = MYDSN
else :
my_query = query_db
parm1 = psycopg2.connect(MYDSN)
parm1.commit()
letters = string.ascii_lowercase
start_time = time.perf_counter()
count = 0
while runme == 1 :
current_time = time.perf_counter()
count = count +1;
if create_new_connection :
parm1.commit()
parm1.close()
my_query = query_db
parm1 = psycopg2.connect(MYDSN)
search_actor = random.choice(list_actors)
search_title = random.choice(list_tiles)
search_id = random.choice(list_ids)
x = func_find_movie_by_actor(my_query,parm1,random.choice(list_actors))
x = func_find_movie_by_actor(my_query,parm1,random.choice(list_actors))
x = func_find_movies_by_title(my_query,parm1,(random.choice(list_tiles),))
myid = x[0][0]
x = func_find_movie_comments (my_query,parm1,myid)
vote = func_generate_vote()
#logging.info(str(vote))
comment = func_generate_comment(letters,20,50)
y = func_comment_on_movie(my_query,parm1,myid,vote['uservote'], comment)
y = func_update_vote_movie(my_query,parm1,myid, vote['upvote'], vote['downvote'])
time.sleep(sleep_timer)
x = func_find_movies_by_id(my_query,parm1,(random.choice(list_ids),))
x = func_find_movie_comments (my_query,parm1,x[0][0])
x = func_find_movies_by_title(my_query,parm1,(random.choice(list_tiles),))
x = func_find_movies_by_id(my_query,parm1,(random.choice(list_ids),))
x = func_find_up_down_votes(my_query,parm1,(random.choice(list_ids),))
vote = func_generate_vote()
x = func_update_vote_movie(my_query,parm1,x[0][0], vote['upvote'],vote['downvote'])
runme = 2
if not create_new_connection_per_qry :
parm1.commit()
logging.info("Ending Loop....")
logging.info("Started at..." + str( start_time))
logging.info("Ended at..." + str( time.perf_counter()))
mytime1 = round(time.perf_counter()-start_time,3);
timeper = round(mytime1/count,2)
logging.info("Thread: %s Times looped: %s Time per Loop : %s total time: %s", wid, count, timeper, mytime1 )
except:
logging.error("This web thread failed.... ooooops")
mytime1 = round(time.perf_counter()-start_time,3);
timeper = round(mytime1/count,2)
logging.info("Thread: %s Times looped: %s Time per Loop : %s total time: %s", wid, count, timeper, mytime1 )
def report_user_actions(MYDSN,time_to_run,sleep_timer,create_new_connection,create_new_connection_per_qry,list_actors,list_tiles,list_ids,ai_myids,default_values,activelist2,mytime,mycount,wid):
try:
current_time = 0
start_time = 0
qry = 0
debug = 0
logging.info("pid: %s" , os.getpid())
logging.info("Active List: %s" , str(activelist2))
if create_new_connection :
my_query = query_db
parm1 = psycopg2.connect(MYDSN)
else :
if create_new_connection_per_qry :
my_query = query_db_new_connect
parm1 = MYDSN
else :
my_query = query_db
parm1 = psycopg2.connect(MYDSN)
parm1.commit()
letters = string.ascii_lowercase
start_time = time.perf_counter()
count = 0
while activelist2[os.getpid()] == 1 :
current_time = time.perf_counter()
count = count +1;
if create_new_connection :
parm1.commit()
parm1.close()
my_query = query_db
parm1 = psycopg2.connect(MYDSN)
search_actor = random.choice(list_actors)
search_title = random.choice(list_tiles)
search_id = random.choice(list_ids)
year1 = random.randrange(1900, 2015, 5)
year2 = year1 + 5
x = func_rpt_ratings_over_year_range(my_query,parm1,year1,year2)
x = func_rpt_movies_by_year(my_query,parm1)
x = func_rpt_directors_year_range(my_query,parm1,year1,year2)
x = func_rpt_movies_for_actor(my_query,parm1,random.choice(list_actors))
x = func_rpt_movies_for_actor_fuzzy(my_query,parm1,random.choice(list_actors))
x = func_rpt_movies_for_actor_year(my_query,parm1,random.choice(list_actors),year1,year2)
x = func_rpt_movies_per_country_year(my_query,parm1,year1,year2)
x = func_rpt_material_vote_count(my_query,parm1,search_title)
mycount[wid] = mycount[wid] + 1
mytime[wid] = round(mytime[wid] +(time.perf_counter() -current_time),4)
if not create_new_connection_per_qry :
parm1.commit()
logging.info("Ending Loop....")
logging.info("Started at..." + str( start_time))
logging.info("Ended at..." + str( time.perf_counter()))
mytime1 = round(time.perf_counter()-start_time,3);
timeper = round(mytime1/count,2)
logging.info("Thread: %s Times looped: %s Time per Loop : %s total time: %s", wid, count, timeper, mytime1 )
del activelist2[os.getpid()]
exit()
except:
logging.error("This reporting thread failed.... ooooops")
mytime1 = round(time.perf_counter()-start_time,3);
timeper = round(mytime1/count,2)
logging.info("Thread: %s Times looped: %s Time per Loop : %s total time: %s", wid, count, timeper, mytime1 )
def insert_update_delete(MYDSN,time_to_run,sleep_timer,create_new_connection,create_new_connection_per_qry,list_actors,list_tiles,list_ids,ai_myids,default_values,activelist3,mytime,mycount,wid):
try:
current_time = 0
start_time = 0
qry = 0
debug = 0
logging.info("pid: %s" , os.getpid())
logging.info("Active List: %s" , str(activelist3))
if create_new_connection :
my_query = query_db
parm1 = psycopg2.connect(MYDSN)
else :
if create_new_connection_per_qry :
my_query = query_db_new_connect
parm1 = MYDSN
else :
my_query = query_db
parm1 = psycopg2.connect(MYDSN)
parm1.commit()
letters = string.ascii_lowercase
count = 0
start_time = time.perf_counter()
while activelist3[os.getpid()] == 1 :
current_time = time.perf_counter()
count = count +1;
if create_new_connection :
parm1.commit()
parm1.close()
my_query = query_db
parm1 = psycopg2.connect(MYDSN)
search_actor = random.choice(list_actors)
search_title = random.choice(list_tiles)
search_id = random.choice(ai_myids)
x = func_fill_random_comments(MYDSN,ai_myids,10)
x = func_update_random_comments(MYDSN, ai_myids, 5)
x = func_delete_random_comments(MYDSN,ai_myids,6)
time.sleep(sleep_timer)
r = random.randint(1,3)
if r == 1:
x = func_fill_random_comments(MYDSN,ai_myids,5)
if r == 2:
x = func_delete_random_comments(MYDSN,ai_myids,2)
if r == 3 :
x = func_update_random_comments(MYDSN, ai_myids, 2)
mycount[wid] = mycount[wid] + 1
mytime[wid] = round(mytime[wid] +(time.perf_counter() -current_time),4)
time.sleep(sleep_timer)
if not create_new_connection_per_qry :
parm1.commit()
logging.info("Ending Loop....")
logging.info("Started at..." + str( start_time))
logging.info("Ended at..." + str( time.perf_counter()))
mytime1 = round(time.perf_counter()-start_time,3);
timeper = round(mytime1/count,2)
logging.info("Thread: %s Times looped: %s Time per Loop : %s total time: %s", wid, count, timeper, mytime1 )
del activelist3[os.getpid()]
exit()
except:
logging.error("This chat/comments thread failed.... ooooops")
mytime1 = round(time.perf_counter()-start_time,3);
timeper = round(mytime1/count,2)
logging.info("Thread: %s Times looped: %s Time per Loop : %s total time: %s", wid, count, timeper, mytime1 )
def long_transactions(MYDSN,time_to_run,sleep_timer,create_new_connection,create_new_connection_per_qry,list_actors,list_tiles,list_ids,ai_myids,default_values,activelist4,mytime,mycount,wid):
try:
current_time = 0
start_time = 0
qry = 0
debug = 0
logging.info("pid: %s" , os.getpid())
logging.info("Active List: %s" , str(activelist4))
if create_new_connection :
my_query = query_db
parm1 = psycopg2.connect(MYDSN)
else :
if create_new_connection_per_qry :
my_query = query_db_new_connect
parm1 = MYDSN
else :
my_query = query_db
parm1 = psycopg2.connect(MYDSN)
parm1.commit()
letters = string.ascii_lowercase
count = 0
start_time = time.perf_counter()
while activelist4[os.getpid()] == 1 :
current_time = time.perf_counter()
count = count +1;
if create_new_connection :
parm1.commit()
parm1.close()
my_query = query_db
parm1 = psycopg2.connect(MYDSN)
search_actor = random.choice(list_actors)
search_title = random.choice(list_tiles)
search_id = random.choice(list_ids)
year1 = random.randrange(1900, 2015, 5)
year2 = year1 + 10
locktime = (random.randint(50,1000)/100)
r = random.randint(1,4)
if r == 1:
x = func_really_bad_for_update (MYDSN, locktime, year1, year2)
if r == 2:
x = func_find_movie_by_actor_for_update (MYDSN,search_actor,locktime)
if r == 3 :
x = func_find_update_meta (MYDSN, locktime, search_title)
if r == 4 :
x = func_find_update_comments (MYDSN,locktime)
mycount[wid] = mycount[wid] + 1
mytime[wid] = round(mytime[wid] +(time.perf_counter() -current_time),4)
if not create_new_connection_per_qry :
parm1.commit()
logging.info("Ending Loop....")
logging.info("Started at..." + str( start_time))
logging.info("Ended at..." + str( time.perf_counter()))
mytime1 = round(time.perf_counter()-start_time,3);
timeper = round(mytime1/count,2)
logging.info("Thread: %s Times looped: %s Time per Loop : %s total time: %s", wid, count, timeper, mytime1 )
del activelist4[os.getpid()]
exit()
except:
logging.error("This reporting thread failed.... ooooops")
mytime1 = round(time.perf_counter()-start_time,3);
timeper = round(mytime1/count,2)
logging.info("Thread: %s Times looped: %s Time per Loop : %s total time: %s", wid, count, timeper, mytime1 )
def single_user_actions_special(MYDSN,time_to_run,sleep_timer,create_new_connection,create_new_connection_per_qry,list_actors,list_tiles,list_ids,ai_myids):
#testing out stump an expert workload...
try:
current_time = 0
start_time = 0
qry = 0
debug = 0
runme = 1
find_movies_by_actor = "select title, imdb_rating, actor_character from movies_normalized_meta a, movies_normalized_cast b, movies_normalized_actors c where a.ai_myid=b.ai_myid and b.ai_actor_id = c.ai_actor_id and actor_name= %s and actor_name != ''"
find_movies_by_title = "select imdb_id, title, imdb_rating from movies_normalized_meta a where title = %s"
find_movies_by_fuzzy_actor = "select imdb_id, title, imdb_rating, actor_character from movies_normalized_meta a, movies_normalized_cast b, movies_normalized_actors c where a.ai_myid=b.ai_myid and b.ai_actor_id = c.ai_actor_id and actor_name like %s"
simulate_finding_a_movie_record = "select ai_myid, imdb_id, year, title, json_column from movies_normalized_meta where imdb_id = %s"
simulate_comment_on_movie = "insert into movies_normalized_user_comments (ai_myid, rating, comment ) values ( %s, %s, %s )"
simulate_updating_movie_record_with_vote = "update movies_normalized_meta set upvotes=upvotes+%s, downvotes=downvotes+%s where ai_myid = %s"
if create_new_connection :
my_query = query_db
parm1 = mysql.connector.connect(**config)
else :
if create_new_connection_per_qry :
my_query = query_db_new_connect
parm1 = config
else :
my_query = query_db
parm1 = mysql.connector.connect(**config)
parm1.commit()
letters = string.ascii_lowercase
start_time = time.perf_counter()
while runme == 1 :
current_time = time.perf_counter()
count = count +1;
if create_new_connection :
parm1.commit()
parm1.close()
my_query = query_db
parm1 = mysql.connector.connect(**config)
search_actor = random.choice(list_actors)
search_title = random.choice(list_tiles)
search_id = random.choice(list_ids)
x = func_find_movie_by_actor(my_query,parm1,random.choice(list_actors))
x = func_find_movie_by_actor(my_query,parm1,random.choice(list_actors))
x = func_find_actors_and_characters_by_title(my_query,parm1,(random.choice(list_tiles),))
x = func_check_comment_rates_last_week(my_query,parm1,(random.choice(list_tiles),))
x = func_find_movies_by_title(my_query,parm1,(random.choice(list_tiles),))
myid = x[0][0]
x = func_find_movie_comments (my_query,parm1,myid)
vote = func_generate_vote()
#logging.info(str(vote))
comment = func_generate_comment(letters,20,50)
year1 = random.randrange(1900, 2015, 5)
year2 = year1 + 5
y = func_comment_on_movie(my_query,parm1,myid,vote['uservote'], comment)
y = func_update_vote_movie(my_query,parm1,myid, vote['upvote'], vote['downvote'])
x = func_find_movies_by_id(my_query,parm1,(random.choice(list_ids),))
x = func_find_movie_comments (my_query,parm1,x[0][0])
x = func_check_comment_rates_last_week(my_query,parm1,(random.choice(list_tiles),))
x = func_find_movies_by_title(my_query,parm1,(random.choice(list_tiles),))
x = func_find_movies_by_id(my_query,parm1,(random.choice(list_ids),))
x = func_find_up_down_votes(my_query,parm1,(random.choice(list_ids),))
vote = func_generate_vote()
x = func_update_vote_movie(my_query,parm1,x[0][0], vote['upvote'],vote['downvote'])
x = func_check_comment_rates_last_week_actor(my_query,parm1,random.choice(list_actors))
x = func_find_movies_dtls_country_year(my_query,parm1,year1,year2)
x = func_find_actors_and_characters_by_title(my_query,parm1,(random.choice(list_tiles),))
runme = 2
if not create_new_connection_per_qry :
parm1.commit()
except:
logging.error("This reporting thread failed.... ooooops")
mytime1 = round(time.perf_counter()-start_time,3);
timeper = round(mytime1/count,2)
logging.info("Thread: %s Times looped: %s Time per Loop : %s total time: %s", wid, count, timeper, mytime1 )
def read_only_user_actions(MYDSN,time_to_run,sleep_timer,create_new_connection,create_new_connection_per_qry,list_actors,list_tiles,list_ids,ai_myids,default_values,myactivelist,mytime,mycount,wid):
try:
current_time = 0
start_time = 0
qry = 0
debug = 0
error = 0
logging.info("pid: %s" , os.getpid())
logging.info("Active List: %s" , str(myactivelist))
if create_new_connection :
my_query = query_db
parm1 = psycopg2.connect(MYDSN)
else :
if create_new_connection_per_qry :
my_query = query_db_new_connect
parm1 = MYDSN
else :
my_query = query_db
parm1 = psycopg2.connect(MYDSN)
parm1.commit()
letters = string.ascii_lowercase
count = 0
start_time = time.perf_counter()
while myactivelist[os.getpid()] == 1 :
#try:
current_time = time.perf_counter()
count = count +1;
if error == 1 :
logging.info('Starting Over! ', os.getpid())
error = 0
current_time = time.perf_counter()
if create_new_connection :
parm1.commit()
parm1.close()
my_query = query_db
parm1 = psycopg2.connect(MYDSN)
search_actor = random.choice(default_values['actors_with_50_movies'])
#print(search_actor)
search_director = random.choice(default_values['directors_with_50_movies'])
#print(search_director)
search_title = random.choice(list_tiles)
search_id = random.choice(list_ids)
year1 = random.randrange(1900, 2015, 1)
year2 = random.randrange(1900, 2015, 1)
x = func_find_movie_by_actor(my_query,parm1,random.choice(list_actors))
x = func_find_movies_by_title(my_query,parm1,(random.choice(list_tiles),))
x = func_find_movies_by_id(my_query,parm1,(random.choice(list_ids),))
x = func_find_actors_and_characters_by_title(my_query,parm1,(random.choice(list_tiles),))
x = func_top_movies_year(my_query,parm1,(year1,))
x = func_movies_by_director(my_query,parm1,search_director)
x = func_movies_by_actor_with_many(my_query,parm1,search_actor)
x = func_find_movie_by_actor(my_query,parm1,random.choice(list_actors))
x = func_find_movies_by_title(my_query,parm1,(random.choice(list_tiles),))
x = func_find_movies_by_id(my_query,parm1,(random.choice(list_ids),))
x = func_find_actors_and_characters_by_title(my_query,parm1,(random.choice(list_tiles),))
x = func_top_movies_year(my_query,parm1,(year2,))
x = func_movies_by_director(my_query,parm1,random.choice(default_values['directors_with_50_movies']))
x = func_movies_by_actor_with_many(my_query,parm1,random.choice(default_values['actors_with_50_movies']))
mycount[wid] = mycount[wid] + 1
mytime[wid] = round(mytime[wid] +(time.perf_counter() -current_time),4)
#except Exception as e:
# logging.error("error: %s", e)
# z = sys.exc_info()[0]
# logging.error("systems: %s",z )
#except:
# logging.info("error in read only workload")
# logging.info('pid:', os.getpid())
# error = 1
if not create_new_connection_per_qry :
parm1.commit()
logging.info("Ending Loop....")
logging.info("Started at..." + str( start_time))
logging.info("Ended at..." + str( time.perf_counter()))
mytime1 = round(time.perf_counter()-start_time,3);
timeper = round(mytime1/count,2)
logging.info("Thread: %s Times looped: %s Time per Loop : %s total time: %s", wid, count, timeper, mytime1 )
del myactivelist[os.getpid()]
exit()
except:
logging.error("This read only thread failed.... ooooops")
mytime1 = round(time.perf_counter()-start_time,3);
timeper = round(mytime1/count,2)
logging.info("Thread: %s Times looped: %s Time per Loop : %s total time: %s", wid, count, timeper, mytime1 )
def single_user_actions_special_v2(MYDSN,time_to_run,sleep_timer,create_new_connection,create_new_connection_per_qry,list_actors,list_tiles,list_ids,ai_myids,default_values,myactivelist,mytime,mycount,wid):
try:
current_time = 0
start_time = 0
qry = 0
debug = 0
error = 0
logging.info("pid: %s" , os.getpid())
logging.info("Active List: %s" , str(myactivelist))
if create_new_connection :
my_query = query_db
parm1 = psycopg2.connect(MYDSN)
else :
if create_new_connection_per_qry :
my_query = query_db_new_connect
parm1 = MYDSN
else :
my_query = query_db
parm1 = psycopg2.connect(MYDSN)
parm1.commit()
letters = string.ascii_lowercase
start_time = time.perf_counter()
count = 0
while myactivelist[os.getpid()] == 1 :
#country:
current_time = time.perf_counter()
count = count +1;
if error == 1 :
logging.info('Starting Over! ', os.getpid())
error = 0
current_time = time.perf_counter()
if create_new_connection :
parm1.commit()
parm1.close()
my_query = query_db
parm1 = psycopg2.connect(MYDSN)
search_actor = random.choice(list_actors)
search_title = random.choice(list_tiles)
search_id = random.choice(list_ids)
x = func_find_movie_by_actor(my_query,parm1,random.choice(list_actors))
x = func_find_actors_and_characters_by_title(my_query,parm1,(random.choice(list_tiles),))
x = func_check_comment_rates_last_week(my_query,parm1,(random.choice(list_tiles),))
x = func_find_movies_by_title(my_query,parm1,(random.choice(list_tiles),))
myid = x[0][0]
x = func_find_movie_comments (my_query,parm1,myid)
year1 = random.randrange(1900, 2015, 5)
year2 = year1 + 5
x = func_find_movies_by_id(my_query,parm1,(random.choice(list_ids),))
x = func_find_movie_comments (my_query,parm1,x[0][0])
x = func_check_comment_rates_last_week(my_query,parm1,(random.choice(list_tiles),))
x = func_find_movies_by_title(my_query,parm1,(random.choice(list_tiles),))
x = func_find_movies_by_id(my_query,parm1,(random.choice(list_ids),))
x = func_find_up_down_votes(my_query,parm1,(random.choice(list_ids),))
x = func_check_comment_rates_last_week_actor(my_query,parm1,random.choice(list_actors))
x = func_find_movies_dtls_country_year(my_query,parm1,year1,year2)
x = func_find_actors_and_characters_by_title(my_query,parm1,(random.choice(list_tiles),))
mycount[wid] = mycount[wid] + 1
mytime[wid] = round(mytime[wid] +(time.perf_counter() -current_time),4)
#except:
# logging.info("error in special workload")
# logging.info('pid:', os.getpid())
# error = 1
if not create_new_connection_per_qry :
parm1.commit()
logging.info("Ending Loop....")
logging.info("Started at..." + str( start_time))
logging.info("Ended at..." + str( time.perf_counter()))
mytime1 = round(time.perf_counter()-start_time,3);
timeper = round(mytime1/count,2)
logging.info("Thread: %s Times looped: %s Time per Loop : %s total time: %s", wid, count, timeper, mytime1 )
del myactivelist[os.getpid()]
exit()
except:
logging.error("This special thread failed.... ooooops")
mytime1 = round(time.perf_counter()-start_time,3);
timeper = round(mytime1/count,2)
logging.info("Thread: %s Times looped: %s Time per Loop : %s total time: %s", wid, count, timeper, mytime1 )
def multi_row_returns(MYDSN,time_to_run,sleep_timer,create_new_connection,create_new_connection_per_qry,list_actors,list_tiles,list_ids,ai_myids,default_values,myactivelist,mytime,mycount,wid):
try:
current_time = 0
start_time = 0
qry = 0
debug = 0
error = 0
logging.info("MR: pid: %s" , os.getpid())
logging.info("MR: Active List: %s" , str(myactivelist))
if create_new_connection :
my_query = query_db
parm1 = psycopg2.connect(MYDSN)
else :
if create_new_connection_per_qry :
my_query = query_db_new_connect
parm1 = MYDSN
else :
my_query = query_db
parm1 = psycopg2.connect(MYDSN)
parm1.commit()
letters = string.ascii_lowercase
start_time = time.perf_counter()
count = 0
while myactivelist[os.getpid()] == 1 :
current_time = time.perf_counter()
count = count +1;
try:
if error == 1 :
logging.info('Starting Over! ', os.getpid())
error = 0
current_time = time.perf_counter()
if create_new_connection :
parm1.commit()
parm1.close()
my_query = query_db
parm1 = psycopg2.connect(MYDSN)
search_actor = random.choice(list_actors)
search_title = random.choice(list_tiles)
search_id = random.choice(list_ids)
year1 = random.randrange(1900, 2015, 1)
year2 = random.randrange(1900, 2015, 1)
x = func_find_actors_and_characters_by_title(my_query,parm1,(random.choice(list_tiles),))
x = func_top_movies_year(my_query,parm1,(year1,))
x = func_movies_by_director(my_query,parm1,random.choice(default_values['directors_with_50_movies']))
x = func_movies_by_actor_with_many(my_query,parm1,random.choice(default_values['actors_with_50_movies']))
x = func_movies_by_actor_with_many(my_query,parm1,random.choice(default_values['actors_with_200_movies']))
mycount[wid] = mycount[wid] + 1
mytime[wid] = round(mytime[wid] +(time.perf_counter() -current_time),4)
except:
logging.info("error in multi-row only workload")
logging.info('pid:', os.getpid())
error = 1
if not create_new_connection_per_qry :
parm1.commit()
logging.info("Ending Loop....")
logging.info("Started at..." + str( start_time))
logging.info("Ended at..." + str( time.perf_counter()))
mytime1 = round(time.perf_counter()-start_time,3);
timeper = round(mytime1/count,2)
logging.info("Thread: %s Times looped: %s Time per Loop : %s total time: %s", wid, count, timeper, mytime1 )
del myactivelist[os.getpid()]
exit()
except:
logging.error("This multi-row thread failed.... ooooops")
mytime1 = round(time.perf_counter()-start_time,3);
timeper = round(mytime1/count,2)
logging.info("Thread: %s Times looped: %s Time per Loop : %s total time: %s", wid, count, timeper, mytime1 )
def read_only_user_json_actions(MYDSN,time_to_run,sleep_timer,create_new_connection,create_new_connection_per_qry,list_actors,list_tiles,list_ids,ai_myids,default_values,myactivelist,mytime,mycount,wid):
current_time = 0
start_time = 0
qry = 0
debug = 0
error = 0
logging.info("pid: %s" , os.getpid())
logging.info("Active List: %s" , str(myactivelist))
if create_new_connection :
my_query = query_db
parm1 = psycopg2.connect(MYDSN)
else :
if create_new_connection_per_qry :
my_query = query_db_new_connect
parm1 = MYDSN
else :
my_query = query_db
parm1 = psycopg2.connect(MYDSN)
parm1.commit()
letters = string.ascii_lowercase
count = 0
start_time = time.perf_counter()
while myactivelist[os.getpid()] == 1 :
try:
if error == 1 :
logging.info('Starting Over! ', os.getpid())
error = 0
current_time = time.perf_counter()
if create_new_connection :
parm1.commit()
parm1.close()
my_query = query_db
parm1 = psycopg2.connect(MYDSN)
search_actor = random.choice(default_values['actors_with_50_movies'])
#print(search_actor)
search_director = random.choice(default_values['directors_with_50_movies'])
#print(search_director)
search_title = random.choice(list_tiles)
search_id = random.choice(list_ids)
year1 = random.randrange(1900, 2015, 1)
year2 = random.randrange(1900, 2015, 1)
x = func_find_movie_by_actor(my_query,parm1,random.choice(list_actors))
x = func_find_movies_by_title(my_query,parm1,(random.choice(list_tiles),))
x = func_find_movies_by_id(my_query,parm1,(random.choice(list_ids),))
x = func_find_actors_and_characters_by_title(my_query,parm1,(random.choice(list_tiles),))
x = func_top_movies_year(my_query,parm1,(year1,))
x = func_movies_by_director(my_query,parm1,search_director)
x = func_movies_by_actor_with_many(my_query,parm1,search_actor)
x = func_find_movie_by_actor(my_query,parm1,random.choice(list_actors))
x = func_find_movies_by_title(my_query,parm1,(random.choice(list_tiles),))
x = func_find_movies_by_id(my_query,parm1,(random.choice(list_ids),))
x = func_find_actors_and_characters_by_title(my_query,parm1,(random.choice(list_tiles),))
x = func_top_movies_year(my_query,parm1,(year2,))
x = func_movies_by_director(my_query,parm1,random.choice(default_values['directors_with_50_movies']))
x = func_movies_by_actor_with_many(my_query,parm1,random.choice(default_values['actors_with_50_movies']))
mycount[wid] = mycount[wid] + 1
mytime[wid] = round(mytime[wid] +(time.perf_counter() -current_time),4)
except:
logging.info("error in read only workload")
logging.info('pid:', os.getpid())
error = 1
if not create_new_connection_per_qry :
parm1.commit()
logging.info("Ending Loop....")
logging.info("Started at..." + str( start_time))
logging.info("Ended at..." + str( time.perf_counter()))
mytime1 = round(time.perf_counter()-start_time,3);
timeper = round(mytime1/count,2)
logging.info("Thread: %s Times looped: %s Time per Loop : %s total time: %s", wid, count, timeper, mytime1 )
del myactivelist[os.getpid()]
exit()
def func_find_movie_by_actor (qry_func,parm1,actor_name) :
find_movies_by_actor = "select title, imdb_rating, actor_character from movies_normalized_meta a, movies_normalized_cast b, movies_normalized_actors c where a.ai_myid=b.ai_myid and b.ai_actor_id = c.ai_actor_id and actor_name= %s and actor_name != ''"
x = qry_func(parm1, find_movies_by_actor,actor_name,1)
return x
def func_find_movies_by_title (qry_func,parm1,title_name) :
find_movies_by_title = "select ai_myid, imdb_id, title, imdb_rating from movies_normalized_meta a where title = %s"
x = qry_func(parm1, find_movies_by_title,title_name,1)
return x
def func_comment_on_movie (qry_func,parm1,movieid,vote,comment) :
simulate_comment_on_movie = "insert into movies_normalized_user_comments (ai_myid, rating, comment ) values ( %s, %s, %s )"
myparm = (movieid,vote,comment)
qry_func(parm1, simulate_comment_on_movie,myparm,0)
def func_find_movies_by_id (qry_func,parm1,id) :
simulate_finding_a_movie_record = "select ai_myid, imdb_id, year, title, json_column from movies_normalized_meta where imdb_id = %s"
x = qry_func(parm1, simulate_finding_a_movie_record,id,1)
return x
def func_update_vote_movie (qry_func,parm1,id, upvote, downvote) :
simulate_updating_movie_record_with_vote = "update movies_normalized_meta set upvotes=upvotes+%s, downvotes=downvotes+%s where ai_myid = %s"
myparm = (upvote,downvote,id)
x = qry_func(parm1, simulate_updating_movie_record_with_vote,myparm,0)
return x
def func_find_up_down_votes (qry_func,parm1,id ) :
simulate_updating_movie_record_with_vote = "select ai_myid, imdb_id, title, upvotes, downvotes from movies_normalized_meta where imdb_id = %s"
x = qry_func(parm1, simulate_updating_movie_record_with_vote,id,1)
return x
def func_find_movie_comments (qry_func,parm1,id ) :
query = "select comment_id, ai_myid, comment, comment_add_time, comment_update_time from movies_normalized_user_comments where ai_myid = %s order by comment_add_time desc"
x = qry_func(parm1, query,(id,),1)
return x
def func_create_materialized_view_votes(mydsn) :
createmtlv = "create materialized view if not exists view_voting_counts as select a.ai_myid, title, a.imdb_id, count(*) as comment_count, max(rating) as max_rate, avg(rating) as avg_rate, sum(upvotes) as upvotes, sum(downvotes) as downvotes from movies_normalized_user_comments a join movies_normalized_meta b on a.ai_myid=b.ai_myid::int group by a.ai_myid, title, a.imdb_id";
x = query_db_new_connect(mydsn, createmtlv, (), 0)
return(x)
def func_refreshed_materialized_view_votes(mydsn) :
createmtlv = "REFRESH MATERIALIZED VIEW view_voting_counts";
x = query_db_new_connect(mydsn, createmtlv, (), 0)
return(x)
def func_create_materialized_view_movies_by_year(mydsn) :
createmtlv = "create materialized view if not exists view_year_counts as select year, count(distinct b.imdb_id) as movie_count, avg(imdb_rating) as avg_imdb_rating, max(rating) as max_rate, avg(rating) as avg_rate, sum(upvotes) as upvotes, sum(downvotes) as downvotes from movies_normalized_user_comments a join movies_normalized_meta b on a.ai_myid=b.ai_myid::int group by year";
x = query_db_new_connect(mydsn, createmtlv, (), 0)
return(x)
def func_refreshed_materialized_view_movies_by_year(mydsn) :
createmtlv = "REFRESH MATERIALIZED VIEW view_year_counts";
x = query_db_new_connect(mydsn, createmtlv, (), 0)
return(x)
def func_generate_comment(letters, minsize,maxsize) :
return "".join(random.choice(letters) for i in range (random.randrange(minsize,maxsize)))
def func_generate_vote() :
uservote = random.randrange(0,10)
if uservote < 6 :
downvote = 1
upvote = 0
else :
downvote = 0
upvote = 1
return {"uservote" : uservote, "downvote" : downvote, "upvote" : upvote }
def func_rpt_ratings_over_year_range (qry_func,parm1,year1,year2) :
find_movie_ratings_count_for_years = "select count(*), imdb_rating from movies_normalized_meta where year > %s and year < %s group by imdb_rating"
x = qry_func(parm1, find_movie_ratings_count_for_years,(year1,year2),1)
return x
def func_rpt_movies_by_year (qry_func,parm1) :
find_movies_by_years = "select count(*), year from movies_normalized_meta group by year order by year desc"
x = qry_func(parm1, find_movies_by_years,(),1)
return x
def func_rpt_directors_year_range (qry_func,parm1,year1,year2) :
find_movies_and_directors_by_years = "select year, director, count(*), avg(imdb_rating) from movies_normalized_director a join movies_normalized_meta b on a.ai_myid = b.ai_myid where year > %s and year < %s group by year, director "
x = qry_func(parm1, find_movies_and_directors_by_years,(year1,year2),1)
return x
def func_rpt_movies_for_actor(qry_func,parm1,actor) :
actor_movie_count_by_year = "select actor_name, year, count(*), avg(imdb_rating) from movies_normalized_meta a, movies_normalized_cast b, movies_normalized_actors c where a.ai_myid=b.ai_myid and b.ai_actor_id = c.ai_actor_id and actor_name = %s group by year, actor_name"
x = qry_func(parm1, actor_movie_count_by_year,actor,1)
return x
def func_rpt_movies_for_actor_fuzzy(qry_func,parm1,actor) :
actor2 = actor[0][0:6]+'%'
actor_movie_count_by_year_fuzzy = "select actor_name, year, count(*), avg(imdb_rating) from movies_normalized_meta a, movies_normalized_cast b, movies_normalized_actors c where a.ai_myid=b.ai_myid and b.ai_actor_id = c.ai_actor_id and actor_name like %s group by year, actor_name"
x = qry_func(parm1, actor_movie_count_by_year_fuzzy,(actor2,),1)
return x
def func_rpt_movies_for_actor_year(qry_func,parm1,actor,year1,year2) :
#logging.info('actor:', str(actor))
actor_movie_count_by_year_range = "select actor_name, year, count(*), avg(imdb_rating) from movies_normalized_meta a, movies_normalized_cast b, movies_normalized_actors c where a.ai_myid=b.ai_myid and b.ai_actor_id = c.ai_actor_id and year between %s and %s group by year, actor_name"
try:
x = qry_func(parm1, actor_movie_count_by_year_range,(year1,year2),1)
except Exception as e:
x = []
logging.error("error: %s" ,e)
z = sys.exc_info()[0]
logging.error("systems: %s",z )
return x
def func_rpt_movies_per_country_year(qry_func,parm1,year1,year2) :
find_country_movies_range_year = "select year, country, count(*) from movies_normalized_meta where year between %s and %s group by year, country"
x = qry_func(parm1, find_country_movies_range_year,(year1,year2),1)
return x
def func_rpt_material_vote_count(qry_func,parm1,title) :
title2 = title[0][0:3]+'%'
get_all_votes_fuzzy = "select * from view_voting_counts where title like %s"
x = qry_func(parm1, get_all_votes_fuzzy,(title2,),1)
return x
def func_find_movie_by_actor_for_update (MYDSN,actor_name, sleeptime) :
myconnect = new_connection(MYDSN)
mycursor = myconnect.cursor()
find_movies_by_actor = "select title, imdb_rating, actor_character from movies_normalized_meta a, movies_normalized_cast b, movies_normalized_actors c where a.ai_myid=b.ai_myid and b.ai_actor_id = c.ai_actor_id and actor_name= %s and actor_name != '' for update"
mycursor.execute(find_movies_by_actor, actor_name)
x = mycursor.fetchall()
time.sleep(sleeptime)
myconnect.commit()
return x
def func_really_bad_for_update (MYDSN, sleeptime, year1, year2) :
myconnect = new_connection(MYDSN)
mycursor = myconnect.cursor()
query = "select ai_myid, title, imdb_rating from movies_normalized_meta where year > %s and year < %s order by imdb_rating desc limit 25 for update "
mycursor.execute(query, (year1,year2))
x = mycursor.fetchall()
time.sleep(sleeptime)
myconnect.commit()
return x
def func_find_update_meta (MYDSN, sleeptime, title) :
myconnect = new_connection(MYDSN)
mycursor = myconnect.cursor()
title2 = title[0][0:3]+'%'
query = "select ai_myid,title, imdb_rating, year from movies_normalized_meta where title like %s for update "
update = " update movies_normalized_meta set upvotes = upvotes + 1, imdb_rating = imdb_rating * 1, year = year where ai_myid = %s "
mycursor.execute(query, (title2,))
x = mycursor.fetchall()
time.sleep(sleeptime)
y = random.choice(x)
mycursor.execute(update, (y[0],))
time.sleep(sleeptime)
myconnect.commit()
return x
def func_find_update_comments (MYDSN,sleeptime) :
myconnect = new_connection(MYDSN)
mycursor = myconnect.cursor()
query = "select comment_id, ai_myid, comment_add_time, comment_update_time from movies_normalized_user_comments order by comment_add_time desc limit 25 for update"
update = "update movies_normalized_user_comments set comment = comment, rating = rating * 1, comment_update_time = current_timestamp where comment_id = %s"
delete = "delete from movies_normalized_user_comments where comment_id = %s"
mycursor.execute(query, ())
x = mycursor.fetchall()
time.sleep(sleeptime)
if(len(x) >0):
y = x.pop()
mycursor.execute(update, (y[0],))
if(len(x) >0):
y = x.pop()
mycursor.execute(update, (y[0],))
if(len(x) >0):
y = x.pop()
mycursor.execute(delete, (y[0],))
time.sleep(sleeptime/2)
myconnect.commit()
return x
def func_fill_random_comments (MYDSN,list_ids,comments_to_add) :
myconnect = new_connection(MYDSN)
mycursor = myconnect.cursor()
letters = string.ascii_lowercase
i = 0
while i < comments_to_add :
i = i + 1
comment = func_generate_comment(letters,20,50)
vote = func_generate_vote()
search_id = random.choice(list_ids)
simulate_comment_on_movie = "insert into movies_normalized_user_comments (ai_myid, rating, comment ) values ( %s, %s, %s )"
mycursor.execute(simulate_comment_on_movie, (search_id,vote['uservote'], comment))
myconnect.commit();
return i;
def func_delete_random_comments (MYDSN,list_ids,comments_to_remove) :
myconnect = new_connection(MYDSN)
mycursor = myconnect.cursor()
letters = string.ascii_lowercase
i = 0
while i < comments_to_remove :
i = i + 1
search_id = random.choice(list_ids)
delete = "delete from movies_normalized_user_comments where comment_id in (select comment_id from movies_normalized_user_comments where ai_myid = %s limit 3 )"
#logging.info('delete id: ',search_id)
mycursor.execute(delete, (search_id,))
myconnect.commit();
return i;
def func_update_random_comments (MYDSN,list_ids,comments_to_update) :
myconnect = new_connection(MYDSN)
mycursor = myconnect.cursor()
i = 0
while i < comments_to_update :
i = i + 1
search_id = random.choice(list_ids)
update = "update movies_normalized_user_comments set comment = comment, rating = rating * 1, comment_update_time = current_timestamp where ai_myid = %s"
mycursor.execute(update, (search_id,))
myconnect.commit();
return i;
def run_vacuum (MYDSN):
myconnect = new_connection(MYDSN)
myconnect.set_session(autocommit=True)
mycursor = myconnect.cursor()
query = "vacuum full analyze movies_normalized_meta"
x = mycursor.execute(query, ())
query = "vacuum full analyze movies_normalized_user_comments"
x = mycursor.execute(query, ())
return x
def make_copy_of_table (MYDSN):
query = "DROP TABLE IF EXISTS copy_of_json_table"
x = query_db_new_connect(MYDSN, query, (), 0)
query = "create table copy_of_json_table ( ai_myid serial primary key, imdb_id varchar(255) generated always as (jsonb_column ->> 'imdb_id') stored, title varchar(255) generated always as (jsonb_column ->> 'title') stored,imdb_rating decimal(5,2) generated always as ((jsonb_column ->> 'imdb_rating')::numeric) stored, overview text generated always as (jsonb_column ->> 'overview') stored, director jsonb generated always as ((jsonb_column ->> 'director')::json) stored, country varchar(100) generated always as (jsonb_column ->> 'country') stored, jsonb_column jsonb, json_column json) "
x = query_db_new_connect(MYDSN, query, (), 0)
query = "insert into copy_of_json_table (jsonb_column, json_column) select jsonb_column, json_column from movies_json_generated"
x = query_db_new_connect(MYDSN, query, (), 0)
return x
def refresh_all_mat_views (MYDSN):
logging.debug('-- inside Rebuild Mat Views')
logging.debug('-- Create 1 Rebuild Mat Views')
x = func_create_materialized_view_votes(MYDSN)
logging.debug('-- refresh 1 Mat Views')
x = func_refreshed_materialized_view_votes(MYDSN)
logging.debug('-- Create 2 Rebuild Mat Views')
x = func_create_materialized_view_movies_by_year(MYDSN)
logging.debug('-- refresh 2 Mat Views')
x = func_refreshed_materialized_view_movies_by_year(MYDSN)
return x
def func_pk_bigint (MYDSN) :
x = 0
logging.debug('Dropping Mat View Year_counts')
cleanup = "drop MATERIALIZED VIEW IF EXISTS view_year_counts"
x = query_db_new_connect(MYDSN, cleanup,(),0)
logging.debug('Dropping Mat View view_voting_counts')
cleanup = "drop MATERIALIZED VIEW IF EXISTS view_voting_counts"
x = query_db_new_connect(MYDSN, cleanup,(),0)
alter_pk = "alter table movies_normalized_meta alter column ai_myid type bigint using ai_myid::bigint"
logging.info('Changing PK to bigint')
x = query_db_new_connect(MYDSN, alter_pk,(),0)
logging.debug('Rebuild Mat Views, refresh')
refresh_all_mat_views(MYDSN)
logging.info('done Changing PK')
return x
def func_pk_int (MYDSN) :
logging.debug('Dropping Mat View view_year_counts')
cleanup = "drop MATERIALIZED VIEW IF EXISTS view_year_counts"
x = query_db_new_connect(MYDSN, cleanup,(),0)
logging.debug('Dropping Mat View view_voting_counts')
cleanup = "drop MATERIALIZED VIEW IF EXISTS view_voting_counts"
x = query_db_new_connect(MYDSN, cleanup,(),0)
alter_pk = "alter table movies_normalized_meta alter column ai_myid type int using ai_myid::int"
logging.info('Changing PK to int')
x = query_db_new_connect(MYDSN, alter_pk,(),0)
logging.debug('Rebuild Mat Views, refresh')
refresh_all_mat_views(MYDSN)
logging.info('done Changing PK')
return x
def func_pk_varchar (MYDSN) :
cleanup = "drop MATERIALIZED VIEW IF EXISTS view_year_counts"
x = query_db_new_connect(MYDSN, cleanup,(),0)
cleanup = "drop MATERIALIZED VIEW IF EXISTS view_voting_counts"
x = query_db_new_connect(MYDSN, cleanup,(),0)
alter_pk = "alter table movies_normalized_meta alter column ai_myid type varchar(32) using ai_myid::varchar "
logging.info('Changing PK to Varchar')
x = query_db_new_connect(MYDSN, alter_pk,(),0)
refresh_all_mat_views(MYDSN)
logging.info('done Changing PK')
return x
def func_load_voting_count_hisory(config) :
load_etl = "insert into voting_count_history select ai_myid, now(), title, imdb_id, comment_count, max_rate, avg_rate, upvotes, downvotes from view_voting_counts"
purge_old = "delete from voting_count_history where store_time < current_date - interval '30' day"
logging.info('executing load of count history')
try:
x = query_db_new_connect(config, load_etl,(),0)
logging.info('finishing count history')
x = query_db_new_connect(config, purge_old,(),0)
logging.info('finishing purging count history')
return x
except psycopg2.Error as e:
logging.error("error loading voting_count_history")
print(e.pgerror)
return -1
except:
logging.error("error loading voting_count_history")
return -1
def func_find_actors_and_characters_by_title (qry_func,parm1,title_name) :
find_movies_by_title = "select title, imdb_rating, actor_name, actor_character from movies_normalized_meta a, movies_normalized_cast b, movies_normalized_actors c where a.ai_myid=b.ai_myid and b.ai_actor_id = c.ai_actor_id and title =%s"
x = qry_func(parm1, find_movies_by_title,title_name,1)
return x
def func_find_movies_dtls_country_year(qry_func,parm1,year1,year2) :
country_list = [ 'Mexico', 'Canada', 'France', 'USA', 'China', 'Ireland', 'Netherlands', 'UK', 'Germany']
mycountry = random.choice(country_list)
find_country_dtls_year = "Select title, imdb_rating from movies_normalized_meta where country = %s and year > %s and year < %s order by imdb_rating desc limit 100"
x = qry_func(parm1, find_country_dtls_year,(mycountry,year1,year2),1)
return x
def func_check_comment_rates_last_week(qry_func,parm1,title_name) :
find_count_changes = "select upvotes, downvotes, comment_count, avg_rate from voting_count_history where title = %s and store_time > current_date - 7 order by store_time desc"
x = qry_func(parm1, find_count_changes,title_name,1)
return x
def func_check_comment_rates_last_week_actor(qry_func,parm1,actor_name) :
find_count_changes = "select actor_name, count(distinct title), sum(upvotes), sum(downvotes), sum(comment_count), avg(avg_rate) from voting_count_history a, movies_normalized_cast b, movies_normalized_actors c where a.ai_myid=b.ai_myid and b.ai_actor_id = c.ai_actor_id and actor_name = %s and store_time > current_date - 7 group by actor_name, store_time order by store_time desc"
x = qry_func(parm1, find_count_changes,actor_name,1)
return x
def func_top_movies_year (qry_func,parm1,myyear) :
find_movies_by_years = "select year, title, imdb_rating from movies_normalized_meta where year = %s order by imdb_rating desc limit 50"
x = qry_func(parm1, find_movies_by_years,myyear,1)
return x
def func_movies_by_director (qry_func,parm1,director) :
find_movies_by_dir = "select title, director from movies_normalized_meta, movies_normalized_director where movies_normalized_meta.ai_myid=movies_normalized_director.ai_myid and director = %s"
x = qry_func(parm1, find_movies_by_dir,director,1)
return x
def func_movies_by_actor_with_many (qry_func,parm1,actor) :
find_movies_by_dir = "select title, actor_name, actor_character from movies_normalized_cast, movies_normalized_actors, movies_normalized_meta where movies_normalized_meta.ai_myid=movies_normalized_cast.ai_myid and movies_normalized_actors.ai_actor_id=movies_normalized_cast.ai_actor_id and movies_normalized_actors.ai_actor_id=%s"
x = qry_func(parm1, find_movies_by_dir,actor,1)
return x
def func_top_movies_year_json (qry_func,parm1,myyear) :
find_movies_by_years = "select json_column from movies_json_generated where json_column->>'$.title' like '%s' order by json_column->>'$.imdb_rating' desc limit 50"
x = qry_func(parm1, find_movies_by_years,myyear,1)
return x
def func_movies_by_director_json (qry_func,parm1,director) :
find_movies_by_dir = "select json_column-->'$.title', t.myname from movies_json_generated, json_table(json_column, '$.director[*]' columns( myid varchar(20) path '$.id', myname varchar(100) path '$.name')) t where t.myname = %s"
x = qry_func(parm1, find_movies_by_dir,director,1)
return x
def func_movies_by_actor_with_many_json (qry_func,parm1,actor) :
find_movies_by_dir = "select title, actor_name, actor_character from movies_normalized_cast, movies_normalized_actors, movies_normalized_meta where movies_normalized_meta.ai_myid=movies_normalized_cast.ai_myid and movies_normalized_actors.ai_actor_id=movies_normalized_cast.ai_actor_id and actor_name=%s"
x = qry_func(parm1, find_movies_by_dir,actor,1)
return x
def func_find_movie_by_actor_json (qry_func,parm1,actor_name) :
find_movies_by_actor = "select title, imdb_rating, actor_character from movies_normalized_meta a, movies_normalized_cast b, movies_normalized_actors c where a.ai_myid=b.ai_myid and b.ai_actor_id = c.ai_actor_id and actor_name= %s and actor_name != ''"
x = qry_func(parm1, find_movies_by_actor,actor_name,1)
return x
def func_find_movies_by_title_json (qry_func,parm1,title_name) :
find_movies_by_title = "select ai_myid, imdb_id, title, imdb_rating from movies_normalized_meta a where title = %s"
x = qry_func(parm1, find_movies_by_title,title_name,1)
return x
def func_find_movies_by_id_json (qry_func,parm1,id) :
simulate_finding_a_movie_record = "select ai_myid, imdb_id, year, title, json_column from movies_normalized_meta where imdb_id = %s"
x = qry_func(parm1, simulate_finding_a_movie_record,id,1)
return x
def func_find_actors_and_characters_by_title_json (qry_func,parm1,title_name) :
find_movies_by_title = "select title, imdb_rating, actor_name, actor_character from movies_normalized_meta a, movies_normalized_cast b, movies_normalized_actors c where a.ai_myid=b.ai_myid and b.ai_actor_id = c.ai_actor_id and title =%s"
x = qry_func(parm1, find_movies_by_title,title_name,1)
return x
def func_create_drop_title_index (mydsn) :
val = func_find_index(mydsn,'movies_normalized_meta','idx_nmm_title')
logging.info('value: ', val)
create_index = "create index idx_nmm_title on movies_normalized_meta (title) "
drop_index = "drop index idx_nmm_title"
if val[0][0] == 0:
logging.info('creating index on Title')
x = query_db_new_connect(mydsn, create_index,(),0)
else :
logging.info('dropping index on Title')
x = query_db_new_connect(mydsn, drop_index,(),0)
return x
def func_create_drop_year_index (mydsn) :
val = func_find_index(mydsn,'movies_normalized_meta','idx_nmm_year')
logging.info('value: ', val)
create_index = "create index idx_nmm_year on movies_normalized_meta (year) "
drop_index = "drop index idx_nmm_year"
if val[0][0] == 0:
logging.debug('creating index on Year')
x = query_db_new_connect(mydsn, create_index,(),0)
else :
logging.debug('dropping index on Year')
x = query_db_new_connect(mydsn, drop_index,(),0)
return x
def func_create_title_index (mydsn) :
val = func_find_index(mydsn,'movies_normalized_meta','idx_nmm_title')
logging.info('value: ', val)
create_index = "create index idx_nmm_title on movies_normalized_meta (title) "
drop_index = "drop index idx_nmm_title"
if val[0][0] == 0:
logging.debug('creating index on Title')
x = query_db_new_connect(mydsn, create_index,(),0)
else :
logging.debug('Index on Title already exists')
#x = query_db_new_connect(mydsn, drop_index,(),0)
x = 0
return x
def func_drop_title_index (mydsn) :
val = func_find_index(mydsn,'movies_normalized_meta','idx_nmm_title')
logging.info('value: ', val)
create_index = "create index idx_nmm_title on movies_normalized_meta (title) "
drop_index = "drop index idx_nmm_title"
if val[0][0] == 0:
logging.debug('Index on title, does not exist')
x = 0
#x = query_db_new_connect(mydsn, create_index,(),0)
else :
logging.debug('dropping index on title')
x = query_db_new_connect(mydsn, drop_index,(),0)
return x
def func_create_year_index (mydsn) :
val = func_find_index(mydsn,'movies_normalized_meta','idx_nmm_year')
logging.info('value: ', val)
create_index = "create index idx_nmm_year on movies_normalized_meta (year) "
drop_index = "drop index idx_nmm_year"
if val[0][0] == 0:
logging.info('creating index on Year')
x = query_db_new_connect(mydsn, create_index,(),0)
else :
logging.info('Index already exsits')
x = 0
return x
def func_drop_year_index (mydsn) :
val = func_find_index(mydsn,'movies_normalized_meta','idx_nmm_year')
logging.info('value: ', val)
create_index = "create index idx_nmm_year on movies_normalized_meta (year) "
drop_index = "drop index idx_nmm_year"
if val[0][0] == 0:
logging.info('Index on Year does not exist')
x = 0
else :
logging.info('dropping index on Year')
x = query_db_new_connect(mydsn, drop_index,(),0)
return x
def func_add_actor_year_index (mydsn) :
val = func_find_index(mydsn,'movies_normalized_actors','actor_name_idx')
logging.info('value: ', val)
create_index = "create index actor_name_idx on movies_normalized_actors (actor_name) "
drop_index = "drop index actor_name_idx"
if val[0][0] == 0:
logging.info('creating index on actor name')
x = query_db_new_connect(mydsn, create_index,(),0)
else :
logging.info('Actor Index already exsits')
x = 0
return x
def func_drop_actor_year_index (mydsn) :
val = func_find_index(mydsn,'movies_normalized_actors','actor_name_idx')
logging.info('value: ', val)
create_index = "create index actor_name_idx on movies_normalized_actors (actor_name) "
drop_index = "drop index actor_name_idx"
if val[0][0] == 0:
logging.info('Index on Actor Name does not exist')
x = 0
else :
logging.info('dropping index on Actor Name')
x = query_db_new_connect(mydsn, drop_index,(),0)
return x
def func_find_index (mydsn, table_name, index_name) :
findIdx = "select count(*) from pg_class t, pg_class i, pg_index ix, pg_attribute a where t.oid = ix.indrelid and i.oid = ix.indexrelid and a.attrelid = t.oid and a.attnum = ANY(ix.indkey) and t.relkind = 'r' and t.relname like %s and i.relname=%s";
x = query_db_new_connect(mydsn, findIdx, (table_name, index_name), 1)
return(x)
def func_create_index (mydsn,name,table,columns) :
val = func_find_index(mydsn,table,name)
logging.info('value: ', val)
create_index = "create index "+ name +" on "+ table +" ("+ columns +") "
drop_index = "drop index "+ name
if val[0][0] == 0:
logging.info('creating index on %s : %s', table, columns)
x = query_db_new_connect(config, create_index,(),0)
else :
logging.info('Index on %s : %s already exsits', table, columns)
x = 0
return x
def func_drop_index (mydsn,name,table,columns) :
val = func_find_index(mydsn,table,name)
logging.info('value: ', val)
create_index = "create index "+ name +" on "+ table +" ("+ columns +") "
drop_index = "drop index "+ name
if val[0][0] == 0:
logging.info('Index on %s : %s does not exsit', table, columns)
x = 0
else :
logging.info('dropping index on %s : %s', table, drop_index)
x = query_db_new_connect(config, drop_index,(),0)
return x
def func_toggle_index (mydsn,name,table,columns) :
val = func_find_index(mydsn,table,name)
logging.info('value: ', val)
create_index = "create index "+ name +" on "+ table +" ("+ columns +") "
drop_index = "drop index "+ name
if val[0][0] == 0:
logging.info('creating index on %s : %s', table, columns)
x = query_db_new_connect(config, create_index,(),0)
else :
logging.info('dropping index on %s : %s', table, drop_index)
x = query_db_new_connect(config, drop_index,(),0)
return x
def reset_optimized_indexes(config):
func_create_index(config,'idx_comments_id','movies_normalized_user_comments','ai_myid,comment_add_time')
func_create_index(config,'idx_comments_com_time','movies_normalized_user_comments','comment_add_time')
func_create_index(config,'idx_nmm_rate','movies_normalized_meta','imdb_rating')
func_create_index(config,'idx_nmm_year_rate','movies_normalized_meta','year,imdb_rating')
func_create_index(config,'idx_nmm_country_year','movies_normalized_meta','country,year,imdb_rating')
func_create_index(config,'idx_nmm_title','movies_normalized_meta','title')
func_create_index(config,'idx_nd_id','movies_normalized_director','ai_myid')
func_create_index(config,'idx_nd_director','movies_normalized_director','director, ai_myid')
func_create_index(config,'idx_nc_char','movies_normalized_cast','actor_character')
func_create_index(config,'idx_nc_id2','movies_normalized_cast','ai_actor_id,ai_myid')
func_create_index(config,'idx_nc_id','movies_normalized_cast','ai_myid')
func_create_index(config,'idx_na_name','movies_normalized_actors','actor_name')
def drop_all_indexes(config):
func_drop_index(config,'idx_comments_id','movies_normalized_user_comments','ai_myid,comment_add_time')
func_drop_index(config,'idx_comments_com_time','movies_normalized_user_comments','comment_add_time')
func_drop_index(config,'idx_nmm_rate','movies_normalized_meta','imdb_rating')
func_drop_index(config,'idx_nmm_year_rate','movies_normalized_meta','year,imdb_rating')
func_drop_index(config,'idx_nmm_country_year','movies_normalized_meta','country,year,imdb_rating')
func_drop_index(config,'idx_nmm_title','movies_normalized_meta','title')
func_drop_index(config,'idx_nd_id','movies_normalized_director','ai_myid')
func_drop_index(config,'idx_nd_director','movies_normalized_director','director, ai_myid')
func_drop_index(config,'idx_nc_char','movies_normalized_cast','actor_character')
func_drop_index(config,'idx_nc_id2','movies_normalized_cast','ai_actor_id,ai_myid')
func_drop_index(config,'idx_nc_id','movies_normalized_cast','ai_myid')
func_drop_index(config,'idx_na_name','movies_normalized_actors','actor_name')
def reset_mixed_indexes(config):
func_drop_index(config,'idx_nmm_year_rate','movies_normalized_meta','year,imdb_rating')
func_drop_index(config,'idx_nd_director','movies_normalized_director','director, ai_myid')
func_drop_index(config,'idx_nmm_country_year','movies_normalized_meta','country,year,imdb_rating')
| 46.286445
| 595
| 0.654257
| 9,775
| 72,392
| 4.524092
| 0.04
| 0.057888
| 0.026321
| 0.02605
| 0.883974
| 0.863872
| 0.823621
| 0.790313
| 0.765552
| 0.742351
| 0
| 0.017635
| 0.246464
| 72,392
| 1,564
| 596
| 46.286445
| 0.793052
| 0.013247
| 0
| 0.73344
| 0
| 0.031125
| 0.257724
| 0.066024
| 0
| 0
| 0
| 0
| 0
| 1
| 0.062251
| false
| 0
| 0.007183
| 0.000798
| 0.11652
| 0.001596
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
2287b672930221280eb3dd5c965fb22120955521
| 3,367
|
py
|
Python
|
dataset/data_list.py
|
JamesPerlman/Deep-Flow-Guided-Video-Inpainting
|
2d4b61b22baff4550823e18a33a3c184eabeafe4
|
[
"MIT"
] | null | null | null |
dataset/data_list.py
|
JamesPerlman/Deep-Flow-Guided-Video-Inpainting
|
2d4b61b22baff4550823e18a33a3c184eabeafe4
|
[
"MIT"
] | null | null | null |
dataset/data_list.py
|
JamesPerlman/Deep-Flow-Guided-Video-Inpainting
|
2d4b61b22baff4550823e18a33a3c184eabeafe4
|
[
"MIT"
] | null | null | null |
import os
import numpy as np
def gen_flow_initial_test_mask_list(flow_root, output_txt_path):
output_txt = open(output_txt_path, 'w')
flow_list = [x for x in os.listdir(flow_root) if 'flo' in x]
flow_no_list = [int(x[:5]) for x in flow_list]
flow_start_no = min(flow_no_list)
flow_num = len(flow_list) // 2
assert flow_num > 11
video_num = 0
for i in range(flow_start_no - 5, flow_start_no + flow_num - 5):
for k in range(11):
flow_no = np.clip(i+k, a_min=flow_start_no, a_max=flow_start_no + flow_num - 1)
output_txt.write('%05d.flo' % flow_no)
output_txt.write('|')
for k in range(11):
flow_no = np.clip(i + k, a_min=flow_start_no, a_max=flow_start_no + flow_num - 1)
output_txt.write('%05d.png' % flow_no)
output_txt.write('|')
output_txt.write('%05d.flo' % (i+5))
output_txt.write('|')
output_txt.write(str(video_num))
output_txt.write('\n')
for i in range(flow_start_no - 5, flow_start_no + flow_num - 4):
for k in range(11):
flow_no = np.clip(i+k, a_min=flow_start_no, a_max=flow_start_no + flow_num)
output_txt.write('%05d.rflo' % flow_no)
output_txt.write('|')
for k in range(11):
flow_no = np.clip(i + k, a_min=flow_start_no, a_max=flow_start_no + flow_num)
output_txt.write('%05d.png' % flow_no)
output_txt.write('|')
output_txt.write('%05d.rflo' % (i+5))
output_txt.write('|')
output_txt.write(str(video_num))
output_txt.write('\n')
output_txt.close()
def gen_flow_refine_test_mask_list(flow_root, output_txt_path):
output_txt = open(output_txt_path, 'w')
flow_list = [x for x in os.listdir(flow_root) if 'flo' in x]
flow_no_list = [int(x[:5]) for x in flow_list]
flow_start_no = min(flow_no_list)
flow_num = len(flow_list) // 2
assert flow_num > 11
for i in range(flow_start_no - 5, flow_start_no + flow_num - 4):
gt_flow_no = [0, 0]
f_flow_no = []
for k in range(11):
flow_no = np.clip(i + k, a_min=flow_start_no, a_max=flow_start_no + flow_num - 1)
f_flow_no.append(int(flow_no))
output_txt.write('%05d.flo' % flow_no)
if k == 5:
gt_flow_no[0] = flow_no
output_txt.write('|')
r_flow_no = []
for k in range(11):
flow_no = np.clip(i + k, a_min=flow_start_no, a_max=flow_start_no + flow_num)
r_flow_no.append(int(flow_no))
if k == 5:
gt_flow_no[1] = flow_no
output_txt.write('%05d.rflo' % flow_no)
output_txt.write('|')
for k in range(11):
output_txt.write('%05d.png' % f_flow_no[k])
output_txt.write('|')
for k in range(11):
output_txt.write('%05d.png' % r_flow_no[k])
output_txt.write('|')
output_path = ','.join(['%05d.flo' % gt_flow_no[0],
'%05d.rflo' % gt_flow_no[1]])
output_txt.write(output_path)
output_txt.write('|')
output_txt.write(str(0))
output_txt.write('\n')
output_txt.close()
# if __name__ == '__main__':
# gen_flow_initial_test_mask_list(flow_root='', output_txt_path='')
| 33.67
| 93
| 0.580933
| 543
| 3,367
| 3.248619
| 0.108656
| 0.188776
| 0.222222
| 0.096372
| 0.93424
| 0.89966
| 0.859977
| 0.804989
| 0.784581
| 0.784581
| 0
| 0.02869
| 0.285714
| 3,367
| 100
| 94
| 33.67
| 0.704782
| 0.028512
| 0
| 0.72
| 0
| 0
| 0.038544
| 0
| 0
| 0
| 0
| 0
| 0.026667
| 1
| 0.026667
| false
| 0
| 0.026667
| 0
| 0.053333
| 0
| 0
| 0
| 0
| null | 0
| 1
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 8
|
2288b509d22e08c4928a68325bfa61b6c8745de0
| 466
|
py
|
Python
|
python/python_test.py
|
wgf5544/wugaofeng
|
149c1f4f48884c7719de80faa18a96c42e529863
|
[
"Apache-2.0"
] | null | null | null |
python/python_test.py
|
wgf5544/wugaofeng
|
149c1f4f48884c7719de80faa18a96c42e529863
|
[
"Apache-2.0"
] | null | null | null |
python/python_test.py
|
wgf5544/wugaofeng
|
149c1f4f48884c7719de80faa18a96c42e529863
|
[
"Apache-2.0"
] | null | null | null |
'''
Args:
Returns:
'''
# class Singleton():
# def __new__(cls, *args, **kwargs):
# if not hasattr(cls, '_the_instance'):
# print(hasattr(cls, '_the_instance'))
# cls._the_instance = object.__new__(cls, *args, **kwargs)
# return cls._the_instance
#
# s = Singleton()
#
# s1 = Singleton()
# print(dir(Singleton))
# print(id(s), ' ', id(s1))
# print(getattr(Singleton, '_the_instance'))
import module_test
import module_test
| 23.3
| 70
| 0.613734
| 55
| 466
| 4.836364
| 0.436364
| 0.206767
| 0.210526
| 0.120301
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.00542
| 0.208155
| 466
| 20
| 71
| 23.3
| 0.715447
| 0.845494
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 0
| 1
| 0
| 0
| 0
| 0
| null | 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 7
|
430085750b25c0f12ca15f2b371985fd0d05bdf4
| 3,460
|
py
|
Python
|
database.py
|
projeto7c0/7c0-tweets
|
d8b711b30f6e3eca34cefe13ec875e66666740ea
|
[
"MIT"
] | 10
|
2021-02-24T12:41:23.000Z
|
2021-11-29T12:47:13.000Z
|
database.py
|
projeto7c0/7c0-tweets
|
d8b711b30f6e3eca34cefe13ec875e66666740ea
|
[
"MIT"
] | null | null | null |
database.py
|
projeto7c0/7c0-tweets
|
d8b711b30f6e3eca34cefe13ec875e66666740ea
|
[
"MIT"
] | 1
|
2020-07-25T18:25:22.000Z
|
2020-07-25T18:25:22.000Z
|
import re, time
import database_auth
def get_handles_to_tweet():
sql = "select distinct(handle) from mimic_tweets where erased = 1 and 7c0_tweeted = 0;"
db = database_auth.conecta_banco()
cursor = db.cursor()
try:
cursor.execute(sql)
value = cursor.fetchall()
except Exception as E:
print(E)
finally:
db.close()
return value
def get_candidatos():
sql = "select * from candidatos_2020;"
db = database_auth.conecta_banco()
cursor = db.cursor()
try:
cursor.execute(sql)
value = cursor.fetchall()
except Exception as E:
print(E)
finally:
db.close()
return value
def get_tweets_ids(conta):
print(conta)
sql = "select idTweets from mimic_tweets where handle = \"" + conta[0] + "\" and 7c0_tweeted = 0 and erased = 1 order by idTweets asc;"
db = database_auth.conecta_banco()
cursor = db.cursor()
try:
cursor.execute(sql)
value = cursor.fetchall()
except Exception as E:
print(E)
finally:
db.close()
return value
def get_tweets_ids_election(conta):
print(conta)
sql = "select idTweets from election_tweets_2020 where handle = \"" + conta[1] + "\" and 7c0_tweeted = 0 and erased = 1 order by idTweets asc;"
db = database_auth.conecta_banco()
cursor = db.cursor()
try:
cursor.execute(sql)
value = cursor.fetchall()
except Exception as E:
print(E)
finally:
db.close()
return value
def retrieve_tweet(tweet_id):
sql = "select * from mimic_tweets where idTweets = \"" + str(tweet_id[0]) + "\";"
db = database_auth.conecta_banco()
cursor = db.cursor()
try:
cursor.execute(sql)
value = cursor.fetchone()
except Exception as E:
print(E)
finally:
db.close()
if value:
if value[10]:
return tweet_id, value[2], value[4], value[10], value[3]
else:
return tweet_id, value[2], value[4], "Não arquivado", value[3]
else:
return [0], "", "", "Não arquivado", ""
def retrieve_tweet_election(tweet_id):
sql = "select * from election_tweets_2020 where idTweets = \"" + str(tweet_id[0]) + "\";"
db = database_auth.conecta_banco()
cursor = db.cursor()
try:
cursor.execute(sql)
value = cursor.fetchone()
except Exception as E:
print(E)
finally:
db.close()
if value:
if value[11]:
return tweet_id, value[2], value[4], value[11], value[3]
else:
return tweet_id, value[2], value[4], "Não arquivado", value[3]
else:
return [0], "", "", "Não arquivado", ""
def update_tweeted(id_set):
db = database_auth.conecta_banco()
cursor = db.cursor()
sql = "update mimic_tweets set 7c0_tweeted = 1 where idTweets in ("
for id in id_set:
sql += "\"" + str(id[0]) + "\","
sql += "\"0\");"
try:
cursor.execute(sql)
except Exception as E:
print(E)
db.commit()
db.close()
def update_tweeted_election(id_set):
db = database_auth.conecta_banco()
cursor = db.cursor()
sql = "update election_tweets_2020 set 7c0_tweeted = 1 where idTweets in ("
for id in id_set:
sql += "\"" + str(id[0]) + "\","
sql += "\"0\");"
try:
cursor.execute(sql)
except Exception as E:
print(E)
db.commit()
db.close()
| 24.027778
| 147
| 0.583815
| 443
| 3,460
| 4.424379
| 0.151242
| 0.055102
| 0.057143
| 0.085714
| 0.845918
| 0.796939
| 0.796939
| 0.760204
| 0.729592
| 0.729592
| 0
| 0.025953
| 0.287283
| 3,460
| 143
| 148
| 24.195804
| 0.768856
| 0
| 0
| 0.807018
| 0
| 0
| 0.209538
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.070175
| false
| 0
| 0.017544
| 0
| 0.175439
| 0.087719
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
4a3e99543c6179fc7f3d3f3d779d9fe2ca5a74f7
| 183
|
py
|
Python
|
src/waldur_core/quotas/utils.py
|
geant-multicloud/MCMS-mastermind
|
81333180f5e56a0bc88d7dad448505448e01f24e
|
[
"MIT"
] | 26
|
2017-10-18T13:49:58.000Z
|
2021-09-19T04:44:09.000Z
|
src/waldur_core/quotas/utils.py
|
geant-multicloud/MCMS-mastermind
|
81333180f5e56a0bc88d7dad448505448e01f24e
|
[
"MIT"
] | 14
|
2018-12-10T14:14:51.000Z
|
2021-06-07T10:33:39.000Z
|
src/waldur_core/quotas/utils.py
|
geant-multicloud/MCMS-mastermind
|
81333180f5e56a0bc88d7dad448505448e01f24e
|
[
"MIT"
] | 32
|
2017-09-24T03:10:45.000Z
|
2021-10-16T16:41:09.000Z
|
from django.apps import apps
from waldur_core.quotas import models
def get_models_with_quotas():
return [m for m in apps.get_models() if issubclass(m, models.QuotaModelMixin)]
| 22.875
| 82
| 0.781421
| 29
| 183
| 4.758621
| 0.62069
| 0.130435
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.142077
| 183
| 7
| 83
| 26.142857
| 0.878981
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.25
| true
| 0
| 0.5
| 0.25
| 1
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 1
| 0
| 1
| 1
| 1
| 0
|
0
| 7
|
4a4cf216bbcf61ffb2e0403a507deb4a3602e0b2
| 200
|
py
|
Python
|
mail_factory/tests/__init__.py
|
marcari/django-mail-factory
|
d2607cc09994a7572f42efadedeac309e47c35ca
|
[
"BSD-3-Clause"
] | 17
|
2017-11-21T15:00:31.000Z
|
2021-04-05T01:49:19.000Z
|
mail_factory/tests/__init__.py
|
marcari/django-mail-factory
|
d2607cc09994a7572f42efadedeac309e47c35ca
|
[
"BSD-3-Clause"
] | 8
|
2018-02-08T10:53:09.000Z
|
2020-08-04T14:37:45.000Z
|
mail_factory/tests/__init__.py
|
marcari/django-mail-factory
|
d2607cc09994a7572f42efadedeac309e47c35ca
|
[
"BSD-3-Clause"
] | 7
|
2018-03-05T19:01:37.000Z
|
2020-02-11T21:16:44.000Z
|
# -*- coding: utf-8 -*-
from .test_factory import * # noqa
from .test_forms import * # noqa
from .test_mails import * # noqa
from .test_messages import * # noqa
from .test_views import * # noqa
| 25
| 36
| 0.675
| 28
| 200
| 4.642857
| 0.428571
| 0.307692
| 0.430769
| 0.553846
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.006289
| 0.205
| 200
| 7
| 37
| 28.571429
| 0.811321
| 0.23
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 0
| 1
| 0
| 1
| 0
| 0
| null | 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 8
|
4ac33a23b91a97ebc3c6911e8fca318b1f9b4c0a
| 2,351
|
py
|
Python
|
tests/test_io.py
|
brendan-ward/pgpkg
|
f9d4c5efe72949cc714b12969b0a48d57c14bb56
|
[
"MIT"
] | 5
|
2019-12-20T09:05:22.000Z
|
2022-01-27T19:25:51.000Z
|
modules/pgpkg/tests/test_io.py
|
snirandjan/CISI
|
037afc47897c8316827eb240680e95a5bc030c88
|
[
"MIT"
] | null | null | null |
modules/pgpkg/tests/test_io.py
|
snirandjan/CISI
|
037afc47897c8316827eb240680e95a5bc030c88
|
[
"MIT"
] | 1
|
2020-10-28T20:30:33.000Z
|
2020-10-28T20:30:33.000Z
|
import os
import geopandas as gp
import pytest
from pgpkg import Geopackage, to_gpkg
def write_gpkg(filename, df, name, crs):
with Geopackage(filename, "w") as out:
out.add_layer(df, name, crs)
def test_points_write(tmpdir, points_wgs84):
filename = tmpdir / "points_wgs84.gpkg"
with Geopackage(filename, "w") as out:
out.add_layer(points_wgs84, "points_wgs84", crs="EPSG:4326")
assert os.path.exists(filename)
# TODO: verify written properly
def test_points_write_no_index(tmpdir, points_wgs84):
filename = tmpdir / "points_wgs84.gpkg"
with Geopackage(filename, "w") as out:
out.add_layer(points_wgs84, "points_wgs84", crs="EPSG:4326", index=False)
assert os.path.exists(filename)
# TODO: verify written properly
def test_points_write_func(tmpdir, points_wgs84):
filename = tmpdir / "points_wgs84.gpkg"
to_gpkg(points_wgs84, filename, name="points_wgs84", crs="EPSG:4326")
assert os.path.exists(filename)
# TODO: verify written properly
def test_points_write_func_no_index(tmpdir, points_wgs84):
filename = tmpdir / "points_wgs84.gpkg"
to_gpkg(points_wgs84, filename, name="points_wgs84", crs="EPSG:4326", index=False)
assert os.path.exists(filename)
def test_points_write_func_no_name(tmpdir, points_wgs84):
filename = tmpdir / "points_wgs84.gpkg"
to_gpkg(points_wgs84, filename, crs="EPSG:4326")
assert os.path.exists(filename)
def test_lines_write(tmpdir, lines_wgs84):
filename = tmpdir / "lines_wgs84.gpkg"
with Geopackage(filename, "w") as out:
out.add_layer(lines_wgs84, "lines_wgs84", crs="EPSG:4326")
assert os.path.exists(filename)
# TODO: verify written properly
# verify includes geometry bounds
def test_polygons_write(tmpdir, polygons_wgs84):
filename = tmpdir / "polygons_wgs84.gpkg"
with Geopackage(filename, "w") as out:
out.add_layer(polygons_wgs84, "polygons_wgs84", crs="EPSG:4326")
assert os.path.exists(filename)
# TODO: verify written properly
# verify includes geometry bounds
def test_write_missing_ext(tmpdir, points_wgs84):
filename = tmpdir / "points_wgs84"
with Geopackage(filename, "w") as out:
out.add_layer(points_wgs84, "points_wgs84", crs="EPSG:4326")
assert os.path.exists("{}.gpkg".format(filename))
| 26.122222
| 86
| 0.715015
| 322
| 2,351
| 5.009317
| 0.145963
| 0.156851
| 0.126472
| 0.089275
| 0.815251
| 0.815251
| 0.804712
| 0.769994
| 0.747055
| 0.722877
| 0
| 0.048379
| 0.173543
| 2,351
| 89
| 87
| 26.41573
| 0.781781
| 0.0906
| 0
| 0.454545
| 0
| 0
| 0.141784
| 0
| 0
| 0
| 0
| 0.011236
| 0.181818
| 1
| 0.204545
| false
| 0
| 0.090909
| 0
| 0.295455
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 1
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 8
|
436545b56e14ecb0bffa4bbd071b42fe91049d7a
| 1,652
|
py
|
Python
|
migrations/versions/810_disallow_nulls_in_json_fields.py
|
uk-gov-mirror/alphagov.digitalmarketplace-api
|
5a1db63691d0c4a435714837196ab6914badaf62
|
[
"MIT"
] | 25
|
2015-01-14T10:45:13.000Z
|
2021-05-26T17:21:41.000Z
|
migrations/versions/810_disallow_nulls_in_json_fields.py
|
uk-gov-mirror/alphagov.digitalmarketplace-api
|
5a1db63691d0c4a435714837196ab6914badaf62
|
[
"MIT"
] | 641
|
2015-01-15T11:10:50.000Z
|
2021-06-15T22:18:42.000Z
|
migrations/versions/810_disallow_nulls_in_json_fields.py
|
uk-gov-mirror/alphagov.digitalmarketplace-api
|
5a1db63691d0c4a435714837196ab6914badaf62
|
[
"MIT"
] | 22
|
2015-06-13T15:37:45.000Z
|
2021-08-19T23:40:49.000Z
|
"""Disallow NULLs in certain JSON fields"""
# revision identifiers, used by Alembic.
revision = '810'
down_revision = '800'
from alembic import op
import sqlalchemy as sa
from sqlalchemy.dialects import postgresql
def upgrade():
# ### commands auto generated by Alembic - please adjust! ###
op.alter_column('archived_services', 'data',
existing_type=postgresql.JSON,
nullable=False)
op.alter_column('briefs', 'data',
existing_type=postgresql.JSON,
nullable=False)
op.alter_column('draft_services', 'data',
existing_type=postgresql.JSON,
nullable=False)
op.alter_column('services', 'data',
existing_type=postgresql.JSON,
nullable=False)
op.alter_column('suppliers', 'clients',
existing_type=postgresql.JSON,
nullable=False)
# ### end Alembic commands ###
def downgrade():
# ### commands auto generated by Alembic - please adjust! ###
op.alter_column('suppliers', 'clients',
existing_type=postgresql.JSON,
nullable=True)
op.alter_column('services', 'data',
existing_type=postgresql.JSON,
nullable=True)
op.alter_column('draft_services', 'data',
existing_type=postgresql.JSON,
nullable=True)
op.alter_column('briefs', 'data',
existing_type=postgresql.JSON,
nullable=True)
op.alter_column('archived_services', 'data',
existing_type=postgresql.JSON,
nullable=True)
# ### end Alembic commands ###
| 33.714286
| 65
| 0.604722
| 167
| 1,652
| 5.832335
| 0.269461
| 0.071869
| 0.13347
| 0.26694
| 0.768994
| 0.768994
| 0.76386
| 0.76386
| 0.759754
| 0.755647
| 0
| 0.005072
| 0.283898
| 1,652
| 48
| 66
| 34.416667
| 0.818259
| 0.139225
| 0
| 0.810811
| 0
| 0
| 0.115357
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.054054
| false
| 0
| 0.081081
| 0
| 0.135135
| 0
| 0
| 0
| 0
| null | 0
| 0
| 1
| 0
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
439c0ade67d8c3ee6acd104ff22a41dcd47eb61d
| 781,358
|
py
|
Python
|
fonts.py
|
arpruss/nokiatext
|
3bc8fa30b1c571bcd8d06b02005a408389b60cc2
|
[
"MIT"
] | 338
|
2015-01-20T15:07:48.000Z
|
2022-02-25T17:31:06.000Z
|
fonts.py
|
arpruss/nokiatext
|
3bc8fa30b1c571bcd8d06b02005a408389b60cc2
|
[
"MIT"
] | 58
|
2015-03-26T12:21:41.000Z
|
2022-02-20T21:01:33.000Z
|
fonts.py
|
arpruss/nokiatext
|
3bc8fa30b1c571bcd8d06b02005a408389b60cc2
|
[
"MIT"
] | 112
|
2015-08-10T19:20:44.000Z
|
2022-02-23T08:58:52.000Z
|
#Except for the public domain 8x8 font, these fonts are by Ron Buelow.
#The permission I requested was for use in Sharp Wizard software,
#but the permission given was blanket.
#
#Message-ID: <3CE41085.63359A28@ealoha.com>
#Date: Thu, 16 May 2002 10:03:17 -1000
#From: Ron Buelow <ron@ealoha.com>
#X-Mailer: Mozilla 4.79 [en] (Windows NT 5.0; U)
#X-Accept-Language: en
#MIME-Version: 1.0
#To: "Alexander R. Pruss" <ap85@georgetown.edu>
#Subject: Re: coolfonts
#References: <000b01c1fc1b$38845e00$6f3ea18d@georgetown.edu>
#Content-Type: text/plain; charset=us-ascii
#Content-Transfer-Encoding: 7bit
#
#Hi Alex,
#
#Thanks for the note, use the fonts any way you wish,
#as always credit the source as applicable.
#
#Thanks, -Ron Buelow.
#
#"Alexander R. Pruss" wrote:
#
#> Dear Mr. Buelow,
#>
#> I downloaded your great CoolFonts package. I wanted to ask your
#> permission to make these fonts (or at least some of them) available, in a
#> different format, as fonts for the Sharp Wizard 7xx organizer on my software
#> website home.att.net/~apruss, as well as on www.ozdev.com and mywizard.com,
#> and also available for free redistribution.
#>
#> I maintain the C-based SDK for the Sharp 7xx units, and have just
#> extended the C library to allow one to use custom fonts. I have converted
#> some of your fonts to Sharp 7xx format by loading them into a Palm emulator,
#> entering a memo containing all the standard ASCII characters, taking a .bmp
#> screen image, and having written a program that converts appropriate .bmp
#> files into font files for the Wizard (doing also some cleanup with Windows
#> Paint, and some format conversion with ImageMagick).
#>
#> Ideally, I would want to have the fonts available for inclusion
#> within commercial/shareware programs, because I'd like them to be included
#> in the SDK, and as a matter of policy I try not to include things in the SDK
#> that have use restrictions. The SDK itself is freely available, of course.
#>
#> You can find more information on the Sharp 7xx unit at
#> www.ozdev.com. The development community for the 7xx is very small, and the
#> amount of shareware/commercial software for the unit is very small, too. In
#> fact, there is only one commercial program, namely my SecureEdit program
#> which netted, I think, total sales of about $100 (though there are also some
#> people who develop proprietary in-house applications for specific purposes).
#> There are a few shareware programs, and some of my programs ask for a
#> charitable donation (not to me), but it's nothing like the Palm scene.
#> Nonetheless, it would be really nice to have the permission for
#> shareware/commercial use. (Technically, for use within the U.S. permission
#> is not needed, because the copyright office has held that representations of
#> bitmapped fonts--as opposed to the programs that generate them--are not
#> copyrightable. But it's still nice to ask, and copyright law in other
#> countries may well be different, whereas the SDK has users in other
#> countries, as well.)
#>
#> I throw in two screenshots of my font browser displaying two of your (I
#> think) fonts.
#>
#> Thank you for all your hard work!
#>
#> Sincerely yours,
#> Alex Pruss
# generated by fontconv
#fontType 36864
#firstChar 9
#lastChar 255
#maxWidth 10
#kernMax 1
#nDescent 0
#fRectWidth 10
#fRectHeight 10
#ascent 8
#descent 2
#leading 0
#averageWidth 5.08
# format: width, offset, delta, (bitmap)
# To draw a glyph, first move by offset (typically 0 or negative), then draw a glyph of specified width,
# then update drawing position by delta.
FONTS = {}
FONTS['8x8'] = {
32:(8,0,8,(
0b00000000,
0b00000000,
0b00000000,
0b00000000,
0b00000000,
0b00000000,
0b00000000,
0b00000000
)),
33:(8,0,8,(
0b00011000,
0b00111100,
0b00111100,
0b00011000,
0b00011000,
0b00000000,
0b00011000,
0b00000000
)),
34:(8,0,8,(
0b01101100,
0b01101100,
0b00000000,
0b00000000,
0b00000000,
0b00000000,
0b00000000,
0b00000000,
)),
35:(8,0,8,(
0b01101100,
0b01101100,
0b11111110,
0b01101100,
0b11111110,
0b01101100,
0b01101100,
0b00000000,
)),
36:(8,0,8,(
0b00110000,
0b01111100,
0b11000000,
0b01111000,
0b00001100,
0b11111000,
0b00110000,
0b00000000,
)),
37:(8,0,8,(
0b00000000,
0b11000110,
0b11001100,
0b00011000,
0b00110000,
0b01100110,
0b11000110,
0b00000000,
)),
38:(8,0,8,(
0b00111000,
0b01101100,
0b00111000,
0b01110110,
0b11011100,
0b11001100,
0b01110110,
0b00000000,
)),
39:(8,0,8,(
0b01100000,
0b01100000,
0b11000000,
0b00000000,
0b00000000,
0b00000000,
0b00000000,
0b00000000,
)),
40:(8,0,8,(
0b00011000,
0b00110000,
0b01100000,
0b01100000,
0b01100000,
0b00110000,
0b00011000,
0b00000000,
)),
41:(8,0,8,(
0b01100000,
0b00110000,
0b00011000,
0b00011000,
0b00011000,
0b00110000,
0b01100000,
0b00000000,
)),
42:(8,0,8,(
0b00000000,
0b01100110,
0b00111100,
0b11111111,
0b00111100,
0b01100110,
0b00000000,
0b00000000,
)),
43:(8,0,8,(
0b00000000,
0b00110000,
0b00110000,
0b11111100,
0b00110000,
0b00110000,
0b00000000,
0b00000000,
)),
44:(8,0,8,(
0b00000000,
0b00000000,
0b00000000,
0b00000000,
0b00000000,
0b00110000,
0b00110000,
0b01100000,
)),
45:(8,0,8,(
0b00000000,
0b00000000,
0b00000000,
0b11111100,
0b00000000,
0b00000000,
0b00000000,
0b00000000,
)),
46:(8,0,8,(
0b00000000,
0b00000000,
0b00000000,
0b00000000,
0b00000000,
0b00110000,
0b00110000,
0b00000000,
)),
47:(8,0,8,(
0b00000110,
0b00001100,
0b00011000,
0b00110000,
0b01100000,
0b11000000,
0b10000000,
0b00000000,
)),
48:(8,0,8,(
0b01111100,
0b11000110,
0b11001110,
0b11011110,
0b11110110,
0b11100110,
0b01111100,
0b00000000,
)),
49:(8,0,8,(
0b00110000,
0b01110000,
0b00110000,
0b00110000,
0b00110000,
0b00110000,
0b11111100,
0b00000000,
)),
50:(8,0,8,(
0b01111000,
0b11001100,
0b00001100,
0b00111000,
0b01100000,
0b11001100,
0b11111100,
0b00000000,
)),
51:(8,0,8,(
0b01111000,
0b11001100,
0b00001100,
0b00111000,
0b00001100,
0b11001100,
0b01111000,
0b00000000,
)),
52:(8,0,8,(
0b00011100,
0b00111100,
0b01101100,
0b11001100,
0b11111110,
0b00001100,
0b00011110,
0b00000000,
)),
53:(8,0,8,(
0b11111100,
0b11000000,
0b11111000,
0b00001100,
0b00001100,
0b11001100,
0b01111000,
0b00000000,
)),
54:(8,0,8,(
0b00111000,
0b01100000,
0b11000000,
0b11111000,
0b11001100,
0b11001100,
0b01111000,
0b00000000,
)),
55:(8,0,8,(
0b11111100,
0b11001100,
0b00001100,
0b00011000,
0b00110000,
0b00110000,
0b00110000,
0b00000000,
)),
56:(8,0,8,(
0b01111000,
0b11001100,
0b11001100,
0b01111000,
0b11001100,
0b11001100,
0b01111000,
0b00000000,
)),
57:(8,0,8,(
0b01111000,
0b11001100,
0b11001100,
0b01111100,
0b00001100,
0b00011000,
0b01110000,
0b00000000,
)),
58:(8,0,8,(
0b00000000,
0b00110000,
0b00110000,
0b00000000,
0b00000000,
0b00110000,
0b00110000,
0b00000000,
)),
59:(8,0,8,(
0b00000000,
0b00110000,
0b00110000,
0b00000000,
0b00000000,
0b00110000,
0b00110000,
0b01100000,
)),
60:(8,0,8,(
0b00011000,
0b00110000,
0b01100000,
0b11000000,
0b01100000,
0b00110000,
0b00011000,
0b00000000,
)),
61:(8,0,8,(
0b00000000,
0b00000000,
0b11111100,
0b00000000,
0b00000000,
0b11111100,
0b00000000,
0b00000000,
)),
62:(8,0,8,(
0b01100000,
0b00110000,
0b00011000,
0b00001100,
0b00011000,
0b00110000,
0b01100000,
0b00000000,
)),
63:(8,0,8,(
0b01111000,
0b11001100,
0b00001100,
0b00011000,
0b00110000,
0b00000000,
0b00110000,
0b00000000,
)),
64:(8,0,8,(
0b01111100,
0b11000110,
0b11011110,
0b11011110,
0b11011110,
0b11000000,
0b01111000,
0b00000000,
)),
65:(8,0,8,(
0b00110000,
0b01111000,
0b11001100,
0b11001100,
0b11111100,
0b11001100,
0b11001100,
0b00000000,
)),
66:(8,0,8,(
0b11111100,
0b01100110,
0b01100110,
0b01111100,
0b01100110,
0b01100110,
0b11111100,
0b00000000,
)),
67:(8,0,8,(
0b00111100,
0b01100110,
0b11000000,
0b11000000,
0b11000000,
0b01100110,
0b00111100,
0b00000000,
)),
68:(8,0,8,(
0b11111000,
0b01101100,
0b01100110,
0b01100110,
0b01100110,
0b01101100,
0b11111000,
0b00000000,
)),
69:(8,0,8,(
0b11111110,
0b01100010,
0b01101000,
0b01111000,
0b01101000,
0b01100010,
0b11111110,
0b00000000,
)),
70:(8,0,8,(
0b11111110,
0b01100010,
0b01101000,
0b01111000,
0b01101000,
0b01100000,
0b11110000,
0b00000000,
)),
71:(8,0,8,(
0b00111100,
0b01100110,
0b11000000,
0b11000000,
0b11001110,
0b01100110,
0b00111110,
0b00000000,
)),
72:(8,0,8,(
0b11001100,
0b11001100,
0b11001100,
0b11111100,
0b11001100,
0b11001100,
0b11001100,
0b00000000,
)),
73:(8,0,8,(
0b01111000,
0b00110000,
0b00110000,
0b00110000,
0b00110000,
0b00110000,
0b01111000,
0b00000000,
)),
74:(8,0,8,(
0b00011110,
0b00001100,
0b00001100,
0b00001100,
0b11001100,
0b11001100,
0b01111000,
0b00000000,
)),
75:(8,0,8,(
0b11100110,
0b01100110,
0b01101100,
0b01111000,
0b01101100,
0b01100110,
0b11100110,
0b00000000,
)),
76:(8,0,8,(
0b11110000,
0b01100000,
0b01100000,
0b01100000,
0b01100010,
0b01100110,
0b11111110,
0b00000000,
)),
77:(8,0,8,(
0b11000110,
0b11101110,
0b11111110,
0b11111110,
0b11010110,
0b11000110,
0b11000110,
0b00000000,
)),
78:(8,0,8,(
0b11000110,
0b11100110,
0b11110110,
0b11011110,
0b11001110,
0b11000110,
0b11000110,
0b00000000,
)),
79:(8,0,8,(
0b00111000,
0b01101100,
0b11000110,
0b11000110,
0b11000110,
0b01101100,
0b00111000,
0b00000000,
)),
80:(8,0,8,(
0b11111100,
0b01100110,
0b01100110,
0b01111100,
0b01100000,
0b01100000,
0b11110000,
0b00000000,
)),
81:(8,0,8,(
0b01111000,
0b11001100,
0b11001100,
0b11001100,
0b11011100,
0b01111000,
0b00011100,
0b00000000,
)),
82:(8,0,8,(
0b11111100,
0b01100110,
0b01100110,
0b01111100,
0b01101100,
0b01100110,
0b11100110,
0b00000000,
)),
83:(8,0,8,(
0b01111000,
0b11001100,
0b11100000,
0b01110000,
0b00011100,
0b11001100,
0b01111000,
0b00000000,
)),
84:(8,0,8,(
0b11111100,
0b10110100,
0b00110000,
0b00110000,
0b00110000,
0b00110000,
0b01111000,
0b00000000,
)),
85:(8,0,8,(
0b11001100,
0b11001100,
0b11001100,
0b11001100,
0b11001100,
0b11001100,
0b11111100,
0b00000000,
)),
86:(8,0,8,(
0b11001100,
0b11001100,
0b11001100,
0b11001100,
0b11001100,
0b01111000,
0b00110000,
0b00000000,
)),
87:(8,0,8,(
0b11000110,
0b11000110,
0b11000110,
0b11010110,
0b11111110,
0b11101110,
0b11000110,
0b00000000,
)),
88:(8,0,8,(
0b11000110,
0b11000110,
0b01101100,
0b00111000,
0b00111000,
0b01101100,
0b11000110,
0b00000000,
)),
89:(8,0,8,(
0b11001100,
0b11001100,
0b11001100,
0b01111000,
0b00110000,
0b00110000,
0b01111000,
0b00000000,
)),
90:(8,0,8,(
0b11111110,
0b11000110,
0b10001100,
0b00011000,
0b00110010,
0b01100110,
0b11111110,
0b00000000,
)),
91:(8,0,8,(
0b01111000,
0b01100000,
0b01100000,
0b01100000,
0b01100000,
0b01100000,
0b01111000,
0b00000000,
)),
92:(8,0,8,(
0b11000000,
0b01100000,
0b00110000,
0b00011000,
0b00001100,
0b00000110,
0b00000010,
0b00000000,
)),
93:(8,0,8,(
0b01111000,
0b00011000,
0b00011000,
0b00011000,
0b00011000,
0b00011000,
0b01111000,
0b00000000,
)),
94:(8,0,8,(
0b00010000,
0b00111000,
0b01101100,
0b11000110,
0b00000000,
0b00000000,
0b00000000,
0b00000000,
)),
95:(8,0,8,(
0b00000000,
0b00000000,
0b00000000,
0b00000000,
0b00000000,
0b00000000,
0b00000000,
0b11111111,
)),
96:(8,0,8,(
0b00110000,
0b00110000,
0b00011000,
0b00000000,
0b00000000,
0b00000000,
0b00000000,
0b00000000,
)),
97:(8,0,8,(
0b00000000,
0b00000000,
0b01111000,
0b00001100,
0b01111100,
0b11001100,
0b01110110,
0b00000000,
)),
98:(8,0,8,(
0b11100000,
0b01100000,
0b01100000,
0b01111100,
0b01100110,
0b01100110,
0b11011100,
0b00000000,
)),
99:(8,0,8,(
0b00000000,
0b00000000,
0b01111000,
0b11001100,
0b11000000,
0b11001100,
0b01111000,
0b00000000,
)),
100:(8,0,8,(
0b00011100,
0b00001100,
0b00001100,
0b01111100,
0b11001100,
0b11001100,
0b01110110,
0b00000000,
)),
101:(8,0,8,(
0b00000000,
0b00000000,
0b01111000,
0b11001100,
0b11111100,
0b11000000,
0b01111000,
0b00000000,
)),
102:(8,0,8,(
0b00111000,
0b01101100,
0b01100000,
0b11110000,
0b01100000,
0b01100000,
0b11110000,
0b00000000,
)),
103:(8,0,8,(
0b00000000,
0b00000000,
0b01110110,
0b11001100,
0b11001100,
0b01111100,
0b00001100,
0b11111000,
)),
104:(8,0,8,(
0b11100000,
0b01100000,
0b01101100,
0b01110110,
0b01100110,
0b01100110,
0b11100110,
0b00000000,
)),
105:(8,0,8,(
0b00110000,
0b00000000,
0b01110000,
0b00110000,
0b00110000,
0b00110000,
0b01111000,
0b00000000,
)),
106:(8,0,8,(
0b00001100,
0b00000000,
0b00001100,
0b00001100,
0b00001100,
0b11001100,
0b11001100,
0b01111000,
)),
107:(8,0,8,(
0b11100000,
0b01100000,
0b01100110,
0b01101100,
0b01111000,
0b01101100,
0b11100110,
0b00000000,
)),
108:(8,0,8,(
0b01110000,
0b00110000,
0b00110000,
0b00110000,
0b00110000,
0b00110000,
0b01111000,
0b00000000,
)),
109:(8,0,8,(
0b00000000,
0b00000000,
0b11001100,
0b11111110,
0b11111110,
0b11010110,
0b11000110,
0b00000000,
)),
110:(8,0,8,(
0b00000000,
0b00000000,
0b11111000,
0b11001100,
0b11001100,
0b11001100,
0b11001100,
0b00000000,
)),
111:(8,0,8,(
0b00000000,
0b00000000,
0b01111000,
0b11001100,
0b11001100,
0b11001100,
0b01111000,
0b00000000,
)),
112:(8,0,8,(
0b00000000,
0b00000000,
0b11011100,
0b01100110,
0b01100110,
0b01111100,
0b01100000,
0b11110000,
)),
113:(8,0,8,(
0b00000000,
0b00000000,
0b01110110,
0b11001100,
0b11001100,
0b01111100,
0b00001100,
0b00011110,
)),
114:(8,0,8,(
0b00000000,
0b00000000,
0b11011100,
0b01110110,
0b01100110,
0b01100000,
0b11110000,
0b00000000,
)),
115:(8,0,8,(
0b00000000,
0b00000000,
0b01111100,
0b11000000,
0b01111000,
0b00001100,
0b11111000,
0b00000000,
)),
116:(8,0,8,(
0b00010000,
0b00110000,
0b01111100,
0b00110000,
0b00110000,
0b00110100,
0b00011000,
0b00000000,
)),
117:(8,0,8,(
0b00000000,
0b00000000,
0b11001100,
0b11001100,
0b11001100,
0b11001100,
0b01110110,
0b00000000,
)),
118:(8,0,8,(
0b00000000,
0b00000000,
0b11001100,
0b11001100,
0b11001100,
0b01111000,
0b00110000,
0b00000000,
)),
119:(8,0,8,(
0b00000000,
0b00000000,
0b11000110,
0b11010110,
0b11111110,
0b11111110,
0b01101100,
0b00000000,
)),
120:(8,0,8,(
0b00000000,
0b00000000,
0b11000110,
0b01101100,
0b00111000,
0b01101100,
0b11000110,
0b00000000,
)),
121:(8,0,8,(
0b00000000,
0b00000000,
0b11001100,
0b11001100,
0b11001100,
0b01111100,
0b00001100,
0b11111000,
)),
122:(8,0,8,(
0b00000000,
0b00000000,
0b11111100,
0b10011000,
0b00110000,
0b01100100,
0b11111100,
0b00000000,
)),
123:(8,0,8,(
0b00011100,
0b00110000,
0b00110000,
0b11100000,
0b00110000,
0b00110000,
0b00011100,
0b00000000,
)),
124:(8,0,8,(
0b00011000,
0b00011000,
0b00011000,
0b00000000,
0b00011000,
0b00011000,
0b00011000,
0b00000000,
)),
125:(8,0,8,(
0b11100000,
0b00110000,
0b00110000,
0b00011100,
0b00110000,
0b00110000,
0b11100000,
0b00000000,
)),
126:(8,0,8,(
0b01110110,
0b11011100,
0b00000000,
0b00000000,
0b00000000,
0b00000000,
0b00000000,
0b00000000,
)),
}
# generated by fontconv
#fontType 36864
#firstChar 9
#lastChar 255
#maxWidth 10
#kernMax 1
#nDescent 0
#fRectWidth 10
#fRectHeight 10
#ascent 8
#descent 2
#leading 0
#averageWidth 5.08
FONTS['10pt'] = {
9:(2,0,2,(
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00
)),20:(8,0,8,(
0b01110000,
0b11111000,
0b10001000,
0b11111010,
0b01110100,
0b00110110,
0b00110100,
0b01110010,
0b01110000,
0b00000000
)),21:(5,0,5,(
0b00000,
0b00100,
0b01000,
0b10000,
0b11010,
0b10000,
0b01000,
0b00100,
0b00000,
0b00000
)),22:(7,0,7,(
0b0000000,
0b0000000,
0b0000010,
0b0000100,
0b0001000,
0b0010000,
0b1100000,
0b1100000,
0b0000000,
0b0000000
)),23:(7,0,7,(
0b0001000,
0b0010100,
0b0010100,
0b0010100,
0b0001000,
0b0010100,
0b1100010,
0b1100010,
0b0000000,
0b0000000
)),24:(6,0,6,(
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b101010,
0b000000,
0b000000
)),25:(5,0,5,(
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000
)),32:(2,0,2,(
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00
)),33:(2,0,2,(
0b00,
0b10,
0b10,
0b10,
0b10,
0b10,
0b00,
0b10,
0b00,
0b00
)),34:(4,0,4,(
0b1010,
0b1010,
0b1010,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000
)),35:(8,0,8,(
0b00000000,
0b00010100,
0b00010100,
0b01111110,
0b00101000,
0b11111100,
0b01010000,
0b01010000,
0b00000000,
0b00000000
)),36:(6,0,6,(
0b000000,
0b001000,
0b011110,
0b101000,
0b011100,
0b001010,
0b111100,
0b001000,
0b000000,
0b000000
)),37:(8,0,8,(
0b00000000,
0b01111110,
0b10100100,
0b10101000,
0b01010100,
0b00101010,
0b01001010,
0b01000100,
0b00000000,
0b00000000
)),38:(7,0,7,(
0b0000000,
0b0010000,
0b0101000,
0b0101000,
0b0010000,
0b0101010,
0b1000100,
0b0111010,
0b0000000,
0b0000000
)),39:(2,0,2,(
0b10,
0b10,
0b10,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00
)),40:(3,0,3,(
0b010,
0b100,
0b100,
0b100,
0b100,
0b100,
0b100,
0b100,
0b010,
0b000
)),41:(3,0,3,(
0b100,
0b010,
0b010,
0b010,
0b010,
0b010,
0b010,
0b010,
0b100,
0b000
)),42:(6,0,6,(
0b010100,
0b001000,
0b111110,
0b001000,
0b010100,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000
)),43:(6,0,6,(
0b000000,
0b000000,
0b001000,
0b001000,
0b111110,
0b001000,
0b001000,
0b000000,
0b000000,
0b000000
)),44:(3,0,3,(
0b000,
0b000,
0b000,
0b000,
0b000,
0b000,
0b000,
0b110,
0b010,
0b100
)),45:(5,0,5,(
0b00000,
0b00000,
0b00000,
0b00000,
0b11110,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000
)),46:(2,0,2,(
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b10,
0b00,
0b00
)),47:(4,0,4,(
0b0000,
0b0010,
0b0010,
0b0100,
0b0100,
0b0100,
0b1000,
0b1000,
0b0000,
0b0000
)),48:(5,0,5,(
0b00000,
0b01100,
0b10010,
0b10010,
0b10010,
0b10010,
0b10010,
0b01100,
0b00000,
0b00000
)),49:(5,0,5,(
0b00000,
0b00100,
0b01100,
0b00100,
0b00100,
0b00100,
0b00100,
0b00100,
0b00000,
0b00000
)),50:(5,0,5,(
0b00000,
0b01100,
0b10010,
0b00010,
0b00100,
0b01000,
0b10000,
0b11110,
0b00000,
0b00000
)),51:(5,0,5,(
0b00000,
0b11100,
0b00010,
0b00010,
0b01100,
0b00010,
0b00010,
0b11100,
0b00000,
0b00000
)),52:(5,0,5,(
0b00000,
0b00010,
0b00110,
0b01010,
0b10010,
0b11110,
0b00010,
0b00010,
0b00000,
0b00000
)),53:(5,0,5,(
0b00000,
0b11110,
0b10000,
0b10000,
0b11100,
0b00010,
0b00010,
0b11100,
0b00000,
0b00000
)),54:(5,0,5,(
0b00000,
0b00100,
0b01000,
0b10000,
0b11100,
0b10010,
0b10010,
0b01100,
0b00000,
0b00000
)),55:(5,0,5,(
0b00000,
0b11110,
0b00010,
0b00010,
0b00100,
0b01000,
0b01000,
0b01000,
0b00000,
0b00000
)),56:(5,0,5,(
0b00000,
0b01100,
0b10010,
0b10010,
0b01100,
0b10010,
0b10010,
0b01100,
0b00000,
0b00000
)),57:(5,0,5,(
0b00000,
0b01100,
0b10010,
0b10010,
0b01110,
0b00010,
0b00100,
0b01000,
0b00000,
0b00000
)),58:(2,0,2,(
0b00,
0b00,
0b00,
0b10,
0b00,
0b00,
0b10,
0b00,
0b00,
0b00
)),59:(3,0,3,(
0b000,
0b000,
0b000,
0b010,
0b000,
0b000,
0b010,
0b010,
0b100,
0b000
)),60:(4,0,4,(
0b0000,
0b0000,
0b0010,
0b0100,
0b1000,
0b0100,
0b0010,
0b0000,
0b0000,
0b0000
)),61:(5,0,5,(
0b00000,
0b00000,
0b00000,
0b11110,
0b00000,
0b11110,
0b00000,
0b00000,
0b00000,
0b00000
)),62:(4,0,4,(
0b0000,
0b0000,
0b1000,
0b0100,
0b0010,
0b0100,
0b1000,
0b0000,
0b0000,
0b0000
)),63:(5,0,5,(
0b00000,
0b01100,
0b10010,
0b00010,
0b00100,
0b01000,
0b00000,
0b01000,
0b00000,
0b00000
)),64:(8,0,8,(
0b00000000,
0b00111000,
0b01000100,
0b10011010,
0b10101010,
0b10101010,
0b10010100,
0b01000000,
0b00111100,
0b00000000
)),65:(5,0,5,(
0b00000,
0b01100,
0b10010,
0b10010,
0b11110,
0b10010,
0b10010,
0b10010,
0b00000,
0b00000
)),66:(5,0,5,(
0b00000,
0b11100,
0b10010,
0b10010,
0b11100,
0b10010,
0b10010,
0b11100,
0b00000,
0b00000
)),67:(5,0,5,(
0b00000,
0b01110,
0b10000,
0b10000,
0b10000,
0b10000,
0b10000,
0b01110,
0b00000,
0b00000
)),68:(5,0,5,(
0b00000,
0b11100,
0b10010,
0b10010,
0b10010,
0b10010,
0b10010,
0b11100,
0b00000,
0b00000
)),69:(5,0,5,(
0b00000,
0b11110,
0b10000,
0b10000,
0b11100,
0b10000,
0b10000,
0b11110,
0b00000,
0b00000
)),70:(5,0,5,(
0b00000,
0b11110,
0b10000,
0b10000,
0b11100,
0b10000,
0b10000,
0b10000,
0b00000,
0b00000
)),71:(5,0,5,(
0b00000,
0b01110,
0b10000,
0b10000,
0b10110,
0b10010,
0b10010,
0b01110,
0b00000,
0b00000
)),72:(5,0,5,(
0b00000,
0b10010,
0b10010,
0b10010,
0b11110,
0b10010,
0b10010,
0b10010,
0b00000,
0b00000
)),73:(2,0,2,(
0b00,
0b10,
0b10,
0b10,
0b10,
0b10,
0b10,
0b10,
0b00,
0b00
)),74:(5,0,5,(
0b00000,
0b00010,
0b00010,
0b00010,
0b00010,
0b00010,
0b10010,
0b01100,
0b00000,
0b00000
)),75:(5,0,5,(
0b00000,
0b10010,
0b10010,
0b10100,
0b11000,
0b10100,
0b10010,
0b10010,
0b00000,
0b00000
)),76:(5,0,5,(
0b00000,
0b10000,
0b10000,
0b10000,
0b10000,
0b10000,
0b10000,
0b11110,
0b00000,
0b00000
)),77:(6,0,6,(
0b000000,
0b100010,
0b110110,
0b101010,
0b100010,
0b100010,
0b100010,
0b100010,
0b000000,
0b000000
)),78:(5,0,5,(
0b00000,
0b10010,
0b11010,
0b11010,
0b10110,
0b10110,
0b10010,
0b10010,
0b00000,
0b00000
)),79:(5,0,5,(
0b00000,
0b01110,
0b10010,
0b10010,
0b10010,
0b10010,
0b10010,
0b11100,
0b00000,
0b00000
)),80:(5,0,5,(
0b00000,
0b11100,
0b10010,
0b10010,
0b11100,
0b10000,
0b10000,
0b10000,
0b00000,
0b00000
)),81:(5,0,5,(
0b00000,
0b01110,
0b10010,
0b10010,
0b10010,
0b10010,
0b10110,
0b11100,
0b00010,
0b00000
)),82:(5,0,5,(
0b00000,
0b11100,
0b10010,
0b10010,
0b11100,
0b10100,
0b10010,
0b10010,
0b00000,
0b00000
)),83:(5,0,5,(
0b00000,
0b01110,
0b10000,
0b10000,
0b01100,
0b00010,
0b00010,
0b11100,
0b00000,
0b00000
)),84:(6,0,6,(
0b000000,
0b111110,
0b001000,
0b001000,
0b001000,
0b001000,
0b001000,
0b001000,
0b000000,
0b000000
)),85:(5,0,5,(
0b00000,
0b10010,
0b10010,
0b10010,
0b10010,
0b10010,
0b10010,
0b01110,
0b00000,
0b00000
)),86:(5,0,5,(
0b00000,
0b10010,
0b10010,
0b10010,
0b10010,
0b10010,
0b10100,
0b01000,
0b00000,
0b00000
)),87:(6,0,6,(
0b000000,
0b100010,
0b100010,
0b100010,
0b101010,
0b101010,
0b101010,
0b110110,
0b000000,
0b000000
)),88:(6,0,6,(
0b000000,
0b100010,
0b100010,
0b010100,
0b001000,
0b010100,
0b100010,
0b100010,
0b000000,
0b000000
)),89:(6,0,6,(
0b000000,
0b100010,
0b100010,
0b010100,
0b001000,
0b001000,
0b001000,
0b001000,
0b000000,
0b000000
)),90:(5,0,5,(
0b00000,
0b11110,
0b00010,
0b00100,
0b01000,
0b10000,
0b10000,
0b11110,
0b00000,
0b00000
)),91:(3,0,3,(
0b110,
0b100,
0b100,
0b100,
0b100,
0b100,
0b100,
0b100,
0b110,
0b000
)),92:(4,0,4,(
0b0000,
0b1000,
0b1000,
0b0100,
0b0100,
0b0100,
0b0010,
0b0010,
0b0000,
0b0000
)),93:(3,0,3,(
0b110,
0b010,
0b010,
0b010,
0b010,
0b010,
0b010,
0b010,
0b110,
0b000
)),94:(6,0,6,(
0b000000,
0b001000,
0b010100,
0b100010,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000
)),95:(5,0,5,(
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b11111,
0b00000,
0b00000
)),96:(4,0,4,(
0b0000,
0b1100,
0b0010,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000
)),97:(5,0,5,(
0b00000,
0b00000,
0b00000,
0b01110,
0b10010,
0b10010,
0b10010,
0b01110,
0b00000,
0b00000
)),98:(5,0,5,(
0b00000,
0b10000,
0b10000,
0b11100,
0b10010,
0b10010,
0b10010,
0b11100,
0b00000,
0b00000
)),99:(5,0,5,(
0b00000,
0b00000,
0b00000,
0b01110,
0b10000,
0b10000,
0b10000,
0b01110,
0b00000,
0b00000
)),100:(5,0,5,(
0b00000,
0b00010,
0b00010,
0b01110,
0b10010,
0b10010,
0b10010,
0b01110,
0b00000,
0b00000
)),101:(5,0,5,(
0b00000,
0b00000,
0b00000,
0b01100,
0b10010,
0b11110,
0b10000,
0b01110,
0b00000,
0b00000
)),102:(4,0,4,(
0b0000,
0b0011,
0b0100,
0b1110,
0b0100,
0b0100,
0b0100,
0b0100,
0b0000,
0b0000
)),103:(5,0,5,(
0b00000,
0b00000,
0b00000,
0b01110,
0b10010,
0b10010,
0b10010,
0b01110,
0b00010,
0b11100
)),104:(5,0,5,(
0b00000,
0b10000,
0b10000,
0b11100,
0b10010,
0b10010,
0b10010,
0b10010,
0b00000,
0b00000
)),105:(2,0,2,(
0b00,
0b10,
0b00,
0b10,
0b10,
0b10,
0b10,
0b10,
0b00,
0b00
)),106:(4,0,4,(
0b0000,
0b0010,
0b0000,
0b0010,
0b0010,
0b0010,
0b0010,
0b0010,
0b0010,
0b1100
)),107:(5,0,5,(
0b00000,
0b10000,
0b10000,
0b10010,
0b10100,
0b11000,
0b10100,
0b10010,
0b00000,
0b00000
)),108:(2,0,2,(
0b00,
0b10,
0b10,
0b10,
0b10,
0b10,
0b10,
0b10,
0b00,
0b00
)),109:(8,0,8,(
0b00000000,
0b00000000,
0b00000000,
0b11101100,
0b10010010,
0b10010010,
0b10010010,
0b10010010,
0b00000000,
0b00000000
)),110:(5,0,5,(
0b00000,
0b00000,
0b00000,
0b11100,
0b10010,
0b10010,
0b10010,
0b10010,
0b00000,
0b00000
)),111:(5,0,5,(
0b00000,
0b00000,
0b00000,
0b01100,
0b10010,
0b10010,
0b10010,
0b01100,
0b00000,
0b00000
)),112:(5,0,5,(
0b00000,
0b00000,
0b00000,
0b11100,
0b10010,
0b10010,
0b10010,
0b11100,
0b10000,
0b10000
)),113:(5,0,5,(
0b00000,
0b00000,
0b00000,
0b01110,
0b10010,
0b10010,
0b10010,
0b01110,
0b00010,
0b00010
)),114:(5,0,5,(
0b00000,
0b00000,
0b00000,
0b10110,
0b11000,
0b10000,
0b10000,
0b10000,
0b00000,
0b00000
)),115:(5,0,5,(
0b00000,
0b00000,
0b00000,
0b01110,
0b10000,
0b01100,
0b00010,
0b11100,
0b00000,
0b00000
)),116:(5,0,5,(
0b00000,
0b01000,
0b01000,
0b11110,
0b01000,
0b01000,
0b01000,
0b00110,
0b00000,
0b00000
)),117:(5,0,5,(
0b00000,
0b00000,
0b00000,
0b10010,
0b10010,
0b10010,
0b10010,
0b01110,
0b00000,
0b00000
)),118:(5,0,5,(
0b00000,
0b00000,
0b00000,
0b10010,
0b10010,
0b10010,
0b10100,
0b01000,
0b00000,
0b00000
)),119:(6,0,6,(
0b000000,
0b000000,
0b000000,
0b101010,
0b101010,
0b101010,
0b101010,
0b010100,
0b000000,
0b000000
)),120:(5,0,5,(
0b00000,
0b00000,
0b00000,
0b10010,
0b10010,
0b01100,
0b10010,
0b10010,
0b00000,
0b00000
)),121:(5,0,5,(
0b00000,
0b00000,
0b00000,
0b10010,
0b10010,
0b10010,
0b01110,
0b00010,
0b00100,
0b11000
)),122:(5,0,5,(
0b00000,
0b00000,
0b00000,
0b11110,
0b00010,
0b01100,
0b10000,
0b11110,
0b00000,
0b00000
)),123:(4,0,4,(
0b0010,
0b0100,
0b0100,
0b0100,
0b1000,
0b0100,
0b0100,
0b0100,
0b0010,
0b0000
)),124:(2,0,2,(
0b10,
0b10,
0b10,
0b10,
0b10,
0b10,
0b10,
0b10,
0b10,
0b00
)),125:(4,0,4,(
0b1000,
0b0100,
0b0100,
0b0100,
0b0010,
0b0100,
0b0100,
0b0100,
0b1000,
0b0000
)),126:(7,0,7,(
0b0000000,
0b0000000,
0b0000000,
0b0110010,
0b1011010,
0b1001100,
0b0000000,
0b0000000,
0b0000000,
0b0000000
)),128:(8,0,8,(
0b00000000,
0b00011100,
0b00100010,
0b11111000,
0b01000000,
0b11110000,
0b00100010,
0b00011100,
0b00000000,
0b00000000
)),130:(3,0,3,(
0b000,
0b000,
0b000,
0b000,
0b000,
0b000,
0b000,
0b110,
0b010,
0b100
)),131:(5,0,5,(
0b00000,
0b00110,
0b01000,
0b11100,
0b01000,
0b01000,
0b01000,
0b01000,
0b10000,
0b00000
)),132:(5,0,5,(
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b11110,
0b01010,
0b10100
)),133:(6,0,6,(
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b101010,
0b000000,
0b000000
)),134:(6,0,6,(
0b000000,
0b001000,
0b001000,
0b111110,
0b001000,
0b001000,
0b001000,
0b001000,
0b001000,
0b000000
)),135:(6,0,6,(
0b000000,
0b001000,
0b001000,
0b111110,
0b001000,
0b001000,
0b111110,
0b001000,
0b001000,
0b000000
)),136:(4,0,4,(
0b0000,
0b0100,
0b1010,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000
)),137:(10,0,10,(
0b0000000000,
0b0111111000,
0b1010010000,
0b1010100000,
0b0101010100,
0b0010101010,
0b0100101010,
0b0100010100,
0b0000000000,
0b0000000000
)),138:(5,0,5,(
0b01010,
0b00100,
0b00000,
0b01110,
0b10000,
0b01100,
0b00010,
0b00010,
0b11100,
0b00000
)),139:(4,0,4,(
0b0000,
0b0000,
0b0000,
0b0010,
0b0100,
0b1000,
0b0100,
0b0010,
0b0000,
0b0000
)),140:(8,0,8,(
0b00000000,
0b00111110,
0b01001000,
0b10001000,
0b10001110,
0b10001000,
0b01001000,
0b00111110,
0b00000000,
0b00000000
)),141:(10,0,10,(
0b0000100000,
0b0001010000,
0b0010001000,
0b0100000100,
0b1000000010,
0b0100000100,
0b0010001000,
0b0001010000,
0b0000100000,
0b0000000000
)),142:(10,0,10,(
0b0001110000,
0b0011111000,
0b0011111000,
0b0101110100,
0b1111111110,
0b1111111110,
0b0101110100,
0b0001110000,
0b0011111000,
0b0000000000
)),143:(10,0,10,(
0b0000000000,
0b0110001100,
0b1001010010,
0b1000100010,
0b1000000010,
0b0100000100,
0b0010001000,
0b0001010000,
0b0000100000,
0b0000000000
)),144:(10,0,10,(
0b0000100000,
0b0001110000,
0b0011111000,
0b0111111100,
0b1111111110,
0b1111111110,
0b0110101100,
0b0001110000,
0b0011111000,
0b0000000000
)),145:(3,0,3,(
0b010,
0b100,
0b110,
0b000,
0b000,
0b000,
0b000,
0b000,
0b000,
0b000
)),146:(3,0,3,(
0b110,
0b010,
0b100,
0b000,
0b000,
0b000,
0b000,
0b000,
0b000,
0b000
)),147:(5,0,5,(
0b01010,
0b10100,
0b11110,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000
)),148:(5,0,5,(
0b11110,
0b01010,
0b10100,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000
)),149:(4,0,4,(
0b0000,
0b0000,
0b0000,
0b1110,
0b1110,
0b1110,
0b0000,
0b0000,
0b0000,
0b0000
)),150:(4,0,4,(
0b0000,
0b0000,
0b0000,
0b0000,
0b1111,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000
)),151:(7,0,7,(
0b0000000,
0b0000000,
0b0000000,
0b0000000,
0b1111111,
0b0000000,
0b0000000,
0b0000000,
0b0000000,
0b0000000
)),152:(7,0,7,(
0b0000000,
0b0000000,
0b0000000,
0b0110010,
0b1011010,
0b1001100,
0b0000000,
0b0000000,
0b0000000,
0b0000000
)),153:(10,0,10,(
0b0000000000,
0b1110100010,
0b0100110110,
0b0100101010,
0b0000000000,
0b0000000000,
0b0000000000,
0b0000000000,
0b0000000000,
0b0000000000
)),154:(4,0,4,(
0b1010,
0b0100,
0b0000,
0b0110,
0b1000,
0b0100,
0b0010,
0b1100,
0b0000,
0b0000
)),155:(4,0,4,(
0b0000,
0b0000,
0b0000,
0b1000,
0b0100,
0b0010,
0b0100,
0b1000,
0b0000,
0b0000
)),156:(8,0,8,(
0b00000000,
0b00000000,
0b00000000,
0b01101100,
0b10010010,
0b10011110,
0b10010000,
0b01101110,
0b00000000,
0b00000000
)),157:(6,0,6,(
0b000000,
0b000000,
0b000000,
0b000010,
0b000100,
0b001000,
0b110000,
0b110000,
0b000000,
0b000000
)),158:(7,0,7,(
0b0001000,
0b0010100,
0b0010100,
0b0010100,
0b0001000,
0b0010100,
0b1100010,
0b1100010,
0b0000000,
0b0000000
)),159:(6,0,6,(
0b010100,
0b000000,
0b100010,
0b100010,
0b010100,
0b001000,
0b001000,
0b001000,
0b000000,
0b000000
)),160:(2,0,2,(
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00
)),161:(2,0,2,(
0b00,
0b00,
0b00,
0b10,
0b00,
0b10,
0b10,
0b10,
0b10,
0b10
)),162:(5,0,5,(
0b00000,
0b00100,
0b01110,
0b10100,
0b10100,
0b10100,
0b01110,
0b00100,
0b00000,
0b00000
)),163:(6,0,6,(
0b000000,
0b001100,
0b010010,
0b010000,
0b111100,
0b010000,
0b010000,
0b111000,
0b000110,
0b000000
)),164:(8,0,8,(
0b00000000,
0b10010010,
0b01101100,
0b01000100,
0b10000010,
0b01000100,
0b01101100,
0b10010010,
0b00000000,
0b00000000
)),165:(6,0,6,(
0b000000,
0b100010,
0b010100,
0b111110,
0b001000,
0b111110,
0b001000,
0b001000,
0b000000,
0b000000
)),166:(2,0,2,(
0b10,
0b10,
0b10,
0b10,
0b00,
0b10,
0b10,
0b10,
0b10,
0b00
)),167:(5,0,5,(
0b01100,
0b10010,
0b01000,
0b10100,
0b10010,
0b01010,
0b00100,
0b10010,
0b01100,
0b00000
)),168:(4,0,4,(
0b0000,
0b0000,
0b0000,
0b1010,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000
)),169:(8,0,8,(
0b00000000,
0b00111000,
0b01000100,
0b10111010,
0b10100010,
0b10111010,
0b01000100,
0b00111000,
0b00000000,
0b00000000
)),170:(5,0,5,(
0b00000,
0b00000,
0b01110,
0b10010,
0b01110,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000
)),171:(6,0,6,(
0b000000,
0b000000,
0b001010,
0b010100,
0b101000,
0b010100,
0b001010,
0b000000,
0b000000,
0b000000
)),172:(6,0,6,(
0b000000,
0b000000,
0b000000,
0b000000,
0b111110,
0b000010,
0b000010,
0b000000,
0b000000,
0b000000
)),173:(4,0,4,(
0b0000,
0b0000,
0b0000,
0b0000,
0b1110,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000
)),174:(8,0,8,(
0b00000000,
0b00111000,
0b01000100,
0b10111010,
0b10110010,
0b10101010,
0b01000100,
0b00111000,
0b00000000,
0b00000000
)),175:(6,0,6,(
0b000000,
0b111110,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000
)),176:(5,0,5,(
0b00000,
0b01100,
0b10010,
0b10010,
0b01100,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000
)),177:(6,0,6,(
0b000000,
0b000000,
0b001000,
0b001000,
0b111110,
0b001000,
0b001000,
0b111110,
0b000000,
0b000000
)),178:(4,0,4,(
0b0000,
0b1100,
0b0010,
0b0100,
0b1110,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000
)),179:(4,0,4,(
0b0000,
0b1110,
0b0100,
0b0010,
0b1110,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000
)),180:(3,0,3,(
0b000,
0b010,
0b100,
0b000,
0b000,
0b000,
0b000,
0b000,
0b000,
0b000
)),181:(5,0,5,(
0b00000,
0b00000,
0b10010,
0b10010,
0b10010,
0b10010,
0b11110,
0b10000,
0b10000,
0b00000
)),182:(6,0,6,(
0b000000,
0b011110,
0b111010,
0b111010,
0b011010,
0b001010,
0b001010,
0b001010,
0b000000,
0b000000
)),183:(2,0,2,(
0b00,
0b00,
0b00,
0b00,
0b10,
0b00,
0b00,
0b00,
0b00,
0b00
)),184:(4,0,4,(
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0100,
0b0010,
0b1100
)),185:(2,0,2,(
0b00,
0b10,
0b10,
0b10,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00
)),186:(5,0,5,(
0b00000,
0b00000,
0b01100,
0b10010,
0b01100,
0b00000,
0b11110,
0b00000,
0b00000,
0b00000
)),187:(6,0,6,(
0b000000,
0b000000,
0b101000,
0b010100,
0b001010,
0b010100,
0b101000,
0b000000,
0b000000,
0b000000
)),188:(8,0,8,(
0b10000000,
0b10000100,
0b10001000,
0b10010000,
0b00100100,
0b01001100,
0b10011110,
0b00000100,
0b00000000,
0b00000000
)),189:(8,0,8,(
0b10000000,
0b10000100,
0b10001000,
0b10010000,
0b00101100,
0b01000010,
0b10000100,
0b00001110,
0b00000000,
0b00000000
)),190:(8,0,8,(
0b11100000,
0b01000010,
0b00100100,
0b11101000,
0b00010010,
0b00100110,
0b01001110,
0b00000010,
0b00000000,
0b00000000
)),191:(5,0,5,(
0b00000,
0b00100,
0b00000,
0b00100,
0b01000,
0b10000,
0b10010,
0b01100,
0b00000,
0b00000
)),192:(5,0,5,(
0b01000,
0b00100,
0b00000,
0b01100,
0b10010,
0b11110,
0b10010,
0b10010,
0b00000,
0b00000
)),193:(5,0,5,(
0b00100,
0b01000,
0b00000,
0b01100,
0b10010,
0b11110,
0b10010,
0b10010,
0b00000,
0b00000
)),194:(5,0,5,(
0b00100,
0b01010,
0b00000,
0b01100,
0b10010,
0b11110,
0b10010,
0b10010,
0b00000,
0b00000
)),195:(5,0,5,(
0b01010,
0b10100,
0b00000,
0b01100,
0b10010,
0b11110,
0b10010,
0b10010,
0b00000,
0b00000
)),196:(5,0,5,(
0b00000,
0b01010,
0b00000,
0b01100,
0b10010,
0b11110,
0b10010,
0b10010,
0b00000,
0b00000
)),197:(5,0,5,(
0b01100,
0b10010,
0b01100,
0b01100,
0b10010,
0b11110,
0b10010,
0b10010,
0b00000,
0b00000
)),198:(7,0,7,(
0b0000000,
0b0000000,
0b0111110,
0b1001000,
0b1111110,
0b1001000,
0b1001000,
0b1001110,
0b0000000,
0b0000000
)),199:(5,0,5,(
0b00000,
0b00000,
0b00110,
0b01000,
0b10000,
0b10000,
0b01000,
0b00110,
0b01100,
0b00000
)),200:(5,0,5,(
0b01000,
0b00100,
0b00000,
0b11110,
0b10000,
0b11100,
0b10000,
0b11110,
0b00000,
0b00000
)),201:(5,0,5,(
0b00100,
0b01000,
0b00000,
0b11110,
0b10000,
0b11100,
0b10000,
0b11110,
0b00000,
0b00000
)),202:(5,0,5,(
0b00100,
0b01010,
0b00000,
0b11110,
0b10000,
0b11100,
0b10000,
0b11110,
0b00000,
0b00000
)),203:(5,0,5,(
0b00000,
0b01010,
0b00000,
0b11110,
0b10000,
0b11100,
0b10000,
0b11110,
0b00000,
0b00000
)),204:(3,0,3,(
0b100,
0b010,
0b000,
0b010,
0b010,
0b010,
0b010,
0b010,
0b000,
0b000
)),205:(2,0,2,(
0b01,
0b10,
0b00,
0b10,
0b10,
0b10,
0b10,
0b10,
0b00,
0b00
)),206:(3,0,3,(
0b010,
0b101,
0b000,
0b010,
0b010,
0b010,
0b010,
0b010,
0b000,
0b000
)),207:(3,0,3,(
0b101,
0b000,
0b000,
0b010,
0b010,
0b010,
0b010,
0b010,
0b000,
0b000
)),208:(7,0,7,(
0b0000000,
0b0111000,
0b0100100,
0b0100010,
0b1110010,
0b0100010,
0b0100100,
0b0111000,
0b0000000,
0b0000000
)),209:(5,0,5,(
0b01010,
0b10100,
0b00000,
0b10010,
0b11010,
0b10110,
0b10010,
0b10010,
0b00000,
0b00000
)),210:(5,0,5,(
0b01000,
0b00100,
0b00000,
0b01110,
0b10010,
0b10010,
0b10010,
0b11100,
0b00000,
0b00000
)),211:(5,0,5,(
0b00100,
0b01000,
0b00000,
0b01110,
0b10010,
0b10010,
0b10010,
0b11100,
0b00000,
0b00000
)),212:(5,0,5,(
0b00100,
0b01010,
0b00000,
0b01110,
0b10010,
0b10010,
0b10010,
0b11100,
0b00000,
0b00000
)),213:(5,0,5,(
0b01010,
0b10100,
0b00000,
0b01110,
0b10010,
0b10010,
0b10010,
0b11100,
0b00000,
0b00000
)),214:(5,0,5,(
0b00000,
0b01010,
0b00000,
0b01110,
0b10010,
0b10010,
0b10010,
0b11100,
0b00000,
0b00000
)),215:(5,0,5,(
0b00000,
0b00000,
0b00000,
0b10010,
0b01100,
0b01100,
0b10010,
0b00000,
0b00000,
0b00000
)),216:(8,0,8,(
0b00000000,
0b00111010,
0b01000100,
0b10001010,
0b10010010,
0b10100010,
0b01000100,
0b10111000,
0b00000000,
0b00000000
)),217:(5,0,5,(
0b01000,
0b00100,
0b00000,
0b10010,
0b10010,
0b10010,
0b10010,
0b01100,
0b00000,
0b00000
)),218:(5,0,5,(
0b00100,
0b01000,
0b00000,
0b10010,
0b10010,
0b10010,
0b10010,
0b01100,
0b00000,
0b00000
)),219:(5,0,5,(
0b00100,
0b01010,
0b00000,
0b10010,
0b10010,
0b10010,
0b10010,
0b01100,
0b00000,
0b00000
)),220:(5,0,5,(
0b00000,
0b01010,
0b00000,
0b10010,
0b10010,
0b10010,
0b10010,
0b01100,
0b00000,
0b00000
)),221:(6,0,6,(
0b000100,
0b001000,
0b000000,
0b100010,
0b100010,
0b011100,
0b001000,
0b001000,
0b000000,
0b000000
)),222:(5,0,5,(
0b00000,
0b00000,
0b10000,
0b11100,
0b10010,
0b10010,
0b10010,
0b11100,
0b10000,
0b00000
)),223:(6,0,6,(
0b000000,
0b011000,
0b100100,
0b100100,
0b101100,
0b100010,
0b100010,
0b101100,
0b000000,
0b000000
)),224:(5,0,5,(
0b01000,
0b00100,
0b00000,
0b01110,
0b10010,
0b10010,
0b10010,
0b01110,
0b00000,
0b00000
)),225:(5,0,5,(
0b00010,
0b00100,
0b00000,
0b01110,
0b10010,
0b10010,
0b10010,
0b01110,
0b00000,
0b00000
)),226:(5,0,5,(
0b00100,
0b01010,
0b00000,
0b01110,
0b10010,
0b10010,
0b10010,
0b01110,
0b00000,
0b00000
)),227:(5,0,5,(
0b01010,
0b10100,
0b00000,
0b01110,
0b10010,
0b10010,
0b10010,
0b01110,
0b00000,
0b00000
)),228:(5,0,5,(
0b00000,
0b01010,
0b00000,
0b01110,
0b10010,
0b10010,
0b10010,
0b01110,
0b00000,
0b00000
)),229:(5,0,5,(
0b00100,
0b01010,
0b00100,
0b01110,
0b10010,
0b10010,
0b10010,
0b01110,
0b00000,
0b00000
)),230:(8,0,8,(
0b00000000,
0b00000000,
0b00000000,
0b01101100,
0b00010010,
0b01111110,
0b10010000,
0b01111110,
0b00000000,
0b00000000
)),231:(4,0,4,(
0b0000,
0b0000,
0b0000,
0b0110,
0b1000,
0b1000,
0b1000,
0b0110,
0b1100,
0b0000
)),232:(5,0,5,(
0b01000,
0b00100,
0b00000,
0b01100,
0b10010,
0b11110,
0b10000,
0b01110,
0b00000,
0b00000
)),233:(5,0,5,(
0b00010,
0b00100,
0b00000,
0b01100,
0b10010,
0b11110,
0b10000,
0b01110,
0b00000,
0b00000
)),234:(5,0,5,(
0b00100,
0b01010,
0b00000,
0b01100,
0b10010,
0b11110,
0b10000,
0b01110,
0b00000,
0b00000
)),235:(5,0,5,(
0b00000,
0b01010,
0b00000,
0b01100,
0b10010,
0b11110,
0b10000,
0b01110,
0b00000,
0b00000
)),236:(3,0,3,(
0b100,
0b010,
0b000,
0b010,
0b010,
0b010,
0b010,
0b010,
0b000,
0b000
)),237:(2,0,2,(
0b01,
0b10,
0b00,
0b10,
0b10,
0b10,
0b10,
0b10,
0b00,
0b00
)),238:(3,0,3,(
0b010,
0b101,
0b000,
0b010,
0b010,
0b010,
0b010,
0b010,
0b000,
0b000
)),239:(3,0,3,(
0b101,
0b000,
0b010,
0b010,
0b010,
0b010,
0b010,
0b010,
0b000,
0b000
)),240:(5,0,5,(
0b00000,
0b11000,
0b11000,
0b00100,
0b01100,
0b10010,
0b10010,
0b01100,
0b00000,
0b00000
)),241:(5,0,5,(
0b01010,
0b10100,
0b00000,
0b11100,
0b10010,
0b10010,
0b10010,
0b10010,
0b00000,
0b00000
)),242:(5,0,5,(
0b01000,
0b00100,
0b00000,
0b01100,
0b10010,
0b10010,
0b10010,
0b01100,
0b00000,
0b00000
)),243:(5,0,5,(
0b00100,
0b01000,
0b00000,
0b01100,
0b10010,
0b10010,
0b10010,
0b01100,
0b00000,
0b00000
)),244:(5,0,5,(
0b00100,
0b01010,
0b00000,
0b01100,
0b10010,
0b10010,
0b10010,
0b01100,
0b00000,
0b00000
)),245:(5,0,5,(
0b01010,
0b10100,
0b00000,
0b01100,
0b10010,
0b10010,
0b10010,
0b01100,
0b00000,
0b00000
)),246:(5,0,5,(
0b00000,
0b01010,
0b00000,
0b01100,
0b10010,
0b10010,
0b10010,
0b01100,
0b00000,
0b00000
)),247:(6,0,6,(
0b000000,
0b000000,
0b001000,
0b000000,
0b111110,
0b000000,
0b001000,
0b000000,
0b000000,
0b000000
)),248:(7,0,7,(
0b0000000,
0b0000000,
0b0000000,
0b0011010,
0b0101100,
0b0110100,
0b0100100,
0b1011000,
0b0000000,
0b0000000
)),249:(5,0,5,(
0b01000,
0b00100,
0b00000,
0b10010,
0b10010,
0b10010,
0b10010,
0b01110,
0b00000,
0b00000
)),250:(5,0,5,(
0b00100,
0b01000,
0b00000,
0b10010,
0b10010,
0b10010,
0b10010,
0b01110,
0b00000,
0b00000
)),251:(5,0,5,(
0b00100,
0b01010,
0b00000,
0b10010,
0b10010,
0b10010,
0b10010,
0b01110,
0b00000,
0b00000
)),252:(5,0,5,(
0b00000,
0b01010,
0b00000,
0b10010,
0b10010,
0b10010,
0b10010,
0b01110,
0b00000,
0b00000
)),253:(5,0,5,(
0b00100,
0b01000,
0b00000,
0b10010,
0b10010,
0b10010,
0b01110,
0b00010,
0b00100,
0b11000
)),254:(5,0,5,(
0b00000,
0b00000,
0b10000,
0b11100,
0b10010,
0b10010,
0b10010,
0b11100,
0b10000,
0b00000
)),255:(5,0,5,(
0b00000,
0b01010,
0b00000,
0b10010,
0b10010,
0b10010,
0b01110,
0b00010,
0b00100,
0b11000
)),}
# generated by fontconv
#fontType 36864
#firstChar 9
#lastChar 255
#maxWidth 10
#kernMax 0
#nDescent 0
#fRectWidth 10
#fRectHeight 10
#ascent 8
#descent 2
#leading 0
#averageWidth 5.94
FONTS['10ptbold'] = {
9:(2,0,2,(
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00
)),20:(9,0,9,(
0b000000000,
0b000000000,
0b011110000,
0b100001010,
0b011110100,
0b001100110,
0b011100100,
0b001100010,
0b000000000,
0b000000000
)),21:(5,0,5,(
0b00000,
0b00000,
0b00100,
0b01000,
0b10000,
0b11010,
0b10000,
0b01000,
0b00100,
0b00000
)),22:(8,0,8,(
0b00000000,
0b00000000,
0b00000110,
0b00001100,
0b00011000,
0b11110000,
0b11100000,
0b11100000,
0b00000000,
0b00000000
)),23:(8,0,8,(
0b00000000,
0b00000000,
0b00111000,
0b01101100,
0b01101100,
0b00111000,
0b11101100,
0b11000110,
0b00000000,
0b00000000
)),24:(6,0,6,(
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b101010,
0b000000,
0b000000
)),25:(6,0,6,(
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000
)),32:(2,0,2,(
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00
)),33:(3,0,3,(
0b000,
0b000,
0b110,
0b110,
0b110,
0b110,
0b000,
0b110,
0b000,
0b000
)),34:(6,0,6,(
0b000000,
0b000000,
0b110110,
0b110110,
0b010010,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000
)),35:(6,0,6,(
0b000000,
0b000000,
0b010100,
0b111110,
0b010100,
0b111110,
0b010100,
0b000000,
0b000000,
0b000000
)),36:(6,0,6,(
0b000000,
0b000000,
0b001000,
0b011110,
0b101000,
0b011100,
0b001010,
0b111100,
0b001000,
0b000000
)),37:(9,0,9,(
0b000000000,
0b000000000,
0b011111100,
0b101001000,
0b101010100,
0b010101010,
0b001001010,
0b110000100,
0b000000000,
0b000000000
)),38:(8,0,8,(
0b00000000,
0b00000000,
0b01111000,
0b11000000,
0b01110010,
0b11101110,
0b11000100,
0b01111000,
0b00000000,
0b00000000
)),39:(3,0,3,(
0b000,
0b000,
0b110,
0b110,
0b010,
0b000,
0b000,
0b000,
0b000,
0b000
)),40:(5,0,5,(
0b00000,
0b00110,
0b01100,
0b11000,
0b11000,
0b11000,
0b11000,
0b01100,
0b00110,
0b00000
)),41:(5,0,5,(
0b00000,
0b11000,
0b01100,
0b00110,
0b00110,
0b00110,
0b00110,
0b01100,
0b11000,
0b00000
)),42:(6,0,6,(
0b000000,
0b000000,
0b010100,
0b001000,
0b111110,
0b001000,
0b010100,
0b000000,
0b000000,
0b000000
)),43:(6,0,6,(
0b000000,
0b000000,
0b000000,
0b001000,
0b001000,
0b111110,
0b001000,
0b001000,
0b000000,
0b000000
)),44:(3,0,3,(
0b000,
0b000,
0b000,
0b000,
0b000,
0b000,
0b000,
0b110,
0b010,
0b100
)),45:(5,0,5,(
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b11110,
0b00000,
0b00000,
0b00000,
0b00000
)),46:(3,0,3,(
0b000,
0b000,
0b000,
0b000,
0b000,
0b000,
0b000,
0b110,
0b000,
0b000
)),47:(5,0,5,(
0b00000,
0b00000,
0b00110,
0b00110,
0b01100,
0b01100,
0b11000,
0b11000,
0b00000,
0b00000
)),48:(6,0,6,(
0b000000,
0b000000,
0b011100,
0b110110,
0b110110,
0b110110,
0b110110,
0b011100,
0b000000,
0b000000
)),49:(6,0,6,(
0b000000,
0b000000,
0b001100,
0b011100,
0b001100,
0b001100,
0b001100,
0b011110,
0b000000,
0b000000
)),50:(6,0,6,(
0b000000,
0b000000,
0b011100,
0b110110,
0b000110,
0b011100,
0b110000,
0b111110,
0b000000,
0b000000
)),51:(6,0,6,(
0b000000,
0b000000,
0b011100,
0b110110,
0b001100,
0b001110,
0b110110,
0b011100,
0b000000,
0b000000
)),52:(6,0,6,(
0b000000,
0b000000,
0b001110,
0b011110,
0b110110,
0b111110,
0b000110,
0b000110,
0b000000,
0b000000
)),53:(6,0,6,(
0b000000,
0b000000,
0b111110,
0b110000,
0b111100,
0b000110,
0b110110,
0b011100,
0b000000,
0b000000
)),54:(6,0,6,(
0b000000,
0b000000,
0b011100,
0b110000,
0b111100,
0b110110,
0b110110,
0b011100,
0b000000,
0b000000
)),55:(6,0,6,(
0b000000,
0b000000,
0b111110,
0b000110,
0b001100,
0b001100,
0b011000,
0b011000,
0b000000,
0b000000
)),56:(6,0,6,(
0b000000,
0b000000,
0b011100,
0b110110,
0b011100,
0b110110,
0b110110,
0b011100,
0b000000,
0b000000
)),57:(6,0,6,(
0b000000,
0b000000,
0b011100,
0b110110,
0b110110,
0b011110,
0b000110,
0b011100,
0b000000,
0b000000
)),58:(3,0,3,(
0b000,
0b000,
0b000,
0b000,
0b110,
0b000,
0b000,
0b110,
0b000,
0b000
)),59:(3,0,3,(
0b000,
0b000,
0b000,
0b000,
0b110,
0b000,
0b000,
0b110,
0b010,
0b100
)),60:(5,0,5,(
0b00000,
0b00000,
0b00000,
0b00110,
0b01100,
0b11000,
0b01100,
0b00110,
0b00000,
0b00000
)),61:(6,0,6,(
0b000000,
0b000000,
0b000000,
0b000000,
0b111110,
0b000000,
0b111110,
0b000000,
0b000000,
0b000000
)),62:(5,0,5,(
0b00000,
0b00000,
0b00000,
0b11000,
0b01100,
0b00110,
0b01100,
0b11000,
0b00000,
0b00000
)),63:(6,0,6,(
0b000000,
0b000000,
0b111100,
0b000110,
0b001100,
0b011000,
0b000000,
0b011000,
0b000000,
0b000000
)),64:(10,0,10,(
0b0000000000,
0b0000000000,
0b0011111000,
0b0110001100,
0b1100110110,
0b1101010110,
0b1101111100,
0b0110000000,
0b0011111000,
0b0000000000
)),65:(7,0,7,(
0b0000000,
0b0000000,
0b0111100,
0b1100110,
0b1100110,
0b1111110,
0b1100110,
0b1100110,
0b0000000,
0b0000000
)),66:(7,0,7,(
0b0000000,
0b0000000,
0b1111100,
0b1100110,
0b1111100,
0b1100110,
0b1100110,
0b1111100,
0b0000000,
0b0000000
)),67:(7,0,7,(
0b0000000,
0b0000000,
0b0111100,
0b1100110,
0b1100000,
0b1100000,
0b1100110,
0b0111100,
0b0000000,
0b0000000
)),68:(7,0,7,(
0b0000000,
0b0000000,
0b1111100,
0b1100110,
0b1100110,
0b1100110,
0b1100110,
0b1111100,
0b0000000,
0b0000000
)),69:(6,0,6,(
0b000000,
0b000000,
0b111110,
0b110000,
0b111100,
0b110000,
0b110000,
0b111110,
0b000000,
0b000000
)),70:(6,0,6,(
0b000000,
0b000000,
0b111110,
0b110000,
0b111100,
0b110000,
0b110000,
0b110000,
0b000000,
0b000000
)),71:(7,0,7,(
0b0000000,
0b0000000,
0b0111100,
0b1100110,
0b1100000,
0b1101110,
0b1100110,
0b0111100,
0b0000000,
0b0000000
)),72:(7,0,7,(
0b0000000,
0b0000000,
0b1100110,
0b1100110,
0b1111110,
0b1100110,
0b1100110,
0b1100110,
0b0000000,
0b0000000
)),73:(3,0,3,(
0b000,
0b000,
0b110,
0b110,
0b110,
0b110,
0b110,
0b110,
0b000,
0b000
)),74:(5,0,5,(
0b00000,
0b00000,
0b00110,
0b00110,
0b00110,
0b00110,
0b00110,
0b11100,
0b00000,
0b00000
)),75:(7,0,7,(
0b0000000,
0b0000000,
0b1100110,
0b1101100,
0b1111000,
0b1111000,
0b1101100,
0b1100110,
0b0000000,
0b0000000
)),76:(6,0,6,(
0b000000,
0b000000,
0b110000,
0b110000,
0b110000,
0b110000,
0b110000,
0b111110,
0b000000,
0b000000
)),77:(8,0,8,(
0b00000000,
0b00000000,
0b11000110,
0b11101110,
0b11111110,
0b11010110,
0b11000110,
0b11000110,
0b00000000,
0b00000000
)),78:(7,0,7,(
0b0000000,
0b0000000,
0b1100110,
0b1110110,
0b1111110,
0b1101110,
0b1100110,
0b1100110,
0b0000000,
0b0000000
)),79:(7,0,7,(
0b0000000,
0b0000000,
0b0111100,
0b1100110,
0b1100110,
0b1100110,
0b1100110,
0b0111100,
0b0000000,
0b0000000
)),80:(7,0,7,(
0b0000000,
0b0000000,
0b1111100,
0b1100110,
0b1100110,
0b1111100,
0b1100000,
0b1100000,
0b0000000,
0b0000000
)),81:(7,0,7,(
0b0000000,
0b0000000,
0b0111100,
0b1100110,
0b1100110,
0b1100110,
0b1101110,
0b0111100,
0b0000110,
0b0000000
)),82:(7,0,7,(
0b0000000,
0b0000000,
0b1111100,
0b1100110,
0b1100110,
0b1111100,
0b1101100,
0b1100110,
0b0000000,
0b0000000
)),83:(6,0,6,(
0b000000,
0b000000,
0b011110,
0b110000,
0b111100,
0b011110,
0b000110,
0b111100,
0b000000,
0b000000
)),84:(7,0,7,(
0b0000000,
0b0000000,
0b1111110,
0b0011000,
0b0011000,
0b0011000,
0b0011000,
0b0011000,
0b0000000,
0b0000000
)),85:(6,0,6,(
0b000000,
0b000000,
0b110110,
0b110110,
0b110110,
0b110110,
0b110110,
0b011110,
0b000000,
0b000000
)),86:(6,0,6,(
0b000000,
0b000000,
0b110110,
0b110110,
0b110110,
0b110110,
0b011100,
0b001000,
0b000000,
0b000000
)),87:(8,0,8,(
0b00000000,
0b00000000,
0b11000110,
0b11000110,
0b11010110,
0b11111110,
0b11101110,
0b11000110,
0b00000000,
0b00000000
)),88:(6,0,6,(
0b000000,
0b000000,
0b110110,
0b110110,
0b011100,
0b011100,
0b110110,
0b110110,
0b000000,
0b000000
)),89:(7,0,7,(
0b0000000,
0b0000000,
0b1100110,
0b1100110,
0b0111100,
0b0011000,
0b0011000,
0b0011000,
0b0000000,
0b0000000
)),90:(5,0,5,(
0b00000,
0b00000,
0b11110,
0b00110,
0b01100,
0b11000,
0b11000,
0b11110,
0b00000,
0b00000
)),91:(4,0,4,(
0b0000,
0b1110,
0b1100,
0b1100,
0b1100,
0b1100,
0b1100,
0b1100,
0b1110,
0b0000
)),92:(5,0,5,(
0b00000,
0b00000,
0b11000,
0b11000,
0b01100,
0b01100,
0b00110,
0b00110,
0b00000,
0b00000
)),93:(4,0,4,(
0b0000,
0b1110,
0b0110,
0b0110,
0b0110,
0b0110,
0b0110,
0b0110,
0b1110,
0b0000
)),94:(6,0,6,(
0b000000,
0b000000,
0b001000,
0b011100,
0b110110,
0b100010,
0b000000,
0b000000,
0b000000,
0b000000
)),95:(5,0,5,(
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b11111,
0b00000
)),96:(4,0,4,(
0b0000,
0b1100,
0b0010,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000
)),97:(6,0,6,(
0b000000,
0b000000,
0b000000,
0b000000,
0b111100,
0b001110,
0b110110,
0b111110,
0b000000,
0b000000
)),98:(6,0,6,(
0b000000,
0b000000,
0b110000,
0b110000,
0b111100,
0b110110,
0b110110,
0b111100,
0b000000,
0b000000
)),99:(5,0,5,(
0b00000,
0b00000,
0b00000,
0b00000,
0b01110,
0b11000,
0b11000,
0b01110,
0b00000,
0b00000
)),100:(6,0,6,(
0b000000,
0b000000,
0b000110,
0b000110,
0b011110,
0b110110,
0b110110,
0b011110,
0b000000,
0b000000
)),101:(6,0,6,(
0b000000,
0b000000,
0b000000,
0b000000,
0b011100,
0b110110,
0b111000,
0b011110,
0b000000,
0b000000
)),102:(5,0,5,(
0b00000,
0b00000,
0b00111,
0b01100,
0b11110,
0b01100,
0b01100,
0b01100,
0b00000,
0b00000
)),103:(7,0,7,(
0b0000000,
0b0000000,
0b0000000,
0b0000000,
0b0111010,
0b1101100,
0b0111000,
0b0011100,
0b1100100,
0b0111000
)),104:(6,0,6,(
0b000000,
0b000000,
0b110000,
0b110000,
0b111100,
0b110110,
0b110110,
0b110110,
0b000000,
0b000000
)),105:(3,0,3,(
0b000,
0b000,
0b110,
0b000,
0b110,
0b110,
0b110,
0b110,
0b000,
0b000
)),106:(4,0,4,(
0b0000,
0b0000,
0b0110,
0b0000,
0b0110,
0b0110,
0b0110,
0b0110,
0b0110,
0b1100
)),107:(6,0,6,(
0b000000,
0b000000,
0b110000,
0b110000,
0b110110,
0b111100,
0b111100,
0b110110,
0b000000,
0b000000
)),108:(3,0,3,(
0b000,
0b000,
0b110,
0b110,
0b110,
0b110,
0b110,
0b110,
0b000,
0b000
)),109:(9,0,9,(
0b000000000,
0b000000000,
0b000000000,
0b000000000,
0b110110110,
0b111111110,
0b110110110,
0b110110110,
0b000000000,
0b000000000
)),110:(6,0,6,(
0b000000,
0b000000,
0b000000,
0b000000,
0b111100,
0b110110,
0b110110,
0b110110,
0b000000,
0b000000
)),111:(6,0,6,(
0b000000,
0b000000,
0b000000,
0b000000,
0b011100,
0b110110,
0b110110,
0b011100,
0b000000,
0b000000
)),112:(6,0,6,(
0b000000,
0b000000,
0b000000,
0b000000,
0b111100,
0b110110,
0b110110,
0b111100,
0b110000,
0b110000
)),113:(6,0,6,(
0b000000,
0b000000,
0b000000,
0b000000,
0b011110,
0b110110,
0b110110,
0b011110,
0b000110,
0b000110
)),114:(5,0,5,(
0b00000,
0b00000,
0b00000,
0b00000,
0b11010,
0b11110,
0b11000,
0b11000,
0b00000,
0b00000
)),115:(5,0,5,(
0b00000,
0b00000,
0b00000,
0b00000,
0b01110,
0b11000,
0b00110,
0b11100,
0b00000,
0b00000
)),116:(6,0,6,(
0b000000,
0b000000,
0b000000,
0b011000,
0b111110,
0b011000,
0b011000,
0b001110,
0b000000,
0b000000
)),117:(6,0,6,(
0b000000,
0b000000,
0b000000,
0b000000,
0b110110,
0b110110,
0b110110,
0b011110,
0b000000,
0b000000
)),118:(6,0,6,(
0b000000,
0b000000,
0b000000,
0b000000,
0b110110,
0b110110,
0b011100,
0b001000,
0b000000,
0b000000
)),119:(9,0,9,(
0b000000000,
0b000000000,
0b000000000,
0b000000000,
0b110110110,
0b110110110,
0b011111100,
0b001001000,
0b000000000,
0b000000000
)),120:(6,0,6,(
0b000000,
0b000000,
0b000000,
0b000000,
0b110110,
0b011100,
0b011100,
0b110110,
0b000000,
0b000000
)),121:(6,0,6,(
0b000000,
0b000000,
0b000000,
0b000000,
0b110110,
0b110110,
0b011100,
0b001100,
0b011000,
0b110000
)),122:(5,0,5,(
0b00000,
0b00000,
0b00000,
0b00000,
0b11110,
0b00110,
0b11000,
0b11110,
0b00000,
0b00000
)),123:(5,0,5,(
0b00000,
0b00110,
0b01100,
0b01100,
0b11000,
0b11000,
0b01100,
0b01100,
0b00110,
0b00000
)),124:(3,0,3,(
0b000,
0b110,
0b110,
0b110,
0b110,
0b110,
0b110,
0b110,
0b110,
0b000
)),125:(5,0,5,(
0b00000,
0b11000,
0b01100,
0b01100,
0b00110,
0b00110,
0b01100,
0b01100,
0b11000,
0b00000
)),126:(6,0,6,(
0b000000,
0b000000,
0b000000,
0b000000,
0b011010,
0b101100,
0b000000,
0b000000,
0b000000,
0b000000
)),128:(9,0,9,(
0b000000000,
0b000000000,
0b000111100,
0b001100010,
0b111111000,
0b011000000,
0b111110000,
0b001100010,
0b000111100,
0b000000000
)),130:(3,0,3,(
0b000,
0b000,
0b000,
0b000,
0b000,
0b000,
0b000,
0b110,
0b010,
0b100
)),131:(7,0,7,(
0b0000000,
0b0000000,
0b0001110,
0b0011000,
0b0111100,
0b0011000,
0b0011000,
0b1110000,
0b0000000,
0b0000000
)),132:(5,0,5,(
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b11110,
0b01010,
0b10100
)),133:(6,0,6,(
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b101010,
0b000000,
0b000000
)),134:(5,0,5,(
0b00000,
0b00000,
0b01100,
0b01100,
0b11110,
0b01100,
0b01100,
0b01100,
0b01100,
0b00000
)),135:(5,0,5,(
0b00000,
0b00000,
0b01100,
0b01100,
0b11110,
0b01100,
0b11110,
0b01100,
0b01100,
0b00000
)),136:(4,0,4,(
0b0000,
0b0100,
0b1010,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000
)),137:(10,0,10,(
0b0000000000,
0b0000000000,
0b0000000000,
0b0100010000,
0b1010100000,
0b0101010100,
0b0010101010,
0b0100010100,
0b0000000000,
0b0000000000
)),138:(6,0,6,(
0b010100,
0b001000,
0b000000,
0b011110,
0b111000,
0b011100,
0b001110,
0b111100,
0b000000,
0b000000
)),139:(5,0,5,(
0b00000,
0b00000,
0b00000,
0b00110,
0b01100,
0b11000,
0b01100,
0b00110,
0b00000,
0b00000
)),140:(9,0,9,(
0b000000000,
0b000000000,
0b001111110,
0b011011000,
0b110011110,
0b110011000,
0b011011000,
0b001111110,
0b000000000,
0b000000000
)),141:(10,0,10,(
0b0000100000,
0b0001110000,
0b0011011000,
0b0110001100,
0b1100000110,
0b0110001100,
0b0011011000,
0b0001110000,
0b0000100000,
0b0000000000
)),142:(10,0,10,(
0b0001110000,
0b0011111000,
0b0001110000,
0b0110101100,
0b1111111110,
0b1111111110,
0b0110101100,
0b0001110000,
0b0011111000,
0b0000000000
)),143:(10,0,10,(
0b0111011100,
0b1101110110,
0b1000100010,
0b1000000010,
0b1100000110,
0b0110001100,
0b0011011000,
0b0001110000,
0b0000100000,
0b0000000000
)),144:(10,0,10,(
0b0000100000,
0b0001110000,
0b0011111000,
0b0111111100,
0b1111111110,
0b1111111110,
0b0110101100,
0b0001110000,
0b0011111000,
0b0000000000
)),145:(3,0,3,(
0b000,
0b000,
0b010,
0b100,
0b110,
0b000,
0b000,
0b000,
0b000,
0b000
)),146:(3,0,3,(
0b000,
0b000,
0b110,
0b010,
0b100,
0b000,
0b000,
0b000,
0b000,
0b000
)),147:(5,0,5,(
0b00000,
0b00000,
0b01010,
0b10100,
0b11110,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000
)),148:(5,0,5,(
0b00000,
0b00000,
0b11110,
0b01010,
0b10100,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000
)),149:(4,0,4,(
0b0000,
0b0000,
0b0000,
0b0000,
0b1110,
0b1110,
0b1110,
0b0000,
0b0000,
0b0000
)),150:(4,0,4,(
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b1111,
0b0000,
0b0000,
0b0000
)),151:(6,0,6,(
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b111111,
0b000000,
0b000000,
0b000000
)),152:(6,0,6,(
0b000000,
0b000000,
0b000000,
0b000000,
0b011010,
0b101100,
0b000000,
0b000000,
0b000000,
0b000000
)),153:(10,0,10,(
0b0000000000,
0b0000000000,
0b0000000000,
0b1110100010,
0b0100110110,
0b0100101010,
0b0000000000,
0b0000000000,
0b0000000000,
0b0000000000
)),154:(5,0,5,(
0b01010,
0b00100,
0b00000,
0b01110,
0b11000,
0b11110,
0b00110,
0b11100,
0b00000,
0b00000
)),155:(5,0,5,(
0b00000,
0b00000,
0b00000,
0b11000,
0b01100,
0b00110,
0b01100,
0b11000,
0b00000,
0b00000
)),156:(10,0,10,(
0b0000000000,
0b0000000000,
0b0000000000,
0b0111011100,
0b1101110110,
0b1101111110,
0b1101110000,
0b0111011110,
0b0000000000,
0b0000000000
)),157:(8,0,8,(
0b00000000,
0b00000000,
0b00000110,
0b00001100,
0b00011000,
0b11110000,
0b11100000,
0b11100000,
0b00000000,
0b00000000
)),158:(8,0,8,(
0b00000000,
0b00000000,
0b00111000,
0b01101100,
0b01101100,
0b00111000,
0b11101100,
0b11000110,
0b00000000,
0b00000000
)),159:(7,0,7,(
0b0000000,
0b0100100,
0b0000000,
0b1100110,
0b1100110,
0b0111100,
0b0011000,
0b0011000,
0b0000000,
0b0000000
)),160:(2,0,2,(
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00
)),161:(3,0,3,(
0b000,
0b000,
0b000,
0b110,
0b000,
0b110,
0b110,
0b110,
0b110,
0b000
)),162:(5,0,5,(
0b00000,
0b00000,
0b00100,
0b01110,
0b10100,
0b10100,
0b01110,
0b00100,
0b00000,
0b00000
)),163:(6,0,6,(
0b000000,
0b000000,
0b001110,
0b011000,
0b011000,
0b111110,
0b011000,
0b111110,
0b000000,
0b000000
)),164:(8,0,8,(
0b00000000,
0b00000000,
0b10111010,
0b01111100,
0b11000110,
0b11000110,
0b01111100,
0b10111010,
0b00000000,
0b00000000
)),165:(7,0,7,(
0b0000000,
0b0000000,
0b1100110,
0b0111100,
0b0011000,
0b1111110,
0b0011000,
0b1111110,
0b0011000,
0b0000000
)),166:(3,0,3,(
0b000,
0b000,
0b110,
0b110,
0b110,
0b000,
0b110,
0b110,
0b110,
0b000
)),167:(5,0,5,(
0b00000,
0b00000,
0b01110,
0b10000,
0b01100,
0b10010,
0b01100,
0b00010,
0b11100,
0b00000
)),168:(4,0,4,(
0b0000,
0b0000,
0b1010,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000
)),169:(8,0,8,(
0b00000000,
0b00000000,
0b00111000,
0b01000100,
0b10111010,
0b10100010,
0b10111010,
0b01000100,
0b00111000,
0b00000000
)),170:(6,0,6,(
0b000000,
0b000000,
0b011110,
0b110110,
0b011110,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000
)),171:(8,0,8,(
0b00000000,
0b00000000,
0b00000000,
0b00110110,
0b01101100,
0b11011000,
0b01101100,
0b00110110,
0b00000000,
0b00000000
)),172:(6,0,6,(
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b111110,
0b000010,
0b000010,
0b000000,
0b000000
)),173:(5,0,5,(
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b11110,
0b00000,
0b00000,
0b00000,
0b00000
)),174:(8,0,8,(
0b00000000,
0b00000000,
0b00111000,
0b01000100,
0b10111010,
0b10110010,
0b10101010,
0b01000100,
0b00111000,
0b00000000
)),175:(6,0,6,(
0b000000,
0b000000,
0b111110,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000
)),176:(5,0,5,(
0b00000,
0b00000,
0b01100,
0b10010,
0b10010,
0b01100,
0b00000,
0b00000,
0b00000,
0b00000
)),177:(6,0,6,(
0b000000,
0b000000,
0b001000,
0b001000,
0b111110,
0b001000,
0b001000,
0b111110,
0b000000,
0b000000
)),178:(4,0,4,(
0b0000,
0b0000,
0b1100,
0b0010,
0b1100,
0b1110,
0b0000,
0b0000,
0b0000,
0b0000
)),179:(4,0,4,(
0b0000,
0b0000,
0b1110,
0b0100,
0b0010,
0b1110,
0b0000,
0b0000,
0b0000,
0b0000
)),180:(4,0,4,(
0b0000,
0b0000,
0b0110,
0b1000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000
)),181:(6,0,6,(
0b000000,
0b000000,
0b000000,
0b110110,
0b110110,
0b110110,
0b111110,
0b110000,
0b110000,
0b000000
)),182:(7,0,7,(
0b0000000,
0b0000000,
0b0111110,
0b1110110,
0b1110110,
0b0110110,
0b0010110,
0b0010110,
0b0000000,
0b0000000
)),183:(3,0,3,(
0b000,
0b000,
0b000,
0b000,
0b110,
0b000,
0b000,
0b000,
0b000,
0b000
)),184:(4,0,4,(
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0100,
0b0010,
0b1100
)),185:(2,0,2,(
0b00,
0b10,
0b10,
0b10,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00
)),186:(6,0,6,(
0b000000,
0b000000,
0b011100,
0b110110,
0b011100,
0b000000,
0b111110,
0b000000,
0b000000,
0b000000
)),187:(8,0,8,(
0b00000000,
0b00000000,
0b00000000,
0b11011000,
0b01101100,
0b00110110,
0b01101100,
0b11011000,
0b00000000,
0b00000000
)),188:(9,0,9,(
0b110000000,
0b110001100,
0b110011000,
0b110110000,
0b001100100,
0b011001100,
0b110011110,
0b000001100,
0b000000000,
0b000000000
)),189:(9,0,9,(
0b110000000,
0b110001100,
0b110011000,
0b110110000,
0b001101110,
0b011000110,
0b110001100,
0b000001110,
0b000000000,
0b000000000
)),190:(9,0,9,(
0b111000000,
0b011001100,
0b011011000,
0b111110000,
0b001100100,
0b011001100,
0b110011110,
0b000001100,
0b000000000,
0b000000000
)),191:(6,0,6,(
0b000000,
0b000000,
0b001100,
0b000000,
0b001100,
0b011000,
0b110000,
0b011110,
0b000000,
0b000000
)),192:(7,0,7,(
0b0010000,
0b0001000,
0b0000000,
0b0111100,
0b1100110,
0b1111110,
0b1100110,
0b1100110,
0b0000000,
0b0000000
)),193:(7,0,7,(
0b0001000,
0b0010000,
0b0000000,
0b0111100,
0b1100110,
0b1111110,
0b1100110,
0b1100110,
0b0000000,
0b0000000
)),194:(7,0,7,(
0b0011000,
0b0100100,
0b0000000,
0b0111100,
0b1100110,
0b1111110,
0b1100110,
0b1100110,
0b0000000,
0b0000000
)),195:(7,0,7,(
0b0110100,
0b1011000,
0b0000000,
0b0111100,
0b1100110,
0b1111110,
0b1100110,
0b1100110,
0b0000000,
0b0000000
)),196:(7,0,7,(
0b0000000,
0b0100100,
0b0000000,
0b0111100,
0b1100110,
0b1111110,
0b1100110,
0b1100110,
0b0000000,
0b0000000
)),197:(7,0,7,(
0b0011000,
0b0100100,
0b0011000,
0b0111100,
0b1100110,
0b1111110,
0b1100110,
0b1100110,
0b0000000,
0b0000000
)),198:(8,0,8,(
0b00000000,
0b00000000,
0b00000000,
0b01111110,
0b11011000,
0b11111110,
0b11011000,
0b11011110,
0b00000000,
0b00000000
)),199:(6,0,6,(
0b000000,
0b000000,
0b011100,
0b110110,
0b110000,
0b110000,
0b110110,
0b011100,
0b001100,
0b111000
)),200:(6,0,6,(
0b010000,
0b001000,
0b000000,
0b111110,
0b110000,
0b111100,
0b110000,
0b111110,
0b000000,
0b000000
)),201:(6,0,6,(
0b000100,
0b001000,
0b000000,
0b111110,
0b110000,
0b111100,
0b110000,
0b111110,
0b000000,
0b000000
)),202:(6,0,6,(
0b001000,
0b010100,
0b000000,
0b111110,
0b110000,
0b111100,
0b110000,
0b111110,
0b000000,
0b000000
)),203:(6,0,6,(
0b000000,
0b010100,
0b000000,
0b111110,
0b110000,
0b111110,
0b110000,
0b111110,
0b000000,
0b000000
)),204:(3,0,3,(
0b100,
0b010,
0b000,
0b110,
0b110,
0b110,
0b110,
0b110,
0b000,
0b000
)),205:(3,0,3,(
0b010,
0b100,
0b000,
0b110,
0b110,
0b110,
0b110,
0b110,
0b000,
0b000
)),206:(3,0,3,(
0b010,
0b101,
0b000,
0b110,
0b110,
0b110,
0b110,
0b110,
0b000,
0b000
)),207:(3,0,3,(
0b000,
0b101,
0b000,
0b110,
0b110,
0b110,
0b110,
0b110,
0b000,
0b000
)),208:(8,0,8,(
0b00000000,
0b00000000,
0b00000000,
0b01111100,
0b01100110,
0b11110110,
0b01100110,
0b01111100,
0b00000000,
0b00000000
)),209:(7,0,7,(
0b0110100,
0b1011000,
0b0000000,
0b1100110,
0b1110110,
0b1111110,
0b1101110,
0b1100110,
0b0000000,
0b0000000
)),210:(7,0,7,(
0b0010000,
0b0001000,
0b0000000,
0b0111100,
0b1100110,
0b1100110,
0b1100110,
0b0111100,
0b0000000,
0b0000000
)),211:(7,0,7,(
0b0001000,
0b0010000,
0b0000000,
0b0111100,
0b1100110,
0b1100110,
0b1100110,
0b0111100,
0b0000000,
0b0000000
)),212:(7,0,7,(
0b0010000,
0b0101000,
0b0000000,
0b0111100,
0b1100110,
0b1100110,
0b1100110,
0b0111100,
0b0000000,
0b0000000
)),213:(7,0,7,(
0b0011010,
0b0101100,
0b0000000,
0b0111100,
0b1100110,
0b1100110,
0b1100110,
0b0111100,
0b0000000,
0b0000000
)),214:(7,0,7,(
0b0000000,
0b0100100,
0b0000000,
0b0111100,
0b1100110,
0b1100110,
0b1100110,
0b0111100,
0b0000000,
0b0000000
)),215:(6,0,6,(
0b000000,
0b000000,
0b000000,
0b110110,
0b011100,
0b011100,
0b110110,
0b000000,
0b000000,
0b000000
)),216:(7,0,7,(
0b0000000,
0b0000000,
0b0011010,
0b0100100,
0b0101100,
0b0110100,
0b0100100,
0b1011000,
0b0000000,
0b0000000
)),217:(7,0,7,(
0b0010000,
0b0001000,
0b0000000,
0b1100110,
0b1100110,
0b1100110,
0b1100110,
0b0111100,
0b0000000,
0b0000000
)),218:(7,0,7,(
0b0001000,
0b0010000,
0b0000000,
0b1100110,
0b1100110,
0b1100110,
0b1100110,
0b0111100,
0b0000000,
0b0000000
)),219:(7,0,7,(
0b0001000,
0b0010100,
0b0000000,
0b1100110,
0b1100110,
0b1100110,
0b1100110,
0b0111100,
0b0000000,
0b0000000
)),220:(7,0,7,(
0b0000000,
0b0100100,
0b0000000,
0b1100110,
0b1100110,
0b1100110,
0b1100110,
0b0111100,
0b0000000,
0b0000000
)),221:(7,0,7,(
0b0001000,
0b0010000,
0b0000000,
0b1100110,
0b1100110,
0b0111100,
0b0011000,
0b0011000,
0b0000000,
0b0000000
)),222:(6,0,6,(
0b000000,
0b000000,
0b110000,
0b111100,
0b110110,
0b110110,
0b111100,
0b110000,
0b110000,
0b000000
)),223:(7,0,7,(
0b0000000,
0b0000000,
0b0111000,
0b1100100,
0b1101000,
0b1101100,
0b1100010,
0b1101100,
0b0000000,
0b0000000
)),224:(6,0,6,(
0b000000,
0b010000,
0b001000,
0b000000,
0b111100,
0b001110,
0b110110,
0b111110,
0b000000,
0b000000
)),225:(6,0,6,(
0b000000,
0b000100,
0b001000,
0b000000,
0b111100,
0b001110,
0b110110,
0b111110,
0b000000,
0b000000
)),226:(6,0,6,(
0b000000,
0b001000,
0b010100,
0b000000,
0b111100,
0b001110,
0b110110,
0b111110,
0b000000,
0b000000
)),227:(6,0,6,(
0b000000,
0b011010,
0b101100,
0b000000,
0b111100,
0b001110,
0b110110,
0b111110,
0b000000,
0b000000
)),228:(6,0,6,(
0b000000,
0b000000,
0b010100,
0b000000,
0b111100,
0b001110,
0b110110,
0b111110,
0b000000,
0b000000
)),229:(6,0,6,(
0b011000,
0b100100,
0b011000,
0b000000,
0b111100,
0b001110,
0b110110,
0b111110,
0b000000,
0b000000
)),230:(9,0,9,(
0b000000000,
0b000000000,
0b000000000,
0b000000000,
0b111101100,
0b001110110,
0b110111000,
0b111101110,
0b000000000,
0b000000000
)),231:(5,0,5,(
0b00000,
0b00000,
0b00000,
0b00000,
0b01110,
0b11000,
0b11000,
0b01110,
0b00100,
0b01000
)),232:(6,0,6,(
0b000000,
0b001000,
0b000100,
0b000000,
0b011100,
0b110110,
0b111000,
0b011110,
0b000000,
0b000000
)),233:(6,0,6,(
0b000000,
0b000100,
0b001000,
0b000000,
0b011100,
0b110110,
0b111000,
0b011110,
0b000000,
0b000000
)),234:(6,0,6,(
0b000000,
0b001000,
0b010100,
0b000000,
0b011100,
0b110110,
0b111000,
0b011110,
0b000000,
0b000000
)),235:(6,0,6,(
0b000000,
0b000000,
0b010100,
0b000000,
0b011100,
0b110110,
0b111000,
0b011110,
0b000000,
0b000000
)),236:(3,0,3,(
0b000,
0b100,
0b010,
0b000,
0b110,
0b110,
0b110,
0b110,
0b000,
0b000
)),237:(3,0,3,(
0b000,
0b010,
0b100,
0b000,
0b110,
0b110,
0b110,
0b110,
0b000,
0b000
)),238:(3,0,3,(
0b000,
0b010,
0b101,
0b000,
0b110,
0b110,
0b110,
0b110,
0b000,
0b000
)),239:(3,0,3,(
0b000,
0b000,
0b101,
0b000,
0b110,
0b110,
0b110,
0b110,
0b000,
0b000
)),240:(6,0,6,(
0b000000,
0b000000,
0b110000,
0b001000,
0b011100,
0b110110,
0b110110,
0b011100,
0b000000,
0b000000
)),241:(6,0,6,(
0b000000,
0b011010,
0b101100,
0b000000,
0b111100,
0b110110,
0b110110,
0b110110,
0b000000,
0b000000
)),242:(6,0,6,(
0b000000,
0b001000,
0b000100,
0b000000,
0b011100,
0b110110,
0b110110,
0b011100,
0b000000,
0b000000
)),243:(6,0,6,(
0b000000,
0b000100,
0b001000,
0b000000,
0b011100,
0b110110,
0b110110,
0b011100,
0b000000,
0b000000
)),244:(6,0,6,(
0b000000,
0b001000,
0b010100,
0b000000,
0b011100,
0b110110,
0b110110,
0b011100,
0b000000,
0b000000
)),245:(6,0,6,(
0b000000,
0b011010,
0b101100,
0b000000,
0b011100,
0b110110,
0b110110,
0b011100,
0b000000,
0b000000
)),246:(6,0,6,(
0b000000,
0b000000,
0b010100,
0b000000,
0b011100,
0b110110,
0b110110,
0b011100,
0b000000,
0b000000
)),247:(7,0,7,(
0b0000000,
0b0000000,
0b0000000,
0b0011000,
0b0000000,
0b1111110,
0b0000000,
0b0011000,
0b0000000,
0b0000000
)),248:(8,0,8,(
0b00000000,
0b00000000,
0b00000000,
0b00111010,
0b01101100,
0b01111100,
0b01101100,
0b10111000,
0b00000000,
0b00000000
)),249:(6,0,6,(
0b000000,
0b010000,
0b001000,
0b000000,
0b110110,
0b110110,
0b110110,
0b011110,
0b000000,
0b000000
)),250:(6,0,6,(
0b000000,
0b000100,
0b001000,
0b000000,
0b110110,
0b110110,
0b110110,
0b011110,
0b000000,
0b000000
)),251:(6,0,6,(
0b000000,
0b001000,
0b010100,
0b000000,
0b110110,
0b110110,
0b110110,
0b011110,
0b000000,
0b000000
)),252:(6,0,6,(
0b000000,
0b000000,
0b010100,
0b000000,
0b110110,
0b110110,
0b110110,
0b011110,
0b000000,
0b000000
)),253:(6,0,6,(
0b000000,
0b000100,
0b001000,
0b000000,
0b110110,
0b110110,
0b011100,
0b001100,
0b011000,
0b110000
)),254:(6,0,6,(
0b000000,
0b000000,
0b000000,
0b110000,
0b111100,
0b110110,
0b110110,
0b111100,
0b110000,
0b110000
)),255:(6,0,6,(
0b000000,
0b000000,
0b010100,
0b000000,
0b110110,
0b110110,
0b011100,
0b001100,
0b011000,
0b110000
)),}
# generated by fontconv
#fontType 36864
#firstChar 9
#lastChar 255
#maxWidth 8
#kernMax 0
#nDescent 0
#fRectWidth 8
#fRectHeight 6
#ascent 5
#descent 1
#leading 0
#averageWidth 4.07
FONTS['6pt'] = {
9:(2,0,2,(
0b00,
0b00,
0b00,
0b00,
0b00,
0b00
)),10:(4,0,4,(
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000
)),11:(4,0,4,(
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000
)),12:(4,0,4,(
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000
)),13:(4,0,4,(
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000
)),14:(4,0,4,(
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000
)),15:(4,0,4,(
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000
)),16:(4,0,4,(
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000
)),17:(4,0,4,(
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000
)),18:(4,0,4,(
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000
)),19:(4,0,4,(
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000
)),20:(6,0,6,(
0b111010,
0b111100,
0b010110,
0b010100,
0b011010,
0b000000
)),21:(3,0,3,(
0b010,
0b100,
0b110,
0b100,
0b010,
0b000
)),22:(6,0,6,(
0b000010,
0b000100,
0b001000,
0b110000,
0b110000,
0b000000
)),23:(5,0,5,(
0b00100,
0b01010,
0b01010,
0b00100,
0b11010,
0b00000
)),24:(6,0,6,(
0b000000,
0b000000,
0b000000,
0b000000,
0b101010,
0b000000
)),32:(2,0,2,(
0b00,
0b00,
0b00,
0b00,
0b00,
0b00
)),33:(2,0,2,(
0b10,
0b10,
0b10,
0b00,
0b10,
0b00
)),34:(4,0,4,(
0b1010,
0b1010,
0b0000,
0b0000,
0b0000,
0b0000
)),35:(6,0,6,(
0b001010,
0b111110,
0b010100,
0b111110,
0b101000,
0b000000
)),36:(4,0,4,(
0b0100,
0b1110,
0b1100,
0b0110,
0b1110,
0b0100
)),37:(8,0,8,(
0b01100100,
0b10101000,
0b11010110,
0b00101010,
0b01001100,
0b00000000
)),38:(6,0,6,(
0b011000,
0b100000,
0b010110,
0b100100,
0b011000,
0b000000
)),39:(2,0,2,(
0b10,
0b10,
0b00,
0b00,
0b00,
0b00
)),40:(3,0,3,(
0b010,
0b100,
0b100,
0b100,
0b010,
0b000
)),41:(3,0,3,(
0b100,
0b010,
0b010,
0b010,
0b100,
0b000
)),42:(4,0,4,(
0b1010,
0b0100,
0b1110,
0b0100,
0b1010,
0b0000
)),43:(4,0,4,(
0b0000,
0b0100,
0b1110,
0b0100,
0b0000,
0b0000
)),44:(4,0,4,(
0b0000,
0b0000,
0b0000,
0b0000,
0b0100,
0b1000
)),45:(4,0,4,(
0b0000,
0b0000,
0b1110,
0b0000,
0b0000,
0b0000
)),46:(2,0,2,(
0b00,
0b00,
0b00,
0b00,
0b10,
0b00
)),47:(4,0,4,(
0b0010,
0b0010,
0b0100,
0b1000,
0b1000,
0b0000
)),48:(4,0,4,(
0b1110,
0b1010,
0b1010,
0b1010,
0b1110,
0b0000
)),49:(4,0,4,(
0b0100,
0b1100,
0b0100,
0b0100,
0b1110,
0b0000
)),50:(4,0,4,(
0b1110,
0b0010,
0b1110,
0b1000,
0b1110,
0b0000
)),51:(4,0,4,(
0b1110,
0b0010,
0b1110,
0b0010,
0b1110,
0b0000
)),52:(4,0,4,(
0b1010,
0b1010,
0b1110,
0b0010,
0b0010,
0b0000
)),53:(4,0,4,(
0b1110,
0b1000,
0b1110,
0b0010,
0b1110,
0b0000
)),54:(4,0,4,(
0b1110,
0b1000,
0b1110,
0b1010,
0b1110,
0b0000
)),55:(4,0,4,(
0b1110,
0b1010,
0b0010,
0b0010,
0b0010,
0b0000
)),56:(4,0,4,(
0b1110,
0b1010,
0b1110,
0b1010,
0b1110,
0b0000
)),57:(4,0,4,(
0b1110,
0b1010,
0b1110,
0b0010,
0b1110,
0b0000
)),58:(2,0,2,(
0b00,
0b10,
0b00,
0b00,
0b10,
0b00
)),59:(3,0,3,(
0b000,
0b010,
0b000,
0b000,
0b010,
0b100
)),60:(3,0,3,(
0b000,
0b010,
0b100,
0b010,
0b000,
0b000
)),61:(4,0,4,(
0b0000,
0b1110,
0b0000,
0b1110,
0b0000,
0b0000
)),62:(3,0,3,(
0b000,
0b100,
0b010,
0b100,
0b000,
0b000
)),63:(4,0,4,(
0b1100,
0b0010,
0b0100,
0b0000,
0b0100,
0b0000
)),64:(7,0,7,(
0b0111100,
0b1011010,
0b1101010,
0b1011100,
0b0100010,
0b0011100
)),65:(4,0,4,(
0b0110,
0b1010,
0b1110,
0b1010,
0b1010,
0b0000
)),66:(4,0,4,(
0b1100,
0b1010,
0b1110,
0b1010,
0b1110,
0b0000
)),67:(4,0,4,(
0b0110,
0b1000,
0b1000,
0b1000,
0b0110,
0b0000
)),68:(4,0,4,(
0b1100,
0b1010,
0b1010,
0b1010,
0b1110,
0b0000
)),69:(4,0,4,(
0b1110,
0b1000,
0b1100,
0b1000,
0b1110,
0b0000
)),70:(4,0,4,(
0b1110,
0b1000,
0b1100,
0b1000,
0b1000,
0b0000
)),71:(4,0,4,(
0b0110,
0b1000,
0b1010,
0b1010,
0b1110,
0b0000
)),72:(4,0,4,(
0b1010,
0b1010,
0b1110,
0b1010,
0b1010,
0b0000
)),73:(2,0,2,(
0b10,
0b10,
0b10,
0b10,
0b10,
0b00
)),74:(4,0,4,(
0b0010,
0b0010,
0b0010,
0b0010,
0b1100,
0b0000
)),75:(4,0,4,(
0b1010,
0b1010,
0b1100,
0b1010,
0b1010,
0b0000
)),76:(4,0,4,(
0b1000,
0b1000,
0b1000,
0b1000,
0b1110,
0b0000
)),77:(5,0,5,(
0b10010,
0b11110,
0b10010,
0b10010,
0b10010,
0b00000
)),78:(4,0,4,(
0b1100,
0b1010,
0b1010,
0b1010,
0b1010,
0b0000
)),79:(4,0,4,(
0b0100,
0b1010,
0b1010,
0b1010,
0b0100,
0b0000
)),80:(4,0,4,(
0b1100,
0b1010,
0b1110,
0b1000,
0b1000,
0b0000
)),81:(4,0,4,(
0b0100,
0b1010,
0b1010,
0b1010,
0b0100,
0b0010
)),82:(4,0,4,(
0b1100,
0b1010,
0b1100,
0b1010,
0b1010,
0b0000
)),83:(4,0,4,(
0b0110,
0b1000,
0b1110,
0b0010,
0b1100,
0b0000
)),84:(4,0,4,(
0b1110,
0b0100,
0b0100,
0b0100,
0b0100,
0b0000
)),85:(4,0,4,(
0b1010,
0b1010,
0b1010,
0b1010,
0b1110,
0b0000
)),86:(4,0,4,(
0b1010,
0b1010,
0b1010,
0b1010,
0b0100,
0b0000
)),87:(6,0,6,(
0b101010,
0b101010,
0b101010,
0b101010,
0b010100,
0b000000
)),88:(4,0,4,(
0b1010,
0b1010,
0b0100,
0b1010,
0b1010,
0b0000
)),89:(4,0,4,(
0b1010,
0b1010,
0b0100,
0b0100,
0b0100,
0b0000
)),90:(4,0,4,(
0b1110,
0b0010,
0b0100,
0b1000,
0b1110,
0b0000
)),91:(3,0,3,(
0b110,
0b100,
0b100,
0b100,
0b110,
0b000
)),92:(4,0,4,(
0b1000,
0b1000,
0b0100,
0b0010,
0b0010,
0b0000
)),93:(3,0,3,(
0b110,
0b010,
0b010,
0b010,
0b110,
0b000
)),94:(4,0,4,(
0b0100,
0b1010,
0b0000,
0b0000,
0b0000,
0b0000
)),95:(4,0,4,(
0b0000,
0b0000,
0b0000,
0b0000,
0b1110,
0b0000
)),96:(3,0,3,(
0b100,
0b010,
0b000,
0b000,
0b000,
0b000
)),97:(4,0,4,(
0b0000,
0b0110,
0b1010,
0b1010,
0b0110,
0b0000
)),98:(4,0,4,(
0b1000,
0b1100,
0b1010,
0b1010,
0b1110,
0b0000
)),99:(4,0,4,(
0b0000,
0b0110,
0b1000,
0b1000,
0b0110,
0b0000
)),100:(4,0,4,(
0b0010,
0b0110,
0b1010,
0b1010,
0b1110,
0b0000
)),101:(4,0,4,(
0b0000,
0b0110,
0b1010,
0b1100,
0b0110,
0b0000
)),102:(3,0,3,(
0b010,
0b100,
0b110,
0b100,
0b100,
0b000
)),103:(4,0,4,(
0b0000,
0b0110,
0b1010,
0b1110,
0b0010,
0b1100
)),104:(4,0,4,(
0b1000,
0b1100,
0b1010,
0b1010,
0b1010,
0b0000
)),105:(2,0,2,(
0b10,
0b00,
0b10,
0b10,
0b10,
0b00
)),106:(3,0,3,(
0b010,
0b000,
0b010,
0b010,
0b010,
0b100
)),107:(4,0,4,(
0b1000,
0b1010,
0b1100,
0b1010,
0b1010,
0b0000
)),108:(2,0,2,(
0b10,
0b10,
0b10,
0b10,
0b10,
0b00
)),109:(6,0,6,(
0b000000,
0b110100,
0b101010,
0b101010,
0b101010,
0b000000
)),110:(4,0,4,(
0b0000,
0b1100,
0b1010,
0b1010,
0b1010,
0b0000
)),111:(4,0,4,(
0b0000,
0b0100,
0b1010,
0b1010,
0b0100,
0b0000
)),112:(4,0,4,(
0b0000,
0b1100,
0b1010,
0b1010,
0b1110,
0b1000
)),113:(4,0,4,(
0b0000,
0b0110,
0b1010,
0b1010,
0b1110,
0b0010
)),114:(4,0,4,(
0b0000,
0b1010,
0b1100,
0b1000,
0b1000,
0b0000
)),115:(4,0,4,(
0b0000,
0b0110,
0b1100,
0b0010,
0b1100,
0b0000
)),116:(4,0,4,(
0b0100,
0b1110,
0b0100,
0b0100,
0b0010,
0b0000
)),117:(4,0,4,(
0b0000,
0b1010,
0b1010,
0b1010,
0b0110,
0b0000
)),118:(4,0,4,(
0b0000,
0b1010,
0b1010,
0b1010,
0b0100,
0b0000
)),119:(6,0,6,(
0b000000,
0b101010,
0b101010,
0b101010,
0b110100,
0b000000
)),120:(4,0,4,(
0b0000,
0b1010,
0b0100,
0b0100,
0b1010,
0b0000
)),121:(4,0,4,(
0b0000,
0b1010,
0b1010,
0b0110,
0b0100,
0b1000
)),122:(4,0,4,(
0b0000,
0b1110,
0b0100,
0b1000,
0b1110,
0b0000
)),123:(4,0,4,(
0b0110,
0b0100,
0b1000,
0b0100,
0b0110,
0b0000
)),124:(2,0,2,(
0b10,
0b10,
0b00,
0b10,
0b10,
0b00
)),125:(4,0,4,(
0b1100,
0b0100,
0b0010,
0b0100,
0b1100,
0b0000
)),126:(5,0,5,(
0b00000,
0b00000,
0b01010,
0b10100,
0b00000,
0b00000
)),128:(4,0,4,(
0b0110,
0b1000,
0b1110,
0b1100,
0b1000,
0b0110
)),130:(3,0,3,(
0b000,
0b000,
0b000,
0b000,
0b010,
0b100
)),131:(4,0,4,(
0b0010,
0b0100,
0b1110,
0b0100,
0b0100,
0b1000
)),132:(5,0,5,(
0b00000,
0b00000,
0b00000,
0b00000,
0b01010,
0b10100
)),133:(6,0,6,(
0b000000,
0b000000,
0b000000,
0b000000,
0b101010,
0b000000
)),134:(4,0,4,(
0b0100,
0b1110,
0b0100,
0b0100,
0b0100,
0b0000
)),135:(4,0,4,(
0b0100,
0b1110,
0b0100,
0b1110,
0b0100,
0b0000
)),136:(4,0,4,(
0b0100,
0b1010,
0b0000,
0b0000,
0b0000,
0b0000
)),137:(8,0,8,(
0b01001000,
0b10110000,
0b01110100,
0b01101010,
0b10010100,
0b00000000
)),138:(4,0,4,(
0b1010,
0b0100,
0b0110,
0b1100,
0b0010,
0b1100
)),139:(3,0,3,(
0b000,
0b010,
0b100,
0b010,
0b000,
0b000
)),140:(4,0,4,(
0b0111,
0b1010,
0b1011,
0b1010,
0b0111,
0b0000
)),141:(6,0,6,(
0b001000,
0b010100,
0b100010,
0b100010,
0b010100,
0b001000
)),142:(6,0,6,(
0b011100,
0b101010,
0b111110,
0b101010,
0b001000,
0b011100
)),143:(6,0,6,(
0b010100,
0b101010,
0b100010,
0b100010,
0b010100,
0b001000
)),144:(6,0,6,(
0b001000,
0b011100,
0b111110,
0b111110,
0b001000,
0b011100
)),145:(3,0,3,(
0b100,
0b010,
0b000,
0b000,
0b000,
0b000
)),146:(3,0,3,(
0b010,
0b100,
0b000,
0b000,
0b000,
0b000
)),147:(5,0,5,(
0b10100,
0b01010,
0b00000,
0b00000,
0b00000,
0b00000
)),148:(5,0,5,(
0b01010,
0b10100,
0b00000,
0b00000,
0b00000,
0b00000
)),149:(3,0,3,(
0b000,
0b110,
0b110,
0b000,
0b000,
0b000
)),150:(4,0,4,(
0b0000,
0b0000,
0b1111,
0b0000,
0b0000,
0b0000
)),151:(3,0,3,(
0b000,
0b000,
0b111,
0b000,
0b000,
0b000
)),152:(5,0,5,(
0b00000,
0b01010,
0b10100,
0b00000,
0b00000,
0b00000
)),153:(7,0,7,(
0b1111010,
0b0101110,
0b0101010,
0b0101010,
0b0000000,
0b0000000
)),154:(4,0,4,(
0b1010,
0b0100,
0b1110,
0b1000,
0b0110,
0b1110
)),155:(4,0,4,(
0b0000,
0b0000,
0b0100,
0b0010,
0b0100,
0b0000
)),156:(5,0,5,(
0b01110,
0b10100,
0b10110,
0b10100,
0b01110,
0b00000
)),157:(6,0,6,(
0b000010,
0b000100,
0b001000,
0b110000,
0b110000,
0b000000
)),158:(5,0,5,(
0b00100,
0b01010,
0b01010,
0b00100,
0b11010,
0b00000
)),159:(4,0,4,(
0b1010,
0b0000,
0b1010,
0b0100,
0b0100,
0b0000
)),160:(2,0,2,(
0b00,
0b00,
0b00,
0b00,
0b00,
0b00
)),161:(2,0,2,(
0b00,
0b10,
0b00,
0b10,
0b10,
0b10
)),162:(5,0,5,(
0b00100,
0b01110,
0b10100,
0b01110,
0b00100,
0b00000
)),163:(5,0,5,(
0b00110,
0b01000,
0b11100,
0b01000,
0b11000,
0b00110
)),164:(5,0,5,(
0b10010,
0b01100,
0b10010,
0b01100,
0b10010,
0b00000
)),165:(4,0,4,(
0b1010,
0b0100,
0b1110,
0b0100,
0b1110,
0b0100
)),166:(2,0,2,(
0b10,
0b10,
0b00,
0b10,
0b10,
0b00
)),167:(4,0,4,(
0b0110,
0b1000,
0b0110,
0b1100,
0b0010,
0b1100
)),168:(4,0,4,(
0b0000,
0b1010,
0b0000,
0b0000,
0b0000,
0b0000
)),169:(7,0,7,(
0b0111100,
0b1011010,
0b1010010,
0b1011010,
0b0111100,
0b0000000
)),170:(5,0,5,(
0b01110,
0b10010,
0b01110,
0b00000,
0b00000,
0b00000
)),171:(5,0,5,(
0b00000,
0b01010,
0b10100,
0b01010,
0b00000,
0b00000
)),172:(4,0,4,(
0b0000,
0b0000,
0b1110,
0b0010,
0b0000,
0b0000
)),173:(4,0,4,(
0b0000,
0b0000,
0b1110,
0b0000,
0b0000,
0b0000
)),174:(7,0,7,(
0b0111100,
0b1011010,
0b1011010,
0b1010110,
0b0111100,
0b0000000
)),175:(4,0,4,(
0b1110,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000
)),176:(4,0,4,(
0b0100,
0b1010,
0b0100,
0b0000,
0b0000,
0b0000
)),177:(4,0,4,(
0b0000,
0b0100,
0b1110,
0b0100,
0b1110,
0b0000
)),178:(4,0,4,(
0b1100,
0b0010,
0b0100,
0b1110,
0b0000,
0b0000
)),179:(4,0,4,(
0b1110,
0b0100,
0b0010,
0b1110,
0b0000,
0b0000
)),180:(3,0,3,(
0b010,
0b100,
0b000,
0b000,
0b000,
0b000
)),181:(4,0,4,(
0b0000,
0b1010,
0b1010,
0b1110,
0b1000,
0b1000
)),182:(5,0,5,(
0b01110,
0b11010,
0b11010,
0b01010,
0b01010,
0b01010
)),183:(2,0,2,(
0b00,
0b00,
0b10,
0b00,
0b00,
0b00
)),184:(4,0,4,(
0b0000,
0b0000,
0b0000,
0b0100,
0b0010,
0b1100
)),185:(2,0,2,(
0b10,
0b10,
0b00,
0b00,
0b00,
0b00
)),186:(5,0,5,(
0b01100,
0b10010,
0b01100,
0b00000,
0b11110,
0b00000
)),187:(5,0,5,(
0b00000,
0b10100,
0b01010,
0b10100,
0b00000,
0b00000
)),188:(4,0,4,(
0b1000,
0b1010,
0b0100,
0b1010,
0b0110,
0b0010
)),189:(5,0,5,(
0b10000,
0b10100,
0b01100,
0b10010,
0b00100,
0b01110
)),190:(5,0,5,(
0b11000,
0b01010,
0b11100,
0b01010,
0b10110,
0b00010
)),191:(4,0,4,(
0b0100,
0b0000,
0b0100,
0b0100,
0b1000,
0b0110
)),192:(4,0,4,(
0b1000,
0b0100,
0b0110,
0b1010,
0b1110,
0b1010
)),193:(4,0,4,(
0b0010,
0b0100,
0b0110,
0b1010,
0b1110,
0b1010
)),194:(4,0,4,(
0b0100,
0b1010,
0b0110,
0b1010,
0b1110,
0b1010
)),195:(4,0,4,(
0b0101,
0b1010,
0b0110,
0b1010,
0b1110,
0b1010
)),196:(4,0,4,(
0b1010,
0b0000,
0b0110,
0b1010,
0b1110,
0b1010
)),197:(4,0,4,(
0b0100,
0b1010,
0b0100,
0b1010,
0b1110,
0b1010
)),198:(4,0,4,(
0b0000,
0b0111,
0b1010,
0b1111,
0b1010,
0b1011
)),199:(4,0,4,(
0b0000,
0b0110,
0b1000,
0b1000,
0b0110,
0b0100
)),200:(4,0,4,(
0b1000,
0b0100,
0b1110,
0b1100,
0b1000,
0b1110
)),201:(4,0,4,(
0b0010,
0b0100,
0b1110,
0b1100,
0b1000,
0b1110
)),202:(4,0,4,(
0b0100,
0b1010,
0b1110,
0b1100,
0b1000,
0b1110
)),203:(4,0,4,(
0b1010,
0b0000,
0b1110,
0b1100,
0b1000,
0b1110
)),204:(3,0,3,(
0b100,
0b010,
0b100,
0b100,
0b100,
0b000
)),205:(3,0,3,(
0b010,
0b100,
0b010,
0b010,
0b010,
0b000
)),206:(3,0,3,(
0b010,
0b101,
0b010,
0b010,
0b010,
0b000
)),207:(3,0,3,(
0b101,
0b000,
0b010,
0b010,
0b010,
0b000
)),208:(5,0,5,(
0b00000,
0b01100,
0b01010,
0b11110,
0b01010,
0b01100
)),209:(4,0,4,(
0b0101,
0b1010,
0b0000,
0b1101,
0b1011,
0b1001
)),210:(4,0,4,(
0b0100,
0b0010,
0b0100,
0b1010,
0b1010,
0b0100
)),211:(4,0,4,(
0b0100,
0b1000,
0b0100,
0b1010,
0b1010,
0b0100
)),212:(4,0,4,(
0b0100,
0b1010,
0b0100,
0b1010,
0b1010,
0b0100
)),213:(4,0,4,(
0b0101,
0b1010,
0b0100,
0b1010,
0b1010,
0b0100
)),214:(4,0,4,(
0b1010,
0b0000,
0b0100,
0b1010,
0b1010,
0b0100
)),215:(5,0,5,(
0b00000,
0b10010,
0b01100,
0b01100,
0b10010,
0b00000
)),216:(6,0,6,(
0b000010,
0b011100,
0b101010,
0b101010,
0b011100,
0b100000
)),217:(4,0,4,(
0b0100,
0b0010,
0b0000,
0b1010,
0b1010,
0b0110
)),218:(4,0,4,(
0b0010,
0b0100,
0b0000,
0b1010,
0b1010,
0b0110
)),219:(4,0,4,(
0b0100,
0b1010,
0b0000,
0b1010,
0b1010,
0b0110
)),220:(4,0,4,(
0b0000,
0b1010,
0b0000,
0b1010,
0b1010,
0b0110
)),221:(4,0,4,(
0b0010,
0b0100,
0b1010,
0b1010,
0b0100,
0b0100
)),222:(4,0,4,(
0b1000,
0b1100,
0b1010,
0b1010,
0b1100,
0b1000
)),223:(4,0,4,(
0b1100,
0b1010,
0b1100,
0b1010,
0b1001,
0b0010
)),224:(4,0,4,(
0b0100,
0b0010,
0b0000,
0b0110,
0b1010,
0b0110
)),225:(4,0,4,(
0b0010,
0b0100,
0b0000,
0b0110,
0b1010,
0b0110
)),226:(4,0,4,(
0b0100,
0b1010,
0b0000,
0b0110,
0b1010,
0b0110
)),227:(4,0,4,(
0b0101,
0b1010,
0b0000,
0b0110,
0b1010,
0b0110
)),228:(4,0,4,(
0b0000,
0b1010,
0b0000,
0b0110,
0b1010,
0b0110
)),229:(4,0,4,(
0b0100,
0b1010,
0b0100,
0b0110,
0b1010,
0b0110
)),230:(4,0,4,(
0b0000,
0b0111,
0b1010,
0b1111,
0b1010,
0b1011
)),231:(4,0,4,(
0b0000,
0b0000,
0b0110,
0b1000,
0b0110,
0b0100
)),232:(4,0,4,(
0b0100,
0b0010,
0b0100,
0b1010,
0b1100,
0b0110
)),233:(4,0,4,(
0b0010,
0b0100,
0b0100,
0b1010,
0b1100,
0b0110
)),234:(4,0,4,(
0b0100,
0b1010,
0b0100,
0b1010,
0b1100,
0b0110
)),235:(4,0,4,(
0b1010,
0b0000,
0b0100,
0b1010,
0b1100,
0b0110
)),236:(3,0,3,(
0b100,
0b010,
0b000,
0b010,
0b010,
0b010
)),237:(3,0,3,(
0b010,
0b100,
0b000,
0b100,
0b100,
0b100
)),238:(4,0,4,(
0b0100,
0b1010,
0b0000,
0b0100,
0b0100,
0b0100
)),239:(4,0,4,(
0b0000,
0b1010,
0b0000,
0b0100,
0b0100,
0b0100
)),240:(4,0,4,(
0b1100,
0b1100,
0b0100,
0b1010,
0b1010,
0b0100
)),241:(4,0,4,(
0b1010,
0b0101,
0b0000,
0b1100,
0b1010,
0b1010
)),242:(4,0,4,(
0b0100,
0b0010,
0b0100,
0b1010,
0b1010,
0b0100
)),243:(4,0,4,(
0b0100,
0b1000,
0b0100,
0b1010,
0b1010,
0b0100
)),244:(4,0,4,(
0b0100,
0b1010,
0b0100,
0b1010,
0b1010,
0b0100
)),245:(4,0,4,(
0b0101,
0b1010,
0b0100,
0b1010,
0b1010,
0b0100
)),246:(4,0,4,(
0b1010,
0b0000,
0b0100,
0b1010,
0b1010,
0b0100
)),247:(4,0,4,(
0b0100,
0b0000,
0b1110,
0b0000,
0b0100,
0b0000
)),248:(6,0,6,(
0b000000,
0b000010,
0b011100,
0b101010,
0b011100,
0b100000
)),249:(4,0,4,(
0b0100,
0b0010,
0b0000,
0b1010,
0b1010,
0b0110
)),250:(4,0,4,(
0b0010,
0b0100,
0b0000,
0b1010,
0b1010,
0b0110
)),251:(4,0,4,(
0b0100,
0b1010,
0b0000,
0b1010,
0b1010,
0b0110
)),252:(4,0,4,(
0b0000,
0b1010,
0b0000,
0b1010,
0b1010,
0b0110
)),253:(4,0,4,(
0b0010,
0b0100,
0b0000,
0b1010,
0b0100,
0b1000
)),254:(4,0,4,(
0b1000,
0b1100,
0b1010,
0b1100,
0b1000,
0b1000
)),255:(4,0,4,(
0b1010,
0b0000,
0b1010,
0b1010,
0b0100,
0b1000
)),}
# generated by fontconv
#fontType 36864
#firstChar 9
#lastChar 255
#maxWidth 4
#kernMax 0
#nDescent 0
#fRectWidth 4
#fRectHeight 6
#ascent 6
#descent 1
#leading 0
#averageWidth 4.00
FONTS['6ptmono'] = {
9:(4,0,4,(
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000
)),10:(4,0,4,(
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000
)),11:(4,0,4,(
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000
)),12:(4,0,4,(
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000
)),13:(4,0,4,(
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000
)),14:(4,0,4,(
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000
)),15:(4,0,4,(
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000
)),16:(4,0,4,(
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000
)),17:(4,0,4,(
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000
)),18:(4,0,4,(
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000
)),19:(4,0,4,(
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000
)),20:(4,0,4,(
0b1110,
0b1110,
0b0100,
0b0110,
0b0110,
0b0100
)),21:(4,0,4,(
0b0000,
0b0010,
0b0100,
0b0110,
0b0100,
0b0010
)),22:(4,0,4,(
0b0000,
0b0000,
0b0001,
0b0010,
0b1100,
0b1100
)),23:(4,0,4,(
0b0010,
0b0101,
0b0101,
0b0010,
0b1101,
0b1101
)),24:(4,0,4,(
0b0000,
0b0000,
0b0000,
0b0000,
0b1010,
0b0000
)),32:(4,0,4,(
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000
)),33:(4,0,4,(
0b0100,
0b0100,
0b0100,
0b0000,
0b0100,
0b0000
)),34:(4,0,4,(
0b1010,
0b1010,
0b0000,
0b0000,
0b0000,
0b0000
)),35:(4,0,4,(
0b0110,
0b1111,
0b0110,
0b1111,
0b0110,
0b0000
)),36:(4,0,4,(
0b0100,
0b1110,
0b1100,
0b0110,
0b1110,
0b0100
)),37:(4,0,4,(
0b1010,
0b0010,
0b0100,
0b1000,
0b1010,
0b0000
)),38:(4,0,4,(
0b0100,
0b1010,
0b0100,
0b1010,
0b1101,
0b0000
)),39:(4,0,4,(
0b0100,
0b0100,
0b0000,
0b0000,
0b0000,
0b0000
)),40:(4,0,4,(
0b0010,
0b0100,
0b0100,
0b0100,
0b0010,
0b0000
)),41:(4,0,4,(
0b0100,
0b0010,
0b0010,
0b0010,
0b0100,
0b0000
)),42:(4,0,4,(
0b1010,
0b0100,
0b1110,
0b0100,
0b1010,
0b0000
)),43:(4,0,4,(
0b0000,
0b0100,
0b1110,
0b0100,
0b0000,
0b0000
)),44:(4,0,4,(
0b0000,
0b0000,
0b0000,
0b0000,
0b0100,
0b1000
)),45:(4,0,4,(
0b0000,
0b0000,
0b1110,
0b0000,
0b0000,
0b0000
)),46:(4,0,4,(
0b0000,
0b0000,
0b0000,
0b0000,
0b0100,
0b0000
)),47:(4,0,4,(
0b0010,
0b0010,
0b0100,
0b1000,
0b1000,
0b0000
)),48:(4,0,4,(
0b1110,
0b1010,
0b1010,
0b1010,
0b1110,
0b0000
)),49:(4,0,4,(
0b0100,
0b1100,
0b0100,
0b0100,
0b1110,
0b0000
)),50:(4,0,4,(
0b1110,
0b0010,
0b1110,
0b1000,
0b1110,
0b0000
)),51:(4,0,4,(
0b1110,
0b0010,
0b1110,
0b0010,
0b1110,
0b0000
)),52:(4,0,4,(
0b1010,
0b1010,
0b1110,
0b0010,
0b0010,
0b0000
)),53:(4,0,4,(
0b1110,
0b1000,
0b1110,
0b0010,
0b1110,
0b0000
)),54:(4,0,4,(
0b1110,
0b1000,
0b1110,
0b1010,
0b1110,
0b0000
)),55:(4,0,4,(
0b1110,
0b1010,
0b0010,
0b0010,
0b0010,
0b0000
)),56:(4,0,4,(
0b1110,
0b1010,
0b1110,
0b1010,
0b1110,
0b0000
)),57:(4,0,4,(
0b1110,
0b1010,
0b1110,
0b0010,
0b1110,
0b0000
)),58:(4,0,4,(
0b0000,
0b0100,
0b0000,
0b0000,
0b0100,
0b0000
)),59:(4,0,4,(
0b0000,
0b0100,
0b0000,
0b0000,
0b0100,
0b1000
)),60:(4,0,4,(
0b0000,
0b0100,
0b1000,
0b0100,
0b0000,
0b0000
)),61:(4,0,4,(
0b0000,
0b1110,
0b0000,
0b1110,
0b0000,
0b0000
)),62:(4,0,4,(
0b0000,
0b0100,
0b0010,
0b0100,
0b0000,
0b0000
)),63:(4,0,4,(
0b1100,
0b0010,
0b0100,
0b0000,
0b0100,
0b0000
)),64:(4,0,4,(
0b0100,
0b1010,
0b1010,
0b1000,
0b0111,
0b0000
)),65:(4,0,4,(
0b0110,
0b1010,
0b1110,
0b1010,
0b1010,
0b0000
)),66:(4,0,4,(
0b1100,
0b1010,
0b1110,
0b1010,
0b1110,
0b0000
)),67:(4,0,4,(
0b0110,
0b1000,
0b1000,
0b1000,
0b0110,
0b0000
)),68:(4,0,4,(
0b1100,
0b1010,
0b1010,
0b1010,
0b1110,
0b0000
)),69:(4,0,4,(
0b1110,
0b1000,
0b1100,
0b1000,
0b1110,
0b0000
)),70:(4,0,4,(
0b1110,
0b1000,
0b1100,
0b1000,
0b1000,
0b0000
)),71:(4,0,4,(
0b0110,
0b1000,
0b1010,
0b1010,
0b1110,
0b0000
)),72:(4,0,4,(
0b1010,
0b1010,
0b1110,
0b1010,
0b1010,
0b0000
)),73:(4,0,4,(
0b1110,
0b0100,
0b0100,
0b0100,
0b1110,
0b0000
)),74:(4,0,4,(
0b0010,
0b0010,
0b0010,
0b0010,
0b1100,
0b0000
)),75:(4,0,4,(
0b1010,
0b1010,
0b1100,
0b1010,
0b1010,
0b0000
)),76:(4,0,4,(
0b1000,
0b1000,
0b1000,
0b1000,
0b1110,
0b0000
)),77:(4,0,4,(
0b1010,
0b1110,
0b1010,
0b1010,
0b1010,
0b0000
)),78:(4,0,4,(
0b1100,
0b1010,
0b1010,
0b1010,
0b1010,
0b0000
)),79:(4,0,4,(
0b0100,
0b1010,
0b1010,
0b1010,
0b0100,
0b0000
)),80:(4,0,4,(
0b1100,
0b1010,
0b1110,
0b1000,
0b1000,
0b0000
)),81:(4,0,4,(
0b0100,
0b1010,
0b1010,
0b1010,
0b0100,
0b0010
)),82:(4,0,4,(
0b1100,
0b1010,
0b1100,
0b1010,
0b1010,
0b0000
)),83:(4,0,4,(
0b0110,
0b1000,
0b0100,
0b0010,
0b1100,
0b0000
)),84:(4,0,4,(
0b1110,
0b0100,
0b0100,
0b0100,
0b0100,
0b0000
)),85:(4,0,4,(
0b1010,
0b1010,
0b1010,
0b1010,
0b1110,
0b0000
)),86:(4,0,4,(
0b1010,
0b1010,
0b1010,
0b1010,
0b0100,
0b0000
)),87:(4,0,4,(
0b1010,
0b1010,
0b1010,
0b1110,
0b1010,
0b0000
)),88:(4,0,4,(
0b1010,
0b1010,
0b0100,
0b1010,
0b1010,
0b0000
)),89:(4,0,4,(
0b1010,
0b1010,
0b0100,
0b0100,
0b0100,
0b0000
)),90:(4,0,4,(
0b1110,
0b0010,
0b0100,
0b1000,
0b1110,
0b0000
)),91:(4,0,4,(
0b0110,
0b0100,
0b0100,
0b0100,
0b0110,
0b0000
)),92:(4,0,4,(
0b1000,
0b1000,
0b0100,
0b0010,
0b0010,
0b0000
)),93:(4,0,4,(
0b0110,
0b0010,
0b0010,
0b0010,
0b0110,
0b0000
)),94:(4,0,4,(
0b0100,
0b1010,
0b0000,
0b0000,
0b0000,
0b0000
)),95:(4,0,4,(
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b1110
)),96:(4,0,4,(
0b1000,
0b0100,
0b0000,
0b0000,
0b0000,
0b0000
)),97:(4,0,4,(
0b0110,
0b1010,
0b1110,
0b1010,
0b1010,
0b0000
)),98:(4,0,4,(
0b1100,
0b1010,
0b1110,
0b1010,
0b1110,
0b0000
)),99:(4,0,4,(
0b0110,
0b1000,
0b1000,
0b1000,
0b0110,
0b0000
)),100:(4,0,4,(
0b1100,
0b1010,
0b1010,
0b1010,
0b1110,
0b0000
)),101:(4,0,4,(
0b1110,
0b1000,
0b1100,
0b1000,
0b1110,
0b0000
)),102:(4,0,4,(
0b1110,
0b1000,
0b1100,
0b1000,
0b1000,
0b0000
)),103:(4,0,4,(
0b0110,
0b1000,
0b1010,
0b1010,
0b1110,
0b0000
)),104:(4,0,4,(
0b1010,
0b1010,
0b1110,
0b1010,
0b1010,
0b0000
)),105:(4,0,4,(
0b1110,
0b0100,
0b0100,
0b0100,
0b1110,
0b0000
)),106:(4,0,4,(
0b0010,
0b0010,
0b0010,
0b0010,
0b1100,
0b0000
)),107:(4,0,4,(
0b1010,
0b1010,
0b1100,
0b1010,
0b1010,
0b0000
)),108:(4,0,4,(
0b1000,
0b1000,
0b1000,
0b1000,
0b1110,
0b0000
)),109:(4,0,4,(
0b1010,
0b1110,
0b1010,
0b1010,
0b1010,
0b0000
)),110:(4,0,4,(
0b1100,
0b1010,
0b1010,
0b1010,
0b1010,
0b0000
)),111:(4,0,4,(
0b0100,
0b1010,
0b1010,
0b1010,
0b0100,
0b0000
)),112:(4,0,4,(
0b1100,
0b1010,
0b1110,
0b1000,
0b1000,
0b0000
)),113:(4,0,4,(
0b0100,
0b1010,
0b1010,
0b1010,
0b0100,
0b0010
)),114:(4,0,4,(
0b1100,
0b1010,
0b1100,
0b1010,
0b1010,
0b0000
)),115:(4,0,4,(
0b0110,
0b1000,
0b0100,
0b0010,
0b1100,
0b0000
)),116:(4,0,4,(
0b1110,
0b0100,
0b0100,
0b0100,
0b0100,
0b0000
)),117:(4,0,4,(
0b1010,
0b1010,
0b1010,
0b1010,
0b1110,
0b0000
)),118:(4,0,4,(
0b1010,
0b1010,
0b1010,
0b1010,
0b0100,
0b0000
)),119:(4,0,4,(
0b1010,
0b1010,
0b1010,
0b1110,
0b1010,
0b0000
)),120:(4,0,4,(
0b1010,
0b1010,
0b0100,
0b1010,
0b1010,
0b0000
)),121:(4,0,4,(
0b1010,
0b1010,
0b0100,
0b0100,
0b0100,
0b0000
)),122:(4,0,4,(
0b1110,
0b0010,
0b0100,
0b1000,
0b1110,
0b0000
)),123:(4,0,4,(
0b0110,
0b0100,
0b1000,
0b0100,
0b0110,
0b0000
)),124:(4,0,4,(
0b0100,
0b0100,
0b0100,
0b0100,
0b0100,
0b0000
)),125:(4,0,4,(
0b1100,
0b0100,
0b0010,
0b0100,
0b1100,
0b0000
)),126:(4,0,4,(
0b0000,
0b0000,
0b0101,
0b1010,
0b0000,
0b0000
)),128:(4,0,4,(
0b0110,
0b1000,
0b1110,
0b1100,
0b1000,
0b0110
)),130:(4,0,4,(
0b0000,
0b0000,
0b0000,
0b0000,
0b0100,
0b1000
)),131:(4,0,4,(
0b0010,
0b0100,
0b1110,
0b0100,
0b0100,
0b1000
)),132:(4,0,4,(
0b0000,
0b0000,
0b0000,
0b0000,
0b0101,
0b1010
)),133:(4,0,4,(
0b0000,
0b0000,
0b0000,
0b0000,
0b1010,
0b0000
)),134:(4,0,4,(
0b0000,
0b0100,
0b1110,
0b0100,
0b0100,
0b0100
)),135:(4,0,4,(
0b0000,
0b0100,
0b1110,
0b0100,
0b1110,
0b0100
)),136:(4,0,4,(
0b0100,
0b1010,
0b0000,
0b0000,
0b0000,
0b0000
)),137:(4,0,4,(
0b0000,
0b1010,
0b0010,
0b0100,
0b1000,
0b1011
)),138:(4,0,4,(
0b1010,
0b0110,
0b1000,
0b0100,
0b0010,
0b1100
)),139:(4,0,4,(
0b0000,
0b0000,
0b0100,
0b1000,
0b0100,
0b0000
)),140:(4,0,4,(
0b0000,
0b0111,
0b1010,
0b1011,
0b1010,
0b0111
)),141:(4,0,4,(
0b0000,
0b0000,
0b0100,
0b1010,
0b0100,
0b0000
)),142:(4,0,4,(
0b0000,
0b0000,
0b0100,
0b1110,
0b0100,
0b1110
)),143:(4,0,4,(
0b0000,
0b0000,
0b1010,
0b1110,
0b1110,
0b0100
)),144:(4,0,4,(
0b0000,
0b0100,
0b1110,
0b1110,
0b0100,
0b1110
)),145:(4,0,4,(
0b1000,
0b0100,
0b0000,
0b0000,
0b0000,
0b0000
)),146:(4,0,4,(
0b0100,
0b1000,
0b0000,
0b0000,
0b0000,
0b0000
)),147:(4,0,4,(
0b1010,
0b0101,
0b0000,
0b0000,
0b0000,
0b0000
)),148:(4,0,4,(
0b0101,
0b1010,
0b0000,
0b0000,
0b0000,
0b0000
)),149:(4,0,4,(
0b0000,
0b0000,
0b1100,
0b1100,
0b0000,
0b0000
)),150:(4,0,4,(
0b0000,
0b0000,
0b0000,
0b1111,
0b0000,
0b0000
)),151:(4,0,4,(
0b0000,
0b0000,
0b0000,
0b1111,
0b0000,
0b0000
)),152:(4,0,4,(
0b0000,
0b0000,
0b0101,
0b1010,
0b0000,
0b0000
)),153:(4,0,4,(
0b0000,
0b1111,
0b0111,
0b0101,
0b0000,
0b0000
)),154:(4,0,4,(
0b1010,
0b0100,
0b1110,
0b1000,
0b0110,
0b1110
)),155:(4,0,4,(
0b0000,
0b0000,
0b0100,
0b0010,
0b0100,
0b0000
)),156:(4,0,4,(
0b0000,
0b0111,
0b1010,
0b1011,
0b1010,
0b0111
)),157:(4,0,4,(
0b0000,
0b0000,
0b0001,
0b0010,
0b1100,
0b1100
)),158:(4,0,4,(
0b0010,
0b0101,
0b0101,
0b0010,
0b1101,
0b1101
)),159:(4,0,4,(
0b1010,
0b0000,
0b1010,
0b1010,
0b0100,
0b0100
)),160:(4,0,4,(
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000
)),161:(4,0,4,(
0b0000,
0b0100,
0b0000,
0b0100,
0b0100,
0b0100
)),162:(4,0,4,(
0b0000,
0b0100,
0b1110,
0b1000,
0b1110,
0b0100
)),163:(4,0,4,(
0b0011,
0b0100,
0b1110,
0b0100,
0b0100,
0b1111
)),164:(4,0,4,(
0b0000,
0b1001,
0b0110,
0b1001,
0b0110,
0b1001
)),165:(4,0,4,(
0b1010,
0b0100,
0b1110,
0b0100,
0b1110,
0b0100
)),166:(4,0,4,(
0b0000,
0b0100,
0b0100,
0b0000,
0b0100,
0b0100
)),167:(4,0,4,(
0b0110,
0b1000,
0b0100,
0b0100,
0b0010,
0b1100
)),168:(4,0,4,(
0b0000,
0b1010,
0b0000,
0b0000,
0b0000,
0b0000
)),169:(4,0,4,(
0b1111,
0b1001,
0b1011,
0b1001,
0b1111,
0b0000
)),170:(4,0,4,(
0b0000,
0b0111,
0b1001,
0b0111,
0b0000,
0b0000
)),171:(4,0,4,(
0b0000,
0b0000,
0b0101,
0b1010,
0b0101,
0b0000
)),172:(4,0,4,(
0b0000,
0b0000,
0b1110,
0b0010,
0b0000,
0b0000
)),173:(4,0,4,(
0b0000,
0b0000,
0b0000,
0b1110,
0b0000,
0b0000
)),174:(4,0,4,(
0b1111,
0b1001,
0b1001,
0b1010,
0b1111,
0b0000
)),175:(4,0,4,(
0b1110,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000
)),176:(4,0,4,(
0b0100,
0b1010,
0b0100,
0b0000,
0b0000,
0b0000
)),177:(4,0,4,(
0b0000,
0b0100,
0b1110,
0b0100,
0b1110,
0b0000
)),178:(4,0,4,(
0b0000,
0b1100,
0b0010,
0b0100,
0b1110,
0b0000
)),179:(4,0,4,(
0b0000,
0b1110,
0b0100,
0b0010,
0b1110,
0b0000
)),180:(4,0,4,(
0b0100,
0b1000,
0b0000,
0b0000,
0b0000,
0b0000
)),181:(4,0,4,(
0b0000,
0b1010,
0b1010,
0b1110,
0b1000,
0b1000
)),182:(4,0,4,(
0b0111,
0b1101,
0b1101,
0b0101,
0b0101,
0b0101
)),183:(4,0,4,(
0b0000,
0b0000,
0b0100,
0b0000,
0b0000,
0b0000
)),184:(4,0,4,(
0b0000,
0b0000,
0b0000,
0b0100,
0b0010,
0b1100
)),185:(4,0,4,(
0b0100,
0b0100,
0b0000,
0b0000,
0b0000,
0b0000
)),186:(4,0,4,(
0b0110,
0b1001,
0b0110,
0b0000,
0b1111,
0b0000
)),187:(4,0,4,(
0b0000,
0b0000,
0b1010,
0b0101,
0b1010,
0b0000
)),188:(4,0,4,(
0b1000,
0b1010,
0b0100,
0b1010,
0b0110,
0b0010
)),189:(4,0,4,(
0b1000,
0b1010,
0b0110,
0b1001,
0b0010,
0b0011
)),190:(4,0,4,(
0b1100,
0b0101,
0b1110,
0b0101,
0b1011,
0b0001
)),191:(4,0,4,(
0b0100,
0b0000,
0b0100,
0b0100,
0b1000,
0b0110
)),192:(4,0,4,(
0b1000,
0b0100,
0b1110,
0b1010,
0b1110,
0b1010
)),193:(4,0,4,(
0b0010,
0b0100,
0b1110,
0b1010,
0b1110,
0b1010
)),194:(4,0,4,(
0b0100,
0b1010,
0b1110,
0b1010,
0b1110,
0b1010
)),195:(4,0,4,(
0b0101,
0b1010,
0b1110,
0b1010,
0b1110,
0b1010
)),196:(4,0,4,(
0b1010,
0b0000,
0b1110,
0b1010,
0b1110,
0b1010
)),197:(4,0,4,(
0b0100,
0b1010,
0b1110,
0b1010,
0b1110,
0b1010
)),198:(4,0,4,(
0b0000,
0b0111,
0b1010,
0b1111,
0b1010,
0b1011
)),199:(4,0,4,(
0b0000,
0b0110,
0b1000,
0b1000,
0b0110,
0b1100
)),200:(4,0,4,(
0b1000,
0b0100,
0b1110,
0b1100,
0b1000,
0b1110
)),201:(4,0,4,(
0b0010,
0b0100,
0b1110,
0b1100,
0b1000,
0b1110
)),202:(4,0,4,(
0b0100,
0b1010,
0b1110,
0b1100,
0b1000,
0b1110
)),203:(4,0,4,(
0b1010,
0b0000,
0b1110,
0b1100,
0b1000,
0b1110
)),204:(4,0,4,(
0b0100,
0b0010,
0b0100,
0b0100,
0b0100,
0b0100
)),205:(4,0,4,(
0b0100,
0b1000,
0b0100,
0b0100,
0b0100,
0b0100
)),206:(4,0,4,(
0b0100,
0b1010,
0b0100,
0b0100,
0b0100,
0b0100
)),207:(4,0,4,(
0b1010,
0b0000,
0b0100,
0b0100,
0b0100,
0b0100
)),208:(4,0,4,(
0b0000,
0b0110,
0b0101,
0b1111,
0b0101,
0b0110
)),209:(4,0,4,(
0b0101,
0b1010,
0b0000,
0b1101,
0b1011,
0b1001
)),210:(4,0,4,(
0b0100,
0b0010,
0b0100,
0b1010,
0b1010,
0b0100
)),211:(4,0,4,(
0b0100,
0b1000,
0b0100,
0b1010,
0b1010,
0b0100
)),212:(4,0,4,(
0b0100,
0b1010,
0b0100,
0b1010,
0b1010,
0b0100
)),213:(4,0,4,(
0b0101,
0b1010,
0b0100,
0b1010,
0b1010,
0b0100
)),214:(4,0,4,(
0b1010,
0b0000,
0b0100,
0b1010,
0b1010,
0b0100
)),215:(4,0,4,(
0b0000,
0b1001,
0b0110,
0b0110,
0b1001,
0b0000
)),216:(4,0,4,(
0b0001,
0b0111,
0b1011,
0b1101,
0b1110,
0b1000
)),217:(4,0,4,(
0b0100,
0b0010,
0b0000,
0b1010,
0b1010,
0b1110
)),218:(4,0,4,(
0b0010,
0b0100,
0b0000,
0b1010,
0b1010,
0b1110
)),219:(4,0,4,(
0b0100,
0b1010,
0b0000,
0b1010,
0b1010,
0b1110
)),220:(4,0,4,(
0b0000,
0b1010,
0b0000,
0b1010,
0b1010,
0b1110
)),221:(4,0,4,(
0b0010,
0b0100,
0b0000,
0b1010,
0b0100,
0b0100
)),222:(4,0,4,(
0b1000,
0b1100,
0b1010,
0b1010,
0b1100,
0b1000
)),223:(4,0,4,(
0b0000,
0b1100,
0b1010,
0b1110,
0b1001,
0b1010
)),224:(4,0,4,(
0b0100,
0b0010,
0b0000,
0b0110,
0b1010,
0b1110
)),225:(4,0,4,(
0b0010,
0b0100,
0b0000,
0b0110,
0b1010,
0b1110
)),226:(4,0,4,(
0b0100,
0b1010,
0b0000,
0b0110,
0b1010,
0b1110
)),227:(4,0,4,(
0b0101,
0b1010,
0b0000,
0b0110,
0b1010,
0b1110
)),228:(4,0,4,(
0b0000,
0b1010,
0b0000,
0b0110,
0b1010,
0b1110
)),229:(4,0,4,(
0b0100,
0b1010,
0b0100,
0b0110,
0b1010,
0b1110
)),230:(4,0,4,(
0b0000,
0b0111,
0b1010,
0b1111,
0b1010,
0b1011
)),231:(4,0,4,(
0b0000,
0b0110,
0b1000,
0b1000,
0b0110,
0b0100
)),232:(4,0,4,(
0b0100,
0b0010,
0b0110,
0b1110,
0b1000,
0b0110
)),233:(4,0,4,(
0b0010,
0b0100,
0b0110,
0b1110,
0b1000,
0b0110
)),234:(4,0,4,(
0b0100,
0b1010,
0b0110,
0b1110,
0b1000,
0b0110
)),235:(4,0,4,(
0b1010,
0b0000,
0b0110,
0b1110,
0b1000,
0b0110
)),236:(4,0,4,(
0b0100,
0b0010,
0b0000,
0b0010,
0b0010,
0b0010
)),237:(4,0,4,(
0b0010,
0b0100,
0b0000,
0b0100,
0b0100,
0b0100
)),238:(4,0,4,(
0b0100,
0b1010,
0b0000,
0b0100,
0b0100,
0b0100
)),239:(4,0,4,(
0b0000,
0b1010,
0b0000,
0b0100,
0b0100,
0b0100
)),240:(4,0,4,(
0b1100,
0b1100,
0b0100,
0b1010,
0b1010,
0b0100
)),241:(4,0,4,(
0b1010,
0b0101,
0b0000,
0b1100,
0b1010,
0b1010
)),242:(4,0,4,(
0b0100,
0b0010,
0b0100,
0b1010,
0b1010,
0b0100
)),243:(4,0,4,(
0b0100,
0b1000,
0b0100,
0b1010,
0b1010,
0b0100
)),244:(4,0,4,(
0b0100,
0b1010,
0b0100,
0b1010,
0b1010,
0b0100
)),245:(4,0,4,(
0b0101,
0b1010,
0b0100,
0b1010,
0b1010,
0b0100
)),246:(4,0,4,(
0b1010,
0b0000,
0b0100,
0b1010,
0b1010,
0b0100
)),247:(4,0,4,(
0b0000,
0b0100,
0b0000,
0b1110,
0b0000,
0b0100
)),248:(4,0,4,(
0b0010,
0b0100,
0b1010,
0b1010,
0b0100,
0b1000
)),249:(4,0,4,(
0b0100,
0b0010,
0b0000,
0b1010,
0b1010,
0b0110
)),250:(4,0,4,(
0b0010,
0b0100,
0b0000,
0b1010,
0b1010,
0b0110
)),251:(4,0,4,(
0b0100,
0b1010,
0b0000,
0b1010,
0b1010,
0b0110
)),252:(4,0,4,(
0b0000,
0b1010,
0b0000,
0b1010,
0b1010,
0b0110
)),253:(4,0,4,(
0b0010,
0b0100,
0b1010,
0b1010,
0b0100,
0b1000
)),254:(4,0,4,(
0b1000,
0b1100,
0b1010,
0b1100,
0b1000,
0b1000
)),255:(4,0,4,(
0b1010,
0b0000,
0b1010,
0b1010,
0b0100,
0b1000
)),}
# generated by fontconv
#fontType 36864
#firstChar 9
#lastChar 255
#maxWidth 9
#kernMax 0
#nDescent 0
#fRectWidth 9
#fRectHeight 7
#ascent 5
#descent 2
#leading 0
#averageWidth 4.85
FONTS['7pt'] = {
9:(2,0,2,(
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00
)),20:(9,0,9,(
0b011110000,
0b100001010,
0b011110100,
0b001100110,
0b011100100,
0b001100010,
0b011100000
)),21:(5,0,5,(
0b00100,
0b01000,
0b10000,
0b11010,
0b10000,
0b01000,
0b00100
)),22:(7,0,7,(
0b0000000,
0b0000100,
0b0001000,
0b0010000,
0b1100000,
0b1100000,
0b0000000
)),23:(5,0,5,(
0b00100,
0b01010,
0b01010,
0b00100,
0b11010,
0b11010,
0b00000
)),24:(6,0,6,(
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b101010,
0b000000
)),25:(6,0,6,(
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000
)),32:(2,0,2,(
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00
)),33:(2,0,2,(
0b00,
0b10,
0b10,
0b10,
0b00,
0b10,
0b00
)),34:(4,0,4,(
0b1010,
0b1010,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000
)),35:(6,0,6,(
0b010100,
0b111110,
0b010100,
0b111110,
0b010100,
0b000000,
0b000000
)),36:(6,0,6,(
0b001000,
0b011110,
0b101000,
0b011100,
0b001010,
0b111100,
0b001000
)),37:(8,0,8,(
0b00000000,
0b01100100,
0b10101000,
0b11010110,
0b00101010,
0b01001100,
0b00000000
)),38:(7,0,7,(
0b0000000,
0b0111000,
0b1000010,
0b0101100,
0b1000100,
0b0111000,
0b0000000
)),39:(2,0,2,(
0b10,
0b10,
0b00,
0b00,
0b00,
0b00,
0b00
)),40:(3,0,3,(
0b000,
0b010,
0b100,
0b100,
0b100,
0b010,
0b000
)),41:(3,0,3,(
0b000,
0b100,
0b010,
0b010,
0b010,
0b100,
0b000
)),42:(5,0,5,(
0b00000,
0b10010,
0b01100,
0b11110,
0b01100,
0b10010,
0b00000
)),43:(4,0,4,(
0b0000,
0b0000,
0b0100,
0b1110,
0b0100,
0b0000,
0b0000
)),44:(3,0,3,(
0b000,
0b000,
0b000,
0b000,
0b000,
0b010,
0b100
)),45:(4,0,4,(
0b0000,
0b0000,
0b0000,
0b1110,
0b0000,
0b0000,
0b0000
)),46:(2,0,2,(
0b00,
0b00,
0b00,
0b00,
0b00,
0b10,
0b00
)),47:(5,0,5,(
0b00000,
0b00010,
0b00110,
0b01100,
0b11000,
0b10000,
0b00000
)),48:(5,0,5,(
0b00000,
0b01100,
0b10010,
0b10010,
0b10010,
0b01100,
0b00000
)),49:(5,0,5,(
0b00000,
0b00100,
0b01100,
0b00100,
0b00100,
0b01110,
0b00000
)),50:(5,0,5,(
0b00000,
0b01100,
0b10010,
0b00100,
0b01000,
0b11110,
0b00000
)),51:(5,0,5,(
0b00000,
0b11100,
0b00010,
0b01100,
0b00010,
0b11100,
0b00000
)),52:(5,0,5,(
0b00000,
0b00100,
0b01100,
0b10100,
0b11110,
0b00100,
0b00000
)),53:(5,0,5,(
0b00000,
0b11110,
0b10000,
0b11100,
0b00010,
0b11100,
0b00000
)),54:(5,0,5,(
0b00000,
0b01100,
0b10000,
0b11100,
0b10010,
0b01100,
0b00000
)),55:(5,0,5,(
0b00000,
0b11110,
0b00010,
0b00100,
0b01000,
0b01000,
0b00000
)),56:(5,0,5,(
0b00000,
0b01100,
0b10010,
0b01100,
0b10010,
0b01100,
0b00000
)),57:(5,0,5,(
0b00000,
0b01100,
0b10010,
0b01110,
0b00010,
0b01100,
0b00000
)),58:(2,0,2,(
0b00,
0b00,
0b10,
0b00,
0b00,
0b10,
0b00
)),59:(3,0,3,(
0b000,
0b000,
0b010,
0b000,
0b000,
0b010,
0b100
)),60:(4,0,4,(
0b0000,
0b0010,
0b0100,
0b1000,
0b0100,
0b0010,
0b0000
)),61:(4,0,4,(
0b0000,
0b0000,
0b1110,
0b0000,
0b1110,
0b0000,
0b0000
)),62:(4,0,4,(
0b0000,
0b1000,
0b0100,
0b0010,
0b0100,
0b1000,
0b0000
)),63:(5,0,5,(
0b00000,
0b11100,
0b00010,
0b01100,
0b00000,
0b01000,
0b00000
)),64:(9,0,9,(
0b001111000,
0b010000100,
0b100110010,
0b101010010,
0b101111100,
0b010000000,
0b001111100
)),65:(5,0,5,(
0b00000,
0b01100,
0b10010,
0b11110,
0b10010,
0b10010,
0b00000
)),66:(5,0,5,(
0b00000,
0b11100,
0b10010,
0b11100,
0b10010,
0b11100,
0b00000
)),67:(5,0,5,(
0b00000,
0b01110,
0b10000,
0b10000,
0b10000,
0b01110,
0b00000
)),68:(5,0,5,(
0b00000,
0b11100,
0b10010,
0b10010,
0b10010,
0b11100,
0b00000
)),69:(5,0,5,(
0b00000,
0b11110,
0b10000,
0b11100,
0b10000,
0b11110,
0b00000
)),70:(5,0,5,(
0b00000,
0b11110,
0b10000,
0b11100,
0b10000,
0b10000,
0b00000
)),71:(5,0,5,(
0b00000,
0b01110,
0b10000,
0b10110,
0b10010,
0b11110,
0b00000
)),72:(5,0,5,(
0b00000,
0b10010,
0b10010,
0b11110,
0b10010,
0b10010,
0b00000
)),73:(2,0,2,(
0b00,
0b10,
0b10,
0b10,
0b10,
0b10,
0b00
)),74:(5,0,5,(
0b00000,
0b00010,
0b00010,
0b00010,
0b10010,
0b01100,
0b00000
)),75:(5,0,5,(
0b00000,
0b10010,
0b10100,
0b11000,
0b10100,
0b10010,
0b00000
)),76:(5,0,5,(
0b00000,
0b10000,
0b10000,
0b10000,
0b10000,
0b11110,
0b00000
)),77:(6,0,6,(
0b000000,
0b100010,
0b110110,
0b101010,
0b100010,
0b100010,
0b000000
)),78:(5,0,5,(
0b00000,
0b10010,
0b11010,
0b11110,
0b10110,
0b10010,
0b00000
)),79:(5,0,5,(
0b00000,
0b01110,
0b10010,
0b10010,
0b10010,
0b11100,
0b00000
)),80:(5,0,5,(
0b00000,
0b11100,
0b10010,
0b11100,
0b10000,
0b10000,
0b00000
)),81:(5,0,5,(
0b00000,
0b01110,
0b10010,
0b10010,
0b10010,
0b11100,
0b00110
)),82:(5,0,5,(
0b00000,
0b11100,
0b10010,
0b11100,
0b10010,
0b10010,
0b00000
)),83:(5,0,5,(
0b00000,
0b01110,
0b10000,
0b01100,
0b00010,
0b11100,
0b00000
)),84:(6,0,6,(
0b000000,
0b111110,
0b001000,
0b001000,
0b001000,
0b001000,
0b000000
)),85:(5,0,5,(
0b00000,
0b10010,
0b10010,
0b10010,
0b10010,
0b01100,
0b00000
)),86:(5,0,5,(
0b00000,
0b10010,
0b10010,
0b10010,
0b10100,
0b01000,
0b00000
)),87:(6,0,6,(
0b000000,
0b100010,
0b100010,
0b101010,
0b101010,
0b010100,
0b000000
)),88:(5,0,5,(
0b00000,
0b10010,
0b10010,
0b01100,
0b10010,
0b10010,
0b00000
)),89:(5,0,5,(
0b00000,
0b10010,
0b10010,
0b01100,
0b00100,
0b00100,
0b00000
)),90:(5,0,5,(
0b00000,
0b11110,
0b00100,
0b01000,
0b10000,
0b11110,
0b00000
)),91:(3,0,3,(
0b000,
0b110,
0b100,
0b100,
0b100,
0b110,
0b000
)),92:(5,0,5,(
0b00000,
0b10000,
0b11000,
0b01100,
0b00110,
0b00010,
0b00000
)),93:(3,0,3,(
0b000,
0b110,
0b010,
0b010,
0b010,
0b110,
0b000
)),94:(4,0,4,(
0b0100,
0b1010,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000
)),95:(4,0,4,(
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b1110,
0b0000
)),96:(3,0,3,(
0b100,
0b010,
0b000,
0b000,
0b000,
0b000,
0b000
)),97:(5,0,5,(
0b00000,
0b00000,
0b01110,
0b10010,
0b10010,
0b01110,
0b00000
)),98:(5,0,5,(
0b10000,
0b10000,
0b11100,
0b10010,
0b10010,
0b11100,
0b00000
)),99:(4,0,4,(
0b0000,
0b0000,
0b0110,
0b1000,
0b1000,
0b0110,
0b0000
)),100:(5,0,5,(
0b00010,
0b00010,
0b01110,
0b10010,
0b10010,
0b01110,
0b00000
)),101:(5,0,5,(
0b00000,
0b00000,
0b01100,
0b10110,
0b11000,
0b01110,
0b00000
)),102:(4,0,4,(
0b0011,
0b0100,
0b1110,
0b0100,
0b0100,
0b0100,
0b0000
)),103:(5,0,5,(
0b00000,
0b00000,
0b01110,
0b10010,
0b01110,
0b00010,
0b11100
)),104:(5,0,5,(
0b10000,
0b10000,
0b11100,
0b10010,
0b10010,
0b10010,
0b00000
)),105:(2,0,2,(
0b10,
0b00,
0b10,
0b10,
0b10,
0b10,
0b00
)),106:(3,0,3,(
0b010,
0b000,
0b010,
0b010,
0b010,
0b010,
0b100
)),107:(5,0,5,(
0b10000,
0b10000,
0b10010,
0b11100,
0b10100,
0b10010,
0b00000
)),108:(2,0,2,(
0b10,
0b10,
0b10,
0b10,
0b10,
0b10,
0b00
)),109:(6,0,6,(
0b000000,
0b000000,
0b110100,
0b101010,
0b101010,
0b101010,
0b000000
)),110:(5,0,5,(
0b00000,
0b00000,
0b11100,
0b10010,
0b10010,
0b10010,
0b00000
)),111:(5,0,5,(
0b00000,
0b00000,
0b01100,
0b10010,
0b10010,
0b01100,
0b00000
)),112:(5,0,5,(
0b00000,
0b00000,
0b11100,
0b10010,
0b10010,
0b11100,
0b10000
)),113:(5,0,5,(
0b00000,
0b00000,
0b01110,
0b10010,
0b10010,
0b01110,
0b00010
)),114:(4,0,4,(
0b0000,
0b0000,
0b1010,
0b1100,
0b1000,
0b1000,
0b0000
)),115:(5,0,5,(
0b00000,
0b00000,
0b01110,
0b11000,
0b00110,
0b11100,
0b00000
)),116:(5,0,5,(
0b00000,
0b01000,
0b11110,
0b01000,
0b01000,
0b00110,
0b00000
)),117:(5,0,5,(
0b00000,
0b00000,
0b10010,
0b10010,
0b10010,
0b01100,
0b00000
)),118:(5,0,5,(
0b00000,
0b00000,
0b10010,
0b10010,
0b10100,
0b01000,
0b00000
)),119:(6,0,6,(
0b000000,
0b000000,
0b100010,
0b101010,
0b101010,
0b010100,
0b000000
)),120:(5,0,5,(
0b00000,
0b00000,
0b10010,
0b01100,
0b01100,
0b10010,
0b00000
)),121:(5,0,5,(
0b00000,
0b00000,
0b10010,
0b10010,
0b01110,
0b00100,
0b11000
)),122:(5,0,5,(
0b00000,
0b00000,
0b11110,
0b00100,
0b01000,
0b11110,
0b00000
)),123:(3,0,3,(
0b000,
0b010,
0b010,
0b100,
0b010,
0b010,
0b000
)),124:(2,0,2,(
0b00,
0b10,
0b10,
0b10,
0b10,
0b10,
0b00
)),125:(3,0,3,(
0b000,
0b100,
0b100,
0b010,
0b100,
0b100,
0b000
)),126:(6,0,6,(
0b000000,
0b000000,
0b011010,
0b101100,
0b000000,
0b000000,
0b000000
)),128:(8,0,8,(
0b00011100,
0b00100010,
0b11111000,
0b01000000,
0b11110000,
0b00100010,
0b00011100
)),130:(3,0,3,(
0b000,
0b000,
0b000,
0b000,
0b000,
0b010,
0b100
)),131:(5,0,5,(
0b00110,
0b01000,
0b11100,
0b01000,
0b01000,
0b01000,
0b10000
)),132:(5,0,5,(
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b01010,
0b10100
)),133:(6,0,6,(
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b101010,
0b000000
)),134:(4,0,4,(
0b0100,
0b1110,
0b0100,
0b0100,
0b0100,
0b0100,
0b0000
)),135:(4,0,4,(
0b0100,
0b1110,
0b0100,
0b0100,
0b1110,
0b0100,
0b0000
)),136:(4,0,4,(
0b0100,
0b1010,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000
)),137:(8,0,8,(
0b00000000,
0b01001000,
0b10110000,
0b01110100,
0b01101010,
0b10010100,
0b00000000
)),138:(4,0,4,(
0b1010,
0b0100,
0b0110,
0b1000,
0b0100,
0b0010,
0b1100
)),139:(4,0,4,(
0b0000,
0b0010,
0b0100,
0b1000,
0b0100,
0b0010,
0b0000
)),140:(7,0,7,(
0b0000000,
0b0111110,
0b1001000,
0b1001110,
0b1001000,
0b0111110,
0b0000000
)),141:(8,0,8,(
0b00010000,
0b00101000,
0b01000100,
0b10000010,
0b01000100,
0b00101000,
0b00010000
)),142:(8,0,8,(
0b00111000,
0b00111000,
0b11010110,
0b11111110,
0b11010110,
0b00111000,
0b01111100
)),143:(8,0,8,(
0b01101100,
0b10010010,
0b10000010,
0b10000010,
0b01000100,
0b00101000,
0b00010000
)),144:(8,0,8,(
0b00010000,
0b00111000,
0b01111100,
0b11111110,
0b11111110,
0b01010100,
0b00111000
)),145:(3,0,3,(
0b100,
0b010,
0b000,
0b000,
0b000,
0b000,
0b000
)),146:(3,0,3,(
0b010,
0b100,
0b000,
0b000,
0b000,
0b000,
0b000
)),147:(5,0,5,(
0b10100,
0b01010,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000
)),148:(5,0,5,(
0b01010,
0b10100,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000
)),149:(3,0,3,(
0b000,
0b000,
0b110,
0b110,
0b000,
0b000,
0b000
)),150:(4,0,4,(
0b0000,
0b0000,
0b0000,
0b1111,
0b0000,
0b0000,
0b0000
)),151:(6,0,6,(
0b000000,
0b000000,
0b000000,
0b111111,
0b000000,
0b000000,
0b000000
)),152:(6,0,6,(
0b000000,
0b000000,
0b011010,
0b101100,
0b000000,
0b000000,
0b000000
)),153:(9,0,9,(
0b111010100,
0b010101010,
0b010101010,
0b000000000,
0b000000000,
0b000000000,
0b000000000
)),154:(4,0,4,(
0b1010,
0b0100,
0b0110,
0b1000,
0b0100,
0b0010,
0b1100
)),155:(4,0,4,(
0b0000,
0b1000,
0b0100,
0b0010,
0b0100,
0b1000,
0b0000
)),156:(8,0,8,(
0b00000000,
0b01101100,
0b10010010,
0b10011110,
0b10010000,
0b01101110,
0b00000000
)),157:(7,0,7,(
0b0000000,
0b0000100,
0b0001000,
0b0010000,
0b1100000,
0b1100000,
0b0000000
)),158:(5,0,5,(
0b00100,
0b01010,
0b01010,
0b00100,
0b11010,
0b11010,
0b00000
)),159:(4,0,4,(
0b1010,
0b0000,
0b1010,
0b0100,
0b0100,
0b0100,
0b0000
)),160:(2,0,2,(
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00
)),161:(2,0,2,(
0b00,
0b00,
0b10,
0b00,
0b10,
0b10,
0b10
)),162:(5,0,5,(
0b00000,
0b00100,
0b01110,
0b10100,
0b01110,
0b00100,
0b00000
)),163:(5,0,5,(
0b00110,
0b01000,
0b11100,
0b01000,
0b11000,
0b00110,
0b00000
)),164:(6,0,6,(
0b101010,
0b011100,
0b100010,
0b100010,
0b011100,
0b101010,
0b000000
)),165:(6,0,6,(
0b100010,
0b010100,
0b111110,
0b001000,
0b111110,
0b001000,
0b000000
)),166:(2,0,2,(
0b10,
0b10,
0b10,
0b00,
0b10,
0b10,
0b10
)),167:(5,0,5,(
0b01110,
0b10000,
0b01100,
0b10010,
0b01100,
0b00010,
0b11100
)),168:(4,0,4,(
0b0000,
0b1010,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000
)),169:(8,0,8,(
0b00111000,
0b01000100,
0b10111010,
0b10100010,
0b10111010,
0b01000100,
0b00111000
)),170:(6,0,6,(
0b011110,
0b110110,
0b011110,
0b000000,
0b000000,
0b000000,
0b000000
)),171:(6,0,6,(
0b000000,
0b001010,
0b010100,
0b101000,
0b010100,
0b001010,
0b000000
)),172:(6,0,6,(
0b000000,
0b000000,
0b111110,
0b000010,
0b000010,
0b000000,
0b000000
)),173:(5,0,5,(
0b00000,
0b00000,
0b11110,
0b00000,
0b00000,
0b00000,
0b00000
)),174:(8,0,8,(
0b00111000,
0b01000100,
0b10111010,
0b10110010,
0b10101010,
0b01000100,
0b00111000
)),175:(6,0,6,(
0b000000,
0b111110,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000
)),176:(5,0,5,(
0b01100,
0b10010,
0b10010,
0b01100,
0b00000,
0b00000,
0b00000
)),177:(6,0,6,(
0b001000,
0b001000,
0b111110,
0b001000,
0b001000,
0b111110,
0b000000
)),178:(4,0,4,(
0b1100,
0b0010,
0b0100,
0b1110,
0b0000,
0b0000,
0b0000
)),179:(4,0,4,(
0b1110,
0b0100,
0b0010,
0b1110,
0b0000,
0b0000,
0b0000
)),180:(3,0,3,(
0b010,
0b100,
0b000,
0b000,
0b000,
0b000,
0b000
)),181:(5,0,5,(
0b00000,
0b10100,
0b10100,
0b10100,
0b11100,
0b10000,
0b10000
)),182:(6,0,6,(
0b011110,
0b111010,
0b111010,
0b011010,
0b001010,
0b001010,
0b000000
)),183:(2,0,2,(
0b00,
0b00,
0b00,
0b10,
0b00,
0b00,
0b00
)),184:(4,0,4,(
0b0000,
0b0000,
0b0000,
0b0000,
0b0100,
0b0010,
0b1100
)),185:(2,0,2,(
0b10,
0b10,
0b00,
0b00,
0b00,
0b00,
0b00
)),186:(5,0,5,(
0b01100,
0b10010,
0b01100,
0b00000,
0b11110,
0b00000,
0b00000
)),187:(6,0,6,(
0b000000,
0b101000,
0b010100,
0b001010,
0b010100,
0b101000,
0b000000
)),188:(8,0,8,(
0b01000110,
0b01001100,
0b01011000,
0b00110100,
0b01101100,
0b11011110,
0b00000100
)),189:(8,0,8,(
0b01000110,
0b01001100,
0b01011000,
0b00111100,
0b01100010,
0b11000100,
0b00001110
)),190:(8,0,8,(
0b11100010,
0b01100110,
0b00101100,
0b11111010,
0b00110110,
0b01101110,
0b01000010
)),191:(5,0,5,(
0b00000,
0b00100,
0b00000,
0b01100,
0b10000,
0b01110,
0b00000
)),192:(5,0,5,(
0b01000,
0b00100,
0b01100,
0b10010,
0b11110,
0b10010,
0b00000
)),193:(5,0,5,(
0b00100,
0b01000,
0b01100,
0b10010,
0b11110,
0b10010,
0b00000
)),194:(5,0,5,(
0b00100,
0b01010,
0b01100,
0b10010,
0b11110,
0b10010,
0b00000
)),195:(5,0,5,(
0b01010,
0b10100,
0b01100,
0b10010,
0b11110,
0b10010,
0b00000
)),196:(5,0,5,(
0b01010,
0b00000,
0b01100,
0b10010,
0b11110,
0b10010,
0b00000
)),197:(5,0,5,(
0b01100,
0b10010,
0b01100,
0b10010,
0b11110,
0b10010,
0b00000
)),198:(7,0,7,(
0b0000000,
0b0111110,
0b1001000,
0b1111110,
0b1001000,
0b1001110,
0b0000000
)),199:(5,0,5,(
0b00000,
0b01110,
0b10000,
0b10000,
0b01110,
0b00010,
0b00100
)),200:(4,0,4,(
0b1000,
0b0100,
0b1110,
0b1100,
0b1000,
0b1110,
0b0000
)),201:(4,0,4,(
0b0010,
0b0100,
0b1110,
0b1100,
0b1000,
0b1110,
0b0000
)),202:(4,0,4,(
0b0100,
0b1010,
0b1110,
0b1100,
0b1000,
0b1110,
0b0000
)),203:(4,0,4,(
0b1010,
0b0000,
0b1110,
0b1100,
0b1000,
0b1110,
0b0000
)),204:(2,0,2,(
0b10,
0b01,
0b10,
0b10,
0b10,
0b10,
0b00
)),205:(2,0,2,(
0b01,
0b10,
0b01,
0b01,
0b01,
0b01,
0b00
)),206:(3,0,3,(
0b010,
0b101,
0b010,
0b010,
0b010,
0b010,
0b000
)),207:(3,0,3,(
0b101,
0b000,
0b010,
0b010,
0b010,
0b010,
0b000
)),208:(6,0,6,(
0b000000,
0b011100,
0b010010,
0b111010,
0b010010,
0b011100,
0b000000
)),209:(5,0,5,(
0b01010,
0b10100,
0b10010,
0b11010,
0b10110,
0b10010,
0b00000
)),210:(5,0,5,(
0b01000,
0b00100,
0b01100,
0b10010,
0b10010,
0b01100,
0b00000
)),211:(5,0,5,(
0b00100,
0b01000,
0b01100,
0b10010,
0b10010,
0b01100,
0b00000
)),212:(5,0,5,(
0b01100,
0b10010,
0b01100,
0b10010,
0b10010,
0b01100,
0b00000
)),213:(5,0,5,(
0b01010,
0b10100,
0b01100,
0b10010,
0b10010,
0b01100,
0b00000
)),214:(5,0,5,(
0b01010,
0b00000,
0b01100,
0b10010,
0b10010,
0b01100,
0b00000
)),215:(5,0,5,(
0b00000,
0b10010,
0b01100,
0b01100,
0b10010,
0b00000,
0b00000
)),216:(7,0,7,(
0b0011010,
0b0100100,
0b0101100,
0b0110100,
0b0100100,
0b1011000,
0b0000000
)),217:(5,0,5,(
0b01000,
0b00100,
0b10010,
0b10010,
0b10010,
0b01110,
0b00000
)),218:(5,0,5,(
0b00100,
0b01000,
0b10010,
0b10010,
0b10010,
0b01110,
0b00000
)),219:(5,0,5,(
0b00100,
0b01010,
0b10000,
0b10010,
0b10010,
0b01110,
0b00000
)),220:(5,0,5,(
0b01010,
0b00000,
0b10010,
0b10010,
0b10010,
0b01110,
0b00000
)),221:(4,0,4,(
0b0010,
0b0100,
0b1010,
0b1010,
0b0100,
0b0100,
0b0000
)),222:(5,0,5,(
0b10000,
0b11100,
0b10010,
0b10010,
0b11100,
0b10000,
0b00000
)),223:(6,0,6,(
0b111000,
0b100100,
0b101100,
0b100010,
0b100010,
0b101100,
0b000000
)),224:(5,0,5,(
0b01000,
0b00100,
0b01110,
0b10010,
0b10010,
0b01110,
0b00000
)),225:(5,0,5,(
0b00100,
0b01000,
0b01110,
0b10010,
0b10010,
0b01110,
0b00000
)),226:(5,0,5,(
0b00100,
0b01010,
0b01110,
0b10010,
0b10010,
0b01110,
0b00000
)),227:(5,0,5,(
0b01010,
0b10100,
0b01110,
0b10010,
0b10010,
0b01110,
0b00000
)),228:(5,0,5,(
0b01010,
0b00000,
0b01110,
0b10010,
0b10010,
0b01110,
0b00000
)),229:(5,0,5,(
0b00100,
0b01010,
0b01110,
0b10010,
0b10010,
0b01110,
0b00000
)),230:(8,0,8,(
0b00000000,
0b01101100,
0b00010010,
0b01111110,
0b10010000,
0b01111110,
0b00000000
)),231:(4,0,4,(
0b0000,
0b0110,
0b1000,
0b1000,
0b0110,
0b0010,
0b0100
)),232:(5,0,5,(
0b01000,
0b00100,
0b01100,
0b10010,
0b11100,
0b01110,
0b00000
)),233:(5,0,5,(
0b00100,
0b01000,
0b01100,
0b10010,
0b11100,
0b01110,
0b00000
)),234:(5,0,5,(
0b00100,
0b01010,
0b01100,
0b10010,
0b11100,
0b01110,
0b00000
)),235:(5,0,5,(
0b01010,
0b00000,
0b01100,
0b10010,
0b11100,
0b01110,
0b00000
)),236:(3,0,3,(
0b100,
0b010,
0b000,
0b010,
0b010,
0b010,
0b000
)),237:(2,0,2,(
0b01,
0b10,
0b00,
0b10,
0b10,
0b10,
0b00
)),238:(3,0,3,(
0b010,
0b101,
0b000,
0b010,
0b010,
0b010,
0b000
)),239:(3,0,3,(
0b000,
0b101,
0b000,
0b010,
0b010,
0b010,
0b000
)),240:(5,0,5,(
0b11000,
0b00100,
0b01100,
0b10010,
0b10010,
0b01100,
0b00000
)),241:(5,0,5,(
0b01010,
0b10100,
0b00000,
0b11100,
0b10010,
0b10010,
0b00000
)),242:(5,0,5,(
0b01000,
0b00100,
0b01100,
0b10010,
0b10010,
0b01100,
0b00000
)),243:(5,0,5,(
0b00100,
0b01000,
0b01100,
0b10010,
0b10010,
0b01100,
0b00000
)),244:(5,0,5,(
0b01100,
0b10010,
0b01100,
0b10010,
0b10010,
0b01100,
0b00000
)),245:(5,0,5,(
0b01010,
0b10100,
0b01100,
0b10010,
0b10010,
0b01100,
0b00000
)),246:(5,0,5,(
0b01010,
0b00000,
0b01100,
0b10010,
0b10010,
0b01100,
0b00000
)),247:(4,0,4,(
0b0000,
0b0100,
0b0000,
0b1110,
0b0000,
0b0100,
0b0000
)),248:(7,0,7,(
0b0000000,
0b0011010,
0b0100100,
0b0111100,
0b0100100,
0b1011000,
0b0000000
)),249:(5,0,5,(
0b01000,
0b00100,
0b00000,
0b10010,
0b10010,
0b01110,
0b00000
)),250:(5,0,5,(
0b00100,
0b01000,
0b00000,
0b10010,
0b10010,
0b01110,
0b00000
)),251:(5,0,5,(
0b00100,
0b01010,
0b00000,
0b10010,
0b10010,
0b01110,
0b00000
)),252:(5,0,5,(
0b00000,
0b01010,
0b00000,
0b10010,
0b10010,
0b01110,
0b00000
)),253:(5,0,5,(
0b00100,
0b01000,
0b10010,
0b10010,
0b01110,
0b00100,
0b11000
)),254:(5,0,5,(
0b00000,
0b10000,
0b11100,
0b10010,
0b11100,
0b10000,
0b00000
)),255:(5,0,5,(
0b01010,
0b00000,
0b10010,
0b10010,
0b01110,
0b00100,
0b11000
)),}
# generated by fontconv
#fontType 36864
#firstChar 9
#lastChar 255
#maxWidth 9
#kernMax 0
#nDescent 0
#fRectWidth 9
#fRectHeight 9
#ascent 7
#descent 2
#leading 0
#averageWidth 4.92
FONTS['9pt'] = {
9:(2,0,2,(
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00
)),20:(9,0,9,(
0b000000000,
0b000000000,
0b011110000,
0b100001010,
0b011110100,
0b001100110,
0b011100100,
0b001100010,
0b000000000
)),21:(5,0,5,(
0b00000,
0b00000,
0b00100,
0b01000,
0b10000,
0b11010,
0b10000,
0b01000,
0b00100
)),22:(6,0,6,(
0b000000,
0b000000,
0b000000,
0b000010,
0b000100,
0b001000,
0b110000,
0b110000,
0b000000
)),23:(6,0,6,(
0b000000,
0b000000,
0b001000,
0b010100,
0b010100,
0b001000,
0b110100,
0b110010,
0b000000
)),24:(6,0,6,(
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b101010,
0b000000
)),25:(6,0,6,(
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000
)),32:(2,0,2,(
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00
)),33:(2,0,2,(
0b00,
0b00,
0b00,
0b10,
0b10,
0b10,
0b00,
0b10,
0b00
)),34:(4,0,4,(
0b0000,
0b0000,
0b1010,
0b1010,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000
)),35:(6,0,6,(
0b000000,
0b000000,
0b010100,
0b111110,
0b010100,
0b111110,
0b010100,
0b000000,
0b000000
)),36:(6,0,6,(
0b000000,
0b000000,
0b001000,
0b011110,
0b101000,
0b011100,
0b001010,
0b111100,
0b001000
)),37:(8,0,8,(
0b00000000,
0b00000000,
0b00000000,
0b01100100,
0b10101000,
0b11010110,
0b00101010,
0b01001100,
0b00000000
)),38:(7,0,7,(
0b0000000,
0b0000000,
0b0000000,
0b0111000,
0b1000010,
0b0101100,
0b1000100,
0b0111000,
0b0000000
)),39:(2,0,2,(
0b00,
0b00,
0b10,
0b10,
0b00,
0b00,
0b00,
0b00,
0b00
)),40:(3,0,3,(
0b000,
0b000,
0b010,
0b100,
0b100,
0b100,
0b100,
0b100,
0b010
)),41:(3,0,3,(
0b000,
0b000,
0b100,
0b010,
0b010,
0b010,
0b010,
0b010,
0b100
)),42:(5,0,5,(
0b00000,
0b00000,
0b10010,
0b01100,
0b11110,
0b01100,
0b10010,
0b00000,
0b00000
)),43:(4,0,4,(
0b0000,
0b0000,
0b0000,
0b0100,
0b0100,
0b1110,
0b0100,
0b0100,
0b0000
)),44:(3,0,3,(
0b000,
0b000,
0b000,
0b000,
0b000,
0b000,
0b000,
0b010,
0b100
)),45:(4,0,4,(
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b1110,
0b0000,
0b0000,
0b0000
)),46:(2,0,2,(
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b10,
0b00
)),47:(5,0,5,(
0b00000,
0b00000,
0b00000,
0b00010,
0b00110,
0b01100,
0b11000,
0b10000,
0b00000
)),48:(5,0,5,(
0b00000,
0b00000,
0b00000,
0b01100,
0b10010,
0b10010,
0b10010,
0b01100,
0b00000
)),49:(5,0,5,(
0b00000,
0b00000,
0b00000,
0b00100,
0b01100,
0b00100,
0b00100,
0b01110,
0b00000
)),50:(5,0,5,(
0b00000,
0b00000,
0b00000,
0b01100,
0b10010,
0b00100,
0b01000,
0b11110,
0b00000
)),51:(5,0,5,(
0b00000,
0b00000,
0b00000,
0b11100,
0b00010,
0b01100,
0b00010,
0b11100,
0b00000
)),52:(5,0,5,(
0b00000,
0b00000,
0b00000,
0b00100,
0b01100,
0b10100,
0b11110,
0b00100,
0b00000
)),53:(5,0,5,(
0b00000,
0b00000,
0b00000,
0b11110,
0b10000,
0b11100,
0b00010,
0b11100,
0b00000
)),54:(5,0,5,(
0b00000,
0b00000,
0b00000,
0b01100,
0b10000,
0b11100,
0b10010,
0b01100,
0b00000
)),55:(5,0,5,(
0b00000,
0b00000,
0b00000,
0b11110,
0b00010,
0b00100,
0b01000,
0b01000,
0b00000
)),56:(5,0,5,(
0b00000,
0b00000,
0b00000,
0b01100,
0b10010,
0b01100,
0b10010,
0b01100,
0b00000
)),57:(5,0,5,(
0b00000,
0b00000,
0b00000,
0b01100,
0b10010,
0b01110,
0b00010,
0b01100,
0b00000
)),58:(2,0,2,(
0b00,
0b00,
0b00,
0b00,
0b10,
0b00,
0b00,
0b10,
0b00
)),59:(3,0,3,(
0b000,
0b000,
0b000,
0b000,
0b010,
0b000,
0b000,
0b010,
0b100
)),60:(4,0,4,(
0b0000,
0b0000,
0b0000,
0b0010,
0b0100,
0b1000,
0b0100,
0b0010,
0b0000
)),61:(4,0,4,(
0b0000,
0b0000,
0b0000,
0b0000,
0b1110,
0b0000,
0b1110,
0b0000,
0b0000
)),62:(4,0,4,(
0b0000,
0b0000,
0b0000,
0b1000,
0b0100,
0b0010,
0b0100,
0b1000,
0b0000
)),63:(5,0,5,(
0b00000,
0b00000,
0b00000,
0b11100,
0b00010,
0b01100,
0b00000,
0b01000,
0b00000
)),64:(9,0,9,(
0b000000000,
0b000000000,
0b001111000,
0b010000100,
0b100110010,
0b101010010,
0b101111100,
0b010000000,
0b001111100
)),65:(5,0,5,(
0b00000,
0b00000,
0b00000,
0b01100,
0b10010,
0b11110,
0b10010,
0b10010,
0b00000
)),66:(5,0,5,(
0b00000,
0b00000,
0b00000,
0b11100,
0b10010,
0b11100,
0b10010,
0b11100,
0b00000
)),67:(5,0,5,(
0b00000,
0b00000,
0b00000,
0b01110,
0b10000,
0b10000,
0b10000,
0b01110,
0b00000
)),68:(5,0,5,(
0b00000,
0b00000,
0b00000,
0b11100,
0b10010,
0b10010,
0b10010,
0b11100,
0b00000
)),69:(5,0,5,(
0b00000,
0b00000,
0b00000,
0b11110,
0b10000,
0b11100,
0b10000,
0b11110,
0b00000
)),70:(5,0,5,(
0b00000,
0b00000,
0b00000,
0b11110,
0b10000,
0b11100,
0b10000,
0b10000,
0b00000
)),71:(5,0,5,(
0b00000,
0b00000,
0b00000,
0b01110,
0b10000,
0b10110,
0b10010,
0b01110,
0b00000
)),72:(5,0,5,(
0b00000,
0b00000,
0b00000,
0b10010,
0b10010,
0b11110,
0b10010,
0b10010,
0b00000
)),73:(2,0,2,(
0b00,
0b00,
0b00,
0b10,
0b10,
0b10,
0b10,
0b10,
0b00
)),74:(5,0,5,(
0b00000,
0b00000,
0b00000,
0b00010,
0b00010,
0b00010,
0b10010,
0b01100,
0b00000
)),75:(5,0,5,(
0b00000,
0b00000,
0b00000,
0b10010,
0b10100,
0b11000,
0b10100,
0b10010,
0b00000
)),76:(5,0,5,(
0b00000,
0b00000,
0b00000,
0b10000,
0b10000,
0b10000,
0b10000,
0b11110,
0b00000
)),77:(6,0,6,(
0b000000,
0b000000,
0b000000,
0b100010,
0b110110,
0b101010,
0b100010,
0b100010,
0b000000
)),78:(5,0,5,(
0b00000,
0b00000,
0b00000,
0b10010,
0b11010,
0b11110,
0b10110,
0b10010,
0b00000
)),79:(5,0,5,(
0b00000,
0b00000,
0b00000,
0b01110,
0b10010,
0b10010,
0b10010,
0b11100,
0b00000
)),80:(5,0,5,(
0b00000,
0b00000,
0b00000,
0b11100,
0b10010,
0b11100,
0b10000,
0b10000,
0b00000
)),81:(5,0,5,(
0b00000,
0b00000,
0b00000,
0b01110,
0b10010,
0b10010,
0b10010,
0b11100,
0b00110
)),82:(5,0,5,(
0b00000,
0b00000,
0b00000,
0b11100,
0b10010,
0b11100,
0b10010,
0b10010,
0b00000
)),83:(5,0,5,(
0b00000,
0b00000,
0b00000,
0b01110,
0b10000,
0b01100,
0b00010,
0b11100,
0b00000
)),84:(6,0,6,(
0b000000,
0b000000,
0b000000,
0b111110,
0b001000,
0b001000,
0b001000,
0b001000,
0b000000
)),85:(5,0,5,(
0b00000,
0b00000,
0b00000,
0b10010,
0b10010,
0b10010,
0b10010,
0b01100,
0b00000
)),86:(5,0,5,(
0b00000,
0b00000,
0b00000,
0b10010,
0b10010,
0b10010,
0b10100,
0b01000,
0b00000
)),87:(6,0,6,(
0b000000,
0b000000,
0b000000,
0b100010,
0b100010,
0b101010,
0b101010,
0b010100,
0b000000
)),88:(5,0,5,(
0b00000,
0b00000,
0b00000,
0b10010,
0b10010,
0b01100,
0b10010,
0b10010,
0b00000
)),89:(5,0,5,(
0b00000,
0b00000,
0b00000,
0b10010,
0b10010,
0b01100,
0b00100,
0b00100,
0b00000
)),90:(5,0,5,(
0b00000,
0b00000,
0b00000,
0b11110,
0b00100,
0b01000,
0b10000,
0b11110,
0b00000
)),91:(3,0,3,(
0b000,
0b000,
0b110,
0b100,
0b100,
0b100,
0b100,
0b100,
0b110
)),92:(5,0,5,(
0b00000,
0b00000,
0b00000,
0b10000,
0b11000,
0b01100,
0b00110,
0b00010,
0b00000
)),93:(3,0,3,(
0b000,
0b000,
0b110,
0b010,
0b010,
0b010,
0b010,
0b010,
0b110
)),94:(4,0,4,(
0b0000,
0b0000,
0b0100,
0b1010,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000
)),95:(5,0,5,(
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b11111
)),96:(4,0,4,(
0b0000,
0b1100,
0b0010,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000
)),97:(5,0,5,(
0b00000,
0b00000,
0b00000,
0b00000,
0b01110,
0b10010,
0b10010,
0b01110,
0b00000
)),98:(5,0,5,(
0b00000,
0b00000,
0b10000,
0b10000,
0b11100,
0b10010,
0b10010,
0b11100,
0b00000
)),99:(4,0,4,(
0b0000,
0b0000,
0b0000,
0b0000,
0b0110,
0b1000,
0b1000,
0b0110,
0b0000
)),100:(5,0,5,(
0b00000,
0b00000,
0b00010,
0b00010,
0b01110,
0b10010,
0b10010,
0b01110,
0b00000
)),101:(5,0,5,(
0b00000,
0b00000,
0b00000,
0b00000,
0b01100,
0b10110,
0b11000,
0b01110,
0b00000
)),102:(4,0,4,(
0b0000,
0b0000,
0b0011,
0b0100,
0b1110,
0b0100,
0b0100,
0b0100,
0b0000
)),103:(5,0,5,(
0b00000,
0b00000,
0b00000,
0b00000,
0b01110,
0b10010,
0b01110,
0b00010,
0b11100
)),104:(5,0,5,(
0b00000,
0b00000,
0b10000,
0b10000,
0b11100,
0b10010,
0b10010,
0b10010,
0b00000
)),105:(2,0,2,(
0b00,
0b00,
0b10,
0b00,
0b10,
0b10,
0b10,
0b10,
0b00
)),106:(3,0,3,(
0b000,
0b000,
0b010,
0b000,
0b010,
0b010,
0b010,
0b010,
0b100
)),107:(5,0,5,(
0b00000,
0b00000,
0b10000,
0b10000,
0b10010,
0b11100,
0b10100,
0b10010,
0b00000
)),108:(2,0,2,(
0b00,
0b00,
0b10,
0b10,
0b10,
0b10,
0b10,
0b10,
0b00
)),109:(6,0,6,(
0b000000,
0b000000,
0b000000,
0b000000,
0b110100,
0b101010,
0b101010,
0b101010,
0b000000
)),110:(5,0,5,(
0b00000,
0b00000,
0b00000,
0b00000,
0b11100,
0b10010,
0b10010,
0b10010,
0b00000
)),111:(5,0,5,(
0b00000,
0b00000,
0b00000,
0b00000,
0b01100,
0b10010,
0b10010,
0b01100,
0b00000
)),112:(5,0,5,(
0b00000,
0b00000,
0b00000,
0b00000,
0b11100,
0b10010,
0b10010,
0b11100,
0b10000
)),113:(5,0,5,(
0b00000,
0b00000,
0b00000,
0b00000,
0b01110,
0b10010,
0b10010,
0b01110,
0b00010
)),114:(4,0,4,(
0b0000,
0b0000,
0b0000,
0b0000,
0b1010,
0b1100,
0b1000,
0b1000,
0b0000
)),115:(5,0,5,(
0b00000,
0b00000,
0b00000,
0b00000,
0b01110,
0b11000,
0b00110,
0b11100,
0b00000
)),116:(5,0,5,(
0b00000,
0b00000,
0b00000,
0b01000,
0b11110,
0b01000,
0b01000,
0b00110,
0b00000
)),117:(5,0,5,(
0b00000,
0b00000,
0b00000,
0b00000,
0b10010,
0b10010,
0b10010,
0b01110,
0b00000
)),118:(5,0,5,(
0b00000,
0b00000,
0b00000,
0b00000,
0b10010,
0b10010,
0b10100,
0b01000,
0b00000
)),119:(6,0,6,(
0b000000,
0b000000,
0b000000,
0b000000,
0b100010,
0b101010,
0b101010,
0b010100,
0b000000
)),120:(5,0,5,(
0b00000,
0b00000,
0b00000,
0b00000,
0b10010,
0b01100,
0b01100,
0b10010,
0b00000
)),121:(5,0,5,(
0b00000,
0b00000,
0b00000,
0b00000,
0b10010,
0b10010,
0b01110,
0b00100,
0b11000
)),122:(5,0,5,(
0b00000,
0b00000,
0b00000,
0b00000,
0b11110,
0b00100,
0b01000,
0b11110,
0b00000
)),123:(4,0,4,(
0b0000,
0b0000,
0b0010,
0b0100,
0b0100,
0b1000,
0b0100,
0b0100,
0b0010
)),124:(2,0,2,(
0b00,
0b00,
0b10,
0b10,
0b10,
0b10,
0b10,
0b10,
0b10
)),125:(4,0,4,(
0b0000,
0b0000,
0b1000,
0b0100,
0b0100,
0b0010,
0b0100,
0b0100,
0b1000
)),126:(6,0,6,(
0b000000,
0b000000,
0b000000,
0b000000,
0b011010,
0b101100,
0b000000,
0b000000,
0b000000
)),128:(8,0,8,(
0b00000000,
0b00000000,
0b00011100,
0b00100010,
0b11111000,
0b01000000,
0b11110000,
0b00100010,
0b00011100
)),130:(3,0,3,(
0b000,
0b000,
0b000,
0b000,
0b000,
0b000,
0b000,
0b010,
0b100
)),131:(5,0,5,(
0b00000,
0b00000,
0b00110,
0b01000,
0b11100,
0b01000,
0b01000,
0b01000,
0b10000
)),132:(5,0,5,(
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b01010,
0b10100
)),133:(6,0,6,(
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b101010,
0b000000
)),134:(4,0,4,(
0b0000,
0b0000,
0b0100,
0b0100,
0b1110,
0b0100,
0b0100,
0b0100,
0b0000
)),135:(4,0,4,(
0b0000,
0b0000,
0b0100,
0b1110,
0b0100,
0b0100,
0b1110,
0b0100,
0b0000
)),136:(4,0,4,(
0b0000,
0b0100,
0b1010,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000
)),137:(9,0,9,(
0b000000000,
0b000000000,
0b000000000,
0b010001000,
0b101010000,
0b010101010,
0b001010101,
0b010001010,
0b000000000
)),138:(5,0,5,(
0b01010,
0b00100,
0b00000,
0b01110,
0b11000,
0b01100,
0b00110,
0b11100,
0b00000
)),139:(4,0,4,(
0b0000,
0b0000,
0b0000,
0b0010,
0b0100,
0b1000,
0b0100,
0b0010,
0b0000
)),140:(7,0,7,(
0b0000000,
0b0000000,
0b0111110,
0b1001000,
0b1001110,
0b1001000,
0b1001000,
0b0111110,
0b0000000
)),141:(8,0,8,(
0b00000000,
0b00010000,
0b00101000,
0b01000100,
0b10000010,
0b01000100,
0b00101000,
0b00010000,
0b00000000
)),142:(8,0,8,(
0b00000000,
0b00010000,
0b00111000,
0b01010100,
0b11111110,
0b11111110,
0b01010100,
0b00111000,
0b00000000
)),143:(8,0,8,(
0b00000000,
0b01000100,
0b10101010,
0b10010010,
0b10000010,
0b01000100,
0b00101000,
0b00010000,
0b00000000
)),144:(8,0,8,(
0b00000000,
0b00010000,
0b00111000,
0b01111100,
0b11111110,
0b11111110,
0b01010100,
0b00111000,
0b00000000
)),145:(3,0,3,(
0b000,
0b000,
0b010,
0b100,
0b110,
0b000,
0b000,
0b000,
0b000
)),146:(3,0,3,(
0b000,
0b000,
0b110,
0b010,
0b100,
0b000,
0b000,
0b000,
0b000
)),147:(5,0,5,(
0b00000,
0b00000,
0b01010,
0b10100,
0b11110,
0b00000,
0b00000,
0b00000,
0b00000
)),148:(5,0,5,(
0b00000,
0b00000,
0b11110,
0b01010,
0b10100,
0b00000,
0b00000,
0b00000,
0b00000
)),149:(3,0,3,(
0b000,
0b000,
0b000,
0b000,
0b110,
0b110,
0b000,
0b000,
0b000
)),150:(4,0,4,(
0b0000,
0b0000,
0b0000,
0b0000,
0b1111,
0b0000,
0b0000,
0b0000,
0b0000
)),151:(6,0,6,(
0b000000,
0b000000,
0b000000,
0b000000,
0b111111,
0b000000,
0b000000,
0b000000,
0b000000
)),152:(6,0,6,(
0b000000,
0b000000,
0b000000,
0b011010,
0b101100,
0b000000,
0b000000,
0b000000,
0b000000
)),153:(9,0,9,(
0b000000000,
0b000000000,
0b111010100,
0b010101010,
0b010100010,
0b000000000,
0b000000000,
0b000000000,
0b000000000
)),154:(4,0,4,(
0b1010,
0b0100,
0b0000,
0b0110,
0b1000,
0b1110,
0b0010,
0b1100,
0b0000
)),155:(4,0,4,(
0b0000,
0b0000,
0b1000,
0b0100,
0b0010,
0b0100,
0b1000,
0b0000,
0b0000
)),156:(8,0,8,(
0b00000000,
0b00000000,
0b00000000,
0b01101100,
0b10010010,
0b10011110,
0b10010000,
0b01101110,
0b00000000
)),157:(6,0,6,(
0b000000,
0b000000,
0b000000,
0b000010,
0b000100,
0b001000,
0b110000,
0b110000,
0b000000
)),158:(6,0,6,(
0b000000,
0b000000,
0b001000,
0b010100,
0b010100,
0b001000,
0b110100,
0b110010,
0b000000
)),159:(5,0,5,(
0b00000,
0b01010,
0b00000,
0b10010,
0b10010,
0b01100,
0b00100,
0b01000,
0b00000
)),160:(2,0,2,(
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00
)),161:(2,0,2,(
0b00,
0b00,
0b00,
0b10,
0b00,
0b10,
0b10,
0b10,
0b10
)),162:(5,0,5,(
0b00000,
0b00000,
0b00100,
0b01110,
0b10100,
0b01110,
0b00100,
0b00000,
0b00000
)),163:(5,0,5,(
0b00000,
0b00110,
0b01000,
0b01000,
0b11110,
0b01000,
0b11100,
0b00011,
0b00000
)),164:(6,0,6,(
0b000000,
0b000000,
0b101010,
0b011100,
0b100010,
0b100010,
0b011100,
0b101010,
0b000000
)),165:(6,0,6,(
0b000000,
0b100010,
0b010100,
0b111110,
0b001000,
0b111110,
0b001000,
0b001000,
0b000000
)),166:(2,0,2,(
0b00,
0b10,
0b10,
0b10,
0b00,
0b10,
0b10,
0b10,
0b00
)),167:(5,0,5,(
0b00000,
0b01110,
0b10000,
0b01100,
0b10010,
0b01100,
0b00010,
0b11100,
0b00000
)),168:(4,0,4,(
0b0000,
0b1010,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000
)),169:(8,0,8,(
0b00000000,
0b00111000,
0b01000100,
0b10111010,
0b10100010,
0b10111010,
0b01000100,
0b00111000,
0b00000000
)),170:(6,0,6,(
0b000000,
0b011110,
0b110110,
0b011110,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000
)),171:(6,0,6,(
0b000000,
0b000000,
0b001010,
0b010100,
0b101000,
0b010100,
0b001010,
0b000000,
0b000000
)),172:(6,0,6,(
0b000000,
0b000000,
0b000000,
0b000000,
0b111110,
0b000010,
0b000010,
0b000000,
0b000000
)),173:(5,0,5,(
0b00000,
0b00000,
0b00000,
0b00000,
0b11110,
0b00000,
0b00000,
0b00000,
0b00000
)),174:(8,0,8,(
0b00000000,
0b00111000,
0b01000100,
0b10111010,
0b10110010,
0b10101010,
0b01000100,
0b00111000,
0b00000000
)),175:(6,0,6,(
0b000000,
0b111110,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000
)),176:(5,0,5,(
0b00000,
0b01100,
0b10010,
0b10010,
0b01100,
0b00000,
0b00000,
0b00000,
0b00000
)),177:(6,0,6,(
0b000000,
0b001000,
0b001000,
0b111110,
0b001000,
0b001000,
0b111110,
0b000000,
0b000000
)),178:(4,0,4,(
0b0000,
0b1100,
0b0010,
0b1100,
0b1110,
0b0000,
0b0000,
0b0000,
0b0000
)),179:(4,0,4,(
0b0000,
0b1110,
0b0100,
0b0010,
0b1110,
0b0000,
0b0000,
0b0000,
0b0000
)),180:(4,0,4,(
0b0000,
0b0110,
0b1000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000
)),181:(5,0,5,(
0b00000,
0b00000,
0b00000,
0b10010,
0b10010,
0b10010,
0b11110,
0b10000,
0b10000
)),182:(6,0,6,(
0b000000,
0b000000,
0b011110,
0b111010,
0b111010,
0b011010,
0b001010,
0b001010,
0b000000
)),183:(2,0,2,(
0b00,
0b00,
0b00,
0b00,
0b00,
0b10,
0b00,
0b00,
0b00
)),184:(4,0,4,(
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0100,
0b0010
)),185:(2,0,2,(
0b00,
0b10,
0b10,
0b10,
0b00,
0b00,
0b00,
0b00,
0b00
)),186:(5,0,5,(
0b00000,
0b01100,
0b10010,
0b01100,
0b00000,
0b11110,
0b00000,
0b00000,
0b00000
)),187:(6,0,6,(
0b000000,
0b000000,
0b101000,
0b010100,
0b001010,
0b010100,
0b101000,
0b000000,
0b000000
)),188:(7,0,7,(
0b0100000,
0b0100100,
0b0101000,
0b0010000,
0b0100100,
0b1001100,
0b0011110,
0b0000100,
0b0000000
)),189:(7,0,7,(
0b0100000,
0b0100100,
0b0101000,
0b0010000,
0b0101100,
0b1000010,
0b0000100,
0b0001110,
0b0000000
)),190:(7,0,7,(
0b1110000,
0b0110010,
0b0010100,
0b1111000,
0b0010010,
0b0100110,
0b1001110,
0b0000010,
0b0000000
)),191:(6,0,6,(
0b000000,
0b000000,
0b000000,
0b001100,
0b000000,
0b011100,
0b110000,
0b011110,
0b000000
)),192:(5,0,5,(
0b01000,
0b00100,
0b00000,
0b01100,
0b10010,
0b11110,
0b10010,
0b10010,
0b00000
)),193:(5,0,5,(
0b00100,
0b01000,
0b00000,
0b01100,
0b10010,
0b11110,
0b10010,
0b10010,
0b00000
)),194:(5,0,5,(
0b00100,
0b01010,
0b00000,
0b01100,
0b10010,
0b11110,
0b10010,
0b10010,
0b00000
)),195:(5,0,5,(
0b01010,
0b10100,
0b00000,
0b01100,
0b10010,
0b11110,
0b10010,
0b10010,
0b00000
)),196:(5,0,5,(
0b00000,
0b01010,
0b00000,
0b01100,
0b10010,
0b11110,
0b10010,
0b10010,
0b00000
)),197:(5,0,5,(
0b01100,
0b10010,
0b01100,
0b01100,
0b10010,
0b11110,
0b10010,
0b10010,
0b00000
)),198:(7,0,7,(
0b0000000,
0b0000000,
0b0000000,
0b0111110,
0b1001000,
0b1111110,
0b1001000,
0b1001110,
0b0000000
)),199:(6,0,6,(
0b000000,
0b000000,
0b011100,
0b100000,
0b100000,
0b100000,
0b011100,
0b001000,
0b010000
)),200:(5,0,5,(
0b01000,
0b00100,
0b00000,
0b11110,
0b10000,
0b11100,
0b10000,
0b11110,
0b00000
)),201:(5,0,5,(
0b00100,
0b01000,
0b00000,
0b11110,
0b10000,
0b11100,
0b10000,
0b11110,
0b00000
)),202:(5,0,5,(
0b00100,
0b01010,
0b00000,
0b11110,
0b10000,
0b11100,
0b10000,
0b11110,
0b00000
)),203:(5,0,5,(
0b00000,
0b01010,
0b00000,
0b11110,
0b10000,
0b11100,
0b10000,
0b11110,
0b00000
)),204:(3,0,3,(
0b100,
0b010,
0b000,
0b010,
0b010,
0b010,
0b010,
0b010,
0b000
)),205:(3,0,3,(
0b010,
0b100,
0b000,
0b100,
0b100,
0b100,
0b100,
0b100,
0b000
)),206:(3,0,3,(
0b010,
0b101,
0b000,
0b010,
0b010,
0b010,
0b010,
0b010,
0b000
)),207:(3,0,3,(
0b000,
0b101,
0b000,
0b010,
0b010,
0b010,
0b010,
0b010,
0b000
)),208:(6,0,6,(
0b000000,
0b000000,
0b000000,
0b011100,
0b010010,
0b111010,
0b010010,
0b011100,
0b000000
)),209:(5,0,5,(
0b01010,
0b10100,
0b00000,
0b10010,
0b11010,
0b11010,
0b10110,
0b10010,
0b00000
)),210:(5,0,5,(
0b01000,
0b00100,
0b00000,
0b01100,
0b10010,
0b10010,
0b10010,
0b01100,
0b00000
)),211:(5,0,5,(
0b00100,
0b01000,
0b00000,
0b01100,
0b10010,
0b10010,
0b10010,
0b01100,
0b00000
)),212:(5,0,5,(
0b00100,
0b01010,
0b00000,
0b01100,
0b10010,
0b10010,
0b10010,
0b01100,
0b00000
)),213:(5,0,5,(
0b01010,
0b10100,
0b00000,
0b01100,
0b10010,
0b10010,
0b10010,
0b01100,
0b00000
)),214:(5,0,5,(
0b00000,
0b01010,
0b00000,
0b01100,
0b10010,
0b10010,
0b10010,
0b01100,
0b00000
)),215:(6,0,6,(
0b000000,
0b000000,
0b000000,
0b110110,
0b011100,
0b011100,
0b110110,
0b000000,
0b000000
)),216:(7,0,7,(
0b0000000,
0b0000000,
0b0011010,
0b0100100,
0b0101100,
0b0110100,
0b0100100,
0b1011000,
0b0000000
)),217:(5,0,5,(
0b01000,
0b00100,
0b00000,
0b10010,
0b10010,
0b10010,
0b10010,
0b01100,
0b00000
)),218:(5,0,5,(
0b00100,
0b01000,
0b00000,
0b10010,
0b10010,
0b10010,
0b10010,
0b01100,
0b00000
)),219:(5,0,5,(
0b00100,
0b01010,
0b00000,
0b10010,
0b10010,
0b10010,
0b10010,
0b01100,
0b00000
)),220:(5,0,5,(
0b00000,
0b01010,
0b00000,
0b10010,
0b10010,
0b10010,
0b10010,
0b01100,
0b00000
)),221:(5,0,5,(
0b00100,
0b01000,
0b00000,
0b10010,
0b10010,
0b01100,
0b00100,
0b01000,
0b00000
)),222:(5,0,5,(
0b00000,
0b00000,
0b10000,
0b11100,
0b10010,
0b10010,
0b11100,
0b10000,
0b10000
)),223:(6,0,6,(
0b000000,
0b000000,
0b111000,
0b100100,
0b101000,
0b100100,
0b100010,
0b101100,
0b000000
)),224:(5,0,5,(
0b00000,
0b01000,
0b00100,
0b00000,
0b11100,
0b01110,
0b10010,
0b11110,
0b00000
)),225:(5,0,5,(
0b00000,
0b00100,
0b01000,
0b00000,
0b11100,
0b01110,
0b10010,
0b11110,
0b00000
)),226:(5,0,5,(
0b00000,
0b00100,
0b01010,
0b00000,
0b11100,
0b01110,
0b10010,
0b11110,
0b00000
)),227:(5,0,5,(
0b00000,
0b01010,
0b10100,
0b00000,
0b11100,
0b01110,
0b10010,
0b11110,
0b00000
)),228:(5,0,5,(
0b00000,
0b00000,
0b01010,
0b00000,
0b11100,
0b01110,
0b10010,
0b11110,
0b00000
)),229:(5,0,5,(
0b01100,
0b10010,
0b01100,
0b00000,
0b11100,
0b01110,
0b10010,
0b11110,
0b00000
)),230:(8,0,8,(
0b00000000,
0b00000000,
0b00000000,
0b00000000,
0b11101100,
0b01110010,
0b10011100,
0b11111110,
0b00000000
)),231:(4,0,4,(
0b0000,
0b0000,
0b0000,
0b0110,
0b1000,
0b1000,
0b0110,
0b0010,
0b0100
)),232:(5,0,5,(
0b00000,
0b01000,
0b00100,
0b00000,
0b01100,
0b10010,
0b11100,
0b01110,
0b00000
)),233:(5,0,5,(
0b00000,
0b00100,
0b01000,
0b00000,
0b01100,
0b10010,
0b11100,
0b01110,
0b00000
)),234:(5,0,5,(
0b00000,
0b00100,
0b01010,
0b00000,
0b01100,
0b10010,
0b11100,
0b01110,
0b00000
)),235:(5,0,5,(
0b00000,
0b00000,
0b01010,
0b00000,
0b01100,
0b10010,
0b11100,
0b01110,
0b00000
)),236:(3,0,3,(
0b000,
0b100,
0b010,
0b000,
0b010,
0b010,
0b010,
0b010,
0b000
)),237:(3,0,3,(
0b000,
0b010,
0b100,
0b000,
0b100,
0b100,
0b100,
0b100,
0b000
)),238:(3,0,3,(
0b000,
0b010,
0b101,
0b000,
0b010,
0b010,
0b010,
0b010,
0b000
)),239:(3,0,3,(
0b000,
0b000,
0b101,
0b000,
0b010,
0b010,
0b010,
0b010,
0b000
)),240:(5,0,5,(
0b00000,
0b00000,
0b11000,
0b00100,
0b01100,
0b10010,
0b10010,
0b01100,
0b00000
)),241:(5,0,5,(
0b00000,
0b01010,
0b10100,
0b00000,
0b11100,
0b10010,
0b10010,
0b10010,
0b00000
)),242:(5,0,5,(
0b00000,
0b01000,
0b00100,
0b00000,
0b01100,
0b10010,
0b10010,
0b01100,
0b00000
)),243:(5,0,5,(
0b00000,
0b00100,
0b01000,
0b00000,
0b01100,
0b10010,
0b10010,
0b01100,
0b00000
)),244:(5,0,5,(
0b00000,
0b00100,
0b01010,
0b00000,
0b01100,
0b10010,
0b10010,
0b01100,
0b00000
)),245:(5,0,5,(
0b00000,
0b01010,
0b10100,
0b00000,
0b01100,
0b10010,
0b10010,
0b01100,
0b00000
)),246:(5,0,5,(
0b00000,
0b00000,
0b01010,
0b00000,
0b01100,
0b10010,
0b10010,
0b01100,
0b00000
)),247:(4,0,4,(
0b0000,
0b0000,
0b0000,
0b0100,
0b0000,
0b1110,
0b0000,
0b0100,
0b0000
)),248:(7,0,7,(
0b0000000,
0b0000000,
0b0000000,
0b0011010,
0b0100100,
0b0111100,
0b0100100,
0b1011000,
0b0000000
)),249:(5,0,5,(
0b00000,
0b01000,
0b00100,
0b00000,
0b10010,
0b10010,
0b10010,
0b01110,
0b00000
)),250:(5,0,5,(
0b00000,
0b00100,
0b01000,
0b00000,
0b10010,
0b10010,
0b10010,
0b01110,
0b00000
)),251:(5,0,5,(
0b00000,
0b00100,
0b01010,
0b00000,
0b10010,
0b10010,
0b10010,
0b01110,
0b00000
)),252:(5,0,5,(
0b00000,
0b00000,
0b01010,
0b00000,
0b10010,
0b10010,
0b10010,
0b01110,
0b00000
)),253:(5,0,5,(
0b00000,
0b00100,
0b01000,
0b00000,
0b10010,
0b10010,
0b01110,
0b00100,
0b11000
)),254:(5,0,5,(
0b00000,
0b00000,
0b00000,
0b10000,
0b11100,
0b10010,
0b10010,
0b11100,
0b10000
)),255:(5,0,5,(
0b00000,
0b00000,
0b01010,
0b00000,
0b10010,
0b10010,
0b01110,
0b00100,
0b11000
)),}
# generated by fontconv
#fontType 36864
#firstChar 9
#lastChar 255
#maxWidth 9
#kernMax 0
#nDescent 0
#fRectWidth 9
#fRectHeight 9
#ascent 7
#descent 2
#leading 0
#averageWidth 5.78
FONTS['9ptbold'] = {
9:(2,0,2,(
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00
)),20:(9,0,9,(
0b000000000,
0b000000000,
0b011110000,
0b100001010,
0b011110100,
0b001100110,
0b011100100,
0b001100010,
0b000000000
)),21:(5,0,5,(
0b00000,
0b00000,
0b00100,
0b01000,
0b10000,
0b11010,
0b10000,
0b01000,
0b00100
)),22:(8,0,8,(
0b00000000,
0b00000000,
0b00000110,
0b00001100,
0b00011000,
0b11110000,
0b11100000,
0b11100000,
0b00000000
)),23:(8,0,8,(
0b00000000,
0b00000000,
0b00111000,
0b01101100,
0b01101100,
0b00111000,
0b11101100,
0b11000110,
0b00000000
)),24:(6,0,6,(
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b101010,
0b000000
)),25:(6,0,6,(
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000
)),32:(2,0,2,(
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00
)),33:(3,0,3,(
0b000,
0b000,
0b000,
0b110,
0b110,
0b110,
0b000,
0b110,
0b000
)),34:(6,0,6,(
0b000000,
0b000000,
0b110110,
0b110110,
0b010010,
0b000000,
0b000000,
0b000000,
0b000000
)),35:(6,0,6,(
0b000000,
0b000000,
0b010100,
0b111110,
0b010100,
0b111110,
0b010100,
0b000000,
0b000000
)),36:(6,0,6,(
0b000000,
0b000000,
0b001000,
0b011110,
0b101000,
0b011100,
0b001010,
0b111100,
0b001000
)),37:(8,0,8,(
0b00000000,
0b00000000,
0b00000000,
0b01111110,
0b10101000,
0b11010110,
0b00101010,
0b11001100,
0b00000000
)),38:(8,0,8,(
0b00000000,
0b00000000,
0b00000000,
0b01111000,
0b11000010,
0b01101110,
0b11000100,
0b01111000,
0b00000000
)),39:(3,0,3,(
0b000,
0b000,
0b110,
0b110,
0b010,
0b000,
0b000,
0b000,
0b000
)),40:(4,0,4,(
0b0000,
0b0000,
0b0110,
0b1100,
0b1100,
0b1100,
0b1100,
0b1100,
0b0110
)),41:(4,0,4,(
0b0000,
0b0000,
0b1100,
0b0110,
0b0110,
0b0110,
0b0110,
0b0110,
0b1100
)),42:(6,0,6,(
0b000000,
0b000000,
0b010100,
0b001000,
0b111110,
0b001000,
0b010100,
0b000000,
0b000000
)),43:(6,0,6,(
0b000000,
0b000000,
0b000000,
0b001000,
0b001000,
0b111110,
0b001000,
0b001000,
0b000000
)),44:(3,0,3,(
0b000,
0b000,
0b000,
0b000,
0b000,
0b000,
0b110,
0b010,
0b100
)),45:(5,0,5,(
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b11110,
0b00000,
0b00000,
0b00000
)),46:(3,0,3,(
0b000,
0b000,
0b000,
0b000,
0b000,
0b000,
0b000,
0b110,
0b000
)),47:(5,0,5,(
0b00000,
0b00000,
0b00000,
0b00010,
0b00110,
0b01100,
0b11000,
0b10000,
0b00000
)),48:(6,0,6,(
0b000000,
0b000000,
0b000000,
0b011100,
0b110110,
0b110110,
0b110110,
0b011100,
0b000000
)),49:(6,0,6,(
0b000000,
0b000000,
0b000000,
0b001100,
0b011100,
0b001100,
0b001100,
0b011110,
0b000000
)),50:(6,0,6,(
0b000000,
0b000000,
0b000000,
0b011100,
0b110110,
0b001100,
0b011000,
0b111110,
0b000000
)),51:(6,0,6,(
0b000000,
0b000000,
0b000000,
0b111100,
0b000110,
0b011100,
0b000110,
0b111100,
0b000000
)),52:(6,0,6,(
0b000000,
0b000000,
0b000000,
0b001110,
0b011110,
0b110110,
0b111110,
0b000110,
0b000000
)),53:(6,0,6,(
0b000000,
0b000000,
0b000000,
0b111100,
0b110000,
0b111100,
0b001110,
0b111100,
0b000000
)),54:(6,0,6,(
0b000000,
0b000000,
0b000000,
0b011100,
0b110000,
0b111100,
0b110110,
0b011100,
0b000000
)),55:(6,0,6,(
0b000000,
0b000000,
0b000000,
0b111110,
0b000110,
0b001100,
0b011000,
0b011000,
0b000000
)),56:(6,0,6,(
0b000000,
0b000000,
0b000000,
0b011100,
0b110110,
0b011100,
0b110110,
0b011100,
0b000000
)),57:(6,0,6,(
0b000000,
0b000000,
0b000000,
0b011100,
0b110110,
0b011110,
0b000110,
0b011100,
0b000000
)),58:(3,0,3,(
0b000,
0b000,
0b000,
0b000,
0b110,
0b000,
0b000,
0b110,
0b000
)),59:(3,0,3,(
0b000,
0b000,
0b000,
0b000,
0b110,
0b000,
0b110,
0b010,
0b100
)),60:(5,0,5,(
0b00000,
0b00000,
0b00000,
0b00110,
0b01100,
0b11000,
0b01100,
0b00110,
0b00000
)),61:(6,0,6,(
0b000000,
0b000000,
0b000000,
0b000000,
0b111110,
0b000000,
0b111110,
0b000000,
0b000000
)),62:(5,0,5,(
0b00000,
0b00000,
0b00000,
0b11000,
0b01100,
0b00110,
0b01100,
0b11000,
0b00000
)),63:(6,0,6,(
0b000000,
0b000000,
0b000000,
0b111100,
0b000110,
0b011100,
0b000000,
0b011000,
0b000000
)),64:(9,0,9,(
0b000000000,
0b000000000,
0b001111000,
0b010000100,
0b100110010,
0b101010010,
0b101111100,
0b010000000,
0b001111100
)),65:(6,0,6,(
0b000000,
0b000000,
0b000000,
0b011100,
0b110110,
0b111110,
0b110110,
0b110110,
0b000000
)),66:(6,0,6,(
0b000000,
0b000000,
0b000000,
0b111100,
0b110110,
0b111100,
0b110110,
0b111100,
0b000000
)),67:(6,0,6,(
0b000000,
0b000000,
0b000000,
0b011110,
0b110000,
0b110000,
0b110000,
0b011110,
0b000000
)),68:(6,0,6,(
0b000000,
0b000000,
0b000000,
0b111100,
0b110110,
0b110110,
0b110110,
0b111100,
0b000000
)),69:(6,0,6,(
0b000000,
0b000000,
0b000000,
0b111110,
0b110000,
0b111100,
0b110000,
0b111110,
0b000000
)),70:(6,0,6,(
0b000000,
0b000000,
0b000000,
0b111110,
0b110000,
0b111100,
0b110000,
0b110000,
0b000000
)),71:(6,0,6,(
0b000000,
0b000000,
0b000000,
0b011110,
0b110000,
0b110110,
0b110010,
0b011110,
0b000000
)),72:(6,0,6,(
0b000000,
0b000000,
0b000000,
0b110110,
0b110110,
0b111110,
0b110110,
0b110110,
0b000000
)),73:(3,0,3,(
0b000,
0b000,
0b000,
0b110,
0b110,
0b110,
0b110,
0b110,
0b000
)),74:(6,0,6,(
0b000000,
0b000000,
0b000000,
0b000110,
0b000110,
0b000110,
0b110110,
0b011100,
0b000000
)),75:(6,0,6,(
0b000000,
0b000000,
0b000000,
0b110110,
0b111100,
0b111000,
0b111100,
0b110110,
0b000000
)),76:(6,0,6,(
0b000000,
0b000000,
0b000000,
0b110000,
0b110000,
0b110000,
0b110000,
0b111110,
0b000000
)),77:(8,0,8,(
0b00000000,
0b00000000,
0b00000000,
0b11000110,
0b11101110,
0b11111110,
0b11010110,
0b11000110,
0b00000000
)),78:(6,0,6,(
0b000000,
0b000000,
0b000000,
0b100110,
0b110110,
0b111110,
0b110110,
0b110010,
0b000000
)),79:(7,0,7,(
0b0000000,
0b0000000,
0b0000000,
0b0111100,
0b1100110,
0b1100110,
0b1100110,
0b0111100,
0b0000000
)),80:(6,0,6,(
0b000000,
0b000000,
0b000000,
0b111100,
0b110110,
0b111100,
0b110000,
0b110000,
0b000000
)),81:(6,0,6,(
0b000000,
0b000000,
0b000000,
0b011100,
0b110110,
0b110110,
0b110110,
0b011100,
0b000110
)),82:(6,0,6,(
0b000000,
0b000000,
0b000000,
0b111100,
0b110110,
0b111100,
0b110110,
0b110110,
0b000000
)),83:(6,0,6,(
0b000000,
0b000000,
0b000000,
0b011110,
0b110000,
0b111110,
0b000110,
0b111100,
0b000000
)),84:(7,0,7,(
0b0000000,
0b0000000,
0b0000000,
0b1111110,
0b0011000,
0b0011000,
0b0011000,
0b0011000,
0b0000000
)),85:(6,0,6,(
0b000000,
0b000000,
0b000000,
0b110110,
0b110110,
0b110110,
0b110110,
0b011100,
0b000000
)),86:(6,0,6,(
0b000000,
0b000000,
0b000000,
0b110110,
0b110110,
0b110110,
0b011100,
0b001000,
0b000000
)),87:(8,0,8,(
0b00000000,
0b00000000,
0b00000000,
0b11000110,
0b11010110,
0b11111110,
0b01111100,
0b01101100,
0b00000000
)),88:(6,0,6,(
0b000000,
0b000000,
0b000000,
0b110110,
0b110110,
0b011100,
0b110110,
0b110110,
0b000000
)),89:(6,0,6,(
0b000000,
0b000000,
0b000000,
0b110110,
0b110110,
0b011100,
0b001100,
0b011000,
0b000000
)),90:(6,0,6,(
0b000000,
0b000000,
0b000000,
0b111110,
0b001100,
0b011000,
0b110000,
0b111110,
0b000000
)),91:(4,0,4,(
0b0000,
0b0000,
0b1110,
0b1100,
0b1100,
0b1100,
0b1100,
0b1100,
0b1110
)),92:(5,0,5,(
0b00000,
0b00000,
0b00000,
0b10000,
0b11000,
0b01100,
0b00110,
0b00010,
0b00000
)),93:(4,0,4,(
0b0000,
0b0000,
0b1110,
0b0110,
0b0110,
0b0110,
0b0110,
0b0110,
0b1110
)),94:(6,0,6,(
0b000000,
0b000000,
0b001000,
0b011100,
0b110110,
0b100010,
0b000000,
0b000000,
0b000000
)),95:(5,0,5,(
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b11111
)),96:(4,0,4,(
0b0000,
0b1100,
0b0010,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000
)),97:(6,0,6,(
0b000000,
0b000000,
0b000000,
0b000000,
0b111100,
0b001110,
0b110110,
0b111110,
0b000000
)),98:(6,0,6,(
0b000000,
0b000000,
0b110000,
0b110000,
0b111100,
0b110110,
0b110110,
0b111100,
0b000000
)),99:(5,0,5,(
0b00000,
0b00000,
0b00000,
0b00000,
0b01110,
0b11000,
0b11000,
0b01110,
0b00000
)),100:(6,0,6,(
0b000000,
0b000000,
0b000110,
0b000110,
0b011110,
0b110110,
0b110110,
0b011110,
0b000000
)),101:(6,0,6,(
0b000000,
0b000000,
0b000000,
0b000000,
0b011100,
0b110110,
0b111000,
0b011110,
0b000000
)),102:(5,0,5,(
0b00000,
0b00000,
0b00111,
0b01100,
0b11110,
0b01100,
0b01100,
0b01100,
0b00000
)),103:(7,0,7,(
0b0000000,
0b0000000,
0b0000000,
0b0000000,
0b0111010,
0b1101100,
0b0111000,
0b1001100,
0b1111000
)),104:(6,0,6,(
0b000000,
0b000000,
0b110000,
0b110000,
0b111100,
0b110110,
0b110110,
0b110110,
0b000000
)),105:(3,0,3,(
0b000,
0b000,
0b110,
0b000,
0b110,
0b110,
0b110,
0b110,
0b000
)),106:(4,0,4,(
0b0000,
0b0000,
0b0110,
0b0000,
0b0110,
0b0110,
0b0110,
0b0110,
0b1100
)),107:(6,0,6,(
0b000000,
0b000000,
0b110000,
0b110000,
0b110110,
0b111100,
0b111100,
0b110110,
0b000000
)),108:(3,0,3,(
0b000,
0b000,
0b110,
0b110,
0b110,
0b110,
0b110,
0b110,
0b000
)),109:(9,0,9,(
0b000000000,
0b000000000,
0b000000000,
0b000000000,
0b110110110,
0b111111110,
0b110110110,
0b110110110,
0b000000000
)),110:(6,0,6,(
0b000000,
0b000000,
0b000000,
0b000000,
0b111100,
0b110110,
0b110110,
0b110110,
0b000000
)),111:(6,0,6,(
0b000000,
0b000000,
0b000000,
0b000000,
0b011100,
0b110110,
0b110110,
0b011100,
0b000000
)),112:(6,0,6,(
0b000000,
0b000000,
0b000000,
0b000000,
0b111100,
0b110110,
0b110110,
0b111100,
0b110000
)),113:(6,0,6,(
0b000000,
0b000000,
0b000000,
0b000000,
0b011110,
0b110110,
0b110110,
0b011110,
0b000110
)),114:(5,0,5,(
0b00000,
0b00000,
0b00000,
0b00000,
0b11010,
0b11110,
0b11000,
0b11000,
0b00000
)),115:(5,0,5,(
0b00000,
0b00000,
0b00000,
0b00000,
0b01110,
0b11000,
0b00110,
0b11100,
0b00000
)),116:(6,0,6,(
0b000000,
0b000000,
0b000000,
0b011000,
0b111110,
0b011000,
0b011000,
0b001110,
0b000000
)),117:(6,0,6,(
0b000000,
0b000000,
0b000000,
0b000000,
0b110110,
0b110110,
0b110110,
0b011110,
0b000000
)),118:(6,0,6,(
0b000000,
0b000000,
0b000000,
0b000000,
0b110110,
0b110110,
0b011100,
0b001000,
0b000000
)),119:(9,0,9,(
0b000000000,
0b000000000,
0b000000000,
0b000000000,
0b110110110,
0b110110110,
0b011111100,
0b001001000,
0b000000000
)),120:(6,0,6,(
0b000000,
0b000000,
0b000000,
0b000000,
0b110110,
0b011100,
0b011100,
0b110110,
0b000000
)),121:(6,0,6,(
0b000000,
0b000000,
0b000000,
0b000000,
0b110110,
0b110110,
0b011100,
0b001100,
0b011000
)),122:(5,0,5,(
0b00000,
0b00000,
0b00000,
0b00000,
0b11110,
0b00110,
0b11000,
0b11110,
0b00000
)),123:(5,0,5,(
0b00000,
0b00000,
0b00110,
0b01100,
0b01100,
0b11000,
0b01100,
0b01100,
0b00110
)),124:(3,0,3,(
0b000,
0b000,
0b110,
0b110,
0b110,
0b110,
0b110,
0b110,
0b110
)),125:(5,0,5,(
0b00000,
0b00000,
0b11000,
0b01100,
0b01100,
0b00110,
0b01100,
0b01100,
0b11000
)),126:(6,0,6,(
0b000000,
0b000000,
0b000000,
0b000000,
0b011010,
0b101100,
0b000000,
0b000000,
0b000000
)),128:(9,0,9,(
0b000000000,
0b000000000,
0b000111100,
0b001100010,
0b111111000,
0b011000000,
0b111110000,
0b001100010,
0b000111100
)),130:(3,0,3,(
0b000,
0b000,
0b000,
0b000,
0b000,
0b000,
0b110,
0b010,
0b100
)),131:(7,0,7,(
0b0000000,
0b0000000,
0b0001110,
0b0011000,
0b0111100,
0b0011000,
0b0011000,
0b1110000,
0b0000000
)),132:(5,0,5,(
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b11110,
0b01010,
0b10100
)),133:(6,0,6,(
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b101010,
0b000000
)),134:(5,0,5,(
0b00000,
0b00000,
0b01100,
0b01100,
0b11110,
0b01100,
0b01100,
0b01100,
0b01100
)),135:(5,0,5,(
0b00000,
0b00000,
0b01100,
0b01100,
0b11110,
0b01100,
0b11110,
0b01100,
0b01100
)),136:(4,0,4,(
0b0000,
0b0100,
0b1010,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000
)),137:(9,0,9,(
0b000000000,
0b000000000,
0b000000000,
0b010001000,
0b101010000,
0b010101010,
0b001010101,
0b010001010,
0b000000000
)),138:(5,0,5,(
0b01010,
0b00100,
0b00000,
0b01110,
0b11000,
0b01100,
0b00110,
0b11100,
0b00000
)),139:(5,0,5,(
0b00000,
0b00000,
0b00000,
0b00110,
0b01100,
0b11000,
0b01100,
0b00110,
0b00000
)),140:(9,0,9,(
0b000000000,
0b000000000,
0b001111110,
0b011011000,
0b110011110,
0b110011000,
0b011011000,
0b001111110,
0b000000000
)),141:(9,0,9,(
0b000010000,
0b000111000,
0b001101100,
0b011000110,
0b110000011,
0b011000110,
0b001101100,
0b000111000,
0b000010000
)),142:(9,0,9,(
0b000111000,
0b001111100,
0b000111000,
0b011010110,
0b111111111,
0b111111111,
0b011010110,
0b000111000,
0b001111100
)),143:(9,0,9,(
0b011101110,
0b110111011,
0b100010001,
0b100000001,
0b110000011,
0b011000110,
0b001101100,
0b000111000,
0b000010000
)),144:(9,0,9,(
0b000010000,
0b000111000,
0b001111100,
0b011111110,
0b111111111,
0b111111111,
0b011010110,
0b000111000,
0b001111100
)),145:(3,0,3,(
0b000,
0b000,
0b010,
0b100,
0b110,
0b000,
0b000,
0b000,
0b000
)),146:(3,0,3,(
0b000,
0b000,
0b110,
0b010,
0b100,
0b000,
0b000,
0b000,
0b000
)),147:(5,0,5,(
0b00000,
0b00000,
0b01010,
0b10100,
0b11110,
0b00000,
0b00000,
0b00000,
0b00000
)),148:(5,0,5,(
0b00000,
0b00000,
0b11110,
0b01010,
0b10100,
0b00000,
0b00000,
0b00000,
0b00000
)),149:(4,0,4,(
0b0000,
0b0000,
0b0000,
0b0000,
0b1110,
0b1110,
0b1110,
0b0000,
0b0000
)),150:(4,0,4,(
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b1111,
0b0000,
0b0000
)),151:(6,0,6,(
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b111111,
0b000000,
0b000000
)),152:(6,0,6,(
0b000000,
0b000000,
0b000000,
0b000000,
0b011010,
0b101100,
0b000000,
0b000000,
0b000000
)),153:(9,0,9,(
0b000000000,
0b000000000,
0b000000000,
0b111010100,
0b010101010,
0b010100010,
0b000000000,
0b000000000,
0b000000000
)),154:(5,0,5,(
0b01010,
0b00100,
0b00000,
0b01110,
0b11000,
0b11110,
0b00110,
0b11100,
0b00000
)),155:(5,0,5,(
0b00000,
0b00000,
0b00000,
0b11000,
0b01100,
0b00110,
0b01100,
0b11000,
0b00000
)),156:(9,0,9,(
0b000000000,
0b000000000,
0b000000000,
0b011101100,
0b110110110,
0b110110110,
0b110111000,
0b011011110,
0b000000000
)),157:(8,0,8,(
0b00000000,
0b00000000,
0b00000110,
0b00001100,
0b00011000,
0b11110000,
0b11100000,
0b11100000,
0b00000000
)),158:(8,0,8,(
0b00000000,
0b00000000,
0b00111000,
0b01101100,
0b01101100,
0b00111000,
0b11101100,
0b11000110,
0b00000000
)),159:(6,0,6,(
0b000000,
0b010100,
0b000000,
0b110110,
0b110110,
0b011100,
0b001100,
0b011000,
0b000000
)),160:(2,0,2,(
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00
)),161:(3,0,3,(
0b000,
0b000,
0b000,
0b110,
0b000,
0b110,
0b110,
0b110,
0b110
)),162:(6,0,6,(
0b000000,
0b000000,
0b000100,
0b011110,
0b110100,
0b110100,
0b011110,
0b000100,
0b000000
)),163:(6,0,6,(
0b000000,
0b000000,
0b001110,
0b011000,
0b011000,
0b111110,
0b011000,
0b111110,
0b000000
)),164:(8,0,8,(
0b00000000,
0b00000000,
0b10111010,
0b01111100,
0b11000110,
0b11000110,
0b01111100,
0b10111010,
0b00000000
)),165:(7,0,7,(
0b0000000,
0b0000000,
0b1100110,
0b0111100,
0b0011000,
0b1111110,
0b0011000,
0b1111110,
0b0011000
)),166:(3,0,3,(
0b000,
0b000,
0b110,
0b110,
0b110,
0b000,
0b110,
0b110,
0b110
)),167:(5,0,5,(
0b00000,
0b00000,
0b01110,
0b10000,
0b01100,
0b10010,
0b01100,
0b00010,
0b11100
)),168:(4,0,4,(
0b0000,
0b0000,
0b1010,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000
)),169:(8,0,8,(
0b00000000,
0b00111000,
0b01000100,
0b10111010,
0b10100010,
0b10111010,
0b01000100,
0b00111000,
0b00000000
)),170:(6,0,6,(
0b000000,
0b000000,
0b011110,
0b110110,
0b011110,
0b000000,
0b000000,
0b000000,
0b000000
)),171:(8,0,8,(
0b00000000,
0b00000000,
0b00000000,
0b00110110,
0b01101100,
0b11011000,
0b01101100,
0b00110110,
0b00000000
)),172:(6,0,6,(
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b111110,
0b000010,
0b000010,
0b000000
)),173:(5,0,5,(
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b11110,
0b00000,
0b00000,
0b00000
)),174:(8,0,8,(
0b00000000,
0b00111000,
0b01000100,
0b10111010,
0b10110010,
0b10101010,
0b01000100,
0b00111000,
0b00000000
)),175:(6,0,6,(
0b000000,
0b000000,
0b111110,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000
)),176:(5,0,5,(
0b00000,
0b00000,
0b01100,
0b10010,
0b10010,
0b01100,
0b00000,
0b00000,
0b00000
)),177:(6,0,6,(
0b000000,
0b000000,
0b001000,
0b001000,
0b111110,
0b001000,
0b001000,
0b111110,
0b000000
)),178:(4,0,4,(
0b0000,
0b0000,
0b1100,
0b0010,
0b1100,
0b1110,
0b0000,
0b0000,
0b0000
)),179:(4,0,4,(
0b0000,
0b0000,
0b1110,
0b0100,
0b0010,
0b1110,
0b0000,
0b0000,
0b0000
)),180:(4,0,4,(
0b0000,
0b0000,
0b0110,
0b1000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000
)),181:(6,0,6,(
0b000000,
0b000000,
0b000000,
0b110110,
0b110110,
0b110110,
0b111110,
0b110000,
0b110000
)),182:(7,0,7,(
0b0000000,
0b0000000,
0b0111110,
0b1110110,
0b1110110,
0b0110110,
0b0010110,
0b0010110,
0b0000000
)),183:(3,0,3,(
0b000,
0b000,
0b000,
0b000,
0b110,
0b000,
0b000,
0b000,
0b000
)),184:(4,0,4,(
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0100,
0b0010,
0b1100
)),185:(2,0,2,(
0b00,
0b10,
0b10,
0b10,
0b00,
0b00,
0b00,
0b00,
0b00
)),186:(6,0,6,(
0b000000,
0b000000,
0b011100,
0b110110,
0b011100,
0b000000,
0b111110,
0b000000,
0b000000
)),187:(8,0,8,(
0b00000000,
0b00000000,
0b00000000,
0b11011000,
0b01101100,
0b00110110,
0b01101100,
0b11011000,
0b00000000
)),188:(9,0,9,(
0b110000000,
0b110001100,
0b110011000,
0b110110000,
0b001100100,
0b011001100,
0b110011110,
0b000001100,
0b000000000
)),189:(9,0,9,(
0b110000000,
0b110001100,
0b110011000,
0b110110000,
0b001101110,
0b011000110,
0b110001100,
0b000001110,
0b000000000
)),190:(9,0,9,(
0b111000000,
0b011001100,
0b001011000,
0b111110000,
0b001100100,
0b011001100,
0b110011110,
0b000001100,
0b000000000
)),191:(6,0,6,(
0b000000,
0b000000,
0b000000,
0b001100,
0b000000,
0b011100,
0b110000,
0b011110,
0b000000
)),192:(6,0,6,(
0b010000,
0b001000,
0b000000,
0b011100,
0b110110,
0b111110,
0b110110,
0b110110,
0b000000
)),193:(6,0,6,(
0b000100,
0b001000,
0b000000,
0b011100,
0b110110,
0b111110,
0b110110,
0b110110,
0b000000
)),194:(6,0,6,(
0b001000,
0b010100,
0b000000,
0b011100,
0b110110,
0b111110,
0b110110,
0b110110,
0b000000
)),195:(6,0,6,(
0b011010,
0b101100,
0b000000,
0b011100,
0b110110,
0b111110,
0b110110,
0b110110,
0b000000
)),196:(6,0,6,(
0b000000,
0b010100,
0b000000,
0b011100,
0b110110,
0b111110,
0b110110,
0b110110,
0b000000
)),197:(6,0,6,(
0b001000,
0b010100,
0b001000,
0b011100,
0b110110,
0b111110,
0b110110,
0b110110,
0b000000
)),198:(8,0,8,(
0b00000000,
0b00000000,
0b00000000,
0b01111110,
0b11011000,
0b11111110,
0b11011000,
0b11011110,
0b00000000
)),199:(6,0,6,(
0b000000,
0b000000,
0b011100,
0b110110,
0b110000,
0b110000,
0b011110,
0b001100,
0b011000
)),200:(6,0,6,(
0b010000,
0b001000,
0b000000,
0b111110,
0b110000,
0b111100,
0b110000,
0b111110,
0b000000
)),201:(6,0,6,(
0b000100,
0b001000,
0b000000,
0b111110,
0b110000,
0b111100,
0b110000,
0b111110,
0b000000
)),202:(6,0,6,(
0b001000,
0b010100,
0b000000,
0b111110,
0b110000,
0b111100,
0b110000,
0b111110,
0b000000
)),203:(6,0,6,(
0b000000,
0b010100,
0b000000,
0b111110,
0b110000,
0b111100,
0b110000,
0b111110,
0b000000
)),204:(3,0,3,(
0b100,
0b010,
0b000,
0b110,
0b110,
0b110,
0b110,
0b110,
0b000
)),205:(3,0,3,(
0b010,
0b100,
0b000,
0b110,
0b110,
0b110,
0b110,
0b110,
0b000
)),206:(3,0,3,(
0b010,
0b101,
0b000,
0b110,
0b110,
0b110,
0b110,
0b110,
0b000
)),207:(3,0,3,(
0b000,
0b101,
0b000,
0b110,
0b110,
0b110,
0b110,
0b110,
0b000
)),208:(8,0,8,(
0b00000000,
0b00000000,
0b00000000,
0b01111100,
0b01100110,
0b11110110,
0b01100110,
0b01111100,
0b00000000
)),209:(7,0,7,(
0b0110100,
0b1011000,
0b0000000,
0b1100110,
0b1110110,
0b1111110,
0b1101110,
0b1100110,
0b0000000
)),210:(6,0,6,(
0b010000,
0b001000,
0b000000,
0b011100,
0b110110,
0b110110,
0b110110,
0b011100,
0b000000
)),211:(6,0,6,(
0b000100,
0b001000,
0b000000,
0b011100,
0b110110,
0b110110,
0b110110,
0b011100,
0b000000
)),212:(6,0,6,(
0b001000,
0b010100,
0b000000,
0b011100,
0b110110,
0b110110,
0b110110,
0b011100,
0b000000
)),213:(6,0,6,(
0b011010,
0b101100,
0b000000,
0b011100,
0b110110,
0b110110,
0b110110,
0b011100,
0b000000
)),214:(6,0,6,(
0b000000,
0b010100,
0b000000,
0b011100,
0b110110,
0b110110,
0b110110,
0b011100,
0b000000
)),215:(6,0,6,(
0b000000,
0b000000,
0b000000,
0b110110,
0b011100,
0b011100,
0b110110,
0b000000,
0b000000
)),216:(7,0,7,(
0b0000000,
0b0000000,
0b0011010,
0b0100100,
0b1101110,
0b1110110,
0b0100100,
0b1011000,
0b0000000
)),217:(6,0,6,(
0b010000,
0b001000,
0b000000,
0b110110,
0b110110,
0b110110,
0b110110,
0b011100,
0b000000
)),218:(6,0,6,(
0b000100,
0b001000,
0b000000,
0b110110,
0b110110,
0b110110,
0b110110,
0b011100,
0b000000
)),219:(6,0,6,(
0b001000,
0b010100,
0b000000,
0b110110,
0b110110,
0b110110,
0b110110,
0b011100,
0b000000
)),220:(6,0,6,(
0b000000,
0b010100,
0b000000,
0b110110,
0b110110,
0b110110,
0b110110,
0b011100,
0b000000
)),221:(6,0,6,(
0b000100,
0b001000,
0b000000,
0b110110,
0b110110,
0b011100,
0b001100,
0b011000,
0b000000
)),222:(6,0,6,(
0b000000,
0b000000,
0b110000,
0b111100,
0b110110,
0b110110,
0b111100,
0b110000,
0b110000
)),223:(7,0,7,(
0b0000000,
0b0000000,
0b0111000,
0b1100100,
0b1101000,
0b1101100,
0b1100010,
0b1111100,
0b0000000
)),224:(6,0,6,(
0b000000,
0b010000,
0b001000,
0b000000,
0b111100,
0b001110,
0b110110,
0b111110,
0b000000
)),225:(6,0,6,(
0b000000,
0b000100,
0b001000,
0b000000,
0b111100,
0b001110,
0b110110,
0b111110,
0b000000
)),226:(6,0,6,(
0b000000,
0b001000,
0b010100,
0b000000,
0b111100,
0b001110,
0b110110,
0b111110,
0b000000
)),227:(6,0,6,(
0b000000,
0b011010,
0b101100,
0b000000,
0b111100,
0b001110,
0b110110,
0b111110,
0b000000
)),228:(6,0,6,(
0b000000,
0b000000,
0b010100,
0b000000,
0b111100,
0b001110,
0b110110,
0b111110,
0b000000
)),229:(6,0,6,(
0b011000,
0b100100,
0b011000,
0b000000,
0b111100,
0b001110,
0b110110,
0b111110,
0b000000
)),230:(9,0,9,(
0b000000000,
0b000000000,
0b000000000,
0b000000000,
0b111101100,
0b001110110,
0b110111000,
0b111101110,
0b000000000
)),231:(5,0,5,(
0b00000,
0b00000,
0b00000,
0b01110,
0b11000,
0b11000,
0b01110,
0b00100,
0b01000
)),232:(6,0,6,(
0b000000,
0b001000,
0b000100,
0b000000,
0b011100,
0b110110,
0b111000,
0b011110,
0b000000
)),233:(6,0,6,(
0b000000,
0b000100,
0b001000,
0b000000,
0b011100,
0b110110,
0b111000,
0b011110,
0b000000
)),234:(6,0,6,(
0b000000,
0b001000,
0b010100,
0b000000,
0b011100,
0b110110,
0b111000,
0b011110,
0b000000
)),235:(6,0,6,(
0b000000,
0b000000,
0b010100,
0b000000,
0b011100,
0b110110,
0b111000,
0b011110,
0b000000
)),236:(3,0,3,(
0b000,
0b100,
0b010,
0b000,
0b110,
0b110,
0b110,
0b110,
0b000
)),237:(3,0,3,(
0b000,
0b010,
0b100,
0b000,
0b110,
0b110,
0b110,
0b110,
0b000
)),238:(3,0,3,(
0b000,
0b010,
0b101,
0b000,
0b110,
0b110,
0b110,
0b110,
0b000
)),239:(3,0,3,(
0b000,
0b000,
0b101,
0b000,
0b110,
0b110,
0b110,
0b110,
0b000
)),240:(6,0,6,(
0b000000,
0b000000,
0b110000,
0b001000,
0b011100,
0b110110,
0b110110,
0b011100,
0b000000
)),241:(6,0,6,(
0b000000,
0b011010,
0b101100,
0b000000,
0b111100,
0b110110,
0b110110,
0b110110,
0b000000
)),242:(6,0,6,(
0b000000,
0b001000,
0b000100,
0b000000,
0b011100,
0b110110,
0b110110,
0b011100,
0b000000
)),243:(6,0,6,(
0b000000,
0b000100,
0b001000,
0b000000,
0b011100,
0b110110,
0b110110,
0b011100,
0b000000
)),244:(6,0,6,(
0b000000,
0b001000,
0b010100,
0b000000,
0b011100,
0b110110,
0b110110,
0b011100,
0b000000
)),245:(6,0,6,(
0b000000,
0b011010,
0b101100,
0b000000,
0b011100,
0b110110,
0b110110,
0b011100,
0b000000
)),246:(6,0,6,(
0b000000,
0b000000,
0b010100,
0b000000,
0b011100,
0b110110,
0b110110,
0b011100,
0b000000
)),247:(7,0,7,(
0b0000000,
0b0000000,
0b0000000,
0b0011000,
0b0000000,
0b1111110,
0b0000000,
0b0011000,
0b0000000
)),248:(8,0,8,(
0b00000000,
0b00000000,
0b00000000,
0b00111010,
0b01101100,
0b01111100,
0b01101100,
0b10111000,
0b00000000
)),249:(6,0,6,(
0b000000,
0b010000,
0b001000,
0b000000,
0b110110,
0b110110,
0b110110,
0b011110,
0b000000
)),250:(6,0,6,(
0b000000,
0b000100,
0b001000,
0b000000,
0b110110,
0b110110,
0b110110,
0b011110,
0b000000
)),251:(6,0,6,(
0b000000,
0b001000,
0b010100,
0b000000,
0b110110,
0b110110,
0b110110,
0b011110,
0b000000
)),252:(6,0,6,(
0b000000,
0b000000,
0b010100,
0b000000,
0b110110,
0b110110,
0b110110,
0b011110,
0b000000
)),253:(6,0,6,(
0b000000,
0b000100,
0b001000,
0b000000,
0b110110,
0b110110,
0b011100,
0b001100,
0b011000
)),254:(6,0,6,(
0b000000,
0b000000,
0b000000,
0b110000,
0b111100,
0b110110,
0b110110,
0b111100,
0b110000
)),255:(6,0,6,(
0b000000,
0b000000,
0b010100,
0b000000,
0b110110,
0b110110,
0b011100,
0b001100,
0b011000
)),}
# generated by fontconv
#fontType 36864
#firstChar 9
#lastChar 255
#maxWidth 10
#kernMax 0
#nDescent 0
#fRectWidth 10
#fRectHeight 11
#ascent 9
#descent 2
#leading 0
#averageWidth 5.63
FONTS['architectlg'] = {
9:(2,0,2,(
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00
)),20:(9,0,9,(
0b011110000,
0b111111000,
0b100001000,
0b111111000,
0b011110010,
0b001100100,
0b001100000,
0b001101110,
0b011100000,
0b011100100,
0b001100010
)),21:(5,0,5,(
0b00000,
0b00100,
0b01000,
0b10000,
0b00000,
0b11010,
0b00000,
0b10000,
0b01000,
0b00100,
0b00000
)),22:(8,0,8,(
0b00000000,
0b00000000,
0b00000000,
0b00000100,
0b00001000,
0b00010000,
0b00100000,
0b11000000,
0b11000000,
0b00000000,
0b00000000
)),23:(8,0,8,(
0b00000000,
0b00010000,
0b00101000,
0b00101000,
0b00101000,
0b00010000,
0b00101000,
0b11000100,
0b11000010,
0b00000000,
0b00000000
)),24:(9,0,9,(
0b000000000,
0b000000000,
0b000000000,
0b000000000,
0b000000000,
0b000000000,
0b000000000,
0b000000000,
0b110110110,
0b000000000,
0b000000000
)),25:(5,0,5,(
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000
)),32:(2,0,2,(
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00
)),33:(2,0,2,(
0b00,
0b00,
0b10,
0b10,
0b10,
0b10,
0b10,
0b00,
0b10,
0b00,
0b00
)),34:(4,0,4,(
0b0000,
0b1010,
0b1010,
0b1010,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000
)),35:(9,0,9,(
0b000000000,
0b000000000,
0b000100100,
0b000100100,
0b011111110,
0b001001000,
0b111111100,
0b010010000,
0b010010000,
0b000000000,
0b000000000
)),36:(6,0,6,(
0b000000,
0b001000,
0b011100,
0b101010,
0b101000,
0b011100,
0b001010,
0b101010,
0b011100,
0b001000,
0b000000
)),37:(8,0,8,(
0b00000000,
0b00000000,
0b01000100,
0b10100100,
0b10101000,
0b01010100,
0b00101010,
0b01001010,
0b01000100,
0b00000000,
0b00000000
)),38:(7,0,7,(
0b0000000,
0b0000000,
0b0010000,
0b0101000,
0b0101000,
0b0010000,
0b0101010,
0b1000100,
0b0111010,
0b0000000,
0b0000000
)),39:(2,0,2,(
0b00,
0b10,
0b10,
0b10,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00
)),40:(4,0,4,(
0b0000,
0b0010,
0b0100,
0b1000,
0b1000,
0b1000,
0b1000,
0b1000,
0b0100,
0b0010,
0b0000
)),41:(4,0,4,(
0b0000,
0b1000,
0b0100,
0b0010,
0b0010,
0b0010,
0b0010,
0b0010,
0b0100,
0b1000,
0b0000
)),42:(6,0,6,(
0b000000,
0b010100,
0b001000,
0b111110,
0b001000,
0b010100,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000
)),43:(6,0,6,(
0b000000,
0b000000,
0b000000,
0b001000,
0b001000,
0b111110,
0b001000,
0b001000,
0b000000,
0b000000,
0b000000
)),44:(3,0,3,(
0b000,
0b000,
0b000,
0b000,
0b000,
0b000,
0b000,
0b000,
0b110,
0b010,
0b100
)),45:(5,0,5,(
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b11110,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000
)),46:(3,0,3,(
0b000,
0b000,
0b000,
0b000,
0b000,
0b000,
0b000,
0b000,
0b110,
0b000,
0b000
)),47:(5,0,5,(
0b00000,
0b00000,
0b00010,
0b00010,
0b00100,
0b00100,
0b01000,
0b01000,
0b10000,
0b00000,
0b00000
)),48:(6,0,6,(
0b000000,
0b000000,
0b011100,
0b100010,
0b100010,
0b101010,
0b100010,
0b100010,
0b011100,
0b000000,
0b000000
)),49:(6,0,6,(
0b000000,
0b000000,
0b001000,
0b011000,
0b001000,
0b001000,
0b001000,
0b001000,
0b011100,
0b000000,
0b000000
)),50:(6,0,6,(
0b000000,
0b000000,
0b111100,
0b000010,
0b000010,
0b011100,
0b100000,
0b100000,
0b111110,
0b000000,
0b000000
)),51:(6,0,6,(
0b000000,
0b000000,
0b111100,
0b000010,
0b000010,
0b001100,
0b000010,
0b000010,
0b111100,
0b000000,
0b000000
)),52:(6,0,6,(
0b000000,
0b000000,
0b100100,
0b100100,
0b100100,
0b111110,
0b000100,
0b000100,
0b000100,
0b000000,
0b000000
)),53:(6,0,6,(
0b000000,
0b000000,
0b111110,
0b100000,
0b100000,
0b111100,
0b000010,
0b000010,
0b111100,
0b000000,
0b000000
)),54:(6,0,6,(
0b000000,
0b000000,
0b011100,
0b100000,
0b100000,
0b111100,
0b100010,
0b100010,
0b011100,
0b000000,
0b000000
)),55:(6,0,6,(
0b000000,
0b000000,
0b111110,
0b000010,
0b000010,
0b000100,
0b001000,
0b001000,
0b001000,
0b000000,
0b000000
)),56:(6,0,6,(
0b000000,
0b000000,
0b011100,
0b100010,
0b100010,
0b011100,
0b100010,
0b100010,
0b011100,
0b000000,
0b000000
)),57:(6,0,6,(
0b000000,
0b000000,
0b011100,
0b100010,
0b100010,
0b011110,
0b000010,
0b000010,
0b011100,
0b000000,
0b000000
)),58:(3,0,3,(
0b000,
0b000,
0b000,
0b000,
0b110,
0b000,
0b000,
0b000,
0b110,
0b000,
0b000
)),59:(3,0,3,(
0b000,
0b000,
0b000,
0b000,
0b110,
0b000,
0b000,
0b000,
0b110,
0b010,
0b100
)),60:(6,0,6,(
0b000000,
0b000000,
0b000010,
0b000100,
0b001000,
0b010000,
0b001000,
0b000100,
0b000010,
0b000000,
0b000000
)),61:(6,0,6,(
0b000000,
0b000000,
0b000000,
0b000000,
0b111110,
0b000000,
0b111110,
0b000000,
0b000000,
0b000000,
0b000000
)),62:(6,0,6,(
0b000000,
0b000000,
0b010000,
0b001000,
0b000100,
0b000010,
0b000100,
0b001000,
0b010000,
0b000000,
0b000000
)),63:(6,0,6,(
0b000000,
0b000000,
0b011100,
0b100010,
0b100010,
0b000100,
0b001000,
0b000000,
0b001000,
0b000000,
0b000000
)),64:(9,0,9,(
0b000000000,
0b000000000,
0b001111000,
0b010000100,
0b100111010,
0b101001010,
0b101001010,
0b100110100,
0b010000000,
0b001111000,
0b000000000
)),65:(6,0,6,(
0b000000,
0b000000,
0b011100,
0b100010,
0b100010,
0b111110,
0b100010,
0b100010,
0b100010,
0b000000,
0b000000
)),66:(6,0,6,(
0b000000,
0b000000,
0b111100,
0b100010,
0b100010,
0b111100,
0b100010,
0b100010,
0b111100,
0b000000,
0b000000
)),67:(6,0,6,(
0b000000,
0b000000,
0b011110,
0b100000,
0b100000,
0b100000,
0b100000,
0b100000,
0b011110,
0b000000,
0b000000
)),68:(6,0,6,(
0b000000,
0b000000,
0b111100,
0b100010,
0b100010,
0b100010,
0b100010,
0b100010,
0b111100,
0b000000,
0b000000
)),69:(6,0,6,(
0b000000,
0b000000,
0b111110,
0b100000,
0b100000,
0b111100,
0b100000,
0b100000,
0b111110,
0b000000,
0b000000
)),70:(6,0,6,(
0b000000,
0b000000,
0b111110,
0b100000,
0b100000,
0b111100,
0b100000,
0b100000,
0b100000,
0b000000,
0b000000
)),71:(6,0,6,(
0b000000,
0b000000,
0b011110,
0b100000,
0b100000,
0b101110,
0b100010,
0b100010,
0b011110,
0b000000,
0b000000
)),72:(6,0,6,(
0b000000,
0b000000,
0b100010,
0b100010,
0b100010,
0b111110,
0b100010,
0b100010,
0b100010,
0b000000,
0b000000
)),73:(2,0,2,(
0b00,
0b00,
0b10,
0b10,
0b10,
0b10,
0b10,
0b10,
0b10,
0b00,
0b00
)),74:(5,0,5,(
0b00000,
0b00000,
0b00010,
0b00010,
0b00010,
0b00010,
0b00010,
0b00010,
0b11100,
0b00000,
0b00000
)),75:(6,0,6,(
0b000000,
0b000000,
0b100010,
0b100100,
0b101000,
0b110000,
0b101000,
0b100100,
0b100010,
0b000000,
0b000000
)),76:(6,0,6,(
0b000000,
0b000000,
0b100000,
0b100000,
0b100000,
0b100000,
0b100000,
0b100000,
0b111110,
0b000000,
0b000000
)),77:(8,0,8,(
0b00000000,
0b00000000,
0b11000110,
0b11000110,
0b10101010,
0b10101010,
0b10010010,
0b10010010,
0b10000010,
0b00000000,
0b00000000
)),78:(6,0,6,(
0b000000,
0b000000,
0b100010,
0b100010,
0b110010,
0b101010,
0b100110,
0b100010,
0b100010,
0b000000,
0b000000
)),79:(6,0,6,(
0b000000,
0b000000,
0b011100,
0b100010,
0b100010,
0b100010,
0b100010,
0b100010,
0b011100,
0b000000,
0b000000
)),80:(6,0,6,(
0b000000,
0b000000,
0b111100,
0b100010,
0b100010,
0b111100,
0b100000,
0b100000,
0b100000,
0b000000,
0b000000
)),81:(6,0,6,(
0b000000,
0b000000,
0b011100,
0b100010,
0b100010,
0b100010,
0b100010,
0b101010,
0b011100,
0b000100,
0b000000
)),82:(6,0,6,(
0b000000,
0b000000,
0b111100,
0b100010,
0b100010,
0b111100,
0b101000,
0b100100,
0b100010,
0b000000,
0b000000
)),83:(6,0,6,(
0b000000,
0b000000,
0b011110,
0b100000,
0b100000,
0b011100,
0b000010,
0b000010,
0b111100,
0b000000,
0b000000
)),84:(6,0,6,(
0b000000,
0b000000,
0b111110,
0b001000,
0b001000,
0b001000,
0b001000,
0b001000,
0b001000,
0b000000,
0b000000
)),85:(6,0,6,(
0b000000,
0b000000,
0b100010,
0b100010,
0b100010,
0b100010,
0b100010,
0b100010,
0b011100,
0b000000,
0b000000
)),86:(6,0,6,(
0b000000,
0b000000,
0b100010,
0b100010,
0b100010,
0b010100,
0b010100,
0b001000,
0b001000,
0b000000,
0b000000
)),87:(8,0,8,(
0b00000000,
0b00000000,
0b10000010,
0b10010010,
0b10010010,
0b10101010,
0b10101010,
0b11000110,
0b11000110,
0b00000000,
0b00000000
)),88:(6,0,6,(
0b000000,
0b000000,
0b100010,
0b100010,
0b010100,
0b001000,
0b010100,
0b100010,
0b100010,
0b000000,
0b000000
)),89:(6,0,6,(
0b000000,
0b000000,
0b100010,
0b100010,
0b010100,
0b010100,
0b001000,
0b001000,
0b001000,
0b000000,
0b000000
)),90:(6,0,6,(
0b000000,
0b000000,
0b111110,
0b000010,
0b000100,
0b001000,
0b010000,
0b100000,
0b111110,
0b000000,
0b000000
)),91:(4,0,4,(
0b0000,
0b1110,
0b1000,
0b1000,
0b1000,
0b1000,
0b1000,
0b1000,
0b1000,
0b1110,
0b0000
)),92:(5,0,5,(
0b00000,
0b00000,
0b10000,
0b10000,
0b01000,
0b01000,
0b00100,
0b00100,
0b00010,
0b00000,
0b00000
)),93:(4,0,4,(
0b0000,
0b1110,
0b0010,
0b0010,
0b0010,
0b0010,
0b0010,
0b0010,
0b0010,
0b1110,
0b0000
)),94:(6,0,6,(
0b000000,
0b000000,
0b001000,
0b010100,
0b100010,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000
)),95:(5,0,5,(
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b11111,
0b00000
)),96:(4,0,4,(
0b0000,
0b0000,
0b1100,
0b0010,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000
)),97:(6,0,6,(
0b000000,
0b000000,
0b000000,
0b000000,
0b011110,
0b100010,
0b100010,
0b100010,
0b011110,
0b000000,
0b000000
)),98:(6,0,6,(
0b000000,
0b000000,
0b100000,
0b100000,
0b111100,
0b100010,
0b100010,
0b100010,
0b111100,
0b000000,
0b000000
)),99:(5,0,5,(
0b00000,
0b00000,
0b00000,
0b00000,
0b01110,
0b10000,
0b10000,
0b10000,
0b01110,
0b00000,
0b00000
)),100:(6,0,6,(
0b000000,
0b000000,
0b000010,
0b000010,
0b011110,
0b100010,
0b100010,
0b100010,
0b011110,
0b000000,
0b000000
)),101:(6,0,6,(
0b000000,
0b000000,
0b000000,
0b000000,
0b011100,
0b100010,
0b111110,
0b100000,
0b011110,
0b000000,
0b000000
)),102:(4,0,4,(
0b0000,
0b0000,
0b0011,
0b0100,
0b1110,
0b0100,
0b0100,
0b0100,
0b0100,
0b0000,
0b0000
)),103:(6,0,6,(
0b000000,
0b000000,
0b000000,
0b000000,
0b011110,
0b100010,
0b100010,
0b100010,
0b011110,
0b000010,
0b111100
)),104:(6,0,6,(
0b000000,
0b000000,
0b100000,
0b100000,
0b111100,
0b100010,
0b100010,
0b100010,
0b100010,
0b000000,
0b000000
)),105:(2,0,2,(
0b00,
0b00,
0b10,
0b00,
0b10,
0b10,
0b10,
0b10,
0b10,
0b00,
0b00
)),106:(4,0,4,(
0b0000,
0b0000,
0b0010,
0b0000,
0b0010,
0b0010,
0b0010,
0b0010,
0b0010,
0b0010,
0b1100
)),107:(5,0,5,(
0b00000,
0b00000,
0b10000,
0b10000,
0b10010,
0b10100,
0b11000,
0b10100,
0b10010,
0b00000,
0b00000
)),108:(2,0,2,(
0b00,
0b00,
0b10,
0b10,
0b10,
0b10,
0b10,
0b10,
0b10,
0b00,
0b00
)),109:(8,0,8,(
0b00000000,
0b00000000,
0b00000000,
0b00000000,
0b11101100,
0b10010010,
0b10010010,
0b10010010,
0b10010010,
0b00000000,
0b00000000
)),110:(6,0,6,(
0b000000,
0b000000,
0b000000,
0b000000,
0b111100,
0b100010,
0b100010,
0b100010,
0b100010,
0b000000,
0b000000
)),111:(6,0,6,(
0b000000,
0b000000,
0b000000,
0b000000,
0b011100,
0b100010,
0b100010,
0b100010,
0b011100,
0b000000,
0b000000
)),112:(6,0,6,(
0b000000,
0b000000,
0b000000,
0b000000,
0b111100,
0b100010,
0b100010,
0b100010,
0b111100,
0b100000,
0b100000
)),113:(6,0,6,(
0b000000,
0b000000,
0b000000,
0b000000,
0b011110,
0b100010,
0b100010,
0b100010,
0b011110,
0b000010,
0b000010
)),114:(5,0,5,(
0b00000,
0b00000,
0b00000,
0b00000,
0b10110,
0b11000,
0b10000,
0b10000,
0b10000,
0b00000,
0b00000
)),115:(6,0,6,(
0b000000,
0b000000,
0b000000,
0b000000,
0b011110,
0b100000,
0b111110,
0b000010,
0b111100,
0b000000,
0b000000
)),116:(5,0,5,(
0b00000,
0b00000,
0b01000,
0b01000,
0b11110,
0b01000,
0b01000,
0b01000,
0b00110,
0b00000,
0b00000
)),117:(6,0,6,(
0b000000,
0b000000,
0b000000,
0b000000,
0b100010,
0b100010,
0b100010,
0b100010,
0b011110,
0b000000,
0b000000
)),118:(6,0,6,(
0b000000,
0b000000,
0b000000,
0b000000,
0b100010,
0b100010,
0b100010,
0b010100,
0b001000,
0b000000,
0b000000
)),119:(8,0,8,(
0b00000000,
0b00000000,
0b00000000,
0b00000000,
0b10010010,
0b10010010,
0b10010010,
0b10010010,
0b01101100,
0b00000000,
0b00000000
)),120:(6,0,6,(
0b000000,
0b000000,
0b000000,
0b000000,
0b100010,
0b010100,
0b001000,
0b010100,
0b100010,
0b000000,
0b000000
)),121:(6,0,6,(
0b000000,
0b000000,
0b000000,
0b000000,
0b100010,
0b100010,
0b010100,
0b001100,
0b001000,
0b010000,
0b100000
)),122:(6,0,6,(
0b000000,
0b000000,
0b000000,
0b000000,
0b111110,
0b000100,
0b001000,
0b010000,
0b111110,
0b000000,
0b000000
)),123:(5,0,5,(
0b00000,
0b00110,
0b01000,
0b01000,
0b01000,
0b10000,
0b01000,
0b01000,
0b01000,
0b00110,
0b00000
)),124:(2,0,2,(
0b00,
0b10,
0b10,
0b10,
0b10,
0b10,
0b10,
0b10,
0b10,
0b10,
0b00
)),125:(5,0,5,(
0b00000,
0b11000,
0b00100,
0b00100,
0b00100,
0b00010,
0b00100,
0b00100,
0b00100,
0b11000,
0b00000
)),126:(7,0,7,(
0b0000000,
0b0000000,
0b0000000,
0b0000000,
0b0110010,
0b1011010,
0b1001100,
0b0000000,
0b0000000,
0b0000000,
0b0000000
)),128:(8,0,8,(
0b00000000,
0b00000000,
0b00011100,
0b00100010,
0b11111000,
0b01000000,
0b11110000,
0b00100010,
0b00011100,
0b00000000,
0b00000000
)),130:(3,0,3,(
0b000,
0b000,
0b000,
0b000,
0b000,
0b000,
0b000,
0b000,
0b110,
0b010,
0b100
)),131:(8,0,8,(
0b00000000,
0b00000000,
0b00000110,
0b00001000,
0b00111100,
0b00010000,
0b00010000,
0b00100000,
0b00100000,
0b11000000,
0b00000000
)),132:(5,0,5,(
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b11110,
0b01010,
0b10100
)),133:(9,0,9,(
0b000000000,
0b000000000,
0b000000000,
0b000000000,
0b000000000,
0b000000000,
0b000000000,
0b000000000,
0b110110110,
0b000000000,
0b000000000
)),134:(6,0,6,(
0b000000,
0b000000,
0b001000,
0b001000,
0b111110,
0b001000,
0b001000,
0b001000,
0b001000,
0b001000,
0b001000
)),135:(6,0,6,(
0b000000,
0b000000,
0b001000,
0b001000,
0b111110,
0b001000,
0b001000,
0b001000,
0b111110,
0b001000,
0b001000
)),136:(4,0,4,(
0b0000,
0b0000,
0b0100,
0b1010,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000
)),137:(10,0,10,(
0b0000000000,
0b0000000000,
0b0100010000,
0b1010010000,
0b1010100000,
0b0101010100,
0b0010101010,
0b0100101010,
0b0100010100,
0b0000000000,
0b0000000000
)),138:(5,0,5,(
0b01010,
0b00100,
0b00000,
0b01110,
0b10000,
0b01100,
0b00010,
0b00010,
0b11100,
0b00000,
0b00000
)),139:(4,0,4,(
0b0000,
0b0000,
0b0000,
0b0000,
0b0010,
0b0100,
0b1000,
0b0100,
0b0010,
0b0000,
0b0000
)),140:(8,0,8,(
0b00000000,
0b00000000,
0b00111110,
0b01001000,
0b10001000,
0b10001110,
0b10001000,
0b01001000,
0b00111110,
0b00000000,
0b00000000
)),141:(10,0,10,(
0b0000100000,
0b0001110000,
0b0011011000,
0b0110001100,
0b1100000110,
0b1100000110,
0b0110001100,
0b0011011000,
0b0001110000,
0b0000100000,
0b0000000000
)),142:(10,0,10,(
0b0001110000,
0b0011111000,
0b0011111000,
0b0101110100,
0b1111111110,
0b1111111110,
0b1111111110,
0b0110101100,
0b0001110000,
0b0011111000,
0b0000000000
)),143:(10,0,10,(
0b0000000000,
0b0111011100,
0b1101110110,
0b1000100010,
0b1000000010,
0b1100000110,
0b0110001100,
0b0011011000,
0b0001110000,
0b0000100000,
0b0000000000
)),144:(10,0,10,(
0b0000100000,
0b0001110000,
0b0011111000,
0b0111111100,
0b1111111110,
0b1111111110,
0b1111111110,
0b0110101100,
0b0001110000,
0b0011111000,
0b0000000000
)),145:(3,0,3,(
0b000,
0b010,
0b100,
0b110,
0b000,
0b000,
0b000,
0b000,
0b000,
0b000,
0b000
)),146:(3,0,3,(
0b000,
0b110,
0b010,
0b100,
0b000,
0b000,
0b000,
0b000,
0b000,
0b000,
0b000
)),147:(5,0,5,(
0b00000,
0b01010,
0b10100,
0b11110,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000
)),148:(5,0,5,(
0b00000,
0b11110,
0b01010,
0b10100,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000
)),149:(4,0,4,(
0b0000,
0b0000,
0b0000,
0b0000,
0b1110,
0b1110,
0b1110,
0b0000,
0b0000,
0b0000,
0b0000
)),150:(4,0,4,(
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b1111,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000
)),151:(7,0,7,(
0b0000000,
0b0000000,
0b0000000,
0b0000000,
0b0000000,
0b1111111,
0b0000000,
0b0000000,
0b0000000,
0b0000000,
0b0000000
)),152:(7,0,7,(
0b0000000,
0b0000000,
0b0000000,
0b0110010,
0b1011010,
0b1001100,
0b0000000,
0b0000000,
0b0000000,
0b0000000,
0b0000000
)),153:(10,0,10,(
0b0000000000,
0b0000000000,
0b1110100010,
0b0100110110,
0b0100101010,
0b0000000000,
0b0000000000,
0b0000000000,
0b0000000000,
0b0000000000,
0b0000000000
)),154:(4,0,4,(
0b0000,
0b1010,
0b0100,
0b0000,
0b0110,
0b1000,
0b0100,
0b0010,
0b1100,
0b0000,
0b0000
)),155:(4,0,4,(
0b0000,
0b0000,
0b0000,
0b0000,
0b1000,
0b0100,
0b0010,
0b0100,
0b1000,
0b0000,
0b0000
)),156:(8,0,8,(
0b00000000,
0b00000000,
0b00000000,
0b00000000,
0b01101100,
0b10010010,
0b10011110,
0b10010000,
0b01101110,
0b00000000,
0b00000000
)),157:(8,0,8,(
0b00000000,
0b00000000,
0b00000000,
0b00000100,
0b00001000,
0b00010000,
0b00100000,
0b11000000,
0b11000000,
0b00000000,
0b00000000
)),158:(8,0,8,(
0b00000000,
0b00010000,
0b00101000,
0b00101000,
0b00101000,
0b00010000,
0b00101000,
0b11000100,
0b11000010,
0b00000000,
0b00000000
)),159:(6,0,6,(
0b000000,
0b010100,
0b000000,
0b100010,
0b100010,
0b010100,
0b001000,
0b001000,
0b001000,
0b000000,
0b000000
)),160:(2,0,2,(
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00
)),161:(2,0,2,(
0b00,
0b00,
0b00,
0b00,
0b10,
0b00,
0b10,
0b10,
0b10,
0b10,
0b10
)),162:(6,0,6,(
0b000000,
0b000000,
0b001000,
0b011100,
0b101010,
0b101000,
0b101000,
0b101010,
0b011100,
0b001000,
0b000000
)),163:(6,0,6,(
0b000000,
0b000000,
0b001100,
0b010000,
0b010000,
0b111000,
0b010000,
0b010000,
0b111000,
0b000110,
0b000000
)),164:(8,0,8,(
0b00000000,
0b00000000,
0b10010010,
0b01101100,
0b01000100,
0b10000010,
0b01000100,
0b01101100,
0b10010010,
0b00000000,
0b00000000
)),165:(6,0,6,(
0b000000,
0b000000,
0b100010,
0b010100,
0b111110,
0b001000,
0b111110,
0b001000,
0b001000,
0b000000,
0b000000
)),166:(2,0,2,(
0b00,
0b00,
0b10,
0b10,
0b10,
0b10,
0b00,
0b10,
0b10,
0b10,
0b10
)),167:(5,0,5,(
0b00000,
0b01100,
0b10010,
0b01000,
0b10100,
0b10010,
0b01010,
0b00100,
0b10010,
0b01100,
0b00000
)),168:(4,0,4,(
0b0000,
0b0000,
0b0000,
0b1010,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000
)),169:(8,0,8,(
0b00000000,
0b00000000,
0b00000000,
0b00111000,
0b01000100,
0b10111010,
0b10100010,
0b10111010,
0b01000100,
0b00111000,
0b00000000
)),170:(5,0,5,(
0b00000,
0b00000,
0b01110,
0b10010,
0b01110,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000
)),171:(6,0,6,(
0b000000,
0b000000,
0b000000,
0b000000,
0b001010,
0b010100,
0b101000,
0b010100,
0b001010,
0b000000,
0b000000
)),172:(6,0,6,(
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b111110,
0b000010,
0b000010,
0b000000,
0b000000,
0b000000
)),173:(4,0,4,(
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b1110,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000
)),174:(8,0,8,(
0b00000000,
0b00000000,
0b00000000,
0b00111000,
0b01000100,
0b10111010,
0b10110010,
0b10101010,
0b01000100,
0b00111000,
0b00000000
)),175:(6,0,6,(
0b000000,
0b111110,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000
)),176:(5,0,5,(
0b00000,
0b01100,
0b10010,
0b10010,
0b01100,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000
)),177:(6,0,6,(
0b000000,
0b000000,
0b001000,
0b001000,
0b111110,
0b001000,
0b001000,
0b111110,
0b000000,
0b000000,
0b000000
)),178:(4,0,4,(
0b0000,
0b0000,
0b1100,
0b0010,
0b0100,
0b1110,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000
)),179:(4,0,4,(
0b0000,
0b0000,
0b1110,
0b0100,
0b0010,
0b1110,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000
)),180:(3,0,3,(
0b000,
0b010,
0b100,
0b000,
0b000,
0b000,
0b000,
0b000,
0b000,
0b000,
0b000
)),181:(5,0,5,(
0b00000,
0b00000,
0b00000,
0b00000,
0b10010,
0b10010,
0b10010,
0b10010,
0b11110,
0b10000,
0b10000
)),182:(6,0,6,(
0b000000,
0b000000,
0b011110,
0b111010,
0b111010,
0b011010,
0b001010,
0b001010,
0b001010,
0b000000,
0b000000
)),183:(2,0,2,(
0b00,
0b00,
0b00,
0b00,
0b00,
0b10,
0b00,
0b00,
0b00,
0b00,
0b00
)),184:(4,0,4,(
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0100,
0b0010,
0b1100
)),185:(2,0,2,(
0b00,
0b00,
0b10,
0b10,
0b10,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00
)),186:(5,0,5,(
0b00000,
0b00000,
0b01100,
0b10010,
0b01100,
0b00000,
0b11110,
0b00000,
0b00000,
0b00000,
0b00000
)),187:(6,0,6,(
0b000000,
0b000000,
0b000000,
0b000000,
0b101000,
0b010100,
0b001010,
0b010100,
0b101000,
0b000000,
0b000000
)),188:(8,0,8,(
0b00000000,
0b10000000,
0b10000100,
0b10001000,
0b10010000,
0b00100100,
0b01001100,
0b10011110,
0b00000100,
0b00000000,
0b00000000
)),189:(8,0,8,(
0b00000000,
0b10000000,
0b10000100,
0b10001000,
0b10010000,
0b00101110,
0b01000010,
0b10000100,
0b00001110,
0b00000000,
0b00000000
)),190:(8,0,8,(
0b00000000,
0b11100000,
0b01000010,
0b00100100,
0b11101000,
0b00010010,
0b00100110,
0b01001110,
0b00000010,
0b00000000,
0b00000000
)),191:(6,0,6,(
0b000000,
0b000000,
0b001000,
0b000000,
0b001000,
0b010000,
0b100010,
0b100010,
0b011100,
0b000000,
0b000000
)),192:(6,0,6,(
0b010000,
0b001000,
0b000000,
0b011100,
0b100010,
0b100010,
0b111110,
0b100010,
0b100010,
0b000000,
0b000000
)),193:(6,0,6,(
0b000100,
0b001000,
0b000000,
0b011100,
0b100010,
0b100010,
0b111110,
0b100010,
0b100010,
0b000000,
0b000000
)),194:(6,0,6,(
0b001000,
0b010100,
0b000000,
0b011100,
0b100010,
0b100010,
0b111110,
0b100010,
0b100010,
0b000000,
0b000000
)),195:(6,0,6,(
0b001010,
0b010100,
0b000000,
0b011100,
0b100010,
0b100010,
0b111110,
0b100010,
0b100010,
0b000000,
0b000000
)),196:(6,0,6,(
0b000000,
0b010100,
0b000000,
0b011100,
0b100010,
0b100010,
0b111110,
0b100010,
0b100010,
0b000000,
0b000000
)),197:(6,0,6,(
0b001000,
0b010100,
0b001000,
0b011100,
0b100010,
0b100010,
0b111110,
0b100010,
0b100010,
0b000000,
0b000000
)),198:(7,0,7,(
0b0000000,
0b0000000,
0b0111110,
0b1001000,
0b1001000,
0b1111110,
0b1001000,
0b1001000,
0b1001110,
0b0000000,
0b0000000
)),199:(5,0,5,(
0b00000,
0b00000,
0b00110,
0b01000,
0b10000,
0b10000,
0b10000,
0b01000,
0b00110,
0b00100,
0b01000
)),200:(5,0,5,(
0b01000,
0b00100,
0b00000,
0b11110,
0b10000,
0b11110,
0b10000,
0b10000,
0b11110,
0b00000,
0b00000
)),201:(5,0,5,(
0b00100,
0b01000,
0b00000,
0b11110,
0b10000,
0b11110,
0b10000,
0b10000,
0b11110,
0b00000,
0b00000
)),202:(5,0,5,(
0b00100,
0b01010,
0b00000,
0b11110,
0b10000,
0b11110,
0b10000,
0b10000,
0b11110,
0b00000,
0b00000
)),203:(5,0,5,(
0b00000,
0b01010,
0b00000,
0b11110,
0b10000,
0b11110,
0b10000,
0b10000,
0b11110,
0b00000,
0b00000
)),204:(3,0,3,(
0b100,
0b010,
0b000,
0b010,
0b010,
0b010,
0b010,
0b010,
0b010,
0b000,
0b000
)),205:(2,0,2,(
0b01,
0b10,
0b00,
0b10,
0b10,
0b10,
0b10,
0b10,
0b10,
0b00,
0b00
)),206:(3,0,3,(
0b010,
0b101,
0b000,
0b010,
0b010,
0b010,
0b010,
0b010,
0b010,
0b000,
0b000
)),207:(3,0,3,(
0b101,
0b000,
0b000,
0b010,
0b010,
0b010,
0b010,
0b010,
0b010,
0b000,
0b000
)),208:(7,0,7,(
0b0000000,
0b0000000,
0b0111000,
0b0100100,
0b0100010,
0b1110010,
0b0100010,
0b0100100,
0b0111000,
0b0000000,
0b0000000
)),209:(6,0,6,(
0b001010,
0b010100,
0b000000,
0b100010,
0b110010,
0b101010,
0b101010,
0b100110,
0b100010,
0b000000,
0b000000
)),210:(6,0,6,(
0b010000,
0b001000,
0b000000,
0b011100,
0b100010,
0b100010,
0b100010,
0b100010,
0b011100,
0b000000,
0b000000
)),211:(6,0,6,(
0b000100,
0b001000,
0b000000,
0b011100,
0b100010,
0b100010,
0b100010,
0b100010,
0b011100,
0b000000,
0b000000
)),212:(6,0,6,(
0b001000,
0b010100,
0b000000,
0b011100,
0b100010,
0b100010,
0b100010,
0b100010,
0b011100,
0b000000,
0b000000
)),213:(6,0,6,(
0b001010,
0b010100,
0b000000,
0b011100,
0b100010,
0b100010,
0b100010,
0b100010,
0b011100,
0b000000,
0b000000
)),214:(6,0,6,(
0b000000,
0b010100,
0b000000,
0b011100,
0b100010,
0b100010,
0b100010,
0b100010,
0b011100,
0b000000,
0b000000
)),215:(5,0,5,(
0b00000,
0b00000,
0b00000,
0b00000,
0b10010,
0b01100,
0b01100,
0b10010,
0b00000,
0b00000,
0b00000
)),216:(8,0,8,(
0b00000000,
0b00000000,
0b00111010,
0b01000100,
0b10001010,
0b10010010,
0b10100010,
0b01000100,
0b10111000,
0b00000000,
0b00000000
)),217:(6,0,6,(
0b010000,
0b001000,
0b000000,
0b100010,
0b100010,
0b100010,
0b100010,
0b100010,
0b011100,
0b000000,
0b000000
)),218:(6,0,6,(
0b000100,
0b001000,
0b000000,
0b100010,
0b100010,
0b100010,
0b100010,
0b100010,
0b011100,
0b000000,
0b000000
)),219:(6,0,6,(
0b001000,
0b010100,
0b000000,
0b100010,
0b100010,
0b100010,
0b100010,
0b100010,
0b011100,
0b000000,
0b000000
)),220:(6,0,6,(
0b000000,
0b010100,
0b000000,
0b100010,
0b100010,
0b100010,
0b100010,
0b100010,
0b011100,
0b000000,
0b000000
)),221:(6,0,6,(
0b000100,
0b001000,
0b000000,
0b100010,
0b100010,
0b011100,
0b001000,
0b001000,
0b001000,
0b000000,
0b000000
)),222:(6,0,6,(
0b000000,
0b000000,
0b100000,
0b111100,
0b100010,
0b100010,
0b100010,
0b111100,
0b100000,
0b000000,
0b000000
)),223:(6,0,6,(
0b000000,
0b000000,
0b011000,
0b100100,
0b100100,
0b101100,
0b100010,
0b100010,
0b101100,
0b000000,
0b000000
)),224:(6,0,6,(
0b000000,
0b001000,
0b000100,
0b000000,
0b011110,
0b100010,
0b100010,
0b100010,
0b011110,
0b000000,
0b000000
)),225:(6,0,6,(
0b000000,
0b000100,
0b001000,
0b000000,
0b011110,
0b100010,
0b100010,
0b100010,
0b011110,
0b000000,
0b000000
)),226:(6,0,6,(
0b000000,
0b001000,
0b010100,
0b000000,
0b011110,
0b100010,
0b100010,
0b100010,
0b011110,
0b000000,
0b000000
)),227:(6,0,6,(
0b000000,
0b001010,
0b010100,
0b000000,
0b011110,
0b100010,
0b100010,
0b100010,
0b011110,
0b000000,
0b000000
)),228:(6,0,6,(
0b000000,
0b000000,
0b010100,
0b000000,
0b011110,
0b100010,
0b100010,
0b100010,
0b011110,
0b000000,
0b000000
)),229:(6,0,6,(
0b001000,
0b010100,
0b001000,
0b000000,
0b011110,
0b100010,
0b100010,
0b100010,
0b011110,
0b000000,
0b000000
)),230:(8,0,8,(
0b00000000,
0b00000000,
0b00000000,
0b00000000,
0b01101100,
0b00010010,
0b01111110,
0b10010000,
0b01111110,
0b00000000,
0b00000000
)),231:(4,0,4,(
0b0000,
0b0000,
0b0000,
0b0000,
0b0110,
0b1000,
0b1000,
0b1000,
0b0110,
0b0100,
0b1000
)),232:(6,0,6,(
0b000000,
0b010000,
0b001000,
0b000000,
0b011100,
0b100010,
0b111110,
0b100000,
0b011110,
0b000000,
0b000000
)),233:(6,0,6,(
0b000000,
0b000100,
0b001000,
0b000000,
0b011100,
0b100010,
0b111110,
0b100000,
0b011110,
0b000000,
0b000000
)),234:(6,0,6,(
0b000000,
0b001000,
0b010100,
0b000000,
0b011100,
0b100010,
0b111110,
0b100000,
0b011110,
0b000000,
0b000000
)),235:(6,0,6,(
0b000000,
0b000000,
0b010100,
0b000000,
0b011100,
0b100010,
0b111110,
0b100000,
0b011110,
0b000000,
0b000000
)),236:(3,0,3,(
0b000,
0b100,
0b010,
0b000,
0b010,
0b010,
0b010,
0b010,
0b010,
0b000,
0b000
)),237:(2,0,2,(
0b00,
0b01,
0b10,
0b00,
0b10,
0b10,
0b10,
0b10,
0b10,
0b00,
0b00
)),238:(3,0,3,(
0b000,
0b010,
0b101,
0b000,
0b010,
0b010,
0b010,
0b010,
0b010,
0b000,
0b000
)),239:(3,0,3,(
0b000,
0b101,
0b000,
0b000,
0b010,
0b010,
0b010,
0b010,
0b010,
0b000,
0b000
)),240:(5,0,5,(
0b00000,
0b00000,
0b11000,
0b11000,
0b00100,
0b01100,
0b10010,
0b10010,
0b01100,
0b00000,
0b00000
)),241:(6,0,6,(
0b000000,
0b001010,
0b010100,
0b000000,
0b111100,
0b100010,
0b100010,
0b100010,
0b100010,
0b000000,
0b000000
)),242:(6,0,6,(
0b000000,
0b010000,
0b001000,
0b000000,
0b011100,
0b100010,
0b100010,
0b100010,
0b011100,
0b000000,
0b000000
)),243:(6,0,6,(
0b000000,
0b000100,
0b001000,
0b000000,
0b011100,
0b100010,
0b100010,
0b100010,
0b011100,
0b000000,
0b000000
)),244:(6,0,6,(
0b000000,
0b001000,
0b010100,
0b000000,
0b011100,
0b100010,
0b100010,
0b100010,
0b011100,
0b000000,
0b000000
)),245:(6,0,6,(
0b000000,
0b001010,
0b010100,
0b000000,
0b011100,
0b100010,
0b100010,
0b100010,
0b011100,
0b000000,
0b000000
)),246:(6,0,6,(
0b000000,
0b000000,
0b010100,
0b000000,
0b011100,
0b100010,
0b100010,
0b100010,
0b011100,
0b000000,
0b000000
)),247:(6,0,6,(
0b000000,
0b000000,
0b000000,
0b001000,
0b000000,
0b111110,
0b000000,
0b001000,
0b000000,
0b000000,
0b000000
)),248:(7,0,7,(
0b0000000,
0b0000000,
0b0000000,
0b0000000,
0b0011010,
0b0101100,
0b0110100,
0b0100100,
0b1011000,
0b0000000,
0b0000000
)),249:(6,0,6,(
0b000000,
0b010000,
0b001000,
0b000000,
0b100010,
0b100010,
0b100010,
0b100010,
0b011110,
0b000000,
0b000000
)),250:(6,0,6,(
0b000000,
0b000100,
0b001000,
0b000000,
0b100010,
0b100010,
0b100010,
0b100010,
0b011110,
0b000000,
0b000000
)),251:(6,0,6,(
0b000000,
0b001000,
0b010100,
0b000000,
0b100010,
0b100010,
0b100010,
0b100010,
0b011110,
0b000000,
0b000000
)),252:(6,0,6,(
0b000000,
0b000000,
0b010100,
0b000000,
0b100010,
0b100010,
0b100010,
0b100010,
0b011110,
0b000000,
0b000000
)),253:(6,0,6,(
0b000000,
0b000100,
0b001000,
0b000000,
0b100010,
0b100010,
0b010100,
0b001100,
0b001000,
0b010000,
0b100000
)),254:(5,0,5,(
0b00000,
0b00000,
0b10000,
0b10000,
0b11100,
0b10010,
0b10010,
0b10010,
0b11100,
0b10000,
0b10000
)),255:(6,0,6,(
0b000000,
0b000000,
0b010100,
0b000000,
0b100010,
0b100010,
0b010100,
0b001100,
0b001000,
0b010000,
0b100000
)),}
# generated by fontconv
#fontType 36864
#firstChar 9
#lastChar 255
#maxWidth 10
#kernMax 1
#nDescent 0
#fRectWidth 10
#fRectHeight 11
#ascent 9
#descent 2
#leading 0
#averageWidth 5.15
FONTS['architectsm'] = {
9:(2,0,2,(
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00
)),20:(9,0,9,(
0b011110000,
0b111111000,
0b100001000,
0b111111000,
0b011110010,
0b001100100,
0b001100000,
0b001101110,
0b011100000,
0b011100100,
0b001100010
)),21:(5,0,5,(
0b00000,
0b00100,
0b01000,
0b10000,
0b00000,
0b11010,
0b00000,
0b10000,
0b01000,
0b00100,
0b00000
)),22:(7,0,7,(
0b0000000,
0b0000000,
0b0000000,
0b0000010,
0b0000100,
0b0001000,
0b0010000,
0b1100000,
0b1100000,
0b0000000,
0b0000000
)),23:(7,0,7,(
0b0000000,
0b0001000,
0b0010100,
0b0010100,
0b0010100,
0b0001000,
0b0010100,
0b1100010,
0b1100010,
0b0000000,
0b0000000
)),24:(9,0,9,(
0b000000000,
0b000000000,
0b000000000,
0b000000000,
0b000000000,
0b000000000,
0b000000000,
0b000000000,
0b110110110,
0b000000000,
0b000000000
)),25:(5,0,5,(
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000
)),32:(2,0,2,(
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00
)),33:(2,0,2,(
0b00,
0b00,
0b10,
0b10,
0b10,
0b10,
0b10,
0b00,
0b10,
0b00,
0b00
)),34:(4,0,4,(
0b0000,
0b1010,
0b1010,
0b1010,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000
)),35:(8,0,8,(
0b00000000,
0b00000000,
0b00010100,
0b00010100,
0b01111110,
0b00101000,
0b11111100,
0b01010000,
0b01010000,
0b00000000,
0b00000000
)),36:(6,0,6,(
0b000000,
0b000000,
0b001000,
0b011100,
0b101010,
0b011000,
0b001100,
0b101010,
0b011100,
0b001000,
0b000000
)),37:(8,0,8,(
0b00000000,
0b00000000,
0b01111110,
0b10100100,
0b10101000,
0b01010100,
0b00101010,
0b01001010,
0b01000100,
0b00000000,
0b00000000
)),38:(7,0,7,(
0b0000000,
0b0000000,
0b0010000,
0b0101000,
0b0101000,
0b0010000,
0b0101010,
0b1000100,
0b0111010,
0b0000000,
0b0000000
)),39:(2,0,2,(
0b00,
0b10,
0b10,
0b10,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00
)),40:(3,0,3,(
0b000,
0b010,
0b100,
0b100,
0b100,
0b100,
0b100,
0b100,
0b100,
0b010,
0b000
)),41:(3,0,3,(
0b000,
0b100,
0b010,
0b010,
0b010,
0b010,
0b010,
0b010,
0b010,
0b100,
0b000
)),42:(6,0,6,(
0b000000,
0b010100,
0b001000,
0b111110,
0b001000,
0b010100,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000
)),43:(6,0,6,(
0b000000,
0b000000,
0b000000,
0b001000,
0b001000,
0b111110,
0b001000,
0b001000,
0b000000,
0b000000,
0b000000
)),44:(3,0,3,(
0b000,
0b000,
0b000,
0b000,
0b000,
0b000,
0b000,
0b000,
0b110,
0b010,
0b100
)),45:(5,0,5,(
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b11110,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000
)),46:(3,0,3,(
0b000,
0b000,
0b000,
0b000,
0b000,
0b000,
0b000,
0b000,
0b110,
0b000,
0b000
)),47:(5,0,5,(
0b00000,
0b00000,
0b00010,
0b00010,
0b00100,
0b01100,
0b01000,
0b10000,
0b10000,
0b00000,
0b00000
)),48:(5,0,5,(
0b00000,
0b00000,
0b01100,
0b10010,
0b10010,
0b10010,
0b10010,
0b10010,
0b01100,
0b00000,
0b00000
)),49:(5,0,5,(
0b00000,
0b00000,
0b00100,
0b01100,
0b00100,
0b00100,
0b00100,
0b00100,
0b01110,
0b00000,
0b00000
)),50:(5,0,5,(
0b00000,
0b00000,
0b11100,
0b00010,
0b00010,
0b01100,
0b10000,
0b10000,
0b11110,
0b00000,
0b00000
)),51:(5,0,5,(
0b00000,
0b00000,
0b11100,
0b00010,
0b00010,
0b01100,
0b00010,
0b00010,
0b11100,
0b00000,
0b00000
)),52:(5,0,5,(
0b00000,
0b00000,
0b10010,
0b10010,
0b10010,
0b11110,
0b00010,
0b00010,
0b00010,
0b00000,
0b00000
)),53:(5,0,5,(
0b00000,
0b00000,
0b11110,
0b10000,
0b10000,
0b11100,
0b00010,
0b00010,
0b11100,
0b00000,
0b00000
)),54:(5,0,5,(
0b00000,
0b00000,
0b01100,
0b10000,
0b10000,
0b11100,
0b10010,
0b10010,
0b01100,
0b00000,
0b00000
)),55:(5,0,5,(
0b00000,
0b00000,
0b11110,
0b00010,
0b00010,
0b00100,
0b01000,
0b01000,
0b01000,
0b00000,
0b00000
)),56:(5,0,5,(
0b00000,
0b00000,
0b01100,
0b10010,
0b10010,
0b01100,
0b10010,
0b10010,
0b01100,
0b00000,
0b00000
)),57:(5,0,5,(
0b00000,
0b00000,
0b01100,
0b10010,
0b10010,
0b01110,
0b00010,
0b00010,
0b01100,
0b00000,
0b00000
)),58:(3,0,3,(
0b000,
0b000,
0b000,
0b000,
0b110,
0b000,
0b000,
0b000,
0b110,
0b000,
0b000
)),59:(3,0,3,(
0b000,
0b000,
0b000,
0b000,
0b110,
0b000,
0b000,
0b000,
0b110,
0b010,
0b100
)),60:(4,0,4,(
0b0000,
0b0000,
0b0000,
0b0010,
0b0100,
0b1000,
0b0100,
0b0010,
0b0000,
0b0000,
0b0000
)),61:(5,0,5,(
0b00000,
0b00000,
0b00000,
0b00000,
0b11110,
0b00000,
0b11110,
0b00000,
0b00000,
0b00000,
0b00000
)),62:(4,0,4,(
0b0000,
0b0000,
0b0000,
0b1000,
0b0100,
0b0010,
0b0100,
0b1000,
0b0000,
0b0000,
0b0000
)),63:(5,0,5,(
0b00000,
0b00000,
0b01100,
0b10010,
0b00010,
0b00100,
0b01000,
0b00000,
0b01000,
0b00000,
0b00000
)),64:(8,0,8,(
0b00000000,
0b00000000,
0b00111000,
0b01000100,
0b10011010,
0b10101010,
0b10101010,
0b10010100,
0b01000000,
0b00111100,
0b00000000
)),65:(5,0,5,(
0b00000,
0b00000,
0b01100,
0b10010,
0b10010,
0b11110,
0b10010,
0b10010,
0b10010,
0b00000,
0b00000
)),66:(5,0,5,(
0b00000,
0b00000,
0b11100,
0b10010,
0b10010,
0b11100,
0b10010,
0b10010,
0b11100,
0b00000,
0b00000
)),67:(5,0,5,(
0b00000,
0b00000,
0b01110,
0b10000,
0b10000,
0b10000,
0b10000,
0b10000,
0b01110,
0b00000,
0b00000
)),68:(5,0,5,(
0b00000,
0b00000,
0b11100,
0b10010,
0b10010,
0b10010,
0b10010,
0b10010,
0b11100,
0b00000,
0b00000
)),69:(5,0,5,(
0b00000,
0b00000,
0b11110,
0b10000,
0b10000,
0b11100,
0b10000,
0b10000,
0b11110,
0b00000,
0b00000
)),70:(5,0,5,(
0b00000,
0b00000,
0b11110,
0b10000,
0b10000,
0b11100,
0b10000,
0b10000,
0b10000,
0b00000,
0b00000
)),71:(5,0,5,(
0b00000,
0b00000,
0b01110,
0b10000,
0b10000,
0b10110,
0b10010,
0b10010,
0b01110,
0b00000,
0b00000
)),72:(5,0,5,(
0b00000,
0b00000,
0b10010,
0b10010,
0b10010,
0b11110,
0b10010,
0b10010,
0b10010,
0b00000,
0b00000
)),73:(2,0,2,(
0b00,
0b00,
0b10,
0b10,
0b10,
0b10,
0b10,
0b10,
0b10,
0b00,
0b00
)),74:(5,0,5,(
0b00000,
0b00000,
0b00010,
0b00010,
0b00010,
0b00010,
0b00010,
0b10010,
0b01100,
0b00000,
0b00000
)),75:(5,0,5,(
0b00000,
0b00000,
0b10010,
0b10010,
0b10100,
0b11000,
0b10100,
0b10010,
0b10010,
0b00000,
0b00000
)),76:(5,0,5,(
0b00000,
0b00000,
0b10000,
0b10000,
0b10000,
0b10000,
0b10000,
0b10000,
0b11110,
0b00000,
0b00000
)),77:(6,0,6,(
0b000000,
0b000000,
0b100010,
0b110110,
0b101010,
0b100010,
0b100010,
0b100010,
0b100010,
0b000000,
0b000000
)),78:(5,0,5,(
0b00000,
0b00000,
0b10010,
0b11010,
0b11110,
0b10110,
0b10010,
0b10010,
0b10010,
0b00000,
0b00000
)),79:(5,0,5,(
0b00000,
0b00000,
0b01110,
0b10010,
0b10010,
0b10010,
0b10010,
0b10010,
0b11100,
0b00000,
0b00000
)),80:(5,0,5,(
0b00000,
0b00000,
0b11100,
0b10010,
0b10010,
0b11100,
0b10000,
0b10000,
0b10000,
0b00000,
0b00000
)),81:(5,0,5,(
0b00000,
0b00000,
0b01110,
0b10010,
0b10010,
0b10010,
0b10010,
0b10110,
0b11100,
0b00010,
0b00000
)),82:(5,0,5,(
0b00000,
0b00000,
0b11100,
0b10010,
0b10010,
0b11100,
0b10100,
0b10010,
0b10010,
0b00000,
0b00000
)),83:(5,0,5,(
0b00000,
0b00000,
0b01110,
0b10000,
0b10000,
0b01100,
0b00010,
0b00010,
0b11100,
0b00000,
0b00000
)),84:(6,0,6,(
0b000000,
0b000000,
0b111110,
0b001000,
0b001000,
0b001000,
0b001000,
0b001000,
0b001000,
0b000000,
0b000000
)),85:(5,0,5,(
0b00000,
0b00000,
0b10010,
0b10010,
0b10010,
0b10010,
0b10010,
0b10010,
0b01110,
0b00000,
0b00000
)),86:(5,0,5,(
0b00000,
0b00000,
0b10010,
0b10010,
0b10010,
0b10010,
0b10010,
0b10100,
0b01000,
0b00000,
0b00000
)),87:(6,0,6,(
0b000000,
0b000000,
0b100010,
0b100010,
0b100010,
0b101010,
0b101010,
0b101010,
0b110110,
0b000000,
0b000000
)),88:(6,0,6,(
0b000000,
0b000000,
0b100010,
0b100010,
0b010100,
0b001000,
0b010100,
0b100010,
0b100010,
0b000000,
0b000000
)),89:(6,0,6,(
0b000000,
0b000000,
0b100010,
0b100010,
0b010100,
0b001000,
0b001000,
0b001000,
0b001000,
0b000000,
0b000000
)),90:(5,0,5,(
0b00000,
0b00000,
0b11110,
0b00010,
0b00100,
0b01000,
0b10000,
0b10000,
0b11110,
0b00000,
0b00000
)),91:(3,0,3,(
0b000,
0b110,
0b100,
0b100,
0b100,
0b100,
0b100,
0b100,
0b100,
0b110,
0b000
)),92:(5,0,5,(
0b00000,
0b00000,
0b10000,
0b10000,
0b01000,
0b01100,
0b00100,
0b00010,
0b00010,
0b00000,
0b00000
)),93:(3,0,3,(
0b000,
0b110,
0b010,
0b010,
0b010,
0b010,
0b010,
0b010,
0b010,
0b110,
0b000
)),94:(6,0,6,(
0b000000,
0b000000,
0b001000,
0b010100,
0b100010,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000
)),95:(5,0,5,(
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b11111,
0b00000
)),96:(4,0,4,(
0b0000,
0b0000,
0b1100,
0b0010,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000
)),97:(5,0,5,(
0b00000,
0b00000,
0b00000,
0b00000,
0b01110,
0b10010,
0b10010,
0b10010,
0b01110,
0b00000,
0b00000
)),98:(5,0,5,(
0b00000,
0b00000,
0b10000,
0b10000,
0b11100,
0b10010,
0b10010,
0b10010,
0b11100,
0b00000,
0b00000
)),99:(5,0,5,(
0b00000,
0b00000,
0b00000,
0b00000,
0b01110,
0b10000,
0b10000,
0b10000,
0b01110,
0b00000,
0b00000
)),100:(5,0,5,(
0b00000,
0b00000,
0b00010,
0b00010,
0b01110,
0b10010,
0b10010,
0b10010,
0b01110,
0b00000,
0b00000
)),101:(5,0,5,(
0b00000,
0b00000,
0b00000,
0b00000,
0b01100,
0b10010,
0b11110,
0b10000,
0b01110,
0b00000,
0b00000
)),102:(4,0,4,(
0b0000,
0b0000,
0b0011,
0b0100,
0b1110,
0b0100,
0b0100,
0b0100,
0b0100,
0b0000,
0b0000
)),103:(5,0,5,(
0b00000,
0b00000,
0b00000,
0b00000,
0b01110,
0b10010,
0b10010,
0b10010,
0b01110,
0b00010,
0b11100
)),104:(5,0,5,(
0b00000,
0b00000,
0b10000,
0b10000,
0b11100,
0b10010,
0b10010,
0b10010,
0b10010,
0b00000,
0b00000
)),105:(2,0,2,(
0b00,
0b00,
0b10,
0b00,
0b10,
0b10,
0b10,
0b10,
0b10,
0b00,
0b00
)),106:(4,0,4,(
0b0000,
0b0000,
0b0010,
0b0000,
0b0010,
0b0010,
0b0010,
0b0010,
0b0010,
0b0010,
0b1100
)),107:(5,0,5,(
0b00000,
0b00000,
0b10000,
0b10000,
0b10010,
0b10100,
0b11000,
0b10100,
0b10010,
0b00000,
0b00000
)),108:(2,0,2,(
0b00,
0b00,
0b10,
0b10,
0b10,
0b10,
0b10,
0b10,
0b10,
0b00,
0b00
)),109:(8,0,8,(
0b00000000,
0b00000000,
0b00000000,
0b00000000,
0b11101100,
0b10010010,
0b10010010,
0b10010010,
0b10010010,
0b00000000,
0b00000000
)),110:(5,0,5,(
0b00000,
0b00000,
0b00000,
0b00000,
0b11100,
0b10010,
0b10010,
0b10010,
0b10010,
0b00000,
0b00000
)),111:(5,0,5,(
0b00000,
0b00000,
0b00000,
0b00000,
0b01100,
0b10010,
0b10010,
0b10010,
0b01100,
0b00000,
0b00000
)),112:(5,0,5,(
0b00000,
0b00000,
0b00000,
0b00000,
0b11100,
0b10010,
0b10010,
0b10010,
0b11100,
0b10000,
0b10000
)),113:(5,0,5,(
0b00000,
0b00000,
0b00000,
0b00000,
0b01110,
0b10010,
0b10010,
0b10010,
0b01110,
0b00010,
0b00010
)),114:(5,0,5,(
0b00000,
0b00000,
0b00000,
0b00000,
0b10110,
0b11000,
0b10000,
0b10000,
0b10000,
0b00000,
0b00000
)),115:(5,0,5,(
0b00000,
0b00000,
0b00000,
0b00000,
0b01110,
0b10000,
0b01100,
0b00010,
0b11100,
0b00000,
0b00000
)),116:(5,0,5,(
0b00000,
0b00000,
0b01000,
0b01000,
0b11110,
0b01000,
0b01000,
0b01000,
0b00110,
0b00000,
0b00000
)),117:(5,0,5,(
0b00000,
0b00000,
0b00000,
0b00000,
0b10010,
0b10010,
0b10010,
0b10010,
0b01110,
0b00000,
0b00000
)),118:(5,0,5,(
0b00000,
0b00000,
0b00000,
0b00000,
0b10010,
0b10010,
0b10010,
0b10100,
0b01000,
0b00000,
0b00000
)),119:(6,0,6,(
0b000000,
0b000000,
0b000000,
0b000000,
0b101010,
0b101010,
0b101010,
0b101010,
0b010100,
0b000000,
0b000000
)),120:(5,0,5,(
0b00000,
0b00000,
0b00000,
0b00000,
0b10010,
0b10010,
0b01100,
0b10010,
0b10010,
0b00000,
0b00000
)),121:(5,0,5,(
0b00000,
0b00000,
0b00000,
0b00000,
0b10010,
0b10010,
0b10010,
0b01110,
0b00010,
0b00100,
0b11000
)),122:(5,0,5,(
0b00000,
0b00000,
0b00000,
0b00000,
0b11110,
0b00010,
0b01100,
0b10000,
0b11110,
0b00000,
0b00000
)),123:(4,0,4,(
0b0000,
0b0010,
0b0100,
0b0100,
0b0100,
0b1000,
0b0100,
0b0100,
0b0100,
0b0010,
0b0000
)),124:(2,0,2,(
0b00,
0b10,
0b10,
0b10,
0b10,
0b10,
0b10,
0b10,
0b10,
0b10,
0b00
)),125:(4,0,4,(
0b0000,
0b1000,
0b0100,
0b0100,
0b0100,
0b0010,
0b0100,
0b0100,
0b0100,
0b1000,
0b0000
)),126:(7,0,7,(
0b0000000,
0b0000000,
0b0000000,
0b0000000,
0b0110010,
0b1011010,
0b1001100,
0b0000000,
0b0000000,
0b0000000,
0b0000000
)),128:(8,0,8,(
0b00000000,
0b00000000,
0b00011100,
0b00100010,
0b11111000,
0b01000000,
0b11110000,
0b00100010,
0b00011100,
0b00000000,
0b00000000
)),130:(3,0,3,(
0b000,
0b000,
0b000,
0b000,
0b000,
0b000,
0b000,
0b000,
0b110,
0b010,
0b100
)),131:(8,0,8,(
0b00000000,
0b00000000,
0b00000110,
0b00001000,
0b00111100,
0b00010000,
0b00010000,
0b00100000,
0b00100000,
0b11000000,
0b00000000
)),132:(5,0,5,(
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b11110,
0b01010,
0b10100
)),133:(9,0,9,(
0b000000000,
0b000000000,
0b000000000,
0b000000000,
0b000000000,
0b000000000,
0b000000000,
0b000000000,
0b110110110,
0b000000000,
0b000000000
)),134:(6,0,6,(
0b000000,
0b000000,
0b001000,
0b001000,
0b111110,
0b001000,
0b001000,
0b001000,
0b001000,
0b001000,
0b001000
)),135:(6,0,6,(
0b000000,
0b000000,
0b001000,
0b001000,
0b111110,
0b001000,
0b001000,
0b001000,
0b111110,
0b001000,
0b001000
)),136:(4,0,4,(
0b0000,
0b0000,
0b0100,
0b1010,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000
)),137:(10,0,10,(
0b0000000000,
0b0000000000,
0b0111111000,
0b1010010000,
0b1010100000,
0b0101010100,
0b0010101010,
0b0100101010,
0b0100010100,
0b0000000000,
0b0000000000
)),138:(5,0,5,(
0b01010,
0b00100,
0b00000,
0b01110,
0b10000,
0b01100,
0b00010,
0b00010,
0b11100,
0b00000,
0b00000
)),139:(4,0,4,(
0b0000,
0b0000,
0b0000,
0b0000,
0b0010,
0b0100,
0b1000,
0b0100,
0b0010,
0b0000,
0b0000
)),140:(8,0,8,(
0b00000000,
0b00000000,
0b00111110,
0b01001000,
0b10001000,
0b10001110,
0b10001000,
0b01001000,
0b00111110,
0b00000000,
0b00000000
)),141:(10,0,10,(
0b0000100000,
0b0001110000,
0b0011011000,
0b0110001100,
0b1100000110,
0b1100000110,
0b0110001100,
0b0011011000,
0b0001110000,
0b0000100000,
0b0000000000
)),142:(10,0,10,(
0b0001110000,
0b0011111000,
0b0011111000,
0b0101110100,
0b1111111110,
0b1111111110,
0b1111111110,
0b0110101100,
0b0001110000,
0b0011111000,
0b0000000000
)),143:(10,0,10,(
0b0000000000,
0b0111011100,
0b1101110110,
0b1000100010,
0b1000000010,
0b1100000110,
0b0110001100,
0b0011011000,
0b0001110000,
0b0000100000,
0b0000000000
)),144:(10,0,10,(
0b0000100000,
0b0001110000,
0b0011111000,
0b0111111100,
0b1111111110,
0b1111111110,
0b1111111110,
0b0110101100,
0b0001110000,
0b0011111000,
0b0000000000
)),145:(3,0,3,(
0b000,
0b010,
0b100,
0b110,
0b000,
0b000,
0b000,
0b000,
0b000,
0b000,
0b000
)),146:(3,0,3,(
0b000,
0b110,
0b010,
0b100,
0b000,
0b000,
0b000,
0b000,
0b000,
0b000,
0b000
)),147:(5,0,5,(
0b00000,
0b01010,
0b10100,
0b11110,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000
)),148:(5,0,5,(
0b00000,
0b11110,
0b01010,
0b10100,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000
)),149:(4,0,4,(
0b0000,
0b0000,
0b0000,
0b0000,
0b1110,
0b1110,
0b1110,
0b0000,
0b0000,
0b0000,
0b0000
)),150:(4,0,4,(
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b1111,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000
)),151:(7,0,7,(
0b0000000,
0b0000000,
0b0000000,
0b0000000,
0b0000000,
0b1111111,
0b0000000,
0b0000000,
0b0000000,
0b0000000,
0b0000000
)),152:(7,0,7,(
0b0000000,
0b0000000,
0b0000000,
0b0110010,
0b1011010,
0b1001100,
0b0000000,
0b0000000,
0b0000000,
0b0000000,
0b0000000
)),153:(10,0,10,(
0b0000000000,
0b0000000000,
0b1110100010,
0b0100110110,
0b0100101010,
0b0000000000,
0b0000000000,
0b0000000000,
0b0000000000,
0b0000000000,
0b0000000000
)),154:(4,0,4,(
0b0000,
0b1010,
0b0100,
0b0000,
0b0110,
0b1000,
0b0100,
0b0010,
0b1100,
0b0000,
0b0000
)),155:(4,0,4,(
0b0000,
0b0000,
0b0000,
0b0000,
0b1000,
0b0100,
0b0010,
0b0100,
0b1000,
0b0000,
0b0000
)),156:(8,0,8,(
0b00000000,
0b00000000,
0b00000000,
0b00000000,
0b01101100,
0b10010010,
0b10011110,
0b10010000,
0b01101110,
0b00000000,
0b00000000
)),157:(7,0,7,(
0b0000000,
0b0000000,
0b0000000,
0b0000010,
0b0000100,
0b0001000,
0b0010000,
0b1100000,
0b1100000,
0b0000000,
0b0000000
)),158:(7,0,7,(
0b0000000,
0b0001000,
0b0010100,
0b0010100,
0b0010100,
0b0001000,
0b0010100,
0b1100010,
0b1100010,
0b0000000,
0b0000000
)),159:(6,0,6,(
0b000000,
0b010100,
0b000000,
0b100010,
0b100010,
0b010100,
0b001000,
0b001000,
0b001000,
0b000000,
0b000000
)),160:(2,0,2,(
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00
)),161:(2,0,2,(
0b00,
0b00,
0b00,
0b00,
0b10,
0b00,
0b10,
0b10,
0b10,
0b10,
0b10
)),162:(6,0,6,(
0b000000,
0b000000,
0b001000,
0b011100,
0b101010,
0b101000,
0b101000,
0b101010,
0b011100,
0b001000,
0b000000
)),163:(6,0,6,(
0b000000,
0b000000,
0b001100,
0b010010,
0b010000,
0b111100,
0b010000,
0b111000,
0b000110,
0b000000,
0b000000
)),164:(8,0,8,(
0b00000000,
0b00000000,
0b10010010,
0b01101100,
0b01000100,
0b10000010,
0b01000100,
0b01101100,
0b10010010,
0b00000000,
0b00000000
)),165:(6,0,6,(
0b000000,
0b000000,
0b100010,
0b010100,
0b111110,
0b001000,
0b111110,
0b001000,
0b001000,
0b000000,
0b000000
)),166:(2,0,2,(
0b00,
0b00,
0b10,
0b10,
0b10,
0b10,
0b00,
0b10,
0b10,
0b10,
0b10
)),167:(5,0,5,(
0b00000,
0b01100,
0b10010,
0b01000,
0b10100,
0b10010,
0b01010,
0b00100,
0b10010,
0b01100,
0b00000
)),168:(4,0,4,(
0b0000,
0b0000,
0b0000,
0b1010,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000
)),169:(8,0,8,(
0b00000000,
0b00000000,
0b00111000,
0b01000100,
0b10111010,
0b10100010,
0b10111010,
0b01000100,
0b00111000,
0b00000000,
0b00000000
)),170:(5,0,5,(
0b00000,
0b00000,
0b01110,
0b10010,
0b01110,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000
)),171:(6,0,6,(
0b000000,
0b000000,
0b000000,
0b000000,
0b001010,
0b010100,
0b101000,
0b010100,
0b001010,
0b000000,
0b000000
)),172:(6,0,6,(
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b111110,
0b000010,
0b000010,
0b000000,
0b000000,
0b000000
)),173:(4,0,4,(
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b1110,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000
)),174:(8,0,8,(
0b00000000,
0b00000000,
0b00111000,
0b01000100,
0b10111010,
0b10110010,
0b10101010,
0b01000100,
0b00111000,
0b00000000,
0b00000000
)),175:(6,0,6,(
0b000000,
0b111110,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000
)),176:(5,0,5,(
0b00000,
0b01100,
0b10010,
0b10010,
0b01100,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000
)),177:(6,0,6,(
0b000000,
0b000000,
0b001000,
0b001000,
0b111110,
0b001000,
0b001000,
0b111110,
0b000000,
0b000000,
0b000000
)),178:(4,0,4,(
0b0000,
0b0000,
0b1100,
0b0010,
0b0100,
0b1110,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000
)),179:(4,0,4,(
0b0000,
0b0000,
0b1110,
0b0100,
0b0010,
0b1110,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000
)),180:(3,0,3,(
0b000,
0b010,
0b100,
0b000,
0b000,
0b000,
0b000,
0b000,
0b000,
0b000,
0b000
)),181:(5,0,5,(
0b00000,
0b00000,
0b00000,
0b00000,
0b10010,
0b10010,
0b10010,
0b10010,
0b11110,
0b10000,
0b10000
)),182:(6,0,6,(
0b000000,
0b000000,
0b011110,
0b111010,
0b111010,
0b011010,
0b001010,
0b001010,
0b001010,
0b000000,
0b000000
)),183:(2,0,2,(
0b00,
0b00,
0b00,
0b00,
0b00,
0b10,
0b00,
0b00,
0b00,
0b00,
0b00
)),184:(4,0,4,(
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0100,
0b0010,
0b1100
)),185:(2,0,2,(
0b00,
0b00,
0b10,
0b10,
0b10,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00
)),186:(5,0,5,(
0b00000,
0b00000,
0b01100,
0b10010,
0b01100,
0b00000,
0b11110,
0b00000,
0b00000,
0b00000,
0b00000
)),187:(6,0,6,(
0b000000,
0b000000,
0b000000,
0b000000,
0b101000,
0b010100,
0b001010,
0b010100,
0b101000,
0b000000,
0b000000
)),188:(8,0,8,(
0b00000000,
0b10000000,
0b10000100,
0b10001000,
0b10010000,
0b00100100,
0b01001100,
0b10011110,
0b00000100,
0b00000000,
0b00000000
)),189:(8,0,8,(
0b00000000,
0b10000000,
0b10000100,
0b10001000,
0b10010000,
0b00101100,
0b01000010,
0b10000100,
0b00001110,
0b00000000,
0b00000000
)),190:(8,0,8,(
0b00000000,
0b11100000,
0b01000010,
0b00100100,
0b11101000,
0b00010010,
0b00100110,
0b01001110,
0b00000010,
0b00000000,
0b00000000
)),191:(5,0,5,(
0b00000,
0b00000,
0b00100,
0b00000,
0b00100,
0b01000,
0b10000,
0b10010,
0b01100,
0b00000,
0b00000
)),192:(5,0,5,(
0b01000,
0b00100,
0b00000,
0b01100,
0b10010,
0b10010,
0b11110,
0b10010,
0b10010,
0b00000,
0b00000
)),193:(5,0,5,(
0b00100,
0b01000,
0b00000,
0b01100,
0b10010,
0b10010,
0b11110,
0b10010,
0b10010,
0b00000,
0b00000
)),194:(5,0,5,(
0b00100,
0b01010,
0b00000,
0b01100,
0b10010,
0b10010,
0b11110,
0b10010,
0b10010,
0b00000,
0b00000
)),195:(5,0,5,(
0b01010,
0b10100,
0b00000,
0b01100,
0b10010,
0b10010,
0b11110,
0b10010,
0b10010,
0b00000,
0b00000
)),196:(5,0,5,(
0b00000,
0b01010,
0b00000,
0b01100,
0b10010,
0b10010,
0b11110,
0b10010,
0b10010,
0b00000,
0b00000
)),197:(5,0,5,(
0b00100,
0b01010,
0b00100,
0b01100,
0b10010,
0b10010,
0b11110,
0b10010,
0b10010,
0b00000,
0b00000
)),198:(7,0,7,(
0b0000000,
0b0000000,
0b0111110,
0b1001000,
0b1001000,
0b1111110,
0b1001000,
0b1001000,
0b1001110,
0b0000000,
0b0000000
)),199:(5,0,5,(
0b00000,
0b00000,
0b00110,
0b01000,
0b10000,
0b10000,
0b10000,
0b01000,
0b00110,
0b00100,
0b01000
)),200:(5,0,5,(
0b01000,
0b00100,
0b00000,
0b11110,
0b10000,
0b11100,
0b10000,
0b10000,
0b11110,
0b00000,
0b00000
)),201:(5,0,5,(
0b00100,
0b01000,
0b00000,
0b11110,
0b10000,
0b11100,
0b10000,
0b10000,
0b11110,
0b00000,
0b00000
)),202:(5,0,5,(
0b00100,
0b01010,
0b00000,
0b11110,
0b10000,
0b11100,
0b10000,
0b10000,
0b11110,
0b00000,
0b00000
)),203:(5,0,5,(
0b00000,
0b01010,
0b00000,
0b11110,
0b10000,
0b11100,
0b10000,
0b10000,
0b11110,
0b00000,
0b00000
)),204:(3,0,3,(
0b100,
0b010,
0b000,
0b010,
0b010,
0b010,
0b010,
0b010,
0b010,
0b000,
0b000
)),205:(2,0,2,(
0b01,
0b10,
0b00,
0b10,
0b10,
0b10,
0b10,
0b10,
0b10,
0b00,
0b00
)),206:(3,0,3,(
0b010,
0b101,
0b000,
0b010,
0b010,
0b010,
0b010,
0b010,
0b010,
0b000,
0b000
)),207:(3,0,3,(
0b101,
0b000,
0b000,
0b010,
0b010,
0b010,
0b010,
0b010,
0b010,
0b000,
0b000
)),208:(7,0,7,(
0b0000000,
0b0000000,
0b0111000,
0b0100100,
0b0100010,
0b1110010,
0b0100010,
0b0100100,
0b0111000,
0b0000000,
0b0000000
)),209:(5,0,5,(
0b01010,
0b10100,
0b00000,
0b10010,
0b11010,
0b11010,
0b10110,
0b10110,
0b10010,
0b00000,
0b00000
)),210:(5,0,5,(
0b01000,
0b00100,
0b00000,
0b01110,
0b10010,
0b10010,
0b10010,
0b10010,
0b11100,
0b00000,
0b00000
)),211:(5,0,5,(
0b00100,
0b01000,
0b00000,
0b01110,
0b10010,
0b10010,
0b10010,
0b10010,
0b11100,
0b00000,
0b00000
)),212:(5,0,5,(
0b00100,
0b01010,
0b00000,
0b01110,
0b10010,
0b10010,
0b10010,
0b10010,
0b11100,
0b00000,
0b00000
)),213:(5,0,5,(
0b01010,
0b10100,
0b00000,
0b01110,
0b10010,
0b10010,
0b10010,
0b10010,
0b11100,
0b00000,
0b00000
)),214:(5,0,5,(
0b00000,
0b01010,
0b00000,
0b01110,
0b10010,
0b10010,
0b10010,
0b10010,
0b11100,
0b00000,
0b00000
)),215:(5,0,5,(
0b00000,
0b00000,
0b00000,
0b00000,
0b10010,
0b01100,
0b01100,
0b10010,
0b00000,
0b00000,
0b00000
)),216:(8,0,8,(
0b00000000,
0b00000000,
0b00111010,
0b01000100,
0b10001010,
0b10010010,
0b10100010,
0b01000100,
0b10111000,
0b00000000,
0b00000000
)),217:(5,0,5,(
0b01000,
0b00100,
0b00000,
0b10010,
0b10010,
0b10010,
0b10010,
0b10010,
0b01110,
0b00000,
0b00000
)),218:(5,0,5,(
0b00100,
0b01000,
0b00000,
0b10010,
0b10010,
0b10010,
0b10010,
0b10010,
0b01110,
0b00000,
0b00000
)),219:(5,0,5,(
0b00100,
0b01010,
0b00000,
0b10010,
0b10010,
0b10010,
0b10010,
0b10010,
0b01110,
0b00000,
0b00000
)),220:(5,0,5,(
0b00000,
0b01010,
0b00000,
0b10010,
0b10010,
0b10010,
0b10010,
0b10010,
0b01110,
0b00000,
0b00000
)),221:(6,0,6,(
0b000100,
0b001000,
0b000000,
0b100010,
0b100010,
0b011100,
0b001000,
0b001000,
0b001000,
0b000000,
0b000000
)),222:(5,0,5,(
0b00000,
0b00000,
0b10000,
0b11100,
0b10010,
0b10010,
0b10010,
0b11100,
0b10000,
0b00000,
0b00000
)),223:(6,0,6,(
0b000000,
0b000000,
0b011000,
0b100100,
0b100100,
0b101100,
0b100010,
0b100010,
0b101100,
0b000000,
0b000000
)),224:(5,0,5,(
0b00000,
0b01000,
0b00100,
0b00000,
0b01110,
0b10010,
0b10010,
0b10010,
0b01110,
0b00000,
0b00000
)),225:(5,0,5,(
0b00000,
0b00010,
0b00100,
0b00000,
0b01110,
0b10010,
0b10010,
0b10010,
0b01110,
0b00000,
0b00000
)),226:(5,0,5,(
0b00000,
0b00100,
0b01010,
0b00000,
0b01110,
0b10010,
0b10010,
0b10010,
0b01110,
0b00000,
0b00000
)),227:(5,0,5,(
0b00000,
0b01010,
0b10100,
0b00000,
0b01110,
0b10010,
0b10010,
0b10010,
0b01110,
0b00000,
0b00000
)),228:(5,0,5,(
0b00000,
0b00000,
0b01010,
0b00000,
0b01110,
0b10010,
0b10010,
0b10010,
0b01110,
0b00000,
0b00000
)),229:(5,0,5,(
0b00100,
0b01010,
0b00100,
0b00000,
0b01110,
0b10010,
0b10010,
0b10010,
0b01110,
0b00000,
0b00000
)),230:(8,0,8,(
0b00000000,
0b00000000,
0b00000000,
0b00000000,
0b01101100,
0b00010010,
0b01111110,
0b10010000,
0b01111110,
0b00000000,
0b00000000
)),231:(4,0,4,(
0b0000,
0b0000,
0b0000,
0b0000,
0b0110,
0b1000,
0b1000,
0b1000,
0b0110,
0b0100,
0b1000
)),232:(5,0,5,(
0b00000,
0b01000,
0b00100,
0b00000,
0b01100,
0b10010,
0b11110,
0b10000,
0b01110,
0b00000,
0b00000
)),233:(5,0,5,(
0b00000,
0b00010,
0b00100,
0b00000,
0b01100,
0b10010,
0b11110,
0b10000,
0b01110,
0b00000,
0b00000
)),234:(5,0,5,(
0b00000,
0b00100,
0b01010,
0b00000,
0b01100,
0b10010,
0b11110,
0b10000,
0b01110,
0b00000,
0b00000
)),235:(5,0,5,(
0b00000,
0b00000,
0b01010,
0b00000,
0b01100,
0b10010,
0b11110,
0b10000,
0b01110,
0b00000,
0b00000
)),236:(3,0,3,(
0b000,
0b100,
0b010,
0b000,
0b010,
0b010,
0b010,
0b010,
0b010,
0b000,
0b000
)),237:(2,0,2,(
0b00,
0b01,
0b10,
0b00,
0b10,
0b10,
0b10,
0b10,
0b10,
0b00,
0b00
)),238:(3,0,3,(
0b000,
0b010,
0b101,
0b000,
0b010,
0b010,
0b010,
0b010,
0b010,
0b000,
0b000
)),239:(3,0,3,(
0b000,
0b101,
0b000,
0b000,
0b010,
0b010,
0b010,
0b010,
0b010,
0b000,
0b000
)),240:(5,0,5,(
0b00000,
0b00000,
0b11000,
0b11000,
0b00100,
0b01100,
0b10010,
0b10010,
0b01100,
0b00000,
0b00000
)),241:(5,0,5,(
0b00000,
0b01010,
0b10100,
0b00000,
0b11100,
0b10010,
0b10010,
0b10010,
0b10010,
0b00000,
0b00000
)),242:(5,0,5,(
0b00000,
0b01000,
0b00100,
0b00000,
0b01100,
0b10010,
0b10010,
0b10010,
0b01100,
0b00000,
0b00000
)),243:(5,0,5,(
0b00000,
0b00100,
0b01000,
0b00000,
0b01100,
0b10010,
0b10010,
0b10010,
0b01100,
0b00000,
0b00000
)),244:(5,0,5,(
0b00000,
0b00100,
0b01010,
0b00000,
0b01100,
0b10010,
0b10010,
0b10010,
0b01100,
0b00000,
0b00000
)),245:(5,0,5,(
0b00000,
0b01010,
0b10100,
0b00000,
0b01100,
0b10010,
0b10010,
0b10010,
0b01100,
0b00000,
0b00000
)),246:(5,0,5,(
0b00000,
0b00000,
0b01010,
0b00000,
0b01100,
0b10010,
0b10010,
0b10010,
0b01100,
0b00000,
0b00000
)),247:(6,0,6,(
0b000000,
0b000000,
0b000000,
0b000000,
0b001000,
0b000000,
0b111110,
0b000000,
0b001000,
0b000000,
0b000000
)),248:(7,0,7,(
0b0000000,
0b0000000,
0b0000000,
0b0000000,
0b0011010,
0b0101100,
0b0110100,
0b0100100,
0b1011000,
0b0000000,
0b0000000
)),249:(5,0,5,(
0b00000,
0b01000,
0b00100,
0b00000,
0b10010,
0b10010,
0b10010,
0b10010,
0b01110,
0b00000,
0b00000
)),250:(5,0,5,(
0b00000,
0b00100,
0b01000,
0b00000,
0b10010,
0b10010,
0b10010,
0b10010,
0b01110,
0b00000,
0b00000
)),251:(5,0,5,(
0b00000,
0b00100,
0b01010,
0b00000,
0b10010,
0b10010,
0b10010,
0b10010,
0b01110,
0b00000,
0b00000
)),252:(5,0,5,(
0b00000,
0b00000,
0b01010,
0b00000,
0b10010,
0b10010,
0b10010,
0b10010,
0b01110,
0b00000,
0b00000
)),253:(5,0,5,(
0b00000,
0b00100,
0b01000,
0b00000,
0b10010,
0b10010,
0b10010,
0b01110,
0b00010,
0b00100,
0b11000
)),254:(5,0,5,(
0b00000,
0b00000,
0b10000,
0b10000,
0b11100,
0b10010,
0b10010,
0b10010,
0b11100,
0b10000,
0b10000
)),255:(5,0,5,(
0b00000,
0b00000,
0b01010,
0b00000,
0b10010,
0b10010,
0b10010,
0b01110,
0b00010,
0b00100,
0b11000
)),}
# generated by fontconv
#fontType 36864
#firstChar 9
#lastChar 255
#maxWidth 17
#kernMax 0
#nDescent 0
#fRectWidth 17
#fRectHeight 11
#ascent 9
#descent 2
#leading 0
#averageWidth 5.94
FONTS['bigfoot'] = {
9:(2,0,2,(
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00
)),20:(11,0,11,(
0b01111000000,
0b11111100000,
0b10000100100,
0b11111101000,
0b01111010000,
0b00110000000,
0b00110011010,
0b00110000000,
0b01110010000,
0b01110001000,
0b00110000100
)),21:(5,0,5,(
0b00000,
0b00100,
0b01000,
0b10000,
0b00000,
0b11010,
0b00000,
0b10000,
0b01000,
0b00100,
0b00000
)),22:(8,0,8,(
0b00000000,
0b00000000,
0b00000010,
0b00000110,
0b00001100,
0b00011000,
0b11110000,
0b11100000,
0b11100000,
0b00000000,
0b00000000
)),23:(8,0,8,(
0b00000000,
0b00000000,
0b00111000,
0b01101100,
0b01101100,
0b01101100,
0b00111000,
0b11101100,
0b11000110,
0b00000000,
0b00000000
)),24:(6,0,6,(
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b101010,
0b000000,
0b000000
)),25:(5,0,5,(
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000
)),32:(2,0,2,(
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00
)),33:(3,0,3,(
0b000,
0b000,
0b110,
0b110,
0b110,
0b110,
0b110,
0b000,
0b110,
0b000,
0b000
)),34:(6,0,6,(
0b000000,
0b110110,
0b110110,
0b010010,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000
)),35:(10,0,10,(
0b0000000000,
0b0000000000,
0b0001101100,
0b0001101100,
0b0111111110,
0b0011011000,
0b1111111100,
0b0110110000,
0b0110110000,
0b0000000000,
0b0000000000
)),36:(6,0,6,(
0b000000,
0b001000,
0b011100,
0b101010,
0b111000,
0b011100,
0b001110,
0b101010,
0b011100,
0b001000,
0b000000
)),37:(9,0,9,(
0b000000000,
0b000000000,
0b011111110,
0b101001100,
0b101011000,
0b110110110,
0b001101010,
0b011001010,
0b011001100,
0b000000000,
0b000000000
)),38:(9,0,9,(
0b000000000,
0b000000000,
0b001110000,
0b011011000,
0b001110000,
0b011110110,
0b110011100,
0b110011100,
0b011110110,
0b000000000,
0b000000000
)),39:(3,0,3,(
0b000,
0b110,
0b110,
0b010,
0b000,
0b000,
0b000,
0b000,
0b000,
0b000,
0b000
)),40:(5,0,5,(
0b00000,
0b00110,
0b01100,
0b01000,
0b11000,
0b11000,
0b11000,
0b01000,
0b01100,
0b00110,
0b00000
)),41:(5,0,5,(
0b00000,
0b11000,
0b01100,
0b00100,
0b00110,
0b00110,
0b00110,
0b00100,
0b01100,
0b11000,
0b00000
)),42:(6,0,6,(
0b000000,
0b010100,
0b001000,
0b111110,
0b001000,
0b010100,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000
)),43:(6,0,6,(
0b000000,
0b000000,
0b000000,
0b001000,
0b001000,
0b111110,
0b001000,
0b001000,
0b000000,
0b000000,
0b000000
)),44:(3,0,3,(
0b000,
0b000,
0b000,
0b000,
0b000,
0b000,
0b000,
0b000,
0b110,
0b010,
0b100
)),45:(5,0,5,(
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b11110,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000
)),46:(3,0,3,(
0b000,
0b000,
0b000,
0b000,
0b000,
0b000,
0b000,
0b000,
0b110,
0b000,
0b000
)),47:(6,0,6,(
0b000000,
0b000000,
0b000110,
0b000110,
0b001100,
0b011000,
0b011000,
0b110000,
0b110000,
0b000000,
0b000000
)),48:(6,0,6,(
0b000000,
0b000000,
0b111110,
0b110110,
0b110110,
0b110110,
0b110110,
0b110110,
0b111110,
0b000000,
0b000000
)),49:(6,0,6,(
0b000000,
0b000000,
0b001100,
0b011100,
0b001100,
0b001100,
0b001100,
0b001100,
0b011110,
0b000000,
0b000000
)),50:(6,0,6,(
0b000000,
0b000000,
0b111100,
0b110110,
0b001110,
0b011100,
0b111000,
0b110110,
0b111110,
0b000000,
0b000000
)),51:(6,0,6,(
0b000000,
0b000000,
0b111110,
0b110110,
0b001100,
0b011100,
0b000110,
0b110110,
0b111110,
0b000000,
0b000000
)),52:(7,0,7,(
0b0000000,
0b0000000,
0b0001100,
0b0011100,
0b0111100,
0b1101100,
0b1111110,
0b0001100,
0b0011110,
0b0000000,
0b0000000
)),53:(6,0,6,(
0b000000,
0b000000,
0b111110,
0b110000,
0b111100,
0b111110,
0b000110,
0b110110,
0b111100,
0b000000,
0b000000
)),54:(6,0,6,(
0b000000,
0b000000,
0b111110,
0b110110,
0b110000,
0b111110,
0b110110,
0b110110,
0b111110,
0b000000,
0b000000
)),55:(6,0,6,(
0b000000,
0b000000,
0b111110,
0b110110,
0b000110,
0b001100,
0b001100,
0b011000,
0b011000,
0b000000,
0b000000
)),56:(6,0,6,(
0b000000,
0b000000,
0b111110,
0b110110,
0b110110,
0b011100,
0b110110,
0b110110,
0b111110,
0b000000,
0b000000
)),57:(6,0,6,(
0b000000,
0b000000,
0b111110,
0b110110,
0b110110,
0b111110,
0b000110,
0b110110,
0b111110,
0b000000,
0b000000
)),58:(3,0,3,(
0b000,
0b000,
0b000,
0b000,
0b110,
0b000,
0b000,
0b000,
0b110,
0b000,
0b000
)),59:(3,0,3,(
0b000,
0b000,
0b000,
0b000,
0b110,
0b000,
0b000,
0b000,
0b110,
0b010,
0b100
)),60:(5,0,5,(
0b00000,
0b00000,
0b00000,
0b00110,
0b01100,
0b11000,
0b01100,
0b00110,
0b00000,
0b00000,
0b00000
)),61:(6,0,6,(
0b000000,
0b000000,
0b000000,
0b000000,
0b111110,
0b000000,
0b111110,
0b000000,
0b000000,
0b000000,
0b000000
)),62:(5,0,5,(
0b00000,
0b00000,
0b00000,
0b11000,
0b01100,
0b00110,
0b01100,
0b11000,
0b00000,
0b00000,
0b00000
)),63:(6,0,6,(
0b000000,
0b000000,
0b111100,
0b000110,
0b001100,
0b011000,
0b011000,
0b000000,
0b011000,
0b000000,
0b000000
)),64:(10,0,10,(
0b0000000000,
0b0000000000,
0b0011111000,
0b0110001100,
0b1100110110,
0b1101010110,
0b1101111100,
0b0110000000,
0b0011111100,
0b0000000000,
0b0000000000
)),65:(6,0,6,(
0b000000,
0b000000,
0b011100,
0b111110,
0b110110,
0b110110,
0b111110,
0b110110,
0b110110,
0b000000,
0b000000
)),66:(6,0,6,(
0b000000,
0b000000,
0b111100,
0b110110,
0b110110,
0b111100,
0b110110,
0b110110,
0b111110,
0b000000,
0b000000
)),67:(6,0,6,(
0b000000,
0b000000,
0b111110,
0b110110,
0b110000,
0b110000,
0b110000,
0b110110,
0b111110,
0b000000,
0b000000
)),68:(6,0,6,(
0b000000,
0b000000,
0b111100,
0b110110,
0b110110,
0b110110,
0b110110,
0b110110,
0b111100,
0b000000,
0b000000
)),69:(6,0,6,(
0b000000,
0b000000,
0b111110,
0b110000,
0b110000,
0b111100,
0b110000,
0b110000,
0b111110,
0b000000,
0b000000
)),70:(6,0,6,(
0b000000,
0b000000,
0b111110,
0b110000,
0b110000,
0b111100,
0b110000,
0b110000,
0b110000,
0b000000,
0b000000
)),71:(6,0,6,(
0b000000,
0b000000,
0b011110,
0b110000,
0b110000,
0b110110,
0b110010,
0b110010,
0b011110,
0b000000,
0b000000
)),72:(6,0,6,(
0b000000,
0b000000,
0b110110,
0b110110,
0b110110,
0b111110,
0b110110,
0b110110,
0b110110,
0b000000,
0b000000
)),73:(3,0,3,(
0b000,
0b000,
0b110,
0b110,
0b110,
0b110,
0b110,
0b110,
0b110,
0b000,
0b000
)),74:(6,0,6,(
0b000000,
0b000000,
0b000110,
0b000110,
0b000110,
0b000110,
0b000110,
0b110110,
0b111100,
0b000000,
0b000000
)),75:(6,0,6,(
0b000000,
0b000000,
0b110110,
0b110110,
0b111100,
0b111000,
0b111100,
0b110110,
0b110110,
0b000000,
0b000000
)),76:(6,0,6,(
0b000000,
0b000000,
0b110000,
0b110000,
0b110000,
0b110000,
0b110000,
0b110000,
0b111110,
0b000000,
0b000000
)),77:(8,0,8,(
0b00000000,
0b00000000,
0b11000110,
0b11000110,
0b11101110,
0b11111110,
0b11010110,
0b11000110,
0b11000110,
0b00000000,
0b00000000
)),78:(7,0,7,(
0b0000000,
0b0000000,
0b1100110,
0b1110110,
0b1111110,
0b1111110,
0b1101110,
0b1100110,
0b1100110,
0b0000000,
0b0000000
)),79:(6,0,6,(
0b000000,
0b000000,
0b011100,
0b110110,
0b110110,
0b110110,
0b110110,
0b110110,
0b011100,
0b000000,
0b000000
)),80:(6,0,6,(
0b000000,
0b000000,
0b111100,
0b110110,
0b110110,
0b111100,
0b110000,
0b110000,
0b110000,
0b000000,
0b000000
)),81:(6,0,6,(
0b000000,
0b000000,
0b011100,
0b110110,
0b110110,
0b110110,
0b110110,
0b110110,
0b011100,
0b000110,
0b000000
)),82:(6,0,6,(
0b000000,
0b000000,
0b111100,
0b110110,
0b110110,
0b111100,
0b110110,
0b110110,
0b110110,
0b000000,
0b000000
)),83:(6,0,6,(
0b000000,
0b000000,
0b011100,
0b110110,
0b110000,
0b011100,
0b000110,
0b110110,
0b011100,
0b000000,
0b000000
)),84:(7,0,7,(
0b0000000,
0b0000000,
0b1111110,
0b0011000,
0b0011000,
0b0011000,
0b0011000,
0b0011000,
0b0011000,
0b0000000,
0b0000000
)),85:(6,0,6,(
0b000000,
0b000000,
0b110110,
0b110110,
0b110110,
0b110110,
0b110110,
0b110110,
0b011110,
0b000000,
0b000000
)),86:(6,0,6,(
0b000000,
0b000000,
0b110110,
0b110110,
0b110110,
0b110110,
0b110110,
0b011100,
0b001000,
0b000000,
0b000000
)),87:(8,0,8,(
0b00000000,
0b00000000,
0b11011010,
0b11011010,
0b11011010,
0b11011010,
0b11011010,
0b11111110,
0b11101100,
0b00000000,
0b00000000
)),88:(6,0,6,(
0b000000,
0b000000,
0b110110,
0b110110,
0b111110,
0b011100,
0b111110,
0b110110,
0b110110,
0b000000,
0b000000
)),89:(7,0,7,(
0b0000000,
0b0000000,
0b1100110,
0b1100110,
0b1100110,
0b0111100,
0b0011000,
0b0011000,
0b0011000,
0b0000000,
0b0000000
)),90:(6,0,6,(
0b000000,
0b000000,
0b111110,
0b000110,
0b001100,
0b011000,
0b110000,
0b110000,
0b111110,
0b000000,
0b000000
)),91:(4,0,4,(
0b0000,
0b1110,
0b1100,
0b1100,
0b1100,
0b1100,
0b1100,
0b1100,
0b1100,
0b1110,
0b0000
)),92:(6,0,6,(
0b000000,
0b000000,
0b110000,
0b110000,
0b011000,
0b001100,
0b001100,
0b000110,
0b000110,
0b000000,
0b000000
)),93:(4,0,4,(
0b0000,
0b1110,
0b0110,
0b0110,
0b0110,
0b0110,
0b0110,
0b0110,
0b0110,
0b1110,
0b0000
)),94:(6,0,6,(
0b000000,
0b000000,
0b001000,
0b011100,
0b110110,
0b100010,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000
)),95:(5,0,5,(
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b11111,
0b00000
)),96:(4,0,4,(
0b0000,
0b0000,
0b1100,
0b0010,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000
)),97:(6,0,6,(
0b000000,
0b000000,
0b000000,
0b000000,
0b111100,
0b000110,
0b011110,
0b100110,
0b111110,
0b000000,
0b000000
)),98:(6,0,6,(
0b000000,
0b000000,
0b110000,
0b110000,
0b111100,
0b110110,
0b110110,
0b110110,
0b111100,
0b000000,
0b000000
)),99:(6,0,6,(
0b000000,
0b000000,
0b000000,
0b000000,
0b011100,
0b110110,
0b110000,
0b110010,
0b011100,
0b000000,
0b000000
)),100:(6,0,6,(
0b000000,
0b000000,
0b000110,
0b000110,
0b011110,
0b110110,
0b110110,
0b110110,
0b011110,
0b000000,
0b000000
)),101:(6,0,6,(
0b000000,
0b000000,
0b000000,
0b000000,
0b011100,
0b110110,
0b111110,
0b110000,
0b011110,
0b000000,
0b000000
)),102:(5,0,5,(
0b00000,
0b00000,
0b00111,
0b01100,
0b11110,
0b01100,
0b01100,
0b01100,
0b01100,
0b00000,
0b00000
)),103:(6,0,6,(
0b000000,
0b000000,
0b000000,
0b000000,
0b011110,
0b110110,
0b110110,
0b110110,
0b011110,
0b000110,
0b111100
)),104:(6,0,6,(
0b000000,
0b000000,
0b110000,
0b110000,
0b111100,
0b110110,
0b110110,
0b110110,
0b110110,
0b000000,
0b000000
)),105:(3,0,3,(
0b000,
0b000,
0b110,
0b000,
0b110,
0b110,
0b110,
0b110,
0b110,
0b000,
0b000
)),106:(4,0,4,(
0b0000,
0b0000,
0b0110,
0b0000,
0b0110,
0b0110,
0b0110,
0b0110,
0b0110,
0b0110,
0b1100
)),107:(6,0,6,(
0b000000,
0b000000,
0b110000,
0b110000,
0b110110,
0b111100,
0b111100,
0b110110,
0b110110,
0b000000,
0b000000
)),108:(3,0,3,(
0b000,
0b000,
0b110,
0b110,
0b110,
0b110,
0b110,
0b110,
0b110,
0b000,
0b000
)),109:(9,0,9,(
0b000000000,
0b000000000,
0b000000000,
0b000000000,
0b111011100,
0b110110110,
0b110110110,
0b110110110,
0b110110110,
0b000000000,
0b000000000
)),110:(6,0,6,(
0b000000,
0b000000,
0b000000,
0b000000,
0b111100,
0b110110,
0b110110,
0b110110,
0b110110,
0b000000,
0b000000
)),111:(6,0,6,(
0b000000,
0b000000,
0b000000,
0b000000,
0b011100,
0b110110,
0b110110,
0b110110,
0b011100,
0b000000,
0b000000
)),112:(6,0,6,(
0b000000,
0b000000,
0b000000,
0b000000,
0b111100,
0b110110,
0b110110,
0b110110,
0b111100,
0b110000,
0b110000
)),113:(6,0,6,(
0b000000,
0b000000,
0b000000,
0b000000,
0b011110,
0b110110,
0b110110,
0b110110,
0b011110,
0b000110,
0b000110
)),114:(5,0,5,(
0b00000,
0b00000,
0b00000,
0b00000,
0b10110,
0b11110,
0b11000,
0b11000,
0b11000,
0b00000,
0b00000
)),115:(5,0,5,(
0b00000,
0b00000,
0b00000,
0b00000,
0b11110,
0b11010,
0b01100,
0b10110,
0b11110,
0b00000,
0b00000
)),116:(6,0,6,(
0b000000,
0b000000,
0b000000,
0b011000,
0b111110,
0b011000,
0b011000,
0b011000,
0b001110,
0b000000,
0b000000
)),117:(6,0,6,(
0b000000,
0b000000,
0b000000,
0b000000,
0b110110,
0b110110,
0b110110,
0b110110,
0b011110,
0b000000,
0b000000
)),118:(6,0,6,(
0b000000,
0b000000,
0b000000,
0b000000,
0b110110,
0b110110,
0b110110,
0b011100,
0b001000,
0b000000,
0b000000
)),119:(9,0,9,(
0b000000000,
0b000000000,
0b000000000,
0b000000000,
0b110110110,
0b110110110,
0b110110110,
0b111111110,
0b011001100,
0b000000000,
0b000000000
)),120:(6,0,6,(
0b000000,
0b000000,
0b000000,
0b000000,
0b110110,
0b110110,
0b011100,
0b110110,
0b110110,
0b000000,
0b000000
)),121:(6,0,6,(
0b000000,
0b000000,
0b000000,
0b000000,
0b110110,
0b110110,
0b110110,
0b011100,
0b001100,
0b011000,
0b110000
)),122:(6,0,6,(
0b000000,
0b000000,
0b000000,
0b000000,
0b111110,
0b001100,
0b011000,
0b110000,
0b111110,
0b000000,
0b000000
)),123:(5,0,5,(
0b00000,
0b00110,
0b01100,
0b01100,
0b01100,
0b11000,
0b01100,
0b01100,
0b01100,
0b00110,
0b00000
)),124:(3,0,3,(
0b000,
0b000,
0b110,
0b110,
0b110,
0b110,
0b110,
0b110,
0b110,
0b110,
0b110
)),125:(5,0,5,(
0b00000,
0b11000,
0b01100,
0b01100,
0b01100,
0b00110,
0b01100,
0b01100,
0b01100,
0b11000,
0b00000
)),126:(7,0,7,(
0b0000000,
0b0000000,
0b0000000,
0b0000000,
0b0110010,
0b1011010,
0b1001100,
0b0000000,
0b0000000,
0b0000000,
0b0000000
)),128:(9,0,9,(
0b000000000,
0b000000000,
0b000111100,
0b001100010,
0b111111000,
0b011000000,
0b111110000,
0b001100010,
0b000111100,
0b000000000,
0b000000000
)),130:(3,0,3,(
0b000,
0b000,
0b000,
0b000,
0b000,
0b000,
0b000,
0b000,
0b110,
0b010,
0b100
)),131:(9,0,9,(
0b000000000,
0b000000000,
0b000001110,
0b000011000,
0b001111100,
0b000110000,
0b000110000,
0b001100000,
0b001100000,
0b111000000,
0b000000000
)),132:(5,0,5,(
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b11110,
0b01010,
0b10100
)),133:(6,0,6,(
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b101010,
0b000000,
0b000000
)),134:(5,0,5,(
0b00000,
0b00000,
0b01100,
0b01100,
0b11110,
0b01100,
0b01100,
0b01100,
0b01100,
0b01100,
0b01100
)),135:(5,0,5,(
0b00000,
0b00000,
0b01100,
0b01100,
0b11110,
0b01100,
0b01100,
0b01100,
0b11110,
0b01100,
0b01100
)),136:(4,0,4,(
0b0000,
0b0000,
0b0100,
0b1010,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000
)),137:(17,0,17,(
0b00000000000000000,
0b00000000000000000,
0b01110000100000000,
0b11011001100000000,
0b11011011000000000,
0b01110110111011100,
0b00001101101110110,
0b00011001101110110,
0b00110000111011100,
0b00000000000000000,
0b00000000000000000
)),138:(6,0,6,(
0b010100,
0b001000,
0b000000,
0b011110,
0b111000,
0b011100,
0b001110,
0b000110,
0b111100,
0b000000,
0b000000
)),139:(5,0,5,(
0b00000,
0b00000,
0b00000,
0b00110,
0b01100,
0b11000,
0b01100,
0b00110,
0b00000,
0b00000,
0b00000
)),140:(10,0,10,(
0b0000000000,
0b0000000000,
0b0011111110,
0b0110011000,
0b1100011000,
0b1100011110,
0b1100011000,
0b0110011000,
0b0011111110,
0b0000000000,
0b0000000000
)),141:(10,0,10,(
0b0000000000,
0b0000100000,
0b0001110000,
0b0011011000,
0b0110001100,
0b1100000110,
0b0110001100,
0b0011011000,
0b0001110000,
0b0000100000,
0b0000000000
)),142:(10,0,10,(
0b0001110000,
0b0011111000,
0b0011111000,
0b0101110100,
0b1111111110,
0b1111111110,
0b1111111110,
0b0110101100,
0b0001110000,
0b0011111000,
0b0000000000
)),143:(10,0,10,(
0b0000000000,
0b0111011100,
0b1101110110,
0b1000100010,
0b1000000010,
0b1100000110,
0b0110001100,
0b0011011000,
0b0001110000,
0b0000100000,
0b0000000000
)),144:(10,0,10,(
0b0000100000,
0b0001110000,
0b0011111000,
0b0111111100,
0b1111111110,
0b1111111110,
0b1111111110,
0b0110101100,
0b0001110000,
0b0011111000,
0b0000000000
)),145:(3,0,3,(
0b000,
0b010,
0b100,
0b110,
0b000,
0b000,
0b000,
0b000,
0b000,
0b000,
0b000
)),146:(3,0,3,(
0b000,
0b110,
0b010,
0b100,
0b000,
0b000,
0b000,
0b000,
0b000,
0b000,
0b000
)),147:(5,0,5,(
0b00000,
0b01010,
0b10100,
0b11110,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000
)),148:(5,0,5,(
0b00000,
0b11110,
0b01010,
0b10100,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000
)),149:(4,0,4,(
0b0000,
0b0000,
0b0000,
0b0000,
0b1110,
0b1110,
0b1110,
0b0000,
0b0000,
0b0000,
0b0000
)),150:(4,0,4,(
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b1111,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000
)),151:(6,0,6,(
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b111111,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000
)),152:(7,0,7,(
0b0000000,
0b0000000,
0b0000000,
0b0110010,
0b1011010,
0b1001100,
0b0000000,
0b0000000,
0b0000000,
0b0000000,
0b0000000
)),153:(10,0,10,(
0b0000000000,
0b0000000000,
0b1110100010,
0b0100110110,
0b0100101010,
0b0000000000,
0b0000000000,
0b0000000000,
0b0000000000,
0b0000000000,
0b0000000000
)),154:(5,0,5,(
0b00000,
0b01010,
0b00100,
0b00000,
0b01110,
0b11000,
0b11110,
0b00110,
0b11100,
0b00000,
0b00000
)),155:(5,0,5,(
0b00000,
0b00000,
0b00000,
0b11000,
0b01100,
0b00110,
0b01100,
0b11000,
0b00000,
0b00000,
0b00000
)),156:(10,0,10,(
0b0000000000,
0b0000000000,
0b0000000000,
0b0000000000,
0b0111011100,
0b1101110110,
0b1101111110,
0b1101110000,
0b0111011110,
0b0000000000,
0b0000000000
)),157:(8,0,8,(
0b00000000,
0b00000000,
0b00000010,
0b00000110,
0b00001100,
0b00011000,
0b11110000,
0b11100000,
0b11100000,
0b00000000,
0b00000000
)),158:(8,0,8,(
0b00000000,
0b00000000,
0b00111000,
0b01101100,
0b01101100,
0b01101100,
0b00111000,
0b11101100,
0b11000110,
0b00000000,
0b00000000
)),159:(7,0,7,(
0b0000000,
0b0100100,
0b0000000,
0b1100110,
0b1100110,
0b0111100,
0b0011000,
0b0011000,
0b0011000,
0b0000000,
0b0000000
)),160:(2,0,2,(
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00
)),161:(3,0,3,(
0b000,
0b000,
0b000,
0b000,
0b110,
0b000,
0b110,
0b110,
0b110,
0b110,
0b110
)),162:(6,0,6,(
0b000000,
0b000000,
0b000000,
0b000100,
0b011110,
0b110100,
0b110100,
0b110100,
0b011110,
0b000100,
0b000000
)),163:(7,0,7,(
0b0000000,
0b0000000,
0b0011100,
0b0110000,
0b0110000,
0b1111100,
0b0110000,
0b0110000,
0b1111110,
0b0000000,
0b0000000
)),164:(8,0,8,(
0b00000000,
0b00000000,
0b10111010,
0b01111100,
0b11000110,
0b11000110,
0b11000110,
0b01111100,
0b10111010,
0b00000000,
0b00000000
)),165:(7,0,7,(
0b0000000,
0b0000000,
0b1100010,
0b0110100,
0b1111110,
0b0011000,
0b1111110,
0b0011000,
0b0011000,
0b0000000,
0b0000000
)),166:(3,0,3,(
0b000,
0b000,
0b110,
0b110,
0b110,
0b110,
0b000,
0b110,
0b110,
0b110,
0b110
)),167:(6,0,6,(
0b000000,
0b011100,
0b110110,
0b011000,
0b111100,
0b110110,
0b011110,
0b001100,
0b110110,
0b011100,
0b000000
)),168:(4,0,4,(
0b0000,
0b0000,
0b0000,
0b1010,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000
)),169:(8,0,8,(
0b00000000,
0b00000000,
0b00111000,
0b01000100,
0b10111010,
0b10100010,
0b10111010,
0b01000100,
0b00111000,
0b00000000,
0b00000000
)),170:(6,0,6,(
0b000000,
0b000000,
0b011110,
0b110110,
0b011110,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000
)),171:(8,0,8,(
0b00000000,
0b00000000,
0b00000000,
0b00000000,
0b00110110,
0b01101100,
0b11011000,
0b01101100,
0b00110110,
0b00000000,
0b00000000
)),172:(6,0,6,(
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b111110,
0b000010,
0b000010,
0b000000,
0b000000,
0b000000
)),173:(5,0,5,(
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b11110,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000
)),174:(8,0,8,(
0b00000000,
0b00000000,
0b00111000,
0b01000100,
0b10111010,
0b10110010,
0b10101010,
0b01000100,
0b00111000,
0b00000000,
0b00000000
)),175:(6,0,6,(
0b000000,
0b111110,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000
)),176:(5,0,5,(
0b00000,
0b01100,
0b10010,
0b10010,
0b01100,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000
)),177:(6,0,6,(
0b000000,
0b000000,
0b001000,
0b001000,
0b111110,
0b001000,
0b001000,
0b111110,
0b000000,
0b000000,
0b000000
)),178:(4,0,4,(
0b0000,
0b0000,
0b1110,
0b0010,
0b0100,
0b1110,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000
)),179:(4,0,4,(
0b0000,
0b0000,
0b1110,
0b0100,
0b0010,
0b1110,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000
)),180:(4,0,4,(
0b0000,
0b0000,
0b0110,
0b1000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000
)),181:(6,0,6,(
0b000000,
0b000000,
0b000000,
0b000000,
0b110110,
0b110110,
0b110110,
0b110110,
0b111110,
0b110000,
0b110000
)),182:(7,0,7,(
0b0000000,
0b0000000,
0b0111110,
0b1110110,
0b1110110,
0b0110110,
0b0010110,
0b0010110,
0b0010110,
0b0000000,
0b0000000
)),183:(2,0,2,(
0b00,
0b00,
0b00,
0b00,
0b00,
0b10,
0b00,
0b00,
0b00,
0b00,
0b00
)),184:(4,0,4,(
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0100,
0b0010,
0b1100
)),185:(2,0,2,(
0b00,
0b00,
0b10,
0b10,
0b10,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00
)),186:(6,0,6,(
0b000000,
0b000000,
0b011100,
0b110110,
0b011100,
0b000000,
0b111110,
0b000000,
0b000000,
0b000000,
0b000000
)),187:(8,0,8,(
0b00000000,
0b00000000,
0b00000000,
0b00000000,
0b11011000,
0b01101100,
0b00110110,
0b01101100,
0b11011000,
0b00000000,
0b00000000
)),188:(9,0,9,(
0b000000000,
0b110000000,
0b110001100,
0b110011000,
0b110110000,
0b001101100,
0b011010100,
0b110011110,
0b000000100,
0b000000000,
0b000000000
)),189:(9,0,9,(
0b000000000,
0b110000000,
0b110001100,
0b110011000,
0b110110000,
0b001101110,
0b011000110,
0b110001100,
0b000001110,
0b000000000,
0b000000000
)),190:(9,0,9,(
0b000000000,
0b111000000,
0b001001100,
0b011011000,
0b001110000,
0b111101100,
0b011010100,
0b110011110,
0b000000100,
0b000000000,
0b000000000
)),191:(6,0,6,(
0b000000,
0b000000,
0b001100,
0b000000,
0b001100,
0b001100,
0b011000,
0b110000,
0b011110,
0b000000,
0b000000
)),192:(6,0,6,(
0b010000,
0b001000,
0b000000,
0b011100,
0b110110,
0b110110,
0b111110,
0b110110,
0b110110,
0b000000,
0b000000
)),193:(6,0,6,(
0b000100,
0b001000,
0b000000,
0b011100,
0b110110,
0b110110,
0b111110,
0b110110,
0b110110,
0b000000,
0b000000
)),194:(6,0,6,(
0b001000,
0b010100,
0b000000,
0b011100,
0b110110,
0b110110,
0b111110,
0b110110,
0b110110,
0b000000,
0b000000
)),195:(6,0,6,(
0b011010,
0b101100,
0b000000,
0b011100,
0b110110,
0b110110,
0b111110,
0b110110,
0b110110,
0b000000,
0b000000
)),196:(6,0,6,(
0b000000,
0b010100,
0b000000,
0b011100,
0b110110,
0b110110,
0b111110,
0b110110,
0b110110,
0b000000,
0b000000
)),197:(6,0,6,(
0b001000,
0b010100,
0b001000,
0b011100,
0b110110,
0b110110,
0b111110,
0b110110,
0b110110,
0b000000,
0b000000
)),198:(9,0,9,(
0b000000000,
0b000000000,
0b011111110,
0b110011000,
0b110011000,
0b111111110,
0b110011000,
0b110011000,
0b110011110,
0b000000000,
0b000000000
)),199:(6,0,6,(
0b000000,
0b000000,
0b001110,
0b011000,
0b110000,
0b110000,
0b110000,
0b011000,
0b001110,
0b000100,
0b001000
)),200:(5,0,5,(
0b01000,
0b00100,
0b00000,
0b11110,
0b11000,
0b11100,
0b11000,
0b11000,
0b11110,
0b00000,
0b00000
)),201:(5,0,5,(
0b00100,
0b01000,
0b00000,
0b11110,
0b11000,
0b11100,
0b11000,
0b11000,
0b11110,
0b00000,
0b00000
)),202:(5,0,5,(
0b00100,
0b01010,
0b00000,
0b11110,
0b11000,
0b11100,
0b11000,
0b11000,
0b11110,
0b00000,
0b00000
)),203:(5,0,5,(
0b00000,
0b01010,
0b00000,
0b11110,
0b11000,
0b11100,
0b11000,
0b11000,
0b11110,
0b00000,
0b00000
)),204:(3,0,3,(
0b100,
0b010,
0b000,
0b110,
0b110,
0b110,
0b110,
0b110,
0b110,
0b000,
0b000
)),205:(3,0,3,(
0b010,
0b100,
0b000,
0b110,
0b110,
0b110,
0b110,
0b110,
0b110,
0b000,
0b000
)),206:(3,0,3,(
0b010,
0b101,
0b000,
0b110,
0b110,
0b110,
0b110,
0b110,
0b110,
0b000,
0b000
)),207:(3,0,3,(
0b000,
0b101,
0b000,
0b110,
0b110,
0b110,
0b110,
0b110,
0b110,
0b000,
0b000
)),208:(8,0,8,(
0b00000000,
0b00000000,
0b01111000,
0b01101100,
0b01100110,
0b11110110,
0b01100110,
0b01101100,
0b01111000,
0b00000000,
0b00000000
)),209:(6,0,6,(
0b011010,
0b101100,
0b000000,
0b110010,
0b111010,
0b111110,
0b101110,
0b100110,
0b100010,
0b000000,
0b000000
)),210:(6,0,6,(
0b010000,
0b001000,
0b000000,
0b011100,
0b110110,
0b110110,
0b110110,
0b110110,
0b011100,
0b000000,
0b000000
)),211:(6,0,6,(
0b000100,
0b001000,
0b000000,
0b011100,
0b110110,
0b110110,
0b110110,
0b110110,
0b011100,
0b000000,
0b000000
)),212:(6,0,6,(
0b001000,
0b010100,
0b000000,
0b011100,
0b110110,
0b110110,
0b110110,
0b110110,
0b011100,
0b000000,
0b000000
)),213:(6,0,6,(
0b011010,
0b101100,
0b000000,
0b011100,
0b110110,
0b110110,
0b110110,
0b110110,
0b011100,
0b000000,
0b000000
)),214:(6,0,6,(
0b000000,
0b010100,
0b000000,
0b011100,
0b110110,
0b110110,
0b110110,
0b110110,
0b011100,
0b000000,
0b000000
)),215:(6,0,6,(
0b000000,
0b000000,
0b000000,
0b000000,
0b110110,
0b011100,
0b011100,
0b110110,
0b000000,
0b000000,
0b000000
)),216:(8,0,8,(
0b00000000,
0b00000000,
0b00111010,
0b01101100,
0b11001110,
0b11010110,
0b11100110,
0b01101100,
0b10111000,
0b00000000,
0b00000000
)),217:(6,0,6,(
0b001000,
0b000100,
0b000000,
0b110110,
0b110110,
0b110110,
0b110110,
0b110110,
0b011110,
0b000000,
0b000000
)),218:(6,0,6,(
0b000100,
0b001000,
0b000000,
0b110110,
0b110110,
0b110110,
0b110110,
0b110110,
0b011110,
0b000000,
0b000000
)),219:(6,0,6,(
0b001000,
0b010100,
0b000000,
0b110110,
0b110110,
0b110110,
0b110110,
0b110110,
0b011110,
0b000000,
0b000000
)),220:(6,0,6,(
0b000000,
0b010100,
0b000000,
0b110110,
0b110110,
0b110110,
0b110110,
0b110110,
0b011110,
0b000000,
0b000000
)),221:(7,0,7,(
0b0001000,
0b0010000,
0b0000000,
0b1100110,
0b1100110,
0b0111100,
0b0011000,
0b0011000,
0b0011000,
0b0000000,
0b0000000
)),222:(7,0,7,(
0b0000000,
0b0000000,
0b1100000,
0b1111100,
0b1100110,
0b1100110,
0b1100110,
0b1111100,
0b1100000,
0b0000000,
0b0000000
)),223:(8,0,8,(
0b00000000,
0b00000000,
0b01111000,
0b11001100,
0b11001000,
0b11011100,
0b11001110,
0b11000110,
0b11011100,
0b00000000,
0b00000000
)),224:(6,0,6,(
0b000000,
0b001000,
0b000100,
0b000000,
0b111100,
0b000110,
0b011110,
0b100110,
0b111110,
0b000000,
0b000000
)),225:(6,0,6,(
0b000000,
0b000100,
0b001000,
0b000000,
0b111100,
0b000110,
0b011110,
0b100110,
0b111110,
0b000000,
0b000000
)),226:(6,0,6,(
0b000000,
0b001000,
0b010100,
0b000000,
0b111100,
0b000110,
0b011110,
0b100110,
0b111110,
0b000000,
0b000000
)),227:(6,0,6,(
0b000000,
0b011010,
0b101100,
0b000000,
0b111100,
0b000110,
0b011110,
0b100110,
0b111110,
0b000000,
0b000000
)),228:(6,0,6,(
0b000000,
0b000000,
0b010100,
0b000000,
0b111100,
0b000110,
0b011110,
0b100110,
0b111110,
0b000000,
0b000000
)),229:(6,0,6,(
0b001100,
0b010010,
0b001100,
0b000000,
0b111100,
0b000110,
0b011110,
0b100110,
0b111110,
0b000000,
0b000000
)),230:(9,0,9,(
0b000000000,
0b000000000,
0b000000000,
0b000000000,
0b011101100,
0b000110110,
0b011111110,
0b110110000,
0b011111110,
0b000000000,
0b000000000
)),231:(5,0,5,(
0b00000,
0b00000,
0b00000,
0b00000,
0b01110,
0b11000,
0b11000,
0b11000,
0b01110,
0b00100,
0b01000
)),232:(6,0,6,(
0b000000,
0b001000,
0b000100,
0b000000,
0b011100,
0b110110,
0b111110,
0b110000,
0b011110,
0b000000,
0b000000
)),233:(6,0,6,(
0b000000,
0b000100,
0b001000,
0b000000,
0b011100,
0b110110,
0b111110,
0b110000,
0b011110,
0b000000,
0b000000
)),234:(6,0,6,(
0b000000,
0b001000,
0b010100,
0b000000,
0b011100,
0b110110,
0b111110,
0b110000,
0b011110,
0b000000,
0b000000
)),235:(6,0,6,(
0b000000,
0b000000,
0b010100,
0b000000,
0b011100,
0b110110,
0b111110,
0b110000,
0b011110,
0b000000,
0b000000
)),236:(3,0,3,(
0b000,
0b100,
0b010,
0b000,
0b110,
0b110,
0b110,
0b110,
0b110,
0b000,
0b000
)),237:(3,0,3,(
0b000,
0b010,
0b100,
0b000,
0b110,
0b110,
0b110,
0b110,
0b110,
0b000,
0b000
)),238:(3,0,3,(
0b000,
0b010,
0b101,
0b000,
0b110,
0b110,
0b110,
0b110,
0b110,
0b000,
0b000
)),239:(3,0,3,(
0b000,
0b000,
0b101,
0b000,
0b110,
0b110,
0b110,
0b110,
0b110,
0b000,
0b000
)),240:(6,0,6,(
0b000000,
0b000000,
0b111000,
0b111000,
0b001100,
0b011100,
0b110110,
0b110110,
0b011100,
0b000000,
0b000000
)),241:(6,0,6,(
0b000000,
0b011010,
0b101100,
0b000000,
0b111100,
0b110110,
0b110110,
0b110110,
0b110110,
0b000000,
0b000000
)),242:(6,0,6,(
0b000000,
0b001000,
0b000100,
0b000000,
0b011100,
0b110110,
0b110110,
0b110110,
0b011100,
0b000000,
0b000000
)),243:(6,0,6,(
0b000000,
0b000100,
0b001000,
0b000000,
0b011100,
0b110110,
0b110110,
0b110110,
0b011100,
0b000000,
0b000000
)),244:(6,0,6,(
0b000000,
0b001000,
0b010100,
0b000000,
0b011100,
0b110110,
0b110110,
0b110110,
0b011100,
0b000000,
0b000000
)),245:(6,0,6,(
0b000000,
0b011010,
0b101100,
0b000000,
0b011100,
0b110110,
0b110110,
0b110110,
0b011100,
0b000000,
0b000000
)),246:(6,0,6,(
0b000000,
0b000000,
0b010100,
0b000000,
0b011100,
0b110110,
0b110110,
0b110110,
0b011100,
0b000000,
0b000000
)),247:(7,0,7,(
0b0000000,
0b0000000,
0b0000000,
0b0011000,
0b0000000,
0b1111110,
0b0000000,
0b0011000,
0b0000000,
0b0000000,
0b0000000
)),248:(8,0,8,(
0b00000000,
0b00000000,
0b00000000,
0b00000000,
0b00111010,
0b01101100,
0b01111100,
0b01101100,
0b10111000,
0b00000000,
0b00000000
)),249:(6,0,6,(
0b000000,
0b001000,
0b000100,
0b000000,
0b110110,
0b110110,
0b110110,
0b110110,
0b011110,
0b000000,
0b000000
)),250:(6,0,6,(
0b000000,
0b000100,
0b001000,
0b000000,
0b110110,
0b110110,
0b110110,
0b110110,
0b011110,
0b000000,
0b000000
)),251:(6,0,6,(
0b000000,
0b001000,
0b010100,
0b000000,
0b110110,
0b110110,
0b110110,
0b110110,
0b011110,
0b000000,
0b000000
)),252:(6,0,6,(
0b000000,
0b000000,
0b010100,
0b000000,
0b110110,
0b110110,
0b110110,
0b110110,
0b011110,
0b000000,
0b000000
)),253:(6,0,6,(
0b000000,
0b000100,
0b001000,
0b000000,
0b110110,
0b110110,
0b110110,
0b011100,
0b001100,
0b011000,
0b110000
)),254:(6,0,6,(
0b000000,
0b000000,
0b000000,
0b110000,
0b111100,
0b110110,
0b110110,
0b110110,
0b111100,
0b110000,
0b110000
)),255:(6,0,6,(
0b000000,
0b000000,
0b010100,
0b000000,
0b110110,
0b110110,
0b110110,
0b011100,
0b001100,
0b011000,
0b110000
)),}
# generated by fontconv
#fontType 36864
#firstChar 9
#lastChar 255
#maxWidth 11
#kernMax 0
#nDescent 0
#fRectWidth 11
#fRectHeight 11
#ascent 9
#descent 2
#leading 0
#averageWidth 5.31
FONTS['casual'] = {
9:(2,0,2,(
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00
)),20:(10,0,10,(
0b0111100000,
0b1111110000,
0b1000010010,
0b1111110100,
0b0111101000,
0b0011000000,
0b0011011010,
0b0011000000,
0b0111001000,
0b0111000100,
0b0011000010
)),21:(5,0,5,(
0b00000,
0b00100,
0b01000,
0b10000,
0b00000,
0b11010,
0b00000,
0b10000,
0b01000,
0b00100,
0b00000
)),22:(7,0,7,(
0b0000000,
0b0000000,
0b0000000,
0b0000010,
0b0000100,
0b0001000,
0b0010000,
0b1100000,
0b1100000,
0b0000000,
0b0000000
)),23:(8,0,8,(
0b00000000,
0b00010000,
0b00101000,
0b00101000,
0b00101000,
0b00010000,
0b00101000,
0b11000100,
0b11000010,
0b00000000,
0b00000000
)),24:(6,0,6,(
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b101010,
0b000000,
0b000000
)),25:(5,0,5,(
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000
)),32:(3,0,3,(
0b000,
0b000,
0b000,
0b000,
0b000,
0b000,
0b000,
0b000,
0b000,
0b000,
0b000
)),33:(2,0,2,(
0b00,
0b00,
0b10,
0b10,
0b10,
0b10,
0b10,
0b00,
0b10,
0b00,
0b00
)),34:(4,0,4,(
0b0000,
0b1010,
0b1010,
0b1010,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000
)),35:(8,0,8,(
0b00000000,
0b00000000,
0b00010100,
0b00010100,
0b01111110,
0b00101000,
0b11111100,
0b01010000,
0b01010000,
0b00000000,
0b00000000
)),36:(6,0,6,(
0b000000,
0b001000,
0b011110,
0b101000,
0b111100,
0b011110,
0b001010,
0b111100,
0b001000,
0b000000,
0b000000
)),37:(8,0,8,(
0b00000000,
0b00000000,
0b01111110,
0b10100100,
0b10101000,
0b01010100,
0b00101010,
0b01001010,
0b01000100,
0b00000000,
0b00000000
)),38:(8,0,8,(
0b00000000,
0b00000000,
0b00110000,
0b01001000,
0b00110000,
0b01010000,
0b10001010,
0b10001100,
0b01110110,
0b00000000,
0b00000000
)),39:(2,0,2,(
0b00,
0b10,
0b10,
0b10,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00
)),40:(4,0,4,(
0b0000,
0b0110,
0b0100,
0b1100,
0b1000,
0b1000,
0b1000,
0b1000,
0b1000,
0b0100,
0b0000
)),41:(4,0,4,(
0b0000,
0b0100,
0b0010,
0b0010,
0b0010,
0b0010,
0b0010,
0b0110,
0b0100,
0b1100,
0b0000
)),42:(6,0,6,(
0b000000,
0b010100,
0b001000,
0b110110,
0b001000,
0b010100,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000
)),43:(6,0,6,(
0b000000,
0b000000,
0b000000,
0b001000,
0b001000,
0b111110,
0b001000,
0b001000,
0b000000,
0b000000,
0b000000
)),44:(3,0,3,(
0b000,
0b000,
0b000,
0b000,
0b000,
0b000,
0b000,
0b000,
0b110,
0b010,
0b100
)),45:(5,0,5,(
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b11110,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000
)),46:(2,0,2,(
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b10,
0b00,
0b00
)),47:(4,0,4,(
0b0000,
0b0000,
0b0010,
0b0010,
0b0100,
0b0100,
0b0100,
0b1000,
0b1000,
0b0000,
0b0000
)),48:(5,0,5,(
0b00000,
0b00000,
0b01100,
0b10010,
0b10010,
0b10010,
0b10010,
0b10010,
0b01100,
0b00000,
0b00000
)),49:(5,0,5,(
0b00000,
0b00000,
0b00100,
0b01100,
0b00100,
0b00100,
0b00100,
0b00100,
0b00100,
0b00000,
0b00000
)),50:(5,0,5,(
0b00000,
0b00000,
0b01100,
0b10010,
0b00010,
0b00100,
0b01000,
0b10000,
0b11110,
0b00000,
0b00000
)),51:(5,0,5,(
0b00000,
0b00000,
0b01100,
0b10010,
0b00010,
0b00100,
0b00010,
0b10010,
0b01100,
0b00000,
0b00000
)),52:(5,0,5,(
0b00000,
0b00000,
0b00110,
0b01010,
0b10010,
0b10010,
0b11110,
0b00010,
0b00010,
0b00000,
0b00000
)),53:(5,0,5,(
0b00000,
0b00000,
0b01110,
0b10000,
0b10000,
0b11100,
0b00010,
0b00010,
0b11100,
0b00000,
0b00000
)),54:(5,0,5,(
0b00000,
0b00000,
0b00110,
0b01000,
0b10000,
0b11100,
0b10010,
0b10010,
0b01100,
0b00000,
0b00000
)),55:(5,0,5,(
0b00000,
0b00000,
0b11110,
0b00010,
0b00010,
0b00100,
0b01000,
0b01000,
0b01000,
0b00000,
0b00000
)),56:(5,0,5,(
0b00000,
0b00000,
0b01100,
0b10010,
0b10010,
0b01100,
0b10010,
0b10010,
0b01100,
0b00000,
0b00000
)),57:(5,0,5,(
0b00000,
0b00000,
0b01100,
0b10010,
0b10010,
0b01110,
0b00010,
0b00100,
0b11000,
0b00000,
0b00000
)),58:(2,0,2,(
0b00,
0b00,
0b00,
0b00,
0b10,
0b00,
0b00,
0b10,
0b00,
0b00,
0b00
)),59:(3,0,3,(
0b000,
0b000,
0b000,
0b000,
0b010,
0b000,
0b000,
0b000,
0b010,
0b010,
0b100
)),60:(4,0,4,(
0b0000,
0b0000,
0b0000,
0b0010,
0b0100,
0b1000,
0b0100,
0b0010,
0b0000,
0b0000,
0b0000
)),61:(6,0,6,(
0b000000,
0b000000,
0b000000,
0b000000,
0b111110,
0b000000,
0b111110,
0b000000,
0b000000,
0b000000,
0b000000
)),62:(5,0,5,(
0b00000,
0b00000,
0b00000,
0b01000,
0b00100,
0b00010,
0b00100,
0b01000,
0b00000,
0b00000,
0b00000
)),63:(5,0,5,(
0b00000,
0b00000,
0b01100,
0b10010,
0b00010,
0b00100,
0b01000,
0b00000,
0b01000,
0b00000,
0b00000
)),64:(8,0,8,(
0b00000000,
0b00000000,
0b00111000,
0b01000100,
0b10011010,
0b10101010,
0b10110100,
0b01000000,
0b00111000,
0b00000000,
0b00000000
)),65:(6,0,6,(
0b000000,
0b000000,
0b001100,
0b010010,
0b010010,
0b011110,
0b110010,
0b010010,
0b010010,
0b000000,
0b000000
)),66:(5,0,5,(
0b00000,
0b00000,
0b11100,
0b10010,
0b10010,
0b11100,
0b10010,
0b10010,
0b11100,
0b00000,
0b00000
)),67:(5,0,5,(
0b00000,
0b00000,
0b01100,
0b10010,
0b10000,
0b10000,
0b10000,
0b10000,
0b01110,
0b00000,
0b00000
)),68:(5,0,5,(
0b00000,
0b00000,
0b11100,
0b10010,
0b10010,
0b10010,
0b10010,
0b10010,
0b11110,
0b00000,
0b00000
)),69:(5,0,5,(
0b00000,
0b00000,
0b01110,
0b10000,
0b10000,
0b11100,
0b10000,
0b10000,
0b11110,
0b00000,
0b00000
)),70:(5,0,5,(
0b00000,
0b00000,
0b01110,
0b10000,
0b10000,
0b11100,
0b10000,
0b10000,
0b10000,
0b00000,
0b00000
)),71:(6,0,6,(
0b000000,
0b000000,
0b000110,
0b001000,
0b010000,
0b100110,
0b100010,
0b100010,
0b011110,
0b000000,
0b000000
)),72:(6,0,6,(
0b000000,
0b000000,
0b010010,
0b010010,
0b010010,
0b011110,
0b110010,
0b010010,
0b010010,
0b000000,
0b000000
)),73:(2,0,2,(
0b00,
0b00,
0b10,
0b10,
0b10,
0b10,
0b10,
0b10,
0b10,
0b00,
0b00
)),74:(4,0,4,(
0b0000,
0b0000,
0b0110,
0b0010,
0b0010,
0b0010,
0b0010,
0b0010,
0b1100,
0b0000,
0b0000
)),75:(5,0,5,(
0b00000,
0b00000,
0b10010,
0b10010,
0b10100,
0b11000,
0b10100,
0b10010,
0b10010,
0b00000,
0b00000
)),76:(5,0,5,(
0b00000,
0b00000,
0b10000,
0b10000,
0b10000,
0b10000,
0b10000,
0b10000,
0b11110,
0b00000,
0b00000
)),77:(7,0,7,(
0b0000000,
0b0000000,
0b1000010,
0b1000110,
0b1101010,
0b1010010,
0b1000010,
0b1000010,
0b1000100,
0b0000000,
0b0000000
)),78:(6,0,6,(
0b000000,
0b000000,
0b100010,
0b110010,
0b101010,
0b100110,
0b100010,
0b100010,
0b100010,
0b000000,
0b000000
)),79:(6,0,6,(
0b000000,
0b000000,
0b001100,
0b010010,
0b100010,
0b100010,
0b100010,
0b100100,
0b011000,
0b000000,
0b000000
)),80:(5,0,5,(
0b00000,
0b00000,
0b11100,
0b10010,
0b10010,
0b11100,
0b10000,
0b10000,
0b10000,
0b00000,
0b00000
)),81:(6,0,6,(
0b000000,
0b000000,
0b001100,
0b010010,
0b100010,
0b100010,
0b101010,
0b100100,
0b011010,
0b000000,
0b000000
)),82:(5,0,5,(
0b00000,
0b00000,
0b11100,
0b10010,
0b10010,
0b11110,
0b10100,
0b10010,
0b10010,
0b00000,
0b00000
)),83:(5,0,5,(
0b00000,
0b00000,
0b01100,
0b10010,
0b10000,
0b01100,
0b00010,
0b00010,
0b11100,
0b00000,
0b00000
)),84:(6,0,6,(
0b000000,
0b000000,
0b111110,
0b001000,
0b001000,
0b001000,
0b001000,
0b001000,
0b001000,
0b000000,
0b000000
)),85:(6,0,6,(
0b000000,
0b000000,
0b100010,
0b100010,
0b100010,
0b100010,
0b100010,
0b100010,
0b011100,
0b000000,
0b000000
)),86:(6,0,6,(
0b000000,
0b000000,
0b100010,
0b100010,
0b100010,
0b100010,
0b100100,
0b101000,
0b010000,
0b000000,
0b000000
)),87:(7,0,7,(
0b0000000,
0b0000000,
0b1000100,
0b1000010,
0b1000010,
0b1010010,
0b1011010,
0b1101100,
0b1000100,
0b0000000,
0b0000000
)),88:(6,0,6,(
0b000000,
0b000000,
0b100010,
0b100010,
0b010100,
0b001000,
0b010100,
0b100010,
0b100010,
0b000000,
0b000000
)),89:(6,0,6,(
0b000000,
0b000000,
0b100010,
0b100010,
0b010100,
0b001000,
0b001000,
0b001000,
0b001000,
0b000000,
0b000000
)),90:(5,0,5,(
0b00000,
0b00000,
0b11110,
0b00010,
0b00100,
0b01000,
0b10000,
0b10000,
0b11110,
0b00000,
0b00000
)),91:(3,0,3,(
0b000,
0b110,
0b100,
0b100,
0b100,
0b100,
0b100,
0b100,
0b100,
0b110,
0b000
)),92:(4,0,4,(
0b0000,
0b0000,
0b1000,
0b1000,
0b0100,
0b0100,
0b0100,
0b0010,
0b0010,
0b0000,
0b0000
)),93:(3,0,3,(
0b000,
0b110,
0b010,
0b010,
0b010,
0b010,
0b010,
0b010,
0b010,
0b110,
0b000
)),94:(6,0,6,(
0b000000,
0b000000,
0b001000,
0b010100,
0b100010,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000
)),95:(4,0,4,(
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b1111,
0b0000
)),96:(3,0,3,(
0b000,
0b100,
0b010,
0b000,
0b000,
0b000,
0b000,
0b000,
0b000,
0b000,
0b000
)),97:(5,0,5,(
0b00000,
0b00000,
0b00000,
0b00000,
0b01100,
0b00010,
0b01110,
0b10010,
0b11110,
0b00000,
0b00000
)),98:(5,0,5,(
0b00000,
0b00000,
0b10000,
0b10000,
0b11000,
0b10100,
0b10010,
0b10010,
0b11100,
0b00000,
0b00000
)),99:(5,0,5,(
0b00000,
0b00000,
0b00000,
0b00000,
0b01100,
0b10010,
0b10000,
0b10000,
0b01110,
0b00000,
0b00000
)),100:(5,0,5,(
0b00000,
0b00000,
0b00010,
0b00010,
0b00110,
0b01010,
0b10010,
0b10010,
0b01110,
0b00000,
0b00000
)),101:(5,0,5,(
0b00000,
0b00000,
0b00000,
0b00000,
0b01100,
0b10010,
0b11100,
0b10000,
0b01110,
0b00000,
0b00000
)),102:(4,0,4,(
0b0000,
0b0000,
0b0011,
0b0100,
0b0110,
0b1100,
0b0100,
0b0100,
0b0100,
0b0000,
0b0000
)),103:(6,0,6,(
0b000000,
0b000000,
0b000000,
0b000000,
0b011010,
0b100100,
0b100100,
0b011000,
0b000100,
0b100010,
0b011100
)),104:(5,0,5,(
0b00000,
0b00000,
0b10000,
0b10000,
0b10100,
0b11010,
0b10010,
0b10010,
0b10010,
0b00000,
0b00000
)),105:(2,0,2,(
0b00,
0b00,
0b10,
0b00,
0b10,
0b10,
0b10,
0b10,
0b10,
0b00,
0b00
)),106:(3,0,3,(
0b000,
0b000,
0b010,
0b000,
0b010,
0b010,
0b010,
0b010,
0b010,
0b010,
0b100
)),107:(5,0,5,(
0b00000,
0b00000,
0b10000,
0b10000,
0b10010,
0b10100,
0b11100,
0b10010,
0b10010,
0b00000,
0b00000
)),108:(2,0,2,(
0b00,
0b00,
0b10,
0b10,
0b10,
0b10,
0b10,
0b10,
0b10,
0b00,
0b00
)),109:(8,0,8,(
0b00000000,
0b00000000,
0b00000000,
0b00000000,
0b10100110,
0b11011010,
0b10010010,
0b10010010,
0b10010010,
0b00000000,
0b00000000
)),110:(5,0,5,(
0b00000,
0b00000,
0b00000,
0b00000,
0b10100,
0b11010,
0b10010,
0b10010,
0b10010,
0b00000,
0b00000
)),111:(5,0,5,(
0b00000,
0b00000,
0b00000,
0b00000,
0b00100,
0b01010,
0b10010,
0b10010,
0b01100,
0b00000,
0b00000
)),112:(5,0,5,(
0b00000,
0b00000,
0b00000,
0b00000,
0b11000,
0b10100,
0b10010,
0b10010,
0b11100,
0b10000,
0b10000
)),113:(5,0,5,(
0b00000,
0b00000,
0b00000,
0b00000,
0b00110,
0b01010,
0b10010,
0b10010,
0b01110,
0b00010,
0b00010
)),114:(5,0,5,(
0b00000,
0b00000,
0b00000,
0b00000,
0b10110,
0b11000,
0b10000,
0b10000,
0b10000,
0b00000,
0b00000
)),115:(5,0,5,(
0b00000,
0b00000,
0b00000,
0b00000,
0b01110,
0b10000,
0b11100,
0b00010,
0b11100,
0b00000,
0b00000
)),116:(5,0,5,(
0b00000,
0b00000,
0b01000,
0b01000,
0b01110,
0b11000,
0b01000,
0b01000,
0b00110,
0b00000,
0b00000
)),117:(5,0,5,(
0b00000,
0b00000,
0b00000,
0b00000,
0b10010,
0b10010,
0b10010,
0b10010,
0b01110,
0b00000,
0b00000
)),118:(5,0,5,(
0b00000,
0b00000,
0b00000,
0b00000,
0b10010,
0b10010,
0b10010,
0b10100,
0b01000,
0b00000,
0b00000
)),119:(6,0,6,(
0b000000,
0b000000,
0b000000,
0b000000,
0b101010,
0b101010,
0b101010,
0b101010,
0b111100,
0b000000,
0b000000
)),120:(5,0,5,(
0b00000,
0b00000,
0b00000,
0b00000,
0b10010,
0b10010,
0b01100,
0b10010,
0b10010,
0b00000,
0b00000
)),121:(5,0,5,(
0b00000,
0b00000,
0b00000,
0b00000,
0b10010,
0b10010,
0b10010,
0b01100,
0b00100,
0b01000,
0b10000
)),122:(5,0,5,(
0b00000,
0b00000,
0b00000,
0b00000,
0b11110,
0b00100,
0b01000,
0b10000,
0b11110,
0b00000,
0b00000
)),123:(4,0,4,(
0b0000,
0b0010,
0b0100,
0b0100,
0b0100,
0b1000,
0b0100,
0b0100,
0b0100,
0b0010,
0b0000
)),124:(2,0,2,(
0b00,
0b10,
0b10,
0b10,
0b10,
0b10,
0b10,
0b10,
0b10,
0b10,
0b00
)),125:(4,0,4,(
0b0000,
0b1000,
0b0100,
0b0100,
0b0100,
0b0010,
0b0100,
0b0100,
0b0100,
0b1000,
0b0000
)),126:(7,0,7,(
0b0000000,
0b0000000,
0b0000000,
0b0000000,
0b0010000,
0b0111010,
0b1001100,
0b0000000,
0b0000000,
0b0000000,
0b0000000
)),128:(8,0,8,(
0b00000000,
0b00000000,
0b00011100,
0b00100010,
0b11111000,
0b01000000,
0b11110000,
0b00100010,
0b00011100,
0b00000000,
0b00000000
)),130:(3,0,3,(
0b000,
0b000,
0b000,
0b000,
0b000,
0b000,
0b000,
0b000,
0b110,
0b010,
0b100
)),131:(5,0,5,(
0b00000,
0b00000,
0b00110,
0b01000,
0b11100,
0b01000,
0b01000,
0b01000,
0b01000,
0b10000,
0b00000
)),132:(6,0,6,(
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b110110,
0b010010,
0b100100
)),133:(6,0,6,(
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b101010,
0b000000,
0b000000
)),134:(6,0,6,(
0b000000,
0b000000,
0b001000,
0b001000,
0b111110,
0b001000,
0b001000,
0b001000,
0b001000,
0b001000,
0b001000
)),135:(6,0,6,(
0b000000,
0b000000,
0b001000,
0b001000,
0b111110,
0b001000,
0b001000,
0b001000,
0b111110,
0b001000,
0b001000
)),136:(4,0,4,(
0b0000,
0b0000,
0b0100,
0b1010,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000
)),137:(11,0,11,(
0b00000000000,
0b00000000000,
0b01000100000,
0b10100100000,
0b10101000000,
0b01010100100,
0b00101011010,
0b01001011010,
0b01000100100,
0b00000000000,
0b00000000000
)),138:(5,0,5,(
0b01010,
0b00100,
0b00000,
0b01110,
0b10000,
0b01100,
0b00010,
0b00010,
0b11100,
0b00000,
0b00000
)),139:(4,0,4,(
0b0000,
0b0000,
0b0000,
0b0000,
0b0010,
0b0100,
0b1000,
0b0100,
0b0010,
0b0000,
0b0000
)),140:(8,0,8,(
0b00000000,
0b00000000,
0b00111110,
0b01001000,
0b10001000,
0b10001110,
0b10001000,
0b01001000,
0b00111110,
0b00000000,
0b00000000
)),141:(10,0,10,(
0b0000000000,
0b0000100000,
0b0001110000,
0b0011011000,
0b0110001100,
0b1100000110,
0b0110001100,
0b0011011000,
0b0001110000,
0b0000100000,
0b0000000000
)),142:(10,0,10,(
0b0001110000,
0b0011111000,
0b0011111000,
0b0101110100,
0b1111111110,
0b1111111110,
0b1111111110,
0b0110101100,
0b0001110000,
0b0011111000,
0b0000000000
)),143:(10,0,10,(
0b0000000000,
0b0111011100,
0b1101110110,
0b1000100010,
0b1000000010,
0b1100000110,
0b0110001100,
0b0011011000,
0b0001110000,
0b0000100000,
0b0000000000
)),144:(10,0,10,(
0b0000100000,
0b0001110000,
0b0011111000,
0b0111111100,
0b1111111110,
0b1111111110,
0b1111111110,
0b0110101100,
0b0001110000,
0b0011111000,
0b0000000000
)),145:(3,0,3,(
0b000,
0b010,
0b100,
0b110,
0b000,
0b000,
0b000,
0b000,
0b000,
0b000,
0b000
)),146:(3,0,3,(
0b000,
0b110,
0b010,
0b100,
0b000,
0b000,
0b000,
0b000,
0b000,
0b000,
0b000
)),147:(6,0,6,(
0b000000,
0b010010,
0b100100,
0b110110,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000
)),148:(6,0,6,(
0b000000,
0b110110,
0b010010,
0b100100,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000
)),149:(4,0,4,(
0b0000,
0b0000,
0b0000,
0b0000,
0b1110,
0b1110,
0b1110,
0b0000,
0b0000,
0b0000,
0b0000
)),150:(4,0,4,(
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b1111,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000
)),151:(7,0,7,(
0b0000000,
0b0000000,
0b0000000,
0b0000000,
0b0000000,
0b1111111,
0b0000000,
0b0000000,
0b0000000,
0b0000000,
0b0000000
)),152:(7,0,7,(
0b0000000,
0b0000000,
0b0000000,
0b0110010,
0b1001100,
0b0000000,
0b0000000,
0b0000000,
0b0000000,
0b0000000,
0b0000000
)),153:(9,0,9,(
0b000000000,
0b010000000,
0b111111100,
0b010101010,
0b011101010,
0b000000000,
0b000000000,
0b000000000,
0b000000000,
0b000000000,
0b000000000
)),154:(4,0,4,(
0b0000,
0b1010,
0b0100,
0b0000,
0b0110,
0b1000,
0b0100,
0b0010,
0b1100,
0b0000,
0b0000
)),155:(4,0,4,(
0b0000,
0b0000,
0b0000,
0b0000,
0b1000,
0b0100,
0b0010,
0b0100,
0b1000,
0b0000,
0b0000
)),156:(8,0,8,(
0b00000000,
0b00000000,
0b00000000,
0b00000000,
0b01101100,
0b10010010,
0b10011110,
0b10010000,
0b01101110,
0b00000000,
0b00000000
)),157:(7,0,7,(
0b0000000,
0b0000000,
0b0000000,
0b0000010,
0b0000100,
0b0001000,
0b0010000,
0b1100000,
0b1100000,
0b0000000,
0b0000000
)),158:(7,0,7,(
0b0000000,
0b0001000,
0b0010100,
0b0010100,
0b0010100,
0b0001000,
0b0010100,
0b1100010,
0b1100010,
0b0000000,
0b0000000
)),159:(6,0,6,(
0b000000,
0b010100,
0b000000,
0b100010,
0b100010,
0b010100,
0b001000,
0b001000,
0b001000,
0b000000,
0b000000
)),160:(2,0,2,(
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00
)),161:(2,0,2,(
0b00,
0b00,
0b00,
0b00,
0b10,
0b00,
0b10,
0b10,
0b10,
0b10,
0b10
)),162:(6,0,6,(
0b000000,
0b000000,
0b001000,
0b011100,
0b101010,
0b101000,
0b101000,
0b101010,
0b011100,
0b001000,
0b000000
)),163:(6,0,6,(
0b000000,
0b000000,
0b001110,
0b010000,
0b010000,
0b111100,
0b010000,
0b010000,
0b111000,
0b000110,
0b000000
)),164:(8,0,8,(
0b00000000,
0b00000000,
0b10010010,
0b01101100,
0b01000100,
0b10000010,
0b01000100,
0b01101100,
0b10010010,
0b00000000,
0b00000000
)),165:(6,0,6,(
0b000000,
0b000000,
0b100010,
0b010100,
0b111110,
0b001000,
0b111110,
0b001000,
0b001000,
0b000000,
0b000000
)),166:(2,0,2,(
0b00,
0b00,
0b10,
0b10,
0b10,
0b10,
0b00,
0b10,
0b10,
0b10,
0b10
)),167:(5,0,5,(
0b00000,
0b01100,
0b10010,
0b01000,
0b10100,
0b10010,
0b01010,
0b00100,
0b10010,
0b01100,
0b00000
)),168:(4,0,4,(
0b0000,
0b0000,
0b0000,
0b1010,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000
)),169:(8,0,8,(
0b00000000,
0b00000000,
0b00000000,
0b00111000,
0b01000100,
0b10111010,
0b10100010,
0b10111010,
0b01000100,
0b00111000,
0b00000000
)),170:(5,0,5,(
0b00000,
0b00000,
0b01110,
0b10010,
0b01110,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000
)),171:(6,0,6,(
0b000000,
0b000000,
0b000000,
0b000000,
0b001010,
0b010100,
0b101000,
0b010100,
0b001010,
0b000000,
0b000000
)),172:(6,0,6,(
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b111110,
0b000010,
0b000010,
0b000000,
0b000000,
0b000000
)),173:(4,0,4,(
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b1110,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000
)),174:(8,0,8,(
0b00000000,
0b00000000,
0b00000000,
0b00111000,
0b01000100,
0b10111010,
0b10110010,
0b10101010,
0b01000100,
0b00111000,
0b00000000
)),175:(6,0,6,(
0b000000,
0b111110,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000
)),176:(5,0,5,(
0b00000,
0b01100,
0b10010,
0b10010,
0b01100,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000
)),177:(6,0,6,(
0b000000,
0b000000,
0b001000,
0b001000,
0b111110,
0b001000,
0b001000,
0b111110,
0b000000,
0b000000,
0b000000
)),178:(4,0,4,(
0b0000,
0b0000,
0b1110,
0b0010,
0b0100,
0b1110,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000
)),179:(4,0,4,(
0b0000,
0b0000,
0b1110,
0b0100,
0b0010,
0b1110,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000
)),180:(4,0,4,(
0b0000,
0b1100,
0b0100,
0b1000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000
)),181:(5,0,5,(
0b00000,
0b00000,
0b00000,
0b00000,
0b10010,
0b10010,
0b10010,
0b10010,
0b11110,
0b10000,
0b10000
)),182:(6,0,6,(
0b000000,
0b000000,
0b011110,
0b111010,
0b111010,
0b011010,
0b001010,
0b001010,
0b001010,
0b000000,
0b000000
)),183:(2,0,2,(
0b00,
0b00,
0b00,
0b00,
0b00,
0b10,
0b00,
0b00,
0b00,
0b00,
0b00
)),184:(4,0,4,(
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0100,
0b0010,
0b1100
)),185:(2,0,2,(
0b00,
0b00,
0b10,
0b10,
0b10,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00
)),186:(5,0,5,(
0b00000,
0b00000,
0b01100,
0b10010,
0b01100,
0b00000,
0b11110,
0b00000,
0b00000,
0b00000,
0b00000
)),187:(6,0,6,(
0b000000,
0b000000,
0b000000,
0b000000,
0b101000,
0b010100,
0b001010,
0b010100,
0b101000,
0b000000,
0b000000
)),188:(8,0,8,(
0b00000000,
0b10000000,
0b10000100,
0b10001000,
0b10010000,
0b00100100,
0b01001100,
0b10011110,
0b00000100,
0b00000000,
0b00000000
)),189:(8,0,8,(
0b00000000,
0b10000000,
0b10000100,
0b10001000,
0b10010000,
0b00101100,
0b01000010,
0b10000100,
0b00001110,
0b00000000,
0b00000000
)),190:(8,0,8,(
0b00000000,
0b11100000,
0b01000010,
0b00100100,
0b11101000,
0b00010010,
0b00100110,
0b01001111,
0b00000010,
0b00000000,
0b00000000
)),191:(5,0,5,(
0b00000,
0b00000,
0b00100,
0b00000,
0b00100,
0b01000,
0b10000,
0b10010,
0b01100,
0b00000,
0b00000
)),192:(6,0,6,(
0b001000,
0b000100,
0b000000,
0b001100,
0b010010,
0b011110,
0b110010,
0b010010,
0b010010,
0b000000,
0b000000
)),193:(6,0,6,(
0b000100,
0b001000,
0b000000,
0b001100,
0b010010,
0b011110,
0b110010,
0b010010,
0b010010,
0b000000,
0b000000
)),194:(6,0,6,(
0b000100,
0b001010,
0b000000,
0b001100,
0b010010,
0b011110,
0b110010,
0b010010,
0b010010,
0b000000,
0b000000
)),195:(6,0,6,(
0b001010,
0b010100,
0b000000,
0b001100,
0b010010,
0b011110,
0b110010,
0b010010,
0b010010,
0b000000,
0b000000
)),196:(6,0,6,(
0b000000,
0b001010,
0b000000,
0b001100,
0b010010,
0b011110,
0b110010,
0b010010,
0b010010,
0b000000,
0b000000
)),197:(6,0,6,(
0b000100,
0b001010,
0b000100,
0b001100,
0b010010,
0b011110,
0b110010,
0b010010,
0b010010,
0b000000,
0b000000
)),198:(7,0,7,(
0b0000000,
0b0000000,
0b0111110,
0b1001000,
0b1001000,
0b1111110,
0b1001000,
0b1001000,
0b1001110,
0b0000000,
0b0000000
)),199:(5,0,5,(
0b00000,
0b00000,
0b00110,
0b01000,
0b10000,
0b10000,
0b10000,
0b01000,
0b00110,
0b00100,
0b01000
)),200:(5,0,5,(
0b01000,
0b00100,
0b00000,
0b01110,
0b10000,
0b11100,
0b10000,
0b10000,
0b11110,
0b00000,
0b00000
)),201:(5,0,5,(
0b00100,
0b01000,
0b00000,
0b01110,
0b10000,
0b11100,
0b10000,
0b10000,
0b11110,
0b00000,
0b00000
)),202:(5,0,5,(
0b00100,
0b01010,
0b00000,
0b01110,
0b10000,
0b11100,
0b10000,
0b10000,
0b11110,
0b00000,
0b00000
)),203:(5,0,5,(
0b00000,
0b01010,
0b00000,
0b01110,
0b10000,
0b11100,
0b10000,
0b10000,
0b11110,
0b00000,
0b00000
)),204:(3,0,3,(
0b100,
0b010,
0b000,
0b010,
0b010,
0b010,
0b010,
0b010,
0b010,
0b000,
0b000
)),205:(2,0,2,(
0b01,
0b10,
0b00,
0b10,
0b10,
0b10,
0b10,
0b10,
0b10,
0b00,
0b00
)),206:(3,0,3,(
0b010,
0b101,
0b000,
0b010,
0b010,
0b010,
0b010,
0b010,
0b010,
0b000,
0b000
)),207:(3,0,3,(
0b101,
0b000,
0b000,
0b010,
0b010,
0b010,
0b010,
0b010,
0b010,
0b000,
0b000
)),208:(9,0,9,(
0b000000000,
0b000000000,
0b011100000,
0b010010000,
0b010001000,
0b111001000,
0b010001000,
0b010010000,
0b011100000,
0b000000000,
0b000000000
)),209:(6,0,6,(
0b001010,
0b010100,
0b000000,
0b100010,
0b110010,
0b101010,
0b101010,
0b100110,
0b100010,
0b000000,
0b000000
)),210:(6,0,6,(
0b001000,
0b000100,
0b000000,
0b001100,
0b010010,
0b100010,
0b100010,
0b100100,
0b011000,
0b000000,
0b000000
)),211:(6,0,6,(
0b000100,
0b001000,
0b000000,
0b001100,
0b010010,
0b100010,
0b100010,
0b100100,
0b011000,
0b000000,
0b000000
)),212:(6,0,6,(
0b001000,
0b010100,
0b000000,
0b001100,
0b010010,
0b100010,
0b100010,
0b100100,
0b011000,
0b000000,
0b000000
)),213:(6,0,6,(
0b001010,
0b010100,
0b000000,
0b001100,
0b010010,
0b100010,
0b100010,
0b100100,
0b011000,
0b000000,
0b000000
)),214:(6,0,6,(
0b000000,
0b010100,
0b000000,
0b001100,
0b010010,
0b100010,
0b100010,
0b100100,
0b011000,
0b000000,
0b000000
)),215:(5,0,5,(
0b00000,
0b00000,
0b00000,
0b00000,
0b10010,
0b01100,
0b01100,
0b10010,
0b00000,
0b00000,
0b00000
)),216:(8,0,8,(
0b00000000,
0b00000000,
0b00111010,
0b01000100,
0b10001010,
0b10010010,
0b10100010,
0b01000100,
0b10111000,
0b00000000,
0b00000000
)),217:(6,0,6,(
0b001000,
0b000100,
0b000000,
0b100010,
0b100010,
0b100010,
0b100010,
0b100010,
0b011100,
0b000000,
0b000000
)),218:(6,0,6,(
0b000100,
0b001000,
0b000000,
0b100010,
0b100010,
0b100010,
0b100010,
0b100010,
0b011100,
0b000000,
0b000000
)),219:(6,0,6,(
0b001000,
0b010100,
0b000000,
0b100010,
0b100010,
0b100010,
0b100010,
0b100010,
0b011100,
0b000000,
0b000000
)),220:(6,0,6,(
0b000000,
0b010100,
0b000000,
0b100010,
0b100010,
0b100010,
0b100010,
0b100010,
0b011100,
0b000000,
0b000000
)),221:(6,0,6,(
0b000100,
0b001000,
0b000000,
0b100010,
0b100010,
0b011100,
0b001000,
0b001000,
0b001000,
0b000000,
0b000000
)),222:(6,0,6,(
0b000000,
0b000000,
0b100000,
0b111100,
0b100010,
0b100010,
0b100010,
0b111100,
0b100000,
0b000000,
0b000000
)),223:(6,0,6,(
0b000000,
0b000000,
0b011000,
0b100100,
0b100100,
0b101100,
0b100010,
0b100010,
0b101100,
0b000000,
0b000000
)),224:(5,0,5,(
0b00000,
0b01000,
0b00100,
0b00000,
0b01100,
0b00010,
0b01110,
0b10010,
0b11110,
0b00000,
0b00000
)),225:(5,0,5,(
0b00000,
0b00100,
0b01000,
0b00000,
0b01100,
0b00010,
0b01110,
0b10010,
0b11110,
0b00000,
0b00000
)),226:(5,0,5,(
0b00000,
0b00100,
0b01010,
0b00000,
0b01100,
0b00010,
0b01110,
0b10010,
0b11110,
0b00000,
0b00000
)),227:(5,0,5,(
0b00000,
0b01010,
0b10100,
0b00000,
0b01100,
0b00010,
0b01110,
0b10010,
0b11110,
0b00000,
0b00000
)),228:(5,0,5,(
0b00000,
0b00000,
0b01010,
0b00000,
0b01100,
0b00010,
0b01110,
0b10010,
0b11110,
0b00000,
0b00000
)),229:(5,0,5,(
0b00100,
0b01010,
0b00100,
0b00000,
0b01100,
0b00010,
0b01110,
0b10010,
0b11110,
0b00000,
0b00000
)),230:(9,0,9,(
0b000000000,
0b000000000,
0b000000000,
0b000000000,
0b011001100,
0b000110010,
0b011111110,
0b100110000,
0b111111110,
0b000000000,
0b000000000
)),231:(4,0,4,(
0b0000,
0b0000,
0b0000,
0b0000,
0b0110,
0b1000,
0b1000,
0b1000,
0b0110,
0b0100,
0b1000
)),232:(5,0,5,(
0b00000,
0b01000,
0b00100,
0b00000,
0b01100,
0b10010,
0b11100,
0b10000,
0b01110,
0b00000,
0b00000
)),233:(5,0,5,(
0b00000,
0b00010,
0b00100,
0b00000,
0b01100,
0b10010,
0b11100,
0b10000,
0b01110,
0b00000,
0b00000
)),234:(5,0,5,(
0b00000,
0b00100,
0b01010,
0b00000,
0b01100,
0b10010,
0b11100,
0b10000,
0b01110,
0b00000,
0b00000
)),235:(5,0,5,(
0b00000,
0b00000,
0b01010,
0b00000,
0b01100,
0b10010,
0b11100,
0b10000,
0b01110,
0b00000,
0b00000
)),236:(3,0,3,(
0b000,
0b100,
0b010,
0b000,
0b100,
0b100,
0b100,
0b100,
0b100,
0b000,
0b000
)),237:(3,0,3,(
0b000,
0b010,
0b100,
0b000,
0b100,
0b100,
0b100,
0b100,
0b100,
0b000,
0b000
)),238:(4,0,4,(
0b0000,
0b0100,
0b1010,
0b0000,
0b0100,
0b0100,
0b0100,
0b0100,
0b0100,
0b0000,
0b0000
)),239:(4,0,4,(
0b0000,
0b1010,
0b0000,
0b0000,
0b0100,
0b0100,
0b0100,
0b0100,
0b0100,
0b0000,
0b0000
)),240:(5,0,5,(
0b00000,
0b00000,
0b11000,
0b11000,
0b00100,
0b01100,
0b10010,
0b10010,
0b01100,
0b00000,
0b00000
)),241:(5,0,5,(
0b00000,
0b01010,
0b10100,
0b00000,
0b11100,
0b10010,
0b10010,
0b10010,
0b10010,
0b00000,
0b00000
)),242:(6,0,6,(
0b000000,
0b001000,
0b000100,
0b000000,
0b001100,
0b010010,
0b100010,
0b100010,
0b011100,
0b000000,
0b000000
)),243:(6,0,6,(
0b000000,
0b000100,
0b001000,
0b000000,
0b001100,
0b010010,
0b100010,
0b100010,
0b011100,
0b000000,
0b000000
)),244:(6,0,6,(
0b000000,
0b001000,
0b010100,
0b000000,
0b001100,
0b010010,
0b100010,
0b100010,
0b011100,
0b000000,
0b000000
)),245:(6,0,6,(
0b000000,
0b001010,
0b010100,
0b000000,
0b001100,
0b010010,
0b100010,
0b100010,
0b011100,
0b000000,
0b000000
)),246:(6,0,6,(
0b000000,
0b000000,
0b010100,
0b000000,
0b001100,
0b010010,
0b100010,
0b100010,
0b011100,
0b000000,
0b000000
)),247:(6,0,6,(
0b000000,
0b000000,
0b000000,
0b000000,
0b001000,
0b000000,
0b111110,
0b000000,
0b001000,
0b000000,
0b000000
)),248:(7,0,7,(
0b0000000,
0b0000000,
0b0000000,
0b0000000,
0b0011010,
0b0101100,
0b0110100,
0b0100100,
0b1011000,
0b0000000,
0b0000000
)),249:(5,0,5,(
0b00000,
0b01000,
0b00100,
0b00000,
0b10010,
0b10010,
0b10010,
0b10010,
0b01110,
0b00000,
0b00000
)),250:(5,0,5,(
0b00000,
0b00100,
0b01000,
0b00000,
0b10010,
0b10010,
0b10010,
0b10010,
0b01110,
0b00000,
0b00000
)),251:(5,0,5,(
0b00000,
0b00100,
0b01010,
0b00000,
0b10010,
0b10010,
0b10010,
0b10010,
0b01110,
0b00000,
0b00000
)),252:(5,0,5,(
0b00000,
0b00000,
0b01010,
0b00000,
0b10010,
0b10010,
0b10010,
0b10010,
0b01110,
0b00000,
0b00000
)),253:(6,0,6,(
0b000000,
0b000100,
0b001000,
0b000000,
0b100010,
0b100010,
0b010100,
0b001100,
0b001000,
0b010000,
0b100000
)),254:(5,0,5,(
0b00000,
0b00000,
0b10000,
0b10000,
0b11100,
0b10010,
0b10010,
0b10010,
0b11100,
0b10000,
0b10000
)),255:(6,0,6,(
0b000000,
0b000000,
0b010100,
0b000000,
0b100010,
0b100010,
0b010100,
0b001100,
0b001000,
0b010000,
0b100000
)),}
# generated by fontconv
#fontType 36864
#firstChar 9
#lastChar 255
#maxWidth 10
#kernMax 0
#nDescent 0
#fRectWidth 10
#fRectHeight 11
#ascent 9
#descent 2
#leading 0
#averageWidth 5.75
FONTS['casualbold'] = {
9:(2,0,2,(
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00
)),19:(5,0,5,(
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000
)),20:(10,0,10,(
0b0111100000,
0b1111110000,
0b1000010000,
0b1111110010,
0b0111100100,
0b0011001000,
0b0011000110,
0b0011001000,
0b0111000100,
0b0111000010,
0b0011000000
)),21:(5,0,5,(
0b00000,
0b00100,
0b01000,
0b10000,
0b00000,
0b11010,
0b00000,
0b10000,
0b01000,
0b00100,
0b00000
)),22:(8,0,8,(
0b00000000,
0b00000000,
0b00000110,
0b00001100,
0b00011000,
0b00110000,
0b11100000,
0b11100000,
0b11100000,
0b00000000,
0b00000000
)),23:(8,0,8,(
0b00000000,
0b00000000,
0b00111000,
0b01101100,
0b01101100,
0b01101100,
0b00111000,
0b11101100,
0b11000110,
0b00000000,
0b00000000
)),24:(6,0,6,(
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b101010,
0b000000,
0b000000
)),25:(5,0,5,(
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000
)),32:(2,0,2,(
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00
)),33:(3,0,3,(
0b000,
0b000,
0b110,
0b110,
0b110,
0b110,
0b110,
0b000,
0b110,
0b000,
0b000
)),34:(4,0,4,(
0b0000,
0b1010,
0b1010,
0b1010,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000
)),35:(10,0,10,(
0b0000000000,
0b0000000000,
0b0001101100,
0b0001101100,
0b0111111110,
0b0011011000,
0b1111111100,
0b0110110000,
0b0110110000,
0b0000000000,
0b0000000000
)),36:(6,0,6,(
0b000000,
0b001000,
0b011100,
0b101010,
0b111000,
0b011100,
0b001110,
0b101010,
0b011100,
0b001000,
0b000000
)),37:(9,0,9,(
0b000000000,
0b000000000,
0b011001000,
0b101001000,
0b101011000,
0b110110110,
0b001101010,
0b001001010,
0b001001100,
0b000000000,
0b000000000
)),38:(7,0,7,(
0b0000000,
0b0000000,
0b0010000,
0b0101000,
0b0101000,
0b0110000,
0b1011010,
0b1001100,
0b1110110,
0b0000000,
0b0000000
)),39:(2,0,2,(
0b00,
0b10,
0b10,
0b10,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00
)),40:(6,0,6,(
0b000000,
0b000110,
0b001100,
0b011000,
0b011000,
0b110000,
0b110000,
0b110000,
0b110000,
0b011000,
0b000000
)),41:(6,0,6,(
0b000000,
0b001100,
0b000110,
0b000110,
0b000110,
0b000110,
0b001100,
0b001100,
0b011000,
0b110000,
0b000000
)),42:(6,0,6,(
0b000000,
0b010100,
0b001000,
0b111110,
0b001000,
0b010100,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000
)),43:(6,0,6,(
0b000000,
0b000000,
0b000000,
0b001000,
0b001000,
0b111110,
0b001000,
0b001000,
0b000000,
0b000000,
0b000000
)),44:(3,0,3,(
0b000,
0b000,
0b000,
0b000,
0b000,
0b000,
0b000,
0b000,
0b110,
0b010,
0b100
)),45:(5,0,5,(
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b11110,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000
)),46:(2,0,2,(
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b10,
0b10,
0b00,
0b00
)),47:(5,0,5,(
0b00000,
0b00000,
0b00010,
0b00110,
0b00100,
0b01100,
0b01000,
0b11000,
0b10000,
0b00000,
0b00000
)),48:(6,0,6,(
0b000000,
0b000000,
0b011100,
0b110110,
0b110110,
0b110110,
0b110110,
0b110110,
0b011100,
0b000000,
0b000000
)),49:(6,0,6,(
0b000000,
0b000000,
0b001100,
0b011100,
0b001100,
0b001100,
0b001100,
0b001100,
0b001100,
0b000000,
0b000000
)),50:(6,0,6,(
0b000000,
0b000000,
0b011100,
0b110110,
0b000110,
0b001100,
0b011000,
0b110000,
0b111110,
0b000000,
0b000000
)),51:(6,0,6,(
0b000000,
0b000000,
0b011100,
0b110110,
0b000110,
0b001100,
0b000110,
0b110110,
0b011100,
0b000000,
0b000000
)),52:(6,0,6,(
0b000000,
0b000000,
0b001110,
0b011110,
0b110110,
0b110110,
0b111110,
0b000110,
0b000110,
0b000000,
0b000000
)),53:(6,0,6,(
0b000000,
0b000000,
0b011110,
0b110000,
0b110000,
0b111100,
0b000110,
0b000110,
0b111100,
0b000000,
0b000000
)),54:(6,0,6,(
0b000000,
0b000000,
0b001100,
0b011000,
0b110000,
0b111100,
0b110110,
0b110110,
0b011100,
0b000000,
0b000000
)),55:(6,0,6,(
0b000000,
0b000000,
0b111110,
0b000110,
0b001100,
0b001100,
0b011000,
0b011000,
0b011000,
0b000000,
0b000000
)),56:(6,0,6,(
0b000000,
0b000000,
0b011100,
0b110110,
0b110110,
0b011100,
0b110110,
0b110110,
0b011100,
0b000000,
0b000000
)),57:(6,0,6,(
0b000000,
0b000000,
0b011100,
0b110110,
0b110110,
0b011110,
0b000110,
0b001100,
0b011000,
0b000000,
0b000000
)),58:(3,0,3,(
0b000,
0b000,
0b000,
0b000,
0b110,
0b000,
0b000,
0b000,
0b110,
0b000,
0b000
)),59:(3,0,3,(
0b000,
0b000,
0b000,
0b000,
0b110,
0b000,
0b000,
0b000,
0b110,
0b010,
0b100
)),60:(5,0,5,(
0b00000,
0b00000,
0b00000,
0b00110,
0b01100,
0b11000,
0b01100,
0b00110,
0b00000,
0b00000,
0b00000
)),61:(6,0,6,(
0b000000,
0b000000,
0b000000,
0b000000,
0b111110,
0b000000,
0b111110,
0b000000,
0b000000,
0b000000,
0b000000
)),62:(5,0,5,(
0b00000,
0b00000,
0b00000,
0b11000,
0b01100,
0b00110,
0b01100,
0b11000,
0b00000,
0b00000,
0b00000
)),63:(6,0,6,(
0b000000,
0b000000,
0b011100,
0b100110,
0b000110,
0b001100,
0b011000,
0b000000,
0b011000,
0b000000,
0b000000
)),64:(8,0,8,(
0b00000000,
0b00000000,
0b00111000,
0b01000100,
0b10011010,
0b10101010,
0b10111100,
0b01000000,
0b00111100,
0b00000000,
0b00000000
)),65:(7,0,7,(
0b0000000,
0b0000000,
0b0011100,
0b0110110,
0b0110110,
0b0111110,
0b1110110,
0b0110110,
0b0110110,
0b0000000,
0b0000000
)),66:(6,0,6,(
0b000000,
0b000000,
0b111100,
0b110110,
0b110110,
0b111100,
0b110110,
0b110110,
0b111110,
0b000000,
0b000000
)),67:(6,0,6,(
0b000000,
0b000000,
0b011100,
0b110010,
0b110000,
0b110000,
0b110000,
0b110000,
0b011110,
0b000000,
0b000000
)),68:(6,0,6,(
0b000000,
0b000000,
0b111100,
0b110110,
0b110110,
0b110110,
0b110110,
0b110110,
0b111110,
0b000000,
0b000000
)),69:(5,0,5,(
0b00000,
0b00000,
0b01110,
0b11000,
0b11000,
0b11110,
0b11000,
0b11000,
0b11110,
0b00000,
0b00000
)),70:(5,0,5,(
0b00000,
0b00000,
0b01110,
0b11000,
0b11000,
0b11110,
0b11000,
0b11000,
0b11000,
0b00000,
0b00000
)),71:(6,0,6,(
0b000000,
0b000000,
0b001110,
0b011000,
0b110000,
0b110110,
0b110010,
0b110010,
0b011110,
0b000000,
0b000000
)),72:(7,0,7,(
0b0000000,
0b0000000,
0b0110110,
0b0110110,
0b0110110,
0b0111110,
0b1110110,
0b0110110,
0b0110110,
0b0000000,
0b0000000
)),73:(3,0,3,(
0b000,
0b000,
0b110,
0b110,
0b110,
0b110,
0b110,
0b110,
0b110,
0b000,
0b000
)),74:(5,0,5,(
0b00000,
0b00000,
0b01110,
0b00110,
0b00110,
0b00110,
0b00110,
0b00110,
0b11100,
0b00000,
0b00000
)),75:(6,0,6,(
0b000000,
0b000000,
0b110110,
0b110110,
0b111100,
0b111000,
0b111100,
0b110110,
0b110110,
0b000000,
0b000000
)),76:(6,0,6,(
0b000000,
0b000000,
0b110000,
0b110000,
0b110000,
0b110000,
0b110000,
0b110000,
0b011110,
0b000000,
0b000000
)),77:(8,0,8,(
0b00000000,
0b00000000,
0b11000110,
0b11101110,
0b11111110,
0b11010110,
0b11000110,
0b11000110,
0b11001100,
0b00000000,
0b00000000
)),78:(7,0,7,(
0b0000000,
0b0000000,
0b1100110,
0b1110110,
0b1110110,
0b1101110,
0b1101110,
0b1100110,
0b1100110,
0b0000000,
0b0000000
)),79:(6,0,6,(
0b000000,
0b000000,
0b001100,
0b010110,
0b110110,
0b110110,
0b110110,
0b110110,
0b011100,
0b000000,
0b000000
)),80:(6,0,6,(
0b000000,
0b000000,
0b111100,
0b110110,
0b110110,
0b111100,
0b110000,
0b110000,
0b110000,
0b000000,
0b000000
)),81:(6,0,6,(
0b000000,
0b000000,
0b001100,
0b010110,
0b110110,
0b110110,
0b110110,
0b110110,
0b011100,
0b000110,
0b000000
)),82:(6,0,6,(
0b000000,
0b000000,
0b111100,
0b110110,
0b110110,
0b111100,
0b110110,
0b110110,
0b110110,
0b000000,
0b000000
)),83:(6,0,6,(
0b000000,
0b000000,
0b011100,
0b110010,
0b011000,
0b001100,
0b000110,
0b000110,
0b111100,
0b000000,
0b000000
)),84:(7,0,7,(
0b0000000,
0b0000000,
0b1111110,
0b0011000,
0b0011000,
0b0011000,
0b0011000,
0b0011000,
0b0011000,
0b0000000,
0b0000000
)),85:(6,0,6,(
0b000000,
0b000000,
0b110110,
0b110110,
0b110110,
0b110110,
0b110110,
0b110110,
0b011110,
0b000000,
0b000000
)),86:(6,0,6,(
0b000000,
0b000000,
0b110110,
0b110110,
0b110110,
0b110110,
0b110110,
0b111100,
0b011000,
0b000000,
0b000000
)),87:(8,0,8,(
0b00000000,
0b00000000,
0b11001100,
0b11000110,
0b11000110,
0b11010110,
0b11111110,
0b11101110,
0b11000110,
0b00000000,
0b00000000
)),88:(6,0,6,(
0b000000,
0b000000,
0b110110,
0b110110,
0b110110,
0b011100,
0b110110,
0b110110,
0b110110,
0b000000,
0b000000
)),89:(7,0,7,(
0b0000000,
0b0000000,
0b1100110,
0b1100110,
0b1100110,
0b0111100,
0b0011000,
0b0011000,
0b0011000,
0b0000000,
0b0000000
)),90:(6,0,6,(
0b000000,
0b000000,
0b111110,
0b000110,
0b001110,
0b011100,
0b111000,
0b110000,
0b111110,
0b000000,
0b000000
)),91:(4,0,4,(
0b0000,
0b1110,
0b1100,
0b1100,
0b1100,
0b1100,
0b1100,
0b1100,
0b1100,
0b1110,
0b0000
)),92:(5,0,5,(
0b00000,
0b00000,
0b10000,
0b11000,
0b01000,
0b01100,
0b00100,
0b00110,
0b00010,
0b00000,
0b00000
)),93:(4,0,4,(
0b0000,
0b1110,
0b0110,
0b0110,
0b0110,
0b0110,
0b0110,
0b0110,
0b0110,
0b1110,
0b0000
)),94:(6,0,6,(
0b000000,
0b000000,
0b001000,
0b011100,
0b110110,
0b100010,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000
)),95:(4,0,4,(
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b1111,
0b0000
)),96:(4,0,4,(
0b0000,
0b0000,
0b1100,
0b0010,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000
)),97:(6,0,6,(
0b000000,
0b000000,
0b000000,
0b000000,
0b011100,
0b000110,
0b011110,
0b100110,
0b111110,
0b000000,
0b000000
)),98:(6,0,6,(
0b000000,
0b000000,
0b110000,
0b110000,
0b111000,
0b110100,
0b110110,
0b110110,
0b111100,
0b000000,
0b000000
)),99:(5,0,5,(
0b00000,
0b00000,
0b00000,
0b00000,
0b01100,
0b11010,
0b11000,
0b11000,
0b01110,
0b00000,
0b00000
)),100:(6,0,6,(
0b000000,
0b000000,
0b000110,
0b000110,
0b001110,
0b010110,
0b110110,
0b110110,
0b011110,
0b000000,
0b000000
)),101:(6,0,6,(
0b000000,
0b000000,
0b000000,
0b000000,
0b011100,
0b110010,
0b110100,
0b111000,
0b011110,
0b000000,
0b000000
)),102:(5,0,5,(
0b00000,
0b00000,
0b00111,
0b01100,
0b01110,
0b11100,
0b01100,
0b01100,
0b01100,
0b00000,
0b00000
)),103:(7,0,7,(
0b0000000,
0b0000000,
0b0000000,
0b0000000,
0b0111010,
0b1101100,
0b1101100,
0b0111000,
0b0001100,
0b1100100,
0b0111000
)),104:(6,0,6,(
0b000000,
0b000000,
0b110000,
0b110000,
0b110100,
0b111110,
0b110110,
0b110110,
0b110110,
0b000000,
0b000000
)),105:(3,0,3,(
0b000,
0b000,
0b110,
0b000,
0b110,
0b110,
0b110,
0b110,
0b110,
0b000,
0b000
)),106:(4,0,4,(
0b0000,
0b0000,
0b0110,
0b0000,
0b0110,
0b0110,
0b0110,
0b0110,
0b0110,
0b0110,
0b1100
)),107:(6,0,6,(
0b000000,
0b000000,
0b110000,
0b110000,
0b110110,
0b111100,
0b111100,
0b110110,
0b110110,
0b000000,
0b000000
)),108:(3,0,3,(
0b000,
0b000,
0b110,
0b110,
0b110,
0b110,
0b110,
0b110,
0b110,
0b000,
0b000
)),109:(9,0,9,(
0b000000000,
0b000000000,
0b000000000,
0b000000000,
0b110110100,
0b111111110,
0b110110110,
0b110110110,
0b110110110,
0b000000000,
0b000000000
)),110:(6,0,6,(
0b000000,
0b000000,
0b000000,
0b000000,
0b110100,
0b111110,
0b110110,
0b110110,
0b110110,
0b000000,
0b000000
)),111:(6,0,6,(
0b000000,
0b000000,
0b000000,
0b000000,
0b011100,
0b110110,
0b110110,
0b110110,
0b011100,
0b000000,
0b000000
)),112:(6,0,6,(
0b000000,
0b000000,
0b000000,
0b000000,
0b111000,
0b110100,
0b110110,
0b110110,
0b111100,
0b110000,
0b110000
)),113:(6,0,6,(
0b000000,
0b000000,
0b000000,
0b000000,
0b001110,
0b010110,
0b110110,
0b110110,
0b011110,
0b000110,
0b000110
)),114:(5,0,5,(
0b00000,
0b00000,
0b00000,
0b00000,
0b10110,
0b11110,
0b11000,
0b11000,
0b11000,
0b00000,
0b00000
)),115:(6,0,6,(
0b000000,
0b000000,
0b000000,
0b000000,
0b011110,
0b111000,
0b011100,
0b001110,
0b111100,
0b000000,
0b000000
)),116:(5,0,5,(
0b00000,
0b00000,
0b00000,
0b01100,
0b01110,
0b11100,
0b01100,
0b01100,
0b00110,
0b00000,
0b00000
)),117:(6,0,6,(
0b000000,
0b000000,
0b000000,
0b000000,
0b110110,
0b110110,
0b110110,
0b110110,
0b011110,
0b000000,
0b000000
)),118:(6,0,6,(
0b000000,
0b000000,
0b000000,
0b000000,
0b110110,
0b110110,
0b110110,
0b111100,
0b011000,
0b000000,
0b000000
)),119:(8,0,8,(
0b00000000,
0b00000000,
0b00000000,
0b00000000,
0b11011010,
0b11011010,
0b11011010,
0b11011010,
0b11111100,
0b00000000,
0b00000000
)),120:(6,0,6,(
0b000000,
0b000000,
0b000000,
0b000000,
0b110110,
0b110110,
0b011100,
0b110110,
0b110110,
0b000000,
0b000000
)),121:(6,0,6,(
0b000000,
0b000000,
0b000000,
0b000000,
0b110110,
0b110110,
0b110110,
0b011100,
0b001100,
0b011000,
0b110000
)),122:(5,0,5,(
0b00000,
0b00000,
0b00000,
0b00000,
0b11110,
0b00110,
0b01100,
0b11000,
0b11110,
0b00000,
0b00000
)),123:(5,0,5,(
0b00000,
0b00110,
0b01100,
0b01100,
0b01100,
0b11000,
0b01100,
0b01100,
0b01100,
0b00110,
0b00000
)),124:(3,0,3,(
0b000,
0b110,
0b110,
0b110,
0b110,
0b110,
0b110,
0b110,
0b110,
0b110,
0b000
)),125:(5,0,5,(
0b00000,
0b11000,
0b01100,
0b01100,
0b01100,
0b00110,
0b01100,
0b01100,
0b01100,
0b11000,
0b00000
)),126:(7,0,7,(
0b0000000,
0b0000000,
0b0000000,
0b0000000,
0b0010000,
0b0111010,
0b1001100,
0b0000000,
0b0000000,
0b0000000,
0b0000000
)),128:(8,0,8,(
0b00000000,
0b00000000,
0b00111100,
0b01100010,
0b11111000,
0b01100000,
0b11110000,
0b01100010,
0b00111100,
0b00000000,
0b00000000
)),130:(3,0,3,(
0b000,
0b000,
0b000,
0b000,
0b000,
0b000,
0b000,
0b000,
0b110,
0b010,
0b100
)),131:(8,0,8,(
0b00000000,
0b00000000,
0b00000110,
0b00001000,
0b00111100,
0b00010000,
0b00010000,
0b00100000,
0b00100000,
0b11000000,
0b00000000
)),132:(5,0,5,(
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b11110,
0b01010,
0b10100
)),133:(6,0,6,(
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b101010,
0b000000,
0b000000
)),134:(5,0,5,(
0b00000,
0b00000,
0b01100,
0b01100,
0b11110,
0b01100,
0b01100,
0b01100,
0b01100,
0b01100,
0b01100
)),135:(5,0,5,(
0b00000,
0b00000,
0b01100,
0b01100,
0b11110,
0b01100,
0b01100,
0b01100,
0b11110,
0b01100,
0b01100
)),136:(4,0,4,(
0b0000,
0b0000,
0b0100,
0b1010,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000
)),137:(10,0,10,(
0b0000000000,
0b0000000000,
0b0110010000,
0b1010010000,
0b1010100000,
0b1101011110,
0b0010101010,
0b0100101010,
0b0100111100,
0b0000000000,
0b0000000000
)),138:(6,0,6,(
0b010100,
0b001000,
0b000000,
0b011100,
0b110010,
0b011000,
0b001100,
0b100110,
0b011100,
0b000000,
0b000000
)),139:(4,0,4,(
0b0000,
0b0000,
0b0000,
0b0000,
0b0010,
0b0100,
0b1000,
0b0100,
0b0010,
0b0000,
0b0000
)),140:(7,0,7,(
0b0000000,
0b0000000,
0b0111110,
0b1001000,
0b1001000,
0b1001110,
0b1001000,
0b1001000,
0b0111110,
0b0000000,
0b0000000
)),141:(10,0,10,(
0b0000000000,
0b0000100000,
0b0001110000,
0b0011011000,
0b0110001100,
0b1100000110,
0b0110001100,
0b0011011000,
0b0001110000,
0b0000100000,
0b0000000000
)),142:(10,0,10,(
0b0000000000,
0b0001110000,
0b0011111000,
0b0101110100,
0b1111111110,
0b1111111110,
0b1111111110,
0b0110101100,
0b0001110000,
0b0011111000,
0b0000000000
)),143:(10,0,10,(
0b0000000000,
0b0110001100,
0b1111011110,
0b1001110010,
0b1000100010,
0b1100000110,
0b0110001100,
0b0011011000,
0b0001110000,
0b0000100000,
0b0000000000
)),144:(10,0,10,(
0b0000000000,
0b0000100000,
0b0001110000,
0b0011111000,
0b0111111100,
0b1111111110,
0b1111111110,
0b0110101100,
0b0001110000,
0b0011111000,
0b0000000000
)),145:(3,0,3,(
0b000,
0b010,
0b100,
0b110,
0b000,
0b000,
0b000,
0b000,
0b000,
0b000,
0b000
)),146:(3,0,3,(
0b000,
0b110,
0b010,
0b100,
0b000,
0b000,
0b000,
0b000,
0b000,
0b000,
0b000
)),147:(5,0,5,(
0b00000,
0b01010,
0b10100,
0b11110,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000
)),148:(5,0,5,(
0b00000,
0b11110,
0b01010,
0b10100,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000
)),149:(4,0,4,(
0b0000,
0b0000,
0b0000,
0b0000,
0b1110,
0b1110,
0b1110,
0b0000,
0b0000,
0b0000,
0b0000
)),150:(4,0,4,(
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b1111,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000
)),151:(7,0,7,(
0b0000000,
0b0000000,
0b0000000,
0b0000000,
0b0000000,
0b1111111,
0b0000000,
0b0000000,
0b0000000,
0b0000000,
0b0000000
)),152:(7,0,7,(
0b0000000,
0b0000000,
0b0000000,
0b0000000,
0b0010000,
0b0111010,
0b1001100,
0b0000000,
0b0000000,
0b0000000,
0b0000000
)),153:(10,0,10,(
0b0000000000,
0b0000000000,
0b1110100010,
0b0100110110,
0b0100101010,
0b0000000000,
0b0000000000,
0b0000000000,
0b0000000000,
0b0000000000,
0b0000000000
)),154:(4,0,4,(
0b0000,
0b1010,
0b0100,
0b0000,
0b0110,
0b1000,
0b0100,
0b0010,
0b1100,
0b0000,
0b0000
)),155:(4,0,4,(
0b0000,
0b0000,
0b0000,
0b0000,
0b1000,
0b0100,
0b0010,
0b0100,
0b1000,
0b0000,
0b0000
)),156:(8,0,8,(
0b00000000,
0b00000000,
0b00000000,
0b00000000,
0b01101100,
0b10010010,
0b10010100,
0b10011000,
0b01101110,
0b00000000,
0b00000000
)),157:(8,0,8,(
0b00000000,
0b00000000,
0b00000110,
0b00001100,
0b00011000,
0b00110000,
0b11100000,
0b11100000,
0b11100000,
0b00000000,
0b00000000
)),158:(8,0,8,(
0b00000000,
0b00000000,
0b00111000,
0b01101100,
0b01101100,
0b01101100,
0b00111000,
0b11101100,
0b11000110,
0b00000000,
0b00000000
)),159:(7,0,7,(
0b0000000,
0b0010100,
0b0000000,
0b1100110,
0b1100110,
0b0111100,
0b0011000,
0b0011000,
0b0011000,
0b0000000,
0b0000000
)),160:(2,0,2,(
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00
)),161:(3,0,3,(
0b000,
0b000,
0b000,
0b000,
0b110,
0b000,
0b110,
0b110,
0b110,
0b110,
0b110
)),162:(6,0,6,(
0b000000,
0b001000,
0b011100,
0b101010,
0b101000,
0b101000,
0b101010,
0b011100,
0b001000,
0b000000,
0b000000
)),163:(6,0,6,(
0b000000,
0b000000,
0b001100,
0b011010,
0b011000,
0b111100,
0b011000,
0b011000,
0b111000,
0b001110,
0b000000
)),164:(8,0,8,(
0b00000000,
0b00000000,
0b10010010,
0b01111100,
0b01101100,
0b11000110,
0b01101100,
0b01111100,
0b10010010,
0b00000000,
0b00000000
)),165:(6,0,6,(
0b000000,
0b000000,
0b100010,
0b010100,
0b111110,
0b001000,
0b111110,
0b001000,
0b001000,
0b000000,
0b000000
)),166:(2,0,2,(
0b00,
0b00,
0b10,
0b10,
0b10,
0b10,
0b00,
0b10,
0b10,
0b10,
0b10
)),167:(5,0,5,(
0b00000,
0b01100,
0b10010,
0b01000,
0b10100,
0b10010,
0b01010,
0b00100,
0b10010,
0b01100,
0b00000
)),168:(4,0,4,(
0b0000,
0b0000,
0b0000,
0b1010,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000
)),169:(8,0,8,(
0b00000000,
0b00000000,
0b01111100,
0b11000110,
0b10111010,
0b10100010,
0b10111010,
0b11000110,
0b01111100,
0b00000000,
0b00000000
)),170:(5,0,5,(
0b00000,
0b00000,
0b01110,
0b10010,
0b01110,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000
)),171:(8,0,8,(
0b00000000,
0b00000000,
0b00000000,
0b00000000,
0b00110110,
0b01101100,
0b11011000,
0b01101100,
0b00110110,
0b00000000,
0b00000000
)),172:(6,0,6,(
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b111110,
0b000010,
0b000010,
0b000000,
0b000000,
0b000000
)),173:(4,0,4,(
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b1110,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000
)),174:(8,0,8,(
0b00000000,
0b00000000,
0b01111100,
0b11000110,
0b10111010,
0b10110010,
0b10101010,
0b11000110,
0b01111100,
0b00000000,
0b00000000
)),175:(6,0,6,(
0b000000,
0b111110,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000
)),176:(4,0,4,(
0b0000,
0b0110,
0b1010,
0b1010,
0b1100,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000
)),177:(6,0,6,(
0b000000,
0b000000,
0b001000,
0b001000,
0b111110,
0b001000,
0b001000,
0b111110,
0b000000,
0b000000,
0b000000
)),178:(4,0,4,(
0b0000,
0b0000,
0b1110,
0b0010,
0b0110,
0b1000,
0b1110,
0b0000,
0b0000,
0b0000,
0b0000
)),179:(4,0,4,(
0b0000,
0b0000,
0b1110,
0b0010,
0b0110,
0b0010,
0b1110,
0b0000,
0b0000,
0b0000,
0b0000
)),180:(3,0,3,(
0b000,
0b010,
0b100,
0b000,
0b000,
0b000,
0b000,
0b000,
0b000,
0b000,
0b000
)),181:(6,0,6,(
0b000000,
0b000000,
0b000000,
0b000000,
0b110110,
0b110110,
0b110110,
0b110110,
0b111100,
0b110000,
0b110000
)),182:(7,0,7,(
0b0000000,
0b0000000,
0b0111110,
0b1110110,
0b1110110,
0b0110110,
0b0010110,
0b0010110,
0b0010110,
0b0000000,
0b0000000
)),183:(2,0,2,(
0b00,
0b00,
0b00,
0b00,
0b00,
0b10,
0b00,
0b00,
0b00,
0b00,
0b00
)),184:(4,0,4,(
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0100,
0b0010,
0b1100
)),185:(2,0,2,(
0b00,
0b00,
0b10,
0b10,
0b10,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00
)),186:(5,0,5,(
0b00000,
0b00000,
0b01100,
0b10010,
0b01100,
0b00000,
0b11110,
0b00000,
0b00000,
0b00000,
0b00000
)),187:(8,0,8,(
0b00000000,
0b00000000,
0b00000000,
0b11011000,
0b01101100,
0b00110110,
0b01101100,
0b11011000,
0b00000000,
0b00000000,
0b00000000
)),188:(8,0,8,(
0b00000000,
0b11000000,
0b11000110,
0b11001100,
0b11011000,
0b00110100,
0b01101100,
0b11011110,
0b00000100,
0b00000000,
0b00000000
)),189:(8,0,8,(
0b00000000,
0b11000000,
0b11000110,
0b11001100,
0b11011000,
0b00111100,
0b01100010,
0b11000100,
0b00001110,
0b00000000,
0b00000000
)),190:(8,0,8,(
0b00000000,
0b11100000,
0b01000011,
0b00100110,
0b11101100,
0b00011010,
0b00110110,
0b01101111,
0b00000010,
0b00000000,
0b00000000
)),191:(6,0,6,(
0b000000,
0b000000,
0b001100,
0b000000,
0b001100,
0b011000,
0b110000,
0b110010,
0b011100,
0b000000,
0b000000
)),192:(7,0,7,(
0b0010000,
0b0001000,
0b0000000,
0b0011100,
0b0110110,
0b0110110,
0b0111110,
0b1110110,
0b0110110,
0b0000000,
0b0000000
)),193:(7,0,7,(
0b0000100,
0b0001000,
0b0000000,
0b0011100,
0b0110110,
0b0110110,
0b0111110,
0b1110110,
0b0110110,
0b0000000,
0b0000000
)),194:(7,0,7,(
0b0001000,
0b0010100,
0b0000000,
0b0011100,
0b0110110,
0b0110110,
0b0111110,
0b1110110,
0b0110110,
0b0000000,
0b0000000
)),195:(7,0,7,(
0b0010100,
0b0101000,
0b0000000,
0b0011100,
0b0110110,
0b0110110,
0b0111110,
0b1110110,
0b0110110,
0b0000000,
0b0000000
)),196:(7,0,7,(
0b0000000,
0b0010100,
0b0000000,
0b0011100,
0b0110110,
0b0110110,
0b0111110,
0b1110110,
0b0110110,
0b0000000,
0b0000000
)),197:(7,0,7,(
0b0001000,
0b0010100,
0b0001000,
0b0011100,
0b0110110,
0b0110110,
0b0111110,
0b1110110,
0b0110110,
0b0000000,
0b0000000
)),198:(8,0,8,(
0b00000000,
0b00000000,
0b00111110,
0b01101100,
0b01101100,
0b01111110,
0b11101100,
0b01101100,
0b01101110,
0b00000000,
0b00000000
)),199:(5,0,5,(
0b00000,
0b00000,
0b00110,
0b01110,
0b11000,
0b10000,
0b10000,
0b11010,
0b01110,
0b00100,
0b01000
)),200:(5,0,5,(
0b01100,
0b00110,
0b00000,
0b11110,
0b11000,
0b11110,
0b11000,
0b11000,
0b11110,
0b00000,
0b00000
)),201:(5,0,5,(
0b00110,
0b01100,
0b00000,
0b11110,
0b11000,
0b11110,
0b11000,
0b11000,
0b11110,
0b00000,
0b00000
)),202:(5,0,5,(
0b00100,
0b01010,
0b00000,
0b11110,
0b11000,
0b11110,
0b11000,
0b11000,
0b11110,
0b00000,
0b00000
)),203:(5,0,5,(
0b00000,
0b01010,
0b00000,
0b11110,
0b11000,
0b11110,
0b11000,
0b11000,
0b11110,
0b00000,
0b00000
)),204:(4,0,4,(
0b0100,
0b0010,
0b0000,
0b0110,
0b0110,
0b0110,
0b0110,
0b0110,
0b0110,
0b0000,
0b0000
)),205:(3,0,3,(
0b010,
0b100,
0b000,
0b110,
0b110,
0b110,
0b110,
0b110,
0b110,
0b000,
0b000
)),206:(4,0,4,(
0b0100,
0b1010,
0b0000,
0b1100,
0b1100,
0b1100,
0b1100,
0b1100,
0b1100,
0b0000,
0b0000
)),207:(3,0,3,(
0b101,
0b000,
0b000,
0b110,
0b110,
0b110,
0b110,
0b110,
0b110,
0b000,
0b000
)),208:(7,0,7,(
0b0000000,
0b0000000,
0b0111100,
0b0110010,
0b0110010,
0b1111010,
0b0110010,
0b0110010,
0b0111100,
0b0000000,
0b0000000
)),209:(6,0,6,(
0b001010,
0b010100,
0b000000,
0b100010,
0b110010,
0b111010,
0b101110,
0b100110,
0b100010,
0b000000,
0b000000
)),210:(6,0,6,(
0b001000,
0b000100,
0b000000,
0b011110,
0b110110,
0b110110,
0b110110,
0b110110,
0b111100,
0b000000,
0b000000
)),211:(6,0,6,(
0b000100,
0b001000,
0b000000,
0b011110,
0b110110,
0b110110,
0b110110,
0b110110,
0b111100,
0b000000,
0b000000
)),212:(6,0,6,(
0b001000,
0b010100,
0b000000,
0b011110,
0b110110,
0b110110,
0b110110,
0b110110,
0b111100,
0b000000,
0b000000
)),213:(6,0,6,(
0b001010,
0b010100,
0b000000,
0b011110,
0b110110,
0b110110,
0b110110,
0b110110,
0b111100,
0b000000,
0b000000
)),214:(6,0,6,(
0b000000,
0b010100,
0b000000,
0b011110,
0b110110,
0b110110,
0b110110,
0b110110,
0b111100,
0b000000,
0b000000
)),215:(5,0,5,(
0b00000,
0b00000,
0b00000,
0b00000,
0b10010,
0b01100,
0b01100,
0b10010,
0b00000,
0b00000,
0b00000
)),216:(8,0,8,(
0b00000000,
0b00000000,
0b00111010,
0b01111100,
0b11001110,
0b11010110,
0b11100110,
0b01111100,
0b10111000,
0b00000000,
0b00000000
)),217:(6,0,6,(
0b010000,
0b001000,
0b000000,
0b110110,
0b110110,
0b110110,
0b110110,
0b110110,
0b011100,
0b000000,
0b000000
)),218:(6,0,6,(
0b000100,
0b001000,
0b000000,
0b110110,
0b110110,
0b110110,
0b110110,
0b110110,
0b011100,
0b000000,
0b000000
)),219:(6,0,6,(
0b001000,
0b010100,
0b000000,
0b110110,
0b110110,
0b110110,
0b110110,
0b110110,
0b011100,
0b000000,
0b000000
)),220:(6,0,6,(
0b000000,
0b010100,
0b000000,
0b110110,
0b110110,
0b110110,
0b110110,
0b110110,
0b011100,
0b000000,
0b000000
)),221:(7,0,7,(
0b0001000,
0b0010000,
0b0000000,
0b1100110,
0b1100110,
0b0111100,
0b0011000,
0b0011000,
0b0011000,
0b0000000,
0b0000000
)),222:(6,0,6,(
0b000000,
0b000000,
0b110000,
0b111100,
0b110010,
0b110010,
0b110010,
0b111100,
0b110000,
0b000000,
0b000000
)),223:(6,0,6,(
0b000000,
0b000000,
0b011000,
0b110100,
0b110100,
0b111100,
0b110010,
0b110010,
0b110010,
0b000100,
0b000000
)),224:(6,0,6,(
0b000000,
0b001000,
0b000100,
0b000000,
0b011100,
0b000110,
0b011110,
0b100110,
0b111110,
0b000000,
0b000000
)),225:(6,0,6,(
0b000000,
0b000100,
0b001000,
0b000000,
0b011100,
0b000110,
0b011110,
0b100110,
0b111110,
0b000000,
0b000000
)),226:(6,0,6,(
0b000000,
0b001000,
0b010100,
0b000000,
0b011100,
0b000110,
0b011110,
0b100110,
0b111110,
0b000000,
0b000000
)),227:(6,0,6,(
0b000000,
0b001010,
0b010100,
0b000000,
0b011100,
0b000110,
0b011110,
0b100110,
0b111110,
0b000000,
0b000000
)),228:(6,0,6,(
0b000000,
0b000000,
0b010100,
0b000000,
0b011100,
0b000110,
0b011110,
0b100110,
0b111110,
0b000000,
0b000000
)),229:(6,0,6,(
0b001000,
0b010100,
0b001000,
0b000000,
0b011100,
0b000110,
0b011110,
0b100110,
0b111110,
0b000000,
0b000000
)),230:(8,0,8,(
0b00000000,
0b00000000,
0b00000000,
0b00000000,
0b11101100,
0b00010010,
0b11111100,
0b10010000,
0b01111110,
0b00000000,
0b00000000
)),231:(5,0,5,(
0b00000,
0b00000,
0b00000,
0b00000,
0b01110,
0b11000,
0b11000,
0b11000,
0b01110,
0b00100,
0b01000
)),232:(6,0,6,(
0b000000,
0b001000,
0b000100,
0b000000,
0b011100,
0b110010,
0b110100,
0b111000,
0b011110,
0b000000,
0b000000
)),233:(6,0,6,(
0b000000,
0b000100,
0b001000,
0b000000,
0b011100,
0b110010,
0b110100,
0b111000,
0b011110,
0b000000,
0b000000
)),234:(6,0,6,(
0b000000,
0b001000,
0b010100,
0b000000,
0b011100,
0b110010,
0b110100,
0b111000,
0b011110,
0b000000,
0b000000
)),235:(6,0,6,(
0b000000,
0b000000,
0b010100,
0b000000,
0b011100,
0b110010,
0b110100,
0b111000,
0b011110,
0b000000,
0b000000
)),236:(3,0,3,(
0b000,
0b100,
0b010,
0b000,
0b110,
0b110,
0b110,
0b110,
0b110,
0b000,
0b000
)),237:(3,0,3,(
0b000,
0b010,
0b100,
0b000,
0b110,
0b110,
0b110,
0b110,
0b110,
0b000,
0b000
)),238:(4,0,4,(
0b0000,
0b0100,
0b1010,
0b0000,
0b0110,
0b0110,
0b0110,
0b0110,
0b0110,
0b0000,
0b0000
)),239:(4,0,4,(
0b0000,
0b1010,
0b0000,
0b0000,
0b0110,
0b0110,
0b0110,
0b0110,
0b0110,
0b0000,
0b0000
)),240:(6,0,6,(
0b000000,
0b000000,
0b110000,
0b110000,
0b001000,
0b011100,
0b110110,
0b110110,
0b011100,
0b000000,
0b000000
)),241:(6,0,6,(
0b000000,
0b010100,
0b101000,
0b000000,
0b111100,
0b110110,
0b110110,
0b110110,
0b110110,
0b000000,
0b000000
)),242:(6,0,6,(
0b000000,
0b010000,
0b001000,
0b000000,
0b011100,
0b110110,
0b110110,
0b110110,
0b011100,
0b000000,
0b000000
)),243:(6,0,6,(
0b000000,
0b000100,
0b001000,
0b000000,
0b011100,
0b110110,
0b110110,
0b110110,
0b011100,
0b000000,
0b000000
)),244:(6,0,6,(
0b000000,
0b001000,
0b010100,
0b000000,
0b011100,
0b110110,
0b110110,
0b110110,
0b011100,
0b000000,
0b000000
)),245:(6,0,6,(
0b000000,
0b001010,
0b010100,
0b000000,
0b011100,
0b110110,
0b110110,
0b110110,
0b011100,
0b000000,
0b000000
)),246:(6,0,6,(
0b000000,
0b000000,
0b010100,
0b000000,
0b011100,
0b110110,
0b110110,
0b110110,
0b011100,
0b000000,
0b000000
)),247:(6,0,6,(
0b000000,
0b000000,
0b000000,
0b001000,
0b000000,
0b111110,
0b000000,
0b001000,
0b000000,
0b000000,
0b000000
)),248:(7,0,7,(
0b0000000,
0b0000000,
0b0000000,
0b0000000,
0b0011010,
0b0101100,
0b0110100,
0b0100100,
0b1011000,
0b0000000,
0b0000000
)),249:(6,0,6,(
0b000000,
0b010000,
0b001000,
0b000000,
0b110110,
0b110110,
0b110110,
0b110110,
0b011110,
0b000000,
0b000000
)),250:(6,0,6,(
0b000000,
0b000100,
0b001000,
0b000000,
0b110110,
0b110110,
0b110110,
0b110110,
0b011110,
0b000000,
0b000000
)),251:(6,0,6,(
0b000000,
0b001000,
0b010100,
0b000000,
0b110110,
0b110110,
0b110110,
0b110110,
0b011110,
0b000000,
0b000000
)),252:(6,0,6,(
0b000000,
0b000000,
0b010100,
0b000000,
0b110110,
0b110110,
0b110110,
0b110110,
0b011110,
0b000000,
0b000000
)),253:(6,0,6,(
0b000000,
0b000100,
0b001000,
0b000000,
0b110110,
0b110110,
0b110110,
0b011100,
0b001100,
0b011000,
0b110000
)),254:(5,0,5,(
0b00000,
0b00000,
0b11000,
0b11000,
0b11100,
0b11010,
0b11010,
0b11010,
0b11100,
0b11000,
0b11000
)),255:(6,0,6,(
0b000000,
0b000000,
0b010100,
0b000000,
0b110110,
0b110110,
0b110110,
0b011100,
0b001100,
0b011000,
0b110000
)),}
# generated by fontconv
#fontType 36864
#firstChar 9
#lastChar 255
#maxWidth 11
#kernMax 0
#nDescent 0
#fRectWidth 11
#fRectHeight 11
#ascent 9
#descent 2
#leading 0
#averageWidth 5.85
FONTS['macfont'] = {
9:(2,0,2,(
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00
)),20:(11,0,11,(
0b01111000000,
0b11111100000,
0b10000100100,
0b11111101000,
0b01111010000,
0b00110000000,
0b00110011010,
0b00110000000,
0b01110010000,
0b01110001000,
0b00110000100
)),21:(5,0,5,(
0b00000,
0b00100,
0b01000,
0b10000,
0b00000,
0b11010,
0b00000,
0b10000,
0b01000,
0b00100,
0b00000
)),22:(9,0,9,(
0b000000000,
0b000000000,
0b000000110,
0b000001100,
0b000011000,
0b000110000,
0b111100000,
0b111000000,
0b111000000,
0b000000000,
0b000000000
)),23:(8,0,8,(
0b00000000,
0b00000000,
0b00111000,
0b01101100,
0b01101100,
0b01101100,
0b00111000,
0b11101100,
0b11000110,
0b00000000,
0b00000000
)),24:(6,0,6,(
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b101010,
0b000000,
0b000000
)),25:(5,0,5,(
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000
)),32:(2,0,2,(
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00
)),33:(3,0,3,(
0b000,
0b000,
0b110,
0b110,
0b110,
0b110,
0b110,
0b000,
0b110,
0b000,
0b000
)),34:(4,0,4,(
0b0000,
0b1010,
0b1010,
0b1010,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000
)),35:(10,0,10,(
0b0000000000,
0b0000000000,
0b0001101100,
0b0001101100,
0b0111111110,
0b0011011000,
0b1111111100,
0b0110110000,
0b0110110000,
0b0000000000,
0b0000000000
)),36:(6,0,6,(
0b000000,
0b001000,
0b011100,
0b101010,
0b111000,
0b011100,
0b001110,
0b101010,
0b011100,
0b001000,
0b000000
)),37:(9,0,9,(
0b000000000,
0b000000000,
0b011111110,
0b101001100,
0b101011000,
0b110110110,
0b001101010,
0b011001010,
0b010001100,
0b000000000,
0b000000000
)),38:(8,0,8,(
0b00000000,
0b00000000,
0b01110000,
0b11011000,
0b11000000,
0b01100010,
0b11001110,
0b11000100,
0b01111000,
0b00000000,
0b00000000
)),39:(2,0,2,(
0b00,
0b10,
0b10,
0b10,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00
)),40:(4,0,4,(
0b0000,
0b0110,
0b1100,
0b1100,
0b1100,
0b1100,
0b1100,
0b1100,
0b1100,
0b0110,
0b0000
)),41:(4,0,4,(
0b0000,
0b1100,
0b0110,
0b0110,
0b0110,
0b0110,
0b0110,
0b0110,
0b0110,
0b1100,
0b0000
)),42:(6,0,6,(
0b000000,
0b010100,
0b001000,
0b111110,
0b001000,
0b010100,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000
)),43:(6,0,6,(
0b000000,
0b000000,
0b000000,
0b001000,
0b001000,
0b111110,
0b001000,
0b001000,
0b000000,
0b000000,
0b000000
)),44:(3,0,3,(
0b000,
0b000,
0b000,
0b000,
0b000,
0b000,
0b000,
0b000,
0b110,
0b010,
0b100
)),45:(5,0,5,(
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b11110,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000
)),46:(3,0,3,(
0b000,
0b000,
0b000,
0b000,
0b000,
0b000,
0b000,
0b000,
0b110,
0b000,
0b000
)),47:(5,0,5,(
0b00000,
0b00000,
0b00010,
0b00110,
0b00100,
0b01100,
0b01000,
0b11000,
0b10000,
0b00000,
0b00000
)),48:(6,0,6,(
0b000000,
0b000000,
0b011100,
0b110110,
0b110110,
0b110110,
0b110110,
0b110110,
0b011100,
0b000000,
0b000000
)),49:(6,0,6,(
0b000000,
0b000000,
0b001100,
0b011100,
0b001100,
0b001100,
0b001100,
0b001100,
0b011110,
0b000000,
0b000000
)),50:(6,0,6,(
0b000000,
0b000000,
0b011100,
0b110110,
0b000110,
0b001100,
0b011000,
0b110000,
0b111110,
0b000000,
0b000000
)),51:(6,0,6,(
0b000000,
0b000000,
0b111110,
0b000110,
0b001100,
0b011100,
0b000110,
0b100110,
0b011100,
0b000000,
0b000000
)),52:(6,0,6,(
0b000000,
0b000000,
0b000110,
0b001110,
0b010110,
0b100110,
0b111110,
0b000110,
0b000110,
0b000000,
0b000000
)),53:(6,0,6,(
0b000000,
0b000000,
0b111110,
0b110000,
0b110000,
0b111100,
0b000110,
0b000110,
0b111100,
0b000000,
0b000000
)),54:(6,0,6,(
0b000000,
0b000000,
0b001100,
0b011000,
0b110000,
0b111100,
0b110110,
0b110110,
0b011100,
0b000000,
0b000000
)),55:(6,0,6,(
0b000000,
0b000000,
0b111110,
0b000110,
0b000110,
0b001100,
0b011000,
0b011000,
0b011000,
0b000000,
0b000000
)),56:(6,0,6,(
0b000000,
0b000000,
0b011100,
0b110110,
0b110110,
0b011100,
0b110110,
0b110110,
0b011100,
0b000000,
0b000000
)),57:(6,0,6,(
0b000000,
0b000000,
0b011100,
0b110110,
0b110110,
0b011110,
0b000110,
0b001100,
0b011000,
0b000000,
0b000000
)),58:(3,0,3,(
0b000,
0b000,
0b000,
0b000,
0b110,
0b000,
0b000,
0b000,
0b110,
0b000,
0b000
)),59:(3,0,3,(
0b000,
0b000,
0b000,
0b000,
0b110,
0b000,
0b000,
0b000,
0b110,
0b010,
0b100
)),60:(5,0,5,(
0b00000,
0b00000,
0b00010,
0b00110,
0b01100,
0b11000,
0b01100,
0b00110,
0b00010,
0b00000,
0b00000
)),61:(6,0,6,(
0b000000,
0b000000,
0b000000,
0b000000,
0b111110,
0b000000,
0b111110,
0b000000,
0b000000,
0b000000,
0b000000
)),62:(5,0,5,(
0b00000,
0b00000,
0b10000,
0b11000,
0b01100,
0b00110,
0b01100,
0b11000,
0b10000,
0b00000,
0b00000
)),63:(6,0,6,(
0b000000,
0b000000,
0b011100,
0b100110,
0b000110,
0b001100,
0b011000,
0b000000,
0b011000,
0b000000,
0b000000
)),64:(8,0,8,(
0b00000000,
0b00000000,
0b00111100,
0b01100110,
0b11011010,
0b10101010,
0b10101010,
0b10111100,
0b11000000,
0b01111110,
0b00000000
)),65:(6,0,6,(
0b000000,
0b000000,
0b011110,
0b110110,
0b110110,
0b111110,
0b110110,
0b110110,
0b110110,
0b000000,
0b000000
)),66:(6,0,6,(
0b000000,
0b000000,
0b111110,
0b110110,
0b110110,
0b111100,
0b110110,
0b110110,
0b111100,
0b000000,
0b000000
)),67:(6,0,6,(
0b000000,
0b000000,
0b011100,
0b110110,
0b110000,
0b110000,
0b110000,
0b110110,
0b011100,
0b000000,
0b000000
)),68:(6,0,6,(
0b000000,
0b000000,
0b111110,
0b110110,
0b110110,
0b110110,
0b110110,
0b110110,
0b111100,
0b000000,
0b000000
)),69:(5,0,5,(
0b00000,
0b00000,
0b11110,
0b11000,
0b11000,
0b11110,
0b11000,
0b11000,
0b11110,
0b00000,
0b00000
)),70:(5,0,5,(
0b00000,
0b00000,
0b11110,
0b11000,
0b11000,
0b11110,
0b11000,
0b11000,
0b11000,
0b00000,
0b00000
)),71:(6,0,6,(
0b000000,
0b000000,
0b011100,
0b110110,
0b110000,
0b110110,
0b110110,
0b110110,
0b011110,
0b000000,
0b000000
)),72:(6,0,6,(
0b000000,
0b000000,
0b110110,
0b110110,
0b110110,
0b111110,
0b110110,
0b110110,
0b110110,
0b000000,
0b000000
)),73:(3,0,3,(
0b000,
0b000,
0b110,
0b110,
0b110,
0b110,
0b110,
0b110,
0b110,
0b000,
0b000
)),74:(6,0,6,(
0b000000,
0b000000,
0b000110,
0b000110,
0b000110,
0b000110,
0b110110,
0b110110,
0b011100,
0b000000,
0b000000
)),75:(6,0,6,(
0b000000,
0b000000,
0b110110,
0b110110,
0b111100,
0b111000,
0b111100,
0b110110,
0b110110,
0b000000,
0b000000
)),76:(5,0,5,(
0b00000,
0b00000,
0b11000,
0b11000,
0b11000,
0b11000,
0b11000,
0b11000,
0b11110,
0b00000,
0b00000
)),77:(8,0,8,(
0b00000000,
0b00000000,
0b10000010,
0b11000110,
0b11101110,
0b11111110,
0b10111110,
0b10010110,
0b10000110,
0b00000000,
0b00000000
)),78:(6,0,6,(
0b000000,
0b000000,
0b100010,
0b110010,
0b111010,
0b111110,
0b101110,
0b100110,
0b100010,
0b000000,
0b000000
)),79:(6,0,6,(
0b000000,
0b000000,
0b011110,
0b110110,
0b110110,
0b110110,
0b110110,
0b110110,
0b111100,
0b000000,
0b000000
)),80:(6,0,6,(
0b000000,
0b000000,
0b111110,
0b110110,
0b110110,
0b111100,
0b110000,
0b110000,
0b110000,
0b000000,
0b000000
)),81:(6,0,6,(
0b000000,
0b000000,
0b011110,
0b110110,
0b110110,
0b110110,
0b110110,
0b110110,
0b111100,
0b000110,
0b000010
)),82:(6,0,6,(
0b000000,
0b000000,
0b111110,
0b110110,
0b110110,
0b111100,
0b110110,
0b110110,
0b110110,
0b000000,
0b000000
)),83:(6,0,6,(
0b000000,
0b000000,
0b011110,
0b110000,
0b110000,
0b111110,
0b000110,
0b000110,
0b111100,
0b000000,
0b000000
)),84:(7,0,7,(
0b0000000,
0b0000000,
0b1111110,
0b0011000,
0b0011000,
0b0011000,
0b0011000,
0b0011000,
0b0011000,
0b0000000,
0b0000000
)),85:(6,0,6,(
0b000000,
0b000000,
0b110110,
0b110110,
0b110110,
0b110110,
0b110110,
0b110110,
0b011110,
0b000000,
0b000000
)),86:(6,0,6,(
0b000000,
0b000000,
0b110110,
0b110110,
0b110110,
0b110110,
0b110110,
0b011100,
0b001000,
0b000000,
0b000000
)),87:(9,0,9,(
0b000000000,
0b000000000,
0b110110110,
0b110110110,
0b110110110,
0b110110110,
0b110110110,
0b110110110,
0b111111100,
0b000000000,
0b000000000
)),88:(6,0,6,(
0b000000,
0b000000,
0b110110,
0b110110,
0b110110,
0b011100,
0b110110,
0b110110,
0b110110,
0b000000,
0b000000
)),89:(7,0,7,(
0b0000000,
0b0000000,
0b1100110,
0b1100110,
0b1100110,
0b0111100,
0b0011000,
0b0011000,
0b0011000,
0b0000000,
0b0000000
)),90:(6,0,6,(
0b000000,
0b000000,
0b111110,
0b000110,
0b001110,
0b011100,
0b111000,
0b110000,
0b111110,
0b000000,
0b000000
)),91:(4,0,4,(
0b0000,
0b1110,
0b1100,
0b1100,
0b1100,
0b1100,
0b1100,
0b1100,
0b1100,
0b1110,
0b0000
)),92:(5,0,5,(
0b00000,
0b00000,
0b10000,
0b11000,
0b01000,
0b01100,
0b00100,
0b00110,
0b00010,
0b00000,
0b00000
)),93:(4,0,4,(
0b0000,
0b1110,
0b0110,
0b0110,
0b0110,
0b0110,
0b0110,
0b0110,
0b0110,
0b1110,
0b0000
)),94:(6,0,6,(
0b000000,
0b000000,
0b001000,
0b011100,
0b110110,
0b100010,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000
)),95:(5,0,5,(
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b11111,
0b00000
)),96:(4,0,4,(
0b0000,
0b0000,
0b1100,
0b0010,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000
)),97:(6,0,6,(
0b000000,
0b000000,
0b000000,
0b000000,
0b111100,
0b000110,
0b011110,
0b110110,
0b111110,
0b000000,
0b000000
)),98:(6,0,6,(
0b000000,
0b000000,
0b110000,
0b110000,
0b111110,
0b110110,
0b110110,
0b110110,
0b111100,
0b000000,
0b000000
)),99:(5,0,5,(
0b00000,
0b00000,
0b00000,
0b00000,
0b11110,
0b11000,
0b11000,
0b11000,
0b01110,
0b00000,
0b00000
)),100:(6,0,6,(
0b000000,
0b000000,
0b000110,
0b000110,
0b111110,
0b110110,
0b110110,
0b110110,
0b011110,
0b000000,
0b000000
)),101:(6,0,6,(
0b000000,
0b000000,
0b000000,
0b000000,
0b011100,
0b110010,
0b110100,
0b111000,
0b011110,
0b000000,
0b000000
)),102:(5,0,5,(
0b00000,
0b00000,
0b00111,
0b01100,
0b11110,
0b01100,
0b01100,
0b01100,
0b01100,
0b00000,
0b00000
)),103:(6,0,6,(
0b000000,
0b000000,
0b000000,
0b000000,
0b011110,
0b110110,
0b110110,
0b110110,
0b011110,
0b000110,
0b111100
)),104:(6,0,6,(
0b000000,
0b000000,
0b110000,
0b110000,
0b111110,
0b110110,
0b110110,
0b110110,
0b110110,
0b000000,
0b000000
)),105:(3,0,3,(
0b000,
0b000,
0b110,
0b000,
0b110,
0b110,
0b110,
0b110,
0b110,
0b000,
0b000
)),106:(4,0,4,(
0b0000,
0b0000,
0b0110,
0b0000,
0b0110,
0b0110,
0b0110,
0b0110,
0b0110,
0b0110,
0b1100
)),107:(6,0,6,(
0b000000,
0b000000,
0b110000,
0b110000,
0b110110,
0b111100,
0b111000,
0b111100,
0b110110,
0b000000,
0b000000
)),108:(3,0,3,(
0b000,
0b000,
0b110,
0b110,
0b110,
0b110,
0b110,
0b110,
0b110,
0b000,
0b000
)),109:(9,0,9,(
0b000000000,
0b000000000,
0b000000000,
0b000000000,
0b110110110,
0b111111110,
0b110110110,
0b110110110,
0b110110110,
0b000000000,
0b000000000
)),110:(6,0,6,(
0b000000,
0b000000,
0b000000,
0b000000,
0b111100,
0b110110,
0b110110,
0b110110,
0b110110,
0b000000,
0b000000
)),111:(6,0,6,(
0b000000,
0b000000,
0b000000,
0b000000,
0b011100,
0b110110,
0b110110,
0b110110,
0b011100,
0b000000,
0b000000
)),112:(6,0,6,(
0b000000,
0b000000,
0b000000,
0b000000,
0b111110,
0b110110,
0b110110,
0b110110,
0b111100,
0b110000,
0b110000
)),113:(6,0,6,(
0b000000,
0b000000,
0b000000,
0b000000,
0b011110,
0b110110,
0b110110,
0b110110,
0b111110,
0b000110,
0b000110
)),114:(5,0,5,(
0b00000,
0b00000,
0b00000,
0b00000,
0b11010,
0b11110,
0b11000,
0b11000,
0b11000,
0b00000,
0b00000
)),115:(5,0,5,(
0b00000,
0b00000,
0b00000,
0b00000,
0b01110,
0b11000,
0b11110,
0b00110,
0b11100,
0b00000,
0b00000
)),116:(5,0,5,(
0b00000,
0b00000,
0b00000,
0b11000,
0b11110,
0b11000,
0b11000,
0b11000,
0b01110,
0b00000,
0b00000
)),117:(6,0,6,(
0b000000,
0b000000,
0b000000,
0b000000,
0b110110,
0b110110,
0b110110,
0b110110,
0b011110,
0b000000,
0b000000
)),118:(6,0,6,(
0b000000,
0b000000,
0b000000,
0b000000,
0b110110,
0b110110,
0b110110,
0b011100,
0b001000,
0b000000,
0b000000
)),119:(9,0,9,(
0b000000000,
0b000000000,
0b000000000,
0b000000000,
0b110110110,
0b110110110,
0b110110110,
0b110110110,
0b111111100,
0b000000000,
0b000000000
)),120:(6,0,6,(
0b000000,
0b000000,
0b000000,
0b000000,
0b110110,
0b110110,
0b011100,
0b110110,
0b110110,
0b000000,
0b000000
)),121:(6,0,6,(
0b000000,
0b000000,
0b000000,
0b000000,
0b110110,
0b110110,
0b110110,
0b011100,
0b001100,
0b111000,
0b110000
)),122:(6,0,6,(
0b000000,
0b000000,
0b000000,
0b000000,
0b111110,
0b001100,
0b011000,
0b110000,
0b111110,
0b000000,
0b000000
)),123:(5,0,5,(
0b00000,
0b00110,
0b01100,
0b01100,
0b01100,
0b11000,
0b01100,
0b01100,
0b01100,
0b00110,
0b00000
)),124:(3,0,3,(
0b000,
0b110,
0b110,
0b110,
0b110,
0b110,
0b110,
0b110,
0b110,
0b110,
0b000
)),125:(5,0,5,(
0b00000,
0b11000,
0b01100,
0b01100,
0b01100,
0b00110,
0b01100,
0b01100,
0b01100,
0b11000,
0b00000
)),126:(7,0,7,(
0b0000000,
0b0000000,
0b0000000,
0b0000000,
0b0110000,
0b1110010,
0b1001110,
0b0001100,
0b0000000,
0b0000000,
0b0000000
)),128:(9,0,9,(
0b000000000,
0b000000000,
0b000111100,
0b001100010,
0b111111000,
0b011000000,
0b111110000,
0b001100010,
0b000111100,
0b000000000,
0b000000000
)),130:(3,0,3,(
0b000,
0b000,
0b000,
0b000,
0b000,
0b000,
0b000,
0b000,
0b110,
0b010,
0b100
)),131:(9,0,9,(
0b000000000,
0b000000000,
0b000001110,
0b000011000,
0b001111100,
0b000110000,
0b000110000,
0b001100000,
0b001100000,
0b111000000,
0b000000000
)),132:(5,0,5,(
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b11110,
0b01010,
0b10100
)),133:(6,0,6,(
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b101010,
0b000000,
0b000000
)),134:(5,0,5,(
0b00000,
0b00000,
0b01100,
0b01100,
0b11110,
0b01100,
0b01100,
0b01100,
0b01100,
0b01100,
0b01100
)),135:(5,0,5,(
0b00000,
0b00000,
0b01100,
0b01100,
0b11110,
0b01100,
0b01100,
0b01100,
0b11110,
0b01100,
0b01100
)),136:(4,0,4,(
0b0000,
0b0000,
0b0100,
0b1010,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000
)),137:(11,0,11,(
0b00000000000,
0b00000000000,
0b01111111000,
0b10100110000,
0b10101100000,
0b11011011110,
0b00110101010,
0b01100101010,
0b01100111100,
0b00000000000,
0b00000000000
)),138:(6,0,6,(
0b010100,
0b001000,
0b000000,
0b011110,
0b111000,
0b011100,
0b001110,
0b000110,
0b111100,
0b000000,
0b000000
)),139:(5,0,5,(
0b00000,
0b00000,
0b00000,
0b00110,
0b01100,
0b11000,
0b01100,
0b00110,
0b00000,
0b00000,
0b00000
)),140:(10,0,10,(
0b0000000000,
0b0000000000,
0b0011111110,
0b0110011000,
0b1100011000,
0b1100011110,
0b1100011000,
0b0110011000,
0b0011111110,
0b0000000000,
0b0000000000
)),141:(10,0,10,(
0b0000000000,
0b0000100000,
0b0001110000,
0b0011011000,
0b0110001100,
0b1100000110,
0b0110001100,
0b0011011000,
0b0001110000,
0b0000100000,
0b0000000000
)),142:(10,0,10,(
0b0001110000,
0b0011111000,
0b0011111000,
0b0101110100,
0b1111111110,
0b1111111110,
0b1111111110,
0b0110101100,
0b0001110000,
0b0011111000,
0b0000000000
)),143:(10,0,10,(
0b0000000000,
0b0111011100,
0b1101110110,
0b1000100010,
0b1000000010,
0b1100000110,
0b0110001100,
0b0011011000,
0b0001110000,
0b0000100000,
0b0000000000
)),144:(10,0,10,(
0b0000100000,
0b0001110000,
0b0011111000,
0b0111111100,
0b1111111110,
0b1111111110,
0b1111111110,
0b0110101100,
0b0001110000,
0b0011111000,
0b0000000000
)),145:(3,0,3,(
0b000,
0b010,
0b100,
0b110,
0b000,
0b000,
0b000,
0b000,
0b000,
0b000,
0b000
)),146:(3,0,3,(
0b000,
0b110,
0b010,
0b100,
0b000,
0b000,
0b000,
0b000,
0b000,
0b000,
0b000
)),147:(5,0,5,(
0b00000,
0b01010,
0b10100,
0b11110,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000
)),148:(5,0,5,(
0b00000,
0b11110,
0b01010,
0b10100,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000
)),149:(4,0,4,(
0b0000,
0b0000,
0b0000,
0b0000,
0b1110,
0b1110,
0b1110,
0b0000,
0b0000,
0b0000,
0b0000
)),150:(4,0,4,(
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b1111,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000
)),151:(6,0,6,(
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b111111,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000
)),152:(7,0,7,(
0b0000000,
0b0000000,
0b0000000,
0b0110000,
0b1110010,
0b1001110,
0b0001100,
0b0000000,
0b0000000,
0b0000000,
0b0000000
)),153:(10,0,10,(
0b0000000000,
0b0000000000,
0b1110100010,
0b0100110110,
0b0100101010,
0b0000000000,
0b0000000000,
0b0000000000,
0b0000000000,
0b0000000000,
0b0000000000
)),154:(5,0,5,(
0b00000,
0b01010,
0b00100,
0b00000,
0b01110,
0b11000,
0b11110,
0b00110,
0b11100,
0b00000,
0b00000
)),155:(5,0,5,(
0b00000,
0b00000,
0b00000,
0b11000,
0b01100,
0b00110,
0b01100,
0b11000,
0b00000,
0b00000,
0b00000
)),156:(10,0,10,(
0b0000000000,
0b0000000000,
0b0000000000,
0b0000000000,
0b0111011100,
0b1101110110,
0b1101111110,
0b1101110000,
0b0111011110,
0b0000000000,
0b0000000000
)),157:(9,0,9,(
0b000000000,
0b000000000,
0b000000110,
0b000001100,
0b000011000,
0b000110000,
0b111100000,
0b111000000,
0b111000000,
0b000000000,
0b000000000
)),158:(8,0,8,(
0b00000000,
0b00000000,
0b00111000,
0b01101100,
0b01101100,
0b01101100,
0b00111000,
0b11101100,
0b11000110,
0b00000000,
0b00000000
)),159:(7,0,7,(
0b0000000,
0b0100100,
0b0000000,
0b1100110,
0b1100110,
0b0111100,
0b0011000,
0b0011000,
0b0011000,
0b0000000,
0b0000000
)),160:(2,0,2,(
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00
)),161:(3,0,3,(
0b000,
0b000,
0b000,
0b000,
0b110,
0b000,
0b110,
0b110,
0b110,
0b110,
0b110
)),162:(6,0,6,(
0b000000,
0b000000,
0b001000,
0b011100,
0b101010,
0b101000,
0b101000,
0b101010,
0b011100,
0b001000,
0b000000
)),163:(7,0,7,(
0b0000000,
0b0000000,
0b0011100,
0b0110000,
0b0110000,
0b1111000,
0b0110000,
0b0110010,
0b1111100,
0b0000000,
0b0000000
)),164:(8,0,8,(
0b00000000,
0b00000000,
0b10111010,
0b01111100,
0b11000110,
0b11000110,
0b11000110,
0b01111100,
0b10111010,
0b00000000,
0b00000000
)),165:(7,0,7,(
0b0000000,
0b0000000,
0b1100010,
0b0110100,
0b1111110,
0b0011000,
0b1111110,
0b0011000,
0b0011000,
0b0000000,
0b0000000
)),166:(3,0,3,(
0b000,
0b000,
0b110,
0b110,
0b110,
0b110,
0b000,
0b110,
0b110,
0b110,
0b110
)),167:(6,0,6,(
0b000000,
0b011100,
0b110110,
0b011000,
0b111100,
0b110110,
0b011110,
0b001100,
0b110110,
0b011100,
0b000000
)),168:(4,0,4,(
0b0000,
0b0000,
0b0000,
0b1010,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000
)),169:(8,0,8,(
0b00000000,
0b00000000,
0b00000000,
0b01111100,
0b10000010,
0b10111010,
0b10100010,
0b10111010,
0b10000010,
0b01111100,
0b00000000
)),170:(6,0,6,(
0b000000,
0b000000,
0b011110,
0b110110,
0b011110,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000
)),171:(8,0,8,(
0b00000000,
0b00000000,
0b00000000,
0b00000000,
0b00110110,
0b01101100,
0b11011000,
0b01101100,
0b00110110,
0b00000000,
0b00000000
)),172:(6,0,6,(
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b111110,
0b000010,
0b000010,
0b000000,
0b000000,
0b000000
)),173:(5,0,5,(
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b11110,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000
)),174:(8,0,8,(
0b00000000,
0b00000000,
0b00000000,
0b01111100,
0b10000010,
0b10111010,
0b10110010,
0b10101010,
0b10000010,
0b01111100,
0b00000000
)),175:(6,0,6,(
0b000000,
0b111110,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000
)),176:(5,0,5,(
0b00000,
0b01100,
0b10010,
0b10010,
0b01100,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000
)),177:(6,0,6,(
0b000000,
0b000000,
0b001000,
0b001000,
0b111110,
0b001000,
0b001000,
0b111110,
0b000000,
0b000000,
0b000000
)),178:(4,0,4,(
0b0000,
0b0000,
0b1110,
0b0010,
0b0100,
0b1110,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000
)),179:(4,0,4,(
0b0000,
0b0000,
0b1110,
0b0100,
0b0010,
0b1110,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000
)),180:(4,0,4,(
0b0000,
0b0000,
0b0110,
0b1000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000
)),181:(6,0,6,(
0b000000,
0b000000,
0b000000,
0b000000,
0b110110,
0b110110,
0b110110,
0b110110,
0b111110,
0b110000,
0b110000
)),182:(7,0,7,(
0b0000000,
0b0000000,
0b0111110,
0b1110110,
0b1110110,
0b0110110,
0b0010110,
0b0010110,
0b0010110,
0b0000000,
0b0000000
)),183:(2,0,2,(
0b00,
0b00,
0b00,
0b00,
0b00,
0b10,
0b00,
0b00,
0b00,
0b00,
0b00
)),184:(4,0,4,(
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0100,
0b0010,
0b1100
)),185:(2,0,2,(
0b00,
0b00,
0b10,
0b10,
0b10,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00
)),186:(6,0,6,(
0b000000,
0b000000,
0b011100,
0b110110,
0b011100,
0b000000,
0b111110,
0b000000,
0b000000,
0b000000,
0b000000
)),187:(8,0,8,(
0b00000000,
0b00000000,
0b00000000,
0b00000000,
0b11011000,
0b01101100,
0b00110110,
0b01101100,
0b11011000,
0b00000000,
0b00000000
)),188:(9,0,9,(
0b000000000,
0b010000000,
0b010001100,
0b010011000,
0b010110000,
0b001101100,
0b011010100,
0b110011110,
0b000000100,
0b000000000,
0b000000000
)),189:(9,0,9,(
0b000000000,
0b010000000,
0b010001100,
0b010011000,
0b010110000,
0b001101110,
0b011000110,
0b110001100,
0b000001110,
0b000000000,
0b000000000
)),190:(9,0,9,(
0b000000000,
0b111000000,
0b011001100,
0b001011000,
0b111110000,
0b001101100,
0b011010100,
0b110011110,
0b000000100,
0b000000000,
0b000000000
)),191:(6,0,6,(
0b000000,
0b000000,
0b001100,
0b000000,
0b001100,
0b011100,
0b110000,
0b110010,
0b011100,
0b000000,
0b000000
)),192:(6,0,6,(
0b010000,
0b001000,
0b000000,
0b011110,
0b110110,
0b110110,
0b111110,
0b110110,
0b110110,
0b000000,
0b000000
)),193:(6,0,6,(
0b000100,
0b001000,
0b000000,
0b011110,
0b110110,
0b110110,
0b111110,
0b110110,
0b110110,
0b000000,
0b000000
)),194:(6,0,6,(
0b001000,
0b010100,
0b000000,
0b011110,
0b110110,
0b110110,
0b111110,
0b110110,
0b110110,
0b000000,
0b000000
)),195:(6,0,6,(
0b011010,
0b101100,
0b000000,
0b011110,
0b110110,
0b110110,
0b111110,
0b110110,
0b110110,
0b000000,
0b000000
)),196:(6,0,6,(
0b000000,
0b010100,
0b000000,
0b011110,
0b110110,
0b110110,
0b111110,
0b110110,
0b110110,
0b000000,
0b000000
)),197:(6,0,6,(
0b001000,
0b010100,
0b001000,
0b011110,
0b110110,
0b110110,
0b111110,
0b110110,
0b110110,
0b000000,
0b000000
)),198:(9,0,9,(
0b000000000,
0b000000000,
0b011111110,
0b110011000,
0b110011000,
0b111111110,
0b110011000,
0b110011000,
0b110011110,
0b000000000,
0b000000000
)),199:(6,0,6,(
0b000000,
0b000000,
0b001110,
0b011010,
0b110000,
0b110000,
0b110000,
0b011010,
0b001110,
0b000100,
0b001000
)),200:(5,0,5,(
0b01000,
0b00100,
0b00000,
0b11110,
0b11000,
0b11110,
0b11000,
0b11000,
0b11110,
0b00000,
0b00000
)),201:(5,0,5,(
0b00100,
0b01000,
0b00000,
0b11110,
0b11000,
0b11110,
0b11000,
0b11000,
0b11110,
0b00000,
0b00000
)),202:(5,0,5,(
0b00100,
0b01010,
0b00000,
0b11110,
0b11000,
0b11110,
0b11000,
0b11000,
0b11110,
0b00000,
0b00000
)),203:(5,0,5,(
0b00000,
0b01010,
0b00000,
0b11110,
0b11000,
0b11110,
0b11000,
0b11000,
0b11110,
0b00000,
0b00000
)),204:(3,0,3,(
0b100,
0b010,
0b000,
0b110,
0b110,
0b110,
0b110,
0b110,
0b110,
0b000,
0b000
)),205:(3,0,3,(
0b010,
0b100,
0b000,
0b110,
0b110,
0b110,
0b110,
0b110,
0b110,
0b000,
0b000
)),206:(3,0,3,(
0b010,
0b101,
0b000,
0b110,
0b110,
0b110,
0b110,
0b110,
0b110,
0b000,
0b000
)),207:(3,0,3,(
0b000,
0b101,
0b000,
0b110,
0b110,
0b110,
0b110,
0b110,
0b110,
0b000,
0b000
)),208:(8,0,8,(
0b00000000,
0b00000000,
0b01111000,
0b01101100,
0b01100110,
0b11110110,
0b01100110,
0b01101100,
0b01111000,
0b00000000,
0b00000000
)),209:(6,0,6,(
0b011010,
0b101100,
0b000000,
0b100110,
0b110110,
0b111110,
0b111110,
0b110110,
0b110010,
0b000000,
0b000000
)),210:(6,0,6,(
0b011000,
0b001100,
0b000000,
0b011110,
0b110110,
0b110110,
0b110110,
0b110110,
0b111100,
0b000000,
0b000000
)),211:(6,0,6,(
0b001100,
0b011000,
0b000000,
0b011110,
0b110110,
0b110110,
0b110110,
0b110110,
0b111100,
0b000000,
0b000000
)),212:(6,0,6,(
0b001000,
0b010100,
0b000000,
0b011110,
0b110110,
0b110110,
0b110110,
0b110110,
0b111100,
0b000000,
0b000000
)),213:(6,0,6,(
0b011010,
0b101100,
0b000000,
0b011110,
0b110110,
0b110110,
0b110110,
0b110110,
0b111100,
0b000000,
0b000000
)),214:(6,0,6,(
0b000000,
0b010100,
0b000000,
0b011110,
0b110110,
0b110110,
0b110110,
0b110110,
0b111100,
0b000000,
0b000000
)),215:(6,0,6,(
0b000000,
0b000000,
0b000000,
0b000000,
0b110110,
0b011100,
0b011100,
0b110110,
0b000000,
0b000000,
0b000000
)),216:(8,0,8,(
0b00000000,
0b00000000,
0b00111010,
0b01101100,
0b11001110,
0b11010110,
0b11100110,
0b01101100,
0b10111000,
0b00000000,
0b00000000
)),217:(6,0,6,(
0b010000,
0b001000,
0b000000,
0b110110,
0b110110,
0b110110,
0b110110,
0b110110,
0b011110,
0b000000,
0b000000
)),218:(6,0,6,(
0b000100,
0b001000,
0b000000,
0b110110,
0b110110,
0b110110,
0b110110,
0b110110,
0b011110,
0b000000,
0b000000
)),219:(6,0,6,(
0b001000,
0b010100,
0b000000,
0b110110,
0b110110,
0b110110,
0b110110,
0b110110,
0b011110,
0b000000,
0b000000
)),220:(6,0,6,(
0b000000,
0b010100,
0b000000,
0b110110,
0b110110,
0b110110,
0b110110,
0b110110,
0b011110,
0b000000,
0b000000
)),221:(7,0,7,(
0b0001000,
0b0010000,
0b0000000,
0b1100110,
0b1100110,
0b0111100,
0b0011000,
0b0011000,
0b0011000,
0b0000000,
0b0000000
)),222:(7,0,7,(
0b0000000,
0b0000000,
0b1100000,
0b1111100,
0b1100110,
0b1100110,
0b1100110,
0b1111100,
0b1100000,
0b0000000,
0b0000000
)),223:(8,0,8,(
0b00000000,
0b00000000,
0b01111000,
0b11001100,
0b11001000,
0b11011100,
0b11001110,
0b11000110,
0b11011100,
0b00000000,
0b00000000
)),224:(6,0,6,(
0b000000,
0b010000,
0b001000,
0b000000,
0b111100,
0b000110,
0b011110,
0b110110,
0b111110,
0b000000,
0b000000
)),225:(6,0,6,(
0b000000,
0b000100,
0b001000,
0b000000,
0b111100,
0b000110,
0b011110,
0b110110,
0b111110,
0b000000,
0b000000
)),226:(6,0,6,(
0b000000,
0b001000,
0b010100,
0b000000,
0b111100,
0b000110,
0b011110,
0b110110,
0b111110,
0b000000,
0b000000
)),227:(6,0,6,(
0b000000,
0b011010,
0b101100,
0b000000,
0b111100,
0b000110,
0b011110,
0b110110,
0b111110,
0b000000,
0b000000
)),228:(6,0,6,(
0b000000,
0b000000,
0b010100,
0b000000,
0b111100,
0b000110,
0b011110,
0b110110,
0b111110,
0b000000,
0b000000
)),229:(6,0,6,(
0b001000,
0b010100,
0b001000,
0b000000,
0b111100,
0b000110,
0b011110,
0b110110,
0b111110,
0b000000,
0b000000
)),230:(9,0,9,(
0b000000000,
0b000000000,
0b000000000,
0b000000000,
0b011101100,
0b000110110,
0b011111100,
0b110111000,
0b111111110,
0b000000000,
0b000000000
)),231:(5,0,5,(
0b00000,
0b00000,
0b00000,
0b00000,
0b01110,
0b11000,
0b11000,
0b11000,
0b01110,
0b00100,
0b01000
)),232:(6,0,6,(
0b000000,
0b001000,
0b000100,
0b000000,
0b011100,
0b110010,
0b110100,
0b111000,
0b011110,
0b000000,
0b000000
)),233:(6,0,6,(
0b000000,
0b000100,
0b001000,
0b000000,
0b011100,
0b110010,
0b110100,
0b111000,
0b011110,
0b000000,
0b000000
)),234:(6,0,6,(
0b000000,
0b001000,
0b010100,
0b000000,
0b011100,
0b110010,
0b110100,
0b111000,
0b011110,
0b000000,
0b000000
)),235:(6,0,6,(
0b000000,
0b000000,
0b010100,
0b000000,
0b011100,
0b110010,
0b110100,
0b111000,
0b011110,
0b000000,
0b000000
)),236:(3,0,3,(
0b000,
0b100,
0b010,
0b000,
0b110,
0b110,
0b110,
0b110,
0b110,
0b000,
0b000
)),237:(3,0,3,(
0b000,
0b010,
0b100,
0b000,
0b110,
0b110,
0b110,
0b110,
0b110,
0b000,
0b000
)),238:(3,0,3,(
0b000,
0b010,
0b101,
0b000,
0b110,
0b110,
0b110,
0b110,
0b110,
0b000,
0b000
)),239:(3,0,3,(
0b000,
0b000,
0b101,
0b000,
0b110,
0b110,
0b110,
0b110,
0b110,
0b000,
0b000
)),240:(6,0,6,(
0b000000,
0b000000,
0b111000,
0b111000,
0b001100,
0b011100,
0b110110,
0b110110,
0b011100,
0b000000,
0b000000
)),241:(6,0,6,(
0b000000,
0b011010,
0b101100,
0b000000,
0b111100,
0b110110,
0b110110,
0b110110,
0b110110,
0b000000,
0b000000
)),242:(6,0,6,(
0b000000,
0b001000,
0b000100,
0b000000,
0b011100,
0b110110,
0b110110,
0b110110,
0b011100,
0b000000,
0b000000
)),243:(6,0,6,(
0b000000,
0b000100,
0b001000,
0b000000,
0b011100,
0b110110,
0b110110,
0b110110,
0b011100,
0b000000,
0b000000
)),244:(6,0,6,(
0b000000,
0b001000,
0b010100,
0b000000,
0b011100,
0b110110,
0b110110,
0b110110,
0b011100,
0b000000,
0b000000
)),245:(6,0,6,(
0b000000,
0b011010,
0b101100,
0b000000,
0b011100,
0b110110,
0b110110,
0b110110,
0b011100,
0b000000,
0b000000
)),246:(6,0,6,(
0b000000,
0b000000,
0b010100,
0b000000,
0b011100,
0b110110,
0b110110,
0b110110,
0b011100,
0b000000,
0b000000
)),247:(7,0,7,(
0b0000000,
0b0000000,
0b0000000,
0b0011000,
0b0000000,
0b1111110,
0b0000000,
0b0011000,
0b0000000,
0b0000000,
0b0000000
)),248:(8,0,8,(
0b00000000,
0b00000000,
0b00000000,
0b00000000,
0b00111010,
0b01101100,
0b01111100,
0b01101100,
0b10111000,
0b00000000,
0b00000000
)),249:(6,0,6,(
0b000000,
0b001000,
0b000100,
0b000000,
0b110110,
0b110110,
0b110110,
0b110110,
0b011110,
0b000000,
0b000000
)),250:(6,0,6,(
0b000000,
0b000100,
0b001000,
0b000000,
0b110110,
0b110110,
0b110110,
0b110110,
0b011110,
0b000000,
0b000000
)),251:(6,0,6,(
0b000000,
0b001000,
0b010100,
0b000000,
0b110110,
0b110110,
0b110110,
0b110110,
0b011110,
0b000000,
0b000000
)),252:(6,0,6,(
0b000000,
0b000000,
0b010100,
0b000000,
0b110110,
0b110110,
0b110110,
0b110110,
0b011110,
0b000000,
0b000000
)),253:(6,0,6,(
0b000000,
0b000100,
0b001000,
0b000000,
0b110110,
0b110110,
0b110110,
0b011100,
0b001100,
0b111000,
0b110000
)),254:(6,0,6,(
0b000000,
0b000000,
0b000000,
0b110000,
0b111100,
0b110110,
0b110110,
0b110110,
0b111100,
0b110000,
0b110000
)),255:(6,0,6,(
0b000000,
0b000000,
0b010100,
0b000000,
0b110110,
0b110110,
0b110110,
0b011100,
0b001100,
0b111000,
0b110000
)),}
# generated by fontconv
#fontType 36864
#firstChar 9
#lastChar 255
#maxWidth 17
#kernMax 0
#nDescent 0
#fRectWidth 17
#fRectHeight 11
#ascent 9
#descent 2
#leading 0
#averageWidth 5.99
FONTS['mactall'] = {
9:(2,0,2,(
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00
)),20:(11,0,11,(
0b01111000000,
0b11111100000,
0b10000100100,
0b11111101000,
0b01111010000,
0b00110000000,
0b00110011010,
0b00110000000,
0b01110010000,
0b01110001000,
0b00110000100
)),21:(5,0,5,(
0b00000,
0b00100,
0b01000,
0b10000,
0b00000,
0b11010,
0b00000,
0b10000,
0b01000,
0b00100,
0b00000
)),22:(10,0,10,(
0b0000000000,
0b0000000000,
0b0000000110,
0b0000001100,
0b0000011000,
0b0000110000,
0b0001100000,
0b1111000000,
0b1110000000,
0b1110000000,
0b0000000000
)),23:(8,0,8,(
0b00000000,
0b00000000,
0b00111000,
0b01101100,
0b01101100,
0b01101100,
0b01101100,
0b00111000,
0b11101100,
0b11000110,
0b00000000
)),24:(6,0,6,(
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b101010,
0b000000,
0b000000
)),25:(5,0,5,(
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000
)),32:(2,0,2,(
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00
)),33:(3,0,3,(
0b000,
0b110,
0b110,
0b110,
0b110,
0b110,
0b000,
0b110,
0b110,
0b000,
0b000
)),34:(6,0,6,(
0b000000,
0b110110,
0b110110,
0b010010,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000
)),35:(10,0,10,(
0b0000000000,
0b0000000000,
0b0001101100,
0b0001101100,
0b0111111110,
0b0011011000,
0b1111111100,
0b0110110000,
0b0110110000,
0b0000000000,
0b0000000000
)),36:(6,0,6,(
0b000000,
0b001000,
0b011100,
0b101010,
0b111000,
0b011100,
0b001110,
0b101010,
0b011100,
0b001000,
0b000000
)),37:(10,0,10,(
0b0000000000,
0b0111111110,
0b1001001100,
0b1001011000,
0b0110110000,
0b0001101100,
0b0011010010,
0b0110010010,
0b1100001100,
0b0000000000,
0b0000000000
)),38:(8,0,8,(
0b00000000,
0b01110000,
0b11011000,
0b11000000,
0b01100010,
0b01101110,
0b11000100,
0b11001100,
0b01111000,
0b00000000,
0b00000000
)),39:(3,0,3,(
0b000,
0b110,
0b110,
0b010,
0b000,
0b000,
0b000,
0b000,
0b000,
0b000,
0b000
)),40:(4,0,4,(
0b0000,
0b0110,
0b1100,
0b1100,
0b1100,
0b1100,
0b1100,
0b1100,
0b1100,
0b0110,
0b0000
)),41:(4,0,4,(
0b0000,
0b1100,
0b0110,
0b0110,
0b0110,
0b0110,
0b0110,
0b0110,
0b0110,
0b1100,
0b0000
)),42:(6,0,6,(
0b000000,
0b001000,
0b101010,
0b010100,
0b101010,
0b001000,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000
)),43:(6,0,6,(
0b000000,
0b000000,
0b000000,
0b001000,
0b001000,
0b111110,
0b001000,
0b001000,
0b000000,
0b000000,
0b000000
)),44:(3,0,3,(
0b000,
0b000,
0b000,
0b000,
0b000,
0b000,
0b000,
0b110,
0b110,
0b010,
0b100
)),45:(6,0,6,(
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b111110,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000
)),46:(3,0,3,(
0b000,
0b000,
0b000,
0b000,
0b000,
0b000,
0b000,
0b110,
0b110,
0b000,
0b000
)),47:(5,0,5,(
0b00000,
0b00010,
0b00110,
0b00100,
0b01100,
0b01000,
0b11000,
0b10000,
0b10000,
0b00000,
0b00000
)),48:(6,0,6,(
0b000000,
0b011100,
0b110110,
0b110110,
0b110110,
0b110110,
0b110110,
0b110110,
0b011100,
0b000000,
0b000000
)),49:(6,0,6,(
0b000000,
0b001100,
0b011100,
0b001100,
0b001100,
0b001100,
0b001100,
0b001100,
0b011110,
0b000000,
0b000000
)),50:(6,0,6,(
0b000000,
0b011100,
0b110110,
0b000110,
0b001110,
0b011100,
0b111000,
0b110000,
0b111110,
0b000000,
0b000000
)),51:(6,0,6,(
0b000000,
0b111110,
0b000110,
0b001100,
0b011100,
0b000110,
0b000110,
0b110110,
0b011100,
0b000000,
0b000000
)),52:(6,0,6,(
0b000000,
0b001110,
0b011110,
0b110110,
0b110110,
0b111110,
0b111110,
0b000110,
0b000110,
0b000000,
0b000000
)),53:(6,0,6,(
0b000000,
0b111110,
0b110000,
0b110000,
0b111100,
0b000110,
0b000110,
0b110110,
0b011100,
0b000000,
0b000000
)),54:(6,0,6,(
0b000000,
0b001100,
0b011000,
0b110000,
0b111100,
0b110110,
0b110110,
0b110110,
0b011100,
0b000000,
0b000000
)),55:(6,0,6,(
0b000000,
0b111110,
0b000110,
0b000110,
0b001100,
0b001100,
0b011000,
0b011000,
0b011000,
0b000000,
0b000000
)),56:(6,0,6,(
0b000000,
0b011100,
0b110110,
0b110110,
0b011100,
0b110110,
0b110110,
0b110110,
0b011100,
0b000000,
0b000000
)),57:(6,0,6,(
0b000000,
0b011100,
0b110110,
0b110110,
0b110110,
0b011110,
0b000110,
0b001100,
0b011000,
0b000000,
0b000000
)),58:(3,0,3,(
0b000,
0b000,
0b000,
0b110,
0b110,
0b000,
0b000,
0b110,
0b110,
0b000,
0b000
)),59:(3,0,3,(
0b000,
0b000,
0b000,
0b110,
0b110,
0b000,
0b000,
0b110,
0b110,
0b010,
0b100
)),60:(5,0,5,(
0b00000,
0b00000,
0b00010,
0b00110,
0b01100,
0b11000,
0b01100,
0b00110,
0b00010,
0b00000,
0b00000
)),61:(6,0,6,(
0b000000,
0b000000,
0b000000,
0b000000,
0b111110,
0b000000,
0b111110,
0b000000,
0b000000,
0b000000,
0b000000
)),62:(5,0,5,(
0b00000,
0b00000,
0b10000,
0b11000,
0b01100,
0b00110,
0b01100,
0b11000,
0b10000,
0b00000,
0b00000
)),63:(6,0,6,(
0b000000,
0b011100,
0b100110,
0b001100,
0b011000,
0b011000,
0b000000,
0b011000,
0b011000,
0b000000,
0b000000
)),64:(8,0,8,(
0b00000000,
0b00111000,
0b01000100,
0b10011010,
0b10101010,
0b10101010,
0b10111100,
0b01000000,
0b00111100,
0b00000000,
0b00000000
)),65:(6,0,6,(
0b000000,
0b011110,
0b110110,
0b110110,
0b111110,
0b110110,
0b110110,
0b110110,
0b110110,
0b000000,
0b000000
)),66:(6,0,6,(
0b000000,
0b111110,
0b110110,
0b110110,
0b111100,
0b110110,
0b110110,
0b110110,
0b111100,
0b000000,
0b000000
)),67:(6,0,6,(
0b000000,
0b011100,
0b110110,
0b110000,
0b110000,
0b110000,
0b110000,
0b110110,
0b011100,
0b000000,
0b000000
)),68:(6,0,6,(
0b000000,
0b111110,
0b110110,
0b110110,
0b110110,
0b110110,
0b110110,
0b110110,
0b111100,
0b000000,
0b000000
)),69:(5,0,5,(
0b00000,
0b11110,
0b11000,
0b11000,
0b11110,
0b11000,
0b11000,
0b11000,
0b11110,
0b00000,
0b00000
)),70:(5,0,5,(
0b00000,
0b11110,
0b11000,
0b11000,
0b11110,
0b11000,
0b11000,
0b11000,
0b11000,
0b00000,
0b00000
)),71:(6,0,6,(
0b000000,
0b011100,
0b110010,
0b110000,
0b110110,
0b110110,
0b110110,
0b110110,
0b011100,
0b000000,
0b000000
)),72:(6,0,6,(
0b000000,
0b110110,
0b110110,
0b110110,
0b111110,
0b110110,
0b110110,
0b110110,
0b110110,
0b000000,
0b000000
)),73:(3,0,3,(
0b000,
0b110,
0b110,
0b110,
0b110,
0b110,
0b110,
0b110,
0b110,
0b000,
0b000
)),74:(6,0,6,(
0b000000,
0b000110,
0b000110,
0b000110,
0b000110,
0b110110,
0b110110,
0b110110,
0b011100,
0b000000,
0b000000
)),75:(7,0,7,(
0b0000000,
0b1100110,
0b1101100,
0b1111000,
0b1110000,
0b1110000,
0b1111000,
0b1101100,
0b1100110,
0b0000000,
0b0000000
)),76:(5,0,5,(
0b00000,
0b11000,
0b11000,
0b11000,
0b11000,
0b11000,
0b11000,
0b11000,
0b11110,
0b00000,
0b00000
)),77:(8,0,8,(
0b00000000,
0b10000110,
0b11000110,
0b11101110,
0b11111110,
0b10111110,
0b10010110,
0b10000110,
0b10000110,
0b00000000,
0b00000000
)),78:(6,0,6,(
0b000000,
0b100010,
0b110010,
0b111010,
0b111110,
0b101110,
0b100110,
0b100010,
0b100010,
0b000000,
0b000000
)),79:(6,0,6,(
0b000000,
0b011110,
0b110110,
0b110110,
0b110110,
0b110110,
0b110110,
0b110110,
0b111100,
0b000000,
0b000000
)),80:(6,0,6,(
0b000000,
0b111110,
0b110110,
0b110110,
0b111100,
0b110000,
0b110000,
0b110000,
0b110000,
0b000000,
0b000000
)),81:(6,0,6,(
0b000000,
0b011110,
0b110110,
0b110110,
0b110110,
0b110110,
0b110110,
0b110110,
0b111100,
0b000111,
0b000111
)),82:(6,0,6,(
0b000000,
0b111110,
0b110110,
0b110110,
0b111100,
0b110110,
0b110110,
0b110110,
0b110110,
0b000000,
0b000000
)),83:(6,0,6,(
0b000000,
0b011100,
0b110010,
0b111000,
0b011100,
0b001110,
0b100110,
0b110110,
0b011100,
0b000000,
0b000000
)),84:(7,0,7,(
0b0000000,
0b1111110,
0b0011000,
0b0011000,
0b0011000,
0b0011000,
0b0011000,
0b0011000,
0b0011000,
0b0000000,
0b0000000
)),85:(6,0,6,(
0b000000,
0b110110,
0b110110,
0b110110,
0b110110,
0b110110,
0b110110,
0b110110,
0b011110,
0b000000,
0b000000
)),86:(6,0,6,(
0b000000,
0b110110,
0b110110,
0b110110,
0b110110,
0b110110,
0b110110,
0b011100,
0b001000,
0b000000,
0b000000
)),87:(9,0,9,(
0b000000000,
0b110110110,
0b110110110,
0b110110110,
0b110110110,
0b110110110,
0b110110110,
0b110110110,
0b111111100,
0b000000000,
0b000000000
)),88:(6,0,6,(
0b000000,
0b110110,
0b110110,
0b110110,
0b011100,
0b111110,
0b110110,
0b110110,
0b110110,
0b000000,
0b000000
)),89:(7,0,7,(
0b0000000,
0b1100110,
0b1100110,
0b1100110,
0b0111100,
0b0011000,
0b0011000,
0b0011000,
0b0011000,
0b0000000,
0b0000000
)),90:(6,0,6,(
0b000000,
0b111110,
0b000110,
0b001100,
0b011000,
0b011000,
0b110000,
0b110000,
0b111110,
0b000000,
0b000000
)),91:(4,0,4,(
0b0000,
0b1110,
0b1100,
0b1100,
0b1100,
0b1100,
0b1100,
0b1100,
0b1100,
0b1110,
0b0000
)),92:(6,0,6,(
0b000000,
0b110000,
0b110000,
0b011000,
0b011000,
0b001100,
0b001100,
0b000110,
0b000110,
0b000010,
0b000000
)),93:(4,0,4,(
0b0000,
0b1110,
0b0110,
0b0110,
0b0110,
0b0110,
0b0110,
0b0110,
0b0110,
0b1110,
0b0000
)),94:(6,0,6,(
0b000000,
0b001000,
0b011100,
0b110110,
0b100010,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000
)),95:(6,0,6,(
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b111111,
0b000000,
0b000000
)),96:(4,0,4,(
0b0000,
0b0000,
0b1100,
0b0010,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000
)),97:(6,0,6,(
0b000000,
0b000000,
0b000000,
0b111100,
0b000110,
0b011110,
0b110110,
0b110110,
0b011110,
0b000000,
0b000000
)),98:(6,0,6,(
0b000000,
0b110000,
0b110000,
0b111100,
0b110110,
0b110110,
0b110110,
0b110110,
0b111100,
0b000000,
0b000000
)),99:(5,0,5,(
0b00000,
0b00000,
0b00000,
0b01110,
0b11010,
0b11000,
0b11000,
0b11010,
0b01110,
0b00000,
0b00000
)),100:(6,0,6,(
0b000000,
0b000110,
0b000110,
0b011110,
0b110110,
0b110110,
0b110110,
0b110110,
0b011110,
0b000000,
0b000000
)),101:(6,0,6,(
0b000000,
0b000000,
0b000000,
0b011100,
0b110110,
0b111110,
0b110000,
0b110010,
0b011100,
0b000000,
0b000000
)),102:(5,0,5,(
0b00000,
0b00111,
0b01100,
0b11110,
0b01100,
0b01100,
0b01100,
0b01100,
0b01100,
0b00000,
0b00000
)),103:(6,0,6,(
0b000000,
0b000000,
0b000000,
0b011110,
0b110110,
0b110110,
0b110110,
0b110110,
0b011110,
0b000110,
0b111100
)),104:(6,0,6,(
0b000000,
0b110000,
0b110000,
0b111100,
0b110110,
0b110110,
0b110110,
0b110110,
0b110110,
0b000000,
0b000000
)),105:(3,0,3,(
0b000,
0b110,
0b000,
0b110,
0b110,
0b110,
0b110,
0b110,
0b110,
0b000,
0b000
)),106:(4,0,4,(
0b0000,
0b0110,
0b0000,
0b0110,
0b0110,
0b0110,
0b0110,
0b0110,
0b0110,
0b0110,
0b1100
)),107:(6,0,6,(
0b000000,
0b110000,
0b110000,
0b110010,
0b110110,
0b111100,
0b111100,
0b110110,
0b110010,
0b000000,
0b000000
)),108:(3,0,3,(
0b000,
0b110,
0b110,
0b110,
0b110,
0b110,
0b110,
0b110,
0b110,
0b000,
0b000
)),109:(9,0,9,(
0b000000000,
0b000000000,
0b000000000,
0b111101100,
0b110110110,
0b110110110,
0b110110110,
0b110110110,
0b110110110,
0b000000000,
0b000000000
)),110:(6,0,6,(
0b000000,
0b000000,
0b000000,
0b111100,
0b110110,
0b110110,
0b110110,
0b110110,
0b110110,
0b000000,
0b000000
)),111:(6,0,6,(
0b000000,
0b000000,
0b000000,
0b011100,
0b110110,
0b110110,
0b110110,
0b110110,
0b011100,
0b000000,
0b000000
)),112:(6,0,6,(
0b000000,
0b000000,
0b000000,
0b111100,
0b110110,
0b110110,
0b110110,
0b110110,
0b111100,
0b110000,
0b110000
)),113:(6,0,6,(
0b000000,
0b000000,
0b000000,
0b011110,
0b110110,
0b110110,
0b110110,
0b110110,
0b011110,
0b000110,
0b000110
)),114:(5,0,5,(
0b00000,
0b00000,
0b00000,
0b11010,
0b11110,
0b11000,
0b11000,
0b11000,
0b11000,
0b00000,
0b00000
)),115:(5,0,5,(
0b00000,
0b00000,
0b00000,
0b01110,
0b11010,
0b11100,
0b01110,
0b10110,
0b11100,
0b00000,
0b00000
)),116:(5,0,5,(
0b00000,
0b01100,
0b01100,
0b11110,
0b01100,
0b01100,
0b01100,
0b01100,
0b00110,
0b00000,
0b00000
)),117:(6,0,6,(
0b000000,
0b000000,
0b000000,
0b110110,
0b110110,
0b110110,
0b110110,
0b110110,
0b011110,
0b000000,
0b000000
)),118:(6,0,6,(
0b000000,
0b000000,
0b000000,
0b110110,
0b110110,
0b110110,
0b110110,
0b011100,
0b001000,
0b000000,
0b000000
)),119:(9,0,9,(
0b000000000,
0b000000000,
0b000000000,
0b110110110,
0b110110110,
0b110110110,
0b110110110,
0b110110110,
0b111111100,
0b000000000,
0b000000000
)),120:(6,0,6,(
0b000000,
0b000000,
0b000000,
0b110110,
0b110110,
0b011100,
0b110110,
0b110110,
0b110110,
0b000000,
0b000000
)),121:(6,0,6,(
0b000000,
0b000000,
0b000000,
0b110110,
0b110110,
0b110110,
0b110110,
0b110110,
0b011110,
0b000110,
0b111100
)),122:(6,0,6,(
0b000000,
0b000000,
0b000000,
0b111110,
0b000110,
0b001100,
0b011000,
0b110000,
0b111110,
0b000000,
0b000000
)),123:(5,0,5,(
0b00000,
0b00110,
0b01100,
0b01100,
0b01100,
0b11000,
0b01100,
0b01100,
0b01100,
0b00110,
0b00000
)),124:(3,0,3,(
0b000,
0b110,
0b110,
0b110,
0b110,
0b110,
0b110,
0b110,
0b110,
0b110,
0b000
)),125:(5,0,5,(
0b00000,
0b11000,
0b01100,
0b01100,
0b01100,
0b00110,
0b01100,
0b01100,
0b01100,
0b11000,
0b00000
)),126:(7,0,7,(
0b0000000,
0b0000000,
0b0000000,
0b0110000,
0b1110010,
0b1001110,
0b0001100,
0b0000000,
0b0000000,
0b0000000,
0b0000000
)),128:(9,0,9,(
0b000000000,
0b000000000,
0b000111100,
0b001100010,
0b111111000,
0b011000000,
0b111110000,
0b001100010,
0b000111100,
0b000000000,
0b000000000
)),130:(3,0,3,(
0b000,
0b000,
0b000,
0b000,
0b000,
0b000,
0b000,
0b110,
0b110,
0b010,
0b100
)),131:(9,0,9,(
0b000000000,
0b000000000,
0b000001110,
0b000011000,
0b001111100,
0b000110000,
0b000110000,
0b001100000,
0b001100000,
0b111000000,
0b000000000
)),132:(6,0,6,(
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b110110,
0b110110,
0b010010,
0b100100
)),133:(6,0,6,(
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b101010,
0b000000,
0b000000
)),134:(5,0,5,(
0b00000,
0b00000,
0b01100,
0b01100,
0b11110,
0b01100,
0b01100,
0b01100,
0b01100,
0b01100,
0b01100
)),135:(5,0,5,(
0b00000,
0b00000,
0b01100,
0b01100,
0b11110,
0b01100,
0b01100,
0b01100,
0b11110,
0b01100,
0b01100
)),136:(4,0,4,(
0b0000,
0b0000,
0b0100,
0b1010,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000
)),137:(17,0,17,(
0b00000000000000000,
0b00000000000000000,
0b01110000100000000,
0b11011001100000000,
0b11011011000000000,
0b01110110111011100,
0b00001101101110110,
0b00011001101110110,
0b00110000111011100,
0b00000000000000000,
0b00000000000000000
)),138:(6,0,6,(
0b010100,
0b001000,
0b000000,
0b011110,
0b111000,
0b011100,
0b001110,
0b000110,
0b111100,
0b000000,
0b000000
)),139:(5,0,5,(
0b00000,
0b00000,
0b00000,
0b00110,
0b01100,
0b11000,
0b01100,
0b00110,
0b00000,
0b00000,
0b00000
)),140:(10,0,10,(
0b0000000000,
0b0000000000,
0b0011111110,
0b0110011000,
0b1100011000,
0b1100011110,
0b1100011000,
0b0110011000,
0b0011111110,
0b0000000000,
0b0000000000
)),141:(10,0,10,(
0b0000000000,
0b0000100000,
0b0001110000,
0b0011011000,
0b0110001100,
0b1100000110,
0b1100000110,
0b0110001100,
0b0011011000,
0b0001110000,
0b0000100000
)),142:(10,0,10,(
0b0000000000,
0b0001110000,
0b0011111000,
0b0011111000,
0b0101110100,
0b1111111110,
0b1111111110,
0b1111111110,
0b0110101100,
0b0001110000,
0b0011111000
)),143:(10,0,10,(
0b0000000000,
0b0000000000,
0b0111011100,
0b1101110110,
0b1000100010,
0b1000000010,
0b1100000110,
0b0110001100,
0b0011011000,
0b0001110000,
0b0000100000
)),144:(10,0,10,(
0b0000000000,
0b0000100000,
0b0001110000,
0b0011111000,
0b0111111100,
0b1111111110,
0b1111111110,
0b1111111110,
0b0110101100,
0b0001110000,
0b0011111000
)),145:(3,0,3,(
0b000,
0b010,
0b100,
0b110,
0b110,
0b000,
0b000,
0b000,
0b000,
0b000,
0b000
)),146:(3,0,3,(
0b000,
0b110,
0b110,
0b010,
0b100,
0b000,
0b000,
0b000,
0b000,
0b000,
0b000
)),147:(6,0,6,(
0b000000,
0b010010,
0b100100,
0b110110,
0b110110,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000
)),148:(6,0,6,(
0b000000,
0b110110,
0b110110,
0b010010,
0b100100,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000
)),149:(6,0,6,(
0b000000,
0b000000,
0b000000,
0b011100,
0b111110,
0b111110,
0b111110,
0b011100,
0b000000,
0b000000,
0b000000
)),150:(4,0,4,(
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b1111,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000
)),151:(6,0,6,(
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b111111,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000
)),152:(7,0,7,(
0b0000000,
0b0000000,
0b0000000,
0b0110010,
0b1011010,
0b1001100,
0b0000000,
0b0000000,
0b0000000,
0b0000000,
0b0000000
)),153:(10,0,10,(
0b0000000000,
0b0000000000,
0b0000000000,
0b0111100010,
0b0010110110,
0b0010101010,
0b0010100010,
0b0000000000,
0b0000000000,
0b0000000000,
0b0000000000
)),154:(5,0,5,(
0b00000,
0b01010,
0b00100,
0b00000,
0b01110,
0b11000,
0b11110,
0b00110,
0b11100,
0b00000,
0b00000
)),155:(5,0,5,(
0b00000,
0b00000,
0b00000,
0b11000,
0b01100,
0b00110,
0b01100,
0b11000,
0b00000,
0b00000,
0b00000
)),156:(10,0,10,(
0b0000000000,
0b0000000000,
0b0000000000,
0b0000000000,
0b0111011100,
0b1101110110,
0b1101111110,
0b1101110000,
0b0111011110,
0b0000000000,
0b0000000000
)),157:(10,0,10,(
0b0000000000,
0b0000000000,
0b0000000110,
0b0000001100,
0b0000011000,
0b0000110000,
0b0001100000,
0b1111000000,
0b1110000000,
0b1110000000,
0b0000000000
)),158:(8,0,8,(
0b00000000,
0b00000000,
0b00111000,
0b01101100,
0b01101100,
0b01101100,
0b01101100,
0b00111000,
0b11101100,
0b11000110,
0b00000000
)),159:(7,0,7,(
0b0000000,
0b0100100,
0b0000000,
0b1100110,
0b1100110,
0b0111100,
0b0011000,
0b0011000,
0b0011000,
0b0000000,
0b0000000
)),161:(4,0,4,(
0b0000,
0b0000,
0b0000,
0b0000,
0b1100,
0b0000,
0b1100,
0b1100,
0b1100,
0b1100,
0b1100
)),162:(6,0,6,(
0b000000,
0b001000,
0b011100,
0b101010,
0b101000,
0b101000,
0b101010,
0b011100,
0b001000,
0b000000,
0b000000
)),163:(7,0,7,(
0b0000000,
0b0011000,
0b0110100,
0b0110000,
0b1111000,
0b0110000,
0b0110000,
0b0110010,
0b1111100,
0b0000000,
0b0000000
)),164:(8,0,8,(
0b00000000,
0b00000000,
0b10111010,
0b01111100,
0b11000110,
0b11000110,
0b11000110,
0b01111100,
0b10111010,
0b00000000,
0b00000000
)),165:(7,0,7,(
0b0000000,
0b1100110,
0b1100110,
0b0111100,
0b1111110,
0b0011000,
0b1111110,
0b0011000,
0b0011000,
0b0000000,
0b0000000
)),166:(3,0,3,(
0b000,
0b000,
0b110,
0b110,
0b110,
0b110,
0b000,
0b110,
0b110,
0b110,
0b110
)),167:(6,0,6,(
0b000000,
0b011100,
0b110110,
0b011000,
0b111100,
0b110110,
0b011110,
0b001100,
0b110110,
0b011100,
0b000000
)),168:(4,0,4,(
0b0000,
0b0000,
0b0000,
0b1010,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000
)),169:(9,0,9,(
0b000000000,
0b000000000,
0b001111100,
0b010000010,
0b010111010,
0b010100010,
0b010100010,
0b010111010,
0b010000010,
0b001111100,
0b000000000
)),170:(6,0,6,(
0b000000,
0b000000,
0b011110,
0b110110,
0b011110,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000
)),171:(8,0,8,(
0b00000000,
0b00000000,
0b00000000,
0b00000000,
0b00110110,
0b01101100,
0b11011000,
0b01101100,
0b00110110,
0b00000000,
0b00000000
)),172:(6,0,6,(
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b111110,
0b000010,
0b000010,
0b000000,
0b000000,
0b000000
)),173:(5,0,5,(
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b11110,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000
)),174:(9,0,9,(
0b000000000,
0b000000000,
0b001111100,
0b010000010,
0b010111010,
0b010101010,
0b010110010,
0b010101010,
0b010000010,
0b001111100,
0b000000000
)),175:(6,0,6,(
0b000000,
0b111110,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000
)),176:(5,0,5,(
0b00000,
0b01100,
0b10010,
0b10010,
0b01100,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000
)),177:(6,0,6,(
0b000000,
0b000000,
0b001000,
0b001000,
0b111110,
0b001000,
0b001000,
0b000000,
0b111110,
0b000000,
0b000000
)),178:(4,0,4,(
0b0000,
0b1100,
0b0010,
0b0110,
0b1100,
0b1110,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000
)),179:(4,0,4,(
0b0000,
0b1110,
0b0010,
0b1110,
0b0010,
0b1110,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000
)),180:(4,0,4,(
0b0000,
0b0110,
0b1000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000
)),181:(6,0,6,(
0b000000,
0b000000,
0b000000,
0b000000,
0b110110,
0b110110,
0b110110,
0b110110,
0b111110,
0b110000,
0b110000
)),182:(8,0,8,(
0b00000000,
0b01111110,
0b11001010,
0b11001010,
0b01111010,
0b00001010,
0b00001010,
0b00001010,
0b00001010,
0b00000000,
0b00000000
)),183:(2,0,2,(
0b00,
0b00,
0b00,
0b00,
0b00,
0b10,
0b00,
0b00,
0b00,
0b00,
0b00
)),184:(4,0,4,(
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0100,
0b0010,
0b1100
)),185:(2,0,2,(
0b00,
0b10,
0b10,
0b10,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00
)),186:(6,0,6,(
0b000000,
0b011100,
0b110110,
0b011100,
0b000000,
0b111110,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000
)),187:(8,0,8,(
0b00000000,
0b00000000,
0b00000000,
0b00000000,
0b11011000,
0b01101100,
0b00110110,
0b01101100,
0b11011000,
0b00000000,
0b00000000
)),188:(9,0,9,(
0b000000000,
0b010000000,
0b010001100,
0b010011000,
0b010110000,
0b001101100,
0b011010100,
0b110011110,
0b000000100,
0b000000000,
0b000000000
)),189:(9,0,9,(
0b000000000,
0b010000000,
0b010001100,
0b010011000,
0b010110000,
0b001101110,
0b011000110,
0b110001100,
0b000001110,
0b000000000,
0b000000000
)),190:(9,0,9,(
0b000000000,
0b111000000,
0b011001100,
0b001011000,
0b111110000,
0b001101100,
0b011010100,
0b110011110,
0b000000100,
0b000000000,
0b000000000
)),191:(6,0,6,(
0b000000,
0b001100,
0b001100,
0b000000,
0b001100,
0b001100,
0b011000,
0b110010,
0b011100,
0b000000,
0b000000
)),192:(6,0,6,(
0b010000,
0b001000,
0b000000,
0b011110,
0b110110,
0b110110,
0b111110,
0b110110,
0b110110,
0b000000,
0b000000
)),193:(6,0,6,(
0b000100,
0b001000,
0b000000,
0b011110,
0b110110,
0b110110,
0b111110,
0b110110,
0b110110,
0b000000,
0b000000
)),194:(6,0,6,(
0b001000,
0b010100,
0b000000,
0b011110,
0b110110,
0b110110,
0b111110,
0b110110,
0b110110,
0b000000,
0b000000
)),195:(6,0,6,(
0b011010,
0b101100,
0b000000,
0b011110,
0b110110,
0b110110,
0b111110,
0b110110,
0b110110,
0b000000,
0b000000
)),196:(6,0,6,(
0b000000,
0b010100,
0b000000,
0b011110,
0b110110,
0b110110,
0b111110,
0b110110,
0b110110,
0b000000,
0b000000
)),197:(6,0,6,(
0b001000,
0b010100,
0b001000,
0b011110,
0b110110,
0b110110,
0b111110,
0b110110,
0b110110,
0b000000,
0b000000
)),198:(9,0,9,(
0b000000000,
0b011111110,
0b110011000,
0b110011000,
0b111111100,
0b110011000,
0b110011000,
0b110011000,
0b110011110,
0b000000000,
0b000000000
)),199:(6,0,6,(
0b000000,
0b000000,
0b001110,
0b011010,
0b110000,
0b110000,
0b110000,
0b011110,
0b000110,
0b000100,
0b001000
)),200:(5,0,5,(
0b01000,
0b00100,
0b00000,
0b11110,
0b11000,
0b11110,
0b11000,
0b11000,
0b11110,
0b00000,
0b00000
)),201:(5,0,5,(
0b00100,
0b01000,
0b00000,
0b11110,
0b11000,
0b11110,
0b11000,
0b11000,
0b11110,
0b00000,
0b00000
)),202:(5,0,5,(
0b00100,
0b01010,
0b00000,
0b11110,
0b11000,
0b11110,
0b11000,
0b11000,
0b11110,
0b00000,
0b00000
)),203:(5,0,5,(
0b00000,
0b01010,
0b00000,
0b11110,
0b11000,
0b11110,
0b11000,
0b11000,
0b11110,
0b00000,
0b00000
)),204:(3,0,3,(
0b100,
0b010,
0b000,
0b110,
0b110,
0b110,
0b110,
0b110,
0b110,
0b000,
0b000
)),205:(3,0,3,(
0b010,
0b100,
0b000,
0b110,
0b110,
0b110,
0b110,
0b110,
0b110,
0b000,
0b000
)),206:(3,0,3,(
0b010,
0b101,
0b000,
0b110,
0b110,
0b110,
0b110,
0b110,
0b110,
0b000,
0b000
)),207:(3,0,3,(
0b000,
0b101,
0b000,
0b110,
0b110,
0b110,
0b110,
0b110,
0b110,
0b000,
0b000
)),208:(8,0,8,(
0b00000000,
0b00000000,
0b01111000,
0b01101100,
0b01100110,
0b11110110,
0b01100110,
0b01101100,
0b01111000,
0b00000000,
0b00000000
)),209:(6,0,6,(
0b011010,
0b101100,
0b000000,
0b100110,
0b110110,
0b111110,
0b111110,
0b110110,
0b110010,
0b000000,
0b000000
)),210:(6,0,6,(
0b011000,
0b001100,
0b000000,
0b011100,
0b110110,
0b110110,
0b110110,
0b110110,
0b011100,
0b000000,
0b000000
)),211:(6,0,6,(
0b001100,
0b011000,
0b000000,
0b011100,
0b110110,
0b110110,
0b110110,
0b110110,
0b011100,
0b000000,
0b000000
)),212:(6,0,6,(
0b001000,
0b010100,
0b000000,
0b011100,
0b110110,
0b110110,
0b110110,
0b110110,
0b011100,
0b000000,
0b000000
)),213:(6,0,6,(
0b011010,
0b101100,
0b000000,
0b011100,
0b110110,
0b110110,
0b110110,
0b110110,
0b011100,
0b000000,
0b000000
)),214:(6,0,6,(
0b000000,
0b010100,
0b000000,
0b011100,
0b110110,
0b110110,
0b110110,
0b110110,
0b011100,
0b000000,
0b000000
)),215:(6,0,6,(
0b000000,
0b000000,
0b000000,
0b000000,
0b110110,
0b011100,
0b011100,
0b110110,
0b000000,
0b000000,
0b000000
)),216:(8,0,8,(
0b00000000,
0b00000000,
0b00111010,
0b01101100,
0b11001110,
0b11010110,
0b11100110,
0b01101100,
0b10111000,
0b00000000,
0b00000000
)),217:(6,0,6,(
0b010000,
0b001000,
0b000000,
0b110110,
0b110110,
0b110110,
0b110110,
0b110110,
0b011110,
0b000000,
0b000000
)),218:(6,0,6,(
0b000100,
0b001000,
0b000000,
0b110110,
0b110110,
0b110110,
0b110110,
0b110110,
0b011110,
0b000000,
0b000000
)),219:(6,0,6,(
0b001000,
0b010100,
0b000000,
0b110110,
0b110110,
0b110110,
0b110110,
0b110110,
0b011110,
0b000000,
0b000000
)),220:(6,0,6,(
0b000000,
0b010100,
0b000000,
0b110110,
0b110110,
0b110110,
0b110110,
0b110110,
0b011110,
0b000000,
0b000000
)),221:(7,0,7,(
0b0001000,
0b0010000,
0b0000000,
0b1100110,
0b1100110,
0b0111100,
0b0011000,
0b0011000,
0b0011000,
0b0000000,
0b0000000
)),222:(7,0,7,(
0b0000000,
0b0000000,
0b1100000,
0b1111000,
0b1100100,
0b1100100,
0b1100100,
0b1111000,
0b1100000,
0b0000000,
0b0000000
)),223:(8,0,8,(
0b00000000,
0b01110000,
0b11001000,
0b11001000,
0b11010000,
0b11111100,
0b11000110,
0b11000110,
0b11011100,
0b00000000,
0b00000000
)),224:(6,0,6,(
0b010000,
0b001000,
0b000000,
0b111100,
0b000110,
0b011110,
0b110110,
0b110110,
0b011110,
0b000000,
0b000000
)),225:(6,0,6,(
0b000100,
0b001000,
0b000000,
0b111100,
0b000110,
0b011110,
0b110110,
0b110110,
0b011110,
0b000000,
0b000000
)),226:(6,0,6,(
0b001000,
0b010100,
0b000000,
0b111100,
0b000110,
0b011110,
0b110110,
0b110110,
0b011110,
0b000000,
0b000000
)),227:(6,0,6,(
0b011010,
0b101100,
0b000000,
0b111100,
0b000110,
0b011110,
0b110110,
0b110110,
0b011110,
0b000000,
0b000000
)),228:(6,0,6,(
0b000000,
0b010100,
0b000000,
0b111100,
0b000110,
0b011110,
0b110110,
0b110110,
0b011110,
0b000000,
0b000000
)),229:(6,0,6,(
0b001000,
0b010100,
0b001000,
0b111100,
0b000110,
0b011110,
0b110110,
0b110110,
0b011110,
0b000000,
0b000000
)),230:(9,0,9,(
0b000000000,
0b000000000,
0b000000000,
0b000000000,
0b011101100,
0b000110110,
0b011111110,
0b110110000,
0b011111110,
0b000000000,
0b000000000
)),231:(5,0,5,(
0b00000,
0b00000,
0b00000,
0b00000,
0b01110,
0b11000,
0b11000,
0b11000,
0b01110,
0b00100,
0b01000
)),232:(6,0,6,(
0b010000,
0b001000,
0b000000,
0b011100,
0b110110,
0b111110,
0b110000,
0b110010,
0b011100,
0b000000,
0b000000
)),233:(6,0,6,(
0b000100,
0b001000,
0b000000,
0b011100,
0b110110,
0b111110,
0b110000,
0b110010,
0b011100,
0b000000,
0b000000
)),234:(6,0,6,(
0b001000,
0b010100,
0b000000,
0b011100,
0b110110,
0b111110,
0b110000,
0b110010,
0b011100,
0b000000,
0b000000
)),235:(6,0,6,(
0b000000,
0b010100,
0b000000,
0b011100,
0b110110,
0b111110,
0b110000,
0b110010,
0b011100,
0b000000,
0b000000
)),236:(3,0,3,(
0b100,
0b010,
0b000,
0b110,
0b110,
0b110,
0b110,
0b110,
0b110,
0b000,
0b000
)),237:(3,0,3,(
0b010,
0b100,
0b000,
0b110,
0b110,
0b110,
0b110,
0b110,
0b110,
0b000,
0b000
)),238:(3,0,3,(
0b010,
0b101,
0b000,
0b110,
0b110,
0b110,
0b110,
0b110,
0b110,
0b000,
0b000
)),239:(3,0,3,(
0b000,
0b101,
0b000,
0b110,
0b110,
0b110,
0b110,
0b110,
0b110,
0b000,
0b000
)),240:(9,0,9,(
0b000001000,
0b000010000,
0b011101110,
0b111111100,
0b111111100,
0b111111100,
0b111111110,
0b011111110,
0b011101100,
0b000000000,
0b000000000
)),241:(6,0,6,(
0b011010,
0b101100,
0b000000,
0b111100,
0b110110,
0b110110,
0b110110,
0b110110,
0b110110,
0b000000,
0b000000
)),242:(6,0,6,(
0b001000,
0b000100,
0b000000,
0b011100,
0b110110,
0b110110,
0b110110,
0b110110,
0b011100,
0b000000,
0b000000
)),243:(6,0,6,(
0b000100,
0b001000,
0b000000,
0b011100,
0b110110,
0b110110,
0b110110,
0b110110,
0b011100,
0b000000,
0b000000
)),244:(6,0,6,(
0b001000,
0b010100,
0b000000,
0b011100,
0b110110,
0b110110,
0b110110,
0b110110,
0b011100,
0b000000,
0b000000
)),245:(6,0,6,(
0b011010,
0b101100,
0b000000,
0b011100,
0b110110,
0b110110,
0b110110,
0b110110,
0b011100,
0b000000,
0b000000
)),246:(6,0,6,(
0b000000,
0b010100,
0b000000,
0b011100,
0b110110,
0b110110,
0b110110,
0b110110,
0b011100,
0b000000,
0b000000
)),247:(7,0,7,(
0b0000000,
0b0000000,
0b0000000,
0b0011000,
0b0000000,
0b1111110,
0b0000000,
0b0011000,
0b0000000,
0b0000000,
0b0000000
)),248:(8,0,8,(
0b00000000,
0b00000000,
0b00000000,
0b00000000,
0b00111010,
0b01101100,
0b01111100,
0b01101100,
0b10111000,
0b00000000,
0b00000000
)),249:(6,0,6,(
0b010000,
0b001000,
0b000000,
0b110110,
0b110110,
0b110110,
0b110110,
0b110110,
0b011110,
0b000000,
0b000000
)),250:(6,0,6,(
0b000100,
0b001000,
0b000000,
0b110110,
0b110110,
0b110110,
0b110110,
0b110110,
0b011110,
0b000000,
0b000000
)),251:(6,0,6,(
0b001000,
0b010100,
0b000000,
0b110110,
0b110110,
0b110110,
0b110110,
0b110110,
0b011110,
0b000000,
0b000000
)),252:(6,0,6,(
0b000000,
0b010100,
0b000000,
0b110110,
0b110110,
0b110110,
0b110110,
0b110110,
0b011110,
0b000000,
0b000000
)),253:(6,0,6,(
0b000100,
0b001000,
0b000000,
0b110110,
0b110110,
0b110110,
0b110110,
0b110110,
0b011110,
0b000110,
0b111100
)),254:(6,0,6,(
0b000000,
0b000000,
0b000000,
0b110000,
0b111100,
0b110110,
0b110110,
0b110110,
0b111100,
0b110000,
0b110000
)),255:(6,0,6,(
0b000000,
0b010100,
0b000000,
0b110110,
0b110110,
0b110110,
0b110110,
0b110110,
0b011110,
0b000110,
0b111100
)),}
# generated by fontconv
#fontType 36864
#firstChar 9
#lastChar 255
#maxWidth 9
#kernMax 0
#nDescent 0
#fRectWidth 9
#fRectHeight 7
#ascent 6
#descent 1
#leading 0
#averageWidth 5.44
FONTS['metrix7pt'] = {
9:(2,0,2,(
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00
)),20:(7,0,7,(
0b0100010,
0b1010100,
0b1011000,
0b0101110,
0b1101000,
0b0100100,
0b1100010
)),21:(6,0,6,(
0b001000,
0b010000,
0b100000,
0b111010,
0b100000,
0b010000,
0b001000
)),22:(6,0,6,(
0b000000,
0b000010,
0b000100,
0b001000,
0b110000,
0b110000,
0b000000
)),23:(6,0,6,(
0b001000,
0b010100,
0b010100,
0b001000,
0b110100,
0b110010,
0b000000
)),24:(6,0,6,(
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b101010,
0b000000
)),25:(5,0,5,(
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000
)),32:(2,0,2,(
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00
)),33:(2,0,2,(
0b00,
0b10,
0b10,
0b10,
0b00,
0b10,
0b00
)),34:(4,0,4,(
0b0000,
0b1010,
0b1010,
0b0000,
0b0000,
0b0000,
0b0000
)),35:(6,0,6,(
0b000000,
0b010100,
0b111110,
0b010100,
0b111110,
0b010100,
0b000000
)),36:(6,0,6,(
0b001000,
0b011110,
0b101000,
0b011100,
0b001010,
0b111100,
0b001000
)),37:(8,0,8,(
0b00000000,
0b01000100,
0b10101000,
0b01010100,
0b00101010,
0b01000100,
0b00000000
)),38:(6,0,6,(
0b000000,
0b010000,
0b101000,
0b011010,
0b100100,
0b011010,
0b000000
)),39:(2,0,2,(
0b00,
0b10,
0b10,
0b00,
0b00,
0b00,
0b00
)),40:(3,0,3,(
0b010,
0b100,
0b100,
0b100,
0b100,
0b100,
0b010
)),41:(3,0,3,(
0b100,
0b010,
0b010,
0b010,
0b010,
0b010,
0b100
)),42:(6,0,6,(
0b010100,
0b001000,
0b110110,
0b001000,
0b010100,
0b000000,
0b000000
)),43:(6,0,6,(
0b000000,
0b001000,
0b001000,
0b111110,
0b001000,
0b001000,
0b000000
)),44:(2,0,2,(
0b00,
0b00,
0b00,
0b00,
0b00,
0b10,
0b00
)),45:(5,0,5,(
0b00000,
0b00000,
0b00000,
0b11110,
0b00000,
0b00000,
0b00000
)),46:(3,0,3,(
0b000,
0b000,
0b000,
0b000,
0b000,
0b010,
0b100
)),47:(6,0,6,(
0b000000,
0b000010,
0b000100,
0b001000,
0b010000,
0b100000,
0b000000
)),48:(6,0,6,(
0b000000,
0b011100,
0b100110,
0b101010,
0b110010,
0b011100,
0b000000
)),49:(6,0,6,(
0b000000,
0b001000,
0b011000,
0b001000,
0b001000,
0b011100,
0b000000
)),50:(6,0,6,(
0b000000,
0b011100,
0b100010,
0b001100,
0b010000,
0b111110,
0b000000
)),51:(6,0,6,(
0b000000,
0b111100,
0b000010,
0b001100,
0b000010,
0b111100,
0b000000
)),52:(6,0,6,(
0b000000,
0b000100,
0b001100,
0b010100,
0b111110,
0b000100,
0b000000
)),53:(6,0,6,(
0b000000,
0b111110,
0b100000,
0b111100,
0b000010,
0b111100,
0b000000
)),54:(6,0,6,(
0b000000,
0b011100,
0b100000,
0b111100,
0b100010,
0b011100,
0b000000
)),55:(6,0,6,(
0b000000,
0b111110,
0b000010,
0b000100,
0b001000,
0b001000,
0b000000
)),56:(6,0,6,(
0b000000,
0b011100,
0b100010,
0b011100,
0b100010,
0b011100,
0b000000
)),57:(6,0,6,(
0b000000,
0b011100,
0b100010,
0b011110,
0b000010,
0b011100,
0b000000
)),58:(2,0,2,(
0b00,
0b00,
0b10,
0b00,
0b00,
0b10,
0b00
)),59:(3,0,3,(
0b000,
0b000,
0b010,
0b000,
0b000,
0b010,
0b100
)),60:(4,0,4,(
0b0000,
0b0010,
0b0100,
0b1000,
0b0100,
0b0010,
0b0000
)),61:(5,0,5,(
0b00000,
0b00000,
0b11110,
0b00000,
0b11110,
0b00000,
0b00000
)),62:(4,0,4,(
0b0000,
0b1000,
0b0100,
0b0010,
0b0100,
0b1000,
0b0000
)),63:(5,0,5,(
0b00000,
0b11100,
0b00010,
0b01100,
0b00000,
0b01000,
0b00000
)),64:(8,0,8,(
0b00111000,
0b01000100,
0b10011010,
0b10101010,
0b10111100,
0b01000000,
0b00111100
)),65:(6,0,6,(
0b000000,
0b011100,
0b100010,
0b111110,
0b100010,
0b100010,
0b000000
)),66:(6,0,6,(
0b000000,
0b111100,
0b100010,
0b111100,
0b100010,
0b111100,
0b000000
)),67:(6,0,6,(
0b000000,
0b011110,
0b100000,
0b100000,
0b100000,
0b011110,
0b000000
)),68:(6,0,6,(
0b000000,
0b111100,
0b100010,
0b100010,
0b100010,
0b111100,
0b000000
)),69:(6,0,6,(
0b000000,
0b111110,
0b100000,
0b111000,
0b100000,
0b111110,
0b000000
)),70:(6,0,6,(
0b000000,
0b111110,
0b100000,
0b111000,
0b100000,
0b100000,
0b000000
)),71:(6,0,6,(
0b000000,
0b011110,
0b100000,
0b101110,
0b100010,
0b011110,
0b000000
)),72:(6,0,6,(
0b000000,
0b100010,
0b100010,
0b111110,
0b100010,
0b100010,
0b000000
)),73:(6,0,6,(
0b000000,
0b011100,
0b001000,
0b001000,
0b001000,
0b011100,
0b000000
)),74:(6,0,6,(
0b000000,
0b000010,
0b000010,
0b000010,
0b100010,
0b011100,
0b000000
)),75:(6,0,6,(
0b000000,
0b100010,
0b100100,
0b111000,
0b100100,
0b100010,
0b000000
)),76:(6,0,6,(
0b000000,
0b100000,
0b100000,
0b100000,
0b100000,
0b111110,
0b000000
)),77:(6,0,6,(
0b000000,
0b100010,
0b110110,
0b101010,
0b100010,
0b100010,
0b000000
)),78:(6,0,6,(
0b000000,
0b100010,
0b110010,
0b101010,
0b100110,
0b100010,
0b000000
)),79:(6,0,6,(
0b000000,
0b011100,
0b100010,
0b100010,
0b100010,
0b011100,
0b000000
)),80:(6,0,6,(
0b000000,
0b111100,
0b100010,
0b111100,
0b100000,
0b100000,
0b000000
)),81:(6,0,6,(
0b000000,
0b011100,
0b100010,
0b100010,
0b101010,
0b011100,
0b000100
)),82:(6,0,6,(
0b000000,
0b111100,
0b100010,
0b111100,
0b100100,
0b100010,
0b000000
)),83:(6,0,6,(
0b000000,
0b011110,
0b100000,
0b011100,
0b000010,
0b111100,
0b000000
)),84:(6,0,6,(
0b000000,
0b111110,
0b001000,
0b001000,
0b001000,
0b001000,
0b000000
)),85:(6,0,6,(
0b000000,
0b100010,
0b100010,
0b100010,
0b100010,
0b011100,
0b000000
)),86:(6,0,6,(
0b000000,
0b100010,
0b100010,
0b100010,
0b010100,
0b001000,
0b000000
)),87:(6,0,6,(
0b000000,
0b100010,
0b100010,
0b101010,
0b110110,
0b100010,
0b000000
)),88:(6,0,6,(
0b000000,
0b100010,
0b010100,
0b001000,
0b010100,
0b100010,
0b000000
)),89:(6,0,6,(
0b000000,
0b100010,
0b100010,
0b010100,
0b001000,
0b001000,
0b000000
)),90:(6,0,6,(
0b000000,
0b111110,
0b000100,
0b001000,
0b010000,
0b111110,
0b000000
)),91:(3,0,3,(
0b110,
0b100,
0b100,
0b100,
0b100,
0b100,
0b110
)),92:(6,0,6,(
0b000000,
0b100000,
0b010000,
0b001000,
0b000100,
0b000010,
0b000000
)),93:(3,0,3,(
0b110,
0b010,
0b010,
0b010,
0b010,
0b010,
0b110
)),94:(6,0,6,(
0b000000,
0b001000,
0b010100,
0b100010,
0b000000,
0b000000,
0b000000
)),95:(6,0,6,(
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000
)),96:(3,0,3,(
0b000,
0b100,
0b010,
0b000,
0b000,
0b000,
0b000
)),97:(6,0,6,(
0b000000,
0b011100,
0b100010,
0b111110,
0b100010,
0b100010,
0b000000
)),98:(6,0,6,(
0b000000,
0b111100,
0b100010,
0b111100,
0b100010,
0b111100,
0b000000
)),99:(6,0,6,(
0b000000,
0b011110,
0b100000,
0b100000,
0b100000,
0b011110,
0b000000
)),100:(6,0,6,(
0b000000,
0b111100,
0b100010,
0b100010,
0b100010,
0b111100,
0b000000
)),101:(6,0,6,(
0b000000,
0b111110,
0b100000,
0b111000,
0b100000,
0b111110,
0b000000
)),102:(6,0,6,(
0b000000,
0b111110,
0b100000,
0b111000,
0b100000,
0b100000,
0b000000
)),103:(6,0,6,(
0b000000,
0b011110,
0b100000,
0b101110,
0b100010,
0b011110,
0b000000
)),104:(6,0,6,(
0b000000,
0b100010,
0b100010,
0b111110,
0b100010,
0b100010,
0b000000
)),105:(6,0,6,(
0b000000,
0b011100,
0b001000,
0b001000,
0b001000,
0b011100,
0b000000
)),106:(6,0,6,(
0b000000,
0b000010,
0b000010,
0b000010,
0b100010,
0b011100,
0b000000
)),107:(6,0,6,(
0b000000,
0b100010,
0b100100,
0b111000,
0b100100,
0b100010,
0b000000
)),108:(6,0,6,(
0b000000,
0b100000,
0b100000,
0b100000,
0b100000,
0b111110,
0b000000
)),109:(6,0,6,(
0b000000,
0b100010,
0b110110,
0b101010,
0b100010,
0b100010,
0b000000
)),110:(6,0,6,(
0b000000,
0b100010,
0b110010,
0b101010,
0b100110,
0b100010,
0b000000
)),111:(6,0,6,(
0b000000,
0b011100,
0b100010,
0b100010,
0b100010,
0b011100,
0b000000
)),112:(6,0,6,(
0b000000,
0b111100,
0b100010,
0b111100,
0b100000,
0b100000,
0b000000
)),113:(6,0,6,(
0b000000,
0b011100,
0b100010,
0b100010,
0b101010,
0b011100,
0b000100
)),114:(6,0,6,(
0b000000,
0b111100,
0b100010,
0b111100,
0b100100,
0b100010,
0b000000
)),115:(6,0,6,(
0b000000,
0b011110,
0b100000,
0b011100,
0b000010,
0b111100,
0b000000
)),116:(6,0,6,(
0b000000,
0b111110,
0b001000,
0b001000,
0b001000,
0b001000,
0b000000
)),117:(6,0,6,(
0b000000,
0b100010,
0b100010,
0b100010,
0b100010,
0b011100,
0b000000
)),118:(6,0,6,(
0b000000,
0b100010,
0b100010,
0b100010,
0b010100,
0b001000,
0b000000
)),119:(6,0,6,(
0b000000,
0b100010,
0b100010,
0b101010,
0b110110,
0b100010,
0b000000
)),120:(6,0,6,(
0b000000,
0b100010,
0b010100,
0b001000,
0b010100,
0b100010,
0b000000
)),121:(6,0,6,(
0b000000,
0b100010,
0b100010,
0b010100,
0b001000,
0b001000,
0b000000
)),122:(6,0,6,(
0b000000,
0b111110,
0b000100,
0b001000,
0b010000,
0b111110,
0b000000
)),123:(4,0,4,(
0b0010,
0b0100,
0b0100,
0b1000,
0b0100,
0b0100,
0b0010
)),124:(2,0,2,(
0b00,
0b10,
0b10,
0b10,
0b10,
0b10,
0b10
)),125:(4,0,4,(
0b1000,
0b0100,
0b0100,
0b0010,
0b0100,
0b0100,
0b1000
)),126:(6,0,6,(
0b000000,
0b000000,
0b011010,
0b101100,
0b000000,
0b000000,
0b000000
)),128:(8,0,8,(
0b00011100,
0b00100010,
0b11111000,
0b01000000,
0b11110000,
0b00100010,
0b00011100
)),130:(3,0,3,(
0b000,
0b000,
0b000,
0b000,
0b010,
0b100,
0b000
)),131:(5,0,5,(
0b00110,
0b01000,
0b11100,
0b01000,
0b01000,
0b10000,
0b00000
)),132:(5,0,5,(
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b01010,
0b10100
)),133:(6,0,6,(
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b101010,
0b000000
)),134:(6,0,6,(
0b001000,
0b001000,
0b111110,
0b001000,
0b001000,
0b001000,
0b001000
)),135:(6,0,6,(
0b001000,
0b001000,
0b111110,
0b001000,
0b111110,
0b001000,
0b001000
)),136:(4,0,4,(
0b0000,
0b0100,
0b1010,
0b0000,
0b0000,
0b0000,
0b0000
)),137:(9,0,9,(
0b011111110,
0b101011100,
0b101110100,
0b011101010,
0b110101010,
0b100010100,
0b000000000
)),138:(6,0,6,(
0b010100,
0b001000,
0b011110,
0b100000,
0b011100,
0b000010,
0b111100
)),139:(4,0,4,(
0b0000,
0b0010,
0b0100,
0b1000,
0b0100,
0b0010,
0b0000
)),140:(6,0,6,(
0b000000,
0b011110,
0b101000,
0b101110,
0b101000,
0b011110,
0b000000
)),141:(8,0,8,(
0b00010000,
0b00101000,
0b01000100,
0b10000010,
0b01000100,
0b00101000,
0b00010000
)),142:(8,0,8,(
0b00111000,
0b01111100,
0b11010110,
0b11111110,
0b11010110,
0b00111000,
0b01111100
)),143:(8,0,8,(
0b01101100,
0b10111010,
0b10010010,
0b10000010,
0b01000100,
0b00101000,
0b00010000
)),144:(8,0,8,(
0b00010000,
0b00111000,
0b01111100,
0b11111110,
0b11111110,
0b01010100,
0b00111000
)),145:(3,0,3,(
0b000,
0b100,
0b010,
0b000,
0b000,
0b000,
0b000
)),146:(3,0,3,(
0b000,
0b010,
0b100,
0b000,
0b000,
0b000,
0b000
)),147:(5,0,5,(
0b00000,
0b10100,
0b01010,
0b00000,
0b00000,
0b00000,
0b00000
)),148:(5,0,5,(
0b00000,
0b01010,
0b10100,
0b00000,
0b00000,
0b00000,
0b00000
)),149:(4,0,4,(
0b0000,
0b0000,
0b1110,
0b1110,
0b1110,
0b0000,
0b0000
)),150:(5,0,5,(
0b00000,
0b00000,
0b00000,
0b11111,
0b00000,
0b00000,
0b00000
)),151:(5,0,5,(
0b00000,
0b00000,
0b00000,
0b11111,
0b00000,
0b00000,
0b00000
)),152:(6,0,6,(
0b000000,
0b000000,
0b011010,
0b101100,
0b000000,
0b000000,
0b000000
)),153:(9,0,9,(
0b000000000,
0b111110110,
0b010101010,
0b010100010,
0b000000000,
0b000000000,
0b000000000
)),154:(6,0,6,(
0b010100,
0b001000,
0b011110,
0b100000,
0b011100,
0b000010,
0b111100
)),155:(4,0,4,(
0b0000,
0b1000,
0b0100,
0b0010,
0b0100,
0b1000,
0b0000
)),156:(8,0,8,(
0b00000000,
0b01101100,
0b10010010,
0b10011110,
0b10010000,
0b01101110,
0b00000000
)),157:(6,0,6,(
0b000000,
0b000010,
0b000100,
0b001000,
0b110000,
0b110000,
0b000000
)),158:(6,0,6,(
0b001000,
0b010100,
0b010100,
0b001000,
0b110100,
0b110010,
0b000000
)),159:(6,0,6,(
0b010100,
0b000000,
0b100010,
0b100010,
0b010100,
0b001000,
0b001000
)),160:(6,0,6,(
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000
)),161:(2,0,2,(
0b00,
0b00,
0b10,
0b00,
0b10,
0b10,
0b10
)),162:(5,0,5,(
0b00000,
0b00100,
0b01110,
0b10100,
0b10100,
0b01110,
0b00100
)),163:(6,0,6,(
0b001100,
0b010000,
0b010000,
0b111100,
0b010000,
0b111000,
0b000110
)),164:(6,0,6,(
0b101010,
0b011100,
0b010100,
0b100010,
0b010100,
0b011100,
0b101010
)),165:(6,0,6,(
0b100010,
0b010100,
0b001000,
0b111110,
0b001000,
0b111110,
0b001000
)),166:(2,0,2,(
0b10,
0b10,
0b10,
0b00,
0b10,
0b10,
0b10
)),167:(5,0,5,(
0b01110,
0b10000,
0b01100,
0b10010,
0b01100,
0b00010,
0b11100
)),168:(4,0,4,(
0b0000,
0b1010,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000
)),169:(8,0,8,(
0b00111000,
0b01000100,
0b10111010,
0b10100010,
0b10111010,
0b01000100,
0b00111000
)),170:(5,0,5,(
0b01110,
0b10010,
0b01110,
0b00000,
0b00000,
0b00000,
0b00000
)),171:(6,0,6,(
0b000000,
0b001010,
0b010100,
0b101000,
0b010100,
0b001010,
0b000000
)),172:(6,0,6,(
0b000000,
0b000000,
0b000000,
0b111110,
0b000010,
0b000010,
0b000000
)),173:(4,0,4,(
0b0000,
0b0000,
0b0000,
0b1110,
0b0000,
0b0000,
0b0000
)),174:(8,0,8,(
0b00111000,
0b01000100,
0b10111010,
0b10110010,
0b10101010,
0b01000100,
0b00111000
)),175:(5,0,5,(
0b11110,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000
)),176:(5,0,5,(
0b01100,
0b10010,
0b10010,
0b01100,
0b00000,
0b00000,
0b00000
)),177:(6,0,6,(
0b001000,
0b001000,
0b111110,
0b001000,
0b001000,
0b111110,
0b000000
)),178:(4,0,4,(
0b1110,
0b0010,
0b0100,
0b1110,
0b0000,
0b0000,
0b0000
)),179:(4,0,4,(
0b1110,
0b0100,
0b0010,
0b1110,
0b0000,
0b0000,
0b0000
)),180:(3,0,3,(
0b010,
0b100,
0b000,
0b000,
0b000,
0b000,
0b000
)),181:(5,0,5,(
0b10010,
0b10010,
0b10010,
0b11110,
0b10000,
0b10000,
0b00000
)),182:(6,0,6,(
0b011110,
0b111010,
0b111010,
0b011010,
0b001010,
0b001010,
0b000000
)),183:(2,0,2,(
0b00,
0b00,
0b00,
0b10,
0b00,
0b00,
0b00
)),184:(4,0,4,(
0b0000,
0b0000,
0b0000,
0b0000,
0b0100,
0b0010,
0b1100
)),185:(2,0,2,(
0b10,
0b10,
0b00,
0b00,
0b00,
0b00,
0b00
)),186:(5,0,5,(
0b01100,
0b10010,
0b01100,
0b00000,
0b11110,
0b00000,
0b00000
)),187:(6,0,6,(
0b000000,
0b101000,
0b010100,
0b001010,
0b010100,
0b101000,
0b000000
)),188:(6,0,6,(
0b010010,
0b010100,
0b011010,
0b010110,
0b101110,
0b000010,
0b000000
)),189:(6,0,6,(
0b100010,
0b100100,
0b101100,
0b010010,
0b101100,
0b001110,
0b000000
)),190:(6,0,6,(
0b110010,
0b010100,
0b111010,
0b010110,
0b101110,
0b000010,
0b000000
)),191:(5,0,5,(
0b00000,
0b00100,
0b00000,
0b01100,
0b10000,
0b01110,
0b00000
)),192:(6,0,6,(
0b010000,
0b001000,
0b011100,
0b100010,
0b111110,
0b100010,
0b000000
)),193:(6,0,6,(
0b000100,
0b001000,
0b011100,
0b100010,
0b111110,
0b100010,
0b000000
)),194:(6,0,6,(
0b001000,
0b010100,
0b011100,
0b100010,
0b111110,
0b100010,
0b000000
)),195:(6,0,6,(
0b001010,
0b010100,
0b011100,
0b100010,
0b111110,
0b100010,
0b000000
)),196:(6,0,6,(
0b010100,
0b000000,
0b011100,
0b100010,
0b111110,
0b100010,
0b000000
)),197:(6,0,6,(
0b001000,
0b010100,
0b011100,
0b100010,
0b111110,
0b100010,
0b000000
)),198:(6,0,6,(
0b000000,
0b011110,
0b101000,
0b111110,
0b101000,
0b101110,
0b000000
)),199:(6,0,6,(
0b000000,
0b011110,
0b100000,
0b100000,
0b011110,
0b000010,
0b000100
)),200:(6,0,6,(
0b010000,
0b001000,
0b111110,
0b111000,
0b100000,
0b111110,
0b000000
)),201:(6,0,6,(
0b000100,
0b001000,
0b111110,
0b111000,
0b100000,
0b111110,
0b000000
)),202:(6,0,6,(
0b001000,
0b010100,
0b111110,
0b100000,
0b111000,
0b111110,
0b000000
)),203:(6,0,6,(
0b010100,
0b000000,
0b111110,
0b100000,
0b111000,
0b111110,
0b000000
)),204:(3,0,3,(
0b100,
0b010,
0b000,
0b010,
0b010,
0b010,
0b000
)),205:(3,0,3,(
0b010,
0b100,
0b000,
0b100,
0b100,
0b100,
0b000
)),206:(4,0,4,(
0b0100,
0b1010,
0b0000,
0b0100,
0b0100,
0b0100,
0b0000
)),207:(4,0,4,(
0b0000,
0b1010,
0b0000,
0b0100,
0b0100,
0b0100,
0b0000
)),208:(6,0,6,(
0b000000,
0b011100,
0b010010,
0b111010,
0b010010,
0b011100,
0b000000
)),209:(6,0,6,(
0b001010,
0b010100,
0b100010,
0b110010,
0b101010,
0b100110,
0b000000
)),210:(6,0,6,(
0b010000,
0b001000,
0b011100,
0b100010,
0b100010,
0b011100,
0b000000
)),211:(6,0,6,(
0b000100,
0b001000,
0b011100,
0b100010,
0b100010,
0b011100,
0b000000
)),212:(6,0,6,(
0b001000,
0b010100,
0b011100,
0b100010,
0b100010,
0b011100,
0b000000
)),213:(6,0,6,(
0b001010,
0b010100,
0b011100,
0b100010,
0b100010,
0b011100,
0b000000
)),214:(6,0,6,(
0b010100,
0b000000,
0b011100,
0b100010,
0b100010,
0b011100,
0b000000
)),215:(5,0,5,(
0b00000,
0b10010,
0b01100,
0b01100,
0b10010,
0b00000,
0b00000
)),216:(6,0,6,(
0b000000,
0b001010,
0b010100,
0b011100,
0b010100,
0b101000,
0b000000
)),217:(6,0,6,(
0b010000,
0b001000,
0b100010,
0b100010,
0b100010,
0b011100,
0b000000
)),218:(6,0,6,(
0b000100,
0b001000,
0b100010,
0b100010,
0b100010,
0b011100,
0b000000
)),219:(6,0,6,(
0b001000,
0b010100,
0b100010,
0b100010,
0b100010,
0b011100,
0b000000
)),220:(6,0,6,(
0b010100,
0b000000,
0b100010,
0b100010,
0b100010,
0b011100,
0b000000
)),221:(6,0,6,(
0b000100,
0b001000,
0b100010,
0b010100,
0b001000,
0b001000,
0b000000
)),222:(5,0,5,(
0b00000,
0b10000,
0b11100,
0b10010,
0b11100,
0b10000,
0b00000
)),223:(6,0,6,(
0b000000,
0b111000,
0b100100,
0b101100,
0b100010,
0b101100,
0b000000
)),224:(6,0,6,(
0b010000,
0b001000,
0b011100,
0b100010,
0b111110,
0b100010,
0b000000
)),225:(6,0,6,(
0b000100,
0b001000,
0b011100,
0b100010,
0b111110,
0b100010,
0b000000
)),226:(6,0,6,(
0b001000,
0b010100,
0b011100,
0b100010,
0b111110,
0b100010,
0b000000
)),227:(6,0,6,(
0b001010,
0b010100,
0b011100,
0b100010,
0b111110,
0b100010,
0b000000
)),228:(6,0,6,(
0b010100,
0b000000,
0b011100,
0b100010,
0b111110,
0b100010,
0b000000
)),229:(6,0,6,(
0b001000,
0b010100,
0b011100,
0b100010,
0b111110,
0b100010,
0b000000
)),230:(6,0,6,(
0b000000,
0b110010,
0b001101,
0b011111,
0b101100,
0b111011,
0b000000
)),231:(6,0,6,(
0b000000,
0b011110,
0b100000,
0b100000,
0b011110,
0b000100,
0b011000
)),232:(6,0,6,(
0b010000,
0b001000,
0b111110,
0b111000,
0b100000,
0b111110,
0b000000
)),233:(6,0,6,(
0b000100,
0b001000,
0b111110,
0b111000,
0b100000,
0b111110,
0b000000
)),234:(6,0,6,(
0b001000,
0b010100,
0b111110,
0b111000,
0b100000,
0b111110,
0b000000
)),235:(6,0,6,(
0b010100,
0b000000,
0b111110,
0b111000,
0b100000,
0b111110,
0b000000
)),236:(3,0,3,(
0b100,
0b010,
0b000,
0b010,
0b010,
0b010,
0b000
)),237:(3,0,3,(
0b010,
0b100,
0b000,
0b100,
0b100,
0b100,
0b000
)),238:(4,0,4,(
0b0100,
0b1010,
0b0000,
0b0100,
0b0100,
0b0100,
0b0000
)),239:(4,0,4,(
0b0000,
0b1010,
0b0000,
0b0100,
0b0100,
0b0100,
0b0000
)),240:(5,0,5,(
0b11000,
0b00100,
0b01100,
0b10010,
0b10010,
0b01100,
0b00000
)),241:(6,0,6,(
0b001010,
0b010100,
0b110010,
0b101010,
0b100110,
0b100010,
0b000000
)),242:(6,0,6,(
0b010000,
0b001000,
0b011100,
0b100010,
0b100010,
0b011100,
0b000000
)),243:(6,0,6,(
0b000100,
0b001000,
0b011100,
0b100010,
0b100010,
0b011100,
0b000000
)),244:(6,0,6,(
0b001000,
0b010100,
0b011100,
0b100010,
0b100010,
0b011100,
0b000000
)),245:(6,0,6,(
0b001010,
0b010100,
0b011100,
0b100010,
0b100010,
0b011100,
0b000000
)),246:(6,0,6,(
0b010100,
0b000000,
0b011100,
0b100010,
0b100010,
0b011100,
0b000000
)),247:(6,0,6,(
0b000000,
0b001000,
0b000000,
0b111110,
0b000000,
0b001000,
0b000000
)),248:(6,0,6,(
0b000000,
0b001010,
0b010100,
0b011100,
0b010100,
0b101000,
0b000000
)),249:(5,0,5,(
0b01000,
0b00100,
0b00000,
0b10010,
0b10010,
0b01110,
0b00000
)),250:(5,0,5,(
0b00100,
0b01000,
0b00000,
0b10010,
0b10010,
0b01110,
0b00000
)),251:(5,0,5,(
0b00100,
0b01010,
0b00000,
0b10010,
0b10010,
0b01110,
0b00000
)),252:(5,0,5,(
0b00000,
0b01010,
0b00000,
0b10010,
0b10010,
0b01110,
0b00000
)),253:(5,0,5,(
0b00100,
0b01000,
0b10010,
0b10010,
0b01100,
0b00100,
0b11000
)),254:(5,0,5,(
0b00000,
0b10000,
0b11100,
0b10010,
0b11100,
0b10000,
0b00000
)),255:(5,0,5,(
0b01010,
0b00000,
0b10010,
0b10010,
0b01100,
0b00100,
0b11000
)),}
# generated by fontconv
#fontType 36864
#firstChar 9
#lastChar 255
#maxWidth 10
#kernMax 0
#nDescent 0
#fRectWidth 10
#fRectHeight 11
#ascent 9
#descent 2
#leading 0
#averageWidth 5.24
FONTS['nicefont'] = {
9:(2,0,2,(
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00
)),19:(5,0,5,(
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000
)),20:(10,0,10,(
0b0111100000,
0b1111110000,
0b1000010000,
0b1111110010,
0b0111100100,
0b0011001000,
0b0011000110,
0b0011001000,
0b0111000100,
0b0111000010,
0b0011000000
)),21:(5,0,5,(
0b00000,
0b00100,
0b01000,
0b10000,
0b00000,
0b11010,
0b00000,
0b10000,
0b01000,
0b00100,
0b00000
)),22:(7,0,7,(
0b0000000,
0b0000000,
0b0000000,
0b0000010,
0b0000100,
0b0001000,
0b0010000,
0b1100000,
0b1100000,
0b0000000,
0b0000000
)),23:(7,0,7,(
0b0000000,
0b0001000,
0b0010100,
0b0010100,
0b0010100,
0b0001000,
0b0010100,
0b1100010,
0b1100010,
0b0000000,
0b0000000
)),24:(6,0,6,(
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b101010,
0b000000,
0b000000
)),25:(5,0,5,(
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000
)),32:(2,0,2,(
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00
)),33:(2,0,2,(
0b00,
0b00,
0b10,
0b10,
0b10,
0b10,
0b10,
0b00,
0b10,
0b00,
0b00
)),34:(4,0,4,(
0b0000,
0b1010,
0b1010,
0b1010,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000
)),35:(8,0,8,(
0b00000000,
0b00000000,
0b00010100,
0b00010100,
0b01111110,
0b00101000,
0b11111100,
0b01010000,
0b01010000,
0b00000000,
0b00000000
)),36:(6,0,6,(
0b000000,
0b001000,
0b011110,
0b101000,
0b111100,
0b011110,
0b001010,
0b111100,
0b001000,
0b000000,
0b000000
)),37:(8,0,8,(
0b00000000,
0b00000000,
0b01111110,
0b10100100,
0b10101000,
0b01010100,
0b00101010,
0b01001010,
0b01000100,
0b00000000,
0b00000000
)),38:(7,0,7,(
0b0000000,
0b0000000,
0b0110000,
0b1001000,
0b1000000,
0b0100010,
0b1001100,
0b1000100,
0b0111000,
0b0000000,
0b0000000
)),39:(2,0,2,(
0b00,
0b10,
0b10,
0b10,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00
)),40:(4,0,4,(
0b0000,
0b0010,
0b0100,
0b0100,
0b1000,
0b1000,
0b1000,
0b0100,
0b0100,
0b0010,
0b0000
)),41:(4,0,4,(
0b0000,
0b1000,
0b0100,
0b0100,
0b0010,
0b0010,
0b0010,
0b0100,
0b0100,
0b1000,
0b0000
)),42:(6,0,6,(
0b000000,
0b010100,
0b001000,
0b110110,
0b001000,
0b010100,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000
)),43:(6,0,6,(
0b000000,
0b000000,
0b000000,
0b001000,
0b001000,
0b111110,
0b001000,
0b001000,
0b000000,
0b000000,
0b000000
)),44:(3,0,3,(
0b000,
0b000,
0b000,
0b000,
0b000,
0b000,
0b000,
0b000,
0b110,
0b010,
0b100
)),45:(5,0,5,(
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b11110,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000
)),46:(2,0,2,(
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b10,
0b00,
0b00
)),47:(5,0,5,(
0b00000,
0b00000,
0b00010,
0b00100,
0b00100,
0b01000,
0b01000,
0b10000,
0b10000,
0b00000,
0b00000
)),48:(5,0,5,(
0b00000,
0b00000,
0b01100,
0b10010,
0b10010,
0b10010,
0b10010,
0b10010,
0b01100,
0b00000,
0b00000
)),49:(5,0,5,(
0b00000,
0b00000,
0b00100,
0b01100,
0b00100,
0b00100,
0b00100,
0b00100,
0b01110,
0b00000,
0b00000
)),50:(5,0,5,(
0b00000,
0b00000,
0b01100,
0b10010,
0b00010,
0b00100,
0b01000,
0b10000,
0b11110,
0b00000,
0b00000
)),51:(5,0,5,(
0b00000,
0b00000,
0b01100,
0b10010,
0b00010,
0b00100,
0b00010,
0b10010,
0b01100,
0b00000,
0b00000
)),52:(5,0,5,(
0b00000,
0b00000,
0b00010,
0b00110,
0b01010,
0b10010,
0b11110,
0b00010,
0b00010,
0b00000,
0b00000
)),53:(5,0,5,(
0b00000,
0b00000,
0b11110,
0b10000,
0b10000,
0b11100,
0b00010,
0b00010,
0b11100,
0b00000,
0b00000
)),54:(5,0,5,(
0b00000,
0b00000,
0b00100,
0b01000,
0b10000,
0b11100,
0b10010,
0b10010,
0b01100,
0b00000,
0b00000
)),55:(5,0,5,(
0b00000,
0b00000,
0b11110,
0b00010,
0b00100,
0b00100,
0b01000,
0b01000,
0b01000,
0b00000,
0b00000
)),56:(5,0,5,(
0b00000,
0b00000,
0b01100,
0b10010,
0b10010,
0b01100,
0b10010,
0b10010,
0b01100,
0b00000,
0b00000
)),57:(5,0,5,(
0b00000,
0b00000,
0b01100,
0b10010,
0b10010,
0b01110,
0b00010,
0b00100,
0b01000,
0b00000,
0b00000
)),58:(2,0,2,(
0b00,
0b00,
0b00,
0b00,
0b10,
0b00,
0b00,
0b00,
0b10,
0b00,
0b00
)),59:(3,0,3,(
0b000,
0b000,
0b000,
0b000,
0b010,
0b000,
0b000,
0b000,
0b010,
0b100,
0b000
)),60:(4,0,4,(
0b0000,
0b0000,
0b0000,
0b0010,
0b0100,
0b1000,
0b0100,
0b0010,
0b0000,
0b0000,
0b0000
)),61:(6,0,6,(
0b000000,
0b000000,
0b000000,
0b000000,
0b111110,
0b000000,
0b111110,
0b000000,
0b000000,
0b000000,
0b000000
)),62:(4,0,4,(
0b0000,
0b0000,
0b0000,
0b1000,
0b0100,
0b0010,
0b0100,
0b1000,
0b0000,
0b0000,
0b0000
)),63:(5,0,5,(
0b00000,
0b00000,
0b01100,
0b10010,
0b00010,
0b00100,
0b01000,
0b00000,
0b01000,
0b00000,
0b00000
)),64:(8,0,8,(
0b00000000,
0b00000000,
0b00111000,
0b01000100,
0b10011010,
0b10101010,
0b10111100,
0b01000000,
0b00111100,
0b00000000,
0b00000000
)),65:(6,0,6,(
0b000000,
0b000000,
0b001110,
0b010010,
0b010010,
0b011110,
0b110010,
0b010010,
0b010010,
0b000000,
0b000000
)),66:(6,0,6,(
0b000000,
0b000000,
0b111000,
0b100100,
0b100100,
0b111100,
0b100010,
0b100010,
0b111100,
0b000000,
0b000000
)),67:(6,0,6,(
0b000000,
0b000000,
0b001100,
0b010010,
0b100000,
0b100000,
0b100000,
0b100010,
0b011100,
0b000000,
0b000000
)),68:(6,0,6,(
0b000000,
0b000000,
0b111000,
0b100100,
0b100010,
0b100010,
0b100010,
0b100010,
0b111100,
0b000000,
0b000000
)),69:(5,0,5,(
0b00000,
0b00000,
0b01110,
0b10000,
0b10000,
0b11100,
0b10000,
0b10000,
0b11110,
0b00000,
0b00000
)),70:(5,0,5,(
0b00000,
0b00000,
0b01110,
0b10000,
0b10000,
0b11100,
0b10000,
0b10000,
0b10000,
0b00000,
0b00000
)),71:(6,0,6,(
0b000000,
0b000000,
0b000110,
0b001000,
0b010000,
0b100110,
0b100010,
0b100010,
0b011110,
0b000000,
0b000000
)),72:(7,0,7,(
0b0000000,
0b0000000,
0b0100010,
0b0100010,
0b0100010,
0b0111110,
0b1100010,
0b0100010,
0b0100010,
0b0000000,
0b0000000
)),73:(2,0,2,(
0b00,
0b00,
0b10,
0b10,
0b10,
0b10,
0b10,
0b10,
0b10,
0b00,
0b00
)),74:(4,0,4,(
0b0000,
0b0000,
0b0010,
0b0010,
0b0010,
0b0010,
0b0010,
0b0010,
0b1100,
0b0000,
0b0000
)),75:(6,0,6,(
0b000000,
0b000000,
0b100010,
0b100100,
0b101000,
0b111000,
0b100100,
0b100010,
0b100010,
0b000000,
0b000000
)),76:(5,0,5,(
0b00000,
0b00000,
0b10000,
0b10000,
0b10000,
0b10000,
0b10000,
0b10000,
0b01110,
0b00000,
0b00000
)),77:(7,0,7,(
0b0000000,
0b0000000,
0b1000010,
0b1000110,
0b1101010,
0b1010010,
0b1000010,
0b1000010,
0b1000100,
0b0000000,
0b0000000
)),78:(6,0,6,(
0b000000,
0b000000,
0b100010,
0b110010,
0b101010,
0b100110,
0b100010,
0b100010,
0b100010,
0b000000,
0b000000
)),79:(6,0,6,(
0b000000,
0b000000,
0b001100,
0b010010,
0b100010,
0b100010,
0b100010,
0b100010,
0b011100,
0b000000,
0b000000
)),80:(6,0,6,(
0b000000,
0b000000,
0b111100,
0b100010,
0b100010,
0b111100,
0b100000,
0b100000,
0b100000,
0b000000,
0b000000
)),81:(6,0,6,(
0b000000,
0b000000,
0b001100,
0b010010,
0b100010,
0b100010,
0b100010,
0b101010,
0b011100,
0b000010,
0b000000
)),82:(6,0,6,(
0b000000,
0b000000,
0b111100,
0b100010,
0b100010,
0b111100,
0b100100,
0b100010,
0b100010,
0b000000,
0b000000
)),83:(5,0,5,(
0b00000,
0b00000,
0b01110,
0b10000,
0b10000,
0b01100,
0b00010,
0b00010,
0b11100,
0b00000,
0b00000
)),84:(6,0,6,(
0b000000,
0b000000,
0b111110,
0b001000,
0b001000,
0b001000,
0b001000,
0b001000,
0b001000,
0b000000,
0b000000
)),85:(6,0,6,(
0b000000,
0b000000,
0b100010,
0b100010,
0b100010,
0b100010,
0b100010,
0b100010,
0b011100,
0b000000,
0b000000
)),86:(6,0,6,(
0b000000,
0b000000,
0b100010,
0b100010,
0b100010,
0b010100,
0b010100,
0b001000,
0b001000,
0b000000,
0b000000
)),87:(7,0,7,(
0b0000000,
0b0000000,
0b1000100,
0b1000010,
0b1000010,
0b1010010,
0b1010010,
0b1011010,
0b1100100,
0b0000000,
0b0000000
)),88:(6,0,6,(
0b000000,
0b000000,
0b100010,
0b100010,
0b010100,
0b001000,
0b010100,
0b100010,
0b100010,
0b000000,
0b000000
)),89:(6,0,6,(
0b000000,
0b000000,
0b100010,
0b100010,
0b010100,
0b001000,
0b001000,
0b001000,
0b001000,
0b000000,
0b000000
)),90:(6,0,6,(
0b000000,
0b000000,
0b111110,
0b000010,
0b000100,
0b001000,
0b010000,
0b100000,
0b111110,
0b000000,
0b000000
)),91:(3,0,3,(
0b000,
0b110,
0b100,
0b100,
0b100,
0b100,
0b100,
0b100,
0b100,
0b110,
0b000
)),92:(5,0,5,(
0b00000,
0b00000,
0b10000,
0b01000,
0b01000,
0b00100,
0b00100,
0b00010,
0b00010,
0b00000,
0b00000
)),93:(3,0,3,(
0b000,
0b110,
0b010,
0b010,
0b010,
0b010,
0b010,
0b010,
0b010,
0b110,
0b000
)),94:(6,0,6,(
0b000000,
0b000000,
0b001000,
0b010100,
0b100010,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000
)),95:(4,0,4,(
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b1111,
0b0000
)),96:(3,0,3,(
0b000,
0b100,
0b010,
0b000,
0b000,
0b000,
0b000,
0b000,
0b000,
0b000,
0b000
)),97:(5,0,5,(
0b00000,
0b00000,
0b00000,
0b00000,
0b01100,
0b00010,
0b01110,
0b10010,
0b11110,
0b00000,
0b00000
)),98:(5,0,5,(
0b00000,
0b00000,
0b10000,
0b10000,
0b11100,
0b10010,
0b10010,
0b10010,
0b11100,
0b00000,
0b00000
)),99:(5,0,5,(
0b00000,
0b00000,
0b00000,
0b00000,
0b01100,
0b10010,
0b10000,
0b10000,
0b01110,
0b00000,
0b00000
)),100:(5,0,5,(
0b00000,
0b00000,
0b00010,
0b00010,
0b01110,
0b10010,
0b10010,
0b10010,
0b01110,
0b00000,
0b00000
)),101:(5,0,5,(
0b00000,
0b00000,
0b00000,
0b00000,
0b01100,
0b10010,
0b10100,
0b11000,
0b01110,
0b00000,
0b00000
)),102:(4,0,4,(
0b0000,
0b0000,
0b0011,
0b0100,
0b0110,
0b1100,
0b0100,
0b0100,
0b0100,
0b0000,
0b0000
)),103:(5,0,5,(
0b00000,
0b00000,
0b00000,
0b00000,
0b01110,
0b10010,
0b10010,
0b10010,
0b01110,
0b00010,
0b11100
)),104:(5,0,5,(
0b00000,
0b00000,
0b10000,
0b10000,
0b10100,
0b11010,
0b10010,
0b10010,
0b10010,
0b00000,
0b00000
)),105:(2,0,2,(
0b00,
0b00,
0b10,
0b00,
0b10,
0b10,
0b10,
0b10,
0b10,
0b00,
0b00
)),106:(3,0,3,(
0b000,
0b000,
0b010,
0b000,
0b010,
0b010,
0b010,
0b010,
0b010,
0b010,
0b100
)),107:(5,0,5,(
0b00000,
0b00000,
0b10000,
0b10000,
0b10010,
0b10100,
0b11100,
0b10010,
0b10010,
0b00000,
0b00000
)),108:(2,0,2,(
0b00,
0b00,
0b10,
0b10,
0b10,
0b10,
0b10,
0b10,
0b10,
0b00,
0b00
)),109:(8,0,8,(
0b00000000,
0b00000000,
0b00000000,
0b00000000,
0b11101100,
0b10010010,
0b10010010,
0b10010010,
0b10010010,
0b00000000,
0b00000000
)),110:(5,0,5,(
0b00000,
0b00000,
0b00000,
0b00000,
0b10100,
0b11010,
0b10010,
0b10010,
0b10010,
0b00000,
0b00000
)),111:(5,0,5,(
0b00000,
0b00000,
0b00000,
0b00000,
0b01100,
0b10010,
0b10010,
0b10010,
0b01100,
0b00000,
0b00000
)),112:(5,0,5,(
0b00000,
0b00000,
0b00000,
0b00000,
0b11100,
0b10010,
0b10010,
0b10010,
0b11100,
0b10000,
0b10000
)),113:(5,0,5,(
0b00000,
0b00000,
0b00000,
0b00000,
0b01110,
0b10010,
0b10010,
0b10010,
0b01110,
0b00010,
0b00010
)),114:(4,0,4,(
0b0000,
0b0000,
0b0000,
0b0000,
0b1010,
0b1100,
0b1000,
0b1000,
0b1000,
0b0000,
0b0000
)),115:(4,0,4,(
0b0000,
0b0000,
0b0000,
0b0000,
0b0110,
0b1000,
0b0100,
0b0010,
0b1100,
0b0000,
0b0000
)),116:(5,0,5,(
0b00000,
0b00000,
0b00000,
0b01000,
0b01110,
0b11000,
0b01000,
0b01000,
0b00110,
0b00000,
0b00000
)),117:(5,0,5,(
0b00000,
0b00000,
0b00000,
0b00000,
0b10010,
0b10010,
0b10010,
0b10010,
0b01110,
0b00000,
0b00000
)),118:(5,0,5,(
0b00000,
0b00000,
0b00000,
0b00000,
0b10010,
0b10010,
0b10010,
0b10100,
0b01000,
0b00000,
0b00000
)),119:(6,0,6,(
0b000000,
0b000000,
0b000000,
0b000000,
0b101010,
0b101010,
0b101010,
0b010100,
0b010100,
0b000000,
0b000000
)),120:(5,0,5,(
0b00000,
0b00000,
0b00000,
0b00000,
0b10010,
0b10010,
0b01100,
0b10010,
0b10010,
0b00000,
0b00000
)),121:(5,0,5,(
0b00000,
0b00000,
0b00000,
0b00000,
0b10010,
0b10010,
0b10010,
0b01100,
0b00100,
0b01000,
0b10000
)),122:(5,0,5,(
0b00000,
0b00000,
0b00000,
0b00000,
0b11110,
0b00100,
0b01000,
0b10000,
0b11110,
0b00000,
0b00000
)),123:(4,0,4,(
0b0000,
0b0010,
0b0100,
0b0100,
0b0100,
0b1000,
0b0100,
0b0100,
0b0100,
0b0010,
0b0000
)),124:(2,0,2,(
0b00,
0b10,
0b10,
0b10,
0b10,
0b10,
0b10,
0b10,
0b10,
0b10,
0b00
)),125:(4,0,4,(
0b0000,
0b1000,
0b0100,
0b0100,
0b0100,
0b0010,
0b0100,
0b0100,
0b0100,
0b1000,
0b0000
)),126:(7,0,7,(
0b0000000,
0b0000000,
0b0000000,
0b0000000,
0b0000000,
0b0110010,
0b1001100,
0b0000000,
0b0000000,
0b0000000,
0b0000000
)),128:(8,0,8,(
0b00000000,
0b00000000,
0b00011100,
0b00100010,
0b11111000,
0b01000000,
0b11110000,
0b00100010,
0b00011100,
0b00000000,
0b00000000
)),130:(3,0,3,(
0b000,
0b000,
0b000,
0b000,
0b000,
0b000,
0b000,
0b000,
0b110,
0b010,
0b100
)),131:(5,0,5,(
0b00000,
0b00000,
0b00110,
0b01000,
0b11100,
0b01000,
0b01000,
0b01000,
0b01000,
0b10000,
0b00000
)),132:(5,0,5,(
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b11110,
0b01010,
0b10100
)),133:(6,0,6,(
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b101010,
0b000000,
0b000000
)),134:(6,0,6,(
0b000000,
0b000000,
0b001000,
0b001000,
0b111110,
0b001000,
0b001000,
0b001000,
0b001000,
0b001000,
0b001000
)),135:(6,0,6,(
0b000000,
0b000000,
0b001000,
0b001000,
0b111110,
0b001000,
0b001000,
0b001000,
0b111110,
0b001000,
0b001000
)),136:(4,0,4,(
0b0000,
0b0000,
0b0100,
0b1010,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000
)),137:(10,0,10,(
0b0000000000,
0b0000000000,
0b0100010000,
0b1010010000,
0b1010100000,
0b0101010100,
0b0010101010,
0b0100101010,
0b0100010100,
0b0000000000,
0b0000000000
)),138:(5,0,5,(
0b01010,
0b00100,
0b00000,
0b01110,
0b10000,
0b01000,
0b00100,
0b00010,
0b11100,
0b00000,
0b00000
)),139:(4,0,4,(
0b0000,
0b0000,
0b0000,
0b0000,
0b0010,
0b0100,
0b1000,
0b0100,
0b0010,
0b0000,
0b0000
)),140:(7,0,7,(
0b0000000,
0b0000000,
0b0111110,
0b1001000,
0b1001000,
0b1001110,
0b1001000,
0b1001000,
0b0111110,
0b0000000,
0b0000000
)),141:(10,0,10,(
0b0000000000,
0b0000100000,
0b0001010000,
0b0010001000,
0b0100000100,
0b1000000010,
0b0100000100,
0b0010001000,
0b0001010000,
0b0000100000,
0b0000000000
)),142:(10,0,10,(
0b0000000000,
0b0001110000,
0b0011111000,
0b0101110100,
0b1111111110,
0b1111111110,
0b1111111110,
0b0110101100,
0b0001110000,
0b0011111000,
0b0000000000
)),143:(10,0,10,(
0b0000000000,
0b0110001100,
0b1001010010,
0b1000100010,
0b1000000010,
0b1000000010,
0b0100000100,
0b0010001000,
0b0001010000,
0b0000100000,
0b0000000000
)),144:(10,0,10,(
0b0000000000,
0b0000100000,
0b0001110000,
0b0011111000,
0b0111111100,
0b1111111110,
0b1111111110,
0b0110101100,
0b0001110000,
0b0011111000,
0b0000000000
)),145:(3,0,3,(
0b000,
0b010,
0b100,
0b110,
0b000,
0b000,
0b000,
0b000,
0b000,
0b000,
0b000
)),146:(3,0,3,(
0b000,
0b110,
0b010,
0b100,
0b000,
0b000,
0b000,
0b000,
0b000,
0b000,
0b000
)),147:(5,0,5,(
0b00000,
0b01010,
0b10100,
0b11110,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000
)),148:(5,0,5,(
0b00000,
0b11110,
0b01010,
0b10100,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000
)),149:(4,0,4,(
0b0000,
0b0000,
0b0000,
0b0000,
0b1110,
0b1110,
0b1110,
0b0000,
0b0000,
0b0000,
0b0000
)),150:(4,0,4,(
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b1111,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000
)),151:(7,0,7,(
0b0000000,
0b0000000,
0b0000000,
0b0000000,
0b0000000,
0b1111111,
0b0000000,
0b0000000,
0b0000000,
0b0000000,
0b0000000
)),152:(7,0,7,(
0b0000000,
0b0000000,
0b0000000,
0b0110010,
0b1001100,
0b0000000,
0b0000000,
0b0000000,
0b0000000,
0b0000000,
0b0000000
)),153:(10,0,10,(
0b0000000000,
0b0000000000,
0b1110100010,
0b0100110110,
0b0100101010,
0b0000000000,
0b0000000000,
0b0000000000,
0b0000000000,
0b0000000000,
0b0000000000
)),154:(4,0,4,(
0b0000,
0b1010,
0b0100,
0b0000,
0b0110,
0b1000,
0b0100,
0b0010,
0b1100,
0b0000,
0b0000
)),155:(4,0,4,(
0b0000,
0b0000,
0b0000,
0b0000,
0b1000,
0b0100,
0b0010,
0b0100,
0b1000,
0b0000,
0b0000
)),156:(8,0,8,(
0b00000000,
0b00000000,
0b00000000,
0b00000000,
0b01101100,
0b10010010,
0b10010100,
0b10011000,
0b01101110,
0b00000000,
0b00000000
)),157:(7,0,7,(
0b0000000,
0b0000000,
0b0000000,
0b0000010,
0b0000100,
0b0001000,
0b0010000,
0b1100000,
0b1100000,
0b0000000,
0b0000000
)),158:(7,0,7,(
0b0000000,
0b0001000,
0b0010100,
0b0010100,
0b0010100,
0b0001000,
0b0010100,
0b1100010,
0b1100010,
0b0000000,
0b0000000
)),159:(6,0,6,(
0b000000,
0b010100,
0b000000,
0b100010,
0b100010,
0b010100,
0b001000,
0b001000,
0b001000,
0b000000,
0b000000
)),160:(2,0,2,(
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00
)),161:(2,0,2,(
0b00,
0b00,
0b00,
0b00,
0b10,
0b00,
0b10,
0b10,
0b10,
0b10,
0b10
)),162:(6,0,6,(
0b000000,
0b000000,
0b001000,
0b011100,
0b101010,
0b101000,
0b101000,
0b101010,
0b011100,
0b001000,
0b000000
)),163:(6,0,6,(
0b000000,
0b000000,
0b001100,
0b010010,
0b010000,
0b111100,
0b010000,
0b010000,
0b111000,
0b000110,
0b000000
)),164:(8,0,8,(
0b00000000,
0b00000000,
0b10010010,
0b01101100,
0b01000100,
0b10000010,
0b01000100,
0b01101100,
0b10010010,
0b00000000,
0b00000000
)),165:(6,0,6,(
0b000000,
0b000000,
0b100010,
0b010100,
0b111110,
0b001000,
0b111110,
0b001000,
0b001000,
0b000000,
0b000000
)),166:(2,0,2,(
0b00,
0b00,
0b10,
0b10,
0b10,
0b10,
0b00,
0b10,
0b10,
0b10,
0b10
)),167:(5,0,5,(
0b00000,
0b01100,
0b10010,
0b01000,
0b10100,
0b10010,
0b01010,
0b00100,
0b10010,
0b01100,
0b00000
)),168:(4,0,4,(
0b0000,
0b0000,
0b0000,
0b1010,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000
)),169:(8,0,8,(
0b00000000,
0b00000000,
0b00111000,
0b01000100,
0b10111010,
0b10100010,
0b10111010,
0b01000100,
0b00111000,
0b00000000,
0b00000000
)),170:(5,0,5,(
0b00000,
0b00000,
0b01110,
0b10010,
0b01110,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000
)),171:(6,0,6,(
0b000000,
0b000000,
0b000000,
0b000000,
0b001010,
0b010100,
0b101000,
0b010100,
0b001010,
0b000000,
0b000000
)),172:(6,0,6,(
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b111110,
0b000010,
0b000010,
0b000000,
0b000000,
0b000000
)),173:(4,0,4,(
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b1110,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000
)),174:(8,0,8,(
0b00000000,
0b00000000,
0b00111000,
0b01000100,
0b10111010,
0b10110010,
0b10101010,
0b01000100,
0b00111000,
0b00000000,
0b00000000
)),175:(6,0,6,(
0b000000,
0b111110,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000
)),176:(5,0,5,(
0b00000,
0b01100,
0b10010,
0b10010,
0b01100,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000
)),177:(6,0,6,(
0b000000,
0b000000,
0b001000,
0b001000,
0b111110,
0b001000,
0b001000,
0b111110,
0b000000,
0b000000,
0b000000
)),178:(4,0,4,(
0b0000,
0b1100,
0b0010,
0b0100,
0b1000,
0b1110,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000
)),179:(4,0,4,(
0b0000,
0b1110,
0b0010,
0b0100,
0b0010,
0b1110,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000
)),180:(3,0,3,(
0b000,
0b010,
0b100,
0b000,
0b000,
0b000,
0b000,
0b000,
0b000,
0b000,
0b000
)),181:(5,0,5,(
0b00000,
0b00000,
0b00000,
0b00000,
0b10010,
0b10010,
0b10010,
0b10010,
0b11110,
0b10000,
0b10000
)),182:(6,0,6,(
0b000000,
0b000000,
0b011110,
0b111010,
0b111010,
0b011010,
0b001010,
0b001010,
0b001010,
0b000000,
0b000000
)),183:(2,0,2,(
0b00,
0b00,
0b00,
0b00,
0b00,
0b10,
0b00,
0b00,
0b00,
0b00,
0b00
)),184:(4,0,4,(
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0100,
0b0010,
0b1100
)),185:(2,0,2,(
0b00,
0b00,
0b10,
0b10,
0b10,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00
)),186:(5,0,5,(
0b00000,
0b00000,
0b01100,
0b10010,
0b01100,
0b00000,
0b11110,
0b00000,
0b00000,
0b00000,
0b00000
)),187:(6,0,6,(
0b000000,
0b000000,
0b000000,
0b000000,
0b101000,
0b010100,
0b001010,
0b010100,
0b101000,
0b000000,
0b000000
)),188:(8,0,8,(
0b00000000,
0b01000000,
0b01000100,
0b01001000,
0b01010000,
0b00100100,
0b01001100,
0b10011110,
0b00000100,
0b00000000,
0b00000000
)),189:(8,0,8,(
0b00000000,
0b01000000,
0b01000100,
0b01001000,
0b01010000,
0b00101100,
0b01000010,
0b10000100,
0b00001110,
0b00000000,
0b00000000
)),190:(8,0,8,(
0b00000000,
0b11100000,
0b01000010,
0b00100100,
0b11101000,
0b00010010,
0b00100110,
0b01001111,
0b00000010,
0b00000000,
0b00000000
)),191:(5,0,5,(
0b00000,
0b00000,
0b00100,
0b00000,
0b00100,
0b01000,
0b10000,
0b10010,
0b01100,
0b00000,
0b00000
)),192:(6,0,6,(
0b001000,
0b000100,
0b000000,
0b001100,
0b010010,
0b010010,
0b011110,
0b110010,
0b010010,
0b000000,
0b000000
)),193:(6,0,6,(
0b000100,
0b001000,
0b000000,
0b001100,
0b010010,
0b010010,
0b011110,
0b110010,
0b010010,
0b000000,
0b000000
)),194:(6,0,6,(
0b000100,
0b001010,
0b000000,
0b001100,
0b010010,
0b010010,
0b011110,
0b110010,
0b010010,
0b000000,
0b000000
)),195:(6,0,6,(
0b001010,
0b010100,
0b000000,
0b001100,
0b010010,
0b010010,
0b011110,
0b110010,
0b010010,
0b000000,
0b000000
)),196:(6,0,6,(
0b000000,
0b001010,
0b000000,
0b001100,
0b010010,
0b010010,
0b011110,
0b110010,
0b010010,
0b000000,
0b000000
)),197:(6,0,6,(
0b001100,
0b010010,
0b001100,
0b001100,
0b010010,
0b010010,
0b011110,
0b110010,
0b010010,
0b000000,
0b000000
)),198:(8,0,8,(
0b00000000,
0b00000000,
0b00111110,
0b01001000,
0b01001000,
0b01111110,
0b11001000,
0b01001000,
0b01001110,
0b00000000,
0b00000000
)),199:(5,0,5,(
0b00000,
0b00000,
0b00110,
0b01000,
0b10000,
0b10000,
0b10000,
0b01000,
0b00110,
0b00100,
0b01000
)),200:(5,0,5,(
0b01000,
0b00100,
0b00000,
0b11110,
0b10000,
0b11100,
0b10000,
0b10000,
0b11110,
0b00000,
0b00000
)),201:(5,0,5,(
0b00100,
0b01000,
0b00000,
0b11110,
0b10000,
0b11100,
0b10000,
0b10000,
0b11110,
0b00000,
0b00000
)),202:(5,0,5,(
0b00100,
0b01010,
0b00000,
0b11110,
0b10000,
0b11100,
0b10000,
0b10000,
0b11110,
0b00000,
0b00000
)),203:(5,0,5,(
0b00000,
0b01010,
0b00000,
0b11110,
0b10000,
0b11100,
0b10000,
0b10000,
0b11110,
0b00000,
0b00000
)),204:(3,0,3,(
0b100,
0b010,
0b000,
0b010,
0b010,
0b010,
0b010,
0b010,
0b010,
0b000,
0b000
)),205:(2,0,2,(
0b01,
0b10,
0b00,
0b10,
0b10,
0b10,
0b10,
0b10,
0b10,
0b00,
0b00
)),206:(3,0,3,(
0b010,
0b101,
0b000,
0b010,
0b010,
0b010,
0b010,
0b010,
0b010,
0b000,
0b000
)),207:(3,0,3,(
0b101,
0b000,
0b000,
0b010,
0b010,
0b010,
0b010,
0b010,
0b010,
0b000,
0b000
)),208:(7,0,7,(
0b0000000,
0b0000000,
0b0111000,
0b0100100,
0b0100010,
0b1110010,
0b0100010,
0b0100010,
0b0111100,
0b0000000,
0b0000000
)),209:(6,0,6,(
0b001010,
0b010100,
0b000000,
0b100010,
0b110010,
0b101010,
0b100110,
0b100010,
0b100010,
0b000000,
0b000000
)),210:(6,0,6,(
0b001000,
0b000100,
0b000000,
0b001100,
0b010010,
0b100010,
0b100010,
0b100010,
0b011100,
0b000000,
0b000000
)),211:(6,0,6,(
0b000100,
0b001000,
0b000000,
0b001100,
0b010010,
0b100010,
0b100010,
0b100010,
0b011100,
0b000000,
0b000000
)),212:(6,0,6,(
0b001000,
0b010100,
0b000000,
0b001100,
0b010010,
0b100010,
0b100010,
0b100010,
0b011100,
0b000000,
0b000000
)),213:(6,0,6,(
0b001010,
0b010100,
0b000000,
0b001100,
0b010010,
0b100010,
0b100010,
0b100010,
0b011100,
0b000000,
0b000000
)),214:(6,0,6,(
0b000000,
0b010100,
0b000000,
0b001100,
0b010010,
0b100010,
0b100010,
0b100010,
0b011100,
0b000000,
0b000000
)),215:(5,0,5,(
0b00000,
0b00000,
0b00000,
0b00000,
0b10010,
0b01100,
0b01100,
0b10010,
0b00000,
0b00000,
0b00000
)),216:(8,0,8,(
0b00000000,
0b00000000,
0b00111010,
0b01000100,
0b10001010,
0b10010010,
0b10100010,
0b01000100,
0b10111000,
0b00000000,
0b00000000
)),217:(6,0,6,(
0b001000,
0b000100,
0b000000,
0b100010,
0b100010,
0b100010,
0b100010,
0b100010,
0b011100,
0b000000,
0b000000
)),218:(6,0,6,(
0b000100,
0b001000,
0b000000,
0b100010,
0b100010,
0b100010,
0b100010,
0b100010,
0b011100,
0b000000,
0b000000
)),219:(6,0,6,(
0b001000,
0b010100,
0b000000,
0b100010,
0b100010,
0b100010,
0b100010,
0b100010,
0b011100,
0b000000,
0b000000
)),220:(6,0,6,(
0b000000,
0b010100,
0b000000,
0b100010,
0b100010,
0b100010,
0b100010,
0b100010,
0b011100,
0b000000,
0b000000
)),221:(6,0,6,(
0b000100,
0b001000,
0b000000,
0b100010,
0b100010,
0b010100,
0b001000,
0b001000,
0b001000,
0b000000,
0b000000
)),222:(6,0,6,(
0b000000,
0b000000,
0b100000,
0b111100,
0b100010,
0b100010,
0b100010,
0b111100,
0b100000,
0b000000,
0b000000
)),223:(6,0,6,(
0b000000,
0b000000,
0b011000,
0b100100,
0b100100,
0b101100,
0b100010,
0b100010,
0b101100,
0b000000,
0b000000
)),224:(5,0,5,(
0b00000,
0b01000,
0b00100,
0b00000,
0b01100,
0b00010,
0b01110,
0b10010,
0b11110,
0b00000,
0b00000
)),225:(5,0,5,(
0b00000,
0b00100,
0b01000,
0b00000,
0b01100,
0b00010,
0b01110,
0b10010,
0b11110,
0b00000,
0b00000
)),226:(5,0,5,(
0b00000,
0b00100,
0b01010,
0b00000,
0b01100,
0b00010,
0b01110,
0b10010,
0b11110,
0b00000,
0b00000
)),227:(5,0,5,(
0b00000,
0b01010,
0b10100,
0b00000,
0b01100,
0b00010,
0b01110,
0b10010,
0b11110,
0b00000,
0b00000
)),228:(5,0,5,(
0b00000,
0b00000,
0b01010,
0b00000,
0b01100,
0b00010,
0b01110,
0b10010,
0b11110,
0b00000,
0b00000
)),229:(5,0,5,(
0b00100,
0b01010,
0b00100,
0b00000,
0b01100,
0b00010,
0b01110,
0b10010,
0b11110,
0b00000,
0b00000
)),230:(8,0,8,(
0b00000000,
0b00000000,
0b00000000,
0b00000000,
0b11101100,
0b00010010,
0b11111100,
0b10010000,
0b01111110,
0b00000000,
0b00000000
)),231:(4,0,4,(
0b0000,
0b0000,
0b0000,
0b0000,
0b0110,
0b1000,
0b1000,
0b1000,
0b0110,
0b0100,
0b1000
)),232:(5,0,5,(
0b00000,
0b01000,
0b00100,
0b00000,
0b01100,
0b10010,
0b10100,
0b11000,
0b01110,
0b00000,
0b00000
)),233:(5,0,5,(
0b00000,
0b00100,
0b01000,
0b00000,
0b01100,
0b10010,
0b10100,
0b11000,
0b01110,
0b00000,
0b00000
)),234:(5,0,5,(
0b00000,
0b00100,
0b01010,
0b00000,
0b01100,
0b10010,
0b10100,
0b11000,
0b01110,
0b00000,
0b00000
)),235:(5,0,5,(
0b00000,
0b00000,
0b01010,
0b00000,
0b01100,
0b10010,
0b10100,
0b11000,
0b01110,
0b00000,
0b00000
)),236:(2,0,2,(
0b00,
0b10,
0b01,
0b00,
0b10,
0b10,
0b10,
0b10,
0b10,
0b00,
0b00
)),237:(2,0,2,(
0b00,
0b01,
0b10,
0b00,
0b10,
0b10,
0b10,
0b10,
0b10,
0b00,
0b00
)),238:(3,0,3,(
0b000,
0b010,
0b101,
0b000,
0b010,
0b010,
0b010,
0b010,
0b010,
0b000,
0b000
)),239:(3,0,3,(
0b000,
0b101,
0b000,
0b000,
0b010,
0b010,
0b010,
0b010,
0b010,
0b000,
0b000
)),240:(5,0,5,(
0b00000,
0b00000,
0b11000,
0b11000,
0b00100,
0b01100,
0b10010,
0b10010,
0b01100,
0b00000,
0b00000
)),241:(5,0,5,(
0b00000,
0b01010,
0b10100,
0b00000,
0b10100,
0b11010,
0b10010,
0b10010,
0b10010,
0b00000,
0b00000
)),242:(5,0,5,(
0b00000,
0b01000,
0b00100,
0b00000,
0b01100,
0b10010,
0b10010,
0b10010,
0b01100,
0b00000,
0b00000
)),243:(5,0,5,(
0b00000,
0b00100,
0b01000,
0b00000,
0b01100,
0b10010,
0b10010,
0b10010,
0b01100,
0b00000,
0b00000
)),244:(5,0,5,(
0b00000,
0b00100,
0b01010,
0b00000,
0b01100,
0b10010,
0b10010,
0b10010,
0b01100,
0b00000,
0b00000
)),245:(5,0,5,(
0b00000,
0b01010,
0b10100,
0b00000,
0b01100,
0b10010,
0b10010,
0b10010,
0b01100,
0b00000,
0b00000
)),246:(5,0,5,(
0b00000,
0b00000,
0b01010,
0b00000,
0b01100,
0b10010,
0b10010,
0b10010,
0b01100,
0b00000,
0b00000
)),247:(6,0,6,(
0b000000,
0b000000,
0b000000,
0b001000,
0b000000,
0b111110,
0b000000,
0b001000,
0b000000,
0b000000,
0b000000
)),248:(7,0,7,(
0b0000000,
0b0000000,
0b0000000,
0b0000000,
0b0011010,
0b0101100,
0b0110100,
0b0100100,
0b1011000,
0b0000000,
0b0000000
)),249:(5,0,5,(
0b00000,
0b01000,
0b00100,
0b00000,
0b10010,
0b10010,
0b10010,
0b10010,
0b01110,
0b00000,
0b00000
)),250:(5,0,5,(
0b00000,
0b00100,
0b01000,
0b00000,
0b10010,
0b10010,
0b10010,
0b10010,
0b01110,
0b00000,
0b00000
)),251:(5,0,5,(
0b00000,
0b00100,
0b01010,
0b00000,
0b10010,
0b10010,
0b10010,
0b10010,
0b01110,
0b00000,
0b00000
)),252:(5,0,5,(
0b00000,
0b00000,
0b01010,
0b00000,
0b10010,
0b10010,
0b10010,
0b10010,
0b01110,
0b00000,
0b00000
)),253:(5,0,5,(
0b00000,
0b00100,
0b01000,
0b00000,
0b10010,
0b10010,
0b10010,
0b01100,
0b00100,
0b01000,
0b10000
)),254:(5,0,5,(
0b00000,
0b00000,
0b10000,
0b10000,
0b11100,
0b10010,
0b10010,
0b10010,
0b11100,
0b10000,
0b10000
)),255:(5,0,5,(
0b00000,
0b00000,
0b01010,
0b00000,
0b10010,
0b10010,
0b10010,
0b01100,
0b00100,
0b01000,
0b10000
)),}
# generated by fontconv
#fontType 36864
#firstChar 9
#lastChar 255
#maxWidth 10
#kernMax 0
#nDescent 0
#fRectWidth 10
#fRectHeight 11
#ascent 9
#descent 2
#leading 0
#averageWidth 5.75
FONTS['nicefontbold'] = {
9:(2,0,2,(
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00
)),19:(5,0,5,(
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000
)),20:(10,0,10,(
0b0111100000,
0b1111110000,
0b1000010000,
0b1111110010,
0b0111100100,
0b0011001000,
0b0011000110,
0b0011001000,
0b0111000100,
0b0111000010,
0b0011000000
)),21:(5,0,5,(
0b00000,
0b00100,
0b01000,
0b10000,
0b00000,
0b11010,
0b00000,
0b10000,
0b01000,
0b00100,
0b00000
)),22:(8,0,8,(
0b00000000,
0b00000000,
0b00000110,
0b00001100,
0b00011000,
0b00110000,
0b11100000,
0b11100000,
0b11100000,
0b00000000,
0b00000000
)),23:(8,0,8,(
0b00000000,
0b00000000,
0b00111000,
0b01101100,
0b01101100,
0b01101100,
0b00111000,
0b11101100,
0b11000110,
0b00000000,
0b00000000
)),24:(6,0,6,(
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b101010,
0b000000,
0b000000
)),25:(5,0,5,(
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000
)),32:(2,0,2,(
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00
)),33:(3,0,3,(
0b000,
0b000,
0b110,
0b110,
0b110,
0b110,
0b110,
0b000,
0b110,
0b000,
0b000
)),34:(4,0,4,(
0b0000,
0b1010,
0b1010,
0b1010,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000
)),35:(10,0,10,(
0b0000000000,
0b0000000000,
0b0001101100,
0b0001101100,
0b0111111110,
0b0011011000,
0b1111111100,
0b0110110000,
0b0110110000,
0b0000000000,
0b0000000000
)),36:(6,0,6,(
0b000000,
0b001000,
0b011100,
0b101010,
0b111000,
0b011100,
0b001110,
0b101010,
0b011100,
0b001000,
0b000000
)),37:(9,0,9,(
0b000000000,
0b000000000,
0b011001000,
0b101001000,
0b101011000,
0b110110110,
0b001101010,
0b001001010,
0b001001100,
0b000000000,
0b000000000
)),38:(7,0,7,(
0b0000000,
0b0000000,
0b0111000,
0b1100100,
0b0100000,
0b1110000,
0b1100110,
0b1100100,
0b0111000,
0b0000000,
0b0000000
)),39:(2,0,2,(
0b00,
0b10,
0b10,
0b10,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00
)),40:(4,0,4,(
0b0000,
0b0110,
0b1100,
0b1100,
0b1100,
0b1100,
0b1100,
0b1100,
0b1100,
0b0110,
0b0000
)),41:(4,0,4,(
0b0000,
0b1100,
0b0110,
0b0110,
0b0110,
0b0110,
0b0110,
0b0110,
0b0110,
0b1100,
0b0000
)),42:(6,0,6,(
0b000000,
0b010100,
0b001000,
0b111110,
0b001000,
0b010100,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000
)),43:(6,0,6,(
0b000000,
0b000000,
0b000000,
0b001000,
0b001000,
0b111110,
0b001000,
0b001000,
0b000000,
0b000000,
0b000000
)),44:(3,0,3,(
0b000,
0b000,
0b000,
0b000,
0b000,
0b000,
0b000,
0b000,
0b110,
0b010,
0b100
)),45:(5,0,5,(
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b11110,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000
)),46:(2,0,2,(
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b10,
0b10,
0b00,
0b00
)),47:(5,0,5,(
0b00000,
0b00000,
0b00010,
0b00110,
0b00100,
0b01100,
0b01000,
0b11000,
0b10000,
0b00000,
0b00000
)),48:(6,0,6,(
0b000000,
0b000000,
0b011100,
0b110110,
0b110110,
0b110110,
0b110110,
0b110110,
0b011100,
0b000000,
0b000000
)),49:(6,0,6,(
0b000000,
0b000000,
0b001100,
0b011100,
0b001100,
0b001100,
0b001100,
0b001100,
0b001100,
0b000000,
0b000000
)),50:(6,0,6,(
0b000000,
0b000000,
0b011100,
0b110110,
0b000110,
0b001100,
0b011000,
0b110000,
0b111110,
0b000000,
0b000000
)),51:(6,0,6,(
0b000000,
0b000000,
0b011100,
0b110110,
0b000110,
0b001100,
0b000110,
0b110110,
0b011100,
0b000000,
0b000000
)),52:(6,0,6,(
0b000000,
0b000000,
0b000110,
0b001110,
0b010110,
0b110110,
0b111110,
0b000110,
0b000110,
0b000000,
0b000000
)),53:(6,0,6,(
0b000000,
0b000000,
0b111110,
0b110000,
0b110000,
0b111100,
0b000110,
0b000110,
0b111100,
0b000000,
0b000000
)),54:(6,0,6,(
0b000000,
0b000000,
0b001100,
0b011000,
0b110000,
0b111100,
0b110110,
0b110110,
0b011100,
0b000000,
0b000000
)),55:(6,0,6,(
0b000000,
0b000000,
0b111110,
0b000110,
0b001100,
0b001100,
0b011000,
0b011000,
0b011000,
0b000000,
0b000000
)),56:(6,0,6,(
0b000000,
0b000000,
0b011100,
0b110110,
0b110110,
0b011100,
0b110110,
0b110110,
0b011100,
0b000000,
0b000000
)),57:(6,0,6,(
0b000000,
0b000000,
0b011100,
0b110110,
0b110110,
0b011110,
0b000110,
0b001100,
0b011000,
0b000000,
0b000000
)),58:(3,0,3,(
0b000,
0b000,
0b000,
0b000,
0b110,
0b000,
0b000,
0b000,
0b110,
0b000,
0b000
)),59:(3,0,3,(
0b000,
0b000,
0b000,
0b000,
0b110,
0b000,
0b000,
0b000,
0b110,
0b010,
0b100
)),60:(5,0,5,(
0b00000,
0b00000,
0b00000,
0b00110,
0b01100,
0b11000,
0b01100,
0b00110,
0b00000,
0b00000,
0b00000
)),61:(6,0,6,(
0b000000,
0b000000,
0b000000,
0b000000,
0b111110,
0b000000,
0b111110,
0b000000,
0b000000,
0b000000,
0b000000
)),62:(5,0,5,(
0b00000,
0b00000,
0b00000,
0b11000,
0b01100,
0b00110,
0b01100,
0b11000,
0b00000,
0b00000,
0b00000
)),63:(6,0,6,(
0b000000,
0b000000,
0b011100,
0b100110,
0b000110,
0b001100,
0b011000,
0b000000,
0b011000,
0b000000,
0b000000
)),64:(8,0,8,(
0b00000000,
0b00000000,
0b00111000,
0b01000100,
0b10011010,
0b10101010,
0b10111100,
0b01000000,
0b00111100,
0b00000000,
0b00000000
)),65:(7,0,7,(
0b0000000,
0b0000000,
0b0011110,
0b0110110,
0b0110110,
0b0111110,
0b1110110,
0b0110110,
0b0110110,
0b0000000,
0b0000000
)),66:(6,0,6,(
0b000000,
0b000000,
0b111100,
0b110110,
0b110110,
0b111100,
0b110110,
0b110110,
0b111110,
0b000000,
0b000000
)),67:(6,0,6,(
0b000000,
0b000000,
0b001100,
0b011010,
0b110000,
0b110000,
0b110000,
0b110010,
0b011100,
0b000000,
0b000000
)),68:(6,0,6,(
0b000000,
0b000000,
0b111000,
0b110100,
0b110110,
0b110110,
0b110110,
0b110110,
0b111100,
0b000000,
0b000000
)),69:(5,0,5,(
0b00000,
0b00000,
0b01110,
0b11000,
0b11000,
0b11110,
0b11000,
0b11000,
0b11110,
0b00000,
0b00000
)),70:(5,0,5,(
0b00000,
0b00000,
0b01110,
0b11000,
0b11000,
0b11110,
0b11000,
0b11000,
0b11000,
0b00000,
0b00000
)),71:(6,0,6,(
0b000000,
0b000000,
0b001110,
0b011000,
0b110000,
0b110110,
0b110010,
0b110010,
0b011110,
0b000000,
0b000000
)),72:(7,0,7,(
0b0000000,
0b0000000,
0b0110110,
0b0110110,
0b0110110,
0b0111110,
0b1110110,
0b0110110,
0b0110110,
0b0000000,
0b0000000
)),73:(3,0,3,(
0b000,
0b000,
0b110,
0b110,
0b110,
0b110,
0b110,
0b110,
0b110,
0b000,
0b000
)),74:(5,0,5,(
0b00000,
0b00000,
0b00110,
0b00110,
0b00110,
0b00110,
0b00110,
0b00110,
0b11100,
0b00000,
0b00000
)),75:(6,0,6,(
0b000000,
0b000000,
0b110110,
0b110110,
0b111100,
0b111000,
0b111100,
0b110110,
0b110110,
0b000000,
0b000000
)),76:(6,0,6,(
0b000000,
0b000000,
0b110000,
0b110000,
0b110000,
0b110000,
0b110000,
0b110000,
0b011110,
0b000000,
0b000000
)),77:(8,0,8,(
0b00000000,
0b00000000,
0b11000110,
0b11101110,
0b11111110,
0b11010110,
0b11000110,
0b11000110,
0b11001100,
0b00000000,
0b00000000
)),78:(7,0,7,(
0b0000000,
0b0000000,
0b1100110,
0b1110110,
0b1111110,
0b1101110,
0b1100110,
0b1100110,
0b1100110,
0b0000000,
0b0000000
)),79:(6,0,6,(
0b000000,
0b000000,
0b001100,
0b010110,
0b110110,
0b110110,
0b110110,
0b110110,
0b011100,
0b000000,
0b000000
)),80:(6,0,6,(
0b000000,
0b000000,
0b111100,
0b110110,
0b110110,
0b111100,
0b110000,
0b110000,
0b110000,
0b000000,
0b000000
)),81:(6,0,6,(
0b000000,
0b000000,
0b001100,
0b010110,
0b110110,
0b110110,
0b110110,
0b110110,
0b011100,
0b000110,
0b000000
)),82:(6,0,6,(
0b000000,
0b000000,
0b111100,
0b110110,
0b110110,
0b111100,
0b110110,
0b110110,
0b110110,
0b000000,
0b000000
)),83:(6,0,6,(
0b000000,
0b000000,
0b011110,
0b110000,
0b111000,
0b011100,
0b001110,
0b000110,
0b111100,
0b000000,
0b000000
)),84:(7,0,7,(
0b0000000,
0b0000000,
0b1111110,
0b0011000,
0b0011000,
0b0011000,
0b0011000,
0b0011000,
0b0011000,
0b0000000,
0b0000000
)),85:(6,0,6,(
0b000000,
0b000000,
0b110110,
0b110110,
0b110110,
0b110110,
0b110110,
0b110110,
0b011100,
0b000000,
0b000000
)),86:(6,0,6,(
0b000000,
0b000000,
0b110110,
0b110110,
0b110110,
0b110110,
0b110110,
0b011100,
0b001000,
0b000000,
0b000000
)),87:(8,0,8,(
0b00000000,
0b00000000,
0b11001100,
0b11000110,
0b11000110,
0b11010110,
0b11111110,
0b11101110,
0b11000110,
0b00000000,
0b00000000
)),88:(6,0,6,(
0b000000,
0b000000,
0b110110,
0b110110,
0b110110,
0b011100,
0b110110,
0b110110,
0b110110,
0b000000,
0b000000
)),89:(7,0,7,(
0b0000000,
0b0000000,
0b1100110,
0b1100110,
0b1100110,
0b0111100,
0b0011000,
0b0011000,
0b0011000,
0b0000000,
0b0000000
)),90:(6,0,6,(
0b000000,
0b000000,
0b111110,
0b000110,
0b001110,
0b011100,
0b111000,
0b110000,
0b111110,
0b000000,
0b000000
)),91:(4,0,4,(
0b0000,
0b1110,
0b1100,
0b1100,
0b1100,
0b1100,
0b1100,
0b1100,
0b1100,
0b1110,
0b0000
)),92:(5,0,5,(
0b00000,
0b00000,
0b10000,
0b11000,
0b01000,
0b01100,
0b00100,
0b00110,
0b00010,
0b00000,
0b00000
)),93:(4,0,4,(
0b0000,
0b1110,
0b0110,
0b0110,
0b0110,
0b0110,
0b0110,
0b0110,
0b0110,
0b1110,
0b0000
)),94:(6,0,6,(
0b000000,
0b000000,
0b001000,
0b011100,
0b110110,
0b100010,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000
)),95:(4,0,4,(
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b1111,
0b0000
)),96:(4,0,4,(
0b0000,
0b0000,
0b1100,
0b0010,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000
)),97:(6,0,6,(
0b000000,
0b000000,
0b000000,
0b000000,
0b011100,
0b000110,
0b011110,
0b100110,
0b111110,
0b000000,
0b000000
)),98:(6,0,6,(
0b000000,
0b000000,
0b110000,
0b110000,
0b111100,
0b110110,
0b110110,
0b110110,
0b111100,
0b000000,
0b000000
)),99:(5,0,5,(
0b00000,
0b00000,
0b00000,
0b00000,
0b01100,
0b11010,
0b11000,
0b11000,
0b01110,
0b00000,
0b00000
)),100:(6,0,6,(
0b000000,
0b000000,
0b000110,
0b000110,
0b011110,
0b110110,
0b110110,
0b110110,
0b011110,
0b000000,
0b000000
)),101:(6,0,6,(
0b000000,
0b000000,
0b000000,
0b000000,
0b011100,
0b110010,
0b110100,
0b111000,
0b011110,
0b000000,
0b000000
)),102:(5,0,5,(
0b00000,
0b00000,
0b00111,
0b01100,
0b01110,
0b11100,
0b01100,
0b01100,
0b01100,
0b00000,
0b00000
)),103:(7,0,7,(
0b0000000,
0b0000000,
0b0000000,
0b0000000,
0b0111100,
0b1101100,
0b1101100,
0b0111100,
0b0001100,
0b1111000,
0b0000000
)),104:(6,0,6,(
0b000000,
0b000000,
0b110000,
0b110000,
0b110100,
0b111110,
0b110110,
0b110110,
0b110110,
0b000000,
0b000000
)),105:(3,0,3,(
0b000,
0b000,
0b110,
0b000,
0b110,
0b110,
0b110,
0b110,
0b110,
0b000,
0b000
)),106:(4,0,4,(
0b0000,
0b0000,
0b0110,
0b0000,
0b0110,
0b0110,
0b0110,
0b0110,
0b0110,
0b0110,
0b1100
)),107:(6,0,6,(
0b000000,
0b000000,
0b110000,
0b110000,
0b110110,
0b111100,
0b111100,
0b110110,
0b110110,
0b000000,
0b000000
)),108:(3,0,3,(
0b000,
0b000,
0b110,
0b110,
0b110,
0b110,
0b110,
0b110,
0b110,
0b000,
0b000
)),109:(9,0,9,(
0b000000000,
0b000000000,
0b000000000,
0b000000000,
0b110110100,
0b111111110,
0b110110110,
0b110110110,
0b110110110,
0b000000000,
0b000000000
)),110:(6,0,6,(
0b000000,
0b000000,
0b000000,
0b000000,
0b110100,
0b111110,
0b110110,
0b110110,
0b110110,
0b000000,
0b000000
)),111:(6,0,6,(
0b000000,
0b000000,
0b000000,
0b000000,
0b011100,
0b110110,
0b110110,
0b110110,
0b011100,
0b000000,
0b000000
)),112:(6,0,6,(
0b000000,
0b000000,
0b000000,
0b000000,
0b111100,
0b110110,
0b110110,
0b110110,
0b111100,
0b110000,
0b110000
)),113:(6,0,6,(
0b000000,
0b000000,
0b000000,
0b000000,
0b011110,
0b110110,
0b110110,
0b110110,
0b011110,
0b000110,
0b000110
)),114:(5,0,5,(
0b00000,
0b00000,
0b00000,
0b00000,
0b10110,
0b11110,
0b11000,
0b11000,
0b11000,
0b00000,
0b00000
)),115:(6,0,6,(
0b000000,
0b000000,
0b000000,
0b000000,
0b011110,
0b111000,
0b011100,
0b001110,
0b111100,
0b000000,
0b000000
)),116:(5,0,5,(
0b00000,
0b00000,
0b00000,
0b01100,
0b01110,
0b11100,
0b01100,
0b01100,
0b00110,
0b00000,
0b00000
)),117:(6,0,6,(
0b000000,
0b000000,
0b000000,
0b000000,
0b110110,
0b110110,
0b110110,
0b110110,
0b011110,
0b000000,
0b000000
)),118:(6,0,6,(
0b000000,
0b000000,
0b000000,
0b000000,
0b110110,
0b110110,
0b110110,
0b111100,
0b011000,
0b000000,
0b000000
)),119:(8,0,8,(
0b00000000,
0b00000000,
0b00000000,
0b00000000,
0b11011010,
0b11011010,
0b11011010,
0b11011010,
0b11111100,
0b00000000,
0b00000000
)),120:(6,0,6,(
0b000000,
0b000000,
0b000000,
0b000000,
0b110110,
0b110110,
0b011100,
0b110110,
0b110110,
0b000000,
0b000000
)),121:(6,0,6,(
0b000000,
0b000000,
0b000000,
0b000000,
0b110110,
0b110110,
0b110110,
0b011100,
0b001100,
0b011000,
0b110000
)),122:(5,0,5,(
0b00000,
0b00000,
0b00000,
0b00000,
0b11110,
0b00110,
0b01100,
0b11000,
0b11110,
0b00000,
0b00000
)),123:(5,0,5,(
0b00000,
0b00110,
0b01100,
0b01100,
0b01100,
0b11000,
0b01100,
0b01100,
0b01100,
0b00110,
0b00000
)),124:(3,0,3,(
0b000,
0b110,
0b110,
0b110,
0b110,
0b110,
0b110,
0b110,
0b110,
0b110,
0b000
)),125:(5,0,5,(
0b00000,
0b11000,
0b01100,
0b01100,
0b01100,
0b00110,
0b01100,
0b01100,
0b01100,
0b11000,
0b00000
)),126:(7,0,7,(
0b0000000,
0b0000000,
0b0000000,
0b0000000,
0b0010000,
0b0111010,
0b1001100,
0b0000000,
0b0000000,
0b0000000,
0b0000000
)),128:(8,0,8,(
0b00000000,
0b00000000,
0b00111100,
0b01100010,
0b11111000,
0b01100000,
0b11110000,
0b01100010,
0b00111100,
0b00000000,
0b00000000
)),130:(3,0,3,(
0b000,
0b000,
0b000,
0b000,
0b000,
0b000,
0b000,
0b000,
0b110,
0b010,
0b100
)),131:(8,0,8,(
0b00000000,
0b00000000,
0b00000110,
0b00001000,
0b00111100,
0b00010000,
0b00010000,
0b00100000,
0b00100000,
0b11000000,
0b00000000
)),132:(5,0,5,(
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b11110,
0b01010,
0b10100
)),133:(6,0,6,(
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b101010,
0b000000,
0b000000
)),134:(5,0,5,(
0b00000,
0b00000,
0b01100,
0b01100,
0b11110,
0b01100,
0b01100,
0b01100,
0b01100,
0b01100,
0b01100
)),135:(5,0,5,(
0b00000,
0b00000,
0b01100,
0b01100,
0b11110,
0b01100,
0b01100,
0b01100,
0b11110,
0b01100,
0b01100
)),136:(6,0,6,(
0b000000,
0b000000,
0b001000,
0b010100,
0b100010,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000
)),137:(10,0,10,(
0b0000000000,
0b0000000000,
0b0110010000,
0b1010010000,
0b1010100000,
0b1101011110,
0b0010101010,
0b0100101010,
0b0100111100,
0b0000000000,
0b0000000000
)),138:(6,0,6,(
0b010100,
0b001000,
0b000000,
0b011100,
0b110010,
0b011000,
0b001100,
0b100110,
0b011100,
0b000000,
0b000000
)),139:(5,0,5,(
0b00000,
0b00000,
0b00000,
0b00000,
0b00110,
0b01100,
0b11000,
0b01100,
0b00110,
0b00000,
0b00000
)),140:(7,0,7,(
0b0000000,
0b0000000,
0b0111110,
0b1001000,
0b1001000,
0b1001110,
0b1001000,
0b1001000,
0b0111110,
0b0000000,
0b0000000
)),141:(10,0,10,(
0b0000000000,
0b0000100000,
0b0001110000,
0b0011011000,
0b0110001100,
0b1100000110,
0b0110001100,
0b0011011000,
0b0001110000,
0b0000100000,
0b0000000000
)),142:(10,0,10,(
0b0000000000,
0b0001110000,
0b0011111000,
0b0101110100,
0b1111111110,
0b1111111110,
0b1111111110,
0b0110101100,
0b0001110000,
0b0011111000,
0b0000000000
)),143:(10,0,10,(
0b0000000000,
0b0110001100,
0b1111011110,
0b1001110010,
0b1000100010,
0b1100000110,
0b0110001100,
0b0011011000,
0b0001110000,
0b0000100000,
0b0000000000
)),144:(10,0,10,(
0b0000000000,
0b0000100000,
0b0001110000,
0b0011111000,
0b0111111100,
0b1111111110,
0b1111111110,
0b0110101100,
0b0001110000,
0b0011111000,
0b0000000000
)),145:(3,0,3,(
0b000,
0b010,
0b100,
0b110,
0b000,
0b000,
0b000,
0b000,
0b000,
0b000,
0b000
)),146:(3,0,3,(
0b000,
0b110,
0b010,
0b100,
0b000,
0b000,
0b000,
0b000,
0b000,
0b000,
0b000
)),147:(5,0,5,(
0b00000,
0b01010,
0b10100,
0b11110,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000
)),148:(5,0,5,(
0b00000,
0b11110,
0b01010,
0b10100,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000
)),149:(4,0,4,(
0b0000,
0b0000,
0b0000,
0b0000,
0b1110,
0b1110,
0b1110,
0b0000,
0b0000,
0b0000,
0b0000
)),150:(4,0,4,(
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b1111,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000
)),151:(7,0,7,(
0b0000000,
0b0000000,
0b0000000,
0b0000000,
0b0000000,
0b1111111,
0b0000000,
0b0000000,
0b0000000,
0b0000000,
0b0000000
)),152:(7,0,7,(
0b0000000,
0b0000000,
0b0000000,
0b0000000,
0b0010000,
0b0111010,
0b1001100,
0b0000000,
0b0000000,
0b0000000,
0b0000000
)),153:(10,0,10,(
0b0000000000,
0b0000000000,
0b1110100010,
0b0100110110,
0b0100101010,
0b0000000000,
0b0000000000,
0b0000000000,
0b0000000000,
0b0000000000,
0b0000000000
)),154:(4,0,4,(
0b0000,
0b1010,
0b0100,
0b0000,
0b0110,
0b1000,
0b0100,
0b0010,
0b1100,
0b0000,
0b0000
)),155:(5,0,5,(
0b00000,
0b00000,
0b00000,
0b00000,
0b11000,
0b01100,
0b00110,
0b01100,
0b11000,
0b00000,
0b00000
)),156:(8,0,8,(
0b00000000,
0b00000000,
0b00000000,
0b00000000,
0b01101100,
0b10010010,
0b10010100,
0b10011000,
0b01101110,
0b00000000,
0b00000000
)),157:(8,0,8,(
0b00000000,
0b00000000,
0b00000110,
0b00001100,
0b00011000,
0b00110000,
0b11100000,
0b11100000,
0b11100000,
0b00000000,
0b00000000
)),158:(8,0,8,(
0b00000000,
0b00000000,
0b00111000,
0b01101100,
0b01101100,
0b01101100,
0b00111000,
0b11101100,
0b11000110,
0b00000000,
0b00000000
)),159:(7,0,7,(
0b0000000,
0b0010100,
0b0000000,
0b1100110,
0b1100110,
0b0111100,
0b0011000,
0b0011000,
0b0011000,
0b0000000,
0b0000000
)),160:(2,0,2,(
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00
)),161:(3,0,3,(
0b000,
0b000,
0b000,
0b000,
0b110,
0b000,
0b110,
0b110,
0b110,
0b110,
0b110
)),162:(6,0,6,(
0b000000,
0b001000,
0b011100,
0b101010,
0b101000,
0b101000,
0b101010,
0b011100,
0b001000,
0b000000,
0b000000
)),163:(6,0,6,(
0b000000,
0b000000,
0b001100,
0b011010,
0b011000,
0b111100,
0b011000,
0b011000,
0b111000,
0b001110,
0b000000
)),164:(8,0,8,(
0b00000000,
0b00000000,
0b10010010,
0b01111100,
0b01101100,
0b11000110,
0b01101100,
0b01111100,
0b10010010,
0b00000000,
0b00000000
)),165:(6,0,6,(
0b000000,
0b000000,
0b100010,
0b010100,
0b111110,
0b001000,
0b111110,
0b001000,
0b001000,
0b000000,
0b000000
)),166:(2,0,2,(
0b00,
0b00,
0b10,
0b10,
0b10,
0b10,
0b00,
0b10,
0b10,
0b10,
0b10
)),167:(5,0,5,(
0b00000,
0b01100,
0b10010,
0b01000,
0b10100,
0b10010,
0b01010,
0b00100,
0b10010,
0b01100,
0b00000
)),168:(4,0,4,(
0b0000,
0b0000,
0b0000,
0b1010,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000
)),169:(8,0,8,(
0b00000000,
0b00000000,
0b01111100,
0b11000110,
0b10111010,
0b10100010,
0b10111010,
0b11000110,
0b01111100,
0b00000000,
0b00000000
)),170:(5,0,5,(
0b00000,
0b00000,
0b01110,
0b10010,
0b01110,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000
)),171:(8,0,8,(
0b00000000,
0b00000000,
0b00000000,
0b00000000,
0b00110110,
0b01101100,
0b11011000,
0b01101100,
0b00110110,
0b00000000,
0b00000000
)),172:(6,0,6,(
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b111110,
0b000010,
0b000010,
0b000000,
0b000000,
0b000000
)),173:(4,0,4,(
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b1110,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000
)),174:(8,0,8,(
0b00000000,
0b00000000,
0b01111100,
0b11000110,
0b10111010,
0b10110010,
0b10101010,
0b11000110,
0b01111100,
0b00000000,
0b00000000
)),175:(6,0,6,(
0b000000,
0b111110,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000
)),176:(4,0,4,(
0b0000,
0b0110,
0b1010,
0b1010,
0b1100,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000
)),177:(6,0,6,(
0b000000,
0b000000,
0b001000,
0b001000,
0b111110,
0b001000,
0b001000,
0b111110,
0b000000,
0b000000,
0b000000
)),178:(4,0,4,(
0b0000,
0b0000,
0b1110,
0b0010,
0b0110,
0b1000,
0b1110,
0b0000,
0b0000,
0b0000,
0b0000
)),179:(4,0,4,(
0b0000,
0b0000,
0b1110,
0b0010,
0b0110,
0b0010,
0b1110,
0b0000,
0b0000,
0b0000,
0b0000
)),180:(3,0,3,(
0b000,
0b010,
0b100,
0b000,
0b000,
0b000,
0b000,
0b000,
0b000,
0b000,
0b000
)),181:(6,0,6,(
0b000000,
0b000000,
0b000000,
0b000000,
0b110110,
0b110110,
0b110110,
0b110110,
0b111100,
0b110000,
0b110000
)),182:(7,0,7,(
0b0000000,
0b0000000,
0b0111110,
0b1110110,
0b1110110,
0b0110110,
0b0010110,
0b0010110,
0b0010110,
0b0000000,
0b0000000
)),183:(2,0,2,(
0b00,
0b00,
0b00,
0b00,
0b00,
0b10,
0b00,
0b00,
0b00,
0b00,
0b00
)),184:(4,0,4,(
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0100,
0b0010,
0b1100
)),185:(2,0,2,(
0b00,
0b00,
0b10,
0b10,
0b10,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00
)),186:(5,0,5,(
0b00000,
0b00000,
0b01100,
0b10010,
0b01100,
0b00000,
0b11110,
0b00000,
0b00000,
0b00000,
0b00000
)),187:(8,0,8,(
0b00000000,
0b00000000,
0b00000000,
0b11011000,
0b01101100,
0b00110110,
0b01101100,
0b11011000,
0b00000000,
0b00000000,
0b00000000
)),188:(8,0,8,(
0b00000000,
0b11000000,
0b11000110,
0b11001100,
0b11011000,
0b00110100,
0b01101100,
0b11011110,
0b00000100,
0b00000000,
0b00000000
)),189:(8,0,8,(
0b00000000,
0b11000000,
0b11000110,
0b11001100,
0b11011000,
0b00111100,
0b01100010,
0b11000100,
0b00001110,
0b00000000,
0b00000000
)),190:(8,0,8,(
0b00000000,
0b11100000,
0b01000011,
0b00100110,
0b11101100,
0b00011010,
0b00110110,
0b01101111,
0b00000010,
0b00000000,
0b00000000
)),191:(6,0,6,(
0b000000,
0b000000,
0b001100,
0b000000,
0b001100,
0b011000,
0b110000,
0b110010,
0b011100,
0b000000,
0b000000
)),192:(7,0,7,(
0b0010000,
0b0001000,
0b0000000,
0b0011110,
0b0110110,
0b0110110,
0b0111110,
0b1110110,
0b0110110,
0b0000000,
0b0000000
)),193:(7,0,7,(
0b0000100,
0b0001000,
0b0000000,
0b0011110,
0b0110110,
0b0110110,
0b0111110,
0b1110110,
0b0110110,
0b0000000,
0b0000000
)),194:(7,0,7,(
0b0001000,
0b0010100,
0b0000000,
0b0011110,
0b0110110,
0b0110110,
0b0111110,
0b1110110,
0b0110110,
0b0000000,
0b0000000
)),195:(7,0,7,(
0b0010100,
0b0101000,
0b0000000,
0b0011110,
0b0110110,
0b0110110,
0b0111110,
0b1110110,
0b0110110,
0b0000000,
0b0000000
)),196:(7,0,7,(
0b0000000,
0b0010100,
0b0000000,
0b0011110,
0b0110110,
0b0110110,
0b0111110,
0b1110110,
0b0110110,
0b0000000,
0b0000000
)),197:(7,0,7,(
0b0001000,
0b0010100,
0b0001000,
0b0011110,
0b0110110,
0b0110110,
0b0111110,
0b1110110,
0b0110110,
0b0000000,
0b0000000
)),198:(8,0,8,(
0b00000000,
0b00000000,
0b00111110,
0b01101100,
0b01101100,
0b01111110,
0b11101100,
0b01101100,
0b01101110,
0b00000000,
0b00000000
)),199:(5,0,5,(
0b00000,
0b00000,
0b00110,
0b01110,
0b11000,
0b10000,
0b10000,
0b11010,
0b01110,
0b00100,
0b01000
)),200:(5,0,5,(
0b01000,
0b00100,
0b00000,
0b01110,
0b11000,
0b11110,
0b11000,
0b11000,
0b11110,
0b00000,
0b00000
)),201:(5,0,5,(
0b00010,
0b00100,
0b00000,
0b01110,
0b11000,
0b11110,
0b11000,
0b11000,
0b11110,
0b00000,
0b00000
)),202:(5,0,5,(
0b00100,
0b01010,
0b00000,
0b01110,
0b11000,
0b11110,
0b11000,
0b11000,
0b11110,
0b00000,
0b00000
)),203:(5,0,5,(
0b00000,
0b01010,
0b00000,
0b01110,
0b11000,
0b11110,
0b11000,
0b11000,
0b11110,
0b00000,
0b00000
)),204:(4,0,4,(
0b0100,
0b0010,
0b0000,
0b0110,
0b0110,
0b0110,
0b0110,
0b0110,
0b0110,
0b0000,
0b0000
)),205:(3,0,3,(
0b010,
0b100,
0b000,
0b110,
0b110,
0b110,
0b110,
0b110,
0b110,
0b000,
0b000
)),206:(4,0,4,(
0b0100,
0b1010,
0b0000,
0b1100,
0b1100,
0b1100,
0b1100,
0b1100,
0b1100,
0b0000,
0b0000
)),207:(3,0,3,(
0b101,
0b000,
0b000,
0b110,
0b110,
0b110,
0b110,
0b110,
0b110,
0b000,
0b000
)),208:(7,0,7,(
0b0000000,
0b0000000,
0b0111100,
0b0110010,
0b0110010,
0b1111010,
0b0110010,
0b0110010,
0b0111100,
0b0000000,
0b0000000
)),209:(6,0,6,(
0b001010,
0b010100,
0b000000,
0b100010,
0b110010,
0b111010,
0b101110,
0b100110,
0b100010,
0b000000,
0b000000
)),210:(6,0,6,(
0b001000,
0b000100,
0b000000,
0b001100,
0b010110,
0b110110,
0b110110,
0b110110,
0b011100,
0b000000,
0b000000
)),211:(6,0,6,(
0b000100,
0b001000,
0b000000,
0b001100,
0b010110,
0b110110,
0b110110,
0b110110,
0b011100,
0b000000,
0b000000
)),212:(6,0,6,(
0b001000,
0b010100,
0b000000,
0b001100,
0b010110,
0b110110,
0b110110,
0b110110,
0b011100,
0b000000,
0b000000
)),213:(6,0,6,(
0b001010,
0b010100,
0b000000,
0b001100,
0b010110,
0b110110,
0b110110,
0b110110,
0b011100,
0b000000,
0b000000
)),214:(6,0,6,(
0b000000,
0b010100,
0b000000,
0b001100,
0b010110,
0b110110,
0b110110,
0b110110,
0b011100,
0b000000,
0b000000
)),215:(5,0,5,(
0b00000,
0b00000,
0b00000,
0b00000,
0b10010,
0b01100,
0b01100,
0b10010,
0b00000,
0b00000,
0b00000
)),216:(8,0,8,(
0b00000000,
0b00000000,
0b00111010,
0b01111100,
0b11001110,
0b11010110,
0b11100110,
0b01111100,
0b10111000,
0b00000000,
0b00000000
)),217:(6,0,6,(
0b010000,
0b001000,
0b000000,
0b110110,
0b110110,
0b110110,
0b110110,
0b110110,
0b011100,
0b000000,
0b000000
)),218:(6,0,6,(
0b000100,
0b001000,
0b000000,
0b110110,
0b110110,
0b110110,
0b110110,
0b110110,
0b011100,
0b000000,
0b000000
)),219:(6,0,6,(
0b001000,
0b010100,
0b000000,
0b110110,
0b110110,
0b110110,
0b110110,
0b110110,
0b011100,
0b000000,
0b000000
)),220:(6,0,6,(
0b000000,
0b010100,
0b000000,
0b110110,
0b110110,
0b110110,
0b110110,
0b110110,
0b011100,
0b000000,
0b000000
)),221:(7,0,7,(
0b0001000,
0b0010000,
0b0000000,
0b1100110,
0b1100110,
0b0111100,
0b0011000,
0b0011000,
0b0011000,
0b0000000,
0b0000000
)),222:(6,0,6,(
0b000000,
0b000000,
0b110000,
0b111100,
0b110010,
0b110010,
0b110010,
0b111100,
0b110000,
0b000000,
0b000000
)),223:(6,0,6,(
0b000000,
0b000000,
0b011000,
0b110100,
0b110100,
0b111100,
0b110010,
0b110010,
0b110010,
0b000100,
0b000000
)),224:(6,0,6,(
0b000000,
0b001000,
0b000100,
0b000000,
0b011100,
0b000110,
0b011110,
0b100110,
0b111110,
0b000000,
0b000000
)),225:(6,0,6,(
0b000000,
0b000100,
0b001000,
0b000000,
0b011100,
0b000110,
0b011110,
0b100110,
0b111110,
0b000000,
0b000000
)),226:(6,0,6,(
0b000000,
0b001000,
0b010100,
0b000000,
0b011100,
0b000110,
0b011110,
0b100110,
0b111110,
0b000000,
0b000000
)),227:(6,0,6,(
0b000000,
0b001010,
0b010100,
0b000000,
0b011100,
0b000110,
0b011110,
0b100110,
0b111110,
0b000000,
0b000000
)),228:(6,0,6,(
0b000000,
0b000000,
0b010100,
0b000000,
0b011100,
0b000110,
0b011110,
0b100110,
0b111110,
0b000000,
0b000000
)),229:(6,0,6,(
0b001000,
0b010100,
0b001000,
0b000000,
0b011100,
0b000110,
0b011110,
0b100110,
0b111110,
0b000000,
0b000000
)),230:(8,0,8,(
0b00000000,
0b00000000,
0b00000000,
0b00000000,
0b11101100,
0b00010010,
0b11111100,
0b10010000,
0b01111110,
0b00000000,
0b00000000
)),231:(5,0,5,(
0b00000,
0b00000,
0b00000,
0b00000,
0b01110,
0b11000,
0b11000,
0b11000,
0b01110,
0b00100,
0b01000
)),232:(6,0,6,(
0b000000,
0b001000,
0b000100,
0b000000,
0b011100,
0b110010,
0b110100,
0b111000,
0b011110,
0b000000,
0b000000
)),233:(6,0,6,(
0b000000,
0b000100,
0b001000,
0b000000,
0b011100,
0b110010,
0b110100,
0b111000,
0b011110,
0b000000,
0b000000
)),234:(6,0,6,(
0b000000,
0b001000,
0b010100,
0b000000,
0b011100,
0b110010,
0b110100,
0b111000,
0b011110,
0b000000,
0b000000
)),235:(6,0,6,(
0b000000,
0b000000,
0b010100,
0b000000,
0b011100,
0b110010,
0b110100,
0b111000,
0b011110,
0b000000,
0b000000
)),236:(3,0,3,(
0b000,
0b100,
0b010,
0b000,
0b110,
0b110,
0b110,
0b110,
0b110,
0b000,
0b000
)),237:(3,0,3,(
0b000,
0b010,
0b100,
0b000,
0b110,
0b110,
0b110,
0b110,
0b110,
0b000,
0b000
)),238:(4,0,4,(
0b0000,
0b0100,
0b1010,
0b0000,
0b0110,
0b0110,
0b0110,
0b0110,
0b0110,
0b0000,
0b0000
)),239:(4,0,4,(
0b0000,
0b1010,
0b0000,
0b0000,
0b0110,
0b0110,
0b0110,
0b0110,
0b0110,
0b0000,
0b0000
)),240:(6,0,6,(
0b000000,
0b000000,
0b110000,
0b110000,
0b001000,
0b011100,
0b110110,
0b110110,
0b011100,
0b000000,
0b000000
)),241:(6,0,6,(
0b000000,
0b010100,
0b101000,
0b000000,
0b111100,
0b110110,
0b110110,
0b110110,
0b110110,
0b000000,
0b000000
)),242:(6,0,6,(
0b000000,
0b010000,
0b001000,
0b000000,
0b011100,
0b110110,
0b110110,
0b110110,
0b011100,
0b000000,
0b000000
)),243:(6,0,6,(
0b000000,
0b000100,
0b001000,
0b000000,
0b011100,
0b110110,
0b110110,
0b110110,
0b011100,
0b000000,
0b000000
)),244:(6,0,6,(
0b000000,
0b001000,
0b010100,
0b000000,
0b011100,
0b110110,
0b110110,
0b110110,
0b011100,
0b000000,
0b000000
)),245:(6,0,6,(
0b000000,
0b001010,
0b010100,
0b000000,
0b011100,
0b110110,
0b110110,
0b110110,
0b011100,
0b000000,
0b000000
)),246:(6,0,6,(
0b000000,
0b000000,
0b010100,
0b000000,
0b011100,
0b110110,
0b110110,
0b110110,
0b011100,
0b000000,
0b000000
)),247:(6,0,6,(
0b000000,
0b000000,
0b000000,
0b001000,
0b000000,
0b111110,
0b000000,
0b001000,
0b000000,
0b000000,
0b000000
)),248:(7,0,7,(
0b0000000,
0b0000000,
0b0000000,
0b0000000,
0b0011010,
0b0101100,
0b0110100,
0b0100100,
0b1011000,
0b0000000,
0b0000000
)),249:(6,0,6,(
0b000000,
0b010000,
0b001000,
0b000000,
0b110110,
0b110110,
0b110110,
0b110110,
0b011110,
0b000000,
0b000000
)),250:(6,0,6,(
0b000000,
0b000100,
0b001000,
0b000000,
0b110110,
0b110110,
0b110110,
0b110110,
0b011110,
0b000000,
0b000000
)),251:(6,0,6,(
0b000000,
0b001000,
0b010100,
0b000000,
0b110110,
0b110110,
0b110110,
0b110110,
0b011110,
0b000000,
0b000000
)),252:(6,0,6,(
0b000000,
0b000000,
0b010100,
0b000000,
0b110110,
0b110110,
0b110110,
0b110110,
0b011110,
0b000000,
0b000000
)),253:(6,0,6,(
0b000000,
0b000100,
0b001000,
0b000000,
0b110110,
0b110110,
0b110110,
0b011100,
0b001100,
0b011000,
0b110000
)),254:(5,0,5,(
0b00000,
0b00000,
0b11000,
0b11000,
0b11100,
0b11010,
0b11010,
0b11010,
0b11100,
0b11000,
0b11000
)),255:(6,0,6,(
0b000000,
0b000000,
0b010100,
0b000000,
0b110110,
0b110110,
0b110110,
0b011100,
0b001100,
0b011000,
0b110000
)),}
# generated by fontconv
#fontType 36864
#firstChar 9
#lastChar 255
#maxWidth 17
#kernMax 0
#nDescent 0
#fRectWidth 17
#fRectHeight 11
#ascent 9
#descent 2
#leading 0
#averageWidth 6.16
FONTS['palmboldeu'] = {
9:(2,0,2,(
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00
)),20:(11,0,11,(
0b01111000000,
0b11111100000,
0b10000100100,
0b11111101000,
0b01111010000,
0b00110000000,
0b00110011010,
0b00110000000,
0b01110010000,
0b01110001000,
0b00110000100
)),21:(5,0,5,(
0b00000,
0b00100,
0b01000,
0b10000,
0b00000,
0b11010,
0b00000,
0b10000,
0b01000,
0b00100,
0b00000
)),22:(10,0,10,(
0b0000000000,
0b0000000000,
0b0000000110,
0b0000001100,
0b0000011000,
0b0000110000,
0b0001100000,
0b1111000000,
0b1110000000,
0b1110000000,
0b0000000000
)),23:(8,0,8,(
0b00000000,
0b00000000,
0b00111000,
0b01101100,
0b01101100,
0b01101100,
0b01101100,
0b00111000,
0b11101100,
0b11000110,
0b00000000
)),24:(6,0,6,(
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b101010,
0b000000,
0b000000
)),25:(6,0,6,(
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000
)),32:(2,0,2,(
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00
)),33:(3,0,3,(
0b000,
0b000,
0b110,
0b110,
0b110,
0b110,
0b110,
0b000,
0b110,
0b000,
0b000
)),34:(6,0,6,(
0b000000,
0b110110,
0b110110,
0b010010,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000
)),35:(10,0,10,(
0b0000000000,
0b0000000000,
0b0001101100,
0b0001101100,
0b0111111110,
0b0011011000,
0b1111111100,
0b0110110000,
0b0110110000,
0b0000000000,
0b0000000000
)),36:(6,0,6,(
0b000000,
0b001000,
0b011110,
0b101000,
0b111000,
0b011100,
0b001110,
0b001010,
0b111100,
0b001000,
0b000000
)),37:(13,0,13,(
0b0000000000000,
0b0000000000000,
0b0111000011000,
0b1101100110000,
0b1101101100000,
0b0111011011100,
0b0000110110110,
0b0001100110110,
0b0011000011100,
0b0000000000000,
0b0000000000000
)),38:(9,0,9,(
0b000000000,
0b000000000,
0b001110000,
0b011011000,
0b001110000,
0b011110110,
0b110011100,
0b110011100,
0b011110110,
0b000000000,
0b000000000
)),39:(3,0,3,(
0b000,
0b110,
0b110,
0b010,
0b000,
0b000,
0b000,
0b000,
0b000,
0b000,
0b000
)),40:(5,0,5,(
0b00000,
0b00110,
0b01100,
0b01000,
0b11000,
0b11000,
0b11000,
0b01000,
0b01100,
0b00110,
0b00000
)),41:(5,0,5,(
0b00000,
0b11000,
0b01100,
0b00100,
0b00110,
0b00110,
0b00110,
0b00100,
0b01100,
0b11000,
0b00000
)),42:(6,0,6,(
0b000000,
0b010100,
0b001000,
0b111110,
0b001000,
0b010100,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000
)),43:(6,0,6,(
0b000000,
0b000000,
0b000000,
0b001000,
0b001000,
0b111110,
0b001000,
0b001000,
0b000000,
0b000000,
0b000000
)),44:(3,0,3,(
0b000,
0b000,
0b000,
0b000,
0b000,
0b000,
0b000,
0b000,
0b110,
0b010,
0b100
)),45:(5,0,5,(
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b11110,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000
)),46:(3,0,3,(
0b000,
0b000,
0b000,
0b000,
0b000,
0b000,
0b000,
0b000,
0b110,
0b000,
0b000
)),47:(6,0,6,(
0b000000,
0b000000,
0b000110,
0b000110,
0b001100,
0b011000,
0b011000,
0b110000,
0b110000,
0b000000,
0b000000
)),48:(6,0,6,(
0b000000,
0b000000,
0b011100,
0b110110,
0b110110,
0b110110,
0b110110,
0b110110,
0b011100,
0b000000,
0b000000
)),49:(6,0,6,(
0b000000,
0b000000,
0b001100,
0b011100,
0b001100,
0b001100,
0b001100,
0b001100,
0b001100,
0b000000,
0b000000
)),50:(6,0,6,(
0b000000,
0b000000,
0b011100,
0b110110,
0b000110,
0b001100,
0b011000,
0b110000,
0b111110,
0b000000,
0b000000
)),51:(6,0,6,(
0b000000,
0b000000,
0b011100,
0b110110,
0b000110,
0b001100,
0b000110,
0b110110,
0b011100,
0b000000,
0b000000
)),52:(6,0,6,(
0b000000,
0b000000,
0b000110,
0b001110,
0b011110,
0b110110,
0b111110,
0b000110,
0b000110,
0b000000,
0b000000
)),53:(6,0,6,(
0b000000,
0b000000,
0b111110,
0b110000,
0b110000,
0b111100,
0b000110,
0b000110,
0b111100,
0b000000,
0b000000
)),54:(6,0,6,(
0b000000,
0b000000,
0b001100,
0b011000,
0b110000,
0b111100,
0b110110,
0b110110,
0b011100,
0b000000,
0b000000
)),55:(6,0,6,(
0b000000,
0b000000,
0b111110,
0b000110,
0b001100,
0b001100,
0b011000,
0b011000,
0b011000,
0b000000,
0b000000
)),56:(6,0,6,(
0b000000,
0b000000,
0b011100,
0b110110,
0b110110,
0b011100,
0b110110,
0b110110,
0b011100,
0b000000,
0b000000
)),57:(6,0,6,(
0b000000,
0b000000,
0b011100,
0b110110,
0b110110,
0b011110,
0b000110,
0b001100,
0b011000,
0b000000,
0b000000
)),58:(3,0,3,(
0b000,
0b000,
0b000,
0b000,
0b110,
0b000,
0b000,
0b000,
0b110,
0b000,
0b000
)),59:(3,0,3,(
0b000,
0b000,
0b000,
0b000,
0b110,
0b000,
0b000,
0b000,
0b110,
0b010,
0b100
)),60:(6,0,6,(
0b000000,
0b000000,
0b000000,
0b000010,
0b001100,
0b111000,
0b001100,
0b000010,
0b000000,
0b000000,
0b000000
)),61:(6,0,6,(
0b000000,
0b000000,
0b000000,
0b000000,
0b111110,
0b000000,
0b111110,
0b000000,
0b000000,
0b000000,
0b000000
)),62:(6,0,6,(
0b000000,
0b000000,
0b000000,
0b100000,
0b011000,
0b000110,
0b011000,
0b100000,
0b000000,
0b000000,
0b000000
)),63:(6,0,6,(
0b000000,
0b000000,
0b011110,
0b000011,
0b000110,
0b001100,
0b001100,
0b000000,
0b001100,
0b000000,
0b000000
)),64:(10,0,10,(
0b0000000000,
0b0000000000,
0b0000000000,
0b0011111000,
0b0110001100,
0b1100110110,
0b1101010110,
0b1100101100,
0b0110000000,
0b0011110000,
0b0000000000
)),65:(7,0,7,(
0b0000000,
0b0000000,
0b0111100,
0b1100110,
0b1100110,
0b1111110,
0b1100110,
0b1100110,
0b1100110,
0b0000000,
0b0000000
)),66:(7,0,7,(
0b0000000,
0b0000000,
0b1111100,
0b1100110,
0b1100110,
0b1111100,
0b1100110,
0b1100110,
0b1111100,
0b0000000,
0b0000000
)),67:(6,0,6,(
0b000000,
0b000000,
0b001110,
0b011000,
0b110000,
0b110000,
0b110000,
0b011000,
0b001110,
0b000000,
0b000000
)),68:(7,0,7,(
0b0000000,
0b0000000,
0b1111000,
0b1101100,
0b1100110,
0b1100110,
0b1100110,
0b1101100,
0b1111000,
0b0000000,
0b0000000
)),69:(5,0,5,(
0b00000,
0b00000,
0b11110,
0b11000,
0b11000,
0b11110,
0b11000,
0b11000,
0b11110,
0b00000,
0b00000
)),70:(5,0,5,(
0b00000,
0b00000,
0b11110,
0b11000,
0b11000,
0b11110,
0b11000,
0b11000,
0b11000,
0b00000,
0b00000
)),71:(8,0,8,(
0b00000000,
0b00000000,
0b00111100,
0b01100000,
0b11000000,
0b11001110,
0b11000110,
0b01100110,
0b00111100,
0b00000000,
0b00000000
)),72:(8,0,8,(
0b00000000,
0b00000000,
0b11000110,
0b11000110,
0b11000110,
0b11111110,
0b11000110,
0b11000110,
0b11000110,
0b00000000,
0b00000000
)),73:(3,0,3,(
0b000,
0b000,
0b110,
0b110,
0b110,
0b110,
0b110,
0b110,
0b110,
0b000,
0b000
)),74:(5,0,5,(
0b00000,
0b00000,
0b00110,
0b00110,
0b00110,
0b00110,
0b00110,
0b00110,
0b11100,
0b00000,
0b00000
)),75:(7,0,7,(
0b0000000,
0b0000000,
0b1100110,
0b1101100,
0b1111000,
0b1110000,
0b1111000,
0b1101100,
0b1100110,
0b0000000,
0b0000000
)),76:(6,0,6,(
0b000000,
0b000000,
0b110000,
0b110000,
0b110000,
0b110000,
0b110000,
0b110000,
0b111110,
0b000000,
0b000000
)),77:(10,0,10,(
0b0000000000,
0b0000000000,
0b1110001110,
0b1110001110,
0b1011010110,
0b1011010110,
0b1001100110,
0b1001100110,
0b1001100110,
0b0000000000,
0b0000000000
)),78:(7,0,7,(
0b0000000,
0b0000000,
0b1100010,
0b1110010,
0b1111010,
0b1011110,
0b1001110,
0b1000110,
0b1000010,
0b0000000,
0b0000000
)),79:(8,0,8,(
0b00000000,
0b00000000,
0b00111000,
0b01101100,
0b11000110,
0b11000110,
0b11000110,
0b01101100,
0b00111000,
0b00000000,
0b00000000
)),80:(7,0,7,(
0b0000000,
0b0000000,
0b1111100,
0b1100110,
0b1100110,
0b1111100,
0b1100000,
0b1100000,
0b1100000,
0b0000000,
0b0000000
)),81:(8,0,8,(
0b00000000,
0b00000000,
0b00111000,
0b01101100,
0b11000110,
0b11000110,
0b11000110,
0b01101100,
0b00111000,
0b00001110,
0b00000000
)),82:(8,0,8,(
0b00000000,
0b00000000,
0b11111000,
0b11001100,
0b11001100,
0b11111000,
0b11011000,
0b11001100,
0b11001110,
0b00000000,
0b00000000
)),83:(6,0,6,(
0b000000,
0b000000,
0b011110,
0b110000,
0b111000,
0b011100,
0b001110,
0b000110,
0b111100,
0b000000,
0b000000
)),84:(7,0,7,(
0b0000000,
0b0000000,
0b1111110,
0b0011000,
0b0011000,
0b0011000,
0b0011000,
0b0011000,
0b0011000,
0b0000000,
0b0000000
)),85:(7,0,7,(
0b0000000,
0b0000000,
0b1100010,
0b1100010,
0b1100010,
0b1100010,
0b1100010,
0b1110110,
0b0111100,
0b0000000,
0b0000000
)),86:(8,0,8,(
0b00000000,
0b00000000,
0b11000110,
0b11000110,
0b01100100,
0b01101100,
0b01101000,
0b00111000,
0b00111000,
0b00000000,
0b00000000
)),87:(11,0,11,(
0b00000000000,
0b00000000000,
0b11001100110,
0b11001100100,
0b01101101100,
0b01101101100,
0b01110111000,
0b00110011000,
0b00110011000,
0b00000000000,
0b00000000000
)),88:(7,0,7,(
0b0000000,
0b0000000,
0b1100010,
0b1110110,
0b0111100,
0b0011000,
0b0111100,
0b1101110,
0b1000110,
0b0000000,
0b0000000
)),89:(7,0,7,(
0b0000000,
0b0000000,
0b1100110,
0b1100110,
0b1111110,
0b0111100,
0b0011000,
0b0011000,
0b0011000,
0b0000000,
0b0000000
)),90:(7,0,7,(
0b0000000,
0b0000000,
0b1111110,
0b0001110,
0b0011100,
0b0111000,
0b1110000,
0b1100000,
0b1111110,
0b0000000,
0b0000000
)),91:(4,0,4,(
0b0000,
0b1110,
0b1100,
0b1100,
0b1100,
0b1100,
0b1100,
0b1100,
0b1100,
0b1110,
0b0000
)),92:(6,0,6,(
0b000000,
0b000000,
0b110000,
0b110000,
0b011000,
0b001100,
0b001100,
0b000110,
0b000110,
0b000000,
0b000000
)),93:(4,0,4,(
0b0000,
0b1110,
0b0110,
0b0110,
0b0110,
0b0110,
0b0110,
0b0110,
0b0110,
0b1110,
0b0000
)),94:(6,0,6,(
0b000000,
0b000000,
0b001000,
0b001000,
0b010100,
0b010100,
0b100010,
0b000000,
0b000000,
0b000000,
0b000000
)),95:(5,0,5,(
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b11111,
0b00000
)),96:(4,0,4,(
0b0000,
0b0000,
0b1100,
0b0010,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000
)),97:(6,0,6,(
0b000000,
0b000000,
0b000000,
0b000000,
0b011110,
0b110110,
0b110110,
0b110110,
0b011110,
0b000000,
0b000000
)),98:(6,0,6,(
0b000000,
0b000000,
0b110000,
0b110000,
0b111100,
0b110110,
0b110110,
0b110110,
0b111100,
0b000000,
0b000000
)),99:(5,0,5,(
0b00000,
0b00000,
0b00000,
0b00000,
0b01110,
0b11000,
0b11000,
0b11000,
0b01110,
0b00000,
0b00000
)),100:(6,0,6,(
0b000000,
0b000000,
0b000110,
0b000110,
0b011110,
0b110110,
0b110110,
0b110110,
0b011110,
0b000000,
0b000000
)),101:(6,0,6,(
0b000000,
0b000000,
0b000000,
0b000000,
0b011100,
0b110110,
0b111110,
0b110000,
0b011110,
0b000000,
0b000000
)),102:(5,0,5,(
0b00000,
0b00000,
0b00111,
0b01100,
0b11110,
0b01100,
0b01100,
0b01100,
0b01100,
0b00000,
0b00000
)),103:(6,0,6,(
0b000000,
0b000000,
0b000000,
0b000000,
0b011110,
0b110110,
0b110110,
0b110110,
0b011110,
0b000110,
0b011100
)),104:(6,0,6,(
0b000000,
0b000000,
0b110000,
0b110000,
0b111100,
0b110110,
0b110110,
0b110110,
0b110110,
0b000000,
0b000000
)),105:(3,0,3,(
0b000,
0b000,
0b110,
0b000,
0b110,
0b110,
0b110,
0b110,
0b110,
0b000,
0b000
)),106:(4,0,4,(
0b0000,
0b0000,
0b0110,
0b0000,
0b0110,
0b0110,
0b0110,
0b0110,
0b0110,
0b0110,
0b1100
)),107:(6,0,6,(
0b000000,
0b000000,
0b110000,
0b110000,
0b110110,
0b111100,
0b111100,
0b110110,
0b110011,
0b000000,
0b000000
)),108:(3,0,3,(
0b000,
0b000,
0b110,
0b110,
0b110,
0b110,
0b110,
0b110,
0b110,
0b000,
0b000
)),109:(9,0,9,(
0b000000000,
0b000000000,
0b000000000,
0b000000000,
0b111011100,
0b110110110,
0b110110110,
0b110110110,
0b110110110,
0b000000000,
0b000000000
)),110:(6,0,6,(
0b000000,
0b000000,
0b000000,
0b000000,
0b111100,
0b110110,
0b110110,
0b110110,
0b110110,
0b000000,
0b000000
)),111:(6,0,6,(
0b000000,
0b000000,
0b000000,
0b000000,
0b011100,
0b110110,
0b110110,
0b110110,
0b011100,
0b000000,
0b000000
)),112:(6,0,6,(
0b000000,
0b000000,
0b000000,
0b000000,
0b111100,
0b110110,
0b110110,
0b110110,
0b111100,
0b110000,
0b110000
)),113:(6,0,6,(
0b000000,
0b000000,
0b000000,
0b000000,
0b011110,
0b110110,
0b110110,
0b110110,
0b011110,
0b000110,
0b000110
)),114:(5,0,5,(
0b00000,
0b00000,
0b00000,
0b00000,
0b11010,
0b11110,
0b11000,
0b11000,
0b11000,
0b00000,
0b00000
)),115:(5,0,5,(
0b00000,
0b00000,
0b00000,
0b00000,
0b01110,
0b11000,
0b11110,
0b00110,
0b11100,
0b00000,
0b00000
)),116:(6,0,6,(
0b000000,
0b000000,
0b000000,
0b011000,
0b111110,
0b011000,
0b011000,
0b011000,
0b001110,
0b000000,
0b000000
)),117:(6,0,6,(
0b000000,
0b000000,
0b000000,
0b000000,
0b110110,
0b110110,
0b110110,
0b110110,
0b011110,
0b000000,
0b000000
)),118:(6,0,6,(
0b000000,
0b000000,
0b000000,
0b000000,
0b110110,
0b110110,
0b110110,
0b011100,
0b011100,
0b000000,
0b000000
)),119:(9,0,9,(
0b000000000,
0b000000000,
0b000000000,
0b000000000,
0b110110110,
0b110110110,
0b110110110,
0b111111110,
0b011001100,
0b000000000,
0b000000000
)),120:(6,0,6,(
0b000000,
0b000000,
0b000000,
0b000000,
0b110110,
0b110110,
0b011100,
0b110110,
0b110110,
0b000000,
0b000000
)),121:(6,0,6,(
0b000000,
0b000000,
0b000000,
0b000000,
0b110110,
0b110110,
0b110110,
0b011100,
0b001100,
0b011000,
0b110000
)),122:(5,0,5,(
0b00000,
0b00000,
0b00000,
0b00000,
0b11110,
0b00110,
0b01100,
0b11000,
0b11110,
0b00000,
0b00000
)),123:(5,0,5,(
0b00000,
0b00110,
0b01100,
0b01100,
0b01100,
0b11000,
0b01100,
0b01100,
0b01100,
0b00110,
0b00000
)),124:(3,0,3,(
0b000,
0b000,
0b110,
0b110,
0b110,
0b110,
0b110,
0b110,
0b110,
0b110,
0b110
)),125:(5,0,5,(
0b00000,
0b11000,
0b01100,
0b01100,
0b01100,
0b00110,
0b01100,
0b01100,
0b01100,
0b11000,
0b00000
)),126:(7,0,7,(
0b0000000,
0b0000000,
0b0000000,
0b0000000,
0b0110010,
0b1011010,
0b1001100,
0b0000000,
0b0000000,
0b0000000,
0b0000000
)),128:(9,0,9,(
0b000000000,
0b000000000,
0b000111100,
0b001100010,
0b111111000,
0b011000000,
0b111110000,
0b001100010,
0b000111100,
0b000000000,
0b000000000
)),130:(3,0,3,(
0b000,
0b000,
0b000,
0b000,
0b000,
0b000,
0b000,
0b000,
0b110,
0b010,
0b100
)),131:(9,0,9,(
0b000000000,
0b000000000,
0b000001110,
0b000011000,
0b001111100,
0b000110000,
0b000110000,
0b001100000,
0b001100000,
0b111000000,
0b000000000
)),132:(5,0,5,(
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b11110,
0b01010,
0b10100
)),133:(6,0,6,(
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b101010,
0b000000,
0b000000
)),134:(5,0,5,(
0b00000,
0b00000,
0b01100,
0b01100,
0b11110,
0b01100,
0b01100,
0b01100,
0b01100,
0b01100,
0b01100
)),135:(5,0,5,(
0b00000,
0b00000,
0b01100,
0b01100,
0b11110,
0b01100,
0b01100,
0b01100,
0b11110,
0b01100,
0b01100
)),136:(4,0,4,(
0b0000,
0b0000,
0b0100,
0b1010,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000
)),137:(17,0,17,(
0b00000000000000000,
0b00000000000000000,
0b01110000100000000,
0b11011001100000000,
0b11011011000000000,
0b01110110111011100,
0b00001101101110110,
0b00011001101110110,
0b00110000111011100,
0b00000000000000000,
0b00000000000000000
)),138:(6,0,6,(
0b010100,
0b001000,
0b000000,
0b011110,
0b111000,
0b011100,
0b001110,
0b000110,
0b111100,
0b000000,
0b000000
)),139:(5,0,5,(
0b00000,
0b00000,
0b00000,
0b00110,
0b01100,
0b11000,
0b01100,
0b00110,
0b00000,
0b00000,
0b00000
)),140:(10,0,10,(
0b0000000000,
0b0000000000,
0b0011111110,
0b0110011000,
0b1100011000,
0b1100011110,
0b1100011000,
0b0110011000,
0b0011111110,
0b0000000000,
0b0000000000
)),141:(10,0,10,(
0b0000000000,
0b0000100000,
0b0001010000,
0b0010001000,
0b0100000100,
0b1000000010,
0b0100000100,
0b0010001000,
0b0001010000,
0b0000100000,
0b0000000000
)),142:(10,0,10,(
0b0001110000,
0b0011111000,
0b0011111000,
0b0101110100,
0b1111111110,
0b1111111110,
0b1111111110,
0b0110101100,
0b0001110000,
0b0011111000,
0b0000000000
)),143:(10,0,10,(
0b0000000000,
0b0111011100,
0b1001110010,
0b1000100010,
0b1000000010,
0b1000000010,
0b0100000100,
0b0010001000,
0b0001010000,
0b0000100000,
0b0000000000
)),144:(10,0,10,(
0b0000100000,
0b0001110000,
0b0011111000,
0b0111111100,
0b1111111110,
0b1111111110,
0b1111111110,
0b0110101100,
0b0001110000,
0b0011111000,
0b0000000000
)),145:(3,0,3,(
0b000,
0b010,
0b100,
0b110,
0b000,
0b000,
0b000,
0b000,
0b000,
0b000,
0b000
)),146:(3,0,3,(
0b000,
0b110,
0b010,
0b100,
0b000,
0b000,
0b000,
0b000,
0b000,
0b000,
0b000
)),147:(5,0,5,(
0b00000,
0b01010,
0b10100,
0b11110,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000
)),148:(5,0,5,(
0b00000,
0b11110,
0b01010,
0b10100,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000
)),149:(4,0,4,(
0b0000,
0b0000,
0b0000,
0b0000,
0b1110,
0b1110,
0b1110,
0b0000,
0b0000,
0b0000,
0b0000
)),150:(4,0,4,(
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b1111,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000
)),151:(6,0,6,(
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b111111,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000
)),152:(7,0,7,(
0b0000000,
0b0000000,
0b0000000,
0b0110010,
0b1011010,
0b1001100,
0b0000000,
0b0000000,
0b0000000,
0b0000000,
0b0000000
)),153:(10,0,10,(
0b0000000000,
0b0000000000,
0b1110100010,
0b0100110110,
0b0100101010,
0b0000000000,
0b0000000000,
0b0000000000,
0b0000000000,
0b0000000000,
0b0000000000
)),154:(5,0,5,(
0b00000,
0b01010,
0b00100,
0b00000,
0b01110,
0b11000,
0b11110,
0b00110,
0b11100,
0b00000,
0b00000
)),155:(5,0,5,(
0b00000,
0b00000,
0b00000,
0b11000,
0b01100,
0b00110,
0b01100,
0b11000,
0b00000,
0b00000,
0b00000
)),156:(10,0,10,(
0b0000000000,
0b0000000000,
0b0000000000,
0b0000000000,
0b0111011100,
0b1101110110,
0b1101111110,
0b1101110000,
0b0111011110,
0b0000000000,
0b0000000000
)),157:(10,0,10,(
0b0000000000,
0b0000000000,
0b0000000110,
0b0000001100,
0b0000011000,
0b0000110000,
0b0001100000,
0b1111000000,
0b1110000000,
0b1110000000,
0b0000000000
)),158:(8,0,8,(
0b00000000,
0b00000000,
0b00111000,
0b01101100,
0b01101100,
0b01101100,
0b01101100,
0b00111000,
0b11101100,
0b11000110,
0b00000000
)),159:(7,0,7,(
0b0000000,
0b0100100,
0b0000000,
0b1100110,
0b1100110,
0b0111100,
0b0011000,
0b0011000,
0b0011000,
0b0000000,
0b0000000
)),160:(2,0,2,(
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00
)),161:(3,0,3,(
0b000,
0b000,
0b000,
0b000,
0b110,
0b000,
0b110,
0b110,
0b110,
0b110,
0b110
)),162:(6,0,6,(
0b000000,
0b000000,
0b000000,
0b000100,
0b011110,
0b110100,
0b110100,
0b110100,
0b011110,
0b000100,
0b000000
)),163:(7,0,7,(
0b0000000,
0b0000000,
0b0011100,
0b0110000,
0b0110000,
0b1111100,
0b0110000,
0b0110000,
0b1111110,
0b0000000,
0b0000000
)),164:(8,0,8,(
0b00000000,
0b00000000,
0b10111010,
0b01111100,
0b11000110,
0b11000110,
0b11000110,
0b01111100,
0b10111010,
0b00000000,
0b00000000
)),165:(7,0,7,(
0b0000000,
0b0000000,
0b1100010,
0b0110100,
0b1111110,
0b0011000,
0b1111110,
0b0011000,
0b0011000,
0b0000000,
0b0000000
)),166:(3,0,3,(
0b000,
0b000,
0b110,
0b110,
0b110,
0b110,
0b000,
0b110,
0b110,
0b110,
0b110
)),167:(6,0,6,(
0b000000,
0b011100,
0b110110,
0b011000,
0b111100,
0b110110,
0b011110,
0b001100,
0b110110,
0b011100,
0b000000
)),168:(4,0,4,(
0b0000,
0b0000,
0b0000,
0b1010,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000
)),169:(8,0,8,(
0b00000000,
0b00000000,
0b00000000,
0b00111000,
0b01000100,
0b10111010,
0b10100010,
0b10111010,
0b01000100,
0b00111000,
0b00000000
)),170:(6,0,6,(
0b000000,
0b000000,
0b011110,
0b110110,
0b011110,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000
)),171:(8,0,8,(
0b00000000,
0b00000000,
0b00000000,
0b00000000,
0b00110110,
0b01101100,
0b11011000,
0b01101100,
0b00110110,
0b00000000,
0b00000000
)),172:(6,0,6,(
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b111110,
0b000010,
0b000010,
0b000000,
0b000000,
0b000000
)),173:(5,0,5,(
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b11110,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000
)),174:(8,0,8,(
0b00000000,
0b00000000,
0b00000000,
0b00111000,
0b01000100,
0b10111010,
0b10110010,
0b10101010,
0b01000100,
0b00111000,
0b00000000
)),175:(6,0,6,(
0b000000,
0b111110,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000
)),176:(5,0,5,(
0b00000,
0b01100,
0b10010,
0b10010,
0b01100,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000
)),177:(6,0,6,(
0b000000,
0b000000,
0b001000,
0b001000,
0b111110,
0b001000,
0b001000,
0b111110,
0b000000,
0b000000,
0b000000
)),178:(4,0,4,(
0b0000,
0b0000,
0b1110,
0b0010,
0b0100,
0b1110,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000
)),179:(4,0,4,(
0b0000,
0b0000,
0b1110,
0b0100,
0b0010,
0b1110,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000
)),180:(4,0,4,(
0b0000,
0b0000,
0b0110,
0b1000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000
)),181:(6,0,6,(
0b000000,
0b000000,
0b000000,
0b000000,
0b110110,
0b110110,
0b110110,
0b110110,
0b111110,
0b110000,
0b110000
)),182:(7,0,7,(
0b0000000,
0b0000000,
0b0111110,
0b1110110,
0b1110110,
0b0110110,
0b0010110,
0b0010110,
0b0010110,
0b0000000,
0b0000000
)),183:(2,0,2,(
0b00,
0b00,
0b00,
0b00,
0b00,
0b10,
0b00,
0b00,
0b00,
0b00,
0b00
)),184:(4,0,4,(
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0100,
0b0010,
0b1100
)),185:(2,0,2,(
0b00,
0b00,
0b10,
0b10,
0b10,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00
)),186:(6,0,6,(
0b000000,
0b000000,
0b011100,
0b110110,
0b011100,
0b000000,
0b111110,
0b000000,
0b000000,
0b000000,
0b000000
)),187:(8,0,8,(
0b00000000,
0b00000000,
0b00000000,
0b00000000,
0b11011000,
0b01101100,
0b00110110,
0b01101100,
0b11011000,
0b00000000,
0b00000000
)),188:(9,0,9,(
0b000000000,
0b110000000,
0b110001100,
0b110011000,
0b110110000,
0b001100100,
0b011001100,
0b110011110,
0b000001100,
0b000000000,
0b000000000
)),189:(9,0,9,(
0b000000000,
0b110000000,
0b110001100,
0b110011000,
0b110110000,
0b001101110,
0b011000110,
0b110001100,
0b000001110,
0b000000000,
0b000000000
)),190:(9,0,9,(
0b000000000,
0b111000000,
0b011001100,
0b011011000,
0b111110000,
0b001100100,
0b011001100,
0b110011110,
0b000001100,
0b000000000,
0b000000000
)),191:(6,0,6,(
0b000000,
0b000000,
0b001100,
0b000000,
0b001100,
0b001100,
0b011000,
0b110000,
0b011110,
0b000000,
0b000000
)),192:(7,0,7,(
0b0010000,
0b0001000,
0b0000000,
0b0111100,
0b1100110,
0b1100110,
0b1111110,
0b1100110,
0b1100110,
0b0000000,
0b0000000
)),193:(7,0,7,(
0b0001000,
0b0010000,
0b0000000,
0b0111100,
0b1100110,
0b1100110,
0b1111110,
0b1100110,
0b1100110,
0b0000000,
0b0000000
)),194:(7,0,7,(
0b0001000,
0b0010100,
0b0000000,
0b0111100,
0b1100110,
0b1100110,
0b1111110,
0b1100110,
0b1100110,
0b0000000,
0b0000000
)),195:(7,0,7,(
0b0110100,
0b1011000,
0b0000000,
0b0111100,
0b1100110,
0b1100110,
0b1111110,
0b1100110,
0b1100110,
0b0000000,
0b0000000
)),196:(7,0,7,(
0b0000000,
0b0010100,
0b0000000,
0b0111100,
0b1100110,
0b1100110,
0b1111110,
0b1100110,
0b1100110,
0b0000000,
0b0000000
)),197:(7,0,7,(
0b0011000,
0b0100100,
0b0011000,
0b0111100,
0b1100110,
0b1100110,
0b1111110,
0b1100110,
0b1100110,
0b0000000,
0b0000000
)),198:(9,0,9,(
0b000000000,
0b000000000,
0b011111110,
0b110011000,
0b110011000,
0b111111110,
0b110011000,
0b110011000,
0b110011110,
0b000000000,
0b000000000
)),199:(6,0,6,(
0b000000,
0b000000,
0b001110,
0b011000,
0b110000,
0b110000,
0b110000,
0b011000,
0b001110,
0b000100,
0b001000
)),200:(5,0,5,(
0b01000,
0b00100,
0b00000,
0b11110,
0b11000,
0b11110,
0b11000,
0b11000,
0b11110,
0b00000,
0b00000
)),201:(5,0,5,(
0b00100,
0b01000,
0b00000,
0b11110,
0b11000,
0b11110,
0b11000,
0b11000,
0b11110,
0b00000,
0b00000
)),202:(5,0,5,(
0b00100,
0b01010,
0b00000,
0b11110,
0b11000,
0b11110,
0b11000,
0b11000,
0b11110,
0b00000,
0b00000
)),203:(5,0,5,(
0b00000,
0b01010,
0b00000,
0b11110,
0b11000,
0b11110,
0b11000,
0b11000,
0b11110,
0b00000,
0b00000
)),204:(3,0,3,(
0b100,
0b010,
0b000,
0b110,
0b110,
0b110,
0b110,
0b110,
0b110,
0b000,
0b000
)),205:(3,0,3,(
0b010,
0b100,
0b000,
0b110,
0b110,
0b110,
0b110,
0b110,
0b110,
0b000,
0b000
)),206:(3,0,3,(
0b010,
0b101,
0b000,
0b110,
0b110,
0b110,
0b110,
0b110,
0b110,
0b000,
0b000
)),207:(3,0,3,(
0b000,
0b101,
0b000,
0b110,
0b110,
0b110,
0b110,
0b110,
0b110,
0b000,
0b000
)),208:(8,0,8,(
0b00000000,
0b00000000,
0b01111000,
0b01101100,
0b01100110,
0b11110110,
0b01100110,
0b01101100,
0b01111000,
0b00000000,
0b00000000
)),209:(7,0,7,(
0b0110100,
0b1011000,
0b0000000,
0b1100010,
0b1110010,
0b1111010,
0b1011110,
0b1001110,
0b1000110,
0b0000000,
0b0000000
)),210:(8,0,8,(
0b00010000,
0b00001000,
0b00000000,
0b00111000,
0b01101100,
0b11000110,
0b11000110,
0b01101100,
0b00111000,
0b00000000,
0b00000000
)),211:(8,0,8,(
0b00001000,
0b00010000,
0b00000000,
0b00111000,
0b01101100,
0b11000110,
0b11000110,
0b01101100,
0b00111000,
0b00000000,
0b00000000
)),212:(8,0,8,(
0b00010000,
0b00101000,
0b00000000,
0b00111000,
0b01101100,
0b11000110,
0b11000110,
0b01101100,
0b00111000,
0b00000000,
0b00000000
)),213:(8,0,8,(
0b00110100,
0b01011000,
0b00000000,
0b00111000,
0b01101100,
0b11000110,
0b11000110,
0b01101100,
0b00111000,
0b00000000,
0b00000000
)),214:(8,0,8,(
0b00000000,
0b00101000,
0b00000000,
0b00111000,
0b01101100,
0b11000110,
0b11000110,
0b01101100,
0b00111000,
0b00000000,
0b00000000
)),215:(6,0,6,(
0b000000,
0b000000,
0b000000,
0b000000,
0b110110,
0b011100,
0b011100,
0b110110,
0b000000,
0b000000,
0b000000
)),216:(8,0,8,(
0b00000000,
0b00000000,
0b00111010,
0b01101100,
0b11001110,
0b11010110,
0b11100110,
0b01101100,
0b10111000,
0b00000000,
0b00000000
)),217:(7,0,7,(
0b0001000,
0b0000100,
0b0000000,
0b1100010,
0b1100010,
0b1100010,
0b1100010,
0b1110110,
0b0111100,
0b0000000,
0b0000000
)),218:(7,0,7,(
0b0000100,
0b0001000,
0b0000000,
0b1100010,
0b1100010,
0b1100010,
0b1100010,
0b1110110,
0b0111100,
0b0000000,
0b0000000
)),219:(7,0,7,(
0b0001000,
0b0010100,
0b0000000,
0b1100010,
0b1100010,
0b1100010,
0b1100010,
0b1110110,
0b0111110,
0b0000000,
0b0000000
)),220:(7,0,7,(
0b0000000,
0b0010100,
0b0000000,
0b1100010,
0b1100010,
0b1100010,
0b1100010,
0b1110110,
0b0111100,
0b0000000,
0b0000000
)),221:(7,0,7,(
0b0001000,
0b0010000,
0b0000000,
0b1100110,
0b1100110,
0b0111100,
0b0011000,
0b0011000,
0b0011000,
0b0000000,
0b0000000
)),222:(7,0,7,(
0b0000000,
0b0000000,
0b1100000,
0b1111100,
0b1100110,
0b1100110,
0b1100110,
0b1111100,
0b1100000,
0b0000000,
0b0000000
)),223:(8,0,8,(
0b00000000,
0b00000000,
0b01111000,
0b11001100,
0b11001000,
0b11011100,
0b11001110,
0b11000110,
0b11011100,
0b00000000,
0b00000000
)),224:(6,0,6,(
0b000000,
0b001000,
0b000100,
0b000000,
0b011110,
0b110110,
0b110110,
0b110110,
0b011110,
0b000000,
0b000000
)),225:(6,0,6,(
0b000000,
0b000100,
0b001000,
0b000000,
0b011110,
0b110110,
0b110110,
0b110110,
0b011110,
0b000000,
0b000000
)),226:(6,0,6,(
0b000000,
0b000100,
0b001010,
0b000000,
0b011110,
0b110110,
0b110110,
0b110110,
0b011110,
0b000000,
0b000000
)),227:(6,0,6,(
0b000000,
0b011010,
0b101100,
0b000000,
0b011110,
0b110110,
0b110110,
0b110110,
0b011110,
0b000000,
0b000000
)),228:(6,0,6,(
0b000000,
0b000000,
0b001010,
0b000000,
0b011110,
0b110110,
0b110110,
0b110110,
0b011110,
0b000000,
0b000000
)),229:(6,0,6,(
0b001100,
0b010010,
0b001100,
0b000000,
0b011110,
0b110110,
0b110110,
0b110110,
0b011110,
0b000000,
0b000000
)),230:(9,0,9,(
0b000000000,
0b000000000,
0b000000000,
0b000000000,
0b011101100,
0b000110110,
0b011111110,
0b110110000,
0b011111110,
0b000000000,
0b000000000
)),231:(5,0,5,(
0b00000,
0b00000,
0b00000,
0b00000,
0b01110,
0b11000,
0b11000,
0b11000,
0b01110,
0b00100,
0b01000
)),232:(6,0,6,(
0b000000,
0b001000,
0b000100,
0b000000,
0b011100,
0b110110,
0b111110,
0b110000,
0b011110,
0b000000,
0b000000
)),233:(6,0,6,(
0b000000,
0b000100,
0b001000,
0b000000,
0b011100,
0b110110,
0b111110,
0b110000,
0b011110,
0b000000,
0b000000
)),234:(6,0,6,(
0b000000,
0b001000,
0b010100,
0b000000,
0b011100,
0b110110,
0b111110,
0b110000,
0b011110,
0b000000,
0b000000
)),235:(6,0,6,(
0b000000,
0b000000,
0b010100,
0b000000,
0b011100,
0b110110,
0b111110,
0b110000,
0b011110,
0b000000,
0b000000
)),236:(3,0,3,(
0b000,
0b100,
0b010,
0b000,
0b110,
0b110,
0b110,
0b110,
0b110,
0b000,
0b000
)),237:(3,0,3,(
0b000,
0b010,
0b100,
0b000,
0b110,
0b110,
0b110,
0b110,
0b110,
0b000,
0b000
)),238:(3,0,3,(
0b000,
0b010,
0b101,
0b000,
0b110,
0b110,
0b110,
0b110,
0b110,
0b000,
0b000
)),239:(3,0,3,(
0b000,
0b000,
0b101,
0b000,
0b110,
0b110,
0b110,
0b110,
0b110,
0b000,
0b000
)),240:(6,0,6,(
0b000000,
0b000000,
0b111000,
0b111000,
0b001100,
0b011100,
0b110110,
0b110110,
0b011100,
0b000000,
0b000000
)),241:(6,0,6,(
0b000000,
0b011010,
0b101100,
0b000000,
0b111100,
0b110110,
0b110110,
0b110110,
0b110110,
0b000000,
0b000000
)),242:(6,0,6,(
0b000000,
0b001000,
0b000100,
0b000000,
0b011100,
0b110110,
0b110110,
0b110110,
0b011100,
0b000000,
0b000000
)),243:(6,0,6,(
0b000000,
0b000100,
0b001000,
0b000000,
0b011100,
0b110110,
0b110110,
0b110110,
0b011100,
0b000000,
0b000000
)),244:(6,0,6,(
0b000000,
0b001000,
0b010100,
0b000000,
0b011100,
0b110110,
0b110110,
0b110110,
0b011100,
0b000000,
0b000000
)),245:(6,0,6,(
0b000000,
0b011010,
0b101100,
0b000000,
0b011100,
0b110110,
0b110110,
0b110110,
0b011100,
0b000000,
0b000000
)),246:(6,0,6,(
0b000000,
0b000000,
0b010100,
0b000000,
0b011100,
0b110110,
0b110110,
0b110110,
0b011100,
0b000000,
0b000000
)),247:(7,0,7,(
0b0000000,
0b0000000,
0b0000000,
0b0011000,
0b0000000,
0b1111110,
0b0000000,
0b0011000,
0b0000000,
0b0000000,
0b0000000
)),248:(8,0,8,(
0b00000000,
0b00000000,
0b00000000,
0b00000000,
0b00111010,
0b01101100,
0b01111100,
0b01101100,
0b10111000,
0b00000000,
0b00000000
)),249:(6,0,6,(
0b000000,
0b001000,
0b000100,
0b000000,
0b110110,
0b110110,
0b110110,
0b110110,
0b011110,
0b000000,
0b000000
)),250:(6,0,6,(
0b000000,
0b000100,
0b001000,
0b000000,
0b110110,
0b110110,
0b110110,
0b110110,
0b011110,
0b000000,
0b000000
)),251:(6,0,6,(
0b000000,
0b001000,
0b010100,
0b000000,
0b110110,
0b110110,
0b110110,
0b110110,
0b011110,
0b000000,
0b000000
)),252:(6,0,6,(
0b000000,
0b000000,
0b010100,
0b000000,
0b110110,
0b110110,
0b110110,
0b110110,
0b011110,
0b000000,
0b000000
)),253:(6,0,6,(
0b000000,
0b000100,
0b001000,
0b000000,
0b110110,
0b110110,
0b110110,
0b011100,
0b001100,
0b011000,
0b110000
)),254:(6,0,6,(
0b000000,
0b000000,
0b000000,
0b110000,
0b111100,
0b110110,
0b110110,
0b110110,
0b111100,
0b110000,
0b110000
)),255:(6,0,6,(
0b000000,
0b000000,
0b010100,
0b000000,
0b110110,
0b110110,
0b110110,
0b011100,
0b001100,
0b011000,
0b110000
)),}
# generated by fontconv
#fontType 36864
#firstChar 9
#lastChar 255
#maxWidth 11
#kernMax 0
#nDescent 0
#fRectWidth 11
#fRectHeight 11
#ascent 9
#descent 2
#leading 0
#averageWidth 5.26
FONTS['palmnormeu'] = {
9:(2,0,2,(
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00
)),20:(11,0,11,(
0b01111000000,
0b11111100000,
0b10000100100,
0b11111101000,
0b01111010000,
0b00110000000,
0b00110011010,
0b00110000000,
0b01110010000,
0b01110001000,
0b00110000100
)),21:(5,0,5,(
0b00000,
0b00100,
0b01000,
0b10000,
0b00000,
0b11010,
0b00000,
0b10000,
0b01000,
0b00100,
0b00000
)),22:(8,0,8,(
0b00000000,
0b00000000,
0b00000000,
0b00000010,
0b00000100,
0b00001000,
0b00010000,
0b00100000,
0b11000000,
0b11000000,
0b00000000
)),23:(8,0,8,(
0b00000000,
0b00010000,
0b00101000,
0b00101000,
0b00101000,
0b00101000,
0b00010000,
0b00101000,
0b11000100,
0b11000010,
0b00000000
)),24:(6,0,6,(
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b101010,
0b000000,
0b000000
)),25:(5,0,5,(
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000
)),32:(2,0,2,(
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00
)),33:(2,0,2,(
0b00,
0b00,
0b10,
0b10,
0b10,
0b10,
0b10,
0b00,
0b10,
0b00,
0b00
)),34:(4,0,4,(
0b0000,
0b1010,
0b1010,
0b1010,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000
)),35:(8,0,8,(
0b00000000,
0b00000000,
0b00010100,
0b00010100,
0b01111110,
0b00101000,
0b11111100,
0b01010000,
0b01010000,
0b00000000,
0b00000000
)),36:(6,0,6,(
0b000000,
0b001000,
0b011110,
0b101000,
0b101000,
0b011100,
0b001010,
0b001010,
0b111100,
0b001000,
0b000000
)),37:(8,0,8,(
0b00000000,
0b00000000,
0b01000100,
0b10100100,
0b10101000,
0b01010100,
0b00101010,
0b01001010,
0b01000100,
0b00000000,
0b00000000
)),38:(7,0,7,(
0b0000000,
0b0000000,
0b0011000,
0b0100100,
0b0101000,
0b0010000,
0b0101010,
0b1000100,
0b0111010,
0b0000000,
0b0000000
)),39:(2,0,2,(
0b00,
0b10,
0b10,
0b10,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00
)),40:(4,0,4,(
0b0000,
0b0010,
0b0100,
0b0100,
0b1000,
0b1000,
0b1000,
0b0100,
0b0100,
0b0010,
0b0000
)),41:(4,0,4,(
0b0000,
0b1000,
0b0100,
0b0100,
0b0010,
0b0010,
0b0010,
0b0100,
0b0100,
0b1000,
0b0000
)),42:(6,0,6,(
0b000000,
0b010100,
0b001000,
0b110110,
0b001000,
0b010100,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000
)),43:(6,0,6,(
0b000000,
0b000000,
0b000000,
0b001000,
0b001000,
0b111110,
0b001000,
0b001000,
0b000000,
0b000000,
0b000000
)),44:(3,0,3,(
0b000,
0b000,
0b000,
0b000,
0b000,
0b000,
0b000,
0b000,
0b010,
0b100,
0b000
)),45:(4,0,4,(
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b1110,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000
)),46:(2,0,2,(
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b10,
0b00,
0b00
)),47:(5,0,5,(
0b00000,
0b00000,
0b00010,
0b00010,
0b00100,
0b01000,
0b01000,
0b10000,
0b10000,
0b00000,
0b00000
)),48:(5,0,5,(
0b00000,
0b00000,
0b01100,
0b10010,
0b10010,
0b10010,
0b10010,
0b10010,
0b01100,
0b00000,
0b00000
)),49:(5,0,5,(
0b00000,
0b00000,
0b00100,
0b01100,
0b00100,
0b00100,
0b00100,
0b00100,
0b00100,
0b00000,
0b00000
)),50:(5,0,5,(
0b00000,
0b00000,
0b01100,
0b10010,
0b00010,
0b00100,
0b01000,
0b10000,
0b11110,
0b00000,
0b00000
)),51:(5,0,5,(
0b00000,
0b00000,
0b01100,
0b10010,
0b00010,
0b00100,
0b00010,
0b10010,
0b01100,
0b00000,
0b00000
)),52:(5,0,5,(
0b00000,
0b00000,
0b00010,
0b00110,
0b01010,
0b10010,
0b11110,
0b00010,
0b00010,
0b00000,
0b00000
)),53:(5,0,5,(
0b00000,
0b00000,
0b11110,
0b10000,
0b10000,
0b11100,
0b00010,
0b00010,
0b11100,
0b00000,
0b00000
)),54:(5,0,5,(
0b00000,
0b00000,
0b00100,
0b01000,
0b10000,
0b11100,
0b10010,
0b10010,
0b01100,
0b00000,
0b00000
)),55:(5,0,5,(
0b00000,
0b00000,
0b11110,
0b00010,
0b00100,
0b00100,
0b01000,
0b01000,
0b01000,
0b00000,
0b00000
)),56:(5,0,5,(
0b00000,
0b00000,
0b01100,
0b10010,
0b10010,
0b01100,
0b10010,
0b10010,
0b01100,
0b00000,
0b00000
)),57:(5,0,5,(
0b00000,
0b00000,
0b01100,
0b10010,
0b10010,
0b01110,
0b00010,
0b00100,
0b01000,
0b00000,
0b00000
)),58:(2,0,2,(
0b00,
0b00,
0b00,
0b00,
0b10,
0b00,
0b00,
0b00,
0b10,
0b00,
0b00
)),59:(3,0,3,(
0b000,
0b000,
0b000,
0b000,
0b010,
0b000,
0b000,
0b000,
0b010,
0b100,
0b000
)),60:(6,0,6,(
0b000000,
0b000000,
0b000000,
0b000010,
0b001100,
0b110000,
0b001100,
0b000010,
0b000000,
0b000000,
0b000000
)),61:(6,0,6,(
0b000000,
0b000000,
0b000000,
0b000000,
0b111110,
0b000000,
0b111110,
0b000000,
0b000000,
0b000000,
0b000000
)),62:(6,0,6,(
0b000000,
0b000000,
0b000000,
0b100000,
0b011000,
0b000110,
0b011000,
0b100000,
0b000000,
0b000000,
0b000000
)),63:(5,0,5,(
0b00000,
0b00000,
0b11100,
0b00010,
0b00100,
0b01000,
0b01000,
0b00000,
0b01000,
0b00000,
0b00000
)),64:(8,0,8,(
0b00000000,
0b00000000,
0b00000000,
0b00111000,
0b01000100,
0b10011010,
0b10101010,
0b10010100,
0b01000000,
0b00111000,
0b00000000
)),65:(5,0,5,(
0b00000,
0b00000,
0b01100,
0b10010,
0b10010,
0b11110,
0b10010,
0b10010,
0b10010,
0b00000,
0b00000
)),66:(5,0,5,(
0b00000,
0b00000,
0b11100,
0b10010,
0b10010,
0b11100,
0b10010,
0b10010,
0b11100,
0b00000,
0b00000
)),67:(5,0,5,(
0b00000,
0b00000,
0b00110,
0b01000,
0b10000,
0b10000,
0b10000,
0b01000,
0b00110,
0b00000,
0b00000
)),68:(6,0,6,(
0b000000,
0b000000,
0b111000,
0b100100,
0b100010,
0b100010,
0b100010,
0b100100,
0b111000,
0b000000,
0b000000
)),69:(4,0,4,(
0b0000,
0b0000,
0b1110,
0b1000,
0b1000,
0b1110,
0b1000,
0b1000,
0b1110,
0b0000,
0b0000
)),70:(4,0,4,(
0b0000,
0b0000,
0b1110,
0b1000,
0b1000,
0b1110,
0b1000,
0b1000,
0b1000,
0b0000,
0b0000
)),71:(6,0,6,(
0b000000,
0b000000,
0b001110,
0b010000,
0b100000,
0b100110,
0b100010,
0b010010,
0b001110,
0b000000,
0b000000
)),72:(6,0,6,(
0b000000,
0b000000,
0b100010,
0b100010,
0b100010,
0b111110,
0b100010,
0b100010,
0b100010,
0b000000,
0b000000
)),73:(2,0,2,(
0b00,
0b00,
0b10,
0b10,
0b10,
0b10,
0b10,
0b10,
0b10,
0b00,
0b00
)),74:(4,0,4,(
0b0000,
0b0000,
0b0010,
0b0010,
0b0010,
0b0010,
0b0010,
0b0010,
0b1100,
0b0000,
0b0000
)),75:(6,0,6,(
0b000000,
0b000000,
0b100010,
0b100100,
0b101000,
0b110000,
0b101000,
0b100100,
0b100010,
0b000000,
0b000000
)),76:(5,0,5,(
0b00000,
0b00000,
0b10000,
0b10000,
0b10000,
0b10000,
0b10000,
0b10000,
0b11110,
0b00000,
0b00000
)),77:(8,0,8,(
0b00000000,
0b00000000,
0b11000110,
0b11000110,
0b10101010,
0b10101010,
0b10101010,
0b10010010,
0b10010010,
0b00000000,
0b00000000
)),78:(6,0,6,(
0b000000,
0b000000,
0b100010,
0b110010,
0b101010,
0b101010,
0b100110,
0b100010,
0b100010,
0b000000,
0b000000
)),79:(7,0,7,(
0b0000000,
0b0000000,
0b0011000,
0b0100100,
0b1000010,
0b1000010,
0b1000010,
0b0100100,
0b0011000,
0b0000000,
0b0000000
)),80:(5,0,5,(
0b00000,
0b00000,
0b11100,
0b10010,
0b10010,
0b11100,
0b10000,
0b10000,
0b10000,
0b00000,
0b00000
)),81:(7,0,7,(
0b0000000,
0b0000000,
0b0011000,
0b0100100,
0b1000010,
0b1000010,
0b1000010,
0b0100100,
0b0011000,
0b0000110,
0b0000000
)),82:(5,0,5,(
0b00000,
0b00000,
0b11100,
0b10010,
0b10010,
0b11100,
0b10100,
0b10010,
0b10010,
0b00000,
0b00000
)),83:(5,0,5,(
0b00000,
0b00000,
0b01110,
0b10000,
0b10000,
0b01100,
0b00010,
0b00010,
0b11100,
0b00000,
0b00000
)),84:(6,0,6,(
0b000000,
0b000000,
0b111110,
0b001000,
0b001000,
0b001000,
0b001000,
0b001000,
0b001000,
0b000000,
0b000000
)),85:(6,0,6,(
0b000000,
0b000000,
0b100010,
0b100010,
0b100010,
0b100010,
0b100010,
0b100010,
0b011100,
0b000000,
0b000000
)),86:(6,0,6,(
0b000000,
0b000000,
0b100010,
0b100010,
0b100010,
0b010100,
0b010100,
0b001000,
0b001000,
0b000000,
0b000000
)),87:(8,0,8,(
0b00000000,
0b00000000,
0b10010010,
0b10010010,
0b10101010,
0b10101010,
0b01000100,
0b01000100,
0b01000100,
0b00000000,
0b00000000
)),88:(6,0,6,(
0b000000,
0b000000,
0b100010,
0b100010,
0b010100,
0b001000,
0b010100,
0b100010,
0b100010,
0b000000,
0b000000
)),89:(6,0,6,(
0b000000,
0b000000,
0b100010,
0b100010,
0b010100,
0b001000,
0b001000,
0b001000,
0b001000,
0b000000,
0b000000
)),90:(6,0,6,(
0b000000,
0b000000,
0b111110,
0b000010,
0b000100,
0b001000,
0b010000,
0b100000,
0b111110,
0b000000,
0b000000
)),91:(3,0,3,(
0b000,
0b110,
0b100,
0b100,
0b100,
0b100,
0b100,
0b100,
0b100,
0b110,
0b000
)),92:(5,0,5,(
0b00000,
0b00000,
0b10000,
0b10000,
0b01000,
0b00100,
0b00100,
0b00010,
0b00010,
0b00000,
0b00000
)),93:(3,0,3,(
0b000,
0b110,
0b010,
0b010,
0b010,
0b010,
0b010,
0b010,
0b010,
0b110,
0b000
)),94:(6,0,6,(
0b000000,
0b000000,
0b001000,
0b001000,
0b010100,
0b010100,
0b100010,
0b000000,
0b000000,
0b000000,
0b000000
)),95:(4,0,4,(
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b1111,
0b0000
)),96:(3,0,3,(
0b000,
0b100,
0b010,
0b000,
0b000,
0b000,
0b000,
0b000,
0b000,
0b000,
0b000
)),97:(5,0,5,(
0b00000,
0b00000,
0b00000,
0b00000,
0b01110,
0b10010,
0b10010,
0b10010,
0b01110,
0b00000,
0b00000
)),98:(5,0,5,(
0b00000,
0b00000,
0b10000,
0b10000,
0b11100,
0b10010,
0b10010,
0b10010,
0b11100,
0b00000,
0b00000
)),99:(4,0,4,(
0b0000,
0b0000,
0b0000,
0b0000,
0b0110,
0b1000,
0b1000,
0b1000,
0b0110,
0b0000,
0b0000
)),100:(5,0,5,(
0b00000,
0b00000,
0b00010,
0b00010,
0b01110,
0b10010,
0b10010,
0b10010,
0b01110,
0b00000,
0b00000
)),101:(5,0,5,(
0b00000,
0b00000,
0b00000,
0b00000,
0b01100,
0b10010,
0b11110,
0b10000,
0b01110,
0b00000,
0b00000
)),102:(4,0,4,(
0b0000,
0b0000,
0b0011,
0b0100,
0b1110,
0b0100,
0b0100,
0b0100,
0b0100,
0b0000,
0b0000
)),103:(5,0,5,(
0b00000,
0b00000,
0b00000,
0b00000,
0b01110,
0b10010,
0b10010,
0b10010,
0b01110,
0b00010,
0b01100
)),104:(5,0,5,(
0b00000,
0b00000,
0b10000,
0b10000,
0b11100,
0b10010,
0b10010,
0b10010,
0b10010,
0b00000,
0b00000
)),105:(2,0,2,(
0b00,
0b00,
0b10,
0b00,
0b10,
0b10,
0b10,
0b10,
0b10,
0b00,
0b00
)),106:(3,0,3,(
0b000,
0b000,
0b010,
0b000,
0b010,
0b010,
0b010,
0b010,
0b010,
0b100,
0b000
)),107:(5,0,5,(
0b00000,
0b00000,
0b10000,
0b10000,
0b10010,
0b10100,
0b11000,
0b10100,
0b10010,
0b00000,
0b00000
)),108:(2,0,2,(
0b00,
0b00,
0b10,
0b10,
0b10,
0b10,
0b10,
0b10,
0b10,
0b00,
0b00
)),109:(8,0,8,(
0b00000000,
0b00000000,
0b00000000,
0b00000000,
0b11101100,
0b10010010,
0b10010010,
0b10010010,
0b10010010,
0b00000000,
0b00000000
)),110:(5,0,5,(
0b00000,
0b00000,
0b00000,
0b00000,
0b11100,
0b10010,
0b10010,
0b10010,
0b10010,
0b00000,
0b00000
)),111:(5,0,5,(
0b00000,
0b00000,
0b00000,
0b00000,
0b01100,
0b10010,
0b10010,
0b10010,
0b01100,
0b00000,
0b00000
)),112:(5,0,5,(
0b00000,
0b00000,
0b00000,
0b00000,
0b11100,
0b10010,
0b10010,
0b10010,
0b11100,
0b10000,
0b10000
)),113:(5,0,5,(
0b00000,
0b00000,
0b00000,
0b00000,
0b01110,
0b10010,
0b10010,
0b10010,
0b01110,
0b00010,
0b00010
)),114:(4,0,4,(
0b0000,
0b0000,
0b0000,
0b0000,
0b1010,
0b1100,
0b1000,
0b1000,
0b1000,
0b0000,
0b0000
)),115:(4,0,4,(
0b0000,
0b0000,
0b0000,
0b0000,
0b0110,
0b1000,
0b0100,
0b0010,
0b1100,
0b0000,
0b0000
)),116:(4,0,4,(
0b0000,
0b0000,
0b0000,
0b0100,
0b1110,
0b0100,
0b0100,
0b0100,
0b0010,
0b0000,
0b0000
)),117:(5,0,5,(
0b00000,
0b00000,
0b00000,
0b00000,
0b10010,
0b10010,
0b10010,
0b10010,
0b01110,
0b00000,
0b00000
)),118:(5,0,5,(
0b00000,
0b00000,
0b00000,
0b00000,
0b10001,
0b01010,
0b01010,
0b00100,
0b00100,
0b00000,
0b00000
)),119:(6,0,6,(
0b000000,
0b000000,
0b000000,
0b000000,
0b101010,
0b101010,
0b101010,
0b010100,
0b010100,
0b000000,
0b000000
)),120:(6,0,6,(
0b000000,
0b000000,
0b000000,
0b000000,
0b100010,
0b010100,
0b001000,
0b010100,
0b100010,
0b000000,
0b000000
)),121:(6,0,6,(
0b000000,
0b000000,
0b000000,
0b000000,
0b100010,
0b010100,
0b010100,
0b001000,
0b001000,
0b010000,
0b100000
)),122:(4,0,4,(
0b0000,
0b0000,
0b0000,
0b0000,
0b1110,
0b0010,
0b0100,
0b1000,
0b1110,
0b0000,
0b0000
)),123:(4,0,4,(
0b0000,
0b0010,
0b0100,
0b0100,
0b0100,
0b1000,
0b0100,
0b0100,
0b0100,
0b0010,
0b0000
)),124:(2,0,2,(
0b00,
0b10,
0b10,
0b10,
0b10,
0b10,
0b10,
0b10,
0b10,
0b10,
0b00
)),125:(4,0,4,(
0b0000,
0b1000,
0b0100,
0b0100,
0b0100,
0b0010,
0b0100,
0b0100,
0b0100,
0b1000,
0b0000
)),126:(7,0,7,(
0b0000000,
0b0000000,
0b0000000,
0b0000000,
0b0000000,
0b0110010,
0b1001100,
0b0000000,
0b0000000,
0b0000000,
0b0000000
)),128:(8,0,8,(
0b00000000,
0b00000000,
0b00011100,
0b00100010,
0b11111000,
0b01000000,
0b11110000,
0b00100010,
0b00011100,
0b00000000,
0b00000000
)),130:(3,0,3,(
0b000,
0b000,
0b000,
0b000,
0b000,
0b000,
0b000,
0b000,
0b010,
0b100,
0b000
)),131:(8,0,8,(
0b00000000,
0b00000000,
0b00000110,
0b00001000,
0b00111100,
0b00010000,
0b00010000,
0b00100000,
0b00100000,
0b11000000,
0b00000000
)),132:(5,0,5,(
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b01010,
0b10100,
0b00000
)),133:(6,0,6,(
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b101010,
0b000000,
0b000000
)),134:(6,0,6,(
0b000000,
0b000000,
0b001000,
0b001000,
0b111110,
0b001000,
0b001000,
0b001000,
0b001000,
0b001000,
0b001000
)),135:(6,0,6,(
0b000000,
0b000000,
0b001000,
0b001000,
0b111110,
0b001000,
0b001000,
0b001000,
0b111110,
0b001000,
0b001000
)),136:(4,0,4,(
0b0000,
0b0000,
0b0100,
0b1010,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000
)),137:(11,0,11,(
0b00000000000,
0b00000000000,
0b01000100000,
0b10100100000,
0b10101000000,
0b01010100100,
0b00101011010,
0b01001011010,
0b01000100100,
0b00000000000,
0b00000000000
)),138:(5,0,5,(
0b01010,
0b00100,
0b00000,
0b01110,
0b10000,
0b01100,
0b00010,
0b00010,
0b11100,
0b00000,
0b00000
)),139:(4,0,4,(
0b0000,
0b0000,
0b0000,
0b0000,
0b0010,
0b0100,
0b1000,
0b0100,
0b0010,
0b0000,
0b0000
)),140:(8,0,8,(
0b00000000,
0b00000000,
0b00111110,
0b01001000,
0b10001000,
0b10001110,
0b10001000,
0b01001000,
0b00111110,
0b00000000,
0b00000000
)),141:(10,0,10,(
0b0000000000,
0b0000100000,
0b0001010000,
0b0010001000,
0b0100000100,
0b1000000010,
0b0100000100,
0b0010001000,
0b0001010000,
0b0000100000,
0b0000000000
)),142:(10,0,10,(
0b0001110000,
0b0011111000,
0b0011111000,
0b0101110100,
0b1111111110,
0b1111111110,
0b1111111110,
0b0110101100,
0b0001110000,
0b0011111000,
0b0000000000
)),143:(10,0,10,(
0b0000000000,
0b0111011100,
0b1001110010,
0b1000100010,
0b1000000010,
0b1000000010,
0b0100000100,
0b0010001000,
0b0001010000,
0b0000100000,
0b0000000000
)),144:(10,0,10,(
0b0000100000,
0b0001110000,
0b0011111000,
0b0111111100,
0b1111111110,
0b1111111110,
0b1111111110,
0b0110101100,
0b0001110000,
0b0011111000,
0b0000000000
)),145:(3,0,3,(
0b000,
0b000,
0b100,
0b010,
0b000,
0b000,
0b000,
0b000,
0b000,
0b000,
0b000
)),146:(3,0,3,(
0b000,
0b000,
0b010,
0b100,
0b000,
0b000,
0b000,
0b000,
0b000,
0b000,
0b000
)),147:(5,0,5,(
0b00000,
0b00000,
0b10100,
0b01010,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000
)),148:(5,0,5,(
0b00000,
0b00000,
0b01010,
0b10100,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000
)),149:(4,0,4,(
0b0000,
0b0000,
0b0000,
0b0000,
0b1110,
0b1110,
0b1110,
0b0000,
0b0000,
0b0000,
0b0000
)),150:(4,0,4,(
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b1111,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000
)),151:(7,0,7,(
0b0000000,
0b0000000,
0b0000000,
0b0000000,
0b0000000,
0b1111111,
0b0000000,
0b0000000,
0b0000000,
0b0000000,
0b0000000
)),152:(7,0,7,(
0b0000000,
0b0000000,
0b0000000,
0b0110010,
0b1001100,
0b0000000,
0b0000000,
0b0000000,
0b0000000,
0b0000000,
0b0000000
)),153:(10,0,10,(
0b0000000000,
0b0000000000,
0b1110100010,
0b0100110110,
0b0100101010,
0b0000000000,
0b0000000000,
0b0000000000,
0b0000000000,
0b0000000000,
0b0000000000
)),154:(4,0,4,(
0b0000,
0b1010,
0b0100,
0b0000,
0b0110,
0b1000,
0b0100,
0b0010,
0b1100,
0b0000,
0b0000
)),155:(4,0,4,(
0b0000,
0b0000,
0b0000,
0b0000,
0b1000,
0b0100,
0b0010,
0b0100,
0b1000,
0b0000,
0b0000
)),156:(8,0,8,(
0b00000000,
0b00000000,
0b00000000,
0b00000000,
0b01101100,
0b10010010,
0b10011110,
0b10010000,
0b01101110,
0b00000000,
0b00000000
)),157:(8,0,8,(
0b00000000,
0b00000000,
0b00000000,
0b00000010,
0b00000100,
0b00001000,
0b00010000,
0b00100000,
0b11000000,
0b11000000,
0b00000000
)),158:(8,0,8,(
0b00000000,
0b00010000,
0b00101000,
0b00101000,
0b00101000,
0b00101000,
0b00010000,
0b00101000,
0b11000100,
0b11000010,
0b00000000
)),159:(6,0,6,(
0b000000,
0b010100,
0b000000,
0b100010,
0b100010,
0b010100,
0b001000,
0b001000,
0b001000,
0b000000,
0b000000
)),160:(2,0,2,(
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00
)),161:(2,0,2,(
0b00,
0b00,
0b00,
0b00,
0b10,
0b00,
0b10,
0b10,
0b10,
0b10,
0b10
)),162:(6,0,6,(
0b000000,
0b000000,
0b001000,
0b011100,
0b101010,
0b101000,
0b101000,
0b101010,
0b011100,
0b001000,
0b000000
)),163:(6,0,6,(
0b000000,
0b000000,
0b001110,
0b010000,
0b010000,
0b111100,
0b010000,
0b010000,
0b111110,
0b000000,
0b000000
)),164:(8,0,8,(
0b00000000,
0b00000000,
0b10010010,
0b01101100,
0b01000100,
0b10000010,
0b01000100,
0b01101100,
0b10010010,
0b00000000,
0b00000000
)),165:(6,0,6,(
0b000000,
0b000000,
0b100010,
0b010100,
0b111110,
0b001000,
0b111110,
0b001000,
0b001000,
0b000000,
0b000000
)),166:(2,0,2,(
0b00,
0b00,
0b10,
0b10,
0b10,
0b10,
0b00,
0b10,
0b10,
0b10,
0b10
)),167:(5,0,5,(
0b00000,
0b01100,
0b10010,
0b01000,
0b10100,
0b10010,
0b01010,
0b00100,
0b10010,
0b01100,
0b00000
)),168:(4,0,4,(
0b0000,
0b0000,
0b0000,
0b1010,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000
)),169:(8,0,8,(
0b00000000,
0b00000000,
0b00000000,
0b00111000,
0b01000100,
0b10111010,
0b10100010,
0b10111010,
0b01000100,
0b00111000,
0b00000000
)),170:(5,0,5,(
0b00000,
0b00000,
0b01110,
0b10010,
0b01110,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000
)),171:(6,0,6,(
0b000000,
0b000000,
0b000000,
0b000000,
0b001010,
0b010100,
0b101000,
0b010100,
0b001010,
0b000000,
0b000000
)),172:(6,0,6,(
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b111110,
0b000010,
0b000010,
0b000000,
0b000000,
0b000000
)),173:(4,0,4,(
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b1110,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000
)),174:(8,0,8,(
0b00000000,
0b00000000,
0b00000000,
0b00111000,
0b01000100,
0b10111010,
0b10110010,
0b10101010,
0b01000100,
0b00111000,
0b00000000
)),175:(6,0,6,(
0b000000,
0b111110,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000
)),176:(5,0,5,(
0b00000,
0b01100,
0b10010,
0b10010,
0b01100,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000
)),177:(6,0,6,(
0b000000,
0b000000,
0b001000,
0b001000,
0b111110,
0b001000,
0b001000,
0b111110,
0b000000,
0b000000,
0b000000
)),178:(4,0,4,(
0b0000,
0b0000,
0b1110,
0b0010,
0b0100,
0b1110,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000
)),179:(4,0,4,(
0b0000,
0b0000,
0b1110,
0b0100,
0b0010,
0b1110,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000
)),180:(3,0,3,(
0b000,
0b010,
0b100,
0b000,
0b000,
0b000,
0b000,
0b000,
0b000,
0b000,
0b000
)),181:(5,0,5,(
0b00000,
0b00000,
0b00000,
0b00000,
0b10010,
0b10010,
0b10010,
0b10010,
0b11110,
0b10000,
0b10000
)),182:(6,0,6,(
0b000000,
0b000000,
0b011110,
0b111010,
0b111010,
0b011010,
0b001010,
0b001010,
0b001010,
0b000000,
0b000000
)),183:(2,0,2,(
0b00,
0b00,
0b00,
0b00,
0b00,
0b10,
0b00,
0b00,
0b00,
0b00,
0b00
)),184:(4,0,4,(
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0100,
0b0010,
0b1100
)),185:(2,0,2,(
0b00,
0b00,
0b10,
0b10,
0b10,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00
)),186:(5,0,5,(
0b00000,
0b00000,
0b01100,
0b10010,
0b01100,
0b00000,
0b11110,
0b00000,
0b00000,
0b00000,
0b00000
)),187:(6,0,6,(
0b000000,
0b000000,
0b000000,
0b000000,
0b101000,
0b010100,
0b001010,
0b010100,
0b101000,
0b000000,
0b000000
)),188:(8,0,8,(
0b00000000,
0b10000000,
0b10000100,
0b10001000,
0b10010000,
0b00100100,
0b01001100,
0b10011110,
0b00000100,
0b00000000,
0b00000000
)),189:(8,0,8,(
0b00000000,
0b10000000,
0b10000100,
0b10001000,
0b10010000,
0b00101110,
0b01000010,
0b10000100,
0b00001110,
0b00000000,
0b00000000
)),190:(8,0,8,(
0b00000000,
0b11100000,
0b01000010,
0b00100100,
0b11101000,
0b00010010,
0b00100110,
0b01001110,
0b00000010,
0b00000000,
0b00000000
)),191:(5,0,5,(
0b00000,
0b00000,
0b00100,
0b00000,
0b00100,
0b00100,
0b01000,
0b10000,
0b01110,
0b00000,
0b00000
)),192:(5,0,5,(
0b01000,
0b00100,
0b00000,
0b01100,
0b10010,
0b11110,
0b10010,
0b10010,
0b10010,
0b00000,
0b00000
)),193:(5,0,5,(
0b00100,
0b01000,
0b00000,
0b01100,
0b10010,
0b11110,
0b10010,
0b10010,
0b10010,
0b00000,
0b00000
)),194:(5,0,5,(
0b00100,
0b01010,
0b00000,
0b01100,
0b10010,
0b11110,
0b10010,
0b10010,
0b10010,
0b00000,
0b00000
)),195:(5,0,5,(
0b01010,
0b10100,
0b00000,
0b01100,
0b10010,
0b11110,
0b10010,
0b10010,
0b10010,
0b00000,
0b00000
)),196:(5,0,5,(
0b00000,
0b01010,
0b00000,
0b01100,
0b10010,
0b11110,
0b10010,
0b10010,
0b10010,
0b00000,
0b00000
)),197:(5,0,5,(
0b01100,
0b10010,
0b01100,
0b01100,
0b10010,
0b11110,
0b10010,
0b10010,
0b10010,
0b00000,
0b00000
)),198:(7,0,7,(
0b0000000,
0b0000000,
0b0111110,
0b1001000,
0b1001000,
0b1111110,
0b1001000,
0b1001000,
0b1001110,
0b0000000,
0b0000000
)),199:(5,0,5,(
0b00000,
0b00000,
0b00110,
0b01000,
0b10000,
0b10000,
0b10000,
0b01000,
0b00110,
0b00100,
0b01000
)),200:(4,0,4,(
0b1000,
0b0100,
0b0000,
0b1110,
0b1000,
0b1110,
0b1000,
0b1000,
0b1110,
0b0000,
0b0000
)),201:(4,0,4,(
0b0100,
0b1000,
0b0000,
0b1110,
0b1000,
0b1110,
0b1000,
0b1000,
0b1110,
0b0000,
0b0000
)),202:(4,0,4,(
0b0100,
0b1010,
0b0000,
0b1110,
0b1000,
0b1110,
0b1000,
0b1000,
0b1110,
0b0000,
0b0000
)),203:(4,0,4,(
0b0000,
0b1010,
0b0000,
0b1110,
0b1000,
0b1110,
0b1000,
0b1000,
0b1110,
0b0000,
0b0000
)),204:(3,0,3,(
0b100,
0b010,
0b000,
0b010,
0b010,
0b010,
0b010,
0b010,
0b010,
0b000,
0b000
)),205:(2,0,2,(
0b01,
0b10,
0b00,
0b10,
0b10,
0b10,
0b10,
0b10,
0b10,
0b00,
0b00
)),206:(3,0,3,(
0b010,
0b101,
0b000,
0b010,
0b010,
0b010,
0b010,
0b010,
0b010,
0b000,
0b000
)),207:(3,0,3,(
0b101,
0b000,
0b000,
0b010,
0b010,
0b010,
0b010,
0b010,
0b010,
0b000,
0b000
)),208:(7,0,7,(
0b0000000,
0b0000000,
0b0111000,
0b0100100,
0b0100010,
0b1110010,
0b0100010,
0b0100100,
0b0111000,
0b0000000,
0b0000000
)),209:(6,0,6,(
0b001010,
0b010100,
0b000000,
0b100010,
0b110010,
0b101010,
0b101010,
0b100110,
0b100010,
0b000000,
0b000000
)),210:(7,0,7,(
0b0010000,
0b0001000,
0b0000000,
0b0011000,
0b0100100,
0b1000010,
0b1000010,
0b0100100,
0b0011000,
0b0000000,
0b0000000
)),211:(7,0,7,(
0b0001000,
0b0010000,
0b0000000,
0b0011000,
0b0100100,
0b1000010,
0b1000010,
0b0100100,
0b0011000,
0b0000000,
0b0000000
)),212:(7,0,7,(
0b0001000,
0b0010100,
0b0000000,
0b0011000,
0b0100100,
0b1000010,
0b1000010,
0b0100100,
0b0011000,
0b0000000,
0b0000000
)),213:(7,0,7,(
0b0010100,
0b0101000,
0b0000000,
0b0011000,
0b0100100,
0b1000010,
0b1000010,
0b0100100,
0b0011000,
0b0000000,
0b0000000
)),214:(7,0,7,(
0b0000000,
0b0010100,
0b0000000,
0b0011000,
0b0100100,
0b1000010,
0b1000010,
0b0100100,
0b0011000,
0b0000000,
0b0000000
)),215:(5,0,5,(
0b00000,
0b00000,
0b00000,
0b00000,
0b10010,
0b01100,
0b01100,
0b10010,
0b00000,
0b00000,
0b00000
)),216:(8,0,8,(
0b00000000,
0b00000000,
0b00111010,
0b01000100,
0b10001010,
0b10010010,
0b10100010,
0b01000100,
0b10111000,
0b00000000,
0b00000000
)),217:(6,0,6,(
0b001000,
0b000100,
0b000000,
0b100010,
0b100010,
0b100010,
0b100010,
0b100010,
0b011100,
0b000000,
0b000000
)),218:(6,0,6,(
0b000100,
0b001000,
0b000000,
0b100010,
0b100010,
0b100010,
0b100010,
0b100010,
0b011100,
0b000000,
0b000000
)),219:(6,0,6,(
0b001000,
0b010100,
0b000000,
0b100010,
0b100010,
0b100010,
0b100010,
0b100010,
0b011100,
0b000000,
0b000000
)),220:(6,0,6,(
0b000000,
0b010100,
0b000000,
0b100010,
0b100010,
0b100010,
0b100010,
0b100010,
0b011100,
0b000000,
0b000000
)),221:(6,0,6,(
0b000100,
0b001000,
0b000000,
0b100010,
0b100010,
0b011100,
0b001000,
0b001000,
0b001000,
0b000000,
0b000000
)),222:(6,0,6,(
0b000000,
0b000000,
0b100000,
0b111100,
0b100010,
0b100010,
0b100010,
0b111100,
0b100000,
0b000000,
0b000000
)),223:(6,0,6,(
0b000000,
0b000000,
0b011000,
0b100100,
0b100100,
0b101100,
0b100010,
0b100010,
0b101100,
0b000000,
0b000000
)),224:(5,0,5,(
0b00000,
0b00100,
0b00010,
0b00000,
0b01110,
0b10010,
0b10010,
0b10010,
0b01110,
0b00000,
0b00000
)),225:(5,0,5,(
0b00000,
0b00010,
0b00100,
0b00000,
0b01110,
0b10010,
0b10010,
0b10010,
0b01110,
0b00000,
0b00000
)),226:(5,0,5,(
0b00000,
0b00100,
0b01010,
0b00000,
0b01110,
0b10010,
0b10010,
0b10010,
0b01110,
0b00000,
0b00000
)),227:(5,0,5,(
0b00000,
0b01010,
0b10100,
0b00000,
0b01110,
0b10010,
0b10010,
0b10010,
0b01110,
0b00000,
0b00000
)),228:(5,0,5,(
0b00000,
0b00000,
0b01010,
0b00000,
0b01110,
0b10010,
0b10010,
0b10010,
0b01110,
0b00000,
0b00000
)),229:(5,0,5,(
0b00100,
0b01010,
0b00100,
0b00000,
0b01110,
0b10010,
0b10010,
0b10010,
0b01110,
0b00000,
0b00000
)),230:(8,0,8,(
0b00000000,
0b00000000,
0b00000000,
0b00000000,
0b01101100,
0b00010010,
0b01111110,
0b10010000,
0b01111110,
0b00000000,
0b00000000
)),231:(4,0,4,(
0b0000,
0b0000,
0b0000,
0b0000,
0b0110,
0b1000,
0b1000,
0b1000,
0b0110,
0b0100,
0b1000
)),232:(5,0,5,(
0b00000,
0b01000,
0b00100,
0b00000,
0b01100,
0b10010,
0b11110,
0b10000,
0b01110,
0b00000,
0b00000
)),233:(5,0,5,(
0b00000,
0b00100,
0b01000,
0b00000,
0b01100,
0b10010,
0b11110,
0b10000,
0b01110,
0b00000,
0b00000
)),234:(5,0,5,(
0b00000,
0b00100,
0b01010,
0b00000,
0b01100,
0b10010,
0b11110,
0b10000,
0b01110,
0b00000,
0b00000
)),235:(5,0,5,(
0b00000,
0b00000,
0b01010,
0b00000,
0b01100,
0b10010,
0b11110,
0b10000,
0b01110,
0b00000,
0b00000
)),236:(2,0,2,(
0b00,
0b10,
0b01,
0b00,
0b10,
0b10,
0b10,
0b10,
0b10,
0b00,
0b00
)),237:(2,0,2,(
0b00,
0b01,
0b10,
0b00,
0b10,
0b10,
0b10,
0b10,
0b10,
0b00,
0b00
)),238:(3,0,3,(
0b000,
0b010,
0b101,
0b000,
0b010,
0b010,
0b010,
0b010,
0b010,
0b000,
0b000
)),239:(3,0,3,(
0b000,
0b101,
0b000,
0b000,
0b010,
0b010,
0b010,
0b010,
0b010,
0b000,
0b000
)),240:(5,0,5,(
0b00000,
0b00000,
0b11000,
0b11000,
0b00100,
0b01100,
0b10010,
0b10010,
0b01100,
0b00000,
0b00000
)),241:(5,0,5,(
0b00000,
0b01010,
0b10100,
0b00000,
0b11100,
0b10010,
0b10010,
0b10010,
0b10010,
0b00000,
0b00000
)),242:(5,0,5,(
0b00000,
0b01000,
0b00100,
0b00000,
0b01100,
0b10010,
0b10010,
0b10010,
0b01100,
0b00000,
0b00000
)),243:(5,0,5,(
0b00000,
0b00100,
0b01000,
0b00000,
0b01100,
0b10010,
0b10010,
0b10010,
0b01100,
0b00000,
0b00000
)),244:(5,0,5,(
0b00000,
0b00100,
0b01010,
0b00000,
0b01100,
0b10010,
0b10010,
0b10010,
0b01100,
0b00000,
0b00000
)),245:(5,0,5,(
0b00000,
0b01010,
0b10100,
0b00000,
0b01100,
0b10010,
0b10010,
0b10010,
0b01100,
0b00000,
0b00000
)),246:(5,0,5,(
0b00000,
0b00000,
0b01010,
0b00000,
0b01100,
0b10010,
0b10010,
0b10010,
0b01100,
0b00000,
0b00000
)),247:(6,0,6,(
0b000000,
0b000000,
0b000000,
0b000000,
0b001000,
0b000000,
0b111110,
0b000000,
0b001000,
0b000000,
0b000000
)),248:(7,0,7,(
0b0000000,
0b0000000,
0b0000000,
0b0000000,
0b0011010,
0b0101100,
0b0110100,
0b0100100,
0b1011000,
0b0000000,
0b0000000
)),249:(5,0,5,(
0b00000,
0b01000,
0b00100,
0b00000,
0b10010,
0b10010,
0b10010,
0b10010,
0b01110,
0b00000,
0b00000
)),250:(5,0,5,(
0b00000,
0b00100,
0b01000,
0b00000,
0b10010,
0b10010,
0b10010,
0b10010,
0b01110,
0b00000,
0b00000
)),251:(5,0,5,(
0b00000,
0b00100,
0b01010,
0b00000,
0b10010,
0b10010,
0b10010,
0b10010,
0b01110,
0b00000,
0b00000
)),252:(5,0,5,(
0b00000,
0b00000,
0b01010,
0b00000,
0b10010,
0b10010,
0b10010,
0b10010,
0b01110,
0b00000,
0b00000
)),253:(6,0,6,(
0b000000,
0b000100,
0b001000,
0b000000,
0b100010,
0b010100,
0b010100,
0b001000,
0b001000,
0b010000,
0b100000
)),254:(5,0,5,(
0b00000,
0b00000,
0b10000,
0b10000,
0b11100,
0b10010,
0b10010,
0b10010,
0b11100,
0b10000,
0b10000
)),255:(6,0,6,(
0b000000,
0b000000,
0b010100,
0b000000,
0b100010,
0b010100,
0b010100,
0b001000,
0b001000,
0b010000,
0b100000
)),}
# generated by fontconv
#fontType 36864
#firstChar 9
#lastChar 255
#maxWidth 10
#kernMax 0
#nDescent 0
#fRectWidth 10
#fRectHeight 11
#ascent 9
#descent 2
#leading 0
#averageWidth 5.05
FONTS['pda'] = {
9:(2,0,2,(
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00
)),20:(10,0,10,(
0b0111100000,
0b1111110000,
0b1000010010,
0b1111110100,
0b0111101000,
0b0011000000,
0b0011001010,
0b0011000000,
0b0111001000,
0b0111000100,
0b0011000010
)),21:(5,0,5,(
0b00000,
0b00100,
0b01000,
0b10000,
0b00000,
0b11010,
0b00000,
0b10000,
0b01000,
0b00100,
0b00000
)),22:(7,0,7,(
0b0000000,
0b0000000,
0b0000000,
0b0000010,
0b0000100,
0b0001000,
0b0010000,
0b1100000,
0b1100000,
0b0000000,
0b0000000
)),23:(7,0,7,(
0b0000000,
0b0001000,
0b0010100,
0b0010100,
0b0010100,
0b0001000,
0b0010100,
0b1100010,
0b1100010,
0b0000000,
0b0000000
)),24:(6,0,6,(
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b101010,
0b000000,
0b000000
)),25:(5,0,5,(
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000
)),32:(2,0,2,(
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00
)),33:(2,0,2,(
0b00,
0b00,
0b10,
0b10,
0b10,
0b10,
0b00,
0b10,
0b10,
0b00,
0b00
)),34:(4,0,4,(
0b0000,
0b1010,
0b1010,
0b1010,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000
)),35:(6,0,6,(
0b000000,
0b000000,
0b010100,
0b010100,
0b111110,
0b010100,
0b111110,
0b010100,
0b010100,
0b000000,
0b000000
)),36:(6,0,6,(
0b000000,
0b001000,
0b011110,
0b101000,
0b111100,
0b011110,
0b001010,
0b111100,
0b001000,
0b000000,
0b000000
)),37:(8,0,8,(
0b00000000,
0b00000000,
0b01111110,
0b10100100,
0b10101000,
0b11010110,
0b00101010,
0b01001010,
0b01001100,
0b00000000,
0b00000000
)),38:(7,0,7,(
0b0000000,
0b0000000,
0b0010000,
0b0101000,
0b0101000,
0b0110000,
0b1011010,
0b1001100,
0b1110110,
0b0000000,
0b0000000
)),39:(2,0,2,(
0b00,
0b10,
0b10,
0b10,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00
)),40:(3,0,3,(
0b000,
0b010,
0b100,
0b100,
0b100,
0b100,
0b100,
0b100,
0b100,
0b010,
0b000
)),41:(3,0,3,(
0b000,
0b100,
0b010,
0b010,
0b010,
0b010,
0b010,
0b010,
0b010,
0b100,
0b000
)),42:(6,0,6,(
0b000000,
0b010100,
0b001000,
0b111110,
0b001000,
0b010100,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000
)),43:(6,0,6,(
0b000000,
0b000000,
0b000000,
0b001000,
0b001000,
0b111110,
0b001000,
0b001000,
0b000000,
0b000000,
0b000000
)),44:(3,0,3,(
0b000,
0b000,
0b000,
0b000,
0b000,
0b000,
0b000,
0b000,
0b110,
0b010,
0b100
)),45:(5,0,5,(
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b11110,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000
)),46:(3,0,3,(
0b000,
0b000,
0b000,
0b000,
0b000,
0b000,
0b000,
0b000,
0b110,
0b000,
0b000
)),47:(5,0,5,(
0b00000,
0b00000,
0b00010,
0b00110,
0b00100,
0b01100,
0b01000,
0b11000,
0b10000,
0b00000,
0b00000
)),48:(5,0,5,(
0b00000,
0b00000,
0b11110,
0b10010,
0b10010,
0b10010,
0b10010,
0b10010,
0b11110,
0b00000,
0b00000
)),49:(5,0,5,(
0b00000,
0b00000,
0b00100,
0b01100,
0b00100,
0b00100,
0b00100,
0b00100,
0b01110,
0b00000,
0b00000
)),50:(5,0,5,(
0b00000,
0b00000,
0b11110,
0b00010,
0b00010,
0b11110,
0b10000,
0b10000,
0b11110,
0b00000,
0b00000
)),51:(5,0,5,(
0b00000,
0b00000,
0b11110,
0b00010,
0b00010,
0b11110,
0b00010,
0b00010,
0b11110,
0b00000,
0b00000
)),52:(5,0,5,(
0b00000,
0b00000,
0b10010,
0b10010,
0b10010,
0b11110,
0b00010,
0b00010,
0b00010,
0b00000,
0b00000
)),53:(5,0,5,(
0b00000,
0b00000,
0b11110,
0b10000,
0b10000,
0b11110,
0b00010,
0b00010,
0b11110,
0b00000,
0b00000
)),54:(5,0,5,(
0b00000,
0b00000,
0b11110,
0b10000,
0b10000,
0b11110,
0b10010,
0b10010,
0b11110,
0b00000,
0b00000
)),55:(5,0,5,(
0b00000,
0b00000,
0b11110,
0b00010,
0b00010,
0b00100,
0b01000,
0b01000,
0b01000,
0b00000,
0b00000
)),56:(5,0,5,(
0b00000,
0b00000,
0b11110,
0b10010,
0b10010,
0b11110,
0b10010,
0b10010,
0b11110,
0b00000,
0b00000
)),57:(5,0,5,(
0b00000,
0b00000,
0b11110,
0b10010,
0b10010,
0b11110,
0b00010,
0b00010,
0b11110,
0b00000,
0b00000
)),58:(2,0,2,(
0b00,
0b00,
0b00,
0b10,
0b10,
0b00,
0b00,
0b10,
0b10,
0b00,
0b00
)),59:(3,0,3,(
0b000,
0b000,
0b000,
0b010,
0b010,
0b000,
0b000,
0b010,
0b010,
0b100,
0b000
)),60:(4,0,4,(
0b0000,
0b0000,
0b0000,
0b0010,
0b0100,
0b1000,
0b0100,
0b0010,
0b0000,
0b0000,
0b0000
)),61:(6,0,6,(
0b000000,
0b000000,
0b000000,
0b000000,
0b111110,
0b000000,
0b111110,
0b000000,
0b000000,
0b000000,
0b000000
)),62:(4,0,4,(
0b0000,
0b0000,
0b0000,
0b1000,
0b0100,
0b0010,
0b0100,
0b1000,
0b0000,
0b0000,
0b0000
)),63:(5,0,5,(
0b00000,
0b00000,
0b11100,
0b00010,
0b00010,
0b01100,
0b00000,
0b01000,
0b01000,
0b00000,
0b00000
)),64:(8,0,8,(
0b00000000,
0b00000000,
0b01111100,
0b11000110,
0b10011010,
0b10101010,
0b10111100,
0b11000000,
0b01111110,
0b00000000,
0b00000000
)),65:(5,0,5,(
0b00000,
0b00000,
0b01110,
0b10010,
0b10010,
0b11110,
0b10010,
0b10010,
0b10010,
0b00000,
0b00000
)),66:(5,0,5,(
0b00000,
0b00000,
0b11100,
0b10010,
0b10010,
0b11100,
0b10010,
0b10010,
0b11110,
0b00000,
0b00000
)),67:(5,0,5,(
0b00000,
0b00000,
0b11110,
0b10000,
0b10000,
0b10000,
0b10000,
0b10000,
0b01110,
0b00000,
0b00000
)),68:(5,0,5,(
0b00000,
0b00000,
0b11100,
0b10010,
0b10010,
0b10010,
0b10010,
0b10010,
0b11110,
0b00000,
0b00000
)),69:(5,0,5,(
0b00000,
0b00000,
0b11110,
0b10000,
0b10000,
0b11100,
0b10000,
0b10000,
0b11110,
0b00000,
0b00000
)),70:(5,0,5,(
0b00000,
0b00000,
0b11110,
0b10000,
0b10000,
0b11100,
0b10000,
0b10000,
0b10000,
0b00000,
0b00000
)),71:(5,0,5,(
0b00000,
0b00000,
0b01110,
0b10000,
0b10000,
0b10110,
0b10010,
0b10010,
0b11110,
0b00000,
0b00000
)),72:(5,0,5,(
0b00000,
0b00000,
0b10010,
0b10010,
0b10010,
0b11110,
0b10010,
0b10010,
0b10010,
0b00000,
0b00000
)),73:(2,0,2,(
0b00,
0b00,
0b10,
0b10,
0b10,
0b10,
0b10,
0b10,
0b10,
0b00,
0b00
)),74:(4,0,4,(
0b0000,
0b0000,
0b0010,
0b0010,
0b0010,
0b0010,
0b0010,
0b0010,
0b1100,
0b0000,
0b0000
)),75:(5,0,5,(
0b00000,
0b00000,
0b10010,
0b10010,
0b10100,
0b11000,
0b10100,
0b10010,
0b10010,
0b00000,
0b00000
)),76:(5,0,5,(
0b00000,
0b00000,
0b10000,
0b10000,
0b10000,
0b10000,
0b10000,
0b10000,
0b11110,
0b00000,
0b00000
)),77:(6,0,6,(
0b000000,
0b000000,
0b110110,
0b101010,
0b101010,
0b101010,
0b100010,
0b100010,
0b100010,
0b000000,
0b000000
)),78:(5,0,5,(
0b00000,
0b00000,
0b10010,
0b11010,
0b11110,
0b10110,
0b10010,
0b10010,
0b10010,
0b00000,
0b00000
)),79:(5,0,5,(
0b00000,
0b00000,
0b01110,
0b10010,
0b10010,
0b10010,
0b10010,
0b10010,
0b11100,
0b00000,
0b00000
)),80:(5,0,5,(
0b00000,
0b00000,
0b11110,
0b10010,
0b10010,
0b11100,
0b10000,
0b10000,
0b10000,
0b00000,
0b00000
)),81:(5,0,5,(
0b00000,
0b00000,
0b01110,
0b10010,
0b10010,
0b10010,
0b10010,
0b10110,
0b11100,
0b00010,
0b00000
)),82:(5,0,5,(
0b00000,
0b00000,
0b11110,
0b10010,
0b10010,
0b11100,
0b10100,
0b10010,
0b10010,
0b00000,
0b00000
)),83:(5,0,5,(
0b00000,
0b00000,
0b01110,
0b10000,
0b11000,
0b01100,
0b00110,
0b00010,
0b11100,
0b00000,
0b00000
)),84:(6,0,6,(
0b000000,
0b000000,
0b111110,
0b001000,
0b001000,
0b001000,
0b001000,
0b001000,
0b001000,
0b000000,
0b000000
)),85:(5,0,5,(
0b00000,
0b00000,
0b10010,
0b10010,
0b10010,
0b10010,
0b10010,
0b10010,
0b01110,
0b00000,
0b00000
)),86:(5,0,5,(
0b00000,
0b00000,
0b10010,
0b10010,
0b10010,
0b10010,
0b10010,
0b10100,
0b01000,
0b00000,
0b00000
)),87:(6,0,6,(
0b000000,
0b000000,
0b100010,
0b100010,
0b101010,
0b101010,
0b101010,
0b101010,
0b110110,
0b000000,
0b000000
)),88:(6,0,6,(
0b000000,
0b000000,
0b100010,
0b100010,
0b010100,
0b001000,
0b010100,
0b100010,
0b100010,
0b000000,
0b000000
)),89:(6,0,6,(
0b000000,
0b000000,
0b100010,
0b100010,
0b010100,
0b001000,
0b001000,
0b001000,
0b001000,
0b000000,
0b000000
)),90:(5,0,5,(
0b00000,
0b00000,
0b11110,
0b00010,
0b00100,
0b01000,
0b10000,
0b10000,
0b11110,
0b00000,
0b00000
)),91:(3,0,3,(
0b000,
0b110,
0b100,
0b100,
0b100,
0b100,
0b100,
0b100,
0b100,
0b110,
0b000
)),92:(5,0,5,(
0b00000,
0b00000,
0b10000,
0b11000,
0b01000,
0b01100,
0b00100,
0b00110,
0b00010,
0b00000,
0b00000
)),93:(3,0,3,(
0b000,
0b110,
0b010,
0b010,
0b010,
0b010,
0b010,
0b010,
0b010,
0b110,
0b000
)),94:(6,0,6,(
0b000000,
0b000000,
0b001000,
0b010100,
0b100010,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000
)),95:(4,0,4,(
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b1111,
0b0000
)),96:(3,0,3,(
0b000,
0b100,
0b010,
0b000,
0b000,
0b000,
0b000,
0b000,
0b000,
0b000,
0b000
)),97:(5,0,5,(
0b00000,
0b00000,
0b00000,
0b00000,
0b11100,
0b00010,
0b11110,
0b10010,
0b11110,
0b00000,
0b00000
)),98:(5,0,5,(
0b00000,
0b00000,
0b10000,
0b10000,
0b11100,
0b10010,
0b10010,
0b10010,
0b11110,
0b00000,
0b00000
)),99:(4,0,4,(
0b0000,
0b0000,
0b0000,
0b0000,
0b1110,
0b1000,
0b1000,
0b1000,
0b0110,
0b0000,
0b0000
)),100:(5,0,5,(
0b00000,
0b00000,
0b00010,
0b00010,
0b01110,
0b10010,
0b10010,
0b10010,
0b11110,
0b00000,
0b00000
)),101:(5,0,5,(
0b00000,
0b00000,
0b00000,
0b00000,
0b01100,
0b10010,
0b10100,
0b11000,
0b01110,
0b00000,
0b00000
)),102:(4,0,4,(
0b0000,
0b0000,
0b0011,
0b0100,
0b1110,
0b0100,
0b0100,
0b0100,
0b0100,
0b0000,
0b0000
)),103:(5,0,5,(
0b00000,
0b00000,
0b00000,
0b00000,
0b01110,
0b10010,
0b10010,
0b10010,
0b11110,
0b00010,
0b11100
)),104:(5,0,5,(
0b00000,
0b00000,
0b10000,
0b10000,
0b11100,
0b10010,
0b10010,
0b10010,
0b10010,
0b00000,
0b00000
)),105:(2,0,2,(
0b00,
0b00,
0b10,
0b00,
0b10,
0b10,
0b10,
0b10,
0b10,
0b00,
0b00
)),106:(3,0,3,(
0b000,
0b000,
0b010,
0b000,
0b010,
0b010,
0b010,
0b010,
0b010,
0b010,
0b100
)),107:(5,0,5,(
0b00000,
0b00000,
0b10000,
0b10000,
0b10010,
0b10100,
0b11100,
0b10010,
0b10010,
0b00000,
0b00000
)),108:(2,0,2,(
0b00,
0b00,
0b10,
0b10,
0b10,
0b10,
0b10,
0b10,
0b10,
0b00,
0b00
)),109:(8,0,8,(
0b00000000,
0b00000000,
0b00000000,
0b00000000,
0b11101100,
0b10010010,
0b10010010,
0b10010010,
0b10010010,
0b00000000,
0b00000000
)),110:(5,0,5,(
0b00000,
0b00000,
0b00000,
0b00000,
0b11100,
0b10010,
0b10010,
0b10010,
0b10010,
0b00000,
0b00000
)),111:(5,0,5,(
0b00000,
0b00000,
0b00000,
0b00000,
0b01100,
0b10010,
0b10010,
0b10010,
0b01100,
0b00000,
0b00000
)),112:(5,0,5,(
0b00000,
0b00000,
0b00000,
0b00000,
0b11100,
0b10010,
0b10010,
0b10010,
0b11110,
0b10000,
0b10000
)),113:(5,0,5,(
0b00000,
0b00000,
0b00000,
0b00000,
0b01110,
0b10010,
0b10010,
0b10010,
0b11110,
0b00010,
0b00010
)),114:(4,0,4,(
0b0000,
0b0000,
0b0000,
0b0000,
0b1110,
0b1000,
0b1000,
0b1000,
0b1000,
0b0000,
0b0000
)),115:(5,0,5,(
0b00000,
0b00000,
0b00000,
0b00000,
0b01110,
0b10000,
0b11110,
0b00010,
0b11100,
0b00000,
0b00000
)),116:(5,0,5,(
0b00000,
0b00000,
0b01000,
0b01000,
0b11110,
0b01000,
0b01000,
0b01000,
0b00110,
0b00000,
0b00000
)),117:(5,0,5,(
0b00000,
0b00000,
0b00000,
0b00000,
0b10010,
0b10010,
0b10010,
0b10010,
0b01110,
0b00000,
0b00000
)),118:(5,0,5,(
0b00000,
0b00000,
0b00000,
0b00000,
0b10010,
0b10010,
0b10010,
0b10100,
0b01000,
0b00000,
0b00000
)),119:(6,0,6,(
0b000000,
0b000000,
0b000000,
0b000000,
0b101010,
0b101010,
0b101010,
0b101010,
0b111100,
0b000000,
0b000000
)),120:(5,0,5,(
0b00000,
0b00000,
0b00000,
0b00000,
0b10010,
0b10010,
0b01100,
0b10010,
0b10010,
0b00000,
0b00000
)),121:(5,0,5,(
0b00000,
0b00000,
0b00000,
0b00000,
0b10010,
0b10010,
0b10010,
0b01110,
0b00010,
0b00100,
0b11000
)),122:(5,0,5,(
0b00000,
0b00000,
0b00000,
0b00000,
0b11110,
0b00100,
0b01000,
0b10000,
0b11110,
0b00000,
0b00000
)),123:(4,0,4,(
0b0000,
0b0010,
0b0100,
0b0100,
0b0100,
0b1000,
0b0100,
0b0100,
0b0100,
0b0010,
0b0000
)),124:(2,0,2,(
0b00,
0b10,
0b10,
0b10,
0b10,
0b10,
0b10,
0b10,
0b10,
0b10,
0b00
)),125:(4,0,4,(
0b0000,
0b1000,
0b0100,
0b0100,
0b0100,
0b0010,
0b0100,
0b0100,
0b0100,
0b1000,
0b0000
)),126:(6,0,6,(
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b011010,
0b101100,
0b000000,
0b000000,
0b000000,
0b000000
)),128:(7,0,7,(
0b0000000,
0b0000000,
0b0011100,
0b0100010,
0b1111000,
0b0100000,
0b1110000,
0b0100010,
0b0011100,
0b0000000,
0b0000000
)),130:(3,0,3,(
0b000,
0b000,
0b000,
0b000,
0b000,
0b000,
0b000,
0b000,
0b110,
0b010,
0b100
)),131:(5,0,5,(
0b00000,
0b00000,
0b00110,
0b01000,
0b11100,
0b01000,
0b01000,
0b01000,
0b01000,
0b10000,
0b00000
)),132:(5,0,5,(
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b11110,
0b01010,
0b10100
)),133:(6,0,6,(
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b101010,
0b000000,
0b000000
)),134:(6,0,6,(
0b000000,
0b000000,
0b001000,
0b001000,
0b111110,
0b001000,
0b001000,
0b001000,
0b001000,
0b001000,
0b001000
)),135:(6,0,6,(
0b000000,
0b000000,
0b001000,
0b001000,
0b111110,
0b001000,
0b001000,
0b001000,
0b111110,
0b001000,
0b001000
)),136:(4,0,4,(
0b0000,
0b0000,
0b0100,
0b1010,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000
)),137:(10,0,10,(
0b0000000000,
0b0000000000,
0b0111110000,
0b1010010000,
0b1010100000,
0b1101011110,
0b0010101010,
0b0100101010,
0b0100111100,
0b0000000000,
0b0000000000
)),138:(5,0,5,(
0b01010,
0b00100,
0b00000,
0b01110,
0b10000,
0b01100,
0b00010,
0b00010,
0b11100,
0b00000,
0b00000
)),139:(4,0,4,(
0b0000,
0b0000,
0b0000,
0b0010,
0b0100,
0b1000,
0b0100,
0b0010,
0b0000,
0b0000,
0b0000
)),140:(8,0,8,(
0b00000000,
0b00000000,
0b00111110,
0b01001000,
0b10001000,
0b10001110,
0b10001000,
0b01001000,
0b00111110,
0b00000000,
0b00000000
)),141:(10,0,10,(
0b0000000000,
0b0000100000,
0b0001010000,
0b0010001000,
0b0100000100,
0b1000000010,
0b0100000100,
0b0010001000,
0b0001010000,
0b0000100000,
0b0000000000
)),142:(10,0,10,(
0b0000000000,
0b0001110000,
0b0011111000,
0b0101110100,
0b1111111110,
0b1111111110,
0b1111111110,
0b0110101100,
0b0001110000,
0b0011111000,
0b0000000000
)),143:(10,0,10,(
0b0000000000,
0b0110001100,
0b1001010010,
0b1000100010,
0b1000000010,
0b1000000010,
0b0100000100,
0b0010001000,
0b0001010000,
0b0000100000,
0b0000000000
)),144:(10,0,10,(
0b0000000000,
0b0000100000,
0b0001110000,
0b0011111000,
0b0111111100,
0b1111111110,
0b1111111110,
0b0110101100,
0b0001110000,
0b0011111000,
0b0000000000
)),145:(3,0,3,(
0b000,
0b010,
0b100,
0b110,
0b000,
0b000,
0b000,
0b000,
0b000,
0b000,
0b000
)),146:(3,0,3,(
0b000,
0b110,
0b010,
0b100,
0b000,
0b000,
0b000,
0b000,
0b000,
0b000,
0b000
)),147:(5,0,5,(
0b00000,
0b01010,
0b10100,
0b11110,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000
)),148:(5,0,5,(
0b00000,
0b11110,
0b01010,
0b10100,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000
)),149:(4,0,4,(
0b0000,
0b0000,
0b0000,
0b0000,
0b1110,
0b1110,
0b1110,
0b0000,
0b0000,
0b0000,
0b0000
)),150:(4,0,4,(
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b1111,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000
)),151:(7,0,7,(
0b0000000,
0b0000000,
0b0000000,
0b0000000,
0b0000000,
0b1111111,
0b0000000,
0b0000000,
0b0000000,
0b0000000,
0b0000000
)),152:(6,0,6,(
0b000000,
0b000000,
0b000000,
0b011010,
0b101100,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000
)),153:(10,0,10,(
0b0000000000,
0b0000000000,
0b1110100010,
0b0100110110,
0b0100101010,
0b0000000000,
0b0000000000,
0b0000000000,
0b0000000000,
0b0000000000,
0b0000000000
)),154:(4,0,4,(
0b0000,
0b1010,
0b0100,
0b0000,
0b0110,
0b1000,
0b0100,
0b0010,
0b1100,
0b0000,
0b0000
)),155:(4,0,4,(
0b0000,
0b0000,
0b0000,
0b1000,
0b0100,
0b0010,
0b0100,
0b1000,
0b0000,
0b0000,
0b0000
)),156:(8,0,8,(
0b00000000,
0b00000000,
0b00000000,
0b00000000,
0b01101100,
0b10010010,
0b10010100,
0b10011000,
0b01101110,
0b00000000,
0b00000000
)),157:(7,0,7,(
0b0000000,
0b0000000,
0b0000000,
0b0000010,
0b0000100,
0b0001000,
0b0010000,
0b1100000,
0b1100000,
0b0000000,
0b0000000
)),158:(7,0,7,(
0b0000000,
0b0001000,
0b0010100,
0b0010100,
0b0010100,
0b0001000,
0b0010100,
0b1100010,
0b1100010,
0b0000000,
0b0000000
)),159:(6,0,6,(
0b000000,
0b010100,
0b000000,
0b100010,
0b100010,
0b010100,
0b001000,
0b001000,
0b001000,
0b000000,
0b000000
)),160:(2,0,2,(
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00
)),161:(2,0,2,(
0b00,
0b00,
0b00,
0b00,
0b10,
0b10,
0b00,
0b10,
0b10,
0b10,
0b10
)),162:(6,0,6,(
0b000000,
0b001000,
0b011100,
0b101010,
0b101000,
0b101000,
0b101010,
0b011100,
0b001000,
0b000000,
0b000000
)),163:(6,0,6,(
0b000000,
0b000000,
0b001100,
0b010000,
0b010000,
0b111000,
0b010000,
0b010000,
0b110000,
0b001110,
0b000000
)),164:(8,0,8,(
0b00000000,
0b00000000,
0b10010010,
0b01101100,
0b01000100,
0b10000010,
0b01000100,
0b01101100,
0b10010010,
0b00000000,
0b00000000
)),165:(6,0,6,(
0b000000,
0b000000,
0b100010,
0b010100,
0b111110,
0b001000,
0b111110,
0b001000,
0b001000,
0b000000,
0b000000
)),166:(2,0,2,(
0b00,
0b00,
0b10,
0b10,
0b10,
0b10,
0b00,
0b10,
0b10,
0b10,
0b10
)),167:(5,0,5,(
0b00000,
0b11110,
0b10010,
0b11000,
0b10100,
0b10010,
0b01010,
0b00110,
0b10010,
0b11110,
0b00000
)),168:(4,0,4,(
0b0000,
0b0000,
0b0000,
0b1010,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000
)),169:(8,0,8,(
0b00000000,
0b00000000,
0b01111100,
0b10000010,
0b10111010,
0b10100010,
0b10111010,
0b10000010,
0b01111100,
0b00000000,
0b00000000
)),170:(5,0,5,(
0b00000,
0b00000,
0b01110,
0b10010,
0b01110,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000
)),171:(6,0,6,(
0b000000,
0b000000,
0b000000,
0b000000,
0b001010,
0b010100,
0b101000,
0b010100,
0b001010,
0b000000,
0b000000
)),172:(6,0,6,(
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b111110,
0b000010,
0b000010,
0b000000,
0b000000,
0b000000
)),173:(4,0,4,(
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b1110,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000
)),174:(8,0,8,(
0b00000000,
0b00000000,
0b01111100,
0b10000010,
0b10111010,
0b10110010,
0b10101010,
0b10000010,
0b01111100,
0b00000000,
0b00000000
)),175:(6,0,6,(
0b000000,
0b111110,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000
)),176:(5,0,5,(
0b00000,
0b01100,
0b10010,
0b10010,
0b01100,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000
)),177:(6,0,6,(
0b000000,
0b000000,
0b001000,
0b001000,
0b111110,
0b001000,
0b001000,
0b111110,
0b000000,
0b000000,
0b000000
)),178:(4,0,4,(
0b0000,
0b1110,
0b0010,
0b1110,
0b1000,
0b1110,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000
)),179:(4,0,4,(
0b0000,
0b1110,
0b0010,
0b0110,
0b0010,
0b1110,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000
)),180:(3,0,3,(
0b000,
0b010,
0b100,
0b000,
0b000,
0b000,
0b000,
0b000,
0b000,
0b000,
0b000
)),181:(5,0,5,(
0b00000,
0b00000,
0b00000,
0b00000,
0b10010,
0b10010,
0b10010,
0b10010,
0b11110,
0b10000,
0b10000
)),182:(6,0,6,(
0b000000,
0b000000,
0b011110,
0b111010,
0b111010,
0b011010,
0b001010,
0b001010,
0b001010,
0b000000,
0b000000
)),183:(2,0,2,(
0b00,
0b00,
0b00,
0b00,
0b10,
0b10,
0b00,
0b00,
0b00,
0b00,
0b00
)),184:(4,0,4,(
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0100,
0b0010,
0b1100
)),185:(2,0,2,(
0b00,
0b00,
0b10,
0b10,
0b10,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00
)),186:(5,0,5,(
0b00000,
0b00000,
0b01100,
0b10010,
0b01100,
0b00000,
0b11110,
0b00000,
0b00000,
0b00000,
0b00000
)),187:(6,0,6,(
0b000000,
0b000000,
0b000000,
0b000000,
0b101000,
0b010100,
0b001010,
0b010100,
0b101000,
0b000000,
0b000000
)),188:(7,0,7,(
0b0100000,
0b0100000,
0b0100010,
0b0100100,
0b0101010,
0b0010110,
0b0101010,
0b1001110,
0b0000010,
0b0000010,
0b0000000
)),189:(7,0,7,(
0b0100000,
0b0100000,
0b0100010,
0b0100100,
0b0101000,
0b0011110,
0b0100010,
0b1001110,
0b0001000,
0b0001110,
0b0000000
)),190:(7,0,7,(
0b1110000,
0b0010000,
0b0110010,
0b0010100,
0b1111000,
0b0011010,
0b0101010,
0b1001110,
0b0000010,
0b0000010,
0b0000000
)),191:(5,0,5,(
0b00000,
0b00000,
0b00100,
0b00000,
0b00100,
0b01100,
0b10000,
0b10000,
0b01110,
0b00000,
0b00000
)),192:(5,0,5,(
0b01000,
0b00100,
0b00000,
0b01110,
0b10010,
0b10010,
0b11110,
0b10010,
0b10010,
0b00000,
0b00000
)),193:(5,0,5,(
0b00100,
0b01000,
0b00000,
0b01110,
0b10010,
0b10010,
0b11110,
0b10010,
0b10010,
0b00000,
0b00000
)),194:(5,0,5,(
0b00100,
0b01010,
0b00000,
0b01110,
0b10010,
0b10010,
0b11110,
0b10010,
0b10010,
0b00000,
0b00000
)),195:(5,0,5,(
0b01010,
0b10100,
0b00000,
0b01110,
0b10010,
0b10010,
0b11110,
0b10010,
0b10010,
0b00000,
0b00000
)),196:(5,0,5,(
0b00000,
0b01010,
0b00000,
0b01110,
0b10010,
0b10010,
0b11110,
0b10010,
0b10010,
0b00000,
0b00000
)),197:(5,0,5,(
0b01100,
0b10010,
0b01100,
0b01110,
0b10010,
0b10010,
0b11110,
0b10010,
0b10010,
0b00000,
0b00000
)),198:(7,0,7,(
0b0000000,
0b0000000,
0b0111110,
0b1001000,
0b1001000,
0b1111110,
0b1001000,
0b1001000,
0b1001110,
0b0000000,
0b0000000
)),199:(5,0,5,(
0b00000,
0b00000,
0b00110,
0b01000,
0b10000,
0b10000,
0b10000,
0b01000,
0b00110,
0b00100,
0b01000
)),200:(5,0,5,(
0b01000,
0b00100,
0b00000,
0b11110,
0b10000,
0b11100,
0b10000,
0b10000,
0b11110,
0b00000,
0b00000
)),201:(5,0,5,(
0b00100,
0b01000,
0b00000,
0b11110,
0b10000,
0b11100,
0b10000,
0b10000,
0b11110,
0b00000,
0b00000
)),202:(5,0,5,(
0b00100,
0b01010,
0b00000,
0b11110,
0b10000,
0b11100,
0b10000,
0b10000,
0b11110,
0b00000,
0b00000
)),203:(5,0,5,(
0b00000,
0b01010,
0b00000,
0b11110,
0b10000,
0b11100,
0b10000,
0b10000,
0b11110,
0b00000,
0b00000
)),204:(3,0,3,(
0b100,
0b010,
0b000,
0b010,
0b010,
0b010,
0b010,
0b010,
0b010,
0b000,
0b000
)),205:(2,0,2,(
0b01,
0b10,
0b00,
0b10,
0b10,
0b10,
0b10,
0b10,
0b10,
0b00,
0b00
)),206:(3,0,3,(
0b010,
0b101,
0b000,
0b010,
0b010,
0b010,
0b010,
0b010,
0b010,
0b000,
0b000
)),207:(3,0,3,(
0b000,
0b101,
0b000,
0b010,
0b010,
0b010,
0b010,
0b010,
0b010,
0b000,
0b000
)),208:(6,0,6,(
0b000000,
0b000000,
0b011100,
0b010010,
0b010010,
0b111010,
0b010010,
0b010010,
0b011110,
0b000000,
0b000000
)),209:(5,0,5,(
0b01010,
0b10100,
0b00000,
0b10010,
0b11010,
0b11110,
0b10110,
0b10010,
0b10010,
0b00000,
0b00000
)),210:(5,0,5,(
0b01000,
0b00100,
0b00000,
0b01110,
0b10010,
0b10010,
0b10010,
0b10010,
0b11100,
0b00000,
0b00000
)),211:(5,0,5,(
0b00100,
0b01000,
0b00000,
0b01110,
0b10010,
0b10010,
0b10010,
0b10010,
0b11100,
0b00000,
0b00000
)),212:(5,0,5,(
0b00100,
0b01010,
0b00000,
0b01110,
0b10010,
0b10010,
0b10010,
0b10010,
0b11100,
0b00000,
0b00000
)),213:(5,0,5,(
0b01010,
0b10100,
0b00000,
0b01110,
0b10010,
0b10010,
0b10010,
0b10010,
0b11100,
0b00000,
0b00000
)),214:(5,0,5,(
0b00000,
0b01010,
0b00000,
0b01110,
0b10010,
0b10010,
0b10010,
0b10010,
0b11100,
0b00000,
0b00000
)),215:(5,0,5,(
0b00000,
0b00000,
0b00000,
0b00000,
0b10010,
0b01100,
0b01100,
0b10010,
0b00000,
0b00000,
0b00000
)),216:(8,0,8,(
0b00000000,
0b00000000,
0b00111010,
0b01000100,
0b10001010,
0b10010010,
0b10100010,
0b01000100,
0b10111000,
0b00000000,
0b00000000
)),217:(5,0,5,(
0b01000,
0b00100,
0b00000,
0b10010,
0b10010,
0b10010,
0b10010,
0b10010,
0b01110,
0b00000,
0b00000
)),218:(5,0,5,(
0b00100,
0b01000,
0b00000,
0b10010,
0b10010,
0b10010,
0b10010,
0b10010,
0b01110,
0b00000,
0b00000
)),219:(5,0,5,(
0b00100,
0b01010,
0b00000,
0b10010,
0b10010,
0b10010,
0b10010,
0b10010,
0b01110,
0b00000,
0b00000
)),220:(5,0,5,(
0b00000,
0b01010,
0b00000,
0b10010,
0b10010,
0b10010,
0b10010,
0b10010,
0b01110,
0b00000,
0b00000
)),221:(6,0,6,(
0b000100,
0b001000,
0b000000,
0b100010,
0b100010,
0b011100,
0b001000,
0b001000,
0b001000,
0b000000,
0b000000
)),222:(6,0,6,(
0b000000,
0b000000,
0b100000,
0b111100,
0b100010,
0b100010,
0b100010,
0b111100,
0b100000,
0b000000,
0b000000
)),223:(6,0,6,(
0b000000,
0b000000,
0b011000,
0b100100,
0b100100,
0b101100,
0b100010,
0b100010,
0b101100,
0b000000,
0b000000
)),224:(5,0,5,(
0b00000,
0b01000,
0b00100,
0b00000,
0b11100,
0b00010,
0b11110,
0b10010,
0b11110,
0b00000,
0b00000
)),225:(5,0,5,(
0b00000,
0b00100,
0b01000,
0b00000,
0b11100,
0b00010,
0b11110,
0b10010,
0b11110,
0b00000,
0b00000
)),226:(5,0,5,(
0b00000,
0b00100,
0b01010,
0b00000,
0b11100,
0b00010,
0b11110,
0b10010,
0b11110,
0b00000,
0b00000
)),227:(5,0,5,(
0b00000,
0b01010,
0b10100,
0b00000,
0b11100,
0b00010,
0b11110,
0b10010,
0b11110,
0b00000,
0b00000
)),228:(5,0,5,(
0b00000,
0b00000,
0b01010,
0b00000,
0b11100,
0b00010,
0b11110,
0b10010,
0b11110,
0b00000,
0b00000
)),229:(5,0,5,(
0b01100,
0b10010,
0b01100,
0b00000,
0b11100,
0b00010,
0b11110,
0b10010,
0b11110,
0b00000,
0b00000
)),230:(8,0,8,(
0b00000000,
0b00000000,
0b00000000,
0b00000000,
0b11101100,
0b00010010,
0b11110100,
0b10011000,
0b11111110,
0b00000000,
0b00000000
)),231:(4,0,4,(
0b0000,
0b0000,
0b0000,
0b0000,
0b0110,
0b1000,
0b1000,
0b1000,
0b0110,
0b0100,
0b1000
)),232:(5,0,5,(
0b00000,
0b01000,
0b00100,
0b00000,
0b01100,
0b10010,
0b10100,
0b11000,
0b01110,
0b00000,
0b00000
)),233:(5,0,5,(
0b00000,
0b00100,
0b01000,
0b00000,
0b01100,
0b10010,
0b10100,
0b11000,
0b01110,
0b00000,
0b00000
)),234:(5,0,5,(
0b00000,
0b00100,
0b01010,
0b00000,
0b01100,
0b10010,
0b10100,
0b11000,
0b01110,
0b00000,
0b00000
)),235:(5,0,5,(
0b00000,
0b00000,
0b01010,
0b00000,
0b01100,
0b10010,
0b10100,
0b11000,
0b01110,
0b00000,
0b00000
)),236:(2,0,2,(
0b00,
0b10,
0b01,
0b00,
0b10,
0b10,
0b10,
0b10,
0b10,
0b00,
0b00
)),237:(2,0,2,(
0b00,
0b01,
0b10,
0b00,
0b10,
0b10,
0b10,
0b10,
0b10,
0b00,
0b00
)),238:(3,0,3,(
0b000,
0b010,
0b101,
0b000,
0b010,
0b010,
0b010,
0b010,
0b010,
0b000,
0b000
)),239:(3,0,3,(
0b000,
0b101,
0b000,
0b000,
0b010,
0b010,
0b010,
0b010,
0b010,
0b000,
0b000
)),240:(5,0,5,(
0b00000,
0b00000,
0b11000,
0b11000,
0b00100,
0b01100,
0b10010,
0b10010,
0b01100,
0b00000,
0b00000
)),241:(5,0,5,(
0b00000,
0b01010,
0b10100,
0b00000,
0b11100,
0b10010,
0b10010,
0b10010,
0b10010,
0b00000,
0b00000
)),242:(5,0,5,(
0b00000,
0b01000,
0b00100,
0b00000,
0b01100,
0b10010,
0b10010,
0b10010,
0b01100,
0b00000,
0b00000
)),243:(5,0,5,(
0b00000,
0b00100,
0b01000,
0b00000,
0b01100,
0b10010,
0b10010,
0b10010,
0b01100,
0b00000,
0b00000
)),244:(5,0,5,(
0b00000,
0b00100,
0b01010,
0b00000,
0b01100,
0b10010,
0b10010,
0b10010,
0b01100,
0b00000,
0b00000
)),245:(5,0,5,(
0b00000,
0b01010,
0b10100,
0b00000,
0b01100,
0b10010,
0b10010,
0b10010,
0b01100,
0b00000,
0b00000
)),246:(5,0,5,(
0b00000,
0b00000,
0b01010,
0b00000,
0b01100,
0b10010,
0b10010,
0b10010,
0b01100,
0b00000,
0b00000
)),247:(6,0,6,(
0b000000,
0b000000,
0b000000,
0b001000,
0b000000,
0b111110,
0b000000,
0b001000,
0b000000,
0b000000,
0b000000
)),248:(7,0,7,(
0b0000000,
0b0000000,
0b0000000,
0b0000000,
0b0011010,
0b0101100,
0b0110100,
0b0100100,
0b1011000,
0b0000000,
0b0000000
)),249:(5,0,5,(
0b00000,
0b01000,
0b00100,
0b00000,
0b10010,
0b10010,
0b10010,
0b10010,
0b01110,
0b00000,
0b00000
)),250:(5,0,5,(
0b00000,
0b00100,
0b01000,
0b00000,
0b10010,
0b10010,
0b10010,
0b10010,
0b01110,
0b00000,
0b00000
)),251:(5,0,5,(
0b00000,
0b00100,
0b01010,
0b00000,
0b10010,
0b10010,
0b10010,
0b10010,
0b01110,
0b00000,
0b00000
)),252:(5,0,5,(
0b00000,
0b00000,
0b01010,
0b00000,
0b10010,
0b10010,
0b10010,
0b10010,
0b01110,
0b00000,
0b00000
)),253:(5,0,5,(
0b00000,
0b00100,
0b01000,
0b00000,
0b10010,
0b10010,
0b10010,
0b01110,
0b00010,
0b00100,
0b11000
)),254:(5,0,5,(
0b00000,
0b00000,
0b10000,
0b10000,
0b11100,
0b10010,
0b10010,
0b10010,
0b11100,
0b10000,
0b10000
)),255:(5,0,5,(
0b00000,
0b00000,
0b01010,
0b00000,
0b10010,
0b10010,
0b10010,
0b01110,
0b00010,
0b00100,
0b11000
)),}
# generated by fontconv
#fontType 36864
#firstChar 9
#lastChar 255
#maxWidth 11
#kernMax 0
#nDescent 0
#fRectWidth 11
#fRectHeight 11
#ascent 9
#descent 2
#leading 0
#averageWidth 5.75
FONTS['pdabold'] = {
9:(2,0,2,(
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00
)),20:(10,0,10,(
0b0111100000,
0b1111110000,
0b1000010010,
0b1111110100,
0b0111101000,
0b0011000000,
0b0011001010,
0b0011000000,
0b0111001000,
0b0111000100,
0b0011000010
)),21:(5,0,5,(
0b00000,
0b00100,
0b01000,
0b10000,
0b00000,
0b11010,
0b00000,
0b10000,
0b01000,
0b00100,
0b00000
)),22:(8,0,8,(
0b00000000,
0b00000000,
0b00000110,
0b00001100,
0b00011000,
0b00110000,
0b11100000,
0b11100000,
0b11100000,
0b00000000,
0b00000000
)),23:(7,0,7,(
0b0000000,
0b0011000,
0b0110100,
0b0110100,
0b0110100,
0b0011000,
0b0110100,
0b1100010,
0b1100010,
0b0000000,
0b0000000
)),24:(6,0,6,(
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b101010,
0b101010,
0b000000,
0b000000
)),25:(5,0,5,(
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000
)),32:(2,0,2,(
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00
)),33:(3,0,3,(
0b000,
0b000,
0b110,
0b110,
0b110,
0b110,
0b000,
0b110,
0b110,
0b000,
0b000
)),34:(4,0,4,(
0b0000,
0b1010,
0b1010,
0b1010,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000
)),35:(6,0,6,(
0b000000,
0b000000,
0b010100,
0b010100,
0b111110,
0b010100,
0b111110,
0b010100,
0b010100,
0b000000,
0b000000
)),36:(6,0,6,(
0b000000,
0b001000,
0b011110,
0b101000,
0b111100,
0b011110,
0b001010,
0b111100,
0b001000,
0b000000,
0b000000
)),37:(8,0,8,(
0b00000000,
0b00000000,
0b01111110,
0b10100100,
0b10101000,
0b11010110,
0b00101010,
0b01001010,
0b01001100,
0b00000000,
0b00000000
)),38:(7,0,7,(
0b0000000,
0b0000000,
0b0010000,
0b0101000,
0b0101000,
0b0110000,
0b1011010,
0b1001100,
0b1110110,
0b0000000,
0b0000000
)),39:(2,0,2,(
0b00,
0b10,
0b10,
0b10,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00
)),40:(4,0,4,(
0b0000,
0b0010,
0b0100,
0b1100,
0b1100,
0b1100,
0b1100,
0b1100,
0b0100,
0b0010,
0b0000
)),41:(4,0,4,(
0b0000,
0b1000,
0b0100,
0b0110,
0b0110,
0b0110,
0b0110,
0b0110,
0b0100,
0b1000,
0b0000
)),42:(6,0,6,(
0b000000,
0b000000,
0b010100,
0b001000,
0b111110,
0b001000,
0b010100,
0b000000,
0b000000,
0b000000,
0b000000
)),43:(6,0,6,(
0b000000,
0b000000,
0b000000,
0b001000,
0b001000,
0b111110,
0b001000,
0b001000,
0b000000,
0b000000,
0b000000
)),44:(3,0,3,(
0b000,
0b000,
0b000,
0b000,
0b000,
0b000,
0b000,
0b000,
0b110,
0b010,
0b100
)),45:(5,0,5,(
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b11110,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000
)),46:(3,0,3,(
0b000,
0b000,
0b000,
0b000,
0b000,
0b000,
0b000,
0b110,
0b110,
0b000,
0b000
)),47:(5,0,5,(
0b00000,
0b00000,
0b00010,
0b00110,
0b00100,
0b01100,
0b01000,
0b11000,
0b10000,
0b00000,
0b00000
)),48:(6,0,6,(
0b000000,
0b000000,
0b111110,
0b110110,
0b110110,
0b110110,
0b110110,
0b110110,
0b111110,
0b000000,
0b000000
)),49:(6,0,6,(
0b000000,
0b000000,
0b001100,
0b011100,
0b001100,
0b001100,
0b001100,
0b001100,
0b011110,
0b000000,
0b000000
)),50:(6,0,6,(
0b000000,
0b000000,
0b111110,
0b000110,
0b000110,
0b111110,
0b110000,
0b110000,
0b111110,
0b000000,
0b000000
)),51:(6,0,6,(
0b000000,
0b000000,
0b111110,
0b000110,
0b000110,
0b011110,
0b000110,
0b000110,
0b111110,
0b000000,
0b000000
)),52:(6,0,6,(
0b000000,
0b000000,
0b110110,
0b110110,
0b110110,
0b111110,
0b000110,
0b000110,
0b000110,
0b000000,
0b000000
)),53:(6,0,6,(
0b000000,
0b000000,
0b111110,
0b110000,
0b110000,
0b111110,
0b000110,
0b000110,
0b111110,
0b000000,
0b000000
)),54:(6,0,6,(
0b000000,
0b000000,
0b111110,
0b110000,
0b110000,
0b111110,
0b110110,
0b110110,
0b111110,
0b000000,
0b000000
)),55:(6,0,6,(
0b000000,
0b000000,
0b111110,
0b000110,
0b000110,
0b001100,
0b011000,
0b011000,
0b011000,
0b000000,
0b000000
)),56:(6,0,6,(
0b000000,
0b000000,
0b111110,
0b110110,
0b110110,
0b011100,
0b110110,
0b110110,
0b111110,
0b000000,
0b000000
)),57:(6,0,6,(
0b000000,
0b000000,
0b111110,
0b110110,
0b110110,
0b111110,
0b000110,
0b000110,
0b111110,
0b000000,
0b000000
)),58:(3,0,3,(
0b000,
0b000,
0b000,
0b110,
0b110,
0b000,
0b000,
0b110,
0b110,
0b000,
0b000
)),59:(3,0,3,(
0b000,
0b000,
0b000,
0b110,
0b110,
0b000,
0b000,
0b110,
0b010,
0b100,
0b000
)),60:(5,0,5,(
0b00000,
0b00000,
0b00000,
0b00110,
0b01100,
0b11000,
0b01100,
0b00110,
0b00000,
0b00000,
0b00000
)),61:(6,0,6,(
0b000000,
0b000000,
0b000000,
0b000000,
0b111110,
0b000000,
0b111110,
0b000000,
0b000000,
0b000000,
0b000000
)),62:(5,0,5,(
0b00000,
0b00000,
0b00000,
0b11000,
0b01100,
0b00110,
0b01100,
0b11000,
0b00000,
0b00000,
0b00000
)),63:(6,0,6,(
0b000000,
0b000000,
0b111100,
0b000110,
0b001100,
0b011000,
0b000000,
0b011000,
0b011000,
0b000000,
0b000000
)),64:(8,0,8,(
0b00000000,
0b00000000,
0b01111100,
0b11000110,
0b10011010,
0b10101010,
0b10111100,
0b11000000,
0b01111110,
0b00000000,
0b00000000
)),65:(6,0,6,(
0b000000,
0b000000,
0b011110,
0b110110,
0b110110,
0b111110,
0b110110,
0b110110,
0b110110,
0b000000,
0b000000
)),66:(6,0,6,(
0b000000,
0b000000,
0b111100,
0b110110,
0b110110,
0b111100,
0b110110,
0b110110,
0b111110,
0b000000,
0b000000
)),67:(5,0,5,(
0b00000,
0b00000,
0b11110,
0b11000,
0b11000,
0b11000,
0b11000,
0b11000,
0b01110,
0b00000,
0b00000
)),68:(6,0,6,(
0b000000,
0b000000,
0b111100,
0b110110,
0b110110,
0b110110,
0b110110,
0b110110,
0b111110,
0b000000,
0b000000
)),69:(6,0,6,(
0b000000,
0b000000,
0b111110,
0b110000,
0b110000,
0b111100,
0b110000,
0b110000,
0b111110,
0b000000,
0b000000
)),70:(6,0,6,(
0b000000,
0b000000,
0b111110,
0b110000,
0b110000,
0b111100,
0b110000,
0b110000,
0b110000,
0b000000,
0b000000
)),71:(6,0,6,(
0b000000,
0b000000,
0b011110,
0b110000,
0b110000,
0b110110,
0b110110,
0b110110,
0b111110,
0b000000,
0b000000
)),72:(7,0,7,(
0b0000000,
0b0000000,
0b1100110,
0b1100110,
0b1100110,
0b1111110,
0b1100110,
0b1100110,
0b1100110,
0b0000000,
0b0000000
)),73:(3,0,3,(
0b000,
0b000,
0b110,
0b110,
0b110,
0b110,
0b110,
0b110,
0b110,
0b000,
0b000
)),74:(5,0,5,(
0b00000,
0b00000,
0b00110,
0b00110,
0b00110,
0b00110,
0b00110,
0b00110,
0b11100,
0b00000,
0b00000
)),75:(6,0,6,(
0b000000,
0b000000,
0b110010,
0b110110,
0b111100,
0b111000,
0b111100,
0b110110,
0b110010,
0b000000,
0b000000
)),76:(6,0,6,(
0b000000,
0b000000,
0b110000,
0b110000,
0b110000,
0b110000,
0b110000,
0b110000,
0b111110,
0b000000,
0b000000
)),77:(8,0,8,(
0b00000000,
0b00000000,
0b11000110,
0b11101110,
0b11111110,
0b11010110,
0b11000110,
0b11000110,
0b11000110,
0b00000000,
0b00000000
)),78:(7,0,7,(
0b0000000,
0b0000000,
0b1100110,
0b1110110,
0b1111110,
0b1101110,
0b1100110,
0b1100110,
0b1100110,
0b0000000,
0b0000000
)),79:(6,0,6,(
0b000000,
0b000000,
0b011110,
0b110110,
0b110110,
0b110110,
0b110110,
0b110110,
0b111100,
0b000000,
0b000000
)),80:(6,0,6,(
0b000000,
0b000000,
0b111110,
0b110110,
0b110110,
0b111100,
0b110000,
0b110000,
0b110000,
0b000000,
0b000000
)),81:(6,0,6,(
0b000000,
0b000000,
0b011110,
0b110110,
0b110110,
0b110110,
0b110110,
0b110100,
0b111110,
0b000110,
0b000010
)),82:(6,0,6,(
0b000000,
0b000000,
0b111100,
0b110110,
0b110110,
0b111100,
0b110110,
0b110110,
0b110110,
0b000000,
0b000000
)),83:(6,0,6,(
0b000000,
0b000000,
0b011110,
0b110000,
0b111000,
0b011100,
0b001110,
0b000110,
0b111100,
0b000000,
0b000000
)),84:(7,0,7,(
0b0000000,
0b0000000,
0b1111110,
0b0011000,
0b0011000,
0b0011000,
0b0011000,
0b0011000,
0b0011000,
0b0000000,
0b0000000
)),85:(6,0,6,(
0b000000,
0b000000,
0b110110,
0b110110,
0b110110,
0b110110,
0b110110,
0b110110,
0b011110,
0b000000,
0b000000
)),86:(6,0,6,(
0b000000,
0b000000,
0b110110,
0b110110,
0b110110,
0b110110,
0b110110,
0b011100,
0b001000,
0b000000,
0b000000
)),87:(8,0,8,(
0b00000000,
0b00000000,
0b11011010,
0b11011010,
0b11011010,
0b11011010,
0b11011010,
0b11011010,
0b11111100,
0b00000000,
0b00000000
)),88:(6,0,6,(
0b000000,
0b000000,
0b110110,
0b110110,
0b011100,
0b011100,
0b011100,
0b110110,
0b110110,
0b000000,
0b000000
)),89:(7,0,7,(
0b0000000,
0b0000000,
0b1100110,
0b1100110,
0b1100110,
0b0111100,
0b0011000,
0b0011000,
0b0011000,
0b0000000,
0b0000000
)),90:(6,0,6,(
0b000000,
0b000000,
0b111110,
0b000110,
0b001110,
0b011100,
0b111000,
0b110000,
0b111110,
0b000000,
0b000000
)),91:(4,0,4,(
0b0000,
0b1110,
0b1100,
0b1100,
0b1100,
0b1100,
0b1100,
0b1100,
0b1100,
0b1110,
0b0000
)),92:(5,0,5,(
0b00000,
0b00000,
0b10000,
0b11000,
0b01000,
0b01100,
0b00100,
0b00110,
0b00010,
0b00000,
0b00000
)),93:(4,0,4,(
0b0000,
0b1110,
0b0110,
0b0110,
0b0110,
0b0110,
0b0110,
0b0110,
0b0110,
0b1110,
0b0000
)),94:(6,0,6,(
0b000000,
0b000000,
0b001000,
0b011100,
0b110110,
0b100010,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000
)),95:(4,0,4,(
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b1111,
0b0000
)),96:(4,0,4,(
0b0000,
0b1100,
0b0010,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000
)),97:(6,0,6,(
0b000000,
0b000000,
0b000000,
0b000000,
0b111100,
0b000110,
0b111110,
0b100110,
0b111110,
0b000000,
0b000000
)),98:(6,0,6,(
0b000000,
0b000000,
0b110000,
0b110000,
0b111100,
0b110110,
0b110110,
0b110110,
0b111110,
0b000000,
0b000000
)),99:(5,0,5,(
0b00000,
0b00000,
0b00000,
0b00000,
0b11110,
0b11000,
0b11000,
0b11000,
0b01110,
0b00000,
0b00000
)),100:(6,0,6,(
0b000000,
0b000000,
0b000110,
0b000110,
0b011110,
0b110110,
0b110110,
0b110110,
0b111110,
0b000000,
0b000000
)),101:(6,0,6,(
0b000000,
0b000000,
0b000000,
0b000000,
0b011100,
0b110010,
0b110100,
0b111000,
0b011110,
0b000000,
0b000000
)),102:(5,0,5,(
0b00000,
0b00000,
0b00111,
0b01100,
0b11110,
0b01100,
0b01100,
0b01100,
0b01100,
0b00000,
0b00000
)),103:(6,0,6,(
0b000000,
0b000000,
0b000000,
0b000000,
0b011110,
0b110110,
0b110110,
0b110110,
0b111110,
0b000110,
0b111100
)),104:(6,0,6,(
0b000000,
0b000000,
0b110000,
0b110000,
0b111100,
0b110110,
0b110110,
0b110110,
0b110110,
0b000000,
0b000000
)),105:(3,0,3,(
0b000,
0b000,
0b110,
0b000,
0b110,
0b110,
0b110,
0b110,
0b110,
0b000,
0b000
)),106:(4,0,4,(
0b0000,
0b0000,
0b0110,
0b0000,
0b0110,
0b0110,
0b0110,
0b0110,
0b0110,
0b0110,
0b1100
)),107:(6,0,6,(
0b000000,
0b000000,
0b110000,
0b110000,
0b110110,
0b111100,
0b111100,
0b110110,
0b110110,
0b000000,
0b000000
)),108:(3,0,3,(
0b000,
0b000,
0b110,
0b110,
0b110,
0b110,
0b110,
0b110,
0b110,
0b000,
0b000
)),109:(9,0,9,(
0b000000000,
0b000000000,
0b000000000,
0b000000000,
0b111111100,
0b110110110,
0b110110110,
0b110110110,
0b110110110,
0b000000000,
0b000000000
)),110:(6,0,6,(
0b000000,
0b000000,
0b000000,
0b000000,
0b111100,
0b110110,
0b110110,
0b110110,
0b110110,
0b000000,
0b000000
)),111:(6,0,6,(
0b000000,
0b000000,
0b000000,
0b000000,
0b011100,
0b110110,
0b110110,
0b110110,
0b011100,
0b000000,
0b000000
)),112:(6,0,6,(
0b000000,
0b000000,
0b000000,
0b000000,
0b111100,
0b110110,
0b110110,
0b110110,
0b111110,
0b110000,
0b110000
)),113:(6,0,6,(
0b000000,
0b000000,
0b000000,
0b000000,
0b011110,
0b110110,
0b110110,
0b110110,
0b111110,
0b000110,
0b000110
)),114:(5,0,5,(
0b00000,
0b00000,
0b00000,
0b00000,
0b11010,
0b11110,
0b11000,
0b11000,
0b11000,
0b00000,
0b00000
)),115:(5,0,5,(
0b00000,
0b00000,
0b00000,
0b00000,
0b01110,
0b11000,
0b11110,
0b00110,
0b11100,
0b00000,
0b00000
)),116:(5,0,5,(
0b00000,
0b00000,
0b11000,
0b11000,
0b11110,
0b11000,
0b11000,
0b11000,
0b01110,
0b00000,
0b00000
)),117:(6,0,6,(
0b000000,
0b000000,
0b000000,
0b000000,
0b110110,
0b110110,
0b110110,
0b110110,
0b011110,
0b000000,
0b000000
)),118:(6,0,6,(
0b000000,
0b000000,
0b000000,
0b000000,
0b110110,
0b110110,
0b110110,
0b011100,
0b001000,
0b000000,
0b000000
)),119:(7,0,7,(
0b0000000,
0b0000000,
0b0000000,
0b0000000,
0b1101010,
0b1101010,
0b1101010,
0b1101010,
0b1111100,
0b0000000,
0b0000000
)),120:(6,0,6,(
0b000000,
0b000000,
0b000000,
0b000000,
0b110110,
0b110110,
0b011100,
0b110110,
0b110110,
0b000000,
0b000000
)),121:(6,0,6,(
0b000000,
0b000000,
0b000000,
0b000000,
0b110110,
0b110110,
0b110110,
0b011110,
0b000110,
0b001100,
0b111000
)),122:(5,0,5,(
0b00000,
0b00000,
0b00000,
0b00000,
0b11110,
0b00110,
0b01100,
0b11000,
0b11110,
0b00000,
0b00000
)),123:(5,0,5,(
0b00000,
0b00110,
0b01100,
0b01100,
0b01100,
0b11000,
0b01100,
0b01100,
0b01100,
0b00110,
0b00000
)),124:(3,0,3,(
0b000,
0b110,
0b110,
0b110,
0b110,
0b110,
0b110,
0b110,
0b110,
0b110,
0b000
)),125:(5,0,5,(
0b00000,
0b11000,
0b01100,
0b01100,
0b01100,
0b00110,
0b01100,
0b01100,
0b01100,
0b11000,
0b00000
)),126:(7,0,7,(
0b0000000,
0b0000000,
0b0000000,
0b0000000,
0b0000000,
0b0111010,
0b1011100,
0b0000000,
0b0000000,
0b0000000,
0b0000000
)),128:(8,0,8,(
0b00000000,
0b00000000,
0b00111100,
0b01100010,
0b11111000,
0b01100000,
0b11110000,
0b01100010,
0b00111100,
0b00000000,
0b00000000
)),130:(3,0,3,(
0b000,
0b000,
0b000,
0b000,
0b000,
0b000,
0b000,
0b000,
0b110,
0b010,
0b100
)),131:(6,0,6,(
0b000000,
0b000000,
0b001110,
0b011000,
0b111100,
0b011000,
0b011000,
0b011000,
0b110000,
0b100000,
0b000000
)),132:(5,0,5,(
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b11110,
0b01010,
0b10100
)),133:(6,0,6,(
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b101010,
0b101010,
0b000000,
0b000000
)),134:(7,0,7,(
0b0000000,
0b0000000,
0b0011000,
0b0011000,
0b1111110,
0b0011000,
0b0011000,
0b0011000,
0b0011000,
0b0011000,
0b0011000
)),135:(7,0,7,(
0b0000000,
0b0000000,
0b0011000,
0b0011000,
0b1111110,
0b0011000,
0b0011000,
0b0011000,
0b1111110,
0b0011000,
0b0011000
)),136:(4,0,4,(
0b0000,
0b0000,
0b0100,
0b1010,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000
)),137:(11,0,11,(
0b00000000000,
0b00000000000,
0b01111110000,
0b10100100000,
0b10101000000,
0b11010110110,
0b00101011010,
0b01001011010,
0b01001101100,
0b00000000000,
0b00000000000
)),138:(5,0,5,(
0b01010,
0b00100,
0b00000,
0b01110,
0b10000,
0b11100,
0b01110,
0b00010,
0b11100,
0b00000,
0b00000
)),139:(5,0,5,(
0b00000,
0b00000,
0b00000,
0b00110,
0b01100,
0b11000,
0b01100,
0b00110,
0b00000,
0b00000,
0b00000
)),140:(9,0,9,(
0b000000000,
0b000000000,
0b001111110,
0b011011000,
0b110011000,
0b110011110,
0b110011000,
0b011011000,
0b001111110,
0b000000000,
0b000000000
)),141:(10,0,10,(
0b0000000000,
0b0000100000,
0b0001110000,
0b0011011000,
0b0110001100,
0b1100000110,
0b0110001100,
0b0011011000,
0b0001110000,
0b0000100000,
0b0000000000
)),142:(10,0,10,(
0b0000000000,
0b0001110000,
0b0011111000,
0b0101110100,
0b1111111110,
0b1111111110,
0b1111111110,
0b0110101100,
0b0001110000,
0b0011111000,
0b0000000000
)),143:(10,0,10,(
0b0000000000,
0b0110001100,
0b1111011110,
0b1001110010,
0b1000100010,
0b1100000110,
0b0110001100,
0b0011011000,
0b0001110000,
0b0000100000,
0b0000000000
)),144:(10,0,10,(
0b0000000000,
0b0000100000,
0b0001110000,
0b0011111000,
0b0111111100,
0b1111111110,
0b1111111110,
0b0110101100,
0b0001110000,
0b0011111000,
0b0000000000
)),145:(3,0,3,(
0b000,
0b010,
0b100,
0b110,
0b000,
0b000,
0b000,
0b000,
0b000,
0b000,
0b000
)),146:(3,0,3,(
0b000,
0b110,
0b010,
0b100,
0b000,
0b000,
0b000,
0b000,
0b000,
0b000,
0b000
)),147:(5,0,5,(
0b00000,
0b01010,
0b10100,
0b11110,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000
)),148:(5,0,5,(
0b00000,
0b11110,
0b01010,
0b10100,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000
)),149:(4,0,4,(
0b0000,
0b0000,
0b0000,
0b0000,
0b1110,
0b1110,
0b1110,
0b0000,
0b0000,
0b0000,
0b0000
)),150:(4,0,4,(
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b1111,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000
)),151:(7,0,7,(
0b0000000,
0b0000000,
0b0000000,
0b0000000,
0b0000000,
0b1111111,
0b0000000,
0b0000000,
0b0000000,
0b0000000,
0b0000000
)),152:(7,0,7,(
0b0000000,
0b0000000,
0b0000000,
0b0111010,
0b1011100,
0b0000000,
0b0000000,
0b0000000,
0b0000000,
0b0000000,
0b0000000
)),153:(10,0,10,(
0b0000000000,
0b0000000000,
0b1110100010,
0b0100110110,
0b0100101010,
0b0000000000,
0b0000000000,
0b0000000000,
0b0000000000,
0b0000000000,
0b0000000000
)),154:(4,0,4,(
0b0000,
0b1010,
0b0100,
0b0000,
0b0110,
0b1000,
0b1110,
0b0010,
0b1100,
0b0000,
0b0000
)),155:(5,0,5,(
0b00000,
0b00000,
0b00000,
0b11000,
0b01100,
0b00110,
0b01100,
0b11000,
0b00000,
0b00000,
0b00000
)),156:(10,0,10,(
0b0000000000,
0b0000000000,
0b0000000000,
0b0000000000,
0b0111011100,
0b1101110010,
0b1101110100,
0b1101111000,
0b0111011110,
0b0000000000,
0b0000000000
)),157:(8,0,8,(
0b00000000,
0b00000000,
0b00000110,
0b00001100,
0b00011000,
0b00110000,
0b11100000,
0b11100000,
0b11100000,
0b00000000,
0b00000000
)),158:(7,0,7,(
0b0000000,
0b0011000,
0b0110100,
0b0110100,
0b0110100,
0b0011000,
0b0110100,
0b1100010,
0b1100010,
0b0000000,
0b0000000
)),159:(7,0,7,(
0b0000000,
0b0010100,
0b0000000,
0b1100110,
0b1100110,
0b0111100,
0b0011000,
0b0011000,
0b0011000,
0b0000000,
0b0000000
)),160:(2,0,2,(
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00
)),161:(3,0,3,(
0b000,
0b000,
0b000,
0b000,
0b110,
0b110,
0b000,
0b110,
0b110,
0b110,
0b110
)),162:(5,0,5,(
0b00000,
0b00100,
0b01110,
0b10100,
0b10100,
0b10100,
0b01110,
0b00100,
0b00000,
0b00000,
0b00000
)),163:(7,0,7,(
0b0000000,
0b0000000,
0b0011100,
0b0110000,
0b0110000,
0b1111000,
0b0110000,
0b0110000,
0b1111000,
0b0011110,
0b0000000
)),164:(8,0,8,(
0b00000000,
0b00000000,
0b10111010,
0b01111100,
0b11000110,
0b11000110,
0b11000110,
0b01111100,
0b10111010,
0b00000000,
0b00000000
)),165:(7,0,7,(
0b0000000,
0b0000000,
0b1100010,
0b0110100,
0b1111110,
0b0011000,
0b1111110,
0b0011000,
0b0011000,
0b0000000,
0b0000000
)),166:(3,0,3,(
0b000,
0b000,
0b110,
0b110,
0b110,
0b110,
0b000,
0b110,
0b110,
0b110,
0b110
)),167:(5,0,5,(
0b00000,
0b11110,
0b10010,
0b11000,
0b10100,
0b10010,
0b01010,
0b00110,
0b10010,
0b11110,
0b00000
)),168:(4,0,4,(
0b0000,
0b0000,
0b0000,
0b1010,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000
)),169:(8,0,8,(
0b00000000,
0b00000000,
0b01111100,
0b10000010,
0b10111010,
0b10100010,
0b10111010,
0b10000010,
0b01111100,
0b00000000,
0b00000000
)),170:(5,0,5,(
0b00000,
0b00000,
0b01110,
0b10010,
0b01110,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000
)),171:(8,0,8,(
0b00000000,
0b00000000,
0b00000000,
0b00000000,
0b00110110,
0b01101100,
0b11011000,
0b01101100,
0b00110110,
0b00000000,
0b00000000
)),172:(6,0,6,(
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b111110,
0b000010,
0b000010,
0b000000,
0b000000,
0b000000
)),173:(5,0,5,(
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b11110,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000
)),174:(8,0,8,(
0b00000000,
0b00000000,
0b01111100,
0b10000010,
0b10111010,
0b10110010,
0b10101010,
0b10000010,
0b01111100,
0b00000000,
0b00000000
)),175:(6,0,6,(
0b000000,
0b111110,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000
)),176:(5,0,5,(
0b00000,
0b01100,
0b10010,
0b10010,
0b01100,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000
)),177:(6,0,6,(
0b000000,
0b000000,
0b001000,
0b001000,
0b111110,
0b001000,
0b001000,
0b111110,
0b000000,
0b000000,
0b000000
)),178:(4,0,4,(
0b0000,
0b1110,
0b0010,
0b1110,
0b1000,
0b1110,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000
)),179:(4,0,4,(
0b0000,
0b1110,
0b0010,
0b0110,
0b0010,
0b1110,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000
)),180:(4,0,4,(
0b0000,
0b0000,
0b0110,
0b1000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000
)),181:(6,0,6,(
0b000000,
0b000000,
0b000000,
0b000000,
0b110110,
0b110110,
0b110110,
0b110110,
0b111110,
0b110000,
0b110000
)),182:(7,0,7,(
0b0000000,
0b0000000,
0b0111110,
0b1110110,
0b1110110,
0b0110110,
0b0010110,
0b0010110,
0b0010110,
0b0000000,
0b0000000
)),183:(2,0,2,(
0b00,
0b00,
0b00,
0b00,
0b00,
0b10,
0b00,
0b00,
0b00,
0b00,
0b00
)),184:(4,0,4,(
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0100,
0b0010,
0b1100
)),185:(2,0,2,(
0b00,
0b00,
0b10,
0b10,
0b10,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00
)),186:(6,0,6,(
0b000000,
0b000000,
0b011100,
0b110110,
0b011100,
0b000000,
0b111110,
0b000000,
0b000000,
0b000000,
0b000000
)),187:(8,0,8,(
0b00000000,
0b00000000,
0b00000000,
0b00000000,
0b11011000,
0b01101100,
0b00110110,
0b01101100,
0b11011000,
0b00000000,
0b00000000
)),188:(8,0,8,(
0b01100000,
0b11100000,
0b01100100,
0b01101000,
0b01110100,
0b00101100,
0b01010100,
0b10111110,
0b00001100,
0b00001100,
0b00000000
)),189:(8,0,8,(
0b01100000,
0b11100000,
0b01100100,
0b01101000,
0b01110000,
0b00111100,
0b01000110,
0b10001100,
0b00011000,
0b00011110,
0b00000000
)),190:(8,0,8,(
0b11100000,
0b00100000,
0b11100100,
0b00101000,
0b11110100,
0b00101100,
0b01010100,
0b10111110,
0b00001100,
0b00001100,
0b00000000
)),191:(6,0,6,(
0b000000,
0b000000,
0b001100,
0b000000,
0b001100,
0b001100,
0b011000,
0b110000,
0b011110,
0b000000,
0b000000
)),192:(6,0,6,(
0b001000,
0b000100,
0b000000,
0b011110,
0b110110,
0b110110,
0b111110,
0b110110,
0b110110,
0b000000,
0b000000
)),193:(6,0,6,(
0b000100,
0b001000,
0b000000,
0b011110,
0b110110,
0b110110,
0b111110,
0b110110,
0b110110,
0b000000,
0b000000
)),194:(6,0,6,(
0b001000,
0b010100,
0b000000,
0b011110,
0b110110,
0b110110,
0b111110,
0b110110,
0b110110,
0b000000,
0b000000
)),195:(6,0,6,(
0b001010,
0b010100,
0b000000,
0b011110,
0b110110,
0b110110,
0b111110,
0b110110,
0b110110,
0b000000,
0b000000
)),196:(6,0,6,(
0b000000,
0b010100,
0b000000,
0b011110,
0b110110,
0b110110,
0b111110,
0b110110,
0b110110,
0b000000,
0b000000
)),197:(6,0,6,(
0b001000,
0b010100,
0b001000,
0b011110,
0b110110,
0b110110,
0b111110,
0b110110,
0b110110,
0b000000,
0b000000
)),198:(7,0,7,(
0b0000000,
0b0000000,
0b0111110,
0b1101100,
0b1101100,
0b1111110,
0b1101100,
0b1101100,
0b1101110,
0b0000000,
0b0000000
)),199:(6,0,6,(
0b000000,
0b000000,
0b001110,
0b011000,
0b110000,
0b110000,
0b110000,
0b011000,
0b001110,
0b000100,
0b011000
)),200:(5,0,5,(
0b01000,
0b00100,
0b00000,
0b11110,
0b11000,
0b11100,
0b11000,
0b11000,
0b11110,
0b00000,
0b00000
)),201:(5,0,5,(
0b00100,
0b01000,
0b00000,
0b11110,
0b11000,
0b11100,
0b11000,
0b11000,
0b11110,
0b00000,
0b00000
)),202:(5,0,5,(
0b00100,
0b01010,
0b00000,
0b11110,
0b11000,
0b11100,
0b11000,
0b11000,
0b11110,
0b00000,
0b00000
)),203:(5,0,5,(
0b00000,
0b01010,
0b00000,
0b11110,
0b11000,
0b11100,
0b11000,
0b11000,
0b11110,
0b00000,
0b00000
)),204:(3,0,3,(
0b100,
0b010,
0b000,
0b110,
0b110,
0b110,
0b110,
0b110,
0b110,
0b000,
0b000
)),205:(3,0,3,(
0b010,
0b100,
0b000,
0b110,
0b110,
0b110,
0b110,
0b110,
0b110,
0b000,
0b000
)),206:(4,0,4,(
0b0100,
0b1010,
0b0000,
0b1100,
0b1100,
0b1100,
0b1100,
0b1100,
0b1100,
0b0000,
0b0000
)),207:(4,0,4,(
0b0000,
0b1010,
0b0000,
0b1100,
0b1100,
0b1100,
0b1100,
0b1100,
0b1100,
0b0000,
0b0000
)),208:(8,0,8,(
0b00000000,
0b00000000,
0b01111000,
0b01100100,
0b01100110,
0b11110110,
0b01100110,
0b01100110,
0b01111100,
0b00000000,
0b00000000
)),209:(7,0,7,(
0b0010100,
0b0101000,
0b0000000,
0b1100110,
0b1110110,
0b1110110,
0b1101110,
0b1101110,
0b1100110,
0b0000000,
0b0000000
)),210:(6,0,6,(
0b001000,
0b000100,
0b000000,
0b011110,
0b110110,
0b110110,
0b110110,
0b110110,
0b111100,
0b000000,
0b000000
)),211:(6,0,6,(
0b000100,
0b001000,
0b000000,
0b011110,
0b110110,
0b110110,
0b110110,
0b110110,
0b111100,
0b000000,
0b000000
)),212:(6,0,6,(
0b001000,
0b010100,
0b000000,
0b011110,
0b110110,
0b110110,
0b110110,
0b110110,
0b111100,
0b000000,
0b000000
)),213:(6,0,6,(
0b001010,
0b010100,
0b000000,
0b011110,
0b110110,
0b110110,
0b110110,
0b110110,
0b111100,
0b000000,
0b000000
)),214:(6,0,6,(
0b000000,
0b010100,
0b000000,
0b011110,
0b110110,
0b110110,
0b110110,
0b110110,
0b111100,
0b000000,
0b000000
)),215:(6,0,6,(
0b000000,
0b000000,
0b000000,
0b000000,
0b110110,
0b011100,
0b011100,
0b110110,
0b000000,
0b000000,
0b000000
)),216:(8,0,8,(
0b00000000,
0b00000000,
0b00111010,
0b01101100,
0b11001110,
0b11010110,
0b11100110,
0b01101100,
0b10111000,
0b00000000,
0b00000000
)),217:(6,0,6,(
0b001000,
0b000100,
0b000000,
0b110110,
0b110110,
0b110110,
0b110110,
0b110110,
0b011110,
0b000000,
0b000000
)),218:(6,0,6,(
0b000100,
0b001000,
0b000000,
0b110110,
0b110110,
0b110110,
0b110110,
0b110110,
0b011110,
0b000000,
0b000000
)),219:(6,0,6,(
0b001000,
0b010100,
0b000000,
0b110110,
0b110110,
0b110110,
0b110110,
0b110110,
0b011110,
0b000000,
0b000000
)),220:(6,0,6,(
0b000000,
0b010100,
0b000000,
0b110110,
0b110110,
0b110110,
0b110110,
0b110110,
0b011110,
0b000000,
0b000000
)),221:(7,0,7,(
0b0001000,
0b0010000,
0b0000000,
0b1100110,
0b1100110,
0b0111100,
0b0011000,
0b0011000,
0b0011000,
0b0000000,
0b0000000
)),222:(6,0,6,(
0b000000,
0b000000,
0b110000,
0b111100,
0b110010,
0b110010,
0b110010,
0b111100,
0b110000,
0b000000,
0b000000
)),223:(7,0,7,(
0b0000000,
0b0000000,
0b0111000,
0b1001100,
0b1001100,
0b1011100,
0b1000110,
0b1000110,
0b1011100,
0b0000000,
0b0000000
)),224:(6,0,6,(
0b000000,
0b010000,
0b001000,
0b000000,
0b111100,
0b000110,
0b111110,
0b100110,
0b111110,
0b000000,
0b000000
)),225:(6,0,6,(
0b000000,
0b000100,
0b001000,
0b000000,
0b111100,
0b000110,
0b111110,
0b100110,
0b111110,
0b000000,
0b000000
)),226:(6,0,6,(
0b000000,
0b001000,
0b010100,
0b000000,
0b111100,
0b000110,
0b111110,
0b100110,
0b111110,
0b000000,
0b000000
)),227:(6,0,6,(
0b000000,
0b010100,
0b101000,
0b000000,
0b111100,
0b000110,
0b111110,
0b100110,
0b111110,
0b000000,
0b000000
)),228:(6,0,6,(
0b000000,
0b000000,
0b010100,
0b000000,
0b111100,
0b000110,
0b111110,
0b100110,
0b111110,
0b000000,
0b000000
)),229:(6,0,6,(
0b001100,
0b010010,
0b001100,
0b000000,
0b111100,
0b000110,
0b111110,
0b100110,
0b111110,
0b000000,
0b000000
)),230:(9,0,9,(
0b000000000,
0b000000000,
0b000000000,
0b000000000,
0b011101100,
0b000110110,
0b011111100,
0b110111000,
0b111101110,
0b000000000,
0b000000000
)),231:(5,0,5,(
0b00000,
0b00000,
0b00000,
0b00000,
0b01110,
0b11000,
0b11000,
0b11000,
0b01110,
0b00100,
0b01000
)),232:(6,0,6,(
0b000000,
0b001000,
0b000100,
0b000000,
0b011100,
0b110010,
0b110100,
0b111000,
0b011110,
0b000000,
0b000000
)),233:(6,0,6,(
0b000000,
0b000100,
0b001000,
0b000000,
0b011100,
0b110010,
0b110100,
0b111000,
0b011110,
0b000000,
0b000000
)),234:(6,0,6,(
0b000000,
0b001000,
0b010100,
0b000000,
0b011100,
0b110010,
0b110100,
0b111000,
0b011110,
0b000000,
0b000000
)),235:(6,0,6,(
0b000000,
0b000000,
0b010100,
0b000000,
0b011100,
0b110010,
0b110100,
0b111000,
0b011110,
0b000000,
0b000000
)),236:(3,0,3,(
0b000,
0b100,
0b010,
0b000,
0b110,
0b110,
0b110,
0b110,
0b110,
0b000,
0b000
)),237:(3,0,3,(
0b000,
0b010,
0b100,
0b000,
0b110,
0b110,
0b110,
0b110,
0b110,
0b000,
0b000
)),238:(3,0,3,(
0b000,
0b010,
0b101,
0b000,
0b110,
0b110,
0b110,
0b110,
0b110,
0b000,
0b000
)),239:(3,0,3,(
0b000,
0b000,
0b101,
0b000,
0b110,
0b110,
0b110,
0b110,
0b110,
0b000,
0b000
)),240:(6,0,6,(
0b000000,
0b000000,
0b110000,
0b111000,
0b001000,
0b011100,
0b110110,
0b110110,
0b011100,
0b000000,
0b000000
)),241:(6,0,6,(
0b000000,
0b001010,
0b010100,
0b000000,
0b111100,
0b110110,
0b110110,
0b110110,
0b110110,
0b000000,
0b000000
)),242:(6,0,6,(
0b000000,
0b010000,
0b001000,
0b000000,
0b011100,
0b110110,
0b110110,
0b110110,
0b011100,
0b000000,
0b000000
)),243:(6,0,6,(
0b000000,
0b000100,
0b001000,
0b000000,
0b011100,
0b110110,
0b110110,
0b110110,
0b011100,
0b000000,
0b000000
)),244:(6,0,6,(
0b000000,
0b001000,
0b010100,
0b000000,
0b011100,
0b110110,
0b110110,
0b110110,
0b011100,
0b000000,
0b000000
)),245:(6,0,6,(
0b000000,
0b001010,
0b010100,
0b000000,
0b011100,
0b110110,
0b110110,
0b110110,
0b011100,
0b000000,
0b000000
)),246:(6,0,6,(
0b000000,
0b000000,
0b010100,
0b000000,
0b011100,
0b110110,
0b110110,
0b110110,
0b011100,
0b000000,
0b000000
)),247:(6,0,6,(
0b000000,
0b000000,
0b000000,
0b001000,
0b000000,
0b111110,
0b000000,
0b001000,
0b000000,
0b000000,
0b000000
)),248:(8,0,8,(
0b00000000,
0b00000000,
0b00000000,
0b00000000,
0b00111010,
0b01101100,
0b01111100,
0b01101100,
0b10111000,
0b00000000,
0b00000000
)),249:(6,0,6,(
0b000000,
0b001000,
0b000100,
0b000000,
0b110110,
0b110110,
0b110110,
0b110110,
0b011110,
0b000000,
0b000000
)),250:(6,0,6,(
0b000000,
0b000100,
0b001000,
0b000000,
0b110110,
0b110110,
0b110110,
0b110110,
0b011110,
0b000000,
0b000000
)),251:(6,0,6,(
0b000000,
0b001000,
0b010100,
0b000000,
0b110110,
0b110110,
0b110110,
0b110110,
0b011110,
0b000000,
0b000000
)),252:(6,0,6,(
0b000000,
0b000000,
0b010100,
0b000000,
0b110110,
0b110110,
0b110110,
0b110110,
0b011110,
0b000000,
0b000000
)),253:(6,0,6,(
0b000000,
0b000100,
0b001000,
0b000000,
0b110110,
0b110110,
0b110110,
0b011110,
0b000110,
0b001100,
0b111000
)),254:(6,0,6,(
0b000000,
0b000000,
0b110000,
0b110000,
0b111100,
0b110110,
0b110110,
0b110110,
0b111100,
0b110000,
0b110000
)),255:(6,0,6,(
0b000000,
0b000000,
0b010100,
0b000000,
0b110110,
0b110110,
0b110110,
0b011110,
0b000110,
0b001100,
0b111000
)),}
# generated by fontconv
#fontType 36864
#firstChar 9
#lastChar 255
#maxWidth 11
#kernMax 0
#nDescent 0
#fRectWidth 11
#fRectHeight 11
#ascent 9
#descent 2
#leading 0
#averageWidth 5.36
FONTS['script'] = {
9:(2,0,2,(
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00
)),20:(11,0,11,(
0b01111000000,
0b11111100000,
0b10000100100,
0b11111101000,
0b01111010000,
0b00110000000,
0b00110011010,
0b00110000000,
0b01110010000,
0b01110001000,
0b00110000100
)),21:(5,0,5,(
0b00000,
0b00100,
0b01000,
0b10000,
0b00000,
0b11010,
0b00000,
0b10000,
0b01000,
0b00100,
0b00000
)),22:(8,0,8,(
0b00000000,
0b00000000,
0b00000000,
0b00000010,
0b00000100,
0b00001000,
0b00010000,
0b00100000,
0b11000000,
0b11000000,
0b00000000
)),23:(8,0,8,(
0b00000000,
0b00010000,
0b00101000,
0b00101000,
0b00101000,
0b00101000,
0b00010000,
0b00101000,
0b11000100,
0b11000010,
0b00000000
)),24:(6,0,6,(
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b101010,
0b000000,
0b000000
)),25:(5,0,5,(
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000
)),32:(2,0,2,(
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00
)),33:(3,0,3,(
0b000,
0b000,
0b010,
0b010,
0b010,
0b010,
0b010,
0b000,
0b010,
0b000,
0b000
)),34:(4,0,4,(
0b0000,
0b1010,
0b1010,
0b1010,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000
)),35:(8,0,8,(
0b00000000,
0b00000000,
0b00010100,
0b00010100,
0b01111110,
0b00101000,
0b11111100,
0b01010000,
0b01010000,
0b00000000,
0b00000000
)),36:(6,0,6,(
0b000000,
0b001000,
0b011110,
0b101000,
0b101000,
0b011100,
0b001010,
0b001010,
0b111100,
0b001000,
0b000000
)),37:(8,0,8,(
0b00000000,
0b00000000,
0b01000100,
0b10100100,
0b10101000,
0b01010100,
0b00101010,
0b01001010,
0b01000100,
0b00000000,
0b00000000
)),38:(7,0,7,(
0b0000000,
0b0000000,
0b0011000,
0b0100100,
0b0101000,
0b0010000,
0b0101010,
0b1000100,
0b0111010,
0b0000000,
0b0000000
)),39:(2,0,2,(
0b00,
0b10,
0b10,
0b10,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00
)),40:(4,0,4,(
0b0000,
0b0010,
0b0100,
0b0100,
0b1000,
0b1000,
0b1000,
0b0100,
0b0100,
0b0010,
0b0000
)),41:(4,0,4,(
0b0000,
0b1000,
0b0100,
0b0100,
0b0010,
0b0010,
0b0010,
0b0100,
0b0100,
0b1000,
0b0000
)),42:(6,0,6,(
0b000000,
0b010100,
0b001000,
0b110110,
0b001000,
0b010100,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000
)),43:(6,0,6,(
0b000000,
0b000000,
0b000000,
0b001000,
0b001000,
0b111110,
0b001000,
0b001000,
0b000000,
0b000000,
0b000000
)),44:(4,0,4,(
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0110,
0b0010,
0b0100,
0b0000
)),45:(5,0,5,(
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b11110,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000
)),46:(3,0,3,(
0b000,
0b000,
0b000,
0b000,
0b000,
0b000,
0b000,
0b000,
0b010,
0b000,
0b000
)),47:(5,0,5,(
0b00000,
0b00000,
0b00010,
0b00010,
0b00100,
0b01000,
0b01000,
0b10000,
0b10000,
0b00000,
0b00000
)),48:(5,0,5,(
0b00000,
0b00000,
0b01100,
0b10010,
0b10010,
0b10010,
0b10010,
0b10010,
0b01100,
0b00000,
0b00000
)),49:(5,0,5,(
0b00000,
0b00000,
0b00100,
0b01100,
0b00100,
0b00100,
0b00100,
0b00100,
0b01110,
0b00000,
0b00000
)),50:(5,0,5,(
0b00000,
0b00000,
0b01100,
0b10010,
0b00010,
0b00100,
0b01000,
0b10000,
0b11110,
0b00000,
0b00000
)),51:(5,0,5,(
0b00000,
0b00000,
0b01100,
0b10010,
0b00010,
0b00100,
0b00010,
0b10010,
0b01100,
0b00000,
0b00000
)),52:(5,0,5,(
0b00000,
0b00000,
0b00010,
0b00110,
0b01010,
0b10010,
0b11110,
0b00010,
0b00010,
0b00000,
0b00000
)),53:(5,0,5,(
0b00000,
0b00000,
0b11110,
0b10000,
0b10000,
0b11100,
0b00010,
0b00010,
0b11100,
0b00000,
0b00000
)),54:(5,0,5,(
0b00000,
0b00000,
0b00100,
0b01000,
0b10000,
0b11100,
0b10010,
0b10010,
0b01100,
0b00000,
0b00000
)),55:(5,0,5,(
0b00000,
0b00000,
0b11110,
0b00010,
0b00100,
0b00100,
0b01000,
0b01000,
0b01000,
0b00000,
0b00000
)),56:(5,0,5,(
0b00000,
0b00000,
0b01100,
0b10010,
0b10010,
0b01100,
0b10010,
0b10010,
0b01100,
0b00000,
0b00000
)),57:(5,0,5,(
0b00000,
0b00000,
0b01100,
0b10010,
0b10010,
0b01110,
0b00010,
0b00100,
0b01000,
0b00000,
0b00000
)),58:(3,0,3,(
0b000,
0b000,
0b000,
0b000,
0b010,
0b000,
0b000,
0b000,
0b010,
0b000,
0b000
)),59:(4,0,4,(
0b0000,
0b0000,
0b0000,
0b0000,
0b0010,
0b0000,
0b0000,
0b0010,
0b0010,
0b0100,
0b0000
)),60:(6,0,6,(
0b000000,
0b000000,
0b000000,
0b000110,
0b011000,
0b100000,
0b011000,
0b000110,
0b000000,
0b000000,
0b000000
)),61:(6,0,6,(
0b000000,
0b000000,
0b000000,
0b000000,
0b111110,
0b000000,
0b111110,
0b000000,
0b000000,
0b000000,
0b000000
)),62:(6,0,6,(
0b000000,
0b000000,
0b000000,
0b110000,
0b001100,
0b000010,
0b001100,
0b110000,
0b000000,
0b000000,
0b000000
)),63:(5,0,5,(
0b00000,
0b00000,
0b11100,
0b00010,
0b00100,
0b01000,
0b01000,
0b00000,
0b01000,
0b00000,
0b00000
)),64:(8,0,8,(
0b00000000,
0b00000000,
0b00000000,
0b00111000,
0b01000100,
0b10011010,
0b10101010,
0b10010100,
0b01000000,
0b00111000,
0b00000000
)),65:(6,0,6,(
0b000000,
0b000000,
0b001000,
0b010100,
0b100100,
0b100100,
0b100100,
0b100101,
0b011010,
0b000000,
0b000000
)),66:(6,0,6,(
0b000000,
0b000000,
0b011100,
0b010010,
0b110010,
0b011100,
0b010010,
0b010001,
0b011110,
0b000000,
0b000000
)),67:(5,0,5,(
0b00000,
0b00000,
0b01100,
0b10010,
0b10000,
0b10000,
0b10000,
0b10001,
0b01110,
0b00000,
0b00000
)),68:(6,0,6,(
0b000000,
0b000000,
0b111000,
0b100100,
0b100010,
0b100010,
0b111010,
0b100111,
0b111100,
0b000000,
0b000000
)),69:(5,0,5,(
0b00000,
0b00000,
0b01100,
0b10010,
0b10000,
0b01100,
0b10000,
0b10001,
0b01110,
0b00000,
0b00000
)),70:(5,0,5,(
0b00000,
0b00000,
0b01110,
0b10000,
0b10000,
0b11100,
0b10000,
0b10000,
0b10000,
0b00000,
0b00000
)),71:(7,0,7,(
0b0000000,
0b0000010,
0b1000110,
0b1111010,
0b0100010,
0b0100010,
0b1111010,
0b1000111,
0b0111100,
0b0000000,
0b0000000
)),72:(7,0,7,(
0b0000000,
0b0000000,
0b0100010,
0b0100010,
0b0100010,
0b0111110,
0b1100010,
0b0100010,
0b0100010,
0b0000000,
0b0000000
)),73:(2,0,2,(
0b00,
0b00,
0b10,
0b10,
0b10,
0b10,
0b10,
0b10,
0b10,
0b00,
0b00
)),74:(5,0,5,(
0b00000,
0b00000,
0b00110,
0b01010,
0b10010,
0b10010,
0b11010,
0b00101,
0b00110,
0b01010,
0b01100
)),75:(5,0,5,(
0b00000,
0b00000,
0b10010,
0b10010,
0b10100,
0b11000,
0b11100,
0b10010,
0b10001,
0b00000,
0b00000
)),76:(6,0,6,(
0b000000,
0b000000,
0b001100,
0b010100,
0b011000,
0b110000,
0b010000,
0b010001,
0b111110,
0b000000,
0b000000
)),77:(8,0,8,(
0b00000000,
0b00000000,
0b10100110,
0b11011010,
0b10010010,
0b10010010,
0b10010010,
0b10010011,
0b10010010,
0b00000000,
0b00000000
)),78:(7,0,7,(
0b0000000,
0b0000000,
0b0101000,
0b0110100,
0b0100100,
0b1100100,
0b0100100,
0b0100101,
0b0100010,
0b0000000,
0b0000000
)),79:(7,0,7,(
0b0000000,
0b0000000,
0b0001100,
0b0010110,
0b1111010,
0b0100010,
0b0100010,
0b0100010,
0b0011100,
0b0000000,
0b0000000
)),80:(6,0,6,(
0b000000,
0b000000,
0b011100,
0b010010,
0b110010,
0b011100,
0b010000,
0b010000,
0b010000,
0b000000,
0b000000
)),81:(7,0,7,(
0b0000000,
0b0000000,
0b0111000,
0b1000100,
0b0000100,
0b0100100,
0b1011000,
0b1011001,
0b0100110,
0b0000000,
0b0000000
)),82:(6,0,6,(
0b000000,
0b000000,
0b011100,
0b010010,
0b110010,
0b011100,
0b010010,
0b010010,
0b010001,
0b000000,
0b000000
)),83:(6,0,6,(
0b000000,
0b000000,
0b011100,
0b100010,
0b100000,
0b011100,
0b000010,
0b100010,
0b011100,
0b000000,
0b000000
)),84:(6,0,6,(
0b000000,
0b000000,
0b011110,
0b101000,
0b001000,
0b001000,
0b001000,
0b001000,
0b001000,
0b000000,
0b000000
)),85:(6,0,6,(
0b000000,
0b000000,
0b100010,
0b100010,
0b100010,
0b100010,
0b100010,
0b100010,
0b011100,
0b000000,
0b000000
)),86:(6,0,6,(
0b000000,
0b000000,
0b100010,
0b100010,
0b100010,
0b010100,
0b010100,
0b001000,
0b001000,
0b000000,
0b000000
)),87:(8,0,8,(
0b00000000,
0b00000000,
0b10000100,
0b10000010,
0b10010010,
0b10010010,
0b10010010,
0b10101010,
0b01000100,
0b00000000,
0b00000000
)),88:(6,0,6,(
0b000000,
0b000000,
0b100010,
0b100010,
0b010100,
0b001000,
0b010100,
0b100010,
0b100010,
0b000000,
0b000000
)),89:(6,0,6,(
0b000000,
0b000000,
0b100010,
0b100010,
0b010100,
0b001000,
0b001000,
0b001000,
0b001000,
0b000000,
0b000000
)),90:(6,0,6,(
0b000000,
0b000000,
0b011110,
0b100010,
0b000100,
0b001000,
0b010000,
0b100000,
0b111110,
0b000000,
0b000000
)),91:(3,0,3,(
0b000,
0b110,
0b100,
0b100,
0b100,
0b100,
0b100,
0b100,
0b100,
0b110,
0b000
)),92:(5,0,5,(
0b00000,
0b00000,
0b10000,
0b10000,
0b01000,
0b00100,
0b00100,
0b00010,
0b00010,
0b00000,
0b00000
)),93:(3,0,3,(
0b000,
0b110,
0b010,
0b010,
0b010,
0b010,
0b010,
0b010,
0b010,
0b110,
0b000
)),94:(6,0,6,(
0b000000,
0b000000,
0b001000,
0b010100,
0b100010,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000
)),95:(4,0,4,(
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b1111,
0b0000
)),96:(3,0,3,(
0b000,
0b100,
0b010,
0b000,
0b000,
0b000,
0b000,
0b000,
0b000,
0b000,
0b000
)),97:(6,0,6,(
0b000000,
0b000000,
0b000000,
0b000000,
0b001000,
0b010100,
0b100100,
0b100101,
0b011010,
0b000000,
0b000000
)),98:(5,0,5,(
0b00000,
0b00000,
0b10000,
0b10000,
0b10100,
0b11010,
0b10010,
0b10011,
0b01100,
0b00000,
0b00000
)),99:(4,0,4,(
0b0000,
0b0000,
0b0000,
0b0000,
0b0110,
0b1000,
0b1000,
0b1001,
0b0110,
0b0000,
0b0000
)),100:(5,0,5,(
0b00000,
0b00000,
0b00010,
0b00010,
0b01110,
0b10010,
0b10010,
0b10011,
0b01100,
0b00000,
0b00000
)),101:(4,0,4,(
0b0000,
0b0000,
0b0000,
0b0000,
0b0110,
0b1010,
0b1100,
0b1001,
0b0110,
0b0000,
0b0000
)),102:(5,0,5,(
0b00000,
0b00000,
0b00100,
0b01010,
0b01010,
0b01010,
0b01100,
0b11010,
0b01011,
0b01010,
0b00100
)),103:(5,0,5,(
0b00000,
0b00000,
0b00000,
0b00000,
0b01110,
0b10010,
0b10010,
0b11011,
0b00110,
0b01010,
0b01100
)),104:(5,0,5,(
0b00000,
0b01000,
0b10100,
0b10000,
0b10100,
0b11010,
0b10010,
0b10011,
0b10010,
0b00000,
0b00000
)),105:(3,0,3,(
0b000,
0b000,
0b100,
0b000,
0b100,
0b100,
0b100,
0b101,
0b010,
0b000,
0b000
)),106:(4,0,4,(
0b0000,
0b0000,
0b0010,
0b0000,
0b0010,
0b0010,
0b0110,
0b1011,
0b1010,
0b1010,
0b0100
)),107:(5,0,5,(
0b00000,
0b00000,
0b10000,
0b10000,
0b10100,
0b11010,
0b11100,
0b10101,
0b10010,
0b00000,
0b00000
)),108:(3,0,3,(
0b000,
0b000,
0b100,
0b100,
0b100,
0b100,
0b100,
0b101,
0b010,
0b000,
0b000
)),109:(6,0,6,(
0b000000,
0b000000,
0b000000,
0b000000,
0b010100,
0b101010,
0b101010,
0b101011,
0b101010,
0b000000,
0b000000
)),110:(5,0,5,(
0b00000,
0b00000,
0b00000,
0b00000,
0b10100,
0b11010,
0b10010,
0b10011,
0b10010,
0b00000,
0b00000
)),111:(5,0,5,(
0b00000,
0b00000,
0b00000,
0b00000,
0b01100,
0b10010,
0b10011,
0b10010,
0b01100,
0b00000,
0b00000
)),112:(5,0,5,(
0b00000,
0b00000,
0b00000,
0b00000,
0b11100,
0b10010,
0b10010,
0b10011,
0b11100,
0b10000,
0b10000
)),113:(5,0,5,(
0b00000,
0b00000,
0b00000,
0b00000,
0b01110,
0b10010,
0b10010,
0b10011,
0b01110,
0b00010,
0b00010
)),114:(5,0,5,(
0b00000,
0b00000,
0b00000,
0b00000,
0b01100,
0b10100,
0b10100,
0b10101,
0b00010,
0b00000,
0b00000
)),115:(5,0,5,(
0b00000,
0b00000,
0b00000,
0b00000,
0b00100,
0b00100,
0b01010,
0b10011,
0b11110,
0b00000,
0b00000
)),116:(4,0,4,(
0b0000,
0b0000,
0b1000,
0b1000,
0b1110,
0b1000,
0b1000,
0b1001,
0b0110,
0b0000,
0b0000
)),117:(5,0,5,(
0b00000,
0b00000,
0b00000,
0b00000,
0b10010,
0b10010,
0b10010,
0b10011,
0b01100,
0b00000,
0b00000
)),118:(5,0,5,(
0b00000,
0b00000,
0b00000,
0b00000,
0b10010,
0b10011,
0b10010,
0b10100,
0b01000,
0b00000,
0b00000
)),119:(6,0,6,(
0b000000,
0b000000,
0b000000,
0b000000,
0b101010,
0b101010,
0b101011,
0b010100,
0b010100,
0b000000,
0b000000
)),120:(6,0,6,(
0b000000,
0b000000,
0b000000,
0b000000,
0b100010,
0b010100,
0b001000,
0b010101,
0b100010,
0b000000,
0b000000
)),121:(5,0,5,(
0b00000,
0b00000,
0b00000,
0b00000,
0b10010,
0b10010,
0b10010,
0b10011,
0b01100,
0b10010,
0b11100
)),122:(4,0,4,(
0b0000,
0b0000,
0b0000,
0b0000,
0b1110,
0b0010,
0b1100,
0b0010,
0b0111,
0b1010,
0b1100
)),123:(4,0,4,(
0b0000,
0b0010,
0b0100,
0b0100,
0b0100,
0b1000,
0b0100,
0b0100,
0b0100,
0b0010,
0b0000
)),124:(2,0,2,(
0b00,
0b10,
0b10,
0b10,
0b10,
0b10,
0b10,
0b10,
0b10,
0b10,
0b00
)),125:(4,0,4,(
0b0000,
0b1000,
0b0100,
0b0100,
0b0100,
0b0010,
0b0100,
0b0100,
0b0100,
0b1000,
0b0000
)),126:(7,0,7,(
0b0000000,
0b0000000,
0b0000000,
0b0000000,
0b0000000,
0b0110010,
0b1001100,
0b0000000,
0b0000000,
0b0000000,
0b0000000
)),128:(8,0,8,(
0b00000000,
0b00000000,
0b00011100,
0b00100010,
0b11111000,
0b01000000,
0b11110000,
0b00100010,
0b00011100,
0b00000000,
0b00000000
)),130:(3,0,3,(
0b000,
0b000,
0b000,
0b000,
0b000,
0b000,
0b000,
0b110,
0b010,
0b100,
0b000
)),131:(8,0,8,(
0b00000000,
0b00000000,
0b00000110,
0b00001000,
0b00111100,
0b00010000,
0b00010000,
0b00100000,
0b00100000,
0b11000000,
0b00000000
)),132:(5,0,5,(
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b11110,
0b01010,
0b10100,
0b00000
)),133:(6,0,6,(
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b101010,
0b000000,
0b000000
)),134:(6,0,6,(
0b000000,
0b000000,
0b001000,
0b001000,
0b111110,
0b001000,
0b001000,
0b001000,
0b001000,
0b001000,
0b001000
)),135:(6,0,6,(
0b000000,
0b000000,
0b001000,
0b001000,
0b111110,
0b001000,
0b001000,
0b001000,
0b111110,
0b001000,
0b001000
)),136:(4,0,4,(
0b0000,
0b0000,
0b0100,
0b1010,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000
)),137:(11,0,11,(
0b00000000000,
0b00000000000,
0b01000100000,
0b10100100000,
0b10101000000,
0b01010100100,
0b00101011010,
0b01001011010,
0b01000100100,
0b00000000000,
0b00000000000
)),138:(5,0,5,(
0b01010,
0b00100,
0b00000,
0b01110,
0b10000,
0b01100,
0b00010,
0b00010,
0b11100,
0b00000,
0b00000
)),139:(4,0,4,(
0b0000,
0b0000,
0b0000,
0b0000,
0b0010,
0b0100,
0b1000,
0b0100,
0b0010,
0b0000,
0b0000
)),140:(8,0,8,(
0b00000000,
0b00000000,
0b00111110,
0b01001000,
0b10001000,
0b10001110,
0b10001000,
0b01001000,
0b00111110,
0b00000000,
0b00000000
)),141:(10,0,10,(
0b0000000000,
0b0000100000,
0b0001010000,
0b0010001000,
0b0100000100,
0b1000000010,
0b0100000100,
0b0010001000,
0b0001010000,
0b0000100000,
0b0000000000
)),142:(10,0,10,(
0b0001110000,
0b0011111000,
0b0011111000,
0b0101110100,
0b1111111110,
0b1111111110,
0b1111111110,
0b0110101100,
0b0001110000,
0b0011111000,
0b0000000000
)),143:(10,0,10,(
0b0000000000,
0b0111011100,
0b1001110010,
0b1000100010,
0b1000000010,
0b1000000010,
0b0100000100,
0b0010001000,
0b0001010000,
0b0000100000,
0b0000000000
)),144:(10,0,10,(
0b0000100000,
0b0001110000,
0b0011111000,
0b0111111100,
0b1111111110,
0b1111111110,
0b1111111110,
0b0110101100,
0b0001110000,
0b0011111000,
0b0000000000
)),145:(3,0,3,(
0b000,
0b000,
0b010,
0b100,
0b110,
0b000,
0b000,
0b000,
0b000,
0b000,
0b000
)),146:(3,0,3,(
0b000,
0b000,
0b110,
0b010,
0b100,
0b000,
0b000,
0b000,
0b000,
0b000,
0b000
)),147:(5,0,5,(
0b00000,
0b00000,
0b01010,
0b10100,
0b11110,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000
)),148:(5,0,5,(
0b00000,
0b00000,
0b11110,
0b01010,
0b10100,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000
)),149:(4,0,4,(
0b0000,
0b0000,
0b0000,
0b0000,
0b1110,
0b1110,
0b1110,
0b0000,
0b0000,
0b0000,
0b0000
)),150:(4,0,4,(
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b1111,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000
)),151:(7,0,7,(
0b0000000,
0b0000000,
0b0000000,
0b0000000,
0b0000000,
0b1111111,
0b0000000,
0b0000000,
0b0000000,
0b0000000,
0b0000000
)),152:(7,0,7,(
0b0000000,
0b0000000,
0b0000000,
0b0110010,
0b1001100,
0b0000000,
0b0000000,
0b0000000,
0b0000000,
0b0000000,
0b0000000
)),153:(10,0,10,(
0b0000000000,
0b0000000000,
0b1110100010,
0b0100110110,
0b0100101010,
0b0000000000,
0b0000000000,
0b0000000000,
0b0000000000,
0b0000000000,
0b0000000000
)),154:(4,0,4,(
0b0000,
0b1010,
0b0100,
0b0000,
0b0110,
0b1000,
0b0100,
0b0010,
0b1100,
0b0000,
0b0000
)),155:(4,0,4,(
0b0000,
0b0000,
0b0000,
0b0000,
0b1000,
0b0100,
0b0010,
0b0100,
0b1000,
0b0000,
0b0000
)),156:(8,0,8,(
0b00000000,
0b00000000,
0b00000000,
0b00000000,
0b01101100,
0b10010010,
0b10011110,
0b10010000,
0b01101110,
0b00000000,
0b00000000
)),157:(8,0,8,(
0b00000000,
0b00000000,
0b00000000,
0b00000010,
0b00000100,
0b00001000,
0b00010000,
0b00100000,
0b11000000,
0b11000000,
0b00000000
)),158:(8,0,8,(
0b00000000,
0b00010000,
0b00101000,
0b00101000,
0b00101000,
0b00101000,
0b00010000,
0b00101000,
0b11000100,
0b11000010,
0b00000000
)),159:(6,0,6,(
0b000000,
0b010100,
0b000000,
0b100010,
0b100010,
0b010100,
0b001000,
0b001000,
0b001000,
0b000000,
0b000000
)),160:(2,0,2,(
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00
)),161:(2,0,2,(
0b00,
0b00,
0b00,
0b00,
0b10,
0b00,
0b10,
0b10,
0b10,
0b10,
0b10
)),162:(6,0,6,(
0b000000,
0b000000,
0b001000,
0b011100,
0b101010,
0b101000,
0b101000,
0b101010,
0b011100,
0b001000,
0b000000
)),163:(6,0,6,(
0b000000,
0b000000,
0b001110,
0b010000,
0b010000,
0b111100,
0b010000,
0b010000,
0b111110,
0b000000,
0b000000
)),164:(8,0,8,(
0b00000000,
0b00000000,
0b10010010,
0b01101100,
0b01000100,
0b10000010,
0b01000100,
0b01101100,
0b10010010,
0b00000000,
0b00000000
)),165:(6,0,6,(
0b000000,
0b000000,
0b100010,
0b010100,
0b111110,
0b001000,
0b111110,
0b001000,
0b001000,
0b000000,
0b000000
)),166:(2,0,2,(
0b00,
0b00,
0b10,
0b10,
0b10,
0b10,
0b00,
0b10,
0b10,
0b10,
0b10
)),167:(5,0,5,(
0b00000,
0b01100,
0b10010,
0b01000,
0b10100,
0b10010,
0b01010,
0b00100,
0b10010,
0b01100,
0b00000
)),168:(4,0,4,(
0b0000,
0b0000,
0b0000,
0b1010,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000
)),169:(8,0,8,(
0b00000000,
0b00000000,
0b00000000,
0b00111000,
0b01000100,
0b10111010,
0b10100010,
0b10111010,
0b01000100,
0b00111000,
0b00000000
)),170:(5,0,5,(
0b00000,
0b00000,
0b01110,
0b10010,
0b01110,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000
)),171:(6,0,6,(
0b000000,
0b000000,
0b000000,
0b000000,
0b001010,
0b010100,
0b101000,
0b010100,
0b001010,
0b000000,
0b000000
)),172:(6,0,6,(
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b111110,
0b000010,
0b000010,
0b000000,
0b000000,
0b000000
)),173:(4,0,4,(
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b1110,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000
)),174:(8,0,8,(
0b00000000,
0b00000000,
0b00000000,
0b00111000,
0b01000100,
0b10111010,
0b10110010,
0b10101010,
0b01000100,
0b00111000,
0b00000000
)),175:(6,0,6,(
0b000000,
0b111110,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000
)),176:(5,0,5,(
0b00000,
0b01100,
0b10010,
0b10010,
0b01100,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000
)),177:(6,0,6,(
0b000000,
0b000000,
0b001000,
0b001000,
0b111110,
0b001000,
0b001000,
0b111110,
0b000000,
0b000000,
0b000000
)),178:(4,0,4,(
0b0000,
0b0000,
0b1110,
0b0010,
0b0100,
0b1110,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000
)),179:(4,0,4,(
0b0000,
0b0000,
0b1110,
0b0100,
0b0010,
0b1110,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000
)),180:(3,0,3,(
0b000,
0b010,
0b100,
0b000,
0b000,
0b000,
0b000,
0b000,
0b000,
0b000,
0b000
)),181:(5,0,5,(
0b00000,
0b00000,
0b00000,
0b00000,
0b10010,
0b10010,
0b10010,
0b10010,
0b11110,
0b10000,
0b10000
)),182:(6,0,6,(
0b000000,
0b000000,
0b011110,
0b111010,
0b111010,
0b011010,
0b001010,
0b001010,
0b001010,
0b000000,
0b000000
)),183:(2,0,2,(
0b00,
0b00,
0b00,
0b00,
0b00,
0b10,
0b00,
0b00,
0b00,
0b00,
0b00
)),184:(4,0,4,(
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0100,
0b0010,
0b1100
)),185:(2,0,2,(
0b00,
0b00,
0b10,
0b10,
0b10,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00
)),186:(5,0,5,(
0b00000,
0b00000,
0b01100,
0b10010,
0b01100,
0b00000,
0b11110,
0b00000,
0b00000,
0b00000,
0b00000
)),187:(6,0,6,(
0b000000,
0b000000,
0b000000,
0b000000,
0b101000,
0b010100,
0b001010,
0b010100,
0b101000,
0b000000,
0b000000
)),188:(8,0,8,(
0b00000000,
0b10000000,
0b10000100,
0b10001000,
0b10010000,
0b00100100,
0b01001100,
0b10011110,
0b00000100,
0b00000000,
0b00000000
)),189:(8,0,8,(
0b00000000,
0b10000000,
0b10000100,
0b10001000,
0b10010000,
0b00101110,
0b01000010,
0b10000100,
0b00001110,
0b00000000,
0b00000000
)),190:(9,0,9,(
0b000000000,
0b111000000,
0b010000100,
0b001001000,
0b111010000,
0b000100100,
0b001001100,
0b010011110,
0b000000100,
0b000000000,
0b000000000
)),191:(5,0,5,(
0b00000,
0b00000,
0b00100,
0b00000,
0b00100,
0b00100,
0b01000,
0b10000,
0b01110,
0b00000,
0b00000
)),192:(6,0,6,(
0b010000,
0b001000,
0b000000,
0b001000,
0b010100,
0b100100,
0b100100,
0b100101,
0b011010,
0b000000,
0b000000
)),193:(6,0,6,(
0b001000,
0b010000,
0b000000,
0b001000,
0b010100,
0b100100,
0b100100,
0b100101,
0b011010,
0b000000,
0b000000
)),194:(6,0,6,(
0b001000,
0b010100,
0b000000,
0b001000,
0b010100,
0b100100,
0b100100,
0b100101,
0b011010,
0b000000,
0b000000
)),195:(6,0,6,(
0b010100,
0b101000,
0b000000,
0b001000,
0b010100,
0b100100,
0b100100,
0b100101,
0b011010,
0b000000,
0b000000
)),196:(6,0,6,(
0b000000,
0b010100,
0b000000,
0b001000,
0b010100,
0b100100,
0b100100,
0b100101,
0b011010,
0b000000,
0b000000
)),197:(6,0,6,(
0b011000,
0b100100,
0b011000,
0b001000,
0b010100,
0b100100,
0b100100,
0b100101,
0b011010,
0b000000,
0b000000
)),198:(7,0,7,(
0b0000000,
0b0000000,
0b0111110,
0b1001000,
0b1001000,
0b1111110,
0b1001000,
0b1001000,
0b1001110,
0b0000000,
0b0000000
)),199:(5,0,5,(
0b00000,
0b00000,
0b00110,
0b01000,
0b10000,
0b10000,
0b10000,
0b01000,
0b00110,
0b00100,
0b01000
)),200:(4,0,4,(
0b0100,
0b0010,
0b0000,
0b0110,
0b1000,
0b0110,
0b1000,
0b1001,
0b0110,
0b0000,
0b0000
)),201:(4,0,4,(
0b0010,
0b0100,
0b0000,
0b0110,
0b1000,
0b0110,
0b1000,
0b1001,
0b0110,
0b0000,
0b0000
)),202:(4,0,4,(
0b0100,
0b1010,
0b0000,
0b0110,
0b1000,
0b0110,
0b1000,
0b1001,
0b0110,
0b0000,
0b0000
)),203:(4,0,4,(
0b0000,
0b1010,
0b0000,
0b0110,
0b1000,
0b0110,
0b1000,
0b1001,
0b0110,
0b0000,
0b0000
)),204:(3,0,3,(
0b100,
0b010,
0b000,
0b010,
0b010,
0b010,
0b010,
0b010,
0b010,
0b000,
0b000
)),205:(2,0,2,(
0b01,
0b10,
0b00,
0b10,
0b10,
0b10,
0b10,
0b10,
0b10,
0b00,
0b00
)),206:(3,0,3,(
0b010,
0b101,
0b000,
0b010,
0b010,
0b010,
0b010,
0b010,
0b010,
0b000,
0b000
)),207:(3,0,3,(
0b101,
0b000,
0b000,
0b010,
0b010,
0b010,
0b010,
0b010,
0b010,
0b000,
0b000
)),208:(7,0,7,(
0b0000000,
0b0000000,
0b0111000,
0b0100100,
0b0100010,
0b1110010,
0b0100010,
0b0100100,
0b0111000,
0b0000000,
0b0000000
)),209:(6,0,6,(
0b001010,
0b010100,
0b000000,
0b001000,
0b110100,
0b100100,
0b100100,
0b100101,
0b100010,
0b000000,
0b000000
)),210:(6,0,6,(
0b001000,
0b000100,
0b000000,
0b001100,
0b110110,
0b011010,
0b010010,
0b010010,
0b001100,
0b000000,
0b000000
)),211:(6,0,6,(
0b000100,
0b001000,
0b000000,
0b001100,
0b010110,
0b111010,
0b010010,
0b010010,
0b001100,
0b000000,
0b000000
)),212:(6,0,6,(
0b001000,
0b010100,
0b000000,
0b001100,
0b010110,
0b111010,
0b010010,
0b010010,
0b001100,
0b000000,
0b000000
)),213:(6,0,6,(
0b001010,
0b010100,
0b000000,
0b001100,
0b010110,
0b111010,
0b010010,
0b010010,
0b001100,
0b000000,
0b000000
)),214:(6,0,6,(
0b000000,
0b010100,
0b000000,
0b001100,
0b010110,
0b111010,
0b010010,
0b010010,
0b001100,
0b000000,
0b000000
)),215:(5,0,5,(
0b00000,
0b00000,
0b00000,
0b00000,
0b10010,
0b01100,
0b01100,
0b10010,
0b00000,
0b00000,
0b00000
)),216:(8,0,8,(
0b00000000,
0b00000000,
0b00111010,
0b01000100,
0b10001010,
0b10010010,
0b10100010,
0b01000100,
0b10111000,
0b00000000,
0b00000000
)),217:(6,0,6,(
0b001000,
0b000100,
0b000000,
0b100010,
0b100010,
0b100010,
0b100010,
0b100010,
0b011100,
0b000000,
0b000000
)),218:(6,0,6,(
0b000100,
0b001000,
0b000000,
0b100010,
0b100010,
0b100010,
0b100010,
0b100010,
0b011100,
0b000000,
0b000000
)),219:(6,0,6,(
0b001000,
0b010100,
0b000000,
0b100010,
0b100010,
0b100010,
0b100010,
0b100010,
0b011100,
0b000000,
0b000000
)),220:(6,0,6,(
0b000000,
0b010100,
0b000000,
0b100010,
0b100010,
0b100010,
0b100010,
0b100010,
0b011100,
0b000000,
0b000000
)),221:(6,0,6,(
0b000100,
0b001000,
0b000000,
0b100010,
0b100010,
0b011100,
0b001000,
0b001000,
0b001000,
0b000000,
0b000000
)),222:(6,0,6,(
0b000000,
0b000000,
0b100000,
0b111100,
0b100010,
0b100010,
0b100010,
0b111100,
0b100000,
0b000000,
0b000000
)),223:(6,0,6,(
0b000000,
0b000000,
0b011000,
0b100100,
0b100100,
0b101100,
0b100010,
0b100010,
0b101100,
0b000000,
0b000000
)),224:(6,0,6,(
0b000000,
0b001000,
0b000100,
0b000000,
0b001000,
0b010100,
0b100100,
0b100101,
0b011010,
0b000000,
0b000000
)),225:(6,0,6,(
0b000000,
0b000100,
0b001000,
0b000000,
0b001000,
0b010100,
0b100100,
0b100101,
0b011010,
0b000000,
0b000000
)),226:(6,0,6,(
0b000000,
0b001000,
0b010100,
0b000000,
0b001000,
0b010100,
0b100100,
0b100101,
0b011010,
0b000000,
0b000000
)),227:(6,0,6,(
0b000000,
0b001010,
0b010100,
0b000000,
0b001000,
0b010100,
0b100100,
0b100101,
0b011010,
0b000000,
0b000000
)),228:(6,0,6,(
0b000000,
0b000000,
0b010100,
0b000000,
0b001000,
0b010100,
0b100100,
0b100101,
0b011010,
0b000000,
0b000000
)),229:(6,0,6,(
0b001000,
0b010100,
0b001000,
0b000000,
0b001000,
0b010100,
0b100100,
0b100101,
0b011010,
0b000000,
0b000000
)),230:(8,0,8,(
0b00000000,
0b00000000,
0b00000000,
0b00000000,
0b01101100,
0b00010010,
0b01111110,
0b10010000,
0b01111110,
0b00000000,
0b00000000
)),231:(4,0,4,(
0b0000,
0b0000,
0b0000,
0b0000,
0b0110,
0b1000,
0b1000,
0b1000,
0b0110,
0b0100,
0b1000
)),232:(4,0,4,(
0b0000,
0b0100,
0b0010,
0b0000,
0b0110,
0b1010,
0b1100,
0b1001,
0b0110,
0b0000,
0b0000
)),233:(4,0,4,(
0b0000,
0b0010,
0b0100,
0b0000,
0b0110,
0b1010,
0b1100,
0b1001,
0b0110,
0b0000,
0b0000
)),234:(4,0,4,(
0b0000,
0b0100,
0b1010,
0b0000,
0b0110,
0b1010,
0b1100,
0b1001,
0b0110,
0b0000,
0b0000
)),235:(4,0,4,(
0b0000,
0b0000,
0b1010,
0b0000,
0b0110,
0b1010,
0b1100,
0b1001,
0b0110,
0b0000,
0b0000
)),236:(2,0,2,(
0b00,
0b10,
0b01,
0b00,
0b10,
0b10,
0b10,
0b10,
0b10,
0b00,
0b00
)),237:(2,0,2,(
0b00,
0b01,
0b10,
0b00,
0b10,
0b10,
0b10,
0b10,
0b10,
0b00,
0b00
)),238:(3,0,3,(
0b000,
0b010,
0b101,
0b000,
0b010,
0b010,
0b010,
0b010,
0b010,
0b000,
0b000
)),239:(3,0,3,(
0b000,
0b101,
0b000,
0b000,
0b010,
0b010,
0b010,
0b010,
0b010,
0b000,
0b000
)),240:(5,0,5,(
0b00000,
0b00000,
0b11000,
0b11000,
0b00100,
0b01100,
0b10010,
0b10010,
0b01100,
0b00000,
0b00000
)),241:(5,0,5,(
0b00000,
0b01010,
0b10100,
0b00000,
0b11100,
0b10010,
0b10010,
0b10010,
0b10010,
0b00000,
0b00000
)),242:(5,0,5,(
0b00000,
0b01000,
0b00100,
0b00000,
0b01100,
0b10010,
0b10011,
0b10010,
0b01100,
0b00000,
0b00000
)),243:(5,0,5,(
0b00000,
0b00100,
0b01000,
0b00000,
0b01100,
0b10010,
0b10011,
0b10010,
0b01100,
0b00000,
0b00000
)),244:(5,0,5,(
0b00000,
0b00100,
0b01010,
0b00000,
0b01100,
0b10010,
0b10011,
0b10010,
0b01100,
0b00000,
0b00000
)),245:(5,0,5,(
0b00000,
0b01010,
0b10100,
0b00000,
0b01100,
0b10010,
0b10011,
0b10010,
0b01100,
0b00000,
0b00000
)),246:(5,0,5,(
0b00000,
0b00000,
0b01010,
0b00000,
0b01100,
0b10010,
0b10011,
0b10010,
0b01100,
0b00000,
0b00000
)),247:(6,0,6,(
0b000000,
0b000000,
0b000000,
0b000000,
0b001000,
0b000000,
0b111110,
0b000000,
0b001000,
0b000000,
0b000000
)),248:(7,0,7,(
0b0000000,
0b0000000,
0b0000000,
0b0000000,
0b0011010,
0b0101100,
0b0110100,
0b0100100,
0b1011000,
0b0000000,
0b0000000
)),249:(5,0,5,(
0b00000,
0b01000,
0b00100,
0b00000,
0b10010,
0b10010,
0b10010,
0b10011,
0b01100,
0b00000,
0b00000
)),250:(5,0,5,(
0b00000,
0b00100,
0b01000,
0b00000,
0b10010,
0b10010,
0b10010,
0b10011,
0b01100,
0b00000,
0b00000
)),251:(5,0,5,(
0b00000,
0b00100,
0b01010,
0b00000,
0b10010,
0b10010,
0b10010,
0b10011,
0b01100,
0b00000,
0b00000
)),252:(5,0,5,(
0b00000,
0b00000,
0b01010,
0b00000,
0b10010,
0b10010,
0b10010,
0b10011,
0b01100,
0b00000,
0b00000
)),253:(5,0,5,(
0b00000,
0b00100,
0b01000,
0b00000,
0b10010,
0b10010,
0b10010,
0b10011,
0b01100,
0b10010,
0b11100
)),254:(5,0,5,(
0b00000,
0b00000,
0b10000,
0b10000,
0b11100,
0b10010,
0b10010,
0b10010,
0b11100,
0b10000,
0b10000
)),255:(5,0,5,(
0b00000,
0b00000,
0b01010,
0b00000,
0b10010,
0b10010,
0b10010,
0b10011,
0b01100,
0b10010,
0b11100
)),}
# generated by fontconv
#fontType 36864
#firstChar 9
#lastChar 255
#maxWidth 11
#kernMax 0
#nDescent 0
#fRectWidth 11
#fRectHeight 11
#ascent 9
#descent 2
#leading 0
#averageWidth 6.05
FONTS['squat11pt'] = {
9:(2,0,2,(
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00
)),20:(9,0,9,(
0b000000000,
0b000000000,
0b000000000,
0b011110000,
0b100001010,
0b011110100,
0b001100110,
0b011100100,
0b001100010,
0b000000000,
0b000000000
)),21:(5,0,5,(
0b00000,
0b00000,
0b00000,
0b00100,
0b01000,
0b10000,
0b11010,
0b10000,
0b01000,
0b00100,
0b00000
)),22:(8,0,8,(
0b00000000,
0b00000000,
0b00000000,
0b00000110,
0b00001100,
0b00011000,
0b11110000,
0b11100000,
0b11100000,
0b00000000,
0b00000000
)),23:(8,0,8,(
0b00000000,
0b00000000,
0b00000000,
0b00111000,
0b01101100,
0b01101100,
0b00111000,
0b11101100,
0b11000110,
0b00000000,
0b00000000
)),24:(6,0,6,(
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b101010,
0b000000,
0b000000
)),25:(6,0,6,(
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000
)),32:(2,0,2,(
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00
)),33:(3,0,3,(
0b000,
0b000,
0b000,
0b110,
0b110,
0b110,
0b110,
0b000,
0b110,
0b000,
0b000
)),34:(6,0,6,(
0b000000,
0b000000,
0b000000,
0b110110,
0b110110,
0b010010,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000
)),35:(6,0,6,(
0b000000,
0b000000,
0b000000,
0b010100,
0b111110,
0b010100,
0b111110,
0b010100,
0b000000,
0b000000,
0b000000
)),36:(6,0,6,(
0b000000,
0b000000,
0b000000,
0b001000,
0b011110,
0b101000,
0b011100,
0b001010,
0b111100,
0b001000,
0b000000
)),37:(9,0,9,(
0b000000000,
0b000000000,
0b000000000,
0b011111100,
0b101001000,
0b101010100,
0b010101010,
0b001001010,
0b110000100,
0b000000000,
0b000000000
)),38:(8,0,8,(
0b00000000,
0b00000000,
0b00000000,
0b01111000,
0b11000000,
0b01110010,
0b11101110,
0b11000100,
0b01111000,
0b00000000,
0b00000000
)),39:(3,0,3,(
0b000,
0b000,
0b000,
0b110,
0b110,
0b010,
0b000,
0b000,
0b000,
0b000,
0b000
)),40:(5,0,5,(
0b00000,
0b00000,
0b00110,
0b01100,
0b11000,
0b11000,
0b11000,
0b11000,
0b01100,
0b00110,
0b00000
)),41:(5,0,5,(
0b00000,
0b00000,
0b11000,
0b01100,
0b00110,
0b00110,
0b00110,
0b00110,
0b01100,
0b11000,
0b00000
)),42:(6,0,6,(
0b000000,
0b000000,
0b010100,
0b001000,
0b111110,
0b001000,
0b010100,
0b000000,
0b000000,
0b000000,
0b000000
)),43:(6,0,6,(
0b000000,
0b000000,
0b000000,
0b001000,
0b001000,
0b111110,
0b001000,
0b001000,
0b000000,
0b000000,
0b000000
)),44:(3,0,3,(
0b000,
0b000,
0b000,
0b000,
0b000,
0b000,
0b000,
0b000,
0b110,
0b010,
0b100
)),45:(5,0,5,(
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b11110,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000
)),46:(3,0,3,(
0b000,
0b000,
0b000,
0b000,
0b000,
0b000,
0b000,
0b000,
0b110,
0b000,
0b000
)),47:(5,0,5,(
0b00000,
0b00000,
0b00000,
0b00110,
0b00110,
0b01100,
0b01100,
0b11000,
0b11000,
0b00000,
0b00000
)),48:(6,0,6,(
0b000000,
0b000000,
0b000000,
0b011100,
0b110110,
0b110110,
0b110110,
0b110110,
0b011100,
0b000000,
0b000000
)),49:(6,0,6,(
0b000000,
0b000000,
0b000000,
0b001100,
0b011100,
0b001100,
0b001100,
0b001100,
0b011110,
0b000000,
0b000000
)),50:(6,0,6,(
0b000000,
0b000000,
0b000000,
0b011100,
0b110110,
0b000110,
0b011100,
0b110000,
0b111110,
0b000000,
0b000000
)),51:(6,0,6,(
0b000000,
0b000000,
0b000000,
0b011100,
0b110110,
0b001100,
0b001110,
0b110110,
0b011100,
0b000000,
0b000000
)),52:(6,0,6,(
0b000000,
0b000000,
0b000000,
0b001110,
0b011110,
0b110110,
0b111110,
0b000110,
0b000110,
0b000000,
0b000000
)),53:(6,0,6,(
0b000000,
0b000000,
0b000000,
0b111110,
0b110000,
0b111100,
0b000110,
0b110110,
0b011100,
0b000000,
0b000000
)),54:(6,0,6,(
0b000000,
0b000000,
0b000000,
0b011100,
0b110000,
0b111100,
0b110110,
0b110110,
0b011100,
0b000000,
0b000000
)),55:(6,0,6,(
0b000000,
0b000000,
0b000000,
0b111110,
0b000110,
0b001100,
0b001100,
0b011000,
0b011000,
0b000000,
0b000000
)),56:(6,0,6,(
0b000000,
0b000000,
0b000000,
0b011100,
0b110110,
0b011100,
0b110110,
0b110110,
0b011100,
0b000000,
0b000000
)),57:(6,0,6,(
0b000000,
0b000000,
0b000000,
0b011100,
0b110110,
0b110110,
0b011110,
0b000110,
0b011100,
0b000000,
0b000000
)),58:(3,0,3,(
0b000,
0b000,
0b000,
0b000,
0b110,
0b000,
0b000,
0b000,
0b110,
0b000,
0b000
)),59:(3,0,3,(
0b000,
0b000,
0b000,
0b000,
0b110,
0b000,
0b000,
0b000,
0b110,
0b010,
0b100
)),60:(5,0,5,(
0b00000,
0b00000,
0b00000,
0b00110,
0b01100,
0b11000,
0b01100,
0b00110,
0b00000,
0b00000,
0b00000
)),61:(6,0,6,(
0b000000,
0b000000,
0b000000,
0b000000,
0b111110,
0b000000,
0b111110,
0b000000,
0b000000,
0b000000,
0b000000
)),62:(5,0,5,(
0b00000,
0b00000,
0b00000,
0b11000,
0b01100,
0b00110,
0b01100,
0b11000,
0b00000,
0b00000,
0b00000
)),63:(6,0,6,(
0b000000,
0b000000,
0b000000,
0b111100,
0b000110,
0b001100,
0b011000,
0b000000,
0b011000,
0b000000,
0b000000
)),64:(10,0,10,(
0b0000000000,
0b0000000000,
0b0000000000,
0b0011111000,
0b0110001100,
0b1100110110,
0b1101010110,
0b1100101100,
0b0110000000,
0b0011110000,
0b0000000000
)),65:(7,0,7,(
0b0000000,
0b0000000,
0b0000000,
0b0111100,
0b1100110,
0b1100110,
0b1111110,
0b1100110,
0b1100110,
0b0000000,
0b0000000
)),66:(7,0,7,(
0b0000000,
0b0000000,
0b0000000,
0b1111100,
0b1100110,
0b1111100,
0b1100110,
0b1100110,
0b1111100,
0b0000000,
0b0000000
)),67:(7,0,7,(
0b0000000,
0b0000000,
0b0000000,
0b0111100,
0b1100110,
0b1100000,
0b1100000,
0b1100110,
0b0111100,
0b0000000,
0b0000000
)),68:(7,0,7,(
0b0000000,
0b0000000,
0b0000000,
0b1111100,
0b1100110,
0b1100110,
0b1100110,
0b1100110,
0b1111100,
0b0000000,
0b0000000
)),69:(6,0,6,(
0b000000,
0b000000,
0b000000,
0b111110,
0b110000,
0b111100,
0b110000,
0b110000,
0b111110,
0b000000,
0b000000
)),70:(6,0,6,(
0b000000,
0b000000,
0b000000,
0b111110,
0b110000,
0b111100,
0b110000,
0b110000,
0b110000,
0b000000,
0b000000
)),71:(7,0,7,(
0b0000000,
0b0000000,
0b0000000,
0b0111100,
0b1100110,
0b1100000,
0b1101110,
0b1100110,
0b0111100,
0b0000000,
0b0000000
)),72:(7,0,7,(
0b0000000,
0b0000000,
0b0000000,
0b1100110,
0b1100110,
0b1111110,
0b1100110,
0b1100110,
0b1100110,
0b0000000,
0b0000000
)),73:(3,0,3,(
0b000,
0b000,
0b000,
0b110,
0b110,
0b110,
0b110,
0b110,
0b110,
0b000,
0b000
)),74:(5,0,5,(
0b00000,
0b00000,
0b00000,
0b00110,
0b00110,
0b00110,
0b00110,
0b00110,
0b11100,
0b00000,
0b00000
)),75:(7,0,7,(
0b0000000,
0b0000000,
0b0000000,
0b1100110,
0b1101100,
0b1111000,
0b1111000,
0b1101100,
0b1100110,
0b0000000,
0b0000000
)),76:(6,0,6,(
0b000000,
0b000000,
0b000000,
0b110000,
0b110000,
0b110000,
0b110000,
0b110000,
0b111110,
0b000000,
0b000000
)),77:(8,0,8,(
0b00000000,
0b00000000,
0b00000000,
0b11000110,
0b11101110,
0b11111110,
0b11010110,
0b11000110,
0b11000110,
0b00000000,
0b00000000
)),78:(7,0,7,(
0b0000000,
0b0000000,
0b0000000,
0b1100110,
0b1110110,
0b1111110,
0b1101110,
0b1100110,
0b1100110,
0b0000000,
0b0000000
)),79:(7,0,7,(
0b0000000,
0b0000000,
0b0000000,
0b0111100,
0b1100110,
0b1100110,
0b1100110,
0b1100110,
0b0111100,
0b0000000,
0b0000000
)),80:(7,0,7,(
0b0000000,
0b0000000,
0b0000000,
0b1111100,
0b1100110,
0b1100110,
0b1111100,
0b1100000,
0b1100000,
0b0000000,
0b0000000
)),81:(7,0,7,(
0b0000000,
0b0000000,
0b0000000,
0b0111100,
0b1100110,
0b1100110,
0b1100110,
0b1101110,
0b0111100,
0b0000110,
0b0000000
)),82:(7,0,7,(
0b0000000,
0b0000000,
0b0000000,
0b1111100,
0b1100110,
0b1100110,
0b1111100,
0b1101100,
0b1100110,
0b0000000,
0b0000000
)),83:(6,0,6,(
0b000000,
0b000000,
0b000000,
0b011110,
0b110000,
0b111100,
0b011110,
0b000110,
0b111100,
0b000000,
0b000000
)),84:(7,0,7,(
0b0000000,
0b0000000,
0b0000000,
0b1111110,
0b0011000,
0b0011000,
0b0011000,
0b0011000,
0b0011000,
0b0000000,
0b0000000
)),85:(7,0,7,(
0b0000000,
0b0000000,
0b0000000,
0b1100110,
0b1100110,
0b1100110,
0b1100110,
0b1100110,
0b0111100,
0b0000000,
0b0000000
)),86:(8,0,8,(
0b00000000,
0b00000000,
0b00000000,
0b11000110,
0b11000110,
0b01101100,
0b01101100,
0b00111000,
0b00111000,
0b00000000,
0b00000000
)),87:(9,0,9,(
0b000000000,
0b000000000,
0b000000000,
0b110110110,
0b110110110,
0b110110110,
0b111111100,
0b011001100,
0b011001100,
0b000000000,
0b000000000
)),88:(7,0,7,(
0b0000000,
0b0000000,
0b0000000,
0b1100110,
0b0111100,
0b0011000,
0b0111100,
0b1100110,
0b1000010,
0b0000000,
0b0000000
)),89:(7,0,7,(
0b0000000,
0b0000000,
0b0000000,
0b1100110,
0b1100110,
0b0111100,
0b0011000,
0b0011000,
0b0011000,
0b0000000,
0b0000000
)),90:(6,0,6,(
0b000000,
0b000000,
0b000000,
0b111110,
0b000110,
0b001100,
0b011000,
0b110000,
0b111110,
0b000000,
0b000000
)),91:(4,0,4,(
0b0000,
0b0000,
0b1110,
0b1100,
0b1100,
0b1100,
0b1100,
0b1100,
0b1100,
0b1110,
0b0000
)),92:(6,0,6,(
0b000000,
0b000000,
0b110000,
0b110000,
0b011000,
0b001100,
0b001100,
0b000110,
0b000110,
0b000000,
0b000000
)),93:(4,0,4,(
0b0000,
0b0000,
0b1110,
0b0110,
0b0110,
0b0110,
0b0110,
0b0110,
0b0110,
0b1110,
0b0000
)),94:(6,0,6,(
0b000000,
0b000000,
0b000000,
0b001000,
0b011100,
0b110110,
0b100010,
0b000000,
0b000000,
0b000000,
0b000000
)),95:(5,0,5,(
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b11111,
0b00000
)),96:(4,0,4,(
0b0000,
0b0000,
0b1100,
0b0010,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000
)),97:(6,0,6,(
0b000000,
0b000000,
0b000000,
0b000000,
0b011100,
0b000110,
0b011110,
0b110110,
0b111110,
0b000000,
0b000000
)),98:(6,0,6,(
0b000000,
0b000000,
0b110000,
0b110000,
0b111100,
0b110110,
0b110110,
0b110110,
0b111100,
0b000000,
0b000000
)),99:(5,0,5,(
0b00000,
0b00000,
0b00000,
0b00000,
0b01110,
0b11000,
0b11000,
0b11000,
0b01110,
0b00000,
0b00000
)),100:(6,0,6,(
0b000000,
0b000000,
0b000110,
0b000110,
0b011110,
0b110110,
0b110110,
0b110110,
0b011110,
0b000000,
0b000000
)),101:(6,0,6,(
0b000000,
0b000000,
0b000000,
0b000000,
0b011100,
0b110110,
0b111110,
0b110000,
0b011110,
0b000000,
0b000000
)),102:(5,0,5,(
0b00000,
0b00000,
0b00111,
0b01100,
0b11110,
0b01100,
0b01100,
0b01100,
0b01100,
0b00000,
0b00000
)),103:(7,0,7,(
0b0000000,
0b0000000,
0b0000000,
0b0000000,
0b0111010,
0b1101100,
0b1101100,
0b0111000,
0b0001100,
0b1100100,
0b0111000
)),104:(6,0,6,(
0b000000,
0b000000,
0b110000,
0b110000,
0b111100,
0b110110,
0b110110,
0b110110,
0b110110,
0b000000,
0b000000
)),105:(3,0,3,(
0b000,
0b000,
0b110,
0b000,
0b110,
0b110,
0b110,
0b110,
0b110,
0b000,
0b000
)),106:(4,0,4,(
0b0000,
0b0000,
0b0110,
0b0000,
0b0110,
0b0110,
0b0110,
0b0110,
0b0110,
0b0110,
0b1100
)),107:(6,0,6,(
0b000000,
0b000000,
0b110000,
0b110000,
0b110110,
0b111100,
0b111100,
0b110110,
0b110011,
0b000000,
0b000000
)),108:(3,0,3,(
0b000,
0b000,
0b110,
0b110,
0b110,
0b110,
0b110,
0b110,
0b110,
0b000,
0b000
)),109:(9,0,9,(
0b000000000,
0b000000000,
0b000000000,
0b000000000,
0b110110100,
0b111111110,
0b110110110,
0b110110110,
0b110110110,
0b000000000,
0b000000000
)),110:(6,0,6,(
0b000000,
0b000000,
0b000000,
0b000000,
0b111100,
0b110110,
0b110110,
0b110110,
0b110110,
0b000000,
0b000000
)),111:(6,0,6,(
0b000000,
0b000000,
0b000000,
0b000000,
0b011100,
0b110110,
0b110110,
0b110110,
0b011100,
0b000000,
0b000000
)),112:(6,0,6,(
0b000000,
0b000000,
0b000000,
0b000000,
0b111100,
0b110110,
0b110110,
0b110110,
0b111100,
0b110000,
0b110000
)),113:(6,0,6,(
0b000000,
0b000000,
0b000000,
0b000000,
0b011110,
0b110110,
0b110110,
0b110110,
0b011110,
0b000110,
0b000110
)),114:(5,0,5,(
0b00000,
0b00000,
0b00000,
0b00000,
0b11010,
0b11110,
0b11000,
0b11000,
0b11000,
0b00000,
0b00000
)),115:(5,0,5,(
0b00000,
0b00000,
0b00000,
0b00000,
0b01110,
0b11000,
0b11110,
0b00110,
0b11100,
0b00000,
0b00000
)),116:(6,0,6,(
0b000000,
0b000000,
0b000000,
0b011000,
0b111110,
0b011000,
0b011000,
0b011000,
0b001110,
0b000000,
0b000000
)),117:(6,0,6,(
0b000000,
0b000000,
0b000000,
0b000000,
0b110110,
0b110110,
0b110110,
0b110110,
0b011110,
0b000000,
0b000000
)),118:(6,0,6,(
0b000000,
0b000000,
0b000000,
0b000000,
0b110110,
0b110110,
0b110110,
0b011100,
0b011100,
0b000000,
0b000000
)),119:(9,0,9,(
0b000000000,
0b000000000,
0b000000000,
0b000000000,
0b110110110,
0b110110110,
0b110110110,
0b011111100,
0b011001100,
0b000000000,
0b000000000
)),120:(6,0,6,(
0b000000,
0b000000,
0b000000,
0b000000,
0b110110,
0b110110,
0b011100,
0b110110,
0b110110,
0b000000,
0b000000
)),121:(6,0,6,(
0b000000,
0b000000,
0b000000,
0b000000,
0b110110,
0b110110,
0b110110,
0b011100,
0b001100,
0b011000,
0b110000
)),122:(5,0,5,(
0b00000,
0b00000,
0b00000,
0b00000,
0b11110,
0b00110,
0b01100,
0b11000,
0b11110,
0b00000,
0b00000
)),123:(5,0,5,(
0b00000,
0b00000,
0b00110,
0b01100,
0b01000,
0b11000,
0b11000,
0b01000,
0b01100,
0b00110,
0b00000
)),124:(3,0,3,(
0b000,
0b000,
0b110,
0b110,
0b110,
0b110,
0b110,
0b110,
0b110,
0b110,
0b000
)),125:(5,0,5,(
0b00000,
0b00000,
0b11000,
0b01100,
0b00100,
0b00110,
0b00110,
0b00100,
0b01100,
0b11000,
0b00000
)),126:(7,0,7,(
0b0000000,
0b0000000,
0b0000000,
0b0000000,
0b0110010,
0b1011010,
0b1001100,
0b0000000,
0b0000000,
0b0000000,
0b0000000
)),128:(9,0,9,(
0b000000000,
0b000000000,
0b000111100,
0b001100010,
0b111111000,
0b011000000,
0b111110000,
0b001100010,
0b000111100,
0b000000000,
0b000000000
)),130:(3,0,3,(
0b000,
0b000,
0b000,
0b000,
0b000,
0b000,
0b000,
0b000,
0b110,
0b010,
0b100
)),131:(9,0,9,(
0b000000000,
0b000000000,
0b000001110,
0b000011000,
0b001111100,
0b000110000,
0b000110000,
0b001100000,
0b001100000,
0b111000000,
0b000000000
)),132:(5,0,5,(
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b11110,
0b01010,
0b10100
)),133:(6,0,6,(
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b101010,
0b000000,
0b000000
)),134:(5,0,5,(
0b00000,
0b00000,
0b01100,
0b01100,
0b11110,
0b01100,
0b01100,
0b01100,
0b01100,
0b01100,
0b01100
)),135:(5,0,5,(
0b00000,
0b00000,
0b01100,
0b01100,
0b11110,
0b01100,
0b01100,
0b01100,
0b11110,
0b01100,
0b01100
)),136:(4,0,4,(
0b0000,
0b0000,
0b0100,
0b1010,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000
)),137:(11,0,11,(
0b00000000000,
0b00000000000,
0b01000010000,
0b10100100000,
0b10101000000,
0b01010100100,
0b00101011010,
0b01001011010,
0b10000100100,
0b00000000000,
0b00000000000
)),138:(6,0,6,(
0b010100,
0b001000,
0b000000,
0b011110,
0b111000,
0b011100,
0b001110,
0b000110,
0b111100,
0b000000,
0b000000
)),139:(5,0,5,(
0b00000,
0b00000,
0b00000,
0b00110,
0b01100,
0b11000,
0b01100,
0b00110,
0b00000,
0b00000,
0b00000
)),140:(10,0,10,(
0b0000000000,
0b0000000000,
0b0011111110,
0b0110011000,
0b1100011000,
0b1100011110,
0b1100011000,
0b0110011000,
0b0011111110,
0b0000000000,
0b0000000000
)),141:(10,0,10,(
0b0000000000,
0b0000100000,
0b0001110000,
0b0011011000,
0b0110001100,
0b1100000110,
0b0110001100,
0b0011011000,
0b0001110000,
0b0000100000,
0b0000000000
)),142:(10,0,10,(
0b0000000000,
0b0001110000,
0b0011111000,
0b0001110000,
0b0110101100,
0b1111111110,
0b1111111110,
0b0110101100,
0b0001110000,
0b0011111000,
0b0000000000
)),143:(10,0,10,(
0b0000000000,
0b0111011100,
0b1101110110,
0b1000100010,
0b1000000010,
0b1100000110,
0b0110001100,
0b0011011000,
0b0001110000,
0b0000100000,
0b0000000000
)),144:(10,0,10,(
0b0000000000,
0b0000100000,
0b0001110000,
0b0011111000,
0b0111111100,
0b1111111110,
0b1111111110,
0b0110101100,
0b0001110000,
0b0011111000,
0b0000000000
)),145:(3,0,3,(
0b000,
0b000,
0b010,
0b100,
0b110,
0b000,
0b000,
0b000,
0b000,
0b000,
0b000
)),146:(3,0,3,(
0b000,
0b000,
0b110,
0b010,
0b100,
0b000,
0b000,
0b000,
0b000,
0b000,
0b000
)),147:(5,0,5,(
0b00000,
0b00000,
0b01010,
0b10100,
0b11110,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000
)),148:(5,0,5,(
0b00000,
0b00000,
0b11110,
0b01010,
0b10100,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000
)),149:(4,0,4,(
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b1110,
0b1110,
0b1110,
0b0000,
0b0000,
0b0000
)),150:(4,0,4,(
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b1111,
0b0000,
0b0000,
0b0000,
0b0000
)),151:(6,0,6,(
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b111111,
0b000000,
0b000000,
0b000000,
0b000000
)),152:(7,0,7,(
0b0000000,
0b0000000,
0b0000000,
0b0000000,
0b0110010,
0b1011010,
0b1001100,
0b0000000,
0b0000000,
0b0000000,
0b0000000
)),153:(10,0,10,(
0b0000000000,
0b0000000000,
0b0000000000,
0b1110100010,
0b0100110110,
0b0100101010,
0b0000000000,
0b0000000000,
0b0000000000,
0b0000000000,
0b0000000000
)),154:(5,0,5,(
0b00000,
0b01010,
0b00100,
0b00000,
0b01110,
0b11000,
0b11110,
0b00110,
0b11100,
0b00000,
0b00000
)),155:(5,0,5,(
0b00000,
0b00000,
0b00000,
0b11000,
0b01100,
0b00110,
0b01100,
0b11000,
0b00000,
0b00000,
0b00000
)),156:(10,0,10,(
0b0000000000,
0b0000000000,
0b0000000000,
0b0000000000,
0b0111011100,
0b1101110110,
0b1101111110,
0b1101110000,
0b0111011110,
0b0000000000,
0b0000000000
)),157:(8,0,8,(
0b00000000,
0b00000000,
0b00000000,
0b00000110,
0b00001100,
0b00011000,
0b11110000,
0b11100000,
0b11100000,
0b00000000,
0b00000000
)),158:(8,0,8,(
0b00000000,
0b00000000,
0b00000000,
0b00111000,
0b01101100,
0b01101100,
0b00111000,
0b11101100,
0b11000110,
0b00000000,
0b00000000
)),159:(7,0,7,(
0b0000000,
0b0100100,
0b0000000,
0b1100110,
0b1100110,
0b0111100,
0b0011000,
0b0011000,
0b0011000,
0b0000000,
0b0000000
)),160:(2,0,2,(
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00
)),161:(3,0,3,(
0b000,
0b000,
0b000,
0b000,
0b110,
0b000,
0b110,
0b110,
0b110,
0b110,
0b110
)),162:(6,0,6,(
0b000000,
0b000000,
0b000000,
0b000100,
0b011110,
0b110100,
0b110100,
0b110100,
0b011110,
0b000100,
0b000000
)),163:(7,0,7,(
0b0000000,
0b0000000,
0b0011100,
0b0110000,
0b0110000,
0b1111100,
0b0110000,
0b0110000,
0b1111110,
0b0000000,
0b0000000
)),164:(8,0,8,(
0b00000000,
0b00000000,
0b10111010,
0b01111100,
0b11000110,
0b11000110,
0b11000110,
0b01111100,
0b10111010,
0b00000000,
0b00000000
)),165:(7,0,7,(
0b0000000,
0b0000000,
0b1100010,
0b0110100,
0b1111110,
0b0011000,
0b1111110,
0b0011000,
0b0011000,
0b0000000,
0b0000000
)),166:(3,0,3,(
0b000,
0b000,
0b110,
0b110,
0b110,
0b110,
0b000,
0b110,
0b110,
0b110,
0b110
)),167:(6,0,6,(
0b000000,
0b011100,
0b110110,
0b011000,
0b111100,
0b110110,
0b011110,
0b001100,
0b110110,
0b011100,
0b000000
)),168:(4,0,4,(
0b0000,
0b0000,
0b0000,
0b1010,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000
)),169:(8,0,8,(
0b00000000,
0b00000000,
0b00000000,
0b00111000,
0b01000100,
0b10111010,
0b10100010,
0b10111010,
0b01000100,
0b00111000,
0b00000000
)),170:(6,0,6,(
0b000000,
0b000000,
0b011110,
0b110110,
0b011110,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000
)),171:(8,0,8,(
0b00000000,
0b00000000,
0b00000000,
0b00000000,
0b00110110,
0b01101100,
0b11011000,
0b01101100,
0b00110110,
0b00000000,
0b00000000
)),172:(6,0,6,(
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b111110,
0b000010,
0b000010,
0b000000,
0b000000,
0b000000
)),173:(5,0,5,(
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b11110,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000
)),174:(8,0,8,(
0b00000000,
0b00000000,
0b00000000,
0b00111000,
0b01000100,
0b10111010,
0b10110010,
0b10101010,
0b01000100,
0b00111000,
0b00000000
)),175:(6,0,6,(
0b000000,
0b000000,
0b111110,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000
)),176:(5,0,5,(
0b00000,
0b00000,
0b01100,
0b10010,
0b10010,
0b01100,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000
)),177:(6,0,6,(
0b000000,
0b000000,
0b000000,
0b001000,
0b001000,
0b111110,
0b001000,
0b001000,
0b111110,
0b000000,
0b000000
)),178:(4,0,4,(
0b0000,
0b0000,
0b0000,
0b1110,
0b0010,
0b0100,
0b1110,
0b0000,
0b0000,
0b0000,
0b0000
)),179:(4,0,4,(
0b0000,
0b0000,
0b0000,
0b1110,
0b0100,
0b0010,
0b1110,
0b0000,
0b0000,
0b0000,
0b0000
)),180:(4,0,4,(
0b0000,
0b0000,
0b0000,
0b0110,
0b1000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000
)),181:(6,0,6,(
0b000000,
0b000000,
0b000000,
0b000000,
0b110110,
0b110110,
0b110110,
0b110110,
0b111010,
0b110000,
0b110000
)),182:(7,0,7,(
0b0000000,
0b0000000,
0b0111110,
0b1110110,
0b1110110,
0b0110110,
0b0010110,
0b0010110,
0b0010110,
0b0000000,
0b0000000
)),183:(2,0,2,(
0b00,
0b00,
0b00,
0b00,
0b00,
0b10,
0b00,
0b00,
0b00,
0b00,
0b00
)),184:(4,0,4,(
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0100,
0b0010,
0b1100
)),185:(2,0,2,(
0b00,
0b00,
0b10,
0b10,
0b10,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00
)),186:(6,0,6,(
0b000000,
0b000000,
0b000000,
0b011100,
0b110110,
0b011100,
0b000000,
0b111110,
0b000000,
0b000000,
0b000000
)),187:(8,0,8,(
0b00000000,
0b00000000,
0b00000000,
0b00000000,
0b11011000,
0b01101100,
0b00110110,
0b01101100,
0b11011000,
0b00000000,
0b00000000
)),188:(9,0,9,(
0b000000000,
0b110000000,
0b110001100,
0b110011000,
0b110110000,
0b001100100,
0b011001100,
0b110011110,
0b000001100,
0b000000000,
0b000000000
)),189:(9,0,9,(
0b000000000,
0b110000000,
0b110001100,
0b110011000,
0b110110000,
0b001101110,
0b011000110,
0b110001100,
0b000001110,
0b000000000,
0b000000000
)),190:(9,0,9,(
0b000000000,
0b111000000,
0b011001100,
0b011011000,
0b111110000,
0b001100100,
0b011001100,
0b110011110,
0b000001100,
0b000000000,
0b000000000
)),191:(6,0,6,(
0b000000,
0b000000,
0b000000,
0b001100,
0b000000,
0b001100,
0b011000,
0b110000,
0b011110,
0b000000,
0b000000
)),192:(7,0,7,(
0b0010000,
0b0001000,
0b0000000,
0b0111100,
0b1100110,
0b1111110,
0b1100110,
0b1100110,
0b1100110,
0b0000000,
0b0000000
)),193:(7,0,7,(
0b0001000,
0b0010000,
0b0000000,
0b0111100,
0b1100110,
0b1111110,
0b1100110,
0b1100110,
0b1100110,
0b0000000,
0b0000000
)),194:(7,0,7,(
0b0011000,
0b0100100,
0b0000000,
0b0111100,
0b1100110,
0b1111110,
0b1100110,
0b1100110,
0b1100110,
0b0000000,
0b0000000
)),195:(7,0,7,(
0b0110100,
0b1011000,
0b0000000,
0b0111100,
0b1100110,
0b1111110,
0b1100110,
0b1100110,
0b1100110,
0b0000000,
0b0000000
)),196:(7,0,7,(
0b0000000,
0b0100100,
0b0000000,
0b0111100,
0b1100110,
0b1111110,
0b1100110,
0b1100110,
0b1100110,
0b0000000,
0b0000000
)),197:(7,0,7,(
0b0011000,
0b0100100,
0b0011000,
0b0111100,
0b1100110,
0b1111110,
0b1100110,
0b1100110,
0b1100110,
0b0000000,
0b0000000
)),198:(9,0,9,(
0b000000000,
0b000000000,
0b000000000,
0b011111110,
0b110011000,
0b111111110,
0b110011000,
0b110011000,
0b110011110,
0b000000000,
0b000000000
)),199:(6,0,6,(
0b000000,
0b000000,
0b000000,
0b001110,
0b011000,
0b110000,
0b110000,
0b011000,
0b001110,
0b000100,
0b001000
)),200:(6,0,6,(
0b010000,
0b001000,
0b000000,
0b111110,
0b110000,
0b111110,
0b110000,
0b110000,
0b111110,
0b000000,
0b000000
)),201:(6,0,6,(
0b001000,
0b010000,
0b000000,
0b111110,
0b110000,
0b111110,
0b110000,
0b110000,
0b111110,
0b000000,
0b000000
)),202:(6,0,6,(
0b001000,
0b010100,
0b000000,
0b111110,
0b110000,
0b111110,
0b110000,
0b110000,
0b111110,
0b000000,
0b000000
)),203:(6,0,6,(
0b000000,
0b010100,
0b000000,
0b111110,
0b110000,
0b111110,
0b110000,
0b110000,
0b111110,
0b000000,
0b000000
)),204:(3,0,3,(
0b100,
0b010,
0b000,
0b110,
0b110,
0b110,
0b110,
0b110,
0b110,
0b000,
0b000
)),205:(3,0,3,(
0b010,
0b100,
0b000,
0b110,
0b110,
0b110,
0b110,
0b110,
0b110,
0b000,
0b000
)),206:(3,0,3,(
0b010,
0b101,
0b000,
0b110,
0b110,
0b110,
0b110,
0b110,
0b110,
0b000,
0b000
)),207:(3,0,3,(
0b000,
0b101,
0b000,
0b110,
0b110,
0b110,
0b110,
0b110,
0b110,
0b000,
0b000
)),208:(8,0,8,(
0b00000000,
0b00000000,
0b00000000,
0b01111000,
0b01100100,
0b11110110,
0b01100110,
0b01100100,
0b01111000,
0b00000000,
0b00000000
)),209:(7,0,7,(
0b0110100,
0b1011000,
0b0000000,
0b1100110,
0b1110110,
0b1111110,
0b1101110,
0b1100110,
0b1100110,
0b0000000,
0b0000000
)),210:(8,0,8,(
0b00010000,
0b00001000,
0b00000000,
0b00111000,
0b01101100,
0b11000110,
0b11000110,
0b01101100,
0b00111000,
0b00000000,
0b00000000
)),211:(8,0,8,(
0b00001000,
0b00010000,
0b00000000,
0b00111000,
0b01101100,
0b11000110,
0b11000110,
0b01101100,
0b00111000,
0b00000000,
0b00000000
)),212:(8,0,8,(
0b00010000,
0b00101000,
0b00000000,
0b00111000,
0b01101100,
0b11000110,
0b11000110,
0b01101100,
0b00111000,
0b00000000,
0b00000000
)),213:(8,0,8,(
0b00110100,
0b01011000,
0b00000000,
0b00111000,
0b01101100,
0b11000110,
0b11000110,
0b01101100,
0b00111000,
0b00000000,
0b00000000
)),214:(8,0,8,(
0b00000000,
0b00101000,
0b00000000,
0b00111000,
0b01101100,
0b11000110,
0b11000110,
0b01101100,
0b00111000,
0b00000000,
0b00000000
)),215:(6,0,6,(
0b000000,
0b000000,
0b000000,
0b000000,
0b110110,
0b011100,
0b011100,
0b110110,
0b000000,
0b000000,
0b000000
)),216:(8,0,8,(
0b00000000,
0b00000000,
0b00111010,
0b01101100,
0b11001110,
0b11010110,
0b11100110,
0b01101100,
0b10111000,
0b00000000,
0b00000000
)),217:(7,0,7,(
0b0010000,
0b0001000,
0b0000000,
0b1100110,
0b1100110,
0b1100110,
0b1100110,
0b1100110,
0b0111100,
0b0000000,
0b0000000
)),218:(7,0,7,(
0b0001000,
0b0010000,
0b0000000,
0b1100110,
0b1100110,
0b1100110,
0b1100110,
0b1100110,
0b0111100,
0b0000000,
0b0000000
)),219:(7,0,7,(
0b0001000,
0b0010100,
0b0000000,
0b1100110,
0b1100110,
0b1100110,
0b1100110,
0b1100110,
0b0111100,
0b0000000,
0b0000000
)),220:(7,0,7,(
0b0000000,
0b0010100,
0b0000000,
0b1100110,
0b1100110,
0b1100110,
0b1100110,
0b1100110,
0b0111100,
0b0000000,
0b0000000
)),221:(7,0,7,(
0b0001000,
0b0010000,
0b0000000,
0b1100110,
0b1100110,
0b0111100,
0b0011000,
0b0011000,
0b0011000,
0b0000000,
0b0000000
)),222:(7,0,7,(
0b0000000,
0b0000000,
0b1100000,
0b1111100,
0b1100110,
0b1100110,
0b1100110,
0b1111100,
0b1100000,
0b0000000,
0b0000000
)),223:(8,0,8,(
0b00000000,
0b00000000,
0b01111000,
0b11001100,
0b11001000,
0b11011100,
0b11001110,
0b11000110,
0b11011100,
0b00000000,
0b00000000
)),224:(6,0,6,(
0b000000,
0b001000,
0b000100,
0b000000,
0b011100,
0b000110,
0b011110,
0b110110,
0b111110,
0b000000,
0b000000
)),225:(6,0,6,(
0b000000,
0b000100,
0b001000,
0b000000,
0b011100,
0b000110,
0b011110,
0b110110,
0b111110,
0b000000,
0b000000
)),226:(6,0,6,(
0b000000,
0b001000,
0b010100,
0b000000,
0b011100,
0b000110,
0b011110,
0b110110,
0b111110,
0b000000,
0b000000
)),227:(6,0,6,(
0b000000,
0b011010,
0b101100,
0b000000,
0b011100,
0b000110,
0b011110,
0b110110,
0b111110,
0b000000,
0b000000
)),228:(6,0,6,(
0b000000,
0b000000,
0b010100,
0b000000,
0b011100,
0b000110,
0b011110,
0b110110,
0b111110,
0b000000,
0b000000
)),229:(6,0,6,(
0b001100,
0b010010,
0b001100,
0b000000,
0b011100,
0b000110,
0b011110,
0b110110,
0b111110,
0b000000,
0b000000
)),230:(9,0,9,(
0b000000000,
0b000000000,
0b000000000,
0b000000000,
0b011101100,
0b000110110,
0b011111110,
0b110110000,
0b011111110,
0b000000000,
0b000000000
)),231:(5,0,5,(
0b00000,
0b00000,
0b00000,
0b00000,
0b01110,
0b11000,
0b11000,
0b11000,
0b01110,
0b00100,
0b01000
)),232:(6,0,6,(
0b000000,
0b001000,
0b000100,
0b000000,
0b011100,
0b110110,
0b111110,
0b110000,
0b011110,
0b000000,
0b000000
)),233:(6,0,6,(
0b000000,
0b000100,
0b001000,
0b000000,
0b011100,
0b110110,
0b111110,
0b110000,
0b011110,
0b000000,
0b000000
)),234:(6,0,6,(
0b000000,
0b001000,
0b010100,
0b000000,
0b011100,
0b110110,
0b111110,
0b110000,
0b011110,
0b000000,
0b000000
)),235:(6,0,6,(
0b000000,
0b000000,
0b010100,
0b000000,
0b011100,
0b110110,
0b111110,
0b110000,
0b011110,
0b000000,
0b000000
)),236:(3,0,3,(
0b000,
0b100,
0b010,
0b000,
0b110,
0b110,
0b110,
0b110,
0b110,
0b000,
0b000
)),237:(3,0,3,(
0b000,
0b010,
0b100,
0b000,
0b110,
0b110,
0b110,
0b110,
0b110,
0b000,
0b000
)),238:(3,0,3,(
0b000,
0b010,
0b101,
0b000,
0b110,
0b110,
0b110,
0b110,
0b110,
0b000,
0b000
)),239:(3,0,3,(
0b000,
0b000,
0b101,
0b000,
0b110,
0b110,
0b110,
0b110,
0b110,
0b000,
0b000
)),240:(6,0,6,(
0b000000,
0b000000,
0b111000,
0b111000,
0b001100,
0b011100,
0b110110,
0b110110,
0b011100,
0b000000,
0b000000
)),241:(6,0,6,(
0b000000,
0b011010,
0b101100,
0b000000,
0b111100,
0b110110,
0b110110,
0b110110,
0b110110,
0b000000,
0b000000
)),242:(6,0,6,(
0b000000,
0b001000,
0b000100,
0b000000,
0b011100,
0b110110,
0b110110,
0b110110,
0b011100,
0b000000,
0b000000
)),243:(6,0,6,(
0b000000,
0b000100,
0b001000,
0b000000,
0b011100,
0b110110,
0b110110,
0b110110,
0b011100,
0b000000,
0b000000
)),244:(6,0,6,(
0b000000,
0b001000,
0b010100,
0b000000,
0b011100,
0b110110,
0b110110,
0b110110,
0b011100,
0b000000,
0b000000
)),245:(6,0,6,(
0b000000,
0b011010,
0b101100,
0b000000,
0b011100,
0b110110,
0b110110,
0b110110,
0b011100,
0b000000,
0b000000
)),246:(6,0,6,(
0b000000,
0b000000,
0b010100,
0b000000,
0b011100,
0b110110,
0b110110,
0b110110,
0b011100,
0b000000,
0b000000
)),247:(7,0,7,(
0b0000000,
0b0000000,
0b0000000,
0b0011000,
0b0000000,
0b1111110,
0b0000000,
0b0011000,
0b0000000,
0b0000000,
0b0000000
)),248:(8,0,8,(
0b00000000,
0b00000000,
0b00000000,
0b00000000,
0b00111010,
0b01101100,
0b01111100,
0b01101100,
0b10111000,
0b00000000,
0b00000000
)),249:(6,0,6,(
0b000000,
0b001000,
0b000100,
0b000000,
0b110110,
0b110110,
0b110110,
0b110110,
0b011110,
0b000000,
0b000000
)),250:(6,0,6,(
0b000000,
0b000100,
0b001000,
0b000000,
0b110110,
0b110110,
0b110110,
0b110110,
0b011110,
0b000000,
0b000000
)),251:(6,0,6,(
0b000000,
0b001000,
0b010100,
0b000000,
0b110110,
0b110110,
0b110110,
0b110110,
0b011110,
0b000000,
0b000000
)),252:(6,0,6,(
0b000000,
0b000000,
0b010100,
0b000000,
0b110110,
0b110110,
0b110110,
0b110110,
0b011110,
0b000000,
0b000000
)),253:(6,0,6,(
0b000000,
0b000100,
0b001000,
0b000000,
0b110110,
0b110110,
0b110110,
0b011100,
0b001100,
0b011000,
0b110000
)),254:(6,0,6,(
0b000000,
0b000000,
0b000000,
0b110000,
0b111100,
0b110110,
0b110110,
0b110110,
0b111100,
0b110000,
0b110000
)),255:(6,0,6,(
0b000000,
0b000000,
0b010100,
0b000000,
0b110110,
0b110110,
0b110110,
0b011100,
0b001100,
0b011000,
0b110000
)),}
# generated by fontconv
#fontType 36864
#firstChar 9
#lastChar 255
#maxWidth 10
#kernMax 0
#nDescent 0
#fRectWidth 10
#fRectHeight 8
#ascent 6
#descent 2
#leading 0
#averageWidth 5.87
FONTS['squat8pt'] = {
9:(2,0,2,(
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00
)),20:(9,0,9,(
0b000000000,
0b000000000,
0b011110000,
0b100001010,
0b011110100,
0b001100110,
0b011100100,
0b001100010
)),21:(5,0,5,(
0b00000,
0b00100,
0b01000,
0b10000,
0b11010,
0b10000,
0b01000,
0b00100
)),22:(8,0,8,(
0b00000000,
0b00000110,
0b00001100,
0b00011000,
0b11110000,
0b11100000,
0b11100000,
0b00000000
)),23:(8,0,8,(
0b00000000,
0b00111000,
0b01101100,
0b01101100,
0b00111000,
0b11101100,
0b11000110,
0b00000000
)),24:(6,0,6,(
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b101010,
0b000000
)),25:(5,0,5,(
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000
)),32:(2,0,2,(
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00
)),33:(3,0,3,(
0b000,
0b110,
0b110,
0b110,
0b110,
0b000,
0b110,
0b000
)),34:(6,0,6,(
0b110110,
0b110110,
0b010010,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000
)),35:(6,0,6,(
0b000000,
0b010100,
0b111110,
0b010100,
0b111110,
0b010100,
0b000000,
0b000000
)),36:(6,0,6,(
0b000000,
0b001000,
0b011110,
0b101000,
0b011100,
0b001010,
0b111100,
0b001000
)),37:(9,0,9,(
0b000000000,
0b011111100,
0b101001000,
0b101010100,
0b010101010,
0b001001010,
0b110000100,
0b000000000
)),38:(8,0,8,(
0b00000000,
0b01111000,
0b11000000,
0b01110010,
0b11101110,
0b11000100,
0b01111000,
0b00000000
)),39:(3,0,3,(
0b110,
0b110,
0b010,
0b000,
0b000,
0b000,
0b000,
0b000
)),40:(5,0,5,(
0b00110,
0b01100,
0b11000,
0b11000,
0b11000,
0b11000,
0b01100,
0b00110
)),41:(5,0,5,(
0b11000,
0b01100,
0b00110,
0b00110,
0b00110,
0b00110,
0b01100,
0b11000
)),42:(6,0,6,(
0b010100,
0b001000,
0b111110,
0b001000,
0b010100,
0b000000,
0b000000,
0b000000
)),43:(6,0,6,(
0b000000,
0b001000,
0b001000,
0b111110,
0b001000,
0b001000,
0b000000,
0b000000
)),44:(3,0,3,(
0b000,
0b000,
0b000,
0b000,
0b000,
0b000,
0b110,
0b000
)),45:(5,0,5,(
0b00000,
0b00000,
0b00000,
0b11110,
0b00000,
0b00000,
0b00000,
0b00000
)),46:(3,0,3,(
0b000,
0b000,
0b000,
0b000,
0b000,
0b000,
0b110,
0b000
)),47:(5,0,5,(
0b00000,
0b00110,
0b00110,
0b01100,
0b01100,
0b11000,
0b11000,
0b00000
)),48:(6,0,6,(
0b000000,
0b011100,
0b110110,
0b110110,
0b110110,
0b110110,
0b011100,
0b000000
)),49:(6,0,6,(
0b000000,
0b001100,
0b011100,
0b001100,
0b001100,
0b001100,
0b011110,
0b000000
)),50:(6,0,6,(
0b000000,
0b011100,
0b110110,
0b000110,
0b011100,
0b110000,
0b111110,
0b000000
)),51:(6,0,6,(
0b000000,
0b011100,
0b110110,
0b001100,
0b001110,
0b110110,
0b011100,
0b000000
)),52:(6,0,6,(
0b000000,
0b001110,
0b011110,
0b110110,
0b111110,
0b000110,
0b000110,
0b000000
)),53:(6,0,6,(
0b000000,
0b111110,
0b110000,
0b111100,
0b000110,
0b110110,
0b011100,
0b000000
)),54:(6,0,6,(
0b000000,
0b011100,
0b110000,
0b111100,
0b110110,
0b110110,
0b011100,
0b000000
)),55:(6,0,6,(
0b000000,
0b111110,
0b000110,
0b001100,
0b001100,
0b011000,
0b011000,
0b000000
)),56:(6,0,6,(
0b000000,
0b011100,
0b110110,
0b011100,
0b110110,
0b110110,
0b011100,
0b000000
)),57:(6,0,6,(
0b000000,
0b011100,
0b110110,
0b110110,
0b011110,
0b000110,
0b011100,
0b000000
)),58:(3,0,3,(
0b000,
0b000,
0b110,
0b000,
0b000,
0b110,
0b000,
0b000
)),59:(3,0,3,(
0b000,
0b000,
0b110,
0b000,
0b000,
0b110,
0b010,
0b100
)),60:(5,0,5,(
0b00000,
0b00110,
0b01100,
0b11000,
0b01100,
0b00110,
0b00000,
0b00000
)),61:(6,0,6,(
0b000000,
0b000000,
0b111110,
0b000000,
0b111110,
0b000000,
0b000000,
0b000000
)),62:(5,0,5,(
0b00000,
0b11000,
0b01100,
0b00110,
0b01100,
0b11000,
0b00000,
0b00000
)),63:(6,0,6,(
0b000000,
0b111100,
0b000110,
0b001100,
0b011000,
0b000000,
0b011000,
0b000000
)),64:(8,0,8,(
0b00000000,
0b00111000,
0b01000100,
0b10011010,
0b10101010,
0b10010100,
0b01000000,
0b00111000
)),65:(6,0,6,(
0b000000,
0b011100,
0b110110,
0b110110,
0b111110,
0b110110,
0b110110,
0b000000
)),66:(6,0,6,(
0b000000,
0b111100,
0b110110,
0b111100,
0b110110,
0b110110,
0b111100,
0b000000
)),67:(6,0,6,(
0b000000,
0b011100,
0b110110,
0b110000,
0b110000,
0b110110,
0b011100,
0b000000
)),68:(6,0,6,(
0b000000,
0b111100,
0b110110,
0b110110,
0b110110,
0b110110,
0b111100,
0b000000
)),69:(6,0,6,(
0b000000,
0b111110,
0b110000,
0b111100,
0b110000,
0b110000,
0b111110,
0b000000
)),70:(6,0,6,(
0b000000,
0b111110,
0b110000,
0b111100,
0b110000,
0b110000,
0b110000,
0b000000
)),71:(6,0,6,(
0b000000,
0b011100,
0b110110,
0b110000,
0b110110,
0b110010,
0b011110,
0b000000
)),72:(6,0,6,(
0b000000,
0b110110,
0b110110,
0b111110,
0b110110,
0b110110,
0b110110,
0b000000
)),73:(3,0,3,(
0b000,
0b110,
0b110,
0b110,
0b110,
0b110,
0b110,
0b000
)),74:(5,0,5,(
0b00000,
0b00110,
0b00110,
0b00110,
0b00110,
0b00110,
0b11100,
0b00000
)),75:(6,0,6,(
0b000000,
0b110010,
0b110110,
0b111100,
0b111100,
0b110110,
0b110010,
0b000000
)),76:(6,0,6,(
0b000000,
0b110000,
0b110000,
0b110000,
0b110000,
0b110000,
0b111110,
0b000000
)),77:(8,0,8,(
0b00000000,
0b11000110,
0b11101110,
0b11111110,
0b11010110,
0b11000110,
0b11000110,
0b00000000
)),78:(7,0,7,(
0b0000000,
0b1100110,
0b1110110,
0b1111110,
0b1101110,
0b1100110,
0b1100110,
0b0000000
)),79:(7,0,7,(
0b0000000,
0b0111100,
0b1100110,
0b1100110,
0b1100110,
0b1100110,
0b0111100,
0b0000000
)),80:(6,0,6,(
0b000000,
0b111100,
0b110110,
0b110110,
0b111100,
0b110000,
0b110000,
0b000000
)),81:(6,0,6,(
0b000000,
0b011100,
0b110110,
0b110110,
0b110110,
0b110110,
0b011100,
0b000110
)),82:(6,0,6,(
0b000000,
0b111100,
0b110110,
0b110110,
0b111100,
0b110110,
0b110110,
0b000000
)),83:(6,0,6,(
0b000000,
0b011110,
0b110000,
0b111100,
0b011110,
0b000110,
0b111100,
0b000000
)),84:(7,0,7,(
0b0000000,
0b1111110,
0b0011000,
0b0011000,
0b0011000,
0b0011000,
0b0011000,
0b0000000
)),85:(6,0,6,(
0b000000,
0b110110,
0b110110,
0b110110,
0b110110,
0b110110,
0b011100,
0b000000
)),86:(6,0,6,(
0b000000,
0b110110,
0b110110,
0b110110,
0b110110,
0b011100,
0b001000,
0b000000
)),87:(9,0,9,(
0b000000000,
0b110110110,
0b110110110,
0b110110110,
0b111111100,
0b011001100,
0b011001100,
0b000000000
)),88:(6,0,6,(
0b000000,
0b110110,
0b110110,
0b011100,
0b011100,
0b110110,
0b110110,
0b000000
)),89:(7,0,7,(
0b0000000,
0b1100110,
0b1100110,
0b0111100,
0b0011000,
0b0011000,
0b0011000,
0b0000000
)),90:(5,0,5,(
0b00000,
0b11110,
0b00110,
0b01100,
0b11000,
0b11000,
0b11110,
0b00000
)),91:(4,0,4,(
0b1110,
0b1100,
0b1100,
0b1100,
0b1100,
0b1100,
0b1100,
0b1110
)),92:(6,0,6,(
0b110000,
0b110000,
0b011000,
0b001100,
0b001100,
0b000110,
0b000110,
0b000000
)),93:(4,0,4,(
0b1110,
0b0110,
0b0110,
0b0110,
0b0110,
0b0110,
0b0110,
0b1110
)),94:(6,0,6,(
0b000000,
0b001000,
0b011100,
0b110110,
0b100010,
0b000000,
0b000000,
0b000000
)),95:(5,0,5,(
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000
)),96:(4,0,4,(
0b0000,
0b0000,
0b1100,
0b0010,
0b0000,
0b0000,
0b0000,
0b0000
)),97:(6,0,6,(
0b000000,
0b000000,
0b011100,
0b000110,
0b011110,
0b110110,
0b111110,
0b000000
)),98:(6,0,6,(
0b110000,
0b110000,
0b111100,
0b110110,
0b110110,
0b110110,
0b111100,
0b000000
)),99:(5,0,5,(
0b00000,
0b00000,
0b01110,
0b11000,
0b11000,
0b11000,
0b01110,
0b00000
)),100:(6,0,6,(
0b000110,
0b000110,
0b011110,
0b110110,
0b110110,
0b110110,
0b011110,
0b000000
)),101:(6,0,6,(
0b000000,
0b000000,
0b011100,
0b110110,
0b111110,
0b110000,
0b011110,
0b000000
)),102:(5,0,5,(
0b00111,
0b01100,
0b11110,
0b01100,
0b01100,
0b01100,
0b01100,
0b00000
)),103:(6,0,6,(
0b000000,
0b000000,
0b011110,
0b110110,
0b110110,
0b011110,
0b000110,
0b111100
)),104:(6,0,6,(
0b110000,
0b110000,
0b111100,
0b110110,
0b110110,
0b110110,
0b110110,
0b000000
)),105:(3,0,3,(
0b110,
0b000,
0b110,
0b110,
0b110,
0b110,
0b110,
0b000
)),106:(4,0,4,(
0b0110,
0b0000,
0b0110,
0b0110,
0b0110,
0b0110,
0b0110,
0b1100
)),107:(6,0,6,(
0b110000,
0b110000,
0b110110,
0b111100,
0b111100,
0b110110,
0b110010,
0b000000
)),108:(3,0,3,(
0b110,
0b110,
0b110,
0b110,
0b110,
0b110,
0b110,
0b000
)),109:(9,0,9,(
0b000000000,
0b000000000,
0b110110100,
0b111111110,
0b110110110,
0b110110110,
0b110110110,
0b000000000
)),110:(6,0,6,(
0b000000,
0b000000,
0b111100,
0b110110,
0b110110,
0b110110,
0b110110,
0b000000
)),111:(6,0,6,(
0b000000,
0b000000,
0b011100,
0b110110,
0b110110,
0b110110,
0b011100,
0b000000
)),112:(6,0,6,(
0b000000,
0b000000,
0b111100,
0b110110,
0b110110,
0b110110,
0b111100,
0b110000
)),113:(6,0,6,(
0b000000,
0b000000,
0b011110,
0b110110,
0b110110,
0b110110,
0b011110,
0b000110
)),114:(5,0,5,(
0b00000,
0b00000,
0b11010,
0b11110,
0b11000,
0b11000,
0b11000,
0b00000
)),115:(5,0,5,(
0b00000,
0b00000,
0b01110,
0b11000,
0b11110,
0b00110,
0b11100,
0b00000
)),116:(6,0,6,(
0b000000,
0b011000,
0b111110,
0b011000,
0b011000,
0b011000,
0b001110,
0b000000
)),117:(6,0,6,(
0b000000,
0b000000,
0b110110,
0b110110,
0b110110,
0b110110,
0b011110,
0b000000
)),118:(6,0,6,(
0b000000,
0b000000,
0b110110,
0b110110,
0b110110,
0b011100,
0b001000,
0b000000
)),119:(9,0,9,(
0b000000000,
0b000000000,
0b110110110,
0b110110110,
0b110110110,
0b011111100,
0b001001000,
0b000000000
)),120:(6,0,6,(
0b000000,
0b000000,
0b110110,
0b110110,
0b011100,
0b110110,
0b110110,
0b000000
)),121:(6,0,6,(
0b000000,
0b000000,
0b110110,
0b110110,
0b110110,
0b011100,
0b001100,
0b111000
)),122:(5,0,5,(
0b00000,
0b00000,
0b11110,
0b00110,
0b01100,
0b11000,
0b11110,
0b00000
)),123:(5,0,5,(
0b00110,
0b01100,
0b01100,
0b11000,
0b11000,
0b01100,
0b01100,
0b00110
)),124:(3,0,3,(
0b110,
0b110,
0b110,
0b110,
0b110,
0b110,
0b110,
0b000
)),125:(5,0,5,(
0b11000,
0b01100,
0b01100,
0b00110,
0b00110,
0b01100,
0b01100,
0b11000
)),126:(7,0,7,(
0b0000000,
0b0000000,
0b0110010,
0b1011010,
0b1001100,
0b0000000,
0b0000000,
0b0000000
)),128:(9,0,9,(
0b000111100,
0b001100010,
0b111111000,
0b011000000,
0b111110000,
0b001100010,
0b000111100,
0b000000000
)),130:(3,0,3,(
0b000,
0b000,
0b000,
0b000,
0b000,
0b000,
0b110,
0b000
)),131:(7,0,7,(
0b0001110,
0b0011000,
0b0111100,
0b0011000,
0b0011000,
0b0110000,
0b1100000,
0b0000000
)),132:(5,0,5,(
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b11110,
0b00000
)),133:(6,0,6,(
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b101010,
0b000000
)),134:(5,0,5,(
0b01100,
0b01100,
0b11110,
0b01100,
0b01100,
0b01100,
0b01100,
0b00000
)),135:(5,0,5,(
0b01100,
0b01100,
0b11110,
0b01100,
0b11110,
0b01100,
0b01100,
0b00000
)),136:(4,0,4,(
0b0100,
0b1010,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000
)),137:(10,0,10,(
0b0100001000,
0b1010010000,
0b1010100000,
0b0101010100,
0b0010101010,
0b0100101010,
0b1000010100,
0b0000000000
)),138:(6,0,6,(
0b010100,
0b001000,
0b000000,
0b011110,
0b111000,
0b011100,
0b001110,
0b111100
)),139:(5,0,5,(
0b00000,
0b00110,
0b01100,
0b11000,
0b01100,
0b00110,
0b00000,
0b00000
)),140:(10,0,10,(
0b0011111110,
0b0110011000,
0b1100011000,
0b1100011110,
0b1100011000,
0b0110011000,
0b0011111110,
0b0000000000
)),141:(8,0,8,(
0b00010000,
0b00101000,
0b01000100,
0b10000010,
0b01000100,
0b00101000,
0b00010000,
0b00000000
)),142:(8,0,8,(
0b00111000,
0b00111000,
0b11010110,
0b11111110,
0b11010110,
0b00111000,
0b01111100,
0b00000000
)),143:(8,0,8,(
0b01101100,
0b10111010,
0b10010010,
0b10000010,
0b11000110,
0b01101100,
0b00111000,
0b00010000
)),144:(8,0,8,(
0b00010000,
0b00111000,
0b01111100,
0b11111110,
0b11111110,
0b01010100,
0b00111000,
0b01111100
)),145:(3,0,3,(
0b010,
0b100,
0b110,
0b000,
0b000,
0b000,
0b000,
0b000
)),146:(3,0,3,(
0b110,
0b010,
0b100,
0b000,
0b000,
0b000,
0b000,
0b000
)),147:(5,0,5,(
0b01010,
0b10100,
0b11110,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000
)),148:(5,0,5,(
0b11110,
0b01010,
0b10100,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000
)),149:(4,0,4,(
0b0000,
0b0000,
0b0000,
0b1110,
0b1110,
0b1110,
0b0000,
0b0000
)),150:(4,0,4,(
0b0000,
0b0000,
0b0000,
0b0000,
0b1111,
0b0000,
0b0000,
0b0000
)),151:(6,0,6,(
0b000000,
0b000000,
0b000000,
0b000000,
0b111111,
0b000000,
0b000000,
0b000000
)),152:(7,0,7,(
0b0000000,
0b0000000,
0b0110010,
0b1011010,
0b1001100,
0b0000000,
0b0000000,
0b0000000
)),153:(10,0,10,(
0b0000000000,
0b1110100010,
0b0100110110,
0b0100101010,
0b0000000000,
0b0000000000,
0b0000000000,
0b0000000000
)),154:(5,0,5,(
0b01010,
0b00100,
0b00000,
0b01110,
0b11000,
0b11110,
0b00110,
0b11100
)),155:(5,0,5,(
0b00000,
0b11000,
0b01100,
0b00110,
0b01100,
0b11000,
0b00000,
0b00000
)),156:(8,0,8,(
0b00000000,
0b01101100,
0b10111010,
0b10111110,
0b10111000,
0b01101100,
0b00000000,
0b00000000
)),157:(8,0,8,(
0b00000000,
0b00000110,
0b00001100,
0b00011000,
0b11110000,
0b11100000,
0b11100000,
0b00000000
)),158:(8,0,8,(
0b00000000,
0b00111000,
0b01101100,
0b01101100,
0b00111000,
0b11101100,
0b11000110,
0b00000000
)),159:(7,0,7,(
0b0100100,
0b0000000,
0b1100110,
0b1100110,
0b0111100,
0b0011000,
0b0011000,
0b0011000
)),160:(2,0,2,(
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00
)),161:(3,0,3,(
0b000,
0b000,
0b110,
0b000,
0b110,
0b110,
0b110,
0b110
)),162:(6,0,6,(
0b000000,
0b000100,
0b011110,
0b110100,
0b110100,
0b110100,
0b011110,
0b000100
)),163:(7,0,7,(
0b0011100,
0b0110000,
0b0110000,
0b1111100,
0b0110000,
0b0110000,
0b1111110,
0b0000000
)),164:(8,0,8,(
0b10111010,
0b01111100,
0b11000110,
0b11000110,
0b11000110,
0b01111100,
0b10111010,
0b00000000
)),165:(7,0,7,(
0b1100010,
0b0110100,
0b1111110,
0b0011000,
0b1111110,
0b0011000,
0b0011000,
0b0000000
)),166:(3,0,3,(
0b000,
0b110,
0b110,
0b110,
0b000,
0b110,
0b110,
0b110
)),167:(6,0,6,(
0b001100,
0b110010,
0b011000,
0b010100,
0b001100,
0b100110,
0b011000,
0b000000
)),168:(4,0,4,(
0b0000,
0b1010,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000
)),169:(8,0,8,(
0b00111000,
0b01000100,
0b10111010,
0b10100010,
0b10111010,
0b01000100,
0b00111000,
0b00000000
)),170:(6,0,6,(
0b011110,
0b110110,
0b011110,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000
)),171:(8,0,8,(
0b00000000,
0b00000000,
0b00110110,
0b01101100,
0b11011000,
0b01101100,
0b00110110,
0b00000000
)),172:(6,0,6,(
0b000000,
0b000000,
0b000000,
0b111110,
0b000010,
0b000010,
0b000000,
0b000000
)),173:(5,0,5,(
0b00000,
0b00000,
0b00000,
0b11110,
0b00000,
0b00000,
0b00000,
0b00000
)),174:(8,0,8,(
0b00111000,
0b01000100,
0b10111010,
0b10110010,
0b10101010,
0b01000100,
0b00111000,
0b00000000
)),175:(6,0,6,(
0b111110,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000
)),176:(5,0,5,(
0b01100,
0b10010,
0b10010,
0b01100,
0b00000,
0b00000,
0b00000,
0b00000
)),177:(6,0,6,(
0b000000,
0b001000,
0b001000,
0b111110,
0b001000,
0b001000,
0b111110,
0b000000
)),178:(4,0,4,(
0b0000,
0b1110,
0b0010,
0b0100,
0b1110,
0b0000,
0b0000,
0b0000
)),179:(4,0,4,(
0b0000,
0b1110,
0b0100,
0b0010,
0b1110,
0b0000,
0b0000,
0b0000
)),180:(4,0,4,(
0b0000,
0b0110,
0b1000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000
)),181:(6,0,6,(
0b000000,
0b110110,
0b110110,
0b110110,
0b110110,
0b111110,
0b000110,
0b000110
)),182:(7,0,7,(
0b0111110,
0b1110110,
0b1110110,
0b0110110,
0b0010110,
0b0010110,
0b0010110,
0b0000000
)),183:(2,0,2,(
0b00,
0b00,
0b00,
0b10,
0b00,
0b00,
0b00,
0b00
)),184:(4,0,4,(
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0100,
0b0000
)),185:(2,0,2,(
0b10,
0b10,
0b10,
0b00,
0b00,
0b00,
0b00,
0b00
)),186:(6,0,6,(
0b000000,
0b011100,
0b110110,
0b011100,
0b000000,
0b111110,
0b000000,
0b000000
)),187:(8,0,8,(
0b00000000,
0b00000000,
0b11011000,
0b01101100,
0b00110110,
0b01101100,
0b11011000,
0b00000000
)),188:(9,0,9,(
0b110000000,
0b110001100,
0b110011000,
0b110110100,
0b001101100,
0b011011110,
0b110000100,
0b000000000
)),189:(9,0,9,(
0b110000000,
0b110001100,
0b110011000,
0b110111100,
0b001100010,
0b011000100,
0b110001110,
0b000000000
)),190:(9,0,9,(
0b111000000,
0b011001100,
0b011011000,
0b111110100,
0b001101100,
0b011011110,
0b110001100,
0b000000000
)),191:(6,0,6,(
0b000000,
0b001100,
0b000000,
0b001100,
0b011000,
0b110000,
0b011110,
0b000000
)),192:(7,0,7,(
0b0010000,
0b0001000,
0b0000000,
0b0111100,
0b1100110,
0b1111110,
0b1100110,
0b1100110
)),193:(7,0,7,(
0b0001000,
0b0010000,
0b0000000,
0b0111100,
0b1100110,
0b1111110,
0b1100110,
0b1100110
)),194:(7,0,7,(
0b0011000,
0b0100100,
0b0000000,
0b0111100,
0b1100110,
0b1111110,
0b1100110,
0b1100110
)),195:(7,0,7,(
0b0110100,
0b1011000,
0b0000000,
0b0111100,
0b1100110,
0b1111110,
0b1100110,
0b1100110
)),196:(7,0,7,(
0b0000000,
0b0100100,
0b0000000,
0b0111100,
0b1100110,
0b1111110,
0b1100110,
0b1100110
)),197:(7,0,7,(
0b0011000,
0b0100100,
0b0011000,
0b0111100,
0b1100110,
0b1111110,
0b1100110,
0b1100110
)),198:(9,0,9,(
0b000000000,
0b011111110,
0b110011000,
0b111111110,
0b110011000,
0b110011000,
0b110011110,
0b000000000
)),199:(6,0,6,(
0b000000,
0b001100,
0b011000,
0b110000,
0b110000,
0b011000,
0b001100,
0b000000
)),200:(5,0,5,(
0b01000,
0b00100,
0b00000,
0b11110,
0b11000,
0b11100,
0b11000,
0b11110
)),201:(6,0,6,(
0b001000,
0b010000,
0b000000,
0b111100,
0b110000,
0b111000,
0b110000,
0b111100
)),202:(5,0,5,(
0b00100,
0b01010,
0b00000,
0b11110,
0b11000,
0b11100,
0b11000,
0b11110
)),203:(5,0,5,(
0b00000,
0b01010,
0b00000,
0b11110,
0b11000,
0b11110,
0b11000,
0b11110
)),204:(3,0,3,(
0b100,
0b010,
0b000,
0b110,
0b110,
0b110,
0b110,
0b110
)),205:(3,0,3,(
0b010,
0b100,
0b000,
0b110,
0b110,
0b110,
0b110,
0b110
)),206:(3,0,3,(
0b010,
0b101,
0b000,
0b110,
0b110,
0b110,
0b110,
0b110
)),207:(3,0,3,(
0b000,
0b101,
0b000,
0b110,
0b110,
0b110,
0b110,
0b110
)),208:(8,0,8,(
0b00000000,
0b01111000,
0b01100100,
0b11110110,
0b01100110,
0b01100100,
0b01111000,
0b00000000
)),209:(7,0,7,(
0b0110100,
0b1011000,
0b0000000,
0b1100110,
0b1110110,
0b1111110,
0b1101110,
0b1100110
)),210:(7,0,7,(
0b0010000,
0b0001000,
0b0000000,
0b0111100,
0b1100110,
0b1100110,
0b1100110,
0b0111100
)),211:(7,0,7,(
0b0001000,
0b0010000,
0b0000000,
0b0111100,
0b1100110,
0b1100110,
0b1100110,
0b0111100
)),212:(7,0,7,(
0b0001000,
0b0010100,
0b0000000,
0b0111100,
0b1100110,
0b1100110,
0b1100110,
0b0111100
)),213:(7,0,7,(
0b0011010,
0b0101100,
0b0000000,
0b0111100,
0b1100110,
0b1100110,
0b1100110,
0b0111100
)),214:(7,0,7,(
0b0000000,
0b0010100,
0b0000000,
0b0111100,
0b1100110,
0b1100110,
0b1100110,
0b0111100
)),215:(6,0,6,(
0b000000,
0b000000,
0b110110,
0b011100,
0b011100,
0b110110,
0b000000,
0b000000
)),216:(8,0,8,(
0b00111010,
0b01101100,
0b11001110,
0b11010110,
0b11100110,
0b01101100,
0b10111000,
0b00000000
)),217:(7,0,7,(
0b0010000,
0b0001000,
0b0000000,
0b1100110,
0b1100110,
0b1100110,
0b1100110,
0b0111100
)),218:(7,0,7,(
0b0001000,
0b0010000,
0b0000000,
0b1100110,
0b1100110,
0b1100110,
0b1100110,
0b0111100
)),219:(7,0,7,(
0b0001000,
0b0010100,
0b0000000,
0b1100110,
0b1100110,
0b1100110,
0b1100110,
0b0111100
)),220:(7,0,7,(
0b0000000,
0b0010100,
0b0000000,
0b1100110,
0b1100110,
0b1100110,
0b1100110,
0b0111100
)),221:(7,0,7,(
0b0001000,
0b0010000,
0b0000000,
0b1100110,
0b1100110,
0b0111100,
0b0011000,
0b0011000
)),222:(7,0,7,(
0b1100000,
0b1111100,
0b1100110,
0b1100110,
0b1100110,
0b1111100,
0b1100000,
0b0000000
)),223:(8,0,8,(
0b01111000,
0b11001100,
0b11001000,
0b11011100,
0b11001110,
0b11000110,
0b11011100,
0b00000000
)),224:(6,0,6,(
0b001000,
0b000100,
0b000000,
0b011100,
0b000110,
0b011110,
0b110110,
0b011110
)),225:(6,0,6,(
0b000100,
0b001000,
0b000000,
0b011100,
0b000110,
0b011110,
0b110110,
0b011110
)),226:(6,0,6,(
0b001000,
0b010100,
0b000000,
0b011100,
0b000110,
0b011110,
0b110110,
0b011110
)),227:(6,0,6,(
0b011010,
0b101100,
0b000000,
0b011100,
0b000110,
0b011110,
0b110110,
0b011110
)),228:(6,0,6,(
0b000000,
0b010100,
0b000000,
0b011100,
0b000110,
0b011110,
0b110110,
0b011110
)),229:(6,0,6,(
0b001100,
0b010010,
0b001100,
0b011100,
0b000110,
0b011110,
0b110110,
0b011110
)),230:(9,0,9,(
0b000000000,
0b000000000,
0b011101100,
0b000110110,
0b011111110,
0b110110000,
0b011111110,
0b000000000
)),231:(5,0,5,(
0b00000,
0b01110,
0b11000,
0b11000,
0b11000,
0b01110,
0b00010,
0b00100
)),232:(6,0,6,(
0b001000,
0b000100,
0b000000,
0b011100,
0b110110,
0b111110,
0b110000,
0b011110
)),233:(6,0,6,(
0b000100,
0b001000,
0b000000,
0b011100,
0b110110,
0b111110,
0b110000,
0b011110
)),234:(6,0,6,(
0b001000,
0b010100,
0b000000,
0b011100,
0b110110,
0b111110,
0b110000,
0b011110
)),235:(6,0,6,(
0b000000,
0b010100,
0b000000,
0b011100,
0b110110,
0b111110,
0b110000,
0b011110
)),236:(3,0,3,(
0b100,
0b010,
0b000,
0b110,
0b110,
0b110,
0b110,
0b110
)),237:(3,0,3,(
0b010,
0b100,
0b000,
0b110,
0b110,
0b110,
0b110,
0b110
)),238:(3,0,3,(
0b010,
0b101,
0b000,
0b110,
0b110,
0b110,
0b110,
0b110
)),239:(3,0,3,(
0b000,
0b101,
0b000,
0b110,
0b110,
0b110,
0b110,
0b110
)),240:(6,0,6,(
0b111000,
0b111000,
0b001100,
0b011100,
0b110110,
0b110110,
0b011100,
0b000000
)),241:(6,0,6,(
0b011010,
0b101100,
0b000000,
0b111100,
0b110110,
0b110110,
0b110110,
0b110110
)),242:(6,0,6,(
0b001000,
0b000100,
0b000000,
0b011100,
0b110110,
0b110110,
0b110110,
0b011100
)),243:(6,0,6,(
0b000100,
0b001000,
0b000000,
0b011100,
0b110110,
0b110110,
0b110110,
0b011100
)),244:(6,0,6,(
0b001000,
0b010100,
0b000000,
0b011100,
0b110110,
0b110110,
0b110110,
0b011100
)),245:(6,0,6,(
0b011010,
0b101100,
0b000000,
0b011100,
0b110110,
0b110110,
0b110110,
0b011100
)),246:(6,0,6,(
0b000000,
0b010100,
0b000000,
0b011100,
0b110110,
0b110110,
0b110110,
0b011100
)),247:(7,0,7,(
0b0000000,
0b0000000,
0b0011000,
0b0000000,
0b1111110,
0b0000000,
0b0011000,
0b0000000
)),248:(8,0,8,(
0b00000000,
0b00000000,
0b00111010,
0b01101100,
0b01111100,
0b01101100,
0b10111000,
0b00000000
)),249:(6,0,6,(
0b001000,
0b000100,
0b000000,
0b110110,
0b110110,
0b110110,
0b110110,
0b011110
)),250:(6,0,6,(
0b000100,
0b001000,
0b000000,
0b110110,
0b110110,
0b110110,
0b110110,
0b011110
)),251:(6,0,6,(
0b001000,
0b010100,
0b000000,
0b110110,
0b110110,
0b110110,
0b110110,
0b011110
)),252:(6,0,6,(
0b000000,
0b010100,
0b000000,
0b110110,
0b110110,
0b110110,
0b110110,
0b011110
)),253:(6,0,6,(
0b000100,
0b001000,
0b000000,
0b110110,
0b110110,
0b011100,
0b001100,
0b001100
)),254:(6,0,6,(
0b000000,
0b110000,
0b111100,
0b110110,
0b110110,
0b110110,
0b111100,
0b110000
)),255:(6,0,6,(
0b010100,
0b000000,
0b110110,
0b110110,
0b110110,
0b011100,
0b001100,
0b001100
)),}
# generated by fontconv
#fontType 36864
#firstChar 9
#lastChar 255
#maxWidth 10
#kernMax 0
#nDescent 0
#fRectWidth 10
#fRectHeight 8
#ascent 7
#descent 1
#leading 0
#averageWidth 5.89
FONTS['squatcaps8pt'] = {
9:(2,0,2,(
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00
)),20:(9,0,9,(
0b000000000,
0b000000000,
0b011110000,
0b100001010,
0b011110100,
0b001100110,
0b011100100,
0b001100010
)),21:(5,0,5,(
0b00000,
0b00100,
0b01000,
0b10000,
0b11010,
0b10000,
0b01000,
0b00100
)),22:(8,0,8,(
0b00000000,
0b00000110,
0b00001100,
0b00011000,
0b11110000,
0b11100000,
0b11100000,
0b00000000
)),23:(8,0,8,(
0b00000000,
0b00111000,
0b01101100,
0b01101100,
0b00111000,
0b11101100,
0b11000110,
0b00000000
)),24:(6,0,6,(
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b101010,
0b000000
)),25:(5,0,5,(
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000
)),32:(2,0,2,(
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00
)),33:(3,0,3,(
0b000,
0b110,
0b110,
0b110,
0b110,
0b000,
0b110,
0b000
)),34:(6,0,6,(
0b110110,
0b110110,
0b010010,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000
)),35:(6,0,6,(
0b000000,
0b010100,
0b111110,
0b010100,
0b111110,
0b010100,
0b000000,
0b000000
)),36:(6,0,6,(
0b000000,
0b001000,
0b011110,
0b101000,
0b011100,
0b001010,
0b111100,
0b001000
)),37:(9,0,9,(
0b000000000,
0b011111100,
0b101001000,
0b101010100,
0b010101010,
0b001001010,
0b110000100,
0b000000000
)),38:(8,0,8,(
0b00000000,
0b01111000,
0b11000000,
0b01110010,
0b11101110,
0b11000100,
0b01111000,
0b00000000
)),39:(3,0,3,(
0b110,
0b110,
0b010,
0b000,
0b000,
0b000,
0b000,
0b000
)),40:(5,0,5,(
0b00110,
0b01100,
0b11000,
0b11000,
0b11000,
0b11000,
0b01100,
0b00110
)),41:(5,0,5,(
0b11000,
0b01100,
0b00110,
0b00110,
0b00110,
0b00110,
0b01100,
0b11000
)),42:(6,0,6,(
0b010100,
0b001000,
0b111110,
0b001000,
0b010100,
0b000000,
0b000000,
0b000000
)),43:(6,0,6,(
0b000000,
0b001000,
0b001000,
0b111110,
0b001000,
0b001000,
0b000000,
0b000000
)),44:(3,0,3,(
0b000,
0b000,
0b000,
0b000,
0b000,
0b000,
0b110,
0b000
)),45:(5,0,5,(
0b00000,
0b00000,
0b00000,
0b11110,
0b00000,
0b00000,
0b00000,
0b00000
)),46:(3,0,3,(
0b000,
0b000,
0b000,
0b000,
0b000,
0b000,
0b110,
0b000
)),47:(5,0,5,(
0b00000,
0b00110,
0b00110,
0b01100,
0b01100,
0b11000,
0b11000,
0b00000
)),48:(6,0,6,(
0b000000,
0b011100,
0b110110,
0b110110,
0b110110,
0b110110,
0b011100,
0b000000
)),49:(6,0,6,(
0b000000,
0b001100,
0b011100,
0b001100,
0b001100,
0b001100,
0b011110,
0b000000
)),50:(6,0,6,(
0b000000,
0b011100,
0b110110,
0b000110,
0b011100,
0b110000,
0b111110,
0b000000
)),51:(6,0,6,(
0b000000,
0b011100,
0b110110,
0b001100,
0b001110,
0b110110,
0b011100,
0b000000
)),52:(6,0,6,(
0b000000,
0b001110,
0b011110,
0b110110,
0b111110,
0b000110,
0b000110,
0b000000
)),53:(6,0,6,(
0b000000,
0b111110,
0b110000,
0b111100,
0b000110,
0b110110,
0b011100,
0b000000
)),54:(6,0,6,(
0b000000,
0b011100,
0b110000,
0b111100,
0b110110,
0b110110,
0b011100,
0b000000
)),55:(6,0,6,(
0b000000,
0b111110,
0b000110,
0b001100,
0b001100,
0b011000,
0b011000,
0b000000
)),56:(6,0,6,(
0b000000,
0b011100,
0b110110,
0b011100,
0b110110,
0b110110,
0b011100,
0b000000
)),57:(6,0,6,(
0b000000,
0b011100,
0b110110,
0b110110,
0b011110,
0b000110,
0b011100,
0b000000
)),58:(3,0,3,(
0b000,
0b000,
0b110,
0b000,
0b000,
0b110,
0b000,
0b000
)),59:(3,0,3,(
0b000,
0b000,
0b110,
0b000,
0b000,
0b110,
0b010,
0b100
)),60:(5,0,5,(
0b00000,
0b00110,
0b01100,
0b11000,
0b01100,
0b00110,
0b00000,
0b00000
)),61:(6,0,6,(
0b000000,
0b000000,
0b111110,
0b000000,
0b111110,
0b000000,
0b000000,
0b000000
)),62:(5,0,5,(
0b00000,
0b11000,
0b01100,
0b00110,
0b01100,
0b11000,
0b00000,
0b00000
)),63:(6,0,6,(
0b000000,
0b111100,
0b000110,
0b001100,
0b011000,
0b000000,
0b011000,
0b000000
)),64:(8,0,8,(
0b00000000,
0b00111000,
0b01000100,
0b10011010,
0b10101010,
0b10010100,
0b01000000,
0b00111000
)),65:(6,0,6,(
0b000000,
0b011100,
0b110110,
0b110110,
0b111110,
0b110110,
0b110110,
0b000000
)),66:(6,0,6,(
0b000000,
0b111100,
0b110110,
0b111100,
0b110110,
0b110110,
0b111100,
0b000000
)),67:(6,0,6,(
0b000000,
0b011100,
0b110110,
0b110000,
0b110000,
0b110110,
0b011100,
0b000000
)),68:(6,0,6,(
0b000000,
0b111100,
0b110110,
0b110110,
0b110110,
0b110110,
0b111100,
0b000000
)),69:(6,0,6,(
0b000000,
0b111110,
0b110000,
0b111100,
0b110000,
0b110000,
0b111110,
0b000000
)),70:(6,0,6,(
0b000000,
0b111110,
0b110000,
0b111100,
0b110000,
0b110000,
0b110000,
0b000000
)),71:(6,0,6,(
0b000000,
0b011100,
0b110110,
0b110000,
0b110110,
0b110010,
0b011110,
0b000000
)),72:(6,0,6,(
0b000000,
0b110110,
0b110110,
0b111110,
0b110110,
0b110110,
0b110110,
0b000000
)),73:(3,0,3,(
0b000,
0b110,
0b110,
0b110,
0b110,
0b110,
0b110,
0b000
)),74:(5,0,5,(
0b00000,
0b00110,
0b00110,
0b00110,
0b00110,
0b00110,
0b11100,
0b00000
)),75:(6,0,6,(
0b000000,
0b110010,
0b110110,
0b111100,
0b111100,
0b110110,
0b110010,
0b000000
)),76:(6,0,6,(
0b000000,
0b110000,
0b110000,
0b110000,
0b110000,
0b110000,
0b111110,
0b000000
)),77:(8,0,8,(
0b00000000,
0b11000110,
0b11101110,
0b11111110,
0b11010110,
0b11000110,
0b11000110,
0b00000000
)),78:(7,0,7,(
0b0000000,
0b1100110,
0b1110110,
0b1111110,
0b1101110,
0b1100110,
0b1100110,
0b0000000
)),79:(7,0,7,(
0b0000000,
0b0111100,
0b1100110,
0b1100110,
0b1100110,
0b1100110,
0b0111100,
0b0000000
)),80:(6,0,6,(
0b000000,
0b111100,
0b110110,
0b110110,
0b111100,
0b110000,
0b110000,
0b000000
)),81:(6,0,6,(
0b000000,
0b011100,
0b110110,
0b110110,
0b110110,
0b110110,
0b011100,
0b000110
)),82:(6,0,6,(
0b000000,
0b111100,
0b110110,
0b110110,
0b111100,
0b110110,
0b110110,
0b000000
)),83:(6,0,6,(
0b000000,
0b011110,
0b110000,
0b111100,
0b011110,
0b000110,
0b111100,
0b000000
)),84:(7,0,7,(
0b0000000,
0b1111110,
0b0011000,
0b0011000,
0b0011000,
0b0011000,
0b0011000,
0b0000000
)),85:(6,0,6,(
0b000000,
0b110110,
0b110110,
0b110110,
0b110110,
0b110110,
0b011100,
0b000000
)),86:(6,0,6,(
0b000000,
0b110110,
0b110110,
0b110110,
0b110110,
0b011100,
0b001000,
0b000000
)),87:(9,0,9,(
0b000000000,
0b110110110,
0b110110110,
0b110110110,
0b111111100,
0b011001100,
0b011001100,
0b000000000
)),88:(6,0,6,(
0b000000,
0b110110,
0b110110,
0b011100,
0b011100,
0b110110,
0b110110,
0b000000
)),89:(7,0,7,(
0b0000000,
0b1100110,
0b1100110,
0b0111100,
0b0011000,
0b0011000,
0b0011000,
0b0000000
)),90:(5,0,5,(
0b00000,
0b11110,
0b00110,
0b01100,
0b11000,
0b11000,
0b11110,
0b00000
)),91:(4,0,4,(
0b1110,
0b1100,
0b1100,
0b1100,
0b1100,
0b1100,
0b1100,
0b1110
)),92:(6,0,6,(
0b110000,
0b110000,
0b011000,
0b001100,
0b001100,
0b000110,
0b000110,
0b000000
)),93:(4,0,4,(
0b1110,
0b0110,
0b0110,
0b0110,
0b0110,
0b0110,
0b0110,
0b1110
)),94:(6,0,6,(
0b000000,
0b001000,
0b011100,
0b110110,
0b100010,
0b000000,
0b000000,
0b000000
)),95:(5,0,5,(
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000
)),96:(4,0,4,(
0b0000,
0b0000,
0b1100,
0b0010,
0b0000,
0b0000,
0b0000,
0b0000
)),97:(6,0,6,(
0b000000,
0b000000,
0b011100,
0b110110,
0b111110,
0b110110,
0b110110,
0b000000
)),98:(6,0,6,(
0b000000,
0b000000,
0b111100,
0b110110,
0b111100,
0b110110,
0b111100,
0b000000
)),99:(6,0,6,(
0b000000,
0b000000,
0b011100,
0b110110,
0b110000,
0b110110,
0b011100,
0b000000
)),100:(6,0,6,(
0b000000,
0b000000,
0b111100,
0b110110,
0b110110,
0b110110,
0b111100,
0b000000
)),101:(6,0,6,(
0b000000,
0b000000,
0b111110,
0b110000,
0b111100,
0b110000,
0b111110,
0b000000
)),102:(6,0,6,(
0b000000,
0b000000,
0b111110,
0b110000,
0b111100,
0b110000,
0b110000,
0b000000
)),103:(6,0,6,(
0b000000,
0b000000,
0b011110,
0b110000,
0b110110,
0b110110,
0b111110,
0b000000
)),104:(6,0,6,(
0b000000,
0b000000,
0b110110,
0b110110,
0b111110,
0b110110,
0b110110,
0b000000
)),105:(3,0,3,(
0b000,
0b000,
0b110,
0b110,
0b110,
0b110,
0b110,
0b000
)),106:(5,0,5,(
0b00000,
0b00000,
0b00110,
0b00110,
0b00110,
0b10110,
0b11100,
0b00000
)),107:(6,0,6,(
0b000000,
0b000000,
0b110110,
0b111100,
0b111000,
0b110100,
0b110110,
0b000000
)),108:(5,0,5,(
0b00000,
0b00000,
0b11000,
0b11000,
0b11000,
0b11000,
0b11110,
0b00000
)),109:(7,0,7,(
0b0000000,
0b0000000,
0b1100110,
0b1111110,
0b1100110,
0b1100110,
0b1100110,
0b0000000
)),110:(6,0,6,(
0b000000,
0b000000,
0b100110,
0b110110,
0b111110,
0b110110,
0b110010,
0b000000
)),111:(6,0,6,(
0b000000,
0b000000,
0b011100,
0b110110,
0b110110,
0b110110,
0b011100,
0b000000
)),112:(6,0,6,(
0b000000,
0b000000,
0b111100,
0b110110,
0b111100,
0b110000,
0b110000,
0b000000
)),113:(6,0,6,(
0b000000,
0b000000,
0b011100,
0b110110,
0b110110,
0b110110,
0b011100,
0b000110
)),114:(6,0,6,(
0b000000,
0b000000,
0b111100,
0b110110,
0b111100,
0b111000,
0b110110,
0b000000
)),115:(6,0,6,(
0b000000,
0b000000,
0b011110,
0b110000,
0b111110,
0b000110,
0b111100,
0b000000
)),116:(6,0,6,(
0b000000,
0b000000,
0b111110,
0b011000,
0b011000,
0b011000,
0b011000,
0b000000
)),117:(6,0,6,(
0b000000,
0b000000,
0b110110,
0b110110,
0b110110,
0b110110,
0b011110,
0b000000
)),118:(6,0,6,(
0b000000,
0b000000,
0b110110,
0b110110,
0b110110,
0b011100,
0b001000,
0b000000
)),119:(9,0,9,(
0b000000000,
0b000000000,
0b110110110,
0b110110110,
0b110110110,
0b011111100,
0b011001100,
0b000000000
)),120:(6,0,6,(
0b000000,
0b000000,
0b110110,
0b110110,
0b011100,
0b110110,
0b110110,
0b000000
)),121:(6,0,6,(
0b000000,
0b000000,
0b110110,
0b110110,
0b011100,
0b001100,
0b011000,
0b000000
)),122:(5,0,5,(
0b00000,
0b00000,
0b11110,
0b00110,
0b01100,
0b11000,
0b11110,
0b00000
)),123:(5,0,5,(
0b00110,
0b01100,
0b01100,
0b11000,
0b11000,
0b01100,
0b01100,
0b00110
)),124:(3,0,3,(
0b110,
0b110,
0b110,
0b110,
0b110,
0b110,
0b110,
0b000
)),125:(5,0,5,(
0b11000,
0b01100,
0b01100,
0b00110,
0b00110,
0b01100,
0b01100,
0b11000
)),126:(7,0,7,(
0b0000000,
0b0000000,
0b0110010,
0b1011010,
0b1001100,
0b0000000,
0b0000000,
0b0000000
)),128:(9,0,9,(
0b000111100,
0b001100010,
0b111111000,
0b011000000,
0b111110000,
0b001100010,
0b000111100,
0b000000000
)),130:(3,0,3,(
0b000,
0b000,
0b000,
0b000,
0b000,
0b000,
0b110,
0b000
)),131:(7,0,7,(
0b0001110,
0b0011000,
0b0111100,
0b0011000,
0b0011000,
0b0110000,
0b1100000,
0b0000000
)),132:(5,0,5,(
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b11110,
0b00000
)),133:(6,0,6,(
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b101010,
0b000000
)),134:(5,0,5,(
0b01100,
0b01100,
0b11110,
0b01100,
0b01100,
0b01100,
0b01100,
0b00000
)),135:(5,0,5,(
0b01100,
0b01100,
0b11110,
0b01100,
0b11110,
0b01100,
0b01100,
0b00000
)),136:(4,0,4,(
0b0100,
0b1010,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000
)),137:(10,0,10,(
0b0100001000,
0b1010010000,
0b1010100000,
0b0101010100,
0b0010101010,
0b0100101010,
0b1000010100,
0b0000000000
)),138:(6,0,6,(
0b010100,
0b001000,
0b000000,
0b011110,
0b111000,
0b011100,
0b001110,
0b111100
)),139:(5,0,5,(
0b00000,
0b00110,
0b01100,
0b11000,
0b01100,
0b00110,
0b00000,
0b00000
)),140:(10,0,10,(
0b0011111110,
0b0110011000,
0b1100011000,
0b1100011110,
0b1100011000,
0b0110011000,
0b0011111110,
0b0000000000
)),141:(8,0,8,(
0b00010000,
0b00101000,
0b01000100,
0b10000010,
0b01000100,
0b00101000,
0b00010000,
0b00000000
)),142:(8,0,8,(
0b00111000,
0b00111000,
0b11010110,
0b11111110,
0b11010110,
0b00111000,
0b01111100,
0b00000000
)),143:(8,0,8,(
0b01101100,
0b10111010,
0b10010010,
0b10000010,
0b11000110,
0b01101100,
0b00111000,
0b00010000
)),144:(8,0,8,(
0b00010000,
0b00111000,
0b01111100,
0b11111110,
0b11111110,
0b01010100,
0b00111000,
0b01111100
)),145:(3,0,3,(
0b010,
0b100,
0b110,
0b000,
0b000,
0b000,
0b000,
0b000
)),146:(3,0,3,(
0b110,
0b010,
0b100,
0b000,
0b000,
0b000,
0b000,
0b000
)),147:(5,0,5,(
0b01010,
0b10100,
0b11110,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000
)),148:(5,0,5,(
0b11110,
0b01010,
0b10100,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000
)),149:(4,0,4,(
0b0000,
0b0000,
0b0000,
0b1110,
0b1110,
0b1110,
0b0000,
0b0000
)),150:(4,0,4,(
0b0000,
0b0000,
0b0000,
0b0000,
0b1111,
0b0000,
0b0000,
0b0000
)),151:(6,0,6,(
0b000000,
0b000000,
0b000000,
0b000000,
0b111111,
0b000000,
0b000000,
0b000000
)),152:(7,0,7,(
0b0000000,
0b0000000,
0b0110010,
0b1011010,
0b1001100,
0b0000000,
0b0000000,
0b0000000
)),153:(10,0,10,(
0b0000000000,
0b1110100010,
0b0100110110,
0b0100101010,
0b0000000000,
0b0000000000,
0b0000000000,
0b0000000000
)),154:(5,0,5,(
0b01010,
0b00100,
0b00000,
0b01110,
0b11000,
0b11110,
0b00110,
0b11100
)),155:(5,0,5,(
0b00000,
0b11000,
0b01100,
0b00110,
0b01100,
0b11000,
0b00000,
0b00000
)),156:(8,0,8,(
0b00000000,
0b01101100,
0b10111010,
0b10111110,
0b10111000,
0b01101100,
0b00000000,
0b00000000
)),157:(8,0,8,(
0b00000000,
0b00000110,
0b00001100,
0b00011000,
0b11110000,
0b11100000,
0b11100000,
0b00000000
)),158:(8,0,8,(
0b00000000,
0b00111000,
0b01101100,
0b01101100,
0b00111000,
0b11101100,
0b11000110,
0b00000000
)),159:(7,0,7,(
0b0100100,
0b0000000,
0b1100110,
0b1100110,
0b0111100,
0b0011000,
0b0011000,
0b0011000
)),160:(2,0,2,(
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00
)),161:(3,0,3,(
0b000,
0b000,
0b110,
0b000,
0b110,
0b110,
0b110,
0b110
)),162:(6,0,6,(
0b000000,
0b000100,
0b011110,
0b110100,
0b110100,
0b110100,
0b011110,
0b000100
)),163:(7,0,7,(
0b0011100,
0b0110000,
0b0110000,
0b1111100,
0b0110000,
0b0110000,
0b1111110,
0b0000000
)),164:(8,0,8,(
0b10111010,
0b01111100,
0b11000110,
0b11000110,
0b11000110,
0b01111100,
0b10111010,
0b00000000
)),165:(7,0,7,(
0b1100010,
0b0110100,
0b1111110,
0b0011000,
0b1111110,
0b0011000,
0b0011000,
0b0000000
)),166:(3,0,3,(
0b000,
0b110,
0b110,
0b110,
0b000,
0b110,
0b110,
0b110
)),167:(6,0,6,(
0b001100,
0b110010,
0b011000,
0b010100,
0b001100,
0b100110,
0b011000,
0b000000
)),168:(4,0,4,(
0b0000,
0b1010,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000
)),169:(8,0,8,(
0b00111000,
0b01000100,
0b10111010,
0b10100010,
0b10111010,
0b01000100,
0b00111000,
0b00000000
)),170:(6,0,6,(
0b011110,
0b110110,
0b011110,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000
)),171:(8,0,8,(
0b00000000,
0b00000000,
0b00110110,
0b01101100,
0b11011000,
0b01101100,
0b00110110,
0b00000000
)),172:(6,0,6,(
0b000000,
0b000000,
0b000000,
0b111110,
0b000010,
0b000010,
0b000000,
0b000000
)),173:(5,0,5,(
0b00000,
0b00000,
0b00000,
0b11110,
0b00000,
0b00000,
0b00000,
0b00000
)),174:(8,0,8,(
0b00111000,
0b01000100,
0b10111010,
0b10110010,
0b10101010,
0b01000100,
0b00111000,
0b00000000
)),175:(6,0,6,(
0b111110,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000
)),176:(5,0,5,(
0b01100,
0b10010,
0b10010,
0b01100,
0b00000,
0b00000,
0b00000,
0b00000
)),177:(6,0,6,(
0b000000,
0b001000,
0b001000,
0b111110,
0b001000,
0b001000,
0b111110,
0b000000
)),178:(4,0,4,(
0b0000,
0b1110,
0b0010,
0b0100,
0b1110,
0b0000,
0b0000,
0b0000
)),179:(4,0,4,(
0b0000,
0b1110,
0b0100,
0b0010,
0b1110,
0b0000,
0b0000,
0b0000
)),180:(4,0,4,(
0b0000,
0b0110,
0b1000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000
)),181:(6,0,6,(
0b000000,
0b110110,
0b110110,
0b110110,
0b110110,
0b111110,
0b000110,
0b000110
)),182:(7,0,7,(
0b0111110,
0b1110110,
0b1110110,
0b0110110,
0b0010110,
0b0010110,
0b0010110,
0b0000000
)),183:(2,0,2,(
0b00,
0b00,
0b00,
0b10,
0b00,
0b00,
0b00,
0b00
)),184:(4,0,4,(
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0100,
0b0000
)),185:(2,0,2,(
0b10,
0b10,
0b10,
0b00,
0b00,
0b00,
0b00,
0b00
)),186:(6,0,6,(
0b000000,
0b011100,
0b110110,
0b011100,
0b000000,
0b111110,
0b000000,
0b000000
)),187:(8,0,8,(
0b00000000,
0b00000000,
0b11011000,
0b01101100,
0b00110110,
0b01101100,
0b11011000,
0b00000000
)),188:(9,0,9,(
0b110000000,
0b110001100,
0b110011000,
0b110110100,
0b001101100,
0b011011110,
0b110000100,
0b000000000
)),189:(9,0,9,(
0b110000000,
0b110001100,
0b110011000,
0b110111100,
0b001100010,
0b011000100,
0b110001110,
0b000000000
)),190:(9,0,9,(
0b111000000,
0b011001100,
0b011011000,
0b111110100,
0b001101100,
0b011011110,
0b110001100,
0b000000000
)),191:(6,0,6,(
0b000000,
0b001100,
0b000000,
0b001100,
0b011000,
0b110000,
0b011110,
0b000000
)),192:(7,0,7,(
0b0010000,
0b0001000,
0b0000000,
0b0111100,
0b1100110,
0b1111110,
0b1100110,
0b1100110
)),193:(7,0,7,(
0b0001000,
0b0010000,
0b0000000,
0b0111100,
0b1100110,
0b1111110,
0b1100110,
0b1100110
)),194:(7,0,7,(
0b0011000,
0b0100100,
0b0000000,
0b0111100,
0b1100110,
0b1111110,
0b1100110,
0b1100110
)),195:(7,0,7,(
0b0110100,
0b1011000,
0b0000000,
0b0111100,
0b1100110,
0b1111110,
0b1100110,
0b1100110
)),196:(7,0,7,(
0b0000000,
0b0100100,
0b0000000,
0b0111100,
0b1100110,
0b1111110,
0b1100110,
0b1100110
)),197:(7,0,7,(
0b0011000,
0b0100100,
0b0011000,
0b0111100,
0b1100110,
0b1111110,
0b1100110,
0b1100110
)),198:(9,0,9,(
0b000000000,
0b011111110,
0b110011000,
0b111111110,
0b110011000,
0b110011000,
0b110011110,
0b000000000
)),199:(6,0,6,(
0b000000,
0b001100,
0b011000,
0b110000,
0b110000,
0b011000,
0b001100,
0b000000
)),200:(5,0,5,(
0b01000,
0b00100,
0b00000,
0b11110,
0b11000,
0b11100,
0b11000,
0b11110
)),201:(6,0,6,(
0b001000,
0b010000,
0b000000,
0b111100,
0b110000,
0b111000,
0b110000,
0b111100
)),202:(5,0,5,(
0b00100,
0b01010,
0b00000,
0b11110,
0b11000,
0b11100,
0b11000,
0b11110
)),203:(5,0,5,(
0b00000,
0b01010,
0b00000,
0b11110,
0b11000,
0b11110,
0b11000,
0b11110
)),204:(3,0,3,(
0b100,
0b010,
0b000,
0b110,
0b110,
0b110,
0b110,
0b110
)),205:(3,0,3,(
0b010,
0b100,
0b000,
0b110,
0b110,
0b110,
0b110,
0b110
)),206:(3,0,3,(
0b010,
0b101,
0b000,
0b110,
0b110,
0b110,
0b110,
0b110
)),207:(3,0,3,(
0b000,
0b101,
0b000,
0b110,
0b110,
0b110,
0b110,
0b110
)),208:(8,0,8,(
0b00000000,
0b01111000,
0b01100100,
0b11110110,
0b01100110,
0b01100100,
0b01111000,
0b00000000
)),209:(7,0,7,(
0b0110100,
0b1011000,
0b0000000,
0b1100110,
0b1110110,
0b1111110,
0b1101110,
0b1100110
)),210:(7,0,7,(
0b0010000,
0b0001000,
0b0000000,
0b0111100,
0b1100110,
0b1100110,
0b1100110,
0b0111100
)),211:(7,0,7,(
0b0001000,
0b0010000,
0b0000000,
0b0111100,
0b1100110,
0b1100110,
0b1100110,
0b0111100
)),212:(7,0,7,(
0b0001000,
0b0010100,
0b0000000,
0b0111100,
0b1100110,
0b1100110,
0b1100110,
0b0111100
)),213:(7,0,7,(
0b0011010,
0b0101100,
0b0000000,
0b0111100,
0b1100110,
0b1100110,
0b1100110,
0b0111100
)),214:(7,0,7,(
0b0000000,
0b0010100,
0b0000000,
0b0111100,
0b1100110,
0b1100110,
0b1100110,
0b0111100
)),215:(6,0,6,(
0b000000,
0b000000,
0b110110,
0b011100,
0b011100,
0b110110,
0b000000,
0b000000
)),216:(8,0,8,(
0b00111010,
0b01101100,
0b11001110,
0b11010110,
0b11100110,
0b01101100,
0b10111000,
0b00000000
)),217:(7,0,7,(
0b0010000,
0b0001000,
0b0000000,
0b1100110,
0b1100110,
0b1100110,
0b1100110,
0b0111100
)),218:(7,0,7,(
0b0001000,
0b0010000,
0b0000000,
0b1100110,
0b1100110,
0b1100110,
0b1100110,
0b0111100
)),219:(7,0,7,(
0b0001000,
0b0010100,
0b0000000,
0b1100110,
0b1100110,
0b1100110,
0b1100110,
0b0111100
)),220:(7,0,7,(
0b0000000,
0b0010100,
0b0000000,
0b1100110,
0b1100110,
0b1100110,
0b1100110,
0b0111100
)),221:(7,0,7,(
0b0001000,
0b0010000,
0b0000000,
0b1100110,
0b1100110,
0b0111100,
0b0011000,
0b0011000
)),222:(7,0,7,(
0b1100000,
0b1111100,
0b1100110,
0b1100110,
0b1100110,
0b1111100,
0b1100000,
0b0000000
)),223:(8,0,8,(
0b01111000,
0b11001100,
0b11001000,
0b11011100,
0b11001110,
0b11000110,
0b11011100,
0b00000000
)),224:(6,0,6,(
0b001000,
0b000100,
0b000000,
0b011100,
0b000110,
0b011110,
0b110110,
0b011110
)),225:(6,0,6,(
0b000100,
0b001000,
0b000000,
0b011100,
0b000110,
0b011110,
0b110110,
0b011110
)),226:(6,0,6,(
0b001000,
0b010100,
0b000000,
0b011100,
0b000110,
0b011110,
0b110110,
0b011110
)),227:(6,0,6,(
0b011010,
0b101100,
0b000000,
0b011100,
0b000110,
0b011110,
0b110110,
0b011110
)),228:(6,0,6,(
0b000000,
0b010100,
0b000000,
0b011100,
0b000110,
0b011110,
0b110110,
0b011110
)),229:(6,0,6,(
0b001100,
0b010010,
0b001100,
0b011100,
0b000110,
0b011110,
0b110110,
0b011110
)),230:(9,0,9,(
0b000000000,
0b000000000,
0b011101100,
0b000110110,
0b011111110,
0b110110000,
0b011111110,
0b000000000
)),231:(5,0,5,(
0b00000,
0b01110,
0b11000,
0b11000,
0b11000,
0b01110,
0b00010,
0b00100
)),232:(6,0,6,(
0b001000,
0b000100,
0b000000,
0b011100,
0b110110,
0b111110,
0b110000,
0b011110
)),233:(6,0,6,(
0b000100,
0b001000,
0b000000,
0b011100,
0b110110,
0b111110,
0b110000,
0b011110
)),234:(6,0,6,(
0b001000,
0b010100,
0b000000,
0b011100,
0b110110,
0b111110,
0b110000,
0b011110
)),235:(6,0,6,(
0b000000,
0b010100,
0b000000,
0b011100,
0b110110,
0b111110,
0b110000,
0b011110
)),236:(3,0,3,(
0b100,
0b010,
0b000,
0b110,
0b110,
0b110,
0b110,
0b110
)),237:(3,0,3,(
0b010,
0b100,
0b000,
0b110,
0b110,
0b110,
0b110,
0b110
)),238:(3,0,3,(
0b010,
0b101,
0b000,
0b110,
0b110,
0b110,
0b110,
0b110
)),239:(3,0,3,(
0b000,
0b101,
0b000,
0b110,
0b110,
0b110,
0b110,
0b110
)),240:(6,0,6,(
0b111000,
0b111000,
0b001100,
0b011100,
0b110110,
0b110110,
0b011100,
0b000000
)),241:(6,0,6,(
0b011010,
0b101100,
0b000000,
0b111100,
0b110110,
0b110110,
0b110110,
0b110110
)),242:(6,0,6,(
0b001000,
0b000100,
0b000000,
0b011100,
0b110110,
0b110110,
0b110110,
0b011100
)),243:(6,0,6,(
0b000100,
0b001000,
0b000000,
0b011100,
0b110110,
0b110110,
0b110110,
0b011100
)),244:(6,0,6,(
0b001000,
0b010100,
0b000000,
0b011100,
0b110110,
0b110110,
0b110110,
0b011100
)),245:(6,0,6,(
0b011010,
0b101100,
0b000000,
0b011100,
0b110110,
0b110110,
0b110110,
0b011100
)),246:(6,0,6,(
0b000000,
0b010100,
0b000000,
0b011100,
0b110110,
0b110110,
0b110110,
0b011100
)),247:(7,0,7,(
0b0000000,
0b0000000,
0b0011000,
0b0000000,
0b1111110,
0b0000000,
0b0011000,
0b0000000
)),248:(8,0,8,(
0b00000000,
0b00000000,
0b00111010,
0b01101100,
0b01111100,
0b01101100,
0b10111000,
0b00000000
)),249:(6,0,6,(
0b001000,
0b000100,
0b000000,
0b110110,
0b110110,
0b110110,
0b110110,
0b011110
)),250:(6,0,6,(
0b000100,
0b001000,
0b000000,
0b110110,
0b110110,
0b110110,
0b110110,
0b011110
)),251:(6,0,6,(
0b001000,
0b010100,
0b000000,
0b110110,
0b110110,
0b110110,
0b110110,
0b011110
)),252:(6,0,6,(
0b000000,
0b010100,
0b000000,
0b110110,
0b110110,
0b110110,
0b110110,
0b011110
)),253:(6,0,6,(
0b000100,
0b001000,
0b000000,
0b110110,
0b110110,
0b011100,
0b001100,
0b001100
)),254:(6,0,6,(
0b000000,
0b110000,
0b111100,
0b110110,
0b110110,
0b110110,
0b111100,
0b110000
)),255:(6,0,6,(
0b010100,
0b000000,
0b110110,
0b110110,
0b110110,
0b011100,
0b001100,
0b001100
)),}
# generated by fontconv
#fontType 36864
#firstChar 9
#lastChar 255
#maxWidth 11
#kernMax 0
#nDescent 0
#fRectWidth 11
#fRectHeight 11
#ascent 9
#descent 2
#leading 0
#averageWidth 5.23
FONTS['tallfont'] = {
9:(2,0,2,(
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00
)),22:(8,0,8,(
0b00000000,
0b00000000,
0b00000000,
0b00000010,
0b00000100,
0b00001000,
0b00010000,
0b00100000,
0b11000000,
0b11000000,
0b00000000
)),23:(8,0,8,(
0b00000000,
0b00010000,
0b00101000,
0b00101000,
0b00101000,
0b00101000,
0b00010000,
0b00101000,
0b11000100,
0b11000010,
0b00000000
)),24:(6,0,6,(
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b101010,
0b000000,
0b000000
)),25:(5,0,5,(
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000
)),32:(2,0,2,(
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00
)),33:(2,0,2,(
0b00,
0b10,
0b10,
0b10,
0b10,
0b10,
0b10,
0b00,
0b10,
0b00,
0b00
)),34:(4,0,4,(
0b0000,
0b1010,
0b1010,
0b1010,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000
)),35:(8,0,8,(
0b00000000,
0b00000000,
0b00010100,
0b00010100,
0b01111110,
0b00101000,
0b11111100,
0b01010000,
0b01010000,
0b00000000,
0b00000000
)),36:(6,0,6,(
0b000000,
0b001000,
0b011110,
0b101000,
0b101000,
0b011100,
0b001010,
0b001010,
0b111100,
0b001000,
0b000000
)),37:(8,0,8,(
0b00000000,
0b00000000,
0b01000100,
0b10100100,
0b10101000,
0b01010100,
0b00101010,
0b01001010,
0b01000100,
0b00000000,
0b00000000
)),38:(7,0,7,(
0b0000000,
0b0000000,
0b0011000,
0b0100100,
0b0101000,
0b0010000,
0b0101010,
0b1000100,
0b0111010,
0b0000000,
0b0000000
)),39:(2,0,2,(
0b00,
0b10,
0b10,
0b10,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00
)),40:(4,0,4,(
0b0000,
0b0010,
0b0100,
0b0100,
0b1000,
0b1000,
0b1000,
0b0100,
0b0100,
0b0010,
0b0000
)),41:(4,0,4,(
0b0000,
0b1000,
0b0100,
0b0100,
0b0010,
0b0010,
0b0010,
0b0100,
0b0100,
0b1000,
0b0000
)),42:(6,0,6,(
0b000000,
0b010100,
0b001000,
0b110110,
0b001000,
0b010100,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000
)),43:(6,0,6,(
0b000000,
0b000000,
0b000000,
0b001000,
0b001000,
0b111110,
0b001000,
0b001000,
0b000000,
0b000000,
0b000000
)),44:(3,0,3,(
0b000,
0b000,
0b000,
0b000,
0b000,
0b000,
0b000,
0b000,
0b010,
0b100,
0b000
)),45:(4,0,4,(
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b1110,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000
)),46:(2,0,2,(
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b10,
0b00,
0b00
)),47:(5,0,5,(
0b00000,
0b00000,
0b00010,
0b00010,
0b00100,
0b01000,
0b01000,
0b10000,
0b10000,
0b00000,
0b00000
)),48:(5,0,5,(
0b00000,
0b01100,
0b10010,
0b10010,
0b10010,
0b10010,
0b10010,
0b10010,
0b01100,
0b00000,
0b00000
)),49:(5,0,5,(
0b00000,
0b00100,
0b01100,
0b00100,
0b00100,
0b00100,
0b00100,
0b00100,
0b00100,
0b00000,
0b00000
)),50:(5,0,5,(
0b00000,
0b01100,
0b10010,
0b10010,
0b00010,
0b00100,
0b01000,
0b10000,
0b11110,
0b00000,
0b00000
)),51:(5,0,5,(
0b00000,
0b01100,
0b10010,
0b00010,
0b00100,
0b00010,
0b00010,
0b10010,
0b01100,
0b00000,
0b00000
)),52:(5,0,5,(
0b00000,
0b00010,
0b00110,
0b01010,
0b10010,
0b10010,
0b11110,
0b00010,
0b00010,
0b00000,
0b00000
)),53:(5,0,5,(
0b00000,
0b11110,
0b10000,
0b10000,
0b11100,
0b00010,
0b00010,
0b00010,
0b11100,
0b00000,
0b00000
)),54:(5,0,5,(
0b00000,
0b00100,
0b01000,
0b10000,
0b11100,
0b10010,
0b10010,
0b10010,
0b01100,
0b00000,
0b00000
)),55:(5,0,5,(
0b00000,
0b11110,
0b00010,
0b00010,
0b00100,
0b00100,
0b01000,
0b01000,
0b01000,
0b00000,
0b00000
)),56:(5,0,5,(
0b00000,
0b01100,
0b10010,
0b10010,
0b01100,
0b10010,
0b10010,
0b10010,
0b01100,
0b00000,
0b00000
)),57:(5,0,5,(
0b00000,
0b01100,
0b10010,
0b10010,
0b10010,
0b01110,
0b00010,
0b00100,
0b01000,
0b00000,
0b00000
)),58:(2,0,2,(
0b00,
0b00,
0b00,
0b00,
0b10,
0b00,
0b00,
0b00,
0b10,
0b00,
0b00
)),59:(3,0,3,(
0b000,
0b000,
0b000,
0b000,
0b010,
0b000,
0b000,
0b000,
0b010,
0b100,
0b000
)),60:(6,0,6,(
0b000000,
0b000000,
0b000000,
0b000010,
0b001100,
0b110000,
0b001100,
0b000010,
0b000000,
0b000000,
0b000000
)),61:(6,0,6,(
0b000000,
0b000000,
0b000000,
0b000000,
0b111110,
0b000000,
0b111110,
0b000000,
0b000000,
0b000000,
0b000000
)),62:(6,0,6,(
0b000000,
0b000000,
0b000000,
0b100000,
0b011000,
0b000110,
0b011000,
0b100000,
0b000000,
0b000000,
0b000000
)),63:(5,0,5,(
0b00000,
0b01100,
0b10010,
0b00010,
0b00100,
0b01000,
0b01000,
0b00000,
0b01000,
0b00000,
0b00000
)),64:(8,0,8,(
0b00000000,
0b00000000,
0b00000000,
0b00111000,
0b01000100,
0b10011010,
0b10101010,
0b10010100,
0b01000000,
0b00111000,
0b00000000
)),65:(5,0,5,(
0b00000,
0b01100,
0b10010,
0b10010,
0b10010,
0b11110,
0b10010,
0b10010,
0b10010,
0b00000,
0b00000
)),66:(5,0,5,(
0b00000,
0b11100,
0b10010,
0b10010,
0b11100,
0b10010,
0b10010,
0b10010,
0b11100,
0b00000,
0b00000
)),67:(5,0,5,(
0b00000,
0b00110,
0b01000,
0b10000,
0b10000,
0b10000,
0b10000,
0b01000,
0b00110,
0b00000,
0b00000
)),68:(6,0,6,(
0b000000,
0b111000,
0b100100,
0b100010,
0b100010,
0b100010,
0b100010,
0b100100,
0b111000,
0b000000,
0b000000
)),69:(4,0,4,(
0b0000,
0b1110,
0b1000,
0b1000,
0b1110,
0b1000,
0b1000,
0b1000,
0b1110,
0b0000,
0b0000
)),70:(4,0,4,(
0b0000,
0b1110,
0b1000,
0b1000,
0b1110,
0b1000,
0b1000,
0b1000,
0b1000,
0b0000,
0b0000
)),71:(6,0,6,(
0b000000,
0b001110,
0b010000,
0b100000,
0b100110,
0b100010,
0b100010,
0b010010,
0b001110,
0b000000,
0b000000
)),72:(6,0,6,(
0b000000,
0b100010,
0b100010,
0b100010,
0b111110,
0b100010,
0b100010,
0b100010,
0b100010,
0b000000,
0b000000
)),73:(2,0,2,(
0b00,
0b10,
0b10,
0b10,
0b10,
0b10,
0b10,
0b10,
0b10,
0b00,
0b00
)),74:(4,0,4,(
0b0000,
0b0010,
0b0010,
0b0010,
0b0010,
0b0010,
0b0010,
0b0010,
0b1100,
0b0000,
0b0000
)),75:(6,0,6,(
0b000000,
0b100010,
0b100010,
0b100100,
0b101000,
0b110000,
0b101000,
0b100100,
0b100010,
0b000000,
0b000000
)),76:(5,0,5,(
0b00000,
0b10000,
0b10000,
0b10000,
0b10000,
0b10000,
0b10000,
0b10000,
0b11110,
0b00000,
0b00000
)),77:(8,0,8,(
0b00000000,
0b10000010,
0b11000110,
0b11000110,
0b10101010,
0b10101010,
0b10101010,
0b10010010,
0b10010010,
0b00000000,
0b00000000
)),78:(6,0,6,(
0b000000,
0b100010,
0b100010,
0b110010,
0b101010,
0b101010,
0b100110,
0b100010,
0b100010,
0b000000,
0b000000
)),79:(7,0,7,(
0b0000000,
0b0011000,
0b0100100,
0b1000010,
0b1000010,
0b1000010,
0b1000010,
0b0100100,
0b0011000,
0b0000000,
0b0000000
)),80:(5,0,5,(
0b00000,
0b11100,
0b10010,
0b10010,
0b10010,
0b11100,
0b10000,
0b10000,
0b10000,
0b00000,
0b00000
)),81:(7,0,7,(
0b0000000,
0b0011000,
0b0100100,
0b1000010,
0b1000010,
0b1000010,
0b1000010,
0b0100100,
0b0011000,
0b0000110,
0b0000000
)),82:(5,0,5,(
0b00000,
0b11100,
0b10010,
0b10010,
0b10010,
0b11100,
0b10100,
0b10010,
0b10010,
0b00000,
0b00000
)),83:(5,0,5,(
0b00000,
0b01110,
0b10000,
0b10000,
0b01000,
0b00100,
0b00010,
0b00010,
0b11100,
0b00000,
0b00000
)),84:(6,0,6,(
0b000000,
0b111110,
0b001000,
0b001000,
0b001000,
0b001000,
0b001000,
0b001000,
0b001000,
0b000000,
0b000000
)),85:(6,0,6,(
0b000000,
0b100010,
0b100010,
0b100010,
0b100010,
0b100010,
0b100010,
0b100010,
0b011100,
0b000000,
0b000000
)),86:(6,0,6,(
0b000000,
0b100010,
0b100010,
0b100010,
0b100010,
0b010100,
0b010100,
0b001000,
0b001000,
0b000000,
0b000000
)),87:(8,0,8,(
0b00000000,
0b10000010,
0b10010010,
0b10010010,
0b10101010,
0b10101010,
0b01000100,
0b01000100,
0b01000100,
0b00000000,
0b00000000
)),88:(6,0,6,(
0b000000,
0b100010,
0b100010,
0b100010,
0b010100,
0b001000,
0b010100,
0b100010,
0b100010,
0b000000,
0b000000
)),89:(6,0,6,(
0b000000,
0b100010,
0b100010,
0b100010,
0b010100,
0b001000,
0b001000,
0b001000,
0b001000,
0b000000,
0b000000
)),90:(6,0,6,(
0b000000,
0b111110,
0b000010,
0b000100,
0b001000,
0b010000,
0b100000,
0b100000,
0b111110,
0b000000,
0b000000
)),91:(3,0,3,(
0b000,
0b110,
0b100,
0b100,
0b100,
0b100,
0b100,
0b100,
0b100,
0b110,
0b000
)),92:(5,0,5,(
0b00000,
0b00000,
0b10000,
0b10000,
0b01000,
0b00100,
0b00100,
0b00010,
0b00010,
0b00000,
0b00000
)),93:(3,0,3,(
0b000,
0b110,
0b010,
0b010,
0b010,
0b010,
0b010,
0b010,
0b010,
0b110,
0b000
)),94:(6,0,6,(
0b000000,
0b000000,
0b001000,
0b001000,
0b010100,
0b010100,
0b100010,
0b000000,
0b000000,
0b000000,
0b000000
)),95:(4,0,4,(
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b1111,
0b0000
)),96:(3,0,3,(
0b000,
0b100,
0b010,
0b000,
0b000,
0b000,
0b000,
0b000,
0b000,
0b000,
0b000
)),97:(5,0,5,(
0b00000,
0b00000,
0b00000,
0b01110,
0b10010,
0b10010,
0b10010,
0b10010,
0b01110,
0b00000,
0b00000
)),98:(5,0,5,(
0b00000,
0b10000,
0b10000,
0b11100,
0b10010,
0b10010,
0b10010,
0b10010,
0b11100,
0b00000,
0b00000
)),99:(4,0,4,(
0b0000,
0b0000,
0b0000,
0b0110,
0b1000,
0b1000,
0b1000,
0b1000,
0b0110,
0b0000,
0b0000
)),100:(5,0,5,(
0b00000,
0b00010,
0b00010,
0b01110,
0b10010,
0b10010,
0b10010,
0b10010,
0b01110,
0b00000,
0b00000
)),101:(5,0,5,(
0b00000,
0b00000,
0b00000,
0b01100,
0b10010,
0b10010,
0b11110,
0b10000,
0b01110,
0b00000,
0b00000
)),102:(4,0,4,(
0b0000,
0b0011,
0b0100,
0b1110,
0b0100,
0b0100,
0b0100,
0b0100,
0b0100,
0b0000,
0b0000
)),103:(5,0,5,(
0b00000,
0b00000,
0b00000,
0b01110,
0b10010,
0b10010,
0b10010,
0b10010,
0b01110,
0b00010,
0b01100
)),104:(5,0,5,(
0b00000,
0b10000,
0b10000,
0b11100,
0b10010,
0b10010,
0b10010,
0b10010,
0b10010,
0b00000,
0b00000
)),105:(2,0,2,(
0b00,
0b10,
0b00,
0b10,
0b10,
0b10,
0b10,
0b10,
0b10,
0b00,
0b00
)),106:(3,0,3,(
0b000,
0b010,
0b000,
0b010,
0b010,
0b010,
0b010,
0b010,
0b010,
0b100,
0b000
)),107:(5,0,5,(
0b00000,
0b10000,
0b10000,
0b10010,
0b10010,
0b10100,
0b11000,
0b10100,
0b10010,
0b00000,
0b00000
)),108:(2,0,2,(
0b00,
0b10,
0b10,
0b10,
0b10,
0b10,
0b10,
0b10,
0b10,
0b00,
0b00
)),109:(8,0,8,(
0b00000000,
0b00000000,
0b00000000,
0b11101100,
0b10010010,
0b10010010,
0b10010010,
0b10010010,
0b10010010,
0b00000000,
0b00000000
)),110:(5,0,5,(
0b00000,
0b00000,
0b00000,
0b11100,
0b10010,
0b10010,
0b10010,
0b10010,
0b10010,
0b00000,
0b00000
)),111:(5,0,5,(
0b00000,
0b00000,
0b00000,
0b01100,
0b10010,
0b10010,
0b10010,
0b10010,
0b01100,
0b00000,
0b00000
)),112:(5,0,5,(
0b00000,
0b00000,
0b00000,
0b11100,
0b10010,
0b10010,
0b10010,
0b10010,
0b11100,
0b10000,
0b10000
)),113:(5,0,5,(
0b00000,
0b00000,
0b00000,
0b01110,
0b10010,
0b10010,
0b10010,
0b10010,
0b01110,
0b00010,
0b00010
)),114:(4,0,4,(
0b0000,
0b0000,
0b0000,
0b1010,
0b1100,
0b1000,
0b1000,
0b1000,
0b1000,
0b0000,
0b0000
)),115:(4,0,4,(
0b0000,
0b0000,
0b0000,
0b0110,
0b1000,
0b0100,
0b0010,
0b0010,
0b1100,
0b0000,
0b0000
)),116:(4,0,4,(
0b0000,
0b0000,
0b0100,
0b1110,
0b0100,
0b0100,
0b0100,
0b0100,
0b0010,
0b0000,
0b0000
)),117:(5,0,5,(
0b00000,
0b00000,
0b00000,
0b10010,
0b10010,
0b10010,
0b10010,
0b10010,
0b01110,
0b00000,
0b00000
)),118:(6,0,6,(
0b000000,
0b000000,
0b000000,
0b100010,
0b100010,
0b010100,
0b010100,
0b001000,
0b001000,
0b000000,
0b000000
)),119:(6,0,6,(
0b000000,
0b000000,
0b000000,
0b101010,
0b101010,
0b101010,
0b101010,
0b010100,
0b010100,
0b000000,
0b000000
)),120:(6,0,6,(
0b000000,
0b000000,
0b000000,
0b100010,
0b100010,
0b010100,
0b001000,
0b010100,
0b100010,
0b000000,
0b000000
)),121:(6,0,6,(
0b000000,
0b000000,
0b000000,
0b100010,
0b100010,
0b010100,
0b010100,
0b001000,
0b001000,
0b010000,
0b100000
)),122:(4,0,4,(
0b0000,
0b0000,
0b0000,
0b1110,
0b0010,
0b0100,
0b0100,
0b1000,
0b1110,
0b0000,
0b0000
)),123:(4,0,4,(
0b0000,
0b0010,
0b0100,
0b0100,
0b0100,
0b1000,
0b0100,
0b0100,
0b0100,
0b0010,
0b0000
)),124:(2,0,2,(
0b00,
0b10,
0b10,
0b10,
0b10,
0b10,
0b10,
0b10,
0b10,
0b10,
0b00
)),125:(4,0,4,(
0b0000,
0b1000,
0b0100,
0b0100,
0b0100,
0b0010,
0b0100,
0b0100,
0b0100,
0b1000,
0b0000
)),126:(7,0,7,(
0b0000000,
0b0000000,
0b0000000,
0b0000000,
0b0000000,
0b0110010,
0b1001100,
0b0000000,
0b0000000,
0b0000000,
0b0000000
)),128:(5,0,5,(
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000
)),130:(3,0,3,(
0b000,
0b000,
0b000,
0b000,
0b000,
0b000,
0b000,
0b000,
0b010,
0b100,
0b000
)),131:(8,0,8,(
0b00000000,
0b00000000,
0b00000110,
0b00001000,
0b00111100,
0b00010000,
0b00010000,
0b00100000,
0b00100000,
0b11000000,
0b00000000
)),132:(5,0,5,(
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b01010,
0b10100,
0b00000
)),133:(6,0,6,(
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b101010,
0b000000,
0b000000
)),134:(6,0,6,(
0b000000,
0b000000,
0b001000,
0b001000,
0b111110,
0b001000,
0b001000,
0b001000,
0b001000,
0b001000,
0b001000
)),135:(6,0,6,(
0b000000,
0b000000,
0b001000,
0b001000,
0b111110,
0b001000,
0b001000,
0b001000,
0b111110,
0b001000,
0b001000
)),136:(4,0,4,(
0b0000,
0b0000,
0b0100,
0b1010,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000
)),137:(11,0,11,(
0b00000000000,
0b00000000000,
0b01000100000,
0b10100100000,
0b10101000000,
0b01010100100,
0b00101011010,
0b01001011010,
0b01000100100,
0b00000000000,
0b00000000000
)),138:(5,0,5,(
0b01010,
0b00100,
0b00000,
0b01110,
0b10000,
0b01100,
0b00010,
0b00010,
0b11100,
0b00000,
0b00000
)),139:(4,0,4,(
0b0000,
0b0000,
0b0000,
0b0000,
0b0010,
0b0100,
0b1000,
0b0100,
0b0010,
0b0000,
0b0000
)),140:(8,0,8,(
0b00000000,
0b00000000,
0b00111110,
0b01001000,
0b10001000,
0b10001110,
0b10001000,
0b01001000,
0b00111110,
0b00000000,
0b00000000
)),141:(10,0,10,(
0b0000000000,
0b0000100000,
0b0001010000,
0b0010001000,
0b0100000100,
0b1000000010,
0b0100000100,
0b0010001000,
0b0001010000,
0b0000100000,
0b0000000000
)),142:(10,0,10,(
0b0001110000,
0b0011111000,
0b0011111000,
0b0101110100,
0b1111111110,
0b1111111110,
0b1111111110,
0b0110101100,
0b0001110000,
0b0011111000,
0b0000000000
)),143:(10,0,10,(
0b0000000000,
0b0111011100,
0b1001110010,
0b1000100010,
0b1000000010,
0b1000000010,
0b0100000100,
0b0010001000,
0b0001010000,
0b0000100000,
0b0000000000
)),144:(10,0,10,(
0b0000100000,
0b0001110000,
0b0011111000,
0b0111111100,
0b1111111110,
0b1111111110,
0b1111111110,
0b0110101100,
0b0001110000,
0b0011111000,
0b0000000000
)),145:(3,0,3,(
0b000,
0b000,
0b100,
0b010,
0b000,
0b000,
0b000,
0b000,
0b000,
0b000,
0b000
)),146:(3,0,3,(
0b000,
0b000,
0b010,
0b100,
0b000,
0b000,
0b000,
0b000,
0b000,
0b000,
0b000
)),147:(5,0,5,(
0b00000,
0b00000,
0b10100,
0b01010,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000
)),148:(5,0,5,(
0b00000,
0b00000,
0b01010,
0b10100,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000
)),149:(4,0,4,(
0b0000,
0b0000,
0b0000,
0b0000,
0b1110,
0b1110,
0b1110,
0b0000,
0b0000,
0b0000,
0b0000
)),150:(4,0,4,(
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b1111,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000
)),151:(7,0,7,(
0b0000000,
0b0000000,
0b0000000,
0b0000000,
0b0000000,
0b1111111,
0b0000000,
0b0000000,
0b0000000,
0b0000000,
0b0000000
)),152:(7,0,7,(
0b0000000,
0b0000000,
0b0000000,
0b0110010,
0b1001100,
0b0000000,
0b0000000,
0b0000000,
0b0000000,
0b0000000,
0b0000000
)),153:(10,0,10,(
0b0000000000,
0b0000000000,
0b1110100010,
0b0100110110,
0b0100101010,
0b0000000000,
0b0000000000,
0b0000000000,
0b0000000000,
0b0000000000,
0b0000000000
)),154:(4,0,4,(
0b0000,
0b1010,
0b0100,
0b0000,
0b0110,
0b1000,
0b0100,
0b0010,
0b1100,
0b0000,
0b0000
)),155:(4,0,4,(
0b0000,
0b0000,
0b0000,
0b0000,
0b1000,
0b0100,
0b0010,
0b0100,
0b1000,
0b0000,
0b0000
)),156:(8,0,8,(
0b00000000,
0b00000000,
0b00000000,
0b00000000,
0b01101100,
0b10010010,
0b10011110,
0b10010000,
0b01101110,
0b00000000,
0b00000000
)),157:(8,0,8,(
0b00000000,
0b00000000,
0b00000000,
0b00000010,
0b00000100,
0b00001000,
0b00010000,
0b00100000,
0b11000000,
0b11000000,
0b00000000
)),158:(8,0,8,(
0b00000000,
0b00010000,
0b00101000,
0b00101000,
0b00101000,
0b00101000,
0b00010000,
0b00101000,
0b11000100,
0b11000010,
0b00000000
)),159:(6,0,6,(
0b000000,
0b010100,
0b000000,
0b100010,
0b100010,
0b010100,
0b001000,
0b001000,
0b001000,
0b000000,
0b000000
)),160:(2,0,2,(
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00
)),161:(2,0,2,(
0b00,
0b00,
0b00,
0b00,
0b10,
0b00,
0b10,
0b10,
0b10,
0b10,
0b10
)),162:(6,0,6,(
0b000000,
0b000000,
0b001000,
0b011100,
0b101010,
0b101000,
0b101000,
0b101010,
0b011100,
0b001000,
0b000000
)),163:(6,0,6,(
0b000000,
0b000000,
0b001110,
0b010000,
0b010000,
0b111100,
0b010000,
0b010000,
0b111110,
0b000000,
0b000000
)),164:(8,0,8,(
0b00000000,
0b00000000,
0b10010010,
0b01101100,
0b01000100,
0b10000010,
0b01000100,
0b01101100,
0b10010010,
0b00000000,
0b00000000
)),165:(6,0,6,(
0b000000,
0b000000,
0b100010,
0b010100,
0b111110,
0b001000,
0b111110,
0b001000,
0b001000,
0b000000,
0b000000
)),166:(2,0,2,(
0b00,
0b00,
0b10,
0b10,
0b10,
0b10,
0b00,
0b10,
0b10,
0b10,
0b10
)),167:(5,0,5,(
0b00000,
0b01100,
0b10010,
0b01000,
0b10100,
0b10010,
0b01010,
0b00100,
0b10010,
0b01100,
0b00000
)),168:(4,0,4,(
0b0000,
0b0000,
0b0000,
0b1010,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000
)),169:(8,0,8,(
0b00000000,
0b00000000,
0b00000000,
0b00111000,
0b01000100,
0b10111010,
0b10100010,
0b10111010,
0b01000100,
0b00111000,
0b00000000
)),170:(5,0,5,(
0b00000,
0b00000,
0b01110,
0b10010,
0b01110,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000
)),171:(6,0,6,(
0b000000,
0b000000,
0b000000,
0b000000,
0b001010,
0b010100,
0b101000,
0b010100,
0b001010,
0b000000,
0b000000
)),172:(6,0,6,(
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b111110,
0b000010,
0b000010,
0b000000,
0b000000,
0b000000
)),173:(4,0,4,(
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b1110,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000
)),174:(8,0,8,(
0b00000000,
0b00000000,
0b00000000,
0b00111000,
0b01000100,
0b10111010,
0b10110010,
0b10101010,
0b01000100,
0b00111000,
0b00000000
)),175:(6,0,6,(
0b000000,
0b111110,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000
)),176:(5,0,5,(
0b00000,
0b01100,
0b10010,
0b10010,
0b01100,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000
)),177:(6,0,6,(
0b000000,
0b000000,
0b001000,
0b001000,
0b111110,
0b001000,
0b001000,
0b111110,
0b000000,
0b000000,
0b000000
)),178:(4,0,4,(
0b0000,
0b0000,
0b1110,
0b0010,
0b0100,
0b1110,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000
)),179:(4,0,4,(
0b0000,
0b0000,
0b1110,
0b0100,
0b0010,
0b1110,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000
)),180:(3,0,3,(
0b000,
0b010,
0b100,
0b000,
0b000,
0b000,
0b000,
0b000,
0b000,
0b000,
0b000
)),181:(5,0,5,(
0b00000,
0b00000,
0b00000,
0b00000,
0b10010,
0b10010,
0b10010,
0b10010,
0b11110,
0b10000,
0b10000
)),182:(6,0,6,(
0b000000,
0b000000,
0b011110,
0b111010,
0b111010,
0b011010,
0b001010,
0b001010,
0b001010,
0b000000,
0b000000
)),183:(2,0,2,(
0b00,
0b00,
0b00,
0b00,
0b00,
0b10,
0b00,
0b00,
0b00,
0b00,
0b00
)),184:(4,0,4,(
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0100,
0b0010,
0b1100
)),185:(2,0,2,(
0b00,
0b00,
0b10,
0b10,
0b10,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00
)),186:(5,0,5,(
0b00000,
0b00000,
0b01100,
0b10010,
0b01100,
0b00000,
0b11110,
0b00000,
0b00000,
0b00000,
0b00000
)),187:(6,0,6,(
0b000000,
0b000000,
0b000000,
0b000000,
0b101000,
0b010100,
0b001010,
0b010100,
0b101000,
0b000000,
0b000000
)),188:(8,0,8,(
0b00000000,
0b10000000,
0b10000100,
0b10001000,
0b10010000,
0b00100100,
0b01001100,
0b10011110,
0b00000100,
0b00000000,
0b00000000
)),189:(8,0,8,(
0b00000000,
0b10000000,
0b10000100,
0b10001000,
0b10010000,
0b00101110,
0b01000010,
0b10000100,
0b00001110,
0b00000000,
0b00000000
)),190:(8,0,8,(
0b00000000,
0b11100000,
0b01000010,
0b00100100,
0b11101000,
0b00010010,
0b00100110,
0b01001110,
0b00000010,
0b00000000,
0b00000000
)),191:(5,0,5,(
0b00000,
0b00000,
0b00100,
0b00000,
0b00100,
0b00100,
0b01000,
0b10000,
0b01110,
0b00000,
0b00000
)),192:(5,0,5,(
0b01000,
0b00100,
0b00000,
0b01100,
0b10010,
0b11110,
0b10010,
0b10010,
0b10010,
0b00000,
0b00000
)),193:(5,0,5,(
0b00100,
0b01000,
0b00000,
0b01100,
0b10010,
0b11110,
0b10010,
0b10010,
0b10010,
0b00000,
0b00000
)),194:(5,0,5,(
0b00100,
0b01010,
0b00000,
0b01100,
0b10010,
0b11110,
0b10010,
0b10010,
0b10010,
0b00000,
0b00000
)),195:(5,0,5,(
0b01010,
0b10100,
0b00000,
0b01100,
0b10010,
0b11110,
0b10010,
0b10010,
0b10010,
0b00000,
0b00000
)),196:(5,0,5,(
0b00000,
0b01010,
0b00000,
0b01100,
0b10010,
0b11110,
0b10010,
0b10010,
0b10010,
0b00000,
0b00000
)),197:(5,0,5,(
0b01100,
0b10010,
0b01100,
0b01100,
0b10010,
0b11110,
0b10010,
0b10010,
0b10010,
0b00000,
0b00000
)),198:(7,0,7,(
0b0000000,
0b0000000,
0b0111110,
0b1001000,
0b1001000,
0b1111110,
0b1001000,
0b1001000,
0b1001110,
0b0000000,
0b0000000
)),199:(5,0,5,(
0b00000,
0b00000,
0b00110,
0b01000,
0b10000,
0b10000,
0b10000,
0b01000,
0b00110,
0b00100,
0b01000
)),200:(4,0,4,(
0b1000,
0b0100,
0b0000,
0b1110,
0b1000,
0b1110,
0b1000,
0b1000,
0b1110,
0b0000,
0b0000
)),201:(4,0,4,(
0b0100,
0b1000,
0b0000,
0b1110,
0b1000,
0b1110,
0b1000,
0b1000,
0b1110,
0b0000,
0b0000
)),202:(4,0,4,(
0b0100,
0b1010,
0b0000,
0b1110,
0b1000,
0b1110,
0b1000,
0b1000,
0b1110,
0b0000,
0b0000
)),203:(4,0,4,(
0b0000,
0b1010,
0b0000,
0b1110,
0b1000,
0b1110,
0b1000,
0b1000,
0b1110,
0b0000,
0b0000
)),204:(3,0,3,(
0b100,
0b010,
0b000,
0b010,
0b010,
0b010,
0b010,
0b010,
0b010,
0b000,
0b000
)),205:(2,0,2,(
0b01,
0b10,
0b00,
0b10,
0b10,
0b10,
0b10,
0b10,
0b10,
0b00,
0b00
)),206:(3,0,3,(
0b010,
0b101,
0b000,
0b010,
0b010,
0b010,
0b010,
0b010,
0b010,
0b000,
0b000
)),207:(3,0,3,(
0b101,
0b000,
0b000,
0b010,
0b010,
0b010,
0b010,
0b010,
0b010,
0b000,
0b000
)),208:(7,0,7,(
0b0000000,
0b0000000,
0b0111000,
0b0100100,
0b0100010,
0b1110010,
0b0100010,
0b0100100,
0b0111000,
0b0000000,
0b0000000
)),209:(6,0,6,(
0b001010,
0b010100,
0b000000,
0b100010,
0b110010,
0b101010,
0b101010,
0b100110,
0b100010,
0b000000,
0b000000
)),210:(7,0,7,(
0b0010000,
0b0001000,
0b0000000,
0b0011000,
0b0100100,
0b1000010,
0b1000010,
0b0100100,
0b0011000,
0b0000000,
0b0000000
)),211:(7,0,7,(
0b0001000,
0b0010000,
0b0000000,
0b0011000,
0b0100100,
0b1000010,
0b1000010,
0b0100100,
0b0011000,
0b0000000,
0b0000000
)),212:(7,0,7,(
0b0001000,
0b0010100,
0b0000000,
0b0011000,
0b0100100,
0b1000010,
0b1000010,
0b0100100,
0b0011000,
0b0000000,
0b0000000
)),213:(7,0,7,(
0b0010100,
0b0101000,
0b0000000,
0b0011000,
0b0100100,
0b1000010,
0b1000010,
0b0100100,
0b0011000,
0b0000000,
0b0000000
)),214:(7,0,7,(
0b0000000,
0b0010100,
0b0000000,
0b0011000,
0b0100100,
0b1000010,
0b1000010,
0b0100100,
0b0011000,
0b0000000,
0b0000000
)),215:(5,0,5,(
0b00000,
0b00000,
0b00000,
0b00000,
0b10010,
0b01100,
0b01100,
0b10010,
0b00000,
0b00000,
0b00000
)),216:(8,0,8,(
0b00000000,
0b00000000,
0b00111010,
0b01000100,
0b10001010,
0b10010010,
0b10100010,
0b01000100,
0b10111000,
0b00000000,
0b00000000
)),217:(6,0,6,(
0b001000,
0b000100,
0b000000,
0b100010,
0b100010,
0b100010,
0b100010,
0b100010,
0b011100,
0b000000,
0b000000
)),218:(6,0,6,(
0b000100,
0b001000,
0b000000,
0b100010,
0b100010,
0b100010,
0b100010,
0b100010,
0b011100,
0b000000,
0b000000
)),219:(6,0,6,(
0b001000,
0b010100,
0b000000,
0b100010,
0b100010,
0b100010,
0b100010,
0b100010,
0b011100,
0b000000,
0b000000
)),220:(6,0,6,(
0b000000,
0b010100,
0b000000,
0b100010,
0b100010,
0b100010,
0b100010,
0b100010,
0b011100,
0b000000,
0b000000
)),221:(6,0,6,(
0b000100,
0b001000,
0b000000,
0b100010,
0b100010,
0b011100,
0b001000,
0b001000,
0b001000,
0b000000,
0b000000
)),222:(6,0,6,(
0b000000,
0b000000,
0b100000,
0b111100,
0b100010,
0b100010,
0b100010,
0b111100,
0b100000,
0b000000,
0b000000
)),223:(6,0,6,(
0b000000,
0b000000,
0b011000,
0b100100,
0b100100,
0b101100,
0b100010,
0b100010,
0b101100,
0b000000,
0b000000
)),224:(5,0,5,(
0b00000,
0b00100,
0b00010,
0b00000,
0b01110,
0b10010,
0b10010,
0b10010,
0b01110,
0b00000,
0b00000
)),225:(5,0,5,(
0b00000,
0b00010,
0b00100,
0b00000,
0b01110,
0b10010,
0b10010,
0b10010,
0b01110,
0b00000,
0b00000
)),226:(5,0,5,(
0b00000,
0b00100,
0b01010,
0b00000,
0b01110,
0b10010,
0b10010,
0b10010,
0b01110,
0b00000,
0b00000
)),227:(5,0,5,(
0b00000,
0b01010,
0b10100,
0b00000,
0b01110,
0b10010,
0b10010,
0b10010,
0b01110,
0b00000,
0b00000
)),228:(5,0,5,(
0b00000,
0b00000,
0b01010,
0b00000,
0b01110,
0b10010,
0b10010,
0b10010,
0b01110,
0b00000,
0b00000
)),229:(5,0,5,(
0b00100,
0b01010,
0b00100,
0b00000,
0b01110,
0b10010,
0b10010,
0b10010,
0b01110,
0b00000,
0b00000
)),230:(8,0,8,(
0b00000000,
0b00000000,
0b00000000,
0b00000000,
0b01101100,
0b00010010,
0b01111110,
0b10010000,
0b01111110,
0b00000000,
0b00000000
)),231:(4,0,4,(
0b0000,
0b0000,
0b0000,
0b0000,
0b0110,
0b1000,
0b1000,
0b1000,
0b0110,
0b0100,
0b1000
)),232:(5,0,5,(
0b00000,
0b01000,
0b00100,
0b00000,
0b01100,
0b10010,
0b11110,
0b10000,
0b01110,
0b00000,
0b00000
)),233:(5,0,5,(
0b00000,
0b00100,
0b01000,
0b00000,
0b01100,
0b10010,
0b11110,
0b10000,
0b01110,
0b00000,
0b00000
)),234:(5,0,5,(
0b00000,
0b00100,
0b01010,
0b00000,
0b01100,
0b10010,
0b11110,
0b10000,
0b01110,
0b00000,
0b00000
)),235:(5,0,5,(
0b00000,
0b00000,
0b01010,
0b00000,
0b01100,
0b10010,
0b11110,
0b10000,
0b01110,
0b00000,
0b00000
)),236:(2,0,2,(
0b00,
0b10,
0b01,
0b00,
0b10,
0b10,
0b10,
0b10,
0b10,
0b00,
0b00
)),237:(2,0,2,(
0b00,
0b01,
0b10,
0b00,
0b10,
0b10,
0b10,
0b10,
0b10,
0b00,
0b00
)),238:(3,0,3,(
0b000,
0b010,
0b101,
0b000,
0b010,
0b010,
0b010,
0b010,
0b010,
0b000,
0b000
)),239:(3,0,3,(
0b000,
0b101,
0b000,
0b000,
0b010,
0b010,
0b010,
0b010,
0b010,
0b000,
0b000
)),240:(5,0,5,(
0b00000,
0b00000,
0b11000,
0b11000,
0b00100,
0b01100,
0b10010,
0b10010,
0b01100,
0b00000,
0b00000
)),241:(5,0,5,(
0b00000,
0b01010,
0b10100,
0b00000,
0b11100,
0b10010,
0b10010,
0b10010,
0b10010,
0b00000,
0b00000
)),242:(5,0,5,(
0b00000,
0b01000,
0b00100,
0b00000,
0b01100,
0b10010,
0b10010,
0b10010,
0b01100,
0b00000,
0b00000
)),243:(5,0,5,(
0b00000,
0b00100,
0b01000,
0b00000,
0b01100,
0b10010,
0b10010,
0b10010,
0b01100,
0b00000,
0b00000
)),244:(5,0,5,(
0b00000,
0b00100,
0b01010,
0b00000,
0b01100,
0b10010,
0b10010,
0b10010,
0b01100,
0b00000,
0b00000
)),245:(5,0,5,(
0b00000,
0b01010,
0b10100,
0b00000,
0b01100,
0b10010,
0b10010,
0b10010,
0b01100,
0b00000,
0b00000
)),246:(5,0,5,(
0b00000,
0b00000,
0b01010,
0b00000,
0b01100,
0b10010,
0b10010,
0b10010,
0b01100,
0b00000,
0b00000
)),247:(6,0,6,(
0b000000,
0b000000,
0b000000,
0b000000,
0b001000,
0b000000,
0b111110,
0b000000,
0b001000,
0b000000,
0b000000
)),248:(7,0,7,(
0b0000000,
0b0000000,
0b0000000,
0b0000000,
0b0011010,
0b0101100,
0b0110100,
0b0100100,
0b1011000,
0b0000000,
0b0000000
)),249:(5,0,5,(
0b00000,
0b01000,
0b00100,
0b00000,
0b10010,
0b10010,
0b10010,
0b10010,
0b01110,
0b00000,
0b00000
)),250:(5,0,5,(
0b00000,
0b00100,
0b01000,
0b00000,
0b10010,
0b10010,
0b10010,
0b10010,
0b01110,
0b00000,
0b00000
)),251:(5,0,5,(
0b00000,
0b00100,
0b01010,
0b00000,
0b10010,
0b10010,
0b10010,
0b10010,
0b01110,
0b00000,
0b00000
)),252:(5,0,5,(
0b00000,
0b00000,
0b01010,
0b00000,
0b10010,
0b10010,
0b10010,
0b10010,
0b01110,
0b00000,
0b00000
)),253:(6,0,6,(
0b000000,
0b000100,
0b001000,
0b000000,
0b100010,
0b010100,
0b010100,
0b001000,
0b001000,
0b010000,
0b100000
)),254:(5,0,5,(
0b00000,
0b00000,
0b10000,
0b10000,
0b11100,
0b10010,
0b10010,
0b10010,
0b11100,
0b10000,
0b10000
)),255:(6,0,6,(
0b000000,
0b000000,
0b010100,
0b000000,
0b100010,
0b010100,
0b010100,
0b001000,
0b001000,
0b010000,
0b100000
)),}
# generated by fontconv
#fontType 36864
#firstChar 9
#lastChar 255
#maxWidth 10
#kernMax 0
#nDescent 0
#fRectWidth 10
#fRectHeight 11
#ascent 9
#descent 2
#leading 0
#averageWidth 4.27
FONTS['thin11pt'] = {
9:(2,0,2,(
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00
)),20:(8,0,8,(
0b00000000,
0b01100000,
0b11110000,
0b10010010,
0b11110100,
0b01101000,
0b11100110,
0b11101000,
0b01100100,
0b11100010,
0b00000000
)),21:(5,0,5,(
0b00000,
0b00100,
0b01000,
0b10000,
0b00000,
0b11010,
0b00000,
0b10000,
0b01000,
0b00100,
0b00000
)),22:(7,0,7,(
0b0000000,
0b0000000,
0b0000000,
0b0000010,
0b0000100,
0b0001000,
0b0010000,
0b1100000,
0b1100000,
0b0000000,
0b0000000
)),23:(6,0,6,(
0b000000,
0b001000,
0b010100,
0b010100,
0b010100,
0b001000,
0b010100,
0b110010,
0b110010,
0b000000,
0b000000
)),24:(6,0,6,(
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b101010,
0b000000,
0b000000
)),25:(4,0,4,(
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000
)),32:(2,0,2,(
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00
)),33:(2,0,2,(
0b00,
0b00,
0b10,
0b10,
0b10,
0b10,
0b10,
0b00,
0b10,
0b00,
0b00
)),34:(4,0,4,(
0b0000,
0b0000,
0b1010,
0b1010,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000
)),35:(6,0,6,(
0b000000,
0b000000,
0b010100,
0b010100,
0b111110,
0b010100,
0b111110,
0b010100,
0b010100,
0b000000,
0b000000
)),36:(4,0,4,(
0b0000,
0b0100,
0b0110,
0b1000,
0b1100,
0b0110,
0b0010,
0b1100,
0b0100,
0b0000,
0b0000
)),37:(6,0,6,(
0b000000,
0b000000,
0b010010,
0b101010,
0b010100,
0b001000,
0b010100,
0b101010,
0b100100,
0b000000,
0b000000
)),38:(5,0,5,(
0b00000,
0b00000,
0b01000,
0b10100,
0b10100,
0b01010,
0b10100,
0b10100,
0b01010,
0b00000,
0b00000
)),39:(2,0,2,(
0b00,
0b00,
0b10,
0b10,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00
)),40:(3,0,3,(
0b000,
0b010,
0b010,
0b100,
0b100,
0b100,
0b100,
0b100,
0b010,
0b010,
0b000
)),41:(3,0,3,(
0b000,
0b100,
0b100,
0b010,
0b010,
0b010,
0b010,
0b010,
0b100,
0b100,
0b000
)),42:(4,0,4,(
0b0000,
0b1010,
0b0100,
0b1110,
0b0100,
0b1010,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000
)),43:(4,0,4,(
0b0000,
0b0000,
0b0000,
0b0100,
0b0100,
0b1110,
0b0100,
0b0100,
0b0000,
0b0000,
0b0000
)),44:(3,0,3,(
0b000,
0b000,
0b000,
0b000,
0b000,
0b000,
0b000,
0b000,
0b110,
0b010,
0b100
)),45:(4,0,4,(
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b1110,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000
)),46:(2,0,2,(
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b10,
0b10,
0b00,
0b00
)),47:(4,0,4,(
0b0000,
0b0000,
0b0010,
0b0010,
0b0100,
0b0100,
0b0100,
0b1000,
0b1000,
0b0000,
0b0000
)),48:(4,0,4,(
0b0000,
0b0000,
0b0100,
0b1010,
0b1010,
0b1010,
0b1010,
0b1010,
0b0100,
0b0000,
0b0000
)),49:(4,0,4,(
0b0000,
0b0000,
0b0100,
0b1100,
0b0100,
0b0100,
0b0100,
0b0100,
0b0100,
0b0000,
0b0000
)),50:(4,0,4,(
0b0000,
0b0000,
0b0100,
0b1010,
0b0010,
0b0010,
0b0100,
0b1000,
0b1110,
0b0000,
0b0000
)),51:(4,0,4,(
0b0000,
0b0000,
0b0100,
0b1010,
0b0010,
0b0100,
0b0010,
0b1010,
0b0100,
0b0000,
0b0000
)),52:(4,0,4,(
0b0000,
0b0000,
0b0010,
0b0110,
0b1010,
0b1010,
0b1110,
0b0010,
0b0010,
0b0000,
0b0000
)),53:(4,0,4,(
0b0000,
0b0000,
0b1110,
0b1000,
0b1000,
0b1100,
0b0010,
0b0010,
0b1100,
0b0000,
0b0000
)),54:(4,0,4,(
0b0000,
0b0000,
0b0100,
0b1010,
0b1000,
0b1100,
0b1010,
0b1010,
0b0100,
0b0000,
0b0000
)),55:(4,0,4,(
0b0000,
0b0000,
0b1110,
0b0010,
0b0010,
0b0010,
0b0100,
0b0100,
0b0100,
0b0000,
0b0000
)),56:(4,0,4,(
0b0000,
0b0000,
0b0100,
0b1010,
0b1010,
0b0100,
0b1010,
0b1010,
0b0100,
0b0000,
0b0000
)),57:(4,0,4,(
0b0000,
0b0000,
0b0100,
0b1010,
0b1010,
0b0110,
0b0010,
0b1010,
0b0100,
0b0000,
0b0000
)),58:(2,0,2,(
0b00,
0b00,
0b00,
0b00,
0b10,
0b00,
0b00,
0b10,
0b00,
0b00,
0b00
)),59:(3,0,3,(
0b000,
0b000,
0b000,
0b000,
0b010,
0b000,
0b000,
0b010,
0b010,
0b100,
0b000
)),60:(4,0,4,(
0b0000,
0b0000,
0b0000,
0b0010,
0b0100,
0b1000,
0b0100,
0b0010,
0b0000,
0b0000,
0b0000
)),61:(4,0,4,(
0b0000,
0b0000,
0b0000,
0b0000,
0b1110,
0b0000,
0b1110,
0b0000,
0b0000,
0b0000,
0b0000
)),62:(4,0,4,(
0b0000,
0b0000,
0b0000,
0b1000,
0b0100,
0b0010,
0b0100,
0b1000,
0b0000,
0b0000,
0b0000
)),63:(4,0,4,(
0b0000,
0b0000,
0b0100,
0b1010,
0b0010,
0b0100,
0b0100,
0b0000,
0b0100,
0b0000,
0b0000
)),64:(7,0,7,(
0b0000000,
0b0000000,
0b0011000,
0b0100100,
0b1011010,
0b1101010,
0b1011100,
0b0100000,
0b0011100,
0b0000000,
0b0000000
)),65:(4,0,4,(
0b0000,
0b0000,
0b0100,
0b1010,
0b1010,
0b1110,
0b1010,
0b1010,
0b1010,
0b0000,
0b0000
)),66:(4,0,4,(
0b0000,
0b0000,
0b1100,
0b1010,
0b1010,
0b1100,
0b1010,
0b1010,
0b1100,
0b0000,
0b0000
)),67:(4,0,4,(
0b0000,
0b0000,
0b0100,
0b1010,
0b1000,
0b1000,
0b1000,
0b1010,
0b0100,
0b0000,
0b0000
)),68:(4,0,4,(
0b0000,
0b0000,
0b1100,
0b1010,
0b1010,
0b1010,
0b1010,
0b1010,
0b1100,
0b0000,
0b0000
)),69:(4,0,4,(
0b0000,
0b0000,
0b1110,
0b1000,
0b1000,
0b1100,
0b1000,
0b1000,
0b1110,
0b0000,
0b0000
)),70:(4,0,4,(
0b0000,
0b0000,
0b1110,
0b1000,
0b1000,
0b1100,
0b1000,
0b1000,
0b1000,
0b0000,
0b0000
)),71:(4,0,4,(
0b0000,
0b0000,
0b0110,
0b1000,
0b1000,
0b1010,
0b1010,
0b1010,
0b0110,
0b0000,
0b0000
)),72:(4,0,4,(
0b0000,
0b0000,
0b1010,
0b1010,
0b1010,
0b1110,
0b1010,
0b1010,
0b1010,
0b0000,
0b0000
)),73:(2,0,2,(
0b00,
0b00,
0b10,
0b10,
0b10,
0b10,
0b10,
0b10,
0b10,
0b00,
0b00
)),74:(4,0,4,(
0b0000,
0b0000,
0b0010,
0b0010,
0b0010,
0b0010,
0b0010,
0b0010,
0b1100,
0b0000,
0b0000
)),75:(4,0,4,(
0b0000,
0b0000,
0b1010,
0b1010,
0b1100,
0b1100,
0b1010,
0b1010,
0b1010,
0b0000,
0b0000
)),76:(4,0,4,(
0b0000,
0b0000,
0b1000,
0b1000,
0b1000,
0b1000,
0b1000,
0b1000,
0b1110,
0b0000,
0b0000
)),77:(6,0,6,(
0b000000,
0b000000,
0b110110,
0b101010,
0b101010,
0b101010,
0b100010,
0b100010,
0b100010,
0b000000,
0b000000
)),78:(5,0,5,(
0b00000,
0b00000,
0b10010,
0b11010,
0b11110,
0b10110,
0b10010,
0b10010,
0b10010,
0b00000,
0b00000
)),79:(4,0,4,(
0b0000,
0b0000,
0b0110,
0b1010,
0b1010,
0b1010,
0b1010,
0b1010,
0b1100,
0b0000,
0b0000
)),80:(4,0,4,(
0b0000,
0b0000,
0b1100,
0b1010,
0b1010,
0b1100,
0b1000,
0b1000,
0b1000,
0b0000,
0b0000
)),81:(4,0,4,(
0b0000,
0b0000,
0b0110,
0b1010,
0b1010,
0b1010,
0b1010,
0b1010,
0b1100,
0b0010,
0b0000
)),82:(4,0,4,(
0b0000,
0b0000,
0b1100,
0b1010,
0b1010,
0b1100,
0b1010,
0b1010,
0b1010,
0b0000,
0b0000
)),83:(4,0,4,(
0b0000,
0b0000,
0b0110,
0b1000,
0b1000,
0b0100,
0b0010,
0b0010,
0b1100,
0b0000,
0b0000
)),84:(4,0,4,(
0b0000,
0b0000,
0b1110,
0b0100,
0b0100,
0b0100,
0b0100,
0b0100,
0b0100,
0b0000,
0b0000
)),85:(4,0,4,(
0b0000,
0b0000,
0b1010,
0b1010,
0b1010,
0b1010,
0b1010,
0b1010,
0b0110,
0b0000,
0b0000
)),86:(4,0,4,(
0b0000,
0b0000,
0b1010,
0b1010,
0b1010,
0b1010,
0b1010,
0b0100,
0b0100,
0b0000,
0b0000
)),87:(6,0,6,(
0b000000,
0b000000,
0b100010,
0b100010,
0b101010,
0b101010,
0b101010,
0b010100,
0b010100,
0b000000,
0b000000
)),88:(4,0,4,(
0b0000,
0b0000,
0b1010,
0b1010,
0b1010,
0b0100,
0b1010,
0b1010,
0b1010,
0b0000,
0b0000
)),89:(4,0,4,(
0b0000,
0b0000,
0b1010,
0b1010,
0b1010,
0b0100,
0b0100,
0b0100,
0b0100,
0b0000,
0b0000
)),90:(4,0,4,(
0b0000,
0b0000,
0b1110,
0b0010,
0b0100,
0b0100,
0b1000,
0b1000,
0b1110,
0b0000,
0b0000
)),91:(3,0,3,(
0b000,
0b110,
0b100,
0b100,
0b100,
0b100,
0b100,
0b100,
0b100,
0b110,
0b000
)),92:(4,0,4,(
0b0000,
0b0000,
0b1000,
0b1000,
0b0100,
0b0100,
0b0100,
0b0010,
0b0010,
0b0000,
0b0000
)),93:(3,0,3,(
0b000,
0b110,
0b010,
0b010,
0b010,
0b010,
0b010,
0b010,
0b010,
0b110,
0b000
)),94:(4,0,4,(
0b0000,
0b0000,
0b0100,
0b1010,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000
)),95:(4,0,4,(
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b1111,
0b0000
)),96:(3,0,3,(
0b000,
0b100,
0b010,
0b000,
0b000,
0b000,
0b000,
0b000,
0b000,
0b000,
0b000
)),97:(4,0,4,(
0b0000,
0b0000,
0b0000,
0b0000,
0b1100,
0b0010,
0b0110,
0b1010,
0b1110,
0b0000,
0b0000
)),98:(4,0,4,(
0b0000,
0b0000,
0b1000,
0b1000,
0b1100,
0b1010,
0b1010,
0b1010,
0b1110,
0b0000,
0b0000
)),99:(4,0,4,(
0b0000,
0b0000,
0b0000,
0b0000,
0b0110,
0b1000,
0b1000,
0b1000,
0b0110,
0b0000,
0b0000
)),100:(4,0,4,(
0b0000,
0b0000,
0b0010,
0b0010,
0b0110,
0b1010,
0b1010,
0b1010,
0b1110,
0b0000,
0b0000
)),101:(4,0,4,(
0b0000,
0b0000,
0b0000,
0b0000,
0b0100,
0b1010,
0b1110,
0b1000,
0b0110,
0b0000,
0b0000
)),102:(3,0,3,(
0b000,
0b000,
0b011,
0b100,
0b110,
0b100,
0b100,
0b100,
0b100,
0b000,
0b000
)),103:(4,0,4,(
0b0000,
0b0000,
0b0000,
0b0000,
0b0110,
0b1010,
0b1010,
0b1010,
0b1110,
0b0010,
0b1100
)),104:(4,0,4,(
0b0000,
0b0000,
0b1000,
0b1000,
0b1100,
0b1010,
0b1010,
0b1010,
0b1010,
0b0000,
0b0000
)),105:(2,0,2,(
0b00,
0b00,
0b10,
0b00,
0b10,
0b10,
0b10,
0b10,
0b10,
0b00,
0b00
)),106:(3,0,3,(
0b000,
0b000,
0b010,
0b000,
0b010,
0b010,
0b010,
0b010,
0b010,
0b100,
0b000
)),107:(4,0,4,(
0b0000,
0b0000,
0b1000,
0b1000,
0b1010,
0b1100,
0b1100,
0b1010,
0b1010,
0b0000,
0b0000
)),108:(2,0,2,(
0b00,
0b00,
0b10,
0b10,
0b10,
0b10,
0b10,
0b10,
0b10,
0b00,
0b00
)),109:(6,0,6,(
0b000000,
0b000000,
0b000000,
0b000000,
0b110100,
0b101010,
0b101010,
0b101010,
0b101010,
0b000000,
0b000000
)),110:(4,0,4,(
0b0000,
0b0000,
0b0000,
0b0000,
0b1100,
0b1010,
0b1010,
0b1010,
0b1010,
0b0000,
0b0000
)),111:(4,0,4,(
0b0000,
0b0000,
0b0000,
0b0000,
0b0100,
0b1010,
0b1010,
0b1010,
0b0100,
0b0000,
0b0000
)),112:(4,0,4,(
0b0000,
0b0000,
0b0000,
0b0000,
0b1100,
0b1010,
0b1010,
0b1010,
0b1110,
0b1000,
0b1000
)),113:(4,0,4,(
0b0000,
0b0000,
0b0000,
0b0000,
0b0110,
0b1010,
0b1010,
0b1010,
0b1110,
0b0010,
0b0010
)),114:(4,0,4,(
0b0000,
0b0000,
0b0000,
0b0000,
0b1010,
0b1100,
0b1000,
0b1000,
0b1000,
0b0000,
0b0000
)),115:(4,0,4,(
0b0000,
0b0000,
0b0000,
0b0000,
0b0110,
0b1000,
0b1110,
0b0010,
0b1100,
0b0000,
0b0000
)),116:(4,0,4,(
0b0000,
0b0000,
0b0000,
0b0100,
0b1110,
0b0100,
0b0100,
0b0100,
0b0010,
0b0000,
0b0000
)),117:(4,0,4,(
0b0000,
0b0000,
0b0000,
0b0000,
0b1010,
0b1010,
0b1010,
0b1010,
0b0110,
0b0000,
0b0000
)),118:(4,0,4,(
0b0000,
0b0000,
0b0000,
0b0000,
0b1010,
0b1010,
0b1010,
0b0100,
0b0100,
0b0000,
0b0000
)),119:(6,0,6,(
0b000000,
0b000000,
0b000000,
0b000000,
0b100010,
0b101010,
0b101010,
0b010100,
0b010100,
0b000000,
0b000000
)),120:(4,0,4,(
0b0000,
0b0000,
0b0000,
0b0000,
0b1010,
0b1010,
0b0100,
0b1010,
0b1010,
0b0000,
0b0000
)),121:(4,0,4,(
0b0000,
0b0000,
0b0000,
0b0000,
0b1010,
0b1010,
0b1010,
0b0100,
0b0100,
0b1000,
0b1000
)),122:(4,0,4,(
0b0000,
0b0000,
0b0000,
0b0000,
0b1110,
0b0010,
0b0100,
0b1000,
0b1110,
0b0000,
0b0000
)),123:(4,0,4,(
0b0000,
0b0010,
0b0100,
0b0100,
0b0100,
0b1000,
0b0100,
0b0100,
0b0100,
0b0010,
0b0000
)),124:(2,0,2,(
0b00,
0b10,
0b10,
0b10,
0b10,
0b10,
0b10,
0b10,
0b10,
0b10,
0b00
)),125:(4,0,4,(
0b0000,
0b1000,
0b0100,
0b0100,
0b0100,
0b0010,
0b0100,
0b0100,
0b0100,
0b1000,
0b0000
)),126:(5,0,5,(
0b00000,
0b00000,
0b00000,
0b00000,
0b01010,
0b10100,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000
)),128:(6,0,6,(
0b000000,
0b000000,
0b000000,
0b001110,
0b010000,
0b111100,
0b010000,
0b111000,
0b010000,
0b001110,
0b000000
)),130:(3,0,3,(
0b000,
0b000,
0b000,
0b000,
0b000,
0b000,
0b000,
0b000,
0b110,
0b010,
0b100
)),131:(4,0,4,(
0b0000,
0b0000,
0b0010,
0b0100,
0b1110,
0b0100,
0b0100,
0b0100,
0b0100,
0b1000,
0b0000
)),132:(5,0,5,(
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b11110,
0b01010,
0b10100
)),133:(6,0,6,(
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b101010,
0b000000,
0b000000
)),134:(4,0,4,(
0b0000,
0b0000,
0b0100,
0b0100,
0b1110,
0b0100,
0b0100,
0b0100,
0b0100,
0b0100,
0b0100
)),135:(4,0,4,(
0b0000,
0b0000,
0b0100,
0b0100,
0b1110,
0b0100,
0b0100,
0b0100,
0b1110,
0b0100,
0b0100
)),136:(4,0,4,(
0b0000,
0b0000,
0b0100,
0b1010,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000
)),137:(8,0,8,(
0b00000000,
0b00000000,
0b01001000,
0b10101000,
0b10110000,
0b01010100,
0b01101010,
0b10101010,
0b10010100,
0b00000000,
0b00000000
)),138:(4,0,4,(
0b1010,
0b0100,
0b0000,
0b0110,
0b1000,
0b0100,
0b0010,
0b0010,
0b1100,
0b0000,
0b0000
)),139:(4,0,4,(
0b0000,
0b0000,
0b0000,
0b0010,
0b0100,
0b1000,
0b0100,
0b0010,
0b0000,
0b0000,
0b0000
)),140:(7,0,7,(
0b0000000,
0b0000000,
0b0111110,
0b1001000,
0b1001000,
0b1001110,
0b1001000,
0b1001000,
0b1111110,
0b0000000,
0b0000000
)),141:(8,0,8,(
0b00000000,
0b00010000,
0b00111000,
0b01101100,
0b11000110,
0b10000010,
0b11000110,
0b01101100,
0b00111000,
0b00010000,
0b00000000
)),142:(8,0,8,(
0b00000000,
0b00111000,
0b00111000,
0b00010000,
0b11010110,
0b11111110,
0b11010110,
0b00010000,
0b00111000,
0b01111100,
0b00000000
)),143:(8,0,8,(
0b00000000,
0b01000100,
0b11101110,
0b10111010,
0b10010010,
0b10000010,
0b11000110,
0b01101100,
0b00111000,
0b00010000,
0b00000000
)),144:(8,0,8,(
0b00000000,
0b00010000,
0b00111000,
0b01111100,
0b11111110,
0b11111110,
0b11111110,
0b01010100,
0b00111000,
0b01111100,
0b00000000
)),145:(3,0,3,(
0b000,
0b000,
0b010,
0b100,
0b110,
0b000,
0b000,
0b000,
0b000,
0b000,
0b000
)),146:(3,0,3,(
0b000,
0b000,
0b110,
0b010,
0b100,
0b000,
0b000,
0b000,
0b000,
0b000,
0b000
)),147:(5,0,5,(
0b00000,
0b00000,
0b01010,
0b10100,
0b11110,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000
)),148:(5,0,5,(
0b00000,
0b00000,
0b11110,
0b01010,
0b10100,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000
)),149:(3,0,3,(
0b000,
0b000,
0b000,
0b000,
0b000,
0b110,
0b110,
0b000,
0b000,
0b000,
0b000
)),150:(4,0,4,(
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b1111,
0b0000,
0b0000,
0b0000,
0b0000
)),151:(6,0,6,(
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b111111,
0b000000,
0b000000,
0b000000,
0b000000
)),152:(5,0,5,(
0b00000,
0b00000,
0b00000,
0b00000,
0b01010,
0b10100,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000
)),153:(10,0,10,(
0b0000000000,
0b0000000000,
0b1110100010,
0b0100110110,
0b0100101010,
0b0000000000,
0b0000000000,
0b0000000000,
0b0000000000,
0b0000000000,
0b0000000000
)),154:(4,0,4,(
0b0000,
0b1010,
0b0100,
0b0000,
0b0110,
0b1000,
0b1110,
0b0010,
0b1100,
0b0000,
0b0000
)),155:(4,0,4,(
0b0000,
0b0000,
0b0000,
0b1000,
0b0100,
0b0010,
0b0100,
0b1000,
0b0000,
0b0000,
0b0000
)),156:(6,0,6,(
0b000000,
0b000000,
0b000000,
0b000000,
0b011100,
0b101010,
0b101110,
0b101000,
0b011110,
0b000000,
0b000000
)),157:(7,0,7,(
0b0000000,
0b0000000,
0b0000000,
0b0000010,
0b0000100,
0b0001000,
0b0010000,
0b1100000,
0b1100000,
0b0000000,
0b0000000
)),158:(6,0,6,(
0b000000,
0b001000,
0b010100,
0b010100,
0b010100,
0b001000,
0b010100,
0b110010,
0b110010,
0b000000,
0b000000
)),159:(4,0,4,(
0b0000,
0b1010,
0b0000,
0b1010,
0b1010,
0b1010,
0b0100,
0b0100,
0b0100,
0b0000,
0b0000
)),160:(2,0,2,(
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00
)),161:(2,0,2,(
0b00,
0b00,
0b00,
0b10,
0b00,
0b10,
0b10,
0b10,
0b10,
0b10,
0b00
)),162:(5,0,5,(
0b00000,
0b00000,
0b00100,
0b01110,
0b10100,
0b10100,
0b10100,
0b01110,
0b00100,
0b00000,
0b00000
)),163:(5,0,5,(
0b00000,
0b00000,
0b00110,
0b01000,
0b01000,
0b11100,
0b01000,
0b01000,
0b11000,
0b00110,
0b00000
)),164:(6,0,6,(
0b000000,
0b000000,
0b101010,
0b010100,
0b010100,
0b100010,
0b010100,
0b010100,
0b101010,
0b000000,
0b000000
)),165:(4,0,4,(
0b0000,
0b0000,
0b1010,
0b1010,
0b0100,
0b1110,
0b0100,
0b1110,
0b0100,
0b0000,
0b0000
)),166:(2,0,2,(
0b00,
0b10,
0b10,
0b10,
0b10,
0b00,
0b10,
0b10,
0b10,
0b10,
0b00
)),167:(4,0,4,(
0b0000,
0b0100,
0b1010,
0b1000,
0b0100,
0b1010,
0b0100,
0b0010,
0b1010,
0b0100,
0b0000
)),168:(4,0,4,(
0b0000,
0b0000,
0b1010,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000
)),169:(8,0,8,(
0b00000000,
0b00000000,
0b00111000,
0b01000100,
0b10111010,
0b10100010,
0b10111010,
0b01000100,
0b00111000,
0b00000000,
0b00000000
)),170:(5,0,5,(
0b00000,
0b00000,
0b01110,
0b10010,
0b01110,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000
)),171:(6,0,6,(
0b000000,
0b000000,
0b000000,
0b000000,
0b001010,
0b010100,
0b101000,
0b010100,
0b001010,
0b000000,
0b000000
)),172:(5,0,5,(
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b11110,
0b00010,
0b00010,
0b00000,
0b00000,
0b00000
)),173:(4,0,4,(
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b1110,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000
)),174:(8,0,8,(
0b00000000,
0b00000000,
0b00111000,
0b01000100,
0b10111010,
0b10110010,
0b10101010,
0b01000100,
0b00111000,
0b00000000,
0b00000000
)),175:(5,0,5,(
0b00000,
0b00000,
0b11110,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000
)),176:(4,0,4,(
0b0000,
0b0100,
0b1010,
0b1010,
0b0100,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000
)),177:(4,0,4,(
0b0000,
0b0000,
0b0100,
0b0100,
0b1110,
0b0100,
0b0100,
0b1110,
0b0000,
0b0000,
0b0000
)),178:(4,0,4,(
0b0000,
0b0000,
0b1110,
0b0010,
0b0100,
0b1110,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000
)),179:(4,0,4,(
0b0000,
0b0000,
0b1110,
0b0100,
0b0010,
0b1110,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000
)),180:(3,0,3,(
0b000,
0b010,
0b100,
0b000,
0b000,
0b000,
0b000,
0b000,
0b000,
0b000,
0b000
)),181:(4,0,4,(
0b0000,
0b0000,
0b0000,
0b1010,
0b1010,
0b1010,
0b1010,
0b1110,
0b1000,
0b1000,
0b0000
)),182:(5,0,5,(
0b00000,
0b00000,
0b01110,
0b11010,
0b11010,
0b11010,
0b01010,
0b01010,
0b01010,
0b00000,
0b00000
)),183:(2,0,2,(
0b00,
0b00,
0b00,
0b00,
0b00,
0b10,
0b00,
0b00,
0b00,
0b00,
0b00
)),184:(4,0,4,(
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0100,
0b0010,
0b1100
)),185:(2,0,2,(
0b00,
0b00,
0b10,
0b10,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00
)),186:(4,0,4,(
0b0000,
0b0000,
0b0100,
0b1010,
0b0100,
0b0000,
0b1110,
0b0000,
0b0000,
0b0000,
0b0000
)),187:(6,0,6,(
0b000000,
0b000000,
0b000000,
0b000000,
0b101000,
0b010100,
0b001010,
0b010100,
0b101000,
0b000000,
0b000000
)),188:(7,0,7,(
0b0000000,
0b0100000,
0b0100100,
0b0101000,
0b0010000,
0b0010100,
0b0101100,
0b1011110,
0b0000100,
0b0000000,
0b0000000
)),189:(7,0,7,(
0b0000000,
0b0100000,
0b0100100,
0b0101000,
0b0010000,
0b0011100,
0b0100010,
0b1000100,
0b0001110,
0b0000000,
0b0000000
)),190:(7,0,7,(
0b0000000,
0b1110000,
0b0110010,
0b0010100,
0b1111000,
0b0001010,
0b0010110,
0b0101110,
0b0000010,
0b0000000,
0b0000000
)),191:(4,0,4,(
0b0000,
0b0000,
0b0100,
0b0000,
0b0100,
0b0100,
0b1000,
0b1010,
0b0100,
0b0000,
0b0000
)),192:(4,0,4,(
0b1000,
0b0100,
0b0000,
0b0100,
0b1010,
0b1010,
0b1110,
0b1010,
0b1010,
0b0000,
0b0000
)),193:(4,0,4,(
0b0010,
0b0100,
0b0000,
0b0100,
0b1010,
0b1010,
0b1110,
0b1010,
0b1010,
0b0000,
0b0000
)),194:(4,0,4,(
0b0100,
0b1010,
0b0000,
0b0100,
0b1010,
0b1010,
0b1110,
0b1010,
0b1010,
0b0000,
0b0000
)),195:(4,0,4,(
0b0101,
0b1010,
0b0000,
0b0100,
0b1010,
0b1010,
0b1110,
0b1010,
0b1010,
0b0000,
0b0000
)),196:(4,0,4,(
0b0000,
0b1010,
0b0000,
0b0100,
0b1010,
0b1010,
0b1110,
0b1010,
0b1010,
0b0000,
0b0000
)),197:(4,0,4,(
0b0100,
0b1010,
0b0100,
0b0100,
0b1010,
0b1010,
0b1110,
0b1010,
0b1010,
0b0000,
0b0000
)),198:(5,0,5,(
0b00000,
0b00000,
0b01110,
0b10100,
0b10100,
0b11110,
0b10100,
0b10100,
0b10110,
0b00000,
0b00000
)),199:(4,0,4,(
0b0000,
0b0000,
0b0000,
0b0110,
0b1000,
0b1000,
0b1000,
0b1000,
0b0110,
0b0100,
0b1000
)),200:(4,0,4,(
0b1000,
0b0100,
0b0000,
0b1110,
0b1000,
0b1100,
0b1000,
0b1000,
0b1110,
0b0000,
0b0000
)),201:(4,0,4,(
0b0010,
0b0100,
0b0000,
0b1110,
0b1000,
0b1100,
0b1000,
0b1000,
0b1110,
0b0000,
0b0000
)),202:(4,0,4,(
0b0100,
0b1010,
0b0000,
0b1110,
0b1000,
0b1100,
0b1000,
0b1000,
0b1110,
0b0000,
0b0000
)),203:(4,0,4,(
0b0000,
0b1010,
0b0000,
0b1110,
0b1000,
0b1100,
0b1000,
0b1000,
0b1110,
0b0000,
0b0000
)),204:(3,0,3,(
0b100,
0b010,
0b000,
0b010,
0b010,
0b010,
0b010,
0b010,
0b010,
0b000,
0b000
)),205:(2,0,2,(
0b01,
0b10,
0b00,
0b10,
0b10,
0b10,
0b10,
0b10,
0b10,
0b00,
0b00
)),206:(3,0,3,(
0b010,
0b101,
0b000,
0b010,
0b010,
0b010,
0b010,
0b010,
0b010,
0b000,
0b000
)),207:(3,0,3,(
0b000,
0b101,
0b000,
0b010,
0b010,
0b010,
0b010,
0b010,
0b010,
0b000,
0b000
)),208:(6,0,6,(
0b000000,
0b000000,
0b000000,
0b011100,
0b010010,
0b111010,
0b010010,
0b010010,
0b011100,
0b000000,
0b000000
)),209:(5,0,5,(
0b01010,
0b10100,
0b00000,
0b10010,
0b11010,
0b11110,
0b10110,
0b10010,
0b10010,
0b00000,
0b00000
)),210:(4,0,4,(
0b1000,
0b0100,
0b0000,
0b0100,
0b1010,
0b1010,
0b1010,
0b1010,
0b0100,
0b0000,
0b0000
)),211:(4,0,4,(
0b0010,
0b0100,
0b0000,
0b0100,
0b1010,
0b1010,
0b1010,
0b1010,
0b0100,
0b0000,
0b0000
)),212:(4,0,4,(
0b0100,
0b1010,
0b0000,
0b0100,
0b1010,
0b1010,
0b1010,
0b1010,
0b0100,
0b0000,
0b0000
)),213:(4,0,4,(
0b0101,
0b1010,
0b0000,
0b0100,
0b1010,
0b1010,
0b1010,
0b1010,
0b0100,
0b0000,
0b0000
)),214:(4,0,4,(
0b0000,
0b1010,
0b0000,
0b0100,
0b1010,
0b1010,
0b1010,
0b1010,
0b0100,
0b0000,
0b0000
)),215:(4,0,4,(
0b0000,
0b0000,
0b0000,
0b0000,
0b1010,
0b0100,
0b0100,
0b1010,
0b0000,
0b0000,
0b0000
)),216:(6,0,6,(
0b000000,
0b000000,
0b000000,
0b001101,
0b010010,
0b010110,
0b011010,
0b010010,
0b101100,
0b000000,
0b000000
)),217:(4,0,4,(
0b1000,
0b0100,
0b0000,
0b1010,
0b1010,
0b1010,
0b1010,
0b1010,
0b0110,
0b0000,
0b0000
)),218:(4,0,4,(
0b0010,
0b0100,
0b0000,
0b1010,
0b1010,
0b1010,
0b1010,
0b1010,
0b0110,
0b0000,
0b0000
)),219:(4,0,4,(
0b0100,
0b1010,
0b0000,
0b1010,
0b1010,
0b1010,
0b1010,
0b1010,
0b0110,
0b0000,
0b0000
)),220:(4,0,4,(
0b0000,
0b1010,
0b0000,
0b1010,
0b1010,
0b1010,
0b1010,
0b1010,
0b0110,
0b0000,
0b0000
)),221:(4,0,4,(
0b0010,
0b0100,
0b0000,
0b1010,
0b1010,
0b1010,
0b0100,
0b0100,
0b0100,
0b0000,
0b0000
)),222:(4,0,4,(
0b0000,
0b0000,
0b1000,
0b1100,
0b1010,
0b1010,
0b1100,
0b1000,
0b1000,
0b0000,
0b0000
)),223:(5,0,5,(
0b00000,
0b00000,
0b01100,
0b10010,
0b10100,
0b10100,
0b10010,
0b10010,
0b10010,
0b00100,
0b01000
)),224:(4,0,4,(
0b0000,
0b1000,
0b0100,
0b0000,
0b1100,
0b0010,
0b0110,
0b1010,
0b1110,
0b0000,
0b0000
)),225:(4,0,4,(
0b0000,
0b0010,
0b0100,
0b0000,
0b1100,
0b0010,
0b0110,
0b1010,
0b1110,
0b0000,
0b0000
)),226:(4,0,4,(
0b0000,
0b0100,
0b1010,
0b0000,
0b1100,
0b0010,
0b0110,
0b1010,
0b1110,
0b0000,
0b0000
)),227:(4,0,4,(
0b0000,
0b0101,
0b1010,
0b0000,
0b1100,
0b0010,
0b0110,
0b1010,
0b1110,
0b0000,
0b0000
)),228:(4,0,4,(
0b0000,
0b0000,
0b1010,
0b0000,
0b1100,
0b0010,
0b0110,
0b1010,
0b1110,
0b0000,
0b0000
)),229:(4,0,4,(
0b0100,
0b1010,
0b0100,
0b0000,
0b1100,
0b0010,
0b0110,
0b1010,
0b1110,
0b0000,
0b0000
)),230:(6,0,6,(
0b000000,
0b000000,
0b000000,
0b000000,
0b110100,
0b001010,
0b011110,
0b101000,
0b111110,
0b000000,
0b000000
)),231:(4,0,4,(
0b0000,
0b0000,
0b0000,
0b0000,
0b0110,
0b1000,
0b1000,
0b1000,
0b0110,
0b0100,
0b1000
)),232:(4,0,4,(
0b0000,
0b1000,
0b0100,
0b0000,
0b0100,
0b1010,
0b1110,
0b1000,
0b0110,
0b0000,
0b0000
)),233:(4,0,4,(
0b0000,
0b0010,
0b0100,
0b0000,
0b0100,
0b1010,
0b1110,
0b1000,
0b0110,
0b0000,
0b0000
)),234:(4,0,4,(
0b0000,
0b0100,
0b1010,
0b0000,
0b0100,
0b1010,
0b1110,
0b1000,
0b0110,
0b0000,
0b0000
)),235:(4,0,4,(
0b0000,
0b0000,
0b1010,
0b0000,
0b0100,
0b1010,
0b1110,
0b1000,
0b0110,
0b0000,
0b0000
)),236:(3,0,3,(
0b000,
0b100,
0b010,
0b000,
0b010,
0b010,
0b010,
0b010,
0b010,
0b000,
0b000
)),237:(2,0,2,(
0b00,
0b01,
0b10,
0b00,
0b10,
0b10,
0b10,
0b10,
0b10,
0b00,
0b00
)),238:(3,0,3,(
0b000,
0b010,
0b101,
0b000,
0b010,
0b010,
0b010,
0b010,
0b010,
0b000,
0b000
)),239:(3,0,3,(
0b000,
0b101,
0b000,
0b000,
0b010,
0b010,
0b010,
0b010,
0b010,
0b000,
0b000
)),240:(5,0,5,(
0b00000,
0b00000,
0b11000,
0b11000,
0b00100,
0b01100,
0b10010,
0b10010,
0b01100,
0b00000,
0b00000
)),241:(4,0,4,(
0b0000,
0b0101,
0b1010,
0b0000,
0b1100,
0b1010,
0b1010,
0b1010,
0b1010,
0b0000,
0b0000
)),242:(4,0,4,(
0b0000,
0b1000,
0b0100,
0b0000,
0b0100,
0b1010,
0b1010,
0b1010,
0b0100,
0b0000,
0b0000
)),243:(4,0,4,(
0b0000,
0b0010,
0b0100,
0b0000,
0b0100,
0b1010,
0b1010,
0b1010,
0b0100,
0b0000,
0b0000
)),244:(4,0,4,(
0b0000,
0b0100,
0b1010,
0b0000,
0b0100,
0b1010,
0b1010,
0b1010,
0b0100,
0b0000,
0b0000
)),245:(4,0,4,(
0b0000,
0b0101,
0b1010,
0b0000,
0b0100,
0b1010,
0b1010,
0b1010,
0b0100,
0b0000,
0b0000
)),246:(4,0,4,(
0b0000,
0b0000,
0b1010,
0b0000,
0b0100,
0b1010,
0b1010,
0b1010,
0b0100,
0b0000,
0b0000
)),247:(4,0,4,(
0b0000,
0b0000,
0b0000,
0b0100,
0b0000,
0b1110,
0b0000,
0b0100,
0b0000,
0b0000,
0b0000
)),248:(6,0,6,(
0b000000,
0b000000,
0b000000,
0b000000,
0b001010,
0b010100,
0b011100,
0b010100,
0b101000,
0b000000,
0b000000
)),249:(4,0,4,(
0b0000,
0b1000,
0b0100,
0b0000,
0b1010,
0b1010,
0b1010,
0b1010,
0b0110,
0b0000,
0b0000
)),250:(4,0,4,(
0b0000,
0b0010,
0b0100,
0b0000,
0b1010,
0b1010,
0b1010,
0b1010,
0b0110,
0b0000,
0b0000
)),251:(4,0,4,(
0b0000,
0b0100,
0b1010,
0b0000,
0b1010,
0b1010,
0b1010,
0b1010,
0b0110,
0b0000,
0b0000
)),252:(4,0,4,(
0b0000,
0b0000,
0b1010,
0b0000,
0b1010,
0b1010,
0b1010,
0b1010,
0b0110,
0b0000,
0b0000
)),253:(4,0,4,(
0b0000,
0b0010,
0b0100,
0b0000,
0b1010,
0b1010,
0b1010,
0b0100,
0b0100,
0b0100,
0b1000
)),254:(4,0,4,(
0b0000,
0b0000,
0b1000,
0b1000,
0b1100,
0b1010,
0b1010,
0b1010,
0b1100,
0b1000,
0b1000
)),255:(4,0,4,(
0b0000,
0b0000,
0b1010,
0b0000,
0b1010,
0b1010,
0b1010,
0b0100,
0b0100,
0b1000,
0b1000
)),}
# generated by fontconv
#fontType 36864
#firstChar 9
#lastChar 255
#maxWidth 8
#kernMax 0
#nDescent 0
#fRectWidth 8
#fRectHeight 9
#ascent 7
#descent 2
#leading 0
#averageWidth 4.26
FONTS['thin9pt'] = {
9:(2,0,2,(
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00
)),20:(8,0,8,(
0b01100000,
0b11110000,
0b10010010,
0b11110100,
0b01101000,
0b11100110,
0b01101000,
0b11100100,
0b00000010
)),21:(5,0,5,(
0b00100,
0b01000,
0b10000,
0b00000,
0b11010,
0b00000,
0b10000,
0b01000,
0b00100
)),22:(7,0,7,(
0b0000000,
0b0000000,
0b0000010,
0b0000100,
0b0001000,
0b0010000,
0b1100000,
0b1100000,
0b0000000
)),23:(6,0,6,(
0b001000,
0b010100,
0b010100,
0b010100,
0b001000,
0b010100,
0b110010,
0b110010,
0b000000
)),24:(6,0,6,(
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b101010,
0b000000
)),25:(4,0,4,(
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000
)),32:(2,0,2,(
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00
)),33:(2,0,2,(
0b00,
0b10,
0b10,
0b10,
0b10,
0b10,
0b00,
0b10,
0b00
)),34:(4,0,4,(
0b0000,
0b1010,
0b1010,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000
)),35:(6,0,6,(
0b000000,
0b010100,
0b010100,
0b111110,
0b010100,
0b111110,
0b010100,
0b010100,
0b000000
)),36:(4,0,4,(
0b0100,
0b0110,
0b1000,
0b1100,
0b0110,
0b0010,
0b1100,
0b0100,
0b0000
)),37:(6,0,6,(
0b000000,
0b010010,
0b101010,
0b010100,
0b001000,
0b010100,
0b101010,
0b100100,
0b000000
)),38:(5,0,5,(
0b00000,
0b01000,
0b10100,
0b10100,
0b01010,
0b10100,
0b10100,
0b01010,
0b00000
)),39:(2,0,2,(
0b00,
0b10,
0b10,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00
)),40:(3,0,3,(
0b000,
0b010,
0b100,
0b100,
0b100,
0b100,
0b100,
0b010,
0b000
)),41:(3,0,3,(
0b000,
0b100,
0b010,
0b010,
0b010,
0b010,
0b010,
0b100,
0b000
)),42:(4,0,4,(
0b0000,
0b1010,
0b0100,
0b1110,
0b0100,
0b1010,
0b0000,
0b0000,
0b0000
)),43:(4,0,4,(
0b0000,
0b0000,
0b0100,
0b0100,
0b1110,
0b0100,
0b0100,
0b0000,
0b0000
)),44:(3,0,3,(
0b000,
0b000,
0b000,
0b000,
0b000,
0b000,
0b110,
0b010,
0b100
)),45:(4,0,4,(
0b0000,
0b0000,
0b0000,
0b0000,
0b1110,
0b0000,
0b0000,
0b0000,
0b0000
)),46:(2,0,2,(
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b10,
0b10,
0b00
)),47:(4,0,4,(
0b0000,
0b0010,
0b0010,
0b0100,
0b0100,
0b0100,
0b1000,
0b1000,
0b0000
)),48:(4,0,4,(
0b0000,
0b0100,
0b1010,
0b1010,
0b1010,
0b1010,
0b1010,
0b0100,
0b0000
)),49:(4,0,4,(
0b0000,
0b0100,
0b1100,
0b0100,
0b0100,
0b0100,
0b0100,
0b0100,
0b0000
)),50:(4,0,4,(
0b0000,
0b0100,
0b1010,
0b0010,
0b0010,
0b0100,
0b1000,
0b1110,
0b0000
)),51:(4,0,4,(
0b0000,
0b0100,
0b1010,
0b0010,
0b0100,
0b0010,
0b1010,
0b0100,
0b0000
)),52:(4,0,4,(
0b0000,
0b0010,
0b0110,
0b1010,
0b1010,
0b1110,
0b0010,
0b0010,
0b0000
)),53:(4,0,4,(
0b0000,
0b1110,
0b1000,
0b1000,
0b1100,
0b0010,
0b0010,
0b1100,
0b0000
)),54:(4,0,4,(
0b0000,
0b0100,
0b1010,
0b1000,
0b1100,
0b1010,
0b1010,
0b0100,
0b0000
)),55:(4,0,4,(
0b0000,
0b1110,
0b0010,
0b0010,
0b0010,
0b0100,
0b0100,
0b0100,
0b0000
)),56:(4,0,4,(
0b0000,
0b0100,
0b1010,
0b1010,
0b0100,
0b1010,
0b1010,
0b0100,
0b0000
)),57:(4,0,4,(
0b0000,
0b0100,
0b1010,
0b1010,
0b0110,
0b0010,
0b1010,
0b0100,
0b0000
)),58:(2,0,2,(
0b00,
0b00,
0b00,
0b10,
0b00,
0b00,
0b10,
0b00,
0b00
)),59:(3,0,3,(
0b000,
0b000,
0b000,
0b010,
0b000,
0b000,
0b010,
0b010,
0b100
)),60:(4,0,4,(
0b0000,
0b0000,
0b0010,
0b0100,
0b1000,
0b0100,
0b0010,
0b0000,
0b0000
)),61:(4,0,4,(
0b0000,
0b0000,
0b0000,
0b1110,
0b0000,
0b1110,
0b0000,
0b0000,
0b0000
)),62:(4,0,4,(
0b0000,
0b0000,
0b1000,
0b0100,
0b0010,
0b0100,
0b1000,
0b0000,
0b0000
)),63:(4,0,4,(
0b0000,
0b0100,
0b1010,
0b0010,
0b0100,
0b0100,
0b0000,
0b0100,
0b0000
)),64:(7,0,7,(
0b0000000,
0b0011000,
0b0100100,
0b1011010,
0b1101010,
0b1011100,
0b0100000,
0b0011100,
0b0000000
)),65:(4,0,4,(
0b0000,
0b0100,
0b1010,
0b1010,
0b1110,
0b1010,
0b1010,
0b1010,
0b0000
)),66:(4,0,4,(
0b0000,
0b1100,
0b1010,
0b1010,
0b1100,
0b1010,
0b1010,
0b1100,
0b0000
)),67:(4,0,4,(
0b0000,
0b0100,
0b1010,
0b1000,
0b1000,
0b1000,
0b1010,
0b0100,
0b0000
)),68:(4,0,4,(
0b0000,
0b1100,
0b1010,
0b1010,
0b1010,
0b1010,
0b1010,
0b1100,
0b0000
)),69:(4,0,4,(
0b0000,
0b1110,
0b1000,
0b1000,
0b1100,
0b1000,
0b1000,
0b1110,
0b0000
)),70:(4,0,4,(
0b0000,
0b1110,
0b1000,
0b1000,
0b1100,
0b1000,
0b1000,
0b1000,
0b0000
)),71:(4,0,4,(
0b0000,
0b0110,
0b1000,
0b1000,
0b1010,
0b1010,
0b1010,
0b0110,
0b0000
)),72:(4,0,4,(
0b0000,
0b1010,
0b1010,
0b1010,
0b1110,
0b1010,
0b1010,
0b1010,
0b0000
)),73:(2,0,2,(
0b00,
0b10,
0b10,
0b10,
0b10,
0b10,
0b10,
0b10,
0b00
)),74:(4,0,4,(
0b0000,
0b0010,
0b0010,
0b0010,
0b0010,
0b0010,
0b0010,
0b1100,
0b0000
)),75:(4,0,4,(
0b0000,
0b1010,
0b1010,
0b1100,
0b1100,
0b1010,
0b1010,
0b1010,
0b0000
)),76:(4,0,4,(
0b0000,
0b1000,
0b1000,
0b1000,
0b1000,
0b1000,
0b1000,
0b1110,
0b0000
)),77:(6,0,6,(
0b000000,
0b110110,
0b101010,
0b101010,
0b101010,
0b100010,
0b100010,
0b100010,
0b000000
)),78:(5,0,5,(
0b00000,
0b10010,
0b11010,
0b11110,
0b10110,
0b10010,
0b10010,
0b10010,
0b00000
)),79:(4,0,4,(
0b0000,
0b0110,
0b1010,
0b1010,
0b1010,
0b1010,
0b1010,
0b1100,
0b0000
)),80:(4,0,4,(
0b0000,
0b1100,
0b1010,
0b1010,
0b1100,
0b1000,
0b1000,
0b1000,
0b0000
)),81:(4,0,4,(
0b0000,
0b0110,
0b1010,
0b1010,
0b1010,
0b1010,
0b1010,
0b1100,
0b0010
)),82:(4,0,4,(
0b0000,
0b1100,
0b1010,
0b1010,
0b1100,
0b1010,
0b1010,
0b1010,
0b0000
)),83:(4,0,4,(
0b0000,
0b0110,
0b1000,
0b1000,
0b0100,
0b0010,
0b0010,
0b1100,
0b0000
)),84:(4,0,4,(
0b0000,
0b1110,
0b0100,
0b0100,
0b0100,
0b0100,
0b0100,
0b0100,
0b0000
)),85:(4,0,4,(
0b0000,
0b1010,
0b1010,
0b1010,
0b1010,
0b1010,
0b1010,
0b0110,
0b0000
)),86:(4,0,4,(
0b0000,
0b1010,
0b1010,
0b1010,
0b1010,
0b1010,
0b0100,
0b0100,
0b0000
)),87:(6,0,6,(
0b000000,
0b100010,
0b100010,
0b101010,
0b101010,
0b101010,
0b010100,
0b010100,
0b000000
)),88:(4,0,4,(
0b0000,
0b1010,
0b1010,
0b1010,
0b0100,
0b1010,
0b1010,
0b1010,
0b0000
)),89:(4,0,4,(
0b0000,
0b1010,
0b1010,
0b1010,
0b0100,
0b0100,
0b0100,
0b0100,
0b0000
)),90:(4,0,4,(
0b0000,
0b1110,
0b0010,
0b0100,
0b0100,
0b1000,
0b1000,
0b1110,
0b0000
)),91:(3,0,3,(
0b000,
0b110,
0b100,
0b100,
0b100,
0b100,
0b100,
0b110,
0b000
)),92:(4,0,4,(
0b0000,
0b1000,
0b1000,
0b0100,
0b0100,
0b0100,
0b0010,
0b0010,
0b0000
)),93:(3,0,3,(
0b000,
0b110,
0b010,
0b010,
0b010,
0b010,
0b010,
0b110,
0b000
)),94:(4,0,4,(
0b0000,
0b0100,
0b1010,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000
)),95:(4,0,4,(
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b1111,
0b0000
)),96:(3,0,3,(
0b000,
0b100,
0b010,
0b000,
0b000,
0b000,
0b000,
0b000,
0b000
)),97:(4,0,4,(
0b0000,
0b0000,
0b0000,
0b1100,
0b0010,
0b0110,
0b1010,
0b1110,
0b0000
)),98:(4,0,4,(
0b0000,
0b1000,
0b1000,
0b1100,
0b1010,
0b1010,
0b1010,
0b1110,
0b0000
)),99:(4,0,4,(
0b0000,
0b0000,
0b0000,
0b0110,
0b1000,
0b1000,
0b1000,
0b0110,
0b0000
)),100:(4,0,4,(
0b0000,
0b0010,
0b0010,
0b0110,
0b1010,
0b1010,
0b1010,
0b1110,
0b0000
)),101:(4,0,4,(
0b0000,
0b0000,
0b0000,
0b0100,
0b1010,
0b1110,
0b1000,
0b0110,
0b0000
)),102:(3,0,3,(
0b000,
0b011,
0b100,
0b110,
0b100,
0b100,
0b100,
0b100,
0b000
)),103:(4,0,4,(
0b0000,
0b0000,
0b0000,
0b0110,
0b1010,
0b1010,
0b1110,
0b0010,
0b1100
)),104:(4,0,4,(
0b0000,
0b1000,
0b1000,
0b1100,
0b1010,
0b1010,
0b1010,
0b1010,
0b0000
)),105:(2,0,2,(
0b00,
0b10,
0b00,
0b10,
0b10,
0b10,
0b10,
0b10,
0b00
)),106:(3,0,3,(
0b000,
0b010,
0b000,
0b010,
0b010,
0b010,
0b010,
0b010,
0b100
)),107:(4,0,4,(
0b0000,
0b1000,
0b1000,
0b1010,
0b1100,
0b1100,
0b1010,
0b1010,
0b0000
)),108:(2,0,2,(
0b00,
0b10,
0b10,
0b10,
0b10,
0b10,
0b10,
0b10,
0b00
)),109:(6,0,6,(
0b000000,
0b000000,
0b000000,
0b110100,
0b101010,
0b101010,
0b101010,
0b101010,
0b000000
)),110:(4,0,4,(
0b0000,
0b0000,
0b0000,
0b1100,
0b1010,
0b1010,
0b1010,
0b1010,
0b0000
)),111:(4,0,4,(
0b0000,
0b0000,
0b0000,
0b0100,
0b1010,
0b1010,
0b1010,
0b0100,
0b0000
)),112:(4,0,4,(
0b0000,
0b0000,
0b0000,
0b1100,
0b1010,
0b1010,
0b1010,
0b1110,
0b1000
)),113:(4,0,4,(
0b0000,
0b0000,
0b0000,
0b0110,
0b1010,
0b1010,
0b1010,
0b1110,
0b0010
)),114:(4,0,4,(
0b0000,
0b0000,
0b0000,
0b1010,
0b1100,
0b1000,
0b1000,
0b1000,
0b0000
)),115:(4,0,4,(
0b0000,
0b0000,
0b0000,
0b0110,
0b1000,
0b1110,
0b0010,
0b1100,
0b0000
)),116:(4,0,4,(
0b0000,
0b0000,
0b0100,
0b1110,
0b0100,
0b0100,
0b0100,
0b0010,
0b0000
)),117:(4,0,4,(
0b0000,
0b0000,
0b0000,
0b1010,
0b1010,
0b1010,
0b1010,
0b0110,
0b0000
)),118:(4,0,4,(
0b0000,
0b0000,
0b0000,
0b1010,
0b1010,
0b1010,
0b0100,
0b0100,
0b0000
)),119:(6,0,6,(
0b000000,
0b000000,
0b000000,
0b100010,
0b101010,
0b101010,
0b010100,
0b010100,
0b000000
)),120:(4,0,4,(
0b0000,
0b0000,
0b0000,
0b1010,
0b1010,
0b0100,
0b1010,
0b1010,
0b0000
)),121:(4,0,4,(
0b0000,
0b0000,
0b0000,
0b1010,
0b1010,
0b1010,
0b0100,
0b0100,
0b1000
)),122:(4,0,4,(
0b0000,
0b0000,
0b0000,
0b1110,
0b0010,
0b0100,
0b1000,
0b1110,
0b0000
)),123:(4,0,4,(
0b0000,
0b0010,
0b0100,
0b0100,
0b1000,
0b0100,
0b0100,
0b0010,
0b0000
)),124:(2,0,2,(
0b00,
0b10,
0b10,
0b10,
0b10,
0b10,
0b10,
0b10,
0b00
)),125:(4,0,4,(
0b0000,
0b1000,
0b0100,
0b0100,
0b0010,
0b0100,
0b0100,
0b1000,
0b0000
)),126:(5,0,5,(
0b00000,
0b00000,
0b00000,
0b01010,
0b10100,
0b00000,
0b00000,
0b00000,
0b00000
)),128:(6,0,6,(
0b000000,
0b001110,
0b010000,
0b111100,
0b010000,
0b111000,
0b010000,
0b001110,
0b000000
)),130:(3,0,3,(
0b000,
0b000,
0b000,
0b000,
0b000,
0b000,
0b110,
0b010,
0b100
)),131:(4,0,4,(
0b0000,
0b0010,
0b0100,
0b1110,
0b0100,
0b0100,
0b0100,
0b0100,
0b1000
)),132:(5,0,5,(
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b11110,
0b01010,
0b10100
)),133:(6,0,6,(
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b101010,
0b000000
)),134:(4,0,4,(
0b0000,
0b0100,
0b0100,
0b1110,
0b0100,
0b0100,
0b0100,
0b0100,
0b0100
)),135:(4,0,4,(
0b0000,
0b0100,
0b0100,
0b1110,
0b0100,
0b0100,
0b0100,
0b1110,
0b0100
)),136:(4,0,4,(
0b0000,
0b0100,
0b1010,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000
)),137:(8,0,8,(
0b00000000,
0b01001000,
0b10101000,
0b01010000,
0b00100000,
0b01010100,
0b10101010,
0b10010100,
0b00000000
)),138:(4,0,4,(
0b1010,
0b0100,
0b0000,
0b0110,
0b1000,
0b0100,
0b0010,
0b1100,
0b0000
)),139:(4,0,4,(
0b0000,
0b0000,
0b0010,
0b0100,
0b1000,
0b0100,
0b0010,
0b0000,
0b0000
)),140:(7,0,7,(
0b0000000,
0b0111110,
0b1001000,
0b1001000,
0b1001110,
0b1001000,
0b1001000,
0b1111110,
0b0000000
)),141:(8,0,8,(
0b00010000,
0b00111000,
0b01101100,
0b11000110,
0b10000010,
0b11000110,
0b01101100,
0b00111000,
0b00010000
)),142:(8,0,8,(
0b00111000,
0b00111000,
0b00010000,
0b11010110,
0b11111110,
0b11010110,
0b00010000,
0b00111000,
0b01111100
)),143:(8,0,8,(
0b01000100,
0b11101110,
0b10111010,
0b10010010,
0b10000010,
0b11000110,
0b01101100,
0b00111000,
0b00010000
)),144:(8,0,8,(
0b00010000,
0b00111000,
0b01111100,
0b11111110,
0b11111110,
0b11111110,
0b01010100,
0b00111000,
0b01111100
)),145:(3,0,3,(
0b000,
0b010,
0b100,
0b110,
0b000,
0b000,
0b000,
0b000,
0b000
)),146:(3,0,3,(
0b000,
0b110,
0b010,
0b100,
0b000,
0b000,
0b000,
0b000,
0b000
)),147:(5,0,5,(
0b00000,
0b01010,
0b10100,
0b11110,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000
)),148:(5,0,5,(
0b00000,
0b11110,
0b01010,
0b10100,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000
)),149:(3,0,3,(
0b000,
0b000,
0b000,
0b000,
0b110,
0b110,
0b000,
0b000,
0b000
)),150:(4,0,4,(
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b1111,
0b0000,
0b0000,
0b0000
)),151:(6,0,6,(
0b000000,
0b000000,
0b000000,
0b000000,
0b000000,
0b111111,
0b000000,
0b000000,
0b000000
)),152:(5,0,5,(
0b00000,
0b00000,
0b00000,
0b01010,
0b10100,
0b00000,
0b00000,
0b00000,
0b00000
)),153:(7,0,7,(
0b0000000,
0b1111010,
0b0101110,
0b0101010,
0b0000000,
0b0000000,
0b0000000,
0b0000000,
0b0000000
)),154:(4,0,4,(
0b1010,
0b0100,
0b0000,
0b0110,
0b1000,
0b0100,
0b0010,
0b1100,
0b0000
)),155:(4,0,4,(
0b0000,
0b0000,
0b1000,
0b0100,
0b0010,
0b0100,
0b1000,
0b0000,
0b0000
)),156:(6,0,6,(
0b000000,
0b000000,
0b000000,
0b011100,
0b101010,
0b101110,
0b101000,
0b011110,
0b000000
)),157:(7,0,7,(
0b0000000,
0b0000000,
0b0000010,
0b0000100,
0b0001000,
0b0010000,
0b1100000,
0b1100000,
0b0000000
)),158:(6,0,6,(
0b001000,
0b010100,
0b010100,
0b010100,
0b001000,
0b010100,
0b110010,
0b110010,
0b000000
)),159:(4,0,4,(
0b1010,
0b0000,
0b1010,
0b1010,
0b1010,
0b0100,
0b0100,
0b0100,
0b0000
)),160:(2,0,2,(
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00
)),161:(2,0,2,(
0b00,
0b00,
0b10,
0b00,
0b10,
0b10,
0b10,
0b10,
0b10
)),162:(5,0,5,(
0b00000,
0b00100,
0b01110,
0b10100,
0b10100,
0b10100,
0b01110,
0b00100,
0b00000
)),163:(5,0,5,(
0b00000,
0b00110,
0b01000,
0b01000,
0b11100,
0b01000,
0b01000,
0b11000,
0b00110
)),164:(6,0,6,(
0b000000,
0b101010,
0b010100,
0b010100,
0b100010,
0b010100,
0b010100,
0b101010,
0b000000
)),165:(4,0,4,(
0b0000,
0b1010,
0b1010,
0b0100,
0b1110,
0b0100,
0b1110,
0b0100,
0b0000
)),166:(2,0,2,(
0b10,
0b10,
0b10,
0b10,
0b00,
0b10,
0b10,
0b10,
0b10
)),167:(4,0,4,(
0b0100,
0b1010,
0b1000,
0b0100,
0b1010,
0b0100,
0b0010,
0b1010,
0b0100
)),168:(4,0,4,(
0b0000,
0b1010,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000
)),169:(8,0,8,(
0b00000000,
0b00111000,
0b01000100,
0b10111010,
0b10100010,
0b10111010,
0b01000100,
0b00111000,
0b00000000
)),170:(5,0,5,(
0b00000,
0b01110,
0b10010,
0b01110,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000
)),171:(6,0,6,(
0b000000,
0b000000,
0b001010,
0b010100,
0b101000,
0b010100,
0b001010,
0b000000,
0b000000
)),172:(5,0,5,(
0b00000,
0b00000,
0b00000,
0b00000,
0b11110,
0b00010,
0b00010,
0b00000,
0b00000
)),173:(4,0,4,(
0b0000,
0b0000,
0b0000,
0b0000,
0b1110,
0b0000,
0b0000,
0b0000,
0b0000
)),174:(8,0,8,(
0b00000000,
0b00111000,
0b01000100,
0b10111010,
0b10110010,
0b10101010,
0b01000100,
0b00111000,
0b00000000
)),175:(5,0,5,(
0b00000,
0b11110,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000
)),176:(4,0,4,(
0b0100,
0b1010,
0b1010,
0b0100,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000
)),177:(4,0,4,(
0b0000,
0b0100,
0b0100,
0b1110,
0b0100,
0b0100,
0b1110,
0b0000,
0b0000
)),178:(4,0,4,(
0b0000,
0b1100,
0b0010,
0b0100,
0b1110,
0b0000,
0b0000,
0b0000,
0b0000
)),179:(4,0,4,(
0b0000,
0b1110,
0b0100,
0b0010,
0b1110,
0b0000,
0b0000,
0b0000,
0b0000
)),180:(3,0,3,(
0b010,
0b100,
0b000,
0b000,
0b000,
0b000,
0b000,
0b000,
0b000
)),181:(4,0,4,(
0b0000,
0b0000,
0b1010,
0b1010,
0b1010,
0b1010,
0b1110,
0b1000,
0b1000
)),182:(5,0,5,(
0b00000,
0b00000,
0b01110,
0b11010,
0b11010,
0b01010,
0b01010,
0b01010,
0b00000
)),183:(2,0,2,(
0b00,
0b00,
0b00,
0b00,
0b10,
0b00,
0b00,
0b00,
0b00
)),184:(4,0,4,(
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0000,
0b0100,
0b0010,
0b1100
)),185:(2,0,2,(
0b00,
0b10,
0b10,
0b00,
0b00,
0b00,
0b00,
0b00,
0b00
)),186:(4,0,4,(
0b0000,
0b0100,
0b1010,
0b0100,
0b0000,
0b1110,
0b0000,
0b0000,
0b0000
)),187:(6,0,6,(
0b000000,
0b000000,
0b000000,
0b101000,
0b010100,
0b001010,
0b010100,
0b101000,
0b000000
)),188:(7,0,7,(
0b0100000,
0b0100100,
0b0101000,
0b0010000,
0b0010100,
0b0101100,
0b1011110,
0b0000100,
0b0000000
)),189:(7,0,7,(
0b0100000,
0b0100100,
0b0101000,
0b0010000,
0b0011100,
0b0100010,
0b1000100,
0b0001110,
0b0000000
)),190:(7,0,7,(
0b1110000,
0b0110010,
0b0010100,
0b1111000,
0b0001010,
0b0010110,
0b0101110,
0b0000010,
0b0000000
)),191:(4,0,4,(
0b0000,
0b0100,
0b0000,
0b0100,
0b0100,
0b1000,
0b1010,
0b0100,
0b0000
)),192:(4,0,4,(
0b1000,
0b0100,
0b0000,
0b0100,
0b1010,
0b1110,
0b1010,
0b1010,
0b0000
)),193:(4,0,4,(
0b0010,
0b0100,
0b0000,
0b0100,
0b1010,
0b1110,
0b1010,
0b1010,
0b0000
)),194:(4,0,4,(
0b0100,
0b1010,
0b0000,
0b0100,
0b1010,
0b1110,
0b1010,
0b1010,
0b0000
)),195:(4,0,4,(
0b0101,
0b1010,
0b0000,
0b0100,
0b1010,
0b1110,
0b1010,
0b1010,
0b0000
)),196:(4,0,4,(
0b0000,
0b1010,
0b0000,
0b0100,
0b1010,
0b1110,
0b1010,
0b1010,
0b0000
)),197:(4,0,4,(
0b0100,
0b1010,
0b0100,
0b0100,
0b1010,
0b1110,
0b1010,
0b1010,
0b0000
)),198:(5,0,5,(
0b00000,
0b01110,
0b10100,
0b10100,
0b11110,
0b10100,
0b10100,
0b10110,
0b00000
)),199:(4,0,4,(
0b0000,
0b0000,
0b0110,
0b1000,
0b1000,
0b1000,
0b1000,
0b0110,
0b1100
)),200:(4,0,4,(
0b1000,
0b0100,
0b0000,
0b1110,
0b1000,
0b1100,
0b1000,
0b1110,
0b0000
)),201:(4,0,4,(
0b0010,
0b0100,
0b0000,
0b1110,
0b1000,
0b1100,
0b1000,
0b1110,
0b0000
)),202:(4,0,4,(
0b0100,
0b1010,
0b0000,
0b1110,
0b1000,
0b1100,
0b1000,
0b1110,
0b0000
)),203:(4,0,4,(
0b0000,
0b1010,
0b0000,
0b1110,
0b1000,
0b1100,
0b1000,
0b1110,
0b0000
)),204:(3,0,3,(
0b100,
0b010,
0b000,
0b010,
0b010,
0b010,
0b010,
0b010,
0b000
)),205:(2,0,2,(
0b01,
0b10,
0b00,
0b10,
0b10,
0b10,
0b10,
0b10,
0b00
)),206:(3,0,3,(
0b010,
0b101,
0b000,
0b010,
0b010,
0b010,
0b010,
0b010,
0b000
)),207:(3,0,3,(
0b000,
0b101,
0b000,
0b010,
0b010,
0b010,
0b010,
0b010,
0b000
)),208:(6,0,6,(
0b000000,
0b000000,
0b011100,
0b010010,
0b111010,
0b010010,
0b010010,
0b011100,
0b000000
)),209:(5,0,5,(
0b01010,
0b10100,
0b00000,
0b10010,
0b11010,
0b10110,
0b10010,
0b10010,
0b00000
)),210:(4,0,4,(
0b1000,
0b0100,
0b0000,
0b0100,
0b1010,
0b1010,
0b1010,
0b0100,
0b0000
)),211:(4,0,4,(
0b0010,
0b0100,
0b0000,
0b0100,
0b1010,
0b1010,
0b1010,
0b0100,
0b0000
)),212:(4,0,4,(
0b0100,
0b1010,
0b0000,
0b0100,
0b1010,
0b1010,
0b1010,
0b0100,
0b0000
)),213:(4,0,4,(
0b0101,
0b1010,
0b0000,
0b0100,
0b1010,
0b1010,
0b1010,
0b0100,
0b0000
)),214:(4,0,4,(
0b0000,
0b1010,
0b0000,
0b0100,
0b1010,
0b1010,
0b1010,
0b0100,
0b0000
)),215:(5,0,5,(
0b00000,
0b00000,
0b00000,
0b10010,
0b01100,
0b01100,
0b10010,
0b00000,
0b00000
)),216:(6,0,6,(
0b000000,
0b000000,
0b001101,
0b010010,
0b010110,
0b011010,
0b010010,
0b101100,
0b000000
)),217:(4,0,4,(
0b1000,
0b0100,
0b0000,
0b1010,
0b1010,
0b1010,
0b1010,
0b0110,
0b0000
)),218:(4,0,4,(
0b0010,
0b0100,
0b0000,
0b1010,
0b1010,
0b1010,
0b1010,
0b0110,
0b0000
)),219:(4,0,4,(
0b0100,
0b1010,
0b0000,
0b1010,
0b1010,
0b1010,
0b1010,
0b0110,
0b0000
)),220:(4,0,4,(
0b0000,
0b1010,
0b0000,
0b1010,
0b1010,
0b1010,
0b1010,
0b0110,
0b0000
)),221:(4,0,4,(
0b0010,
0b0100,
0b0000,
0b1010,
0b1010,
0b0100,
0b0100,
0b0100,
0b0000
)),222:(4,0,4,(
0b0000,
0b1000,
0b1100,
0b1010,
0b1010,
0b1100,
0b1000,
0b1000,
0b0000
)),223:(5,0,5,(
0b00000,
0b01100,
0b10010,
0b10100,
0b10100,
0b10010,
0b10010,
0b10010,
0b00100
)),224:(4,0,4,(
0b1000,
0b0100,
0b0000,
0b1100,
0b0010,
0b0110,
0b1010,
0b1110,
0b0000
)),225:(4,0,4,(
0b0100,
0b1000,
0b0000,
0b1100,
0b0010,
0b0110,
0b1010,
0b1110,
0b0000
)),226:(4,0,4,(
0b0100,
0b1010,
0b0000,
0b1100,
0b0010,
0b0110,
0b1010,
0b1110,
0b0000
)),227:(4,0,4,(
0b0101,
0b1010,
0b0000,
0b1100,
0b0010,
0b0110,
0b1010,
0b1110,
0b0000
)),228:(4,0,4,(
0b0000,
0b1010,
0b0000,
0b1100,
0b0010,
0b0110,
0b1010,
0b1110,
0b0000
)),229:(4,0,4,(
0b0100,
0b1010,
0b0100,
0b1100,
0b0010,
0b0110,
0b1010,
0b1110,
0b0000
)),230:(6,0,6,(
0b000000,
0b000000,
0b000000,
0b110100,
0b001010,
0b011110,
0b101000,
0b111110,
0b000000
)),231:(4,0,4,(
0b0000,
0b0000,
0b0000,
0b0110,
0b1000,
0b1000,
0b1000,
0b0110,
0b1100
)),232:(4,0,4,(
0b0100,
0b0010,
0b0000,
0b0100,
0b1010,
0b1110,
0b1000,
0b0110,
0b0000
)),233:(4,0,4,(
0b0010,
0b0100,
0b0000,
0b0100,
0b1010,
0b1110,
0b1000,
0b0110,
0b0000
)),234:(4,0,4,(
0b0100,
0b1010,
0b0000,
0b0100,
0b1010,
0b1110,
0b1000,
0b0110,
0b0000
)),235:(4,0,4,(
0b0000,
0b1010,
0b0000,
0b0100,
0b1010,
0b1110,
0b1000,
0b0110,
0b0000
)),236:(2,0,2,(
0b10,
0b01,
0b00,
0b10,
0b10,
0b10,
0b10,
0b10,
0b00
)),237:(2,0,2,(
0b01,
0b10,
0b00,
0b10,
0b10,
0b10,
0b10,
0b10,
0b00
)),238:(3,0,3,(
0b010,
0b101,
0b000,
0b010,
0b010,
0b010,
0b010,
0b010,
0b000
)),239:(3,0,3,(
0b000,
0b101,
0b000,
0b010,
0b010,
0b010,
0b010,
0b010,
0b000
)),240:(5,0,5,(
0b00000,
0b11000,
0b11000,
0b00100,
0b01100,
0b10010,
0b10010,
0b01100,
0b00000
)),241:(4,0,4,(
0b0101,
0b1010,
0b0000,
0b1100,
0b1010,
0b1010,
0b1010,
0b1010,
0b0000
)),242:(4,0,4,(
0b1000,
0b0100,
0b0000,
0b0100,
0b1010,
0b1010,
0b1010,
0b0100,
0b0000
)),243:(4,0,4,(
0b0010,
0b0100,
0b0000,
0b0100,
0b1010,
0b1010,
0b1010,
0b0100,
0b0000
)),244:(4,0,4,(
0b0100,
0b1010,
0b0000,
0b0100,
0b1010,
0b1010,
0b1010,
0b0100,
0b0000
)),245:(4,0,4,(
0b0101,
0b1010,
0b0000,
0b0100,
0b1010,
0b1010,
0b1010,
0b0100,
0b0000
)),246:(4,0,4,(
0b0000,
0b1010,
0b0000,
0b0100,
0b1010,
0b1010,
0b1010,
0b0100,
0b0000
)),247:(4,0,4,(
0b0000,
0b0000,
0b0100,
0b0000,
0b1110,
0b0000,
0b0100,
0b0000,
0b0000
)),248:(6,0,6,(
0b000000,
0b000000,
0b000000,
0b001010,
0b010100,
0b011100,
0b010100,
0b101000,
0b000000
)),249:(4,0,4,(
0b1000,
0b0100,
0b0000,
0b1010,
0b1010,
0b1010,
0b1010,
0b0110,
0b0000
)),250:(4,0,4,(
0b0010,
0b0100,
0b0000,
0b1010,
0b1010,
0b1010,
0b1010,
0b0110,
0b0000
)),251:(4,0,4,(
0b0100,
0b1010,
0b0000,
0b1010,
0b1010,
0b1010,
0b1010,
0b0110,
0b0000
)),252:(4,0,4,(
0b0000,
0b1010,
0b0000,
0b1010,
0b1010,
0b1010,
0b1010,
0b0110,
0b0000
)),253:(4,0,4,(
0b0010,
0b0100,
0b0000,
0b1010,
0b1010,
0b1010,
0b0100,
0b0100,
0b1000
)),254:(4,0,4,(
0b0000,
0b0000,
0b1000,
0b1100,
0b1010,
0b1010,
0b1010,
0b1100,
0b1000
)),255:(4,0,4,(
0b0000,
0b1010,
0b0000,
0b1010,
0b1010,
0b1010,
0b0100,
0b0100,
0b1000
)),}
| 10.968737
| 105
| 0.666271
| 91,599
| 781,358
| 5.683424
| 0.012074
| 0.115621
| 0.010937
| 0.033131
| 0.964973
| 0.954541
| 0.941678
| 0.92805
| 0.908743
| 0.867333
| 0
| 0.705834
| 0.183656
| 781,358
| 71,234
| 106
| 10.968891
| 0.11033
| 0.01009
| 0
| 0.994841
| 0
| 0
| 0.000305
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 9
|
43bf6306c02d0b2fa5c3dc208ed57f049b489c0b
| 72
|
py
|
Python
|
apps/stt_tests/models/__init__.py
|
michaldomino/Voice-interface-optimization-server
|
fff59d4c5db599e35d4b5f3915bbb272d2000a26
|
[
"MIT"
] | null | null | null |
apps/stt_tests/models/__init__.py
|
michaldomino/Voice-interface-optimization-server
|
fff59d4c5db599e35d4b5f3915bbb272d2000a26
|
[
"MIT"
] | null | null | null |
apps/stt_tests/models/__init__.py
|
michaldomino/Voice-interface-optimization-server
|
fff59d4c5db599e35d4b5f3915bbb272d2000a26
|
[
"MIT"
] | null | null | null |
from .stt_test import SttTest
from .stt_test_result import SttTestResult
| 36
| 42
| 0.875
| 11
| 72
| 5.454545
| 0.636364
| 0.233333
| 0.366667
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.097222
| 72
| 2
| 42
| 36
| 0.923077
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 0
| 1
| 0
| 1
| 0
| 0
| null | 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 7
|
78f1188c396bd2e93b5f07d7186c5b22fb3e7fb3
| 2,855
|
py
|
Python
|
tests/integration/scalar_fields/test_k_neighbors_scalar_fields.py
|
bernssolg/pyntcloud-master
|
84cf000b7a7f69a2c1b36f9624f05f65160bf992
|
[
"MIT"
] | 1,142
|
2016-10-10T08:55:30.000Z
|
2022-03-30T04:46:16.000Z
|
tests/integration/scalar_fields/test_k_neighbors_scalar_fields.py
|
bernssolg/pyntcloud-master
|
84cf000b7a7f69a2c1b36f9624f05f65160bf992
|
[
"MIT"
] | 195
|
2016-10-10T08:30:37.000Z
|
2022-02-17T12:51:17.000Z
|
tests/integration/scalar_fields/test_k_neighbors_scalar_fields.py
|
bernssolg/pyntcloud-master
|
84cf000b7a7f69a2c1b36f9624f05f65160bf992
|
[
"MIT"
] | 215
|
2017-02-28T00:50:29.000Z
|
2022-03-22T17:01:31.000Z
|
import pytest
import numpy as np
@pytest.mark.usefixtures("plane_pyntcloud", "plane_k_neighbors")
def test_eigen_values_coplanar_points_e3_is_0(plane_pyntcloud, plane_k_neighbors):
plane_pyntcloud.add_scalar_field(
"eigen_values",
k_neighbors=plane_k_neighbors)
assert plane_pyntcloud.points["e3(3)"][2] == 0
assert plane_pyntcloud.points["e3(3)"][3] == 0
@pytest.mark.usefixtures("pyntcloud_with_rgb_and_normals", "pyntcloud_with_rgb_and_normals_k_neighbors")
def test_eigen_values_bounds(pyntcloud_with_rgb_and_normals, pyntcloud_with_rgb_and_normals_k_neighbors):
scalar_fields = pyntcloud_with_rgb_and_normals.add_scalar_field(
"eigen_values",
k_neighbors=pyntcloud_with_rgb_and_normals_k_neighbors)
for x in scalar_fields:
assert all(pyntcloud_with_rgb_and_normals.points[x] >= -1)
assert all(pyntcloud_with_rgb_and_normals.points[x] <= 1)
@pytest.mark.usefixtures("plane_pyntcloud", "plane_k_neighbors")
def test_eigen_decomposition_coplanar_points_some_fields_are_0(plane_pyntcloud, plane_k_neighbors):
plane_pyntcloud.add_scalar_field(
"eigen_decomposition",
k_neighbors=plane_k_neighbors)
for x in [
"e3(3)",
"ev1_z(3)",
"ev2_z(3)",
"ev3_x(3)",
"ev3_y(3)"
]:
assert plane_pyntcloud.points[x][2] == 0
assert plane_pyntcloud.points[x][3] == 0
@pytest.mark.usefixtures("pyntcloud_with_rgb_and_normals", "pyntcloud_with_rgb_and_normals_k_neighbors")
def test_eigen_decomposition_bounds(pyntcloud_with_rgb_and_normals, pyntcloud_with_rgb_and_normals_k_neighbors):
scalar_fields = pyntcloud_with_rgb_and_normals.add_scalar_field(
"eigen_decomposition",
k_neighbors=pyntcloud_with_rgb_and_normals_k_neighbors)
for x in scalar_fields:
assert all(pyntcloud_with_rgb_and_normals.points[x] >= -1)
assert all(pyntcloud_with_rgb_and_normals.points[x] <= 1)
@pytest.mark.usefixtures("plane_pyntcloud", "plane_k_neighbors")
def test_normals_coplanar_points_nx_ny_are_0(plane_pyntcloud, plane_k_neighbors):
plane_pyntcloud.add_scalar_field(
"normals",
k_neighbors=plane_k_neighbors)
for x in ["nx(3)", "ny(3)"]:
assert plane_pyntcloud.points[x][2] == 0
assert plane_pyntcloud.points[x][3] == 0
@pytest.mark.usefixtures("pyntcloud_with_rgb_and_normals", "pyntcloud_with_rgb_and_normals_k_neighbors")
def test_normals_bounds(pyntcloud_with_rgb_and_normals, pyntcloud_with_rgb_and_normals_k_neighbors):
scalar_fields = pyntcloud_with_rgb_and_normals.add_scalar_field(
"normals",
k_neighbors=pyntcloud_with_rgb_and_normals_k_neighbors)
for x in scalar_fields:
assert all(pyntcloud_with_rgb_and_normals.points[x] >= -1)
assert all(pyntcloud_with_rgb_and_normals.points[x] <= 1)
| 39.109589
| 112
| 0.758319
| 408
| 2,855
| 4.794118
| 0.115196
| 0.122699
| 0.196319
| 0.233129
| 0.941718
| 0.926892
| 0.869632
| 0.845092
| 0.813395
| 0.813395
| 0
| 0.015631
| 0.148511
| 2,855
| 72
| 113
| 39.652778
| 0.788976
| 0
| 0
| 0.672727
| 0
| 0
| 0.155867
| 0.075657
| 0
| 0
| 0
| 0
| 0.218182
| 1
| 0.109091
| false
| 0
| 0.036364
| 0
| 0.145455
| 0
| 0
| 0
| 0
| null | 0
| 1
| 1
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 8
|
60005b8c82fb30bec3fdebbf6e4edc3aa0b219e7
| 1,090
|
py
|
Python
|
minot/model_title.py
|
remi-adam/minot
|
1b2d0f2780dec922adfb7f411d2f821f4cd9ad1a
|
[
"BSD-3-Clause"
] | 2
|
2020-08-03T07:41:28.000Z
|
2021-04-09T14:12:57.000Z
|
minot/model_title.py
|
remi-adam/minot
|
1b2d0f2780dec922adfb7f411d2f821f4cd9ad1a
|
[
"BSD-3-Clause"
] | 19
|
2020-10-09T18:35:48.000Z
|
2021-07-29T15:47:51.000Z
|
minot/model_title.py
|
remi-adam/minot
|
1b2d0f2780dec922adfb7f411d2f821f4cd9ad1a
|
[
"BSD-3-Clause"
] | 4
|
2020-08-04T14:18:10.000Z
|
2021-02-17T17:33:11.000Z
|
"""
This file contains the code name.
"""
def show():
"""
Show the title of the model pipeline. Based on F.R. NIKA soft.
See also http://patorjk.com/software/taag
Parameters
----------
Outputs
----------
"""
print("======================================================================")
print(" _ _ ")
print(" _ __ ___ (_)_ __ ___ | |_ ")
print(" | '_ ` _ \| | '_ \ / _ \| __| ")
print(" | | | | | | | | | | (_) | |_ ")
print(" |_| |_| |_|_|_| |_|\___/ \__| ")
print("======================================================================")
print("Modeling the ICM (Non-)thermal content and Observable prediction Tools")
print("----------------------------------------------------------------------")
print(" ")
| 37.586207
| 83
| 0.252294
| 50
| 1,090
| 4.8
| 0.74
| 0.333333
| 0.375
| 0.416667
| 0.166667
| 0.166667
| 0.166667
| 0
| 0
| 0
| 0
| 0
| 0.433028
| 1,090
| 28
| 84
| 38.928571
| 0.38835
| 0.166055
| 0
| 0.181818
| 0
| 0.090909
| 0.810185
| 0.243056
| 0
| 0
| 0
| 0
| 0
| 1
| 0.090909
| true
| 0
| 0
| 0
| 0.090909
| 0.909091
| 0
| 0
| 0
| null | 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 1
|
0
| 7
|
602a6bce447b17e1d32a45ba862c5502c443ac48
| 14,007
|
py
|
Python
|
tests/jobwatcher/plugins/test_slurm.py
|
chenwany/aws-parallelcluster-node
|
a03ccfc02b732be6c31f075f7b95a46cf6aeae20
|
[
"Apache-2.0"
] | null | null | null |
tests/jobwatcher/plugins/test_slurm.py
|
chenwany/aws-parallelcluster-node
|
a03ccfc02b732be6c31f075f7b95a46cf6aeae20
|
[
"Apache-2.0"
] | null | null | null |
tests/jobwatcher/plugins/test_slurm.py
|
chenwany/aws-parallelcluster-node
|
a03ccfc02b732be6c31f075f7b95a46cf6aeae20
|
[
"Apache-2.0"
] | null | null | null |
# Copyright 2019 Amazon.com, Inc. or its affiliates. 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. A copy of the License is located at
#
# http://aws.amazon.com/apache2.0/
#
# or in the "LICENSE.txt" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES
# OR CONDITIONS OF ANY KIND, express or implied. See the License for the specific language governing permissions and
# limitations under the License.
import pytest
from assertpy import assert_that
from common.schedulers.slurm_commands import PENDING_RESOURCES_REASONS, SlurmJob, get_pending_jobs_info
from jobwatcher.plugins.slurm import get_required_nodes
@pytest.mark.parametrize(
"pending_jobs, expected_required_nodes",
[
(
[
SlurmJob(
id="72", state="PD", nodes=4, cpus_total=15, cpus_min_per_node=3, pending_reason="Priority"
) # nodes gets incremented by 1
],
5,
),
(
[
SlurmJob(
id="72", state="PD", nodes=5, cpus_total=15, cpus_min_per_node=3, pending_reason="Resources"
), # 5 3-slot tasks
SlurmJob(
id="73", state="PD", nodes=1, cpus_total=1, cpus_min_per_node=1, pending_reason="Resources"
), # 1 1-slot task
SlurmJob(
id="74", state="PD", nodes=2, cpus_total=2, cpus_min_per_node=1, pending_reason="Resources"
), # 2 1-slot tasks forced on 2 nodes
SlurmJob(
id="75", state="PD", nodes=3, cpus_total=12, cpus_min_per_node=4, pending_reason="Resources"
), # 3 4-slot tasks
SlurmJob(
id="76", state="PD", nodes=1, cpus_total=3, cpus_min_per_node=1, pending_reason="Resources"
), # 3 1-slot tasks
],
9,
),
([], 0),
],
ids=["single_job", "multiple_jobs", "no_jobs"],
)
def test_get_required_nodes(pending_jobs, expected_required_nodes, mocker):
mocker.patch("common.schedulers.slurm_commands.get_jobs_info", return_value=pending_jobs, autospec=True)
spy = mocker.patch("jobwatcher.plugins.slurm.get_pending_jobs_info", wraps=get_pending_jobs_info)
instance_properties = {"slots": 4, "gpus": 0}
max_cluster_size = 10
assert_that(get_required_nodes(instance_properties, max_cluster_size)).is_equal_to(expected_required_nodes)
spy.assert_called_with(
filter_by_pending_reasons=PENDING_RESOURCES_REASONS,
max_nodes_filter=max_cluster_size,
instance_properties=instance_properties,
)
@pytest.mark.parametrize(
"pending_jobs, expected_required_nodes",
[
(
[
SlurmJob(
id="72",
state="PD",
nodes=2,
cpus_total=1,
cpus_min_per_node=1,
tres_per_job={"gpu": 5},
pending_reason="Priority",
),
# Nodes/resources available after processing this job:
# [{cpu:3, gpu:1}, {cpu:3, gpu:1}]
SlurmJob(
id="73",
state="PD",
nodes=2,
cpus_total=1,
cpus_min_per_node=1,
tres_per_job={"gpu": 5},
pending_reason="Resources",
),
# Nodes/resources available after processing this job:
# [{cpu:3, gpu:1}, {cpu:3, gpu:1}, {cpu:3, gpu:1}, {cpu:3, gpu:1}]
SlurmJob(
id="74",
state="PD",
nodes=1,
cpus_total=1,
cpus_min_per_node=1,
tres_per_job={"gpu": 3},
pending_reason="Priority",
),
# Nodes/resources available after processing this job:
# [{cpu:3, gpu:1}, {cpu:3, gpu:1}, {cpu:3, gpu:1}, {cpu:3, gpu:1}, {cpu:3, gpu:1}]
],
5,
),
(
[
SlurmJob(
id="72",
state="PD",
nodes=2,
tasks=3,
cpus_total=3,
cpus_min_per_node=3,
cpus_per_task=1,
tres_per_task={"gpu": 2},
pending_reason="Priority",
),
# Nodes/resources available after processing this job:
# [{cpu:2, gpu:1}, {cpu:2, gpu:1}]
SlurmJob(
id="73",
state="PD",
nodes=1,
tasks=2,
cpus_total=2,
cpus_min_per_node=2,
cpus_per_task=1,
tres_per_task={"gpu": 2},
pending_reason="Resources",
),
# Nodes/resources available after processing this job:
# [{cpu:2, gpu:1}, {cpu:2, gpu:1}, {cpu:2, gpu:0}]
SlurmJob(
id="74",
state="PD",
nodes=1,
tasks=1,
cpus_total=2,
cpus_min_per_node=2,
cpus_per_task=2,
tres_per_task={"gpu": 1},
pending_reason="Resources",
),
# Nodes/resources available after processing this job:
# [{cpu:0, gpu:0}, {cpu:2, gpu:1}, {cpu:2, gpu:0}]
],
3,
),
(
[
SlurmJob(
id="72",
state="PD",
nodes=2,
cpus_total=2,
cpus_min_per_node=1,
tres_per_node={"gpu": 2},
pending_reason="Priority",
),
# Nodes/resources available after processing this job:
# [{cpu:3, gpu:2}, {cpu:3, gpu:2}]
SlurmJob(
id="73",
state="PD",
nodes=3,
cpus_total=3,
cpus_min_per_node=1,
tres_per_node={"gpu": 1},
pending_reason="Resources",
),
# Nodes/resources available after processing this job:
# [{cpu:2, gpu:1}, {cpu:2, gpu:1}, {cpu:3, gpu:3}]
SlurmJob(
id="74",
state="PD",
nodes=1,
cpus_total=1,
cpus_min_per_node=1,
tres_per_node={"gpu": 3},
pending_reason="Resources",
),
# Nodes/resources available after processing this job:
# [{cpu:2, gpu:1}, {cpu:2, gpu:1}, {cpu:2, gpu:0}]
],
3,
),
(
[
SlurmJob(
id="72",
state="PD",
nodes=2,
cpus_total=2,
cpus_min_per_node=1,
tres_per_job={"gpu": 5},
pending_reason="Priority",
),
# Nodes/resources available after processing this job:
# [{cpu:3, gpu:1}, {cpu:3, gpu:1}]
SlurmJob(
id="73",
state="PD",
nodes=2,
tasks=3,
cpus_total=3,
cpus_min_per_node=1,
cpus_per_task=1,
tres_per_task={"gpu": 2},
pending_reason="Resources",
),
# Nodes/resources available after processing this job:
# [{cpu:3, gpu:1}, {cpu:3, gpu:1}, {cpu:2, gpu:1}, {cpu:2, gpu:1}]
SlurmJob(
id="74",
state="PD",
nodes=4,
cpus_total=4,
cpus_min_per_node=1,
tres_per_node={"gpu": 1},
pending_reason="Resources",
),
# Nodes/resources available after processing this job:
# [{cpu:2, gpu:0}, {cpu:2, gpu:0}, {cpu:1, gpu:0}, {cpu:1, gpu:0}]
],
4,
),
(
[
SlurmJob(
id="75",
state="PD",
nodes=1,
cpus_total=1,
cpus_min_per_node=1,
tres_per_job={"gpu": 2},
cpus_per_tres={"gpu": 3},
pending_reason="Priority",
),
# Nodes/resources available after processing this job:
# [{cpu:1, gpu:1}, {cpu:1, gpu:1}]
SlurmJob(
id="76",
state="PD",
nodes=1,
cpus_total=1,
cpus_min_per_node=1,
cpus_per_tres={"gpu": 4}, # Invalid if we don't specify GPU
pending_reason="Resources",
),
# Nodes/resources available after processing this job:
# [{cpu:0, gpu:1}, {cpu:1, gpu:1}]
],
2,
),
],
ids=["job_only", "task_only", "node_only", "mix", "cpus_per_tres"],
)
def test_get_required_nodes_gpu(pending_jobs, expected_required_nodes, mocker):
mocker.patch("common.schedulers.slurm_commands.get_jobs_info", return_value=pending_jobs, autospec=True)
spy = mocker.patch("jobwatcher.plugins.slurm.get_pending_jobs_info", wraps=get_pending_jobs_info)
instance_properties = {"slots": 4, "gpus": 4}
max_cluster_size = 10
assert_that(get_required_nodes(instance_properties, max_cluster_size)).is_equal_to(expected_required_nodes)
spy.assert_called_with(
filter_by_pending_reasons=PENDING_RESOURCES_REASONS,
max_nodes_filter=max_cluster_size,
instance_properties=instance_properties,
)
@pytest.mark.parametrize(
"pending_jobs, expected_required_nodes",
[
(
[
SlurmJob(id="72", state="PD", nodes=1, cpus_total=4, cpus_min_per_node=4, pending_reason="Priority"),
# Nodes/resources available after processing this job:
# {cpu:0, gpu:4}]
SlurmJob(
id="73",
state="PD",
nodes=2,
cpus_total=2,
cpus_min_per_node=1,
tres_per_job={"gpu": 5},
pending_reason="Resources",
),
# Nodes/resources available after processing this job:
# [{cpu:0, gpu:4}, {cpu:3, gpu:1}, {cpu:3, gpu:1}]
SlurmJob(
id="74",
state="PD",
nodes=2,
cpus_total=6,
cpus_min_per_node=3,
tres_per_node={"gpu": 1},
pending_reason="Priority",
),
# Nodes/resources available after processing this job:
# [{cpu:0, gpu:4}, {cpu:0, gpu:0}, {cpu:0, gpu:0}]
],
3,
),
(
[
SlurmJob(
id="72",
state="PD",
nodes=1,
tasks=3,
cpus_total=3,
cpus_min_per_node=3,
cpus_per_task=1,
tres_per_task={"gpu": 1},
pending_reason="Priority",
),
# Nodes/resources available after processing this job:
# [{cpu:1, gpu:1}]
SlurmJob(
id="73",
state="PD",
nodes=1,
tasks=2,
cpus_total=2,
cpus_min_per_node=2,
cpus_per_task=1,
tres_per_task={"gpu": 2},
pending_reason="Resources",
),
# Nodes/resources available after processing this job:
# [{cpu:1, gpu:1}, {cpu:2, gpu:0}]
SlurmJob(
id="74",
state="PD",
nodes=2,
tasks=2,
cpus_total=6,
cpus_min_per_node=3,
cpus_per_task=3,
tres_per_task={"gpu": 4},
pending_reason="Resources",
),
# Nodes/resources available after processing this job:
# [{cpu:1, gpu:1}, {cpu:2, gpu:0}, {cpu:1, gpu:0}, {cpu:1, gpu:0}]
],
4,
),
],
ids=["actual_less_than_sum_of_nodes", "actual_equal_sum_of_nodes"],
)
def test_get_required_nodes_mix(pending_jobs, expected_required_nodes, mocker):
mocker.patch("common.schedulers.slurm_commands.get_jobs_info", return_value=pending_jobs, autospec=True)
spy = mocker.patch("jobwatcher.plugins.slurm.get_pending_jobs_info", wraps=get_pending_jobs_info)
instance_properties = {"slots": 4, "gpus": 4}
max_cluster_size = 10
assert_that(get_required_nodes(instance_properties, max_cluster_size)).is_equal_to(expected_required_nodes)
spy.assert_called_with(
filter_by_pending_reasons=PENDING_RESOURCES_REASONS,
max_nodes_filter=max_cluster_size,
instance_properties=instance_properties,
)
| 37.856757
| 119
| 0.459342
| 1,454
| 14,007
| 4.184319
| 0.109354
| 0.026298
| 0.051282
| 0.059829
| 0.85092
| 0.833498
| 0.819362
| 0.801611
| 0.777613
| 0.749014
| 0
| 0.040171
| 0.433069
| 14,007
| 369
| 120
| 37.95935
| 0.725979
| 0.188763
| 0
| 0.79085
| 0
| 0
| 0.082088
| 0.035294
| 0
| 0
| 0
| 0
| 0.022876
| 1
| 0.009804
| false
| 0
| 0.013072
| 0
| 0.022876
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
604bba65b6cdce90b08c0949d5d6e6a8babcd9b0
| 2,891
|
py
|
Python
|
solutions/okviri.py
|
24TangC/USACO-Bronze
|
80f0986cb04998b039ba23c7349d25431b4e876b
|
[
"MIT"
] | null | null | null |
solutions/okviri.py
|
24TangC/USACO-Bronze
|
80f0986cb04998b039ba23c7349d25431b4e876b
|
[
"MIT"
] | null | null | null |
solutions/okviri.py
|
24TangC/USACO-Bronze
|
80f0986cb04998b039ba23c7349d25431b4e876b
|
[
"MIT"
] | null | null | null |
input = input()
input.split()
stringtop = []
stringsecond = []
stringmiddle = []
stringfourth = []
stringbottom = []
counter = 0
if len(input) == 1:
stringtop.append("..#..")
stringsecond.append(".#.#.")
stringmiddle.append(f"#.{input[counter]}.#")
stringfourth.append(".#.#.")
stringbottom.append("..#..")
string = ""
for x in stringtop:
string += x
print(string)
string = ""
for x in stringsecond:
string += x
print(string)
string = ""
for x in stringmiddle:
string += x
print(string)
string = ""
for x in stringfourth:
string += x
print(string)
string = ""
for x in stringbottom:
string += x
print(string)
exit()
for x in range(1, len(input)+1):
if counter == 0:
stringtop.append("..#.")
stringsecond.append(".#.#")
stringmiddle.append(f"#.{input[counter]}.")
stringfourth.append(".#.#")
stringbottom.append("..#.")
elif counter == len(input) - 1:
if (counter+1) % 3 == 0:
stringtop.append("..*..")
stringsecond.append("*.*.")
stringmiddle.append(f"*.{input[counter]}.*")
stringfourth.append(".*.*.")
stringbottom.append("..*..")
elif (counter+1) % 3 == 1:
stringtop.append(".#..")
stringsecond.append(".#.#.")
stringmiddle.append(f".{input[counter]}.#")
stringfourth.append("#.#.")
stringbottom.append(".#..")
else:
stringtop.append("..#..")
stringsecond.append(".#.#.")
stringmiddle.append(f"#.{input[counter]}.#")
stringfourth.append(".#.#.")
stringbottom.append("..#..")
elif (counter+1) % 3 == 0:
stringtop.append("..*..")
stringsecond.append("*.*")
stringmiddle.append(f"*.{input[counter]}.*")
stringfourth.append(".*.*.")
stringbottom.append("..*..")
elif (counter+1) % 3 == 2:
stringtop.append("..#.")
stringsecond.append(".#.#.")
stringmiddle.append(f"#.{input[counter]}.")
stringfourth.append(".#.#")
stringbottom.append("..#.")
elif (counter+1) % 3 == 1:
stringtop.append(".#.")
stringsecond.append(".#.#")
stringmiddle.append(f".{input[counter]}.")
stringfourth.append("#.#")
stringbottom.append(".#.")
counter += 1
string = ""
for x in stringtop:
string += x
print(string)
string = ""
for x in stringsecond:
string += x
print(string)
string = ""
for x in stringmiddle:
string += x
print(string)
string = ""
for x in stringfourth:
string += x
print(string)
string = ""
for x in stringbottom:
string += x
print(string)
| 25.359649
| 57
| 0.499827
| 254
| 2,891
| 5.688976
| 0.098425
| 0.03045
| 0.045675
| 0.083045
| 0.914187
| 0.894118
| 0.894118
| 0.894118
| 0.894118
| 0.894118
| 0
| 0.010962
| 0.305777
| 2,891
| 113
| 58
| 25.584071
| 0.709018
| 0
| 0
| 0.72
| 0
| 0
| 0.106192
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0
| 0
| 0
| 0.1
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
609329fcc32ebbcbcb233c0e9c4bec96581984dd
| 3,371
|
py
|
Python
|
Variation_to_Multihead_Attention/Attention.py
|
namanjaswani27/Abstractive_Text_Summarization_using_Encoder-Decoder-Architecture
|
8961b0f1ac05c664c3464b453bdf587cebfcb01e
|
[
"MIT"
] | null | null | null |
Variation_to_Multihead_Attention/Attention.py
|
namanjaswani27/Abstractive_Text_Summarization_using_Encoder-Decoder-Architecture
|
8961b0f1ac05c664c3464b453bdf587cebfcb01e
|
[
"MIT"
] | null | null | null |
Variation_to_Multihead_Attention/Attention.py
|
namanjaswani27/Abstractive_Text_Summarization_using_Encoder-Decoder-Architecture
|
8961b0f1ac05c664c3464b453bdf587cebfcb01e
|
[
"MIT"
] | null | null | null |
# Code adapted from https://bastings.github.io/annotated_encoder_decoder/
import torch.nn as nn
import torch
import torch.nn.functional as F
class BahadanauAttention(nn.Module):
def __init__(self, hidden_size):
super().__init__()
self.hidden_size = hidden_size
# key = Bidirectional encoder
# query = decoder hidden state
# Projecting query_size to hidden_size
self.query_layer = nn.Linear(
in_features=hidden_size, out_features=hidden_size, bias=False)
# Projecting key_size to hidden_size
self.key_layer = nn.Linear(
in_features=2*hidden_size, out_features=hidden_size, bias=False)
# TO get scores (scalar)
self.energy_layer = nn.Linear(
in_features=hidden_size, out_features=1, bias=False)
def forward(self, encoder_output, decoder_hidden):
# key : [ batch_size, max_len, hidden_dim ]
key = self.key_layer(encoder_output)
# query : [ batch_size, 1, hidden_dim ]
query = self.query_layer(decoder_hidden)
# energies : [ batch_size, max_len, 1 ]
scores = self.energy_layer(torch.tanh(key + query))
# scores : [ batch_size, 1, max_len ]
scores = scores.squeeze(2).unsqueeze(1)
# Attention Prob.
# Computing attention probabilities over max_len
# [ batch_size, 1, max_len ]
alphas = F.softmax(
input = scores, dim = -1)
# Weighted sum of key=encoder_output and attention prob.
# [ batch_size, 1, 2 * hidden_size ]
context = torch.bmm(alphas, encoder_output)
return context
class LuongAttention(nn.Module):
def __init__(self, hidden_size):
super().__init__()
self.hidden_size = hidden_size
# key = Bidirectional encoder
# query = decoder hidden state
# Projecting query_size to hidden_size
self.query_layer = nn.Linear(
in_features=hidden_size, out_features=hidden_size, bias=False)
# Projecting key_size to hidden_size
self.key_layer = nn.Linear(
in_features=2*hidden_size, out_features=hidden_size, bias=False)
self.W = nn.Linear(
in_features=hidden_size, out_features=hidden_size, bias=False)
def forward(self, encoder_output, decoder_hidden):
# key : [ batch_size, max_len, hidden_dim ]
key = self.key_layer(encoder_output)
# query : [ batch_size, 1, hidden_dim ]
query = self.query_layer(decoder_hidden)
# scores : [ batch_size, max_len, 1 ]
scores = self.W(key)
scores = torch.bmm(scores, query.permute(0, 2, 1))
# scores : [ batch_size, 1, max_len ]
scores = scores.squeeze(2).unsqueeze(1)
# Attention Prob.
# Computing attention probabilities over max_len
# [ batch_size, 1, max_len ]
alphas = F.softmax(
input = scores, dim = -1)
# Weighted sum of key=encoder_output and attention prob.
# [ batch_size, 1, 2 * hidden_size ]
context = torch.bmm(alphas, encoder_output)
return context
| 31.504673
| 76
| 0.590033
| 394
| 3,371
| 4.781726
| 0.185279
| 0.122081
| 0.085987
| 0.057325
| 0.857219
| 0.857219
| 0.857219
| 0.829618
| 0.829618
| 0.806263
| 0
| 0.01054
| 0.324533
| 3,371
| 106
| 77
| 31.801887
| 0.816864
| 0.301988
| 0
| 0.738095
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.095238
| false
| 0
| 0.071429
| 0
| 0.261905
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
609c3664f93af4fa7817acd02b2a53b799b05a5c
| 16,509
|
py
|
Python
|
monk/pytorch/losses/losses.py
|
Sanskar329/monk_v1
|
51a497a925ec1fb2c8fef1d51245ea7040a5a65a
|
[
"Apache-2.0"
] | 7
|
2020-07-26T08:37:29.000Z
|
2020-10-30T10:23:11.000Z
|
monk/pytorch/losses/losses.py
|
mursalfk/monk_v1
|
62f34a52f242772186ffff7e56764e958fbcd920
|
[
"Apache-2.0"
] | null | null | null |
monk/pytorch/losses/losses.py
|
mursalfk/monk_v1
|
62f34a52f242772186ffff7e56764e958fbcd920
|
[
"Apache-2.0"
] | null | null | null |
from pytorch.losses.imports import *
from system.imports import *
@accepts(dict, weight=[list, type(np.array([1, 2, 3])), float, type(None)], batch_axis=int, post_trace=False)
#@TraceFunction(trace_args=False, trace_rv=False)
def l1(system_dict, weight=None, batch_axis=0):
'''
Select L1 Loss
Args:
system_dict (dict): System dictionary storing experiment state and set variables
weight (float): global scalar for weight loss
batch_axis (int): Axis representing number of elements in the batch - N
Returns:
dict: updated system dict
'''
system_dict["local"]["criterion"] = "l1";
system_dict["hyper-parameters"]["loss"]["name"] = "l1";
system_dict["hyper-parameters"]["loss"]["params"]["weight"] = weight;
system_dict["hyper-parameters"]["loss"]["params"]["batch_axis"] = batch_axis;
system_dict["hyper-parameters"]["status"] = True;
return system_dict;
@accepts(dict, weight=[list, type(np.array([1, 2, 3])), float, type(None)], batch_axis=int, post_trace=False)
#@TraceFunction(trace_args=False, trace_rv=False)
def l2(system_dict, weight=None, batch_axis=0):
'''
Select L2 Loss
Args:
system_dict (dict): System dictionary storing experiment state and set variables
weight (float): global scalar for weight loss
batch_axis (int): Axis representing number of elements in the batch - N
Returns:
dict: updated system dict
'''
system_dict["local"]["criterion"] = "l2";
system_dict["hyper-parameters"]["loss"]["name"] = "l2";
system_dict["hyper-parameters"]["loss"]["params"]["weight"] = weight;
system_dict["hyper-parameters"]["loss"]["params"]["batch_axis"] = batch_axis;
system_dict["hyper-parameters"]["status"] = True;
return system_dict;
@accepts(dict, weight=[list, type(np.array([1, 2, 3])), float, type(None)], batch_axis=int,
axis_to_sum_over=int, label_as_categories=bool, label_smoothing=bool, post_trace=False)
#@TraceFunction(trace_args=False, trace_rv=False)
def softmax_crossentropy(system_dict, weight=None, batch_axis=0, axis_to_sum_over=-1,
label_as_categories=True, label_smoothing=False):
'''
Select softmax crossentropy Loss - Auto softmax before applying loss
Args:
system_dict (dict): System dictionary storing experiment state and set variables
weight (float): global scalar for weight loss
batch_axis (int): Axis representing number of elements in the batch - N
axis_to_sum_over (int): Set as -1
label_as_categories (bool): Fixed as True
label_smoothing (bool): If True, label smoothning is applied.
Returns:
dict: updated system dict
'''
system_dict["local"]["criterion"] = "softmaxcrossentropy";
system_dict["hyper-parameters"]["loss"]["name"] = "softmaxcrossentropy";
system_dict["hyper-parameters"]["loss"]["params"]["weight"] = weight;
system_dict["hyper-parameters"]["loss"]["params"]["batch_axis"] = batch_axis;
system_dict["hyper-parameters"]["loss"]["params"]["axis_to_sum_over"] = axis_to_sum_over;
system_dict["hyper-parameters"]["loss"]["params"]["label_as_categories"] = label_as_categories;
system_dict["hyper-parameters"]["loss"]["params"]["label_smoothing"] = label_smoothing;
system_dict["hyper-parameters"]["status"] = True;
return system_dict;
@accepts(dict, weight=[list, type(np.array([1, 2, 3])), float, type(None)], batch_axis=int,
axis_to_sum_over=int, label_as_categories=bool, label_smoothing=bool, post_trace=False)
#@TraceFunction(trace_args=False, trace_rv=False)
def crossentropy(system_dict, weight=None, batch_axis=0, axis_to_sum_over=-1,
label_as_categories=True, label_smoothing=False):
'''
Select crossentropy Loss - Need to manually apply softmax
Args:
system_dict (dict): System dictionary storing experiment state and set variables
weight (float): global scalar for weight loss
batch_axis (int): Axis representing number of elements in the batch - N
axis_to_sum_over (int): Set as -1
label_as_categories (bool): Fixed as True
label_smoothing (bool): If True, label smoothning is applied.
Returns:
dict: updated system dict
'''
system_dict["local"]["criterion"] = "crossentropy";
system_dict["hyper-parameters"]["loss"]["name"] = "crossentropy";
system_dict["hyper-parameters"]["loss"]["params"]["weight"] = weight;
system_dict["hyper-parameters"]["loss"]["params"]["batch_axis"] = batch_axis;
system_dict["hyper-parameters"]["loss"]["params"]["axis_to_sum_over"] = axis_to_sum_over;
system_dict["hyper-parameters"]["loss"]["params"]["label_as_categories"] = label_as_categories;
system_dict["hyper-parameters"]["loss"]["params"]["label_smoothing"] = label_smoothing;
system_dict["hyper-parameters"]["status"] = True;
return system_dict;
@accepts(dict, weight=[list, type(np.array([1, 2, 3])), float, type(None)], batch_axis=int, post_trace=False)
#@TraceFunction(trace_args=False, trace_rv=False)
def sigmoid_binary_crossentropy(system_dict, weight=None, batch_axis=0):
'''
Select sigmoid binary crossentropy Loss - Auto sigmoid before applying loss
Args:
system_dict (dict): System dictionary storing experiment state and set variables
weight (float): global scalar for weight loss
batch_axis (int): Axis representing number of elements in the batch - N
Returns:
dict: updated system dict
'''
system_dict["local"]["criterion"] = "sigmoidbinarycrossentropy";
system_dict["hyper-parameters"]["loss"]["name"] = "sigmoidbinarycrossentropy";
system_dict["hyper-parameters"]["loss"]["params"]["weight"] = weight;
system_dict["hyper-parameters"]["loss"]["params"]["batch_axis"] = batch_axis;
system_dict["hyper-parameters"]["status"] = True;
return system_dict;
@accepts(dict, weight=[list, type(np.array([1, 2, 3])), float, type(None)], batch_axis=int, post_trace=False)
#@TraceFunction(trace_args=False, trace_rv=False)
def binary_crossentropy(system_dict, weight=None, batch_axis=0):
'''
Select binary crossentropy Loss - Need to manually apply sigmoid
Args:
system_dict (dict): System dictionary storing experiment state and set variables
weight (float): global scalar for weight loss
batch_axis (int): Axis representing number of elements in the batch - N
Returns:
dict: updated system dict
'''
system_dict["local"]["criterion"] = "binarycrossentropy";
system_dict["hyper-parameters"]["loss"]["name"] = "binarycrossentropy";
system_dict["hyper-parameters"]["loss"]["params"]["weight"] = weight;
system_dict["hyper-parameters"]["loss"]["params"]["batch_axis"] = batch_axis;
system_dict["hyper-parameters"]["status"] = True;
return system_dict;
@accepts(dict, log_pre_applied=bool, weight=[list, type(np.array([1, 2, 3])), float, type(None)], batch_axis=int,
axis_to_sum_over=int, post_trace=False)
#@TraceFunction(trace_args=False, trace_rv=False)
def kldiv(system_dict, log_pre_applied=False, weight=None, batch_axis=0, axis_to_sum_over=-1):
'''
Select lkdiv Loss
Args:
system_dict (dict): System dictionary storing experiment state and set variables
weight (float): global scalar for weight loss
batch_axis (int): Axis representing number of elements in the batch - N
axis_to_sum_over (int): Set as -1
log_pre_applied (bool): If set as False, then logarithmic function is auto applied over target variables
Returns:
dict: updated system dict
'''
system_dict["local"]["criterion"] = "kldiv";
system_dict["hyper-parameters"]["loss"]["name"] = "kldiv";
system_dict["hyper-parameters"]["loss"]["params"]["log_pre_applied"] = log_pre_applied;
system_dict["hyper-parameters"]["loss"]["params"]["weight"] = weight;
system_dict["hyper-parameters"]["loss"]["params"]["batch_axis"] = batch_axis;
system_dict["hyper-parameters"]["loss"]["params"]["axis_to_sum_over"] = axis_to_sum_over;
system_dict["hyper-parameters"]["status"] = True;
return system_dict;
@accepts(dict, log_pre_applied=bool, weight=[list, type(np.array([1, 2, 3])), float, type(None)], batch_axis=int, post_trace=False)
#@TraceFunction(trace_args=False, trace_rv=False)
def poisson_nll(system_dict, log_pre_applied=False, weight=None, batch_axis=0):
'''
Select poisson_nll Loss
Args:
system_dict (dict): System dictionary storing experiment state and set variables
weight (float): global scalar for weight loss
batch_axis (int): Axis representing number of elements in the batch - N
log_pre_applied (bool): If set as False, then logarithmic function is auto applied over target variables
Returns:
dict: updated system dict
'''
system_dict["local"]["criterion"] = "poissonnll";
system_dict["hyper-parameters"]["loss"]["name"] = "poissonnll";
system_dict["hyper-parameters"]["loss"]["params"]["log_pre_applied"] = log_pre_applied;
system_dict["hyper-parameters"]["loss"]["params"]["weight"] = weight;
system_dict["hyper-parameters"]["loss"]["params"]["batch_axis"] = batch_axis;
system_dict["hyper-parameters"]["status"] = True;
return system_dict;
@accepts(dict, weight=[list, type(np.array([1, 2, 3])), float, type(None)], batch_axis=int, threshold_for_mean_estimator=int, post_trace=False)
#@TraceFunction(trace_args=False, trace_rv=False)
def huber(system_dict, weight=None, batch_axis=0, threshold_for_mean_estimator=1):
'''
Select huber Loss
Args:
system_dict (dict): System dictionary storing experiment state and set variables
weight (float): global scalar for weight loss
batch_axis (int): Axis representing number of elements in the batch - N
threshold_for_mean_estimator (int): Threshold for trimmed mean estimator.
Returns:
dict: updated system dict
'''
system_dict["local"]["criterion"] = "huber";
system_dict["hyper-parameters"]["loss"]["name"] = "huber";
system_dict["hyper-parameters"]["loss"]["params"]["threshold_for_mean_estimator"] = threshold_for_mean_estimator;
system_dict["hyper-parameters"]["loss"]["params"]["weight"] = weight;
system_dict["hyper-parameters"]["loss"]["params"]["batch_axis"] = batch_axis;
system_dict["hyper-parameters"]["status"] = True;
return system_dict;
@accepts(dict, weight=[list, type(np.array([1, 2, 3])), float, type(None)], batch_axis=int, margin=int, post_trace=False)
#@TraceFunction(trace_args=False, trace_rv=False)
def hinge(system_dict, weight=None, batch_axis=0, margin=1):
'''
Select hinge Loss
Args:
system_dict (dict): System dictionary storing experiment state and set variables
weight (float): global scalar for weight loss
batch_axis (int): Axis representing number of elements in the batch - N
margin (float): MArgin value.
Returns:
dict: updated system dict
'''
system_dict["local"]["criterion"] = "hinge";
system_dict["hyper-parameters"]["loss"]["name"] = "hinge";
system_dict["hyper-parameters"]["loss"]["params"]["margin"] = margin;
system_dict["hyper-parameters"]["loss"]["params"]["weight"] = weight;
system_dict["hyper-parameters"]["loss"]["params"]["batch_axis"] = batch_axis;
system_dict["hyper-parameters"]["status"] = True;
return system_dict;
@accepts(dict, weight=[list, type(np.array([1, 2, 3])), float, type(None)], batch_axis=int, margin=int, post_trace=False)
#@TraceFunction(trace_args=False, trace_rv=False)
def squared_hinge(system_dict, weight=None, batch_axis=0, margin=1):
'''
Select squared hinge Loss
Args:
system_dict (dict): System dictionary storing experiment state and set variables
weight (float): global scalar for weight loss
batch_axis (int): Axis representing number of elements in the batch - N
margin (float): MArgin value.
Returns:
dict: updated system dict
'''
system_dict["local"]["criterion"] = "squaredhinge";
system_dict["hyper-parameters"]["loss"]["name"] = "squaredhinge";
system_dict["hyper-parameters"]["loss"]["params"]["margin"] = margin;
system_dict["hyper-parameters"]["loss"]["params"]["weight"] = weight;
system_dict["hyper-parameters"]["loss"]["params"]["batch_axis"] = batch_axis;
system_dict["hyper-parameters"]["status"] = True;
return system_dict;
@accepts(dict, weight=[list, type(np.array([1, 2, 3])), float, type(None)], batch_axis=int, margin=int, post_trace=False)
#@TraceFunction(trace_args=False, trace_rv=False)
def multimargin(system_dict, weight=None, batch_axis=0, margin=1):
'''
Select multi margin Loss
Args:
system_dict (dict): System dictionary storing experiment state and set variables
weight (float): global scalar for weight loss
batch_axis (int): Axis representing number of elements in the batch - N
margin (float): MArgin value.
Returns:
dict: updated system dict
'''
system_dict["local"]["criterion"] = "multimargin";
system_dict["hyper-parameters"]["loss"]["name"] = "multimargin";
system_dict["hyper-parameters"]["loss"]["params"]["margin"] = margin;
system_dict["hyper-parameters"]["loss"]["params"]["weight"] = weight;
system_dict["hyper-parameters"]["loss"]["params"]["batch_axis"] = batch_axis;
system_dict["hyper-parameters"]["status"] = True;
return system_dict;
@accepts(dict, weight=[list, type(np.array([1, 2, 3])), float, type(None)], batch_axis=int, margin=int, post_trace=False)
#@TraceFunction(trace_args=False, trace_rv=False)
def squared_multimargin(system_dict, weight=None, batch_axis=0, margin=1):
'''
Select squared multi margin Loss
Args:
system_dict (dict): System dictionary storing experiment state and set variables
weight (float): global scalar for weight loss
batch_axis (int): Axis representing number of elements in the batch - N
margin (float): MArgin value.
Returns:
dict: updated system dict
'''
system_dict["local"]["criterion"] = "squaredmultimargin";
system_dict["hyper-parameters"]["loss"]["name"] = "squaredmultimargin";
system_dict["hyper-parameters"]["loss"]["params"]["margin"] = margin;
system_dict["hyper-parameters"]["loss"]["params"]["weight"] = weight;
system_dict["hyper-parameters"]["loss"]["params"]["batch_axis"] = batch_axis;
system_dict["hyper-parameters"]["status"] = True;
return system_dict;
@accepts(dict, weight=[list, type(np.array([1, 2, 3])), float, type(None)], batch_axis=int, post_trace=False)
#@TraceFunction(trace_args=False, trace_rv=False)
def multilabelmargin(system_dict, weight=None, batch_axis=0):
'''
Select multilabel margin Loss
Args:
system_dict (dict): System dictionary storing experiment state and set variables
weight (float): global scalar for weight loss
batch_axis (int): Axis representing number of elements in the batch - N
Returns:
dict: updated system dict
'''
system_dict["local"]["criterion"] = "multilabelmargin";
system_dict["hyper-parameters"]["loss"]["name"] = "multilabelmargin";
system_dict["hyper-parameters"]["loss"]["params"]["weight"] = weight;
system_dict["hyper-parameters"]["loss"]["params"]["batch_axis"] = batch_axis;
system_dict["hyper-parameters"]["status"] = True;
return system_dict;
@accepts(dict, weight=[list, type(np.array([1, 2, 3])), float, type(None)], batch_axis=int, post_trace=False)
#@TraceFunction(trace_args=False, trace_rv=False)
def multilabelsoftmargin(system_dict, weight=None, batch_axis=0):
'''
Select multilabel softmargin Loss
Args:
system_dict (dict): System dictionary storing experiment state and set variables
weight (float): global scalar for weight loss
batch_axis (int): Axis representing number of elements in the batch - N
Returns:
dict: updated system dict
'''
system_dict["local"]["criterion"] = "multilabelsoftmargin";
system_dict["hyper-parameters"]["loss"]["name"] = "multilabelsoftmargin";
system_dict["hyper-parameters"]["loss"]["params"]["weight"] = weight;
system_dict["hyper-parameters"]["loss"]["params"]["batch_axis"] = batch_axis;
system_dict["hyper-parameters"]["status"] = True;
return system_dict;
| 45.354396
| 143
| 0.689624
| 2,114
| 16,509
| 5.209555
| 0.054399
| 0.135295
| 0.10079
| 0.167983
| 0.965949
| 0.961137
| 0.873422
| 0.870698
| 0.864161
| 0.851085
| 0
| 0.005712
| 0.162275
| 16,509
| 363
| 144
| 45.479339
| 0.7906
| 0.356533
| 0
| 0.631206
| 0
| 0
| 0.285198
| 0.007827
| 0
| 0
| 0
| 0
| 0
| 1
| 0.106383
| false
| 0
| 0.014184
| 0
| 0.22695
| 0
| 0
| 0
| 0
| null | 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
60c05861a5f5029ce650ee4ad884b539e75473eb
| 10,366
|
py
|
Python
|
python/qisrc/test/test_sync_import.py
|
PrashantKumar-sudo/qibuild
|
a16ce425cf25127ceff29507feeeeca37af23351
|
[
"BSD-3-Clause"
] | null | null | null |
python/qisrc/test/test_sync_import.py
|
PrashantKumar-sudo/qibuild
|
a16ce425cf25127ceff29507feeeeca37af23351
|
[
"BSD-3-Clause"
] | null | null | null |
python/qisrc/test/test_sync_import.py
|
PrashantKumar-sudo/qibuild
|
a16ce425cf25127ceff29507feeeeca37af23351
|
[
"BSD-3-Clause"
] | null | null | null |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# Copyright (c) 2012-2019 SoftBank Robotics. All rights reserved.
# Use of this source code is governed by a BSD-style license (see the COPYING file).
""" Test Sync Import """
from __future__ import absolute_import
from __future__ import unicode_literals
from __future__ import print_function
import qisys
from qisrc.test.conftest import TestGitWorkTree
def test_import_manifest(cd_to_tmpdir, tmpdir, git_server):
""" Test Import Manifest """
git_server.create_repo("foo_manifest.git")
git_server.create_repo("bar.git")
git_server.create_repo("foo.git")
git_server.create_repo("baz.git")
content = (""" \
<manifest>
<remote name="origin" url="%s/git/srv" />
<repo branch="master" project="baz.git" remotes="origin" />
<import manifest="foo_manifest.git" remotes="origin" />
</manifest>
""")
git_server.push_file("manifest.git", "manifest.xml", content % tmpdir)
content = (""" \
<manifest>
<remote name="origin" review="false" url="%s/git/srv" />
<repo branch="master" project="foo.git" remotes="origin" src="foo" />
<repo branch="master" project="bar.git" remotes="origin" />
</manifest>
""")
git_server.push_file("foo_manifest.git", "manifest.xml", content % tmpdir)
qisys.script.run_action("qisrc.actions.init",
[git_server.manifest_url])
git_worktree = TestGitWorkTree()
assert len(git_worktree.git_projects) == 3
def test_import_manifest_default_branch(cd_to_tmpdir, tmpdir, git_server):
""" Test Import Manifest Default Branch """
git_server.create_repo("foo_manifest.git")
git_server.create_repo("bar.git")
git_server.create_repo("foo.git")
git_server.push_file("manifest.git", "manifest.xml", "<manifest />")
content = (""" \
<manifest>
<remote name="origin" url="file://%s/git/srv" />
<import manifest="foo_manifest.git" remotes="origin" />
</manifest>
""")
git_server.push_file("manifest.git", "manifest.xml", content % tmpdir, branch="devel")
content = (""" \
<manifest>
<remote name="origin" review="false" url="file://%s/git/srv" />
<repo branch="master" project="foo.git" remotes="origin" src="foo" />
<repo branch="master" project="bar.git" remotes="origin" />
</manifest>
""")
git_server.push_file("foo_manifest.git", "manifest.xml", content % tmpdir, branch="devel")
qisys.script.run_action("qisrc.actions.init",
[git_server.manifest_url, "--branch", "devel"])
git_worktree = TestGitWorkTree()
assert len(git_worktree.git_projects) == 2
def test_import_manifest_recursive(cd_to_tmpdir, tmpdir, git_server):
""" Test Import Manifest Recursive """
git_server.create_repo("foo_manifest.git")
git_server.create_repo("bar_manifest.git")
git_server.create_repo("bar.git")
git_server.create_repo("foo.git")
git_server.create_repo("baz.git")
content = (""" \
<manifest>
<remote name="origin" url="file://%s/git/srv" />
<repo branch="master" project="baz.git" remotes="origin" />
<import manifest="foo_manifest.git" remotes="origin" />
</manifest>
""")
git_server.push_file("manifest.git", "manifest.xml", content % tmpdir)
content = (""" \
<manifest>
<remote name="origin" review="false" url="file://%s/git/srv" />
<repo branch="master" project="foo.git" remotes="origin" src="foo" />
<import manifest="bar_manifest.git" remotes="origin" />
</manifest>
""")
git_server.push_file("foo_manifest.git", "manifest.xml", content % tmpdir)
content = (""" \
<manifest>
<remote name="origin" review="false" url="file://%s/git/srv" />
<repo branch="master" project="bar.git" remotes="origin" />
</manifest>
""")
git_server.push_file("bar_manifest.git", "manifest.xml", content % tmpdir)
qisys.script.run_action("qisrc.actions.init",
[git_server.manifest_url])
git_worktree = TestGitWorkTree()
assert len(git_worktree.git_projects) == 3
def test_import_manifest_branch(cd_to_tmpdir, tmpdir, git_server):
""" Test Import Manifest Branch """
git_server.create_repo("foo_manifest.git")
git_server.create_repo("bar_manifest.git")
git_server.create_repo("bar.git")
git_server.create_repo("foo.git")
git_server.create_repo("baz.git")
content = (""" \
<manifest>
<remote name="origin" url="file://%s/git/srv" />
<repo branch="master" project="baz.git" remotes="origin" />
<import manifest="foo_manifest.git" remotes="origin" branch="devel"/>
</manifest>
""")
git_server.push_file("manifest.git", "manifest.xml", content % tmpdir)
content = (""" \
<manifest>
<remote name="origin" review="false" url="file://%s/git/srv" />
<repo branch="master" project="foo.git" remotes="origin" src="foo" />
</manifest>
""")
git_server.push_file("foo_manifest.git", "manifest.xml", content % tmpdir)
content = (""" \
<manifest>
<remote name="origin" review="false" url="file://%s/git/srv" />
<repo branch="master" project="foo.git" remotes="origin" src="foo" />
<import manifest="bar_manifest.git" remotes="origin" />
</manifest>
""")
git_server.push_file("foo_manifest.git", "manifest.xml", content % tmpdir, branch="devel")
content = (""" \
<manifest>
<remote name="origin" review="false" url="file://%s/git/srv" />
<repo branch="master" project="bar.git" remotes="origin" />
</manifest>
""")
git_server.push_file("bar_manifest.git", "manifest.xml", content % tmpdir)
qisys.script.run_action("qisrc.actions.init",
[git_server.manifest_url])
git_worktree = TestGitWorkTree()
assert len(git_worktree.git_projects) == 3
def test_import_manifest_group(cd_to_tmpdir, tmpdir, git_server):
""" Test Import Manifest Group """
git_server.create_repo("foo_manifest.git")
git_server.create_repo("bar.git")
git_server.create_repo("foo.git")
git_server.create_repo("baz.git")
content = (""" \
<manifest>
<remote name="origin" url="%s/git/srv" />
<repo branch="master" project="baz.git" remotes="origin" />
<import manifest="foo_manifest.git" remotes="origin" />
<groups>
<group name="baz">
<project name="baz.git"/>
</group>
</groups>
</manifest>
""")
git_server.push_file("manifest.git", "manifest.xml", content % tmpdir)
content = (""" \
<manifest>
<remote name="origin" review="false" url="%s/git/srv" />
<repo branch="master" project="foo.git" remotes="origin" src="foo" />
<repo branch="master" project="bar.git" remotes="origin" />
<groups>
<group name="foo">
<project name="foo.git"/>
<project name="bar.git"/>
</group>
</groups>
</manifest>
""")
git_server.push_file("foo_manifest.git", "manifest.xml", content % tmpdir)
qisys.script.run_action("qisrc.actions.init",
[git_server.manifest_url, "--group", "foo"])
git_worktree = TestGitWorkTree()
assert len(git_worktree.git_projects) == 2
def test_import_manifest_add_group(cd_to_tmpdir, tmpdir, git_server, qisrc_action):
""" Test Import Manifest Add Group """
git_server.create_repo("foo_manifest.git")
git_server.create_repo("bar.git")
git_server.create_repo("foo.git")
git_server.create_repo("baz.git")
content = (""" \
<manifest>
<remote name="origin" url="%s/git/srv" />
<repo branch="master" project="baz.git" remotes="origin" />
<import manifest="foo_manifest.git" remotes="origin" />
<groups>
<group name="baz">
<project name="baz.git"/>
</group>
</groups>
</manifest>
""")
git_server.push_file("manifest.git", "manifest.xml", content % tmpdir)
content = (""" \
<manifest>
<remote name="origin" review="false" url="%s/git/srv" />
<repo branch="master" project="foo.git" remotes="origin" src="foo" />
<repo branch="master" project="bar.git" remotes="origin" />
<groups>
<group name="foo">
<project name="foo.git"/>
<project name="bar.git"/>
</group>
</groups>
</manifest>
""")
git_server.push_file("foo_manifest.git", "manifest.xml", content % tmpdir)
qisrc_action("init", git_server.manifest_url, "--group", "baz")
git_worktree = TestGitWorkTree()
assert len(git_worktree.git_projects) == 1
qisrc_action("add-group", "foo")
git_worktree = TestGitWorkTree()
assert len(git_worktree.git_projects) == 3
def test_import_manifest_group_use_imported_group(cd_to_tmpdir, tmpdir, git_server, qisrc_action):
""" Test Import Manifest Group Use Imported Group """
git_server.create_repo("foo_manifest.git")
git_server.create_repo("bar.git")
git_server.create_repo("foo.git")
git_server.create_repo("baz.git")
content = (""" \
<manifest>
<remote name="origin" url="%s/git/srv" />
<repo branch="master" project="baz.git" remotes="origin" />
<import manifest="foo_manifest.git" remotes="origin" />
<groups>
<group name="baz">
<group name="foo"/>
<project name="baz.git"/>
</group>
</groups>
</manifest>
""")
git_server.push_file("manifest.git", "manifest.xml", content % tmpdir)
content = (""" \
<manifest>
<remote name="origin" review="false" url="%s/git/srv" />
<repo branch="master" project="foo.git" remotes="origin" src="foo" />
<repo branch="master" project="bar.git" remotes="origin" />
<groups>
<group name="foo">
<project name="foo.git"/>
<project name="bar.git"/>
</group>
</groups>
</manifest>
""")
git_server.push_file("foo_manifest.git", "manifest.xml", content % tmpdir)
qisrc_action("init", git_server.manifest_url, "--group", "baz")
git_worktree = TestGitWorkTree()
assert len(git_worktree.git_projects) == 3
| 37.422383
| 98
| 0.618561
| 1,238
| 10,366
| 4.99273
| 0.075121
| 0.088821
| 0.077657
| 0.089144
| 0.938359
| 0.933182
| 0.933182
| 0.928814
| 0.923961
| 0.90309
| 0
| 0.002084
| 0.212908
| 10,366
| 276
| 99
| 37.557971
| 0.755485
| 0.041868
| 0
| 0.915612
| 0
| 0.059072
| 0.571154
| 0.045547
| 0
| 0
| 0
| 0
| 0.033755
| 1
| 0.029536
| false
| 0
| 0.088608
| 0
| 0.118143
| 0.004219
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
60de5a34eae1581abccc9091708d5decd16c4d54
| 2,460
|
py
|
Python
|
acd-annotator-python/acd_annotator_python/tests/test_acd_annotator.py
|
Alvearie/acd-extension-framework
|
04779a66dec3be9cd0f1899037eaba9c505d3edd
|
[
"Apache-2.0"
] | 2
|
2021-04-20T17:30:37.000Z
|
2021-11-28T01:03:27.000Z
|
acd-annotator-python/acd_annotator_python/tests/test_acd_annotator.py
|
Alvearie/acd-extension-framework
|
04779a66dec3be9cd0f1899037eaba9c505d3edd
|
[
"Apache-2.0"
] | 2
|
2021-04-15T14:16:10.000Z
|
2021-04-16T16:45:58.000Z
|
acd-annotator-python/acd_annotator_python/tests/test_acd_annotator.py
|
Alvearie/acd-extension-framework
|
04779a66dec3be9cd0f1899037eaba9c505d3edd
|
[
"Apache-2.0"
] | 4
|
2021-04-15T14:11:10.000Z
|
2021-08-10T19:19:46.000Z
|
# ***************************************************************** #
# #
# (C) Copyright IBM Corp. 2021 #
# #
# SPDX-License-Identifier: Apache-2.0 #
# #
# ***************************************************************** #
import pytest
from fastapi import Request
from acd_annotator_python.acd_annotator import ACDAnnotator
from acd_annotator_python.container_model.main import UnstructuredContainer
def test_good_acd_annotator():
# trying to instantiate an ACDAnnotator with
# non-async methods should raise an error
class NoopAnnotator(ACDAnnotator):
"""A simple annotator that does nothing for testing purposes"""
def on_startup(self, app):
pass
async def is_healthy(self, app): # ERROR! must be async!
return True
async def annotate(self, unstructured_container: UnstructuredContainer, request: Request):
pass
NoopAnnotator()
def test_bad_acd_annotator1():
with pytest.raises(AssertionError):
# trying to instantiate an ACDAnnotator with
# non-async methods should raise an error
class NoopAnnotator(ACDAnnotator):
"""A simple annotator that does nothing for testing purposes"""
def on_startup(self, app):
pass
def is_healthy(self, app): # ERROR! must be async!
return True
async def annotate(self, unstructured_container: UnstructuredContainer, request: Request):
pass
NoopAnnotator()
def test_bad_acd_annotator2():
with pytest.raises(AssertionError):
# trying to instantiate an ACDAnnotator with
# non-async methods should raise an error
class NoopAnnotator(ACDAnnotator):
"""A simple annotator that does nothing for testing purposes"""
def on_startup(self, app):
pass
async def is_healthy(self, app): # ERROR! must be async!
return True
def annotate(self, unstructured_container: UnstructuredContainer, request: Request):
pass
NoopAnnotator()
# enable to debug
if __name__ == '__main__':
test_bad_acd_annotator1()
| 35.652174
| 102
| 0.547561
| 227
| 2,460
| 5.779736
| 0.30837
| 0.032012
| 0.043445
| 0.048018
| 0.778201
| 0.778201
| 0.778201
| 0.778201
| 0.778201
| 0.778201
| 0
| 0.005545
| 0.340244
| 2,460
| 68
| 103
| 36.176471
| 0.802834
| 0.395935
| 0
| 0.685714
| 0
| 0
| 0.005529
| 0
| 0
| 0
| 0
| 0
| 0.057143
| 1
| 0.228571
| false
| 0.171429
| 0.114286
| 0.028571
| 0.514286
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 0
| 1
| 0
|
0
| 8
|
715a54a2e7f5026b0963aa5702c910cdfdec8f83
| 8,046
|
py
|
Python
|
tests/test_management_runner.py
|
joehybird/django-north
|
b18c744689a8e7464ad005bc208d7d8c95a49bcc
|
[
"MIT"
] | null | null | null |
tests/test_management_runner.py
|
joehybird/django-north
|
b18c744689a8e7464ad005bc208d7d8c95a49bcc
|
[
"MIT"
] | null | null | null |
tests/test_management_runner.py
|
joehybird/django-north
|
b18c744689a8e7464ad005bc208d7d8c95a49bcc
|
[
"MIT"
] | null | null | null |
import io
import os.path
from django.db import connection
from django_north.management.runner import Block
from django_north.management.runner import MetaBlock
from django_north.management.runner import Script
from django_north.management.runner import SimpleBlock
def test_script_init(settings):
root = os.path.dirname(__file__)
settings.NORTH_MIGRATIONS_ROOT = os.path.join(root, 'test_data/sql')
# Simple script
path = os.path.join(settings.NORTH_MIGRATIONS_ROOT,
'16.12/16.12-0-version-dml.sql')
with io.open(path, 'r', encoding='utf8') as f:
script = Script(f)
assert len(script.block_list) == 1
assert isinstance(script.block_list[0], SimpleBlock) is True
# Manual script without metablocks
path = os.path.join(settings.NORTH_MIGRATIONS_ROOT,
'17.01/manual/17.01-feature_a-070-dl.sql')
with io.open(path, 'r', encoding='utf8') as f:
script = Script(f)
assert len(script.block_list) == 1
assert isinstance(script.block_list[0], SimpleBlock) is False
assert isinstance(script.block_list[0], Block) is True
# Manual script with metablocks
path = os.path.join(settings.NORTH_MIGRATIONS_ROOT,
'17.01/manual/17.01-feature_a-040-dml.sql')
with io.open(path, 'r', encoding='utf8') as f:
script = Script(f)
assert len(script.block_list) == 3
assert isinstance(script.block_list[0], SimpleBlock) is False
assert isinstance(script.block_list[0], Block) is True
assert isinstance(script.block_list[1], MetaBlock) is True
assert isinstance(script.block_list[2], SimpleBlock) is False
assert isinstance(script.block_list[2], Block) is True
# Manual script not in 'manual' subdirectory
path = os.path.join(settings.NORTH_MIGRATIONS_ROOT,
'17.02/17.02-feature_b_manual-dml.sql')
with io.open(path, 'r', encoding='utf8') as f:
script = Script(f)
assert len(script.block_list) == 3
assert isinstance(script.block_list[0], SimpleBlock) is False
assert isinstance(script.block_list[0], Block) is True
assert isinstance(script.block_list[1], MetaBlock) is True
assert isinstance(script.block_list[2], SimpleBlock) is False
assert isinstance(script.block_list[2], Block) is True
# None manual script not in 'manual' subdirectory
path = os.path.join(settings.NORTH_MIGRATIONS_ROOT,
'17.02/17.02-feature_c_fakemanual-ddl.sql')
with io.open(path, 'r', encoding='utf8') as f:
script = Script(f)
assert len(script.block_list) == 1
assert isinstance(script.block_list[0], SimpleBlock) is True
# Non manual script but it contains 'CONCURRENTLY' keyword
settings.NORTH_NON_TRANSACTIONAL_KEYWORDS = ['CONCURRENTLY']
path = os.path.join(settings.NORTH_MIGRATIONS_ROOT,
'17.01/17.01-feature_b-ddl.sql')
with io.open(path, 'r', encoding='utf8') as f:
script = Script(f)
assert len(script.block_list) == 1
assert isinstance(script.block_list[0], SimpleBlock) is False
assert isinstance(script.block_list[0], Block) is True
# Non manual script but 'CONCURRENTLY' is not a keyword
settings.NORTH_NON_TRANSACTIONAL_KEYWORDS = []
path = os.path.join(settings.NORTH_MIGRATIONS_ROOT,
'17.01/17.01-feature_b-ddl.sql')
with io.open(path, 'r', encoding='utf8') as f:
script = Script(f)
assert len(script.block_list) == 1
assert isinstance(script.block_list[0], SimpleBlock) is True
def test_simple_script_run(settings, mocker):
root = os.path.dirname(__file__)
settings.NORTH_MIGRATIONS_ROOT = os.path.join(root, 'test_data/sql')
mock_simple_run = mocker.patch(
'django_north.management.runner.SimpleBlock.run')
mock_run = mocker.patch('django_north.management.runner.Block.run')
mock_meta_run = mocker.patch(
'django_north.management.runner.MetaBlock.run')
mock_discard_run = mocker.patch(
'django_north.management.runner.DiscardBlock.run')
# Simple script
path = os.path.join(settings.NORTH_MIGRATIONS_ROOT,
'16.12/16.12-0-version-dml.sql')
with io.open(path, 'r', encoding='utf8') as f:
script = Script(f)
assert len(script.block_list) == 1
script.run('foo')
assert mock_simple_run.call_args_list == [mocker.call('foo')]
assert mock_run.called is False
assert mock_meta_run.called is False
assert mock_discard_run.called is True
def test_simple_script_run_no_discard(settings, mocker):
root = os.path.dirname(__file__)
settings.NORTH_MIGRATIONS_ROOT = os.path.join(root, 'test_data/sql')
settings.NORTH_DISCARD_ALL = False
mock_simple_run = mocker.patch(
'django_north.management.runner.SimpleBlock.run')
mock_run = mocker.patch('django_north.management.runner.Block.run')
mock_meta_run = mocker.patch(
'django_north.management.runner.MetaBlock.run')
mock_discard_run = mocker.patch(
'django_north.management.runner.DiscardBlock.run')
# Simple script
path = os.path.join(settings.NORTH_MIGRATIONS_ROOT,
'16.12/16.12-0-version-dml.sql')
with io.open(path, 'r', encoding='utf8') as f:
script = Script(f)
assert len(script.block_list) == 1
script.run('foo')
assert mock_simple_run.call_args_list == [mocker.call('foo')]
assert mock_run.called is False
assert mock_meta_run.called is False
# The most important result here: we don't run the discard command.
assert mock_discard_run.called is False
def test_manual_script_run(settings, mocker):
root = os.path.dirname(__file__)
settings.NORTH_MIGRATIONS_ROOT = os.path.join(root, 'test_data/sql')
mock_simple_run = mocker.patch(
'django_north.management.runner.SimpleBlock.run')
mock_run = mocker.patch('django_north.management.runner.Block.run')
mock_meta_run = mocker.patch(
'django_north.management.runner.MetaBlock.run')
mock_discard_run = mocker.patch(
'django_north.management.runner.DiscardBlock.run')
# Manual script with metablocks
path = os.path.join(settings.NORTH_MIGRATIONS_ROOT,
'17.01/manual/17.01-feature_a-040-dml.sql')
with io.open(path, 'r', encoding='utf8') as f:
script = Script(f)
assert len(script.block_list) == 3
script.run('foo')
assert mock_simple_run.called is False
assert mock_run.call_args_list == [mocker.call('foo'), mocker.call('foo')]
assert mock_meta_run.call_args_list == [mocker.call('foo')]
assert mock_discard_run.called is True
def test_block_run(settings, mocker):
root = os.path.dirname(__file__)
settings.NORTH_MIGRATIONS_ROOT = os.path.join(root, 'test_data/sql')
cursor = mocker.MagicMock(rowcount=0)
mock_cursor = mocker.patch('django.db.connection.cursor')
mock_cursor.return_value.__enter__.return_value = cursor
# Simple script
path = os.path.join(settings.NORTH_MIGRATIONS_ROOT,
'16.12/16.12-0-version-dml.sql')
with io.open(path, 'r', encoding='utf8') as f:
script = Script(f)
assert len(script.block_list) == 1
block = script.block_list[0]
block.run(connection)
# comment + instruction
# last comment is ignored
assert len(cursor.execute.call_args_list) == 1
cursor.execute.reset_mock()
cursor.rowcount = 0
# Manual script with metablocks
path = os.path.join(settings.NORTH_MIGRATIONS_ROOT,
'17.01/manual/17.01-feature_a-040-dml.sql')
with io.open(path, 'r', encoding='utf8') as f:
script = Script(f)
assert len(script.block_list) == 3
# execute until rowcount == 0
mock_run = mocker.patch(
'django_north.management.runner.Block.run',
side_effect=[500, 299, 0])
meta_block = script.block_list[1]
meta_block.run(connection)
# block executed 3 times
assert len(mock_run.call_args_list) == 3
| 39.441176
| 78
| 0.686925
| 1,130
| 8,046
| 4.70708
| 0.10354
| 0.06411
| 0.087422
| 0.086294
| 0.872532
| 0.860688
| 0.799962
| 0.783606
| 0.783606
| 0.763677
| 0
| 0.026047
| 0.198359
| 8,046
| 203
| 79
| 39.635468
| 0.798605
| 0.067487
| 0
| 0.763158
| 0
| 0
| 0.156045
| 0.134536
| 0
| 0
| 0
| 0
| 0.282895
| 1
| 0.032895
| false
| 0
| 0.046053
| 0
| 0.078947
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
7173bbc31a001fd133012b9a19e63099d76b4e80
| 42,800
|
py
|
Python
|
Samples/petstore/Python/swaggerpetstore/swagger_petstore.py
|
ratchapol-an/autorest
|
c419134517972d9c97177180d2a2faaaff4cc36a
|
[
"MIT"
] | 12
|
2017-03-15T11:05:19.000Z
|
2019-08-22T07:47:31.000Z
|
Samples/petstore/Python/swaggerpetstore/swagger_petstore.py
|
ratchapol-an/autorest
|
c419134517972d9c97177180d2a2faaaff4cc36a
|
[
"MIT"
] | 14
|
2018-01-24T05:36:23.000Z
|
2019-06-28T10:59:42.000Z
|
Samples/petstore/Python/swaggerpetstore/swagger_petstore.py
|
ratchapol-an/autorest
|
c419134517972d9c97177180d2a2faaaff4cc36a
|
[
"MIT"
] | 15
|
2017-03-23T05:38:05.000Z
|
2019-07-23T05:33:37.000Z
|
# coding=utf-8
# --------------------------------------------------------------------------
# --------------------------------------------------------------------------
from msrest.service_client import ServiceClient
from msrest import Configuration, Serializer, Deserializer
from .version import VERSION
from msrest.pipeline import ClientRawResponse
from msrest.exceptions import HttpOperationError
from . import models
class SwaggerPetstoreConfiguration(Configuration):
"""Configuration for SwaggerPetstore
Note that all parameters used to create this instance are saved as instance
attributes.
:param str base_url: Service URL
:param str filepath: Existing config
"""
def __init__(
self, base_url=None, filepath=None):
if not base_url:
base_url = 'http://petstore.swagger.io/v2'
super(SwaggerPetstoreConfiguration, self).__init__(base_url, filepath)
self.add_user_agent('swaggerpetstore/{}'.format(VERSION))
class SwaggerPetstore(object):
"""This is a sample server Petstore server. You can find out more about Swagger at <a href="http://swagger.io">http://swagger.io</a> or on irc.freenode.net, #swagger. For this sample, you can use the api key "special-key" to test the authorization filters
:ivar config: Configuration for client.
:vartype config: SwaggerPetstoreConfiguration
:param str base_url: Service URL
:param str filepath: Existing config
"""
def __init__(
self, base_url=None, filepath=None):
self.config = SwaggerPetstoreConfiguration(base_url, filepath)
self._client = ServiceClient(None, self.config)
client_models = {k: v for k, v in models.__dict__.items() if isinstance(v, type)}
self._serialize = Serializer(client_models)
self._deserialize = Deserializer(client_models)
def add_pet_using_byte_array(
self, body=None, custom_headers=None, raw=False, **operation_config):
"""Fake endpoint to test byte array in body parameter for adding a new pet
to the store.
:param body: Pet object in the form of byte array
:type body: str
:param dict custom_headers: headers that will be added to the request
:param bool raw: returns the direct response alongside the
deserialized response
:param operation_config: :ref:`Operation configuration
overrides<msrest:optionsforoperations>`.
:rtype: None
:rtype: :class:`ClientRawResponse<msrest.pipeline.ClientRawResponse>`
if raw=true
:raises:
:class:`HttpOperationError<msrest.exceptions.HttpOperationError>`
"""
# Construct URL
url = '/pet'
# Construct parameters
query_parameters = {}
# Construct headers
header_parameters = {}
header_parameters['Content-Type'] = 'application/json; charset=utf-8'
if custom_headers:
header_parameters.update(custom_headers)
# Construct body
if body is not None:
body_content = self._serialize.body(body, 'str')
else:
body_content = None
# Construct and send request
request = self._client.post(url, query_parameters)
response = self._client.send(
request, header_parameters, body_content, **operation_config)
if response.status_code not in [405]:
raise HttpOperationError(self._deserialize, response)
if raw:
client_raw_response = ClientRawResponse(None, response)
return client_raw_response
def add_pet(
self, body=None, custom_headers=None, raw=False, **operation_config):
"""Add a new pet to the store.
Adds a new pet to the store. You may receive an HTTP invalid input if
your pet is invalid.
:param body: Pet object that needs to be added to the store
:type body: :class:`Pet <petstore.models.Pet>`
:param dict custom_headers: headers that will be added to the request
:param bool raw: returns the direct response alongside the
deserialized response
:param operation_config: :ref:`Operation configuration
overrides<msrest:optionsforoperations>`.
:rtype: None
:rtype: :class:`ClientRawResponse<msrest.pipeline.ClientRawResponse>`
if raw=true
:raises:
:class:`HttpOperationError<msrest.exceptions.HttpOperationError>`
"""
# Construct URL
url = '/pet'
# Construct parameters
query_parameters = {}
# Construct headers
header_parameters = {}
header_parameters['Content-Type'] = 'application/json; charset=utf-8'
if custom_headers:
header_parameters.update(custom_headers)
# Construct body
if body is not None:
body_content = self._serialize.body(body, 'Pet')
else:
body_content = None
# Construct and send request
request = self._client.post(url, query_parameters)
response = self._client.send(
request, header_parameters, body_content, **operation_config)
if response.status_code not in [405]:
raise HttpOperationError(self._deserialize, response)
if raw:
client_raw_response = ClientRawResponse(None, response)
return client_raw_response
def update_pet(
self, body=None, custom_headers=None, raw=False, **operation_config):
"""Update an existing pet.
:param body: Pet object that needs to be added to the store
:type body: :class:`Pet <petstore.models.Pet>`
:param dict custom_headers: headers that will be added to the request
:param bool raw: returns the direct response alongside the
deserialized response
:param operation_config: :ref:`Operation configuration
overrides<msrest:optionsforoperations>`.
:rtype: None
:rtype: :class:`ClientRawResponse<msrest.pipeline.ClientRawResponse>`
if raw=true
:raises:
:class:`HttpOperationError<msrest.exceptions.HttpOperationError>`
"""
# Construct URL
url = '/pet'
# Construct parameters
query_parameters = {}
# Construct headers
header_parameters = {}
header_parameters['Content-Type'] = 'application/json; charset=utf-8'
if custom_headers:
header_parameters.update(custom_headers)
# Construct body
if body is not None:
body_content = self._serialize.body(body, 'Pet')
else:
body_content = None
# Construct and send request
request = self._client.put(url, query_parameters)
response = self._client.send(
request, header_parameters, body_content, **operation_config)
if response.status_code not in [405, 404, 400]:
raise HttpOperationError(self._deserialize, response)
if raw:
client_raw_response = ClientRawResponse(None, response)
return client_raw_response
def find_pets_by_status(
self, status=None, custom_headers=None, raw=False, **operation_config):
"""Finds Pets by status.
Multiple status values can be provided with comma seperated strings.
:param status: Status values that need to be considered for filter
:type status: list of str
:param dict custom_headers: headers that will be added to the request
:param bool raw: returns the direct response alongside the
deserialized response
:param operation_config: :ref:`Operation configuration
overrides<msrest:optionsforoperations>`.
:rtype: list of :class:`Pet <petstore.models.Pet>`
:rtype: :class:`ClientRawResponse<msrest.pipeline.ClientRawResponse>`
if raw=true
:raises:
:class:`HttpOperationError<msrest.exceptions.HttpOperationError>`
"""
# Construct URL
url = '/pet/findByStatus'
# Construct parameters
query_parameters = {}
if status is not None:
query_parameters['status'] = self._serialize.query("status", status, '[str]', div=',')
# Construct headers
header_parameters = {}
header_parameters['Content-Type'] = 'application/json; charset=utf-8'
if custom_headers:
header_parameters.update(custom_headers)
# Construct and send request
request = self._client.get(url, query_parameters)
response = self._client.send(request, header_parameters, **operation_config)
if response.status_code not in [200, 400]:
raise HttpOperationError(self._deserialize, response)
deserialized = None
if response.status_code == 200:
deserialized = self._deserialize('[Pet]', response)
if raw:
client_raw_response = ClientRawResponse(deserialized, response)
return client_raw_response
return deserialized
def find_pets_by_tags(
self, tags=None, custom_headers=None, raw=False, **operation_config):
"""Finds Pets by tags.
Muliple tags can be provided with comma seperated strings. Use tag1,
tag2, tag3 for testing.
:param tags: Tags to filter by
:type tags: list of str
:param dict custom_headers: headers that will be added to the request
:param bool raw: returns the direct response alongside the
deserialized response
:param operation_config: :ref:`Operation configuration
overrides<msrest:optionsforoperations>`.
:rtype: list of :class:`Pet <petstore.models.Pet>`
:rtype: :class:`ClientRawResponse<msrest.pipeline.ClientRawResponse>`
if raw=true
:raises:
:class:`HttpOperationError<msrest.exceptions.HttpOperationError>`
"""
# Construct URL
url = '/pet/findByTags'
# Construct parameters
query_parameters = {}
if tags is not None:
query_parameters['tags'] = self._serialize.query("tags", tags, '[str]', div=',')
# Construct headers
header_parameters = {}
header_parameters['Content-Type'] = 'application/json; charset=utf-8'
if custom_headers:
header_parameters.update(custom_headers)
# Construct and send request
request = self._client.get(url, query_parameters)
response = self._client.send(request, header_parameters, **operation_config)
if response.status_code not in [200, 400]:
raise HttpOperationError(self._deserialize, response)
deserialized = None
if response.status_code == 200:
deserialized = self._deserialize('[Pet]', response)
if raw:
client_raw_response = ClientRawResponse(deserialized, response)
return client_raw_response
return deserialized
def find_pets_with_byte_array(
self, pet_id, custom_headers=None, raw=False, **operation_config):
"""Fake endpoint to test byte array return by 'Find pet by ID'.
Returns a pet when ID < 10. ID > 10 or nonintegers will simulate API
error conditions.
:param pet_id: ID of pet that needs to be fetched
:type pet_id: long
:param dict custom_headers: headers that will be added to the request
:param bool raw: returns the direct response alongside the
deserialized response
:param operation_config: :ref:`Operation configuration
overrides<msrest:optionsforoperations>`.
:rtype: str
:rtype: :class:`ClientRawResponse<msrest.pipeline.ClientRawResponse>`
if raw=true
:raises:
:class:`HttpOperationError<msrest.exceptions.HttpOperationError>`
"""
# Construct URL
url = '/pet/{petId}'
path_format_arguments = {
'petId': self._serialize.url("pet_id", pet_id, 'long')
}
url = self._client.format_url(url, **path_format_arguments)
# Construct parameters
query_parameters = {}
# Construct headers
header_parameters = {}
header_parameters['Content-Type'] = 'application/json; charset=utf-8'
if custom_headers:
header_parameters.update(custom_headers)
# Construct and send request
request = self._client.get(url, query_parameters)
response = self._client.send(request, header_parameters, **operation_config)
if response.status_code not in [404, 200, 400]:
raise HttpOperationError(self._deserialize, response)
deserialized = None
if response.status_code == 200:
deserialized = self._deserialize('str', response)
if raw:
client_raw_response = ClientRawResponse(deserialized, response)
return client_raw_response
return deserialized
def get_pet_by_id(
self, pet_id, custom_headers=None, raw=False, **operation_config):
"""Find pet by ID.
Returns a pet when ID < 10. ID > 10 or nonintegers will simulate API
error conditions.
:param pet_id: ID of pet that needs to be fetched
:type pet_id: long
:param dict custom_headers: headers that will be added to the request
:param bool raw: returns the direct response alongside the
deserialized response
:param operation_config: :ref:`Operation configuration
overrides<msrest:optionsforoperations>`.
:rtype: :class:`Pet <petstore.models.Pet>`
:rtype: :class:`ClientRawResponse<msrest.pipeline.ClientRawResponse>`
if raw=true
:raises:
:class:`HttpOperationError<msrest.exceptions.HttpOperationError>`
"""
# Construct URL
url = '/pet/{petId}'
path_format_arguments = {
'petId': self._serialize.url("pet_id", pet_id, 'long')
}
url = self._client.format_url(url, **path_format_arguments)
# Construct parameters
query_parameters = {}
# Construct headers
header_parameters = {}
header_parameters['Content-Type'] = 'application/json; charset=utf-8'
if custom_headers:
header_parameters.update(custom_headers)
# Construct and send request
request = self._client.get(url, query_parameters)
response = self._client.send(request, header_parameters, **operation_config)
if response.status_code not in [404, 200, 400]:
raise HttpOperationError(self._deserialize, response)
deserialized = None
if response.status_code == 200:
deserialized = self._deserialize('Pet', response)
if raw:
client_raw_response = ClientRawResponse(deserialized, response)
return client_raw_response
return deserialized
def update_pet_with_form(
self, pet_id, name=None, status=None, custom_headers=None, raw=False, **operation_config):
"""Updates a pet in the store with form data.
:param pet_id: ID of pet that needs to be updated
:type pet_id: str
:param name: Updated name of the pet
:type name: str
:param status: Updated status of the pet
:type status: str
:param dict custom_headers: headers that will be added to the request
:param bool raw: returns the direct response alongside the
deserialized response
:param operation_config: :ref:`Operation configuration
overrides<msrest:optionsforoperations>`.
:rtype: None
:rtype: :class:`ClientRawResponse<msrest.pipeline.ClientRawResponse>`
if raw=true
:raises:
:class:`HttpOperationError<msrest.exceptions.HttpOperationError>`
"""
# Construct URL
url = '/pet/{petId}'
path_format_arguments = {
'petId': self._serialize.url("pet_id", pet_id, 'str')
}
url = self._client.format_url(url, **path_format_arguments)
# Construct parameters
query_parameters = {}
# Construct headers
header_parameters = {}
header_parameters['Content-Type'] = 'application/x-www-form-urlencoded'
if custom_headers:
header_parameters.update(custom_headers)
# Construct form data
form_data_content = {
'name': name,
'status': status,
}
# Construct and send request
request = self._client.post(url, query_parameters)
response = self._client.send_formdata(
request, header_parameters, form_data_content, **operation_config)
if response.status_code not in [405]:
raise HttpOperationError(self._deserialize, response)
if raw:
client_raw_response = ClientRawResponse(None, response)
return client_raw_response
def delete_pet(
self, pet_id, api_key=None, custom_headers=None, raw=False, **operation_config):
"""Deletes a pet.
:param pet_id: Pet id to delete
:type pet_id: long
:param api_key:
:type api_key: str
:param dict custom_headers: headers that will be added to the request
:param bool raw: returns the direct response alongside the
deserialized response
:param operation_config: :ref:`Operation configuration
overrides<msrest:optionsforoperations>`.
:rtype: None
:rtype: :class:`ClientRawResponse<msrest.pipeline.ClientRawResponse>`
if raw=true
:raises:
:class:`HttpOperationError<msrest.exceptions.HttpOperationError>`
"""
# Construct URL
url = '/pet/{petId}'
path_format_arguments = {
'petId': self._serialize.url("pet_id", pet_id, 'long')
}
url = self._client.format_url(url, **path_format_arguments)
# Construct parameters
query_parameters = {}
# Construct headers
header_parameters = {}
header_parameters['Content-Type'] = 'application/json; charset=utf-8'
if custom_headers:
header_parameters.update(custom_headers)
if api_key is not None:
header_parameters['api_key'] = self._serialize.header("api_key", api_key, 'str')
# Construct and send request
request = self._client.delete(url, query_parameters)
response = self._client.send(request, header_parameters, **operation_config)
if response.status_code not in [400]:
raise HttpOperationError(self._deserialize, response)
if raw:
client_raw_response = ClientRawResponse(None, response)
return client_raw_response
def upload_file(
self, pet_id, additional_metadata=None, file=None, custom_headers=None, raw=False, **operation_config):
"""uploads an image.
:param pet_id: ID of pet to update
:type pet_id: long
:param additional_metadata: Additional data to pass to server
:type additional_metadata: str
:param file: file to upload
:type file: Generator
:param dict custom_headers: headers that will be added to the request
:param bool raw: returns the direct response alongside the
deserialized response
:param operation_config: :ref:`Operation configuration
overrides<msrest:optionsforoperations>`.
:rtype: None
:rtype: :class:`ClientRawResponse<msrest.pipeline.ClientRawResponse>`
if raw=true
:raises:
:class:`HttpOperationError<msrest.exceptions.HttpOperationError>`
"""
# Construct URL
url = '/pet/{petId}/uploadImage'
path_format_arguments = {
'petId': self._serialize.url("pet_id", pet_id, 'long')
}
url = self._client.format_url(url, **path_format_arguments)
# Construct parameters
query_parameters = {}
# Construct headers
header_parameters = {}
header_parameters['Content-Type'] = 'multipart/form-data'
if custom_headers:
header_parameters.update(custom_headers)
# Construct form data
form_data_content = {
'additionalMetadata': additional_metadata,
'file': file,
}
# Construct and send request
request = self._client.post(url, query_parameters)
response = self._client.send_formdata(
request, header_parameters, form_data_content, **operation_config)
if response.status_code < 200 or response.status_code >= 300:
raise HttpOperationError(self._deserialize, response)
if raw:
client_raw_response = ClientRawResponse(None, response)
return client_raw_response
def get_inventory(
self, custom_headers=None, raw=False, **operation_config):
"""Returns pet inventories by status.
Returns a map of status codes to quantities.
:param dict custom_headers: headers that will be added to the request
:param bool raw: returns the direct response alongside the
deserialized response
:param operation_config: :ref:`Operation configuration
overrides<msrest:optionsforoperations>`.
:rtype: dict
:rtype: :class:`ClientRawResponse<msrest.pipeline.ClientRawResponse>`
if raw=true
:raises:
:class:`HttpOperationError<msrest.exceptions.HttpOperationError>`
"""
# Construct URL
url = '/store/inventory'
# Construct parameters
query_parameters = {}
# Construct headers
header_parameters = {}
header_parameters['Content-Type'] = 'application/json; charset=utf-8'
if custom_headers:
header_parameters.update(custom_headers)
# Construct and send request
request = self._client.get(url, query_parameters)
response = self._client.send(request, header_parameters, **operation_config)
if response.status_code not in [200]:
raise HttpOperationError(self._deserialize, response)
deserialized = None
if response.status_code == 200:
deserialized = self._deserialize('{int}', response)
if raw:
client_raw_response = ClientRawResponse(deserialized, response)
return client_raw_response
return deserialized
def place_order(
self, body=None, custom_headers=None, raw=False, **operation_config):
"""Place an order for a pet.
:param body: order placed for purchasing the pet
:type body: :class:`Order <petstore.models.Order>`
:param dict custom_headers: headers that will be added to the request
:param bool raw: returns the direct response alongside the
deserialized response
:param operation_config: :ref:`Operation configuration
overrides<msrest:optionsforoperations>`.
:rtype: :class:`Order <petstore.models.Order>`
:rtype: :class:`ClientRawResponse<msrest.pipeline.ClientRawResponse>`
if raw=true
:raises:
:class:`HttpOperationError<msrest.exceptions.HttpOperationError>`
"""
# Construct URL
url = '/store/order'
# Construct parameters
query_parameters = {}
# Construct headers
header_parameters = {}
header_parameters['Content-Type'] = 'application/json; charset=utf-8'
if custom_headers:
header_parameters.update(custom_headers)
# Construct body
if body is not None:
body_content = self._serialize.body(body, 'Order')
else:
body_content = None
# Construct and send request
request = self._client.post(url, query_parameters)
response = self._client.send(
request, header_parameters, body_content, **operation_config)
if response.status_code not in [200, 400]:
raise HttpOperationError(self._deserialize, response)
deserialized = None
if response.status_code == 200:
deserialized = self._deserialize('Order', response)
if raw:
client_raw_response = ClientRawResponse(deserialized, response)
return client_raw_response
return deserialized
def get_order_by_id(
self, order_id, custom_headers=None, raw=False, **operation_config):
"""Find purchase order by ID.
For valid response try integer IDs with value <= 5 or > 10. Other
values will generated exceptions.
:param order_id: ID of pet that needs to be fetched
:type order_id: str
:param dict custom_headers: headers that will be added to the request
:param bool raw: returns the direct response alongside the
deserialized response
:param operation_config: :ref:`Operation configuration
overrides<msrest:optionsforoperations>`.
:rtype: :class:`Order <petstore.models.Order>`
:rtype: :class:`ClientRawResponse<msrest.pipeline.ClientRawResponse>`
if raw=true
:raises:
:class:`HttpOperationError<msrest.exceptions.HttpOperationError>`
"""
# Construct URL
url = '/store/order/{orderId}'
path_format_arguments = {
'orderId': self._serialize.url("order_id", order_id, 'str')
}
url = self._client.format_url(url, **path_format_arguments)
# Construct parameters
query_parameters = {}
# Construct headers
header_parameters = {}
header_parameters['Content-Type'] = 'application/json; charset=utf-8'
if custom_headers:
header_parameters.update(custom_headers)
# Construct and send request
request = self._client.get(url, query_parameters)
response = self._client.send(request, header_parameters, **operation_config)
if response.status_code not in [404, 200, 400]:
raise HttpOperationError(self._deserialize, response)
deserialized = None
if response.status_code == 200:
deserialized = self._deserialize('Order', response)
if raw:
client_raw_response = ClientRawResponse(deserialized, response)
return client_raw_response
return deserialized
def delete_order(
self, order_id, custom_headers=None, raw=False, **operation_config):
"""Delete purchase order by ID.
For valid response try integer IDs with value < 1000. Anything above
1000 or nonintegers will generate API errors.
:param order_id: ID of the order that needs to be deleted
:type order_id: str
:param dict custom_headers: headers that will be added to the request
:param bool raw: returns the direct response alongside the
deserialized response
:param operation_config: :ref:`Operation configuration
overrides<msrest:optionsforoperations>`.
:rtype: None
:rtype: :class:`ClientRawResponse<msrest.pipeline.ClientRawResponse>`
if raw=true
:raises:
:class:`HttpOperationError<msrest.exceptions.HttpOperationError>`
"""
# Construct URL
url = '/store/order/{orderId}'
path_format_arguments = {
'orderId': self._serialize.url("order_id", order_id, 'str')
}
url = self._client.format_url(url, **path_format_arguments)
# Construct parameters
query_parameters = {}
# Construct headers
header_parameters = {}
header_parameters['Content-Type'] = 'application/json; charset=utf-8'
if custom_headers:
header_parameters.update(custom_headers)
# Construct and send request
request = self._client.delete(url, query_parameters)
response = self._client.send(request, header_parameters, **operation_config)
if response.status_code not in [404, 400]:
raise HttpOperationError(self._deserialize, response)
if raw:
client_raw_response = ClientRawResponse(None, response)
return client_raw_response
def create_user(
self, body=None, custom_headers=None, raw=False, **operation_config):
"""Create user.
This can only be done by the logged in user.
:param body: Created user object
:type body: :class:`User <petstore.models.User>`
:param dict custom_headers: headers that will be added to the request
:param bool raw: returns the direct response alongside the
deserialized response
:param operation_config: :ref:`Operation configuration
overrides<msrest:optionsforoperations>`.
:rtype: None
:rtype: :class:`ClientRawResponse<msrest.pipeline.ClientRawResponse>`
if raw=true
:raises:
:class:`HttpOperationError<msrest.exceptions.HttpOperationError>`
"""
# Construct URL
url = '/user'
# Construct parameters
query_parameters = {}
# Construct headers
header_parameters = {}
header_parameters['Content-Type'] = 'application/json; charset=utf-8'
if custom_headers:
header_parameters.update(custom_headers)
# Construct body
if body is not None:
body_content = self._serialize.body(body, 'User')
else:
body_content = None
# Construct and send request
request = self._client.post(url, query_parameters)
response = self._client.send(
request, header_parameters, body_content, **operation_config)
if response.status_code < 200 or response.status_code >= 300:
raise HttpOperationError(self._deserialize, response)
if raw:
client_raw_response = ClientRawResponse(None, response)
return client_raw_response
def create_users_with_array_input(
self, body=None, custom_headers=None, raw=False, **operation_config):
"""Creates list of users with given input array.
:param body: List of user object
:type body: list of :class:`User <petstore.models.User>`
:param dict custom_headers: headers that will be added to the request
:param bool raw: returns the direct response alongside the
deserialized response
:param operation_config: :ref:`Operation configuration
overrides<msrest:optionsforoperations>`.
:rtype: None
:rtype: :class:`ClientRawResponse<msrest.pipeline.ClientRawResponse>`
if raw=true
:raises:
:class:`HttpOperationError<msrest.exceptions.HttpOperationError>`
"""
# Construct URL
url = '/user/createWithArray'
# Construct parameters
query_parameters = {}
# Construct headers
header_parameters = {}
header_parameters['Content-Type'] = 'application/json; charset=utf-8'
if custom_headers:
header_parameters.update(custom_headers)
# Construct body
if body is not None:
body_content = self._serialize.body(body, '[User]')
else:
body_content = None
# Construct and send request
request = self._client.post(url, query_parameters)
response = self._client.send(
request, header_parameters, body_content, **operation_config)
if response.status_code < 200 or response.status_code >= 300:
raise HttpOperationError(self._deserialize, response)
if raw:
client_raw_response = ClientRawResponse(None, response)
return client_raw_response
def create_users_with_list_input(
self, body=None, custom_headers=None, raw=False, **operation_config):
"""Creates list of users with given input array.
:param body: List of user object
:type body: list of :class:`User <petstore.models.User>`
:param dict custom_headers: headers that will be added to the request
:param bool raw: returns the direct response alongside the
deserialized response
:param operation_config: :ref:`Operation configuration
overrides<msrest:optionsforoperations>`.
:rtype: None
:rtype: :class:`ClientRawResponse<msrest.pipeline.ClientRawResponse>`
if raw=true
:raises:
:class:`HttpOperationError<msrest.exceptions.HttpOperationError>`
"""
# Construct URL
url = '/user/createWithList'
# Construct parameters
query_parameters = {}
# Construct headers
header_parameters = {}
header_parameters['Content-Type'] = 'application/json; charset=utf-8'
if custom_headers:
header_parameters.update(custom_headers)
# Construct body
if body is not None:
body_content = self._serialize.body(body, '[User]')
else:
body_content = None
# Construct and send request
request = self._client.post(url, query_parameters)
response = self._client.send(
request, header_parameters, body_content, **operation_config)
if response.status_code < 200 or response.status_code >= 300:
raise HttpOperationError(self._deserialize, response)
if raw:
client_raw_response = ClientRawResponse(None, response)
return client_raw_response
def login_user(
self, username=None, password=None, custom_headers=None, raw=False, **operation_config):
"""Logs user into the system.
:param username: The user name for login
:type username: str
:param password: The password for login in clear text
:type password: str
:param dict custom_headers: headers that will be added to the request
:param bool raw: returns the direct response alongside the
deserialized response
:param operation_config: :ref:`Operation configuration
overrides<msrest:optionsforoperations>`.
:rtype: str
:rtype: :class:`ClientRawResponse<msrest.pipeline.ClientRawResponse>`
if raw=true
:raises:
:class:`HttpOperationError<msrest.exceptions.HttpOperationError>`
"""
# Construct URL
url = '/user/login'
# Construct parameters
query_parameters = {}
if username is not None:
query_parameters['username'] = self._serialize.query("username", username, 'str')
if password is not None:
query_parameters['password'] = self._serialize.query("password", password, 'str')
# Construct headers
header_parameters = {}
header_parameters['Content-Type'] = 'application/json; charset=utf-8'
if custom_headers:
header_parameters.update(custom_headers)
# Construct and send request
request = self._client.get(url, query_parameters)
response = self._client.send(request, header_parameters, **operation_config)
if response.status_code not in [200, 400]:
raise HttpOperationError(self._deserialize, response)
deserialized = None
if response.status_code == 200:
deserialized = self._deserialize('str', response)
if raw:
client_raw_response = ClientRawResponse(deserialized, response)
return client_raw_response
return deserialized
def logout_user(
self, custom_headers=None, raw=False, **operation_config):
"""Logs out current logged in user session.
:param dict custom_headers: headers that will be added to the request
:param bool raw: returns the direct response alongside the
deserialized response
:param operation_config: :ref:`Operation configuration
overrides<msrest:optionsforoperations>`.
:rtype: None
:rtype: :class:`ClientRawResponse<msrest.pipeline.ClientRawResponse>`
if raw=true
:raises:
:class:`HttpOperationError<msrest.exceptions.HttpOperationError>`
"""
# Construct URL
url = '/user/logout'
# Construct parameters
query_parameters = {}
# Construct headers
header_parameters = {}
header_parameters['Content-Type'] = 'application/json; charset=utf-8'
if custom_headers:
header_parameters.update(custom_headers)
# Construct and send request
request = self._client.get(url, query_parameters)
response = self._client.send(request, header_parameters, **operation_config)
if response.status_code < 200 or response.status_code >= 300:
raise HttpOperationError(self._deserialize, response)
if raw:
client_raw_response = ClientRawResponse(None, response)
return client_raw_response
def get_user_by_name(
self, username, custom_headers=None, raw=False, **operation_config):
"""Get user by user name.
:param username: The name that needs to be fetched. Use user1 for
testing.
:type username: str
:param dict custom_headers: headers that will be added to the request
:param bool raw: returns the direct response alongside the
deserialized response
:param operation_config: :ref:`Operation configuration
overrides<msrest:optionsforoperations>`.
:rtype: :class:`User <petstore.models.User>`
:rtype: :class:`ClientRawResponse<msrest.pipeline.ClientRawResponse>`
if raw=true
:raises:
:class:`HttpOperationError<msrest.exceptions.HttpOperationError>`
"""
# Construct URL
url = '/user/{username}'
path_format_arguments = {
'username': self._serialize.url("username", username, 'str')
}
url = self._client.format_url(url, **path_format_arguments)
# Construct parameters
query_parameters = {}
# Construct headers
header_parameters = {}
header_parameters['Content-Type'] = 'application/json; charset=utf-8'
if custom_headers:
header_parameters.update(custom_headers)
# Construct and send request
request = self._client.get(url, query_parameters)
response = self._client.send(request, header_parameters, **operation_config)
if response.status_code not in [404, 200, 400]:
raise HttpOperationError(self._deserialize, response)
deserialized = None
if response.status_code == 200:
deserialized = self._deserialize('User', response)
if raw:
client_raw_response = ClientRawResponse(deserialized, response)
return client_raw_response
return deserialized
def update_user(
self, username, body=None, custom_headers=None, raw=False, **operation_config):
"""Updated user.
This can only be done by the logged in user.
:param username: name that need to be deleted
:type username: str
:param body: Updated user object
:type body: :class:`User <petstore.models.User>`
:param dict custom_headers: headers that will be added to the request
:param bool raw: returns the direct response alongside the
deserialized response
:param operation_config: :ref:`Operation configuration
overrides<msrest:optionsforoperations>`.
:rtype: None
:rtype: :class:`ClientRawResponse<msrest.pipeline.ClientRawResponse>`
if raw=true
:raises:
:class:`HttpOperationError<msrest.exceptions.HttpOperationError>`
"""
# Construct URL
url = '/user/{username}'
path_format_arguments = {
'username': self._serialize.url("username", username, 'str')
}
url = self._client.format_url(url, **path_format_arguments)
# Construct parameters
query_parameters = {}
# Construct headers
header_parameters = {}
header_parameters['Content-Type'] = 'application/json; charset=utf-8'
if custom_headers:
header_parameters.update(custom_headers)
# Construct body
if body is not None:
body_content = self._serialize.body(body, 'User')
else:
body_content = None
# Construct and send request
request = self._client.put(url, query_parameters)
response = self._client.send(
request, header_parameters, body_content, **operation_config)
if response.status_code not in [404, 400]:
raise HttpOperationError(self._deserialize, response)
if raw:
client_raw_response = ClientRawResponse(None, response)
return client_raw_response
def delete_user(
self, username, custom_headers=None, raw=False, **operation_config):
"""Delete user.
This can only be done by the logged in user.
:param username: The name that needs to be deleted
:type username: str
:param dict custom_headers: headers that will be added to the request
:param bool raw: returns the direct response alongside the
deserialized response
:param operation_config: :ref:`Operation configuration
overrides<msrest:optionsforoperations>`.
:rtype: None
:rtype: :class:`ClientRawResponse<msrest.pipeline.ClientRawResponse>`
if raw=true
:raises:
:class:`HttpOperationError<msrest.exceptions.HttpOperationError>`
"""
# Construct URL
url = '/user/{username}'
path_format_arguments = {
'username': self._serialize.url("username", username, 'str')
}
url = self._client.format_url(url, **path_format_arguments)
# Construct parameters
query_parameters = {}
# Construct headers
header_parameters = {}
header_parameters['Content-Type'] = 'application/json; charset=utf-8'
if custom_headers:
header_parameters.update(custom_headers)
# Construct and send request
request = self._client.delete(url, query_parameters)
response = self._client.send(request, header_parameters, **operation_config)
if response.status_code not in [404, 400]:
raise HttpOperationError(self._deserialize, response)
if raw:
client_raw_response = ClientRawResponse(None, response)
return client_raw_response
| 37.024221
| 273
| 0.641121
| 4,518
| 42,800
| 5.911465
| 0.058654
| 0.053317
| 0.037891
| 0.023214
| 0.89198
| 0.879849
| 0.876554
| 0.872285
| 0.861315
| 0.853377
| 0
| 0.006552
| 0.27257
| 42,800
| 1,155
| 274
| 37.056277
| 0.851288
| 0.366542
| 0
| 0.809035
| 0
| 0
| 0.067717
| 0.005019
| 0
| 0
| 0
| 0
| 0
| 1
| 0.049281
| false
| 0.00616
| 0.01232
| 0
| 0.129363
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
717fbb9910f0668f39f6b79eaf0a3109807ced2d
| 2,038
|
py
|
Python
|
tests/test_mac_wu.py
|
ririw/mac
|
10e4798ba096c769bed6658754143d2ac88e60d9
|
[
"MIT"
] | null | null | null |
tests/test_mac_wu.py
|
ririw/mac
|
10e4798ba096c769bed6658754143d2ac88e60d9
|
[
"MIT"
] | null | null | null |
tests/test_mac_wu.py
|
ririw/mac
|
10e4798ba096c769bed6658754143d2ac88e60d9
|
[
"MIT"
] | null | null | null |
import nose.tools
import torch
import torch.functional
import torch.nn.functional
from mac.mac import WUCell
def test_remember_everything():
batch_size, ctrl_dim = 31, 7
cell = WUCell(ctrl_dim)
opt = torch.optim.Adam(cell.parameters())
err = 10
for i in range(1000):
opt.zero_grad()
mem = torch.randn(batch_size, ctrl_dim)
ri = torch.randn(batch_size, ctrl_dim)
control = torch.randn(batch_size, ctrl_dim)
nextmem = cell(mem, ri, control)
err = torch.nn.MSELoss()(nextmem, mem)
err.backward()
opt.step()
err = err.item()
nose.tools.assert_less(err, 0.1)
def test_remember_ri():
batch_size, ctrl_dim = 31, 7
cell = WUCell(ctrl_dim)
opt = torch.optim.Adam(cell.parameters())
err = 10
for i in range(2000):
opt.zero_grad()
mem = torch.randn(batch_size, ctrl_dim)
ri = torch.randn(batch_size, ctrl_dim, requires_grad=False)
control = torch.randn(batch_size, ctrl_dim)
nextmem = cell(mem, ri, control)
err = torch.nn.MSELoss()(nextmem, ri)
err.backward()
opt.step()
err = err.item()
nose.tools.assert_less(err, 0.1)
def test_selective_memory():
batch_size, ctrl_dim = 31, 7
cell = WUCell(ctrl_dim)
opt = torch.optim.Adam(cell.parameters())
err = 10
for i in range(2000):
opt.zero_grad()
mem = torch.randn(batch_size, ctrl_dim)
ri = torch.randn(batch_size, ctrl_dim, requires_grad=False)
control = torch.randn(batch_size, ctrl_dim)
target = torch.zeros(batch_size, ctrl_dim)
control[: batch_size // 2, 0] = 2
control[batch_size // 2 :, 0] = -2
target[: batch_size // 2] = ri[: batch_size // 2]
target[batch_size // 2 :] = mem[batch_size // 2 :]
nextmem = cell(mem, ri, control)
err = torch.nn.MSELoss()(nextmem, target)
err.backward()
opt.step()
err = err.item()
nose.tools.assert_less(err, 0.1)
| 25.797468
| 67
| 0.607458
| 286
| 2,038
| 4.157343
| 0.188811
| 0.143818
| 0.142136
| 0.174937
| 0.834315
| 0.793103
| 0.761144
| 0.761144
| 0.761144
| 0.761144
| 0
| 0.028801
| 0.267419
| 2,038
| 78
| 68
| 26.128205
| 0.767582
| 0
| 0
| 0.689655
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.051724
| 1
| 0.051724
| false
| 0
| 0.086207
| 0
| 0.137931
| 0
| 0
| 0
| 0
| null | 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
71c453eeb814b02c1238730bf5cd1e710adee3b3
| 222
|
py
|
Python
|
stable_baselines_custom/her/__init__.py
|
iamlab-cmu/stable-baselines
|
6e9a8b2ad1d690bd9a9611405e4f319a52101540
|
[
"MIT"
] | null | null | null |
stable_baselines_custom/her/__init__.py
|
iamlab-cmu/stable-baselines
|
6e9a8b2ad1d690bd9a9611405e4f319a52101540
|
[
"MIT"
] | null | null | null |
stable_baselines_custom/her/__init__.py
|
iamlab-cmu/stable-baselines
|
6e9a8b2ad1d690bd9a9611405e4f319a52101540
|
[
"MIT"
] | null | null | null |
from stable_baselines_custom.her.her import HER
from stable_baselines_custom.her.replay_buffer import GoalSelectionStrategy, HindsightExperienceReplayWrapper
from stable_baselines_custom.her.utils import HERGoalEnvWrapper
| 55.5
| 109
| 0.90991
| 26
| 222
| 7.5
| 0.461538
| 0.153846
| 0.292308
| 0.384615
| 0.430769
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.058559
| 222
| 3
| 110
| 74
| 0.933014
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 0
| 1
| 0
| 1
| 0
| 0
| null | 0
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 7
|
71d79b442a5f72b2bc1e4f0207390991239ac521
| 144
|
py
|
Python
|
Lesson01/formatName.py
|
PacktPublishing/Python-Fundamentals
|
f24569826b1b7f97e3d54630a34ae61110ca12da
|
[
"MIT"
] | 1
|
2021-04-23T14:01:56.000Z
|
2021-04-23T14:01:56.000Z
|
Lesson01/formatName.py
|
PacktPublishing/Python-Fundamentals
|
f24569826b1b7f97e3d54630a34ae61110ca12da
|
[
"MIT"
] | null | null | null |
Lesson01/formatName.py
|
PacktPublishing/Python-Fundamentals
|
f24569826b1b7f97e3d54630a34ae61110ca12da
|
[
"MIT"
] | 4
|
2021-06-29T05:57:44.000Z
|
2021-09-02T10:14:55.000Z
|
import sys
print('------------------------')
print('First Name:',sys.argv[1])
print('Last Name:',sys.argv[2])
print('------------------------')
| 24
| 33
| 0.430556
| 16
| 144
| 3.875
| 0.5625
| 0.225806
| 0.354839
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.014706
| 0.055556
| 144
| 6
| 34
| 24
| 0.441176
| 0
| 0
| 0.4
| 0
| 0
| 0.475862
| 0.331034
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0.2
| 0
| 0.2
| 0.8
| 1
| 0
| 0
| null | 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 1
|
0
| 7
|
e0b5fc8e46fcbfd2b85eb4740a7cdf39a5cb1461
| 20,221
|
py
|
Python
|
tests/test_0437-stream-of-many-json-files.py
|
colesbury/awkward-1.0
|
d036ab18eb54de8a2571d9f179d315ac8ee22119
|
[
"BSD-3-Clause"
] | null | null | null |
tests/test_0437-stream-of-many-json-files.py
|
colesbury/awkward-1.0
|
d036ab18eb54de8a2571d9f179d315ac8ee22119
|
[
"BSD-3-Clause"
] | null | null | null |
tests/test_0437-stream-of-many-json-files.py
|
colesbury/awkward-1.0
|
d036ab18eb54de8a2571d9f179d315ac8ee22119
|
[
"BSD-3-Clause"
] | null | null | null |
# BSD 3-Clause License; see https://github.com/scikit-hep/awkward-1.0/blob/main/LICENSE
import pytest # noqa: F401
import numpy as np # noqa: F401
import awkward as ak # noqa: F401
# Change to pathlib when Python 2 is dropped
import os.path
DIR = os.path.dirname(os.path.abspath(__file__))
def test_unfinished_fragment_exception():
# read unfinished json fragments
strs0 = """{"one": 1, "two": 2.2,"""
with pytest.raises(ValueError):
ak.from_json(strs0)
strs1 = """{"one": 1,
"two": 2.2,"""
with pytest.raises(ValueError):
ak.from_json(strs1)
strs2 = """{"one": 1,
"two": 2.2,
"""
with pytest.raises(ValueError):
ak.from_json(strs2)
strs3 = """{"one": 1, "two": 2.2, "three": "THREE"}
{"one": 10, "two": 22,"""
with pytest.raises(ValueError):
ak.from_json(strs3)
strs4 = """{"one": 1, "two": 2.2, "three": "THREE"}
{"one": 10, "two": 22,
"""
with pytest.raises(ValueError):
ak.from_json(strs4)
strs5 = """["one", "two","""
with pytest.raises(ValueError):
ak.from_json(strs5)
strs6 = """["one",
"two","""
with pytest.raises(ValueError):
ak.from_json(strs6)
strs7 = """["one",
"two",
"""
with pytest.raises(ValueError):
ak.from_json(strs7)
def test_two_arrays():
str = """{"one": 1, "two": 2.2}{"one": 10, "two": 22}"""
array = ak.from_json(str)
assert ak.to_list(array) == [{"one": 1, "two": 2.2}, {"one": 10, "two": 22.0}]
str = """{"one": 1, "two": 2.2} {"one": 10, "two": 22}"""
array = ak.from_json(str)
assert ak.to_list(array) == [{"one": 1, "two": 2.2}, {"one": 10, "two": 22.0}]
str = """{"one": 1, \t "two": 2.2}{"one": 10, "two": 22}"""
array = ak.from_json(str)
assert ak.to_list(array) == [{"one": 1, "two": 2.2}, {"one": 10, "two": 22.0}]
str = """{"one": 1, "two": 2.2} \t {"one": 10, "two": 22}"""
array = ak.from_json(str)
assert ak.to_list(array) == [{"one": 1, "two": 2.2}, {"one": 10, "two": 22.0}]
str = """{"one": 1, "two": 2.2}\n{"one": 10, "two": 22}"""
array = ak.from_json(str)
assert ak.to_list(array) == [{"one": 1, "two": 2.2}, {"one": 10, "two": 22.0}]
str = """{"one": 1, "two": 2.2}\n\r{"one": 10, "two": 22}"""
array = ak.from_json(str)
assert ak.to_list(array) == [{"one": 1, "two": 2.2}, {"one": 10, "two": 22.0}]
str = """{"one": 1, "two": 2.2} \n {"one": 10, "two": 22}"""
array = ak.from_json(str)
assert ak.to_list(array) == [{"one": 1, "two": 2.2}, {"one": 10, "two": 22.0}]
str = """{"one": 1, "two": 2.2} \n\r {"one": 10, "two": 22}"""
array = ak.from_json(str)
assert ak.to_list(array) == [{"one": 1, "two": 2.2}, {"one": 10, "two": 22.0}]
str = """{"one": 1, "two": 2.2}{"one": 10, "two": 22}\n"""
array = ak.from_json(str)
assert ak.to_list(array) == [{"one": 1, "two": 2.2}, {"one": 10, "two": 22.0}]
str = """{"one": 1, "two": 2.2}{"one": 10, "two": 22}\n\r"""
array = ak.from_json(str)
assert ak.to_list(array) == [{"one": 1, "two": 2.2}, {"one": 10, "two": 22.0}]
str = """{"one": 1, "two": 2.2}\n{"one": 10, "two": 22}\n"""
array = ak.from_json(str)
assert ak.to_list(array) == [{"one": 1, "two": 2.2}, {"one": 10, "two": 22.0}]
str = """{"one": 1, "two": 2.2}\n\r{"one": 10, "two": 22}\n\r"""
array = ak.from_json(str)
assert ak.to_list(array) == [{"one": 1, "two": 2.2}, {"one": 10, "two": 22.0}]
str = """{"one": 1, \n"two": 2.2}{"one": 10, "two": 22}"""
array = ak.from_json(str)
assert ak.to_list(array) == [{"one": 1, "two": 2.2}, {"one": 10, "two": 22.0}]
str = """{"one": 1, \n\r"two": 2.2}{"one": 10, "two": 22}"""
array = ak.from_json(str)
assert ak.to_list(array) == [{"one": 1, "two": 2.2}, {"one": 10, "two": 22.0}]
str = """{"one": 1, \n"two": 2.2}\n{"one": 10, "two": 22}"""
array = ak.from_json(str)
assert ak.to_list(array) == [{"one": 1, "two": 2.2}, {"one": 10, "two": 22.0}]
str = """{"one": 1, \n\r"two": 2.2}\n\r{"one": 10, "two": 22}"""
array = ak.from_json(str)
assert ak.to_list(array) == [{"one": 1, "two": 2.2}, {"one": 10, "two": 22.0}]
str = """{"one": 1, \n"two": 2.2}\n{"one": 10, "two": 22}\n"""
array = ak.from_json(str)
assert ak.to_list(array) == [{"one": 1, "two": 2.2}, {"one": 10, "two": 22.0}]
str = """{"one": 1, \n\r"two": 2.2}\n\r{"one": 10, "two": 22}\n\r"""
array = ak.from_json(str)
assert ak.to_list(array) == [{"one": 1, "two": 2.2}, {"one": 10, "two": 22.0}]
str = """{"one": 1, "two": 2.2}{"one": 10, \n"two": 22}"""
array = ak.from_json(str)
assert ak.to_list(array) == [{"one": 1, "two": 2.2}, {"one": 10, "two": 22.0}]
str = """{"one": 1, "two": 2.2}{"one": 10, \n\r"two": 22}"""
array = ak.from_json(str)
assert ak.to_list(array) == [{"one": 1, "two": 2.2}, {"one": 10, "two": 22.0}]
str = """{"one": 1, "two": 2.2}\n{"one": 10, \n"two": 22}"""
array = ak.from_json(str)
assert ak.to_list(array) == [{"one": 1, "two": 2.2}, {"one": 10, "two": 22.0}]
str = """{"one": 1, "two": 2.2}\n\r{"one": 10, \n\r"two": 22}"""
array = ak.from_json(str)
assert ak.to_list(array) == [{"one": 1, "two": 2.2}, {"one": 10, "two": 22.0}]
str = """["one", "two"]["uno", "dos"]"""
array = ak.from_json(str)
assert ak.to_list(array) == [["one", "two"], ["uno", "dos"]]
str = """["one", "two"]\n["uno", "dos"]"""
array = ak.from_json(str)
assert ak.to_list(array) == [["one", "two"], ["uno", "dos"]]
str = """["one", "two"]\n\r["uno", "dos"]"""
array = ak.from_json(str)
assert ak.to_list(array) == [["one", "two"], ["uno", "dos"]]
str = """["one", "two"] ["uno", "dos"]"""
array = ak.from_json(str)
assert ak.to_list(array) == [["one", "two"], ["uno", "dos"]]
str = """["one", "two"] \n ["uno", "dos"]"""
array = ak.from_json(str)
assert ak.to_list(array) == [["one", "two"], ["uno", "dos"]]
str = """["one", "two"] \n\r ["uno", "dos"]"""
array = ak.from_json(str)
assert ak.to_list(array) == [["one", "two"], ["uno", "dos"]]
str = """["one", \n "two"]["uno", "dos"]"""
array = ak.from_json(str)
assert ak.to_list(array) == [["one", "two"], ["uno", "dos"]]
str = """["one", \n "two"]\n["uno", "dos"]"""
array = ak.from_json(str)
assert ak.to_list(array) == [["one", "two"], ["uno", "dos"]]
str = """["one", \n\r "two"]["uno", "dos"]"""
array = ak.from_json(str)
assert ak.to_list(array) == [["one", "two"], ["uno", "dos"]]
str = """["one", \n\r "two"]\n\r["uno", "dos"]"""
array = ak.from_json(str)
assert ak.to_list(array) == [["one", "two"], ["uno", "dos"]]
str = '"one""two"'
array = ak.from_json(str)
assert ak.to_list(array) == ["one", "two"]
str = '"one"\n"two"'
array = ak.from_json(str)
assert ak.to_list(array) == ["one", "two"]
str = '"one"\n\r"two"'
array = ak.from_json(str)
assert ak.to_list(array) == ["one", "two"]
str = '"one" "two"'
array = ak.from_json(str)
assert ak.to_list(array) == ["one", "two"]
str = '"one" \n "two"'
array = ak.from_json(str)
assert ak.to_list(array) == ["one", "two"]
str = '"one" \n\r "two"'
array = ak.from_json(str)
assert ak.to_list(array) == ["one", "two"]
array = ak.from_json(os.path.join(DIR, "samples/test-two-arrays.json"))
assert ak.to_list(array) == [
{"one": 1, "two": 2.2},
{"one": 10, "two": 22.0},
{"one": 1, "two": 2.2},
{"one": 10, "two": 22.0},
{"one": 1, "two": 2.2},
{"one": 10, "two": 22.0},
{"one": 1, "two": 2.2},
{"one": 10, "two": 22.0},
{"one": 1, "two": 2.2},
{"one": 10, "two": 22.0},
{"one": 1, "two": 2.2},
{"one": 10, "two": 22.0},
{"one": 1, "two": 2.2},
{"one": 10, "two": 22.0},
{"one": 1, "two": 2.2},
{"one": 10, "two": 22.0},
{"one": 1, "two": 2.2},
{"one": 10, "two": 22.0},
{"one": 1, "two": 2.2},
{"one": 10, "two": 22.0},
{"one": 1, "two": 2.2},
{"one": 10, "two": 22.0},
["one", "two"],
["uno", "dos"],
["one", "two"],
["uno", "dos"],
["one", "two"],
["uno", "dos"],
["one", "two"],
["uno", "dos"],
["one", "two"],
["uno", "dos"],
["one", "two"],
["uno", "dos"],
"one",
"two",
"one",
"two",
"one",
"two",
"one",
"two",
"one",
"two",
"one",
"two",
]
def test_blanc_lines():
str = """{"one": 1, "two": 2.2}
{"one": 10, "two": 22}"""
array = ak.from_json(str)
assert ak.to_list(array) == [{"one": 1, "two": 2.2}, {"one": 10, "two": 22.0}]
str = """{"one": 1, "two": 2.2}
{"one": 10, "two": 22}
"""
array = ak.from_json(str)
assert ak.to_list(array) == [{"one": 1, "two": 2.2}, {"one": 10, "two": 22.0}]
str = """ 1
2
3 """
array = ak.from_json(str)
assert ak.to_list(array) == [1, 2, 3]
str = """
1
2
3
"""
array = ak.from_json(str)
assert ak.to_list(array) == [1, 2, 3]
def test_tostring():
# write a json string from an array built from
# multiple json fragments from a string
str = """{"x": 1.1, "y": []}
{"x": 2.2, "y": [1]}
{"x": 3.3, "y": [1, 2]}
{"x": 4.4, "y": [1, 2, 3]}
{"x": 5.5, "y": [1, 2, 3, 4]}
{"x": 6.6, "y": [1, 2, 3, 4, 5]}"""
array = ak.from_json(str)
assert ak.to_list(array) == [
{"x": 1.1, "y": []},
{"x": 2.2, "y": [1]},
{"x": 3.3, "y": [1, 2]},
{"x": 4.4, "y": [1, 2, 3]},
{"x": 5.5, "y": [1, 2, 3, 4]},
{"x": 6.6, "y": [1, 2, 3, 4, 5]},
]
assert (
ak.to_json(array)
== '[{"x":1.1,"y":[]},{"x":2.2,"y":[1]},{"x":3.3,"y":[1,2]},{"x":4.4,"y":[1,2,3]},{"x":5.5,"y":[1,2,3,4]},{"x":6.6,"y":[1,2,3,4,5]}]'
)
def test_fromstring():
# read multiple json fragments from a string
str = """{"x": 1.1, "y": []}
{"x": 2.2, "y": [1]}
{"x": 3.3, "y": [1, 2]}
{"x": 4.4, "y": [1, 2, 3]}
{"x": 5.5, "y": [1, 2, 3, 4]}
{"x": 6.6, "y": [1, 2, 3, 4, 5]}"""
array = ak.from_json(str)
assert ak.to_list(array) == [
{"x": 1.1, "y": []},
{"x": 2.2, "y": [1]},
{"x": 3.3, "y": [1, 2]},
{"x": 4.4, "y": [1, 2, 3]},
{"x": 5.5, "y": [1, 2, 3, 4]},
{"x": 6.6, "y": [1, 2, 3, 4, 5]},
]
def test_array_tojson():
# convert float 'nan' and 'inf' to user-defined strings
array = ak.layout.NumpyArray(
np.array(
[[float("nan"), float("nan"), 1.1], [float("inf"), 3.3, float("-inf")]]
)
)
assert (
ak.to_json(
array, nan_string="NaN", infinity_string="inf", minus_infinity_string="-inf"
)
== '[["NaN","NaN",1.1],["inf",3.3,"-inf"]]'
)
array2 = ak.Array([[0, 2], None, None, None, "NaN", "NaN"])
assert ak.to_json(array2, nan_string="NaN") == '[[0,2],null,null,null,"NaN","NaN"]'
def test_fromfile():
# read multiple json fragments from a json file
array = ak.from_json(os.path.join(DIR, "samples/test-record-array.json"))
assert ak.to_list(array) == [
{"x": 1.1, "y": []},
{"x": 2.2, "y": [1]},
{"x": 3.3, "y": [1, 2]},
{"x": 4.4, "y": [1, 2, 3]},
{"x": 5.5, "y": [1, 2, 3, 4]},
{"x": 6.6, "y": [1, 2, 3, 4, 5]},
]
# read json file containing 'nan' and 'inf' user-defined strings
# and replace 'nan' and 'inf' strings with floats
array = ak.from_json(
os.path.join(DIR, "samples/test.json"),
infinity_string="inf",
minus_infinity_string="-inf",
)
assert ak.to_list(array) == [
1.1,
2.2,
3.3,
float("inf"),
float("-inf"),
[4.4, 5.5, 6.6, 7.7, 8.8, 9.9, 10.1, 11.11],
[12.12, 13.13, 14.14, 15.15, 16.16, 17.17],
[
[
[18.18, 19.19, 20.2, 21.21, 22.22],
[
23.23,
24.24,
25.25,
26.26,
27.27,
28.28,
29.29,
30.3,
31.31,
32.32,
33.33,
34.34,
35.35,
36.36,
37.37,
],
[38.38],
[39.39, 40.4, "NaN", "NaN", 41.41, 42.42, 43.43],
],
[
[44.44, 45.45, 46.46, 47.47, 48.48],
[
49.49,
50.5,
51.51,
52.52,
53.53,
54.54,
55.55,
56.56,
57.57,
58.58,
59.59,
60.6,
61.61,
62.62,
63.63,
],
[64.64],
[65.65, 66.66, "NaN", "NaN", 67.67, 68.68, 69.69],
],
],
]
# read json file containing 'nan' and 'inf' user-defined strings
array = ak.from_json(os.path.join(DIR, "samples/test.json"))
assert ak.to_list(array) == [
1.1,
2.2,
3.3,
"inf",
"-inf",
[4.4, 5.5, 6.6, 7.7, 8.8, 9.9, 10.1, 11.11],
[12.12, 13.13, 14.14, 15.15, 16.16, 17.17],
[
[
[18.18, 19.19, 20.2, 21.21, 22.22],
[
23.23,
24.24,
25.25,
26.26,
27.27,
28.28,
29.29,
30.3,
31.31,
32.32,
33.33,
34.34,
35.35,
36.36,
37.37,
],
[38.38],
[39.39, 40.4, "NaN", "NaN", 41.41, 42.42, 43.43],
],
[
[44.44, 45.45, 46.46, 47.47, 48.48],
[
49.49,
50.5,
51.51,
52.52,
53.53,
54.54,
55.55,
56.56,
57.57,
58.58,
59.59,
60.6,
61.61,
62.62,
63.63,
],
[64.64],
[65.65, 66.66, "NaN", "NaN", 67.67, 68.68, 69.69],
],
],
]
# read json file containing 'nan' and 'inf' user-defined strings
# and replace 'nan' and 'inf' strings with a predefined 'None' string
array = ak.from_json(
os.path.join(DIR, "samples/test.json"),
infinity_string="inf",
minus_infinity_string="-inf",
nan_string="NaN",
)
def fix(obj):
if isinstance(obj, list):
return [fix(x) for x in obj]
elif np.isnan(obj):
return "COMPARE-NAN"
else:
return obj
assert fix(ak.to_list(array)) == fix(
[
1.1,
2.2,
3.3,
float("inf"),
float("-inf"),
[4.4, 5.5, 6.6, 7.7, 8.8, 9.9, 10.1, 11.11],
[12.12, 13.13, 14.14, 15.15, 16.16, 17.17],
[
[
[18.18, 19.19, 20.2, 21.21, 22.22],
[
23.23,
24.24,
25.25,
26.26,
27.27,
28.28,
29.29,
30.3,
31.31,
32.32,
33.33,
34.34,
35.35,
36.36,
37.37,
],
[38.38],
[39.39, 40.4, float("nan"), float("nan"), 41.41, 42.42, 43.43],
],
[
[44.44, 45.45, 46.46, 47.47, 48.48],
[
49.49,
50.5,
51.51,
52.52,
53.53,
54.54,
55.55,
56.56,
57.57,
58.58,
59.59,
60.6,
61.61,
62.62,
63.63,
],
[64.64],
[65.65, 66.66, float("nan"), float("nan"), 67.67, 68.68, 69.69],
],
],
]
)
# read json file containing multiple definitions of 'nan' and 'inf'
# user-defined strings
# replace can only work for one string definition
array = ak.from_json(
os.path.join(DIR, "samples/test-nan-inf.json"),
infinity_string="Infinity",
nan_string="None",
)
assert ak.to_list(array) == [
1.1,
2.2,
3.3,
"inf",
"-inf",
[4.4, float("inf"), 6.6, 7.7, 8.8, "NaN", 10.1, 11.11],
[12.12, 13.13, 14.14, 15.15, 16.16, 17.17],
[
[
[18.18, 19.19, 20.2, 21.21, 22.22],
[
23.23,
24.24,
25.25,
26.26,
27.27,
28.28,
29.29,
30.3,
31.31,
32.32,
33.33,
34.34,
35.35,
36.36,
37.37,
],
[38.38],
[39.39, 40.4, "NaN", "NaN", 41.41, 42.42, 43.43],
],
[
[44.44, 45.45, 46.46, 47.47, 48.48],
[
49.49,
50.5,
51.51,
52.52,
53.53,
54.54,
55.55,
56.56,
57.57,
58.58,
59.59,
60.6,
61.61,
62.62,
63.63,
],
[64.64],
[65.65, 66.66, "NaN", "NaN", 67.67, 68.68, 69.69],
],
],
]
def test_three():
array = ak.from_json('["one", \n"two"] \n ["three"]')
assert ak.to_list(array) == [["one", "two"], ["three"]]
def test_jpivarski():
assert ak.from_json('{"x": 1, "y": [1, 2, 3]}').tolist() == {"x": 1, "y": [1, 2, 3]}
assert ak.from_json('{"x": 1, "y": [1, 2, 3]} {"x": 2, "y": []}').tolist() == [
{"x": 1, "y": [1, 2, 3]},
{"x": 2, "y": []},
]
assert ak.from_json('{"x": 1, "y": [1, 2, 3]} 123').tolist() == [
{"x": 1, "y": [1, 2, 3]},
123,
]
assert ak.from_json('{"x": 1, "y": [1, 2, 3]} [1, 2, 3, 4, 5]').tolist() == [
{"x": 1, "y": [1, 2, 3]},
[1, 2, 3, 4, 5],
]
assert ak.from_json("123") == 123
assert ak.from_json("123 456").tolist() == [123, 456]
assert ak.from_json('123 {"x": 1, "y": [1, 2, 3]}').tolist() == [
123,
{"x": 1, "y": [1, 2, 3]},
]
assert ak.from_json("null") is None
assert ak.from_json("null 123").tolist() == [None, 123]
assert ak.from_json("123 null").tolist() == [123, None]
| 30.453313
| 141
| 0.376539
| 2,779
| 20,221
| 2.684059
| 0.069449
| 0.019842
| 0.092506
| 0.061134
| 0.851991
| 0.83845
| 0.822496
| 0.80976
| 0.803727
| 0.785226
| 0
| 0.144335
| 0.388062
| 20,221
| 663
| 142
| 30.499246
| 0.458461
| 0.042431
| 0
| 0.734291
| 0
| 0.048474
| 0.199814
| 0.014631
| 0
| 0
| 0
| 0
| 0.114901
| 1
| 0.017953
| false
| 0
| 0.007181
| 0
| 0.030521
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 8
|
e0c2d0841a4b225ae77e6f44313142dd0d745ee6
| 174
|
py
|
Python
|
bolinette/data/defaults/models/__init__.py
|
TheCaptainCat/flasque
|
d42deb57572084f513202a32c460186700ce8e0b
|
[
"MIT"
] | 3
|
2019-10-25T12:21:28.000Z
|
2020-09-11T13:43:32.000Z
|
bolinette/data/defaults/models/__init__.py
|
TheCaptainCat/bolinette
|
d42deb57572084f513202a32c460186700ce8e0b
|
[
"MIT"
] | null | null | null |
bolinette/data/defaults/models/__init__.py
|
TheCaptainCat/bolinette
|
d42deb57572084f513202a32c460186700ce8e0b
|
[
"MIT"
] | null | null | null |
from bolinette.data.defaults.models.file import FileModel
from bolinette.data.defaults.models.role import RoleModel
from bolinette.data.defaults.models.user import UserModel
| 43.5
| 57
| 0.862069
| 24
| 174
| 6.25
| 0.5
| 0.26
| 0.34
| 0.5
| 0.62
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.068966
| 174
| 3
| 58
| 58
| 0.925926
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 0
| 1
| 0
| 1
| 0
| 0
| null | 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 0
| 0
|
0
| 7
|
e0d28ed33c9dcc7950ee94bd3a3b73726eb8e868
| 161
|
py
|
Python
|
humpday/comparison/naming.py
|
MDCHAMP/humpday
|
45e2cea95ae951d991ebc6c1e98314cc8c726f25
|
[
"MIT"
] | 53
|
2021-02-13T01:17:02.000Z
|
2022-03-16T10:07:29.000Z
|
humpday/comparison/naming.py
|
MDCHAMP/humpday
|
45e2cea95ae951d991ebc6c1e98314cc8c726f25
|
[
"MIT"
] | 16
|
2021-02-13T17:42:06.000Z
|
2022-03-06T10:08:50.000Z
|
humpday/comparison/naming.py
|
MDCHAMP/humpday
|
45e2cea95ae951d991ebc6c1e98314cc8c726f25
|
[
"MIT"
] | 12
|
2020-12-09T03:16:22.000Z
|
2022-02-23T09:34:00.000Z
|
def optimizer_name(solver):
return solver.__name__.replace('_cube','')
def objective_name(objective):
return objective.__name__.replace('_cube','')
| 16.1
| 49
| 0.720497
| 18
| 161
| 5.777778
| 0.444444
| 0.211538
| 0.288462
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.130435
| 161
| 9
| 50
| 17.888889
| 0.742857
| 0
| 0
| 0
| 0
| 0
| 0.063291
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.5
| false
| 0
| 0
| 0.5
| 1
| 0
| 1
| 0
| 0
| null | 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 1
| 1
| 0
|
0
| 7
|
e0fafbda067dcb94714e97231da9641bc68ddb18
| 223
|
py
|
Python
|
andes/models/synchronous/__init__.py
|
cuihantao/Andes
|
6cdc057986c4a8382194ef440b6e92b8dfb77e25
|
[
"Apache-2.0"
] | 16
|
2017-06-16T14:21:04.000Z
|
2018-08-18T08:52:27.000Z
|
andes/models/synchronous/__init__.py
|
cuihantao/Andes
|
6cdc057986c4a8382194ef440b6e92b8dfb77e25
|
[
"Apache-2.0"
] | 1
|
2017-12-12T07:51:16.000Z
|
2017-12-12T07:51:16.000Z
|
andes/models/synchronous/__init__.py
|
cuihantao/Andes
|
6cdc057986c4a8382194ef440b6e92b8dfb77e25
|
[
"Apache-2.0"
] | 7
|
2017-12-10T07:32:36.000Z
|
2018-09-19T16:38:30.000Z
|
"""
Package for synchronous generators
"""
from andes.models.synchronous.gencls import GENCLS # NOQA
from andes.models.synchronous.genrou import GENROU # NOQA
from andes.models.synchronous.plbvfu1 import PLBVFU1 # NOQA
| 27.875
| 60
| 0.793722
| 28
| 223
| 6.321429
| 0.428571
| 0.152542
| 0.254237
| 0.440678
| 0.338983
| 0
| 0
| 0
| 0
| 0
| 0
| 0.010256
| 0.125561
| 223
| 7
| 61
| 31.857143
| 0.897436
| 0.224215
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 0
| 1
| 0
| 1
| 0
| 0
| null | 0
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 7
|
46031edfd03f980ee37ca19a21faccda986086e7
| 28,607
|
py
|
Python
|
v6.0.5/vpn_ssl_web/test_fortios_vpn_ssl_web_portal.py
|
fortinet-solutions-cse/ansible_fgt_modules
|
c45fba49258d7c9705e7a8fd9c2a09ea4c8a4719
|
[
"Apache-2.0"
] | 14
|
2018-09-25T20:35:25.000Z
|
2021-07-14T04:30:54.000Z
|
v6.0.5/vpn_ssl_web/test_fortios_vpn_ssl_web_portal.py
|
fortinet-solutions-cse/ansible_fgt_modules
|
c45fba49258d7c9705e7a8fd9c2a09ea4c8a4719
|
[
"Apache-2.0"
] | 32
|
2018-10-09T04:13:42.000Z
|
2020-05-11T07:20:28.000Z
|
v6.0.5/vpn_ssl_web/test_fortios_vpn_ssl_web_portal.py
|
fortinet-solutions-cse/ansible_fgt_modules
|
c45fba49258d7c9705e7a8fd9c2a09ea4c8a4719
|
[
"Apache-2.0"
] | 11
|
2018-10-09T00:14:53.000Z
|
2021-11-03T10:54:09.000Z
|
# Copyright 2019 Fortinet, Inc.
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with Ansible. If not, see <https://www.gnu.org/licenses/>.
# Make coding more python3-ish
from __future__ import (absolute_import, division, print_function)
__metaclass__ = type
import os
import json
import pytest
from mock import ANY
from ansible.module_utils.network.fortios.fortios import FortiOSHandler
try:
from ansible.modules.network.fortios import fortios_vpn_ssl_web_portal
except ImportError:
pytest.skip("Could not load required modules for testing", allow_module_level=True)
@pytest.fixture(autouse=True)
def connection_mock(mocker):
connection_class_mock = mocker.patch('ansible.modules.network.fortios.fortios_vpn_ssl_web_portal.Connection')
return connection_class_mock
fos_instance = FortiOSHandler(connection_mock)
def test_vpn_ssl_web_portal_creation(mocker):
schema_method_mock = mocker.patch('ansible.module_utils.network.fortios.fortios.FortiOSHandler.schema')
set_method_result = {'status': 'success', 'http_method': 'POST', 'http_status': 200}
set_method_mock = mocker.patch('ansible.module_utils.network.fortios.fortios.FortiOSHandler.set', return_value=set_method_result)
input_data = {
'username': 'admin',
'state': 'present',
'vpn_ssl_web_portal': {
'allow_user_access': 'web',
'auto_connect': 'enable',
'custom_lang': 'test_value_5',
'customize_forticlient_download_url': 'enable',
'display_bookmark': 'enable',
'display_connection_tools': 'enable',
'display_history': 'enable',
'display_status': 'enable',
'dns_server1': 'test_value_11',
'dns_server2': 'test_value_12',
'dns_suffix': 'test_value_13',
'exclusive_routing': 'enable',
'forticlient_download': 'enable',
'forticlient_download_method': 'direct',
'heading': 'test_value_17',
'hide_sso_credential': 'enable',
'host_check': 'none',
'host_check_interval': '20',
'ip_mode': 'range',
'ipv6_dns_server1': 'test_value_22',
'ipv6_dns_server2': 'test_value_23',
'ipv6_exclusive_routing': 'enable',
'ipv6_service_restriction': 'enable',
'ipv6_split_tunneling': 'enable',
'ipv6_tunnel_mode': 'enable',
'ipv6_wins_server1': 'test_value_28',
'ipv6_wins_server2': 'test_value_29',
'keep_alive': 'enable',
'limit_user_logins': 'enable',
'mac_addr_action': 'allow',
'mac_addr_check': 'enable',
'macos_forticlient_download_url': 'test_value_34',
'name': 'default_name_35',
'os_check': 'enable',
'redir_url': 'test_value_37',
'save_password': 'enable',
'service_restriction': 'enable',
'skip_check_for_unsupported_browser': 'enable',
'skip_check_for_unsupported_os': 'enable',
'smb_ntlmv1_auth': 'enable',
'smbv1': 'enable',
'split_tunneling': 'enable',
'theme': 'blue',
'tunnel_mode': 'enable',
'user_bookmark': 'enable',
'user_group_bookmark': 'enable',
'web_mode': 'enable',
'windows_forticlient_download_url': 'test_value_50',
'wins_server1': 'test_value_51',
'wins_server2': 'test_value_52'
},
'vdom': 'root'}
is_error, changed, response = fortios_vpn_ssl_web_portal.fortios_vpn_ssl_web(input_data, fos_instance)
expected_data = {
'allow-user-access': 'web',
'auto-connect': 'enable',
'custom-lang': 'test_value_5',
'customize-forticlient-download-url': 'enable',
'display-bookmark': 'enable',
'display-connection-tools': 'enable',
'display-history': 'enable',
'display-status': 'enable',
'dns-server1': 'test_value_11',
'dns-server2': 'test_value_12',
'dns-suffix': 'test_value_13',
'exclusive-routing': 'enable',
'forticlient-download': 'enable',
'forticlient-download-method': 'direct',
'heading': 'test_value_17',
'hide-sso-credential': 'enable',
'host-check': 'none',
'host-check-interval': '20',
'ip-mode': 'range',
'ipv6-dns-server1': 'test_value_22',
'ipv6-dns-server2': 'test_value_23',
'ipv6-exclusive-routing': 'enable',
'ipv6-service-restriction': 'enable',
'ipv6-split-tunneling': 'enable',
'ipv6-tunnel-mode': 'enable',
'ipv6-wins-server1': 'test_value_28',
'ipv6-wins-server2': 'test_value_29',
'keep-alive': 'enable',
'limit-user-logins': 'enable',
'mac-addr-action': 'allow',
'mac-addr-check': 'enable',
'macos-forticlient-download-url': 'test_value_34',
'name': 'default_name_35',
'os-check': 'enable',
'redir-url': 'test_value_37',
'save-password': 'enable',
'service-restriction': 'enable',
'skip-check-for-unsupported-browser': 'enable',
'skip-check-for-unsupported-os': 'enable',
'smb-ntlmv1-auth': 'enable',
'smbv1': 'enable',
'split-tunneling': 'enable',
'theme': 'blue',
'tunnel-mode': 'enable',
'user-bookmark': 'enable',
'user-group-bookmark': 'enable',
'web-mode': 'enable',
'windows-forticlient-download-url': 'test_value_50',
'wins-server1': 'test_value_51',
'wins-server2': 'test_value_52'
}
set_method_mock.assert_called_with('vpn.ssl.web', 'portal', data=expected_data, vdom='root')
schema_method_mock.assert_not_called()
assert not is_error
assert changed
assert response['status'] == 'success'
assert response['http_status'] == 200
def test_vpn_ssl_web_portal_creation_fails(mocker):
schema_method_mock = mocker.patch('ansible.module_utils.network.fortios.fortios.FortiOSHandler.schema')
set_method_result = {'status': 'error', 'http_method': 'POST', 'http_status': 500}
set_method_mock = mocker.patch('ansible.module_utils.network.fortios.fortios.FortiOSHandler.set', return_value=set_method_result)
input_data = {
'username': 'admin',
'state': 'present',
'vpn_ssl_web_portal': {
'allow_user_access': 'web',
'auto_connect': 'enable',
'custom_lang': 'test_value_5',
'customize_forticlient_download_url': 'enable',
'display_bookmark': 'enable',
'display_connection_tools': 'enable',
'display_history': 'enable',
'display_status': 'enable',
'dns_server1': 'test_value_11',
'dns_server2': 'test_value_12',
'dns_suffix': 'test_value_13',
'exclusive_routing': 'enable',
'forticlient_download': 'enable',
'forticlient_download_method': 'direct',
'heading': 'test_value_17',
'hide_sso_credential': 'enable',
'host_check': 'none',
'host_check_interval': '20',
'ip_mode': 'range',
'ipv6_dns_server1': 'test_value_22',
'ipv6_dns_server2': 'test_value_23',
'ipv6_exclusive_routing': 'enable',
'ipv6_service_restriction': 'enable',
'ipv6_split_tunneling': 'enable',
'ipv6_tunnel_mode': 'enable',
'ipv6_wins_server1': 'test_value_28',
'ipv6_wins_server2': 'test_value_29',
'keep_alive': 'enable',
'limit_user_logins': 'enable',
'mac_addr_action': 'allow',
'mac_addr_check': 'enable',
'macos_forticlient_download_url': 'test_value_34',
'name': 'default_name_35',
'os_check': 'enable',
'redir_url': 'test_value_37',
'save_password': 'enable',
'service_restriction': 'enable',
'skip_check_for_unsupported_browser': 'enable',
'skip_check_for_unsupported_os': 'enable',
'smb_ntlmv1_auth': 'enable',
'smbv1': 'enable',
'split_tunneling': 'enable',
'theme': 'blue',
'tunnel_mode': 'enable',
'user_bookmark': 'enable',
'user_group_bookmark': 'enable',
'web_mode': 'enable',
'windows_forticlient_download_url': 'test_value_50',
'wins_server1': 'test_value_51',
'wins_server2': 'test_value_52'
},
'vdom': 'root'}
is_error, changed, response = fortios_vpn_ssl_web_portal.fortios_vpn_ssl_web(input_data, fos_instance)
expected_data = {
'allow-user-access': 'web',
'auto-connect': 'enable',
'custom-lang': 'test_value_5',
'customize-forticlient-download-url': 'enable',
'display-bookmark': 'enable',
'display-connection-tools': 'enable',
'display-history': 'enable',
'display-status': 'enable',
'dns-server1': 'test_value_11',
'dns-server2': 'test_value_12',
'dns-suffix': 'test_value_13',
'exclusive-routing': 'enable',
'forticlient-download': 'enable',
'forticlient-download-method': 'direct',
'heading': 'test_value_17',
'hide-sso-credential': 'enable',
'host-check': 'none',
'host-check-interval': '20',
'ip-mode': 'range',
'ipv6-dns-server1': 'test_value_22',
'ipv6-dns-server2': 'test_value_23',
'ipv6-exclusive-routing': 'enable',
'ipv6-service-restriction': 'enable',
'ipv6-split-tunneling': 'enable',
'ipv6-tunnel-mode': 'enable',
'ipv6-wins-server1': 'test_value_28',
'ipv6-wins-server2': 'test_value_29',
'keep-alive': 'enable',
'limit-user-logins': 'enable',
'mac-addr-action': 'allow',
'mac-addr-check': 'enable',
'macos-forticlient-download-url': 'test_value_34',
'name': 'default_name_35',
'os-check': 'enable',
'redir-url': 'test_value_37',
'save-password': 'enable',
'service-restriction': 'enable',
'skip-check-for-unsupported-browser': 'enable',
'skip-check-for-unsupported-os': 'enable',
'smb-ntlmv1-auth': 'enable',
'smbv1': 'enable',
'split-tunneling': 'enable',
'theme': 'blue',
'tunnel-mode': 'enable',
'user-bookmark': 'enable',
'user-group-bookmark': 'enable',
'web-mode': 'enable',
'windows-forticlient-download-url': 'test_value_50',
'wins-server1': 'test_value_51',
'wins-server2': 'test_value_52'
}
set_method_mock.assert_called_with('vpn.ssl.web', 'portal', data=expected_data, vdom='root')
schema_method_mock.assert_not_called()
assert is_error
assert not changed
assert response['status'] == 'error'
assert response['http_status'] == 500
def test_vpn_ssl_web_portal_removal(mocker):
schema_method_mock = mocker.patch('ansible.module_utils.network.fortios.fortios.FortiOSHandler.schema')
delete_method_result = {'status': 'success', 'http_method': 'POST', 'http_status': 200}
delete_method_mock = mocker.patch('ansible.module_utils.network.fortios.fortios.FortiOSHandler.delete', return_value=delete_method_result)
input_data = {
'username': 'admin',
'state': 'absent',
'vpn_ssl_web_portal': {
'allow_user_access': 'web',
'auto_connect': 'enable',
'custom_lang': 'test_value_5',
'customize_forticlient_download_url': 'enable',
'display_bookmark': 'enable',
'display_connection_tools': 'enable',
'display_history': 'enable',
'display_status': 'enable',
'dns_server1': 'test_value_11',
'dns_server2': 'test_value_12',
'dns_suffix': 'test_value_13',
'exclusive_routing': 'enable',
'forticlient_download': 'enable',
'forticlient_download_method': 'direct',
'heading': 'test_value_17',
'hide_sso_credential': 'enable',
'host_check': 'none',
'host_check_interval': '20',
'ip_mode': 'range',
'ipv6_dns_server1': 'test_value_22',
'ipv6_dns_server2': 'test_value_23',
'ipv6_exclusive_routing': 'enable',
'ipv6_service_restriction': 'enable',
'ipv6_split_tunneling': 'enable',
'ipv6_tunnel_mode': 'enable',
'ipv6_wins_server1': 'test_value_28',
'ipv6_wins_server2': 'test_value_29',
'keep_alive': 'enable',
'limit_user_logins': 'enable',
'mac_addr_action': 'allow',
'mac_addr_check': 'enable',
'macos_forticlient_download_url': 'test_value_34',
'name': 'default_name_35',
'os_check': 'enable',
'redir_url': 'test_value_37',
'save_password': 'enable',
'service_restriction': 'enable',
'skip_check_for_unsupported_browser': 'enable',
'skip_check_for_unsupported_os': 'enable',
'smb_ntlmv1_auth': 'enable',
'smbv1': 'enable',
'split_tunneling': 'enable',
'theme': 'blue',
'tunnel_mode': 'enable',
'user_bookmark': 'enable',
'user_group_bookmark': 'enable',
'web_mode': 'enable',
'windows_forticlient_download_url': 'test_value_50',
'wins_server1': 'test_value_51',
'wins_server2': 'test_value_52'
},
'vdom': 'root'}
is_error, changed, response = fortios_vpn_ssl_web_portal.fortios_vpn_ssl_web(input_data, fos_instance)
delete_method_mock.assert_called_with('vpn.ssl.web', 'portal', mkey=ANY, vdom='root')
schema_method_mock.assert_not_called()
assert not is_error
assert changed
assert response['status'] == 'success'
assert response['http_status'] == 200
def test_vpn_ssl_web_portal_deletion_fails(mocker):
schema_method_mock = mocker.patch('ansible.module_utils.network.fortios.fortios.FortiOSHandler.schema')
delete_method_result = {'status': 'error', 'http_method': 'POST', 'http_status': 500}
delete_method_mock = mocker.patch('ansible.module_utils.network.fortios.fortios.FortiOSHandler.delete', return_value=delete_method_result)
input_data = {
'username': 'admin',
'state': 'absent',
'vpn_ssl_web_portal': {
'allow_user_access': 'web',
'auto_connect': 'enable',
'custom_lang': 'test_value_5',
'customize_forticlient_download_url': 'enable',
'display_bookmark': 'enable',
'display_connection_tools': 'enable',
'display_history': 'enable',
'display_status': 'enable',
'dns_server1': 'test_value_11',
'dns_server2': 'test_value_12',
'dns_suffix': 'test_value_13',
'exclusive_routing': 'enable',
'forticlient_download': 'enable',
'forticlient_download_method': 'direct',
'heading': 'test_value_17',
'hide_sso_credential': 'enable',
'host_check': 'none',
'host_check_interval': '20',
'ip_mode': 'range',
'ipv6_dns_server1': 'test_value_22',
'ipv6_dns_server2': 'test_value_23',
'ipv6_exclusive_routing': 'enable',
'ipv6_service_restriction': 'enable',
'ipv6_split_tunneling': 'enable',
'ipv6_tunnel_mode': 'enable',
'ipv6_wins_server1': 'test_value_28',
'ipv6_wins_server2': 'test_value_29',
'keep_alive': 'enable',
'limit_user_logins': 'enable',
'mac_addr_action': 'allow',
'mac_addr_check': 'enable',
'macos_forticlient_download_url': 'test_value_34',
'name': 'default_name_35',
'os_check': 'enable',
'redir_url': 'test_value_37',
'save_password': 'enable',
'service_restriction': 'enable',
'skip_check_for_unsupported_browser': 'enable',
'skip_check_for_unsupported_os': 'enable',
'smb_ntlmv1_auth': 'enable',
'smbv1': 'enable',
'split_tunneling': 'enable',
'theme': 'blue',
'tunnel_mode': 'enable',
'user_bookmark': 'enable',
'user_group_bookmark': 'enable',
'web_mode': 'enable',
'windows_forticlient_download_url': 'test_value_50',
'wins_server1': 'test_value_51',
'wins_server2': 'test_value_52'
},
'vdom': 'root'}
is_error, changed, response = fortios_vpn_ssl_web_portal.fortios_vpn_ssl_web(input_data, fos_instance)
delete_method_mock.assert_called_with('vpn.ssl.web', 'portal', mkey=ANY, vdom='root')
schema_method_mock.assert_not_called()
assert is_error
assert not changed
assert response['status'] == 'error'
assert response['http_status'] == 500
def test_vpn_ssl_web_portal_idempotent(mocker):
schema_method_mock = mocker.patch('ansible.module_utils.network.fortios.fortios.FortiOSHandler.schema')
set_method_result = {'status': 'error', 'http_method': 'DELETE', 'http_status': 404}
set_method_mock = mocker.patch('ansible.module_utils.network.fortios.fortios.FortiOSHandler.set', return_value=set_method_result)
input_data = {
'username': 'admin',
'state': 'present',
'vpn_ssl_web_portal': {
'allow_user_access': 'web',
'auto_connect': 'enable',
'custom_lang': 'test_value_5',
'customize_forticlient_download_url': 'enable',
'display_bookmark': 'enable',
'display_connection_tools': 'enable',
'display_history': 'enable',
'display_status': 'enable',
'dns_server1': 'test_value_11',
'dns_server2': 'test_value_12',
'dns_suffix': 'test_value_13',
'exclusive_routing': 'enable',
'forticlient_download': 'enable',
'forticlient_download_method': 'direct',
'heading': 'test_value_17',
'hide_sso_credential': 'enable',
'host_check': 'none',
'host_check_interval': '20',
'ip_mode': 'range',
'ipv6_dns_server1': 'test_value_22',
'ipv6_dns_server2': 'test_value_23',
'ipv6_exclusive_routing': 'enable',
'ipv6_service_restriction': 'enable',
'ipv6_split_tunneling': 'enable',
'ipv6_tunnel_mode': 'enable',
'ipv6_wins_server1': 'test_value_28',
'ipv6_wins_server2': 'test_value_29',
'keep_alive': 'enable',
'limit_user_logins': 'enable',
'mac_addr_action': 'allow',
'mac_addr_check': 'enable',
'macos_forticlient_download_url': 'test_value_34',
'name': 'default_name_35',
'os_check': 'enable',
'redir_url': 'test_value_37',
'save_password': 'enable',
'service_restriction': 'enable',
'skip_check_for_unsupported_browser': 'enable',
'skip_check_for_unsupported_os': 'enable',
'smb_ntlmv1_auth': 'enable',
'smbv1': 'enable',
'split_tunneling': 'enable',
'theme': 'blue',
'tunnel_mode': 'enable',
'user_bookmark': 'enable',
'user_group_bookmark': 'enable',
'web_mode': 'enable',
'windows_forticlient_download_url': 'test_value_50',
'wins_server1': 'test_value_51',
'wins_server2': 'test_value_52'
},
'vdom': 'root'}
is_error, changed, response = fortios_vpn_ssl_web_portal.fortios_vpn_ssl_web(input_data, fos_instance)
expected_data = {
'allow-user-access': 'web',
'auto-connect': 'enable',
'custom-lang': 'test_value_5',
'customize-forticlient-download-url': 'enable',
'display-bookmark': 'enable',
'display-connection-tools': 'enable',
'display-history': 'enable',
'display-status': 'enable',
'dns-server1': 'test_value_11',
'dns-server2': 'test_value_12',
'dns-suffix': 'test_value_13',
'exclusive-routing': 'enable',
'forticlient-download': 'enable',
'forticlient-download-method': 'direct',
'heading': 'test_value_17',
'hide-sso-credential': 'enable',
'host-check': 'none',
'host-check-interval': '20',
'ip-mode': 'range',
'ipv6-dns-server1': 'test_value_22',
'ipv6-dns-server2': 'test_value_23',
'ipv6-exclusive-routing': 'enable',
'ipv6-service-restriction': 'enable',
'ipv6-split-tunneling': 'enable',
'ipv6-tunnel-mode': 'enable',
'ipv6-wins-server1': 'test_value_28',
'ipv6-wins-server2': 'test_value_29',
'keep-alive': 'enable',
'limit-user-logins': 'enable',
'mac-addr-action': 'allow',
'mac-addr-check': 'enable',
'macos-forticlient-download-url': 'test_value_34',
'name': 'default_name_35',
'os-check': 'enable',
'redir-url': 'test_value_37',
'save-password': 'enable',
'service-restriction': 'enable',
'skip-check-for-unsupported-browser': 'enable',
'skip-check-for-unsupported-os': 'enable',
'smb-ntlmv1-auth': 'enable',
'smbv1': 'enable',
'split-tunneling': 'enable',
'theme': 'blue',
'tunnel-mode': 'enable',
'user-bookmark': 'enable',
'user-group-bookmark': 'enable',
'web-mode': 'enable',
'windows-forticlient-download-url': 'test_value_50',
'wins-server1': 'test_value_51',
'wins-server2': 'test_value_52'
}
set_method_mock.assert_called_with('vpn.ssl.web', 'portal', data=expected_data, vdom='root')
schema_method_mock.assert_not_called()
assert not is_error
assert not changed
assert response['status'] == 'error'
assert response['http_status'] == 404
def test_vpn_ssl_web_portal_filter_foreign_attributes(mocker):
schema_method_mock = mocker.patch('ansible.module_utils.network.fortios.fortios.FortiOSHandler.schema')
set_method_result = {'status': 'success', 'http_method': 'POST', 'http_status': 200}
set_method_mock = mocker.patch('ansible.module_utils.network.fortios.fortios.FortiOSHandler.set', return_value=set_method_result)
input_data = {
'username': 'admin',
'state': 'present',
'vpn_ssl_web_portal': {
'random_attribute_not_valid': 'tag',
'allow_user_access': 'web',
'auto_connect': 'enable',
'custom_lang': 'test_value_5',
'customize_forticlient_download_url': 'enable',
'display_bookmark': 'enable',
'display_connection_tools': 'enable',
'display_history': 'enable',
'display_status': 'enable',
'dns_server1': 'test_value_11',
'dns_server2': 'test_value_12',
'dns_suffix': 'test_value_13',
'exclusive_routing': 'enable',
'forticlient_download': 'enable',
'forticlient_download_method': 'direct',
'heading': 'test_value_17',
'hide_sso_credential': 'enable',
'host_check': 'none',
'host_check_interval': '20',
'ip_mode': 'range',
'ipv6_dns_server1': 'test_value_22',
'ipv6_dns_server2': 'test_value_23',
'ipv6_exclusive_routing': 'enable',
'ipv6_service_restriction': 'enable',
'ipv6_split_tunneling': 'enable',
'ipv6_tunnel_mode': 'enable',
'ipv6_wins_server1': 'test_value_28',
'ipv6_wins_server2': 'test_value_29',
'keep_alive': 'enable',
'limit_user_logins': 'enable',
'mac_addr_action': 'allow',
'mac_addr_check': 'enable',
'macos_forticlient_download_url': 'test_value_34',
'name': 'default_name_35',
'os_check': 'enable',
'redir_url': 'test_value_37',
'save_password': 'enable',
'service_restriction': 'enable',
'skip_check_for_unsupported_browser': 'enable',
'skip_check_for_unsupported_os': 'enable',
'smb_ntlmv1_auth': 'enable',
'smbv1': 'enable',
'split_tunneling': 'enable',
'theme': 'blue',
'tunnel_mode': 'enable',
'user_bookmark': 'enable',
'user_group_bookmark': 'enable',
'web_mode': 'enable',
'windows_forticlient_download_url': 'test_value_50',
'wins_server1': 'test_value_51',
'wins_server2': 'test_value_52'
},
'vdom': 'root'}
is_error, changed, response = fortios_vpn_ssl_web_portal.fortios_vpn_ssl_web(input_data, fos_instance)
expected_data = {
'allow-user-access': 'web',
'auto-connect': 'enable',
'custom-lang': 'test_value_5',
'customize-forticlient-download-url': 'enable',
'display-bookmark': 'enable',
'display-connection-tools': 'enable',
'display-history': 'enable',
'display-status': 'enable',
'dns-server1': 'test_value_11',
'dns-server2': 'test_value_12',
'dns-suffix': 'test_value_13',
'exclusive-routing': 'enable',
'forticlient-download': 'enable',
'forticlient-download-method': 'direct',
'heading': 'test_value_17',
'hide-sso-credential': 'enable',
'host-check': 'none',
'host-check-interval': '20',
'ip-mode': 'range',
'ipv6-dns-server1': 'test_value_22',
'ipv6-dns-server2': 'test_value_23',
'ipv6-exclusive-routing': 'enable',
'ipv6-service-restriction': 'enable',
'ipv6-split-tunneling': 'enable',
'ipv6-tunnel-mode': 'enable',
'ipv6-wins-server1': 'test_value_28',
'ipv6-wins-server2': 'test_value_29',
'keep-alive': 'enable',
'limit-user-logins': 'enable',
'mac-addr-action': 'allow',
'mac-addr-check': 'enable',
'macos-forticlient-download-url': 'test_value_34',
'name': 'default_name_35',
'os-check': 'enable',
'redir-url': 'test_value_37',
'save-password': 'enable',
'service-restriction': 'enable',
'skip-check-for-unsupported-browser': 'enable',
'skip-check-for-unsupported-os': 'enable',
'smb-ntlmv1-auth': 'enable',
'smbv1': 'enable',
'split-tunneling': 'enable',
'theme': 'blue',
'tunnel-mode': 'enable',
'user-bookmark': 'enable',
'user-group-bookmark': 'enable',
'web-mode': 'enable',
'windows-forticlient-download-url': 'test_value_50',
'wins-server1': 'test_value_51',
'wins-server2': 'test_value_52'
}
set_method_mock.assert_called_with('vpn.ssl.web', 'portal', data=expected_data, vdom='root')
schema_method_mock.assert_not_called()
assert not is_error
assert changed
assert response['status'] == 'success'
assert response['http_status'] == 200
| 41.45942
| 142
| 0.58269
| 2,966
| 28,607
| 5.265678
| 0.08058
| 0.080676
| 0.040978
| 0.024971
| 0.936996
| 0.932514
| 0.925022
| 0.922589
| 0.922589
| 0.922589
| 0
| 0.025647
| 0.274898
| 28,607
| 689
| 143
| 41.519594
| 0.727281
| 0.023211
| 0
| 0.939394
| 0
| 0
| 0.488022
| 0.122999
| 0
| 0
| 0
| 0
| 0.057416
| 1
| 0.011164
| false
| 0.015949
| 0.012759
| 0
| 0.025518
| 0.001595
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
1cfd2df07493a1f87b06e6d06df0b846caefc9c9
| 1,662
|
py
|
Python
|
encryptor/widgets/auth_dialogs.py
|
gebsh/encryptor
|
76c9ad0d7005589c26a2d40660478eff2ac935c3
|
[
"ISC"
] | null | null | null |
encryptor/widgets/auth_dialogs.py
|
gebsh/encryptor
|
76c9ad0d7005589c26a2d40660478eff2ac935c3
|
[
"ISC"
] | null | null | null |
encryptor/widgets/auth_dialogs.py
|
gebsh/encryptor
|
76c9ad0d7005589c26a2d40660478eff2ac935c3
|
[
"ISC"
] | null | null | null |
from PyQt5.QtWidgets import QDialog, QDialogButtonBox, QLineEdit, QLabel, QVBoxLayout
class AuthDialog(QDialog):
"""Dialog to authorize user decryption request."""
def __init__(self) -> None:
super().__init__()
self.passphrase = QLineEdit(self)
self.passphrase.setEchoMode(QLineEdit.Password)
passphrase_label = QLabel("Enter a passphrase of you private key")
button_box = QDialogButtonBox(QDialogButtonBox.Ok | QDialogButtonBox.Cancel)
layout = QVBoxLayout()
self.setWindowTitle("Enter key passphrase")
button_box.accepted.connect(self.accept)
button_box.rejected.connect(self.reject)
layout.addWidget(passphrase_label)
layout.addWidget(self.passphrase)
layout.addWidget(button_box)
self.setLayout(layout)
class NewKeysDialog(QDialog):
"""Dialog to authorize creation of new user keys."""
def __init__(self) -> None:
super().__init__()
self.passphrase = QLineEdit(self)
self.passphrase.setEchoMode(QLineEdit.Password)
passphrase_label = QLabel(
"It looks like you haven't created your public and private keys yet. Enter a passphrase of your new private key"
)
button_box = QDialogButtonBox(QDialogButtonBox.Ok | QDialogButtonBox.Cancel)
layout = QVBoxLayout()
self.setWindowTitle("Enter key passphrase")
button_box.accepted.connect(self.accept)
button_box.rejected.connect(self.reject)
layout.addWidget(passphrase_label)
layout.addWidget(self.passphrase)
layout.addWidget(button_box)
self.setLayout(layout)
| 36.130435
| 124
| 0.690734
| 175
| 1,662
| 6.4
| 0.337143
| 0.064286
| 0.026786
| 0.042857
| 0.735714
| 0.735714
| 0.735714
| 0.735714
| 0.735714
| 0.735714
| 0
| 0.000771
| 0.219615
| 1,662
| 45
| 125
| 36.933333
| 0.86276
| 0.054753
| 0
| 0.787879
| 0
| 0.030303
| 0.119872
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.060606
| false
| 0.393939
| 0.030303
| 0
| 0.151515
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
|
0
| 7
|
e80af7a5191cf494214452d7a0015ce7407aa345
| 1,407
|
py
|
Python
|
timing/iteration.py
|
zhujun98/karabo_data
|
68ee19d52cd7f140052d029545a7b6169ec9752a
|
[
"BSD-3-Clause"
] | 13
|
2018-05-03T08:41:06.000Z
|
2021-03-21T01:47:26.000Z
|
timing/iteration.py
|
zhujun98/karabo_data
|
68ee19d52cd7f140052d029545a7b6169ec9752a
|
[
"BSD-3-Clause"
] | 175
|
2018-04-27T12:48:37.000Z
|
2021-11-26T10:16:14.000Z
|
timing/iteration.py
|
zhujun98/karabo_data
|
68ee19d52cd7f140052d029545a7b6169ec9752a
|
[
"BSD-3-Clause"
] | 7
|
2018-05-03T14:49:44.000Z
|
2020-08-21T07:13:48.000Z
|
from time import monotonic
from karabo_data import RunDirectory
print("Opening raw run...")
start = monotonic()
run = RunDirectory('/gpfs/exfel/exp/SPB/201830/p900022/raw/r0034')
delta = monotonic() - start
print(len(run.files), "files")
print(delta, "seconds")
print()
print("Iterating over 600 trains, only image.data ...")
start = monotonic()
train_iter = run.trains(devices=[('*/DET/*', 'image.data')], require_all=True)
for i, (tid, data) in zip(range(1000), train_iter):
assert data['SPB_DET_AGIPD1M-1/DET/0CH0:xtdf']['image.data'].shape[0] == 64
arr = data['SPB_DET_AGIPD1M-1/DET/0CH0:xtdf']['image.data']
print(arr.nbytes * 16 / 1024, "KiB per train") # * 16 detector modules
delta = monotonic() - start
print(delta, "seconds")
print()
print("Opening proc run...")
start = monotonic()
run = RunDirectory('/gpfs/exfel/exp/SPB/201830/p900022/proc/r0034')
delta = monotonic() - start
print(len(run.files), "files")
print(delta, "seconds")
print()
print("Iterating over 600 trains, only image.data ...")
start = monotonic()
train_iter = run.trains(devices=[('*/DET/*', 'image.data')], require_all=True)
for i, (tid, data) in zip(range(1000), train_iter):
assert data['SPB_DET_AGIPD1M-1/DET/0CH0:xtdf']['image.data'].shape[0] == 64
arr = data['SPB_DET_AGIPD1M-1/DET/0CH0:xtdf']['image.data']
print(arr.nbytes * 16 / 1024, "KiB per train")
delta = monotonic() - start
print(delta, "seconds")
| 35.175
| 79
| 0.697939
| 209
| 1,407
| 4.626794
| 0.287081
| 0.074457
| 0.078594
| 0.099276
| 0.891417
| 0.881075
| 0.806618
| 0.806618
| 0.806618
| 0.806618
| 0
| 0.065391
| 0.108742
| 1,407
| 39
| 80
| 36.076923
| 0.705742
| 0.014925
| 0
| 0.828571
| 0
| 0
| 0.346821
| 0.153902
| 0
| 0
| 0
| 0
| 0.057143
| 1
| 0
| false
| 0
| 0.057143
| 0
| 0.057143
| 0.428571
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
|
0
| 8
|
e817cea1fb268af0afe0d12893138b49779cfbd3
| 184,784
|
py
|
Python
|
src/openprocurement/tender/cfaua/tests/bid_blanks.py
|
pontostroy/openprocurement.api
|
6651ef29413d155c83f893ee64a611cf75f4daaf
|
[
"Apache-2.0"
] | null | null | null |
src/openprocurement/tender/cfaua/tests/bid_blanks.py
|
pontostroy/openprocurement.api
|
6651ef29413d155c83f893ee64a611cf75f4daaf
|
[
"Apache-2.0"
] | 2
|
2021-03-25T23:27:04.000Z
|
2022-03-21T22:18:15.000Z
|
src/openprocurement/tender/cfaua/tests/bid_blanks.py
|
scrubele/prozorro-testing
|
42b93ea2f25d8cc40e66c596f582c7c05e2a9d76
|
[
"Apache-2.0"
] | 1
|
2020-08-20T06:09:14.000Z
|
2020-08-20T06:09:14.000Z
|
# -*- coding: utf-8 -*-
from copy import deepcopy
from datetime import datetime, timedelta
from openprocurement.tender.cfaua.constants import CLARIFICATIONS_UNTIL_PERIOD
from openprocurement.tender.cfaua.tests.base import agreement_period
extra = {"agreements": [{"contracts": [{"unitPrices": [{"value": {"amount": 0}}]}] * 3}]}
def get_tender_bidder(self):
initial_bids = deepcopy(self.test_bids_data)
self.convert_bids_for_tender_with_lots(initial_bids, self.initial_lots)
for _ in range(self.min_bids_number - 1):
response = self.app.post_json("/tenders/{}/bids".format(self.tender_id), {"data": initial_bids[0]})
self.assertEqual(response.status, "201 Created")
self.assertEqual(response.content_type, "application/json")
bid = response.json["data"]
bid_token = response.json["access"]["token"]
response = self.app.post_json("/tenders/{}/bids".format(self.tender_id), {"data": initial_bids[0]})
response = self.app.get("/tenders/{}/bids/{}".format(self.tender_id, bid["id"]), status=403)
self.assertEqual(response.status, "403 Forbidden")
self.assertEqual(response.content_type, "application/json")
self.assertEqual(
response.json["errors"][0]["description"], "Can't view bid in current (active.tendering) tender status"
)
response = self.app.get("/tenders/{}/bids/{}?acc_token={}".format(self.tender_id, bid["id"], bid_token))
self.assertEqual(response.status, "200 OK")
self.assertEqual(response.content_type, "application/json")
self.assertEqual(response.json["data"], bid)
# switch to active.pre-qualification
self.set_status("active.pre-qualification", extra={"id": self.tender_id, "status": "active.tendering"})
self.app.authorization = ("Basic", ("chronograph", ""))
response = self.app.patch_json("/tenders/{}".format(self.tender_id), {"data": {"id": self.tender_id}})
self.assertEqual(response.json["data"]["status"], "active.pre-qualification")
self.app.authorization = ("Basic", ("anon", ""))
response = self.app.get("/tenders/{}/bids".format(self.tender_id))
self.assertEqual(response.status, "200 OK")
self.assertEqual(len(response.json["data"]), self.min_bids_number)
for b in response.json["data"]:
self.assertEqual(set(b.keys()), set(["id", "status", "tenderers"]))
response = self.app.get("/tenders/{}/bids/{}".format(self.tender_id, bid["id"]))
self.assertEqual(response.status, "200 OK")
self.assertEqual(set(response.json["data"].keys()), set(["id", "status", "tenderers"]))
# qualify bids
response = self.app.get("/tenders/{}/qualifications".format(self.tender_id))
self.app.authorization = ("Basic", ("token", ""))
for qualification in response.json["data"]:
response = self.app.patch_json(
"/tenders/{}/qualifications/{}".format(self.tender_id, qualification["id"]),
{"data": {"status": "active", "qualified": True, "eligible": True}},
)
self.assertEqual(response.status, "200 OK")
# switch to active.pre-qualification.stand-still
response = self.app.patch_json(
"/tenders/{}?acc_token={}".format(self.tender_id, self.tender_token),
{"data": {"status": "active.pre-qualification.stand-still"}},
)
self.assertEqual(response.json["data"]["status"], "active.pre-qualification.stand-still")
self.app.authorization = ("Basic", ("anon", ""))
response = self.app.get("/tenders/{}/bids".format(self.tender_id))
self.assertEqual(response.status, "200 OK")
self.assertEqual(len(response.json["data"]), self.min_bids_number)
for b in response.json["data"]:
self.assertEqual(set(b.keys()), set(["id", "status", "tenderers"]))
response = self.app.get("/tenders/{}/bids/{}".format(self.tender_id, bid["id"]))
self.assertEqual(response.status, "200 OK")
self.assertEqual(set(response.json["data"].keys()), set(["id", "status", "tenderers"]))
# switch to active.auction
self.set_status("active.auction", extra={"id": self.tender_id, "status": "active.pre-qualification.stand-still"})
self.app.authorization = ("Basic", ("chronograph", ""))
response = self.app.patch_json("/tenders/{}".format(self.tender_id), {"data": {"id": self.tender_id}})
self.assertEqual(response.json["data"]["status"], "active.auction")
self.app.authorization = ("Basic", ("anon", ""))
response = self.app.get("/tenders/{}/bids".format(self.tender_id))
self.assertEqual(response.status, "200 OK")
self.assertEqual(len(response.json["data"]), self.min_bids_number)
for b in response.json["data"]:
self.assertEqual(set(b.keys()), set(["id", "status", "tenderers"]))
response = self.app.get("/tenders/{}/bids/{}".format(self.tender_id, bid["id"]))
self.assertEqual(response.status, "200 OK")
self.assertEqual(set(response.json["data"].keys()), set(["id", "status", "tenderers"]))
# switch to qualification
self.app.authorization = ("Basic", ("auction", ""))
response = self.app.get("/tenders/{}/auction".format(self.tender_id))
auction_bids_data = response.json["data"]["bids"]
response = self.app.post_json("/tenders/{}/auction".format(self.tender_id), {"data": {"bids": auction_bids_data}})
self.assertEqual(response.status, "200 OK")
response = self.app.get("/tenders/{}".format(self.tender_id))
self.assertEqual(response.json["data"]["status"], "active.qualification")
self.app.authorization = ("Basic", ("anon", ""))
response = self.app.get("/tenders/{}/bids".format(self.tender_id))
self.assertEqual(response.status, "200 OK")
self.assertEqual(len(response.json["data"]), self.min_bids_number)
for b in response.json["data"]:
self.assertEqual(
set(b.keys()), set([u"date", u"status", u"id", u"value", u"tenderers", "selfEligible", "selfQualified"])
)
response = self.app.get("/tenders/{}/bids/{}".format(self.tender_id, bid["id"]))
self.assertEqual(response.status, "200 OK")
self.assertEqual(
set(response.json["data"].keys()),
set([u"date", u"status", u"id", u"value", u"tenderers", "selfEligible", "selfQualified"]),
)
# get awards
response = self.app.get("/tenders/{}/awards".format(self.tender_id))
# get pending award
award_id = [i["id"] for i in response.json["data"] if i["status"] == "pending"][0]
self.app.authorization = ("Basic", ("token", ""))
self.app.patch_json(
"/tenders/{}/awards/{}?acc_token={}".format(self.tender_id, award_id, self.tender_token),
{"data": {"status": "active", "qualified": True, "eligible": True}},
)
self.assertEqual(response.status, "200 OK")
response = self.app.get("/tenders/{}".format(self.tender_id))
self.assertEqual(response.json["data"]["status"], "active.awarded")
self.app.authorization = ("Basic", ("anon", ""))
response = self.app.get("/tenders/{}/bids".format(self.tender_id))
self.assertEqual(response.status, "200 OK")
self.assertEqual(len(response.json["data"]), self.min_bids_number)
for b in response.json["data"]:
self.assertEqual(
set(b.keys()), set([u"date", u"status", u"id", u"value", u"tenderers", "selfEligible", "selfQualified"])
)
response = self.app.get("/tenders/{}/bids/{}".format(self.tender_id, bid["id"]))
self.assertEqual(response.status, "200 OK")
self.assertEqual(
set(response.json["data"].keys()),
set([u"date", u"status", u"id", u"value", u"tenderers", "selfEligible", "selfQualified"]),
)
# time travel
tender = self.db.get(self.tender_id)
for i in tender.get("awards", []):
i["complaintPeriod"]["endDate"] = i["complaintPeriod"]["startDate"]
self.db.save(tender)
# sign agreement
response = self.app.get("/tenders/{}".format(self.tender_id))
agreement_id = response.json["data"]["agreements"][-1]["id"]
self.app.authorization = ("Basic", ("token", ""))
self.app.patch_json(
"/tenders/{}/agreements/{}?acc_token={}".format(self.tender_id, agreement_id, self.tender_token),
{"data": {"status": "active"}},
)
response = self.app.get("/tenders/{}".format(self.tender_id))
self.assertEqual(response.json["data"]["status"], "complete")
self.app.authorization = ("Basic", ("anon", ""))
response = self.app.get("/tenders/{}/bids".format(self.tender_id))
self.assertEqual(response.status, "200 OK")
self.assertEqual(len(response.json["data"]), self.min_bids_number)
for b in response.json["data"]:
self.assertEqual(
set(b.keys()), set([u"date", u"status", u"id", u"value", u"tenderers", "selfEligible", "selfQualified"])
)
response = self.app.get("/tenders/{}/bids/{}".format(self.tender_id, bid["id"]))
self.assertEqual(response.status, "200 OK")
self.assertEqual(
set(response.json["data"].keys()),
set([u"date", u"status", u"id", u"value", u"tenderers", "selfEligible", "selfQualified"]),
)
def bids_invalidation_on_tender_change(self):
bids_access = {}
initial_bids = deepcopy(self.test_bids_data)
self.convert_bids_for_tender_with_lots(initial_bids, self.initial_lots)
# submit bids
for data in initial_bids:
response = self.app.post_json("/tenders/{}/bids".format(self.tender_id), {"data": data})
self.assertEqual(response.status, "201 Created")
self.assertEqual(response.content_type, "application/json")
bids_access[response.json["data"]["id"]] = response.json["access"]["token"]
# check initial status
for bid_id, token in bids_access.items():
response = self.app.get("/tenders/{}/bids/{}?acc_token={}".format(self.tender_id, bid_id, token))
self.assertEqual(response.status, "200 OK")
self.assertEqual(response.json["data"]["status"], "pending")
# update tender. we can set value that is less than a value in bids as
# they will be invalidated by this request
response = self.app.patch_json(
"/tenders/{}/lots/{}?acc_token={}".format(self.tender_id, self.initial_lots[0]["id"], self.tender_token),
{"data": {"value": {"amount": 300.0}}},
)
self.assertEqual(response.status, "200 OK")
self.assertEqual(response.json["data"]["value"]["amount"], 300)
# check bids status
for bid_id, token in bids_access.items():
response = self.app.get("/tenders/{}/bids/{}?acc_token={}".format(self.tender_id, bid_id, token))
self.assertEqual(response.status, "200 OK")
self.assertEqual(response.json["data"]["status"], "invalid")
# try to add documents to bid
for doc_resource in ["documents", "financial_documents", "eligibility_documents", "qualification_documents"]:
response = self.app.post(
"/tenders/{}/bids/{}/{}?acc_token={}".format(self.tender_id, bid_id, doc_resource, token),
upload_files=[("file", "name_{}.doc".format(doc_resource[:-1]), "content")],
status=403,
)
self.assertEqual(response.status, "403 Forbidden")
self.assertEqual(response.content_type, "application/json")
self.assertEqual(response.json["errors"][0]["description"], "Can't add document at 'invalid' bid status")
# check that tender status change does not invalidate bids
# submit one more bid. check for invalid value first
response = self.app.post_json("/tenders/{}/bids".format(self.tender_id), {"data": initial_bids[0]}, status=422)
self.assertEqual(response.status, "422 Unprocessable Entity")
self.assertEqual(response.content_type, "application/json")
self.assertEqual(response.json["status"], "error")
self.assertEqual(
response.json["errors"],
[
{
u"description": [{u"value": [u"value of bid should be less than value of lot"]}],
u"location": u"body",
u"name": u"lotValues",
}
],
)
# and submit valid bid
data = initial_bids[0]
data["lotValues"][0]["value"]["amount"] = 299
response = self.app.post_json("/tenders/{}/bids".format(self.tender_id), {"data": data})
self.assertEqual(response.status, "201 Created")
valid_bid_id = response.json["data"]["id"]
valid_bid_token = response.json["access"]["token"]
valid_bid_date = response.json["data"]["date"]
for i in range(1, self.min_bids_number):
response = self.app.post_json(
"/tenders/{}/bids".format(self.tender_id),
{
"data": {
"selfEligible": True,
"selfQualified": True,
"tenderers": initial_bids[i]["tenderers"],
"lotValues": [{"value": {"amount": 101}, "relatedLot": self.initial_lots[0]["id"]}],
}
},
)
# switch to active.pre-qualification
self.set_status("active.tendering", "end")
self.app.authorization = ("Basic", ("chronograph", ""))
response = self.app.patch_json("/tenders/{}".format(self.tender_id), {"data": {"id": self.tender_id}})
self.assertEqual(response.json["data"]["status"], "active.pre-qualification")
# qualify bids
response = self.app.get("/tenders/{}/qualifications".format(self.tender_id))
self.app.authorization = ("Basic", ("token", ""))
for qualification in response.json["data"]:
response = self.app.patch_json(
"/tenders/{}/qualifications/{}".format(self.tender_id, qualification["id"]),
{"data": {"status": "active", "qualified": True, "eligible": True}},
)
self.assertEqual(response.status, "200 OK")
response = self.app.get("/tenders/{}/bids/{}?acc_token={}".format(self.tender_id, valid_bid_id, valid_bid_token))
self.assertEqual(response.json["data"]["status"], "active")
# switch to active.pre-qualification.stand-still
response = self.app.patch_json(
"/tenders/{}".format(self.tender_id), {"data": {"status": "active.pre-qualification.stand-still"}}
)
self.assertEqual(response.json["data"]["status"], "active.pre-qualification.stand-still")
# switch to active.auction
self.set_status("active.pre-qualification.stand-still", "end")
self.app.authorization = ("Basic", ("chronograph", ""))
response = self.app.patch_json("/tenders/{}".format(self.tender_id), {"data": {"id": self.tender_id}})
self.assertEqual(response.json["data"]["status"], "active.auction")
# switch to qualification
self.app.authorization = ("Basic", ("auction", ""))
response = self.app.get("/tenders/{}/auction".format(self.tender_id))
auction_bids_data = response.json["data"]["bids"]
response = self.app.post_json(
"/tenders/{}/auction/{}".format(self.tender_id, self.initial_lots[0]["id"]),
{"data": {"bids": auction_bids_data}},
)
self.assertEqual(response.status, "200 OK")
response = self.app.get("/tenders/{}".format(self.tender_id))
self.assertEqual(response.json["data"]["status"], "active.qualification")
# tender should display all bids
self.assertEqual(len(response.json["data"]["bids"]), self.min_bids_number * 2)
self.assertEqual(response.json["data"]["bids"][self.min_bids_number]["date"], valid_bid_date)
# invalidated bids should show only 'id' and 'status' fields
for bid in response.json["data"]["bids"]:
if bid["status"] == "invalid":
self.assertTrue("id" in bid)
self.assertFalse("value" in bid)
self.assertFalse("tenderers" in bid)
self.assertFalse("date" in bid)
# invalidated bids stay invalidated
for bid_id, token in bids_access.items():
response = self.app.get("/tenders/{}/bids/{}".format(self.tender_id, bid_id))
self.assertEqual(response.status, "200 OK")
self.assertEqual(response.json["data"]["status"], "invalid")
# invalidated bids displays only 'id' and 'status' fields
self.assertFalse("value" in response.json["data"])
self.assertFalse("tenderers" in response.json["data"])
self.assertFalse("date" in response.json["data"])
# and valid bid is not invalidated
response = self.app.get("/tenders/{}/bids/{}".format(self.tender_id, valid_bid_id))
self.assertEqual(response.status, "200 OK")
self.assertEqual(response.json["data"]["status"], "active")
# and displays all his data
self.assertTrue("value" in response.json["data"]["lotValues"][0])
self.assertTrue("tenderers" in response.json["data"])
self.assertTrue("date" in response.json["data"]["lotValues"][0])
# check bids availability on finished tender
self.set_status("complete")
response = self.app.get("/tenders/{}".format(self.tender_id))
self.assertEqual(response.status, "200 OK")
self.assertEqual(len(response.json["data"]["bids"]), self.min_bids_number * 2)
for bid in response.json["data"]["bids"]:
if bid["id"] in bids_access: # previously invalidated bids
self.assertEqual(bid["status"], "invalid")
self.assertFalse("value" in bid)
self.assertFalse("tenderers" in bid)
self.assertFalse("date" in bid)
else: # valid bid
self.assertEqual(bid["status"], "active")
self.assertTrue("value" in bid["lotValues"][0])
self.assertTrue("tenderers" in bid)
self.assertTrue("date" in bid["lotValues"][0])
def get_tender_tenderers(self):
initial_bids = deepcopy(self.test_bids_data)
self.convert_bids_for_tender_with_lots(initial_bids, self.initial_lots)
response = self.app.post_json("/tenders/{}/bids".format(self.tender_id), {"data": initial_bids[0]})
self.assertEqual(response.status, "201 Created")
self.assertEqual(response.content_type, "application/json")
bid = response.json["data"]
response = self.app.get("/tenders/{}/bids".format(self.tender_id), status=403)
self.assertEqual(response.status, "403 Forbidden")
self.assertEqual(response.content_type, "application/json")
self.assertEqual(
response.json["errors"][0]["description"], "Can't view bids in current (active.tendering) tender status"
)
for _ in range(self.min_bids_number - 1):
response = self.app.post_json("/tenders/{}/bids".format(self.tender_id), {"data": initial_bids[0]})
# switch to active.pre-qualification
self.set_status("active.tendering", "end")
self.app.authorization = ("Basic", ("chronograph", ""))
response = self.app.patch_json("/tenders/{}".format(self.tender_id), {"data": {"id": self.tender_id}})
self.assertEqual(response.json["data"]["status"], "active.pre-qualification")
# qualify bids
response = self.app.get("/tenders/{}/qualifications".format(self.tender_id))
self.app.authorization = ("Basic", ("token", ""))
for qualification in response.json["data"]:
response = self.app.patch_json(
"/tenders/{}/qualifications/{}".format(self.tender_id, qualification["id"]),
{"data": {"status": "active", "qualified": True, "eligible": True}},
)
self.assertEqual(response.status, "200 OK")
# switch to active.pre-qualification.stand-still
response = self.app.patch_json(
"/tenders/{}".format(self.tender_id), {"data": {"status": "active.pre-qualification.stand-still"}}
)
self.assertEqual(response.json["data"]["status"], "active.pre-qualification.stand-still")
# switch to active.auction
self.set_status("active.pre-qualification.stand-still", "end")
self.app.authorization = ("Basic", ("chronograph", ""))
response = self.app.patch_json("/tenders/{}".format(self.tender_id), {"data": {"id": self.tender_id}})
self.assertEqual(response.json["data"]["status"], "active.auction")
# switch to qualification
self.app.authorization = ("Basic", ("auction", ""))
response = self.app.get("/tenders/{}/auction".format(self.tender_id))
auction_bids_data = response.json["data"]["bids"]
response = self.app.post_json(
"/tenders/{}/auction/{}".format(self.tender_id, self.initial_lots[0]["id"]),
{"data": {"bids": auction_bids_data}},
)
self.assertEqual(response.status, "200 OK")
response = self.app.get("/tenders/{}".format(self.tender_id))
self.assertEqual(response.json["data"]["status"], "active.qualification")
response = self.app.get("/tenders/{}/bids".format(self.tender_id))
self.assertEqual(response.status, "200 OK")
self.assertEqual(response.content_type, "application/json")
bid_data = response.json["data"][0]
self.assertEqual(bid_data["id"], bid["id"])
self.assertEqual(bid_data["status"], "active")
self.assertTrue("value" in bid_data["lotValues"][0])
self.assertTrue("tenderers" in bid_data)
self.assertTrue("date" in bid_data["lotValues"][0])
response = self.app.get("/tenders/some_id/bids", status=404)
self.assertEqual(response.status, "404 Not Found")
self.assertEqual(response.content_type, "application/json")
self.assertEqual(response.json["status"], "error")
self.assertEqual(
response.json["errors"], [{u"description": u"Not Found", u"location": u"url", u"name": u"tender_id"}]
)
def get_tender_bidder_document(self):
doc_id_by_type = {}
def document_is_unaccessible_for_others(resource):
orig_auth = self.app.authorization
self.app.authorization = ("Basic", ("broker4", ""))
response = self.app.get("/tenders/{}/bids/{}/{}".format(self.tender_id, self.bid_id, resource), status=403)
self.assertEqual(response.status, "403 Forbidden")
doc_id = doc_id_by_type[resource]["id"]
response = self.app.get(
"/tenders/{}/bids/{}/{}/{}".format(self.tender_id, self.bid_id, resource, doc_id), status=403
)
self.assertEqual(response.status, "403 Forbidden")
self.app.authorization = orig_auth
def document_is_unaccessible_for_tender_owner(resource):
orig_auth = self.app.authorization
self.app.authorization = ("Basic", ("broker", ""))
response = self.app.get(
"/tenders/{}/bids/{}/{}?acc_token={}".format(self.tender_id, self.bid_id, resource, self.tender_token),
status=403,
)
self.assertEqual(response.status, "403 Forbidden")
doc_id = doc_id_by_type[resource]["id"]
response = self.app.get(
"/tenders/{}/bids/{}/{}/{}?acc_token={}".format(
self.tender_id, self.bid_id, resource, doc_id, self.tender_token
),
status=403,
)
self.assertEqual(response.status, "403 Forbidden")
self.app.authorization = orig_auth
def all_documents_are_accessible_for_bid_owner(resource):
orig_auth = self.app.authorization
self.app.authorization = ("Basic", ("broker", ""))
for resource in ["documents", "financial_documents", "eligibility_documents", "qualification_documents"]:
response = self.app.get(
"/tenders/{}/bids/{}/{}?acc_token={}".format(self.tender_id, self.bid_id, resource, self.bid_token)
)
self.assertEqual(response.status, "200 OK")
self.assertEqual(len(response.json["data"]), 2)
doc1 = response.json["data"][0]
doc2 = response.json["data"][1]
self.assertEqual(doc1["title"], "name_{}.doc".format(resource[:-1]))
self.assertEqual(doc2["title"], "name_{}_private.doc".format(resource[:-1]))
self.assertEqual(doc1["confidentiality"], u"public")
self.assertEqual(doc2["confidentiality"], u"buyerOnly")
self.assertIn("url", doc1)
self.assertIn("url", doc2)
doc_id = doc_id_by_type[resource]["id"]
response = self.app.get(
"/tenders/{}/bids/{}/{}/{}?acc_token={}".format(
self.tender_id, self.bid_id, resource, doc_id, self.bid_token
)
)
self.assertEqual(response.status, "200 OK")
self.assertIn("previousVersions", response.json["data"])
doc = response.json["data"]
del doc["previousVersions"]
self.assertEqual(doc, doc1)
doc_id = doc_id_by_type[resource + "private"]["id"]
response = self.app.get(
"/tenders/{}/bids/{}/{}/{}?acc_token={}".format(
self.tender_id, self.bid_id, resource, doc_id, self.bid_token
)
)
self.assertEqual(response.status, "200 OK")
self.assertIn("previousVersions", response.json["data"])
doc = response.json["data"]
del doc["previousVersions"]
self.assertEqual(doc, doc2)
self.app.authorization = orig_auth
def documents_are_accessible_for_tender_owner(resource):
orig_auth = self.app.authorization
self.app.authorization = ("Basic", ("broker", ""))
token = self.tender_token
response = self.app.get(
"/tenders/{}/bids/{}/{}?acc_token={}".format(self.tender_id, self.bid_id, resource, token)
)
self.assertEqual(response.status, "200 OK")
self.assertEqual(len(response.json["data"]), 2)
doc_id = doc_id_by_type[resource]["id"]
response = self.app.get(
"/tenders/{}/bids/{}/{}/{}?acc_token={}".format(self.tender_id, self.bid_id, resource, doc_id, token)
)
self.assertIn("url", response.json["data"])
self.assertEqual(response.status, "200 OK")
doc_id = doc_id_by_type[resource + "private"]["id"]
response = self.app.get(
"/tenders/{}/bids/{}/{}/{}?acc_token={}".format(self.tender_id, self.bid_id, resource, doc_id, token)
)
self.assertEqual(response.status, "200 OK")
self.assertIn("url", response.json["data"])
self.app.authorization = orig_auth
def public_documents_are_accessible_for_others(resource):
orig_auth = self.app.authorization
self.app.authorization = ("Basic", ("broker4", ""))
response = self.app.get("/tenders/{}/bids/{}/{}".format(self.tender_id, self.bid_id, resource))
self.assertEqual(response.status, "200 OK")
self.assertEqual(len(response.json["data"]), 2)
self.assertIn(doc_id_by_type[resource]["key"], response.json["data"][0]["url"])
self.assertNotIn("url", response.json["data"][1])
response = self.app.get(
"/tenders/{}/bids/{}/{}/{}".format(self.tender_id, self.bid_id, resource, doc_id_by_type[resource]["id"])
)
self.assertEqual(response.status, "200 OK")
self.assertEqual(response.json["data"]["title"], "name_{}.doc".format(resource[:-1]))
self.assertEqual(response.json["data"]["confidentiality"], u"public")
self.assertEqual(response.json["data"]["format"], u"application/msword")
self.assertEqual(response.json["data"]["language"], "uk")
response = self.app.get(
"/tenders/{}/bids/{}/{}/{}".format(
self.tender_id, self.bid_id, resource, doc_id_by_type[resource + "private"]["id"]
)
)
self.assertEqual(response.status, "200 OK")
self.assertEqual(response.json["data"]["confidentiality"], u"buyerOnly")
self.assertNotIn("url", response.json["data"])
self.app.authorization = orig_auth
def all_public_documents_are_accessible_for_others():
for doc_resource in ["documents", "financial_documents", "eligibility_documents", "qualification_documents"]:
public_documents_are_accessible_for_others(doc_resource)
# active.tendering
for doc_resource in ["documents", "financial_documents", "eligibility_documents", "qualification_documents"]:
response = self.app.post(
"/tenders/{}/bids/{}/{}?acc_token={}".format(self.tender_id, self.bid_id, doc_resource, self.bid_token),
upload_files=[("file", "name_{}.doc".format(doc_resource[:-1]), "content")],
)
self.assertEqual(response.status, "201 Created")
self.assertEqual(response.content_type, "application/json")
doc_id = response.json["data"]["id"]
self.assertIn(doc_id, response.headers["Location"])
self.assertEqual("name_{}.doc".format(doc_resource[:-1]), response.json["data"]["title"])
key = response.json["data"]["url"].split("?")[-1].split("=")[-1]
doc_id_by_type[doc_resource] = {"id": doc_id, "key": key}
# upload private document
response = self.app.post(
"/tenders/{}/bids/{}/{}?acc_token={}".format(self.tender_id, self.bid_id, doc_resource, self.bid_token),
upload_files=[("file", "name_{}_private.doc".format(doc_resource[:-1]), "content")],
)
self.assertEqual(response.status, "201 Created")
self.assertEqual(response.content_type, "application/json")
doc_id = response.json["data"]["id"]
self.assertIn(doc_id, response.headers["Location"])
self.assertEqual("name_{}_private.doc".format(doc_resource[:-1]), response.json["data"]["title"])
key = response.json["data"]["url"].split("?")[-1].split("=")[-1]
doc_id_by_type[doc_resource + "private"] = {"id": doc_id, "key": key}
response = self.app.patch_json(
"/tenders/{}/bids/{}/{}/{}?acc_token={}".format(
self.tender_id, self.bid_id, doc_resource, doc_id, self.bid_token
),
{
"data": {
"confidentiality": "buyerOnly",
"confidentialityRationale": "Only our company sells badgers with pink hair.",
}
},
)
self.assertEqual(response.status, "200 OK")
document_is_unaccessible_for_others(doc_resource)
document_is_unaccessible_for_tender_owner(doc_resource)
all_documents_are_accessible_for_bid_owner(doc_resource)
# switch to active.pre-qualification
self.set_status("active.pre-qualification")
self.app.authorization = ("Basic", ("anon", ""))
response = self.app.get("/tenders/{}/bids".format(self.tender_id))
self.assertEqual(response.status, "200 OK")
self.assertEqual(len(response.json["data"]), self.min_bids_number)
self.assertEqual(
set(response.json["data"][0].keys()), set(["id", "status", "documents", "eligibilityDocuments", "tenderers"])
)
self.assertEqual(set(response.json["data"][1].keys()), set(["id", "status", "tenderers"]))
response = self.app.get("/tenders/{}/bids/{}".format(self.tender_id, self.bid_id))
self.assertEqual(response.status, "200 OK")
self.assertEqual(
set(response.json["data"].keys()), set(["id", "status", "documents", "eligibilityDocuments", "tenderers"])
)
for doc_resource in ["documents", "eligibility_documents"]:
response = self.app.get("/tenders/{}/bids/{}/{}".format(self.tender_id, self.bid_id, doc_resource))
self.assertEqual(response.status, "200 OK")
self.assertEqual(len(response.json["data"]), 2)
self.assertIn("url", response.json["data"][0])
self.assertIn(doc_id_by_type[doc_resource]["key"], response.json["data"][0]["url"])
self.assertNotIn("url", response.json["data"][1])
for doc_resource in ["documents", "eligibility_documents"]:
doc_id = doc_id_by_type[doc_resource]["id"]
response = self.app.get("/tenders/{}/bids/{}/{}/{}".format(self.tender_id, self.bid_id, doc_resource, doc_id))
self.assertEqual(response.status, "200 OK")
self.assertEqual(response.json["data"]["title"], u"name_{}.doc".format(doc_resource[:-1]))
self.assertEqual(response.json["data"]["confidentiality"], u"public")
self.assertEqual(response.json["data"]["format"], u"application/msword")
self.assertEqual(response.json["data"]["language"], "uk")
doc_id = doc_id_by_type[doc_resource + "private"]["id"]
response = self.app.get("/tenders/{}/bids/{}/{}/{}".format(self.tender_id, self.bid_id, doc_resource, doc_id))
self.assertEqual(response.status, "200 OK")
self.assertEqual(response.json["data"]["title"], u"name_{}_private.doc".format(doc_resource[:-1]))
self.assertEqual(response.json["data"]["confidentiality"], u"buyerOnly")
self.assertEqual(response.json["data"]["format"], u"application/msword")
self.assertEqual(response.json["data"]["language"], "uk")
for doc_resource in ["financial_documents", "qualification_documents"]:
document_is_unaccessible_for_others(doc_resource)
document_is_unaccessible_for_tender_owner(doc_resource)
for doc_resource in ["documents", "eligibility_documents"]:
documents_are_accessible_for_tender_owner(doc_resource)
public_documents_are_accessible_for_others(doc_resource)
all_documents_are_accessible_for_bid_owner(doc_resource)
self.set_status("active.pre-qualification.stand-still")
self.app.authorization = ("Basic", ("anon", ""))
response = self.app.get("/tenders/{}/bids".format(self.tender_id))
self.assertEqual(response.status, "200 OK")
self.assertEqual(len(response.json["data"]), self.min_bids_number)
self.assertEqual(
set(response.json["data"][0].keys()), set(["id", "status", "documents", "eligibilityDocuments", "tenderers"])
)
self.assertEqual(set(response.json["data"][1].keys()), set(["id", "status", "tenderers"]))
response = self.app.get("/tenders/{}/bids/{}".format(self.tender_id, self.bid_id))
self.assertEqual(response.status, "200 OK")
self.assertEqual(
set(response.json["data"].keys()), set(["id", "status", "documents", "eligibilityDocuments", "tenderers"])
)
response = self.app.get("/tenders/{}/bids/{}/documents".format(self.tender_id, self.bid_id))
self.assertEqual(response.status, "200 OK")
self.assertEqual(len(response.json["data"]), 2)
self.assertIn(doc_id_by_type["documents"]["key"], response.json["data"][0]["url"])
doc_id = doc_id_by_type["documents"]["id"]
response = self.app.get("/tenders/{}/bids/{}/documents/{}".format(self.tender_id, self.bid_id, doc_id))
self.assertEqual(response.status, "200 OK")
self.assertEqual(response.json["data"]["title"], u"name_document.doc")
self.assertEqual(response.json["data"]["confidentiality"], u"public")
self.assertEqual(response.json["data"]["format"], u"application/msword")
for doc_resource in ["financial_documents", "qualification_documents"]:
document_is_unaccessible_for_others(doc_resource)
document_is_unaccessible_for_tender_owner(doc_resource)
for doc_resource in ["documents", "eligibility_documents"]:
documents_are_accessible_for_tender_owner(doc_resource)
public_documents_are_accessible_for_others(doc_resource)
all_documents_are_accessible_for_bid_owner(doc_resource)
# switch to active.auction
self.set_status("active.auction")
self.app.authorization = ("Basic", ("anon", ""))
response = self.app.get("/tenders/{}/bids".format(self.tender_id))
self.assertEqual(response.status, "200 OK")
self.assertEqual(len(response.json["data"]), self.min_bids_number)
self.assertEqual(
set(response.json["data"][0].keys()), set(["id", "status", "documents", "eligibilityDocuments", "tenderers"])
)
self.assertEqual(set(response.json["data"][1].keys()), set(["id", "status", "tenderers"]))
response = self.app.get("/tenders/{}/bids/{}".format(self.tender_id, self.bid_id))
self.assertEqual(response.status, "200 OK")
self.assertEqual(
set(response.json["data"].keys()), set(["id", "status", "documents", "eligibilityDocuments", "tenderers"])
)
response = self.app.get("/tenders/{}/bids/{}/documents".format(self.tender_id, self.bid_id))
self.assertEqual(response.status, "200 OK")
self.assertEqual(len(response.json["data"]), 2)
self.assertIn(doc_id_by_type["documents"]["key"], response.json["data"][0]["url"])
doc_id = doc_id_by_type["documents"]["id"]
response = self.app.get("/tenders/{}/bids/{}/documents/{}".format(self.tender_id, self.bid_id, doc_id))
self.assertEqual(response.status, "200 OK")
self.assertEqual(response.json["data"]["title"], u"name_document.doc")
self.assertEqual(response.json["data"]["confidentiality"], u"public")
self.assertEqual(response.json["data"]["format"], u"application/msword")
for doc_resource in ["financial_documents", "qualification_documents"]:
document_is_unaccessible_for_others(doc_resource)
document_is_unaccessible_for_tender_owner(doc_resource)
for doc_resource in ["documents", "eligibility_documents"]:
documents_are_accessible_for_tender_owner(doc_resource)
public_documents_are_accessible_for_others(doc_resource)
all_documents_are_accessible_for_bid_owner(doc_resource)
self.set_status("active.qualification")
self.app.authorization = ("Basic", ("anon", ""))
response = self.app.get("/tenders/{}/bids".format(self.tender_id))
self.assertEqual(response.status, "200 OK")
self.assertEqual(len(response.json["data"]), self.min_bids_number)
self.assertEqual(
set(response.json["data"][0].keys()),
set(
[
u"date",
u"status",
u"id",
u"lotValues",
u"tenderers",
u"documents",
u"eligibilityDocuments",
u"qualificationDocuments",
u"financialDocuments",
u"selfEligible",
u"selfQualified",
]
),
)
self.assertEqual(
set(response.json["data"][1].keys()),
set([u"date", u"status", u"id", u"lotValues", u"tenderers", u"selfEligible", u"selfQualified"]),
)
response = self.app.get("/tenders/{}/bids/{}".format(self.tender_id, self.bid_id))
self.assertEqual(response.status, "200 OK")
self.assertEqual(
set(response.json["data"].keys()),
set(
[
u"date",
u"status",
u"id",
u"lotValues",
u"tenderers",
u"documents",
u"eligibilityDocuments",
u"qualificationDocuments",
u"financialDocuments",
u"selfEligible",
u"selfQualified",
]
),
)
all_documents_are_accessible_for_bid_owner(doc_resource)
for doc_resource in ["documents", "financial_documents", "eligibility_documents", "qualification_documents"]:
documents_are_accessible_for_tender_owner(doc_resource)
all_public_documents_are_accessible_for_others()
# switch to active.awarded
self.set_status("active.awarded")
self.app.authorization = ("Basic", ("anon", ""))
response = self.app.get("/tenders/{}/bids".format(self.tender_id))
self.assertEqual(response.status, "200 OK")
self.assertEqual(len(response.json["data"]), self.min_bids_number)
self.assertEqual(
set(response.json["data"][0].keys()),
set(
[
u"date",
u"status",
u"id",
u"lotValues",
u"tenderers",
u"documents",
u"eligibilityDocuments",
u"qualificationDocuments",
u"financialDocuments",
u"selfEligible",
u"selfQualified",
]
),
)
self.assertEqual(
set(response.json["data"][1].keys()),
set([u"date", u"status", u"id", u"lotValues", u"tenderers", u"selfEligible", u"selfQualified"]),
)
response = self.app.get("/tenders/{}/bids/{}".format(self.tender_id, self.bid_id))
self.assertEqual(response.status, "200 OK")
self.assertEqual(
set(response.json["data"].keys()),
set(
[
u"date",
u"status",
u"id",
u"lotValues",
u"tenderers",
u"documents",
u"eligibilityDocuments",
u"qualificationDocuments",
u"financialDocuments",
u"selfEligible",
u"selfQualified",
]
),
)
all_documents_are_accessible_for_bid_owner(doc_resource)
for doc_resource in ["documents", "financial_documents", "eligibility_documents", "qualification_documents"]:
documents_are_accessible_for_tender_owner(doc_resource)
all_public_documents_are_accessible_for_others()
# time travel
self.set_status("complete")
self.app.authorization = ("Basic", ("anon", ""))
response = self.app.get("/tenders/{}/bids".format(self.tender_id))
self.assertEqual(response.status, "200 OK")
self.assertEqual(len(response.json["data"]), self.min_bids_number)
self.assertEqual(
set(response.json["data"][0].keys()),
set(
[
u"date",
u"status",
u"id",
u"lotValues",
u"tenderers",
u"documents",
u"eligibilityDocuments",
u"qualificationDocuments",
u"financialDocuments",
u"selfEligible",
u"selfQualified",
]
),
)
self.assertEqual(
set(response.json["data"][1].keys()),
set([u"date", u"status", u"id", u"lotValues", u"tenderers", u"selfEligible", u"selfQualified"]),
)
response = self.app.get("/tenders/{}/bids/{}".format(self.tender_id, self.bid_id))
self.assertEqual(response.status, "200 OK")
self.assertEqual(
set(response.json["data"].keys()),
set(
[
u"date",
u"status",
u"id",
u"lotValues",
u"tenderers",
u"documents",
u"eligibilityDocuments",
u"qualificationDocuments",
u"financialDocuments",
u"selfEligible",
u"selfQualified",
]
),
)
all_documents_are_accessible_for_bid_owner(doc_resource)
for doc_resource in ["documents", "financial_documents", "eligibility_documents", "qualification_documents"]:
documents_are_accessible_for_tender_owner(doc_resource)
all_public_documents_are_accessible_for_others()
def create_tender_bidder_document(self):
doc_id_by_type = {}
for doc_resource in ["documents", "financial_documents", "eligibility_documents", "qualification_documents"]:
response = self.app.post(
"/tenders/{}/bids/{}/{}?acc_token={}".format(self.tender_id, self.bid_id, doc_resource, self.bid_token),
upload_files=[("file", "name_{}.doc".format(doc_resource[:-1]), "content")],
)
self.assertEqual(response.status, "201 Created")
self.assertEqual(response.content_type, "application/json")
doc_id = response.json["data"]["id"]
self.assertIn(doc_id, response.headers["Location"])
self.assertEqual("name_{}.doc".format(doc_resource[:-1]), response.json["data"]["title"])
key = response.json["data"]["url"].split("?")[-1]
doc_id_by_type[doc_resource] = {"id": doc_id, "key": key}
for doc_resource in ["documents", "financial_documents", "eligibility_documents", "qualification_documents"]:
response = self.app.get(
"/tenders/{}/bids/{}/{}?acc_token={}".format(self.tender_id, self.bid_id, doc_resource, self.bid_token)
)
self.assertEqual(response.status, "200 OK")
self.assertEqual(response.content_type, "application/json")
self.assertEqual(doc_id_by_type[doc_resource]["id"], response.json["data"][0]["id"])
self.assertEqual("name_{}.doc".format(doc_resource[:-1]), response.json["data"][0]["title"])
response = self.app.get(
"/tenders/{}/bids/{}/{}?all=true&acc_token={}".format(
self.tender_id, self.bid_id, doc_resource, self.bid_token
)
)
self.assertEqual(response.status, "200 OK")
self.assertEqual(response.content_type, "application/json")
self.assertEqual(doc_id_by_type[doc_resource]["id"], response.json["data"][0]["id"])
self.assertEqual("name_{}.doc".format(doc_resource[:-1]), response.json["data"][0]["title"])
doc_id = doc_id_by_type[doc_resource]["id"]
key = doc_id_by_type[doc_resource]["key"]
response = self.app.get(
"/tenders/{}/bids/{}/{}/{}?download=some_id&acc_token={}".format(
self.tender_id, self.bid_id, doc_resource, doc_id, self.bid_token
),
status=404,
)
self.assertEqual(response.status, "404 Not Found")
self.assertEqual(response.content_type, "application/json")
self.assertEqual(response.json["status"], "error")
self.assertEqual(
response.json["errors"], [{u"description": u"Not Found", u"location": u"url", u"name": u"download"}]
)
response = self.app.get(
"/tenders/{}/bids/{}/{}/{}?{}".format(self.tender_id, self.bid_id, doc_resource, doc_id, key), status=403
)
self.assertEqual(response.status, "403 Forbidden")
self.assertEqual(response.content_type, "application/json")
self.assertEqual(
response.json["errors"][0]["description"],
"Can't view bid documents in current (active.tendering) tender status",
)
if self.docservice:
response = self.app.get(
"/tenders/{}/bids/{}/{}/{}?{}&acc_token={}".format(
self.tender_id, self.bid_id, doc_resource, doc_id, key, self.bid_token
)
)
self.assertEqual(response.status, "302 Moved Temporarily")
self.assertIn("http://localhost/get/", response.location)
self.assertIn("Signature=", response.location)
self.assertIn("KeyID=", response.location)
self.assertIn("Expires=", response.location)
else:
response = self.app.get(
"/tenders/{}/bids/{}/{}/{}?{}&acc_token={}".format(
self.tender_id, self.bid_id, doc_resource, doc_id, key, self.bid_token
)
)
self.assertEqual(response.status, "200 OK")
self.assertEqual(response.content_type, "application/msword")
self.assertEqual(response.content_length, 7)
self.assertEqual(response.body, "content")
response = self.app.get(
"/tenders/{}/bids/{}/{}/{}".format(self.tender_id, self.bid_id, doc_resource, doc_id), status=403
)
self.assertEqual(response.status, "403 Forbidden")
self.assertEqual(response.content_type, "application/json")
self.assertEqual(
response.json["errors"][0]["description"],
"Can't view bid documents in current (active.tendering) tender status",
)
response = self.app.get(
"/tenders/{}/bids/{}/{}/{}?acc_token={}".format(
self.tender_id, self.bid_id, doc_resource, doc_id, self.bid_token
)
)
self.assertEqual(response.status, "200 OK")
self.assertEqual(response.content_type, "application/json")
self.assertEqual(doc_id, response.json["data"]["id"])
self.assertEqual("name_{}.doc".format(doc_resource[:-1]), response.json["data"]["title"])
# switch to active.pre-qualification
self.set_status("active.pre-qualification")
for doc_resource in ["documents", "financial_documents", "eligibility_documents", "qualification_documents"]:
response = self.app.post(
"/tenders/{}/bids/{}/{}?acc_token={}".format(self.tender_id, self.bid_id, doc_resource, self.bid_token),
upload_files=[("file", "name.doc", "content")],
status=403,
)
self.assertEqual(response.status, "403 Forbidden")
self.assertEqual(response.content_type, "application/json")
self.assertEqual(
response.json["errors"][0]["description"],
"Can't upload document in current (active.pre-qualification) tender status",
)
# list qualifications
self.set_status("active.pre-qualification.stand-still")
for doc_resource in ["documents", "financial_documents", "eligibility_documents", "qualification_documents"]:
response = self.app.post(
"/tenders/{}/bids/{}/{}?acc_token={}".format(self.tender_id, self.bid_id, doc_resource, self.bid_token),
upload_files=[("file", "name.doc", "content")],
status=403,
)
self.assertEqual(response.status, "403 Forbidden")
self.assertEqual(response.content_type, "application/json")
self.assertEqual(
response.json["errors"][0]["description"],
"Can't upload document in current (active.pre-qualification.stand-still) tender status",
)
# switch to active.auction
self.set_status("active.auction")
self.app.authorization = ("Basic", ("token", ""))
for doc_resource in ["documents", "financial_documents", "eligibility_documents", "qualification_documents"]:
response = self.app.post(
"/tenders/{}/bids/{}/{}?acc_token={}".format(self.tender_id, self.bid_id, doc_resource, self.bid_token),
upload_files=[("file", "name.doc", "content")],
status=403,
)
self.assertEqual(response.status, "403 Forbidden")
self.assertEqual(response.content_type, "application/json")
self.assertEqual(
response.json["errors"][0]["description"], "Can't upload document in current (active.auction) tender status"
)
# switch to qualification
self.set_status("active.qualification")
self.app.authorization = ("Basic", ("token", ""))
for doc_resource in ["documents", "financial_documents", "eligibility_documents", "qualification_documents"]:
response = self.app.post(
"/tenders/{}/bids/{}/{}?acc_token={}".format(self.tender_id, self.bid_id, doc_resource, self.bid_token),
upload_files=[("file", "name2_{}.doc".format(doc_resource[:-1]), "content")],
)
self.assertEqual(response.status, "201 Created")
# switch to active.awarded
self.set_status("active.awarded")
for doc_resource in ["documents", "eligibility_documents", "qualification_documents"]:
response = self.app.post(
"/tenders/{}/bids/{}/{}?acc_token={}".format(self.tender_id, self.bid2_id, doc_resource, self.bid_token),
upload_files=[("file", "name.doc", "content")],
status=403,
)
self.assertEqual(response.status, "403 Forbidden")
self.assertEqual(response.content_type, "application/json")
self.assertEqual(
response.json["errors"],
[
{
u"location": u"body",
u"name": u"data",
u"description": u"Can't upload document in current (active.awarded) tender status",
}
],
)
response = self.app.post(
"/tenders/{}/bids/{}/financial_documents?acc_token={}".format(self.tender_id, self.bid2_id, self.bid_token),
upload_files=[("file", "name.doc", "content")],
status=201,
)
self.assertEqual(response.status, "201 Created")
self.assertEqual(response.content_type, "application/json")
self.set_status("complete")
for doc_resource in ["documents", "financial_documents", "eligibility_documents", "qualification_documents"]:
response = self.app.post(
"/tenders/{}/bids/{}/{}?acc_token={}".format(self.tender_id, self.bid_id, doc_resource, self.bid_token),
upload_files=[("file", "name.doc", "content")],
status=403,
)
self.assertEqual(response.status, "403 Forbidden")
self.assertEqual(response.content_type, "application/json")
self.assertEqual(
response.json["errors"][0]["description"], "Can't upload document in current (complete) tender status"
)
def put_tender_bidder_document(self):
doc_id_by_type = {}
doc_id_by_type2 = {}
for doc_resource in ["documents", "financial_documents", "eligibility_documents", "qualification_documents"]:
response = self.app.post(
"/tenders/{}/bids/{}/{}?acc_token={}".format(self.tender_id, self.bid_id, doc_resource, self.bid_token),
upload_files=[("file", "name_{}.doc".format(doc_resource[:-1]), "content")],
)
self.assertEqual(response.status, "201 Created")
self.assertEqual(response.content_type, "application/json")
doc_id = response.json["data"]["id"]
self.assertIn(doc_id, response.headers["Location"])
self.assertEqual("name_{}.doc".format(doc_resource[:-1]), response.json["data"]["title"])
doc_id_by_type[doc_resource] = {"id": doc_id, "key": response.json["data"]["url"].split("?")[-1].split("=")[-1]}
response = self.app.post(
"/tenders/{}/bids/{}/{}?acc_token={}".format(self.tender_id, self.bid2_id, doc_resource, self.bid2_token),
upload_files=[("file", "name_{}.doc".format(doc_resource[:-1]), "content")],
)
self.assertEqual(response.status, "201 Created")
self.assertEqual(response.content_type, "application/json")
doc_id_by_type2[doc_resource] = {
"id": response.json["data"]["id"],
"key": response.json["data"]["url"].split("?")[-1].split("=")[-1],
}
response = self.app.put(
"/tenders/{}/bids/{}/{}/{}?acc_token={}".format(
self.tender_id, self.bid_id, doc_resource, doc_id, self.bid_token
),
status=404,
upload_files=[("invalid_name", "name.doc", "content")],
)
self.assertEqual(response.status, "404 Not Found")
self.assertEqual(response.content_type, "application/json")
self.assertEqual(response.json["status"], "error")
self.assertEqual(
response.json["errors"], [{u"description": u"Not Found", u"location": u"body", u"name": u"file"}]
)
response = self.app.put(
"/tenders/{}/bids/{}/{}/{}?acc_token={}".format(
self.tender_id, self.bid_id, doc_resource, doc_id, self.bid_token
),
upload_files=[("file", "name.doc", "content2")],
)
self.assertEqual(response.status, "200 OK")
self.assertEqual(response.content_type, "application/json")
self.assertEqual(doc_id, response.json["data"]["id"])
key = response.json["data"]["url"].split("?")[-1].split("=")[-1]
response = self.app.get(
"/tenders/{}/bids/{}/{}/{}?download={}&acc_token={}".format(
self.tender_id, self.bid_id, doc_resource, doc_id, key, self.bid_token
)
)
if self.docservice:
self.assertEqual(response.status, "302 Moved Temporarily")
self.assertIn("http://localhost/get/", response.location)
self.assertIn("Signature=", response.location)
self.assertIn("KeyID=", response.location)
self.assertIn("Expires=", response.location)
else:
self.assertEqual(response.status, "200 OK")
self.assertEqual(response.content_type, "application/msword")
self.assertEqual(response.content_length, 8)
self.assertEqual(response.body, "content2")
response = self.app.get(
"/tenders/{}/bids/{}/{}/{}?acc_token={}".format(
self.tender_id, self.bid_id, doc_resource, doc_id, self.bid_token
)
)
self.assertEqual(response.status, "200 OK")
self.assertEqual(response.content_type, "application/json")
self.assertEqual(doc_id, response.json["data"]["id"])
self.assertEqual("name.doc", response.json["data"]["title"])
response = self.app.put(
"/tenders/{}/bids/{}/{}/{}?acc_token={}".format(
self.tender_id, self.bid_id, doc_resource, doc_id, self.bid_token
),
"content3",
content_type="application/msword",
)
self.assertEqual(response.status, "200 OK")
self.assertEqual(response.content_type, "application/json")
self.assertEqual(doc_id, response.json["data"]["id"])
key = response.json["data"]["url"].split("?")[-1].split("=")[-1]
response = self.app.get(
"/tenders/{}/bids/{}/{}/{}?download={}&acc_token={}".format(
self.tender_id, self.bid_id, doc_resource, doc_id, key, self.bid_token
)
)
if self.docservice:
self.assertEqual(response.status, "302 Moved Temporarily")
self.assertIn("http://localhost/get/", response.location)
self.assertIn("Signature=", response.location)
self.assertIn("KeyID=", response.location)
self.assertIn("Expires=", response.location)
else:
self.assertEqual(response.status, "200 OK")
self.assertEqual(response.content_type, "application/msword")
self.assertEqual(response.content_length, 8)
self.assertEqual(response.body, "content3")
# switch to active.pre-qualification
self.set_status("active.pre-qualification")
for doc_resource in ["documents", "financial_documents", "eligibility_documents", "qualification_documents"]:
response = self.app.put(
"/tenders/{}/bids/{}/{}/{}?acc_token={}".format(
self.tender_id, self.bid_id, doc_resource, doc_id_by_type[doc_resource]["id"], self.bid_token
),
upload_files=[("file", "name.doc", "content4")],
status=403,
)
self.assertEqual(response.status, "403 Forbidden")
self.assertEqual(response.content_type, "application/json")
self.assertEqual(
response.json["errors"][0]["description"],
u"Can't upload document in current (active.pre-qualification) tender status",
)
self.set_status("active.pre-qualification.stand-still")
for doc_resource in ["documents", "financial_documents", "eligibility_documents", "qualification_documents"]:
response = self.app.put(
"/tenders/{}/bids/{}/{}/{}?acc_token={}".format(
self.tender_id, self.bid_id, doc_resource, doc_id_by_type[doc_resource]["id"], self.bid_token
),
upload_files=[("file", "name.doc", "content4")],
status=403,
)
self.assertEqual(response.status, "403 Forbidden")
self.assertEqual(response.content_type, "application/json")
self.assertEqual(
response.json["errors"][0]["description"],
"Can't upload document in current (active.pre-qualification.stand-still) tender status",
)
# switch to active.auction
self.set_status("active.auction")
self.app.authorization = ("Basic", ("broker", ""))
for doc_resource in ["documents", "financial_documents", "eligibility_documents", "qualification_documents"]:
response = self.app.put(
"/tenders/{}/bids/{}/{}/{}?acc_token={}".format(
self.tender_id, self.bid_id, doc_resource, doc_id_by_type[doc_resource]["id"], self.bid_token
),
upload_files=[("file", "name.doc", "content4")],
status=403,
)
self.assertEqual(response.status, "403 Forbidden")
self.assertEqual(response.content_type, "application/json")
self.assertEqual(
response.json["errors"][0]["description"], "Can't upload document in current (active.auction) tender status"
)
# switch to qualification
self.set_status("active.qualification")
self.app.authorization = ("Basic", ("token", ""))
for doc_resource in ["documents", "financial_documents", "eligibility_documents", "qualification_documents"]:
response = self.app.put(
"/tenders/{}/bids/{}/{}/{}".format(
self.tender_id, self.bid_id, doc_resource, doc_id_by_type[doc_resource]["id"]
),
upload_files=[("file", "name.doc", "content4")],
)
self.assertEqual(response.status, "200 OK")
# switch to active.awarded
self.set_status("active.awarded")
for doc_resource in ["documents", "eligibility_documents", "qualification_documents"]:
response = self.app.put(
"/tenders/{}/bids/{}/{}/{}".format(
self.tender_id, self.bid2_id, doc_resource, doc_id_by_type2[doc_resource]["id"]
),
upload_files=[("file", "name.doc", "content4")],
status=403,
)
self.assertEqual(response.status, "403 Forbidden")
self.assertEqual(response.content_type, "application/json")
self.assertEqual(
response.json["errors"][0]["description"], "Can't upload document in current (active.awarded) tender status"
)
response = self.app.put(
"/tenders/{}/bids/{}/financial_documents/{}".format(
self.tender_id, self.bid2_id, doc_id_by_type2["financial_documents"]["id"]
),
upload_files=[("file", "name.doc", "content4")],
)
self.assertEqual(response.status, "200 OK")
self.assertEqual(response.content_type, "application/json")
self.set_status("complete")
for doc_resource in ["documents", "financial_documents", "eligibility_documents", "qualification_documents"]:
response = self.app.put(
"/tenders/{}/bids/{}/{}/{}".format(
self.tender_id, self.bid_id, doc_resource, doc_id_by_type[doc_resource]["id"]
),
upload_files=[("file", "name.doc", "content4")],
status=403,
)
self.assertEqual(response.status, "403 Forbidden")
self.assertEqual(response.content_type, "application/json")
self.assertEqual(
response.json["errors"][0]["description"], "Can't upload document in current (complete) tender status"
)
def delete_tender_bidder(self):
initial_bids = deepcopy(self.test_bids_data)
self.convert_bids_for_tender_with_lots(initial_bids, self.initial_lots)
response = self.app.post_json("/tenders/{}/bids".format(self.tender_id), {"data": initial_bids[0]})
self.assertEqual(response.status, "201 Created")
self.assertEqual(response.content_type, "application/json")
bid = response.json["data"]
bid_token = response.json["access"]["token"]
response = self.app.delete("/tenders/{}/bids/{}?acc_token={}".format(self.tender_id, bid["id"], bid_token))
self.assertEqual(response.status, "200 OK")
self.assertEqual(response.content_type, "application/json")
self.assertEqual(response.json["data"]["id"], bid["id"])
self.assertEqual(response.json["data"]["status"], "deleted")
# deleted bid does not contain bid information
self.assertFalse("value" in response.json["data"])
self.assertFalse("tenderers" in response.json["data"])
self.assertFalse("date" in response.json["data"])
# try to add documents to bid
for doc_resource in ["documents", "financial_documents", "eligibility_documents", "qualification_documents"]:
response = self.app.post(
"/tenders/{}/bids/{}/{}?acc_token={}".format(self.tender_id, bid["id"], doc_resource, bid_token),
upload_files=[("file", "name_{}.doc".format(doc_resource[:-1]), "content")],
status=403,
)
self.assertEqual(response.status, "403 Forbidden")
self.assertEqual(response.content_type, "application/json")
self.assertEqual(response.json["errors"][0]["description"], "Can't add document at 'deleted' bid status")
revisions = self.db.get(self.tender_id).get("revisions")
self.assertTrue(any([i for i in revisions[-2][u"changes"] if i["op"] == u"remove" and i["path"] == u"/bids"]))
self.assertTrue(
any([i for i in revisions[-1][u"changes"] if i["op"] == u"replace" and i["path"] == u"/bids/0/status"])
)
response = self.app.delete("/tenders/{}/bids/some_id".format(self.tender_id), status=404)
self.assertEqual(response.status, "404 Not Found")
self.assertEqual(response.content_type, "application/json")
self.assertEqual(response.json["status"], "error")
self.assertEqual(response.json["errors"], [{u"description": u"Not Found", u"location": u"url", u"name": u"bid_id"}])
response = self.app.delete("/tenders/some_id/bids/some_id", status=404)
self.assertEqual(response.status, "404 Not Found")
self.assertEqual(response.content_type, "application/json")
self.assertEqual(response.json["status"], "error")
self.assertEqual(
response.json["errors"], [{u"description": u"Not Found", u"location": u"url", u"name": u"tender_id"}]
)
# create new bid
response = self.app.post_json("/tenders/{}/bids".format(self.tender_id), {"data": initial_bids[0]})
self.assertEqual(response.status, "201 Created")
bid = response.json["data"]
bid_token = response.json["access"]["token"]
# update tender. we can set value that is less than a value in bid as
# they will be invalidated by this request
response = self.app.patch_json(
"/tenders/{}?acc_token={}".format(self.tender_id, self.tender_token), {"data": {"value": {"amount": 300.0}}}
)
self.assertEqual(response.status, "200 OK")
self.assertEqual(response.json["data"]["value"]["amount"], 300)
# check bid 'invalid' status
response = self.app.get("/tenders/{}/bids/{}?acc_token={}".format(self.tender_id, bid["id"], bid_token))
self.assertEqual(response.status, "200 OK")
self.assertEqual(response.json["data"]["status"], "invalid")
# try to delete 'invalid' bid
response = self.app.delete("/tenders/{}/bids/{}?acc_token={}".format(self.tender_id, bid["id"], bid_token))
self.assertEqual(response.status, "200 OK")
self.assertEqual(response.content_type, "application/json")
self.assertEqual(response.json["data"]["id"], bid["id"])
self.assertEqual(response.json["data"]["status"], "deleted")
bid_data = deepcopy(initial_bids[0])
for i in range(self.min_bids_number):
bid_data["lotValues"][0]["value"]["amount"] = 100 + i
response = self.app.post_json("/tenders/{}/bids".format(self.tender_id), {"data": bid_data})
# switch to active.pre-qualification
self.set_status("active.pre-qualification", {"id": self.tender_id, "status": "active.tendering"})
self.app.authorization = ("Basic", ("chronograph", ""))
response = self.app.patch_json("/tenders/{}".format(self.tender_id), {"data": {"id": self.tender_id}})
self.assertEqual(response.json["data"]["status"], "active.pre-qualification")
# qualify bids
response = self.app.get("/tenders/{}/qualifications".format(self.tender_id))
self.app.authorization = ("Basic", ("token", ""))
for qualification in response.json["data"]:
response = self.app.patch_json(
"/tenders/{}/qualifications/{}".format(self.tender_id, qualification["id"]),
{"data": {"status": "active", "qualified": True, "eligible": True}},
)
self.assertEqual(response.status, "200 OK")
# switch to active.pre-qualification.stand-still
response = self.app.patch_json(
"/tenders/{}?acc_token={}".format(self.tender_id, self.tender_token),
{"data": {"status": "active.pre-qualification.stand-still"}},
)
self.assertEqual(response.json["data"]["status"], "active.pre-qualification.stand-still")
# switch to active.auction
self.set_status("active.auction", extra={"id": self.tender_id, "status": "active.pre-qualification.stand-still"})
self.app.authorization = ("Basic", ("chronograph", ""))
response = self.app.patch_json("/tenders/{}".format(self.tender_id), {"data": {"id": self.tender_id}})
self.assertEqual(response.json["data"]["status"], "active.auction")
# switch to qualification
self.app.authorization = ("Basic", ("auction", ""))
response = self.app.get("/tenders/{}/auction".format(self.tender_id))
auction_bids_data = response.json["data"]["bids"]
response = self.app.post_json(
"/tenders/{}/auction/{}".format(self.tender_id, self.initial_lots[0]["id"]),
{"data": {"bids": auction_bids_data}},
)
self.assertEqual(response.status, "200 OK")
response = self.app.get("/tenders/{}".format(self.tender_id))
self.assertEqual(response.json["data"]["status"], "active.qualification")
# switch to active.awarded
self.set_status("active.awarded", extra=extra)
response = self.app.get("/tenders/{}".format(self.tender_id))
self.assertEqual(response.json["data"]["status"], "active.awarded")
# time travel
tender = self.db.get(self.tender_id)
for i in tender.get("awards", []):
i["complaintPeriod"]["endDate"] = i["complaintPeriod"]["startDate"]
self.db.save(tender)
# sign agreement
response = self.app.get("/tenders/{}".format(self.tender_id))
agreement_id = response.json["data"]["agreements"][-1]["id"]
self.app.authorization = ("Basic", ("token", ""))
self.app.patch_json(
"/tenders/{}/agreements/{}?acc_token={}".format(self.tender_id, agreement_id, self.tender_token),
{"data": {"status": "active"}},
)
response = self.app.get("/tenders/{}".format(self.tender_id))
self.assertEqual(response.json["data"]["status"], "complete")
# finished tender does not show deleted bid info
response = self.app.get("/tenders/{}".format(self.tender_id))
self.assertEqual(response.status, "200 OK")
self.assertEqual(response.content_type, "application/json")
self.assertEqual(len(response.json["data"]["bids"]), self.min_bids_number + 2)
bid_data = response.json["data"]["bids"][1]
self.assertEqual(bid_data["id"], bid["id"])
self.assertEqual(bid_data["status"], "deleted")
self.assertFalse("value" in bid_data)
self.assertFalse("tenderers" in bid_data)
self.assertFalse("date" in bid_data)
def deleted_bid_do_not_locks_tender_in_state(self):
initial_bids = deepcopy(self.test_bids_data)
self.convert_bids_for_tender_with_lots(initial_bids, self.initial_lots)
bid_data = deepcopy(initial_bids[0])
bids = []
bids_tokens = []
bid_amount = 400
for _ in range(self.min_bids_number):
bid_data["lotValues"][0]["value"]["amount"] = bid_amount
response = self.app.post_json("/tenders/{}/bids".format(self.tender_id), {"data": bid_data})
bid_amount += 5
self.assertEqual(response.status, "201 Created")
self.assertEqual(response.content_type, "application/json")
bids.append(response.json["data"])
bids_tokens.append(response.json["access"]["token"])
bid_id = bids[0]["id"]
# delete first bid
response = self.app.delete("/tenders/{}/bids/{}?acc_token={}".format(self.tender_id, bid_id, bids_tokens[0]))
self.assertEqual(response.status, "200 OK")
self.assertEqual(response.content_type, "application/json")
self.assertEqual(response.json["data"]["id"], bids[0]["id"])
self.assertEqual(response.json["data"]["status"], "deleted")
bid_data["lotValues"][0]["value"]["amount"] = 101
response = self.app.post_json("/tenders/{}/bids".format(self.tender_id), {"data": bid_data})
# switch to active.pre-qualification
self.set_status("active.tendering", "end")
self.app.authorization = ("Basic", ("chronograph", ""))
response = self.app.patch_json("/tenders/{}".format(self.tender_id), {"data": {"id": self.tender_id}})
self.assertEqual(response.json["data"]["status"], "active.pre-qualification")
# qualify bids
response = self.app.get("/tenders/{}/qualifications".format(self.tender_id))
self.app.authorization = ("Basic", ("token", ""))
for qualification in response.json["data"]:
response = self.app.patch_json(
"/tenders/{}/qualifications/{}".format(self.tender_id, qualification["id"]),
{"data": {"status": "active", "qualified": True, "eligible": True}},
)
self.assertEqual(response.status, "200 OK")
# switch to active.pre-qualification.stand-still
response = self.app.patch_json(
"/tenders/{}".format(self.tender_id), {"data": {"status": "active.pre-qualification.stand-still"}}
)
self.assertEqual(response.json["data"]["status"], "active.pre-qualification.stand-still")
# switch to active.auction
self.set_status("active.pre-qualification.stand-still", "end")
self.app.authorization = ("Basic", ("chronograph", ""))
response = self.app.patch_json("/tenders/{}".format(self.tender_id), {"data": {"id": self.tender_id}})
self.assertEqual(response.json["data"]["status"], "active.auction")
# switch to qualification
self.app.authorization = ("Basic", ("auction", ""))
response = self.app.get("/tenders/{}/auction".format(self.tender_id))
auction_bids_data = response.json["data"]["bids"]
response = self.app.post_json(
"/tenders/{}/auction/{}".format(self.tender_id, self.initial_lots[0]["id"]),
{"data": {"bids": auction_bids_data}},
)
self.assertEqual(response.status, "200 OK")
response = self.app.get("/tenders/{}".format(self.tender_id))
self.assertEqual(response.json["data"]["status"], "active.qualification")
# check bids
response = self.app.get("/tenders/{}".format(self.tender_id))
self.assertEqual(response.status, "200 OK")
self.assertEqual(response.content_type, "application/json")
self.assertEqual(len(response.json["data"]["bids"]), self.min_bids_number + 1)
self.assertEqual(response.json["data"]["bids"][0]["status"], "deleted")
for i in range(1, self.min_bids_number + 1):
self.assertEqual(response.json["data"]["bids"][i]["status"], "active")
def patch_tender_bidder_document(self):
doc_id_by_type = {}
doc_id_by_type2 = {}
for doc_resource in ["documents", "financial_documents", "eligibility_documents", "qualification_documents"]:
response = self.app.post(
"/tenders/{}/bids/{}/{}?acc_token={}".format(self.tender_id, self.bid_id, doc_resource, self.bid_token),
upload_files=[("file", "name_{}.doc".format(doc_resource[:-1]), "content")],
)
self.assertEqual(response.status, "201 Created")
self.assertEqual(response.content_type, "application/json")
doc_id = response.json["data"]["id"]
self.assertIn(doc_id, response.headers["Location"])
self.assertEqual("name_{}.doc".format(doc_resource[:-1]), response.json["data"]["title"])
key = response.json["data"]["url"].split("?")[-1]
doc_id_by_type[doc_resource] = {"id": doc_id, "key": key}
response = self.app.post(
"/tenders/{}/bids/{}/{}?acc_token={}".format(self.tender_id, self.bid2_id, doc_resource, self.bid2_token),
upload_files=[("file", "name_{}.doc".format(doc_resource[:-1]), "content")],
)
self.assertEqual(response.status, "201 Created")
self.assertEqual(response.content_type, "application/json")
doc_id_by_type2[doc_resource] = {
"id": response.json["data"]["id"],
"key": response.json["data"]["url"].split("?")[-1],
}
# upload private document
response = self.app.post(
"/tenders/{}/bids/{}/{}?acc_token={}".format(self.tender_id, self.bid_id, doc_resource, self.bid_token),
upload_files=[("file", "name_{}_private.doc".format(doc_resource[:-1]), "content")],
)
self.assertEqual(response.status, "201 Created")
self.assertEqual(response.content_type, "application/json")
doc_id = response.json["data"]["id"]
self.assertIn(doc_id, response.headers["Location"])
self.assertEqual("name_{}_private.doc".format(doc_resource[:-1]), response.json["data"]["title"])
key = response.json["data"]["url"].split("?")[-1]
doc_id_by_type[doc_resource + "private"] = {"id": doc_id, "key": key}
response = self.app.patch_json(
"/tenders/{}/bids/{}/{}/{}?acc_token={}".format(
self.tender_id, self.bid_id, doc_resource, doc_id, self.bid_token
),
{
"data": {
"confidentiality": "buyerOnly",
"confidentialityRationale": "Only our company sells badgers with pink hair.",
}
},
)
self.assertEqual(response.status, "200 OK")
response = self.app.post(
"/tenders/{}/bids/{}/{}?acc_token={}".format(self.tender_id, self.bid2_id, doc_resource, self.bid2_token),
upload_files=[("file", "name_{}_private.doc".format(doc_resource[:-1]), "content")],
)
self.assertEqual(response.status, "201 Created")
self.assertEqual(response.content_type, "application/json")
doc_id = response.json["data"]["id"]
self.assertIn(doc_id, response.headers["Location"])
self.assertEqual("name_{}_private.doc".format(doc_resource[:-1]), response.json["data"]["title"])
key = response.json["data"]["url"].split("?")[-1]
doc_id_by_type2[doc_resource + "private"] = {"id": doc_id, "key": key}
response = self.app.patch_json(
"/tenders/{}/bids/{}/{}/{}?acc_token={}".format(
self.tender_id, self.bid2_id, doc_resource, doc_id, self.bid2_token
),
{
"data": {
"confidentiality": "buyerOnly",
"confidentialityRationale": "Only our company sells badgers with pink hair.",
}
},
)
self.assertEqual(response.status, "200 OK")
def patch_tender_bidder_document_private(self):
doc_id_by_type = {}
private_doc_id_by_type = {}
for doc_resource in ["documents", "financial_documents", "eligibility_documents", "qualification_documents"]:
response = self.app.post(
"/tenders/{}/bids/{}/{}?acc_token={}".format(self.tender_id, self.bid_id, doc_resource, self.bid_token),
upload_files=[("file", "name_{}.doc".format(doc_resource[:-1]), "content")],
)
self.assertEqual(response.status, "201 Created")
self.assertEqual(response.content_type, "application/json")
doc_id = response.json["data"]["id"]
self.assertIn(doc_id, response.headers["Location"])
self.assertEqual("name_{}.doc".format(doc_resource[:-1]), response.json["data"]["title"])
key = response.json["data"]["url"].split("?")[-1]
doc_id_by_type[doc_resource] = {"id": doc_id, "key": key}
response = self.app.patch_json(
"/tenders/{}/bids/{}/{}/{}?acc_token={}".format(
self.tender_id, self.bid_id, doc_resource, doc_id, self.bid_token
),
{
"data": {
"confidentiality": "buyerOnly",
"confidentialityRationale": "Only our company sells badgers with pink hair.",
}
},
)
self.assertEqual(response.status, "200 OK")
self.assertEqual(response.content_type, "application/json")
self.assertEqual(doc_id, response.json["data"]["id"])
self.assertEqual("buyerOnly", response.json["data"]["confidentiality"])
self.assertEqual(
"Only our company sells badgers with pink hair.", response.json["data"]["confidentialityRationale"]
)
response = self.app.put(
"/tenders/{}/bids/{}/{}/{}?acc_token={}".format(
self.tender_id, self.bid_id, doc_resource, doc_id, self.bid_token
),
upload_files=[("file", "name.doc", "content2")],
)
self.assertEqual(response.status, "200 OK")
self.assertEqual(response.content_type, "application/json")
self.assertEqual("buyerOnly", response.json["data"]["confidentiality"])
self.assertEqual(
"Only our company sells badgers with pink hair.", response.json["data"]["confidentialityRationale"]
)
def download_tender_bidder_document(self):
doc_id_by_type = {}
private_doc_id_by_type = {}
for doc_resource in ["documents", "financial_documents", "eligibility_documents", "qualification_documents"]:
response = self.app.post(
"/tenders/{}/bids/{}/{}?acc_token={}".format(self.tender_id, self.bid_id, doc_resource, self.bid_token),
upload_files=[("file", "name_{}.doc".format(doc_resource[:-1]), "content")],
)
self.assertEqual(response.status, "201 Created")
self.assertEqual(response.content_type, "application/json")
doc_id = response.json["data"]["id"]
self.assertIn(doc_id, response.headers["Location"])
self.assertEqual("name_{}.doc".format(doc_resource[:-1]), response.json["data"]["title"])
key = response.json["data"]["url"].split("?")[-1]
private_doc_id_by_type[doc_resource] = {
"id": response.json["data"]["id"],
"key": response.json["data"]["url"].split("?")[-1],
}
response = self.app.patch_json(
"/tenders/{}/bids/{}/{}/{}?acc_token={}".format(
self.tender_id, self.bid_id, doc_resource, doc_id, self.bid_token
),
{
"data": {
"confidentiality": "buyerOnly",
"confidentialityRationale": "Only our company sells badgers with pink hair.",
}
},
)
response = self.app.post(
"/tenders/{}/bids/{}/{}?acc_token={}".format(self.tender_id, self.bid_id, doc_resource, self.bid_token),
upload_files=[("file", "name_{}.doc".format(doc_resource[:-1]), "content")],
)
self.assertEqual(response.status, "201 Created")
self.assertEqual(response.content_type, "application/json")
doc_id = response.json["data"]["id"]
self.assertIn(doc_id, response.headers["Location"])
self.assertEqual("name_{}.doc".format(doc_resource[:-1]), response.json["data"]["title"])
key = response.json["data"]["url"].split("?")[-1]
doc_id_by_type[doc_resource] = {
"id": response.json["data"]["id"],
"key": response.json["data"]["url"].split("?")[-1],
}
for container in private_doc_id_by_type, doc_id_by_type:
response = self.app.get(
"/tenders/{}/bids/{}/{}/{}?acc_token={}&{}".format(
self.tender_id,
self.bid_id,
doc_resource,
container[doc_resource]["id"],
self.bid_token,
container[doc_resource]["key"],
)
)
if self.docservice:
self.assertEqual(response.status, "302 Moved Temporarily")
self.assertIn("http://localhost/get/", response.location)
self.assertIn("Signature=", response.location)
self.assertIn("KeyID=", response.location)
self.assertIn("Expires=", response.location)
else:
self.assertEqual(response.status, "200 OK")
self.assertEqual(response.body, "content")
self.assertEqual(
response.headers["Content-Disposition"],
"attachment; filename=name_{}.doc".format(doc_resource[:-1]),
)
self.assertEqual(response.headers["Content-Type"], "application/msword; charset=UTF-8")
response = self.app.get(
"/tenders/{}/bids/{}/{}/{}?acc_token={}&{}".format(
self.tender_id,
self.bid_id,
doc_resource,
container[doc_resource]["id"],
self.tender_token,
container[doc_resource]["key"],
),
status=403,
)
self.assertEqual(response.status, "403 Forbidden")
self.assertEqual(
response.json["errors"][0]["description"],
"Can't view bid documents in current (active.tendering) tender status",
)
response = self.app.get(
"/tenders/{}/bids/{}/{}/{}?{}".format(
self.tender_id,
self.bid_id,
doc_resource,
container[doc_resource]["id"],
container[doc_resource]["key"],
),
status=403,
)
self.assertEqual(response.status, "403 Forbidden")
self.assertEqual(
response.json["errors"][0]["description"],
"Can't view bid documents in current (active.tendering) tender status",
)
self.time_shift("active.pre-qualification")
self.check_chronograph()
def test_bids_documents_after_tendering_resource(self, doc_id_by_type, private_doc_id_by_type, status):
for doc_resource in ["documents", "financial_documents", "eligibility_documents", "qualification_documents"]:
for container in private_doc_id_by_type, doc_id_by_type:
response = self.app.get(
"/tenders/{}/bids/{}/{}/{}?acc_token={}&{}".format(
self.tender_id,
self.bid_id,
doc_resource,
container[doc_resource]["id"],
self.bid_token,
container[doc_resource]["key"],
)
)
if self.docservice:
self.assertEqual(response.status, "302 Moved Temporarily")
self.assertIn("http://localhost/get/", response.location)
self.assertIn("Signature=", response.location)
self.assertIn("KeyID=", response.location)
else:
self.assertEqual(response.status, "200 OK")
self.assertEqual(response.body, "content")
self.assertEqual(
response.headers["Content-Disposition"],
"attachment; filename=name_{}.doc".format(doc_resource[:-1]),
)
self.assertEqual(response.headers["Content-Type"], "application/msword; charset=UTF-8")
for doc_resource in ["documents", "eligibility_documents"]:
for container in private_doc_id_by_type, doc_id_by_type:
response = self.app.get(
"/tenders/{}/bids/{}/{}/{}?acc_token={}&{}".format(
self.tender_id,
self.bid_id,
doc_resource,
container[doc_resource]["id"],
self.tender_token,
container[doc_resource]["key"],
)
)
if self.docservice:
self.assertEqual(response.status, "302 Moved Temporarily")
self.assertIn("http://localhost/get/", response.location)
self.assertIn("Signature=", response.location)
self.assertIn("KeyID=", response.location)
else:
self.assertEqual(response.status, "200 OK")
for doc_resource in ["financial_documents", "qualification_documents"]:
for container in private_doc_id_by_type, doc_id_by_type:
response = self.app.get(
"/tenders/{}/bids/{}/{}/{}?acc_token={}&{}".format(
self.tender_id,
self.bid_id,
doc_resource,
container[doc_resource]["id"],
self.tender_token,
container[doc_resource]["key"],
),
status=403,
)
self.assertEqual(response.status, "403 Forbidden")
self.assertEqual(
response.json["errors"][0]["description"],
"Can't view bid documents in current ({}) tender status".format(status),
)
# for doc_resource in ['documents', 'eligibility_documents']:
# for container in private_doc_id_by_type, doc_id_by_type:
# response = self.app.get('/tenders/{}/bids/{}/{}/{}?acc_token={}&{}'.format(
# self.tender_id, self.bid_id, doc_resource, container[doc_resource]['id'], self.tender_token, container[doc_resource]['key']))
# self.assertEqual(response.status, '200 OK')
for doc_resource in ["financial_documents", "qualification_documents"]:
for container in private_doc_id_by_type, doc_id_by_type:
response = self.app.get(
"/tenders/{}/bids/{}/{}/{}?{}".format(
self.tender_id,
self.bid_id,
doc_resource,
container[doc_resource]["id"],
container[doc_resource]["key"],
),
status=403,
)
self.assertEqual(response.status, "403 Forbidden")
self.assertEqual(
response.json["errors"][0]["description"],
"Can't view bid documents in current ({}) tender status".format(status),
)
test_bids_documents_after_tendering_resource(
self, doc_id_by_type, private_doc_id_by_type, "active.pre-qualification"
)
response = self.app.get("/tenders/{}/qualifications".format(self.tender_id))
self.assertEqual(response.status, "200 OK")
# qualify bids
for qualification in response.json["data"]:
response = self.app.patch_json(
"/tenders/{}/qualifications/{}?acc_token={}".format(self.tender_id, qualification["id"], self.tender_token),
{"data": {"status": "active", "qualified": True, "eligible": True}},
)
self.assertEqual(response.status, "200 OK")
# switch to active.pre-qualification.stand-still
response = self.app.patch_json(
"/tenders/{}?acc_token={}".format(self.tender_id, self.tender_token),
{"data": {"status": "active.pre-qualification.stand-still"}},
)
self.assertEqual(response.json["data"]["status"], "active.pre-qualification.stand-still")
test_bids_documents_after_tendering_resource(
self, doc_id_by_type, private_doc_id_by_type, "active.pre-qualification.stand-still"
)
self.time_shift("active.auction")
self.check_chronograph()
test_bids_documents_after_tendering_resource(self, doc_id_by_type, private_doc_id_by_type, "active.auction")
self.app.authorization = ("Basic", ("auction", ""))
response = self.app.get("/tenders/{}/auction".format(self.tender_id))
auction_bids_data = response.json["data"]["bids"]
# posting auction urls
response = self.app.patch_json(
"/tenders/{}/auction/{}".format(self.tender_id, self.initial_lots[0]["id"]),
{
"data": {
"lots": [{"auctionUrl": "https://tender.auction.url"}],
"bids": [
{
"lotValues": [
{
"participationUrl": "https://tender.auction.url/for_bid/{}".format(i["id"]),
"relatedLot": self.initial_lots[0]["id"],
}
],
"id": i["id"],
}
for i in auction_bids_data
],
}
},
)
# posting auction results
response = self.app.post_json(
"/tenders/{}/auction/{}".format(self.tender_id, self.initial_lots[0]["id"]),
{"data": {"bids": auction_bids_data}},
)
self.assertEqual(response.json["data"]["status"], "active.qualification")
self.app.authorization = ("Basic", ("broker", ""))
def test_bids_documents_after_auction_resource(self, doc_id_by_type, private_doc_id_by_type, status):
for doc_resource in ["documents", "financial_documents", "eligibility_documents", "qualification_documents"]:
for container in private_doc_id_by_type, doc_id_by_type:
response = self.app.get(
"/tenders/{}/bids/{}/{}/{}?acc_token={}&{}".format(
self.tender_id,
self.bid_id,
doc_resource,
container[doc_resource]["id"],
self.bid_token,
container[doc_resource]["key"],
)
)
if self.docservice:
self.assertEqual(response.status, "302 Moved Temporarily")
self.assertIn("http://localhost/get/", response.location)
self.assertIn("Signature=", response.location)
self.assertIn("KeyID=", response.location)
else:
self.assertEqual(response.status, "200 OK")
self.assertEqual(response.body, "content")
self.assertEqual(
response.headers["Content-Disposition"],
"attachment; filename=name_{}.doc".format(doc_resource[:-1]),
)
self.assertEqual(response.headers["Content-Type"], "application/msword; charset=UTF-8")
for doc_resource in ["documents", "financial_documents", "eligibility_documents", "qualification_documents"]:
for container in private_doc_id_by_type, doc_id_by_type:
response = self.app.get(
"/tenders/{}/bids/{}/{}/{}?acc_token={}&{}".format(
self.tender_id,
self.bid_id,
doc_resource,
container[doc_resource]["id"],
self.tender_token,
container[doc_resource]["key"],
)
)
if self.docservice:
self.assertEqual(response.status, "302 Moved Temporarily")
self.assertIn("http://localhost/get/", response.location)
self.assertIn("Signature=", response.location)
self.assertIn("KeyID=", response.location)
else:
self.assertEqual(response.status, "200 OK")
self.assertEqual(response.body, "content")
self.assertEqual(
response.headers["Content-Disposition"],
"attachment; filename=name_{}.doc".format(doc_resource[:-1]),
)
self.assertEqual(response.headers["Content-Type"], "application/msword; charset=UTF-8")
for doc_resource in ["documents", "financial_documents", "eligibility_documents", "qualification_documents"]:
response = self.app.get(
"/tenders/{}/bids/{}/{}/{}?{}".format(
self.tender_id,
self.bid_id,
doc_resource,
doc_id_by_type[doc_resource]["id"],
doc_id_by_type[doc_resource]["key"],
)
)
if self.docservice:
self.assertEqual(response.status, "302 Moved Temporarily")
self.assertIn("http://localhost/get/", response.location)
self.assertIn("Signature=", response.location)
self.assertIn("KeyID=", response.location)
else:
self.assertEqual(response.status, "200 OK")
self.assertEqual(response.body, "content")
self.assertEqual(
response.headers["Content-Disposition"],
"attachment; filename=name_{}.doc".format(doc_resource[:-1]),
)
self.assertEqual(response.headers["Content-Type"], "application/msword; charset=UTF-8")
response = self.app.get(
"/tenders/{}/bids/{}/{}/{}?{}".format(
self.tender_id,
self.bid_id,
doc_resource,
private_doc_id_by_type[doc_resource]["id"],
private_doc_id_by_type[doc_resource]["key"],
),
status=403,
)
self.assertEqual(response.status, "403 Forbidden")
test_bids_documents_after_auction_resource(self, doc_id_by_type, private_doc_id_by_type, "active.pre-qualification")
# switch to active.awarded
self.set_status("active.awarded", extra=extra)
response = self.app.get("/tenders/{}".format(self.tender_id))
self.assertEqual(response.json["data"]["status"], "active.awarded")
test_bids_documents_after_auction_resource(self, doc_id_by_type, private_doc_id_by_type, "active.pre-qualification")
def create_tender_bidder_document_nopending(self):
initial_bids = deepcopy(self.test_bids_data)
self.convert_bids_for_tender_with_lots(initial_bids, self.initial_lots)
bid_data = deepcopy(initial_bids[0])
response = self.app.post_json("/tenders/{}/bids".format(self.tender_id), {"data": bid_data})
bid = response.json["data"]
token = response.json["access"]["token"]
bid_id = bid["id"]
response = self.app.post(
"/tenders/{}/bids/{}/documents?acc_token={}".format(self.tender_id, bid_id, token),
upload_files=[("file", "name.doc", "content")],
)
self.assertEqual(response.status, "201 Created")
self.assertEqual(response.content_type, "application/json")
doc_id = response.json["data"]["id"]
self.assertIn(doc_id, response.headers["Location"])
# switch to active.pre-qualification
self.set_status("active.tendering", "end")
self.app.authorization = ("Basic", ("chronograph", ""))
response = self.app.patch_json("/tenders/{}".format(self.tender_id), {"data": {"id": self.tender_id}})
self.assertEqual(response.json["data"]["status"], "active.pre-qualification")
# qualify bids
response = self.app.get("/tenders/{}/qualifications".format(self.tender_id))
self.app.authorization = ("Basic", ("token", ""))
for qualification in response.json["data"]:
response = self.app.patch_json(
"/tenders/{}/qualifications/{}".format(self.tender_id, qualification["id"]),
{"data": {"status": "active", "qualified": True, "eligible": True}},
)
self.assertEqual(response.status, "200 OK")
# switch to active.pre-qualification.stand-still
response = self.app.patch_json(
"/tenders/{}".format(self.tender_id), {"data": {"status": "active.pre-qualification.stand-still"}}
)
self.assertEqual(response.json["data"]["status"], "active.pre-qualification.stand-still")
# switch to active.auction
self.set_status("active.pre-qualification.stand-still", "end")
self.app.authorization = ("Basic", ("chronograph", ""))
response = self.app.patch_json("/tenders/{}".format(self.tender_id), {"data": {"id": self.tender_id}})
self.assertEqual(response.json["data"]["status"], "active.auction")
# switch to qualification
self.app.authorization = ("Basic", ("auction", ""))
response = self.app.get("/tenders/{}/auction".format(self.tender_id))
auction_bids_data = response.json["data"]["bids"]
response = self.app.post_json(
"/tenders/{}/auction/{}".format(self.tender_id, self.initial_lots[0]["id"]),
{"data": {"bids": auction_bids_data}},
)
self.assertEqual(response.status, "200 OK")
response = self.app.get("/tenders/{}".format(self.tender_id))
self.assertEqual(response.json["data"]["status"], "active.qualification")
self.app.authorization = ("Basic", ("broker", ""))
response = self.app.patch_json(
"/tenders/{}/bids/{}/documents/{}?acc_token={}".format(self.tender_id, bid_id, doc_id, token),
{"data": {"description": "document description"}},
)
self.assertEqual(response.status, "200 OK")
self.assertEqual(response.content_type, "application/json")
response = self.app.put(
"/tenders/{}/bids/{}/documents/{}?acc_token={}".format(self.tender_id, bid_id, doc_id, token),
"content3",
content_type="application/msword",
)
self.assertEqual(response.status, "200 OK")
self.assertEqual(response.content_type, "application/json")
response = self.app.post(
"/tenders/{}/bids/{}/documents?acc_token={}".format(self.tender_id, bid_id, token),
upload_files=[("file", "name.doc", "content")],
)
self.assertEqual(response.status, "201 Created")
self.assertEqual(response.content_type, "application/json")
def bid_Administrator_change(self):
response = self.app.post_json(
"/tenders/{}/bids".format(self.tender_id),
{
"data": {
"selfEligible": True,
"selfQualified": True,
"tenderers": [self.test_bids_data[0]["tenderers"][0]],
"lotValues": [{"value": {"amount": 500}, "relatedLot": self.initial_lots[0]["id"]}],
}
},
)
self.assertEqual(response.status, "201 Created")
self.assertEqual(response.content_type, "application/json")
bid = response.json["data"]
self.app.authorization = ("Basic", ("administrator", ""))
response = self.app.patch_json(
"/tenders/{}/bids/{}".format(self.tender_id, bid["id"]),
{
"data": {
"selfEligible": True,
"selfQualified": True,
"tenderers": [{"identifier": {"id": "00000000"}}],
"lotValues": [{"value": {"amount": 400}, "relatedLot": self.initial_lots[0]["id"]}],
}
},
)
self.assertEqual(response.status, "200 OK")
self.assertEqual(response.content_type, "application/json")
self.assertNotEqual(response.json["data"]["lotValues"][0]["value"]["amount"], 400)
self.assertEqual(response.json["data"]["tenderers"][0]["identifier"]["id"], "00000000")
def bids_activation_on_tender_documents(self):
bids_access = {}
# submit bids
initial_bids = deepcopy(self.test_bids_data)
self.convert_bids_for_tender_with_lots(initial_bids, self.initial_lots)
for data in initial_bids:
response = self.app.post_json("/tenders/{}/bids".format(self.tender_id), {"data": data})
self.assertEqual(response.status, "201 Created")
self.assertEqual(response.content_type, "application/json")
bids_access[response.json["data"]["id"]] = response.json["access"]["token"]
# check initial status
for bid_id, token in bids_access.items():
response = self.app.get("/tenders/{}/bids/{}?acc_token={}".format(self.tender_id, bid_id, token))
self.assertEqual(response.status, "200 OK")
self.assertEqual(response.json["data"]["status"], "pending")
response = self.app.post(
"/tenders/{}/documents?acc_token={}".format(self.tender_id, self.tender_token),
upload_files=[("file", u"укр.doc", "content")],
)
self.assertEqual(response.status, "201 Created")
self.assertEqual(response.content_type, "application/json")
for bid_id, token in bids_access.items():
response = self.app.get("/tenders/{}/bids/{}?acc_token={}".format(self.tender_id, bid_id, token))
self.assertEqual(response.status, "200 OK")
self.assertEqual(response.json["data"]["status"], "invalid")
# activate bids
for bid_id, token in bids_access.items():
response = self.app.patch_json(
"/tenders/{}/bids/{}?acc_token={}".format(self.tender_id, bid_id, token), {"data": {"status": "pending"}}
)
self.assertEqual(response.status, "200 OK")
self.assertEqual(response.json["data"]["status"], "pending")
def create_tender_biddder_invalid(self):
initial_bids = deepcopy(self.test_bids_data)
self.convert_bids_for_tender_with_lots(initial_bids, self.initial_lots)
response = self.app.post_json("/tenders/some_id/bids", {"data": initial_bids[0]}, status=404)
self.assertEqual(response.status, "404 Not Found")
self.assertEqual(response.content_type, "application/json")
self.assertEqual(response.json["status"], "error")
self.assertEqual(
response.json["errors"], [{u"description": u"Not Found", u"location": u"url", u"name": u"tender_id"}]
)
request_path = "/tenders/{}/bids".format(self.tender_id)
response = self.app.post(request_path, "data", status=415)
self.assertEqual(response.status, "415 Unsupported Media Type")
self.assertEqual(response.content_type, "application/json")
self.assertEqual(response.json["status"], "error")
self.assertEqual(
response.json["errors"],
[
{
u"description": u"Content-Type header should be one of ['application/json']",
u"location": u"header",
u"name": u"Content-Type",
}
],
)
response = self.app.post(request_path, "data", content_type="application/json", status=422)
self.assertEqual(response.status, "422 Unprocessable Entity")
self.assertEqual(response.content_type, "application/json")
self.assertEqual(response.json["status"], "error")
self.assertEqual(
response.json["errors"],
[{u"description": u"No JSON object could be decoded", u"location": u"body", u"name": u"data"}],
)
response = self.app.post_json(request_path, "data", status=422)
self.assertEqual(response.status, "422 Unprocessable Entity")
self.assertEqual(response.content_type, "application/json")
self.assertEqual(response.json["status"], "error")
self.assertEqual(
response.json["errors"], [{u"description": u"Data not available", u"location": u"body", u"name": u"data"}]
)
response = self.app.post_json(request_path, {"not_data": {}}, status=422)
self.assertEqual(response.status, "422 Unprocessable Entity")
self.assertEqual(response.content_type, "application/json")
self.assertEqual(response.json["status"], "error")
self.assertEqual(
response.json["errors"], [{u"description": u"Data not available", u"location": u"body", u"name": u"data"}]
)
response = self.app.post_json(request_path, {"data": {"invalid_field": "invalid_value"}}, status=422)
self.assertEqual(response.status, "422 Unprocessable Entity")
self.assertEqual(response.content_type, "application/json")
self.assertEqual(response.json["status"], "error")
self.assertEqual(
response.json["errors"], [{u"description": u"Rogue field", u"location": u"body", u"name": u"invalid_field"}]
)
response = self.app.post_json(request_path, {"data": {"tenderers": [{"identifier": "invalid_value"}]}}, status=422)
self.assertEqual(response.status, "422 Unprocessable Entity")
self.assertEqual(response.content_type, "application/json")
self.assertEqual(response.json["status"], "error")
self.assertEqual(
response.json["errors"],
[
{
u"description": {
u"identifier": [u"Please use a mapping for this field or Identifier instance instead of unicode."]
},
u"location": u"body",
u"name": u"tenderers",
}
],
)
response = self.app.post_json(request_path, {"data": {"tenderers": [{"identifier": {}}]}}, status=422)
self.assertEqual(response.status, "422 Unprocessable Entity")
self.assertEqual(response.content_type, "application/json")
self.assertEqual(response.json["status"], "error")
self.assertEqual(
response.json["errors"],
[
{u"description": [u"This field is required."], u"location": u"body", u"name": u"selfEligible"},
{u"description": [u"This field is required."], u"location": u"body", u"name": u"selfQualified"},
{
u"description": [
{
u"contactPoint": [u"This field is required."],
u"identifier": {u"scheme": [u"This field is required."], u"id": [u"This field is required."]},
u"name": [u"This field is required."],
u"address": [u"This field is required."],
}
],
u"location": u"body",
u"name": u"tenderers",
},
],
)
response = self.app.post_json(
request_path,
{"data": {"selfEligible": False, "tenderers": [{"name": "name", "identifier": {"uri": "invalid_value"}}]}},
status=422,
)
self.assertEqual(response.status, "422 Unprocessable Entity")
self.assertEqual(response.content_type, "application/json")
self.assertEqual(response.json["status"], "error")
self.assertEqual(
response.json["errors"],
[
{u"description": [u"Value must be one of [True]."], u"location": u"body", u"name": u"selfEligible"},
{u"description": [u"This field is required."], u"location": u"body", u"name": u"selfQualified"},
{
u"description": [
{
u"contactPoint": [u"This field is required."],
u"identifier": {
u"scheme": [u"This field is required."],
u"id": [u"This field is required."],
u"uri": [u"Not a well formed URL."],
},
u"address": [u"This field is required."],
}
],
u"location": u"body",
u"name": u"tenderers",
},
],
)
response = self.app.post_json(
request_path,
{"data": {"selfEligible": True, "selfQualified": True, "tenderers": initial_bids[0]["tenderers"]}},
status=422,
)
self.assertEqual(response.status, "422 Unprocessable Entity")
self.assertEqual(response.content_type, "application/json")
self.assertEqual(response.json["status"], "error")
self.assertEqual(
response.json["errors"],
[{u"description": [u"This field is required."], u"location": u"body", u"name": u"lotValues"}],
)
response = self.app.post_json(
request_path,
{
"data": {
"selfEligible": True,
"selfQualified": True,
"tenderers": initial_bids[0]["tenderers"],
"lotValues": [
{"value": {"amount": 500, "valueAddedTaxIncluded": False}, "relatedLot": self.initial_lots[0]["id"]}
],
}
},
status=422,
)
self.assertEqual(response.status, "422 Unprocessable Entity")
self.assertEqual(response.content_type, "application/json")
self.assertEqual(response.json["status"], "error")
self.assertEqual(
response.json["errors"],
[
{
u"description": [
{
u"value": [
u"valueAddedTaxIncluded of bid should be identical to valueAddedTaxIncluded of value of lot"
]
}
],
u"location": u"body",
u"name": u"lotValues",
}
],
)
response = self.app.post_json(
request_path,
{
"data": {
"selfEligible": True,
"selfQualified": True,
"tenderers": initial_bids[0]["tenderers"],
"lotValues": [{"value": {"amount": 500, "currency": "USD"}, "relatedLot": self.initial_lots[0]["id"]}],
}
},
status=422,
)
self.assertEqual(response.status, "422 Unprocessable Entity")
self.assertEqual(response.content_type, "application/json")
self.assertEqual(response.json["status"], "error")
self.assertEqual(
response.json["errors"],
[
{
u"description": [{u"value": [u"currency of bid should be identical to currency of value of lot"]}],
u"location": u"body",
u"name": u"lotValues",
}
],
)
def create_tender_bidder(self):
initial_bids = deepcopy(self.test_bids_data)
self.convert_bids_for_tender_with_lots(initial_bids, self.initial_lots)
bid_data = deepcopy(initial_bids[0])
response = self.app.post_json("/tenders/{}/bids".format(self.tender_id), {"data": bid_data})
self.assertEqual(response.status, "201 Created")
self.assertEqual(response.content_type, "application/json")
bid = response.json["data"]
self.assertEqual(bid["tenderers"][0]["name"], initial_bids[0]["tenderers"][0]["name"])
self.assertIn("id", bid)
self.assertIn(bid["id"], response.headers["Location"])
for status in ("active", "unsuccessful", "deleted", "invalid"):
bid_data["lotValues"][0]["value"]["amount"] = 500
bid_data["status"] = status
response = self.app.post_json("/tenders/{}/bids".format(self.tender_id), {"data": bid_data}, status=403)
self.assertEqual(response.status, "403 Forbidden")
bid_without_lotvalues_value = deepcopy(bid_data)
del bid_without_lotvalues_value["lotValues"][0]["value"]
bid_without_lotvalues_value["status"] = "pending"
response = self.app.post_json(
"/tenders/{}/bids".format(self.tender_id), {"data": bid_without_lotvalues_value}, status=422
)
self.assertEqual(response.status, "422 Unprocessable Entity")
self.set_status("complete")
response = self.app.post_json("/tenders/{}/bids".format(self.tender_id), {"data": bid_data}, status=403)
self.assertEqual(response.status, "403 Forbidden")
self.assertEqual(response.content_type, "application/json")
self.assertEqual(response.json["errors"][0]["description"], "Can't add bid in current (complete) tender status")
def deleted_bid_is_not_restorable(self):
initial_bids = deepcopy(self.test_bids_data)
self.convert_bids_for_tender_with_lots(initial_bids, self.initial_lots)
response = self.app.post_json("/tenders/{}/bids".format(self.tender_id), {"data": initial_bids[0]})
self.assertEqual(response.status, "201 Created")
self.assertEqual(response.content_type, "application/json")
bid = response.json["data"]
bid_token = response.json["access"]["token"]
response = self.app.delete("/tenders/{}/bids/{}?acc_token={}".format(self.tender_id, bid["id"], bid_token))
self.assertEqual(response.status, "200 OK")
self.assertEqual(response.content_type, "application/json")
self.assertEqual(response.json["data"]["id"], bid["id"])
self.assertEqual(response.json["data"]["status"], "deleted")
# try to restore deleted bid
response = self.app.patch_json(
"/tenders/{}/bids/{}?acc_token={}".format(self.tender_id, bid["id"], bid_token),
{"data": {"status": "pending"}},
status=422,
)
self.assertEqual(response.status, "422 Unprocessable Entity")
self.assertEqual(response.content_type, "application/json")
self.assertEqual(
response.json["errors"],
[{u"description": [u"This field is required."], u"location": u"body", u"name": u"lotValues"}],
)
response = self.app.patch_json(
"/tenders/{}/bids/{}?acc_token={}".format(self.tender_id, bid["id"], bid_token),
{
"data": {
"status": "pending",
"lotValues": [{"value": {"amount": 100}, "relatedLot": self.initial_lots[0]["id"]}],
}
},
status=403,
)
self.assertEqual(response.status, "403 Forbidden")
self.assertEqual(response.content_type, "application/json")
self.assertEqual(response.json["errors"][0]["description"], "Can't update bid in (deleted) status")
response = self.app.get("/tenders/{}/bids/{}?acc_token={}".format(self.tender_id, bid["id"], bid_token))
self.assertEqual(response.status, "200 OK")
self.assertEqual(response.content_type, "application/json")
self.assertEqual(response.json["data"]["status"], "deleted")
def patch_tender_bidder(self):
initial_bids = deepcopy(self.test_bids_data)
self.convert_bids_for_tender_with_lots(initial_bids, self.initial_lots)
response = self.app.post_json("/tenders/{}/bids".format(self.tender_id), {"data": initial_bids[0]})
self.assertEqual(response.status, "201 Created")
self.assertEqual(response.content_type, "application/json")
bid = response.json["data"]
bid_token = response.json["access"]["token"]
bid_data = deepcopy(initial_bids[0])
bid_data["lotValues"][0]["value"]["amount"] = 600
response = self.app.patch_json(
"/tenders/{}/bids/{}?acc_token={}".format(self.tender_id, bid["id"], bid_token), {"data": bid_data}, status=422
)
self.assertEqual(response.status, "422 Unprocessable Entity")
self.assertEqual(response.content_type, "application/json")
self.assertEqual(response.json["status"], "error")
self.assertEqual(
response.json["errors"],
[
{
u"description": [{u"value": [u"value of bid should be less than value of lot"]}],
u"location": u"body",
u"name": u"lotValues",
}
],
)
response = self.app.patch_json(
"/tenders/{}/bids/{}?acc_token={}".format(self.tender_id, bid["id"], bid_token),
{"data": {"tenderers": [{"name": u"Державне управління управлінням справами"}]}},
)
self.assertEqual(response.status, "200 OK")
self.assertEqual(response.content_type, "application/json")
self.assertEqual(response.json["data"]["date"], bid["date"])
self.assertNotEqual(response.json["data"]["tenderers"][0]["name"], bid["tenderers"][0]["name"])
response = self.app.patch_json(
"/tenders/{}/bids/{}?acc_token={}".format(self.tender_id, bid["id"], bid_token), {"data": initial_bids[0]}
)
self.assertEqual(response.status, "200 OK")
self.assertEqual(response.content_type, "application/json")
self.assertEqual(response.json["data"]["date"], bid["date"])
self.assertEqual(response.json["data"]["tenderers"][0]["name"], bid["tenderers"][0]["name"])
bid_data["lotValues"][0]["value"]["amount"] = 400
response = self.app.patch_json(
"/tenders/{}/bids/{}?acc_token={}".format(self.tender_id, bid["id"], bid_token), {"data": bid_data}
)
self.assertEqual(response.status, "200 OK")
self.assertEqual(response.content_type, "application/json")
self.assertEqual(response.json["data"]["lotValues"][0]["value"]["amount"], 400)
self.assertNotEqual(response.json["data"]["lotValues"][0]["date"], bid["date"])
response = self.app.patch_json(
"/tenders/{}/bids/some_id?acc_token={}".format(self.tender_id, bid_token), {"data": bid_data}, status=404
)
self.assertEqual(response.status, "404 Not Found")
self.assertEqual(response.content_type, "application/json")
self.assertEqual(response.json["status"], "error")
self.assertEqual(response.json["errors"], [{u"description": u"Not Found", u"location": u"url", u"name": u"bid_id"}])
response = self.app.patch_json("/tenders/some_id/bids/some_id", {"data": bid_data}, status=404)
self.assertEqual(response.status, "404 Not Found")
self.assertEqual(response.content_type, "application/json")
self.assertEqual(response.json["status"], "error")
self.assertEqual(
response.json["errors"], [{u"description": u"Not Found", u"location": u"url", u"name": u"tender_id"}]
)
for status in ("invalid", "active", "unsuccessful", "deleted", "draft"):
response = self.app.patch_json(
"/tenders/{}/bids/{}?acc_token={}".format(self.tender_id, bid["id"], bid_token),
{"data": {"status": status}},
status=403,
)
self.assertEqual(response.status, "403 Forbidden")
self.assertEqual(response.json["errors"][0]["description"], "Can't update bid to ({}) status".format(status))
self.set_status("complete")
response = self.app.get("/tenders/{}/bids/{}".format(self.tender_id, bid["id"]))
self.assertEqual(response.status, "200 OK")
self.assertEqual(response.content_type, "application/json")
self.assertEqual(response.json["data"]["lotValues"][0]["value"]["amount"], 400)
response = self.app.patch_json(
"/tenders/{}/bids/{}?acc_token={}".format(self.tender_id, bid["id"], bid_token), {"data": bid_data}, status=403
)
self.assertEqual(response.status, "403 Forbidden")
self.assertEqual(response.content_type, "application/json")
self.assertEqual(response.json["errors"][0]["description"], "Can't update bid in current (complete) tender status")
def features_bidder(self):
initial_bids = deepcopy(self.test_bids_data)
self.convert_bids_for_tender_with_lots(initial_bids, self.initial_lots)
test_features_bids = [
{
# "status": "pending",
"parameters": [{"code": i["code"], "value": 0.1} for i in self.initial_data["features"]],
"tenderers": initial_bids[0]["tenderers"],
"lotValues": [
{
"value": {"amount": 469, "currency": "UAH", "valueAddedTaxIncluded": True},
"relatedLot": self.initial_lots[0]["id"],
}
],
"selfQualified": True,
"selfEligible": True,
},
{
"status": "pending",
"parameters": [{"code": i["code"], "value": 0.15} for i in self.initial_data["features"]],
"tenderers": initial_bids[1]["tenderers"],
"lotValues": [
{
"value": {"amount": 479, "currency": "UAH", "valueAddedTaxIncluded": True},
"relatedLot": self.initial_lots[0]["id"],
}
],
"selfQualified": True,
"selfEligible": True,
},
]
for i in test_features_bids:
response = self.app.post_json("/tenders/{}/bids".format(self.tender_id), {"data": i})
i["status"] = "pending"
self.assertEqual(response.status, "201 Created")
self.assertEqual(response.content_type, "application/json")
bid = response.json["data"]
bid.pop(u"date")
bid.pop(u"id")
bid["lotValues"][0].pop("date")
bid["lotValues"][0].pop("status")
self.assertEqual(bid, i)
def features_bidder_invalid(self):
initial_bids = deepcopy(self.test_bids_data)
self.convert_bids_for_tender_with_lots(initial_bids, self.initial_lots)
data = {
"tenderers": initial_bids[0]["tenderers"],
"lotValues": [
{
"value": {"amount": 469, "currency": "UAH", "valueAddedTaxIncluded": True},
"relatedLot": self.initial_lots[0]["id"],
}
],
"selfQualified": True,
"selfEligible": True,
}
response = self.app.post_json("/tenders/{}/bids".format(self.tender_id), {"data": data}, status=422)
self.assertEqual(response.status, "422 Unprocessable Entity")
self.assertEqual(response.content_type, "application/json")
self.assertEqual(response.json["status"], "error")
self.assertEqual(
response.json["errors"],
[{u"description": [u"All features parameters is required."], u"location": u"body", u"name": u"parameters"}],
)
data["parameters"] = [{"code": "OCDS-123454-AIR-INTAKE", "value": 0.1}]
response = self.app.post_json("/tenders/{}/bids".format(self.tender_id), {"data": data}, status=422)
self.assertEqual(response.status, "422 Unprocessable Entity")
self.assertEqual(response.content_type, "application/json")
self.assertEqual(response.json["status"], "error")
self.assertEqual(
response.json["errors"],
[{u"description": [u"All features parameters is required."], u"location": u"body", u"name": u"parameters"}],
)
data["parameters"].append({"code": "OCDS-123454-AIR-INTAKE", "value": 0.1})
response = self.app.post_json("/tenders/{}/bids".format(self.tender_id), {"data": data}, status=422)
self.assertEqual(response.status, "422 Unprocessable Entity")
self.assertEqual(response.content_type, "application/json")
self.assertEqual(response.json["status"], "error")
self.assertEqual(
response.json["errors"],
[
{
u"description": [u"Parameter code should be uniq for all parameters"],
u"location": u"body",
u"name": u"parameters",
}
],
)
data["parameters"][1]["code"] = "OCDS-123454-YEARS"
data["parameters"][1]["value"] = 0.2
response = self.app.post_json("/tenders/{}/bids".format(self.tender_id), {"data": data}, status=422)
self.assertEqual(response.status, "422 Unprocessable Entity")
self.assertEqual(response.content_type, "application/json")
self.assertEqual(response.json["status"], "error")
self.assertEqual(
response.json["errors"],
[
{
u"description": [{u"value": [u"value should be one of feature value."]}],
u"location": u"body",
u"name": u"parameters",
}
],
)
def create_tender_bid_with_documents(self):
# test requires bid data stored on `bid_data_wo_docs` attribute of test class
docs = [
{
"title": "first.doc",
"url": self.generate_docservice_url(),
"hash": "md5:" + "0" * 32,
"format": "application/msword",
},
{
"title": "second.doc",
"url": self.generate_docservice_url(),
"hash": "md5:" + "0" * 32,
"format": "application/msword",
},
{
"title": "third.doc",
"url": self.generate_docservice_url(),
"hash": "md5:" + "0" * 32,
"format": "application/msword",
},
]
docs_container = self.docs_container if hasattr(self, "docs_container") else "documents"
docs_container_url = self.docs_container_url if hasattr(self, "docs_container_url") else "documents"
initial_bids = deepcopy(self.test_bids_data)
self.convert_bids_for_tender_with_lots(initial_bids, self.initial_lots)
bid_data = deepcopy(initial_bids[0])
bid_data[docs_container] = docs
response = self.app.post_json("/tenders/{}/bids".format(self.tender_id), {"data": bid_data})
self.assertEqual(response.status, "201 Created")
self.assertEqual(response.content_type, "application/json")
bid = response.json["data"]
self.assertEqual(bid["tenderers"][0]["name"], self.author_data["name"])
self.assertIn("id", bid)
self.bid_id = bid["id"]
self.bid_token = response.json["access"]["token"]
self.assertIn(bid["id"], response.headers["Location"])
documents = bid[docs_container]
ids = [doc["id"] for doc in documents]
self.assertEqual(["first.doc", "second.doc", "third.doc"], [document["title"] for document in documents])
response = self.app.get(
"/tenders/{}/bids/{}/{}".format(self.tender_id, self.bid_id, docs_container_url), status=403
)
self.assertEqual(response.status, "403 Forbidden")
self.assertEqual(response.content_type, "application/json")
self.assertEqual(
response.json["errors"][0]["description"],
"Can't view bid documents in current (active.tendering) tender status",
)
response = self.app.get(
"/tenders/{}/bids/{}/{}?acc_token={}".format(self.tender_id, self.bid_id, docs_container_url, self.bid_token)
)
self.assertEqual(response.status, "200 OK")
self.assertEqual(response.content_type, "application/json")
self.assertEqual(len(response.json["data"]), 3)
self.assertEqual(ids, [doc["id"] for doc in response.json["data"]])
response = self.app.get(
"/tenders/{}/bids/{}/{}?all=true&acc_token={}".format(
self.tender_id, self.bid_id, docs_container_url, self.bid_token
)
)
self.assertEqual(response.status, "200 OK")
self.assertEqual(response.content_type, "application/json")
self.assertEqual(len(response.json["data"]), 3)
self.assertEqual(ids, [doc["id"] for doc in response.json["data"]])
for index, document in enumerate(documents):
key = document["url"].split("?")[-1].split("=")[-1]
response = self.app.get(
"/tenders/{}/bids/{}/{}/{}?download=some_id&acc_token={}".format(
self.tender_id, self.bid_id, docs_container_url, document["id"], self.bid_token
),
status=404,
)
self.assertEqual(response.status, "404 Not Found")
self.assertEqual(response.content_type, "application/json")
self.assertEqual(response.json["status"], "error")
self.assertEqual(
response.json["errors"], [{u"description": u"Not Found", u"location": u"url", u"name": u"download"}]
)
response = self.app.get(
"/tenders/{}/bids/{}/{}/{}?download={}".format(
self.tender_id, self.bid_id, docs_container_url, document["id"], key
),
status=403,
)
self.assertEqual(response.status, "403 Forbidden")
self.assertEqual(response.content_type, "application/json")
self.assertEqual(
response.json["errors"][0]["description"],
"Can't view bid documents in current (active.tendering) tender status",
)
response = self.app.get(
"/tenders/{}/bids/{}/{}/{}?download={}&acc_token={}".format(
self.tender_id, self.bid_id, docs_container_url, document["id"], key, self.bid_token
)
)
self.assertEqual(response.status, "302 Moved Temporarily")
self.assertIn("http://localhost/get/", response.location)
self.assertIn("Signature=", response.location)
self.assertIn("KeyID=", response.location)
self.assertIn("Expires=", response.location)
response = self.app.get(
"/tenders/{}/bids/{}/{}/{}".format(self.tender_id, self.bid_id, docs_container_url, document["id"]),
status=403,
)
self.assertEqual(response.status, "403 Forbidden")
self.assertEqual(response.content_type, "application/json")
self.assertEqual(
response.json["errors"][0]["description"],
"Can't view bid documents in current (active.tendering) tender status",
)
response = self.app.get(
"/tenders/{}/bids/{}/{}/{}?acc_token={}".format(
self.tender_id, self.bid_id, docs_container_url, document["id"], self.bid_token
)
)
self.assertEqual(response.status, "200 OK")
self.assertEqual(response.content_type, "application/json")
self.assertEqual(document["id"], response.json["data"]["id"])
def create_tender_bid_with_document(self):
# test requires bid data stored on `bid_data_wo_docs` attribute of test class
docs = [
{
"title": "name.doc",
"url": self.generate_docservice_url(),
"hash": "md5:" + "0" * 32,
"format": "application/msword",
}
]
docs_container = self.docs_container if hasattr(self, "docs_container") else "documents"
docs_container_url = self.docs_container_url if hasattr(self, "docs_container_url") else "documents"
initial_bids = deepcopy(self.test_bids_data)
self.convert_bids_for_tender_with_lots(initial_bids, self.initial_lots)
bid_data = deepcopy(initial_bids[0])
bid_data[docs_container] = docs
response = self.app.post_json("/tenders/{}/bids".format(self.tender_id), {"data": bid_data})
self.assertEqual(response.status, "201 Created")
self.assertEqual(response.content_type, "application/json")
bid = response.json["data"]
self.assertEqual(bid["tenderers"][0]["name"], self.author_data["name"])
self.assertIn("id", bid)
self.bid_id = bid["id"]
self.bid_token = response.json["access"]["token"]
self.assertIn(bid["id"], response.headers["Location"])
document = bid[docs_container][0]
self.assertEqual("name.doc", document["title"])
key = document["url"].split("?")[-1].split("=")[-1]
response = self.app.get(
"/tenders/{}/bids/{}/{}".format(self.tender_id, self.bid_id, docs_container_url), status=403
)
self.assertEqual(response.status, "403 Forbidden")
self.assertEqual(response.content_type, "application/json")
self.assertEqual(
response.json["errors"][0]["description"],
"Can't view bid documents in current (active.tendering) tender status",
)
response = self.app.get(
"/tenders/{}/bids/{}/{}?acc_token={}".format(self.tender_id, self.bid_id, docs_container_url, self.bid_token)
)
self.assertEqual(response.status, "200 OK")
self.assertEqual(response.content_type, "application/json")
self.assertEqual(document["id"], response.json["data"][0]["id"])
self.assertEqual("name.doc", response.json["data"][0]["title"])
response = self.app.get(
"/tenders/{}/bids/{}/{}?all=true&acc_token={}".format(
self.tender_id, self.bid_id, docs_container_url, self.bid_token
)
)
self.assertEqual(response.status, "200 OK")
self.assertEqual(response.content_type, "application/json")
self.assertEqual(document["id"], response.json["data"][0]["id"])
self.assertEqual("name.doc", response.json["data"][0]["title"])
response = self.app.get(
"/tenders/{}/bids/{}/{}/{}?download=some_id&acc_token={}".format(
self.tender_id, self.bid_id, docs_container_url, document["id"], self.bid_token
),
status=404,
)
self.assertEqual(response.status, "404 Not Found")
self.assertEqual(response.content_type, "application/json")
self.assertEqual(response.json["status"], "error")
self.assertEqual(
response.json["errors"], [{u"description": u"Not Found", u"location": u"url", u"name": u"download"}]
)
response = self.app.get(
"/tenders/{}/bids/{}/{}/{}?download={}".format(
self.tender_id, self.bid_id, docs_container_url, document["id"], key
),
status=403,
)
self.assertEqual(response.status, "403 Forbidden")
self.assertEqual(response.content_type, "application/json")
self.assertEqual(
response.json["errors"][0]["description"], "Can't view bid documents in current (active.tendering) tender status"
)
response = self.app.get(
"/tenders/{}/bids/{}/{}/{}?download={}&acc_token={}".format(
self.tender_id, self.bid_id, docs_container_url, document["id"], key, self.bid_token
)
)
self.assertEqual(response.status, "302 Moved Temporarily")
self.assertIn("http://localhost/get/", response.location)
self.assertIn("Signature=", response.location)
self.assertIn("KeyID=", response.location)
self.assertIn("Expires=", response.location)
response = self.app.get(
"/tenders/{}/bids/{}/{}/{}".format(self.tender_id, self.bid_id, docs_container_url, document["id"]), status=403
)
self.assertEqual(response.status, "403 Forbidden")
self.assertEqual(response.content_type, "application/json")
self.assertEqual(
response.json["errors"][0]["description"], "Can't view bid documents in current (active.tendering) tender status"
)
response = self.app.get(
"/tenders/{}/bids/{}/{}/{}?acc_token={}".format(
self.tender_id, self.bid_id, docs_container_url, document["id"], self.bid_token
)
)
self.assertEqual(response.status, "200 OK")
self.assertEqual(response.content_type, "application/json")
self.assertEqual(document["id"], response.json["data"]["id"])
self.assertEqual("name.doc", response.json["data"]["title"])
def create_tender_bid_with_document_invalid(self):
# test requires bid data stored on `bid_data_wo_docs` attribute of test class
docs = [
{
"title": "name.doc",
"url": "http://invalid.docservice.url/get/uuid",
"hash": "md5:" + "0" * 32,
"format": "application/msword",
}
]
docs_container = self.docs_container if hasattr(self, "docs_container") else "documents"
initial_bids = deepcopy(self.test_bids_data)
self.convert_bids_for_tender_with_lots(initial_bids, self.initial_lots)
bid_data = deepcopy(initial_bids[0])
bid_data[docs_container] = docs
response = self.app.post_json("/tenders/{}/bids".format(self.tender_id), {"data": bid_data}, status=403)
self.assertEqual(response.status, "403 Forbidden")
self.assertEqual(response.content_type, "application/json")
self.assertEqual(response.json["errors"][0]["description"], "Can add document only from document service.")
docs = [
{
"title": "name.doc",
"url": "/".join(self.generate_docservice_url().split("/")[:4]),
"hash": "md5:" + "0" * 32,
"format": "application/msword",
}
]
bid_data[docs_container] = docs
response = self.app.post_json("/tenders/{}/bids".format(self.tender_id), {"data": bid_data}, status=403)
self.assertEqual(response.status, "403 Forbidden")
self.assertEqual(response.content_type, "application/json")
self.assertEqual(response.json["errors"][0]["description"], "Can add document only from document service.")
docs = [
{
"title": "name.doc",
"url": self.generate_docservice_url().split("?")[0],
"hash": "md5:" + "0" * 32,
"format": "application/msword",
}
]
bid_data[docs_container] = docs
response = self.app.post_json("/tenders/{}/bids".format(self.tender_id), {"data": bid_data}, status=403)
self.assertEqual(response.status, "403 Forbidden")
self.assertEqual(response.content_type, "application/json")
self.assertEqual(response.json["errors"][0]["description"], "Can add document only from document service.")
docs = [{"title": "name.doc", "url": self.generate_docservice_url(), "format": "application/msword"}]
bid_data[docs_container] = docs
response = self.app.post_json("/tenders/{}/bids".format(self.tender_id), {"data": bid_data}, status=422)
self.assertEqual(response.status, "422 Unprocessable Entity")
self.assertEqual(response.content_type, "application/json")
self.assertEqual(response.json["errors"][0]["location"], docs_container)
self.assertEqual(response.json["errors"][0]["name"], "hash")
self.assertEqual(response.json["errors"][0]["description"], "This field is required.")
docs = [
{
"title": "name.doc",
"url": self.generate_docservice_url().replace(self.app.app.registry.keyring.keys()[-1], "0" * 8),
"hash": "md5:" + "0" * 32,
"format": "application/msword",
}
]
bid_data[docs_container] = docs
response = self.app.post_json("/tenders/{}/bids".format(self.tender_id), {"data": bid_data}, status=422)
self.assertEqual(response.status, "422 Unprocessable Entity")
self.assertEqual(response.content_type, "application/json")
self.assertEqual(response.json["errors"][0]["description"], "Document url expired.")
docs = [
{
"title": "name.doc",
"url": self.generate_docservice_url().replace("Signature=", "Signature=ABC"),
"hash": "md5:" + "0" * 32,
"format": "application/msword",
}
]
bid_data[docs_container] = docs
response = self.app.post_json("/tenders/{}/bids".format(self.tender_id), {"data": bid_data}, status=422)
self.assertEqual(response.status, "422 Unprocessable Entity")
self.assertEqual(response.content_type, "application/json")
self.assertEqual(response.json["errors"][0]["description"], "Document url signature invalid.")
docs = [
{
"title": "name.doc",
"url": self.generate_docservice_url().replace("Signature=", "Signature=bw%3D%3D"),
"hash": "md5:" + "0" * 32,
"format": "application/msword",
}
]
bid_data[docs_container] = docs
response = self.app.post_json("/tenders/{}/bids".format(self.tender_id), {"data": bid_data}, status=422)
self.assertEqual(response.status, "422 Unprocessable Entity")
self.assertEqual(response.content_type, "application/json")
self.assertEqual(response.json["errors"][0]["description"], "Document url invalid.")
def get_tender_bidder_document_ds(self):
doc_id_by_type = {}
def document_is_unaccessible_for_others(resource):
orig_auth = self.app.authorization
self.app.authorization = ("Basic", ("broker4", ""))
response = self.app.get("/tenders/{}/bids/{}/{}".format(self.tender_id, self.bid_id, resource), status=403)
self.assertEqual(response.status, "403 Forbidden")
doc_id = doc_id_by_type[resource]["id"]
response = self.app.get(
"/tenders/{}/bids/{}/{}/{}".format(self.tender_id, self.bid_id, resource, doc_id), status=403
)
self.assertEqual(response.status, "403 Forbidden")
self.app.authorization = orig_auth
def document_is_unaccessible_for_tender_owner(resource):
orig_auth = self.app.authorization
self.app.authorization = ("Basic", ("broker", ""))
response = self.app.get(
"/tenders/{}/bids/{}/{}?acc_token={}".format(self.tender_id, self.bid_id, resource, self.tender_token),
status=403,
)
self.assertEqual(response.status, "403 Forbidden")
doc_id = doc_id_by_type[resource]["id"]
response = self.app.get(
"/tenders/{}/bids/{}/{}/{}?acc_token={}".format(
self.tender_id, self.bid_id, resource, doc_id, self.tender_token
),
status=403,
)
self.assertEqual(response.status, "403 Forbidden")
self.app.authorization = orig_auth
def all_documents_are_accessible_for_bid_owner(resource):
orig_auth = self.app.authorization
self.app.authorization = ("Basic", ("broker", ""))
for resource in ["documents", "financial_documents", "eligibility_documents", "qualification_documents"]:
response = self.app.get(
"/tenders/{}/bids/{}/{}?acc_token={}".format(self.tender_id, self.bid_id, resource, self.bid_token)
)
self.assertEqual(response.status, "200 OK")
self.assertEqual(len(response.json["data"]), 2)
doc1 = response.json["data"][0]
doc2 = response.json["data"][1]
self.assertEqual(doc1["title"], "name_{}.doc".format(resource[:-1]))
self.assertEqual(doc2["title"], "name_{}_private.doc".format(resource[:-1]))
self.assertEqual(doc1["confidentiality"], u"public")
self.assertEqual(doc2["confidentiality"], u"buyerOnly")
self.assertIn("url", doc1)
self.assertIn("url", doc2)
doc_id = doc_id_by_type[resource]["id"]
response = self.app.get(
"/tenders/{}/bids/{}/{}/{}?acc_token={}".format(
self.tender_id, self.bid_id, resource, doc_id, self.bid_token
)
)
self.assertEqual(response.status, "200 OK")
self.assertIn("previousVersions", response.json["data"])
doc = response.json["data"]
del doc["previousVersions"]
self.assertEqual(doc, doc1)
doc_id = doc_id_by_type[resource + "private"]["id"]
response = self.app.get(
"/tenders/{}/bids/{}/{}/{}?acc_token={}".format(
self.tender_id, self.bid_id, resource, doc_id, self.bid_token
)
)
self.assertEqual(response.status, "200 OK")
self.assertIn("previousVersions", response.json["data"])
doc = response.json["data"]
del doc["previousVersions"]
self.assertEqual(doc, doc2)
self.app.authorization = orig_auth
def documents_are_accessible_for_tender_owner(resource):
orig_auth = self.app.authorization
self.app.authorization = ("Basic", ("broker", ""))
token = self.tender_token
response = self.app.get(
"/tenders/{}/bids/{}/{}?acc_token={}".format(self.tender_id, self.bid_id, resource, token)
)
self.assertEqual(response.status, "200 OK")
self.assertEqual(len(response.json["data"]), 2)
doc_id = doc_id_by_type[resource]["id"]
response = self.app.get(
"/tenders/{}/bids/{}/{}/{}?acc_token={}".format(self.tender_id, self.bid_id, resource, doc_id, token)
)
self.assertIn("url", response.json["data"])
self.assertEqual(response.status, "200 OK")
doc_id = doc_id_by_type[resource + "private"]["id"]
response = self.app.get(
"/tenders/{}/bids/{}/{}/{}?acc_token={}".format(self.tender_id, self.bid_id, resource, doc_id, token)
)
self.assertEqual(response.status, "200 OK")
self.assertIn("url", response.json["data"])
self.app.authorization = orig_auth
def public_documents_are_accessible_for_others(resource):
orig_auth = self.app.authorization
self.app.authorization = ("Basic", ("broker4", ""))
response = self.app.get("/tenders/{}/bids/{}/{}".format(self.tender_id, self.bid_id, resource))
self.assertEqual(response.status, "200 OK")
self.assertEqual(len(response.json["data"]), 2)
self.assertIn(doc_id_by_type[resource]["key"], response.json["data"][0]["url"])
self.assertNotIn("url", response.json["data"][1])
response = self.app.get(
"/tenders/{}/bids/{}/{}/{}".format(self.tender_id, self.bid_id, resource, doc_id_by_type[resource]["id"])
)
self.assertEqual(response.status, "200 OK")
self.assertEqual(response.json["data"]["title"], "name_{}.doc".format(resource[:-1]))
self.assertEqual(response.json["data"]["confidentiality"], u"public")
self.assertEqual(response.json["data"]["format"], u"application/msword")
self.assertEqual(response.json["data"]["language"], "uk")
response = self.app.get(
"/tenders/{}/bids/{}/{}/{}".format(
self.tender_id, self.bid_id, resource, doc_id_by_type[resource + "private"]["id"]
)
)
self.assertEqual(response.status, "200 OK")
self.assertEqual(response.json["data"]["confidentiality"], u"buyerOnly")
self.assertNotIn("url", response.json["data"])
self.app.authorization = orig_auth
def all_public_documents_are_accessible_for_others():
for doc_resource in ["documents", "financial_documents", "eligibility_documents", "qualification_documents"]:
public_documents_are_accessible_for_others(doc_resource)
# active.tendering
for doc_resource in ["documents", "financial_documents", "eligibility_documents", "qualification_documents"]:
response = self.app.post_json(
"/tenders/{}/bids/{}/{}?acc_token={}".format(self.tender_id, self.bid_id, doc_resource, self.bid_token),
{
"data": {
"title": "name_{}.doc".format(doc_resource[:-1]),
"url": self.generate_docservice_url(),
"hash": "md5:" + "0" * 32,
"format": "application/msword",
"confidentiality": "public",
}
},
)
self.assertEqual(response.status, "201 Created")
self.assertEqual(response.content_type, "application/json")
doc_id = response.json["data"]["id"]
self.assertIn(doc_id, response.headers["Location"])
self.assertEqual("name_{}.doc".format(doc_resource[:-1]), response.json["data"]["title"])
key = response.json["data"]["url"].split("?")[-1].split("=")[-1]
doc_id_by_type[doc_resource] = {"id": doc_id, "key": key}
response = self.app.post_json(
"/tenders/{}/bids/{}/{}?acc_token={}".format(self.tender_id, self.bid_id, doc_resource, self.bid_token),
{
"data": {
"title": "name_{}_private.doc".format(doc_resource[:-1]),
"url": self.generate_docservice_url(),
"hash": "md5:" + "0" * 32,
"format": "application/msword",
"confidentiality": "buyerOnly",
"confidentialityRationale": "Only our company sells badgers with pink hair.",
}
},
)
self.assertEqual(response.status, "201 Created")
doc_id = response.json["data"]["id"]
key = response.json["data"]["url"].split("?")[-1].split("=")[-1]
doc_id_by_type[doc_resource + "private"] = {"id": doc_id, "key": key}
doc_id_by_type[doc_resource + "private"] = {"id": doc_id, "key": key}
document_is_unaccessible_for_others(doc_resource)
document_is_unaccessible_for_tender_owner(doc_resource)
all_documents_are_accessible_for_bid_owner(doc_resource)
# switch to active.pre-qualification
self.set_status("active.tendering", "end")
self.app.authorization = ("Basic", ("chronograph", ""))
response = self.app.patch_json("/tenders/{}".format(self.tender_id), {"data": {"id": self.tender_id}})
self.assertEqual(response.json["data"]["status"], "active.pre-qualification")
self.app.authorization = ("Basic", ("anon", ""))
response = self.app.get("/tenders/{}/bids".format(self.tender_id))
self.assertEqual(response.status, "200 OK")
self.assertEqual(len(response.json["data"]), self.min_bids_number)
self.assertEqual(
set(response.json["data"][0].keys()), set(["id", "status", "documents", "eligibilityDocuments", "tenderers"])
)
self.assertEqual(set(response.json["data"][1].keys()), set(["id", "status", "tenderers"]))
response = self.app.get("/tenders/{}/bids/{}".format(self.tender_id, self.bid_id))
self.assertEqual(response.status, "200 OK")
self.assertEqual(
set(response.json["data"].keys()), set(["id", "status", "documents", "eligibilityDocuments", "tenderers"])
)
for doc_resource in ["documents", "eligibility_documents"]:
response = self.app.get("/tenders/{}/bids/{}/{}".format(self.tender_id, self.bid_id, doc_resource))
self.assertEqual(response.status, "200 OK")
self.assertEqual(len(response.json["data"]), 2)
self.assertIn("url", response.json["data"][0])
self.assertIn(doc_id_by_type[doc_resource]["key"], response.json["data"][0]["url"])
self.assertNotIn("url", response.json["data"][1])
for doc_resource in ["documents", "eligibility_documents"]:
doc_id = doc_id_by_type[doc_resource]["id"]
response = self.app.get("/tenders/{}/bids/{}/{}/{}".format(self.tender_id, self.bid_id, doc_resource, doc_id))
self.assertEqual(response.status, "200 OK")
self.assertEqual(response.json["data"]["title"], u"name_{}.doc".format(doc_resource[:-1]))
self.assertEqual(response.json["data"]["confidentiality"], u"public")
self.assertEqual(response.json["data"]["format"], u"application/msword")
self.assertEqual(response.json["data"]["language"], "uk")
doc_id = doc_id_by_type[doc_resource + "private"]["id"]
response = self.app.get("/tenders/{}/bids/{}/{}/{}".format(self.tender_id, self.bid_id, doc_resource, doc_id))
self.assertEqual(response.status, "200 OK")
self.assertEqual(response.json["data"]["title"], u"name_{}_private.doc".format(doc_resource[:-1]))
self.assertEqual(response.json["data"]["confidentiality"], u"buyerOnly")
self.assertEqual(response.json["data"]["format"], u"application/msword")
self.assertEqual(response.json["data"]["language"], "uk")
for doc_resource in ["financial_documents", "qualification_documents"]:
document_is_unaccessible_for_others(doc_resource)
document_is_unaccessible_for_tender_owner(doc_resource)
for doc_resource in ["documents", "eligibility_documents"]:
documents_are_accessible_for_tender_owner(doc_resource)
public_documents_are_accessible_for_others(doc_resource)
all_documents_are_accessible_for_bid_owner(doc_resource)
# qualify bids
response = self.app.get("/tenders/{}/qualifications".format(self.tender_id))
self.app.authorization = ("Basic", ("token", ""))
for qualification in response.json["data"]:
response = self.app.patch_json(
"/tenders/{}/qualifications/{}".format(self.tender_id, qualification["id"]),
{"data": {"status": "active", "qualified": True, "eligible": True}},
)
self.assertEqual(response.status, "200 OK")
# switch to active.pre-qualification.stand-still
response = self.app.patch_json(
"/tenders/{}".format(self.tender_id), {"data": {"status": "active.pre-qualification.stand-still"}}
)
self.assertEqual(response.json["data"]["status"], "active.pre-qualification.stand-still")
self.app.authorization = ("Basic", ("anon", ""))
response = self.app.get("/tenders/{}/bids".format(self.tender_id))
self.assertEqual(response.status, "200 OK")
self.assertEqual(len(response.json["data"]), self.min_bids_number)
self.assertEqual(
set(response.json["data"][0].keys()), set(["id", "status", "documents", "eligibilityDocuments", "tenderers"])
)
self.assertEqual(set(response.json["data"][1].keys()), set(["id", "status", "tenderers"]))
response = self.app.get("/tenders/{}/bids/{}".format(self.tender_id, self.bid_id))
self.assertEqual(response.status, "200 OK")
self.assertEqual(
set(response.json["data"].keys()), set(["id", "status", "documents", "eligibilityDocuments", "tenderers"])
)
response = self.app.get("/tenders/{}/bids/{}/documents".format(self.tender_id, self.bid_id))
self.assertEqual(response.status, "200 OK")
self.assertEqual(len(response.json["data"]), 2)
self.assertIn(doc_id_by_type["documents"]["key"], response.json["data"][0]["url"])
doc_id = doc_id_by_type["documents"]["id"]
response = self.app.get("/tenders/{}/bids/{}/documents/{}".format(self.tender_id, self.bid_id, doc_id))
self.assertEqual(response.status, "200 OK")
self.assertEqual(response.json["data"]["title"], u"name_document.doc")
self.assertEqual(response.json["data"]["confidentiality"], u"public")
self.assertEqual(response.json["data"]["format"], u"application/msword")
for doc_resource in ["financial_documents", "qualification_documents"]:
document_is_unaccessible_for_others(doc_resource)
document_is_unaccessible_for_tender_owner(doc_resource)
for doc_resource in ["documents", "eligibility_documents"]:
documents_are_accessible_for_tender_owner(doc_resource)
public_documents_are_accessible_for_others(doc_resource)
all_documents_are_accessible_for_bid_owner(doc_resource)
# switch to active.auction
self.set_status("active.pre-qualification.stand-still", "end")
self.app.authorization = ("Basic", ("chronograph", ""))
response = self.app.patch_json("/tenders/{}".format(self.tender_id), {"data": {"id": self.tender_id}})
self.assertEqual(response.json["data"]["status"], "active.auction")
self.app.authorization = ("Basic", ("anon", ""))
response = self.app.get("/tenders/{}/bids".format(self.tender_id))
self.assertEqual(response.status, "200 OK")
self.assertEqual(len(response.json["data"]), self.min_bids_number)
self.assertEqual(
set(response.json["data"][0].keys()), set(["id", "status", "documents", "eligibilityDocuments", "tenderers"])
)
self.assertEqual(set(response.json["data"][1].keys()), set(["id", "status", "tenderers"]))
response = self.app.get("/tenders/{}/bids/{}".format(self.tender_id, self.bid_id))
self.assertEqual(response.status, "200 OK")
self.assertEqual(
set(response.json["data"].keys()), set(["id", "status", "documents", "eligibilityDocuments", "tenderers"])
)
response = self.app.get("/tenders/{}/bids/{}/documents".format(self.tender_id, self.bid_id))
self.assertEqual(response.status, "200 OK")
self.assertEqual(len(response.json["data"]), 2)
self.assertIn(doc_id_by_type["documents"]["key"], response.json["data"][0]["url"])
doc_id = doc_id_by_type["documents"]["id"]
response = self.app.get("/tenders/{}/bids/{}/documents/{}".format(self.tender_id, self.bid_id, doc_id))
self.assertEqual(response.status, "200 OK")
self.assertEqual(response.json["data"]["title"], u"name_document.doc")
self.assertEqual(response.json["data"]["confidentiality"], u"public")
self.assertEqual(response.json["data"]["format"], u"application/msword")
for doc_resource in ["financial_documents", "qualification_documents"]:
document_is_unaccessible_for_others(doc_resource)
document_is_unaccessible_for_tender_owner(doc_resource)
for doc_resource in ["documents", "eligibility_documents"]:
documents_are_accessible_for_tender_owner(doc_resource)
public_documents_are_accessible_for_others(doc_resource)
all_documents_are_accessible_for_bid_owner(doc_resource)
# switch to qualification
self.app.authorization = ("Basic", ("auction", ""))
response = self.app.get("/tenders/{}/auction".format(self.tender_id))
auction_bids_data = response.json["data"]["bids"]
response = self.app.post_json(
"/tenders/{}/auction/{}".format(self.tender_id, self.initial_lots[0]["id"]),
{"data": {"bids": auction_bids_data}},
)
self.assertEqual(response.status, "200 OK")
response = self.app.get("/tenders/{}".format(self.tender_id))
self.assertEqual(response.json["data"]["status"], "active.qualification")
self.app.authorization = ("Basic", ("anon", ""))
response = self.app.get("/tenders/{}/bids".format(self.tender_id))
self.assertEqual(response.status, "200 OK")
self.assertEqual(len(response.json["data"]), self.min_bids_number)
self.assertEqual(
set(response.json["data"][0].keys()),
set(
[
u"date",
u"status",
u"id",
u"lotValues",
u"tenderers",
u"documents",
u"eligibilityDocuments",
u"qualificationDocuments",
u"financialDocuments",
u"selfEligible",
u"selfQualified",
]
),
)
self.assertEqual(
set(response.json["data"][1].keys()),
set([u"date", u"status", u"id", u"lotValues", u"tenderers", u"selfEligible", u"selfQualified"]),
)
response = self.app.get("/tenders/{}/bids/{}".format(self.tender_id, self.bid_id))
self.assertEqual(response.status, "200 OK")
self.assertEqual(
set(response.json["data"].keys()),
set(
[
u"date",
u"status",
u"id",
u"lotValues",
u"tenderers",
u"documents",
u"eligibilityDocuments",
u"qualificationDocuments",
u"financialDocuments",
u"selfEligible",
u"selfQualified",
]
),
)
all_documents_are_accessible_for_bid_owner(doc_resource)
for doc_resource in ["documents", "financial_documents", "eligibility_documents", "qualification_documents"]:
documents_are_accessible_for_tender_owner(doc_resource)
all_public_documents_are_accessible_for_others()
self.set_status("active.awarded")
response = self.app.get("/tenders/{}".format(self.tender_id))
self.assertEqual(response.json["data"]["status"], "active.awarded")
self.app.authorization = ("Basic", ("anon", ""))
response = self.app.get("/tenders/{}/bids".format(self.tender_id))
self.assertEqual(response.status, "200 OK")
self.assertEqual(len(response.json["data"]), self.min_bids_number)
self.assertEqual(
set(response.json["data"][0].keys()),
set(
[
u"date",
u"status",
u"id",
u"lotValues",
u"tenderers",
u"documents",
u"eligibilityDocuments",
u"qualificationDocuments",
u"financialDocuments",
u"selfEligible",
u"selfQualified",
]
),
)
self.assertEqual(
set(response.json["data"][1].keys()),
set([u"date", u"status", u"id", u"lotValues", u"tenderers", u"selfEligible", u"selfQualified"]),
)
response = self.app.get("/tenders/{}/bids/{}".format(self.tender_id, self.bid_id))
self.assertEqual(response.status, "200 OK")
self.assertEqual(
set(response.json["data"].keys()),
set(
[
u"date",
u"status",
u"id",
u"lotValues",
u"tenderers",
u"documents",
u"eligibilityDocuments",
u"qualificationDocuments",
u"financialDocuments",
u"selfEligible",
u"selfQualified",
]
),
)
all_documents_are_accessible_for_bid_owner(doc_resource)
for doc_resource in ["documents", "financial_documents", "eligibility_documents", "qualification_documents"]:
documents_are_accessible_for_tender_owner(doc_resource)
all_public_documents_are_accessible_for_others()
# time travel
tender = self.db.get(self.tender_id)
for i in tender.get("awards", []):
i["complaintPeriod"]["endDate"] = i["complaintPeriod"]["startDate"]
self.db.save(tender)
# set unitPrices in contracts
response = self.app.get("/tenders/{}".format(self.tender_id))
contracts = response.json["data"]["agreements"][-1]["contracts"]
agreement_id = response.json["data"]["agreements"][-1]["id"]
self.app.authorization = ("Basic", ("token", ""))
for contract in contracts:
unit_prices = contract["unitPrices"]
for unit_price in unit_prices:
unit_price["value"]["amount"] = 60
response = self.app.patch_json(
"/tenders/{}/agreements/{}/contracts/{}?acc_token={}".format(
self.tender_id, agreement_id, contract["id"], self.tender_token
),
{"data": {"unitPrices": unit_prices}},
)
self.assertEqual(response.status, "200 OK")
self.assertEqual(response.json["data"]["status"], "active")
tender = self.db.get(self.tender_id)
tender["contractPeriod"]["startDate"] = (
datetime.now() - CLARIFICATIONS_UNTIL_PERIOD - timedelta(days=1)
).isoformat()
tender["contractPeriod"]["clarificationsUntil"] = (datetime.now() - timedelta(days=1)).isoformat()
self.db.save(tender)
# sign agreement
self.app.patch_json(
"/tenders/{}/agreements/{}?acc_token={}".format(self.tender_id, agreement_id, self.tender_token),
{"data": {"status": "active", "period": agreement_period}},
)
response = self.app.get("/tenders/{}".format(self.tender_id))
self.assertEqual(response.json["data"]["status"], "complete")
self.app.authorization = ("Basic", ("anon", ""))
response = self.app.get("/tenders/{}/bids".format(self.tender_id))
self.assertEqual(response.status, "200 OK")
self.assertEqual(len(response.json["data"]), self.min_bids_number)
self.assertEqual(
set(response.json["data"][0].keys()),
set(
[
u"date",
u"status",
u"id",
u"lotValues",
u"tenderers",
u"documents",
u"eligibilityDocuments",
u"qualificationDocuments",
u"financialDocuments",
u"selfEligible",
u"selfQualified",
]
),
)
self.assertEqual(
set(response.json["data"][1].keys()),
set([u"date", u"status", u"id", u"lotValues", u"tenderers", u"selfEligible", u"selfQualified"]),
)
response = self.app.get("/tenders/{}/bids/{}".format(self.tender_id, self.bid_id))
self.assertEqual(response.status, "200 OK")
self.assertEqual(
set(response.json["data"].keys()),
set(
[
u"date",
u"status",
u"id",
u"lotValues",
u"tenderers",
u"documents",
u"eligibilityDocuments",
u"qualificationDocuments",
u"financialDocuments",
u"selfEligible",
u"selfQualified",
]
),
)
all_documents_are_accessible_for_bid_owner(doc_resource)
for doc_resource in ["documents", "financial_documents", "eligibility_documents", "qualification_documents"]:
documents_are_accessible_for_tender_owner(doc_resource)
all_public_documents_are_accessible_for_others()
def create_tender_bid_with_eligibility_document_invalid(self):
self.docs_container = "eligibilityDocuments"
self.docs_container_url = "eligibility_documents"
create_tender_bid_with_document_invalid(self)
def create_tender_bid_with_financial_document_invalid(self):
self.docs_container = "financialDocuments"
self.docs_container_url = "financial_documents"
create_tender_bid_with_document_invalid(self)
def create_tender_bid_with_qualification_document_invalid(self):
self.docs_container = "qualificationDocuments"
self.docs_container_url = "qualification_documents"
create_tender_bid_with_document_invalid(self)
def create_tender_bid_with_eligibility_document(self):
self.docs_container = "eligibilityDocuments"
self.docs_container_url = "eligibility_documents"
create_tender_bid_with_document(self)
def create_tender_bid_with_qualification_document(self):
self.docs_container = "qualificationDocuments"
self.docs_container_url = "qualification_documents"
create_tender_bid_with_document(self)
def create_tender_bid_with_financial_document(self):
self.docs_container = "financialDocuments"
self.docs_container_url = "financial_documents"
create_tender_bid_with_document(self)
def create_tender_bid_with_financial_documents(self):
self.docs_container = "financialDocuments"
self.docs_container_url = "financial_documents"
create_tender_bid_with_documents(self)
def create_tender_bid_with_eligibility_documents(self):
self.docs_container = "eligibilityDocuments"
self.docs_container_url = "eligibility_documents"
create_tender_bid_with_documents(self)
def create_tender_bid_with_qualification_documents(self):
self.docs_container = "qualificationDocuments"
self.docs_container_url = "qualification_documents"
create_tender_bid_with_documents(self)
def patch_and_put_document_into_invalid_bid(self):
doc_id_by_type = {}
for doc_resource in ["documents", "financial_documents", "eligibility_documents", "qualification_documents"]:
response = self.app.post(
"/tenders/{}/bids/{}/{}?acc_token={}".format(self.tender_id, self.bid_id, doc_resource, self.bid_token),
upload_files=[("file", "name_{}.doc".format(doc_resource[:-1]), "content")],
)
self.assertEqual(response.status, "201 Created")
self.assertEqual(response.content_type, "application/json")
doc_id = response.json["data"]["id"]
self.assertIn(doc_id, response.headers["Location"])
self.assertEqual("name_{}.doc".format(doc_resource[:-1]), response.json["data"]["title"])
key = response.json["data"]["url"].split("?")[-1]
doc_id_by_type[doc_resource] = {"id": doc_id, "key": key}
# update tender. we can set value that is less than a value in bids as
# they will be invalidated by this request
response = self.app.patch_json(
"/tenders/{}/lots/{}?acc_token={}".format(self.tender_id, self.initial_lots[0]["id"], self.tender_token),
{"data": {"value": {"amount": 300.0}}},
)
self.assertEqual(response.status, "200 OK")
self.assertEqual(response.json["data"]["value"]["amount"], 300)
for doc_resource in ["documents", "financial_documents", "eligibility_documents", "qualification_documents"]:
doc_id = doc_id_by_type[doc_resource]["id"]
response = self.app.patch_json(
"/tenders/{}/bids/{}/{}/{}?acc_token={}".format(
self.tender_id, self.bid_id, doc_resource, doc_id, self.bid_token
),
{
"data": {
"confidentiality": "buyerOnly",
"confidentialityRationale": "Only our company sells badgers with pink hair.",
}
},
status=403,
)
self.assertEqual(response.status, "403 Forbidden")
self.assertEqual(response.content_type, "application/json")
self.assertEqual(response.json["errors"][0]["description"], "Can't update document at 'invalid' bid status")
response = self.app.put(
"/tenders/{}/bids/{}/{}/{}?acc_token={}".format(
self.tender_id, self.bid_id, doc_resource, doc_id, self.bid_token
),
"updated",
content_type="application/msword",
status=403,
)
self.assertEqual(response.status, "403 Forbidden")
self.assertEqual(response.json["errors"][0]["description"], "Can't update document at 'invalid' bid status")
def create_tender_bid_with_all_documents(self):
docs = [
{
"title": "first.doc",
"url": self.generate_docservice_url(),
"hash": "md5:" + "0" * 32,
"format": "application/msword",
},
{
"title": "second.doc",
"url": self.generate_docservice_url(),
"hash": "md5:" + "0" * 32,
"format": "application/msword",
},
{
"title": "third.doc",
"url": self.generate_docservice_url(),
"hash": "md5:" + "0" * 32,
"format": "application/msword",
},
]
initial_bids = deepcopy(self.test_bids_data)
self.convert_bids_for_tender_with_lots(initial_bids, self.initial_lots)
bid_data = deepcopy(initial_bids[0])
bid_data["documents"] = docs
bid_data["qualificationDocuments"] = deepcopy(docs)
bid_data["eligibilityDocuments"] = deepcopy(docs)
bid_data["financialDocuments"] = deepcopy(docs)
response = self.app.post_json("/tenders/{}/bids".format(self.tender_id), {"data": bid_data})
self.assertEqual(response.status, "201 Created")
self.assertEqual(response.content_type, "application/json")
bidder = response.json["data"]
self.assertEqual(bidder["tenderers"][0]["name"], initial_bids[0]["tenderers"][0]["name"])
self.assertIn("id", bidder)
self.bid_id = bidder["id"]
self.bid_token = response.json["access"]["token"]
self.assertIn(bidder["id"], response.headers["Location"])
documents = bidder["documents"]
ids = [doc["id"] for doc in documents]
self.assertEqual(["first.doc", "second.doc", "third.doc"], [document["title"] for document in documents])
eligibility_documents = bidder["eligibilityDocuments"]
eligibility_ids = [doc["id"] for doc in eligibility_documents]
self.assertEqual(
["first.doc", "second.doc", "third.doc"], [document["title"] for document in eligibility_documents]
)
qualification_documents = bidder["qualificationDocuments"]
qualification_ids = [doc["id"] for doc in qualification_documents]
self.assertEqual(
["first.doc", "second.doc", "third.doc"], [document["title"] for document in qualification_documents]
)
financial_documents = bidder["financialDocuments"]
financial_ids = [doc["id"] for doc in financial_documents]
self.assertEqual(["first.doc", "second.doc", "third.doc"], [document["title"] for document in financial_documents])
response = self.app.get(
"/tenders/{}/bids/{}/documents?acc_token={}".format(self.tender_id, self.bid_id, self.bid_token)
)
self.assertEqual(response.status, "200 OK")
self.assertEqual(response.content_type, "application/json")
self.assertEqual(len(response.json["data"]), 3)
self.assertEqual(ids, [doc["id"] for doc in response.json["data"]])
response = self.app.get(
"/tenders/{}/bids/{}/eligibility_documents?acc_token={}".format(self.tender_id, self.bid_id, self.bid_token)
)
self.assertEqual(response.status, "200 OK")
self.assertEqual(response.content_type, "application/json")
self.assertEqual(len(response.json["data"]), 3)
self.assertEqual(eligibility_ids, [doc["id"] for doc in response.json["data"]])
response = self.app.get(
"/tenders/{}/bids/{}/qualification_documents?acc_token={}".format(self.tender_id, self.bid_id, self.bid_token)
)
self.assertEqual(response.status, "200 OK")
self.assertEqual(response.content_type, "application/json")
self.assertEqual(len(response.json["data"]), 3)
self.assertEqual(qualification_ids, [doc["id"] for doc in response.json["data"]])
response = self.app.get(
"/tenders/{}/bids/{}/financial_documents?acc_token={}".format(self.tender_id, self.bid_id, self.bid_token)
)
self.assertEqual(response.status, "200 OK")
self.assertEqual(response.content_type, "application/json")
self.assertEqual(len(response.json["data"]), 3)
self.assertEqual(financial_ids, [doc["id"] for doc in response.json["data"]])
def put_tender_bidder_document_private_json(self):
doc_id_by_type = {}
private_doc_id_by_type = {}
for doc_resource in ["documents", "financial_documents", "eligibility_documents", "qualification_documents"]:
response = self.app.post_json(
"/tenders/{}/bids/{}/{}?acc_token={}".format(self.tender_id, self.bid_id, doc_resource, self.bid_token),
{
"data": {
"title": "name_{}.doc".format(doc_resource[:-1]),
"url": self.generate_docservice_url(),
"hash": "md5:" + "0" * 32,
"format": "application/msword",
"confidentiality": "buyerOnly",
"confidentialityRationale": "Only our company sells badgers with pink hair.",
}
},
)
self.assertEqual(response.status, "201 Created")
self.assertEqual(response.content_type, "application/json")
doc_id = response.json["data"]["id"]
self.assertIn(doc_id, response.headers["Location"])
self.assertEqual("name_{}.doc".format(doc_resource[:-1]), response.json["data"]["title"])
key = response.json["data"]["url"].split("?")[-1]
doc_id_by_type[doc_resource] = {"id": doc_id, "key": key}
self.assertEqual("buyerOnly", response.json["data"]["confidentiality"])
self.assertEqual(
"Only our company sells badgers with pink hair.", response.json["data"]["confidentialityRationale"]
)
response = self.app.put_json(
"/tenders/{}/bids/{}/{}/{}?acc_token={}".format(
self.tender_id, self.bid_id, doc_resource, doc_id, self.bid_token
),
{
"data": {
"title": "name_{}_v2.doc".format(doc_resource[:-1]),
"url": self.generate_docservice_url(),
"hash": "md5:" + "0" * 32,
"format": "application/msword",
"confidentiality": "public",
"confidentialityRationale": None,
}
},
)
self.assertEqual(response.status, "200 OK")
self.assertEqual(response.content_type, "application/json")
self.assertEqual("public", response.json["data"]["confidentiality"])
self.assertNotIn("confidentialityRationale", response.json["data"])
# switch to active.pre-qualification
self.set_status("active.tendering", "end")
self.app.authorization = ("Basic", ("chronograph", ""))
response = self.app.patch_json("/tenders/{}".format(self.tender_id), {"data": {"id": self.tender_id}})
self.assertEqual(response.json["data"]["status"], "active.pre-qualification")
# qualify bids
response = self.app.get("/tenders/{}/qualifications".format(self.tender_id))
self.app.authorization = ("Basic", ("token", ""))
for qualification in response.json["data"]:
response = self.app.patch_json(
"/tenders/{}/qualifications/{}".format(self.tender_id, qualification["id"]),
{"data": {"status": "active", "qualified": True, "eligible": True}},
)
self.assertEqual(response.status, "200 OK")
# switch to active.pre-qualification.stand-still
response = self.app.patch_json(
"/tenders/{}".format(self.tender_id), {"data": {"status": "active.pre-qualification.stand-still"}}
)
self.assertEqual(response.json["data"]["status"], "active.pre-qualification.stand-still")
# switch to active.auction
self.set_status("active.pre-qualification.stand-still", "end")
self.app.authorization = ("Basic", ("chronograph", ""))
response = self.app.patch_json("/tenders/{}".format(self.tender_id), {"data": {"id": self.tender_id}})
self.assertEqual(response.json["data"]["status"], "active.auction")
# switch to qualification
self.app.authorization = ("Basic", ("auction", ""))
response = self.app.get("/tenders/{}/auction".format(self.tender_id))
auction_bids_data = response.json["data"]["bids"]
response = self.app.post_json(
"/tenders/{}/auction/{}".format(self.tender_id, self.initial_lots[0]["id"]),
{"data": {"bids": auction_bids_data}},
)
self.assertEqual(response.status, "200 OK")
response = self.app.get("/tenders/{}".format(self.tender_id))
self.assertEqual(response.json["data"]["status"], "active.qualification")
self.app.authorization = ("Basic", ("broker", ""))
for doc_resource in ["documents", "financial_documents", "eligibility_documents", "qualification_documents"]:
doc_id = doc_id_by_type[doc_resource]["id"]
response = self.app.put_json(
"/tenders/{}/bids/{}/{}/{}?acc_token={}".format(
self.tender_id, self.bid_id, doc_resource, doc_id, self.bid_token
),
{
"data": {
"title": "name_{}_v3.doc".format(doc_resource[:-1]),
"url": self.generate_docservice_url(),
"hash": "md5:" + "0" * 32,
"format": "application/msword",
"confidentiality": "buyerOnly",
"confidentialityRationale": "Only our company sells badgers with pink hair.",
}
},
status=403,
)
self.assertEqual(response.status, "403 Forbidden")
self.assertEqual(
response.json["errors"][0]["description"],
"Can't update document confidentiality in current (active.qualification) tender status",
)
def change_bid_document_in_qualification_st_st(self):
self.set_status("active.qualification.stand-still", "end")
doc_id_by_type = {}
response = self.app.get("/tenders/{}".format(self.tender_id))
self.assertEqual(response.json["data"]["status"], "active.qualification.stand-still")
for doc_resource in ["documents", "financial_documents", "eligibility_documents", "qualification_documents"]:
response = self.app.post_json(
"/tenders/{}/bids/{}/{}?acc_token={}".format(self.tender_id, self.bid_id, doc_resource, self.bid_token),
{
"data": {
"title": "name_{}.doc".format(doc_resource[:-1]),
"url": self.generate_docservice_url(),
"hash": "md5:" + "0" * 32,
"format": "application/msword",
"confidentiality": "buyerOnly",
"confidentialityRationale": "Only our company sells badgers with pink hair.",
}
},
)
self.assertEqual(response.status, "201 Created")
self.assertEqual(response.content_type, "application/json")
doc_id = response.json["data"]["id"]
self.assertIn(doc_id, response.headers["Location"])
self.assertEqual("name_{}.doc".format(doc_resource[:-1]), response.json["data"]["title"])
key = response.json["data"]["url"].split("?")[-1]
doc_id_by_type[doc_resource] = {"id": doc_id, "key": key}
self.assertEqual("buyerOnly", response.json["data"]["confidentiality"])
self.assertEqual(
"Only our company sells badgers with pink hair.", response.json["data"]["confidentialityRationale"]
)
response = self.app.put_json(
"/tenders/{}/bids/{}/{}/{}?acc_token={}".format(
self.tender_id, self.bid_id, doc_resource, doc_id, self.bid_token
),
{
"data": {
"title": "name_{}_v2.doc".format(doc_resource[:-1]),
"url": self.generate_docservice_url(),
"hash": "md5:" + "0" * 32,
"format": "application/msword",
"confidentiality": "public",
"confidentialityRationale": None,
}
},
status=403,
)
self.assertEqual(response.status, "403 Forbidden")
self.assertEqual(
response.json["errors"][0]["description"],
"Can't update document confidentiality in current (active.qualification.stand-still) tender status",
)
def view_bid_in_qualification_st_st(self): # CS-5342
self.set_status("active.qualification.stand-still", "end")
response = self.app.get("/tenders/{}".format(self.tender_id))
self.assertEqual(response.json["data"]["status"], "active.qualification.stand-still")
bids = response.json["data"]["bids"]
expected_keys = {"id", "status", "selfEligible", "selfQualified", "lotValues", "tenderers", "date"}
self.assertEqual(set(bids[0].keys()), expected_keys)
response = self.app.get("/tenders/{}/bids/{}".format(self.tender_id, bids[0]["id"]))
self.assertEqual(set(response.json["data"].keys()), expected_keys)
def post_winningBid_document_in_awarded(self):
self.set_status("active.awarded")
response = self.app.post_json(
"/tenders/{}/bids/{}/{}?acc_token={}".format(
self.tender_id, self.bid_id, "financial_documents", self.bid_token
),
{
"data": {
"title": u"укр.doc",
"url": self.generate_docservice_url(),
"hash": "md5:" + "0" * 32,
"format": "application/msword",
"documentType": "winningBid",
}
},
)
self.assertEqual(response.status, "201 Created")
self.assertEqual(response.content_type, "application/json")
doc_id = response.json["data"]["id"]
self.assertIn(doc_id, response.headers["Location"])
self.assertEqual(u"укр.doc", response.json["data"]["title"])
self.assertIn("Signature=", response.json["data"]["url"])
self.assertIn("KeyID=", response.json["data"]["url"])
self.assertNotIn("Expires=", response.json["data"]["url"])
| 46.486541
| 135
| 0.613175
| 20,728
| 184,784
| 5.302538
| 0.019249
| 0.11109
| 0.135391
| 0.054863
| 0.955937
| 0.946193
| 0.936849
| 0.926149
| 0.918953
| 0.915168
| 0
| 0.011686
| 0.219207
| 184,784
| 3,974
| 136
| 46.498239
| 0.750114
| 0.019764
| 0
| 0.763036
| 0
| 0
| 0.239302
| 0.065244
| 0
| 0
| 0
| 0
| 0.271727
| 1
| 0.015353
| false
| 0
| 0.001159
| 0
| 0.016512
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
e81d849b6a84b897ab994df80730778ec3389cff
| 4,132
|
py
|
Python
|
AdaIN.py
|
QinMichael/SkinLesion-StyleGAN
|
eed9ac53dc18d72391f15f4550416b821df3fdd6
|
[
"Apache-2.0"
] | 3
|
2021-08-01T00:18:01.000Z
|
2022-03-21T12:11:06.000Z
|
AdaIN.py
|
QinMichael/SkinLesion-StyleGAN
|
eed9ac53dc18d72391f15f4550416b821df3fdd6
|
[
"Apache-2.0"
] | null | null | null |
AdaIN.py
|
QinMichael/SkinLesion-StyleGAN
|
eed9ac53dc18d72391f15f4550416b821df3fdd6
|
[
"Apache-2.0"
] | 1
|
2022-03-25T05:29:11.000Z
|
2022-03-25T05:29:11.000Z
|
from keras.layers import Layer
from keras import backend as K
# Adaptive Instance Normalization or Instance Normalization
class AdaInstanceNormalization(Layer):
def __init__(self,
axis=-1,
momentum=0.99,
epsilon=1e-8,
center=True,
scale=True,
**kwargs):
super(AdaInstanceNormalization, self).__init__(**kwargs)
self.axis = axis
self.momentum = momentum
self.epsilon = epsilon
self.center = center
self.scale = scale
def build(self, input_shape):
dim = input_shape[0][self.axis]
if dim is None:
raise ValueError('Axis ' + str(self.axis) + ' of '
'input tensor should have a defined dimension '
'but the layer received an input with shape ' +
str(input_shape[0]) + '.')
super(AdaInstanceNormalization, self).build(input_shape)
def call(self, inputs, training=None):
input_shape = K.int_shape(inputs[0])
reduction_axes = list(range(0, len(input_shape)))
beta = inputs[1]
gamma = inputs[2]
if self.axis is not None:
del reduction_axes[self.axis]
del reduction_axes[0]
mean = K.mean(inputs[0], reduction_axes, keepdims=True)
stddev = K.std(inputs[0], reduction_axes, keepdims=True) + self.epsilon
normed = (inputs[0] - mean) / stddev
return normed * gamma + beta
def get_config(self):
config = {
'axis': self.axis,
'momentum': self.momentum,
'epsilon': self.epsilon,
'center': self.center,
'scale': self.scale
}
base_config = super(AdaInstanceNormalization, self).get_config()
return dict(list(base_config.items()) + list(config.items()))
def compute_output_shape(self, input_shape):
return input_shape[0]
class InstanceNormalization(Layer):
def __init__(self,
axis=-1,
momentum=0.99,
epsilon=1e-8,
center=True,
scale=True,
**kwargs):
super(InstanceNormalization, self).__init__(**kwargs)
self.axis = axis
self.momentum = momentum
self.epsilon = epsilon
self.center = center
self.scale = scale
def build(self, input_shape):
dim = input_shape[0][self.axis]
if dim is None:
raise ValueError('Axis ' + str(self.axis) + ' of '
'input tensor should have a defined dimension '
'but the layer received an input with shape ' +
str(input_shape[0]) + '.')
super(InstanceNormalization, self).build(input_shape)
def call(self, inputs, training=None):
input_shape = K.int_shape(inputs[0])
reduction_axes = list(range(0, len(input_shape)))
beta = K.ones(shape=(1, inputs[1].shape[1], inputs[1].shape[2], inputs[1].shape[3]))
gamma = K.ones(shape=(1, inputs[2].shape[1], inputs[2].shape[2], inputs[2].shape[3]))
if self.axis is not None:
del reduction_axes[self.axis]
del reduction_axes[0]
mean = K.mean(inputs[0], reduction_axes, keepdims=True)
stddev = K.std(inputs[0], reduction_axes, keepdims=True) + self.epsilon
normed = (inputs[0] - mean) / stddev
return normed * gamma + normed * beta
def get_config(self):
config = {
'axis': self.axis,
'momentum': self.momentum,
'epsilon': self.epsilon,
'center': self.center,
'scale': self.scale
}
base_config = super(InstanceNormalization, self).get_config()
return dict(list(base_config.items()) + list(config.items()))
def compute_output_shape(self, input_shape):
return input_shape[0]
| 34.14876
| 103
| 0.54332
| 454
| 4,132
| 4.821586
| 0.180617
| 0.073093
| 0.030151
| 0.05482
| 0.839653
| 0.806761
| 0.806761
| 0.806761
| 0.806761
| 0.806761
| 0
| 0.0171
| 0.348984
| 4,132
| 120
| 104
| 34.433333
| 0.796654
| 0.013795
| 0
| 0.808511
| 0
| 0
| 0.062853
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.106383
| false
| 0
| 0.021277
| 0.021277
| 0.212766
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
e81eda338d4af2fbc6d7ef78c5359030b2733037
| 2,078
|
py
|
Python
|
python/packages/panacea/tests/test_read_file_group.py
|
lanl/PANACEA
|
9779bdb6dcc3be41ea7b286ae55a21bb269e0339
|
[
"BSD-3-Clause"
] | null | null | null |
python/packages/panacea/tests/test_read_file_group.py
|
lanl/PANACEA
|
9779bdb6dcc3be41ea7b286ae55a21bb269e0339
|
[
"BSD-3-Clause"
] | null | null | null |
python/packages/panacea/tests/test_read_file_group.py
|
lanl/PANACEA
|
9779bdb6dcc3be41ea7b286ae55a21bb269e0339
|
[
"BSD-3-Clause"
] | null | null | null |
import panacea.read_descriptors
import panacea.read_files
import os
import pytest
def test_read_files():
group_file_reader = panacea.read_files.ReadFiles(
os.path.dirname(os.path.abspath(__file__)),
"descriptors",
".txt",
panacea.read_descriptors.DescriptorFile,
)
group_file_reader.read()
assert group_file_reader.base == "descriptors"
assert group_file_reader.extension == ".txt"
assert len(group_file_reader.available_files) == 3
assert len(group_file_reader.files_read) == 3
expected = ["descriptors1.txt", "descriptors2.txt", "descriptors3.txt"]
assert all([a == b for a, b in zip(group_file_reader.available_files, expected)])
assert all([a == b for a, b in zip(group_file_reader.files_read, expected)])
assert group_file_reader["descriptors1.txt"].descriptors[0, 0] == 4
assert group_file_reader["descriptors2.txt"].descriptors[0, 0] == 5
assert group_file_reader["descriptors3.txt"].descriptors[0, 0] == 6
def test_read_files_selective():
group_file_reader = panacea.read_files.ReadFiles(
os.path.dirname(os.path.abspath(__file__)),
"descriptors",
".txt",
panacea.read_descriptors.DescriptorFile,
)
# Only selectively read
group_file_reader.read(2, 4)
assert group_file_reader.base == "descriptors"
assert group_file_reader.extension == ".txt"
assert len(group_file_reader.available_files) == 3
assert len(group_file_reader.files_read) == 2
expected = ["descriptors1.txt", "descriptors2.txt", "descriptors3.txt"]
expected_read = ["descriptors2.txt", "descriptors3.txt"]
assert all([a == b for a, b in zip(group_file_reader.available_files, expected)])
assert all([a == b for a, b in zip(group_file_reader.files_read, expected_read)])
assert group_file_reader["descriptors2.txt"].descriptors[0, 0] == 5
assert group_file_reader["descriptors3.txt"].descriptors[0, 0] == 6
assert group_file_reader.indices_files_read[0] == 2
assert group_file_reader.indices_files_read[1] == 3
| 34.633333
| 85
| 0.709817
| 279
| 2,078
| 5.003584
| 0.157706
| 0.148281
| 0.247135
| 0.165473
| 0.833811
| 0.826648
| 0.826648
| 0.719198
| 0.719198
| 0.719198
| 0
| 0.021991
| 0.168431
| 2,078
| 59
| 86
| 35.220339
| 0.78588
| 0.010106
| 0
| 0.571429
| 0
| 0
| 0.130414
| 0
| 0
| 0
| 0
| 0
| 0.452381
| 1
| 0.047619
| false
| 0
| 0.095238
| 0
| 0.142857
| 0
| 0
| 0
| 0
| null | 0
| 1
| 1
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 9
|
1c44dce31e003e663b608bdf55046a067adb45b9
| 6,765
|
py
|
Python
|
fonts/connect3d_infineon_8x16.py
|
ccccmagicboy/st7735_mpy
|
b15f1bde69fbe6e0eb4931c57e71c136d8e7f024
|
[
"MIT"
] | 6
|
2020-07-11T16:59:19.000Z
|
2021-07-16T19:32:49.000Z
|
ports/esp32/user_modules/st7735_mpy/fonts/connect3d_infineon_8x16.py
|
d4niele/micropython
|
a1f7b37d392bf46b28045ce215ae899fda8d8c38
|
[
"MIT"
] | 1
|
2020-04-14T03:14:45.000Z
|
2020-04-14T03:14:45.000Z
|
fonts/connect3d_infineon_8x16.py
|
ccccmagicboy/st7735_mpy
|
b15f1bde69fbe6e0eb4931c57e71c136d8e7f024
|
[
"MIT"
] | null | null | null |
"""converted from ..\fonts\Connect3d_Infineon_8x16.bin """
WIDTH = 8
HEIGHT = 16
FIRST = 0x20
LAST = 0x7f
_FONT =\
b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'\
b'\x00\x00\x18\x3c\x3c\x3c\x3c\x18\x18\x00\x18\x18\x00\x00\x00\x00'\
b'\x00\x36\x36\x36\x36\x14\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'\
b'\x00\x00\x6c\x6c\x6c\xfe\x6c\x6c\xfe\x6c\x6c\x6c\x00\x00\x00\x00'\
b'\x00\x00\x18\x18\x7c\xc6\xc0\x78\x3c\x06\xc6\x7c\x18\x18\x00\x00'\
b'\x00\x00\x00\x00\x00\x62\x66\x0c\x18\x30\x66\xc6\x00\x00\x00\x00'\
b'\x00\x00\x38\x6c\x38\x30\x76\x7e\xcc\xcc\xcc\x76\x00\x00\x00\x00'\
b'\x00\x0c\x0c\x0c\x18\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'\
b'\x00\x00\x0c\x18\x30\x30\x30\x30\x30\x30\x18\x0c\x00\x00\x00\x00'\
b'\x00\x00\x30\x18\x0c\x0c\x0c\x0c\x0c\x0c\x18\x30\x00\x00\x00\x00'\
b'\x00\x00\x00\x00\x00\x6c\x38\xfe\x38\x6c\x00\x00\x00\x00\x00\x00'\
b'\x00\x00\x00\x00\x00\x18\x18\x7e\x18\x18\x00\x00\x00\x00\x00\x00'\
b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x0c\x0c\x0c\x18\x00\x00\x00'\
b'\x00\x00\x00\x00\x00\x00\x00\xfe\x00\x00\x00\x00\x00\x00\x00\x00'\
b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x18\x18\x00\x00\x00\x00'\
b'\x00\x00\x00\x00\x02\x06\x0c\x18\x30\x60\xc0\x80\x00\x00\x00\x00'\
b'\x00\x00\x7c\xc6\xc6\xce\xde\xf6\xe6\xc6\xc6\x7c\x00\x00\x00\x00'\
b'\x00\x00\x18\x78\x18\x18\x18\x18\x18\x18\x18\x7e\x00\x00\x00\x00'\
b'\x00\x00\x7c\xc6\xc6\x06\x0c\x18\x30\x60\xc6\xfe\x00\x00\x00\x00'\
b'\x00\x00\x7c\xc6\x06\x06\x3c\x06\x06\x06\xc6\x7c\x00\x00\x00\x00'\
b'\x00\x00\x0c\x1c\x3c\x6c\xcc\xcc\xfe\x0c\x0c\x1e\x00\x00\x00\x00'\
b'\x00\x00\xfe\xc0\xc0\xc0\xfc\x06\x06\x06\xc6\x7c\x00\x00\x00\x00'\
b'\x00\x00\x7c\xc6\xc0\xc0\xfc\xc6\xc6\xc6\xc6\x7c\x00\x00\x00\x00'\
b'\x00\x00\xfe\xc6\x06\x0c\x18\x30\x30\x30\x30\x30\x00\x00\x00\x00'\
b'\x00\x00\x7c\xc6\xc6\xc6\x7c\xc6\xc6\xc6\xc6\x7c\x00\x00\x00\x00'\
b'\x00\x00\x7c\xc6\xc6\xc6\xc6\x7e\x06\x06\xc6\x7c\x00\x00\x00\x00'\
b'\x00\x00\x00\x00\x00\x0c\x0c\x00\x00\x0c\x0c\x00\x00\x00\x00\x00'\
b'\x00\x00\x00\x00\x00\x0c\x0c\x00\x00\x0c\x0c\x0c\x18\x00\x00\x00'\
b'\x00\x00\x00\x0c\x18\x30\x60\xc0\x60\x30\x18\x0c\x00\x00\x00\x00'\
b'\x00\x00\x00\x00\x00\x00\xfe\x00\xfe\x00\x00\x00\x00\x00\x00\x00'\
b'\x00\x00\x00\x60\x30\x18\x0c\x06\x0c\x18\x30\x60\x00\x00\x00\x00'\
b'\x00\x00\x7c\xc6\xc6\x0c\x18\x18\x18\x00\x18\x18\x00\x00\x00\x00'\
b'\x00\x00\x7c\xc6\xc6\xc6\xde\xde\xde\xdc\xc0\x7e\x00\x00\x00\x00'\
b'\x00\x00\x38\x6c\xc6\xc6\xc6\xfe\xc6\xc6\xc6\xc6\x00\x00\x00\x00'\
b'\x00\x00\xfc\x66\x66\x66\x7c\x66\x66\x66\x66\xfc\x00\x00\x00\x00'\
b'\x00\x00\x3c\x66\xc2\xc0\xc0\xc0\xc0\xc2\x66\x3c\x00\x00\x00\x00'\
b'\x00\x00\xf8\x6c\x66\x66\x66\x66\x66\x66\x6c\xf8\x00\x00\x00\x00'\
b'\x00\x00\xfe\x66\x60\x64\x7c\x64\x60\x60\x66\xfe\x00\x00\x00\x00'\
b'\x00\x00\xfe\x66\x60\x64\x7c\x64\x60\x60\x60\xf0\x00\x00\x00\x00'\
b'\x00\x00\x7c\xc6\xc6\xc0\xc0\xc0\xce\xc6\xc6\x7c\x00\x00\x00\x00'\
b'\x00\x00\xc6\xc6\xc6\xc6\xfe\xc6\xc6\xc6\xc6\xc6\x00\x00\x00\x00'\
b'\x00\x00\x3c\x18\x18\x18\x18\x18\x18\x18\x18\x3c\x00\x00\x00\x00'\
b'\x00\x00\x3c\x18\x18\x18\x18\x18\x18\xd8\xd8\x70\x00\x00\x00\x00'\
b'\x00\x00\xc6\xc6\xcc\xd8\xf0\xf0\xd8\xcc\xc6\xc6\x00\x00\x00\x00'\
b'\x00\x00\xf0\x60\x60\x60\x60\x60\x60\x62\x66\xfe\x00\x00\x00\x00'\
b'\x00\x00\xc6\xc6\xee\xee\xfe\xd6\xd6\xd6\xc6\xc6\x00\x00\x00\x00'\
b'\x00\x00\xc6\xc6\xe6\xe6\xf6\xde\xce\xce\xc6\xc6\x00\x00\x00\x00'\
b'\x00\x00\x7c\xc6\xc6\xc6\xc6\xc6\xc6\xc6\xc6\x7c\x00\x00\x00\x00'\
b'\x00\x00\xfc\x66\x66\x66\x66\x7c\x60\x60\x60\xf0\x00\x00\x00\x00'\
b'\x00\x00\x7c\xc6\xc6\xc6\xc6\xc6\xc6\xd6\xd6\x7c\x06\x00\x00\x00'\
b'\x00\x00\xfc\x66\x66\x66\x7c\x78\x6c\x66\x66\xe6\x00\x00\x00\x00'\
b'\x00\x00\x7c\xc6\xc0\xc0\x70\x1c\x06\x06\xc6\x7c\x00\x00\x00\x00'\
b'\x00\x00\x7e\x5a\x18\x18\x18\x18\x18\x18\x18\x3c\x00\x00\x00\x00'\
b'\x00\x00\xc6\xc6\xc6\xc6\xc6\xc6\xc6\xc6\xc6\x7c\x00\x00\x00\x00'\
b'\x00\x00\xc6\xc6\xc6\xc6\xc6\xc6\xc6\x6c\x38\x10\x00\x00\x00\x00'\
b'\x00\x00\xc6\xc6\xc6\xd6\xd6\xd6\xfe\xee\xc6\xc6\x00\x00\x00\x00'\
b'\x00\x00\xc6\xc6\xc6\x6c\x38\x38\x6c\xc6\xc6\xc6\x00\x00\x00\x00'\
b'\x00\x00\x66\x66\x66\x66\x66\x3c\x18\x18\x18\x3c\x00\x00\x00\x00'\
b'\x00\x00\xfe\xc6\x86\x0c\x18\x30\x60\xc2\xc6\xfe\x00\x00\x00\x00'\
b'\x00\x00\x7c\x60\x60\x60\x60\x60\x60\x60\x60\x7c\x00\x00\x00\x00'\
b'\x00\x00\x00\x00\x80\xc0\x60\x30\x18\x0c\x06\x02\x00\x00\x00\x00'\
b'\x00\x00\x7c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x7c\x00\x00\x00\x00'\
b'\x00\x10\x38\x6c\xc6\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'\
b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xff\x00\x00'\
b'\x00\x18\x18\x18\x0c\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'\
b'\x00\x00\x00\x00\x00\x78\x0c\x7c\xcc\xcc\xdc\x76\x00\x00\x00\x00'\
b'\x00\x00\xe0\x60\x60\x7c\x66\x66\x66\x66\x66\xfc\x00\x00\x00\x00'\
b'\x00\x00\x00\x00\x00\x7c\xc6\xc0\xc0\xc0\xc6\x7c\x00\x00\x00\x00'\
b'\x00\x00\x1c\x0c\x0c\x7c\xcc\xcc\xcc\xcc\xcc\x7e\x00\x00\x00\x00'\
b'\x00\x00\x00\x00\x00\x7c\xc6\xc6\xfe\xc0\xc6\x7c\x00\x00\x00\x00'\
b'\x00\x00\x1c\x36\x30\x30\xfc\x30\x30\x30\x30\x78\x00\x00\x00\x00'\
b'\x00\x00\x00\x00\x00\x76\xce\xc6\xc6\xce\x76\x06\xc6\x7c\x00\x00'\
b'\x00\x00\xe0\x60\x60\x7c\x66\x66\x66\x66\x66\xe6\x00\x00\x00\x00'\
b'\x00\x00\x18\x18\x00\x38\x18\x18\x18\x18\x18\x3c\x00\x00\x00\x00'\
b'\x00\x00\x0c\x0c\x00\x1c\x0c\x0c\x0c\x0c\x0c\xcc\xcc\x78\x00\x00'\
b'\x00\x00\xe0\x60\x60\x66\x66\x6c\x78\x6c\x66\xe6\x00\x00\x00\x00'\
b'\x00\x00\x18\x18\x18\x18\x18\x18\x18\x18\x18\x1c\x00\x00\x00\x00'\
b'\x00\x00\x00\x00\x00\x6c\xfe\xd6\xd6\xc6\xc6\xc6\x00\x00\x00\x00'\
b'\x00\x00\x00\x00\x00\xdc\x66\x66\x66\x66\x66\x66\x00\x00\x00\x00'\
b'\x00\x00\x00\x00\x00\x7c\xc6\xc6\xc6\xc6\xc6\x7c\x00\x00\x00\x00'\
b'\x00\x00\x00\x00\x00\xdc\x66\x66\x66\x66\x7c\x60\x60\xf0\x00\x00'\
b'\x00\x00\x00\x00\x00\x76\xcc\xcc\xcc\xcc\x7c\x0c\x0c\x1e\x00\x00'\
b'\x00\x00\x00\x00\x00\xdc\x66\x60\x60\x60\x60\xf0\x00\x00\x00\x00'\
b'\x00\x00\x00\x00\x00\x7c\xc6\xc0\x7c\x06\xc6\x7c\x00\x00\x00\x00'\
b'\x00\x00\x30\x30\x30\xfc\x30\x30\x30\x30\x36\x1c\x00\x00\x00\x00'\
b'\x00\x00\x00\x00\x00\xcc\xcc\xcc\xcc\xcc\xcc\x76\x00\x00\x00\x00'\
b'\x00\x00\x00\x00\x00\xc6\xc6\xc6\xc6\x6c\x38\x10\x00\x00\x00\x00'\
b'\x00\x00\x00\x00\x00\xc6\xc6\xd6\xd6\xd6\xfe\x6c\x00\x00\x00\x00'\
b'\x00\x00\x00\x00\x00\xc6\xc6\x6c\x38\x6c\xc6\xc6\x00\x00\x00\x00'\
b'\x00\x00\x00\x00\x00\xc6\xc6\xc6\xc6\xce\x76\x06\xc6\x7c\x00\x00'\
b'\x00\x00\x00\x00\x00\xfe\x86\x0c\x18\x30\x62\xfe\x00\x00\x00\x00'\
b'\x00\x00\x0e\x18\x18\x18\x70\x18\x18\x18\x18\x0e\x00\x00\x00\x00'\
b'\x00\x00\x18\x18\x18\x18\x00\x18\x18\x18\x18\x18\x00\x00\x00\x00'\
b'\x00\x00\x70\x18\x18\x18\x0e\x18\x18\x18\x18\x70\x00\x00\x00\x00'\
b'\x00\x00\x76\xdc\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'\
b'\x00\x00\x00\x00\x00\x10\x38\x38\x6c\x6c\xfe\x00\x00\x00\x00\x00'\
FONT = memoryview(_FONT)
| 64.428571
| 68
| 0.709978
| 1,651
| 6,765
| 2.906723
| 0.038159
| 0.667639
| 0.64701
| 0.560117
| 0.856845
| 0.808085
| 0.780579
| 0.740988
| 0.684518
| 0.632215
| 0
| 0.380773
| 0.017443
| 6,765
| 104
| 69
| 65.048077
| 0.341207
| 0.007391
| 0
| 0
| 0
| 0.941176
| 0.916058
| 0.916058
| 0
| 1
| 0.001193
| 0
| 0
| 1
| 0
| false
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 1
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 1
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 1
| 1
| 1
| null | 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 14
|
98dbf3f4dbdf07aeaabd88ffcdc27360da004b0c
| 218
|
py
|
Python
|
forest/__init__.py
|
Marghrid/Forest
|
2f1730fd7cb1e3579fcce222c67b91c5bb1aa5f4
|
[
"Apache-2.0"
] | 7
|
2020-06-24T12:14:40.000Z
|
2022-01-19T17:01:02.000Z
|
forest/__init__.py
|
Marghrid/Forest
|
2f1730fd7cb1e3579fcce222c67b91c5bb1aa5f4
|
[
"Apache-2.0"
] | null | null | null |
forest/__init__.py
|
Marghrid/Forest
|
2f1730fd7cb1e3579fcce222c67b91c5bb1aa5f4
|
[
"Apache-2.0"
] | null | null | null |
from . import decider, spec
from . import dsl
from . import enumerator
from . import generic_visitor
from . import logger
from . import synthesizer
from . import visitor
from . import stats
from . import configuration
| 21.8
| 29
| 0.784404
| 29
| 218
| 5.862069
| 0.413793
| 0.529412
| 0.2
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.169725
| 218
| 9
| 30
| 24.222222
| 0.939227
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 0
| 1
| 0
| 1
| 0
| 0
| null | 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 7
|
98e8177c3c678cc4d5e19d96398ec72468f06d8c
| 10,490
|
py
|
Python
|
mvpa_itab/script/mambo/reftep/reftep_replica_results.py
|
robbisg/mvpa_itab_wu
|
e3cdb198a21349672f601cd34381e0895fa6484c
|
[
"MIT"
] | 1
|
2022-01-12T08:59:22.000Z
|
2022-01-12T08:59:22.000Z
|
mvpa_itab/script/mambo/reftep/reftep_replica_results.py
|
robbisg/mvpa_itab_wu
|
e3cdb198a21349672f601cd34381e0895fa6484c
|
[
"MIT"
] | 46
|
2016-08-04T14:49:37.000Z
|
2022-03-09T08:47:48.000Z
|
mvpa_itab/script/mambo/reftep/reftep_replica_results.py
|
robbisg/mvpa_itab_wu
|
e3cdb198a21349672f601cd34381e0895fa6484c
|
[
"MIT"
] | null | null | null |
from scipy.io import loadmat
import h5py
import pandas as pd
import seaborn as sns
diag_kws = {'bins': 50, 'color': 'teal', 'alpha': 0.4, 'edgecolor':None}
plot_kws = {'color': 'teal', 'edgecolor': None, 'alpha': 0.1}
path = "/media/robbis/DATA/meg/reftep/derivatives/phastimate/"
columns = ['phases32', 'hjort', 'predictedyule32',
'amplitudes200', 'amplitudes32', 'mep1']
def read_channels(mat, key='chlabels'):
test = mat['chlabels']
channels = list()
for st in test[0]:
obj = mat[st]
str1 = ''.join(chr(i) for i in obj[:])
channels.append(str1)
return np.array(channels)
for i in range(9):
sub = "sub-%03d" % (i+1)
filename = os.path.join(path, sub, sub+"_space-sensor_window-500_atlas-subject_band-mu_phastimate.mat")
mat = h5py.File(filename, 'r')
vector = []
channels = read_channels(mat)
idx = np.nonzero(channels == 'C3')[0]
idx = int(idx)
for c in columns:
if 'mep' in c:
idx = int(c[-1]) - 1
data = np.log(mat['AmpsMclean'][()][idx])
#elif 'amplitude' in c:
# data = np.log(mat[c][()][idx])
else:
data = mat[c][()][idx]
vector.append(data)
vector = np.vstack(vector)
df = pd.DataFrame(vector.T, columns=columns)
sns.pairplot(df, diag_kws=diag_kws, plot_kws=plot_kws)
mat.close()
##############################################################################
task = 'phastimate'
threshold_key = 'phases32'
full_dataset = list()
for i in range(9):
sub = "sub-%03d" % (i+1)
filename = os.path.join(path, sub, sub+"_space-sensor_window-500_atlas-subject_band-mu_%s.mat" %(task))
mat = h5py.File(filename, 'r')
vector = []
channels = read_channels(mat)
idx = np.nonzero(channels == 'C3')[0]
idx = int(idx)
for c in columns:
if 'mep' in c:
idx = int(c[-1]) - 1
data = np.log(mat['AmpsMclean'][()][idx])
data /= np.mean(data) * 0.01
elif 'amplitude' in c:
data = np.log(mat[c][()][idx])
else:
data = mat[c][()][idx]
vector.append(data)
vector = np.vstack(vector)
df = pd.DataFrame(vector.T, columns=columns)
#threshold = np.mean(df[threshold_key].values) + .5*np.std(df[threshold_key].values)
threshold = np.pi * .5
mask_upper = np.abs(df[threshold_key].values) < (threshold + .2)
mask_lower = np.abs(df[threshold_key].values) > (threshold - .2)
mask_amplitude = df['amplitudes32'] > np.median(df['amplitudes32'])
mask = np.logical_and(mask_upper, mask_lower)
mask = np.logical_and(mask, mask_amplitude)
df = df.loc[mask_amplitude]
#sns.pairplot(df, diag_kws=diag_kws, plot_kws=plot_kws)
mat.close()
peak_sign = np.sign(df[threshold_key].values)
df['peak_sign'] = peak_sign
df['subject'] = (i+1) * np.ones_like(df[threshold_key].values)
negative = df[threshold_key].values < 0
positive = df[threshold_key].values > 0
t, p = ttest_ind(df.loc[negative]['mep1'], df.loc[positive]['mep1'])
print(t, p)
full_dataset.append(df)
df_full = pd.concat(full_dataset)
pl.figure()
sns.barplot(data=df_full, x='subject', y='mep1', hue='peak_sign')
################# seedstimate #####################################
path = "/media/robbis/DATA/meg/reftep/derivatives/seedstimate/"
threshold_key = 'phases32'
full_dataset = list()
columns = ['phases32',
'amplitudes200', 'amplitudes32', 'mep1']
for i in range(9):
sub = "sub-%03d" % (i+1)
filename = os.path.join(path, sub, sub+"_space-sensor_window-500_atlas-subject_band-mu_seedstimate.mat")
mat = h5py.File(filename, 'r')
vector = []
#channels = read_channels(mat)
#idx = np.nonzero(channels == 'C3')[0]
idx = 0
for c in columns:
if 'mep' in c:
idx = int(c[-1]) - 1
data = np.log(mat['AmpsMclean'][()][idx])
data /= np.mean(data) * 0.01
elif 'amplitude' in c:
data = np.log(mat[c][()][idx])
else:
data = mat[c][()][idx]
vector.append(data)
vector = np.vstack(vector)
df = pd.DataFrame(vector.T, columns=columns)
#threshold = np.mean(df[threshold_key].values) + .5*np.std(df[threshold_key].values)
threshold = np.pi * .5
mask_upper = np.abs(df[threshold_key].values) < (threshold + .35)
mask_lower = np.abs(df[threshold_key].values) > (threshold - .35)
mask_amplitude = df['amplitudes32'] > np.median(df['amplitudes32'])
mask = np.logical_and(mask_upper, mask_lower)
mask = np.logical_and(mask, mask_amplitude)
df = df.loc[mask]
sns.pairplot(df, diag_kws=diag_kws, plot_kws=plot_kws)
mat.close()
peak_sign = np.sign(df[threshold_key].values)
df['peak_sign'] = peak_sign
df['subject'] = (i+1) * np.ones_like(df[threshold_key].values)
negative = df[threshold_key].values < 0
positive = df[threshold_key].values > 0
t, p = ttest_ind(df.loc[negative]['mep1'], df.loc[positive]['mep1'])
print(t, p)
full_dataset.append(df)
df_full = pd.concat(full_dataset)
pl.figure()
sns.barplot(data=df_full, x='subject', y='mep1', hue='peak_sign')
##################### neighbours #####################à
path = "/media/robbis/DATA/meg/reftep/derivatives/phastimate/"
neighbours = ['FCC3h', 'CCP5h', 'CCP3h', 'FCC5h']
for n in neighbours:
task = 'phastimate'
threshold_key = 'phases32'
full_dataset = list()
for i in range(9):
sub = "sub-%03d" % (i+1)
filename = os.path.join(path, sub, sub+"_space-sensor_window-500_atlas-subject_band-mu_%s.mat" %(task))
mat = h5py.File(filename, 'r')
vector = []
channels = read_channels(mat)
idx = np.nonzero(channels == n)[0]
if len(idx) == 0:
continue
idx = int(idx)
for c in columns:
if 'mep' in c:
idx = int(c[-1]) - 1
data = np.log(mat['AmpsMclean'][()][idx])
data /= np.mean(data) * 0.01
elif 'amplitude' in c:
data = np.log(mat[c][()][idx])
else:
data = mat[c][()][idx]
vector.append(data)
vector = np.vstack(vector)
df = pd.DataFrame(vector.T, columns=columns)
#threshold = np.mean(df[threshold_key].values) + .5*np.std(df[threshold_key].values)
"""
threshold = np.pi * .5
mask_upper = np.abs(df[threshold_key].values) < (threshold + .2)
mask_lower = np.abs(df[threshold_key].values) > (threshold - .2)
mask_amplitude = df['amplitudes32'] > np.median(df['amplitudes32'])
mask = np.logical_and(mask_upper, mask_lower)
mask = np.logical_and(mask, mask_amplitude)
df = df.loc[mask_amplitude]
"""
#sns.pairplot(df, diag_kws=diag_kws, plot_kws=plot_kws)
mat.close()
peak_sign = np.sign(df[threshold_key].values)
df['peak_sign'] = peak_sign
df['subject'] = (i+1) * np.ones_like(df[threshold_key].values)
negative = df[threshold_key].values < 0
positive = df[threshold_key].values > 0
t, p = ttest_ind(df.loc[negative]['mep1'], df.loc[positive]['mep1'])
print(t, p)
full_dataset.append(df)
df_full = pd.concat(full_dataset)
pl.figure()
sns.barplot(data=df_full, x='subject', y='mep1', hue='peak_sign')
pl.ylim((85, 105))
########################## Selected trials ############################
path = "/media/robbis/DATA/meg/reftep/derivatives/phastimate/"
selection_fname = "/media/robbis/DATA/meg/reftep/derivatives/trial_selection.mat"
columns = ['phases32', 'hjort', 'predictedyule32',
'amplitudes200', 'amplitudes32', 'mep1']
sel_mat = loadmat(selection_fname, squeeze_me=True)
selection = [[], []]
for t in sel_mat.keys():
if t[0] != 't':
continue
trials = sel_mat[t]
subj_idx = int(t[3])
criterion = int(t[-1])
if criterion != 0:
criterion = 1
selection[criterion].append(trials)
def read_channels(mat, key='chlabels'):
test = mat['chlabels']
channels = list()
for st in test[0]:
obj = mat[st]
str1 = ''.join(chr(i) for i in obj[:])
channels.append(str1)
return np.array(channels)
threshold_key = 'phases32'
full_dataset = list()
for i in range(9):
sub = "sub-%03d" % (i+1)
filename = os.path.join(path, sub, sub+"_space-sensor_window-500_atlas-subject_band-mu_phastimate.mat")
mat = h5py.File(filename, 'r')
vector = []
channels = read_channels(mat)
idx = np.nonzero(channels == 'C3')[0]
idx = int(idx)
for c in columns:
if 'mep' in c:
idx = int(c[-1]) - 1
data = np.log(mat['AmpsMclean'][()][idx])
data /= np.mean(data) * 0.01
#elif 'amplitude' in c:
# data = np.log(mat[c][()][idx])
else:
data = mat[c][()][idx]
vector.append(data)
vector = np.vstack(vector)
df = pd.DataFrame(vector.T, columns=columns)
# sns.pairplot(df, diag_kws=diag_kws, plot_kws=plot_kws)
mat.close()
for j, trials in enumerate(selection):
subj_trials = trials[i]
df = df.loc[subj_trials]
assert df.shape[0] == len(subj_trials)
threshold = np.pi * .5
mask_upper = np.abs(df[threshold_key].values) < (threshold + .35)
mask_lower = np.abs(df[threshold_key].values) > (threshold - .35)
mask_amplitude = df['amplitudes32'] > np.median(df['amplitudes32'])
mask = np.logical_and(mask_upper, mask_lower)
mask = np.logical_and(mask, mask_amplitude)
df = df.loc[mask]
peak_sign = np.sign(df[threshold_key].values)
df['peak_sign'] = peak_sign
df['subject'] = (i+1) * np.ones_like(df[threshold_key].values)
df['selection'] = (j+1) * np.ones_like(df[threshold_key].values)
negative = df[threshold_key].values < 0
positive = df[threshold_key].values > 0
t, p = ttest_ind(df.loc[negative]['mep1'], df.loc[positive]['mep1'])
print(t, p)
full_dataset.append(df)
df_full = pd.concat(full_dataset)
pl.figure()
g = sns.catplot(x="subject", y="mep1",
hue="peak_sign", row="selection",
data=df_full, kind="bar")
sns.barplot(data=df_full, x='subject', y='mep1', hue='peak_sign')
pl.ylim((85, 105))
| 28.977901
| 111
| 0.579218
| 1,420
| 10,490
| 4.151408
| 0.117606
| 0.071247
| 0.073622
| 0.105174
| 0.888889
| 0.88855
| 0.876675
| 0.844275
| 0.819338
| 0.819338
| 0
| 0.025413
| 0.238513
| 10,490
| 362
| 112
| 28.977901
| 0.712569
| 0.060343
| 0
| 0.845494
| 0
| 0
| 0.14146
| 0.061278
| 0
| 0
| 0
| 0
| 0.004292
| 1
| 0.008584
| false
| 0
| 0.017167
| 0
| 0.034335
| 0.017167
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
c724cfa128d1b4985a040b5ba0e9d62b16e9e7c7
| 3,840
|
py
|
Python
|
roxe.cdt/roxe_llvm/utils/lit/tests/shtest-xunit-output.py
|
APFDev/actc
|
be5c1c0539d30a3745a725b0027767448ef8e1f6
|
[
"MIT"
] | 5
|
2021-01-13T03:34:00.000Z
|
2021-09-09T05:42:18.000Z
|
roxe.cdt/roxe_llvm/utils/lit/tests/shtest-xunit-output.py
|
APFDev/actc
|
be5c1c0539d30a3745a725b0027767448ef8e1f6
|
[
"MIT"
] | 1
|
2020-05-16T06:30:28.000Z
|
2020-05-16T06:37:55.000Z
|
roxe.cdt/roxe_llvm/utils/lit/tests/shtest-xunit-output.py
|
APFDev/actc
|
be5c1c0539d30a3745a725b0027767448ef8e1f6
|
[
"MIT"
] | 6
|
2020-01-06T11:18:54.000Z
|
2020-01-07T09:32:18.000Z
|
# RUN: rm -f %t.xml
# RUN: not %{lit} -j 1 -v %{inputs}/shtest-format --xunit-xml-output %t.xml
# RUN: FileCheck < %t.xml %s
# CHECK: <?xml version="1.0" encoding="UTF-8" ?>
# CHECK-NEXT: <testsuites>
# CHECK-NEXT: <testsuite name="shtest-format" tests="23" failures="7" skipped="5">
# CHECK: <testcase classname="shtest-format.shtest-format" name="argv0.txt" time="{{[0-9]+\.[0-9]+}}"/>
# CHECK: <testcase classname="shtest-format.external_shell" name="fail.txt" time="{{[0-9]+\.[0-9]+}}">
# CHECK-NEXT: <failure{{[ ]*}}>
# CHECK: </failure>
# CHECK-NEXT: </testcase>
# CHECK: <testcase classname="shtest-format.external_shell" name="fail_with_bad_encoding.txt" time="{{[0-9]+\.[0-9]+}}">
# CHECK-NEXT: <failure{{[ ]*}}>
# CHECK: </failure>
# CHECK-NEXT: </testcase>
# CHECK: <testcase classname="shtest-format.external_shell" name="pass.txt" time="{{[0-9]+\.[0-9]+}}"/>
# CHECK: <testcase classname="shtest-format.shtest-format" name="fail.txt" time="{{[0-9]+\.[0-9]+}}">
# CHECK-NEXT: <failure{{[ ]*}}>
# CHECK: </failure>
# CHECK-NEXT: </testcase>
# CHECK: <testcase classname="shtest-format.shtest-format" name="no-test-line.txt" time="{{[0-9]+\.[0-9]+}}">
# CHECK-NEXT: <failure{{[ ]*}}>
# CHECK: </failure>
# CHECK-NEXT: </testcase>
# CHECK: <testcase classname="shtest-format.shtest-format" name="pass.txt" time="{{[0-9]+\.[0-9]+}}"/>
# CHECK: <testcase classname="shtest-format.shtest-format" name="requires-any-missing.txt" time="{{[0-9]+\.[0-9]+}}">
# CHECK-NEXT:<skipped message="Skipping because of: a-missing-feature || a-missing-feature-2" />
# CHECK: <testcase classname="shtest-format.shtest-format" name="requires-any-present.txt" time="{{[0-9]+\.[0-9]+}}"/>
# CHECK: <testcase classname="shtest-format.shtest-format" name="requires-missing.txt" time="{{[0-9]+\.[0-9]+}}">
# CHECK-NEXT:<skipped message="Skipping because of: a-missing-feature" />
# CHECK: <testcase classname="shtest-format.shtest-format" name="requires-present.txt" time="{{[0-9]+\.[0-9]+}}"/>
# CHECK: <testcase classname="shtest-format.shtest-format" name="requires-star.txt" time="{{[0-9]+\.[0-9]+}}">
# CHECK-NEXT: <failure{{[ ]*}}>
# CHECK: </failure>
# CHECK-NEXT: </testcase>
# CHECK: <testcase classname="shtest-format.shtest-format" name="requires-triple.txt" time="{{[0-9]+\.[0-9]+}}">
# CHECK-NEXT:<skipped message="Skipping because of: x86_64" />
# CHECK: <testcase classname="shtest-format.shtest-format" name="unsupported-expr-false.txt" time="{{[0-9]+\.[0-9]+}}"/>
# CHECK: <testcase classname="shtest-format.shtest-format" name="unsupported-expr-true.txt" time="{{[0-9]+\.[0-9]+}}">
# CHECK-NEXT:<skipped message="Skipping because of configuration." />
# CHECK: <testcase classname="shtest-format.shtest-format" name="unsupported-star.txt" time="{{[0-9]+\.[0-9]+}}">
# CHECK-NEXT: <failure{{[ ]*}}>
# CHECK: </failure>
# CHECK-NEXT: </testcase>
# CHECK: <testcase classname="shtest-format.unsupported_dir" name="some-test.txt" time="{{[0-9]+\.[0-9]+}}">
# CHECK-NEXT:<skipped message="Skipping because of configuration." />
# CHECK: <testcase classname="shtest-format.shtest-format" name="xfail-expr-false.txt" time="{{[0-9]+\.[0-9]+}}"/>
# CHECK: <testcase classname="shtest-format.shtest-format" name="xfail-expr-true.txt" time="{{[0-9]+\.[0-9]+}}"/>
# CHECK: <testcase classname="shtest-format.shtest-format" name="xfail-feature.txt" time="{{[0-9]+\.[0-9]+}}"/>
# CHECK: <testcase classname="shtest-format.shtest-format" name="xfail-target.txt" time="{{[0-9]+\.[0-9]+}}"/>
# CHECK: <testcase classname="shtest-format.shtest-format" name="xfail.txt" time="{{[0-9]+\.[0-9]+}}"/>
# CHECK: <testcase classname="shtest-format.shtest-format" name="xpass.txt" time="{{[0-9]+\.[0-9]+}}">
# CHECK-NEXT: <failure{{[ ]*}}>
# CHECK: </failure>
# CHECK-NEXT: </testcase>
# CHECK: </testsuite>
# CHECK-NEXT: </testsuites>
| 45.176471
| 120
| 0.647396
| 527
| 3,840
| 4.702087
| 0.140417
| 0.037127
| 0.204197
| 0.259887
| 0.874899
| 0.874899
| 0.874899
| 0.874899
| 0.854722
| 0.813559
| 0
| 0.030071
| 0.082031
| 3,840
| 84
| 121
| 45.714286
| 0.672908
| 0.963021
| 0
| null | 0
| null | 0
| 0
| null | 0
| 0
| 0
| null | 1
| null | true
| 0
| 0
| null | null | null | 0
| 0
| 0
| null | 0
| 1
| 1
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
|
0
| 10
|
c774b17d455a09b3a1f82f4a89390b1b9326f8b6
| 97
|
py
|
Python
|
Files for Lab 8/lab8ex3.py
|
lifeplay2019/ECOR1051-project
|
fbd0ed3651adc2cfc4dca06d155a03fb9fcfb3f3
|
[
"MIT"
] | null | null | null |
Files for Lab 8/lab8ex3.py
|
lifeplay2019/ECOR1051-project
|
fbd0ed3651adc2cfc4dca06d155a03fb9fcfb3f3
|
[
"MIT"
] | null | null | null |
Files for Lab 8/lab8ex3.py
|
lifeplay2019/ECOR1051-project
|
fbd0ed3651adc2cfc4dca06d155a03fb9fcfb3f3
|
[
"MIT"
] | null | null | null |
def great_42(a: int, b: int) -> bool:
return(42 == a or 42 ==b or 42 ==(a+b) or 42 == (a-b))
| 48.5
| 58
| 0.505155
| 22
| 97
| 2.181818
| 0.409091
| 0.25
| 0.208333
| 0.25
| 0.270833
| 0
| 0
| 0
| 0
| 0
| 0
| 0.136986
| 0.247423
| 97
| 2
| 58
| 48.5
| 0.520548
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.5
| false
| 0
| 0
| 0.5
| 0.5
| 0
| 1
| 0
| 0
| null | 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 1
| 0
| 0
|
0
| 7
|
c7cd83ed9079b6209baf9d126124ca3f7b37039c
| 370
|
py
|
Python
|
Codewars/8kyu/geometry-basics-circle-circumference-in-2d/Python/test.py
|
RevansChen/online-judge
|
ad1b07fee7bd3c49418becccda904e17505f3018
|
[
"MIT"
] | 7
|
2017-09-20T16:40:39.000Z
|
2021-08-31T18:15:08.000Z
|
Codewars/8kyu/geometry-basics-circle-circumference-in-2d/Python/test.py
|
RevansChen/online-judge
|
ad1b07fee7bd3c49418becccda904e17505f3018
|
[
"MIT"
] | null | null | null |
Codewars/8kyu/geometry-basics-circle-circumference-in-2d/Python/test.py
|
RevansChen/online-judge
|
ad1b07fee7bd3c49418becccda904e17505f3018
|
[
"MIT"
] | null | null | null |
# Python - 3.6.0
test.assert_equals(round(circle_circumference(Circle(Point(10, 10), 30)), 6), 188.495559)
test.assert_equals(round(circle_circumference(Circle(Point(25, -70), 30)), 6), 188.495559)
test.assert_equals(round(circle_circumference(Circle(Point(-15, 5), 0)), 6), 0)
test.assert_equals(round(circle_circumference(Circle(Point(-15, 5), 12.5)), 6), 78.539816)
| 52.857143
| 90
| 0.740541
| 60
| 370
| 4.433333
| 0.366667
| 0.150376
| 0.240602
| 0.315789
| 0.894737
| 0.894737
| 0.894737
| 0.894737
| 0.894737
| 0.894737
| 0
| 0.162319
| 0.067568
| 370
| 6
| 91
| 61.666667
| 0.608696
| 0.037838
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| 0
| true
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 1
| 1
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
|
0
| 11
|
c7f527ddbb71718b51d95996a6850a152fadedbf
| 8,267
|
py
|
Python
|
ppdpy/tests/test_template_compiler.py
|
vkinoshita/ppdpy
|
f22e2ee4f7f01e98e3ebf3e3a426333f22fedd39
|
[
"MIT"
] | null | null | null |
ppdpy/tests/test_template_compiler.py
|
vkinoshita/ppdpy
|
f22e2ee4f7f01e98e3ebf3e3a426333f22fedd39
|
[
"MIT"
] | null | null | null |
ppdpy/tests/test_template_compiler.py
|
vkinoshita/ppdpy
|
f22e2ee4f7f01e98e3ebf3e3a426333f22fedd39
|
[
"MIT"
] | null | null | null |
from unittest import TestCase
from ppdpy import renders
from ppdpy.exceptions import ExpressionSyntaxError, DirectiveSyntaxError
from ppdpy.nodes import *
class TestTemplates(TestCase):
def test(self):
self.assertEqual(renders('foobar', set()), 'foobar')
self.assertEqual(renders('foobar\n', set()), 'foobar\n')
template = """
foobar
"""
self.assertEqual(renders(template, set()), template)
template = """
line1
line2
line3
"""
self.assertEqual(renders(template, set()), template)
template = """
Lorem ipsum dolor sit amet, consectetur adipiscing elit. In euismod metus sed
lacus sagittis, vitae egestas ipsum congue. Vestibulum vehicula consectetur
aliquet. Aenean tincidunt, mi vel pulvinar ullamcorper, sem velit bibendum
velit, a condimentum purus lorem vitae lectus.
Phasellus enim augue, maximus sit amet felis non, varius egestas erat. Nunc
ornare tempor imperdiet. Quisque ultrices efficitur nunc, in iaculis mauris
iaculis dapibus.
Vivamus sit amet pellentesque eros. Nulla facilisi. Morbi nec urna lacus.
Phasellus interdum mauris porta, vehicula neque quis, accumsan nunc. Nullam a
purus mi. Sed ultricies vulputate massa, non tincidunt nibh molestie quis.
"""
self.assertEqual(renders(template, set()), template)
def test_if(self):
template = """
line 1
#if x
line 2
#endif
line 3
"""
result = """
line 1
line 2
line 3
"""
self.assertEqual(renders(template, set('x')), result)
result = """
line 1
line 3
"""
self.assertEqual(renders(template, set()), result)
self.assertEqual(renders(template, set('y')), result)
template = """
line 1
line 2
#if x
line 3
line 4
#endif
line 5
line 6
"""
result = """
line 1
line 2
line 3
line 4
line 5
line 6
"""
self.assertEqual(renders(template, set('x')), result)
result = """
line 1
line 2
line 5
line 6
"""
self.assertEqual(renders(template, set()), result)
def test_if_else(self):
template = """
line 1
#if x
line 2
#else
line 3
#endif
line 4
"""
result = """
line 1
line 2
line 4
"""
self.assertEqual(renders(template, set('x')), result)
result = """
line 1
line 3
line 4
"""
self.assertEqual(renders(template, set()), result)
def test_if_elif(self):
template = """
#if x
line 1
#elif y
line 2
#endif
"""
result = """
line 1
"""
self.assertEqual(renders(template, set('x')), result)
result = """
line 2
"""
self.assertEqual(renders(template, set('y')), result)
template = """
#if x
line 1
#elif y
line 2
#elif z
line 3
#endif
"""
result = """
line 1
"""
self.assertEqual(renders(template, set('x')), result)
result = """
line 2
"""
self.assertEqual(renders(template, set('y')), result)
result = """
line 3
"""
self.assertEqual(renders(template, set('z')), result)
def test_if_elif_else(self):
template = """
#if x
line 1
#elif y
line 2
#else
line 3
#endif
"""
result = """
line 1
"""
self.assertEqual(renders(template, set('x')), result)
result = """
line 2
"""
self.assertEqual(renders(template, set('y')), result)
result = """
line 3
"""
self.assertEqual(renders(template, set()), result)
def test_empty_if_elif_else(self):
template = """line 1
#if x
#elif y
#else
#endif
"""
result = """line 1
"""
self.assertEqual(renders(template, set('x')), result)
self.assertEqual(renders(template, set('y')), result)
self.assertEqual(renders(template, set()), result)
def test_if_expr(self):
template = """
#if x and (y or z)
line 1
#else
line 2
#endif
"""
result = """
line 1
"""
self.assertEqual(renders(template, {'x', 'y', 'z'}), result)
self.assertEqual(renders(template, {'x', 'y'}), result)
self.assertEqual(renders(template, {'x', 'z'}), result)
result = """
line 2
"""
self.assertEqual(renders(template, set()), result)
self.assertEqual(renders(template, set('x')), result)
self.assertEqual(renders(template, set('y')), result)
self.assertEqual(renders(template, set('z')), result)
self.assertEqual(renders(template, {'y', 'z'}), result)
template = """
#if x and y
line 1
#elif x or y
line 2
#else
line 3
#endif
"""
result = """
line 1
"""
self.assertEqual(renders(template, {'x', 'y'}), result)
result = """
line 2
"""
self.assertEqual(renders(template, {'x'}), result)
self.assertEqual(renders(template, {'y'}), result)
result = """
line 3
"""
self.assertEqual(renders(template, set()), result)
self.assertEqual(renders(template, set('z')), result)
def test_if_case_insensitive(self):
template = """
#IF x AND y
line 1
#ELIF x OR y
line 2
#ELSE
line 3
#ENDIF
"""
result = """
line 1
"""
self.assertEqual(renders(template, {'x', 'y'}), result)
result = """
line 2
"""
self.assertEqual(renders(template, {'x'}), result)
self.assertEqual(renders(template, {'y'}), result)
result = """
line 3
"""
self.assertEqual(renders(template, set()), result)
self.assertEqual(renders(template, set('z')), result)
def test_nested_if(self):
template = """
#if x
line 1
#if y
line 2
#else
line 3
#endif
line 4
#endif
"""
result = """
line 1
line 3
line 4
"""
self.assertEqual(renders(template, set('x')), result)
result = """
line 1
line 2
line 4
"""
self.assertEqual(renders(template, {'x', 'y'}), result)
template = """
line 1
#if x
#if y
#else
#endif
#else
#endif
"""
result = "\nline 1\n"
self.assertEqual(renders(template, {'x', 'y'}), result)
self.assertEqual(renders(template, {'y'}), result)
self.assertEqual(renders(template, {'y'}), result)
self.assertEqual(renders(template, {}), result)
def test_error(self):
template = """
#if foo
"""
with self.assertRaises(DirectiveSyntaxError):
self.assertEqual(renders(template, {'foo'}), '')
template = """
#if
#endif
"""
with self.assertRaises(DirectiveSyntaxError):
self.assertEqual(renders(template, {'foo'}), '')
template = """
#if
#endif
"""
with self.assertRaises(DirectiveSyntaxError):
self.assertEqual(renders(template, {'foo'}), '')
template = """
#if foo and
#endif
"""
with self.assertRaises(ExpressionSyntaxError):
self.assertEqual(renders(template, {'foo'}), '')
template = """
#if foo
#else
"""
with self.assertRaises(DirectiveSyntaxError):
self.assertEqual(renders(template, {'foo'}), '')
template = """
#if foo
#elif bar
"""
with self.assertRaises(DirectiveSyntaxError):
self.assertEqual(renders(template, {'foo'}), '')
template = """
line 1
#if foo
#elif
#endif
"""
with self.assertRaises(DirectiveSyntaxError):
self.assertEqual(renders(template, {'foo'}), '')
template = """
line 1
#if foo
#elif
#endif
"""
with self.assertRaises(DirectiveSyntaxError):
self.assertEqual(renders(template, {'foo'}), '')
template = """
line 1
#if foo
#elif bar
#else
"""
with self.assertRaises(DirectiveSyntaxError):
self.assertEqual(renders(template, {'foo'}), '')
template = """
line 1
#if foo
#if foo
#endif
"""
with self.assertRaises(DirectiveSyntaxError):
self.assertEqual(renders(template, {'foo'}), '')
template = """
line 1
#if foo
#if foo
#else
#endif
"""
with self.assertRaises(DirectiveSyntaxError):
self.assertEqual(renders(template, {'foo'}), '')
template = """
line 1
#if foo
#if foo
#elif
#endif
"""
with self.assertRaises(DirectiveSyntaxError):
self.assertEqual(renders(template, {'foo'}), '')
template = """
line 1
#if foo
#if foo
#elif
#else
#endif
"""
with self.assertRaises(DirectiveSyntaxError):
self.assertEqual(renders(template, {'foo'}), '')
| 19.590047
| 77
| 0.594774
| 958
| 8,267
| 5.111691
| 0.126305
| 0.183786
| 0.269553
| 0.35532
| 0.778027
| 0.770063
| 0.744946
| 0.708801
| 0.674495
| 0.646518
| 0
| 0.014556
| 0.252087
| 8,267
| 421
| 78
| 19.63658
| 0.777454
| 0
| 0
| 0.879357
| 0
| 0
| 0.25632
| 0
| 0
| 0
| 0
| 0
| 0.19571
| 1
| 0.02681
| false
| 0
| 0.010724
| 0
| 0.040214
| 0
| 0
| 0
| 0
| null | 0
| 1
| 1
| 0
| 1
| 1
| 1
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
1bec9016c5b81e037e93f225c88f28dac455a820
| 6,890
|
py
|
Python
|
mayan/apps/sources/wizards.py
|
CMU-313/fall-2021-hw2-a-mama
|
e3f47342e8055ad6f38fdfde6811a1157a5c07a7
|
[
"Apache-2.0"
] | null | null | null |
mayan/apps/sources/wizards.py
|
CMU-313/fall-2021-hw2-a-mama
|
e3f47342e8055ad6f38fdfde6811a1157a5c07a7
|
[
"Apache-2.0"
] | 11
|
2021-09-13T00:18:56.000Z
|
2021-10-02T03:47:07.000Z
|
mayan/apps/sources/wizards.py
|
CMU-313/fall-2021-hw2-a-mama
|
e3f47342e8055ad6f38fdfde6811a1157a5c07a7
|
[
"Apache-2.0"
] | 1
|
2021-09-26T20:36:50.000Z
|
2021-09-26T20:36:50.000Z
|
from furl import furl
from django import forms
from django.apps import apps
from django.contrib import messages
from django.http import HttpResponseRedirect
from django.urls import reverse
from django.utils.decorators import classonlymethod
from django.utils.translation import ugettext_lazy as _
from formtools.wizard.views import SessionWizardView
from .classes import DocumentCreateWizardStep
from .icons import icon_wizard_submit
class DocumentCreateWizard(SessionWizardView):
template_name = 'appearance/generic_wizard.html'
@classonlymethod
def as_view(cls, *args, **kwargs):
# SessionWizardView needs at least one form in order to be
# initialized as a view. Declare one empty form and then change the
# form list in the .dispatch() method.
class EmptyForm(forms.Form):
"""Empty form"""
cls.form_list = [EmptyForm]
return super().as_view(*args, **kwargs)
def dispatch(self, request, *args, **kwargs):
InteractiveSource = apps.get_model(
app_label='sources', model_name='InteractiveSource'
)
form_list = DocumentCreateWizardStep.get_choices(attribute_name='form_class')
condition_dict = dict(
DocumentCreateWizardStep.get_choices(attribute_name='condition')
)
result = self.__class__.get_initkwargs(
condition_dict=condition_dict, form_list=form_list
)
self.form_list = result['form_list']
self.condition_dict = result['condition_dict']
if not InteractiveSource.objects.filter(enabled=True).exists():
messages.error(
message=_(
'No interactive document sources have been defined or '
'none have been enabled, create one before proceeding.'
),
request=request
)
return HttpResponseRedirect(
redirect_to=reverse(viewname='sources:setup_source_list')
)
return super().dispatch(request, *args, **kwargs)
def get_context_data(self, form, **kwargs):
context = super().get_context_data(form=form, **kwargs)
wizard_step = DocumentCreateWizardStep.get(name=self.steps.current)
context.update(
{
'form_css_classes': 'form-hotkey-double-click',
'step_title': _(
'Step %(step)d of %(total_steps)d: %(step_label)s'
) % {
'step': self.steps.step1, 'total_steps': len(self.form_list),
'step_label': wizard_step.label,
},
'submit_label': _('Next step'),
'submit_icon': icon_wizard_submit,
'title': _('Document upload wizard'),
'wizard_step': wizard_step,
'wizard_steps': DocumentCreateWizardStep.get_all(),
}
)
return context
def get_form_initial(self, step):
return DocumentCreateWizardStep.get(name=step).get_form_initial(wizard=self) or {}
def get_form_kwargs(self, step):
return DocumentCreateWizardStep.get(name=step).get_form_kwargs(wizard=self) or {}
def done(self, form_list, **kwargs):
query_dict = {}
for step in DocumentCreateWizardStep.get_all():
query_dict.update(step.done(wizard=self) or {})
url = furl(reverse(viewname='sources:document_upload_interactive'))
# Use equal and not .update() to get the same result as using
# urlencode(doseq=True)
url.args = query_dict
return HttpResponseRedirect(redirect_to=url.tostr())
class ImportApplication(SessionWizardView):
template_name = 'appearance/generic_wizard.html'
@classonlymethod
def as_view(cls, *args, **kwargs):
# SessionWizardView needs at least one form in order to be
# initialized as a view. Declare one empty form and then change the
# form list in the .dispatch() method.
class EmptyForm(forms.Form):
"""Empty form"""
cls.form_list = [EmptyForm]
return super().as_view(*args, **kwargs)
def dispatch(self, request, *args, **kwargs):
InteractiveSource = apps.get_model(
app_label='sources', model_name='InteractiveSource'
)
form_list = DocumentCreateWizardStep.get_choices(attribute_name='form_class')
condition_dict = dict(
DocumentCreateWizardStep.get_choices(attribute_name='condition')
)
result = self.__class__.get_initkwargs(
condition_dict=condition_dict, form_list=form_list
)
self.form_list = result['form_list']
self.condition_dict = result['condition_dict']
if not InteractiveSource.objects.filter(enabled=True).exists():
messages.error(
message=_(
'No interactive document sources have been defined or '
'none have been enabled, create one before proceeding.'
),
request=request
)
return HttpResponseRedirect(
redirect_to=reverse(viewname='sources:setup_source_list')
)
return super().dispatch(request, *args, **kwargs)
def get_context_data(self, form, **kwargs):
context = super().get_context_data(form=form, **kwargs)
wizard_step = DocumentCreateWizardStep.get(name=self.steps.current)
context.update(
{
'form_css_classes': 'form-hotkey-double-click',
'step_title': _(
'Step %(step)d of %(total_steps)d: %(step_label)s'
) % {
'step': self.steps.step1, 'total_steps': len(self.form_list),
'step_label': wizard_step.label,
},
'submit_label': _('Next step'),
'submit_icon': icon_wizard_submit,
'title': _('Import Applications'),
'wizard_step': wizard_step,
'wizard_steps': DocumentCreateWizardStep.get_all(),
}
)
return context
def get_form_initial(self, step):
return DocumentCreateWizardStep.get(name=step).get_form_initial(wizard=self) or {}
def get_form_kwargs(self, step):
return DocumentCreateWizardStep.get(name=step).get_form_kwargs(wizard=self) or {}
def done(self, form_list, **kwargs):
query_dict = {}
for step in DocumentCreateWizardStep.get_all():
query_dict.update(step.done(wizard=self) or {})
url = furl(reverse(viewname='sources:document_upload_interactive'))
# Use equal and not .update() to get the same result as using
# urlencode(doseq=True)
url.args = query_dict
return HttpResponseRedirect(redirect_to=url.tostr())
| 36.648936
| 90
| 0.619013
| 729
| 6,890
| 5.644719
| 0.185185
| 0.034994
| 0.017497
| 0.041798
| 0.888943
| 0.888943
| 0.888943
| 0.888943
| 0.888943
| 0.888943
| 0
| 0.000405
| 0.283454
| 6,890
| 187
| 91
| 36.84492
| 0.833097
| 0.07344
| 0
| 0.759124
| 0
| 0
| 0.146292
| 0.035827
| 0
| 0
| 0
| 0
| 0
| 1
| 0.087591
| false
| 0
| 0.094891
| 0.029197
| 0.328467
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
400e7e18eca724d49fd8cafd47a7be47e3d265d8
| 2,919
|
py
|
Python
|
mountdrive3.py
|
Omaromar2255/4433
|
6c9e7b239ef4dc3708c8925d31d97cdc76022e8c
|
[
"Unlicense"
] | null | null | null |
mountdrive3.py
|
Omaromar2255/4433
|
6c9e7b239ef4dc3708c8925d31d97cdc76022e8c
|
[
"Unlicense"
] | null | null | null |
mountdrive3.py
|
Omaromar2255/4433
|
6c9e7b239ef4dc3708c8925d31d97cdc76022e8c
|
[
"Unlicense"
] | null | null | null |
from selenium import webdriver
from selenium.webdriver.chrome.options import Options
from fake_useragent import UserAgent
import time
options = Options()
ua = UserAgent()
userAgent = ua.random
print(userAgent)
options.add_argument(f'user-agent=Mozilla/5.0 (Linux; Android 10; OnePlus Nord) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.120 Mobile Safari/537.36')
driver = webdriver.Chrome(chrome_options=options, executable_path=r'./chromedriver')
driver.get('https://t.co/ZCqZK38WxU')
time.sleep(2000)
options = Options()
ua = UserAgent()
userAgent = ua.random
print(userAgent)
options.add_argument(f'user-agent=Mozilla/5.0 (Linux; Android 12; SM-G998B Build/PPR1.180610.011) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/94.0.3396.87 Mobile Safari/537.36')
driver = webdriver.Chrome(chrome_options=options, executable_path=r'./chromedriver')
driver.get('https://www.google.com/url?sa=t&rct=j&q=&esrc=s&source=web&cd=&cad=rja&uact=8&ved=2ahUKEwiph7W445P1AhVpn-AKHWh7C5kQtwJ6BAgDEAI&url=https%3A%2F%2Fwww.dailymotion.com%2Fplaylist%2Fx7c2rc&usg=AOvVaw2jE3x60yyMyTNOXRle8zn_')
time.sleep(1500)
options = Options()
ua = UserAgent()
userAgent = ua.random
print(userAgent)
options.add_argument(f'user-agent=Mozilla/5.0 (iPhone; CPU iPhone OS 12_0 like Mac OS X) AppleWebKit/603.1.30 (KHTML, like Gecko) Version/12.0.0 Mobile/15A5370a Safari/602.1')
driver = webdriver.Chrome(chrome_options=options, executable_path=r'./chromedriver')
driver.get('https://t.co/ZCqZK38WxU')
time.sleep(3000)
options = Options()
ua = UserAgent()
userAgent = ua.random
print(userAgent)
options.add_argument(f'user-agent=Mozilla/5.0 (Linux; Android 11; SM-T970) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/94.0.3282.137 Safari/537.36')
driver = webdriver.Chrome(chrome_options=options, executable_path=r'./chromedriver')
driver.get('https://t.co/ZCqZK38WxU')
time.sleep(3500)
options = Options()
ua = UserAgent()
userAgent = ua.random
print(userAgent)
options.add_argument(f'user-agent=Mozilla/5.0 (iPad; CPU OS 14_0 like Mac OS X) AppleWebKit/604.1.34 (KHTML, like Gecko) Version/14.0 Mobile/15A5341f Safari/604.1')
driver = webdriver.Chrome(chrome_options=options, executable_path=r'./chromedriver')
driver.get('https://t.co/ZCqZK38WxU')
time.sleep(4500)
options = Options()
ua = UserAgent()
userAgent = ua.random
print(userAgent)
options.add_argument(f'user-agent=Mozilla/5.0 (Linux; Android 12; SAMSUNG SM-F700U/DS Build/PPR1.180610.011) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/94.0.3396.87 Mobile Safari/537.36')
driver = webdriver.Chrome(chrome_options=options, executable_path=r'./chromedriver')
driver.get('https://www.google.com/url?sa=t&rct=j&q=&esrc=s&source=web&cd=&cad=rja&uact=8&ved=2ahUKEwiph7W445P1AhVpn-AKHWh7C5kQtwJ6BAgDEAI&url=https%3A%2F%2Fwww.dailymotion.com%2Fplaylist%2Fx7c2rc&usg=AOvVaw2jE3x60yyMyTNOXRle8zn_')
time.sleep(4500)
driver.quit()
| 50.327586
| 232
| 0.766701
| 439
| 2,919
| 5.045558
| 0.259681
| 0.075847
| 0.043341
| 0.06772
| 0.842889
| 0.842889
| 0.823025
| 0.806772
| 0.806772
| 0.789165
| 0
| 0.093128
| 0.087701
| 2,919
| 57
| 233
| 51.210526
| 0.738641
| 0
| 0
| 0.716981
| 0
| 0.150943
| 0.517121
| 0.061495
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.075472
| 0
| 0.075472
| 0.113208
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
401021068ac3ab85575229be314042fc9106202a
| 162
|
py
|
Python
|
root/policies/__init__.py
|
healerkx/fregata
|
4c6a90076f5da59c9b77d85fc68b9f74ce876b8e
|
[
"Unlicense"
] | null | null | null |
root/policies/__init__.py
|
healerkx/fregata
|
4c6a90076f5da59c9b77d85fc68b9f74ce876b8e
|
[
"Unlicense"
] | null | null | null |
root/policies/__init__.py
|
healerkx/fregata
|
4c6a90076f5da59c9b77d85fc68b9f74ce876b8e
|
[
"Unlicense"
] | null | null | null |
from .base_policy import *
from .dma_policy import *
from .a1_policy import *
from .a2_policy import *
from .o1_policy import *
from .seek_candlestick import *
| 18
| 31
| 0.765432
| 24
| 162
| 4.916667
| 0.416667
| 0.508475
| 0.677966
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.022059
| 0.160494
| 162
| 8
| 32
| 20.25
| 0.845588
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 0
| 1
| 0
| 1
| 0
| 0
| null | 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 7
|
409f07e2122dcdfae90010ae32a5371ec5c4fb69
| 6,521
|
py
|
Python
|
tests/test_read_from_file.py
|
burakuyar/simple-ddl-parser
|
f5714e0947a7cb48c202a91969b6e6d0d9a64d24
|
[
"MIT"
] | 46
|
2021-03-07T02:21:29.000Z
|
2022-03-24T12:45:03.000Z
|
tests/test_read_from_file.py
|
burakuyar/simple-ddl-parser
|
f5714e0947a7cb48c202a91969b6e6d0d9a64d24
|
[
"MIT"
] | 53
|
2021-03-08T08:50:00.000Z
|
2022-03-29T06:11:13.000Z
|
tests/test_read_from_file.py
|
burakuyar/simple-ddl-parser
|
f5714e0947a7cb48c202a91969b6e6d0d9a64d24
|
[
"MIT"
] | 12
|
2021-06-21T16:14:17.000Z
|
2022-03-25T13:52:35.000Z
|
import os
from simple_ddl_parser import parse_from_file
def test_parse_from_file_one_table():
expected = [
{
"columns": [
{
"name": '"id"',
"type": "SERIAL",
"size": None,
"nullable": False,
"default": None,
"check": None,
"unique": False,
"references": None,
},
{
"name": '"name"',
"type": "varchar",
"size": 160,
"nullable": True,
"default": None,
"check": None,
"unique": False,
"references": None,
},
{
"name": '"created_at"',
"type": "timestamp",
"size": None,
"nullable": True,
"default": None,
"check": None,
"unique": False,
"references": None,
},
{
"name": '"updated_at"',
"type": "timestamp",
"size": None,
"nullable": True,
"default": None,
"check": None,
"unique": False,
"references": None,
},
{
"name": '"country_code"',
"type": "int",
"size": None,
"nullable": True,
"default": None,
"check": None,
"unique": False,
"references": None,
},
{
"name": '"default_language"',
"type": "int",
"size": None,
"nullable": True,
"default": None,
"check": None,
"unique": False,
"references": None,
},
],
"primary_key": ['"id"'],
"index": [],
"table_name": '"users"',
"tablespace": None,
"schema": None,
"partitioned_by": [],
"alter": {},
"checks": [],
}
]
current_path = os.path.dirname(os.path.abspath(__file__))
assert expected == parse_from_file(
os.path.join(current_path, "sql", "test_one_table.sql")
)
def test_parse_from_file_two_statements():
expected = [
{
"columns": [
{
"name": '"id"',
"type": "SERIAL",
"size": None,
"nullable": False,
"default": None,
"check": None,
"unique": False,
"references": None,
},
{
"name": '"name"',
"type": "varchar",
"size": None,
"nullable": True,
"default": None,
"check": None,
"unique": False,
"references": None,
},
{
"name": '"created_at"',
"type": "timestamp",
"size": None,
"nullable": True,
"default": None,
"check": None,
"unique": False,
"references": None,
},
{
"name": '"updated_at"',
"type": "timestamp",
"size": None,
"nullable": True,
"default": None,
"check": None,
"unique": False,
"references": None,
},
{
"name": '"country_code"',
"type": "int",
"size": None,
"nullable": True,
"default": None,
"check": None,
"unique": False,
"references": None,
},
{
"name": '"default_language"',
"type": "int",
"size": None,
"nullable": True,
"default": None,
"check": None,
"unique": False,
"references": None,
},
],
"primary_key": ['"id"'],
"index": [],
"table_name": '"users"',
"tablespace": None,
"schema": None,
"partitioned_by": [],
"alter": {},
"checks": [],
},
{
"columns": [
{
"name": '"id"',
"type": "int",
"size": None,
"nullable": False,
"default": None,
"check": None,
"unique": False,
"references": None,
},
{
"name": '"code"',
"type": "varchar",
"size": 2,
"nullable": False,
"default": None,
"check": None,
"unique": False,
"references": None,
},
{
"name": '"name"',
"type": "varchar",
"size": None,
"nullable": False,
"default": None,
"check": None,
"unique": False,
"references": None,
},
],
"primary_key": ['"id"'],
"index": [],
"table_name": '"languages"',
"tablespace": None,
"schema": None,
"partitioned_by": [],
"alter": {},
"checks": [],
},
]
current_path = os.path.dirname(os.path.abspath(__file__))
assert expected == parse_from_file(
os.path.join(current_path, "sql", "test_two_tables.sql")
)
| 31.350962
| 64
| 0.298727
| 370
| 6,521
| 5.127027
| 0.159459
| 0.086979
| 0.126516
| 0.158144
| 0.928835
| 0.904059
| 0.904059
| 0.904059
| 0.904059
| 0.904059
| 0
| 0.001429
| 0.570771
| 6,521
| 207
| 65
| 31.502415
| 0.676313
| 0
| 0
| 0.752475
| 0
| 0
| 0.193375
| 0
| 0
| 0
| 0
| 0
| 0.009901
| 1
| 0.009901
| false
| 0
| 0.009901
| 0
| 0.019802
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 8
|
409f5ba2f6fe5bb5c53cfdf57031eca37c6a3d90
| 5,956
|
py
|
Python
|
tests/representations/test_spaces.py
|
DavidSlayback/gym-gridverse
|
b8916576a92489c030fb2c2060598c7f473f19f2
|
[
"MIT"
] | 6
|
2020-10-15T14:45:11.000Z
|
2021-02-20T12:11:32.000Z
|
tests/representations/test_spaces.py
|
DavidSlayback/gym-gridverse
|
b8916576a92489c030fb2c2060598c7f473f19f2
|
[
"MIT"
] | 5
|
2021-01-20T15:34:29.000Z
|
2022-03-18T18:52:53.000Z
|
tests/representations/test_spaces.py
|
DavidSlayback/gym-gridverse
|
b8916576a92489c030fb2c2060598c7f473f19f2
|
[
"MIT"
] | 2
|
2021-01-11T18:48:49.000Z
|
2021-01-26T15:45:38.000Z
|
import numpy as np
import pytest
from gym_gridverse.representations.spaces import (
CategoricalSpace,
ContinuousSpace,
DiscreteSpace,
SpaceType,
)
# CATEGORICAL
@pytest.mark.parametrize(
'upper_bound',
[
np.array([0, 1, 2]),
np.array([1, 2, 3]),
np.array([2, 3, 4]),
],
)
def test_categorical_space(upper_bound: np.ndarray):
space = CategoricalSpace(upper_bound)
assert space.space_type is SpaceType.CATEGORICAL
assert np.all(space.lower_bound == np.zeros_like(upper_bound))
assert np.all(space.upper_bound == upper_bound)
@pytest.mark.parametrize(
'upper_bound',
[
# wrong values
np.array([0, 0, -1]),
np.array([0, -1, 0]),
np.array([-1, 0, 0]),
# wrong dtype
np.array([0.0, 1.0, 2.0]),
np.array([1.0, 2.0, 3.0]),
np.array([2.0, 3.0, 4.0]),
],
)
def test_categorical_space_fail(upper_bound: np.ndarray):
with pytest.raises(ValueError):
CategoricalSpace(upper_bound)
@pytest.mark.parametrize(
'upper_bound,x,expected',
[
(np.array([1, 2, 3]), np.array([0, 0, 0]), True),
(np.array([1, 2, 3]), np.array([1, 2, 3]), True),
(np.array([1, 2, 3]), np.array([-1, -1, -1]), False),
(np.array([1, 2, 3]), np.array([2, 3, 4]), False),
],
)
def test_categorical_space_contains(
upper_bound: np.ndarray, x: np.ndarray, expected: bool
):
space = CategoricalSpace(upper_bound)
assert space.contains(x) == expected
# DISCRETE
@pytest.mark.parametrize(
'lower_bound,upper_bound',
[
(np.array([0, 1, 2]), np.array([1, 2, 3])),
(np.array([1, 2, 3]), np.array([2, 3, 4])),
(np.array([2, 3, 4]), np.array([3, 4, 5])),
],
)
def test_discrete_space(lower_bound: np.ndarray, upper_bound: np.ndarray):
space = DiscreteSpace(lower_bound, upper_bound)
assert space.space_type is SpaceType.DISCRETE
assert np.all(space.lower_bound == lower_bound)
assert np.all(space.upper_bound == upper_bound)
@pytest.mark.parametrize(
'lower_bound,upper_bound',
[
# wrong values
(np.array([0, 0, 1]), np.array([0, 0, -1])),
(np.array([0, 1, 0]), np.array([0, -1, 0])),
(np.array([1, 0, 0]), np.array([-1, 0, 0])),
# wrong shapes
(np.array([0, 1, 2]), np.array([1])),
(np.array([1, 2, 3]), np.array([1, 2])),
(np.array([2, 3, 4]), np.array([1, 2, 3, 4])),
# wrong dtype
(np.array([0.0, 1.0, 2.0]), np.array([1.0, 2.0, 3.0])),
(np.array([1.0, 2.0, 3.0]), np.array([2.0, 3.0, 4.0])),
(np.array([2.0, 3.0, 4.0]), np.array([3.0, 4.0, 5.0])),
],
)
def test_discrete_space_fail(lower_bound: np.ndarray, upper_bound: np.ndarray):
with pytest.raises(ValueError):
DiscreteSpace(lower_bound, upper_bound)
@pytest.mark.parametrize(
'lower_bound,upper_bound,x,expected',
[
(np.array([1, 2]), np.array([3, 4]), np.array([0, 1]), False),
(np.array([1, 2]), np.array([3, 4]), np.array([1, 2]), True),
(np.array([1, 2]), np.array([3, 4]), np.array([2, 3]), True),
(np.array([1, 2]), np.array([3, 4]), np.array([3, 4]), True),
(np.array([1, 2]), np.array([3, 4]), np.array([4, 5]), False),
],
)
def test_discrete_space_contains(
lower_bound: np.ndarray,
upper_bound: np.ndarray,
x: np.ndarray,
expected: bool,
):
space = DiscreteSpace(lower_bound, upper_bound)
assert space.contains(x) == expected
# CONTINUOUS
@pytest.mark.parametrize(
'lower_bound,upper_bound',
[
(np.array([0.0, 1.0, 2.0]), np.array([1.0, 2.0, 3.0])),
(np.array([1.0, 2.0, 3.0]), np.array([2.0, 3.0, 4.0])),
(np.array([2.0, 3.0, 4.0]), np.array([3.0, 4.0, 5.0])),
],
)
def test_continuous_space(lower_bound: np.ndarray, upper_bound: np.ndarray):
space = ContinuousSpace(lower_bound, upper_bound)
assert space.space_type is SpaceType.CONTINUOUS
assert np.all(space.lower_bound == lower_bound)
assert np.all(space.upper_bound == upper_bound)
@pytest.mark.parametrize(
'lower_bound,upper_bound',
[
# wrong values
(np.array([0.0, 0.0, 1.0]), np.array([0.0, 0.0, -1.0])),
(np.array([0.0, 1.0, 0.0]), np.array([0.0, -1.0, 0.0])),
(np.array([1.0, 0.0, 0.0]), np.array([-1.0, 0.0, 0.0])),
# wrong shapes
(np.array([0.0, 1.0, 2.0]), np.array([1.0])),
(np.array([1.0, 2.0, 3.0]), np.array([1.0, 2.0])),
(np.array([2.0, 3.0, 4.0]), np.array([1.0, 2.0, 3.0, 4.0])),
# wrong dtype
(np.array([0, 1, 2]), np.array([1, 2, 3])),
(np.array([1, 2, 3]), np.array([2, 3, 4])),
(np.array([2, 3, 4]), np.array([3, 4, 5])),
],
)
def test_continuous_space_fail(
lower_bound: np.ndarray, upper_bound: np.ndarray
):
with pytest.raises(ValueError):
ContinuousSpace(lower_bound, upper_bound)
@pytest.mark.parametrize(
'lower_bound,upper_bound,x,expected',
[
(
np.array([1.0, 2.0]),
np.array([3.0, 4.0]),
np.array([0.0, 1.0]),
False,
),
(
np.array([1.0, 2.0]),
np.array([3.0, 4.0]),
np.array([1.0, 2.0]),
True,
),
(
np.array([1.0, 2.0]),
np.array([3.0, 4.0]),
np.array([2.0, 3.0]),
True,
),
(
np.array([1.0, 2.0]),
np.array([3.0, 4.0]),
np.array([3.0, 4.0]),
True,
),
(
np.array([1.0, 2.0]),
np.array([3.0, 4.0]),
np.array([4.0, 5.0]),
False,
),
],
)
def test_continuous_space_contains(
lower_bound: np.ndarray,
upper_bound: np.ndarray,
x: np.ndarray,
expected: bool,
):
space = ContinuousSpace(lower_bound, upper_bound)
assert space.contains(x) == expected
| 28.634615
| 79
| 0.534083
| 923
| 5,956
| 3.353196
| 0.057421
| 0.214863
| 0.105977
| 0.058158
| 0.873667
| 0.850404
| 0.820355
| 0.777706
| 0.716963
| 0.670759
| 0
| 0.081172
| 0.255373
| 5,956
| 207
| 80
| 28.772947
| 0.616685
| 0.022163
| 0
| 0.517442
| 0
| 0
| 0.0351
| 0.031315
| 0
| 0
| 0
| 0
| 0.069767
| 1
| 0.052326
| false
| 0
| 0.017442
| 0
| 0.069767
| 0
| 0
| 0
| 0
| null | 1
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
40a46af0533f7882300608cb001588e81442ac6f
| 34,700
|
py
|
Python
|
uppsell/migrations/0001_initial.py
|
upptalk/uppsell
|
843dfe81dbbd7d0cc920e6c8256d27e27c3106fe
|
[
"MIT"
] | 2
|
2020-01-10T18:21:32.000Z
|
2021-01-31T13:53:28.000Z
|
uppsell/migrations/0001_initial.py
|
gaybro8777/uppsell
|
843dfe81dbbd7d0cc920e6c8256d27e27c3106fe
|
[
"MIT"
] | 4
|
2015-12-03T22:59:05.000Z
|
2021-06-10T19:12:59.000Z
|
uppsell/migrations/0001_initial.py
|
gaybro8777/uppsell
|
843dfe81dbbd7d0cc920e6c8256d27e27c3106fe
|
[
"MIT"
] | 1
|
2021-02-08T08:21:22.000Z
|
2021-02-08T08:21:22.000Z
|
# -*- coding: utf-8 -*-
from south.utils import datetime_utils as datetime
from south.db import db
from south.v2 import SchemaMigration
from django.db import models
class Migration(SchemaMigration):
def forwards(self, orm):
# Adding model 'Customer'
db.create_table('customers', (
(u'id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
('username', self.gf('django.db.models.fields.CharField')(unique=True, max_length=30)),
('first_name', self.gf('django.db.models.fields.CharField')(db_index=True, max_length=30, blank=True)),
('last_name', self.gf('django.db.models.fields.CharField')(db_index=True, max_length=30, blank=True)),
('email', self.gf('django.db.models.fields.EmailField')(db_index=True, max_length=75, blank=True)),
('created_at', self.gf('django.db.models.fields.DateTimeField')(auto_now_add=True, blank=True)),
('last_logged_in_at', self.gf('django.db.models.fields.DateTimeField')(null=True, blank=True)),
))
db.send_create_signal(u'uppsell', ['Customer'])
# Adding model 'Address'
db.create_table('addresses', (
(u'id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
('type', self.gf('django.db.models.fields.CharField')(max_length=10)),
('customer', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['uppsell.Customer'])),
('line1', self.gf('django.db.models.fields.CharField')(max_length=255)),
('line2', self.gf('django.db.models.fields.CharField')(max_length=255)),
('line3', self.gf('django.db.models.fields.CharField')(max_length=255)),
('city', self.gf('django.db.models.fields.CharField')(max_length=255)),
('zip', self.gf('django.db.models.fields.CharField')(max_length=255)),
('province', self.gf('django.db.models.fields.CharField')(max_length=255)),
('country', self.gf('django.db.models.fields.CharField')(max_length=255)),
('country_code', self.gf('django.db.models.fields.CharField')(max_length=3)),
('other', self.gf('django.db.models.fields.CharField')(max_length=255)),
('created_at', self.gf('django.db.models.fields.DateTimeField')(auto_now_add=True, blank=True)),
('last_used', self.gf('django.db.models.fields.DateTimeField')(null=True, blank=True)),
))
db.send_create_signal(u'uppsell', ['Address'])
# Adding model 'LinkedAccountType'
db.create_table('linked_account_types', (
(u'id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
('type', self.gf('django.db.models.fields.CharField')(max_length=32)),
))
db.send_create_signal(u'uppsell', ['LinkedAccountType'])
# Adding model 'LinkedAccount'
db.create_table('linked_accounts', (
(u'id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
('type', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['uppsell.LinkedAccountType'])),
('customer', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['uppsell.Customer'])),
('provider', self.gf('django.db.models.fields.CharField')(max_length=64)),
('account_id', self.gf('django.db.models.fields.CharField')(max_length=255)),
('key', self.gf('django.db.models.fields.CharField')(max_length=2000)),
('linked_at', self.gf('django.db.models.fields.DateTimeField')(auto_now_add=True, blank=True)),
('updated_at', self.gf('django.db.models.fields.DateTimeField')(auto_now=True, blank=True)),
))
db.send_create_signal(u'uppsell', ['LinkedAccount'])
# Adding model 'Store'
db.create_table('stores', (
(u'id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
('code', self.gf('django.db.models.fields.CharField')(max_length=200)),
('name', self.gf('django.db.models.fields.CharField')(max_length=200)),
('default_lang', self.gf('django.db.models.fields.CharField')(max_length=3)),
('default_currency', self.gf('django.db.models.fields.CharField')(max_length=3)),
('sales_tax_rate', self.gf('django.db.models.fields.FloatField')()),
('created_at', self.gf('django.db.models.fields.DateTimeField')(auto_now_add=True, blank=True)),
('updated_at', self.gf('django.db.models.fields.DateTimeField')(auto_now=True, blank=True)),
))
db.send_create_signal(u'uppsell', ['Store'])
# Adding model 'ProductGroup'
db.create_table('product_groups', (
(u'id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
('name', self.gf('django.db.models.fields.CharField')(max_length=50)),
))
db.send_create_signal(u'uppsell', ['ProductGroup'])
# Adding model 'Product'
db.create_table('products', (
(u'id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
('group', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['uppsell.ProductGroup'])),
('sku', self.gf('django.db.models.fields.CharField')(max_length=200)),
('name', self.gf('django.db.models.fields.CharField')(max_length=200)),
('title', self.gf('django.db.models.fields.CharField')(max_length=200)),
('subtitle', self.gf('django.db.models.fields.CharField')(max_length=200)),
('description', self.gf('django.db.models.fields.CharField')(max_length=10000)),
('stock_units', self.gf('django.db.models.fields.FloatField')()),
('created_at', self.gf('django.db.models.fields.DateTimeField')(auto_now_add=True, blank=True)),
('updated_at', self.gf('django.db.models.fields.DateTimeField')(auto_now=True, blank=True)),
))
db.send_create_signal(u'uppsell', ['Product'])
# Adding model 'ProductCode'
db.create_table('product_codes', (
(u'id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
('type', self.gf('django.db.models.fields.CharField')(max_length=20)),
('product', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['uppsell.ProductGroup'])),
('code', self.gf('django.db.models.fields.CharField')(max_length=255)),
))
db.send_create_signal(u'uppsell', ['ProductCode'])
# Adding model 'Listing'
db.create_table('listings', (
(u'id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
('store', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['uppsell.Store'])),
('product', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['uppsell.Product'])),
('state', self.gf('django.db.models.fields.CharField')(max_length=10)),
('sales_tax_rate', self.gf('django.db.models.fields.FloatField')(null=True)),
('name', self.gf('django.db.models.fields.CharField')(max_length=200, blank=True)),
('title', self.gf('django.db.models.fields.CharField')(max_length=200, blank=True)),
('subtitle', self.gf('django.db.models.fields.CharField')(max_length=200, blank=True)),
('description', self.gf('django.db.models.fields.CharField')(max_length=10000, blank=True)),
))
db.send_create_signal(u'uppsell', ['Listing'])
# Adding model 'Cart'
db.create_table('carts', (
(u'id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
('store', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['uppsell.Store'])),
('customer', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['uppsell.Listing'])),
('created_at', self.gf('django.db.models.fields.DateTimeField')(auto_now_add=True, blank=True)),
('updated_at', self.gf('django.db.models.fields.DateTimeField')(auto_now=True, blank=True)),
))
db.send_create_signal(u'uppsell', ['Cart'])
# Adding model 'CartItem'
db.create_table('cart_items', (
(u'id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
('cart', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['uppsell.Cart'])),
('product', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['uppsell.Listing'])),
('quantity', self.gf('django.db.models.fields.PositiveIntegerField')(default=1)),
))
db.send_create_signal(u'uppsell', ['CartItem'])
# Adding model 'Coupon'
db.create_table('coupons', (
(u'id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
('relation', self.gf('django.db.models.fields.CharField')(max_length=16)),
('type', self.gf('django.db.models.fields.CharField')(max_length=16)),
('code', self.gf('django.db.models.fields.CharField')(max_length=40)),
('store', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['uppsell.Store'])),
('customer', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['uppsell.Customer'], null=True, blank=True)),
('product', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['uppsell.Listing'], null=True, blank=True)),
('product_group', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['uppsell.ProductGroup'], null=True, blank=True)),
('discount_amount', self.gf('django.db.models.fields.DecimalField')(null=True, max_digits=8, decimal_places=2, blank=True)),
('discount_pct', self.gf('django.db.models.fields.PositiveIntegerField')(null=True, blank=True)),
('max_uses', self.gf('django.db.models.fields.PositiveIntegerField')()),
('remaining', self.gf('django.db.models.fields.PositiveIntegerField')()),
('valid_from', self.gf('django.db.models.fields.DateTimeField')(auto_now_add=True, blank=True)),
('valid_until', self.gf('django.db.models.fields.DateTimeField')()),
('created_at', self.gf('django.db.models.fields.DateTimeField')(auto_now_add=True, blank=True)),
('updated_at', self.gf('django.db.models.fields.DateTimeField')(auto_now=True, blank=True)),
))
db.send_create_signal(u'uppsell', ['Coupon'])
# Adding model 'CouponSpend'
db.create_table('coupon_spends', (
(u'id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
('customer', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['uppsell.Customer'])),
('coupon', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['uppsell.Coupon'])),
('created_at', self.gf('django.db.models.fields.DateTimeField')(auto_now_add=True, blank=True)),
))
db.send_create_signal(u'uppsell', ['CouponSpend'])
# Adding unique constraint on 'CouponSpend', fields ['customer', 'coupon']
db.create_unique('coupon_spends', ['customer_id', 'coupon_id'])
# Adding model 'Order'
db.create_table('orders', (
(u'id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
('store', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['uppsell.Store'])),
('customer', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['uppsell.Customer'])),
('order_state', self.gf('django.db.models.fields.CharField')(default='init', max_length=30)),
('payment_state', self.gf('django.db.models.fields.CharField')(default='init', max_length=30)),
('fraud_state', self.gf('django.db.models.fields.CharField')(max_length=30)),
('coupon', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['uppsell.Coupon'], null=True)),
('transaction_id', self.gf('django.db.models.fields.CharField')(max_length=200, blank=True)),
('shipping_address', self.gf('django.db.models.fields.related.ForeignKey')(blank=True, related_name='shipping_address', null=True, to=orm['uppsell.Address'])),
('billing_address', self.gf('django.db.models.fields.related.ForeignKey')(blank=True, related_name='billing_address', null=True, to=orm['uppsell.Address'])),
('order_total', self.gf('django.db.models.fields.DecimalField')(max_digits=8, decimal_places=2)),
('order_shipping_total', self.gf('django.db.models.fields.DecimalField')(max_digits=8, decimal_places=2)),
('currency', self.gf('django.db.models.fields.CharField')(max_length=3)),
('payment_made_ts', self.gf('django.db.models.fields.DateTimeField')(null=True, blank=True)),
('created_at', self.gf('django.db.models.fields.DateTimeField')(auto_now_add=True, blank=True)),
('updated_at', self.gf('django.db.models.fields.DateTimeField')(auto_now=True, blank=True)),
))
db.send_create_signal(u'uppsell', ['Order'])
# Adding model 'OrderItem'
db.create_table('order_items', (
(u'id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
('order', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['uppsell.Order'])),
('product', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['uppsell.Listing'])),
('quantity', self.gf('django.db.models.fields.PositiveIntegerField')(default=1)),
))
db.send_create_signal(u'uppsell', ['OrderItem'])
# Adding model 'OrderEvent'
db.create_table('order_events', (
(u'id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
('order', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['uppsell.Order'])),
('action_type', self.gf('django.db.models.fields.CharField')(max_length=30)),
('event', self.gf('django.db.models.fields.CharField')(max_length=30)),
('state_before', self.gf('django.db.models.fields.CharField')(max_length=30)),
('state_after', self.gf('django.db.models.fields.CharField')(max_length=30)),
('comment', self.gf('django.db.models.fields.CharField')(max_length=2000, blank=True)),
('created_at', self.gf('django.db.models.fields.DateTimeField')(auto_now_add=True, blank=True)),
))
db.send_create_signal(u'uppsell', ['OrderEvent'])
# Adding model 'Invoice'
db.create_table('invoices', (
(u'id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
('order_id', self.gf('django.db.models.fields.IntegerField')(unique=True)),
('store_id', self.gf('django.db.models.fields.IntegerField')()),
('product_id', self.gf('django.db.models.fields.IntegerField')()),
('psp_id', self.gf('django.db.models.fields.IntegerField')()),
('user_jid', self.gf('django.db.models.fields.CharField')(max_length=200)),
('transaction_id', self.gf('django.db.models.fields.CharField')(max_length=200)),
('psp_type', self.gf('django.db.models.fields.CharField')(max_length=200)),
('quantity', self.gf('django.db.models.fields.IntegerField')(default=0)),
('order_total', self.gf('django.db.models.fields.DecimalField')(max_digits=8, decimal_places=2)),
('order_shipping_total', self.gf('django.db.models.fields.DecimalField')(max_digits=8, decimal_places=2)),
('currency', self.gf('django.db.models.fields.CharField')(max_length=3)),
('user_fullname', self.gf('django.db.models.fields.CharField')(max_length=1000)),
('shipping_address', self.gf('django.db.models.fields.CharField')(max_length=1000)),
('billing_address', self.gf('django.db.models.fields.CharField')(max_length=1000)),
('user_mobile_msisdn', self.gf('django.db.models.fields.CharField')(max_length=200)),
('user_email', self.gf('django.db.models.fields.CharField')(max_length=200)),
('psp_response_code', self.gf('django.db.models.fields.CharField')(max_length=200)),
('psp_response_text', self.gf('django.db.models.fields.CharField')(max_length=10000)),
('payment_made_ts', self.gf('django.db.models.fields.DateTimeField')()),
('created_at', self.gf('django.db.models.fields.DateTimeField')(auto_now_add=True, blank=True)),
))
db.send_create_signal(u'uppsell', ['Invoice'])
def backwards(self, orm):
# Removing unique constraint on 'CouponSpend', fields ['customer', 'coupon']
db.delete_unique('coupon_spends', ['customer_id', 'coupon_id'])
# Deleting model 'Customer'
db.delete_table('customers')
# Deleting model 'Address'
db.delete_table('addresses')
# Deleting model 'LinkedAccountType'
db.delete_table('linked_account_types')
# Deleting model 'LinkedAccount'
db.delete_table('linked_accounts')
# Deleting model 'Store'
db.delete_table('stores')
# Deleting model 'ProductGroup'
db.delete_table('product_groups')
# Deleting model 'Product'
db.delete_table('products')
# Deleting model 'ProductCode'
db.delete_table('product_codes')
# Deleting model 'Listing'
db.delete_table('listings')
# Deleting model 'Cart'
db.delete_table('carts')
# Deleting model 'CartItem'
db.delete_table('cart_items')
# Deleting model 'Coupon'
db.delete_table('coupons')
# Deleting model 'CouponSpend'
db.delete_table('coupon_spends')
# Deleting model 'Order'
db.delete_table('orders')
# Deleting model 'OrderItem'
db.delete_table('order_items')
# Deleting model 'OrderEvent'
db.delete_table('order_events')
# Deleting model 'Invoice'
db.delete_table('invoices')
models = {
u'uppsell.address': {
'Meta': {'object_name': 'Address', 'db_table': "'addresses'"},
'city': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
'country': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
'country_code': ('django.db.models.fields.CharField', [], {'max_length': '3'}),
'created_at': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
'customer': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['uppsell.Customer']"}),
u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
'last_used': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}),
'line1': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
'line2': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
'line3': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
'other': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
'province': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
'type': ('django.db.models.fields.CharField', [], {'max_length': '10'}),
'zip': ('django.db.models.fields.CharField', [], {'max_length': '255'})
},
u'uppsell.cart': {
'Meta': {'object_name': 'Cart', 'db_table': "'carts'"},
'created_at': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
'customer': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['uppsell.Listing']"}),
u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
'store': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['uppsell.Store']"}),
'updated_at': ('django.db.models.fields.DateTimeField', [], {'auto_now': 'True', 'blank': 'True'})
},
u'uppsell.cartitem': {
'Meta': {'object_name': 'CartItem', 'db_table': "'cart_items'"},
'cart': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['uppsell.Cart']"}),
u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
'product': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['uppsell.Listing']"}),
'quantity': ('django.db.models.fields.PositiveIntegerField', [], {'default': '1'})
},
u'uppsell.coupon': {
'Meta': {'object_name': 'Coupon', 'db_table': "'coupons'"},
'code': ('django.db.models.fields.CharField', [], {'max_length': '40'}),
'created_at': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
'customer': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['uppsell.Customer']", 'null': 'True', 'blank': 'True'}),
'discount_amount': ('django.db.models.fields.DecimalField', [], {'null': 'True', 'max_digits': '8', 'decimal_places': '2', 'blank': 'True'}),
'discount_pct': ('django.db.models.fields.PositiveIntegerField', [], {'null': 'True', 'blank': 'True'}),
u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
'max_uses': ('django.db.models.fields.PositiveIntegerField', [], {}),
'product': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['uppsell.Listing']", 'null': 'True', 'blank': 'True'}),
'product_group': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['uppsell.ProductGroup']", 'null': 'True', 'blank': 'True'}),
'relation': ('django.db.models.fields.CharField', [], {'max_length': '16'}),
'remaining': ('django.db.models.fields.PositiveIntegerField', [], {}),
'store': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['uppsell.Store']"}),
'type': ('django.db.models.fields.CharField', [], {'max_length': '16'}),
'updated_at': ('django.db.models.fields.DateTimeField', [], {'auto_now': 'True', 'blank': 'True'}),
'valid_from': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
'valid_until': ('django.db.models.fields.DateTimeField', [], {})
},
u'uppsell.couponspend': {
'Meta': {'unique_together': "(('customer', 'coupon'),)", 'object_name': 'CouponSpend', 'db_table': "'coupon_spends'"},
'coupon': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['uppsell.Coupon']"}),
'created_at': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
'customer': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['uppsell.Customer']"}),
u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'})
},
u'uppsell.customer': {
'Meta': {'object_name': 'Customer', 'db_table': "'customers'"},
'created_at': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
'email': ('django.db.models.fields.EmailField', [], {'db_index': 'True', 'max_length': '75', 'blank': 'True'}),
'first_name': ('django.db.models.fields.CharField', [], {'db_index': 'True', 'max_length': '30', 'blank': 'True'}),
u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
'last_logged_in_at': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}),
'last_name': ('django.db.models.fields.CharField', [], {'db_index': 'True', 'max_length': '30', 'blank': 'True'}),
'username': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '30'})
},
u'uppsell.invoice': {
'Meta': {'object_name': 'Invoice', 'db_table': "'invoices'"},
'billing_address': ('django.db.models.fields.CharField', [], {'max_length': '1000'}),
'created_at': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
'currency': ('django.db.models.fields.CharField', [], {'max_length': '3'}),
u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
'order_id': ('django.db.models.fields.IntegerField', [], {'unique': 'True'}),
'order_shipping_total': ('django.db.models.fields.DecimalField', [], {'max_digits': '8', 'decimal_places': '2'}),
'order_total': ('django.db.models.fields.DecimalField', [], {'max_digits': '8', 'decimal_places': '2'}),
'payment_made_ts': ('django.db.models.fields.DateTimeField', [], {}),
'product_id': ('django.db.models.fields.IntegerField', [], {}),
'psp_id': ('django.db.models.fields.IntegerField', [], {}),
'psp_response_code': ('django.db.models.fields.CharField', [], {'max_length': '200'}),
'psp_response_text': ('django.db.models.fields.CharField', [], {'max_length': '10000'}),
'psp_type': ('django.db.models.fields.CharField', [], {'max_length': '200'}),
'quantity': ('django.db.models.fields.IntegerField', [], {'default': '0'}),
'shipping_address': ('django.db.models.fields.CharField', [], {'max_length': '1000'}),
'store_id': ('django.db.models.fields.IntegerField', [], {}),
'transaction_id': ('django.db.models.fields.CharField', [], {'max_length': '200'}),
'user_email': ('django.db.models.fields.CharField', [], {'max_length': '200'}),
'user_fullname': ('django.db.models.fields.CharField', [], {'max_length': '1000'}),
'user_jid': ('django.db.models.fields.CharField', [], {'max_length': '200'}),
'user_mobile_msisdn': ('django.db.models.fields.CharField', [], {'max_length': '200'})
},
u'uppsell.linkedaccount': {
'Meta': {'object_name': 'LinkedAccount', 'db_table': "'linked_accounts'"},
'account_id': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
'customer': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['uppsell.Customer']"}),
u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
'key': ('django.db.models.fields.CharField', [], {'max_length': '2000'}),
'linked_at': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
'provider': ('django.db.models.fields.CharField', [], {'max_length': '64'}),
'type': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['uppsell.LinkedAccountType']"}),
'updated_at': ('django.db.models.fields.DateTimeField', [], {'auto_now': 'True', 'blank': 'True'})
},
u'uppsell.linkedaccounttype': {
'Meta': {'object_name': 'LinkedAccountType', 'db_table': "'linked_account_types'"},
u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
'type': ('django.db.models.fields.CharField', [], {'max_length': '32'})
},
u'uppsell.listing': {
'Meta': {'object_name': 'Listing', 'db_table': "'listings'"},
'description': ('django.db.models.fields.CharField', [], {'max_length': '10000', 'blank': 'True'}),
u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
'name': ('django.db.models.fields.CharField', [], {'max_length': '200', 'blank': 'True'}),
'product': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['uppsell.Product']"}),
'sales_tax_rate': ('django.db.models.fields.FloatField', [], {'null': 'True'}),
'state': ('django.db.models.fields.CharField', [], {'max_length': '10'}),
'store': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['uppsell.Store']"}),
'subtitle': ('django.db.models.fields.CharField', [], {'max_length': '200', 'blank': 'True'}),
'title': ('django.db.models.fields.CharField', [], {'max_length': '200', 'blank': 'True'})
},
u'uppsell.order': {
'Meta': {'object_name': 'Order', 'db_table': "'orders'"},
'billing_address': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'billing_address'", 'null': 'True', 'to': u"orm['uppsell.Address']"}),
'coupon': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['uppsell.Coupon']", 'null': 'True'}),
'created_at': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
'currency': ('django.db.models.fields.CharField', [], {'max_length': '3'}),
'customer': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['uppsell.Customer']"}),
'fraud_state': ('django.db.models.fields.CharField', [], {'max_length': '30'}),
u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
'order_shipping_total': ('django.db.models.fields.DecimalField', [], {'max_digits': '8', 'decimal_places': '2'}),
'order_state': ('django.db.models.fields.CharField', [], {'default': "'init'", 'max_length': '30'}),
'order_total': ('django.db.models.fields.DecimalField', [], {'max_digits': '8', 'decimal_places': '2'}),
'payment_made_ts': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}),
'payment_state': ('django.db.models.fields.CharField', [], {'default': "'init'", 'max_length': '30'}),
'shipping_address': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'shipping_address'", 'null': 'True', 'to': u"orm['uppsell.Address']"}),
'store': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['uppsell.Store']"}),
'transaction_id': ('django.db.models.fields.CharField', [], {'max_length': '200', 'blank': 'True'}),
'updated_at': ('django.db.models.fields.DateTimeField', [], {'auto_now': 'True', 'blank': 'True'})
},
u'uppsell.orderevent': {
'Meta': {'object_name': 'OrderEvent', 'db_table': "'order_events'"},
'action_type': ('django.db.models.fields.CharField', [], {'max_length': '30'}),
'comment': ('django.db.models.fields.CharField', [], {'max_length': '2000', 'blank': 'True'}),
'created_at': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
'event': ('django.db.models.fields.CharField', [], {'max_length': '30'}),
u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
'order': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['uppsell.Order']"}),
'state_after': ('django.db.models.fields.CharField', [], {'max_length': '30'}),
'state_before': ('django.db.models.fields.CharField', [], {'max_length': '30'})
},
u'uppsell.orderitem': {
'Meta': {'object_name': 'OrderItem', 'db_table': "'order_items'"},
u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
'order': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['uppsell.Order']"}),
'product': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['uppsell.Listing']"}),
'quantity': ('django.db.models.fields.PositiveIntegerField', [], {'default': '1'})
},
u'uppsell.product': {
'Meta': {'object_name': 'Product', 'db_table': "'products'"},
'created_at': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
'description': ('django.db.models.fields.CharField', [], {'max_length': '10000'}),
'group': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['uppsell.ProductGroup']"}),
u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
'name': ('django.db.models.fields.CharField', [], {'max_length': '200'}),
'sku': ('django.db.models.fields.CharField', [], {'max_length': '200'}),
'stock_units': ('django.db.models.fields.FloatField', [], {}),
'subtitle': ('django.db.models.fields.CharField', [], {'max_length': '200'}),
'title': ('django.db.models.fields.CharField', [], {'max_length': '200'}),
'updated_at': ('django.db.models.fields.DateTimeField', [], {'auto_now': 'True', 'blank': 'True'})
},
u'uppsell.productcode': {
'Meta': {'object_name': 'ProductCode', 'db_table': "'product_codes'"},
'code': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
'product': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['uppsell.ProductGroup']"}),
'type': ('django.db.models.fields.CharField', [], {'max_length': '20'})
},
u'uppsell.productgroup': {
'Meta': {'object_name': 'ProductGroup', 'db_table': "'product_groups'"},
u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
'name': ('django.db.models.fields.CharField', [], {'max_length': '50'})
},
u'uppsell.store': {
'Meta': {'object_name': 'Store', 'db_table': "'stores'"},
'code': ('django.db.models.fields.CharField', [], {'max_length': '200'}),
'created_at': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
'default_currency': ('django.db.models.fields.CharField', [], {'max_length': '3'}),
'default_lang': ('django.db.models.fields.CharField', [], {'max_length': '3'}),
u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
'name': ('django.db.models.fields.CharField', [], {'max_length': '200'}),
'sales_tax_rate': ('django.db.models.fields.FloatField', [], {}),
'updated_at': ('django.db.models.fields.DateTimeField', [], {'auto_now': 'True', 'blank': 'True'})
}
}
complete_apps = ['uppsell']
| 70.242915
| 189
| 0.598242
| 3,984
| 34,700
| 5.076556
| 0.047189
| 0.112732
| 0.196588
| 0.280841
| 0.846279
| 0.833622
| 0.822843
| 0.797231
| 0.742991
| 0.679901
| 0
| 0.012362
| 0.184092
| 34,700
| 494
| 190
| 70.242915
| 0.701999
| 0.03
| 0
| 0.301205
| 0
| 0
| 0.51386
| 0.318274
| 0
| 0
| 0
| 0
| 0
| 1
| 0.004819
| false
| 0
| 0.009639
| 0
| 0.021687
| 0
| 0
| 0
| 0
| null | 0
| 1
| 1
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 8
|
40fb8ac7e705ad87c13ac27573d2c6c9f28f18be
| 47,649
|
py
|
Python
|
Solve.py
|
JackyChan97/Database-Homework
|
9904b5b2f91f161a250e8160ca13695e60de0cee
|
[
"Apache-2.0"
] | null | null | null |
Solve.py
|
JackyChan97/Database-Homework
|
9904b5b2f91f161a250e8160ca13695e60de0cee
|
[
"Apache-2.0"
] | null | null | null |
Solve.py
|
JackyChan97/Database-Homework
|
9904b5b2f91f161a250e8160ca13695e60de0cee
|
[
"Apache-2.0"
] | 1
|
2019-12-23T11:13:59.000Z
|
2019-12-23T11:13:59.000Z
|
import pymysql
import wx
hoster = ''
porter = ''
username = ''
pwd = ''
database = ''
def LoadingData():
state = False
with open('infor.png', 'r') as f:
contents = f.readlines()[0].split(' ')
global hoster, porter, username, pwd, database
hoster, porter, username, pwd, database = contents
porter = int(porter)
state = True
# print(contents)
return state
def CheckConnection():
try:
state = LoadingData()
if state == False:
return state
conn = pymysql.connect(host=hoster, port=porter, user=username, passwd=pwd, db=database)
print('Connected successfully.')
conn.close()
return True
except:
return False
def CreateStudentTable():
try:
conn = pymysql.connect(host=hoster, port=porter, user=username, passwd=pwd, db=database)
print('Connected successfully.')
with conn.cursor() as cursor:
# sql = 'INSERT INTO ZHUA VALUES (13, "BUGUAIZHUA", false);'
sql = """
create table student
( studentID char(10) not null,
studentName varchar(20) not null,
sex varchar(6) not null check(sex in (\"male\", \"female\")),
entranceAge integer not null check(entranceAge >= 10 and entranceAge <= 50),
entranceYear year not null,
class varchar(20) not null,
primary key(studentID) )
"""
# sql = """
# create table student
# ( studentID char(10),
# primary key(studentID) )
# """
cursor.execute(sql)
result = cursor.fetchall()
print(result)
conn.commit()
finally:
conn.close()
def CreateTeacherTable():
try:
conn = pymysql.connect(host=hoster, port=porter, user=username, passwd=pwd, db=database)
print('Connected successfully.')
with conn.cursor() as cursor:
# sql = 'INSERT INTO ZHUA VALUES (13, "BUGUAIZHUA", false);'
sql = """
create table teacher
( teacherID char(5) not null,
teacherName varchar(20) not null,
primary key(teacherID) )
"""
cursor.execute(sql)
result = cursor.fetchall()
print(result)
conn.commit()
finally:
conn.close()
def CreateCourseTable():
try:
conn = pymysql.connect(host=hoster, port=porter, user=username, passwd=pwd, db=database)
print('Connected successfully.')
with conn.cursor() as cursor:
# sql = 'INSERT INTO ZHUA VALUES (13, "BUGUAIZHUA", false);'
sql = """
create table course
( courseID char(7) not null,
courseName varchar(20) not null,
teacherID char(5) not null,
credit float(3,1) not null,
grade integer not null check(grade >= 1 and grade <= 4),
canceledYear year,
primary key(courseID),
foreign key(teacherID) references teacher(teacherID) on delete cascade on update cascade)
"""
cursor.execute(sql)
result = cursor.fetchall()
print(result)
conn.commit()
finally:
conn.close()
def CreateCourseChooseTable():
try:
conn = pymysql.connect(host=hoster, port=porter, user=username, passwd=pwd, db=database)
print('Connected successfully.')
with conn.cursor() as cursor:
# sql = 'INSERT INTO ZHUA VALUES (13, "BUGUAIZHUA", false);'
sql = """
create table courseChoose
( studentID char(10) not null,
courseID char(7) not null,
chosenYear year not null,
score float(4,1) not null check(score >= 0 and score <= 100),
primary key(courseID, studentID),
foreign key(studentID) references student(studentID) on delete cascade on update cascade,
foreign key(courseID) references course(courseID) on delete cascade on update cascade
)
"""
cursor.execute(sql)
result = cursor.fetchall()
print(result)
conn.commit()
finally:
conn.close()
def AddStudent(studentID, studentName, sex, entranceAge, entranceYear, studentClass):
state = True
try:
conn = pymysql.connect(host=hoster, port=porter, user=username, passwd=pwd, db=database)
print('Connected successfully.')
with conn.cursor() as cursor:
# sql = 'INSERT INTO ZHUA VALUES (13, "BUGUAIZHUA", false);'
sql = """
insert into student values(%s, %s, %s, %s, %s, %s)
"""
try:
cursor.execute(sql, (studentID, studentName, sex, entranceAge, entranceYear, studentClass))
result = cursor.fetchall()
print(result)
except:
print('Insertion failed.')
state = False
conn.commit()
finally:
conn.close()
return state
def AddTeacher(teacherID, teacherName):
state = True
try:
conn = pymysql.connect(host=hoster, port=porter, user=username, passwd=pwd, db=database)
print('Connected successfully.')
with conn.cursor() as cursor:
# sql = 'INSERT INTO ZHUA VALUES (13, "BUGUAIZHUA", false);'
sql = """
insert into teacher values(%s, %s)
"""
try:
cursor.execute(sql, (teacherID, teacherName))
result = cursor.fetchall()
print(result)
except:
print('Insertion failed.')
state = False
conn.commit()
finally:
conn.close()
return state
def AddCourse(courseID, courseName, teacherID, credit, grade, canceledYear=None):
state = True
try:
conn = pymysql.connect(host=hoster, port=porter, user=username, passwd=pwd, db=database)
print('Connected successfully.')
with conn.cursor() as cursor:
# sql = 'INSERT INTO ZHUA VALUES (13, "BUGUAIZHUA", false);'
if(canceledYear == ""):
canceledYear = None
sql = """
insert into course values(%s, %s, %s, %s, %s, %s)
"""
try:
cursor.execute(sql, (courseID, courseName, teacherID, credit, grade, canceledYear))
result = cursor.fetchall()
print(result)
except:
print('Insertion failed.')
state = False
conn.commit()
finally:
conn.close()
return state
def AddCourseChoose(studentID, courseID, teacherID, chosenYear, score):
state = True
try:
conn = pymysql.connect(host=hoster, port=porter, user=username, passwd=pwd, db=database)
print('Connected successfully.')
with conn.cursor() as cursor:
# sql = 'INSERT INTO ZHUA VALUES (13, "BUGUAIZHUA", false);'
sqlCurrentYear = """select date_format(now(),'%Y')
"""
sqlEntranceYear = """
select entranceYear
from student
where studentID = %s
"""
sqlGrade = """
select grade
from course
where courseID = %s
"""
sqlCanceledYear = """
select canceledYear
from course
where courseID = %s
"""
sql = """
insert into courseChoose values(%s, %s, %s, %s)
"""
sqlcheck = """
select *
from course as c
where c.teacherID = %s
and c.courseID = %s
"""
try:
cursor.execute(sqlCurrentYear)
currentYear = cursor.fetchall()[0][0]
print(currentYear)
cursor.execute(sqlEntranceYear,(studentID))
entranceYear = cursor.fetchall()[0][0]
print(entranceYear)
cursor.execute(sqlGrade,(courseID))
grade = cursor.fetchall()[0][0]
print(grade)
cursor.execute(sqlCanceledYear,(courseID))
canceledYear = cursor.fetchall()[0][0]
print(canceledYear)
if((int(currentYear)-int(entranceYear)>=int(grade)-1) and
((canceledYear ==None) or (int(chosenYear)<int(canceledYear)))):
InputCheck = True
else:
InputCheck = False
state = False
print('Insertion invaild')
cursor.execute(sqlcheck, (teacherID, courseID))
checkResult = cursor.fetchall()[0][0]
if (checkResult == None):
InputCheck = False
state = False
print(InputCheck)
if(InputCheck):
cursor.execute(sql, (studentID, courseID, chosenYear, score))
result = cursor.fetchall()
print(result)
except:
print('Insertion failed.')
state = False
conn.commit()
finally:
conn.close()
return state
def DeleteStudent(studentID):
state = True
try:
conn = pymysql.connect(host=hoster, port=porter, user=username, passwd=pwd, db=database)
print('Connected successfully.')
with conn.cursor() as cursor:
# sql = 'INSERT INTO ZHUA VALUES (13, "BUGUAIZHUA", false);'
sql = """
delete from student
where studentID = %s
"""
try:
cursor.execute(sql, (studentID))
result = cursor.fetchall()
print(result)
except:
print('Deletion failed.')
state = False
conn.commit()
finally:
conn.close()
return state
def DeleteTeacher(teacherID):
state = True
try:
conn = pymysql.connect(host=hoster, port=porter, user=username, passwd=pwd, db=database)
print('Connected successfully.')
with conn.cursor() as cursor:
# sql = 'INSERT INTO ZHUA VALUES (13, "BUGUAIZHUA", false);'
sql = """
delete from teacher
where teacherID = %s
"""
try:
cursor.execute(sql, (teacherID))
result = cursor.fetchall()
print(result)
except:
print('Deletion failed.')
state = False
conn.commit()
finally:
conn.close()
return state
def DeleteCourse(courseID):
state = True
try:
conn = pymysql.connect(host=hoster, port=porter, user=username, passwd=pwd, db=database)
print('Connected successfully.')
with conn.cursor() as cursor:
# sql = 'INSERT INTO ZHUA VALUES (13, "BUGUAIZHUA", false);'
sql = """
delete from course
where courseID = %s
"""
try:
cursor.execute(sql, (courseID))
result = cursor.fetchall()
print(result)
except:
print('Deletion failed.')
state = False
conn.commit()
finally:
conn.close()
return state
def DeleteCourseChoose(studentID, courseID):
state = True
try:
conn = pymysql.connect(host=hoster, port=porter, user=username, passwd=pwd, db=database)
print('Connected successfully.')
with conn.cursor() as cursor:
# sql = 'INSERT INTO ZHUA VALUES (13, "BUGUAIZHUA", false);'
sql = """
delete from courseChoose
where studentID = %s and courseID = %s
"""
try:
cursor.execute(sql, (studentID, courseID))
result = cursor.fetchall()
print(result)
except:
print('Deletion failed.')
state = False
conn.commit()
finally:
conn.close()
return state
def UpdateStudent(studentID, studentName, sex, entranceAge, entranceYear, studentClass):
state = True
try:
conn = pymysql.connect(host=hoster, port=porter, user=username, passwd=pwd, db=database)
print('Connected successfully.')
with conn.cursor() as cursor:
# sql = 'INSERT INTO ZHUA VALUES (13, "BUGUAIZHUA", false);'
sqlCurrentYear = """select date_format(now(),'%Y')
"""
sqlMinGrade = """
select min(c.grade)
from course as c, courseChoose as cc
where cc.courseID = c.courseID
and cc.studentID = %s
"""
sql = """
update student
set studentName = %s, sex = %s, entranceAge = %s, entranceYear = %s, class = %s
where studentID = %s
"""
try:
cursor.execute(sqlCurrentYear)
currentYear = cursor.fetchall()[0][0]
print(currentYear)
cursor.execute(sqlMinGrade,(studentID))
minGrade = cursor.fetchall()[0][0]
print(minGrade)
if(minGrade == None or (int(currentYear) - int(entranceYear) >= int(minGrade) - 1) ):
InputCheck = True
else:
InputCheck = False
state = False
print('Update invalid')
print(InputCheck)
if(InputCheck):
cursor.execute(sql, (studentName, sex, entranceAge, entranceYear, studentClass, studentID))
result = cursor.fetchall()
print(result)
except:
print('Update failed.')
state = False
conn.commit()
finally:
conn.close()
return state
def UpdateTeacher(teacherID, teacherName):
state = True
try:
conn = pymysql.connect(host=hoster, port=porter, user=username, passwd=pwd, db=database)
print('Connected successfully.')
with conn.cursor() as cursor:
# sql = 'INSERT INTO ZHUA VALUES (13, "BUGUAIZHUA", false);'
sql = """
update teacher
set teacherName = %s
where teacherID = %s
"""
try:
cursor.execute(sql, (teacherName, teacherID))
result = cursor.fetchall()
print(result)
except:
print('Update failed.')
state = False
conn.commit()
finally:
conn.close()
return state
def UpdateCourse(courseID, courseName, teacherID, credit, grade, canceledYear=None):
state = True
try:
conn = pymysql.connect(host=hoster, port=porter, user=username, passwd=pwd, db=database)
print('Connected successfully.')
if( canceledYear == "" ):
canceledYear = None
with conn.cursor() as cursor:
# sql = 'INSERT INTO ZHUA VALUES (13, "BUGUAIZHUA", false);'
sqlCurrentYear = """select date_format(now(),'%Y')
"""
sqlMaxEntranceYear = """
select max(s.entranceYear)
from student as s, courseChoose as cc
where s.studentID = cc.studentID
and cc.courseID = %s
"""
sqlMaxChosenYear = """
select max(cc.chosenYear)
from courseChoose as cc
where cc.courseID = %s
"""
sql = """
update course
set courseName = %s, teacherID = %s, credit = %s, grade = %s, canceledYear = %s
where courseID = %s
"""
try:
cursor.execute(sqlCurrentYear)
currentYear = cursor.fetchall()[0][0]
print(currentYear)
cursor.execute(sqlMaxEntranceYear,(courseID))
maxEntranceYear = cursor.fetchall()[0][0]
print(maxEntranceYear)
cursor.execute(sqlMaxChosenYear,(courseID))
maxChosenYear = cursor.fetchall()[0][0]
print(maxChosenYear)
if((maxEntranceYear == None or int(currentYear)-int(maxEntranceYear)>= int(grade)-1 )
and (canceledYear == None or int(maxChosenYear)<int(canceledYear) )):
InputCheck = True
# print("Im In")
else:
InputCheck = False
print("Update invalid")
state = False
if(InputCheck):
cursor.execute(sql, (courseName, teacherID, credit, grade, canceledYear, courseID))
result = cursor.fetchall()
print(result)
except:
print('Update failed.')
state = False
conn.commit()
finally:
conn.close()
return state
def UpdateCourseChoose(studentID, courseID, teacherID, chosenYear, score):
state = True
try:
conn = pymysql.connect(host=hoster, port=porter, user=username, passwd=pwd, db=database)
print('Connected successfully.')
with conn.cursor() as cursor:
# sql = 'INSERT INTO ZHUA VALUES (13, "BUGUAIZHUA", false);'
sqlCurrentYear = """select date_format(now(),'%Y')
"""
sqlEntranceYear = """
select entranceYear
from student
where studentID = %s
"""
sqlGrade = """
select grade
from course
where courseID = %s
"""
sqlCanceledYear = """
select canceledYear
from course
where courseID = %s
"""
sql = """
update courseChoose
set chosenYear = %s, score = %s
where studentID = %s and courseID = %s
"""
sqlcheck = """
select *
from course as c
where c.teacherID = %s
and c.courseID = %s
"""
try:
cursor.execute(sqlCurrentYear)
currentYear = cursor.fetchall()[0][0]
# print(currentYear)
cursor.execute(sqlEntranceYear, (studentID))
entranceYear = cursor.fetchall()[0][0]
# print(entranceYear)
cursor.execute(sqlGrade, (courseID))
grade = cursor.fetchall()[0][0]
# print(grade)
cursor.execute(sqlCanceledYear, (courseID))
canceledYear = cursor.fetchall()[0][0]
# print(canceledYear)
if ((int(currentYear) - int(entranceYear) >= int(grade) - 1) and
((canceledYear == None) or (int(chosenYear) < int(canceledYear)))):
InputCheck = True
else:
InputCheck = False
state = False
print('Update invaild')
cursor.execute(sqlcheck, (teacherID, courseID))
checkResult = cursor.fetchall()[0][0]
if (checkResult == None):
InputCheck = False
state = False
print(InputCheck)
if(InputCheck):
cursor.execute(sql, (chosenYear, score, studentID, courseID))
result = cursor.fetchall()
print(result)
except:
print('Update failed.')
state = False
conn.commit()
finally:
conn.close()
return state
def StudentNameToStudent(studentName):
result = ()
try:
conn = pymysql.connect(host=hoster, port=porter, user=username, passwd=pwd, db=database)
print('Connected successfully.')
with conn.cursor() as cursor:
# sql = 'INSERT INTO ZHUA VALUES (13, "BUGUAIZHUA", false);'
sql = """
select *
from student
where studentName = %s
"""
try:
cursor.execute(sql, (studentName))
result = cursor.fetchall()
print(result)
except:
print('Query failed.')
conn.commit()
finally:
conn.close()
return result
def StudentIDToStudent(studentID):
result = ()
try:
conn = pymysql.connect(host=hoster, port=porter, user=username, passwd=pwd, db=database)
print('Connected successfully.')
with conn.cursor() as cursor:
# sql = 'INSERT INTO ZHUA VALUES (13, "BUGUAIZHUA", false);'
sql = """
select *
from student
where studentID = %s
"""
try:
cursor.execute(sql, (studentID))
result = cursor.fetchall()
print(result)
except:
print('Query failed.')
conn.commit()
finally:
conn.close()
return result
def StudentNameToCourseChoose(studentName):
result = ()
try:
conn = pymysql.connect(host=hoster, port=porter, user=username, passwd=pwd, db=database)
print('Connected successfully.')
with conn.cursor() as cursor:
# sql = 'INSERT INTO ZHUA VALUES (13, "BUGUAIZHUA", false);'
sql = """
select c.studentID, c.courseID, co.teacherID, c.chosenYear, c.score
from courseChoose as c, course as co
where c.studentID in
( select s.studentID
from student as s
where s.studentName = %s )
and
c.courseID = co.courseID
"""
try:
cursor.execute(sql, (studentName))
result = cursor.fetchall()
print(result)
except:
print('Query failed.')
conn.commit()
finally:
conn.close()
return(result)
def StudentIDToCourseChoose(studentID):
result = ()
try:
conn = pymysql.connect(host=hoster, port=porter, user=username, passwd=pwd, db=database)
print('Connected successfully.')
with conn.cursor() as cursor:
# sql = 'INSERT INTO ZHUA VALUES (13, "BUGUAIZHUA", false);'
sql = """
select cc.studentID, cc.courseID, c.teacherID, cc.chosenYear, cc.score
from courseChoose as cc, course as c
where cc.studentID = %s
and c.courseID = cc.courseID
"""
try:
cursor.execute(sql, (studentID))
result = cursor.fetchall()
print(result)
except:
print('Query failed.')
conn.commit()
finally:
conn.close()
return result
def StudentNameAndCourseNameToGrade(studentName, courseName):
result = ()
try:
conn = pymysql.connect(host=hoster, port=porter, user=username, passwd=pwd, db=database)
print('Connected successfully.')
with conn.cursor() as cursor:
# sql = 'INSERT INTO ZHUA VALUES (13, "BUGUAIZHUA", false);'
sql = """
select c.studentID, c.courseID, co.teacherID, c.chosenYear, c.score
from courseChoose as c, course as co
where c.studentID in
( select studentID
from student
where studentName = %s )
and c.courseID in
( select courseID
from course
where courseName = %s )
and c.courseID = co.courseID
"""
try:
cursor.execute(sql, (studentName, courseName))
result = cursor.fetchall()
print(result)
except:
print('Query failed.')
conn.commit()
finally:
conn.close()
return result
def StudentNameAndCourseIDToGrade(studentName, courseID):
result = ()
try:
conn = pymysql.connect(host=hoster, port=porter, user=username, passwd=pwd, db=database)
print('Connected successfully.')
with conn.cursor() as cursor:
# sql = 'INSERT INTO ZHUA VALUES (13, "BUGUAIZHUA", false);'
sql = """
select c.studentID, c.courseID, co.teacherID, c.chosenYear, c.score
from courseChoose as c, course as co
where c.studentID in
( select studentID
from student
where studentName = %s )
and c.courseID = %s
and c.courseID = co.courseID
"""
try:
cursor.execute(sql, (studentName, courseID))
result = cursor.fetchall()
print(result)
except:
print('Query failed.')
conn.commit()
finally:
conn.close()
return result
def StudentIDAndCourseNameToGrade(studentID, courseName):
result = ()
try:
conn = pymysql.connect(host=hoster, port=porter, user=username, passwd=pwd, db=database)
print('Connected successfully.')
with conn.cursor() as cursor:
# sql = 'INSERT INTO ZHUA VALUES (13, "BUGUAIZHUA", false);'
sql = """
select c.studentID, c.courseID, co.teacherID, c.chosenYear, c.score
from courseChoose as c, course as co
where c.studentID = %s
and c.courseID in
( select courseID
from course
where courseName = %s )
and c.courseID = co.courseID
"""
try:
cursor.execute(sql, (studentID, courseName))
result = cursor.fetchall()
print(result)
except:
print('Query failed.')
conn.commit()
finally:
conn.close()
return result
def StudentIDAndCourseIDToGrade(studentID, courseID):
result = ()
try:
conn = pymysql.connect(host=hoster, port=porter, user=username, passwd=pwd, db=database)
print('Connected successfully.')
with conn.cursor() as cursor:
# sql = 'INSERT INTO ZHUA VALUES (13, "BUGUAIZHUA", false);'
sql = """
select c.studentID, c.courseID, co.teacherID, c.chosenYear, c.score
from courseChoose as c, course as co
where c.studentID = %s
and c.courseID = %s
and c.courseID = co.courseID
"""
try:
cursor.execute(sql, (studentID, courseID))
result = cursor.fetchall()
print(result)
except:
print('Query failed.')
conn.commit()
finally:
conn.close()
return result
def CourseNameToCourse(courseName):
result = ()
try:
conn = pymysql.connect(host=hoster, port=porter, user=username, passwd=pwd, db=database)
print('Connected successfully.')
with conn.cursor() as cursor:
# sql = 'INSERT INTO ZHUA VALUES (13, "BUGUAIZHUA", false);'
sql = """
select *
from course
where courseName = %s
"""
try:
cursor.execute(sql, (courseName))
result = cursor.fetchall()
print(result)
except:
print('Query failed.')
conn.commit()
finally:
conn.close()
return result
def CourseNameToCourseChoose(courseName):
result = ()
try:
conn = pymysql.connect(host=hoster, port=porter, user=username, passwd=pwd, db=database)
print('Connected successfully.')
with conn.cursor() as cursor:
# sql = 'INSERT INTO ZHUA VALUES (13, "BUGUAIZHUA", false);'
sql = """
select c.studentID, c.courseID, co.teacherID, c.chosenYear, c.score
from courseChoose as c, course as co
where c.courseID in
( select courseID
from course
where courseName = %s)
and c.courseID = co.courseID
"""
try:
cursor.execute(sql, (courseName))
result = cursor.fetchall()
print(result)
except:
print('Query failed.')
conn.commit()
finally:
conn.close()
return result
def CourseIDToCourse(courseID):
result = ()
try:
conn = pymysql.connect(host=hoster, port=porter, user=username, passwd=pwd, db=database)
print('Connected successfully.')
with conn.cursor() as cursor:
# sql = 'INSERT INTO ZHUA VALUES (13, "BUGUAIZHUA", false);'
sql = """
select *
from course
where courseID = %s
"""
try:
cursor.execute(sql, (courseID))
result = cursor.fetchall()
print(result)
except:
print('Query failed.')
conn.commit()
finally:
conn.close()
return result
def CourseIDToCourseChoose(courseID):
result = ()
try:
conn = pymysql.connect(host=hoster, port=porter, user=username, passwd=pwd, db=database)
print('Connected successfully.')
with conn.cursor() as cursor:
# sql = 'INSERT INTO ZHUA VALUES (13, "BUGUAIZHUA", false);'
sql = """
select c.studentID, c.courseID, co.teacherID, c.chosenYear, c.score
from courseChoose as c, course as co
where c.courseID = %s
and c.courseID = co.courseID
"""
try:
cursor.execute(sql, (courseID))
result = cursor.fetchall()
print(result)
except:
print('Query failed.')
conn.commit()
finally:
conn.close()
return result
def TeacherNameToTeacher(teacherName):
result = ()
try:
conn = pymysql.connect(host=hoster, port=porter, user=username, passwd=pwd, db=database)
print('Connected successfully.')
with conn.cursor() as cursor:
# sql = 'INSERT INTO ZHUA VALUES (13, "BUGUAIZHUA", false);'
sql = """
select *
from teacher
where teacherName = %s
"""
try:
cursor.execute(sql, (teacherName))
result = cursor.fetchall()
print(result)
except:
print('Query failed.')
conn.commit()
finally:
conn.close()
return result
def TeacherNameToCourseChoose(teacherName):
result = ()
try:
conn = pymysql.connect(host=hoster, port=porter, user=username, passwd=pwd, db=database)
print('Connected successfully.')
with conn.cursor() as cursor:
# sql = 'INSERT INTO ZHUA VALUES (13, "BUGUAIZHUA", false);'
sql = """
select cc.studentID, cc.courseID, t.teacherID, cc.chosenYear, cc.score
from courseChoose as cc, course as c, teacher as t
where t.teacherID in
( select teacherID
from teacher
where teacherName = %s )
and
t.teacherID = c.teacherID
and
c.courseID = cc.courseID
"""
try:
cursor.execute(sql, (teacherName))
result = cursor.fetchall()
print(result)
except:
print('Query failed.')
conn.commit()
finally:
conn.close()
return result
def TeacherIDToTeacher(teacherID):
result = ()
try:
conn = pymysql.connect(host=hoster, port=porter, user=username, passwd=pwd, db=database)
print('Connected successfully.')
with conn.cursor() as cursor:
# sql = 'INSERT INTO ZHUA VALUES (13, "BUGUAIZHUA", false);'
sql = """
select *
from teacher
where teacherID = %s
"""
try:
cursor.execute(sql, (teacherID))
result = cursor.fetchall()
print(result)
except:
print('Query failed.')
conn.commit()
finally:
conn.close()
return result
def TeacherIDToCourseChoose(teacherID):
result = ()
try:
conn = pymysql.connect(host=hoster, port=porter, user=username, passwd=pwd, db=database)
print('Connected successfully.')
with conn.cursor() as cursor:
# sql = 'INSERT INTO ZHUA VALUES (13, "BUGUAIZHUA", false);'
sql = """
select cc.studentID, cc.courseID, c.teacherID, cc.chosenYear, cc.score
from courseChoose as cc, course as c
where c.teacherID = %s
and
c.courseID = cc.courseID
"""
try:
cursor.execute(sql, (teacherID))
result = cursor.fetchall()
print(result)
except:
print('Query failed.')
conn.commit()
finally:
conn.close()
return result
def AnyStudentNameToScore(studentName):
result = ()
try:
conn = pymysql.connect(host=hoster, port=porter, user=username, passwd=pwd, db=database)
print('Connected successfully.')
with conn.cursor() as cursor:
# sql = 'INSERT INTO ZHUA VALUES (13, "BUGUAIZHUA", false);'
sql = """
select c.studentID, avg(c.score)
from courseChoose as c
where c.studentID in
( select studentID
from student
where studentName = %s )
group by c.studentID
"""
try:
cursor.execute(sql, (studentName))
result = cursor.fetchall()
print(result)
except:
print('Query failed.')
conn.commit()
finally:
conn.close()
return result
def AnyStudentIDToScore(studentID):
result = ()
try:
conn = pymysql.connect(host=hoster, port=porter, user=username, passwd=pwd, db=database)
print('Connected successfully.')
with conn.cursor() as cursor:
# sql = 'INSERT INTO ZHUA VALUES (13, "BUGUAIZHUA", false);'
sql = """
select avg(c.score)
from courseChoose as c
where c.studentID = %s
group by c.studentID
"""
try:
cursor.execute(sql, (studentID))
result = cursor.fetchall()
print(result)
except:
print('Query failed.')
conn.commit()
finally:
conn.close()
return result
def ClassToScore(studentClass):
result = ()
try:
conn = pymysql.connect(host=hoster, port=porter, user=username, passwd=pwd, db=database)
print('Connected successfully.')
with conn.cursor() as cursor:
# sql = 'INSERT INTO ZHUA VALUES (13, "BUGUAIZHUA", false);'
sql = """
select avg(c.score)
from courseChoose as c
where c.studentID in
( select studentID
from student
where class = %s )
"""
try:
cursor.execute(sql, (studentClass))
result = cursor.fetchall()
print(result)
except:
print('Query failed.')
conn.commit()
finally:
conn.close()
return result
def CourseToScore(courseID):
result = ()
try:
conn = pymysql.connect(host=hoster, port=porter, user=username, passwd=pwd, db=database)
print('Connected successfully.')
with conn.cursor() as cursor:
# sql = 'INSERT INTO ZHUA VALUES (13, "BUGUAIZHUA", false);'
sql = """
select avg(c.score)
from courseChoose as c
where c.courseID = %s
"""
try:
cursor.execute(sql, (courseID))
result = cursor.fetchall()
print(result)
except:
print('Query failed.')
conn.commit()
finally:
conn.close()
return result
def ShowAllStudents():
result = ()
try:
conn = pymysql.connect(host=hoster, port=porter, user=username, passwd=pwd, db=database)
print('Connected successfully.')
with conn.cursor() as cursor:
# sql = 'INSERT INTO ZHUA VALUES (13, "BUGUAIZHUA", false);'
sql = """
select *
from student
"""
try:
cursor.execute(sql)
result = cursor.fetchall()
print(result)
except:
print('Query failed.')
conn.commit()
finally:
conn.close()
return result
def ShowAllStudentAvgScore():
result = ()
try:
conn = pymysql.connect(host=hoster, port=porter, user=username, passwd=pwd, db=database)
print('Connected successfully.')
with conn.cursor() as cursor:
# sql = 'INSERT INTO ZHUA VALUES (13, "BUGUAIZHUA", false);'
sql = """
select avg(c.score)
from courseChoose as c
"""
try:
cursor.execute(sql)
result = cursor.fetchall()
print(result)
except:
print('Query failed.')
conn.commit()
finally:
conn.close()
return result
def ShowAllTeacher():
result = ()
try:
conn = pymysql.connect(host=hoster, port=porter, user=username, passwd=pwd, db=database)
print('Connected successfully.')
with conn.cursor() as cursor:
# sql = 'INSERT INTO ZHUA VALUES (13, "BUGUAIZHUA", false);'
sql = """
select *
from teacher
"""
try:
cursor.execute(sql)
result = cursor.fetchall()
print(result)
except:
print('Query failed.')
conn.commit()
finally:
conn.close()
return result
def ShowAllCourse():
result = ()
try:
conn = pymysql.connect(host=hoster, port=porter, user=username, passwd=pwd, db=database)
print('Connected successfully.')
with conn.cursor() as cursor:
# sql = 'INSERT INTO ZHUA VALUES (13, "BUGUAIZHUA", false);'
sql = """
select *
from course
"""
try:
cursor.execute(sql)
result = cursor.fetchall()
print(result)
except:
print('Query failed.')
conn.commit()
finally:
conn.close()
return result
def ShowAllCourseChoose():
result = ()
try:
conn = pymysql.connect(host=hoster, port=porter, user=username, passwd=pwd, db=database)
print('Connected successfully.')
with conn.cursor() as cursor:
# sql = 'INSERT INTO ZHUA VALUES (13, "BUGUAIZHUA", false);'
sql = """
select cc.studentID, cc.courseID, c.teacherID, cc.chosenYear, cc.score
from courseChoose as cc, course as c
where cc.courseID = c.courseID
"""
try:
cursor.execute(sql)
result = cursor.fetchall()
print(result)
except:
print('Query failed.')
conn.commit()
finally:
conn.close()
return result
def IsStudentExist(studentID):
result = []
try:
conn = pymysql.connect(host=hoster, port=porter, user=username, passwd=pwd, db=database)
print('Connected successfully.')
with conn.cursor() as cursor:
# sql = 'INSERT INTO ZHUA VALUES (13, "BUGUAIZHUA", false);'
sql = """
select studentName
from student
where studentID = %s
"""
try:
cursor.execute(sql, (studentID))
studentName = cursor.fetchall()
if studentName == ():
result = (False, ())
else:
result = (True, studentName)
# print(result)
# return result
except:
print('Query failed.')
result = (False, None)
conn.commit()
finally:
conn.close()
return result
def IsTeacherExist(teacherID):
result = []
try:
conn = pymysql.connect(host=hoster, port=porter, user=username, passwd=pwd, db=database)
print('Connected successfully.')
with conn.cursor() as cursor:
# sql = 'INSERT INTO ZHUA VALUES (13, "BUGUAIZHUA", false);'
sql = """
select teacherName
from teacher
where teacherID = %s
"""
try:
cursor.execute(sql, (teacherID))
teacherName = cursor.fetchall()
if teacherName == ():
result = (False, ())
else:
result = (True, teacherName)
# print(result)
# return result
except:
print('Query failed.')
result = (False, None)
conn.commit()
finally:
conn.close()
return result
if __name__ == '__main__':
pass
# CreateStudentTable()
# CreateTeacherTable()
# CreateCourseTable()
# CreateCourseChooseTable()
# print(AddStudent("1234567399", "zzzzzzzzy", "female", "18", "2018", "16jichuang" ))
# print(AddTeacher("12364", "zyy"))
# AddCourse("1234567", "zzzzzzzy'c", "12364", "10.0", "2","2017")
# AddCourseChoose("1234567394","1234567","12364", "2015", "10")
# DeleteStudent("1234567890")
# DeleteCourse("1224321")
# DeleteTeacher("12345")
# DeleteCourseChoose("1234567890", "1234567")
# UpdateStudent("1234567394", "zzy", "male", "18", "2017", "16jichuang")
# UpdateTeacher("12345","zzzy")
# UpdateCourse("1234567", "zzy'c", "12364", "10.0", "4","2018")
# UpdateCourseChoose("1234567394","1234567","12364", "2019", "20")
# print(StudentNameToStudent("zzzzzzzy"))
# StudentIDToStudent("1234567890")
# StudentNameToCourseChoose("zzy")
# StudentIDToCourseChoose("1234567890")
# ShowAllStudents()
# StudentNameAndCourseNameToGrade("zzy", "zzy'c")
# StudentNameAndCourseIDToGrade("zzy", "1234567")
# StudentIDAndCourseNameToGrade("1234567890", "zzy'c")
# StudentIDAndCourseIDToGrade("1234567890", "1234567")
# CourseNameToCourse("zzy'c")
# CourseNameToCourseChoose("zzy'c")
# CourseIDToCourse("1234567")
# CourseIDToCourseChoose("1234567")
# TeacherNameToTeacher("zyy")
# TeacherNameToCourseChoose("zyy")
# TeacherIDToTeacher("12344")
# TeacherIDToCourseChoose("12344")
# AnyStudentNameToScore("zzy")
# AnyStudentIDToScore("1234567890")
# ShowAllStudentAvgScore()
# ClassToScore("16jichuang")
# CourseToScore("1234567")
# print(IsStudentExist("1234567395"))
# print(IsTeacherExist("12345"))
| 35.934389
| 111
| 0.47342
| 3,952
| 47,649
| 5.70496
| 0.054656
| 0.033443
| 0.0271
| 0.042934
| 0.825911
| 0.797037
| 0.783509
| 0.774372
| 0.770425
| 0.764836
| 0
| 0.016417
| 0.428571
| 47,649
| 1,326
| 112
| 35.934389
| 0.811628
| 0.089719
| 0
| 0.842756
| 0
| 0.003534
| 0.339865
| 0.002126
| 0
| 0
| 0
| 0
| 0
| 1
| 0.039753
| false
| 0.039753
| 0.001767
| 0
| 0.078622
| 0.123675
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
dc0781f9f3db822407515413c220f6f39dac00c7
| 34,428
|
py
|
Python
|
tests/assemblers/test_linear.py
|
jasonkena/m2cgen
|
f831d4248fd9e3f47d1fc41fecc9fa94e056406d
|
[
"MIT"
] | 1
|
2021-01-25T09:55:29.000Z
|
2021-01-25T09:55:29.000Z
|
tests/assemblers/test_linear.py
|
jasonkena/m2cgen
|
f831d4248fd9e3f47d1fc41fecc9fa94e056406d
|
[
"MIT"
] | null | null | null |
tests/assemblers/test_linear.py
|
jasonkena/m2cgen
|
f831d4248fd9e3f47d1fc41fecc9fa94e056406d
|
[
"MIT"
] | null | null | null |
import pytest
import numpy as np
import statsmodels.api as sm
from statsmodels.regression.process_regression import ProcessMLE
from lightning.regression import AdaGradRegressor
from lightning.classification import AdaGradClassifier
from sklearn import linear_model
from m2cgen import assemblers, ast
from tests import utils
def test_single_feature():
estimator = linear_model.LinearRegression()
estimator.coef_ = np.array([1])
estimator.intercept_ = np.array([3])
assembler = assemblers.SklearnLinearModelAssembler(estimator)
actual = assembler.assemble()
expected = ast.BinNumExpr(
ast.NumVal(3),
ast.BinNumExpr(
ast.FeatureRef(0),
ast.NumVal(1),
ast.BinNumOpType.MUL),
ast.BinNumOpType.ADD)
assert utils.cmp_exprs(actual, expected)
def test_two_features():
estimator = linear_model.LinearRegression()
estimator.coef_ = np.array([1, 2])
estimator.intercept_ = np.array([3])
assembler = assemblers.SklearnLinearModelAssembler(estimator)
actual = assembler.assemble()
expected = ast.BinNumExpr(
ast.BinNumExpr(
ast.NumVal(3),
ast.BinNumExpr(
ast.FeatureRef(0),
ast.NumVal(1),
ast.BinNumOpType.MUL),
ast.BinNumOpType.ADD),
ast.BinNumExpr(
ast.FeatureRef(1),
ast.NumVal(2),
ast.BinNumOpType.MUL),
ast.BinNumOpType.ADD)
assert utils.cmp_exprs(actual, expected)
def test_multi_class():
estimator = linear_model.LogisticRegression()
estimator.coef_ = np.array([[1, 2], [3, 4], [5, 6]])
estimator.intercept_ = np.array([7, 8, 9])
assembler = assemblers.SklearnLinearModelAssembler(estimator)
actual = assembler.assemble()
expected = ast.VectorVal([
ast.BinNumExpr(
ast.BinNumExpr(
ast.NumVal(7),
ast.BinNumExpr(
ast.FeatureRef(0),
ast.NumVal(1),
ast.BinNumOpType.MUL),
ast.BinNumOpType.ADD),
ast.BinNumExpr(
ast.FeatureRef(1),
ast.NumVal(2),
ast.BinNumOpType.MUL),
ast.BinNumOpType.ADD),
ast.BinNumExpr(
ast.BinNumExpr(
ast.NumVal(8),
ast.BinNumExpr(
ast.FeatureRef(0),
ast.NumVal(3),
ast.BinNumOpType.MUL),
ast.BinNumOpType.ADD),
ast.BinNumExpr(
ast.FeatureRef(1),
ast.NumVal(4),
ast.BinNumOpType.MUL),
ast.BinNumOpType.ADD),
ast.BinNumExpr(
ast.BinNumExpr(
ast.NumVal(9),
ast.BinNumExpr(
ast.FeatureRef(0),
ast.NumVal(5),
ast.BinNumOpType.MUL),
ast.BinNumOpType.ADD),
ast.BinNumExpr(
ast.FeatureRef(1),
ast.NumVal(6),
ast.BinNumOpType.MUL),
ast.BinNumOpType.ADD)])
assert utils.cmp_exprs(actual, expected)
def test_binary_class():
estimator = linear_model.LogisticRegression()
estimator.coef_ = np.array([[1, 2]])
estimator.intercept_ = np.array([3])
assembler = assemblers.SklearnLinearModelAssembler(estimator)
actual = assembler.assemble()
expected = ast.BinNumExpr(
ast.BinNumExpr(
ast.NumVal(3),
ast.BinNumExpr(
ast.FeatureRef(0),
ast.NumVal(1),
ast.BinNumOpType.MUL),
ast.BinNumOpType.ADD),
ast.BinNumExpr(
ast.FeatureRef(1),
ast.NumVal(2),
ast.BinNumOpType.MUL),
ast.BinNumOpType.ADD)
assert utils.cmp_exprs(actual, expected)
def test_statsmodels_wo_const():
estimator = utils.StatsmodelsSklearnLikeWrapper(sm.GLS, {})
_, __, estimator = utils.get_regression_model_trainer()(estimator)
assembler = assemblers.StatsmodelsModelAssemblerSelector(estimator)
actual = assembler.assemble()
feature_weight_mul = [
ast.BinNumExpr(
ast.FeatureRef(0),
ast.NumVal(-0.09519078450227643),
ast.BinNumOpType.MUL),
ast.BinNumExpr(
ast.FeatureRef(1),
ast.NumVal(0.048952926782237956),
ast.BinNumOpType.MUL),
ast.BinNumExpr(
ast.FeatureRef(2),
ast.NumVal(0.007485539189808044),
ast.BinNumOpType.MUL),
ast.BinNumExpr(
ast.FeatureRef(3),
ast.NumVal(2.7302631809978273),
ast.BinNumOpType.MUL),
ast.BinNumExpr(
ast.FeatureRef(4),
ast.NumVal(-2.5078200782168034),
ast.BinNumOpType.MUL),
ast.BinNumExpr(
ast.FeatureRef(5),
ast.NumVal(5.891794660307579),
ast.BinNumOpType.MUL),
ast.BinNumExpr(
ast.FeatureRef(6),
ast.NumVal(-0.008663096157185936),
ast.BinNumOpType.MUL),
ast.BinNumExpr(
ast.FeatureRef(7),
ast.NumVal(-0.9742684875268565),
ast.BinNumOpType.MUL),
ast.BinNumExpr(
ast.FeatureRef(8),
ast.NumVal(0.1591703441858682),
ast.BinNumOpType.MUL),
ast.BinNumExpr(
ast.FeatureRef(9),
ast.NumVal(-0.009351831548409096),
ast.BinNumOpType.MUL),
ast.BinNumExpr(
ast.FeatureRef(10),
ast.NumVal(-0.36395034626096245),
ast.BinNumOpType.MUL),
ast.BinNumExpr(
ast.FeatureRef(11),
ast.NumVal(0.014529018124980565),
ast.BinNumOpType.MUL),
ast.BinNumExpr(
ast.FeatureRef(12),
ast.NumVal(-0.437443877026267),
ast.BinNumOpType.MUL),
]
expected = assemblers.utils.apply_op_to_expressions(
ast.BinNumOpType.ADD,
ast.NumVal(0.0),
*feature_weight_mul)
assert utils.cmp_exprs(actual, expected)
def test_statsmodels_w_const():
estimator = utils.StatsmodelsSklearnLikeWrapper(
sm.GLS,
dict(init=dict(fit_intercept=True)))
_, __, estimator = utils.get_regression_model_trainer()(estimator)
assembler = assemblers.StatsmodelsModelAssemblerSelector(estimator)
actual = assembler.assemble()
feature_weight_mul = [
ast.BinNumExpr(
ast.FeatureRef(0),
ast.NumVal(-0.1086131135490779),
ast.BinNumOpType.MUL),
ast.BinNumExpr(
ast.FeatureRef(1),
ast.NumVal(0.046461486329934965),
ast.BinNumOpType.MUL),
ast.BinNumExpr(
ast.FeatureRef(2),
ast.NumVal(0.027432259970185422),
ast.BinNumOpType.MUL),
ast.BinNumExpr(
ast.FeatureRef(3),
ast.NumVal(2.6160671309537693),
ast.BinNumOpType.MUL),
ast.BinNumExpr(
ast.FeatureRef(4),
ast.NumVal(-17.51793656329748),
ast.BinNumOpType.MUL),
ast.BinNumExpr(
ast.FeatureRef(5),
ast.NumVal(3.7674418196771957),
ast.BinNumOpType.MUL),
ast.BinNumExpr(
ast.FeatureRef(6),
ast.NumVal(-2.1581753172923886e-05),
ast.BinNumOpType.MUL),
ast.BinNumExpr(
ast.FeatureRef(7),
ast.NumVal(-1.4711768622633619),
ast.BinNumOpType.MUL),
ast.BinNumExpr(
ast.FeatureRef(8),
ast.NumVal(0.29567671400629103),
ast.BinNumOpType.MUL),
ast.BinNumExpr(
ast.FeatureRef(9),
ast.NumVal(-0.012233831527258853),
ast.BinNumOpType.MUL),
ast.BinNumExpr(
ast.FeatureRef(10),
ast.NumVal(-0.9220356453705244),
ast.BinNumOpType.MUL),
ast.BinNumExpr(
ast.FeatureRef(11),
ast.NumVal(0.009038220462695548),
ast.BinNumOpType.MUL),
ast.BinNumExpr(
ast.FeatureRef(12),
ast.NumVal(-0.5425830337142312),
ast.BinNumOpType.MUL),
]
expected = assemblers.utils.apply_op_to_expressions(
ast.BinNumOpType.ADD,
ast.NumVal(36.36708074657767),
*feature_weight_mul)
assert utils.cmp_exprs(actual, expected)
@pytest.mark.xfail(raises=ValueError, strict=True)
def test_statsmodels_unknown_constant_position():
estimator = utils.StatsmodelsSklearnLikeWrapper(
sm.GLS,
dict(init=dict(hasconst=True)))
_, __, estimator = utils.get_regression_model_trainer()(estimator)
assembler = assemblers.StatsmodelsModelAssemblerSelector(estimator)
assembler.assemble()
def test_statsmodels_processmle():
estimator = utils.StatsmodelsSklearnLikeWrapper(
ProcessMLE,
dict(init=dict(exog_scale=np.ones(
(len(utils.get_regression_model_trainer().y_train), 2)),
exog_smooth=np.ones(
(len(utils.get_regression_model_trainer().y_train), 2)),
exog_noise=np.ones(
(len(utils.get_regression_model_trainer().y_train), 2)),
time=np.kron(
np.ones(len(utils.get_regression_model_trainer().y_train) // 3),
np.arange(3)),
groups=np.kron(
np.arange(len(utils.get_regression_model_trainer().y_train) // 3),
np.ones(3))),
fit=dict(maxiter=1)))
_, __, estimator = utils.get_regression_model_trainer()(estimator)
assembler = assemblers.ProcessMLEModelAssembler(estimator)
actual = assembler.assemble()
feature_weight_mul = [
ast.BinNumExpr(
ast.FeatureRef(0),
ast.NumVal(-0.0980302102110356),
ast.BinNumOpType.MUL),
ast.BinNumExpr(
ast.FeatureRef(1),
ast.NumVal(0.04863869398287732),
ast.BinNumOpType.MUL),
ast.BinNumExpr(
ast.FeatureRef(2),
ast.NumVal(0.009514054355147874),
ast.BinNumOpType.MUL),
ast.BinNumExpr(
ast.FeatureRef(3),
ast.NumVal(2.977113829322681),
ast.BinNumOpType.MUL),
ast.BinNumExpr(
ast.FeatureRef(4),
ast.NumVal(-2.6048073854474705),
ast.BinNumOpType.MUL),
ast.BinNumExpr(
ast.FeatureRef(5),
ast.NumVal(5.887987153279099),
ast.BinNumOpType.MUL),
ast.BinNumExpr(
ast.FeatureRef(6),
ast.NumVal(-0.008183580358672775),
ast.BinNumOpType.MUL),
ast.BinNumExpr(
ast.FeatureRef(7),
ast.NumVal(-0.996428929917054),
ast.BinNumOpType.MUL),
ast.BinNumExpr(
ast.FeatureRef(8),
ast.NumVal(0.1618353156581333),
ast.BinNumOpType.MUL),
ast.BinNumExpr(
ast.FeatureRef(9),
ast.NumVal(-0.009213049690188308),
ast.BinNumOpType.MUL),
ast.BinNumExpr(
ast.FeatureRef(10),
ast.NumVal(-0.3634816838591863),
ast.BinNumOpType.MUL),
ast.BinNumExpr(
ast.FeatureRef(11),
ast.NumVal(0.014700492832969888),
ast.BinNumOpType.MUL),
ast.BinNumExpr(
ast.FeatureRef(12),
ast.NumVal(-0.4384298738156768),
ast.BinNumOpType.MUL),
]
expected = assemblers.utils.apply_op_to_expressions(
ast.BinNumOpType.ADD,
ast.NumVal(0.0),
*feature_weight_mul)
assert utils.cmp_exprs(actual, expected)
def test_statsmodels_glm_logit_link_func():
estimator = utils.StatsmodelsSklearnLikeWrapper(
sm.GLM,
dict(init=dict(
family=sm.families.Binomial(
sm.families.links.logit())),
fit=dict(maxiter=1)))
estimator = estimator.fit([[1], [2]], [0.1, 0.2])
assembler = assemblers.StatsmodelsModelAssemblerSelector(estimator)
actual = assembler.assemble()
expected = ast.BinNumExpr(
ast.NumVal(1.0),
ast.BinNumExpr(
ast.NumVal(1.0),
ast.ExpExpr(
ast.BinNumExpr(
ast.NumVal(0.0),
ast.BinNumExpr(
ast.NumVal(0.0),
ast.BinNumExpr(
ast.FeatureRef(0),
ast.NumVal(-0.8567815987),
ast.BinNumOpType.MUL),
ast.BinNumOpType.ADD),
ast.BinNumOpType.SUB)),
ast.BinNumOpType.ADD),
ast.BinNumOpType.DIV)
assert utils.cmp_exprs(actual, expected)
def test_statsmodels_glm_power_link_func():
estimator = utils.StatsmodelsSklearnLikeWrapper(
sm.GLM,
dict(init=dict(
family=sm.families.Tweedie(
sm.families.links.Power(3))),
fit=dict(maxiter=1)))
estimator = estimator.fit([[1], [2]], [0.1, 0.2])
assembler = assemblers.StatsmodelsModelAssemblerSelector(estimator)
actual = assembler.assemble()
expected = ast.PowExpr(
ast.BinNumExpr(
ast.NumVal(0.0),
ast.BinNumExpr(
ast.FeatureRef(0),
ast.NumVal(0.0020808009),
ast.BinNumOpType.MUL),
ast.BinNumOpType.ADD),
ast.NumVal(0.3333333333))
assert utils.cmp_exprs(actual, expected)
def test_statsmodels_glm_negative_power_link_func():
estimator = utils.StatsmodelsSklearnLikeWrapper(
sm.GLM,
dict(init=dict(
family=sm.families.Tweedie(
sm.families.links.Power(-3))),
fit=dict(maxiter=1)))
estimator = estimator.fit([[1], [2]], [0.1, 0.2])
assembler = assemblers.StatsmodelsModelAssemblerSelector(estimator)
actual = assembler.assemble()
expected = ast.BinNumExpr(
ast.NumVal(1.0),
ast.PowExpr(
ast.BinNumExpr(
ast.NumVal(0.0),
ast.BinNumExpr(
ast.FeatureRef(0),
ast.NumVal(71.0542398846),
ast.BinNumOpType.MUL),
ast.BinNumOpType.ADD),
ast.NumVal(0.3333333333)),
ast.BinNumOpType.DIV)
assert utils.cmp_exprs(actual, expected)
def test_statsmodels_glm_inverse_power_link_func():
estimator = utils.StatsmodelsSklearnLikeWrapper(
sm.GLM,
dict(init=dict(
family=sm.families.Tweedie(
sm.families.links.Power(-1))),
fit=dict(maxiter=1)))
estimator = estimator.fit([[1], [2]], [0.1, 0.2])
assembler = assemblers.StatsmodelsModelAssemblerSelector(estimator)
actual = assembler.assemble()
expected = ast.BinNumExpr(
ast.NumVal(1.0),
ast.BinNumExpr(
ast.NumVal(0.0),
ast.BinNumExpr(
ast.FeatureRef(0),
ast.NumVal(3.0460921844),
ast.BinNumOpType.MUL),
ast.BinNumOpType.ADD),
ast.BinNumOpType.DIV)
assert utils.cmp_exprs(actual, expected)
def test_statsmodels_glm_inverse_squared_link_func():
estimator = utils.StatsmodelsSklearnLikeWrapper(
sm.GLM,
dict(init=dict(
family=sm.families.Tweedie(
sm.families.links.Power(-2))),
fit=dict(maxiter=1)))
estimator = estimator.fit([[1], [2]], [0.1, 0.2])
assembler = assemblers.StatsmodelsModelAssemblerSelector(estimator)
actual = assembler.assemble()
expected = ast.BinNumExpr(
ast.NumVal(1.0),
ast.SqrtExpr(
ast.BinNumExpr(
ast.NumVal(0.0),
ast.BinNumExpr(
ast.FeatureRef(0),
ast.NumVal(15.1237331741),
ast.BinNumOpType.MUL),
ast.BinNumOpType.ADD)),
ast.BinNumOpType.DIV)
assert utils.cmp_exprs(actual, expected)
def test_statsmodels_glm_sqr_power_link_func():
estimator = utils.StatsmodelsSklearnLikeWrapper(
sm.GLM,
dict(init=dict(
family=sm.families.Tweedie(
sm.families.links.Power(2))),
fit=dict(maxiter=1)))
estimator = estimator.fit([[1], [2]], [0.1, 0.2])
assembler = assemblers.StatsmodelsModelAssemblerSelector(estimator)
actual = assembler.assemble()
expected = ast.SqrtExpr(
ast.BinNumExpr(
ast.NumVal(0.0),
ast.BinNumExpr(
ast.FeatureRef(0),
ast.NumVal(0.0154915480),
ast.BinNumOpType.MUL),
ast.BinNumOpType.ADD))
assert utils.cmp_exprs(actual, expected)
def test_statsmodels_glm_identity_link_func():
estimator = utils.StatsmodelsSklearnLikeWrapper(
sm.GLM,
dict(init=dict(
family=sm.families.Tweedie(
sm.families.links.Power(1))),
fit=dict(maxiter=1)))
estimator = estimator.fit([[1], [2], [3]], [0.1, 0.2, 0.2])
assembler = assemblers.StatsmodelsModelAssemblerSelector(estimator)
actual = assembler.assemble()
expected = ast.BinNumExpr(
ast.NumVal(0.0),
ast.BinNumExpr(
ast.FeatureRef(0),
ast.NumVal(0.0791304348),
ast.BinNumOpType.MUL),
ast.BinNumOpType.ADD)
assert utils.cmp_exprs(actual, expected)
def test_statsmodels_glm_sqrt_link_func():
estimator = utils.StatsmodelsSklearnLikeWrapper(
sm.GLM,
dict(init=dict(
family=sm.families.Poisson(
sm.families.links.sqrt())),
fit=dict(maxiter=1)))
estimator = estimator.fit([[1], [2]], [0.1, 0.2])
assembler = assemblers.StatsmodelsModelAssemblerSelector(estimator)
actual = assembler.assemble()
expected = ast.PowExpr(
ast.BinNumExpr(
ast.NumVal(0.0),
ast.BinNumExpr(
ast.FeatureRef(0),
ast.NumVal(0.2429239017),
ast.BinNumOpType.MUL),
ast.BinNumOpType.ADD),
ast.NumVal(2))
assert utils.cmp_exprs(actual, expected)
def test_statsmodels_glm_log_link_func():
estimator = utils.StatsmodelsSklearnLikeWrapper(
sm.GLM,
dict(init=dict(
family=sm.families.Poisson(
sm.families.links.log())),
fit=dict(maxiter=1)))
estimator = estimator.fit([[1], [2]], [0.1, 0.2])
assembler = assemblers.StatsmodelsModelAssemblerSelector(estimator)
actual = assembler.assemble()
expected = ast.ExpExpr(
ast.BinNumExpr(
ast.NumVal(0.0),
ast.BinNumExpr(
ast.FeatureRef(0),
ast.NumVal(-1.0242053933),
ast.BinNumOpType.MUL),
ast.BinNumOpType.ADD))
assert utils.cmp_exprs(actual, expected)
def test_statsmodels_glm_cloglog_link_func():
estimator = utils.StatsmodelsSklearnLikeWrapper(
sm.GLM,
dict(init=dict(
family=sm.families.Binomial(
sm.families.links.cloglog())),
fit=dict(maxiter=1)))
estimator = estimator.fit([[1], [2]], [0.1, 0.2])
assembler = assemblers.StatsmodelsModelAssemblerSelector(estimator)
actual = assembler.assemble()
expected = ast.BinNumExpr(
ast.NumVal(1.0),
ast.ExpExpr(
ast.BinNumExpr(
ast.NumVal(0.0),
ast.ExpExpr(
ast.BinNumExpr(
ast.NumVal(0.0),
ast.BinNumExpr(
ast.FeatureRef(0),
ast.NumVal(-0.8914468745),
ast.BinNumOpType.MUL),
ast.BinNumOpType.ADD)),
ast.BinNumOpType.SUB)),
ast.BinNumOpType.SUB)
assert utils.cmp_exprs(actual, expected)
def test_statsmodels_glm_negativebinomial_link_func():
estimator = utils.StatsmodelsSklearnLikeWrapper(
sm.GLM,
dict(init=dict(
family=sm.families.NegativeBinomial(
sm.families.links.nbinom())),
fit=dict(maxiter=1)))
estimator = estimator.fit([[1], [2]], [0.1, 0.2])
assembler = assemblers.StatsmodelsModelAssemblerSelector(estimator)
actual = assembler.assemble()
expected = ast.BinNumExpr(
ast.NumVal(-1.0),
ast.BinNumExpr(
ast.NumVal(1.0),
ast.ExpExpr(
ast.BinNumExpr(
ast.NumVal(0.0),
ast.BinNumExpr(
ast.NumVal(0.0),
ast.BinNumExpr(
ast.FeatureRef(0),
ast.NumVal(-1.1079583217),
ast.BinNumOpType.MUL),
ast.BinNumOpType.ADD),
ast.BinNumOpType.SUB)),
ast.BinNumOpType.SUB),
ast.BinNumOpType.DIV)
assert utils.cmp_exprs(actual, expected)
def test_statsmodels_glm_cauchy_link_func():
estimator = utils.StatsmodelsSklearnLikeWrapper(
sm.GLM,
dict(init=dict(
family=sm.families.Binomial(
sm.families.links.cauchy())),
fit=dict(maxiter=1)))
estimator = estimator.fit([[1], [2]], [0.1, 0.2])
assembler = assemblers.StatsmodelsModelAssemblerSelector(estimator)
actual = assembler.assemble()
expected = ast.BinNumExpr(
ast.NumVal(0.5),
ast.BinNumExpr(
ast.AtanExpr(
ast.BinNumExpr(
ast.NumVal(0.0),
ast.BinNumExpr(
ast.FeatureRef(0),
ast.NumVal(-0.7279996905393095),
ast.BinNumOpType.MUL),
ast.BinNumOpType.ADD)),
ast.NumVal(3.141592653589793),
ast.BinNumOpType.DIV),
ast.BinNumOpType.ADD)
assert utils.cmp_exprs(actual, expected)
@pytest.mark.xfail(raises=ValueError, strict=True)
def test_statsmodels_glm_unknown_link_func():
class ValidPowerLink(sm.families.links.Power):
pass
estimator = utils.StatsmodelsSklearnLikeWrapper(
sm.GLM,
dict(init=dict(
family=sm.families.Tweedie(ValidPowerLink(2))),
fit=dict(maxiter=1)))
estimator = estimator.fit([[1], [2]], [0.1, 0.2])
assembler = assemblers.StatsmodelsModelAssemblerSelector(estimator)
assembler.assemble()
def test_sklearn_glm_identity_link_func():
estimator = linear_model.TweedieRegressor(
power=0, link="identity", max_iter=10)
estimator = estimator.fit([[1], [2]], [0.1, 0.2])
assembler = assemblers.SklearnGLMModelAssembler(estimator)
actual = assembler.assemble()
expected = ast.BinNumExpr(
ast.NumVal(0.12),
ast.BinNumExpr(
ast.FeatureRef(0),
ast.NumVal(0.02),
ast.BinNumOpType.MUL),
ast.BinNumOpType.ADD)
assert utils.cmp_exprs(actual, expected)
def test_sklearn_glm_log_link_func():
estimator = linear_model.TweedieRegressor(
power=1, link="log", fit_intercept=False, max_iter=10)
estimator = estimator.fit([[1], [2]], [0.1, 0.2])
assembler = assemblers.SklearnGLMModelAssembler(estimator)
actual = assembler.assemble()
expected = ast.ExpExpr(
ast.BinNumExpr(
ast.NumVal(0.0),
ast.BinNumExpr(
ast.FeatureRef(0),
ast.NumVal(-0.4619711397),
ast.BinNumOpType.MUL),
ast.BinNumOpType.ADD))
assert utils.cmp_exprs(actual, expected)
@pytest.mark.xfail(raises=ValueError, strict=True)
def test_sklearn_glm_unknown_link_func():
estimator = linear_model.TweedieRegressor(
power=1, link="this_link_func_does_not_exist", max_iter=10)
estimator = estimator.fit([[1], [2]], [0.1, 0.2])
assembler = assemblers.SklearnGLMModelAssembler(estimator)
assembler.assemble()
def test_lightning_regression():
estimator = AdaGradRegressor(random_state=1)
utils.get_regression_model_trainer()(estimator)
assembler = assemblers.SklearnLinearModelAssembler(estimator)
actual = assembler.assemble()
feature_weight_mul = [
ast.BinNumExpr(
ast.FeatureRef(0),
ast.NumVal(-0.08558826944690746),
ast.BinNumOpType.MUL),
ast.BinNumExpr(
ast.FeatureRef(1),
ast.NumVal(0.0803724696787377),
ast.BinNumOpType.MUL),
ast.BinNumExpr(
ast.FeatureRef(2),
ast.NumVal(-0.03516743076774846),
ast.BinNumOpType.MUL),
ast.BinNumExpr(
ast.FeatureRef(3),
ast.NumVal(0.26469178947134087),
ast.BinNumOpType.MUL),
ast.BinNumExpr(
ast.FeatureRef(4),
ast.NumVal(0.15651985221012488),
ast.BinNumOpType.MUL),
ast.BinNumExpr(
ast.FeatureRef(5),
ast.NumVal(1.5186399078028587),
ast.BinNumOpType.MUL),
ast.BinNumExpr(
ast.FeatureRef(6),
ast.NumVal(0.10089874009193693),
ast.BinNumOpType.MUL),
ast.BinNumExpr(
ast.FeatureRef(7),
ast.NumVal(-0.011426237067026246),
ast.BinNumOpType.MUL),
ast.BinNumExpr(
ast.FeatureRef(8),
ast.NumVal(0.0861987777487293),
ast.BinNumOpType.MUL),
ast.BinNumExpr(
ast.FeatureRef(9),
ast.NumVal(-0.0057791506839322574),
ast.BinNumOpType.MUL),
ast.BinNumExpr(
ast.FeatureRef(10),
ast.NumVal(0.3357752757550913),
ast.BinNumOpType.MUL),
ast.BinNumExpr(
ast.FeatureRef(11),
ast.NumVal(0.020189965076849486),
ast.BinNumOpType.MUL),
ast.BinNumExpr(
ast.FeatureRef(12),
ast.NumVal(-0.7390647599317609),
ast.BinNumOpType.MUL),
]
expected = assemblers.utils.apply_op_to_expressions(
ast.BinNumOpType.ADD,
ast.NumVal(0.0),
*feature_weight_mul)
assert utils.cmp_exprs(actual, expected)
def test_lightning_binary_class():
estimator = AdaGradClassifier(random_state=1)
utils.get_binary_classification_model_trainer()(estimator)
assembler = assemblers.SklearnLinearModelAssembler(estimator)
actual = assembler.assemble()
feature_weight_mul = [
ast.BinNumExpr(
ast.FeatureRef(0),
ast.NumVal(0.16218889967390476),
ast.BinNumOpType.MUL),
ast.BinNumExpr(
ast.FeatureRef(1),
ast.NumVal(0.10012761963766906),
ast.BinNumOpType.MUL),
ast.BinNumExpr(
ast.FeatureRef(2),
ast.NumVal(0.6289276652681673),
ast.BinNumOpType.MUL),
ast.BinNumExpr(
ast.FeatureRef(3),
ast.NumVal(0.17618420156072845),
ast.BinNumOpType.MUL),
ast.BinNumExpr(
ast.FeatureRef(4),
ast.NumVal(0.0010492096607182045),
ast.BinNumOpType.MUL),
ast.BinNumExpr(
ast.FeatureRef(5),
ast.NumVal(-0.0029135563693806913),
ast.BinNumOpType.MUL),
ast.BinNumExpr(
ast.FeatureRef(6),
ast.NumVal(-0.005923882409142498),
ast.BinNumOpType.MUL),
ast.BinNumExpr(
ast.FeatureRef(7),
ast.NumVal(-0.0023293599172479755),
ast.BinNumOpType.MUL),
ast.BinNumExpr(
ast.FeatureRef(8),
ast.NumVal(0.0020808828960210517),
ast.BinNumOpType.MUL),
ast.BinNumExpr(
ast.FeatureRef(9),
ast.NumVal(0.0009846430705550103),
ast.BinNumOpType.MUL),
ast.BinNumExpr(
ast.FeatureRef(10),
ast.NumVal(0.0010399810925427265),
ast.BinNumOpType.MUL),
ast.BinNumExpr(
ast.FeatureRef(11),
ast.NumVal(0.011203056917272093),
ast.BinNumOpType.MUL),
ast.BinNumExpr(
ast.FeatureRef(12),
ast.NumVal(-0.007271351370867731),
ast.BinNumOpType.MUL),
ast.BinNumExpr(
ast.FeatureRef(13),
ast.NumVal(-0.26333437096804224),
ast.BinNumOpType.MUL),
ast.BinNumExpr(
ast.FeatureRef(14),
ast.NumVal(1.8533543368532444e-05),
ast.BinNumOpType.MUL),
ast.BinNumExpr(
ast.FeatureRef(15),
ast.NumVal(-0.0008266341686278445),
ast.BinNumOpType.MUL),
ast.BinNumExpr(
ast.FeatureRef(16),
ast.NumVal(-0.0011090316301215724),
ast.BinNumOpType.MUL),
ast.BinNumExpr(
ast.FeatureRef(17),
ast.NumVal(-0.0001910857095336291),
ast.BinNumOpType.MUL),
ast.BinNumExpr(
ast.FeatureRef(18),
ast.NumVal(0.00010735116208006556),
ast.BinNumOpType.MUL),
ast.BinNumExpr(
ast.FeatureRef(19),
ast.NumVal(-4.076097659514017e-05),
ast.BinNumOpType.MUL),
ast.BinNumExpr(
ast.FeatureRef(20),
ast.NumVal(0.15300712110146406),
ast.BinNumOpType.MUL),
ast.BinNumExpr(
ast.FeatureRef(21),
ast.NumVal(0.06316277258339074),
ast.BinNumOpType.MUL),
ast.BinNumExpr(
ast.FeatureRef(22),
ast.NumVal(0.495291178977687),
ast.BinNumOpType.MUL),
ast.BinNumExpr(
ast.FeatureRef(23),
ast.NumVal(-0.29589136204657845),
ast.BinNumOpType.MUL),
ast.BinNumExpr(
ast.FeatureRef(24),
ast.NumVal(0.000771932729567487),
ast.BinNumOpType.MUL),
ast.BinNumExpr(
ast.FeatureRef(25),
ast.NumVal(-0.011877978242492428),
ast.BinNumOpType.MUL),
ast.BinNumExpr(
ast.FeatureRef(26),
ast.NumVal(-0.01678004536869617),
ast.BinNumOpType.MUL),
ast.BinNumExpr(
ast.FeatureRef(27),
ast.NumVal(-0.004070431062579625),
ast.BinNumOpType.MUL),
ast.BinNumExpr(
ast.FeatureRef(28),
ast.NumVal(0.001158641497209262),
ast.BinNumOpType.MUL),
ast.BinNumExpr(
ast.FeatureRef(29),
ast.NumVal(0.00010737287732588742),
ast.BinNumOpType.MUL),
]
expected = assemblers.utils.apply_op_to_expressions(
ast.BinNumOpType.ADD,
ast.NumVal(0.0),
*feature_weight_mul)
assert utils.cmp_exprs(actual, expected)
def test_lightning_multi_class():
estimator = AdaGradClassifier(random_state=1)
utils.get_classification_model_trainer()(estimator)
assembler = assemblers.SklearnLinearModelAssembler(estimator)
actual = assembler.assemble()
expected = ast.VectorVal([
ast.BinNumExpr(
ast.BinNumExpr(
ast.BinNumExpr(
ast.BinNumExpr(
ast.NumVal(0.0),
ast.BinNumExpr(
ast.FeatureRef(0),
ast.NumVal(0.09686334892116512),
ast.BinNumOpType.MUL),
ast.BinNumOpType.ADD),
ast.BinNumExpr(
ast.FeatureRef(1),
ast.NumVal(0.32572202133211947),
ast.BinNumOpType.MUL),
ast.BinNumOpType.ADD),
ast.BinNumExpr(
ast.FeatureRef(2),
ast.NumVal(-0.48444233646554424),
ast.BinNumOpType.MUL),
ast.BinNumOpType.ADD),
ast.BinNumExpr(
ast.FeatureRef(3),
ast.NumVal(-0.219719145605816),
ast.BinNumOpType.MUL),
ast.BinNumOpType.ADD),
ast.BinNumExpr(
ast.BinNumExpr(
ast.BinNumExpr(
ast.BinNumExpr(
ast.NumVal(0.0),
ast.BinNumExpr(
ast.FeatureRef(0),
ast.NumVal(-0.1089136473832088),
ast.BinNumOpType.MUL),
ast.BinNumOpType.ADD),
ast.BinNumExpr(
ast.FeatureRef(1),
ast.NumVal(-0.16956003333433572),
ast.BinNumOpType.MUL),
ast.BinNumOpType.ADD),
ast.BinNumExpr(
ast.FeatureRef(2),
ast.NumVal(0.0365531256007199),
ast.BinNumOpType.MUL),
ast.BinNumOpType.ADD),
ast.BinNumExpr(
ast.FeatureRef(3),
ast.NumVal(-0.01016100116780896),
ast.BinNumOpType.MUL),
ast.BinNumOpType.ADD),
ast.BinNumExpr(
ast.BinNumExpr(
ast.BinNumExpr(
ast.BinNumExpr(
ast.NumVal(0.0),
ast.BinNumExpr(
ast.FeatureRef(0),
ast.NumVal(-0.16690339219780817),
ast.BinNumOpType.MUL),
ast.BinNumOpType.ADD),
ast.BinNumExpr(
ast.FeatureRef(1),
ast.NumVal(-0.19466284646233858),
ast.BinNumOpType.MUL),
ast.BinNumOpType.ADD),
ast.BinNumExpr(
ast.FeatureRef(2),
ast.NumVal(0.2953585236360389),
ast.BinNumOpType.MUL),
ast.BinNumOpType.ADD),
ast.BinNumExpr(
ast.FeatureRef(3),
ast.NumVal(0.21288203082531384),
ast.BinNumOpType.MUL),
ast.BinNumOpType.ADD)])
assert utils.cmp_exprs(actual, expected)
| 32.509915
| 78
| 0.558789
| 3,221
| 34,428
| 5.89258
| 0.086619
| 0.137513
| 0.142466
| 0.163014
| 0.844046
| 0.840674
| 0.836459
| 0.797208
| 0.768388
| 0.753425
| 0
| 0.099961
| 0.330806
| 34,428
| 1,058
| 79
| 32.540643
| 0.72386
| 0
| 0
| 0.750271
| 0
| 0
| 0.001162
| 0.000842
| 0
| 0
| 0
| 0
| 0.026059
| 1
| 0.029316
| false
| 0.001086
| 0.009772
| 0
| 0.040174
| 0
| 0
| 0
| 0
| null | 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 8
|
90930d2a54e74db16cafd10adf1c46557efdc765
| 9,322
|
py
|
Python
|
test/test_kernel_computer.py
|
slagtermaarten/TRANSACT
|
249f9585549f7f4bac14a1e314e1c727a7129fa5
|
[
"MIT"
] | 1
|
2022-02-19T17:09:01.000Z
|
2022-02-19T17:09:01.000Z
|
test/test_kernel_computer.py
|
slagtermaarten/TRANSACT
|
249f9585549f7f4bac14a1e314e1c727a7129fa5
|
[
"MIT"
] | 3
|
2021-03-17T07:00:50.000Z
|
2022-03-31T09:38:23.000Z
|
test/test_kernel_computer.py
|
slagtermaarten/TRANSACT
|
249f9585549f7f4bac14a1e314e1c727a7129fa5
|
[
"MIT"
] | 1
|
2022-03-16T15:34:59.000Z
|
2022-03-16T15:34:59.000Z
|
import numpy as np
import pandas as pd
import pytest
from joblib import Parallel, delayed
from transact.kernel_computer import KernelComputer
from transact.matrix_operations import _left_center_kernel, _center_kernel
n_source_samples = 30
n_target_samples = 50
n_dimensions = 400
@pytest.fixture(scope='module')
def source_data():
return np.random.normal(0,1,size=(n_source_samples, n_dimensions))
@pytest.fixture(scope='module')
def target_data():
return np.random.normal(0,1,size=(n_target_samples, n_dimensions))
class TestKernelComputer():
@pytest.fixture(scope='class')
def linear_kernel_computer(self):
return KernelComputer('linear')
@pytest.fixture(scope='class')
def uncentered_linear_kernel_computer(self, source_data, target_data):
return KernelComputer('linear').fit(source_data, target_data, center=False)
@pytest.fixture(scope='class')
def rbf_kernel_computer(self):
return KernelComputer('rbf')
@pytest.fixture(scope='class')
def uncentered_rbf_kernel_computer(self, source_data, target_data):
return KernelComputer('rbf').fit(source_data, target_data, center=False)
def test_source_data_property_no_target(self,
source_data,
linear_kernel_computer):
linear_kernel_computer.source_data = source_data
assert linear_kernel_computer.kernel_matrix_ is None
assert linear_kernel_computer.kernel_submatrices is None
assert linear_kernel_computer.k_s is None
assert linear_kernel_computer.k_t is None
assert linear_kernel_computer.k_st is None
assert linear_kernel_computer.k_ts is None
linear_kernel_computer.source_data = None
def test_source_data_property_with_target(self,
source_data,
target_data,
linear_kernel_computer):
linear_kernel_computer.target_data = target_data
linear_kernel_computer.source_data = source_data
assert linear_kernel_computer.kernel_matrix_ is not None
assert linear_kernel_computer.kernel_submatrices is not None
assert linear_kernel_computer.k_s is not None
assert linear_kernel_computer.k_t is not None
assert linear_kernel_computer.k_st is not None
assert linear_kernel_computer.k_ts is not None
linear_kernel_computer.target_data = None
linear_kernel_computer.source_data = None
def test_target_data_property_no_source(self,
target_data,
linear_kernel_computer):
linear_kernel_computer.target_data = target_data
assert linear_kernel_computer.kernel_matrix_ is None
assert linear_kernel_computer.kernel_submatrices is None
assert linear_kernel_computer.k_s is None
assert linear_kernel_computer.k_t is None
assert linear_kernel_computer.k_st is None
assert linear_kernel_computer.k_ts is None
linear_kernel_computer.target_data = None
def test_target_data_property_with_source(self,
source_data,
target_data,
linear_kernel_computer):
linear_kernel_computer.source_data = source_data
print(linear_kernel_computer._source_data)
linear_kernel_computer.target_data = target_data
assert linear_kernel_computer.kernel_matrix_ is not None
assert linear_kernel_computer.kernel_submatrices is not None
assert linear_kernel_computer.k_s is not None
assert linear_kernel_computer.k_t is not None
assert linear_kernel_computer.k_st is not None
assert linear_kernel_computer.k_ts is not None
linear_kernel_computer.target_data = None
linear_kernel_computer.source_data = None
def test_linear_fit(self,
source_data,
target_data,
linear_kernel_computer):
linear_kernel_computer.fit(source_data, target_data)
assert linear_kernel_computer.kernel_matrix_.shape == (n_source_samples+n_target_samples, n_source_samples+n_target_samples)
assert len(linear_kernel_computer.kernel_submatrices.keys()) == 4
assert 'source' in linear_kernel_computer.kernel_submatrices.keys()
assert 'target' in linear_kernel_computer.kernel_submatrices.keys()
assert 'source-target' in linear_kernel_computer.kernel_submatrices.keys()
assert 'target-source' in linear_kernel_computer.kernel_submatrices.keys()
assert linear_kernel_computer.k_s.shape == (n_source_samples, n_source_samples)
assert linear_kernel_computer.k_t.shape == (n_target_samples, n_target_samples)
assert linear_kernel_computer.k_st.shape == (n_source_samples, n_target_samples)
assert linear_kernel_computer.k_ts.shape == (n_target_samples, n_source_samples)
def test_rbf_fit(self,
source_data,
target_data,
rbf_kernel_computer):
rbf_kernel_computer.fit(source_data, target_data)
assert rbf_kernel_computer.kernel_matrix_.shape == (n_source_samples+n_target_samples, n_source_samples+n_target_samples)
assert len(rbf_kernel_computer.kernel_submatrices.keys()) == 4
assert 'source' in rbf_kernel_computer.kernel_submatrices.keys()
assert 'target' in rbf_kernel_computer.kernel_submatrices.keys()
assert 'source-target' in rbf_kernel_computer.kernel_submatrices.keys()
assert 'target-source' in rbf_kernel_computer.kernel_submatrices.keys()
assert rbf_kernel_computer.k_s.shape == (n_source_samples, n_source_samples)
assert rbf_kernel_computer.k_t.shape == (n_target_samples, n_target_samples)
assert rbf_kernel_computer.k_st.shape == (n_source_samples, n_target_samples)
assert rbf_kernel_computer.k_ts.shape == (n_target_samples, n_source_samples)
def test_center_linear(self,
source_data,
target_data,
linear_kernel_computer,
uncentered_linear_kernel_computer):
linear_kernel_computer.fit(source_data, target_data, center=True)
assert np.any(np.not_equal(linear_kernel_computer.k_s,
uncentered_linear_kernel_computer.k_s))
assert np.any(np.not_equal(linear_kernel_computer.k_t,
uncentered_linear_kernel_computer.k_t))
assert np.any(np.not_equal(linear_kernel_computer.k_st,
uncentered_linear_kernel_computer.k_st))
np.testing.assert_almost_equal(_center_kernel(uncentered_linear_kernel_computer.k_s),
linear_kernel_computer.k_s)
np.testing.assert_almost_equal(_center_kernel(uncentered_linear_kernel_computer.k_t),
linear_kernel_computer.k_t)
np.testing.assert_almost_equal(_center_kernel(uncentered_linear_kernel_computer.k_st),
linear_kernel_computer.k_st)
def test_center_rbf(self,
source_data,
target_data,
rbf_kernel_computer,
uncentered_rbf_kernel_computer):
rbf_kernel_computer.fit(source_data, target_data, center=True)
assert np.any(np.not_equal(rbf_kernel_computer.k_s,
uncentered_rbf_kernel_computer.k_s))
assert np.any(np.not_equal(rbf_kernel_computer.k_t,
uncentered_rbf_kernel_computer.k_t))
assert np.any(np.not_equal(rbf_kernel_computer.k_st,
uncentered_rbf_kernel_computer.k_st))
np.testing.assert_almost_equal(_center_kernel(uncentered_rbf_kernel_computer.k_s),
rbf_kernel_computer.k_s)
np.testing.assert_almost_equal(_center_kernel(uncentered_rbf_kernel_computer.k_t),
rbf_kernel_computer.k_t)
np.testing.assert_almost_equal(_center_kernel(uncentered_rbf_kernel_computer.k_st),
rbf_kernel_computer.k_st)
def test_transform(self,
source_data,
target_data,
rbf_kernel_computer):
rbf_kernel_computer.fit(source_data, target_data)
n_source_samples = source_data.shape[0]
x_target_proj = rbf_kernel_computer.transform(target_data, center=True)
np.testing.assert_almost_equal(x_target_proj[:,n_source_samples:], rbf_kernel_computer.k_t)
np.testing.assert_almost_equal(x_target_proj[:,:n_source_samples], rbf_kernel_computer.k_ts)
n_source_samples = source_data.shape[0]
x_source_proj = rbf_kernel_computer.transform(source_data, center=True)
np.testing.assert_almost_equal(x_source_proj[:,n_source_samples:], rbf_kernel_computer.k_st)
np.testing.assert_almost_equal(x_source_proj[:,:n_source_samples], rbf_kernel_computer.k_s)
| 43.560748
| 132
| 0.679361
| 1,155
| 9,322
| 5.028571
| 0.064069
| 0.260331
| 0.241047
| 0.115702
| 0.917011
| 0.8552
| 0.813533
| 0.792011
| 0.765668
| 0.629132
| 0
| 0.002175
| 0.26003
| 9,322
| 213
| 133
| 43.765258
| 0.839809
| 0
| 0
| 0.436709
| 0
| 0
| 0.013516
| 0
| 0
| 0
| 0
| 0
| 0.379747
| 1
| 0.094937
| false
| 0
| 0.037975
| 0.037975
| 0.177215
| 0.006329
| 0
| 0
| 0
| null | 1
| 1
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 8
|
90d8c2bf2f855b0ea82f915ca99f6937cee9f588
| 99
|
py
|
Python
|
djhl/user/tests/test_apps.py
|
serlus/DjHL
|
aab86de0577b3e976709208e74f217315f582285
|
[
"BSD-3-Clause"
] | 2
|
2020-06-18T23:23:08.000Z
|
2021-09-26T10:46:24.000Z
|
djhl/user/tests/test_apps.py
|
serlus/DjHL
|
aab86de0577b3e976709208e74f217315f582285
|
[
"BSD-3-Clause"
] | 105
|
2020-06-17T19:40:51.000Z
|
2022-03-01T20:23:04.000Z
|
djhl/user/tests/test_apps.py
|
serlus/DjHL
|
aab86de0577b3e976709208e74f217315f582285
|
[
"BSD-3-Clause"
] | 6
|
2020-06-18T22:53:30.000Z
|
2020-09-19T01:43:37.000Z
|
from djhl.user.apps import UserConfig
def test_core():
assert UserConfig.name == "djhl.user"
| 16.5
| 41
| 0.727273
| 14
| 99
| 5.071429
| 0.785714
| 0.225352
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.161616
| 99
| 5
| 42
| 19.8
| 0.855422
| 0
| 0
| 0
| 0
| 0
| 0.090909
| 0
| 0
| 0
| 0
| 0
| 0.333333
| 1
| 0.333333
| true
| 0
| 0.333333
| 0
| 0.666667
| 0
| 1
| 0
| 0
| null | 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 7
|
2908d2803224c7620bdff8f5b8ffe7bd7f1bb809
| 293,410
|
py
|
Python
|
msgraph-cli-extensions/v1_0/calendar_v1_0/azext_calendar_v1_0/vendored_sdks/calendar/models/_calendar_enums.py
|
thewahome/msgraph-cli
|
33127d9efa23a0e5f5303c93242fbdbb73348671
|
[
"MIT"
] | null | null | null |
msgraph-cli-extensions/v1_0/calendar_v1_0/azext_calendar_v1_0/vendored_sdks/calendar/models/_calendar_enums.py
|
thewahome/msgraph-cli
|
33127d9efa23a0e5f5303c93242fbdbb73348671
|
[
"MIT"
] | 22
|
2022-03-29T22:54:37.000Z
|
2022-03-29T22:55:27.000Z
|
msgraph-cli-extensions/v1_0/calendar_v1_0/azext_calendar_v1_0/vendored_sdks/calendar/models/_calendar_enums.py
|
thewahome/msgraph-cli
|
33127d9efa23a0e5f5303c93242fbdbb73348671
|
[
"MIT"
] | null | null | null |
# coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
# --------------------------------------------------------------------------
from enum import Enum, EnumMeta
from six import with_metaclass
class _CaseInsensitiveEnumMeta(EnumMeta):
def __getitem__(self, name):
return super().__getitem__(name.upper())
def __getattr__(cls, name):
"""Return the enum member matching `name`
We use __getattr__ instead of descriptors or inserting into the enum
class' __dict__ in order to support `name` and `value` being both
properties for enum members (which live in the class' __dict__) and
enum members themselves.
"""
try:
return cls._member_map_[name.upper()]
except KeyError:
raise AttributeError(name)
class Enum100(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
ID = "id"
VALUE = "value"
class Enum101(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
ID = "id"
ID_DESC = "id desc"
class Enum102(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
ID = "id"
ID_DESC = "id desc"
CATEGORIES = "categories"
CATEGORIES_DESC = "categories desc"
CHANGE_KEY = "changeKey"
CHANGE_KEY_DESC = "changeKey desc"
CREATED_DATE_TIME = "createdDateTime"
CREATED_DATE_TIME_DESC = "createdDateTime desc"
LAST_MODIFIED_DATE_TIME = "lastModifiedDateTime"
LAST_MODIFIED_DATE_TIME_DESC = "lastModifiedDateTime desc"
ALLOW_NEW_TIME_PROPOSALS = "allowNewTimeProposals"
ALLOW_NEW_TIME_PROPOSALS_DESC = "allowNewTimeProposals desc"
ATTENDEES = "attendees"
ATTENDEES_DESC = "attendees desc"
BODY = "body"
BODY_DESC = "body desc"
BODY_PREVIEW = "bodyPreview"
BODY_PREVIEW_DESC = "bodyPreview desc"
END = "end"
END_DESC = "end desc"
HAS_ATTACHMENTS = "hasAttachments"
HAS_ATTACHMENTS_DESC = "hasAttachments desc"
I_CAL_U_ID = "iCalUId"
I_CAL_U_ID_DESC = "iCalUId desc"
IMPORTANCE = "importance"
IMPORTANCE_DESC = "importance desc"
IS_ALL_DAY = "isAllDay"
IS_ALL_DAY_DESC = "isAllDay desc"
IS_CANCELLED = "isCancelled"
IS_CANCELLED_DESC = "isCancelled desc"
IS_ONLINE_MEETING = "isOnlineMeeting"
IS_ONLINE_MEETING_DESC = "isOnlineMeeting desc"
IS_ORGANIZER = "isOrganizer"
IS_ORGANIZER_DESC = "isOrganizer desc"
IS_REMINDER_ON = "isReminderOn"
IS_REMINDER_ON_DESC = "isReminderOn desc"
LOCATION = "location"
LOCATION_DESC = "location desc"
LOCATIONS = "locations"
LOCATIONS_DESC = "locations desc"
ONLINE_MEETING = "onlineMeeting"
ONLINE_MEETING_DESC = "onlineMeeting desc"
ONLINE_MEETING_PROVIDER = "onlineMeetingProvider"
ONLINE_MEETING_PROVIDER_DESC = "onlineMeetingProvider desc"
ONLINE_MEETING_URL = "onlineMeetingUrl"
ONLINE_MEETING_URL_DESC = "onlineMeetingUrl desc"
ORGANIZER = "organizer"
ORGANIZER_DESC = "organizer desc"
ORIGINAL_END_TIME_ZONE = "originalEndTimeZone"
ORIGINAL_END_TIME_ZONE_DESC = "originalEndTimeZone desc"
ORIGINAL_START = "originalStart"
ORIGINAL_START_DESC = "originalStart desc"
ORIGINAL_START_TIME_ZONE = "originalStartTimeZone"
ORIGINAL_START_TIME_ZONE_DESC = "originalStartTimeZone desc"
RECURRENCE = "recurrence"
RECURRENCE_DESC = "recurrence desc"
REMINDER_MINUTES_BEFORE_START = "reminderMinutesBeforeStart"
REMINDER_MINUTES_BEFORE_START_DESC = "reminderMinutesBeforeStart desc"
RESPONSE_REQUESTED = "responseRequested"
RESPONSE_REQUESTED_DESC = "responseRequested desc"
RESPONSE_STATUS = "responseStatus"
RESPONSE_STATUS_DESC = "responseStatus desc"
SENSITIVITY = "sensitivity"
SENSITIVITY_DESC = "sensitivity desc"
SERIES_MASTER_ID = "seriesMasterId"
SERIES_MASTER_ID_DESC = "seriesMasterId desc"
SHOW_AS = "showAs"
SHOW_AS_DESC = "showAs desc"
START = "start"
START_DESC = "start desc"
SUBJECT = "subject"
SUBJECT_DESC = "subject desc"
TRANSACTION_ID = "transactionId"
TRANSACTION_ID_DESC = "transactionId desc"
TYPE = "type"
TYPE_DESC = "type desc"
WEB_LINK = "webLink"
WEB_LINK_DESC = "webLink desc"
class Enum103(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
ID = "id"
CATEGORIES = "categories"
CHANGE_KEY = "changeKey"
CREATED_DATE_TIME = "createdDateTime"
LAST_MODIFIED_DATE_TIME = "lastModifiedDateTime"
ALLOW_NEW_TIME_PROPOSALS = "allowNewTimeProposals"
ATTENDEES = "attendees"
BODY = "body"
BODY_PREVIEW = "bodyPreview"
END = "end"
HAS_ATTACHMENTS = "hasAttachments"
I_CAL_U_ID = "iCalUId"
IMPORTANCE = "importance"
IS_ALL_DAY = "isAllDay"
IS_CANCELLED = "isCancelled"
IS_ONLINE_MEETING = "isOnlineMeeting"
IS_ORGANIZER = "isOrganizer"
IS_REMINDER_ON = "isReminderOn"
LOCATION = "location"
LOCATIONS = "locations"
ONLINE_MEETING = "onlineMeeting"
ONLINE_MEETING_PROVIDER = "onlineMeetingProvider"
ONLINE_MEETING_URL = "onlineMeetingUrl"
ORGANIZER = "organizer"
ORIGINAL_END_TIME_ZONE = "originalEndTimeZone"
ORIGINAL_START = "originalStart"
ORIGINAL_START_TIME_ZONE = "originalStartTimeZone"
RECURRENCE = "recurrence"
REMINDER_MINUTES_BEFORE_START = "reminderMinutesBeforeStart"
RESPONSE_REQUESTED = "responseRequested"
RESPONSE_STATUS = "responseStatus"
SENSITIVITY = "sensitivity"
SERIES_MASTER_ID = "seriesMasterId"
SHOW_AS = "showAs"
START = "start"
SUBJECT = "subject"
TRANSACTION_ID = "transactionId"
TYPE = "type"
WEB_LINK = "webLink"
ATTACHMENTS = "attachments"
CALENDAR = "calendar"
EXTENSIONS = "extensions"
INSTANCES = "instances"
MULTI_VALUE_EXTENDED_PROPERTIES = "multiValueExtendedProperties"
SINGLE_VALUE_EXTENDED_PROPERTIES = "singleValueExtendedProperties"
class Enum104(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
ASTERISK = "*"
ATTACHMENTS = "attachments"
CALENDAR = "calendar"
EXTENSIONS = "extensions"
INSTANCES = "instances"
MULTI_VALUE_EXTENDED_PROPERTIES = "multiValueExtendedProperties"
SINGLE_VALUE_EXTENDED_PROPERTIES = "singleValueExtendedProperties"
class Enum105(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
ID = "id"
CATEGORIES = "categories"
CHANGE_KEY = "changeKey"
CREATED_DATE_TIME = "createdDateTime"
LAST_MODIFIED_DATE_TIME = "lastModifiedDateTime"
ALLOW_NEW_TIME_PROPOSALS = "allowNewTimeProposals"
ATTENDEES = "attendees"
BODY = "body"
BODY_PREVIEW = "bodyPreview"
END = "end"
HAS_ATTACHMENTS = "hasAttachments"
I_CAL_U_ID = "iCalUId"
IMPORTANCE = "importance"
IS_ALL_DAY = "isAllDay"
IS_CANCELLED = "isCancelled"
IS_ONLINE_MEETING = "isOnlineMeeting"
IS_ORGANIZER = "isOrganizer"
IS_REMINDER_ON = "isReminderOn"
LOCATION = "location"
LOCATIONS = "locations"
ONLINE_MEETING = "onlineMeeting"
ONLINE_MEETING_PROVIDER = "onlineMeetingProvider"
ONLINE_MEETING_URL = "onlineMeetingUrl"
ORGANIZER = "organizer"
ORIGINAL_END_TIME_ZONE = "originalEndTimeZone"
ORIGINAL_START = "originalStart"
ORIGINAL_START_TIME_ZONE = "originalStartTimeZone"
RECURRENCE = "recurrence"
REMINDER_MINUTES_BEFORE_START = "reminderMinutesBeforeStart"
RESPONSE_REQUESTED = "responseRequested"
RESPONSE_STATUS = "responseStatus"
SENSITIVITY = "sensitivity"
SERIES_MASTER_ID = "seriesMasterId"
SHOW_AS = "showAs"
START = "start"
SUBJECT = "subject"
TRANSACTION_ID = "transactionId"
TYPE = "type"
WEB_LINK = "webLink"
ATTACHMENTS = "attachments"
CALENDAR = "calendar"
EXTENSIONS = "extensions"
INSTANCES = "instances"
MULTI_VALUE_EXTENDED_PROPERTIES = "multiValueExtendedProperties"
SINGLE_VALUE_EXTENDED_PROPERTIES = "singleValueExtendedProperties"
class Enum106(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
ASTERISK = "*"
ATTACHMENTS = "attachments"
CALENDAR = "calendar"
EXTENSIONS = "extensions"
INSTANCES = "instances"
MULTI_VALUE_EXTENDED_PROPERTIES = "multiValueExtendedProperties"
SINGLE_VALUE_EXTENDED_PROPERTIES = "singleValueExtendedProperties"
class Enum107(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
ID = "id"
ID_DESC = "id desc"
VALUE = "value"
VALUE_DESC = "value desc"
class Enum108(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
ID = "id"
VALUE = "value"
class Enum109(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
ID = "id"
VALUE = "value"
class Enum110(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
ID = "id"
ID_DESC = "id desc"
VALUE = "value"
VALUE_DESC = "value desc"
class Enum111(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
ID = "id"
VALUE = "value"
class Enum112(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
ID = "id"
VALUE = "value"
class Enum113(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
ID = "id"
ID_DESC = "id desc"
CATEGORIES = "categories"
CATEGORIES_DESC = "categories desc"
CHANGE_KEY = "changeKey"
CHANGE_KEY_DESC = "changeKey desc"
CREATED_DATE_TIME = "createdDateTime"
CREATED_DATE_TIME_DESC = "createdDateTime desc"
LAST_MODIFIED_DATE_TIME = "lastModifiedDateTime"
LAST_MODIFIED_DATE_TIME_DESC = "lastModifiedDateTime desc"
ALLOW_NEW_TIME_PROPOSALS = "allowNewTimeProposals"
ALLOW_NEW_TIME_PROPOSALS_DESC = "allowNewTimeProposals desc"
ATTENDEES = "attendees"
ATTENDEES_DESC = "attendees desc"
BODY = "body"
BODY_DESC = "body desc"
BODY_PREVIEW = "bodyPreview"
BODY_PREVIEW_DESC = "bodyPreview desc"
END = "end"
END_DESC = "end desc"
HAS_ATTACHMENTS = "hasAttachments"
HAS_ATTACHMENTS_DESC = "hasAttachments desc"
I_CAL_U_ID = "iCalUId"
I_CAL_U_ID_DESC = "iCalUId desc"
IMPORTANCE = "importance"
IMPORTANCE_DESC = "importance desc"
IS_ALL_DAY = "isAllDay"
IS_ALL_DAY_DESC = "isAllDay desc"
IS_CANCELLED = "isCancelled"
IS_CANCELLED_DESC = "isCancelled desc"
IS_ONLINE_MEETING = "isOnlineMeeting"
IS_ONLINE_MEETING_DESC = "isOnlineMeeting desc"
IS_ORGANIZER = "isOrganizer"
IS_ORGANIZER_DESC = "isOrganizer desc"
IS_REMINDER_ON = "isReminderOn"
IS_REMINDER_ON_DESC = "isReminderOn desc"
LOCATION = "location"
LOCATION_DESC = "location desc"
LOCATIONS = "locations"
LOCATIONS_DESC = "locations desc"
ONLINE_MEETING = "onlineMeeting"
ONLINE_MEETING_DESC = "onlineMeeting desc"
ONLINE_MEETING_PROVIDER = "onlineMeetingProvider"
ONLINE_MEETING_PROVIDER_DESC = "onlineMeetingProvider desc"
ONLINE_MEETING_URL = "onlineMeetingUrl"
ONLINE_MEETING_URL_DESC = "onlineMeetingUrl desc"
ORGANIZER = "organizer"
ORGANIZER_DESC = "organizer desc"
ORIGINAL_END_TIME_ZONE = "originalEndTimeZone"
ORIGINAL_END_TIME_ZONE_DESC = "originalEndTimeZone desc"
ORIGINAL_START = "originalStart"
ORIGINAL_START_DESC = "originalStart desc"
ORIGINAL_START_TIME_ZONE = "originalStartTimeZone"
ORIGINAL_START_TIME_ZONE_DESC = "originalStartTimeZone desc"
RECURRENCE = "recurrence"
RECURRENCE_DESC = "recurrence desc"
REMINDER_MINUTES_BEFORE_START = "reminderMinutesBeforeStart"
REMINDER_MINUTES_BEFORE_START_DESC = "reminderMinutesBeforeStart desc"
RESPONSE_REQUESTED = "responseRequested"
RESPONSE_REQUESTED_DESC = "responseRequested desc"
RESPONSE_STATUS = "responseStatus"
RESPONSE_STATUS_DESC = "responseStatus desc"
SENSITIVITY = "sensitivity"
SENSITIVITY_DESC = "sensitivity desc"
SERIES_MASTER_ID = "seriesMasterId"
SERIES_MASTER_ID_DESC = "seriesMasterId desc"
SHOW_AS = "showAs"
SHOW_AS_DESC = "showAs desc"
START = "start"
START_DESC = "start desc"
SUBJECT = "subject"
SUBJECT_DESC = "subject desc"
TRANSACTION_ID = "transactionId"
TRANSACTION_ID_DESC = "transactionId desc"
TYPE = "type"
TYPE_DESC = "type desc"
WEB_LINK = "webLink"
WEB_LINK_DESC = "webLink desc"
class Enum114(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
ID = "id"
CATEGORIES = "categories"
CHANGE_KEY = "changeKey"
CREATED_DATE_TIME = "createdDateTime"
LAST_MODIFIED_DATE_TIME = "lastModifiedDateTime"
ALLOW_NEW_TIME_PROPOSALS = "allowNewTimeProposals"
ATTENDEES = "attendees"
BODY = "body"
BODY_PREVIEW = "bodyPreview"
END = "end"
HAS_ATTACHMENTS = "hasAttachments"
I_CAL_U_ID = "iCalUId"
IMPORTANCE = "importance"
IS_ALL_DAY = "isAllDay"
IS_CANCELLED = "isCancelled"
IS_ONLINE_MEETING = "isOnlineMeeting"
IS_ORGANIZER = "isOrganizer"
IS_REMINDER_ON = "isReminderOn"
LOCATION = "location"
LOCATIONS = "locations"
ONLINE_MEETING = "onlineMeeting"
ONLINE_MEETING_PROVIDER = "onlineMeetingProvider"
ONLINE_MEETING_URL = "onlineMeetingUrl"
ORGANIZER = "organizer"
ORIGINAL_END_TIME_ZONE = "originalEndTimeZone"
ORIGINAL_START = "originalStart"
ORIGINAL_START_TIME_ZONE = "originalStartTimeZone"
RECURRENCE = "recurrence"
REMINDER_MINUTES_BEFORE_START = "reminderMinutesBeforeStart"
RESPONSE_REQUESTED = "responseRequested"
RESPONSE_STATUS = "responseStatus"
SENSITIVITY = "sensitivity"
SERIES_MASTER_ID = "seriesMasterId"
SHOW_AS = "showAs"
START = "start"
SUBJECT = "subject"
TRANSACTION_ID = "transactionId"
TYPE = "type"
WEB_LINK = "webLink"
ATTACHMENTS = "attachments"
CALENDAR = "calendar"
EXTENSIONS = "extensions"
INSTANCES = "instances"
MULTI_VALUE_EXTENDED_PROPERTIES = "multiValueExtendedProperties"
SINGLE_VALUE_EXTENDED_PROPERTIES = "singleValueExtendedProperties"
class Enum115(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
ASTERISK = "*"
ATTACHMENTS = "attachments"
CALENDAR = "calendar"
EXTENSIONS = "extensions"
INSTANCES = "instances"
MULTI_VALUE_EXTENDED_PROPERTIES = "multiValueExtendedProperties"
SINGLE_VALUE_EXTENDED_PROPERTIES = "singleValueExtendedProperties"
class Enum116(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
ID = "id"
CATEGORIES = "categories"
CHANGE_KEY = "changeKey"
CREATED_DATE_TIME = "createdDateTime"
LAST_MODIFIED_DATE_TIME = "lastModifiedDateTime"
ALLOW_NEW_TIME_PROPOSALS = "allowNewTimeProposals"
ATTENDEES = "attendees"
BODY = "body"
BODY_PREVIEW = "bodyPreview"
END = "end"
HAS_ATTACHMENTS = "hasAttachments"
I_CAL_U_ID = "iCalUId"
IMPORTANCE = "importance"
IS_ALL_DAY = "isAllDay"
IS_CANCELLED = "isCancelled"
IS_ONLINE_MEETING = "isOnlineMeeting"
IS_ORGANIZER = "isOrganizer"
IS_REMINDER_ON = "isReminderOn"
LOCATION = "location"
LOCATIONS = "locations"
ONLINE_MEETING = "onlineMeeting"
ONLINE_MEETING_PROVIDER = "onlineMeetingProvider"
ONLINE_MEETING_URL = "onlineMeetingUrl"
ORGANIZER = "organizer"
ORIGINAL_END_TIME_ZONE = "originalEndTimeZone"
ORIGINAL_START = "originalStart"
ORIGINAL_START_TIME_ZONE = "originalStartTimeZone"
RECURRENCE = "recurrence"
REMINDER_MINUTES_BEFORE_START = "reminderMinutesBeforeStart"
RESPONSE_REQUESTED = "responseRequested"
RESPONSE_STATUS = "responseStatus"
SENSITIVITY = "sensitivity"
SERIES_MASTER_ID = "seriesMasterId"
SHOW_AS = "showAs"
START = "start"
SUBJECT = "subject"
TRANSACTION_ID = "transactionId"
TYPE = "type"
WEB_LINK = "webLink"
ATTACHMENTS = "attachments"
CALENDAR = "calendar"
EXTENSIONS = "extensions"
INSTANCES = "instances"
MULTI_VALUE_EXTENDED_PROPERTIES = "multiValueExtendedProperties"
SINGLE_VALUE_EXTENDED_PROPERTIES = "singleValueExtendedProperties"
class Enum117(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
ASTERISK = "*"
ATTACHMENTS = "attachments"
CALENDAR = "calendar"
EXTENSIONS = "extensions"
INSTANCES = "instances"
MULTI_VALUE_EXTENDED_PROPERTIES = "multiValueExtendedProperties"
SINGLE_VALUE_EXTENDED_PROPERTIES = "singleValueExtendedProperties"
class Enum118(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
ID = "id"
ID_DESC = "id desc"
CONTENT_TYPE = "contentType"
CONTENT_TYPE_DESC = "contentType desc"
IS_INLINE = "isInline"
IS_INLINE_DESC = "isInline desc"
LAST_MODIFIED_DATE_TIME = "lastModifiedDateTime"
LAST_MODIFIED_DATE_TIME_DESC = "lastModifiedDateTime desc"
NAME = "name"
NAME_DESC = "name desc"
SIZE = "size"
SIZE_DESC = "size desc"
class Enum119(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
ID = "id"
CONTENT_TYPE = "contentType"
IS_INLINE = "isInline"
LAST_MODIFIED_DATE_TIME = "lastModifiedDateTime"
NAME = "name"
SIZE = "size"
class Enum120(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
ID = "id"
CONTENT_TYPE = "contentType"
IS_INLINE = "isInline"
LAST_MODIFIED_DATE_TIME = "lastModifiedDateTime"
NAME = "name"
SIZE = "size"
class Enum121(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
ID = "id"
ALLOWED_ONLINE_MEETING_PROVIDERS = "allowedOnlineMeetingProviders"
CAN_EDIT = "canEdit"
CAN_SHARE = "canShare"
CAN_VIEW_PRIVATE_ITEMS = "canViewPrivateItems"
CHANGE_KEY = "changeKey"
COLOR = "color"
DEFAULT_ONLINE_MEETING_PROVIDER = "defaultOnlineMeetingProvider"
IS_REMOVABLE = "isRemovable"
IS_TALLYING_RESPONSES = "isTallyingResponses"
NAME = "name"
OWNER = "owner"
CALENDAR_PERMISSIONS = "calendarPermissions"
CALENDAR_VIEW = "calendarView"
EVENTS = "events"
MULTI_VALUE_EXTENDED_PROPERTIES = "multiValueExtendedProperties"
SINGLE_VALUE_EXTENDED_PROPERTIES = "singleValueExtendedProperties"
class Enum122(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
ASTERISK = "*"
CALENDAR_PERMISSIONS = "calendarPermissions"
CALENDAR_VIEW = "calendarView"
EVENTS = "events"
MULTI_VALUE_EXTENDED_PROPERTIES = "multiValueExtendedProperties"
SINGLE_VALUE_EXTENDED_PROPERTIES = "singleValueExtendedProperties"
class Enum123(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
ID = "id"
ID_DESC = "id desc"
ALLOWED_ROLES = "allowedRoles"
ALLOWED_ROLES_DESC = "allowedRoles desc"
EMAIL_ADDRESS = "emailAddress"
EMAIL_ADDRESS_DESC = "emailAddress desc"
IS_INSIDE_ORGANIZATION = "isInsideOrganization"
IS_INSIDE_ORGANIZATION_DESC = "isInsideOrganization desc"
IS_REMOVABLE = "isRemovable"
IS_REMOVABLE_DESC = "isRemovable desc"
ROLE = "role"
ROLE_DESC = "role desc"
class Enum124(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
ID = "id"
ALLOWED_ROLES = "allowedRoles"
EMAIL_ADDRESS = "emailAddress"
IS_INSIDE_ORGANIZATION = "isInsideOrganization"
IS_REMOVABLE = "isRemovable"
ROLE = "role"
class Enum125(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
ID = "id"
ALLOWED_ROLES = "allowedRoles"
EMAIL_ADDRESS = "emailAddress"
IS_INSIDE_ORGANIZATION = "isInsideOrganization"
IS_REMOVABLE = "isRemovable"
ROLE = "role"
class Enum126(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
ID = "id"
ID_DESC = "id desc"
CATEGORIES = "categories"
CATEGORIES_DESC = "categories desc"
CHANGE_KEY = "changeKey"
CHANGE_KEY_DESC = "changeKey desc"
CREATED_DATE_TIME = "createdDateTime"
CREATED_DATE_TIME_DESC = "createdDateTime desc"
LAST_MODIFIED_DATE_TIME = "lastModifiedDateTime"
LAST_MODIFIED_DATE_TIME_DESC = "lastModifiedDateTime desc"
ALLOW_NEW_TIME_PROPOSALS = "allowNewTimeProposals"
ALLOW_NEW_TIME_PROPOSALS_DESC = "allowNewTimeProposals desc"
ATTENDEES = "attendees"
ATTENDEES_DESC = "attendees desc"
BODY = "body"
BODY_DESC = "body desc"
BODY_PREVIEW = "bodyPreview"
BODY_PREVIEW_DESC = "bodyPreview desc"
END = "end"
END_DESC = "end desc"
HAS_ATTACHMENTS = "hasAttachments"
HAS_ATTACHMENTS_DESC = "hasAttachments desc"
I_CAL_U_ID = "iCalUId"
I_CAL_U_ID_DESC = "iCalUId desc"
IMPORTANCE = "importance"
IMPORTANCE_DESC = "importance desc"
IS_ALL_DAY = "isAllDay"
IS_ALL_DAY_DESC = "isAllDay desc"
IS_CANCELLED = "isCancelled"
IS_CANCELLED_DESC = "isCancelled desc"
IS_ONLINE_MEETING = "isOnlineMeeting"
IS_ONLINE_MEETING_DESC = "isOnlineMeeting desc"
IS_ORGANIZER = "isOrganizer"
IS_ORGANIZER_DESC = "isOrganizer desc"
IS_REMINDER_ON = "isReminderOn"
IS_REMINDER_ON_DESC = "isReminderOn desc"
LOCATION = "location"
LOCATION_DESC = "location desc"
LOCATIONS = "locations"
LOCATIONS_DESC = "locations desc"
ONLINE_MEETING = "onlineMeeting"
ONLINE_MEETING_DESC = "onlineMeeting desc"
ONLINE_MEETING_PROVIDER = "onlineMeetingProvider"
ONLINE_MEETING_PROVIDER_DESC = "onlineMeetingProvider desc"
ONLINE_MEETING_URL = "onlineMeetingUrl"
ONLINE_MEETING_URL_DESC = "onlineMeetingUrl desc"
ORGANIZER = "organizer"
ORGANIZER_DESC = "organizer desc"
ORIGINAL_END_TIME_ZONE = "originalEndTimeZone"
ORIGINAL_END_TIME_ZONE_DESC = "originalEndTimeZone desc"
ORIGINAL_START = "originalStart"
ORIGINAL_START_DESC = "originalStart desc"
ORIGINAL_START_TIME_ZONE = "originalStartTimeZone"
ORIGINAL_START_TIME_ZONE_DESC = "originalStartTimeZone desc"
RECURRENCE = "recurrence"
RECURRENCE_DESC = "recurrence desc"
REMINDER_MINUTES_BEFORE_START = "reminderMinutesBeforeStart"
REMINDER_MINUTES_BEFORE_START_DESC = "reminderMinutesBeforeStart desc"
RESPONSE_REQUESTED = "responseRequested"
RESPONSE_REQUESTED_DESC = "responseRequested desc"
RESPONSE_STATUS = "responseStatus"
RESPONSE_STATUS_DESC = "responseStatus desc"
SENSITIVITY = "sensitivity"
SENSITIVITY_DESC = "sensitivity desc"
SERIES_MASTER_ID = "seriesMasterId"
SERIES_MASTER_ID_DESC = "seriesMasterId desc"
SHOW_AS = "showAs"
SHOW_AS_DESC = "showAs desc"
START = "start"
START_DESC = "start desc"
SUBJECT = "subject"
SUBJECT_DESC = "subject desc"
TRANSACTION_ID = "transactionId"
TRANSACTION_ID_DESC = "transactionId desc"
TYPE = "type"
TYPE_DESC = "type desc"
WEB_LINK = "webLink"
WEB_LINK_DESC = "webLink desc"
class Enum127(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
ID = "id"
CATEGORIES = "categories"
CHANGE_KEY = "changeKey"
CREATED_DATE_TIME = "createdDateTime"
LAST_MODIFIED_DATE_TIME = "lastModifiedDateTime"
ALLOW_NEW_TIME_PROPOSALS = "allowNewTimeProposals"
ATTENDEES = "attendees"
BODY = "body"
BODY_PREVIEW = "bodyPreview"
END = "end"
HAS_ATTACHMENTS = "hasAttachments"
I_CAL_U_ID = "iCalUId"
IMPORTANCE = "importance"
IS_ALL_DAY = "isAllDay"
IS_CANCELLED = "isCancelled"
IS_ONLINE_MEETING = "isOnlineMeeting"
IS_ORGANIZER = "isOrganizer"
IS_REMINDER_ON = "isReminderOn"
LOCATION = "location"
LOCATIONS = "locations"
ONLINE_MEETING = "onlineMeeting"
ONLINE_MEETING_PROVIDER = "onlineMeetingProvider"
ONLINE_MEETING_URL = "onlineMeetingUrl"
ORGANIZER = "organizer"
ORIGINAL_END_TIME_ZONE = "originalEndTimeZone"
ORIGINAL_START = "originalStart"
ORIGINAL_START_TIME_ZONE = "originalStartTimeZone"
RECURRENCE = "recurrence"
REMINDER_MINUTES_BEFORE_START = "reminderMinutesBeforeStart"
RESPONSE_REQUESTED = "responseRequested"
RESPONSE_STATUS = "responseStatus"
SENSITIVITY = "sensitivity"
SERIES_MASTER_ID = "seriesMasterId"
SHOW_AS = "showAs"
START = "start"
SUBJECT = "subject"
TRANSACTION_ID = "transactionId"
TYPE = "type"
WEB_LINK = "webLink"
ATTACHMENTS = "attachments"
CALENDAR = "calendar"
EXTENSIONS = "extensions"
INSTANCES = "instances"
MULTI_VALUE_EXTENDED_PROPERTIES = "multiValueExtendedProperties"
SINGLE_VALUE_EXTENDED_PROPERTIES = "singleValueExtendedProperties"
class Enum128(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
ASTERISK = "*"
ATTACHMENTS = "attachments"
CALENDAR = "calendar"
EXTENSIONS = "extensions"
INSTANCES = "instances"
MULTI_VALUE_EXTENDED_PROPERTIES = "multiValueExtendedProperties"
SINGLE_VALUE_EXTENDED_PROPERTIES = "singleValueExtendedProperties"
class Enum129(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
ID = "id"
CATEGORIES = "categories"
CHANGE_KEY = "changeKey"
CREATED_DATE_TIME = "createdDateTime"
LAST_MODIFIED_DATE_TIME = "lastModifiedDateTime"
ALLOW_NEW_TIME_PROPOSALS = "allowNewTimeProposals"
ATTENDEES = "attendees"
BODY = "body"
BODY_PREVIEW = "bodyPreview"
END = "end"
HAS_ATTACHMENTS = "hasAttachments"
I_CAL_U_ID = "iCalUId"
IMPORTANCE = "importance"
IS_ALL_DAY = "isAllDay"
IS_CANCELLED = "isCancelled"
IS_ONLINE_MEETING = "isOnlineMeeting"
IS_ORGANIZER = "isOrganizer"
IS_REMINDER_ON = "isReminderOn"
LOCATION = "location"
LOCATIONS = "locations"
ONLINE_MEETING = "onlineMeeting"
ONLINE_MEETING_PROVIDER = "onlineMeetingProvider"
ONLINE_MEETING_URL = "onlineMeetingUrl"
ORGANIZER = "organizer"
ORIGINAL_END_TIME_ZONE = "originalEndTimeZone"
ORIGINAL_START = "originalStart"
ORIGINAL_START_TIME_ZONE = "originalStartTimeZone"
RECURRENCE = "recurrence"
REMINDER_MINUTES_BEFORE_START = "reminderMinutesBeforeStart"
RESPONSE_REQUESTED = "responseRequested"
RESPONSE_STATUS = "responseStatus"
SENSITIVITY = "sensitivity"
SERIES_MASTER_ID = "seriesMasterId"
SHOW_AS = "showAs"
START = "start"
SUBJECT = "subject"
TRANSACTION_ID = "transactionId"
TYPE = "type"
WEB_LINK = "webLink"
ATTACHMENTS = "attachments"
CALENDAR = "calendar"
EXTENSIONS = "extensions"
INSTANCES = "instances"
MULTI_VALUE_EXTENDED_PROPERTIES = "multiValueExtendedProperties"
SINGLE_VALUE_EXTENDED_PROPERTIES = "singleValueExtendedProperties"
class Enum130(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
ASTERISK = "*"
ATTACHMENTS = "attachments"
CALENDAR = "calendar"
EXTENSIONS = "extensions"
INSTANCES = "instances"
MULTI_VALUE_EXTENDED_PROPERTIES = "multiValueExtendedProperties"
SINGLE_VALUE_EXTENDED_PROPERTIES = "singleValueExtendedProperties"
class Enum131(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
ID = "id"
ID_DESC = "id desc"
CATEGORIES = "categories"
CATEGORIES_DESC = "categories desc"
CHANGE_KEY = "changeKey"
CHANGE_KEY_DESC = "changeKey desc"
CREATED_DATE_TIME = "createdDateTime"
CREATED_DATE_TIME_DESC = "createdDateTime desc"
LAST_MODIFIED_DATE_TIME = "lastModifiedDateTime"
LAST_MODIFIED_DATE_TIME_DESC = "lastModifiedDateTime desc"
ALLOW_NEW_TIME_PROPOSALS = "allowNewTimeProposals"
ALLOW_NEW_TIME_PROPOSALS_DESC = "allowNewTimeProposals desc"
ATTENDEES = "attendees"
ATTENDEES_DESC = "attendees desc"
BODY = "body"
BODY_DESC = "body desc"
BODY_PREVIEW = "bodyPreview"
BODY_PREVIEW_DESC = "bodyPreview desc"
END = "end"
END_DESC = "end desc"
HAS_ATTACHMENTS = "hasAttachments"
HAS_ATTACHMENTS_DESC = "hasAttachments desc"
I_CAL_U_ID = "iCalUId"
I_CAL_U_ID_DESC = "iCalUId desc"
IMPORTANCE = "importance"
IMPORTANCE_DESC = "importance desc"
IS_ALL_DAY = "isAllDay"
IS_ALL_DAY_DESC = "isAllDay desc"
IS_CANCELLED = "isCancelled"
IS_CANCELLED_DESC = "isCancelled desc"
IS_ONLINE_MEETING = "isOnlineMeeting"
IS_ONLINE_MEETING_DESC = "isOnlineMeeting desc"
IS_ORGANIZER = "isOrganizer"
IS_ORGANIZER_DESC = "isOrganizer desc"
IS_REMINDER_ON = "isReminderOn"
IS_REMINDER_ON_DESC = "isReminderOn desc"
LOCATION = "location"
LOCATION_DESC = "location desc"
LOCATIONS = "locations"
LOCATIONS_DESC = "locations desc"
ONLINE_MEETING = "onlineMeeting"
ONLINE_MEETING_DESC = "onlineMeeting desc"
ONLINE_MEETING_PROVIDER = "onlineMeetingProvider"
ONLINE_MEETING_PROVIDER_DESC = "onlineMeetingProvider desc"
ONLINE_MEETING_URL = "onlineMeetingUrl"
ONLINE_MEETING_URL_DESC = "onlineMeetingUrl desc"
ORGANIZER = "organizer"
ORGANIZER_DESC = "organizer desc"
ORIGINAL_END_TIME_ZONE = "originalEndTimeZone"
ORIGINAL_END_TIME_ZONE_DESC = "originalEndTimeZone desc"
ORIGINAL_START = "originalStart"
ORIGINAL_START_DESC = "originalStart desc"
ORIGINAL_START_TIME_ZONE = "originalStartTimeZone"
ORIGINAL_START_TIME_ZONE_DESC = "originalStartTimeZone desc"
RECURRENCE = "recurrence"
RECURRENCE_DESC = "recurrence desc"
REMINDER_MINUTES_BEFORE_START = "reminderMinutesBeforeStart"
REMINDER_MINUTES_BEFORE_START_DESC = "reminderMinutesBeforeStart desc"
RESPONSE_REQUESTED = "responseRequested"
RESPONSE_REQUESTED_DESC = "responseRequested desc"
RESPONSE_STATUS = "responseStatus"
RESPONSE_STATUS_DESC = "responseStatus desc"
SENSITIVITY = "sensitivity"
SENSITIVITY_DESC = "sensitivity desc"
SERIES_MASTER_ID = "seriesMasterId"
SERIES_MASTER_ID_DESC = "seriesMasterId desc"
SHOW_AS = "showAs"
SHOW_AS_DESC = "showAs desc"
START = "start"
START_DESC = "start desc"
SUBJECT = "subject"
SUBJECT_DESC = "subject desc"
TRANSACTION_ID = "transactionId"
TRANSACTION_ID_DESC = "transactionId desc"
TYPE = "type"
TYPE_DESC = "type desc"
WEB_LINK = "webLink"
WEB_LINK_DESC = "webLink desc"
class Enum132(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
ID = "id"
CATEGORIES = "categories"
CHANGE_KEY = "changeKey"
CREATED_DATE_TIME = "createdDateTime"
LAST_MODIFIED_DATE_TIME = "lastModifiedDateTime"
ALLOW_NEW_TIME_PROPOSALS = "allowNewTimeProposals"
ATTENDEES = "attendees"
BODY = "body"
BODY_PREVIEW = "bodyPreview"
END = "end"
HAS_ATTACHMENTS = "hasAttachments"
I_CAL_U_ID = "iCalUId"
IMPORTANCE = "importance"
IS_ALL_DAY = "isAllDay"
IS_CANCELLED = "isCancelled"
IS_ONLINE_MEETING = "isOnlineMeeting"
IS_ORGANIZER = "isOrganizer"
IS_REMINDER_ON = "isReminderOn"
LOCATION = "location"
LOCATIONS = "locations"
ONLINE_MEETING = "onlineMeeting"
ONLINE_MEETING_PROVIDER = "onlineMeetingProvider"
ONLINE_MEETING_URL = "onlineMeetingUrl"
ORGANIZER = "organizer"
ORIGINAL_END_TIME_ZONE = "originalEndTimeZone"
ORIGINAL_START = "originalStart"
ORIGINAL_START_TIME_ZONE = "originalStartTimeZone"
RECURRENCE = "recurrence"
REMINDER_MINUTES_BEFORE_START = "reminderMinutesBeforeStart"
RESPONSE_REQUESTED = "responseRequested"
RESPONSE_STATUS = "responseStatus"
SENSITIVITY = "sensitivity"
SERIES_MASTER_ID = "seriesMasterId"
SHOW_AS = "showAs"
START = "start"
SUBJECT = "subject"
TRANSACTION_ID = "transactionId"
TYPE = "type"
WEB_LINK = "webLink"
ATTACHMENTS = "attachments"
CALENDAR = "calendar"
EXTENSIONS = "extensions"
INSTANCES = "instances"
MULTI_VALUE_EXTENDED_PROPERTIES = "multiValueExtendedProperties"
SINGLE_VALUE_EXTENDED_PROPERTIES = "singleValueExtendedProperties"
class Enum133(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
ASTERISK = "*"
ATTACHMENTS = "attachments"
CALENDAR = "calendar"
EXTENSIONS = "extensions"
INSTANCES = "instances"
MULTI_VALUE_EXTENDED_PROPERTIES = "multiValueExtendedProperties"
SINGLE_VALUE_EXTENDED_PROPERTIES = "singleValueExtendedProperties"
class Enum134(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
ID = "id"
CATEGORIES = "categories"
CHANGE_KEY = "changeKey"
CREATED_DATE_TIME = "createdDateTime"
LAST_MODIFIED_DATE_TIME = "lastModifiedDateTime"
ALLOW_NEW_TIME_PROPOSALS = "allowNewTimeProposals"
ATTENDEES = "attendees"
BODY = "body"
BODY_PREVIEW = "bodyPreview"
END = "end"
HAS_ATTACHMENTS = "hasAttachments"
I_CAL_U_ID = "iCalUId"
IMPORTANCE = "importance"
IS_ALL_DAY = "isAllDay"
IS_CANCELLED = "isCancelled"
IS_ONLINE_MEETING = "isOnlineMeeting"
IS_ORGANIZER = "isOrganizer"
IS_REMINDER_ON = "isReminderOn"
LOCATION = "location"
LOCATIONS = "locations"
ONLINE_MEETING = "onlineMeeting"
ONLINE_MEETING_PROVIDER = "onlineMeetingProvider"
ONLINE_MEETING_URL = "onlineMeetingUrl"
ORGANIZER = "organizer"
ORIGINAL_END_TIME_ZONE = "originalEndTimeZone"
ORIGINAL_START = "originalStart"
ORIGINAL_START_TIME_ZONE = "originalStartTimeZone"
RECURRENCE = "recurrence"
REMINDER_MINUTES_BEFORE_START = "reminderMinutesBeforeStart"
RESPONSE_REQUESTED = "responseRequested"
RESPONSE_STATUS = "responseStatus"
SENSITIVITY = "sensitivity"
SERIES_MASTER_ID = "seriesMasterId"
SHOW_AS = "showAs"
START = "start"
SUBJECT = "subject"
TRANSACTION_ID = "transactionId"
TYPE = "type"
WEB_LINK = "webLink"
ATTACHMENTS = "attachments"
CALENDAR = "calendar"
EXTENSIONS = "extensions"
INSTANCES = "instances"
MULTI_VALUE_EXTENDED_PROPERTIES = "multiValueExtendedProperties"
SINGLE_VALUE_EXTENDED_PROPERTIES = "singleValueExtendedProperties"
class Enum135(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
ASTERISK = "*"
ATTACHMENTS = "attachments"
CALENDAR = "calendar"
EXTENSIONS = "extensions"
INSTANCES = "instances"
MULTI_VALUE_EXTENDED_PROPERTIES = "multiValueExtendedProperties"
SINGLE_VALUE_EXTENDED_PROPERTIES = "singleValueExtendedProperties"
class Enum136(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
ID = "id"
ID_DESC = "id desc"
VALUE = "value"
VALUE_DESC = "value desc"
class Enum137(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
ID = "id"
VALUE = "value"
class Enum138(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
ID = "id"
VALUE = "value"
class Enum139(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
ID = "id"
ID_DESC = "id desc"
VALUE = "value"
VALUE_DESC = "value desc"
class Enum140(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
ID = "id"
VALUE = "value"
class Enum141(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
ID = "id"
VALUE = "value"
class Enum142(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
ID = "id"
ID_DESC = "id desc"
class Enum143(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
ID = "id"
ID_DESC = "id desc"
CATEGORIES = "categories"
CATEGORIES_DESC = "categories desc"
CHANGE_KEY = "changeKey"
CHANGE_KEY_DESC = "changeKey desc"
CREATED_DATE_TIME = "createdDateTime"
CREATED_DATE_TIME_DESC = "createdDateTime desc"
LAST_MODIFIED_DATE_TIME = "lastModifiedDateTime"
LAST_MODIFIED_DATE_TIME_DESC = "lastModifiedDateTime desc"
ALLOW_NEW_TIME_PROPOSALS = "allowNewTimeProposals"
ALLOW_NEW_TIME_PROPOSALS_DESC = "allowNewTimeProposals desc"
ATTENDEES = "attendees"
ATTENDEES_DESC = "attendees desc"
BODY = "body"
BODY_DESC = "body desc"
BODY_PREVIEW = "bodyPreview"
BODY_PREVIEW_DESC = "bodyPreview desc"
END = "end"
END_DESC = "end desc"
HAS_ATTACHMENTS = "hasAttachments"
HAS_ATTACHMENTS_DESC = "hasAttachments desc"
I_CAL_U_ID = "iCalUId"
I_CAL_U_ID_DESC = "iCalUId desc"
IMPORTANCE = "importance"
IMPORTANCE_DESC = "importance desc"
IS_ALL_DAY = "isAllDay"
IS_ALL_DAY_DESC = "isAllDay desc"
IS_CANCELLED = "isCancelled"
IS_CANCELLED_DESC = "isCancelled desc"
IS_ONLINE_MEETING = "isOnlineMeeting"
IS_ONLINE_MEETING_DESC = "isOnlineMeeting desc"
IS_ORGANIZER = "isOrganizer"
IS_ORGANIZER_DESC = "isOrganizer desc"
IS_REMINDER_ON = "isReminderOn"
IS_REMINDER_ON_DESC = "isReminderOn desc"
LOCATION = "location"
LOCATION_DESC = "location desc"
LOCATIONS = "locations"
LOCATIONS_DESC = "locations desc"
ONLINE_MEETING = "onlineMeeting"
ONLINE_MEETING_DESC = "onlineMeeting desc"
ONLINE_MEETING_PROVIDER = "onlineMeetingProvider"
ONLINE_MEETING_PROVIDER_DESC = "onlineMeetingProvider desc"
ONLINE_MEETING_URL = "onlineMeetingUrl"
ONLINE_MEETING_URL_DESC = "onlineMeetingUrl desc"
ORGANIZER = "organizer"
ORGANIZER_DESC = "organizer desc"
ORIGINAL_END_TIME_ZONE = "originalEndTimeZone"
ORIGINAL_END_TIME_ZONE_DESC = "originalEndTimeZone desc"
ORIGINAL_START = "originalStart"
ORIGINAL_START_DESC = "originalStart desc"
ORIGINAL_START_TIME_ZONE = "originalStartTimeZone"
ORIGINAL_START_TIME_ZONE_DESC = "originalStartTimeZone desc"
RECURRENCE = "recurrence"
RECURRENCE_DESC = "recurrence desc"
REMINDER_MINUTES_BEFORE_START = "reminderMinutesBeforeStart"
REMINDER_MINUTES_BEFORE_START_DESC = "reminderMinutesBeforeStart desc"
RESPONSE_REQUESTED = "responseRequested"
RESPONSE_REQUESTED_DESC = "responseRequested desc"
RESPONSE_STATUS = "responseStatus"
RESPONSE_STATUS_DESC = "responseStatus desc"
SENSITIVITY = "sensitivity"
SENSITIVITY_DESC = "sensitivity desc"
SERIES_MASTER_ID = "seriesMasterId"
SERIES_MASTER_ID_DESC = "seriesMasterId desc"
SHOW_AS = "showAs"
SHOW_AS_DESC = "showAs desc"
START = "start"
START_DESC = "start desc"
SUBJECT = "subject"
SUBJECT_DESC = "subject desc"
TRANSACTION_ID = "transactionId"
TRANSACTION_ID_DESC = "transactionId desc"
TYPE = "type"
TYPE_DESC = "type desc"
WEB_LINK = "webLink"
WEB_LINK_DESC = "webLink desc"
class Enum144(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
ID = "id"
CATEGORIES = "categories"
CHANGE_KEY = "changeKey"
CREATED_DATE_TIME = "createdDateTime"
LAST_MODIFIED_DATE_TIME = "lastModifiedDateTime"
ALLOW_NEW_TIME_PROPOSALS = "allowNewTimeProposals"
ATTENDEES = "attendees"
BODY = "body"
BODY_PREVIEW = "bodyPreview"
END = "end"
HAS_ATTACHMENTS = "hasAttachments"
I_CAL_U_ID = "iCalUId"
IMPORTANCE = "importance"
IS_ALL_DAY = "isAllDay"
IS_CANCELLED = "isCancelled"
IS_ONLINE_MEETING = "isOnlineMeeting"
IS_ORGANIZER = "isOrganizer"
IS_REMINDER_ON = "isReminderOn"
LOCATION = "location"
LOCATIONS = "locations"
ONLINE_MEETING = "onlineMeeting"
ONLINE_MEETING_PROVIDER = "onlineMeetingProvider"
ONLINE_MEETING_URL = "onlineMeetingUrl"
ORGANIZER = "organizer"
ORIGINAL_END_TIME_ZONE = "originalEndTimeZone"
ORIGINAL_START = "originalStart"
ORIGINAL_START_TIME_ZONE = "originalStartTimeZone"
RECURRENCE = "recurrence"
REMINDER_MINUTES_BEFORE_START = "reminderMinutesBeforeStart"
RESPONSE_REQUESTED = "responseRequested"
RESPONSE_STATUS = "responseStatus"
SENSITIVITY = "sensitivity"
SERIES_MASTER_ID = "seriesMasterId"
SHOW_AS = "showAs"
START = "start"
SUBJECT = "subject"
TRANSACTION_ID = "transactionId"
TYPE = "type"
WEB_LINK = "webLink"
ATTACHMENTS = "attachments"
CALENDAR = "calendar"
EXTENSIONS = "extensions"
INSTANCES = "instances"
MULTI_VALUE_EXTENDED_PROPERTIES = "multiValueExtendedProperties"
SINGLE_VALUE_EXTENDED_PROPERTIES = "singleValueExtendedProperties"
class Enum145(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
ASTERISK = "*"
ATTACHMENTS = "attachments"
CALENDAR = "calendar"
EXTENSIONS = "extensions"
INSTANCES = "instances"
MULTI_VALUE_EXTENDED_PROPERTIES = "multiValueExtendedProperties"
SINGLE_VALUE_EXTENDED_PROPERTIES = "singleValueExtendedProperties"
class Enum146(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
ID = "id"
CATEGORIES = "categories"
CHANGE_KEY = "changeKey"
CREATED_DATE_TIME = "createdDateTime"
LAST_MODIFIED_DATE_TIME = "lastModifiedDateTime"
ALLOW_NEW_TIME_PROPOSALS = "allowNewTimeProposals"
ATTENDEES = "attendees"
BODY = "body"
BODY_PREVIEW = "bodyPreview"
END = "end"
HAS_ATTACHMENTS = "hasAttachments"
I_CAL_U_ID = "iCalUId"
IMPORTANCE = "importance"
IS_ALL_DAY = "isAllDay"
IS_CANCELLED = "isCancelled"
IS_ONLINE_MEETING = "isOnlineMeeting"
IS_ORGANIZER = "isOrganizer"
IS_REMINDER_ON = "isReminderOn"
LOCATION = "location"
LOCATIONS = "locations"
ONLINE_MEETING = "onlineMeeting"
ONLINE_MEETING_PROVIDER = "onlineMeetingProvider"
ONLINE_MEETING_URL = "onlineMeetingUrl"
ORGANIZER = "organizer"
ORIGINAL_END_TIME_ZONE = "originalEndTimeZone"
ORIGINAL_START = "originalStart"
ORIGINAL_START_TIME_ZONE = "originalStartTimeZone"
RECURRENCE = "recurrence"
REMINDER_MINUTES_BEFORE_START = "reminderMinutesBeforeStart"
RESPONSE_REQUESTED = "responseRequested"
RESPONSE_STATUS = "responseStatus"
SENSITIVITY = "sensitivity"
SERIES_MASTER_ID = "seriesMasterId"
SHOW_AS = "showAs"
START = "start"
SUBJECT = "subject"
TRANSACTION_ID = "transactionId"
TYPE = "type"
WEB_LINK = "webLink"
ATTACHMENTS = "attachments"
CALENDAR = "calendar"
EXTENSIONS = "extensions"
INSTANCES = "instances"
MULTI_VALUE_EXTENDED_PROPERTIES = "multiValueExtendedProperties"
SINGLE_VALUE_EXTENDED_PROPERTIES = "singleValueExtendedProperties"
class Enum147(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
ASTERISK = "*"
ATTACHMENTS = "attachments"
CALENDAR = "calendar"
EXTENSIONS = "extensions"
INSTANCES = "instances"
MULTI_VALUE_EXTENDED_PROPERTIES = "multiValueExtendedProperties"
SINGLE_VALUE_EXTENDED_PROPERTIES = "singleValueExtendedProperties"
class Enum148(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
ID = "id"
ID_DESC = "id desc"
VALUE = "value"
VALUE_DESC = "value desc"
class Enum149(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
ID = "id"
VALUE = "value"
class Enum150(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
ID = "id"
VALUE = "value"
class Enum151(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
ID = "id"
ID_DESC = "id desc"
VALUE = "value"
VALUE_DESC = "value desc"
class Enum152(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
ID = "id"
VALUE = "value"
class Enum153(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
ID = "id"
VALUE = "value"
class Enum154(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
ID = "id"
ID_DESC = "id desc"
ADDRESS = "address"
ADDRESS_DESC = "address desc"
DISPLAY_NAME = "displayName"
DISPLAY_NAME_DESC = "displayName desc"
GEO_COORDINATES = "geoCoordinates"
GEO_COORDINATES_DESC = "geoCoordinates desc"
PHONE = "phone"
PHONE_DESC = "phone desc"
class Enum155(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
ID = "id"
ADDRESS = "address"
DISPLAY_NAME = "displayName"
GEO_COORDINATES = "geoCoordinates"
PHONE = "phone"
class Enum156(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
ID = "id"
ADDRESS = "address"
DISPLAY_NAME = "displayName"
GEO_COORDINATES = "geoCoordinates"
PHONE = "phone"
class Enum157(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
ID = "id"
ALLOWED_ONLINE_MEETING_PROVIDERS = "allowedOnlineMeetingProviders"
CAN_EDIT = "canEdit"
CAN_SHARE = "canShare"
CAN_VIEW_PRIVATE_ITEMS = "canViewPrivateItems"
CHANGE_KEY = "changeKey"
COLOR = "color"
DEFAULT_ONLINE_MEETING_PROVIDER = "defaultOnlineMeetingProvider"
IS_REMOVABLE = "isRemovable"
IS_TALLYING_RESPONSES = "isTallyingResponses"
NAME = "name"
OWNER = "owner"
CALENDAR_PERMISSIONS = "calendarPermissions"
CALENDAR_VIEW = "calendarView"
EVENTS = "events"
MULTI_VALUE_EXTENDED_PROPERTIES = "multiValueExtendedProperties"
SINGLE_VALUE_EXTENDED_PROPERTIES = "singleValueExtendedProperties"
class Enum158(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
ASTERISK = "*"
CALENDAR_PERMISSIONS = "calendarPermissions"
CALENDAR_VIEW = "calendarView"
EVENTS = "events"
MULTI_VALUE_EXTENDED_PROPERTIES = "multiValueExtendedProperties"
SINGLE_VALUE_EXTENDED_PROPERTIES = "singleValueExtendedProperties"
class Enum159(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
ID = "id"
ID_DESC = "id desc"
ALLOWED_ROLES = "allowedRoles"
ALLOWED_ROLES_DESC = "allowedRoles desc"
EMAIL_ADDRESS = "emailAddress"
EMAIL_ADDRESS_DESC = "emailAddress desc"
IS_INSIDE_ORGANIZATION = "isInsideOrganization"
IS_INSIDE_ORGANIZATION_DESC = "isInsideOrganization desc"
IS_REMOVABLE = "isRemovable"
IS_REMOVABLE_DESC = "isRemovable desc"
ROLE = "role"
ROLE_DESC = "role desc"
class Enum160(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
ID = "id"
ALLOWED_ROLES = "allowedRoles"
EMAIL_ADDRESS = "emailAddress"
IS_INSIDE_ORGANIZATION = "isInsideOrganization"
IS_REMOVABLE = "isRemovable"
ROLE = "role"
class Enum161(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
ID = "id"
ALLOWED_ROLES = "allowedRoles"
EMAIL_ADDRESS = "emailAddress"
IS_INSIDE_ORGANIZATION = "isInsideOrganization"
IS_REMOVABLE = "isRemovable"
ROLE = "role"
class Enum162(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
ID = "id"
ID_DESC = "id desc"
CATEGORIES = "categories"
CATEGORIES_DESC = "categories desc"
CHANGE_KEY = "changeKey"
CHANGE_KEY_DESC = "changeKey desc"
CREATED_DATE_TIME = "createdDateTime"
CREATED_DATE_TIME_DESC = "createdDateTime desc"
LAST_MODIFIED_DATE_TIME = "lastModifiedDateTime"
LAST_MODIFIED_DATE_TIME_DESC = "lastModifiedDateTime desc"
ALLOW_NEW_TIME_PROPOSALS = "allowNewTimeProposals"
ALLOW_NEW_TIME_PROPOSALS_DESC = "allowNewTimeProposals desc"
ATTENDEES = "attendees"
ATTENDEES_DESC = "attendees desc"
BODY = "body"
BODY_DESC = "body desc"
BODY_PREVIEW = "bodyPreview"
BODY_PREVIEW_DESC = "bodyPreview desc"
END = "end"
END_DESC = "end desc"
HAS_ATTACHMENTS = "hasAttachments"
HAS_ATTACHMENTS_DESC = "hasAttachments desc"
I_CAL_U_ID = "iCalUId"
I_CAL_U_ID_DESC = "iCalUId desc"
IMPORTANCE = "importance"
IMPORTANCE_DESC = "importance desc"
IS_ALL_DAY = "isAllDay"
IS_ALL_DAY_DESC = "isAllDay desc"
IS_CANCELLED = "isCancelled"
IS_CANCELLED_DESC = "isCancelled desc"
IS_ONLINE_MEETING = "isOnlineMeeting"
IS_ONLINE_MEETING_DESC = "isOnlineMeeting desc"
IS_ORGANIZER = "isOrganizer"
IS_ORGANIZER_DESC = "isOrganizer desc"
IS_REMINDER_ON = "isReminderOn"
IS_REMINDER_ON_DESC = "isReminderOn desc"
LOCATION = "location"
LOCATION_DESC = "location desc"
LOCATIONS = "locations"
LOCATIONS_DESC = "locations desc"
ONLINE_MEETING = "onlineMeeting"
ONLINE_MEETING_DESC = "onlineMeeting desc"
ONLINE_MEETING_PROVIDER = "onlineMeetingProvider"
ONLINE_MEETING_PROVIDER_DESC = "onlineMeetingProvider desc"
ONLINE_MEETING_URL = "onlineMeetingUrl"
ONLINE_MEETING_URL_DESC = "onlineMeetingUrl desc"
ORGANIZER = "organizer"
ORGANIZER_DESC = "organizer desc"
ORIGINAL_END_TIME_ZONE = "originalEndTimeZone"
ORIGINAL_END_TIME_ZONE_DESC = "originalEndTimeZone desc"
ORIGINAL_START = "originalStart"
ORIGINAL_START_DESC = "originalStart desc"
ORIGINAL_START_TIME_ZONE = "originalStartTimeZone"
ORIGINAL_START_TIME_ZONE_DESC = "originalStartTimeZone desc"
RECURRENCE = "recurrence"
RECURRENCE_DESC = "recurrence desc"
REMINDER_MINUTES_BEFORE_START = "reminderMinutesBeforeStart"
REMINDER_MINUTES_BEFORE_START_DESC = "reminderMinutesBeforeStart desc"
RESPONSE_REQUESTED = "responseRequested"
RESPONSE_REQUESTED_DESC = "responseRequested desc"
RESPONSE_STATUS = "responseStatus"
RESPONSE_STATUS_DESC = "responseStatus desc"
SENSITIVITY = "sensitivity"
SENSITIVITY_DESC = "sensitivity desc"
SERIES_MASTER_ID = "seriesMasterId"
SERIES_MASTER_ID_DESC = "seriesMasterId desc"
SHOW_AS = "showAs"
SHOW_AS_DESC = "showAs desc"
START = "start"
START_DESC = "start desc"
SUBJECT = "subject"
SUBJECT_DESC = "subject desc"
TRANSACTION_ID = "transactionId"
TRANSACTION_ID_DESC = "transactionId desc"
TYPE = "type"
TYPE_DESC = "type desc"
WEB_LINK = "webLink"
WEB_LINK_DESC = "webLink desc"
class Enum163(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
ID = "id"
CATEGORIES = "categories"
CHANGE_KEY = "changeKey"
CREATED_DATE_TIME = "createdDateTime"
LAST_MODIFIED_DATE_TIME = "lastModifiedDateTime"
ALLOW_NEW_TIME_PROPOSALS = "allowNewTimeProposals"
ATTENDEES = "attendees"
BODY = "body"
BODY_PREVIEW = "bodyPreview"
END = "end"
HAS_ATTACHMENTS = "hasAttachments"
I_CAL_U_ID = "iCalUId"
IMPORTANCE = "importance"
IS_ALL_DAY = "isAllDay"
IS_CANCELLED = "isCancelled"
IS_ONLINE_MEETING = "isOnlineMeeting"
IS_ORGANIZER = "isOrganizer"
IS_REMINDER_ON = "isReminderOn"
LOCATION = "location"
LOCATIONS = "locations"
ONLINE_MEETING = "onlineMeeting"
ONLINE_MEETING_PROVIDER = "onlineMeetingProvider"
ONLINE_MEETING_URL = "onlineMeetingUrl"
ORGANIZER = "organizer"
ORIGINAL_END_TIME_ZONE = "originalEndTimeZone"
ORIGINAL_START = "originalStart"
ORIGINAL_START_TIME_ZONE = "originalStartTimeZone"
RECURRENCE = "recurrence"
REMINDER_MINUTES_BEFORE_START = "reminderMinutesBeforeStart"
RESPONSE_REQUESTED = "responseRequested"
RESPONSE_STATUS = "responseStatus"
SENSITIVITY = "sensitivity"
SERIES_MASTER_ID = "seriesMasterId"
SHOW_AS = "showAs"
START = "start"
SUBJECT = "subject"
TRANSACTION_ID = "transactionId"
TYPE = "type"
WEB_LINK = "webLink"
ATTACHMENTS = "attachments"
CALENDAR = "calendar"
EXTENSIONS = "extensions"
INSTANCES = "instances"
MULTI_VALUE_EXTENDED_PROPERTIES = "multiValueExtendedProperties"
SINGLE_VALUE_EXTENDED_PROPERTIES = "singleValueExtendedProperties"
class Enum164(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
ASTERISK = "*"
ATTACHMENTS = "attachments"
CALENDAR = "calendar"
EXTENSIONS = "extensions"
INSTANCES = "instances"
MULTI_VALUE_EXTENDED_PROPERTIES = "multiValueExtendedProperties"
SINGLE_VALUE_EXTENDED_PROPERTIES = "singleValueExtendedProperties"
class Enum165(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
ID = "id"
CATEGORIES = "categories"
CHANGE_KEY = "changeKey"
CREATED_DATE_TIME = "createdDateTime"
LAST_MODIFIED_DATE_TIME = "lastModifiedDateTime"
ALLOW_NEW_TIME_PROPOSALS = "allowNewTimeProposals"
ATTENDEES = "attendees"
BODY = "body"
BODY_PREVIEW = "bodyPreview"
END = "end"
HAS_ATTACHMENTS = "hasAttachments"
I_CAL_U_ID = "iCalUId"
IMPORTANCE = "importance"
IS_ALL_DAY = "isAllDay"
IS_CANCELLED = "isCancelled"
IS_ONLINE_MEETING = "isOnlineMeeting"
IS_ORGANIZER = "isOrganizer"
IS_REMINDER_ON = "isReminderOn"
LOCATION = "location"
LOCATIONS = "locations"
ONLINE_MEETING = "onlineMeeting"
ONLINE_MEETING_PROVIDER = "onlineMeetingProvider"
ONLINE_MEETING_URL = "onlineMeetingUrl"
ORGANIZER = "organizer"
ORIGINAL_END_TIME_ZONE = "originalEndTimeZone"
ORIGINAL_START = "originalStart"
ORIGINAL_START_TIME_ZONE = "originalStartTimeZone"
RECURRENCE = "recurrence"
REMINDER_MINUTES_BEFORE_START = "reminderMinutesBeforeStart"
RESPONSE_REQUESTED = "responseRequested"
RESPONSE_STATUS = "responseStatus"
SENSITIVITY = "sensitivity"
SERIES_MASTER_ID = "seriesMasterId"
SHOW_AS = "showAs"
START = "start"
SUBJECT = "subject"
TRANSACTION_ID = "transactionId"
TYPE = "type"
WEB_LINK = "webLink"
ATTACHMENTS = "attachments"
CALENDAR = "calendar"
EXTENSIONS = "extensions"
INSTANCES = "instances"
MULTI_VALUE_EXTENDED_PROPERTIES = "multiValueExtendedProperties"
SINGLE_VALUE_EXTENDED_PROPERTIES = "singleValueExtendedProperties"
class Enum166(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
ASTERISK = "*"
ATTACHMENTS = "attachments"
CALENDAR = "calendar"
EXTENSIONS = "extensions"
INSTANCES = "instances"
MULTI_VALUE_EXTENDED_PROPERTIES = "multiValueExtendedProperties"
SINGLE_VALUE_EXTENDED_PROPERTIES = "singleValueExtendedProperties"
class Enum167(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
ID = "id"
ID_DESC = "id desc"
CONTENT_TYPE = "contentType"
CONTENT_TYPE_DESC = "contentType desc"
IS_INLINE = "isInline"
IS_INLINE_DESC = "isInline desc"
LAST_MODIFIED_DATE_TIME = "lastModifiedDateTime"
LAST_MODIFIED_DATE_TIME_DESC = "lastModifiedDateTime desc"
NAME = "name"
NAME_DESC = "name desc"
SIZE = "size"
SIZE_DESC = "size desc"
class Enum168(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
ID = "id"
CONTENT_TYPE = "contentType"
IS_INLINE = "isInline"
LAST_MODIFIED_DATE_TIME = "lastModifiedDateTime"
NAME = "name"
SIZE = "size"
class Enum169(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
ID = "id"
CONTENT_TYPE = "contentType"
IS_INLINE = "isInline"
LAST_MODIFIED_DATE_TIME = "lastModifiedDateTime"
NAME = "name"
SIZE = "size"
class Enum170(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
ID = "id"
ALLOWED_ONLINE_MEETING_PROVIDERS = "allowedOnlineMeetingProviders"
CAN_EDIT = "canEdit"
CAN_SHARE = "canShare"
CAN_VIEW_PRIVATE_ITEMS = "canViewPrivateItems"
CHANGE_KEY = "changeKey"
COLOR = "color"
DEFAULT_ONLINE_MEETING_PROVIDER = "defaultOnlineMeetingProvider"
IS_REMOVABLE = "isRemovable"
IS_TALLYING_RESPONSES = "isTallyingResponses"
NAME = "name"
OWNER = "owner"
CALENDAR_PERMISSIONS = "calendarPermissions"
CALENDAR_VIEW = "calendarView"
EVENTS = "events"
MULTI_VALUE_EXTENDED_PROPERTIES = "multiValueExtendedProperties"
SINGLE_VALUE_EXTENDED_PROPERTIES = "singleValueExtendedProperties"
class Enum171(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
ASTERISK = "*"
CALENDAR_PERMISSIONS = "calendarPermissions"
CALENDAR_VIEW = "calendarView"
EVENTS = "events"
MULTI_VALUE_EXTENDED_PROPERTIES = "multiValueExtendedProperties"
SINGLE_VALUE_EXTENDED_PROPERTIES = "singleValueExtendedProperties"
class Enum172(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
ID = "id"
ID_DESC = "id desc"
class Enum173(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
ID = "id"
ID_DESC = "id desc"
CATEGORIES = "categories"
CATEGORIES_DESC = "categories desc"
CHANGE_KEY = "changeKey"
CHANGE_KEY_DESC = "changeKey desc"
CREATED_DATE_TIME = "createdDateTime"
CREATED_DATE_TIME_DESC = "createdDateTime desc"
LAST_MODIFIED_DATE_TIME = "lastModifiedDateTime"
LAST_MODIFIED_DATE_TIME_DESC = "lastModifiedDateTime desc"
ALLOW_NEW_TIME_PROPOSALS = "allowNewTimeProposals"
ALLOW_NEW_TIME_PROPOSALS_DESC = "allowNewTimeProposals desc"
ATTENDEES = "attendees"
ATTENDEES_DESC = "attendees desc"
BODY = "body"
BODY_DESC = "body desc"
BODY_PREVIEW = "bodyPreview"
BODY_PREVIEW_DESC = "bodyPreview desc"
END = "end"
END_DESC = "end desc"
HAS_ATTACHMENTS = "hasAttachments"
HAS_ATTACHMENTS_DESC = "hasAttachments desc"
I_CAL_U_ID = "iCalUId"
I_CAL_U_ID_DESC = "iCalUId desc"
IMPORTANCE = "importance"
IMPORTANCE_DESC = "importance desc"
IS_ALL_DAY = "isAllDay"
IS_ALL_DAY_DESC = "isAllDay desc"
IS_CANCELLED = "isCancelled"
IS_CANCELLED_DESC = "isCancelled desc"
IS_ONLINE_MEETING = "isOnlineMeeting"
IS_ONLINE_MEETING_DESC = "isOnlineMeeting desc"
IS_ORGANIZER = "isOrganizer"
IS_ORGANIZER_DESC = "isOrganizer desc"
IS_REMINDER_ON = "isReminderOn"
IS_REMINDER_ON_DESC = "isReminderOn desc"
LOCATION = "location"
LOCATION_DESC = "location desc"
LOCATIONS = "locations"
LOCATIONS_DESC = "locations desc"
ONLINE_MEETING = "onlineMeeting"
ONLINE_MEETING_DESC = "onlineMeeting desc"
ONLINE_MEETING_PROVIDER = "onlineMeetingProvider"
ONLINE_MEETING_PROVIDER_DESC = "onlineMeetingProvider desc"
ONLINE_MEETING_URL = "onlineMeetingUrl"
ONLINE_MEETING_URL_DESC = "onlineMeetingUrl desc"
ORGANIZER = "organizer"
ORGANIZER_DESC = "organizer desc"
ORIGINAL_END_TIME_ZONE = "originalEndTimeZone"
ORIGINAL_END_TIME_ZONE_DESC = "originalEndTimeZone desc"
ORIGINAL_START = "originalStart"
ORIGINAL_START_DESC = "originalStart desc"
ORIGINAL_START_TIME_ZONE = "originalStartTimeZone"
ORIGINAL_START_TIME_ZONE_DESC = "originalStartTimeZone desc"
RECURRENCE = "recurrence"
RECURRENCE_DESC = "recurrence desc"
REMINDER_MINUTES_BEFORE_START = "reminderMinutesBeforeStart"
REMINDER_MINUTES_BEFORE_START_DESC = "reminderMinutesBeforeStart desc"
RESPONSE_REQUESTED = "responseRequested"
RESPONSE_REQUESTED_DESC = "responseRequested desc"
RESPONSE_STATUS = "responseStatus"
RESPONSE_STATUS_DESC = "responseStatus desc"
SENSITIVITY = "sensitivity"
SENSITIVITY_DESC = "sensitivity desc"
SERIES_MASTER_ID = "seriesMasterId"
SERIES_MASTER_ID_DESC = "seriesMasterId desc"
SHOW_AS = "showAs"
SHOW_AS_DESC = "showAs desc"
START = "start"
START_DESC = "start desc"
SUBJECT = "subject"
SUBJECT_DESC = "subject desc"
TRANSACTION_ID = "transactionId"
TRANSACTION_ID_DESC = "transactionId desc"
TYPE = "type"
TYPE_DESC = "type desc"
WEB_LINK = "webLink"
WEB_LINK_DESC = "webLink desc"
class Enum174(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
ID = "id"
CATEGORIES = "categories"
CHANGE_KEY = "changeKey"
CREATED_DATE_TIME = "createdDateTime"
LAST_MODIFIED_DATE_TIME = "lastModifiedDateTime"
ALLOW_NEW_TIME_PROPOSALS = "allowNewTimeProposals"
ATTENDEES = "attendees"
BODY = "body"
BODY_PREVIEW = "bodyPreview"
END = "end"
HAS_ATTACHMENTS = "hasAttachments"
I_CAL_U_ID = "iCalUId"
IMPORTANCE = "importance"
IS_ALL_DAY = "isAllDay"
IS_CANCELLED = "isCancelled"
IS_ONLINE_MEETING = "isOnlineMeeting"
IS_ORGANIZER = "isOrganizer"
IS_REMINDER_ON = "isReminderOn"
LOCATION = "location"
LOCATIONS = "locations"
ONLINE_MEETING = "onlineMeeting"
ONLINE_MEETING_PROVIDER = "onlineMeetingProvider"
ONLINE_MEETING_URL = "onlineMeetingUrl"
ORGANIZER = "organizer"
ORIGINAL_END_TIME_ZONE = "originalEndTimeZone"
ORIGINAL_START = "originalStart"
ORIGINAL_START_TIME_ZONE = "originalStartTimeZone"
RECURRENCE = "recurrence"
REMINDER_MINUTES_BEFORE_START = "reminderMinutesBeforeStart"
RESPONSE_REQUESTED = "responseRequested"
RESPONSE_STATUS = "responseStatus"
SENSITIVITY = "sensitivity"
SERIES_MASTER_ID = "seriesMasterId"
SHOW_AS = "showAs"
START = "start"
SUBJECT = "subject"
TRANSACTION_ID = "transactionId"
TYPE = "type"
WEB_LINK = "webLink"
ATTACHMENTS = "attachments"
CALENDAR = "calendar"
EXTENSIONS = "extensions"
INSTANCES = "instances"
MULTI_VALUE_EXTENDED_PROPERTIES = "multiValueExtendedProperties"
SINGLE_VALUE_EXTENDED_PROPERTIES = "singleValueExtendedProperties"
class Enum175(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
ASTERISK = "*"
ATTACHMENTS = "attachments"
CALENDAR = "calendar"
EXTENSIONS = "extensions"
INSTANCES = "instances"
MULTI_VALUE_EXTENDED_PROPERTIES = "multiValueExtendedProperties"
SINGLE_VALUE_EXTENDED_PROPERTIES = "singleValueExtendedProperties"
class Enum176(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
ID = "id"
CATEGORIES = "categories"
CHANGE_KEY = "changeKey"
CREATED_DATE_TIME = "createdDateTime"
LAST_MODIFIED_DATE_TIME = "lastModifiedDateTime"
ALLOW_NEW_TIME_PROPOSALS = "allowNewTimeProposals"
ATTENDEES = "attendees"
BODY = "body"
BODY_PREVIEW = "bodyPreview"
END = "end"
HAS_ATTACHMENTS = "hasAttachments"
I_CAL_U_ID = "iCalUId"
IMPORTANCE = "importance"
IS_ALL_DAY = "isAllDay"
IS_CANCELLED = "isCancelled"
IS_ONLINE_MEETING = "isOnlineMeeting"
IS_ORGANIZER = "isOrganizer"
IS_REMINDER_ON = "isReminderOn"
LOCATION = "location"
LOCATIONS = "locations"
ONLINE_MEETING = "onlineMeeting"
ONLINE_MEETING_PROVIDER = "onlineMeetingProvider"
ONLINE_MEETING_URL = "onlineMeetingUrl"
ORGANIZER = "organizer"
ORIGINAL_END_TIME_ZONE = "originalEndTimeZone"
ORIGINAL_START = "originalStart"
ORIGINAL_START_TIME_ZONE = "originalStartTimeZone"
RECURRENCE = "recurrence"
REMINDER_MINUTES_BEFORE_START = "reminderMinutesBeforeStart"
RESPONSE_REQUESTED = "responseRequested"
RESPONSE_STATUS = "responseStatus"
SENSITIVITY = "sensitivity"
SERIES_MASTER_ID = "seriesMasterId"
SHOW_AS = "showAs"
START = "start"
SUBJECT = "subject"
TRANSACTION_ID = "transactionId"
TYPE = "type"
WEB_LINK = "webLink"
ATTACHMENTS = "attachments"
CALENDAR = "calendar"
EXTENSIONS = "extensions"
INSTANCES = "instances"
MULTI_VALUE_EXTENDED_PROPERTIES = "multiValueExtendedProperties"
SINGLE_VALUE_EXTENDED_PROPERTIES = "singleValueExtendedProperties"
class Enum177(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
ASTERISK = "*"
ATTACHMENTS = "attachments"
CALENDAR = "calendar"
EXTENSIONS = "extensions"
INSTANCES = "instances"
MULTI_VALUE_EXTENDED_PROPERTIES = "multiValueExtendedProperties"
SINGLE_VALUE_EXTENDED_PROPERTIES = "singleValueExtendedProperties"
class Enum178(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
ID = "id"
ID_DESC = "id desc"
VALUE = "value"
VALUE_DESC = "value desc"
class Enum179(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
ID = "id"
VALUE = "value"
class Enum180(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
ID = "id"
VALUE = "value"
class Enum181(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
ID = "id"
ID_DESC = "id desc"
VALUE = "value"
VALUE_DESC = "value desc"
class Enum182(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
ID = "id"
VALUE = "value"
class Enum183(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
ID = "id"
VALUE = "value"
class Enum184(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
ID = "id"
ID_DESC = "id desc"
CATEGORIES = "categories"
CATEGORIES_DESC = "categories desc"
CHANGE_KEY = "changeKey"
CHANGE_KEY_DESC = "changeKey desc"
CREATED_DATE_TIME = "createdDateTime"
CREATED_DATE_TIME_DESC = "createdDateTime desc"
LAST_MODIFIED_DATE_TIME = "lastModifiedDateTime"
LAST_MODIFIED_DATE_TIME_DESC = "lastModifiedDateTime desc"
ALLOW_NEW_TIME_PROPOSALS = "allowNewTimeProposals"
ALLOW_NEW_TIME_PROPOSALS_DESC = "allowNewTimeProposals desc"
ATTENDEES = "attendees"
ATTENDEES_DESC = "attendees desc"
BODY = "body"
BODY_DESC = "body desc"
BODY_PREVIEW = "bodyPreview"
BODY_PREVIEW_DESC = "bodyPreview desc"
END = "end"
END_DESC = "end desc"
HAS_ATTACHMENTS = "hasAttachments"
HAS_ATTACHMENTS_DESC = "hasAttachments desc"
I_CAL_U_ID = "iCalUId"
I_CAL_U_ID_DESC = "iCalUId desc"
IMPORTANCE = "importance"
IMPORTANCE_DESC = "importance desc"
IS_ALL_DAY = "isAllDay"
IS_ALL_DAY_DESC = "isAllDay desc"
IS_CANCELLED = "isCancelled"
IS_CANCELLED_DESC = "isCancelled desc"
IS_ONLINE_MEETING = "isOnlineMeeting"
IS_ONLINE_MEETING_DESC = "isOnlineMeeting desc"
IS_ORGANIZER = "isOrganizer"
IS_ORGANIZER_DESC = "isOrganizer desc"
IS_REMINDER_ON = "isReminderOn"
IS_REMINDER_ON_DESC = "isReminderOn desc"
LOCATION = "location"
LOCATION_DESC = "location desc"
LOCATIONS = "locations"
LOCATIONS_DESC = "locations desc"
ONLINE_MEETING = "onlineMeeting"
ONLINE_MEETING_DESC = "onlineMeeting desc"
ONLINE_MEETING_PROVIDER = "onlineMeetingProvider"
ONLINE_MEETING_PROVIDER_DESC = "onlineMeetingProvider desc"
ONLINE_MEETING_URL = "onlineMeetingUrl"
ONLINE_MEETING_URL_DESC = "onlineMeetingUrl desc"
ORGANIZER = "organizer"
ORGANIZER_DESC = "organizer desc"
ORIGINAL_END_TIME_ZONE = "originalEndTimeZone"
ORIGINAL_END_TIME_ZONE_DESC = "originalEndTimeZone desc"
ORIGINAL_START = "originalStart"
ORIGINAL_START_DESC = "originalStart desc"
ORIGINAL_START_TIME_ZONE = "originalStartTimeZone"
ORIGINAL_START_TIME_ZONE_DESC = "originalStartTimeZone desc"
RECURRENCE = "recurrence"
RECURRENCE_DESC = "recurrence desc"
REMINDER_MINUTES_BEFORE_START = "reminderMinutesBeforeStart"
REMINDER_MINUTES_BEFORE_START_DESC = "reminderMinutesBeforeStart desc"
RESPONSE_REQUESTED = "responseRequested"
RESPONSE_REQUESTED_DESC = "responseRequested desc"
RESPONSE_STATUS = "responseStatus"
RESPONSE_STATUS_DESC = "responseStatus desc"
SENSITIVITY = "sensitivity"
SENSITIVITY_DESC = "sensitivity desc"
SERIES_MASTER_ID = "seriesMasterId"
SERIES_MASTER_ID_DESC = "seriesMasterId desc"
SHOW_AS = "showAs"
SHOW_AS_DESC = "showAs desc"
START = "start"
START_DESC = "start desc"
SUBJECT = "subject"
SUBJECT_DESC = "subject desc"
TRANSACTION_ID = "transactionId"
TRANSACTION_ID_DESC = "transactionId desc"
TYPE = "type"
TYPE_DESC = "type desc"
WEB_LINK = "webLink"
WEB_LINK_DESC = "webLink desc"
class Enum185(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
ID = "id"
CATEGORIES = "categories"
CHANGE_KEY = "changeKey"
CREATED_DATE_TIME = "createdDateTime"
LAST_MODIFIED_DATE_TIME = "lastModifiedDateTime"
ALLOW_NEW_TIME_PROPOSALS = "allowNewTimeProposals"
ATTENDEES = "attendees"
BODY = "body"
BODY_PREVIEW = "bodyPreview"
END = "end"
HAS_ATTACHMENTS = "hasAttachments"
I_CAL_U_ID = "iCalUId"
IMPORTANCE = "importance"
IS_ALL_DAY = "isAllDay"
IS_CANCELLED = "isCancelled"
IS_ONLINE_MEETING = "isOnlineMeeting"
IS_ORGANIZER = "isOrganizer"
IS_REMINDER_ON = "isReminderOn"
LOCATION = "location"
LOCATIONS = "locations"
ONLINE_MEETING = "onlineMeeting"
ONLINE_MEETING_PROVIDER = "onlineMeetingProvider"
ONLINE_MEETING_URL = "onlineMeetingUrl"
ORGANIZER = "organizer"
ORIGINAL_END_TIME_ZONE = "originalEndTimeZone"
ORIGINAL_START = "originalStart"
ORIGINAL_START_TIME_ZONE = "originalStartTimeZone"
RECURRENCE = "recurrence"
REMINDER_MINUTES_BEFORE_START = "reminderMinutesBeforeStart"
RESPONSE_REQUESTED = "responseRequested"
RESPONSE_STATUS = "responseStatus"
SENSITIVITY = "sensitivity"
SERIES_MASTER_ID = "seriesMasterId"
SHOW_AS = "showAs"
START = "start"
SUBJECT = "subject"
TRANSACTION_ID = "transactionId"
TYPE = "type"
WEB_LINK = "webLink"
ATTACHMENTS = "attachments"
CALENDAR = "calendar"
EXTENSIONS = "extensions"
INSTANCES = "instances"
MULTI_VALUE_EXTENDED_PROPERTIES = "multiValueExtendedProperties"
SINGLE_VALUE_EXTENDED_PROPERTIES = "singleValueExtendedProperties"
class Enum186(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
ASTERISK = "*"
ATTACHMENTS = "attachments"
CALENDAR = "calendar"
EXTENSIONS = "extensions"
INSTANCES = "instances"
MULTI_VALUE_EXTENDED_PROPERTIES = "multiValueExtendedProperties"
SINGLE_VALUE_EXTENDED_PROPERTIES = "singleValueExtendedProperties"
class Enum187(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
ID = "id"
CATEGORIES = "categories"
CHANGE_KEY = "changeKey"
CREATED_DATE_TIME = "createdDateTime"
LAST_MODIFIED_DATE_TIME = "lastModifiedDateTime"
ALLOW_NEW_TIME_PROPOSALS = "allowNewTimeProposals"
ATTENDEES = "attendees"
BODY = "body"
BODY_PREVIEW = "bodyPreview"
END = "end"
HAS_ATTACHMENTS = "hasAttachments"
I_CAL_U_ID = "iCalUId"
IMPORTANCE = "importance"
IS_ALL_DAY = "isAllDay"
IS_CANCELLED = "isCancelled"
IS_ONLINE_MEETING = "isOnlineMeeting"
IS_ORGANIZER = "isOrganizer"
IS_REMINDER_ON = "isReminderOn"
LOCATION = "location"
LOCATIONS = "locations"
ONLINE_MEETING = "onlineMeeting"
ONLINE_MEETING_PROVIDER = "onlineMeetingProvider"
ONLINE_MEETING_URL = "onlineMeetingUrl"
ORGANIZER = "organizer"
ORIGINAL_END_TIME_ZONE = "originalEndTimeZone"
ORIGINAL_START = "originalStart"
ORIGINAL_START_TIME_ZONE = "originalStartTimeZone"
RECURRENCE = "recurrence"
REMINDER_MINUTES_BEFORE_START = "reminderMinutesBeforeStart"
RESPONSE_REQUESTED = "responseRequested"
RESPONSE_STATUS = "responseStatus"
SENSITIVITY = "sensitivity"
SERIES_MASTER_ID = "seriesMasterId"
SHOW_AS = "showAs"
START = "start"
SUBJECT = "subject"
TRANSACTION_ID = "transactionId"
TYPE = "type"
WEB_LINK = "webLink"
ATTACHMENTS = "attachments"
CALENDAR = "calendar"
EXTENSIONS = "extensions"
INSTANCES = "instances"
MULTI_VALUE_EXTENDED_PROPERTIES = "multiValueExtendedProperties"
SINGLE_VALUE_EXTENDED_PROPERTIES = "singleValueExtendedProperties"
class Enum188(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
ASTERISK = "*"
ATTACHMENTS = "attachments"
CALENDAR = "calendar"
EXTENSIONS = "extensions"
INSTANCES = "instances"
MULTI_VALUE_EXTENDED_PROPERTIES = "multiValueExtendedProperties"
SINGLE_VALUE_EXTENDED_PROPERTIES = "singleValueExtendedProperties"
class Enum189(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
ID = "id"
ID_DESC = "id desc"
CONTENT_TYPE = "contentType"
CONTENT_TYPE_DESC = "contentType desc"
IS_INLINE = "isInline"
IS_INLINE_DESC = "isInline desc"
LAST_MODIFIED_DATE_TIME = "lastModifiedDateTime"
LAST_MODIFIED_DATE_TIME_DESC = "lastModifiedDateTime desc"
NAME = "name"
NAME_DESC = "name desc"
SIZE = "size"
SIZE_DESC = "size desc"
class Enum190(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
ID = "id"
CONTENT_TYPE = "contentType"
IS_INLINE = "isInline"
LAST_MODIFIED_DATE_TIME = "lastModifiedDateTime"
NAME = "name"
SIZE = "size"
class Enum191(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
ID = "id"
CONTENT_TYPE = "contentType"
IS_INLINE = "isInline"
LAST_MODIFIED_DATE_TIME = "lastModifiedDateTime"
NAME = "name"
SIZE = "size"
class Enum192(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
ID = "id"
ALLOWED_ONLINE_MEETING_PROVIDERS = "allowedOnlineMeetingProviders"
CAN_EDIT = "canEdit"
CAN_SHARE = "canShare"
CAN_VIEW_PRIVATE_ITEMS = "canViewPrivateItems"
CHANGE_KEY = "changeKey"
COLOR = "color"
DEFAULT_ONLINE_MEETING_PROVIDER = "defaultOnlineMeetingProvider"
IS_REMOVABLE = "isRemovable"
IS_TALLYING_RESPONSES = "isTallyingResponses"
NAME = "name"
OWNER = "owner"
CALENDAR_PERMISSIONS = "calendarPermissions"
CALENDAR_VIEW = "calendarView"
EVENTS = "events"
MULTI_VALUE_EXTENDED_PROPERTIES = "multiValueExtendedProperties"
SINGLE_VALUE_EXTENDED_PROPERTIES = "singleValueExtendedProperties"
class Enum193(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
ASTERISK = "*"
CALENDAR_PERMISSIONS = "calendarPermissions"
CALENDAR_VIEW = "calendarView"
EVENTS = "events"
MULTI_VALUE_EXTENDED_PROPERTIES = "multiValueExtendedProperties"
SINGLE_VALUE_EXTENDED_PROPERTIES = "singleValueExtendedProperties"
class Enum194(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
ID = "id"
ID_DESC = "id desc"
class Enum195(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
ID = "id"
ID_DESC = "id desc"
CATEGORIES = "categories"
CATEGORIES_DESC = "categories desc"
CHANGE_KEY = "changeKey"
CHANGE_KEY_DESC = "changeKey desc"
CREATED_DATE_TIME = "createdDateTime"
CREATED_DATE_TIME_DESC = "createdDateTime desc"
LAST_MODIFIED_DATE_TIME = "lastModifiedDateTime"
LAST_MODIFIED_DATE_TIME_DESC = "lastModifiedDateTime desc"
ALLOW_NEW_TIME_PROPOSALS = "allowNewTimeProposals"
ALLOW_NEW_TIME_PROPOSALS_DESC = "allowNewTimeProposals desc"
ATTENDEES = "attendees"
ATTENDEES_DESC = "attendees desc"
BODY = "body"
BODY_DESC = "body desc"
BODY_PREVIEW = "bodyPreview"
BODY_PREVIEW_DESC = "bodyPreview desc"
END = "end"
END_DESC = "end desc"
HAS_ATTACHMENTS = "hasAttachments"
HAS_ATTACHMENTS_DESC = "hasAttachments desc"
I_CAL_U_ID = "iCalUId"
I_CAL_U_ID_DESC = "iCalUId desc"
IMPORTANCE = "importance"
IMPORTANCE_DESC = "importance desc"
IS_ALL_DAY = "isAllDay"
IS_ALL_DAY_DESC = "isAllDay desc"
IS_CANCELLED = "isCancelled"
IS_CANCELLED_DESC = "isCancelled desc"
IS_ONLINE_MEETING = "isOnlineMeeting"
IS_ONLINE_MEETING_DESC = "isOnlineMeeting desc"
IS_ORGANIZER = "isOrganizer"
IS_ORGANIZER_DESC = "isOrganizer desc"
IS_REMINDER_ON = "isReminderOn"
IS_REMINDER_ON_DESC = "isReminderOn desc"
LOCATION = "location"
LOCATION_DESC = "location desc"
LOCATIONS = "locations"
LOCATIONS_DESC = "locations desc"
ONLINE_MEETING = "onlineMeeting"
ONLINE_MEETING_DESC = "onlineMeeting desc"
ONLINE_MEETING_PROVIDER = "onlineMeetingProvider"
ONLINE_MEETING_PROVIDER_DESC = "onlineMeetingProvider desc"
ONLINE_MEETING_URL = "onlineMeetingUrl"
ONLINE_MEETING_URL_DESC = "onlineMeetingUrl desc"
ORGANIZER = "organizer"
ORGANIZER_DESC = "organizer desc"
ORIGINAL_END_TIME_ZONE = "originalEndTimeZone"
ORIGINAL_END_TIME_ZONE_DESC = "originalEndTimeZone desc"
ORIGINAL_START = "originalStart"
ORIGINAL_START_DESC = "originalStart desc"
ORIGINAL_START_TIME_ZONE = "originalStartTimeZone"
ORIGINAL_START_TIME_ZONE_DESC = "originalStartTimeZone desc"
RECURRENCE = "recurrence"
RECURRENCE_DESC = "recurrence desc"
REMINDER_MINUTES_BEFORE_START = "reminderMinutesBeforeStart"
REMINDER_MINUTES_BEFORE_START_DESC = "reminderMinutesBeforeStart desc"
RESPONSE_REQUESTED = "responseRequested"
RESPONSE_REQUESTED_DESC = "responseRequested desc"
RESPONSE_STATUS = "responseStatus"
RESPONSE_STATUS_DESC = "responseStatus desc"
SENSITIVITY = "sensitivity"
SENSITIVITY_DESC = "sensitivity desc"
SERIES_MASTER_ID = "seriesMasterId"
SERIES_MASTER_ID_DESC = "seriesMasterId desc"
SHOW_AS = "showAs"
SHOW_AS_DESC = "showAs desc"
START = "start"
START_DESC = "start desc"
SUBJECT = "subject"
SUBJECT_DESC = "subject desc"
TRANSACTION_ID = "transactionId"
TRANSACTION_ID_DESC = "transactionId desc"
TYPE = "type"
TYPE_DESC = "type desc"
WEB_LINK = "webLink"
WEB_LINK_DESC = "webLink desc"
class Enum196(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
ID = "id"
CATEGORIES = "categories"
CHANGE_KEY = "changeKey"
CREATED_DATE_TIME = "createdDateTime"
LAST_MODIFIED_DATE_TIME = "lastModifiedDateTime"
ALLOW_NEW_TIME_PROPOSALS = "allowNewTimeProposals"
ATTENDEES = "attendees"
BODY = "body"
BODY_PREVIEW = "bodyPreview"
END = "end"
HAS_ATTACHMENTS = "hasAttachments"
I_CAL_U_ID = "iCalUId"
IMPORTANCE = "importance"
IS_ALL_DAY = "isAllDay"
IS_CANCELLED = "isCancelled"
IS_ONLINE_MEETING = "isOnlineMeeting"
IS_ORGANIZER = "isOrganizer"
IS_REMINDER_ON = "isReminderOn"
LOCATION = "location"
LOCATIONS = "locations"
ONLINE_MEETING = "onlineMeeting"
ONLINE_MEETING_PROVIDER = "onlineMeetingProvider"
ONLINE_MEETING_URL = "onlineMeetingUrl"
ORGANIZER = "organizer"
ORIGINAL_END_TIME_ZONE = "originalEndTimeZone"
ORIGINAL_START = "originalStart"
ORIGINAL_START_TIME_ZONE = "originalStartTimeZone"
RECURRENCE = "recurrence"
REMINDER_MINUTES_BEFORE_START = "reminderMinutesBeforeStart"
RESPONSE_REQUESTED = "responseRequested"
RESPONSE_STATUS = "responseStatus"
SENSITIVITY = "sensitivity"
SERIES_MASTER_ID = "seriesMasterId"
SHOW_AS = "showAs"
START = "start"
SUBJECT = "subject"
TRANSACTION_ID = "transactionId"
TYPE = "type"
WEB_LINK = "webLink"
ATTACHMENTS = "attachments"
CALENDAR = "calendar"
EXTENSIONS = "extensions"
INSTANCES = "instances"
MULTI_VALUE_EXTENDED_PROPERTIES = "multiValueExtendedProperties"
SINGLE_VALUE_EXTENDED_PROPERTIES = "singleValueExtendedProperties"
class Enum197(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
ASTERISK = "*"
ATTACHMENTS = "attachments"
CALENDAR = "calendar"
EXTENSIONS = "extensions"
INSTANCES = "instances"
MULTI_VALUE_EXTENDED_PROPERTIES = "multiValueExtendedProperties"
SINGLE_VALUE_EXTENDED_PROPERTIES = "singleValueExtendedProperties"
class Enum198(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
ID = "id"
CATEGORIES = "categories"
CHANGE_KEY = "changeKey"
CREATED_DATE_TIME = "createdDateTime"
LAST_MODIFIED_DATE_TIME = "lastModifiedDateTime"
ALLOW_NEW_TIME_PROPOSALS = "allowNewTimeProposals"
ATTENDEES = "attendees"
BODY = "body"
BODY_PREVIEW = "bodyPreview"
END = "end"
HAS_ATTACHMENTS = "hasAttachments"
I_CAL_U_ID = "iCalUId"
IMPORTANCE = "importance"
IS_ALL_DAY = "isAllDay"
IS_CANCELLED = "isCancelled"
IS_ONLINE_MEETING = "isOnlineMeeting"
IS_ORGANIZER = "isOrganizer"
IS_REMINDER_ON = "isReminderOn"
LOCATION = "location"
LOCATIONS = "locations"
ONLINE_MEETING = "onlineMeeting"
ONLINE_MEETING_PROVIDER = "onlineMeetingProvider"
ONLINE_MEETING_URL = "onlineMeetingUrl"
ORGANIZER = "organizer"
ORIGINAL_END_TIME_ZONE = "originalEndTimeZone"
ORIGINAL_START = "originalStart"
ORIGINAL_START_TIME_ZONE = "originalStartTimeZone"
RECURRENCE = "recurrence"
REMINDER_MINUTES_BEFORE_START = "reminderMinutesBeforeStart"
RESPONSE_REQUESTED = "responseRequested"
RESPONSE_STATUS = "responseStatus"
SENSITIVITY = "sensitivity"
SERIES_MASTER_ID = "seriesMasterId"
SHOW_AS = "showAs"
START = "start"
SUBJECT = "subject"
TRANSACTION_ID = "transactionId"
TYPE = "type"
WEB_LINK = "webLink"
ATTACHMENTS = "attachments"
CALENDAR = "calendar"
EXTENSIONS = "extensions"
INSTANCES = "instances"
MULTI_VALUE_EXTENDED_PROPERTIES = "multiValueExtendedProperties"
SINGLE_VALUE_EXTENDED_PROPERTIES = "singleValueExtendedProperties"
class Enum199(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
ASTERISK = "*"
ATTACHMENTS = "attachments"
CALENDAR = "calendar"
EXTENSIONS = "extensions"
INSTANCES = "instances"
MULTI_VALUE_EXTENDED_PROPERTIES = "multiValueExtendedProperties"
SINGLE_VALUE_EXTENDED_PROPERTIES = "singleValueExtendedProperties"
class Enum200(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
ID = "id"
ID_DESC = "id desc"
VALUE = "value"
VALUE_DESC = "value desc"
class Enum201(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
ID = "id"
VALUE = "value"
class Enum202(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
ID = "id"
VALUE = "value"
class Enum203(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
ID = "id"
ID_DESC = "id desc"
VALUE = "value"
VALUE_DESC = "value desc"
class Enum204(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
ID = "id"
VALUE = "value"
class Enum205(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
ID = "id"
VALUE = "value"
class Enum206(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
ID = "id"
ID_DESC = "id desc"
VALUE = "value"
VALUE_DESC = "value desc"
class Enum207(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
ID = "id"
VALUE = "value"
class Enum208(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
ID = "id"
VALUE = "value"
class Enum209(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
ID = "id"
ID_DESC = "id desc"
VALUE = "value"
VALUE_DESC = "value desc"
class Enum21(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
ID = "id"
ALLOWED_ROLES = "allowedRoles"
EMAIL_ADDRESS = "emailAddress"
IS_INSIDE_ORGANIZATION = "isInsideOrganization"
IS_REMOVABLE = "isRemovable"
ROLE = "role"
class Enum210(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
ID = "id"
VALUE = "value"
class Enum211(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
ID = "id"
VALUE = "value"
class Enum212(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
ID = "id"
ID_DESC = "id desc"
CHANGE_KEY = "changeKey"
CHANGE_KEY_DESC = "changeKey desc"
CLASS_ID = "classId"
CLASS_ID_DESC = "classId desc"
NAME = "name"
NAME_DESC = "name desc"
class Enum213(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
ID = "id"
CHANGE_KEY = "changeKey"
CLASS_ID = "classId"
NAME = "name"
CALENDARS = "calendars"
class Enum214(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
ASTERISK = "*"
CALENDARS = "calendars"
class Enum215(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
ID = "id"
CHANGE_KEY = "changeKey"
CLASS_ID = "classId"
NAME = "name"
CALENDARS = "calendars"
class Enum216(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
ASTERISK = "*"
CALENDARS = "calendars"
class Enum217(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
ID = "id"
ID_DESC = "id desc"
ALLOWED_ONLINE_MEETING_PROVIDERS = "allowedOnlineMeetingProviders"
ALLOWED_ONLINE_MEETING_PROVIDERS_DESC = "allowedOnlineMeetingProviders desc"
CAN_EDIT = "canEdit"
CAN_EDIT_DESC = "canEdit desc"
CAN_SHARE = "canShare"
CAN_SHARE_DESC = "canShare desc"
CAN_VIEW_PRIVATE_ITEMS = "canViewPrivateItems"
CAN_VIEW_PRIVATE_ITEMS_DESC = "canViewPrivateItems desc"
CHANGE_KEY = "changeKey"
CHANGE_KEY_DESC = "changeKey desc"
COLOR = "color"
COLOR_DESC = "color desc"
DEFAULT_ONLINE_MEETING_PROVIDER = "defaultOnlineMeetingProvider"
DEFAULT_ONLINE_MEETING_PROVIDER_DESC = "defaultOnlineMeetingProvider desc"
IS_REMOVABLE = "isRemovable"
IS_REMOVABLE_DESC = "isRemovable desc"
IS_TALLYING_RESPONSES = "isTallyingResponses"
IS_TALLYING_RESPONSES_DESC = "isTallyingResponses desc"
NAME = "name"
NAME_DESC = "name desc"
OWNER = "owner"
OWNER_DESC = "owner desc"
class Enum218(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
ID = "id"
ALLOWED_ONLINE_MEETING_PROVIDERS = "allowedOnlineMeetingProviders"
CAN_EDIT = "canEdit"
CAN_SHARE = "canShare"
CAN_VIEW_PRIVATE_ITEMS = "canViewPrivateItems"
CHANGE_KEY = "changeKey"
COLOR = "color"
DEFAULT_ONLINE_MEETING_PROVIDER = "defaultOnlineMeetingProvider"
IS_REMOVABLE = "isRemovable"
IS_TALLYING_RESPONSES = "isTallyingResponses"
NAME = "name"
OWNER = "owner"
CALENDAR_PERMISSIONS = "calendarPermissions"
CALENDAR_VIEW = "calendarView"
EVENTS = "events"
MULTI_VALUE_EXTENDED_PROPERTIES = "multiValueExtendedProperties"
SINGLE_VALUE_EXTENDED_PROPERTIES = "singleValueExtendedProperties"
class Enum219(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
ASTERISK = "*"
CALENDAR_PERMISSIONS = "calendarPermissions"
CALENDAR_VIEW = "calendarView"
EVENTS = "events"
MULTI_VALUE_EXTENDED_PROPERTIES = "multiValueExtendedProperties"
SINGLE_VALUE_EXTENDED_PROPERTIES = "singleValueExtendedProperties"
class Enum22(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
ID = "id"
ID_DESC = "id desc"
CATEGORIES = "categories"
CATEGORIES_DESC = "categories desc"
CHANGE_KEY = "changeKey"
CHANGE_KEY_DESC = "changeKey desc"
CREATED_DATE_TIME = "createdDateTime"
CREATED_DATE_TIME_DESC = "createdDateTime desc"
LAST_MODIFIED_DATE_TIME = "lastModifiedDateTime"
LAST_MODIFIED_DATE_TIME_DESC = "lastModifiedDateTime desc"
ALLOW_NEW_TIME_PROPOSALS = "allowNewTimeProposals"
ALLOW_NEW_TIME_PROPOSALS_DESC = "allowNewTimeProposals desc"
ATTENDEES = "attendees"
ATTENDEES_DESC = "attendees desc"
BODY = "body"
BODY_DESC = "body desc"
BODY_PREVIEW = "bodyPreview"
BODY_PREVIEW_DESC = "bodyPreview desc"
END = "end"
END_DESC = "end desc"
HAS_ATTACHMENTS = "hasAttachments"
HAS_ATTACHMENTS_DESC = "hasAttachments desc"
I_CAL_U_ID = "iCalUId"
I_CAL_U_ID_DESC = "iCalUId desc"
IMPORTANCE = "importance"
IMPORTANCE_DESC = "importance desc"
IS_ALL_DAY = "isAllDay"
IS_ALL_DAY_DESC = "isAllDay desc"
IS_CANCELLED = "isCancelled"
IS_CANCELLED_DESC = "isCancelled desc"
IS_ONLINE_MEETING = "isOnlineMeeting"
IS_ONLINE_MEETING_DESC = "isOnlineMeeting desc"
IS_ORGANIZER = "isOrganizer"
IS_ORGANIZER_DESC = "isOrganizer desc"
IS_REMINDER_ON = "isReminderOn"
IS_REMINDER_ON_DESC = "isReminderOn desc"
LOCATION = "location"
LOCATION_DESC = "location desc"
LOCATIONS = "locations"
LOCATIONS_DESC = "locations desc"
ONLINE_MEETING = "onlineMeeting"
ONLINE_MEETING_DESC = "onlineMeeting desc"
ONLINE_MEETING_PROVIDER = "onlineMeetingProvider"
ONLINE_MEETING_PROVIDER_DESC = "onlineMeetingProvider desc"
ONLINE_MEETING_URL = "onlineMeetingUrl"
ONLINE_MEETING_URL_DESC = "onlineMeetingUrl desc"
ORGANIZER = "organizer"
ORGANIZER_DESC = "organizer desc"
ORIGINAL_END_TIME_ZONE = "originalEndTimeZone"
ORIGINAL_END_TIME_ZONE_DESC = "originalEndTimeZone desc"
ORIGINAL_START = "originalStart"
ORIGINAL_START_DESC = "originalStart desc"
ORIGINAL_START_TIME_ZONE = "originalStartTimeZone"
ORIGINAL_START_TIME_ZONE_DESC = "originalStartTimeZone desc"
RECURRENCE = "recurrence"
RECURRENCE_DESC = "recurrence desc"
REMINDER_MINUTES_BEFORE_START = "reminderMinutesBeforeStart"
REMINDER_MINUTES_BEFORE_START_DESC = "reminderMinutesBeforeStart desc"
RESPONSE_REQUESTED = "responseRequested"
RESPONSE_REQUESTED_DESC = "responseRequested desc"
RESPONSE_STATUS = "responseStatus"
RESPONSE_STATUS_DESC = "responseStatus desc"
SENSITIVITY = "sensitivity"
SENSITIVITY_DESC = "sensitivity desc"
SERIES_MASTER_ID = "seriesMasterId"
SERIES_MASTER_ID_DESC = "seriesMasterId desc"
SHOW_AS = "showAs"
SHOW_AS_DESC = "showAs desc"
START = "start"
START_DESC = "start desc"
SUBJECT = "subject"
SUBJECT_DESC = "subject desc"
TRANSACTION_ID = "transactionId"
TRANSACTION_ID_DESC = "transactionId desc"
TYPE = "type"
TYPE_DESC = "type desc"
WEB_LINK = "webLink"
WEB_LINK_DESC = "webLink desc"
class Enum220(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
ID = "id"
ALLOWED_ONLINE_MEETING_PROVIDERS = "allowedOnlineMeetingProviders"
CAN_EDIT = "canEdit"
CAN_SHARE = "canShare"
CAN_VIEW_PRIVATE_ITEMS = "canViewPrivateItems"
CHANGE_KEY = "changeKey"
COLOR = "color"
DEFAULT_ONLINE_MEETING_PROVIDER = "defaultOnlineMeetingProvider"
IS_REMOVABLE = "isRemovable"
IS_TALLYING_RESPONSES = "isTallyingResponses"
NAME = "name"
OWNER = "owner"
CALENDAR_PERMISSIONS = "calendarPermissions"
CALENDAR_VIEW = "calendarView"
EVENTS = "events"
MULTI_VALUE_EXTENDED_PROPERTIES = "multiValueExtendedProperties"
SINGLE_VALUE_EXTENDED_PROPERTIES = "singleValueExtendedProperties"
class Enum221(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
ASTERISK = "*"
CALENDAR_PERMISSIONS = "calendarPermissions"
CALENDAR_VIEW = "calendarView"
EVENTS = "events"
MULTI_VALUE_EXTENDED_PROPERTIES = "multiValueExtendedProperties"
SINGLE_VALUE_EXTENDED_PROPERTIES = "singleValueExtendedProperties"
class Enum222(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
ID = "id"
ID_DESC = "id desc"
ALLOWED_ROLES = "allowedRoles"
ALLOWED_ROLES_DESC = "allowedRoles desc"
EMAIL_ADDRESS = "emailAddress"
EMAIL_ADDRESS_DESC = "emailAddress desc"
IS_INSIDE_ORGANIZATION = "isInsideOrganization"
IS_INSIDE_ORGANIZATION_DESC = "isInsideOrganization desc"
IS_REMOVABLE = "isRemovable"
IS_REMOVABLE_DESC = "isRemovable desc"
ROLE = "role"
ROLE_DESC = "role desc"
class Enum223(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
ID = "id"
ALLOWED_ROLES = "allowedRoles"
EMAIL_ADDRESS = "emailAddress"
IS_INSIDE_ORGANIZATION = "isInsideOrganization"
IS_REMOVABLE = "isRemovable"
ROLE = "role"
class Enum224(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
ID = "id"
ALLOWED_ROLES = "allowedRoles"
EMAIL_ADDRESS = "emailAddress"
IS_INSIDE_ORGANIZATION = "isInsideOrganization"
IS_REMOVABLE = "isRemovable"
ROLE = "role"
class Enum225(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
ID = "id"
ID_DESC = "id desc"
CATEGORIES = "categories"
CATEGORIES_DESC = "categories desc"
CHANGE_KEY = "changeKey"
CHANGE_KEY_DESC = "changeKey desc"
CREATED_DATE_TIME = "createdDateTime"
CREATED_DATE_TIME_DESC = "createdDateTime desc"
LAST_MODIFIED_DATE_TIME = "lastModifiedDateTime"
LAST_MODIFIED_DATE_TIME_DESC = "lastModifiedDateTime desc"
ALLOW_NEW_TIME_PROPOSALS = "allowNewTimeProposals"
ALLOW_NEW_TIME_PROPOSALS_DESC = "allowNewTimeProposals desc"
ATTENDEES = "attendees"
ATTENDEES_DESC = "attendees desc"
BODY = "body"
BODY_DESC = "body desc"
BODY_PREVIEW = "bodyPreview"
BODY_PREVIEW_DESC = "bodyPreview desc"
END = "end"
END_DESC = "end desc"
HAS_ATTACHMENTS = "hasAttachments"
HAS_ATTACHMENTS_DESC = "hasAttachments desc"
I_CAL_U_ID = "iCalUId"
I_CAL_U_ID_DESC = "iCalUId desc"
IMPORTANCE = "importance"
IMPORTANCE_DESC = "importance desc"
IS_ALL_DAY = "isAllDay"
IS_ALL_DAY_DESC = "isAllDay desc"
IS_CANCELLED = "isCancelled"
IS_CANCELLED_DESC = "isCancelled desc"
IS_ONLINE_MEETING = "isOnlineMeeting"
IS_ONLINE_MEETING_DESC = "isOnlineMeeting desc"
IS_ORGANIZER = "isOrganizer"
IS_ORGANIZER_DESC = "isOrganizer desc"
IS_REMINDER_ON = "isReminderOn"
IS_REMINDER_ON_DESC = "isReminderOn desc"
LOCATION = "location"
LOCATION_DESC = "location desc"
LOCATIONS = "locations"
LOCATIONS_DESC = "locations desc"
ONLINE_MEETING = "onlineMeeting"
ONLINE_MEETING_DESC = "onlineMeeting desc"
ONLINE_MEETING_PROVIDER = "onlineMeetingProvider"
ONLINE_MEETING_PROVIDER_DESC = "onlineMeetingProvider desc"
ONLINE_MEETING_URL = "onlineMeetingUrl"
ONLINE_MEETING_URL_DESC = "onlineMeetingUrl desc"
ORGANIZER = "organizer"
ORGANIZER_DESC = "organizer desc"
ORIGINAL_END_TIME_ZONE = "originalEndTimeZone"
ORIGINAL_END_TIME_ZONE_DESC = "originalEndTimeZone desc"
ORIGINAL_START = "originalStart"
ORIGINAL_START_DESC = "originalStart desc"
ORIGINAL_START_TIME_ZONE = "originalStartTimeZone"
ORIGINAL_START_TIME_ZONE_DESC = "originalStartTimeZone desc"
RECURRENCE = "recurrence"
RECURRENCE_DESC = "recurrence desc"
REMINDER_MINUTES_BEFORE_START = "reminderMinutesBeforeStart"
REMINDER_MINUTES_BEFORE_START_DESC = "reminderMinutesBeforeStart desc"
RESPONSE_REQUESTED = "responseRequested"
RESPONSE_REQUESTED_DESC = "responseRequested desc"
RESPONSE_STATUS = "responseStatus"
RESPONSE_STATUS_DESC = "responseStatus desc"
SENSITIVITY = "sensitivity"
SENSITIVITY_DESC = "sensitivity desc"
SERIES_MASTER_ID = "seriesMasterId"
SERIES_MASTER_ID_DESC = "seriesMasterId desc"
SHOW_AS = "showAs"
SHOW_AS_DESC = "showAs desc"
START = "start"
START_DESC = "start desc"
SUBJECT = "subject"
SUBJECT_DESC = "subject desc"
TRANSACTION_ID = "transactionId"
TRANSACTION_ID_DESC = "transactionId desc"
TYPE = "type"
TYPE_DESC = "type desc"
WEB_LINK = "webLink"
WEB_LINK_DESC = "webLink desc"
class Enum226(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
ID = "id"
CATEGORIES = "categories"
CHANGE_KEY = "changeKey"
CREATED_DATE_TIME = "createdDateTime"
LAST_MODIFIED_DATE_TIME = "lastModifiedDateTime"
ALLOW_NEW_TIME_PROPOSALS = "allowNewTimeProposals"
ATTENDEES = "attendees"
BODY = "body"
BODY_PREVIEW = "bodyPreview"
END = "end"
HAS_ATTACHMENTS = "hasAttachments"
I_CAL_U_ID = "iCalUId"
IMPORTANCE = "importance"
IS_ALL_DAY = "isAllDay"
IS_CANCELLED = "isCancelled"
IS_ONLINE_MEETING = "isOnlineMeeting"
IS_ORGANIZER = "isOrganizer"
IS_REMINDER_ON = "isReminderOn"
LOCATION = "location"
LOCATIONS = "locations"
ONLINE_MEETING = "onlineMeeting"
ONLINE_MEETING_PROVIDER = "onlineMeetingProvider"
ONLINE_MEETING_URL = "onlineMeetingUrl"
ORGANIZER = "organizer"
ORIGINAL_END_TIME_ZONE = "originalEndTimeZone"
ORIGINAL_START = "originalStart"
ORIGINAL_START_TIME_ZONE = "originalStartTimeZone"
RECURRENCE = "recurrence"
REMINDER_MINUTES_BEFORE_START = "reminderMinutesBeforeStart"
RESPONSE_REQUESTED = "responseRequested"
RESPONSE_STATUS = "responseStatus"
SENSITIVITY = "sensitivity"
SERIES_MASTER_ID = "seriesMasterId"
SHOW_AS = "showAs"
START = "start"
SUBJECT = "subject"
TRANSACTION_ID = "transactionId"
TYPE = "type"
WEB_LINK = "webLink"
ATTACHMENTS = "attachments"
CALENDAR = "calendar"
EXTENSIONS = "extensions"
INSTANCES = "instances"
MULTI_VALUE_EXTENDED_PROPERTIES = "multiValueExtendedProperties"
SINGLE_VALUE_EXTENDED_PROPERTIES = "singleValueExtendedProperties"
class Enum227(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
ASTERISK = "*"
ATTACHMENTS = "attachments"
CALENDAR = "calendar"
EXTENSIONS = "extensions"
INSTANCES = "instances"
MULTI_VALUE_EXTENDED_PROPERTIES = "multiValueExtendedProperties"
SINGLE_VALUE_EXTENDED_PROPERTIES = "singleValueExtendedProperties"
class Enum228(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
ID = "id"
CATEGORIES = "categories"
CHANGE_KEY = "changeKey"
CREATED_DATE_TIME = "createdDateTime"
LAST_MODIFIED_DATE_TIME = "lastModifiedDateTime"
ALLOW_NEW_TIME_PROPOSALS = "allowNewTimeProposals"
ATTENDEES = "attendees"
BODY = "body"
BODY_PREVIEW = "bodyPreview"
END = "end"
HAS_ATTACHMENTS = "hasAttachments"
I_CAL_U_ID = "iCalUId"
IMPORTANCE = "importance"
IS_ALL_DAY = "isAllDay"
IS_CANCELLED = "isCancelled"
IS_ONLINE_MEETING = "isOnlineMeeting"
IS_ORGANIZER = "isOrganizer"
IS_REMINDER_ON = "isReminderOn"
LOCATION = "location"
LOCATIONS = "locations"
ONLINE_MEETING = "onlineMeeting"
ONLINE_MEETING_PROVIDER = "onlineMeetingProvider"
ONLINE_MEETING_URL = "onlineMeetingUrl"
ORGANIZER = "organizer"
ORIGINAL_END_TIME_ZONE = "originalEndTimeZone"
ORIGINAL_START = "originalStart"
ORIGINAL_START_TIME_ZONE = "originalStartTimeZone"
RECURRENCE = "recurrence"
REMINDER_MINUTES_BEFORE_START = "reminderMinutesBeforeStart"
RESPONSE_REQUESTED = "responseRequested"
RESPONSE_STATUS = "responseStatus"
SENSITIVITY = "sensitivity"
SERIES_MASTER_ID = "seriesMasterId"
SHOW_AS = "showAs"
START = "start"
SUBJECT = "subject"
TRANSACTION_ID = "transactionId"
TYPE = "type"
WEB_LINK = "webLink"
ATTACHMENTS = "attachments"
CALENDAR = "calendar"
EXTENSIONS = "extensions"
INSTANCES = "instances"
MULTI_VALUE_EXTENDED_PROPERTIES = "multiValueExtendedProperties"
SINGLE_VALUE_EXTENDED_PROPERTIES = "singleValueExtendedProperties"
class Enum229(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
ASTERISK = "*"
ATTACHMENTS = "attachments"
CALENDAR = "calendar"
EXTENSIONS = "extensions"
INSTANCES = "instances"
MULTI_VALUE_EXTENDED_PROPERTIES = "multiValueExtendedProperties"
SINGLE_VALUE_EXTENDED_PROPERTIES = "singleValueExtendedProperties"
class Enum230(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
ID = "id"
ID_DESC = "id desc"
CONTENT_TYPE = "contentType"
CONTENT_TYPE_DESC = "contentType desc"
IS_INLINE = "isInline"
IS_INLINE_DESC = "isInline desc"
LAST_MODIFIED_DATE_TIME = "lastModifiedDateTime"
LAST_MODIFIED_DATE_TIME_DESC = "lastModifiedDateTime desc"
NAME = "name"
NAME_DESC = "name desc"
SIZE = "size"
SIZE_DESC = "size desc"
class Enum231(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
ID = "id"
CONTENT_TYPE = "contentType"
IS_INLINE = "isInline"
LAST_MODIFIED_DATE_TIME = "lastModifiedDateTime"
NAME = "name"
SIZE = "size"
class Enum232(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
ID = "id"
CONTENT_TYPE = "contentType"
IS_INLINE = "isInline"
LAST_MODIFIED_DATE_TIME = "lastModifiedDateTime"
NAME = "name"
SIZE = "size"
class Enum233(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
ID = "id"
ALLOWED_ONLINE_MEETING_PROVIDERS = "allowedOnlineMeetingProviders"
CAN_EDIT = "canEdit"
CAN_SHARE = "canShare"
CAN_VIEW_PRIVATE_ITEMS = "canViewPrivateItems"
CHANGE_KEY = "changeKey"
COLOR = "color"
DEFAULT_ONLINE_MEETING_PROVIDER = "defaultOnlineMeetingProvider"
IS_REMOVABLE = "isRemovable"
IS_TALLYING_RESPONSES = "isTallyingResponses"
NAME = "name"
OWNER = "owner"
CALENDAR_PERMISSIONS = "calendarPermissions"
CALENDAR_VIEW = "calendarView"
EVENTS = "events"
MULTI_VALUE_EXTENDED_PROPERTIES = "multiValueExtendedProperties"
SINGLE_VALUE_EXTENDED_PROPERTIES = "singleValueExtendedProperties"
class Enum234(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
ASTERISK = "*"
CALENDAR_PERMISSIONS = "calendarPermissions"
CALENDAR_VIEW = "calendarView"
EVENTS = "events"
MULTI_VALUE_EXTENDED_PROPERTIES = "multiValueExtendedProperties"
SINGLE_VALUE_EXTENDED_PROPERTIES = "singleValueExtendedProperties"
class Enum235(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
ID = "id"
ID_DESC = "id desc"
class Enum236(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
ID = "id"
ID_DESC = "id desc"
CATEGORIES = "categories"
CATEGORIES_DESC = "categories desc"
CHANGE_KEY = "changeKey"
CHANGE_KEY_DESC = "changeKey desc"
CREATED_DATE_TIME = "createdDateTime"
CREATED_DATE_TIME_DESC = "createdDateTime desc"
LAST_MODIFIED_DATE_TIME = "lastModifiedDateTime"
LAST_MODIFIED_DATE_TIME_DESC = "lastModifiedDateTime desc"
ALLOW_NEW_TIME_PROPOSALS = "allowNewTimeProposals"
ALLOW_NEW_TIME_PROPOSALS_DESC = "allowNewTimeProposals desc"
ATTENDEES = "attendees"
ATTENDEES_DESC = "attendees desc"
BODY = "body"
BODY_DESC = "body desc"
BODY_PREVIEW = "bodyPreview"
BODY_PREVIEW_DESC = "bodyPreview desc"
END = "end"
END_DESC = "end desc"
HAS_ATTACHMENTS = "hasAttachments"
HAS_ATTACHMENTS_DESC = "hasAttachments desc"
I_CAL_U_ID = "iCalUId"
I_CAL_U_ID_DESC = "iCalUId desc"
IMPORTANCE = "importance"
IMPORTANCE_DESC = "importance desc"
IS_ALL_DAY = "isAllDay"
IS_ALL_DAY_DESC = "isAllDay desc"
IS_CANCELLED = "isCancelled"
IS_CANCELLED_DESC = "isCancelled desc"
IS_ONLINE_MEETING = "isOnlineMeeting"
IS_ONLINE_MEETING_DESC = "isOnlineMeeting desc"
IS_ORGANIZER = "isOrganizer"
IS_ORGANIZER_DESC = "isOrganizer desc"
IS_REMINDER_ON = "isReminderOn"
IS_REMINDER_ON_DESC = "isReminderOn desc"
LOCATION = "location"
LOCATION_DESC = "location desc"
LOCATIONS = "locations"
LOCATIONS_DESC = "locations desc"
ONLINE_MEETING = "onlineMeeting"
ONLINE_MEETING_DESC = "onlineMeeting desc"
ONLINE_MEETING_PROVIDER = "onlineMeetingProvider"
ONLINE_MEETING_PROVIDER_DESC = "onlineMeetingProvider desc"
ONLINE_MEETING_URL = "onlineMeetingUrl"
ONLINE_MEETING_URL_DESC = "onlineMeetingUrl desc"
ORGANIZER = "organizer"
ORGANIZER_DESC = "organizer desc"
ORIGINAL_END_TIME_ZONE = "originalEndTimeZone"
ORIGINAL_END_TIME_ZONE_DESC = "originalEndTimeZone desc"
ORIGINAL_START = "originalStart"
ORIGINAL_START_DESC = "originalStart desc"
ORIGINAL_START_TIME_ZONE = "originalStartTimeZone"
ORIGINAL_START_TIME_ZONE_DESC = "originalStartTimeZone desc"
RECURRENCE = "recurrence"
RECURRENCE_DESC = "recurrence desc"
REMINDER_MINUTES_BEFORE_START = "reminderMinutesBeforeStart"
REMINDER_MINUTES_BEFORE_START_DESC = "reminderMinutesBeforeStart desc"
RESPONSE_REQUESTED = "responseRequested"
RESPONSE_REQUESTED_DESC = "responseRequested desc"
RESPONSE_STATUS = "responseStatus"
RESPONSE_STATUS_DESC = "responseStatus desc"
SENSITIVITY = "sensitivity"
SENSITIVITY_DESC = "sensitivity desc"
SERIES_MASTER_ID = "seriesMasterId"
SERIES_MASTER_ID_DESC = "seriesMasterId desc"
SHOW_AS = "showAs"
SHOW_AS_DESC = "showAs desc"
START = "start"
START_DESC = "start desc"
SUBJECT = "subject"
SUBJECT_DESC = "subject desc"
TRANSACTION_ID = "transactionId"
TRANSACTION_ID_DESC = "transactionId desc"
TYPE = "type"
TYPE_DESC = "type desc"
WEB_LINK = "webLink"
WEB_LINK_DESC = "webLink desc"
class Enum237(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
ID = "id"
CATEGORIES = "categories"
CHANGE_KEY = "changeKey"
CREATED_DATE_TIME = "createdDateTime"
LAST_MODIFIED_DATE_TIME = "lastModifiedDateTime"
ALLOW_NEW_TIME_PROPOSALS = "allowNewTimeProposals"
ATTENDEES = "attendees"
BODY = "body"
BODY_PREVIEW = "bodyPreview"
END = "end"
HAS_ATTACHMENTS = "hasAttachments"
I_CAL_U_ID = "iCalUId"
IMPORTANCE = "importance"
IS_ALL_DAY = "isAllDay"
IS_CANCELLED = "isCancelled"
IS_ONLINE_MEETING = "isOnlineMeeting"
IS_ORGANIZER = "isOrganizer"
IS_REMINDER_ON = "isReminderOn"
LOCATION = "location"
LOCATIONS = "locations"
ONLINE_MEETING = "onlineMeeting"
ONLINE_MEETING_PROVIDER = "onlineMeetingProvider"
ONLINE_MEETING_URL = "onlineMeetingUrl"
ORGANIZER = "organizer"
ORIGINAL_END_TIME_ZONE = "originalEndTimeZone"
ORIGINAL_START = "originalStart"
ORIGINAL_START_TIME_ZONE = "originalStartTimeZone"
RECURRENCE = "recurrence"
REMINDER_MINUTES_BEFORE_START = "reminderMinutesBeforeStart"
RESPONSE_REQUESTED = "responseRequested"
RESPONSE_STATUS = "responseStatus"
SENSITIVITY = "sensitivity"
SERIES_MASTER_ID = "seriesMasterId"
SHOW_AS = "showAs"
START = "start"
SUBJECT = "subject"
TRANSACTION_ID = "transactionId"
TYPE = "type"
WEB_LINK = "webLink"
ATTACHMENTS = "attachments"
CALENDAR = "calendar"
EXTENSIONS = "extensions"
INSTANCES = "instances"
MULTI_VALUE_EXTENDED_PROPERTIES = "multiValueExtendedProperties"
SINGLE_VALUE_EXTENDED_PROPERTIES = "singleValueExtendedProperties"
class Enum238(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
ASTERISK = "*"
ATTACHMENTS = "attachments"
CALENDAR = "calendar"
EXTENSIONS = "extensions"
INSTANCES = "instances"
MULTI_VALUE_EXTENDED_PROPERTIES = "multiValueExtendedProperties"
SINGLE_VALUE_EXTENDED_PROPERTIES = "singleValueExtendedProperties"
class Enum239(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
ID = "id"
CATEGORIES = "categories"
CHANGE_KEY = "changeKey"
CREATED_DATE_TIME = "createdDateTime"
LAST_MODIFIED_DATE_TIME = "lastModifiedDateTime"
ALLOW_NEW_TIME_PROPOSALS = "allowNewTimeProposals"
ATTENDEES = "attendees"
BODY = "body"
BODY_PREVIEW = "bodyPreview"
END = "end"
HAS_ATTACHMENTS = "hasAttachments"
I_CAL_U_ID = "iCalUId"
IMPORTANCE = "importance"
IS_ALL_DAY = "isAllDay"
IS_CANCELLED = "isCancelled"
IS_ONLINE_MEETING = "isOnlineMeeting"
IS_ORGANIZER = "isOrganizer"
IS_REMINDER_ON = "isReminderOn"
LOCATION = "location"
LOCATIONS = "locations"
ONLINE_MEETING = "onlineMeeting"
ONLINE_MEETING_PROVIDER = "onlineMeetingProvider"
ONLINE_MEETING_URL = "onlineMeetingUrl"
ORGANIZER = "organizer"
ORIGINAL_END_TIME_ZONE = "originalEndTimeZone"
ORIGINAL_START = "originalStart"
ORIGINAL_START_TIME_ZONE = "originalStartTimeZone"
RECURRENCE = "recurrence"
REMINDER_MINUTES_BEFORE_START = "reminderMinutesBeforeStart"
RESPONSE_REQUESTED = "responseRequested"
RESPONSE_STATUS = "responseStatus"
SENSITIVITY = "sensitivity"
SERIES_MASTER_ID = "seriesMasterId"
SHOW_AS = "showAs"
START = "start"
SUBJECT = "subject"
TRANSACTION_ID = "transactionId"
TYPE = "type"
WEB_LINK = "webLink"
ATTACHMENTS = "attachments"
CALENDAR = "calendar"
EXTENSIONS = "extensions"
INSTANCES = "instances"
MULTI_VALUE_EXTENDED_PROPERTIES = "multiValueExtendedProperties"
SINGLE_VALUE_EXTENDED_PROPERTIES = "singleValueExtendedProperties"
class Enum240(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
ASTERISK = "*"
ATTACHMENTS = "attachments"
CALENDAR = "calendar"
EXTENSIONS = "extensions"
INSTANCES = "instances"
MULTI_VALUE_EXTENDED_PROPERTIES = "multiValueExtendedProperties"
SINGLE_VALUE_EXTENDED_PROPERTIES = "singleValueExtendedProperties"
class Enum241(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
ID = "id"
ID_DESC = "id desc"
VALUE = "value"
VALUE_DESC = "value desc"
class Enum242(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
ID = "id"
VALUE = "value"
class Enum243(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
ID = "id"
VALUE = "value"
class Enum244(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
ID = "id"
ID_DESC = "id desc"
VALUE = "value"
VALUE_DESC = "value desc"
class Enum245(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
ID = "id"
VALUE = "value"
class Enum246(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
ID = "id"
VALUE = "value"
class Enum247(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
ID = "id"
ID_DESC = "id desc"
CATEGORIES = "categories"
CATEGORIES_DESC = "categories desc"
CHANGE_KEY = "changeKey"
CHANGE_KEY_DESC = "changeKey desc"
CREATED_DATE_TIME = "createdDateTime"
CREATED_DATE_TIME_DESC = "createdDateTime desc"
LAST_MODIFIED_DATE_TIME = "lastModifiedDateTime"
LAST_MODIFIED_DATE_TIME_DESC = "lastModifiedDateTime desc"
ALLOW_NEW_TIME_PROPOSALS = "allowNewTimeProposals"
ALLOW_NEW_TIME_PROPOSALS_DESC = "allowNewTimeProposals desc"
ATTENDEES = "attendees"
ATTENDEES_DESC = "attendees desc"
BODY = "body"
BODY_DESC = "body desc"
BODY_PREVIEW = "bodyPreview"
BODY_PREVIEW_DESC = "bodyPreview desc"
END = "end"
END_DESC = "end desc"
HAS_ATTACHMENTS = "hasAttachments"
HAS_ATTACHMENTS_DESC = "hasAttachments desc"
I_CAL_U_ID = "iCalUId"
I_CAL_U_ID_DESC = "iCalUId desc"
IMPORTANCE = "importance"
IMPORTANCE_DESC = "importance desc"
IS_ALL_DAY = "isAllDay"
IS_ALL_DAY_DESC = "isAllDay desc"
IS_CANCELLED = "isCancelled"
IS_CANCELLED_DESC = "isCancelled desc"
IS_ONLINE_MEETING = "isOnlineMeeting"
IS_ONLINE_MEETING_DESC = "isOnlineMeeting desc"
IS_ORGANIZER = "isOrganizer"
IS_ORGANIZER_DESC = "isOrganizer desc"
IS_REMINDER_ON = "isReminderOn"
IS_REMINDER_ON_DESC = "isReminderOn desc"
LOCATION = "location"
LOCATION_DESC = "location desc"
LOCATIONS = "locations"
LOCATIONS_DESC = "locations desc"
ONLINE_MEETING = "onlineMeeting"
ONLINE_MEETING_DESC = "onlineMeeting desc"
ONLINE_MEETING_PROVIDER = "onlineMeetingProvider"
ONLINE_MEETING_PROVIDER_DESC = "onlineMeetingProvider desc"
ONLINE_MEETING_URL = "onlineMeetingUrl"
ONLINE_MEETING_URL_DESC = "onlineMeetingUrl desc"
ORGANIZER = "organizer"
ORGANIZER_DESC = "organizer desc"
ORIGINAL_END_TIME_ZONE = "originalEndTimeZone"
ORIGINAL_END_TIME_ZONE_DESC = "originalEndTimeZone desc"
ORIGINAL_START = "originalStart"
ORIGINAL_START_DESC = "originalStart desc"
ORIGINAL_START_TIME_ZONE = "originalStartTimeZone"
ORIGINAL_START_TIME_ZONE_DESC = "originalStartTimeZone desc"
RECURRENCE = "recurrence"
RECURRENCE_DESC = "recurrence desc"
REMINDER_MINUTES_BEFORE_START = "reminderMinutesBeforeStart"
REMINDER_MINUTES_BEFORE_START_DESC = "reminderMinutesBeforeStart desc"
RESPONSE_REQUESTED = "responseRequested"
RESPONSE_REQUESTED_DESC = "responseRequested desc"
RESPONSE_STATUS = "responseStatus"
RESPONSE_STATUS_DESC = "responseStatus desc"
SENSITIVITY = "sensitivity"
SENSITIVITY_DESC = "sensitivity desc"
SERIES_MASTER_ID = "seriesMasterId"
SERIES_MASTER_ID_DESC = "seriesMasterId desc"
SHOW_AS = "showAs"
SHOW_AS_DESC = "showAs desc"
START = "start"
START_DESC = "start desc"
SUBJECT = "subject"
SUBJECT_DESC = "subject desc"
TRANSACTION_ID = "transactionId"
TRANSACTION_ID_DESC = "transactionId desc"
TYPE = "type"
TYPE_DESC = "type desc"
WEB_LINK = "webLink"
WEB_LINK_DESC = "webLink desc"
class Enum248(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
ID = "id"
CATEGORIES = "categories"
CHANGE_KEY = "changeKey"
CREATED_DATE_TIME = "createdDateTime"
LAST_MODIFIED_DATE_TIME = "lastModifiedDateTime"
ALLOW_NEW_TIME_PROPOSALS = "allowNewTimeProposals"
ATTENDEES = "attendees"
BODY = "body"
BODY_PREVIEW = "bodyPreview"
END = "end"
HAS_ATTACHMENTS = "hasAttachments"
I_CAL_U_ID = "iCalUId"
IMPORTANCE = "importance"
IS_ALL_DAY = "isAllDay"
IS_CANCELLED = "isCancelled"
IS_ONLINE_MEETING = "isOnlineMeeting"
IS_ORGANIZER = "isOrganizer"
IS_REMINDER_ON = "isReminderOn"
LOCATION = "location"
LOCATIONS = "locations"
ONLINE_MEETING = "onlineMeeting"
ONLINE_MEETING_PROVIDER = "onlineMeetingProvider"
ONLINE_MEETING_URL = "onlineMeetingUrl"
ORGANIZER = "organizer"
ORIGINAL_END_TIME_ZONE = "originalEndTimeZone"
ORIGINAL_START = "originalStart"
ORIGINAL_START_TIME_ZONE = "originalStartTimeZone"
RECURRENCE = "recurrence"
REMINDER_MINUTES_BEFORE_START = "reminderMinutesBeforeStart"
RESPONSE_REQUESTED = "responseRequested"
RESPONSE_STATUS = "responseStatus"
SENSITIVITY = "sensitivity"
SERIES_MASTER_ID = "seriesMasterId"
SHOW_AS = "showAs"
START = "start"
SUBJECT = "subject"
TRANSACTION_ID = "transactionId"
TYPE = "type"
WEB_LINK = "webLink"
ATTACHMENTS = "attachments"
CALENDAR = "calendar"
EXTENSIONS = "extensions"
INSTANCES = "instances"
MULTI_VALUE_EXTENDED_PROPERTIES = "multiValueExtendedProperties"
SINGLE_VALUE_EXTENDED_PROPERTIES = "singleValueExtendedProperties"
class Enum249(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
ASTERISK = "*"
ATTACHMENTS = "attachments"
CALENDAR = "calendar"
EXTENSIONS = "extensions"
INSTANCES = "instances"
MULTI_VALUE_EXTENDED_PROPERTIES = "multiValueExtendedProperties"
SINGLE_VALUE_EXTENDED_PROPERTIES = "singleValueExtendedProperties"
class Enum250(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
ID = "id"
CATEGORIES = "categories"
CHANGE_KEY = "changeKey"
CREATED_DATE_TIME = "createdDateTime"
LAST_MODIFIED_DATE_TIME = "lastModifiedDateTime"
ALLOW_NEW_TIME_PROPOSALS = "allowNewTimeProposals"
ATTENDEES = "attendees"
BODY = "body"
BODY_PREVIEW = "bodyPreview"
END = "end"
HAS_ATTACHMENTS = "hasAttachments"
I_CAL_U_ID = "iCalUId"
IMPORTANCE = "importance"
IS_ALL_DAY = "isAllDay"
IS_CANCELLED = "isCancelled"
IS_ONLINE_MEETING = "isOnlineMeeting"
IS_ORGANIZER = "isOrganizer"
IS_REMINDER_ON = "isReminderOn"
LOCATION = "location"
LOCATIONS = "locations"
ONLINE_MEETING = "onlineMeeting"
ONLINE_MEETING_PROVIDER = "onlineMeetingProvider"
ONLINE_MEETING_URL = "onlineMeetingUrl"
ORGANIZER = "organizer"
ORIGINAL_END_TIME_ZONE = "originalEndTimeZone"
ORIGINAL_START = "originalStart"
ORIGINAL_START_TIME_ZONE = "originalStartTimeZone"
RECURRENCE = "recurrence"
REMINDER_MINUTES_BEFORE_START = "reminderMinutesBeforeStart"
RESPONSE_REQUESTED = "responseRequested"
RESPONSE_STATUS = "responseStatus"
SENSITIVITY = "sensitivity"
SERIES_MASTER_ID = "seriesMasterId"
SHOW_AS = "showAs"
START = "start"
SUBJECT = "subject"
TRANSACTION_ID = "transactionId"
TYPE = "type"
WEB_LINK = "webLink"
ATTACHMENTS = "attachments"
CALENDAR = "calendar"
EXTENSIONS = "extensions"
INSTANCES = "instances"
MULTI_VALUE_EXTENDED_PROPERTIES = "multiValueExtendedProperties"
SINGLE_VALUE_EXTENDED_PROPERTIES = "singleValueExtendedProperties"
class Enum251(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
ASTERISK = "*"
ATTACHMENTS = "attachments"
CALENDAR = "calendar"
EXTENSIONS = "extensions"
INSTANCES = "instances"
MULTI_VALUE_EXTENDED_PROPERTIES = "multiValueExtendedProperties"
SINGLE_VALUE_EXTENDED_PROPERTIES = "singleValueExtendedProperties"
class Enum252(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
ID = "id"
ID_DESC = "id desc"
CONTENT_TYPE = "contentType"
CONTENT_TYPE_DESC = "contentType desc"
IS_INLINE = "isInline"
IS_INLINE_DESC = "isInline desc"
LAST_MODIFIED_DATE_TIME = "lastModifiedDateTime"
LAST_MODIFIED_DATE_TIME_DESC = "lastModifiedDateTime desc"
NAME = "name"
NAME_DESC = "name desc"
SIZE = "size"
SIZE_DESC = "size desc"
class Enum253(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
ID = "id"
CONTENT_TYPE = "contentType"
IS_INLINE = "isInline"
LAST_MODIFIED_DATE_TIME = "lastModifiedDateTime"
NAME = "name"
SIZE = "size"
class Enum254(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
ID = "id"
CONTENT_TYPE = "contentType"
IS_INLINE = "isInline"
LAST_MODIFIED_DATE_TIME = "lastModifiedDateTime"
NAME = "name"
SIZE = "size"
class Enum255(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
ID = "id"
ALLOWED_ONLINE_MEETING_PROVIDERS = "allowedOnlineMeetingProviders"
CAN_EDIT = "canEdit"
CAN_SHARE = "canShare"
CAN_VIEW_PRIVATE_ITEMS = "canViewPrivateItems"
CHANGE_KEY = "changeKey"
COLOR = "color"
DEFAULT_ONLINE_MEETING_PROVIDER = "defaultOnlineMeetingProvider"
IS_REMOVABLE = "isRemovable"
IS_TALLYING_RESPONSES = "isTallyingResponses"
NAME = "name"
OWNER = "owner"
CALENDAR_PERMISSIONS = "calendarPermissions"
CALENDAR_VIEW = "calendarView"
EVENTS = "events"
MULTI_VALUE_EXTENDED_PROPERTIES = "multiValueExtendedProperties"
SINGLE_VALUE_EXTENDED_PROPERTIES = "singleValueExtendedProperties"
class Enum256(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
ASTERISK = "*"
CALENDAR_PERMISSIONS = "calendarPermissions"
CALENDAR_VIEW = "calendarView"
EVENTS = "events"
MULTI_VALUE_EXTENDED_PROPERTIES = "multiValueExtendedProperties"
SINGLE_VALUE_EXTENDED_PROPERTIES = "singleValueExtendedProperties"
class Enum257(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
ID = "id"
ID_DESC = "id desc"
class Enum258(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
ID = "id"
ID_DESC = "id desc"
CATEGORIES = "categories"
CATEGORIES_DESC = "categories desc"
CHANGE_KEY = "changeKey"
CHANGE_KEY_DESC = "changeKey desc"
CREATED_DATE_TIME = "createdDateTime"
CREATED_DATE_TIME_DESC = "createdDateTime desc"
LAST_MODIFIED_DATE_TIME = "lastModifiedDateTime"
LAST_MODIFIED_DATE_TIME_DESC = "lastModifiedDateTime desc"
ALLOW_NEW_TIME_PROPOSALS = "allowNewTimeProposals"
ALLOW_NEW_TIME_PROPOSALS_DESC = "allowNewTimeProposals desc"
ATTENDEES = "attendees"
ATTENDEES_DESC = "attendees desc"
BODY = "body"
BODY_DESC = "body desc"
BODY_PREVIEW = "bodyPreview"
BODY_PREVIEW_DESC = "bodyPreview desc"
END = "end"
END_DESC = "end desc"
HAS_ATTACHMENTS = "hasAttachments"
HAS_ATTACHMENTS_DESC = "hasAttachments desc"
I_CAL_U_ID = "iCalUId"
I_CAL_U_ID_DESC = "iCalUId desc"
IMPORTANCE = "importance"
IMPORTANCE_DESC = "importance desc"
IS_ALL_DAY = "isAllDay"
IS_ALL_DAY_DESC = "isAllDay desc"
IS_CANCELLED = "isCancelled"
IS_CANCELLED_DESC = "isCancelled desc"
IS_ONLINE_MEETING = "isOnlineMeeting"
IS_ONLINE_MEETING_DESC = "isOnlineMeeting desc"
IS_ORGANIZER = "isOrganizer"
IS_ORGANIZER_DESC = "isOrganizer desc"
IS_REMINDER_ON = "isReminderOn"
IS_REMINDER_ON_DESC = "isReminderOn desc"
LOCATION = "location"
LOCATION_DESC = "location desc"
LOCATIONS = "locations"
LOCATIONS_DESC = "locations desc"
ONLINE_MEETING = "onlineMeeting"
ONLINE_MEETING_DESC = "onlineMeeting desc"
ONLINE_MEETING_PROVIDER = "onlineMeetingProvider"
ONLINE_MEETING_PROVIDER_DESC = "onlineMeetingProvider desc"
ONLINE_MEETING_URL = "onlineMeetingUrl"
ONLINE_MEETING_URL_DESC = "onlineMeetingUrl desc"
ORGANIZER = "organizer"
ORGANIZER_DESC = "organizer desc"
ORIGINAL_END_TIME_ZONE = "originalEndTimeZone"
ORIGINAL_END_TIME_ZONE_DESC = "originalEndTimeZone desc"
ORIGINAL_START = "originalStart"
ORIGINAL_START_DESC = "originalStart desc"
ORIGINAL_START_TIME_ZONE = "originalStartTimeZone"
ORIGINAL_START_TIME_ZONE_DESC = "originalStartTimeZone desc"
RECURRENCE = "recurrence"
RECURRENCE_DESC = "recurrence desc"
REMINDER_MINUTES_BEFORE_START = "reminderMinutesBeforeStart"
REMINDER_MINUTES_BEFORE_START_DESC = "reminderMinutesBeforeStart desc"
RESPONSE_REQUESTED = "responseRequested"
RESPONSE_REQUESTED_DESC = "responseRequested desc"
RESPONSE_STATUS = "responseStatus"
RESPONSE_STATUS_DESC = "responseStatus desc"
SENSITIVITY = "sensitivity"
SENSITIVITY_DESC = "sensitivity desc"
SERIES_MASTER_ID = "seriesMasterId"
SERIES_MASTER_ID_DESC = "seriesMasterId desc"
SHOW_AS = "showAs"
SHOW_AS_DESC = "showAs desc"
START = "start"
START_DESC = "start desc"
SUBJECT = "subject"
SUBJECT_DESC = "subject desc"
TRANSACTION_ID = "transactionId"
TRANSACTION_ID_DESC = "transactionId desc"
TYPE = "type"
TYPE_DESC = "type desc"
WEB_LINK = "webLink"
WEB_LINK_DESC = "webLink desc"
class Enum259(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
ID = "id"
CATEGORIES = "categories"
CHANGE_KEY = "changeKey"
CREATED_DATE_TIME = "createdDateTime"
LAST_MODIFIED_DATE_TIME = "lastModifiedDateTime"
ALLOW_NEW_TIME_PROPOSALS = "allowNewTimeProposals"
ATTENDEES = "attendees"
BODY = "body"
BODY_PREVIEW = "bodyPreview"
END = "end"
HAS_ATTACHMENTS = "hasAttachments"
I_CAL_U_ID = "iCalUId"
IMPORTANCE = "importance"
IS_ALL_DAY = "isAllDay"
IS_CANCELLED = "isCancelled"
IS_ONLINE_MEETING = "isOnlineMeeting"
IS_ORGANIZER = "isOrganizer"
IS_REMINDER_ON = "isReminderOn"
LOCATION = "location"
LOCATIONS = "locations"
ONLINE_MEETING = "onlineMeeting"
ONLINE_MEETING_PROVIDER = "onlineMeetingProvider"
ONLINE_MEETING_URL = "onlineMeetingUrl"
ORGANIZER = "organizer"
ORIGINAL_END_TIME_ZONE = "originalEndTimeZone"
ORIGINAL_START = "originalStart"
ORIGINAL_START_TIME_ZONE = "originalStartTimeZone"
RECURRENCE = "recurrence"
REMINDER_MINUTES_BEFORE_START = "reminderMinutesBeforeStart"
RESPONSE_REQUESTED = "responseRequested"
RESPONSE_STATUS = "responseStatus"
SENSITIVITY = "sensitivity"
SERIES_MASTER_ID = "seriesMasterId"
SHOW_AS = "showAs"
START = "start"
SUBJECT = "subject"
TRANSACTION_ID = "transactionId"
TYPE = "type"
WEB_LINK = "webLink"
ATTACHMENTS = "attachments"
CALENDAR = "calendar"
EXTENSIONS = "extensions"
INSTANCES = "instances"
MULTI_VALUE_EXTENDED_PROPERTIES = "multiValueExtendedProperties"
SINGLE_VALUE_EXTENDED_PROPERTIES = "singleValueExtendedProperties"
class Enum260(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
ASTERISK = "*"
ATTACHMENTS = "attachments"
CALENDAR = "calendar"
EXTENSIONS = "extensions"
INSTANCES = "instances"
MULTI_VALUE_EXTENDED_PROPERTIES = "multiValueExtendedProperties"
SINGLE_VALUE_EXTENDED_PROPERTIES = "singleValueExtendedProperties"
class Enum261(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
ID = "id"
CATEGORIES = "categories"
CHANGE_KEY = "changeKey"
CREATED_DATE_TIME = "createdDateTime"
LAST_MODIFIED_DATE_TIME = "lastModifiedDateTime"
ALLOW_NEW_TIME_PROPOSALS = "allowNewTimeProposals"
ATTENDEES = "attendees"
BODY = "body"
BODY_PREVIEW = "bodyPreview"
END = "end"
HAS_ATTACHMENTS = "hasAttachments"
I_CAL_U_ID = "iCalUId"
IMPORTANCE = "importance"
IS_ALL_DAY = "isAllDay"
IS_CANCELLED = "isCancelled"
IS_ONLINE_MEETING = "isOnlineMeeting"
IS_ORGANIZER = "isOrganizer"
IS_REMINDER_ON = "isReminderOn"
LOCATION = "location"
LOCATIONS = "locations"
ONLINE_MEETING = "onlineMeeting"
ONLINE_MEETING_PROVIDER = "onlineMeetingProvider"
ONLINE_MEETING_URL = "onlineMeetingUrl"
ORGANIZER = "organizer"
ORIGINAL_END_TIME_ZONE = "originalEndTimeZone"
ORIGINAL_START = "originalStart"
ORIGINAL_START_TIME_ZONE = "originalStartTimeZone"
RECURRENCE = "recurrence"
REMINDER_MINUTES_BEFORE_START = "reminderMinutesBeforeStart"
RESPONSE_REQUESTED = "responseRequested"
RESPONSE_STATUS = "responseStatus"
SENSITIVITY = "sensitivity"
SERIES_MASTER_ID = "seriesMasterId"
SHOW_AS = "showAs"
START = "start"
SUBJECT = "subject"
TRANSACTION_ID = "transactionId"
TYPE = "type"
WEB_LINK = "webLink"
ATTACHMENTS = "attachments"
CALENDAR = "calendar"
EXTENSIONS = "extensions"
INSTANCES = "instances"
MULTI_VALUE_EXTENDED_PROPERTIES = "multiValueExtendedProperties"
SINGLE_VALUE_EXTENDED_PROPERTIES = "singleValueExtendedProperties"
class Enum262(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
ASTERISK = "*"
ATTACHMENTS = "attachments"
CALENDAR = "calendar"
EXTENSIONS = "extensions"
INSTANCES = "instances"
MULTI_VALUE_EXTENDED_PROPERTIES = "multiValueExtendedProperties"
SINGLE_VALUE_EXTENDED_PROPERTIES = "singleValueExtendedProperties"
class Enum263(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
ID = "id"
ID_DESC = "id desc"
VALUE = "value"
VALUE_DESC = "value desc"
class Enum264(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
ID = "id"
VALUE = "value"
class Enum265(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
ID = "id"
VALUE = "value"
class Enum266(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
ID = "id"
ID_DESC = "id desc"
VALUE = "value"
VALUE_DESC = "value desc"
class Enum267(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
ID = "id"
VALUE = "value"
class Enum268(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
ID = "id"
VALUE = "value"
class Enum269(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
ID = "id"
ID_DESC = "id desc"
VALUE = "value"
VALUE_DESC = "value desc"
class Enum27(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
ID = "id"
ID_DESC = "id desc"
CONTENT_TYPE = "contentType"
CONTENT_TYPE_DESC = "contentType desc"
IS_INLINE = "isInline"
IS_INLINE_DESC = "isInline desc"
LAST_MODIFIED_DATE_TIME = "lastModifiedDateTime"
LAST_MODIFIED_DATE_TIME_DESC = "lastModifiedDateTime desc"
NAME = "name"
NAME_DESC = "name desc"
SIZE = "size"
SIZE_DESC = "size desc"
class Enum270(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
ID = "id"
VALUE = "value"
class Enum271(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
ID = "id"
VALUE = "value"
class Enum272(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
ID = "id"
ID_DESC = "id desc"
VALUE = "value"
VALUE_DESC = "value desc"
class Enum273(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
ID = "id"
VALUE = "value"
class Enum274(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
ID = "id"
VALUE = "value"
class Enum275(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
ID = "id"
ID_DESC = "id desc"
ALLOWED_ONLINE_MEETING_PROVIDERS = "allowedOnlineMeetingProviders"
ALLOWED_ONLINE_MEETING_PROVIDERS_DESC = "allowedOnlineMeetingProviders desc"
CAN_EDIT = "canEdit"
CAN_EDIT_DESC = "canEdit desc"
CAN_SHARE = "canShare"
CAN_SHARE_DESC = "canShare desc"
CAN_VIEW_PRIVATE_ITEMS = "canViewPrivateItems"
CAN_VIEW_PRIVATE_ITEMS_DESC = "canViewPrivateItems desc"
CHANGE_KEY = "changeKey"
CHANGE_KEY_DESC = "changeKey desc"
COLOR = "color"
COLOR_DESC = "color desc"
DEFAULT_ONLINE_MEETING_PROVIDER = "defaultOnlineMeetingProvider"
DEFAULT_ONLINE_MEETING_PROVIDER_DESC = "defaultOnlineMeetingProvider desc"
IS_REMOVABLE = "isRemovable"
IS_REMOVABLE_DESC = "isRemovable desc"
IS_TALLYING_RESPONSES = "isTallyingResponses"
IS_TALLYING_RESPONSES_DESC = "isTallyingResponses desc"
NAME = "name"
NAME_DESC = "name desc"
OWNER = "owner"
OWNER_DESC = "owner desc"
class Enum276(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
ID = "id"
ALLOWED_ONLINE_MEETING_PROVIDERS = "allowedOnlineMeetingProviders"
CAN_EDIT = "canEdit"
CAN_SHARE = "canShare"
CAN_VIEW_PRIVATE_ITEMS = "canViewPrivateItems"
CHANGE_KEY = "changeKey"
COLOR = "color"
DEFAULT_ONLINE_MEETING_PROVIDER = "defaultOnlineMeetingProvider"
IS_REMOVABLE = "isRemovable"
IS_TALLYING_RESPONSES = "isTallyingResponses"
NAME = "name"
OWNER = "owner"
CALENDAR_PERMISSIONS = "calendarPermissions"
CALENDAR_VIEW = "calendarView"
EVENTS = "events"
MULTI_VALUE_EXTENDED_PROPERTIES = "multiValueExtendedProperties"
SINGLE_VALUE_EXTENDED_PROPERTIES = "singleValueExtendedProperties"
class Enum277(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
ASTERISK = "*"
CALENDAR_PERMISSIONS = "calendarPermissions"
CALENDAR_VIEW = "calendarView"
EVENTS = "events"
MULTI_VALUE_EXTENDED_PROPERTIES = "multiValueExtendedProperties"
SINGLE_VALUE_EXTENDED_PROPERTIES = "singleValueExtendedProperties"
class Enum278(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
ID = "id"
ALLOWED_ONLINE_MEETING_PROVIDERS = "allowedOnlineMeetingProviders"
CAN_EDIT = "canEdit"
CAN_SHARE = "canShare"
CAN_VIEW_PRIVATE_ITEMS = "canViewPrivateItems"
CHANGE_KEY = "changeKey"
COLOR = "color"
DEFAULT_ONLINE_MEETING_PROVIDER = "defaultOnlineMeetingProvider"
IS_REMOVABLE = "isRemovable"
IS_TALLYING_RESPONSES = "isTallyingResponses"
NAME = "name"
OWNER = "owner"
CALENDAR_PERMISSIONS = "calendarPermissions"
CALENDAR_VIEW = "calendarView"
EVENTS = "events"
MULTI_VALUE_EXTENDED_PROPERTIES = "multiValueExtendedProperties"
SINGLE_VALUE_EXTENDED_PROPERTIES = "singleValueExtendedProperties"
class Enum279(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
ASTERISK = "*"
CALENDAR_PERMISSIONS = "calendarPermissions"
CALENDAR_VIEW = "calendarView"
EVENTS = "events"
MULTI_VALUE_EXTENDED_PROPERTIES = "multiValueExtendedProperties"
SINGLE_VALUE_EXTENDED_PROPERTIES = "singleValueExtendedProperties"
class Enum28(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
ID = "id"
CONTENT_TYPE = "contentType"
IS_INLINE = "isInline"
LAST_MODIFIED_DATE_TIME = "lastModifiedDateTime"
NAME = "name"
SIZE = "size"
class Enum280(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
ID = "id"
ID_DESC = "id desc"
ALLOWED_ROLES = "allowedRoles"
ALLOWED_ROLES_DESC = "allowedRoles desc"
EMAIL_ADDRESS = "emailAddress"
EMAIL_ADDRESS_DESC = "emailAddress desc"
IS_INSIDE_ORGANIZATION = "isInsideOrganization"
IS_INSIDE_ORGANIZATION_DESC = "isInsideOrganization desc"
IS_REMOVABLE = "isRemovable"
IS_REMOVABLE_DESC = "isRemovable desc"
ROLE = "role"
ROLE_DESC = "role desc"
class Enum281(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
ID = "id"
ALLOWED_ROLES = "allowedRoles"
EMAIL_ADDRESS = "emailAddress"
IS_INSIDE_ORGANIZATION = "isInsideOrganization"
IS_REMOVABLE = "isRemovable"
ROLE = "role"
class Enum282(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
ID = "id"
ALLOWED_ROLES = "allowedRoles"
EMAIL_ADDRESS = "emailAddress"
IS_INSIDE_ORGANIZATION = "isInsideOrganization"
IS_REMOVABLE = "isRemovable"
ROLE = "role"
class Enum283(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
ID = "id"
ID_DESC = "id desc"
CATEGORIES = "categories"
CATEGORIES_DESC = "categories desc"
CHANGE_KEY = "changeKey"
CHANGE_KEY_DESC = "changeKey desc"
CREATED_DATE_TIME = "createdDateTime"
CREATED_DATE_TIME_DESC = "createdDateTime desc"
LAST_MODIFIED_DATE_TIME = "lastModifiedDateTime"
LAST_MODIFIED_DATE_TIME_DESC = "lastModifiedDateTime desc"
ALLOW_NEW_TIME_PROPOSALS = "allowNewTimeProposals"
ALLOW_NEW_TIME_PROPOSALS_DESC = "allowNewTimeProposals desc"
ATTENDEES = "attendees"
ATTENDEES_DESC = "attendees desc"
BODY = "body"
BODY_DESC = "body desc"
BODY_PREVIEW = "bodyPreview"
BODY_PREVIEW_DESC = "bodyPreview desc"
END = "end"
END_DESC = "end desc"
HAS_ATTACHMENTS = "hasAttachments"
HAS_ATTACHMENTS_DESC = "hasAttachments desc"
I_CAL_U_ID = "iCalUId"
I_CAL_U_ID_DESC = "iCalUId desc"
IMPORTANCE = "importance"
IMPORTANCE_DESC = "importance desc"
IS_ALL_DAY = "isAllDay"
IS_ALL_DAY_DESC = "isAllDay desc"
IS_CANCELLED = "isCancelled"
IS_CANCELLED_DESC = "isCancelled desc"
IS_ONLINE_MEETING = "isOnlineMeeting"
IS_ONLINE_MEETING_DESC = "isOnlineMeeting desc"
IS_ORGANIZER = "isOrganizer"
IS_ORGANIZER_DESC = "isOrganizer desc"
IS_REMINDER_ON = "isReminderOn"
IS_REMINDER_ON_DESC = "isReminderOn desc"
LOCATION = "location"
LOCATION_DESC = "location desc"
LOCATIONS = "locations"
LOCATIONS_DESC = "locations desc"
ONLINE_MEETING = "onlineMeeting"
ONLINE_MEETING_DESC = "onlineMeeting desc"
ONLINE_MEETING_PROVIDER = "onlineMeetingProvider"
ONLINE_MEETING_PROVIDER_DESC = "onlineMeetingProvider desc"
ONLINE_MEETING_URL = "onlineMeetingUrl"
ONLINE_MEETING_URL_DESC = "onlineMeetingUrl desc"
ORGANIZER = "organizer"
ORGANIZER_DESC = "organizer desc"
ORIGINAL_END_TIME_ZONE = "originalEndTimeZone"
ORIGINAL_END_TIME_ZONE_DESC = "originalEndTimeZone desc"
ORIGINAL_START = "originalStart"
ORIGINAL_START_DESC = "originalStart desc"
ORIGINAL_START_TIME_ZONE = "originalStartTimeZone"
ORIGINAL_START_TIME_ZONE_DESC = "originalStartTimeZone desc"
RECURRENCE = "recurrence"
RECURRENCE_DESC = "recurrence desc"
REMINDER_MINUTES_BEFORE_START = "reminderMinutesBeforeStart"
REMINDER_MINUTES_BEFORE_START_DESC = "reminderMinutesBeforeStart desc"
RESPONSE_REQUESTED = "responseRequested"
RESPONSE_REQUESTED_DESC = "responseRequested desc"
RESPONSE_STATUS = "responseStatus"
RESPONSE_STATUS_DESC = "responseStatus desc"
SENSITIVITY = "sensitivity"
SENSITIVITY_DESC = "sensitivity desc"
SERIES_MASTER_ID = "seriesMasterId"
SERIES_MASTER_ID_DESC = "seriesMasterId desc"
SHOW_AS = "showAs"
SHOW_AS_DESC = "showAs desc"
START = "start"
START_DESC = "start desc"
SUBJECT = "subject"
SUBJECT_DESC = "subject desc"
TRANSACTION_ID = "transactionId"
TRANSACTION_ID_DESC = "transactionId desc"
TYPE = "type"
TYPE_DESC = "type desc"
WEB_LINK = "webLink"
WEB_LINK_DESC = "webLink desc"
class Enum284(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
ID = "id"
CATEGORIES = "categories"
CHANGE_KEY = "changeKey"
CREATED_DATE_TIME = "createdDateTime"
LAST_MODIFIED_DATE_TIME = "lastModifiedDateTime"
ALLOW_NEW_TIME_PROPOSALS = "allowNewTimeProposals"
ATTENDEES = "attendees"
BODY = "body"
BODY_PREVIEW = "bodyPreview"
END = "end"
HAS_ATTACHMENTS = "hasAttachments"
I_CAL_U_ID = "iCalUId"
IMPORTANCE = "importance"
IS_ALL_DAY = "isAllDay"
IS_CANCELLED = "isCancelled"
IS_ONLINE_MEETING = "isOnlineMeeting"
IS_ORGANIZER = "isOrganizer"
IS_REMINDER_ON = "isReminderOn"
LOCATION = "location"
LOCATIONS = "locations"
ONLINE_MEETING = "onlineMeeting"
ONLINE_MEETING_PROVIDER = "onlineMeetingProvider"
ONLINE_MEETING_URL = "onlineMeetingUrl"
ORGANIZER = "organizer"
ORIGINAL_END_TIME_ZONE = "originalEndTimeZone"
ORIGINAL_START = "originalStart"
ORIGINAL_START_TIME_ZONE = "originalStartTimeZone"
RECURRENCE = "recurrence"
REMINDER_MINUTES_BEFORE_START = "reminderMinutesBeforeStart"
RESPONSE_REQUESTED = "responseRequested"
RESPONSE_STATUS = "responseStatus"
SENSITIVITY = "sensitivity"
SERIES_MASTER_ID = "seriesMasterId"
SHOW_AS = "showAs"
START = "start"
SUBJECT = "subject"
TRANSACTION_ID = "transactionId"
TYPE = "type"
WEB_LINK = "webLink"
ATTACHMENTS = "attachments"
CALENDAR = "calendar"
EXTENSIONS = "extensions"
INSTANCES = "instances"
MULTI_VALUE_EXTENDED_PROPERTIES = "multiValueExtendedProperties"
SINGLE_VALUE_EXTENDED_PROPERTIES = "singleValueExtendedProperties"
class Enum285(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
ASTERISK = "*"
ATTACHMENTS = "attachments"
CALENDAR = "calendar"
EXTENSIONS = "extensions"
INSTANCES = "instances"
MULTI_VALUE_EXTENDED_PROPERTIES = "multiValueExtendedProperties"
SINGLE_VALUE_EXTENDED_PROPERTIES = "singleValueExtendedProperties"
class Enum286(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
ID = "id"
CATEGORIES = "categories"
CHANGE_KEY = "changeKey"
CREATED_DATE_TIME = "createdDateTime"
LAST_MODIFIED_DATE_TIME = "lastModifiedDateTime"
ALLOW_NEW_TIME_PROPOSALS = "allowNewTimeProposals"
ATTENDEES = "attendees"
BODY = "body"
BODY_PREVIEW = "bodyPreview"
END = "end"
HAS_ATTACHMENTS = "hasAttachments"
I_CAL_U_ID = "iCalUId"
IMPORTANCE = "importance"
IS_ALL_DAY = "isAllDay"
IS_CANCELLED = "isCancelled"
IS_ONLINE_MEETING = "isOnlineMeeting"
IS_ORGANIZER = "isOrganizer"
IS_REMINDER_ON = "isReminderOn"
LOCATION = "location"
LOCATIONS = "locations"
ONLINE_MEETING = "onlineMeeting"
ONLINE_MEETING_PROVIDER = "onlineMeetingProvider"
ONLINE_MEETING_URL = "onlineMeetingUrl"
ORGANIZER = "organizer"
ORIGINAL_END_TIME_ZONE = "originalEndTimeZone"
ORIGINAL_START = "originalStart"
ORIGINAL_START_TIME_ZONE = "originalStartTimeZone"
RECURRENCE = "recurrence"
REMINDER_MINUTES_BEFORE_START = "reminderMinutesBeforeStart"
RESPONSE_REQUESTED = "responseRequested"
RESPONSE_STATUS = "responseStatus"
SENSITIVITY = "sensitivity"
SERIES_MASTER_ID = "seriesMasterId"
SHOW_AS = "showAs"
START = "start"
SUBJECT = "subject"
TRANSACTION_ID = "transactionId"
TYPE = "type"
WEB_LINK = "webLink"
ATTACHMENTS = "attachments"
CALENDAR = "calendar"
EXTENSIONS = "extensions"
INSTANCES = "instances"
MULTI_VALUE_EXTENDED_PROPERTIES = "multiValueExtendedProperties"
SINGLE_VALUE_EXTENDED_PROPERTIES = "singleValueExtendedProperties"
class Enum287(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
ASTERISK = "*"
ATTACHMENTS = "attachments"
CALENDAR = "calendar"
EXTENSIONS = "extensions"
INSTANCES = "instances"
MULTI_VALUE_EXTENDED_PROPERTIES = "multiValueExtendedProperties"
SINGLE_VALUE_EXTENDED_PROPERTIES = "singleValueExtendedProperties"
class Enum288(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
ID = "id"
ID_DESC = "id desc"
CONTENT_TYPE = "contentType"
CONTENT_TYPE_DESC = "contentType desc"
IS_INLINE = "isInline"
IS_INLINE_DESC = "isInline desc"
LAST_MODIFIED_DATE_TIME = "lastModifiedDateTime"
LAST_MODIFIED_DATE_TIME_DESC = "lastModifiedDateTime desc"
NAME = "name"
NAME_DESC = "name desc"
SIZE = "size"
SIZE_DESC = "size desc"
class Enum289(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
ID = "id"
CONTENT_TYPE = "contentType"
IS_INLINE = "isInline"
LAST_MODIFIED_DATE_TIME = "lastModifiedDateTime"
NAME = "name"
SIZE = "size"
class Enum29(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
ID = "id"
CONTENT_TYPE = "contentType"
IS_INLINE = "isInline"
LAST_MODIFIED_DATE_TIME = "lastModifiedDateTime"
NAME = "name"
SIZE = "size"
class Enum290(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
ID = "id"
CONTENT_TYPE = "contentType"
IS_INLINE = "isInline"
LAST_MODIFIED_DATE_TIME = "lastModifiedDateTime"
NAME = "name"
SIZE = "size"
class Enum291(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
ID = "id"
ALLOWED_ONLINE_MEETING_PROVIDERS = "allowedOnlineMeetingProviders"
CAN_EDIT = "canEdit"
CAN_SHARE = "canShare"
CAN_VIEW_PRIVATE_ITEMS = "canViewPrivateItems"
CHANGE_KEY = "changeKey"
COLOR = "color"
DEFAULT_ONLINE_MEETING_PROVIDER = "defaultOnlineMeetingProvider"
IS_REMOVABLE = "isRemovable"
IS_TALLYING_RESPONSES = "isTallyingResponses"
NAME = "name"
OWNER = "owner"
CALENDAR_PERMISSIONS = "calendarPermissions"
CALENDAR_VIEW = "calendarView"
EVENTS = "events"
MULTI_VALUE_EXTENDED_PROPERTIES = "multiValueExtendedProperties"
SINGLE_VALUE_EXTENDED_PROPERTIES = "singleValueExtendedProperties"
class Enum292(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
ASTERISK = "*"
CALENDAR_PERMISSIONS = "calendarPermissions"
CALENDAR_VIEW = "calendarView"
EVENTS = "events"
MULTI_VALUE_EXTENDED_PROPERTIES = "multiValueExtendedProperties"
SINGLE_VALUE_EXTENDED_PROPERTIES = "singleValueExtendedProperties"
class Enum293(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
ID = "id"
ID_DESC = "id desc"
class Enum294(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
ID = "id"
ID_DESC = "id desc"
CATEGORIES = "categories"
CATEGORIES_DESC = "categories desc"
CHANGE_KEY = "changeKey"
CHANGE_KEY_DESC = "changeKey desc"
CREATED_DATE_TIME = "createdDateTime"
CREATED_DATE_TIME_DESC = "createdDateTime desc"
LAST_MODIFIED_DATE_TIME = "lastModifiedDateTime"
LAST_MODIFIED_DATE_TIME_DESC = "lastModifiedDateTime desc"
ALLOW_NEW_TIME_PROPOSALS = "allowNewTimeProposals"
ALLOW_NEW_TIME_PROPOSALS_DESC = "allowNewTimeProposals desc"
ATTENDEES = "attendees"
ATTENDEES_DESC = "attendees desc"
BODY = "body"
BODY_DESC = "body desc"
BODY_PREVIEW = "bodyPreview"
BODY_PREVIEW_DESC = "bodyPreview desc"
END = "end"
END_DESC = "end desc"
HAS_ATTACHMENTS = "hasAttachments"
HAS_ATTACHMENTS_DESC = "hasAttachments desc"
I_CAL_U_ID = "iCalUId"
I_CAL_U_ID_DESC = "iCalUId desc"
IMPORTANCE = "importance"
IMPORTANCE_DESC = "importance desc"
IS_ALL_DAY = "isAllDay"
IS_ALL_DAY_DESC = "isAllDay desc"
IS_CANCELLED = "isCancelled"
IS_CANCELLED_DESC = "isCancelled desc"
IS_ONLINE_MEETING = "isOnlineMeeting"
IS_ONLINE_MEETING_DESC = "isOnlineMeeting desc"
IS_ORGANIZER = "isOrganizer"
IS_ORGANIZER_DESC = "isOrganizer desc"
IS_REMINDER_ON = "isReminderOn"
IS_REMINDER_ON_DESC = "isReminderOn desc"
LOCATION = "location"
LOCATION_DESC = "location desc"
LOCATIONS = "locations"
LOCATIONS_DESC = "locations desc"
ONLINE_MEETING = "onlineMeeting"
ONLINE_MEETING_DESC = "onlineMeeting desc"
ONLINE_MEETING_PROVIDER = "onlineMeetingProvider"
ONLINE_MEETING_PROVIDER_DESC = "onlineMeetingProvider desc"
ONLINE_MEETING_URL = "onlineMeetingUrl"
ONLINE_MEETING_URL_DESC = "onlineMeetingUrl desc"
ORGANIZER = "organizer"
ORGANIZER_DESC = "organizer desc"
ORIGINAL_END_TIME_ZONE = "originalEndTimeZone"
ORIGINAL_END_TIME_ZONE_DESC = "originalEndTimeZone desc"
ORIGINAL_START = "originalStart"
ORIGINAL_START_DESC = "originalStart desc"
ORIGINAL_START_TIME_ZONE = "originalStartTimeZone"
ORIGINAL_START_TIME_ZONE_DESC = "originalStartTimeZone desc"
RECURRENCE = "recurrence"
RECURRENCE_DESC = "recurrence desc"
REMINDER_MINUTES_BEFORE_START = "reminderMinutesBeforeStart"
REMINDER_MINUTES_BEFORE_START_DESC = "reminderMinutesBeforeStart desc"
RESPONSE_REQUESTED = "responseRequested"
RESPONSE_REQUESTED_DESC = "responseRequested desc"
RESPONSE_STATUS = "responseStatus"
RESPONSE_STATUS_DESC = "responseStatus desc"
SENSITIVITY = "sensitivity"
SENSITIVITY_DESC = "sensitivity desc"
SERIES_MASTER_ID = "seriesMasterId"
SERIES_MASTER_ID_DESC = "seriesMasterId desc"
SHOW_AS = "showAs"
SHOW_AS_DESC = "showAs desc"
START = "start"
START_DESC = "start desc"
SUBJECT = "subject"
SUBJECT_DESC = "subject desc"
TRANSACTION_ID = "transactionId"
TRANSACTION_ID_DESC = "transactionId desc"
TYPE = "type"
TYPE_DESC = "type desc"
WEB_LINK = "webLink"
WEB_LINK_DESC = "webLink desc"
class Enum295(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
ID = "id"
CATEGORIES = "categories"
CHANGE_KEY = "changeKey"
CREATED_DATE_TIME = "createdDateTime"
LAST_MODIFIED_DATE_TIME = "lastModifiedDateTime"
ALLOW_NEW_TIME_PROPOSALS = "allowNewTimeProposals"
ATTENDEES = "attendees"
BODY = "body"
BODY_PREVIEW = "bodyPreview"
END = "end"
HAS_ATTACHMENTS = "hasAttachments"
I_CAL_U_ID = "iCalUId"
IMPORTANCE = "importance"
IS_ALL_DAY = "isAllDay"
IS_CANCELLED = "isCancelled"
IS_ONLINE_MEETING = "isOnlineMeeting"
IS_ORGANIZER = "isOrganizer"
IS_REMINDER_ON = "isReminderOn"
LOCATION = "location"
LOCATIONS = "locations"
ONLINE_MEETING = "onlineMeeting"
ONLINE_MEETING_PROVIDER = "onlineMeetingProvider"
ONLINE_MEETING_URL = "onlineMeetingUrl"
ORGANIZER = "organizer"
ORIGINAL_END_TIME_ZONE = "originalEndTimeZone"
ORIGINAL_START = "originalStart"
ORIGINAL_START_TIME_ZONE = "originalStartTimeZone"
RECURRENCE = "recurrence"
REMINDER_MINUTES_BEFORE_START = "reminderMinutesBeforeStart"
RESPONSE_REQUESTED = "responseRequested"
RESPONSE_STATUS = "responseStatus"
SENSITIVITY = "sensitivity"
SERIES_MASTER_ID = "seriesMasterId"
SHOW_AS = "showAs"
START = "start"
SUBJECT = "subject"
TRANSACTION_ID = "transactionId"
TYPE = "type"
WEB_LINK = "webLink"
ATTACHMENTS = "attachments"
CALENDAR = "calendar"
EXTENSIONS = "extensions"
INSTANCES = "instances"
MULTI_VALUE_EXTENDED_PROPERTIES = "multiValueExtendedProperties"
SINGLE_VALUE_EXTENDED_PROPERTIES = "singleValueExtendedProperties"
class Enum296(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
ASTERISK = "*"
ATTACHMENTS = "attachments"
CALENDAR = "calendar"
EXTENSIONS = "extensions"
INSTANCES = "instances"
MULTI_VALUE_EXTENDED_PROPERTIES = "multiValueExtendedProperties"
SINGLE_VALUE_EXTENDED_PROPERTIES = "singleValueExtendedProperties"
class Enum297(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
ID = "id"
CATEGORIES = "categories"
CHANGE_KEY = "changeKey"
CREATED_DATE_TIME = "createdDateTime"
LAST_MODIFIED_DATE_TIME = "lastModifiedDateTime"
ALLOW_NEW_TIME_PROPOSALS = "allowNewTimeProposals"
ATTENDEES = "attendees"
BODY = "body"
BODY_PREVIEW = "bodyPreview"
END = "end"
HAS_ATTACHMENTS = "hasAttachments"
I_CAL_U_ID = "iCalUId"
IMPORTANCE = "importance"
IS_ALL_DAY = "isAllDay"
IS_CANCELLED = "isCancelled"
IS_ONLINE_MEETING = "isOnlineMeeting"
IS_ORGANIZER = "isOrganizer"
IS_REMINDER_ON = "isReminderOn"
LOCATION = "location"
LOCATIONS = "locations"
ONLINE_MEETING = "onlineMeeting"
ONLINE_MEETING_PROVIDER = "onlineMeetingProvider"
ONLINE_MEETING_URL = "onlineMeetingUrl"
ORGANIZER = "organizer"
ORIGINAL_END_TIME_ZONE = "originalEndTimeZone"
ORIGINAL_START = "originalStart"
ORIGINAL_START_TIME_ZONE = "originalStartTimeZone"
RECURRENCE = "recurrence"
REMINDER_MINUTES_BEFORE_START = "reminderMinutesBeforeStart"
RESPONSE_REQUESTED = "responseRequested"
RESPONSE_STATUS = "responseStatus"
SENSITIVITY = "sensitivity"
SERIES_MASTER_ID = "seriesMasterId"
SHOW_AS = "showAs"
START = "start"
SUBJECT = "subject"
TRANSACTION_ID = "transactionId"
TYPE = "type"
WEB_LINK = "webLink"
ATTACHMENTS = "attachments"
CALENDAR = "calendar"
EXTENSIONS = "extensions"
INSTANCES = "instances"
MULTI_VALUE_EXTENDED_PROPERTIES = "multiValueExtendedProperties"
SINGLE_VALUE_EXTENDED_PROPERTIES = "singleValueExtendedProperties"
class Enum298(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
ASTERISK = "*"
ATTACHMENTS = "attachments"
CALENDAR = "calendar"
EXTENSIONS = "extensions"
INSTANCES = "instances"
MULTI_VALUE_EXTENDED_PROPERTIES = "multiValueExtendedProperties"
SINGLE_VALUE_EXTENDED_PROPERTIES = "singleValueExtendedProperties"
class Enum299(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
ID = "id"
ID_DESC = "id desc"
VALUE = "value"
VALUE_DESC = "value desc"
class Enum30(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
ID = "id"
ALLOWED_ONLINE_MEETING_PROVIDERS = "allowedOnlineMeetingProviders"
CAN_EDIT = "canEdit"
CAN_SHARE = "canShare"
CAN_VIEW_PRIVATE_ITEMS = "canViewPrivateItems"
CHANGE_KEY = "changeKey"
COLOR = "color"
DEFAULT_ONLINE_MEETING_PROVIDER = "defaultOnlineMeetingProvider"
IS_REMOVABLE = "isRemovable"
IS_TALLYING_RESPONSES = "isTallyingResponses"
NAME = "name"
OWNER = "owner"
CALENDAR_PERMISSIONS = "calendarPermissions"
CALENDAR_VIEW = "calendarView"
EVENTS = "events"
MULTI_VALUE_EXTENDED_PROPERTIES = "multiValueExtendedProperties"
SINGLE_VALUE_EXTENDED_PROPERTIES = "singleValueExtendedProperties"
class Enum300(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
ID = "id"
VALUE = "value"
class Enum301(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
ID = "id"
VALUE = "value"
class Enum302(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
ID = "id"
ID_DESC = "id desc"
VALUE = "value"
VALUE_DESC = "value desc"
class Enum303(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
ID = "id"
VALUE = "value"
class Enum304(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
ID = "id"
VALUE = "value"
class Enum305(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
ID = "id"
ID_DESC = "id desc"
CATEGORIES = "categories"
CATEGORIES_DESC = "categories desc"
CHANGE_KEY = "changeKey"
CHANGE_KEY_DESC = "changeKey desc"
CREATED_DATE_TIME = "createdDateTime"
CREATED_DATE_TIME_DESC = "createdDateTime desc"
LAST_MODIFIED_DATE_TIME = "lastModifiedDateTime"
LAST_MODIFIED_DATE_TIME_DESC = "lastModifiedDateTime desc"
ALLOW_NEW_TIME_PROPOSALS = "allowNewTimeProposals"
ALLOW_NEW_TIME_PROPOSALS_DESC = "allowNewTimeProposals desc"
ATTENDEES = "attendees"
ATTENDEES_DESC = "attendees desc"
BODY = "body"
BODY_DESC = "body desc"
BODY_PREVIEW = "bodyPreview"
BODY_PREVIEW_DESC = "bodyPreview desc"
END = "end"
END_DESC = "end desc"
HAS_ATTACHMENTS = "hasAttachments"
HAS_ATTACHMENTS_DESC = "hasAttachments desc"
I_CAL_U_ID = "iCalUId"
I_CAL_U_ID_DESC = "iCalUId desc"
IMPORTANCE = "importance"
IMPORTANCE_DESC = "importance desc"
IS_ALL_DAY = "isAllDay"
IS_ALL_DAY_DESC = "isAllDay desc"
IS_CANCELLED = "isCancelled"
IS_CANCELLED_DESC = "isCancelled desc"
IS_ONLINE_MEETING = "isOnlineMeeting"
IS_ONLINE_MEETING_DESC = "isOnlineMeeting desc"
IS_ORGANIZER = "isOrganizer"
IS_ORGANIZER_DESC = "isOrganizer desc"
IS_REMINDER_ON = "isReminderOn"
IS_REMINDER_ON_DESC = "isReminderOn desc"
LOCATION = "location"
LOCATION_DESC = "location desc"
LOCATIONS = "locations"
LOCATIONS_DESC = "locations desc"
ONLINE_MEETING = "onlineMeeting"
ONLINE_MEETING_DESC = "onlineMeeting desc"
ONLINE_MEETING_PROVIDER = "onlineMeetingProvider"
ONLINE_MEETING_PROVIDER_DESC = "onlineMeetingProvider desc"
ONLINE_MEETING_URL = "onlineMeetingUrl"
ONLINE_MEETING_URL_DESC = "onlineMeetingUrl desc"
ORGANIZER = "organizer"
ORGANIZER_DESC = "organizer desc"
ORIGINAL_END_TIME_ZONE = "originalEndTimeZone"
ORIGINAL_END_TIME_ZONE_DESC = "originalEndTimeZone desc"
ORIGINAL_START = "originalStart"
ORIGINAL_START_DESC = "originalStart desc"
ORIGINAL_START_TIME_ZONE = "originalStartTimeZone"
ORIGINAL_START_TIME_ZONE_DESC = "originalStartTimeZone desc"
RECURRENCE = "recurrence"
RECURRENCE_DESC = "recurrence desc"
REMINDER_MINUTES_BEFORE_START = "reminderMinutesBeforeStart"
REMINDER_MINUTES_BEFORE_START_DESC = "reminderMinutesBeforeStart desc"
RESPONSE_REQUESTED = "responseRequested"
RESPONSE_REQUESTED_DESC = "responseRequested desc"
RESPONSE_STATUS = "responseStatus"
RESPONSE_STATUS_DESC = "responseStatus desc"
SENSITIVITY = "sensitivity"
SENSITIVITY_DESC = "sensitivity desc"
SERIES_MASTER_ID = "seriesMasterId"
SERIES_MASTER_ID_DESC = "seriesMasterId desc"
SHOW_AS = "showAs"
SHOW_AS_DESC = "showAs desc"
START = "start"
START_DESC = "start desc"
SUBJECT = "subject"
SUBJECT_DESC = "subject desc"
TRANSACTION_ID = "transactionId"
TRANSACTION_ID_DESC = "transactionId desc"
TYPE = "type"
TYPE_DESC = "type desc"
WEB_LINK = "webLink"
WEB_LINK_DESC = "webLink desc"
class Enum306(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
ID = "id"
CATEGORIES = "categories"
CHANGE_KEY = "changeKey"
CREATED_DATE_TIME = "createdDateTime"
LAST_MODIFIED_DATE_TIME = "lastModifiedDateTime"
ALLOW_NEW_TIME_PROPOSALS = "allowNewTimeProposals"
ATTENDEES = "attendees"
BODY = "body"
BODY_PREVIEW = "bodyPreview"
END = "end"
HAS_ATTACHMENTS = "hasAttachments"
I_CAL_U_ID = "iCalUId"
IMPORTANCE = "importance"
IS_ALL_DAY = "isAllDay"
IS_CANCELLED = "isCancelled"
IS_ONLINE_MEETING = "isOnlineMeeting"
IS_ORGANIZER = "isOrganizer"
IS_REMINDER_ON = "isReminderOn"
LOCATION = "location"
LOCATIONS = "locations"
ONLINE_MEETING = "onlineMeeting"
ONLINE_MEETING_PROVIDER = "onlineMeetingProvider"
ONLINE_MEETING_URL = "onlineMeetingUrl"
ORGANIZER = "organizer"
ORIGINAL_END_TIME_ZONE = "originalEndTimeZone"
ORIGINAL_START = "originalStart"
ORIGINAL_START_TIME_ZONE = "originalStartTimeZone"
RECURRENCE = "recurrence"
REMINDER_MINUTES_BEFORE_START = "reminderMinutesBeforeStart"
RESPONSE_REQUESTED = "responseRequested"
RESPONSE_STATUS = "responseStatus"
SENSITIVITY = "sensitivity"
SERIES_MASTER_ID = "seriesMasterId"
SHOW_AS = "showAs"
START = "start"
SUBJECT = "subject"
TRANSACTION_ID = "transactionId"
TYPE = "type"
WEB_LINK = "webLink"
ATTACHMENTS = "attachments"
CALENDAR = "calendar"
EXTENSIONS = "extensions"
INSTANCES = "instances"
MULTI_VALUE_EXTENDED_PROPERTIES = "multiValueExtendedProperties"
SINGLE_VALUE_EXTENDED_PROPERTIES = "singleValueExtendedProperties"
class Enum307(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
ASTERISK = "*"
ATTACHMENTS = "attachments"
CALENDAR = "calendar"
EXTENSIONS = "extensions"
INSTANCES = "instances"
MULTI_VALUE_EXTENDED_PROPERTIES = "multiValueExtendedProperties"
SINGLE_VALUE_EXTENDED_PROPERTIES = "singleValueExtendedProperties"
class Enum308(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
ID = "id"
CATEGORIES = "categories"
CHANGE_KEY = "changeKey"
CREATED_DATE_TIME = "createdDateTime"
LAST_MODIFIED_DATE_TIME = "lastModifiedDateTime"
ALLOW_NEW_TIME_PROPOSALS = "allowNewTimeProposals"
ATTENDEES = "attendees"
BODY = "body"
BODY_PREVIEW = "bodyPreview"
END = "end"
HAS_ATTACHMENTS = "hasAttachments"
I_CAL_U_ID = "iCalUId"
IMPORTANCE = "importance"
IS_ALL_DAY = "isAllDay"
IS_CANCELLED = "isCancelled"
IS_ONLINE_MEETING = "isOnlineMeeting"
IS_ORGANIZER = "isOrganizer"
IS_REMINDER_ON = "isReminderOn"
LOCATION = "location"
LOCATIONS = "locations"
ONLINE_MEETING = "onlineMeeting"
ONLINE_MEETING_PROVIDER = "onlineMeetingProvider"
ONLINE_MEETING_URL = "onlineMeetingUrl"
ORGANIZER = "organizer"
ORIGINAL_END_TIME_ZONE = "originalEndTimeZone"
ORIGINAL_START = "originalStart"
ORIGINAL_START_TIME_ZONE = "originalStartTimeZone"
RECURRENCE = "recurrence"
REMINDER_MINUTES_BEFORE_START = "reminderMinutesBeforeStart"
RESPONSE_REQUESTED = "responseRequested"
RESPONSE_STATUS = "responseStatus"
SENSITIVITY = "sensitivity"
SERIES_MASTER_ID = "seriesMasterId"
SHOW_AS = "showAs"
START = "start"
SUBJECT = "subject"
TRANSACTION_ID = "transactionId"
TYPE = "type"
WEB_LINK = "webLink"
ATTACHMENTS = "attachments"
CALENDAR = "calendar"
EXTENSIONS = "extensions"
INSTANCES = "instances"
MULTI_VALUE_EXTENDED_PROPERTIES = "multiValueExtendedProperties"
SINGLE_VALUE_EXTENDED_PROPERTIES = "singleValueExtendedProperties"
class Enum309(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
ASTERISK = "*"
ATTACHMENTS = "attachments"
CALENDAR = "calendar"
EXTENSIONS = "extensions"
INSTANCES = "instances"
MULTI_VALUE_EXTENDED_PROPERTIES = "multiValueExtendedProperties"
SINGLE_VALUE_EXTENDED_PROPERTIES = "singleValueExtendedProperties"
class Enum31(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
ASTERISK = "*"
CALENDAR_PERMISSIONS = "calendarPermissions"
CALENDAR_VIEW = "calendarView"
EVENTS = "events"
MULTI_VALUE_EXTENDED_PROPERTIES = "multiValueExtendedProperties"
SINGLE_VALUE_EXTENDED_PROPERTIES = "singleValueExtendedProperties"
class Enum310(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
ID = "id"
ID_DESC = "id desc"
CONTENT_TYPE = "contentType"
CONTENT_TYPE_DESC = "contentType desc"
IS_INLINE = "isInline"
IS_INLINE_DESC = "isInline desc"
LAST_MODIFIED_DATE_TIME = "lastModifiedDateTime"
LAST_MODIFIED_DATE_TIME_DESC = "lastModifiedDateTime desc"
NAME = "name"
NAME_DESC = "name desc"
SIZE = "size"
SIZE_DESC = "size desc"
class Enum311(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
ID = "id"
CONTENT_TYPE = "contentType"
IS_INLINE = "isInline"
LAST_MODIFIED_DATE_TIME = "lastModifiedDateTime"
NAME = "name"
SIZE = "size"
class Enum312(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
ID = "id"
CONTENT_TYPE = "contentType"
IS_INLINE = "isInline"
LAST_MODIFIED_DATE_TIME = "lastModifiedDateTime"
NAME = "name"
SIZE = "size"
class Enum313(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
ID = "id"
ALLOWED_ONLINE_MEETING_PROVIDERS = "allowedOnlineMeetingProviders"
CAN_EDIT = "canEdit"
CAN_SHARE = "canShare"
CAN_VIEW_PRIVATE_ITEMS = "canViewPrivateItems"
CHANGE_KEY = "changeKey"
COLOR = "color"
DEFAULT_ONLINE_MEETING_PROVIDER = "defaultOnlineMeetingProvider"
IS_REMOVABLE = "isRemovable"
IS_TALLYING_RESPONSES = "isTallyingResponses"
NAME = "name"
OWNER = "owner"
CALENDAR_PERMISSIONS = "calendarPermissions"
CALENDAR_VIEW = "calendarView"
EVENTS = "events"
MULTI_VALUE_EXTENDED_PROPERTIES = "multiValueExtendedProperties"
SINGLE_VALUE_EXTENDED_PROPERTIES = "singleValueExtendedProperties"
class Enum314(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
ASTERISK = "*"
CALENDAR_PERMISSIONS = "calendarPermissions"
CALENDAR_VIEW = "calendarView"
EVENTS = "events"
MULTI_VALUE_EXTENDED_PROPERTIES = "multiValueExtendedProperties"
SINGLE_VALUE_EXTENDED_PROPERTIES = "singleValueExtendedProperties"
class Enum315(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
ID = "id"
ID_DESC = "id desc"
class Enum316(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
ID = "id"
ID_DESC = "id desc"
CATEGORIES = "categories"
CATEGORIES_DESC = "categories desc"
CHANGE_KEY = "changeKey"
CHANGE_KEY_DESC = "changeKey desc"
CREATED_DATE_TIME = "createdDateTime"
CREATED_DATE_TIME_DESC = "createdDateTime desc"
LAST_MODIFIED_DATE_TIME = "lastModifiedDateTime"
LAST_MODIFIED_DATE_TIME_DESC = "lastModifiedDateTime desc"
ALLOW_NEW_TIME_PROPOSALS = "allowNewTimeProposals"
ALLOW_NEW_TIME_PROPOSALS_DESC = "allowNewTimeProposals desc"
ATTENDEES = "attendees"
ATTENDEES_DESC = "attendees desc"
BODY = "body"
BODY_DESC = "body desc"
BODY_PREVIEW = "bodyPreview"
BODY_PREVIEW_DESC = "bodyPreview desc"
END = "end"
END_DESC = "end desc"
HAS_ATTACHMENTS = "hasAttachments"
HAS_ATTACHMENTS_DESC = "hasAttachments desc"
I_CAL_U_ID = "iCalUId"
I_CAL_U_ID_DESC = "iCalUId desc"
IMPORTANCE = "importance"
IMPORTANCE_DESC = "importance desc"
IS_ALL_DAY = "isAllDay"
IS_ALL_DAY_DESC = "isAllDay desc"
IS_CANCELLED = "isCancelled"
IS_CANCELLED_DESC = "isCancelled desc"
IS_ONLINE_MEETING = "isOnlineMeeting"
IS_ONLINE_MEETING_DESC = "isOnlineMeeting desc"
IS_ORGANIZER = "isOrganizer"
IS_ORGANIZER_DESC = "isOrganizer desc"
IS_REMINDER_ON = "isReminderOn"
IS_REMINDER_ON_DESC = "isReminderOn desc"
LOCATION = "location"
LOCATION_DESC = "location desc"
LOCATIONS = "locations"
LOCATIONS_DESC = "locations desc"
ONLINE_MEETING = "onlineMeeting"
ONLINE_MEETING_DESC = "onlineMeeting desc"
ONLINE_MEETING_PROVIDER = "onlineMeetingProvider"
ONLINE_MEETING_PROVIDER_DESC = "onlineMeetingProvider desc"
ONLINE_MEETING_URL = "onlineMeetingUrl"
ONLINE_MEETING_URL_DESC = "onlineMeetingUrl desc"
ORGANIZER = "organizer"
ORGANIZER_DESC = "organizer desc"
ORIGINAL_END_TIME_ZONE = "originalEndTimeZone"
ORIGINAL_END_TIME_ZONE_DESC = "originalEndTimeZone desc"
ORIGINAL_START = "originalStart"
ORIGINAL_START_DESC = "originalStart desc"
ORIGINAL_START_TIME_ZONE = "originalStartTimeZone"
ORIGINAL_START_TIME_ZONE_DESC = "originalStartTimeZone desc"
RECURRENCE = "recurrence"
RECURRENCE_DESC = "recurrence desc"
REMINDER_MINUTES_BEFORE_START = "reminderMinutesBeforeStart"
REMINDER_MINUTES_BEFORE_START_DESC = "reminderMinutesBeforeStart desc"
RESPONSE_REQUESTED = "responseRequested"
RESPONSE_REQUESTED_DESC = "responseRequested desc"
RESPONSE_STATUS = "responseStatus"
RESPONSE_STATUS_DESC = "responseStatus desc"
SENSITIVITY = "sensitivity"
SENSITIVITY_DESC = "sensitivity desc"
SERIES_MASTER_ID = "seriesMasterId"
SERIES_MASTER_ID_DESC = "seriesMasterId desc"
SHOW_AS = "showAs"
SHOW_AS_DESC = "showAs desc"
START = "start"
START_DESC = "start desc"
SUBJECT = "subject"
SUBJECT_DESC = "subject desc"
TRANSACTION_ID = "transactionId"
TRANSACTION_ID_DESC = "transactionId desc"
TYPE = "type"
TYPE_DESC = "type desc"
WEB_LINK = "webLink"
WEB_LINK_DESC = "webLink desc"
class Enum317(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
ID = "id"
CATEGORIES = "categories"
CHANGE_KEY = "changeKey"
CREATED_DATE_TIME = "createdDateTime"
LAST_MODIFIED_DATE_TIME = "lastModifiedDateTime"
ALLOW_NEW_TIME_PROPOSALS = "allowNewTimeProposals"
ATTENDEES = "attendees"
BODY = "body"
BODY_PREVIEW = "bodyPreview"
END = "end"
HAS_ATTACHMENTS = "hasAttachments"
I_CAL_U_ID = "iCalUId"
IMPORTANCE = "importance"
IS_ALL_DAY = "isAllDay"
IS_CANCELLED = "isCancelled"
IS_ONLINE_MEETING = "isOnlineMeeting"
IS_ORGANIZER = "isOrganizer"
IS_REMINDER_ON = "isReminderOn"
LOCATION = "location"
LOCATIONS = "locations"
ONLINE_MEETING = "onlineMeeting"
ONLINE_MEETING_PROVIDER = "onlineMeetingProvider"
ONLINE_MEETING_URL = "onlineMeetingUrl"
ORGANIZER = "organizer"
ORIGINAL_END_TIME_ZONE = "originalEndTimeZone"
ORIGINAL_START = "originalStart"
ORIGINAL_START_TIME_ZONE = "originalStartTimeZone"
RECURRENCE = "recurrence"
REMINDER_MINUTES_BEFORE_START = "reminderMinutesBeforeStart"
RESPONSE_REQUESTED = "responseRequested"
RESPONSE_STATUS = "responseStatus"
SENSITIVITY = "sensitivity"
SERIES_MASTER_ID = "seriesMasterId"
SHOW_AS = "showAs"
START = "start"
SUBJECT = "subject"
TRANSACTION_ID = "transactionId"
TYPE = "type"
WEB_LINK = "webLink"
ATTACHMENTS = "attachments"
CALENDAR = "calendar"
EXTENSIONS = "extensions"
INSTANCES = "instances"
MULTI_VALUE_EXTENDED_PROPERTIES = "multiValueExtendedProperties"
SINGLE_VALUE_EXTENDED_PROPERTIES = "singleValueExtendedProperties"
class Enum318(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
ASTERISK = "*"
ATTACHMENTS = "attachments"
CALENDAR = "calendar"
EXTENSIONS = "extensions"
INSTANCES = "instances"
MULTI_VALUE_EXTENDED_PROPERTIES = "multiValueExtendedProperties"
SINGLE_VALUE_EXTENDED_PROPERTIES = "singleValueExtendedProperties"
class Enum319(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
ID = "id"
CATEGORIES = "categories"
CHANGE_KEY = "changeKey"
CREATED_DATE_TIME = "createdDateTime"
LAST_MODIFIED_DATE_TIME = "lastModifiedDateTime"
ALLOW_NEW_TIME_PROPOSALS = "allowNewTimeProposals"
ATTENDEES = "attendees"
BODY = "body"
BODY_PREVIEW = "bodyPreview"
END = "end"
HAS_ATTACHMENTS = "hasAttachments"
I_CAL_U_ID = "iCalUId"
IMPORTANCE = "importance"
IS_ALL_DAY = "isAllDay"
IS_CANCELLED = "isCancelled"
IS_ONLINE_MEETING = "isOnlineMeeting"
IS_ORGANIZER = "isOrganizer"
IS_REMINDER_ON = "isReminderOn"
LOCATION = "location"
LOCATIONS = "locations"
ONLINE_MEETING = "onlineMeeting"
ONLINE_MEETING_PROVIDER = "onlineMeetingProvider"
ONLINE_MEETING_URL = "onlineMeetingUrl"
ORGANIZER = "organizer"
ORIGINAL_END_TIME_ZONE = "originalEndTimeZone"
ORIGINAL_START = "originalStart"
ORIGINAL_START_TIME_ZONE = "originalStartTimeZone"
RECURRENCE = "recurrence"
REMINDER_MINUTES_BEFORE_START = "reminderMinutesBeforeStart"
RESPONSE_REQUESTED = "responseRequested"
RESPONSE_STATUS = "responseStatus"
SENSITIVITY = "sensitivity"
SERIES_MASTER_ID = "seriesMasterId"
SHOW_AS = "showAs"
START = "start"
SUBJECT = "subject"
TRANSACTION_ID = "transactionId"
TYPE = "type"
WEB_LINK = "webLink"
ATTACHMENTS = "attachments"
CALENDAR = "calendar"
EXTENSIONS = "extensions"
INSTANCES = "instances"
MULTI_VALUE_EXTENDED_PROPERTIES = "multiValueExtendedProperties"
SINGLE_VALUE_EXTENDED_PROPERTIES = "singleValueExtendedProperties"
class Enum32(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
ID = "id"
ID_DESC = "id desc"
class Enum320(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
ASTERISK = "*"
ATTACHMENTS = "attachments"
CALENDAR = "calendar"
EXTENSIONS = "extensions"
INSTANCES = "instances"
MULTI_VALUE_EXTENDED_PROPERTIES = "multiValueExtendedProperties"
SINGLE_VALUE_EXTENDED_PROPERTIES = "singleValueExtendedProperties"
class Enum321(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
ID = "id"
ID_DESC = "id desc"
VALUE = "value"
VALUE_DESC = "value desc"
class Enum322(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
ID = "id"
VALUE = "value"
class Enum323(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
ID = "id"
VALUE = "value"
class Enum324(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
ID = "id"
ID_DESC = "id desc"
VALUE = "value"
VALUE_DESC = "value desc"
class Enum325(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
ID = "id"
VALUE = "value"
class Enum326(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
ID = "id"
VALUE = "value"
class Enum327(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
ID = "id"
ID_DESC = "id desc"
VALUE = "value"
VALUE_DESC = "value desc"
class Enum328(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
ID = "id"
VALUE = "value"
class Enum329(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
ID = "id"
VALUE = "value"
class Enum33(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
ID = "id"
ID_DESC = "id desc"
CATEGORIES = "categories"
CATEGORIES_DESC = "categories desc"
CHANGE_KEY = "changeKey"
CHANGE_KEY_DESC = "changeKey desc"
CREATED_DATE_TIME = "createdDateTime"
CREATED_DATE_TIME_DESC = "createdDateTime desc"
LAST_MODIFIED_DATE_TIME = "lastModifiedDateTime"
LAST_MODIFIED_DATE_TIME_DESC = "lastModifiedDateTime desc"
ALLOW_NEW_TIME_PROPOSALS = "allowNewTimeProposals"
ALLOW_NEW_TIME_PROPOSALS_DESC = "allowNewTimeProposals desc"
ATTENDEES = "attendees"
ATTENDEES_DESC = "attendees desc"
BODY = "body"
BODY_DESC = "body desc"
BODY_PREVIEW = "bodyPreview"
BODY_PREVIEW_DESC = "bodyPreview desc"
END = "end"
END_DESC = "end desc"
HAS_ATTACHMENTS = "hasAttachments"
HAS_ATTACHMENTS_DESC = "hasAttachments desc"
I_CAL_U_ID = "iCalUId"
I_CAL_U_ID_DESC = "iCalUId desc"
IMPORTANCE = "importance"
IMPORTANCE_DESC = "importance desc"
IS_ALL_DAY = "isAllDay"
IS_ALL_DAY_DESC = "isAllDay desc"
IS_CANCELLED = "isCancelled"
IS_CANCELLED_DESC = "isCancelled desc"
IS_ONLINE_MEETING = "isOnlineMeeting"
IS_ONLINE_MEETING_DESC = "isOnlineMeeting desc"
IS_ORGANIZER = "isOrganizer"
IS_ORGANIZER_DESC = "isOrganizer desc"
IS_REMINDER_ON = "isReminderOn"
IS_REMINDER_ON_DESC = "isReminderOn desc"
LOCATION = "location"
LOCATION_DESC = "location desc"
LOCATIONS = "locations"
LOCATIONS_DESC = "locations desc"
ONLINE_MEETING = "onlineMeeting"
ONLINE_MEETING_DESC = "onlineMeeting desc"
ONLINE_MEETING_PROVIDER = "onlineMeetingProvider"
ONLINE_MEETING_PROVIDER_DESC = "onlineMeetingProvider desc"
ONLINE_MEETING_URL = "onlineMeetingUrl"
ONLINE_MEETING_URL_DESC = "onlineMeetingUrl desc"
ORGANIZER = "organizer"
ORGANIZER_DESC = "organizer desc"
ORIGINAL_END_TIME_ZONE = "originalEndTimeZone"
ORIGINAL_END_TIME_ZONE_DESC = "originalEndTimeZone desc"
ORIGINAL_START = "originalStart"
ORIGINAL_START_DESC = "originalStart desc"
ORIGINAL_START_TIME_ZONE = "originalStartTimeZone"
ORIGINAL_START_TIME_ZONE_DESC = "originalStartTimeZone desc"
RECURRENCE = "recurrence"
RECURRENCE_DESC = "recurrence desc"
REMINDER_MINUTES_BEFORE_START = "reminderMinutesBeforeStart"
REMINDER_MINUTES_BEFORE_START_DESC = "reminderMinutesBeforeStart desc"
RESPONSE_REQUESTED = "responseRequested"
RESPONSE_REQUESTED_DESC = "responseRequested desc"
RESPONSE_STATUS = "responseStatus"
RESPONSE_STATUS_DESC = "responseStatus desc"
SENSITIVITY = "sensitivity"
SENSITIVITY_DESC = "sensitivity desc"
SERIES_MASTER_ID = "seriesMasterId"
SERIES_MASTER_ID_DESC = "seriesMasterId desc"
SHOW_AS = "showAs"
SHOW_AS_DESC = "showAs desc"
START = "start"
START_DESC = "start desc"
SUBJECT = "subject"
SUBJECT_DESC = "subject desc"
TRANSACTION_ID = "transactionId"
TRANSACTION_ID_DESC = "transactionId desc"
TYPE = "type"
TYPE_DESC = "type desc"
WEB_LINK = "webLink"
WEB_LINK_DESC = "webLink desc"
class Enum330(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
ID = "id"
ID_DESC = "id desc"
VALUE = "value"
VALUE_DESC = "value desc"
class Enum331(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
ID = "id"
VALUE = "value"
class Enum332(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
ID = "id"
VALUE = "value"
class Enum333(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
ID = "id"
ID_DESC = "id desc"
CATEGORIES = "categories"
CATEGORIES_DESC = "categories desc"
CHANGE_KEY = "changeKey"
CHANGE_KEY_DESC = "changeKey desc"
CREATED_DATE_TIME = "createdDateTime"
CREATED_DATE_TIME_DESC = "createdDateTime desc"
LAST_MODIFIED_DATE_TIME = "lastModifiedDateTime"
LAST_MODIFIED_DATE_TIME_DESC = "lastModifiedDateTime desc"
ALLOW_NEW_TIME_PROPOSALS = "allowNewTimeProposals"
ALLOW_NEW_TIME_PROPOSALS_DESC = "allowNewTimeProposals desc"
ATTENDEES = "attendees"
ATTENDEES_DESC = "attendees desc"
BODY = "body"
BODY_DESC = "body desc"
BODY_PREVIEW = "bodyPreview"
BODY_PREVIEW_DESC = "bodyPreview desc"
END = "end"
END_DESC = "end desc"
HAS_ATTACHMENTS = "hasAttachments"
HAS_ATTACHMENTS_DESC = "hasAttachments desc"
I_CAL_U_ID = "iCalUId"
I_CAL_U_ID_DESC = "iCalUId desc"
IMPORTANCE = "importance"
IMPORTANCE_DESC = "importance desc"
IS_ALL_DAY = "isAllDay"
IS_ALL_DAY_DESC = "isAllDay desc"
IS_CANCELLED = "isCancelled"
IS_CANCELLED_DESC = "isCancelled desc"
IS_ONLINE_MEETING = "isOnlineMeeting"
IS_ONLINE_MEETING_DESC = "isOnlineMeeting desc"
IS_ORGANIZER = "isOrganizer"
IS_ORGANIZER_DESC = "isOrganizer desc"
IS_REMINDER_ON = "isReminderOn"
IS_REMINDER_ON_DESC = "isReminderOn desc"
LOCATION = "location"
LOCATION_DESC = "location desc"
LOCATIONS = "locations"
LOCATIONS_DESC = "locations desc"
ONLINE_MEETING = "onlineMeeting"
ONLINE_MEETING_DESC = "onlineMeeting desc"
ONLINE_MEETING_PROVIDER = "onlineMeetingProvider"
ONLINE_MEETING_PROVIDER_DESC = "onlineMeetingProvider desc"
ONLINE_MEETING_URL = "onlineMeetingUrl"
ONLINE_MEETING_URL_DESC = "onlineMeetingUrl desc"
ORGANIZER = "organizer"
ORGANIZER_DESC = "organizer desc"
ORIGINAL_END_TIME_ZONE = "originalEndTimeZone"
ORIGINAL_END_TIME_ZONE_DESC = "originalEndTimeZone desc"
ORIGINAL_START = "originalStart"
ORIGINAL_START_DESC = "originalStart desc"
ORIGINAL_START_TIME_ZONE = "originalStartTimeZone"
ORIGINAL_START_TIME_ZONE_DESC = "originalStartTimeZone desc"
RECURRENCE = "recurrence"
RECURRENCE_DESC = "recurrence desc"
REMINDER_MINUTES_BEFORE_START = "reminderMinutesBeforeStart"
REMINDER_MINUTES_BEFORE_START_DESC = "reminderMinutesBeforeStart desc"
RESPONSE_REQUESTED = "responseRequested"
RESPONSE_REQUESTED_DESC = "responseRequested desc"
RESPONSE_STATUS = "responseStatus"
RESPONSE_STATUS_DESC = "responseStatus desc"
SENSITIVITY = "sensitivity"
SENSITIVITY_DESC = "sensitivity desc"
SERIES_MASTER_ID = "seriesMasterId"
SERIES_MASTER_ID_DESC = "seriesMasterId desc"
SHOW_AS = "showAs"
SHOW_AS_DESC = "showAs desc"
START = "start"
START_DESC = "start desc"
SUBJECT = "subject"
SUBJECT_DESC = "subject desc"
TRANSACTION_ID = "transactionId"
TRANSACTION_ID_DESC = "transactionId desc"
TYPE = "type"
TYPE_DESC = "type desc"
WEB_LINK = "webLink"
WEB_LINK_DESC = "webLink desc"
class Enum334(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
ID = "id"
CATEGORIES = "categories"
CHANGE_KEY = "changeKey"
CREATED_DATE_TIME = "createdDateTime"
LAST_MODIFIED_DATE_TIME = "lastModifiedDateTime"
ALLOW_NEW_TIME_PROPOSALS = "allowNewTimeProposals"
ATTENDEES = "attendees"
BODY = "body"
BODY_PREVIEW = "bodyPreview"
END = "end"
HAS_ATTACHMENTS = "hasAttachments"
I_CAL_U_ID = "iCalUId"
IMPORTANCE = "importance"
IS_ALL_DAY = "isAllDay"
IS_CANCELLED = "isCancelled"
IS_ONLINE_MEETING = "isOnlineMeeting"
IS_ORGANIZER = "isOrganizer"
IS_REMINDER_ON = "isReminderOn"
LOCATION = "location"
LOCATIONS = "locations"
ONLINE_MEETING = "onlineMeeting"
ONLINE_MEETING_PROVIDER = "onlineMeetingProvider"
ONLINE_MEETING_URL = "onlineMeetingUrl"
ORGANIZER = "organizer"
ORIGINAL_END_TIME_ZONE = "originalEndTimeZone"
ORIGINAL_START = "originalStart"
ORIGINAL_START_TIME_ZONE = "originalStartTimeZone"
RECURRENCE = "recurrence"
REMINDER_MINUTES_BEFORE_START = "reminderMinutesBeforeStart"
RESPONSE_REQUESTED = "responseRequested"
RESPONSE_STATUS = "responseStatus"
SENSITIVITY = "sensitivity"
SERIES_MASTER_ID = "seriesMasterId"
SHOW_AS = "showAs"
START = "start"
SUBJECT = "subject"
TRANSACTION_ID = "transactionId"
TYPE = "type"
WEB_LINK = "webLink"
ATTACHMENTS = "attachments"
CALENDAR = "calendar"
EXTENSIONS = "extensions"
INSTANCES = "instances"
MULTI_VALUE_EXTENDED_PROPERTIES = "multiValueExtendedProperties"
SINGLE_VALUE_EXTENDED_PROPERTIES = "singleValueExtendedProperties"
class Enum335(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
ASTERISK = "*"
ATTACHMENTS = "attachments"
CALENDAR = "calendar"
EXTENSIONS = "extensions"
INSTANCES = "instances"
MULTI_VALUE_EXTENDED_PROPERTIES = "multiValueExtendedProperties"
SINGLE_VALUE_EXTENDED_PROPERTIES = "singleValueExtendedProperties"
class Enum336(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
ID = "id"
CATEGORIES = "categories"
CHANGE_KEY = "changeKey"
CREATED_DATE_TIME = "createdDateTime"
LAST_MODIFIED_DATE_TIME = "lastModifiedDateTime"
ALLOW_NEW_TIME_PROPOSALS = "allowNewTimeProposals"
ATTENDEES = "attendees"
BODY = "body"
BODY_PREVIEW = "bodyPreview"
END = "end"
HAS_ATTACHMENTS = "hasAttachments"
I_CAL_U_ID = "iCalUId"
IMPORTANCE = "importance"
IS_ALL_DAY = "isAllDay"
IS_CANCELLED = "isCancelled"
IS_ONLINE_MEETING = "isOnlineMeeting"
IS_ORGANIZER = "isOrganizer"
IS_REMINDER_ON = "isReminderOn"
LOCATION = "location"
LOCATIONS = "locations"
ONLINE_MEETING = "onlineMeeting"
ONLINE_MEETING_PROVIDER = "onlineMeetingProvider"
ONLINE_MEETING_URL = "onlineMeetingUrl"
ORGANIZER = "organizer"
ORIGINAL_END_TIME_ZONE = "originalEndTimeZone"
ORIGINAL_START = "originalStart"
ORIGINAL_START_TIME_ZONE = "originalStartTimeZone"
RECURRENCE = "recurrence"
REMINDER_MINUTES_BEFORE_START = "reminderMinutesBeforeStart"
RESPONSE_REQUESTED = "responseRequested"
RESPONSE_STATUS = "responseStatus"
SENSITIVITY = "sensitivity"
SERIES_MASTER_ID = "seriesMasterId"
SHOW_AS = "showAs"
START = "start"
SUBJECT = "subject"
TRANSACTION_ID = "transactionId"
TYPE = "type"
WEB_LINK = "webLink"
ATTACHMENTS = "attachments"
CALENDAR = "calendar"
EXTENSIONS = "extensions"
INSTANCES = "instances"
MULTI_VALUE_EXTENDED_PROPERTIES = "multiValueExtendedProperties"
SINGLE_VALUE_EXTENDED_PROPERTIES = "singleValueExtendedProperties"
class Enum337(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
ASTERISK = "*"
ATTACHMENTS = "attachments"
CALENDAR = "calendar"
EXTENSIONS = "extensions"
INSTANCES = "instances"
MULTI_VALUE_EXTENDED_PROPERTIES = "multiValueExtendedProperties"
SINGLE_VALUE_EXTENDED_PROPERTIES = "singleValueExtendedProperties"
class Enum338(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
ID = "id"
ID_DESC = "id desc"
CONTENT_TYPE = "contentType"
CONTENT_TYPE_DESC = "contentType desc"
IS_INLINE = "isInline"
IS_INLINE_DESC = "isInline desc"
LAST_MODIFIED_DATE_TIME = "lastModifiedDateTime"
LAST_MODIFIED_DATE_TIME_DESC = "lastModifiedDateTime desc"
NAME = "name"
NAME_DESC = "name desc"
SIZE = "size"
SIZE_DESC = "size desc"
class Enum339(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
ID = "id"
CONTENT_TYPE = "contentType"
IS_INLINE = "isInline"
LAST_MODIFIED_DATE_TIME = "lastModifiedDateTime"
NAME = "name"
SIZE = "size"
class Enum34(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
ID = "id"
CATEGORIES = "categories"
CHANGE_KEY = "changeKey"
CREATED_DATE_TIME = "createdDateTime"
LAST_MODIFIED_DATE_TIME = "lastModifiedDateTime"
ALLOW_NEW_TIME_PROPOSALS = "allowNewTimeProposals"
ATTENDEES = "attendees"
BODY = "body"
BODY_PREVIEW = "bodyPreview"
END = "end"
HAS_ATTACHMENTS = "hasAttachments"
I_CAL_U_ID = "iCalUId"
IMPORTANCE = "importance"
IS_ALL_DAY = "isAllDay"
IS_CANCELLED = "isCancelled"
IS_ONLINE_MEETING = "isOnlineMeeting"
IS_ORGANIZER = "isOrganizer"
IS_REMINDER_ON = "isReminderOn"
LOCATION = "location"
LOCATIONS = "locations"
ONLINE_MEETING = "onlineMeeting"
ONLINE_MEETING_PROVIDER = "onlineMeetingProvider"
ONLINE_MEETING_URL = "onlineMeetingUrl"
ORGANIZER = "organizer"
ORIGINAL_END_TIME_ZONE = "originalEndTimeZone"
ORIGINAL_START = "originalStart"
ORIGINAL_START_TIME_ZONE = "originalStartTimeZone"
RECURRENCE = "recurrence"
REMINDER_MINUTES_BEFORE_START = "reminderMinutesBeforeStart"
RESPONSE_REQUESTED = "responseRequested"
RESPONSE_STATUS = "responseStatus"
SENSITIVITY = "sensitivity"
SERIES_MASTER_ID = "seriesMasterId"
SHOW_AS = "showAs"
START = "start"
SUBJECT = "subject"
TRANSACTION_ID = "transactionId"
TYPE = "type"
WEB_LINK = "webLink"
ATTACHMENTS = "attachments"
CALENDAR = "calendar"
EXTENSIONS = "extensions"
INSTANCES = "instances"
MULTI_VALUE_EXTENDED_PROPERTIES = "multiValueExtendedProperties"
SINGLE_VALUE_EXTENDED_PROPERTIES = "singleValueExtendedProperties"
class Enum340(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
ID = "id"
CONTENT_TYPE = "contentType"
IS_INLINE = "isInline"
LAST_MODIFIED_DATE_TIME = "lastModifiedDateTime"
NAME = "name"
SIZE = "size"
class Enum341(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
ID = "id"
ALLOWED_ONLINE_MEETING_PROVIDERS = "allowedOnlineMeetingProviders"
CAN_EDIT = "canEdit"
CAN_SHARE = "canShare"
CAN_VIEW_PRIVATE_ITEMS = "canViewPrivateItems"
CHANGE_KEY = "changeKey"
COLOR = "color"
DEFAULT_ONLINE_MEETING_PROVIDER = "defaultOnlineMeetingProvider"
IS_REMOVABLE = "isRemovable"
IS_TALLYING_RESPONSES = "isTallyingResponses"
NAME = "name"
OWNER = "owner"
CALENDAR_PERMISSIONS = "calendarPermissions"
CALENDAR_VIEW = "calendarView"
EVENTS = "events"
MULTI_VALUE_EXTENDED_PROPERTIES = "multiValueExtendedProperties"
SINGLE_VALUE_EXTENDED_PROPERTIES = "singleValueExtendedProperties"
class Enum342(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
ASTERISK = "*"
CALENDAR_PERMISSIONS = "calendarPermissions"
CALENDAR_VIEW = "calendarView"
EVENTS = "events"
MULTI_VALUE_EXTENDED_PROPERTIES = "multiValueExtendedProperties"
SINGLE_VALUE_EXTENDED_PROPERTIES = "singleValueExtendedProperties"
class Enum343(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
ID = "id"
ID_DESC = "id desc"
ALLOWED_ROLES = "allowedRoles"
ALLOWED_ROLES_DESC = "allowedRoles desc"
EMAIL_ADDRESS = "emailAddress"
EMAIL_ADDRESS_DESC = "emailAddress desc"
IS_INSIDE_ORGANIZATION = "isInsideOrganization"
IS_INSIDE_ORGANIZATION_DESC = "isInsideOrganization desc"
IS_REMOVABLE = "isRemovable"
IS_REMOVABLE_DESC = "isRemovable desc"
ROLE = "role"
ROLE_DESC = "role desc"
class Enum344(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
ID = "id"
ALLOWED_ROLES = "allowedRoles"
EMAIL_ADDRESS = "emailAddress"
IS_INSIDE_ORGANIZATION = "isInsideOrganization"
IS_REMOVABLE = "isRemovable"
ROLE = "role"
class Enum345(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
ID = "id"
ALLOWED_ROLES = "allowedRoles"
EMAIL_ADDRESS = "emailAddress"
IS_INSIDE_ORGANIZATION = "isInsideOrganization"
IS_REMOVABLE = "isRemovable"
ROLE = "role"
class Enum346(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
ID = "id"
ID_DESC = "id desc"
CATEGORIES = "categories"
CATEGORIES_DESC = "categories desc"
CHANGE_KEY = "changeKey"
CHANGE_KEY_DESC = "changeKey desc"
CREATED_DATE_TIME = "createdDateTime"
CREATED_DATE_TIME_DESC = "createdDateTime desc"
LAST_MODIFIED_DATE_TIME = "lastModifiedDateTime"
LAST_MODIFIED_DATE_TIME_DESC = "lastModifiedDateTime desc"
ALLOW_NEW_TIME_PROPOSALS = "allowNewTimeProposals"
ALLOW_NEW_TIME_PROPOSALS_DESC = "allowNewTimeProposals desc"
ATTENDEES = "attendees"
ATTENDEES_DESC = "attendees desc"
BODY = "body"
BODY_DESC = "body desc"
BODY_PREVIEW = "bodyPreview"
BODY_PREVIEW_DESC = "bodyPreview desc"
END = "end"
END_DESC = "end desc"
HAS_ATTACHMENTS = "hasAttachments"
HAS_ATTACHMENTS_DESC = "hasAttachments desc"
I_CAL_U_ID = "iCalUId"
I_CAL_U_ID_DESC = "iCalUId desc"
IMPORTANCE = "importance"
IMPORTANCE_DESC = "importance desc"
IS_ALL_DAY = "isAllDay"
IS_ALL_DAY_DESC = "isAllDay desc"
IS_CANCELLED = "isCancelled"
IS_CANCELLED_DESC = "isCancelled desc"
IS_ONLINE_MEETING = "isOnlineMeeting"
IS_ONLINE_MEETING_DESC = "isOnlineMeeting desc"
IS_ORGANIZER = "isOrganizer"
IS_ORGANIZER_DESC = "isOrganizer desc"
IS_REMINDER_ON = "isReminderOn"
IS_REMINDER_ON_DESC = "isReminderOn desc"
LOCATION = "location"
LOCATION_DESC = "location desc"
LOCATIONS = "locations"
LOCATIONS_DESC = "locations desc"
ONLINE_MEETING = "onlineMeeting"
ONLINE_MEETING_DESC = "onlineMeeting desc"
ONLINE_MEETING_PROVIDER = "onlineMeetingProvider"
ONLINE_MEETING_PROVIDER_DESC = "onlineMeetingProvider desc"
ONLINE_MEETING_URL = "onlineMeetingUrl"
ONLINE_MEETING_URL_DESC = "onlineMeetingUrl desc"
ORGANIZER = "organizer"
ORGANIZER_DESC = "organizer desc"
ORIGINAL_END_TIME_ZONE = "originalEndTimeZone"
ORIGINAL_END_TIME_ZONE_DESC = "originalEndTimeZone desc"
ORIGINAL_START = "originalStart"
ORIGINAL_START_DESC = "originalStart desc"
ORIGINAL_START_TIME_ZONE = "originalStartTimeZone"
ORIGINAL_START_TIME_ZONE_DESC = "originalStartTimeZone desc"
RECURRENCE = "recurrence"
RECURRENCE_DESC = "recurrence desc"
REMINDER_MINUTES_BEFORE_START = "reminderMinutesBeforeStart"
REMINDER_MINUTES_BEFORE_START_DESC = "reminderMinutesBeforeStart desc"
RESPONSE_REQUESTED = "responseRequested"
RESPONSE_REQUESTED_DESC = "responseRequested desc"
RESPONSE_STATUS = "responseStatus"
RESPONSE_STATUS_DESC = "responseStatus desc"
SENSITIVITY = "sensitivity"
SENSITIVITY_DESC = "sensitivity desc"
SERIES_MASTER_ID = "seriesMasterId"
SERIES_MASTER_ID_DESC = "seriesMasterId desc"
SHOW_AS = "showAs"
SHOW_AS_DESC = "showAs desc"
START = "start"
START_DESC = "start desc"
SUBJECT = "subject"
SUBJECT_DESC = "subject desc"
TRANSACTION_ID = "transactionId"
TRANSACTION_ID_DESC = "transactionId desc"
TYPE = "type"
TYPE_DESC = "type desc"
WEB_LINK = "webLink"
WEB_LINK_DESC = "webLink desc"
class Enum347(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
ID = "id"
CATEGORIES = "categories"
CHANGE_KEY = "changeKey"
CREATED_DATE_TIME = "createdDateTime"
LAST_MODIFIED_DATE_TIME = "lastModifiedDateTime"
ALLOW_NEW_TIME_PROPOSALS = "allowNewTimeProposals"
ATTENDEES = "attendees"
BODY = "body"
BODY_PREVIEW = "bodyPreview"
END = "end"
HAS_ATTACHMENTS = "hasAttachments"
I_CAL_U_ID = "iCalUId"
IMPORTANCE = "importance"
IS_ALL_DAY = "isAllDay"
IS_CANCELLED = "isCancelled"
IS_ONLINE_MEETING = "isOnlineMeeting"
IS_ORGANIZER = "isOrganizer"
IS_REMINDER_ON = "isReminderOn"
LOCATION = "location"
LOCATIONS = "locations"
ONLINE_MEETING = "onlineMeeting"
ONLINE_MEETING_PROVIDER = "onlineMeetingProvider"
ONLINE_MEETING_URL = "onlineMeetingUrl"
ORGANIZER = "organizer"
ORIGINAL_END_TIME_ZONE = "originalEndTimeZone"
ORIGINAL_START = "originalStart"
ORIGINAL_START_TIME_ZONE = "originalStartTimeZone"
RECURRENCE = "recurrence"
REMINDER_MINUTES_BEFORE_START = "reminderMinutesBeforeStart"
RESPONSE_REQUESTED = "responseRequested"
RESPONSE_STATUS = "responseStatus"
SENSITIVITY = "sensitivity"
SERIES_MASTER_ID = "seriesMasterId"
SHOW_AS = "showAs"
START = "start"
SUBJECT = "subject"
TRANSACTION_ID = "transactionId"
TYPE = "type"
WEB_LINK = "webLink"
ATTACHMENTS = "attachments"
CALENDAR = "calendar"
EXTENSIONS = "extensions"
INSTANCES = "instances"
MULTI_VALUE_EXTENDED_PROPERTIES = "multiValueExtendedProperties"
SINGLE_VALUE_EXTENDED_PROPERTIES = "singleValueExtendedProperties"
class Enum348(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
ASTERISK = "*"
ATTACHMENTS = "attachments"
CALENDAR = "calendar"
EXTENSIONS = "extensions"
INSTANCES = "instances"
MULTI_VALUE_EXTENDED_PROPERTIES = "multiValueExtendedProperties"
SINGLE_VALUE_EXTENDED_PROPERTIES = "singleValueExtendedProperties"
class Enum349(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
ID = "id"
CATEGORIES = "categories"
CHANGE_KEY = "changeKey"
CREATED_DATE_TIME = "createdDateTime"
LAST_MODIFIED_DATE_TIME = "lastModifiedDateTime"
ALLOW_NEW_TIME_PROPOSALS = "allowNewTimeProposals"
ATTENDEES = "attendees"
BODY = "body"
BODY_PREVIEW = "bodyPreview"
END = "end"
HAS_ATTACHMENTS = "hasAttachments"
I_CAL_U_ID = "iCalUId"
IMPORTANCE = "importance"
IS_ALL_DAY = "isAllDay"
IS_CANCELLED = "isCancelled"
IS_ONLINE_MEETING = "isOnlineMeeting"
IS_ORGANIZER = "isOrganizer"
IS_REMINDER_ON = "isReminderOn"
LOCATION = "location"
LOCATIONS = "locations"
ONLINE_MEETING = "onlineMeeting"
ONLINE_MEETING_PROVIDER = "onlineMeetingProvider"
ONLINE_MEETING_URL = "onlineMeetingUrl"
ORGANIZER = "organizer"
ORIGINAL_END_TIME_ZONE = "originalEndTimeZone"
ORIGINAL_START = "originalStart"
ORIGINAL_START_TIME_ZONE = "originalStartTimeZone"
RECURRENCE = "recurrence"
REMINDER_MINUTES_BEFORE_START = "reminderMinutesBeforeStart"
RESPONSE_REQUESTED = "responseRequested"
RESPONSE_STATUS = "responseStatus"
SENSITIVITY = "sensitivity"
SERIES_MASTER_ID = "seriesMasterId"
SHOW_AS = "showAs"
START = "start"
SUBJECT = "subject"
TRANSACTION_ID = "transactionId"
TYPE = "type"
WEB_LINK = "webLink"
ATTACHMENTS = "attachments"
CALENDAR = "calendar"
EXTENSIONS = "extensions"
INSTANCES = "instances"
MULTI_VALUE_EXTENDED_PROPERTIES = "multiValueExtendedProperties"
SINGLE_VALUE_EXTENDED_PROPERTIES = "singleValueExtendedProperties"
class Enum35(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
ASTERISK = "*"
ATTACHMENTS = "attachments"
CALENDAR = "calendar"
EXTENSIONS = "extensions"
INSTANCES = "instances"
MULTI_VALUE_EXTENDED_PROPERTIES = "multiValueExtendedProperties"
SINGLE_VALUE_EXTENDED_PROPERTIES = "singleValueExtendedProperties"
class Enum350(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
ASTERISK = "*"
ATTACHMENTS = "attachments"
CALENDAR = "calendar"
EXTENSIONS = "extensions"
INSTANCES = "instances"
MULTI_VALUE_EXTENDED_PROPERTIES = "multiValueExtendedProperties"
SINGLE_VALUE_EXTENDED_PROPERTIES = "singleValueExtendedProperties"
class Enum351(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
ID = "id"
ID_DESC = "id desc"
CATEGORIES = "categories"
CATEGORIES_DESC = "categories desc"
CHANGE_KEY = "changeKey"
CHANGE_KEY_DESC = "changeKey desc"
CREATED_DATE_TIME = "createdDateTime"
CREATED_DATE_TIME_DESC = "createdDateTime desc"
LAST_MODIFIED_DATE_TIME = "lastModifiedDateTime"
LAST_MODIFIED_DATE_TIME_DESC = "lastModifiedDateTime desc"
ALLOW_NEW_TIME_PROPOSALS = "allowNewTimeProposals"
ALLOW_NEW_TIME_PROPOSALS_DESC = "allowNewTimeProposals desc"
ATTENDEES = "attendees"
ATTENDEES_DESC = "attendees desc"
BODY = "body"
BODY_DESC = "body desc"
BODY_PREVIEW = "bodyPreview"
BODY_PREVIEW_DESC = "bodyPreview desc"
END = "end"
END_DESC = "end desc"
HAS_ATTACHMENTS = "hasAttachments"
HAS_ATTACHMENTS_DESC = "hasAttachments desc"
I_CAL_U_ID = "iCalUId"
I_CAL_U_ID_DESC = "iCalUId desc"
IMPORTANCE = "importance"
IMPORTANCE_DESC = "importance desc"
IS_ALL_DAY = "isAllDay"
IS_ALL_DAY_DESC = "isAllDay desc"
IS_CANCELLED = "isCancelled"
IS_CANCELLED_DESC = "isCancelled desc"
IS_ONLINE_MEETING = "isOnlineMeeting"
IS_ONLINE_MEETING_DESC = "isOnlineMeeting desc"
IS_ORGANIZER = "isOrganizer"
IS_ORGANIZER_DESC = "isOrganizer desc"
IS_REMINDER_ON = "isReminderOn"
IS_REMINDER_ON_DESC = "isReminderOn desc"
LOCATION = "location"
LOCATION_DESC = "location desc"
LOCATIONS = "locations"
LOCATIONS_DESC = "locations desc"
ONLINE_MEETING = "onlineMeeting"
ONLINE_MEETING_DESC = "onlineMeeting desc"
ONLINE_MEETING_PROVIDER = "onlineMeetingProvider"
ONLINE_MEETING_PROVIDER_DESC = "onlineMeetingProvider desc"
ONLINE_MEETING_URL = "onlineMeetingUrl"
ONLINE_MEETING_URL_DESC = "onlineMeetingUrl desc"
ORGANIZER = "organizer"
ORGANIZER_DESC = "organizer desc"
ORIGINAL_END_TIME_ZONE = "originalEndTimeZone"
ORIGINAL_END_TIME_ZONE_DESC = "originalEndTimeZone desc"
ORIGINAL_START = "originalStart"
ORIGINAL_START_DESC = "originalStart desc"
ORIGINAL_START_TIME_ZONE = "originalStartTimeZone"
ORIGINAL_START_TIME_ZONE_DESC = "originalStartTimeZone desc"
RECURRENCE = "recurrence"
RECURRENCE_DESC = "recurrence desc"
REMINDER_MINUTES_BEFORE_START = "reminderMinutesBeforeStart"
REMINDER_MINUTES_BEFORE_START_DESC = "reminderMinutesBeforeStart desc"
RESPONSE_REQUESTED = "responseRequested"
RESPONSE_REQUESTED_DESC = "responseRequested desc"
RESPONSE_STATUS = "responseStatus"
RESPONSE_STATUS_DESC = "responseStatus desc"
SENSITIVITY = "sensitivity"
SENSITIVITY_DESC = "sensitivity desc"
SERIES_MASTER_ID = "seriesMasterId"
SERIES_MASTER_ID_DESC = "seriesMasterId desc"
SHOW_AS = "showAs"
SHOW_AS_DESC = "showAs desc"
START = "start"
START_DESC = "start desc"
SUBJECT = "subject"
SUBJECT_DESC = "subject desc"
TRANSACTION_ID = "transactionId"
TRANSACTION_ID_DESC = "transactionId desc"
TYPE = "type"
TYPE_DESC = "type desc"
WEB_LINK = "webLink"
WEB_LINK_DESC = "webLink desc"
class Enum352(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
ID = "id"
CATEGORIES = "categories"
CHANGE_KEY = "changeKey"
CREATED_DATE_TIME = "createdDateTime"
LAST_MODIFIED_DATE_TIME = "lastModifiedDateTime"
ALLOW_NEW_TIME_PROPOSALS = "allowNewTimeProposals"
ATTENDEES = "attendees"
BODY = "body"
BODY_PREVIEW = "bodyPreview"
END = "end"
HAS_ATTACHMENTS = "hasAttachments"
I_CAL_U_ID = "iCalUId"
IMPORTANCE = "importance"
IS_ALL_DAY = "isAllDay"
IS_CANCELLED = "isCancelled"
IS_ONLINE_MEETING = "isOnlineMeeting"
IS_ORGANIZER = "isOrganizer"
IS_REMINDER_ON = "isReminderOn"
LOCATION = "location"
LOCATIONS = "locations"
ONLINE_MEETING = "onlineMeeting"
ONLINE_MEETING_PROVIDER = "onlineMeetingProvider"
ONLINE_MEETING_URL = "onlineMeetingUrl"
ORGANIZER = "organizer"
ORIGINAL_END_TIME_ZONE = "originalEndTimeZone"
ORIGINAL_START = "originalStart"
ORIGINAL_START_TIME_ZONE = "originalStartTimeZone"
RECURRENCE = "recurrence"
REMINDER_MINUTES_BEFORE_START = "reminderMinutesBeforeStart"
RESPONSE_REQUESTED = "responseRequested"
RESPONSE_STATUS = "responseStatus"
SENSITIVITY = "sensitivity"
SERIES_MASTER_ID = "seriesMasterId"
SHOW_AS = "showAs"
START = "start"
SUBJECT = "subject"
TRANSACTION_ID = "transactionId"
TYPE = "type"
WEB_LINK = "webLink"
ATTACHMENTS = "attachments"
CALENDAR = "calendar"
EXTENSIONS = "extensions"
INSTANCES = "instances"
MULTI_VALUE_EXTENDED_PROPERTIES = "multiValueExtendedProperties"
SINGLE_VALUE_EXTENDED_PROPERTIES = "singleValueExtendedProperties"
class Enum353(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
ASTERISK = "*"
ATTACHMENTS = "attachments"
CALENDAR = "calendar"
EXTENSIONS = "extensions"
INSTANCES = "instances"
MULTI_VALUE_EXTENDED_PROPERTIES = "multiValueExtendedProperties"
SINGLE_VALUE_EXTENDED_PROPERTIES = "singleValueExtendedProperties"
class Enum354(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
ID = "id"
CATEGORIES = "categories"
CHANGE_KEY = "changeKey"
CREATED_DATE_TIME = "createdDateTime"
LAST_MODIFIED_DATE_TIME = "lastModifiedDateTime"
ALLOW_NEW_TIME_PROPOSALS = "allowNewTimeProposals"
ATTENDEES = "attendees"
BODY = "body"
BODY_PREVIEW = "bodyPreview"
END = "end"
HAS_ATTACHMENTS = "hasAttachments"
I_CAL_U_ID = "iCalUId"
IMPORTANCE = "importance"
IS_ALL_DAY = "isAllDay"
IS_CANCELLED = "isCancelled"
IS_ONLINE_MEETING = "isOnlineMeeting"
IS_ORGANIZER = "isOrganizer"
IS_REMINDER_ON = "isReminderOn"
LOCATION = "location"
LOCATIONS = "locations"
ONLINE_MEETING = "onlineMeeting"
ONLINE_MEETING_PROVIDER = "onlineMeetingProvider"
ONLINE_MEETING_URL = "onlineMeetingUrl"
ORGANIZER = "organizer"
ORIGINAL_END_TIME_ZONE = "originalEndTimeZone"
ORIGINAL_START = "originalStart"
ORIGINAL_START_TIME_ZONE = "originalStartTimeZone"
RECURRENCE = "recurrence"
REMINDER_MINUTES_BEFORE_START = "reminderMinutesBeforeStart"
RESPONSE_REQUESTED = "responseRequested"
RESPONSE_STATUS = "responseStatus"
SENSITIVITY = "sensitivity"
SERIES_MASTER_ID = "seriesMasterId"
SHOW_AS = "showAs"
START = "start"
SUBJECT = "subject"
TRANSACTION_ID = "transactionId"
TYPE = "type"
WEB_LINK = "webLink"
ATTACHMENTS = "attachments"
CALENDAR = "calendar"
EXTENSIONS = "extensions"
INSTANCES = "instances"
MULTI_VALUE_EXTENDED_PROPERTIES = "multiValueExtendedProperties"
SINGLE_VALUE_EXTENDED_PROPERTIES = "singleValueExtendedProperties"
class Enum355(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
ASTERISK = "*"
ATTACHMENTS = "attachments"
CALENDAR = "calendar"
EXTENSIONS = "extensions"
INSTANCES = "instances"
MULTI_VALUE_EXTENDED_PROPERTIES = "multiValueExtendedProperties"
SINGLE_VALUE_EXTENDED_PROPERTIES = "singleValueExtendedProperties"
class Enum356(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
ID = "id"
ID_DESC = "id desc"
VALUE = "value"
VALUE_DESC = "value desc"
class Enum357(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
ID = "id"
VALUE = "value"
class Enum358(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
ID = "id"
VALUE = "value"
class Enum359(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
ID = "id"
ID_DESC = "id desc"
VALUE = "value"
VALUE_DESC = "value desc"
class Enum36(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
ID = "id"
CATEGORIES = "categories"
CHANGE_KEY = "changeKey"
CREATED_DATE_TIME = "createdDateTime"
LAST_MODIFIED_DATE_TIME = "lastModifiedDateTime"
ALLOW_NEW_TIME_PROPOSALS = "allowNewTimeProposals"
ATTENDEES = "attendees"
BODY = "body"
BODY_PREVIEW = "bodyPreview"
END = "end"
HAS_ATTACHMENTS = "hasAttachments"
I_CAL_U_ID = "iCalUId"
IMPORTANCE = "importance"
IS_ALL_DAY = "isAllDay"
IS_CANCELLED = "isCancelled"
IS_ONLINE_MEETING = "isOnlineMeeting"
IS_ORGANIZER = "isOrganizer"
IS_REMINDER_ON = "isReminderOn"
LOCATION = "location"
LOCATIONS = "locations"
ONLINE_MEETING = "onlineMeeting"
ONLINE_MEETING_PROVIDER = "onlineMeetingProvider"
ONLINE_MEETING_URL = "onlineMeetingUrl"
ORGANIZER = "organizer"
ORIGINAL_END_TIME_ZONE = "originalEndTimeZone"
ORIGINAL_START = "originalStart"
ORIGINAL_START_TIME_ZONE = "originalStartTimeZone"
RECURRENCE = "recurrence"
REMINDER_MINUTES_BEFORE_START = "reminderMinutesBeforeStart"
RESPONSE_REQUESTED = "responseRequested"
RESPONSE_STATUS = "responseStatus"
SENSITIVITY = "sensitivity"
SERIES_MASTER_ID = "seriesMasterId"
SHOW_AS = "showAs"
START = "start"
SUBJECT = "subject"
TRANSACTION_ID = "transactionId"
TYPE = "type"
WEB_LINK = "webLink"
ATTACHMENTS = "attachments"
CALENDAR = "calendar"
EXTENSIONS = "extensions"
INSTANCES = "instances"
MULTI_VALUE_EXTENDED_PROPERTIES = "multiValueExtendedProperties"
SINGLE_VALUE_EXTENDED_PROPERTIES = "singleValueExtendedProperties"
class Enum360(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
ID = "id"
VALUE = "value"
class Enum361(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
ID = "id"
VALUE = "value"
class Enum362(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
ID = "id"
ID_DESC = "id desc"
class Enum363(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
ID = "id"
ID_DESC = "id desc"
CATEGORIES = "categories"
CATEGORIES_DESC = "categories desc"
CHANGE_KEY = "changeKey"
CHANGE_KEY_DESC = "changeKey desc"
CREATED_DATE_TIME = "createdDateTime"
CREATED_DATE_TIME_DESC = "createdDateTime desc"
LAST_MODIFIED_DATE_TIME = "lastModifiedDateTime"
LAST_MODIFIED_DATE_TIME_DESC = "lastModifiedDateTime desc"
ALLOW_NEW_TIME_PROPOSALS = "allowNewTimeProposals"
ALLOW_NEW_TIME_PROPOSALS_DESC = "allowNewTimeProposals desc"
ATTENDEES = "attendees"
ATTENDEES_DESC = "attendees desc"
BODY = "body"
BODY_DESC = "body desc"
BODY_PREVIEW = "bodyPreview"
BODY_PREVIEW_DESC = "bodyPreview desc"
END = "end"
END_DESC = "end desc"
HAS_ATTACHMENTS = "hasAttachments"
HAS_ATTACHMENTS_DESC = "hasAttachments desc"
I_CAL_U_ID = "iCalUId"
I_CAL_U_ID_DESC = "iCalUId desc"
IMPORTANCE = "importance"
IMPORTANCE_DESC = "importance desc"
IS_ALL_DAY = "isAllDay"
IS_ALL_DAY_DESC = "isAllDay desc"
IS_CANCELLED = "isCancelled"
IS_CANCELLED_DESC = "isCancelled desc"
IS_ONLINE_MEETING = "isOnlineMeeting"
IS_ONLINE_MEETING_DESC = "isOnlineMeeting desc"
IS_ORGANIZER = "isOrganizer"
IS_ORGANIZER_DESC = "isOrganizer desc"
IS_REMINDER_ON = "isReminderOn"
IS_REMINDER_ON_DESC = "isReminderOn desc"
LOCATION = "location"
LOCATION_DESC = "location desc"
LOCATIONS = "locations"
LOCATIONS_DESC = "locations desc"
ONLINE_MEETING = "onlineMeeting"
ONLINE_MEETING_DESC = "onlineMeeting desc"
ONLINE_MEETING_PROVIDER = "onlineMeetingProvider"
ONLINE_MEETING_PROVIDER_DESC = "onlineMeetingProvider desc"
ONLINE_MEETING_URL = "onlineMeetingUrl"
ONLINE_MEETING_URL_DESC = "onlineMeetingUrl desc"
ORGANIZER = "organizer"
ORGANIZER_DESC = "organizer desc"
ORIGINAL_END_TIME_ZONE = "originalEndTimeZone"
ORIGINAL_END_TIME_ZONE_DESC = "originalEndTimeZone desc"
ORIGINAL_START = "originalStart"
ORIGINAL_START_DESC = "originalStart desc"
ORIGINAL_START_TIME_ZONE = "originalStartTimeZone"
ORIGINAL_START_TIME_ZONE_DESC = "originalStartTimeZone desc"
RECURRENCE = "recurrence"
RECURRENCE_DESC = "recurrence desc"
REMINDER_MINUTES_BEFORE_START = "reminderMinutesBeforeStart"
REMINDER_MINUTES_BEFORE_START_DESC = "reminderMinutesBeforeStart desc"
RESPONSE_REQUESTED = "responseRequested"
RESPONSE_REQUESTED_DESC = "responseRequested desc"
RESPONSE_STATUS = "responseStatus"
RESPONSE_STATUS_DESC = "responseStatus desc"
SENSITIVITY = "sensitivity"
SENSITIVITY_DESC = "sensitivity desc"
SERIES_MASTER_ID = "seriesMasterId"
SERIES_MASTER_ID_DESC = "seriesMasterId desc"
SHOW_AS = "showAs"
SHOW_AS_DESC = "showAs desc"
START = "start"
START_DESC = "start desc"
SUBJECT = "subject"
SUBJECT_DESC = "subject desc"
TRANSACTION_ID = "transactionId"
TRANSACTION_ID_DESC = "transactionId desc"
TYPE = "type"
TYPE_DESC = "type desc"
WEB_LINK = "webLink"
WEB_LINK_DESC = "webLink desc"
class Enum364(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
ID = "id"
CATEGORIES = "categories"
CHANGE_KEY = "changeKey"
CREATED_DATE_TIME = "createdDateTime"
LAST_MODIFIED_DATE_TIME = "lastModifiedDateTime"
ALLOW_NEW_TIME_PROPOSALS = "allowNewTimeProposals"
ATTENDEES = "attendees"
BODY = "body"
BODY_PREVIEW = "bodyPreview"
END = "end"
HAS_ATTACHMENTS = "hasAttachments"
I_CAL_U_ID = "iCalUId"
IMPORTANCE = "importance"
IS_ALL_DAY = "isAllDay"
IS_CANCELLED = "isCancelled"
IS_ONLINE_MEETING = "isOnlineMeeting"
IS_ORGANIZER = "isOrganizer"
IS_REMINDER_ON = "isReminderOn"
LOCATION = "location"
LOCATIONS = "locations"
ONLINE_MEETING = "onlineMeeting"
ONLINE_MEETING_PROVIDER = "onlineMeetingProvider"
ONLINE_MEETING_URL = "onlineMeetingUrl"
ORGANIZER = "organizer"
ORIGINAL_END_TIME_ZONE = "originalEndTimeZone"
ORIGINAL_START = "originalStart"
ORIGINAL_START_TIME_ZONE = "originalStartTimeZone"
RECURRENCE = "recurrence"
REMINDER_MINUTES_BEFORE_START = "reminderMinutesBeforeStart"
RESPONSE_REQUESTED = "responseRequested"
RESPONSE_STATUS = "responseStatus"
SENSITIVITY = "sensitivity"
SERIES_MASTER_ID = "seriesMasterId"
SHOW_AS = "showAs"
START = "start"
SUBJECT = "subject"
TRANSACTION_ID = "transactionId"
TYPE = "type"
WEB_LINK = "webLink"
ATTACHMENTS = "attachments"
CALENDAR = "calendar"
EXTENSIONS = "extensions"
INSTANCES = "instances"
MULTI_VALUE_EXTENDED_PROPERTIES = "multiValueExtendedProperties"
SINGLE_VALUE_EXTENDED_PROPERTIES = "singleValueExtendedProperties"
class Enum365(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
ASTERISK = "*"
ATTACHMENTS = "attachments"
CALENDAR = "calendar"
EXTENSIONS = "extensions"
INSTANCES = "instances"
MULTI_VALUE_EXTENDED_PROPERTIES = "multiValueExtendedProperties"
SINGLE_VALUE_EXTENDED_PROPERTIES = "singleValueExtendedProperties"
class Enum366(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
ID = "id"
CATEGORIES = "categories"
CHANGE_KEY = "changeKey"
CREATED_DATE_TIME = "createdDateTime"
LAST_MODIFIED_DATE_TIME = "lastModifiedDateTime"
ALLOW_NEW_TIME_PROPOSALS = "allowNewTimeProposals"
ATTENDEES = "attendees"
BODY = "body"
BODY_PREVIEW = "bodyPreview"
END = "end"
HAS_ATTACHMENTS = "hasAttachments"
I_CAL_U_ID = "iCalUId"
IMPORTANCE = "importance"
IS_ALL_DAY = "isAllDay"
IS_CANCELLED = "isCancelled"
IS_ONLINE_MEETING = "isOnlineMeeting"
IS_ORGANIZER = "isOrganizer"
IS_REMINDER_ON = "isReminderOn"
LOCATION = "location"
LOCATIONS = "locations"
ONLINE_MEETING = "onlineMeeting"
ONLINE_MEETING_PROVIDER = "onlineMeetingProvider"
ONLINE_MEETING_URL = "onlineMeetingUrl"
ORGANIZER = "organizer"
ORIGINAL_END_TIME_ZONE = "originalEndTimeZone"
ORIGINAL_START = "originalStart"
ORIGINAL_START_TIME_ZONE = "originalStartTimeZone"
RECURRENCE = "recurrence"
REMINDER_MINUTES_BEFORE_START = "reminderMinutesBeforeStart"
RESPONSE_REQUESTED = "responseRequested"
RESPONSE_STATUS = "responseStatus"
SENSITIVITY = "sensitivity"
SERIES_MASTER_ID = "seriesMasterId"
SHOW_AS = "showAs"
START = "start"
SUBJECT = "subject"
TRANSACTION_ID = "transactionId"
TYPE = "type"
WEB_LINK = "webLink"
ATTACHMENTS = "attachments"
CALENDAR = "calendar"
EXTENSIONS = "extensions"
INSTANCES = "instances"
MULTI_VALUE_EXTENDED_PROPERTIES = "multiValueExtendedProperties"
SINGLE_VALUE_EXTENDED_PROPERTIES = "singleValueExtendedProperties"
class Enum367(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
ASTERISK = "*"
ATTACHMENTS = "attachments"
CALENDAR = "calendar"
EXTENSIONS = "extensions"
INSTANCES = "instances"
MULTI_VALUE_EXTENDED_PROPERTIES = "multiValueExtendedProperties"
SINGLE_VALUE_EXTENDED_PROPERTIES = "singleValueExtendedProperties"
class Enum368(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
ID = "id"
ID_DESC = "id desc"
VALUE = "value"
VALUE_DESC = "value desc"
class Enum369(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
ID = "id"
VALUE = "value"
class Enum37(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
ASTERISK = "*"
ATTACHMENTS = "attachments"
CALENDAR = "calendar"
EXTENSIONS = "extensions"
INSTANCES = "instances"
MULTI_VALUE_EXTENDED_PROPERTIES = "multiValueExtendedProperties"
SINGLE_VALUE_EXTENDED_PROPERTIES = "singleValueExtendedProperties"
class Enum370(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
ID = "id"
VALUE = "value"
class Enum371(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
ID = "id"
ID_DESC = "id desc"
VALUE = "value"
VALUE_DESC = "value desc"
class Enum372(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
ID = "id"
VALUE = "value"
class Enum373(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
ID = "id"
VALUE = "value"
class Enum374(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
ID = "id"
ID_DESC = "id desc"
CATEGORIES = "categories"
CATEGORIES_DESC = "categories desc"
CHANGE_KEY = "changeKey"
CHANGE_KEY_DESC = "changeKey desc"
CREATED_DATE_TIME = "createdDateTime"
CREATED_DATE_TIME_DESC = "createdDateTime desc"
LAST_MODIFIED_DATE_TIME = "lastModifiedDateTime"
LAST_MODIFIED_DATE_TIME_DESC = "lastModifiedDateTime desc"
ALLOW_NEW_TIME_PROPOSALS = "allowNewTimeProposals"
ALLOW_NEW_TIME_PROPOSALS_DESC = "allowNewTimeProposals desc"
ATTENDEES = "attendees"
ATTENDEES_DESC = "attendees desc"
BODY = "body"
BODY_DESC = "body desc"
BODY_PREVIEW = "bodyPreview"
BODY_PREVIEW_DESC = "bodyPreview desc"
END = "end"
END_DESC = "end desc"
HAS_ATTACHMENTS = "hasAttachments"
HAS_ATTACHMENTS_DESC = "hasAttachments desc"
I_CAL_U_ID = "iCalUId"
I_CAL_U_ID_DESC = "iCalUId desc"
IMPORTANCE = "importance"
IMPORTANCE_DESC = "importance desc"
IS_ALL_DAY = "isAllDay"
IS_ALL_DAY_DESC = "isAllDay desc"
IS_CANCELLED = "isCancelled"
IS_CANCELLED_DESC = "isCancelled desc"
IS_ONLINE_MEETING = "isOnlineMeeting"
IS_ONLINE_MEETING_DESC = "isOnlineMeeting desc"
IS_ORGANIZER = "isOrganizer"
IS_ORGANIZER_DESC = "isOrganizer desc"
IS_REMINDER_ON = "isReminderOn"
IS_REMINDER_ON_DESC = "isReminderOn desc"
LOCATION = "location"
LOCATION_DESC = "location desc"
LOCATIONS = "locations"
LOCATIONS_DESC = "locations desc"
ONLINE_MEETING = "onlineMeeting"
ONLINE_MEETING_DESC = "onlineMeeting desc"
ONLINE_MEETING_PROVIDER = "onlineMeetingProvider"
ONLINE_MEETING_PROVIDER_DESC = "onlineMeetingProvider desc"
ONLINE_MEETING_URL = "onlineMeetingUrl"
ONLINE_MEETING_URL_DESC = "onlineMeetingUrl desc"
ORGANIZER = "organizer"
ORGANIZER_DESC = "organizer desc"
ORIGINAL_END_TIME_ZONE = "originalEndTimeZone"
ORIGINAL_END_TIME_ZONE_DESC = "originalEndTimeZone desc"
ORIGINAL_START = "originalStart"
ORIGINAL_START_DESC = "originalStart desc"
ORIGINAL_START_TIME_ZONE = "originalStartTimeZone"
ORIGINAL_START_TIME_ZONE_DESC = "originalStartTimeZone desc"
RECURRENCE = "recurrence"
RECURRENCE_DESC = "recurrence desc"
REMINDER_MINUTES_BEFORE_START = "reminderMinutesBeforeStart"
REMINDER_MINUTES_BEFORE_START_DESC = "reminderMinutesBeforeStart desc"
RESPONSE_REQUESTED = "responseRequested"
RESPONSE_REQUESTED_DESC = "responseRequested desc"
RESPONSE_STATUS = "responseStatus"
RESPONSE_STATUS_DESC = "responseStatus desc"
SENSITIVITY = "sensitivity"
SENSITIVITY_DESC = "sensitivity desc"
SERIES_MASTER_ID = "seriesMasterId"
SERIES_MASTER_ID_DESC = "seriesMasterId desc"
SHOW_AS = "showAs"
SHOW_AS_DESC = "showAs desc"
START = "start"
START_DESC = "start desc"
SUBJECT = "subject"
SUBJECT_DESC = "subject desc"
TRANSACTION_ID = "transactionId"
TRANSACTION_ID_DESC = "transactionId desc"
TYPE = "type"
TYPE_DESC = "type desc"
WEB_LINK = "webLink"
WEB_LINK_DESC = "webLink desc"
class Enum375(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
ID = "id"
CATEGORIES = "categories"
CHANGE_KEY = "changeKey"
CREATED_DATE_TIME = "createdDateTime"
LAST_MODIFIED_DATE_TIME = "lastModifiedDateTime"
ALLOW_NEW_TIME_PROPOSALS = "allowNewTimeProposals"
ATTENDEES = "attendees"
BODY = "body"
BODY_PREVIEW = "bodyPreview"
END = "end"
HAS_ATTACHMENTS = "hasAttachments"
I_CAL_U_ID = "iCalUId"
IMPORTANCE = "importance"
IS_ALL_DAY = "isAllDay"
IS_CANCELLED = "isCancelled"
IS_ONLINE_MEETING = "isOnlineMeeting"
IS_ORGANIZER = "isOrganizer"
IS_REMINDER_ON = "isReminderOn"
LOCATION = "location"
LOCATIONS = "locations"
ONLINE_MEETING = "onlineMeeting"
ONLINE_MEETING_PROVIDER = "onlineMeetingProvider"
ONLINE_MEETING_URL = "onlineMeetingUrl"
ORGANIZER = "organizer"
ORIGINAL_END_TIME_ZONE = "originalEndTimeZone"
ORIGINAL_START = "originalStart"
ORIGINAL_START_TIME_ZONE = "originalStartTimeZone"
RECURRENCE = "recurrence"
REMINDER_MINUTES_BEFORE_START = "reminderMinutesBeforeStart"
RESPONSE_REQUESTED = "responseRequested"
RESPONSE_STATUS = "responseStatus"
SENSITIVITY = "sensitivity"
SERIES_MASTER_ID = "seriesMasterId"
SHOW_AS = "showAs"
START = "start"
SUBJECT = "subject"
TRANSACTION_ID = "transactionId"
TYPE = "type"
WEB_LINK = "webLink"
ATTACHMENTS = "attachments"
CALENDAR = "calendar"
EXTENSIONS = "extensions"
INSTANCES = "instances"
MULTI_VALUE_EXTENDED_PROPERTIES = "multiValueExtendedProperties"
SINGLE_VALUE_EXTENDED_PROPERTIES = "singleValueExtendedProperties"
class Enum376(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
ASTERISK = "*"
ATTACHMENTS = "attachments"
CALENDAR = "calendar"
EXTENSIONS = "extensions"
INSTANCES = "instances"
MULTI_VALUE_EXTENDED_PROPERTIES = "multiValueExtendedProperties"
SINGLE_VALUE_EXTENDED_PROPERTIES = "singleValueExtendedProperties"
class Enum377(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
ID = "id"
CATEGORIES = "categories"
CHANGE_KEY = "changeKey"
CREATED_DATE_TIME = "createdDateTime"
LAST_MODIFIED_DATE_TIME = "lastModifiedDateTime"
ALLOW_NEW_TIME_PROPOSALS = "allowNewTimeProposals"
ATTENDEES = "attendees"
BODY = "body"
BODY_PREVIEW = "bodyPreview"
END = "end"
HAS_ATTACHMENTS = "hasAttachments"
I_CAL_U_ID = "iCalUId"
IMPORTANCE = "importance"
IS_ALL_DAY = "isAllDay"
IS_CANCELLED = "isCancelled"
IS_ONLINE_MEETING = "isOnlineMeeting"
IS_ORGANIZER = "isOrganizer"
IS_REMINDER_ON = "isReminderOn"
LOCATION = "location"
LOCATIONS = "locations"
ONLINE_MEETING = "onlineMeeting"
ONLINE_MEETING_PROVIDER = "onlineMeetingProvider"
ONLINE_MEETING_URL = "onlineMeetingUrl"
ORGANIZER = "organizer"
ORIGINAL_END_TIME_ZONE = "originalEndTimeZone"
ORIGINAL_START = "originalStart"
ORIGINAL_START_TIME_ZONE = "originalStartTimeZone"
RECURRENCE = "recurrence"
REMINDER_MINUTES_BEFORE_START = "reminderMinutesBeforeStart"
RESPONSE_REQUESTED = "responseRequested"
RESPONSE_STATUS = "responseStatus"
SENSITIVITY = "sensitivity"
SERIES_MASTER_ID = "seriesMasterId"
SHOW_AS = "showAs"
START = "start"
SUBJECT = "subject"
TRANSACTION_ID = "transactionId"
TYPE = "type"
WEB_LINK = "webLink"
ATTACHMENTS = "attachments"
CALENDAR = "calendar"
EXTENSIONS = "extensions"
INSTANCES = "instances"
MULTI_VALUE_EXTENDED_PROPERTIES = "multiValueExtendedProperties"
SINGLE_VALUE_EXTENDED_PROPERTIES = "singleValueExtendedProperties"
class Enum378(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
ASTERISK = "*"
ATTACHMENTS = "attachments"
CALENDAR = "calendar"
EXTENSIONS = "extensions"
INSTANCES = "instances"
MULTI_VALUE_EXTENDED_PROPERTIES = "multiValueExtendedProperties"
SINGLE_VALUE_EXTENDED_PROPERTIES = "singleValueExtendedProperties"
class Enum379(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
ID = "id"
ID_DESC = "id desc"
CONTENT_TYPE = "contentType"
CONTENT_TYPE_DESC = "contentType desc"
IS_INLINE = "isInline"
IS_INLINE_DESC = "isInline desc"
LAST_MODIFIED_DATE_TIME = "lastModifiedDateTime"
LAST_MODIFIED_DATE_TIME_DESC = "lastModifiedDateTime desc"
NAME = "name"
NAME_DESC = "name desc"
SIZE = "size"
SIZE_DESC = "size desc"
class Enum38(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
ID = "id"
ID_DESC = "id desc"
VALUE = "value"
VALUE_DESC = "value desc"
class Enum380(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
ID = "id"
CONTENT_TYPE = "contentType"
IS_INLINE = "isInline"
LAST_MODIFIED_DATE_TIME = "lastModifiedDateTime"
NAME = "name"
SIZE = "size"
class Enum381(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
ID = "id"
CONTENT_TYPE = "contentType"
IS_INLINE = "isInline"
LAST_MODIFIED_DATE_TIME = "lastModifiedDateTime"
NAME = "name"
SIZE = "size"
class Enum382(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
ID = "id"
ALLOWED_ONLINE_MEETING_PROVIDERS = "allowedOnlineMeetingProviders"
CAN_EDIT = "canEdit"
CAN_SHARE = "canShare"
CAN_VIEW_PRIVATE_ITEMS = "canViewPrivateItems"
CHANGE_KEY = "changeKey"
COLOR = "color"
DEFAULT_ONLINE_MEETING_PROVIDER = "defaultOnlineMeetingProvider"
IS_REMOVABLE = "isRemovable"
IS_TALLYING_RESPONSES = "isTallyingResponses"
NAME = "name"
OWNER = "owner"
CALENDAR_PERMISSIONS = "calendarPermissions"
CALENDAR_VIEW = "calendarView"
EVENTS = "events"
MULTI_VALUE_EXTENDED_PROPERTIES = "multiValueExtendedProperties"
SINGLE_VALUE_EXTENDED_PROPERTIES = "singleValueExtendedProperties"
class Enum383(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
ASTERISK = "*"
CALENDAR_PERMISSIONS = "calendarPermissions"
CALENDAR_VIEW = "calendarView"
EVENTS = "events"
MULTI_VALUE_EXTENDED_PROPERTIES = "multiValueExtendedProperties"
SINGLE_VALUE_EXTENDED_PROPERTIES = "singleValueExtendedProperties"
class Enum384(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
ID = "id"
ID_DESC = "id desc"
ALLOWED_ROLES = "allowedRoles"
ALLOWED_ROLES_DESC = "allowedRoles desc"
EMAIL_ADDRESS = "emailAddress"
EMAIL_ADDRESS_DESC = "emailAddress desc"
IS_INSIDE_ORGANIZATION = "isInsideOrganization"
IS_INSIDE_ORGANIZATION_DESC = "isInsideOrganization desc"
IS_REMOVABLE = "isRemovable"
IS_REMOVABLE_DESC = "isRemovable desc"
ROLE = "role"
ROLE_DESC = "role desc"
class Enum385(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
ID = "id"
ALLOWED_ROLES = "allowedRoles"
EMAIL_ADDRESS = "emailAddress"
IS_INSIDE_ORGANIZATION = "isInsideOrganization"
IS_REMOVABLE = "isRemovable"
ROLE = "role"
class Enum386(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
ID = "id"
ALLOWED_ROLES = "allowedRoles"
EMAIL_ADDRESS = "emailAddress"
IS_INSIDE_ORGANIZATION = "isInsideOrganization"
IS_REMOVABLE = "isRemovable"
ROLE = "role"
class Enum387(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
ID = "id"
ID_DESC = "id desc"
CATEGORIES = "categories"
CATEGORIES_DESC = "categories desc"
CHANGE_KEY = "changeKey"
CHANGE_KEY_DESC = "changeKey desc"
CREATED_DATE_TIME = "createdDateTime"
CREATED_DATE_TIME_DESC = "createdDateTime desc"
LAST_MODIFIED_DATE_TIME = "lastModifiedDateTime"
LAST_MODIFIED_DATE_TIME_DESC = "lastModifiedDateTime desc"
ALLOW_NEW_TIME_PROPOSALS = "allowNewTimeProposals"
ALLOW_NEW_TIME_PROPOSALS_DESC = "allowNewTimeProposals desc"
ATTENDEES = "attendees"
ATTENDEES_DESC = "attendees desc"
BODY = "body"
BODY_DESC = "body desc"
BODY_PREVIEW = "bodyPreview"
BODY_PREVIEW_DESC = "bodyPreview desc"
END = "end"
END_DESC = "end desc"
HAS_ATTACHMENTS = "hasAttachments"
HAS_ATTACHMENTS_DESC = "hasAttachments desc"
I_CAL_U_ID = "iCalUId"
I_CAL_U_ID_DESC = "iCalUId desc"
IMPORTANCE = "importance"
IMPORTANCE_DESC = "importance desc"
IS_ALL_DAY = "isAllDay"
IS_ALL_DAY_DESC = "isAllDay desc"
IS_CANCELLED = "isCancelled"
IS_CANCELLED_DESC = "isCancelled desc"
IS_ONLINE_MEETING = "isOnlineMeeting"
IS_ONLINE_MEETING_DESC = "isOnlineMeeting desc"
IS_ORGANIZER = "isOrganizer"
IS_ORGANIZER_DESC = "isOrganizer desc"
IS_REMINDER_ON = "isReminderOn"
IS_REMINDER_ON_DESC = "isReminderOn desc"
LOCATION = "location"
LOCATION_DESC = "location desc"
LOCATIONS = "locations"
LOCATIONS_DESC = "locations desc"
ONLINE_MEETING = "onlineMeeting"
ONLINE_MEETING_DESC = "onlineMeeting desc"
ONLINE_MEETING_PROVIDER = "onlineMeetingProvider"
ONLINE_MEETING_PROVIDER_DESC = "onlineMeetingProvider desc"
ONLINE_MEETING_URL = "onlineMeetingUrl"
ONLINE_MEETING_URL_DESC = "onlineMeetingUrl desc"
ORGANIZER = "organizer"
ORGANIZER_DESC = "organizer desc"
ORIGINAL_END_TIME_ZONE = "originalEndTimeZone"
ORIGINAL_END_TIME_ZONE_DESC = "originalEndTimeZone desc"
ORIGINAL_START = "originalStart"
ORIGINAL_START_DESC = "originalStart desc"
ORIGINAL_START_TIME_ZONE = "originalStartTimeZone"
ORIGINAL_START_TIME_ZONE_DESC = "originalStartTimeZone desc"
RECURRENCE = "recurrence"
RECURRENCE_DESC = "recurrence desc"
REMINDER_MINUTES_BEFORE_START = "reminderMinutesBeforeStart"
REMINDER_MINUTES_BEFORE_START_DESC = "reminderMinutesBeforeStart desc"
RESPONSE_REQUESTED = "responseRequested"
RESPONSE_REQUESTED_DESC = "responseRequested desc"
RESPONSE_STATUS = "responseStatus"
RESPONSE_STATUS_DESC = "responseStatus desc"
SENSITIVITY = "sensitivity"
SENSITIVITY_DESC = "sensitivity desc"
SERIES_MASTER_ID = "seriesMasterId"
SERIES_MASTER_ID_DESC = "seriesMasterId desc"
SHOW_AS = "showAs"
SHOW_AS_DESC = "showAs desc"
START = "start"
START_DESC = "start desc"
SUBJECT = "subject"
SUBJECT_DESC = "subject desc"
TRANSACTION_ID = "transactionId"
TRANSACTION_ID_DESC = "transactionId desc"
TYPE = "type"
TYPE_DESC = "type desc"
WEB_LINK = "webLink"
WEB_LINK_DESC = "webLink desc"
class Enum388(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
ID = "id"
CATEGORIES = "categories"
CHANGE_KEY = "changeKey"
CREATED_DATE_TIME = "createdDateTime"
LAST_MODIFIED_DATE_TIME = "lastModifiedDateTime"
ALLOW_NEW_TIME_PROPOSALS = "allowNewTimeProposals"
ATTENDEES = "attendees"
BODY = "body"
BODY_PREVIEW = "bodyPreview"
END = "end"
HAS_ATTACHMENTS = "hasAttachments"
I_CAL_U_ID = "iCalUId"
IMPORTANCE = "importance"
IS_ALL_DAY = "isAllDay"
IS_CANCELLED = "isCancelled"
IS_ONLINE_MEETING = "isOnlineMeeting"
IS_ORGANIZER = "isOrganizer"
IS_REMINDER_ON = "isReminderOn"
LOCATION = "location"
LOCATIONS = "locations"
ONLINE_MEETING = "onlineMeeting"
ONLINE_MEETING_PROVIDER = "onlineMeetingProvider"
ONLINE_MEETING_URL = "onlineMeetingUrl"
ORGANIZER = "organizer"
ORIGINAL_END_TIME_ZONE = "originalEndTimeZone"
ORIGINAL_START = "originalStart"
ORIGINAL_START_TIME_ZONE = "originalStartTimeZone"
RECURRENCE = "recurrence"
REMINDER_MINUTES_BEFORE_START = "reminderMinutesBeforeStart"
RESPONSE_REQUESTED = "responseRequested"
RESPONSE_STATUS = "responseStatus"
SENSITIVITY = "sensitivity"
SERIES_MASTER_ID = "seriesMasterId"
SHOW_AS = "showAs"
START = "start"
SUBJECT = "subject"
TRANSACTION_ID = "transactionId"
TYPE = "type"
WEB_LINK = "webLink"
ATTACHMENTS = "attachments"
CALENDAR = "calendar"
EXTENSIONS = "extensions"
INSTANCES = "instances"
MULTI_VALUE_EXTENDED_PROPERTIES = "multiValueExtendedProperties"
SINGLE_VALUE_EXTENDED_PROPERTIES = "singleValueExtendedProperties"
class Enum389(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
ASTERISK = "*"
ATTACHMENTS = "attachments"
CALENDAR = "calendar"
EXTENSIONS = "extensions"
INSTANCES = "instances"
MULTI_VALUE_EXTENDED_PROPERTIES = "multiValueExtendedProperties"
SINGLE_VALUE_EXTENDED_PROPERTIES = "singleValueExtendedProperties"
class Enum39(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
ID = "id"
VALUE = "value"
class Enum390(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
ID = "id"
CATEGORIES = "categories"
CHANGE_KEY = "changeKey"
CREATED_DATE_TIME = "createdDateTime"
LAST_MODIFIED_DATE_TIME = "lastModifiedDateTime"
ALLOW_NEW_TIME_PROPOSALS = "allowNewTimeProposals"
ATTENDEES = "attendees"
BODY = "body"
BODY_PREVIEW = "bodyPreview"
END = "end"
HAS_ATTACHMENTS = "hasAttachments"
I_CAL_U_ID = "iCalUId"
IMPORTANCE = "importance"
IS_ALL_DAY = "isAllDay"
IS_CANCELLED = "isCancelled"
IS_ONLINE_MEETING = "isOnlineMeeting"
IS_ORGANIZER = "isOrganizer"
IS_REMINDER_ON = "isReminderOn"
LOCATION = "location"
LOCATIONS = "locations"
ONLINE_MEETING = "onlineMeeting"
ONLINE_MEETING_PROVIDER = "onlineMeetingProvider"
ONLINE_MEETING_URL = "onlineMeetingUrl"
ORGANIZER = "organizer"
ORIGINAL_END_TIME_ZONE = "originalEndTimeZone"
ORIGINAL_START = "originalStart"
ORIGINAL_START_TIME_ZONE = "originalStartTimeZone"
RECURRENCE = "recurrence"
REMINDER_MINUTES_BEFORE_START = "reminderMinutesBeforeStart"
RESPONSE_REQUESTED = "responseRequested"
RESPONSE_STATUS = "responseStatus"
SENSITIVITY = "sensitivity"
SERIES_MASTER_ID = "seriesMasterId"
SHOW_AS = "showAs"
START = "start"
SUBJECT = "subject"
TRANSACTION_ID = "transactionId"
TYPE = "type"
WEB_LINK = "webLink"
ATTACHMENTS = "attachments"
CALENDAR = "calendar"
EXTENSIONS = "extensions"
INSTANCES = "instances"
MULTI_VALUE_EXTENDED_PROPERTIES = "multiValueExtendedProperties"
SINGLE_VALUE_EXTENDED_PROPERTIES = "singleValueExtendedProperties"
class Enum391(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
ASTERISK = "*"
ATTACHMENTS = "attachments"
CALENDAR = "calendar"
EXTENSIONS = "extensions"
INSTANCES = "instances"
MULTI_VALUE_EXTENDED_PROPERTIES = "multiValueExtendedProperties"
SINGLE_VALUE_EXTENDED_PROPERTIES = "singleValueExtendedProperties"
class Enum392(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
ID = "id"
ID_DESC = "id desc"
CATEGORIES = "categories"
CATEGORIES_DESC = "categories desc"
CHANGE_KEY = "changeKey"
CHANGE_KEY_DESC = "changeKey desc"
CREATED_DATE_TIME = "createdDateTime"
CREATED_DATE_TIME_DESC = "createdDateTime desc"
LAST_MODIFIED_DATE_TIME = "lastModifiedDateTime"
LAST_MODIFIED_DATE_TIME_DESC = "lastModifiedDateTime desc"
ALLOW_NEW_TIME_PROPOSALS = "allowNewTimeProposals"
ALLOW_NEW_TIME_PROPOSALS_DESC = "allowNewTimeProposals desc"
ATTENDEES = "attendees"
ATTENDEES_DESC = "attendees desc"
BODY = "body"
BODY_DESC = "body desc"
BODY_PREVIEW = "bodyPreview"
BODY_PREVIEW_DESC = "bodyPreview desc"
END = "end"
END_DESC = "end desc"
HAS_ATTACHMENTS = "hasAttachments"
HAS_ATTACHMENTS_DESC = "hasAttachments desc"
I_CAL_U_ID = "iCalUId"
I_CAL_U_ID_DESC = "iCalUId desc"
IMPORTANCE = "importance"
IMPORTANCE_DESC = "importance desc"
IS_ALL_DAY = "isAllDay"
IS_ALL_DAY_DESC = "isAllDay desc"
IS_CANCELLED = "isCancelled"
IS_CANCELLED_DESC = "isCancelled desc"
IS_ONLINE_MEETING = "isOnlineMeeting"
IS_ONLINE_MEETING_DESC = "isOnlineMeeting desc"
IS_ORGANIZER = "isOrganizer"
IS_ORGANIZER_DESC = "isOrganizer desc"
IS_REMINDER_ON = "isReminderOn"
IS_REMINDER_ON_DESC = "isReminderOn desc"
LOCATION = "location"
LOCATION_DESC = "location desc"
LOCATIONS = "locations"
LOCATIONS_DESC = "locations desc"
ONLINE_MEETING = "onlineMeeting"
ONLINE_MEETING_DESC = "onlineMeeting desc"
ONLINE_MEETING_PROVIDER = "onlineMeetingProvider"
ONLINE_MEETING_PROVIDER_DESC = "onlineMeetingProvider desc"
ONLINE_MEETING_URL = "onlineMeetingUrl"
ONLINE_MEETING_URL_DESC = "onlineMeetingUrl desc"
ORGANIZER = "organizer"
ORGANIZER_DESC = "organizer desc"
ORIGINAL_END_TIME_ZONE = "originalEndTimeZone"
ORIGINAL_END_TIME_ZONE_DESC = "originalEndTimeZone desc"
ORIGINAL_START = "originalStart"
ORIGINAL_START_DESC = "originalStart desc"
ORIGINAL_START_TIME_ZONE = "originalStartTimeZone"
ORIGINAL_START_TIME_ZONE_DESC = "originalStartTimeZone desc"
RECURRENCE = "recurrence"
RECURRENCE_DESC = "recurrence desc"
REMINDER_MINUTES_BEFORE_START = "reminderMinutesBeforeStart"
REMINDER_MINUTES_BEFORE_START_DESC = "reminderMinutesBeforeStart desc"
RESPONSE_REQUESTED = "responseRequested"
RESPONSE_REQUESTED_DESC = "responseRequested desc"
RESPONSE_STATUS = "responseStatus"
RESPONSE_STATUS_DESC = "responseStatus desc"
SENSITIVITY = "sensitivity"
SENSITIVITY_DESC = "sensitivity desc"
SERIES_MASTER_ID = "seriesMasterId"
SERIES_MASTER_ID_DESC = "seriesMasterId desc"
SHOW_AS = "showAs"
SHOW_AS_DESC = "showAs desc"
START = "start"
START_DESC = "start desc"
SUBJECT = "subject"
SUBJECT_DESC = "subject desc"
TRANSACTION_ID = "transactionId"
TRANSACTION_ID_DESC = "transactionId desc"
TYPE = "type"
TYPE_DESC = "type desc"
WEB_LINK = "webLink"
WEB_LINK_DESC = "webLink desc"
class Enum393(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
ID = "id"
CATEGORIES = "categories"
CHANGE_KEY = "changeKey"
CREATED_DATE_TIME = "createdDateTime"
LAST_MODIFIED_DATE_TIME = "lastModifiedDateTime"
ALLOW_NEW_TIME_PROPOSALS = "allowNewTimeProposals"
ATTENDEES = "attendees"
BODY = "body"
BODY_PREVIEW = "bodyPreview"
END = "end"
HAS_ATTACHMENTS = "hasAttachments"
I_CAL_U_ID = "iCalUId"
IMPORTANCE = "importance"
IS_ALL_DAY = "isAllDay"
IS_CANCELLED = "isCancelled"
IS_ONLINE_MEETING = "isOnlineMeeting"
IS_ORGANIZER = "isOrganizer"
IS_REMINDER_ON = "isReminderOn"
LOCATION = "location"
LOCATIONS = "locations"
ONLINE_MEETING = "onlineMeeting"
ONLINE_MEETING_PROVIDER = "onlineMeetingProvider"
ONLINE_MEETING_URL = "onlineMeetingUrl"
ORGANIZER = "organizer"
ORIGINAL_END_TIME_ZONE = "originalEndTimeZone"
ORIGINAL_START = "originalStart"
ORIGINAL_START_TIME_ZONE = "originalStartTimeZone"
RECURRENCE = "recurrence"
REMINDER_MINUTES_BEFORE_START = "reminderMinutesBeforeStart"
RESPONSE_REQUESTED = "responseRequested"
RESPONSE_STATUS = "responseStatus"
SENSITIVITY = "sensitivity"
SERIES_MASTER_ID = "seriesMasterId"
SHOW_AS = "showAs"
START = "start"
SUBJECT = "subject"
TRANSACTION_ID = "transactionId"
TYPE = "type"
WEB_LINK = "webLink"
ATTACHMENTS = "attachments"
CALENDAR = "calendar"
EXTENSIONS = "extensions"
INSTANCES = "instances"
MULTI_VALUE_EXTENDED_PROPERTIES = "multiValueExtendedProperties"
SINGLE_VALUE_EXTENDED_PROPERTIES = "singleValueExtendedProperties"
class Enum394(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
ASTERISK = "*"
ATTACHMENTS = "attachments"
CALENDAR = "calendar"
EXTENSIONS = "extensions"
INSTANCES = "instances"
MULTI_VALUE_EXTENDED_PROPERTIES = "multiValueExtendedProperties"
SINGLE_VALUE_EXTENDED_PROPERTIES = "singleValueExtendedProperties"
class Enum395(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
ID = "id"
CATEGORIES = "categories"
CHANGE_KEY = "changeKey"
CREATED_DATE_TIME = "createdDateTime"
LAST_MODIFIED_DATE_TIME = "lastModifiedDateTime"
ALLOW_NEW_TIME_PROPOSALS = "allowNewTimeProposals"
ATTENDEES = "attendees"
BODY = "body"
BODY_PREVIEW = "bodyPreview"
END = "end"
HAS_ATTACHMENTS = "hasAttachments"
I_CAL_U_ID = "iCalUId"
IMPORTANCE = "importance"
IS_ALL_DAY = "isAllDay"
IS_CANCELLED = "isCancelled"
IS_ONLINE_MEETING = "isOnlineMeeting"
IS_ORGANIZER = "isOrganizer"
IS_REMINDER_ON = "isReminderOn"
LOCATION = "location"
LOCATIONS = "locations"
ONLINE_MEETING = "onlineMeeting"
ONLINE_MEETING_PROVIDER = "onlineMeetingProvider"
ONLINE_MEETING_URL = "onlineMeetingUrl"
ORGANIZER = "organizer"
ORIGINAL_END_TIME_ZONE = "originalEndTimeZone"
ORIGINAL_START = "originalStart"
ORIGINAL_START_TIME_ZONE = "originalStartTimeZone"
RECURRENCE = "recurrence"
REMINDER_MINUTES_BEFORE_START = "reminderMinutesBeforeStart"
RESPONSE_REQUESTED = "responseRequested"
RESPONSE_STATUS = "responseStatus"
SENSITIVITY = "sensitivity"
SERIES_MASTER_ID = "seriesMasterId"
SHOW_AS = "showAs"
START = "start"
SUBJECT = "subject"
TRANSACTION_ID = "transactionId"
TYPE = "type"
WEB_LINK = "webLink"
ATTACHMENTS = "attachments"
CALENDAR = "calendar"
EXTENSIONS = "extensions"
INSTANCES = "instances"
MULTI_VALUE_EXTENDED_PROPERTIES = "multiValueExtendedProperties"
SINGLE_VALUE_EXTENDED_PROPERTIES = "singleValueExtendedProperties"
class Enum396(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
ASTERISK = "*"
ATTACHMENTS = "attachments"
CALENDAR = "calendar"
EXTENSIONS = "extensions"
INSTANCES = "instances"
MULTI_VALUE_EXTENDED_PROPERTIES = "multiValueExtendedProperties"
SINGLE_VALUE_EXTENDED_PROPERTIES = "singleValueExtendedProperties"
class Enum397(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
ID = "id"
ID_DESC = "id desc"
VALUE = "value"
VALUE_DESC = "value desc"
class Enum398(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
ID = "id"
VALUE = "value"
class Enum399(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
ID = "id"
VALUE = "value"
class Enum40(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
ID = "id"
VALUE = "value"
class Enum400(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
ID = "id"
ID_DESC = "id desc"
VALUE = "value"
VALUE_DESC = "value desc"
class Enum401(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
ID = "id"
VALUE = "value"
class Enum402(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
ID = "id"
VALUE = "value"
class Enum403(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
ID = "id"
ID_DESC = "id desc"
class Enum404(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
ID = "id"
ID_DESC = "id desc"
CATEGORIES = "categories"
CATEGORIES_DESC = "categories desc"
CHANGE_KEY = "changeKey"
CHANGE_KEY_DESC = "changeKey desc"
CREATED_DATE_TIME = "createdDateTime"
CREATED_DATE_TIME_DESC = "createdDateTime desc"
LAST_MODIFIED_DATE_TIME = "lastModifiedDateTime"
LAST_MODIFIED_DATE_TIME_DESC = "lastModifiedDateTime desc"
ALLOW_NEW_TIME_PROPOSALS = "allowNewTimeProposals"
ALLOW_NEW_TIME_PROPOSALS_DESC = "allowNewTimeProposals desc"
ATTENDEES = "attendees"
ATTENDEES_DESC = "attendees desc"
BODY = "body"
BODY_DESC = "body desc"
BODY_PREVIEW = "bodyPreview"
BODY_PREVIEW_DESC = "bodyPreview desc"
END = "end"
END_DESC = "end desc"
HAS_ATTACHMENTS = "hasAttachments"
HAS_ATTACHMENTS_DESC = "hasAttachments desc"
I_CAL_U_ID = "iCalUId"
I_CAL_U_ID_DESC = "iCalUId desc"
IMPORTANCE = "importance"
IMPORTANCE_DESC = "importance desc"
IS_ALL_DAY = "isAllDay"
IS_ALL_DAY_DESC = "isAllDay desc"
IS_CANCELLED = "isCancelled"
IS_CANCELLED_DESC = "isCancelled desc"
IS_ONLINE_MEETING = "isOnlineMeeting"
IS_ONLINE_MEETING_DESC = "isOnlineMeeting desc"
IS_ORGANIZER = "isOrganizer"
IS_ORGANIZER_DESC = "isOrganizer desc"
IS_REMINDER_ON = "isReminderOn"
IS_REMINDER_ON_DESC = "isReminderOn desc"
LOCATION = "location"
LOCATION_DESC = "location desc"
LOCATIONS = "locations"
LOCATIONS_DESC = "locations desc"
ONLINE_MEETING = "onlineMeeting"
ONLINE_MEETING_DESC = "onlineMeeting desc"
ONLINE_MEETING_PROVIDER = "onlineMeetingProvider"
ONLINE_MEETING_PROVIDER_DESC = "onlineMeetingProvider desc"
ONLINE_MEETING_URL = "onlineMeetingUrl"
ONLINE_MEETING_URL_DESC = "onlineMeetingUrl desc"
ORGANIZER = "organizer"
ORGANIZER_DESC = "organizer desc"
ORIGINAL_END_TIME_ZONE = "originalEndTimeZone"
ORIGINAL_END_TIME_ZONE_DESC = "originalEndTimeZone desc"
ORIGINAL_START = "originalStart"
ORIGINAL_START_DESC = "originalStart desc"
ORIGINAL_START_TIME_ZONE = "originalStartTimeZone"
ORIGINAL_START_TIME_ZONE_DESC = "originalStartTimeZone desc"
RECURRENCE = "recurrence"
RECURRENCE_DESC = "recurrence desc"
REMINDER_MINUTES_BEFORE_START = "reminderMinutesBeforeStart"
REMINDER_MINUTES_BEFORE_START_DESC = "reminderMinutesBeforeStart desc"
RESPONSE_REQUESTED = "responseRequested"
RESPONSE_REQUESTED_DESC = "responseRequested desc"
RESPONSE_STATUS = "responseStatus"
RESPONSE_STATUS_DESC = "responseStatus desc"
SENSITIVITY = "sensitivity"
SENSITIVITY_DESC = "sensitivity desc"
SERIES_MASTER_ID = "seriesMasterId"
SERIES_MASTER_ID_DESC = "seriesMasterId desc"
SHOW_AS = "showAs"
SHOW_AS_DESC = "showAs desc"
START = "start"
START_DESC = "start desc"
SUBJECT = "subject"
SUBJECT_DESC = "subject desc"
TRANSACTION_ID = "transactionId"
TRANSACTION_ID_DESC = "transactionId desc"
TYPE = "type"
TYPE_DESC = "type desc"
WEB_LINK = "webLink"
WEB_LINK_DESC = "webLink desc"
class Enum405(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
ID = "id"
CATEGORIES = "categories"
CHANGE_KEY = "changeKey"
CREATED_DATE_TIME = "createdDateTime"
LAST_MODIFIED_DATE_TIME = "lastModifiedDateTime"
ALLOW_NEW_TIME_PROPOSALS = "allowNewTimeProposals"
ATTENDEES = "attendees"
BODY = "body"
BODY_PREVIEW = "bodyPreview"
END = "end"
HAS_ATTACHMENTS = "hasAttachments"
I_CAL_U_ID = "iCalUId"
IMPORTANCE = "importance"
IS_ALL_DAY = "isAllDay"
IS_CANCELLED = "isCancelled"
IS_ONLINE_MEETING = "isOnlineMeeting"
IS_ORGANIZER = "isOrganizer"
IS_REMINDER_ON = "isReminderOn"
LOCATION = "location"
LOCATIONS = "locations"
ONLINE_MEETING = "onlineMeeting"
ONLINE_MEETING_PROVIDER = "onlineMeetingProvider"
ONLINE_MEETING_URL = "onlineMeetingUrl"
ORGANIZER = "organizer"
ORIGINAL_END_TIME_ZONE = "originalEndTimeZone"
ORIGINAL_START = "originalStart"
ORIGINAL_START_TIME_ZONE = "originalStartTimeZone"
RECURRENCE = "recurrence"
REMINDER_MINUTES_BEFORE_START = "reminderMinutesBeforeStart"
RESPONSE_REQUESTED = "responseRequested"
RESPONSE_STATUS = "responseStatus"
SENSITIVITY = "sensitivity"
SERIES_MASTER_ID = "seriesMasterId"
SHOW_AS = "showAs"
START = "start"
SUBJECT = "subject"
TRANSACTION_ID = "transactionId"
TYPE = "type"
WEB_LINK = "webLink"
ATTACHMENTS = "attachments"
CALENDAR = "calendar"
EXTENSIONS = "extensions"
INSTANCES = "instances"
MULTI_VALUE_EXTENDED_PROPERTIES = "multiValueExtendedProperties"
SINGLE_VALUE_EXTENDED_PROPERTIES = "singleValueExtendedProperties"
class Enum406(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
ASTERISK = "*"
ATTACHMENTS = "attachments"
CALENDAR = "calendar"
EXTENSIONS = "extensions"
INSTANCES = "instances"
MULTI_VALUE_EXTENDED_PROPERTIES = "multiValueExtendedProperties"
SINGLE_VALUE_EXTENDED_PROPERTIES = "singleValueExtendedProperties"
class Enum407(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
ID = "id"
CATEGORIES = "categories"
CHANGE_KEY = "changeKey"
CREATED_DATE_TIME = "createdDateTime"
LAST_MODIFIED_DATE_TIME = "lastModifiedDateTime"
ALLOW_NEW_TIME_PROPOSALS = "allowNewTimeProposals"
ATTENDEES = "attendees"
BODY = "body"
BODY_PREVIEW = "bodyPreview"
END = "end"
HAS_ATTACHMENTS = "hasAttachments"
I_CAL_U_ID = "iCalUId"
IMPORTANCE = "importance"
IS_ALL_DAY = "isAllDay"
IS_CANCELLED = "isCancelled"
IS_ONLINE_MEETING = "isOnlineMeeting"
IS_ORGANIZER = "isOrganizer"
IS_REMINDER_ON = "isReminderOn"
LOCATION = "location"
LOCATIONS = "locations"
ONLINE_MEETING = "onlineMeeting"
ONLINE_MEETING_PROVIDER = "onlineMeetingProvider"
ONLINE_MEETING_URL = "onlineMeetingUrl"
ORGANIZER = "organizer"
ORIGINAL_END_TIME_ZONE = "originalEndTimeZone"
ORIGINAL_START = "originalStart"
ORIGINAL_START_TIME_ZONE = "originalStartTimeZone"
RECURRENCE = "recurrence"
REMINDER_MINUTES_BEFORE_START = "reminderMinutesBeforeStart"
RESPONSE_REQUESTED = "responseRequested"
RESPONSE_STATUS = "responseStatus"
SENSITIVITY = "sensitivity"
SERIES_MASTER_ID = "seriesMasterId"
SHOW_AS = "showAs"
START = "start"
SUBJECT = "subject"
TRANSACTION_ID = "transactionId"
TYPE = "type"
WEB_LINK = "webLink"
ATTACHMENTS = "attachments"
CALENDAR = "calendar"
EXTENSIONS = "extensions"
INSTANCES = "instances"
MULTI_VALUE_EXTENDED_PROPERTIES = "multiValueExtendedProperties"
SINGLE_VALUE_EXTENDED_PROPERTIES = "singleValueExtendedProperties"
class Enum408(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
ASTERISK = "*"
ATTACHMENTS = "attachments"
CALENDAR = "calendar"
EXTENSIONS = "extensions"
INSTANCES = "instances"
MULTI_VALUE_EXTENDED_PROPERTIES = "multiValueExtendedProperties"
SINGLE_VALUE_EXTENDED_PROPERTIES = "singleValueExtendedProperties"
class Enum409(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
ID = "id"
ID_DESC = "id desc"
VALUE = "value"
VALUE_DESC = "value desc"
class Enum41(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
ID = "id"
ID_DESC = "id desc"
VALUE = "value"
VALUE_DESC = "value desc"
class Enum410(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
ID = "id"
VALUE = "value"
class Enum411(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
ID = "id"
VALUE = "value"
class Enum412(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
ID = "id"
ID_DESC = "id desc"
VALUE = "value"
VALUE_DESC = "value desc"
class Enum413(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
ID = "id"
VALUE = "value"
class Enum414(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
ID = "id"
VALUE = "value"
class Enum42(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
ID = "id"
VALUE = "value"
class Enum43(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
ID = "id"
VALUE = "value"
class Enum44(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
ID = "id"
ID_DESC = "id desc"
CATEGORIES = "categories"
CATEGORIES_DESC = "categories desc"
CHANGE_KEY = "changeKey"
CHANGE_KEY_DESC = "changeKey desc"
CREATED_DATE_TIME = "createdDateTime"
CREATED_DATE_TIME_DESC = "createdDateTime desc"
LAST_MODIFIED_DATE_TIME = "lastModifiedDateTime"
LAST_MODIFIED_DATE_TIME_DESC = "lastModifiedDateTime desc"
ALLOW_NEW_TIME_PROPOSALS = "allowNewTimeProposals"
ALLOW_NEW_TIME_PROPOSALS_DESC = "allowNewTimeProposals desc"
ATTENDEES = "attendees"
ATTENDEES_DESC = "attendees desc"
BODY = "body"
BODY_DESC = "body desc"
BODY_PREVIEW = "bodyPreview"
BODY_PREVIEW_DESC = "bodyPreview desc"
END = "end"
END_DESC = "end desc"
HAS_ATTACHMENTS = "hasAttachments"
HAS_ATTACHMENTS_DESC = "hasAttachments desc"
I_CAL_U_ID = "iCalUId"
I_CAL_U_ID_DESC = "iCalUId desc"
IMPORTANCE = "importance"
IMPORTANCE_DESC = "importance desc"
IS_ALL_DAY = "isAllDay"
IS_ALL_DAY_DESC = "isAllDay desc"
IS_CANCELLED = "isCancelled"
IS_CANCELLED_DESC = "isCancelled desc"
IS_ONLINE_MEETING = "isOnlineMeeting"
IS_ONLINE_MEETING_DESC = "isOnlineMeeting desc"
IS_ORGANIZER = "isOrganizer"
IS_ORGANIZER_DESC = "isOrganizer desc"
IS_REMINDER_ON = "isReminderOn"
IS_REMINDER_ON_DESC = "isReminderOn desc"
LOCATION = "location"
LOCATION_DESC = "location desc"
LOCATIONS = "locations"
LOCATIONS_DESC = "locations desc"
ONLINE_MEETING = "onlineMeeting"
ONLINE_MEETING_DESC = "onlineMeeting desc"
ONLINE_MEETING_PROVIDER = "onlineMeetingProvider"
ONLINE_MEETING_PROVIDER_DESC = "onlineMeetingProvider desc"
ONLINE_MEETING_URL = "onlineMeetingUrl"
ONLINE_MEETING_URL_DESC = "onlineMeetingUrl desc"
ORGANIZER = "organizer"
ORGANIZER_DESC = "organizer desc"
ORIGINAL_END_TIME_ZONE = "originalEndTimeZone"
ORIGINAL_END_TIME_ZONE_DESC = "originalEndTimeZone desc"
ORIGINAL_START = "originalStart"
ORIGINAL_START_DESC = "originalStart desc"
ORIGINAL_START_TIME_ZONE = "originalStartTimeZone"
ORIGINAL_START_TIME_ZONE_DESC = "originalStartTimeZone desc"
RECURRENCE = "recurrence"
RECURRENCE_DESC = "recurrence desc"
REMINDER_MINUTES_BEFORE_START = "reminderMinutesBeforeStart"
REMINDER_MINUTES_BEFORE_START_DESC = "reminderMinutesBeforeStart desc"
RESPONSE_REQUESTED = "responseRequested"
RESPONSE_REQUESTED_DESC = "responseRequested desc"
RESPONSE_STATUS = "responseStatus"
RESPONSE_STATUS_DESC = "responseStatus desc"
SENSITIVITY = "sensitivity"
SENSITIVITY_DESC = "sensitivity desc"
SERIES_MASTER_ID = "seriesMasterId"
SERIES_MASTER_ID_DESC = "seriesMasterId desc"
SHOW_AS = "showAs"
SHOW_AS_DESC = "showAs desc"
START = "start"
START_DESC = "start desc"
SUBJECT = "subject"
SUBJECT_DESC = "subject desc"
TRANSACTION_ID = "transactionId"
TRANSACTION_ID_DESC = "transactionId desc"
TYPE = "type"
TYPE_DESC = "type desc"
WEB_LINK = "webLink"
WEB_LINK_DESC = "webLink desc"
class Enum45(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
ID = "id"
CATEGORIES = "categories"
CHANGE_KEY = "changeKey"
CREATED_DATE_TIME = "createdDateTime"
LAST_MODIFIED_DATE_TIME = "lastModifiedDateTime"
ALLOW_NEW_TIME_PROPOSALS = "allowNewTimeProposals"
ATTENDEES = "attendees"
BODY = "body"
BODY_PREVIEW = "bodyPreview"
END = "end"
HAS_ATTACHMENTS = "hasAttachments"
I_CAL_U_ID = "iCalUId"
IMPORTANCE = "importance"
IS_ALL_DAY = "isAllDay"
IS_CANCELLED = "isCancelled"
IS_ONLINE_MEETING = "isOnlineMeeting"
IS_ORGANIZER = "isOrganizer"
IS_REMINDER_ON = "isReminderOn"
LOCATION = "location"
LOCATIONS = "locations"
ONLINE_MEETING = "onlineMeeting"
ONLINE_MEETING_PROVIDER = "onlineMeetingProvider"
ONLINE_MEETING_URL = "onlineMeetingUrl"
ORGANIZER = "organizer"
ORIGINAL_END_TIME_ZONE = "originalEndTimeZone"
ORIGINAL_START = "originalStart"
ORIGINAL_START_TIME_ZONE = "originalStartTimeZone"
RECURRENCE = "recurrence"
REMINDER_MINUTES_BEFORE_START = "reminderMinutesBeforeStart"
RESPONSE_REQUESTED = "responseRequested"
RESPONSE_STATUS = "responseStatus"
SENSITIVITY = "sensitivity"
SERIES_MASTER_ID = "seriesMasterId"
SHOW_AS = "showAs"
START = "start"
SUBJECT = "subject"
TRANSACTION_ID = "transactionId"
TYPE = "type"
WEB_LINK = "webLink"
ATTACHMENTS = "attachments"
CALENDAR = "calendar"
EXTENSIONS = "extensions"
INSTANCES = "instances"
MULTI_VALUE_EXTENDED_PROPERTIES = "multiValueExtendedProperties"
SINGLE_VALUE_EXTENDED_PROPERTIES = "singleValueExtendedProperties"
class Enum46(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
ASTERISK = "*"
ATTACHMENTS = "attachments"
CALENDAR = "calendar"
EXTENSIONS = "extensions"
INSTANCES = "instances"
MULTI_VALUE_EXTENDED_PROPERTIES = "multiValueExtendedProperties"
SINGLE_VALUE_EXTENDED_PROPERTIES = "singleValueExtendedProperties"
class Enum47(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
ID = "id"
CATEGORIES = "categories"
CHANGE_KEY = "changeKey"
CREATED_DATE_TIME = "createdDateTime"
LAST_MODIFIED_DATE_TIME = "lastModifiedDateTime"
ALLOW_NEW_TIME_PROPOSALS = "allowNewTimeProposals"
ATTENDEES = "attendees"
BODY = "body"
BODY_PREVIEW = "bodyPreview"
END = "end"
HAS_ATTACHMENTS = "hasAttachments"
I_CAL_U_ID = "iCalUId"
IMPORTANCE = "importance"
IS_ALL_DAY = "isAllDay"
IS_CANCELLED = "isCancelled"
IS_ONLINE_MEETING = "isOnlineMeeting"
IS_ORGANIZER = "isOrganizer"
IS_REMINDER_ON = "isReminderOn"
LOCATION = "location"
LOCATIONS = "locations"
ONLINE_MEETING = "onlineMeeting"
ONLINE_MEETING_PROVIDER = "onlineMeetingProvider"
ONLINE_MEETING_URL = "onlineMeetingUrl"
ORGANIZER = "organizer"
ORIGINAL_END_TIME_ZONE = "originalEndTimeZone"
ORIGINAL_START = "originalStart"
ORIGINAL_START_TIME_ZONE = "originalStartTimeZone"
RECURRENCE = "recurrence"
REMINDER_MINUTES_BEFORE_START = "reminderMinutesBeforeStart"
RESPONSE_REQUESTED = "responseRequested"
RESPONSE_STATUS = "responseStatus"
SENSITIVITY = "sensitivity"
SERIES_MASTER_ID = "seriesMasterId"
SHOW_AS = "showAs"
START = "start"
SUBJECT = "subject"
TRANSACTION_ID = "transactionId"
TYPE = "type"
WEB_LINK = "webLink"
ATTACHMENTS = "attachments"
CALENDAR = "calendar"
EXTENSIONS = "extensions"
INSTANCES = "instances"
MULTI_VALUE_EXTENDED_PROPERTIES = "multiValueExtendedProperties"
SINGLE_VALUE_EXTENDED_PROPERTIES = "singleValueExtendedProperties"
class Enum48(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
ASTERISK = "*"
ATTACHMENTS = "attachments"
CALENDAR = "calendar"
EXTENSIONS = "extensions"
INSTANCES = "instances"
MULTI_VALUE_EXTENDED_PROPERTIES = "multiValueExtendedProperties"
SINGLE_VALUE_EXTENDED_PROPERTIES = "singleValueExtendedProperties"
class Enum49(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
ID = "id"
ID_DESC = "id desc"
CONTENT_TYPE = "contentType"
CONTENT_TYPE_DESC = "contentType desc"
IS_INLINE = "isInline"
IS_INLINE_DESC = "isInline desc"
LAST_MODIFIED_DATE_TIME = "lastModifiedDateTime"
LAST_MODIFIED_DATE_TIME_DESC = "lastModifiedDateTime desc"
NAME = "name"
NAME_DESC = "name desc"
SIZE = "size"
SIZE_DESC = "size desc"
class Enum50(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
ID = "id"
CONTENT_TYPE = "contentType"
IS_INLINE = "isInline"
LAST_MODIFIED_DATE_TIME = "lastModifiedDateTime"
NAME = "name"
SIZE = "size"
class Enum51(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
ID = "id"
CONTENT_TYPE = "contentType"
IS_INLINE = "isInline"
LAST_MODIFIED_DATE_TIME = "lastModifiedDateTime"
NAME = "name"
SIZE = "size"
class Enum52(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
ID = "id"
ALLOWED_ONLINE_MEETING_PROVIDERS = "allowedOnlineMeetingProviders"
CAN_EDIT = "canEdit"
CAN_SHARE = "canShare"
CAN_VIEW_PRIVATE_ITEMS = "canViewPrivateItems"
CHANGE_KEY = "changeKey"
COLOR = "color"
DEFAULT_ONLINE_MEETING_PROVIDER = "defaultOnlineMeetingProvider"
IS_REMOVABLE = "isRemovable"
IS_TALLYING_RESPONSES = "isTallyingResponses"
NAME = "name"
OWNER = "owner"
CALENDAR_PERMISSIONS = "calendarPermissions"
CALENDAR_VIEW = "calendarView"
EVENTS = "events"
MULTI_VALUE_EXTENDED_PROPERTIES = "multiValueExtendedProperties"
SINGLE_VALUE_EXTENDED_PROPERTIES = "singleValueExtendedProperties"
class Enum53(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
ASTERISK = "*"
CALENDAR_PERMISSIONS = "calendarPermissions"
CALENDAR_VIEW = "calendarView"
EVENTS = "events"
MULTI_VALUE_EXTENDED_PROPERTIES = "multiValueExtendedProperties"
SINGLE_VALUE_EXTENDED_PROPERTIES = "singleValueExtendedProperties"
class Enum54(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
ID = "id"
ID_DESC = "id desc"
class Enum55(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
ID = "id"
ID_DESC = "id desc"
CATEGORIES = "categories"
CATEGORIES_DESC = "categories desc"
CHANGE_KEY = "changeKey"
CHANGE_KEY_DESC = "changeKey desc"
CREATED_DATE_TIME = "createdDateTime"
CREATED_DATE_TIME_DESC = "createdDateTime desc"
LAST_MODIFIED_DATE_TIME = "lastModifiedDateTime"
LAST_MODIFIED_DATE_TIME_DESC = "lastModifiedDateTime desc"
ALLOW_NEW_TIME_PROPOSALS = "allowNewTimeProposals"
ALLOW_NEW_TIME_PROPOSALS_DESC = "allowNewTimeProposals desc"
ATTENDEES = "attendees"
ATTENDEES_DESC = "attendees desc"
BODY = "body"
BODY_DESC = "body desc"
BODY_PREVIEW = "bodyPreview"
BODY_PREVIEW_DESC = "bodyPreview desc"
END = "end"
END_DESC = "end desc"
HAS_ATTACHMENTS = "hasAttachments"
HAS_ATTACHMENTS_DESC = "hasAttachments desc"
I_CAL_U_ID = "iCalUId"
I_CAL_U_ID_DESC = "iCalUId desc"
IMPORTANCE = "importance"
IMPORTANCE_DESC = "importance desc"
IS_ALL_DAY = "isAllDay"
IS_ALL_DAY_DESC = "isAllDay desc"
IS_CANCELLED = "isCancelled"
IS_CANCELLED_DESC = "isCancelled desc"
IS_ONLINE_MEETING = "isOnlineMeeting"
IS_ONLINE_MEETING_DESC = "isOnlineMeeting desc"
IS_ORGANIZER = "isOrganizer"
IS_ORGANIZER_DESC = "isOrganizer desc"
IS_REMINDER_ON = "isReminderOn"
IS_REMINDER_ON_DESC = "isReminderOn desc"
LOCATION = "location"
LOCATION_DESC = "location desc"
LOCATIONS = "locations"
LOCATIONS_DESC = "locations desc"
ONLINE_MEETING = "onlineMeeting"
ONLINE_MEETING_DESC = "onlineMeeting desc"
ONLINE_MEETING_PROVIDER = "onlineMeetingProvider"
ONLINE_MEETING_PROVIDER_DESC = "onlineMeetingProvider desc"
ONLINE_MEETING_URL = "onlineMeetingUrl"
ONLINE_MEETING_URL_DESC = "onlineMeetingUrl desc"
ORGANIZER = "organizer"
ORGANIZER_DESC = "organizer desc"
ORIGINAL_END_TIME_ZONE = "originalEndTimeZone"
ORIGINAL_END_TIME_ZONE_DESC = "originalEndTimeZone desc"
ORIGINAL_START = "originalStart"
ORIGINAL_START_DESC = "originalStart desc"
ORIGINAL_START_TIME_ZONE = "originalStartTimeZone"
ORIGINAL_START_TIME_ZONE_DESC = "originalStartTimeZone desc"
RECURRENCE = "recurrence"
RECURRENCE_DESC = "recurrence desc"
REMINDER_MINUTES_BEFORE_START = "reminderMinutesBeforeStart"
REMINDER_MINUTES_BEFORE_START_DESC = "reminderMinutesBeforeStart desc"
RESPONSE_REQUESTED = "responseRequested"
RESPONSE_REQUESTED_DESC = "responseRequested desc"
RESPONSE_STATUS = "responseStatus"
RESPONSE_STATUS_DESC = "responseStatus desc"
SENSITIVITY = "sensitivity"
SENSITIVITY_DESC = "sensitivity desc"
SERIES_MASTER_ID = "seriesMasterId"
SERIES_MASTER_ID_DESC = "seriesMasterId desc"
SHOW_AS = "showAs"
SHOW_AS_DESC = "showAs desc"
START = "start"
START_DESC = "start desc"
SUBJECT = "subject"
SUBJECT_DESC = "subject desc"
TRANSACTION_ID = "transactionId"
TRANSACTION_ID_DESC = "transactionId desc"
TYPE = "type"
TYPE_DESC = "type desc"
WEB_LINK = "webLink"
WEB_LINK_DESC = "webLink desc"
class Enum56(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
ID = "id"
CATEGORIES = "categories"
CHANGE_KEY = "changeKey"
CREATED_DATE_TIME = "createdDateTime"
LAST_MODIFIED_DATE_TIME = "lastModifiedDateTime"
ALLOW_NEW_TIME_PROPOSALS = "allowNewTimeProposals"
ATTENDEES = "attendees"
BODY = "body"
BODY_PREVIEW = "bodyPreview"
END = "end"
HAS_ATTACHMENTS = "hasAttachments"
I_CAL_U_ID = "iCalUId"
IMPORTANCE = "importance"
IS_ALL_DAY = "isAllDay"
IS_CANCELLED = "isCancelled"
IS_ONLINE_MEETING = "isOnlineMeeting"
IS_ORGANIZER = "isOrganizer"
IS_REMINDER_ON = "isReminderOn"
LOCATION = "location"
LOCATIONS = "locations"
ONLINE_MEETING = "onlineMeeting"
ONLINE_MEETING_PROVIDER = "onlineMeetingProvider"
ONLINE_MEETING_URL = "onlineMeetingUrl"
ORGANIZER = "organizer"
ORIGINAL_END_TIME_ZONE = "originalEndTimeZone"
ORIGINAL_START = "originalStart"
ORIGINAL_START_TIME_ZONE = "originalStartTimeZone"
RECURRENCE = "recurrence"
REMINDER_MINUTES_BEFORE_START = "reminderMinutesBeforeStart"
RESPONSE_REQUESTED = "responseRequested"
RESPONSE_STATUS = "responseStatus"
SENSITIVITY = "sensitivity"
SERIES_MASTER_ID = "seriesMasterId"
SHOW_AS = "showAs"
START = "start"
SUBJECT = "subject"
TRANSACTION_ID = "transactionId"
TYPE = "type"
WEB_LINK = "webLink"
ATTACHMENTS = "attachments"
CALENDAR = "calendar"
EXTENSIONS = "extensions"
INSTANCES = "instances"
MULTI_VALUE_EXTENDED_PROPERTIES = "multiValueExtendedProperties"
SINGLE_VALUE_EXTENDED_PROPERTIES = "singleValueExtendedProperties"
class Enum57(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
ASTERISK = "*"
ATTACHMENTS = "attachments"
CALENDAR = "calendar"
EXTENSIONS = "extensions"
INSTANCES = "instances"
MULTI_VALUE_EXTENDED_PROPERTIES = "multiValueExtendedProperties"
SINGLE_VALUE_EXTENDED_PROPERTIES = "singleValueExtendedProperties"
class Enum58(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
ID = "id"
CATEGORIES = "categories"
CHANGE_KEY = "changeKey"
CREATED_DATE_TIME = "createdDateTime"
LAST_MODIFIED_DATE_TIME = "lastModifiedDateTime"
ALLOW_NEW_TIME_PROPOSALS = "allowNewTimeProposals"
ATTENDEES = "attendees"
BODY = "body"
BODY_PREVIEW = "bodyPreview"
END = "end"
HAS_ATTACHMENTS = "hasAttachments"
I_CAL_U_ID = "iCalUId"
IMPORTANCE = "importance"
IS_ALL_DAY = "isAllDay"
IS_CANCELLED = "isCancelled"
IS_ONLINE_MEETING = "isOnlineMeeting"
IS_ORGANIZER = "isOrganizer"
IS_REMINDER_ON = "isReminderOn"
LOCATION = "location"
LOCATIONS = "locations"
ONLINE_MEETING = "onlineMeeting"
ONLINE_MEETING_PROVIDER = "onlineMeetingProvider"
ONLINE_MEETING_URL = "onlineMeetingUrl"
ORGANIZER = "organizer"
ORIGINAL_END_TIME_ZONE = "originalEndTimeZone"
ORIGINAL_START = "originalStart"
ORIGINAL_START_TIME_ZONE = "originalStartTimeZone"
RECURRENCE = "recurrence"
REMINDER_MINUTES_BEFORE_START = "reminderMinutesBeforeStart"
RESPONSE_REQUESTED = "responseRequested"
RESPONSE_STATUS = "responseStatus"
SENSITIVITY = "sensitivity"
SERIES_MASTER_ID = "seriesMasterId"
SHOW_AS = "showAs"
START = "start"
SUBJECT = "subject"
TRANSACTION_ID = "transactionId"
TYPE = "type"
WEB_LINK = "webLink"
ATTACHMENTS = "attachments"
CALENDAR = "calendar"
EXTENSIONS = "extensions"
INSTANCES = "instances"
MULTI_VALUE_EXTENDED_PROPERTIES = "multiValueExtendedProperties"
SINGLE_VALUE_EXTENDED_PROPERTIES = "singleValueExtendedProperties"
class Enum59(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
ASTERISK = "*"
ATTACHMENTS = "attachments"
CALENDAR = "calendar"
EXTENSIONS = "extensions"
INSTANCES = "instances"
MULTI_VALUE_EXTENDED_PROPERTIES = "multiValueExtendedProperties"
SINGLE_VALUE_EXTENDED_PROPERTIES = "singleValueExtendedProperties"
class Enum60(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
ID = "id"
ID_DESC = "id desc"
VALUE = "value"
VALUE_DESC = "value desc"
class Enum61(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
ID = "id"
VALUE = "value"
class Enum62(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
ID = "id"
VALUE = "value"
class Enum63(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
ID = "id"
ID_DESC = "id desc"
VALUE = "value"
VALUE_DESC = "value desc"
class Enum64(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
ID = "id"
VALUE = "value"
class Enum65(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
ID = "id"
VALUE = "value"
class Enum66(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
ID = "id"
ID_DESC = "id desc"
VALUE = "value"
VALUE_DESC = "value desc"
class Enum67(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
ID = "id"
VALUE = "value"
class Enum68(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
ID = "id"
VALUE = "value"
class Enum69(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
ID = "id"
ID_DESC = "id desc"
VALUE = "value"
VALUE_DESC = "value desc"
class Enum70(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
ID = "id"
VALUE = "value"
class Enum71(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
ID = "id"
VALUE = "value"
class Enum72(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
ID = "id"
ID_DESC = "id desc"
CATEGORIES = "categories"
CATEGORIES_DESC = "categories desc"
CHANGE_KEY = "changeKey"
CHANGE_KEY_DESC = "changeKey desc"
CREATED_DATE_TIME = "createdDateTime"
CREATED_DATE_TIME_DESC = "createdDateTime desc"
LAST_MODIFIED_DATE_TIME = "lastModifiedDateTime"
LAST_MODIFIED_DATE_TIME_DESC = "lastModifiedDateTime desc"
ALLOW_NEW_TIME_PROPOSALS = "allowNewTimeProposals"
ALLOW_NEW_TIME_PROPOSALS_DESC = "allowNewTimeProposals desc"
ATTENDEES = "attendees"
ATTENDEES_DESC = "attendees desc"
BODY = "body"
BODY_DESC = "body desc"
BODY_PREVIEW = "bodyPreview"
BODY_PREVIEW_DESC = "bodyPreview desc"
END = "end"
END_DESC = "end desc"
HAS_ATTACHMENTS = "hasAttachments"
HAS_ATTACHMENTS_DESC = "hasAttachments desc"
I_CAL_U_ID = "iCalUId"
I_CAL_U_ID_DESC = "iCalUId desc"
IMPORTANCE = "importance"
IMPORTANCE_DESC = "importance desc"
IS_ALL_DAY = "isAllDay"
IS_ALL_DAY_DESC = "isAllDay desc"
IS_CANCELLED = "isCancelled"
IS_CANCELLED_DESC = "isCancelled desc"
IS_ONLINE_MEETING = "isOnlineMeeting"
IS_ONLINE_MEETING_DESC = "isOnlineMeeting desc"
IS_ORGANIZER = "isOrganizer"
IS_ORGANIZER_DESC = "isOrganizer desc"
IS_REMINDER_ON = "isReminderOn"
IS_REMINDER_ON_DESC = "isReminderOn desc"
LOCATION = "location"
LOCATION_DESC = "location desc"
LOCATIONS = "locations"
LOCATIONS_DESC = "locations desc"
ONLINE_MEETING = "onlineMeeting"
ONLINE_MEETING_DESC = "onlineMeeting desc"
ONLINE_MEETING_PROVIDER = "onlineMeetingProvider"
ONLINE_MEETING_PROVIDER_DESC = "onlineMeetingProvider desc"
ONLINE_MEETING_URL = "onlineMeetingUrl"
ONLINE_MEETING_URL_DESC = "onlineMeetingUrl desc"
ORGANIZER = "organizer"
ORGANIZER_DESC = "organizer desc"
ORIGINAL_END_TIME_ZONE = "originalEndTimeZone"
ORIGINAL_END_TIME_ZONE_DESC = "originalEndTimeZone desc"
ORIGINAL_START = "originalStart"
ORIGINAL_START_DESC = "originalStart desc"
ORIGINAL_START_TIME_ZONE = "originalStartTimeZone"
ORIGINAL_START_TIME_ZONE_DESC = "originalStartTimeZone desc"
RECURRENCE = "recurrence"
RECURRENCE_DESC = "recurrence desc"
REMINDER_MINUTES_BEFORE_START = "reminderMinutesBeforeStart"
REMINDER_MINUTES_BEFORE_START_DESC = "reminderMinutesBeforeStart desc"
RESPONSE_REQUESTED = "responseRequested"
RESPONSE_REQUESTED_DESC = "responseRequested desc"
RESPONSE_STATUS = "responseStatus"
RESPONSE_STATUS_DESC = "responseStatus desc"
SENSITIVITY = "sensitivity"
SENSITIVITY_DESC = "sensitivity desc"
SERIES_MASTER_ID = "seriesMasterId"
SERIES_MASTER_ID_DESC = "seriesMasterId desc"
SHOW_AS = "showAs"
SHOW_AS_DESC = "showAs desc"
START = "start"
START_DESC = "start desc"
SUBJECT = "subject"
SUBJECT_DESC = "subject desc"
TRANSACTION_ID = "transactionId"
TRANSACTION_ID_DESC = "transactionId desc"
TYPE = "type"
TYPE_DESC = "type desc"
WEB_LINK = "webLink"
WEB_LINK_DESC = "webLink desc"
class Enum73(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
ID = "id"
CATEGORIES = "categories"
CHANGE_KEY = "changeKey"
CREATED_DATE_TIME = "createdDateTime"
LAST_MODIFIED_DATE_TIME = "lastModifiedDateTime"
ALLOW_NEW_TIME_PROPOSALS = "allowNewTimeProposals"
ATTENDEES = "attendees"
BODY = "body"
BODY_PREVIEW = "bodyPreview"
END = "end"
HAS_ATTACHMENTS = "hasAttachments"
I_CAL_U_ID = "iCalUId"
IMPORTANCE = "importance"
IS_ALL_DAY = "isAllDay"
IS_CANCELLED = "isCancelled"
IS_ONLINE_MEETING = "isOnlineMeeting"
IS_ORGANIZER = "isOrganizer"
IS_REMINDER_ON = "isReminderOn"
LOCATION = "location"
LOCATIONS = "locations"
ONLINE_MEETING = "onlineMeeting"
ONLINE_MEETING_PROVIDER = "onlineMeetingProvider"
ONLINE_MEETING_URL = "onlineMeetingUrl"
ORGANIZER = "organizer"
ORIGINAL_END_TIME_ZONE = "originalEndTimeZone"
ORIGINAL_START = "originalStart"
ORIGINAL_START_TIME_ZONE = "originalStartTimeZone"
RECURRENCE = "recurrence"
REMINDER_MINUTES_BEFORE_START = "reminderMinutesBeforeStart"
RESPONSE_REQUESTED = "responseRequested"
RESPONSE_STATUS = "responseStatus"
SENSITIVITY = "sensitivity"
SERIES_MASTER_ID = "seriesMasterId"
SHOW_AS = "showAs"
START = "start"
SUBJECT = "subject"
TRANSACTION_ID = "transactionId"
TYPE = "type"
WEB_LINK = "webLink"
ATTACHMENTS = "attachments"
CALENDAR = "calendar"
EXTENSIONS = "extensions"
INSTANCES = "instances"
MULTI_VALUE_EXTENDED_PROPERTIES = "multiValueExtendedProperties"
SINGLE_VALUE_EXTENDED_PROPERTIES = "singleValueExtendedProperties"
class Enum74(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
ASTERISK = "*"
ATTACHMENTS = "attachments"
CALENDAR = "calendar"
EXTENSIONS = "extensions"
INSTANCES = "instances"
MULTI_VALUE_EXTENDED_PROPERTIES = "multiValueExtendedProperties"
SINGLE_VALUE_EXTENDED_PROPERTIES = "singleValueExtendedProperties"
class Enum75(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
ID = "id"
CATEGORIES = "categories"
CHANGE_KEY = "changeKey"
CREATED_DATE_TIME = "createdDateTime"
LAST_MODIFIED_DATE_TIME = "lastModifiedDateTime"
ALLOW_NEW_TIME_PROPOSALS = "allowNewTimeProposals"
ATTENDEES = "attendees"
BODY = "body"
BODY_PREVIEW = "bodyPreview"
END = "end"
HAS_ATTACHMENTS = "hasAttachments"
I_CAL_U_ID = "iCalUId"
IMPORTANCE = "importance"
IS_ALL_DAY = "isAllDay"
IS_CANCELLED = "isCancelled"
IS_ONLINE_MEETING = "isOnlineMeeting"
IS_ORGANIZER = "isOrganizer"
IS_REMINDER_ON = "isReminderOn"
LOCATION = "location"
LOCATIONS = "locations"
ONLINE_MEETING = "onlineMeeting"
ONLINE_MEETING_PROVIDER = "onlineMeetingProvider"
ONLINE_MEETING_URL = "onlineMeetingUrl"
ORGANIZER = "organizer"
ORIGINAL_END_TIME_ZONE = "originalEndTimeZone"
ORIGINAL_START = "originalStart"
ORIGINAL_START_TIME_ZONE = "originalStartTimeZone"
RECURRENCE = "recurrence"
REMINDER_MINUTES_BEFORE_START = "reminderMinutesBeforeStart"
RESPONSE_REQUESTED = "responseRequested"
RESPONSE_STATUS = "responseStatus"
SENSITIVITY = "sensitivity"
SERIES_MASTER_ID = "seriesMasterId"
SHOW_AS = "showAs"
START = "start"
SUBJECT = "subject"
TRANSACTION_ID = "transactionId"
TYPE = "type"
WEB_LINK = "webLink"
ATTACHMENTS = "attachments"
CALENDAR = "calendar"
EXTENSIONS = "extensions"
INSTANCES = "instances"
MULTI_VALUE_EXTENDED_PROPERTIES = "multiValueExtendedProperties"
SINGLE_VALUE_EXTENDED_PROPERTIES = "singleValueExtendedProperties"
class Enum76(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
ASTERISK = "*"
ATTACHMENTS = "attachments"
CALENDAR = "calendar"
EXTENSIONS = "extensions"
INSTANCES = "instances"
MULTI_VALUE_EXTENDED_PROPERTIES = "multiValueExtendedProperties"
SINGLE_VALUE_EXTENDED_PROPERTIES = "singleValueExtendedProperties"
class Enum77(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
ID = "id"
ID_DESC = "id desc"
CONTENT_TYPE = "contentType"
CONTENT_TYPE_DESC = "contentType desc"
IS_INLINE = "isInline"
IS_INLINE_DESC = "isInline desc"
LAST_MODIFIED_DATE_TIME = "lastModifiedDateTime"
LAST_MODIFIED_DATE_TIME_DESC = "lastModifiedDateTime desc"
NAME = "name"
NAME_DESC = "name desc"
SIZE = "size"
SIZE_DESC = "size desc"
class Enum78(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
ID = "id"
CONTENT_TYPE = "contentType"
IS_INLINE = "isInline"
LAST_MODIFIED_DATE_TIME = "lastModifiedDateTime"
NAME = "name"
SIZE = "size"
class Enum79(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
ID = "id"
CONTENT_TYPE = "contentType"
IS_INLINE = "isInline"
LAST_MODIFIED_DATE_TIME = "lastModifiedDateTime"
NAME = "name"
SIZE = "size"
class Enum80(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
ID = "id"
ALLOWED_ONLINE_MEETING_PROVIDERS = "allowedOnlineMeetingProviders"
CAN_EDIT = "canEdit"
CAN_SHARE = "canShare"
CAN_VIEW_PRIVATE_ITEMS = "canViewPrivateItems"
CHANGE_KEY = "changeKey"
COLOR = "color"
DEFAULT_ONLINE_MEETING_PROVIDER = "defaultOnlineMeetingProvider"
IS_REMOVABLE = "isRemovable"
IS_TALLYING_RESPONSES = "isTallyingResponses"
NAME = "name"
OWNER = "owner"
CALENDAR_PERMISSIONS = "calendarPermissions"
CALENDAR_VIEW = "calendarView"
EVENTS = "events"
MULTI_VALUE_EXTENDED_PROPERTIES = "multiValueExtendedProperties"
SINGLE_VALUE_EXTENDED_PROPERTIES = "singleValueExtendedProperties"
class Enum81(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
ASTERISK = "*"
CALENDAR_PERMISSIONS = "calendarPermissions"
CALENDAR_VIEW = "calendarView"
EVENTS = "events"
MULTI_VALUE_EXTENDED_PROPERTIES = "multiValueExtendedProperties"
SINGLE_VALUE_EXTENDED_PROPERTIES = "singleValueExtendedProperties"
class Enum82(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
ID = "id"
ID_DESC = "id desc"
ALLOWED_ROLES = "allowedRoles"
ALLOWED_ROLES_DESC = "allowedRoles desc"
EMAIL_ADDRESS = "emailAddress"
EMAIL_ADDRESS_DESC = "emailAddress desc"
IS_INSIDE_ORGANIZATION = "isInsideOrganization"
IS_INSIDE_ORGANIZATION_DESC = "isInsideOrganization desc"
IS_REMOVABLE = "isRemovable"
IS_REMOVABLE_DESC = "isRemovable desc"
ROLE = "role"
ROLE_DESC = "role desc"
class Enum83(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
ID = "id"
ALLOWED_ROLES = "allowedRoles"
EMAIL_ADDRESS = "emailAddress"
IS_INSIDE_ORGANIZATION = "isInsideOrganization"
IS_REMOVABLE = "isRemovable"
ROLE = "role"
class Enum84(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
ID = "id"
ALLOWED_ROLES = "allowedRoles"
EMAIL_ADDRESS = "emailAddress"
IS_INSIDE_ORGANIZATION = "isInsideOrganization"
IS_REMOVABLE = "isRemovable"
ROLE = "role"
class Enum85(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
ID = "id"
ID_DESC = "id desc"
CATEGORIES = "categories"
CATEGORIES_DESC = "categories desc"
CHANGE_KEY = "changeKey"
CHANGE_KEY_DESC = "changeKey desc"
CREATED_DATE_TIME = "createdDateTime"
CREATED_DATE_TIME_DESC = "createdDateTime desc"
LAST_MODIFIED_DATE_TIME = "lastModifiedDateTime"
LAST_MODIFIED_DATE_TIME_DESC = "lastModifiedDateTime desc"
ALLOW_NEW_TIME_PROPOSALS = "allowNewTimeProposals"
ALLOW_NEW_TIME_PROPOSALS_DESC = "allowNewTimeProposals desc"
ATTENDEES = "attendees"
ATTENDEES_DESC = "attendees desc"
BODY = "body"
BODY_DESC = "body desc"
BODY_PREVIEW = "bodyPreview"
BODY_PREVIEW_DESC = "bodyPreview desc"
END = "end"
END_DESC = "end desc"
HAS_ATTACHMENTS = "hasAttachments"
HAS_ATTACHMENTS_DESC = "hasAttachments desc"
I_CAL_U_ID = "iCalUId"
I_CAL_U_ID_DESC = "iCalUId desc"
IMPORTANCE = "importance"
IMPORTANCE_DESC = "importance desc"
IS_ALL_DAY = "isAllDay"
IS_ALL_DAY_DESC = "isAllDay desc"
IS_CANCELLED = "isCancelled"
IS_CANCELLED_DESC = "isCancelled desc"
IS_ONLINE_MEETING = "isOnlineMeeting"
IS_ONLINE_MEETING_DESC = "isOnlineMeeting desc"
IS_ORGANIZER = "isOrganizer"
IS_ORGANIZER_DESC = "isOrganizer desc"
IS_REMINDER_ON = "isReminderOn"
IS_REMINDER_ON_DESC = "isReminderOn desc"
LOCATION = "location"
LOCATION_DESC = "location desc"
LOCATIONS = "locations"
LOCATIONS_DESC = "locations desc"
ONLINE_MEETING = "onlineMeeting"
ONLINE_MEETING_DESC = "onlineMeeting desc"
ONLINE_MEETING_PROVIDER = "onlineMeetingProvider"
ONLINE_MEETING_PROVIDER_DESC = "onlineMeetingProvider desc"
ONLINE_MEETING_URL = "onlineMeetingUrl"
ONLINE_MEETING_URL_DESC = "onlineMeetingUrl desc"
ORGANIZER = "organizer"
ORGANIZER_DESC = "organizer desc"
ORIGINAL_END_TIME_ZONE = "originalEndTimeZone"
ORIGINAL_END_TIME_ZONE_DESC = "originalEndTimeZone desc"
ORIGINAL_START = "originalStart"
ORIGINAL_START_DESC = "originalStart desc"
ORIGINAL_START_TIME_ZONE = "originalStartTimeZone"
ORIGINAL_START_TIME_ZONE_DESC = "originalStartTimeZone desc"
RECURRENCE = "recurrence"
RECURRENCE_DESC = "recurrence desc"
REMINDER_MINUTES_BEFORE_START = "reminderMinutesBeforeStart"
REMINDER_MINUTES_BEFORE_START_DESC = "reminderMinutesBeforeStart desc"
RESPONSE_REQUESTED = "responseRequested"
RESPONSE_REQUESTED_DESC = "responseRequested desc"
RESPONSE_STATUS = "responseStatus"
RESPONSE_STATUS_DESC = "responseStatus desc"
SENSITIVITY = "sensitivity"
SENSITIVITY_DESC = "sensitivity desc"
SERIES_MASTER_ID = "seriesMasterId"
SERIES_MASTER_ID_DESC = "seriesMasterId desc"
SHOW_AS = "showAs"
SHOW_AS_DESC = "showAs desc"
START = "start"
START_DESC = "start desc"
SUBJECT = "subject"
SUBJECT_DESC = "subject desc"
TRANSACTION_ID = "transactionId"
TRANSACTION_ID_DESC = "transactionId desc"
TYPE = "type"
TYPE_DESC = "type desc"
WEB_LINK = "webLink"
WEB_LINK_DESC = "webLink desc"
class Enum86(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
ID = "id"
CATEGORIES = "categories"
CHANGE_KEY = "changeKey"
CREATED_DATE_TIME = "createdDateTime"
LAST_MODIFIED_DATE_TIME = "lastModifiedDateTime"
ALLOW_NEW_TIME_PROPOSALS = "allowNewTimeProposals"
ATTENDEES = "attendees"
BODY = "body"
BODY_PREVIEW = "bodyPreview"
END = "end"
HAS_ATTACHMENTS = "hasAttachments"
I_CAL_U_ID = "iCalUId"
IMPORTANCE = "importance"
IS_ALL_DAY = "isAllDay"
IS_CANCELLED = "isCancelled"
IS_ONLINE_MEETING = "isOnlineMeeting"
IS_ORGANIZER = "isOrganizer"
IS_REMINDER_ON = "isReminderOn"
LOCATION = "location"
LOCATIONS = "locations"
ONLINE_MEETING = "onlineMeeting"
ONLINE_MEETING_PROVIDER = "onlineMeetingProvider"
ONLINE_MEETING_URL = "onlineMeetingUrl"
ORGANIZER = "organizer"
ORIGINAL_END_TIME_ZONE = "originalEndTimeZone"
ORIGINAL_START = "originalStart"
ORIGINAL_START_TIME_ZONE = "originalStartTimeZone"
RECURRENCE = "recurrence"
REMINDER_MINUTES_BEFORE_START = "reminderMinutesBeforeStart"
RESPONSE_REQUESTED = "responseRequested"
RESPONSE_STATUS = "responseStatus"
SENSITIVITY = "sensitivity"
SERIES_MASTER_ID = "seriesMasterId"
SHOW_AS = "showAs"
START = "start"
SUBJECT = "subject"
TRANSACTION_ID = "transactionId"
TYPE = "type"
WEB_LINK = "webLink"
ATTACHMENTS = "attachments"
CALENDAR = "calendar"
EXTENSIONS = "extensions"
INSTANCES = "instances"
MULTI_VALUE_EXTENDED_PROPERTIES = "multiValueExtendedProperties"
SINGLE_VALUE_EXTENDED_PROPERTIES = "singleValueExtendedProperties"
class Enum87(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
ASTERISK = "*"
ATTACHMENTS = "attachments"
CALENDAR = "calendar"
EXTENSIONS = "extensions"
INSTANCES = "instances"
MULTI_VALUE_EXTENDED_PROPERTIES = "multiValueExtendedProperties"
SINGLE_VALUE_EXTENDED_PROPERTIES = "singleValueExtendedProperties"
class Enum88(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
ID = "id"
CATEGORIES = "categories"
CHANGE_KEY = "changeKey"
CREATED_DATE_TIME = "createdDateTime"
LAST_MODIFIED_DATE_TIME = "lastModifiedDateTime"
ALLOW_NEW_TIME_PROPOSALS = "allowNewTimeProposals"
ATTENDEES = "attendees"
BODY = "body"
BODY_PREVIEW = "bodyPreview"
END = "end"
HAS_ATTACHMENTS = "hasAttachments"
I_CAL_U_ID = "iCalUId"
IMPORTANCE = "importance"
IS_ALL_DAY = "isAllDay"
IS_CANCELLED = "isCancelled"
IS_ONLINE_MEETING = "isOnlineMeeting"
IS_ORGANIZER = "isOrganizer"
IS_REMINDER_ON = "isReminderOn"
LOCATION = "location"
LOCATIONS = "locations"
ONLINE_MEETING = "onlineMeeting"
ONLINE_MEETING_PROVIDER = "onlineMeetingProvider"
ONLINE_MEETING_URL = "onlineMeetingUrl"
ORGANIZER = "organizer"
ORIGINAL_END_TIME_ZONE = "originalEndTimeZone"
ORIGINAL_START = "originalStart"
ORIGINAL_START_TIME_ZONE = "originalStartTimeZone"
RECURRENCE = "recurrence"
REMINDER_MINUTES_BEFORE_START = "reminderMinutesBeforeStart"
RESPONSE_REQUESTED = "responseRequested"
RESPONSE_STATUS = "responseStatus"
SENSITIVITY = "sensitivity"
SERIES_MASTER_ID = "seriesMasterId"
SHOW_AS = "showAs"
START = "start"
SUBJECT = "subject"
TRANSACTION_ID = "transactionId"
TYPE = "type"
WEB_LINK = "webLink"
ATTACHMENTS = "attachments"
CALENDAR = "calendar"
EXTENSIONS = "extensions"
INSTANCES = "instances"
MULTI_VALUE_EXTENDED_PROPERTIES = "multiValueExtendedProperties"
SINGLE_VALUE_EXTENDED_PROPERTIES = "singleValueExtendedProperties"
class Enum89(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
ASTERISK = "*"
ATTACHMENTS = "attachments"
CALENDAR = "calendar"
EXTENSIONS = "extensions"
INSTANCES = "instances"
MULTI_VALUE_EXTENDED_PROPERTIES = "multiValueExtendedProperties"
SINGLE_VALUE_EXTENDED_PROPERTIES = "singleValueExtendedProperties"
class Enum90(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
ID = "id"
ID_DESC = "id desc"
CATEGORIES = "categories"
CATEGORIES_DESC = "categories desc"
CHANGE_KEY = "changeKey"
CHANGE_KEY_DESC = "changeKey desc"
CREATED_DATE_TIME = "createdDateTime"
CREATED_DATE_TIME_DESC = "createdDateTime desc"
LAST_MODIFIED_DATE_TIME = "lastModifiedDateTime"
LAST_MODIFIED_DATE_TIME_DESC = "lastModifiedDateTime desc"
ALLOW_NEW_TIME_PROPOSALS = "allowNewTimeProposals"
ALLOW_NEW_TIME_PROPOSALS_DESC = "allowNewTimeProposals desc"
ATTENDEES = "attendees"
ATTENDEES_DESC = "attendees desc"
BODY = "body"
BODY_DESC = "body desc"
BODY_PREVIEW = "bodyPreview"
BODY_PREVIEW_DESC = "bodyPreview desc"
END = "end"
END_DESC = "end desc"
HAS_ATTACHMENTS = "hasAttachments"
HAS_ATTACHMENTS_DESC = "hasAttachments desc"
I_CAL_U_ID = "iCalUId"
I_CAL_U_ID_DESC = "iCalUId desc"
IMPORTANCE = "importance"
IMPORTANCE_DESC = "importance desc"
IS_ALL_DAY = "isAllDay"
IS_ALL_DAY_DESC = "isAllDay desc"
IS_CANCELLED = "isCancelled"
IS_CANCELLED_DESC = "isCancelled desc"
IS_ONLINE_MEETING = "isOnlineMeeting"
IS_ONLINE_MEETING_DESC = "isOnlineMeeting desc"
IS_ORGANIZER = "isOrganizer"
IS_ORGANIZER_DESC = "isOrganizer desc"
IS_REMINDER_ON = "isReminderOn"
IS_REMINDER_ON_DESC = "isReminderOn desc"
LOCATION = "location"
LOCATION_DESC = "location desc"
LOCATIONS = "locations"
LOCATIONS_DESC = "locations desc"
ONLINE_MEETING = "onlineMeeting"
ONLINE_MEETING_DESC = "onlineMeeting desc"
ONLINE_MEETING_PROVIDER = "onlineMeetingProvider"
ONLINE_MEETING_PROVIDER_DESC = "onlineMeetingProvider desc"
ONLINE_MEETING_URL = "onlineMeetingUrl"
ONLINE_MEETING_URL_DESC = "onlineMeetingUrl desc"
ORGANIZER = "organizer"
ORGANIZER_DESC = "organizer desc"
ORIGINAL_END_TIME_ZONE = "originalEndTimeZone"
ORIGINAL_END_TIME_ZONE_DESC = "originalEndTimeZone desc"
ORIGINAL_START = "originalStart"
ORIGINAL_START_DESC = "originalStart desc"
ORIGINAL_START_TIME_ZONE = "originalStartTimeZone"
ORIGINAL_START_TIME_ZONE_DESC = "originalStartTimeZone desc"
RECURRENCE = "recurrence"
RECURRENCE_DESC = "recurrence desc"
REMINDER_MINUTES_BEFORE_START = "reminderMinutesBeforeStart"
REMINDER_MINUTES_BEFORE_START_DESC = "reminderMinutesBeforeStart desc"
RESPONSE_REQUESTED = "responseRequested"
RESPONSE_REQUESTED_DESC = "responseRequested desc"
RESPONSE_STATUS = "responseStatus"
RESPONSE_STATUS_DESC = "responseStatus desc"
SENSITIVITY = "sensitivity"
SENSITIVITY_DESC = "sensitivity desc"
SERIES_MASTER_ID = "seriesMasterId"
SERIES_MASTER_ID_DESC = "seriesMasterId desc"
SHOW_AS = "showAs"
SHOW_AS_DESC = "showAs desc"
START = "start"
START_DESC = "start desc"
SUBJECT = "subject"
SUBJECT_DESC = "subject desc"
TRANSACTION_ID = "transactionId"
TRANSACTION_ID_DESC = "transactionId desc"
TYPE = "type"
TYPE_DESC = "type desc"
WEB_LINK = "webLink"
WEB_LINK_DESC = "webLink desc"
class Enum91(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
ID = "id"
CATEGORIES = "categories"
CHANGE_KEY = "changeKey"
CREATED_DATE_TIME = "createdDateTime"
LAST_MODIFIED_DATE_TIME = "lastModifiedDateTime"
ALLOW_NEW_TIME_PROPOSALS = "allowNewTimeProposals"
ATTENDEES = "attendees"
BODY = "body"
BODY_PREVIEW = "bodyPreview"
END = "end"
HAS_ATTACHMENTS = "hasAttachments"
I_CAL_U_ID = "iCalUId"
IMPORTANCE = "importance"
IS_ALL_DAY = "isAllDay"
IS_CANCELLED = "isCancelled"
IS_ONLINE_MEETING = "isOnlineMeeting"
IS_ORGANIZER = "isOrganizer"
IS_REMINDER_ON = "isReminderOn"
LOCATION = "location"
LOCATIONS = "locations"
ONLINE_MEETING = "onlineMeeting"
ONLINE_MEETING_PROVIDER = "onlineMeetingProvider"
ONLINE_MEETING_URL = "onlineMeetingUrl"
ORGANIZER = "organizer"
ORIGINAL_END_TIME_ZONE = "originalEndTimeZone"
ORIGINAL_START = "originalStart"
ORIGINAL_START_TIME_ZONE = "originalStartTimeZone"
RECURRENCE = "recurrence"
REMINDER_MINUTES_BEFORE_START = "reminderMinutesBeforeStart"
RESPONSE_REQUESTED = "responseRequested"
RESPONSE_STATUS = "responseStatus"
SENSITIVITY = "sensitivity"
SERIES_MASTER_ID = "seriesMasterId"
SHOW_AS = "showAs"
START = "start"
SUBJECT = "subject"
TRANSACTION_ID = "transactionId"
TYPE = "type"
WEB_LINK = "webLink"
ATTACHMENTS = "attachments"
CALENDAR = "calendar"
EXTENSIONS = "extensions"
INSTANCES = "instances"
MULTI_VALUE_EXTENDED_PROPERTIES = "multiValueExtendedProperties"
SINGLE_VALUE_EXTENDED_PROPERTIES = "singleValueExtendedProperties"
class Enum92(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
ASTERISK = "*"
ATTACHMENTS = "attachments"
CALENDAR = "calendar"
EXTENSIONS = "extensions"
INSTANCES = "instances"
MULTI_VALUE_EXTENDED_PROPERTIES = "multiValueExtendedProperties"
SINGLE_VALUE_EXTENDED_PROPERTIES = "singleValueExtendedProperties"
class Enum93(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
ID = "id"
CATEGORIES = "categories"
CHANGE_KEY = "changeKey"
CREATED_DATE_TIME = "createdDateTime"
LAST_MODIFIED_DATE_TIME = "lastModifiedDateTime"
ALLOW_NEW_TIME_PROPOSALS = "allowNewTimeProposals"
ATTENDEES = "attendees"
BODY = "body"
BODY_PREVIEW = "bodyPreview"
END = "end"
HAS_ATTACHMENTS = "hasAttachments"
I_CAL_U_ID = "iCalUId"
IMPORTANCE = "importance"
IS_ALL_DAY = "isAllDay"
IS_CANCELLED = "isCancelled"
IS_ONLINE_MEETING = "isOnlineMeeting"
IS_ORGANIZER = "isOrganizer"
IS_REMINDER_ON = "isReminderOn"
LOCATION = "location"
LOCATIONS = "locations"
ONLINE_MEETING = "onlineMeeting"
ONLINE_MEETING_PROVIDER = "onlineMeetingProvider"
ONLINE_MEETING_URL = "onlineMeetingUrl"
ORGANIZER = "organizer"
ORIGINAL_END_TIME_ZONE = "originalEndTimeZone"
ORIGINAL_START = "originalStart"
ORIGINAL_START_TIME_ZONE = "originalStartTimeZone"
RECURRENCE = "recurrence"
REMINDER_MINUTES_BEFORE_START = "reminderMinutesBeforeStart"
RESPONSE_REQUESTED = "responseRequested"
RESPONSE_STATUS = "responseStatus"
SENSITIVITY = "sensitivity"
SERIES_MASTER_ID = "seriesMasterId"
SHOW_AS = "showAs"
START = "start"
SUBJECT = "subject"
TRANSACTION_ID = "transactionId"
TYPE = "type"
WEB_LINK = "webLink"
ATTACHMENTS = "attachments"
CALENDAR = "calendar"
EXTENSIONS = "extensions"
INSTANCES = "instances"
MULTI_VALUE_EXTENDED_PROPERTIES = "multiValueExtendedProperties"
SINGLE_VALUE_EXTENDED_PROPERTIES = "singleValueExtendedProperties"
class Enum94(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
ASTERISK = "*"
ATTACHMENTS = "attachments"
CALENDAR = "calendar"
EXTENSIONS = "extensions"
INSTANCES = "instances"
MULTI_VALUE_EXTENDED_PROPERTIES = "multiValueExtendedProperties"
SINGLE_VALUE_EXTENDED_PROPERTIES = "singleValueExtendedProperties"
class Enum95(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
ID = "id"
ID_DESC = "id desc"
VALUE = "value"
VALUE_DESC = "value desc"
class Enum96(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
ID = "id"
VALUE = "value"
class Enum97(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
ID = "id"
VALUE = "value"
class Enum98(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
ID = "id"
ID_DESC = "id desc"
VALUE = "value"
VALUE_DESC = "value desc"
class Enum99(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
ID = "id"
VALUE = "value"
class Get10ItemsItem(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
ASTERISK = "*"
ATTACHMENTS = "attachments"
CALENDAR = "calendar"
EXTENSIONS = "extensions"
INSTANCES = "instances"
MULTI_VALUE_EXTENDED_PROPERTIES = "multiValueExtendedProperties"
SINGLE_VALUE_EXTENDED_PROPERTIES = "singleValueExtendedProperties"
class Get1ItemsItem(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
ID = "id"
ALLOWED_ONLINE_MEETING_PROVIDERS = "allowedOnlineMeetingProviders"
CAN_EDIT = "canEdit"
CAN_SHARE = "canShare"
CAN_VIEW_PRIVATE_ITEMS = "canViewPrivateItems"
CHANGE_KEY = "changeKey"
COLOR = "color"
DEFAULT_ONLINE_MEETING_PROVIDER = "defaultOnlineMeetingProvider"
IS_REMOVABLE = "isRemovable"
IS_TALLYING_RESPONSES = "isTallyingResponses"
NAME = "name"
OWNER = "owner"
CALENDAR_PERMISSIONS = "calendarPermissions"
CALENDAR_VIEW = "calendarView"
EVENTS = "events"
MULTI_VALUE_EXTENDED_PROPERTIES = "multiValueExtendedProperties"
SINGLE_VALUE_EXTENDED_PROPERTIES = "singleValueExtendedProperties"
class Get2ItemsItem(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
ASTERISK = "*"
CALENDAR_PERMISSIONS = "calendarPermissions"
CALENDAR_VIEW = "calendarView"
EVENTS = "events"
MULTI_VALUE_EXTENDED_PROPERTIES = "multiValueExtendedProperties"
SINGLE_VALUE_EXTENDED_PROPERTIES = "singleValueExtendedProperties"
class Get4ItemsItem(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
ID = "id"
CATEGORIES = "categories"
CHANGE_KEY = "changeKey"
CREATED_DATE_TIME = "createdDateTime"
LAST_MODIFIED_DATE_TIME = "lastModifiedDateTime"
ALLOW_NEW_TIME_PROPOSALS = "allowNewTimeProposals"
ATTENDEES = "attendees"
BODY = "body"
BODY_PREVIEW = "bodyPreview"
END = "end"
HAS_ATTACHMENTS = "hasAttachments"
I_CAL_U_ID = "iCalUId"
IMPORTANCE = "importance"
IS_ALL_DAY = "isAllDay"
IS_CANCELLED = "isCancelled"
IS_ONLINE_MEETING = "isOnlineMeeting"
IS_ORGANIZER = "isOrganizer"
IS_REMINDER_ON = "isReminderOn"
LOCATION = "location"
LOCATIONS = "locations"
ONLINE_MEETING = "onlineMeeting"
ONLINE_MEETING_PROVIDER = "onlineMeetingProvider"
ONLINE_MEETING_URL = "onlineMeetingUrl"
ORGANIZER = "organizer"
ORIGINAL_END_TIME_ZONE = "originalEndTimeZone"
ORIGINAL_START = "originalStart"
ORIGINAL_START_TIME_ZONE = "originalStartTimeZone"
RECURRENCE = "recurrence"
REMINDER_MINUTES_BEFORE_START = "reminderMinutesBeforeStart"
RESPONSE_REQUESTED = "responseRequested"
RESPONSE_STATUS = "responseStatus"
SENSITIVITY = "sensitivity"
SERIES_MASTER_ID = "seriesMasterId"
SHOW_AS = "showAs"
START = "start"
SUBJECT = "subject"
TRANSACTION_ID = "transactionId"
TYPE = "type"
WEB_LINK = "webLink"
ATTACHMENTS = "attachments"
CALENDAR = "calendar"
EXTENSIONS = "extensions"
INSTANCES = "instances"
MULTI_VALUE_EXTENDED_PROPERTIES = "multiValueExtendedProperties"
SINGLE_VALUE_EXTENDED_PROPERTIES = "singleValueExtendedProperties"
class Get5ItemsItem(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
ASTERISK = "*"
ATTACHMENTS = "attachments"
CALENDAR = "calendar"
EXTENSIONS = "extensions"
INSTANCES = "instances"
MULTI_VALUE_EXTENDED_PROPERTIES = "multiValueExtendedProperties"
SINGLE_VALUE_EXTENDED_PROPERTIES = "singleValueExtendedProperties"
class Get6ItemsItem(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
ID = "id"
ID_DESC = "id desc"
ALLOWED_ROLES = "allowedRoles"
ALLOWED_ROLES_DESC = "allowedRoles desc"
EMAIL_ADDRESS = "emailAddress"
EMAIL_ADDRESS_DESC = "emailAddress desc"
IS_INSIDE_ORGANIZATION = "isInsideOrganization"
IS_INSIDE_ORGANIZATION_DESC = "isInsideOrganization desc"
IS_REMOVABLE = "isRemovable"
IS_REMOVABLE_DESC = "isRemovable desc"
ROLE = "role"
ROLE_DESC = "role desc"
class Get7ItemsItem(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
ID = "id"
ALLOWED_ROLES = "allowedRoles"
EMAIL_ADDRESS = "emailAddress"
IS_INSIDE_ORGANIZATION = "isInsideOrganization"
IS_REMOVABLE = "isRemovable"
ROLE = "role"
class Get9ItemsItem(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
ID = "id"
CATEGORIES = "categories"
CHANGE_KEY = "changeKey"
CREATED_DATE_TIME = "createdDateTime"
LAST_MODIFIED_DATE_TIME = "lastModifiedDateTime"
ALLOW_NEW_TIME_PROPOSALS = "allowNewTimeProposals"
ATTENDEES = "attendees"
BODY = "body"
BODY_PREVIEW = "bodyPreview"
END = "end"
HAS_ATTACHMENTS = "hasAttachments"
I_CAL_U_ID = "iCalUId"
IMPORTANCE = "importance"
IS_ALL_DAY = "isAllDay"
IS_CANCELLED = "isCancelled"
IS_ONLINE_MEETING = "isOnlineMeeting"
IS_ORGANIZER = "isOrganizer"
IS_REMINDER_ON = "isReminderOn"
LOCATION = "location"
LOCATIONS = "locations"
ONLINE_MEETING = "onlineMeeting"
ONLINE_MEETING_PROVIDER = "onlineMeetingProvider"
ONLINE_MEETING_URL = "onlineMeetingUrl"
ORGANIZER = "organizer"
ORIGINAL_END_TIME_ZONE = "originalEndTimeZone"
ORIGINAL_START = "originalStart"
ORIGINAL_START_TIME_ZONE = "originalStartTimeZone"
RECURRENCE = "recurrence"
REMINDER_MINUTES_BEFORE_START = "reminderMinutesBeforeStart"
RESPONSE_REQUESTED = "responseRequested"
RESPONSE_STATUS = "responseStatus"
SENSITIVITY = "sensitivity"
SERIES_MASTER_ID = "seriesMasterId"
SHOW_AS = "showAs"
START = "start"
SUBJECT = "subject"
TRANSACTION_ID = "transactionId"
TYPE = "type"
WEB_LINK = "webLink"
ATTACHMENTS = "attachments"
CALENDAR = "calendar"
EXTENSIONS = "extensions"
INSTANCES = "instances"
MULTI_VALUE_EXTENDED_PROPERTIES = "multiValueExtendedProperties"
SINGLE_VALUE_EXTENDED_PROPERTIES = "singleValueExtendedProperties"
class MicrosoftGraphAttendeeType(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
REQUIRED = "required"
OPTIONAL = "optional"
RESOURCE = "resource"
class MicrosoftGraphBodyType(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
TEXT = "text"
HTML = "html"
class MicrosoftGraphCalendarColor(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
LIGHT_BLUE = "lightBlue"
LIGHT_GREEN = "lightGreen"
AUTO = "auto"
LIGHT_ORANGE = "lightOrange"
LIGHT_GRAY = "lightGray"
LIGHT_YELLOW = "lightYellow"
LIGHT_TEAL = "lightTeal"
LIGHT_PINK = "lightPink"
LIGHT_BROWN = "lightBrown"
LIGHT_RED = "lightRed"
MAX_COLOR = "maxColor"
class MicrosoftGraphCalendarRoleType(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
NONE = "none"
FREE_BUSY_READ = "freeBusyRead"
LIMITED_READ = "limitedRead"
READ = "read"
WRITE = "write"
DELEGATE_WITHOUT_PRIVATE_EVENT_ACCESS = "delegateWithoutPrivateEventAccess"
DELEGATE_WITH_PRIVATE_EVENT_ACCESS = "delegateWithPrivateEventAccess"
CUSTOM = "custom"
class MicrosoftGraphDayOfWeek(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
SUNDAY = "sunday"
MONDAY = "monday"
TUESDAY = "tuesday"
WEDNESDAY = "wednesday"
THURSDAY = "thursday"
FRIDAY = "friday"
SATURDAY = "saturday"
class MicrosoftGraphEventType(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
SINGLE_INSTANCE = "singleInstance"
OCCURRENCE = "occurrence"
EXCEPTION = "exception"
SERIES_MASTER = "seriesMaster"
class MicrosoftGraphFreeBusyStatus(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
FREE = "free"
TENTATIVE = "tentative"
UNKNOWN = "unknown"
BUSY = "busy"
OOF = "oof"
WORKING_ELSEWHERE = "workingElsewhere"
class MicrosoftGraphImportance(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
LOW = "low"
NORMAL = "normal"
HIGH = "high"
class MicrosoftGraphLocationType(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
DEFAULT = "default"
CONFERENCE_ROOM = "conferenceRoom"
HOME_ADDRESS = "homeAddress"
BUSINESS_ADDRESS = "businessAddress"
GEO_COORDINATES = "geoCoordinates"
STREET_ADDRESS = "streetAddress"
HOTEL = "hotel"
RESTAURANT = "restaurant"
LOCAL_BUSINESS = "localBusiness"
POSTAL_ADDRESS = "postalAddress"
class MicrosoftGraphLocationUniqueIdType(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
UNKNOWN = "unknown"
LOCATION_STORE = "locationStore"
DIRECTORY = "directory"
PRIVATE = "private"
BING = "bing"
class MicrosoftGraphOnlineMeetingProviderType(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
UNKNOWN = "unknown"
SKYPE_FOR_BUSINESS = "skypeForBusiness"
SKYPE_FOR_CONSUMER = "skypeForConsumer"
TEAMS_FOR_BUSINESS = "teamsForBusiness"
class MicrosoftGraphPhoneType(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
HOME = "home"
BUSINESS = "business"
MOBILE = "mobile"
OTHER = "other"
ASSISTANT = "assistant"
HOME_FAX = "homeFax"
BUSINESS_FAX = "businessFax"
OTHER_FAX = "otherFax"
PAGER = "pager"
RADIO = "radio"
class MicrosoftGraphRecurrencePatternType(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
DAILY = "daily"
WEEKLY = "weekly"
ABSOLUTE_MONTHLY = "absoluteMonthly"
RELATIVE_MONTHLY = "relativeMonthly"
ABSOLUTE_YEARLY = "absoluteYearly"
RELATIVE_YEARLY = "relativeYearly"
class MicrosoftGraphRecurrenceRangeType(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
END_DATE = "endDate"
NO_END = "noEnd"
NUMBERED = "numbered"
class MicrosoftGraphResponseType(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
NONE = "none"
ORGANIZER = "organizer"
TENTATIVELY_ACCEPTED = "tentativelyAccepted"
ACCEPTED = "accepted"
DECLINED = "declined"
NOT_RESPONDED = "notResponded"
class MicrosoftGraphSensitivity(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
NORMAL = "normal"
PERSONAL = "personal"
PRIVATE = "private"
CONFIDENTIAL = "confidential"
class MicrosoftGraphWeekIndex(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
FIRST = "first"
SECOND = "second"
THIRD = "third"
FOURTH = "fourth"
LAST = "last"
| 34.429711
| 99
| 0.727661
| 27,915
| 293,410
| 7.296006
| 0.027226
| 0.035489
| 0.073355
| 0.079468
| 0.971036
| 0.968292
| 0.968292
| 0.967094
| 0.967094
| 0.966151
| 0
| 0.004634
| 0.187301
| 293,410
| 8,521
| 100
| 34.433752
| 0.849485
| 0.002454
| 0
| 0.93276
| 0
| 0
| 0.311543
| 0.075373
| 0
| 0
| 0
| 0
| 0
| 1
| 0.000261
| false
| 0
| 0.017071
| 0.00013
| 1.016419
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
|
0
| 8
|
29420f3c2b9719ec7838b5cf5f3d2863a8e28c30
| 13,435
|
py
|
Python
|
lib/medloaders/__init__.py
|
McMasterAI/RadiologyandAI-MedicalZooPytorch
|
606a1654f08b8bae7c265608694d55fecc1001ed
|
[
"MIT"
] | null | null | null |
lib/medloaders/__init__.py
|
McMasterAI/RadiologyandAI-MedicalZooPytorch
|
606a1654f08b8bae7c265608694d55fecc1001ed
|
[
"MIT"
] | null | null | null |
lib/medloaders/__init__.py
|
McMasterAI/RadiologyandAI-MedicalZooPytorch
|
606a1654f08b8bae7c265608694d55fecc1001ed
|
[
"MIT"
] | null | null | null |
from torch.utils.data import DataLoader
from .COVIDxdataset import COVIDxDataset
from .Covid_Segmentation_dataset import COVID_Seg_Dataset
from .brats2018 import MICCAIBraTS2018
from .brats2019 import MICCAIBraTS2019
from .brats2020 import MICCAIBraTS2020
from .covid_ct_dataset import CovidCTDataset
from .iseg2017 import MRIDatasetISEG2017
from .iseg2019 import MRIDatasetISEG2019
from .ixi_t1_t2 import IXIMRIdataset
from .miccai_2019_pathology import MICCAI2019_gleason_pathology
from .mrbrains2018 import MRIDatasetMRBRAINS2018
from .test_dataset import TestDataset
def generate_datasets(args, path='.././datasets'):
params = {'batch_size': args.batchSz,
'shuffle': True,
'num_workers': 2}
samples_train = args.samples_train
samples_val = args.samples_val
split_percent = args.split
if args.dataset_name == "test_dataset":
split = (0.8, 0.2)
total_data = #
split_idx = int(split[0] * total_data)
train_loader = TestDataset(args, 'train', dataset_path=path, classes=args.classes, crop_dim=args.dim,
split_idx=split_idx, samples=samples_train, load=args.loadData)
val_loader = TestDataset(args, 'val', dataset_path=path, classes=args.classes, crop_dim=args.dim,
split_idx=split_idx,
samples=samples_val, load=args.loadData)
elif args.dataset_name == "iseg2017":
total_data = 10
split_idx = int(split_percent * total_data)
train_loader = MRIDatasetISEG2017(args, 'train', dataset_path=path, crop_dim=args.dim,
split_id=split_idx, samples=samples_train, load=args.loadData)
val_loader = MRIDatasetISEG2017(args, 'val', dataset_path=path, crop_dim=args.dim, split_id=split_idx,
samples=samples_val, load=args.loadData)
elif args.dataset_name == "iseg2019":
total_data = 10
split_idx = int(split_percent * total_data)
train_loader = MRIDatasetISEG2019(args, 'train', dataset_path=path, crop_dim=args.dim,
split_id=split_idx, samples=samples_train, load=args.loadData)
val_loader = MRIDatasetISEG2019(args, 'val', dataset_path=path, crop_dim=args.dim, split_id=split_idx,
samples=samples_val, load=args.loadData)
elif args.dataset_name == "mrbrains4":
train_loader = MRIDatasetMRBRAINS2018(args, 'train', dataset_path=path, classes=args.classes, dim=args.dim,
split_id=0, samples=samples_train, load=args.loadData)
val_loader = MRIDatasetMRBRAINS2018(args, 'val', dataset_path=path, classes=args.classes, dim=args.dim,
split_id=0,
samples=samples_val, load=args.loadData)
elif args.dataset_name == "mrbrains9":
train_loader = MRIDatasetMRBRAINS2018(args, 'train', dataset_path=path, classes=args.classes, dim=args.dim,
split_id=0, samples=samples_train, load=args.loadData)
val_loader = MRIDatasetMRBRAINS2018(args, 'val', dataset_path=path, classes=args.classes,
dim=args.dim,
split_id=0,
samples=samples_val, load=args.loadData)
elif args.dataset_name == "miccai2019":
total_data = 244
split_idx = int(split_percent * total_data) - 1
val_loader = MICCAI2019_gleason_pathology(args, 'val', dataset_path=path, split_idx=split_idx,
crop_dim=args.dim,
classes=args.classes, samples=samples_val,
save=True)
print('Generating train set...')
train_loader = MICCAI2019_gleason_pathology(args, 'train', dataset_path=path, split_idx=split_idx,
crop_dim=args.dim,
classes=args.classes, samples=samples_train,
save=True)
elif args.dataset_name == "ixi":
loader = IXIMRIdataset(args, dataset_path=path, voxels_space=args.dim, modalities=args.inModalities, save=True)
generator = DataLoader(loader, **params)
return generator, loader.affine
elif args.dataset_name == "brats2018":
total_data = 244
split_idx = int(split_percent * total_data)
train_loader = MICCAIBraTS2018(args, 'train', dataset_path=path, classes=args.classes, crop_dim=args.dim,
split_idx=split_idx, samples=samples_train, load=args.loadData)
val_loader = MICCAIBraTS2018(args, 'val', dataset_path=path, classes=args.classes, crop_dim=args.dim,
split_idx=split_idx,
samples=samples_val, load=args.loadData)
elif args.dataset_name == "brats2019":
split = (0.8, 0.2)
total_data = 335
split_idx = int(split[0] * total_data)
train_loader = MICCAIBraTS2019(args, 'train', dataset_path=path, classes=args.classes, crop_dim=args.dim,
split_idx=split_idx, samples=samples_train, load=args.loadData)
val_loader = MICCAIBraTS2019(args, 'val', dataset_path=path, classes=args.classes, crop_dim=args.dim,
split_idx=split_idx,
samples=samples_val, load=args.loadData)
elif args.dataset_name == "brats2020":
split = (0.8, 0.2)
total_data = 335
split_idx = int(split[0] * total_data)
train_loader = MICCAIBraTS2020(args, 'train', dataset_path=path, classes=args.classes, crop_dim=args.dim,
split_idx=split_idx, samples=samples_train, load=args.loadData)
val_loader = MICCAIBraTS2020(args, 'val', dataset_path=path, classes=args.classes, crop_dim=args.dim,
split_idx=split_idx,
samples=samples_val, load=args.loadData)
elif args.dataset_name == 'COVID_CT':
train_loader = CovidCTDataset('train', root_dir='.././datasets/covid_ct_dataset/',
txt_COVID='.././datasets/covid_ct_dataset/trainCT_COVID.txt',
txt_NonCOVID='.././datasets/covid_ct_dataset/trainCT_NonCOVID.txt')
val_loader = CovidCTDataset('val', root_dir='.././datasets/covid_ct_dataset',
txt_COVID='.././datasets/covid_ct_dataset/valCT_COVID.txt',
txt_NonCOVID='.././datasets/covid_ct_dataset/valCT_NonCOVID.txt')
elif args.dataset_name == 'COVIDx':
train_loader = COVIDxDataset(mode='train', n_classes=args.classes, dataset_path=path,
dim=(224, 224))
val_loader = COVIDxDataset(mode='val', n_classes=args.classes, dataset_path=path,
dim=(224, 224))
elif args.dataset_name == 'covid_seg':
train_loader = COVID_Seg_Dataset(mode='train', dataset_path=path, crop_dim=args.dim,
fold=0, samples=samples_train)
val_loader = COVID_Seg_Dataset(mode='val', dataset_path=path, crop_dim=args.dim,
fold=0, samples=samples_val)
training_generator = DataLoader(train_loader, **params)
val_generator = DataLoader(val_loader, **params)
print("DATA SAMPLES HAVE BEEN GENERATED SUCCESSFULLY")
return training_generator, val_generator, val_loader.full_volume, val_loader.affine
def select_full_volume_for_infer(args, path='.././datasets'):
params = {'batch_size': args.batchSz,
'shuffle': True,
'num_workers': 2}
samples_train = args.samples_train
samples_val = args.samples_val
split_percent = args.split
if args.dataset_name == "iseg2017":
total_data = 10
split_idx = int(split_percent * total_data)
loader = MRIDatasetISEG2017('viz', dataset_path=path, crop_dim=args.dim,
split_id=split_idx, samples=samples_train)
elif args.dataset_name == "iseg2019":
total_data = 10
split_idx = int(split_percent * total_data)
train_loader = MRIDatasetISEG2019('train', dataset_path=path, crop_dim=args.dim,
split_id=split_idx, samples=samples_train)
val_loader = MRIDatasetISEG2019('val', dataset_path=path, crop_dim=args.dim, split_id=split_idx,
samples=samples_val)
elif args.dataset_name == "mrbrains4":
train_loader = MRIDatasetMRBRAINS2018('train', dataset_path=path, classes=args.classes, dim=args.dim,
split_id=0, samples=samples_train)
val_loader = MRIDatasetMRBRAINS2018('val', dataset_path=path, classes=args.classes, dim=args.dim,
split_id=0,
samples=samples_val)
elif args.dataset_name == "mrbrains9":
train_loader = MRIDatasetMRBRAINS2018('train', dataset_path=path, classes=args.classes, dim=args.dim,
split_id=0, samples=samples_train)
val_loader = MRIDatasetMRBRAINS2018('val', dataset_path=path, classes=args.classes,
dim=args.dim,
split_id=0,
samples=samples_val)
elif args.dataset_name == "miccai2019":
total_data = 244
split_idx = int(split_percent * total_data) - 1
val_loader = MICCAI2019_gleason_pathology('val', dataset_path=path, split_idx=split_idx, crop_dim=args.dim,
classes=args.classes, samples=samples_val,
save=True)
print('Generating train set...')
train_loader = MICCAI2019_gleason_pathology('train', dataset_path=path, split_idx=split_idx, crop_dim=args.dim,
classes=args.classes, samples=samples_train,
save=True)
elif args.dataset_name == "ixi":
loader = IXIMRIdataset(dataset_path=path, voxels_space=args.dim, modalities=args.inModalities, save=True)
generator = DataLoader(loader, **params)
return generator, loader.affine
elif args.dataset_name == "brats2018":
total_data = 244
split_idx = int(split_percent * total_data)
train_loader = MICCAIBraTS2018('train', dataset_path=path, classes=args.classes, crop_dim=args.dim,
split_idx=split_idx, samples=samples_train)
val_loader = MICCAIBraTS2018('val', dataset_path=path, classes=args.classes, crop_dim=args.dim,
split_idx=split_idx,
samples=samples_val)
elif args.dataset_name == "brats2019":
split = (0.8, 0.2)
total_data = 335
split_idx = int(split[0] * total_data)
train_loader = MICCAIBraTS2018('train', dataset_path=path, classes=args.classes, crop_dim=args.dim,
split_idx=split_idx, samples=samples_train)
val_loader = MICCAIBraTS2018('val', dataset_path=path, classes=args.classes, crop_dim=args.dim,
split_idx=split_idx,
samples=samples_val)
elif args.dataset_name == 'COVID_CT':
train_loader = CovidCTDataset('train', root_dir='.././datasets/covid_ct_dataset/',
txt_COVID='.././datasets/covid_ct_dataset/trainCT_COVID.txt',
txt_NonCOVID='.././datasets/covid_ct_dataset/trainCT_NonCOVID.txt')
val_loader = CovidCTDataset('val', root_dir='.././datasets/covid_ct_dataset',
txt_COVID='.././datasets/covid_ct_dataset/valCT_COVID.txt',
txt_NonCOVID='.././datasets/covid_ct_dataset/valCT_NonCOVID.txt')
elif args.dataset_name == 'COVIDx':
train_loader = COVIDxDataset(mode='train', n_classes=args.classes, dataset_path=path,
dim=(224, 224))
val_loader = COVIDxDataset(mode='val', n_classes=args.classes, dataset_path=path,
dim=(224, 224))
elif args.dataset_name == 'covid_seg':
train_loader = COVID_Seg_Dataset(mode='train', dataset_path=path, crop_dim=args.dim,
fold=0, samples=samples_train)
val_loader = COVID_Seg_Dataset(mode='val', dataset_path=path, crop_dim=args.dim,
fold=0, samples=samples_val)
print("DATA SAMPLES HAVE BEEN GENERATED SUCCESSFULLY")
return loader.full_volume, loader.affine
| 55.516529
| 119
| 0.586007
| 1,436
| 13,435
| 5.217967
| 0.075905
| 0.054451
| 0.082077
| 0.050447
| 0.875884
| 0.874817
| 0.874817
| 0.871213
| 0.852796
| 0.845322
| 0
| 0.034037
| 0.319911
| 13,435
| 241
| 120
| 55.746888
| 0.786035
| 0
| 0
| 0.756219
| 0
| 0
| 0.081584
| 0.037963
| 0
| 0
| 0
| 0
| 0
| 0
| null | null | 0
| 0.064677
| null | null | 0.019901
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 8
|
295619a186adbd0b9f74260805b2b2f615ad09f9
| 32,253
|
py
|
Python
|
tests/test_param_spatial.py
|
SuhasShanbhogue/bekk
|
772603b6360d377469b0babfe497b034fa28fcb8
|
[
"MIT"
] | 7
|
2018-10-07T00:37:59.000Z
|
2022-03-07T12:39:46.000Z
|
tests/test_param_spatial.py
|
Cliffcomplier/bekk
|
772603b6360d377469b0babfe497b034fa28fcb8
|
[
"MIT"
] | null | null | null |
tests/test_param_spatial.py
|
Cliffcomplier/bekk
|
772603b6360d377469b0babfe497b034fa28fcb8
|
[
"MIT"
] | 7
|
2018-03-10T06:03:26.000Z
|
2020-11-18T10:50:59.000Z
|
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""Testing suite for ParamSpatial.
"""
from __future__ import print_function, division
import unittest as ut
import numpy as np
import numpy.testing as npt
import scipy.linalg as scl
from bekk import ParamSpatial
class ParamSpatialSpatialTestCase(ut.TestCase):
"""Test spatial parameter class."""
def test_get_weight(self):
"""Test construction of spatial weights from groups.
"""
groups = [[(0, 1), (2, 3)]]
weight = ParamSpatial.get_weight(groups=groups)
weight_exp = np.zeros((1, 4, 4))
weight_exp[0, 0, 1] = 1
weight_exp[0, 1, 0] = 1
weight_exp[0, 2, 3] = 1
weight_exp[0, 3, 2] = 1
npt.assert_almost_equal(weight, weight_exp)
groups = [[(0, 1, 2)]]
weight = ParamSpatial.get_weight(groups=groups)
weight_exp = np.array([[[0, .5, .5], [.5, 0, .5], [.5, .5, 0]]])
npt.assert_almost_equal(weight, weight_exp)
groups = [[(0, 1), (2, 3)], [(0, 2), (1, 3)]]
weight = ParamSpatial.get_weight(groups=groups)
weight_exp = np.zeros((len(groups), 4, 4))
weight_exp[0, :2, :2] = np.array([[0, 1], [1, 0]])
weight_exp[0, 2:, 2:] = np.array([[0, 1], [1, 0]])
weight_exp[1, 0:3:2, 0:3:2] = np.array([[0, 1], [1, 0]])
weight_exp[1, 1:4:2, 1:4:2] = np.array([[0, 1], [1, 0]])
npt.assert_almost_equal(weight, weight_exp)
groups = [[(0, 1), (2, 3, 4)]]
weight = ParamSpatial.get_weight(groups=groups)
weight_exp = np.zeros((len(groups), 5, 5))
weight_exp[0, :2, :2] = np.array([[0, 1], [1, 0]])
weight_exp[0, 2:, 2:] = np.array([[[0, .5, .5], [.5, 0, .5],
[.5, .5, 0]]])
npt.assert_almost_equal(weight, weight_exp)
def test_init_empty(self):
"""Test spatial specification."""
nstocks = 3
param = ParamSpatial(nstocks=nstocks)
self.assertEqual(param.amat.shape, (nstocks, nstocks))
self.assertEqual(param.bmat.shape, (nstocks, nstocks))
self.assertEqual(param.cmat.shape, (nstocks, nstocks))
self.assertEqual(param.avecs.shape, (2, nstocks))
self.assertEqual(param.bvecs.shape, (2, nstocks))
self.assertEqual(param.dvecs.shape, (2, nstocks))
self.assertEqual(param.weights.shape, (1, nstocks, nstocks))
def test_from_abdv(self):
"""Test spatial specification."""
nstocks = 4
groups = [[(0, 1), (2, 3)]]
weights = ParamSpatial.get_weight(groups)
ncat = 1
alpha, beta, gamma = .01, .16, .09
# A, B, C - n x n matrices
avecs = np.ones((ncat+1, nstocks)) * alpha**.5
bvecs = np.ones((ncat+1, nstocks)) * beta**.5
dvecs = np.vstack([np.ones((1, nstocks)),
np.ones((ncat, nstocks)) * gamma**.5])
param = ParamSpatial.from_abdv(avecs=avecs, bvecs=bvecs,
dvecs=dvecs, groups=groups)
amat = np.diag(avecs[0]) + np.diag(avecs[0]).dot(weights[0])
bmat = np.diag(bvecs[0]) + np.diag(bvecs[0]).dot(weights[0])
dmat = np.eye(nstocks) - np.diag(dvecs[1]).dot(weights[0])
dmat_inv = scl.inv(dmat)
ccmat = dmat_inv.dot(np.diag(dvecs[0])).dot(dmat_inv)
cmat = scl.cholesky(ccmat, 1)
npt.assert_array_equal(amat, param.amat)
npt.assert_array_equal(bmat, param.bmat)
npt.assert_array_equal(cmat, param.cmat)
npt.assert_array_equal(avecs, param.avecs)
npt.assert_array_equal(bvecs, param.bvecs)
npt.assert_array_equal(dvecs, param.dvecs)
npt.assert_array_equal(weights, param.weights)
mats = ParamSpatial.from_vecs_to_mat(avecs=avecs, bvecs=bvecs,
dvecs=dvecs, weights=weights)
amat_new, bmat_new, dmat_new = mats
npt.assert_array_equal(amat, amat_new)
npt.assert_array_equal(bmat, bmat_new)
npt.assert_array_equal(dmat, dmat_new)
def test_from_abcmat(self):
"""Test spatial specification."""
nstocks = 4
groups = [[(0, 1), (2, 3)]]
weights = ParamSpatial.get_weight(groups)
ncat = 1
alpha, beta, gamma = .01, .16, .09
# A, B, C - n x n matrices
avecs = np.ones((ncat+1, nstocks)) * alpha**.5
bvecs = np.ones((ncat+1, nstocks)) * beta**.5
dvecs = np.vstack([np.ones((1, nstocks)),
np.ones((ncat, nstocks)) * gamma**.5])
amat = np.diag(avecs[0]) + np.diag(avecs[0]).dot(weights[0])
bmat = np.diag(bvecs[0]) + np.diag(bvecs[0]).dot(weights[0])
dmat = np.eye(nstocks) - np.diag(dvecs[1]).dot(weights[0])
dmat_inv = scl.inv(dmat)
cmat = dmat_inv.dot(np.diag(dvecs[0])).dot(dmat_inv)
param = ParamSpatial.from_abcmat(avecs=avecs, bvecs=bvecs, cmat=cmat,
groups=groups)
npt.assert_array_equal(amat, param.amat)
npt.assert_array_equal(bmat, param.bmat)
npt.assert_array_equal(cmat, param.cmat)
npt.assert_array_equal(avecs, param.avecs)
npt.assert_array_equal(bvecs, param.bvecs)
npt.assert_array_equal(None, param.dvecs)
npt.assert_array_equal(weights, param.weights)
def test_from_abt(self):
"""Test spatial specification."""
nstocks = 4
groups = [[(0, 1), (2, 3)]]
weights = ParamSpatial.get_weight(groups)
ncat = 1
alpha, beta, gamma = .01, .16, .09
# A, B, C - n x n matrices
avecs = np.ones((ncat+1, nstocks)) * alpha**.5
bvecs = np.ones((ncat+1, nstocks)) * beta**.5
dvecs = np.vstack([np.ones((1, nstocks)),
np.ones((ncat, nstocks)) * gamma**.5])
amat = np.diag(avecs[0]) + np.diag(avecs[0]).dot(weights[0])
bmat = np.diag(bvecs[0]) + np.diag(bvecs[0]).dot(weights[0])
dmat = np.eye(nstocks) - np.diag(dvecs[1]).dot(weights[0])
dmat_inv = scl.inv(dmat)
ccmat = dmat_inv.dot(np.diag(dvecs[0])).dot(dmat_inv)
cmat = scl.cholesky(ccmat, 1)
target = ParamSpatial.find_stationary_var(amat=amat, bmat=bmat,
cmat=cmat)
cmat_new = ParamSpatial.find_cmat(amat=amat, bmat=bmat, target=target)
npt.assert_array_almost_equal(cmat[np.tril_indices(nstocks)],
cmat_new[np.tril_indices(nstocks)])
param = ParamSpatial.from_abt(avecs=avecs, bvecs=bvecs, target=target,
groups=groups, restriction='hetero')
npt.assert_array_equal(amat, param.amat)
npt.assert_array_equal(bmat, param.bmat)
npt.assert_array_almost_equal(cmat, param.cmat)
npt.assert_array_equal(avecs, param.avecs)
npt.assert_array_equal(bvecs, param.bvecs)
# npt.assert_array_equal(None, param.dvecs)
npt.assert_array_equal(weights, param.weights)
def test_get_theta_from_ab(self):
"""Test theta vector for spatial specification."""
nstocks = 4
groups = [[(0, 1), (2, 3)]]
ncat = 1
alpha, beta, gamma = .01, .16, .09
# A, B, C - n x n matrices
avecs = np.ones((ncat+1, nstocks)) * alpha**.5
bvecs = np.ones((ncat+1, nstocks)) * beta**.5
dvecs = np.vstack([np.ones((1, nstocks)),
np.ones((ncat, nstocks)) * gamma**.5])
param = ParamSpatial.from_abdv(avecs=avecs, bvecs=bvecs, dvecs=dvecs,
groups=groups)
restriction = 'hetero'
theta = np.concatenate([avecs.flatten(), bvecs.flatten()])
theta_exp = param.get_theta_from_ab(restriction=restriction)
npt.assert_array_equal(theta, theta_exp)
restriction = 'ghomo'
theta = np.concatenate([avecs[0], avecs[1:, :2].flatten(),
bvecs[0], bvecs[1:, :2].flatten()])
theta_exp = param.get_theta_from_ab(restriction=restriction)
npt.assert_array_equal(theta, theta_exp)
restriction = 'homo'
theta = np.concatenate([avecs[0], avecs[1:, 0],
bvecs[0], bvecs[1:, 0]])
theta_exp = param.get_theta_from_ab(restriction=restriction)
npt.assert_array_equal(theta, theta_exp)
restriction = 'shomo'
theta = np.concatenate([avecs[:, 0], bvecs[:, 0]])
theta_exp = param.get_theta_from_ab(restriction=restriction)
npt.assert_array_equal(theta, theta_exp)
def test_get_theta_hetero(self):
"""Test theta vector for spatial specification."""
nstocks = 4
groups = [[(0, 1), (2, 3)]]
ncat = 1
alpha, beta, gamma = .01, .16, .09
# A, B, C - n x n matrices
avecs = np.ones((ncat+1, nstocks)) * alpha**.5
bvecs = np.ones((ncat+1, nstocks)) * beta**.5
dvecs = np.vstack([np.ones((1, nstocks)),
np.ones((ncat, nstocks)) * gamma**.5])
param = ParamSpatial.from_abdv(avecs=avecs, bvecs=bvecs, dvecs=dvecs,
groups=groups)
restriction = 'hetero'
use_target = True
theta = np.concatenate([avecs.flatten(), bvecs.flatten()])
nparams = 2 * nstocks * (1 + ncat)
theta_exp = param.get_theta(restriction=restriction,
use_target=use_target)
self.assertEqual(nparams, theta_exp.size)
self.assertEqual(nparams, theta.size)
npt.assert_array_equal(theta, theta_exp)
use_target = False
theta = [avecs.flatten(), bvecs.flatten(), dvecs.flatten()]
theta = np.concatenate(theta)
nparams = 3 * nstocks * (1 + ncat)
theta_exp = param.get_theta(restriction=restriction,
use_target=use_target)
self.assertEqual(nparams, theta_exp.size)
self.assertEqual(nparams, theta.size)
npt.assert_array_equal(theta, theta_exp)
cfree = True
theta = [avecs.flatten(), bvecs.flatten(),
param.cmat[np.tril_indices(param.cmat.shape[0])]]
theta = np.concatenate(theta)
nparams = 2 * nstocks * (1 + ncat) + nstocks * (nstocks + 1) // 2
theta_exp = param.get_theta(restriction=restriction, cfree=cfree)
self.assertEqual(nparams, theta_exp.size)
self.assertEqual(nparams, theta.size)
npt.assert_array_equal(theta, theta_exp)
def test_get_theta_ghomo(self):
"""Test theta vector for spatial specification."""
nstocks = 4
groups = [[(0, 1), (2, 3)]]
ncat = len(groups)
alpha = [.01, .02, .03]
beta = [.04, .05, .06]
delta = [.07, .08]
# A, B, C - n x n matrices
avecs = np.ones((ncat+1, nstocks))
bvecs = np.ones((ncat+1, nstocks))
dvecs = np.ones((ncat+1, nstocks))
avecs[0, :] *= alpha[0]
avecs[1, :2] *= alpha[1]
avecs[1, 2:] *= alpha[2]
bvecs[0, :] *= beta[0]
bvecs[1, :2] *= beta[1]
bvecs[1, 2:] *= beta[2]
dvecs[1, :2] *= delta[0]
dvecs[1, 2:] *= delta[1]
param = ParamSpatial.from_abdv(avecs=avecs, bvecs=bvecs, dvecs=dvecs,
groups=groups)
restriction = 'ghomo'
use_target = True
theta = [avecs[0], [avecs[1, 0]], [avecs[1, 2]],
bvecs[0], [bvecs[1, 0]], [bvecs[1, 2]]]
theta = np.concatenate(theta)
nparams = 2 * (nstocks + 2 * ncat)
theta_exp = param.get_theta(restriction=restriction,
use_target=use_target)
self.assertEqual(nparams, theta_exp.size)
self.assertEqual(nparams, theta.size)
npt.assert_array_equal(theta, theta_exp)
use_target = False
theta = [avecs[0], [avecs[1, 0]], [avecs[1, 2]],
bvecs[0], [bvecs[1, 0]], [bvecs[1, 2]],
dvecs[0], [dvecs[1, 0]], [dvecs[1, 2]]]
theta = np.concatenate(theta)
nparams = 3 * (nstocks + 2 * ncat)
theta_exp = param.get_theta(restriction=restriction,
use_target=use_target)
self.assertEqual(nparams, theta_exp.size)
self.assertEqual(nparams, theta.size)
npt.assert_array_equal(theta, theta_exp)
cfree = True
theta = [avecs[0], [avecs[1, 0]], [avecs[1, 2]],
bvecs[0], [bvecs[1, 0]], [bvecs[1, 2]],
param.cmat[np.tril_indices(param.cmat.shape[0])]]
theta = np.concatenate(theta)
nparams = 2 * (nstocks + 2 * ncat) + nstocks * (nstocks + 1) // 2
theta_exp = param.get_theta(restriction=restriction, cfree=cfree)
self.assertEqual(nparams, theta_exp.size)
self.assertEqual(nparams, theta.size)
npt.assert_array_equal(theta, theta_exp)
def test_get_theta_homo(self):
"""Test theta vector for spatial specification."""
nstocks = 4
groups = [[(0, 1), (2, 3)]]
ncat = 1
alpha, beta, gamma = .01, .16, .09
# A, B, C - n x n matrices
avecs = np.ones((ncat+1, nstocks)) * alpha**.5
bvecs = np.ones((ncat+1, nstocks)) * beta**.5
dvecs = np.vstack([np.ones((1, nstocks)),
np.ones((ncat, nstocks)) * gamma**.5])
param = ParamSpatial.from_abdv(avecs=avecs, bvecs=bvecs, dvecs=dvecs,
groups=groups)
restriction = 'homo'
use_target = True
theta = [avecs[0], avecs[1:, 0], bvecs[0], bvecs[1:, 0]]
theta = np.concatenate(theta)
nparams = 2 * (nstocks + ncat)
theta_exp = param.get_theta(restriction=restriction,
use_target=use_target)
self.assertEqual(nparams, theta_exp.size)
self.assertEqual(nparams, theta.size)
npt.assert_array_equal(theta, theta_exp)
use_target = False
theta = [avecs[0], avecs[1:, 0], bvecs[0], bvecs[1:, 0],
dvecs[0], dvecs[1:, 0]]
theta = np.concatenate(theta)
nparams = 3 * (nstocks + ncat)
theta_exp = param.get_theta(restriction=restriction,
use_target=use_target)
self.assertEqual(nparams, theta_exp.size)
self.assertEqual(nparams, theta.size)
npt.assert_array_equal(theta, theta_exp)
cfree = True
theta = [avecs[0], avecs[1:, 0], bvecs[0], bvecs[1:, 0],
param.cmat[np.tril_indices(param.cmat.shape[0])]]
theta = np.concatenate(theta)
nparams = 2 * (nstocks + ncat) + nstocks * (nstocks + 1) // 2
theta_exp = param.get_theta(restriction=restriction, cfree=cfree)
self.assertEqual(nparams, theta_exp.size)
self.assertEqual(nparams, theta.size)
npt.assert_array_equal(theta, theta_exp)
def test_get_theta_shomo(self):
"""Test theta vector for spatial specification."""
nstocks = 4
groups = [[(0, 1), (2, 3)]]
ncat = 1
alpha, beta, gamma = .01, .16, .09
# A, B, C - n x n matrices
avecs = np.ones((ncat+1, nstocks)) * alpha**.5
bvecs = np.ones((ncat+1, nstocks)) * beta**.5
dvecs = np.vstack([np.ones((1, nstocks)),
np.ones((ncat, nstocks)) * gamma**.5])
param = ParamSpatial.from_abdv(avecs=avecs, bvecs=bvecs, dvecs=dvecs,
groups=groups)
restriction = 'shomo'
use_target = True
theta = [avecs[:, 0], bvecs[:, 0]]
theta = np.concatenate(theta)
nparams = 2 * (1 + ncat)
theta_exp = param.get_theta(restriction=restriction,
use_target=use_target)
self.assertEqual(nparams, theta_exp.size)
self.assertEqual(nparams, theta.size)
npt.assert_array_equal(theta, theta_exp)
use_target = False
theta = [avecs[:, 0], bvecs[:, 0], dvecs[0], dvecs[1:, 0]]
theta = np.concatenate(theta)
nparams = nstocks + 3 * ncat + 2
theta_exp = param.get_theta(restriction=restriction,
use_target=use_target)
self.assertEqual(nparams, theta_exp.size)
self.assertEqual(nparams, theta.size)
npt.assert_array_equal(theta, theta_exp)
cfree = True
theta = [avecs[:, 0], bvecs[:, 0],
param.cmat[np.tril_indices(param.cmat.shape[0])]]
theta = np.concatenate(theta)
nparams = 2 * (1 + ncat) + nstocks * (nstocks + 1) // 2
theta_exp = param.get_theta(restriction=restriction, cfree=cfree)
self.assertEqual(nparams, theta_exp.size)
self.assertEqual(nparams, theta.size)
npt.assert_array_equal(theta, theta_exp)
def test_from_theta_hetero(self):
"""Test init from theta for spatial specification."""
nstocks = 4
groups = [[(0, 1), (2, 3)]]
ncat = len(groups)
alpha, beta, gamma = .01, .16, .09
# A, B, C - n x n matrices
avecs = np.ones((ncat+1, nstocks)) * alpha**.5
bvecs = np.ones((ncat+1, nstocks)) * beta**.5
dvecs = np.vstack([np.ones((1, nstocks)),
np.ones((ncat, nstocks)) * gamma**.5])
param = ParamSpatial.from_abdv(avecs=avecs, bvecs=bvecs, dvecs=dvecs,
groups=groups)
restriction = 'hetero'
target = None
theta = [avecs.flatten(), bvecs.flatten(), dvecs.flatten()]
theta = np.concatenate(theta)
param_new = ParamSpatial.from_theta(theta=theta, groups=groups,
restriction=restriction,
target=target)
npt.assert_array_equal(param.amat, param_new.amat)
npt.assert_array_equal(param.bmat, param_new.bmat)
npt.assert_array_equal(param.cmat, param_new.cmat)
npt.assert_array_equal(param.avecs, param_new.avecs)
npt.assert_array_equal(param.bvecs, param_new.bvecs)
npt.assert_array_equal(param.dvecs, param_new.dvecs)
target = param.get_uvar()
theta = [avecs.flatten(), bvecs.flatten()]
theta = np.concatenate(theta)
cmat = param.find_cmat(amat=param.amat, bmat=param.bmat, target=target)
param_new = ParamSpatial.from_theta(theta=theta, groups=groups,
restriction=restriction,
target=target)
npt.assert_array_equal(param.amat, param_new.amat)
npt.assert_array_equal(param.bmat, param_new.bmat)
npt.assert_array_equal(cmat, param_new.cmat)
npt.assert_array_equal(param.avecs, param_new.avecs)
npt.assert_array_equal(param.bvecs, param_new.bvecs)
# npt.assert_array_equal(None, param_new.dvecs)
target = None
theta = [avecs.flatten(), bvecs.flatten(), dvecs.flatten()]
theta = np.concatenate(theta)
param_new = ParamSpatial.from_theta(theta=theta, groups=groups,
restriction=restriction,
target=target)
npt.assert_array_equal(param.amat, param_new.amat)
npt.assert_array_equal(param.bmat, param_new.bmat)
npt.assert_array_equal(param.cmat, param_new.cmat)
npt.assert_array_equal(param.avecs, param_new.avecs)
npt.assert_array_equal(param.bvecs, param_new.bvecs)
npt.assert_array_equal(param.dvecs, param_new.dvecs)
target = param.get_uvar()
theta = [avecs.flatten(), bvecs.flatten()]
theta = np.concatenate(theta)
cmat = param.find_cmat(amat=param.amat, bmat=param.bmat, target=target)
param_new = ParamSpatial.from_theta(theta=theta, groups=groups,
restriction=restriction,
target=target)
npt.assert_array_equal(param.amat, param_new.amat)
npt.assert_array_equal(param.bmat, param_new.bmat)
npt.assert_array_equal(cmat, param_new.cmat)
npt.assert_array_equal(param.avecs, param_new.avecs)
npt.assert_array_equal(param.bvecs, param_new.bvecs)
# npt.assert_array_equal(None, param_new.dvecs)
cfree = True
theta = [avecs.flatten(), bvecs.flatten(),
param.cmat[np.tril_indices(nstocks)]]
theta = np.concatenate(theta)
param_new = ParamSpatial.from_theta(theta=theta, groups=groups,
restriction=restriction,
cfree=cfree)
npt.assert_array_equal(param.amat, param_new.amat)
npt.assert_array_equal(param.bmat, param_new.bmat)
npt.assert_array_equal(np.tril(param.cmat), param_new.cmat)
npt.assert_array_equal(param.avecs, param_new.avecs)
npt.assert_array_equal(param.bvecs, param_new.bvecs)
npt.assert_array_equal(None, param_new.dvecs)
cfree = True
theta = [avecs.flatten(), bvecs.flatten(),
param.cmat[np.tril_indices(nstocks)]]
theta = np.concatenate(theta)
param_new = ParamSpatial.from_theta(theta=theta, groups=groups,
restriction=restriction,
cfree=cfree)
npt.assert_array_equal(param.amat, param_new.amat)
npt.assert_array_equal(param.bmat, param_new.bmat)
npt.assert_array_equal(np.tril(param.cmat), param_new.cmat)
npt.assert_array_equal(param.avecs, param_new.avecs)
npt.assert_array_equal(param.bvecs, param_new.bvecs)
npt.assert_array_equal(None, param_new.dvecs)
def test_from_theta_ghomo(self):
"""Test group init from theta for spatial specification."""
nstocks = 4
groups = [[(0, 1), (2, 3)]]
ncat = len(groups)
alpha = [.01, .02, .03, .04, .05, .06]
beta = [.07, .08, .09, .1, .11, .12]
delta = [.13, .14, .15, .16, .17, .18]
# A, B, C - n x n matrices
avecs = np.ones((ncat+1, nstocks))
bvecs = np.ones((ncat+1, nstocks))
dvecs = np.ones((ncat+1, nstocks))
avecs[0] = alpha[:4]
avecs[1, :2] *= alpha[-2]
avecs[1, 2:] *= alpha[-1]
bvecs[0] = beta[:4]
bvecs[1, :2] *= beta[-2]
bvecs[1, 2:] *= beta[-1]
dvecs[0] = delta[:4]
dvecs[1, :2] *= delta[-2]
dvecs[1, 2:] *= delta[-1]
param = ParamSpatial.from_abdv(avecs=avecs, bvecs=bvecs, dvecs=dvecs,
groups=groups)
restriction = 'ghomo'
target = param.get_uvar()
theta = np.concatenate([alpha, beta])
cmat = param.find_cmat(amat=param.amat, bmat=param.bmat, target=target)
uvar = param.find_stationary_var(amat=param.amat, bmat=param.bmat,
cmat=cmat)
npt.assert_array_almost_equal(target, uvar)
param_new = ParamSpatial.from_theta(theta=theta, groups=groups,
restriction=restriction,
target=target)
npt.assert_array_equal(param.avecs, param_new.avecs)
npt.assert_array_equal(param.bvecs, param_new.bvecs)
# npt.assert_array_equal(None, param_new.dvecs)
npt.assert_array_equal(param.amat, param_new.amat)
npt.assert_array_equal(param.bmat, param_new.bmat)
npt.assert_array_equal(cmat, param_new.cmat)
npt.assert_array_almost_equal(cmat, param.cmat)
def test_from_theta_ghomo_special(self):
"""Test group init from theta for spatial specification."""
nstocks = 4
groups = [[(0, 1, 2, 3)]]
ncat = len(groups)
alpha = [.01, .02, .03, .04, .05]
beta = [.07, .08, .09, .1, .11]
delta = [.13, .14, .15, .16, .17]
# A, B, C - n x n matrices
avecs = np.ones((ncat+1, nstocks))
bvecs = np.ones((ncat+1, nstocks))
dvecs = np.ones((ncat+1, nstocks))
avecs[0] = alpha[:4]
avecs[1] *= alpha[-1]
bvecs[0] = beta[:4]
bvecs[1] *= beta[-1]
dvecs[0] = delta[:4]
dvecs[1] *= delta[-1]
param = ParamSpatial.from_abdv(avecs=avecs, bvecs=bvecs, dvecs=dvecs,
groups=groups)
target = param.get_uvar()
theta = np.concatenate([alpha, beta])
cmat = param.find_cmat(amat=param.amat, bmat=param.bmat, target=target)
uvar = param.find_stationary_var(amat=param.amat, bmat=param.bmat,
cmat=cmat)
npt.assert_array_almost_equal(target, uvar)
restriction = 'homo'
param_homo = ParamSpatial.from_theta(theta=theta, groups=groups,
restriction=restriction,
target=target)
theta_homo = param_homo.get_theta(restriction=restriction,
use_target=False)
restriction = 'ghomo'
param_ghomo = ParamSpatial.from_theta(theta=theta, groups=groups,
restriction=restriction,
target=target)
theta_ghomo = param_ghomo.get_theta(restriction=restriction,
use_target=False)
npt.assert_array_almost_equal(cmat, param.cmat)
npt.assert_array_almost_equal(theta_ghomo, theta_homo, decimal=3)
for param_check in [param_homo, param_ghomo]:
npt.assert_array_equal(param.avecs, param_check.avecs)
npt.assert_array_equal(param.bvecs, param_check.bvecs)
npt.assert_array_equal(param.amat, param_check.amat)
npt.assert_array_equal(param.bmat, param_check.bmat)
npt.assert_array_equal(cmat, param_check.cmat)
def test_from_theta_homo(self):
"""Test group init from theta for spatial specification."""
nstocks = 4
groups = [[(0, 1), (2, 3)]]
ncat = len(groups)
alpha = [.01, .02, .03, .04, .05]
beta = [.07, .08, .09, .1, .11]
delta = [.13, .14, .15, .16, .17]
# A, B, C - n x n matrices
avecs = np.ones((ncat+1, nstocks))
bvecs = np.ones((ncat+1, nstocks))
dvecs = np.ones((ncat+1, nstocks))
avecs[0] = alpha[:4]
avecs[1] *= alpha[-1]
bvecs[0] = beta[:4]
bvecs[1] *= beta[-1]
dvecs[0] = delta[:4]
dvecs[1] *= delta[-1]
param = ParamSpatial.from_abdv(avecs=avecs, bvecs=bvecs, dvecs=dvecs,
groups=groups)
restriction = 'homo'
target = param.get_uvar()
theta = np.concatenate([alpha, beta])
cmat = param.find_cmat(amat=param.amat, bmat=param.bmat, target=target)
uvar = param.find_stationary_var(amat=param.amat, bmat=param.bmat,
cmat=cmat)
npt.assert_array_almost_equal(target, uvar)
param_new = ParamSpatial.from_theta(theta=theta, groups=groups,
restriction=restriction,
target=target)
npt.assert_array_equal(param.avecs, param_new.avecs)
npt.assert_array_equal(param.bvecs, param_new.bvecs)
# npt.assert_array_equal(None, param_new.dvecs)
npt.assert_array_equal(param.amat, param_new.amat)
npt.assert_array_equal(param.bmat, param_new.bmat)
npt.assert_array_equal(cmat, param_new.cmat)
npt.assert_array_almost_equal(cmat, param.cmat)
def test_from_theta_shomo(self):
"""Test init from theta for spatial specification."""
nstocks = 4
groups = [[(0, 1), (2, 3)]]
ncat = len(groups)
alpha, beta, gamma = .01, .16, .09
# A, B, C - n x n matrices
avecs = np.ones((ncat+1, nstocks)) * alpha**.5
bvecs = np.ones((ncat+1, nstocks)) * beta**.5
dvecs = np.vstack([np.ones((1, nstocks)),
np.ones((ncat, nstocks)) * gamma**.5])
param = ParamSpatial.from_abdv(avecs=avecs, bvecs=bvecs, dvecs=dvecs,
groups=groups)
restriction = 'shomo'
target = None
theta = [avecs[:, 0], bvecs[:, 0], dvecs[0], dvecs[1:, 0]]
theta = np.concatenate(theta)
param_new = ParamSpatial.from_theta(theta=theta, groups=groups,
restriction=restriction,
target=target)
npt.assert_array_equal(param.amat, param_new.amat)
npt.assert_array_equal(param.bmat, param_new.bmat)
npt.assert_array_equal(param.cmat, param_new.cmat)
npt.assert_array_equal(param.avecs, param_new.avecs)
npt.assert_array_equal(param.bvecs, param_new.bvecs)
npt.assert_array_equal(param.dvecs, param_new.dvecs)
target = param.get_uvar()
theta = [avecs[:, 0], bvecs[:, 0]]
theta = np.concatenate(theta)
cmat = param.find_cmat(amat=param.amat, bmat=param.bmat, target=target)
param_new = ParamSpatial.from_theta(theta=theta, groups=groups,
restriction=restriction,
target=target)
npt.assert_array_equal(param.amat, param_new.amat)
npt.assert_array_equal(param.bmat, param_new.bmat)
npt.assert_array_equal(cmat, param_new.cmat)
npt.assert_array_equal(param.avecs, param_new.avecs)
npt.assert_array_equal(param.bvecs, param_new.bvecs)
# npt.assert_array_equal(None, param_new.dvecs)
cfree = True
theta = [avecs[:, 0], bvecs[:, 0],
param.cmat[np.tril_indices(nstocks)]]
theta = np.concatenate(theta)
param_new = ParamSpatial.from_theta(theta=theta, groups=groups,
restriction=restriction,
cfree=cfree)
npt.assert_array_equal(param.amat, param_new.amat)
npt.assert_array_equal(param.bmat, param_new.bmat)
npt.assert_array_equal(np.tril(param.cmat), param_new.cmat)
npt.assert_array_equal(param.avecs, param_new.avecs)
npt.assert_array_equal(param.bvecs, param_new.bvecs)
npt.assert_array_equal(None, param_new.dvecs)
def test_targeting(self):
"""Test targeting."""
nstocks = 4
groups = [[(0, 1), (2, 3)]]
ncat = len(groups)
alpha = [.01, .02, .03, .04, .05, .06]
beta = [.07, .08, .09, .1, .11, .12]
delta = [.13, .14, .15, .16, .17, .18]
# A, B, C - n x n matrices
avecs = np.ones((ncat+1, nstocks))
bvecs = np.ones((ncat+1, nstocks))
dvecs = np.ones((ncat+1, nstocks))
avecs[0] = alpha[:4]
avecs[1, :2] *= alpha[-2]
avecs[1, 2:] *= alpha[-1]
bvecs[0] = beta[:4]
bvecs[1, :2] *= beta[-2]
bvecs[1, 2:] *= beta[-1]
dvecs[0] = delta[:4]
dvecs[1, :2] *= delta[-2]
dvecs[1, 2:] *= delta[-1]
param = ParamSpatial.from_abdv(avecs=avecs, bvecs=bvecs, dvecs=dvecs,
groups=groups)
restriction = 'homo'
target = param.get_uvar()
param = ParamSpatial.from_abt(avecs=avecs, bvecs=bvecs, groups=groups,
target=target, restriction=restriction,
solve_dvecs=True)
param = ParamSpatial.from_abdv(avecs=avecs, bvecs=bvecs,
dvecs=param.dvecs,
groups=groups)
# print('\n', target)
# print('\n', param.get_uvar())
if __name__ == '__main__':
ut.main()
| 40.930203
| 79
| 0.558615
| 3,967
| 32,253
| 4.388707
| 0.036804
| 0.063584
| 0.095692
| 0.120046
| 0.92355
| 0.903676
| 0.886215
| 0.86525
| 0.855773
| 0.839862
| 0
| 0.031456
| 0.308064
| 32,253
| 787
| 80
| 40.982211
| 0.748667
| 0.0466
| 0
| 0.810855
| 0
| 0
| 0.00284
| 0
| 0
| 0
| 0
| 0
| 0.243421
| 1
| 0.026316
| false
| 0
| 0.009868
| 0
| 0.037829
| 0.001645
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
296941539030b970f0dd674b70bc5e16c85c5e46
| 57,046
|
py
|
Python
|
src/tests/test_pagure_flask_ui_priorities.py
|
yifengyou/learn-pagure
|
e54ba955368918c92ad2be6347b53bb2c24a228c
|
[
"Unlicense"
] | null | null | null |
src/tests/test_pagure_flask_ui_priorities.py
|
yifengyou/learn-pagure
|
e54ba955368918c92ad2be6347b53bb2c24a228c
|
[
"Unlicense"
] | null | null | null |
src/tests/test_pagure_flask_ui_priorities.py
|
yifengyou/learn-pagure
|
e54ba955368918c92ad2be6347b53bb2c24a228c
|
[
"Unlicense"
] | null | null | null |
# -*- coding: utf-8 -*-
"""
(c) 2016-2018 - Copyright Red Hat Inc
Authors:
Pierre-Yves Chibon <pingou@pingoured.fr>
"""
from __future__ import unicode_literals, absolute_import
import datetime
import json
import unittest
import shutil
import sys
import tempfile
import os
import pygit2
from mock import patch, MagicMock
sys.path.insert(
0, os.path.join(os.path.dirname(os.path.abspath(__file__)), "..")
)
import pagure.lib.query
import tests
from pagure.lib.repo import PagureRepo
class PagureFlaskPrioritiestests(tests.Modeltests):
""" Tests for the behavior of priorities in pagure """
@patch("pagure.lib.git.update_git")
@patch("pagure.lib.notify.send_email")
def test_ticket_with_no_priority(self, p_send_email, p_ugt):
""" Test creating a ticket without priority. """
p_send_email.return_value = True
p_ugt.return_value = True
tests.create_projects(self.session)
tests.create_projects_git(os.path.join(self.path, "repos"), bare=True)
user = tests.FakeUser()
user.username = "pingou"
with tests.user_set(self.app.application, user):
# Get the CSRF token
output = self.app.get("/test/new_issue")
self.assertEqual(output.status_code, 200)
output_text = output.get_data(as_text=True)
self.assertTrue(
'<h4 class="font-weight-bold mb-4">New Issue</h4>\n'
in output_text
)
csrf_token = output_text.split(
'name="csrf_token" type="hidden" value="'
)[1].split('">')[0]
data = {
"title": "Test issue",
"issue_content": "We really should improve on this issue",
"status": "Open",
"csrf_token": csrf_token,
}
# Create the issue
output = self.app.post(
"/test/new_issue", data=data, follow_redirects=True
)
self.assertEqual(output.status_code, 200)
output_text = output.get_data(as_text=True)
self.assertIn(
"<title>Issue #1: Test issue - test - Pagure</title>",
output_text,
)
self.assertIn(
'<a class="btn btn-outline-secondary btn-sm border-0" '
'href="/test/issue/1/edit" title="Edit this issue">',
output_text,
)
self.assertNotIn(
'<div class="ml-2" id="priority_plain">', output_text
)
self.assertNotIn('<option value="1">High</option>', output_text)
@patch("pagure.lib.git.update_git")
@patch("pagure.lib.notify.send_email")
def test_ticket_with_priorities(self, p_send_email, p_ugt):
""" Test creating a ticket with priorities. """
p_send_email.return_value = True
p_ugt.return_value = True
tests.create_projects(self.session)
tests.create_projects_git(os.path.join(self.path, "repos"), bare=True)
# Set some priorities
repo = pagure.lib.query.get_authorized_project(self.session, "test")
repo.priorities = {"1": "High", "2": "Normal"}
self.session.add(repo)
self.session.commit()
user = tests.FakeUser()
user.username = "pingou"
with tests.user_set(self.app.application, user):
# Get the CSRF token
output = self.app.get("/test/new_issue")
self.assertEqual(output.status_code, 200)
output_text = output.get_data(as_text=True)
self.assertTrue(
'<h4 class="font-weight-bold mb-4">New Issue</h4>\n'
in output_text
)
csrf_token = output_text.split(
'name="csrf_token" type="hidden" value="'
)[1].split('">')[0]
data = {
"title": "Test issue",
"issue_content": "We really should improve on this issue",
"status": "Open",
"csrf_token": csrf_token,
}
# Create the issue
output = self.app.post(
"/test/new_issue", data=data, follow_redirects=True
)
self.assertEqual(output.status_code, 200)
output_text = output.get_data(as_text=True)
self.assertIn(
"<title>Issue #1: Test issue - test - Pagure</title>",
output_text,
)
self.assertIn(
'<a class="btn btn-outline-secondary btn-sm border-0" '
'href="/test/issue/1/edit" title="Edit this issue">',
output_text,
)
self.assertIn(
'<div class="ml-2" id="priority_plain">', output_text
)
self.assertIn('<option value="1">High</option>', output_text)
def test_update_priorities(self):
""" Test updating priorities of a repo. """
tests.create_projects(self.session)
tests.create_projects_git(os.path.join(self.path, "repos"), bare=True)
# Set some priorities
repo = pagure.lib.query.get_authorized_project(self.session, "test")
self.assertEqual(repo.priorities, {})
user = tests.FakeUser()
user.username = "pingou"
with tests.user_set(self.app.application, user):
# Get the CSRF token
output = self.app.get("/test/settings")
self.assertEqual(output.status_code, 200)
output_text = output.get_data(as_text=True)
self.assertIn(
"<title>Settings - test - Pagure</title>", output_text
)
self.assertIn(
'<h5 class="pl-2 font-weight-bold text-muted">'
"Project Settings</h5>\n",
output_text,
)
csrf_token = output_text.split(
'name="csrf_token" type="hidden" value="'
)[1].split('">')[0]
data = {"priority_weigth": 1, "priority_title": "High"}
output = self.app.post(
"/test/update/priorities", data=data, follow_redirects=True
)
self.assertEqual(output.status_code, 200)
output_text = output.get_data(as_text=True)
# Check the redirect
self.assertIn(
"<title>Settings - test - Pagure</title>", output_text
)
self.assertIn(
'<h5 class="pl-2 font-weight-bold text-muted">'
"Project Settings</h5>\n",
output_text,
)
# Check the result of the action -- None, no CSRF
repo = pagure.lib.query.get_authorized_project(
self.session, "test"
)
self.assertEqual(repo.priorities, {})
data = {
"priority_weigth": 1,
"priority_title": "High",
"csrf_token": csrf_token,
}
output = self.app.post(
"/test/update/priorities", data=data, follow_redirects=True
)
self.assertEqual(output.status_code, 200)
output_text = output.get_data(as_text=True)
# Check the redirect
self.assertIn(
"<title>Settings - test - Pagure</title>", output_text
)
self.assertIn(
'<h5 class="pl-2 font-weight-bold text-muted">'
"Project Settings</h5>\n",
output_text,
)
# Check the result of the action -- Priority recorded
self.session.commit()
repo = pagure.lib.query.get_authorized_project(
self.session, "test"
)
self.assertEqual(repo.priorities, {"": "", "1": "High"})
data = {
"priority_weigth": [1, 2, 3],
"priority_title": ["High", "Normal", "Low"],
"csrf_token": csrf_token,
}
output = self.app.post(
"/test/update/priorities", data=data, follow_redirects=True
)
self.assertEqual(output.status_code, 200)
output_text = output.get_data(as_text=True)
# Check the redirect
self.assertIn(
"<title>Settings - test - Pagure</title>", output_text
)
self.assertIn(
'<h5 class="pl-2 font-weight-bold text-muted">'
"Project Settings</h5>\n",
output_text,
)
# Check the ordering
self.assertTrue(
output_text.find("High") < output_text.find("Normal")
)
self.assertTrue(
output_text.find("Normal") < output_text.find("Low")
)
# Check the result of the action -- Priority recorded
self.session.commit()
repo = pagure.lib.query.get_authorized_project(
self.session, "test"
)
self.assertEqual(
repo.priorities,
{"": "", "1": "High", "2": "Normal", "3": "Low"},
)
# Check error - less weigths than titles
data = {
"priority_weigth": [1, 2],
"priority_title": ["High", "Normal", "Low"],
"csrf_token": csrf_token,
}
output = self.app.post(
"/test/update/priorities", data=data, follow_redirects=True
)
self.assertEqual(output.status_code, 200)
output_text = output.get_data(as_text=True)
# Check the redirect
self.assertIn(
"<title>Settings - test - Pagure</title>", output_text
)
self.assertIn(
'<h5 class="pl-2 font-weight-bold text-muted">'
"Project Settings</h5>\n",
output_text,
)
self.assertIn(
"Priorities weights and titles are " "not of the same length",
output_text,
)
# Check the result of the action -- Priorities un-changed
self.session.commit()
repo = pagure.lib.query.get_authorized_project(
self.session, "test"
)
self.assertEqual(
repo.priorities,
{"": "", "1": "High", "2": "Normal", "3": "Low"},
)
# Check error - weigths must be integer
data = {
"priority_weigth": [1, 2, "c"],
"priority_title": ["High", "Normal", "Low"],
"csrf_token": csrf_token,
}
output = self.app.post(
"/test/update/priorities", data=data, follow_redirects=True
)
self.assertEqual(output.status_code, 200)
output_text = output.get_data(as_text=True)
# Check the redirect
self.assertIn(
"<title>Settings - test - Pagure</title>", output_text
)
self.assertIn(
'<h5 class="pl-2 font-weight-bold text-muted">'
"Project Settings</h5>\n",
output_text,
)
self.assertIn("Priorities weights must be numbers", output_text)
# Check the result of the action -- Priorities un-changed
self.session.commit()
repo = pagure.lib.query.get_authorized_project(
self.session, "test"
)
self.assertEqual(
repo.priorities,
{"": "", "1": "High", "2": "Normal", "3": "Low"},
)
# Check error - Twice the same priority weigth
data = {
"priority_weigth": [1, 2, 2],
"priority_title": ["High", "Normal", "Low"],
"csrf_token": csrf_token,
}
output = self.app.post(
"/test/update/priorities", data=data, follow_redirects=True
)
self.assertEqual(output.status_code, 200)
output_text = output.get_data(as_text=True)
# Check the redirect
self.assertIn(
"<title>Settings - test - Pagure</title>", output_text
)
self.assertIn(
'<h5 class="pl-2 font-weight-bold text-muted">'
"Project Settings</h5>\n",
output_text,
)
self.assertIn("Priority weight 2 is present 2 times", output_text)
# Check the result of the action -- Priorities un-changed
self.session.commit()
repo = pagure.lib.query.get_authorized_project(
self.session, "test"
)
self.assertEqual(
repo.priorities,
{"": "", "1": "High", "2": "Normal", "3": "Low"},
)
# Check error - Twice the same priority title
data = {
"priority_weigth": [1, 2, 3],
"priority_title": ["High", "Normal", "Normal"],
"csrf_token": csrf_token,
}
output = self.app.post(
"/test/update/priorities", data=data, follow_redirects=True
)
self.assertEqual(output.status_code, 200)
output_text = output.get_data(as_text=True)
# Check the redirect
self.assertIn(
"<title>Settings - test - Pagure</title>", output_text
)
self.assertIn(
'<h5 class="pl-2 font-weight-bold text-muted">'
"Project Settings</h5>\n",
output_text,
)
self.assertIn("Priority Normal is present 2 times", output_text)
# Check the result of the action -- Priorities un-changed
self.session.commit()
repo = pagure.lib.query.get_authorized_project(
self.session, "test"
)
self.assertEqual(
repo.priorities,
{"": "", "1": "High", "2": "Normal", "3": "Low"},
)
# Check the behavior if the project disabled the issue tracker
settings = repo.settings
settings["issue_tracker"] = False
repo.settings = settings
self.session.add(repo)
self.session.commit()
output = self.app.post("/test/update/priorities", data=data)
self.assertEqual(output.status_code, 404)
# Check for an invalid project
output = self.app.post("/foo/update/priorities", data=data)
self.assertEqual(output.status_code, 404)
# Check for a non-admin user
settings = repo.settings
settings["issue_tracker"] = True
repo.settings = settings
self.session.add(repo)
self.session.commit()
user.username = "ralph"
with tests.user_set(self.app.application, user):
output = self.app.post("/test/update/priorities", data=data)
self.assertEqual(output.status_code, 403)
@patch("pagure.lib.git.update_git")
@patch("pagure.lib.notify.send_email")
def test_reset_priorities(self, p_send_email, p_ugt):
""" Test resetting the priorities of a repo. """
p_send_email.return_value = True
p_ugt.return_value = True
tests.create_projects(self.session)
tests.create_projects_git(os.path.join(self.path, "repos"), bare=True)
# Start from scrach on priorities
repo = pagure.lib.query._get_project(self.session, "test")
self.assertEqual(repo.priorities, {})
user = tests.FakeUser()
user.username = "pingou"
with tests.user_set(self.app.application, user):
# Get the CSRF token
output = self.app.get("/test/settings")
self.assertEqual(output.status_code, 200)
output_text = output.get_data(as_text=True)
self.assertIn(
"<title>Settings - test - Pagure</title>", output_text
)
self.assertIn(
'<h5 class="pl-2 font-weight-bold text-muted">'
"Project Settings</h5>\n",
output_text,
)
csrf_token = output_text.split(
'name="csrf_token" type="hidden" value="'
)[1].split('">')[0]
# Set some priorities
data = {
"priority_weigth": [1, 2, 3],
"priority_title": ["High", "Normal", "Low"],
"csrf_token": csrf_token,
}
output = self.app.post(
"/test/update/priorities", data=data, follow_redirects=True
)
self.assertEqual(output.status_code, 200)
output_text = output.get_data(as_text=True)
self.assertIn(
"<title>Settings - test - Pagure</title>", output_text
)
self.assertIn(
'<h5 class="pl-2 font-weight-bold text-muted">'
"Project Settings</h5>\n",
output_text,
)
# Check the result of the action -- Priority recorded
self.session.commit()
repo = pagure.lib.query._get_project(self.session, "test")
self.assertEqual(
repo.priorities,
{"": "", "1": "High", "2": "Normal", "3": "Low"},
)
# Create an issue
data = {
"title": "Test issue",
"issue_content": "We really should improve on this issue",
"status": "Open",
"csrf_token": csrf_token,
}
output = self.app.post(
"/test/new_issue", data=data, follow_redirects=True
)
self.assertEqual(output.status_code, 200)
output_text = output.get_data(as_text=True)
self.assertIn(
"<title>Issue #1: Test issue - test - Pagure</title>",
output_text,
)
self.assertIn(
'<a class="btn btn-outline-secondary btn-sm border-0" '
'href="/test/issue/1/edit" title="Edit this issue">',
output_text,
)
self.assertIn(
'<div class="ml-2" id="priority_plain">', output_text
)
self.assertIn('<option value="1">High</option>', output_text)
# Check that the ticket *does* have priorities
output = self.app.get("/test/issue/1")
self.assertEqual(output.status_code, 200)
output_text = output.get_data(as_text=True)
self.assertIn(
'<div class="ml-2" id="priority_plain">', output_text
)
self.assertIn('<option value="1">High</option>', output_text)
# Reset the priorities
data = {"csrf_token": csrf_token}
output = self.app.post(
"/test/update/priorities", data=data, follow_redirects=True
)
self.assertEqual(output.status_code, 200)
output_text = output.get_data(as_text=True)
self.assertIn(
"<title>Settings - test - Pagure</title>", output_text
)
self.assertIn(
'<h5 class="pl-2 font-weight-bold text-muted">'
"Project Settings</h5>\n",
output_text,
)
# Check that the issue list renders fine
output = self.app.get("/test/issues")
self.assertEqual(output.status_code, 200)
output_text = output.get_data(as_text=True)
# Check that the ticket *does not* have priorities
output = self.app.get("/test/issue/1")
self.assertEqual(output.status_code, 200)
output_text = output.get_data(as_text=True)
self.assertNotIn(
'<div class="ml-2" id="priority_plain">', output_text
)
self.assertNotIn('<option value="1">High</option>', output_text)
# Check the result of the action -- Priority reset
self.session.commit()
repo = pagure.lib.query._get_project(self.session, "test")
self.assertEqual(repo.priorities, {})
@patch("pagure.lib.git.update_git")
@patch("pagure.lib.notify.send_email")
def test_reset_priorities_None(self, p_send_email, p_ugt):
""" Test resetting the priorities of a repo. """
p_send_email.return_value = True
p_ugt.return_value = True
tests.create_projects(self.session)
tests.create_projects_git(os.path.join(self.path, "repos"), bare=True)
# Start from scrach on priorities
repo = pagure.lib.query._get_project(self.session, "test")
self.assertEqual(repo.priorities, {})
user = tests.FakeUser()
user.username = "pingou"
with tests.user_set(self.app.application, user):
# Get the CSRF token
output = self.app.get("/test/settings")
self.assertEqual(output.status_code, 200)
output_text = output.get_data(as_text=True)
self.assertIn(
"<title>Settings - test - Pagure</title>", output_text
)
self.assertIn(
'<h5 class="pl-2 font-weight-bold text-muted">'
"Project Settings</h5>\n",
output_text,
)
csrf_token = output_text.split(
'name="csrf_token" type="hidden" value="'
)[1].split('">')[0]
# Set some priorities
data = {
"priority_weigth": [1, 2, 3],
"priority_title": ["High", "Normal", "Low"],
"csrf_token": csrf_token,
}
output = self.app.post(
"/test/update/priorities", data=data, follow_redirects=True
)
self.assertEqual(output.status_code, 200)
output_text = output.get_data(as_text=True)
self.assertIn(
"<title>Settings - test - Pagure</title>", output_text
)
self.assertIn(
'<h5 class="pl-2 font-weight-bold text-muted">'
"Project Settings</h5>\n",
output_text,
)
# Check the result of the action -- Priority recorded
self.session.commit()
repo = pagure.lib.query._get_project(self.session, "test")
self.assertEqual(
repo.priorities,
{"": "", "1": "High", "2": "Normal", "3": "Low"},
)
# Create an issue
data = {
"title": "Test issue",
"issue_content": "We really should improve on this issue",
"status": "Open",
"csrf_token": csrf_token,
}
output = self.app.post(
"/test/new_issue", data=data, follow_redirects=True
)
self.assertEqual(output.status_code, 200)
output_text = output.get_data(as_text=True)
self.assertIn(
"<title>Issue #1: Test issue - test - Pagure</title>",
output_text,
)
self.assertIn(
'<a class="btn btn-outline-secondary btn-sm border-0" '
'href="/test/issue/1/edit" title="Edit this issue">',
output_text,
)
self.assertIn(
'<div class="ml-2" id="priority_plain">', output_text
)
self.assertIn('<option value="1">High</option>', output_text)
# Check that the ticket *does* have priorities
output = self.app.get("/test/issue/1")
self.assertEqual(output.status_code, 200)
output_text = output.get_data(as_text=True)
self.assertIn(
'<div class="ml-2" id="priority_plain">', output_text
)
self.assertIn('<option value="1">High</option>', output_text)
# Reset the priorities
data = {"priority": None, "csrf_token": csrf_token}
output = self.app.post(
"/test/update/priorities", data=data, follow_redirects=True
)
self.assertEqual(output.status_code, 200)
output_text = output.get_data(as_text=True)
self.assertIn(
"<title>Settings - test - Pagure</title>", output_text
)
self.assertIn(
'<h5 class="pl-2 font-weight-bold text-muted">'
"Project Settings</h5>\n",
output_text,
)
# Check that the issue list renders fine
output = self.app.get("/test/issues")
self.assertEqual(output.status_code, 200)
output_text = output.get_data(as_text=True)
# Check that the ticket *does not* have priorities
output = self.app.get("/test/issue/1")
self.assertEqual(output.status_code, 200)
output_text = output.get_data(as_text=True)
self.assertNotIn(
'<div class="ml-2" id="priority_plain">', output_text
)
self.assertNotIn('<option value="1">High</option>', output_text)
# Check the result of the action -- Priority recorded
self.session.commit()
repo = pagure.lib.query._get_project(self.session, "test")
self.assertEqual(repo.priorities, {})
@patch("pagure.lib.git.update_git", MagicMock(return_value=True))
@patch("pagure.lib.notify.send_email", MagicMock(return_value=True))
def test_set_priority_1_and_back(self):
""" Test setting the priority of a ticket to 1. """
tests.create_projects(self.session)
tests.create_projects_git(os.path.join(self.path, "repos"), bare=True)
# Start from scrach on priorities
repo = pagure.lib.query._get_project(self.session, "test")
self.assertEqual(repo.priorities, {})
user = tests.FakeUser()
user.username = "pingou"
with tests.user_set(self.app.application, user):
# Get the CSRF token
output = self.app.get("/test/settings")
self.assertEqual(output.status_code, 200)
output_text = output.get_data(as_text=True)
self.assertIn(
"<title>Settings - test - Pagure</title>", output_text
)
self.assertIn(
'<h5 class="pl-2 font-weight-bold text-muted">'
"Project Settings</h5>\n",
output_text,
)
csrf_token = output_text.split(
'name="csrf_token" type="hidden" value="'
)[1].split('">')[0]
# Set some priorities
data = {
"priority_weigth": [-1, 0, 1, 2, 3],
"priority_title": [
"Sky Falling",
"Urgent",
"High",
"Normal",
"Low",
],
"csrf_token": csrf_token,
}
output = self.app.post(
"/test/update/priorities", data=data, follow_redirects=True
)
self.assertEqual(output.status_code, 200)
output_text = output.get_data(as_text=True)
self.assertIn(
"<title>Settings - test - Pagure</title>", output_text
)
self.assertIn(
'<h5 class="pl-2 font-weight-bold text-muted">'
"Project Settings</h5>\n",
output_text,
)
# Check the result of the action -- Priority recorded
self.session.commit()
repo = pagure.lib.query._get_project(self.session, "test")
self.assertEqual(
repo.priorities,
{
"": "",
"-1": "Sky Falling",
"0": "Urgent",
"1": "High",
"2": "Normal",
"3": "Low",
},
)
# Create an issue
data = {
"title": "Test issue",
"issue_content": "We really should improve on this issue",
"status": "Open",
"csrf_token": csrf_token,
}
output = self.app.post(
"/test/new_issue", data=data, follow_redirects=True
)
self.assertEqual(output.status_code, 200)
output_text = output.get_data(as_text=True)
self.assertIn(
"<title>Issue #1: Test issue - test - Pagure</title>",
output_text,
)
self.assertIn(
'<a class="btn btn-outline-secondary btn-sm border-0" '
'href="/test/issue/1/edit" title="Edit this issue">',
output_text,
)
self.assertIn(
'<div class="ml-2" id="priority_plain">', output_text
)
self.assertIn('<option value="1">High</option>', output_text)
# Check that the ticket *does* have priorities
output = self.app.get("/test/issue/1")
self.assertEqual(output.status_code, 200)
output_text = output.get_data(as_text=True)
self.assertIn(
'<div class="ml-2" id="priority_plain">', output_text
)
self.assertIn(
'<option value="-1">Sky Falling</option>', output_text
)
self.assertIn('<option value="0">Urgent</option>', output_text)
self.assertIn('<option value="1">High</option>', output_text)
# Set the priority to High
data = {"priority": "1", "csrf_token": csrf_token}
output = self.app.post(
"/test/issue/1/update", data=data, follow_redirects=True
)
self.assertEqual(output.status_code, 200)
output_text = output.get_data(as_text=True)
self.assertIn(
"<title>Issue #1: Test issue - test - Pagure</title>",
output_text,
)
self.assertIn(
'<a class="btn btn-outline-secondary btn-sm border-0" '
'href="/test/issue/1/edit" title="Edit this issue">',
output_text,
)
self.assertIn(
'<div class="ml-2" id="priority_plain">', output_text
)
self.assertIn(
'<option value="-1">Sky Falling</option>', output_text
)
self.assertIn('<option value="0">Urgent</option>', output_text)
self.assertIn(
'<option selected value="1">High</option>', output_text
)
# Reset the priority
data = {"priority": "", "csrf_token": csrf_token}
output = self.app.post(
"/test/issue/1/update", data=data, follow_redirects=True
)
self.assertEqual(output.status_code, 200)
output_text = output.get_data(as_text=True)
self.assertIn(
"<title>Issue #1: Test issue - test - Pagure</title>",
output_text,
)
self.assertIn(
'<a class="btn btn-outline-secondary btn-sm border-0" '
'href="/test/issue/1/edit" title="Edit this issue">',
output_text,
)
self.assertIn(
'<div class="ml-2" id="priority_plain">', output_text
)
self.assertIn(
'<option value="-1">Sky Falling</option>', output_text
)
self.assertIn('<option value="0">Urgent</option>', output_text)
self.assertIn('<option value="1">High</option>', output_text)
@patch("pagure.lib.git.update_git", MagicMock(return_value=True))
@patch("pagure.lib.notify.send_email", MagicMock(return_value=True))
def test_set_priority_0(self):
""" Test setting the priority of a ticket to 0. """
tests.create_projects(self.session)
tests.create_projects_git(os.path.join(self.path, "repos"), bare=True)
# Start from scrach on priorities
repo = pagure.lib.query._get_project(self.session, "test")
self.assertEqual(repo.priorities, {})
user = tests.FakeUser()
user.username = "pingou"
with tests.user_set(self.app.application, user):
# Get the CSRF token
output = self.app.get("/test/settings")
self.assertEqual(output.status_code, 200)
output_text = output.get_data(as_text=True)
self.assertIn(
"<title>Settings - test - Pagure</title>", output_text
)
self.assertIn(
'<h5 class="pl-2 font-weight-bold text-muted">'
"Project Settings</h5>\n",
output_text,
)
csrf_token = output_text.split(
'name="csrf_token" type="hidden" value="'
)[1].split('">')[0]
# Set some priorities
data = {
"priority_weigth": [-1, 0, 1, 2, 3],
"priority_title": [
"Sky Falling",
"Urgent",
"High",
"Normal",
"Low",
],
"csrf_token": csrf_token,
}
output = self.app.post(
"/test/update/priorities", data=data, follow_redirects=True
)
self.assertEqual(output.status_code, 200)
output_text = output.get_data(as_text=True)
self.assertIn(
"<title>Settings - test - Pagure</title>", output_text
)
self.assertIn(
'<h5 class="pl-2 font-weight-bold text-muted">'
"Project Settings</h5>\n",
output_text,
)
# Check the result of the action -- Priority recorded
self.session.commit()
repo = pagure.lib.query._get_project(self.session, "test")
self.assertEqual(
repo.priorities,
{
"": "",
"-1": "Sky Falling",
"0": "Urgent",
"1": "High",
"2": "Normal",
"3": "Low",
},
)
# Create an issue
data = {
"title": "Test issue",
"issue_content": "We really should improve on this issue",
"status": "Open",
"csrf_token": csrf_token,
}
output = self.app.post(
"/test/new_issue", data=data, follow_redirects=True
)
self.assertEqual(output.status_code, 200)
output_text = output.get_data(as_text=True)
self.assertIn(
"<title>Issue #1: Test issue - test - Pagure</title>",
output_text,
)
self.assertIn(
'<a class="btn btn-outline-secondary btn-sm border-0" '
'href="/test/issue/1/edit" title="Edit this issue">',
output_text,
)
self.assertIn(
'<div class="ml-2" id="priority_plain">', output_text
)
self.assertIn('<option value="1">High</option>', output_text)
# Check that the ticket *does* have priorities
output = self.app.get("/test/issue/1")
self.assertEqual(output.status_code, 200)
output_text = output.get_data(as_text=True)
self.assertIn(
'<div class="ml-2" id="priority_plain">', output_text
)
self.assertIn(
'<option value="-1">Sky Falling</option>', output_text
)
self.assertIn('<option value="0">Urgent</option>', output_text)
self.assertIn('<option value="1">High</option>', output_text)
# Set the priority to Urgent
data = {"priority": "0", "csrf_token": csrf_token}
output = self.app.post(
"/test/issue/1/update", data=data, follow_redirects=True
)
self.assertEqual(output.status_code, 200)
output_text = output.get_data(as_text=True)
self.assertIn(
"<title>Issue #1: Test issue - test - Pagure</title>",
output_text,
)
self.assertIn(
'<a class="btn btn-outline-secondary btn-sm border-0" '
'href="/test/issue/1/edit" title="Edit this issue">',
output_text,
)
self.assertIn(
'<div class="ml-2" id="priority_plain">', output_text
)
self.assertIn(
'<option value="-1">Sky Falling</option>', output_text
)
self.assertIn(
'<option selected value="0">Urgent</option>', output_text
)
self.assertIn('<option value="1">High</option>', output_text)
@patch("pagure.lib.git.update_git", MagicMock(return_value=True))
@patch("pagure.lib.notify.send_email", MagicMock(return_value=True))
def test_set_priority_minus1(self):
""" Test setting the priority of a ticket to -1. """
tests.create_projects(self.session)
tests.create_projects_git(os.path.join(self.path, "repos"), bare=True)
# Start from scrach on priorities
repo = pagure.lib.query._get_project(self.session, "test")
self.assertEqual(repo.priorities, {})
user = tests.FakeUser()
user.username = "pingou"
with tests.user_set(self.app.application, user):
# Get the CSRF token
output = self.app.get("/test/settings")
self.assertEqual(output.status_code, 200)
output_text = output.get_data(as_text=True)
self.assertIn(
"<title>Settings - test - Pagure</title>", output_text
)
self.assertIn(
'<h5 class="pl-2 font-weight-bold text-muted">'
"Project Settings</h5>\n",
output_text,
)
csrf_token = output_text.split(
'name="csrf_token" type="hidden" value="'
)[1].split('">')[0]
# Set some priorities
data = {
"priority_weigth": [-1, 0, 1, 2, 3],
"priority_title": [
"Sky Falling",
"Urgent",
"High",
"Normal",
"Low",
],
"csrf_token": csrf_token,
}
output = self.app.post(
"/test/update/priorities", data=data, follow_redirects=True
)
self.assertEqual(output.status_code, 200)
output_text = output.get_data(as_text=True)
self.assertIn(
"<title>Settings - test - Pagure</title>", output_text
)
self.assertIn(
'<h5 class="pl-2 font-weight-bold text-muted">'
"Project Settings</h5>\n",
output_text,
)
# Check the result of the action -- Priority recorded
self.session.commit()
repo = pagure.lib.query._get_project(self.session, "test")
self.assertEqual(
repo.priorities,
{
"": "",
"-1": "Sky Falling",
"0": "Urgent",
"1": "High",
"2": "Normal",
"3": "Low",
},
)
# Create an issue
data = {
"title": "Test issue",
"issue_content": "We really should improve on this issue",
"status": "Open",
"csrf_token": csrf_token,
}
output = self.app.post(
"/test/new_issue", data=data, follow_redirects=True
)
self.assertEqual(output.status_code, 200)
output_text = output.get_data(as_text=True)
self.assertIn(
"<title>Issue #1: Test issue - test - Pagure</title>",
output_text,
)
self.assertIn(
'<a class="btn btn-outline-secondary btn-sm border-0" '
'href="/test/issue/1/edit" title="Edit this issue">',
output_text,
)
self.assertIn(
'<div class="ml-2" id="priority_plain">', output_text
)
self.assertIn('<option value="1">High</option>', output_text)
# Check that the ticket *does* have priorities
output = self.app.get("/test/issue/1")
self.assertEqual(output.status_code, 200)
output_text = output.get_data(as_text=True)
self.assertIn(
'<div class="ml-2" id="priority_plain">', output_text
)
self.assertIn(
'<option value="-1">Sky Falling</option>', output_text
)
self.assertIn('<option value="0">Urgent</option>', output_text)
self.assertIn('<option value="1">High</option>', output_text)
# Set the priority to Sky Falling
data = {"priority": "-1", "csrf_token": csrf_token}
output = self.app.post(
"/test/issue/1/update", data=data, follow_redirects=True
)
self.assertEqual(output.status_code, 200)
output_text = output.get_data(as_text=True)
self.assertIn(
"<title>Issue #1: Test issue - test - Pagure</title>",
output_text,
)
self.assertIn(
'<a class="btn btn-outline-secondary btn-sm border-0" '
'href="/test/issue/1/edit" title="Edit this issue">',
output_text,
)
self.assertIn(
'<div class="ml-2" id="priority_plain">', output_text
)
self.assertIn(
'<option selected value="-1">Sky Falling</option>', output_text
)
self.assertIn('<option value="0">Urgent</option>', output_text)
self.assertIn('<option value="1">High</option>', output_text)
@patch("pagure.lib.git.update_git", MagicMock(return_value=True))
@patch("pagure.lib.notify.send_email", MagicMock(return_value=True))
def test_default_priority(self):
""" Test updating the default priority of a repo. """
tests.create_projects(self.session)
tests.create_projects_git(os.path.join(self.path, "repos"), bare=True)
# Check the default priorities
repo = pagure.lib.query.get_authorized_project(self.session, "test")
self.assertEqual(repo.priorities, {})
self.assertEqual(repo.default_priority, None)
user = tests.FakeUser()
user.username = "pingou"
with tests.user_set(self.app.application, user):
csrf_token = self.get_csrf()
# Set some priorities
data = {
"priority_weigth": [1, 2, 3],
"priority_title": ["High", "Normal", "Low"],
"csrf_token": csrf_token,
}
output = self.app.post(
"/test/update/priorities", data=data, follow_redirects=True
)
self.assertEqual(output.status_code, 200)
output_text = output.get_data(as_text=True)
# Check the redirect
self.assertIn(
"<title>Settings - test - Pagure</title>", output_text
)
self.assertIn(
'<h5 class="pl-2 font-weight-bold text-muted">'
"Project Settings</h5>\n",
output_text,
)
# Check the ordering
self.assertTrue(
output_text.find("High") < output_text.find("Normal")
)
self.assertTrue(
output_text.find("Normal") < output_text.find("Low")
)
# Check the result of the action -- Priority recorded
self.session.commit()
repo = pagure.lib.query.get_authorized_project(
self.session, "test"
)
self.assertEqual(
repo.priorities,
{"": "", "1": "High", "2": "Normal", "3": "Low"},
)
# Try setting the default priority -- no csrf
data = {"priority": "High"}
output = self.app.post(
"/test/update/default_priority",
data=data,
follow_redirects=True,
)
self.assertEqual(output.status_code, 200)
output_text = output.get_data(as_text=True)
# Check the redirect
self.assertIn(
"<title>Settings - test - Pagure</title>", output_text
)
self.assertIn(
'<h5 class="pl-2 font-weight-bold text-muted">'
"Project Settings</h5>\n",
output_text,
)
# Check the result of the action -- default_priority no change
self.session.commit()
repo = pagure.lib.query.get_authorized_project(
self.session, "test"
)
self.assertEqual(repo.default_priority, None)
# Try setting the default priority
data = {"priority": "High", "csrf_token": csrf_token}
output = self.app.post(
"/test/update/default_priority",
data=data,
follow_redirects=True,
)
self.assertEqual(output.status_code, 200)
output_text = output.get_data(as_text=True)
# Check the redirect
self.assertIn(
"<title>Settings - test - Pagure</title>", output_text
)
self.assertIn(
'<h5 class="pl-2 font-weight-bold text-muted">'
"Project Settings</h5>\n",
output_text,
)
self.assertIn("Default priority set " "to High", output_text)
# Check the result of the action -- default_priority no change
self.session.commit()
repo = pagure.lib.query.get_authorized_project(
self.session, "test"
)
self.assertEqual(repo.default_priority, "High")
# Try setting a wrong default priority
data = {"priority": "Smooth", "csrf_token": csrf_token}
output = self.app.post(
"/test/update/default_priority",
data=data,
follow_redirects=True,
)
self.assertEqual(output.status_code, 200)
output_text = output.get_data(as_text=True)
# Check the redirect
self.assertIn(
"<title>Settings - test - Pagure</title>", output_text
)
self.assertIn(
'<h5 class="pl-2 font-weight-bold text-muted">'
"Project Settings</h5>\n",
output_text,
)
# Check the result of the action -- default_priority no change
self.session.commit()
repo = pagure.lib.query.get_authorized_project(
self.session, "test"
)
self.assertEqual(repo.default_priority, "High")
# reset the default priority
data = {"csrf_token": csrf_token, "priority": ""}
output = self.app.post(
"/test/update/default_priority",
data=data,
follow_redirects=True,
)
self.assertEqual(output.status_code, 200)
output_text = output.get_data(as_text=True)
# Check the redirect
self.assertIn(
"<title>Settings - test - Pagure</title>", output_text
)
self.assertIn(
'<h5 class="pl-2 font-weight-bold text-muted">'
"Project Settings</h5>\n",
output_text,
)
self.assertIn("Default priority reset", output_text)
# Check the result of the action -- default_priority no change
self.session.commit()
repo = pagure.lib.query.get_authorized_project(
self.session, "test"
)
self.assertEqual(repo.default_priority, None)
# Check the behavior if the project disabled the issue tracker
settings = repo.settings
settings["issue_tracker"] = False
repo.settings = settings
self.session.add(repo)
self.session.commit()
output = self.app.post("/test/update/default_priority", data=data)
self.assertEqual(output.status_code, 404)
# Check for an invalid project
output = self.app.post("/foo/update/default_priority", data=data)
self.assertEqual(output.status_code, 404)
# Check for a non-admin user
settings = repo.settings
settings["issue_tracker"] = True
repo.settings = settings
self.session.add(repo)
self.session.commit()
user.username = "ralph"
with tests.user_set(self.app.application, user):
output = self.app.post("/test/update/default_priority", data=data)
self.assertEqual(output.status_code, 403)
@patch("pagure.lib.git.update_git", MagicMock(return_value=True))
@patch("pagure.lib.notify.send_email", MagicMock(return_value=True))
def test_default_priority_reset_when_updating_priorities(self):
"""Test updating the default priority of a repo when updating the
priorities.
"""
tests.create_projects(self.session)
tests.create_projects_git(os.path.join(self.path, "repos"), bare=True)
# Check the default priorities
repo = pagure.lib.query.get_authorized_project(self.session, "test")
self.assertEqual(repo.priorities, {})
self.assertEqual(repo.default_priority, None)
user = tests.FakeUser()
user.username = "pingou"
with tests.user_set(self.app.application, user):
csrf_token = self.get_csrf()
# Set some priorities
data = {
"priority_weigth": [1, 2, 3],
"priority_title": ["High", "Normal", "Low"],
"csrf_token": csrf_token,
}
output = self.app.post(
"/test/update/priorities", data=data, follow_redirects=True
)
self.assertEqual(output.status_code, 200)
output_text = output.get_data(as_text=True)
# Check the redirect
self.assertIn(
"<title>Settings - test - Pagure</title>", output_text
)
self.assertIn(
'<h5 class="pl-2 font-weight-bold text-muted">'
"Project Settings</h5>\n",
output_text,
)
# Check the ordering
self.assertTrue(
output_text.find("High") < output_text.find("Normal")
)
self.assertTrue(
output_text.find("Normal") < output_text.find("Low")
)
# Check the result of the action -- Priority recorded
self.session.commit()
repo = pagure.lib.query.get_authorized_project(
self.session, "test"
)
self.assertEqual(
repo.priorities,
{"": "", "1": "High", "2": "Normal", "3": "Low"},
)
# Try setting the default priority
data = {"priority": "High", "csrf_token": csrf_token}
output = self.app.post(
"/test/update/default_priority",
data=data,
follow_redirects=True,
)
self.assertEqual(output.status_code, 200)
output_text = output.get_data(as_text=True)
# Check the redirect
self.assertIn(
"<title>Settings - test - Pagure</title>", output_text
)
self.assertIn(
'<h5 class="pl-2 font-weight-bold text-muted">'
"Project Settings</h5>\n",
output_text,
)
self.assertIn("Default priority set " "to High", output_text)
# Check the result of the action -- default_priority no change
self.session.commit()
repo = pagure.lib.query.get_authorized_project(
self.session, "test"
)
self.assertEqual(repo.default_priority, "High")
# Remove the Hight priority
data = {
"priority_weigth": [1, 2],
"priority_title": ["Normal", "Low"],
"csrf_token": csrf_token,
}
output = self.app.post(
"/test/update/priorities", data=data, follow_redirects=True
)
self.assertEqual(output.status_code, 200)
output_text = output.get_data(as_text=True)
# Check the redirect
self.assertIn(
"<title>Settings - test - Pagure</title>", output_text
)
self.assertIn(
'<h5 class="pl-2 font-weight-bold text-muted">'
"Project Settings</h5>\n",
output_text,
)
self.assertIn("Priorities updated", output_text)
self.assertIn(
"Default priority reset "
"as it is no longer one of set priorities.",
output_text,
)
# Check the ordering
self.assertTrue(
output_text.find("Normal") < output_text.find("Low")
)
# Check the result of the action -- Priority recorded
self.session.commit()
repo = pagure.lib.query.get_authorized_project(
self.session, "test"
)
self.assertEqual(
repo.priorities, {"": "", "1": "Normal", "2": "Low"}
)
# Default priority is now None
self.assertIsNone(repo.default_priority)
@patch("pagure.lib.git.update_git", MagicMock(return_value=True))
@patch("pagure.lib.notify.send_email", MagicMock(return_value=True))
def test_default_priority_on_new_ticket(self):
""" Test updating the default priority of a repo. """
tests.create_projects(self.session)
tests.create_projects_git(os.path.join(self.path, "repos"), bare=True)
# Set some priority and the default one
repo = pagure.lib.query.get_authorized_project(self.session, "test")
repo.priorities = {"1": "High", "2": "Normal"}
repo.default_priority = "Normal"
self.session.add(repo)
self.session.commit()
# Check the default priorities
repo = pagure.lib.query.get_authorized_project(self.session, "test")
self.assertEqual(repo.priorities, {"1": "High", "2": "Normal"})
self.assertEqual(repo.default_priority, "Normal")
user = tests.FakeUser()
user.username = "pingou"
with tests.user_set(self.app.application, user):
csrf_token = self.get_csrf()
data = {
"title": "Test issue",
"issue_content": "We really should improve on this issue",
"status": "Open",
"csrf_token": csrf_token,
}
output = self.app.post(
"/test/new_issue", data=data, follow_redirects=True
)
self.assertEqual(output.status_code, 200)
output_text = output.get_data(as_text=True)
self.assertIn(
"<title>Issue #1: Test issue - test - Pagure</title>",
output_text,
)
self.assertIn(
'<a class="btn btn-outline-secondary btn-sm border-0" '
'href="/test/issue/1/edit" title="Edit this issue">',
output_text,
)
repo = pagure.lib.query.get_authorized_project(self.session, "test")
self.assertEqual(len(repo.issues), 1)
self.assertEqual(repo.issues[0].priority, 2)
if __name__ == "__main__":
unittest.main(verbosity=2)
| 38.234584
| 79
| 0.516022
| 5,910
| 57,046
| 4.842132
| 0.039256
| 0.074781
| 0.045008
| 0.067652
| 0.959115
| 0.9559
| 0.9559
| 0.949925
| 0.944893
| 0.942167
| 0
| 0.013699
| 0.365284
| 57,046
| 1,491
| 80
| 38.260228
| 0.776652
| 0.07252
| 0
| 0.775327
| 0
| 0
| 0.216876
| 0.045671
| 0
| 0
| 0
| 0
| 0.197712
| 1
| 0.008987
| false
| 0
| 0.010621
| 0
| 0.020425
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
464b7a2c23f553904ef1616ab6df7215d80e353d
| 1,630
|
py
|
Python
|
app/api/sql/static_provider.py
|
LifeLaboratory/skb_sudo_su
|
92f29cc8e7fbd30624ee0d8634d61b8ecbcace35
|
[
"MIT"
] | null | null | null |
app/api/sql/static_provider.py
|
LifeLaboratory/skb_sudo_su
|
92f29cc8e7fbd30624ee0d8634d61b8ecbcace35
|
[
"MIT"
] | null | null | null |
app/api/sql/static_provider.py
|
LifeLaboratory/skb_sudo_su
|
92f29cc8e7fbd30624ee0d8634d61b8ecbcace35
|
[
"MIT"
] | null | null | null |
from app.api.base.base_sql import Sql
class Provider:
@staticmethod
def get_top_statistic(args):
sql = """
select category, "процент_всего" as "percent", "всего" as "all", "просрочка" as "expired"
from (
select *
, ("просрочка"::float / case when "всего" > 0 then "всего" else 1 end::float)::float "процент_всего"
from (
select
category
, count(1) filter(where expired) as "просрочка"
, count(1) as "всего"
, count(1) filter(where close) as "количество закрытых"
from user_nom
left join nomenclature using(id_nom)
where id_user = {id_user}
group by category
) n
) n
order by "просрочка" desc, "процент_всего" desc, category
"""
data = Sql.exec(query=sql, args=args)
return data
@staticmethod
def get_all_statistic(args):
sql = """
select "процент_всего" as "percent", "всего" - "просрочка" as "all", "просрочка" as "expired"
from (
select *
, ("просрочка"::float / case when "всего" > 0 then "всего" else 1 end::float)::float "процент_всего"
from (
select
count(1) filter(where expired) as "просрочка"
, count(1) as "всего"
, count(1) filter(where close) as "количество закрытых"
from user_nom
left join nomenclature using(id_nom)
where id_user = {id_user}
) n
) n
order by "просрочка" desc, "процент_всего" desc
"""
data = Sql.exec(query=sql, args=args)
return data
| 32.6
| 109
| 0.560736
| 193
| 1,630
| 4.637306
| 0.274611
| 0.080447
| 0.053631
| 0.075978
| 0.802235
| 0.744134
| 0.744134
| 0.744134
| 0.744134
| 0.576536
| 0
| 0.009158
| 0.330061
| 1,630
| 49
| 110
| 33.265306
| 0.81044
| 0
| 0
| 0.73913
| 0
| 0.086957
| 0.795706
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.043478
| false
| 0
| 0.021739
| 0
| 0.130435
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 1
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
464d89327b0af4b18feb7240c6345a6af862e9b6
| 112,217
|
py
|
Python
|
alameda_api/v1alpha1/datahub/server_pb2_grpc.py
|
containers-ai/api
|
ec0fafc7bfd17c16cff1d1737dbceacac5d09fd8
|
[
"Apache-2.0"
] | 1
|
2020-05-18T02:34:29.000Z
|
2020-05-18T02:34:29.000Z
|
alameda_api/v1alpha1/datahub/server_pb2_grpc.py
|
containers-ai/api
|
ec0fafc7bfd17c16cff1d1737dbceacac5d09fd8
|
[
"Apache-2.0"
] | 9
|
2018-11-01T09:08:51.000Z
|
2019-01-12T07:09:06.000Z
|
alameda_api/v1alpha1/datahub/server_pb2_grpc.py
|
containers-ai/api
|
ec0fafc7bfd17c16cff1d1737dbceacac5d09fd8
|
[
"Apache-2.0"
] | 12
|
2018-10-30T02:46:56.000Z
|
2021-04-13T07:55:09.000Z
|
# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT!
import grpc
from alameda_api.v1alpha1.datahub.applications import services_pb2 as alameda__api_dot_v1alpha1_dot_datahub_dot_applications_dot_services__pb2
from alameda_api.v1alpha1.datahub.data import services_pb2 as alameda__api_dot_v1alpha1_dot_datahub_dot_data_dot_services__pb2
from alameda_api.v1alpha1.datahub.events import services_pb2 as alameda__api_dot_v1alpha1_dot_datahub_dot_events_dot_services__pb2
from alameda_api.v1alpha1.datahub.gpu import services_pb2 as alameda__api_dot_v1alpha1_dot_datahub_dot_gpu_dot_services__pb2
from alameda_api.v1alpha1.datahub.licenses import services_pb2 as alameda__api_dot_v1alpha1_dot_datahub_dot_licenses_dot_services__pb2
from alameda_api.v1alpha1.datahub.metrics import services_pb2 as alameda__api_dot_v1alpha1_dot_datahub_dot_metrics_dot_services__pb2
from alameda_api.v1alpha1.datahub.plannings import services_pb2 as alameda__api_dot_v1alpha1_dot_datahub_dot_plannings_dot_services__pb2
from alameda_api.v1alpha1.datahub.predictions import services_pb2 as alameda__api_dot_v1alpha1_dot_datahub_dot_predictions_dot_services__pb2
from alameda_api.v1alpha1.datahub.rawdata import services_pb2 as alameda__api_dot_v1alpha1_dot_datahub_dot_rawdata_dot_services__pb2
from alameda_api.v1alpha1.datahub.recommendations import services_pb2 as alameda__api_dot_v1alpha1_dot_datahub_dot_recommendations_dot_services__pb2
from alameda_api.v1alpha1.datahub.resources import services_pb2 as alameda__api_dot_v1alpha1_dot_datahub_dot_resources_dot_services__pb2
from alameda_api.v1alpha1.datahub.schemas import services_pb2 as alameda__api_dot_v1alpha1_dot_datahub_dot_schemas_dot_services__pb2
from alameda_api.v1alpha1.datahub.scores import services_pb2 as alameda__api_dot_v1alpha1_dot_datahub_dot_scores_dot_services__pb2
from alameda_api.v1alpha1.datahub.weavescope import services_pb2 as alameda__api_dot_v1alpha1_dot_datahub_dot_weavescope_dot_services__pb2
from google.protobuf import empty_pb2 as google_dot_protobuf_dot_empty__pb2
from google.rpc import status_pb2 as google_dot_rpc_dot_status__pb2
class DatahubServiceStub(object):
"""Service for providing data stored in the backend
"""
def __init__(self, channel):
"""Constructor.
Args:
channel: A grpc.Channel.
"""
self.CreateApps = channel.unary_unary(
'/containersai.alameda.v1alpha1.datahub.DatahubService/CreateApps',
request_serializer=alameda__api_dot_v1alpha1_dot_datahub_dot_applications_dot_services__pb2.CreateApplicationsRequest.SerializeToString,
response_deserializer=google_dot_rpc_dot_status__pb2.Status.FromString,
)
self.ListApps = channel.unary_unary(
'/containersai.alameda.v1alpha1.datahub.DatahubService/ListApps',
request_serializer=alameda__api_dot_v1alpha1_dot_datahub_dot_applications_dot_services__pb2.ListApplicationsRequest.SerializeToString,
response_deserializer=alameda__api_dot_v1alpha1_dot_datahub_dot_applications_dot_services__pb2.ListApplicationsResponse.FromString,
)
self.DeleteApps = channel.unary_unary(
'/containersai.alameda.v1alpha1.datahub.DatahubService/DeleteApps',
request_serializer=alameda__api_dot_v1alpha1_dot_datahub_dot_applications_dot_services__pb2.DeleteApplicationsRequest.SerializeToString,
response_deserializer=google_dot_rpc_dot_status__pb2.Status.FromString,
)
self.ReadData = channel.unary_unary(
'/containersai.alameda.v1alpha1.datahub.DatahubService/ReadData',
request_serializer=alameda__api_dot_v1alpha1_dot_datahub_dot_data_dot_services__pb2.ReadDataRequest.SerializeToString,
response_deserializer=alameda__api_dot_v1alpha1_dot_datahub_dot_data_dot_services__pb2.ReadDataResponse.FromString,
)
self.WriteData = channel.unary_unary(
'/containersai.alameda.v1alpha1.datahub.DatahubService/WriteData',
request_serializer=alameda__api_dot_v1alpha1_dot_datahub_dot_data_dot_services__pb2.WriteDataRequest.SerializeToString,
response_deserializer=google_dot_rpc_dot_status__pb2.Status.FromString,
)
self.DeleteData = channel.unary_unary(
'/containersai.alameda.v1alpha1.datahub.DatahubService/DeleteData',
request_serializer=alameda__api_dot_v1alpha1_dot_datahub_dot_data_dot_services__pb2.DeleteDataRequest.SerializeToString,
response_deserializer=google_dot_rpc_dot_status__pb2.Status.FromString,
)
self.WriteMeta = channel.unary_unary(
'/containersai.alameda.v1alpha1.datahub.DatahubService/WriteMeta',
request_serializer=alameda__api_dot_v1alpha1_dot_datahub_dot_data_dot_services__pb2.WriteMetaRequest.SerializeToString,
response_deserializer=google_dot_rpc_dot_status__pb2.Status.FromString,
)
self.CreateEvents = channel.unary_unary(
'/containersai.alameda.v1alpha1.datahub.DatahubService/CreateEvents',
request_serializer=alameda__api_dot_v1alpha1_dot_datahub_dot_events_dot_services__pb2.CreateEventsRequest.SerializeToString,
response_deserializer=google_dot_rpc_dot_status__pb2.Status.FromString,
)
self.ListEvents = channel.unary_unary(
'/containersai.alameda.v1alpha1.datahub.DatahubService/ListEvents',
request_serializer=alameda__api_dot_v1alpha1_dot_datahub_dot_events_dot_services__pb2.ListEventsRequest.SerializeToString,
response_deserializer=alameda__api_dot_v1alpha1_dot_datahub_dot_events_dot_services__pb2.ListEventsResponse.FromString,
)
self.CreateGpuPredictions = channel.unary_unary(
'/containersai.alameda.v1alpha1.datahub.DatahubService/CreateGpuPredictions',
request_serializer=alameda__api_dot_v1alpha1_dot_datahub_dot_gpu_dot_services__pb2.CreateGpuPredictionsRequest.SerializeToString,
response_deserializer=google_dot_rpc_dot_status__pb2.Status.FromString,
)
self.ListGpus = channel.unary_unary(
'/containersai.alameda.v1alpha1.datahub.DatahubService/ListGpus',
request_serializer=alameda__api_dot_v1alpha1_dot_datahub_dot_gpu_dot_services__pb2.ListGpusRequest.SerializeToString,
response_deserializer=alameda__api_dot_v1alpha1_dot_datahub_dot_gpu_dot_services__pb2.ListGpusResponse.FromString,
)
self.ListGpuMetrics = channel.unary_unary(
'/containersai.alameda.v1alpha1.datahub.DatahubService/ListGpuMetrics',
request_serializer=alameda__api_dot_v1alpha1_dot_datahub_dot_gpu_dot_services__pb2.ListGpuMetricsRequest.SerializeToString,
response_deserializer=alameda__api_dot_v1alpha1_dot_datahub_dot_gpu_dot_services__pb2.ListGpuMetricsResponse.FromString,
)
self.ListGpuPredictions = channel.unary_unary(
'/containersai.alameda.v1alpha1.datahub.DatahubService/ListGpuPredictions',
request_serializer=alameda__api_dot_v1alpha1_dot_datahub_dot_gpu_dot_services__pb2.ListGpuPredictionsRequest.SerializeToString,
response_deserializer=alameda__api_dot_v1alpha1_dot_datahub_dot_gpu_dot_services__pb2.ListGpuPredictionsResponse.FromString,
)
self.GetLicense = channel.unary_unary(
'/containersai.alameda.v1alpha1.datahub.DatahubService/GetLicense',
request_serializer=google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString,
response_deserializer=alameda__api_dot_v1alpha1_dot_datahub_dot_licenses_dot_services__pb2.GetLicenseResponse.FromString,
)
self.CreateMetrics = channel.unary_unary(
'/containersai.alameda.v1alpha1.datahub.DatahubService/CreateMetrics',
request_serializer=alameda__api_dot_v1alpha1_dot_datahub_dot_metrics_dot_services__pb2.CreateMetricsRequest.SerializeToString,
response_deserializer=google_dot_rpc_dot_status__pb2.Status.FromString,
)
self.CreatePodMetrics = channel.unary_unary(
'/containersai.alameda.v1alpha1.datahub.DatahubService/CreatePodMetrics',
request_serializer=alameda__api_dot_v1alpha1_dot_datahub_dot_metrics_dot_services__pb2.CreatePodMetricsRequest.SerializeToString,
response_deserializer=google_dot_rpc_dot_status__pb2.Status.FromString,
)
self.CreateControllerMetrics = channel.unary_unary(
'/containersai.alameda.v1alpha1.datahub.DatahubService/CreateControllerMetrics',
request_serializer=alameda__api_dot_v1alpha1_dot_datahub_dot_metrics_dot_services__pb2.CreateControllerMetricsRequest.SerializeToString,
response_deserializer=google_dot_rpc_dot_status__pb2.Status.FromString,
)
self.CreateApplicationMetrics = channel.unary_unary(
'/containersai.alameda.v1alpha1.datahub.DatahubService/CreateApplicationMetrics',
request_serializer=alameda__api_dot_v1alpha1_dot_datahub_dot_metrics_dot_services__pb2.CreateApplicationMetricsRequest.SerializeToString,
response_deserializer=google_dot_rpc_dot_status__pb2.Status.FromString,
)
self.CreateNamespaceMetrics = channel.unary_unary(
'/containersai.alameda.v1alpha1.datahub.DatahubService/CreateNamespaceMetrics',
request_serializer=alameda__api_dot_v1alpha1_dot_datahub_dot_metrics_dot_services__pb2.CreateNamespaceMetricsRequest.SerializeToString,
response_deserializer=google_dot_rpc_dot_status__pb2.Status.FromString,
)
self.CreateNodeMetrics = channel.unary_unary(
'/containersai.alameda.v1alpha1.datahub.DatahubService/CreateNodeMetrics',
request_serializer=alameda__api_dot_v1alpha1_dot_datahub_dot_metrics_dot_services__pb2.CreateNodeMetricsRequest.SerializeToString,
response_deserializer=google_dot_rpc_dot_status__pb2.Status.FromString,
)
self.CreateClusterMetrics = channel.unary_unary(
'/containersai.alameda.v1alpha1.datahub.DatahubService/CreateClusterMetrics',
request_serializer=alameda__api_dot_v1alpha1_dot_datahub_dot_metrics_dot_services__pb2.CreateClusterMetricsRequest.SerializeToString,
response_deserializer=google_dot_rpc_dot_status__pb2.Status.FromString,
)
self.ListMetrics = channel.unary_unary(
'/containersai.alameda.v1alpha1.datahub.DatahubService/ListMetrics',
request_serializer=alameda__api_dot_v1alpha1_dot_datahub_dot_metrics_dot_services__pb2.ListMetricsRequest.SerializeToString,
response_deserializer=alameda__api_dot_v1alpha1_dot_datahub_dot_metrics_dot_services__pb2.ListMetricsResponse.FromString,
)
self.ListPodMetrics = channel.unary_unary(
'/containersai.alameda.v1alpha1.datahub.DatahubService/ListPodMetrics',
request_serializer=alameda__api_dot_v1alpha1_dot_datahub_dot_metrics_dot_services__pb2.ListPodMetricsRequest.SerializeToString,
response_deserializer=alameda__api_dot_v1alpha1_dot_datahub_dot_metrics_dot_services__pb2.ListPodMetricsResponse.FromString,
)
self.ListControllerMetrics = channel.unary_unary(
'/containersai.alameda.v1alpha1.datahub.DatahubService/ListControllerMetrics',
request_serializer=alameda__api_dot_v1alpha1_dot_datahub_dot_metrics_dot_services__pb2.ListControllerMetricsRequest.SerializeToString,
response_deserializer=alameda__api_dot_v1alpha1_dot_datahub_dot_metrics_dot_services__pb2.ListControllerMetricsResponse.FromString,
)
self.ListApplicationMetrics = channel.unary_unary(
'/containersai.alameda.v1alpha1.datahub.DatahubService/ListApplicationMetrics',
request_serializer=alameda__api_dot_v1alpha1_dot_datahub_dot_metrics_dot_services__pb2.ListApplicationMetricsRequest.SerializeToString,
response_deserializer=alameda__api_dot_v1alpha1_dot_datahub_dot_metrics_dot_services__pb2.ListApplicationMetricsResponse.FromString,
)
self.ListNamespaceMetrics = channel.unary_unary(
'/containersai.alameda.v1alpha1.datahub.DatahubService/ListNamespaceMetrics',
request_serializer=alameda__api_dot_v1alpha1_dot_datahub_dot_metrics_dot_services__pb2.ListNamespaceMetricsRequest.SerializeToString,
response_deserializer=alameda__api_dot_v1alpha1_dot_datahub_dot_metrics_dot_services__pb2.ListNamespaceMetricsResponse.FromString,
)
self.ListNodeMetrics = channel.unary_unary(
'/containersai.alameda.v1alpha1.datahub.DatahubService/ListNodeMetrics',
request_serializer=alameda__api_dot_v1alpha1_dot_datahub_dot_metrics_dot_services__pb2.ListNodeMetricsRequest.SerializeToString,
response_deserializer=alameda__api_dot_v1alpha1_dot_datahub_dot_metrics_dot_services__pb2.ListNodeMetricsResponse.FromString,
)
self.ListClusterMetrics = channel.unary_unary(
'/containersai.alameda.v1alpha1.datahub.DatahubService/ListClusterMetrics',
request_serializer=alameda__api_dot_v1alpha1_dot_datahub_dot_metrics_dot_services__pb2.ListClusterMetricsRequest.SerializeToString,
response_deserializer=alameda__api_dot_v1alpha1_dot_datahub_dot_metrics_dot_services__pb2.ListClusterMetricsResponse.FromString,
)
self.Ping = channel.unary_unary(
'/containersai.alameda.v1alpha1.datahub.DatahubService/Ping',
request_serializer=google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString,
response_deserializer=google_dot_rpc_dot_status__pb2.Status.FromString,
)
self.CreatePlannings = channel.unary_unary(
'/containersai.alameda.v1alpha1.datahub.DatahubService/CreatePlannings',
request_serializer=alameda__api_dot_v1alpha1_dot_datahub_dot_plannings_dot_services__pb2.CreatePlanningsRequest.SerializeToString,
response_deserializer=google_dot_rpc_dot_status__pb2.Status.FromString,
)
self.CreatePodPlannings = channel.unary_unary(
'/containersai.alameda.v1alpha1.datahub.DatahubService/CreatePodPlannings',
request_serializer=alameda__api_dot_v1alpha1_dot_datahub_dot_plannings_dot_services__pb2.CreatePodPlanningsRequest.SerializeToString,
response_deserializer=google_dot_rpc_dot_status__pb2.Status.FromString,
)
self.CreateControllerPlannings = channel.unary_unary(
'/containersai.alameda.v1alpha1.datahub.DatahubService/CreateControllerPlannings',
request_serializer=alameda__api_dot_v1alpha1_dot_datahub_dot_plannings_dot_services__pb2.CreateControllerPlanningsRequest.SerializeToString,
response_deserializer=google_dot_rpc_dot_status__pb2.Status.FromString,
)
self.CreateApplicationPlannings = channel.unary_unary(
'/containersai.alameda.v1alpha1.datahub.DatahubService/CreateApplicationPlannings',
request_serializer=alameda__api_dot_v1alpha1_dot_datahub_dot_plannings_dot_services__pb2.CreateApplicationPlanningsRequest.SerializeToString,
response_deserializer=google_dot_rpc_dot_status__pb2.Status.FromString,
)
self.CreateNamespacePlannings = channel.unary_unary(
'/containersai.alameda.v1alpha1.datahub.DatahubService/CreateNamespacePlannings',
request_serializer=alameda__api_dot_v1alpha1_dot_datahub_dot_plannings_dot_services__pb2.CreateNamespacePlanningsRequest.SerializeToString,
response_deserializer=google_dot_rpc_dot_status__pb2.Status.FromString,
)
self.CreateNodePlannings = channel.unary_unary(
'/containersai.alameda.v1alpha1.datahub.DatahubService/CreateNodePlannings',
request_serializer=alameda__api_dot_v1alpha1_dot_datahub_dot_plannings_dot_services__pb2.CreateNodePlanningsRequest.SerializeToString,
response_deserializer=google_dot_rpc_dot_status__pb2.Status.FromString,
)
self.CreateClusterPlannings = channel.unary_unary(
'/containersai.alameda.v1alpha1.datahub.DatahubService/CreateClusterPlannings',
request_serializer=alameda__api_dot_v1alpha1_dot_datahub_dot_plannings_dot_services__pb2.CreateClusterPlanningsRequest.SerializeToString,
response_deserializer=google_dot_rpc_dot_status__pb2.Status.FromString,
)
self.ListPlannings = channel.unary_unary(
'/containersai.alameda.v1alpha1.datahub.DatahubService/ListPlannings',
request_serializer=alameda__api_dot_v1alpha1_dot_datahub_dot_plannings_dot_services__pb2.ListPlanningsRequest.SerializeToString,
response_deserializer=alameda__api_dot_v1alpha1_dot_datahub_dot_plannings_dot_services__pb2.ListPlanningsResponse.FromString,
)
self.ListPodPlannings = channel.unary_unary(
'/containersai.alameda.v1alpha1.datahub.DatahubService/ListPodPlannings',
request_serializer=alameda__api_dot_v1alpha1_dot_datahub_dot_plannings_dot_services__pb2.ListPodPlanningsRequest.SerializeToString,
response_deserializer=alameda__api_dot_v1alpha1_dot_datahub_dot_plannings_dot_services__pb2.ListPodPlanningsResponse.FromString,
)
self.ListControllerPlannings = channel.unary_unary(
'/containersai.alameda.v1alpha1.datahub.DatahubService/ListControllerPlannings',
request_serializer=alameda__api_dot_v1alpha1_dot_datahub_dot_plannings_dot_services__pb2.ListControllerPlanningsRequest.SerializeToString,
response_deserializer=alameda__api_dot_v1alpha1_dot_datahub_dot_plannings_dot_services__pb2.ListControllerPlanningsResponse.FromString,
)
self.ListApplicationPlannings = channel.unary_unary(
'/containersai.alameda.v1alpha1.datahub.DatahubService/ListApplicationPlannings',
request_serializer=alameda__api_dot_v1alpha1_dot_datahub_dot_plannings_dot_services__pb2.ListApplicationPlanningsRequest.SerializeToString,
response_deserializer=alameda__api_dot_v1alpha1_dot_datahub_dot_plannings_dot_services__pb2.ListApplicationPlanningsResponse.FromString,
)
self.ListNamespacePlannings = channel.unary_unary(
'/containersai.alameda.v1alpha1.datahub.DatahubService/ListNamespacePlannings',
request_serializer=alameda__api_dot_v1alpha1_dot_datahub_dot_plannings_dot_services__pb2.ListNamespacePlanningsRequest.SerializeToString,
response_deserializer=alameda__api_dot_v1alpha1_dot_datahub_dot_plannings_dot_services__pb2.ListNamespacePlanningsResponse.FromString,
)
self.ListNodePlannings = channel.unary_unary(
'/containersai.alameda.v1alpha1.datahub.DatahubService/ListNodePlannings',
request_serializer=alameda__api_dot_v1alpha1_dot_datahub_dot_plannings_dot_services__pb2.ListNodePlanningsRequest.SerializeToString,
response_deserializer=alameda__api_dot_v1alpha1_dot_datahub_dot_plannings_dot_services__pb2.ListNodePlanningsResponse.FromString,
)
self.ListClusterPlannings = channel.unary_unary(
'/containersai.alameda.v1alpha1.datahub.DatahubService/ListClusterPlannings',
request_serializer=alameda__api_dot_v1alpha1_dot_datahub_dot_plannings_dot_services__pb2.ListClusterPlanningsRequest.SerializeToString,
response_deserializer=alameda__api_dot_v1alpha1_dot_datahub_dot_plannings_dot_services__pb2.ListClusterPlanningsResponse.FromString,
)
self.CreatePredictions = channel.unary_unary(
'/containersai.alameda.v1alpha1.datahub.DatahubService/CreatePredictions',
request_serializer=alameda__api_dot_v1alpha1_dot_datahub_dot_predictions_dot_services__pb2.CreatePredictionsRequest.SerializeToString,
response_deserializer=google_dot_rpc_dot_status__pb2.Status.FromString,
)
self.CreatePodPredictions = channel.unary_unary(
'/containersai.alameda.v1alpha1.datahub.DatahubService/CreatePodPredictions',
request_serializer=alameda__api_dot_v1alpha1_dot_datahub_dot_predictions_dot_services__pb2.CreatePodPredictionsRequest.SerializeToString,
response_deserializer=google_dot_rpc_dot_status__pb2.Status.FromString,
)
self.CreateControllerPredictions = channel.unary_unary(
'/containersai.alameda.v1alpha1.datahub.DatahubService/CreateControllerPredictions',
request_serializer=alameda__api_dot_v1alpha1_dot_datahub_dot_predictions_dot_services__pb2.CreateControllerPredictionsRequest.SerializeToString,
response_deserializer=google_dot_rpc_dot_status__pb2.Status.FromString,
)
self.CreateApplicationPredictions = channel.unary_unary(
'/containersai.alameda.v1alpha1.datahub.DatahubService/CreateApplicationPredictions',
request_serializer=alameda__api_dot_v1alpha1_dot_datahub_dot_predictions_dot_services__pb2.CreateApplicationPredictionsRequest.SerializeToString,
response_deserializer=google_dot_rpc_dot_status__pb2.Status.FromString,
)
self.CreateNamespacePredictions = channel.unary_unary(
'/containersai.alameda.v1alpha1.datahub.DatahubService/CreateNamespacePredictions',
request_serializer=alameda__api_dot_v1alpha1_dot_datahub_dot_predictions_dot_services__pb2.CreateNamespacePredictionsRequest.SerializeToString,
response_deserializer=google_dot_rpc_dot_status__pb2.Status.FromString,
)
self.CreateNodePredictions = channel.unary_unary(
'/containersai.alameda.v1alpha1.datahub.DatahubService/CreateNodePredictions',
request_serializer=alameda__api_dot_v1alpha1_dot_datahub_dot_predictions_dot_services__pb2.CreateNodePredictionsRequest.SerializeToString,
response_deserializer=google_dot_rpc_dot_status__pb2.Status.FromString,
)
self.CreateClusterPredictions = channel.unary_unary(
'/containersai.alameda.v1alpha1.datahub.DatahubService/CreateClusterPredictions',
request_serializer=alameda__api_dot_v1alpha1_dot_datahub_dot_predictions_dot_services__pb2.CreateClusterPredictionsRequest.SerializeToString,
response_deserializer=google_dot_rpc_dot_status__pb2.Status.FromString,
)
self.ListPredictions = channel.unary_unary(
'/containersai.alameda.v1alpha1.datahub.DatahubService/ListPredictions',
request_serializer=alameda__api_dot_v1alpha1_dot_datahub_dot_predictions_dot_services__pb2.ListPredictionsRequest.SerializeToString,
response_deserializer=alameda__api_dot_v1alpha1_dot_datahub_dot_predictions_dot_services__pb2.ListPredictionsResponse.FromString,
)
self.ListPodPredictions = channel.unary_unary(
'/containersai.alameda.v1alpha1.datahub.DatahubService/ListPodPredictions',
request_serializer=alameda__api_dot_v1alpha1_dot_datahub_dot_predictions_dot_services__pb2.ListPodPredictionsRequest.SerializeToString,
response_deserializer=alameda__api_dot_v1alpha1_dot_datahub_dot_predictions_dot_services__pb2.ListPodPredictionsResponse.FromString,
)
self.ListControllerPredictions = channel.unary_unary(
'/containersai.alameda.v1alpha1.datahub.DatahubService/ListControllerPredictions',
request_serializer=alameda__api_dot_v1alpha1_dot_datahub_dot_predictions_dot_services__pb2.ListControllerPredictionsRequest.SerializeToString,
response_deserializer=alameda__api_dot_v1alpha1_dot_datahub_dot_predictions_dot_services__pb2.ListControllerPredictionsResponse.FromString,
)
self.ListApplicationPredictions = channel.unary_unary(
'/containersai.alameda.v1alpha1.datahub.DatahubService/ListApplicationPredictions',
request_serializer=alameda__api_dot_v1alpha1_dot_datahub_dot_predictions_dot_services__pb2.ListApplicationPredictionsRequest.SerializeToString,
response_deserializer=alameda__api_dot_v1alpha1_dot_datahub_dot_predictions_dot_services__pb2.ListApplicationPredictionsResponse.FromString,
)
self.ListNamespacePredictions = channel.unary_unary(
'/containersai.alameda.v1alpha1.datahub.DatahubService/ListNamespacePredictions',
request_serializer=alameda__api_dot_v1alpha1_dot_datahub_dot_predictions_dot_services__pb2.ListNamespacePredictionsRequest.SerializeToString,
response_deserializer=alameda__api_dot_v1alpha1_dot_datahub_dot_predictions_dot_services__pb2.ListNamespacePredictionsResponse.FromString,
)
self.ListNodePredictions = channel.unary_unary(
'/containersai.alameda.v1alpha1.datahub.DatahubService/ListNodePredictions',
request_serializer=alameda__api_dot_v1alpha1_dot_datahub_dot_predictions_dot_services__pb2.ListNodePredictionsRequest.SerializeToString,
response_deserializer=alameda__api_dot_v1alpha1_dot_datahub_dot_predictions_dot_services__pb2.ListNodePredictionsResponse.FromString,
)
self.ListClusterPredictions = channel.unary_unary(
'/containersai.alameda.v1alpha1.datahub.DatahubService/ListClusterPredictions',
request_serializer=alameda__api_dot_v1alpha1_dot_datahub_dot_predictions_dot_services__pb2.ListClusterPredictionsRequest.SerializeToString,
response_deserializer=alameda__api_dot_v1alpha1_dot_datahub_dot_predictions_dot_services__pb2.ListClusterPredictionsResponse.FromString,
)
self.ReadRawdata = channel.unary_unary(
'/containersai.alameda.v1alpha1.datahub.DatahubService/ReadRawdata',
request_serializer=alameda__api_dot_v1alpha1_dot_datahub_dot_rawdata_dot_services__pb2.ReadRawdataRequest.SerializeToString,
response_deserializer=alameda__api_dot_v1alpha1_dot_datahub_dot_rawdata_dot_services__pb2.ReadRawdataResponse.FromString,
)
self.WriteRawdata = channel.unary_unary(
'/containersai.alameda.v1alpha1.datahub.DatahubService/WriteRawdata',
request_serializer=alameda__api_dot_v1alpha1_dot_datahub_dot_rawdata_dot_services__pb2.WriteRawdataRequest.SerializeToString,
response_deserializer=google_dot_rpc_dot_status__pb2.Status.FromString,
)
self.CreateRecommendations = channel.unary_unary(
'/containersai.alameda.v1alpha1.datahub.DatahubService/CreateRecommendations',
request_serializer=alameda__api_dot_v1alpha1_dot_datahub_dot_recommendations_dot_services__pb2.CreateRecommendationsRequest.SerializeToString,
response_deserializer=google_dot_rpc_dot_status__pb2.Status.FromString,
)
self.CreatePodRecommendations = channel.unary_unary(
'/containersai.alameda.v1alpha1.datahub.DatahubService/CreatePodRecommendations',
request_serializer=alameda__api_dot_v1alpha1_dot_datahub_dot_recommendations_dot_services__pb2.CreatePodRecommendationsRequest.SerializeToString,
response_deserializer=google_dot_rpc_dot_status__pb2.Status.FromString,
)
self.CreateControllerRecommendations = channel.unary_unary(
'/containersai.alameda.v1alpha1.datahub.DatahubService/CreateControllerRecommendations',
request_serializer=alameda__api_dot_v1alpha1_dot_datahub_dot_recommendations_dot_services__pb2.CreateControllerRecommendationsRequest.SerializeToString,
response_deserializer=google_dot_rpc_dot_status__pb2.Status.FromString,
)
self.CreateApplicationRecommendations = channel.unary_unary(
'/containersai.alameda.v1alpha1.datahub.DatahubService/CreateApplicationRecommendations',
request_serializer=alameda__api_dot_v1alpha1_dot_datahub_dot_recommendations_dot_services__pb2.CreateApplicationRecommendationsRequest.SerializeToString,
response_deserializer=google_dot_rpc_dot_status__pb2.Status.FromString,
)
self.CreateNamespaceRecommendations = channel.unary_unary(
'/containersai.alameda.v1alpha1.datahub.DatahubService/CreateNamespaceRecommendations',
request_serializer=alameda__api_dot_v1alpha1_dot_datahub_dot_recommendations_dot_services__pb2.CreateNamespaceRecommendationsRequest.SerializeToString,
response_deserializer=google_dot_rpc_dot_status__pb2.Status.FromString,
)
self.CreateNodeRecommendations = channel.unary_unary(
'/containersai.alameda.v1alpha1.datahub.DatahubService/CreateNodeRecommendations',
request_serializer=alameda__api_dot_v1alpha1_dot_datahub_dot_recommendations_dot_services__pb2.CreateNodeRecommendationsRequest.SerializeToString,
response_deserializer=google_dot_rpc_dot_status__pb2.Status.FromString,
)
self.CreateClusterRecommendations = channel.unary_unary(
'/containersai.alameda.v1alpha1.datahub.DatahubService/CreateClusterRecommendations',
request_serializer=alameda__api_dot_v1alpha1_dot_datahub_dot_recommendations_dot_services__pb2.CreateClusterRecommendationsRequest.SerializeToString,
response_deserializer=google_dot_rpc_dot_status__pb2.Status.FromString,
)
self.ListRecommendations = channel.unary_unary(
'/containersai.alameda.v1alpha1.datahub.DatahubService/ListRecommendations',
request_serializer=alameda__api_dot_v1alpha1_dot_datahub_dot_recommendations_dot_services__pb2.ListRecommendationsRequest.SerializeToString,
response_deserializer=alameda__api_dot_v1alpha1_dot_datahub_dot_recommendations_dot_services__pb2.ListRecommendationsResponse.FromString,
)
self.ListPodRecommendations = channel.unary_unary(
'/containersai.alameda.v1alpha1.datahub.DatahubService/ListPodRecommendations',
request_serializer=alameda__api_dot_v1alpha1_dot_datahub_dot_recommendations_dot_services__pb2.ListPodRecommendationsRequest.SerializeToString,
response_deserializer=alameda__api_dot_v1alpha1_dot_datahub_dot_recommendations_dot_services__pb2.ListPodRecommendationsResponse.FromString,
)
self.ListAvailablePodRecommendations = channel.unary_unary(
'/containersai.alameda.v1alpha1.datahub.DatahubService/ListAvailablePodRecommendations',
request_serializer=alameda__api_dot_v1alpha1_dot_datahub_dot_recommendations_dot_services__pb2.ListPodRecommendationsRequest.SerializeToString,
response_deserializer=alameda__api_dot_v1alpha1_dot_datahub_dot_recommendations_dot_services__pb2.ListPodRecommendationsResponse.FromString,
)
self.ListControllerRecommendations = channel.unary_unary(
'/containersai.alameda.v1alpha1.datahub.DatahubService/ListControllerRecommendations',
request_serializer=alameda__api_dot_v1alpha1_dot_datahub_dot_recommendations_dot_services__pb2.ListControllerRecommendationsRequest.SerializeToString,
response_deserializer=alameda__api_dot_v1alpha1_dot_datahub_dot_recommendations_dot_services__pb2.ListControllerRecommendationsResponse.FromString,
)
self.ListApplicationRecommendations = channel.unary_unary(
'/containersai.alameda.v1alpha1.datahub.DatahubService/ListApplicationRecommendations',
request_serializer=alameda__api_dot_v1alpha1_dot_datahub_dot_recommendations_dot_services__pb2.ListApplicationRecommendationsRequest.SerializeToString,
response_deserializer=alameda__api_dot_v1alpha1_dot_datahub_dot_recommendations_dot_services__pb2.ListApplicationRecommendationsResponse.FromString,
)
self.ListNamespaceRecommendations = channel.unary_unary(
'/containersai.alameda.v1alpha1.datahub.DatahubService/ListNamespaceRecommendations',
request_serializer=alameda__api_dot_v1alpha1_dot_datahub_dot_recommendations_dot_services__pb2.ListNamespaceRecommendationsRequest.SerializeToString,
response_deserializer=alameda__api_dot_v1alpha1_dot_datahub_dot_recommendations_dot_services__pb2.ListNamespaceRecommendationsResponse.FromString,
)
self.ListNodeRecommendations = channel.unary_unary(
'/containersai.alameda.v1alpha1.datahub.DatahubService/ListNodeRecommendations',
request_serializer=alameda__api_dot_v1alpha1_dot_datahub_dot_recommendations_dot_services__pb2.ListNodeRecommendationsRequest.SerializeToString,
response_deserializer=alameda__api_dot_v1alpha1_dot_datahub_dot_recommendations_dot_services__pb2.ListNodeRecommendationsResponse.FromString,
)
self.ListClusterRecommendations = channel.unary_unary(
'/containersai.alameda.v1alpha1.datahub.DatahubService/ListClusterRecommendations',
request_serializer=alameda__api_dot_v1alpha1_dot_datahub_dot_recommendations_dot_services__pb2.ListClusterRecommendationsRequest.SerializeToString,
response_deserializer=alameda__api_dot_v1alpha1_dot_datahub_dot_recommendations_dot_services__pb2.ListClusterRecommendationsResponse.FromString,
)
self.CreatePods = channel.unary_unary(
'/containersai.alameda.v1alpha1.datahub.DatahubService/CreatePods',
request_serializer=alameda__api_dot_v1alpha1_dot_datahub_dot_resources_dot_services__pb2.CreatePodsRequest.SerializeToString,
response_deserializer=google_dot_rpc_dot_status__pb2.Status.FromString,
)
self.CreateControllers = channel.unary_unary(
'/containersai.alameda.v1alpha1.datahub.DatahubService/CreateControllers',
request_serializer=alameda__api_dot_v1alpha1_dot_datahub_dot_resources_dot_services__pb2.CreateControllersRequest.SerializeToString,
response_deserializer=google_dot_rpc_dot_status__pb2.Status.FromString,
)
self.CreateApplications = channel.unary_unary(
'/containersai.alameda.v1alpha1.datahub.DatahubService/CreateApplications',
request_serializer=alameda__api_dot_v1alpha1_dot_datahub_dot_resources_dot_services__pb2.CreateApplicationsRequest.SerializeToString,
response_deserializer=google_dot_rpc_dot_status__pb2.Status.FromString,
)
self.CreateNamespaces = channel.unary_unary(
'/containersai.alameda.v1alpha1.datahub.DatahubService/CreateNamespaces',
request_serializer=alameda__api_dot_v1alpha1_dot_datahub_dot_resources_dot_services__pb2.CreateNamespacesRequest.SerializeToString,
response_deserializer=google_dot_rpc_dot_status__pb2.Status.FromString,
)
self.CreateNodes = channel.unary_unary(
'/containersai.alameda.v1alpha1.datahub.DatahubService/CreateNodes',
request_serializer=alameda__api_dot_v1alpha1_dot_datahub_dot_resources_dot_services__pb2.CreateNodesRequest.SerializeToString,
response_deserializer=google_dot_rpc_dot_status__pb2.Status.FromString,
)
self.CreateClusters = channel.unary_unary(
'/containersai.alameda.v1alpha1.datahub.DatahubService/CreateClusters',
request_serializer=alameda__api_dot_v1alpha1_dot_datahub_dot_resources_dot_services__pb2.CreateClustersRequest.SerializeToString,
response_deserializer=google_dot_rpc_dot_status__pb2.Status.FromString,
)
self.ListPods = channel.unary_unary(
'/containersai.alameda.v1alpha1.datahub.DatahubService/ListPods',
request_serializer=alameda__api_dot_v1alpha1_dot_datahub_dot_resources_dot_services__pb2.ListPodsRequest.SerializeToString,
response_deserializer=alameda__api_dot_v1alpha1_dot_datahub_dot_resources_dot_services__pb2.ListPodsResponse.FromString,
)
self.ListControllers = channel.unary_unary(
'/containersai.alameda.v1alpha1.datahub.DatahubService/ListControllers',
request_serializer=alameda__api_dot_v1alpha1_dot_datahub_dot_resources_dot_services__pb2.ListControllersRequest.SerializeToString,
response_deserializer=alameda__api_dot_v1alpha1_dot_datahub_dot_resources_dot_services__pb2.ListControllersResponse.FromString,
)
self.ListApplications = channel.unary_unary(
'/containersai.alameda.v1alpha1.datahub.DatahubService/ListApplications',
request_serializer=alameda__api_dot_v1alpha1_dot_datahub_dot_resources_dot_services__pb2.ListApplicationsRequest.SerializeToString,
response_deserializer=alameda__api_dot_v1alpha1_dot_datahub_dot_resources_dot_services__pb2.ListApplicationsResponse.FromString,
)
self.ListNamespaces = channel.unary_unary(
'/containersai.alameda.v1alpha1.datahub.DatahubService/ListNamespaces',
request_serializer=alameda__api_dot_v1alpha1_dot_datahub_dot_resources_dot_services__pb2.ListNamespacesRequest.SerializeToString,
response_deserializer=alameda__api_dot_v1alpha1_dot_datahub_dot_resources_dot_services__pb2.ListNamespacesResponse.FromString,
)
self.ListNodes = channel.unary_unary(
'/containersai.alameda.v1alpha1.datahub.DatahubService/ListNodes',
request_serializer=alameda__api_dot_v1alpha1_dot_datahub_dot_resources_dot_services__pb2.ListNodesRequest.SerializeToString,
response_deserializer=alameda__api_dot_v1alpha1_dot_datahub_dot_resources_dot_services__pb2.ListNodesResponse.FromString,
)
self.ListClusters = channel.unary_unary(
'/containersai.alameda.v1alpha1.datahub.DatahubService/ListClusters',
request_serializer=alameda__api_dot_v1alpha1_dot_datahub_dot_resources_dot_services__pb2.ListClustersRequest.SerializeToString,
response_deserializer=alameda__api_dot_v1alpha1_dot_datahub_dot_resources_dot_services__pb2.ListClustersResponse.FromString,
)
self.DeletePods = channel.unary_unary(
'/containersai.alameda.v1alpha1.datahub.DatahubService/DeletePods',
request_serializer=alameda__api_dot_v1alpha1_dot_datahub_dot_resources_dot_services__pb2.DeletePodsRequest.SerializeToString,
response_deserializer=google_dot_rpc_dot_status__pb2.Status.FromString,
)
self.DeleteControllers = channel.unary_unary(
'/containersai.alameda.v1alpha1.datahub.DatahubService/DeleteControllers',
request_serializer=alameda__api_dot_v1alpha1_dot_datahub_dot_resources_dot_services__pb2.DeleteControllersRequest.SerializeToString,
response_deserializer=google_dot_rpc_dot_status__pb2.Status.FromString,
)
self.DeleteApplications = channel.unary_unary(
'/containersai.alameda.v1alpha1.datahub.DatahubService/DeleteApplications',
request_serializer=alameda__api_dot_v1alpha1_dot_datahub_dot_resources_dot_services__pb2.DeleteApplicationsRequest.SerializeToString,
response_deserializer=google_dot_rpc_dot_status__pb2.Status.FromString,
)
self.DeleteNamespaces = channel.unary_unary(
'/containersai.alameda.v1alpha1.datahub.DatahubService/DeleteNamespaces',
request_serializer=alameda__api_dot_v1alpha1_dot_datahub_dot_resources_dot_services__pb2.DeleteNamespacesRequest.SerializeToString,
response_deserializer=google_dot_rpc_dot_status__pb2.Status.FromString,
)
self.DeleteNodes = channel.unary_unary(
'/containersai.alameda.v1alpha1.datahub.DatahubService/DeleteNodes',
request_serializer=alameda__api_dot_v1alpha1_dot_datahub_dot_resources_dot_services__pb2.DeleteNodesRequest.SerializeToString,
response_deserializer=google_dot_rpc_dot_status__pb2.Status.FromString,
)
self.DeleteClusters = channel.unary_unary(
'/containersai.alameda.v1alpha1.datahub.DatahubService/DeleteClusters',
request_serializer=alameda__api_dot_v1alpha1_dot_datahub_dot_resources_dot_services__pb2.DeleteClustersRequest.SerializeToString,
response_deserializer=google_dot_rpc_dot_status__pb2.Status.FromString,
)
self.CreateSchemas = channel.unary_unary(
'/containersai.alameda.v1alpha1.datahub.DatahubService/CreateSchemas',
request_serializer=alameda__api_dot_v1alpha1_dot_datahub_dot_schemas_dot_services__pb2.CreateSchemasRequest.SerializeToString,
response_deserializer=google_dot_rpc_dot_status__pb2.Status.FromString,
)
self.ListSchemas = channel.unary_unary(
'/containersai.alameda.v1alpha1.datahub.DatahubService/ListSchemas',
request_serializer=alameda__api_dot_v1alpha1_dot_datahub_dot_schemas_dot_services__pb2.ListSchemasRequest.SerializeToString,
response_deserializer=alameda__api_dot_v1alpha1_dot_datahub_dot_schemas_dot_services__pb2.ListSchemasResponse.FromString,
)
self.DeleteSchemas = channel.unary_unary(
'/containersai.alameda.v1alpha1.datahub.DatahubService/DeleteSchemas',
request_serializer=alameda__api_dot_v1alpha1_dot_datahub_dot_schemas_dot_services__pb2.DeleteSchemasRequest.SerializeToString,
response_deserializer=google_dot_rpc_dot_status__pb2.Status.FromString,
)
self.CreateSimulatedSchedulingScores = channel.unary_unary(
'/containersai.alameda.v1alpha1.datahub.DatahubService/CreateSimulatedSchedulingScores',
request_serializer=alameda__api_dot_v1alpha1_dot_datahub_dot_scores_dot_services__pb2.CreateSimulatedSchedulingScoresRequest.SerializeToString,
response_deserializer=google_dot_rpc_dot_status__pb2.Status.FromString,
)
self.ListSimulatedSchedulingScores = channel.unary_unary(
'/containersai.alameda.v1alpha1.datahub.DatahubService/ListSimulatedSchedulingScores',
request_serializer=alameda__api_dot_v1alpha1_dot_datahub_dot_scores_dot_services__pb2.ListSimulatedSchedulingScoresRequest.SerializeToString,
response_deserializer=alameda__api_dot_v1alpha1_dot_datahub_dot_scores_dot_services__pb2.ListSimulatedSchedulingScoresResponse.FromString,
)
self.ListWeaveScopeHosts = channel.unary_unary(
'/containersai.alameda.v1alpha1.datahub.DatahubService/ListWeaveScopeHosts',
request_serializer=alameda__api_dot_v1alpha1_dot_datahub_dot_weavescope_dot_services__pb2.ListWeaveScopeHostsRequest.SerializeToString,
response_deserializer=alameda__api_dot_v1alpha1_dot_datahub_dot_weavescope_dot_services__pb2.WeaveScopeResponse.FromString,
)
self.GetWeaveScopeHostDetails = channel.unary_unary(
'/containersai.alameda.v1alpha1.datahub.DatahubService/GetWeaveScopeHostDetails',
request_serializer=alameda__api_dot_v1alpha1_dot_datahub_dot_weavescope_dot_services__pb2.ListWeaveScopeHostsRequest.SerializeToString,
response_deserializer=alameda__api_dot_v1alpha1_dot_datahub_dot_weavescope_dot_services__pb2.WeaveScopeResponse.FromString,
)
self.ListWeaveScopePods = channel.unary_unary(
'/containersai.alameda.v1alpha1.datahub.DatahubService/ListWeaveScopePods',
request_serializer=alameda__api_dot_v1alpha1_dot_datahub_dot_weavescope_dot_services__pb2.ListWeaveScopePodsRequest.SerializeToString,
response_deserializer=alameda__api_dot_v1alpha1_dot_datahub_dot_weavescope_dot_services__pb2.WeaveScopeResponse.FromString,
)
self.GetWeaveScopePodDetails = channel.unary_unary(
'/containersai.alameda.v1alpha1.datahub.DatahubService/GetWeaveScopePodDetails',
request_serializer=alameda__api_dot_v1alpha1_dot_datahub_dot_weavescope_dot_services__pb2.ListWeaveScopePodsRequest.SerializeToString,
response_deserializer=alameda__api_dot_v1alpha1_dot_datahub_dot_weavescope_dot_services__pb2.WeaveScopeResponse.FromString,
)
self.ListWeaveScopeContainers = channel.unary_unary(
'/containersai.alameda.v1alpha1.datahub.DatahubService/ListWeaveScopeContainers',
request_serializer=alameda__api_dot_v1alpha1_dot_datahub_dot_weavescope_dot_services__pb2.ListWeaveScopeContainersRequest.SerializeToString,
response_deserializer=alameda__api_dot_v1alpha1_dot_datahub_dot_weavescope_dot_services__pb2.WeaveScopeResponse.FromString,
)
self.ListWeaveScopeContainersByHostname = channel.unary_unary(
'/containersai.alameda.v1alpha1.datahub.DatahubService/ListWeaveScopeContainersByHostname',
request_serializer=alameda__api_dot_v1alpha1_dot_datahub_dot_weavescope_dot_services__pb2.ListWeaveScopeContainersRequest.SerializeToString,
response_deserializer=alameda__api_dot_v1alpha1_dot_datahub_dot_weavescope_dot_services__pb2.WeaveScopeResponse.FromString,
)
self.ListWeaveScopeContainersByImage = channel.unary_unary(
'/containersai.alameda.v1alpha1.datahub.DatahubService/ListWeaveScopeContainersByImage',
request_serializer=alameda__api_dot_v1alpha1_dot_datahub_dot_weavescope_dot_services__pb2.ListWeaveScopeContainersRequest.SerializeToString,
response_deserializer=alameda__api_dot_v1alpha1_dot_datahub_dot_weavescope_dot_services__pb2.WeaveScopeResponse.FromString,
)
self.GetWeaveScopeContainerDetails = channel.unary_unary(
'/containersai.alameda.v1alpha1.datahub.DatahubService/GetWeaveScopeContainerDetails',
request_serializer=alameda__api_dot_v1alpha1_dot_datahub_dot_weavescope_dot_services__pb2.ListWeaveScopeContainersRequest.SerializeToString,
response_deserializer=alameda__api_dot_v1alpha1_dot_datahub_dot_weavescope_dot_services__pb2.WeaveScopeResponse.FromString,
)
class DatahubServiceServicer(object):
"""Service for providing data stored in the backend
"""
def CreateApps(self, request, context):
# missing associated documentation comment in .proto file
pass
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
context.set_details('Method not implemented!')
raise NotImplementedError('Method not implemented!')
def ListApps(self, request, context):
# missing associated documentation comment in .proto file
pass
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
context.set_details('Method not implemented!')
raise NotImplementedError('Method not implemented!')
def DeleteApps(self, request, context):
# missing associated documentation comment in .proto file
pass
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
context.set_details('Method not implemented!')
raise NotImplementedError('Method not implemented!')
def ReadData(self, request, context):
"""Used to read data based on alameda specific schemas
"""
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
context.set_details('Method not implemented!')
raise NotImplementedError('Method not implemented!')
def WriteData(self, request, context):
"""Used to write data based on alameda specific schemas
"""
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
context.set_details('Method not implemented!')
raise NotImplementedError('Method not implemented!')
def DeleteData(self, request, context):
"""Used to delete data based on alameda specific schemas
"""
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
context.set_details('Method not implemented!')
raise NotImplementedError('Method not implemented!')
def WriteMeta(self, request, context):
"""Used to write metadata based on alameda specific schemas
"""
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
context.set_details('Method not implemented!')
raise NotImplementedError('Method not implemented!')
def CreateEvents(self, request, context):
"""Used to create alameda specific events
"""
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
context.set_details('Method not implemented!')
raise NotImplementedError('Method not implemented!')
def ListEvents(self, request, context):
"""Used to list alameda specific events
"""
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
context.set_details('Method not implemented!')
raise NotImplementedError('Method not implemented!')
def CreateGpuPredictions(self, request, context):
"""Used to create GPU predictions
"""
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
context.set_details('Method not implemented!')
raise NotImplementedError('Method not implemented!')
def ListGpus(self, request, context):
"""Used to list GPU need to be predicted
"""
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
context.set_details('Method not implemented!')
raise NotImplementedError('Method not implemented!')
def ListGpuMetrics(self, request, context):
"""Used to list GPU metrics data
"""
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
context.set_details('Method not implemented!')
raise NotImplementedError('Method not implemented!')
def ListGpuPredictions(self, request, context):
"""Used to list GPU predictions
"""
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
context.set_details('Method not implemented!')
raise NotImplementedError('Method not implemented!')
def GetLicense(self, request, context):
"""Used to get datahub license information
"""
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
context.set_details('Method not implemented!')
raise NotImplementedError('Method not implemented!')
def CreateMetrics(self, request, context):
# missing associated documentation comment in .proto file
pass
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
context.set_details('Method not implemented!')
raise NotImplementedError('Method not implemented!')
def CreatePodMetrics(self, request, context):
# missing associated documentation comment in .proto file
pass
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
context.set_details('Method not implemented!')
raise NotImplementedError('Method not implemented!')
def CreateControllerMetrics(self, request, context):
# missing associated documentation comment in .proto file
pass
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
context.set_details('Method not implemented!')
raise NotImplementedError('Method not implemented!')
def CreateApplicationMetrics(self, request, context):
# missing associated documentation comment in .proto file
pass
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
context.set_details('Method not implemented!')
raise NotImplementedError('Method not implemented!')
def CreateNamespaceMetrics(self, request, context):
# missing associated documentation comment in .proto file
pass
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
context.set_details('Method not implemented!')
raise NotImplementedError('Method not implemented!')
def CreateNodeMetrics(self, request, context):
# missing associated documentation comment in .proto file
pass
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
context.set_details('Method not implemented!')
raise NotImplementedError('Method not implemented!')
def CreateClusterMetrics(self, request, context):
# missing associated documentation comment in .proto file
pass
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
context.set_details('Method not implemented!')
raise NotImplementedError('Method not implemented!')
def ListMetrics(self, request, context):
# missing associated documentation comment in .proto file
pass
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
context.set_details('Method not implemented!')
raise NotImplementedError('Method not implemented!')
def ListPodMetrics(self, request, context):
"""Used to list pod metric data
"""
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
context.set_details('Method not implemented!')
raise NotImplementedError('Method not implemented!')
def ListControllerMetrics(self, request, context):
"""Used to list controller metric data
"""
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
context.set_details('Method not implemented!')
raise NotImplementedError('Method not implemented!')
def ListApplicationMetrics(self, request, context):
"""Used to list alameda scaler metric data
"""
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
context.set_details('Method not implemented!')
raise NotImplementedError('Method not implemented!')
def ListNamespaceMetrics(self, request, context):
"""Used to list namespace metric data
"""
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
context.set_details('Method not implemented!')
raise NotImplementedError('Method not implemented!')
def ListNodeMetrics(self, request, context):
"""Used to list node metric data
"""
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
context.set_details('Method not implemented!')
raise NotImplementedError('Method not implemented!')
def ListClusterMetrics(self, request, context):
"""Used to list cluster metric data
"""
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
context.set_details('Method not implemented!')
raise NotImplementedError('Method not implemented!')
def Ping(self, request, context):
"""Used to check if datahub is still alive
"""
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
context.set_details('Method not implemented!')
raise NotImplementedError('Method not implemented!')
def CreatePlannings(self, request, context):
# missing associated documentation comment in .proto file
pass
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
context.set_details('Method not implemented!')
raise NotImplementedError('Method not implemented!')
def CreatePodPlannings(self, request, context):
# missing associated documentation comment in .proto file
pass
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
context.set_details('Method not implemented!')
raise NotImplementedError('Method not implemented!')
def CreateControllerPlannings(self, request, context):
# missing associated documentation comment in .proto file
pass
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
context.set_details('Method not implemented!')
raise NotImplementedError('Method not implemented!')
def CreateApplicationPlannings(self, request, context):
# missing associated documentation comment in .proto file
pass
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
context.set_details('Method not implemented!')
raise NotImplementedError('Method not implemented!')
def CreateNamespacePlannings(self, request, context):
# missing associated documentation comment in .proto file
pass
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
context.set_details('Method not implemented!')
raise NotImplementedError('Method not implemented!')
def CreateNodePlannings(self, request, context):
# missing associated documentation comment in .proto file
pass
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
context.set_details('Method not implemented!')
raise NotImplementedError('Method not implemented!')
def CreateClusterPlannings(self, request, context):
# missing associated documentation comment in .proto file
pass
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
context.set_details('Method not implemented!')
raise NotImplementedError('Method not implemented!')
def ListPlannings(self, request, context):
# missing associated documentation comment in .proto file
pass
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
context.set_details('Method not implemented!')
raise NotImplementedError('Method not implemented!')
def ListPodPlannings(self, request, context):
# missing associated documentation comment in .proto file
pass
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
context.set_details('Method not implemented!')
raise NotImplementedError('Method not implemented!')
def ListControllerPlannings(self, request, context):
# missing associated documentation comment in .proto file
pass
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
context.set_details('Method not implemented!')
raise NotImplementedError('Method not implemented!')
def ListApplicationPlannings(self, request, context):
# missing associated documentation comment in .proto file
pass
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
context.set_details('Method not implemented!')
raise NotImplementedError('Method not implemented!')
def ListNamespacePlannings(self, request, context):
# missing associated documentation comment in .proto file
pass
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
context.set_details('Method not implemented!')
raise NotImplementedError('Method not implemented!')
def ListNodePlannings(self, request, context):
# missing associated documentation comment in .proto file
pass
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
context.set_details('Method not implemented!')
raise NotImplementedError('Method not implemented!')
def ListClusterPlannings(self, request, context):
# missing associated documentation comment in .proto file
pass
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
context.set_details('Method not implemented!')
raise NotImplementedError('Method not implemented!')
def CreatePredictions(self, request, context):
# missing associated documentation comment in .proto file
pass
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
context.set_details('Method not implemented!')
raise NotImplementedError('Method not implemented!')
def CreatePodPredictions(self, request, context):
"""Used to create predictions of pods
"""
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
context.set_details('Method not implemented!')
raise NotImplementedError('Method not implemented!')
def CreateControllerPredictions(self, request, context):
"""Used to create predictions of controllers
"""
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
context.set_details('Method not implemented!')
raise NotImplementedError('Method not implemented!')
def CreateApplicationPredictions(self, request, context):
"""Used to create predictions of alameda scalers
"""
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
context.set_details('Method not implemented!')
raise NotImplementedError('Method not implemented!')
def CreateNamespacePredictions(self, request, context):
"""Used to create predictions of namespaces
"""
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
context.set_details('Method not implemented!')
raise NotImplementedError('Method not implemented!')
def CreateNodePredictions(self, request, context):
"""Used to create predictions of nodes
"""
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
context.set_details('Method not implemented!')
raise NotImplementedError('Method not implemented!')
def CreateClusterPredictions(self, request, context):
"""Used to create predictions of clusters
"""
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
context.set_details('Method not implemented!')
raise NotImplementedError('Method not implemented!')
def ListPredictions(self, request, context):
# missing associated documentation comment in .proto file
pass
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
context.set_details('Method not implemented!')
raise NotImplementedError('Method not implemented!')
def ListPodPredictions(self, request, context):
"""Used to list pod predictions
"""
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
context.set_details('Method not implemented!')
raise NotImplementedError('Method not implemented!')
def ListControllerPredictions(self, request, context):
"""Used to list controller predictions
"""
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
context.set_details('Method not implemented!')
raise NotImplementedError('Method not implemented!')
def ListApplicationPredictions(self, request, context):
"""Used to list alameda scaler predictions
"""
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
context.set_details('Method not implemented!')
raise NotImplementedError('Method not implemented!')
def ListNamespacePredictions(self, request, context):
"""Used to list namespace predictions
"""
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
context.set_details('Method not implemented!')
raise NotImplementedError('Method not implemented!')
def ListNodePredictions(self, request, context):
"""Used to list node predictions
"""
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
context.set_details('Method not implemented!')
raise NotImplementedError('Method not implemented!')
def ListClusterPredictions(self, request, context):
"""Used to list cluster predictions
"""
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
context.set_details('Method not implemented!')
raise NotImplementedError('Method not implemented!')
def ReadRawdata(self, request, context):
"""Rawdata --------------------------------------------------
"""
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
context.set_details('Method not implemented!')
raise NotImplementedError('Method not implemented!')
def WriteRawdata(self, request, context):
# missing associated documentation comment in .proto file
pass
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
context.set_details('Method not implemented!')
raise NotImplementedError('Method not implemented!')
def CreateRecommendations(self, request, context):
# missing associated documentation comment in .proto file
pass
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
context.set_details('Method not implemented!')
raise NotImplementedError('Method not implemented!')
def CreatePodRecommendations(self, request, context):
"""Used to create recommendations of pods
"""
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
context.set_details('Method not implemented!')
raise NotImplementedError('Method not implemented!')
def CreateControllerRecommendations(self, request, context):
"""Used to create recommendations of controllers
"""
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
context.set_details('Method not implemented!')
raise NotImplementedError('Method not implemented!')
def CreateApplicationRecommendations(self, request, context):
"""Used to create recommendations of alameda scalers
"""
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
context.set_details('Method not implemented!')
raise NotImplementedError('Method not implemented!')
def CreateNamespaceRecommendations(self, request, context):
"""Used to create recommendations of namespaces
"""
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
context.set_details('Method not implemented!')
raise NotImplementedError('Method not implemented!')
def CreateNodeRecommendations(self, request, context):
"""Used to create recommendations of nodes
"""
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
context.set_details('Method not implemented!')
raise NotImplementedError('Method not implemented!')
def CreateClusterRecommendations(self, request, context):
"""Used to create recommendations of clusters
"""
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
context.set_details('Method not implemented!')
raise NotImplementedError('Method not implemented!')
def ListRecommendations(self, request, context):
# missing associated documentation comment in .proto file
pass
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
context.set_details('Method not implemented!')
raise NotImplementedError('Method not implemented!')
def ListPodRecommendations(self, request, context):
"""Used to list pod recommenations
"""
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
context.set_details('Method not implemented!')
raise NotImplementedError('Method not implemented!')
def ListAvailablePodRecommendations(self, request, context):
"""Used to list available pod recommenations
"""
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
context.set_details('Method not implemented!')
raise NotImplementedError('Method not implemented!')
def ListControllerRecommendations(self, request, context):
"""Used to list controller recommenations
"""
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
context.set_details('Method not implemented!')
raise NotImplementedError('Method not implemented!')
def ListApplicationRecommendations(self, request, context):
"""Used to list alameda scaler recommenations
"""
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
context.set_details('Method not implemented!')
raise NotImplementedError('Method not implemented!')
def ListNamespaceRecommendations(self, request, context):
"""Used to list namespace recommenations
"""
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
context.set_details('Method not implemented!')
raise NotImplementedError('Method not implemented!')
def ListNodeRecommendations(self, request, context):
"""Used to list node recommenations
"""
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
context.set_details('Method not implemented!')
raise NotImplementedError('Method not implemented!')
def ListClusterRecommendations(self, request, context):
"""Used to list cluster recommenations
"""
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
context.set_details('Method not implemented!')
raise NotImplementedError('Method not implemented!')
def CreatePods(self, request, context):
"""Used to add pods that need to be predicted
"""
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
context.set_details('Method not implemented!')
raise NotImplementedError('Method not implemented!')
def CreateControllers(self, request, context):
"""Used to add controllers that need to be predicted
"""
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
context.set_details('Method not implemented!')
raise NotImplementedError('Method not implemented!')
def CreateApplications(self, request, context):
"""Used to add alameda scalers that need to be predicted
"""
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
context.set_details('Method not implemented!')
raise NotImplementedError('Method not implemented!')
def CreateNamespaces(self, request, context):
"""Used to add namespaces that need to be predicted
"""
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
context.set_details('Method not implemented!')
raise NotImplementedError('Method not implemented!')
def CreateNodes(self, request, context):
"""Used to add nodes that need to be predicted
"""
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
context.set_details('Method not implemented!')
raise NotImplementedError('Method not implemented!')
def CreateClusters(self, request, context):
"""Used to add clusters that need to be predicted
"""
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
context.set_details('Method not implemented!')
raise NotImplementedError('Method not implemented!')
def ListPods(self, request, context):
"""Used to list pods need to be predicted
"""
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
context.set_details('Method not implemented!')
raise NotImplementedError('Method not implemented!')
def ListControllers(self, request, context):
"""Used to list contollers need to be predicted
"""
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
context.set_details('Method not implemented!')
raise NotImplementedError('Method not implemented!')
def ListApplications(self, request, context):
"""Used to list alameda scalers need to be predicted
"""
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
context.set_details('Method not implemented!')
raise NotImplementedError('Method not implemented!')
def ListNamespaces(self, request, context):
"""Used to list namespaces need to be predicted
"""
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
context.set_details('Method not implemented!')
raise NotImplementedError('Method not implemented!')
def ListNodes(self, request, context):
"""Used to list nodes' information
"""
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
context.set_details('Method not implemented!')
raise NotImplementedError('Method not implemented!')
def ListClusters(self, request, context):
"""Used to list clusters' information
"""
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
context.set_details('Method not implemented!')
raise NotImplementedError('Method not implemented!')
def DeletePods(self, request, context):
"""Used to stop generating predictions for the pods
"""
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
context.set_details('Method not implemented!')
raise NotImplementedError('Method not implemented!')
def DeleteControllers(self, request, context):
"""Used to stop generating predictions for the controllers
"""
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
context.set_details('Method not implemented!')
raise NotImplementedError('Method not implemented!')
def DeleteApplications(self, request, context):
"""Used to stop generating predictions for the applications
"""
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
context.set_details('Method not implemented!')
raise NotImplementedError('Method not implemented!')
def DeleteNamespaces(self, request, context):
"""Used to stop generating predictions for the namespaces
"""
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
context.set_details('Method not implemented!')
raise NotImplementedError('Method not implemented!')
def DeleteNodes(self, request, context):
"""Used to stop generating predictions for the nodes
"""
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
context.set_details('Method not implemented!')
raise NotImplementedError('Method not implemented!')
def DeleteClusters(self, request, context):
"""Used to stop generating predictions for the clusters
"""
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
context.set_details('Method not implemented!')
raise NotImplementedError('Method not implemented!')
def CreateSchemas(self, request, context):
"""Schemas --------------------------------------------------
"""
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
context.set_details('Method not implemented!')
raise NotImplementedError('Method not implemented!')
def ListSchemas(self, request, context):
# missing associated documentation comment in .proto file
pass
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
context.set_details('Method not implemented!')
raise NotImplementedError('Method not implemented!')
def DeleteSchemas(self, request, context):
# missing associated documentation comment in .proto file
pass
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
context.set_details('Method not implemented!')
raise NotImplementedError('Method not implemented!')
def CreateSimulatedSchedulingScores(self, request, context):
"""Scores --------------------------------------------------
"""
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
context.set_details('Method not implemented!')
raise NotImplementedError('Method not implemented!')
def ListSimulatedSchedulingScores(self, request, context):
"""Used to list system scores
"""
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
context.set_details('Method not implemented!')
raise NotImplementedError('Method not implemented!')
def ListWeaveScopeHosts(self, request, context):
"""weave scope --------------------------------------------------
"""
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
context.set_details('Method not implemented!')
raise NotImplementedError('Method not implemented!')
def GetWeaveScopeHostDetails(self, request, context):
# missing associated documentation comment in .proto file
pass
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
context.set_details('Method not implemented!')
raise NotImplementedError('Method not implemented!')
def ListWeaveScopePods(self, request, context):
# missing associated documentation comment in .proto file
pass
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
context.set_details('Method not implemented!')
raise NotImplementedError('Method not implemented!')
def GetWeaveScopePodDetails(self, request, context):
# missing associated documentation comment in .proto file
pass
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
context.set_details('Method not implemented!')
raise NotImplementedError('Method not implemented!')
def ListWeaveScopeContainers(self, request, context):
# missing associated documentation comment in .proto file
pass
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
context.set_details('Method not implemented!')
raise NotImplementedError('Method not implemented!')
def ListWeaveScopeContainersByHostname(self, request, context):
# missing associated documentation comment in .proto file
pass
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
context.set_details('Method not implemented!')
raise NotImplementedError('Method not implemented!')
def ListWeaveScopeContainersByImage(self, request, context):
# missing associated documentation comment in .proto file
pass
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
context.set_details('Method not implemented!')
raise NotImplementedError('Method not implemented!')
def GetWeaveScopeContainerDetails(self, request, context):
# missing associated documentation comment in .proto file
pass
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
context.set_details('Method not implemented!')
raise NotImplementedError('Method not implemented!')
def add_DatahubServiceServicer_to_server(servicer, server):
rpc_method_handlers = {
'CreateApps': grpc.unary_unary_rpc_method_handler(
servicer.CreateApps,
request_deserializer=alameda__api_dot_v1alpha1_dot_datahub_dot_applications_dot_services__pb2.CreateApplicationsRequest.FromString,
response_serializer=google_dot_rpc_dot_status__pb2.Status.SerializeToString,
),
'ListApps': grpc.unary_unary_rpc_method_handler(
servicer.ListApps,
request_deserializer=alameda__api_dot_v1alpha1_dot_datahub_dot_applications_dot_services__pb2.ListApplicationsRequest.FromString,
response_serializer=alameda__api_dot_v1alpha1_dot_datahub_dot_applications_dot_services__pb2.ListApplicationsResponse.SerializeToString,
),
'DeleteApps': grpc.unary_unary_rpc_method_handler(
servicer.DeleteApps,
request_deserializer=alameda__api_dot_v1alpha1_dot_datahub_dot_applications_dot_services__pb2.DeleteApplicationsRequest.FromString,
response_serializer=google_dot_rpc_dot_status__pb2.Status.SerializeToString,
),
'ReadData': grpc.unary_unary_rpc_method_handler(
servicer.ReadData,
request_deserializer=alameda__api_dot_v1alpha1_dot_datahub_dot_data_dot_services__pb2.ReadDataRequest.FromString,
response_serializer=alameda__api_dot_v1alpha1_dot_datahub_dot_data_dot_services__pb2.ReadDataResponse.SerializeToString,
),
'WriteData': grpc.unary_unary_rpc_method_handler(
servicer.WriteData,
request_deserializer=alameda__api_dot_v1alpha1_dot_datahub_dot_data_dot_services__pb2.WriteDataRequest.FromString,
response_serializer=google_dot_rpc_dot_status__pb2.Status.SerializeToString,
),
'DeleteData': grpc.unary_unary_rpc_method_handler(
servicer.DeleteData,
request_deserializer=alameda__api_dot_v1alpha1_dot_datahub_dot_data_dot_services__pb2.DeleteDataRequest.FromString,
response_serializer=google_dot_rpc_dot_status__pb2.Status.SerializeToString,
),
'WriteMeta': grpc.unary_unary_rpc_method_handler(
servicer.WriteMeta,
request_deserializer=alameda__api_dot_v1alpha1_dot_datahub_dot_data_dot_services__pb2.WriteMetaRequest.FromString,
response_serializer=google_dot_rpc_dot_status__pb2.Status.SerializeToString,
),
'CreateEvents': grpc.unary_unary_rpc_method_handler(
servicer.CreateEvents,
request_deserializer=alameda__api_dot_v1alpha1_dot_datahub_dot_events_dot_services__pb2.CreateEventsRequest.FromString,
response_serializer=google_dot_rpc_dot_status__pb2.Status.SerializeToString,
),
'ListEvents': grpc.unary_unary_rpc_method_handler(
servicer.ListEvents,
request_deserializer=alameda__api_dot_v1alpha1_dot_datahub_dot_events_dot_services__pb2.ListEventsRequest.FromString,
response_serializer=alameda__api_dot_v1alpha1_dot_datahub_dot_events_dot_services__pb2.ListEventsResponse.SerializeToString,
),
'CreateGpuPredictions': grpc.unary_unary_rpc_method_handler(
servicer.CreateGpuPredictions,
request_deserializer=alameda__api_dot_v1alpha1_dot_datahub_dot_gpu_dot_services__pb2.CreateGpuPredictionsRequest.FromString,
response_serializer=google_dot_rpc_dot_status__pb2.Status.SerializeToString,
),
'ListGpus': grpc.unary_unary_rpc_method_handler(
servicer.ListGpus,
request_deserializer=alameda__api_dot_v1alpha1_dot_datahub_dot_gpu_dot_services__pb2.ListGpusRequest.FromString,
response_serializer=alameda__api_dot_v1alpha1_dot_datahub_dot_gpu_dot_services__pb2.ListGpusResponse.SerializeToString,
),
'ListGpuMetrics': grpc.unary_unary_rpc_method_handler(
servicer.ListGpuMetrics,
request_deserializer=alameda__api_dot_v1alpha1_dot_datahub_dot_gpu_dot_services__pb2.ListGpuMetricsRequest.FromString,
response_serializer=alameda__api_dot_v1alpha1_dot_datahub_dot_gpu_dot_services__pb2.ListGpuMetricsResponse.SerializeToString,
),
'ListGpuPredictions': grpc.unary_unary_rpc_method_handler(
servicer.ListGpuPredictions,
request_deserializer=alameda__api_dot_v1alpha1_dot_datahub_dot_gpu_dot_services__pb2.ListGpuPredictionsRequest.FromString,
response_serializer=alameda__api_dot_v1alpha1_dot_datahub_dot_gpu_dot_services__pb2.ListGpuPredictionsResponse.SerializeToString,
),
'GetLicense': grpc.unary_unary_rpc_method_handler(
servicer.GetLicense,
request_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString,
response_serializer=alameda__api_dot_v1alpha1_dot_datahub_dot_licenses_dot_services__pb2.GetLicenseResponse.SerializeToString,
),
'CreateMetrics': grpc.unary_unary_rpc_method_handler(
servicer.CreateMetrics,
request_deserializer=alameda__api_dot_v1alpha1_dot_datahub_dot_metrics_dot_services__pb2.CreateMetricsRequest.FromString,
response_serializer=google_dot_rpc_dot_status__pb2.Status.SerializeToString,
),
'CreatePodMetrics': grpc.unary_unary_rpc_method_handler(
servicer.CreatePodMetrics,
request_deserializer=alameda__api_dot_v1alpha1_dot_datahub_dot_metrics_dot_services__pb2.CreatePodMetricsRequest.FromString,
response_serializer=google_dot_rpc_dot_status__pb2.Status.SerializeToString,
),
'CreateControllerMetrics': grpc.unary_unary_rpc_method_handler(
servicer.CreateControllerMetrics,
request_deserializer=alameda__api_dot_v1alpha1_dot_datahub_dot_metrics_dot_services__pb2.CreateControllerMetricsRequest.FromString,
response_serializer=google_dot_rpc_dot_status__pb2.Status.SerializeToString,
),
'CreateApplicationMetrics': grpc.unary_unary_rpc_method_handler(
servicer.CreateApplicationMetrics,
request_deserializer=alameda__api_dot_v1alpha1_dot_datahub_dot_metrics_dot_services__pb2.CreateApplicationMetricsRequest.FromString,
response_serializer=google_dot_rpc_dot_status__pb2.Status.SerializeToString,
),
'CreateNamespaceMetrics': grpc.unary_unary_rpc_method_handler(
servicer.CreateNamespaceMetrics,
request_deserializer=alameda__api_dot_v1alpha1_dot_datahub_dot_metrics_dot_services__pb2.CreateNamespaceMetricsRequest.FromString,
response_serializer=google_dot_rpc_dot_status__pb2.Status.SerializeToString,
),
'CreateNodeMetrics': grpc.unary_unary_rpc_method_handler(
servicer.CreateNodeMetrics,
request_deserializer=alameda__api_dot_v1alpha1_dot_datahub_dot_metrics_dot_services__pb2.CreateNodeMetricsRequest.FromString,
response_serializer=google_dot_rpc_dot_status__pb2.Status.SerializeToString,
),
'CreateClusterMetrics': grpc.unary_unary_rpc_method_handler(
servicer.CreateClusterMetrics,
request_deserializer=alameda__api_dot_v1alpha1_dot_datahub_dot_metrics_dot_services__pb2.CreateClusterMetricsRequest.FromString,
response_serializer=google_dot_rpc_dot_status__pb2.Status.SerializeToString,
),
'ListMetrics': grpc.unary_unary_rpc_method_handler(
servicer.ListMetrics,
request_deserializer=alameda__api_dot_v1alpha1_dot_datahub_dot_metrics_dot_services__pb2.ListMetricsRequest.FromString,
response_serializer=alameda__api_dot_v1alpha1_dot_datahub_dot_metrics_dot_services__pb2.ListMetricsResponse.SerializeToString,
),
'ListPodMetrics': grpc.unary_unary_rpc_method_handler(
servicer.ListPodMetrics,
request_deserializer=alameda__api_dot_v1alpha1_dot_datahub_dot_metrics_dot_services__pb2.ListPodMetricsRequest.FromString,
response_serializer=alameda__api_dot_v1alpha1_dot_datahub_dot_metrics_dot_services__pb2.ListPodMetricsResponse.SerializeToString,
),
'ListControllerMetrics': grpc.unary_unary_rpc_method_handler(
servicer.ListControllerMetrics,
request_deserializer=alameda__api_dot_v1alpha1_dot_datahub_dot_metrics_dot_services__pb2.ListControllerMetricsRequest.FromString,
response_serializer=alameda__api_dot_v1alpha1_dot_datahub_dot_metrics_dot_services__pb2.ListControllerMetricsResponse.SerializeToString,
),
'ListApplicationMetrics': grpc.unary_unary_rpc_method_handler(
servicer.ListApplicationMetrics,
request_deserializer=alameda__api_dot_v1alpha1_dot_datahub_dot_metrics_dot_services__pb2.ListApplicationMetricsRequest.FromString,
response_serializer=alameda__api_dot_v1alpha1_dot_datahub_dot_metrics_dot_services__pb2.ListApplicationMetricsResponse.SerializeToString,
),
'ListNamespaceMetrics': grpc.unary_unary_rpc_method_handler(
servicer.ListNamespaceMetrics,
request_deserializer=alameda__api_dot_v1alpha1_dot_datahub_dot_metrics_dot_services__pb2.ListNamespaceMetricsRequest.FromString,
response_serializer=alameda__api_dot_v1alpha1_dot_datahub_dot_metrics_dot_services__pb2.ListNamespaceMetricsResponse.SerializeToString,
),
'ListNodeMetrics': grpc.unary_unary_rpc_method_handler(
servicer.ListNodeMetrics,
request_deserializer=alameda__api_dot_v1alpha1_dot_datahub_dot_metrics_dot_services__pb2.ListNodeMetricsRequest.FromString,
response_serializer=alameda__api_dot_v1alpha1_dot_datahub_dot_metrics_dot_services__pb2.ListNodeMetricsResponse.SerializeToString,
),
'ListClusterMetrics': grpc.unary_unary_rpc_method_handler(
servicer.ListClusterMetrics,
request_deserializer=alameda__api_dot_v1alpha1_dot_datahub_dot_metrics_dot_services__pb2.ListClusterMetricsRequest.FromString,
response_serializer=alameda__api_dot_v1alpha1_dot_datahub_dot_metrics_dot_services__pb2.ListClusterMetricsResponse.SerializeToString,
),
'Ping': grpc.unary_unary_rpc_method_handler(
servicer.Ping,
request_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString,
response_serializer=google_dot_rpc_dot_status__pb2.Status.SerializeToString,
),
'CreatePlannings': grpc.unary_unary_rpc_method_handler(
servicer.CreatePlannings,
request_deserializer=alameda__api_dot_v1alpha1_dot_datahub_dot_plannings_dot_services__pb2.CreatePlanningsRequest.FromString,
response_serializer=google_dot_rpc_dot_status__pb2.Status.SerializeToString,
),
'CreatePodPlannings': grpc.unary_unary_rpc_method_handler(
servicer.CreatePodPlannings,
request_deserializer=alameda__api_dot_v1alpha1_dot_datahub_dot_plannings_dot_services__pb2.CreatePodPlanningsRequest.FromString,
response_serializer=google_dot_rpc_dot_status__pb2.Status.SerializeToString,
),
'CreateControllerPlannings': grpc.unary_unary_rpc_method_handler(
servicer.CreateControllerPlannings,
request_deserializer=alameda__api_dot_v1alpha1_dot_datahub_dot_plannings_dot_services__pb2.CreateControllerPlanningsRequest.FromString,
response_serializer=google_dot_rpc_dot_status__pb2.Status.SerializeToString,
),
'CreateApplicationPlannings': grpc.unary_unary_rpc_method_handler(
servicer.CreateApplicationPlannings,
request_deserializer=alameda__api_dot_v1alpha1_dot_datahub_dot_plannings_dot_services__pb2.CreateApplicationPlanningsRequest.FromString,
response_serializer=google_dot_rpc_dot_status__pb2.Status.SerializeToString,
),
'CreateNamespacePlannings': grpc.unary_unary_rpc_method_handler(
servicer.CreateNamespacePlannings,
request_deserializer=alameda__api_dot_v1alpha1_dot_datahub_dot_plannings_dot_services__pb2.CreateNamespacePlanningsRequest.FromString,
response_serializer=google_dot_rpc_dot_status__pb2.Status.SerializeToString,
),
'CreateNodePlannings': grpc.unary_unary_rpc_method_handler(
servicer.CreateNodePlannings,
request_deserializer=alameda__api_dot_v1alpha1_dot_datahub_dot_plannings_dot_services__pb2.CreateNodePlanningsRequest.FromString,
response_serializer=google_dot_rpc_dot_status__pb2.Status.SerializeToString,
),
'CreateClusterPlannings': grpc.unary_unary_rpc_method_handler(
servicer.CreateClusterPlannings,
request_deserializer=alameda__api_dot_v1alpha1_dot_datahub_dot_plannings_dot_services__pb2.CreateClusterPlanningsRequest.FromString,
response_serializer=google_dot_rpc_dot_status__pb2.Status.SerializeToString,
),
'ListPlannings': grpc.unary_unary_rpc_method_handler(
servicer.ListPlannings,
request_deserializer=alameda__api_dot_v1alpha1_dot_datahub_dot_plannings_dot_services__pb2.ListPlanningsRequest.FromString,
response_serializer=alameda__api_dot_v1alpha1_dot_datahub_dot_plannings_dot_services__pb2.ListPlanningsResponse.SerializeToString,
),
'ListPodPlannings': grpc.unary_unary_rpc_method_handler(
servicer.ListPodPlannings,
request_deserializer=alameda__api_dot_v1alpha1_dot_datahub_dot_plannings_dot_services__pb2.ListPodPlanningsRequest.FromString,
response_serializer=alameda__api_dot_v1alpha1_dot_datahub_dot_plannings_dot_services__pb2.ListPodPlanningsResponse.SerializeToString,
),
'ListControllerPlannings': grpc.unary_unary_rpc_method_handler(
servicer.ListControllerPlannings,
request_deserializer=alameda__api_dot_v1alpha1_dot_datahub_dot_plannings_dot_services__pb2.ListControllerPlanningsRequest.FromString,
response_serializer=alameda__api_dot_v1alpha1_dot_datahub_dot_plannings_dot_services__pb2.ListControllerPlanningsResponse.SerializeToString,
),
'ListApplicationPlannings': grpc.unary_unary_rpc_method_handler(
servicer.ListApplicationPlannings,
request_deserializer=alameda__api_dot_v1alpha1_dot_datahub_dot_plannings_dot_services__pb2.ListApplicationPlanningsRequest.FromString,
response_serializer=alameda__api_dot_v1alpha1_dot_datahub_dot_plannings_dot_services__pb2.ListApplicationPlanningsResponse.SerializeToString,
),
'ListNamespacePlannings': grpc.unary_unary_rpc_method_handler(
servicer.ListNamespacePlannings,
request_deserializer=alameda__api_dot_v1alpha1_dot_datahub_dot_plannings_dot_services__pb2.ListNamespacePlanningsRequest.FromString,
response_serializer=alameda__api_dot_v1alpha1_dot_datahub_dot_plannings_dot_services__pb2.ListNamespacePlanningsResponse.SerializeToString,
),
'ListNodePlannings': grpc.unary_unary_rpc_method_handler(
servicer.ListNodePlannings,
request_deserializer=alameda__api_dot_v1alpha1_dot_datahub_dot_plannings_dot_services__pb2.ListNodePlanningsRequest.FromString,
response_serializer=alameda__api_dot_v1alpha1_dot_datahub_dot_plannings_dot_services__pb2.ListNodePlanningsResponse.SerializeToString,
),
'ListClusterPlannings': grpc.unary_unary_rpc_method_handler(
servicer.ListClusterPlannings,
request_deserializer=alameda__api_dot_v1alpha1_dot_datahub_dot_plannings_dot_services__pb2.ListClusterPlanningsRequest.FromString,
response_serializer=alameda__api_dot_v1alpha1_dot_datahub_dot_plannings_dot_services__pb2.ListClusterPlanningsResponse.SerializeToString,
),
'CreatePredictions': grpc.unary_unary_rpc_method_handler(
servicer.CreatePredictions,
request_deserializer=alameda__api_dot_v1alpha1_dot_datahub_dot_predictions_dot_services__pb2.CreatePredictionsRequest.FromString,
response_serializer=google_dot_rpc_dot_status__pb2.Status.SerializeToString,
),
'CreatePodPredictions': grpc.unary_unary_rpc_method_handler(
servicer.CreatePodPredictions,
request_deserializer=alameda__api_dot_v1alpha1_dot_datahub_dot_predictions_dot_services__pb2.CreatePodPredictionsRequest.FromString,
response_serializer=google_dot_rpc_dot_status__pb2.Status.SerializeToString,
),
'CreateControllerPredictions': grpc.unary_unary_rpc_method_handler(
servicer.CreateControllerPredictions,
request_deserializer=alameda__api_dot_v1alpha1_dot_datahub_dot_predictions_dot_services__pb2.CreateControllerPredictionsRequest.FromString,
response_serializer=google_dot_rpc_dot_status__pb2.Status.SerializeToString,
),
'CreateApplicationPredictions': grpc.unary_unary_rpc_method_handler(
servicer.CreateApplicationPredictions,
request_deserializer=alameda__api_dot_v1alpha1_dot_datahub_dot_predictions_dot_services__pb2.CreateApplicationPredictionsRequest.FromString,
response_serializer=google_dot_rpc_dot_status__pb2.Status.SerializeToString,
),
'CreateNamespacePredictions': grpc.unary_unary_rpc_method_handler(
servicer.CreateNamespacePredictions,
request_deserializer=alameda__api_dot_v1alpha1_dot_datahub_dot_predictions_dot_services__pb2.CreateNamespacePredictionsRequest.FromString,
response_serializer=google_dot_rpc_dot_status__pb2.Status.SerializeToString,
),
'CreateNodePredictions': grpc.unary_unary_rpc_method_handler(
servicer.CreateNodePredictions,
request_deserializer=alameda__api_dot_v1alpha1_dot_datahub_dot_predictions_dot_services__pb2.CreateNodePredictionsRequest.FromString,
response_serializer=google_dot_rpc_dot_status__pb2.Status.SerializeToString,
),
'CreateClusterPredictions': grpc.unary_unary_rpc_method_handler(
servicer.CreateClusterPredictions,
request_deserializer=alameda__api_dot_v1alpha1_dot_datahub_dot_predictions_dot_services__pb2.CreateClusterPredictionsRequest.FromString,
response_serializer=google_dot_rpc_dot_status__pb2.Status.SerializeToString,
),
'ListPredictions': grpc.unary_unary_rpc_method_handler(
servicer.ListPredictions,
request_deserializer=alameda__api_dot_v1alpha1_dot_datahub_dot_predictions_dot_services__pb2.ListPredictionsRequest.FromString,
response_serializer=alameda__api_dot_v1alpha1_dot_datahub_dot_predictions_dot_services__pb2.ListPredictionsResponse.SerializeToString,
),
'ListPodPredictions': grpc.unary_unary_rpc_method_handler(
servicer.ListPodPredictions,
request_deserializer=alameda__api_dot_v1alpha1_dot_datahub_dot_predictions_dot_services__pb2.ListPodPredictionsRequest.FromString,
response_serializer=alameda__api_dot_v1alpha1_dot_datahub_dot_predictions_dot_services__pb2.ListPodPredictionsResponse.SerializeToString,
),
'ListControllerPredictions': grpc.unary_unary_rpc_method_handler(
servicer.ListControllerPredictions,
request_deserializer=alameda__api_dot_v1alpha1_dot_datahub_dot_predictions_dot_services__pb2.ListControllerPredictionsRequest.FromString,
response_serializer=alameda__api_dot_v1alpha1_dot_datahub_dot_predictions_dot_services__pb2.ListControllerPredictionsResponse.SerializeToString,
),
'ListApplicationPredictions': grpc.unary_unary_rpc_method_handler(
servicer.ListApplicationPredictions,
request_deserializer=alameda__api_dot_v1alpha1_dot_datahub_dot_predictions_dot_services__pb2.ListApplicationPredictionsRequest.FromString,
response_serializer=alameda__api_dot_v1alpha1_dot_datahub_dot_predictions_dot_services__pb2.ListApplicationPredictionsResponse.SerializeToString,
),
'ListNamespacePredictions': grpc.unary_unary_rpc_method_handler(
servicer.ListNamespacePredictions,
request_deserializer=alameda__api_dot_v1alpha1_dot_datahub_dot_predictions_dot_services__pb2.ListNamespacePredictionsRequest.FromString,
response_serializer=alameda__api_dot_v1alpha1_dot_datahub_dot_predictions_dot_services__pb2.ListNamespacePredictionsResponse.SerializeToString,
),
'ListNodePredictions': grpc.unary_unary_rpc_method_handler(
servicer.ListNodePredictions,
request_deserializer=alameda__api_dot_v1alpha1_dot_datahub_dot_predictions_dot_services__pb2.ListNodePredictionsRequest.FromString,
response_serializer=alameda__api_dot_v1alpha1_dot_datahub_dot_predictions_dot_services__pb2.ListNodePredictionsResponse.SerializeToString,
),
'ListClusterPredictions': grpc.unary_unary_rpc_method_handler(
servicer.ListClusterPredictions,
request_deserializer=alameda__api_dot_v1alpha1_dot_datahub_dot_predictions_dot_services__pb2.ListClusterPredictionsRequest.FromString,
response_serializer=alameda__api_dot_v1alpha1_dot_datahub_dot_predictions_dot_services__pb2.ListClusterPredictionsResponse.SerializeToString,
),
'ReadRawdata': grpc.unary_unary_rpc_method_handler(
servicer.ReadRawdata,
request_deserializer=alameda__api_dot_v1alpha1_dot_datahub_dot_rawdata_dot_services__pb2.ReadRawdataRequest.FromString,
response_serializer=alameda__api_dot_v1alpha1_dot_datahub_dot_rawdata_dot_services__pb2.ReadRawdataResponse.SerializeToString,
),
'WriteRawdata': grpc.unary_unary_rpc_method_handler(
servicer.WriteRawdata,
request_deserializer=alameda__api_dot_v1alpha1_dot_datahub_dot_rawdata_dot_services__pb2.WriteRawdataRequest.FromString,
response_serializer=google_dot_rpc_dot_status__pb2.Status.SerializeToString,
),
'CreateRecommendations': grpc.unary_unary_rpc_method_handler(
servicer.CreateRecommendations,
request_deserializer=alameda__api_dot_v1alpha1_dot_datahub_dot_recommendations_dot_services__pb2.CreateRecommendationsRequest.FromString,
response_serializer=google_dot_rpc_dot_status__pb2.Status.SerializeToString,
),
'CreatePodRecommendations': grpc.unary_unary_rpc_method_handler(
servicer.CreatePodRecommendations,
request_deserializer=alameda__api_dot_v1alpha1_dot_datahub_dot_recommendations_dot_services__pb2.CreatePodRecommendationsRequest.FromString,
response_serializer=google_dot_rpc_dot_status__pb2.Status.SerializeToString,
),
'CreateControllerRecommendations': grpc.unary_unary_rpc_method_handler(
servicer.CreateControllerRecommendations,
request_deserializer=alameda__api_dot_v1alpha1_dot_datahub_dot_recommendations_dot_services__pb2.CreateControllerRecommendationsRequest.FromString,
response_serializer=google_dot_rpc_dot_status__pb2.Status.SerializeToString,
),
'CreateApplicationRecommendations': grpc.unary_unary_rpc_method_handler(
servicer.CreateApplicationRecommendations,
request_deserializer=alameda__api_dot_v1alpha1_dot_datahub_dot_recommendations_dot_services__pb2.CreateApplicationRecommendationsRequest.FromString,
response_serializer=google_dot_rpc_dot_status__pb2.Status.SerializeToString,
),
'CreateNamespaceRecommendations': grpc.unary_unary_rpc_method_handler(
servicer.CreateNamespaceRecommendations,
request_deserializer=alameda__api_dot_v1alpha1_dot_datahub_dot_recommendations_dot_services__pb2.CreateNamespaceRecommendationsRequest.FromString,
response_serializer=google_dot_rpc_dot_status__pb2.Status.SerializeToString,
),
'CreateNodeRecommendations': grpc.unary_unary_rpc_method_handler(
servicer.CreateNodeRecommendations,
request_deserializer=alameda__api_dot_v1alpha1_dot_datahub_dot_recommendations_dot_services__pb2.CreateNodeRecommendationsRequest.FromString,
response_serializer=google_dot_rpc_dot_status__pb2.Status.SerializeToString,
),
'CreateClusterRecommendations': grpc.unary_unary_rpc_method_handler(
servicer.CreateClusterRecommendations,
request_deserializer=alameda__api_dot_v1alpha1_dot_datahub_dot_recommendations_dot_services__pb2.CreateClusterRecommendationsRequest.FromString,
response_serializer=google_dot_rpc_dot_status__pb2.Status.SerializeToString,
),
'ListRecommendations': grpc.unary_unary_rpc_method_handler(
servicer.ListRecommendations,
request_deserializer=alameda__api_dot_v1alpha1_dot_datahub_dot_recommendations_dot_services__pb2.ListRecommendationsRequest.FromString,
response_serializer=alameda__api_dot_v1alpha1_dot_datahub_dot_recommendations_dot_services__pb2.ListRecommendationsResponse.SerializeToString,
),
'ListPodRecommendations': grpc.unary_unary_rpc_method_handler(
servicer.ListPodRecommendations,
request_deserializer=alameda__api_dot_v1alpha1_dot_datahub_dot_recommendations_dot_services__pb2.ListPodRecommendationsRequest.FromString,
response_serializer=alameda__api_dot_v1alpha1_dot_datahub_dot_recommendations_dot_services__pb2.ListPodRecommendationsResponse.SerializeToString,
),
'ListAvailablePodRecommendations': grpc.unary_unary_rpc_method_handler(
servicer.ListAvailablePodRecommendations,
request_deserializer=alameda__api_dot_v1alpha1_dot_datahub_dot_recommendations_dot_services__pb2.ListPodRecommendationsRequest.FromString,
response_serializer=alameda__api_dot_v1alpha1_dot_datahub_dot_recommendations_dot_services__pb2.ListPodRecommendationsResponse.SerializeToString,
),
'ListControllerRecommendations': grpc.unary_unary_rpc_method_handler(
servicer.ListControllerRecommendations,
request_deserializer=alameda__api_dot_v1alpha1_dot_datahub_dot_recommendations_dot_services__pb2.ListControllerRecommendationsRequest.FromString,
response_serializer=alameda__api_dot_v1alpha1_dot_datahub_dot_recommendations_dot_services__pb2.ListControllerRecommendationsResponse.SerializeToString,
),
'ListApplicationRecommendations': grpc.unary_unary_rpc_method_handler(
servicer.ListApplicationRecommendations,
request_deserializer=alameda__api_dot_v1alpha1_dot_datahub_dot_recommendations_dot_services__pb2.ListApplicationRecommendationsRequest.FromString,
response_serializer=alameda__api_dot_v1alpha1_dot_datahub_dot_recommendations_dot_services__pb2.ListApplicationRecommendationsResponse.SerializeToString,
),
'ListNamespaceRecommendations': grpc.unary_unary_rpc_method_handler(
servicer.ListNamespaceRecommendations,
request_deserializer=alameda__api_dot_v1alpha1_dot_datahub_dot_recommendations_dot_services__pb2.ListNamespaceRecommendationsRequest.FromString,
response_serializer=alameda__api_dot_v1alpha1_dot_datahub_dot_recommendations_dot_services__pb2.ListNamespaceRecommendationsResponse.SerializeToString,
),
'ListNodeRecommendations': grpc.unary_unary_rpc_method_handler(
servicer.ListNodeRecommendations,
request_deserializer=alameda__api_dot_v1alpha1_dot_datahub_dot_recommendations_dot_services__pb2.ListNodeRecommendationsRequest.FromString,
response_serializer=alameda__api_dot_v1alpha1_dot_datahub_dot_recommendations_dot_services__pb2.ListNodeRecommendationsResponse.SerializeToString,
),
'ListClusterRecommendations': grpc.unary_unary_rpc_method_handler(
servicer.ListClusterRecommendations,
request_deserializer=alameda__api_dot_v1alpha1_dot_datahub_dot_recommendations_dot_services__pb2.ListClusterRecommendationsRequest.FromString,
response_serializer=alameda__api_dot_v1alpha1_dot_datahub_dot_recommendations_dot_services__pb2.ListClusterRecommendationsResponse.SerializeToString,
),
'CreatePods': grpc.unary_unary_rpc_method_handler(
servicer.CreatePods,
request_deserializer=alameda__api_dot_v1alpha1_dot_datahub_dot_resources_dot_services__pb2.CreatePodsRequest.FromString,
response_serializer=google_dot_rpc_dot_status__pb2.Status.SerializeToString,
),
'CreateControllers': grpc.unary_unary_rpc_method_handler(
servicer.CreateControllers,
request_deserializer=alameda__api_dot_v1alpha1_dot_datahub_dot_resources_dot_services__pb2.CreateControllersRequest.FromString,
response_serializer=google_dot_rpc_dot_status__pb2.Status.SerializeToString,
),
'CreateApplications': grpc.unary_unary_rpc_method_handler(
servicer.CreateApplications,
request_deserializer=alameda__api_dot_v1alpha1_dot_datahub_dot_resources_dot_services__pb2.CreateApplicationsRequest.FromString,
response_serializer=google_dot_rpc_dot_status__pb2.Status.SerializeToString,
),
'CreateNamespaces': grpc.unary_unary_rpc_method_handler(
servicer.CreateNamespaces,
request_deserializer=alameda__api_dot_v1alpha1_dot_datahub_dot_resources_dot_services__pb2.CreateNamespacesRequest.FromString,
response_serializer=google_dot_rpc_dot_status__pb2.Status.SerializeToString,
),
'CreateNodes': grpc.unary_unary_rpc_method_handler(
servicer.CreateNodes,
request_deserializer=alameda__api_dot_v1alpha1_dot_datahub_dot_resources_dot_services__pb2.CreateNodesRequest.FromString,
response_serializer=google_dot_rpc_dot_status__pb2.Status.SerializeToString,
),
'CreateClusters': grpc.unary_unary_rpc_method_handler(
servicer.CreateClusters,
request_deserializer=alameda__api_dot_v1alpha1_dot_datahub_dot_resources_dot_services__pb2.CreateClustersRequest.FromString,
response_serializer=google_dot_rpc_dot_status__pb2.Status.SerializeToString,
),
'ListPods': grpc.unary_unary_rpc_method_handler(
servicer.ListPods,
request_deserializer=alameda__api_dot_v1alpha1_dot_datahub_dot_resources_dot_services__pb2.ListPodsRequest.FromString,
response_serializer=alameda__api_dot_v1alpha1_dot_datahub_dot_resources_dot_services__pb2.ListPodsResponse.SerializeToString,
),
'ListControllers': grpc.unary_unary_rpc_method_handler(
servicer.ListControllers,
request_deserializer=alameda__api_dot_v1alpha1_dot_datahub_dot_resources_dot_services__pb2.ListControllersRequest.FromString,
response_serializer=alameda__api_dot_v1alpha1_dot_datahub_dot_resources_dot_services__pb2.ListControllersResponse.SerializeToString,
),
'ListApplications': grpc.unary_unary_rpc_method_handler(
servicer.ListApplications,
request_deserializer=alameda__api_dot_v1alpha1_dot_datahub_dot_resources_dot_services__pb2.ListApplicationsRequest.FromString,
response_serializer=alameda__api_dot_v1alpha1_dot_datahub_dot_resources_dot_services__pb2.ListApplicationsResponse.SerializeToString,
),
'ListNamespaces': grpc.unary_unary_rpc_method_handler(
servicer.ListNamespaces,
request_deserializer=alameda__api_dot_v1alpha1_dot_datahub_dot_resources_dot_services__pb2.ListNamespacesRequest.FromString,
response_serializer=alameda__api_dot_v1alpha1_dot_datahub_dot_resources_dot_services__pb2.ListNamespacesResponse.SerializeToString,
),
'ListNodes': grpc.unary_unary_rpc_method_handler(
servicer.ListNodes,
request_deserializer=alameda__api_dot_v1alpha1_dot_datahub_dot_resources_dot_services__pb2.ListNodesRequest.FromString,
response_serializer=alameda__api_dot_v1alpha1_dot_datahub_dot_resources_dot_services__pb2.ListNodesResponse.SerializeToString,
),
'ListClusters': grpc.unary_unary_rpc_method_handler(
servicer.ListClusters,
request_deserializer=alameda__api_dot_v1alpha1_dot_datahub_dot_resources_dot_services__pb2.ListClustersRequest.FromString,
response_serializer=alameda__api_dot_v1alpha1_dot_datahub_dot_resources_dot_services__pb2.ListClustersResponse.SerializeToString,
),
'DeletePods': grpc.unary_unary_rpc_method_handler(
servicer.DeletePods,
request_deserializer=alameda__api_dot_v1alpha1_dot_datahub_dot_resources_dot_services__pb2.DeletePodsRequest.FromString,
response_serializer=google_dot_rpc_dot_status__pb2.Status.SerializeToString,
),
'DeleteControllers': grpc.unary_unary_rpc_method_handler(
servicer.DeleteControllers,
request_deserializer=alameda__api_dot_v1alpha1_dot_datahub_dot_resources_dot_services__pb2.DeleteControllersRequest.FromString,
response_serializer=google_dot_rpc_dot_status__pb2.Status.SerializeToString,
),
'DeleteApplications': grpc.unary_unary_rpc_method_handler(
servicer.DeleteApplications,
request_deserializer=alameda__api_dot_v1alpha1_dot_datahub_dot_resources_dot_services__pb2.DeleteApplicationsRequest.FromString,
response_serializer=google_dot_rpc_dot_status__pb2.Status.SerializeToString,
),
'DeleteNamespaces': grpc.unary_unary_rpc_method_handler(
servicer.DeleteNamespaces,
request_deserializer=alameda__api_dot_v1alpha1_dot_datahub_dot_resources_dot_services__pb2.DeleteNamespacesRequest.FromString,
response_serializer=google_dot_rpc_dot_status__pb2.Status.SerializeToString,
),
'DeleteNodes': grpc.unary_unary_rpc_method_handler(
servicer.DeleteNodes,
request_deserializer=alameda__api_dot_v1alpha1_dot_datahub_dot_resources_dot_services__pb2.DeleteNodesRequest.FromString,
response_serializer=google_dot_rpc_dot_status__pb2.Status.SerializeToString,
),
'DeleteClusters': grpc.unary_unary_rpc_method_handler(
servicer.DeleteClusters,
request_deserializer=alameda__api_dot_v1alpha1_dot_datahub_dot_resources_dot_services__pb2.DeleteClustersRequest.FromString,
response_serializer=google_dot_rpc_dot_status__pb2.Status.SerializeToString,
),
'CreateSchemas': grpc.unary_unary_rpc_method_handler(
servicer.CreateSchemas,
request_deserializer=alameda__api_dot_v1alpha1_dot_datahub_dot_schemas_dot_services__pb2.CreateSchemasRequest.FromString,
response_serializer=google_dot_rpc_dot_status__pb2.Status.SerializeToString,
),
'ListSchemas': grpc.unary_unary_rpc_method_handler(
servicer.ListSchemas,
request_deserializer=alameda__api_dot_v1alpha1_dot_datahub_dot_schemas_dot_services__pb2.ListSchemasRequest.FromString,
response_serializer=alameda__api_dot_v1alpha1_dot_datahub_dot_schemas_dot_services__pb2.ListSchemasResponse.SerializeToString,
),
'DeleteSchemas': grpc.unary_unary_rpc_method_handler(
servicer.DeleteSchemas,
request_deserializer=alameda__api_dot_v1alpha1_dot_datahub_dot_schemas_dot_services__pb2.DeleteSchemasRequest.FromString,
response_serializer=google_dot_rpc_dot_status__pb2.Status.SerializeToString,
),
'CreateSimulatedSchedulingScores': grpc.unary_unary_rpc_method_handler(
servicer.CreateSimulatedSchedulingScores,
request_deserializer=alameda__api_dot_v1alpha1_dot_datahub_dot_scores_dot_services__pb2.CreateSimulatedSchedulingScoresRequest.FromString,
response_serializer=google_dot_rpc_dot_status__pb2.Status.SerializeToString,
),
'ListSimulatedSchedulingScores': grpc.unary_unary_rpc_method_handler(
servicer.ListSimulatedSchedulingScores,
request_deserializer=alameda__api_dot_v1alpha1_dot_datahub_dot_scores_dot_services__pb2.ListSimulatedSchedulingScoresRequest.FromString,
response_serializer=alameda__api_dot_v1alpha1_dot_datahub_dot_scores_dot_services__pb2.ListSimulatedSchedulingScoresResponse.SerializeToString,
),
'ListWeaveScopeHosts': grpc.unary_unary_rpc_method_handler(
servicer.ListWeaveScopeHosts,
request_deserializer=alameda__api_dot_v1alpha1_dot_datahub_dot_weavescope_dot_services__pb2.ListWeaveScopeHostsRequest.FromString,
response_serializer=alameda__api_dot_v1alpha1_dot_datahub_dot_weavescope_dot_services__pb2.WeaveScopeResponse.SerializeToString,
),
'GetWeaveScopeHostDetails': grpc.unary_unary_rpc_method_handler(
servicer.GetWeaveScopeHostDetails,
request_deserializer=alameda__api_dot_v1alpha1_dot_datahub_dot_weavescope_dot_services__pb2.ListWeaveScopeHostsRequest.FromString,
response_serializer=alameda__api_dot_v1alpha1_dot_datahub_dot_weavescope_dot_services__pb2.WeaveScopeResponse.SerializeToString,
),
'ListWeaveScopePods': grpc.unary_unary_rpc_method_handler(
servicer.ListWeaveScopePods,
request_deserializer=alameda__api_dot_v1alpha1_dot_datahub_dot_weavescope_dot_services__pb2.ListWeaveScopePodsRequest.FromString,
response_serializer=alameda__api_dot_v1alpha1_dot_datahub_dot_weavescope_dot_services__pb2.WeaveScopeResponse.SerializeToString,
),
'GetWeaveScopePodDetails': grpc.unary_unary_rpc_method_handler(
servicer.GetWeaveScopePodDetails,
request_deserializer=alameda__api_dot_v1alpha1_dot_datahub_dot_weavescope_dot_services__pb2.ListWeaveScopePodsRequest.FromString,
response_serializer=alameda__api_dot_v1alpha1_dot_datahub_dot_weavescope_dot_services__pb2.WeaveScopeResponse.SerializeToString,
),
'ListWeaveScopeContainers': grpc.unary_unary_rpc_method_handler(
servicer.ListWeaveScopeContainers,
request_deserializer=alameda__api_dot_v1alpha1_dot_datahub_dot_weavescope_dot_services__pb2.ListWeaveScopeContainersRequest.FromString,
response_serializer=alameda__api_dot_v1alpha1_dot_datahub_dot_weavescope_dot_services__pb2.WeaveScopeResponse.SerializeToString,
),
'ListWeaveScopeContainersByHostname': grpc.unary_unary_rpc_method_handler(
servicer.ListWeaveScopeContainersByHostname,
request_deserializer=alameda__api_dot_v1alpha1_dot_datahub_dot_weavescope_dot_services__pb2.ListWeaveScopeContainersRequest.FromString,
response_serializer=alameda__api_dot_v1alpha1_dot_datahub_dot_weavescope_dot_services__pb2.WeaveScopeResponse.SerializeToString,
),
'ListWeaveScopeContainersByImage': grpc.unary_unary_rpc_method_handler(
servicer.ListWeaveScopeContainersByImage,
request_deserializer=alameda__api_dot_v1alpha1_dot_datahub_dot_weavescope_dot_services__pb2.ListWeaveScopeContainersRequest.FromString,
response_serializer=alameda__api_dot_v1alpha1_dot_datahub_dot_weavescope_dot_services__pb2.WeaveScopeResponse.SerializeToString,
),
'GetWeaveScopeContainerDetails': grpc.unary_unary_rpc_method_handler(
servicer.GetWeaveScopeContainerDetails,
request_deserializer=alameda__api_dot_v1alpha1_dot_datahub_dot_weavescope_dot_services__pb2.ListWeaveScopeContainersRequest.FromString,
response_serializer=alameda__api_dot_v1alpha1_dot_datahub_dot_weavescope_dot_services__pb2.WeaveScopeResponse.SerializeToString,
),
}
generic_handler = grpc.method_handlers_generic_handler(
'containersai.alameda.v1alpha1.datahub.DatahubService', rpc_method_handlers)
server.add_generic_rpc_handlers((generic_handler,))
| 61.320765
| 163
| 0.809681
| 11,300
| 112,217
| 7.529558
| 0.033363
| 0.039961
| 0.04981
| 0.080462
| 0.859433
| 0.857
| 0.850465
| 0.795708
| 0.703552
| 0.703552
| 0
| 0.013723
| 0.127227
| 112,217
| 1,829
| 164
| 61.354292
| 0.855013
| 0.049217
| 0
| 0.39544
| 1
| 0
| 0.136506
| 0.082854
| 0
| 0
| 0
| 0
| 0
| 1
| 0.069707
| false
| 0.025407
| 0.011075
| 0
| 0.082085
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
46aab5dfb1cadfc3c4d9dbaa93d610d30652acad
| 19,964
|
py
|
Python
|
piece.py
|
TaifQureshi/chess_ai
|
040ae92cb6a681a294c2d69e9d5b48d08c7264a4
|
[
"MIT"
] | 1
|
2022-01-09T17:29:05.000Z
|
2022-01-09T17:29:05.000Z
|
piece.py
|
TaifQureshi/chess_ai
|
040ae92cb6a681a294c2d69e9d5b48d08c7264a4
|
[
"MIT"
] | null | null | null |
piece.py
|
TaifQureshi/chess_ai
|
040ae92cb6a681a294c2d69e9d5b48d08c7264a4
|
[
"MIT"
] | null | null | null |
import pygame
b_bishop = pygame.image.load("img\\bb.png")
b_king = pygame.image.load("img\\bk.png")
b_knight = pygame.image.load("img\\bkn.png")
b_pawn = pygame.image.load("img\\bp.png")
b_queen = pygame.image.load("img\\bq.png")
b_rook = pygame.image.load("img\\br.png")
w_bishop = pygame.image.load("img\\wb.png")
w_king = pygame.image.load("img\\wk.png")
w_knight = pygame.image.load("img\\wkn.png")
w_pawn = pygame.image.load("img\\wp.png")
w_queen = pygame.image.load("img\\wq.png")
w_rook = pygame.image.load("img\\wr.png")
green_circle = pygame.image.load("img\\green_circle.png")
green_circle = pygame.transform.scale(green_circle, (80, 80))
b = [b_bishop, b_king, b_knight, b_pawn, b_queen, b_rook]
w = [w_bishop, w_king, w_knight, w_pawn, w_queen, w_rook]
B = []
W = []
for img in b:
B.append(pygame.transform.scale(img, (80, 80)))
for img in w:
W.append(pygame.transform.scale(img, (80, 80)))
class Piece:
img = -1
def __init__(self,row,col,color,typ):
self.row = row
self.col = col
self.color = color
self.type = typ
self.move_list = []
self.selected = False
self.king = False
self.pawn = False
self.rook = False
def isSelected(self):
return self.selected
def update_move(self,board):
self.move_list = self.move(board)
return self.move_list
def get_color(self):
return self.color
def get_pos(self):
return (self.row,self.col)
def get_type(self):
return self.type
def draw(self,screen):
if self.color == 'w':
draws = W[self.img]
else:
draws = B[self.img]
x = self.row * 80
y = self.col * 80
screen.blit(draws,(y,x))
class King(Piece):
img = 1
def __init__(self, row, col, color,typ):
super().__init__(row, col, color,typ)
self.king = True
self.clastling = [True,True]
def move(self,board):
row = self.row
col = self.col
moves = []
f = []
try:
#up
if row > 0:
p = board.board[row -1][col]
if p == 0:
moves.append((row -1,col))
elif p.color !=self.color:
moves.append((row -1,col))
#down
if row < 7:
p = board.board[row + 1][col]
if p == 0:
moves.append((row + 1,col))
elif p.color != self.color:
moves.append((row + 1,col))
#left
if col > 0:
p = board.board[row][col - 1]
if p == 0:
moves.append((row,col - 1))
elif p.color != self.color:
moves.append((row,col - 1))
#right
if col < 7:
p = board.board[row][col + 1]
if p == 0:
moves.append((row,col + 1))
elif p.color != self.color:
moves.append((row,col + 1))
#cross
if row > 0 and col > 0:
p = board.board[row - 1][col - 1]
if p == 0:
moves.append((row - 1,col - 1))
elif p.color != self.color:
moves.append((row - 1,col - 1))
if row > 0 and col < 7:
p = board.board[row -1][col +1]
if p == 0:
moves.append((row -1,col +1))
elif p.color != self.color:
moves.append((row -1,col +1))
if row < 7 and col > 0:
p = board.board[row + 1][col -1]
if p == 0:
moves.append((row + 1,col -1))
elif p.color != self.color:
moves.append((row + 1,col -1))
if row < 7 and col < 7:
p = board.board[row + 1][col + 1]
if p == 0:
moves.append((row + 1,col + 1))
elif p.color != self.color:
moves.append((row + 1,col + 1))
danger = board.danger_move(self.color)
check,k = board.is_check()
if self.clastling[0]:
if board.board[row][col+1] == 0 and board.board[row][col+2] == 0 and not check and board.board[row][7] != 0 and (row,col+1) not in danger and (row,col+1) not in danger:
moves.append((row,col+2))
#queen side
if self.clastling[1]:
if board.board[row][col-1] == 0 and board.board[row][col-2] == 0 and board.board[row][col-3] == 0 and not check and board.board[row][0] != 0 and (row,col-1) not in danger and (row,col-2) not in danger:
moves.append((row,col-2))
for i in moves:
if i not in danger:
f.append(i)
except:
pass
# print(f"pice : row {row} col {col}")
return f
class Queen(Piece):
img = 4
def move(self,board):
row = self.row
col = self.col
moves = []
try:
#UP
for x in range(row-1,-1,-1):
p = board.board[x][col]
if p == 0:
moves.append((x,col))
elif p.color != self.color:
moves.append((x,col))
break
else:
break
#DOWN
for x in range(row+1,8,1):
p = board.board[x][col]
if p == 0:
moves.append((x,col))
elif p.color != self.color:
moves.append((x,col))
break
else:
break
#LEFT
for y in range(col-1,-1,-1):
p = board.board[row][y]
if p == 0:
moves.append((row,y))
elif p.color != self.color:
moves.append((row,y))
break
else:
break
#RIGHT
for y in range(col+1,8,1):
p = board.board[row][y]
if p == 0:
moves.append((row,y))
elif p.color != self.color:
moves.append((row,y))
break
else:
break
#top_rigth
if row > 0:
j = col
for i in range(row-1,-1,-1):
j += 1
if j < 8:
p = board.board[i][j]
if p == 0:
moves.append((i,j))
elif p.color != self.color:
moves.append((i,j))
break
else:
break
else:
break
#top_left
if row > 0:
j = col
for i in range(row-1,-1,-1):
j -= 1
if j > -1:
p = board.board[i][j]
if p == 0:
moves.append((i,j))
elif p.color != self.color:
moves.append((i,j))
break
else:
break
else:
break
#bottom_right
if row < 8:
j = col
for i in range(row+1,8,1):
j += 1
if j < 8:
p = board.board[i][j]
if p == 0:
moves.append((i,j))
elif p.color != self.color:
moves.append((i,j))
break
else:
break
else:
break
#bottom_left
if row < 8:
j = col
for i in range(row+1,8,1):
j -= 1
if j > -1:
p = board.board[i][j]
if p == 0:
moves.append((i,j))
elif p.color != self.color:
moves.append((i,j))
break
else:
break
else:
break
except:
pass
return moves
class Bishop(Piece):
img = 0
def move(self,board):
row = self.row
col = self.col
moves = []
try:
#top_right
if row > 0:
j = col
for i in range(row-1,-1,-1):
j += 1
if j < 8:
p = board.board[i][j]
if p == 0:
moves.append((i,j))
elif p.color != self.color:
moves.append((i,j))
break
else:
break
else:
break
#top_left
if row > 0:
j = col
for i in range(row-1,-1,-1):
j -= 1
if j > -1:
p = board.board[i][j]
if p == 0:
moves.append((i,j))
elif p.color != self.color:
moves.append((i,j))
break
else:
break
else:
break
#bottom_right
if row < 8:
j = col
for i in range(row+1,8,1):
j += 1
if j < 8:
p = board.board[i][j]
if p == 0:
moves.append((i,j))
elif p.color != self.color:
moves.append((i,j))
break
else:
break
else:
break
#bottom_left
if row < 8:
j = col
for i in range(row+1,8,1):
j -= 1
if j > -1:
p = board.board[i][j]
if p == 0:
moves.append((i,j))
elif p.color != self.color:
moves.append((i,j))
break
else:
break
else:
break
except:
pass
return moves
class Knight(Piece):
img = 2
def move(self,board):
row = self.row
col = self.col
moves = []
try:
#top_right
if row > 1 and col < 7:
p = board.board[row - 2][col + 1]
if p == 0:
if row - 2 >= 0 and row - 2 < 8 and col + 1 >= 0 and col + 1 < 8:
moves.append((row - 2,col + 1))
elif p.color != self.color:
if row - 2 >= 0 and row - 2 < 8 and col + 1 >= 0 and col + 1 < 8:
moves.append((row - 2,col + 1))
if row > 0 and col < 6:
p = board.board[row - 1][col + 2]
if p == 0:
if row - 1 >= 0 and row - 1 < 8 and col + 2 >= 0 and col + 2 < 8:
moves.append((row - 1,col + 2))
elif p.color != self.color:
if row - 1 >= 0 and row - 1 < 8 and col + 2 >= 0 and col + 2 < 8:
moves.append((row - 1,col + 2))
#top_left
if row > 1 and col > 0:
p = board.board[row - 2][col - 1]
if p == 0:
if row - 2 >= 0 and row - 2 < 8 and col - 1 >= 0 and col - 1 < 8:
moves.append((row - 2,col - 1))
elif p.color != self.color:
if row - 2 >= 0 and row - 2 < 8 and col - 1 >= 0 and col - 1 < 8:
moves.append((row - 2,col - 1))
if row > 0 and col > 1:
p = board.board[row - 1][col - 2]
if p == 0:
if row - 1 >= 0 and row - 1 < 8 and col - 2 >= 0 and col - 2 < 8:
moves.append((row - 1,col - 2))
elif p.color != self.color:
if row - 1 >= 0 and row - 1 < 8 and col - 2 >= 0 and col - 2 < 8:
moves.append((row - 1,col - 2))
#bottom_right
if row < 6 and col < 7:
p = board.board[row + 2][col + 1]
if p == 0:
if row + 2 >= 0 and row + 2 < 8 and col + 1 >= 0 and col + 1 < 8:
moves.append((row + 2,col + 1))
elif p.color != self.color:
if row + 2 >= 0 and row + 2 < 8 and col + 1 >= 0 and col + 1 < 8:
moves.append((row + 2,col + 1))
if row < 7 and col < 6:
p = board.board[row + 1][col + 2]
if p == 0:
if row + 1 >= 0 and row + 1 < 8 and col + 2 >= 0 and col + 2 < 8:
moves.append((row + 1,col + 2))
elif p.color != self.color:
if row + 1 >= 0 and row + 1 < 8 and col + 2 >= 0 and col + 2 < 8:
moves.append((row + 1,col + 2))
#bottom_left
if row < 6 and col > 0:
p = board.board[row + 2][col - 1]
if p == 0:
if row + 2 >= 0 and row + 2 < 8 and col - 1 >= 0 and col - 1 < 8:
moves.append((row + 2,col - 1))
elif p.color != self.color:
if row + 2 >= 0 and row + 2 < 8 and col - 1 >= 0 and col - 1 < 8:
moves.append((row + 2,col - 1))
if row < 7 and col > 1:
p = board.board[row + 1 ][col - 2]
if p == 0:
if row + 1 >= 0 and row + 1 < 8 and col - 2 >= 0 and col - 2 < 8:
moves.append((row + 1 ,col - 2))
elif p.color != self.color:
if row + 1 >= 0 and row + 1 < 8 and col - 2 >= 0 and col - 2 < 8:
moves.append((row + 1 ,col - 2))
except:
pass
return moves
class Rook(Piece):
img = 5
def __init__(self, row, col, color,typ):
super().__init__(row, col, color,typ)
self.rook = True
def move(self,board):
row = self.row
col = self.col
moves = []
try:
#UP
for x in range(row-1,-1,-1):
p = board.board[x][col]
if p == 0:
moves.append((x,col))
elif p.color != self.color:
moves.append((x,col))
break
else:
break
#DOWN
for x in range(row+1,8,1):
p = board.board[x][col]
if p == 0:
moves.append((x,col))
elif p.color != self.color:
moves.append((x,col))
break
else:
break
#LEFT
for y in range(col-1,-1,-1):
p = board.board[row][y]
if p == 0:
moves.append((row,y))
elif p.color != self.color:
moves.append((row,y))
break
else:
break
#RIGHT
for y in range(col+1,8,1):
p = board.board[row][y]
if p == 0:
moves.append((row,y))
elif p.color != self.color:
moves.append((row,y))
break
else:
break
except:
pass
return moves
class Pawn(Piece):
img = 3
def __init__(self, row, col, color,typ):
super().__init__(row, col, color,typ)
self.pawn = True
self.isfirst = True
def move(self,board):
row = self.row
col = self.col
moves = []
try:
if self.color == "w":
if row == 6:
self.isfirst = True
else:
self.isfirst = False
if self.isfirst == True:
p = board.board[row -2][col]
if p == 0:
moves.append((row -2, col))
#up
p = board.board[row -1][col]
if p == 0:
moves.append((row -1,col))
#cross
p = board.board[row -1][col -1]
if p != 0:
if p.color != self.color:
moves.append((row -1,col -1))
p = board.board[row -1][col +1]
if p != 0:
if p.color != self.color:
moves.append((row -1,col +1))
else:
if row == 1:
self.isfirst = True
else:
self.isfirst = False
if self.isfirst == True:
p = board.board[row +2][col]
if p == 0:
moves.append((row +2, col))
p = board.board[row + 1][col]
if p == 0:
moves.append((row + 1,col))
#cross
p = board.board[row + 1][col -1]
if p != 0:
if p.color != self.color:
moves.append((row + 1,col -1))
p = board.board[row + 1][col + 1]
if p != 0:
if p.color != self.color:
moves.append((row + 1,col + 1))
except:
pass
return moves
| 32.889621
| 218
| 0.332799
| 2,174
| 19,964
| 3.020699
| 0.047378
| 0.123953
| 0.106594
| 0.082229
| 0.835541
| 0.785442
| 0.781788
| 0.771128
| 0.750419
| 0.750419
| 0
| 0.048293
| 0.56126
| 19,964
| 607
| 219
| 32.889621
| 0.70145
| 0.011521
| 0
| 0.765073
| 0
| 0
| 0.00822
| 0.0011
| 0
| 0
| 0
| 0
| 0
| 1
| 0.033264
| false
| 0.012474
| 0.002079
| 0.008316
| 0.087318
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 8
|
d3c30e908dfea361d95643f68f91ab198edf7a66
| 12,554
|
py
|
Python
|
tests/unit/extensions/test_df.py
|
anuragpatro/cdpcli
|
fe2b78308e4f8c09aa9609a43a646f314fa20327
|
[
"Apache-2.0"
] | null | null | null |
tests/unit/extensions/test_df.py
|
anuragpatro/cdpcli
|
fe2b78308e4f8c09aa9609a43a646f314fa20327
|
[
"Apache-2.0"
] | null | null | null |
tests/unit/extensions/test_df.py
|
anuragpatro/cdpcli
|
fe2b78308e4f8c09aa9609a43a646f314fa20327
|
[
"Apache-2.0"
] | null | null | null |
# Copyright (c) 2021 Cloudera, Inc. 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. A copy of
# the License is located at
#
# http://aws.amazon.com/apache2.0/
#
# or in the "license" file accompanying this file. This file 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 os
from cdpcli.exceptions import DfExtensionError
from cdpcli.extensions.df import DfExtension, upload_workload_asset
from mock import Mock
from tests import unittest
BASE_DIR = os.path.dirname(os.path.abspath(__file__))
class TestDfExtension(unittest.TestCase):
def setUp(self):
self.client = Mock()
self.client.raise_error.side_effect = Exception('ClientError')
self.client_creator = Mock(return_value=self.client)
self.parsed_globals = Mock(output=None)
def test_df_upload_flow(self):
body_list = []
def _make_request(*args, **kwargs):
body_list.append(args[4].read())
return Mock(status_code=200), {}
self.client.make_request.side_effect = _make_request
operation_model = Mock()
operation_model.service_model = Mock(service_name='df')
operation_model.name = 'importFlowDefinition'
operation_model.http = {
'method': 'post',
'requestUri': 'https://test.com/path/importFlowDefinition'}
parameters = {
'name': 'flow_name',
'description': 'flow_description',
'comments': 'flow_comments',
'file': os.path.join(BASE_DIR, 'df.flow.json')}
df_extension = DfExtension()
df_extension.invoke(self.client_creator, operation_model,
parameters, None, self.parsed_globals)
self.assertEqual(1, self.client.make_request.call_count)
args, kwargs = self.client.make_request.call_args
self.assertEqual('importFlowDefinition', args[0])
self.assertEqual('post', args[1])
self.assertEqual('https://test.com/path/importFlowDefinition', args[2])
self.assertEqual(
{'Content-Type': 'application/json',
'Flow-Definition-Name': 'flow_name',
'Flow-Definition-Description': 'flow_description',
'Flow-Definition-Comments': 'flow_comments'},
args[3])
body = body_list[0]
self.assertEqual(
(b'{"flowContents":{"identifier":"97047f2a-9d0d-3669-977e-9d022308feb9",'
b'"name":"Simple","comments":""},"parameterContexts":{},"flowEncoding'
b'Version":"1.0"}'),
body)
def test_df_upload_flow_no_optional_parameters(self):
body_list = []
def _make_request(*args, **kwargs):
body_list.append(args[4].read())
return Mock(status_code=200), {}
self.client.make_request.side_effect = _make_request
operation_model = Mock()
operation_model.service_model = Mock(service_name='df')
operation_model.name = 'importFlowDefinition'
operation_model.http = {
'method': 'post',
'requestUri': 'https://test.com/path/importFlowDefinition'}
parameters = {
'name': 'flow_name',
'file': os.path.join(BASE_DIR, 'df.flow.json')}
df_extension = DfExtension()
df_extension.invoke(self.client_creator, operation_model,
parameters, None, self.parsed_globals)
self.assertEqual(1, self.client.make_request.call_count)
args, kwargs = self.client.make_request.call_args
self.assertEqual('importFlowDefinition', args[0])
self.assertEqual('post', args[1])
self.assertEqual('https://test.com/path/importFlowDefinition', args[2])
self.assertEqual(
{'Content-Type': 'application/json',
'Flow-Definition-Name': 'flow_name'},
args[3])
body = body_list[0]
self.assertEqual(
(b'{"flowContents":{"identifier":"97047f2a-9d0d-3669-977e-9d022308feb9",'
b'"name":"Simple","comments":""},"parameterContexts":{},"flowEncoding'
b'Version":"1.0"}'),
body)
def test_df_upload_flow_version(self):
body_list = []
def _make_request(*args, **kwargs):
body_list.append(args[4].read())
return Mock(status_code=200), {}
self.client.make_request.side_effect = _make_request
operation_model = Mock()
operation_model.service_model = Mock(service_name='df')
operation_model.name = 'importFlowDefinitionVersion'
operation_model.http = {
'method': 'post',
'requestUri': 'https://test.com/path/importFlowDefinitionVersion'}
parameters = {
'flowCrn': 'flow_crn',
'comments': 'flow_comments',
'file': os.path.join(BASE_DIR, 'df.flow.json')}
df_extension = DfExtension()
df_extension.invoke(self.client_creator, operation_model,
parameters, None, self.parsed_globals)
self.assertEqual(1, self.client.make_request.call_count)
args, kwargs = self.client.make_request.call_args
self.assertEqual('importFlowDefinitionVersion', args[0])
self.assertEqual('post', args[1])
self.assertEqual('https://test.com/path/importFlowDefinitionVersion', args[2])
self.assertEqual(
{'Content-Type': 'application/json',
'Flow-Definition-Comments': 'flow_comments'},
args[3])
body = body_list[0]
self.assertEqual(
(b'{"flowContents":{"identifier":"97047f2a-9d0d-3669-977e-9d022308feb9",'
b'"name":"Simple","comments":""},"parameterContexts":{},"flowEncoding'
b'Version":"1.0"}'),
body)
def test_df_upload_flow_version_no_optional_parameters(self):
body_list = []
def _make_request(*args, **kwargs):
body_list.append(args[4].read())
return Mock(status_code=200), {}
self.client.make_request.side_effect = _make_request
operation_model = Mock()
operation_model.service_model = Mock(service_name='df')
operation_model.name = 'importFlowDefinitionVersion'
operation_model.http = {
'method': 'post',
'requestUri': 'https://test.com/path/importFlowDefinitionVersion'}
parameters = {
'flowCrn': 'flow_crn',
'file': os.path.join(BASE_DIR, 'df.flow.json')}
df_extension = DfExtension()
df_extension.invoke(self.client_creator, operation_model,
parameters, None, self.parsed_globals)
self.assertEqual(1, self.client.make_request.call_count)
args, kwargs = self.client.make_request.call_args
self.assertEqual('importFlowDefinitionVersion', args[0])
self.assertEqual('post', args[1])
self.assertEqual('https://test.com/path/importFlowDefinitionVersion', args[2])
self.assertEqual(
{'Content-Type': 'application/json'},
args[3])
body = body_list[0]
self.assertEqual(
(b'{"flowContents":{"identifier":"97047f2a-9d0d-3669-977e-9d022308feb9",'
b'"name":"Simple","comments":""},"parameterContexts":{},"flowEncoding'
b'Version":"1.0"}'),
body)
def test_df_workload_upload_asset(self):
body_list = []
def _make_request(*args, **kwargs):
body_list.append(args[4].read())
return Mock(status_code=200), {}
self.client.make_request.side_effect = _make_request
operation_model = Mock()
operation_model.service_model = Mock(service_name='dfworkload')
operation_model.name = 'uploadAsset'
operation_model.http = {
'method': 'post',
'requestUri': '/dfx/api/rpc-v1/deployments/uploadAsset'}
parameters = {
'environmentCrn': 'env_crn',
'parameterGroup': 'param_group',
'parameterName': 'param_name',
'deploymentRequestCrn': 'deployment_request_crn',
'deploymentName': 'deployment_name',
'assetUpdateRequestCrn': 'asset_update_request_crn',
'filePath': os.path.join(BASE_DIR, 'df-workload.asset.bin')}
df_extension = DfExtension()
df_extension.invoke(self.client_creator, operation_model,
parameters, None, self.parsed_globals)
self.assertEqual(1, self.client.make_request.call_count)
args, kwargs = self.client.make_request.call_args
self.assertEqual('uploadAsset', args[0])
self.assertEqual('post', args[1])
self.assertEqual('/dfx/api/rpc-v1/deployments/upload-asset-content', args[2])
self.assertEqual(
{'Content-Type': 'application/octet-stream',
'Deployment-Request-Crn': 'deployment_request_crn',
'Deployment-Name': 'deployment_name',
'Asset-Update-Request-Crn': 'asset_update_request_crn',
'Parameter-Group': 'param_group',
'Parameter-Name': 'param_name',
'File-Path': os.path.join(BASE_DIR, 'df-workload.asset.bin')},
args[3])
body = body_list[0]
self.assertIsNotNone(body)
self.assertEqual(42, len(body))
def test_df_workload_upload_asset_no_optional_parameters(self):
body_list = []
def _make_request(*args, **kwargs):
body_list.append(args[4].read())
return Mock(status_code=200), {}
self.client.make_request.side_effect = _make_request
operation_model = Mock()
operation_model.service_model = Mock(service_name='dfworkload')
operation_model.name = 'uploadAsset'
operation_model.http = {
'method': 'post',
'requestUri': '/dfx/api/rpc-v1/deployments/uploadAsset'}
parameters = {
'environmentCrn': 'env_crn',
'parameterGroup': 'param_group',
'parameterName': 'param_name',
'filePath': os.path.join(BASE_DIR, 'df-workload.asset.bin')}
df_extension = DfExtension()
df_extension.invoke(self.client_creator, operation_model,
parameters, None, self.parsed_globals)
self.assertEqual(1, self.client.make_request.call_count)
args, kwargs = self.client.make_request.call_args
self.assertEqual('uploadAsset', args[0])
self.assertEqual('post', args[1])
self.assertEqual('/dfx/api/rpc-v1/deployments/upload-asset-content', args[2])
self.assertEqual(
{'Content-Type': 'application/octet-stream',
'Parameter-Group': 'param_group',
'Parameter-Name': 'param_name',
'File-Path': os.path.join(BASE_DIR, 'df-workload.asset.bin')},
args[3])
body = body_list[0]
self.assertIsNotNone(body)
self.assertEqual(42, len(body))
def test_operation_not_supported(self):
operation_model = Mock()
operation_model.service_model = Mock(service_name='foo')
operation_model.name = 'importFlowDefinition'
df_extension = DfExtension()
with self.assertRaisesRegex(DfExtensionError,
'The DF extension failed: '
'The operation is not supported. '
'Service name: foo, '
'operation name: importFlowDefinition'):
df_extension.invoke(self.client_creator, operation_model,
None, None, None)
self.assertEqual(0, self.client.make_api_call.call_count)
self.assertEqual(0, self.client.make_request.call_count)
def test_upload_file_not_found(self):
parameters = {
'environmentCrn': 'env_crn',
'parameterGroup': 'param_group',
'parameterName': 'param_name',
'filePath': os.path.join(BASE_DIR, 'file-not-found')
}
with self.assertRaises(DfExtensionError):
upload_workload_asset(self.client, parameters)
self.assertEqual(0, self.client.make_api_call.call_count)
self.assertEqual(0, self.client.make_request.call_count)
| 41.846667
| 86
| 0.615501
| 1,328
| 12,554
| 5.61747
| 0.140813
| 0.080429
| 0.041287
| 0.0563
| 0.810054
| 0.807507
| 0.807507
| 0.802145
| 0.79571
| 0.79571
| 0
| 0.019347
| 0.258882
| 12,554
| 299
| 87
| 41.986622
| 0.782459
| 0.04166
| 0
| 0.82996
| 0
| 0
| 0.243385
| 0.099185
| 0
| 0
| 0
| 0
| 0.178138
| 1
| 0.060729
| false
| 0
| 0.093117
| 0
| 0.182186
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
d3d50fe75095f3832473eabfbc36ecc1f922e690
| 22,236
|
py
|
Python
|
test/test_account.py
|
iGeeky/open-account
|
8e1329cddcb97517a841f3d98786ba4d76065e2b
|
[
"MIT"
] | 10
|
2021-01-17T14:12:01.000Z
|
2021-07-12T07:29:29.000Z
|
test/test_account.py
|
iGeeky/open-account
|
8e1329cddcb97517a841f3d98786ba4d76065e2b
|
[
"MIT"
] | null | null | null |
test/test_account.py
|
iGeeky/open-account
|
8e1329cddcb97517a841f3d98786ba4d76065e2b
|
[
"MIT"
] | 1
|
2022-01-02T15:18:40.000Z
|
2022-01-02T15:18:40.000Z
|
# coding=utf8
import time
import json
import unittest
from pycore import AccountTest, random_tel, random_username, CH
from pycore.utils import get_ok_schema, get_fail_schema, get_user_login_schema, get_userinfo_schema, get_sms_code_schema
from pycore.schema_gen import set_schema_enums
def get_check_tel_exist_schema(enums={}):
data_schema = {
"type": "object",
"properties": {
"exist": {"type": "boolean"},
"tel": { "type": "string" },
"userType": {"type": "integer"}
},
"required": [ "exist", "tel", "userType" ]
}
set_schema_enums(data_schema['properties'], enums)
schema = get_ok_schema(data_schema)
return schema
def get_invite_code_settable_schema(settable=True):
data_schema = {
"type": "object",
"properties": {
"settable": {"type": "boolean"},
},
"required": [ "settable" ]
}
enums = {"settable": settable}
set_schema_enums(data_schema['properties'], enums)
schema = get_ok_schema(data_schema)
return schema
def get_check_username_exist_schema(enums={}):
data_schema = {
"type": "object",
"properties": {
"exist": {"type": "boolean"},
"username": { "type": "string" },
"userType": {"type": "integer"}
},
"required": [ "exist", "username", "userType" ]
}
set_schema_enums(data_schema['properties'], enums)
schema = get_ok_schema(data_schema)
return schema
class TestAccount(AccountTest):
TIMEOUT = 60
def userRegister(self, tel, username, userType=1, password=None, inviteCode=None,
profile=None, headers=None, login_enums={}):
if not headers:
headers = self.getDefaultHeaders()
body = {
"tel": tel,
"code": self.SUPER_TEST_CODE,
"username": username,
"userType": userType,
}
if password:
body["password"] = password
if inviteCode:
body["inviteCode"] = inviteCode
if profile:
body["profile"] = profile
schema = get_user_login_schema(enums=login_enums)
res = self.http_post(url='/v1/account/user/register', headers=headers, body=body, status=200, schema=schema)
data = res.json["data"]
token = data["token"]
userInfo = data["userInfo"]
return token, userInfo
def test_check_exist_tel_not_exist(self):
headers = self.getDefaultHeaders()
tel = random_tel()
schema = get_check_tel_exist_schema(enums={"tel": tel, "exist": False})
args = {
"tel": tel,
}
res = self.http_get(url='/v1/account/user/check_exist/tel', headers=headers, args=args, status=200, schema=schema)
def test_check_exist_username_not_exist(self):
headers = self.getDefaultHeaders()
username = random_username()
schema = get_check_username_exist_schema(enums={"username": username, "exist": False})
args = {
"username": username,
}
res = self.http_get(url='/v1/account/user/check_exist/username', headers=headers, args=args, status=200, schema=schema)
def test_check_exist_tel_exist(self):
headers = self.getDefaultHeaders()
tel = random_tel()
body = {
"tel": tel,
"code": self.SUPER_TEST_CODE,
"username": random_username(),
}
res = self.http_post(url='/v1/account/user/register', headers=headers, body=body, status=200)
schema = get_check_tel_exist_schema(enums={"tel": tel, "exist": True})
args = {
"tel": tel,
}
res = self.http_get(url='/v1/account/user/check_exist/tel', headers=headers, args=args, status=200, schema=schema)
def test_check_exist_username_exist(self):
headers = self.getDefaultHeaders()
username = random_username()
body = {
"tel": random_tel(),
"code": self.SUPER_TEST_CODE,
"username": username,
}
res = self.http_post(url='/v1/account/user/register', headers=headers, body=body, status=200)
schema = get_check_username_exist_schema(enums={"username": username, "exist": True})
args = {
"username": username,
}
res = self.http_get(url='/v1/account/user/check_exist/username', headers=headers, args=args, status=200, schema=schema)
def test_user_register_success(self):
tel = random_tel()
username = random_username()
self.userRegister(tel,username)
def test_user_register_failed_username_duplicate(self):
headers = self.getDefaultHeaders()
username = random_username()
self.userRegister(random_tel(),username)
body = {
"tel": random_tel(),
"code": self.SUPER_TEST_CODE,
"username": username,
"userType": 1,
}
schema = get_fail_schema('ERR_USERNAME_REGISTED')
res = self.http_post(url='/v1/account/user/register', headers=headers, body=body, status=200, schema=schema)
def test_user_register_failed_tel_duplicate(self):
headers = self.getDefaultHeaders()
tel = random_tel()
username = random_username()
self.userRegister(tel,username)
body = {
"tel": tel,
"code": self.SUPER_TEST_CODE,
"username": random_username(),
"userType": 1,
}
schema = get_fail_schema('ERR_TEL_REGISTED')
res = self.http_post(url='/v1/account/user/register', headers=headers, body=body, status=200, schema=schema)
def test_user_register_diffence_userType_success(self):
tel = random_tel()
username = random_username()
self.userRegister(tel,username, userType=1)
self.userRegister(tel,username, userType=2)
def test_user_register_with_invite_code(self):
tel = random_tel()
username = random_username()
inviteCode = "test-invite-code"
self.userRegister(tel,username, inviteCode=inviteCode, login_enums={"regInviteCode": inviteCode })
def test_user_get_userinfo_failed_token_missing(self):
headers = self.getDefaultHeaders()
schema = get_fail_schema('ERR_TOKEN_INVALID')
res = self.http_get(url='/v1/account/user/userinfo', headers=headers, status=401, schema=schema)
def test_user_get_userinfo_failed_token_invlid(self):
headers = self.getDefaultHeaders()
headers[CH("Token")] = "TOKEN-INVALID"
schema = get_fail_schema('ERR_TOKEN_INVALID')
res = self.http_get(url='/v1/account/user/userinfo', headers=headers, status=401, schema=schema)
def test_user_get_set_userinfo_success(self):
tel = random_tel()
username = random_username()
inviteCode = "test-invite-code"
profile = {"id": "test01", "city": "sz"} # 字段需要在服务器端定义
token, _ = self.userRegister(tel, username, inviteCode=inviteCode, profile=profile, login_enums={"regInviteCode": inviteCode})
headers = self.getDefaultHeaders()
headers[CH("Token")] = token
schema = get_userinfo_schema(enums={"tel": tel, "username": username, "regInviteCode": inviteCode})
res = self.http_get(url='/v1/account/user/userinfo', headers=headers, status=200, schema=schema)
# 设置用户信息
body = {
"avatar": "https://avatars.githubusercontent.com/u/57409417?s=460&u=1fff104b9010d84a47ecf12c5abce96436fc7b8b&v=4",
"nickname": "igeeky",
"sex": 1,
"birthday": "2021-01-18",
}
schema = get_userinfo_schema(enums=body)
res = self.http_put(url='/v1/account/user/userinfo', headers=headers, body=body, status=200, schema=schema)
def test_user_logout(self):
tel = random_tel()
username = random_username()
token, _ = self.userRegister(tel, username)
headers = self.getDefaultHeaders()
headers[CH("Token")] = token
schema = get_ok_schema()
body = {}
res = self.http_post(url='/v1/account/user/logout', headers=headers, body=body, status=200, schema=schema)
# 第二次logout失败.
schema = get_fail_schema('ERR_TOKEN_EXPIRED')
res = self.http_post(url='/v1/account/user/logout', headers=headers, body=body, status=401, schema=schema)
def test_user_register_empty_password(self):
tel = random_tel()
username = random_username()
headers = self.getDefaultHeaders()
emptyPassword = self.encodePassword("empty-password")
self.userRegister(tel, username)
body = {
"tel": tel,
"password": emptyPassword,
}
schema = get_fail_schema('ERR_PASSWORD_ERR')
res = self.http_post(url="/v1/account/user/login", headers=headers, body=body, status=200, schema=schema)
def test_user_register_login_success(self):
tel = random_tel()
username = random_username()
headers = self.getDefaultHeaders()
password = self.encodePassword("password")
self.userRegister(tel, username, password=password)
schema = get_fail_schema('ERR_ARGS_INVALID')
body = {
"password": password,
}
res = self.http_post(url="/v1/account/user/login", headers=headers, body=body, status=400, schema=schema)
# 手机号登录
schema = get_user_login_schema()
body = {
"tel": tel,
"password": password,
}
res = self.http_post(url="/v1/account/user/login", headers=headers, body=body, status=200, schema=schema)
# 用户名登录
body = {
"username": username,
"password": password,
}
res = self.http_post(url="/v1/account/user/login", headers=headers, body=body, status=200, schema=schema)
def test_user_register_login_failed(self):
tel = random_tel()
username = random_username()
headers = self.getDefaultHeaders()
password = self.encodePassword("password")
errPassword = self.encodePassword("err-password")
self.userRegister(tel, username, password=password)
body = {
"tel": tel,
"password": errPassword,
}
schema = get_fail_schema('ERR_PASSWORD_ERR')
res = self.http_post(url="/v1/account/user/login", headers=headers, body=body, status=200, schema=schema)
def test_user_change_pwd_failed_old_pwd_error(self):
tel = random_tel()
username = random_username()
oldPassword = self.encodePassword("old-password")
newPassword = self.encodePassword("new-password")
errPassword = self.encodePassword("err-password")
token, _ = self.userRegister(tel, username, password=oldPassword)
headers = self.getDefaultHeaders()
headers[CH("Token")] = token
body = {
"oldPassword": errPassword,
"password": newPassword,
}
schema = get_fail_schema('ERR_PASSWORD_ERR')
res = self.http_put(url="/v1/account/user/password", headers=headers, body=body, status=200, schema=schema)
def test_user_change_pwd_success(self):
tel = random_tel()
username = random_username()
oldPassword = self.encodePassword("old-password")
newPassword = self.encodePassword("new-password")
token, _ = self.userRegister(tel, username, password=oldPassword)
headers = self.getDefaultHeaders()
headers[CH("Token")] = token
# 修改密码
body = {
"oldPassword": oldPassword,
"password": newPassword,
}
schema = get_ok_schema()
res = self.http_put(url="/v1/account/user/password", headers=headers, body=body, status=200, schema=schema)
# 使用旧密码登录失败
body = {
"tel": tel,
"password": oldPassword,
}
schema = get_fail_schema('ERR_PASSWORD_ERR')
res = self.http_post(url="/v1/account/user/login", headers=headers, body=body, status=200, schema=schema)
# 使用新密码登录成功
body = {
"tel": tel,
"password": newPassword,
}
schema = get_user_login_schema(enums={})
res = self.http_post(url="/v1/account/user/login", headers=headers, body=body, status=200, schema=schema)
def test_user_reset_pwd_failed_sms_code_invalid(self):
tel = random_tel()
username = random_username()
oldPassword = self.encodePassword("old-password")
newPassword = self.encodePassword("new-password")
token, _ = self.userRegister(tel, username, password=oldPassword)
headers = self.getDefaultHeaders()
headers[CH("Token")] = token
# 发送验证码
body = {
"tel": tel,
"bizType": "login",
}
schema = get_ok_schema()
res = self.http_post(url='/v1/account/user/sms/send', headers=headers, body=body, status=200, schema=schema)
# 通过后门接口, 查询验证码.
args = {
"bizType": "login",
"tel": tel,
"key": AccountTest.SUPER_KEY
}
schema = get_sms_code_schema()
res = self.http_get(url='/v1/man/account/sms/get/code', headers=headers, args=args, status=200, schema=schema)
code = res.json["data"]["code"]
# 重置密码, 验证码类型错误
body = {
"tel": tel,
"code": code,
"password": newPassword,
}
schema = get_fail_schema('ERR_CODE_INVALID')
res = self.http_put(url="/v1/account/user/password/reset", headers=headers, body=body, status=200, schema=schema)
def test_user_reset_pwd_failed_tel_not_exist(self):
tel = random_tel()
username = random_username()
headers = self.getDefaultHeaders()
oldPassword = self.encodePassword("old-password")
newPassword = self.encodePassword("new-password")
# 发送验证码
body = {
"tel": tel,
"bizType": "resetPwd",
}
schema = get_ok_schema()
res = self.http_post(url='/v1/account/user/sms/send', headers=headers, body=body, status=200, schema=schema)
# 通过后门接口, 查询验证码.
args = {
"bizType": "resetPwd",
"tel": tel,
"key": AccountTest.SUPER_KEY
}
schema = get_sms_code_schema()
res = self.http_get(url='/v1/man/account/sms/get/code', headers=headers, args=args, status=200, schema=schema)
code = res.json["data"]["code"]
# 重置密码, 手机号不存在
body = {
"tel": tel,
"code": code,
"password": newPassword,
}
schema = get_fail_schema('ERR_TEL_NOT_EXIST')
res = self.http_put(url="/v1/account/user/password/reset", headers=headers, body=body, status=200, schema=schema)
def test_user_reset_pwd_success(self):
tel = random_tel()
username = random_username()
oldPassword = self.encodePassword("old-password")
newPassword = self.encodePassword("new-password")
token, _ = self.userRegister(tel, username, password=oldPassword)
headers = self.getDefaultHeaders()
headers[CH("Token")] = token
# 发送验证码
body = {
"tel": tel,
"bizType": "resetPwd",
}
schema = get_ok_schema()
res = self.http_post(url='/v1/account/user/sms/send', headers=headers, body=body, status=200, schema=schema)
# 通过后门接口, 查询验证码.
args = {
"bizType": "resetPwd",
"tel": tel,
"key": AccountTest.SUPER_KEY
}
schema = get_sms_code_schema()
res = self.http_get(url='/v1/man/account/sms/get/code', headers=headers, args=args, status=200, schema=schema)
code = res.json["data"]["code"]
# 重置密码
body = {
"tel": tel,
"code": code,
"password": newPassword,
}
schema = get_ok_schema()
res = self.http_put(url="/v1/account/user/password/reset", headers=headers, body=body, status=200, schema=schema)
# 使用旧密码登录失败
body = {
"tel": tel,
"password": oldPassword,
}
schema = get_fail_schema('ERR_PASSWORD_ERR')
res = self.http_post(url="/v1/account/user/login", headers=headers, body=body, status=200, schema=schema)
# 使用新密码登录成功
body = {
"tel": tel,
"password": newPassword,
}
schema = get_user_login_schema(enums={})
res = self.http_post(url="/v1/account/user/login", headers=headers, body=body, status=200, schema=schema)
def test_user_set_invite_code(self):
tel = random_tel()
username = random_username()
inv_tel = random_tel()
inv_username = random_username()
oldPassword = self.encodePassword("old-password")
newPassword = self.encodePassword("new-password")
# 邀请的用户
token1, userInfo = self.userRegister(inv_tel, inv_username)
inviteCode = userInfo["inviteCode"]
headers = self.getDefaultHeaders()
headers[CH("Token")] = token1
# 设置自己的邀请码
body = { "inviteCode": inviteCode }
schema = get_fail_schema('ERR_INVITE_CODE_INVALID')
res = self.http_put(url="/v1/account/user/invite_code", headers=headers, body=body, status=200, schema=schema)
# 被邀请的用户
token2, _ = self.userRegister(tel, username, password=oldPassword)
headers = self.getDefaultHeaders()
headers[CH("Token")] = token2
# 检查是否可设置邀请码
schema = get_invite_code_settable_schema(True)
self.http_get(url="/v1/account/user/invite_code/settable", headers=headers, status=200, schema=schema)
# 设置不存在的邀请码
body = { "inviteCode": 'not-exist-invite-code' }
schema = get_fail_schema('ERR_INVITE_CODE_INVALID')
res = self.http_put(url="/v1/account/user/invite_code", headers=headers, body=body, status=200, schema=schema)
# 设置成功
body = { "inviteCode": inviteCode}
schema = get_ok_schema()
res = self.http_put(url="/v1/account/user/invite_code", headers=headers, body=body, status=200, schema=schema)
# 重复设置成功
body = { "inviteCode": inviteCode}
schema = get_ok_schema()
res = self.http_put(url="/v1/account/user/invite_code", headers=headers, body=body, status=200, schema=schema)
def test_user_set_username(self):
tel = random_tel()
token, _ = self.userRegister(tel, "")
headers = self.getDefaultHeaders()
headers[CH("Token")] = token
# 设置用户名
username = random_username()
body = { "username": username}
schema = get_ok_schema()
self.http_put(url="/v1/account/user/username", headers=headers, body=body, status=200, schema=schema)
# 再次用户名,出错
schema = get_fail_schema('ERR_USER_HAVE_USERNAME')
self.http_put(url="/v1/account/user/username", headers=headers, body=body, status=200, schema=schema)
def test_user_manager_reset_pwd_success(self):
tel = random_tel()
username = random_username()
oldPassword = self.encodePassword("old-password")
newPassword = self.encodePassword("new-password")
token, _ = self.userRegister(tel, username, password=oldPassword)
headers = self.getDefaultHeaders()
headers[CH("Token")] = token
# 后台重置密码
body = {
"tel": tel,
"password": newPassword,
}
schema = get_ok_schema()
res = self.http_put(url="/v1/man/account/user/password/reset", headers=self.getAdminHeaders(), body=body, status=200, schema=schema)
# 使用旧密码登录失败
body = {
"tel": tel,
"password": oldPassword,
}
schema = get_fail_schema('ERR_PASSWORD_ERR')
res = self.http_post(url="/v1/account/user/login", headers=headers, body=body, status=200, schema=schema)
# 使用新密码登录成功
body = {
"tel": tel,
"password": newPassword,
}
schema = get_user_login_schema(enums={})
res = self.http_post(url="/v1/account/user/login", headers=headers, body=body, status=200, schema=schema)
def test_user_manager_deregister(self):
tel = random_tel()
username = random_username()
password = self.encodePassword("password")
token, userInfo = self.userRegister(tel, username, password=password)
headers = self.getDefaultHeaders()
headers[CH("Token")] = token
# 后台注销注册用户
body = {
"id": userInfo['id']
}
schema = get_ok_schema()
res = self.http_delete(url="/v1/man/account/user/deregister", headers=self.getAdminHeaders(), body=body, status=200, schema=schema)
schema = get_fail_schema('ERR_TOKEN_EXPIRED')
res = self.http_get(url='/v1/account/user/userinfo', headers=headers, status=401, schema=schema)
def test_user_manager_lock_user(self):
tel = random_tel()
username = random_username()
password = self.encodePassword("password")
token, userInfo = self.userRegister(tel, username, password=password)
headers = self.getDefaultHeaders()
headers[CH("Token")] = token
# 后台注销注册用户
UserStatusDisabled = -1
body = {
"id": userInfo['id'],
"status": UserStatusDisabled,
}
schema = get_ok_schema()
res = self.http_put(url="/v1/man/account/user/status", headers=self.getAdminHeaders(), body=body, status=200, schema=schema)
# 需要token的操作, 提示用户被锁定
schema = get_fail_schema('ERR_USER_IS_LOCKED')
res = self.http_get(url='/v1/account/user/userinfo', headers=headers, status=200, schema=schema)
# 重新登录,提示用户被锁定
body = {
"tel": tel,
"password": password,
}
schema = get_fail_schema('ERR_USER_IS_LOCKED')
res = self.http_post(url="/v1/account/user/login", headers=headers, body=body, status=200, schema=schema)
# print(res.req_debug)
| 37.183946
| 140
| 0.609372
| 2,429
| 22,236
| 5.385755
| 0.071223
| 0.03715
| 0.03952
| 0.053814
| 0.855832
| 0.821434
| 0.797814
| 0.744076
| 0.718621
| 0.688656
| 0
| 0.015754
| 0.263492
| 22,236
| 598
| 141
| 37.183946
| 0.783049
| 0.01637
| 0
| 0.673684
| 0
| 0.002105
| 0.145317
| 0.065354
| 0
| 0
| 0
| 0
| 0
| 1
| 0.063158
| false
| 0.141053
| 0.012632
| 0
| 0.088421
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
|
0
| 7
|
d3deca9f137c3f1df580388c55bf1c2af35b3cc4
| 8,251
|
py
|
Python
|
klimits/tests/test_constant_action_trajectory_generation.py
|
translearn/limits
|
2f7a7c9ebbb13e93b6dabf10c7f1ec25dbf7ce6d
|
[
"MIT"
] | 4
|
2020-12-15T15:24:59.000Z
|
2021-11-21T14:42:11.000Z
|
klimits/tests/test_constant_action_trajectory_generation.py
|
translearn/limits
|
2f7a7c9ebbb13e93b6dabf10c7f1ec25dbf7ce6d
|
[
"MIT"
] | 2
|
2021-07-14T17:52:28.000Z
|
2022-03-30T15:19:41.000Z
|
klimits/tests/test_constant_action_trajectory_generation.py
|
translearn/limits
|
2f7a7c9ebbb13e93b6dabf10c7f1ec25dbf7ce6d
|
[
"MIT"
] | 2
|
2021-07-14T14:25:23.000Z
|
2022-03-02T13:04:02.000Z
|
import pytest
import pytest_check as check
from klimits.test_trajectory_generation import test_trajectory_generation
@pytest.mark.parametrize("time_step", [0.05, 0.1])
@pytest.mark.parametrize("pos_limits", [[[-2.96705972839, 2.96705972839],
[-2.09439510239, 2.09439510239],
[-2.96705972839, 2.96705972839],
[-2.09439510239, 2.09439510239],
[-2.96705972839, 2.96705972839],
[-2.09439510239, 2.09439510239],
[-3.05432619099, 3.05432619099]]])
@pytest.mark.parametrize("vel_limits", [[[-1.71042266695, 1.71042266695],
[-1.71042266695, 1.71042266695],
[-1.74532925199, 1.74532925199],
[-2.26892802759, 2.26892802759],
[-2.44346095279, 2.44346095279],
[-3.14159265359, 3.14159265359],
[-3.14159265359, 3.14159265359]]])
@pytest.mark.parametrize("acc_limits", [[[-15.0, 15.0],
[-7.5, 7.5],
[-10.0, 10.0],
[-12.5, 12.5],
[-15.0, 15.0],
[-20.0, 20.0],
[-20.0, 20.0]]])
@pytest.mark.parametrize("pos_limit_factor", [0.2, 0.5, 1.0])
@pytest.mark.parametrize("vel_limit_factor", [0.2, 0.5, 1.0])
@pytest.mark.parametrize("acc_limit_factor", [0.2, 0.5, 1.0])
@pytest.mark.parametrize("jerk_limit_factor", [0.1, 0.2, 0.5, 1.0])
@pytest.mark.parametrize("trajectory_duration", [300])
@pytest.mark.parametrize("seed", [1])
def test_max_trajectory_generation(time_step, pos_limits, vel_limits, acc_limits, pos_limit_factor,
vel_limit_factor, acc_limit_factor, jerk_limit_factor, trajectory_duration,
seed):
trajectory_summary = test_trajectory_generation(time_step=time_step, pos_limits=pos_limits, vel_limits=vel_limits,
acc_limits=acc_limits, pos_limit_factor=pos_limit_factor,
vel_limit_factor=vel_limit_factor,
acc_limit_factor=acc_limit_factor,
jerk_limit_factor=jerk_limit_factor,
trajectory_duration=trajectory_duration,
constant_action=1.0, num_threads=1, plot_joint=None,
no_plot=True, plot_safe_acc_limits=False, seed=seed,
return_summary=True)
for key, value in trajectory_summary.items():
for joint_index in range(len(value)):
if key == "violation_code":
check.less(value[joint_index]['max'], 1.0,
"max violation code, joint {}, value {}".format(joint_index, value[joint_index]['max']))
else:
check.greater(value[joint_index]['min'], -1.005,
"min {} violation, joint {}, value {}".format(key, joint_index,
value[joint_index]['min']))
check.less(value[joint_index]['max'], 1.005,
"max {} violation, joint {}, value {}".format(key, joint_index, value[joint_index]['max']))
for joint_index in range(len(trajectory_summary['pos'])):
check.greater(trajectory_summary['pos'][joint_index]['final'], 0.96,
"final pos too small, joint {}, value {}".format(joint_index,
trajectory_summary['pos'][joint_index]['final']))
@pytest.mark.parametrize("time_step", [0.05, 0.1])
@pytest.mark.parametrize("pos_limits", [[[-2.96705972839, 2.96705972839],
[-2.09439510239, 2.09439510239],
[-2.96705972839, 2.96705972839],
[-2.09439510239, 2.09439510239],
[-2.96705972839, 2.96705972839],
[-2.09439510239, 2.09439510239],
[-3.05432619099, 3.05432619099]]])
@pytest.mark.parametrize("vel_limits", [[[-1.71042266695, 1.71042266695],
[-1.71042266695, 1.71042266695],
[-1.74532925199, 1.74532925199],
[-2.26892802759, 2.26892802759],
[-2.44346095279, 2.44346095279],
[-3.14159265359, 3.14159265359],
[-3.14159265359, 3.14159265359]]])
@pytest.mark.parametrize("acc_limits", [[[-15.0, 15.0],
[-7.5, 7.5],
[-10.0, 10.0],
[-12.5, 12.5],
[-15.0, 15.0],
[-20.0, 20.0],
[-20.0, 20.0]]])
@pytest.mark.parametrize("pos_limit_factor", [0.2, 0.5, 1.0])
@pytest.mark.parametrize("vel_limit_factor", [0.2, 0.5, 1.0])
@pytest.mark.parametrize("acc_limit_factor", [0.2, 0.5, 1.0])
@pytest.mark.parametrize("jerk_limit_factor", [0.1, 0.2, 0.5, 1.0])
@pytest.mark.parametrize("trajectory_duration", [300])
@pytest.mark.parametrize("seed", [1])
def test_min_trajectory_generation(time_step, pos_limits, vel_limits, acc_limits, pos_limit_factor,
vel_limit_factor, acc_limit_factor, jerk_limit_factor, trajectory_duration,
seed):
trajectory_summary = test_trajectory_generation(time_step=time_step, pos_limits=pos_limits, vel_limits=vel_limits,
acc_limits=acc_limits, pos_limit_factor=pos_limit_factor,
vel_limit_factor=vel_limit_factor,
acc_limit_factor=acc_limit_factor,
jerk_limit_factor=jerk_limit_factor,
trajectory_duration=trajectory_duration,
constant_action=-1.0, num_threads=1, plot_joint=None,
no_plot=True, plot_safe_acc_limits=False, seed=seed,
return_summary=True)
for key, value in trajectory_summary.items():
for joint_index in range(len(value)):
if key == "violation_code":
check.less(value[joint_index]['max'], 1.0,
"max violation code, joint {}, value {}".format(joint_index, value[joint_index]['max']))
else:
check.greater(value[joint_index]['min'], -1.005,
"min {} violation, joint {}, value {}".format(key, joint_index,
value[joint_index]['min']))
check.less(value[joint_index]['max'], 1.005,
"max {} violation, joint {}, value {}".format(key, joint_index, value[joint_index]['max']))
for joint_index in range(len(trajectory_summary['pos'])):
check.less(trajectory_summary['pos'][joint_index]['final'], -0.96,
"final pos too high, joint {}, value {}".format(joint_index,
trajectory_summary['pos'][joint_index]['final']))
| 67.081301
| 120
| 0.46055
| 780
| 8,251
| 4.647436
| 0.101282
| 0.097103
| 0.115862
| 0.06069
| 0.964966
| 0.964966
| 0.964966
| 0.964966
| 0.964966
| 0.964966
| 0
| 0.179148
| 0.422252
| 8,251
| 122
| 121
| 67.631148
| 0.581288
| 0
| 0
| 0.902655
| 0
| 0
| 0.079142
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.017699
| false
| 0
| 0.026549
| 0
| 0.044248
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.