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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
cb6058fedaf3b47628af72cf660a2728167db2d9
| 28,428
|
py
|
Python
|
src/backend/api/handlers/tests/team_test.py
|
bovlb/the-blue-alliance
|
29389649d96fe060688f218d463e642dcebfd6cc
|
[
"MIT"
] | null | null | null |
src/backend/api/handlers/tests/team_test.py
|
bovlb/the-blue-alliance
|
29389649d96fe060688f218d463e642dcebfd6cc
|
[
"MIT"
] | null | null | null |
src/backend/api/handlers/tests/team_test.py
|
bovlb/the-blue-alliance
|
29389649d96fe060688f218d463e642dcebfd6cc
|
[
"MIT"
] | null | null | null |
import json
from google.appengine.ext import ndb
from werkzeug.test import Client
from backend.api.handlers.tests.helpers import (
validate_nominal_event_keys,
validate_nominal_match_keys,
validate_nominal_team_keys,
validate_simple_event_keys,
validate_simple_match_keys,
validate_simple_team_keys,
)
from backend.common.consts.auth_type import AuthType
from backend.common.consts.award_type import AwardType
from backend.common.consts.event_type import EventType
from backend.common.consts.media_tag import MediaTag
from backend.common.consts.media_type import MediaType
from backend.common.models.api_auth_access import ApiAuthAccess
from backend.common.models.award import Award
from backend.common.models.district import District
from backend.common.models.district_team import DistrictTeam
from backend.common.models.event import Event
from backend.common.models.event_team import EventTeam
from backend.common.models.match import Match
from backend.common.models.media import Media
from backend.common.models.robot import Robot
from backend.common.models.team import Team
def test_team(ndb_stub, api_client: Client) -> None:
ApiAuthAccess(
id="test_auth_key",
auth_types_enum=[AuthType.READ_API],
).put()
Team(id="frc254", team_number=254).put()
# Nominal response
resp = api_client.get(
"/api/v3/team/frc254", headers={"X-TBA-Auth-Key": "test_auth_key"}
)
assert resp.status_code == 200
assert resp.json["key"] == "frc254"
validate_nominal_team_keys(resp.json)
# Simple response
resp = api_client.get(
"/api/v3/team/frc254/simple", headers={"X-TBA-Auth-Key": "test_auth_key"}
)
assert resp.status_code == 200
assert resp.json["key"] == "frc254"
validate_simple_team_keys(resp.json)
# Keys response
resp = api_client.get(
"/api/v3/team/frc254/keys", headers={"X-TBA-Auth-Key": "test_auth_key"}
)
assert resp.status_code == 404
def test_team_years_participated(ndb_stub, api_client: Client) -> None:
ApiAuthAccess(
id="test_auth_key",
auth_types_enum=[AuthType.READ_API],
).put()
Team(id="frc254", team_number=254).put()
EventTeam(
id="1992casj_frc254",
event=ndb.Key("Event", "1992casj"),
team=ndb.Key("Team", "frc254"),
year=1992,
).put()
EventTeam(
id="2010casj_frc254",
event=ndb.Key("Event", "2010casj"),
team=ndb.Key("Team", "frc254"),
year=2010,
).put()
EventTeam(
id="2020casj_frc254",
event=ndb.Key("Event", "2020casj"),
team=ndb.Key("Team", "frc254"),
year=2020,
).put()
resp = api_client.get(
"/api/v3/team/frc254/years_participated",
headers={"X-TBA-Auth-Key": "test_auth_key"},
)
assert resp.status_code == 200
assert resp.json == [1992, 2010, 2020]
def test_team_history_districts(ndb_stub, api_client: Client) -> None:
ApiAuthAccess(
id="test_auth_key",
auth_types_enum=[AuthType.READ_API],
).put()
Team(id="frc254", team_number=254).put()
District(
id="2015fim",
year=2015,
abbreviation="fim",
).put()
District(
id="2020fim",
year=2020,
abbreviation="fim",
).put()
DistrictTeam(
id="2015fim_frc254",
district_key=ndb.Key(District, "2015fim"),
team=ndb.Key(Team, "frc254"),
year=2015,
).put()
DistrictTeam(
id="2020fim_frc254",
district_key=ndb.Key(District, "2020fim"),
team=ndb.Key(Team, "frc254"),
year=2020,
).put()
resp = api_client.get(
"/api/v3/team/frc254/districts",
headers={"X-TBA-Auth-Key": "test_auth_key"},
)
assert resp.status_code == 200
assert len(resp.json) == 2
district_keys = set([d["key"] for d in resp.json])
assert "2015fim" in district_keys
assert "2020fim" in district_keys
def test_team_history_robots(ndb_stub, api_client: Client) -> None:
ApiAuthAccess(
id="test_auth_key",
auth_types_enum=[AuthType.READ_API],
).put()
Team(id="frc254", team_number=254).put()
Robot(
id="frc254_2010",
team=ndb.Key("Team", "frc254"),
year=2010,
).put()
Robot(
id="frc254_2020",
team=ndb.Key("Team", "frc254"),
year=2020,
).put()
resp = api_client.get(
"/api/v3/team/frc254/robots",
headers={"X-TBA-Auth-Key": "test_auth_key"},
)
assert resp.status_code == 200
assert len(resp.json) == 2
robot_keys = set([d["key"] for d in resp.json])
assert "frc254_2010" in robot_keys
assert "frc254_2020" in robot_keys
def test_team_social_media(ndb_stub, api_client: Client) -> None:
ApiAuthAccess(
id="test_auth_key",
auth_types_enum=[AuthType.READ_API],
).put()
Team(id="frc254", team_number=254).put()
Media(
references=[ndb.Key("Team", "frc254")],
year=None,
media_type_enum=MediaType.FACEBOOK_PROFILE,
foreign_key="test",
details_json=None,
).put()
Media(
references=[ndb.Key("Team", "frc254")],
year=None,
media_type_enum=MediaType.GITHUB_PROFILE,
foreign_key="test",
details_json=None,
).put()
resp = api_client.get(
"/api/v3/team/frc254/social_media",
headers={"X-TBA-Auth-Key": "test_auth_key"},
)
assert resp.status_code == 200
assert len(resp.json) == 2
def test_team_events(ndb_stub, api_client: Client) -> None:
ApiAuthAccess(
id="test_auth_key",
auth_types_enum=[AuthType.READ_API],
).put()
Team(id="frc254", team_number=254).put()
Event(
id="2019casj",
year=2019,
event_short="casj",
event_type_enum=EventType.REGIONAL,
).put()
Event(
id="2020casj",
year=2020,
event_short="casj",
event_type_enum=EventType.REGIONAL,
).put()
EventTeam(
id="2019casj_frc254",
event=ndb.Key("Event", "2019casj"),
team=ndb.Key("Team", "frc254"),
year=2019,
).put()
EventTeam(
id="2020casj_frc254",
event=ndb.Key("Event", "2020casj"),
team=ndb.Key("Team", "frc254"),
year=2020,
).put()
# Nominal response
resp = api_client.get(
"/api/v3/team/frc254/events", headers={"X-TBA-Auth-Key": "test_auth_key"}
)
assert resp.status_code == 200
assert len(resp.json) == 2
for event in resp.json:
validate_nominal_event_keys(event)
# Simple response
resp = api_client.get(
"/api/v3/team/frc254/events/simple", headers={"X-TBA-Auth-Key": "test_auth_key"}
)
assert resp.status_code == 200
assert len(resp.json) == 2
for event in resp.json:
validate_simple_event_keys(event)
# Keys response
resp = api_client.get(
"/api/v3/team/frc254/events/keys", headers={"X-TBA-Auth-Key": "test_auth_key"}
)
assert resp.status_code == 200
assert len(resp.json) == 2
def test_team_events_statuses_year(ndb_stub, api_client: Client) -> None:
ApiAuthAccess(
id="test_auth_key",
auth_types_enum=[AuthType.READ_API],
).put()
Team(id="frc254", team_number=254).put()
EventTeam(
id="2020casj_frc254",
event=ndb.Key("Event", "2020casj"),
team=ndb.Key("Team", "frc254"),
year=2020,
).put()
EventTeam(
id="2020casf_frc254",
event=ndb.Key("Event", "2020casf"),
team=ndb.Key("Team", "frc254"),
year=2020,
status={},
).put()
resp = api_client.get(
"/api/v3/team/frc254/events/2020/statuses",
headers={"X-TBA-Auth-Key": "test_auth_key"},
)
assert resp.status_code == 200
assert len(resp.json) == 2
assert resp.json.get("2020casj") is None
casf_status = resp.json.get("2020casf")
assert casf_status is not None
assert (
casf_status["overall_status_str"]
== "Team 254 is waiting for the event to begin."
)
def test_team_events_year(ndb_stub, api_client: Client) -> None:
ApiAuthAccess(
id="test_auth_key",
auth_types_enum=[AuthType.READ_API],
).put()
Team(id="frc254", team_number=254).put()
Event(
id="2019casj",
year=2019,
event_short="casj",
event_type_enum=EventType.REGIONAL,
).put()
Event(
id="2020casj",
year=2020,
event_short="casj",
event_type_enum=EventType.REGIONAL,
).put()
Event(
id="2020casf",
year=2020,
event_short="casf",
event_type_enum=EventType.REGIONAL,
).put()
EventTeam(
id="2019casj_frc254",
event=ndb.Key("Event", "2019casj"),
team=ndb.Key("Team", "frc254"),
year=2019,
).put()
EventTeam(
id="2020casj_frc254",
event=ndb.Key("Event", "2020casj"),
team=ndb.Key("Team", "frc254"),
year=2020,
).put()
EventTeam(
id="2020casf_frc254",
event=ndb.Key("Event", "2020casf"),
team=ndb.Key("Team", "frc254"),
year=2020,
).put()
# Nominal response
resp = api_client.get(
"/api/v3/team/frc254/events/2019", headers={"X-TBA-Auth-Key": "test_auth_key"}
)
assert resp.status_code == 200
assert len(resp.json) == 1
for event in resp.json:
validate_nominal_event_keys(event)
resp = api_client.get(
"/api/v3/team/frc254/events/2020", headers={"X-TBA-Auth-Key": "test_auth_key"}
)
assert resp.status_code == 200
assert len(resp.json) == 2
for event in resp.json:
validate_nominal_event_keys(event)
# Simple response
resp = api_client.get(
"/api/v3/team/frc254/events/2019/simple",
headers={"X-TBA-Auth-Key": "test_auth_key"},
)
assert resp.status_code == 200
assert len(resp.json) == 1
for event in resp.json:
validate_simple_event_keys(event)
resp = api_client.get(
"/api/v3/team/frc254/events/2020/simple",
headers={"X-TBA-Auth-Key": "test_auth_key"},
)
assert resp.status_code == 200
assert len(resp.json) == 2
for event in resp.json:
validate_simple_event_keys(event)
# Keys response
resp = api_client.get(
"/api/v3/team/frc254/events/2019/keys",
headers={"X-TBA-Auth-Key": "test_auth_key"},
)
assert resp.status_code == 200
assert len(resp.json) == 1
assert resp.json[0] == "2019casj"
resp = api_client.get(
"/api/v3/team/frc254/events/2020/keys",
headers={"X-TBA-Auth-Key": "test_auth_key"},
)
assert resp.status_code == 200
assert len(resp.json) == 2
assert "2020casj" in resp.json
assert "2020casf" in resp.json
def test_team_event_matches(ndb_stub, api_client: Client) -> None:
ApiAuthAccess(
id="test_auth_key",
auth_types_enum=[AuthType.READ_API],
).put()
Team(id="frc254", team_number=254).put()
Event(
id="2020casj",
year=2020,
event_short="casj",
event_type_enum=EventType.REGIONAL,
).put()
Match(
id="2020casj_qm1",
year=2020,
event=ndb.Key("Event", "2020casj"),
comp_level="qm",
match_number=1,
set_number=1,
alliances_json=json.dumps(
{
"red": {"score": 0, "teams": []},
"blue": {"score": 0, "teams": []},
}
),
team_key_names=["frc254"],
).put()
Match(
id="2020casj_qm2",
year=2020,
event=ndb.Key("Event", "2020casj"),
comp_level="qm",
match_number=2,
set_number=1,
alliances_json=json.dumps(
{
"red": {"score": 0, "teams": []},
"blue": {"score": 0, "teams": []},
}
),
team_key_names=["frc254"],
).put()
# Nominal response
resp = api_client.get(
"/api/v3/team/frc254/event/2020casj/matches",
headers={"X-TBA-Auth-Key": "test_auth_key"},
)
assert resp.status_code == 200
assert len(resp.json) == 2
for match in resp.json:
validate_nominal_match_keys(match)
# Simple response
resp = api_client.get(
"/api/v3/team/frc254/event/2020casj/matches/simple",
headers={"X-TBA-Auth-Key": "test_auth_key"},
)
assert resp.status_code == 200
assert len(resp.json) == 2
for match in resp.json:
validate_simple_match_keys(match)
# Keys response
resp = api_client.get(
"/api/v3/team/frc254/event/2020casj/matches/keys",
headers={"X-TBA-Auth-Key": "test_auth_key"},
)
assert resp.status_code == 200
assert len(resp.json) == 2
assert "2020casj_qm1" in resp.json
assert "2020casj_qm2" in resp.json
def test_team_event_awards(ndb_stub, api_client: Client) -> None:
ApiAuthAccess(
id="test_auth_key",
auth_types_enum=[AuthType.READ_API],
).put()
Team(id="frc254", team_number=254).put()
Event(
id="2020casj",
year=2020,
event_short="casj",
event_type_enum=EventType.REGIONAL,
).put()
Award(
id="2020casj_1",
year=2020,
award_type_enum=AwardType.WINNER,
event_type_enum=EventType.REGIONAL,
event=ndb.Key(Event, "2020casj"),
name_str="Winner",
team_list=[ndb.Key(Team, "frc254")],
).put()
Award(
id="2020casj_2",
year=2020,
award_type_enum=AwardType.FINALIST,
event_type_enum=EventType.REGIONAL,
event=ndb.Key(Event, "2020casj"),
name_str="Finalist",
team_list=[ndb.Key(Team, "frc254")],
).put()
resp = api_client.get(
"/api/v3/team/frc254/event/2020casj/awards",
headers={"X-TBA-Auth-Key": "test_auth_key"},
)
assert resp.status_code == 200
assert len(resp.json) == 2
award_names = set([a["name"] for a in resp.json])
assert "Winner" in award_names
assert "Finalist" in award_names
def test_team_event_status(ndb_stub, api_client: Client) -> None:
ApiAuthAccess(
id="test_auth_key",
auth_types_enum=[AuthType.READ_API],
).put()
Team(id="frc254", team_number=254).put()
Event(
id="2020casj",
year=2020,
event_short="casj",
event_type_enum=EventType.REGIONAL,
).put()
EventTeam(
id="2020casj_frc254",
event=ndb.Key("Event", "2020casj"),
team=ndb.Key("Team", "frc254"),
year=2020,
status={},
).put()
resp = api_client.get(
"/api/v3/team/frc254/event/2020casj/status",
headers={"X-TBA-Auth-Key": "test_auth_key"},
)
assert resp.status_code == 200
assert (
resp.json["overall_status_str"] == "Team 254 is waiting for the event to begin."
)
def test_team_awards(ndb_stub, api_client: Client) -> None:
ApiAuthAccess(
id="test_auth_key",
auth_types_enum=[AuthType.READ_API],
).put()
Team(id="frc254", team_number=254).put()
Award(
id="2019casj_1",
year=2019,
award_type_enum=AwardType.WINNER,
event_type_enum=EventType.REGIONAL,
event=ndb.Key(Event, "2019casj"),
name_str="Winner",
team_list=[ndb.Key(Team, "frc254")],
).put()
Award(
id="2020casj_1",
year=2020,
award_type_enum=AwardType.WINNER,
event_type_enum=EventType.REGIONAL,
event=ndb.Key(Event, "2020casj"),
name_str="Winner",
team_list=[ndb.Key(Team, "frc254")],
).put()
Award(
id="2020casj_2",
year=2020,
award_type_enum=AwardType.FINALIST,
event_type_enum=EventType.REGIONAL,
event=ndb.Key(Event, "2020casj"),
name_str="Finalist",
team_list=[ndb.Key(Team, "frc254")],
).put()
# All awards
resp = api_client.get(
"/api/v3/team/frc254/awards",
headers={"X-TBA-Auth-Key": "test_auth_key"},
)
assert resp.status_code == 200
assert len(resp.json) == 3
# 2019 awards
resp = api_client.get(
"/api/v3/team/frc254/awards/2019",
headers={"X-TBA-Auth-Key": "test_auth_key"},
)
assert resp.status_code == 200
assert len(resp.json) == 1
# 2020 awards
resp = api_client.get(
"/api/v3/team/frc254/awards/2020",
headers={"X-TBA-Auth-Key": "test_auth_key"},
)
assert resp.status_code == 200
assert len(resp.json) == 2
def test_team_year_matches(ndb_stub, api_client: Client) -> None:
ApiAuthAccess(
id="test_auth_key",
auth_types_enum=[AuthType.READ_API],
).put()
Team(id="frc254", team_number=254).put()
Match(
id="2020casj_qm1",
year=2020,
event=ndb.Key("Event", "2020casj"),
comp_level="qm",
match_number=1,
set_number=1,
alliances_json=json.dumps(
{
"red": {"score": 0, "teams": []},
"blue": {"score": 0, "teams": []},
}
),
team_key_names=["frc254"],
).put()
Match(
id="2020casj_qm2",
year=2020,
event=ndb.Key("Event", "2020casj"),
comp_level="qm",
match_number=2,
set_number=1,
alliances_json=json.dumps(
{
"red": {"score": 0, "teams": []},
"blue": {"score": 0, "teams": []},
}
),
team_key_names=["frc254"],
).put()
# Null response
resp = api_client.get(
"/api/v3/team/frc254/matches/2019",
headers={"X-TBA-Auth-Key": "test_auth_key"},
)
assert resp.status_code == 200
assert len(resp.json) == 0
# Nominal response
resp = api_client.get(
"/api/v3/team/frc254/matches/2020",
headers={"X-TBA-Auth-Key": "test_auth_key"},
)
assert resp.status_code == 200
assert len(resp.json) == 2
for match in resp.json:
validate_nominal_match_keys(match)
# Simple response
resp = api_client.get(
"/api/v3/team/frc254/matches/2020/simple",
headers={"X-TBA-Auth-Key": "test_auth_key"},
)
assert resp.status_code == 200
assert len(resp.json) == 2
for match in resp.json:
validate_simple_match_keys(match)
# Keys response
resp = api_client.get(
"/api/v3/team/frc254/matches/2020/keys",
headers={"X-TBA-Auth-Key": "test_auth_key"},
)
assert resp.status_code == 200
assert len(resp.json) == 2
assert "2020casj_qm1" in resp.json
assert "2020casj_qm2" in resp.json
def test_team_media_year(ndb_stub, api_client: Client) -> None:
ApiAuthAccess(
id="test_auth_key",
auth_types_enum=[AuthType.READ_API],
).put()
Team(id="frc254", team_number=254).put()
Media(
references=[ndb.Key("Team", "frc254")],
year=2020,
media_type_enum=MediaType.YOUTUBE_VIDEO,
foreign_key="test1",
details_json="{}",
).put()
Media(
references=[ndb.Key("Team", "frc254")],
year=2020,
media_type_enum=MediaType.YOUTUBE_VIDEO,
foreign_key="test2",
details_json="{}",
).put()
resp = api_client.get(
"/api/v3/team/frc254/media/2020",
headers={"X-TBA-Auth-Key": "test_auth_key"},
)
assert resp.status_code == 200
assert len(resp.json) == 2
def test_team_media_tag(ndb_stub, api_client: Client) -> None:
ApiAuthAccess(
id="test_auth_key",
auth_types_enum=[AuthType.READ_API],
).put()
Team(id="frc254", team_number=254).put()
Media(
references=[ndb.Key("Team", "frc254")],
year=2019,
media_type_enum=MediaType.YOUTUBE_VIDEO,
media_tag_enum=[MediaTag.CHAIRMANS_VIDEO],
foreign_key="test1",
details_json="{}",
).put()
Media(
references=[ndb.Key("Team", "frc254")],
year=2020,
media_type_enum=MediaType.YOUTUBE_VIDEO,
media_tag_enum=[MediaTag.CHAIRMANS_VIDEO],
foreign_key="test2",
details_json="{}",
).put()
Media(
references=[ndb.Key("Team", "frc254")],
year=2020,
media_type_enum=MediaType.YOUTUBE_VIDEO,
media_tag_enum=[MediaTag.CHAIRMANS_PRESENTATION],
foreign_key="test3",
details_json="{}",
).put()
# Bad tag
resp = api_client.get(
"/api/v3/team/frc254/media/tag/bad_tag",
headers={"X-TBA-Auth-Key": "test_auth_key"},
)
assert resp.status_code == 200
assert len(resp.json) == 0
# All years
resp = api_client.get(
"/api/v3/team/frc254/media/tag/chairmans_video",
headers={"X-TBA-Auth-Key": "test_auth_key"},
)
assert resp.status_code == 200
assert len(resp.json) == 2
# Single year
resp = api_client.get(
"/api/v3/team/frc254/media/tag/chairmans_video/2020",
headers={"X-TBA-Auth-Key": "test_auth_key"},
)
assert resp.status_code == 200
assert len(resp.json) == 1
assert resp.json[0]["foreign_key"] == "test2"
resp = api_client.get(
"/api/v3/team/frc254/media/tag/chairmans_presentation/2020",
headers={"X-TBA-Auth-Key": "test_auth_key"},
)
assert resp.status_code == 200
assert len(resp.json) == 1
assert resp.json[0]["foreign_key"] == "test3"
def test_team_list_all(ndb_stub, api_client: Client) -> None:
ApiAuthAccess(
id="test_auth_key",
auth_types_enum=[AuthType.READ_API],
).put()
Team(id="frc67", team_number=67).put()
Team(id="frc254", team_number=254).put()
Team(id="frc604", team_number=604).put()
Team(id="frc9999", team_number=9999).put()
# Nominal response
resp = api_client.get(
"/api/v3/teams/all", headers={"X-TBA-Auth-Key": "test_auth_key"}
)
assert resp.status_code == 200
assert len(resp.json) == 4
for team in resp.json:
validate_nominal_team_keys(team)
assert resp.json[0]["key"] == "frc67"
assert resp.json[1]["key"] == "frc254"
assert resp.json[2]["key"] == "frc604"
assert resp.json[3]["key"] == "frc9999"
# Simple response
resp = api_client.get(
"/api/v3/teams/all/simple", headers={"X-TBA-Auth-Key": "test_auth_key"}
)
assert resp.status_code == 200
assert len(resp.json) == 4
for team in resp.json:
validate_simple_team_keys(team)
assert resp.json[0]["key"] == "frc67"
assert resp.json[1]["key"] == "frc254"
assert resp.json[2]["key"] == "frc604"
assert resp.json[3]["key"] == "frc9999"
# Keys response
resp = api_client.get(
"/api/v3/teams/all/keys", headers={"X-TBA-Auth-Key": "test_auth_key"}
)
assert resp.status_code == 200
assert len(resp.json) == 4
assert resp.json[0] == "frc67"
assert resp.json[1] == "frc254"
assert resp.json[2] == "frc604"
assert resp.json[3] == "frc9999"
def test_team_list(ndb_stub, api_client: Client) -> None:
ApiAuthAccess(
id="test_auth_key",
auth_types_enum=[AuthType.READ_API],
).put()
Team(id="frc67", team_number=67).put()
Team(id="frc254", team_number=254).put()
Team(id="frc604", team_number=604).put()
Team(id="frc9999", team_number=9999).put()
# Nominal response
resp = api_client.get(
"/api/v3/teams/0", headers={"X-TBA-Auth-Key": "test_auth_key"}
)
assert resp.status_code == 200
assert len(resp.json) == 2
for team in resp.json:
validate_nominal_team_keys(team)
assert resp.json[0]["key"] == "frc67"
assert resp.json[1]["key"] == "frc254"
resp = api_client.get(
"/api/v3/teams/1", headers={"X-TBA-Auth-Key": "test_auth_key"}
)
assert resp.status_code == 200
assert len(resp.json) == 1
for team in resp.json:
validate_nominal_team_keys(team)
assert resp.json[0]["key"] == "frc604"
resp = api_client.get(
"/api/v3/teams/2", headers={"X-TBA-Auth-Key": "test_auth_key"}
)
assert resp.status_code == 200
assert len(resp.json) == 0
# Simple response
resp = api_client.get(
"/api/v3/teams/0/simple", headers={"X-TBA-Auth-Key": "test_auth_key"}
)
assert resp.status_code == 200
assert len(resp.json) == 2
for team in resp.json:
validate_simple_team_keys(team)
assert resp.json[0]["key"] == "frc67"
assert resp.json[1]["key"] == "frc254"
resp = api_client.get(
"/api/v3/teams/1/simple", headers={"X-TBA-Auth-Key": "test_auth_key"}
)
assert resp.status_code == 200
assert len(resp.json) == 1
for team in resp.json:
validate_simple_team_keys(team)
assert resp.json[0]["key"] == "frc604"
resp = api_client.get(
"/api/v3/teams/2/simple", headers={"X-TBA-Auth-Key": "test_auth_key"}
)
assert resp.status_code == 200
assert len(resp.json) == 0
# Keys response
resp = api_client.get(
"/api/v3/teams/0/keys", headers={"X-TBA-Auth-Key": "test_auth_key"}
)
assert resp.status_code == 200
assert len(resp.json) == 2
assert resp.json[0] == "frc67"
assert resp.json[1] == "frc254"
resp = api_client.get(
"/api/v3/teams/1/keys", headers={"X-TBA-Auth-Key": "test_auth_key"}
)
assert resp.status_code == 200
assert len(resp.json) == 1
assert resp.json[0] == "frc604"
resp = api_client.get(
"/api/v3/teams/2/keys", headers={"X-TBA-Auth-Key": "test_auth_key"}
)
assert resp.status_code == 200
assert len(resp.json) == 0
def test_team_list_year(ndb_stub, api_client: Client) -> None:
ApiAuthAccess(
id="test_auth_key",
auth_types_enum=[AuthType.READ_API],
).put()
Team(id="frc67", team_number=67).put()
Team(id="frc254", team_number=254).put()
EventTeam(
id="2020casj_frc67",
event=ndb.Key("Event", "2020casj"),
team=ndb.Key("Team", "frc67"),
year=2020,
).put()
EventTeam(
id="2019casj_frc254",
event=ndb.Key("Event", "2019casj"),
team=ndb.Key("Team", "frc254"),
year=2019,
).put()
# Nominal response
resp = api_client.get(
"/api/v3/teams/2020/0", headers={"X-TBA-Auth-Key": "test_auth_key"}
)
assert resp.status_code == 200
assert len(resp.json) == 1
for team in resp.json:
validate_nominal_team_keys(team)
assert resp.json[0]["key"] == "frc67"
resp = api_client.get(
"/api/v3/teams/2019/0", headers={"X-TBA-Auth-Key": "test_auth_key"}
)
assert resp.status_code == 200
assert len(resp.json) == 1
for team in resp.json:
validate_nominal_team_keys(team)
assert resp.json[0]["key"] == "frc254"
resp = api_client.get(
"/api/v3/teams/2018/0", headers={"X-TBA-Auth-Key": "test_auth_key"}
)
assert resp.status_code == 200
assert len(resp.json) == 0
# Simple response
resp = api_client.get(
"/api/v3/teams/2020/0/simple", headers={"X-TBA-Auth-Key": "test_auth_key"}
)
assert resp.status_code == 200
assert len(resp.json) == 1
for team in resp.json:
validate_simple_team_keys(team)
assert resp.json[0]["key"] == "frc67"
resp = api_client.get(
"/api/v3/teams/2019/0/simple", headers={"X-TBA-Auth-Key": "test_auth_key"}
)
assert resp.status_code == 200
assert len(resp.json) == 1
for team in resp.json:
validate_simple_team_keys(team)
assert resp.json[0]["key"] == "frc254"
resp = api_client.get(
"/api/v3/teams/2018/0/simple", headers={"X-TBA-Auth-Key": "test_auth_key"}
)
assert resp.status_code == 200
assert len(resp.json) == 0
# Keys response
resp = api_client.get(
"/api/v3/teams/2020/0/keys", headers={"X-TBA-Auth-Key": "test_auth_key"}
)
assert resp.status_code == 200
assert len(resp.json) == 1
assert resp.json[0] == "frc67"
resp = api_client.get(
"/api/v3/teams/2019/0/keys", headers={"X-TBA-Auth-Key": "test_auth_key"}
)
assert resp.status_code == 200
assert len(resp.json) == 1
assert resp.json[0] == "frc254"
resp = api_client.get(
"/api/v3/teams/2018/0/keys", headers={"X-TBA-Auth-Key": "test_auth_key"}
)
assert resp.status_code == 200
assert len(resp.json) == 0
| 29.037794
| 88
| 0.59969
| 3,736
| 28,428
| 4.377409
| 0.040953
| 0.054788
| 0.049101
| 0.053809
| 0.889691
| 0.873181
| 0.86621
| 0.86303
| 0.85502
| 0.839244
| 0
| 0.067302
| 0.246834
| 28,428
| 978
| 89
| 29.067485
| 0.696511
| 0.01597
| 0
| 0.747073
| 0
| 0
| 0.188247
| 0.051893
| 0
| 0
| 0
| 0
| 0.180328
| 1
| 0.021077
| false
| 0
| 0.022248
| 0
| 0.043326
| 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
|
cb6264b39f97ce3dfca32ca054ed80841d2ee28f
| 24,332
|
py
|
Python
|
mspray/apps/main/serializers/performance_report.py
|
onaio/mspray
|
b3e0f4b5855abbf0298de6b66f2e9f472f2bf838
|
[
"Apache-2.0"
] | null | null | null |
mspray/apps/main/serializers/performance_report.py
|
onaio/mspray
|
b3e0f4b5855abbf0298de6b66f2e9f472f2bf838
|
[
"Apache-2.0"
] | 76
|
2018-03-15T09:37:56.000Z
|
2019-05-15T12:45:51.000Z
|
mspray/apps/main/serializers/performance_report.py
|
onaio/mspray
|
b3e0f4b5855abbf0298de6b66f2e9f472f2bf838
|
[
"Apache-2.0"
] | 1
|
2020-10-31T07:15:22.000Z
|
2020-10-31T07:15:22.000Z
|
# -*- coding=utf-8 -*-
"""Performance report Serializers."""
from django.conf import settings
from django.core.cache import cache
from rest_framework import serializers
from mspray.apps.main.datetime_tools import average_time
from mspray.apps.main.models import (
Location,
PerformanceReport,
SprayDay,
SprayOperator,
TeamLeaderAssistant,
)
class PerformanceReportSerializer(serializers.ModelSerializer):
"""PerformanceReportSerializer"""
date = serializers.SerializerMethodField()
sprayable = serializers.IntegerField(source="found")
sprayed = serializers.IntegerField()
refused = serializers.IntegerField()
other = serializers.IntegerField()
not_sprayed_total = serializers.SerializerMethodField()
avg_start_time = serializers.SerializerMethodField()
avg_end_time = serializers.SerializerMethodField()
data_quality_check = serializers.BooleanField()
found_difference = serializers.SerializerMethodField()
sprayed_difference = serializers.SerializerMethodField()
not_eligible = serializers.IntegerField()
class Meta:
fields = (
"spray_date",
"found",
"sprayed",
"refused",
"other",
"start_time",
"end_time",
"data_quality_check",
"reported_found",
"reported_sprayed",
"sprayable",
"found_difference",
"sprayed_difference",
"date",
"avg_start_time",
"avg_end_time",
"not_sprayed_total",
"sprayformid",
"not_eligible",
"data",
)
model = PerformanceReport
def get_date(self, obj): # pylint: disable=no-self-use
"""
Returns spray_date as date object.
"""
return obj.spray_date
def get_avg_start_time(self, obj): # pylint: disable=no-self-use
"""
Returns start_time as time object.
"""
return obj.start_time
def get_avg_end_time(self, obj): # pylint: disable=no-self-use
"""
Returns end_time as time object.
"""
return obj.end_time
def get_not_sprayed_total(self, obj): # pylint: disable=no-self-use
"""
Returns not sprayed other + refused.
"""
return obj.other + obj.refused
def get_found_difference(self, obj): # pylint: disable=no-self-use
"""
Returns spray operator found - submitted found difference.
"""
return obj.reported_found - obj.found
def get_sprayed_difference(self, obj): # pylint: disable=no-self-use
"""
Returns spray operator sprayed - submitted sprayed difference.
"""
return obj.reported_sprayed - obj.sprayed
class SprayOperatorPerformanceReportSerializer(serializers.ModelSerializer):
"""SprayOperatorPerformanceReportSerializer"""
sprayable = serializers.SerializerMethodField()
sprayed = serializers.SerializerMethodField()
refused = serializers.SerializerMethodField()
other = serializers.SerializerMethodField()
not_sprayed_total = serializers.SerializerMethodField()
avg_start_time = serializers.SerializerMethodField()
avg_end_time = serializers.SerializerMethodField()
data_quality_check = serializers.SerializerMethodField()
found_difference = serializers.SerializerMethodField()
sprayed_difference = serializers.SerializerMethodField()
team_leader_assistant_name = serializers.SerializerMethodField()
spray_operator_code = serializers.CharField(source="code")
spray_operator_id = serializers.CharField(source="id")
no_of_days_worked = serializers.IntegerField()
name = serializers.CharField()
avg_structures_per_so = serializers.SerializerMethodField()
not_eligible = serializers.IntegerField()
custom = serializers.SerializerMethodField()
class Meta:
fields = (
"name",
"no_of_days_worked",
"spray_operator_code",
"spray_operator_id",
"team_leader",
"team_leader_assistant_name",
"sprayed",
"refused",
"other",
"data_quality_check",
"sprayable",
"found_difference",
"sprayed_difference",
"avg_start_time",
"avg_end_time",
"not_sprayed_total",
"avg_structures_per_so",
"not_eligible",
"custom",
)
model = SprayOperator
def get_custom(self, obj): # pylint: disable=R0201
"""Return custom aggregations."""
custom_aggregations = getattr(
settings, "EXTRA_PERFORMANCE_AGGREGATIONS", {}
)
data = {}
for field in custom_aggregations:
data[field] = getattr(obj, "data_%s" % field, 0)
return data
def get_team_leader_assistant_name(self, obj): # pylint: disable=R0201
"""Return Team Leader Assistant's name."""
if obj and obj.team_leader_assistant:
return obj.team_leader_assistant.name
return ""
def get_avg_structures_per_so(self, obj): # pylint: disable=no-self-use
"""
Returns ratio of number of structures found over number_of_days_worked.
"""
if obj.no_of_days_worked == 0:
return 0
return obj.found / round(obj.no_of_days_worked)
def get_sprayable(self, obj): # pylint: disable=no-self-use
"""
Returns number of sprayable structures.
"""
return 0 if obj.found is None else obj.found
def get_refused(self, obj): # pylint: disable=no-self-use
"""
Returns number of sprayable structures not sprayed refused reason.
"""
return 0 if obj.refused is None else obj.refused
def get_sprayed(self, obj): # pylint: disable=no-self-use
"""
Returns number of sprayable structures sprayed.
"""
return 0 if obj.sprayed is None else obj.sprayed
def get_other(self, obj): # pylint: disable=no-self-use
"""
Returns number of sprayable structures not sprayed other reason.
"""
return 0 if obj.other is None else obj.other
def get_data_quality_check(self, obj): # pylint: disable=no-self-use
"""
Returns True or False for all data quality checks for the spray
operator.
"""
last_record = (
PerformanceReport.objects.filter(spray_operator=obj)
.order_by("spray_date")
.last()
)
if last_record:
return last_record.data_quality_check
return True
def get_avg_start_time(self, obj): # pylint: disable=no-self-use
"""
Returns start_time as time object.
"""
return average_time(
[
report.start_time
for report in obj.performancereport_set.all().only(
"start_time"
)
]
)
def get_avg_end_time(self, obj): # pylint: disable=no-self-use
"""
Returns end_time as time object.
"""
return average_time(
[
report.end_time
for report in obj.performancereport_set.all().only("end_time")
]
)
def get_not_sprayed_total(self, obj): # pylint: disable=no-self-use
"""
Returns not sprayed other + refused.
"""
other = obj.other or 0
refused = obj.refused or 0
return other + refused
def get_found_difference(self, obj): # pylint: disable=no-self-use
"""
Returns spray operator found - submitted found difference.
"""
reported_found = 0
found = 0
last_record = (
PerformanceReport.objects.filter(spray_operator=obj)
.order_by("spray_date")
.last()
)
if last_record:
reported_found = last_record.reported_found
found = last_record.found
return reported_found - found
def get_sprayed_difference(self, obj): # pylint: disable=no-self-use
"""
Returns spray operator sprayed - submitted sprayed difference.
"""
reported_sprayed = 0
sprayed = 0
last_record = (
PerformanceReport.objects.filter(spray_operator=obj)
.order_by("spray_date")
.last()
)
if last_record:
reported_sprayed = last_record.reported_sprayed
sprayed = last_record.sprayed
return reported_sprayed - sprayed
class TLAPerformanceReportSerializer(serializers.ModelSerializer):
"""TLAPerformanceReportSerializer"""
sprayable = serializers.SerializerMethodField()
sprayed = serializers.SerializerMethodField()
refused = serializers.SerializerMethodField()
other = serializers.SerializerMethodField()
not_sprayed_total = serializers.SerializerMethodField()
avg_start_time = serializers.SerializerMethodField()
avg_end_time = serializers.SerializerMethodField()
data_quality_check = serializers.SerializerMethodField()
found_difference = serializers.SerializerMethodField()
sprayed_difference = serializers.SerializerMethodField()
team_leader_name = serializers.CharField(source="name")
team_leader_code = serializers.CharField(source="code")
team_leader_id = serializers.CharField(source="id")
no_of_days_worked = serializers.IntegerField()
name = serializers.CharField()
avg_structures_per_so = serializers.SerializerMethodField()
not_eligible = serializers.SerializerMethodField()
class Meta:
fields = (
"name",
"no_of_days_worked",
"team_leader_code",
"team_leader_name",
"team_leader_id",
"sprayed",
"not_eligible",
"refused",
"other",
"data_quality_check",
"sprayable",
"found_difference",
"sprayed_difference",
"avg_start_time",
"avg_end_time",
"not_sprayed_total",
"avg_structures_per_so",
)
model = TeamLeaderAssistant
def get_sprayed(self, obj): # pylint: disable=no-self-use
"""
Returns number of sprayable structures sprayed.
"""
return 0 if obj.sprayed is None else obj.sprayed
def get_refused(self, obj): # pylint: disable=no-self-use
"""
Returns number of sprayable structures not sprayed refused reason.
"""
return 0 if obj.refused is None else obj.refused
def get_other(self, obj): # pylint: disable=no-self-use
"""
Returns number of sprayable structures not sprayed other reason.
"""
return 0 if obj.other is None else obj.other
def get_not_eligible(self, obj): # pylint: disable=no-self-use
"""
Returns number of sprayable structures not eligible reason.
"""
key = "tla-not-eligible-{}".format(obj.pk)
val = cache.get(key)
if val is not None:
return val
val = (
SprayDay.objects.filter(
household__isnull=False,
household__sprayable=False,
team_leader_assistant_id=obj.pk,
sprayable=False,
)
.values("osmid")
.distinct()
.count()
)
cache.set(key, val)
return val
def get_avg_structures_per_so(self, obj): # pylint: disable=no-self-use
"""
Returns ratio of number of structures found over number_of_days_worked.
"""
if obj.no_of_days_worked == 0:
return 0
return obj.found / round(obj.no_of_days_worked)
def get_sprayable(self, obj): # pylint: disable=no-self-use
"""
Returns number of sprayable structures.
"""
return obj.found or 0
def get_data_quality_check(self, obj): # pylint: disable=no-self-use
"""
Returns True or False for all data quality checks for the spray
operator.
"""
quality_checks = []
sops = SprayOperator.objects.filter(team_leader_assistant=obj)
for sop in sops:
last_record = (
PerformanceReport.objects.filter(spray_operator=sop)
.order_by("spray_date")
.last()
)
if last_record:
quality_checks.append(last_record.data_quality_check)
return all(quality_checks)
def get_avg_start_time(self, obj): # pylint: disable=no-self-use
"""
Returns start_time as time object.
"""
return average_time(
[
report.start_time
for report in obj.performancereport_set.all().only(
"start_time"
)
]
)
def get_avg_end_time(self, obj): # pylint: disable=no-self-use
"""
Returns end_time as time object.
"""
return average_time(
[
report.end_time
for report in obj.performancereport_set.all().only("end_time")
]
)
def get_not_sprayed_total(self, obj): # pylint: disable=no-self-use
"""
Returns not sprayed other + refused.
"""
other = obj.other or 0
refused = obj.refused or 0
return other + refused
def get_found_difference(self, obj): # pylint: disable=no-self-use
"""Returns spray operator found - submitted found difference."""
reported_found = 0
found = 0
sops = SprayOperator.objects.filter(team_leader_assistant=obj)
for sop in sops:
last_record = (
PerformanceReport.objects.filter(spray_operator=sop)
.order_by("spray_date")
.last()
)
if last_record:
sop_reported_found = last_record.reported_found
sop_found = last_record.found
reported_found += sop_reported_found
found += sop_found
return reported_found - found
def get_sprayed_difference(self, obj): # pylint: disable=no-self-use
"""Returns spray operator sprayed - submitted sprayed difference."""
reported_sprayed = 0
sprayed = 0
sops = SprayOperator.objects.filter(team_leader_assistant=obj)
for sop in sops:
last_record = (
PerformanceReport.objects.filter(spray_operator=sop)
.order_by("spray_date")
.last()
)
if last_record:
sop_reported_sprayed = last_record.reported_sprayed
sop_sprayed = last_record.sprayed
reported_sprayed += sop_reported_sprayed
sprayed += sop_sprayed
return reported_sprayed - sprayed
class DistrictPerformanceReportSerializer(serializers.ModelSerializer):
"""District PerformanceReportSerializer"""
sprayable = serializers.SerializerMethodField()
sprayed = serializers.SerializerMethodField()
refused = serializers.SerializerMethodField()
other = serializers.SerializerMethodField()
not_sprayed_total = serializers.SerializerMethodField()
avg_start_time = serializers.SerializerMethodField()
avg_end_time = serializers.SerializerMethodField()
data_quality_check = serializers.SerializerMethodField()
found_difference = serializers.SerializerMethodField()
sprayed_difference = serializers.SerializerMethodField()
spray_operator_code = serializers.CharField(source="code")
spray_operator_id = serializers.CharField(source="id")
days_worked = serializers.IntegerField()
no_of_days_worked = serializers.IntegerField()
name = serializers.CharField()
avg_structures_per_so = serializers.SerializerMethodField()
not_eligible = serializers.SerializerMethodField()
location = serializers.SerializerMethodField()
success_rate = serializers.SerializerMethodField()
custom = serializers.SerializerMethodField()
class Meta:
fields = (
"id",
"name",
"days_worked",
"no_of_days_worked",
"spray_operator_code",
"spray_operator_id",
"sprayed",
"not_eligible",
"location",
"refused",
"other",
"data_quality_check",
"sprayable",
"found_difference",
"sprayed_difference",
"avg_start_time",
"avg_end_time",
"not_sprayed_total",
"avg_structures_per_so",
"success_rate",
"custom",
)
model = Location
def get_location(self, obj): # pylint: disable=no-self-use
"""Return the location object."""
return obj
def get_avg_structures_per_so(self, obj): # pylint: disable=no-self-use
"""Ratio of number of structures found over number_of_days_worked."""
if obj.no_of_days_worked == 0 or obj.no_of_days_worked is None:
return 0
return obj.found / round(obj.no_of_days_worked)
def get_refused(self, obj): # pylint: disable=no-self-use
"""Return number of sprayable structures refused spraying."""
return 0 if obj.refused is None else obj.refused
def get_other(self, obj): # pylint: disable=no-self-use
"""Return number of sprayable structures not sprayed other reason."""
return 0 if obj.other is None else obj.other
def get_not_eligible(self, obj): # pylint: disable=no-self-use
"""Return number of sprayable structures not eligible reason."""
key = "performance-not-eligible-{}".format(obj.pk)
val = cache.get(key)
if val is not None:
return val
val = (
SprayDay.objects.filter(
household__isnull=False,
household__sprayable=False,
location__parent__parent_id=obj.pk,
sprayable=False,
)
.values("osmid")
.distinct()
.count()
)
cache.set(key, val)
return val
def get_sprayed(self, obj): # pylint: disable=no-self-use
"""Return number of sprayable structures sprayed."""
return 0 if obj.p_sprayed is None else obj.p_sprayed
def get_sprayable(self, obj): # pylint: disable=no-self-use
"""Returns number of sprayable structures."""
return 0 if obj.found is None else obj.found
def get_data_quality_check(self, obj): # pylint: disable=no-self-use
"""Return True or False for all data quality checks."""
quality_checks = []
sops = SprayOperator.objects.filter(
team_leader_assistant__location=obj
)
for sop in sops:
last_record = (
PerformanceReport.objects.filter(spray_operator=sop)
.order_by("spray_date")
.last()
)
if last_record:
quality_checks.append(last_record.data_quality_check)
return all(quality_checks)
def get_avg_start_time(self, obj): # pylint: disable=no-self-use
"""Return start_time as time object."""
return average_time(
[
report.start_time
for report in obj.performancereport_set.all().only(
"start_time"
)
if report.start_time is not None
]
)
def get_avg_end_time(self, obj): # pylint: disable=no-self-use
"""Return end_time as time object."""
return average_time(
[
report.end_time
for report in obj.performancereport_set.all().only("end_time")
if report.end_time is not None
]
)
def get_not_sprayed_total(self, obj): # pylint: disable=no-self-use
"""Return not sprayed other + refused."""
if obj.other is None or obj.refused is None:
return 0
return obj.other + obj.refused
def get_found_difference(self, obj): # pylint: disable=no-self-use
"""Return spray operator found - submitted found difference."""
reported_found = 0
found = 0
sops = SprayOperator.objects.filter(
team_leader_assistant__location=obj
)
for sop in sops:
last_record = (
PerformanceReport.objects.filter(spray_operator=sop)
.order_by("spray_date")
.last()
)
if last_record:
sop_reported_found = last_record.reported_found
sop_found = last_record.found
reported_found += sop_reported_found
found += sop_found
return reported_found - found
def get_sprayed_difference(self, obj): # pylint: disable=no-self-use
"""Return spray operator sprayed - submitted sprayed difference."""
reported_sprayed = 0
sprayed = 0
sops = SprayOperator.objects.filter(
team_leader_assistant__location=obj
)
for sop in sops:
last_record = (
PerformanceReport.objects.filter(spray_operator=sop)
.order_by("spray_date")
.last()
)
if last_record:
sop_reported_sprayed = last_record.reported_sprayed
sop_sprayed = last_record.sprayed
reported_sprayed += sop_reported_sprayed
sprayed += sop_sprayed
return reported_sprayed - sprayed
def get_success_rate(self, obj): # pylint: disable=no-self-use
"""Return percentage sprayed of found structures."""
if obj.sprayed is None or obj.found is None or obj.found == 0:
return 0
return (100 * obj.p_sprayed) / obj.found
def get_custom(self, obj): # pylint: disable=R0201
"""Return custom aggregations."""
custom_aggregations = getattr(
settings, "EXTRA_PERFORMANCE_AGGREGATIONS", {}
)
data = {}
for field in custom_aggregations:
data[field] = getattr(obj, "data_%s" % field, 0)
return data
class SuccessRateMixin: # pylint: disable=too-few-public-methods
"""MDA SuccessRateMixin class."""
def get_success_rate(self, obj): # pylint: disable=no-self-use
"""Return percentage found of residential on the ground."""
will_be_zero_devision = (
obj.mda_found is None
or obj.structures_on_ground is None
or obj.structures_on_ground == 0
)
if will_be_zero_devision:
return 0
return (100 * obj.mda_found) / obj.structures_on_ground
class MDADistrictPerformanceReportSerializer(
SuccessRateMixin, # pylint: disable=bad-continuation
DistrictPerformanceReportSerializer, # pylint: disable=bad-continuation
):
"""District PerformanceReportSerializer"""
pass
class RHCPerformanceReportSerializer(
SuccessRateMixin, # pylint: disable=bad-continuation
DistrictPerformanceReportSerializer, # pylint: disable=bad-continuation
):
"""DistrictPerformanceReportSerializer"""
def get_avg_start_time(self, obj): # pylint: disable=no-self-use
"""Return start_time as time object."""
return average_time(
[
report.start_time
for report in PerformanceReport.objects.filter(
spray_operator__rhc=obj
).only("start_time")
if report.start_time is not None
]
)
def get_avg_end_time(self, obj): # pylint: disable=no-self-use
"""Return end_time as time object."""
return average_time(
[
report.end_time
for report in PerformanceReport.objects.filter(
spray_operator__rhc=obj
).only("end_time")
if report.end_time is not None
]
)
| 33.240437
| 79
| 0.604636
| 2,506
| 24,332
| 5.651636
| 0.064645
| 0.049566
| 0.044976
| 0.069194
| 0.846784
| 0.829132
| 0.808092
| 0.803996
| 0.789098
| 0.780414
| 0
| 0.003568
| 0.308894
| 24,332
| 731
| 80
| 33.28591
| 0.838666
| 0.173188
| 0
| 0.727096
| 0
| 0
| 0.065729
| 0.009131
| 0
| 0
| 0
| 0
| 0
| 1
| 0.095517
| false
| 0.001949
| 0.009747
| 0
| 0.37232
| 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
|
cb9bbc78ebcad7a9c593a6364e7f43d3d1c4af70
| 101
|
py
|
Python
|
vel/openai/baselines/bench/__init__.py
|
tigerwlin/vel
|
00e4fbb7b612e888e2cbb5d8455146664638cd0b
|
[
"MIT"
] | 273
|
2018-09-01T08:54:34.000Z
|
2022-02-02T13:22:51.000Z
|
vel/openai/baselines/bench/__init__.py
|
tigerwlin/vel
|
00e4fbb7b612e888e2cbb5d8455146664638cd0b
|
[
"MIT"
] | 47
|
2018-08-17T11:27:08.000Z
|
2022-03-11T23:26:55.000Z
|
vel/openai/baselines/bench/__init__.py
|
tigerwlin/vel
|
00e4fbb7b612e888e2cbb5d8455146664638cd0b
|
[
"MIT"
] | 37
|
2018-10-11T22:56:57.000Z
|
2020-10-06T19:53:05.000Z
|
from vel.openai.baselines.bench.benchmarks import *
from vel.openai.baselines.bench.monitor import *
| 33.666667
| 51
| 0.821782
| 14
| 101
| 5.928571
| 0.571429
| 0.168675
| 0.313253
| 0.53012
| 0.650602
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.079208
| 101
| 2
| 52
| 50.5
| 0.892473
| 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
|
cbaaa7c59df38c392adb003dcb83f82debb93a31
| 154
|
py
|
Python
|
snake_wars/client/__init__.py
|
Joffreybvn/snake-wars
|
74732b29272c30af967d13e16d460b424a78cd98
|
[
"MIT"
] | null | null | null |
snake_wars/client/__init__.py
|
Joffreybvn/snake-wars
|
74732b29272c30af967d13e16d460b424a78cd98
|
[
"MIT"
] | null | null | null |
snake_wars/client/__init__.py
|
Joffreybvn/snake-wars
|
74732b29272c30af967d13e16d460b424a78cd98
|
[
"MIT"
] | null | null | null |
from snake_wars.client.renderer import Renderer
from snake_wars.client.client import Client
from snake_wars.client.sync_client import SynchronizedClient
| 30.8
| 60
| 0.876623
| 22
| 154
| 5.954545
| 0.363636
| 0.206107
| 0.29771
| 0.435115
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.084416
| 154
| 4
| 61
| 38.5
| 0.929078
| 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
|
cbdb6d39e9a27cf5eafad3fe76ea7a62ebf41c76
| 4,740
|
py
|
Python
|
rfflearn/tuner/tuner.py
|
tiskw/random-fourier-features
|
4a12185e44d1f9aba594f8a7569042e73675d6cd
|
[
"MIT"
] | 24
|
2021-02-14T12:05:27.000Z
|
2022-03-12T07:29:25.000Z
|
rfflearn/tuner/tuner.py
|
Linleaf1996/random-fourier-features
|
6638280e4ff0f334a973a238d5d14ffac6ede9c8
|
[
"MIT"
] | 1
|
2021-07-19T09:53:15.000Z
|
2021-10-03T03:04:30.000Z
|
rfflearn/tuner/tuner.py
|
Linleaf1996/random-fourier-features
|
6638280e4ff0f334a973a238d5d14ffac6ede9c8
|
[
"MIT"
] | 6
|
2021-03-07T12:08:34.000Z
|
2022-03-26T09:47:36.000Z
|
#!/usr/bin/env python3
#
# Hyper parameter tuner for RFF models based on Optuna <https://optuna.org>.
#
# Author: Tetsuya Ishikawa <tiskw111@gmail.com>
# Date : January 08, 2021
##################################################### SOURCE START #####################################################
import optuna
### List of possible arguments of optuna.study.Study.optimize.
LIST_ARGS_OPT = ["callbacks", "catch", "gc_after_trial", "n_trials", "show_progress_bar", "timeout"]
### Hyper parameter tuner for RFFRegression, ORFRegression, RFFSVC and ORFSVC.
def RFF_dim_std_tuner(train_set, valid_set, model_class, **kwargs):
### Define default arguments.
args_par = {"dtype_dim_kernel": "int",
"range_dim_kernel": (128, 1024),
"dtype_std_kernel": "loguniform",
"range_std_kernel": (1e-3, 1.0)}
### Update parameter arguments and delete from the `kwargs` variable.
for key in args_par:
if key in kwargs:
args_par[key] = kwargs.pop(key)
### Split arguments to arguments for hyper parameter tuning and arguments for model fit.
args_opt = {key:kwargs[key] for key in LIST_ARGS_OPT if key in kwargs}
args_fit = {key:kwargs[key] for key in kwargs if key not in args_opt}
### The objective function for hyper parameter tuning.
def objective(trial):
### Define optuna variable.
dim_kernel = eval("trial.suggest_{dtype_dim_kernel}('dim_kernel', *{range_dim_kernel})".format(**args_par))
std_kernel = eval("trial.suggest_{dtype_std_kernel}('std_kernel', *{range_std_kernel})".format(**args_par))
### Create classifier instance.
model = model_class(dim_kernel = dim_kernel, std_kernel = std_kernel, **args_fit)
### Train classifire, calculate score and return the score.
score = model.fit(*train_set).score(*valid_set)
### Set model instance as a user attribute.
trial.set_user_attr("model", model)
return score
### Callback function to save only the best model.
def callback(study, trial):
model = trial.user_attrs.pop("model")
if study.best_trial.number == trial.number:
study.set_user_attr("best_model", model)
### Run parameter search.
study = optuna.create_study(direction = "maximize")
study.optimize(objective, callbacks = [callback], **args_opt)
return study
### Hyper parameter tuner for RFFGPR, ORFGPR, RFFGPC and ORFGPC.
def RFF_dim_std_err_tuner(train_set, valid_set, model_class, **kwargs):
### Define default arguments.
args_par = {"dtype_dim_kernel": "int",
"range_dim_kernel": (128, 1024),
"dtype_std_error" : "loguniform",
"range_std_error" : (1e-4, 0.1),
"dtype_std_kernel": "loguniform",
"range_std_kernel": (1e-3, 1.0)}
### Update parameter arguments and delete from the `kwargs` variable.
for key in args_par:
if key in kwargs:
args_par[key] = kwargs.pop(key)
### Split arguments to arguments for hyper parameter tuning and arguments for model fit.
args_opt = {key:kwargs[key] for key in LIST_ARGS_OPT if key in kwargs}
args_fit = {key:kwargs[key] for key in kwargs if key not in args_opt}
### The objective function for hyper parameter tuning.
def objective(trial):
### Define optuna variable.
dim_kernel = eval("trial.suggest_{dtype_dim_kernel}('dim_kernel', *{range_dim_kernel})".format(**args_par))
std_kernel = eval("trial.suggest_{dtype_std_kernel}('std_kernel', *{range_std_kernel})".format(**args_par))
std_error = eval("trial.suggest_{dtype_std_error} ('std_error', *{range_std_error} )".format(**args_par))
### Create classifier instance.
model = model_class(dim_kernel = dim_kernel, std_kernel = std_kernel, std_error = std_error, **args_fit)
### Train classifire, calculate score and return the score.
score = model.fit(*train_set).score(*valid_set)
### Set model instance as a user attribute.
trial.set_user_attr("model", model)
return score
### Callback function to save only the best model.
def callback(study, trial):
model = trial.user_attrs.pop("model")
if study.best_trial.number == trial.number:
study.set_user_attr("best_model", model)
### Run parameter search.
study = optuna.create_study(direction = "maximize")
study.optimize(objective, callbacks = [callback], **args_opt)
return study
##################################################### SOURCE FINISH ####################################################
# vim: expandtab tabstop=4 shiftwidth=4 fdm=marker
| 39.5
| 120
| 0.635232
| 605
| 4,740
| 4.758678
| 0.214876
| 0.050017
| 0.016672
| 0.036471
| 0.813477
| 0.804099
| 0.804099
| 0.804099
| 0.804099
| 0.804099
| 0
| 0.010139
| 0.209283
| 4,740
| 119
| 121
| 39.831933
| 0.758004
| 0.280591
| 0
| 0.830189
| 0
| 0
| 0.206532
| 0.068844
| 0
| 0
| 0
| 0
| 0
| 1
| 0.113208
| false
| 0
| 0.018868
| 0
| 0.207547
| 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
|
3804a283b646e53c2f3a7d7a41b8f61347b8ea76
| 123
|
py
|
Python
|
src/activations/relu.py
|
oussama1598/neural-network-python-implementation
|
d40d67ab93d0bd59fa0a9825ff7db0f50781cee8
|
[
"MIT"
] | 2
|
2022-01-27T13:17:20.000Z
|
2022-01-27T13:19:31.000Z
|
src/activations/relu.py
|
oussama1598/neural-network-python-implementation
|
d40d67ab93d0bd59fa0a9825ff7db0f50781cee8
|
[
"MIT"
] | null | null | null |
src/activations/relu.py
|
oussama1598/neural-network-python-implementation
|
d40d67ab93d0bd59fa0a9825ff7db0f50781cee8
|
[
"MIT"
] | null | null | null |
import numpy as np
def ReLU(z):
return np.maximum(z, 0)
def d_ReLU(z):
return np.array(z > 0, dtype='float32')
| 12.3
| 43
| 0.626016
| 23
| 123
| 3.304348
| 0.608696
| 0.131579
| 0.289474
| 0.342105
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.042105
| 0.227642
| 123
| 9
| 44
| 13.666667
| 0.757895
| 0
| 0
| 0
| 0
| 0
| 0.056911
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.4
| false
| 0
| 0.2
| 0.4
| 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
| 1
| 0
| 0
| 0
| 1
| 1
| 0
|
0
| 7
|
3815e80c88b9dd5958085f8c89f6c4c6e37ab10b
| 3,522
|
py
|
Python
|
tests/gems/arch/test_version.py
|
DN-debug/bauh
|
83aeccae87d7fe26f6c5bf24be005288d5d54d84
|
[
"Zlib"
] | 507
|
2019-08-12T16:15:55.000Z
|
2022-03-28T15:49:39.000Z
|
tests/gems/arch/test_version.py
|
DN-debug/bauh
|
83aeccae87d7fe26f6c5bf24be005288d5d54d84
|
[
"Zlib"
] | 176
|
2019-08-14T02:35:21.000Z
|
2022-03-31T21:43:56.000Z
|
tests/gems/arch/test_version.py
|
DN-debug/bauh
|
83aeccae87d7fe26f6c5bf24be005288d5d54d84
|
[
"Zlib"
] | 57
|
2019-09-02T04:09:22.000Z
|
2022-03-21T21:37:16.000Z
|
import warnings
from unittest import TestCase
from bauh.gems.arch import version
class MatchRequiredVersionTest(TestCase):
@classmethod
def setUpClass(cls):
warnings.filterwarnings('ignore', category=DeprecationWarning)
def test_must_accept_single_or_both_equal_symbols_as_valid(self):
self.assertTrue(version.match_required_version('1', '=', '1'))
self.assertTrue(version.match_required_version('1', '==', '1'))
def test_must_ignore_release_number_when_required_has_no_defined(self):
self.assertTrue(version.match_required_version('1.3.0-2', '==', '1.3.0'))
self.assertTrue(version.match_required_version('1.3.0-2', '<=', '1.3.0'))
self.assertTrue(version.match_required_version('1.3.0-2', '>=', '1.3.0'))
self.assertFalse(version.match_required_version('1.3.0-2', '<', '1.3.0'))
self.assertFalse(version.match_required_version('1.3.0-2', '>', '1.3.0'))
def test_must_ignore_epoch_number_when_required_has_no_defined(self):
self.assertTrue(version.match_required_version('1:1.3.0-1', '>', '1.1.0'))
self.assertTrue(version.match_required_version('1:1.3.0-1', '>=', '1.1.0'))
self.assertFalse(version.match_required_version('1:1.3.0-1', '<', '1.1.0'))
self.assertFalse(version.match_required_version('1:1.3.0-1', '<=', '1.1.0'))
self.assertFalse(version.match_required_version('1:1.3.0-1', '==', '1.1.0'))
def test_must_consider_default_epoch_for_current_version_when_required_has_epoch(self):
self.assertFalse(version.match_required_version('1.1.0', '==', '1:1.1.0')) # 1.1.0 -> 0:1.1.0
self.assertFalse(version.match_required_version('1.1.0', '>', '1:1.1.0')) # 1.1.0 -> 0:1.1.0
self.assertFalse(version.match_required_version('1.1.0', '>=', '1:1.1.0')) # 1.1.0 -> 0:1.1.0
self.assertTrue(version.match_required_version('1.1.0', '<', '1:1.1.0')) # 1.1.0 -> 0:1.1.0
self.assertTrue(version.match_required_version('1.1.0', '<=', '1:1.1.0')) # 1.1.0 -> 0:1.1.0
self.assertTrue(version.match_required_version('1.1.0', '==', '0:1.1.0')) # 1.1.0 -> 0:1.1.0
def test_must_match_when_current_version_is_composed_of_alphanumerics_but_required_no(self):
self.assertTrue(version.match_required_version('2.3.3op2', '>', '2.2.6'))
self.assertTrue(version.match_required_version('2.3.3op2', '>=', '2.2.6'))
self.assertFalse(version.match_required_version('2.3.3op2', '==', '2.2.6'))
self.assertFalse(version.match_required_version('2.3.3op2', '<', '2.2.6'))
self.assertFalse(version.match_required_version('2.3.3op2', '<=', '2.2.6'))
# opposite comparisons
self.assertFalse(version.match_required_version('2.2.6', '>', '2.3.3op2'))
self.assertFalse(version.match_required_version('2.2.6', '>=', '2.3.3op2'))
self.assertFalse(version.match_required_version('2.2.6', '==', '2.3.3op2'))
self.assertTrue(version.match_required_version('2.2.6', '<', '2.3.3op2'))
self.assertTrue(version.match_required_version('2.2.6', '<=', '2.3.3op2'))
def test_must_match_when_both_versions_are_composed_of_alphanumerics(self):
self.assertTrue(version.match_required_version('2.3.3ab', '==', '2.3.3ab'))
self.assertTrue(version.match_required_version('2.3.3ab', '<', '2.3.3ac'))
self.assertTrue(version.match_required_version('2.3.3ad', '>', '2.3.3ac'))
self.assertTrue(version.match_required_version('2.3.3ad', '<', '2.3.3ad.1'))
| 59.694915
| 102
| 0.660136
| 543
| 3,522
| 4.055249
| 0.116022
| 0.04178
| 0.290645
| 0.392371
| 0.792007
| 0.778837
| 0.768847
| 0.768392
| 0.748865
| 0.723887
| 0
| 0.084646
| 0.134583
| 3,522
| 58
| 103
| 60.724138
| 0.637795
| 0.034639
| 0
| 0
| 0
| 0
| 0.132665
| 0
| 0
| 0
| 0
| 0
| 0.711111
| 1
| 0.155556
| false
| 0
| 0.066667
| 0
| 0.244444
| 0
| 0
| 0
| 0
| null | 0
| 1
| 1
| 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
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 8
|
384f44a793550c4cbeb17ca296e8ae05081bd8cb
| 29,562
|
py
|
Python
|
amazon_ads_sponsored_products_client/api/suggested_keywords_api.py
|
wangjoshuah/Amazon-Ads-Sponsored-Products-API-Python-Client
|
98a511a0544d28aac06529c13f4921c19ae8ec66
|
[
"MIT"
] | null | null | null |
amazon_ads_sponsored_products_client/api/suggested_keywords_api.py
|
wangjoshuah/Amazon-Ads-Sponsored-Products-API-Python-Client
|
98a511a0544d28aac06529c13f4921c19ae8ec66
|
[
"MIT"
] | null | null | null |
amazon_ads_sponsored_products_client/api/suggested_keywords_api.py
|
wangjoshuah/Amazon-Ads-Sponsored-Products-API-Python-Client
|
98a511a0544d28aac06529c13f4921c19ae8ec66
|
[
"MIT"
] | null | null | null |
"""
Amazon Ads API - Sponsored Products
Use the Amazon Ads API for Sponsored Products for campaign, ad group, keyword, negative keyword, and product ad management operations. For more information about Sponsored Products, see the [Sponsored Products Support Center](https://advertising.amazon.com/help?entityId=ENTITY3CWETCZD9HEG2#GWGFKPEWVWG2CLUJ). For onboarding information, see the [account setup](setting-up/account-setup) topic.<br/><br/> # noqa: E501
The version of the OpenAPI document: 2.0
Generated by: https://openapi-generator.tech
"""
import re # noqa: F401
import sys # noqa: F401
from amazon_ads_sponsored_products_client.api_client import ApiClient, Endpoint as _Endpoint
from amazon_ads_sponsored_products_client.model_utils import ( # noqa: F401
check_allowed_values,
check_validations,
date,
datetime,
file_type,
none_type,
validate_and_convert_types
)
from amazon_ads_sponsored_products_client.model.ad_group_suggested_keywords_response import AdGroupSuggestedKeywordsResponse
from amazon_ads_sponsored_products_client.model.ad_group_suggested_keywords_response_ex import AdGroupSuggestedKeywordsResponseEx
from amazon_ads_sponsored_products_client.model.bulk_get_asin_suggested_keywords_response import BulkGetAsinSuggestedKeywordsResponse
from amazon_ads_sponsored_products_client.model.error import Error
from amazon_ads_sponsored_products_client.model.get_asin_suggested_keywords_response import GetAsinSuggestedKeywordsResponse
from amazon_ads_sponsored_products_client.model.inline_object import InlineObject
class SuggestedKeywordsApi(object):
"""NOTE: This class is auto generated by OpenAPI Generator
Ref: https://openapi-generator.tech
Do not edit the class manually.
"""
def __init__(self, api_client=None):
if api_client is None:
api_client = ApiClient()
self.api_client = api_client
self.bulk_get_asin_suggested_keywords_endpoint = _Endpoint(
settings={
'response_type': (BulkGetAsinSuggestedKeywordsResponse,),
'auth': [
'bearer'
],
'endpoint_path': '/v2/sp/asins/suggested/keywords',
'operation_id': 'bulk_get_asin_suggested_keywords',
'http_method': 'POST',
'servers': None,
},
params_map={
'all': [
'amazon_advertising_api_client_id',
'amazon_advertising_api_scope',
'inline_object',
],
'required': [
'amazon_advertising_api_client_id',
'amazon_advertising_api_scope',
],
'nullable': [
],
'enum': [
],
'validation': [
]
},
root_map={
'validations': {
},
'allowed_values': {
},
'openapi_types': {
'amazon_advertising_api_client_id':
(str,),
'amazon_advertising_api_scope':
(str,),
'inline_object':
(InlineObject,),
},
'attribute_map': {
'amazon_advertising_api_client_id': 'Amazon-Advertising-API-ClientId',
'amazon_advertising_api_scope': 'Amazon-Advertising-API-Scope',
},
'location_map': {
'amazon_advertising_api_client_id': 'header',
'amazon_advertising_api_scope': 'header',
'inline_object': 'body',
},
'collection_format_map': {
}
},
headers_map={
'accept': [
'application/json'
],
'content_type': [
'application/json'
]
},
api_client=api_client
)
self.get_ad_group_suggested_keywords_endpoint = _Endpoint(
settings={
'response_type': (AdGroupSuggestedKeywordsResponse,),
'auth': [
'bearer'
],
'endpoint_path': '/v2/sp/adGroups/{adGroupId}/suggested/keywords',
'operation_id': 'get_ad_group_suggested_keywords',
'http_method': 'GET',
'servers': None,
},
params_map={
'all': [
'amazon_advertising_api_client_id',
'amazon_advertising_api_scope',
'ad_group_id',
'max_num_suggestions',
'ad_state_filter',
],
'required': [
'amazon_advertising_api_client_id',
'amazon_advertising_api_scope',
'ad_group_id',
],
'nullable': [
],
'enum': [
'ad_state_filter',
],
'validation': [
'max_num_suggestions',
]
},
root_map={
'validations': {
('max_num_suggestions',): {
'inclusive_maximum': 1000,
'inclusive_minimum': 1,
},
},
'allowed_values': {
('ad_state_filter',): {
"ENABLED": "enabled",
"PAUSED": "paused",
"ARCHIVED": "archived",
"ENABLED,_PAUSED": "enabled, paused",
"ENABLED,_ARCHIVED": "enabled, archived",
"PAUSED,_ARCHIVED": "paused, archived",
"ENABLED,_PAUSED,_ARCHIVED": "enabled, paused, archived"
},
},
'openapi_types': {
'amazon_advertising_api_client_id':
(str,),
'amazon_advertising_api_scope':
(str,),
'ad_group_id':
(float,),
'max_num_suggestions':
(int,),
'ad_state_filter':
(str,),
},
'attribute_map': {
'amazon_advertising_api_client_id': 'Amazon-Advertising-API-ClientId',
'amazon_advertising_api_scope': 'Amazon-Advertising-API-Scope',
'ad_group_id': 'adGroupId',
'max_num_suggestions': 'maxNumSuggestions',
'ad_state_filter': 'adStateFilter',
},
'location_map': {
'amazon_advertising_api_client_id': 'header',
'amazon_advertising_api_scope': 'header',
'ad_group_id': 'path',
'max_num_suggestions': 'query',
'ad_state_filter': 'query',
},
'collection_format_map': {
}
},
headers_map={
'accept': [
'application/json'
],
'content_type': [],
},
api_client=api_client
)
self.get_ad_group_suggested_keywords_ex_endpoint = _Endpoint(
settings={
'response_type': ([AdGroupSuggestedKeywordsResponseEx],),
'auth': [
'bearer'
],
'endpoint_path': '/v2/sp/adGroups/{adGroupId}/suggested/keywords/extended',
'operation_id': 'get_ad_group_suggested_keywords_ex',
'http_method': 'GET',
'servers': None,
},
params_map={
'all': [
'amazon_advertising_api_client_id',
'amazon_advertising_api_scope',
'ad_group_id',
'max_num_suggestions',
'suggest_bids',
'ad_state_filter',
],
'required': [
'amazon_advertising_api_client_id',
'amazon_advertising_api_scope',
'ad_group_id',
],
'nullable': [
],
'enum': [
'suggest_bids',
'ad_state_filter',
],
'validation': [
'max_num_suggestions',
]
},
root_map={
'validations': {
('max_num_suggestions',): {
'inclusive_maximum': 1000,
'inclusive_minimum': 1,
},
},
'allowed_values': {
('suggest_bids',): {
"YES": "yes",
"NO": "no"
},
('ad_state_filter',): {
"ENABLED": "enabled",
"PAUSED": "paused",
"ARCHIVED": "archived",
"ENABLED,_PAUSED": "enabled, paused",
"ENABLED,_ARCHIVED": "enabled, archived",
"PAUSED,_ARCHIVED": "paused, archived",
"ENABLED,_PAUSED,_ARCHIVED": "enabled, paused, archived"
},
},
'openapi_types': {
'amazon_advertising_api_client_id':
(str,),
'amazon_advertising_api_scope':
(str,),
'ad_group_id':
(float,),
'max_num_suggestions':
(int,),
'suggest_bids':
(str,),
'ad_state_filter':
(str,),
},
'attribute_map': {
'amazon_advertising_api_client_id': 'Amazon-Advertising-API-ClientId',
'amazon_advertising_api_scope': 'Amazon-Advertising-API-Scope',
'ad_group_id': 'adGroupId',
'max_num_suggestions': 'maxNumSuggestions',
'suggest_bids': 'suggestBids',
'ad_state_filter': 'adStateFilter',
},
'location_map': {
'amazon_advertising_api_client_id': 'header',
'amazon_advertising_api_scope': 'header',
'ad_group_id': 'path',
'max_num_suggestions': 'query',
'suggest_bids': 'query',
'ad_state_filter': 'query',
},
'collection_format_map': {
}
},
headers_map={
'accept': [
'application/json'
],
'content_type': [],
},
api_client=api_client
)
self.get_asin_suggested_keywords_endpoint = _Endpoint(
settings={
'response_type': (GetAsinSuggestedKeywordsResponse,),
'auth': [
'bearer'
],
'endpoint_path': '/v2/sp/asins/{asinValue}/suggested/keywords',
'operation_id': 'get_asin_suggested_keywords',
'http_method': 'GET',
'servers': None,
},
params_map={
'all': [
'amazon_advertising_api_client_id',
'amazon_advertising_api_scope',
'asin_value',
'max_num_suggestions',
],
'required': [
'amazon_advertising_api_client_id',
'amazon_advertising_api_scope',
'asin_value',
],
'nullable': [
],
'enum': [
],
'validation': [
'max_num_suggestions',
]
},
root_map={
'validations': {
('max_num_suggestions',): {
'inclusive_maximum': 1000,
'inclusive_minimum': 1,
},
},
'allowed_values': {
},
'openapi_types': {
'amazon_advertising_api_client_id':
(str,),
'amazon_advertising_api_scope':
(str,),
'asin_value':
(str,),
'max_num_suggestions':
(int,),
},
'attribute_map': {
'amazon_advertising_api_client_id': 'Amazon-Advertising-API-ClientId',
'amazon_advertising_api_scope': 'Amazon-Advertising-API-Scope',
'asin_value': 'asinValue',
'max_num_suggestions': 'maxNumSuggestions',
},
'location_map': {
'amazon_advertising_api_client_id': 'header',
'amazon_advertising_api_scope': 'header',
'asin_value': 'path',
'max_num_suggestions': 'query',
},
'collection_format_map': {
}
},
headers_map={
'accept': [
'application/json'
],
'content_type': [],
},
api_client=api_client
)
def bulk_get_asin_suggested_keywords(
self,
amazon_advertising_api_client_id,
amazon_advertising_api_scope,
**kwargs
):
"""Gets suggested keyword for a specified list of ASINs. # noqa: E501
Suggested keywords are returned in an array ordered by descending effectiveness. # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.bulk_get_asin_suggested_keywords(amazon_advertising_api_client_id, amazon_advertising_api_scope, async_req=True)
>>> result = thread.get()
Args:
amazon_advertising_api_client_id (str): The identifier of a client associated with a \"Login with Amazon\" developer account.
amazon_advertising_api_scope (str): The identifier of a profile associated with the advertiser account. Use `GET` method on Profiles resource to list profiles associated with the access token passed in the HTTP Authorization header.
Keyword Args:
inline_object (InlineObject): [optional]
_return_http_data_only (bool): response data without head status
code and headers. Default is True.
_preload_content (bool): if False, the urllib3.HTTPResponse object
will be returned without reading/decoding response data.
Default is True.
_request_timeout (int/float/tuple): timeout setting for this request. If
one number provided, it will be total request timeout. It can also
be a pair (tuple) of (connection, read) timeouts.
Default is None.
_check_input_type (bool): specifies if type checking
should be done one the data sent to the server.
Default is True.
_check_return_type (bool): specifies if type checking
should be done one the data received from the server.
Default is True.
_content_type (str/None): force body content-type.
Default is None and content-type will be predicted by allowed
content-types and body.
_host_index (int/None): specifies the index of the server
that we want to use.
Default is read from the configuration.
async_req (bool): execute request asynchronously
Returns:
BulkGetAsinSuggestedKeywordsResponse
If the method is called asynchronously, returns the request
thread.
"""
kwargs['async_req'] = kwargs.get(
'async_req', False
)
kwargs['_return_http_data_only'] = kwargs.get(
'_return_http_data_only', True
)
kwargs['_preload_content'] = kwargs.get(
'_preload_content', True
)
kwargs['_request_timeout'] = kwargs.get(
'_request_timeout', None
)
kwargs['_check_input_type'] = kwargs.get(
'_check_input_type', True
)
kwargs['_check_return_type'] = kwargs.get(
'_check_return_type', True
)
kwargs['_content_type'] = kwargs.get(
'_content_type')
kwargs['_host_index'] = kwargs.get('_host_index')
kwargs['amazon_advertising_api_client_id'] = \
amazon_advertising_api_client_id
kwargs['amazon_advertising_api_scope'] = \
amazon_advertising_api_scope
return self.bulk_get_asin_suggested_keywords_endpoint.call_with_http_info(**kwargs)
def get_ad_group_suggested_keywords(
self,
amazon_advertising_api_client_id,
amazon_advertising_api_scope,
ad_group_id,
**kwargs
):
"""Gets suggested keywords for the specified ad group. # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.get_ad_group_suggested_keywords(amazon_advertising_api_client_id, amazon_advertising_api_scope, ad_group_id, async_req=True)
>>> result = thread.get()
Args:
amazon_advertising_api_client_id (str): The identifier of a client associated with a \"Login with Amazon\" developer account.
amazon_advertising_api_scope (str): The identifier of a profile associated with the advertiser account. Use `GET` method on Profiles resource to list profiles associated with the access token passed in the HTTP Authorization header.
ad_group_id (float): The identifier of a valid ad group.
Keyword Args:
max_num_suggestions (int): The maxiumum number of suggested keywords for the response.. [optional] if omitted the server will use the default value of 100
ad_state_filter (str): Filters results to ad groups with state matching the comma-delimited list.. [optional]
_return_http_data_only (bool): response data without head status
code and headers. Default is True.
_preload_content (bool): if False, the urllib3.HTTPResponse object
will be returned without reading/decoding response data.
Default is True.
_request_timeout (int/float/tuple): timeout setting for this request. If
one number provided, it will be total request timeout. It can also
be a pair (tuple) of (connection, read) timeouts.
Default is None.
_check_input_type (bool): specifies if type checking
should be done one the data sent to the server.
Default is True.
_check_return_type (bool): specifies if type checking
should be done one the data received from the server.
Default is True.
_content_type (str/None): force body content-type.
Default is None and content-type will be predicted by allowed
content-types and body.
_host_index (int/None): specifies the index of the server
that we want to use.
Default is read from the configuration.
async_req (bool): execute request asynchronously
Returns:
AdGroupSuggestedKeywordsResponse
If the method is called asynchronously, returns the request
thread.
"""
kwargs['async_req'] = kwargs.get(
'async_req', False
)
kwargs['_return_http_data_only'] = kwargs.get(
'_return_http_data_only', True
)
kwargs['_preload_content'] = kwargs.get(
'_preload_content', True
)
kwargs['_request_timeout'] = kwargs.get(
'_request_timeout', None
)
kwargs['_check_input_type'] = kwargs.get(
'_check_input_type', True
)
kwargs['_check_return_type'] = kwargs.get(
'_check_return_type', True
)
kwargs['_content_type'] = kwargs.get(
'_content_type')
kwargs['_host_index'] = kwargs.get('_host_index')
kwargs['amazon_advertising_api_client_id'] = \
amazon_advertising_api_client_id
kwargs['amazon_advertising_api_scope'] = \
amazon_advertising_api_scope
kwargs['ad_group_id'] = \
ad_group_id
return self.get_ad_group_suggested_keywords_endpoint.call_with_http_info(**kwargs)
def get_ad_group_suggested_keywords_ex(
self,
amazon_advertising_api_client_id,
amazon_advertising_api_scope,
ad_group_id,
**kwargs
):
"""Gets suggested keywords with extended data for the specified ad group. # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.get_ad_group_suggested_keywords_ex(amazon_advertising_api_client_id, amazon_advertising_api_scope, ad_group_id, async_req=True)
>>> result = thread.get()
Args:
amazon_advertising_api_client_id (str): The identifier of a client associated with a \"Login with Amazon\" developer account.
amazon_advertising_api_scope (str): The identifier of a profile associated with the advertiser account. Use `GET` method on Profiles resource to list profiles associated with the access token passed in the HTTP Authorization header.
ad_group_id (float): The identifier of a valid ad group.
Keyword Args:
max_num_suggestions (int): The maxiumum number of suggested keywords for the response.. [optional] if omitted the server will use the default value of 100
suggest_bids (str): Set to `yes` to include a suggest bid for the suggested keyword in the response. Otherwise, set to `no`.. [optional] if omitted the server will use the default value of "no"
ad_state_filter (str): Filters results to ad groups with state matching the comma-delimited list.. [optional]
_return_http_data_only (bool): response data without head status
code and headers. Default is True.
_preload_content (bool): if False, the urllib3.HTTPResponse object
will be returned without reading/decoding response data.
Default is True.
_request_timeout (int/float/tuple): timeout setting for this request. If
one number provided, it will be total request timeout. It can also
be a pair (tuple) of (connection, read) timeouts.
Default is None.
_check_input_type (bool): specifies if type checking
should be done one the data sent to the server.
Default is True.
_check_return_type (bool): specifies if type checking
should be done one the data received from the server.
Default is True.
_content_type (str/None): force body content-type.
Default is None and content-type will be predicted by allowed
content-types and body.
_host_index (int/None): specifies the index of the server
that we want to use.
Default is read from the configuration.
async_req (bool): execute request asynchronously
Returns:
[AdGroupSuggestedKeywordsResponseEx]
If the method is called asynchronously, returns the request
thread.
"""
kwargs['async_req'] = kwargs.get(
'async_req', False
)
kwargs['_return_http_data_only'] = kwargs.get(
'_return_http_data_only', True
)
kwargs['_preload_content'] = kwargs.get(
'_preload_content', True
)
kwargs['_request_timeout'] = kwargs.get(
'_request_timeout', None
)
kwargs['_check_input_type'] = kwargs.get(
'_check_input_type', True
)
kwargs['_check_return_type'] = kwargs.get(
'_check_return_type', True
)
kwargs['_content_type'] = kwargs.get(
'_content_type')
kwargs['_host_index'] = kwargs.get('_host_index')
kwargs['amazon_advertising_api_client_id'] = \
amazon_advertising_api_client_id
kwargs['amazon_advertising_api_scope'] = \
amazon_advertising_api_scope
kwargs['ad_group_id'] = \
ad_group_id
return self.get_ad_group_suggested_keywords_ex_endpoint.call_with_http_info(**kwargs)
def get_asin_suggested_keywords(
self,
amazon_advertising_api_client_id,
amazon_advertising_api_scope,
asin_value,
**kwargs
):
"""Gets suggested keywords for the specified ASIN. # noqa: E501
Suggested keywords are returned in an array ordered by descending effectiveness. # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.get_asin_suggested_keywords(amazon_advertising_api_client_id, amazon_advertising_api_scope, asin_value, async_req=True)
>>> result = thread.get()
Args:
amazon_advertising_api_client_id (str): The identifier of a client associated with a \"Login with Amazon\" developer account.
amazon_advertising_api_scope (str): The identifier of a profile associated with the advertiser account. Use `GET` method on Profiles resource to list profiles associated with the access token passed in the HTTP Authorization header.
asin_value (str): An ASIN.
Keyword Args:
max_num_suggestions (int): The maxiumum number of suggested keywords for the response.. [optional] if omitted the server will use the default value of 100
_return_http_data_only (bool): response data without head status
code and headers. Default is True.
_preload_content (bool): if False, the urllib3.HTTPResponse object
will be returned without reading/decoding response data.
Default is True.
_request_timeout (int/float/tuple): timeout setting for this request. If
one number provided, it will be total request timeout. It can also
be a pair (tuple) of (connection, read) timeouts.
Default is None.
_check_input_type (bool): specifies if type checking
should be done one the data sent to the server.
Default is True.
_check_return_type (bool): specifies if type checking
should be done one the data received from the server.
Default is True.
_content_type (str/None): force body content-type.
Default is None and content-type will be predicted by allowed
content-types and body.
_host_index (int/None): specifies the index of the server
that we want to use.
Default is read from the configuration.
async_req (bool): execute request asynchronously
Returns:
GetAsinSuggestedKeywordsResponse
If the method is called asynchronously, returns the request
thread.
"""
kwargs['async_req'] = kwargs.get(
'async_req', False
)
kwargs['_return_http_data_only'] = kwargs.get(
'_return_http_data_only', True
)
kwargs['_preload_content'] = kwargs.get(
'_preload_content', True
)
kwargs['_request_timeout'] = kwargs.get(
'_request_timeout', None
)
kwargs['_check_input_type'] = kwargs.get(
'_check_input_type', True
)
kwargs['_check_return_type'] = kwargs.get(
'_check_return_type', True
)
kwargs['_content_type'] = kwargs.get(
'_content_type')
kwargs['_host_index'] = kwargs.get('_host_index')
kwargs['amazon_advertising_api_client_id'] = \
amazon_advertising_api_client_id
kwargs['amazon_advertising_api_scope'] = \
amazon_advertising_api_scope
kwargs['asin_value'] = \
asin_value
return self.get_asin_suggested_keywords_endpoint.call_with_http_info(**kwargs)
| 42.90566
| 422
| 0.546749
| 2,834
| 29,562
| 5.384968
| 0.09633
| 0.098028
| 0.115327
| 0.072079
| 0.87871
| 0.869602
| 0.858332
| 0.830811
| 0.827862
| 0.820195
| 0
| 0.00368
| 0.374907
| 29,562
| 688
| 423
| 42.968023
| 0.822177
| 0.340539
| 0
| 0.701245
| 0
| 0
| 0.295023
| 0.125536
| 0
| 0
| 0
| 0
| 0
| 1
| 0.010373
| false
| 0
| 0.020747
| 0
| 0.041494
| 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
|
386aabe1a98cabf08f3affead11938bbb7fa1678
| 5,005
|
py
|
Python
|
userbot/plugins/Alone.py
|
karcexy/Marshmello
|
8035ddf830880fb860a12af3562a07f46f294641
|
[
"MIT"
] | 1
|
2022-01-10T14:46:02.000Z
|
2022-01-10T14:46:02.000Z
|
userbot/plugins/Alone.py
|
karcexy/Marshmello
|
8035ddf830880fb860a12af3562a07f46f294641
|
[
"MIT"
] | null | null | null |
userbot/plugins/Alone.py
|
karcexy/Marshmello
|
8035ddf830880fb860a12af3562a07f46f294641
|
[
"MIT"
] | 2
|
2021-03-30T06:02:55.000Z
|
2021-03-30T09:19:24.000Z
|
#Credit To @Kraken_The_BadASS . Keep credit if you are going to edit it.
import random, re
from uniborg.util import admin_cmd
import asyncio
from telethon import events
@borg.on(admin_cmd(pattern="alone ?(.*)"))
async def _(event):
if not event.text[0].isalpha() and event.text[0] not in ("/", "#", "@", "!"):
await event.edit("T")
await asyncio.sleep(0.7)
await event.edit("Th")
await asyncio.sleep(0.7)
await event.edit("The")
await asyncio.sleep(0.7)
await event.edit("The D")
await asyncio.sleep(0.7)
await event.edit("The Da")
await asyncio.sleep(0.7)
await event.edit("The Day")
await asyncio.sleep(0.7)
await event.edit("The Day I")
await asyncio.sleep(0.7)
await event.edit("The Day I L")
await asyncio.sleep(0.7)
await event.edit("The Day I Le")
await asyncio.sleep(0.7)
await event.edit("The Day I Lea")
await asyncio.sleep(0.7)
await event.edit("The Day I Lear")
await asyncio.sleep(0.7)
await event.edit("The Day I Learn")
await asyncio.sleep(0.7)
await event.edit("The Day I Learnt")
await asyncio.sleep(0.7)
await event.edit("The Day I Learnt T")
await asyncio.sleep(0.7)
await event.edit("The Day I Learnt To")
await asyncio.sleep(0.7)
await event.edit("The Day I Learnt To L")
await asyncio.sleep(0.7)
await event.edit("The Day I Learnt To Li")
await asyncio.sleep(0.7)
await event.edit("The Day I Learnt To Liv")
await asyncio.sleep(0.7)
await event.edit("The Day I Learnt To Live")
await asyncio.sleep(0.7)
await event.edit("The Day I Learnt To Live A")
await asyncio.sleep(0.7)
await event.edit("The Day I Learnt To Live Al")
await asyncio.sleep(0.7)
await event.edit("The Day I Learnt To Live Alo")
await asyncio.sleep(0.7)
await event.edit("The Day I Learnt To Live Alon")
await asyncio.sleep(0.7)
await event.edit("Tge Day I Learnt To Live Alone")
await asyncio.sleep(0.7)
await event.edit("The Day I Learnt To Live Alone \nE")
await asyncio.sleep(0.7)
await event.edit("The Day I Learnt To Live Alone \nEv")
await asyncio.sleep(0.7)
await event.edit("The Day I Learnt To Live Alone \nEve")
await asyncio.sleep(0.7)
await event.edit("The Day I Learnt To Live Alone \nEver")
await asyncio.sleep(0.7)
await event.edit("The Day I Learnt To Live Alone \nEvery")
await asyncio.sleep(0.7)
await event.edit("The Day I Learnt To Live Alone \nEveryt")
await asyncio.sleep(0.7)
await event.edit("The Day I Learnt To Live Alone \nEveryth")
await asyncio.sleep(0.7)
await event.edit("The Day I Learnt To Live Alone \nEverythi")
await asyncio.sleep(0.7)
await event.edit("The Day I Learnt To Live Alone \nEverythin")
await asyncio.sleep(0.7)
await event.edit("The Day I Learnt To Live Alone \nEverything")
await asyncio.sleep(0.7)
await event.edit("The Day I Learnt To Live Alone \nEverything B")
await asyncio.sleep(0.7)
await event.edit("The Day I Learnt To Live Alone \nEverything Be")
await asyncio.sleep(0.7)
await event.edit("The Day I Learnt To Live Alone \nEverything Bec")
await asyncio.sleep(0.7)
await event.edit("The Day I Learnt To Live Alone \nEverything Beca")
await asyncio.sleep(0.7)
await event.edit("The Day I Learnt To Live Alone \nEverything Becam")
await asyncio.sleep(0.7)
await event.edit("The Day I Learnt To Live Alone \nEverything Became")
await asyncio.sleep(0.7)
await event.edit("The Day I Learnt To Live Alone \nEverything Became B")
await asyncio.sleep(0.7)
await event.edit("The Say I Learnt To Live Alone \nEverything Became Be")
await asyncio.sleep(0.7)
await event.edit("The Day I Learnt To Live Alone \nEverything Became Bea")
await asyncio.sleep(0.7)
await event.edit("The Day I Learnt To Live Alone \nEverything Became Beau")
await asyncio.sleep(0.7)
await event.edit("The Day I Learnt To Live Alone \nEverything Became Beaut")
await asyncio.sleep(0.7)
await event.edit("The Day I Learnt To Live Alone \nEverything Became Beauti")
await asyncio.sleep(0.7)
await event.edit("The Day I Learnt To Live Alone \nEverything Became Beautif")
await asyncio.sleep(0.7)
await event.edit("The Day I Learnt To Live Alone \nEverything Became Beautifu")
await asyncio.sleep(0.7)
await event.edit("The Day I Learnt To Live Alone \nEverything Became Beautiful")
await asyncio.sleep(0.7)
await event.edit("**The Day I Learnt To Live Alone \nEverything Became Beautiful**🙂")
| 45.09009
| 93
| 0.629171
| 785
| 5,005
| 4.006369
| 0.107006
| 0.158983
| 0.222576
| 0.280445
| 0.883307
| 0.883307
| 0.87663
| 0.865501
| 0.855008
| 0.809539
| 0
| 0.027203
| 0.265534
| 5,005
| 110
| 94
| 45.5
| 0.828074
| 0.014186
| 0
| 0.462264
| 0
| 0
| 0.331441
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0.037736
| 0
| 0.037736
| 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
| 1
| 0
| 0
| 0
| 0
| 0
|
0
| 9
|
2a07be6608225ae4406a2860b2b1b134fd3050d6
| 193,327
|
py
|
Python
|
throbImages.py
|
rambasnet/MAKE2
|
3e4f31a0e39aab4aae117d8644fa4ae50e8531b5
|
[
"MIT"
] | null | null | null |
throbImages.py
|
rambasnet/MAKE2
|
3e4f31a0e39aab4aae117d8644fa4ae50e8531b5
|
[
"MIT"
] | null | null | null |
throbImages.py
|
rambasnet/MAKE2
|
3e4f31a0e39aab4aae117d8644fa4ae50e8531b5
|
[
"MIT"
] | null | null | null |
#----------------------------------------------------------------------
# This file was generated by encode_bitmaps.py
#
from wx import ImageFromStream, BitmapFromImage
import cStringIO
catalog = {}
index = []
class ImageClass: pass
def get001Data():
return \
'\x89PNG\r\n\x1a\n\x00\x00\x00\rIHDR\x00\x00\x00"\x00\x00\x00"\x08\x02\x00\
\x00\x00\xb5%\x9c\x95\x00\x00\x00\x03sBIT\x08\x08\x08\xdb\xe1O\xe0\x00\x00\
\x06\xd4IDATH\x89\xbd\x97Ko\x1bG\x16\x85\xef\xab\x8am\x8a\x92"JV\xe88v\x10\
\x08\xf0x\x02\xc4\x08bd\x97A~\xf2\xfc\x81Y\xcd2\xdb\x04\t\xb2\x11 \xcb\x91\
\x1f\xb2->\x9aU]]\x8f;\x8bj>\x14\xccv\xa6\x17M\x90\xdd\xec\xc3{\xee\xb9_\x15\
\x01\xfe/\x07\x02\xc0\x8b\x97\xff\xb0vd\x8ce\x11&FbDTU\x00\x1d\xee\xd2z\xd2\
\xe1\x8d\xe2\xe6S\xfco\xcf\x1b^\x15\x10@U\xf5\xdf\xff\xfa\xa7\x00\x80\xb5\
\xa3\xa6\x19\xdbQS\x95\xa8\xca\x80\x82\xaa\x16H9z\xd7\x06\xefB\xe7B\xdf\xa5\
\x18sN\x88\xc0bG\xa3\xe6\xc1\xf8prxlG\r\x00 \xe2F\x03\x15\x00\x11\xb4h\xd1\
\x0c\x00\x02\x00\xc6X;j\x9a\xe6\x81\x195"\x96\x89\xea\x8f\t\x9do\xdd\xc2\xb5\
\x8b\xa2\xcaB\x07\x87\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db\xa5\xea.\x02\x9ab\xd4\x92R\x8a\xa1\xefM\xd71S\xceI\xa1\
\x0e\xad\x0e\xe8\xfd\x0b\xf5u\x18lB\xac!@DV\x00\x84\x9c\x92\xb1#;\xb2H\x0c;\
\x19\xc5\x9cSL)\xc6\xd8\x87PY\xa2Z\x88\x04I\xa1\xf6\xfc\x9e\xc6\xce.\x1c\xca\
!f&\xe2z1\x99h\x8c\x151\xc2\xa6\xba [\x07*\xdb\xfb\xd0U\x96\x101bQ\xa0\x8de\
\xfb=\x81\r\x83\x07\x8dJD\x11\xa9V\xb2\xc8@\x07#\xb0o\x1a\x8b\xadl\xef\xfa\
\x8e\x8d(\x801\x96\x88\x91\n\x02k\x05^-B\x01v\x1a\x88\x84\xb5\x14\x11\x111\
\x80\xa8E\x89\x18\t\x01\xd1\x18\xbb\xdf\x1b\x1c\x8d\x1a\xef\xda\xd0\xf9\xe0\
\xbd0# !23fD!\xdc\x8f0\xe2\x9eY\xc3\xfc\x13\x89\x88\x11\x11\x00\xc8L\x88\xa0\
\xaa\xa5d\x11\x0b\xfb\xa6=\x18\x1f\xce?\xddz\xbf\xb6\xa3fKC\x92\x84DXJ]\xe8\
\xee)`\r\x17W\xc0\x18c\xc4\x18a)\xaa\xa0\xa1\x94\x92S\xca1\x19c\xf6\xab\x81\
\xc9\xe112w\xde\xd55j`;s\xa5\xbc*\x11n\xb3\xbb\xe9\x07\xd5v\x881\xc6\x18k\
\xc4 Q\x891\xe7\x1c\xfb\xbe\xefC\x8c\xbdm\xc6\xf7\xaa\xb1\xa3f:=\x7f\xf7\xe6\
j\xfb\x80\xea\xf6`\x0b\xa9\x02\x10\x12\xe1\xdeuf\xa2\x8d\x861,RJI9\xf5}\x08\
\xa1\x0b\x9d\xaf\xf7\xdc\xab\x06\x00\xce\xce\x1f\xdf\xbe\xbfY\xb7\xcb]@+\xa6\
\x98\x89\x07\xdbp\'0\xf4\xbc\xfa\xc5"\x00\x90b\xec\xbc\xef\xbc\xf3\xaeu\x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)jm3}8;)\xa5hQ\xd5\xe1{\xaa\xdb\xd7\xed\x19\x11t\xb3n\xd4:T\
\x15\xca_\x97\xdf\xff\xe1\xf1\x1f\xd1W\xf5\xfbj\x9b\xc9_\x00\x00\x00\x00IEND\
\xaeB`\x82'
def get001Bitmap():
return BitmapFromImage(get001Image())
def get001Image():
stream = cStringIO.StringIO(get001Data())
return ImageFromStream(stream)
index.append('001')
catalog['001'] = ImageClass()
catalog['001'].getData = get001Data
catalog['001'].getImage = get001Image
catalog['001'].getBitmap = get001Bitmap
#----------------------------------------------------------------------
def get002Data():
return \
'\x89PNG\r\n\x1a\n\x00\x00\x00\rIHDR\x00\x00\x00"\x00\x00\x00"\x08\x02\x00\
\x00\x00\xb5%\x9c\x95\x00\x00\x00\x03sBIT\x08\x08\x08\xdb\xe1O\xe0\x00\x00\
\x06\xe0IDATH\x89\xbdWMs\xdbF\x16|_3\x00%2\x8a\xfc!KNbW\xec\xa4b\x1f\xe2J\
\xc59f\xf3\x97\xf7\x0f\xeci\xaf\xa9\x1c]\xe5\\\x9c*\xc9qT\xb2%\x92\x00\x08\
\xcc\x0cf\xe6\xe50\x04Em\xed98\x00$H\xa0\xf1\xfau\xf7\x1b\x00\xfc#\x1b\x02\
\xc0\xab\xd7\xff\xb2\xb62\xc6\xb2\x08\x13#1"\xaa*\x80n\xff\xa5e\xa7\xdb/\x8a\
\xd3Y\xfc\x7f\xf7\xdb\x1e\x15\x10@U\xf5\xbf\xff\xf9\xb7\x00\x80\xb5U]\x1f\
\xd8\xaa.HT`@AU3\xa44z\xb7\xf1\xae\xf7~\x18\x83\x8fcH))(\xb31U=\x9b\xcd\x0f\
\xe7G\xb6\xaa\x01\x00\x11\'\x0cT\x00D\xd0\xacY\x13\x00\x08\x00\x18cmU\xd7\
\xf5\xccT\xb5\x88e\xa2\xf20\xc1\x0f\x83k\x86\xa1E\x80\xaa2\xb3\xda*`\x8a1\
\xc61\x8e\xa3\x0f\xce\xbbM\xbb\xfc\x04HG\xc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x93\x87\x8f\xee\xdd\x7f\xf0\xe4\xe9\xd3\xe7\xcf\xbfQ\xcd\x17\x17\xef/\
//\xd7\xabU\xdf\xf7>\xf8\x9c\x12 23\x95\x8d\xb9\x00\x88\x08\xb3\xb0\x181F\
\x8ca\xe6\xbf\xde\xffq\xff\xe1\xd9b\xf1\xb9\xee\x94\x06\x00\x9aap\x8d\xb5r8_\
\xdc\xbbw|zz:\x8e\xe1\xe2\xe2\xfd\x87\x0f\x7f\xae\x96\xcb\xbe\xdf\x8c\xe3\
\xa8\x00\x80H\x80\xca\x08\nH\x19\xd3\x16\x8a\x88\x99\x85ED\x84\x88\x00py\xf3\
\xf1\xea\xf2\xe2\xf0\xf0(g\xbd\x85Ii\x1c\x86\xf6\xb3\xc5\xe9l6\x9b\x1f\xceSL\
\xe7\xe7\xe7\x97\x97\x97\xab\xe5r\xd3o\xe28\xaa\xee|\xa7\x08\xa8\x08\x84\x8c\
\x88\x94)\x17\xeed\xcb\x1b\x12\x81BN\xa9Y^\x0fCgm=\xc1(x\xb7A\x00cmU\xd5\x08\
xss\xbdn\x9a\xf5j\xd5\x17\x8c)=\x00\'\x87C\xb19\x01\x03)+e&.}*A\x15c\xf4\xc1\
\xb5\xeb\xe5\xf1\x83G\xb7\xd5x\xd7W\x95!\x12P\xed\xdd0\xa6\xb4\xe9\xba\xbe\
\xef\xc7R\x07N\xb1\xa6\xbb\xdc*;\x9c\x12\x86X\x81\x98\x91\x08\x01rJc\x08\xce\
m\x9c\xeb4?\x9c\x94\x06\xea\xfd0\xab-\x80\xc6\x14\xfbMO\xe4\x9cs>x\xbd\x13\
\x9d\xfb\xd9x\x9b)\x88HH\x80\xc0*\xcc\x8c\x08)\xa5\x10\xfc\xc1\xc1\xa2\xed\
\xda\xac{\x12\x18\x83W\xc0\x94b\x08\xa1\xef{b\x1aC(\xbaB(v\xbe\x8b1}.\xd6)i\
\x8b\x88\xcc\x0c\x00)FW\xcf\xea\xd9\xaci\xd7\xaa\xb7\x12\xd08\x86\x14c\x8c\
\xd1{\xef\xdc\xc0\xcc1\xc6\xad\xae@\xb7\xd6\xbd\x1b\xf9\xba\xab\x04\t\x11\
\x99\x85\x08U\x01\x10cLU5X[31\xdc\xc2(\xa6\x94b\x1c\xc3\xe8\x83\xf7\xce8c$ge\
fe\x9cz\xbe_\xc8-]\xbb"\x98\x99\x98Kd\x8e&\x18c\x8c1"R\xa8\x9e|\x03\x1a\xc7\
\x12\xee\x03\x8b\xa8VDLD\xb0\xad\xe5\x0e\xd0\xff`l}*,l\xca\xa0\x12cX\x0c1\
\xb3\x18\xd8\'\x8d\xd9\xf8\xe0|\xf0\xc19\x11\x03\x00%K\x902!\xeft\xb5U\xdc]\
\x8cR\x8a\xb0\x11\x11D\xcc\x9a\x99\x98\x08\x11@\xc4\xee\xf7\x06MU{\xb7qC?T5\
\x8b\xec\x9e\x11\x13!"\x02\xedF\xe3\x1e\xc46u\xb6if\xa4<\x1f\xa5\x04\x00\x9a\
5\xe7\xccb`\x9f\xb4\xd9l\xde.?\xf5\xfd\xc6\xda\x9a\xc5\x14_3\x0b\x11S&\xe0\
\xc9"\xdb\x9eO\\\x11\x89\x18.Af\x8c\xb0dU\x00\xc8\x9a\xcb\x88%\x96\xfdj\xe0p\
~\x04H\xfd\xa6\xb5\xd6\xb2\x94\x94*\xe1\xc1\x99\x88\x94q\xd2n\x81\xd9q\xc5b\
\xac\xb1\xc6Zc,"\xa6qL)\x8e!\x84\xe0\x83\xf7,\xf6N5\xb6\xaa\x8f\x8eO>]]\x88\
\x08b\x99\x1f%\x07\x99\x98\x952\x00\x11n\xfdQD\xb5\x05\x11c\xac\xb5\xd62K\
\xce9\xa5\x18\xbcwn\x18\x86>+1\xf1\x9dj\x00\xe0\xc1\xa3\xc7\xd7\x1f?4\xcd\
\x1ap\xba\tK\x01cb.\x81\x86\xb8\x1d-\xc2\xc2F\nY\xc62\x0b\x00\x8c\xe38\x0cC?\
l\xfaM\xd7\xb5\r\x12\xefn.;\'\xcc\x17G\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12)\x82\xe6\xa49\xe7\xac\xd6\xd6\xc7\x0f\x1ei~\x985\xab\xea\xf6:\xd5\xddq\
\xb7G\x04U@\x84\xdd\xccUU\xc8\xd3\xdb\xcb?\xb0\xfd\rf\x12\xf8Y\xb1c\x8c\xef\
\x00\x00\x00\x00IEND\xaeB`\x82'
def get002Bitmap():
return BitmapFromImage(get002Image())
def get002Image():
stream = cStringIO.StringIO(get002Data())
return ImageFromStream(stream)
index.append('002')
catalog['002'] = ImageClass()
catalog['002'].getData = get002Data
catalog['002'].getImage = get002Image
catalog['002'].getBitmap = get002Bitmap
#----------------------------------------------------------------------
def get003Data():
return \
'\x89PNG\r\n\x1a\n\x00\x00\x00\rIHDR\x00\x00\x00"\x00\x00\x00"\x08\x02\x00\
\x00\x00\xb5%\x9c\x95\x00\x00\x00\x03sBIT\x08\x08\x08\xdb\xe1O\xe0\x00\x00\
\x06\xdcIDATH\x89\xbdW\xcb\x8e\x1b7\x16\xbd/\xb2J\xd5\x12\xdcP\xdbI\xbb\x13\
\xc4\x0el$\xf0 0\x828\xcbL~y~`V\xb3\r\xb2\xf4\xc2A\x00\x07vw\xe2~\xc8*\xa9U\
\x0f\xb2H\xdeY\xb0J\x92\x07\xb3\x9d!\x84*H\x90\xea\xf0\xdes\xcf9\x14\xc0\xff\
e!\x00\xbc|\xf5wk\x0bc,\x8b01\x12#\xa2\xaa\x02\xe8\xf8-\xcd\x17\x1d\xdf(N\
\x9f\xe2\x7f{\xdexW@\x00U\xd5\x7f\xfd\xf3\x1f\x02\x00\xd6\x16eY\xd9\xa2\xccH\
\x94a@AU\x13\xc48x\xd7\x0e\xbe\xf3\xae\x1f\x06\x17\x82K!EU&1\xb6,fU5?\xb5\
\xb6\x00\x00D\x9c0P\x01\x10A\x93&\x8d\x00 \x00`\x8c\xb5EY\x963S\x94"\x96\x89\
\xf2f\x86\xa1w\xdd.\xb8\x9d\x10\x14\'%\xceg\xa0\x10b\x0ca\x18\xbcw\xae\xef\
\xfbnu\xbd\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x92H\xf6\x0b\xd7W\xb3\xaa\xaa\xeb\xb5\xeaa\
\x044\x04\x17b\xf6+\xd7\xf7\x1d3\x87\x10\x10\xf74\xe01\xc6\'\x83@\xe3b\x16B\
\xcc\xd9\x10C(\xca\xb2(J\x11\x81\x03\x8cb\n)\x84\xc1{\xdf\xbb\xde\xf4VDT\x95\
Y\x98\xc7\x81?\xc6\xc8\x8c\x1c\xa6\r\x91\xa7\x19\xc8o\xcd0\x18c\x8d1b$os\x1a\
h\xd5l\xbc\xae\xebELa\x0bb&J\xaa\x84\x9f\x00LU!" \x02\x12"\x11\x13\x8b0\x8b1\
\x00\xa8\xaa\x935\x08\xf3q5\xa0L\x92\xf3\xa3\xeb[1\x02\xa0\xd6\x16\xcc\x9c58\
\xd5\x83{\x9c\x91\xfb\xb1]\x9c1D$\xdbe6S@`\xb6\xc7\xdc\xa0\xb1e\xce\x8f\xbe\
\x9d\x89\x18@$$f\x99\\5w\xe9H\x98\x80H\xc4\xcc\xffa\x01\x00\x18B\x04\xc0\xa4\
\x9abD\x1e\xbb5\xde\x8aY\xb5\xba^\xb5MS\x9636BD""\xc1\x10QJ\x89\x91\x8e\x9f\
\x8e\x98{EcN\x99\xbcFF\x11!\xa5\x14\x86a\x08\x03\x92\x1cW\x03\xd5\xfc\xf4\
\xf6\xfa\xb2i\xeema\x8f\xcd#oVA3\xef\x84\x94\xa3e\xa2\x9c\xc5\x18k\xad\xb5\
\x85\xb1\x96\x10\x87a\x08!x\xef\xbcs]\xd7#}Z\x8d\xb5\xc5\x83\xd3\x87\xab\xdb\
+f!\xca1gD\xc6\x80!b \x98\xf4AL\x949\xe7\xec\xc9\xb60\xd6\nsJ\x1aBp\xce\xf5]\
\xd7vM\x88\x9a\x8d\xe7\x00\x03\x00\xcbG\x17w7\x7fn75"N\xb1-\xe3\x95\x19@r\
\xc3\x98\xe5\x98scl\xc6\x00\x80a\xf0\xd3\xf1\xe0\xbe\xae7)\x11\x10|R\r"\xce\
\x17\x0f\x1e\x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<]~\xa6)%M\xaa:\xfeNu\x7f\xdf_\x11A\x15\
\xc6D\x87\x91TH\x87\x83\xca\xff|\xfd\x1b\xe5N\x0e\x95,-\xdfO\x00\x00\x00\x00\
IEND\xaeB`\x82'
def get003Bitmap():
return BitmapFromImage(get003Image())
def get003Image():
stream = cStringIO.StringIO(get003Data())
return ImageFromStream(stream)
index.append('003')
catalog['003'] = ImageClass()
catalog['003'].getData = get003Data
catalog['003'].getImage = get003Image
catalog['003'].getBitmap = get003Bitmap
#----------------------------------------------------------------------
def get004Data():
return \
'\x89PNG\r\n\x1a\n\x00\x00\x00\rIHDR\x00\x00\x00"\x00\x00\x00"\x08\x02\x00\
\x00\x00\xb5%\x9c\x95\x00\x00\x00\x03sBIT\x08\x08\x08\xdb\xe1O\xe0\x00\x00\
\x075IDATH\x89\xbdW\xc9\x8e\xdbV\x16\xbd\xe3#%\xd5\x14\xbbl\xd8\xd5. \xae$\
\x08\x02\x18\x0e\x02g\x99\xce/\xf7\x0f\xf4\xaa\xf7\xde%\x082\x00\x81\x91\xd8\
\xe9\xaa\x92\xa8\x89\xc3#\xdfp{A\xaa\xaa\x82\xce\xb6\xfb\x01"!\x81\xe4\xe1\
\xb9\xf7\x9c\xf3\xae\x00\xfe/\x0b\x01\xe0\xf5\x9b\xbf;W\xa8:\x16ab$FD3\x03\
\xb0\xe9*\x1b\x0f6}1<\xfc\x8a\x7f\xf5\xbc\xe9l\x80\x00ff\xff\xfa\xe7?\x04\
\x00\x9c+\xcar\xee\x8arD\xa2\x11\x06\x0c\xcc,C\xce!\x0c>\x86.\x0e}\x08>\x85!\
\xa5\x943\x00\xb1j\xe1\xca\xf9|q\xaa\xae\x00\x00D<`\xa0\x01 \x82e\xcb\x96\
\x00@\x00@\xd5\xb9\xa2,\xcb\x99\x16\xa5\x88c\xa2\xf1eb\xe8\xc3\xd0\xe4\xd8\
\xcc\x1c\xea|\x81xl\x00)\xc5a\x08\xc3\xd0\xf7\xdew]\xbbYV\xab\xeb\xdf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xfb~h[\xaf.\xc7\x18\x10\x90\x80\x00\x01\xff+\xef\xe1\x90\x91D\
\x84\x84DD"\x04\x08\x00\x84\x84`9\xf6e9S\x15\xb8\x871L)\xc5\x10\x87a\xf0\xbe\
\xeb|\x99r23\x11A\x98\xe2\xe1\x8e\n"<:[\x00 !!"\x0b\x13\xb1\x88\x88\n\x13\
\x03`\x08CS\xef\xaa<\x8c{\xd8X\xee;AC?\xf4C\xef\xdb\xae+\x8b2\xe7,"DD\xc4\
\x80`S\'\xa6\xe3\xe3\xb3\xa3\xb1\x1fD8\xd9EUUE\x14\xc0\xbc\xef+2\xdf\xd4\xa2\
\xc2\xf4\x90\r\x18\x10\xf7\xde\xb7]\xd75M\xeb\x9c\x81\x15E\xc1\xccf\xd9\x0e\
\x84F)\x1f\xda>:\x93\xefCF\x9d\x88\x00@\x08\x89\x88\x80\x10\xc0H$?\x80A\xd5\
\xa2m\x9b\xa6i\xf7u\xed\x9cC\x04"\x1a\t!\xd2\x18\xdc\x7f\x811\xd9\x7fd$"\x9a\
-#a\x06\xcb\xd9RL\x80S\xb5\xa6\x93+\xe7\x9be\xd5\xd4\xbbz>sN\x89IDU\x95\xa7\
\xfda\x14\xd2X\xa8\x11z\xca\x18U\xa7\xce9u\xea\x9c\xb0\x84\x18-\xe7\x14c\x0c\
C\x08\xc1\x80\x1e*\r\xe6\x8b\xd3\xd5\xf5\xef\xdb\xdd\xce\x15\xa5\x8a0\xb3\
\x8a\x8c0,r\x08|b\x1e\xa55\xc62\x8b\x88:W\xb8\xa2(\x0bU5\x83\x94R?\x04\xef}\
\xe7}\xdd\xb4\x06\xfc\'6\xea\x8a\xe3\xb3\xf3\xcd\xea\x83S\x1d_\xd3\xa9\x8a\
\xba\xb1"\x99Y\x04\x88p\xea\xc5(-\xd1)\x93\xcbBU\x898\xc6\xd0\xf7}\xdb\xb4M\
\xd36u=\x84\x0cH\x0f%\x00\x00\xf0\xe8\xfc\xf9\xea\xf6\xc3z]!"3\x8d9\xa8\x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e7\xaa\x8e\x85\x01,\xc5\x14B\xa8\x9bv\x08y\x88`\
@\x88t\x17\x14S\xbd\x1e\xf4f,z6\xcb`f\x96\x01\x10\xcc\x8e\x8e\xcf\xe6\x8bS\
\xef\xebf\xbf\xed\xfb\xc6\xdfV\xab\xd5JUT\x1d\x93\x90\x08\xa0\x18\x90\x01\
\xc3\xf4\xe2x\xd8\x87\xee\xff\x18\xdc\xa7\x80\x99eK9\xe7\x14\x13R\xa2D\x86`9\
Y\xce9\x9bjy\xf2\x91\xb3\xfc8[6\xb3\xe9>\xb3<\x9dG\xdd\x8d11e\xf9\xb4\xd7\
\x8e\xd7\xe6\xbb\x9d\xf7\x7f\xbf\xfe\x03\xb9\x985n\xc8r\x8a\x81\x00\x00\x00\
\x00IEND\xaeB`\x82'
def get004Bitmap():
return BitmapFromImage(get004Image())
def get004Image():
stream = cStringIO.StringIO(get004Data())
return ImageFromStream(stream)
index.append('004')
catalog['004'] = ImageClass()
catalog['004'].getData = get004Data
catalog['004'].getImage = get004Image
catalog['004'].getBitmap = get004Bitmap
#----------------------------------------------------------------------
def get005Data():
return \
'\x89PNG\r\n\x1a\n\x00\x00\x00\rIHDR\x00\x00\x00"\x00\x00\x00"\x08\x02\x00\
\x00\x00\xb5%\x9c\x95\x00\x00\x00\x03sBIT\x08\x08\x08\xdb\xe1O\xe0\x00\x00\
\x07\xa9IDATH\x89\xbdWMs\x1b\xc7\x11\xed\xaf\x99\xc5\x17A\x8a4dY\x94D3\x15\
\xc7v\xca\x91\xed\xb2\xabr\x89\xe3S*\xd7\xfc\xd3\xfc\x81\x9cR\xc9\xc9\xb1s\
\xb0c\xcbJ\xa4\xc8\x92I\x8a$\x08\x82\xd8\xaf\x99\xd9\x99\xe9\x1c\x16 \xe9\
\xaa\x9c=\x85\xc2\x02[\x8by\xd3\xaf_\xbfn\x00\xfc,\x0b\x01\xe0\xf1\'\x9fY[\
\x18cY\x84\x89\x91\x18\x11U\x15@\xd7Oi\xff\xa6\xeb/\x8a\x9b\xbb\xf8\xff\xf6[\
_\x15\x10@U\xf5\xaf\x7f\xf9\xb3\x00\x80\xb5\xc5`0\xb2\xc5\xa0G\xa2\x1e\x06\
\x14T5\x83j\x8c]\x9b\xa2\x8f\x9d\x8f\xc1\xc7\xd4\xa5\xd8\xa5\xa4@\xc2bl1\x1e\
\x8e\xa6\xc6\x16\x00\x80\x88\x1b\x0cT\x00D\xd0\xacY\x13\x00\x08\x00\x18cm1\
\x18\x0c\x86\xa6\x18\x88X&\xea\x0f\x93cH]\x93c;\x1e\xb3\xc8\x14\x11A!\xe5\
\xdcu]\x08\xde\xb5\xae\xae\xcb\xf2\xf2dq~4\x99\xee\xdd\xd9\xbb7\xde\xda\xeeQ\
\x10\x01\x00\x11P5\xe7\x9c\xd70,b\x8c5\xc5\xc0\xda\x811\x96\x99\x010u%B\x98l\
OF\xa3\xbbEQ\x18c\x101\xe7\x1cc\x0c!x\xdf6\x8d\xab\xabr\xb5Z]\xad\x96\x97\
\x8b\xd7\x17\xe7\xc7o\xde?|x\xf0.\x12" "\x82jNq\x13\r\x13\xb3\x88\x885\xc6\
\x1ac\x11\x01s\xbd\xbd%;;\x8f\xa6\xdb\xd3\xc9x2\x1a\r\x99\x19\x00b\x8c1\x06\
\xe7\xbck\xdb\xaa\xae\xcbr\xb5\xbaZ\x8d.\xc7\xd6\x16\x17\xf3\xf9\xf3\xef\xff\
Y\xad\x96\xef\xbc\xff\xf1p4\x01D\x04\x04U\xa4\r\x0c\x12\x131\x1313"\x08\xb4\
\xbbw\xc6\xb3\xd9\xec\xeel\xb6\xf7\xc6\x1b\xdb;\xdb\x85\xb1YS\x08\xc19\xe7\\\
\xdb4M\xd34\xa3\xd1p8\x1c\x0e\x07\xc3bPXk\x989\xa6t\xf4\xf2\xa9k\x9b\xc7\x9f\
~6\x1am!\xa2j\xa6D\x1b\x18\xc4\x1e\x1b\x001\xd7\xbbw\xc6\xfb\xfb\xfb\x0f\x1e\
<888\xb8\xff\xd6=cM\xf0\x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BP\xcd=F\
\x1fDo)Htt\xb6\\,Kb\x02@\x06\xe5,\xccBDL\x80\x10\x83k\xda\xd0\xdc\xe4FAc\xe7\
\x11\xa7\xaa\x90Rj][46x\xf6\xc1\x87\x10bL\x84\xb70p\xed\xa4\xab\xca=y\xf6\
\x1a\x11\x11\xa8\xaf|eef""\x02\xc44\xd9\x9a\xb6\xf3E\xd6[\x12\x88\xc1\x83B\
\xce1\xf8\xe0[\xd7\x18CD9\xa5.\xc6\xdeF7\x8c\xdd\xb8\xf67O\x8frJ\x08\x88\x84\
D\x8cD\x88\xa8Y\t\x89P\tR\x1c\x8d\x99\x16\xaa7\x12\xd0\x98\xba\x98R\x08]\xe8\
|\xeb[iXDTUU\x89\t\xd6\xe7\xbd\xc1\xf8\xee\xd9\xeb\xaai\t\x10\x91\x88\x08\t\
\x85\x18\x89\x80\x81\xa8\x0f\xad\x8b\xc5\xa0\xb0\x06n`\x14S\xecz\xdfm[\xe7\
\x1a\'\xcc\xc6\x18DbfTX[\xc4MS\xc1\xcb\xab\x06\xd7\xee\xd1#11\x133"\x11\'DE\
\xb5\xd1XcM\x06\x00\x00ZK i\x08\xde9\xd76m\xdd\xd4m\xdbz\xe7c\xd7\xf5\t\x04\
\x80\x9e\xe2k\x9b\xff\xedG\x87\xfb\xf7\xf6\xfa`\x90\x88i\xed\x06\xc6\x88\xe9\
/b\xc5\x08\x11\xc3m\xd2\x80\xc4\xb5\xaem]\xd3\xd6\xc3\xba\x10fPPP\x16\xe6\
\xcc\x80\xb8\xc9\xff:\x06\xcb\xf4\xe1\xaf\x1f\xde\x7f\xf3\xce\xd7OO\x00\x80\
\x99\xc5\x88\xb0!\xa2L\t \x81!D$2z\xab<\x91\xc54M\xd5\xd4uUU\xd6\x16\xc4\x0c\
\x08D\x14%\xf6\xe2A \xb8\xa6\x89z\xa6x\xff\xad\xdd\xd9\xde\xceW\xdf\xfe\xe8|\
\',b\x84\x90R\x02\xc8\xac\x84\x9aS\x06\xee)X+\xcd\x16\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x11 \x82BV\xcd\x9aU!\xa5lbdb\x05\xe8\xba\xae\xae\
\x9b\xe5ryvvvz\xfa\xfa\xf9\x8b\xa3e\xe97\xa5v;\x1a\xe8K\x02\x10p8\x9a<\xfe\
\xe4wO\xbf\xfd\xf2\xfc\xecU?\xb0!`\xcf{\x17:\xef\x83s~8\x1c\xf6\'@\xc0\x98R\
\xdb\xb6UU.\x97W\xf3\xf9\xfc\xd5\xd1\xd9\xb2\xf4z\x83\x80z\x9d\x9b\x8d\xedb\
\x7f\x84\xd1h\xeb\xc3O~\xff\xe2?\xdf\x9c\x9f\xfe\xa0\xfa:\xe7\xd4\xc5\xe8\
\xbdo][\xd7\xf5p5\x1c\x0c\x06F,1\xaaj\x08]\x0f\xf3\xfat~U\xba\xc6\xa5\xcd\
\xd0I\x88tMT\xdfop3(^W:\xbd\xfd\xcb\x0fvgo-\xce\x8f\xe6\x17K\xd7\xb6uU\x95\
\xe5t<\x9e\x0c\x87Ck\x0b\x11\x06\xc0\x94b\xd7u\xab\xb2\xae\xdb\xce\xf9\x9c\
\x14\xaf\xdd\xa8\xb7\n\xd8\x98\xfa\xda\xd34\xabj\xee\'s\xd5\x0c\x80\xa0:\x99\
l\x8fFS\xe7\xea\xb6\xba\xaa}S\x9f^0]\x14\xd6\x18k\x88\x98\xc8d\xe0\xac\x982)\
\xf4\xafuw\xbd\xf9cp\xe3\x02\xaa\x9a5\xe5\x9cSLH\x89\x12)\x82\xe6\xa49\xe7\
\xac\xc6\x14\xbc\xf3\x86\xe6\x9c5\xab*\xa8&\x80\xa4\xaaI\xfb\xdf\xc2\xe6\xcc\
\x88\xa0\xdake}OU!+\xfcl\xeb\x7f\x17Vt\xc4\xd0\x13rX\x00\x00\x00\x00IEND\xae\
B`\x82'
def get005Bitmap():
return BitmapFromImage(get005Image())
def get005Image():
stream = cStringIO.StringIO(get005Data())
return ImageFromStream(stream)
index.append('005')
catalog['005'] = ImageClass()
catalog['005'].getData = get005Data
catalog['005'].getImage = get005Image
catalog['005'].getBitmap = get005Bitmap
#----------------------------------------------------------------------
def get006Data():
return \
'\x89PNG\r\n\x1a\n\x00\x00\x00\rIHDR\x00\x00\x00"\x00\x00\x00"\x08\x02\x00\
\x00\x00\xb5%\x9c\x95\x00\x00\x00\x03sBIT\x08\x08\x08\xdb\xe1O\xe0\x00\x00\
\x07\x01IDATH\x89\xbdWI\x8f\x1b\xd7\x11\xaez[\xbfnrH\x8a\x98\x11g\x02k\xb4x\
\x11l\x8c\x15\x18s\xb5~i\xfe@n\xf9\x03\x01\x82$\x07\xe7$_\x0c\x01\x8el\x8d\
\xa0Qf\x11\x9a\xd3\xcdf\xefo\xa9\x1c\x1e\xbb\x87\xcaru\x1dH\xb0\xd9]_W\xd5W_\
\xd5\x03\xf8M\x0c\x01\xe0\xc5\xf9K\xa5")\x15\x17\x823\x8e\x8c#"\x11\x01\xd0\
\xee.\n\x1f\xb4\xfbA8\\\xc5\xff\xe5o\xf7M\x80\x00DD\x7f\xfb\xf3\x9f\x04\x00(\
\x15i\x9d\xa8H\x07$\x16`\x80\x80\x88<\x00Y\xe7:o;g;k;o\xad\xb5\xc6:"`\x8c+\
\xa9\x12=9\x902\x02\x00D\x1c0\x90\x00\x10\x81<yr\x00 \x00@J\xa5"\xadu,#-\x84\
\xe2\x8c\x85\x97\xf1\xde\x80k\x90\xacV\x8a\xf3\x98s\x0e\x00\xd6ZcL\xd7uu]WU\
\xb5-\xae\xf3\xf5Ur\xb0|\xb0\\%\x07\xf3\x80\x82\x08\x00\x88\x80D\xde{\xbf\
\x83\xe1BH\xa9d\xa4\x95\xd2R*\xce9\x00\xa2\xab$\xf7\xb3\xe9b2\x99h\xad\xa5\
\x94\x8c1\xe7\\\xdf\xf7}\xdf\xef0\xb6\xdb\xcdf\x93\xe7y\x96\xdd\xdc\xa5W\x0f\
O\x9e|v\xfa\x1c\x19" "\x02\x91wv\x88\x863\xce\x85\x10BI\xa9\xa4T\x8c\xa1\
\xc4f\xbe\x88\x96\xcb\x93\xc5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\x84D\xe3D\xa3b\xa6o\xcb<\xbb\xbbx\
\x7f[\x94fX:\xe0\x93\xa4\x01 2\xfc\xe2\xeb\xef\x9a\xb6\xf9\xf8\xf1z\x9c\x83\
\x81fD4*\x90s.\xfcu|x`\xfa6\x89!V$\xb0k\xeb2\xcf\xef~\xb9\xf8\xb0\xce\x1b@\
\x04\xc4O\xa3\x81\xb0W\x01\x02\xc6\xc9\xf4\xc5\xf9\xf7o^\xbf\xba\xb9\xb9\x1c\
\xe6 9\xe7\xba\xae\x0b\xabS\x92$q\x1c\x07\x1dz\xb8\xe0\xc5\x96$\xef]\xdf\xd7\
m\xbd\xc9\xb3\x8b\xf7\xb7\xeb\xbc\xf14" \x8d\xb5\xd9\xb1\x010\xbcB\x92\x1c\
\xbc8\x7f\xf9\xee\xd7\x9f\xd6\xb7\x97DWaF\x05\x8d(\x8a"\x8e\xe3P3Dt\xc6\x9a\
\xb6lM\xdf4\xf5\xf5M\x9a\x15uQ\x9aaf0D\xf6\t\x05h\x08e\\\x17\x11\xd9\x93\xcf\
\xcf\x96\x87\'Yzus\x9bVUU\x14\xc5b\xb1\x08\xcb\xdf\xfe\x94l\xdb6\xcb\xcb\xaa\
1em\xad\x0f.v\x1ev\xf9\xda\xab\r\x91\'"O\xe4\x81\xc2~\x8e@4\x9d\xce\x93d\xd6\
uUSm6e[T\xb7\x92\x7f\xd4Z)\xa9\x90qd\xc2yf\x1d\x18\x07~wF\xd8-{\xfb\x07\x83\
\xfbyCD\x9e\x9c\xf7\xdeY\x87\xcc1\xc7\x08\x81\xbc#\xef\xbd\'!\xa2\xc9\xec\
\x90\xbc\xf7\xe4\x89\xc8\x12\x19\x07`w\xbb\xe0\xa0xa\x15\x01"@\x1c\xce+\x04D\
\x04~8\xbd\xfc\x06\xf6o\x99]Z\x89{^\xca\x9a\x00\x00\x00\x00IEND\xaeB`\x82'
def get006Bitmap():
return BitmapFromImage(get006Image())
def get006Image():
stream = cStringIO.StringIO(get006Data())
return ImageFromStream(stream)
index.append('006')
catalog['006'] = ImageClass()
catalog['006'].getData = get006Data
catalog['006'].getImage = get006Image
catalog['006'].getBitmap = get006Bitmap
#----------------------------------------------------------------------
def get007Data():
return \
'\x89PNG\r\n\x1a\n\x00\x00\x00\rIHDR\x00\x00\x00"\x00\x00\x00"\x08\x02\x00\
\x00\x00\xb5%\x9c\x95\x00\x00\x00\x03sBIT\x08\x08\x08\xdb\xe1O\xe0\x00\x00\
\x07\x1fIDATH\x89\xbdW[s\x1bI\x15>\x97\xee\x9e\x8b.V\x9c\xd8\xb2\xb7b\x13\
\xbc)\xb2\x01\xe3\xaa%\xaf\x9b\xdfL\xf1\x06\x05\x0f@\xf1\x08\x9b*\xb2l\x11\
\x92M\x9c8\xd8\xb23\xb2F\xd2\x8cf\xa4\xe9\xee\xc3CKc\x85\x82\xd7\xed\x07\xdd\
j\xd4_\x9f\xf3}\xe7;\xa7\x01~\x94\x85\x00p\xf6\xec\xb91\x91\xd6\x86\x95bb$FD\
\x11\x01\x90\xf5S\x12^d\xfdEp\xf3+\xfe\xaf\xfd\xd6\xef\x02\x08 "\xf2\xe7?\
\xfcZ\x01\x801Q\x1c\xa7&\x8a\x03\x12\x05\x18\x10\x10\x11\x0f \xd6\xb9\xa5\
\xb7Kg\x97\xd6.\xbd\xb5\xd66\xd6\x89\x00\x11\x1bm\xd2\xb8\xd3\xd3:\x02\x00D\
\xdc`\xa0\x00 \x82x\xf1\xe2\x00@\x01\x80\xd6\xc6Dq\x1c\':\x8a\x952L\x14\x0e\
\xe3}\x03\xaeB\xb1\xb11\xcc\t3\x03\x80\xb5\xb6i\x9a\xe5r\xb9X,\xca\xb2\x9c\
\xcf\xae\xf2\xf1e\xda\xdb\xbd\xb7;L{;\x01\x05\x11\x00\x10\x01E\xbc\xf7~\r\
\xc3Jimt\x14\x1b\x13km\x98\x19\x00\xd1\x95\x9a}\xbf;\xe8t:q\x1c\x1bc\x10\xd1\
{\xbfZ\xad\x96\xcbeUUeY\xce\xe7\xf3<\x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e0\xa6\t\t\x84+\x80\x00\xe2\xe6\xbe"\
"\xe07\xb7\x97\x1fa\xfd\x07q\xfe,\x1f\xd7\xef^\xbd\x00\x00\x00\x00IEND\xaeB\
`\x82'
def get007Bitmap():
return BitmapFromImage(get007Image())
def get007Image():
stream = cStringIO.StringIO(get007Data())
return ImageFromStream(stream)
index.append('007')
catalog['007'] = ImageClass()
catalog['007'].getData = get007Data
catalog['007'].getImage = get007Image
catalog['007'].getBitmap = get007Bitmap
#----------------------------------------------------------------------
def get008Data():
return \
'\x89PNG\r\n\x1a\n\x00\x00\x00\rIHDR\x00\x00\x00"\x00\x00\x00"\x08\x02\x00\
\x00\x00\xb5%\x9c\x95\x00\x00\x00\x03sBIT\x08\x08\x08\xdb\xe1O\xe0\x00\x00\
\x07PIDATH\x89\xbdWK\x8f\x1b\xc7\x11\xae\xea\xd7<\xf8Xj\xa5]J\x86\xb4\xd8\
\xac\x05\xd8\x066\x02\x04]\xad?\x90?\x92cN9\xe7w\xe4\x1e\x04\xb9\x04\x0e\xf2\
\x00b\xc4F\x00!\x06\x82D\x91.\x82c\xebe)\x1b\xed\x92\xdc\xa19\x1c\xce\x93\
\xd3]\x95C\x0f\xc9\x8d\x91\\\xdd\x07\xbe0\xac\xaf\xeb\xab\xaf\xbe\xae\x06\
\xf8^\x16\x02\xc0\xbd\x07\x0f\x8d\t\xb46R))$\n\x89\x88\xcc\x0c\xc0\xddS\xec_\
\xb8\xfb\xc2\xb8\xf9\x15\xffW\xbc\xee\x9d\x01\x01\x98\x99\x1f}\xf6\x89\x02\
\x00c\x820\x8cM\x10z$\xe1a\x80\x81\x99\t\x80\xads\r\xd9\xc6\xd9\xc6\xda\x86\
\xac\xb5\xb6\xb5\x8e\x19\x84\x90F\x9b8\xec\r\xb4\x0e\x00\x00\x117\x18\xc8\
\x00\x88\xc0\xc4\xc4\x0e\x00\x14\x00hmL\x10\x86a\xa4\x83P)#\x85\xf0\x9b!j\
\xc1U\xc864F\xcaHJ\t\x00\xd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c\x8a\xdd\
\xb8\x88(\x8e\xdf?\xdd\xbfqk\x91\x9c\'\xf3E]W\xa3\xaa\x1c\x0e\x87\xbd^\xdfE!\
\xd9\xc06R\xa0 vm\xdb\xa6i^Tm^ZK>D\x17\xa1\xe3\x8bw\xa41\x133\x133\x01\xfb\
\xf9\x1c\x81\xb9\xdf\xdf\x8b\xe3a\xd3\x14U\xb1\\\x95u^%Z\xce\xc3\xd0\x18mPH\
\x14\xca\x91\xb0\x0eZ\x07\xd4\xdd\x11\xbaa\xef\xea\xc5`\xe7\x02\xccL\xec\x88\
\xc8Y\x87\xc2\t\'\x18\x81\xc91\x11\x11+\x15\xf4\x867\x98\x88\x98\x98\xd92\
\xb7\x0e\xc0v\xb3\xe0\xe6\x10b\xefv\xcc\x80\xb8\xb9\xaf003\xd0\xe6\xf6\xf2=\
\xac\xff\x00-.\xac\x07\x8f7\x14\x1b\x00\x00\x00\x00IEND\xaeB`\x82'
def get008Bitmap():
return BitmapFromImage(get008Image())
def get008Image():
stream = cStringIO.StringIO(get008Data())
return ImageFromStream(stream)
index.append('008')
catalog['008'] = ImageClass()
catalog['008'].getData = get008Data
catalog['008'].getImage = get008Image
catalog['008'].getBitmap = get008Bitmap
#----------------------------------------------------------------------
def get009Data():
return \
'\x89PNG\r\n\x1a\n\x00\x00\x00\rIHDR\x00\x00\x00"\x00\x00\x00"\x08\x02\x00\
\x00\x00\xb5%\x9c\x95\x00\x00\x00\x03sBIT\x08\x08\x08\xdb\xe1O\xe0\x00\x00\
\x06\xecIDATH\x89\xbd\x97K\x8f\x1b\xc7\x11\xc7\xab\xaa\x1f\xf3\xe0c\xe9\x95v\
)\x19\xd6BX\x1b0\x04\x08\x02\x0c\x1dm\xdd\xf2}\xf3\x05r\xca\x07p.\x86\x81D\
\x90 C6ERC\xcdp8ONwU\x0eM\xce2Aru\x1f\xf8\xc2\xb0\x7fSU\xff\xfaw\r\xc0\x9f\
\xb2\x10\x00^\xbd~cmd\x8cUZ+RH\n\x11E\x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a\xea\x8f\xd5\xf6\xcb\xbe)\xab\xe1\xec\xac\x84\
\xf8\xa0\xafp\xde\xe0yP<\x8d\x8b\x88\xf4\xfc\xdb\x97\xd7\x8f\x9f\xe6\xd9*\
\xdb\xe5]\xd7.\xdaf>\x9fO&S\x9f\xc4\xab?\xfa\xb1\xf8}\xdf\xe7\xc5\xa1j\x86\
\xaaq\x8e\xe1\xd4\xc4\x88\x88t\xca\xd7EmDXDX\x84A\xc2|\x8e 2\x9d^\xa5\xe9\
\xbc\xef\xeb\xb6\xde\x1f\x9a\xaej3\xa3vql\xad\xb1H\nI{&\xe7a\xf0\xc0\xa7g\
\x84\xd3\xb0w\xf9`\xf0\xe0\x02"\xc2\xe2\x99\xd9;\x8f\xe4\xc9\x93 \x08{af\x16\
\xad\xa3\xc9\xfc\xb10\xb3\xb0\x888\x91\xc1\x03\xb8\xd3,x>\x84\x04\xc2#\x80\
\x00\xe2\xd9\xfe\x04D\x04\xf8l\x86\x7f\xc2\xfa7\x1aV\x91\xa0\x86ON\xe3\x00\
\x00\x00\x00IEND\xaeB`\x82'
def get009Bitmap():
return BitmapFromImage(get009Image())
def get009Image():
stream = cStringIO.StringIO(get009Data())
return ImageFromStream(stream)
index.append('009')
catalog['009'] = ImageClass()
catalog['009'].getData = get009Data
catalog['009'].getImage = get009Image
catalog['009'].getBitmap = get009Bitmap
#----------------------------------------------------------------------
def get010Data():
return \
'\x89PNG\r\n\x1a\n\x00\x00\x00\rIHDR\x00\x00\x00"\x00\x00\x00"\x08\x02\x00\
\x00\x00\xb5%\x9c\x95\x00\x00\x00\x03sBIT\x08\x08\x08\xdb\xe1O\xe0\x00\x00\
\x07@IDATH\x89\xbdWIo\x1c\xc7\x15~\xaf\xb6^f\xe1\x88&9\xa2%Q2\xa5\xc0\x16\
\xcc01h\xe5\x12)\x08` \x08\x10\xff\xbf\xfc\x80 \xc7 \xc8-\x87\x1c\x02\x9f\
\x02\x04\xb2\x10\xc0Q\xa0\x08\x12$\xd1\x1a\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\xbb\xfb\xf9F)UUUGe\xb5Z-\x16\x8b$If\xb3\xd9\
\x7f_\x9d_\xa5% \x02b7"\xb60\xd8\x0e<\x18\xc5\xfd\xd3\xb3\xc7/\x9f\x7f{yy\
\xae\x94\x8cB\x85\x00\xfe\xe0eY\x0e\x87C?\xb6\t!\x18c\x1e\xd2\x87\xdd;\xed\
\xf5\xdb\xe9UZ:\xea\x10\xf0Zl\xdal\x00\xf4G\x88\xe3\xc1\xe9\xd9\x937\xaf\xbe\
\xbb\x9a\x9d\x13M|\x8f*\x8ab\xbd^\x0f\x06\x03/Y\x1e\xa6\xfb+\xcb\xb2\xf7\x93\
\xf9\x87e\xb1\xca\xf4\xa6\x051\xc4\xeb\xfc\x12\xe0\x15\x18\xaf\ty\x81\xbfw\
\xffdw\xefp\x91L\xa6\xb3\xc4OO\xa3\xd1\xa8\xdf\xefGQ\xb4\xdd%\xeb\xba^\xa4\
\xeb\xac\xd0Ya\x8c\xf3[\xb4;\xb4\xfe\xda\x8a\r\x91#"G\xe4\x80\xfc|\x8e@\xd4\
\xef\xef\xc4\xf1\xb0\xae\xf32_.\xb3j\x95\xcf$\x9f\x87\xa1RR!\xe3\xc8\x84u\
\xccX\xd0\x16\\{Gh\x87\xbd\xed\x8b\xc1\xb5\n\x10\x91#\xeb\x9c\xb3\xc6"\xb3\
\xcc2B g\xc99\xe7H\x88\xa07\xdc#\xe7\x1c9"2D\xda\x02\x98\xb6\xdf\xb5]\x0f\
\x08\xfc\x15\x80\x00qs_! "p\x9b\xdb\xcb\x8f`\xff\x03R\xab\x9d!\xfeG\xe5\x15\
\x00\x00\x00\x00IEND\xaeB`\x82'
def get010Bitmap():
return BitmapFromImage(get010Image())
def get010Image():
stream = cStringIO.StringIO(get010Data())
return ImageFromStream(stream)
index.append('010')
catalog['010'] = ImageClass()
catalog['010'].getData = get010Data
catalog['010'].getImage = get010Image
catalog['010'].getBitmap = get010Bitmap
#----------------------------------------------------------------------
def get011Data():
return \
'\x89PNG\r\n\x1a\n\x00\x00\x00\rIHDR\x00\x00\x00"\x00\x00\x00"\x08\x02\x00\
\x00\x00\xb5%\x9c\x95\x00\x00\x00\x03sBIT\x08\x08\x08\xdb\xe1O\xe0\x00\x00\
\x07\x19IDATH\x89\xbdW\xd9n[G\x12\xad\xea\xedn\xdcD;\x92\xe5\xd8\x8a<\xde&H`\
\xf0C\x80A\xfc\x90\xf9\xe1\xf9\x81y\x9a\x0fH\x80A\xe0 V\xecH\xb0E\x91\xd4\
\x95x\xc9\xbb\xf4]\xba\xbb\xe6\xa1\xc9+zf\x9eS\x0f"\xc4\xa5OW\x9dS\xa7\xea\
\x02\xfc)\x81\x00\xf0\xea\xf5\x1b\xa5\x02)\x15\x17\x823\x8e\x8c#"\x11\x01\
\xd0\xf6[\xe4\xff\xd0\xf6\x1f\xc2\xdd\xbb\xf8\xff\xce\xdb\xbe\x12 \x00\x11\
\xd1\xbf\xfe\xf9\x0f\x01\x00J\x05a\x18\xab \xf4H\xcc\xc3\x00\x01\x119\x002\
\xd66\xce4\xd64\xc64\xce\x18c:c\x89\x801\xae\xa4\x8a\xc3d(e\x00\x00\x88\xb8\
\xc3@\x02@\x04r\xe4\xc8\x02\x80\x00\x00)\x95\n\xc20\x8cd\x10\n\xa18c\xfe2\
\xceu`5\xb8.TR\x88\x88s\x0e\x00\xc6\x98\xae\xeb\x9a\xa6\xa9\xaa\xaa,\xcb|s\
\x95\xdd\xcc\xe2\xe1\xf4`z\x14\x0f\xc7\x1e\x05\x11\x00\x10\x01\x89\x9csn\x0b\
\xc3\x85\x90R\xc9 T*\x94Rq\xce\x01\x10m\xc9\x99\x1d&\xa30<b\\\x1e\x8c\x07\
\x8c1\xe7\\\xdb\xb6M\xd3h\xad\xcb\xb2\xcc\xf3<\xcb\xb2,\xcbV\xab\xf9m:;<>}t\
\xf2\x12\x19" "\x02\x91\xb3f\x97\rg\x9c\x0b!\x84\x92RI\xa9\x18C\x89z4V\xa3\
\xd1a\x18%\\\x06\xc6\xe1\xd1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x00\x00\x00IEND\xaeB`\x82'
def get011Bitmap():
return BitmapFromImage(get011Image())
def get011Image():
stream = cStringIO.StringIO(get011Data())
return ImageFromStream(stream)
index.append('011')
catalog['011'] = ImageClass()
catalog['011'].getData = get011Data
catalog['011'].getImage = get011Image
catalog['011'].getBitmap = get011Bitmap
#----------------------------------------------------------------------
def get012Data():
return \
'\x89PNG\r\n\x1a\n\x00\x00\x00\rIHDR\x00\x00\x00"\x00\x00\x00"\x08\x02\x00\
\x00\x00\xb5%\x9c\x95\x00\x00\x00\x03sBIT\x08\x08\x08\xdb\xe1O\xe0\x00\x00\
\x07\x11IDATH\x89\xbd\x97\xc9r\x1bG\x12\x863k\xeb\xea\xc6JP&%Jr(F\xb2h\xc5\
\xc8\x8cp\xe80\x17\xeb\x99\xe7\x05\xe64\x0f`_<\x8e\xb08ZhI \x006\x85F\xefKU\
\xe5\x1c\n\xdd\x84\x1csv\x1e\x80\x00\xd0\xa8/\xf3\xcf\xa5\xaa\x00\xfe\x12C\
\x00\xb8x\xf5Z\xa9@J\xc5\x85\xe0\x8c#\xe3\x88HD\x00\xb4\x7f\x8a\xfc\x0b\xed?\
\x10\xf6\xdf\xe2\xff[o\xffN\x80\x00DD\xff\xfe\xd7?\x05\x00(\x15h\x1d\xa9@{\
\x12\xf3\x18 "\x07@\xc6\xda\xc6\x99\xc6\x9a\xc6\x98\xc6\x19cLg,\x110\xc6\
\x95T\x91\x1eM\xa4\x0c\x00\x00\x11{\x06\x12\x00"\x90#G\x16\x00\x04\x00H\xa9T\
\xa0\xb5\x0ee\xa0\x85P\x9c1\xef\x8cs\x1d\xd8\n\\\x17H\xc9x\xc0\x90\x11\x801\
\xa6\xeb\xba\xa6i\xea\xaa*\xcb\xb2H\xaf\x93\xdbe4Y\x1c-N\xa3\xc9\xccS\x10\
\x01\x00\x11\x90\xc89\xe7\xf6\x18.\x84\x94J\x06Z)-\xa5\xe2\x9c\x03 \xda\x823\
;\x19M\xb5>e\\\x020\xeb\\\xdbvm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17\x83\xbb)@D\x8e\xacs\xce\x1a\x8b\xcc2\xcb\x08\x81\x9c%\xe7\
\x9c#!\x82\xd1\xf4\x1e9\xe7\xc8\x11\x91!\xea,\x80!\xff\x7f\xff\xea}F\xf4g\
\x92\xfe\xbeB@D\xe0\xfa\xdb\xcb_`\xff\x03Y\x15v\xb6\xe3G\x12\xcf\x00\x00\x00\
\x00IEND\xaeB`\x82'
def get012Bitmap():
return BitmapFromImage(get012Image())
def get012Image():
stream = cStringIO.StringIO(get012Data())
return ImageFromStream(stream)
index.append('012')
catalog['012'] = ImageClass()
catalog['012'].getData = get012Data
catalog['012'].getImage = get012Image
catalog['012'].getBitmap = get012Bitmap
#----------------------------------------------------------------------
def get013Data():
return \
'\x89PNG\r\n\x1a\n\x00\x00\x00\rIHDR\x00\x00\x00"\x00\x00\x00"\x08\x02\x00\
\x00\x00\xb5%\x9c\x95\x00\x00\x00\x03sBIT\x08\x08\x08\xdb\xe1O\xe0\x00\x00\
\x07aIDATH\x89\xbd\x97Ko\x1c\xc7\x11\xc7\xab\xaa\x1f\xd33\xfb\xe0\x8a"\xb9\
\x96l1\x82\xa4XQ\xc0(v\x18\x180"\x05\x01\x8c\x00\x0e\xe0S\xf2\xe9\xf2\x05r\
\xc8%\x97\x1c\x03\x18\x08\x907b#\x80a\xc0\x16,\xdb\x91MqWC\xed\xec\xbc\x1f\
\xdd]9\xf4\xee\x926rv\x1f\x86\xe0no\xfd\xaa\xfeU]]\x03\xf0\x9d,\x04\x80\x87\
\xa7\x8f\xb5\x8e\x94\xd2BJA\x02I "3\x03\xf0f\x17\x87\x07o\xfea\xdc~\x8a\xff\
\xcf\xde\xe6/\x03\x0203\xff\xf9O\x7f\x90\x00\xa0udL\xa2#\x13H\x140\xc0\xc0\
\xcc\x1e\x80\xads\x9d\xb7\x9d\xb3\x9d\xb5\x9d\xb7\xd6\xda\xc1:f \x12Z\xe9\
\xc4\x8c&JE\x00\x80\x88[\x062\x00"\xb0g\xcf\x0e\x00$\x00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1C\xadLd^\xbcx\xf6\xc5g\x1f\xdd\xbe{\x02\xcc\
\xec\xb7\xa2\x0100{?(\xe1\xaf_\xbf9\x9f\xcf\xef\xdc\xb9sxx\x88\x88\xb7_\x89\
\x87\xae\xbb\xb8H\xcb\xa2h\xdbf\x18z\xef\x1c"\x92\x90\x12\xc9\x93\x00$D\xe1\
\xac\x00/\x88T\x14E&2Z\xab\x8b\xc5\xb3\xfd\x83\x1b\xe3\xf1\x1e\xef*\r\x00\
\xd8\x03\xb8f:\x9e\xcdf\xb3\xa3\xa3\xa3\xf9|\x1e\xa2t\xce\xbdu2\xff\xc7?\xff\
\xd5\xb6\x8d\x1d\x06\xcf\xcc\x80\x80$\x04\x11z\x8f\x84HD\x92\x88\x9c\x93\xc0\
\xc3\xfe\xf5d\x1c\xf3r\xa1\x99\xcfV\xe9Y\x92L\xbd\xe7K\x0c\xb0E\xb6\xa3\xd1h\
:\x9d\xcef3"\xf2\xde;\xe7\xd24\x95d\x7f\xfa\xa3\xe3\xf7\xff\xfa\x11\x000\x87\
C\x81\x00\x0c$\x08\x11\x90\x88\x1c\x91\xd0\x84o\xfc\xe0\xe6\xabG\xc9\x8b\x17\
/\x10\xc09w\xbeH\xbb\xae\x922\xdab\x18\x9c\xeb\x8c\xd6\xc6\x98$I\x94R\xc30\
\x0c\xc3\xb0^\xafW\xabUY\x96o\xfc\xf0\xd6\xe7\xcf\xd2\xa7\xff}\x0e\x00\x80\
\x84\x01\x07\x8c(\x10\x99\x89\x0e\x0e\xae\xff\xf2\xd1\xfd\xd9\xc4\x14E\x81\
\x88\xce\xb9\xbe\xef\xab\xaaj\xaa\xf5hzp\x19\x8d\xb7\x9d\x10\xb1\xd6ZJi\xad\
\xad\xaaj\x18\x86<\xcf\xeb\xba\xf6\xde#\xe2\xaf~q\xf2\xdb\xdf\xad\xac\xed6\
\xe7\x1c\x00\x10\x19\x18\x11OO\xee>~\xeb\xfbZ\tk\xad\x10\x82\x99\xbb\xae\xab\
\xeb:\xcf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\
\xe7\x1d\x01y\x97\x9bM5\x00\x06\x17\x92d\xf2\xf0\xf4\xf1\x17\x9f}t\xb1x\xc6|\
\x16\xee\xa8\xba\xae\x8b\xa2\x98L&q\x1c\xef0\xbb\xaf\xca\xb2\xfc\xfal\xf9r]\
\xe7\xe5\xb0\x1d:\t\xf1\xb2\x1f\x86\xfb\x06\xb7\x83\xe2f\\D\xa4\xdbwO\xf6\
\x0fn\xac\xd2\xb3\xf3EZUU\x9e\xe7\xb3\xd9l<\x1e\xc7q\x1cEQ8\xb0!\xcaUV\x94\
\xf5P\xd6\xd6\xfa`bca\xa3\xd7\x95\xdc0{f\xf6\xcc\x1e8\xcc\xe7\x08\xcc\xe3\
\xf1^\x92L\xbb\xaej\xaa\xf5\xbal\xf3j\xa1\xc4\xd2\x18\xad\x95F\x12H\xd2y\xb2\
\x0e\x06\x07~\xf3\x8e\xb0\x19\xf6\xae\xbe\x18\\v\x01f\xf6\xec\xbc\xf7\xce:$G\
\x8e\x18\x81\xbdc\xef\xbdg)\xa3\xd1\xf4\x80\xbd\xf7\xec\x99\xd92\x0f\x0e\xc0\
r\xf8}x\x06\x9fq7$\xc0\xe63f\x06\xbf}{\xf9\x0e\xd6\xff\x00\xe9\xdc\x91 \xc3\
\x93\x95\xba\x00\x00\x00\x00IEND\xaeB`\x82'
def get013Bitmap():
return BitmapFromImage(get013Image())
def get013Image():
stream = cStringIO.StringIO(get013Data())
return ImageFromStream(stream)
index.append('013')
catalog['013'] = ImageClass()
catalog['013'].getData = get013Data
catalog['013'].getImage = get013Image
catalog['013'].getBitmap = get013Bitmap
#----------------------------------------------------------------------
def get014Data():
return \
'\x89PNG\r\n\x1a\n\x00\x00\x00\rIHDR\x00\x00\x00"\x00\x00\x00"\x08\x02\x00\
\x00\x00\xb5%\x9c\x95\x00\x00\x00\x03sBIT\x08\x08\x08\xdb\xe1O\xe0\x00\x00\
\x06\xe9IDATH\x89\xbdW]\x8f\xdbV\x0e%y\xbf$\xd9\xe3q&\x99qR\xb4\x83`\xda"(\
\x10\x04(\xd2\xa7E\xf2\x9b\xf7\x0f\xec\xd3\xfe\x80\xf6\xa5(\xd0\x06\t\x12L;\
\xb1]9\x96e}Z\xf7^\xee\x03m\x8f\xd3\xee\xeb.\x1fd\xd8\x96x.y\xc8C\n\xe0\xffb\
\x08\x00/^\xbe\xb6\xd6\x19c\x95\xd6\x8a\x14\x92BDf\x06\xe0\xfd],\x17\xde\x7f\
a<\xfc\x8a\xff\xcd\xdf\xfe\x93\x01\x01\x98\x99\xff\xfd\xaf\x7fj\x00\xb0\xd6%\
If]"H$0\xc0\xc0\xcc\x11\x80}\x08}\xf4}\xf0\xbd\xf7}\xf4\xde\xfb\xc1\x07f R\
\xd6\xd8,\x19\x9d\x19\xe3\x00\x00\x11\x0f\x18\xc8\x00\x88\xc0\x91#\x07\x00\
\xd0\x00`\x8c\xb5.I\x92\xd4\xb8Dk\xab\x88\xe401\x0e\x10Zd\x9fX\xabT\xaa\x94\
\x02\x00\xef}\xd3v}\xdfwm\xdb4MU~,Vw\xd9\xd9\xc5\x83\x8bYvv.(\x88\x00\x80\
\x08\xc8\x1cc\x8c{\x18\xa5\xb51\xd6\xb8\xc4\xda\xc4\x18\xab\x94\x02@\x0c\xb5\
Qq2\x9e\x8eF\xa3$I\xac\xb5\x88\x18c\xdc\xedv\xefo\x17\xbb]\x9f\xa4m\x9a\xb5I\
\x9aU\xdbrS\xcc?\xe5wWO\x9e~y\xfd\x0c\t\x11\x10\x10\x11\x819\x06\x7f\x88F\
\x91RZkm\x8d\xb1\xc6X"4\xd8\x9eO\xdd\xc3\x87_L\xa7\xd3\xc9d\x92e\x99\xd6:\
\xc6\xe8\xbd\xef\xba\xee\xb7\x0f\x1b\xcf\xc8\x84d(\x1d)RZi]\xac\xd7\xef~\xfd\
\xa9\xda\x14\xdf|\xf7}\x9a\x8d\x01\x11\x01\x81\x19\xe9\x00\x83\xa4\x88\x94"R\
J\x11a\xa2\xfb\xc7\x8f&\x8f\x1f?\x9e\xcdfWWW\xd3\xe9\xd4\x18#\x00m\xdbVU\xd5\
\xec`\x180\xec0\x04\xe2\xa0\x81\x12\x97\xc4\xc99\x87\x10\xee~\x7f\xd3v\xed\
\x8b\x97\xaf\xb2\xec\x0c\x11\x99#\x05:\xc0 \n6\x00\x1al\x9f\\\x9e\x7f\xf5\
\xd5W\xd7\xd7\xd7777\xb3\xd9\x8c\x88\x86a\xa8\xeb\xba,\xcb\x10B\x96e!R\x08\
\xe8#\x0e\x01\xd9\x13G\x05\xe8\\\x02\x0f.\x10\tW\xf9\xc77\xbf\xfc\xf8\xe2\
\xe5kD\x02@\xa9J\rRt\xc0\xc0\x80\xa1>\x9f\xba\xd9lv}}\xfd\xfc\xf9\xf3\xcb\
\xcbK\x00\x881\x0e\x07\x8b1\x86\x10\x98\x19\x10\x81\x94R\xd63F\x06F \x85IF\
\x97\xd6$.\xf9\xf3\xcf\xdb\xf7o\x7f~\xfa\xf5s`\xe6xH\x1a\x00\x03s\x8c\x83Q\
\xf1\xe1\xc3/f\xb3\xd9\xcd\xcd\xcd\xe5\xe5\xa5tO\x08a\xb3\xd9\x94e\xd94M\xd7\
u!\x04D$\xa55R$\x05H\x88*x\x05Q\x11\x19\xe7\x9c\xb3Nk\xbdZ\xdc^<z2\x1e\x9f\
\xf3\xb1\xd2\x00\x80#@h\'\xe3\xe9t:\xbd\xba\xba\x9a\xcdf\x12e\x08!\xcf\xf3\
\xf5z\xdd4\xcdn\xb7CD\xa5\x14 )E\x841"!\x12\x91&\xa2\x104\xf0\xa0,;g\x95"\
\x80\xe5:\xbf\xcb\xb2I\x8c|\x0f\x03\xec\x91\xfdh4\x9aL&\xd3\xe9\x94\x88$?y\
\x9e\xafV\xab\xaa\xaab\x8cD\xc4\xccD\x84H\x00\x0c\xa4\x08\x11\x90\x88\x02\
\x91\xa20p4L\xc1X\xe7\xacF\xe0|\xb5\xee\xfbZkw\x80a\x08\xa1O\xacM\x92$\xcb2c\
\x8c0\xb1\xd9l\xd6\xebuUU\xcc|h9$"Dd@\x04FT\x88\xccDH\nI1{\x84\x80\nRk\x15A\
\xd7\xb5m\xbd\x19M\x1e\xddG\x13}\xafTj\xad\xd5Z{\xef\xeb\xba\x1e\x86A\xf8\
\x881\x1e1\x8e\xca%\xdf\x19\x18\x11\t\x90\x14+\xa5c\xd4\xcc\x1e\x15+\x03c\
\x03\xd3\xb6\xd96\xdd=7\x0c\x1c|\xaf\x94\x92>\xef\xba\xae,\xcba\x18\x84\x0f"\
:\x11\x10d\x16I\x04\x90^\x07\x04$\x02`\x02d\x05\xacA\x05\xa515j2\x99Tm\x1e\
\xf9\xa4\x04\xbc\xef\xa5v\xbd\xf7m\xdb\x86\x10\x04O\xfc~\x86qTGi4$\x14\xb6\
\x10\x14\x03sP\xa4\xc8\x90K\xcch<6\xf9J\x1e\xd9\x17t\xf4\xde{\xbf\xdb\xed\
\xba\xae\xab\xaa*\xcb\xb2\x10B\x08A)ED\x12\xd0=\xc6\xbd\xec#\x12\xed\t#\x05\
\x00\xc0ZQ\xd4\x1a\xad\xe5\x90$Ib\xfd=\x0c\xa3\xf7\xc30\x0c}\xdf\xb7m\xdb\
\xb6\xad8\x15\x8c\xbf{\xfe\xc7\x0f\xcf\x00\xf6\xb5\xa0\xb4\x16A\xd4Z#\x12p\
\xf4~\x17vu\xdf\x14y\xec\xac\xb1C8\xa8\x00\x00\xf8\xc0\x82Q\xd7u\x9a\xa6!\
\x04\xad\xb5sNk-\xc9<e\xe8\xd5\x0f\xdfJ\x88J)c\x8c=\x98R*\x84P\xd7\xf5|>\xff\
\xf0!\x96E\x8e\xa4\xc0\x9f$\x8d\x81\x9a\xa6\xa9\xebz\xbb\xdd&I\xc2\xcc\x82!\
\x00Gn\x8e&\x18Zk\xb9\n\x8c\xd6:\x84\xd0u\x9d\x1c\x02\x11\x91\xf4)7H\xca\n\
\xc6f\xb3q\xce\t\xed\xc6\x18\xad\xf5\x91\x9b#\x80h\x81`\x18c\x8e\x01i\xad\
\xfb\xbe\x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\xfb0_\x15m\xe4#\x02\xf2\x91\x9b}5\xecu\x1d\
\xb3\xec\xec\xc5\xcb\xd7\xef\xdf\xfe\xbcZ\xdc2\xdf\x85\x10v\xbb]\xd34\xdb\
\xed\xf6\xec\xec,M\xd3#\xcc\xf1\xaf\xaa\xaa\xfe\xb8[~\xda4e5\x1cf\x86\x0c\
\xd9\x93\x12\xe0C(\xc7u\x11\x91\x9e~\xfd\xfc\xe2\xd1\x93u~7_\xe4\xb2=M\xa7\
\xd3\xf1x\x9c\xa6\xa9sN\x1aV\xa2\\\x17\xdb\xaa\x19\xaa\xc6\xfb(.\xf6\x1e\xf6\
\xf9:\xe1\x8692sd\x8e\xc0\xb2\x9f#0\x8f\xc7\xe7Y6\xe9\xfb\xba\xad7\x9b\xaa+\
\xeb\x85Q\xcb$\xb1\xd6X$\x85\xa4C$\x1f`\x08\x10\xf7\xef\x08\xfb\x19t\xfabp\
\xaf\x02\xcc\x1c9\xc4\x18\x83\x0fH\x81\x021\x02\xc7\xc01\xc6\xc8Z\xbb\xd1\
\xe4\x11\xc7\x1892\xb3g\x1e\x02\x80gy\xfe0\x84\x18\xe4\x15@\x96\x04\xd8\xff\
\xc6\xcc\x10\xff6\xa5\xfew\xf6\x1fo\xebo\xf2\xff\x82\xa3\x96\x00\x00\x00\x00\
IEND\xaeB`\x82'
def get014Bitmap():
return BitmapFromImage(get014Image())
def get014Image():
stream = cStringIO.StringIO(get014Data())
return ImageFromStream(stream)
index.append('014')
catalog['014'] = ImageClass()
catalog['014'].getData = get014Data
catalog['014'].getImage = get014Image
catalog['014'].getBitmap = get014Bitmap
#----------------------------------------------------------------------
def get015Data():
return \
'\x89PNG\r\n\x1a\n\x00\x00\x00\rIHDR\x00\x00\x00"\x00\x00\x00"\x08\x02\x00\
\x00\x00\xb5%\x9c\x95\x00\x00\x00\x03sBIT\x08\x08\x08\xdb\xe1O\xe0\x00\x00\
\x07MIDATH\x89\xbd\x97K\x8f\x1b\xc7\x11\xc7\xab\xaa_3\xc3\xc7\xd2\xd2\xeeRr\
\xa4\x8d\xb0Vb\x0b^\x08Q\x0489X>\xf9\x16$\xb9\xe4\x94\xef\x96\x0f\x10\xf8\
\x90S\x82 \x88\x81\xc0\x81\x91\x9bt\x11$[\x1b\xc9\x8f\x95\xb9\xbb\xdc\xa18$\
\xe7\xc1\xe1tw\xe5\xd0\xc3\xd9\xb5\x91\xb3\xfb@.\x87\xcb\xfau=\xfa_\xd5\x00?\
\xcaB\x00\xb8\xff\xf0\x91\xd6F)-\xa4\x14$\x90\x04"23\x00\xb7\xff\xc5\xe1\x85\
\xdb\x0f\x8c\xdb\xa7\xf8\xff\xec\xb5\xef\x0c\x08\xc0\xcc\xfc\xd9?\xff"\x01@k\
\x13E\x896Q Q\xc0\x00\x033{\x00\xb6\xce\xd5\xde\xd6\xce\xd6\xd6\xd6\xdeZk\
\x1b\xeb\x98\x81Hh\xa5\x93\xa87P\xca\x00\x00"n\x19\xc8\x00\x88\xc0\x9e=;\x00\
\x90\x00\xa0\x94\xd6&\x8a\xa2X\x99HJ-\x88\xc2f\xbco\xc0U\xc86\xd2Z\x88X\x08\
\x01\x00\xd6\xda\xa6i\xea\xba.\xcb\xb2(\x8a\xd5\xf24\x9bM\x92\xc1\xb5\xb7\
\xae\x8d\x93\xc1N\xa0 \x02\x00" \xb3\xf7\xde\xb7\x18!\xa5RZ\x99H\xebH)-\x84\
\x00@t\x85\x12~\xd8\x1f\xf5z\xbd(\x8a\xb4\xd6\x88\xe8\xbd\xdfl6u]WUU\x14\xc5\
j\xb5\xca\xb2,\xcb\xb2\xf9\xfc\xecM:\xd9\xbfy\xe7\xd6\xc1\xbbH\x88\x80\x80\
\x88\x08\xcc\xde\xd9\xad7\x82\x84\x90RJ\xad\x94VJ\x13\xa1\xc2jgd\xae_\x7f{4\
\x1a\r\x87\xc3$I\xa4\x94\xde{k\xedz\xbd\xee\x18\x8b\xc5\xa2\xd7\xeb\xc5q\xac\
\xb5N\xd3\xf4\xd5\x97O\xf2Ev\xf7\xde\x838\xe9\x03"\x02\x023\xd2\x16\x83$\x88\
\x84 \x12B\x10a$\xeb\x1b\xbb\xc3\x1b7n\x8c\xc7\xe3\xfd\xfd\xfd\xd1h\xa4\x94\
\xea\x00y\x9eWU\x15\xc7q\x14E\xc6\x18\xad\xb5\x94R\x08\xe1=7\x8d\x9d\xbc>\
\xae\xd6\xd5\xfd\x87\x1f&\xc9\x00\x11\x99=9\xdab\x10\x03\x1b\x00\x15V7\xf7vn\
\xdf\xbe}pppxx8\x1e\x8f\x89\xa8i\x9a\xa2(\x96\xcb\xa5s.I\x12\x00\xf0\xde333\
\x03\x00\x111\xc04]\xbdum\x17\tg\xe9\xe9\xf1\xb3\xc7\xf7\x1f>B$\x00\x0cU)!\
\x14\x1d00\xa0+vFf<\x1e\x1f\x1c\x1c\x1c\x1d\x1d\xed\xed\xed\x05\x8b\xcdvy\
\xef\x9ds\xcc,\x840\xc6 \xa2\x94R)\xf5\xe4\xd9kO&JpO\xab\xc8D\x17\x17\'_\xbf\
|z\xe7\x9d#`f\xbf\r\x1a\x00\x03\xb3\xf7\x8d\x12\xfe\xfa\xf5\xb7\xc7\xe3\xf1\
\xe1\xe1\xe1\xde\xde^8=\xce\xb9\xc5b\xb1\\.\xcb\xb2\\\xaf\xd7\xce\xb9\xc0\
\x08\x00\xa5\xd4\xd3\x17\xa7\xcb\xc2\x01ED\xca\x18c\xb4\x91R\xce\xceO\xae\
\xed\xde\xec\xf7w\xb8\xab4\x00`\x0f\xe0\xaaa\x7f4\x1a\x8d\xf6\xf7\xf7\xc7\
\xe3q\xf0\xd29\x97\xa6\xe9|>/\xcbr\xb3\xd9 \xa2\x10\x82\x88BEH)\xb3\xd5\xfa\
\xd9\x7f\xcf\x95\x8e\x9c\x93\xc0\x8d\xd0l\x8c\x16\x82\x00\xa6\xf3t\x92$C\xef\
\xf9\x12\x03l\x91m\xaf\xd7\x1b\x0e\x87\xa3\xd1\x88\x88B|\xd24\x9d\xcdfy\x9e{\
\xef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c\x05\x00\x00\x00\x00IEND\
\xaeB`\x82'
def get015Bitmap():
return BitmapFromImage(get015Image())
def get015Image():
stream = cStringIO.StringIO(get015Data())
return ImageFromStream(stream)
index.append('015')
catalog['015'] = ImageClass()
catalog['015'].getData = get015Data
catalog['015'].getImage = get015Image
catalog['015'].getBitmap = get015Bitmap
#----------------------------------------------------------------------
def get016Data():
return \
'\x89PNG\r\n\x1a\n\x00\x00\x00\rIHDR\x00\x00\x00"\x00\x00\x00"\x08\x02\x00\
\x00\x00\xb5%\x9c\x95\x00\x00\x00\x03sBIT\x08\x08\x08\xdb\xe1O\xe0\x00\x00\
\x07\x01IDATH\x89\xbdWI\x8f\x1b\xd7\x11\xaez[\xbfnrH\x8a\x98\x11g\x02k\xb4x\
\x11l\x8c\x15\x18s\xb5~i\xfe@n\xf9\x03\x01\x82$\x07\xe7$_\x0c\x01\x8el\x8d\
\xa0Qf\x11\x9a\xd3\xcdf\xefo\xa9\x1c\x1e\xbb\x87\xcaru\x1dH\xb0\xd9]_W\xd5W_\
\xd5\x03\xf8M\x0c\x01\xe0\xc5\xf9K\xa5")\x15\x17\x823\x8e\x8c#"\x11\x01\xd0\
\xee.\n\x1f\xb4\xfbA8\\\xc5\xff\xe5o\xf7M\x80\x00DD\x7f\xfb\xf3\x9f\x04\x00(\
\x15i\x9d\xa8H\x07$\x16`\x80\x80\x88<\x00Y\xe7:o;g;k;o\xad\xb5\xc6:"`\x8c+\
\xa9\x12=9\x902\x02\x00D\x1c0\x90\x00\x10\x81<yr\x00 \x00@J\xa5"\xadu,#-\x84\
\xe2\x8c\x85\x97\xf1\xde\x80k\x90\xacV\x8a\xf3\x98s\x0e\x00\xd6ZcL\xd7uu]WU\
\xb5-\xae\xf3\xf5Ur\xb0|\xb0\\%\x07\xf3\x80\x82\x08\x00\x88\x80D\xde{\xbf\
\x83\xe1BH\xa9d\xa4\x95\xd2R*\xce9\x00\xa2\xab$\xf7\xb3\xe9b2\x99h\xad\xa5\
\x94\x8c1\xe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xa\x15\x01"@\x1c\xce+\x04D\
\x04~8\xbd\xfc\x06\xf6o\x99]Z\x89{^\xca\x9a\x00\x00\x00\x00IEND\xaeB`\x82'
def get016Bitmap():
return BitmapFromImage(get016Image())
def get016Image():
stream = cStringIO.StringIO(get016Data())
return ImageFromStream(stream)
index.append('016')
catalog['016'] = ImageClass()
catalog['016'].getData = get016Data
catalog['016'].getImage = get016Image
catalog['016'].getBitmap = get016Bitmap
#----------------------------------------------------------------------
def get017Data():
return \
'\x89PNG\r\n\x1a\n\x00\x00\x00\rIHDR\x00\x00\x00"\x00\x00\x00"\x08\x02\x00\
\x00\x00\xb5%\x9c\x95\x00\x00\x00\x03sBIT\x08\x08\x08\xdb\xe1O\xe0\x00\x00\
\x07\x1fIDATH\x89\xbdW[s\x1bI\x15>\x97\xee\x9e\x8b.V\x9c\xd8\xb2\xb7b\x13\
\xbc)\xb2\x01\xe3\xaa%\xaf\x9b\xdfL\xf1\x06\x05\x0f@\xf1\x08\x9b*\xb2l\x11\
\x92M\x9c8\xd8\xb23\xb2F\xd2\x8cf\xa4\xe9\xee\xc3CKc\x85\x82\xd7\xed\x07\xdd\
j\xd4_\x9f\xf3}\xe7;\xa7\x01~\x94\x85\x00p\xf6\xec\xb91\x91\xd6\x86\x95bb$FD\
\x11\x01\x90\xf5S\x12^d\xfdEp\xf3+\xfe\xaf\xfd\xd6\xef\x02\x08 "\xf2\xe7?\
\xfcZ\x01\x801Q\x1c\xa7&\x8a\x03\x12\x05\x18\x10\x10\x11\x0f \xd6\xb9\xa5\
\xb7Kg\x97\xd6.\xbd\xb5\xd66\xd6\x89\x00\x11\x1bm\xd2\xb8\xd3\xd3:\x02\x00D\
\xdc`\xa0\x00 \x82x\xf1\xe2\x00@\x01\x80\xd6\xc6Dq\x1c\':\x8a\x952L\x14\x0e\
\xe3}\x03\xaeB\xb1\xb11\xcc\t3\x03\x80\xb5\xb6i\x9a\xe5r\xb9X,\xca\xb2\x9c\
\xcf\xae\xf2\xf1e\xda\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1c\x1b\xa3\r\x12#)\xe7\xc9:h\x1c\xf8\xf5\x1da\
=\xecm_\x0c\xee\\@D\xbc8\xef\xbd\xb3\x0e\xc9\x91#A\x10\xef\xc4{\xefE\xa9\xa8\
\xd3\x7f \xde{\xf1"bE\x1a\x07`\xd7\xb3\xe0\xa6\t\t\x84+\x80\x00\xe2\xe6\xbe"\
"\xe07\xb7\x97\x1fa\xfd\x07q\xfe,\x1f\xd7\xef^\xbd\x00\x00\x00\x00IEND\xaeB\
`\x82'
def get017Bitmap():
return BitmapFromImage(get017Image())
def get017Image():
stream = cStringIO.StringIO(get017Data())
return ImageFromStream(stream)
index.append('017')
catalog['017'] = ImageClass()
catalog['017'].getData = get017Data
catalog['017'].getImage = get017Image
catalog['017'].getBitmap = get017Bitmap
#----------------------------------------------------------------------
def get018Data():
return \
'\x89PNG\r\n\x1a\n\x00\x00\x00\rIHDR\x00\x00\x00"\x00\x00\x00"\x08\x02\x00\
\x00\x00\xb5%\x9c\x95\x00\x00\x00\x03sBIT\x08\x08\x08\xdb\xe1O\xe0\x00\x00\
\x07PIDATH\x89\xbdWK\x8f\x1b\xc7\x11\xae\xea\xd7<\xf8Xj\xa5]J\x86\xb4\xd8\
\xac\x05\xd8\x066\x02\x04]\xad?\x90?\x92cN9\xe7w\xe4\x1e\x04\xb9\x04\x0e\xf2\
\x00b\xc4F\x00!\x06\x82D\x91.\x82c\xebe)\x1b\xed\x92\xdc\xa19\x1c\xce\x93\
\xd3]\x95C\x0f\xc9\x8d\x91\\\xdd\x07\xbe0\xac\xaf\xeb\xab\xaf\xbe\xae\x06\
\xf8^\x16\x02\xc0\xbd\x07\x0f\x8d\t\xb46R))$\n\x89\x88\xcc\x0c\xc0\xddS\xec_\
\xb8\xfb\xc2\xb8\xf9\x15\xffW\xbc\xee\x9d\x01\x01\x98\x99\x1f}\xf6\x89\x02\
\x00c\x820\x8cM\x10z$\xe1a\x80\x81\x99\t\x80\xads\r\xd9\xc6\xd9\xc6\xda\x86\
\xac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\xb8\xf7\xe0\xe1\x9bW\xcf\
\xe6\xd33\x80\x19\x02\x0b\xe4\xfe\x00"-\x83P\x1b\xc3\xdap`Hk\xa7$\xbbu\x95\
\x97m]\x95\x17\x93d\x91\x95Y\xden\x9cU \xee\xf4\xe5\xcf\x1b\xdc\x0c\x8a\xdd\
\xb8\x88(\x8e\xdf?\xdd\xbfqk\x91\x9c\'\xf3E]W\xa3\xaa\x1c\x0e\x87\xbd^\xdfE!\
\xd9\xc06R\xa0 vm\xdb\xa6i^Tm^ZK>D\x17\xa1\xe3\x8bw\xa41\x133\x133\x01\xfb\
\xf9\x1c\x81\xb9\xdf\xdf\x8b\xe3a\xd3\x14U\xb1\\\x95u^%Z\xce\xc3\xd0\x18mPH\
\x14\xca\x91\xb0\x0eZ\x07\xd4\xdd\x11\xbaa\xef\xea\xc5`\xe7\x02\xccL\xec\x88\
\xc8Y\x87\xc2\t\'\x18\x81\xc91\x11\x11+\x15\xf4\x867\x98\x88\x98\x98\xd92\
\xb7\x0e\xc0v\xb3\xe0\xe6\x10b\xefv\xcc\x80\xb8\xb9\xaf003\xd0\xe6\xf6\xf2=\
\xac\xff\x00-.\xac\x07\x8f7\x14\x1b\x00\x00\x00\x00IEND\xaeB`\x82'
def get018Bitmap():
return BitmapFromImage(get018Image())
def get018Image():
stream = cStringIO.StringIO(get018Data())
return ImageFromStream(stream)
index.append('018')
catalog['018'] = ImageClass()
catalog['018'].getData = get018Data
catalog['018'].getImage = get018Image
catalog['018'].getBitmap = get018Bitmap
#----------------------------------------------------------------------
def get019Data():
return \
'\x89PNG\r\n\x1a\n\x00\x00\x00\rIHDR\x00\x00\x00"\x00\x00\x00"\x08\x02\x00\
\x00\x00\xb5%\x9c\x95\x00\x00\x00\x03sBIT\x08\x08\x08\xdb\xe1O\xe0\x00\x00\
\x06\xecIDATH\x89\xbd\x97K\x8f\x1b\xc7\x11\xc7\xab\xaa\x1f\xf3\xe0c\xe9\x95v\
)\x19\xd6BX\x1b0\x04\x08\x02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da\xfb\xdf\xd6\xbb\xa2e\x19\t(\xa3\xd2Nj\x00\x0c\xb7\x90\
\xa6\xb3W\xaf\xdf|x\xf7\xcbn\xf3\x11`\x8b \x842\x9dAbT\x14\x1bke\x97m\xfa\
\xb6\x0c-r<\x1e\x9b\xa6\xa9\xaa\xea\x8f\xd5\xf6\xcb\xbe)\xab\xe1\xec\xac\x84\
\xf8\xa0\xafp\xde\xe0yP<\x8d\x8b\x88\xf4\xfc\xdb\x97\xd7\x8f\x9f\xe6\xd9*\
\xdb\xe5]\xd7.\xdaf>\x9fO&S\x9f\xc4\xab?\xfa\xb1\xf8}\xdf\xe7\xc5\xa1j\x86\
\xaaq\x8e\xe1\xd4\xc4\x88\x88t\xca\xd7EmDXDX\x84A\xc2|\x8e 2\x9d^\xa5\xe9\
\xbc\xef\xeb\xb6\xde\x1f\x9a\xaej3\xa3vql\xad\xb1H\nI{&\xe7a\xf0\xc0\xa7g\
\x84\xd3\xb0w\xf9`\xf0\xe0\x02"\xc2\xe2\x99\xd9;\x8f\xe4\xc9\x93 \x08{af\x16\
\xad\xa3\xc9\xfc\xb10\xb3\xb0\x888\x91\xc1\x03\xb8\xd3,x>\x84\x04\xc2#\x80\
\x00\xe2\xd9\xfe\x04D\x04\xf8l\x86\x7f\xc2\xfa7\x1aV\x91\xa0\x86ON\xe3\x00\
\x00\x00\x00IEND\xaeB`\x82'
def get019Bitmap():
return BitmapFromImage(get019Image())
def get019Image():
stream = cStringIO.StringIO(get019Data())
return ImageFromStream(stream)
index.append('019')
catalog['019'] = ImageClass()
catalog['019'].getData = get019Data
catalog['019'].getImage = get019Image
catalog['019'].getBitmap = get019Bitmap
#----------------------------------------------------------------------
def get020Data():
return \
'\x89PNG\r\n\x1a\n\x00\x00\x00\rIHDR\x00\x00\x00"\x00\x00\x00"\x08\x02\x00\
\x00\x00\xb5%\x9c\x95\x00\x00\x00\x03sBIT\x08\x08\x08\xdb\xe1O\xe0\x00\x00\
\x07@IDATH\x89\xbdWIo\x1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^\xaf\xfd\xd6\x8c1)e\x97Hu]\xfb\x16^\x14E\x9a\xa6\xf3\xf9\
|:\x9d\xcef\xb3\xd7o\xa7\xabLo\x86\x8e\xad\xd8\xb4\x94\x18>x\xf8EY\x95W\xc9E\
\x18\x84Q\x18*\xae///}\x1b\xf5\xbb\xfb\xf9F)UUUGe\xb5Z-\x16\x8b$If\xb3\xd9\
\x7f_\x9d_\xa5% \x02b7"\xb60\xd8\x0e<\x18\xc5\xfd\xd3\xb3\xc7/\x9f\x7f{yy\
\xae\x94\x8cB\x85\x00\xfe\xe0eY\x0e\x87C?\xb6\t!\x18c\x1e\xd2\x87\xdd;\xed\
\xf5\xdb\xe9UZ:\xea\x10\xf0Zl\xdal\x00\xf4G\x88\xe3\xc1\xe9\xd9\x937\xaf\xbe\
\xbb\x9a\x9d\x13M|\x8f*\x8ab\xbd^\x0f\x06\x03/Y\x1e\xa6\xfb+\xcb\xb2\xf7\x93\
\xf9\x87e\xb1\xca\xf4\xa6\x051\xc4\xeb\xfc\x12\xe0\x15\x18\xaf\ty\x81\xbfw\
\xffdw\xefp\x91L\xa6\xb3\xc4OO\xa3\xd1\xa8\xdf\xefGQ\xb4\xdd%\xeb\xba^\xa4\
\xeb\xac\xd0Ya\x8c\xf3[\xb4;\xb4\xfe\xda\x8a\r\x91#"G\xe4\x80\xfc|\x8e@\xd4\
\xef\xef\xc4\xf1\xb0\xae\xf32_.\xb3j\x95\xcf$\x9f\x87\xa1RR!\xe3\xc8\x84u\
\xccX\xd0\x16\\{Gh\x87\xbd\xed\x8b\xc1\xb5\n\x10\x91#\xeb\x9c\xb3\xc6"\xb3\
\xcc2B g\xc99\xe7H\x88\xa07\xdc#\xe7\x1c9"2D\xda\x02\x98\xb6\xdf\xb5]\x0f\
\x08\xfc\x15\x80\x00qs_! "p\x9b\xdb\xcb\x8f`\xff\x03R\xab\x9d!\xfeG\xe5\x15\
\x00\x00\x00\x00IEND\xaeB`\x82'
def get020Bitmap():
return BitmapFromImage(get020Image())
def get020Image():
stream = cStringIO.StringIO(get020Data())
return ImageFromStream(stream)
index.append('020')
catalog['020'] = ImageClass()
catalog['020'].getData = get020Data
catalog['020'].getImage = get020Image
catalog['020'].getBitmap = get020Bitmap
#----------------------------------------------------------------------
def get021Data():
return \
'\x89PNG\r\n\x1a\n\x00\x00\x00\rIHDR\x00\x00\x00"\x00\x00\x00"\x08\x02\x00\
\x00\x00\xb5%\x9c\x95\x00\x00\x00\x03sBIT\x08\x08\x08\xdb\xe1O\xe0\x00\x00\
\x07\x19IDATH\x89\xbdW\xd9n[G\x12\xad\xea\xedn\xdcD;\x92\xe5\xd8\x8a<\xde&H`\
\xf0C\x80A\xfc\x90\xf9\xe1\xf9\x81y\x9a\x0fH\x80A\xe0 V\xecH\xb0E\x91\xd4\
\x95x\xc9\xbb\xf4]\xba\xbb\xe6\xa1\xc9+zf\x9eS\x0f"\xc4\xa5OW\x9dS\xa7\xea\
\x02\xfc)\x81\x00\xf0\xea\xf5\x1b\xa5\x02)\x15\x17\x823\x8e\x8c#"\x11\x01\
\xd0\xf6[\xe4\xff\xd0\xf6\x1f\xc2\xdd\xbb\xf8\xff\xce\xdb\xbe\x12 \x00\x11\
\xd1\xbf\xfe\xf9\x0f\x01\x00J\x05a\x18\xab \xf4H\xcc\xc3\x00\x01\x119\x002\
\xd66\xce4\xd64\xc64\xce\x18c:c\x89\x801\xae\xa4\x8a\xc3d(e\x00\x00\x88\xb8\
\xc3@\x02@\x04r\xe4\xc8\x02\x80\x00\x00)\x95\n\xc20\x8cd\x10\n\xa18c\xfe2\
\xceu`5\xb8.TR\x88\x88s\x0e\x00\xc6\x98\xae\xeb\x9a\xa6\xa9\xaa\xaa,\xcb|s\
\x95\xdd\xcc\xe2\xe1\xf4`z\x14\x0f\xc7\x1e\x05\x11\x00\x10\x01\x89\x9csn\x0b\
\xc3\x85\x90R\xc9 T*\x94Rq\xce\x01\x10m\xc9\x99\x1d&\xa30<b\\\x1e\x8c\x07\
\x8c1\xe7\\\xd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
\x19!\x90\xb3\xe4\x9cs$D\x90\x8c\xee\x93s\x8e\x1c\x11\x19\xa2\xce\x02\x98\
\xed\xbc\xdbM=\x02?0h;6\xfc{D\x04n\xf7\xf4\xf2\'\xc4\x7f\x00l\x93w\x1f\x1b\
\xdd\x0c\xf7\x00\x00\x00\x00IEND\xaeB`\x82'
def get021Bitmap():
return BitmapFromImage(get021Image())
def get021Image():
stream = cStringIO.StringIO(get021Data())
return ImageFromStream(stream)
index.append('021')
catalog['021'] = ImageClass()
catalog['021'].getData = get021Data
catalog['021'].getImage = get021Image
catalog['021'].getBitmap = get021Bitmap
#----------------------------------------------------------------------
def get022Data():
return \
'\x89PNG\r\n\x1a\n\x00\x00\x00\rIHDR\x00\x00\x00"\x00\x00\x00"\x08\x02\x00\
\x00\x00\xb5%\x9c\x95\x00\x00\x00\x03sBIT\x08\x08\x08\xdb\xe1O\xe0\x00\x00\
\x07\x11IDATH\x89\xbd\x97\xc9r\x1bG\x12\x863k\xeb\xea\xc6JP&%Jr(F\xb2h\xc5\
\xc8\x8cp\xe80\x17\xeb\x99\xe7\x05\xe64\x0f`_<\x8e\xb08ZhI \x006\x85F\xefKU\
\xe5\x1c\n\xdd\x84\x1csv\x1e\x80\x00\xd0\xa8/\xf3\xcf\xa5\xaa\x00\xfe\x12C\
\x00\xb8x\xf5Z\xa9@J\xc5\x85\xe0\x8c#\xe3\x88HD\x00\xb4\x7f\x8a\xfc\x0b\xed?\
\x10\xf6\xdf\xe2\xff[o\xffN\x80\x00DD\xff\xfe\xd7?\x05\x00(\x15h\x1d\xa9@{\
\x12\xf3\x18 "\x07@\xc6\xda\xc6\x99\xc6\x9a\xc6\x98\xc6\x19cLg,\x110\xc6\
\x95T\x91\x1eM\xa4\x0c\x00\x00\x11{\x06\x12\x00"\x90#G\x16\x00\x04\x00H\xa9T\
\xa0\xb5\x0ee\xa0\x85P\x9c1\xef\x8cs\x1d\xd8\n\\\x17H\xc9x\xc0\x90\x11\x801\
\xa6\xeb\xba\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6+\xec\xf5:\xc8\r\x91#"G\xe4\x80\xfc\xf9\x1c\x81h<\x9eE\xd1\xb4i\x8a\
\xaa\xd8\xed\xf2:-\xd6\x92o\xb4VJ*d\x1c\x99\xb0\x8e\x19\x0b\x9d\x05\xb7\xbf#\
\xec\x0f{\x87\x17\x83\xbb)@D\x8e\xacs\xce\x1a\x8b\xcc2\xcb\x08\x81\x9c%\xe7\
\x9c#!\x82\xd1\xf4\x1e9\xe7\xc8\x11\x91!\xea,\x80!\xff\x7f\xff\xea}F\xf4g\
\x92\xfe\xbeB@D\xe0\xfa\xdb\xcb_`\xff\x03Y\x15v\xb6\xe3G\x12\xcf\x00\x00\x00\
\x00IEND\xaeB`\x82'
def get022Bitmap():
return BitmapFromImage(get022Image())
def get022Image():
stream = cStringIO.StringIO(get022Data())
return ImageFromStream(stream)
index.append('022')
catalog['022'] = ImageClass()
catalog['022'].getData = get022Data
catalog['022'].getImage = get022Image
catalog['022'].getBitmap = get022Bitmap
#----------------------------------------------------------------------
def get023Data():
return \
'\x89PNG\r\n\x1a\n\x00\x00\x00\rIHDR\x00\x00\x00"\x00\x00\x00"\x08\x02\x00\
\x00\x00\xb5%\x9c\x95\x00\x00\x00\x03sBIT\x08\x08\x08\xdb\xe1O\xe0\x00\x00\
\x07aIDATH\x89\xbd\x97Ko\x1c\xc7\x11\xc7\xab\xaa\x1f\xd33\xfb\xe0\x8a"\xb9\
\x96l1\x82\xa4XQ\xc0(v\x18\x180"\x05\x01\x8c\x00\x0e\xe0S\xf2\xe9\xf2\x05r\
\xc8%\x97\x1c\x03\x18\x08\x907b#\x80a\xc0\x16,\xdb\x91MqWC\xed\xec\xbc\x1f\
\xdd]9\xf4\xee\x926rv\x1f\x86\xe0no\xfd\xaa\xfeU]]\x03\xf0\x9d,\x04\x80\x87\
\xa7\x8f\xb5\x8e\x94\xd2BJA\x02I "3\x03\xf0f\x17\x87\x07o\xfea\xdc~\x8a\xff\
\xcf\xde\xe6/\x03\x0203\xff\xf9O\x7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0P\x95\x12B\xd1\x01\x03\x03\xbajo\x16\xcd\xe7\xf3\xe3\xe3\xe3\x93\
\x93\x93\xc3\xc3\xc3\xd9a\xf3\xfe_\xfeST]\xdd4m\xdb\r\xd6z\xef\x98\x19\x10\
\x81\x84\x10\xda2z\x06F \x81&\xa1C\xadLd^\xbcx\xf6\xc5g\x1f\xdd\xbe{\x02\xcc\
\xec\xb7\xa2\x0100{?(\xe1\xaf_\xbf9\x9f\xcf\xef\xdc\xb9sxx\x88\x88\xb7_\x89\
\x87\xae\xbb\xb8H\xcb\xa2h\xdbf\x18z\xef\x1c"\x92\x90\x12\xc9\x93\x00$D\xe1\
\xac\x00/\x88T\x14E&2Z\xab\x8b\xc5\xb3\xfd\x83\x1b\xe3\xf1\x1e\xef*\r\x00\
\xd8\x03\xb8f:\x9e\xcdf\xb3\xa3\xa3\xa3\xf9|\x1e\xa2t\xce\xbdu2\xff\xc7?\xff\
\xd5\xb6\x8d\x1d\x06\xcf\xcc\x80\x80$\x04\x11z\x8f\x84HD\x92\x88\x9c\x93\xc0\
\xc3\xfe\xf5d\x1c\xf3r\xa1\x99\xcfV\xe9Y\x92L\xbd\xe7K\x0c\xb0E\xb6\xa3\xd1h\
:\x9d\xcef3"\xf2\xde;\xe7\xd24\x95d\x7f\xfa\xa3\xe3\xf7\xff\xfa\x11\x000\x87\
C\x81\x00\x0c$\x08\x11\x90\x88\x1c\x91\xd0\x84o\xfc\xe0\xe6\xabG\xc9\x8b\x17\
/\x10\xc09w\xbeH\xbb\xae\x922\xdab\x18\x9c\xeb\x8c\xd6\xc6\x98$I\x94R\xc30\
\x0c\xc3\xb0^\xafW\xabUY\x96o\xfc\xf0\xd6\xe7\xcf\xd2\xa7\xff}\x0e\x00\x80\
\x84\x01\x07\x8c(\x10\x99\x89\x0e\x0e\xae\xff\xf2\xd1\xfd\xd9\xc4\x14E\x81\
\x88\xce\xb9\xbe\xef\xab\xaaj\xaa\xf5hzp\x19\x8d\xb7\x9d\x10\xb1\xd6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\xb3g\x17Y\
\x03\x88\x80\xf8\xcdh \xccU\x80\x80q2~x\xfa\xe8\xc9\xc7\x1f\x9c\x9f?\x13B\
\xc0\xf6\x0e\r=b:\x9d\x8eF#cL\xa8\xc6\x80\x0ci\xcf\xb2,M\xd3\xa7_\x9e_d\x8d\
\xe7\x1d\x01y\x97\x9bM5\x00\x06\x17\x92d\xf2\xf0\xf4\xf1\x17\x9f}t\xb1x\xc6|\
\x16\xee\xa8\xba\xae\x8b\xa2\x98L&q\x1c\xef0\xbb\xaf\xca\xb2\xfc\xfal\xf9r]\
\xe7\xe5\xb0\x1d:\t\xf1\xb2\x1f\x86\xfb\x06\xb7\x83\xe2f\\D\xa4\xdbwO\xf6\
\x0fn\xac\xd2\xb3\xf3EZUU\x9e\xe7\xb3\xd9l<\x1e\xc7q\x1cEQ8\xb0!\xcaUV\x94\
\xf5P\xd6\xd6\xfa`bca\xa3\xd7\x95\xdc0{f\xf6\xcc\x1e8\xcc\xe7\x08\xcc\xe3\
\xf1^\x92L\xbb\xaej\xaa\xf5\xbal\xf3j\xa1\xc4\xd2\x18\xad\x95F\x12H\xd2y\xb2\
\x0e\x06\x07~\xf3\x8e\xb0\x19\xf6\xae\xbe\x18\\v\x01f\xf6\xec\xbc\xf7\xce:$G\
\x8e\x18\x81\xbdc\xef\xbdg)\xa3\xd1\xf4\x80\xbd\xf7\xec\x99\xd92\x0f\x0e\xc0\
r\xf8}x\x06\x9fq7$\xc0\xe63f\x06\xbf}{\xf9\x0e\xd6\xff\x00\xe9\xdc\x91 \xc3\
\x93\x95\xba\x00\x00\x00\x00IEND\xaeB`\x82'
def get023Bitmap():
return BitmapFromImage(get023Image())
def get023Image():
stream = cStringIO.StringIO(get023Data())
return ImageFromStream(stream)
index.append('023')
catalog['023'] = ImageClass()
catalog['023'].getData = get023Data
catalog['023'].getImage = get023Image
catalog['023'].getBitmap = get023Bitmap
#----------------------------------------------------------------------
def get024Data():
return \
'\x89PNG\r\n\x1a\n\x00\x00\x00\rIHDR\x00\x00\x00"\x00\x00\x00"\x08\x02\x00\
\x00\x00\xb5%\x9c\x95\x00\x00\x00\x03sBIT\x08\x08\x08\xdb\xe1O\xe0\x00\x00\
\x06\xe9IDATH\x89\xbdW]\x8f\xdbV\x0e%y\xbf$\xd9\xe3q&\x99qR\xb4\x83`\xda"(\
\x10\x04(\xd2\xa7E\xf2\x9b\xf7\x0f\xec\xd3\xfe\x80\xf6\xa5(\xd0\x06\t\x12L;\
\xb1]9\x96e}Z\xf7^\xee\x03m\x8f\xd3\xee\xeb.\x1fd\xd8\x96x.y\xc8C\n\xe0\xffb\
\x08\x00/^\xbe\xb6\xd6\x19c\x95\xd6\x8a\x14\x92BDf\x06\xe0\xfd],\x17\xde\x7f\
a<\xfc\x8a\xff\xcd\xdf\xfe\x93\x01\x01\x98\x99\xff\xfd\xaf\x7fj\x00\xb0\xd6%\
If]"H$0\xc0\xc0\xcc\x11\x80}\x08}\xf4}\xf0\xbd\xf7}\xf4\xde\xfb\xc1\x07f R\
\xd6\xd8,\x19\x9d\x19\xe3\x00\x00\x11\x0f\x18\xc8\x00\x88\xc0\x91#\x07\x00\
\xd0\x00`\x8c\xb5.I\x92\xd4\xb8Dk\xab\x88\xe401\x0e\x10Zd\x9fX\xabT\xaa\x94\
\x02\x00\xef}\xd3v}\xdfwm\xdb4MU~,Vw\xd9\xd9\xc5\x83\x8bYvv.(\x88\x00\x80\
\x08\xc8\x1cc\x8c{\x18\xa5\xb51\xd6\xb8\xc4\xda\xc4\x18\xab\x94\x02@\x0c\xb5\
Qq2\x9e\x8eF\xa3$I\xac\xb5\x88\x18c\xdc\xedv\xefo\x17\xbb]\x9f\xa4m\x9a\xb5I\
\x9aU\xdbrS\xcc?\xe5wWO\x9e~y\xfd\x0c\t\x11\x10\x10\x11\x819\x06\x7f\x88F\
\x91RZkm\x8d\xb1\xc6X"4\xd8\x9eO\xdd\xc3\x87_L\xa7\xd3\xc9d\x92e\x99\xd6:\
\xc6\xe8\xbd\xef\xba\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x9e\xafV\xab\xaa\xaab\x8cD\xc4\xccD\x84H\x00\x0c\xa4\x08\x11\x90\x88\x02\
\x91\xa20p4L\xc1X\xe7\xacF\xe0|\xb5\xee\xfbZkw\x80a\x08\xa1O\xacM\x92$\xcb2c\
\x8c0\xb1\xd9l\xd6\xebuUU\xcc|h9$"Dd@\x04FT\x88\xccDH\nI1{\x84\x80\nRk\x15A\
\xd7\xb5m\xbd\x19M\x1e\xddG\x13}\xafTj\xad\xd5Z{\xef\xeb\xba\x1e\x86A\xf8\
\x881\x1e1\x8e\xca%\xdf\x19\x18\x11\t\x90\x14+\xa5c\xd4\xcc\x1e\x15+\x03c\
\x03\xd3\xb6\xd96\xdd=7\x0c\x1c|\xaf\x94\x92>\xef\xba\xae,\xcba\x18\x84\x0f"\
:\x11\x10d\x16I\x04\x90^\x07\x04$\x02`\x02d\x05\xacA\x05\xa515j2\x99Tm\x1e\
\xf9\xa4\x04\xbc\xef\xa5v\xbd\xf7m\xdb\x86\x10\x04O\xfc~\x86qTGi4$\x14\xb6\
\x10\x14\x03sP\xa4\xc8\x90K\xcch<6\xf9J\x1e\xd9\x17t\xf4\xde{\xbf\xdb\xed\
\xba\xae\xab\xaa*\xcb\xb2\x10B\x08A)ED\x12\xd0=\xc6\xbd\xec#\x12\xed\t#\x05\
\x00\xc0ZQ\xd4\x1a\xad\xe5\x90$Ib\xfd=\x0c\xa3\xf7\xc30\x0c}\xdf\xb7m\xdb\
\xb6\xad8\x15\x8c\xbf{\xfe\xc7\x0f\xcf\x00\xf6\xb5\xa0\xb4\x16A\xd4Z#\x12p\
\xf4~\x17vu\xdf\x14y\xec\xac\xb1C8\xa8\x00\x00\xf8\xc0\x82Q\xd7u\x9a\xa6!\
\x04\xad\xb5sNk-\xc9<e\xe8\xd5\x0f\xdfJ\x88J)c\x8c=\x98R*\x84P\xd7\xf5|>\xff\
\xf0!\x96E\x8e\xa4\xc0\x9f$\x8d\x81\x9a\xa6\xa9\xebz\xbb\xdd&I\xc2\xc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xcbr\xbd^\xe7y\xbeX,~{{\xbb*Z@\x04\xc4\xcf\xa3\x01\xd9\
\xab\x00\x01\xd3l\xfc\xe2\xe5\xab7\xbf\xfc8\x9f\xdf\xca\xfe\'3T4b2\x99\xc8\
\xda&\xd5(\x90B{Q\x14y\x9e\xbf\xfb0_\x15m\xe4#\x02\xf2\x91\x9b}5\xecu\x1d\
\xb3\xec\xec\xc5\xcb\xd7\xef\xdf\xfe\xbcZ\xdc2\xdf\x85\x10v\xbb]\xd34\xdb\
\xed\xf6\xec\xec,M\xd3#\xcc\xf1\xaf\xaa\xaa\xfe\xb8[~\xda4e5\x1cf\x86\x0c\
\xd9\x93\x12\xe0C(\xc7u\x11\x91\x9e~\xfd\xfc\xe2\xd1\x93u~7_\xe4\xb2=M\xa7\
\xd3\xf1x\x9c\xa6\xa9sN\x1aV\xa2\\\x17\xdb\xaa\x19\xaa\xc6\xfb(.\xf6\x1e\xf6\
\xf9:\xe1\x8692sd\x8e\xc0\xb2\x9f#0\x8f\xc7\xe7Y6\xe9\xfb\xba\xad7\x9b\xaa+\
\xeb\x85Q\xcb$\xb1\xd6X$\x85\xa4C$\x1f`\x08\x10\xf7\xef\x08\xfb\x19t\xfabp\
\xaf\x02\xcc\x1c9\xc4\x18\x83\x0fH\x81\x021\x02\xc7\xc01\xc6\xc8Z\xbb\xd1\
\xe4\x11\xc7\x1892\xb3g\x1e\x02\x80gy\xfe0\x84\x18\xe4\x15@\x96\x04\xd8\xff\
\xc6\xcc\x10\xff6\xa5\xfew\xf6\x1fo\xebo\xf2\xff\x82\xa3\x96\x00\x00\x00\x00\
IEND\xaeB`\x82'
def get024Bitmap():
return BitmapFromImage(get024Image())
def get024Image():
stream = cStringIO.StringIO(get024Data())
return ImageFromStream(stream)
index.append('024')
catalog['024'] = ImageClass()
catalog['024'].getData = get024Data
catalog['024'].getImage = get024Image
catalog['024'].getBitmap = get024Bitmap
#----------------------------------------------------------------------
def get025Data():
return \
'\x89PNG\r\n\x1a\n\x00\x00\x00\rIHDR\x00\x00\x00"\x00\x00\x00"\x08\x02\x00\
\x00\x00\xb5%\x9c\x95\x00\x00\x00\x03sBIT\x08\x08\x08\xdb\xe1O\xe0\x00\x00\
\x07MIDATH\x89\xbd\x97K\x8f\x1b\xc7\x11\xc7\xab\xaa_3\xc3\xc7\xd2\xd2\xeeRr\
\xa4\x8d\xb0Vb\x0b^\x08Q\x0489X>\xf9\x16$\xb9\xe4\x94\xef\x96\x0f\x10\xf8\
\x90S\x82 \x88\x81\xc0\x81\x91\x9bt\x11$[\x1b\xc9\x8f\x95\xb9\xbb\xdc\xa18$\
\xe7\xc1\xe1tw\xe5\xd0\xc3\xd9\xb5\x91\xb3\xfb@.\x87\xcb\xfau=\xfa_\xd5\x00?\
\xcaB\x00\xb8\xff\xf0\x91\xd6F)-\xa4\x14$\x90\x04"23\x00\xb7\xff\xc5\xe1\x85\
\xdb\x0f\x8c\xdb\xa7\xf8\xff\xec\xb5\xef\x0c\x08\xc0\xcc\xfc\xd9?\xff"\x01@k\
\x13E\x896Q Q\xc0\x00\x033{\x00\xb6\xce\xd5\xde\xd6\xce\xd6\xd6\xd6\xdeZk\
\x1b\xeb\x98\x81Hh\xa5\x93\xa87P\xca\x00\x00"n\x19\xc8\x00\x88\xc0\x9e=;\x00\
\x90\x00\xa0\x94\xd6&\x8a\xa2X\x99HJ-\x88\xc2f\xbco\xc0U\xc86\xd2Z\x88X\x08\
\x01\x00\xd6\xda\xa6i\xea\xba.\xcb\xb2(\x8a\xd5\xf24\x9bM\x92\xc1\xb5\xb7\
\xae\x8d\x93\xc1N\xa0 \x02\x00" \xb3\xf7\xde\xb7\x18!\xa5RZ\x99H\xebH)-\x84\
\x00@t\x85\x12~\xd8\x1f\xf5z\xbd(\x8a\xb4\xd6\x88\xe8\xbd\xdfl6u]WUU\x14\xc5\
j\xb5\xca\xb2,\xcb\xb2\xf9\xfc\xecM:\xd9\xbfy\xe7\xd6\xc1\xbbH\x88\x80\x80\
\x88\x08\xcc\x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\xbc\xf7\xce:$G\x8e\x18\x81\xbdc\xef\xbdg)M\
o\xb8\xcb\xde{\xf6\xccl\x99\x1b\x07`\xdbYp+\xac\x0c\xe1\n\xc0\x80\xb8\xbd\
\xaf003\xf8\xed\xed\xe5GX\xff\x03,}\x834\xc6\xa3\x1c\x05\x00\x00\x00\x00IEND\
\xaeB`\x82'
def get025Bitmap():
return BitmapFromImage(get025Image())
def get025Image():
stream = cStringIO.StringIO(get025Data())
return ImageFromStream(stream)
index.append('025')
catalog['025'] = ImageClass()
catalog['025'].getData = get025Data
catalog['025'].getImage = get025Image
catalog['025'].getBitmap = get025Bitmap
#----------------------------------------------------------------------
def get026Data():
return \
'\x89PNG\r\n\x1a\n\x00\x00\x00\rIHDR\x00\x00\x00"\x00\x00\x00"\x08\x02\x00\
\x00\x00\xb5%\x9c\x95\x00\x00\x00\x03sBIT\x08\x08\x08\xdb\xe1O\xe0\x00\x00\
\x07%IDATH\x89\xbdWKo\x1c\xc7\x11\xaeGw\xcfk_\xa6H.)H\x04M\tp\x04\x0bJ\x0c\
\xe5\x18\xfd\xc7\xfc\x82\xfc\x85\x9c\x03\x18\x08\x92SN\xf6\xc5pbQ\xb2d\x89Y>\
4\xdc\xe7\xcc\xce\xab\xbb+\x87\xde]\xd2Nru\x1ffgwg\xea\xeb\xaa\xfa\xea\xabj\
\x80_e!\x00\xbcx\xf9\xca\x98Hk\xc3J11\x12#\xa2\x88\x00\xc8\xe6)\t\x17\xd9|\
\x11\xdc\xfe\x8a\xff\xcb\xde\xe6S\x00\x01DD\xfe\xfe\xf5\x9f\x15\x00\x18\x13\
\xc5qj\xa28 Q\x80\x01\x01\x11\xf1\x00b\x9dk\xbcm\x9cm\xacm\xbc\xb5\xd6v\xd6\
\x89\x00\x11\x1bm\xd28\xebk\x1d\x01\x00"n1P\x00\x10A\xbcxq\x00\xa0\x00@kc\
\xa28\x8e\x13\x1d\xc5J\x19&\n\x9b\xf1\xbe\x03W\xa1\xd8\xd8\x18\xe6\x84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98\xcf\x11Dz\
\xbda\x9a\x0e\x9a\xa6\xac\xca\xc5\xa2\xa8\x97\xe5\xb5\xe6\x9b86F\x1b$FR\xce\
\x93u\xd09\xf0\x9b3\xc2f\xd8\xbb\x7f0\xb8\xeb7"\xe2\xc5y\xef\x9duH\x8e\x1c\t\
\x82x\'\xde{/JE\xd9`_\xbc\xf7\xe2E\xc4\x8at\x0e\xc0nf\xc1\xad\xb0\n\x84#\x80\
\x00\xe2\xf6\xbc" "\xe0\xb7\xa7\x97_a\xfd\x07\x9d*a\x13\xde\x9ck\x14\x00\x00\
\x00\x00IEND\xaeB`\x82'
def get026Bitmap():
return BitmapFromImage(get026Image())
def get026Image():
stream = cStringIO.StringIO(get026Data())
return ImageFromStream(stream)
index.append('026')
catalog['026'] = ImageClass()
catalog['026'].getData = get026Data
catalog['026'].getImage = get026Image
catalog['026'].getBitmap = get026Bitmap
#----------------------------------------------------------------------
def get027Data():
return \
'\x89PNG\r\n\x1a\n\x00\x00\x00\rIHDR\x00\x00\x00"\x00\x00\x00"\x08\x02\x00\
\x00\x00\xb5%\x9c\x95\x00\x00\x00\x03sBIT\x08\x08\x08\xdb\xe1O\xe0\x00\x00\
\x07\nIDATH\x89\xbdWKo\x1bG\x12\xae\xea\xd7\xf4\x0c)\x91\x11$S\xf2\xc6\x92\
\x9fp\xbc\xf0\x1a\x08|\x8d\x7f\xf3\xde\x17{\x08v\x0f\x01\xf6\x90`\x01#\x1b\
\xc3\xf1#\x96B=<\xd4\x0cG\xf3\x9e\xee\xae=\x14I\xd1\xc0\xee5}\x18\x82\x83\
\x99\xfa\xba\xea\xfb\xfa\xab\x1a\x80?d!\x00\xbcx\xf9\xca\x98Hk#\x95\x92B\xa2\
\x90\x88HD\x00\xb4z\x8a\xf8B\xab?\x84\xeb\xbb\xf8\xbf\xe2\xad~\t\x10\x80\x88\
\xe8\x1f\x7f\xff\xab\x02\x00c"k\x13\x13YF\x12\x0c\x03\x04D\x14\x00\xc8y\xdf\
\x05\xd7y\xd79\xd7\x05\xe7\x9c\x1b\x9c\'\x02!\xa4\xd1&\xb1\xa3\x1d\xad#\x00@\
\xc45\x06\x12\x00"P\xa0@\x1e\x00\x14\x00hmLd\xad\x8dud\x952R\x08\xdeL\x08\
\x03\xf8\x06\xc9Yc\xa4\x8c\xa5\x94\x00\xe0\x9c\x1b\x86\xa1\xeb\xba\xba\xae\
\xab\xaa\xba)\xce\xf3\xc5<\xd9\xd9\xfbjo\x96\xecL\x18\x05\x11\x00\x10\x01\
\x89B\x08a\x05#\x95\xd2\xda\xe8\xc8\x1ac\xb56RJ\x00D_i\x19v\xc7\xd3\xd1hd\
\xad\xd5Z\x0b!\xbc\xf7}\xdf\xf7}\xbf\xc2\xb8\xb9Y.\x97y\x9eg\xd9\xc5u:\xbfst\
\xff\xeb\xe3\xa7(\x10\x01\x01\x11\x11\x88\x82w\xebl\xa4\x90R)\xa5\x8c\xd6Fk#\
\x04jl&\xd3ho\xefh:\x9dN&\x938\x8e\xa5\x94D4\x0cC\xdb\xb6M\xd3TUU\x96\xe5r\
\xb9\x1c\x8f\xc7q\x1c\x1bc\xd24}\xff\xe6\xa7r\x99?~\xf6m\x9c\x8c\x01\x11\x01\
\x81\x08\xc5\x1a\x06\x85\x14BJ!\xa4\x94B\xa0U\xdd\xe1\xfe\xeel\xbd&\x93\x89\
\xd6\x9a\x018\x89\xa6i\xe28\xb6\xd6FQd\x8cQJ\t!\x10\xd1{??{\xdb\xb4\xcd\x8b\
\x97\xdf%\xc9\x0e"\x12\x05\xe1\xc5\x1a\x06\x91\xb1\x01Pcs\xb8\xbf{\xef\xde\
\xbd\xe3\xe3\xe3\x87\x0f\x1f\x1e\x1e\x1e"b\xdf\xf7eY\x16E\xe1\xbd\x0f!\x10\
\x91\xf7\x9e\x88\x88\x08\x00\x84\x10B\x08)%"\n!\xae\xae\xce\xdf\xfe\xfc\xe3\
\x8b\x97\xaf\x10\x05\x00\xb2*\x15\xb0\xe8\x80\x80\x00}5\x99F\xb3\xd9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\
~h};\xf4MS\x9f_\xa4YQ\x17\xe5\xb0vV\x81(\xbe\x90\x00\xadS\xd9\x8c\x8b\x88\
\xe2\xfe\xa3\xe7{\xfbGY:\xbf\xb8L\xab\xaa\x9aL\xa7\xbb;\xbb\xc3x\x1c\xdb\xd8\
E\xa6\x97\n\x05\x86\x10\xdc\xd0gyY5CY;\x17`\xedC\x88\xb8\xf6\xdc-n\x88\x02\
\x11\x05\xa2\x00\xc4\xf39\x02\xd1x<I\x92\xdd\xae\xab\x9ajyS\xb5e\x9d\xeata\
\xad1\xda\xa0\x90(\x94\x0f\xc2y\x18<\x84\xd57\xc2j\xd8\xdb\xfe0\xb8u\x01"\n\
\xe4C\x08\xdey\x14^xA\x08\x14<\x85\x10\x02)\x15\x8dv\xf7)\x84@\x81\x88\x1c\
\xd1\xe0\x01\xdcj\x16\\7!\x1eE\x80\x08\x10\xd7\xdf+\x04D\x04a\xfd\xf5\xf2\
\x07\xac\xff\x02\xa7;9\xf7\xe71\x8dG\x00\x00\x00\x00IEND\xaeB`\x82'
def get027Bitmap():
return BitmapFromImage(get027Image())
def get027Image():
stream = cStringIO.StringIO(get027Data())
return ImageFromStream(stream)
index.append('027')
catalog['027'] = ImageClass()
catalog['027'].getData = get027Data
catalog['027'].getImage = get027Image
catalog['027'].getBitmap = get027Bitmap
#----------------------------------------------------------------------
def get028Data():
return \
'\x89PNG\r\n\x1a\n\x00\x00\x00\rIHDR\x00\x00\x00"\x00\x00\x00"\x08\x02\x00\
\x00\x00\xb5%\x9c\x95\x00\x00\x00\x03sBIT\x08\x08\x08\xdb\xe1O\xe0\x00\x00\
\x07\x96IDATH\x89\xbdWKo\x1c\xc7\x11\xaeW\xf7\xcc\x0ew\xb9K\xd1\xd4\xeaaQ\
\xb6`\xc3p`[0tu\x0c\xe4\x98_\x9b?\x90\x93\x8f\t\xe4 \x88\xe3\x08\xb2\x05\xeb\
I\x8b\xdc\x07\xf79=\x8f\xee\xaa\x1cf\x97\xa4\x83\x9c\xdd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G\x1fX7\x06\x9a\x81Y\x02Hf\x96\xac{\x17\xf6gF\x043@\
\xdc\x7f\xaf\x18\x98\x19\xa8\xc1\xef\xb6\xfe\x0bS\x82\x96\xd8\x83\xc2\x98\
\xb7\x00\x00\x00\x00IEND\xaeB`\x82'
def get028Bitmap():
return BitmapFromImage(get028Image())
def get028Image():
stream = cStringIO.StringIO(get028Data())
return ImageFromStream(stream)
index.append('028')
catalog['028'] = ImageClass()
catalog['028'].getData = get028Data
catalog['028'].getImage = get028Image
catalog['028'].getBitmap = get028Bitmap
#----------------------------------------------------------------------
def get029Data():
return \
'\x89PNG\r\n\x1a\n\x00\x00\x00\rIHDR\x00\x00\x00"\x00\x00\x00"\x08\x02\x00\
\x00\x00\xb5%\x9c\x95\x00\x00\x00\x03sBIT\x08\x08\x08\xdb\xe1O\xe0\x00\x00\
\x073IDATH\x89\xbd\x97Ko\xdcF\x16\x85\xef\xab\x8a\xecn\xbdb\xcb\x82\xad\xb1\
\x80XI\x10\x040\x12\x04\xc92\x93\xbf<\x7f`V\xb3\xf7.A\x90\x07\x10\x18\x89=#\
\xa9\x9b\xfd\xe2\xa3\xc8\xaa\xbaw\x16dK2f\xb63\xb5h\x82\r6?\xde\xdb\xe7\x1c\
\xde\x02\xf8\xbf,\x04\x80/\xbf\xf9\xab\xf7\x85s\x9eE\x98\x18\x89\x11\xd1\xcc\
\x00l\xba\xca\xc6\x0f\x9bN\x0c\x0f\xdf\xe2\x7f\xbb\xdft4@\x003\xb3\x7f\xfc\
\xfdo\x02\x00\xde\x17e9\xf7E9\x92h\xc4\x80\x81\x99)\xa8\xc68\x84\x14\xbb4\
\xf41\x86\x1c\x87\x9c\xb3*\x00\xb1s\x85/\xe7\xf3\xc5\xa9\xf3\x05\x00 \xe2\
\x81\x81\x06\x80\x08\xa6\xa6\x96\x01@\x00\xc09\xef\x8b\xb2,g\xae(E<\x13\x8d\
\x0f\x93b\x1f\x87FS3\xf3\xe8\xe6\x0b\xc4c\x03\xc89\xa5\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\xbe~z\xfe|y\
\xfbn\xbb]\xf7}8\xe9\xda\xa3\xa3f>\x9f\x95\xe5l\xb7-\xc4\t\x80\xe5\x94c\x8cu\
\xd3\x0eQ\x87\x04\x06\x84H\x87\xf2\xe9\xf0\xa2}h\x9a\x99\x9a\x99\x9a)\x98\
\x99)\x00\x82\xd9\xd1\xf1\xd9|q\x1aB\xdd\xec\xb7}\xdf\x84eEd\xce\x89s\x9eIH\
\x04P\x0c\xc8\x80az\xf0i\xd8{\xbc1xH\x013S\xcb\xaa\x9aSF\xca\x94\xc9\x10L\
\xb3\xa9\xaa\x9as\xe5\xc9G\xde\xf4\xa9\x9a\x9a\xd9\xf4;3\x9d\x8e\xe3\xa6\xc4\
`\xdc\x02\x18 \x1e\xf6+\xe3\xb5z\xff\xe6\xfd\xdf\xaf\x7f\x03w\x987\x87\xc3\
\x043\x1f\x00\x00\x00\x00IEND\xaeB`\x82'
def get029Bitmap():
return BitmapFromImage(get029Image())
def get029Image():
stream = cStringIO.StringIO(get029Data())
return ImageFromStream(stream)
index.append('029')
catalog['029'] = ImageClass()
catalog['029'].getData = get029Data
catalog['029'].getImage = get029Image
catalog['029'].getBitmap = get029Bitmap
#----------------------------------------------------------------------
def get030Data():
return \
'\x89PNG\r\n\x1a\n\x00\x00\x00\rIHDR\x00\x00\x00"\x00\x00\x00"\x08\x02\x00\
\x00\x00\xb5%\x9c\x95\x00\x00\x00\x03sBIT\x08\x08\x08\xdb\xe1O\xe0\x00\x00\
\x06\xdcIDATH\x89\xbdW\xcb\x8e\x1b7\x16\xbd/\xb2J\xd5\x12\xdcP\xdbI\xbb\x13\
\xc4\x0el$\xf0 0\x828\xcbL~y~`V\xb3\r\xb2\xf4\xc2A\x00\x07vw\xe2~\xc8*\xa9U\
\x0f\xb2H\xdeY\xb0J\x92\x07\xb3\x9d!\x84*H\x90\xea\xf0\xdes\xcf9\x14\xc0\xff\
e!\x00\xbc|\xf5wk\x0bc,\x8b01\x12#\xa2\xaa\x02\xe8\xf8-\xcd\x17\x1d\xdf(N\
\x9f\xe2\x7f{\xdexW@\x00U\xd5\x7f\xfd\xf3\x1f\x02\x00\xd6\x16eY\xd9\xa2\xccH\
\x94a@AU\x13\xc48x\xd7\x0e\xbe\xf3\xae\x1f\x06\x17\x82K!EU&1\xb6,fU5?\xb5\
\xb6\x00\x00D\x9c0P\x01\x10A\x93&\x8d\x00 \x00`\x8c\xb5EY\x963S\x94"\x96\x89\
\xf2f\x86\xa1w\xdd.\xb8\x9d\x10\x14\'%\xceg\xa0\x10b\x0ca\x18\xbcw\xae\xef\
\xfbnu\xbd\xba\xbd\xbe|p\xfap\xf9\xe8b\xbex\x90Q\x10\x01\x00\x11P5\xa5\x94F\
\x18\x161\xc6\x9a\xa2\xb4\xb64\xc623\x00\xb6\xcd:\xfa\xe6\xa42g\xcb\x0bk\x0c\
\xb3(h\nq\x08\x83\xf7\xde{\xdf\xf7]\xd7\xb5m\xd34\xcd\xfd\xea\xf6\xea\xee\
\xe6\xcf\xc7_>\xfb\xea\xe9\xb7H\x88\x80\x80\x88\x08\xaa)\x86\xa9\x1a&f\x11\
\x11k\x8c5\xc6*\xa8\xef6\x05\xc7G\x8f\xcf\xe7\x8bE5\xablQ\x00@\x08\xc1;\xef\
\xbd\xeb]\xef\xba\xbe\xeb\xdb\xbe\x9d\x95\xe5\xcc\x16\x96Y\xb6\x9b\xfa\xb7\
\xd7\xbf\xec\xee\xd7\xdf\xbc\xf8aV\xcd\x01\x11\x01A\x15i\x82Ab"f"fV\xd0\xd0o\
\xabR\xce\x96\x9f\x9f=|t\xb6\\\x9e\xcc\xe7\x80\xd8u]\xdb\xec\xda\xb6\xeb\xfb\
\xce\xf4V\xc4\x88\x11\x11\xc3F\x98\x99\x88\x101\xa5\xf4\xfe\xed\x1b\xd7\xf7/\
_\xfdTU\x0bDTM\x14i\x82A\xcc\xd8\x00\xe8\xbbMU\xca\xf9\xf9\xe3\x8b\x8b/\x9e<\
yz~~\x1ec\\}\\\xc5\x10{\x16f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\xd7\xb6\xcd0xUD\x04\x1dMM\xf3\xd3\xf3\xe6\x10Gy\x00\x01\x80LF\x051F\
\xef]\xdb\xb6\xaeo\x0e\xdc(\xa8w=\xceg\n\x1aBh\x9b]\xcf\xd2w\x9ds.{\xa6\xc2\
\x84\xb3\xc7\x80\x11 \xb7\x8e\x90\x00\x91U\x98\x19\x11B\x88\xde\xf5\xf3\xf9b\
]\xd7I\x8fF`\x18\x1c(\xa4\x10\xbd\xf3m\xdb1\xb3\xf7>\xa5\x88HS\x9b>\xc5\x98\
\xcc\x18\x01\t\xb3\xb8\x11\x81\x92H\xf6\x0b\xd7W\xb3\xaa\xaa\xeb\xb5\xeaa\
\x044\x04\x17b\xf6+\xd7\xf7\x1d3\x87\x10\x10\xf74\xe01\xc6\'\x83@\xe3b\x16B\
\xcc\xd9\x10C(\xca\xb2(J\x11\x81\x03\x8cb\n)\x84\xc1{\xdf\xbb\xde\xf4VDT\x95\
Y\x98\xc7\x81?\xc6\xc8\x8c\x1c\xa6\r\x91\xa7\x19\xc8o\xcd0\x18c\x8d1b$os\x1a\
h\xd5l\xbc\xae\xebELa\x0bb&J\xaa\x84\x9f\x00LU!" \x02\x12"\x11\x13\x8b0\x8b1\
\x00\xa8\xaa\x935\x08\xf3q5\xa0L\x92\xf3\xa3\xeb[1\x02\xa0\xd6\x16\xcc\x9c58\
\xd5\x83{\x9c\x91\xfb\xb1]\x9c1D$\xdbe6S@`\xb6\xc7\xdc\xa0\xb1e\xce\x8f\xbe\
\x9d\x89\x18@$$f\x99\\5w\xe9H\x98\x80H\xc4\xcc\xffa\x01\x00\x18B\x04\xc0\xa4\
\x9abD\x1e\xbb5\xde\x8aY\xb5\xba^\xb5MS\x9636BD""\xc1\x10QJ\x89\x91\x8e\x9f\
\x8e\x98{EcN\x99\xbcFF\x11!\xa5\x14\x86a\x08\x03\x92\x1cW\x03\xd5\xfc\xf4\
\xf6\xfa\xb2i\xeema\x8f\xcd#oVA3\xef\x84\x94\xa3e\xa2\x9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\xe7\xdf-\x1f\x9e\xdf]_n\xb7+\xd7\xf7m\xdb\xce\xe7\x8bYU\x15Ei\
\x8ca\x16@H1\x0ea\xe8\xba>DM\x89\x80\x18i\xef\x13\x93\x19\x1eq\xa3\x9aT5\xa9\
&PUM\x99\xbb\xc5\xe2\xf4\xe4\xe4A\xd7\xefv\xdb\xda\xf5\xcd\xba\xae\xebz\x9d\
\x07\x90Y\x98-\xb2 \t\x92 \xe6\xd9\xc5)\x88\x0e\x7f\x0c\x0e\xbaQ\xd5\xa41\
\xa5\x14CD\x8a\x14I\x114EM)%\xb5\xa6<]~\xa6)%M\xaa:\xfeNu\x7f\xdf_\x11A\x15\
\xc6D\x87\x91TH\x87\x83\xca\xff|\xfd\x1b\xe5N\x0e\x95,-\xdfO\x00\x00\x00\x00\
IEND\xaeB`\x82'
def get030Bitmap():
return BitmapFromImage(get030Image())
def get030Image():
stream = cStringIO.StringIO(get030Data())
return ImageFromStream(stream)
index.append('030')
catalog['030'] = ImageClass()
catalog['030'].getData = get030Data
catalog['030'].getImage = get030Image
catalog['030'].getBitmap = get030Bitmap
#----------------------------------------------------------------------
def getlogoData():
return \
'\x89PNG\r\n\x1a\n\x00\x00\x00\rIHDR\x00\x00\x00 \x00\x00\x00 \x08\x06\x00\
\x00\x00szz\xf4\x00\x00\x00\x04sBIT\x08\x08\x08\x08|\x08d\x88\x00\x00\x01\
\x94IDATX\x85\xb5WAn\xc4 \x0c\xf4@\x7f\xd2>\xa5y5}J\xbe\x92\xb8\x87\r\xac\
\x01c\x02dGZiE\x103L\x06\x9b\x00\xce\x93\x05>\x0f\x8e\xff\xe1<\xcc\xc9\x13\
\xf8\xea\x913\'~\x02\xc0O\x8bh\n(\xc9\x89\x88\x98\x99\x00d\x83\xab\x82T\x01\
\x99\xed@"\x97B\xc4\xf3%W\\I\xcc\xe7\xc1\x14\xc4\x18s"\x04@\x9a+R\xf0(\x92\
\x03%1\x05\x9d0\n\x89\xe4\xab0C\x18E\x94x\x828\x02p\xbe\xde\xbd\x85\xad\xca\
\x00Qx\x8d\xcfd\xc1\xf5\xa7\x14\xb8\\\x89\xbf$<\xd0T\x16\x10\x0b\xd1\x90\x0b\
-L\xb80\xee\x80\x85\t\x17\x92\x008\x0f\xda\x88h3f[\xcf&\x91\x9d\x028\x8f\xfd\
<\xf8\xbbE\xb4\xfa\x8a\x14@6\xa3\xfd<\xf8\xc7x\x87\x99\xbd\x96\x18\x91\x85^3\
K\x0e\xf4\xc8\xcb\x05x\xbb\x166\x84TUu;\xaa\xb2=\x1dB8\x8f\x94\x1bcN\x96+%\
\xa4\x8e\xe8\xbd\xfb}0\xc1\xaf\x8e\xa9<\x10D=\xa1\xe8]H\xee\x92\xe3O\x99Tf!\
\xd4\xe3\xcf\xd6\x01\x03-\x17\x86\x05\xc4\x96]Z\xcf\xbf\xca\xe4Va\x12\xe3\
\xb7\x05hw\x85Qh.\xd8\xedX\x90\x7f\xa2\x08\x11\xddp\xe0\x93\xe4]\x01#\xe4\
\xea)\x90\xeb\xcc\x08P1\xd3\x90B;C\xe6\xb5\xbc\xda\xbd8\xbf\xc0\xfb$X\xbb\
\x97"4,\xd7\x01\x93\xbc\xe5V\xb6\x91F%l\xbe\x7fQ\xd7\xbb\xb8\x88\xca\x0c\xc8\
\x86t\xeb\x18f\x18\xb8\xbc\xa6]\x1a]\xd6\xec\x05\xc3GPX~\xf7n\xd8mF\xc9\xbe\
\x96\x90\t\xd2!\x01\x95\x90r\x81\xc5\x8f\xd3\x7f\xa5\x8a\t\xa7\x8d\x89\xeak\
\x00\x00\x00\x00IEND\xaeB`\x82'
def getlogoBitmap():
return BitmapFromImage(getlogoImage())
def getlogoImage():
stream = cStringIO.StringIO(getlogoData())
return ImageFromStream(stream)
index.append('logo')
catalog['logo'] = ImageClass()
catalog['logo'].getData = getlogoData
catalog['logo'].getImage = getlogoImage
catalog['logo'].getBitmap = getlogoBitmap
#----------------------------------------------------------------------
def getrestData():
return \
'\x89PNG\r\n\x1a\n\x00\x00\x00\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x98b\x08\xc1{\x1f\xbcw~\x08\xce\rUmmm\xad\x15\x91\xa6Y\xbf}\xf3\
k\xdb\xad\xbe{\xf9\xe3\xec`\x0e\x88\x08\x08\xaaH\x13\x0c\x12\x131\x131sV\x1d\
\xba\x1bk\xe0\xf8\xe4\xab{\xf7\x1f\xdc\xbbw<?\x9c#`\xef\x86~\xd3\xf7}\xef\
\xdc\xe0\x8cc\x11\x11\xc3",\x86\x85\x11\t\x90\x00\xf2\xf9\xbb\xb7\xc1\xb9W\
\xaf\x7f>8X \xa2j\xa6D\x13\x0cb\xc1\x06\xc0\xbe\xbd\xb1\x06NN\xce\xce\xce\
\xbex\xf2\xf4\xe9\xe9\xe9i\x8a\xe9\xe6\xe6zL\x89\xc8\x11\x133\x1b#\xaaU\xb9\
\x90\x88\x98\xcbi&$\x00\xba\xba<\xff\xfd\xcdo?\xfc\xf4\x0b"\x01`Q\xa5@\x11\
\x1d((t\xcd\xb5f\x7f|\xf2\xd5\xd9\xd9\x17/^\xbe|\xfe\xfc\x9bq\x0c\xe7\xe7\
\xe7\xeb\xa6\xd9t\x9dsn\x0c!\xc6\x98\xb3\x12\xb1\xb5\x96\x88\x98\x85X\x98\
\x85\x99\x0b\xf5\xc6\xd8\xcb?\xdf\xbd;:~\xf6\xed\xf7\xa0\xaay"\r@A5\xf8\xc1\
\r\xeb\x93\x87\x8f\xee\xdd\x7f\xf0\xe4\xe9\xd3\xe7\xcf\xbfQ\xcd\x17\x17\xef/\
//\xd7\xabU\xdf\xf7>\xf8\x9c\x12 23\x95\x8d\xb9\x00\x88\x08\xb3\xb0\x181F\
\x8ca\xe6\xbf\xde\xffq\xff\xe1\xd9b\xf1\xb9\xee\x94\x06\x00\x9aap\x8d\xb5r8_\
\xdc\xbbw|zz:\x8e\xe1\xe2\xe2\xfd\x87\x0f\x7f\xae\x96\xcb\xbe\xdf\x8c\xe3\
\xa8\x00\x80H\x80\xca\x08\nH\x19\xd3\x16\x8a\x88\x99\x85ED\x84\x88\x00py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T4\r\xfb\x8aV\xd0\xac\xb9h\xb7\xf4\xa3\x1f6m\xb3^\xaf\
\x96\xcb\xd52\x03\x11\x11\x94\x8bp\x9f\xb4)#g\x07\xf3W\xaf\x7f\xfe\xfd\xcdo\
\x97\x7f\xbe+\x0b\xb6\xed\xea3\xa5\x94\xca2-\x8d&\x881L\\\xb4;\x86\xe0\xdc\
\xd0o\xba\xa6Yu\xdd&\x03\x11\xf1\x84\x80\xb7a3M\x13,\xe688X\xfc\xf0\xd3/\xef\
\x8e\x8e\xffz\xff\xc7\xf2\xe6cN)\xc6\xadF]=\xab\xaa\xc1\x94,!\xd4\xac1\xc6\
\x10\xfc0\xf4]\xdb\xa4\x0c\x80LD\x08\x00H\x88tG\x02:\x95\xb2[."\xd2\xb3o\xbf\
\xbf\xff\xf0\xec\xea\xf2\xa2Y^\xfb\xe0\x9c\xdb\x1c\x1c,\xea\xd9\xcc\xda\xda\
\x18C\xcc\x08\x90s\x1e\xe3\x18\xbc\xcfJHL,{qG[\xbe\xf6z\xa3\x9aU5\xabfPU\xcd\
\xa5w\x8b\xc5\xe7\x87\x87G\xc3\xd0\xb5\xeb\xa5s]\xdb\xb5M\xbbfb\x11a1"\x96\
\xc5\x10\x0b\x8b\xe5\xadvw\x13\xe3\xf6\xc5\xe0\xd67\xaa\x9a5\xe5\x9cSLH\x89\
\x12)\x82\xe6\xa49\xe7\xac\xd6\xd6\xc7\x0f\x1ei~\x985\xab\xea\xf6:\xd5\xddq\
\xb7G\x04U@\x84\xdd\xccUU\xc8\xd3\xdb\xcb?\xb0\xfd\rf\x12\xf8Y\xb1c\x8c\xef\
\x00\x00\x00\x00IEND\xaeB`\x82'
def getrestBitmap():
return BitmapFromImage(getrestImage())
def getrestImage():
stream = cStringIO.StringIO(getrestData())
return ImageFromStream(stream)
index.append('rest')
catalog['rest'] = ImageClass()
catalog['rest'].getData = getrestData
catalog['rest'].getImage = getrestImage
catalog['rest'].getBitmap = getrestBitmap
| 66.481087
| 78
| 0.698418
| 40,614
| 193,327
| 3.319619
| 0.102699
| 0.021272
| 0.017289
| 0.008901
| 0.738242
| 0.727702
| 0.727124
| 0.725774
| 0.724431
| 0.724001
| 0
| 0.229582
| 0.037274
| 193,327
| 2,907
| 79
| 66.503956
| 0.494802
| 0.011819
| 0
| 0.684016
| 1
| 0.581026
| 0.010973
| 0.005343
| 0
| 0
| 0
| 0
| 0
| 1
| 0.035437
| false
| 0.000369
| 0.000738
| 0.023625
| 0.071982
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 1
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 9
|
2a1583e7a218355ec68a6bbaca9a3ba55fbcd063
| 138
|
py
|
Python
|
core/generators/base/__init__.py
|
ChrisLR/BasicDungeonRL
|
b293d40bd9a0d3b7aec41b5e1d58441165997ff1
|
[
"MIT"
] | 3
|
2017-10-28T11:28:38.000Z
|
2018-09-12T09:47:00.000Z
|
core/generators/base/__init__.py
|
ChrisLR/BasicDungeonRL
|
b293d40bd9a0d3b7aec41b5e1d58441165997ff1
|
[
"MIT"
] | null | null | null |
core/generators/base/__init__.py
|
ChrisLR/BasicDungeonRL
|
b293d40bd9a0d3b7aec41b5e1d58441165997ff1
|
[
"MIT"
] | null | null | null |
from core.generators.base.connectorbased import ConnectorBasedGenerator
from core.generators.base.designpiece import DesignPieceGenerator
| 46
| 71
| 0.898551
| 14
| 138
| 8.857143
| 0.642857
| 0.129032
| 0.290323
| 0.354839
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.057971
| 138
| 2
| 72
| 69
| 0.953846
| 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
|
2a2be8327ddd572395d975e3251b3db59ecdbbdf
| 191
|
py
|
Python
|
server/src/shared_helpers/env.py
|
JackDanger/go-links
|
7ca62bdeafc59c6523e36518fd64c293e1add280
|
[
"Apache-2.0"
] | null | null | null |
server/src/shared_helpers/env.py
|
JackDanger/go-links
|
7ca62bdeafc59c6523e36518fd64c293e1add280
|
[
"Apache-2.0"
] | null | null | null |
server/src/shared_helpers/env.py
|
JackDanger/go-links
|
7ca62bdeafc59c6523e36518fd64c293e1add280
|
[
"Apache-2.0"
] | null | null | null |
import os
def current_env_is_production():
return os.getenv('SERVER_SOFTWARE', '').startswith('Google App Engine/')
def current_env_is_local():
return not current_env_is_production()
| 19.1
| 74
| 0.769634
| 27
| 191
| 5.074074
| 0.62963
| 0.218978
| 0.262774
| 0.218978
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.115183
| 191
| 9
| 75
| 21.222222
| 0.810651
| 0
| 0
| 0
| 0
| 0
| 0.172775
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.4
| true
| 0
| 0.2
| 0.4
| 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
| 1
| 1
| 0
| 0
| 1
| 0
| 0
|
0
| 8
|
2a3c2fcc859a7f19e6a2913388b5a88e2da3e6cb
| 121
|
py
|
Python
|
basic/practice_1/gym_maze/envs/__init__.py
|
link-kut/e_learning_rl
|
d35a359c84994268531429b51b8c78577b284f9c
|
[
"MIT"
] | null | null | null |
basic/practice_1/gym_maze/envs/__init__.py
|
link-kut/e_learning_rl
|
d35a359c84994268531429b51b8c78577b284f9c
|
[
"MIT"
] | 8
|
2020-11-13T18:59:22.000Z
|
2022-03-12T00:41:04.000Z
|
basic/practice_1/gym_maze/envs/__init__.py
|
link-kut/e_learning_rl
|
d35a359c84994268531429b51b8c78577b284f9c
|
[
"MIT"
] | null | null | null |
from basic.practice_1.gym_maze.envs.maze_env import *
from basic.practice_1.gym_maze.envs.maze_view_2d import MazeView2D
| 40.333333
| 66
| 0.859504
| 22
| 121
| 4.409091
| 0.545455
| 0.185567
| 0.350515
| 0.371134
| 0.680412
| 0.680412
| 0.680412
| 0.680412
| 0
| 0
| 0
| 0.035398
| 0.066116
| 121
| 2
| 67
| 60.5
| 0.823009
| 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
|
2a643240289693f5ad63000b51edbd79aa892448
| 267
|
py
|
Python
|
src/app_bundle/source/service/hello_world_service.py
|
phoopy/phoopy-skeleton
|
7ab9b7173c3d0a4cea3603a26554ca8664550d59
|
[
"MIT"
] | 3
|
2018-10-17T15:36:06.000Z
|
2020-08-17T19:12:00.000Z
|
src/app_bundle/source/service/hello_world_service.py
|
phoopy/phoopy-skeleton
|
7ab9b7173c3d0a4cea3603a26554ca8664550d59
|
[
"MIT"
] | null | null | null |
src/app_bundle/source/service/hello_world_service.py
|
phoopy/phoopy-skeleton
|
7ab9b7173c3d0a4cea3603a26554ca8664550d59
|
[
"MIT"
] | null | null | null |
class HelloWorldService(object):
def __init__(self):
self.fail_test = False
def set_fail_test(self, fail_test):
self.fail_test = fail_test
def get_hello_world_message(self):
return 'Hello world' if not self.fail_test else 'Fail'
| 26.7
| 62
| 0.689139
| 38
| 267
| 4.473684
| 0.473684
| 0.282353
| 0.282353
| 0.188235
| 0.188235
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.228464
| 267
| 9
| 63
| 29.666667
| 0.825243
| 0
| 0
| 0
| 0
| 0
| 0.05618
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.428571
| false
| 0
| 0
| 0.142857
| 0.714286
| 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
| 1
| 0
| 0
| 0
| 1
| 1
| 0
|
0
| 7
|
2a7332d3728211d61e0a9f8ae4c4a479f76d1a20
| 31,955
|
py
|
Python
|
tests/e2e/basic/performance_tests/throughput_benchmark/throughput_vs_various_pkt_sizes/wpa3_security/test_bridge_mode.py
|
DYeag/wlan-testing
|
81e879d04ea3c6a55d14a330d461d8914507e3b2
|
[
"BSD-3-Clause"
] | 7
|
2020-08-19T16:45:46.000Z
|
2022-02-10T09:55:22.000Z
|
tests/e2e/basic/performance_tests/throughput_benchmark/throughput_vs_various_pkt_sizes/wpa3_security/test_bridge_mode.py
|
DYeag/wlan-testing
|
81e879d04ea3c6a55d14a330d461d8914507e3b2
|
[
"BSD-3-Clause"
] | 47
|
2020-12-20T16:06:03.000Z
|
2022-03-23T03:01:22.000Z
|
tests/e2e/basic/performance_tests/throughput_benchmark/throughput_vs_various_pkt_sizes/wpa3_security/test_bridge_mode.py
|
DYeag/wlan-testing
|
81e879d04ea3c6a55d14a330d461d8914507e3b2
|
[
"BSD-3-Clause"
] | 9
|
2021-02-04T22:32:06.000Z
|
2021-12-14T17:45:51.000Z
|
"""
Performance Test: Throughput vs Various Pkt Size Test: Bridge Mode
pytest -m "throughput_vs_pkt and bridge"
"""
import os
import pytest
import allure
pytestmark = [pytest.mark.throughput_vs_pkt, pytest.mark.bridge, pytest.mark.wpa3,
pytest.mark.usefixtures("setup_test_run")]
setup_params_general = {
"mode": "BRIDGE",
"ssid_modes": {
"wpa3_personal": [
{"ssid_name": "ssid_wpa3_p_2g", "appliedRadios": ["2G"], "security_key": "something"},
{"ssid_name": "ssid_wpa3_p_5g", "appliedRadios": ["5G"],
"security_key": "something"}]},
"rf": {},
"radius": False
}
@allure.feature("BRIDGE MODE CLIENT CONNECTIVITY")
@pytest.mark.parametrize(
'setup_profiles',
[setup_params_general],
indirect=True,
scope="class"
)
@pytest.mark.usefixtures("setup_profiles")
class TestThroughputVsPktBridgeWpa32G(object):
"""Throughput vs Various Pkt Size Test Bridge mode
pytest -m "throughput_vs_pkt and bridge"
"""
@allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-2549", name="WIFI-2549")
@pytest.mark.wpa3_personal
@pytest.mark.twog
@pytest.mark.pkt60
def test_client_wpa3_personal_pkt_bridge_60_2g(self, get_vif_state,
lf_test, station_names_twog, create_lanforge_chamberview_dut,
get_configuration):
"""Throughput Vs Pkt Sizes Bridge Mode
pytest -m "throughput_vs_pkt and bridge and wpa3_personal and twog"
"""
profile_data = setup_params_general["ssid_modes"]["wpa3_personal"][0]
ssid_name = profile_data["ssid_name"]
security_key = profile_data["security_key"]
security = "wpa3"
mode = "BRIDGE"
band = "twog"
vlan = 1
dut_name = create_lanforge_chamberview_dut
raw_lines = [['pkts: 60'],
['directions: DUT Transmit;DUT Receive'],
['traffic_types: UDP;TCP'], ["show_3s: 1"],
["show_ll_graphs: 1"], ["show_log: 1"]]
if ssid_name not in get_vif_state:
allure.attach(name="retest,vif state ssid not available:", body=str(get_vif_state))
pytest.xfail("SSID NOT AVAILABLE IN VIF STATE")
station = lf_test.Client_Connect(ssid=ssid_name, security=security, passkey=security_key,
mode=mode, band=band,
station_name=station_names_twog, vlan_id=vlan)
if station:
dp_obj = lf_test.dataplane(station_name=station_names_twog, mode=mode,
instance_name="TIP_PERF_DPT_WPA3_2G_60",
vlan_id=vlan, dut_name=dut_name, raw_lines=raw_lines)
report_name = dp_obj.report_name[0]['LAST']["response"].split(":::")[1].split("/")[-1]
entries = os.listdir("../reports/" + report_name + '/')
pdf = False
for i in entries:
if ".pdf" in i:
pdf = i
if pdf:
allure.attach.file(source="../reports/" + report_name + "/" + pdf,
name=get_configuration["access_point"][0]["model"] + "_dataplane")
print("Test Completed... Cleaning up Stations")
lf_test.Client_disconnect(station_name=station_names_twog)
assert station
else:
assert False
@allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-2549", name="WIFI-2549")
@pytest.mark.wpa3_personal
@pytest.mark.twog
@pytest.mark.pkt142
def test_client_wpa3_personal_pkt_bridge_142_2g(self, get_vif_state,
lf_test, station_names_twog, create_lanforge_chamberview_dut,
get_configuration):
"""Throughput Vs Pkt Sizes Bridge Mode
pytest -m "throughput_vs_pkt and bridge and wpa3_personal and twog"
"""
profile_data = setup_params_general["ssid_modes"]["wpa3_personal"][0]
ssid_name = profile_data["ssid_name"]
security_key = profile_data["security_key"]
security = "wpa3"
mode = "BRIDGE"
band = "twog"
vlan = 1
dut_name = create_lanforge_chamberview_dut
raw_lines = [['pkts: 142'],
['directions: DUT Transmit;DUT Receive'],
['traffic_types: UDP;TCP'], ["show_3s: 1"],
["show_ll_graphs: 1"], ["show_log: 1"]]
if ssid_name not in get_vif_state:
allure.attach(name="retest,vif state ssid not available:", body=str(get_vif_state))
pytest.xfail("SSID NOT AVAILABLE IN VIF STATE")
station = lf_test.Client_Connect(ssid=ssid_name, security=security, passkey=security_key,
mode=mode, band=band,
station_name=station_names_twog, vlan_id=vlan)
if station:
dp_obj = lf_test.dataplane(station_name=station_names_twog, mode=mode,
instance_name="TIP_PERF_DPT_WPA3_2G_142",
vlan_id=vlan, dut_name=dut_name, raw_lines=raw_lines)
report_name = dp_obj.report_name[0]['LAST']["response"].split(":::")[1].split("/")[-1]
entries = os.listdir("../reports/" + report_name + '/')
pdf = False
for i in entries:
if ".pdf" in i:
pdf = i
if pdf:
allure.attach.file(source="../reports/" + report_name + "/" + pdf,
name=get_configuration["access_point"][0]["model"] + "_dataplane")
print("Test Completed... Cleaning up Stations")
lf_test.Client_disconnect(station_name=station_names_twog)
assert station
else:
assert False
@allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-2549", name="WIFI-2549")
@pytest.mark.wpa3_personal
@pytest.mark.twog
@pytest.mark.pkt256
def test_client_wpa3_personal_pkt_bridge_256_2g(self, get_vif_state,
lf_test, station_names_twog, create_lanforge_chamberview_dut,
get_configuration):
"""Throughput Vs Pkt Sizes Bridge Mode
pytest -m "throughput_vs_pkt and bridge and wpa3_personal and twog"
"""
profile_data = setup_params_general["ssid_modes"]["wpa3_personal"][0]
ssid_name = profile_data["ssid_name"]
security_key = profile_data["security_key"]
security = "wpa3"
mode = "BRIDGE"
band = "twog"
vlan = 1
dut_name = create_lanforge_chamberview_dut
raw_lines = [['pkts: 256'],
['directions: DUT Transmit;DUT Receive'],
['traffic_types: UDP;TCP'], ["show_3s: 1"],
["show_ll_graphs: 1"], ["show_log: 1"]]
if ssid_name not in get_vif_state:
allure.attach(name="retest,vif state ssid not available:", body=str(get_vif_state))
pytest.xfail("SSID NOT AVAILABLE IN VIF STATE")
station = lf_test.Client_Connect(ssid=ssid_name, security=security, passkey=security_key,
mode=mode, band=band,
station_name=station_names_twog, vlan_id=vlan)
if station:
dp_obj = lf_test.dataplane(station_name=station_names_twog, mode=mode,
instance_name="TIP_PERF_DPT_WPA3_2G_256",
vlan_id=vlan, dut_name=dut_name, raw_lines=raw_lines)
report_name = dp_obj.report_name[0]['LAST']["response"].split(":::")[1].split("/")[-1]
entries = os.listdir("../reports/" + report_name + '/')
pdf = False
for i in entries:
if ".pdf" in i:
pdf = i
if pdf:
allure.attach.file(source="../reports/" + report_name + "/" + pdf,
name=get_configuration["access_point"][0]["model"] + "_dataplane")
print("Test Completed... Cleaning up Stations")
lf_test.Client_disconnect(station_name=station_names_twog)
assert station
else:
assert False
@allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-2549", name="WIFI-2549")
@pytest.mark.wpa3_personal
@pytest.mark.twog
@pytest.mark.pkt512
def test_client_wpa3_personal_pkt_bridge_512_2g(self, get_vif_state,
lf_test, station_names_twog, create_lanforge_chamberview_dut,
get_configuration):
"""Throughput Vs Pkt Sizes Bridge Mode
pytest -m "throughput_vs_pkt and bridge and wpa3_personal and twog"
"""
profile_data = setup_params_general["ssid_modes"]["wpa3_personal"][0]
ssid_name = profile_data["ssid_name"]
security_key = profile_data["security_key"]
security = "wpa3"
mode = "BRIDGE"
band = "twog"
vlan = 1
dut_name = create_lanforge_chamberview_dut
raw_lines = [['pkts: 512'],
['directions: DUT Transmit;DUT Receive'],
['traffic_types: UDP;TCP'], ["show_3s: 1"],
["show_ll_graphs: 1"], ["show_log: 1"]]
if ssid_name not in get_vif_state:
allure.attach(name="retest,vif state ssid not available:", body=str(get_vif_state))
pytest.xfail("SSID NOT AVAILABLE IN VIF STATE")
station = lf_test.Client_Connect(ssid=ssid_name, security=security, passkey=security_key,
mode=mode, band=band,
station_name=station_names_twog, vlan_id=vlan)
if station:
dp_obj = lf_test.dataplane(station_name=station_names_twog, mode=mode,
instance_name="TIP_PERF_DPT_WPA3_2G_512",
vlan_id=vlan, dut_name=dut_name, raw_lines=raw_lines)
report_name = dp_obj.report_name[0]['LAST']["response"].split(":::")[1].split("/")[-1]
entries = os.listdir("../reports/" + report_name + '/')
pdf = False
for i in entries:
if ".pdf" in i:
pdf = i
if pdf:
allure.attach.file(source="../reports/" + report_name + "/" + pdf,
name=get_configuration["access_point"][0]["model"] + "_dataplane")
print("Test Completed... Cleaning up Stations")
lf_test.Client_disconnect(station_name=station_names_twog)
assert station
else:
assert False
@allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-2549", name="WIFI-2549")
@pytest.mark.wpa3_personal
@pytest.mark.twog
@pytest.mark.pkt1024
def test_client_wpa3_personal_pkt_bridge_1024_2g(self, get_vif_state,
lf_test, station_names_twog, create_lanforge_chamberview_dut,
get_configuration):
"""Throughput Vs Pkt Sizes Bridge Mode
pytest -m "throughput_vs_pkt and bridge and wpa3_personal and twog"
"""
profile_data = setup_params_general["ssid_modes"]["wpa3_personal"][0]
ssid_name = profile_data["ssid_name"]
security_key = profile_data["security_key"]
security = "wpa3"
mode = "BRIDGE"
band = "twog"
vlan = 1
dut_name = create_lanforge_chamberview_dut
raw_lines = [['pkts: 1024'],
['directions: DUT Transmit;DUT Receive'],
['traffic_types: UDP;TCP'], ["show_3s: 1"],
["show_ll_graphs: 1"], ["show_log: 1"]]
if ssid_name not in get_vif_state:
allure.attach(name="retest,vif state ssid not available:", body=str(get_vif_state))
pytest.xfail("SSID NOT AVAILABLE IN VIF STATE")
station = lf_test.Client_Connect(ssid=ssid_name, security=security, passkey=security_key,
mode=mode, band=band,
station_name=station_names_twog, vlan_id=vlan)
if station:
dp_obj = lf_test.dataplane(station_name=station_names_twog, mode=mode,
instance_name="TIP_PERF_DPT_WPA3_2G_1024",
vlan_id=vlan, dut_name=dut_name, raw_lines=raw_lines)
report_name = dp_obj.report_name[0]['LAST']["response"].split(":::")[1].split("/")[-1]
entries = os.listdir("../reports/" + report_name + '/')
pdf = False
for i in entries:
if ".pdf" in i:
pdf = i
if pdf:
allure.attach.file(source="../reports/" + report_name + "/" + pdf,
name=get_configuration["access_point"][0]["model"] + "_dataplane")
print("Test Completed... Cleaning up Stations")
lf_test.Client_disconnect(station_name=station_names_twog)
assert station
else:
assert False
@allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-2549", name="WIFI-2549")
@pytest.mark.wpa3_personal
@pytest.mark.twog
@pytest.mark.pktMTU
def test_client_wpa3_personal_pkt_bridge_MTU_2g(self, get_vif_state,
lf_test, station_names_twog, create_lanforge_chamberview_dut,
get_configuration):
"""Throughput Vs Pkt Sizes Bridge Mode
pytest -m "throughput_vs_pkt and bridge and wpa3_personal and twog"
"""
profile_data = setup_params_general["ssid_modes"]["wpa3_personal"][0]
ssid_name = profile_data["ssid_name"]
security_key = profile_data["security_key"]
security = "wpa3"
mode = "BRIDGE"
band = "twog"
vlan = 1
dut_name = create_lanforge_chamberview_dut
raw_lines = [['pkts: MTU'],
['directions: DUT Transmit;DUT Receive'],
['traffic_types: UDP;TCP'], ["show_3s: 1"],
["show_ll_graphs: 1"], ["show_log: 1"]]
if ssid_name not in get_vif_state:
allure.attach(name="retest,vif state ssid not available:", body=str(get_vif_state))
pytest.xfail("SSID NOT AVAILABLE IN VIF STATE")
station = lf_test.Client_Connect(ssid=ssid_name, security=security, passkey=security_key,
mode=mode, band=band,
station_name=station_names_twog, vlan_id=vlan)
if station:
dp_obj = lf_test.dataplane(station_name=station_names_twog, mode=mode,
instance_name="TIP_PERF_DPT_WPA3_2G_MTU",
vlan_id=vlan, dut_name=dut_name, raw_lines=raw_lines)
report_name = dp_obj.report_name[0]['LAST']["response"].split(":::")[1].split("/")[-1]
entries = os.listdir("../reports/" + report_name + '/')
pdf = False
for i in entries:
if ".pdf" in i:
pdf = i
if pdf:
allure.attach.file(source="../reports/" + report_name + "/" + pdf,
name=get_configuration["access_point"][0]["model"] + "_dataplane")
print("Test Completed... Cleaning up Stations")
lf_test.Client_disconnect(station_name=station_names_twog)
assert station
else:
assert False
setup_params_5g = {
"mode": "BRIDGE",
"ssid_modes": {
"wpa3_personal": [
{"ssid_name": "ssid_wpa3_p_2g", "appliedRadios": ["2G"], "security_key": "something"},
{"ssid_name": "ssid_wpa3_p_5g", "appliedRadios": ["5G"],
"security_key": "something"}]},
"rf": {},
"radius": False
}
@allure.feature("BRIDGE MODE CLIENT CONNECTIVITY")
@pytest.mark.parametrize(
'setup_profiles',
[setup_params_5g],
indirect=True,
scope="class"
)
@pytest.mark.usefixtures("setup_profiles")
class TestThroughputVsPktBridgeWpa35G(object):
"""Throughput vs Various Pkt Size Test Bridge mode
pytest -m "throughput_vs_pkt and bridge"
"""
@allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-2549", name="WIFI-2549")
@pytest.mark.wpa3_personal
@pytest.mark.fiveg
@pytest.mark.pkt60
def test_client_wpa3_personal_pkt_bridge_60_5g(self, get_vif_state,
lf_test, station_names_fiveg, create_lanforge_chamberview_dut,
get_configuration):
"""Throughput Vs Pkt Sizes Bridge Mode
pytest -m "throughput_vs_pkt and bridge and wpa3_personal and fiveg"
"""
profile_data = setup_params_5g["ssid_modes"]["wpa3_personal"][1]
ssid_name = profile_data["ssid_name"]
security_key = profile_data["security_key"]
security = "wpa3"
mode = "BRIDGE"
band = "fiveg"
vlan = 1
dut_name = create_lanforge_chamberview_dut
raw_lines = [['pkts: 60'],
['directions: DUT Transmit;DUT Receive'],
['traffic_types: UDP;TCP'], ["show_3s: 1"],
["show_ll_graphs: 1"], ["show_log: 1"]]
if ssid_name not in get_vif_state:
allure.attach(name="retest,vif state ssid not available:", body=str(get_vif_state))
pytest.xfail("SSID NOT AVAILABLE IN VIF STATE")
station = lf_test.Client_Connect(ssid=ssid_name, security=security, passkey=security_key,
mode=mode, band=band,
station_name=station_names_fiveg, vlan_id=vlan)
if station:
dp_obj = lf_test.dataplane(station_name=station_names_fiveg, mode=mode,
instance_name="TIP_PERF_THRU_PKT_WPA3_5G_60",
vlan_id=vlan, dut_name=dut_name, raw_lines=raw_lines)
report_name = dp_obj.report_name[0]['LAST']["response"].split(":::")[1].split("/")[-1]
entries = os.listdir("../reports/" + report_name + '/')
pdf = False
for i in entries:
if ".pdf" in i:
pdf = i
if pdf:
allure.attach.file(source="../reports/" + report_name + "/" + pdf,
name=get_configuration["access_point"][0]["model"] + "_dataplane")
print("Test Completed... Cleaning up Stations")
lf_test.Client_disconnect(station_name=station_names_fiveg)
assert station
else:
assert False
@allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-2549", name="WIFI-2549")
@pytest.mark.wpa3_personal
@pytest.mark.fiveg
@pytest.mark.pkt142
def test_client_wpa3_personal_pkt_bridge_142_5g(self, get_vif_state,
lf_test, station_names_fiveg, create_lanforge_chamberview_dut,
get_configuration):
"""Throughput Vs Pkt Sizes Bridge Mode
pytest -m "throughput_vs_pkt and bridge and wpa3_personal and fiveg"
"""
profile_data = setup_params_5g["ssid_modes"]["wpa3_personal"][1]
ssid_name = profile_data["ssid_name"]
security_key = profile_data["security_key"]
security = "wpa3"
mode = "BRIDGE"
band = "fiveg"
vlan = 1
dut_name = create_lanforge_chamberview_dut
raw_lines = [['pkts: 142'],
['directions: DUT Transmit;DUT Receive'],
['traffic_types: UDP;TCP'], ["show_3s: 1"],
["show_ll_graphs: 1"], ["show_log: 1"]]
if ssid_name not in get_vif_state:
allure.attach(name="retest,vif state ssid not available:", body=str(get_vif_state))
pytest.xfail("SSID NOT AVAILABLE IN VIF STATE")
station = lf_test.Client_Connect(ssid=ssid_name, security=security, passkey=security_key,
mode=mode, band=band,
station_name=station_names_fiveg, vlan_id=vlan)
if station:
dp_obj = lf_test.dataplane(station_name=station_names_fiveg, mode=mode,
instance_name="TIP_PERF_THRU_PKT_WPA3_5G_142",
vlan_id=vlan, dut_name=dut_name, raw_lines=raw_lines)
report_name = dp_obj.report_name[0]['LAST']["response"].split(":::")[1].split("/")[-1]
entries = os.listdir("../reports/" + report_name + '/')
pdf = False
for i in entries:
if ".pdf" in i:
pdf = i
if pdf:
allure.attach.file(source="../reports/" + report_name + "/" + pdf,
name=get_configuration["access_point"][0]["model"] + "_dataplane")
print("Test Completed... Cleaning up Stations")
lf_test.Client_disconnect(station_name=station_names_fiveg)
assert station
else:
assert False
@allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-2549", name="WIFI-2549")
@pytest.mark.wpa3_personal
@pytest.mark.fiveg
@pytest.mark.pkt256
def test_client_wpa3_personal_pkt_bridge_256_5g(self, get_vif_state,
lf_test, station_names_fiveg, create_lanforge_chamberview_dut,
get_configuration):
"""Throughput Vs Pkt Sizes Bridge Mode
pytest -m "throughput_vs_pkt and bridge and wpa3_personal and fiveg"
"""
profile_data = setup_params_5g["ssid_modes"]["wpa3_personal"][1]
ssid_name = profile_data["ssid_name"]
security_key = profile_data["security_key"]
security = "wpa3"
mode = "BRIDGE"
band = "fiveg"
vlan = 1
dut_name = create_lanforge_chamberview_dut
raw_lines = [['pkts: 256'],
['directions: DUT Transmit;DUT Receive'],
['traffic_types: UDP;TCP'], ["show_3s: 1"],
["show_ll_graphs: 1"], ["show_log: 1"]]
if ssid_name not in get_vif_state:
allure.attach(name="retest,vif state ssid not available:", body=str(get_vif_state))
pytest.xfail("SSID NOT AVAILABLE IN VIF STATE")
station = lf_test.Client_Connect(ssid=ssid_name, security=security, passkey=security_key,
mode=mode, band=band,
station_name=station_names_fiveg, vlan_id=vlan)
if station:
dp_obj = lf_test.dataplane(station_name=station_names_fiveg, mode=mode,
instance_name="TIP_PERF_THRU_PKT_WPA3_5G_256",
vlan_id=vlan, dut_name=dut_name, raw_lines=raw_lines)
report_name = dp_obj.report_name[0]['LAST']["response"].split(":::")[1].split("/")[-1]
entries = os.listdir("../reports/" + report_name + '/')
pdf = False
for i in entries:
if ".pdf" in i:
pdf = i
if pdf:
allure.attach.file(source="../reports/" + report_name + "/" + pdf,
name=get_configuration["access_point"][0]["model"] + "_dataplane")
print("Test Completed... Cleaning up Stations")
lf_test.Client_disconnect(station_name=station_names_fiveg)
assert station
else:
assert False
@allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-2549", name="WIFI-2549")
@pytest.mark.wpa3_personal
@pytest.mark.fiveg
@pytest.mark.pkt512
def test_client_wpa3_personal_pkt_bridge_512_5g(self, get_vif_state,
lf_test, station_names_fiveg, create_lanforge_chamberview_dut,
get_configuration):
"""Throughput Vs Pkt Sizes Bridge Mode
pytest -m "throughput_vs_pkt and bridge and wpa3_personal and fiveg"
"""
profile_data = setup_params_5g["ssid_modes"]["wpa3_personal"][1]
ssid_name = profile_data["ssid_name"]
security_key = profile_data["security_key"]
security = "wpa3"
mode = "BRIDGE"
band = "fiveg"
vlan = 1
dut_name = create_lanforge_chamberview_dut
raw_lines = [['pkts: 512'],
['directions: DUT Transmit;DUT Receive'],
['traffic_types: UDP;TCP'], ["show_3s: 1"],
["show_ll_graphs: 1"], ["show_log: 1"]]
if ssid_name not in get_vif_state:
allure.attach(name="retest,vif state ssid not available:", body=str(get_vif_state))
pytest.xfail("SSID NOT AVAILABLE IN VIF STATE")
station = lf_test.Client_Connect(ssid=ssid_name, security=security, passkey=security_key,
mode=mode, band=band,
station_name=station_names_fiveg, vlan_id=vlan)
if station:
dp_obj = lf_test.dataplane(station_name=station_names_fiveg, mode=mode,
instance_name="TIP_PERF_THRU_PKT_WPA3_5G_512",
vlan_id=vlan, dut_name=dut_name, raw_lines=raw_lines)
report_name = dp_obj.report_name[0]['LAST']["response"].split(":::")[1].split("/")[-1]
entries = os.listdir("../reports/" + report_name + '/')
pdf = False
for i in entries:
if ".pdf" in i:
pdf = i
if pdf:
allure.attach.file(source="../reports/" + report_name + "/" + pdf,
name=get_configuration["access_point"][0]["model"] + "_dataplane")
print("Test Completed... Cleaning up Stations")
lf_test.Client_disconnect(station_name=station_names_fiveg)
assert station
else:
assert False
@allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-2549", name="WIFI-2549")
@pytest.mark.wpa3_personal
@pytest.mark.fiveg
@pytest.mark.pkt1024
def test_client_wpa3_personal_pkt_bridge_1024_5g(self, get_vif_state,
lf_test, station_names_fiveg, create_lanforge_chamberview_dut,
get_configuration):
"""Throughput Vs Pkt Sizes Bridge Mode
pytest -m "throughput_vs_pkt and bridge and wpa3_personal and fiveg"
"""
profile_data = setup_params_5g["ssid_modes"]["wpa3_personal"][1]
ssid_name = profile_data["ssid_name"]
security_key = profile_data["security_key"]
security = "wpa3"
mode = "BRIDGE"
band = "fiveg"
vlan = 1
dut_name = create_lanforge_chamberview_dut
raw_lines = [['pkts: 1024'],
['directions: DUT Transmit;DUT Receive'],
['traffic_types: UDP;TCP'], ["show_3s: 1"],
["show_ll_graphs: 1"], ["show_log: 1"]]
if ssid_name not in get_vif_state:
allure.attach(name="retest,vif state ssid not available:", body=str(get_vif_state))
pytest.xfail("SSID NOT AVAILABLE IN VIF STATE")
station = lf_test.Client_Connect(ssid=ssid_name, security=security, passkey=security_key,
mode=mode, band=band,
station_name=station_names_fiveg, vlan_id=vlan)
if station:
dp_obj = lf_test.dataplane(station_name=station_names_fiveg, mode=mode,
instance_name="TIP_PERF_THRU_PKT_WPA3_5G_1024",
vlan_id=vlan, dut_name=dut_name, raw_lines=raw_lines)
report_name = dp_obj.report_name[0]['LAST']["response"].split(":::")[1].split("/")[-1]
entries = os.listdir("../reports/" + report_name + '/')
pdf = False
for i in entries:
if ".pdf" in i:
pdf = i
if pdf:
allure.attach.file(source="../reports/" + report_name + "/" + pdf,
name=get_configuration["access_point"][0]["model"] + "_dataplane")
print("Test Completed... Cleaning up Stations")
lf_test.Client_disconnect(station_name=station_names_fiveg)
assert station
else:
assert False
@allure.testcase(url="https://telecominfraproject.atlassian.net/browse/WIFI-2549", name="WIFI-2549")
@pytest.mark.wpa3_personal
@pytest.mark.fiveg
@pytest.mark.pktMTU
def test_client_wpa3_personal_pkt_bridge_MTU_5g(self, get_vif_state,
lf_test, station_names_fiveg, create_lanforge_chamberview_dut,
get_configuration):
"""Throughput Vs Pkt Sizes Bridge Mode
pytest -m "throughput_vs_pkt and bridge and wpa3_personal and fiveg"
"""
profile_data = setup_params_5g["ssid_modes"]["wpa3_personal"][1]
ssid_name = profile_data["ssid_name"]
security_key = profile_data["security_key"]
security = "wpa3"
mode = "BRIDGE"
band = "fiveg"
vlan = 1
dut_name = create_lanforge_chamberview_dut
raw_lines = [['pkts: MTU'],
['directions: DUT Transmit;DUT Receive'],
['traffic_types: UDP;TCP'], ["show_3s: 1"],
["show_ll_graphs: 1"], ["show_log: 1"]]
if ssid_name not in get_vif_state:
allure.attach(name="retest,vif state ssid not available:", body=str(get_vif_state))
pytest.xfail("SSID NOT AVAILABLE IN VIF STATE")
station = lf_test.Client_Connect(ssid=ssid_name, security=security, passkey=security_key,
mode=mode, band=band,
station_name=station_names_fiveg, vlan_id=vlan)
if station:
dp_obj = lf_test.dataplane(station_name=station_names_fiveg, mode=mode,
instance_name="TIP_PERF_THRU_PKT_WPA3_5G_MTU",
vlan_id=vlan, dut_name=dut_name, raw_lines=raw_lines)
report_name = dp_obj.report_name[0]['LAST']["response"].split(":::")[1].split("/")[-1]
entries = os.listdir("../reports/" + report_name + '/')
pdf = False
for i in entries:
if ".pdf" in i:
pdf = i
if pdf:
allure.attach.file(source="../reports/" + report_name + "/" + pdf,
name=get_configuration["access_point"][0]["model"] + "_dataplane")
print("Test Completed... Cleaning up Stations")
lf_test.Client_disconnect(station_name=station_names_fiveg)
assert station
else:
assert False
| 50.007825
| 108
| 0.561602
| 3,569
| 31,955
| 4.73466
| 0.042029
| 0.028406
| 0.023435
| 0.049
| 0.985383
| 0.985383
| 0.985383
| 0.985383
| 0.985383
| 0.985383
| 0
| 0.02142
| 0.329401
| 31,955
| 638
| 109
| 50.086207
| 0.767138
| 0.048161
| 0
| 0.930233
| 0
| 0
| 0.188132
| 0.010577
| 0
| 0
| 0
| 0
| 0.042934
| 1
| 0.021467
| false
| 0.021467
| 0.005367
| 0
| 0.030411
| 0.021467
| 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
|
aa5d5d69b2960a5ef3929677438eafe608f2eeae
| 521
|
py
|
Python
|
LearningHardWay/20200422/ex_3.py
|
kevinnls/python
|
ecd483e4666da9afe84662210751f2e3d8d94d16
|
[
"MIT"
] | null | null | null |
LearningHardWay/20200422/ex_3.py
|
kevinnls/python
|
ecd483e4666da9afe84662210751f2e3d8d94d16
|
[
"MIT"
] | null | null | null |
LearningHardWay/20200422/ex_3.py
|
kevinnls/python
|
ecd483e4666da9afe84662210751f2e3d8d94d16
|
[
"MIT"
] | null | null | null |
print("1. 7-5 is " + str(7-5))
print("2. 7 is greater than 6: " + str(7>6))
print('3. is it true that, "4+7" is greater than or equal to "6+5"? ' + str(4+7>=6+5))
print("\nalternate method#1")
print(f"1. 7-5 is {7-5}")
print(f"2. 7 is greater than 6: {7>6}")
print(f'3. is it true that, \"4+7\" is greater than or equal to \"6+5\"? {4+7>=6+5}')
print("\nalternate method#2")
print("1. 7-5 is",7-5)
print("2. 7 is greater than 6:",7>6)
print('3. is it true that, \"4+7\" is greater than or equal to \"6+5\"?',4+7>=6+5)
| 34.733333
| 86
| 0.585413
| 122
| 521
| 2.5
| 0.172131
| 0.039344
| 0.196721
| 0.27541
| 0.937705
| 0.888525
| 0.888525
| 0.681967
| 0.681967
| 0.455738
| 0
| 0.135321
| 0.163148
| 521
| 14
| 87
| 37.214286
| 0.56422
| 0
| 0
| 0
| 0
| 0.272727
| 0.673077
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| null | 0
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 1
|
0
| 9
|
aa61a6ba899a14b0cf27b51d64ece7a7a1f27c65
| 106
|
py
|
Python
|
easy_prime.py
|
konglx90/algorithm
|
e79a0753d01a39f33482e5d33663ea81ecd435f8
|
[
"MIT"
] | null | null | null |
easy_prime.py
|
konglx90/algorithm
|
e79a0753d01a39f33482e5d33663ea81ecd435f8
|
[
"MIT"
] | null | null | null |
easy_prime.py
|
konglx90/algorithm
|
e79a0753d01a39f33482e5d33663ea81ecd435f8
|
[
"MIT"
] | null | null | null |
print [x for x in range(3, 10000000, 2) if not [y for y in range(3, int(x ** 0.5) + 1, 2) if x % y == 0]]
| 53
| 105
| 0.54717
| 27
| 106
| 2.148148
| 0.555556
| 0.241379
| 0.275862
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.202532
| 0.254717
| 106
| 1
| 106
| 106
| 0.531646
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | null | 0
| 0
| null | null | 1
| 1
| 0
| 0
| null | 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 1
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 1
|
0
| 8
|
aa8c2b7a36e58fd93ef428ce5b92304861ccbc8a
| 66
|
py
|
Python
|
splusdata/vacs/__init__.py
|
ErikVini/splusdata
|
a004941471697e3d7cdfbf5b30b7b7eb6dd6fba5
|
[
"Apache-2.0"
] | 11
|
2020-11-05T12:11:29.000Z
|
2021-08-01T17:01:16.000Z
|
splusdata/vacs/__init__.py
|
ErikVini/splusdata
|
a004941471697e3d7cdfbf5b30b7b7eb6dd6fba5
|
[
"Apache-2.0"
] | 2
|
2022-01-29T00:59:46.000Z
|
2022-03-30T18:06:43.000Z
|
splusdata/vacs/__init__.py
|
ErikVini/splusdata
|
a004941471697e3d7cdfbf5b30b7b7eb6dd6fba5
|
[
"Apache-2.0"
] | 4
|
2021-01-21T18:18:15.000Z
|
2021-05-28T12:54:25.000Z
|
from splusdata.vacs.sqg import *
from splusdata.vacs.pdfs import *
| 33
| 33
| 0.80303
| 10
| 66
| 5.3
| 0.6
| 0.490566
| 0.641509
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.106061
| 66
| 2
| 33
| 33
| 0.898305
| 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
|
aabbfdcc573e7f6fb6585cea4e5bcb76e81ea9c4
| 44
|
py
|
Python
|
tensorflow_probability/my_tfp_bdl/datasets/cifar100.py
|
zhoudoao-bayes/tf-probability
|
2c8975cad9ab4103f4fb2b277c4ed0763a488796
|
[
"Apache-2.0"
] | null | null | null |
tensorflow_probability/my_tfp_bdl/datasets/cifar100.py
|
zhoudoao-bayes/tf-probability
|
2c8975cad9ab4103f4fb2b277c4ed0763a488796
|
[
"Apache-2.0"
] | null | null | null |
tensorflow_probability/my_tfp_bdl/datasets/cifar100.py
|
zhoudoao-bayes/tf-probability
|
2c8975cad9ab4103f4fb2b277c4ed0763a488796
|
[
"Apache-2.0"
] | null | null | null |
# Todo: add cifar100 dataset. -2020.5.26
| 22
| 43
| 0.659091
| 7
| 44
| 4.142857
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.285714
| 0.204545
| 44
| 1
| 44
| 44
| 0.542857
| 0.931818
| 0
| null | 0
| null | 0
| 0
| null | 0
| 0
| 1
| null | 1
| null | true
| 0
| 0
| null | null | null | 1
| 1
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 1
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 1
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
2a9e14389c45045c265b7dee23bb9551a5cb8ede
| 14,564
|
py
|
Python
|
data/external/repositories_2to3/132160/kaggle-ndsb-master/dihedral.py
|
Keesiu/meta-kaggle
|
87de739aba2399fd31072ee81b391f9b7a63f540
|
[
"MIT"
] | null | null | null |
data/external/repositories_2to3/132160/kaggle-ndsb-master/dihedral.py
|
Keesiu/meta-kaggle
|
87de739aba2399fd31072ee81b391f9b7a63f540
|
[
"MIT"
] | null | null | null |
data/external/repositories_2to3/132160/kaggle-ndsb-master/dihedral.py
|
Keesiu/meta-kaggle
|
87de739aba2399fd31072ee81b391f9b7a63f540
|
[
"MIT"
] | 1
|
2019-12-04T08:23:33.000Z
|
2019-12-04T08:23:33.000Z
|
import numpy as np
import theano.tensor as T
import lasagne as nn
# some helper functions that rotate arrays on the trailing axes.
# these should work for both Theano expressions and numpy arrays.
def array_tf_0(arr):
return arr
def array_tf_90(arr):
axes_order = list(range(arr.ndim - 2)) + [arr.ndim - 1, arr.ndim - 2]
slices = [slice(None) for _ in range(arr.ndim - 2)] + [slice(None), slice(None, None, -1)]
return arr[tuple(slices)].transpose(axes_order)
def array_tf_180(arr):
slices = [slice(None) for _ in range(arr.ndim - 2)] + [slice(None, None, -1), slice(None, None, -1)]
return arr[tuple(slices)]
def array_tf_270(arr):
axes_order = list(range(arr.ndim - 2)) + [arr.ndim - 1, arr.ndim - 2]
slices = [slice(None) for _ in range(arr.ndim - 2)] + [slice(None, None, -1), slice(None)]
return arr[tuple(slices)].transpose(axes_order)
def array_tf_0f(arr): # horizontal flip
slices = [slice(None) for _ in range(arr.ndim - 2)] + [slice(None), slice(None, None, -1)]
return arr[tuple(slices)]
def array_tf_90f(arr):
axes_order = list(range(arr.ndim - 2)) + [arr.ndim - 1, arr.ndim - 2]
slices = [slice(None) for _ in range(arr.ndim - 2)] + [slice(None), slice(None)]
# slicing does nothing here, technically I could get rid of it.
return arr[tuple(slices)].transpose(axes_order)
def array_tf_180f(arr):
slices = [slice(None) for _ in range(arr.ndim - 2)] + [slice(None, None, -1), slice(None)]
return arr[tuple(slices)]
def array_tf_270f(arr):
axes_order = list(range(arr.ndim - 2)) + [arr.ndim - 1, arr.ndim - 2]
slices = [slice(None) for _ in range(arr.ndim - 2)] + [slice(None, None, -1), slice(None, None, -1)]
return arr[tuple(slices)].transpose(axes_order)
# c01b versions of the helper functions
def array_tf_0_c01b(arr):
return arr
def array_tf_90_c01b(arr):
axes_order = [0, 2, 1, 3]
slices = [slice(None), slice(None), slice(None, None, -1), slice(None)]
return arr[tuple(slices)].transpose(axes_order)
def array_tf_180_c01b(arr):
slices = [slice(None), slice(None, None, -1), slice(None, None, -1), slice(None)]
return arr[tuple(slices)]
def array_tf_270_c01b(arr):
axes_order = [0, 2, 1, 3]
slices = [slice(None), slice(None, None, -1), slice(None), slice(None)]
return arr[tuple(slices)].transpose(axes_order)
def array_tf_0f_c01b(arr): # horizontal flip
slices = [slice(None), slice(None), slice(None, None, -1), slice(None)]
return arr[tuple(slices)]
def array_tf_90f_c01b(arr):
axes_order = [0, 2, 1, 3]
slices = [slice(None), slice(None), slice(None), slice(None)]
# slicing does nothing here, technically I could get rid of it.
return arr[tuple(slices)].transpose(axes_order)
def array_tf_180f_c01b(arr):
slices = [slice(None), slice(None, None, -1), slice(None), slice(None)]
return arr[tuple(slices)]
def array_tf_270f_c01b(arr):
axes_order = [0, 2, 1, 3]
slices = [slice(None), slice(None, None, -1), slice(None, None, -1), slice(None)]
return arr[tuple(slices)].transpose(axes_order)
class CyclicSliceLayer(nn.layers.Layer):
"""
This layer stacks rotations of 0, 90, 180, and 270 degrees of the input
along the batch dimension.
If the input has shape (batch_size, num_channels, r, c),
then the output will have shape (4 * batch_size, num_channels, r, c).
Note that the stacking happens on axis 0, so a reshape to
(4, batch_size, num_channels, r, c) will separate the slice axis.
"""
def __init__(self, input_layer):
super(CyclicSliceLayer, self).__init__(input_layer)
def get_output_shape_for(self, input_shape):
return (4 * input_shape[0],) + input_shape[1:]
def get_output_for(self, input, *args, **kwargs):
return nn.utils.concatenate([
array_tf_0(input),
array_tf_90(input),
array_tf_180(input),
array_tf_270(input),
], axis=0)
class DihedralSliceLayer(nn.layers.Layer):
"""
This layer stacks rotations of 0, 90, 180, and 270 degrees of the input,
as well as their horizontal flips, along the batch dimension.
If the input has shape (batch_size, num_channels, r, c),
then the output will have shape (8 * batch_size, num_channels, r, c).
Note that the stacking happens on axis 0, so a reshape to
(8, batch_size, num_channels, r, c) will separate the slice axis.
"""
def __init__(self, input_layer):
super(DihedralSliceLayer, self).__init__(input_layer)
def get_output_shape_for(self, input_shape):
return (8 * input_shape[0],) + input_shape[1:]
def get_output_for(self, input, *args, **kwargs):
return nn.utils.concatenate([
array_tf_0(input),
array_tf_90(input),
array_tf_180(input),
array_tf_270(input),
array_tf_0f(input),
array_tf_90f(input),
array_tf_180f(input),
array_tf_270f(input),
], axis=0)
class CyclicRollLayer(nn.layers.Layer):
"""
This layer turns (n_views * batch_size, num_features) into
(n_views * batch_size, n_views * num_features) by rolling
and concatenating feature maps.
"""
def __init__(self, input_layer):
super(CyclicRollLayer, self).__init__(input_layer)
self.compute_permutation_matrix()
def compute_permutation_matrix(self):
map_identity = np.arange(4)
map_rot90 = np.array([1, 2, 3, 0])
valid_maps = []
current_map = map_identity
for k in range(4):
valid_maps.append(current_map)
current_map = current_map[map_rot90]
self.perm_matrix = np.array(valid_maps)
def get_output_shape_for(self, input_shape):
return (input_shape[0], 4*input_shape[1])
def get_output_for(self, input, *args, **kwargs):
s = input.shape
input_unfolded = input.reshape((4, s[0] // 4, s[1]))
permuted_inputs = []
for p in self.perm_matrix:
input_permuted = input_unfolded[p].reshape(s)
permuted_inputs.append(input_permuted)
return nn.utils.concatenate(permuted_inputs, axis=1) # concatenate long the channel axis
class DihedralRollLayer(nn.layers.Layer):
"""
This layer turns (n_views * batch_size, num_features) into
(n_views * batch_size, n_views * num_features) by rolling
and concatenating feature maps.
"""
def __init__(self, input_layer):
super(DihedralRollLayer, self).__init__(input_layer)
self.compute_permutation_matrix()
def compute_permutation_matrix(self):
map_identity = np.arange(8)
map_rot90 = np.array([1, 2, 3, 0, 5, 6, 7, 4]) # 7, 4, 5, 6]) # CORRECTED
map_flip = np.array([4, 5, 6, 7, 0, 1, 2, 3])
valid_maps = []
current_map = map_identity
for k in range(4):
valid_maps.append(current_map)
current_map = current_map[map_rot90]
for k in range(4):
valid_maps.append(current_map[map_flip])
current_map = current_map[map_rot90]
self.perm_matrix = np.array(valid_maps)
def get_output_shape_for(self, input_shape):
return (input_shape[0], 8*input_shape[1])
def get_output_for(self, input, *args, **kwargs):
s = input.shape
input_unfolded = input.reshape((8, s[0] // 8, s[1]))
permuted_inputs = []
for p in self.perm_matrix:
input_permuted = input_unfolded[p].reshape(s)
permuted_inputs.append(input_permuted)
return nn.utils.concatenate(permuted_inputs, axis=1) # concatenate long the channel axis
class CyclicConvRollLayer(CyclicRollLayer):
"""
This layer turns (n_views * batch_size, num_channels, r, c) into
(n_views * batch_size, n_views * num_channels, r, c) by rolling
and concatenating feature maps.
It also applies the correct inverse transforms to the r and c
dimensions to align the feature maps.
"""
def __init__(self, input_layer):
super(CyclicConvRollLayer, self).__init__(input_layer)
self.inv_tf_funcs = [array_tf_0, array_tf_270, array_tf_180, array_tf_90]
def get_output_shape_for(self, input_shape):
return (input_shape[0], 4*input_shape[1]) + input_shape[2:]
def get_output_for(self, input, *args, **kwargs):
s = input.shape
input_unfolded = input.reshape((4, s[0] // 4, s[1], s[2], s[3]))
permuted_inputs = []
for p, inv_tf in zip(self.perm_matrix, self.inv_tf_funcs):
input_permuted = inv_tf(input_unfolded[p].reshape(s))
permuted_inputs.append(input_permuted)
return nn.utils.concatenate(permuted_inputs, axis=1) # concatenate long the channel axis
class DihedralConvRollLayer(DihedralRollLayer):
"""
This layer turns (n_views * batch_size, num_channels, r, c) into
(n_views * batch_size, n_views * num_channels, r, c) by rolling
and concatenating feature maps.
It also applies the correct inverse transforms to the r and c
dimensions to align the feature maps.
"""
def __init__(self, input_layer):
super(DihedralConvRollLayer, self).__init__(input_layer)
self.inv_tf_funcs = [array_tf_0, array_tf_270, array_tf_180, array_tf_90,
array_tf_0f, array_tf_90f, array_tf_180f, array_tf_270f]
raise RuntimeError("The implementation of this class is not correct.")
def get_output_shape_for(self, input_shape):
return (input_shape[0], 8*input_shape[1]) + input_shape[2:]
def get_output_for(self, input, *args, **kwargs):
s = input.shape
input_unfolded = input.reshape((8, s[0] // 8, s[1], s[2], s[3]))
permuted_inputs = []
for p, inv_tf in zip(self.perm_matrix, self.inv_tf_funcs):
input_permuted = inv_tf(input_unfolded[p].reshape(s))
permuted_inputs.append(input_permuted)
return nn.utils.concatenate(permuted_inputs, axis=1) # concatenate along the channel axis
class CyclicConvRollLayer_c01b(CyclicConvRollLayer):
"""
This layer turns (n_views * batch_size, num_channels, r, c) into
(n_views * batch_size, n_views * num_channels, r, c) by rolling
and concatenating feature maps.
It also applies the correct inverse transforms to the r and c
dimensions to align the feature maps.
"""
def __init__(self, input_layer):
super(CyclicConvRollLayer, self).__init__(input_layer)
self.inv_tf_funcs = [array_tf_0_c01b, array_tf_270_c01b, array_tf_180_c01b, array_tf_90_c01b]
def get_output_shape_for(self, input_shape):
return (4 * input_shape[0],) + input_shape[1:]
def get_output_for(self, input, *args, **kwargs):
s = input.shape
input_unfolded = input.reshape((s[0], s[1], s[2], 4, s[3] // 4))
permuted_inputs = []
for p, inv_tf in zip(self.perm_matrix, self.inv_tf_funcs):
input_permuted = inv_tf(input_unfolded[:, :, :, p, :].reshape(s))
permuted_inputs.append(input_permuted)
return nn.utils.concatenate(permuted_inputs, axis=0) # concatenate long the channel axis
class CyclicPoolLayer(nn.layers.Layer):
"""
Utility layer that unfolds the viewpoints dimension and pools over it.
Note that this only makes sense for dense representations, not for
feature maps (because no inverse transforms are applied to align them).
"""
def __init__(self, input_layer, pool_function=T.mean):
super(CyclicPoolLayer, self).__init__(input_layer)
self.pool_function = pool_function
def get_output_shape_for(self, input_shape):
return (input_shape[0] // 4, input_shape[1])
def get_output_for(self, input, *args, **kwargs):
unfolded_input = input.reshape((4, input.shape[0] // 4, input.shape[1]))
return self.pool_function(unfolded_input, axis=0)
class DihedralPoolLayer(nn.layers.Layer):
"""
Utility layer that unfolds the viewpoints dimension and pools over it.
Note that this only makes sense for dense representations, not for
feature maps (because no inverse transforms are applied to align them).
"""
def __init__(self, input_layer, pool_function=T.mean):
super(DihedralPoolLayer, self).__init__(input_layer)
self.pool_function = pool_function
def get_output_shape_for(self, input_shape):
return (input_shape[0] // 8, input_shape[1])
def get_output_for(self, input, *args, **kwargs):
unfolded_input = input.reshape((8, input.shape[0] // 8, input.shape[1]))
return self.pool_function(unfolded_input, axis=0)
class NINCyclicPoolLayer(nn.layers.Layer):
"""
Like CyclicPoolLayer, but broadcasting along all axes beyond the first two.
"""
def __init__(self, input_layer, pool_function=T.mean):
super(NINCyclicPoolLayer, self).__init__(input_layer)
self.pool_function = pool_function
def get_output_shape_for(self, input_shape):
return (input_shape[0] // 4,) + input_shape[1:]
def get_output_for(self, input, *args, **kwargs):
unfolded_input = input.reshape((4, self.input_shape[0] // 4) + self.input_shape[1:])
return self.pool_function(unfolded_input, axis=0)
class FlipSliceLayer(nn.layers.Layer):
"""
This layer stacks the input images along with their flips along the batch
dimension.
If the input has shape (batch_size, num_channels, r, c),
then the output will have shape (2 * batch_size, num_channels, r, c).
Note that the stacking happens on axis 0, so a reshape to
(2, batch_size, num_channels, r, c) will separate the slice axis.
"""
def __init__(self, input_layer):
super(FlipSliceLayer, self).__init__(input_layer)
def get_output_shape_for(self, input_shape):
return (2 * input_shape[0],) + input_shape[1:]
def get_output_for(self, input, *args, **kwargs):
return nn.utils.concatenate([
array_tf_0(input),
array_tf_0f(input),
], axis=0)
| 37.536082
| 105
| 0.643367
| 2,050
| 14,564
| 4.327805
| 0.09561
| 0.049707
| 0.029757
| 0.032462
| 0.886046
| 0.877254
| 0.866434
| 0.857642
| 0.852006
| 0.852006
| 0
| 0.029986
| 0.24437
| 14,564
| 387
| 106
| 37.633075
| 0.776193
| 0.218072
| 0
| 0.657407
| 0
| 0
| 0.004494
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.236111
| false
| 0
| 0.013889
| 0.074074
| 0.476852
| 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
|
2adb426f6d0df2e23a118842074dc80a9d47be50
| 23,370
|
py
|
Python
|
sdk/python/pulumi_azure_native/cdn/v20200901/rule.py
|
sebtelko/pulumi-azure-native
|
711ec021b5c73da05611c56c8a35adb0ce3244e4
|
[
"Apache-2.0"
] | null | null | null |
sdk/python/pulumi_azure_native/cdn/v20200901/rule.py
|
sebtelko/pulumi-azure-native
|
711ec021b5c73da05611c56c8a35adb0ce3244e4
|
[
"Apache-2.0"
] | null | null | null |
sdk/python/pulumi_azure_native/cdn/v20200901/rule.py
|
sebtelko/pulumi-azure-native
|
711ec021b5c73da05611c56c8a35adb0ce3244e4
|
[
"Apache-2.0"
] | null | null | null |
# coding=utf-8
# *** WARNING: this file was generated by the Pulumi SDK Generator. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union, overload
from ... import _utilities
from . import outputs
from ._enums import *
from ._inputs import *
__all__ = ['RuleArgs', 'Rule']
@pulumi.input_type
class RuleArgs:
def __init__(__self__, *,
actions: pulumi.Input[Sequence[pulumi.Input[Union['DeliveryRuleCacheExpirationActionArgs', 'DeliveryRuleCacheKeyQueryStringActionArgs', 'DeliveryRuleRequestHeaderActionArgs', 'DeliveryRuleResponseHeaderActionArgs', 'OriginGroupOverrideActionArgs', 'UrlRedirectActionArgs', 'UrlRewriteActionArgs', 'UrlSigningActionArgs']]]],
order: pulumi.Input[int],
profile_name: pulumi.Input[str],
resource_group_name: pulumi.Input[str],
rule_set_name: pulumi.Input[str],
conditions: Optional[pulumi.Input[Sequence[pulumi.Input[Union['DeliveryRuleCookiesConditionArgs', 'DeliveryRuleHttpVersionConditionArgs', 'DeliveryRuleIsDeviceConditionArgs', 'DeliveryRulePostArgsConditionArgs', 'DeliveryRuleQueryStringConditionArgs', 'DeliveryRuleRemoteAddressConditionArgs', 'DeliveryRuleRequestBodyConditionArgs', 'DeliveryRuleRequestHeaderConditionArgs', 'DeliveryRuleRequestMethodConditionArgs', 'DeliveryRuleRequestSchemeConditionArgs', 'DeliveryRuleRequestUriConditionArgs', 'DeliveryRuleUrlFileExtensionConditionArgs', 'DeliveryRuleUrlFileNameConditionArgs', 'DeliveryRuleUrlPathConditionArgs']]]]] = None,
match_processing_behavior: Optional[pulumi.Input[Union[str, 'MatchProcessingBehavior']]] = None,
rule_name: Optional[pulumi.Input[str]] = None):
"""
The set of arguments for constructing a Rule resource.
:param pulumi.Input[Sequence[pulumi.Input[Union['DeliveryRuleCacheExpirationActionArgs', 'DeliveryRuleCacheKeyQueryStringActionArgs', 'DeliveryRuleRequestHeaderActionArgs', 'DeliveryRuleResponseHeaderActionArgs', 'OriginGroupOverrideActionArgs', 'UrlRedirectActionArgs', 'UrlRewriteActionArgs', 'UrlSigningActionArgs']]]] actions: A list of actions that are executed when all the conditions of a rule are satisfied.
:param pulumi.Input[int] order: The order in which the rules are applied for the endpoint. Possible values {0,1,2,3,………}. A rule with a lesser order will be applied before a rule with a greater order. Rule with order 0 is a special rule. It does not require any condition and actions listed in it will always be applied.
:param pulumi.Input[str] profile_name: Name of the CDN profile which is unique within the resource group.
:param pulumi.Input[str] resource_group_name: Name of the Resource group within the Azure subscription.
:param pulumi.Input[str] rule_set_name: Name of the rule set under the profile.
:param pulumi.Input[Sequence[pulumi.Input[Union['DeliveryRuleCookiesConditionArgs', 'DeliveryRuleHttpVersionConditionArgs', 'DeliveryRuleIsDeviceConditionArgs', 'DeliveryRulePostArgsConditionArgs', 'DeliveryRuleQueryStringConditionArgs', 'DeliveryRuleRemoteAddressConditionArgs', 'DeliveryRuleRequestBodyConditionArgs', 'DeliveryRuleRequestHeaderConditionArgs', 'DeliveryRuleRequestMethodConditionArgs', 'DeliveryRuleRequestSchemeConditionArgs', 'DeliveryRuleRequestUriConditionArgs', 'DeliveryRuleUrlFileExtensionConditionArgs', 'DeliveryRuleUrlFileNameConditionArgs', 'DeliveryRuleUrlPathConditionArgs']]]] conditions: A list of conditions that must be matched for the actions to be executed
:param pulumi.Input[Union[str, 'MatchProcessingBehavior']] match_processing_behavior: If this rule is a match should the rules engine continue running the remaining rules or stop. If not present, defaults to Continue.
:param pulumi.Input[str] rule_name: Name of the delivery rule which is unique within the endpoint.
"""
pulumi.set(__self__, "actions", actions)
pulumi.set(__self__, "order", order)
pulumi.set(__self__, "profile_name", profile_name)
pulumi.set(__self__, "resource_group_name", resource_group_name)
pulumi.set(__self__, "rule_set_name", rule_set_name)
if conditions is not None:
pulumi.set(__self__, "conditions", conditions)
if match_processing_behavior is not None:
pulumi.set(__self__, "match_processing_behavior", match_processing_behavior)
if rule_name is not None:
pulumi.set(__self__, "rule_name", rule_name)
@property
@pulumi.getter
def actions(self) -> pulumi.Input[Sequence[pulumi.Input[Union['DeliveryRuleCacheExpirationActionArgs', 'DeliveryRuleCacheKeyQueryStringActionArgs', 'DeliveryRuleRequestHeaderActionArgs', 'DeliveryRuleResponseHeaderActionArgs', 'OriginGroupOverrideActionArgs', 'UrlRedirectActionArgs', 'UrlRewriteActionArgs', 'UrlSigningActionArgs']]]]:
"""
A list of actions that are executed when all the conditions of a rule are satisfied.
"""
return pulumi.get(self, "actions")
@actions.setter
def actions(self, value: pulumi.Input[Sequence[pulumi.Input[Union['DeliveryRuleCacheExpirationActionArgs', 'DeliveryRuleCacheKeyQueryStringActionArgs', 'DeliveryRuleRequestHeaderActionArgs', 'DeliveryRuleResponseHeaderActionArgs', 'OriginGroupOverrideActionArgs', 'UrlRedirectActionArgs', 'UrlRewriteActionArgs', 'UrlSigningActionArgs']]]]):
pulumi.set(self, "actions", value)
@property
@pulumi.getter
def order(self) -> pulumi.Input[int]:
"""
The order in which the rules are applied for the endpoint. Possible values {0,1,2,3,………}. A rule with a lesser order will be applied before a rule with a greater order. Rule with order 0 is a special rule. It does not require any condition and actions listed in it will always be applied.
"""
return pulumi.get(self, "order")
@order.setter
def order(self, value: pulumi.Input[int]):
pulumi.set(self, "order", value)
@property
@pulumi.getter(name="profileName")
def profile_name(self) -> pulumi.Input[str]:
"""
Name of the CDN profile which is unique within the resource group.
"""
return pulumi.get(self, "profile_name")
@profile_name.setter
def profile_name(self, value: pulumi.Input[str]):
pulumi.set(self, "profile_name", value)
@property
@pulumi.getter(name="resourceGroupName")
def resource_group_name(self) -> pulumi.Input[str]:
"""
Name of the Resource group within the Azure subscription.
"""
return pulumi.get(self, "resource_group_name")
@resource_group_name.setter
def resource_group_name(self, value: pulumi.Input[str]):
pulumi.set(self, "resource_group_name", value)
@property
@pulumi.getter(name="ruleSetName")
def rule_set_name(self) -> pulumi.Input[str]:
"""
Name of the rule set under the profile.
"""
return pulumi.get(self, "rule_set_name")
@rule_set_name.setter
def rule_set_name(self, value: pulumi.Input[str]):
pulumi.set(self, "rule_set_name", value)
@property
@pulumi.getter
def conditions(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[Union['DeliveryRuleCookiesConditionArgs', 'DeliveryRuleHttpVersionConditionArgs', 'DeliveryRuleIsDeviceConditionArgs', 'DeliveryRulePostArgsConditionArgs', 'DeliveryRuleQueryStringConditionArgs', 'DeliveryRuleRemoteAddressConditionArgs', 'DeliveryRuleRequestBodyConditionArgs', 'DeliveryRuleRequestHeaderConditionArgs', 'DeliveryRuleRequestMethodConditionArgs', 'DeliveryRuleRequestSchemeConditionArgs', 'DeliveryRuleRequestUriConditionArgs', 'DeliveryRuleUrlFileExtensionConditionArgs', 'DeliveryRuleUrlFileNameConditionArgs', 'DeliveryRuleUrlPathConditionArgs']]]]]:
"""
A list of conditions that must be matched for the actions to be executed
"""
return pulumi.get(self, "conditions")
@conditions.setter
def conditions(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[Union['DeliveryRuleCookiesConditionArgs', 'DeliveryRuleHttpVersionConditionArgs', 'DeliveryRuleIsDeviceConditionArgs', 'DeliveryRulePostArgsConditionArgs', 'DeliveryRuleQueryStringConditionArgs', 'DeliveryRuleRemoteAddressConditionArgs', 'DeliveryRuleRequestBodyConditionArgs', 'DeliveryRuleRequestHeaderConditionArgs', 'DeliveryRuleRequestMethodConditionArgs', 'DeliveryRuleRequestSchemeConditionArgs', 'DeliveryRuleRequestUriConditionArgs', 'DeliveryRuleUrlFileExtensionConditionArgs', 'DeliveryRuleUrlFileNameConditionArgs', 'DeliveryRuleUrlPathConditionArgs']]]]]):
pulumi.set(self, "conditions", value)
@property
@pulumi.getter(name="matchProcessingBehavior")
def match_processing_behavior(self) -> Optional[pulumi.Input[Union[str, 'MatchProcessingBehavior']]]:
"""
If this rule is a match should the rules engine continue running the remaining rules or stop. If not present, defaults to Continue.
"""
return pulumi.get(self, "match_processing_behavior")
@match_processing_behavior.setter
def match_processing_behavior(self, value: Optional[pulumi.Input[Union[str, 'MatchProcessingBehavior']]]):
pulumi.set(self, "match_processing_behavior", value)
@property
@pulumi.getter(name="ruleName")
def rule_name(self) -> Optional[pulumi.Input[str]]:
"""
Name of the delivery rule which is unique within the endpoint.
"""
return pulumi.get(self, "rule_name")
@rule_name.setter
def rule_name(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "rule_name", value)
class Rule(pulumi.CustomResource):
@overload
def __init__(__self__,
resource_name: str,
opts: Optional[pulumi.ResourceOptions] = None,
actions: Optional[pulumi.Input[Sequence[pulumi.Input[Union[pulumi.InputType['DeliveryRuleCacheExpirationActionArgs'], pulumi.InputType['DeliveryRuleCacheKeyQueryStringActionArgs'], pulumi.InputType['DeliveryRuleRequestHeaderActionArgs'], pulumi.InputType['DeliveryRuleResponseHeaderActionArgs'], pulumi.InputType['OriginGroupOverrideActionArgs'], pulumi.InputType['UrlRedirectActionArgs'], pulumi.InputType['UrlRewriteActionArgs'], pulumi.InputType['UrlSigningActionArgs']]]]]] = None,
conditions: Optional[pulumi.Input[Sequence[pulumi.Input[Union[pulumi.InputType['DeliveryRuleCookiesConditionArgs'], pulumi.InputType['DeliveryRuleHttpVersionConditionArgs'], pulumi.InputType['DeliveryRuleIsDeviceConditionArgs'], pulumi.InputType['DeliveryRulePostArgsConditionArgs'], pulumi.InputType['DeliveryRuleQueryStringConditionArgs'], pulumi.InputType['DeliveryRuleRemoteAddressConditionArgs'], pulumi.InputType['DeliveryRuleRequestBodyConditionArgs'], pulumi.InputType['DeliveryRuleRequestHeaderConditionArgs'], pulumi.InputType['DeliveryRuleRequestMethodConditionArgs'], pulumi.InputType['DeliveryRuleRequestSchemeConditionArgs'], pulumi.InputType['DeliveryRuleRequestUriConditionArgs'], pulumi.InputType['DeliveryRuleUrlFileExtensionConditionArgs'], pulumi.InputType['DeliveryRuleUrlFileNameConditionArgs'], pulumi.InputType['DeliveryRuleUrlPathConditionArgs']]]]]] = None,
match_processing_behavior: Optional[pulumi.Input[Union[str, 'MatchProcessingBehavior']]] = None,
order: Optional[pulumi.Input[int]] = None,
profile_name: Optional[pulumi.Input[str]] = None,
resource_group_name: Optional[pulumi.Input[str]] = None,
rule_name: Optional[pulumi.Input[str]] = None,
rule_set_name: Optional[pulumi.Input[str]] = None,
__props__=None):
"""
Friendly Rules name mapping to the any Rules or secret related information.
:param str resource_name: The name of the resource.
:param pulumi.ResourceOptions opts: Options for the resource.
:param pulumi.Input[Sequence[pulumi.Input[Union[pulumi.InputType['DeliveryRuleCacheExpirationActionArgs'], pulumi.InputType['DeliveryRuleCacheKeyQueryStringActionArgs'], pulumi.InputType['DeliveryRuleRequestHeaderActionArgs'], pulumi.InputType['DeliveryRuleResponseHeaderActionArgs'], pulumi.InputType['OriginGroupOverrideActionArgs'], pulumi.InputType['UrlRedirectActionArgs'], pulumi.InputType['UrlRewriteActionArgs'], pulumi.InputType['UrlSigningActionArgs']]]]] actions: A list of actions that are executed when all the conditions of a rule are satisfied.
:param pulumi.Input[Sequence[pulumi.Input[Union[pulumi.InputType['DeliveryRuleCookiesConditionArgs'], pulumi.InputType['DeliveryRuleHttpVersionConditionArgs'], pulumi.InputType['DeliveryRuleIsDeviceConditionArgs'], pulumi.InputType['DeliveryRulePostArgsConditionArgs'], pulumi.InputType['DeliveryRuleQueryStringConditionArgs'], pulumi.InputType['DeliveryRuleRemoteAddressConditionArgs'], pulumi.InputType['DeliveryRuleRequestBodyConditionArgs'], pulumi.InputType['DeliveryRuleRequestHeaderConditionArgs'], pulumi.InputType['DeliveryRuleRequestMethodConditionArgs'], pulumi.InputType['DeliveryRuleRequestSchemeConditionArgs'], pulumi.InputType['DeliveryRuleRequestUriConditionArgs'], pulumi.InputType['DeliveryRuleUrlFileExtensionConditionArgs'], pulumi.InputType['DeliveryRuleUrlFileNameConditionArgs'], pulumi.InputType['DeliveryRuleUrlPathConditionArgs']]]]] conditions: A list of conditions that must be matched for the actions to be executed
:param pulumi.Input[Union[str, 'MatchProcessingBehavior']] match_processing_behavior: If this rule is a match should the rules engine continue running the remaining rules or stop. If not present, defaults to Continue.
:param pulumi.Input[int] order: The order in which the rules are applied for the endpoint. Possible values {0,1,2,3,………}. A rule with a lesser order will be applied before a rule with a greater order. Rule with order 0 is a special rule. It does not require any condition and actions listed in it will always be applied.
:param pulumi.Input[str] profile_name: Name of the CDN profile which is unique within the resource group.
:param pulumi.Input[str] resource_group_name: Name of the Resource group within the Azure subscription.
:param pulumi.Input[str] rule_name: Name of the delivery rule which is unique within the endpoint.
:param pulumi.Input[str] rule_set_name: Name of the rule set under the profile.
"""
...
@overload
def __init__(__self__,
resource_name: str,
args: RuleArgs,
opts: Optional[pulumi.ResourceOptions] = None):
"""
Friendly Rules name mapping to the any Rules or secret related information.
:param str resource_name: The name of the resource.
:param RuleArgs 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(RuleArgs, 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,
actions: Optional[pulumi.Input[Sequence[pulumi.Input[Union[pulumi.InputType['DeliveryRuleCacheExpirationActionArgs'], pulumi.InputType['DeliveryRuleCacheKeyQueryStringActionArgs'], pulumi.InputType['DeliveryRuleRequestHeaderActionArgs'], pulumi.InputType['DeliveryRuleResponseHeaderActionArgs'], pulumi.InputType['OriginGroupOverrideActionArgs'], pulumi.InputType['UrlRedirectActionArgs'], pulumi.InputType['UrlRewriteActionArgs'], pulumi.InputType['UrlSigningActionArgs']]]]]] = None,
conditions: Optional[pulumi.Input[Sequence[pulumi.Input[Union[pulumi.InputType['DeliveryRuleCookiesConditionArgs'], pulumi.InputType['DeliveryRuleHttpVersionConditionArgs'], pulumi.InputType['DeliveryRuleIsDeviceConditionArgs'], pulumi.InputType['DeliveryRulePostArgsConditionArgs'], pulumi.InputType['DeliveryRuleQueryStringConditionArgs'], pulumi.InputType['DeliveryRuleRemoteAddressConditionArgs'], pulumi.InputType['DeliveryRuleRequestBodyConditionArgs'], pulumi.InputType['DeliveryRuleRequestHeaderConditionArgs'], pulumi.InputType['DeliveryRuleRequestMethodConditionArgs'], pulumi.InputType['DeliveryRuleRequestSchemeConditionArgs'], pulumi.InputType['DeliveryRuleRequestUriConditionArgs'], pulumi.InputType['DeliveryRuleUrlFileExtensionConditionArgs'], pulumi.InputType['DeliveryRuleUrlFileNameConditionArgs'], pulumi.InputType['DeliveryRuleUrlPathConditionArgs']]]]]] = None,
match_processing_behavior: Optional[pulumi.Input[Union[str, 'MatchProcessingBehavior']]] = None,
order: Optional[pulumi.Input[int]] = None,
profile_name: Optional[pulumi.Input[str]] = None,
resource_group_name: Optional[pulumi.Input[str]] = None,
rule_name: Optional[pulumi.Input[str]] = None,
rule_set_name: Optional[pulumi.Input[str]] = None,
__props__=None):
if opts is None:
opts = pulumi.ResourceOptions()
if not isinstance(opts, pulumi.ResourceOptions):
raise TypeError('Expected resource options to be a ResourceOptions instance')
if opts.version is None:
opts.version = _utilities.get_version()
if opts.id is None:
if __props__ is not None:
raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource')
__props__ = RuleArgs.__new__(RuleArgs)
if actions is None and not opts.urn:
raise TypeError("Missing required property 'actions'")
__props__.__dict__["actions"] = actions
__props__.__dict__["conditions"] = conditions
__props__.__dict__["match_processing_behavior"] = match_processing_behavior
if order is None and not opts.urn:
raise TypeError("Missing required property 'order'")
__props__.__dict__["order"] = order
if profile_name is None and not opts.urn:
raise TypeError("Missing required property 'profile_name'")
__props__.__dict__["profile_name"] = profile_name
if resource_group_name is None and not opts.urn:
raise TypeError("Missing required property 'resource_group_name'")
__props__.__dict__["resource_group_name"] = resource_group_name
__props__.__dict__["rule_name"] = rule_name
if rule_set_name is None and not opts.urn:
raise TypeError("Missing required property 'rule_set_name'")
__props__.__dict__["rule_set_name"] = rule_set_name
__props__.__dict__["deployment_status"] = None
__props__.__dict__["name"] = None
__props__.__dict__["provisioning_state"] = None
__props__.__dict__["system_data"] = None
__props__.__dict__["type"] = None
alias_opts = pulumi.ResourceOptions(aliases=[pulumi.Alias(type_="azure-nextgen:cdn/v20200901:Rule"), pulumi.Alias(type_="azure-native:cdn:Rule"), pulumi.Alias(type_="azure-nextgen:cdn:Rule")])
opts = pulumi.ResourceOptions.merge(opts, alias_opts)
super(Rule, __self__).__init__(
'azure-native:cdn/v20200901:Rule',
resource_name,
__props__,
opts)
@staticmethod
def get(resource_name: str,
id: pulumi.Input[str],
opts: Optional[pulumi.ResourceOptions] = None) -> 'Rule':
"""
Get an existing Rule resource's state with the given name, id, and optional extra
properties used to qualify the lookup.
:param str resource_name: The unique name of the resulting resource.
:param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
:param pulumi.ResourceOptions opts: Options for the resource.
"""
opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
__props__ = RuleArgs.__new__(RuleArgs)
__props__.__dict__["actions"] = None
__props__.__dict__["conditions"] = None
__props__.__dict__["deployment_status"] = None
__props__.__dict__["match_processing_behavior"] = None
__props__.__dict__["name"] = None
__props__.__dict__["order"] = None
__props__.__dict__["provisioning_state"] = None
__props__.__dict__["system_data"] = None
__props__.__dict__["type"] = None
return Rule(resource_name, opts=opts, __props__=__props__)
@property
@pulumi.getter
def actions(self) -> pulumi.Output[Sequence[Any]]:
"""
A list of actions that are executed when all the conditions of a rule are satisfied.
"""
return pulumi.get(self, "actions")
@property
@pulumi.getter
def conditions(self) -> pulumi.Output[Optional[Sequence[Any]]]:
"""
A list of conditions that must be matched for the actions to be executed
"""
return pulumi.get(self, "conditions")
@property
@pulumi.getter(name="deploymentStatus")
def deployment_status(self) -> pulumi.Output[str]:
return pulumi.get(self, "deployment_status")
@property
@pulumi.getter(name="matchProcessingBehavior")
def match_processing_behavior(self) -> pulumi.Output[Optional[str]]:
"""
If this rule is a match should the rules engine continue running the remaining rules or stop. If not present, defaults to Continue.
"""
return pulumi.get(self, "match_processing_behavior")
@property
@pulumi.getter
def name(self) -> pulumi.Output[str]:
"""
Resource name.
"""
return pulumi.get(self, "name")
@property
@pulumi.getter
def order(self) -> pulumi.Output[int]:
"""
The order in which the rules are applied for the endpoint. Possible values {0,1,2,3,………}. A rule with a lesser order will be applied before a rule with a greater order. Rule with order 0 is a special rule. It does not require any condition and actions listed in it will always be applied.
"""
return pulumi.get(self, "order")
@property
@pulumi.getter(name="provisioningState")
def provisioning_state(self) -> pulumi.Output[str]:
"""
Provisioning status
"""
return pulumi.get(self, "provisioning_state")
@property
@pulumi.getter(name="systemData")
def system_data(self) -> pulumi.Output['outputs.SystemDataResponse']:
"""
Read only system data
"""
return pulumi.get(self, "system_data")
@property
@pulumi.getter
def type(self) -> pulumi.Output[str]:
"""
Resource type.
"""
return pulumi.get(self, "type")
| 67.543353
| 953
| 0.724904
| 2,303
| 23,370
| 7.158489
| 0.094225
| 0.048708
| 0.025476
| 0.019592
| 0.835861
| 0.793461
| 0.756945
| 0.718731
| 0.700412
| 0.689919
| 0
| 0.001925
| 0.177664
| 23,370
| 345
| 954
| 67.73913
| 0.854043
| 0.297133
| 0
| 0.353211
| 1
| 0
| 0.324388
| 0.251808
| 0
| 0
| 0
| 0
| 0
| 1
| 0.142202
| false
| 0.004587
| 0.036697
| 0.004587
| 0.270642
| 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
|
2d5311ba2bb6cc6f99e382ddf1bff258afb1195f
| 37
|
py
|
Python
|
fhir_loader/__init__.py
|
hsolbrig/fhir_loader
|
ca81e48754a96821d010139267799aec82fe0136
|
[
"Apache-2.0"
] | null | null | null |
fhir_loader/__init__.py
|
hsolbrig/fhir_loader
|
ca81e48754a96821d010139267799aec82fe0136
|
[
"Apache-2.0"
] | null | null | null |
fhir_loader/__init__.py
|
hsolbrig/fhir_loader
|
ca81e48754a96821d010139267799aec82fe0136
|
[
"Apache-2.0"
] | 1
|
2019-10-18T11:25:13.000Z
|
2019-10-18T11:25:13.000Z
|
from fhir_loader.fhir_loader import *
| 37
| 37
| 0.864865
| 6
| 37
| 5
| 0.666667
| 0.666667
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.081081
| 37
| 1
| 37
| 37
| 0.882353
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 0
| 1
| 0
| 1
| 1
| 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
| 0
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 7
|
2d931609fd67f8a63127d1d79f3997701058e6b3
| 797
|
py
|
Python
|
sdi_pipeline/combine.py
|
andrewhstewart/SDI
|
19d52bd5e13c2128c083776712672becf8b6ab45
|
[
"MIT"
] | null | null | null |
sdi_pipeline/combine.py
|
andrewhstewart/SDI
|
19d52bd5e13c2128c083776712672becf8b6ab45
|
[
"MIT"
] | null | null | null |
sdi_pipeline/combine.py
|
andrewhstewart/SDI
|
19d52bd5e13c2128c083776712672becf8b6ab45
|
[
"MIT"
] | null | null | null |
import combine_swarp
import combine_numpy
def COMBINE():
location = input("-> Enter path to data directory: ")
method = input("\n-> Choose combination method-- numpy (default) or swarp: ")
if method == "swarp":
combine_swarp.swarp(location)
elif method == "numpy" or method == "":
combine_numpy.combine_median(location)
else:
print("-> Error: unknown method entered")
if __name__ == '__main__':
location = input("-> Enter path to data directory: ")
method = input("\n-> Choose combination method-- numpy (default) or swarp: ")
if method == "swarp":
combine_swarp.swarp(location)
elif method == "numpy" or method == "":
combine_numpy.combine_median(location)
else:
print("-> Error: unknown method entered")
| 33.208333
| 81
| 0.6399
| 91
| 797
| 5.428571
| 0.307692
| 0.089069
| 0.072874
| 0.089069
| 0.88664
| 0.88664
| 0.88664
| 0.88664
| 0.88664
| 0.88664
| 0
| 0
| 0.227102
| 797
| 23
| 82
| 34.652174
| 0.801948
| 0
| 0
| 0.8
| 0
| 0
| 0.346299
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.05
| false
| 0
| 0.1
| 0
| 0.15
| 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
|
2da2a625e8feae01edd269f0da91b001d43db292
| 13,791
|
py
|
Python
|
encrypt/CyberEye.py
|
U-Nano39/CyberEye
|
608da9acd9bd73aa1ea470b7274f97c2dd8e911e
|
[
"MIT"
] | null | null | null |
encrypt/CyberEye.py
|
U-Nano39/CyberEye
|
608da9acd9bd73aa1ea470b7274f97c2dd8e911e
|
[
"MIT"
] | null | null | null |
encrypt/CyberEye.py
|
U-Nano39/CyberEye
|
608da9acd9bd73aa1ea470b7274f97c2dd8e911e
|
[
"MIT"
] | null | null | null |
from pytransform import pyarmor_runtime
pyarmor_runtime()
__pyarmor__(__name__, __file__, b'\x50\x59\x41\x52\x4d\x4f\x52\x00\x00\x03\x09\x00\x61\x0d\x0d\x0a\x06\x28\xa0\x01\x00\x00\x00\x00\x01\x00\x00\x00\x40\x00\x00\x00\x1f\x0d\x00\x00\x00\x00\x00\x18\x88\x25\x7a\x10\xe1\x14\xda\x23\xa0\x7e\xea\x27\x0a\x10\xa7\x2e\x00\x00\x00\x00\x00\x00\x00\x00\x9b\x3a\x94\x4f\x06\xbf\x71\x72\xd1\x59\x04\x5e\x8a\x35\xec\x1e\x15\xf0\xc2\xa1\x26\xb2\xc7\x2b\x5b\x54\x96\x3b\xae\x71\x08\x35\x71\xb0\xd0\x0a\x60\x60\x4f\x70\xfc\x97\x09\xcf\x18\x5f\xe2\x58\x9c\x6b\xe4\xa7\x5e\x05\x01\xd2\x72\xc1\x24\x73\xa1\xcf\x7b\xb9\xd7\x6c\x3e\x4a\xe2\x00\xc1\xc8\x60\x8a\x2b\x25\xca\xa3\x89\x64\x54\x3b\x51\xa2\x89\xc5\x60\xc1\x23\x3d\xae\x58\x5b\x58\x69\xf2\x2b\x9f\xbe\xc4\xb0\x4b\xad\xbb\x84\x65\x9a\x0a\x19\x9d\xb9\xf8\xea\xb8\xc4\xe1\x40\x2c\xa3\xdb\xce\x07\x8a\x8e\x96\x12\xd7\x4a\x47\xc8\x45\x67\x9a\x88\xd0\x0c\xba\xd3\xa3\x07\x9d\x65\x0f\x0d\x64\x50\xca\x0f\xd7\xba\xc9\x9a\x82\x6f\xc0\xc9\xf2\x07\x64\xf6\xb4\xde\xc3\xc0\x62\x88\x1f\xde\x6e\x0e\x80\x28\xd1\x86\xcd\x8c\x07\x9e\xc5\x81\x2d\x43\x1a\x8f\xfd\xef\xb8\xa0\xdc\xb3\x4b\x76\x9e\x41\xcd\xf3\x19\x16\xba\x88\x6a\x02\xdf\xb0\x84\xc4\x30\x7a\x31\x98\x57\x91\xa7\x59\xa2\x95\x32\x91\x1a\xa1\x00\x00\x97\x30\x5c\x8d\xf1\xe9\xd1\x02\xd7\xa5\xf5\x82\xa8\x8c\x54\x6f\x0d\xd4\xb6\x46\x18\x7b\xbf\x62\x3a\x79\x03\xd8\x58\x4d\x45\x70\x81\x0c\xad\x05\x4f\xef\xd0\x1a\x14\x2d\x90\x2f\xa9\x4a\x2b\x3f\x3c\xf9\xf8\x44\x01\xc8\xf6\x9e\x95\xe8\xc7\x88\x8f\x16\x42\xc3\x9a\x5e\x0c\xba\x2b\xec\x32\x77\x3d\xc2\xa8\xb0\xa2\x72\xe7\x14\x25\xe9\xdb\x28\xa8\x06\xea\xb3\x7c\xa3\x5a\x8e\xf0\xa8\xb5\x08\xd9\xf4\x67\x56\x9c\x5b\x28\xb4\x32\x97\x88\x91\x37\x8e\xfc\xba\x67\x57\xed\x39\xca\x34\x44\xbc\x35\x92\xbf\xe1\x94\x5a\x33\xd6\x7a\x48\x74\x9b\xdc\x67\x92\x41\x53\x9c\x8c\xf0\x9a\x99\x37\x3f\x66\x47\x01\x0e\x89\x54\x97\x73\xbe\x56\x5b\xc4\x84\x66\x1a\x2c\x4a\x10\x52\xc1\xf4\x2f\x2c\x80\xef\x31\xcf\xe9\x9b\x19\x98\x94\x63\xec\x8b\xe8\x2e\xdd\xb2\x73\x8a\x63\x96\x80\x70\xdc\xd9\xd1\xa0\x13\x53\x93\x42\x98\xa7\xba\x12\x1f\x27\xe6\x90\x4d\x32\xb2\x06\xcc\xb4\xf3\x03\x87\x44\xbe\x5a\xf8\xbb\x21\x38\xf1\x90\x61\x15\xd0\xe8\xf6\xb8\xb6\x6c\xc3\x12\x37\x82\x13\x54\x57\xc3\xab\x45\x2d\x34\x21\x42\x41\xc4\xe1\x55\x04\x48\xdd\x11\x97\x7c\x78\xed\xb2\x2c\xa8\x9b\xa6\xb9\x00\x0d\x98\x95\x6b\x85\x6c\x6c\x34\x3d\x7f\x4b\x1a\xa5\x2e\x73\x52\xf6\xc5\x17\xa5\x8c\xec\xb9\xe5\x9b\xdd\x29\xeb\xcc\xfd\x14\x00\x5f\x68\x25\x2f\x48\x82\x8e\x9b\x17\xd5\xea\xce\x34\x36\x71\xb2\x32\xd6\xfc\x33\x4d\xfe\x7d\x81\x58\xff\x04\x0b\x57\xf1\x88\x79\xb8\x00\x05\x5a\x89\x7b\x9e\xb4\x66\xbd\x4d\x0e\x68\xef\x85\xb5\x05\x0f\xe9\xa4\x8a\xa7\x38\xfe\x8b\xd6\xd4\x78\xc8\x44\x45\xf5\x04\x55\xe0\xa2\x03\xda\x5a\x18\x31\x47\x2e\xbe\xf8\xc7\x3f\x6a\x6a\x06\x28\x40\x5e\x15\x28\xd9\xc4\xc7\x7b\x0b\xeb\x17\x0a\x81\xf3\x39\xca\x69\x67\x11\x1b\xfe\x18\x0c\xc1\x1d\x4b\xb0\x4e\xbb\x53\x6a\x40\xb4\x1f\x46\x9b\xfd\x0f\xc4\xd2\x9e\x4c\x5a\xc6\x06\x3d\xb2\x0f\x57\x7e\x1c\xbd\x64\xd2\x02\x61\x1e\xfe\xcc\x6d\xee\x4a\x70\xb4\x57\x56\x94\x8a\x2a\x32\x62\xf6\xd0\x36\xba\xea\xe9\x33\x24\x7a\x87\x62\x07\x2a\x8c\x50\x17\x32\xba\xc3\x67\x4f\x91\xff\x82\x89\xbd\x9c\xff\x1d\x6a\x53\x0c\xbf\xe9\x90\x5f\x32\xcd\x92\xcd\xca\xc8\xba\x70\x57\xec\x27\x56\xb6\x52\xc2\x0d\xf3\x78\x87\xce\xb9\xe5\x6c\x08\xfd\x9e\x08\x64\x6c\x33\x5a\x21\x55\x1e\x30\xdb\x02\xe1\x3c\xde\xcf\xf0\xba\xb7\x0b\xbd\x85\x78\x37\x70\xd0\x96\xac\x45\x10\x23\x79\xc2\xbb\x3c\xe1\x0b\x0b\xfa\x48\xa1\x08\x25\x69\xa0\xa1\x92\xf5\x80\x76\xd9\xfa\x45\x98\xb5\xea\x7b\x15\x67\x0c\xd1\x76\x4f\x3e\xb7\x34\x34\xe5\x07\x7a\x1a\x50\xe1\x45\xf0\x84\x76\xc1\x30\x10\x44\x58\x45\xe2\xcd\xd8\xc5\x1f\x3d\xca\x03\x0f\x69\x1e\xca\xed\xa4\x94\x77\xb6\xbe\xf9\xb6\x26\xfc\xf3\x94\x88\x24\x54\x16\x53\xe4\x50\x27\x64\xfa\xa2\x97\x47\x6d\xdc\x8d\x5c\xb0\xec\x3f\x67\x74\x99\xb5\xea\xbd\x28\x0e\xc6\xf0\x5e\xd2\x5b\x98\xec\xe2\xbc\x13\x79\x13\x40\xd9\xd8\xee\x96\x81\xbf\x07\x6d\x26\x38\x7e\xb6\xee\x4d\x15\x31\xf4\xe6\x22\xa3\x68\x74\xc0\xce\x38\x82\x20\x6d\xf5\xd0\x89\x3c\xb2\x60\xe7\xe7\xde\x54\x1c\x48\xe3\xcc\x8b\x72\xa5\x23\x53\x2b\xc4\x52\xfd\x19\x16\xdb\xa6\x7e\xdc\xf3\xa5\x4c\xd4\x85\x6d\xea\x10\x46\xa7\x2f\x33\xea\x7c\xa7\x5f\x46\x30\xd9\x34\x40\xdc\x25\x3e\xfb\xa2\x5c\x2d\x59\x1c\x53\x13\xec\xfd\xc2\x95\x86\xae\x46\x17\x7d\x10\xbe\xfd\xe2\xef\x0e\x10\xa6\xdf\xe6\xa9\x9e\x08\x01\x52\x05\xbd\xa9\xcc\xcc\xe0\x5c\x9f\xb0\xfd\x22\x41\xc6\xfd\xe9\xb4\xa6\x3d\xb7\xb3\x6e\xde\x56\x09\x9a\x57\x3b\xef\x89\xc7\xec\xee\x83\x3b\xf9\x6f\x90\x4b\x8f\x43\xd2\xfb\x50\x20\x53\xa6\xa4\x25\x4f\x34\x3a\x1f\x34\x27\xfe\xc5\x2a\x56\x5d\xc2\xf5\x0a\xf1\xc4\x72\x3b\xfd\xc3\x7b\x4e\xf7\xc5\x80\x15\x0c\x15\xb0\x7d\x21\xe3\x07\xc9\xab\x35\x53\xa4\x9d\x3e\x5c\x93\xe4\xba\x8a\x8e\xa0\x42\x96\xfa\x9a\x61\x55\xd2\x5c\x8b\x5f\x63\xf9\x9a\xc3\x72\x56\x3e\xd4\x42\x26\xed\x9e\xb6\x47\x57\xbf\x70\x9c\x31\xf9\x2c\x6e\x8f\xf1\xf4\x67\x84\x98\xba\x35\xda\xdf\x59\x1b\xbe\x7a\xbb\xeb\x4e\xc7\x64\x0f\x91\x84\xda\x58\x55\x95\x85\x4f\xea\x93\xdb\xce\xb3\xf0\xe0\x62\x43\x25\xe0\x25\x23\xc5\xcc\x59\x42\x76\x5b\xbf\x9b\x8f\xed\xb9\xa3\x83\xef\x5c\x02\x32\xbc\xeb\x16\x43\x48\x01\x8b\x12\xf5\x85\x8e\xe1\x4a\x71\x7d\xd0\xd9\xe7\xa0\x1a\xc6\xc0\xaf\x65\x84\xc0\xe3\xaa\xfa\x2c\xab\x56\xb5\x1c\x85\xd0\xd9\xff\x05\xce\x35\xd3\x51\x0a\xae\xd5\xdb\x5b\x53\x2c\x95\x1f\xce\xbb\xbb\x7d\x80\x03\xd5\x21\xed\xed\x75\x1d\xd3\x49\x8a\x4e\x80\x6a\x37\x54\x7d\x19\xe6\x1f\xd4\xdd\xc6\x35\x43\xa8\xd0\x53\xd2\xd9\x20\x5e\x39\x07\x44\xab\xc2\x19\xe0\x55\x1d\x02\xc9\x07\xaf\xaa\xaf\x53\xd7\x90\xb3\x33\x77\xc3\x4f\x05\x86\x00\x6a\x85\xd9\x4a\x61\xd1\xbc\x2c\x76\xd0\x08\x81\x53\xa8\xc4\x90\x4a\x1c\x2b\xa5\x07\x7e\xaf\x75\xd1\xc1\x00\x3a\x5c\x1c\x23\x04\xc7\xc9\x64\x67\x10\xf3\x22\xff\x23\xd7\x8e\x9d\xad\xdb\x46\xef\xd3\x75\x32\xe6\x6c\x23\x82\x91\xf1\xc7\x12\x77\x12\x64\x95\x58\xd4\xde\x75\xd4\xdd\x10\x13\x8a\x29\x2d\x52\x5c\x53\x12\x45\x49\x1a\x1e\x66\x33\x36\xd9\xfa\xc8\xfb\xce\xdf\x06\xc1\x0e\xa5\x1a\xc4\x0e\x1c\x77\x56\x5f\xe9\x15\x63\x39\xb5\x97\x2a\x71\x29\x28\xfb\xe9\xf9\xc4\x2b\x2c\x3a\x16\xf0\x98\xcb\xdf\x75\x03\x64\x8b\xcb\x99\xf5\xc4\xea\x82\x6b\xdb\xc3\x38\xd8\x8b\x17\x0a\xb7\xd9\x31\xb0\x96\xbe\x16\x61\x03\xbc\xb2\xfb\xe1\x91\xd0\x74\x99\xae\xf4\x26\x99\xa9\xf7\x07\x35\x5e\xd2\x07\x15\x00\xef\x1b\x74\xd5\xff\xdd\x95\x75\x29\x8c\x55\x3f\x65\xbb\xc5\x37\xb7\x77\x88\xfe\xb9\x5e\x91\x6b\xc0\x19\x26\xc4\x76\x84\x34\xc5\x7f\x11\xea\xc5\x89\x41\x00\x09\x71\xb8\xe6\x25\x93\x0c\x67\x4c\x5e\x16\xfc\xbb\xfd\xb7\xd9\x70\x69\xa9\x54\x8b\x8f\xc6\x67\x54\x2e\xc6\xc5\xa3\xf9\x6f\x7e\x2b\x52\x2b\x5c\xc0\xd3\x07\x78\x50\x1c\x2b\x93\xf3\xa7\x1c\x7c\x2b\xb4\xe5\x5d\xb4\xa9\xd9\x58\x2e\x8c\x94\x7a\xb4\x0e\xc3\x19\x27\x8a\x5d\x05\xff\x9d\x68\x32\x2e\xd2\xf1\x72\x0c\xe2\xa7\x81\x87\xd7\xbc\xb6\xf3\x81\x32\xd6\xa4\x16\x64\xff\xe0\x50\xfb\x73\xb5\xcb\xd0\x5a\x36\x6d\x09\xf5\x51\xf4\x19\x1d\x13\xf0\x44\xbf\x6f\xc9\xb3\xb3\xed\xd7\xd2\xf8\x19\xaf\x8d\xb2\x5c\x7f\x2f\x7b\x53\xac\x0e\x54\x51\x18\x78\x4b\x64\x9a\x4b\x39\x61\xbc\x5e\x96\x23\x86\x58\xf1\xb2\x64\xd8\x17\x27\xd8\x85\x92\x28\x1c\xb8\xad\xdf\xa6\x40\xeb\xda\x4a\x78\x5b\x57\xd6\xc1\x51\x4d\xd0\xab\x98\x20\xbd\xf1\x49\x02\xfe\x42\x8b\x67\x29\x0e\xa8\xb6\xca\xfc\xba\x1e\xf8\x27\x83\xbc\x2b\xa9\xf7\xa3\x43\x3e\xda\x8c\x02\x44\x3c\x11\x0c\x2c\xff\x90\x23\xcd\xb2\x43\xbf\xa4\xf9\x8f\xa8\x11\x77\xf1\x80\x21\x9f\x89\xff\x47\x5c\x58\x50\xea\xf6\x18\x61\x64\x3f\x43\x2a\x90\xc5\x2e\x85\x16\xef\xd4\x7e\xf4\x46\x8f\x97\x0b\x8a\xdc\xa6\x86\x73\x55\x90\xbc\x93\x14\x95\x2c\x48\x9f\x95\x59\x51\xc8\x18\x42\x17\xbb\x8f\xb6\x5f\x7d\x89\x85\x7c\xb4\xbc\x0e\x0e\x9a\x41\x30\x11\x8b\xc0\x15\x93\xd0\x59\x91\x0d\x08\xa0\x44\x84\x23\x50\x87\x30\xb6\x56\x7b\x8a\x8d\xf6\x6c\xb9\x83\x13\x98\x74\xa4\x3b\xaf\x2d\x98\xec\x8b\xd6\x7b\xf4\xff\x15\xc7\x6e\xaa\xe5\xd5\xcf\xf6\xaf\xf5\xca\xdb\x9e\xb4\xd0\xcc\xb4\xb8\x19\xe6\xda\x16\x51\x1e\xea\x2e\x81\xf0\xec\xd5\x9b\x60\x21\x8b\x73\x3c\x73\x04\x24\x62\x4c\x53\x44\x02\xc6\xbe\xe5\xae\x5a\x1d\x15\x43\x4a\x66\x53\xae\x75\xb4\xbe\xeb\x0e\xa5\x86\x37\xf7\x59\x80\x85\xd0\xe2\xd2\x04\x60\x5f\x65\xda\xad\x12\x12\xd3\x0b\x45\x54\xb3\x36\xde\x22\xc4\xec\x03\x47\x22\x5e\xfb\x6a\x07\x27\x17\x86\x29\xf8\x63\x0a\x91\x39\x66\x99\x33\x26\xd6\x35\xf6\xa1\x6b\xe2\x3e\xa4\x4e\xe4\xcb\x47\xde\xf1\x85\x28\x64\x00\x10\xa3\xfa\xba\x4a\x81\x7b\x26\xe9\x1c\xec\xd6\x49\x78\x77\xea\x76\xe0\xf8\xdc\x55\x55\xcf\xee\x43\xee\xec\x2e\x6c\x63\xa1\xf5\x2b\x3c\x2d\xb6\x47\x23\x32\xf3\xe3\x8c\x44\xfd\x32\x65\x2f\x10\xc7\x41\x08\xae\xc8\x55\x32\xd9\xe4\xbd\xc7\x44\x4a\xd4\x15\x3a\xc4\x94\xd7\x57\x5c\x8b\x56\xc5\x0a\x3e\xbc\xfa\x14\x19\x2e\x29\xcf\x23\x0c\xf5\x76\x0e\x18\xe2\xf7\x43\x4e\xda\x85\x7c\xb7\x69\x40\x40\x38\x6d\xb4\xb6\xa5\x99\xf4\x05\x62\x14\x4e\xbe\x50\xc7\xba\x2a\x11\xae\x3c\x7f\x64\x10\xb0\x42\xc8\xd1\x57\x24\x70\xed\x84\x8d\x6c\x10\xa9\x31\x0f\xb7\x6d\x13\xe7\x2c\x56\x79\x75\xb5\xb1\xfc\x5d\x24\x50\x2d\x38\xc4\xe9\x53\xf5\x78\xa5\x7b\x55\xb3\x96\x11\x4c\xe6\x17\xa8\x96\xc9\x63\x25\x29\x14\x26\x75\xaf\xa6\xe4\x0b\x2b\xaa\x98\xfa\xa1\xb4\x09\xf0\x30\x26\xc4\x1b\xef\x74\xe5\x85\xee\x69\x65\xae\xa4\xc2\xb2\xdf\x2b\xe1\xa0\x4f\x10\xbc\xb9\x08\x69\x4c\x36\x7a\xb6\x8f\x63\xf9\x98\x29\x9e\x29\x00\x18\x90\x54\x87\xdc\x30\x9c\x1a\xbe\x4d\xb6\x31\xd9\x1f\x8f\xf1\x7e\xf6\x78\x9c\x79\x71\xb1\xc0\xef\x38\x8f\x4c\x86\xe5\x8a\x54\x42\xc2\x79\x41\xbc\x18\x8e\x4b\xe2\x65\x71\xe8\x47\x1a\x27\x89\x44\x40\xe6\x49\x6b\xed\x46\xa0\xaf\x87\xe5\x3c\xf1\x4b\x3c\x36\x14\x9e\x61\xc7\x9c\x66\xfc\x7e\x7f\x62\xe3\x91\x00\xf5\x3f\x2b\xcc\x93\x4d\x6a\x58\xc2\x68\x8f\x26\xbe\x5a\x3c\x31\x86\x94\x5f\x7a\xbc\x48\xf5\x1f\x57\x1c\xa4\x40\x20\x10\x87\x61\xa0\x91\x20\x06\x9e\x60\x48\x95\xfa\xa3\xad\x71\x0f\x39\x10\x0a\xc3\x3a\xbb\xdd\x96\x1b\xd4\x36\xa8\xaf\x5a\x40\xe1\xf6\x3c\x79\x56\x49\xd2\xc2\x46\x7e\x71\x7f\x91\x27\xdb\xae\x6a\x9f\xa5\xa2\x60\x26\x19\xec\x46\xf5\xbd\x21\x44\x88\xbb\x52\x76\x9c\x08\xda\x9c\x54\xc1\x58\xb3\xac\x0c\xaf\x4b\x03\x78\xd5\xb9\xae\x24\x9a\xd6\x3c\x9c\x39\x31\xbf\x18\xb9\x38\x57\x5b\xe7\x0b\x60\x4f\xcf\x61\x06\x89\x6a\xb0\xef\x7b\xee\x6f\x7f\x6a\x29\xf2\x06\x5a\xe5\xc8\xd7\xe9\xcc\x8b\x4f\x95\xc6\x1d\x4b\xea\x95\xb5\x44\xfe\xe3\xce\x4b\x66\x6f\x9b\xdb\xa7\xae\x47\x8b\x29\x27\x2f\x4c\xc3\x20\xdc\x8f\x61\x45\x2d\x7c\xca\xf6\xd3\xf5\x38\x4d\xd5\xab\x9e\xbe\x9f\x06\xff\xf5\x0f\xfe\x69\x75\x14\xfe\xf1\xdf\xdc\x21\xd3\x6f\x05\x7c\xf9\xca\x1c\x7a\xa7\xa7\xe2\x36\x0b\x0c\x47\xcf\x73\xe3\xd5\xb8\xf5\xe9\x9b\x8a\x3a\xd2\x13\x58\xa4\xe1\xaa\x58\x5f\x16\x7d\x55\x9c\x22\x3c\x69\x43\x28\xd3\xca\x8f\x28\x19\xb2\x5a\x4e\x6d\x93\x7b\x7a\xd0\x07\x90\x44\xae\xb1\xc0\x78\x60\xdf\xaa\x00\x5f\x55\xab\x9c\x72\xb2\x5f\x31\x91\x97\x01\xf7\x6b\x93\xde\x25\xb9\x74\xa4\x9e\x02\x36\x48\x63\xb5\x6f\x26\x48\x19\x41\x4b\x73\x2b\x95\xc0\x2b\x30\xb7\xa9\x8d\x1b\x65\xe8\xf9\xb8\x35\x49\xc2\xe4\x96\xd9\x93\xba\x70\x25\xf5\x6d\xf7\xf2\x31\xe1\x74\x12\x47\x3d\xb1\xc3\x51\x35\x1f\x95\xce\x0d\x5b\x50\x32\xd2\xd4\xb6\xb9\x1d\x5c\x0a\x12\x84\x22\x7d\xc7\x49\x92\xaf\x27\x4a\x7a\xd1\x65\x4c\xcd\x80\x5d\x1d\xc1\x63\x6e\xea\x7d\xb9\x6e\x5c\xbb\xae\x47\xed\x9e\xff\x10\xb0\xb5\x81\x6d\xfd\x67\x41\x62\xc6\x93\xec\x14\x15\x14\x3f\xf5\x67\x14\x46\x22\x79\x08\xd6\x19\x84\x25\xb0\x03\xa1\x64\x1f\x94\xff\x56\x4c\x3f\xcb\xed\x91\x42\x75\x69\x4b\xbd\xe4\xad\x2b\x88\xc3\x9c\x4b\x74\x57\x90\xd5\xa6\x0a\x53\x31\x75\x65\xa8\xcc\xa0\xf0\x87\xf1\x49\xde\x69\xcd\x21\xaa\x96\x5e\xc8\x85\xd8\x89\xdc\x89\xf5\x29\x52\x0d\x86\x4e\xa5\xb8\xc4\x17\x37\x70\xbf\x9c\x7a\x1b\x9f\x9f\x16\xd9\xf7\xa6\x9c\xd7\xfd\x44\x66\x5a\xc5\x3c\x7b\x56\x8c\xb7\x20\x41\xa2\x0f\xff\xaa\xf9\x77\xec\xff\x09\x32\xda\x2e\x0c\x0c\x91\x84\xa5\x3f\xf6\xb6\xe2\x0e\x4b\x07\x64\xfc\xbf\xcd\x75\x83\x6d\x2e\xc9\xc4\x15\xda\xf5\x56\x21\x97\xf8\xcf\x9e\xa4\xa1\x25\xfa\xed\x76\x1d\xf6\x5d\x14\x9d\x49\x45\x90\x26\x5d\xbf\x97\x2e\xd7\x61\x44\x05\x44\xe9\xac\x7e\x4d\x1a\xa3\xc4\x4a\x8d\x00\x45\x44\x92\x25\xf5\x3a\x7e\x7e\xf8\x03\x94\xe4\xa5\xf9\x77\xea\x2c\x64\xdd\x8c\xda\xf3\xfd\x27\x87\xc1\xf6\xcb\xe8\xf5\xc0\x10\x1c\xdd\x9d\x0f\x76\x2b\xa4\xf9\x93\x26\xf1\x3f\xef\xce\x6b\x56\x4c\x44\x15\x0f\x9e\x47\x40\x8f\xd1\x61\xb7\xea\x62\xed\x93\x27\x24\x10\x96\x45\xa0\x00\xe4\x87\xa3\x72\x54\xbe\xe8\xeb\x04\x42\x6e\x6b\xb1\x29\xee\xc1\x7c\x5c\x7c\xf9\x87\xde\xf8\x3f\xef\x77\x29\x32\x96\xfd\x79\xd7\x7b\x2f\xdb\x9d\xa0\x47\x0b\x1d\x15\x2a\x85\xda\xc1\x96\x54\x0b\x8e\xc0\x06\x82\x60\xb4\xc0\x8f\xb5\xae\x52\x15\x6d\x82\x4e\xdc\x59\x28\x58\x1e\xe8\x13\x8d\x6c\x80\x68\xa7\x56\x60\x8f\x59\xb2\x62\x34\x18\xd7\x9e\xa7\x17\x91\x88\xfc\x9d\x79\xd0\x86\x3c\x7b\x02\x2e\x8e\xb0\x01\x9e\x49\xe2\x3b\xe6\x49\x00\x71\x78\x08\xa2\x49\x29\x0b\x32\xc6\x35\x52\xfe\x5a\x86\xe0\xb9\xae\x5a\xe5\xa0\xef\x2d\x0f\x27\x8a\xbf\x88\x91\xee\x68\x66\xde\xe6\xe3\x23\xd6\x58\x71\x3a\xb2\xea\x72\x7e\x7e\xe8\x7c\x16\x7c\x94\xaf\x56\xea\xf4\xfd\xd3\x4e\x48\x33\x93\x67\xbe\x67\x1d\x35\x4b\x02\x81\x24\x86\x22\xd6\x88\x01\x55\xfd\xd5\x38\xaf\x52\x05\x19\x4e\x65\x17\xf9\xac\xf0\x61\xd9\x7f\xc0\xb7\x03\x32\x98\x87\xa3\xd8\x38\xab\xc8\xc2\x03\x25\x3f\x58\xff\x2b\x21\x76\x6e\x7c\x39\x20\x3e\x49\x52\x59\xbe\xa2\x14\x71\xe3\x7d\x64\xc5\x3c\x1a\xd3\x8f\x98\xca\x50\x71\x76\x99\x48\x30\x8d\xf2\x12\xef\x6d\x8d\xb5\xcf\x36\x48\x44\x23\x26\x07\x94\xda\x93\xe5\x5d\x5e\x5e\x3e\xb5\x29\x50\x2c\xda\x04\x71\x65\x4b\x6d\x0c\x62\x0c\x4b\x41\x80\x5c\xe4\x97\x1e\xb5\x2a\x60\xed\xa3\xe3\x72\xbb\x88\xd2\x78\x39\xa5\xbd\x09\x05\xed\xac\x54\x72\x24\xfc\x5c\xd9\x8f\x11\x65\x8d\xb2\x22\xbe\xec\xcc\x78\xdf\x79\xf4\x20\x13\x96\xd6\x84\x46\xc6\x9c\xf0\x5b\x65\x0e\xc4\x37\x35\x2d\x25\xac\xc0\x8e\x36\x68\xa7\x76\x2f\xba\xd5\xa2\x24\xaa\xd5\x88\x91\x0c\xd5\x0e\x1f\xac\x87\x97\x87\x67\x21\x54\x7b\x13\x66\x40\x31\x35\x7f\x75\x32\x22\xf1\x5c\x57\xeb\xb6\xe4\xf6\x36\xf3\x25\xf1\x2d\x26\xb5\x0e\x55\xa3\x74\x76\x97\x0b\x5b\x2b\xe5\x23\x9a\x5a\x6e\x07\x37\xf2\xdd\xbd\x61\xfb\x2c\x7e\xfe\x8a\x85\x50\x2e\xda\x92\x9b\x16\x3d\x19\x29\x4c\x96\x76\xc0\x66\x0b\x0d\xa8\xb7\xe8\x26\x2c\x53\xa6\x5b\x59\x0b', 2)
| 4,597
| 13,731
| 0.750417
| 3,435
| 13,791
| 3.008734
| 0.077147
| 0.011611
| 0.011321
| 0.009289
| 0.003774
| 0.002322
| 0.002322
| 0
| 0
| 0
| 0
| 0.317611
| 0.000725
| 13,791
| 3
| 13,731
| 4,597
| 0.432334
| 0
| 0
| 0
| 0
| 0.333333
| 0.992893
| 0.992893
| 0
| 1
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0.333333
| 0
| 0.333333
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 1
| 1
| 1
| null | 1
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 0
| 0
|
0
| 11
|
2dccb7bff19eb6dc24ff8a632447b22869659924
| 3,952
|
py
|
Python
|
footprint_airflow/dags/utils/date_util.py
|
footprint-network/footprint-analytics
|
5de4932ce1c21860785edcce90ffdf097b6f9921
|
[
"MIT"
] | null | null | null |
footprint_airflow/dags/utils/date_util.py
|
footprint-network/footprint-analytics
|
5de4932ce1c21860785edcce90ffdf097b6f9921
|
[
"MIT"
] | null | null | null |
footprint_airflow/dags/utils/date_util.py
|
footprint-network/footprint-analytics
|
5de4932ce1c21860785edcce90ffdf097b6f9921
|
[
"MIT"
] | 1
|
2021-09-20T22:31:20.000Z
|
2021-09-20T22:31:20.000Z
|
from datetime import datetime, timedelta
import pandas as pd
import pytz
class DateUtil(object):
IND_TIMEZONE = pytz.timezone('Asia/Kolkata')
ZH_TIMEZONE = pytz.timezone('Asia/Shanghai')
UTC_TIMEZONE = pytz.timezone('UTC')
@classmethod
def ind_current(cls) -> datetime:
return datetime.now(cls.IND_TIMEZONE)
@classmethod
def zh_current(cls) -> datetime:
return datetime.now(cls.ZH_TIMEZONE)
@classmethod
def utc_current(cls) -> datetime:
return datetime.now(cls.UTC_TIMEZONE)
@classmethod
def utc_start_of_date(cls, dt: datetime = None) -> datetime:
if not dt:
dt = cls.utc_current()
return cls.UTC_TIMEZONE.localize(datetime(dt.year, dt.month, dt.day))
@classmethod
def get_date(cls) -> datetime:
return datetime.now(cls.UTC_TIMEZONE) - timedelta(days=1)
@classmethod
def utc_24h_ago(cls) -> datetime:
return datetime.now(cls.UTC_TIMEZONE) - timedelta(days=1)
@classmethod
def utc_x_hours_ago(cls, x: int, dt: datetime = None) -> datetime:
if not dt:
dt = cls.utc_current()
return dt - timedelta(hours=x)
@classmethod
def utc_x_hours_after(cls, x: int, dt: datetime = None) -> datetime:
if not dt:
dt = cls.utc_current()
return dt + timedelta(hours=x)
@classmethod
def utc_to_ind(cls, dt: datetime) -> datetime:
if dt.tzinfo is None:
dt = cls.UTC_TIMEZONE.localize(dt)
return dt.astimezone(cls.IND_TIMEZONE)
@classmethod
def ind_to_utc(cls, dt: datetime) -> datetime:
if dt.tzinfo is None:
dt = cls.IND_TIMEZONE.localize(dt)
return dt.astimezone(cls.UTC_TIMEZONE)
@classmethod
def zh_to_ind(cls, dt: datetime) -> datetime:
if dt.tzinfo is None:
dt = cls.ZH_TIMEZONE.localize(dt)
return dt.astimezone(cls.IND_TIMEZONE)
@classmethod
def zh_to_utc(cls, dt: datetime) -> datetime:
if dt.tzinfo is None:
dt = cls.ZH_TIMEZONE.localize(dt)
return dt.astimezone(cls.UTC_TIMEZONE)
@classmethod
def ind_of_date(cls, dt: datetime):
return cls.IND_TIMEZONE.localize(dt)
@classmethod
def ind_start_of_date(cls, dt: datetime = None):
if not dt:
dt = cls.ind_current()
return cls.IND_TIMEZONE.localize(datetime(dt.year, dt.month, dt.day))
@classmethod
def ind_end_of_date(cls, dt: datetime = None):
if not dt:
dt = cls.ind_current()
return cls.IND_TIMEZONE.localize(datetime(dt.year, dt.month, dt.day, 23, 59, 59, 999))
@classmethod
def ind_end_of_day_seconds(cls, dt: datetime = None):
if not dt:
dt = cls.ind_current()
diff = cls.ind_end_of_date() - dt
second = diff.seconds + 1 if diff.microseconds > 0 else diff.seconds
return second
@classmethod
def zh_start_of_date(cls, dt: datetime = None):
if not dt:
dt = cls.zh_current()
return cls.ZH_TIMEZONE.localize(datetime(dt.year, dt.month, dt.day))
@classmethod
def zh_end_of_date(cls, dt: datetime = None):
if not dt:
dt = cls.zh_current()
return cls.ZH_TIMEZONE.localize(datetime(dt.year, dt.month, dt.day, 23, 59, 59, 999))
@classmethod
def zh_end_of_day_seconds(cls, dt: datetime = None):
if not dt:
dt = cls.zh_current()
diff = cls.zh_end_of_date() - dt
second = diff.seconds + 1 if diff.microseconds > 0 else diff.seconds
return second
@classmethod
def days_diff(cls, start: datetime, end: datetime):
st = cls.ind_start_of_date(cls.utc_to_ind(start))
et = cls.ind_start_of_date(cls.utc_to_ind(end))
return (et - st).days
@classmethod
def tz_localize(cls, dt_sr: pd.Series, tz: str) -> pd.Series:
return dt_sr.dt.tz_localize(tz)
| 31.11811
| 94
| 0.630567
| 551
| 3,952
| 4.346642
| 0.116152
| 0.122756
| 0.065136
| 0.03382
| 0.820877
| 0.782046
| 0.769937
| 0.729436
| 0.7119
| 0.688518
| 0
| 0.008926
| 0.262905
| 3,952
| 126
| 95
| 31.365079
| 0.813251
| 0
| 0
| 0.539216
| 0
| 0
| 0.007085
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.205882
| false
| 0
| 0.029412
| 0.068627
| 0.480392
| 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
|
930b2659d81c6f1b4df05b0d4cc9f85a27322bb8
| 11,577
|
py
|
Python
|
disprcnn/modeling/box_coder.py
|
maheriya/disprcnn
|
a5a563ea72bca0f46215bcab50544dfba2032030
|
[
"Apache-2.0"
] | 191
|
2020-03-27T07:29:21.000Z
|
2022-02-22T13:36:47.000Z
|
disprcnn/modeling/box_coder.py
|
maheriya/disprcnn
|
a5a563ea72bca0f46215bcab50544dfba2032030
|
[
"Apache-2.0"
] | 39
|
2020-04-16T09:40:41.000Z
|
2022-03-22T08:19:57.000Z
|
disprcnn/modeling/box_coder.py
|
maheriya/disprcnn
|
a5a563ea72bca0f46215bcab50544dfba2032030
|
[
"Apache-2.0"
] | 35
|
2020-04-08T09:47:32.000Z
|
2022-01-18T08:19:46.000Z
|
# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved.
import math
import torch
class BoxCoder(object):
"""
This class encodes and decodes a set of bounding boxes into
the representation used for training the regressors.
"""
def __init__(self, weights, bbox_xform_clip=math.log(1000. / 16)):
"""
Arguments:
weights (4-element tuple)
bbox_xform_clip (float)
"""
self.weights = weights
self.bbox_xform_clip = bbox_xform_clip
def encode_x1y1x2y2(self, reference_boxes, proposals):
"""
Encode a set of proposals with respect to some
reference boxes
Arguments:
reference_boxes (Tensor): reference boxes
proposals (Tensor): boxes to be encoded
"""
TO_REMOVE = 1 # TODO remove
ex_widths = proposals[:, 2] - proposals[:, 0] + TO_REMOVE
ex_heights = proposals[:, 3] - proposals[:, 1] + TO_REMOVE
ex_ctr_x = proposals[:, 0] + 0.5 * ex_widths
ex_ctr_y = proposals[:, 1] + 0.5 * ex_heights
gt_widths = reference_boxes[:, 2] - reference_boxes[:, 0] + TO_REMOVE
gt_heights = reference_boxes[:, 3] - reference_boxes[:, 1] + TO_REMOVE
gt_ctr_x = reference_boxes[:, 0] + 0.5 * gt_widths
gt_ctr_y = reference_boxes[:, 1] + 0.5 * gt_heights
wx, wy, ww, wh = self.weights
targets_dx = wx * (gt_ctr_x - ex_ctr_x) / ex_widths
targets_dy = wy * (gt_ctr_y - ex_ctr_y) / ex_heights
targets_dw = ww * torch.log(gt_widths / ex_widths)
targets_dh = wh * torch.log(gt_heights / ex_heights)
targets = torch.stack((targets_dx, targets_dy, targets_dw, targets_dh), dim=1)
return targets
def encode_x1y1x2y2x1px2p_fromboxes6(self, reference_boxes, proposals):
"""
Encode a set of proposals with respect to some
reference boxes
Arguments:
reference_boxes (Tensor): reference boxes
proposals (Tensor): boxes to be encoded
"""
TO_REMOVE = 1 # TODO remove
ex_widths = proposals[:, 2] - proposals[:, 0] + TO_REMOVE
ex_heights = proposals[:, 3] - proposals[:, 1] + TO_REMOVE
ex_widthsp = proposals[:, 5] - proposals[:, 4] + TO_REMOVE
ex_ctr_x = proposals[:, 0] + 0.5 * ex_widths
ex_ctr_y = proposals[:, 1] + 0.5 * ex_heights
ex_ctr_xp = proposals[:, 4] + 0.5 * ex_widthsp
gt_widths = reference_boxes[:, 2] - reference_boxes[:, 0] + TO_REMOVE
gt_heights = reference_boxes[:, 3] - reference_boxes[:, 1] + TO_REMOVE
gt_widths_p = reference_boxes[:, 5] - reference_boxes[:, 4] + TO_REMOVE
gt_ctr_x = reference_boxes[:, 0] + 0.5 * gt_widths
gt_ctr_y = reference_boxes[:, 1] + 0.5 * gt_heights
gt_ctr_x_p = reference_boxes[:, 4] + 0.5 * gt_widths_p
wx, wy, ww, wh = self.weights
targets_dx = wx * (gt_ctr_x - ex_ctr_x) / ex_widths
targets_dy = wy * (gt_ctr_y - ex_ctr_y) / ex_heights
targets_dw = ww * torch.log(gt_widths / ex_widths)
targets_dh = wh * torch.log(gt_heights / ex_heights)
targets_dx_p = wx * (gt_ctr_x_p - ex_ctr_xp) / ex_widthsp
targets_dw_p = ww * torch.log(gt_widths_p / ex_widthsp)
targets = torch.stack((targets_dx, targets_dy, targets_dw, targets_dh,
targets_dx_p, targets_dw_p), dim=1)
return targets
def encode_x1y1x2y2x1px2p_fromboxes4(self, reference_boxes, proposals):
"""
Encode a set of proposals with respect to some
reference boxes
Arguments:
reference_boxes (Tensor): reference boxes
proposals (Tensor): boxes to be encoded
"""
TO_REMOVE = 1 # TODO remove
ex_widths = proposals[:, 2] - proposals[:, 0] + TO_REMOVE
ex_heights = proposals[:, 3] - proposals[:, 1] + TO_REMOVE
ex_ctr_x = proposals[:, 0] + 0.5 * ex_widths
ex_ctr_y = proposals[:, 1] + 0.5 * ex_heights
gt_widths = reference_boxes[:, 2] - reference_boxes[:, 0] + TO_REMOVE
gt_heights = reference_boxes[:, 3] - reference_boxes[:, 1] + TO_REMOVE
gt_widths_p = reference_boxes[:, 5] - reference_boxes[:, 4] + TO_REMOVE
gt_ctr_x = reference_boxes[:, 0] + 0.5 * gt_widths
gt_ctr_y = reference_boxes[:, 1] + 0.5 * gt_heights
gt_ctr_x_p = reference_boxes[:, 4] + 0.5 * gt_widths_p
wx, wy, ww, wh = self.weights
targets_dx = wx * (gt_ctr_x - ex_ctr_x) / ex_widths
targets_dy = wy * (gt_ctr_y - ex_ctr_y) / ex_heights
targets_dw = ww * torch.log(gt_widths / ex_widths)
targets_dh = wh * torch.log(gt_heights / ex_heights)
targets_dx_p = wx * (gt_ctr_x_p - ex_ctr_x) / ex_widths
targets_dw_p = ww * torch.log(gt_widths_p / ex_widths)
targets = torch.stack((targets_dx, targets_dy, targets_dw, targets_dh,
targets_dx_p, targets_dw_p), dim=1)
return targets
def encode(self, reference_boxes, proposals):
"""
Encode a set of proposals with respect to some
reference boxes
Arguments:
reference_boxes (Tensor): reference boxes
proposals (Tensor): boxes to be encoded
"""
if reference_boxes.shape[1] == 4:
return self.encode_x1y1x2y2(reference_boxes, proposals)
elif reference_boxes.shape[1] == 6 and proposals.shape[1] == 4:
return self.encode_x1y1x2y2x1px2p_fromboxes4(reference_boxes, proposals)
elif reference_boxes.shape[1] == 6 and proposals.shape[1] == 6:
return self.encode_x1y1x2y2x1px2p_fromboxes6(reference_boxes, proposals)
else:
raise ValueError('size(1) is not 4 or 6.')
def decode(self, rel_codes, boxes):
"""
From a set of original boxes and encoded relative box offsets,
get the decoded boxes.
Arguments:
rel_codes (Tensor): encoded boxes
boxes (Tensor): reference boxes.
"""
if rel_codes.shape[1] % 6 == 0 and boxes.shape[1] == 6:
return self.decode_x1y1x2y2x1px2p_fromboxes6(rel_codes, boxes)
elif rel_codes.shape[1] % 6 == 0 and boxes.shape[1] == 4:
return self.decode_x1y1x2y2x1px2p_fromboxes4(rel_codes, boxes)
elif rel_codes.shape[1] % 4 == 0:
return self.decode_x1y1x2y2(rel_codes, boxes)
else:
raise ValueError('wrong shape.')
def decode_x1y1x2y2(self, rel_codes, boxes):
boxes = boxes.to(rel_codes.dtype)
TO_REMOVE = 1 # TODO remove
widths = boxes[:, 2] - boxes[:, 0] + TO_REMOVE
heights = boxes[:, 3] - boxes[:, 1] + TO_REMOVE
ctr_x = boxes[:, 0] + 0.5 * widths
ctr_y = boxes[:, 1] + 0.5 * heights
wx, wy, ww, wh = self.weights
dx = rel_codes[:, 0::4] / wx
dy = rel_codes[:, 1::4] / wy
dw = rel_codes[:, 2::4] / ww
dh = rel_codes[:, 3::4] / wh
# Prevent sending too large values into torch.exp()
dw = torch.clamp(dw, max=self.bbox_xform_clip)
dh = torch.clamp(dh, max=self.bbox_xform_clip)
pred_ctr_x = dx * widths[:, None] + ctr_x[:, None]
pred_ctr_y = dy * heights[:, None] + ctr_y[:, None]
pred_w = torch.exp(dw) * widths[:, None]
pred_h = torch.exp(dh) * heights[:, None]
pred_boxes = torch.zeros_like(rel_codes)
# x1
pred_boxes[:, 0::4] = pred_ctr_x - 0.5 * pred_w
# y1
pred_boxes[:, 1::4] = pred_ctr_y - 0.5 * pred_h
# x2 (note: "- 1" is correct; don't be fooled by the asymmetry)
pred_boxes[:, 2::4] = pred_ctr_x + 0.5 * pred_w
# y2 (note: "- 1" is correct; don't be fooled by the asymmetry)
pred_boxes[:, 3::4] = pred_ctr_y + 0.5 * pred_h
return pred_boxes
def decode_x1y1x2y2x1px2p_fromboxes4(self, rel_codes, boxes):
boxes = boxes.to(rel_codes.dtype)
TO_REMOVE = 1 # TODO remove
widths = boxes[:, 2] - boxes[:, 0] + TO_REMOVE
heights = boxes[:, 3] - boxes[:, 1] + TO_REMOVE
ctr_x = boxes[:, 0] + 0.5 * widths
ctr_y = boxes[:, 1] + 0.5 * heights
wx, wy, ww, wh = self.weights
dx = rel_codes[:, 0::6] / wx
dy = rel_codes[:, 1::6] / wy
dw = rel_codes[:, 2::6] / ww
dh = rel_codes[:, 3::6] / wh
dxp = rel_codes[:, 4::6] / wx
dwp = rel_codes[:, 5::6] / ww
# Prevent sending too large values into torch.exp()
dw = torch.clamp(dw, max=self.bbox_xform_clip)
dh = torch.clamp(dh, max=self.bbox_xform_clip)
dwp = torch.clamp(dwp, max=self.bbox_xform_clip)
pred_ctr_x = dx * widths[:, None] + ctr_x[:, None]
pred_ctr_y = dy * heights[:, None] + ctr_y[:, None]
pred_w = torch.exp(dw) * widths[:, None]
pred_h = torch.exp(dh) * heights[:, None]
pred_ctr_xp = dxp * widths[:, None] + ctr_x[:, None]
pred_wp = torch.exp(dwp) * widths[:, None]
pred_boxes = torch.zeros_like(rel_codes)
# x1
pred_boxes[:, 0::6] = pred_ctr_x - 0.5 * pred_w
# y1
pred_boxes[:, 1::6] = pred_ctr_y - 0.5 * pred_h
# x2 (note: "- 1" is correct; don't be fooled by the asymmetry)
pred_boxes[:, 2::6] = pred_ctr_x + 0.5 * pred_w
# y2 (note: "- 1" is correct; don't be fooled by the asymmetry)
pred_boxes[:, 3::6] = pred_ctr_y + 0.5 * pred_h
# x1p
pred_boxes[:, 4::6] = pred_ctr_xp - 0.5 * pred_wp
# x2p
pred_boxes[:, 5::6] = pred_ctr_xp + 0.5 * pred_wp
return pred_boxes
def decode_x1y1x2y2x1px2p_fromboxes6(self, rel_codes, boxes):
boxes = boxes.to(rel_codes.dtype)
TO_REMOVE = 1 # TODO remove
widths = boxes[:, 2] - boxes[:, 0] + TO_REMOVE
heights = boxes[:, 3] - boxes[:, 1] + TO_REMOVE
widthsp = boxes[:, 5] - boxes[:, 4] + TO_REMOVE
ctr_x = boxes[:, 0] + 0.5 * widths
ctr_xp = boxes[:, 4] + 0.5 * widthsp
ctr_y = boxes[:, 1] + 0.5 * heights
wx, wy, ww, wh = self.weights
dx = rel_codes[:, 0::6] / wx
dy = rel_codes[:, 1::6] / wy
dw = rel_codes[:, 2::6] / ww
dh = rel_codes[:, 3::6] / wh
dxp = rel_codes[:, 4::6] / wx
dwp = rel_codes[:, 5::6] / ww
# Prevent sending too large values into torch.exp()
dw = torch.clamp(dw, max=self.bbox_xform_clip)
dh = torch.clamp(dh, max=self.bbox_xform_clip)
dwp = torch.clamp(dwp, max=self.bbox_xform_clip)
pred_ctr_x = dx * widths[:, None] + ctr_x[:, None]
pred_ctr_y = dy * heights[:, None] + ctr_y[:, None]
pred_w = torch.exp(dw) * widths[:, None]
pred_h = torch.exp(dh) * heights[:, None]
pred_ctr_xp = dxp * widthsp[:, None] + ctr_xp[:, None]
pred_wp = torch.exp(dwp) * widthsp[:, None]
pred_boxes = torch.zeros_like(rel_codes)
# x1
pred_boxes[:, 0::6] = pred_ctr_x - 0.5 * pred_w
# y1
pred_boxes[:, 1::6] = pred_ctr_y - 0.5 * pred_h
# x2 (note: "- 1" is correct; don't be fooled by the asymmetry)
pred_boxes[:, 2::6] = pred_ctr_x + 0.5 * pred_w
# y2 (note: "- 1" is correct; don't be fooled by the asymmetry)
pred_boxes[:, 3::6] = pred_ctr_y + 0.5 * pred_h
# x1p
pred_boxes[:, 4::6] = pred_ctr_xp - 0.5 * pred_wp
# x2p
pred_boxes[:, 5::6] = pred_ctr_xp + 0.5 * pred_wp
return pred_boxes
| 41.346429
| 86
| 0.579943
| 1,660
| 11,577
| 3.788554
| 0.085542
| 0.104627
| 0.015265
| 0.024328
| 0.846557
| 0.836858
| 0.807919
| 0.799332
| 0.788679
| 0.788679
| 0
| 0.041896
| 0.294895
| 11,577
| 279
| 87
| 41.494624
| 0.728531
| 0.147966
| 0
| 0.72
| 0
| 0
| 0.003577
| 0
| 0
| 0
| 0
| 0.014337
| 0
| 1
| 0.051429
| false
| 0
| 0.011429
| 0
| 0.137143
| 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
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 8
|
9312cbb9f025080adc384b8969be4e7a7a2a38b3
| 24,562
|
py
|
Python
|
tensorflow_lattice/python/lib/lattice_layers_test.py
|
agiledots/study-lattice
|
7653b3565e4b4c72def59c7f3608cddfc9e80fe2
|
[
"Apache-2.0"
] | null | null | null |
tensorflow_lattice/python/lib/lattice_layers_test.py
|
agiledots/study-lattice
|
7653b3565e4b4c72def59c7f3608cddfc9e80fe2
|
[
"Apache-2.0"
] | null | null | null |
tensorflow_lattice/python/lib/lattice_layers_test.py
|
agiledots/study-lattice
|
7653b3565e4b4c72def59c7f3608cddfc9e80fe2
|
[
"Apache-2.0"
] | null | null | null |
# Copyright 2017 The TensorFlow Lattice Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
# ==============================================================================
"""Tests for TensorFlow Lattice's lattice_layers module."""
# Dependency imports
from tensorflow_lattice.python.lib import lattice_layers
from tensorflow.python.framework import dtypes
from tensorflow.python.framework import ops
from tensorflow.python.ops import array_ops
from tensorflow.python.ops import state_ops
from tensorflow.python.ops import variables
from tensorflow.python.platform import test
class LatticeParamTestCase(test.TestCase):
def setUp(self):
super(LatticeParamTestCase, self).setUp()
def testTwoByTwoOneOutput(self):
lattice_param = lattice_layers.lattice_param_as_linear(
lattice_sizes=[2, 2], output_dim=1)
self.assertAllClose([[-0.5, 0.0, 0.0, 0.5]], lattice_param)
def testTwoByTwoTwoOutputs(self):
lattice_param = lattice_layers.lattice_param_as_linear(
lattice_sizes=[2, 2],
output_dim=2,
linear_weights=[[1.0, 1.0], [-0.1, 0.3]])
self.assertAllClose([[-0.5, 0.0, 0.0, 0.5], [-0.05, -0.1, 0.1, 0.05]],
lattice_param)
def testTwoByThreeByTwoOneOutput(self):
lattice_param = lattice_layers.lattice_param_as_linear(
lattice_sizes=[2, 3, 2], output_dim=1, linear_weights=[-1.0, 1.0, 1.0])
self.assertAllClose([[
-0.1666667, -0.5, 0.0, -0.3333333, 0.1666667, -0.1666667, 0.1666667,
-0.1666667, 0.3333333, 0.0, 0.5, 0.1666667
]], lattice_param)
def testWrongLatticeSizesExpectError(self):
with self.assertRaises(ValueError):
_ = lattice_layers.lattice_param_as_linear(
lattice_sizes=[1, -1], output_dim=1)
def testEmptyLatticeSizesExpectError(self):
with self.assertRaises(ValueError):
_ = lattice_layers.lattice_param_as_linear(lattice_sizes=[], output_dim=1)
def testMoreLinearWeightsThanLatticeRankExpectError(self):
with self.assertRaises(ValueError):
_ = lattice_layers.lattice_param_as_linear(
lattice_sizes=[2, 2], output_dim=1, linear_weights=[1, 2, 3])
def testLessLinearWeightsThanOutputDimExpectError(self):
with self.assertRaises(ValueError):
_ = lattice_layers.lattice_param_as_linear(
lattice_sizes=[2, 2], output_dim=2, linear_weights=[[1, 2]])
def testWrongLinearWeightsExpectError(self):
with self.assertRaises(ValueError):
_ = lattice_layers.lattice_param_as_linear(
lattice_sizes=[2, 2], output_dim=2, linear_weights=[[1], [1, 2]])
class LatticeLayersTestCase(test.TestCase):
def setUp(self):
super(LatticeLayersTestCase, self).setUp()
def _testLatticeLayerEvaluation(self, interpolation_type, lattice_sizes,
output_dim, inputs, parameters,
expected_outputs):
"""Test evaluation of lattice layers."""
with ops.Graph().as_default():
input_tensor = array_ops.constant(inputs, dtype=dtypes.float32)
init_param = array_ops.constant(parameters, dtype=dtypes.float32)
(output_tensor, _, _, _) = lattice_layers.lattice_layer(
input_tensor,
lattice_sizes=lattice_sizes,
output_dim=output_dim,
interpolation_type=interpolation_type,
lattice_initializer=init_param)
with self.test_session() as sess:
sess.run(variables.global_variables_initializer())
output_tensor_values = sess.run(output_tensor)
self.assertAllClose(output_tensor_values, expected_outputs)
def testWrongInterpolationTypeExpectError(self):
with self.assertRaises(ValueError):
self._testLatticeLayerEvaluation(
interpolation_type='wrong',
output_dim=2,
lattice_sizes=[2, 2],
inputs=[[0.5, 0.5]],
parameters=[[1.0, 2.0], [3.0, 4.0]],
expected_outputs=[[2.5]])
def testHypercubeEvaluation(self):
inputs = [[-1.0, 0.0], [0.0, 0.0], [0.1, 0.9], [0.3, 1.1], [1.5, 2.0],
[1.6, 3.0]]
parameters = [[0.0, 0.1, 1.1, 2.3, 3.1, 4.2],
[5.1, 2.11, 1.11, 3.21, -1.02, -2.2]]
expected_outputs = [[0.0, 5.1], [0.0, 5.1], [1.099, 1.6681],
[1.657, 1.4286], [4.2, -2.2], [4.2, -2.2]]
self._testLatticeLayerEvaluation(
interpolation_type='hypercube',
output_dim=2,
lattice_sizes=[2, 3],
inputs=inputs,
parameters=parameters,
expected_outputs=expected_outputs)
def testSimplexEvaluation(self):
inputs = [[-1.0, 0.0], [0.0, 0.0], [0.1, 0.9], [0.3, 1.1], [1.5, 2.0],
[1.6, 3.0]]
parameters = [[0.0, 0.1, 1.1, 2.3, 3.1, 4.2],
[5.1, 2.11, 1.11, 3.21, -1.02, -2.2]]
expected_outputs = [[0.0, 5.1], [0.0, 5.1], [1.11, 1.719], [1.65, 1.199],
[4.2, -2.2], [4.2, -2.2]]
self._testLatticeLayerEvaluation(
interpolation_type='simplex',
output_dim=2,
lattice_sizes=[2, 3],
inputs=inputs,
parameters=parameters,
expected_outputs=expected_outputs)
def testHypercubeEvaluationWithLinearParam(self):
lattice_sizes = [2, 3]
output_dim = 2
inputs = [[0.0, 0.0], [0.1, 0.9], [0.3, 1.1], [1.5, 2.0]]
# This parameter works as a linear function
# f(x1, x2) == 1/2 * (x1 + x2) - 0.75
parameters = lattice_layers.lattice_param_as_linear(
lattice_sizes=lattice_sizes, linear_weights=[1.0, 2.0], output_dim=2)
expected_outputs = [[-0.75, -0.75], [-0.25, -0.25], [-0.05, -0.05],
[0.75, 0.75]]
self._testLatticeLayerEvaluation(
interpolation_type='hypercube',
output_dim=output_dim,
lattice_sizes=lattice_sizes,
inputs=inputs,
parameters=parameters,
expected_outputs=expected_outputs)
def testSimplexEvaluationWithLinearParam(self):
lattice_sizes = [2, 3]
output_dim = 2
inputs = [[0.0, 0.0], [0.1, 0.9], [0.3, 1.1], [1.5, 2.0]]
# This parameter works as linear functions
# f(x1, x2) = [0.5 * (x1 + x2) - 0.75, x1 + x2 - 1.5]
parameters = lattice_layers.lattice_param_as_linear(
lattice_sizes=lattice_sizes,
output_dim=2,
linear_weights=[[1.0, 2.0], [2.0, 4.0]])
expected_outputs = [[-0.75, -1.5], [-0.25, -0.5], [-0.05, -0.1],
[0.75, 1.5]]
self._testLatticeLayerEvaluation(
interpolation_type='simplex',
output_dim=output_dim,
lattice_sizes=lattice_sizes,
inputs=inputs,
parameters=parameters,
expected_outputs=expected_outputs)
def testHypercubeNoRegularizationExpectsNone(self):
lattice_sizes = [2, 3]
with ops.Graph().as_default():
input_tensor = array_ops.placeholder(
shape=[None, 2], dtype=dtypes.float32)
(_, _, _, regularization) = lattice_layers.lattice_layer(
input_tensor,
lattice_sizes=lattice_sizes,
output_dim=1,
interpolation_type='hypercube')
self.assertEqual(regularization, None)
def testSimplexNoRegularizationExpectsNone(self):
lattice_sizes = [2, 3]
with ops.Graph().as_default():
input_tensor = array_ops.placeholder(
shape=[None, 2], dtype=dtypes.float32)
(_, _, _, regularization) = lattice_layers.lattice_layer(
input_tensor,
lattice_sizes=lattice_sizes,
output_dim=1,
interpolation_type='simplex')
self.assertEqual(regularization, None)
def testHypercubeRegularization(self):
lattice_sizes = [2, 3]
parameters = [[0.0, 0.1, 1.1, 2.3, 3.1, 4.2],
[5.1, 2.11, 1.11, 3.21, -1.02, -2.2]]
output_dim = 2
with ops.Graph().as_default():
input_tensor = array_ops.placeholder(
shape=[None, 2], dtype=dtypes.float32)
init_param = array_ops.constant(parameters, dtype=dtypes.float32)
(_, _, _, regularization) = lattice_layers.lattice_layer(
input_tensor,
lattice_sizes=lattice_sizes,
output_dim=output_dim,
interpolation_type='hypercube',
l1_reg=0.1,
l2_reg=0.1,
l1_torsion_reg=0.1,
l2_torsion_reg=0.1,
l1_laplacian_reg=[0.1, 0.1],
l2_laplacian_reg=[0.1, 0.1],
lattice_initializer=init_param)
with self.test_session() as sess:
sess.run(variables.global_variables_initializer())
self.assertAlmostEqual(26.514278, sess.run(regularization), delta=1e-5)
def testSimplexRegularization(self):
lattice_sizes = [2, 3]
parameters = [[0.0, 0.1, 1.1, 2.3, 3.1, 4.2],
[5.1, 2.11, 1.11, 3.21, -1.02, -2.2]]
output_dim = 2
with ops.Graph().as_default():
input_tensor = array_ops.placeholder(
shape=[None, 2], dtype=dtypes.float32)
init_param = array_ops.constant(parameters, dtype=dtypes.float32)
(_, _, _, regularization) = lattice_layers.lattice_layer(
input_tensor,
lattice_sizes=lattice_sizes,
output_dim=output_dim,
interpolation_type='simplex',
l1_reg=0.1,
l2_reg=0.1,
l1_torsion_reg=0.1,
l2_torsion_reg=0.1,
l1_laplacian_reg=[0.1, 0.1],
l2_laplacian_reg=[0.1, 0.1],
lattice_initializer=init_param)
with self.test_session() as sess:
sess.run(variables.global_variables_initializer())
self.assertAlmostEqual(26.514278, sess.run(regularization), delta=1e-5)
def _testLatticeLayerProjection(self, interpolation_type, lattice_sizes,
output_dim, is_monotone, parameters,
expected_projected_parameters):
"""Test monotonicity projection of lattice layers."""
with ops.Graph().as_default():
input_tensor = array_ops.zeros(
[1, len(lattice_sizes)], dtype=dtypes.float32)
(_, param_tensor, projection_op, _) = lattice_layers.lattice_layer(
input_tensor,
lattice_sizes=lattice_sizes,
is_monotone=is_monotone,
output_dim=output_dim,
interpolation_type=interpolation_type)
with self.test_session() as sess:
sess.run(variables.global_variables_initializer())
sess.run(
state_ops.assign(param_tensor,
array_ops.constant(
parameters, dtype=dtypes.float32)))
sess.run(projection_op)
param_tensor_values = param_tensor.eval()
self.assertAllClose(
param_tensor_values, expected_projected_parameters, atol=1e-4)
def testProjectionWithNonMonotonicHypercube(self):
parameters = [[0.0, 0.1, 1.1, 2.3, 3.1, 4.2],
[5.1, 2.11, 1.11, 3.21, -1.02, -2.2]]
expected_projected_parameters = parameters
self._testLatticeLayerProjection(
interpolation_type='hypercube',
is_monotone=[False, False],
output_dim=2,
lattice_sizes=[2, 3],
parameters=parameters,
expected_projected_parameters=expected_projected_parameters)
def testProjectionWithNonMonotonicSimplex(self):
parameters = [[0.0, 0.1, 1.1, 2.3, 3.1, 4.2],
[5.1, 2.11, 1.11, 3.21, -1.02, -2.2]]
expected_projected_parameters = parameters
self._testLatticeLayerProjection(
interpolation_type='simplex',
is_monotone=[False, False],
output_dim=2,
lattice_sizes=[2, 3],
parameters=parameters,
expected_projected_parameters=expected_projected_parameters)
def testProjectionWithFullMonotonicHypercube(self):
parameters = [[0.0, 0.1, 1.1, 2.3, 3.1, 4.2],
[5.1, 2.11, 1.11, 3.21, -1.02, -2.2]]
expected_projected_parameters = [[0, 0.1, 1.1, 2.3, 3.1, 4.2],
[1.385, 1.385, 1.385, 1.385, 1.385, 1.385]]
self._testLatticeLayerProjection(
interpolation_type='hypercube',
is_monotone=[True, True],
output_dim=2,
lattice_sizes=[2, 3],
parameters=parameters,
expected_projected_parameters=expected_projected_parameters)
def testProjectionWithFullMonotonicSimplex(self):
parameters = [[0.0, 0.1, 1.1, 2.3, 3.1, 4.2],
[5.1, 2.11, 1.11, 3.21, -1.02, -2.2]]
expected_projected_parameters = [[0, 0.1, 1.1, 2.3, 3.1, 4.2],
[1.385, 1.385, 1.385, 1.385, 1.385, 1.385]]
self._testLatticeLayerProjection(
interpolation_type='simplex',
is_monotone=[True, True],
output_dim=2,
lattice_sizes=[2, 3],
parameters=parameters,
expected_projected_parameters=expected_projected_parameters)
class EnsembleLatticesLayersTestCase(test.TestCase):
def setUp(self):
super(EnsembleLatticesLayersTestCase, self).setUp()
def _testEnsembleLatticesLayerEvaluation(
self, interpolation_type, lattice_sizes, structure, output_dim, inputs,
parameters, expected_outputs_list):
"""Test evaluation of ensemble lattices layers."""
with ops.Graph().as_default():
input_tensor = array_ops.constant(inputs, dtype=dtypes.float32)
init_params = [
array_ops.constant(param, dtype=dtypes.float32)
for param in parameters
]
(output_tensor_lists, _, _, _) = lattice_layers.ensemble_lattices_layer(
input_tensor,
lattice_sizes=lattice_sizes,
structure_indices=structure,
output_dim=output_dim,
interpolation_type=interpolation_type,
lattice_initializers=init_params)
self.assertEqual(len(output_tensor_lists), len(structure))
with self.test_session() as sess:
sess.run(variables.global_variables_initializer())
output_values_list = sess.run(output_tensor_lists)
self.assertAllClose(output_values_list, expected_outputs_list)
def testHypercubeEvaluation(self):
inputs = [[-1.0, 0.0], [0.0, 0.0], [0.1, 0.9], [0.3, 1.1], [1.5, 2.0],
[1.6, 3.0]]
structure = [[0], [1], [0, 1]]
# Construct params.
parameters = []
# First one is 1d lattice with two outputs:
# output[0] = x[0], output[1] = 1-x[0].
parameters.append([[0.0, 1.0], [1.0, 0.0]])
# Second one is 1d lattice with two outputs:
# output[0] = x[1] for 1 <= x[1] <= 2, 0 otherwise
# output[1] = 1 - x[1] for 0 <= x[1] <= 1, 0 otherwise.
parameters.append([[0.0, 0.0, 1.0], [1.0, 0.0, 0.0]])
# Third one is 2d lattice.
parameters.append([[0.0, 0.1, 1.1, 2.3, 3.1, 4.2],
[5.1, 2.11, 1.11, 3.21, -1.02, -2.2]])
# Construct expected outputs.
expected_outputs = []
# Expected outputs from the first lattice.
expected_outputs.append([[0.0, 1.0], [0.0, 1.0], [0.1, 0.9], [0.3, 0.7],
[1.0, 0.0], [1.0, 0.0]])
# Expected outputs from the second lattice.
expected_outputs.append([[0.0, 1.0], [0.0, 1.0], [0.0, 0.1], [0.1, 0.0],
[1.0, 0.0], [1.0, 0.0]])
# Expected outputs from the third lattice.
expected_outputs.append([[0.0, 5.1], [0.0, 5.1], [1.099, 1.6681],
[1.657, 1.4286], [4.2, -2.2], [4.2, -2.2]])
self._testEnsembleLatticesLayerEvaluation(
interpolation_type='hypercube',
structure=structure,
output_dim=2,
lattice_sizes=[2, 3],
inputs=inputs,
parameters=parameters,
expected_outputs_list=expected_outputs)
def testSimplexEvaluation(self):
inputs = [[-1.0, 0.0], [0.0, 0.0], [0.1, 0.9], [0.3, 1.1], [1.5, 2.0],
[1.6, 3.0]]
structure = [[0], [1], [0, 1]]
# Construct params.
parameters = []
# First one is 1d lattice with two outputs:
# output[0] = x[0], output[1] = 1 - x[0].
parameters.append([[0.0, 1.0], [1.0, 0.0]])
# Second one is 1d lattice with two outputs:
# output[0] = x[1] for 1 <= x[1] <= 2, 0 otherwise
# output[1] = 1 - x[1] for 0 <= x[1] <= 1, 0 otherwise.
parameters.append([[0.0, 0.0, 1.0], [1.0, 0.0, 0.0]])
# Third one is 2d lattice with two outputs.
parameters.append([[0.0, 0.1, 1.1, 2.3, 3.1, 4.2],
[5.1, 2.11, 1.11, 3.21, -1.02, -2.2]])
# Construct expected outputs.
expected_outputs = []
# Expected outputs from the first lattice.
expected_outputs.append([[0.0, 1.0], [0.0, 1.0], [0.1, 0.9], [0.3, 0.7],
[1.0, 0.0], [1.0, 0.0]])
# Expected outputs from the second lattice.
expected_outputs.append([[0.0, 1.0], [0.0, 1.0], [0.0, 0.1], [0.1, 0.0],
[1.0, 0.0], [1.0, 0.0]])
# Expected outputs from the third lattice.
expected_outputs.append([[0.0, 5.1], [0.0, 5.1], [1.11, 1.719],
[1.65, 1.199], [4.2, -2.2], [4.2, -2.2]])
self._testEnsembleLatticesLayerEvaluation(
interpolation_type='simplex',
structure=structure,
output_dim=2,
lattice_sizes=[2, 3],
inputs=inputs,
parameters=parameters,
expected_outputs_list=expected_outputs)
def testHypercubeRegularization(self):
lattice_sizes = [2, 3]
structure = [[0], [1], [0, 1]]
# Construct params.
parameters = []
parameters.append([[0.0, 1.0], [1.0, 0.0]])
parameters.append([[0.0, 0.0, 1.0], [1.0, 0.0, 0.0]])
parameters.append([[0.0, 0.1, 1.1, 2.3, 3.1, 4.2],
[5.1, 2.11, 1.11, 3.21, -1.02, -2.2]])
output_dim = 2
with ops.Graph().as_default():
input_tensor = array_ops.placeholder(
shape=[None, 2], dtype=dtypes.float32)
init_params = [
array_ops.constant(param, dtype=dtypes.float32)
for param in parameters
]
(_, _, _, regularization) = lattice_layers.ensemble_lattices_layer(
input_tensor,
lattice_sizes=lattice_sizes,
structure_indices=structure,
output_dim=output_dim,
interpolation_type='hypercube',
l1_reg=0.1,
l2_reg=0.1,
l1_torsion_reg=0.1,
l2_torsion_reg=0.1,
l1_laplacian_reg=[0.1, 0.1],
l2_laplacian_reg=[0.1, 0.1],
lattice_initializers=init_params)
with self.test_session() as sess:
sess.run(variables.global_variables_initializer())
self.assertAlmostEqual(28.114279, sess.run(regularization), delta=1e-5)
def testSimplexRegularization(self):
lattice_sizes = [2, 3]
structure = [[0], [1], [0, 1]]
# Construct params.
parameters = []
parameters.append([[0.0, 1.0], [1.0, 0.0]])
parameters.append([[0.0, 0.0, 1.0], [1.0, 0.0, 0.0]])
parameters.append([[0.0, 0.1, 1.1, 2.3, 3.1, 4.2],
[5.1, 2.11, 1.11, 3.21, -1.02, -2.2]])
output_dim = 2
with ops.Graph().as_default():
input_tensor = array_ops.placeholder(
shape=[None, 2], dtype=dtypes.float32)
init_params = [
array_ops.constant(param, dtype=dtypes.float32)
for param in parameters
]
(_, _, _, regularization) = lattice_layers.ensemble_lattices_layer(
input_tensor,
lattice_sizes=lattice_sizes,
structure_indices=structure,
output_dim=output_dim,
interpolation_type='simplex',
l1_reg=0.1,
l2_reg=0.1,
l1_torsion_reg=0.1,
l2_torsion_reg=0.1,
l1_laplacian_reg=[0.1, 0.1],
l2_laplacian_reg=[0.1, 0.1],
lattice_initializers=init_params)
with self.test_session() as sess:
sess.run(variables.global_variables_initializer())
self.assertAlmostEqual(28.114279, sess.run(regularization), delta=1e-5)
def _testEnsembleLatticesLayerProjection(
self, interpolation_type, lattice_sizes, structure, output_dim,
is_monotone, parameters, expected_projected_parameters):
"""Test monotonicity projection of lattice layers."""
with ops.Graph().as_default():
input_tensor = array_ops.zeros(
[1, len(lattice_sizes)], dtype=dtypes.float32)
(_, param_tensors, proj, _) = lattice_layers.ensemble_lattices_layer(
input_tensor,
structure_indices=structure,
lattice_sizes=lattice_sizes,
is_monotone=is_monotone,
output_dim=output_dim,
lattice_initializers=parameters,
interpolation_type=interpolation_type)
with self.test_session() as sess:
sess.run(variables.global_variables_initializer())
# Check initialization.
param_tensor_values = sess.run(param_tensors)
self.assertEqual(len(param_tensor_values), len(parameters))
for (param_value, expected_value) in zip(param_tensor_values,
parameters):
self.assertAllClose(param_value, expected_value, atol=1e-4)
# Check projection.
sess.run(proj)
param_tensor_values = sess.run(param_tensors)
self.assertEqual(
len(param_tensor_values), len(expected_projected_parameters))
for (param_value, expected_value) in zip(param_tensor_values,
expected_projected_parameters):
self.assertAllClose(param_value, expected_value, atol=1e-4)
def testProjectionWithNonMonotonicHypercube(self):
structure = [[0], [0, 1]]
params = []
params.append([[0.0, 1.0], [1.0, -1.0]])
params.append([[0.0, 0.1, 1.1, 2.3, 3.1, 4.2],
[5.1, 2.11, 1.11, 3.21, -1.02, -2.2]])
expected_proj_params = params
self._testEnsembleLatticesLayerProjection(
interpolation_type='hypercube',
structure=structure,
is_monotone=[False, False],
output_dim=2,
lattice_sizes=[2, 3],
parameters=params,
expected_projected_parameters=expected_proj_params)
def testProjectionWithNonMonotonicSimplex(self):
structure = [[0], [0, 1]]
params = []
params.append([[0.0, 1.0], [1.0, -1.0]])
params.append([[0.0, 0.1, 1.1, 2.3, 3.1, 4.2],
[5.1, 2.11, 1.11, 3.21, -1.02, -2.2]])
expected_proj_params = params
self._testEnsembleLatticesLayerProjection(
interpolation_type='hypercube',
structure=structure,
is_monotone=[False, False],
output_dim=2,
lattice_sizes=[2, 3],
parameters=params,
expected_projected_parameters=expected_proj_params)
def testProjectionWithFullMonotonicHypercube(self):
structure = [[0], [0, 1]]
params = []
params.append([[0.0, -10.0], [0.0, 5.0]])
params.append([[0.0, 0.1, 1.1, 2.3, 3.1, 4.2],
[5.1, 2.11, 1.11, 3.21, -1.02, -2.2]])
expected_proj_params = []
expected_proj_params.append([[-5.0, -5.0], [0.0, 5.0]])
expected_proj_params.append([[0, 0.1, 1.1, 2.3, 3.1, 4.2],
[1.385, 1.385, 1.385, 1.385, 1.385, 1.385]])
self._testEnsembleLatticesLayerProjection(
interpolation_type='hypercube',
structure=structure,
is_monotone=[True, True],
output_dim=2,
lattice_sizes=[2, 3],
parameters=params,
expected_projected_parameters=expected_proj_params)
def testProjectionWithFullMonotonicSimplex(self):
structure = [[0], [0, 1]]
params = []
params.append([[0.0, -10.0], [0.0, 5.0]])
params.append([[0.0, 0.1, 1.1, 2.3, 3.1, 4.2],
[5.1, 2.11, 1.11, 3.21, -1.02, -2.2]])
expected_proj_params = []
expected_proj_params.append([[-5.0, -5.0], [0.0, 5.0]])
expected_proj_params.append([[0, 0.1, 1.1, 2.3, 3.1, 4.2],
[1.385, 1.385, 1.385, 1.385, 1.385, 1.385]])
self._testEnsembleLatticesLayerProjection(
interpolation_type='simplex',
structure=structure,
is_monotone=True,
output_dim=2,
lattice_sizes=[2, 3],
parameters=params,
expected_projected_parameters=expected_proj_params)
if __name__ == '__main__':
test.main()
| 39.938211
| 80
| 0.609071
| 3,244
| 24,562
| 4.430025
| 0.073366
| 0.026025
| 0.020458
| 0.01169
| 0.821724
| 0.801614
| 0.770719
| 0.736205
| 0.729733
| 0.725002
| 0
| 0.087926
| 0.248025
| 24,562
| 614
| 81
| 40.003257
| 0.690146
| 0.082282
| 0
| 0.8
| 0
| 0
| 0.007788
| 0
| 0
| 0
| 0
| 0
| 0.045545
| 1
| 0.071287
| false
| 0
| 0.013861
| 0
| 0.091089
| 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
|
93227fa62bc994a2e05e410771eb683f84dcf1fe
| 92
|
py
|
Python
|
deep_utils/vision/__init__.py
|
pooya-mohammadi/deep_utils
|
b589d8ab0a8d63f3d3b90c3bc0d4b1b648b8be37
|
[
"MIT"
] | 36
|
2021-11-10T05:17:18.000Z
|
2022-03-27T18:25:10.000Z
|
deep_utils/vision/__init__.py
|
pooya-mohammadi/deep_utils
|
b589d8ab0a8d63f3d3b90c3bc0d4b1b648b8be37
|
[
"MIT"
] | 1
|
2021-12-03T07:07:18.000Z
|
2022-03-08T09:29:03.000Z
|
deep_utils/vision/__init__.py
|
pooya-mohammadi/deep_utils
|
b589d8ab0a8d63f3d3b90c3bc0d4b1b648b8be37
|
[
"MIT"
] | 4
|
2021-11-28T07:39:57.000Z
|
2022-03-30T05:46:10.000Z
|
from .face_detection import *
from .object_detection import *
from .object_tracker import *
| 23
| 31
| 0.804348
| 12
| 92
| 5.916667
| 0.5
| 0.422535
| 0.535211
| 0.704225
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.130435
| 92
| 3
| 32
| 30.666667
| 0.8875
| 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
|
935d3d0c1b8c982a80091512032a724bb2227325
| 9,708
|
py
|
Python
|
tests/tagvlan/test_header_action.py
|
ararobotique/botblox-manager-software
|
64c5c893601ea62a7ac414023455e8c2da04816d
|
[
"MIT"
] | 6
|
2021-04-18T21:30:17.000Z
|
2022-01-13T06:37:43.000Z
|
tests/tagvlan/test_header_action.py
|
ararobotique/botblox-manager-software
|
64c5c893601ea62a7ac414023455e8c2da04816d
|
[
"MIT"
] | 36
|
2020-12-16T12:29:24.000Z
|
2021-09-18T14:52:25.000Z
|
tests/tagvlan/test_header_action.py
|
ararobotique/botblox-manager-software
|
64c5c893601ea62a7ac414023455e8c2da04816d
|
[
"MIT"
] | 2
|
2021-04-08T20:27:48.000Z
|
2021-08-30T17:32:28.000Z
|
from typing import AnyStr, List
from botblox_config.cli import create_parser
from pytest import CaptureFixture
from ..conftest import assert_ip175g_command_is_correct_type, get_data_from_cli_args, run_command_to_error
class TestSetGroups:
package: List[str] = ['botblox']
base_args: List[str] = [
'--device',
'test',
'tag-vlan',
]
def test_action_keep(self) -> None:
args = self.base_args + [
'--header-action',
'KEEP',
]
data = get_data_from_cli_args(parser=create_parser(args), args=args)
assert_ip175g_command_is_correct_type(data=data)
expected_result = [
[23, 13, 0b00000000, 0], # ADD_TAG
[23, 14, 0b00000000, 0], # REMOVE_TAG
]
assert data == expected_result
def test_action_add(self) -> None:
args = self.base_args + [
'--header-action',
'ADD',
]
data = get_data_from_cli_args(parser=create_parser(args), args=args)
assert_ip175g_command_is_correct_type(data=data)
expected_result = [
[23, 13, 0b11011100, 0], # ADD_TAG
[23, 14, 0b00000000, 0], # REMOVE_TAG
]
assert data == expected_result
def test_action_strip(self) -> None:
args = self.base_args + [
'--header-action',
'STRIP',
]
data = get_data_from_cli_args(parser=create_parser(args), args=args)
assert_ip175g_command_is_correct_type(data=data)
expected_result = [
[23, 13, 0b00000000, 0], # ADD_TAG
[23, 14, 0b11011100, 0], # REMOVE_TAG
]
assert data == expected_result
def test_action_wrong(
self,
capfd: CaptureFixture,
) -> None:
test_args = self.base_args + [
'--header-action',
'WRONG',
]
run_command_to_error(self.package, test_args)
captured: CaptureFixture[AnyStr] = capfd.readouterr()
assert captured.out == ''
expected_stderr_message = "tag-vlan: error: argument -A/--header-action: " \
"invalid VLANHeaderAction value: 'WRONG'"
actual_stderr: str = captured.err
assert actual_stderr.find(expected_stderr_message) > -1
def test_action_missing_arg(
self,
capfd: CaptureFixture,
) -> None:
test_args = self.base_args + [
'--header-action',
]
run_command_to_error(self.package, test_args)
captured: CaptureFixture[AnyStr] = capfd.readouterr()
assert captured.out == ''
expected_stderr_message = "tag-vlan: error: argument -A/--header-action: expected one argument"
actual_stderr: str = captured.err
assert actual_stderr.find(expected_stderr_message) > -1
def test_port_action_keep(self) -> None:
args = self.base_args + [
'--port-header-action',
'2',
'KEEP',
]
data = get_data_from_cli_args(parser=create_parser(args), args=args)
assert_ip175g_command_is_correct_type(data=data)
expected_result = [
[23, 13, 0b00000000, 0], # ADD_TAG
[23, 14, 0b00000000, 0], # REMOVE_TAG
]
assert data == expected_result
def test_port_action_add(self) -> None:
args = self.base_args + [
'--port-header-action',
'2',
'ADD',
]
data = get_data_from_cli_args(parser=create_parser(args), args=args)
assert_ip175g_command_is_correct_type(data=data)
expected_result = [
[23, 13, 0b00001000, 0], # ADD_TAG
[23, 14, 0b00000000, 0], # REMOVE_TAG
]
assert data == expected_result
def test_port_action_strip(self) -> None:
args = self.base_args + [
'--port-header-action',
'2',
'STRIP',
]
data = get_data_from_cli_args(parser=create_parser(args), args=args)
assert_ip175g_command_is_correct_type(data=data)
expected_result = [
[23, 13, 0b00000000, 0], # ADD_TAG
[23, 14, 0b00001000, 0], # REMOVE_TAG
]
assert data == expected_result
def test_port_action_wrong_action(
self,
capfd: CaptureFixture,
) -> None:
test_args = self.base_args + [
'--port-header-action',
'1',
'WRONG',
]
run_command_to_error(self.package, test_args)
captured: CaptureFixture[AnyStr] = capfd.readouterr()
assert captured.out == ''
expected_stderr_message = 'tag-vlan: error: argument -a/--port-header-action: Wrong value "WRONG" of ' \
'argument "header_action", allowed values are {KEEP,ADD,STRIP}'
actual_stderr: str = captured.err
assert actual_stderr.find(expected_stderr_message) > -1
def test_port_action_wrong_port_type(
self,
capfd: CaptureFixture,
) -> None:
test_args = self.base_args + [
'--port-header-action',
'a',
'ADD',
]
run_command_to_error(self.package, test_args)
captured: CaptureFixture[AnyStr] = capfd.readouterr()
assert captured.out == ''
expected_stderr_message = 'tag-vlan: error: argument -a/--port-header-action: ' \
'Error in argument "port{1,2,3,4,5}": Invalid port \'a\''
actual_stderr: str = captured.err
assert actual_stderr.find(expected_stderr_message) > -1
def test_port_action_wrong_port_num(
self,
capfd: CaptureFixture,
) -> None:
test_args = self.base_args + [
'--port-header-action',
'6',
'ADD',
]
run_command_to_error(self.package, test_args)
captured: CaptureFixture[AnyStr] = capfd.readouterr()
assert captured.out == ''
expected_stderr_message = 'tag-vlan: error: argument -a/--port-header-action: ' \
'Error in argument "port{1,2,3,4,5}": Invalid port \'6\''
actual_stderr: str = captured.err
assert actual_stderr.find(expected_stderr_message) > -1
def test_port_action_missing_action_arg(
self,
capfd: CaptureFixture,
) -> None:
test_args = self.base_args + [
'--port-header-action',
'1',
]
run_command_to_error(self.package, test_args)
captured: CaptureFixture[AnyStr] = capfd.readouterr()
assert captured.out == ''
expected_stderr_message = "tag-vlan: error: argument -a/--port-header-action: expected 2 arguments"
actual_stderr: str = captured.err
assert actual_stderr.find(expected_stderr_message) > -1
def test_port_action_missing_both_args(
self,
capfd: CaptureFixture,
) -> None:
test_args = self.base_args + [
'--port-header-action',
]
run_command_to_error(self.package, test_args)
captured: CaptureFixture[AnyStr] = capfd.readouterr()
assert captured.out == ''
expected_stderr_message = "tag-vlan: error: argument -a/--port-header-action: expected 2 arguments"
actual_stderr: str = captured.err
assert actual_stderr.find(expected_stderr_message) > -1
def test_port_action_two_ports_strip(self) -> None:
args = self.base_args + [
'--port-header-action',
'2',
'STRIP',
'--port-header-action',
'1',
'STRIP'
]
data = get_data_from_cli_args(parser=create_parser(args), args=args)
assert_ip175g_command_is_correct_type(data=data)
expected_result = [
[23, 13, 0b00000000, 0], # ADD_TAG
[23, 14, 0b00001100, 0], # REMOVE_TAG
]
assert data == expected_result
def test_port_action_two_ports_mixed(self) -> None:
args = self.base_args + [
'--port-header-action',
'2',
'STRIP',
'--port-header-action',
'1',
'ADD'
]
data = get_data_from_cli_args(parser=create_parser(args), args=args)
assert_ip175g_command_is_correct_type(data=data)
expected_result = [
[23, 13, 0b00000100, 0], # ADD_TAG
[23, 14, 0b00001000, 0], # REMOVE_TAG
]
assert data == expected_result
def test_port_action_with_default(self) -> None:
args = self.base_args + [
'--header-action',
'STRIP',
'--port-header-action',
'1',
'ADD'
]
data = get_data_from_cli_args(parser=create_parser(args), args=args)
assert_ip175g_command_is_correct_type(data=data)
expected_result = [
[23, 13, 0b00000100, 0], # ADD_TAG
[23, 14, 0b11011000, 0], # REMOVE_TAG
]
assert data == expected_result
def test_port_vlan_action_unavailable(
self,
capfd: CaptureFixture,
) -> None:
test_args = self.base_args + [
'--port-vlan-header-action',
'1',
'2',
'KEEP',
]
run_command_to_error(self.package, test_args)
captured: CaptureFixture[AnyStr] = capfd.readouterr()
assert captured.out == ''
expected_stderr_message = 'error: unrecognized arguments: --port-vlan-header-action 1 2 KEEP'
actual_stderr: str = captured.err
assert actual_stderr.find(expected_stderr_message) > -1
| 29.962963
| 112
| 0.572827
| 1,068
| 9,708
| 4.917603
| 0.088951
| 0.06626
| 0.061691
| 0.05179
| 0.907464
| 0.903085
| 0.893945
| 0.884806
| 0.866337
| 0.852628
| 0
| 0.048007
| 0.317676
| 9,708
| 323
| 113
| 30.055728
| 0.744867
| 0.017511
| 0
| 0.718254
| 0
| 0.003968
| 0.124383
| 0.017859
| 0
| 0
| 0
| 0
| 0.138889
| 1
| 0.06746
| false
| 0
| 0.015873
| 0
| 0.095238
| 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
|
937ee97be607411564847e9d6d25cee3e1610bfa
| 37,629
|
py
|
Python
|
msgraph-cli-extensions/beta/devicescloudprint_beta/azext_devicescloudprint_beta/vendored_sdks/devicescloudprint/models/_devices_cloud_print_enums.py
|
thewahome/msgraph-cli
|
33127d9efa23a0e5f5303c93242fbdbb73348671
|
[
"MIT"
] | null | null | null |
msgraph-cli-extensions/beta/devicescloudprint_beta/azext_devicescloudprint_beta/vendored_sdks/devicescloudprint/models/_devices_cloud_print_enums.py
|
thewahome/msgraph-cli
|
33127d9efa23a0e5f5303c93242fbdbb73348671
|
[
"MIT"
] | null | null | null |
msgraph-cli-extensions/beta/devicescloudprint_beta/azext_devicescloudprint_beta/vendored_sdks/devicescloudprint/models/_devices_cloud_print_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)):
ASTERISK = "*"
TASKS = "tasks"
class Enum101(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
ID = "id"
CREATED_BY = "createdBy"
DISPLAY_NAME = "displayName"
TASKS = "tasks"
class Enum102(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
ASTERISK = "*"
TASKS = "tasks"
class Enum103(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
ID = "id"
ID_DESC = "id desc"
PARENT_URL = "parentUrl"
PARENT_URL_DESC = "parentUrl desc"
STATUS = "status"
STATUS_DESC = "status desc"
class Enum104(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
ID = "id"
PARENT_URL = "parentUrl"
STATUS = "status"
DEFINITION = "definition"
TRIGGER = "trigger"
class Enum105(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
ASTERISK = "*"
DEFINITION = "definition"
TRIGGER = "trigger"
class Enum106(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
ID = "id"
PARENT_URL = "parentUrl"
STATUS = "status"
DEFINITION = "definition"
TRIGGER = "trigger"
class Enum107(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
ASTERISK = "*"
DEFINITION = "definition"
TRIGGER = "trigger"
class Enum108(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
ID = "id"
CREATED_BY = "createdBy"
DISPLAY_NAME = "displayName"
TASKS = "tasks"
class Enum109(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
ASTERISK = "*"
TASKS = "tasks"
class Enum110(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
ID = "id"
EVENT = "event"
DEFINITION = "definition"
class Enum111(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
ASTERISK = "*"
DEFINITION = "definition"
class Enum28(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
ID = "id"
APP_VERSION = "appVersion"
DEVICE_HEALTH = "deviceHealth"
DISPLAY_NAME = "displayName"
FULLY_QUALIFIED_DOMAIN_NAME = "fullyQualifiedDomainName"
LOCATION = "location"
NAME = "name"
OPERATING_SYSTEM = "operatingSystem"
REGISTERED_DATE_TIME = "registeredDateTime"
class Enum29(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
ID = "id"
ID_DESC = "id desc"
CREATED_DATE_TIME = "createdDateTime"
CREATED_DATE_TIME_DESC = "createdDateTime desc"
STATUS = "status"
STATUS_DESC = "status desc"
class Enum30(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
ID = "id"
CREATED_DATE_TIME = "createdDateTime"
STATUS = "status"
class Enum31(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
ID = "id"
CREATED_DATE_TIME = "createdDateTime"
STATUS = "status"
class Enum32(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
ID = "id"
ID_DESC = "id desc"
CAPABILITIES = "capabilities"
CAPABILITIES_DESC = "capabilities desc"
DEFAULTS = "defaults"
DEFAULTS_DESC = "defaults desc"
DISPLAY_NAME = "displayName"
DISPLAY_NAME_DESC = "displayName desc"
IS_ACCEPTING_JOBS = "isAcceptingJobs"
IS_ACCEPTING_JOBS_DESC = "isAcceptingJobs desc"
LOCATION = "location"
LOCATION_DESC = "location desc"
MANUFACTURER = "manufacturer"
MANUFACTURER_DESC = "manufacturer desc"
MODEL = "model"
MODEL_DESC = "model desc"
NAME = "name"
NAME_DESC = "name desc"
STATUS = "status"
STATUS_DESC = "status desc"
ACCEPTING_JOBS = "acceptingJobs"
ACCEPTING_JOBS_DESC = "acceptingJobs desc"
IS_SHARED = "isShared"
IS_SHARED_DESC = "isShared desc"
REGISTERED_DATE_TIME = "registeredDateTime"
REGISTERED_DATE_TIME_DESC = "registeredDateTime desc"
class Enum33(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
ID = "id"
CAPABILITIES = "capabilities"
DEFAULTS = "defaults"
DISPLAY_NAME = "displayName"
IS_ACCEPTING_JOBS = "isAcceptingJobs"
LOCATION = "location"
MANUFACTURER = "manufacturer"
MODEL = "model"
NAME = "name"
STATUS = "status"
ACCEPTING_JOBS = "acceptingJobs"
IS_SHARED = "isShared"
REGISTERED_DATE_TIME = "registeredDateTime"
JOBS = "jobs"
ALLOWED_GROUPS = "allowedGroups"
ALLOWED_USERS = "allowedUsers"
CONNECTORS = "connectors"
SHARE = "share"
SHARES = "shares"
TASK_TRIGGERS = "taskTriggers"
class Enum34(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
ASTERISK = "*"
JOBS = "jobs"
ALLOWED_GROUPS = "allowedGroups"
ALLOWED_USERS = "allowedUsers"
CONNECTORS = "connectors"
SHARE = "share"
SHARES = "shares"
TASK_TRIGGERS = "taskTriggers"
class Enum35(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
ID = "id"
CAPABILITIES = "capabilities"
DEFAULTS = "defaults"
DISPLAY_NAME = "displayName"
IS_ACCEPTING_JOBS = "isAcceptingJobs"
LOCATION = "location"
MANUFACTURER = "manufacturer"
MODEL = "model"
NAME = "name"
STATUS = "status"
ACCEPTING_JOBS = "acceptingJobs"
IS_SHARED = "isShared"
REGISTERED_DATE_TIME = "registeredDateTime"
JOBS = "jobs"
ALLOWED_GROUPS = "allowedGroups"
ALLOWED_USERS = "allowedUsers"
CONNECTORS = "connectors"
SHARE = "share"
SHARES = "shares"
TASK_TRIGGERS = "taskTriggers"
class Enum36(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
ASTERISK = "*"
JOBS = "jobs"
ALLOWED_GROUPS = "allowedGroups"
ALLOWED_USERS = "allowedUsers"
CONNECTORS = "connectors"
SHARE = "share"
SHARES = "shares"
TASK_TRIGGERS = "taskTriggers"
class Enum37(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
ID = "id"
ID_DESC = "id desc"
DISPLAY_NAME = "displayName"
DISPLAY_NAME_DESC = "displayName desc"
class Enum38(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
ID = "id"
DISPLAY_NAME = "displayName"
class Enum39(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
ID = "id"
DISPLAY_NAME = "displayName"
class Enum40(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
ID = "id"
ID_DESC = "id desc"
DISPLAY_NAME = "displayName"
DISPLAY_NAME_DESC = "displayName desc"
IP_ADDRESS = "ipAddress"
IP_ADDRESS_DESC = "ipAddress desc"
USER_PRINCIPAL_NAME = "userPrincipalName"
USER_PRINCIPAL_NAME_DESC = "userPrincipalName desc"
class Enum41(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
ID = "id"
DISPLAY_NAME = "displayName"
IP_ADDRESS = "ipAddress"
USER_PRINCIPAL_NAME = "userPrincipalName"
class Enum42(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
ID = "id"
DISPLAY_NAME = "displayName"
IP_ADDRESS = "ipAddress"
USER_PRINCIPAL_NAME = "userPrincipalName"
class Enum43(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
ID = "id"
ID_DESC = "id desc"
APP_VERSION = "appVersion"
APP_VERSION_DESC = "appVersion desc"
DEVICE_HEALTH = "deviceHealth"
DEVICE_HEALTH_DESC = "deviceHealth desc"
DISPLAY_NAME = "displayName"
DISPLAY_NAME_DESC = "displayName desc"
FULLY_QUALIFIED_DOMAIN_NAME = "fullyQualifiedDomainName"
FULLY_QUALIFIED_DOMAIN_NAME_DESC = "fullyQualifiedDomainName desc"
LOCATION = "location"
LOCATION_DESC = "location desc"
NAME = "name"
NAME_DESC = "name desc"
OPERATING_SYSTEM = "operatingSystem"
OPERATING_SYSTEM_DESC = "operatingSystem desc"
REGISTERED_DATE_TIME = "registeredDateTime"
REGISTERED_DATE_TIME_DESC = "registeredDateTime desc"
class Enum44(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
ID = "id"
APP_VERSION = "appVersion"
DEVICE_HEALTH = "deviceHealth"
DISPLAY_NAME = "displayName"
FULLY_QUALIFIED_DOMAIN_NAME = "fullyQualifiedDomainName"
LOCATION = "location"
NAME = "name"
OPERATING_SYSTEM = "operatingSystem"
REGISTERED_DATE_TIME = "registeredDateTime"
class Enum45(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
ID = "id"
ID_DESC = "id desc"
APP_VERSION = "appVersion"
APP_VERSION_DESC = "appVersion desc"
DEVICE_HEALTH = "deviceHealth"
DEVICE_HEALTH_DESC = "deviceHealth desc"
DISPLAY_NAME = "displayName"
DISPLAY_NAME_DESC = "displayName desc"
FULLY_QUALIFIED_DOMAIN_NAME = "fullyQualifiedDomainName"
FULLY_QUALIFIED_DOMAIN_NAME_DESC = "fullyQualifiedDomainName desc"
LOCATION = "location"
LOCATION_DESC = "location desc"
NAME = "name"
NAME_DESC = "name desc"
OPERATING_SYSTEM = "operatingSystem"
OPERATING_SYSTEM_DESC = "operatingSystem desc"
REGISTERED_DATE_TIME = "registeredDateTime"
REGISTERED_DATE_TIME_DESC = "registeredDateTime desc"
class Enum46(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
ID = "id"
CAPABILITIES = "capabilities"
DEFAULTS = "defaults"
DISPLAY_NAME = "displayName"
IS_ACCEPTING_JOBS = "isAcceptingJobs"
LOCATION = "location"
MANUFACTURER = "manufacturer"
MODEL = "model"
NAME = "name"
STATUS = "status"
ALLOW_ALL_USERS = "allowAllUsers"
CREATED_DATE_TIME = "createdDateTime"
JOBS = "jobs"
ALLOWED_GROUPS = "allowedGroups"
ALLOWED_USERS = "allowedUsers"
PRINTER = "printer"
class Enum47(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
ASTERISK = "*"
JOBS = "jobs"
ALLOWED_GROUPS = "allowedGroups"
ALLOWED_USERS = "allowedUsers"
PRINTER = "printer"
class Enum48(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
ID = "id"
ID_DESC = "id desc"
CAPABILITIES = "capabilities"
CAPABILITIES_DESC = "capabilities desc"
DEFAULTS = "defaults"
DEFAULTS_DESC = "defaults desc"
DISPLAY_NAME = "displayName"
DISPLAY_NAME_DESC = "displayName desc"
IS_ACCEPTING_JOBS = "isAcceptingJobs"
IS_ACCEPTING_JOBS_DESC = "isAcceptingJobs desc"
LOCATION = "location"
LOCATION_DESC = "location desc"
MANUFACTURER = "manufacturer"
MANUFACTURER_DESC = "manufacturer desc"
MODEL = "model"
MODEL_DESC = "model desc"
NAME = "name"
NAME_DESC = "name desc"
STATUS = "status"
STATUS_DESC = "status desc"
ALLOW_ALL_USERS = "allowAllUsers"
ALLOW_ALL_USERS_DESC = "allowAllUsers desc"
CREATED_DATE_TIME = "createdDateTime"
CREATED_DATE_TIME_DESC = "createdDateTime desc"
class Enum49(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
ID = "id"
CAPABILITIES = "capabilities"
DEFAULTS = "defaults"
DISPLAY_NAME = "displayName"
IS_ACCEPTING_JOBS = "isAcceptingJobs"
LOCATION = "location"
MANUFACTURER = "manufacturer"
MODEL = "model"
NAME = "name"
STATUS = "status"
ALLOW_ALL_USERS = "allowAllUsers"
CREATED_DATE_TIME = "createdDateTime"
JOBS = "jobs"
ALLOWED_GROUPS = "allowedGroups"
ALLOWED_USERS = "allowedUsers"
PRINTER = "printer"
class Enum50(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
ASTERISK = "*"
JOBS = "jobs"
ALLOWED_GROUPS = "allowedGroups"
ALLOWED_USERS = "allowedUsers"
PRINTER = "printer"
class Enum51(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
ID = "id"
ID_DESC = "id desc"
CAPABILITIES = "capabilities"
CAPABILITIES_DESC = "capabilities desc"
DEFAULTS = "defaults"
DEFAULTS_DESC = "defaults desc"
DISPLAY_NAME = "displayName"
DISPLAY_NAME_DESC = "displayName desc"
IS_ACCEPTING_JOBS = "isAcceptingJobs"
IS_ACCEPTING_JOBS_DESC = "isAcceptingJobs desc"
LOCATION = "location"
LOCATION_DESC = "location desc"
MANUFACTURER = "manufacturer"
MANUFACTURER_DESC = "manufacturer desc"
MODEL = "model"
MODEL_DESC = "model desc"
NAME = "name"
NAME_DESC = "name desc"
STATUS = "status"
STATUS_DESC = "status desc"
ALLOW_ALL_USERS = "allowAllUsers"
ALLOW_ALL_USERS_DESC = "allowAllUsers desc"
CREATED_DATE_TIME = "createdDateTime"
CREATED_DATE_TIME_DESC = "createdDateTime desc"
class Enum52(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
ID = "id"
ID_DESC = "id desc"
EVENT = "event"
EVENT_DESC = "event desc"
class Enum53(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
ID = "id"
EVENT = "event"
DEFINITION = "definition"
class Enum54(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
ASTERISK = "*"
DEFINITION = "definition"
class Enum55(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
ID = "id"
EVENT = "event"
DEFINITION = "definition"
class Enum56(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
ASTERISK = "*"
DEFINITION = "definition"
class Enum57(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
ID = "id"
CREATED_BY = "createdBy"
DISPLAY_NAME = "displayName"
TASKS = "tasks"
class Enum58(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
ASTERISK = "*"
TASKS = "tasks"
class Enum59(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
ID = "id"
ID_DESC = "id desc"
CAPABILITIES = "capabilities"
CAPABILITIES_DESC = "capabilities desc"
DEFAULTS = "defaults"
DEFAULTS_DESC = "defaults desc"
DISPLAY_NAME = "displayName"
DISPLAY_NAME_DESC = "displayName desc"
IS_ACCEPTING_JOBS = "isAcceptingJobs"
IS_ACCEPTING_JOBS_DESC = "isAcceptingJobs desc"
LOCATION = "location"
LOCATION_DESC = "location desc"
MANUFACTURER = "manufacturer"
MANUFACTURER_DESC = "manufacturer desc"
MODEL = "model"
MODEL_DESC = "model desc"
NAME = "name"
NAME_DESC = "name desc"
STATUS = "status"
STATUS_DESC = "status desc"
ALLOW_ALL_USERS = "allowAllUsers"
ALLOW_ALL_USERS_DESC = "allowAllUsers desc"
CREATED_DATE_TIME = "createdDateTime"
CREATED_DATE_TIME_DESC = "createdDateTime desc"
class Enum60(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
ID = "id"
CAPABILITIES = "capabilities"
DEFAULTS = "defaults"
DISPLAY_NAME = "displayName"
IS_ACCEPTING_JOBS = "isAcceptingJobs"
LOCATION = "location"
MANUFACTURER = "manufacturer"
MODEL = "model"
NAME = "name"
STATUS = "status"
ALLOW_ALL_USERS = "allowAllUsers"
CREATED_DATE_TIME = "createdDateTime"
JOBS = "jobs"
ALLOWED_GROUPS = "allowedGroups"
ALLOWED_USERS = "allowedUsers"
PRINTER = "printer"
class Enum61(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
ASTERISK = "*"
JOBS = "jobs"
ALLOWED_GROUPS = "allowedGroups"
ALLOWED_USERS = "allowedUsers"
PRINTER = "printer"
class Enum62(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
ID = "id"
CAPABILITIES = "capabilities"
DEFAULTS = "defaults"
DISPLAY_NAME = "displayName"
IS_ACCEPTING_JOBS = "isAcceptingJobs"
LOCATION = "location"
MANUFACTURER = "manufacturer"
MODEL = "model"
NAME = "name"
STATUS = "status"
ALLOW_ALL_USERS = "allowAllUsers"
CREATED_DATE_TIME = "createdDateTime"
JOBS = "jobs"
ALLOWED_GROUPS = "allowedGroups"
ALLOWED_USERS = "allowedUsers"
PRINTER = "printer"
class Enum63(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
ASTERISK = "*"
JOBS = "jobs"
ALLOWED_GROUPS = "allowedGroups"
ALLOWED_USERS = "allowedUsers"
PRINTER = "printer"
class Enum64(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
ID = "id"
ID_DESC = "id desc"
DISPLAY_NAME = "displayName"
DISPLAY_NAME_DESC = "displayName desc"
class Enum65(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
ID = "id"
DISPLAY_NAME = "displayName"
class Enum66(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
ID = "id"
DISPLAY_NAME = "displayName"
class Enum67(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
ID = "id"
ID_DESC = "id desc"
DISPLAY_NAME = "displayName"
DISPLAY_NAME_DESC = "displayName desc"
IP_ADDRESS = "ipAddress"
IP_ADDRESS_DESC = "ipAddress desc"
USER_PRINCIPAL_NAME = "userPrincipalName"
USER_PRINCIPAL_NAME_DESC = "userPrincipalName desc"
class Enum68(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
ID = "id"
DISPLAY_NAME = "displayName"
IP_ADDRESS = "ipAddress"
USER_PRINCIPAL_NAME = "userPrincipalName"
class Enum69(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
ID = "id"
DISPLAY_NAME = "displayName"
IP_ADDRESS = "ipAddress"
USER_PRINCIPAL_NAME = "userPrincipalName"
class Enum70(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
ID = "id"
CAPABILITIES = "capabilities"
DEFAULTS = "defaults"
DISPLAY_NAME = "displayName"
IS_ACCEPTING_JOBS = "isAcceptingJobs"
LOCATION = "location"
MANUFACTURER = "manufacturer"
MODEL = "model"
NAME = "name"
STATUS = "status"
ACCEPTING_JOBS = "acceptingJobs"
IS_SHARED = "isShared"
REGISTERED_DATE_TIME = "registeredDateTime"
JOBS = "jobs"
ALLOWED_GROUPS = "allowedGroups"
ALLOWED_USERS = "allowedUsers"
CONNECTORS = "connectors"
SHARE = "share"
SHARES = "shares"
TASK_TRIGGERS = "taskTriggers"
class Enum71(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
ASTERISK = "*"
JOBS = "jobs"
ALLOWED_GROUPS = "allowedGroups"
ALLOWED_USERS = "allowedUsers"
CONNECTORS = "connectors"
SHARE = "share"
SHARES = "shares"
TASK_TRIGGERS = "taskTriggers"
class Enum72(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
ID = "id"
ID_DESC = "id desc"
class Enum73(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
ID = "id"
APPLICATION_SIGN_IN_DETAILED_SUMMARY = "applicationSignInDetailedSummary"
CREDENTIAL_USER_REGISTRATION_DETAILS = "credentialUserRegistrationDetails"
USER_CREDENTIAL_USAGE_DETAILS = "userCredentialUsageDetails"
DAILY_PRINT_USAGE_SUMMARIES_BY_PRINTER = "dailyPrintUsageSummariesByPrinter"
DAILY_PRINT_USAGE_SUMMARIES_BY_USER = "dailyPrintUsageSummariesByUser"
MONTHLY_PRINT_USAGE_SUMMARIES_BY_PRINTER = "monthlyPrintUsageSummariesByPrinter"
MONTHLY_PRINT_USAGE_SUMMARIES_BY_USER = "monthlyPrintUsageSummariesByUser"
class Enum74(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
ASTERISK = "*"
APPLICATION_SIGN_IN_DETAILED_SUMMARY = "applicationSignInDetailedSummary"
CREDENTIAL_USER_REGISTRATION_DETAILS = "credentialUserRegistrationDetails"
USER_CREDENTIAL_USAGE_DETAILS = "userCredentialUsageDetails"
DAILY_PRINT_USAGE_SUMMARIES_BY_PRINTER = "dailyPrintUsageSummariesByPrinter"
DAILY_PRINT_USAGE_SUMMARIES_BY_USER = "dailyPrintUsageSummariesByUser"
MONTHLY_PRINT_USAGE_SUMMARIES_BY_PRINTER = "monthlyPrintUsageSummariesByPrinter"
MONTHLY_PRINT_USAGE_SUMMARIES_BY_USER = "monthlyPrintUsageSummariesByUser"
class Enum75(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
ID = "id"
APPLICATION_SIGN_IN_DETAILED_SUMMARY = "applicationSignInDetailedSummary"
CREDENTIAL_USER_REGISTRATION_DETAILS = "credentialUserRegistrationDetails"
USER_CREDENTIAL_USAGE_DETAILS = "userCredentialUsageDetails"
DAILY_PRINT_USAGE_SUMMARIES_BY_PRINTER = "dailyPrintUsageSummariesByPrinter"
DAILY_PRINT_USAGE_SUMMARIES_BY_USER = "dailyPrintUsageSummariesByUser"
MONTHLY_PRINT_USAGE_SUMMARIES_BY_PRINTER = "monthlyPrintUsageSummariesByPrinter"
MONTHLY_PRINT_USAGE_SUMMARIES_BY_USER = "monthlyPrintUsageSummariesByUser"
class Enum76(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
ASTERISK = "*"
APPLICATION_SIGN_IN_DETAILED_SUMMARY = "applicationSignInDetailedSummary"
CREDENTIAL_USER_REGISTRATION_DETAILS = "credentialUserRegistrationDetails"
USER_CREDENTIAL_USAGE_DETAILS = "userCredentialUsageDetails"
DAILY_PRINT_USAGE_SUMMARIES_BY_PRINTER = "dailyPrintUsageSummariesByPrinter"
DAILY_PRINT_USAGE_SUMMARIES_BY_USER = "dailyPrintUsageSummariesByUser"
MONTHLY_PRINT_USAGE_SUMMARIES_BY_PRINTER = "monthlyPrintUsageSummariesByPrinter"
MONTHLY_PRINT_USAGE_SUMMARIES_BY_USER = "monthlyPrintUsageSummariesByUser"
class Enum77(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
ID = "id"
ID_DESC = "id desc"
class Enum78(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
ID = "id"
ENDPOINTS = "endpoints"
class Enum79(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
ASTERISK = "*"
ENDPOINTS = "endpoints"
class Enum80(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
ID = "id"
ENDPOINTS = "endpoints"
class Enum81(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
ASTERISK = "*"
ENDPOINTS = "endpoints"
class Enum82(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
ID = "id"
ID_DESC = "id desc"
DISPLAY_NAME = "displayName"
DISPLAY_NAME_DESC = "displayName desc"
URI = "uri"
URI_DESC = "uri desc"
class Enum83(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
ID = "id"
DISPLAY_NAME = "displayName"
URI = "uri"
class Enum84(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
ID = "id"
DISPLAY_NAME = "displayName"
URI = "uri"
class Enum85(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
ID = "id"
ID_DESC = "id desc"
CAPABILITIES = "capabilities"
CAPABILITIES_DESC = "capabilities desc"
DEFAULTS = "defaults"
DEFAULTS_DESC = "defaults desc"
DISPLAY_NAME = "displayName"
DISPLAY_NAME_DESC = "displayName desc"
IS_ACCEPTING_JOBS = "isAcceptingJobs"
IS_ACCEPTING_JOBS_DESC = "isAcceptingJobs desc"
LOCATION = "location"
LOCATION_DESC = "location desc"
MANUFACTURER = "manufacturer"
MANUFACTURER_DESC = "manufacturer desc"
MODEL = "model"
MODEL_DESC = "model desc"
NAME = "name"
NAME_DESC = "name desc"
STATUS = "status"
STATUS_DESC = "status desc"
ALLOW_ALL_USERS = "allowAllUsers"
ALLOW_ALL_USERS_DESC = "allowAllUsers desc"
CREATED_DATE_TIME = "createdDateTime"
CREATED_DATE_TIME_DESC = "createdDateTime desc"
class Enum86(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
ID = "id"
CAPABILITIES = "capabilities"
DEFAULTS = "defaults"
DISPLAY_NAME = "displayName"
IS_ACCEPTING_JOBS = "isAcceptingJobs"
LOCATION = "location"
MANUFACTURER = "manufacturer"
MODEL = "model"
NAME = "name"
STATUS = "status"
ALLOW_ALL_USERS = "allowAllUsers"
CREATED_DATE_TIME = "createdDateTime"
JOBS = "jobs"
ALLOWED_GROUPS = "allowedGroups"
ALLOWED_USERS = "allowedUsers"
PRINTER = "printer"
class Enum87(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
ASTERISK = "*"
JOBS = "jobs"
ALLOWED_GROUPS = "allowedGroups"
ALLOWED_USERS = "allowedUsers"
PRINTER = "printer"
class Enum88(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
ID = "id"
CAPABILITIES = "capabilities"
DEFAULTS = "defaults"
DISPLAY_NAME = "displayName"
IS_ACCEPTING_JOBS = "isAcceptingJobs"
LOCATION = "location"
MANUFACTURER = "manufacturer"
MODEL = "model"
NAME = "name"
STATUS = "status"
ALLOW_ALL_USERS = "allowAllUsers"
CREATED_DATE_TIME = "createdDateTime"
JOBS = "jobs"
ALLOWED_GROUPS = "allowedGroups"
ALLOWED_USERS = "allowedUsers"
PRINTER = "printer"
class Enum89(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
ASTERISK = "*"
JOBS = "jobs"
ALLOWED_GROUPS = "allowedGroups"
ALLOWED_USERS = "allowedUsers"
PRINTER = "printer"
class Enum90(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
ID = "id"
ID_DESC = "id desc"
DISPLAY_NAME = "displayName"
DISPLAY_NAME_DESC = "displayName desc"
class Enum91(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
ID = "id"
DISPLAY_NAME = "displayName"
class Enum92(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
ID = "id"
DISPLAY_NAME = "displayName"
class Enum93(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
ID = "id"
ID_DESC = "id desc"
DISPLAY_NAME = "displayName"
DISPLAY_NAME_DESC = "displayName desc"
IP_ADDRESS = "ipAddress"
IP_ADDRESS_DESC = "ipAddress desc"
USER_PRINCIPAL_NAME = "userPrincipalName"
USER_PRINCIPAL_NAME_DESC = "userPrincipalName desc"
class Enum94(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
ID = "id"
DISPLAY_NAME = "displayName"
IP_ADDRESS = "ipAddress"
USER_PRINCIPAL_NAME = "userPrincipalName"
class Enum95(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
ID = "id"
DISPLAY_NAME = "displayName"
IP_ADDRESS = "ipAddress"
USER_PRINCIPAL_NAME = "userPrincipalName"
class Enum96(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
ID = "id"
CAPABILITIES = "capabilities"
DEFAULTS = "defaults"
DISPLAY_NAME = "displayName"
IS_ACCEPTING_JOBS = "isAcceptingJobs"
LOCATION = "location"
MANUFACTURER = "manufacturer"
MODEL = "model"
NAME = "name"
STATUS = "status"
ACCEPTING_JOBS = "acceptingJobs"
IS_SHARED = "isShared"
REGISTERED_DATE_TIME = "registeredDateTime"
JOBS = "jobs"
ALLOWED_GROUPS = "allowedGroups"
ALLOWED_USERS = "allowedUsers"
CONNECTORS = "connectors"
SHARE = "share"
SHARES = "shares"
TASK_TRIGGERS = "taskTriggers"
class Enum97(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
ASTERISK = "*"
JOBS = "jobs"
ALLOWED_GROUPS = "allowedGroups"
ALLOWED_USERS = "allowedUsers"
CONNECTORS = "connectors"
SHARE = "share"
SHARES = "shares"
TASK_TRIGGERS = "taskTriggers"
class Enum98(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
ID = "id"
ID_DESC = "id desc"
CREATED_BY = "createdBy"
CREATED_BY_DESC = "createdBy desc"
DISPLAY_NAME = "displayName"
DISPLAY_NAME_DESC = "displayName desc"
class Enum99(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
ID = "id"
CREATED_BY = "createdBy"
DISPLAY_NAME = "displayName"
TASKS = "tasks"
class Get0ItemsItem(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
SETTINGS = "settings"
CONNECTORS = "connectors"
OPERATIONS = "operations"
PRINTERS = "printers"
PRINTER_SHARES = "printerShares"
REPORTS = "reports"
SERVICES = "services"
SHARES = "shares"
TASK_DEFINITIONS = "taskDefinitions"
class Get1ItemsItem(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
ASTERISK = "*"
CONNECTORS = "connectors"
OPERATIONS = "operations"
PRINTERS = "printers"
PRINTER_SHARES = "printerShares"
REPORTS = "reports"
SERVICES = "services"
SHARES = "shares"
TASK_DEFINITIONS = "taskDefinitions"
class Get5ItemsItem(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
ID = "id"
ID_DESC = "id desc"
APP_VERSION = "appVersion"
APP_VERSION_DESC = "appVersion desc"
DEVICE_HEALTH = "deviceHealth"
DEVICE_HEALTH_DESC = "deviceHealth desc"
DISPLAY_NAME = "displayName"
DISPLAY_NAME_DESC = "displayName desc"
FULLY_QUALIFIED_DOMAIN_NAME = "fullyQualifiedDomainName"
FULLY_QUALIFIED_DOMAIN_NAME_DESC = "fullyQualifiedDomainName desc"
LOCATION = "location"
LOCATION_DESC = "location desc"
NAME = "name"
NAME_DESC = "name desc"
OPERATING_SYSTEM = "operatingSystem"
OPERATING_SYSTEM_DESC = "operatingSystem desc"
REGISTERED_DATE_TIME = "registeredDateTime"
REGISTERED_DATE_TIME_DESC = "registeredDateTime desc"
class Get6ItemsItem(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
ID = "id"
APP_VERSION = "appVersion"
DEVICE_HEALTH = "deviceHealth"
DISPLAY_NAME = "displayName"
FULLY_QUALIFIED_DOMAIN_NAME = "fullyQualifiedDomainName"
LOCATION = "location"
NAME = "name"
OPERATING_SYSTEM = "operatingSystem"
REGISTERED_DATE_TIME = "registeredDateTime"
class MicrosoftGraphFeatureType(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
REGISTRATION = "registration"
RESET = "reset"
UNKNOWN_FUTURE_VALUE = "unknownFutureValue"
class MicrosoftGraphPrintColorConfiguration(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
BLACK_AND_WHITE = "blackAndWhite"
GRAYSCALE = "grayscale"
COLOR = "color"
AUTO = "auto"
class MicrosoftGraphPrintColorMode(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
BLACK_AND_WHITE = "blackAndWhite"
GRAYSCALE = "grayscale"
COLOR = "color"
AUTO = "auto"
class MicrosoftGraphPrintDuplexConfiguration(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
TWO_SIDED_LONG_EDGE = "twoSidedLongEdge"
TWO_SIDED_SHORT_EDGE = "twoSidedShortEdge"
ONE_SIDED = "oneSided"
class MicrosoftGraphPrintDuplexMode(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
FLIP_ON_LONG_EDGE = "flipOnLongEdge"
FLIP_ON_SHORT_EDGE = "flipOnShortEdge"
ONE_SIDED = "oneSided"
class MicrosoftGraphPrinterFeedDirection(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
LONG_EDGE_FIRST = "longEdgeFirst"
SHORT_EDGE_FIRST = "shortEdgeFirst"
class MicrosoftGraphPrinterFeedOrientation(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
LONG_EDGE_FIRST = "longEdgeFirst"
SHORT_EDGE_FIRST = "shortEdgeFirst"
class MicrosoftGraphPrinterProcessingState(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
UNKNOWN = "unknown"
IDLE = "idle"
PROCESSING = "processing"
STOPPED = "stopped"
UNKNOWN_FUTURE_VALUE = "unknownFutureValue"
class MicrosoftGraphPrinterProcessingStateDetail(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
PAUSED = "paused"
DISCONNECTED = "disconnected"
MEDIA_JAM = "mediaJam"
MEDIA_NEEDED = "mediaNeeded"
MEDIA_LOW = "mediaLow"
MEDIA_EMPTY = "mediaEmpty"
COVER_OPEN = "coverOpen"
INTERLOCK_OPEN = "interlockOpen"
QUEUE_FULL = "queueFull"
OUTPUT_TRAY_MISSING = "outputTrayMissing"
OUTPUT_AREA_FULL = "outputAreaFull"
MARKER_SUPPLY_LOW = "markerSupplyLow"
MARKER_SUPPLY_EMPTY = "markerSupplyEmpty"
INPUT_TRAY_MISSING = "inputTrayMissing"
OUTPUT_ALMOST_FULL = "outputAlmostFull"
MARKER_WASTE_ALMOST_FULL = "markerWasteAlmostFull"
MARKER_WASTE_FULL = "markerWasteFull"
FUSER_OVER_TEMP = "fuserOverTemp"
FUSER_UNDER_TEMP = "fuserUnderTemp"
OTHER = "other"
UNKNOWN_FUTURE_VALUE = "unknownFutureValue"
class MicrosoftGraphPrinterProcessingStateReason(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
PAUSED = "paused"
DISCONNECTED = "disconnected"
MEDIA_JAM = "mediaJam"
MEDIA_NEEDED = "mediaNeeded"
MEDIA_LOW = "mediaLow"
MEDIA_EMPTY = "mediaEmpty"
COVER_OPEN = "coverOpen"
INTERLOCK_OPEN = "interlockOpen"
QUEUE_FULL = "queueFull"
OUTPUT_TRAY_MISSING = "outputTrayMissing"
OUTPUT_AREA_FULL = "outputAreaFull"
MARKER_SUPPLY_LOW = "markerSupplyLow"
MARKER_SUPPLY_EMPTY = "markerSupplyEmpty"
INPUT_TRAY_MISSING = "inputTrayMissing"
OUTPUT_ALMOST_FULL = "outputAlmostFull"
MARKER_WASTE_ALMOST_FULL = "markerWasteAlmostFull"
MARKER_WASTE_FULL = "markerWasteFull"
FUSER_OVER_TEMP = "fuserOverTemp"
FUSER_UNDER_TEMP = "fuserUnderTemp"
OTHER = "other"
UNKNOWN_FUTURE_VALUE = "unknownFutureValue"
class MicrosoftGraphPrintEvent(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
JOB_STARTED = "jobStarted"
UNKNOWN_FUTURE_VALUE = "unknownFutureValue"
class MicrosoftGraphPrintFinishing(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
NONE = "none"
STAPLE = "staple"
PUNCH = "punch"
COVER = "cover"
BIND = "bind"
SADDLE_STITCH = "saddleStitch"
STITCH_EDGE = "stitchEdge"
STAPLE_TOP_LEFT = "stapleTopLeft"
STAPLE_BOTTOM_LEFT = "stapleBottomLeft"
STAPLE_TOP_RIGHT = "stapleTopRight"
STAPLE_BOTTOM_RIGHT = "stapleBottomRight"
STITCH_LEFT_EDGE = "stitchLeftEdge"
STITCH_TOP_EDGE = "stitchTopEdge"
STITCH_RIGHT_EDGE = "stitchRightEdge"
STITCH_BOTTOM_EDGE = "stitchBottomEdge"
STAPLE_DUAL_LEFT = "stapleDualLeft"
STAPLE_DUAL_TOP = "stapleDualTop"
STAPLE_DUAL_RIGHT = "stapleDualRight"
STAPLE_DUAL_BOTTOM = "stapleDualBottom"
UNKNOWN_FUTURE_VALUE = "unknownFutureValue"
class MicrosoftGraphPrintJobProcessingState(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
UNKNOWN = "unknown"
PENDING = "pending"
PROCESSING = "processing"
PAUSED = "paused"
STOPPED = "stopped"
COMPLETED = "completed"
CANCELED = "canceled"
ABORTED = "aborted"
class MicrosoftGraphPrintJobStateDetail(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
UPLOAD_PENDING = "uploadPending"
TRANSFORMING = "transforming"
COMPLETED_SUCCESSFULLY = "completedSuccessfully"
COMPLETED_WITH_WARNINGS = "completedWithWarnings"
COMPLETED_WITH_ERRORS = "completedWithErrors"
RELEASE_WAIT = "releaseWait"
INTERPRETING = "interpreting"
UNKNOWN_FUTURE_VALUE = "unknownFutureValue"
class MicrosoftGraphPrintMediaType(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
STATIONERY = "stationery"
TRANSPARENCY = "transparency"
ENVELOPE = "envelope"
ENVELOPE_PLAIN = "envelopePlain"
CONTINUOUS = "continuous"
SCREEN = "screen"
SCREEN_PAGED = "screenPaged"
CONTINUOUS_LONG = "continuousLong"
CONTINUOUS_SHORT = "continuousShort"
ENVELOPE_WINDOW = "envelopeWindow"
MULTI_PART_FORM = "multiPartForm"
MULTI_LAYER = "multiLayer"
LABELS = "labels"
class MicrosoftGraphPrintMultipageLayout(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
CLOCKWISE_FROM_TOP_LEFT = "clockwiseFromTopLeft"
COUNTERCLOCKWISE_FROM_TOP_LEFT = "counterclockwiseFromTopLeft"
COUNTERCLOCKWISE_FROM_TOP_RIGHT = "counterclockwiseFromTopRight"
CLOCKWISE_FROM_TOP_RIGHT = "clockwiseFromTopRight"
COUNTERCLOCKWISE_FROM_BOTTOM_LEFT = "counterclockwiseFromBottomLeft"
CLOCKWISE_FROM_BOTTOM_LEFT = "clockwiseFromBottomLeft"
COUNTERCLOCKWISE_FROM_BOTTOM_RIGHT = "counterclockwiseFromBottomRight"
CLOCKWISE_FROM_BOTTOM_RIGHT = "clockwiseFromBottomRight"
class MicrosoftGraphPrintOperationProcessingState(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
NOT_STARTED = "notStarted"
RUNNING = "running"
SUCCEEDED = "succeeded"
FAILED = "failed"
UNKNOWN_FUTURE_VALUE = "unknownFutureValue"
class MicrosoftGraphPrintOrientation(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
PORTRAIT = "portrait"
LANDSCAPE = "landscape"
REVERSE_LANDSCAPE = "reverseLandscape"
REVERSE_PORTRAIT = "reversePortrait"
class MicrosoftGraphPrintPresentationDirection(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
CLOCKWISE_FROM_TOP_LEFT = "clockwiseFromTopLeft"
COUNTER_CLOCKWISE_FROM_TOP_LEFT = "counterClockwiseFromTopLeft"
COUNTER_CLOCKWISE_FROM_TOP_RIGHT = "counterClockwiseFromTopRight"
CLOCKWISE_FROM_TOP_RIGHT = "clockwiseFromTopRight"
COUNTER_CLOCKWISE_FROM_BOTTOM_LEFT = "counterClockwiseFromBottomLeft"
CLOCKWISE_FROM_BOTTOM_LEFT = "clockwiseFromBottomLeft"
COUNTER_CLOCKWISE_FROM_BOTTOM_RIGHT = "counterClockwiseFromBottomRight"
CLOCKWISE_FROM_BOTTOM_RIGHT = "clockwiseFromBottomRight"
class MicrosoftGraphPrintQuality(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
LOW = "low"
MEDIUM = "medium"
HIGH = "high"
UNKNOWN_FUTURE_VALUE = "unknownFutureValue"
class MicrosoftGraphPrintScaling(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
AUTO = "auto"
SHRINK_TO_FIT = "shrinkToFit"
FILL = "fill"
FIT = "fit"
NONE = "none"
UNKNOWN_FUTURE_VALUE = "unknownFutureValue"
class MicrosoftGraphPrintTaskProcessingState(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
PENDING = "pending"
PROCESSING = "processing"
COMPLETED = "completed"
ABORTED = "aborted"
UNKNOWN_FUTURE_VALUE = "unknownFutureValue"
class MicrosoftGraphRegistrationAuthMethod(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
EMAIL = "email"
MOBILE_PHONE = "mobilePhone"
OFFICE_PHONE = "officePhone"
SECURITY_QUESTION = "securityQuestion"
APP_NOTIFICATION = "appNotification"
APP_CODE = "appCode"
ALTERNATE_MOBILE_PHONE = "alternateMobilePhone"
FIDO = "fido"
APP_PASSWORD = "appPassword"
UNKNOWN_FUTURE_VALUE = "unknownFutureValue"
class MicrosoftGraphUsageAuthMethod(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
EMAIL = "email"
MOBILE_SMS = "mobileSMS"
MOBILE_CALL = "mobileCall"
OFFICE_PHONE = "officePhone"
SECURITY_QUESTION = "securityQuestion"
APP_NOTIFICATION = "appNotification"
APP_CODE = "appCode"
ALTERNATE_MOBILE_CALL = "alternateMobileCall"
FIDO = "fido"
APP_PASSWORD = "appPassword"
UNKNOWN_FUTURE_VALUE = "unknownFutureValue"
| 30.995881
| 103
| 0.719711
| 3,536
| 37,629
| 7.353507
| 0.134898
| 0.056496
| 0.155065
| 0.167987
| 0.837897
| 0.802015
| 0.800054
| 0.79567
| 0.788132
| 0.745212
| 0
| 0.006035
| 0.185336
| 37,629
| 1,213
| 104
| 31.021434
| 0.842179
| 0.019134
| 0
| 0.791152
| 0
| 0
| 0.253609
| 0.04211
| 0
| 0
| 0
| 0
| 0
| 1
| 0.002058
| false
| 0.002058
| 0.002058
| 0.001029
| 0.996914
| 0.016461
| 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
| 1
| 0
|
0
| 9
|
fa9ebf280803f146319bf919c3e6a0ca3171be2c
| 153
|
py
|
Python
|
logics/classes/predicate/__init__.py
|
ariroffe/logics
|
fb918ae8cf243a452e5b030f0df17add83f47f8b
|
[
"MIT"
] | 12
|
2021-03-31T08:12:09.000Z
|
2022-03-15T21:36:59.000Z
|
logics/classes/predicate/__init__.py
|
ariroffe/logics
|
fb918ae8cf243a452e5b030f0df17add83f47f8b
|
[
"MIT"
] | null | null | null |
logics/classes/predicate/__init__.py
|
ariroffe/logics
|
fb918ae8cf243a452e5b030f0df17add83f47f8b
|
[
"MIT"
] | 1
|
2021-03-31T15:14:26.000Z
|
2021-03-31T15:14:26.000Z
|
from logics.classes.predicate.formula import PredicateFormula
from logics.classes.predicate.language import PredicateLanguage, InfinitePredicateLanguage
| 51
| 90
| 0.895425
| 15
| 153
| 9.133333
| 0.666667
| 0.145985
| 0.248175
| 0.379562
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.058824
| 153
| 2
| 91
| 76.5
| 0.951389
| 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
|
fabbe8745f36b692c2adfb59647741f4a0d6b4c7
| 2,806
|
py
|
Python
|
GeneratorInterface/GenFilters/python/VBFGenJetFilter_cfi.py
|
pasmuss/cmssw
|
566f40c323beef46134485a45ea53349f59ae534
|
[
"Apache-2.0"
] | null | null | null |
GeneratorInterface/GenFilters/python/VBFGenJetFilter_cfi.py
|
pasmuss/cmssw
|
566f40c323beef46134485a45ea53349f59ae534
|
[
"Apache-2.0"
] | null | null | null |
GeneratorInterface/GenFilters/python/VBFGenJetFilter_cfi.py
|
pasmuss/cmssw
|
566f40c323beef46134485a45ea53349f59ae534
|
[
"Apache-2.0"
] | null | null | null |
import FWCore.ParameterSet.Config as cms
vbfGenJetFilterA = cms.EDFilter("VBFGenJetFilter",
inputTag_GenJetCollection = cms.untracked.InputTag('ak4GenJetsNoNu'),
oppositeHemisphere = cms.untracked.bool ( False), # Require j1_eta*j2_eta<0
minPt = cms.untracked.double( 40), # Minimum dijet jet_pt
minEta = cms.untracked.double( -4.8), # Minimum dijet jet_eta
maxEta = cms.untracked.double( 4.8), # Maximum dijet jet_eta
minInvMass = cms.untracked.double( 1000.), # Minimum dijet invariant mass
maxInvMass = cms.untracked.double(99999.), # Maximum dijet invariant mass
minDeltaPhi = cms.untracked.double( -1.0), # Minimum dijet delta phi
maxDeltaPhi = cms.untracked.double( 2.15), # Maximum dijet delta phi
minDeltaEta = cms.untracked.double( 3.0), # Minimum dijet delta eta
maxDeltaEta = cms.untracked.double(99999.) # Maximum dijet delta eta
)
vbfGenJetFilterB = cms.EDFilter("VBFGenJetFilter",
inputTag_GenJetCollection = cms.untracked.InputTag('ak4GenJetsNoNu'),
oppositeHemisphere = cms.untracked.bool ( False), # Require j1_eta*j2_eta<0
minPt = cms.untracked.double( 40), # Minimum dijet jet_pt
minEta = cms.untracked.double( -4.8), # Minimum dijet jet_eta
maxEta = cms.untracked.double( 4.8), # Maximum dijet jet_eta
minInvMass = cms.untracked.double( 1000.), # Minimum dijet invariant mass
maxInvMass = cms.untracked.double(99999.), # Maximum dijet invariant mass
minDeltaPhi = cms.untracked.double( 2.15), # Minimum dijet delta phi
maxDeltaPhi = cms.untracked.double( 3.2), # Maximum dijet delta phi
minDeltaEta = cms.untracked.double( 3.0), # Minimum dijet delta eta
maxDeltaEta = cms.untracked.double(99999.) # Maximum dijet delta eta
)
vbfGenJetFilterC = cms.EDFilter("VBFGenJetFilter",
inputTag_GenJetCollection = cms.untracked.InputTag('ak4GenJetsNoNu'),
oppositeHemisphere = cms.untracked.bool ( False), # Require j1_eta*j2_eta<0
minPt = cms.untracked.double( 40), # Minimum dijet jet_pt
minEta = cms.untracked.double( -4.8), # Minimum dijet jet_eta
maxEta = cms.untracked.double( 4.8), # Maximum dijet jet_eta
minInvMass = cms.untracked.double( 1000.), # Minimum dijet invariant mass
maxInvMass = cms.untracked.double(99999.), # Maximum dijet invariant mass
minDeltaPhi = cms.untracked.double( -1.0), # Minimum dijet delta phi
maxDeltaPhi = cms.untracked.double( 3.2), # Maximum dijet delta phi
minDeltaEta = cms.untracked.double( 3.0), # Minimum dijet delta eta
maxDeltaEta = cms.untracked.double(99999.) # Maximum dijet delta eta
)
| 53.961538
| 83
| 0.670706
| 327
| 2,806
| 5.700306
| 0.155963
| 0.212446
| 0.26073
| 0.061159
| 0.955472
| 0.952253
| 0.952253
| 0.952253
| 0.952253
| 0.952253
| 0
| 0.042377
| 0.226301
| 2,806
| 52
| 84
| 53.961538
| 0.816214
| 0.259444
| 0
| 0.775
| 0
| 0
| 0.04248
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.025
| 0
| 0.025
| 0
| 0
| 0
| 0
| null | 1
| 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
| 9
|
877eb09ffa61a34d4c462f06a2ec0343e638e0a8
| 550
|
py
|
Python
|
ast/testdata/expr2.py
|
MaxTurchin/pycopy-lib
|
d7a69fc2a28031e2ca475c29239f715c1809d8cc
|
[
"PSF-2.0"
] | 126
|
2019-07-19T14:42:41.000Z
|
2022-03-21T22:22:19.000Z
|
ast/testdata/expr2.py
|
MaxTurchin/pycopy-lib
|
d7a69fc2a28031e2ca475c29239f715c1809d8cc
|
[
"PSF-2.0"
] | 38
|
2019-08-28T01:46:31.000Z
|
2022-03-17T05:46:51.000Z
|
ast/testdata/expr2.py
|
MaxTurchin/pycopy-lib
|
d7a69fc2a28031e2ca475c29239f715c1809d8cc
|
[
"PSF-2.0"
] | 55
|
2019-08-02T09:32:33.000Z
|
2021-12-22T11:25:51.000Z
|
1 + 2
1 - 3
2 * 3
3 / 4
4 // 5
5 % 6
1 + 2 * 3
(1 + 2) * 3
1 + (2 * 3)
3 * (1 + 2)
1 ** 2 ** 3
-1
+1
~1
~1**2
1 == 2
1 != 2
1 < 2
1 > 2
1 <= 2
1 >= 2
1 or 2
1 and 2
1 or 2 or 3
1 and 2 and 3
1 and 2 or 3
1 or 2 and 3
(1 and 2) and 3
not 1
not 1 or 2
1 | 2
1 ^ 2
1 & 2
1 | 2 ^ 3 & 4
1 << 2
1 >> 2
1 >> 2 & 3
1 if 2 else 3
(1).foo
(1).foo.bar
1[2]
1()
1(2)
1(2, 3, 4)
(1 + 2)()
lambda: 1
lambda x: 1
lambda x, y: 1 + 2
a + b
1, 2
1,
()
(1, 2, 3)
[]
[1]
[1, 2]
{}
{1: 2}
{1: 2, 3: 4}
{1: 2, 3: 4,}
"foo" + "bar"
None
True
False
"foo" if 1 else "bar", 2
| 8.333333
| 24
| 0.421818
| 161
| 550
| 1.440994
| 0.130435
| 0.267241
| 0.24569
| 0.258621
| 0.465517
| 0.422414
| 0.228448
| 0.198276
| 0.163793
| 0.150862
| 0
| 0.347339
| 0.350909
| 550
| 65
| 25
| 8.461538
| 0.302521
| 0
| 0
| 0
| 0
| 0
| 0.021818
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| null | 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
878964e3ba721289ec64fd3071f20f4d019452d5
| 47,146
|
py
|
Python
|
test/test_AbsolutePitchHandler.py
|
josiah-wolf-oberholtzer/consort
|
6c7d511835d5ad883ad1ad52ae9cd48c4a7b5571
|
[
"MIT"
] | 9
|
2015-02-11T09:35:40.000Z
|
2019-04-29T23:57:49.000Z
|
test/test_AbsolutePitchHandler.py
|
josiah-wolf-oberholtzer/consort
|
6c7d511835d5ad883ad1ad52ae9cd48c4a7b5571
|
[
"MIT"
] | 2
|
2016-02-07T18:54:47.000Z
|
2017-08-10T01:38:01.000Z
|
test/test_AbsolutePitchHandler.py
|
josiah-wolf-oberholtzer/consort
|
6c7d511835d5ad883ad1ad52ae9cd48c4a7b5571
|
[
"MIT"
] | 1
|
2019-05-13T12:37:15.000Z
|
2019-05-13T12:37:15.000Z
|
import abjad
import collections
import consort
from abjad.tools import pitchtools
from abjad.tools import rhythmmakertools
from abjad.tools import systemtools
from abjad.tools import templatetools
music_specifier = consort.MusicSpecifier(
rhythm_maker=rhythmmakertools.EvenDivisionRhythmMaker(
denominators=[16],
),
)
segment_metadata = collections.OrderedDict(
segment_count=2,
segment_number=1,
)
def test_AbsolutePitchHandler_01():
pitch_handler = consort.AbsolutePitchHandler()
segment_maker = consort.SegmentMaker(
discard_final_silence=True,
desired_duration_in_seconds=1,
omit_stylesheets=True,
score_template=templatetools.GroupedStavesScoreTemplate(
staff_count=1,
),
settings=consort.MusicSetting(
timespan_maker=consort.FloodedTimespanMaker(),
v1=abjad.new(music_specifier, pitch_handler=pitch_handler),
),
tempo=abjad.MetronomeMark((1, 4), 60),
permitted_time_signatures=((1, 4),),
)
lilypond_file, metadata = segment_maker(segment_metadata=segment_metadata)
assert format(lilypond_file) == abjad.String.normalize(
r'''
\version "2.19.65"
\language "english"
#(ly:set-option 'relative-includes #t)
\score {
\context Score = "Grouped Staves Score" <<
\tag #'time
\context TimeSignatureContext = "Time Signature Context" {
{
\tempo 4=60
\time 1/4
s1 * 1/4
}
}
\context StaffGroup = "Grouped Staves Staff Group" <<
\context Staff = "Staff 1" {
\context Voice = "Voice 1" {
{
% [Voice 1] Measure 1
{
c'16 [
\set stemLeftBeamCount = 2
\set stemRightBeamCount = 2
c'16
\set stemLeftBeamCount = 2
\set stemRightBeamCount = 2
c'16
\set stemLeftBeamCount = 2
c'16 ]
}
}
}
}
>>
>>
}
''')
def test_AbsolutePitchHandler_02():
pitch_handler = consort.AbsolutePitchHandler(
pitch_specifier=consort.PitchSpecifier(
pitch_segments=(
"c' e' g'",
),
ratio=(1,),
),
)
segment_maker = consort.SegmentMaker(
discard_final_silence=True,
desired_duration_in_seconds=1,
omit_stylesheets=True,
score_template=templatetools.GroupedStavesScoreTemplate(
staff_count=1,
),
settings=consort.MusicSetting(
timespan_maker=consort.FloodedTimespanMaker(),
v1=abjad.new(music_specifier, pitch_handler=pitch_handler),
),
tempo=abjad.MetronomeMark((1, 4), 60),
permitted_time_signatures=((1, 4),),
)
lilypond_file, metadata = segment_maker(segment_metadata=segment_metadata)
assert format(lilypond_file) == abjad.String.normalize(
r'''
\version "2.19.65"
\language "english"
#(ly:set-option 'relative-includes #t)
\score {
\context Score = "Grouped Staves Score" <<
\tag #'time
\context TimeSignatureContext = "Time Signature Context" {
{
\tempo 4=60
\time 1/4
s1 * 1/4
}
}
\context StaffGroup = "Grouped Staves Staff Group" <<
\context Staff = "Staff 1" {
\context Voice = "Voice 1" {
{
% [Voice 1] Measure 1
{
c'16 [
\set stemLeftBeamCount = 2
\set stemRightBeamCount = 2
e'16
\set stemLeftBeamCount = 2
\set stemRightBeamCount = 2
g'16
\set stemLeftBeamCount = 2
c'16 ]
}
}
}
}
>>
>>
}
''')
def test_AbsolutePitchHandler_03():
pitch_handler = consort.AbsolutePitchHandler(
pitch_specifier=consort.PitchSpecifier(
pitch_segments=(
"c' e' g'",
"fs' gs'",
"b",
),
ratio=(1, 1, 1),
),
)
segment_maker = consort.SegmentMaker(
discard_final_silence=True,
desired_duration_in_seconds=3,
omit_stylesheets=True,
score_template=templatetools.GroupedStavesScoreTemplate(
staff_count=1,
),
settings=consort.MusicSetting(
timespan_maker=consort.FloodedTimespanMaker(),
v1=abjad.new(music_specifier, pitch_handler=pitch_handler),
),
tempo=abjad.MetronomeMark((1, 4), 60),
permitted_time_signatures=((1, 4),),
)
lilypond_file, metadata = segment_maker(segment_metadata=segment_metadata)
assert format(lilypond_file) == abjad.String.normalize(
r'''
\version "2.19.65"
\language "english"
#(ly:set-option 'relative-includes #t)
\score {
\context Score = "Grouped Staves Score" <<
\tag #'time
\context TimeSignatureContext = "Time Signature Context" {
{
\tempo 4=60
\time 1/4
s1 * 3/4
}
}
\context StaffGroup = "Grouped Staves Staff Group" <<
\context Staff = "Staff 1" {
\context Voice = "Voice 1" {
{
% [Voice 1] Measure 1
{
c'16 [
\set stemLeftBeamCount = 2
\set stemRightBeamCount = 2
e'16
\set stemLeftBeamCount = 2
\set stemRightBeamCount = 2
g'16
\set stemLeftBeamCount = 2
c'16 ]
}
% [Voice 1] Measure 2
{
fs'16 [
\set stemLeftBeamCount = 2
\set stemRightBeamCount = 2
gs'16
\set stemLeftBeamCount = 2
\set stemRightBeamCount = 2
fs'16
\set stemLeftBeamCount = 2
gs'16 ]
}
% [Voice 1] Measure 3
{
b16 [
\set stemLeftBeamCount = 2
\set stemRightBeamCount = 2
b16
\set stemLeftBeamCount = 2
\set stemRightBeamCount = 2
b16
\set stemLeftBeamCount = 2
b16 ]
}
}
}
}
>>
>>
}
''')
def test_AbsolutePitchHandler_04():
pitch_handler = consort.AbsolutePitchHandler(
pitch_specifier=consort.PitchSpecifier(
pitch_segments=(
"c' e' g'",
"fs' gs'",
"b",
),
ratio=(3, 2, 1),
),
pitch_operation_specifier=consort.PitchOperationSpecifier(
pitch_operations=(
abjad.CompoundOperator(
abjad.Transposition(1),
),
None,
abjad.CompoundOperator(
abjad.Transposition(1),
),
),
ratio=(1, 2, 1),
),
)
segment_maker = consort.SegmentMaker(
discard_final_silence=True,
desired_duration_in_seconds=3,
omit_stylesheets=True,
score_template=templatetools.GroupedStavesScoreTemplate(
staff_count=1,
),
settings=consort.MusicSetting(
timespan_maker=consort.FloodedTimespanMaker(),
v1=abjad.new(music_specifier, pitch_handler=pitch_handler),
),
tempo=abjad.MetronomeMark((1, 4), 60),
permitted_time_signatures=((1, 4),),
)
lilypond_file, metadata = segment_maker(segment_metadata=segment_metadata)
assert format(lilypond_file) == abjad.String.normalize(
r'''
\version "2.19.65"
\language "english"
#(ly:set-option 'relative-includes #t)
\score {
\context Score = "Grouped Staves Score" <<
\tag #'time
\context TimeSignatureContext = "Time Signature Context" {
{
\tempo 4=60
\time 1/4
s1 * 3/4
}
}
\context StaffGroup = "Grouped Staves Staff Group" <<
\context Staff = "Staff 1" {
\context Voice = "Voice 1" {
{
% [Voice 1] Measure 1
{
df'16 [
\set stemLeftBeamCount = 2
\set stemRightBeamCount = 2
f'16
\set stemLeftBeamCount = 2
\set stemRightBeamCount = 2
af'16
\set stemLeftBeamCount = 2
c'16 ]
}
% [Voice 1] Measure 2
{
e'16 [
\set stemLeftBeamCount = 2
\set stemRightBeamCount = 2
g'16
\set stemLeftBeamCount = 2
\set stemRightBeamCount = 2
fs'16
\set stemLeftBeamCount = 2
gs'16 ]
}
% [Voice 1] Measure 3
{
fs'16 [
\set stemLeftBeamCount = 2
\set stemRightBeamCount = 2
a'16
\set stemLeftBeamCount = 2
\set stemRightBeamCount = 2
c'16
\set stemLeftBeamCount = 2
c'16 ]
}
}
}
}
>>
>>
}
''')
def test_AbsolutePitchHandler_05():
pitch_handler = consort.AbsolutePitchHandler(
pitch_specifier=consort.PitchSpecifier(
pitch_segments=(
"c' e' g'",
"fs' gs'",
"b",
),
ratio=(3, 2, 1),
),
)
segment_maker = consort.SegmentMaker(
discard_final_silence=True,
desired_duration_in_seconds=3,
omit_stylesheets=True,
score_template=templatetools.GroupedStavesScoreTemplate(
staff_count=2,
),
settings=consort.MusicSetting(
timespan_maker=consort.FloodedTimespanMaker(),
v1=abjad.new(music_specifier, pitch_handler=pitch_handler),
v2=abjad.new(music_specifier, pitch_handler=pitch_handler),
),
tempo=abjad.MetronomeMark((1, 4), 60),
permitted_time_signatures=((1, 4),),
)
lilypond_file, metadata = segment_maker(segment_metadata=segment_metadata)
assert format(lilypond_file) == abjad.String.normalize(
r'''
\version "2.19.65"
\language "english"
#(ly:set-option 'relative-includes #t)
\score {
\context Score = "Grouped Staves Score" <<
\tag #'time
\context TimeSignatureContext = "Time Signature Context" {
{
\tempo 4=60
\time 1/4
s1 * 3/4
}
}
\context StaffGroup = "Grouped Staves Staff Group" <<
\context Staff = "Staff 1" {
\context Voice = "Voice 1" {
{
% [Voice 1] Measure 1
{
c'16 [
\set stemLeftBeamCount = 2
\set stemRightBeamCount = 2
g'16
\set stemLeftBeamCount = 2
\set stemRightBeamCount = 2
e'16
\set stemLeftBeamCount = 2
c'16 ]
}
% [Voice 1] Measure 2
{
g'16 [
\set stemLeftBeamCount = 2
\set stemRightBeamCount = 2
e'16
\set stemLeftBeamCount = 2
\set stemRightBeamCount = 2
fs'16
\set stemLeftBeamCount = 2
fs'16 ]
}
% [Voice 1] Measure 3
{
fs'16 [
\set stemLeftBeamCount = 2
\set stemRightBeamCount = 2
fs'16
\set stemLeftBeamCount = 2
\set stemRightBeamCount = 2
b16
\set stemLeftBeamCount = 2
b16 ]
}
}
}
}
\context Staff = "Staff 2" {
\context Voice = "Voice 2" {
{
% [Voice 2] Measure 1
{
e'16 [
\set stemLeftBeamCount = 2
\set stemRightBeamCount = 2
c'16
\set stemLeftBeamCount = 2
\set stemRightBeamCount = 2
g'16
\set stemLeftBeamCount = 2
e'16 ]
}
% [Voice 2] Measure 2
{
c'16 [
\set stemLeftBeamCount = 2
\set stemRightBeamCount = 2
g'16
\set stemLeftBeamCount = 2
\set stemRightBeamCount = 2
gs'16
\set stemLeftBeamCount = 2
gs'16 ]
}
% [Voice 2] Measure 3
{
gs'16 [
\set stemLeftBeamCount = 2
\set stemRightBeamCount = 2
gs'16
\set stemLeftBeamCount = 2
\set stemRightBeamCount = 2
b16
\set stemLeftBeamCount = 2
b16 ]
}
}
}
}
>>
>>
}
''')
def test_AbsolutePitchHandler_06():
pitch_handler = consort.AbsolutePitchHandler(
forbid_repetitions=True,
pitch_specifier=consort.PitchSpecifier(
pitch_segments=(
"c' e' g'",
"fs' gs'",
"b",
),
ratio=(3, 2, 1),
),
)
segment_maker = consort.SegmentMaker(
discard_final_silence=True,
desired_duration_in_seconds=3,
omit_stylesheets=True,
score_template=templatetools.GroupedStavesScoreTemplate(
staff_count=2,
),
settings=consort.MusicSetting(
timespan_maker=consort.FloodedTimespanMaker(),
v1=abjad.new(music_specifier, pitch_handler=pitch_handler),
v2=abjad.new(music_specifier, pitch_handler=pitch_handler),
),
tempo=abjad.MetronomeMark((1, 4), 60),
permitted_time_signatures=((1, 4),),
)
lilypond_file, metadata = segment_maker(segment_metadata=segment_metadata)
assert format(lilypond_file) == abjad.String.normalize(
r'''
\version "2.19.65"
\language "english"
#(ly:set-option 'relative-includes #t)
\score {
\context Score = "Grouped Staves Score" <<
\tag #'time
\context TimeSignatureContext = "Time Signature Context" {
{
\tempo 4=60
\time 1/4
s1 * 3/4
}
}
\context StaffGroup = "Grouped Staves Staff Group" <<
\context Staff = "Staff 1" {
\context Voice = "Voice 1" {
{
% [Voice 1] Measure 1
{
c'16 [
\set stemLeftBeamCount = 2
\set stemRightBeamCount = 2
g'16
\set stemLeftBeamCount = 2
\set stemRightBeamCount = 2
e'16
\set stemLeftBeamCount = 2
c'16 ]
}
% [Voice 1] Measure 2
{
g'16 [
\set stemLeftBeamCount = 2
\set stemRightBeamCount = 2
e'16
\set stemLeftBeamCount = 2
\set stemRightBeamCount = 2
fs'16
\set stemLeftBeamCount = 2
gs'16 ]
}
% [Voice 1] Measure 3
{
fs'16 [
\set stemLeftBeamCount = 2
\set stemRightBeamCount = 2
gs'16
\set stemLeftBeamCount = 2
\set stemRightBeamCount = 2
b16
\set stemLeftBeamCount = 2
b16 ]
}
}
}
}
\context Staff = "Staff 2" {
\context Voice = "Voice 2" {
{
% [Voice 2] Measure 1
{
e'16 [
\set stemLeftBeamCount = 2
\set stemRightBeamCount = 2
c'16
\set stemLeftBeamCount = 2
\set stemRightBeamCount = 2
g'16
\set stemLeftBeamCount = 2
e'16 ]
}
% [Voice 2] Measure 2
{
c'16 [
\set stemLeftBeamCount = 2
\set stemRightBeamCount = 2
g'16
\set stemLeftBeamCount = 2
\set stemRightBeamCount = 2
gs'16
\set stemLeftBeamCount = 2
fs'16 ]
}
% [Voice 2] Measure 3
{
gs'16 [
\set stemLeftBeamCount = 2
\set stemRightBeamCount = 2
fs'16
\set stemLeftBeamCount = 2
\set stemRightBeamCount = 2
b16
\set stemLeftBeamCount = 2
b16 ]
}
}
}
}
>>
>>
}
''')
def test_AbsolutePitchHandler_07():
pitch_handler = consort.AbsolutePitchHandler(
forbid_repetitions=True,
pitch_specifier=consort.PitchSpecifier(
pitch_segments=(
"c' e' g'",
"fs' gs'",
"b",
),
ratio=(3, 2, 1),
),
pitch_operation_specifier=consort.PitchOperationSpecifier(
pitch_operations=(
None,
abjad.CompoundOperator(abjad.Transposition(1)),
None,
),
ratio=(1, 2, 1),
),
)
segment_maker = consort.SegmentMaker(
discard_final_silence=True,
desired_duration_in_seconds=3,
omit_stylesheets=True,
score_template=templatetools.GroupedStavesScoreTemplate(
staff_count=2,
),
settings=consort.MusicSetting(
timespan_maker=consort.FloodedTimespanMaker(),
v1=abjad.new(music_specifier, pitch_handler=pitch_handler),
v2=abjad.new(music_specifier, pitch_handler=pitch_handler),
),
tempo=abjad.MetronomeMark((1, 4), 60),
permitted_time_signatures=((1, 4),),
)
lilypond_file, metadata = segment_maker(segment_metadata=segment_metadata)
assert format(lilypond_file) == abjad.String.normalize(
r'''
\version "2.19.65"
\language "english"
#(ly:set-option 'relative-includes #t)
\score {
\context Score = "Grouped Staves Score" <<
\tag #'time
\context TimeSignatureContext = "Time Signature Context" {
{
\tempo 4=60
\time 1/4
s1 * 3/4
}
}
\context StaffGroup = "Grouped Staves Staff Group" <<
\context Staff = "Staff 1" {
\context Voice = "Voice 1" {
{
% [Voice 1] Measure 1
{
c'16 [
\set stemLeftBeamCount = 2
\set stemRightBeamCount = 2
g'16
\set stemLeftBeamCount = 2
\set stemRightBeamCount = 2
e'16
\set stemLeftBeamCount = 2
df'16 ]
}
% [Voice 1] Measure 2
{
af'16 [
\set stemLeftBeamCount = 2
\set stemRightBeamCount = 2
f'16
\set stemLeftBeamCount = 2
\set stemRightBeamCount = 2
g'16
\set stemLeftBeamCount = 2
a'16 ]
}
% [Voice 1] Measure 3
{
g'16 [
\set stemLeftBeamCount = 2
\set stemRightBeamCount = 2
fs'16
\set stemLeftBeamCount = 2
\set stemRightBeamCount = 2
b16
\set stemLeftBeamCount = 2
b16 ]
}
}
}
}
\context Staff = "Staff 2" {
\context Voice = "Voice 2" {
{
% [Voice 2] Measure 1
{
e'16 [
\set stemLeftBeamCount = 2
\set stemRightBeamCount = 2
c'16
\set stemLeftBeamCount = 2
\set stemRightBeamCount = 2
g'16
\set stemLeftBeamCount = 2
f'16 ]
}
% [Voice 2] Measure 2
{
df'16 [
\set stemLeftBeamCount = 2
\set stemRightBeamCount = 2
af'16
\set stemLeftBeamCount = 2
\set stemRightBeamCount = 2
a'16
\set stemLeftBeamCount = 2
g'16 ]
}
% [Voice 2] Measure 3
{
a'16 [
\set stemLeftBeamCount = 2
\set stemRightBeamCount = 2
gs'16
\set stemLeftBeamCount = 2
\set stemRightBeamCount = 2
b16
\set stemLeftBeamCount = 2
b16 ]
}
}
}
}
>>
>>
}
''')
def test_AbsolutePitchHandler_08():
pitch_handler = consort.AbsolutePitchHandler(
forbid_repetitions=True,
pitch_application_rate='division',
pitch_specifier=consort.PitchSpecifier(
pitch_segments="c' e' g'",
),
)
segment_maker = consort.SegmentMaker(
discard_final_silence=True,
desired_duration_in_seconds=3,
omit_stylesheets=True,
score_template=templatetools.GroupedStavesScoreTemplate(
staff_count=2,
),
settings=consort.MusicSetting(
timespan_maker=consort.FloodedTimespanMaker(),
v1=abjad.new(music_specifier, pitch_handler=pitch_handler),
v2=abjad.new(music_specifier, pitch_handler=pitch_handler),
),
tempo=abjad.MetronomeMark((1, 4), 60),
permitted_time_signatures=((1, 4),),
)
lilypond_file, metadata = segment_maker(segment_metadata=segment_metadata)
assert format(lilypond_file) == abjad.String.normalize(
r'''
\version "2.19.65"
\language "english"
#(ly:set-option 'relative-includes #t)
\score {
\context Score = "Grouped Staves Score" <<
\tag #'time
\context TimeSignatureContext = "Time Signature Context" {
{
\tempo 4=60
\time 1/4
s1 * 3/4
}
}
\context StaffGroup = "Grouped Staves Staff Group" <<
\context Staff = "Staff 1" {
\context Voice = "Voice 1" {
{
% [Voice 1] Measure 1
{
c'16 [
\set stemLeftBeamCount = 2
\set stemRightBeamCount = 2
c'16
\set stemLeftBeamCount = 2
\set stemRightBeamCount = 2
c'16
\set stemLeftBeamCount = 2
c'16 ]
}
% [Voice 1] Measure 2
{
g'16 [
\set stemLeftBeamCount = 2
\set stemRightBeamCount = 2
g'16
\set stemLeftBeamCount = 2
\set stemRightBeamCount = 2
g'16
\set stemLeftBeamCount = 2
g'16 ]
}
% [Voice 1] Measure 3
{
e'16 [
\set stemLeftBeamCount = 2
\set stemRightBeamCount = 2
e'16
\set stemLeftBeamCount = 2
\set stemRightBeamCount = 2
e'16
\set stemLeftBeamCount = 2
e'16 ]
}
}
}
}
\context Staff = "Staff 2" {
\context Voice = "Voice 2" {
{
% [Voice 2] Measure 1
{
e'16 [
\set stemLeftBeamCount = 2
\set stemRightBeamCount = 2
e'16
\set stemLeftBeamCount = 2
\set stemRightBeamCount = 2
e'16
\set stemLeftBeamCount = 2
e'16 ]
}
% [Voice 2] Measure 2
{
c'16 [
\set stemLeftBeamCount = 2
\set stemRightBeamCount = 2
c'16
\set stemLeftBeamCount = 2
\set stemRightBeamCount = 2
c'16
\set stemLeftBeamCount = 2
c'16 ]
}
% [Voice 2] Measure 3
{
g'16 [
\set stemLeftBeamCount = 2
\set stemRightBeamCount = 2
g'16
\set stemLeftBeamCount = 2
\set stemRightBeamCount = 2
g'16
\set stemLeftBeamCount = 2
g'16 ]
}
}
}
}
>>
>>
}
''')
def test_AbsolutePitchHandler_09():
pitch_handler = consort.AbsolutePitchHandler(
forbid_repetitions=True,
pitch_application_rate='phrase',
pitch_specifier=consort.PitchSpecifier(
pitch_segments="c' e' g'",
),
)
segment_maker = consort.SegmentMaker(
discard_final_silence=True,
desired_duration_in_seconds=3,
omit_stylesheets=True,
score_template=templatetools.GroupedStavesScoreTemplate(
staff_count=2,
),
settings=consort.MusicSetting(
timespan_maker=consort.FloodedTimespanMaker(),
v1=abjad.new(music_specifier, pitch_handler=pitch_handler),
v2=abjad.new(music_specifier, pitch_handler=pitch_handler),
),
tempo=abjad.MetronomeMark((1, 4), 60),
permitted_time_signatures=((1, 4),),
)
lilypond_file, metadata = segment_maker(segment_metadata=segment_metadata)
assert format(lilypond_file) == abjad.String.normalize(
r'''
\version "2.19.65"
\language "english"
#(ly:set-option 'relative-includes #t)
\score {
\context Score = "Grouped Staves Score" <<
\tag #'time
\context TimeSignatureContext = "Time Signature Context" {
{
\tempo 4=60
\time 1/4
s1 * 3/4
}
}
\context StaffGroup = "Grouped Staves Staff Group" <<
\context Staff = "Staff 1" {
\context Voice = "Voice 1" {
{
% [Voice 1] Measure 1
{
c'16 [
\set stemLeftBeamCount = 2
\set stemRightBeamCount = 2
c'16
\set stemLeftBeamCount = 2
\set stemRightBeamCount = 2
c'16
\set stemLeftBeamCount = 2
c'16 ]
}
% [Voice 1] Measure 2
{
c'16 [
\set stemLeftBeamCount = 2
\set stemRightBeamCount = 2
c'16
\set stemLeftBeamCount = 2
\set stemRightBeamCount = 2
c'16
\set stemLeftBeamCount = 2
c'16 ]
}
% [Voice 1] Measure 3
{
c'16 [
\set stemLeftBeamCount = 2
\set stemRightBeamCount = 2
c'16
\set stemLeftBeamCount = 2
\set stemRightBeamCount = 2
c'16
\set stemLeftBeamCount = 2
c'16 ]
}
}
}
}
\context Staff = "Staff 2" {
\context Voice = "Voice 2" {
{
% [Voice 2] Measure 1
{
e'16 [
\set stemLeftBeamCount = 2
\set stemRightBeamCount = 2
e'16
\set stemLeftBeamCount = 2
\set stemRightBeamCount = 2
e'16
\set stemLeftBeamCount = 2
e'16 ]
}
% [Voice 2] Measure 2
{
e'16 [
\set stemLeftBeamCount = 2
\set stemRightBeamCount = 2
e'16
\set stemLeftBeamCount = 2
\set stemRightBeamCount = 2
e'16
\set stemLeftBeamCount = 2
e'16 ]
}
% [Voice 2] Measure 3
{
e'16 [
\set stemLeftBeamCount = 2
\set stemRightBeamCount = 2
e'16
\set stemLeftBeamCount = 2
\set stemRightBeamCount = 2
e'16
\set stemLeftBeamCount = 2
e'16 ]
}
}
}
}
>>
>>
}
''')
def test_AbsolutePitchHandler_10():
pitch_handler = consort.AbsolutePitchHandler(
deviations=(0, 0.5, -0.5),
forbid_repetitions=True,
pitch_application_rate='division',
pitch_specifier=consort.PitchSpecifier(
pitch_segments="c' e' g'",
),
)
segment_maker = consort.SegmentMaker(
discard_final_silence=True,
desired_duration_in_seconds=3,
omit_stylesheets=True,
score_template=templatetools.GroupedStavesScoreTemplate(
staff_count=2,
),
settings=consort.MusicSetting(
timespan_maker=consort.FloodedTimespanMaker(),
v1=abjad.new(music_specifier, pitch_handler=pitch_handler),
v2=abjad.new(music_specifier, pitch_handler=pitch_handler),
),
tempo=abjad.MetronomeMark((1, 4), 60),
permitted_time_signatures=((1, 4),),
)
lilypond_file, metadata = segment_maker(segment_metadata=segment_metadata)
assert format(lilypond_file) == abjad.String.normalize(
r'''
\version "2.19.65"
\language "english"
#(ly:set-option 'relative-includes #t)
\score {
\context Score = "Grouped Staves Score" <<
\tag #'time
\context TimeSignatureContext = "Time Signature Context" {
{
\tempo 4=60
\time 1/4
s1 * 3/4
}
}
\context StaffGroup = "Grouped Staves Staff Group" <<
\context Staff = "Staff 1" {
\context Voice = "Voice 1" {
{
% [Voice 1] Measure 1
{
c'16 [
\set stemLeftBeamCount = 2
\set stemRightBeamCount = 2
cqs'16
\set stemLeftBeamCount = 2
\set stemRightBeamCount = 2
bqs16
\set stemLeftBeamCount = 2
c'16 ]
}
% [Voice 1] Measure 2
{
gqs'16 [
\set stemLeftBeamCount = 2
\set stemRightBeamCount = 2
gqf'16
\set stemLeftBeamCount = 2
\set stemRightBeamCount = 2
g'16
\set stemLeftBeamCount = 2
gqs'16 ]
}
% [Voice 1] Measure 3
{
eqf'16 [
\set stemLeftBeamCount = 2
\set stemRightBeamCount = 2
e'16
\set stemLeftBeamCount = 2
\set stemRightBeamCount = 2
eqs'16
\set stemLeftBeamCount = 2
eqf'16 ]
}
}
}
}
\context Staff = "Staff 2" {
\context Voice = "Voice 2" {
{
% [Voice 2] Measure 1
{
e'16 [
\set stemLeftBeamCount = 2
\set stemRightBeamCount = 2
eqs'16
\set stemLeftBeamCount = 2
\set stemRightBeamCount = 2
eqf'16
\set stemLeftBeamCount = 2
e'16 ]
}
% [Voice 2] Measure 2
{
cqs'16 [
\set stemLeftBeamCount = 2
\set stemRightBeamCount = 2
bqs16
\set stemLeftBeamCount = 2
\set stemRightBeamCount = 2
c'16
\set stemLeftBeamCount = 2
cqs'16 ]
}
% [Voice 2] Measure 3
{
gqf'16 [
\set stemLeftBeamCount = 2
\set stemRightBeamCount = 2
g'16
\set stemLeftBeamCount = 2
\set stemRightBeamCount = 2
gqs'16
\set stemLeftBeamCount = 2
gqf'16 ]
}
}
}
}
>>
>>
}
''')
| 40.889853
| 78
| 0.328066
| 2,739
| 47,146
| 5.541804
| 0.049653
| 0.173925
| 0.182621
| 0.183345
| 0.963173
| 0.957309
| 0.946703
| 0.941037
| 0.940708
| 0.937611
| 0
| 0.053284
| 0.613074
| 47,146
| 1,152
| 79
| 40.925347
| 0.778807
| 0
| 0
| 0.836066
| 0
| 0
| 0.011855
| 0
| 0
| 0
| 0
| 0
| 0.032787
| 1
| 0.032787
| false
| 0
| 0.022951
| 0
| 0.055738
| 0
| 0
| 0
| 0
| null | 0
| 1
| 1
| 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
| 10
|
87cc66d53f228b740a2438bf9731c355e92a3a97
| 1,815
|
py
|
Python
|
waterspout_api/migrations/0038_auto_20210505_1453.py
|
Water-Systems-Management-UCM/Waterspout
|
78965f1e53b09f442e278dff72c290ceac22ed60
|
[
"MIT"
] | 1
|
2020-09-10T20:43:24.000Z
|
2020-09-10T20:43:24.000Z
|
waterspout_api/migrations/0038_auto_20210505_1453.py
|
Water-Systems-Management-UCM/Waterspout
|
78965f1e53b09f442e278dff72c290ceac22ed60
|
[
"MIT"
] | 72
|
2020-05-28T17:20:12.000Z
|
2022-03-28T14:11:40.000Z
|
waterspout_api/migrations/0038_auto_20210505_1453.py
|
Water-Systems-Management-UCM/Waterspout
|
78965f1e53b09f442e278dff72c290ceac22ed60
|
[
"MIT"
] | null | null | null |
# Generated by Django 3.2 on 2021-05-05 21:53
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('waterspout_api', '0037_auto_20210505_1058'),
]
operations = [
migrations.RemoveField(
model_name='rainfallparameter',
name='omegacash',
),
migrations.RemoveField(
model_name='rainfallparameter',
name='omegaestablish',
),
migrations.RemoveField(
model_name='rainfallparameter',
name='omegalabor',
),
migrations.RemoveField(
model_name='rainfallparameter',
name='omegaland',
),
migrations.RemoveField(
model_name='rainfallparameter',
name='omeganoncash',
),
migrations.RemoveField(
model_name='rainfallparameter',
name='omegasupply',
),
migrations.RemoveField(
model_name='rainfallparameter',
name='omegatotal',
),
migrations.RemoveField(
model_name='result',
name='omegacash',
),
migrations.RemoveField(
model_name='result',
name='omegaestablish',
),
migrations.RemoveField(
model_name='result',
name='omegalabor',
),
migrations.RemoveField(
model_name='result',
name='omegaland',
),
migrations.RemoveField(
model_name='result',
name='omeganoncash',
),
migrations.RemoveField(
model_name='result',
name='omegasupply',
),
migrations.RemoveField(
model_name='result',
name='omegatotal',
),
]
| 25.928571
| 54
| 0.52562
| 126
| 1,815
| 7.428571
| 0.285714
| 0.314103
| 0.388889
| 0.448718
| 0.819444
| 0.819444
| 0
| 0
| 0
| 0
| 0
| 0.026178
| 0.368595
| 1,815
| 69
| 55
| 26.304348
| 0.790576
| 0.023691
| 0
| 0.888889
| 1
| 0
| 0.19661
| 0.012994
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.015873
| 0
| 0.063492
| 0
| 0
| 0
| 0
| null | 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 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
| 7
|
87dcc4137f0a06c29197223392c0842907d6f609
| 143
|
py
|
Python
|
accounts/urls.py
|
imekenye/Awwwards
|
bb495e091c8a81aff172528d233c41c36fc1d2aa
|
[
"Unlicense"
] | null | null | null |
accounts/urls.py
|
imekenye/Awwwards
|
bb495e091c8a81aff172528d233c41c36fc1d2aa
|
[
"Unlicense"
] | 12
|
2020-02-12T00:22:15.000Z
|
2022-03-11T23:47:32.000Z
|
accounts/urls.py
|
imekenye/Awwwards
|
bb495e091c8a81aff172528d233c41c36fc1d2aa
|
[
"Unlicense"
] | null | null | null |
from django.urls import path, include
from accounts import views
from django.conf import settings
from django.conf.urls.static import static
| 20.428571
| 42
| 0.825175
| 22
| 143
| 5.363636
| 0.5
| 0.254237
| 0.237288
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.132867
| 143
| 6
| 43
| 23.833333
| 0.951613
| 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
|
e214ecbd78b450cc85d11bad83e2b724bda80fff
| 111,570
|
py
|
Python
|
boto3_type_annotations_with_docs/boto3_type_annotations/dynamodb/paginator.py
|
cowboygneox/boto3_type_annotations
|
450dce1de4e066b939de7eac2ec560ed1a7ddaa2
|
[
"MIT"
] | 119
|
2018-12-01T18:20:57.000Z
|
2022-02-02T10:31:29.000Z
|
boto3_type_annotations_with_docs/boto3_type_annotations/dynamodb/paginator.py
|
cowboygneox/boto3_type_annotations
|
450dce1de4e066b939de7eac2ec560ed1a7ddaa2
|
[
"MIT"
] | 15
|
2018-11-16T00:16:44.000Z
|
2021-11-13T03:44:18.000Z
|
boto3_type_annotations_with_docs/boto3_type_annotations/dynamodb/paginator.py
|
cowboygneox/boto3_type_annotations
|
450dce1de4e066b939de7eac2ec560ed1a7ddaa2
|
[
"MIT"
] | 11
|
2019-05-06T05:26:51.000Z
|
2021-09-28T15:27:59.000Z
|
from typing import Dict
from datetime import datetime
from typing import List
from botocore.paginate import Paginator
class ListBackups(Paginator):
def paginate(self, TableName: str = None, TimeRangeLowerBound: datetime = None, TimeRangeUpperBound: datetime = None, BackupType: str = None, PaginationConfig: Dict = None) -> Dict:
"""
Creates an iterator that will paginate through responses from :py:meth:`DynamoDB.Client.list_backups`.
See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/dynamodb-2012-08-10/ListBackups>`_
**Request Syntax**
::
response_iterator = paginator.paginate(
TableName='string',
TimeRangeLowerBound=datetime(2015, 1, 1),
TimeRangeUpperBound=datetime(2015, 1, 1),
BackupType='USER'|'SYSTEM'|'AWS_BACKUP'|'ALL',
PaginationConfig={
'MaxItems': 123,
'PageSize': 123,
'StartingToken': 'string'
}
)
**Response Syntax**
::
{
'BackupSummaries': [
{
'TableName': 'string',
'TableId': 'string',
'TableArn': 'string',
'BackupArn': 'string',
'BackupName': 'string',
'BackupCreationDateTime': datetime(2015, 1, 1),
'BackupExpiryDateTime': datetime(2015, 1, 1),
'BackupStatus': 'CREATING'|'DELETED'|'AVAILABLE',
'BackupType': 'USER'|'SYSTEM'|'AWS_BACKUP',
'BackupSizeBytes': 123
},
],
'NextToken': 'string'
}
**Response Structure**
- *(dict) --*
- **BackupSummaries** *(list) --*
List of ``BackupSummary`` objects.
- *(dict) --*
Contains details for the backup.
- **TableName** *(string) --*
Name of the table.
- **TableId** *(string) --*
Unique identifier for the table.
- **TableArn** *(string) --*
ARN associated with the table.
- **BackupArn** *(string) --*
ARN associated with the backup.
- **BackupName** *(string) --*
Name of the specified backup.
- **BackupCreationDateTime** *(datetime) --*
Time at which the backup was created.
- **BackupExpiryDateTime** *(datetime) --*
Time at which the automatic on-demand backup created by DynamoDB will expire. This ``SYSTEM`` on-demand backup expires automatically 35 days after its creation.
- **BackupStatus** *(string) --*
Backup can be in one of the following states: CREATING, ACTIVE, DELETED.
- **BackupType** *(string) --*
BackupType:
* ``USER`` - You create and manage these using the on-demand backup feature.
* ``SYSTEM`` - If you delete a table with point-in-time recovery enabled, a ``SYSTEM`` backup is automatically created and is retained for 35 days (at no additional cost). System backups allow you to restore the deleted table to the state it was in just before the point of deletion.
* ``AWS_BACKUP`` - On-demand backup created by you from AWS Backup service.
- **BackupSizeBytes** *(integer) --*
Size of the backup in bytes.
- **NextToken** *(string) --*
A token to resume pagination.
:type TableName: string
:param TableName:
The backups from the table specified by ``TableName`` are listed.
:type TimeRangeLowerBound: datetime
:param TimeRangeLowerBound:
Only backups created after this time are listed. ``TimeRangeLowerBound`` is inclusive.
:type TimeRangeUpperBound: datetime
:param TimeRangeUpperBound:
Only backups created before this time are listed. ``TimeRangeUpperBound`` is exclusive.
:type BackupType: string
:param BackupType:
The backups from the table specified by ``BackupType`` are listed.
Where ``BackupType`` can be:
* ``USER`` - On-demand backup created by you.
* ``SYSTEM`` - On-demand backup automatically created by DynamoDB.
* ``ALL`` - All types of on-demand backups (USER and SYSTEM).
:type PaginationConfig: dict
:param PaginationConfig:
A dictionary that provides parameters to control pagination.
- **MaxItems** *(integer) --*
The total number of items to return. If the total number of items available is more than the value specified in max-items then a ``NextToken`` will be provided in the output that you can use to resume pagination.
- **PageSize** *(integer) --*
The size of each page.
- **StartingToken** *(string) --*
A token to specify where to start paginating. This is the ``NextToken`` from a previous response.
:rtype: dict
:returns:
"""
pass
class ListTables(Paginator):
def paginate(self, PaginationConfig: Dict = None) -> Dict:
"""
Creates an iterator that will paginate through responses from :py:meth:`DynamoDB.Client.list_tables`.
See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/dynamodb-2012-08-10/ListTables>`_
**Request Syntax**
::
response_iterator = paginator.paginate(
PaginationConfig={
'MaxItems': 123,
'PageSize': 123,
'StartingToken': 'string'
}
)
**Response Syntax**
::
{
'TableNames': [
'string',
],
'NextToken': 'string'
}
**Response Structure**
- *(dict) --*
Represents the output of a ``ListTables`` operation.
- **TableNames** *(list) --*
The names of the tables associated with the current account at the current endpoint. The maximum size of this array is 100.
If ``LastEvaluatedTableName`` also appears in the output, you can use this value as the ``ExclusiveStartTableName`` parameter in a subsequent ``ListTables`` request and obtain the next page of results.
- *(string) --*
- **NextToken** *(string) --*
A token to resume pagination.
:type PaginationConfig: dict
:param PaginationConfig:
A dictionary that provides parameters to control pagination.
- **MaxItems** *(integer) --*
The total number of items to return. If the total number of items available is more than the value specified in max-items then a ``NextToken`` will be provided in the output that you can use to resume pagination.
- **PageSize** *(integer) --*
The size of each page.
- **StartingToken** *(string) --*
A token to specify where to start paginating. This is the ``NextToken`` from a previous response.
:rtype: dict
:returns:
"""
pass
class ListTagsOfResource(Paginator):
def paginate(self, ResourceArn: str, PaginationConfig: Dict = None) -> Dict:
"""
Creates an iterator that will paginate through responses from :py:meth:`DynamoDB.Client.list_tags_of_resource`.
See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/dynamodb-2012-08-10/ListTagsOfResource>`_
**Request Syntax**
::
response_iterator = paginator.paginate(
ResourceArn='string',
PaginationConfig={
'MaxItems': 123,
'PageSize': 123,
'StartingToken': 'string'
}
)
**Response Syntax**
::
{
'Tags': [
{
'Key': 'string',
'Value': 'string'
},
],
}
**Response Structure**
- *(dict) --*
- **Tags** *(list) --*
The tags currently associated with the Amazon DynamoDB resource.
- *(dict) --*
Describes a tag. A tag is a key-value pair. You can add up to 50 tags to a single DynamoDB table.
AWS-assigned tag names and values are automatically assigned the aws: prefix, which the user cannot assign. AWS-assigned tag names do not count towards the tag limit of 50. User-assigned tag names have the prefix user: in the Cost Allocation Report. You cannot backdate the application of a tag.
For an overview on tagging DynamoDB resources, see `Tagging for DynamoDB <https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Tagging.html>`__ in the *Amazon DynamoDB Developer Guide* .
- **Key** *(string) --*
The key of the tag.Tag keys are case sensitive. Each DynamoDB table can only have up to one tag with the same key. If you try to add an existing tag (same key), the existing tag value will be updated to the new value.
- **Value** *(string) --*
The value of the tag. Tag values are case-sensitive and can be null.
:type ResourceArn: string
:param ResourceArn: **[REQUIRED]**
The Amazon DynamoDB resource with tags to be listed. This value is an Amazon Resource Name (ARN).
:type PaginationConfig: dict
:param PaginationConfig:
A dictionary that provides parameters to control pagination.
- **MaxItems** *(integer) --*
The total number of items to return. If the total number of items available is more than the value specified in max-items then a ``NextToken`` will be provided in the output that you can use to resume pagination.
- **PageSize** *(integer) --*
The size of each page.
- **StartingToken** *(string) --*
A token to specify where to start paginating. This is the ``NextToken`` from a previous response.
:rtype: dict
:returns:
"""
pass
class Query(Paginator):
def paginate(self, TableName: str, IndexName: str = None, Select: str = None, AttributesToGet: List = None, ConsistentRead: bool = None, KeyConditions: Dict = None, QueryFilter: Dict = None, ConditionalOperator: str = None, ScanIndexForward: bool = None, ReturnConsumedCapacity: str = None, ProjectionExpression: str = None, FilterExpression: str = None, KeyConditionExpression: str = None, ExpressionAttributeNames: Dict = None, ExpressionAttributeValues: Dict = None, PaginationConfig: Dict = None) -> Dict:
"""
Creates an iterator that will paginate through responses from :py:meth:`DynamoDB.Client.query`.
See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/dynamodb-2012-08-10/Query>`_
**Request Syntax**
::
response_iterator = paginator.paginate(
TableName='string',
IndexName='string',
Select='ALL_ATTRIBUTES'|'ALL_PROJECTED_ATTRIBUTES'|'SPECIFIC_ATTRIBUTES'|'COUNT',
AttributesToGet=[
'string',
],
ConsistentRead=True|False,
KeyConditions={
'string': {
'AttributeValueList': [
{
'S': 'string',
'N': 'string',
'B': b'bytes',
'SS': [
'string',
],
'NS': [
'string',
],
'BS': [
b'bytes',
],
'M': {
'string': {'... recursive ...'}
},
'L': [
{'... recursive ...'},
],
'NULL': True|False,
'BOOL': True|False
},
],
'ComparisonOperator': 'EQ'|'NE'|'IN'|'LE'|'LT'|'GE'|'GT'|'BETWEEN'|'NOT_NULL'|'NULL'|'CONTAINS'|'NOT_CONTAINS'|'BEGINS_WITH'
}
},
QueryFilter={
'string': {
'AttributeValueList': [
{
'S': 'string',
'N': 'string',
'B': b'bytes',
'SS': [
'string',
],
'NS': [
'string',
],
'BS': [
b'bytes',
],
'M': {
'string': {'... recursive ...'}
},
'L': [
{'... recursive ...'},
],
'NULL': True|False,
'BOOL': True|False
},
],
'ComparisonOperator': 'EQ'|'NE'|'IN'|'LE'|'LT'|'GE'|'GT'|'BETWEEN'|'NOT_NULL'|'NULL'|'CONTAINS'|'NOT_CONTAINS'|'BEGINS_WITH'
}
},
ConditionalOperator='AND'|'OR',
ScanIndexForward=True|False,
ReturnConsumedCapacity='INDEXES'|'TOTAL'|'NONE',
ProjectionExpression='string',
FilterExpression='string',
KeyConditionExpression='string',
ExpressionAttributeNames={
'string': 'string'
},
ExpressionAttributeValues={
'string': {
'S': 'string',
'N': 'string',
'B': b'bytes',
'SS': [
'string',
],
'NS': [
'string',
],
'BS': [
b'bytes',
],
'M': {
'string': {'... recursive ...'}
},
'L': [
{'... recursive ...'},
],
'NULL': True|False,
'BOOL': True|False
}
},
PaginationConfig={
'MaxItems': 123,
'PageSize': 123,
'StartingToken': 'string'
}
)
**Response Syntax**
::
{
'Items': [
{
'string': {
'S': 'string',
'N': 'string',
'B': b'bytes',
'SS': [
'string',
],
'NS': [
'string',
],
'BS': [
b'bytes',
],
'M': {
'string': {'... recursive ...'}
},
'L': [
{'... recursive ...'},
],
'NULL': True|False,
'BOOL': True|False
}
},
],
'Count': 123,
'ScannedCount': 123,
'ConsumedCapacity': {
'TableName': 'string',
'CapacityUnits': 123.0,
'ReadCapacityUnits': 123.0,
'WriteCapacityUnits': 123.0,
'Table': {
'ReadCapacityUnits': 123.0,
'WriteCapacityUnits': 123.0,
'CapacityUnits': 123.0
},
'LocalSecondaryIndexes': {
'string': {
'ReadCapacityUnits': 123.0,
'WriteCapacityUnits': 123.0,
'CapacityUnits': 123.0
}
},
'GlobalSecondaryIndexes': {
'string': {
'ReadCapacityUnits': 123.0,
'WriteCapacityUnits': 123.0,
'CapacityUnits': 123.0
}
}
},
'NextToken': 'string'
}
**Response Structure**
- *(dict) --*
Represents the output of a ``Query`` operation.
- **Items** *(list) --*
An array of item attributes that match the query criteria. Each element in this array consists of an attribute name and the value for that attribute.
- *(dict) --*
- *(string) --*
- *(dict) --*
Represents the data for an attribute.
Each attribute value is described as a name-value pair. The name is the data type, and the value is the data itself.
For more information, see `Data Types <https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/HowItWorks.NamingRulesDataTypes.html#HowItWorks.DataTypes>`__ in the *Amazon DynamoDB Developer Guide* .
- **S** *(string) --*
An attribute of type String. For example:
``"S": "Hello"``
- **N** *(string) --*
An attribute of type Number. For example:
``"N": "123.45"``
Numbers are sent across the network to DynamoDB as strings, to maximize compatibility across languages and libraries. However, DynamoDB treats them as number type attributes for mathematical operations.
- **B** *(bytes) --*
An attribute of type Binary. For example:
``"B": "dGhpcyB0ZXh0IGlzIGJhc2U2NC1lbmNvZGVk"``
- **SS** *(list) --*
An attribute of type String Set. For example:
``"SS": ["Giraffe", "Hippo" ,"Zebra"]``
- *(string) --*
- **NS** *(list) --*
An attribute of type Number Set. For example:
``"NS": ["42.2", "-19", "7.5", "3.14"]``
Numbers are sent across the network to DynamoDB as strings, to maximize compatibility across languages and libraries. However, DynamoDB treats them as number type attributes for mathematical operations.
- *(string) --*
- **BS** *(list) --*
An attribute of type Binary Set. For example:
``"BS": ["U3Vubnk=", "UmFpbnk=", "U25vd3k="]``
- *(bytes) --*
- **M** *(dict) --*
An attribute of type Map. For example:
``"M": {"Name": {"S": "Joe"}, "Age": {"N": "35"}}``
- *(string) --*
- *(dict) --*
Represents the data for an attribute.
Each attribute value is described as a name-value pair. The name is the data type, and the value is the data itself.
For more information, see `Data Types <https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/HowItWorks.NamingRulesDataTypes.html#HowItWorks.DataTypes>`__ in the *Amazon DynamoDB Developer Guide* .
- **L** *(list) --*
An attribute of type List. For example:
``"L": [ {"S": "Cookies"} , {"S": "Coffee"}, {"N", "3.14159"}]``
- *(dict) --*
Represents the data for an attribute.
Each attribute value is described as a name-value pair. The name is the data type, and the value is the data itself.
For more information, see `Data Types <https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/HowItWorks.NamingRulesDataTypes.html#HowItWorks.DataTypes>`__ in the *Amazon DynamoDB Developer Guide* .
- **NULL** *(boolean) --*
An attribute of type Null. For example:
``"NULL": true``
- **BOOL** *(boolean) --*
An attribute of type Boolean. For example:
``"BOOL": true``
- **Count** *(integer) --*
The number of items in the response.
If you used a ``QueryFilter`` in the request, then ``Count`` is the number of items returned after the filter was applied, and ``ScannedCount`` is the number of matching items before the filter was applied.
If you did not use a filter in the request, then ``Count`` and ``ScannedCount`` are the same.
- **ScannedCount** *(integer) --*
The number of items evaluated, before any ``QueryFilter`` is applied. A high ``ScannedCount`` value with few, or no, ``Count`` results indicates an inefficient ``Query`` operation. For more information, see `Count and ScannedCount <https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/QueryAndScan.html#Count>`__ in the *Amazon DynamoDB Developer Guide* .
If you did not use a filter in the request, then ``ScannedCount`` is the same as ``Count`` .
- **ConsumedCapacity** *(dict) --*
The capacity units consumed by the ``Query`` operation. The data returned includes the total provisioned throughput consumed, along with statistics for the table and any indexes involved in the operation. ``ConsumedCapacity`` is only returned if the ``ReturnConsumedCapacity`` parameter was specified For more information, see `Provisioned Throughput <https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/ProvisionedThroughputIntro.html>`__ in the *Amazon DynamoDB Developer Guide* .
- **TableName** *(string) --*
The name of the table that was affected by the operation.
- **CapacityUnits** *(float) --*
The total number of capacity units consumed by the operation.
- **ReadCapacityUnits** *(float) --*
The total number of read capacity units consumed by the operation.
- **WriteCapacityUnits** *(float) --*
The total number of write capacity units consumed by the operation.
- **Table** *(dict) --*
The amount of throughput consumed on the table affected by the operation.
- **ReadCapacityUnits** *(float) --*
The total number of read capacity units consumed on a table or an index.
- **WriteCapacityUnits** *(float) --*
The total number of write capacity units consumed on a table or an index.
- **CapacityUnits** *(float) --*
The total number of capacity units consumed on a table or an index.
- **LocalSecondaryIndexes** *(dict) --*
The amount of throughput consumed on each local index affected by the operation.
- *(string) --*
- *(dict) --*
Represents the amount of provisioned throughput capacity consumed on a table or an index.
- **ReadCapacityUnits** *(float) --*
The total number of read capacity units consumed on a table or an index.
- **WriteCapacityUnits** *(float) --*
The total number of write capacity units consumed on a table or an index.
- **CapacityUnits** *(float) --*
The total number of capacity units consumed on a table or an index.
- **GlobalSecondaryIndexes** *(dict) --*
The amount of throughput consumed on each global index affected by the operation.
- *(string) --*
- *(dict) --*
Represents the amount of provisioned throughput capacity consumed on a table or an index.
- **ReadCapacityUnits** *(float) --*
The total number of read capacity units consumed on a table or an index.
- **WriteCapacityUnits** *(float) --*
The total number of write capacity units consumed on a table or an index.
- **CapacityUnits** *(float) --*
The total number of capacity units consumed on a table or an index.
- **NextToken** *(string) --*
A token to resume pagination.
:type TableName: string
:param TableName: **[REQUIRED]**
The name of the table containing the requested items.
:type IndexName: string
:param IndexName:
The name of an index to query. This index can be any local secondary index or global secondary index on the table. Note that if you use the ``IndexName`` parameter, you must also provide ``TableName.``
:type Select: string
:param Select:
The attributes to be returned in the result. You can retrieve all item attributes, specific item attributes, the count of matching items, or in the case of an index, some or all of the attributes projected into the index.
* ``ALL_ATTRIBUTES`` - Returns all of the item attributes from the specified table or index. If you query a local secondary index, then for each matching item in the index DynamoDB will fetch the entire item from the parent table. If the index is configured to project all item attributes, then all of the data can be obtained from the local secondary index, and no fetching is required.
* ``ALL_PROJECTED_ATTRIBUTES`` - Allowed only when querying an index. Retrieves all attributes that have been projected into the index. If the index is configured to project all attributes, this return value is equivalent to specifying ``ALL_ATTRIBUTES`` .
* ``COUNT`` - Returns the number of matching items, rather than the matching items themselves.
* ``SPECIFIC_ATTRIBUTES`` - Returns only the attributes listed in ``AttributesToGet`` . This return value is equivalent to specifying ``AttributesToGet`` without specifying any value for ``Select`` . If you query or scan a local secondary index and request only attributes that are projected into that index, the operation will read only the index and not the table. If any of the requested attributes are not projected into the local secondary index, DynamoDB will fetch each of these attributes from the parent table. This extra fetching incurs additional throughput cost and latency. If you query or scan a global secondary index, you can only request attributes that are projected into the index. Global secondary index queries cannot fetch attributes from the parent table.
If neither ``Select`` nor ``AttributesToGet`` are specified, DynamoDB defaults to ``ALL_ATTRIBUTES`` when accessing a table, and ``ALL_PROJECTED_ATTRIBUTES`` when accessing an index. You cannot use both ``Select`` and ``AttributesToGet`` together in a single request, unless the value for ``Select`` is ``SPECIFIC_ATTRIBUTES`` . (This usage is equivalent to specifying ``AttributesToGet`` without any value for ``Select`` .)
.. note::
If you use the ``ProjectionExpression`` parameter, then the value for ``Select`` can only be ``SPECIFIC_ATTRIBUTES`` . Any other value for ``Select`` will return an error.
:type AttributesToGet: list
:param AttributesToGet:
This is a legacy parameter. Use ``ProjectionExpression`` instead. For more information, see `AttributesToGet <https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/LegacyConditionalParameters.AttributesToGet.html>`__ in the *Amazon DynamoDB Developer Guide* .
- *(string) --*
:type ConsistentRead: boolean
:param ConsistentRead:
Determines the read consistency model: If set to ``true`` , then the operation uses strongly consistent reads; otherwise, the operation uses eventually consistent reads.
Strongly consistent reads are not supported on global secondary indexes. If you query a global secondary index with ``ConsistentRead`` set to ``true`` , you will receive a ``ValidationException`` .
:type KeyConditions: dict
:param KeyConditions:
This is a legacy parameter. Use ``KeyConditionExpression`` instead. For more information, see `KeyConditions <https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/LegacyConditionalParameters.KeyConditions.html>`__ in the *Amazon DynamoDB Developer Guide* .
- *(string) --*
- *(dict) --*
Represents the selection criteria for a ``Query`` or ``Scan`` operation:
* For a ``Query`` operation, ``Condition`` is used for specifying the ``KeyConditions`` to use when querying a table or an index. For ``KeyConditions`` , only the following comparison operators are supported: ``EQ | LE | LT | GE | GT | BEGINS_WITH | BETWEEN`` ``Condition`` is also used in a ``QueryFilter`` , which evaluates the query results and returns only the desired values.
* For a ``Scan`` operation, ``Condition`` is used in a ``ScanFilter`` , which evaluates the scan results and returns only the desired values.
- **AttributeValueList** *(list) --*
One or more values to evaluate against the supplied attribute. The number of values in the list depends on the ``ComparisonOperator`` being used.
For type Number, value comparisons are numeric.
String value comparisons for greater than, equals, or less than are based on ASCII character code values. For example, ``a`` is greater than ``A`` , and ``a`` is greater than ``B`` . For a list of code values, see `http\://en.wikipedia.org/wiki/ASCII#ASCII_printable_characters <http://en.wikipedia.org/wiki/ASCII#ASCII_printable_characters>`__ .
For Binary, DynamoDB treats each byte of the binary data as unsigned when it compares binary values.
- *(dict) --*
Represents the data for an attribute.
Each attribute value is described as a name-value pair. The name is the data type, and the value is the data itself.
For more information, see `Data Types <https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/HowItWorks.NamingRulesDataTypes.html#HowItWorks.DataTypes>`__ in the *Amazon DynamoDB Developer Guide* .
- **S** *(string) --*
An attribute of type String. For example:
``\"S\": \"Hello\"``
- **N** *(string) --*
An attribute of type Number. For example:
``\"N\": \"123.45\"``
Numbers are sent across the network to DynamoDB as strings, to maximize compatibility across languages and libraries. However, DynamoDB treats them as number type attributes for mathematical operations.
- **B** *(bytes) --*
An attribute of type Binary. For example:
``\"B\": \"dGhpcyB0ZXh0IGlzIGJhc2U2NC1lbmNvZGVk\"``
- **SS** *(list) --*
An attribute of type String Set. For example:
``\"SS\": [\"Giraffe\", \"Hippo\" ,\"Zebra\"]``
- *(string) --*
- **NS** *(list) --*
An attribute of type Number Set. For example:
``\"NS\": [\"42.2\", \"-19\", \"7.5\", \"3.14\"]``
Numbers are sent across the network to DynamoDB as strings, to maximize compatibility across languages and libraries. However, DynamoDB treats them as number type attributes for mathematical operations.
- *(string) --*
- **BS** *(list) --*
An attribute of type Binary Set. For example:
``\"BS\": [\"U3Vubnk=\", \"UmFpbnk=\", \"U25vd3k=\"]``
- *(bytes) --*
- **M** *(dict) --*
An attribute of type Map. For example:
``\"M\": {\"Name\": {\"S\": \"Joe\"}, \"Age\": {\"N\": \"35\"}}``
- *(string) --*
- *(dict) --*
Represents the data for an attribute.
Each attribute value is described as a name-value pair. The name is the data type, and the value is the data itself.
For more information, see `Data Types <https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/HowItWorks.NamingRulesDataTypes.html#HowItWorks.DataTypes>`__ in the *Amazon DynamoDB Developer Guide* .
- **L** *(list) --*
An attribute of type List. For example:
``\"L\": [ {\"S\": \"Cookies\"} , {\"S\": \"Coffee\"}, {\"N\", \"3.14159\"}]``
- *(dict) --*
Represents the data for an attribute.
Each attribute value is described as a name-value pair. The name is the data type, and the value is the data itself.
For more information, see `Data Types <https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/HowItWorks.NamingRulesDataTypes.html#HowItWorks.DataTypes>`__ in the *Amazon DynamoDB Developer Guide* .
- **NULL** *(boolean) --*
An attribute of type Null. For example:
``\"NULL\": true``
- **BOOL** *(boolean) --*
An attribute of type Boolean. For example:
``\"BOOL\": true``
- **ComparisonOperator** *(string) --* **[REQUIRED]**
A comparator for evaluating attributes. For example, equals, greater than, less than, etc.
The following comparison operators are available:
``EQ | NE | LE | LT | GE | GT | NOT_NULL | NULL | CONTAINS | NOT_CONTAINS | BEGINS_WITH | IN | BETWEEN``
The following are descriptions of each comparison operator.
* ``EQ`` : Equal. ``EQ`` is supported for all data types, including lists and maps. ``AttributeValueList`` can contain only one ``AttributeValue`` element of type String, Number, Binary, String Set, Number Set, or Binary Set. If an item contains an ``AttributeValue`` element of a different type than the one provided in the request, the value does not match. For example, ``{\"S\":\"6\"}`` does not equal ``{\"N\":\"6\"}`` . Also, ``{\"N\":\"6\"}`` does not equal ``{\"NS\":[\"6\", \"2\", \"1\"]}`` .
* ``NE`` : Not equal. ``NE`` is supported for all data types, including lists and maps. ``AttributeValueList`` can contain only one ``AttributeValue`` of type String, Number, Binary, String Set, Number Set, or Binary Set. If an item contains an ``AttributeValue`` of a different type than the one provided in the request, the value does not match. For example, ``{\"S\":\"6\"}`` does not equal ``{\"N\":\"6\"}`` . Also, ``{\"N\":\"6\"}`` does not equal ``{\"NS\":[\"6\", \"2\", \"1\"]}`` .
* ``LE`` : Less than or equal. ``AttributeValueList`` can contain only one ``AttributeValue`` element of type String, Number, or Binary (not a set type). If an item contains an ``AttributeValue`` element of a different type than the one provided in the request, the value does not match. For example, ``{\"S\":\"6\"}`` does not equal ``{\"N\":\"6\"}`` . Also, ``{\"N\":\"6\"}`` does not compare to ``{\"NS\":[\"6\", \"2\", \"1\"]}`` .
* ``LT`` : Less than. ``AttributeValueList`` can contain only one ``AttributeValue`` of type String, Number, or Binary (not a set type). If an item contains an ``AttributeValue`` element of a different type than the one provided in the request, the value does not match. For example, ``{\"S\":\"6\"}`` does not equal ``{\"N\":\"6\"}`` . Also, ``{\"N\":\"6\"}`` does not compare to ``{\"NS\":[\"6\", \"2\", \"1\"]}`` .
* ``GE`` : Greater than or equal. ``AttributeValueList`` can contain only one ``AttributeValue`` element of type String, Number, or Binary (not a set type). If an item contains an ``AttributeValue`` element of a different type than the one provided in the request, the value does not match. For example, ``{\"S\":\"6\"}`` does not equal ``{\"N\":\"6\"}`` . Also, ``{\"N\":\"6\"}`` does not compare to ``{\"NS\":[\"6\", \"2\", \"1\"]}`` .
* ``GT`` : Greater than. ``AttributeValueList`` can contain only one ``AttributeValue`` element of type String, Number, or Binary (not a set type). If an item contains an ``AttributeValue`` element of a different type than the one provided in the request, the value does not match. For example, ``{\"S\":\"6\"}`` does not equal ``{\"N\":\"6\"}`` . Also, ``{\"N\":\"6\"}`` does not compare to ``{\"NS\":[\"6\", \"2\", \"1\"]}`` .
* ``NOT_NULL`` : The attribute exists. ``NOT_NULL`` is supported for all data types, including lists and maps.
.. note::
This operator tests for the existence of an attribute, not its data type. If the data type of attribute \"``a`` \" is null, and you evaluate it using ``NOT_NULL`` , the result is a Boolean ``true`` . This result is because the attribute \"``a`` \" exists; its data type is not relevant to the ``NOT_NULL`` comparison operator.
* ``NULL`` : The attribute does not exist. ``NULL`` is supported for all data types, including lists and maps.
.. note::
This operator tests for the nonexistence of an attribute, not its data type. If the data type of attribute \"``a`` \" is null, and you evaluate it using ``NULL`` , the result is a Boolean ``false`` . This is because the attribute \"``a`` \" exists; its data type is not relevant to the ``NULL`` comparison operator.
* ``CONTAINS`` : Checks for a subsequence, or value in a set. ``AttributeValueList`` can contain only one ``AttributeValue`` element of type String, Number, or Binary (not a set type). If the target attribute of the comparison is of type String, then the operator checks for a substring match. If the target attribute of the comparison is of type Binary, then the operator looks for a subsequence of the target that matches the input. If the target attribute of the comparison is a set (\"``SS`` \", \"``NS`` \", or \"``BS`` \"), then the operator evaluates to true if it finds an exact match with any member of the set. CONTAINS is supported for lists: When evaluating \"``a CONTAINS b`` \", \"``a`` \" can be a list; however, \"``b`` \" cannot be a set, a map, or a list.
* ``NOT_CONTAINS`` : Checks for absence of a subsequence, or absence of a value in a set. ``AttributeValueList`` can contain only one ``AttributeValue`` element of type String, Number, or Binary (not a set type). If the target attribute of the comparison is a String, then the operator checks for the absence of a substring match. If the target attribute of the comparison is Binary, then the operator checks for the absence of a subsequence of the target that matches the input. If the target attribute of the comparison is a set (\"``SS`` \", \"``NS`` \", or \"``BS`` \"), then the operator evaluates to true if it *does not* find an exact match with any member of the set. NOT_CONTAINS is supported for lists: When evaluating \"``a NOT CONTAINS b`` \", \"``a`` \" can be a list; however, \"``b`` \" cannot be a set, a map, or a list.
* ``BEGINS_WITH`` : Checks for a prefix. ``AttributeValueList`` can contain only one ``AttributeValue`` of type String or Binary (not a Number or a set type). The target attribute of the comparison must be of type String or Binary (not a Number or a set type).
* ``IN`` : Checks for matching elements in a list. ``AttributeValueList`` can contain one or more ``AttributeValue`` elements of type String, Number, or Binary. These attributes are compared against an existing attribute of an item. If any elements of the input are equal to the item attribute, the expression evaluates to true.
* ``BETWEEN`` : Greater than or equal to the first value, and less than or equal to the second value. ``AttributeValueList`` must contain two ``AttributeValue`` elements of the same type, either String, Number, or Binary (not a set type). A target attribute matches if the target value is greater than, or equal to, the first element and less than, or equal to, the second element. If an item contains an ``AttributeValue`` element of a different type than the one provided in the request, the value does not match. For example, ``{\"S\":\"6\"}`` does not compare to ``{\"N\":\"6\"}`` . Also, ``{\"N\":\"6\"}`` does not compare to ``{\"NS\":[\"6\", \"2\", \"1\"]}``
For usage examples of ``AttributeValueList`` and ``ComparisonOperator`` , see `Legacy Conditional Parameters <https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/LegacyConditionalParameters.html>`__ in the *Amazon DynamoDB Developer Guide* .
:type QueryFilter: dict
:param QueryFilter:
This is a legacy parameter. Use ``FilterExpression`` instead. For more information, see `QueryFilter <https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/LegacyConditionalParameters.QueryFilter.html>`__ in the *Amazon DynamoDB Developer Guide* .
- *(string) --*
- *(dict) --*
Represents the selection criteria for a ``Query`` or ``Scan`` operation:
* For a ``Query`` operation, ``Condition`` is used for specifying the ``KeyConditions`` to use when querying a table or an index. For ``KeyConditions`` , only the following comparison operators are supported: ``EQ | LE | LT | GE | GT | BEGINS_WITH | BETWEEN`` ``Condition`` is also used in a ``QueryFilter`` , which evaluates the query results and returns only the desired values.
* For a ``Scan`` operation, ``Condition`` is used in a ``ScanFilter`` , which evaluates the scan results and returns only the desired values.
- **AttributeValueList** *(list) --*
One or more values to evaluate against the supplied attribute. The number of values in the list depends on the ``ComparisonOperator`` being used.
For type Number, value comparisons are numeric.
String value comparisons for greater than, equals, or less than are based on ASCII character code values. For example, ``a`` is greater than ``A`` , and ``a`` is greater than ``B`` . For a list of code values, see `http\://en.wikipedia.org/wiki/ASCII#ASCII_printable_characters <http://en.wikipedia.org/wiki/ASCII#ASCII_printable_characters>`__ .
For Binary, DynamoDB treats each byte of the binary data as unsigned when it compares binary values.
- *(dict) --*
Represents the data for an attribute.
Each attribute value is described as a name-value pair. The name is the data type, and the value is the data itself.
For more information, see `Data Types <https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/HowItWorks.NamingRulesDataTypes.html#HowItWorks.DataTypes>`__ in the *Amazon DynamoDB Developer Guide* .
- **S** *(string) --*
An attribute of type String. For example:
``\"S\": \"Hello\"``
- **N** *(string) --*
An attribute of type Number. For example:
``\"N\": \"123.45\"``
Numbers are sent across the network to DynamoDB as strings, to maximize compatibility across languages and libraries. However, DynamoDB treats them as number type attributes for mathematical operations.
- **B** *(bytes) --*
An attribute of type Binary. For example:
``\"B\": \"dGhpcyB0ZXh0IGlzIGJhc2U2NC1lbmNvZGVk\"``
- **SS** *(list) --*
An attribute of type String Set. For example:
``\"SS\": [\"Giraffe\", \"Hippo\" ,\"Zebra\"]``
- *(string) --*
- **NS** *(list) --*
An attribute of type Number Set. For example:
``\"NS\": [\"42.2\", \"-19\", \"7.5\", \"3.14\"]``
Numbers are sent across the network to DynamoDB as strings, to maximize compatibility across languages and libraries. However, DynamoDB treats them as number type attributes for mathematical operations.
- *(string) --*
- **BS** *(list) --*
An attribute of type Binary Set. For example:
``\"BS\": [\"U3Vubnk=\", \"UmFpbnk=\", \"U25vd3k=\"]``
- *(bytes) --*
- **M** *(dict) --*
An attribute of type Map. For example:
``\"M\": {\"Name\": {\"S\": \"Joe\"}, \"Age\": {\"N\": \"35\"}}``
- *(string) --*
- *(dict) --*
Represents the data for an attribute.
Each attribute value is described as a name-value pair. The name is the data type, and the value is the data itself.
For more information, see `Data Types <https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/HowItWorks.NamingRulesDataTypes.html#HowItWorks.DataTypes>`__ in the *Amazon DynamoDB Developer Guide* .
- **L** *(list) --*
An attribute of type List. For example:
``\"L\": [ {\"S\": \"Cookies\"} , {\"S\": \"Coffee\"}, {\"N\", \"3.14159\"}]``
- *(dict) --*
Represents the data for an attribute.
Each attribute value is described as a name-value pair. The name is the data type, and the value is the data itself.
For more information, see `Data Types <https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/HowItWorks.NamingRulesDataTypes.html#HowItWorks.DataTypes>`__ in the *Amazon DynamoDB Developer Guide* .
- **NULL** *(boolean) --*
An attribute of type Null. For example:
``\"NULL\": true``
- **BOOL** *(boolean) --*
An attribute of type Boolean. For example:
``\"BOOL\": true``
- **ComparisonOperator** *(string) --* **[REQUIRED]**
A comparator for evaluating attributes. For example, equals, greater than, less than, etc.
The following comparison operators are available:
``EQ | NE | LE | LT | GE | GT | NOT_NULL | NULL | CONTAINS | NOT_CONTAINS | BEGINS_WITH | IN | BETWEEN``
The following are descriptions of each comparison operator.
* ``EQ`` : Equal. ``EQ`` is supported for all data types, including lists and maps. ``AttributeValueList`` can contain only one ``AttributeValue`` element of type String, Number, Binary, String Set, Number Set, or Binary Set. If an item contains an ``AttributeValue`` element of a different type than the one provided in the request, the value does not match. For example, ``{\"S\":\"6\"}`` does not equal ``{\"N\":\"6\"}`` . Also, ``{\"N\":\"6\"}`` does not equal ``{\"NS\":[\"6\", \"2\", \"1\"]}`` .
* ``NE`` : Not equal. ``NE`` is supported for all data types, including lists and maps. ``AttributeValueList`` can contain only one ``AttributeValue`` of type String, Number, Binary, String Set, Number Set, or Binary Set. If an item contains an ``AttributeValue`` of a different type than the one provided in the request, the value does not match. For example, ``{\"S\":\"6\"}`` does not equal ``{\"N\":\"6\"}`` . Also, ``{\"N\":\"6\"}`` does not equal ``{\"NS\":[\"6\", \"2\", \"1\"]}`` .
* ``LE`` : Less than or equal. ``AttributeValueList`` can contain only one ``AttributeValue`` element of type String, Number, or Binary (not a set type). If an item contains an ``AttributeValue`` element of a different type than the one provided in the request, the value does not match. For example, ``{\"S\":\"6\"}`` does not equal ``{\"N\":\"6\"}`` . Also, ``{\"N\":\"6\"}`` does not compare to ``{\"NS\":[\"6\", \"2\", \"1\"]}`` .
* ``LT`` : Less than. ``AttributeValueList`` can contain only one ``AttributeValue`` of type String, Number, or Binary (not a set type). If an item contains an ``AttributeValue`` element of a different type than the one provided in the request, the value does not match. For example, ``{\"S\":\"6\"}`` does not equal ``{\"N\":\"6\"}`` . Also, ``{\"N\":\"6\"}`` does not compare to ``{\"NS\":[\"6\", \"2\", \"1\"]}`` .
* ``GE`` : Greater than or equal. ``AttributeValueList`` can contain only one ``AttributeValue`` element of type String, Number, or Binary (not a set type). If an item contains an ``AttributeValue`` element of a different type than the one provided in the request, the value does not match. For example, ``{\"S\":\"6\"}`` does not equal ``{\"N\":\"6\"}`` . Also, ``{\"N\":\"6\"}`` does not compare to ``{\"NS\":[\"6\", \"2\", \"1\"]}`` .
* ``GT`` : Greater than. ``AttributeValueList`` can contain only one ``AttributeValue`` element of type String, Number, or Binary (not a set type). If an item contains an ``AttributeValue`` element of a different type than the one provided in the request, the value does not match. For example, ``{\"S\":\"6\"}`` does not equal ``{\"N\":\"6\"}`` . Also, ``{\"N\":\"6\"}`` does not compare to ``{\"NS\":[\"6\", \"2\", \"1\"]}`` .
* ``NOT_NULL`` : The attribute exists. ``NOT_NULL`` is supported for all data types, including lists and maps.
.. note::
This operator tests for the existence of an attribute, not its data type. If the data type of attribute \"``a`` \" is null, and you evaluate it using ``NOT_NULL`` , the result is a Boolean ``true`` . This result is because the attribute \"``a`` \" exists; its data type is not relevant to the ``NOT_NULL`` comparison operator.
* ``NULL`` : The attribute does not exist. ``NULL`` is supported for all data types, including lists and maps.
.. note::
This operator tests for the nonexistence of an attribute, not its data type. If the data type of attribute \"``a`` \" is null, and you evaluate it using ``NULL`` , the result is a Boolean ``false`` . This is because the attribute \"``a`` \" exists; its data type is not relevant to the ``NULL`` comparison operator.
* ``CONTAINS`` : Checks for a subsequence, or value in a set. ``AttributeValueList`` can contain only one ``AttributeValue`` element of type String, Number, or Binary (not a set type). If the target attribute of the comparison is of type String, then the operator checks for a substring match. If the target attribute of the comparison is of type Binary, then the operator looks for a subsequence of the target that matches the input. If the target attribute of the comparison is a set (\"``SS`` \", \"``NS`` \", or \"``BS`` \"), then the operator evaluates to true if it finds an exact match with any member of the set. CONTAINS is supported for lists: When evaluating \"``a CONTAINS b`` \", \"``a`` \" can be a list; however, \"``b`` \" cannot be a set, a map, or a list.
* ``NOT_CONTAINS`` : Checks for absence of a subsequence, or absence of a value in a set. ``AttributeValueList`` can contain only one ``AttributeValue`` element of type String, Number, or Binary (not a set type). If the target attribute of the comparison is a String, then the operator checks for the absence of a substring match. If the target attribute of the comparison is Binary, then the operator checks for the absence of a subsequence of the target that matches the input. If the target attribute of the comparison is a set (\"``SS`` \", \"``NS`` \", or \"``BS`` \"), then the operator evaluates to true if it *does not* find an exact match with any member of the set. NOT_CONTAINS is supported for lists: When evaluating \"``a NOT CONTAINS b`` \", \"``a`` \" can be a list; however, \"``b`` \" cannot be a set, a map, or a list.
* ``BEGINS_WITH`` : Checks for a prefix. ``AttributeValueList`` can contain only one ``AttributeValue`` of type String or Binary (not a Number or a set type). The target attribute of the comparison must be of type String or Binary (not a Number or a set type).
* ``IN`` : Checks for matching elements in a list. ``AttributeValueList`` can contain one or more ``AttributeValue`` elements of type String, Number, or Binary. These attributes are compared against an existing attribute of an item. If any elements of the input are equal to the item attribute, the expression evaluates to true.
* ``BETWEEN`` : Greater than or equal to the first value, and less than or equal to the second value. ``AttributeValueList`` must contain two ``AttributeValue`` elements of the same type, either String, Number, or Binary (not a set type). A target attribute matches if the target value is greater than, or equal to, the first element and less than, or equal to, the second element. If an item contains an ``AttributeValue`` element of a different type than the one provided in the request, the value does not match. For example, ``{\"S\":\"6\"}`` does not compare to ``{\"N\":\"6\"}`` . Also, ``{\"N\":\"6\"}`` does not compare to ``{\"NS\":[\"6\", \"2\", \"1\"]}``
For usage examples of ``AttributeValueList`` and ``ComparisonOperator`` , see `Legacy Conditional Parameters <https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/LegacyConditionalParameters.html>`__ in the *Amazon DynamoDB Developer Guide* .
:type ConditionalOperator: string
:param ConditionalOperator:
This is a legacy parameter. Use ``FilterExpression`` instead. For more information, see `ConditionalOperator <https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/LegacyConditionalParameters.ConditionalOperator.html>`__ in the *Amazon DynamoDB Developer Guide* .
:type ScanIndexForward: boolean
:param ScanIndexForward:
Specifies the order for index traversal: If ``true`` (default), the traversal is performed in ascending order; if ``false`` , the traversal is performed in descending order.
Items with the same partition key value are stored in sorted order by sort key. If the sort key data type is Number, the results are stored in numeric order. For type String, the results are stored in order of UTF-8 bytes. For type Binary, DynamoDB treats each byte of the binary data as unsigned.
If ``ScanIndexForward`` is ``true`` , DynamoDB returns the results in the order in which they are stored (by sort key value). This is the default behavior. If ``ScanIndexForward`` is ``false`` , DynamoDB reads the results in reverse order by sort key value, and then returns the results to the client.
:type ReturnConsumedCapacity: string
:param ReturnConsumedCapacity:
Determines the level of detail about provisioned throughput consumption that is returned in the response:
* ``INDEXES`` - The response includes the aggregate ``ConsumedCapacity`` for the operation, together with ``ConsumedCapacity`` for each table and secondary index that was accessed. Note that some operations, such as ``GetItem`` and ``BatchGetItem`` , do not access any indexes at all. In these cases, specifying ``INDEXES`` will only return ``ConsumedCapacity`` information for table(s).
* ``TOTAL`` - The response includes only the aggregate ``ConsumedCapacity`` for the operation.
* ``NONE`` - No ``ConsumedCapacity`` details are included in the response.
:type ProjectionExpression: string
:param ProjectionExpression:
A string that identifies one or more attributes to retrieve from the table. These attributes can include scalars, sets, or elements of a JSON document. The attributes in the expression must be separated by commas.
If no attribute names are specified, then all attributes will be returned. If any of the requested attributes are not found, they will not appear in the result.
For more information, see `Accessing Item Attributes <https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Expressions.AccessingItemAttributes.html>`__ in the *Amazon DynamoDB Developer Guide* .
:type FilterExpression: string
:param FilterExpression:
A string that contains conditions that DynamoDB applies after the ``Query`` operation, but before the data is returned to you. Items that do not satisfy the ``FilterExpression`` criteria are not returned.
A ``FilterExpression`` does not allow key attributes. You cannot define a filter expression based on a partition key or a sort key.
.. note::
A ``FilterExpression`` is applied after the items have already been read; the process of filtering does not consume any additional read capacity units.
For more information, see `Filter Expressions <https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/QueryAndScan.html#FilteringResults>`__ in the *Amazon DynamoDB Developer Guide* .
:type KeyConditionExpression: string
:param KeyConditionExpression:
The condition that specifies the key value(s) for items to be retrieved by the ``Query`` action.
The condition must perform an equality test on a single partition key value.
The condition can optionally perform one of several comparison tests on a single sort key value. This allows ``Query`` to retrieve one item with a given partition key value and sort key value, or several items that have the same partition key value but different sort key values.
The partition key equality test is required, and must be specified in the following format:
``partitionKeyName`` *=* ``:partitionkeyval``
If you also want to provide a condition for the sort key, it must be combined using ``AND`` with the condition for the sort key. Following is an example, using the **=** comparison operator for the sort key:
``partitionKeyName`` ``=`` ``:partitionkeyval`` ``AND`` ``sortKeyName`` ``=`` ``:sortkeyval``
Valid comparisons for the sort key condition are as follows:
* ``sortKeyName`` ``=`` ``:sortkeyval`` - true if the sort key value is equal to ``:sortkeyval`` .
* ``sortKeyName`` ``<`` ``:sortkeyval`` - true if the sort key value is less than ``:sortkeyval`` .
* ``sortKeyName`` ``<=`` ``:sortkeyval`` - true if the sort key value is less than or equal to ``:sortkeyval`` .
* ``sortKeyName`` ``>`` ``:sortkeyval`` - true if the sort key value is greater than ``:sortkeyval`` .
* ``sortKeyName`` ``>=`` ``:sortkeyval`` - true if the sort key value is greater than or equal to ``:sortkeyval`` .
* ``sortKeyName`` ``BETWEEN`` ``:sortkeyval1`` ``AND`` ``:sortkeyval2`` - true if the sort key value is greater than or equal to ``:sortkeyval1`` , and less than or equal to ``:sortkeyval2`` .
* ``begins_with (`` ``sortKeyName`` , ``:sortkeyval`` ``)`` - true if the sort key value begins with a particular operand. (You cannot use this function with a sort key that is of type Number.) Note that the function name ``begins_with`` is case-sensitive.
Use the ``ExpressionAttributeValues`` parameter to replace tokens such as ``:partitionval`` and ``:sortval`` with actual values at runtime.
You can optionally use the ``ExpressionAttributeNames`` parameter to replace the names of the partition key and sort key with placeholder tokens. This option might be necessary if an attribute name conflicts with a DynamoDB reserved word. For example, the following ``KeyConditionExpression`` parameter causes an error because *Size* is a reserved word:
* ``Size = :myval``
To work around this, define a placeholder (such a ``#S`` ) to represent the attribute name *Size* . ``KeyConditionExpression`` then is as follows:
* ``#S = :myval``
For a list of reserved words, see `Reserved Words <https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/ReservedWords.html>`__ in the *Amazon DynamoDB Developer Guide* .
For more information on ``ExpressionAttributeNames`` and ``ExpressionAttributeValues`` , see `Using Placeholders for Attribute Names and Values <https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/ExpressionPlaceholders.html>`__ in the *Amazon DynamoDB Developer Guide* .
:type ExpressionAttributeNames: dict
:param ExpressionAttributeNames:
One or more substitution tokens for attribute names in an expression. The following are some use cases for using ``ExpressionAttributeNames`` :
* To access an attribute whose name conflicts with a DynamoDB reserved word.
* To create a placeholder for repeating occurrences of an attribute name in an expression.
* To prevent special characters in an attribute name from being misinterpreted in an expression.
Use the **#** character in an expression to dereference an attribute name. For example, consider the following attribute name:
* ``Percentile``
The name of this attribute conflicts with a reserved word, so it cannot be used directly in an expression. (For the complete list of reserved words, see `Reserved Words <https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/ReservedWords.html>`__ in the *Amazon DynamoDB Developer Guide* ). To work around this, you could specify the following for ``ExpressionAttributeNames`` :
* ``{\"#P\":\"Percentile\"}``
You could then use this substitution in an expression, as in this example:
* ``#P = :val``
.. note::
Tokens that begin with the **:** character are *expression attribute values* , which are placeholders for the actual value at runtime.
For more information on expression attribute names, see `Accessing Item Attributes <https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Expressions.AccessingItemAttributes.html>`__ in the *Amazon DynamoDB Developer Guide* .
- *(string) --*
- *(string) --*
:type ExpressionAttributeValues: dict
:param ExpressionAttributeValues:
One or more values that can be substituted in an expression.
Use the **:** (colon) character in an expression to dereference an attribute value. For example, suppose that you wanted to check whether the value of the *ProductStatus* attribute was one of the following:
``Available | Backordered | Discontinued``
You would first need to specify ``ExpressionAttributeValues`` as follows:
``{ \":avail\":{\"S\":\"Available\"}, \":back\":{\"S\":\"Backordered\"}, \":disc\":{\"S\":\"Discontinued\"} }``
You could then use these values in an expression, such as this:
``ProductStatus IN (:avail, :back, :disc)``
For more information on expression attribute values, see `Specifying Conditions <https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Expressions.SpecifyingConditions.html>`__ in the *Amazon DynamoDB Developer Guide* .
- *(string) --*
- *(dict) --*
Represents the data for an attribute.
Each attribute value is described as a name-value pair. The name is the data type, and the value is the data itself.
For more information, see `Data Types <https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/HowItWorks.NamingRulesDataTypes.html#HowItWorks.DataTypes>`__ in the *Amazon DynamoDB Developer Guide* .
- **S** *(string) --*
An attribute of type String. For example:
``\"S\": \"Hello\"``
- **N** *(string) --*
An attribute of type Number. For example:
``\"N\": \"123.45\"``
Numbers are sent across the network to DynamoDB as strings, to maximize compatibility across languages and libraries. However, DynamoDB treats them as number type attributes for mathematical operations.
- **B** *(bytes) --*
An attribute of type Binary. For example:
``\"B\": \"dGhpcyB0ZXh0IGlzIGJhc2U2NC1lbmNvZGVk\"``
- **SS** *(list) --*
An attribute of type String Set. For example:
``\"SS\": [\"Giraffe\", \"Hippo\" ,\"Zebra\"]``
- *(string) --*
- **NS** *(list) --*
An attribute of type Number Set. For example:
``\"NS\": [\"42.2\", \"-19\", \"7.5\", \"3.14\"]``
Numbers are sent across the network to DynamoDB as strings, to maximize compatibility across languages and libraries. However, DynamoDB treats them as number type attributes for mathematical operations.
- *(string) --*
- **BS** *(list) --*
An attribute of type Binary Set. For example:
``\"BS\": [\"U3Vubnk=\", \"UmFpbnk=\", \"U25vd3k=\"]``
- *(bytes) --*
- **M** *(dict) --*
An attribute of type Map. For example:
``\"M\": {\"Name\": {\"S\": \"Joe\"}, \"Age\": {\"N\": \"35\"}}``
- *(string) --*
- *(dict) --*
Represents the data for an attribute.
Each attribute value is described as a name-value pair. The name is the data type, and the value is the data itself.
For more information, see `Data Types <https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/HowItWorks.NamingRulesDataTypes.html#HowItWorks.DataTypes>`__ in the *Amazon DynamoDB Developer Guide* .
- **L** *(list) --*
An attribute of type List. For example:
``\"L\": [ {\"S\": \"Cookies\"} , {\"S\": \"Coffee\"}, {\"N\", \"3.14159\"}]``
- *(dict) --*
Represents the data for an attribute.
Each attribute value is described as a name-value pair. The name is the data type, and the value is the data itself.
For more information, see `Data Types <https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/HowItWorks.NamingRulesDataTypes.html#HowItWorks.DataTypes>`__ in the *Amazon DynamoDB Developer Guide* .
- **NULL** *(boolean) --*
An attribute of type Null. For example:
``\"NULL\": true``
- **BOOL** *(boolean) --*
An attribute of type Boolean. For example:
``\"BOOL\": true``
:type PaginationConfig: dict
:param PaginationConfig:
A dictionary that provides parameters to control pagination.
- **MaxItems** *(integer) --*
The total number of items to return. If the total number of items available is more than the value specified in max-items then a ``NextToken`` will be provided in the output that you can use to resume pagination.
- **PageSize** *(integer) --*
The size of each page.
- **StartingToken** *(string) --*
A token to specify where to start paginating. This is the ``NextToken`` from a previous response.
:rtype: dict
:returns:
"""
pass
class Scan(Paginator):
def paginate(self, TableName: str, IndexName: str = None, AttributesToGet: List = None, Select: str = None, ScanFilter: Dict = None, ConditionalOperator: str = None, ReturnConsumedCapacity: str = None, TotalSegments: int = None, Segment: int = None, ProjectionExpression: str = None, FilterExpression: str = None, ExpressionAttributeNames: Dict = None, ExpressionAttributeValues: Dict = None, ConsistentRead: bool = None, PaginationConfig: Dict = None) -> Dict:
"""
Creates an iterator that will paginate through responses from :py:meth:`DynamoDB.Client.scan`.
See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/dynamodb-2012-08-10/Scan>`_
**Request Syntax**
::
response_iterator = paginator.paginate(
TableName='string',
IndexName='string',
AttributesToGet=[
'string',
],
Select='ALL_ATTRIBUTES'|'ALL_PROJECTED_ATTRIBUTES'|'SPECIFIC_ATTRIBUTES'|'COUNT',
ScanFilter={
'string': {
'AttributeValueList': [
{
'S': 'string',
'N': 'string',
'B': b'bytes',
'SS': [
'string',
],
'NS': [
'string',
],
'BS': [
b'bytes',
],
'M': {
'string': {'... recursive ...'}
},
'L': [
{'... recursive ...'},
],
'NULL': True|False,
'BOOL': True|False
},
],
'ComparisonOperator': 'EQ'|'NE'|'IN'|'LE'|'LT'|'GE'|'GT'|'BETWEEN'|'NOT_NULL'|'NULL'|'CONTAINS'|'NOT_CONTAINS'|'BEGINS_WITH'
}
},
ConditionalOperator='AND'|'OR',
ReturnConsumedCapacity='INDEXES'|'TOTAL'|'NONE',
TotalSegments=123,
Segment=123,
ProjectionExpression='string',
FilterExpression='string',
ExpressionAttributeNames={
'string': 'string'
},
ExpressionAttributeValues={
'string': {
'S': 'string',
'N': 'string',
'B': b'bytes',
'SS': [
'string',
],
'NS': [
'string',
],
'BS': [
b'bytes',
],
'M': {
'string': {'... recursive ...'}
},
'L': [
{'... recursive ...'},
],
'NULL': True|False,
'BOOL': True|False
}
},
ConsistentRead=True|False,
PaginationConfig={
'MaxItems': 123,
'PageSize': 123,
'StartingToken': 'string'
}
)
**Response Syntax**
::
{
'Items': [
{
'string': {
'S': 'string',
'N': 'string',
'B': b'bytes',
'SS': [
'string',
],
'NS': [
'string',
],
'BS': [
b'bytes',
],
'M': {
'string': {'... recursive ...'}
},
'L': [
{'... recursive ...'},
],
'NULL': True|False,
'BOOL': True|False
}
},
],
'Count': 123,
'ScannedCount': 123,
'ConsumedCapacity': {
'TableName': 'string',
'CapacityUnits': 123.0,
'ReadCapacityUnits': 123.0,
'WriteCapacityUnits': 123.0,
'Table': {
'ReadCapacityUnits': 123.0,
'WriteCapacityUnits': 123.0,
'CapacityUnits': 123.0
},
'LocalSecondaryIndexes': {
'string': {
'ReadCapacityUnits': 123.0,
'WriteCapacityUnits': 123.0,
'CapacityUnits': 123.0
}
},
'GlobalSecondaryIndexes': {
'string': {
'ReadCapacityUnits': 123.0,
'WriteCapacityUnits': 123.0,
'CapacityUnits': 123.0
}
}
},
'NextToken': 'string'
}
**Response Structure**
- *(dict) --*
Represents the output of a ``Scan`` operation.
- **Items** *(list) --*
An array of item attributes that match the scan criteria. Each element in this array consists of an attribute name and the value for that attribute.
- *(dict) --*
- *(string) --*
- *(dict) --*
Represents the data for an attribute.
Each attribute value is described as a name-value pair. The name is the data type, and the value is the data itself.
For more information, see `Data Types <https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/HowItWorks.NamingRulesDataTypes.html#HowItWorks.DataTypes>`__ in the *Amazon DynamoDB Developer Guide* .
- **S** *(string) --*
An attribute of type String. For example:
``"S": "Hello"``
- **N** *(string) --*
An attribute of type Number. For example:
``"N": "123.45"``
Numbers are sent across the network to DynamoDB as strings, to maximize compatibility across languages and libraries. However, DynamoDB treats them as number type attributes for mathematical operations.
- **B** *(bytes) --*
An attribute of type Binary. For example:
``"B": "dGhpcyB0ZXh0IGlzIGJhc2U2NC1lbmNvZGVk"``
- **SS** *(list) --*
An attribute of type String Set. For example:
``"SS": ["Giraffe", "Hippo" ,"Zebra"]``
- *(string) --*
- **NS** *(list) --*
An attribute of type Number Set. For example:
``"NS": ["42.2", "-19", "7.5", "3.14"]``
Numbers are sent across the network to DynamoDB as strings, to maximize compatibility across languages and libraries. However, DynamoDB treats them as number type attributes for mathematical operations.
- *(string) --*
- **BS** *(list) --*
An attribute of type Binary Set. For example:
``"BS": ["U3Vubnk=", "UmFpbnk=", "U25vd3k="]``
- *(bytes) --*
- **M** *(dict) --*
An attribute of type Map. For example:
``"M": {"Name": {"S": "Joe"}, "Age": {"N": "35"}}``
- *(string) --*
- *(dict) --*
Represents the data for an attribute.
Each attribute value is described as a name-value pair. The name is the data type, and the value is the data itself.
For more information, see `Data Types <https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/HowItWorks.NamingRulesDataTypes.html#HowItWorks.DataTypes>`__ in the *Amazon DynamoDB Developer Guide* .
- **L** *(list) --*
An attribute of type List. For example:
``"L": [ {"S": "Cookies"} , {"S": "Coffee"}, {"N", "3.14159"}]``
- *(dict) --*
Represents the data for an attribute.
Each attribute value is described as a name-value pair. The name is the data type, and the value is the data itself.
For more information, see `Data Types <https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/HowItWorks.NamingRulesDataTypes.html#HowItWorks.DataTypes>`__ in the *Amazon DynamoDB Developer Guide* .
- **NULL** *(boolean) --*
An attribute of type Null. For example:
``"NULL": true``
- **BOOL** *(boolean) --*
An attribute of type Boolean. For example:
``"BOOL": true``
- **Count** *(integer) --*
The number of items in the response.
If you set ``ScanFilter`` in the request, then ``Count`` is the number of items returned after the filter was applied, and ``ScannedCount`` is the number of matching items before the filter was applied.
If you did not use a filter in the request, then ``Count`` is the same as ``ScannedCount`` .
- **ScannedCount** *(integer) --*
The number of items evaluated, before any ``ScanFilter`` is applied. A high ``ScannedCount`` value with few, or no, ``Count`` results indicates an inefficient ``Scan`` operation. For more information, see `Count and ScannedCount <https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/QueryAndScan.html#Count>`__ in the *Amazon DynamoDB Developer Guide* .
If you did not use a filter in the request, then ``ScannedCount`` is the same as ``Count`` .
- **ConsumedCapacity** *(dict) --*
The capacity units consumed by the ``Scan`` operation. The data returned includes the total provisioned throughput consumed, along with statistics for the table and any indexes involved in the operation. ``ConsumedCapacity`` is only returned if the ``ReturnConsumedCapacity`` parameter was specified. For more information, see `Provisioned Throughput <https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/ProvisionedThroughputIntro.html>`__ in the *Amazon DynamoDB Developer Guide* .
- **TableName** *(string) --*
The name of the table that was affected by the operation.
- **CapacityUnits** *(float) --*
The total number of capacity units consumed by the operation.
- **ReadCapacityUnits** *(float) --*
The total number of read capacity units consumed by the operation.
- **WriteCapacityUnits** *(float) --*
The total number of write capacity units consumed by the operation.
- **Table** *(dict) --*
The amount of throughput consumed on the table affected by the operation.
- **ReadCapacityUnits** *(float) --*
The total number of read capacity units consumed on a table or an index.
- **WriteCapacityUnits** *(float) --*
The total number of write capacity units consumed on a table or an index.
- **CapacityUnits** *(float) --*
The total number of capacity units consumed on a table or an index.
- **LocalSecondaryIndexes** *(dict) --*
The amount of throughput consumed on each local index affected by the operation.
- *(string) --*
- *(dict) --*
Represents the amount of provisioned throughput capacity consumed on a table or an index.
- **ReadCapacityUnits** *(float) --*
The total number of read capacity units consumed on a table or an index.
- **WriteCapacityUnits** *(float) --*
The total number of write capacity units consumed on a table or an index.
- **CapacityUnits** *(float) --*
The total number of capacity units consumed on a table or an index.
- **GlobalSecondaryIndexes** *(dict) --*
The amount of throughput consumed on each global index affected by the operation.
- *(string) --*
- *(dict) --*
Represents the amount of provisioned throughput capacity consumed on a table or an index.
- **ReadCapacityUnits** *(float) --*
The total number of read capacity units consumed on a table or an index.
- **WriteCapacityUnits** *(float) --*
The total number of write capacity units consumed on a table or an index.
- **CapacityUnits** *(float) --*
The total number of capacity units consumed on a table or an index.
- **NextToken** *(string) --*
A token to resume pagination.
:type TableName: string
:param TableName: **[REQUIRED]**
The name of the table containing the requested items; or, if you provide ``IndexName`` , the name of the table to which that index belongs.
:type IndexName: string
:param IndexName:
The name of a secondary index to scan. This index can be any local secondary index or global secondary index. Note that if you use the ``IndexName`` parameter, you must also provide ``TableName`` .
:type AttributesToGet: list
:param AttributesToGet:
This is a legacy parameter. Use ``ProjectionExpression`` instead. For more information, see `AttributesToGet <https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/LegacyConditionalParameters.AttributesToGet.html>`__ in the *Amazon DynamoDB Developer Guide* .
- *(string) --*
:type Select: string
:param Select:
The attributes to be returned in the result. You can retrieve all item attributes, specific item attributes, the count of matching items, or in the case of an index, some or all of the attributes projected into the index.
* ``ALL_ATTRIBUTES`` - Returns all of the item attributes from the specified table or index. If you query a local secondary index, then for each matching item in the index DynamoDB will fetch the entire item from the parent table. If the index is configured to project all item attributes, then all of the data can be obtained from the local secondary index, and no fetching is required.
* ``ALL_PROJECTED_ATTRIBUTES`` - Allowed only when querying an index. Retrieves all attributes that have been projected into the index. If the index is configured to project all attributes, this return value is equivalent to specifying ``ALL_ATTRIBUTES`` .
* ``COUNT`` - Returns the number of matching items, rather than the matching items themselves.
* ``SPECIFIC_ATTRIBUTES`` - Returns only the attributes listed in ``AttributesToGet`` . This return value is equivalent to specifying ``AttributesToGet`` without specifying any value for ``Select`` . If you query or scan a local secondary index and request only attributes that are projected into that index, the operation will read only the index and not the table. If any of the requested attributes are not projected into the local secondary index, DynamoDB will fetch each of these attributes from the parent table. This extra fetching incurs additional throughput cost and latency. If you query or scan a global secondary index, you can only request attributes that are projected into the index. Global secondary index queries cannot fetch attributes from the parent table.
If neither ``Select`` nor ``AttributesToGet`` are specified, DynamoDB defaults to ``ALL_ATTRIBUTES`` when accessing a table, and ``ALL_PROJECTED_ATTRIBUTES`` when accessing an index. You cannot use both ``Select`` and ``AttributesToGet`` together in a single request, unless the value for ``Select`` is ``SPECIFIC_ATTRIBUTES`` . (This usage is equivalent to specifying ``AttributesToGet`` without any value for ``Select`` .)
.. note::
If you use the ``ProjectionExpression`` parameter, then the value for ``Select`` can only be ``SPECIFIC_ATTRIBUTES`` . Any other value for ``Select`` will return an error.
:type ScanFilter: dict
:param ScanFilter:
This is a legacy parameter. Use ``FilterExpression`` instead. For more information, see `ScanFilter <https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/LegacyConditionalParameters.ScanFilter.html>`__ in the *Amazon DynamoDB Developer Guide* .
- *(string) --*
- *(dict) --*
Represents the selection criteria for a ``Query`` or ``Scan`` operation:
* For a ``Query`` operation, ``Condition`` is used for specifying the ``KeyConditions`` to use when querying a table or an index. For ``KeyConditions`` , only the following comparison operators are supported: ``EQ | LE | LT | GE | GT | BEGINS_WITH | BETWEEN`` ``Condition`` is also used in a ``QueryFilter`` , which evaluates the query results and returns only the desired values.
* For a ``Scan`` operation, ``Condition`` is used in a ``ScanFilter`` , which evaluates the scan results and returns only the desired values.
- **AttributeValueList** *(list) --*
One or more values to evaluate against the supplied attribute. The number of values in the list depends on the ``ComparisonOperator`` being used.
For type Number, value comparisons are numeric.
String value comparisons for greater than, equals, or less than are based on ASCII character code values. For example, ``a`` is greater than ``A`` , and ``a`` is greater than ``B`` . For a list of code values, see `http\://en.wikipedia.org/wiki/ASCII#ASCII_printable_characters <http://en.wikipedia.org/wiki/ASCII#ASCII_printable_characters>`__ .
For Binary, DynamoDB treats each byte of the binary data as unsigned when it compares binary values.
- *(dict) --*
Represents the data for an attribute.
Each attribute value is described as a name-value pair. The name is the data type, and the value is the data itself.
For more information, see `Data Types <https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/HowItWorks.NamingRulesDataTypes.html#HowItWorks.DataTypes>`__ in the *Amazon DynamoDB Developer Guide* .
- **S** *(string) --*
An attribute of type String. For example:
``\"S\": \"Hello\"``
- **N** *(string) --*
An attribute of type Number. For example:
``\"N\": \"123.45\"``
Numbers are sent across the network to DynamoDB as strings, to maximize compatibility across languages and libraries. However, DynamoDB treats them as number type attributes for mathematical operations.
- **B** *(bytes) --*
An attribute of type Binary. For example:
``\"B\": \"dGhpcyB0ZXh0IGlzIGJhc2U2NC1lbmNvZGVk\"``
- **SS** *(list) --*
An attribute of type String Set. For example:
``\"SS\": [\"Giraffe\", \"Hippo\" ,\"Zebra\"]``
- *(string) --*
- **NS** *(list) --*
An attribute of type Number Set. For example:
``\"NS\": [\"42.2\", \"-19\", \"7.5\", \"3.14\"]``
Numbers are sent across the network to DynamoDB as strings, to maximize compatibility across languages and libraries. However, DynamoDB treats them as number type attributes for mathematical operations.
- *(string) --*
- **BS** *(list) --*
An attribute of type Binary Set. For example:
``\"BS\": [\"U3Vubnk=\", \"UmFpbnk=\", \"U25vd3k=\"]``
- *(bytes) --*
- **M** *(dict) --*
An attribute of type Map. For example:
``\"M\": {\"Name\": {\"S\": \"Joe\"}, \"Age\": {\"N\": \"35\"}}``
- *(string) --*
- *(dict) --*
Represents the data for an attribute.
Each attribute value is described as a name-value pair. The name is the data type, and the value is the data itself.
For more information, see `Data Types <https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/HowItWorks.NamingRulesDataTypes.html#HowItWorks.DataTypes>`__ in the *Amazon DynamoDB Developer Guide* .
- **L** *(list) --*
An attribute of type List. For example:
``\"L\": [ {\"S\": \"Cookies\"} , {\"S\": \"Coffee\"}, {\"N\", \"3.14159\"}]``
- *(dict) --*
Represents the data for an attribute.
Each attribute value is described as a name-value pair. The name is the data type, and the value is the data itself.
For more information, see `Data Types <https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/HowItWorks.NamingRulesDataTypes.html#HowItWorks.DataTypes>`__ in the *Amazon DynamoDB Developer Guide* .
- **NULL** *(boolean) --*
An attribute of type Null. For example:
``\"NULL\": true``
- **BOOL** *(boolean) --*
An attribute of type Boolean. For example:
``\"BOOL\": true``
- **ComparisonOperator** *(string) --* **[REQUIRED]**
A comparator for evaluating attributes. For example, equals, greater than, less than, etc.
The following comparison operators are available:
``EQ | NE | LE | LT | GE | GT | NOT_NULL | NULL | CONTAINS | NOT_CONTAINS | BEGINS_WITH | IN | BETWEEN``
The following are descriptions of each comparison operator.
* ``EQ`` : Equal. ``EQ`` is supported for all data types, including lists and maps. ``AttributeValueList`` can contain only one ``AttributeValue`` element of type String, Number, Binary, String Set, Number Set, or Binary Set. If an item contains an ``AttributeValue`` element of a different type than the one provided in the request, the value does not match. For example, ``{\"S\":\"6\"}`` does not equal ``{\"N\":\"6\"}`` . Also, ``{\"N\":\"6\"}`` does not equal ``{\"NS\":[\"6\", \"2\", \"1\"]}`` .
* ``NE`` : Not equal. ``NE`` is supported for all data types, including lists and maps. ``AttributeValueList`` can contain only one ``AttributeValue`` of type String, Number, Binary, String Set, Number Set, or Binary Set. If an item contains an ``AttributeValue`` of a different type than the one provided in the request, the value does not match. For example, ``{\"S\":\"6\"}`` does not equal ``{\"N\":\"6\"}`` . Also, ``{\"N\":\"6\"}`` does not equal ``{\"NS\":[\"6\", \"2\", \"1\"]}`` .
* ``LE`` : Less than or equal. ``AttributeValueList`` can contain only one ``AttributeValue`` element of type String, Number, or Binary (not a set type). If an item contains an ``AttributeValue`` element of a different type than the one provided in the request, the value does not match. For example, ``{\"S\":\"6\"}`` does not equal ``{\"N\":\"6\"}`` . Also, ``{\"N\":\"6\"}`` does not compare to ``{\"NS\":[\"6\", \"2\", \"1\"]}`` .
* ``LT`` : Less than. ``AttributeValueList`` can contain only one ``AttributeValue`` of type String, Number, or Binary (not a set type). If an item contains an ``AttributeValue`` element of a different type than the one provided in the request, the value does not match. For example, ``{\"S\":\"6\"}`` does not equal ``{\"N\":\"6\"}`` . Also, ``{\"N\":\"6\"}`` does not compare to ``{\"NS\":[\"6\", \"2\", \"1\"]}`` .
* ``GE`` : Greater than or equal. ``AttributeValueList`` can contain only one ``AttributeValue`` element of type String, Number, or Binary (not a set type). If an item contains an ``AttributeValue`` element of a different type than the one provided in the request, the value does not match. For example, ``{\"S\":\"6\"}`` does not equal ``{\"N\":\"6\"}`` . Also, ``{\"N\":\"6\"}`` does not compare to ``{\"NS\":[\"6\", \"2\", \"1\"]}`` .
* ``GT`` : Greater than. ``AttributeValueList`` can contain only one ``AttributeValue`` element of type String, Number, or Binary (not a set type). If an item contains an ``AttributeValue`` element of a different type than the one provided in the request, the value does not match. For example, ``{\"S\":\"6\"}`` does not equal ``{\"N\":\"6\"}`` . Also, ``{\"N\":\"6\"}`` does not compare to ``{\"NS\":[\"6\", \"2\", \"1\"]}`` .
* ``NOT_NULL`` : The attribute exists. ``NOT_NULL`` is supported for all data types, including lists and maps.
.. note::
This operator tests for the existence of an attribute, not its data type. If the data type of attribute \"``a`` \" is null, and you evaluate it using ``NOT_NULL`` , the result is a Boolean ``true`` . This result is because the attribute \"``a`` \" exists; its data type is not relevant to the ``NOT_NULL`` comparison operator.
* ``NULL`` : The attribute does not exist. ``NULL`` is supported for all data types, including lists and maps.
.. note::
This operator tests for the nonexistence of an attribute, not its data type. If the data type of attribute \"``a`` \" is null, and you evaluate it using ``NULL`` , the result is a Boolean ``false`` . This is because the attribute \"``a`` \" exists; its data type is not relevant to the ``NULL`` comparison operator.
* ``CONTAINS`` : Checks for a subsequence, or value in a set. ``AttributeValueList`` can contain only one ``AttributeValue`` element of type String, Number, or Binary (not a set type). If the target attribute of the comparison is of type String, then the operator checks for a substring match. If the target attribute of the comparison is of type Binary, then the operator looks for a subsequence of the target that matches the input. If the target attribute of the comparison is a set (\"``SS`` \", \"``NS`` \", or \"``BS`` \"), then the operator evaluates to true if it finds an exact match with any member of the set. CONTAINS is supported for lists: When evaluating \"``a CONTAINS b`` \", \"``a`` \" can be a list; however, \"``b`` \" cannot be a set, a map, or a list.
* ``NOT_CONTAINS`` : Checks for absence of a subsequence, or absence of a value in a set. ``AttributeValueList`` can contain only one ``AttributeValue`` element of type String, Number, or Binary (not a set type). If the target attribute of the comparison is a String, then the operator checks for the absence of a substring match. If the target attribute of the comparison is Binary, then the operator checks for the absence of a subsequence of the target that matches the input. If the target attribute of the comparison is a set (\"``SS`` \", \"``NS`` \", or \"``BS`` \"), then the operator evaluates to true if it *does not* find an exact match with any member of the set. NOT_CONTAINS is supported for lists: When evaluating \"``a NOT CONTAINS b`` \", \"``a`` \" can be a list; however, \"``b`` \" cannot be a set, a map, or a list.
* ``BEGINS_WITH`` : Checks for a prefix. ``AttributeValueList`` can contain only one ``AttributeValue`` of type String or Binary (not a Number or a set type). The target attribute of the comparison must be of type String or Binary (not a Number or a set type).
* ``IN`` : Checks for matching elements in a list. ``AttributeValueList`` can contain one or more ``AttributeValue`` elements of type String, Number, or Binary. These attributes are compared against an existing attribute of an item. If any elements of the input are equal to the item attribute, the expression evaluates to true.
* ``BETWEEN`` : Greater than or equal to the first value, and less than or equal to the second value. ``AttributeValueList`` must contain two ``AttributeValue`` elements of the same type, either String, Number, or Binary (not a set type). A target attribute matches if the target value is greater than, or equal to, the first element and less than, or equal to, the second element. If an item contains an ``AttributeValue`` element of a different type than the one provided in the request, the value does not match. For example, ``{\"S\":\"6\"}`` does not compare to ``{\"N\":\"6\"}`` . Also, ``{\"N\":\"6\"}`` does not compare to ``{\"NS\":[\"6\", \"2\", \"1\"]}``
For usage examples of ``AttributeValueList`` and ``ComparisonOperator`` , see `Legacy Conditional Parameters <https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/LegacyConditionalParameters.html>`__ in the *Amazon DynamoDB Developer Guide* .
:type ConditionalOperator: string
:param ConditionalOperator:
This is a legacy parameter. Use ``FilterExpression`` instead. For more information, see `ConditionalOperator <https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/LegacyConditionalParameters.ConditionalOperator.html>`__ in the *Amazon DynamoDB Developer Guide* .
:type ReturnConsumedCapacity: string
:param ReturnConsumedCapacity:
Determines the level of detail about provisioned throughput consumption that is returned in the response:
* ``INDEXES`` - The response includes the aggregate ``ConsumedCapacity`` for the operation, together with ``ConsumedCapacity`` for each table and secondary index that was accessed. Note that some operations, such as ``GetItem`` and ``BatchGetItem`` , do not access any indexes at all. In these cases, specifying ``INDEXES`` will only return ``ConsumedCapacity`` information for table(s).
* ``TOTAL`` - The response includes only the aggregate ``ConsumedCapacity`` for the operation.
* ``NONE`` - No ``ConsumedCapacity`` details are included in the response.
:type TotalSegments: integer
:param TotalSegments:
For a parallel ``Scan`` request, ``TotalSegments`` represents the total number of segments into which the ``Scan`` operation will be divided. The value of ``TotalSegments`` corresponds to the number of application workers that will perform the parallel scan. For example, if you want to use four application threads to scan a table or an index, specify a ``TotalSegments`` value of 4.
The value for ``TotalSegments`` must be greater than or equal to 1, and less than or equal to 1000000. If you specify a ``TotalSegments`` value of 1, the ``Scan`` operation will be sequential rather than parallel.
If you specify ``TotalSegments`` , you must also specify ``Segment`` .
:type Segment: integer
:param Segment:
For a parallel ``Scan`` request, ``Segment`` identifies an individual segment to be scanned by an application worker.
Segment IDs are zero-based, so the first segment is always 0. For example, if you want to use four application threads to scan a table or an index, then the first thread specifies a ``Segment`` value of 0, the second thread specifies 1, and so on.
The value of ``LastEvaluatedKey`` returned from a parallel ``Scan`` request must be used as ``ExclusiveStartKey`` with the same segment ID in a subsequent ``Scan`` operation.
The value for ``Segment`` must be greater than or equal to 0, and less than the value provided for ``TotalSegments`` .
If you provide ``Segment`` , you must also provide ``TotalSegments`` .
:type ProjectionExpression: string
:param ProjectionExpression:
A string that identifies one or more attributes to retrieve from the specified table or index. These attributes can include scalars, sets, or elements of a JSON document. The attributes in the expression must be separated by commas.
If no attribute names are specified, then all attributes will be returned. If any of the requested attributes are not found, they will not appear in the result.
For more information, see `Accessing Item Attributes <https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Expressions.AccessingItemAttributes.html>`__ in the *Amazon DynamoDB Developer Guide* .
:type FilterExpression: string
:param FilterExpression:
A string that contains conditions that DynamoDB applies after the ``Scan`` operation, but before the data is returned to you. Items that do not satisfy the ``FilterExpression`` criteria are not returned.
.. note::
A ``FilterExpression`` is applied after the items have already been read; the process of filtering does not consume any additional read capacity units.
For more information, see `Filter Expressions <https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/QueryAndScan.html#FilteringResults>`__ in the *Amazon DynamoDB Developer Guide* .
:type ExpressionAttributeNames: dict
:param ExpressionAttributeNames:
One or more substitution tokens for attribute names in an expression. The following are some use cases for using ``ExpressionAttributeNames`` :
* To access an attribute whose name conflicts with a DynamoDB reserved word.
* To create a placeholder for repeating occurrences of an attribute name in an expression.
* To prevent special characters in an attribute name from being misinterpreted in an expression.
Use the **#** character in an expression to dereference an attribute name. For example, consider the following attribute name:
* ``Percentile``
The name of this attribute conflicts with a reserved word, so it cannot be used directly in an expression. (For the complete list of reserved words, see `Reserved Words <https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/ReservedWords.html>`__ in the *Amazon DynamoDB Developer Guide* ). To work around this, you could specify the following for ``ExpressionAttributeNames`` :
* ``{\"#P\":\"Percentile\"}``
You could then use this substitution in an expression, as in this example:
* ``#P = :val``
.. note::
Tokens that begin with the **:** character are *expression attribute values* , which are placeholders for the actual value at runtime.
For more information on expression attribute names, see `Accessing Item Attributes <https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Expressions.AccessingItemAttributes.html>`__ in the *Amazon DynamoDB Developer Guide* .
- *(string) --*
- *(string) --*
:type ExpressionAttributeValues: dict
:param ExpressionAttributeValues:
One or more values that can be substituted in an expression.
Use the **:** (colon) character in an expression to dereference an attribute value. For example, suppose that you wanted to check whether the value of the *ProductStatus* attribute was one of the following:
``Available | Backordered | Discontinued``
You would first need to specify ``ExpressionAttributeValues`` as follows:
``{ \":avail\":{\"S\":\"Available\"}, \":back\":{\"S\":\"Backordered\"}, \":disc\":{\"S\":\"Discontinued\"} }``
You could then use these values in an expression, such as this:
``ProductStatus IN (:avail, :back, :disc)``
For more information on expression attribute values, see `Specifying Conditions <https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Expressions.SpecifyingConditions.html>`__ in the *Amazon DynamoDB Developer Guide* .
- *(string) --*
- *(dict) --*
Represents the data for an attribute.
Each attribute value is described as a name-value pair. The name is the data type, and the value is the data itself.
For more information, see `Data Types <https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/HowItWorks.NamingRulesDataTypes.html#HowItWorks.DataTypes>`__ in the *Amazon DynamoDB Developer Guide* .
- **S** *(string) --*
An attribute of type String. For example:
``\"S\": \"Hello\"``
- **N** *(string) --*
An attribute of type Number. For example:
``\"N\": \"123.45\"``
Numbers are sent across the network to DynamoDB as strings, to maximize compatibility across languages and libraries. However, DynamoDB treats them as number type attributes for mathematical operations.
- **B** *(bytes) --*
An attribute of type Binary. For example:
``\"B\": \"dGhpcyB0ZXh0IGlzIGJhc2U2NC1lbmNvZGVk\"``
- **SS** *(list) --*
An attribute of type String Set. For example:
``\"SS\": [\"Giraffe\", \"Hippo\" ,\"Zebra\"]``
- *(string) --*
- **NS** *(list) --*
An attribute of type Number Set. For example:
``\"NS\": [\"42.2\", \"-19\", \"7.5\", \"3.14\"]``
Numbers are sent across the network to DynamoDB as strings, to maximize compatibility across languages and libraries. However, DynamoDB treats them as number type attributes for mathematical operations.
- *(string) --*
- **BS** *(list) --*
An attribute of type Binary Set. For example:
``\"BS\": [\"U3Vubnk=\", \"UmFpbnk=\", \"U25vd3k=\"]``
- *(bytes) --*
- **M** *(dict) --*
An attribute of type Map. For example:
``\"M\": {\"Name\": {\"S\": \"Joe\"}, \"Age\": {\"N\": \"35\"}}``
- *(string) --*
- *(dict) --*
Represents the data for an attribute.
Each attribute value is described as a name-value pair. The name is the data type, and the value is the data itself.
For more information, see `Data Types <https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/HowItWorks.NamingRulesDataTypes.html#HowItWorks.DataTypes>`__ in the *Amazon DynamoDB Developer Guide* .
- **L** *(list) --*
An attribute of type List. For example:
``\"L\": [ {\"S\": \"Cookies\"} , {\"S\": \"Coffee\"}, {\"N\", \"3.14159\"}]``
- *(dict) --*
Represents the data for an attribute.
Each attribute value is described as a name-value pair. The name is the data type, and the value is the data itself.
For more information, see `Data Types <https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/HowItWorks.NamingRulesDataTypes.html#HowItWorks.DataTypes>`__ in the *Amazon DynamoDB Developer Guide* .
- **NULL** *(boolean) --*
An attribute of type Null. For example:
``\"NULL\": true``
- **BOOL** *(boolean) --*
An attribute of type Boolean. For example:
``\"BOOL\": true``
:type ConsistentRead: boolean
:param ConsistentRead:
A Boolean value that determines the read consistency model during the scan:
* If ``ConsistentRead`` is ``false`` , then the data returned from ``Scan`` might not contain the results from other recently completed write operations (PutItem, UpdateItem or DeleteItem).
* If ``ConsistentRead`` is ``true`` , then all of the write operations that completed before the ``Scan`` began are guaranteed to be contained in the ``Scan`` response.
The default setting for ``ConsistentRead`` is ``false`` .
The ``ConsistentRead`` parameter is not supported on global secondary indexes. If you scan a global secondary index with ``ConsistentRead`` set to true, you will receive a ``ValidationException`` .
:type PaginationConfig: dict
:param PaginationConfig:
A dictionary that provides parameters to control pagination.
- **MaxItems** *(integer) --*
The total number of items to return. If the total number of items available is more than the value specified in max-items then a ``NextToken`` will be provided in the output that you can use to resume pagination.
- **PageSize** *(integer) --*
The size of each page.
- **StartingToken** *(string) --*
A token to specify where to start paginating. This is the ``NextToken`` from a previous response.
:rtype: dict
:returns:
"""
pass
| 85.42879
| 853
| 0.57831
| 12,471
| 111,570
| 5.157405
| 0.054126
| 0.018813
| 0.014148
| 0.018502
| 0.883656
| 0.870301
| 0.865807
| 0.861159
| 0.852421
| 0.841335
| 0
| 0.00766
| 0.308506
| 111,570
| 1,305
| 854
| 85.494253
| 0.826014
| 0.885229
| 0
| 0.263158
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.263158
| false
| 0.263158
| 0.210526
| 0
| 0.736842
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 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
| 1
| 0
| 1
| 0
| 0
| 0
| 0
|
0
| 9
|
e21708e8d28cb48f9e9d05db8389273cc013bcf4
| 9,839
|
py
|
Python
|
topic.py
|
xiaol/ZhihuCrawler
|
97267f8723e386c88c65f2574d680e8ad966d16b
|
[
"MIT"
] | null | null | null |
topic.py
|
xiaol/ZhihuCrawler
|
97267f8723e386c88c65f2574d680e8ad966d16b
|
[
"MIT"
] | null | null | null |
topic.py
|
xiaol/ZhihuCrawler
|
97267f8723e386c88c65f2574d680e8ad966d16b
|
[
"MIT"
] | null | null | null |
#coding=utf-8
import MySQLdb
from bs4 import BeautifulSoup
import json
import re
import time
from math import ceil
import logging
import threading
import Queue
import ConfigParser
# from util import get_content
# from test import question_test
from zhihu import Question
from zhihu import Answer
cf = ConfigParser.ConfigParser()
cf.read("config.ini")
host = cf.get("db", "host")
port = int(cf.get("db", "port"))
user = cf.get("db", "user")
passwd = cf.get("db", "passwd")
db_name = cf.get("db", "db")
charset = cf.get("db", "charset")
use_unicode = cf.get("db", "use_unicode")
db = MySQLdb.connect(host=host, port=port, user=user, passwd=passwd, db=db_name, charset=charset, use_unicode=use_unicode)
cursor = db.cursor()
class UpdateOneTopic(threading.Thread):
def __init__(self,queue):
self.queue = queue
threading.Thread.__init__(self)
cf = ConfigParser.ConfigParser()
cf.read("config.ini")
host = cf.get("db", "host")
port = int(cf.get("db", "port"))
user = cf.get("db", "user")
passwd = cf.get("db", "passwd")
db_name = cf.get("db", "db")
charset = cf.get("db", "charset")
use_unicode = cf.get("db", "use_unicode")
self.db = MySQLdb.connect(host=host, port=port, user=user, passwd=passwd, db=db_name, charset=charset, use_unicode=use_unicode)
self.cursor = self.db.cursor()
def run(self):
while not self.queue.empty():
t = self.queue.get()
link_id = t[0]
count_id = t[1]
self.find_new_answer_by_question(link_id,count_id)
def question_test(self, url):
question = Question(url)
# 获取该问题的标题
title = question.get_title()
# 获取该问题的详细描述
detail = question.get_detail()
# 获取回答个数
# answers_num = question.get_answers_num()
# 获取关注该问题的人数
# followers_num = question.get_followers_num()
# 获取该问题所属话题
topics = question.get_topics()
# 获取该问题被浏览次数
# visit_times = question.get_visit_times()
# 获取排名第一的回答
# top_answer = question.get_top_answer()
# 获取排名前十的十个回答
top_answers = question.get_top_i_answers(10)
# 获取所有回答
answers = question.get_all_answers()
# print title # 输出:现实可以有多美好?
# print detail
# 输出:
# 本问题相对于“现实可以多残酷?传送门:现实可以有多残酷?
# 题主: 昨天看了“现实可以有多残酷“。感觉不太好,所以我
# 开了这个问题以相对应,希望能够“中和一下“。和那个问题题主不想
# 把它变成“比惨大会“一样,我也不想把这个变成“鸡汤故事会“,或者
# 是“晒幸福“比赛。所以大家从“现实,实际”的角度出发,讲述自己的
# 美好故事,让大家看看社会的冷和暖,能更加辨证地看待世界,是此
# 题和彼题共同的“心愿“吧。
# print answers_num # 输出:2441
# print followers_num # 输出:26910
# for topic in topics:
# print type(topic)
# print topic, # 输出:情感克制 现实 社会 个人经历
# print visit_times # 输出: 该问题当前被浏览的次数
# print top_answer # 输出:<zhihu.Answer instance at 0x7f8b6582d0e0>(Answer类对象)
# print top_answers # 输出:<generator object get_top_i_answers at 0x7fed676eb320>(代表前十的Answer的生成器)
# print answers # 输出:<generator object get_all_answer at 0x7f8b66ba30a0>(代表所有Answer的生成器)
answers_list = []
for answer in answers: #top_answers
answers_list.append(answer.to_txt())
if len(answers_list) >0:
answers = []
topics = json.dumps(topics).decode('unicode-escape').encode('utf8')
time_now = int(time.time())
p_str = 'INSERT IGNORE INTO ANSWER (QURL, TITLE, DETAIL, TOPICS, AURL, USERID, CONTENT, UPVOTE, USERURL, ADD_TIME, LAST_VISIT) VALUES (%s, %s, %s, %s, %s, %s, %s,%s, %s, %s,%s)'
for answer in answers_list:
answers = answers + [(url, title, detail, topics, answer["aurl"], answer["userid"], answer["content"], answer["upvote"], answer["userurl"], time_now, 0)]
self.cursor.executemany(p_str, answers)
return self.cursor.rowcount
else:
print "no answer"
return 0
def find_new_answer_by_question(self,link_id,count_id):
new_question_amount_total = 0
question_url = "http://www.zhihu.com/question/" + str(link_id)
print question_url + "," + "start" + self.getName()
try:
# if 1==1:
new_question_amount_one_page = self.question_test(question_url)
if new_question_amount_one_page > 0:
sql = "UPDATE QUESTION SET IS_FLAG = 1 WHERE LINK_ID = %s"
self.cursor.execute(sql, (link_id, ))
#self.db.commit()
else:
print question_url + "fail"
except Exception ,e:
print e
# print "question_url_error"
# if new_question_amount_one_page <= 1:
# break
# if count_id % 2 == 0:
# print str(count_id) + " , " + self.getName() + " Finshed TOPIC " + link_id + ", page " + str(i) + " ; Add " + str(new_question_amount_total) + " questions."
# print str(count_id) + " , " + self.getName() + " Finshed TOPIC " + link_id + ", page " + str(i) + " ; Add " + str(new_question_amount_total) + " questions." + str(new_question_amount_one_page) +"last_questions_num"
def find_new_answer_by_question(link_id):
new_question_amount_total = 0
question_url = "http://www.zhihu.com/question/" + str(link_id)
print question_url + "," + "start" #+ self.getName()
try:
# if 1==1:
new_question_amount_one_page = question_test(question_url)
if new_question_amount_one_page > 0:
sql = "UPDATE QUESTION SET IS_FLAG = 1 WHERE LINK_ID = %s"
cursor.execute(sql, (link_id, ))
db.commit()
else:
print question_url + "fail"
except Exception ,e:
print e
def question_test(url):
question = Question(url)
# 获取该问题的标题
title = question.get_title()
# 获取该问题的详细描述
detail = question.get_detail()
# 获取回答个数
# answers_num = question.get_answers_num()
# 获取关注该问题的人数
# followers_num = question.get_followers_num()
# 获取该问题所属话题
topics = question.get_topics()
# 获取该问题被浏览次数
# visit_times = question.get_visit_times()
# 获取排名第一的回答
# top_answer = question.get_top_answer()
# 获取排名前十的十个回答
top_answers = question.get_top_i_answers(10)
# 获取所有回答
answers = question.get_all_answers()
# print title # 输出:现实可以有多美好?
# print detail
# 输出:
# 本问题相对于“现实可以多残酷?传送门:现实可以有多残酷?
# 题主: 昨天看了“现实可以有多残酷“。感觉不太好,所以我
# 开了这个问题以相对应,希望能够“中和一下“。和那个问题题主不想
# 把它变成“比惨大会“一样,我也不想把这个变成“鸡汤故事会“,或者
# 是“晒幸福“比赛。所以大家从“现实,实际”的角度出发,讲述自己的
# 美好故事,让大家看看社会的冷和暖,能更加辨证地看待世界,是此
# 题和彼题共同的“心愿“吧。
# print answers_num # 输出:2441
# print followers_num # 输出:26910
# for topic in topics:
# print type(topic)
# print topic, # 输出:情感克制 现实 社会 个人经历
# print visit_times # 输出: 该问题当前被浏览的次数
# print top_answer # 输出:<zhihu.Answer instance at 0x7f8b6582d0e0>(Answer类对象)
# print top_answers # 输出:<generator object get_top_i_answers at 0x7fed676eb320>(代表前十的Answer的生成器)
# print answers # 输出:<generator object get_all_answer at 0x7f8b66ba30a0>(代表所有Answer的生成器)
answers_list = []
# a = 0
for answer in answers: #top_answers
# a=a +1
# if a>=2:
# break
answers_list.append(answer.to_txt())
if len(answers_list) >0:
answers = []
topics = json.dumps(topics).decode('unicode-escape').encode('utf8')
time_now = int(time.time())
p_str = 'INSERT IGNORE INTO ANSWER (QURL, TITLE, DETAIL, TOPICS, AURL, USERID, CONTENT, UPVOTE, USERURL, ADD_TIME, LAST_VISIT) VALUES (%s, %s, %s, %s, %s, %s, %s,%s, %s, %s,%s)'
for answer in answers_list:
answers = answers + [(url, title, detail, topics, answer["aurl"], answer["userid"], answer["content"], answer["upvote"], answer["userurl"], time_now, 0)]
cursor.executemany(p_str, answers)
return cursor.rowcount
else:
print "no answer"
return 0
class UpdateTopics:
def __init__(self):
cf = ConfigParser.ConfigParser()
cf.read("config.ini")
host = cf.get("db", "host")
port = int(cf.get("db", "port"))
user = cf.get("db", "user")
passwd = cf.get("db", "passwd")
db_name = cf.get("db", "db")
charset = cf.get("db", "charset")
use_unicode = cf.get("db", "use_unicode")
self.topic_thread_amount = int(cf.get("topic_thread_amount","topic_thread_amount"))
self.db = MySQLdb.connect(host=host, port=port, user=user, passwd=passwd, db=db_name, charset=charset, use_unicode=use_unicode)
self.cursor = self.db.cursor()
def run(self):
time_now = int(time.time())
before_last_vist_time = time_now - 10
queue = Queue.Queue()
threads = []
i = 0
sql = "SELECT LINK_ID FROM QUESTION WHERE ANSWER>=1 AND IS_FLAG=0" #LINK_ID ='44811567' LAST_VISIT < %s and ORDER BY LAST_VISIT and LINK_ID = 19680895 and TOPIC_URL like 'http://www.zhihu.com/topic/19552320/questions?page=255'
self.cursor.execute(sql) #, (before_last_vist_time,)
results = self.cursor.fetchall()
# results = []
# another = 49024731
for row in results:
link_id = str(row[0])
queue.put([link_id, i])
i = i + 1
# queue.put([another,-1])
for i in range(self.topic_thread_amount):
threads.append(UpdateOneTopic(queue))
for i in range(self.topic_thread_amount):
threads[i].start()
for i in range(self.topic_thread_amount):
threads[i].join()
self.db.close()
print 'All task done'
if __name__ == '__main__':
topic_spider = UpdateTopics()
topic_spider.run()
| 35.778182
| 237
| 0.606261
| 1,251
| 9,839
| 4.57554
| 0.176659
| 0.019217
| 0.025681
| 0.011181
| 0.8087
| 0.793676
| 0.762404
| 0.752621
| 0.739343
| 0.73253
| 0
| 0.019867
| 0.268422
| 9,839
| 274
| 238
| 35.908759
| 0.775354
| 0.2795
| 0
| 0.607843
| 0
| 0.013072
| 0.133448
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | null | 0.039216
| 0.078431
| null | null | 0.058824
| 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
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
3551a89e9db60d43f932203f9b75eff199b80df8
| 6,545
|
py
|
Python
|
loldib/getratings/models/NA/na_lucian/na_lucian_top.py
|
koliupy/loldib
|
c9ab94deb07213cdc42b5a7c26467cdafaf81b7f
|
[
"Apache-2.0"
] | null | null | null |
loldib/getratings/models/NA/na_lucian/na_lucian_top.py
|
koliupy/loldib
|
c9ab94deb07213cdc42b5a7c26467cdafaf81b7f
|
[
"Apache-2.0"
] | null | null | null |
loldib/getratings/models/NA/na_lucian/na_lucian_top.py
|
koliupy/loldib
|
c9ab94deb07213cdc42b5a7c26467cdafaf81b7f
|
[
"Apache-2.0"
] | null | null | null |
from getratings.models.ratings import Ratings
class NA_Lucian_Top_Aatrox(Ratings):
pass
class NA_Lucian_Top_Ahri(Ratings):
pass
class NA_Lucian_Top_Akali(Ratings):
pass
class NA_Lucian_Top_Alistar(Ratings):
pass
class NA_Lucian_Top_Amumu(Ratings):
pass
class NA_Lucian_Top_Anivia(Ratings):
pass
class NA_Lucian_Top_Annie(Ratings):
pass
class NA_Lucian_Top_Ashe(Ratings):
pass
class NA_Lucian_Top_AurelionSol(Ratings):
pass
class NA_Lucian_Top_Azir(Ratings):
pass
class NA_Lucian_Top_Bard(Ratings):
pass
class NA_Lucian_Top_Blitzcrank(Ratings):
pass
class NA_Lucian_Top_Brand(Ratings):
pass
class NA_Lucian_Top_Braum(Ratings):
pass
class NA_Lucian_Top_Caitlyn(Ratings):
pass
class NA_Lucian_Top_Camille(Ratings):
pass
class NA_Lucian_Top_Cassiopeia(Ratings):
pass
class NA_Lucian_Top_Chogath(Ratings):
pass
class NA_Lucian_Top_Corki(Ratings):
pass
class NA_Lucian_Top_Darius(Ratings):
pass
class NA_Lucian_Top_Diana(Ratings):
pass
class NA_Lucian_Top_Draven(Ratings):
pass
class NA_Lucian_Top_DrMundo(Ratings):
pass
class NA_Lucian_Top_Ekko(Ratings):
pass
class NA_Lucian_Top_Elise(Ratings):
pass
class NA_Lucian_Top_Evelynn(Ratings):
pass
class NA_Lucian_Top_Ezreal(Ratings):
pass
class NA_Lucian_Top_Fiddlesticks(Ratings):
pass
class NA_Lucian_Top_Fiora(Ratings):
pass
class NA_Lucian_Top_Fizz(Ratings):
pass
class NA_Lucian_Top_Galio(Ratings):
pass
class NA_Lucian_Top_Gangplank(Ratings):
pass
class NA_Lucian_Top_Garen(Ratings):
pass
class NA_Lucian_Top_Gnar(Ratings):
pass
class NA_Lucian_Top_Gragas(Ratings):
pass
class NA_Lucian_Top_Graves(Ratings):
pass
class NA_Lucian_Top_Hecarim(Ratings):
pass
class NA_Lucian_Top_Heimerdinger(Ratings):
pass
class NA_Lucian_Top_Illaoi(Ratings):
pass
class NA_Lucian_Top_Irelia(Ratings):
pass
class NA_Lucian_Top_Ivern(Ratings):
pass
class NA_Lucian_Top_Janna(Ratings):
pass
class NA_Lucian_Top_JarvanIV(Ratings):
pass
class NA_Lucian_Top_Jax(Ratings):
pass
class NA_Lucian_Top_Jayce(Ratings):
pass
class NA_Lucian_Top_Jhin(Ratings):
pass
class NA_Lucian_Top_Jinx(Ratings):
pass
class NA_Lucian_Top_Kalista(Ratings):
pass
class NA_Lucian_Top_Karma(Ratings):
pass
class NA_Lucian_Top_Karthus(Ratings):
pass
class NA_Lucian_Top_Kassadin(Ratings):
pass
class NA_Lucian_Top_Katarina(Ratings):
pass
class NA_Lucian_Top_Kayle(Ratings):
pass
class NA_Lucian_Top_Kayn(Ratings):
pass
class NA_Lucian_Top_Kennen(Ratings):
pass
class NA_Lucian_Top_Khazix(Ratings):
pass
class NA_Lucian_Top_Kindred(Ratings):
pass
class NA_Lucian_Top_Kled(Ratings):
pass
class NA_Lucian_Top_KogMaw(Ratings):
pass
class NA_Lucian_Top_Leblanc(Ratings):
pass
class NA_Lucian_Top_LeeSin(Ratings):
pass
class NA_Lucian_Top_Leona(Ratings):
pass
class NA_Lucian_Top_Lissandra(Ratings):
pass
class NA_Lucian_Top_Lucian(Ratings):
pass
class NA_Lucian_Top_Lulu(Ratings):
pass
class NA_Lucian_Top_Lux(Ratings):
pass
class NA_Lucian_Top_Malphite(Ratings):
pass
class NA_Lucian_Top_Malzahar(Ratings):
pass
class NA_Lucian_Top_Maokai(Ratings):
pass
class NA_Lucian_Top_MasterYi(Ratings):
pass
class NA_Lucian_Top_MissFortune(Ratings):
pass
class NA_Lucian_Top_MonkeyKing(Ratings):
pass
class NA_Lucian_Top_Mordekaiser(Ratings):
pass
class NA_Lucian_Top_Morgana(Ratings):
pass
class NA_Lucian_Top_Nami(Ratings):
pass
class NA_Lucian_Top_Nasus(Ratings):
pass
class NA_Lucian_Top_Nautilus(Ratings):
pass
class NA_Lucian_Top_Nidalee(Ratings):
pass
class NA_Lucian_Top_Nocturne(Ratings):
pass
class NA_Lucian_Top_Nunu(Ratings):
pass
class NA_Lucian_Top_Olaf(Ratings):
pass
class NA_Lucian_Top_Orianna(Ratings):
pass
class NA_Lucian_Top_Ornn(Ratings):
pass
class NA_Lucian_Top_Pantheon(Ratings):
pass
class NA_Lucian_Top_Poppy(Ratings):
pass
class NA_Lucian_Top_Quinn(Ratings):
pass
class NA_Lucian_Top_Rakan(Ratings):
pass
class NA_Lucian_Top_Rammus(Ratings):
pass
class NA_Lucian_Top_RekSai(Ratings):
pass
class NA_Lucian_Top_Renekton(Ratings):
pass
class NA_Lucian_Top_Rengar(Ratings):
pass
class NA_Lucian_Top_Riven(Ratings):
pass
class NA_Lucian_Top_Rumble(Ratings):
pass
class NA_Lucian_Top_Ryze(Ratings):
pass
class NA_Lucian_Top_Sejuani(Ratings):
pass
class NA_Lucian_Top_Shaco(Ratings):
pass
class NA_Lucian_Top_Shen(Ratings):
pass
class NA_Lucian_Top_Shyvana(Ratings):
pass
class NA_Lucian_Top_Singed(Ratings):
pass
class NA_Lucian_Top_Sion(Ratings):
pass
class NA_Lucian_Top_Sivir(Ratings):
pass
class NA_Lucian_Top_Skarner(Ratings):
pass
class NA_Lucian_Top_Sona(Ratings):
pass
class NA_Lucian_Top_Soraka(Ratings):
pass
class NA_Lucian_Top_Swain(Ratings):
pass
class NA_Lucian_Top_Syndra(Ratings):
pass
class NA_Lucian_Top_TahmKench(Ratings):
pass
class NA_Lucian_Top_Taliyah(Ratings):
pass
class NA_Lucian_Top_Talon(Ratings):
pass
class NA_Lucian_Top_Taric(Ratings):
pass
class NA_Lucian_Top_Teemo(Ratings):
pass
class NA_Lucian_Top_Thresh(Ratings):
pass
class NA_Lucian_Top_Tristana(Ratings):
pass
class NA_Lucian_Top_Trundle(Ratings):
pass
class NA_Lucian_Top_Tryndamere(Ratings):
pass
class NA_Lucian_Top_TwistedFate(Ratings):
pass
class NA_Lucian_Top_Twitch(Ratings):
pass
class NA_Lucian_Top_Udyr(Ratings):
pass
class NA_Lucian_Top_Urgot(Ratings):
pass
class NA_Lucian_Top_Varus(Ratings):
pass
class NA_Lucian_Top_Vayne(Ratings):
pass
class NA_Lucian_Top_Veigar(Ratings):
pass
class NA_Lucian_Top_Velkoz(Ratings):
pass
class NA_Lucian_Top_Vi(Ratings):
pass
class NA_Lucian_Top_Viktor(Ratings):
pass
class NA_Lucian_Top_Vladimir(Ratings):
pass
class NA_Lucian_Top_Volibear(Ratings):
pass
class NA_Lucian_Top_Warwick(Ratings):
pass
class NA_Lucian_Top_Xayah(Ratings):
pass
class NA_Lucian_Top_Xerath(Ratings):
pass
class NA_Lucian_Top_XinZhao(Ratings):
pass
class NA_Lucian_Top_Yasuo(Ratings):
pass
class NA_Lucian_Top_Yorick(Ratings):
pass
class NA_Lucian_Top_Zac(Ratings):
pass
class NA_Lucian_Top_Zed(Ratings):
pass
class NA_Lucian_Top_Ziggs(Ratings):
pass
class NA_Lucian_Top_Zilean(Ratings):
pass
class NA_Lucian_Top_Zyra(Ratings):
pass
| 15.695444
| 46
| 0.766692
| 972
| 6,545
| 4.736626
| 0.151235
| 0.209818
| 0.389661
| 0.479583
| 0.803432
| 0.803432
| 0
| 0
| 0
| 0
| 0
| 0
| 0.169748
| 6,545
| 416
| 47
| 15.733173
| 0.847258
| 0
| 0
| 0.498195
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0.498195
| 0.00361
| 0
| 0.501805
| 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
| 1
| 0
|
0
| 8
|
35793cbca592c4b9ee3212bf83fb2401d5e325fc
| 610
|
py
|
Python
|
train_covid19china_timm-regnetx_002_elastic_transform.py
|
BrunoKrinski/segtool
|
cb604b5f38104c43a76450136e37c3d1c4b6d275
|
[
"MIT"
] | null | null | null |
train_covid19china_timm-regnetx_002_elastic_transform.py
|
BrunoKrinski/segtool
|
cb604b5f38104c43a76450136e37c3d1c4b6d275
|
[
"MIT"
] | null | null | null |
train_covid19china_timm-regnetx_002_elastic_transform.py
|
BrunoKrinski/segtool
|
cb604b5f38104c43a76450136e37c3d1c4b6d275
|
[
"MIT"
] | null | null | null |
import os
ls=["python main.py --configs configs/train_covid19china_unetplusplus_timm-regnetx_002_fold0_elastic_transform.yml",
"python main.py --configs configs/train_covid19china_unetplusplus_timm-regnetx_002_fold1_elastic_transform.yml",
"python main.py --configs configs/train_covid19china_unetplusplus_timm-regnetx_002_fold2_elastic_transform.yml",
"python main.py --configs configs/train_covid19china_unetplusplus_timm-regnetx_002_fold3_elastic_transform.yml",
"python main.py --configs configs/train_covid19china_unetplusplus_timm-regnetx_002_fold4_elastic_transform.yml",
]
for l in ls:
os.system(l)
| 55.454545
| 116
| 0.863934
| 85
| 610
| 5.788235
| 0.294118
| 0.101626
| 0.121951
| 0.193089
| 0.855691
| 0.855691
| 0.855691
| 0.855691
| 0.855691
| 0.855691
| 0
| 0.051813
| 0.05082
| 610
| 11
| 117
| 55.454545
| 0.797927
| 0
| 0
| 0
| 0
| 0
| 0.89198
| 0.687398
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.111111
| 0
| 0.111111
| 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
| 1
| 1
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 9
|
35866670f0bca730a1e155c60618725c8f9c74a8
| 2,149
|
py
|
Python
|
myapp/migrations/0003_auto_20210512_1137.py
|
hrishikeshkini/Carinfinity_machine_learning_project
|
a8fbfd994a1d1cae1e64869979ba0c8cf68a87f1
|
[
"MIT"
] | null | null | null |
myapp/migrations/0003_auto_20210512_1137.py
|
hrishikeshkini/Carinfinity_machine_learning_project
|
a8fbfd994a1d1cae1e64869979ba0c8cf68a87f1
|
[
"MIT"
] | null | null | null |
myapp/migrations/0003_auto_20210512_1137.py
|
hrishikeshkini/Carinfinity_machine_learning_project
|
a8fbfd994a1d1cae1e64869979ba0c8cf68a87f1
|
[
"MIT"
] | null | null | null |
# Generated by Django 3.2.2 on 2021-05-12 06:07
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('myapp', '0002_auto_20210508_1726'),
]
operations = [
migrations.AlterField(
model_name='appointment',
name='id',
field=models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID'),
),
migrations.AlterField(
model_name='contactus',
name='id',
field=models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID'),
),
migrations.AlterField(
model_name='listingcar',
name='id',
field=models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID'),
),
migrations.AlterField(
model_name='newcar',
name='id',
field=models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID'),
),
migrations.AlterField(
model_name='newsletter',
name='id',
field=models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID'),
),
migrations.AlterField(
model_name='testemonial',
name='id',
field=models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID'),
),
migrations.AlterField(
model_name='upcomingcar',
name='id',
field=models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID'),
),
migrations.AlterField(
model_name='usedcar',
name='id',
field=models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID'),
),
migrations.AlterField(
model_name='userotp',
name='id',
field=models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID'),
),
]
| 36.423729
| 111
| 0.602606
| 218
| 2,149
| 5.761468
| 0.215596
| 0.085987
| 0.17914
| 0.207803
| 0.79379
| 0.79379
| 0.79379
| 0.79379
| 0.79379
| 0.79379
| 0
| 0.019936
| 0.276408
| 2,149
| 58
| 112
| 37.051724
| 0.787781
| 0.02094
| 0
| 0.692308
| 1
| 0
| 0.069458
| 0.010942
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.019231
| 0
| 0.076923
| 0
| 0
| 0
| 0
| null | 0
| 0
| 1
| 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
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
ea1e1f8e267f891f3bd3f695716fc8f4fd4ac31f
| 69
|
py
|
Python
|
ux/kpis/__init__.py
|
vahndi/ux
|
8acb3c07327e547ee948788536b6d6d1d7815bb2
|
[
"MIT"
] | null | null | null |
ux/kpis/__init__.py
|
vahndi/ux
|
8acb3c07327e547ee948788536b6d6d1d7815bb2
|
[
"MIT"
] | 43
|
2019-05-30T12:26:52.000Z
|
2020-08-02T21:57:24.000Z
|
ux/kpis/__init__.py
|
vahndi/ux
|
8acb3c07327e547ee948788536b6d6d1d7815bb2
|
[
"MIT"
] | null | null | null |
from ux.kpis.kpi import KPI
from ux.kpis.kpi_config import KPIConfig
| 23
| 40
| 0.826087
| 13
| 69
| 4.307692
| 0.538462
| 0.214286
| 0.357143
| 0.464286
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.115942
| 69
| 2
| 41
| 34.5
| 0.918033
| 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
|
ea25c5e8f9025ca3455bfcae2ea889bd1e02740b
| 160
|
py
|
Python
|
python/import/test.py
|
guoxiaoyong/simple-useful
|
63f483250cc5e96ef112aac7499ab9e3a35572a8
|
[
"CC0-1.0"
] | null | null | null |
python/import/test.py
|
guoxiaoyong/simple-useful
|
63f483250cc5e96ef112aac7499ab9e3a35572a8
|
[
"CC0-1.0"
] | null | null | null |
python/import/test.py
|
guoxiaoyong/simple-useful
|
63f483250cc5e96ef112aac7499ab9e3a35572a8
|
[
"CC0-1.0"
] | null | null | null |
import sys
from inmem_zip_importer import ZipImporter
from mypkg import test
from mypkg.test_submodule import test_submodule_func
test_submodule_func()
test()
| 20
| 52
| 0.8625
| 24
| 160
| 5.458333
| 0.458333
| 0.29771
| 0.259542
| 0.320611
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.10625
| 160
| 7
| 53
| 22.857143
| 0.916084
| 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
| 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
|
576b1c3d5f53ed9cc6f1daf1269ad901e14c0c0d
| 3,198
|
py
|
Python
|
test/pyaz/iot/hub/route/__init__.py
|
bigdatamoore/py-az-cli
|
54383a4ee7cc77556f6183e74e992eec95b28e01
|
[
"MIT"
] | null | null | null |
test/pyaz/iot/hub/route/__init__.py
|
bigdatamoore/py-az-cli
|
54383a4ee7cc77556f6183e74e992eec95b28e01
|
[
"MIT"
] | 9
|
2021-09-24T16:37:24.000Z
|
2021-12-24T00:39:19.000Z
|
test/pyaz/iot/hub/route/__init__.py
|
bigdatamoore/py-az-cli
|
54383a4ee7cc77556f6183e74e992eec95b28e01
|
[
"MIT"
] | null | null | null |
import json, subprocess
from .... pyaz_utils import get_cli_name, get_params
def create(hub_name, route_name, source_type, endpoint_name, enabled=None, condition=None, resource_group=None):
params = get_params(locals())
command = "az iot hub route create " + params
print(command)
output = subprocess.run(command, shell=True, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
stdout = output.stdout.decode("utf-8")
stderr = output.stderr.decode("utf-8")
if stdout:
return json.loads(stdout)
print(stdout)
else:
raise Exception(stderr)
print(stderr)
def show(hub_name, route_name, resource_group=None):
params = get_params(locals())
command = "az iot hub route show " + params
print(command)
output = subprocess.run(command, shell=True, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
stdout = output.stdout.decode("utf-8")
stderr = output.stderr.decode("utf-8")
if stdout:
return json.loads(stdout)
print(stdout)
else:
raise Exception(stderr)
print(stderr)
def list(hub_name, source_type=None, resource_group=None):
params = get_params(locals())
command = "az iot hub route list " + params
print(command)
output = subprocess.run(command, shell=True, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
stdout = output.stdout.decode("utf-8")
stderr = output.stderr.decode("utf-8")
if stdout:
return json.loads(stdout)
print(stdout)
else:
raise Exception(stderr)
print(stderr)
def delete(hub_name, route_name=None, source_type=None, resource_group=None):
params = get_params(locals())
command = "az iot hub route delete " + params
print(command)
output = subprocess.run(command, shell=True, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
stdout = output.stdout.decode("utf-8")
stderr = output.stderr.decode("utf-8")
if stdout:
return json.loads(stdout)
print(stdout)
else:
raise Exception(stderr)
print(stderr)
def update(hub_name, route_name, source_type=None, endpoint_name=None, enabled=None, condition=None, resource_group=None):
params = get_params(locals())
command = "az iot hub route update " + params
print(command)
output = subprocess.run(command, shell=True, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
stdout = output.stdout.decode("utf-8")
stderr = output.stderr.decode("utf-8")
if stdout:
return json.loads(stdout)
print(stdout)
else:
raise Exception(stderr)
print(stderr)
def test(hub_name, route_name=None, source_type=None, body=None, app_properties=None, system_properties=None, resource_group=None):
params = get_params(locals())
command = "az iot hub route test " + params
print(command)
output = subprocess.run(command, shell=True, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
stdout = output.stdout.decode("utf-8")
stderr = output.stderr.decode("utf-8")
if stdout:
return json.loads(stdout)
print(stdout)
else:
raise Exception(stderr)
print(stderr)
| 36.340909
| 131
| 0.671044
| 407
| 3,198
| 5.184275
| 0.127764
| 0.079621
| 0.056872
| 0.065403
| 0.897156
| 0.897156
| 0.872512
| 0.872512
| 0.846919
| 0.846919
| 0
| 0.004771
| 0.213571
| 3,198
| 87
| 132
| 36.758621
| 0.834195
| 0
| 0
| 0.825
| 0
| 0
| 0.061914
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.075
| false
| 0
| 0.025
| 0
| 0.175
| 0.225
| 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
|
579d2e7ee1a1a5bc0655577a7aad0de084fae977
| 15,709
|
py
|
Python
|
test/terra/backends/qasm_simulator/qasm_snapshot.py
|
kyeteraydeniz/qiskit-aer
|
382ccd2b55df65f943e8da543335a79cb224c200
|
[
"Apache-2.0"
] | null | null | null |
test/terra/backends/qasm_simulator/qasm_snapshot.py
|
kyeteraydeniz/qiskit-aer
|
382ccd2b55df65f943e8da543335a79cb224c200
|
[
"Apache-2.0"
] | null | null | null |
test/terra/backends/qasm_simulator/qasm_snapshot.py
|
kyeteraydeniz/qiskit-aer
|
382ccd2b55df65f943e8da543335a79cb224c200
|
[
"Apache-2.0"
] | null | null | null |
# This code is part of Qiskit.
#
# (C) Copyright IBM 2018, 2019.
#
# This code is licensed under the Apache License, Version 2.0. You may
# obtain a copy of this license in the LICENSE.txt file in the root directory
# of this source tree or at http://www.apache.org/licenses/LICENSE-2.0.
#
# Any modifications or derivative works of this code must retain this
# copyright notice, and modified files need to carry a notice indicating
# that they have been altered from the originals.
"""
QasmSimulator Integration Tests for Snapshot instructions
"""
import logging
import numpy as np
from qiskit.compiler import assemble
from qiskit.quantum_info.operators import Pauli
from qiskit.providers.aer import QasmSimulator
from qiskit.providers.aer import AerError
from test.terra.reference.ref_snapshot_state import (
snapshot_state_circuits_deterministic, snapshot_state_counts_deterministic,
snapshot_state_pre_measure_statevector_deterministic,
snapshot_state_post_measure_statevector_deterministic,
snapshot_state_circuits_nondeterministic,
snapshot_state_counts_nondeterministic,
snapshot_state_pre_measure_statevector_nondeterministic,
snapshot_state_post_measure_statevector_nondeterministic)
class QasmSnapshotStatevectorTests:
"""QasmSimulator snapshot statevector tests."""
SIMULATOR = QasmSimulator()
SUPPORTED_QASM_METHODS = [
'automatic', 'statevector', 'matrix_product_state'
]
BACKEND_OPTS = {}
def statevector_snapshots(self, data, label):
"""Format snapshots as list of Numpy arrays"""
# Check snapshot entry exists in data
self.assertIn("snapshots", data)
self.assertIn("statevector", data["snapshots"])
self.assertIn(label, data["snapshots"]["statevector"])
# Format output as list of numpy array
snaps = data["snapshots"]["statevector"][label]
statevecs = []
for snap in snaps:
svec = np.array(snap)
statevecs.append(svec[:, 0] + 1j * svec[:, 1])
return statevecs
def test_snapshot_statevector_pre_measure_det(self):
"""Test snapshot statevector before deterministic final measurement"""
shots = 10
label = "snap"
counts_targets = snapshot_state_counts_deterministic(shots)
statevec_targets = snapshot_state_pre_measure_statevector_deterministic(
)
circuits = snapshot_state_circuits_deterministic(label,
'statevector',
post_measure=False)
qobj = assemble(circuits, self.SIMULATOR, shots=shots)
job = self.SIMULATOR.run(qobj,
backend_options=self.BACKEND_OPTS)
method = self.BACKEND_OPTS.get('method', 'automatic')
if method not in QasmSnapshotStatevectorTests.SUPPORTED_QASM_METHODS:
self.assertRaises(AerError, job.result)
else:
result = job.result()
self.is_completed(result)
self.compare_counts(result, circuits, counts_targets, delta=0)
# Check snapshots
for j, circuit in enumerate(circuits):
data = result.data(circuit)
snaps = self.statevector_snapshots(data, label)
self.assertTrue(len(snaps), 1)
target = statevec_targets[j]
value = snaps[0]
self.assertTrue(np.allclose(value, target))
def test_snapshot_statevector_pre_measure_nondet(self):
"""Test snapshot statevector before non-deterministic final measurement"""
shots = 100
label = "snap"
counts_targets = snapshot_state_counts_nondeterministic(shots)
statevec_targets = snapshot_state_pre_measure_statevector_nondeterministic(
)
circuits = snapshot_state_circuits_nondeterministic(label,
'statevector',
post_measure=False)
qobj = assemble(circuits, self.SIMULATOR, shots=shots)
job = self.SIMULATOR.run(qobj,
backend_options=self.BACKEND_OPTS)
method = self.BACKEND_OPTS.get('method', 'automatic')
if method not in QasmSnapshotStatevectorTests.SUPPORTED_QASM_METHODS:
self.assertRaises(AerError, job.result)
else:
result = job.result()
self.is_completed(result)
self.compare_counts(result,
circuits,
counts_targets,
delta=0.2 * shots)
# Check snapshots
for j, circuit in enumerate(circuits):
data = result.data(circuit)
snaps = self.statevector_snapshots(data, label)
self.assertTrue(len(snaps), 1)
target = statevec_targets[j]
value = snaps[0]
self.assertTrue(np.allclose(value, target))
def test_snapshot_statevector_post_measure_det(self):
"""Test snapshot statevector after deterministic final measurement"""
shots = 10
label = "snap"
counts_targets = snapshot_state_counts_deterministic(shots)
statevec_targets = snapshot_state_post_measure_statevector_deterministic(
)
circuits = snapshot_state_circuits_deterministic(label,
'statevector',
post_measure=True)
qobj = assemble(circuits, self.SIMULATOR, memory=True, shots=shots)
job = self.SIMULATOR.run(qobj,
backend_options=self.BACKEND_OPTS)
method = self.BACKEND_OPTS.get('method', 'automatic')
if method not in QasmSnapshotStatevectorTests.SUPPORTED_QASM_METHODS:
logging.getLogger().setLevel(logging.CRITICAL)
self.assertRaises(AerError, job.result)
else:
result = job.result()
self.is_completed(result)
self.compare_counts(result, circuits, counts_targets, delta=0)
# Check snapshots
for i, circuit in enumerate(circuits):
data = result.data(circuit)
snaps = self.statevector_snapshots(data, label)
for j, mem in enumerate(data['memory']):
target = statevec_targets[i].get(mem)
self.assertTrue(np.allclose(snaps[j], target))
def test_snapshot_statevector_post_measure_nondet(self):
"""Test snapshot statevector after non-deterministic final measurement"""
shots = 100
label = "snap"
counts_targets = snapshot_state_counts_nondeterministic(shots)
statevec_targets = snapshot_state_post_measure_statevector_nondeterministic(
)
circuits = snapshot_state_circuits_nondeterministic(label,
'statevector',
post_measure=True)
qobj = assemble(circuits, self.SIMULATOR, memory=True, shots=shots)
job = self.SIMULATOR.run(qobj,
backend_options=self.BACKEND_OPTS)
method = self.BACKEND_OPTS.get('method', 'automatic')
if method not in QasmSnapshotStatevectorTests.SUPPORTED_QASM_METHODS:
self.assertRaises(AerError, job.result)
else:
result = job.result()
self.is_completed(result)
self.compare_counts(result,
circuits,
counts_targets,
delta=0.2 * shots)
# Check snapshots
for i, circuit in enumerate(circuits):
data = result.data(circuit)
snaps = self.statevector_snapshots(data, label)
for j, mem in enumerate(data['memory']):
target = statevec_targets[i].get(mem)
self.assertTrue(np.allclose(snaps[j], target))
class QasmSnapshotStabilizerTests:
"""QasmSimulator method snapshot stabilizer tests."""
SIMULATOR = QasmSimulator()
SUPPORTED_QASM_METHODS = ['automatic', 'stabilizer']
BACKEND_OPTS = {}
def stabilizer_snapshots(self, data, label):
"""Format snapshots as list of Numpy arrays"""
# Check snapshot entry exists in data
self.assertIn("snapshots", data)
self.assertIn("stabilizer", data["snapshots"])
self.assertIn(label, data["snapshots"]["stabilizer"])
# Format output as list of numpy array
return data["snapshots"]["stabilizer"][label]
@staticmethod
def stabilizes_statevector(stabilizer, statevector):
"""Return True if two stabilizer states are equal."""
# Get stabilizer and destabilizers and convert to sets
for stab in stabilizer:
if stab[0] == '-':
pauli_mat = -1 * Pauli.from_label(stab[1:]).to_matrix()
else:
pauli_mat = Pauli.from_label(stab).to_matrix()
val = statevector.conj().dot(pauli_mat.dot(statevector))
if not np.isclose(val, 1):
return False
return True
def test_snapshot_stabilizer_pre_measure_det(self):
"""Test snapshot stabilizer before deterministic final measurement"""
shots = 10
label = "snap"
counts_targets = snapshot_state_counts_deterministic(shots)
statevec_targets = snapshot_state_pre_measure_statevector_deterministic(
)
circuits = snapshot_state_circuits_deterministic(label,
'stabilizer',
post_measure=False)
qobj = assemble(circuits, self.SIMULATOR, shots=shots)
job = self.SIMULATOR.run(qobj,
backend_options=self.BACKEND_OPTS)
method = self.BACKEND_OPTS.get('method', 'automatic')
if method not in QasmSnapshotStabilizerTests.SUPPORTED_QASM_METHODS:
self.assertRaises(AerError, job.result)
else:
result = job.result()
self.is_completed(result)
self.compare_counts(result, circuits, counts_targets, delta=0)
# Check snapshots
for j, circuit in enumerate(circuits):
data = result.data(circuit)
snaps = self.stabilizer_snapshots(data, label)
self.assertEqual(len(snaps), 1)
statevec = statevec_targets[j]
stabilizer = snaps[0]
self.assertTrue(
self.stabilizes_statevector(stabilizer, statevec))
def test_snapshot_stabilizer_pre_measure_nondet(self):
"""Test snapshot stabilizer before non-deterministic final measurement"""
shots = 100
label = "snap"
counts_targets = snapshot_state_counts_nondeterministic(shots)
statevec_targets = snapshot_state_pre_measure_statevector_nondeterministic(
)
circuits = snapshot_state_circuits_nondeterministic(label,
'stabilizer',
post_measure=False)
qobj = assemble(circuits, self.SIMULATOR, shots=shots)
job = self.SIMULATOR.run(qobj,
backend_options=self.BACKEND_OPTS)
method = self.BACKEND_OPTS.get('method', 'automatic')
if method not in QasmSnapshotStabilizerTests.SUPPORTED_QASM_METHODS:
self.assertRaises(AerError, job.result)
else:
result = job.result()
self.is_completed(result)
self.compare_counts(result,
circuits,
counts_targets,
delta=0.2 * shots)
# Check snapshots
for j, circuit in enumerate(circuits):
data = result.data(circuit)
snaps = self.stabilizer_snapshots(data, label)
self.assertEqual(len(snaps), 1)
statevec = statevec_targets[j]
stabilizer = snaps[0]
self.assertTrue(
self.stabilizes_statevector(stabilizer, statevec))
def test_snapshot_stabilizer_post_measure_det(self):
"""Test snapshot stabilizer after deterministic final measurement"""
shots = 10
label = "snap"
counts_targets = snapshot_state_counts_deterministic(shots)
statevec_targets = snapshot_state_post_measure_statevector_deterministic(
)
circuits = snapshot_state_circuits_deterministic(label,
'stabilizer',
post_measure=True)
qobj = assemble(circuits, self.SIMULATOR, memory=True, shots=shots)
job = self.SIMULATOR.run(qobj,
backend_options=self.BACKEND_OPTS)
method = self.BACKEND_OPTS.get('method', 'automatic')
if method not in QasmSnapshotStabilizerTests.SUPPORTED_QASM_METHODS:
self.assertRaises(AerError, job.result)
else:
result = job.result()
self.is_completed(result)
self.compare_counts(result, circuits, counts_targets, delta=0)
# Check snapshots
for i, circuit in enumerate(circuits):
data = result.data(circuit)
snaps = self.stabilizer_snapshots(data, label)
for j, mem in enumerate(data['memory']):
statevec = statevec_targets[i].get(mem)
stabilizer = snaps[j]
self.assertTrue(
self.stabilizes_statevector(stabilizer, statevec))
def test_snapshot_stabilizer_post_measure_nondet(self):
"""Test snapshot stabilizer after non-deterministic final measurement"""
shots = 100
label = "snap"
counts_targets = snapshot_state_counts_nondeterministic(shots)
statevec_targets = snapshot_state_post_measure_statevector_nondeterministic(
)
circuits = snapshot_state_circuits_nondeterministic(label,
'stabilizer',
post_measure=True)
qobj = assemble(circuits, self.SIMULATOR, memory=True, shots=shots)
job = self.SIMULATOR.run(qobj,
backend_options=self.BACKEND_OPTS)
method = self.BACKEND_OPTS.get('method', 'automatic')
if method not in QasmSnapshotStabilizerTests.SUPPORTED_QASM_METHODS:
self.assertRaises(AerError, job.result)
else:
result = job.result()
self.is_completed(result)
self.compare_counts(result,
circuits,
counts_targets,
delta=0.2 * shots)
# Check snapshots
for i, circuit in enumerate(circuits):
data = result.data(circuit)
snaps = self.stabilizer_snapshots(data, label)
for j, mem in enumerate(data['memory']):
statevec = statevec_targets[i].get(mem)
stabilizer = snaps[j]
self.assertTrue(
self.stabilizes_statevector(stabilizer, statevec))
| 45.798834
| 84
| 0.592718
| 1,490
| 15,709
| 6.055034
| 0.12349
| 0.04755
| 0.035469
| 0.030149
| 0.835624
| 0.827976
| 0.768677
| 0.734759
| 0.734759
| 0.734759
| 0
| 0.005621
| 0.331784
| 15,709
| 342
| 85
| 45.932749
| 0.853863
| 0.10147
| 0
| 0.78022
| 0
| 0
| 0.032456
| 0
| 0
| 0
| 0
| 0
| 0.095238
| 1
| 0.040293
| false
| 0
| 0.025641
| 0
| 0.10989
| 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
|
57a2df0506ed7b61366afd8e92f1dca559401b1c
| 23,508
|
py
|
Python
|
sdk/python/pulumi_gcp/compute/global_network_endpoint_group.py
|
sisisin/pulumi-gcp
|
af6681d70ea457843409110c1324817fe55f68ad
|
[
"ECL-2.0",
"Apache-2.0"
] | 121
|
2018-06-18T19:16:42.000Z
|
2022-03-31T06:06:48.000Z
|
sdk/python/pulumi_gcp/compute/global_network_endpoint_group.py
|
sisisin/pulumi-gcp
|
af6681d70ea457843409110c1324817fe55f68ad
|
[
"ECL-2.0",
"Apache-2.0"
] | 492
|
2018-06-22T19:41:03.000Z
|
2022-03-31T15:33:53.000Z
|
sdk/python/pulumi_gcp/compute/global_network_endpoint_group.py
|
sisisin/pulumi-gcp
|
af6681d70ea457843409110c1324817fe55f68ad
|
[
"ECL-2.0",
"Apache-2.0"
] | 43
|
2018-06-19T01:43:13.000Z
|
2022-03-23T22:43:37.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__ = ['GlobalNetworkEndpointGroupArgs', 'GlobalNetworkEndpointGroup']
@pulumi.input_type
class GlobalNetworkEndpointGroupArgs:
def __init__(__self__, *,
network_endpoint_type: pulumi.Input[str],
default_port: Optional[pulumi.Input[int]] = None,
description: Optional[pulumi.Input[str]] = None,
name: Optional[pulumi.Input[str]] = None,
project: Optional[pulumi.Input[str]] = None):
"""
The set of arguments for constructing a GlobalNetworkEndpointGroup resource.
:param pulumi.Input[str] network_endpoint_type: Type of network endpoints in this network endpoint group.
Possible values are `INTERNET_IP_PORT` and `INTERNET_FQDN_PORT`.
:param pulumi.Input[int] default_port: The default port used if the port number is not specified in the
network endpoint.
:param pulumi.Input[str] description: An optional description of this resource. Provide this property when
you create the resource.
:param pulumi.Input[str] name: Name of the resource; provided by the client when the resource is
created. The name must be 1-63 characters long, and comply with
RFC1035. Specifically, the name must be 1-63 characters long and match
the regular expression `a-z?` which means the
first character must be a lowercase letter, and all following
characters must be a dash, lowercase letter, or digit, except the last
character, which cannot be a dash.
:param pulumi.Input[str] project: The ID of the project in which the resource belongs.
If it is not provided, the provider project is used.
"""
pulumi.set(__self__, "network_endpoint_type", network_endpoint_type)
if default_port is not None:
pulumi.set(__self__, "default_port", default_port)
if description is not None:
pulumi.set(__self__, "description", description)
if name is not None:
pulumi.set(__self__, "name", name)
if project is not None:
pulumi.set(__self__, "project", project)
@property
@pulumi.getter(name="networkEndpointType")
def network_endpoint_type(self) -> pulumi.Input[str]:
"""
Type of network endpoints in this network endpoint group.
Possible values are `INTERNET_IP_PORT` and `INTERNET_FQDN_PORT`.
"""
return pulumi.get(self, "network_endpoint_type")
@network_endpoint_type.setter
def network_endpoint_type(self, value: pulumi.Input[str]):
pulumi.set(self, "network_endpoint_type", value)
@property
@pulumi.getter(name="defaultPort")
def default_port(self) -> Optional[pulumi.Input[int]]:
"""
The default port used if the port number is not specified in the
network endpoint.
"""
return pulumi.get(self, "default_port")
@default_port.setter
def default_port(self, value: Optional[pulumi.Input[int]]):
pulumi.set(self, "default_port", value)
@property
@pulumi.getter
def description(self) -> Optional[pulumi.Input[str]]:
"""
An optional description of this resource. Provide this property when
you create the resource.
"""
return pulumi.get(self, "description")
@description.setter
def description(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "description", value)
@property
@pulumi.getter
def name(self) -> Optional[pulumi.Input[str]]:
"""
Name of the resource; provided by the client when the resource is
created. The name must be 1-63 characters long, and comply with
RFC1035. Specifically, the name must be 1-63 characters long and match
the regular expression `a-z?` which means the
first character must be a lowercase letter, and all following
characters must be a dash, lowercase letter, or digit, except the last
character, which cannot be a dash.
"""
return pulumi.get(self, "name")
@name.setter
def name(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "name", value)
@property
@pulumi.getter
def project(self) -> Optional[pulumi.Input[str]]:
"""
The ID of the project in which the resource belongs.
If it is not provided, the provider project is used.
"""
return pulumi.get(self, "project")
@project.setter
def project(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "project", value)
@pulumi.input_type
class _GlobalNetworkEndpointGroupState:
def __init__(__self__, *,
default_port: Optional[pulumi.Input[int]] = None,
description: Optional[pulumi.Input[str]] = None,
name: Optional[pulumi.Input[str]] = None,
network_endpoint_type: Optional[pulumi.Input[str]] = None,
project: Optional[pulumi.Input[str]] = None,
self_link: Optional[pulumi.Input[str]] = None):
"""
Input properties used for looking up and filtering GlobalNetworkEndpointGroup resources.
:param pulumi.Input[int] default_port: The default port used if the port number is not specified in the
network endpoint.
:param pulumi.Input[str] description: An optional description of this resource. Provide this property when
you create the resource.
:param pulumi.Input[str] name: Name of the resource; provided by the client when the resource is
created. The name must be 1-63 characters long, and comply with
RFC1035. Specifically, the name must be 1-63 characters long and match
the regular expression `a-z?` which means the
first character must be a lowercase letter, and all following
characters must be a dash, lowercase letter, or digit, except the last
character, which cannot be a dash.
:param pulumi.Input[str] network_endpoint_type: Type of network endpoints in this network endpoint group.
Possible values are `INTERNET_IP_PORT` and `INTERNET_FQDN_PORT`.
:param pulumi.Input[str] project: The ID of the project in which the resource belongs.
If it is not provided, the provider project is used.
:param pulumi.Input[str] self_link: The URI of the created resource.
"""
if default_port is not None:
pulumi.set(__self__, "default_port", default_port)
if description is not None:
pulumi.set(__self__, "description", description)
if name is not None:
pulumi.set(__self__, "name", name)
if network_endpoint_type is not None:
pulumi.set(__self__, "network_endpoint_type", network_endpoint_type)
if project is not None:
pulumi.set(__self__, "project", project)
if self_link is not None:
pulumi.set(__self__, "self_link", self_link)
@property
@pulumi.getter(name="defaultPort")
def default_port(self) -> Optional[pulumi.Input[int]]:
"""
The default port used if the port number is not specified in the
network endpoint.
"""
return pulumi.get(self, "default_port")
@default_port.setter
def default_port(self, value: Optional[pulumi.Input[int]]):
pulumi.set(self, "default_port", value)
@property
@pulumi.getter
def description(self) -> Optional[pulumi.Input[str]]:
"""
An optional description of this resource. Provide this property when
you create the resource.
"""
return pulumi.get(self, "description")
@description.setter
def description(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "description", value)
@property
@pulumi.getter
def name(self) -> Optional[pulumi.Input[str]]:
"""
Name of the resource; provided by the client when the resource is
created. The name must be 1-63 characters long, and comply with
RFC1035. Specifically, the name must be 1-63 characters long and match
the regular expression `a-z?` which means the
first character must be a lowercase letter, and all following
characters must be a dash, lowercase letter, or digit, except the last
character, which cannot be a dash.
"""
return pulumi.get(self, "name")
@name.setter
def name(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "name", value)
@property
@pulumi.getter(name="networkEndpointType")
def network_endpoint_type(self) -> Optional[pulumi.Input[str]]:
"""
Type of network endpoints in this network endpoint group.
Possible values are `INTERNET_IP_PORT` and `INTERNET_FQDN_PORT`.
"""
return pulumi.get(self, "network_endpoint_type")
@network_endpoint_type.setter
def network_endpoint_type(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "network_endpoint_type", value)
@property
@pulumi.getter
def project(self) -> Optional[pulumi.Input[str]]:
"""
The ID of the project in which the resource belongs.
If it is not provided, the provider project is used.
"""
return pulumi.get(self, "project")
@project.setter
def project(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "project", value)
@property
@pulumi.getter(name="selfLink")
def self_link(self) -> Optional[pulumi.Input[str]]:
"""
The URI of the created resource.
"""
return pulumi.get(self, "self_link")
@self_link.setter
def self_link(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "self_link", value)
class GlobalNetworkEndpointGroup(pulumi.CustomResource):
@overload
def __init__(__self__,
resource_name: str,
opts: Optional[pulumi.ResourceOptions] = None,
default_port: Optional[pulumi.Input[int]] = None,
description: Optional[pulumi.Input[str]] = None,
name: Optional[pulumi.Input[str]] = None,
network_endpoint_type: Optional[pulumi.Input[str]] = None,
project: Optional[pulumi.Input[str]] = None,
__props__=None):
"""
A global network endpoint group contains endpoints that reside outside of Google Cloud.
Currently a global network endpoint group can only support a single endpoint.
Recreating a global network endpoint group that's in use by another resource will give a
`resourceInUseByAnotherResource` error. Use `lifecycle.create_before_destroy`
to avoid this type of error.
To get more information about GlobalNetworkEndpointGroup, see:
* [API documentation](https://cloud.google.com/compute/docs/reference/rest/beta/networkEndpointGroups)
* How-to Guides
* [Official Documentation](https://cloud.google.com/load-balancing/docs/negs/internet-neg-concepts)
## Example Usage
### Global Network Endpoint Group
```python
import pulumi
import pulumi_gcp as gcp
neg = gcp.compute.GlobalNetworkEndpointGroup("neg",
default_port=90,
network_endpoint_type="INTERNET_FQDN_PORT")
```
### Global Network Endpoint Group Ip Address
```python
import pulumi
import pulumi_gcp as gcp
neg = gcp.compute.GlobalNetworkEndpointGroup("neg",
default_port=90,
network_endpoint_type="INTERNET_IP_PORT")
```
## Import
GlobalNetworkEndpointGroup can be imported using any of these accepted formats
```sh
$ pulumi import gcp:compute/globalNetworkEndpointGroup:GlobalNetworkEndpointGroup default projects/{{project}}/global/networkEndpointGroups/{{name}}
```
```sh
$ pulumi import gcp:compute/globalNetworkEndpointGroup:GlobalNetworkEndpointGroup default {{project}}/{{name}}
```
```sh
$ pulumi import gcp:compute/globalNetworkEndpointGroup:GlobalNetworkEndpointGroup default {{name}}
```
:param str resource_name: The name of the resource.
:param pulumi.ResourceOptions opts: Options for the resource.
:param pulumi.Input[int] default_port: The default port used if the port number is not specified in the
network endpoint.
:param pulumi.Input[str] description: An optional description of this resource. Provide this property when
you create the resource.
:param pulumi.Input[str] name: Name of the resource; provided by the client when the resource is
created. The name must be 1-63 characters long, and comply with
RFC1035. Specifically, the name must be 1-63 characters long and match
the regular expression `a-z?` which means the
first character must be a lowercase letter, and all following
characters must be a dash, lowercase letter, or digit, except the last
character, which cannot be a dash.
:param pulumi.Input[str] network_endpoint_type: Type of network endpoints in this network endpoint group.
Possible values are `INTERNET_IP_PORT` and `INTERNET_FQDN_PORT`.
:param pulumi.Input[str] project: The ID of the project in which the resource belongs.
If it is not provided, the provider project is used.
"""
...
@overload
def __init__(__self__,
resource_name: str,
args: GlobalNetworkEndpointGroupArgs,
opts: Optional[pulumi.ResourceOptions] = None):
"""
A global network endpoint group contains endpoints that reside outside of Google Cloud.
Currently a global network endpoint group can only support a single endpoint.
Recreating a global network endpoint group that's in use by another resource will give a
`resourceInUseByAnotherResource` error. Use `lifecycle.create_before_destroy`
to avoid this type of error.
To get more information about GlobalNetworkEndpointGroup, see:
* [API documentation](https://cloud.google.com/compute/docs/reference/rest/beta/networkEndpointGroups)
* How-to Guides
* [Official Documentation](https://cloud.google.com/load-balancing/docs/negs/internet-neg-concepts)
## Example Usage
### Global Network Endpoint Group
```python
import pulumi
import pulumi_gcp as gcp
neg = gcp.compute.GlobalNetworkEndpointGroup("neg",
default_port=90,
network_endpoint_type="INTERNET_FQDN_PORT")
```
### Global Network Endpoint Group Ip Address
```python
import pulumi
import pulumi_gcp as gcp
neg = gcp.compute.GlobalNetworkEndpointGroup("neg",
default_port=90,
network_endpoint_type="INTERNET_IP_PORT")
```
## Import
GlobalNetworkEndpointGroup can be imported using any of these accepted formats
```sh
$ pulumi import gcp:compute/globalNetworkEndpointGroup:GlobalNetworkEndpointGroup default projects/{{project}}/global/networkEndpointGroups/{{name}}
```
```sh
$ pulumi import gcp:compute/globalNetworkEndpointGroup:GlobalNetworkEndpointGroup default {{project}}/{{name}}
```
```sh
$ pulumi import gcp:compute/globalNetworkEndpointGroup:GlobalNetworkEndpointGroup default {{name}}
```
:param str resource_name: The name of the resource.
:param GlobalNetworkEndpointGroupArgs 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(GlobalNetworkEndpointGroupArgs, 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,
default_port: Optional[pulumi.Input[int]] = None,
description: Optional[pulumi.Input[str]] = None,
name: Optional[pulumi.Input[str]] = None,
network_endpoint_type: Optional[pulumi.Input[str]] = None,
project: 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__ = GlobalNetworkEndpointGroupArgs.__new__(GlobalNetworkEndpointGroupArgs)
__props__.__dict__["default_port"] = default_port
__props__.__dict__["description"] = description
__props__.__dict__["name"] = name
if network_endpoint_type is None and not opts.urn:
raise TypeError("Missing required property 'network_endpoint_type'")
__props__.__dict__["network_endpoint_type"] = network_endpoint_type
__props__.__dict__["project"] = project
__props__.__dict__["self_link"] = None
super(GlobalNetworkEndpointGroup, __self__).__init__(
'gcp:compute/globalNetworkEndpointGroup:GlobalNetworkEndpointGroup',
resource_name,
__props__,
opts)
@staticmethod
def get(resource_name: str,
id: pulumi.Input[str],
opts: Optional[pulumi.ResourceOptions] = None,
default_port: Optional[pulumi.Input[int]] = None,
description: Optional[pulumi.Input[str]] = None,
name: Optional[pulumi.Input[str]] = None,
network_endpoint_type: Optional[pulumi.Input[str]] = None,
project: Optional[pulumi.Input[str]] = None,
self_link: Optional[pulumi.Input[str]] = None) -> 'GlobalNetworkEndpointGroup':
"""
Get an existing GlobalNetworkEndpointGroup 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[int] default_port: The default port used if the port number is not specified in the
network endpoint.
:param pulumi.Input[str] description: An optional description of this resource. Provide this property when
you create the resource.
:param pulumi.Input[str] name: Name of the resource; provided by the client when the resource is
created. The name must be 1-63 characters long, and comply with
RFC1035. Specifically, the name must be 1-63 characters long and match
the regular expression `a-z?` which means the
first character must be a lowercase letter, and all following
characters must be a dash, lowercase letter, or digit, except the last
character, which cannot be a dash.
:param pulumi.Input[str] network_endpoint_type: Type of network endpoints in this network endpoint group.
Possible values are `INTERNET_IP_PORT` and `INTERNET_FQDN_PORT`.
:param pulumi.Input[str] project: The ID of the project in which the resource belongs.
If it is not provided, the provider project is used.
:param pulumi.Input[str] self_link: The URI of the created resource.
"""
opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
__props__ = _GlobalNetworkEndpointGroupState.__new__(_GlobalNetworkEndpointGroupState)
__props__.__dict__["default_port"] = default_port
__props__.__dict__["description"] = description
__props__.__dict__["name"] = name
__props__.__dict__["network_endpoint_type"] = network_endpoint_type
__props__.__dict__["project"] = project
__props__.__dict__["self_link"] = self_link
return GlobalNetworkEndpointGroup(resource_name, opts=opts, __props__=__props__)
@property
@pulumi.getter(name="defaultPort")
def default_port(self) -> pulumi.Output[Optional[int]]:
"""
The default port used if the port number is not specified in the
network endpoint.
"""
return pulumi.get(self, "default_port")
@property
@pulumi.getter
def description(self) -> pulumi.Output[Optional[str]]:
"""
An optional description of this resource. Provide this property when
you create the resource.
"""
return pulumi.get(self, "description")
@property
@pulumi.getter
def name(self) -> pulumi.Output[str]:
"""
Name of the resource; provided by the client when the resource is
created. The name must be 1-63 characters long, and comply with
RFC1035. Specifically, the name must be 1-63 characters long and match
the regular expression `a-z?` which means the
first character must be a lowercase letter, and all following
characters must be a dash, lowercase letter, or digit, except the last
character, which cannot be a dash.
"""
return pulumi.get(self, "name")
@property
@pulumi.getter(name="networkEndpointType")
def network_endpoint_type(self) -> pulumi.Output[str]:
"""
Type of network endpoints in this network endpoint group.
Possible values are `INTERNET_IP_PORT` and `INTERNET_FQDN_PORT`.
"""
return pulumi.get(self, "network_endpoint_type")
@property
@pulumi.getter
def project(self) -> pulumi.Output[str]:
"""
The ID of the project in which the resource belongs.
If it is not provided, the provider project is used.
"""
return pulumi.get(self, "project")
@property
@pulumi.getter(name="selfLink")
def self_link(self) -> pulumi.Output[str]:
"""
The URI of the created resource.
"""
return pulumi.get(self, "self_link")
| 44.105066
| 157
| 0.651608
| 2,753
| 23,508
| 5.399564
| 0.084272
| 0.0555
| 0.056509
| 0.05476
| 0.862159
| 0.846687
| 0.836529
| 0.828254
| 0.824823
| 0.811436
| 0
| 0.004573
| 0.265059
| 23,508
| 532
| 158
| 44.18797
| 0.85582
| 0.476093
| 0
| 0.709091
| 1
| 0
| 0.096718
| 0.034446
| 0
| 0
| 0
| 0
| 0
| 1
| 0.159091
| false
| 0.004545
| 0.022727
| 0
| 0.277273
| 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
|
57d7770a4eeb7e6b9c56b0074b3be688e3f4c1fc
| 702
|
py
|
Python
|
sizecompares/models.py
|
ProjectFFF/FFF
|
a563e2bb5aafe18d3fa3143d83b6558921eac8ee
|
[
"BSD-2-Clause"
] | 6
|
2020-09-02T18:48:28.000Z
|
2022-02-06T11:13:06.000Z
|
sizecompares/models.py
|
ProjectFFF/FFF
|
a563e2bb5aafe18d3fa3143d83b6558921eac8ee
|
[
"BSD-2-Clause"
] | 23
|
2020-09-04T08:57:28.000Z
|
2020-10-25T07:03:47.000Z
|
sizecompares/models.py
|
ProjectFFF/FFF
|
a563e2bb5aafe18d3fa3143d83b6558921eac8ee
|
[
"BSD-2-Clause"
] | null | null | null |
from django.db import models
# Create your models here.
class Compare(models.Model):
shoulder_compare = models.DecimalField(max_digits=6, decimal_places=3)
chest_compare = models.DecimalField(max_digits=6, decimal_places=3)
arm_compare = models.DecimalField(max_digits=6, decimal_places=3)
total_length_compare = models.DecimalField(max_digits=6, decimal_places=3)
class Result(models.Model):
shoulder_result = models.DecimalField(max_digits=6, decimal_places=3)
chest_result = models.DecimalField(max_digits=6, decimal_places=3)
arm_result = models.DecimalField(max_digits=6, decimal_places=3)
total_length_result = models.DecimalField(max_digits=6, decimal_places=3)
| 50.142857
| 78
| 0.793447
| 99
| 702
| 5.363636
| 0.242424
| 0.271186
| 0.316384
| 0.40678
| 0.80226
| 0.80226
| 0.80226
| 0.80226
| 0.80226
| 0.199623
| 0
| 0.025641
| 0.111111
| 702
| 14
| 79
| 50.142857
| 0.825321
| 0.034188
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.090909
| 0
| 1
| 0
| 0
| 0
| 0
| null | 1
| 1
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 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
| 1
| 0
|
0
| 9
|
17e4fcf0311cecd67f4ffdb50e754f329da5f3ff
| 83
|
py
|
Python
|
jedihttp/tests/fixtures/module/some_module/file2.py
|
vheon/jedihttp
|
d283a73f26cdf36069ef99353a072184f794e4d7
|
[
"Apache-2.0"
] | 47
|
2015-11-16T22:38:26.000Z
|
2018-07-30T18:17:32.000Z
|
jedihttp/tests/fixtures/module/some_module/file2.py
|
vheon/jedihttp
|
d283a73f26cdf36069ef99353a072184f794e4d7
|
[
"Apache-2.0"
] | 54
|
2015-10-09T01:30:09.000Z
|
2018-06-20T18:31:44.000Z
|
jedihttp/tests/fixtures/module/some_module/file2.py
|
vheon/jedihttp
|
d283a73f26cdf36069ef99353a072184f794e4d7
|
[
"Apache-2.0"
] | 17
|
2015-10-11T16:32:06.000Z
|
2021-05-13T05:54:14.000Z
|
from file1 import FILE1_CONSTANT
def file2_function():
return FILE1_CONSTANT
| 13.833333
| 32
| 0.795181
| 11
| 83
| 5.727273
| 0.727273
| 0.412698
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.057971
| 0.168675
| 83
| 5
| 33
| 16.6
| 0.855072
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.333333
| true
| 0
| 0.333333
| 0.333333
| 1
| 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
| 1
| 1
| 0
|
0
| 8
|
aa329e62e3d36a811592d8b80b9a02304bd50672
| 5,565
|
py
|
Python
|
tests/test_coords.py
|
sdarray/sdarray
|
1d655cfade351895b74ddffefa0a698ed768cda0
|
[
"MIT"
] | null | null | null |
tests/test_coords.py
|
sdarray/sdarray
|
1d655cfade351895b74ddffefa0a698ed768cda0
|
[
"MIT"
] | 25
|
2019-11-01T04:17:25.000Z
|
2022-03-16T08:16:56.000Z
|
tests/test_coords.py
|
sdarray/sdarray
|
1d655cfade351895b74ddffefa0a698ed768cda0
|
[
"MIT"
] | null | null | null |
# dependencies
import numpy as np
import sdarray as sd
from xarray_dataclasses import asdataarray
# constants
SHORT_NAME = "short_name"
UNITS = "units"
# test functions
def test_scan() -> None:
data = np.array(["0"], np.str_)
array = asdataarray(sd.coords.Scan(data))
assert array.data == data
assert array.dims == ("time",)
assert array.dtype.type == data.dtype.type
assert array.attrs[SHORT_NAME] == "scan"
def test_mode() -> None:
data = np.array(["0"], np.str_)
array = asdataarray(sd.coords.Mode(data))
assert array.data == data
assert array.dims == ("time",)
assert array.dtype.type == data.dtype.type
assert array.attrs[SHORT_NAME] == "mode"
def test_exposure() -> None:
data = np.array([0.0], np.float64)
array = asdataarray(sd.coords.Exposure(data))
assert array.data == data
assert array.dims == ("time",)
assert array.dtype.type == data.dtype.type
assert array.attrs[SHORT_NAME] == "exposure"
assert array.attrs[UNITS] == "s"
def test_interval() -> None:
data = np.array([0.0], np.float64)
array = asdataarray(sd.coords.Interval(data))
assert array.data == data
assert array.dims == ("time",)
assert array.dtype.type == data.dtype.type
assert array.attrs[SHORT_NAME] == "interval"
assert array.attrs[UNITS] == "s"
def test_longitude() -> None:
data = np.array([0.0], np.float64)
array = asdataarray(sd.coords.Longitude(data))
assert array.data == data
assert array.dims == ("time",)
assert array.dtype.type == data.dtype.type
assert array.attrs[SHORT_NAME] == "longitude"
assert array.attrs[UNITS] == "deg"
def test_latitude() -> None:
data = np.array([0.0], np.float64)
array = asdataarray(sd.coords.Latitude(data))
assert array.data == data
assert array.dims == ("time",)
assert array.dtype.type == data.dtype.type
assert array.attrs[SHORT_NAME] == "latitude"
assert array.attrs[UNITS] == "deg"
def test_beam() -> None:
data = np.array(["0"], np.str_)
array = asdataarray(sd.coords.Beam(data))
assert array.data == data
assert array.dims == ("chan",)
assert array.dtype.type == data.dtype.type
assert array.attrs[SHORT_NAME] == "beam"
def test_spw() -> None:
data = np.array(["0"], np.str_)
array = asdataarray(sd.coords.SpW(data))
assert array.data == data
assert array.dims == ("chan",)
assert array.dtype.type == data.dtype.type
assert array.attrs[SHORT_NAME] == "spw"
def test_pol() -> None:
data = np.array(["0"], np.str_)
array = asdataarray(sd.coords.Pol(data))
assert array.data == data
assert array.dims == ("chan",)
assert array.dtype.type == data.dtype.type
assert array.attrs[SHORT_NAME] == "pol"
def test_center_freq() -> None:
data = np.array([0.0], np.float64)
array = asdataarray(sd.coords.CenterFreq(data))
assert array.data == data
assert array.dims == ("chan",)
assert array.dtype.type == data.dtype.type
assert array.attrs[SHORT_NAME] == "center_freq"
assert array.attrs[UNITS] == "Hz"
def test_ref_freq() -> None:
data = np.array([0.0], np.float64)
array = asdataarray(sd.coords.RefFreq(data))
assert array.data == data
assert array.dims == ("chan",)
assert array.dtype.type == data.dtype.type
assert array.attrs[SHORT_NAME] == "ref_freq"
assert array.attrs[UNITS] == "Hz"
def test_resolution() -> None:
data = np.array([0.0], np.float64)
array = asdataarray(sd.coords.Resolution(data))
assert array.data == data
assert array.dims == ("chan",)
assert array.dtype.type == data.dtype.type
assert array.attrs[SHORT_NAME] == "resolution"
assert array.attrs[UNITS] == "Hz"
def test_width() -> None:
data = np.array([0.0], np.float64)
array = asdataarray(sd.coords.Width(data))
assert array.data == data
assert array.dims == ("chan",)
assert array.dtype.type == data.dtype.type
assert array.attrs[SHORT_NAME] == "width"
assert array.attrs[UNITS] == "Hz"
def test_lon_offset() -> None:
data = np.array([0.0], np.float64)
array = asdataarray(sd.coords.LonOffset(data))
assert array.data == data
assert array.dims == ("chan",)
assert array.dtype.type == data.dtype.type
assert array.attrs[SHORT_NAME] == "lon_offset"
assert array.attrs[UNITS] == "deg"
def test_lat_offset() -> None:
data = np.array([0.0], np.float64)
array = asdataarray(sd.coords.LatOffset(data))
assert array.data == data
assert array.dims == ("chan",)
assert array.dtype.type == data.dtype.type
assert array.attrs[SHORT_NAME] == "lat_offset"
assert array.attrs[UNITS] == "deg"
def test_mask() -> None:
data = np.array([[False]], np.bool_)
array = asdataarray(sd.coords.Mask(data))
assert array.data == data
assert array.dims == ("time", "chan")
assert array.dtype.type == data.dtype.type
assert array.attrs[SHORT_NAME] == "mask"
def test_sigma() -> None:
data = np.array([[0.0]], np.float64)
array = asdataarray(sd.coords.Sigma(data))
assert array.data == data
assert array.dims == ("time", "chan")
assert array.dtype.type == data.dtype.type
assert array.attrs[SHORT_NAME] == "sigma"
def test_weight() -> None:
data = np.array([[1.0]], np.float64)
array = asdataarray(sd.coords.Weight(data))
assert array.data == data
assert array.dims == ("time", "chan")
assert array.dtype.type == data.dtype.type
assert array.attrs[SHORT_NAME] == "weight"
| 27.686567
| 51
| 0.642947
| 762
| 5,565
| 4.625984
| 0.081365
| 0.255887
| 0.153191
| 0.076596
| 0.840567
| 0.840567
| 0.840567
| 0.779858
| 0.739574
| 0.739574
| 0
| 0.011822
| 0.194429
| 5,565
| 200
| 52
| 27.825
| 0.774481
| 0.006649
| 0
| 0.560284
| 0
| 0
| 0.044533
| 0
| 0
| 0
| 0
| 0
| 0.58156
| 1
| 0.12766
| false
| 0
| 0.021277
| 0
| 0.148936
| 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
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 8
|
a4e955948de0c8727bac0df1f34e6fe78e20f073
| 19,469
|
py
|
Python
|
Ocean_Optics_Spectrometer/seabreeze/pyseabreeze/interfaces/spectrometer.py
|
roniwinik/Drivers
|
ba473bc21d1b5321da1e6caadec5b4d624282edc
|
[
"MIT"
] | 48
|
2015-11-16T13:35:11.000Z
|
2022-02-24T11:02:14.000Z
|
Ocean_Optics_Spectrometer/seabreeze/pyseabreeze/interfaces/spectrometer.py
|
roniwinik/Drivers
|
ba473bc21d1b5321da1e6caadec5b4d624282edc
|
[
"MIT"
] | 30
|
2015-11-16T14:37:46.000Z
|
2021-02-22T19:39:34.000Z
|
Ocean_Optics_Spectrometer/seabreeze/pyseabreeze/interfaces/spectrometer.py
|
roniwinik/Drivers
|
ba473bc21d1b5321da1e6caadec5b4d624282edc
|
[
"MIT"
] | 61
|
2015-11-12T18:31:58.000Z
|
2022-03-04T12:59:35.000Z
|
from .common import SeaBreezeError, get_pyseabreeze_decorator
from .communication import USBCommOOI, USBCommOBP
from .defines import ModelNames, DarkPixels, TriggerModes
from .wavelength import WavelengthCoefficientsEEPromFeature
from .eeprom import EEPromFeature
import struct
import numpy
import time
convert_exceptions = get_pyseabreeze_decorator('interfaces.spectrometer')
#==========================#
# OOI SpectrometerFeatures #
#==========================#
class SpectrometerFeatureOOI(WavelengthCoefficientsEEPromFeature,
EEPromFeature,
USBCommOOI):
_INTEGRATION_TIME_MIN = None
_INTEGRATION_TIME_MAX = None
_INTEGRATION_TIME_BASE = None
_PIXELS = None
_RAW_SPECTRUM_LEN = None
_MAX_PIXEL_VALUE = None
_SATURATION_VALUE = None
def has_spectrometer_feature(self):
return [True]
def _initialize_common(self):
if self._SATURATION_VALUE is None:
self._NORMALIZATION_VALUE = 1.
else:
self._NORMALIZATION_VALUE = float(self._MAX_PIXEL_VALUE) / self._SATURATION_VALUE
def _initialize_model_specific(self):
"""This function should be used for model specific initializations"""
pass
@convert_exceptions("An error occured during opening.")
def open(self, device):
# open the usb device with USBCommBase
self.open_device(device.handle)
# initialize the spectrometer
self.usb_send(struct.pack('<B', 0x01))
time.sleep(0.1) # wait shortly after init command
self._initialize_common()
self._initialize_model_specific()
@convert_exceptions("An error occured during closing.")
def close(self):
# close the usb device with USBCommBase
self.close_device()
@convert_exceptions("Is the spectrometer initialized?")
def get_model(self):
# return model name with lookuptable
return ModelNames[self._device.idProduct]
@convert_exceptions("Trigger mode error.")
def set_trigger_mode(self, mode):
if mode in list(TriggerModes[self.get_model()].values()):
self.usb_send(struct.pack("<BH", 0x0A, mode))
else:
raise SeaBreezeError("Only supports: %s" % list(TriggerModes[self.get_model()].keys()))
@convert_exceptions("Integration time error.")
def set_integration_time_microsec(self, integration_time_micros):
if self._INTEGRATION_TIME_MIN <= integration_time_micros < self._INTEGRATION_TIME_MAX:
itime = int(integration_time_micros / self._INTEGRATION_TIME_BASE)
self.usb_send(struct.pack('<BI', 0x02, itime))
else:
raise SeaBreezeError("Integration time must be in range(%d, %d)." %
(self._INTEGRATION_TIME_MIN, self._INTEGRATION_TIME_MAX))
@convert_exceptions("Is the spectrometer initialized?")
def get_min_integration_time_microsec(self):
return self._INTEGRATION_TIME_MIN
@convert_exceptions("Error while reading raw spectrum.")
def get_unformatted_spectrum(self, out):
self.usb_send(struct.pack('<B', 0x09))
out[:] = self.usb_read_highspeed(size=self._RAW_SPECTRUM_LEN,
timeout=int(self._INTEGRATION_TIME_MAX * 1e-3 + self.usbtimeout_ms))
return self._RAW_SPECTRUM_LEN # compatibility
@convert_exceptions("Error while reading formatted spectrum.")
def get_formatted_spectrum(self, out):
tmp = numpy.empty((self._RAW_SPECTRUM_LEN), dtype=numpy.uint8)
self.get_unformatted_spectrum(tmp)
ret = numpy.array(struct.unpack("<" + "H"*self._PIXELS, tmp[:-1]), dtype=numpy.double)
out[:] = ret * self._NORMALIZATION_VALUE
return self._PIXELS # compatibility
@convert_exceptions("")
def get_unformatted_spectrum_length(self):
return self._RAW_SPECTRUM_LEN
@convert_exceptions("")
def get_formatted_spectrum_length(self):
return self._PIXELS
@convert_exceptions("")
def get_wavelengths(self, out):
indices = numpy.arange(self._PIXELS, dtype=numpy.float64)
wlcoeff = self.get_wavelength_coefficients()
out[:] = sum( wl * (indices**i) for i, wl in enumerate(wlcoeff) )
return self._PIXELS
@convert_exceptions("Is the spectrometer initialized?")
def get_electric_dark_pixel_indices(self):
# return model name with lookuptable
return numpy.array(DarkPixels[self.get_model()])
@convert_exceptions("Error when reading serial number.")
def get_serial_number(self):
# The serial is stored in slot 0
return str(self.read_eeprom_slot(0))
class SpectrometerFeatureOOI2K(SpectrometerFeatureOOI):
@convert_exceptions("Error while reading raw spectrum")
def get_formatted_spectrum(self, out):
tmp = numpy.empty((self._RAW_SPECTRUM_LEN), dtype=numpy.uint8)
self.get_unformatted_spectrum(tmp)
# The byte order is different for some models
tsorted = numpy.empty((self._RAW_SPECTRUM_LEN - 1), dtype=numpy.uint8)
idx = [(i//2)%64 + (i%2)*64 + (i//(128))*(128) for i in range(self._RAW_SPECTRUM_LEN-1)]
tsorted = tmp[idx] & numpy.array((0xFF, 0x0F)*(self._PIXELS), dtype=numpy.uint8) # high nibble not guaranteed to be pulled low
ret = numpy.array(struct.unpack("<" + "H"*self._PIXELS, tsorted), dtype=numpy.double)
# sorted and parsed
out[:] = ret * self._NORMALIZATION_VALUE
return self._PIXELS # compatibility
class SpectrometerFeatureOOIFPGA(SpectrometerFeatureOOI):
def _initialize_model_specific(self):
self.usb_send(struct.pack("<B", 0xFE))
ret = self.usb_read(size=16)
data = struct.unpack("<HLBBBBBBBBBB", ret[:])
self.usbspeed = data[10]
class SpectrometerFeatureOOIFPGA4K(SpectrometerFeatureOOIFPGA):
@convert_exceptions("Error while reading raw spectrum")
def get_unformatted_spectrum(self, out):
self.usb_send(struct.pack('<B', 0x09))
if self.usbspeed == 0x00: # lowspeed
out[:] = self.usb_read_highspeed(size=self._RAW_SPECTRUM_LEN,
timeout=int(self._INTEGRATION_TIME_MAX * 1e-3 + self.usbtimeout_ms))
else: # self.usbspeed == 0x80 highspeed
out[:2048] = self.usb_read_highspeed_alt(size=2048,
timeout=int(self._INTEGRATION_TIME_MAX * 1e-3 + self.usbtimeout_ms))
out[2048:] = self.usb_read_highspeed(size=self._RAW_SPECTRUM_LEN - 2048,
timeout=int(self._INTEGRATION_TIME_MAX * 1e-3 + self.usbtimeout_ms))
return self._RAW_SPECTRUM_LEN # compatibility
class SpectrometerFeatureOOIGain(SpectrometerFeatureOOI):
def _initialize_model_specific(self):
# set the usbspeed
super(SpectrometerFeatureOOIGain, self)._initialize_model_specific()
# get the saturation value
ret = self.read_eeprom_slot_raw(17)
# ret contains the first two response bytes, then the eeprom data
saturation = struct.unpack("<H", ret[6:8])[0]
if saturation == 0:
pass # not initialized?
else:
self._NORMALIZATION_VALUE = float(self._MAX_PIXEL_VALUE) / saturation
class SpectrometerFeatureOOIFPGAGain(SpectrometerFeatureOOIFPGA):
def _initialize_model_specific(self):
# set the usbspeed
super(SpectrometerFeatureOOIFPGAGain, self)._initialize_model_specific()
# get the saturation value
ret = self.read_eeprom_slot_raw(17)
# ret contains the first two response bytes, then the eeprom data
saturation = struct.unpack("<H", ret[6:8])[0]
if saturation == 0:
pass # not initialized?
else:
self._NORMALIZATION_VALUE = float(self._MAX_PIXEL_VALUE) / saturation
class SpectrometerFeatureOOIFPGA4KGain(SpectrometerFeatureOOIFPGA4K):
def _initialize_model_specific(self):
# set the usbspeed
super(SpectrometerFeatureOOIFPGA4KGain, self)._initialize_model_specific()
# get the saturation value
ret = self.read_eeprom_slot_raw(17)
# ret contains the first two response bytes, then the eeprom data
saturation = struct.unpack("<H", ret[6:8])[0]
if saturation == 0:
pass # not initialized?
else:
self._NORMALIZATION_VALUE = float(self._MAX_PIXEL_VALUE) / saturation
class SpectrometerFeatureOOIGainAlt(SpectrometerFeatureOOIGain):
def _initialize_model_specific(self):
# set the usbspeed
super(SpectrometerFeatureOOIGainAlt, self)._initialize_model_specific()
# get the saturation value
ret = self.read_eeprom_slot_raw(17)
# XXX: The NIRQUEST stores this value somewhere else
# and might also not have been programmed yet..
# TODO: And this is planned for the QE65000 apparently.
# ret contains the first two response bytes, then the eeprom data
saturation = struct.unpack("<L", ret[6:10])[0]
if saturation == 0:
pass # not initialized?
else:
self._NORMALIZATION_VALUE = float(self._MAX_PIXEL_VALUE) / saturation
class SpectrometerFeatureOOIFPGAGainAlt(SpectrometerFeatureOOIFPGAGain):
def _initialize_model_specific(self):
# set the usbspeed
super(SpectrometerFeatureOOIFPGAGainAlt, self)._initialize_model_specific()
# get the saturation value
ret = self.read_eeprom_slot_raw(17)
# XXX: The Apex, Maya2000pro, MayaLSL store this value somewhere else
# and might also not have been programmed yet...
# ret contains the first two response bytes, then the eeprom data
saturation = struct.unpack("<H", ret[2:4])[0]
if saturation <= 32768 or saturation > self._MAX_PIXEL_VALUE:
pass # not initialized?
else:
self._NORMALIZATION_VALUE = float(self._MAX_PIXEL_VALUE) / saturation
#==========================#
# OBP SpectrometerFeatures #
#==========================#
class SpectrometerFeatureOBP(USBCommOBP):
_INTEGRATION_TIME_MIN = None
_INTEGRATION_TIME_MAX = None
_INTEGRATION_TIME_BASE = None
_PIXELS = None
_RAW_SPECTRUM_LEN = None
_MAX_PIXEL_VALUE = None
_SATURATION_VALUE = None
def has_spectrometer_feature(self):
return [True]
def _initialize_common(self):
pass
def _initialize_model_specific(self):
"""This function should be used for model specific initializations"""
pass
@convert_exceptions("An error occured during opening.")
def open(self, device):
# open the usb device with USBCommBase
self.open_device(device.handle)
self._initialize_common()
self._initialize_model_specific()
@convert_exceptions("An error occured during closing.")
def close(self):
# close the usb device with USBCommBase
self.close_device()
@convert_exceptions("Is the spectrometer initialized?")
def get_model(self):
# return model name with lookuptable
return ModelNames[self._device.idProduct]
@convert_exceptions("Trigger mode error.")
def set_trigger_mode(self, mode):
if mode in list(TriggerModes[self.get_model()].values()):
self.send_command(0x00110110, struct.pack("<B", mode))
else:
raise SeaBreezeError("Only supports: %s" % list(TriggerModes[self.get_model()].keys()))
@convert_exceptions("Integration time error.")
def set_integration_time_microsec(self, integration_time_micros):
if self._INTEGRATION_TIME_MIN <= integration_time_micros < self._INTEGRATION_TIME_MAX:
itime = int(integration_time_micros / self._INTEGRATION_TIME_BASE)
self.send_command(0x00110010, struct.pack("<L", itime))
else:
raise SeaBreezeError("Integration time must be in range(%d, %d)." %
(self._INTEGRATION_TIME_MIN, self._INTEGRATION_TIME_MAX))
@convert_exceptions("Is the spectrometer initialized?")
def get_min_integration_time_microsec(self):
return self._INTEGRATION_TIME_MIN
@convert_exceptions("Error while reading raw spectrum.")
def get_unformatted_spectrum(self, out):
datastring = self.query(0x00101100, "",
timeout=int(self._INTEGRATION_TIME_MAX * 1e-3 + self.usbtimeout_ms))
out[:] = numpy.fromstring(datastring, dtype=numpy.uint8)
return self._RAW_SPECTRUM_LEN # compatibility
@convert_exceptions("Error while reading formatted spectrum.")
def get_formatted_spectrum(self, out):
tmp = numpy.empty((self._RAW_SPECTRUM_LEN), dtype=numpy.uint8)
self.get_unformatted_spectrum(tmp)
out[:] = numpy.array(struct.unpack("<" + "H"*self._PIXELS, tmp), dtype=numpy.double)
return self._PIXELS # compatibility
@convert_exceptions("")
def get_unformatted_spectrum_length(self):
return self._RAW_SPECTRUM_LEN
@convert_exceptions("")
def get_formatted_spectrum_length(self):
return self._PIXELS
@convert_exceptions("")
def get_wavelengths(self, out):
# get number of wavelength coefficients
data = self.query(0x00180100, "")
N = struct.unpack("<B", data)[0]
# now query the coefficients
coeffs = []
for i in range(N):
data = self.query(0x00180101, struct.pack("<B", i))
coeffs.append(struct.unpack("<f", data)[0])
# and generate the wavelength array
indices = numpy.arange(self._PIXELS, dtype=numpy.float64)
out[:] = sum( wl * (indices**i) for i, wl in enumerate(coeffs) )
return self._PIXELS
@convert_exceptions("Is the spectrometer initialized?")
def get_electric_dark_pixel_indices(self):
# return model name with lookuptable
return numpy.array(DarkPixels[self.get_model()])
@convert_exceptions("Error when reading serial number.")
def get_serial_number(self):
return self.query(0x00000100, "")
#========================#
# Model specific changes #
#========================#
class SpectrometerFeatureUSB2000(SpectrometerFeatureOOI2K):
pass
class SpectrometerFeatureHR2000(SpectrometerFeatureOOI2K):
pass
class SpectrometerFeatureHR4000(SpectrometerFeatureOOIFPGA4K):
@convert_exceptions("Error while reading formatted spectrum.")
def get_formatted_spectrum(self, out):
tmp = numpy.empty((self._RAW_SPECTRUM_LEN), dtype=numpy.uint8)
self.get_unformatted_spectrum(tmp)
# The HR4000 needs to xor with 0x2000
ret = numpy.array(struct.unpack("<" + "H"*self._PIXELS, tmp[:-1])) ^ 0x2000
out[:] = ret.astype(numpy.double) * self._NORMALIZATION_VALUE
return self._PIXELS # compatibility
class SpectrometerFeatureUSB650(SpectrometerFeatureOOI2K):
pass
class SpectrometerFeatureHR2000PLUS(SpectrometerFeatureOOIFPGA):
@convert_exceptions("Error while reading formatted spectrum.")
def get_formatted_spectrum(self, out):
tmp = numpy.empty((self._RAW_SPECTRUM_LEN), dtype=numpy.uint8)
self.get_unformatted_spectrum(tmp)
# The HR2000Plus needs to xor with 0x2000
ret = numpy.array(struct.unpack("<" + "H"*self._PIXELS, tmp[:-1])) ^ 0x2000
out[:] = ret.astype(numpy.double) * self._NORMALIZATION_VALUE
return self._PIXELS # compatibility
class SpectrometerFeatureQE65000(SpectrometerFeatureOOIFPGA):
@convert_exceptions("")
def get_wavelengths(self, out):
indices = numpy.arange(-10, self._PIXELS - 10, dtype=numpy.float64)
wlcoeff = self.get_wavelength_coefficients()
out[:] = sum( wl * (indices**i) for i, wl in enumerate(wlcoeff) )
return self._PIXELS
@convert_exceptions("Error while reading formatted spectrum.")
def get_formatted_spectrum(self, out):
tmp = numpy.empty((self._RAW_SPECTRUM_LEN), dtype=numpy.uint8)
self.get_unformatted_spectrum(tmp)
# The QE65000 needs to xor with 0x8000
ret = numpy.array(struct.unpack("<" + "H"*self._PIXELS, tmp[:-1])) ^ 0x8000
out[:] = ret.astype(numpy.double) * self._NORMALIZATION_VALUE
return self._PIXELS # compatibility
class SpectrometerFeatureUSB2000PLUS(SpectrometerFeatureOOIFPGAGain):
pass
class SpectrometerFeatureUSB4000(SpectrometerFeatureOOIFPGA4KGain):
pass
class SpectrometerFeatureNIRQUEST512(SpectrometerFeatureOOIGainAlt):
@convert_exceptions("Error while reading formatted spectrum.")
def get_formatted_spectrum(self, out):
tmp = numpy.empty((self._RAW_SPECTRUM_LEN), dtype=numpy.uint8)
self.get_unformatted_spectrum(tmp)
# The NIRQUEST512 needs to xor with 0x8000
ret = numpy.array(struct.unpack("<" + "H"*self._PIXELS, tmp[:-1])) ^ 0x8000
out[:] = ret.astype(numpy.double) * self._NORMALIZATION_VALUE
return self._PIXELS # compatibility
class SpectrometerFeatureNIRQUEST256(SpectrometerFeatureOOIGainAlt):
@convert_exceptions("Error while reading formatted spectrum.")
def get_formatted_spectrum(self, out):
tmp = numpy.empty((self._RAW_SPECTRUM_LEN), dtype=numpy.uint8)
self.get_unformatted_spectrum(tmp)
# The NIRQUEST256 needs to xor with 0x8000
ret = numpy.array(struct.unpack("<" + "H"*self._PIXELS, tmp[:-1])) ^ 0x8000
out[:] = ret.astype(numpy.double) * self._NORMALIZATION_VALUE
return self._PIXELS # compatibility
class SpectrometerFeatureMAYA2000PRO(SpectrometerFeatureOOIFPGAGainAlt):
pass
class SpectrometerFeatureMAYA2000(SpectrometerFeatureOOIFPGA):
pass
class SpectrometerFeatureTORUS(SpectrometerFeatureOOIFPGAGain):
# The Torus uses the USB2000Plus spec feature
pass
class SpectrometerFeatureAPEX(SpectrometerFeatureOOIFPGAGainAlt):
pass
class SpectrometerFeatureMAYALSL(SpectrometerFeatureOOIFPGAGainAlt):
pass
class SpectrometerFeatureJAZ(SpectrometerFeatureOOIGain):
@convert_exceptions("Error while reading formatted spectrum.")
def get_formatted_spectrum(self, out):
tmp = numpy.empty((self._RAW_SPECTRUM_LEN), dtype=numpy.uint8)
self.get_unformatted_spectrum(tmp)
# XXX: No sync byte for the Jaz
ret = numpy.array(struct.unpack("<" + "H"*self._PIXELS, tmp), dtype=numpy.double)
out[:] = ret * self._NORMALIZATION_VALUE
return self._PIXELS # compatibility
class SpectrometerFeatureSTS(SpectrometerFeatureOBP):
pass
class SpectrometerFeatureQEPRO(SpectrometerFeatureOBP):
@convert_exceptions("Error while reading raw spectrum.")
def get_unformatted_spectrum(self, out):
datastring = self.query(0x00100928, "",
timeout=int(self._INTEGRATION_TIME_MAX * 1e-3 + self.usbtimeout_ms))
out[:] = numpy.fromstring(datastring, dtype=numpy.uint8)
return self._RAW_SPECTRUM_LEN # compatibility
@convert_exceptions("Error while reading formatted spectrum.")
def get_formatted_spectrum(self, out):
tmp = numpy.empty((self._RAW_SPECTRUM_LEN), dtype=numpy.uint8)
self.get_unformatted_spectrum(tmp)
# 32byte metadata block at beginning
out[:] = numpy.array(struct.unpack("<" + "I"*self._PIXELS, tmp[32:]), dtype=numpy.double)
return self._PIXELS # compatibility
class SpectrometerFeatureVENTANA(SpectrometerFeatureOBP):
pass
| 39.016032
| 135
| 0.685603
| 2,163
| 19,469
| 5.939898
| 0.134998
| 0.05028
| 0.025062
| 0.029421
| 0.74642
| 0.739648
| 0.721824
| 0.718322
| 0.711239
| 0.682052
| 0
| 0.022634
| 0.212543
| 19,469
| 498
| 136
| 39.094378
| 0.815407
| 0.121989
| 0
| 0.746988
| 0
| 0
| 0.07013
| 0.001353
| 0
| 0
| 0.008001
| 0.002008
| 0
| 1
| 0.14759
| false
| 0.060241
| 0.024096
| 0.042169
| 0.394578
| 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
|
1037d67339a3dbc6fed60ff7274db7dc78e33591
| 296,860
|
py
|
Python
|
rubikscubelookuptables/builder555.py
|
dwalton76/rubiks-cube-lookup-tables
|
fd6cba7af333cb3fd37e16c6633b483df07c3c74
|
[
"MIT"
] | 1
|
2018-07-11T01:51:10.000Z
|
2018-07-11T01:51:10.000Z
|
rubikscubelookuptables/builder555.py
|
dwalton76/rubiks-cube-lookup-tables
|
fd6cba7af333cb3fd37e16c6633b483df07c3c74
|
[
"MIT"
] | null | null | null |
rubikscubelookuptables/builder555.py
|
dwalton76/rubiks-cube-lookup-tables
|
fd6cba7af333cb3fd37e16c6633b483df07c3c74
|
[
"MIT"
] | 1
|
2021-12-17T14:16:33.000Z
|
2021-12-17T14:16:33.000Z
|
# standard libraries
import logging
# rubiks cube libraries
from rubikscubelookuptables.buildercore import BFS
log = logging.getLogger(__name__)
"""
phase 1
stage LR centers
10 moves
phase 2
stage FB centers
10 moves
phase 3 -
EO the wings, 2,704,156 states
EO the midges, 2048 states
LR centers to 1/432, 4900 states
(4900 * 2048) / (4900 * 2048 * 2,704,156) = 0.000 000 369
10.8 moves
phase 4
Move a group of 4-edges to x-plane and y-plane
~1 move
phase 5
LR and FB centers to vertical bars
pair x-plane edges
432 LR center states
4,900 FB center states
x-plane high wings
(8!/4!) = 1,680 is how many states the high wings can be in
x-plane low wings
(8!/4!) = 1,680 is how many states the low wings can be in
x-plane midges
8!/(4!*4!) = 70 is how many states the midges can be in
A high-edge-midge prune table is 70 * 1680 = 117,600
A low-edge-midge prune table is 70 * 1680 = 117,600
A centers prune table is 432 * 4900 = 2,116,800
A FB-centers-high-edge-midge prune table is 4900 * 117,600 = 576,240,000
we can use this via a perfect-hash table
576,240,000 / (432 * 4900 * 1680 * 1680 * 70) = 0.000 001 377
phase 6
pair last 8 edges
solve all centers
8!^2/2 = 812,851,200 edge states
6 * 6 * 4900 = 176,400 center states
-16 moves
"""
"""
If we dropped phase 4 then phase 5 would become
LR and FB centers to vertical bars
pair x-plane edges
432 LR center states
4,900 FB center states
high wings
(12!/8!) = 11,800 is how many states the high wings can be in
low wings
(12!/8!) = 11,800 is how many states the low wings can be in
midges
8!/(12!*4!) = 495 is how many states the midges can be in
A high-edge-midge prune table is 495 * 11800 = 5,841,000
A low-edge-midge prune table is 495 * 11800 = 5,841,000
A centers prune table is 432 * 4900 = 2,116,800
But there wouldn't be two tables we could use to create a perfect-hash...heck the current
phase 5 is super slow if you don't use the perfect-hash
"""
# =======
# phase 1
# =======
class Build555LRCenterStage(BFS):
"""
1 steps has 5 entries (0 percent, 0.00x previous step)
2 steps has 98 entries (0 percent, 19.60x previous step)
3 steps has 2,036 entries (0 percent, 20.78x previous step)
4 steps has 41,096 entries (0 percent, 20.18x previous step)
5 steps has 824,950 entries (4 percent, 20.07x previous step)
6 steps has 16,300,291 entries (94 percent, 19.76x previous step)
# extrapolate from here
7 steps has 309,053,517 entries (18.96x previous step)
8 steps has 5,612,411,868 entries (18.16x previous step)
9 steps has 97,431,470,028 entries (17.36x previous step)
10 steps has 437,547,487,952 entries (4.49x previous step)
Average: 9.79709452838934
Total : 540,917,591,841
"""
def __init__(self):
BFS.__init__(
self,
"5x5x5-LR-center-stage",
(),
"5x5x5",
"lookup-table-5x5x5-step10-LR-centers-stage.txt",
True, # store_as_hex
# starting cubes
(
(
"""
. . . . .
. x x x .
. x x x .
. x x x .
. . . . .
. . . . . . . . . . . . . . . . . . . .
. L L L . . x x x . . L L L . . x x x .
. L L L . . x x x . . L L L . . x x x .
. L L L . . x x x . . L L L . . x x x .
. . . . . . . . . . . . . . . . . . . .
. . . . .
. x x x .
. x x x .
. x x x .
. . . . .""",
"ascii",
),
),
)
class Build555LRCenterStageTCenter(BFS):
def __init__(self):
BFS.__init__(
self,
"5x5x5-LR-t-center-stage",
(),
"5x5x5",
"lookup-table-5x5x5-step11-LR-centers-stage-t-center-only.txt",
True, # store_as_hex
# starting cubes
(
(
"""
. . . . .
. . x . .
. x . x .
. . x . .
. . . . .
. . . . . . . . . . . . . . . . . . . .
. . L . . . . x . . . . L . . . . x . .
. L . L . . x . x . . L . L . . x . x .
. . L . . . . x . . . . L . . . . x . .
. . . . . . . . . . . . . . . . . . . .
. . . . .
. . x . .
. x . x .
. . x . .
. . . . .""",
"ascii",
),
),
)
class Build555LRCenterStageXCenter(BFS):
def __init__(self):
BFS.__init__(
self,
"5x5x5-LR-x-center-stage",
(),
"5x5x5",
"lookup-table-5x5x5-step12-LR-centers-stage-x-center-only.txt",
True, # store_as_hex
# starting cubes
(
(
"""
. . . . .
. x . x .
. . . . .
. x . x .
. . . . .
. . . . . . . . . . . . . . . . . . . .
. L . L . . x . x . . L . L . . x . x .
. . . . . . . . . . . . . . . . . . . .
. L . L . . x . x . . L . L . . x . x .
. . . . . . . . . . . . . . . . . . . .
. . . . .
. x . x .
. . . . .
. x . x .
. . . . .""",
"ascii",
),
),
)
# =======
# phase 2
# =======
class Build555FBCenterStage(BFS):
def __init__(self):
BFS.__init__(
self,
"5x5x5-FB-center-stage",
("Uw", "Uw'", "Fw", "Fw'", "Bw", "Bw'", "Dw", "Dw'"),
"5x5x5",
"lookup-table-5x5x5-step20-FB-centers-stage.txt",
True, # store_as_hex
# starting cubes
(
(
"""
. . . . .
. x x x .
. x x x .
. x x x .
. . . . .
. . . . . . . . . . . . . . . . . . . .
. . . . . . F F F . . . . . . . F F F .
. . . . . . F F F . . . . . . . F F F .
. . . . . . F F F . . . . . . . F F F .
. . . . . . . . . . . . . . . . . . . .
. . . . .
. x x x .
. x x x .
. x x x .
. . . . .""",
"ascii",
),
),
)
class Build555FBTCenterStage(BFS):
def __init__(self):
BFS.__init__(
self,
"5x5x5-FB-t-center-stage",
("Uw", "Uw'", "Fw", "Fw'", "Bw", "Bw'", "Dw", "Dw'"),
"5x5x5",
"lookup-table-5x5x5-step21-FB-t-centers-stage.txt",
True, # store_as_hex
# starting cubes
(
(
"""
. . . . .
. . x . .
. x . x .
. . x . .
. . . . .
. . . . . . . . . . . . . . . . . . . .
. . . . . . . F . . . . . . . . . F . .
. . . . . . F . F . . . . . . . F . F .
. . . . . . . F . . . . . . . . . F . .
. . . . . . . . . . . . . . . . . . . .
. . . . .
. . x . .
. x . x .
. . x . .
. . . . .""",
"ascii",
),
),
)
class Build555FBXCenterStage(BFS):
def __init__(self):
BFS.__init__(
self,
"5x5x5-FB-x-center-stage",
("Uw", "Uw'", "Fw", "Fw'", "Bw", "Bw'", "Dw", "Dw'"),
"5x5x5",
"lookup-table-5x5x5-step22-FB-x-centers-stage.txt",
True, # store_as_hex
# starting cubes
(
(
"""
. . . . .
. x . x .
. . . . .
. x . x .
. . . . .
. . . . . . . . . . . . . . . . . . . .
. . . . . . F . F . . . . . . . F . F .
. . . . . . . . . . . . . . . . . . . .
. . . . . . F . F . . . . . . . F . F .
. . . . . . . . . . . . . . . . . . . .
. . . . .
. x . x .
. . . . .
. x . x .
. . . . .""",
"ascii",
),
),
)
class Build555Phase2LRCenterStage(BFS):
def __init__(self):
# fmt: off
BFS.__init__(
self,
"5x5x5-LR-center-stage",
("Uw", "Uw'", "Fw", "Fw'", "Bw", "Bw'", "Dw", "Dw'"),
"5x5x5",
"lookup-table-5x5x5-step23-LR-center-stage.txt",
False, # store_as_hex
# starting cubes
(
('...............................LLL..LLL..LLL.....................................RRR..RRR..RRR........................................................', 'ULFRBD'),
('...............................LLL..LLL..LRL.....................................RLR..RRR..RRR........................................................', 'ULFRBD'),
('...............................LLL..LLL..LRL.....................................RRR..RRR..RLR........................................................', 'ULFRBD'),
('...............................LLL..LLL..RLR.....................................LRL..RRR..RRR........................................................', 'ULFRBD'),
('...............................LLL..LLL..RLR.....................................RRR..RRR..LRL........................................................', 'ULFRBD'),
('...............................LLL..LLL..RRR.....................................LLL..RRR..RRR........................................................', 'ULFRBD'),
('...............................LLL..LLL..RRR.....................................LRL..RRR..RLR........................................................', 'ULFRBD'),
('...............................LLL..LLL..RRR.....................................RLR..RRR..LRL........................................................', 'ULFRBD'),
('...............................LLL..LLL..RRR.....................................RRR..RRR..LLL........................................................', 'ULFRBD'),
('...............................LLL..LLR..LLL.....................................RRR..LRR..RRR........................................................', 'ULFRBD'),
('...............................LLL..LLR..LLL.....................................RRR..RRL..RRR........................................................', 'ULFRBD'),
('...............................LLL..LLR..LRL.....................................RLR..LRR..RRR........................................................', 'ULFRBD'),
('...............................LLL..LLR..LRL.....................................RLR..RRL..RRR........................................................', 'ULFRBD'),
('...............................LLL..LLR..LRL.....................................RRR..LRR..RLR........................................................', 'ULFRBD'),
('...............................LLL..LLR..LRL.....................................RRR..RRL..RLR........................................................', 'ULFRBD'),
('...............................LLL..LLR..RLR.....................................LRL..LRR..RRR........................................................', 'ULFRBD'),
('...............................LLL..LLR..RLR.....................................LRL..RRL..RRR........................................................', 'ULFRBD'),
('...............................LLL..LLR..RLR.....................................RRR..LRR..LRL........................................................', 'ULFRBD'),
('...............................LLL..LLR..RLR.....................................RRR..RRL..LRL........................................................', 'ULFRBD'),
('...............................LLL..LLR..RRR.....................................LLL..LRR..RRR........................................................', 'ULFRBD'),
('...............................LLL..LLR..RRR.....................................LLL..RRL..RRR........................................................', 'ULFRBD'),
('...............................LLL..LLR..RRR.....................................LRL..LRR..RLR........................................................', 'ULFRBD'),
('...............................LLL..LLR..RRR.....................................LRL..RRL..RLR........................................................', 'ULFRBD'),
('...............................LLL..LLR..RRR.....................................RLR..LRR..LRL........................................................', 'ULFRBD'),
('...............................LLL..LLR..RRR.....................................RLR..RRL..LRL........................................................', 'ULFRBD'),
('...............................LLL..LLR..RRR.....................................RRR..LRR..LLL........................................................', 'ULFRBD'),
('...............................LLL..LLR..RRR.....................................RRR..RRL..LLL........................................................', 'ULFRBD'),
('...............................LLL..RLL..LLL.....................................RRR..LRR..RRR........................................................', 'ULFRBD'),
('...............................LLL..RLL..LLL.....................................RRR..RRL..RRR........................................................', 'ULFRBD'),
('...............................LLL..RLL..LRL.....................................RLR..LRR..RRR........................................................', 'ULFRBD'),
('...............................LLL..RLL..LRL.....................................RLR..RRL..RRR........................................................', 'ULFRBD'),
('...............................LLL..RLL..LRL.....................................RRR..LRR..RLR........................................................', 'ULFRBD'),
('...............................LLL..RLL..LRL.....................................RRR..RRL..RLR........................................................', 'ULFRBD'),
('...............................LLL..RLL..RLR.....................................LRL..LRR..RRR........................................................', 'ULFRBD'),
('...............................LLL..RLL..RLR.....................................LRL..RRL..RRR........................................................', 'ULFRBD'),
('...............................LLL..RLL..RLR.....................................RRR..LRR..LRL........................................................', 'ULFRBD'),
('...............................LLL..RLL..RLR.....................................RRR..RRL..LRL........................................................', 'ULFRBD'),
('...............................LLL..RLL..RRR.....................................LLL..LRR..RRR........................................................', 'ULFRBD'),
('...............................LLL..RLL..RRR.....................................LLL..RRL..RRR........................................................', 'ULFRBD'),
('...............................LLL..RLL..RRR.....................................LRL..LRR..RLR........................................................', 'ULFRBD'),
('...............................LLL..RLL..RRR.....................................LRL..RRL..RLR........................................................', 'ULFRBD'),
('...............................LLL..RLL..RRR.....................................RLR..LRR..LRL........................................................', 'ULFRBD'),
('...............................LLL..RLL..RRR.....................................RLR..RRL..LRL........................................................', 'ULFRBD'),
('...............................LLL..RLL..RRR.....................................RRR..LRR..LLL........................................................', 'ULFRBD'),
('...............................LLL..RLL..RRR.....................................RRR..RRL..LLL........................................................', 'ULFRBD'),
('...............................LLL..RLR..LLL.....................................RRR..LRL..RRR........................................................', 'ULFRBD'),
('...............................LLL..RLR..LRL.....................................RLR..LRL..RRR........................................................', 'ULFRBD'),
('...............................LLL..RLR..LRL.....................................RRR..LRL..RLR........................................................', 'ULFRBD'),
('...............................LLL..RLR..RLR.....................................LRL..LRL..RRR........................................................', 'ULFRBD'),
('...............................LLL..RLR..RLR.....................................RRR..LRL..LRL........................................................', 'ULFRBD'),
('...............................LLL..RLR..RRR.....................................LLL..LRL..RRR........................................................', 'ULFRBD'),
('...............................LLL..RLR..RRR.....................................LRL..LRL..RLR........................................................', 'ULFRBD'),
('...............................LLL..RLR..RRR.....................................RLR..LRL..LRL........................................................', 'ULFRBD'),
('...............................LLL..RLR..RRR.....................................RRR..LRL..LLL........................................................', 'ULFRBD'),
('...............................LLR..LLL..LLR.....................................LRR..RRR..LRR........................................................', 'ULFRBD'),
('...............................LLR..LLL..LLR.....................................RRL..RRR..RRL........................................................', 'ULFRBD'),
('...............................LLR..LLL..LRR.....................................LLR..RRR..LRR........................................................', 'ULFRBD'),
('...............................LLR..LLL..LRR.....................................LRR..RRR..LLR........................................................', 'ULFRBD'),
('...............................LLR..LLL..LRR.....................................RLL..RRR..RRL........................................................', 'ULFRBD'),
('...............................LLR..LLL..LRR.....................................RRL..RRR..RLL........................................................', 'ULFRBD'),
('...............................LLR..LLL..RLL.....................................RRL..RRR..LRR........................................................', 'ULFRBD'),
('...............................LLR..LLL..RRL.....................................RLL..RRR..LRR........................................................', 'ULFRBD'),
('...............................LLR..LLL..RRL.....................................RRL..RRR..LLR........................................................', 'ULFRBD'),
('...............................LLR..LLR..LLR.....................................LRR..LRR..LRR........................................................', 'ULFRBD'),
('...............................LLR..LLR..LLR.....................................LRR..RRL..LRR........................................................', 'ULFRBD'),
('...............................LLR..LLR..LLR.....................................RRL..LRR..RRL........................................................', 'ULFRBD'),
('...............................LLR..LLR..LLR.....................................RRL..RRL..RRL........................................................', 'ULFRBD'),
('...............................LLR..LLR..LRR.....................................LLR..LRR..LRR........................................................', 'ULFRBD'),
('...............................LLR..LLR..LRR.....................................LLR..RRL..LRR........................................................', 'ULFRBD'),
('...............................LLR..LLR..LRR.....................................LRR..LRR..LLR........................................................', 'ULFRBD'),
('...............................LLR..LLR..LRR.....................................LRR..RRL..LLR........................................................', 'ULFRBD'),
('...............................LLR..LLR..LRR.....................................RLL..LRR..RRL........................................................', 'ULFRBD'),
('...............................LLR..LLR..LRR.....................................RLL..RRL..RRL........................................................', 'ULFRBD'),
('...............................LLR..LLR..LRR.....................................RRL..LRR..RLL........................................................', 'ULFRBD'),
('...............................LLR..LLR..LRR.....................................RRL..RRL..RLL........................................................', 'ULFRBD'),
('...............................LLR..LLR..RLL.....................................RRL..LRR..LRR........................................................', 'ULFRBD'),
('...............................LLR..LLR..RLL.....................................RRL..RRL..LRR........................................................', 'ULFRBD'),
('...............................LLR..LLR..RRL.....................................RLL..LRR..LRR........................................................', 'ULFRBD'),
('...............................LLR..LLR..RRL.....................................RLL..RRL..LRR........................................................', 'ULFRBD'),
('...............................LLR..LLR..RRL.....................................RRL..LRR..LLR........................................................', 'ULFRBD'),
('...............................LLR..LLR..RRL.....................................RRL..RRL..LLR........................................................', 'ULFRBD'),
('...............................LLR..RLL..LLR.....................................LRR..LRR..LRR........................................................', 'ULFRBD'),
('...............................LLR..RLL..LLR.....................................LRR..RRL..LRR........................................................', 'ULFRBD'),
('...............................LLR..RLL..LLR.....................................RRL..LRR..RRL........................................................', 'ULFRBD'),
('...............................LLR..RLL..LLR.....................................RRL..RRL..RRL........................................................', 'ULFRBD'),
('...............................LLR..RLL..LRR.....................................LLR..LRR..LRR........................................................', 'ULFRBD'),
('...............................LLR..RLL..LRR.....................................LLR..RRL..LRR........................................................', 'ULFRBD'),
('...............................LLR..RLL..LRR.....................................LRR..LRR..LLR........................................................', 'ULFRBD'),
('...............................LLR..RLL..LRR.....................................LRR..RRL..LLR........................................................', 'ULFRBD'),
('...............................LLR..RLL..LRR.....................................RLL..LRR..RRL........................................................', 'ULFRBD'),
('...............................LLR..RLL..LRR.....................................RLL..RRL..RRL........................................................', 'ULFRBD'),
('...............................LLR..RLL..LRR.....................................RRL..LRR..RLL........................................................', 'ULFRBD'),
('...............................LLR..RLL..LRR.....................................RRL..RRL..RLL........................................................', 'ULFRBD'),
('...............................LLR..RLL..RLL.....................................RRL..LRR..LRR........................................................', 'ULFRBD'),
('...............................LLR..RLL..RLL.....................................RRL..RRL..LRR........................................................', 'ULFRBD'),
('...............................LLR..RLL..RRL.....................................RLL..LRR..LRR........................................................', 'ULFRBD'),
('...............................LLR..RLL..RRL.....................................RLL..RRL..LRR........................................................', 'ULFRBD'),
('...............................LLR..RLL..RRL.....................................RRL..LRR..LLR........................................................', 'ULFRBD'),
('...............................LLR..RLL..RRL.....................................RRL..RRL..LLR........................................................', 'ULFRBD'),
('...............................LLR..RLR..LLR.....................................LRR..LRL..LRR........................................................', 'ULFRBD'),
('...............................LLR..RLR..LLR.....................................RRL..LRL..RRL........................................................', 'ULFRBD'),
('...............................LLR..RLR..LRR.....................................LLR..LRL..LRR........................................................', 'ULFRBD'),
('...............................LLR..RLR..LRR.....................................LRR..LRL..LLR........................................................', 'ULFRBD'),
('...............................LLR..RLR..LRR.....................................RLL..LRL..RRL........................................................', 'ULFRBD'),
('...............................LLR..RLR..LRR.....................................RRL..LRL..RLL........................................................', 'ULFRBD'),
('...............................LLR..RLR..RLL.....................................RRL..LRL..LRR........................................................', 'ULFRBD'),
('...............................LLR..RLR..RRL.....................................RLL..LRL..LRR........................................................', 'ULFRBD'),
('...............................LLR..RLR..RRL.....................................RRL..LRL..LLR........................................................', 'ULFRBD'),
('...............................LRL..LLL..LLL.....................................RLR..RRR..RRR........................................................', 'ULFRBD'),
('...............................LRL..LLL..LLL.....................................RRR..RRR..RLR........................................................', 'ULFRBD'),
('...............................LRL..LLL..LRL.....................................RLR..RRR..RLR........................................................', 'ULFRBD'),
('...............................LRL..LLL..RLR.....................................LLL..RRR..RRR........................................................', 'ULFRBD'),
('...............................LRL..LLL..RLR.....................................LRL..RRR..RLR........................................................', 'ULFRBD'),
('...............................LRL..LLL..RLR.....................................RLR..RRR..LRL........................................................', 'ULFRBD'),
('...............................LRL..LLL..RLR.....................................RRR..RRR..LLL........................................................', 'ULFRBD'),
('...............................LRL..LLL..RRR.....................................LLL..RRR..RLR........................................................', 'ULFRBD'),
('...............................LRL..LLL..RRR.....................................RLR..RRR..LLL........................................................', 'ULFRBD'),
('...............................LRL..LLR..LLL.....................................RLR..LRR..RRR........................................................', 'ULFRBD'),
('...............................LRL..LLR..LLL.....................................RLR..RRL..RRR........................................................', 'ULFRBD'),
('...............................LRL..LLR..LLL.....................................RRR..LRR..RLR........................................................', 'ULFRBD'),
('...............................LRL..LLR..LLL.....................................RRR..RRL..RLR........................................................', 'ULFRBD'),
('...............................LRL..LLR..LRL.....................................RLR..LRR..RLR........................................................', 'ULFRBD'),
('...............................LRL..LLR..LRL.....................................RLR..RRL..RLR........................................................', 'ULFRBD'),
('...............................LRL..LLR..RLR.....................................LLL..LRR..RRR........................................................', 'ULFRBD'),
('...............................LRL..LLR..RLR.....................................LLL..RRL..RRR........................................................', 'ULFRBD'),
('...............................LRL..LLR..RLR.....................................LRL..LRR..RLR........................................................', 'ULFRBD'),
('...............................LRL..LLR..RLR.....................................LRL..RRL..RLR........................................................', 'ULFRBD'),
('...............................LRL..LLR..RLR.....................................RLR..LRR..LRL........................................................', 'ULFRBD'),
('...............................LRL..LLR..RLR.....................................RLR..RRL..LRL........................................................', 'ULFRBD'),
('...............................LRL..LLR..RLR.....................................RRR..LRR..LLL........................................................', 'ULFRBD'),
('...............................LRL..LLR..RLR.....................................RRR..RRL..LLL........................................................', 'ULFRBD'),
('...............................LRL..LLR..RRR.....................................LLL..LRR..RLR........................................................', 'ULFRBD'),
('...............................LRL..LLR..RRR.....................................LLL..RRL..RLR........................................................', 'ULFRBD'),
('...............................LRL..LLR..RRR.....................................RLR..LRR..LLL........................................................', 'ULFRBD'),
('...............................LRL..LLR..RRR.....................................RLR..RRL..LLL........................................................', 'ULFRBD'),
('...............................LRL..RLL..LLL.....................................RLR..LRR..RRR........................................................', 'ULFRBD'),
('...............................LRL..RLL..LLL.....................................RLR..RRL..RRR........................................................', 'ULFRBD'),
('...............................LRL..RLL..LLL.....................................RRR..LRR..RLR........................................................', 'ULFRBD'),
('...............................LRL..RLL..LLL.....................................RRR..RRL..RLR........................................................', 'ULFRBD'),
('...............................LRL..RLL..LRL.....................................RLR..LRR..RLR........................................................', 'ULFRBD'),
('...............................LRL..RLL..LRL.....................................RLR..RRL..RLR........................................................', 'ULFRBD'),
('...............................LRL..RLL..RLR.....................................LLL..LRR..RRR........................................................', 'ULFRBD'),
('...............................LRL..RLL..RLR.....................................LLL..RRL..RRR........................................................', 'ULFRBD'),
('...............................LRL..RLL..RLR.....................................LRL..LRR..RLR........................................................', 'ULFRBD'),
('...............................LRL..RLL..RLR.....................................LRL..RRL..RLR........................................................', 'ULFRBD'),
('...............................LRL..RLL..RLR.....................................RLR..LRR..LRL........................................................', 'ULFRBD'),
('...............................LRL..RLL..RLR.....................................RLR..RRL..LRL........................................................', 'ULFRBD'),
('...............................LRL..RLL..RLR.....................................RRR..LRR..LLL........................................................', 'ULFRBD'),
('...............................LRL..RLL..RLR.....................................RRR..RRL..LLL........................................................', 'ULFRBD'),
('...............................LRL..RLL..RRR.....................................LLL..LRR..RLR........................................................', 'ULFRBD'),
('...............................LRL..RLL..RRR.....................................LLL..RRL..RLR........................................................', 'ULFRBD'),
('...............................LRL..RLL..RRR.....................................RLR..LRR..LLL........................................................', 'ULFRBD'),
('...............................LRL..RLL..RRR.....................................RLR..RRL..LLL........................................................', 'ULFRBD'),
('...............................LRL..RLR..LLL.....................................RLR..LRL..RRR........................................................', 'ULFRBD'),
('...............................LRL..RLR..LLL.....................................RRR..LRL..RLR........................................................', 'ULFRBD'),
('...............................LRL..RLR..LRL.....................................RLR..LRL..RLR........................................................', 'ULFRBD'),
('...............................LRL..RLR..RLR.....................................LLL..LRL..RRR........................................................', 'ULFRBD'),
('...............................LRL..RLR..RLR.....................................LRL..LRL..RLR........................................................', 'ULFRBD'),
('...............................LRL..RLR..RLR.....................................RLR..LRL..LRL........................................................', 'ULFRBD'),
('...............................LRL..RLR..RLR.....................................RRR..LRL..LLL........................................................', 'ULFRBD'),
('...............................LRL..RLR..RRR.....................................LLL..LRL..RLR........................................................', 'ULFRBD'),
('...............................LRL..RLR..RRR.....................................RLR..LRL..LLL........................................................', 'ULFRBD'),
('...............................LRR..LLL..LLR.....................................LLR..RRR..LRR........................................................', 'ULFRBD'),
('...............................LRR..LLL..LLR.....................................LRR..RRR..LLR........................................................', 'ULFRBD'),
('...............................LRR..LLL..LLR.....................................RLL..RRR..RRL........................................................', 'ULFRBD'),
('...............................LRR..LLL..LLR.....................................RRL..RRR..RLL........................................................', 'ULFRBD'),
('...............................LRR..LLL..LRR.....................................LLR..RRR..LLR........................................................', 'ULFRBD'),
('...............................LRR..LLL..LRR.....................................RLL..RRR..RLL........................................................', 'ULFRBD'),
('...............................LRR..LLL..RLL.....................................RLL..RRR..LRR........................................................', 'ULFRBD'),
('...............................LRR..LLL..RLL.....................................RRL..RRR..LLR........................................................', 'ULFRBD'),
('...............................LRR..LLL..RRL.....................................RLL..RRR..LLR........................................................', 'ULFRBD'),
('...............................LRR..LLR..LLR.....................................LLR..LRR..LRR........................................................', 'ULFRBD'),
('...............................LRR..LLR..LLR.....................................LLR..RRL..LRR........................................................', 'ULFRBD'),
('...............................LRR..LLR..LLR.....................................LRR..LRR..LLR........................................................', 'ULFRBD'),
('...............................LRR..LLR..LLR.....................................LRR..RRL..LLR........................................................', 'ULFRBD'),
('...............................LRR..LLR..LLR.....................................RLL..LRR..RRL........................................................', 'ULFRBD'),
('...............................LRR..LLR..LLR.....................................RLL..RRL..RRL........................................................', 'ULFRBD'),
('...............................LRR..LLR..LLR.....................................RRL..LRR..RLL........................................................', 'ULFRBD'),
('...............................LRR..LLR..LLR.....................................RRL..RRL..RLL........................................................', 'ULFRBD'),
('...............................LRR..LLR..LRR.....................................LLR..LRR..LLR........................................................', 'ULFRBD'),
('...............................LRR..LLR..LRR.....................................LLR..RRL..LLR........................................................', 'ULFRBD'),
('...............................LRR..LLR..LRR.....................................RLL..LRR..RLL........................................................', 'ULFRBD'),
('...............................LRR..LLR..LRR.....................................RLL..RRL..RLL........................................................', 'ULFRBD'),
('...............................LRR..LLR..RLL.....................................RLL..LRR..LRR........................................................', 'ULFRBD'),
('...............................LRR..LLR..RLL.....................................RLL..RRL..LRR........................................................', 'ULFRBD'),
('...............................LRR..LLR..RLL.....................................RRL..LRR..LLR........................................................', 'ULFRBD'),
('...............................LRR..LLR..RLL.....................................RRL..RRL..LLR........................................................', 'ULFRBD'),
('...............................LRR..LLR..RRL.....................................RLL..LRR..LLR........................................................', 'ULFRBD'),
('...............................LRR..LLR..RRL.....................................RLL..RRL..LLR........................................................', 'ULFRBD'),
('...............................LRR..RLL..LLR.....................................LLR..LRR..LRR........................................................', 'ULFRBD'),
('...............................LRR..RLL..LLR.....................................LLR..RRL..LRR........................................................', 'ULFRBD'),
('...............................LRR..RLL..LLR.....................................LRR..LRR..LLR........................................................', 'ULFRBD'),
('...............................LRR..RLL..LLR.....................................LRR..RRL..LLR........................................................', 'ULFRBD'),
('...............................LRR..RLL..LLR.....................................RLL..LRR..RRL........................................................', 'ULFRBD'),
('...............................LRR..RLL..LLR.....................................RLL..RRL..RRL........................................................', 'ULFRBD'),
('...............................LRR..RLL..LLR.....................................RRL..LRR..RLL........................................................', 'ULFRBD'),
('...............................LRR..RLL..LLR.....................................RRL..RRL..RLL........................................................', 'ULFRBD'),
('...............................LRR..RLL..LRR.....................................LLR..LRR..LLR........................................................', 'ULFRBD'),
('...............................LRR..RLL..LRR.....................................LLR..RRL..LLR........................................................', 'ULFRBD'),
('...............................LRR..RLL..LRR.....................................RLL..LRR..RLL........................................................', 'ULFRBD'),
('...............................LRR..RLL..LRR.....................................RLL..RRL..RLL........................................................', 'ULFRBD'),
('...............................LRR..RLL..RLL.....................................RLL..LRR..LRR........................................................', 'ULFRBD'),
('...............................LRR..RLL..RLL.....................................RLL..RRL..LRR........................................................', 'ULFRBD'),
('...............................LRR..RLL..RLL.....................................RRL..LRR..LLR........................................................', 'ULFRBD'),
('...............................LRR..RLL..RLL.....................................RRL..RRL..LLR........................................................', 'ULFRBD'),
('...............................LRR..RLL..RRL.....................................RLL..LRR..LLR........................................................', 'ULFRBD'),
('...............................LRR..RLL..RRL.....................................RLL..RRL..LLR........................................................', 'ULFRBD'),
('...............................LRR..RLR..LLR.....................................LLR..LRL..LRR........................................................', 'ULFRBD'),
('...............................LRR..RLR..LLR.....................................LRR..LRL..LLR........................................................', 'ULFRBD'),
('...............................LRR..RLR..LLR.....................................RLL..LRL..RRL........................................................', 'ULFRBD'),
('...............................LRR..RLR..LLR.....................................RRL..LRL..RLL........................................................', 'ULFRBD'),
('...............................LRR..RLR..LRR.....................................LLR..LRL..LLR........................................................', 'ULFRBD'),
('...............................LRR..RLR..LRR.....................................RLL..LRL..RLL........................................................', 'ULFRBD'),
('...............................LRR..RLR..RLL.....................................RLL..LRL..LRR........................................................', 'ULFRBD'),
('...............................LRR..RLR..RLL.....................................RRL..LRL..LLR........................................................', 'ULFRBD'),
('...............................LRR..RLR..RRL.....................................RLL..LRL..LLR........................................................', 'ULFRBD'),
('...............................RLL..LLL..LLR.....................................LRR..RRR..RRL........................................................', 'ULFRBD'),
('...............................RLL..LLL..LRR.....................................LLR..RRR..RRL........................................................', 'ULFRBD'),
('...............................RLL..LLL..LRR.....................................LRR..RRR..RLL........................................................', 'ULFRBD'),
('...............................RLL..LLL..RLL.....................................LRR..RRR..LRR........................................................', 'ULFRBD'),
('...............................RLL..LLL..RLL.....................................RRL..RRR..RRL........................................................', 'ULFRBD'),
('...............................RLL..LLL..RRL.....................................LLR..RRR..LRR........................................................', 'ULFRBD'),
('...............................RLL..LLL..RRL.....................................LRR..RRR..LLR........................................................', 'ULFRBD'),
('...............................RLL..LLL..RRL.....................................RLL..RRR..RRL........................................................', 'ULFRBD'),
('...............................RLL..LLL..RRL.....................................RRL..RRR..RLL........................................................', 'ULFRBD'),
('...............................RLL..LLR..LLR.....................................LRR..LRR..RRL........................................................', 'ULFRBD'),
('...............................RLL..LLR..LLR.....................................LRR..RRL..RRL........................................................', 'ULFRBD'),
('...............................RLL..LLR..LRR.....................................LLR..LRR..RRL........................................................', 'ULFRBD'),
('...............................RLL..LLR..LRR.....................................LLR..RRL..RRL........................................................', 'ULFRBD'),
('...............................RLL..LLR..LRR.....................................LRR..LRR..RLL........................................................', 'ULFRBD'),
('...............................RLL..LLR..LRR.....................................LRR..RRL..RLL........................................................', 'ULFRBD'),
('...............................RLL..LLR..RLL.....................................LRR..LRR..LRR........................................................', 'ULFRBD'),
('...............................RLL..LLR..RLL.....................................LRR..RRL..LRR........................................................', 'ULFRBD'),
('...............................RLL..LLR..RLL.....................................RRL..LRR..RRL........................................................', 'ULFRBD'),
('...............................RLL..LLR..RLL.....................................RRL..RRL..RRL........................................................', 'ULFRBD'),
('...............................RLL..LLR..RRL.....................................LLR..LRR..LRR........................................................', 'ULFRBD'),
('...............................RLL..LLR..RRL.....................................LLR..RRL..LRR........................................................', 'ULFRBD'),
('...............................RLL..LLR..RRL.....................................LRR..LRR..LLR........................................................', 'ULFRBD'),
('...............................RLL..LLR..RRL.....................................LRR..RRL..LLR........................................................', 'ULFRBD'),
('...............................RLL..LLR..RRL.....................................RLL..LRR..RRL........................................................', 'ULFRBD'),
('...............................RLL..LLR..RRL.....................................RLL..RRL..RRL........................................................', 'ULFRBD'),
('...............................RLL..LLR..RRL.....................................RRL..LRR..RLL........................................................', 'ULFRBD'),
('...............................RLL..LLR..RRL.....................................RRL..RRL..RLL........................................................', 'ULFRBD'),
('...............................RLL..RLL..LLR.....................................LRR..LRR..RRL........................................................', 'ULFRBD'),
('...............................RLL..RLL..LLR.....................................LRR..RRL..RRL........................................................', 'ULFRBD'),
('...............................RLL..RLL..LRR.....................................LLR..LRR..RRL........................................................', 'ULFRBD'),
('...............................RLL..RLL..LRR.....................................LLR..RRL..RRL........................................................', 'ULFRBD'),
('...............................RLL..RLL..LRR.....................................LRR..LRR..RLL........................................................', 'ULFRBD'),
('...............................RLL..RLL..LRR.....................................LRR..RRL..RLL........................................................', 'ULFRBD'),
('...............................RLL..RLL..RLL.....................................LRR..LRR..LRR........................................................', 'ULFRBD'),
('...............................RLL..RLL..RLL.....................................LRR..RRL..LRR........................................................', 'ULFRBD'),
('...............................RLL..RLL..RLL.....................................RRL..LRR..RRL........................................................', 'ULFRBD'),
('...............................RLL..RLL..RLL.....................................RRL..RRL..RRL........................................................', 'ULFRBD'),
('...............................RLL..RLL..RRL.....................................LLR..LRR..LRR........................................................', 'ULFRBD'),
('...............................RLL..RLL..RRL.....................................LLR..RRL..LRR........................................................', 'ULFRBD'),
('...............................RLL..RLL..RRL.....................................LRR..LRR..LLR........................................................', 'ULFRBD'),
('...............................RLL..RLL..RRL.....................................LRR..RRL..LLR........................................................', 'ULFRBD'),
('...............................RLL..RLL..RRL.....................................RLL..LRR..RRL........................................................', 'ULFRBD'),
('...............................RLL..RLL..RRL.....................................RLL..RRL..RRL........................................................', 'ULFRBD'),
('...............................RLL..RLL..RRL.....................................RRL..LRR..RLL........................................................', 'ULFRBD'),
('...............................RLL..RLL..RRL.....................................RRL..RRL..RLL........................................................', 'ULFRBD'),
('...............................RLL..RLR..LLR.....................................LRR..LRL..RRL........................................................', 'ULFRBD'),
('...............................RLL..RLR..LRR.....................................LLR..LRL..RRL........................................................', 'ULFRBD'),
('...............................RLL..RLR..LRR.....................................LRR..LRL..RLL........................................................', 'ULFRBD'),
('...............................RLL..RLR..RLL.....................................LRR..LRL..LRR........................................................', 'ULFRBD'),
('...............................RLL..RLR..RLL.....................................RRL..LRL..RRL........................................................', 'ULFRBD'),
('...............................RLL..RLR..RRL.....................................LLR..LRL..LRR........................................................', 'ULFRBD'),
('...............................RLL..RLR..RRL.....................................LRR..LRL..LLR........................................................', 'ULFRBD'),
('...............................RLL..RLR..RRL.....................................RLL..LRL..RRL........................................................', 'ULFRBD'),
('...............................RLL..RLR..RRL.....................................RRL..LRL..RLL........................................................', 'ULFRBD'),
('...............................RLR..LLL..LLL.....................................LRL..RRR..RRR........................................................', 'ULFRBD'),
('...............................RLR..LLL..LLL.....................................RRR..RRR..LRL........................................................', 'ULFRBD'),
('...............................RLR..LLL..LRL.....................................LLL..RRR..RRR........................................................', 'ULFRBD'),
('...............................RLR..LLL..LRL.....................................LRL..RRR..RLR........................................................', 'ULFRBD'),
('...............................RLR..LLL..LRL.....................................RLR..RRR..LRL........................................................', 'ULFRBD'),
('...............................RLR..LLL..LRL.....................................RRR..RRR..LLL........................................................', 'ULFRBD'),
('...............................RLR..LLL..RLR.....................................LRL..RRR..LRL........................................................', 'ULFRBD'),
('...............................RLR..LLL..RRR.....................................LLL..RRR..LRL........................................................', 'ULFRBD'),
('...............................RLR..LLL..RRR.....................................LRL..RRR..LLL........................................................', 'ULFRBD'),
('...............................RLR..LLR..LLL.....................................LRL..LRR..RRR........................................................', 'ULFRBD'),
('...............................RLR..LLR..LLL.....................................LRL..RRL..RRR........................................................', 'ULFRBD'),
('...............................RLR..LLR..LLL.....................................RRR..LRR..LRL........................................................', 'ULFRBD'),
('...............................RLR..LLR..LLL.....................................RRR..RRL..LRL........................................................', 'ULFRBD'),
('...............................RLR..LLR..LRL.....................................LLL..LRR..RRR........................................................', 'ULFRBD'),
('...............................RLR..LLR..LRL.....................................LLL..RRL..RRR........................................................', 'ULFRBD'),
('...............................RLR..LLR..LRL.....................................LRL..LRR..RLR........................................................', 'ULFRBD'),
('...............................RLR..LLR..LRL.....................................LRL..RRL..RLR........................................................', 'ULFRBD'),
('...............................RLR..LLR..LRL.....................................RLR..LRR..LRL........................................................', 'ULFRBD'),
('...............................RLR..LLR..LRL.....................................RLR..RRL..LRL........................................................', 'ULFRBD'),
('...............................RLR..LLR..LRL.....................................RRR..LRR..LLL........................................................', 'ULFRBD'),
('...............................RLR..LLR..LRL.....................................RRR..RRL..LLL........................................................', 'ULFRBD'),
('...............................RLR..LLR..RLR.....................................LRL..LRR..LRL........................................................', 'ULFRBD'),
('...............................RLR..LLR..RLR.....................................LRL..RRL..LRL........................................................', 'ULFRBD'),
('...............................RLR..LLR..RRR.....................................LLL..LRR..LRL........................................................', 'ULFRBD'),
('...............................RLR..LLR..RRR.....................................LLL..RRL..LRL........................................................', 'ULFRBD'),
('...............................RLR..LLR..RRR.....................................LRL..LRR..LLL........................................................', 'ULFRBD'),
('...............................RLR..LLR..RRR.....................................LRL..RRL..LLL........................................................', 'ULFRBD'),
('...............................RLR..RLL..LLL.....................................LRL..LRR..RRR........................................................', 'ULFRBD'),
('...............................RLR..RLL..LLL.....................................LRL..RRL..RRR........................................................', 'ULFRBD'),
('...............................RLR..RLL..LLL.....................................RRR..LRR..LRL........................................................', 'ULFRBD'),
('...............................RLR..RLL..LLL.....................................RRR..RRL..LRL........................................................', 'ULFRBD'),
('...............................RLR..RLL..LRL.....................................LLL..LRR..RRR........................................................', 'ULFRBD'),
('...............................RLR..RLL..LRL.....................................LLL..RRL..RRR........................................................', 'ULFRBD'),
('...............................RLR..RLL..LRL.....................................LRL..LRR..RLR........................................................', 'ULFRBD'),
('...............................RLR..RLL..LRL.....................................LRL..RRL..RLR........................................................', 'ULFRBD'),
('...............................RLR..RLL..LRL.....................................RLR..LRR..LRL........................................................', 'ULFRBD'),
('...............................RLR..RLL..LRL.....................................RLR..RRL..LRL........................................................', 'ULFRBD'),
('...............................RLR..RLL..LRL.....................................RRR..LRR..LLL........................................................', 'ULFRBD'),
('...............................RLR..RLL..LRL.....................................RRR..RRL..LLL........................................................', 'ULFRBD'),
('...............................RLR..RLL..RLR.....................................LRL..LRR..LRL........................................................', 'ULFRBD'),
('...............................RLR..RLL..RLR.....................................LRL..RRL..LRL........................................................', 'ULFRBD'),
('...............................RLR..RLL..RRR.....................................LLL..LRR..LRL........................................................', 'ULFRBD'),
('...............................RLR..RLL..RRR.....................................LLL..RRL..LRL........................................................', 'ULFRBD'),
('...............................RLR..RLL..RRR.....................................LRL..LRR..LLL........................................................', 'ULFRBD'),
('...............................RLR..RLL..RRR.....................................LRL..RRL..LLL........................................................', 'ULFRBD'),
('...............................RLR..RLR..LLL.....................................LRL..LRL..RRR........................................................', 'ULFRBD'),
('...............................RLR..RLR..LLL.....................................RRR..LRL..LRL........................................................', 'ULFRBD'),
('...............................RLR..RLR..LRL.....................................LLL..LRL..RRR........................................................', 'ULFRBD'),
('...............................RLR..RLR..LRL.....................................LRL..LRL..RLR........................................................', 'ULFRBD'),
('...............................RLR..RLR..LRL.....................................RLR..LRL..LRL........................................................', 'ULFRBD'),
('...............................RLR..RLR..LRL.....................................RRR..LRL..LLL........................................................', 'ULFRBD'),
('...............................RLR..RLR..RLR.....................................LRL..LRL..LRL........................................................', 'ULFRBD'),
('...............................RLR..RLR..RRR.....................................LLL..LRL..LRL........................................................', 'ULFRBD'),
('...............................RLR..RLR..RRR.....................................LRL..LRL..LLL........................................................', 'ULFRBD'),
('...............................RRL..LLL..LLR.....................................LLR..RRR..RRL........................................................', 'ULFRBD'),
('...............................RRL..LLL..LLR.....................................LRR..RRR..RLL........................................................', 'ULFRBD'),
('...............................RRL..LLL..LRR.....................................LLR..RRR..RLL........................................................', 'ULFRBD'),
('...............................RRL..LLL..RLL.....................................LLR..RRR..LRR........................................................', 'ULFRBD'),
('...............................RRL..LLL..RLL.....................................LRR..RRR..LLR........................................................', 'ULFRBD'),
('...............................RRL..LLL..RLL.....................................RLL..RRR..RRL........................................................', 'ULFRBD'),
('...............................RRL..LLL..RLL.....................................RRL..RRR..RLL........................................................', 'ULFRBD'),
('...............................RRL..LLL..RRL.....................................LLR..RRR..LLR........................................................', 'ULFRBD'),
('...............................RRL..LLL..RRL.....................................RLL..RRR..RLL........................................................', 'ULFRBD'),
('...............................RRL..LLR..LLR.....................................LLR..LRR..RRL........................................................', 'ULFRBD'),
('...............................RRL..LLR..LLR.....................................LLR..RRL..RRL........................................................', 'ULFRBD'),
('...............................RRL..LLR..LLR.....................................LRR..LRR..RLL........................................................', 'ULFRBD'),
('...............................RRL..LLR..LLR.....................................LRR..RRL..RLL........................................................', 'ULFRBD'),
('...............................RRL..LLR..LRR.....................................LLR..LRR..RLL........................................................', 'ULFRBD'),
('...............................RRL..LLR..LRR.....................................LLR..RRL..RLL........................................................', 'ULFRBD'),
('...............................RRL..LLR..RLL.....................................LLR..LRR..LRR........................................................', 'ULFRBD'),
('...............................RRL..LLR..RLL.....................................LLR..RRL..LRR........................................................', 'ULFRBD'),
('...............................RRL..LLR..RLL.....................................LRR..LRR..LLR........................................................', 'ULFRBD'),
('...............................RRL..LLR..RLL.....................................LRR..RRL..LLR........................................................', 'ULFRBD'),
('...............................RRL..LLR..RLL.....................................RLL..LRR..RRL........................................................', 'ULFRBD'),
('...............................RRL..LLR..RLL.....................................RLL..RRL..RRL........................................................', 'ULFRBD'),
('...............................RRL..LLR..RLL.....................................RRL..LRR..RLL........................................................', 'ULFRBD'),
('...............................RRL..LLR..RLL.....................................RRL..RRL..RLL........................................................', 'ULFRBD'),
('...............................RRL..LLR..RRL.....................................LLR..LRR..LLR........................................................', 'ULFRBD'),
('...............................RRL..LLR..RRL.....................................LLR..RRL..LLR........................................................', 'ULFRBD'),
('...............................RRL..LLR..RRL.....................................RLL..LRR..RLL........................................................', 'ULFRBD'),
('...............................RRL..LLR..RRL.....................................RLL..RRL..RLL........................................................', 'ULFRBD'),
('...............................RRL..RLL..LLR.....................................LLR..LRR..RRL........................................................', 'ULFRBD'),
('...............................RRL..RLL..LLR.....................................LLR..RRL..RRL........................................................', 'ULFRBD'),
('...............................RRL..RLL..LLR.....................................LRR..LRR..RLL........................................................', 'ULFRBD'),
('...............................RRL..RLL..LLR.....................................LRR..RRL..RLL........................................................', 'ULFRBD'),
('...............................RRL..RLL..LRR.....................................LLR..LRR..RLL........................................................', 'ULFRBD'),
('...............................RRL..RLL..LRR.....................................LLR..RRL..RLL........................................................', 'ULFRBD'),
('...............................RRL..RLL..RLL.....................................LLR..LRR..LRR........................................................', 'ULFRBD'),
('...............................RRL..RLL..RLL.....................................LLR..RRL..LRR........................................................', 'ULFRBD'),
('...............................RRL..RLL..RLL.....................................LRR..LRR..LLR........................................................', 'ULFRBD'),
('...............................RRL..RLL..RLL.....................................LRR..RRL..LLR........................................................', 'ULFRBD'),
('...............................RRL..RLL..RLL.....................................RLL..LRR..RRL........................................................', 'ULFRBD'),
('...............................RRL..RLL..RLL.....................................RLL..RRL..RRL........................................................', 'ULFRBD'),
('...............................RRL..RLL..RLL.....................................RRL..LRR..RLL........................................................', 'ULFRBD'),
('...............................RRL..RLL..RLL.....................................RRL..RRL..RLL........................................................', 'ULFRBD'),
('...............................RRL..RLL..RRL.....................................LLR..LRR..LLR........................................................', 'ULFRBD'),
('...............................RRL..RLL..RRL.....................................LLR..RRL..LLR........................................................', 'ULFRBD'),
('...............................RRL..RLL..RRL.....................................RLL..LRR..RLL........................................................', 'ULFRBD'),
('...............................RRL..RLL..RRL.....................................RLL..RRL..RLL........................................................', 'ULFRBD'),
('...............................RRL..RLR..LLR.....................................LLR..LRL..RRL........................................................', 'ULFRBD'),
('...............................RRL..RLR..LLR.....................................LRR..LRL..RLL........................................................', 'ULFRBD'),
('...............................RRL..RLR..LRR.....................................LLR..LRL..RLL........................................................', 'ULFRBD'),
('...............................RRL..RLR..RLL.....................................LLR..LRL..LRR........................................................', 'ULFRBD'),
('...............................RRL..RLR..RLL.....................................LRR..LRL..LLR........................................................', 'ULFRBD'),
('...............................RRL..RLR..RLL.....................................RLL..LRL..RRL........................................................', 'ULFRBD'),
('...............................RRL..RLR..RLL.....................................RRL..LRL..RLL........................................................', 'ULFRBD'),
('...............................RRL..RLR..RRL.....................................LLR..LRL..LLR........................................................', 'ULFRBD'),
('...............................RRL..RLR..RRL.....................................RLL..LRL..RLL........................................................', 'ULFRBD'),
('...............................RRR..LLL..LLL.....................................LLL..RRR..RRR........................................................', 'ULFRBD'),
('...............................RRR..LLL..LLL.....................................LRL..RRR..RLR........................................................', 'ULFRBD'),
('...............................RRR..LLL..LLL.....................................RLR..RRR..LRL........................................................', 'ULFRBD'),
('...............................RRR..LLL..LLL.....................................RRR..RRR..LLL........................................................', 'ULFRBD'),
('...............................RRR..LLL..LRL.....................................LLL..RRR..RLR........................................................', 'ULFRBD'),
('...............................RRR..LLL..LRL.....................................RLR..RRR..LLL........................................................', 'ULFRBD'),
('...............................RRR..LLL..RLR.....................................LLL..RRR..LRL........................................................', 'ULFRBD'),
('...............................RRR..LLL..RLR.....................................LRL..RRR..LLL........................................................', 'ULFRBD'),
('...............................RRR..LLL..RRR.....................................LLL..RRR..LLL........................................................', 'ULFRBD'),
('...............................RRR..LLR..LLL.....................................LLL..LRR..RRR........................................................', 'ULFRBD'),
('...............................RRR..LLR..LLL.....................................LLL..RRL..RRR........................................................', 'ULFRBD'),
('...............................RRR..LLR..LLL.....................................LRL..LRR..RLR........................................................', 'ULFRBD'),
('...............................RRR..LLR..LLL.....................................LRL..RRL..RLR........................................................', 'ULFRBD'),
('...............................RRR..LLR..LLL.....................................RLR..LRR..LRL........................................................', 'ULFRBD'),
('...............................RRR..LLR..LLL.....................................RLR..RRL..LRL........................................................', 'ULFRBD'),
('...............................RRR..LLR..LLL.....................................RRR..LRR..LLL........................................................', 'ULFRBD'),
('...............................RRR..LLR..LLL.....................................RRR..RRL..LLL........................................................', 'ULFRBD'),
('...............................RRR..LLR..LRL.....................................LLL..LRR..RLR........................................................', 'ULFRBD'),
('...............................RRR..LLR..LRL.....................................LLL..RRL..RLR........................................................', 'ULFRBD'),
('...............................RRR..LLR..LRL.....................................RLR..LRR..LLL........................................................', 'ULFRBD'),
('...............................RRR..LLR..LRL.....................................RLR..RRL..LLL........................................................', 'ULFRBD'),
('...............................RRR..LLR..RLR.....................................LLL..LRR..LRL........................................................', 'ULFRBD'),
('...............................RRR..LLR..RLR.....................................LLL..RRL..LRL........................................................', 'ULFRBD'),
('...............................RRR..LLR..RLR.....................................LRL..LRR..LLL........................................................', 'ULFRBD'),
('...............................RRR..LLR..RLR.....................................LRL..RRL..LLL........................................................', 'ULFRBD'),
('...............................RRR..LLR..RRR.....................................LLL..LRR..LLL........................................................', 'ULFRBD'),
('...............................RRR..LLR..RRR.....................................LLL..RRL..LLL........................................................', 'ULFRBD'),
('...............................RRR..RLL..LLL.....................................LLL..LRR..RRR........................................................', 'ULFRBD'),
('...............................RRR..RLL..LLL.....................................LLL..RRL..RRR........................................................', 'ULFRBD'),
('...............................RRR..RLL..LLL.....................................LRL..LRR..RLR........................................................', 'ULFRBD'),
('...............................RRR..RLL..LLL.....................................LRL..RRL..RLR........................................................', 'ULFRBD'),
('...............................RRR..RLL..LLL.....................................RLR..LRR..LRL........................................................', 'ULFRBD'),
('...............................RRR..RLL..LLL.....................................RLR..RRL..LRL........................................................', 'ULFRBD'),
('...............................RRR..RLL..LLL.....................................RRR..LRR..LLL........................................................', 'ULFRBD'),
('...............................RRR..RLL..LLL.....................................RRR..RRL..LLL........................................................', 'ULFRBD'),
('...............................RRR..RLL..LRL.....................................LLL..LRR..RLR........................................................', 'ULFRBD'),
('...............................RRR..RLL..LRL.....................................LLL..RRL..RLR........................................................', 'ULFRBD'),
('...............................RRR..RLL..LRL.....................................RLR..LRR..LLL........................................................', 'ULFRBD'),
('...............................RRR..RLL..LRL.....................................RLR..RRL..LLL........................................................', 'ULFRBD'),
('...............................RRR..RLL..RLR.....................................LLL..LRR..LRL........................................................', 'ULFRBD'),
('...............................RRR..RLL..RLR.....................................LLL..RRL..LRL........................................................', 'ULFRBD'),
('...............................RRR..RLL..RLR.....................................LRL..LRR..LLL........................................................', 'ULFRBD'),
('...............................RRR..RLL..RLR.....................................LRL..RRL..LLL........................................................', 'ULFRBD'),
('...............................RRR..RLL..RRR.....................................LLL..LRR..LLL........................................................', 'ULFRBD'),
('...............................RRR..RLL..RRR.....................................LLL..RRL..LLL........................................................', 'ULFRBD'),
('...............................RRR..RLR..LLL.....................................LLL..LRL..RRR........................................................', 'ULFRBD'),
('...............................RRR..RLR..LLL.....................................LRL..LRL..RLR........................................................', 'ULFRBD'),
('...............................RRR..RLR..LLL.....................................RLR..LRL..LRL........................................................', 'ULFRBD'),
('...............................RRR..RLR..LLL.....................................RRR..LRL..LLL........................................................', 'ULFRBD'),
('...............................RRR..RLR..LRL.....................................LLL..LRL..RLR........................................................', 'ULFRBD'),
('...............................RRR..RLR..LRL.....................................RLR..LRL..LLL........................................................', 'ULFRBD'),
('...............................RRR..RLR..RLR.....................................LLL..LRL..LRL........................................................', 'ULFRBD'),
('...............................RRR..RLR..RLR.....................................LRL..LRL..LLL........................................................', 'ULFRBD'),
('...............................RRR..RLR..RRR.....................................LLL..LRL..LLL........................................................', 'ULFRBD'),
),
)
# fmt: on
# =======
# phase 3
# =======
class StartingState555EdgeOrientOuterOrbitLRCenterStage(BFS):
"""
There should be 432 of them
"""
def __init__(self):
BFS.__init__(
self,
"5x5x5-LR-center-stage-EO-both-orbits",
("Uw", "Uw'", "Dw", "Dw'", "Fw", "Fw'", "Bw", "Bw'", "Lw", "Lw'", "Rw", "Rw'", "L", "L'", "R", "R'"),
"5x5x5",
"starting-states-lookup-table-5x5x5-step900-edge-orient-LR-center-stage.txt",
False, # store_as_hex
# starting cubes
(
(
"""
. U U D .
D . . . U
U . . . U
U . . . D
. D U U .
. D U U . . D U U . . D U U . . D U U .
D L L L U U . . . D D R R R U U . . . D
U L L L U U . . . U U R R R U U . . . U
U L L L D D . . . U U R R R D D . . . U
. U U D . . U U D . . U U D . . U U D .
. U U D .
D . . . U
U . . . U
U . . . D
. D U U .""",
"ascii",
),
),
)
class Build555LRCenterStageEOBothOrbits(BFS):
"""
2048 * 4900 * 2704156 = 27,136,746,291,200
lookup-table-5x5x5-step900-edge-orient-LR-center-stage.txt
==========================================================
0 steps has 78 entries (0 percent, 0.00x previous step)
1 steps has 1,218 entries (0 percent, 15.62x previous step)
2 steps has 14,256 entries (0 percent, 11.70x previous step)
3 steps has 172,288 entries (0 percent, 12.09x previous step)
4 steps has 1,948,920 entries (7 percent, 11.31x previous step)
5 steps has 24,348,560 entries (91 percent, 12.49x previous step)
extrapolate from here
6 steps has 291,939,234 entries (11.99x previous step)
7 steps has 3,354,381,798 entries (11.49x previous step)
8 steps has 36,864,655,960 entries (10.99x previous step)
9 steps has 386,710,241,020 entries (10.49x previous step)
10 steps has 3,863,235,307,789 entries (9.99x previous step)
11 steps has 22,846,263,280,079 entries (5.91x previous step)
Average: 10.824502972151256
Total : 27,136,746,291,200
phase1+2 ~20 moves
phase3 11.5 moves
phase4 ~14 moves
phase5 ~16 moves
solve 333 20 moves
81.5 total
"""
def __init__(self):
# fmt: off
BFS.__init__(
self,
"5x5x5-LR-center-stage-EO-both-orbits",
("Uw", "Uw'", "Dw", "Dw'", "Fw", "Fw'", "Bw", "Bw'", "Lw", "Lw'", "Rw", "Rw'"),
"5x5x5",
"lookup-table-5x5x5-step900-edge-orient-LR-center-stage.txt",
False, # store_as_hex
# starting cubes
(
('.UUD.D...UU...UU...D.DUU..DUU.DLLLUULLLUULLLD.UUD..DUU.U...DU...UD...U.UUD..DUU.DRRRUURRRUURRRD.UUD..DUU.U...DU...UD...U.UUD..UUD.D...UU...UU...D.DUU.', 'ULFRBD'),
('.UUD.D...UU...UU...D.DUU..DUU.DLLLUULLLUULRLD.UUD..DUU.U...DU...UD...U.UUD..DUU.DRLRUURRRUURRRD.UUD..DUU.U...DU...UD...U.UUD..UUD.D...UU...UU...D.DUU.', 'ULFRBD'),
('.UUD.D...UU...UU...D.DUU..DUU.DLLLUULLLUULRLD.UUD..DUU.U...DU...UD...U.UUD..DUU.DRRRUURRRUURLRD.UUD..DUU.U...DU...UD...U.UUD..UUD.D...UU...UU...D.DUU.', 'ULFRBD'),
('.UUD.D...UU...UU...D.DUU..DUU.DLLLUULLLUURLRD.UUD..DUU.U...DU...UD...U.UUD..DUU.DLRLUURRRUURRRD.UUD..DUU.U...DU...UD...U.UUD..UUD.D...UU...UU...D.DUU.', 'ULFRBD'),
('.UUD.D...UU...UU...D.DUU..DUU.DLLLUULLLUURLRD.UUD..DUU.U...DU...UD...U.UUD..DUU.DRRRUURRRUULRLD.UUD..DUU.U...DU...UD...U.UUD..UUD.D...UU...UU...D.DUU.', 'ULFRBD'),
('.UUD.D...UU...UU...D.DUU..DUU.DLLLUULLLUURRRD.UUD..DUU.U...DU...UD...U.UUD..DUU.DLLLUURRRUURRRD.UUD..DUU.U...DU...UD...U.UUD..UUD.D...UU...UU...D.DUU.', 'ULFRBD'),
('.UUD.D...UU...UU...D.DUU..DUU.DLLLUULLLUURRRD.UUD..DUU.U...DU...UD...U.UUD..DUU.DLRLUURRRUURLRD.UUD..DUU.U...DU...UD...U.UUD..UUD.D...UU...UU...D.DUU.', 'ULFRBD'),
('.UUD.D...UU...UU...D.DUU..DUU.DLLLUULLLUURRRD.UUD..DUU.U...DU...UD...U.UUD..DUU.DRLRUURRRUULRLD.UUD..DUU.U...DU...UD...U.UUD..UUD.D...UU...UU...D.DUU.', 'ULFRBD'),
('.UUD.D...UU...UU...D.DUU..DUU.DLLLUULLLUURRRD.UUD..DUU.U...DU...UD...U.UUD..DUU.DRRRUURRRUULLLD.UUD..DUU.U...DU...UD...U.UUD..UUD.D...UU...UU...D.DUU.', 'ULFRBD'),
('.UUD.D...UU...UU...D.DUU..DUU.DLLLUULLRUULLLD.UUD..DUU.U...DU...UD...U.UUD..DUU.DRRRUULRRUURRRD.UUD..DUU.U...DU...UD...U.UUD..UUD.D...UU...UU...D.DUU.', 'ULFRBD'),
('.UUD.D...UU...UU...D.DUU..DUU.DLLLUULLRUULLLD.UUD..DUU.U...DU...UD...U.UUD..DUU.DRRRUURRLUURRRD.UUD..DUU.U...DU...UD...U.UUD..UUD.D...UU...UU...D.DUU.', 'ULFRBD'),
('.UUD.D...UU...UU...D.DUU..DUU.DLLLUULLRUULRLD.UUD..DUU.U...DU...UD...U.UUD..DUU.DRLRUULRRUURRRD.UUD..DUU.U...DU...UD...U.UUD..UUD.D...UU...UU...D.DUU.', 'ULFRBD'),
('.UUD.D...UU...UU...D.DUU..DUU.DLLLUULLRUULRLD.UUD..DUU.U...DU...UD...U.UUD..DUU.DRLRUURRLUURRRD.UUD..DUU.U...DU...UD...U.UUD..UUD.D...UU...UU...D.DUU.', 'ULFRBD'),
('.UUD.D...UU...UU...D.DUU..DUU.DLLLUULLRUULRLD.UUD..DUU.U...DU...UD...U.UUD..DUU.DRRRUULRRUURLRD.UUD..DUU.U...DU...UD...U.UUD..UUD.D...UU...UU...D.DUU.', 'ULFRBD'),
('.UUD.D...UU...UU...D.DUU..DUU.DLLLUULLRUULRLD.UUD..DUU.U...DU...UD...U.UUD..DUU.DRRRUURRLUURLRD.UUD..DUU.U...DU...UD...U.UUD..UUD.D...UU...UU...D.DUU.', 'ULFRBD'),
('.UUD.D...UU...UU...D.DUU..DUU.DLLLUULLRUURLRD.UUD..DUU.U...DU...UD...U.UUD..DUU.DLRLUULRRUURRRD.UUD..DUU.U...DU...UD...U.UUD..UUD.D...UU...UU...D.DUU.', 'ULFRBD'),
('.UUD.D...UU...UU...D.DUU..DUU.DLLLUULLRUURLRD.UUD..DUU.U...DU...UD...U.UUD..DUU.DLRLUURRLUURRRD.UUD..DUU.U...DU...UD...U.UUD..UUD.D...UU...UU...D.DUU.', 'ULFRBD'),
('.UUD.D...UU...UU...D.DUU..DUU.DLLLUULLRUURLRD.UUD..DUU.U...DU...UD...U.UUD..DUU.DRRRUULRRUULRLD.UUD..DUU.U...DU...UD...U.UUD..UUD.D...UU...UU...D.DUU.', 'ULFRBD'),
('.UUD.D...UU...UU...D.DUU..DUU.DLLLUULLRUURLRD.UUD..DUU.U...DU...UD...U.UUD..DUU.DRRRUURRLUULRLD.UUD..DUU.U...DU...UD...U.UUD..UUD.D...UU...UU...D.DUU.', 'ULFRBD'),
('.UUD.D...UU...UU...D.DUU..DUU.DLLLUULLRUURRRD.UUD..DUU.U...DU...UD...U.UUD..DUU.DLLLUULRRUURRRD.UUD..DUU.U...DU...UD...U.UUD..UUD.D...UU...UU...D.DUU.', 'ULFRBD'),
('.UUD.D...UU...UU...D.DUU..DUU.DLLLUULLRUURRRD.UUD..DUU.U...DU...UD...U.UUD..DUU.DLLLUURRLUURRRD.UUD..DUU.U...DU...UD...U.UUD..UUD.D...UU...UU...D.DUU.', 'ULFRBD'),
('.UUD.D...UU...UU...D.DUU..DUU.DLLLUULLRUURRRD.UUD..DUU.U...DU...UD...U.UUD..DUU.DLRLUULRRUURLRD.UUD..DUU.U...DU...UD...U.UUD..UUD.D...UU...UU...D.DUU.', 'ULFRBD'),
('.UUD.D...UU...UU...D.DUU..DUU.DLLLUULLRUURRRD.UUD..DUU.U...DU...UD...U.UUD..DUU.DLRLUURRLUURLRD.UUD..DUU.U...DU...UD...U.UUD..UUD.D...UU...UU...D.DUU.', 'ULFRBD'),
('.UUD.D...UU...UU...D.DUU..DUU.DLLLUULLRUURRRD.UUD..DUU.U...DU...UD...U.UUD..DUU.DRLRUULRRUULRLD.UUD..DUU.U...DU...UD...U.UUD..UUD.D...UU...UU...D.DUU.', 'ULFRBD'),
('.UUD.D...UU...UU...D.DUU..DUU.DLLLUULLRUURRRD.UUD..DUU.U...DU...UD...U.UUD..DUU.DRLRUURRLUULRLD.UUD..DUU.U...DU...UD...U.UUD..UUD.D...UU...UU...D.DUU.', 'ULFRBD'),
('.UUD.D...UU...UU...D.DUU..DUU.DLLLUULLRUURRRD.UUD..DUU.U...DU...UD...U.UUD..DUU.DRRRUULRRUULLLD.UUD..DUU.U...DU...UD...U.UUD..UUD.D...UU...UU...D.DUU.', 'ULFRBD'),
('.UUD.D...UU...UU...D.DUU..DUU.DLLLUULLRUURRRD.UUD..DUU.U...DU...UD...U.UUD..DUU.DRRRUURRLUULLLD.UUD..DUU.U...DU...UD...U.UUD..UUD.D...UU...UU...D.DUU.', 'ULFRBD'),
('.UUD.D...UU...UU...D.DUU..DUU.DLLLUURLLUULLLD.UUD..DUU.U...DU...UD...U.UUD..DUU.DRRRUULRRUURRRD.UUD..DUU.U...DU...UD...U.UUD..UUD.D...UU...UU...D.DUU.', 'ULFRBD'),
('.UUD.D...UU...UU...D.DUU..DUU.DLLLUURLLUULLLD.UUD..DUU.U...DU...UD...U.UUD..DUU.DRRRUURRLUURRRD.UUD..DUU.U...DU...UD...U.UUD..UUD.D...UU...UU...D.DUU.', 'ULFRBD'),
('.UUD.D...UU...UU...D.DUU..DUU.DLLLUURLLUULRLD.UUD..DUU.U...DU...UD...U.UUD..DUU.DRLRUULRRUURRRD.UUD..DUU.U...DU...UD...U.UUD..UUD.D...UU...UU...D.DUU.', 'ULFRBD'),
('.UUD.D...UU...UU...D.DUU..DUU.DLLLUURLLUULRLD.UUD..DUU.U...DU...UD...U.UUD..DUU.DRLRUURRLUURRRD.UUD..DUU.U...DU...UD...U.UUD..UUD.D...UU...UU...D.DUU.', 'ULFRBD'),
('.UUD.D...UU...UU...D.DUU..DUU.DLLLUURLLUULRLD.UUD..DUU.U...DU...UD...U.UUD..DUU.DRRRUULRRUURLRD.UUD..DUU.U...DU...UD...U.UUD..UUD.D...UU...UU...D.DUU.', 'ULFRBD'),
('.UUD.D...UU...UU...D.DUU..DUU.DLLLUURLLUULRLD.UUD..DUU.U...DU...UD...U.UUD..DUU.DRRRUURRLUURLRD.UUD..DUU.U...DU...UD...U.UUD..UUD.D...UU...UU...D.DUU.', 'ULFRBD'),
('.UUD.D...UU...UU...D.DUU..DUU.DLLLUURLLUURLRD.UUD..DUU.U...DU...UD...U.UUD..DUU.DLRLUULRRUURRRD.UUD..DUU.U...DU...UD...U.UUD..UUD.D...UU...UU...D.DUU.', 'ULFRBD'),
('.UUD.D...UU...UU...D.DUU..DUU.DLLLUURLLUURLRD.UUD..DUU.U...DU...UD...U.UUD..DUU.DLRLUURRLUURRRD.UUD..DUU.U...DU...UD...U.UUD..UUD.D...UU...UU...D.DUU.', 'ULFRBD'),
('.UUD.D...UU...UU...D.DUU..DUU.DLLLUURLLUURLRD.UUD..DUU.U...DU...UD...U.UUD..DUU.DRRRUULRRUULRLD.UUD..DUU.U...DU...UD...U.UUD..UUD.D...UU...UU...D.DUU.', 'ULFRBD'),
('.UUD.D...UU...UU...D.DUU..DUU.DLLLUURLLUURLRD.UUD..DUU.U...DU...UD...U.UUD..DUU.DRRRUURRLUULRLD.UUD..DUU.U...DU...UD...U.UUD..UUD.D...UU...UU...D.DUU.', 'ULFRBD'),
('.UUD.D...UU...UU...D.DUU..DUU.DLLLUURLLUURRRD.UUD..DUU.U...DU...UD...U.UUD..DUU.DLLLUULRRUURRRD.UUD..DUU.U...DU...UD...U.UUD..UUD.D...UU...UU...D.DUU.', 'ULFRBD'),
('.UUD.D...UU...UU...D.DUU..DUU.DLLLUURLLUURRRD.UUD..DUU.U...DU...UD...U.UUD..DUU.DLLLUURRLUURRRD.UUD..DUU.U...DU...UD...U.UUD..UUD.D...UU...UU...D.DUU.', 'ULFRBD'),
('.UUD.D...UU...UU...D.DUU..DUU.DLLLUURLLUURRRD.UUD..DUU.U...DU...UD...U.UUD..DUU.DLRLUULRRUURLRD.UUD..DUU.U...DU...UD...U.UUD..UUD.D...UU...UU...D.DUU.', 'ULFRBD'),
('.UUD.D...UU...UU...D.DUU..DUU.DLLLUURLLUURRRD.UUD..DUU.U...DU...UD...U.UUD..DUU.DLRLUURRLUURLRD.UUD..DUU.U...DU...UD...U.UUD..UUD.D...UU...UU...D.DUU.', 'ULFRBD'),
('.UUD.D...UU...UU...D.DUU..DUU.DLLLUURLLUURRRD.UUD..DUU.U...DU...UD...U.UUD..DUU.DRLRUULRRUULRLD.UUD..DUU.U...DU...UD...U.UUD..UUD.D...UU...UU...D.DUU.', 'ULFRBD'),
('.UUD.D...UU...UU...D.DUU..DUU.DLLLUURLLUURRRD.UUD..DUU.U...DU...UD...U.UUD..DUU.DRLRUURRLUULRLD.UUD..DUU.U...DU...UD...U.UUD..UUD.D...UU...UU...D.DUU.', 'ULFRBD'),
('.UUD.D...UU...UU...D.DUU..DUU.DLLLUURLLUURRRD.UUD..DUU.U...DU...UD...U.UUD..DUU.DRRRUULRRUULLLD.UUD..DUU.U...DU...UD...U.UUD..UUD.D...UU...UU...D.DUU.', 'ULFRBD'),
('.UUD.D...UU...UU...D.DUU..DUU.DLLLUURLLUURRRD.UUD..DUU.U...DU...UD...U.UUD..DUU.DRRRUURRLUULLLD.UUD..DUU.U...DU...UD...U.UUD..UUD.D...UU...UU...D.DUU.', 'ULFRBD'),
('.UUD.D...UU...UU...D.DUU..DUU.DLLLUURLRUULLLD.UUD..DUU.U...DU...UD...U.UUD..DUU.DRRRUULRLUURRRD.UUD..DUU.U...DU...UD...U.UUD..UUD.D...UU...UU...D.DUU.', 'ULFRBD'),
('.UUD.D...UU...UU...D.DUU..DUU.DLLLUURLRUULRLD.UUD..DUU.U...DU...UD...U.UUD..DUU.DRLRUULRLUURRRD.UUD..DUU.U...DU...UD...U.UUD..UUD.D...UU...UU...D.DUU.', 'ULFRBD'),
('.UUD.D...UU...UU...D.DUU..DUU.DLLLUURLRUULRLD.UUD..DUU.U...DU...UD...U.UUD..DUU.DRRRUULRLUURLRD.UUD..DUU.U...DU...UD...U.UUD..UUD.D...UU...UU...D.DUU.', 'ULFRBD'),
('.UUD.D...UU...UU...D.DUU..DUU.DLLLUURLRUURLRD.UUD..DUU.U...DU...UD...U.UUD..DUU.DLRLUULRLUURRRD.UUD..DUU.U...DU...UD...U.UUD..UUD.D...UU...UU...D.DUU.', 'ULFRBD'),
('.UUD.D...UU...UU...D.DUU..DUU.DLLLUURLRUURLRD.UUD..DUU.U...DU...UD...U.UUD..DUU.DRRRUULRLUULRLD.UUD..DUU.U...DU...UD...U.UUD..UUD.D...UU...UU...D.DUU.', 'ULFRBD'),
('.UUD.D...UU...UU...D.DUU..DUU.DLLLUURLRUURRRD.UUD..DUU.U...DU...UD...U.UUD..DUU.DLLLUULRLUURRRD.UUD..DUU.U...DU...UD...U.UUD..UUD.D...UU...UU...D.DUU.', 'ULFRBD'),
('.UUD.D...UU...UU...D.DUU..DUU.DLLLUURLRUURRRD.UUD..DUU.U...DU...UD...U.UUD..DUU.DLRLUULRLUURLRD.UUD..DUU.U...DU...UD...U.UUD..UUD.D...UU...UU...D.DUU.', 'ULFRBD'),
('.UUD.D...UU...UU...D.DUU..DUU.DLLLUURLRUURRRD.UUD..DUU.U...DU...UD...U.UUD..DUU.DRLRUULRLUULRLD.UUD..DUU.U...DU...UD...U.UUD..UUD.D...UU...UU...D.DUU.', 'ULFRBD'),
('.UUD.D...UU...UU...D.DUU..DUU.DLLLUURLRUURRRD.UUD..DUU.U...DU...UD...U.UUD..DUU.DRRRUULRLUULLLD.UUD..DUU.U...DU...UD...U.UUD..UUD.D...UU...UU...D.DUU.', 'ULFRBD'),
('.UUD.D...UU...UU...D.DUU..DUU.DLLRUULLLUULLRD.UUD..DUU.U...DU...UD...U.UUD..DUU.DLRRUURRRUULRRD.UUD..DUU.U...DU...UD...U.UUD..UUD.D...UU...UU...D.DUU.', 'ULFRBD'),
('.UUD.D...UU...UU...D.DUU..DUU.DLLRUULLLUULLRD.UUD..DUU.U...DU...UD...U.UUD..DUU.DRRLUURRRUURRLD.UUD..DUU.U...DU...UD...U.UUD..UUD.D...UU...UU...D.DUU.', 'ULFRBD'),
('.UUD.D...UU...UU...D.DUU..DUU.DLLRUULLLUULRRD.UUD..DUU.U...DU...UD...U.UUD..DUU.DLLRUURRRUULRRD.UUD..DUU.U...DU...UD...U.UUD..UUD.D...UU...UU...D.DUU.', 'ULFRBD'),
('.UUD.D...UU...UU...D.DUU..DUU.DLLRUULLLUULRRD.UUD..DUU.U...DU...UD...U.UUD..DUU.DLRRUURRRUULLRD.UUD..DUU.U...DU...UD...U.UUD..UUD.D...UU...UU...D.DUU.', 'ULFRBD'),
('.UUD.D...UU...UU...D.DUU..DUU.DLLRUULLLUULRRD.UUD..DUU.U...DU...UD...U.UUD..DUU.DRLLUURRRUURRLD.UUD..DUU.U...DU...UD...U.UUD..UUD.D...UU...UU...D.DUU.', 'ULFRBD'),
('.UUD.D...UU...UU...D.DUU..DUU.DLLRUULLLUULRRD.UUD..DUU.U...DU...UD...U.UUD..DUU.DRRLUURRRUURLLD.UUD..DUU.U...DU...UD...U.UUD..UUD.D...UU...UU...D.DUU.', 'ULFRBD'),
('.UUD.D...UU...UU...D.DUU..DUU.DLLRUULLLUURLLD.UUD..DUU.U...DU...UD...U.UUD..DUU.DRRLUURRRUULRRD.UUD..DUU.U...DU...UD...U.UUD..UUD.D...UU...UU...D.DUU.', 'ULFRBD'),
('.UUD.D...UU...UU...D.DUU..DUU.DLLRUULLLUURRLD.UUD..DUU.U...DU...UD...U.UUD..DUU.DRLLUURRRUULRRD.UUD..DUU.U...DU...UD...U.UUD..UUD.D...UU...UU...D.DUU.', 'ULFRBD'),
('.UUD.D...UU...UU...D.DUU..DUU.DLLRUULLLUURRLD.UUD..DUU.U...DU...UD...U.UUD..DUU.DRRLUURRRUULLRD.UUD..DUU.U...DU...UD...U.UUD..UUD.D...UU...UU...D.DUU.', 'ULFRBD'),
('.UUD.D...UU...UU...D.DUU..DUU.DLLRUULLRUULLRD.UUD..DUU.U...DU...UD...U.UUD..DUU.DLRRUULRRUULRRD.UUD..DUU.U...DU...UD...U.UUD..UUD.D...UU...UU...D.DUU.', 'ULFRBD'),
('.UUD.D...UU...UU...D.DUU..DUU.DLLRUULLRUULLRD.UUD..DUU.U...DU...UD...U.UUD..DUU.DLRRUURRLUULRRD.UUD..DUU.U...DU...UD...U.UUD..UUD.D...UU...UU...D.DUU.', 'ULFRBD'),
('.UUD.D...UU...UU...D.DUU..DUU.DLLRUULLRUULLRD.UUD..DUU.U...DU...UD...U.UUD..DUU.DRRLUULRRUURRLD.UUD..DUU.U...DU...UD...U.UUD..UUD.D...UU...UU...D.DUU.', 'ULFRBD'),
('.UUD.D...UU...UU...D.DUU..DUU.DLLRUULLRUULLRD.UUD..DUU.U...DU...UD...U.UUD..DUU.DRRLUURRLUURRLD.UUD..DUU.U...DU...UD...U.UUD..UUD.D...UU...UU...D.DUU.', 'ULFRBD'),
('.UUD.D...UU...UU...D.DUU..DUU.DLLRUULLRUULRRD.UUD..DUU.U...DU...UD...U.UUD..DUU.DLLRUULRRUULRRD.UUD..DUU.U...DU...UD...U.UUD..UUD.D...UU...UU...D.DUU.', 'ULFRBD'),
('.UUD.D...UU...UU...D.DUU..DUU.DLLRUULLRUULRRD.UUD..DUU.U...DU...UD...U.UUD..DUU.DLLRUURRLUULRRD.UUD..DUU.U...DU...UD...U.UUD..UUD.D...UU...UU...D.DUU.', 'ULFRBD'),
('.UUD.D...UU...UU...D.DUU..DUU.DLLRUULLRUULRRD.UUD..DUU.U...DU...UD...U.UUD..DUU.DLRRUULRRUULLRD.UUD..DUU.U...DU...UD...U.UUD..UUD.D...UU...UU...D.DUU.', 'ULFRBD'),
('.UUD.D...UU...UU...D.DUU..DUU.DLLRUULLRUULRRD.UUD..DUU.U...DU...UD...U.UUD..DUU.DLRRUURRLUULLRD.UUD..DUU.U...DU...UD...U.UUD..UUD.D...UU...UU...D.DUU.', 'ULFRBD'),
('.UUD.D...UU...UU...D.DUU..DUU.DLLRUULLRUULRRD.UUD..DUU.U...DU...UD...U.UUD..DUU.DRLLUULRRUURRLD.UUD..DUU.U...DU...UD...U.UUD..UUD.D...UU...UU...D.DUU.', 'ULFRBD'),
('.UUD.D...UU...UU...D.DUU..DUU.DLLRUULLRUULRRD.UUD..DUU.U...DU...UD...U.UUD..DUU.DRLLUURRLUURRLD.UUD..DUU.U...DU...UD...U.UUD..UUD.D...UU...UU...D.DUU.', 'ULFRBD'),
('.UUD.D...UU...UU...D.DUU..DUU.DLLRUULLRUULRRD.UUD..DUU.U...DU...UD...U.UUD..DUU.DRRLUULRRUURLLD.UUD..DUU.U...DU...UD...U.UUD..UUD.D...UU...UU...D.DUU.', 'ULFRBD'),
('.UUD.D...UU...UU...D.DUU..DUU.DLLRUULLRUULRRD.UUD..DUU.U...DU...UD...U.UUD..DUU.DRRLUURRLUURLLD.UUD..DUU.U...DU...UD...U.UUD..UUD.D...UU...UU...D.DUU.', 'ULFRBD'),
('.UUD.D...UU...UU...D.DUU..DUU.DLLRUULLRUURLLD.UUD..DUU.U...DU...UD...U.UUD..DUU.DRRLUULRRUULRRD.UUD..DUU.U...DU...UD...U.UUD..UUD.D...UU...UU...D.DUU.', 'ULFRBD'),
('.UUD.D...UU...UU...D.DUU..DUU.DLLRUULLRUURLLD.UUD..DUU.U...DU...UD...U.UUD..DUU.DRRLUURRLUULRRD.UUD..DUU.U...DU...UD...U.UUD..UUD.D...UU...UU...D.DUU.', 'ULFRBD'),
('.UUD.D...UU...UU...D.DUU..DUU.DLLRUULLRUURRLD.UUD..DUU.U...DU...UD...U.UUD..DUU.DRLLUULRRUULRRD.UUD..DUU.U...DU...UD...U.UUD..UUD.D...UU...UU...D.DUU.', 'ULFRBD'),
('.UUD.D...UU...UU...D.DUU..DUU.DLLRUULLRUURRLD.UUD..DUU.U...DU...UD...U.UUD..DUU.DRLLUURRLUULRRD.UUD..DUU.U...DU...UD...U.UUD..UUD.D...UU...UU...D.DUU.', 'ULFRBD'),
('.UUD.D...UU...UU...D.DUU..DUU.DLLRUULLRUURRLD.UUD..DUU.U...DU...UD...U.UUD..DUU.DRRLUULRRUULLRD.UUD..DUU.U...DU...UD...U.UUD..UUD.D...UU...UU...D.DUU.', 'ULFRBD'),
('.UUD.D...UU...UU...D.DUU..DUU.DLLRUULLRUURRLD.UUD..DUU.U...DU...UD...U.UUD..DUU.DRRLUURRLUULLRD.UUD..DUU.U...DU...UD...U.UUD..UUD.D...UU...UU...D.DUU.', 'ULFRBD'),
('.UUD.D...UU...UU...D.DUU..DUU.DLLRUURLLUULLRD.UUD..DUU.U...DU...UD...U.UUD..DUU.DLRRUULRRUULRRD.UUD..DUU.U...DU...UD...U.UUD..UUD.D...UU...UU...D.DUU.', 'ULFRBD'),
('.UUD.D...UU...UU...D.DUU..DUU.DLLRUURLLUULLRD.UUD..DUU.U...DU...UD...U.UUD..DUU.DLRRUURRLUULRRD.UUD..DUU.U...DU...UD...U.UUD..UUD.D...UU...UU...D.DUU.', 'ULFRBD'),
('.UUD.D...UU...UU...D.DUU..DUU.DLLRUURLLUULLRD.UUD..DUU.U...DU...UD...U.UUD..DUU.DRRLUULRRUURRLD.UUD..DUU.U...DU...UD...U.UUD..UUD.D...UU...UU...D.DUU.', 'ULFRBD'),
('.UUD.D...UU...UU...D.DUU..DUU.DLLRUURLLUULLRD.UUD..DUU.U...DU...UD...U.UUD..DUU.DRRLUURRLUURRLD.UUD..DUU.U...DU...UD...U.UUD..UUD.D...UU...UU...D.DUU.', 'ULFRBD'),
('.UUD.D...UU...UU...D.DUU..DUU.DLLRUURLLUULRRD.UUD..DUU.U...DU...UD...U.UUD..DUU.DLLRUULRRUULRRD.UUD..DUU.U...DU...UD...U.UUD..UUD.D...UU...UU...D.DUU.', 'ULFRBD'),
('.UUD.D...UU...UU...D.DUU..DUU.DLLRUURLLUULRRD.UUD..DUU.U...DU...UD...U.UUD..DUU.DLLRUURRLUULRRD.UUD..DUU.U...DU...UD...U.UUD..UUD.D...UU...UU...D.DUU.', 'ULFRBD'),
('.UUD.D...UU...UU...D.DUU..DUU.DLLRUURLLUULRRD.UUD..DUU.U...DU...UD...U.UUD..DUU.DLRRUULRRUULLRD.UUD..DUU.U...DU...UD...U.UUD..UUD.D...UU...UU...D.DUU.', 'ULFRBD'),
('.UUD.D...UU...UU...D.DUU..DUU.DLLRUURLLUULRRD.UUD..DUU.U...DU...UD...U.UUD..DUU.DLRRUURRLUULLRD.UUD..DUU.U...DU...UD...U.UUD..UUD.D...UU...UU...D.DUU.', 'ULFRBD'),
('.UUD.D...UU...UU...D.DUU..DUU.DLLRUURLLUULRRD.UUD..DUU.U...DU...UD...U.UUD..DUU.DRLLUULRRUURRLD.UUD..DUU.U...DU...UD...U.UUD..UUD.D...UU...UU...D.DUU.', 'ULFRBD'),
('.UUD.D...UU...UU...D.DUU..DUU.DLLRUURLLUULRRD.UUD..DUU.U...DU...UD...U.UUD..DUU.DRLLUURRLUURRLD.UUD..DUU.U...DU...UD...U.UUD..UUD.D...UU...UU...D.DUU.', 'ULFRBD'),
('.UUD.D...UU...UU...D.DUU..DUU.DLLRUURLLUULRRD.UUD..DUU.U...DU...UD...U.UUD..DUU.DRRLUULRRUURLLD.UUD..DUU.U...DU...UD...U.UUD..UUD.D...UU...UU...D.DUU.', 'ULFRBD'),
('.UUD.D...UU...UU...D.DUU..DUU.DLLRUURLLUULRRD.UUD..DUU.U...DU...UD...U.UUD..DUU.DRRLUURRLUURLLD.UUD..DUU.U...DU...UD...U.UUD..UUD.D...UU...UU...D.DUU.', 'ULFRBD'),
('.UUD.D...UU...UU...D.DUU..DUU.DLLRUURLLUURLLD.UUD..DUU.U...DU...UD...U.UUD..DUU.DRRLUULRRUULRRD.UUD..DUU.U...DU...UD...U.UUD..UUD.D...UU...UU...D.DUU.', 'ULFRBD'),
('.UUD.D...UU...UU...D.DUU..DUU.DLLRUURLLUURLLD.UUD..DUU.U...DU...UD...U.UUD..DUU.DRRLUURRLUULRRD.UUD..DUU.U...DU...UD...U.UUD..UUD.D...UU...UU...D.DUU.', 'ULFRBD'),
('.UUD.D...UU...UU...D.DUU..DUU.DLLRUURLLUURRLD.UUD..DUU.U...DU...UD...U.UUD..DUU.DRLLUULRRUULRRD.UUD..DUU.U...DU...UD...U.UUD..UUD.D...UU...UU...D.DUU.', 'ULFRBD'),
('.UUD.D...UU...UU...D.DUU..DUU.DLLRUURLLUURRLD.UUD..DUU.U...DU...UD...U.UUD..DUU.DRLLUURRLUULRRD.UUD..DUU.U...DU...UD...U.UUD..UUD.D...UU...UU...D.DUU.', 'ULFRBD'),
('.UUD.D...UU...UU...D.DUU..DUU.DLLRUURLLUURRLD.UUD..DUU.U...DU...UD...U.UUD..DUU.DRRLUULRRUULLRD.UUD..DUU.U...DU...UD...U.UUD..UUD.D...UU...UU...D.DUU.', 'ULFRBD'),
('.UUD.D...UU...UU...D.DUU..DUU.DLLRUURLLUURRLD.UUD..DUU.U...DU...UD...U.UUD..DUU.DRRLUURRLUULLRD.UUD..DUU.U...DU...UD...U.UUD..UUD.D...UU...UU...D.DUU.', 'ULFRBD'),
('.UUD.D...UU...UU...D.DUU..DUU.DLLRUURLRUULLRD.UUD..DUU.U...DU...UD...U.UUD..DUU.DLRRUULRLUULRRD.UUD..DUU.U...DU...UD...U.UUD..UUD.D...UU...UU...D.DUU.', 'ULFRBD'),
('.UUD.D...UU...UU...D.DUU..DUU.DLLRUURLRUULLRD.UUD..DUU.U...DU...UD...U.UUD..DUU.DRRLUULRLUURRLD.UUD..DUU.U...DU...UD...U.UUD..UUD.D...UU...UU...D.DUU.', 'ULFRBD'),
('.UUD.D...UU...UU...D.DUU..DUU.DLLRUURLRUULRRD.UUD..DUU.U...DU...UD...U.UUD..DUU.DLLRUULRLUULRRD.UUD..DUU.U...DU...UD...U.UUD..UUD.D...UU...UU...D.DUU.', 'ULFRBD'),
('.UUD.D...UU...UU...D.DUU..DUU.DLLRUURLRUULRRD.UUD..DUU.U...DU...UD...U.UUD..DUU.DLRRUULRLUULLRD.UUD..DUU.U...DU...UD...U.UUD..UUD.D...UU...UU...D.DUU.', 'ULFRBD'),
('.UUD.D...UU...UU...D.DUU..DUU.DLLRUURLRUULRRD.UUD..DUU.U...DU...UD...U.UUD..DUU.DRLLUULRLUURRLD.UUD..DUU.U...DU...UD...U.UUD..UUD.D...UU...UU...D.DUU.', 'ULFRBD'),
('.UUD.D...UU...UU...D.DUU..DUU.DLLRUURLRUULRRD.UUD..DUU.U...DU...UD...U.UUD..DUU.DRRLUULRLUURLLD.UUD..DUU.U...DU...UD...U.UUD..UUD.D...UU...UU...D.DUU.', 'ULFRBD'),
('.UUD.D...UU...UU...D.DUU..DUU.DLLRUURLRUURLLD.UUD..DUU.U...DU...UD...U.UUD..DUU.DRRLUULRLUULRRD.UUD..DUU.U...DU...UD...U.UUD..UUD.D...UU...UU...D.DUU.', 'ULFRBD'),
('.UUD.D...UU...UU...D.DUU..DUU.DLLRUURLRUURRLD.UUD..DUU.U...DU...UD...U.UUD..DUU.DRLLUULRLUULRRD.UUD..DUU.U...DU...UD...U.UUD..UUD.D...UU...UU...D.DUU.', 'ULFRBD'),
('.UUD.D...UU...UU...D.DUU..DUU.DLLRUURLRUURRLD.UUD..DUU.U...DU...UD...U.UUD..DUU.DRRLUULRLUULLRD.UUD..DUU.U...DU...UD...U.UUD..UUD.D...UU...UU...D.DUU.', 'ULFRBD'),
('.UUD.D...UU...UU...D.DUU..DUU.DLRLUULLLUULLLD.UUD..DUU.U...DU...UD...U.UUD..DUU.DRLRUURRRUURRRD.UUD..DUU.U...DU...UD...U.UUD..UUD.D...UU...UU...D.DUU.', 'ULFRBD'),
('.UUD.D...UU...UU...D.DUU..DUU.DLRLUULLLUULLLD.UUD..DUU.U...DU...UD...U.UUD..DUU.DRRRUURRRUURLRD.UUD..DUU.U...DU...UD...U.UUD..UUD.D...UU...UU...D.DUU.', 'ULFRBD'),
('.UUD.D...UU...UU...D.DUU..DUU.DLRLUULLLUULRLD.UUD..DUU.U...DU...UD...U.UUD..DUU.DRLRUURRRUURLRD.UUD..DUU.U...DU...UD...U.UUD..UUD.D...UU...UU...D.DUU.', 'ULFRBD'),
('.UUD.D...UU...UU...D.DUU..DUU.DLRLUULLLUURLRD.UUD..DUU.U...DU...UD...U.UUD..DUU.DLLLUURRRUURRRD.UUD..DUU.U...DU...UD...U.UUD..UUD.D...UU...UU...D.DUU.', 'ULFRBD'),
('.UUD.D...UU...UU...D.DUU..DUU.DLRLUULLLUURLRD.UUD..DUU.U...DU...UD...U.UUD..DUU.DLRLUURRRUURLRD.UUD..DUU.U...DU...UD...U.UUD..UUD.D...UU...UU...D.DUU.', 'ULFRBD'),
('.UUD.D...UU...UU...D.DUU..DUU.DLRLUULLLUURLRD.UUD..DUU.U...DU...UD...U.UUD..DUU.DRLRUURRRUULRLD.UUD..DUU.U...DU...UD...U.UUD..UUD.D...UU...UU...D.DUU.', 'ULFRBD'),
('.UUD.D...UU...UU...D.DUU..DUU.DLRLUULLLUURLRD.UUD..DUU.U...DU...UD...U.UUD..DUU.DRRRUURRRUULLLD.UUD..DUU.U...DU...UD...U.UUD..UUD.D...UU...UU...D.DUU.', 'ULFRBD'),
('.UUD.D...UU...UU...D.DUU..DUU.DLRLUULLLUURRRD.UUD..DUU.U...DU...UD...U.UUD..DUU.DLLLUURRRUURLRD.UUD..DUU.U...DU...UD...U.UUD..UUD.D...UU...UU...D.DUU.', 'ULFRBD'),
('.UUD.D...UU...UU...D.DUU..DUU.DLRLUULLLUURRRD.UUD..DUU.U...DU...UD...U.UUD..DUU.DRLRUURRRUULLLD.UUD..DUU.U...DU...UD...U.UUD..UUD.D...UU...UU...D.DUU.', 'ULFRBD'),
('.UUD.D...UU...UU...D.DUU..DUU.DLRLUULLRUULLLD.UUD..DUU.U...DU...UD...U.UUD..DUU.DRLRUULRRUURRRD.UUD..DUU.U...DU...UD...U.UUD..UUD.D...UU...UU...D.DUU.', 'ULFRBD'),
('.UUD.D...UU...UU...D.DUU..DUU.DLRLUULLRUULLLD.UUD..DUU.U...DU...UD...U.UUD..DUU.DRLRUURRLUURRRD.UUD..DUU.U...DU...UD...U.UUD..UUD.D...UU...UU...D.DUU.', 'ULFRBD'),
('.UUD.D...UU...UU...D.DUU..DUU.DLRLUULLRUULLLD.UUD..DUU.U...DU...UD...U.UUD..DUU.DRRRUULRRUURLRD.UUD..DUU.U...DU...UD...U.UUD..UUD.D...UU...UU...D.DUU.', 'ULFRBD'),
('.UUD.D...UU...UU...D.DUU..DUU.DLRLUULLRUULLLD.UUD..DUU.U...DU...UD...U.UUD..DUU.DRRRUURRLUURLRD.UUD..DUU.U...DU...UD...U.UUD..UUD.D...UU...UU...D.DUU.', 'ULFRBD'),
('.UUD.D...UU...UU...D.DUU..DUU.DLRLUULLRUULRLD.UUD..DUU.U...DU...UD...U.UUD..DUU.DRLRUULRRUURLRD.UUD..DUU.U...DU...UD...U.UUD..UUD.D...UU...UU...D.DUU.', 'ULFRBD'),
('.UUD.D...UU...UU...D.DUU..DUU.DLRLUULLRUULRLD.UUD..DUU.U...DU...UD...U.UUD..DUU.DRLRUURRLUURLRD.UUD..DUU.U...DU...UD...U.UUD..UUD.D...UU...UU...D.DUU.', 'ULFRBD'),
('.UUD.D...UU...UU...D.DUU..DUU.DLRLUULLRUURLRD.UUD..DUU.U...DU...UD...U.UUD..DUU.DLLLUULRRUURRRD.UUD..DUU.U...DU...UD...U.UUD..UUD.D...UU...UU...D.DUU.', 'ULFRBD'),
('.UUD.D...UU...UU...D.DUU..DUU.DLRLUULLRUURLRD.UUD..DUU.U...DU...UD...U.UUD..DUU.DLLLUURRLUURRRD.UUD..DUU.U...DU...UD...U.UUD..UUD.D...UU...UU...D.DUU.', 'ULFRBD'),
('.UUD.D...UU...UU...D.DUU..DUU.DLRLUULLRUURLRD.UUD..DUU.U...DU...UD...U.UUD..DUU.DLRLUULRRUURLRD.UUD..DUU.U...DU...UD...U.UUD..UUD.D...UU...UU...D.DUU.', 'ULFRBD'),
('.UUD.D...UU...UU...D.DUU..DUU.DLRLUULLRUURLRD.UUD..DUU.U...DU...UD...U.UUD..DUU.DLRLUURRLUURLRD.UUD..DUU.U...DU...UD...U.UUD..UUD.D...UU...UU...D.DUU.', 'ULFRBD'),
('.UUD.D...UU...UU...D.DUU..DUU.DLRLUULLRUURLRD.UUD..DUU.U...DU...UD...U.UUD..DUU.DRLRUULRRUULRLD.UUD..DUU.U...DU...UD...U.UUD..UUD.D...UU...UU...D.DUU.', 'ULFRBD'),
('.UUD.D...UU...UU...D.DUU..DUU.DLRLUULLRUURLRD.UUD..DUU.U...DU...UD...U.UUD..DUU.DRLRUURRLUULRLD.UUD..DUU.U...DU...UD...U.UUD..UUD.D...UU...UU...D.DUU.', 'ULFRBD'),
('.UUD.D...UU...UU...D.DUU..DUU.DLRLUULLRUURLRD.UUD..DUU.U...DU...UD...U.UUD..DUU.DRRRUULRRUULLLD.UUD..DUU.U...DU...UD...U.UUD..UUD.D...UU...UU...D.DUU.', 'ULFRBD'),
('.UUD.D...UU...UU...D.DUU..DUU.DLRLUULLRUURLRD.UUD..DUU.U...DU...UD...U.UUD..DUU.DRRRUURRLUULLLD.UUD..DUU.U...DU...UD...U.UUD..UUD.D...UU...UU...D.DUU.', 'ULFRBD'),
('.UUD.D...UU...UU...D.DUU..DUU.DLRLUULLRUURRRD.UUD..DUU.U...DU...UD...U.UUD..DUU.DLLLUULRRUURLRD.UUD..DUU.U...DU...UD...U.UUD..UUD.D...UU...UU...D.DUU.', 'ULFRBD'),
('.UUD.D...UU...UU...D.DUU..DUU.DLRLUULLRUURRRD.UUD..DUU.U...DU...UD...U.UUD..DUU.DLLLUURRLUURLRD.UUD..DUU.U...DU...UD...U.UUD..UUD.D...UU...UU...D.DUU.', 'ULFRBD'),
('.UUD.D...UU...UU...D.DUU..DUU.DLRLUULLRUURRRD.UUD..DUU.U...DU...UD...U.UUD..DUU.DRLRUULRRUULLLD.UUD..DUU.U...DU...UD...U.UUD..UUD.D...UU...UU...D.DUU.', 'ULFRBD'),
('.UUD.D...UU...UU...D.DUU..DUU.DLRLUULLRUURRRD.UUD..DUU.U...DU...UD...U.UUD..DUU.DRLRUURRLUULLLD.UUD..DUU.U...DU...UD...U.UUD..UUD.D...UU...UU...D.DUU.', 'ULFRBD'),
('.UUD.D...UU...UU...D.DUU..DUU.DLRLUURLLUULLLD.UUD..DUU.U...DU...UD...U.UUD..DUU.DRLRUULRRUURRRD.UUD..DUU.U...DU...UD...U.UUD..UUD.D...UU...UU...D.DUU.', 'ULFRBD'),
('.UUD.D...UU...UU...D.DUU..DUU.DLRLUURLLUULLLD.UUD..DUU.U...DU...UD...U.UUD..DUU.DRLRUURRLUURRRD.UUD..DUU.U...DU...UD...U.UUD..UUD.D...UU...UU...D.DUU.', 'ULFRBD'),
('.UUD.D...UU...UU...D.DUU..DUU.DLRLUURLLUULLLD.UUD..DUU.U...DU...UD...U.UUD..DUU.DRRRUULRRUURLRD.UUD..DUU.U...DU...UD...U.UUD..UUD.D...UU...UU...D.DUU.', 'ULFRBD'),
('.UUD.D...UU...UU...D.DUU..DUU.DLRLUURLLUULLLD.UUD..DUU.U...DU...UD...U.UUD..DUU.DRRRUURRLUURLRD.UUD..DUU.U...DU...UD...U.UUD..UUD.D...UU...UU...D.DUU.', 'ULFRBD'),
('.UUD.D...UU...UU...D.DUU..DUU.DLRLUURLLUULRLD.UUD..DUU.U...DU...UD...U.UUD..DUU.DRLRUULRRUURLRD.UUD..DUU.U...DU...UD...U.UUD..UUD.D...UU...UU...D.DUU.', 'ULFRBD'),
('.UUD.D...UU...UU...D.DUU..DUU.DLRLUURLLUULRLD.UUD..DUU.U...DU...UD...U.UUD..DUU.DRLRUURRLUURLRD.UUD..DUU.U...DU...UD...U.UUD..UUD.D...UU...UU...D.DUU.', 'ULFRBD'),
('.UUD.D...UU...UU...D.DUU..DUU.DLRLUURLLUURLRD.UUD..DUU.U...DU...UD...U.UUD..DUU.DLLLUULRRUURRRD.UUD..DUU.U...DU...UD...U.UUD..UUD.D...UU...UU...D.DUU.', 'ULFRBD'),
('.UUD.D...UU...UU...D.DUU..DUU.DLRLUURLLUURLRD.UUD..DUU.U...DU...UD...U.UUD..DUU.DLLLUURRLUURRRD.UUD..DUU.U...DU...UD...U.UUD..UUD.D...UU...UU...D.DUU.', 'ULFRBD'),
('.UUD.D...UU...UU...D.DUU..DUU.DLRLUURLLUURLRD.UUD..DUU.U...DU...UD...U.UUD..DUU.DLRLUULRRUURLRD.UUD..DUU.U...DU...UD...U.UUD..UUD.D...UU...UU...D.DUU.', 'ULFRBD'),
('.UUD.D...UU...UU...D.DUU..DUU.DLRLUURLLUURLRD.UUD..DUU.U...DU...UD...U.UUD..DUU.DLRLUURRLUURLRD.UUD..DUU.U...DU...UD...U.UUD..UUD.D...UU...UU...D.DUU.', 'ULFRBD'),
('.UUD.D...UU...UU...D.DUU..DUU.DLRLUURLLUURLRD.UUD..DUU.U...DU...UD...U.UUD..DUU.DRLRUULRRUULRLD.UUD..DUU.U...DU...UD...U.UUD..UUD.D...UU...UU...D.DUU.', 'ULFRBD'),
('.UUD.D...UU...UU...D.DUU..DUU.DLRLUURLLUURLRD.UUD..DUU.U...DU...UD...U.UUD..DUU.DRLRUURRLUULRLD.UUD..DUU.U...DU...UD...U.UUD..UUD.D...UU...UU...D.DUU.', 'ULFRBD'),
('.UUD.D...UU...UU...D.DUU..DUU.DLRLUURLLUURLRD.UUD..DUU.U...DU...UD...U.UUD..DUU.DRRRUULRRUULLLD.UUD..DUU.U...DU...UD...U.UUD..UUD.D...UU...UU...D.DUU.', 'ULFRBD'),
('.UUD.D...UU...UU...D.DUU..DUU.DLRLUURLLUURLRD.UUD..DUU.U...DU...UD...U.UUD..DUU.DRRRUURRLUULLLD.UUD..DUU.U...DU...UD...U.UUD..UUD.D...UU...UU...D.DUU.', 'ULFRBD'),
('.UUD.D...UU...UU...D.DUU..DUU.DLRLUURLLUURRRD.UUD..DUU.U...DU...UD...U.UUD..DUU.DLLLUULRRUURLRD.UUD..DUU.U...DU...UD...U.UUD..UUD.D...UU...UU...D.DUU.', 'ULFRBD'),
('.UUD.D...UU...UU...D.DUU..DUU.DLRLUURLLUURRRD.UUD..DUU.U...DU...UD...U.UUD..DUU.DLLLUURRLUURLRD.UUD..DUU.U...DU...UD...U.UUD..UUD.D...UU...UU...D.DUU.', 'ULFRBD'),
('.UUD.D...UU...UU...D.DUU..DUU.DLRLUURLLUURRRD.UUD..DUU.U...DU...UD...U.UUD..DUU.DRLRUULRRUULLLD.UUD..DUU.U...DU...UD...U.UUD..UUD.D...UU...UU...D.DUU.', 'ULFRBD'),
('.UUD.D...UU...UU...D.DUU..DUU.DLRLUURLLUURRRD.UUD..DUU.U...DU...UD...U.UUD..DUU.DRLRUURRLUULLLD.UUD..DUU.U...DU...UD...U.UUD..UUD.D...UU...UU...D.DUU.', 'ULFRBD'),
('.UUD.D...UU...UU...D.DUU..DUU.DLRLUURLRUULLLD.UUD..DUU.U...DU...UD...U.UUD..DUU.DRLRUULRLUURRRD.UUD..DUU.U...DU...UD...U.UUD..UUD.D...UU...UU...D.DUU.', 'ULFRBD'),
('.UUD.D...UU...UU...D.DUU..DUU.DLRLUURLRUULLLD.UUD..DUU.U...DU...UD...U.UUD..DUU.DRRRUULRLUURLRD.UUD..DUU.U...DU...UD...U.UUD..UUD.D...UU...UU...D.DUU.', 'ULFRBD'),
('.UUD.D...UU...UU...D.DUU..DUU.DLRLUURLRUULRLD.UUD..DUU.U...DU...UD...U.UUD..DUU.DRLRUULRLUURLRD.UUD..DUU.U...DU...UD...U.UUD..UUD.D...UU...UU...D.DUU.', 'ULFRBD'),
('.UUD.D...UU...UU...D.DUU..DUU.DLRLUURLRUURLRD.UUD..DUU.U...DU...UD...U.UUD..DUU.DLLLUULRLUURRRD.UUD..DUU.U...DU...UD...U.UUD..UUD.D...UU...UU...D.DUU.', 'ULFRBD'),
('.UUD.D...UU...UU...D.DUU..DUU.DLRLUURLRUURLRD.UUD..DUU.U...DU...UD...U.UUD..DUU.DLRLUULRLUURLRD.UUD..DUU.U...DU...UD...U.UUD..UUD.D...UU...UU...D.DUU.', 'ULFRBD'),
('.UUD.D...UU...UU...D.DUU..DUU.DLRLUURLRUURLRD.UUD..DUU.U...DU...UD...U.UUD..DUU.DRLRUULRLUULRLD.UUD..DUU.U...DU...UD...U.UUD..UUD.D...UU...UU...D.DUU.', 'ULFRBD'),
('.UUD.D...UU...UU...D.DUU..DUU.DLRLUURLRUURLRD.UUD..DUU.U...DU...UD...U.UUD..DUU.DRRRUULRLUULLLD.UUD..DUU.U...DU...UD...U.UUD..UUD.D...UU...UU...D.DUU.', 'ULFRBD'),
('.UUD.D...UU...UU...D.DUU..DUU.DLRLUURLRUURRRD.UUD..DUU.U...DU...UD...U.UUD..DUU.DLLLUULRLUURLRD.UUD..DUU.U...DU...UD...U.UUD..UUD.D...UU...UU...D.DUU.', 'ULFRBD'),
('.UUD.D...UU...UU...D.DUU..DUU.DLRLUURLRUURRRD.UUD..DUU.U...DU...UD...U.UUD..DUU.DRLRUULRLUULLLD.UUD..DUU.U...DU...UD...U.UUD..UUD.D...UU...UU...D.DUU.', 'ULFRBD'),
('.UUD.D...UU...UU...D.DUU..DUU.DLRRUULLLUULLRD.UUD..DUU.U...DU...UD...U.UUD..DUU.DLLRUURRRUULRRD.UUD..DUU.U...DU...UD...U.UUD..UUD.D...UU...UU...D.DUU.', 'ULFRBD'),
('.UUD.D...UU...UU...D.DUU..DUU.DLRRUULLLUULLRD.UUD..DUU.U...DU...UD...U.UUD..DUU.DLRRUURRRUULLRD.UUD..DUU.U...DU...UD...U.UUD..UUD.D...UU...UU...D.DUU.', 'ULFRBD'),
('.UUD.D...UU...UU...D.DUU..DUU.DLRRUULLLUULLRD.UUD..DUU.U...DU...UD...U.UUD..DUU.DRLLUURRRUURRLD.UUD..DUU.U...DU...UD...U.UUD..UUD.D...UU...UU...D.DUU.', 'ULFRBD'),
('.UUD.D...UU...UU...D.DUU..DUU.DLRRUULLLUULLRD.UUD..DUU.U...DU...UD...U.UUD..DUU.DRRLUURRRUURLLD.UUD..DUU.U...DU...UD...U.UUD..UUD.D...UU...UU...D.DUU.', 'ULFRBD'),
('.UUD.D...UU...UU...D.DUU..DUU.DLRRUULLLUULRRD.UUD..DUU.U...DU...UD...U.UUD..DUU.DLLRUURRRUULLRD.UUD..DUU.U...DU...UD...U.UUD..UUD.D...UU...UU...D.DUU.', 'ULFRBD'),
('.UUD.D...UU...UU...D.DUU..DUU.DLRRUULLLUULRRD.UUD..DUU.U...DU...UD...U.UUD..DUU.DRLLUURRRUURLLD.UUD..DUU.U...DU...UD...U.UUD..UUD.D...UU...UU...D.DUU.', 'ULFRBD'),
('.UUD.D...UU...UU...D.DUU..DUU.DLRRUULLLUURLLD.UUD..DUU.U...DU...UD...U.UUD..DUU.DRLLUURRRUULRRD.UUD..DUU.U...DU...UD...U.UUD..UUD.D...UU...UU...D.DUU.', 'ULFRBD'),
('.UUD.D...UU...UU...D.DUU..DUU.DLRRUULLLUURLLD.UUD..DUU.U...DU...UD...U.UUD..DUU.DRRLUURRRUULLRD.UUD..DUU.U...DU...UD...U.UUD..UUD.D...UU...UU...D.DUU.', 'ULFRBD'),
('.UUD.D...UU...UU...D.DUU..DUU.DLRRUULLLUURRLD.UUD..DUU.U...DU...UD...U.UUD..DUU.DRLLUURRRUULLRD.UUD..DUU.U...DU...UD...U.UUD..UUD.D...UU...UU...D.DUU.', 'ULFRBD'),
('.UUD.D...UU...UU...D.DUU..DUU.DLRRUULLRUULLRD.UUD..DUU.U...DU...UD...U.UUD..DUU.DLLRUULRRUULRRD.UUD..DUU.U...DU...UD...U.UUD..UUD.D...UU...UU...D.DUU.', 'ULFRBD'),
('.UUD.D...UU...UU...D.DUU..DUU.DLRRUULLRUULLRD.UUD..DUU.U...DU...UD...U.UUD..DUU.DLLRUURRLUULRRD.UUD..DUU.U...DU...UD...U.UUD..UUD.D...UU...UU...D.DUU.', 'ULFRBD'),
('.UUD.D...UU...UU...D.DUU..DUU.DLRRUULLRUULLRD.UUD..DUU.U...DU...UD...U.UUD..DUU.DLRRUULRRUULLRD.UUD..DUU.U...DU...UD...U.UUD..UUD.D...UU...UU...D.DUU.', 'ULFRBD'),
('.UUD.D...UU...UU...D.DUU..DUU.DLRRUULLRUULLRD.UUD..DUU.U...DU...UD...U.UUD..DUU.DLRRUURRLUULLRD.UUD..DUU.U...DU...UD...U.UUD..UUD.D...UU...UU...D.DUU.', 'ULFRBD'),
('.UUD.D...UU...UU...D.DUU..DUU.DLRRUULLRUULLRD.UUD..DUU.U...DU...UD...U.UUD..DUU.DRLLUULRRUURRLD.UUD..DUU.U...DU...UD...U.UUD..UUD.D...UU...UU...D.DUU.', 'ULFRBD'),
('.UUD.D...UU...UU...D.DUU..DUU.DLRRUULLRUULLRD.UUD..DUU.U...DU...UD...U.UUD..DUU.DRLLUURRLUURRLD.UUD..DUU.U...DU...UD...U.UUD..UUD.D...UU...UU...D.DUU.', 'ULFRBD'),
('.UUD.D...UU...UU...D.DUU..DUU.DLRRUULLRUULLRD.UUD..DUU.U...DU...UD...U.UUD..DUU.DRRLUULRRUURLLD.UUD..DUU.U...DU...UD...U.UUD..UUD.D...UU...UU...D.DUU.', 'ULFRBD'),
('.UUD.D...UU...UU...D.DUU..DUU.DLRRUULLRUULLRD.UUD..DUU.U...DU...UD...U.UUD..DUU.DRRLUURRLUURLLD.UUD..DUU.U...DU...UD...U.UUD..UUD.D...UU...UU...D.DUU.', 'ULFRBD'),
('.UUD.D...UU...UU...D.DUU..DUU.DLRRUULLRUULRRD.UUD..DUU.U...DU...UD...U.UUD..DUU.DLLRUULRRUULLRD.UUD..DUU.U...DU...UD...U.UUD..UUD.D...UU...UU...D.DUU.', 'ULFRBD'),
('.UUD.D...UU...UU...D.DUU..DUU.DLRRUULLRUULRRD.UUD..DUU.U...DU...UD...U.UUD..DUU.DLLRUURRLUULLRD.UUD..DUU.U...DU...UD...U.UUD..UUD.D...UU...UU...D.DUU.', 'ULFRBD'),
('.UUD.D...UU...UU...D.DUU..DUU.DLRRUULLRUULRRD.UUD..DUU.U...DU...UD...U.UUD..DUU.DRLLUULRRUURLLD.UUD..DUU.U...DU...UD...U.UUD..UUD.D...UU...UU...D.DUU.', 'ULFRBD'),
('.UUD.D...UU...UU...D.DUU..DUU.DLRRUULLRUULRRD.UUD..DUU.U...DU...UD...U.UUD..DUU.DRLLUURRLUURLLD.UUD..DUU.U...DU...UD...U.UUD..UUD.D...UU...UU...D.DUU.', 'ULFRBD'),
('.UUD.D...UU...UU...D.DUU..DUU.DLRRUULLRUURLLD.UUD..DUU.U...DU...UD...U.UUD..DUU.DRLLUULRRUULRRD.UUD..DUU.U...DU...UD...U.UUD..UUD.D...UU...UU...D.DUU.', 'ULFRBD'),
('.UUD.D...UU...UU...D.DUU..DUU.DLRRUULLRUURLLD.UUD..DUU.U...DU...UD...U.UUD..DUU.DRLLUURRLUULRRD.UUD..DUU.U...DU...UD...U.UUD..UUD.D...UU...UU...D.DUU.', 'ULFRBD'),
('.UUD.D...UU...UU...D.DUU..DUU.DLRRUULLRUURLLD.UUD..DUU.U...DU...UD...U.UUD..DUU.DRRLUULRRUULLRD.UUD..DUU.U...DU...UD...U.UUD..UUD.D...UU...UU...D.DUU.', 'ULFRBD'),
('.UUD.D...UU...UU...D.DUU..DUU.DLRRUULLRUURLLD.UUD..DUU.U...DU...UD...U.UUD..DUU.DRRLUURRLUULLRD.UUD..DUU.U...DU...UD...U.UUD..UUD.D...UU...UU...D.DUU.', 'ULFRBD'),
('.UUD.D...UU...UU...D.DUU..DUU.DLRRUULLRUURRLD.UUD..DUU.U...DU...UD...U.UUD..DUU.DRLLUULRRUULLRD.UUD..DUU.U...DU...UD...U.UUD..UUD.D...UU...UU...D.DUU.', 'ULFRBD'),
('.UUD.D...UU...UU...D.DUU..DUU.DLRRUULLRUURRLD.UUD..DUU.U...DU...UD...U.UUD..DUU.DRLLUURRLUULLRD.UUD..DUU.U...DU...UD...U.UUD..UUD.D...UU...UU...D.DUU.', 'ULFRBD'),
('.UUD.D...UU...UU...D.DUU..DUU.DLRRUURLLUULLRD.UUD..DUU.U...DU...UD...U.UUD..DUU.DLLRUULRRUULRRD.UUD..DUU.U...DU...UD...U.UUD..UUD.D...UU...UU...D.DUU.', 'ULFRBD'),
('.UUD.D...UU...UU...D.DUU..DUU.DLRRUURLLUULLRD.UUD..DUU.U...DU...UD...U.UUD..DUU.DLLRUURRLUULRRD.UUD..DUU.U...DU...UD...U.UUD..UUD.D...UU...UU...D.DUU.', 'ULFRBD'),
('.UUD.D...UU...UU...D.DUU..DUU.DLRRUURLLUULLRD.UUD..DUU.U...DU...UD...U.UUD..DUU.DLRRUULRRUULLRD.UUD..DUU.U...DU...UD...U.UUD..UUD.D...UU...UU...D.DUU.', 'ULFRBD'),
('.UUD.D...UU...UU...D.DUU..DUU.DLRRUURLLUULLRD.UUD..DUU.U...DU...UD...U.UUD..DUU.DLRRUURRLUULLRD.UUD..DUU.U...DU...UD...U.UUD..UUD.D...UU...UU...D.DUU.', 'ULFRBD'),
('.UUD.D...UU...UU...D.DUU..DUU.DLRRUURLLUULLRD.UUD..DUU.U...DU...UD...U.UUD..DUU.DRLLUULRRUURRLD.UUD..DUU.U...DU...UD...U.UUD..UUD.D...UU...UU...D.DUU.', 'ULFRBD'),
('.UUD.D...UU...UU...D.DUU..DUU.DLRRUURLLUULLRD.UUD..DUU.U...DU...UD...U.UUD..DUU.DRLLUURRLUURRLD.UUD..DUU.U...DU...UD...U.UUD..UUD.D...UU...UU...D.DUU.', 'ULFRBD'),
('.UUD.D...UU...UU...D.DUU..DUU.DLRRUURLLUULLRD.UUD..DUU.U...DU...UD...U.UUD..DUU.DRRLUULRRUURLLD.UUD..DUU.U...DU...UD...U.UUD..UUD.D...UU...UU...D.DUU.', 'ULFRBD'),
('.UUD.D...UU...UU...D.DUU..DUU.DLRRUURLLUULLRD.UUD..DUU.U...DU...UD...U.UUD..DUU.DRRLUURRLUURLLD.UUD..DUU.U...DU...UD...U.UUD..UUD.D...UU...UU...D.DUU.', 'ULFRBD'),
('.UUD.D...UU...UU...D.DUU..DUU.DLRRUURLLUULRRD.UUD..DUU.U...DU...UD...U.UUD..DUU.DLLRUULRRUULLRD.UUD..DUU.U...DU...UD...U.UUD..UUD.D...UU...UU...D.DUU.', 'ULFRBD'),
('.UUD.D...UU...UU...D.DUU..DUU.DLRRUURLLUULRRD.UUD..DUU.U...DU...UD...U.UUD..DUU.DLLRUURRLUULLRD.UUD..DUU.U...DU...UD...U.UUD..UUD.D...UU...UU...D.DUU.', 'ULFRBD'),
('.UUD.D...UU...UU...D.DUU..DUU.DLRRUURLLUULRRD.UUD..DUU.U...DU...UD...U.UUD..DUU.DRLLUULRRUURLLD.UUD..DUU.U...DU...UD...U.UUD..UUD.D...UU...UU...D.DUU.', 'ULFRBD'),
('.UUD.D...UU...UU...D.DUU..DUU.DLRRUURLLUULRRD.UUD..DUU.U...DU...UD...U.UUD..DUU.DRLLUURRLUURLLD.UUD..DUU.U...DU...UD...U.UUD..UUD.D...UU...UU...D.DUU.', 'ULFRBD'),
('.UUD.D...UU...UU...D.DUU..DUU.DLRRUURLLUURLLD.UUD..DUU.U...DU...UD...U.UUD..DUU.DRLLUULRRUULRRD.UUD..DUU.U...DU...UD...U.UUD..UUD.D...UU...UU...D.DUU.', 'ULFRBD'),
('.UUD.D...UU...UU...D.DUU..DUU.DLRRUURLLUURLLD.UUD..DUU.U...DU...UD...U.UUD..DUU.DRLLUURRLUULRRD.UUD..DUU.U...DU...UD...U.UUD..UUD.D...UU...UU...D.DUU.', 'ULFRBD'),
('.UUD.D...UU...UU...D.DUU..DUU.DLRRUURLLUURLLD.UUD..DUU.U...DU...UD...U.UUD..DUU.DRRLUULRRUULLRD.UUD..DUU.U...DU...UD...U.UUD..UUD.D...UU...UU...D.DUU.', 'ULFRBD'),
('.UUD.D...UU...UU...D.DUU..DUU.DLRRUURLLUURLLD.UUD..DUU.U...DU...UD...U.UUD..DUU.DRRLUURRLUULLRD.UUD..DUU.U...DU...UD...U.UUD..UUD.D...UU...UU...D.DUU.', 'ULFRBD'),
('.UUD.D...UU...UU...D.DUU..DUU.DLRRUURLLUURRLD.UUD..DUU.U...DU...UD...U.UUD..DUU.DRLLUULRRUULLRD.UUD..DUU.U...DU...UD...U.UUD..UUD.D...UU...UU...D.DUU.', 'ULFRBD'),
('.UUD.D...UU...UU...D.DUU..DUU.DLRRUURLLUURRLD.UUD..DUU.U...DU...UD...U.UUD..DUU.DRLLUURRLUULLRD.UUD..DUU.U...DU...UD...U.UUD..UUD.D...UU...UU...D.DUU.', 'ULFRBD'),
('.UUD.D...UU...UU...D.DUU..DUU.DLRRUURLRUULLRD.UUD..DUU.U...DU...UD...U.UUD..DUU.DLLRUULRLUULRRD.UUD..DUU.U...DU...UD...U.UUD..UUD.D...UU...UU...D.DUU.', 'ULFRBD'),
('.UUD.D...UU...UU...D.DUU..DUU.DLRRUURLRUULLRD.UUD..DUU.U...DU...UD...U.UUD..DUU.DLRRUULRLUULLRD.UUD..DUU.U...DU...UD...U.UUD..UUD.D...UU...UU...D.DUU.', 'ULFRBD'),
('.UUD.D...UU...UU...D.DUU..DUU.DLRRUURLRUULLRD.UUD..DUU.U...DU...UD...U.UUD..DUU.DRLLUULRLUURRLD.UUD..DUU.U...DU...UD...U.UUD..UUD.D...UU...UU...D.DUU.', 'ULFRBD'),
('.UUD.D...UU...UU...D.DUU..DUU.DLRRUURLRUULLRD.UUD..DUU.U...DU...UD...U.UUD..DUU.DRRLUULRLUURLLD.UUD..DUU.U...DU...UD...U.UUD..UUD.D...UU...UU...D.DUU.', 'ULFRBD'),
('.UUD.D...UU...UU...D.DUU..DUU.DLRRUURLRUULRRD.UUD..DUU.U...DU...UD...U.UUD..DUU.DLLRUULRLUULLRD.UUD..DUU.U...DU...UD...U.UUD..UUD.D...UU...UU...D.DUU.', 'ULFRBD'),
('.UUD.D...UU...UU...D.DUU..DUU.DLRRUURLRUULRRD.UUD..DUU.U...DU...UD...U.UUD..DUU.DRLLUULRLUURLLD.UUD..DUU.U...DU...UD...U.UUD..UUD.D...UU...UU...D.DUU.', 'ULFRBD'),
('.UUD.D...UU...UU...D.DUU..DUU.DLRRUURLRUURLLD.UUD..DUU.U...DU...UD...U.UUD..DUU.DRLLUULRLUULRRD.UUD..DUU.U...DU...UD...U.UUD..UUD.D...UU...UU...D.DUU.', 'ULFRBD'),
('.UUD.D...UU...UU...D.DUU..DUU.DLRRUURLRUURLLD.UUD..DUU.U...DU...UD...U.UUD..DUU.DRRLUULRLUULLRD.UUD..DUU.U...DU...UD...U.UUD..UUD.D...UU...UU...D.DUU.', 'ULFRBD'),
('.UUD.D...UU...UU...D.DUU..DUU.DLRRUURLRUURRLD.UUD..DUU.U...DU...UD...U.UUD..DUU.DRLLUULRLUULLRD.UUD..DUU.U...DU...UD...U.UUD..UUD.D...UU...UU...D.DUU.', 'ULFRBD'),
('.UUD.D...UU...UU...D.DUU..DUU.DRLLUULLLUULLRD.UUD..DUU.U...DU...UD...U.UUD..DUU.DLRRUURRRUURRLD.UUD..DUU.U...DU...UD...U.UUD..UUD.D...UU...UU...D.DUU.', 'ULFRBD'),
('.UUD.D...UU...UU...D.DUU..DUU.DRLLUULLLUULRRD.UUD..DUU.U...DU...UD...U.UUD..DUU.DLLRUURRRUURRLD.UUD..DUU.U...DU...UD...U.UUD..UUD.D...UU...UU...D.DUU.', 'ULFRBD'),
('.UUD.D...UU...UU...D.DUU..DUU.DRLLUULLLUULRRD.UUD..DUU.U...DU...UD...U.UUD..DUU.DLRRUURRRUURLLD.UUD..DUU.U...DU...UD...U.UUD..UUD.D...UU...UU...D.DUU.', 'ULFRBD'),
('.UUD.D...UU...UU...D.DUU..DUU.DRLLUULLLUURLLD.UUD..DUU.U...DU...UD...U.UUD..DUU.DLRRUURRRUULRRD.UUD..DUU.U...DU...UD...U.UUD..UUD.D...UU...UU...D.DUU.', 'ULFRBD'),
('.UUD.D...UU...UU...D.DUU..DUU.DRLLUULLLUURLLD.UUD..DUU.U...DU...UD...U.UUD..DUU.DRRLUURRRUURRLD.UUD..DUU.U...DU...UD...U.UUD..UUD.D...UU...UU...D.DUU.', 'ULFRBD'),
('.UUD.D...UU...UU...D.DUU..DUU.DRLLUULLLUURRLD.UUD..DUU.U...DU...UD...U.UUD..DUU.DLLRUURRRUULRRD.UUD..DUU.U...DU...UD...U.UUD..UUD.D...UU...UU...D.DUU.', 'ULFRBD'),
('.UUD.D...UU...UU...D.DUU..DUU.DRLLUULLLUURRLD.UUD..DUU.U...DU...UD...U.UUD..DUU.DLRRUURRRUULLRD.UUD..DUU.U...DU...UD...U.UUD..UUD.D...UU...UU...D.DUU.', 'ULFRBD'),
('.UUD.D...UU...UU...D.DUU..DUU.DRLLUULLLUURRLD.UUD..DUU.U...DU...UD...U.UUD..DUU.DRLLUURRRUURRLD.UUD..DUU.U...DU...UD...U.UUD..UUD.D...UU...UU...D.DUU.', 'ULFRBD'),
('.UUD.D...UU...UU...D.DUU..DUU.DRLLUULLLUURRLD.UUD..DUU.U...DU...UD...U.UUD..DUU.DRRLUURRRUURLLD.UUD..DUU.U...DU...UD...U.UUD..UUD.D...UU...UU...D.DUU.', 'ULFRBD'),
('.UUD.D...UU...UU...D.DUU..DUU.DRLLUULLRUULLRD.UUD..DUU.U...DU...UD...U.UUD..DUU.DLRRUULRRUURRLD.UUD..DUU.U...DU...UD...U.UUD..UUD.D...UU...UU...D.DUU.', 'ULFRBD'),
('.UUD.D...UU...UU...D.DUU..DUU.DRLLUULLRUULLRD.UUD..DUU.U...DU...UD...U.UUD..DUU.DLRRUURRLUURRLD.UUD..DUU.U...DU...UD...U.UUD..UUD.D...UU...UU...D.DUU.', 'ULFRBD'),
('.UUD.D...UU...UU...D.DUU..DUU.DRLLUULLRUULRRD.UUD..DUU.U...DU...UD...U.UUD..DUU.DLLRUULRRUURRLD.UUD..DUU.U...DU...UD...U.UUD..UUD.D...UU...UU...D.DUU.', 'ULFRBD'),
('.UUD.D...UU...UU...D.DUU..DUU.DRLLUULLRUULRRD.UUD..DUU.U...DU...UD...U.UUD..DUU.DLLRUURRLUURRLD.UUD..DUU.U...DU...UD...U.UUD..UUD.D...UU...UU...D.DUU.', 'ULFRBD'),
('.UUD.D...UU...UU...D.DUU..DUU.DRLLUULLRUULRRD.UUD..DUU.U...DU...UD...U.UUD..DUU.DLRRUULRRUURLLD.UUD..DUU.U...DU...UD...U.UUD..UUD.D...UU...UU...D.DUU.', 'ULFRBD'),
('.UUD.D...UU...UU...D.DUU..DUU.DRLLUULLRUULRRD.UUD..DUU.U...DU...UD...U.UUD..DUU.DLRRUURRLUURLLD.UUD..DUU.U...DU...UD...U.UUD..UUD.D...UU...UU...D.DUU.', 'ULFRBD'),
('.UUD.D...UU...UU...D.DUU..DUU.DRLLUULLRUURLLD.UUD..DUU.U...DU...UD...U.UUD..DUU.DLRRUULRRUULRRD.UUD..DUU.U...DU...UD...U.UUD..UUD.D...UU...UU...D.DUU.', 'ULFRBD'),
('.UUD.D...UU...UU...D.DUU..DUU.DRLLUULLRUURLLD.UUD..DUU.U...DU...UD...U.UUD..DUU.DLRRUURRLUULRRD.UUD..DUU.U...DU...UD...U.UUD..UUD.D...UU...UU...D.DUU.', 'ULFRBD'),
('.UUD.D...UU...UU...D.DUU..DUU.DRLLUULLRUURLLD.UUD..DUU.U...DU...UD...U.UUD..DUU.DRRLUULRRUURRLD.UUD..DUU.U...DU...UD...U.UUD..UUD.D...UU...UU...D.DUU.', 'ULFRBD'),
('.UUD.D...UU...UU...D.DUU..DUU.DRLLUULLRUURLLD.UUD..DUU.U...DU...UD...U.UUD..DUU.DRRLUURRLUURRLD.UUD..DUU.U...DU...UD...U.UUD..UUD.D...UU...UU...D.DUU.', 'ULFRBD'),
('.UUD.D...UU...UU...D.DUU..DUU.DRLLUULLRUURRLD.UUD..DUU.U...DU...UD...U.UUD..DUU.DLLRUULRRUULRRD.UUD..DUU.U...DU...UD...U.UUD..UUD.D...UU...UU...D.DUU.', 'ULFRBD'),
('.UUD.D...UU...UU...D.DUU..DUU.DRLLUULLRUURRLD.UUD..DUU.U...DU...UD...U.UUD..DUU.DLLRUURRLUULRRD.UUD..DUU.U...DU...UD...U.UUD..UUD.D...UU...UU...D.DUU.', 'ULFRBD'),
('.UUD.D...UU...UU...D.DUU..DUU.DRLLUULLRUURRLD.UUD..DUU.U...DU...UD...U.UUD..DUU.DLRRUULRRUULLRD.UUD..DUU.U...DU...UD...U.UUD..UUD.D...UU...UU...D.DUU.', 'ULFRBD'),
('.UUD.D...UU...UU...D.DUU..DUU.DRLLUULLRUURRLD.UUD..DUU.U...DU...UD...U.UUD..DUU.DLRRUURRLUULLRD.UUD..DUU.U...DU...UD...U.UUD..UUD.D...UU...UU...D.DUU.', 'ULFRBD'),
('.UUD.D...UU...UU...D.DUU..DUU.DRLLUULLRUURRLD.UUD..DUU.U...DU...UD...U.UUD..DUU.DRLLUULRRUURRLD.UUD..DUU.U...DU...UD...U.UUD..UUD.D...UU...UU...D.DUU.', 'ULFRBD'),
('.UUD.D...UU...UU...D.DUU..DUU.DRLLUULLRUURRLD.UUD..DUU.U...DU...UD...U.UUD..DUU.DRLLUURRLUURRLD.UUD..DUU.U...DU...UD...U.UUD..UUD.D...UU...UU...D.DUU.', 'ULFRBD'),
('.UUD.D...UU...UU...D.DUU..DUU.DRLLUULLRUURRLD.UUD..DUU.U...DU...UD...U.UUD..DUU.DRRLUULRRUURLLD.UUD..DUU.U...DU...UD...U.UUD..UUD.D...UU...UU...D.DUU.', 'ULFRBD'),
('.UUD.D...UU...UU...D.DUU..DUU.DRLLUULLRUURRLD.UUD..DUU.U...DU...UD...U.UUD..DUU.DRRLUURRLUURLLD.UUD..DUU.U...DU...UD...U.UUD..UUD.D...UU...UU...D.DUU.', 'ULFRBD'),
('.UUD.D...UU...UU...D.DUU..DUU.DRLLUURLLUULLRD.UUD..DUU.U...DU...UD...U.UUD..DUU.DLRRUULRRUURRLD.UUD..DUU.U...DU...UD...U.UUD..UUD.D...UU...UU...D.DUU.', 'ULFRBD'),
('.UUD.D...UU...UU...D.DUU..DUU.DRLLUURLLUULLRD.UUD..DUU.U...DU...UD...U.UUD..DUU.DLRRUURRLUURRLD.UUD..DUU.U...DU...UD...U.UUD..UUD.D...UU...UU...D.DUU.', 'ULFRBD'),
('.UUD.D...UU...UU...D.DUU..DUU.DRLLUURLLUULRRD.UUD..DUU.U...DU...UD...U.UUD..DUU.DLLRUULRRUURRLD.UUD..DUU.U...DU...UD...U.UUD..UUD.D...UU...UU...D.DUU.', 'ULFRBD'),
('.UUD.D...UU...UU...D.DUU..DUU.DRLLUURLLUULRRD.UUD..DUU.U...DU...UD...U.UUD..DUU.DLLRUURRLUURRLD.UUD..DUU.U...DU...UD...U.UUD..UUD.D...UU...UU...D.DUU.', 'ULFRBD'),
('.UUD.D...UU...UU...D.DUU..DUU.DRLLUURLLUULRRD.UUD..DUU.U...DU...UD...U.UUD..DUU.DLRRUULRRUURLLD.UUD..DUU.U...DU...UD...U.UUD..UUD.D...UU...UU...D.DUU.', 'ULFRBD'),
('.UUD.D...UU...UU...D.DUU..DUU.DRLLUURLLUULRRD.UUD..DUU.U...DU...UD...U.UUD..DUU.DLRRUURRLUURLLD.UUD..DUU.U...DU...UD...U.UUD..UUD.D...UU...UU...D.DUU.', 'ULFRBD'),
('.UUD.D...UU...UU...D.DUU..DUU.DRLLUURLLUURLLD.UUD..DUU.U...DU...UD...U.UUD..DUU.DLRRUULRRUULRRD.UUD..DUU.U...DU...UD...U.UUD..UUD.D...UU...UU...D.DUU.', 'ULFRBD'),
('.UUD.D...UU...UU...D.DUU..DUU.DRLLUURLLUURLLD.UUD..DUU.U...DU...UD...U.UUD..DUU.DLRRUURRLUULRRD.UUD..DUU.U...DU...UD...U.UUD..UUD.D...UU...UU...D.DUU.', 'ULFRBD'),
('.UUD.D...UU...UU...D.DUU..DUU.DRLLUURLLUURLLD.UUD..DUU.U...DU...UD...U.UUD..DUU.DRRLUULRRUURRLD.UUD..DUU.U...DU...UD...U.UUD..UUD.D...UU...UU...D.DUU.', 'ULFRBD'),
('.UUD.D...UU...UU...D.DUU..DUU.DRLLUURLLUURLLD.UUD..DUU.U...DU...UD...U.UUD..DUU.DRRLUURRLUURRLD.UUD..DUU.U...DU...UD...U.UUD..UUD.D...UU...UU...D.DUU.', 'ULFRBD'),
('.UUD.D...UU...UU...D.DUU..DUU.DRLLUURLLUURRLD.UUD..DUU.U...DU...UD...U.UUD..DUU.DLLRUULRRUULRRD.UUD..DUU.U...DU...UD...U.UUD..UUD.D...UU...UU...D.DUU.', 'ULFRBD'),
('.UUD.D...UU...UU...D.DUU..DUU.DRLLUURLLUURRLD.UUD..DUU.U...DU...UD...U.UUD..DUU.DLLRUURRLUULRRD.UUD..DUU.U...DU...UD...U.UUD..UUD.D...UU...UU...D.DUU.', 'ULFRBD'),
('.UUD.D...UU...UU...D.DUU..DUU.DRLLUURLLUURRLD.UUD..DUU.U...DU...UD...U.UUD..DUU.DLRRUULRRUULLRD.UUD..DUU.U...DU...UD...U.UUD..UUD.D...UU...UU...D.DUU.', 'ULFRBD'),
('.UUD.D...UU...UU...D.DUU..DUU.DRLLUURLLUURRLD.UUD..DUU.U...DU...UD...U.UUD..DUU.DLRRUURRLUULLRD.UUD..DUU.U...DU...UD...U.UUD..UUD.D...UU...UU...D.DUU.', 'ULFRBD'),
('.UUD.D...UU...UU...D.DUU..DUU.DRLLUURLLUURRLD.UUD..DUU.U...DU...UD...U.UUD..DUU.DRLLUULRRUURRLD.UUD..DUU.U...DU...UD...U.UUD..UUD.D...UU...UU...D.DUU.', 'ULFRBD'),
('.UUD.D...UU...UU...D.DUU..DUU.DRLLUURLLUURRLD.UUD..DUU.U...DU...UD...U.UUD..DUU.DRLLUURRLUURRLD.UUD..DUU.U...DU...UD...U.UUD..UUD.D...UU...UU...D.DUU.', 'ULFRBD'),
('.UUD.D...UU...UU...D.DUU..DUU.DRLLUURLLUURRLD.UUD..DUU.U...DU...UD...U.UUD..DUU.DRRLUULRRUURLLD.UUD..DUU.U...DU...UD...U.UUD..UUD.D...UU...UU...D.DUU.', 'ULFRBD'),
('.UUD.D...UU...UU...D.DUU..DUU.DRLLUURLLUURRLD.UUD..DUU.U...DU...UD...U.UUD..DUU.DRRLUURRLUURLLD.UUD..DUU.U...DU...UD...U.UUD..UUD.D...UU...UU...D.DUU.', 'ULFRBD'),
('.UUD.D...UU...UU...D.DUU..DUU.DRLLUURLRUULLRD.UUD..DUU.U...DU...UD...U.UUD..DUU.DLRRUULRLUURRLD.UUD..DUU.U...DU...UD...U.UUD..UUD.D...UU...UU...D.DUU.', 'ULFRBD'),
('.UUD.D...UU...UU...D.DUU..DUU.DRLLUURLRUULRRD.UUD..DUU.U...DU...UD...U.UUD..DUU.DLLRUULRLUURRLD.UUD..DUU.U...DU...UD...U.UUD..UUD.D...UU...UU...D.DUU.', 'ULFRBD'),
('.UUD.D...UU...UU...D.DUU..DUU.DRLLUURLRUULRRD.UUD..DUU.U...DU...UD...U.UUD..DUU.DLRRUULRLUURLLD.UUD..DUU.U...DU...UD...U.UUD..UUD.D...UU...UU...D.DUU.', 'ULFRBD'),
('.UUD.D...UU...UU...D.DUU..DUU.DRLLUURLRUURLLD.UUD..DUU.U...DU...UD...U.UUD..DUU.DLRRUULRLUULRRD.UUD..DUU.U...DU...UD...U.UUD..UUD.D...UU...UU...D.DUU.', 'ULFRBD'),
('.UUD.D...UU...UU...D.DUU..DUU.DRLLUURLRUURLLD.UUD..DUU.U...DU...UD...U.UUD..DUU.DRRLUULRLUURRLD.UUD..DUU.U...DU...UD...U.UUD..UUD.D...UU...UU...D.DUU.', 'ULFRBD'),
('.UUD.D...UU...UU...D.DUU..DUU.DRLLUURLRUURRLD.UUD..DUU.U...DU...UD...U.UUD..DUU.DLLRUULRLUULRRD.UUD..DUU.U...DU...UD...U.UUD..UUD.D...UU...UU...D.DUU.', 'ULFRBD'),
('.UUD.D...UU...UU...D.DUU..DUU.DRLLUURLRUURRLD.UUD..DUU.U...DU...UD...U.UUD..DUU.DLRRUULRLUULLRD.UUD..DUU.U...DU...UD...U.UUD..UUD.D...UU...UU...D.DUU.', 'ULFRBD'),
('.UUD.D...UU...UU...D.DUU..DUU.DRLLUURLRUURRLD.UUD..DUU.U...DU...UD...U.UUD..DUU.DRLLUULRLUURRLD.UUD..DUU.U...DU...UD...U.UUD..UUD.D...UU...UU...D.DUU.', 'ULFRBD'),
('.UUD.D...UU...UU...D.DUU..DUU.DRLLUURLRUURRLD.UUD..DUU.U...DU...UD...U.UUD..DUU.DRRLUULRLUURLLD.UUD..DUU.U...DU...UD...U.UUD..UUD.D...UU...UU...D.DUU.', 'ULFRBD'),
('.UUD.D...UU...UU...D.DUU..DUU.DRLRUULLLUULLLD.UUD..DUU.U...DU...UD...U.UUD..DUU.DLRLUURRRUURRRD.UUD..DUU.U...DU...UD...U.UUD..UUD.D...UU...UU...D.DUU.', 'ULFRBD'),
('.UUD.D...UU...UU...D.DUU..DUU.DRLRUULLLUULLLD.UUD..DUU.U...DU...UD...U.UUD..DUU.DRRRUURRRUULRLD.UUD..DUU.U...DU...UD...U.UUD..UUD.D...UU...UU...D.DUU.', 'ULFRBD'),
('.UUD.D...UU...UU...D.DUU..DUU.DRLRUULLLUULRLD.UUD..DUU.U...DU...UD...U.UUD..DUU.DLLLUURRRUURRRD.UUD..DUU.U...DU...UD...U.UUD..UUD.D...UU...UU...D.DUU.', 'ULFRBD'),
('.UUD.D...UU...UU...D.DUU..DUU.DRLRUULLLUULRLD.UUD..DUU.U...DU...UD...U.UUD..DUU.DLRLUURRRUURLRD.UUD..DUU.U...DU...UD...U.UUD..UUD.D...UU...UU...D.DUU.', 'ULFRBD'),
('.UUD.D...UU...UU...D.DUU..DUU.DRLRUULLLUULRLD.UUD..DUU.U...DU...UD...U.UUD..DUU.DRLRUURRRUULRLD.UUD..DUU.U...DU...UD...U.UUD..UUD.D...UU...UU...D.DUU.', 'ULFRBD'),
('.UUD.D...UU...UU...D.DUU..DUU.DRLRUULLLUULRLD.UUD..DUU.U...DU...UD...U.UUD..DUU.DRRRUURRRUULLLD.UUD..DUU.U...DU...UD...U.UUD..UUD.D...UU...UU...D.DUU.', 'ULFRBD'),
('.UUD.D...UU...UU...D.DUU..DUU.DRLRUULLLUURLRD.UUD..DUU.U...DU...UD...U.UUD..DUU.DLRLUURRRUULRLD.UUD..DUU.U...DU...UD...U.UUD..UUD.D...UU...UU...D.DUU.', 'ULFRBD'),
('.UUD.D...UU...UU...D.DUU..DUU.DRLRUULLLUURRRD.UUD..DUU.U...DU...UD...U.UUD..DUU.DLLLUURRRUULRLD.UUD..DUU.U...DU...UD...U.UUD..UUD.D...UU...UU...D.DUU.', 'ULFRBD'),
('.UUD.D...UU...UU...D.DUU..DUU.DRLRUULLLUURRRD.UUD..DUU.U...DU...UD...U.UUD..DUU.DLRLUURRRUULLLD.UUD..DUU.U...DU...UD...U.UUD..UUD.D...UU...UU...D.DUU.', 'ULFRBD'),
('.UUD.D...UU...UU...D.DUU..DUU.DRLRUULLRUULLLD.UUD..DUU.U...DU...UD...U.UUD..DUU.DLRLUULRRUURRRD.UUD..DUU.U...DU...UD...U.UUD..UUD.D...UU...UU...D.DUU.', 'ULFRBD'),
('.UUD.D...UU...UU...D.DUU..DUU.DRLRUULLRUULLLD.UUD..DUU.U...DU...UD...U.UUD..DUU.DLRLUURRLUURRRD.UUD..DUU.U...DU...UD...U.UUD..UUD.D...UU...UU...D.DUU.', 'ULFRBD'),
('.UUD.D...UU...UU...D.DUU..DUU.DRLRUULLRUULLLD.UUD..DUU.U...DU...UD...U.UUD..DUU.DRRRUULRRUULRLD.UUD..DUU.U...DU...UD...U.UUD..UUD.D...UU...UU...D.DUU.', 'ULFRBD'),
('.UUD.D...UU...UU...D.DUU..DUU.DRLRUULLRUULLLD.UUD..DUU.U...DU...UD...U.UUD..DUU.DRRRUURRLUULRLD.UUD..DUU.U...DU...UD...U.UUD..UUD.D...UU...UU...D.DUU.', 'ULFRBD'),
('.UUD.D...UU...UU...D.DUU..DUU.DRLRUULLRUULRLD.UUD..DUU.U...DU...UD...U.UUD..DUU.DLLLUULRRUURRRD.UUD..DUU.U...DU...UD...U.UUD..UUD.D...UU...UU...D.DUU.', 'ULFRBD'),
('.UUD.D...UU...UU...D.DUU..DUU.DRLRUULLRUULRLD.UUD..DUU.U...DU...UD...U.UUD..DUU.DLLLUURRLUURRRD.UUD..DUU.U...DU...UD...U.UUD..UUD.D...UU...UU...D.DUU.', 'ULFRBD'),
('.UUD.D...UU...UU...D.DUU..DUU.DRLRUULLRUULRLD.UUD..DUU.U...DU...UD...U.UUD..DUU.DLRLUULRRUURLRD.UUD..DUU.U...DU...UD...U.UUD..UUD.D...UU...UU...D.DUU.', 'ULFRBD'),
('.UUD.D...UU...UU...D.DUU..DUU.DRLRUULLRUULRLD.UUD..DUU.U...DU...UD...U.UUD..DUU.DLRLUURRLUURLRD.UUD..DUU.U...DU...UD...U.UUD..UUD.D...UU...UU...D.DUU.', 'ULFRBD'),
('.UUD.D...UU...UU...D.DUU..DUU.DRLRUULLRUULRLD.UUD..DUU.U...DU...UD...U.UUD..DUU.DRLRUULRRUULRLD.UUD..DUU.U...DU...UD...U.UUD..UUD.D...UU...UU...D.DUU.', 'ULFRBD'),
('.UUD.D...UU...UU...D.DUU..DUU.DRLRUULLRUULRLD.UUD..DUU.U...DU...UD...U.UUD..DUU.DRLRUURRLUULRLD.UUD..DUU.U...DU...UD...U.UUD..UUD.D...UU...UU...D.DUU.', 'ULFRBD'),
('.UUD.D...UU...UU...D.DUU..DUU.DRLRUULLRUULRLD.UUD..DUU.U...DU...UD...U.UUD..DUU.DRRRUULRRUULLLD.UUD..DUU.U...DU...UD...U.UUD..UUD.D...UU...UU...D.DUU.', 'ULFRBD'),
('.UUD.D...UU...UU...D.DUU..DUU.DRLRUULLRUULRLD.UUD..DUU.U...DU...UD...U.UUD..DUU.DRRRUURRLUULLLD.UUD..DUU.U...DU...UD...U.UUD..UUD.D...UU...UU...D.DUU.', 'ULFRBD'),
('.UUD.D...UU...UU...D.DUU..DUU.DRLRUULLRUURLRD.UUD..DUU.U...DU...UD...U.UUD..DUU.DLRLUULRRUULRLD.UUD..DUU.U...DU...UD...U.UUD..UUD.D...UU...UU...D.DUU.', 'ULFRBD'),
('.UUD.D...UU...UU...D.DUU..DUU.DRLRUULLRUURLRD.UUD..DUU.U...DU...UD...U.UUD..DUU.DLRLUURRLUULRLD.UUD..DUU.U...DU...UD...U.UUD..UUD.D...UU...UU...D.DUU.', 'ULFRBD'),
('.UUD.D...UU...UU...D.DUU..DUU.DRLRUULLRUURRRD.UUD..DUU.U...DU...UD...U.UUD..DUU.DLLLUULRRUULRLD.UUD..DUU.U...DU...UD...U.UUD..UUD.D...UU...UU...D.DUU.', 'ULFRBD'),
('.UUD.D...UU...UU...D.DUU..DUU.DRLRUULLRUURRRD.UUD..DUU.U...DU...UD...U.UUD..DUU.DLLLUURRLUULRLD.UUD..DUU.U...DU...UD...U.UUD..UUD.D...UU...UU...D.DUU.', 'ULFRBD'),
('.UUD.D...UU...UU...D.DUU..DUU.DRLRUULLRUURRRD.UUD..DUU.U...DU...UD...U.UUD..DUU.DLRLUULRRUULLLD.UUD..DUU.U...DU...UD...U.UUD..UUD.D...UU...UU...D.DUU.', 'ULFRBD'),
('.UUD.D...UU...UU...D.DUU..DUU.DRLRUULLRUURRRD.UUD..DUU.U...DU...UD...U.UUD..DUU.DLRLUURRLUULLLD.UUD..DUU.U...DU...UD...U.UUD..UUD.D...UU...UU...D.DUU.', 'ULFRBD'),
('.UUD.D...UU...UU...D.DUU..DUU.DRLRUURLLUULLLD.UUD..DUU.U...DU...UD...U.UUD..DUU.DLRLUULRRUURRRD.UUD..DUU.U...DU...UD...U.UUD..UUD.D...UU...UU...D.DUU.', 'ULFRBD'),
('.UUD.D...UU...UU...D.DUU..DUU.DRLRUURLLUULLLD.UUD..DUU.U...DU...UD...U.UUD..DUU.DLRLUURRLUURRRD.UUD..DUU.U...DU...UD...U.UUD..UUD.D...UU...UU...D.DUU.', 'ULFRBD'),
('.UUD.D...UU...UU...D.DUU..DUU.DRLRUURLLUULLLD.UUD..DUU.U...DU...UD...U.UUD..DUU.DRRRUULRRUULRLD.UUD..DUU.U...DU...UD...U.UUD..UUD.D...UU...UU...D.DUU.', 'ULFRBD'),
('.UUD.D...UU...UU...D.DUU..DUU.DRLRUURLLUULLLD.UUD..DUU.U...DU...UD...U.UUD..DUU.DRRRUURRLUULRLD.UUD..DUU.U...DU...UD...U.UUD..UUD.D...UU...UU...D.DUU.', 'ULFRBD'),
('.UUD.D...UU...UU...D.DUU..DUU.DRLRUURLLUULRLD.UUD..DUU.U...DU...UD...U.UUD..DUU.DLLLUULRRUURRRD.UUD..DUU.U...DU...UD...U.UUD..UUD.D...UU...UU...D.DUU.', 'ULFRBD'),
('.UUD.D...UU...UU...D.DUU..DUU.DRLRUURLLUULRLD.UUD..DUU.U...DU...UD...U.UUD..DUU.DLLLUURRLUURRRD.UUD..DUU.U...DU...UD...U.UUD..UUD.D...UU...UU...D.DUU.', 'ULFRBD'),
('.UUD.D...UU...UU...D.DUU..DUU.DRLRUURLLUULRLD.UUD..DUU.U...DU...UD...U.UUD..DUU.DLRLUULRRUURLRD.UUD..DUU.U...DU...UD...U.UUD..UUD.D...UU...UU...D.DUU.', 'ULFRBD'),
('.UUD.D...UU...UU...D.DUU..DUU.DRLRUURLLUULRLD.UUD..DUU.U...DU...UD...U.UUD..DUU.DLRLUURRLUURLRD.UUD..DUU.U...DU...UD...U.UUD..UUD.D...UU...UU...D.DUU.', 'ULFRBD'),
('.UUD.D...UU...UU...D.DUU..DUU.DRLRUURLLUULRLD.UUD..DUU.U...DU...UD...U.UUD..DUU.DRLRUULRRUULRLD.UUD..DUU.U...DU...UD...U.UUD..UUD.D...UU...UU...D.DUU.', 'ULFRBD'),
('.UUD.D...UU...UU...D.DUU..DUU.DRLRUURLLUULRLD.UUD..DUU.U...DU...UD...U.UUD..DUU.DRLRUURRLUULRLD.UUD..DUU.U...DU...UD...U.UUD..UUD.D...UU...UU...D.DUU.', 'ULFRBD'),
('.UUD.D...UU...UU...D.DUU..DUU.DRLRUURLLUULRLD.UUD..DUU.U...DU...UD...U.UUD..DUU.DRRRUULRRUULLLD.UUD..DUU.U...DU...UD...U.UUD..UUD.D...UU...UU...D.DUU.', 'ULFRBD'),
('.UUD.D...UU...UU...D.DUU..DUU.DRLRUURLLUULRLD.UUD..DUU.U...DU...UD...U.UUD..DUU.DRRRUURRLUULLLD.UUD..DUU.U...DU...UD...U.UUD..UUD.D...UU...UU...D.DUU.', 'ULFRBD'),
('.UUD.D...UU...UU...D.DUU..DUU.DRLRUURLLUURLRD.UUD..DUU.U...DU...UD...U.UUD..DUU.DLRLUULRRUULRLD.UUD..DUU.U...DU...UD...U.UUD..UUD.D...UU...UU...D.DUU.', 'ULFRBD'),
('.UUD.D...UU...UU...D.DUU..DUU.DRLRUURLLUURLRD.UUD..DUU.U...DU...UD...U.UUD..DUU.DLRLUURRLUULRLD.UUD..DUU.U...DU...UD...U.UUD..UUD.D...UU...UU...D.DUU.', 'ULFRBD'),
('.UUD.D...UU...UU...D.DUU..DUU.DRLRUURLLUURRRD.UUD..DUU.U...DU...UD...U.UUD..DUU.DLLLUULRRUULRLD.UUD..DUU.U...DU...UD...U.UUD..UUD.D...UU...UU...D.DUU.', 'ULFRBD'),
('.UUD.D...UU...UU...D.DUU..DUU.DRLRUURLLUURRRD.UUD..DUU.U...DU...UD...U.UUD..DUU.DLLLUURRLUULRLD.UUD..DUU.U...DU...UD...U.UUD..UUD.D...UU...UU...D.DUU.', 'ULFRBD'),
('.UUD.D...UU...UU...D.DUU..DUU.DRLRUURLLUURRRD.UUD..DUU.U...DU...UD...U.UUD..DUU.DLRLUULRRUULLLD.UUD..DUU.U...DU...UD...U.UUD..UUD.D...UU...UU...D.DUU.', 'ULFRBD'),
('.UUD.D...UU...UU...D.DUU..DUU.DRLRUURLLUURRRD.UUD..DUU.U...DU...UD...U.UUD..DUU.DLRLUURRLUULLLD.UUD..DUU.U...DU...UD...U.UUD..UUD.D...UU...UU...D.DUU.', 'ULFRBD'),
('.UUD.D...UU...UU...D.DUU..DUU.DRLRUURLRUULLLD.UUD..DUU.U...DU...UD...U.UUD..DUU.DLRLUULRLUURRRD.UUD..DUU.U...DU...UD...U.UUD..UUD.D...UU...UU...D.DUU.', 'ULFRBD'),
('.UUD.D...UU...UU...D.DUU..DUU.DRLRUURLRUULLLD.UUD..DUU.U...DU...UD...U.UUD..DUU.DRRRUULRLUULRLD.UUD..DUU.U...DU...UD...U.UUD..UUD.D...UU...UU...D.DUU.', 'ULFRBD'),
('.UUD.D...UU...UU...D.DUU..DUU.DRLRUURLRUULRLD.UUD..DUU.U...DU...UD...U.UUD..DUU.DLLLUULRLUURRRD.UUD..DUU.U...DU...UD...U.UUD..UUD.D...UU...UU...D.DUU.', 'ULFRBD'),
('.UUD.D...UU...UU...D.DUU..DUU.DRLRUURLRUULRLD.UUD..DUU.U...DU...UD...U.UUD..DUU.DLRLUULRLUURLRD.UUD..DUU.U...DU...UD...U.UUD..UUD.D...UU...UU...D.DUU.', 'ULFRBD'),
('.UUD.D...UU...UU...D.DUU..DUU.DRLRUURLRUULRLD.UUD..DUU.U...DU...UD...U.UUD..DUU.DRLRUULRLUULRLD.UUD..DUU.U...DU...UD...U.UUD..UUD.D...UU...UU...D.DUU.', 'ULFRBD'),
('.UUD.D...UU...UU...D.DUU..DUU.DRLRUURLRUULRLD.UUD..DUU.U...DU...UD...U.UUD..DUU.DRRRUULRLUULLLD.UUD..DUU.U...DU...UD...U.UUD..UUD.D...UU...UU...D.DUU.', 'ULFRBD'),
('.UUD.D...UU...UU...D.DUU..DUU.DRLRUURLRUURLRD.UUD..DUU.U...DU...UD...U.UUD..DUU.DLRLUULRLUULRLD.UUD..DUU.U...DU...UD...U.UUD..UUD.D...UU...UU...D.DUU.', 'ULFRBD'),
('.UUD.D...UU...UU...D.DUU..DUU.DRLRUURLRUURRRD.UUD..DUU.U...DU...UD...U.UUD..DUU.DLLLUULRLUULRLD.UUD..DUU.U...DU...UD...U.UUD..UUD.D...UU...UU...D.DUU.', 'ULFRBD'),
('.UUD.D...UU...UU...D.DUU..DUU.DRLRUURLRUURRRD.UUD..DUU.U...DU...UD...U.UUD..DUU.DLRLUULRLUULLLD.UUD..DUU.U...DU...UD...U.UUD..UUD.D...UU...UU...D.DUU.', 'ULFRBD'),
('.UUD.D...UU...UU...D.DUU..DUU.DRRLUULLLUULLRD.UUD..DUU.U...DU...UD...U.UUD..DUU.DLLRUURRRUURRLD.UUD..DUU.U...DU...UD...U.UUD..UUD.D...UU...UU...D.DUU.', 'ULFRBD'),
('.UUD.D...UU...UU...D.DUU..DUU.DRRLUULLLUULLRD.UUD..DUU.U...DU...UD...U.UUD..DUU.DLRRUURRRUURLLD.UUD..DUU.U...DU...UD...U.UUD..UUD.D...UU...UU...D.DUU.', 'ULFRBD'),
('.UUD.D...UU...UU...D.DUU..DUU.DRRLUULLLUULRRD.UUD..DUU.U...DU...UD...U.UUD..DUU.DLLRUURRRUURLLD.UUD..DUU.U...DU...UD...U.UUD..UUD.D...UU...UU...D.DUU.', 'ULFRBD'),
('.UUD.D...UU...UU...D.DUU..DUU.DRRLUULLLUURLLD.UUD..DUU.U...DU...UD...U.UUD..DUU.DLLRUURRRUULRRD.UUD..DUU.U...DU...UD...U.UUD..UUD.D...UU...UU...D.DUU.', 'ULFRBD'),
('.UUD.D...UU...UU...D.DUU..DUU.DRRLUULLLUURLLD.UUD..DUU.U...DU...UD...U.UUD..DUU.DLRRUURRRUULLRD.UUD..DUU.U...DU...UD...U.UUD..UUD.D...UU...UU...D.DUU.', 'ULFRBD'),
('.UUD.D...UU...UU...D.DUU..DUU.DRRLUULLLUURLLD.UUD..DUU.U...DU...UD...U.UUD..DUU.DRLLUURRRUURRLD.UUD..DUU.U...DU...UD...U.UUD..UUD.D...UU...UU...D.DUU.', 'ULFRBD'),
('.UUD.D...UU...UU...D.DUU..DUU.DRRLUULLLUURLLD.UUD..DUU.U...DU...UD...U.UUD..DUU.DRRLUURRRUURLLD.UUD..DUU.U...DU...UD...U.UUD..UUD.D...UU...UU...D.DUU.', 'ULFRBD'),
('.UUD.D...UU...UU...D.DUU..DUU.DRRLUULLLUURRLD.UUD..DUU.U...DU...UD...U.UUD..DUU.DLLRUURRRUULLRD.UUD..DUU.U...DU...UD...U.UUD..UUD.D...UU...UU...D.DUU.', 'ULFRBD'),
('.UUD.D...UU...UU...D.DUU..DUU.DRRLUULLLUURRLD.UUD..DUU.U...DU...UD...U.UUD..DUU.DRLLUURRRUURLLD.UUD..DUU.U...DU...UD...U.UUD..UUD.D...UU...UU...D.DUU.', 'ULFRBD'),
('.UUD.D...UU...UU...D.DUU..DUU.DRRLUULLRUULLRD.UUD..DUU.U...DU...UD...U.UUD..DUU.DLLRUULRRUURRLD.UUD..DUU.U...DU...UD...U.UUD..UUD.D...UU...UU...D.DUU.', 'ULFRBD'),
('.UUD.D...UU...UU...D.DUU..DUU.DRRLUULLRUULLRD.UUD..DUU.U...DU...UD...U.UUD..DUU.DLLRUURRLUURRLD.UUD..DUU.U...DU...UD...U.UUD..UUD.D...UU...UU...D.DUU.', 'ULFRBD'),
('.UUD.D...UU...UU...D.DUU..DUU.DRRLUULLRUULLRD.UUD..DUU.U...DU...UD...U.UUD..DUU.DLRRUULRRUURLLD.UUD..DUU.U...DU...UD...U.UUD..UUD.D...UU...UU...D.DUU.', 'ULFRBD'),
('.UUD.D...UU...UU...D.DUU..DUU.DRRLUULLRUULLRD.UUD..DUU.U...DU...UD...U.UUD..DUU.DLRRUURRLUURLLD.UUD..DUU.U...DU...UD...U.UUD..UUD.D...UU...UU...D.DUU.', 'ULFRBD'),
('.UUD.D...UU...UU...D.DUU..DUU.DRRLUULLRUULRRD.UUD..DUU.U...DU...UD...U.UUD..DUU.DLLRUULRRUURLLD.UUD..DUU.U...DU...UD...U.UUD..UUD.D...UU...UU...D.DUU.', 'ULFRBD'),
('.UUD.D...UU...UU...D.DUU..DUU.DRRLUULLRUULRRD.UUD..DUU.U...DU...UD...U.UUD..DUU.DLLRUURRLUURLLD.UUD..DUU.U...DU...UD...U.UUD..UUD.D...UU...UU...D.DUU.', 'ULFRBD'),
('.UUD.D...UU...UU...D.DUU..DUU.DRRLUULLRUURLLD.UUD..DUU.U...DU...UD...U.UUD..DUU.DLLRUULRRUULRRD.UUD..DUU.U...DU...UD...U.UUD..UUD.D...UU...UU...D.DUU.', 'ULFRBD'),
('.UUD.D...UU...UU...D.DUU..DUU.DRRLUULLRUURLLD.UUD..DUU.U...DU...UD...U.UUD..DUU.DLLRUURRLUULRRD.UUD..DUU.U...DU...UD...U.UUD..UUD.D...UU...UU...D.DUU.', 'ULFRBD'),
('.UUD.D...UU...UU...D.DUU..DUU.DRRLUULLRUURLLD.UUD..DUU.U...DU...UD...U.UUD..DUU.DLRRUULRRUULLRD.UUD..DUU.U...DU...UD...U.UUD..UUD.D...UU...UU...D.DUU.', 'ULFRBD'),
('.UUD.D...UU...UU...D.DUU..DUU.DRRLUULLRUURLLD.UUD..DUU.U...DU...UD...U.UUD..DUU.DLRRUURRLUULLRD.UUD..DUU.U...DU...UD...U.UUD..UUD.D...UU...UU...D.DUU.', 'ULFRBD'),
('.UUD.D...UU...UU...D.DUU..DUU.DRRLUULLRUURLLD.UUD..DUU.U...DU...UD...U.UUD..DUU.DRLLUULRRUURRLD.UUD..DUU.U...DU...UD...U.UUD..UUD.D...UU...UU...D.DUU.', 'ULFRBD'),
('.UUD.D...UU...UU...D.DUU..DUU.DRRLUULLRUURLLD.UUD..DUU.U...DU...UD...U.UUD..DUU.DRLLUURRLUURRLD.UUD..DUU.U...DU...UD...U.UUD..UUD.D...UU...UU...D.DUU.', 'ULFRBD'),
('.UUD.D...UU...UU...D.DUU..DUU.DRRLUULLRUURLLD.UUD..DUU.U...DU...UD...U.UUD..DUU.DRRLUULRRUURLLD.UUD..DUU.U...DU...UD...U.UUD..UUD.D...UU...UU...D.DUU.', 'ULFRBD'),
('.UUD.D...UU...UU...D.DUU..DUU.DRRLUULLRUURLLD.UUD..DUU.U...DU...UD...U.UUD..DUU.DRRLUURRLUURLLD.UUD..DUU.U...DU...UD...U.UUD..UUD.D...UU...UU...D.DUU.', 'ULFRBD'),
('.UUD.D...UU...UU...D.DUU..DUU.DRRLUULLRUURRLD.UUD..DUU.U...DU...UD...U.UUD..DUU.DLLRUULRRUULLRD.UUD..DUU.U...DU...UD...U.UUD..UUD.D...UU...UU...D.DUU.', 'ULFRBD'),
('.UUD.D...UU...UU...D.DUU..DUU.DRRLUULLRUURRLD.UUD..DUU.U...DU...UD...U.UUD..DUU.DLLRUURRLUULLRD.UUD..DUU.U...DU...UD...U.UUD..UUD.D...UU...UU...D.DUU.', 'ULFRBD'),
('.UUD.D...UU...UU...D.DUU..DUU.DRRLUULLRUURRLD.UUD..DUU.U...DU...UD...U.UUD..DUU.DRLLUULRRUURLLD.UUD..DUU.U...DU...UD...U.UUD..UUD.D...UU...UU...D.DUU.', 'ULFRBD'),
('.UUD.D...UU...UU...D.DUU..DUU.DRRLUULLRUURRLD.UUD..DUU.U...DU...UD...U.UUD..DUU.DRLLUURRLUURLLD.UUD..DUU.U...DU...UD...U.UUD..UUD.D...UU...UU...D.DUU.', 'ULFRBD'),
('.UUD.D...UU...UU...D.DUU..DUU.DRRLUURLLUULLRD.UUD..DUU.U...DU...UD...U.UUD..DUU.DLLRUULRRUURRLD.UUD..DUU.U...DU...UD...U.UUD..UUD.D...UU...UU...D.DUU.', 'ULFRBD'),
('.UUD.D...UU...UU...D.DUU..DUU.DRRLUURLLUULLRD.UUD..DUU.U...DU...UD...U.UUD..DUU.DLLRUURRLUURRLD.UUD..DUU.U...DU...UD...U.UUD..UUD.D...UU...UU...D.DUU.', 'ULFRBD'),
('.UUD.D...UU...UU...D.DUU..DUU.DRRLUURLLUULLRD.UUD..DUU.U...DU...UD...U.UUD..DUU.DLRRUULRRUURLLD.UUD..DUU.U...DU...UD...U.UUD..UUD.D...UU...UU...D.DUU.', 'ULFRBD'),
('.UUD.D...UU...UU...D.DUU..DUU.DRRLUURLLUULLRD.UUD..DUU.U...DU...UD...U.UUD..DUU.DLRRUURRLUURLLD.UUD..DUU.U...DU...UD...U.UUD..UUD.D...UU...UU...D.DUU.', 'ULFRBD'),
('.UUD.D...UU...UU...D.DUU..DUU.DRRLUURLLUULRRD.UUD..DUU.U...DU...UD...U.UUD..DUU.DLLRUULRRUURLLD.UUD..DUU.U...DU...UD...U.UUD..UUD.D...UU...UU...D.DUU.', 'ULFRBD'),
('.UUD.D...UU...UU...D.DUU..DUU.DRRLUURLLUULRRD.UUD..DUU.U...DU...UD...U.UUD..DUU.DLLRUURRLUURLLD.UUD..DUU.U...DU...UD...U.UUD..UUD.D...UU...UU...D.DUU.', 'ULFRBD'),
('.UUD.D...UU...UU...D.DUU..DUU.DRRLUURLLUURLLD.UUD..DUU.U...DU...UD...U.UUD..DUU.DLLRUULRRUULRRD.UUD..DUU.U...DU...UD...U.UUD..UUD.D...UU...UU...D.DUU.', 'ULFRBD'),
('.UUD.D...UU...UU...D.DUU..DUU.DRRLUURLLUURLLD.UUD..DUU.U...DU...UD...U.UUD..DUU.DLLRUURRLUULRRD.UUD..DUU.U...DU...UD...U.UUD..UUD.D...UU...UU...D.DUU.', 'ULFRBD'),
('.UUD.D...UU...UU...D.DUU..DUU.DRRLUURLLUURLLD.UUD..DUU.U...DU...UD...U.UUD..DUU.DLRRUULRRUULLRD.UUD..DUU.U...DU...UD...U.UUD..UUD.D...UU...UU...D.DUU.', 'ULFRBD'),
('.UUD.D...UU...UU...D.DUU..DUU.DRRLUURLLUURLLD.UUD..DUU.U...DU...UD...U.UUD..DUU.DLRRUURRLUULLRD.UUD..DUU.U...DU...UD...U.UUD..UUD.D...UU...UU...D.DUU.', 'ULFRBD'),
('.UUD.D...UU...UU...D.DUU..DUU.DRRLUURLLUURLLD.UUD..DUU.U...DU...UD...U.UUD..DUU.DRLLUULRRUURRLD.UUD..DUU.U...DU...UD...U.UUD..UUD.D...UU...UU...D.DUU.', 'ULFRBD'),
('.UUD.D...UU...UU...D.DUU..DUU.DRRLUURLLUURLLD.UUD..DUU.U...DU...UD...U.UUD..DUU.DRLLUURRLUURRLD.UUD..DUU.U...DU...UD...U.UUD..UUD.D...UU...UU...D.DUU.', 'ULFRBD'),
('.UUD.D...UU...UU...D.DUU..DUU.DRRLUURLLUURLLD.UUD..DUU.U...DU...UD...U.UUD..DUU.DRRLUULRRUURLLD.UUD..DUU.U...DU...UD...U.UUD..UUD.D...UU...UU...D.DUU.', 'ULFRBD'),
('.UUD.D...UU...UU...D.DUU..DUU.DRRLUURLLUURLLD.UUD..DUU.U...DU...UD...U.UUD..DUU.DRRLUURRLUURLLD.UUD..DUU.U...DU...UD...U.UUD..UUD.D...UU...UU...D.DUU.', 'ULFRBD'),
('.UUD.D...UU...UU...D.DUU..DUU.DRRLUURLLUURRLD.UUD..DUU.U...DU...UD...U.UUD..DUU.DLLRUULRRUULLRD.UUD..DUU.U...DU...UD...U.UUD..UUD.D...UU...UU...D.DUU.', 'ULFRBD'),
('.UUD.D...UU...UU...D.DUU..DUU.DRRLUURLLUURRLD.UUD..DUU.U...DU...UD...U.UUD..DUU.DLLRUURRLUULLRD.UUD..DUU.U...DU...UD...U.UUD..UUD.D...UU...UU...D.DUU.', 'ULFRBD'),
('.UUD.D...UU...UU...D.DUU..DUU.DRRLUURLLUURRLD.UUD..DUU.U...DU...UD...U.UUD..DUU.DRLLUULRRUURLLD.UUD..DUU.U...DU...UD...U.UUD..UUD.D...UU...UU...D.DUU.', 'ULFRBD'),
('.UUD.D...UU...UU...D.DUU..DUU.DRRLUURLLUURRLD.UUD..DUU.U...DU...UD...U.UUD..DUU.DRLLUURRLUURLLD.UUD..DUU.U...DU...UD...U.UUD..UUD.D...UU...UU...D.DUU.', 'ULFRBD'),
('.UUD.D...UU...UU...D.DUU..DUU.DRRLUURLRUULLRD.UUD..DUU.U...DU...UD...U.UUD..DUU.DLLRUULRLUURRLD.UUD..DUU.U...DU...UD...U.UUD..UUD.D...UU...UU...D.DUU.', 'ULFRBD'),
('.UUD.D...UU...UU...D.DUU..DUU.DRRLUURLRUULLRD.UUD..DUU.U...DU...UD...U.UUD..DUU.DLRRUULRLUURLLD.UUD..DUU.U...DU...UD...U.UUD..UUD.D...UU...UU...D.DUU.', 'ULFRBD'),
('.UUD.D...UU...UU...D.DUU..DUU.DRRLUURLRUULRRD.UUD..DUU.U...DU...UD...U.UUD..DUU.DLLRUULRLUURLLD.UUD..DUU.U...DU...UD...U.UUD..UUD.D...UU...UU...D.DUU.', 'ULFRBD'),
('.UUD.D...UU...UU...D.DUU..DUU.DRRLUURLRUURLLD.UUD..DUU.U...DU...UD...U.UUD..DUU.DLLRUULRLUULRRD.UUD..DUU.U...DU...UD...U.UUD..UUD.D...UU...UU...D.DUU.', 'ULFRBD'),
('.UUD.D...UU...UU...D.DUU..DUU.DRRLUURLRUURLLD.UUD..DUU.U...DU...UD...U.UUD..DUU.DLRRUULRLUULLRD.UUD..DUU.U...DU...UD...U.UUD..UUD.D...UU...UU...D.DUU.', 'ULFRBD'),
('.UUD.D...UU...UU...D.DUU..DUU.DRRLUURLRUURLLD.UUD..DUU.U...DU...UD...U.UUD..DUU.DRLLUULRLUURRLD.UUD..DUU.U...DU...UD...U.UUD..UUD.D...UU...UU...D.DUU.', 'ULFRBD'),
('.UUD.D...UU...UU...D.DUU..DUU.DRRLUURLRUURLLD.UUD..DUU.U...DU...UD...U.UUD..DUU.DRRLUULRLUURLLD.UUD..DUU.U...DU...UD...U.UUD..UUD.D...UU...UU...D.DUU.', 'ULFRBD'),
('.UUD.D...UU...UU...D.DUU..DUU.DRRLUURLRUURRLD.UUD..DUU.U...DU...UD...U.UUD..DUU.DLLRUULRLUULLRD.UUD..DUU.U...DU...UD...U.UUD..UUD.D...UU...UU...D.DUU.', 'ULFRBD'),
('.UUD.D...UU...UU...D.DUU..DUU.DRRLUURLRUURRLD.UUD..DUU.U...DU...UD...U.UUD..DUU.DRLLUULRLUURLLD.UUD..DUU.U...DU...UD...U.UUD..UUD.D...UU...UU...D.DUU.', 'ULFRBD'),
('.UUD.D...UU...UU...D.DUU..DUU.DRRRUULLLUULLLD.UUD..DUU.U...DU...UD...U.UUD..DUU.DLLLUURRRUURRRD.UUD..DUU.U...DU...UD...U.UUD..UUD.D...UU...UU...D.DUU.', 'ULFRBD'),
('.UUD.D...UU...UU...D.DUU..DUU.DRRRUULLLUULLLD.UUD..DUU.U...DU...UD...U.UUD..DUU.DLRLUURRRUURLRD.UUD..DUU.U...DU...UD...U.UUD..UUD.D...UU...UU...D.DUU.', 'ULFRBD'),
('.UUD.D...UU...UU...D.DUU..DUU.DRRRUULLLUULLLD.UUD..DUU.U...DU...UD...U.UUD..DUU.DRLRUURRRUULRLD.UUD..DUU.U...DU...UD...U.UUD..UUD.D...UU...UU...D.DUU.', 'ULFRBD'),
('.UUD.D...UU...UU...D.DUU..DUU.DRRRUULLLUULLLD.UUD..DUU.U...DU...UD...U.UUD..DUU.DRRRUURRRUULLLD.UUD..DUU.U...DU...UD...U.UUD..UUD.D...UU...UU...D.DUU.', 'ULFRBD'),
('.UUD.D...UU...UU...D.DUU..DUU.DRRRUULLLUULRLD.UUD..DUU.U...DU...UD...U.UUD..DUU.DLLLUURRRUURLRD.UUD..DUU.U...DU...UD...U.UUD..UUD.D...UU...UU...D.DUU.', 'ULFRBD'),
('.UUD.D...UU...UU...D.DUU..DUU.DRRRUULLLUULRLD.UUD..DUU.U...DU...UD...U.UUD..DUU.DRLRUURRRUULLLD.UUD..DUU.U...DU...UD...U.UUD..UUD.D...UU...UU...D.DUU.', 'ULFRBD'),
('.UUD.D...UU...UU...D.DUU..DUU.DRRRUULLLUURLRD.UUD..DUU.U...DU...UD...U.UUD..DUU.DLLLUURRRUULRLD.UUD..DUU.U...DU...UD...U.UUD..UUD.D...UU...UU...D.DUU.', 'ULFRBD'),
('.UUD.D...UU...UU...D.DUU..DUU.DRRRUULLLUURLRD.UUD..DUU.U...DU...UD...U.UUD..DUU.DLRLUURRRUULLLD.UUD..DUU.U...DU...UD...U.UUD..UUD.D...UU...UU...D.DUU.', 'ULFRBD'),
('.UUD.D...UU...UU...D.DUU..DUU.DRRRUULLLUURRRD.UUD..DUU.U...DU...UD...U.UUD..DUU.DLLLUURRRUULLLD.UUD..DUU.U...DU...UD...U.UUD..UUD.D...UU...UU...D.DUU.', 'ULFRBD'),
('.UUD.D...UU...UU...D.DUU..DUU.DRRRUULLRUULLLD.UUD..DUU.U...DU...UD...U.UUD..DUU.DLLLUULRRUURRRD.UUD..DUU.U...DU...UD...U.UUD..UUD.D...UU...UU...D.DUU.', 'ULFRBD'),
('.UUD.D...UU...UU...D.DUU..DUU.DRRRUULLRUULLLD.UUD..DUU.U...DU...UD...U.UUD..DUU.DLLLUURRLUURRRD.UUD..DUU.U...DU...UD...U.UUD..UUD.D...UU...UU...D.DUU.', 'ULFRBD'),
('.UUD.D...UU...UU...D.DUU..DUU.DRRRUULLRUULLLD.UUD..DUU.U...DU...UD...U.UUD..DUU.DLRLUULRRUURLRD.UUD..DUU.U...DU...UD...U.UUD..UUD.D...UU...UU...D.DUU.', 'ULFRBD'),
('.UUD.D...UU...UU...D.DUU..DUU.DRRRUULLRUULLLD.UUD..DUU.U...DU...UD...U.UUD..DUU.DLRLUURRLUURLRD.UUD..DUU.U...DU...UD...U.UUD..UUD.D...UU...UU...D.DUU.', 'ULFRBD'),
('.UUD.D...UU...UU...D.DUU..DUU.DRRRUULLRUULLLD.UUD..DUU.U...DU...UD...U.UUD..DUU.DRLRUULRRUULRLD.UUD..DUU.U...DU...UD...U.UUD..UUD.D...UU...UU...D.DUU.', 'ULFRBD'),
('.UUD.D...UU...UU...D.DUU..DUU.DRRRUULLRUULLLD.UUD..DUU.U...DU...UD...U.UUD..DUU.DRLRUURRLUULRLD.UUD..DUU.U...DU...UD...U.UUD..UUD.D...UU...UU...D.DUU.', 'ULFRBD'),
('.UUD.D...UU...UU...D.DUU..DUU.DRRRUULLRUULLLD.UUD..DUU.U...DU...UD...U.UUD..DUU.DRRRUULRRUULLLD.UUD..DUU.U...DU...UD...U.UUD..UUD.D...UU...UU...D.DUU.', 'ULFRBD'),
('.UUD.D...UU...UU...D.DUU..DUU.DRRRUULLRUULLLD.UUD..DUU.U...DU...UD...U.UUD..DUU.DRRRUURRLUULLLD.UUD..DUU.U...DU...UD...U.UUD..UUD.D...UU...UU...D.DUU.', 'ULFRBD'),
('.UUD.D...UU...UU...D.DUU..DUU.DRRRUULLRUULRLD.UUD..DUU.U...DU...UD...U.UUD..DUU.DLLLUULRRUURLRD.UUD..DUU.U...DU...UD...U.UUD..UUD.D...UU...UU...D.DUU.', 'ULFRBD'),
('.UUD.D...UU...UU...D.DUU..DUU.DRRRUULLRUULRLD.UUD..DUU.U...DU...UD...U.UUD..DUU.DLLLUURRLUURLRD.UUD..DUU.U...DU...UD...U.UUD..UUD.D...UU...UU...D.DUU.', 'ULFRBD'),
('.UUD.D...UU...UU...D.DUU..DUU.DRRRUULLRUULRLD.UUD..DUU.U...DU...UD...U.UUD..DUU.DRLRUULRRUULLLD.UUD..DUU.U...DU...UD...U.UUD..UUD.D...UU...UU...D.DUU.', 'ULFRBD'),
('.UUD.D...UU...UU...D.DUU..DUU.DRRRUULLRUULRLD.UUD..DUU.U...DU...UD...U.UUD..DUU.DRLRUURRLUULLLD.UUD..DUU.U...DU...UD...U.UUD..UUD.D...UU...UU...D.DUU.', 'ULFRBD'),
('.UUD.D...UU...UU...D.DUU..DUU.DRRRUULLRUURLRD.UUD..DUU.U...DU...UD...U.UUD..DUU.DLLLUULRRUULRLD.UUD..DUU.U...DU...UD...U.UUD..UUD.D...UU...UU...D.DUU.', 'ULFRBD'),
('.UUD.D...UU...UU...D.DUU..DUU.DRRRUULLRUURLRD.UUD..DUU.U...DU...UD...U.UUD..DUU.DLLLUURRLUULRLD.UUD..DUU.U...DU...UD...U.UUD..UUD.D...UU...UU...D.DUU.', 'ULFRBD'),
('.UUD.D...UU...UU...D.DUU..DUU.DRRRUULLRUURLRD.UUD..DUU.U...DU...UD...U.UUD..DUU.DLRLUULRRUULLLD.UUD..DUU.U...DU...UD...U.UUD..UUD.D...UU...UU...D.DUU.', 'ULFRBD'),
('.UUD.D...UU...UU...D.DUU..DUU.DRRRUULLRUURLRD.UUD..DUU.U...DU...UD...U.UUD..DUU.DLRLUURRLUULLLD.UUD..DUU.U...DU...UD...U.UUD..UUD.D...UU...UU...D.DUU.', 'ULFRBD'),
('.UUD.D...UU...UU...D.DUU..DUU.DRRRUULLRUURRRD.UUD..DUU.U...DU...UD...U.UUD..DUU.DLLLUULRRUULLLD.UUD..DUU.U...DU...UD...U.UUD..UUD.D...UU...UU...D.DUU.', 'ULFRBD'),
('.UUD.D...UU...UU...D.DUU..DUU.DRRRUULLRUURRRD.UUD..DUU.U...DU...UD...U.UUD..DUU.DLLLUURRLUULLLD.UUD..DUU.U...DU...UD...U.UUD..UUD.D...UU...UU...D.DUU.', 'ULFRBD'),
('.UUD.D...UU...UU...D.DUU..DUU.DRRRUURLLUULLLD.UUD..DUU.U...DU...UD...U.UUD..DUU.DLLLUULRRUURRRD.UUD..DUU.U...DU...UD...U.UUD..UUD.D...UU...UU...D.DUU.', 'ULFRBD'),
('.UUD.D...UU...UU...D.DUU..DUU.DRRRUURLLUULLLD.UUD..DUU.U...DU...UD...U.UUD..DUU.DLLLUURRLUURRRD.UUD..DUU.U...DU...UD...U.UUD..UUD.D...UU...UU...D.DUU.', 'ULFRBD'),
('.UUD.D...UU...UU...D.DUU..DUU.DRRRUURLLUULLLD.UUD..DUU.U...DU...UD...U.UUD..DUU.DLRLUULRRUURLRD.UUD..DUU.U...DU...UD...U.UUD..UUD.D...UU...UU...D.DUU.', 'ULFRBD'),
('.UUD.D...UU...UU...D.DUU..DUU.DRRRUURLLUULLLD.UUD..DUU.U...DU...UD...U.UUD..DUU.DLRLUURRLUURLRD.UUD..DUU.U...DU...UD...U.UUD..UUD.D...UU...UU...D.DUU.', 'ULFRBD'),
('.UUD.D...UU...UU...D.DUU..DUU.DRRRUURLLUULLLD.UUD..DUU.U...DU...UD...U.UUD..DUU.DRLRUULRRUULRLD.UUD..DUU.U...DU...UD...U.UUD..UUD.D...UU...UU...D.DUU.', 'ULFRBD'),
('.UUD.D...UU...UU...D.DUU..DUU.DRRRUURLLUULLLD.UUD..DUU.U...DU...UD...U.UUD..DUU.DRLRUURRLUULRLD.UUD..DUU.U...DU...UD...U.UUD..UUD.D...UU...UU...D.DUU.', 'ULFRBD'),
('.UUD.D...UU...UU...D.DUU..DUU.DRRRUURLLUULLLD.UUD..DUU.U...DU...UD...U.UUD..DUU.DRRRUULRRUULLLD.UUD..DUU.U...DU...UD...U.UUD..UUD.D...UU...UU...D.DUU.', 'ULFRBD'),
('.UUD.D...UU...UU...D.DUU..DUU.DRRRUURLLUULLLD.UUD..DUU.U...DU...UD...U.UUD..DUU.DRRRUURRLUULLLD.UUD..DUU.U...DU...UD...U.UUD..UUD.D...UU...UU...D.DUU.', 'ULFRBD'),
('.UUD.D...UU...UU...D.DUU..DUU.DRRRUURLLUULRLD.UUD..DUU.U...DU...UD...U.UUD..DUU.DLLLUULRRUURLRD.UUD..DUU.U...DU...UD...U.UUD..UUD.D...UU...UU...D.DUU.', 'ULFRBD'),
('.UUD.D...UU...UU...D.DUU..DUU.DRRRUURLLUULRLD.UUD..DUU.U...DU...UD...U.UUD..DUU.DLLLUURRLUURLRD.UUD..DUU.U...DU...UD...U.UUD..UUD.D...UU...UU...D.DUU.', 'ULFRBD'),
('.UUD.D...UU...UU...D.DUU..DUU.DRRRUURLLUULRLD.UUD..DUU.U...DU...UD...U.UUD..DUU.DRLRUULRRUULLLD.UUD..DUU.U...DU...UD...U.UUD..UUD.D...UU...UU...D.DUU.', 'ULFRBD'),
('.UUD.D...UU...UU...D.DUU..DUU.DRRRUURLLUULRLD.UUD..DUU.U...DU...UD...U.UUD..DUU.DRLRUURRLUULLLD.UUD..DUU.U...DU...UD...U.UUD..UUD.D...UU...UU...D.DUU.', 'ULFRBD'),
('.UUD.D...UU...UU...D.DUU..DUU.DRRRUURLLUURLRD.UUD..DUU.U...DU...UD...U.UUD..DUU.DLLLUULRRUULRLD.UUD..DUU.U...DU...UD...U.UUD..UUD.D...UU...UU...D.DUU.', 'ULFRBD'),
('.UUD.D...UU...UU...D.DUU..DUU.DRRRUURLLUURLRD.UUD..DUU.U...DU...UD...U.UUD..DUU.DLLLUURRLUULRLD.UUD..DUU.U...DU...UD...U.UUD..UUD.D...UU...UU...D.DUU.', 'ULFRBD'),
('.UUD.D...UU...UU...D.DUU..DUU.DRRRUURLLUURLRD.UUD..DUU.U...DU...UD...U.UUD..DUU.DLRLUULRRUULLLD.UUD..DUU.U...DU...UD...U.UUD..UUD.D...UU...UU...D.DUU.', 'ULFRBD'),
('.UUD.D...UU...UU...D.DUU..DUU.DRRRUURLLUURLRD.UUD..DUU.U...DU...UD...U.UUD..DUU.DLRLUURRLUULLLD.UUD..DUU.U...DU...UD...U.UUD..UUD.D...UU...UU...D.DUU.', 'ULFRBD'),
('.UUD.D...UU...UU...D.DUU..DUU.DRRRUURLLUURRRD.UUD..DUU.U...DU...UD...U.UUD..DUU.DLLLUULRRUULLLD.UUD..DUU.U...DU...UD...U.UUD..UUD.D...UU...UU...D.DUU.', 'ULFRBD'),
('.UUD.D...UU...UU...D.DUU..DUU.DRRRUURLLUURRRD.UUD..DUU.U...DU...UD...U.UUD..DUU.DLLLUURRLUULLLD.UUD..DUU.U...DU...UD...U.UUD..UUD.D...UU...UU...D.DUU.', 'ULFRBD'),
('.UUD.D...UU...UU...D.DUU..DUU.DRRRUURLRUULLLD.UUD..DUU.U...DU...UD...U.UUD..DUU.DLLLUULRLUURRRD.UUD..DUU.U...DU...UD...U.UUD..UUD.D...UU...UU...D.DUU.', 'ULFRBD'),
('.UUD.D...UU...UU...D.DUU..DUU.DRRRUURLRUULLLD.UUD..DUU.U...DU...UD...U.UUD..DUU.DLRLUULRLUURLRD.UUD..DUU.U...DU...UD...U.UUD..UUD.D...UU...UU...D.DUU.', 'ULFRBD'),
('.UUD.D...UU...UU...D.DUU..DUU.DRRRUURLRUULLLD.UUD..DUU.U...DU...UD...U.UUD..DUU.DRLRUULRLUULRLD.UUD..DUU.U...DU...UD...U.UUD..UUD.D...UU...UU...D.DUU.', 'ULFRBD'),
('.UUD.D...UU...UU...D.DUU..DUU.DRRRUURLRUULLLD.UUD..DUU.U...DU...UD...U.UUD..DUU.DRRRUULRLUULLLD.UUD..DUU.U...DU...UD...U.UUD..UUD.D...UU...UU...D.DUU.', 'ULFRBD'),
('.UUD.D...UU...UU...D.DUU..DUU.DRRRUURLRUULRLD.UUD..DUU.U...DU...UD...U.UUD..DUU.DLLLUULRLUURLRD.UUD..DUU.U...DU...UD...U.UUD..UUD.D...UU...UU...D.DUU.', 'ULFRBD'),
('.UUD.D...UU...UU...D.DUU..DUU.DRRRUURLRUULRLD.UUD..DUU.U...DU...UD...U.UUD..DUU.DRLRUULRLUULLLD.UUD..DUU.U...DU...UD...U.UUD..UUD.D...UU...UU...D.DUU.', 'ULFRBD'),
('.UUD.D...UU...UU...D.DUU..DUU.DRRRUURLRUURLRD.UUD..DUU.U...DU...UD...U.UUD..DUU.DLLLUULRLUULRLD.UUD..DUU.U...DU...UD...U.UUD..UUD.D...UU...UU...D.DUU.', 'ULFRBD'),
('.UUD.D...UU...UU...D.DUU..DUU.DRRRUURLRUURLRD.UUD..DUU.U...DU...UD...U.UUD..DUU.DLRLUULRLUULLLD.UUD..DUU.U...DU...UD...U.UUD..UUD.D...UU...UU...D.DUU.', 'ULFRBD'),
('.UUD.D...UU...UU...D.DUU..DUU.DRRRUURLRUURRRD.UUD..DUU.U...DU...UD...U.UUD..DUU.DLLLUULRLUULLLD.UUD..DUU.U...DU...UD...U.UUD..UUD.D...UU...UU...D.DUU.', 'ULFRBD'),
),
)
# fmt: on
class StartingStates555Phase3LRCenterStage(BFS):
"""
There should be 432 of them
"""
def __init__(self):
BFS.__init__(
self,
"5x5x5-LR-center-stage",
("Uw", "Uw'", "Dw", "Dw'", "Fw", "Fw'", "Bw", "Bw'", "Lw", "Lw'", "Rw", "Rw'", "L", "L'", "R", "R'"),
"5x5x5",
"starting-states-lookup-table-5x5x5-step901-LR-center-stage.txt",
False, # store_as_hex
# starting cubes
(
(
"""
. . . . .
. . . . .
. . . . .
. . . . .
. . . . .
. . . . . . . . . . . . . . . . . . . .
. L L L . . . . . . . R R R . . . . . .
. L L L . . . . . . . R R R . . . . . .
. L L L . . . . . . . R R R . . . . . .
. . . . . . . . . . . . . . . . . . . .
. . . . .
. . . . .
. . . . .
. . . . .
. . . . .""",
"ascii",
),
),
)
class Build555Phase3LRCenterStage(BFS):
def __init__(self):
# fmt: off
BFS.__init__(
self,
"5x5x5-LR-center-stage",
("Uw", "Uw'", "Dw", "Dw'", "Fw", "Fw'", "Bw", "Bw'", "Lw", "Lw'", "Rw", "Rw'"),
"5x5x5",
"lookup-table-5x5x5-step901-LR-center-stage.txt",
False, # store_as_hex
# starting cubes
(
('...............................LLL..LLL..LLL.....................................RRR..RRR..RRR........................................................', 'ULFRBD'),
('...............................LLL..LLL..LRL.....................................RLR..RRR..RRR........................................................', 'ULFRBD'),
('...............................LLL..LLL..LRL.....................................RRR..RRR..RLR........................................................', 'ULFRBD'),
('...............................LLL..LLL..RLR.....................................LRL..RRR..RRR........................................................', 'ULFRBD'),
('...............................LLL..LLL..RLR.....................................RRR..RRR..LRL........................................................', 'ULFRBD'),
('...............................LLL..LLL..RRR.....................................LLL..RRR..RRR........................................................', 'ULFRBD'),
('...............................LLL..LLL..RRR.....................................LRL..RRR..RLR........................................................', 'ULFRBD'),
('...............................LLL..LLL..RRR.....................................RLR..RRR..LRL........................................................', 'ULFRBD'),
('...............................LLL..LLL..RRR.....................................RRR..RRR..LLL........................................................', 'ULFRBD'),
('...............................LLL..LLR..LLL.....................................RRR..LRR..RRR........................................................', 'ULFRBD'),
('...............................LLL..LLR..LLL.....................................RRR..RRL..RRR........................................................', 'ULFRBD'),
('...............................LLL..LLR..LRL.....................................RLR..LRR..RRR........................................................', 'ULFRBD'),
('...............................LLL..LLR..LRL.....................................RLR..RRL..RRR........................................................', 'ULFRBD'),
('...............................LLL..LLR..LRL.....................................RRR..LRR..RLR........................................................', 'ULFRBD'),
('...............................LLL..LLR..LRL.....................................RRR..RRL..RLR........................................................', 'ULFRBD'),
('...............................LLL..LLR..RLR.....................................LRL..LRR..RRR........................................................', 'ULFRBD'),
('...............................LLL..LLR..RLR.....................................LRL..RRL..RRR........................................................', 'ULFRBD'),
('...............................LLL..LLR..RLR.....................................RRR..LRR..LRL........................................................', 'ULFRBD'),
('...............................LLL..LLR..RLR.....................................RRR..RRL..LRL........................................................', 'ULFRBD'),
('...............................LLL..LLR..RRR.....................................LLL..LRR..RRR........................................................', 'ULFRBD'),
('...............................LLL..LLR..RRR.....................................LLL..RRL..RRR........................................................', 'ULFRBD'),
('...............................LLL..LLR..RRR.....................................LRL..LRR..RLR........................................................', 'ULFRBD'),
('...............................LLL..LLR..RRR.....................................LRL..RRL..RLR........................................................', 'ULFRBD'),
('...............................LLL..LLR..RRR.....................................RLR..LRR..LRL........................................................', 'ULFRBD'),
('...............................LLL..LLR..RRR.....................................RLR..RRL..LRL........................................................', 'ULFRBD'),
('...............................LLL..LLR..RRR.....................................RRR..LRR..LLL........................................................', 'ULFRBD'),
('...............................LLL..LLR..RRR.....................................RRR..RRL..LLL........................................................', 'ULFRBD'),
('...............................LLL..RLL..LLL.....................................RRR..LRR..RRR........................................................', 'ULFRBD'),
('...............................LLL..RLL..LLL.....................................RRR..RRL..RRR........................................................', 'ULFRBD'),
('...............................LLL..RLL..LRL.....................................RLR..LRR..RRR........................................................', 'ULFRBD'),
('...............................LLL..RLL..LRL.....................................RLR..RRL..RRR........................................................', 'ULFRBD'),
('...............................LLL..RLL..LRL.....................................RRR..LRR..RLR........................................................', 'ULFRBD'),
('...............................LLL..RLL..LRL.....................................RRR..RRL..RLR........................................................', 'ULFRBD'),
('...............................LLL..RLL..RLR.....................................LRL..LRR..RRR........................................................', 'ULFRBD'),
('...............................LLL..RLL..RLR.....................................LRL..RRL..RRR........................................................', 'ULFRBD'),
('...............................LLL..RLL..RLR.....................................RRR..LRR..LRL........................................................', 'ULFRBD'),
('...............................LLL..RLL..RLR.....................................RRR..RRL..LRL........................................................', 'ULFRBD'),
('...............................LLL..RLL..RRR.....................................LLL..LRR..RRR........................................................', 'ULFRBD'),
('...............................LLL..RLL..RRR.....................................LLL..RRL..RRR........................................................', 'ULFRBD'),
('...............................LLL..RLL..RRR.....................................LRL..LRR..RLR........................................................', 'ULFRBD'),
('...............................LLL..RLL..RRR.....................................LRL..RRL..RLR........................................................', 'ULFRBD'),
('...............................LLL..RLL..RRR.....................................RLR..LRR..LRL........................................................', 'ULFRBD'),
('...............................LLL..RLL..RRR.....................................RLR..RRL..LRL........................................................', 'ULFRBD'),
('...............................LLL..RLL..RRR.....................................RRR..LRR..LLL........................................................', 'ULFRBD'),
('...............................LLL..RLL..RRR.....................................RRR..RRL..LLL........................................................', 'ULFRBD'),
('...............................LLL..RLR..LLL.....................................RRR..LRL..RRR........................................................', 'ULFRBD'),
('...............................LLL..RLR..LRL.....................................RLR..LRL..RRR........................................................', 'ULFRBD'),
('...............................LLL..RLR..LRL.....................................RRR..LRL..RLR........................................................', 'ULFRBD'),
('...............................LLL..RLR..RLR.....................................LRL..LRL..RRR........................................................', 'ULFRBD'),
('...............................LLL..RLR..RLR.....................................RRR..LRL..LRL........................................................', 'ULFRBD'),
('...............................LLL..RLR..RRR.....................................LLL..LRL..RRR........................................................', 'ULFRBD'),
('...............................LLL..RLR..RRR.....................................LRL..LRL..RLR........................................................', 'ULFRBD'),
('...............................LLL..RLR..RRR.....................................RLR..LRL..LRL........................................................', 'ULFRBD'),
('...............................LLL..RLR..RRR.....................................RRR..LRL..LLL........................................................', 'ULFRBD'),
('...............................LLR..LLL..LLR.....................................LRR..RRR..LRR........................................................', 'ULFRBD'),
('...............................LLR..LLL..LLR.....................................RRL..RRR..RRL........................................................', 'ULFRBD'),
('...............................LLR..LLL..LRR.....................................LLR..RRR..LRR........................................................', 'ULFRBD'),
('...............................LLR..LLL..LRR.....................................LRR..RRR..LLR........................................................', 'ULFRBD'),
('...............................LLR..LLL..LRR.....................................RLL..RRR..RRL........................................................', 'ULFRBD'),
('...............................LLR..LLL..LRR.....................................RRL..RRR..RLL........................................................', 'ULFRBD'),
('...............................LLR..LLL..RLL.....................................RRL..RRR..LRR........................................................', 'ULFRBD'),
('...............................LLR..LLL..RRL.....................................RLL..RRR..LRR........................................................', 'ULFRBD'),
('...............................LLR..LLL..RRL.....................................RRL..RRR..LLR........................................................', 'ULFRBD'),
('...............................LLR..LLR..LLR.....................................LRR..LRR..LRR........................................................', 'ULFRBD'),
('...............................LLR..LLR..LLR.....................................LRR..RRL..LRR........................................................', 'ULFRBD'),
('...............................LLR..LLR..LLR.....................................RRL..LRR..RRL........................................................', 'ULFRBD'),
('...............................LLR..LLR..LLR.....................................RRL..RRL..RRL........................................................', 'ULFRBD'),
('...............................LLR..LLR..LRR.....................................LLR..LRR..LRR........................................................', 'ULFRBD'),
('...............................LLR..LLR..LRR.....................................LLR..RRL..LRR........................................................', 'ULFRBD'),
('...............................LLR..LLR..LRR.....................................LRR..LRR..LLR........................................................', 'ULFRBD'),
('...............................LLR..LLR..LRR.....................................LRR..RRL..LLR........................................................', 'ULFRBD'),
('...............................LLR..LLR..LRR.....................................RLL..LRR..RRL........................................................', 'ULFRBD'),
('...............................LLR..LLR..LRR.....................................RLL..RRL..RRL........................................................', 'ULFRBD'),
('...............................LLR..LLR..LRR.....................................RRL..LRR..RLL........................................................', 'ULFRBD'),
('...............................LLR..LLR..LRR.....................................RRL..RRL..RLL........................................................', 'ULFRBD'),
('...............................LLR..LLR..RLL.....................................RRL..LRR..LRR........................................................', 'ULFRBD'),
('...............................LLR..LLR..RLL.....................................RRL..RRL..LRR........................................................', 'ULFRBD'),
('...............................LLR..LLR..RRL.....................................RLL..LRR..LRR........................................................', 'ULFRBD'),
('...............................LLR..LLR..RRL.....................................RLL..RRL..LRR........................................................', 'ULFRBD'),
('...............................LLR..LLR..RRL.....................................RRL..LRR..LLR........................................................', 'ULFRBD'),
('...............................LLR..LLR..RRL.....................................RRL..RRL..LLR........................................................', 'ULFRBD'),
('...............................LLR..RLL..LLR.....................................LRR..LRR..LRR........................................................', 'ULFRBD'),
('...............................LLR..RLL..LLR.....................................LRR..RRL..LRR........................................................', 'ULFRBD'),
('...............................LLR..RLL..LLR.....................................RRL..LRR..RRL........................................................', 'ULFRBD'),
('...............................LLR..RLL..LLR.....................................RRL..RRL..RRL........................................................', 'ULFRBD'),
('...............................LLR..RLL..LRR.....................................LLR..LRR..LRR........................................................', 'ULFRBD'),
('...............................LLR..RLL..LRR.....................................LLR..RRL..LRR........................................................', 'ULFRBD'),
('...............................LLR..RLL..LRR.....................................LRR..LRR..LLR........................................................', 'ULFRBD'),
('...............................LLR..RLL..LRR.....................................LRR..RRL..LLR........................................................', 'ULFRBD'),
('...............................LLR..RLL..LRR.....................................RLL..LRR..RRL........................................................', 'ULFRBD'),
('...............................LLR..RLL..LRR.....................................RLL..RRL..RRL........................................................', 'ULFRBD'),
('...............................LLR..RLL..LRR.....................................RRL..LRR..RLL........................................................', 'ULFRBD'),
('...............................LLR..RLL..LRR.....................................RRL..RRL..RLL........................................................', 'ULFRBD'),
('...............................LLR..RLL..RLL.....................................RRL..LRR..LRR........................................................', 'ULFRBD'),
('...............................LLR..RLL..RLL.....................................RRL..RRL..LRR........................................................', 'ULFRBD'),
('...............................LLR..RLL..RRL.....................................RLL..LRR..LRR........................................................', 'ULFRBD'),
('...............................LLR..RLL..RRL.....................................RLL..RRL..LRR........................................................', 'ULFRBD'),
('...............................LLR..RLL..RRL.....................................RRL..LRR..LLR........................................................', 'ULFRBD'),
('...............................LLR..RLL..RRL.....................................RRL..RRL..LLR........................................................', 'ULFRBD'),
('...............................LLR..RLR..LLR.....................................LRR..LRL..LRR........................................................', 'ULFRBD'),
('...............................LLR..RLR..LLR.....................................RRL..LRL..RRL........................................................', 'ULFRBD'),
('...............................LLR..RLR..LRR.....................................LLR..LRL..LRR........................................................', 'ULFRBD'),
('...............................LLR..RLR..LRR.....................................LRR..LRL..LLR........................................................', 'ULFRBD'),
('...............................LLR..RLR..LRR.....................................RLL..LRL..RRL........................................................', 'ULFRBD'),
('...............................LLR..RLR..LRR.....................................RRL..LRL..RLL........................................................', 'ULFRBD'),
('...............................LLR..RLR..RLL.....................................RRL..LRL..LRR........................................................', 'ULFRBD'),
('...............................LLR..RLR..RRL.....................................RLL..LRL..LRR........................................................', 'ULFRBD'),
('...............................LLR..RLR..RRL.....................................RRL..LRL..LLR........................................................', 'ULFRBD'),
('...............................LRL..LLL..LLL.....................................RLR..RRR..RRR........................................................', 'ULFRBD'),
('...............................LRL..LLL..LLL.....................................RRR..RRR..RLR........................................................', 'ULFRBD'),
('...............................LRL..LLL..LRL.....................................RLR..RRR..RLR........................................................', 'ULFRBD'),
('...............................LRL..LLL..RLR.....................................LLL..RRR..RRR........................................................', 'ULFRBD'),
('...............................LRL..LLL..RLR.....................................LRL..RRR..RLR........................................................', 'ULFRBD'),
('...............................LRL..LLL..RLR.....................................RLR..RRR..LRL........................................................', 'ULFRBD'),
('...............................LRL..LLL..RLR.....................................RRR..RRR..LLL........................................................', 'ULFRBD'),
('...............................LRL..LLL..RRR.....................................LLL..RRR..RLR........................................................', 'ULFRBD'),
('...............................LRL..LLL..RRR.....................................RLR..RRR..LLL........................................................', 'ULFRBD'),
('...............................LRL..LLR..LLL.....................................RLR..LRR..RRR........................................................', 'ULFRBD'),
('...............................LRL..LLR..LLL.....................................RLR..RRL..RRR........................................................', 'ULFRBD'),
('...............................LRL..LLR..LLL.....................................RRR..LRR..RLR........................................................', 'ULFRBD'),
('...............................LRL..LLR..LLL.....................................RRR..RRL..RLR........................................................', 'ULFRBD'),
('...............................LRL..LLR..LRL.....................................RLR..LRR..RLR........................................................', 'ULFRBD'),
('...............................LRL..LLR..LRL.....................................RLR..RRL..RLR........................................................', 'ULFRBD'),
('...............................LRL..LLR..RLR.....................................LLL..LRR..RRR........................................................', 'ULFRBD'),
('...............................LRL..LLR..RLR.....................................LLL..RRL..RRR........................................................', 'ULFRBD'),
('...............................LRL..LLR..RLR.....................................LRL..LRR..RLR........................................................', 'ULFRBD'),
('...............................LRL..LLR..RLR.....................................LRL..RRL..RLR........................................................', 'ULFRBD'),
('...............................LRL..LLR..RLR.....................................RLR..LRR..LRL........................................................', 'ULFRBD'),
('...............................LRL..LLR..RLR.....................................RLR..RRL..LRL........................................................', 'ULFRBD'),
('...............................LRL..LLR..RLR.....................................RRR..LRR..LLL........................................................', 'ULFRBD'),
('...............................LRL..LLR..RLR.....................................RRR..RRL..LLL........................................................', 'ULFRBD'),
('...............................LRL..LLR..RRR.....................................LLL..LRR..RLR........................................................', 'ULFRBD'),
('...............................LRL..LLR..RRR.....................................LLL..RRL..RLR........................................................', 'ULFRBD'),
('...............................LRL..LLR..RRR.....................................RLR..LRR..LLL........................................................', 'ULFRBD'),
('...............................LRL..LLR..RRR.....................................RLR..RRL..LLL........................................................', 'ULFRBD'),
('...............................LRL..RLL..LLL.....................................RLR..LRR..RRR........................................................', 'ULFRBD'),
('...............................LRL..RLL..LLL.....................................RLR..RRL..RRR........................................................', 'ULFRBD'),
('...............................LRL..RLL..LLL.....................................RRR..LRR..RLR........................................................', 'ULFRBD'),
('...............................LRL..RLL..LLL.....................................RRR..RRL..RLR........................................................', 'ULFRBD'),
('...............................LRL..RLL..LRL.....................................RLR..LRR..RLR........................................................', 'ULFRBD'),
('...............................LRL..RLL..LRL.....................................RLR..RRL..RLR........................................................', 'ULFRBD'),
('...............................LRL..RLL..RLR.....................................LLL..LRR..RRR........................................................', 'ULFRBD'),
('...............................LRL..RLL..RLR.....................................LLL..RRL..RRR........................................................', 'ULFRBD'),
('...............................LRL..RLL..RLR.....................................LRL..LRR..RLR........................................................', 'ULFRBD'),
('...............................LRL..RLL..RLR.....................................LRL..RRL..RLR........................................................', 'ULFRBD'),
('...............................LRL..RLL..RLR.....................................RLR..LRR..LRL........................................................', 'ULFRBD'),
('...............................LRL..RLL..RLR.....................................RLR..RRL..LRL........................................................', 'ULFRBD'),
('...............................LRL..RLL..RLR.....................................RRR..LRR..LLL........................................................', 'ULFRBD'),
('...............................LRL..RLL..RLR.....................................RRR..RRL..LLL........................................................', 'ULFRBD'),
('...............................LRL..RLL..RRR.....................................LLL..LRR..RLR........................................................', 'ULFRBD'),
('...............................LRL..RLL..RRR.....................................LLL..RRL..RLR........................................................', 'ULFRBD'),
('...............................LRL..RLL..RRR.....................................RLR..LRR..LLL........................................................', 'ULFRBD'),
('...............................LRL..RLL..RRR.....................................RLR..RRL..LLL........................................................', 'ULFRBD'),
('...............................LRL..RLR..LLL.....................................RLR..LRL..RRR........................................................', 'ULFRBD'),
('...............................LRL..RLR..LLL.....................................RRR..LRL..RLR........................................................', 'ULFRBD'),
('...............................LRL..RLR..LRL.....................................RLR..LRL..RLR........................................................', 'ULFRBD'),
('...............................LRL..RLR..RLR.....................................LLL..LRL..RRR........................................................', 'ULFRBD'),
('...............................LRL..RLR..RLR.....................................LRL..LRL..RLR........................................................', 'ULFRBD'),
('...............................LRL..RLR..RLR.....................................RLR..LRL..LRL........................................................', 'ULFRBD'),
('...............................LRL..RLR..RLR.....................................RRR..LRL..LLL........................................................', 'ULFRBD'),
('...............................LRL..RLR..RRR.....................................LLL..LRL..RLR........................................................', 'ULFRBD'),
('...............................LRL..RLR..RRR.....................................RLR..LRL..LLL........................................................', 'ULFRBD'),
('...............................LRR..LLL..LLR.....................................LLR..RRR..LRR........................................................', 'ULFRBD'),
('...............................LRR..LLL..LLR.....................................LRR..RRR..LLR........................................................', 'ULFRBD'),
('...............................LRR..LLL..LLR.....................................RLL..RRR..RRL........................................................', 'ULFRBD'),
('...............................LRR..LLL..LLR.....................................RRL..RRR..RLL........................................................', 'ULFRBD'),
('...............................LRR..LLL..LRR.....................................LLR..RRR..LLR........................................................', 'ULFRBD'),
('...............................LRR..LLL..LRR.....................................RLL..RRR..RLL........................................................', 'ULFRBD'),
('...............................LRR..LLL..RLL.....................................RLL..RRR..LRR........................................................', 'ULFRBD'),
('...............................LRR..LLL..RLL.....................................RRL..RRR..LLR........................................................', 'ULFRBD'),
('...............................LRR..LLL..RRL.....................................RLL..RRR..LLR........................................................', 'ULFRBD'),
('...............................LRR..LLR..LLR.....................................LLR..LRR..LRR........................................................', 'ULFRBD'),
('...............................LRR..LLR..LLR.....................................LLR..RRL..LRR........................................................', 'ULFRBD'),
('...............................LRR..LLR..LLR.....................................LRR..LRR..LLR........................................................', 'ULFRBD'),
('...............................LRR..LLR..LLR.....................................LRR..RRL..LLR........................................................', 'ULFRBD'),
('...............................LRR..LLR..LLR.....................................RLL..LRR..RRL........................................................', 'ULFRBD'),
('...............................LRR..LLR..LLR.....................................RLL..RRL..RRL........................................................', 'ULFRBD'),
('...............................LRR..LLR..LLR.....................................RRL..LRR..RLL........................................................', 'ULFRBD'),
('...............................LRR..LLR..LLR.....................................RRL..RRL..RLL........................................................', 'ULFRBD'),
('...............................LRR..LLR..LRR.....................................LLR..LRR..LLR........................................................', 'ULFRBD'),
('...............................LRR..LLR..LRR.....................................LLR..RRL..LLR........................................................', 'ULFRBD'),
('...............................LRR..LLR..LRR.....................................RLL..LRR..RLL........................................................', 'ULFRBD'),
('...............................LRR..LLR..LRR.....................................RLL..RRL..RLL........................................................', 'ULFRBD'),
('...............................LRR..LLR..RLL.....................................RLL..LRR..LRR........................................................', 'ULFRBD'),
('...............................LRR..LLR..RLL.....................................RLL..RRL..LRR........................................................', 'ULFRBD'),
('...............................LRR..LLR..RLL.....................................RRL..LRR..LLR........................................................', 'ULFRBD'),
('...............................LRR..LLR..RLL.....................................RRL..RRL..LLR........................................................', 'ULFRBD'),
('...............................LRR..LLR..RRL.....................................RLL..LRR..LLR........................................................', 'ULFRBD'),
('...............................LRR..LLR..RRL.....................................RLL..RRL..LLR........................................................', 'ULFRBD'),
('...............................LRR..RLL..LLR.....................................LLR..LRR..LRR........................................................', 'ULFRBD'),
('...............................LRR..RLL..LLR.....................................LLR..RRL..LRR........................................................', 'ULFRBD'),
('...............................LRR..RLL..LLR.....................................LRR..LRR..LLR........................................................', 'ULFRBD'),
('...............................LRR..RLL..LLR.....................................LRR..RRL..LLR........................................................', 'ULFRBD'),
('...............................LRR..RLL..LLR.....................................RLL..LRR..RRL........................................................', 'ULFRBD'),
('...............................LRR..RLL..LLR.....................................RLL..RRL..RRL........................................................', 'ULFRBD'),
('...............................LRR..RLL..LLR.....................................RRL..LRR..RLL........................................................', 'ULFRBD'),
('...............................LRR..RLL..LLR.....................................RRL..RRL..RLL........................................................', 'ULFRBD'),
('...............................LRR..RLL..LRR.....................................LLR..LRR..LLR........................................................', 'ULFRBD'),
('...............................LRR..RLL..LRR.....................................LLR..RRL..LLR........................................................', 'ULFRBD'),
('...............................LRR..RLL..LRR.....................................RLL..LRR..RLL........................................................', 'ULFRBD'),
('...............................LRR..RLL..LRR.....................................RLL..RRL..RLL........................................................', 'ULFRBD'),
('...............................LRR..RLL..RLL.....................................RLL..LRR..LRR........................................................', 'ULFRBD'),
('...............................LRR..RLL..RLL.....................................RLL..RRL..LRR........................................................', 'ULFRBD'),
('...............................LRR..RLL..RLL.....................................RRL..LRR..LLR........................................................', 'ULFRBD'),
('...............................LRR..RLL..RLL.....................................RRL..RRL..LLR........................................................', 'ULFRBD'),
('...............................LRR..RLL..RRL.....................................RLL..LRR..LLR........................................................', 'ULFRBD'),
('...............................LRR..RLL..RRL.....................................RLL..RRL..LLR........................................................', 'ULFRBD'),
('...............................LRR..RLR..LLR.....................................LLR..LRL..LRR........................................................', 'ULFRBD'),
('...............................LRR..RLR..LLR.....................................LRR..LRL..LLR........................................................', 'ULFRBD'),
('...............................LRR..RLR..LLR.....................................RLL..LRL..RRL........................................................', 'ULFRBD'),
('...............................LRR..RLR..LLR.....................................RRL..LRL..RLL........................................................', 'ULFRBD'),
('...............................LRR..RLR..LRR.....................................LLR..LRL..LLR........................................................', 'ULFRBD'),
('...............................LRR..RLR..LRR.....................................RLL..LRL..RLL........................................................', 'ULFRBD'),
('...............................LRR..RLR..RLL.....................................RLL..LRL..LRR........................................................', 'ULFRBD'),
('...............................LRR..RLR..RLL.....................................RRL..LRL..LLR........................................................', 'ULFRBD'),
('...............................LRR..RLR..RRL.....................................RLL..LRL..LLR........................................................', 'ULFRBD'),
('...............................RLL..LLL..LLR.....................................LRR..RRR..RRL........................................................', 'ULFRBD'),
('...............................RLL..LLL..LRR.....................................LLR..RRR..RRL........................................................', 'ULFRBD'),
('...............................RLL..LLL..LRR.....................................LRR..RRR..RLL........................................................', 'ULFRBD'),
('...............................RLL..LLL..RLL.....................................LRR..RRR..LRR........................................................', 'ULFRBD'),
('...............................RLL..LLL..RLL.....................................RRL..RRR..RRL........................................................', 'ULFRBD'),
('...............................RLL..LLL..RRL.....................................LLR..RRR..LRR........................................................', 'ULFRBD'),
('...............................RLL..LLL..RRL.....................................LRR..RRR..LLR........................................................', 'ULFRBD'),
('...............................RLL..LLL..RRL.....................................RLL..RRR..RRL........................................................', 'ULFRBD'),
('...............................RLL..LLL..RRL.....................................RRL..RRR..RLL........................................................', 'ULFRBD'),
('...............................RLL..LLR..LLR.....................................LRR..LRR..RRL........................................................', 'ULFRBD'),
('...............................RLL..LLR..LLR.....................................LRR..RRL..RRL........................................................', 'ULFRBD'),
('...............................RLL..LLR..LRR.....................................LLR..LRR..RRL........................................................', 'ULFRBD'),
('...............................RLL..LLR..LRR.....................................LLR..RRL..RRL........................................................', 'ULFRBD'),
('...............................RLL..LLR..LRR.....................................LRR..LRR..RLL........................................................', 'ULFRBD'),
('...............................RLL..LLR..LRR.....................................LRR..RRL..RLL........................................................', 'ULFRBD'),
('...............................RLL..LLR..RLL.....................................LRR..LRR..LRR........................................................', 'ULFRBD'),
('...............................RLL..LLR..RLL.....................................LRR..RRL..LRR........................................................', 'ULFRBD'),
('...............................RLL..LLR..RLL.....................................RRL..LRR..RRL........................................................', 'ULFRBD'),
('...............................RLL..LLR..RLL.....................................RRL..RRL..RRL........................................................', 'ULFRBD'),
('...............................RLL..LLR..RRL.....................................LLR..LRR..LRR........................................................', 'ULFRBD'),
('...............................RLL..LLR..RRL.....................................LLR..RRL..LRR........................................................', 'ULFRBD'),
('...............................RLL..LLR..RRL.....................................LRR..LRR..LLR........................................................', 'ULFRBD'),
('...............................RLL..LLR..RRL.....................................LRR..RRL..LLR........................................................', 'ULFRBD'),
('...............................RLL..LLR..RRL.....................................RLL..LRR..RRL........................................................', 'ULFRBD'),
('...............................RLL..LLR..RRL.....................................RLL..RRL..RRL........................................................', 'ULFRBD'),
('...............................RLL..LLR..RRL.....................................RRL..LRR..RLL........................................................', 'ULFRBD'),
('...............................RLL..LLR..RRL.....................................RRL..RRL..RLL........................................................', 'ULFRBD'),
('...............................RLL..RLL..LLR.....................................LRR..LRR..RRL........................................................', 'ULFRBD'),
('...............................RLL..RLL..LLR.....................................LRR..RRL..RRL........................................................', 'ULFRBD'),
('...............................RLL..RLL..LRR.....................................LLR..LRR..RRL........................................................', 'ULFRBD'),
('...............................RLL..RLL..LRR.....................................LLR..RRL..RRL........................................................', 'ULFRBD'),
('...............................RLL..RLL..LRR.....................................LRR..LRR..RLL........................................................', 'ULFRBD'),
('...............................RLL..RLL..LRR.....................................LRR..RRL..RLL........................................................', 'ULFRBD'),
('...............................RLL..RLL..RLL.....................................LRR..LRR..LRR........................................................', 'ULFRBD'),
('...............................RLL..RLL..RLL.....................................LRR..RRL..LRR........................................................', 'ULFRBD'),
('...............................RLL..RLL..RLL.....................................RRL..LRR..RRL........................................................', 'ULFRBD'),
('...............................RLL..RLL..RLL.....................................RRL..RRL..RRL........................................................', 'ULFRBD'),
('...............................RLL..RLL..RRL.....................................LLR..LRR..LRR........................................................', 'ULFRBD'),
('...............................RLL..RLL..RRL.....................................LLR..RRL..LRR........................................................', 'ULFRBD'),
('...............................RLL..RLL..RRL.....................................LRR..LRR..LLR........................................................', 'ULFRBD'),
('...............................RLL..RLL..RRL.....................................LRR..RRL..LLR........................................................', 'ULFRBD'),
('...............................RLL..RLL..RRL.....................................RLL..LRR..RRL........................................................', 'ULFRBD'),
('...............................RLL..RLL..RRL.....................................RLL..RRL..RRL........................................................', 'ULFRBD'),
('...............................RLL..RLL..RRL.....................................RRL..LRR..RLL........................................................', 'ULFRBD'),
('...............................RLL..RLL..RRL.....................................RRL..RRL..RLL........................................................', 'ULFRBD'),
('...............................RLL..RLR..LLR.....................................LRR..LRL..RRL........................................................', 'ULFRBD'),
('...............................RLL..RLR..LRR.....................................LLR..LRL..RRL........................................................', 'ULFRBD'),
('...............................RLL..RLR..LRR.....................................LRR..LRL..RLL........................................................', 'ULFRBD'),
('...............................RLL..RLR..RLL.....................................LRR..LRL..LRR........................................................', 'ULFRBD'),
('...............................RLL..RLR..RLL.....................................RRL..LRL..RRL........................................................', 'ULFRBD'),
('...............................RLL..RLR..RRL.....................................LLR..LRL..LRR........................................................', 'ULFRBD'),
('...............................RLL..RLR..RRL.....................................LRR..LRL..LLR........................................................', 'ULFRBD'),
('...............................RLL..RLR..RRL.....................................RLL..LRL..RRL........................................................', 'ULFRBD'),
('...............................RLL..RLR..RRL.....................................RRL..LRL..RLL........................................................', 'ULFRBD'),
('...............................RLR..LLL..LLL.....................................LRL..RRR..RRR........................................................', 'ULFRBD'),
('...............................RLR..LLL..LLL.....................................RRR..RRR..LRL........................................................', 'ULFRBD'),
('...............................RLR..LLL..LRL.....................................LLL..RRR..RRR........................................................', 'ULFRBD'),
('...............................RLR..LLL..LRL.....................................LRL..RRR..RLR........................................................', 'ULFRBD'),
('...............................RLR..LLL..LRL.....................................RLR..RRR..LRL........................................................', 'ULFRBD'),
('...............................RLR..LLL..LRL.....................................RRR..RRR..LLL........................................................', 'ULFRBD'),
('...............................RLR..LLL..RLR.....................................LRL..RRR..LRL........................................................', 'ULFRBD'),
('...............................RLR..LLL..RRR.....................................LLL..RRR..LRL........................................................', 'ULFRBD'),
('...............................RLR..LLL..RRR.....................................LRL..RRR..LLL........................................................', 'ULFRBD'),
('...............................RLR..LLR..LLL.....................................LRL..LRR..RRR........................................................', 'ULFRBD'),
('...............................RLR..LLR..LLL.....................................LRL..RRL..RRR........................................................', 'ULFRBD'),
('...............................RLR..LLR..LLL.....................................RRR..LRR..LRL........................................................', 'ULFRBD'),
('...............................RLR..LLR..LLL.....................................RRR..RRL..LRL........................................................', 'ULFRBD'),
('...............................RLR..LLR..LRL.....................................LLL..LRR..RRR........................................................', 'ULFRBD'),
('...............................RLR..LLR..LRL.....................................LLL..RRL..RRR........................................................', 'ULFRBD'),
('...............................RLR..LLR..LRL.....................................LRL..LRR..RLR........................................................', 'ULFRBD'),
('...............................RLR..LLR..LRL.....................................LRL..RRL..RLR........................................................', 'ULFRBD'),
('...............................RLR..LLR..LRL.....................................RLR..LRR..LRL........................................................', 'ULFRBD'),
('...............................RLR..LLR..LRL.....................................RLR..RRL..LRL........................................................', 'ULFRBD'),
('...............................RLR..LLR..LRL.....................................RRR..LRR..LLL........................................................', 'ULFRBD'),
('...............................RLR..LLR..LRL.....................................RRR..RRL..LLL........................................................', 'ULFRBD'),
('...............................RLR..LLR..RLR.....................................LRL..LRR..LRL........................................................', 'ULFRBD'),
('...............................RLR..LLR..RLR.....................................LRL..RRL..LRL........................................................', 'ULFRBD'),
('...............................RLR..LLR..RRR.....................................LLL..LRR..LRL........................................................', 'ULFRBD'),
('...............................RLR..LLR..RRR.....................................LLL..RRL..LRL........................................................', 'ULFRBD'),
('...............................RLR..LLR..RRR.....................................LRL..LRR..LLL........................................................', 'ULFRBD'),
('...............................RLR..LLR..RRR.....................................LRL..RRL..LLL........................................................', 'ULFRBD'),
('...............................RLR..RLL..LLL.....................................LRL..LRR..RRR........................................................', 'ULFRBD'),
('...............................RLR..RLL..LLL.....................................LRL..RRL..RRR........................................................', 'ULFRBD'),
('...............................RLR..RLL..LLL.....................................RRR..LRR..LRL........................................................', 'ULFRBD'),
('...............................RLR..RLL..LLL.....................................RRR..RRL..LRL........................................................', 'ULFRBD'),
('...............................RLR..RLL..LRL.....................................LLL..LRR..RRR........................................................', 'ULFRBD'),
('...............................RLR..RLL..LRL.....................................LLL..RRL..RRR........................................................', 'ULFRBD'),
('...............................RLR..RLL..LRL.....................................LRL..LRR..RLR........................................................', 'ULFRBD'),
('...............................RLR..RLL..LRL.....................................LRL..RRL..RLR........................................................', 'ULFRBD'),
('...............................RLR..RLL..LRL.....................................RLR..LRR..LRL........................................................', 'ULFRBD'),
('...............................RLR..RLL..LRL.....................................RLR..RRL..LRL........................................................', 'ULFRBD'),
('...............................RLR..RLL..LRL.....................................RRR..LRR..LLL........................................................', 'ULFRBD'),
('...............................RLR..RLL..LRL.....................................RRR..RRL..LLL........................................................', 'ULFRBD'),
('...............................RLR..RLL..RLR.....................................LRL..LRR..LRL........................................................', 'ULFRBD'),
('...............................RLR..RLL..RLR.....................................LRL..RRL..LRL........................................................', 'ULFRBD'),
('...............................RLR..RLL..RRR.....................................LLL..LRR..LRL........................................................', 'ULFRBD'),
('...............................RLR..RLL..RRR.....................................LLL..RRL..LRL........................................................', 'ULFRBD'),
('...............................RLR..RLL..RRR.....................................LRL..LRR..LLL........................................................', 'ULFRBD'),
('...............................RLR..RLL..RRR.....................................LRL..RRL..LLL........................................................', 'ULFRBD'),
('...............................RLR..RLR..LLL.....................................LRL..LRL..RRR........................................................', 'ULFRBD'),
('...............................RLR..RLR..LLL.....................................RRR..LRL..LRL........................................................', 'ULFRBD'),
('...............................RLR..RLR..LRL.....................................LLL..LRL..RRR........................................................', 'ULFRBD'),
('...............................RLR..RLR..LRL.....................................LRL..LRL..RLR........................................................', 'ULFRBD'),
('...............................RLR..RLR..LRL.....................................RLR..LRL..LRL........................................................', 'ULFRBD'),
('...............................RLR..RLR..LRL.....................................RRR..LRL..LLL........................................................', 'ULFRBD'),
('...............................RLR..RLR..RLR.....................................LRL..LRL..LRL........................................................', 'ULFRBD'),
('...............................RLR..RLR..RRR.....................................LLL..LRL..LRL........................................................', 'ULFRBD'),
('...............................RLR..RLR..RRR.....................................LRL..LRL..LLL........................................................', 'ULFRBD'),
('...............................RRL..LLL..LLR.....................................LLR..RRR..RRL........................................................', 'ULFRBD'),
('...............................RRL..LLL..LLR.....................................LRR..RRR..RLL........................................................', 'ULFRBD'),
('...............................RRL..LLL..LRR.....................................LLR..RRR..RLL........................................................', 'ULFRBD'),
('...............................RRL..LLL..RLL.....................................LLR..RRR..LRR........................................................', 'ULFRBD'),
('...............................RRL..LLL..RLL.....................................LRR..RRR..LLR........................................................', 'ULFRBD'),
('...............................RRL..LLL..RLL.....................................RLL..RRR..RRL........................................................', 'ULFRBD'),
('...............................RRL..LLL..RLL.....................................RRL..RRR..RLL........................................................', 'ULFRBD'),
('...............................RRL..LLL..RRL.....................................LLR..RRR..LLR........................................................', 'ULFRBD'),
('...............................RRL..LLL..RRL.....................................RLL..RRR..RLL........................................................', 'ULFRBD'),
('...............................RRL..LLR..LLR.....................................LLR..LRR..RRL........................................................', 'ULFRBD'),
('...............................RRL..LLR..LLR.....................................LLR..RRL..RRL........................................................', 'ULFRBD'),
('...............................RRL..LLR..LLR.....................................LRR..LRR..RLL........................................................', 'ULFRBD'),
('...............................RRL..LLR..LLR.....................................LRR..RRL..RLL........................................................', 'ULFRBD'),
('...............................RRL..LLR..LRR.....................................LLR..LRR..RLL........................................................', 'ULFRBD'),
('...............................RRL..LLR..LRR.....................................LLR..RRL..RLL........................................................', 'ULFRBD'),
('...............................RRL..LLR..RLL.....................................LLR..LRR..LRR........................................................', 'ULFRBD'),
('...............................RRL..LLR..RLL.....................................LLR..RRL..LRR........................................................', 'ULFRBD'),
('...............................RRL..LLR..RLL.....................................LRR..LRR..LLR........................................................', 'ULFRBD'),
('...............................RRL..LLR..RLL.....................................LRR..RRL..LLR........................................................', 'ULFRBD'),
('...............................RRL..LLR..RLL.....................................RLL..LRR..RRL........................................................', 'ULFRBD'),
('...............................RRL..LLR..RLL.....................................RLL..RRL..RRL........................................................', 'ULFRBD'),
('...............................RRL..LLR..RLL.....................................RRL..LRR..RLL........................................................', 'ULFRBD'),
('...............................RRL..LLR..RLL.....................................RRL..RRL..RLL........................................................', 'ULFRBD'),
('...............................RRL..LLR..RRL.....................................LLR..LRR..LLR........................................................', 'ULFRBD'),
('...............................RRL..LLR..RRL.....................................LLR..RRL..LLR........................................................', 'ULFRBD'),
('...............................RRL..LLR..RRL.....................................RLL..LRR..RLL........................................................', 'ULFRBD'),
('...............................RRL..LLR..RRL.....................................RLL..RRL..RLL........................................................', 'ULFRBD'),
('...............................RRL..RLL..LLR.....................................LLR..LRR..RRL........................................................', 'ULFRBD'),
('...............................RRL..RLL..LLR.....................................LLR..RRL..RRL........................................................', 'ULFRBD'),
('...............................RRL..RLL..LLR.....................................LRR..LRR..RLL........................................................', 'ULFRBD'),
('...............................RRL..RLL..LLR.....................................LRR..RRL..RLL........................................................', 'ULFRBD'),
('...............................RRL..RLL..LRR.....................................LLR..LRR..RLL........................................................', 'ULFRBD'),
('...............................RRL..RLL..LRR.....................................LLR..RRL..RLL........................................................', 'ULFRBD'),
('...............................RRL..RLL..RLL.....................................LLR..LRR..LRR........................................................', 'ULFRBD'),
('...............................RRL..RLL..RLL.....................................LLR..RRL..LRR........................................................', 'ULFRBD'),
('...............................RRL..RLL..RLL.....................................LRR..LRR..LLR........................................................', 'ULFRBD'),
('...............................RRL..RLL..RLL.....................................LRR..RRL..LLR........................................................', 'ULFRBD'),
('...............................RRL..RLL..RLL.....................................RLL..LRR..RRL........................................................', 'ULFRBD'),
('...............................RRL..RLL..RLL.....................................RLL..RRL..RRL........................................................', 'ULFRBD'),
('...............................RRL..RLL..RLL.....................................RRL..LRR..RLL........................................................', 'ULFRBD'),
('...............................RRL..RLL..RLL.....................................RRL..RRL..RLL........................................................', 'ULFRBD'),
('...............................RRL..RLL..RRL.....................................LLR..LRR..LLR........................................................', 'ULFRBD'),
('...............................RRL..RLL..RRL.....................................LLR..RRL..LLR........................................................', 'ULFRBD'),
('...............................RRL..RLL..RRL.....................................RLL..LRR..RLL........................................................', 'ULFRBD'),
('...............................RRL..RLL..RRL.....................................RLL..RRL..RLL........................................................', 'ULFRBD'),
('...............................RRL..RLR..LLR.....................................LLR..LRL..RRL........................................................', 'ULFRBD'),
('...............................RRL..RLR..LLR.....................................LRR..LRL..RLL........................................................', 'ULFRBD'),
('...............................RRL..RLR..LRR.....................................LLR..LRL..RLL........................................................', 'ULFRBD'),
('...............................RRL..RLR..RLL.....................................LLR..LRL..LRR........................................................', 'ULFRBD'),
('...............................RRL..RLR..RLL.....................................LRR..LRL..LLR........................................................', 'ULFRBD'),
('...............................RRL..RLR..RLL.....................................RLL..LRL..RRL........................................................', 'ULFRBD'),
('...............................RRL..RLR..RLL.....................................RRL..LRL..RLL........................................................', 'ULFRBD'),
('...............................RRL..RLR..RRL.....................................LLR..LRL..LLR........................................................', 'ULFRBD'),
('...............................RRL..RLR..RRL.....................................RLL..LRL..RLL........................................................', 'ULFRBD'),
('...............................RRR..LLL..LLL.....................................LLL..RRR..RRR........................................................', 'ULFRBD'),
('...............................RRR..LLL..LLL.....................................LRL..RRR..RLR........................................................', 'ULFRBD'),
('...............................RRR..LLL..LLL.....................................RLR..RRR..LRL........................................................', 'ULFRBD'),
('...............................RRR..LLL..LLL.....................................RRR..RRR..LLL........................................................', 'ULFRBD'),
('...............................RRR..LLL..LRL.....................................LLL..RRR..RLR........................................................', 'ULFRBD'),
('...............................RRR..LLL..LRL.....................................RLR..RRR..LLL........................................................', 'ULFRBD'),
('...............................RRR..LLL..RLR.....................................LLL..RRR..LRL........................................................', 'ULFRBD'),
('...............................RRR..LLL..RLR.....................................LRL..RRR..LLL........................................................', 'ULFRBD'),
('...............................RRR..LLL..RRR.....................................LLL..RRR..LLL........................................................', 'ULFRBD'),
('...............................RRR..LLR..LLL.....................................LLL..LRR..RRR........................................................', 'ULFRBD'),
('...............................RRR..LLR..LLL.....................................LLL..RRL..RRR........................................................', 'ULFRBD'),
('...............................RRR..LLR..LLL.....................................LRL..LRR..RLR........................................................', 'ULFRBD'),
('...............................RRR..LLR..LLL.....................................LRL..RRL..RLR........................................................', 'ULFRBD'),
('...............................RRR..LLR..LLL.....................................RLR..LRR..LRL........................................................', 'ULFRBD'),
('...............................RRR..LLR..LLL.....................................RLR..RRL..LRL........................................................', 'ULFRBD'),
('...............................RRR..LLR..LLL.....................................RRR..LRR..LLL........................................................', 'ULFRBD'),
('...............................RRR..LLR..LLL.....................................RRR..RRL..LLL........................................................', 'ULFRBD'),
('...............................RRR..LLR..LRL.....................................LLL..LRR..RLR........................................................', 'ULFRBD'),
('...............................RRR..LLR..LRL.....................................LLL..RRL..RLR........................................................', 'ULFRBD'),
('...............................RRR..LLR..LRL.....................................RLR..LRR..LLL........................................................', 'ULFRBD'),
('...............................RRR..LLR..LRL.....................................RLR..RRL..LLL........................................................', 'ULFRBD'),
('...............................RRR..LLR..RLR.....................................LLL..LRR..LRL........................................................', 'ULFRBD'),
('...............................RRR..LLR..RLR.....................................LLL..RRL..LRL........................................................', 'ULFRBD'),
('...............................RRR..LLR..RLR.....................................LRL..LRR..LLL........................................................', 'ULFRBD'),
('...............................RRR..LLR..RLR.....................................LRL..RRL..LLL........................................................', 'ULFRBD'),
('...............................RRR..LLR..RRR.....................................LLL..LRR..LLL........................................................', 'ULFRBD'),
('...............................RRR..LLR..RRR.....................................LLL..RRL..LLL........................................................', 'ULFRBD'),
('...............................RRR..RLL..LLL.....................................LLL..LRR..RRR........................................................', 'ULFRBD'),
('...............................RRR..RLL..LLL.....................................LLL..RRL..RRR........................................................', 'ULFRBD'),
('...............................RRR..RLL..LLL.....................................LRL..LRR..RLR........................................................', 'ULFRBD'),
('...............................RRR..RLL..LLL.....................................LRL..RRL..RLR........................................................', 'ULFRBD'),
('...............................RRR..RLL..LLL.....................................RLR..LRR..LRL........................................................', 'ULFRBD'),
('...............................RRR..RLL..LLL.....................................RLR..RRL..LRL........................................................', 'ULFRBD'),
('...............................RRR..RLL..LLL.....................................RRR..LRR..LLL........................................................', 'ULFRBD'),
('...............................RRR..RLL..LLL.....................................RRR..RRL..LLL........................................................', 'ULFRBD'),
('...............................RRR..RLL..LRL.....................................LLL..LRR..RLR........................................................', 'ULFRBD'),
('...............................RRR..RLL..LRL.....................................LLL..RRL..RLR........................................................', 'ULFRBD'),
('...............................RRR..RLL..LRL.....................................RLR..LRR..LLL........................................................', 'ULFRBD'),
('...............................RRR..RLL..LRL.....................................RLR..RRL..LLL........................................................', 'ULFRBD'),
('...............................RRR..RLL..RLR.....................................LLL..LRR..LRL........................................................', 'ULFRBD'),
('...............................RRR..RLL..RLR.....................................LLL..RRL..LRL........................................................', 'ULFRBD'),
('...............................RRR..RLL..RLR.....................................LRL..LRR..LLL........................................................', 'ULFRBD'),
('...............................RRR..RLL..RLR.....................................LRL..RRL..LLL........................................................', 'ULFRBD'),
('...............................RRR..RLL..RRR.....................................LLL..LRR..LLL........................................................', 'ULFRBD'),
('...............................RRR..RLL..RRR.....................................LLL..RRL..LLL........................................................', 'ULFRBD'),
('...............................RRR..RLR..LLL.....................................LLL..LRL..RRR........................................................', 'ULFRBD'),
('...............................RRR..RLR..LLL.....................................LRL..LRL..RLR........................................................', 'ULFRBD'),
('...............................RRR..RLR..LLL.....................................RLR..LRL..LRL........................................................', 'ULFRBD'),
('...............................RRR..RLR..LLL.....................................RRR..LRL..LLL........................................................', 'ULFRBD'),
('...............................RRR..RLR..LRL.....................................LLL..LRL..RLR........................................................', 'ULFRBD'),
('...............................RRR..RLR..LRL.....................................RLR..LRL..LLL........................................................', 'ULFRBD'),
('...............................RRR..RLR..RLR.....................................LLL..LRL..LRL........................................................', 'ULFRBD'),
('...............................RRR..RLR..RLR.....................................LRL..LRL..LLL........................................................', 'ULFRBD'),
('...............................RRR..RLR..RRR.....................................LLL..LRL..LLL........................................................', 'ULFRBD'),
),
)
# fmt: on
class Build555EdgeOrientOuterOrbit(BFS):
def __init__(self):
BFS.__init__(
self,
"5x5x5-EO-outer-orbit",
("Uw", "Uw'", "Dw", "Dw'", "Fw", "Fw'", "Bw", "Bw'", "Lw", "Lw'", "Rw", "Rw'"),
"5x5x5",
"lookup-table-5x5x5-step902-EO-outer-orbit.txt",
False, # store_as_hex
# starting cubes
(
(
"""
. U . D .
D . . . U
. . . . .
U . . . D
. D . U .
. D . U . . D . U . . D . U . . D . U .
D . . . U U . . . D D . . . U U . . . D
. . . . . . . . . . . . . . . . . . . .
U . . . D D . . . U U . . . D D . . . U
. U . D . . U . D . . U . D . . U . D .
. U . D .
D . . . U
. . . . .
U . . . D
. D . U .""",
"ascii",
),
),
)
class Build555EdgeOrientInnerOrbit(BFS):
def __init__(self):
BFS.__init__(
self,
"5x5x5-EO-inner-orbit",
("Uw", "Uw'", "Dw", "Dw'", "Fw", "Fw'", "Bw", "Bw'", "Lw", "Lw'", "Rw", "Rw'"),
"5x5x5",
"lookup-table-5x5x5-step903-EO-inner-orbit.txt",
False, # store_as_hex
# starting cubes
(
(
"""
. . U . .
. . . . .
U . . . U
. . . . .
. . U . .
. . U . . . . U . . . . U . . . . U . .
. . . . . . . . . . . . . . . . . . . .
U . . . U U . . . U U . . . U U . . . U
. . . . . . . . . . . . . . . . . . . .
. . U . . . . U . . . . U . . . . U . .
. . U . .
. . . . .
U . . . U
. . . . .
. . U . .""",
"ascii",
),
),
)
# =======
# phase 4
# =======
class StartingStatesBuild555Phase4(BFS):
def __init__(self):
BFS.__init__(
self,
"5x5x5-phase4",
# fmt: off
(
"Uw", "Uw'",
"Dw", "Dw'",
"Fw", "Fw'",
"Bw", "Bw'",
"Lw", "Lw'",
"Rw", "Rw'",
"L", "L'",
"R", "R'",
"U", "U'",
"D", "D'",
),
# fmt: on
"5x5x5",
"starting-states-lookup-table-5x5x5-step40-phase4.txt",
False, # store_as_hex
# starting cubes
(
(
"""
. x x x .
x . . . x
x . . . x
x . . . x
. x x x .
. x x x . . x x x . . x x x . . x x x .
L . . . L L . . . L L . . . L L . . . L
L . . . L L . . . L L . . . L L . . . L
L . . . L L . . . L L . . . L L . . . L
. x x x . . x x x . . x x x . . x x x .
. x x x .
x . . . x
x . . . x
x . . . x
. x x x .""",
"ascii",
),
),
)
class Build555Phase4(BFS):
"""
Move one group of 4-edges out of the z-plane
"""
def __init__(self):
# rubiks cube libraries
from rubikscubelookuptables.builder555ss import starting_states_phase4
BFS.__init__(
self,
"5x5x5-phase4",
("Uw", "Uw'", "Dw", "Dw'", "Fw", "Fw'", "Bw", "Bw'", "Lw", "Lw'", "Rw", "Rw'", "L", "L'", "R", "R'"),
"5x5x5",
"lookup-table-5x5x5-step40-phase4.txt",
True, # store_as_hex
starting_states_phase4,
)
# =======
# phase 5
# =======
class StartingStatesBuild555Phase5Centers(BFS):
def __init__(self):
BFS.__init__(
self,
"5x5x5-phase5-centers",
# fmt: off
(
"Uw", "Uw'", "Uw2",
"Dw", "Dw'", "Dw2",
"Fw", "Fw'",
"Bw", "Bw'",
"Lw", "Lw'",
"Rw", "Rw'",
"L", "L'",
"R", "R'",
"U", "U'",
"D", "D'",
"F", "F'",
"B", "B'",
),
# fmt: on
"5x5x5",
"starting-states-lookup-table-5x5x5-step51-phase5-centers.txt",
False, # store_as_hex
# starting cubes
(
(
"""
. . . . .
. . . . .
. . . . .
. . . . .
. . . . .
. . . . . . . . . . . . . . . . . . . .
. L L L . . F F F . . R R R . . B B B .
. L L L . . F F F . . R R R . . B B B .
. L L L . . F F F . . R R R . . B B B .
. . . . . . . . . . . . . . . . . . . .
. . . . .
. . . . .
. . . . .
. . . . .
. . . . .""",
"ascii",
),
),
)
class Build555Phase5Centers(BFS):
"""
432 * 4900 = 2,116,800 states
"""
def __init__(self):
# fmt: off
BFS.__init__(
self,
"5x5x5-phase5-centers",
(
"Uw", "Uw'",
"Dw", "Dw'",
"Fw", "Fw'",
"Bw", "Bw'",
"Lw", "Lw'",
"Rw", "Rw'",
"L", "L'",
"R", "R'",
"U", "U'",
"D", "D'",
),
"5x5x5",
"lookup-table-5x5x5-step51-phase5-centers.txt",
False, # store_as_hex
# starting cubes
(
("...............................LLL..LLL..LLL............BFB..BFB..BFB............RRR..RRR..RRR............FBF..FBF..FBF...............................", "ULFRBD",),
("...............................LLL..LLL..LLL............BFF..BFF..BFF............RRR..RRR..RRR............BBF..BBF..BBF...............................", "ULFRBD",),
("...............................LLL..LLL..LLL............BFF..BFF..BFF............RRR..RRR..RRR............FBB..FBB..FBB...............................", "ULFRBD",),
("...............................LLL..LLL..LLL............FFB..FFB..FFB............RRR..RRR..RRR............BBF..BBF..BBF...............................", "ULFRBD",),
("...............................LLL..LLL..LLL............FFB..FFB..FFB............RRR..RRR..RRR............FBB..FBB..FBB...............................", "ULFRBD",),
("...............................LLL..LLL..LLL............FFF..FFF..FFF............RRR..RRR..RRR............BBB..BBB..BBB...............................", "ULFRBD",),
("...............................LLR..LLR..LLR............BFB..BFB..BFB............LRR..LRR..LRR............FBF..FBF..FBF...............................", "ULFRBD",),
("...............................LLR..LLR..LLR............BFB..BFB..BFB............RRL..RRL..RRL............FBF..FBF..FBF...............................", "ULFRBD",),
("...............................LLR..LLR..LLR............BFF..BFF..BFF............LRR..LRR..LRR............BBF..BBF..BBF...............................", "ULFRBD",),
("...............................LLR..LLR..LLR............BFF..BFF..BFF............LRR..LRR..LRR............FBB..FBB..FBB...............................", "ULFRBD",),
("...............................LLR..LLR..LLR............BFF..BFF..BFF............RRL..RRL..RRL............BBF..BBF..BBF...............................", "ULFRBD",),
("...............................LLR..LLR..LLR............BFF..BFF..BFF............RRL..RRL..RRL............FBB..FBB..FBB...............................", "ULFRBD",),
("...............................LLR..LLR..LLR............FFB..FFB..FFB............LRR..LRR..LRR............BBF..BBF..BBF...............................", "ULFRBD",),
("...............................LLR..LLR..LLR............FFB..FFB..FFB............LRR..LRR..LRR............FBB..FBB..FBB...............................", "ULFRBD",),
("...............................LLR..LLR..LLR............FFB..FFB..FFB............RRL..RRL..RRL............BBF..BBF..BBF...............................", "ULFRBD",),
("...............................LLR..LLR..LLR............FFB..FFB..FFB............RRL..RRL..RRL............FBB..FBB..FBB...............................", "ULFRBD",),
("...............................LLR..LLR..LLR............FFF..FFF..FFF............LRR..LRR..LRR............BBB..BBB..BBB...............................", "ULFRBD",),
("...............................LLR..LLR..LLR............FFF..FFF..FFF............RRL..RRL..RRL............BBB..BBB..BBB...............................", "ULFRBD",),
("...............................RLL..RLL..RLL............BFB..BFB..BFB............LRR..LRR..LRR............FBF..FBF..FBF...............................", "ULFRBD",),
("...............................RLL..RLL..RLL............BFB..BFB..BFB............RRL..RRL..RRL............FBF..FBF..FBF...............................", "ULFRBD",),
("...............................RLL..RLL..RLL............BFF..BFF..BFF............LRR..LRR..LRR............BBF..BBF..BBF...............................", "ULFRBD",),
("...............................RLL..RLL..RLL............BFF..BFF..BFF............LRR..LRR..LRR............FBB..FBB..FBB...............................", "ULFRBD",),
("...............................RLL..RLL..RLL............BFF..BFF..BFF............RRL..RRL..RRL............BBF..BBF..BBF...............................", "ULFRBD",),
("...............................RLL..RLL..RLL............BFF..BFF..BFF............RRL..RRL..RRL............FBB..FBB..FBB...............................", "ULFRBD",),
("...............................RLL..RLL..RLL............FFB..FFB..FFB............LRR..LRR..LRR............BBF..BBF..BBF...............................", "ULFRBD",),
("...............................RLL..RLL..RLL............FFB..FFB..FFB............LRR..LRR..LRR............FBB..FBB..FBB...............................", "ULFRBD",),
("...............................RLL..RLL..RLL............FFB..FFB..FFB............RRL..RRL..RRL............BBF..BBF..BBF...............................", "ULFRBD",),
("...............................RLL..RLL..RLL............FFB..FFB..FFB............RRL..RRL..RRL............FBB..FBB..FBB...............................", "ULFRBD",),
("...............................RLL..RLL..RLL............FFF..FFF..FFF............LRR..LRR..LRR............BBB..BBB..BBB...............................", "ULFRBD",),
("...............................RLL..RLL..RLL............FFF..FFF..FFF............RRL..RRL..RRL............BBB..BBB..BBB...............................", "ULFRBD",),
("...............................RLR..RLR..RLR............BFB..BFB..BFB............LRL..LRL..LRL............FBF..FBF..FBF...............................", "ULFRBD",),
("...............................RLR..RLR..RLR............BFF..BFF..BFF............LRL..LRL..LRL............BBF..BBF..BBF...............................", "ULFRBD",),
("...............................RLR..RLR..RLR............BFF..BFF..BFF............LRL..LRL..LRL............FBB..FBB..FBB...............................", "ULFRBD",),
("...............................RLR..RLR..RLR............FFB..FFB..FFB............LRL..LRL..LRL............BBF..BBF..BBF...............................", "ULFRBD",),
("...............................RLR..RLR..RLR............FFB..FFB..FFB............LRL..LRL..LRL............FBB..FBB..FBB...............................", "ULFRBD",),
("...............................RLR..RLR..RLR............FFF..FFF..FFF............LRL..LRL..LRL............BBB..BBB..BBB...............................", "ULFRBD",),
),
)
# fmt: on
class Build555Phase5Edges(BFS):
"""
(8*7*6*5)^2 = 2822400 is how many states the wings can be in
8!/(4!*4!) = 70 is how many states the midges can be in
2,822,400 * 70 = 197,568,000
"""
def __init__(self):
BFS.__init__(
self,
"5x5x5-phase5-edges",
# fmt: off
(
"Uw", "Uw'",
"Dw", "Dw'",
"Fw", "Fw'",
"Bw", "Bw'",
"Lw", "Lw'",
"Rw", "Rw'",
"L", "L'",
"R", "R'",
"U", "U'",
"D", "D'",
),
# fmt: on
"5x5x5",
"lookup-table-5x5x5-step52-phase5-edges.txt",
False, # store_as_hex
# starting cubes
(
(
"""
. - - - .
- . . . -
- . . . -
- . . . -
. - - - .
. - - - . . - - - . . - - - . . - - - .
L . . . L F . . . F R . . . R B . . . B
L . . . L F . . . F R . . . R B . . . B
L . . . L F . . . F R . . . R B . . . B
. - - - . . - - - . . - - - . . - - - .
. - - - .
- . . . -
- . . . -
- . . . -
. - - - .""",
"ascii",
),
),
use_edges_pattern=True,
)
class Build555Phase5HighEdgeMidge(BFS):
"""
(8*7*6*5)*70 = 117,600 states
"""
def __init__(self):
BFS.__init__(
self,
"5x5x5-phase5-high-edge-and-midge",
# fmt: off
(
"Uw", "Uw'",
"Dw", "Dw'",
"Fw", "Fw'",
"Bw", "Bw'",
"Lw", "Lw'",
"Rw", "Rw'",
"L", "L'",
"R", "R'",
"U", "U'",
"D", "D'",
),
# fmt: on
"5x5x5",
"lookup-table-5x5x5-step53-phase5-high-edge-and-midge.txt",
False, # store_as_hex
# starting cubes
(
(
"""
. - - - .
- . . . -
- . . . -
- . . . -
. - - - .
. - - - . . - - - . . - - - . . - - - .
- . . . L F . . . - - . . . R B . . . -
L . . . L F . . . F R . . . R B . . . B
L . . . - - . . . F R . . . - - . . . B
. - - - . . - - - . . - - - . . - - - .
. - - - .
- . . . -
- . . . -
- . . . -
. - - - .""",
"ascii",
),
),
use_edges_pattern=True,
)
class Build555Phase5LowEdgeMidge(BFS):
"""
(8*7*6*5)*70 = 117,600 states
"""
def __init__(self):
BFS.__init__(
self,
"5x5x5-phase5-low-edge-and-midge",
# fmt: off
(
"Uw", "Uw'",
"Dw", "Dw'",
"Fw", "Fw'",
"Bw", "Bw'",
"Lw", "Lw'",
"Rw", "Rw'",
"L", "L'",
"R", "R'",
"U", "U'",
"D", "D'",
),
# fmt: on
"5x5x5",
"lookup-table-5x5x5-step54-phase5-low-edge-and-midge.txt",
False, # store_as_hex
# starting cubes
(
(
"""
. - - - .
- . . . -
- . . . -
- . . . -
. - - - .
. - - - . . - - - . . - - - . . - - - .
L . . . - - . . . F R . . . - - . . . B
L . . . L F . . . F R . . . R B . . . B
- . . . L F . . . - - . . . R B . . . -
. - - - . . - - - . . - - - . . - - - .
. - - - .
- . . . -
- . . . -
- . . . -
. - - - .""",
"ascii",
),
),
use_edges_pattern=True,
)
class Build555Phase5FBCentersHighEdgeMidge(BFS):
"""
(8*7*6*5)*70 = 117,600 states
4,900 FB centers
117,600 * 4,900 = 576,240,000
"""
def __init__(self):
BFS.__init__(
self,
"5x5x5-phase5-fb-centers-high-edge-and-midge",
# fmt: off
(
"Uw", "Uw'",
"Dw", "Dw'",
"Fw", "Fw'",
"Bw", "Bw'",
"Lw", "Lw'",
"Rw", "Rw'",
"L", "L'",
"R", "R'",
"U", "U'",
"D", "D'",
),
# fmt: on
"5x5x5",
"lookup-table-5x5x5-step55-phase5-fb-centers-high-edge-and-midge.txt",
False, # store_as_hex
# starting cubes
(
(
"""
. - - - .
- . . . -
- . . . -
- . . . -
. - - - .
. - - - . . - - - . . - - - . . - - - .
- . . . L F B F B - - . . . R B F B F -
L . . . L F B F B F R . . . R B F B F B
L . . . - - B F B F R . . . - - F B F B
. - - - . . - - - . . - - - . . - - - .
. - - - .
- . . . -
- . . . -
- . . . -
. - - - .""",
"ascii",
),
(
"""
. - - - .
- . . . -
- . . . -
- . . . -
. - - - .
. - - - . . - - - . . - - - . . - - - .
- . . . L F B F F - - . . . R B B B F -
L . . . L F B F F F R . . . R B B B F B
L . . . - - B F F F R . . . - - B B F B
. - - - . . - - - . . - - - . . - - - .
. - - - .
- . . . -
- . . . -
- . . . -
. - - - .""",
"ascii",
),
(
"""
. - - - .
- . . . -
- . . . -
- . . . -
. - - - .
. - - - . . - - - . . - - - . . - - - .
- . . . L F B F F - - . . . R B F B B -
L . . . L F B F F F R . . . R B F B B B
L . . . - - B F F F R . . . - - F B B B
. - - - . . - - - . . - - - . . - - - .
. - - - .
- . . . -
- . . . -
- . . . -
. - - - .""",
"ascii",
),
(
"""
. - - - .
- . . . -
- . . . -
- . . . -
. - - - .
. - - - . . - - - . . - - - . . - - - .
- . . . L F F F B - - . . . R B B B F -
L . . . L F F F B F R . . . R B B B F B
L . . . - - F F B F R . . . - - B B F B
. - - - . . - - - . . - - - . . - - - .
. - - - .
- . . . -
- . . . -
- . . . -
. - - - .""",
"ascii",
),
(
"""
. - - - .
- . . . -
- . . . -
- . . . -
. - - - .
. - - - . . - - - . . - - - . . - - - .
- . . . L F F F B - - . . . R B F B B -
L . . . L F F F B F R . . . R B F B B B
L . . . - - F F B F R . . . - - F B B B
. - - - . . - - - . . - - - . . - - - .
. - - - .
- . . . -
- . . . -
- . . . -
. - - - .""",
"ascii",
),
(
"""
. - - - .
- . . . -
- . . . -
- . . . -
. - - - .
. - - - . . - - - . . - - - . . - - - .
- . . . L F F F F - - . . . R B B B B -
L . . . L F F F F F R . . . R B B B B B
L . . . - - F F F F R . . . - - B B B B
. - - - . . - - - . . - - - . . - - - .
. - - - .
- . . . -
- . . . -
- . . . -
. - - - .""",
"ascii",
),
),
use_edges_pattern=True,
)
class Build555Phase5FBCentersLowEdgeMidge(BFS):
"""
(8*7*6*5)*70 = 117,600 states
4,900 FB centers
117,600 * 4,900 = 576,240,000
"""
def __init__(self):
BFS.__init__(
self,
"5x5x5-phase5-fb-centers-low-edge-and-midge",
# fmt: off
(
"Uw", "Uw'",
"Dw", "Dw'",
"Fw", "Fw'",
"Bw", "Bw'",
"Lw", "Lw'",
"Rw", "Rw'",
"L", "L'",
"R", "R'",
"U", "U'",
"D", "D'",
),
# fmt: on
"5x5x5",
"lookup-table-5x5x5-step57-phase5-fb-centers-low-edge-and-midge.txt",
False, # store_as_hex
# starting cubes
(
(
"""
. - - - .
- . . . -
- . . . -
- . . . -
. - - - .
. - - - . . - - - . . - - - . . - - - .
L . . . - - B F B F R . . . - - F B F B
L . . . L F B F B F R . . . R B F B F B
- . . . L F B F B - - . . . R B F B F -
. - - - . . - - - . . - - - . . - - - .
. - - - .
- . . . -
- . . . -
- . . . -
. - - - .""",
"ascii",
),
(
"""
. - - - .
- . . . -
- . . . -
- . . . -
. - - - .
. - - - . . - - - . . - - - . . - - - .
L . . . - - B F F F R . . . - - B B F B
L . . . L F B F F F R . . . R B B B F B
- . . . L F B F F - - . . . R B B B F -
. - - - . . - - - . . - - - . . - - - .
. - - - .
- . . . -
- . . . -
- . . . -
. - - - .""",
"ascii",
),
(
"""
. - - - .
- . . . -
- . . . -
- . . . -
. - - - .
. - - - . . - - - . . - - - . . - - - .
L . . . - - B F F F R . . . - - F B B B
L . . . L F B F F F R . . . R B F B B B
- . . . L F B F F - - . . . R B F B B -
. - - - . . - - - . . - - - . . - - - .
. - - - .
- . . . -
- . . . -
- . . . -
. - - - .""",
"ascii",
),
(
"""
. - - - .
- . . . -
- . . . -
- . . . -
. - - - .
. - - - . . - - - . . - - - . . - - - .
L . . . - - F F B F R . . . - - B B F B
L . . . L F F F B F R . . . R B B B F B
- . . . L F F F B - - . . . R B B B F -
. - - - . . - - - . . - - - . . - - - .
. - - - .
- . . . -
- . . . -
- . . . -
. - - - .""",
"ascii",
),
(
"""
. - - - .
- . . . -
- . . . -
- . . . -
. - - - .
. - - - . . - - - . . - - - . . - - - .
L . . . - - F F B F R . . . - - F B B B
L . . . L F F F B F R . . . R B F B B B
- . . . L F F F B - - . . . R B F B B -
. - - - . . - - - . . - - - . . - - - .
. - - - .
- . . . -
- . . . -
- . . . -
. - - - .""",
"ascii",
),
(
"""
. - - - .
- . . . -
- . . . -
- . . . -
. - - - .
. - - - . . - - - . . - - - . . - - - .
L . . . - - F F F F R . . . - - B B B B
L . . . L F F F F F R . . . R B B B B B
- . . . L F F F F - - . . . R B B B B -
. - - - . . - - - . . - - - . . - - - .
. - - - .
- . . . -
- . . . -
- . . . -
. - - - .""",
"ascii",
),
),
use_edges_pattern=True,
)
class Build555Phase5FBCenters(BFS):
"""
4,900 FB centers
"""
def __init__(self):
BFS.__init__(
self,
"5x5x5-phase5-fb-centers",
# fmt: off
(
"Uw", "Uw'",
"Dw", "Dw'",
"Fw", "Fw'",
"Bw", "Bw'",
"Lw", "Lw'",
"Rw", "Rw'",
"L", "L'",
"R", "R'",
"U", "U'",
"D", "D'",
),
# fmt: on
"5x5x5",
"lookup-table-5x5x5-step56-phase5-fb-centers.txt",
False, # store_as_hex
# starting cubes
(
(
"""
. . . . .
. . . . .
. . . . .
. . . . .
. . . . .
. . . . . . . . . . . . . . . . . . . .
. . . . . . B F B . . . . . . . F B F .
. . . . . . B F B . . . . . . . F B F .
. . . . . . B F B . . . . . . . F B F .
. . . . . . . . . . . . . . . . . . . .
. . . . .
. . . . .
. . . . .
. . . . .
. . . . .""",
"ascii",
),
(
"""
. . . . .
. . . . .
. . . . .
. . . . .
. . . . .
. . . . . . . . . . . . . . . . . . . .
. . . . . . B F F . . . . . . . B B F .
. . . . . . B F F . . . . . . . B B F .
. . . . . . B F F . . . . . . . B B F .
. . . . . . . . . . . . . . . . . . . .
. . . . .
. . . . .
. . . . .
. . . . .
. . . . .""",
"ascii",
),
(
"""
. . . . .
. . . . .
. . . . .
. . . . .
. . . . .
. . . . . . . . . . . . . . . . . . . .
. . . . . . B F F . . . . . . . F B B .
. . . . . . B F F . . . . . . . F B B .
. . . . . . B F F . . . . . . . F B B .
. . . . . . . . . . . . . . . . . . . .
. . . . .
. . . . .
. . . . .
. . . . .
. . . . .""",
"ascii",
),
(
"""
. . . . .
. . . . .
. . . . .
. . . . .
. . . . .
. . . . . . . . . . . . . . . . . . . .
. . . . . . F F B . . . . . . . B B F .
. . . . . . F F B . . . . . . . B B F .
. . . . . . F F B . . . . . . . B B F .
. . . . . . . . . . . . . . . . . . . .
. . . . .
. . . . .
. . . . .
. . . . .
. . . . .""",
"ascii",
),
(
"""
. . . . .
. . . . .
. . . . .
. . . . .
. . . . .
. . . . . . . . . . . . . . . . . . . .
. . . . . . F F B . . . . . . . F B B .
. . . . . . F F B . . . . . . . F B B .
. . . . . . F F B . . . . . . . F B B .
. . . . . . . . . . . . . . . . . . . .
. . . . .
. . . . .
. . . . .
. . . . .
. . . . .""",
"ascii",
),
(
"""
. . . . .
. . . . .
. . . . .
. . . . .
. . . . .
. . . . . . . . . . . . . . . . . . . .
. . . . . . F F F . . . . . . . B B B .
. . . . . . F F F . . . . . . . B B B .
. . . . . . F F F . . . . . . . B B B .
. . . . . . . . . . . . . . . . . . . .
. . . . .
. . . . .
. . . . .
. . . . .
. . . . .""",
"ascii",
),
),
)
# =======
# phase 6
# =======
# - pair last 8-edges in y-plane and z-plane
# - solve center (LR and FB will be vertical bars)
class Build555PairLastEightEdgesEdgesOnly(BFS):
"""
Should be (8!^2)/2 812,851,200
"""
def __init__(self):
BFS.__init__(
self,
"5x5x5-pair-last-eight-edges-edges-only",
# illegal moves
# fmt: off
(
"Fw", "Fw'",
"Bw", "Bw'",
"Lw", "Lw'",
"Rw", "Rw'",
"Uw", "Uw'", "Uw2",
"Dw", "Dw'", "Dw2",
"L", "L'",
"R", "R'",
"F", "F'",
"B", "B'",
),
# fmt: on
"5x5x5",
"lookup-table-5x5x5-step501-pair-last-eight-edges-edges-only.txt",
False, # store_as_hex
# starting cubes
(
(
"""
. U U U .
U . . . U
U . . . U
U . . . U
. U U U .
. L L L . . F F F . . R R R . . B B B .
- . . . - - . . . - - . . . - - . . . -
- . . . - - . . . - - . . . - - . . . -
- . . . - - . . . - - . . . - - . . . -
. L L L . . F F F . . R R R . . B B B .
. D D D .
D . . . D
D . . . D
D . . . D
. D D D .""",
"ascii",
),
),
use_edges_pattern=True,
)
class Build555PairLastEightEdgesCentersOnly(BFS):
"""
Should be 6 x 6 x 4900 = 176,400
"""
def __init__(self):
BFS.__init__(
self,
"5x5x5-pair-last-eight-edges-centers-only",
# illegal moves
# fmt: off
(
"Fw", "Fw'",
"Bw", "Bw'",
"Lw", "Lw'",
"Rw", "Rw'",
"Uw", "Uw'", "Uw2",
"Dw", "Dw'", "Dw2",
"L", "L'",
"R", "R'",
"F", "F'",
"B", "B'",
),
# fmt: on
"5x5x5",
"lookup-table-5x5x5-step502-pair-last-eight-edges-centers-only.txt",
False, # store_as_hex
# starting cubes
(
(
"""
. . . . .
. U U U .
. U U U .
. U U U .
. . . . .
. . . . . . . . . . . . . . . . . . . .
. L L L . . F F F . . R R R . . B B B .
. L L L . . F F F . . R R R . . B B B .
. L L L . . F F F . . R R R . . B B B .
. . . . . . . . . . . . . . . . . . . .
. . . . .
. D D D .
. D D D .
. D D D .
. . . . .""",
"ascii",
),
),
)
class Build555PairLastEightEdges(BFS):
def __init__(self):
BFS.__init__(
self,
"5x5x5-pair-last-eight-edges",
# illegal moves
# fmt: off
(
"Fw", "Fw'",
"Bw", "Bw'",
"Lw", "Lw'",
"Rw", "Rw'",
"Uw", "Uw'", "Uw2",
"Dw", "Dw'", "Dw2",
"L", "L'",
"R", "R'",
"F", "F'",
"B", "B'",
),
# fmt: on
"5x5x5",
"lookup-table-5x5x5-step500-pair-last-eight-edges.txt",
False, # store_as_hex
# starting cubes
(
(
"""
. U U U .
U U U U U
U U U U U
U U U U U
. U U U .
. L L L . . F F F . . R R R . . B B B .
- L L L - - F F F - - R R R - - B B B -
- L L L - - F F F - - R R R - - B B B -
- L L L - - F F F - - R R R - - B B B -
. L L L . . F F F . . R R R . . B B B .
. D D D .
D D D D D
D D D D D
D D D D D
. D D D .""",
"ascii",
),
),
use_edges_pattern=True,
)
class Build555Phase6Centers(BFS):
def __init__(self):
BFS.__init__(
self,
"5x5x5-phase6-centers",
# fmt: off
(
"Uw", "Uw'", "Uw2",
"Dw", "Dw'", "Dw2",
"Fw", "Fw'",
"Bw", "Bw'",
"Lw", "Lw'",
"Rw", "Rw'",
"L", "L'",
"R", "R'",
"F", "F'",
"B", "B'",
),
# fmt: on
"5x5x5",
"lookup-table-5x5x5-step61-phase6-centers.txt",
False, # store_as_hex
# starting cubes
(
(
"""
. . . . .
. U U U .
. U U U .
. U U U .
. . . . .
. . . . . . . . . . . . . . . . . . . .
. L L L . . F F F . . R R R . . B B B .
. L L L . . F F F . . R R R . . B B B .
. L L L . . F F F . . R R R . . B B B .
. . . . . . . . . . . . . . . . . . . .
. . . . .
. D D D .
. D D D .
. D D D .
. . . . .""",
"ascii",
),
),
)
class Build555Phase6HighEdgeMidge(BFS):
def __init__(self):
BFS.__init__(
self,
"5x5x5-phase6-high-edge-midge",
# fmt: off
(
"Uw", "Uw'", "Uw2",
"Dw", "Dw'", "Dw2",
"Fw", "Fw'",
"Bw", "Bw'",
"Lw", "Lw'",
"Rw", "Rw'",
"L", "L'",
"R", "R'",
"F", "F'",
"B", "B'",
),
# fmt: on
"5x5x5",
"lookup-table-5x5x5-step62-phase6-high-edge-midge.txt",
False, # store_as_hex
# starting cubes
(
(
"""
. U U - .
- . . . U
U . . . U
U . . . -
. - U U .
. - L L . . - F F . . - R R . . - B B .
- . . . - - . . . - - . . . - - . . . -
- . . . - - . . . - - . . . - - . . . -
- . . . - - . . . - - . . . - - . . . -
. L L - . . F F - . . R R - . . B B - .
. D D - .
- . . . D
D . . . D
D . . . -
. - D D .""",
"ascii",
),
),
use_edges_pattern=True,
)
class Build555Phase6LowEdgeMidge(BFS):
def __init__(self):
BFS.__init__(
self,
"5x5x5-phase6-low-edge-midge",
# fmt: off
(
"Uw", "Uw'", "Uw2",
"Dw", "Dw'", "Dw2",
"Fw", "Fw'",
"Bw", "Bw'",
"Lw", "Lw'",
"Rw", "Rw'",
"L", "L'",
"R", "R'",
"F", "F'",
"B", "B'",
),
# fmt: on
"5x5x5",
"lookup-table-5x5x5-step63-phase6-low-edge-midge.txt",
False, # store_as_hex
# starting cubes
(
(
"""
. - U U .
U . . . -
U . . . U
- . . . U
. U U - .
. L L - . . F F - . . R R - . . B B - .
- . . . - - . . . - - . . . - - . . . -
- . . . - - . . . - - . . . - - . . . -
- . . . - - . . . - - . . . - - . . . -
. - L L . . - F F . . - R R . . - B B .
. - D D .
D . . . -
D . . . D
- . . . D
. D D - .""",
"ascii",
),
),
use_edges_pattern=True,
)
# ================
# ultimate 5x5x5
# ultimate centers
# ================
class Build555Ultimate(BFS):
def __init__(self):
BFS.__init__(
self,
"5x5x5-ultimate",
(),
"5x5x5",
"lookup-table-5x5x5-step00-ultimate.txt",
False, # store_as_hex
# starting cubes
(
(
"""
U U U U U
U U U U U
U U U U U
U U U U U
U U U U U
L L L L L F F F F F R R R R R B B B B B
L L L L L F F F F F R R R R R B B B B B
L L L L L F F F F F R R R R R B B B B B
L L L L L F F F F F R R R R R B B B B B
L L L L L F F F F F R R R R R B B B B B
D D D D D
D D D D D
D D D D D
D D D D D
D D D D D""",
"ascii",
),
),
use_c=True,
)
class Build555UltimateCenters(BFS):
def __init__(self):
BFS.__init__(
self,
"5x5x5-ultimate",
(),
"5x5x5",
"lookup-table-5x5x5-step00-ultimate-centers.txt",
False, # store_as_hex
# starting cubes
(
(
"""
. . . . .
. U U U .
. U U U .
. U U U .
. . . . .
. . . . . . . . . . . . . . . . . . . .
. L L L . . F F F . . R R R . . B B B .
. L L L . . F F F . . R R R . . B B B .
. L L L . . F F F . . R R R . . B B B .
. . . . . . . . . . . . . . . . . . . .
. . . . .
. D D D .
. D D D .
. D D D .
. . . . .""",
"ascii",
),
),
# fmt: off
legal_moves=(
"U", "U'", "U2", "Uw", "Uw'", "Uw2",
"L", "L'", "L2", "Lw", "Lw'", "Lw2",
"F", "F'", "F2", "Fw", "Fw'", "Fw2",
"R", "R'", "R2", "Rw", "Rw'", "Rw2",
"B", "B'", "B2", "Bw", "Bw'", "Bw2",
"D", "D'", "D2", "Dw", "Dw'", "Dw2",
),
# fmt: on
use_c=True,
)
# ====================
# Centers Solve Staged
# ====================
class Build555UDCenterSolve(BFS):
def __init__(self):
BFS.__init__(
self,
"5x5x5-UD-centers-solve",
("Fw", "Fw'", "Bw", "Bw'", "Lw", "Lw'", "Rw", "Rw'", "Uw", "Uw'", "Dw", "Dw'"),
"5x5x5",
"lookup-table-5x5x5-step34-UD-centers-solve.txt",
False, # store_as_hex
# starting cubes
(
(
"""
. . . . .
. U U U .
. U U U .
. U U U .
. . . . .
. . . . . . . . . . . . . . . . . . . .
. . L . . . . . . . . . R . . . . . . .
. L . L . . . . . . . R . R . . . . . .
. . L . . . . . . . . . R . . . . . . .
. . . . . . . . . . . . . . . . . . . .
. . . . .
. D D D .
. D D D .
. D D D .
. . . . .""",
"ascii",
),
),
)
class Build555LRCenterSolve(BFS):
def __init__(self):
BFS.__init__(
self,
"5x5x5-LR-centers-solve",
("Fw", "Fw'", "Bw", "Bw'", "Lw", "Lw'", "Rw", "Rw'", "Uw", "Uw'", "Dw", "Dw'"),
"5x5x5",
"lookup-table-5x5x5-step35-LR-centers-solve.txt",
False, # store_as_hex
# starting cubes
(
(
"""
. . . . .
. . . . .
. . . . .
. . . . .
. . . . .
. . . . . . . . . . . . . . . . . . . .
. L L L . . F . F . . R R R . . B . B .
. L L L . . . . . . . R R R . . . . . .
. L L L . . F . F . . R R R . . B . B .
. . . . . . . . . . . . . . . . . . . .
. . . . .
. . . . .
. . . . .
. . . . .
. . . . .""",
"ascii",
),
),
)
class Build555FBCenterSolve(BFS):
def __init__(self):
BFS.__init__(
self,
"5x5x5-FB-centers-solve",
("Fw", "Fw'", "Bw", "Bw'", "Lw", "Lw'", "Rw", "Rw'", "Uw", "Uw'", "Dw", "Dw'"),
"5x5x5",
"lookup-table-5x5x5-step36-FB-centers-solve.txt",
False, # store_as_hex
# starting cubes
(
(
"""
. . . . .
. . U . .
. U . U .
. . U . .
. . . . .
. . . . . . . . . . . . . . . . . . . .
. . . . . . F F F . . . . . . . B B B .
. . . . . . F F F . . . . . . . B B B .
. . . . . . F F F . . . . . . . B B B .
. . . . . . . . . . . . . . . . . . . .
. . . . .
. . D . .
. D . D .
. . D . .
. . . . .""",
"ascii",
),
),
)
# only used when a larger cube has been reduced to a 5x5x5
class Build555ULFRBDTCenterSolve(BFS):
def __init__(self):
BFS.__init__(
self,
"5x5x5-t-centers-solve",
("Fw", "Fw'", "Bw", "Bw'", "Lw", "Lw'", "Rw", "Rw'", "Uw", "Uw'", "Dw", "Dw'"),
"5x5x5",
"lookup-table-5x5x5-step33-ULFRBD-t-centers-solve.txt",
False, # store_as_hex
# starting cubes
(
(
"""
. . . . .
. . U . .
. U . U .
. . U . .
. . . . .
. . . . . . . . . . . . . . . . . . . .
. . L . . . . F . . . . R . . . . B . .
. L . L . . F . F . . R . R . . B . B .
. . L . . . . F . . . . R . . . . B . .
. . . . . . . . . . . . . . . . . . . .
. . . . .
. . D . .
. D . D .
. . D . .
. . . . .""",
"ascii",
),
),
)
class Build555ULFRBDTCenterDaisySolve(BFS):
def __init__(self):
BFS.__init__(
self,
"5x5x5-t-centers-solve",
("Fw", "Fw'", "Bw", "Bw'", "Lw", "Lw'", "Rw", "Rw'", "Uw", "Uw'", "Dw", "Dw'"),
"5x5x5",
"lookup-table-5x5x5-step33-ULFRBD-t-centers-daisy-solve.txt",
False, # store_as_hex
# starting cubes
(
# UD normal, LR normal, FB normal
(
"""
. . . . .
. . U . .
. U . U .
. . U . .
. . . . .
. . . . . . . . . . . . . . . . . . . .
. . L . . . . F . . . . R . . . . B . .
. L . L . . F . F . . R . R . . B . B .
. . L . . . . F . . . . R . . . . B . .
. . . . . . . . . . . . . . . . . . . .
. . . . .
. . D . .
. D . D .
. . D . .
. . . . .""",
"ascii",
),
# UD normal, LR normal, FB flip
(
"""
. . . . .
. . U . .
. U . U .
. . U . .
. . . . .
. . . . . . . . . . . . . . . . . . . .
. . L . . . . B . . . . R . . . . F . .
. L . L . . B . B . . R . R . . F . F .
. . L . . . . B . . . . R . . . . F . .
. . . . . . . . . . . . . . . . . . . .
. . . . .
. . D . .
. D . D .
. . D . .
. . . . .""",
"ascii",
),
# UD normal, LR flip, FB normal
(
"""
. . . . .
. . U . .
. U . U .
. . U . .
. . . . .
. . . . . . . . . . . . . . . . . . . .
. . R . . . . F . . . . L . . . . B . .
. R . R . . F . F . . L . L . . B . B .
. . R . . . . F . . . . L . . . . B . .
. . . . . . . . . . . . . . . . . . . .
. . . . .
. . D . .
. D . D .
. . D . .
. . . . .""",
"ascii",
),
# UD normal, LR flip, FB flip
(
"""
. . . . .
. . U . .
. U . U .
. . U . .
. . . . .
. . . . . . . . . . . . . . . . . . . .
. . R . . . . B . . . . L . . . . F . .
. R . R . . B . B . . L . L . . F . F .
. . R . . . . B . . . . L . . . . F . .
. . . . . . . . . . . . . . . . . . . .
. . . . .
. . D . .
. D . D .
. . D . .
. . . . .""",
"ascii",
),
# UD flip, LR normal, FB normal
(
"""
. . . . .
. . D . .
. D . D .
. . D . .
. . . . .
. . . . . . . . . . . . . . . . . . . .
. . L . . . . F . . . . R . . . . B . .
. L . L . . F . F . . R . R . . B . B .
. . L . . . . F . . . . R . . . . B . .
. . . . . . . . . . . . . . . . . . . .
. . . . .
. . U . .
. U . U .
. . U . .
. . . . .""",
"ascii",
),
# UD flip, LR normal, FB flip
(
"""
. . . . .
. . D . .
. D . D .
. . D . .
. . . . .
. . . . . . . . . . . . . . . . . . . .
. . L . . . . B . . . . R . . . . F . .
. L . L . . B . B . . R . R . . F . F .
. . L . . . . B . . . . R . . . . F . .
. . . . . . . . . . . . . . . . . . . .
. . . . .
. . U . .
. U . U .
. . U . .
. . . . .""",
"ascii",
),
# UD flip, LR flip, FB normal
(
"""
. . . . .
. . D . .
. D . D .
. . D . .
. . . . .
. . . . . . . . . . . . . . . . . . . .
. . R . . . . F . . . . L . . . . B . .
. R . R . . F . F . . L . L . . B . B .
. . R . . . . F . . . . L . . . . B . .
. . . . . . . . . . . . . . . . . . . .
. . . . .
. . U . .
. U . U .
. . U . .
. . . . .""",
"ascii",
),
# UD flip, LR flip, FB flip
(
"""
. . . . .
. . D . .
. D . D .
. . D . .
. . . . .
. . . . . . . . . . . . . . . . . . . .
. . R . . . . B . . . . L . . . . F . .
. R . R . . B . B . . L . L . . F . F .
. . R . . . . B . . . . L . . . . F . .
. . . . . . . . . . . . . . . . . . . .
. . . . .
. . U . .
. U . U .
. . U . .
. . . . .""",
"ascii",
),
),
)
| 86.196283
| 182
| 0.258253
| 24,503
| 296,860
| 3.112925
| 0.026201
| 0.101946
| 0.067964
| 0.090618
| 0.949093
| 0.941043
| 0.934999
| 0.93184
| 0.924459
| 0.916553
| 0
| 0.006069
| 0.183558
| 296,860
| 3,443
| 183
| 86.221319
| 0.308641
| 0.014751
| 0
| 0.646189
| 0
| 0.2194
| 0.797097
| 0.760205
| 0
| 0
| 0
| 0
| 0
| 1
| 0.016628
| false
| 0
| 0.001386
| 0
| 0.034642
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 1
| 1
| 1
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 10
|
1042dc3f7d4d19d3a2cea16f80eaa6c187381384
| 16,299
|
py
|
Python
|
src/aws_lambda/data_analysis_movie_lens_query.py
|
joshch1630/movie_data_platform
|
247a17b69703076f3b422d1bb811a409c0fa1e10
|
[
"MIT"
] | null | null | null |
src/aws_lambda/data_analysis_movie_lens_query.py
|
joshch1630/movie_data_platform
|
247a17b69703076f3b422d1bb811a409c0fa1e10
|
[
"MIT"
] | null | null | null |
src/aws_lambda/data_analysis_movie_lens_query.py
|
joshch1630/movie_data_platform
|
247a17b69703076f3b422d1bb811a409c0fa1e10
|
[
"MIT"
] | null | null | null |
MOVIE_LENS_DATA_TYPE = "movie_lens_type"
MOVIE_LENS_QUERY_DICT_LIST = []
###########################
########### Year ##########
###########################
# by year
GET_BY_YEAR_MOVIE_LENS_QUERY = """
SELECT year AS year, COUNT(1) AS movie_count, ROUND(AVG(avg_rating), 2) AS avg_rating, SUM(vote_count) AS vote_count
FROM "movie_database_platform"."movie_lens_movies_ratings"
GROUP BY year
ORDER BY year;
"""
BY_YEAR_MOVIE_LENS_DICT = {
"data_title": "movie_lens_by_year",
"data_type": MOVIE_LENS_DATA_TYPE,
"query": GET_BY_YEAR_MOVIE_LENS_QUERY,
"query_execution_id": "",
"is_completed": False,
"result_data": {}
}
MOVIE_LENS_QUERY_DICT_LIST.append(BY_YEAR_MOVIE_LENS_DICT)
# is adult by year
GET_IS_ADULT_BY_YEAR_MOVIE_LENS_QUERY = """
SELECT year AS year, COUNT(1) AS movie_count, ROUND(AVG(avg_rating), 2) AS avg_rating, SUM(vote_count) AS vote_count
FROM "movie_database_platform"."movie_lens_movies_ratings"
WHERE genres_1 = 'Adult' OR genres_2 = 'Adult' OR genres_3 = 'Adult' OR genres_4 = 'Adult' OR genres_5 = 'Adult' OR genres_6 = 'Adult'
GROUP BY year
ORDER BY year;
"""
IS_ADULT_BY_YEAR_MOVIE_LENS_DICT = {
"data_title": "movie_lens_is_adult_by_year",
"data_type": MOVIE_LENS_DATA_TYPE,
"query": GET_IS_ADULT_BY_YEAR_MOVIE_LENS_QUERY,
"query_execution_id": "",
"is_completed": False,
"result_data": {}
}
MOVIE_LENS_QUERY_DICT_LIST.append(IS_ADULT_BY_YEAR_MOVIE_LENS_DICT)
# rating by year
for i in range(0, 10):
GET_RATING_BY_YEAR_MOVIE_LENS_QUERY = """
SELECT year AS year, COUNT(1) AS movie_count, ROUND(AVG(avg_rating), 2) AS avg_rating, SUM(vote_count) AS vote_count
FROM "movie_database_platform"."movie_lens_movies_ratings"
WHERE avg_rating >= {} AND avg_rating < {}
GROUP BY year
ORDER BY year;
"""
RATING_BY_YEAR_MOVIE_LENS_DICT = {
"data_title": "movie_lens_rating_{}_to_{}_by_year".format(i, i+0.5),
"data_type": MOVIE_LENS_DATA_TYPE,
"query": GET_RATING_BY_YEAR_MOVIE_LENS_QUERY.format(i, i+0.5),
"query_execution_id": "",
"is_completed": False,
"result_data": {}
}
MOVIE_LENS_QUERY_DICT_LIST.append(RATING_BY_YEAR_MOVIE_LENS_DICT)
# genres by year
GENRES_LIST = ["Action", "Adventure", "Animation", "Biography", "Comedy", "Crime", "Documentary", "Drama", "Family", "Fantasy",
"Film-Noir", "History", "Horror", "Music", "Musical", "Mystery", "Romance", "Sci-Fi", "Sport", "Thriller", "War", "Western"]
for genres in GENRES_LIST:
GET_GENRES_BY_YEAR_MOVIE_LENS_QUERY = """
SELECT year AS year, COUNT(1) AS movie_count, ROUND(AVG(avg_rating), 2) AS avg_rating, SUM(vote_count) AS vote_count
FROM "movie_database_platform"."movie_lens_movies_ratings"
WHERE genres_1 = '{}' OR genres_2 = '{}' OR genres_3 = '{}' OR genres_4 = '{}' OR genres_5 = '{}' OR genres_6 = '{}'
GROUP BY year
ORDER BY year;
"""
GENRES_BY_YEAR_MOVIE_LENS_DICT = {
"data_title": "movie_lens_genres_{}_by_year".format(genres),
"data_type": MOVIE_LENS_DATA_TYPE,
"query": GET_GENRES_BY_YEAR_MOVIE_LENS_QUERY.format(genres, genres, genres, genres, genres, genres),
"query_execution_id": "",
"is_completed": False,
"result_data": {}
}
MOVIE_LENS_QUERY_DICT_LIST.append(GENRES_BY_YEAR_MOVIE_LENS_DICT)
###########################
########## Rating #########
###########################
# by rating
GET_BY_RATING_MOVIE_LENS_QUERY = """
SELECT
CASE
WHEN avg_rating >= 4.5 AND avg_rating <= 5 THEN '4.5-5'
WHEN avg_rating >= 4 AND avg_rating < 4.5 THEN '4-4.5'
WHEN avg_rating >= 3.5 AND avg_rating < 4 THEN '3.5-4'
WHEN avg_rating >= 3 AND avg_rating < 3.5 THEN '3-3.5'
WHEN avg_rating >= 2.5 AND avg_rating < 3 THEN '2.5-3'
WHEN avg_rating >= 2 AND avg_rating < 2.5 THEN '2-2.5'
WHEN avg_rating >= 1.5 AND avg_rating < 2 THEN '1.5-2'
WHEN avg_rating >= 1 AND avg_rating < 1.5 THEN '1-1.5'
WHEN avg_rating >= 0.5 AND avg_rating < 1 THEN '0.5-1'
WHEN avg_rating >= 0 AND avg_rating < 0.5 THEN '0-0.5'
ELSE 'NA'
END AS rating,
COUNT(1) AS movie_count,
SUM(vote_count) AS vote_count
FROM "movie_database_platform"."movie_lens_movies_ratings"
GROUP BY 1
ORDER BY 1;
"""
BY_RATING_MOVIE_LENS_DICT = {
"data_title": "movie_lens_by_rating",
"data_type": MOVIE_LENS_DATA_TYPE,
"query": GET_BY_RATING_MOVIE_LENS_QUERY,
"query_execution_id": "",
"is_completed": False,
"result_data": {}
}
MOVIE_LENS_QUERY_DICT_LIST.append(BY_RATING_MOVIE_LENS_DICT)
# is adult by rating
GET_IS_ADULT_BY_RATING_MOVIE_LENS_QUERY = """
SELECT
CASE
WHEN avg_rating >= 4.5 AND avg_rating <= 5 THEN '4.5-5'
WHEN avg_rating >= 4 AND avg_rating < 4.5 THEN '4-4.5'
WHEN avg_rating >= 3.5 AND avg_rating < 4 THEN '3.5-4'
WHEN avg_rating >= 3 AND avg_rating < 3.5 THEN '3-3.5'
WHEN avg_rating >= 2.5 AND avg_rating < 3 THEN '2.5-3'
WHEN avg_rating >= 2 AND avg_rating < 2.5 THEN '2-2.5'
WHEN avg_rating >= 1.5 AND avg_rating < 2 THEN '1.5-2'
WHEN avg_rating >= 1 AND avg_rating < 1.5 THEN '1-1.5'
WHEN avg_rating >= 0.5 AND avg_rating < 1 THEN '0.5-1'
WHEN avg_rating >= 0 AND avg_rating < 0.5 THEN '0-0.5'
ELSE 'NA'
END AS rating,
COUNT(1) AS movie_count,
SUM(vote_count) AS vote_count
FROM "movie_database_platform"."movie_lens_movies_ratings"
WHERE genres_1 = 'Adult' OR genres_2 = 'Adult' OR genres_3 = 'Adult' OR genres_4 = 'Adult' OR genres_5 = 'Adult' OR genres_6 = 'Adult'
GROUP BY 1
ORDER BY 1;
"""
IS_ADULT_BY_RATING_MOVIE_LENS_DICT = {
"data_title": "movie_lens_is_adult_by_rating",
"data_type": MOVIE_LENS_DATA_TYPE,
"query": GET_IS_ADULT_BY_RATING_MOVIE_LENS_QUERY,
"query_execution_id": "",
"is_completed": False,
"result_data": {}
}
MOVIE_LENS_QUERY_DICT_LIST.append(IS_ADULT_BY_RATING_MOVIE_LENS_DICT)
# genres by rating
GENRES_LIST = ["Action", "Adventure", "Animation", "Biography", "Comedy", "Crime", "Documentary", "Drama", "Family", "Fantasy",
"Film-Noir", "History", "Horror", "Music", "Musical", "Mystery", "Romance", "Sci-Fi", "Sport", "Thriller", "War", "Western"]
for genres in GENRES_LIST:
GET_GENRES_BY_RATING_MOVIE_LENS_QUERY = """
SELECT
CASE
WHEN avg_rating >= 4.5 AND avg_rating <= 5 THEN '4.5-5'
WHEN avg_rating >= 4 AND avg_rating < 4.5 THEN '4-4.5'
WHEN avg_rating >= 3.5 AND avg_rating < 4 THEN '3.5-4'
WHEN avg_rating >= 3 AND avg_rating < 3.5 THEN '3-3.5'
WHEN avg_rating >= 2.5 AND avg_rating < 3 THEN '2.5-3'
WHEN avg_rating >= 2 AND avg_rating < 2.5 THEN '2-2.5'
WHEN avg_rating >= 1.5 AND avg_rating < 2 THEN '1.5-2'
WHEN avg_rating >= 1 AND avg_rating < 1.5 THEN '1-1.5'
WHEN avg_rating >= 0.5 AND avg_rating < 1 THEN '0.5-1'
WHEN avg_rating >= 0 AND avg_rating < 0.5 THEN '0-0.5'
ELSE 'NA'
END AS rating,
COUNT(1) AS movie_count,
SUM(vote_count) AS vote_count
FROM "movie_database_platform"."movie_lens_movies_ratings"
WHERE genres_1 = '{}' OR genres_2 = '{}' OR genres_3 = '{}' OR genres_4 = '{}' OR genres_5 = '{}' OR genres_6 = '{}'
GROUP BY 1
ORDER BY 1;
"""
GENRES_BY_RATING_MOVIE_LENS_DICT = {
"data_title": "movie_lens_genres_{}_by_rating".format(genres),
"data_type": MOVIE_LENS_DATA_TYPE,
"query": GET_GENRES_BY_RATING_MOVIE_LENS_QUERY.format(genres, genres, genres, genres, genres, genres),
"query_execution_id": "",
"is_completed": False,
"result_data": {}
}
MOVIE_LENS_QUERY_DICT_LIST.append(GENRES_BY_RATING_MOVIE_LENS_DICT)
###########################
########## Genres #########
###########################
# by genres
GET_BY_GENRES_MOVIE_LENS_QUERY = """
SELECT
CASE
WHEN genres_1 = 'Action' OR genres_2 = 'Action' OR genres_3 = 'Action' OR genres_4 = 'Action' OR genres_5 = 'Action' OR genres_6 = 'Action' THEN 'Action'
WHEN genres_1 = 'Adventure' OR genres_2 = 'Adventure' OR genres_3 = 'Adventure' OR genres_4 = 'Adventure' OR genres_5 = 'Adventure' OR genres_6 = 'Adventure' THEN 'Adventure'
WHEN genres_1 = 'Animation' OR genres_2 = 'Animation' OR genres_3 = 'Animation' OR genres_4 = 'Animation' OR genres_5 = 'Animation' OR genres_6 = 'Animation' THEN 'Animation'
WHEN genres_1 = 'Biography' OR genres_2 = 'Biography' OR genres_3 = 'Biography' OR genres_4 = 'Biography' OR genres_5 = 'Biography' OR genres_6 = 'Biography' THEN 'Biography'
WHEN genres_1 = 'Comedy' OR genres_2 = 'Comedy' OR genres_3 = 'Comedy' OR genres_4 = 'Comedy' OR genres_5 = 'Comedy' OR genres_6 = 'Comedy' THEN 'Comedy'
WHEN genres_1 = 'Crime' OR genres_2 = 'Crime' OR genres_3 = 'Crime' OR genres_4 = 'Crime' OR genres_5 = 'Crime' OR genres_6 = 'Crime' THEN 'Crime'
WHEN genres_1 = 'Documentary' OR genres_2 = 'Documentary' OR genres_3 = 'Documentary' OR genres_4 = 'Documentary' OR genres_5 = 'Documentary' OR genres_6 = 'Documentary' THEN 'Documentary'
WHEN genres_1 = 'Drama' OR genres_2 = 'Drama' OR genres_3 = 'Drama' OR genres_4 = 'Drama' OR genres_5 = 'Drama' OR genres_6 = 'Drama' THEN 'Drama'
WHEN genres_1 = 'Family' OR genres_2 = 'Family' OR genres_3 = 'Family' OR genres_4 = 'Family' OR genres_5 = 'Family' OR genres_6 = 'Family' THEN 'Family'
WHEN genres_1 = 'Fantasy' OR genres_2 = 'Fantasy' OR genres_3 = 'Fantasy' OR genres_4 = 'Fantasy' OR genres_5 = 'Fantasy' OR genres_6 = 'Fantasy' THEN 'Fantasy'
WHEN genres_1 = 'Film-Noir' OR genres_2 = 'Film-Noir' OR genres_3 = 'Film-Noir' OR genres_4 = 'Film-Noir' OR genres_5 = 'Film-Noir' OR genres_6 = 'Film-Noir' THEN 'Film-Noir'
WHEN genres_1 = 'History' OR genres_2 = 'History' OR genres_3 = 'History' OR genres_4 = 'History' OR genres_5 = 'History' OR genres_6 = 'History' THEN 'History'
WHEN genres_1 = 'Horror' OR genres_2 = 'Horror' OR genres_3 = 'Horror' OR genres_4 = 'Horror' OR genres_5 = 'Horror' OR genres_6 = 'Horror' THEN 'Horror'
WHEN genres_1 = 'Music' OR genres_2 = 'Music' OR genres_3 = 'Music' OR genres_4 = 'Music' OR genres_5 = 'Music' OR genres_6 = 'Music' THEN 'Music'
WHEN genres_1 = 'Musical' OR genres_2 = 'Musical' OR genres_3 = 'Musical' OR genres_4 = 'Musical' OR genres_5 = 'Musical' OR genres_6 = 'Musical' THEN 'Musical'
WHEN genres_1 = 'Mystery' OR genres_2 = 'Mystery' OR genres_3 = 'Mystery' OR genres_4 = 'Mystery' OR genres_5 = 'Mystery' OR genres_6 = 'Mystery' THEN 'Mystery'
WHEN genres_1 = 'Romance' OR genres_2 = 'Romance' OR genres_3 = 'Romance' OR genres_4 = 'Romance' OR genres_5 = 'Romance' OR genres_6 = 'Romance' THEN 'Romance'
WHEN genres_1 = 'Sci-Fi' OR genres_2 = 'Sci-Fi' OR genres_3 = 'Sci-Fi' OR genres_4 = 'Sci-Fi' OR genres_5 = 'Sci-Fi' OR genres_6 = 'Sci-Fi' THEN 'Sci-Fi'
WHEN genres_1 = 'Sport' OR genres_2 = 'Sport' OR genres_3 = 'Sport' OR genres_4 = 'Sport' OR genres_5 = 'Sport' OR genres_6 = 'Sport' THEN 'Sport'
WHEN genres_1 = 'Thriller' OR genres_2 = 'Thriller' OR genres_3 = 'Thriller' OR genres_4 = 'Thriller' OR genres_5 = 'Thriller' OR genres_6 = 'Thriller' THEN 'Thriller'
WHEN genres_1 = 'War' OR genres_2 = 'War' OR genres_3 = 'War' OR genres_4 = 'War' OR genres_5 = 'War' OR genres_6 = 'War' THEN 'War'
WHEN genres_1 = 'Western' OR genres_2 = 'Western' OR genres_3 = 'Western' OR genres_4 = 'Western' OR genres_5 = 'Western' OR genres_6 = 'Western' THEN 'Western'
ELSE 'NA'
END AS genre,
COUNT(1) AS movie_count,
ROUND(AVG(avg_rating), 2) AS avg_rating,
SUM(vote_count) AS vote_count
FROM "movie_database_platform"."movie_lens_movies_ratings"
GROUP BY 1
ORDER BY 1;
"""
BY_GENRES_MOVIE_LENS_DICT = {
"data_title": "movie_lens_by_genres",
"data_type": MOVIE_LENS_DATA_TYPE,
"query": GET_BY_GENRES_MOVIE_LENS_QUERY,
"query_execution_id": "",
"is_completed": False,
"result_data": {}
}
MOVIE_LENS_QUERY_DICT_LIST.append(BY_GENRES_MOVIE_LENS_DICT)
# is adult by genres
GET_IS_ADULT_BY_GENRES_MOVIE_LENS_QUERY = """
SELECT
CASE
WHEN genres_1 = 'Action' OR genres_2 = 'Action' OR genres_3 = 'Action' OR genres_4 = 'Action' OR genres_5 = 'Action' OR genres_6 = 'Action' THEN 'Action'
WHEN genres_1 = 'Adventure' OR genres_2 = 'Adventure' OR genres_3 = 'Adventure' OR genres_4 = 'Adventure' OR genres_5 = 'Adventure' OR genres_6 = 'Adventure' THEN 'Adventure'
WHEN genres_1 = 'Animation' OR genres_2 = 'Animation' OR genres_3 = 'Animation' OR genres_4 = 'Animation' OR genres_5 = 'Animation' OR genres_6 = 'Animation' THEN 'Animation'
WHEN genres_1 = 'Biography' OR genres_2 = 'Biography' OR genres_3 = 'Biography' OR genres_4 = 'Biography' OR genres_5 = 'Biography' OR genres_6 = 'Biography' THEN 'Biography'
WHEN genres_1 = 'Comedy' OR genres_2 = 'Comedy' OR genres_3 = 'Comedy' OR genres_4 = 'Comedy' OR genres_5 = 'Comedy' OR genres_6 = 'Comedy' THEN 'Comedy'
WHEN genres_1 = 'Crime' OR genres_2 = 'Crime' OR genres_3 = 'Crime' OR genres_4 = 'Crime' OR genres_5 = 'Crime' OR genres_6 = 'Crime' THEN 'Crime'
WHEN genres_1 = 'Documentary' OR genres_2 = 'Documentary' OR genres_3 = 'Documentary' OR genres_4 = 'Documentary' OR genres_5 = 'Documentary' OR genres_6 = 'Documentary' THEN 'Documentary'
WHEN genres_1 = 'Drama' OR genres_2 = 'Drama' OR genres_3 = 'Drama' OR genres_4 = 'Drama' OR genres_5 = 'Drama' OR genres_6 = 'Drama' THEN 'Drama'
WHEN genres_1 = 'Family' OR genres_2 = 'Family' OR genres_3 = 'Family' OR genres_4 = 'Family' OR genres_5 = 'Family' OR genres_6 = 'Family' THEN 'Family'
WHEN genres_1 = 'Fantasy' OR genres_2 = 'Fantasy' OR genres_3 = 'Fantasy' OR genres_4 = 'Fantasy' OR genres_5 = 'Fantasy' OR genres_6 = 'Fantasy' THEN 'Fantasy'
WHEN genres_1 = 'Film-Noir' OR genres_2 = 'Film-Noir' OR genres_3 = 'Film-Noir' OR genres_4 = 'Film-Noir' OR genres_5 = 'Film-Noir' OR genres_6 = 'Film-Noir' THEN 'Film-Noir'
WHEN genres_1 = 'History' OR genres_2 = 'History' OR genres_3 = 'History' OR genres_4 = 'History' OR genres_5 = 'History' OR genres_6 = 'History' THEN 'History'
WHEN genres_1 = 'Horror' OR genres_2 = 'Horror' OR genres_3 = 'Horror' OR genres_4 = 'Horror' OR genres_5 = 'Horror' OR genres_6 = 'Horror' THEN 'Horror'
WHEN genres_1 = 'Music' OR genres_2 = 'Music' OR genres_3 = 'Music' OR genres_4 = 'Music' OR genres_5 = 'Music' OR genres_6 = 'Music' THEN 'Music'
WHEN genres_1 = 'Musical' OR genres_2 = 'Musical' OR genres_3 = 'Musical' OR genres_4 = 'Musical' OR genres_5 = 'Musical' OR genres_6 = 'Musical' THEN 'Musical'
WHEN genres_1 = 'Mystery' OR genres_2 = 'Mystery' OR genres_3 = 'Mystery' OR genres_4 = 'Mystery' OR genres_5 = 'Mystery' OR genres_6 = 'Mystery' THEN 'Mystery'
WHEN genres_1 = 'Romance' OR genres_2 = 'Romance' OR genres_3 = 'Romance' OR genres_4 = 'Romance' OR genres_5 = 'Romance' OR genres_6 = 'Romance' THEN 'Romance'
WHEN genres_1 = 'Sci-Fi' OR genres_2 = 'Sci-Fi' OR genres_3 = 'Sci-Fi' OR genres_4 = 'Sci-Fi' OR genres_5 = 'Sci-Fi' OR genres_6 = 'Sci-Fi' THEN 'Sci-Fi'
WHEN genres_1 = 'Sport' OR genres_2 = 'Sport' OR genres_3 = 'Sport' OR genres_4 = 'Sport' OR genres_5 = 'Sport' OR genres_6 = 'Sport' THEN 'Sport'
WHEN genres_1 = 'Thriller' OR genres_2 = 'Thriller' OR genres_3 = 'Thriller' OR genres_4 = 'Thriller' OR genres_5 = 'Thriller' OR genres_6 = 'Thriller' THEN 'Thriller'
WHEN genres_1 = 'War' OR genres_2 = 'War' OR genres_3 = 'War' OR genres_4 = 'War' OR genres_5 = 'War' OR genres_6 = 'War' THEN 'War'
WHEN genres_1 = 'Western' OR genres_2 = 'Western' OR genres_3 = 'Western' OR genres_4 = 'Western' OR genres_5 = 'Western' OR genres_6 = 'Western' THEN 'Western'
ELSE 'NA'
END AS genre,
COUNT(1) AS movie_count,
ROUND(AVG(avg_rating), 2) AS avg_rating,
SUM(vote_count) AS vote_count
FROM "movie_database_platform"."movie_lens_movies_ratings"
WHERE genres_1 = 'Adult' OR genres_2 = 'Adult' OR genres_3 = 'Adult' OR genres_4 = 'Adult' OR genres_5 = 'Adult' OR genres_6 = 'Adult'
GROUP BY 1
ORDER BY 1;
"""
IS_ADULT_BY_GENRES_MOVIE_LENS_DICT = {
"data_title": "movie_lens_is_adult_by_genres",
"data_type": MOVIE_LENS_DATA_TYPE,
"query": GET_IS_ADULT_BY_GENRES_MOVIE_LENS_QUERY,
"query_execution_id": "",
"is_completed": False,
"result_data": {}
}
MOVIE_LENS_QUERY_DICT_LIST.append(IS_ADULT_BY_GENRES_MOVIE_LENS_DICT)
| 57.797872
| 192
| 0.680594
| 2,625
| 16,299
| 3.917714
| 0.031619
| 0.190587
| 0.042882
| 0.023337
| 0.986289
| 0.980455
| 0.961007
| 0.943991
| 0.937865
| 0.912777
| 0
| 0.037985
| 0.182711
| 16,299
| 281
| 193
| 58.003559
| 0.734029
| 0.009326
| 0
| 0.768924
| 0
| 0.211155
| 0.803217
| 0.049384
| 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
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 1
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 9
|
eaa78dcae9ccb6e8637708235ca0a2a3039bd35d
| 8,658
|
py
|
Python
|
domonic/geom/particles.py
|
byteface/domonic
|
971c2ae6ce2253e302873d40fd5b6e46a8f9ca95
|
[
"MIT"
] | 94
|
2020-07-12T12:02:07.000Z
|
2022-03-25T03:04:57.000Z
|
domonic/particles.py
|
Jordan-Cottle/domonic
|
05d70af0d1564d3ba80c860bb5f5bfe089293b18
|
[
"MIT"
] | 41
|
2021-06-02T10:51:58.000Z
|
2022-02-21T09:58:43.000Z
|
domonic/particles.py
|
Jordan-Cottle/domonic
|
05d70af0d1564d3ba80c860bb5f5bfe089293b18
|
[
"MIT"
] | 17
|
2021-06-10T00:34:27.000Z
|
2022-02-21T09:47:30.000Z
|
"""
domonic.particles
====================================
fun stuff
"""
from domonic.javascript import *
class Particle():
""" a particle class """
def __init__(self, size=1):
self.x = 0
self.y = 0
self.width = size
self.height = size
self.rotation = 0
self.vx = 0
self.vy = 0
self.damp = 0.9
self.bounce = -0.5
self.grav = 0
self.wander = 0
self._k = 0.2
self.edges = "wrap"
self._drag = False
self._oldx = None
self._oldy = None
self._turnToPath = False
self._bounds = {}
self.set_bounds({'xMin': 0, 'yMin': 0, 'yMax': 800, 'xMax': 800})
# self._bounds = {'top': 0, 'bottom': 0, 'left': 0, 'right': 0}
self.maxSpeed = Number.MAX_VALUE
# self.turnToPath(False)
def set_bounds(self, oBounds):
self._bounds['top'] = oBounds['yMin']
self._bounds['bottom'] = oBounds['yMax']
self._bounds['left'] = oBounds['xMin']
self._bounds['right'] = oBounds['xMax']
def turnToPath(self, bTurn):
self._turnToPath = bTurn
def update(self):
if self._drag:
self.vx = self.x - self._oldx
self.vy = self.y - self._oldy
self._oldx = self.x
self._oldy = self.y
else:
self.vx += Math.random() * self.wander - self.wander / 2
self.vy += Math.random() * self.wander - self.wander / 2
self.vy += self.grav
self.vx *= self.damp
self.vy *= self.damp
speed = Math.sqrt(self.vx * self.vx + self.vy * self.vy)
if speed > self.maxSpeed:
self.vx = self.maxSpeed * self.vx / speed
self.vy = self.maxSpeed * self.vy / speed
if self._turnToPath:
self.rotation = Math.atan2(self.vy, self.vx)
self.x += self.vx
self.y += self.vy
if self.edges == "wrap":
if self.x > (self._bounds['right'] + self.width / 2):
self.x = self._bounds['left'] - self.width / 2
elif self.x < self._bounds['left'] - self.width / 2:
self.x = self._bounds['right'] + self.width / 2
if(self.y > self._bounds['bottom'] + self.height / 2):
self.y = self._bounds['top'] - self.height / 2
elif (self.y < self._bounds['top'] - self.height / 2):
self.y = self._bounds['bottom'] + self.height / 2
elif self.edges == "bounce":
if self.x > (self._bounds['right'] - self.width / 2):
self.x = self._bounds['right'] - self.width / 2
self.vx *= self.bounce
elif self.x < (self._bounds['left'] + self.width / 2):
self.x = self._bounds['left'] + self.width / 2
self.vx *= self.bounce
if self.y > (self._bounds['bottom'] - self.height / 2):
self.y = self._bounds['bottom'] - self.height / 2
self.vy *= self.bounce
elif self.y < (self._bounds['top'] + self.height / 2):
self.y = self._bounds['top'] + self.height / 2
self.vy *= self.bounce
# elif self.edges == "none":
# pass
# elif self.edges == "destroy":
# self.x = 0
# self.y = 0
# self.vx = 0
# self.vy = 0
# self.rotation = 0
# elif self.edges == "explode":
# self.x = 0
# self.y = 0
# self.vx = 0
# self.vy = 0
# self.rotation = 0
# self.vx += Math.random() * self.wander - self.wander / 2
# self.vy += Math.random() * self.wander - self.wander / 2
# else if self.edges == "remove":
# if(self.x > self._bounds.right + self.width/2 || self.x<self._bounds.left - self.width/2 ||
# self.y > self._bounds.bottom + self.height/2 || self.y<self._bounds.top - self.height/2){
if Global.isNaN(self.x):
self.x = self.y = self.vx = self.vy = 0
class Particle3D():
def __init__(self, size=1):
self.x = 0
self.y = 0
self.z = 0
self.width = size
self.height = size
self.length = size
self.rotation = 0
self.vx = 0
self.vy = 0
self.vz = 0
self.damp = 0.9
self.bounce = -0.5
self.grav = 0
self.wander = 0
self._k = 0.2
self.edges = "wrap"
self._drag = False
self._oldx = None
self._oldy = None
self._oldz = None
self._turnToPath = False
self._bounds = {}
self.set_bounds({'xMin': 0, 'yMin': 0, 'yMax': 800, 'xMax': 800})
self.maxSpeed = Number.MAX_VALUE
def __str__(self):
return "Particle3D(x={}, y={}, z={}, width={}, height={}, length={}, rotation={}, vx={}, vy={}, vz={}, damp={}, bounce={}, grav={}, wander={}, k={}, edges={}, drag={}, turnToPath={}, bounds={})".format(
self.x, self.y, self.z, self.width, self.height, self.length, self.rotation, self.vx, self.vy, self.vz, self.damp, self.bounce, self.grav, self.wander, self._k, self.edges, self._drag, self._turnToPath, self._bounds)
# def __repr__(self):
# return self.__str__()
def set_bounds(self, oBounds):
self._bounds['top'] = oBounds['yMin']
self._bounds['bottom'] = oBounds['yMax']
self._bounds['left'] = oBounds['xMin']
self._bounds['right'] = oBounds['xMax']
def turnToPath(self, bTurn):
self._turnToPath = bTurn
def update(self):
if self._drag:
self.vx = self.x - self._oldx
self.vy = self.y - self._oldy
self.vz = self.z - self._oldz
self._oldx = self.x
self._oldy = self.y
self._oldz = self.z
else:
self.vx += Math.random() * self.wander - self.wander / 2
self.vy += Math.random() * self.wander - self.wander / 2
self.vz += Math.random() * self.wander - self.wander / 2
self.vy += self.grav
self.vx *= self.damp
self.vy *= self.damp
self.vz *= self.damp
speed = Math.sqrt(self.vx * self.vx + self.vy * self.vy + self.vz * self.vz)
if speed > self.maxSpeed:
self.vx = self.maxSpeed * self.vx / speed
self.vy = self.maxSpeed * self.vy / speed
self.vz = self.maxSpeed * self.vz / speed
if self._turnToPath:
self.rotation = Math.atan2(self.vy, self.vx)
self.x += self.vx
self.y += self.vy
self.z += self.vz
if self.edges == "wrap":
if self.x > (self._bounds['right'] + self.width / 2):
self.x = self._bounds['left'] - self.width / 2
elif self.x < self._bounds['left'] - self.width / 2:
self.x = self._bounds['right'] + self.width / 2
if(self.y > self._bounds['bottom'] + self.height / 2):
self.y = self._bounds['top'] - self.height / 2
elif (self.y < self._bounds['top'] - self.height / 2):
self.y = self._bounds['bottom'] + self.height / 2
elif self.edges == "bounce":
if self.x > (self._bounds['right'] - self.width / 2):
self.x = self._bounds['right'] - self.width / 2
self.vx *= self.bounce
elif self.x < (self._bounds['left'] + self.width / 2):
self.x = self._bounds['left'] + self.width / 2
self.vx *= self.bounce
if self.y > (self._bounds['bottom'] - self.height / 2):
self.y = self._bounds['bottom'] - self.height / 2
self.vy *= self.bounce
elif self.y < (self._bounds['top'] + self.height / 2):
self.y = self._bounds['top'] + self.height / 2
self.vy *= self.bounce
# else if self.edges == "remove":
# if(self.x > self._bounds.right + self.width/2 || self.x<self._bounds.left - self.width/2 ||
# self.y > self._bounds.bottom + self.height/2 || self.y<self._bounds.top - self.height/2){
if Global.isNaN(self.x):
self.x = self.y = self.vx = self.vy = 0
| 37.643478
| 228
| 0.481058
| 1,060
| 8,658
| 3.827358
| 0.075472
| 0.128174
| 0.06877
| 0.073946
| 0.868129
| 0.844959
| 0.844959
| 0.844959
| 0.820557
| 0.818585
| 0
| 0.020624
| 0.367175
| 8,658
| 229
| 229
| 37.80786
| 0.719839
| 0.121275
| 0
| 0.8875
| 0
| 0.00625
| 0.060482
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.05625
| false
| 0
| 0.00625
| 0.00625
| 0.08125
| 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
|
eaf131985f4b31c32ba8bc3c761fe85bdefe568a
| 29,650
|
py
|
Python
|
tests/test_brm_rest_walk.py
|
sthagen/python-brm_rest_walk
|
9c1cd66df155c32b0fbe2d9a1423ff0a9cf4d761
|
[
"MIT"
] | null | null | null |
tests/test_brm_rest_walk.py
|
sthagen/python-brm_rest_walk
|
9c1cd66df155c32b0fbe2d9a1423ff0a9cf4d761
|
[
"MIT"
] | 31
|
2020-07-28T13:16:23.000Z
|
2020-08-04T10:35:33.000Z
|
tests/test_brm_rest_walk.py
|
sthagen/python-brm_rest_walk
|
9c1cd66df155c32b0fbe2d9a1423ff0a9cf4d761
|
[
"MIT"
] | null | null | null |
# -*- coding: utf-8 -*-
# pylint: disable=missing-docstring,unused-import,reimported
"""
Some tree info:
.
└── data
├── a.txt
├── a.txt.md5
├── a.txt.sha1
├── a.txt.sha256
└── b
├── b.txt
├── b.txt.md5
├── b.txt.sha1
└── b.txt.sha256
"""
import datetime as dti
import pytest # type: ignore
import responses
import requests
import tests.context as ctx
import brm_rest_walk.brm_rest_walk as brm
def setup():
ctx.reset()
def test_naive_timestamp_ok_empty_paramter():
ts = brm.naive_timestamp()
assert ts.startswith("20")
def test_naive_timestamp_ok_datetime_parameter():
dt = dti.datetime.now()
ts = dt.strftime(brm.TS_FORMAT)
assert brm.naive_timestamp(dt) == ts
def test_tree_walker_nok_missing_user_and_token():
server = "not_important"
message = r"Must use API token \(other authentication means not implemented\)"
with pytest.raises(ValueError, match=message):
brm.TreeWalker(server)
def test_tree_walker_nok_missing_token():
server = "not_important"
message = r"Must use API token \(other authentication means not implemented\)"
with pytest.raises(ValueError, match=message):
brm.TreeWalker(server, None, "a_user")
def test_tree_walker_nok_missing_user():
server = "not_important"
message = r"Must use API token \(other authentication means not implemented\)"
with pytest.raises(ValueError, match=message):
brm.TreeWalker(server, None, username=None, api_token="a_token")
def test_is_node_ok_edge():
assert brm.is_node('edge/') is False
def test_is_node_ok_node():
assert brm.is_node('node') is True
def test_easing_ok_no_easing():
brm.EASING = False
assert brm.easing() is None # Call works no timing check
def test_easing_ok_with_easing():
brm.EASING = True
assert brm.easing() is None # Call works no timing check
def test_parse_autoindex_ok_empty():
assert brm.parse_autoindex('') == []
def test_parse_autoindex_map_ok_empty():
assert brm.autoindex_map('') == {}
def test_parse_autoindex_ok_nonsense():
assert brm.parse_autoindex('There is nothing useful in here') == []
def test_parse_autoindex_map_ok_nonsense():
assert brm.autoindex_map('There is nothing useful in here') == {}
def test_parse_autoindex_nok_start_token_nonsense():
message = r"not enough values to unpack \(expected 2, got 1\)"
with pytest.raises(ValueError, match=message):
brm.parse_autoindex('<a href="There is nothing useful in here')
def test_parse_autoindex_map_nok_start_token_nonsense():
message = r"not enough values to unpack \(expected 2, got 1\)"
with pytest.raises(ValueError, match=message):
brm.autoindex_map('<a href="There is nothing useful in here')
def test_parse_autoindex_nok_start_token_href_nonsense():
message = r"not enough values to unpack \(expected 2, got 1\)"
with pytest.raises(ValueError, match=message):
brm.parse_autoindex('<a href="maybe">There is nothing useful in here')
def test_parse_autoindex_map_nok_start_token_href_nonsense():
message = r"not enough values to unpack \(expected 2, got 1\)"
with pytest.raises(ValueError, match=message):
brm.autoindex_map('<a href="maybe">There is nothing useful in here')
def test_parse_autoindex_nok_start_token_href_link_nonsense():
message = r"not enough values to unpack \(expected 3, got 1\)"
with pytest.raises(ValueError, match=message):
brm.parse_autoindex('<a href="maybe">link</a>There_is_still_nothing_useful_in_here_and_no_spaces_to_split_on')
def test_parse_autoindex_map_nok_start_token_href_link_nonsense():
message = r"not enough values to unpack \(expected 3, got 1\)"
with pytest.raises(ValueError, match=message):
brm.autoindex_map('<a href="maybe">link</a>There_is_still_nothing_useful_in_here_and_no_spaces_to_split_on')
def test_parse_autoindex_ok_minimal():
f, d, s, u = 'a.txt', '22-Aug-2019 09:53', '2.50', 'MB'
page_text = f'<a href="{f}">a.txt</a> {d} {s} {u}'
assert brm.parse_autoindex(page_text) == [(f, d, s, u)]
def test_parse_autoindex_map_ok_minimal():
f, d, s, u = 'a.txt', '22-Aug-2019 09:53', '2.50', 'MB'
page_text = f'<a href="{f}">a.txt</a> {d} {s} {u}'
assert brm.autoindex_map(page_text) == {f: {"name": f, "api_ts": d, "h_size": s, "h_unit": u}}
@responses.activate
def test_meta_equests_and_mock_responses_simple():
responses.add(responses.GET, 'http://example.com/api/1/foobar',
json={'error': 'not found'}, status=404)
resp = requests.get('http://example.com/api/1/foobar')
assert resp.json() == {"error": "not found"}
assert len(responses.calls) == 1
assert responses.calls[0].request.url == 'http://example.com/api/1/foobar'
assert responses.calls[0].response.text == '{"error": "not found"}'
@responses.activate
def test_tree_walker_ok_init():
repositories = [
{
'key': '1',
'type': 'LOCAL',
'description': 'describing me',
'url': 'asdasd',
'packageType': 'packageType value',
}
]
serialized_repositories = (
'[{"key": "1", "type": "LOCAL", "description": "describing me", "url": '
'"asdasd", "packageType": "packageType value"}]'
)
base_url = ctx.BRM_SERVER.rstrip('/')
api_base_url = f'{base_url}{ctx.BRM_API_ROOT}'
repositories_url = f'{base_url}{ctx.BRM_API_ROOT}repositories/'
responses.add(responses.GET, base_url,
json={'go': 'ahead'}, status=200)
responses.add(responses.GET, api_base_url,
json={'api': 'found'}, status=200)
responses.add(responses.GET, repositories_url,
json=repositories, status=200)
walker = brm.TreeWalker(server_url=brm.brm_server, api_root=brm.brm_api_root, username=brm.brm_user, api_token=brm.brm_token)
assert walker is not None
assert len(responses.calls) == 1
assert responses.calls[0].request.url == repositories_url
assert responses.calls[0].response.text == serialized_repositories
@responses.activate
def test_tree_walker_ok_repositories():
repositories_in = [
{
'key': '1',
'type': 'LOCAL',
'description': 'describing me',
'url': 'asdasd',
'packageType': 'packageType value',
}
]
serialized_repositories = (
'[{"key": "1", "type": "LOCAL", "description": "describing me", "url": '
'"asdasd", "packageType": "packageType value"}]'
)
repository_one_digest = {
'1': {
'description': 'describing me',
'package_type': 'packageType value',
'url': 'asdasd',
}
}
base_url = ctx.BRM_SERVER.rstrip('/')
api_base_url = f'{base_url}{ctx.BRM_API_ROOT}'
repositories_url = f'{base_url}{ctx.BRM_API_ROOT}repositories/'
responses.add(responses.GET, base_url,
json={'go': 'ahead'}, status=200)
responses.add(responses.GET, api_base_url,
json={'api': 'found'}, status=200)
responses.add(responses.GET, repositories_url,
json=repositories_in, status=200)
repositories = brm.TreeWalker(server_url=brm.brm_server, api_root=brm.brm_api_root, username=brm.brm_user, api_token=brm.brm_token).repository_map()
assert repositories == repository_one_digest
@responses.activate
def test_tree_walker_ok_repositories_ignored():
repositories_in = [
{
'key': '1',
'type': 'IGNORE',
'description': 'describing me',
'url': 'asdasd',
'packageType': 'packageType value',
}
]
repository_one_digest = {}
base_url = ctx.BRM_SERVER.rstrip('/')
api_base_url = f'{base_url}{ctx.BRM_API_ROOT}'
repositories_url = f'{base_url}{ctx.BRM_API_ROOT}repositories/'
responses.add(responses.GET, base_url,
json={'go': 'ahead'}, status=200)
responses.add(responses.GET, api_base_url,
json={'api': 'found'}, status=200)
responses.add(responses.GET, repositories_url,
json=repositories_in, status=200)
repositories = brm.TreeWalker(server_url=brm.brm_server, api_root=brm.brm_api_root, username=brm.brm_user, api_token=brm.brm_token).repository_map()
assert repositories == repository_one_digest
@responses.activate
def test_tree_walker_ok_hashes():
links_page = """\n
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>title</title>
<link rel="stylesheet" href="style.css">
<script src="script.js"></script>
</head>
<body>
<a href="f">f</a> d s u
</body>
</html>
"""
base_url = ctx.BRM_SERVER.rstrip('/')
api_base_url = f'{base_url}{ctx.BRM_API_ROOT}'
repositories_url = f'{api_base_url}repositories/'
responses.add(responses.GET, base_url,
json={'go': 'ahead'}, status=200)
responses.add(responses.GET, api_base_url,
json={'api': 'found'}, status=200)
repositories_in = [
{
'key': '1',
'type': 'LOCAL',
'description': 'describing me',
'url': f'{api_base_url}data',
'packageType': 'packageType value',
}
]
responses.add(responses.GET, repositories_url,
json=repositories_in, status=200)
name_a_txt = "a.txt"
leaf_a_url = f'{api_base_url}data/{name_a_txt}'
content_a_txt = "This is ${data_root}/a.txt with a newline at the end of the file.\n"
expected_digests = {
brm.MD5: "921214c14fda7cd320caf04cfa26a224",
brm.SHA1: "7c6b7b5a662dcf0a21253bc2576d614f6b7fdc9c",
brm.SHA256: "fd60560f94c1ad21d45e2383f974dd77df582f7336816b7fb367d70ff001fc8f",
}
name_a_txt_md5 = f"{name_a_txt}.{brm.MD5}"
content_a_txt_md5 = expected_digests[brm.MD5]
name_a_txt_sha1 = f"{name_a_txt}.{brm.SHA1}"
content_a_txt_sha1 = expected_digests[brm.SHA1]
name_a_txt_sha256 = f"{name_a_txt}.{brm.SHA256}"
content_a_txt_sha256 = expected_digests[brm.SHA256]
responses.add(responses.GET, leaf_a_url,
body=content_a_txt, status=200)
responses.add(responses.GET, f"{leaf_a_url}.{brm.MD5}",
body=content_a_txt_md5, status=200)
responses.add(responses.GET, f"{leaf_a_url}.{brm.SHA1}",
body=content_a_txt_sha1, status=200)
responses.add(responses.GET, f"{leaf_a_url}.{brm.SHA256}",
body=content_a_txt_sha256, status=200)
digests = brm.TreeWalker(server_url=brm.brm_server, api_root=brm.brm_api_root, username=brm.brm_user, api_token=brm.brm_token).hashes(leaf_a_url)
assert digests == expected_digests
@responses.activate
def test_tree_walker_ok_links():
links_page = """\n
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>title</title>
<link rel="stylesheet" href="style.css">
<script src="script.js"></script>
</head>
<body>
<a href="f">f</a> d s u
</body>
</html>
"""
base_url = ctx.BRM_SERVER.rstrip('/')
api_base_url = f'{base_url}{ctx.BRM_API_ROOT}'
repositories_url = f'{api_base_url}repositories/'
links_url = f'{api_base_url}links/'
responses.add(responses.GET, base_url,
json={'go': 'ahead'}, status=200)
responses.add(responses.GET, api_base_url,
json={'api': 'found'}, status=200)
repositories_in = [
{
'key': '1',
'type': 'LOCAL',
'description': 'describing me',
'url': f'{api_base_url}data',
'packageType': 'packageType value',
}
]
responses.add(responses.GET, repositories_url,
json=repositories_in, status=200)
responses.add(responses.GET, links_url,
body=links_page, status=200)
links = brm.TreeWalker(server_url=brm.brm_server, api_root=brm.brm_api_root, username=brm.brm_user, api_token=brm.brm_token).links(links_url)
assert links == ['f']
@responses.activate
def test_tree_walker_ok_tree_page():
base_url = ctx.BRM_SERVER.rstrip('/')
api_base_url = f'{base_url}{ctx.BRM_API_ROOT}'
repositories_in = [
{
'key': '1',
'type': 'LOCAL',
'description': 'describing me',
'url': f'{api_base_url}data',
'packageType': 'packageType value',
}
]
serialized_repositories = (
'[{"key": "1", "type": "LOCAL", "description": "describing me", "url": '
f'"{api_base_url}data", "packageType": "packageType value"}}]'
)
repository_one_digest = {
'1': {
'description': 'describing me',
'package_type': 'packageType value',
'url': f'{api_base_url}data',
}
}
repositories_url = f'{api_base_url}repositories/'
responses.add(responses.GET, base_url,
json={'go': 'ahead'}, status=200)
responses.add(responses.GET, api_base_url,
json={'api': 'found'}, status=200)
responses.add(responses.GET, repositories_url,
json=repositories_in, status=200)
f1, d1, s1, u1 = 'a.txt', '22-Aug-2019 09:53', '2.50', 'MB'
f2, d2, s2, u2 = 'b/', '22-Aug-2020 09:53', '1.23', 'kB'
page_a_text = (
f'<a href="{f1}">{f1}</a> {d1} {s1} {u1}'
'\n'
f'<a href="{f2}">{f2}</a> {d2} {s2} {u2}'
)
responses.add(responses.GET, repository_one_digest['1']['url'],
body=page_a_text, status=200)
f3, d3, s3, u3 = 'b.txt', '22-Aug-2020 09:53', '1.23', 'kB'
page_b_text = (
f'<a href="{f3}">{f3}</a> {d3} {s3} {u3}'
'\n'
'we ignore this'
)
responses.add(responses.GET, f"{repository_one_digest['1']['url']}/b/",
body=page_b_text, status=200)
expected_tree = {
1: {
'https://example.com/api/data': {
'@e': ['a.txt', 'b/'],
'a.txt': {
'api_ts': '22-Aug-2019 09:53',
'h_size': '2.50',
'h_unit': 'MB',
'name': 'a.txt',
'url': 'https://example.com/api/data/a.txt'
},
'b/': {
'@e': ['b.txt']
}
}
}
}
walker = brm.TreeWalker(server_url=brm.brm_server, api_root=brm.brm_api_root, username=brm.brm_user, api_token=brm.brm_token)
assert walker is not None
assert len(responses.calls) == 1
assert responses.calls[0].request.url == repositories_url
assert responses.calls[0].response.text == serialized_repositories
repositories = walker.repository_map()
assert repositories
level = 1
tree = {level: {}}
for key, repository in repositories.items():
url = repository["url"]
data = walker.repository_page(url)
tree[level][url] = {brm.EDGE: data[brm.HREFS]}
for url, downward_links in tree[level].items():
for relative_link in downward_links[brm.EDGE]:
tree[level][url][relative_link] = {}
node = brm.is_node(relative_link)
if not node and relative_link:
brm.easing()
data = walker.repository_page(f"{url}/{relative_link}")
tree[level][url][relative_link][brm.EDGE] = data[brm.HREFS]
else:
data = walker.repository_page(f"{url}")
tree[level][url][relative_link] = {
"url": f"{url}/{relative_link}",
**data[brm.META].get(relative_link, {"name": None, "api_ts": None, "h_size": None, "h_unit": None}),
}
assert tree == expected_tree
@responses.activate
def test_tree_walker_ok_tree_leaf_page():
base_url = ctx.BRM_SERVER.rstrip('/')
api_base_url = f'{base_url}{ctx.BRM_API_ROOT}'
repositories_in = [
{
'key': '1',
'type': 'LOCAL',
'description': 'describing me',
'url': f'{api_base_url}data',
'packageType': 'packageType value',
}
]
serialized_repositories = (
'[{"key": "1", "type": "LOCAL", "description": "describing me", "url": '
f'"{api_base_url}data", "packageType": "packageType value"}}]'
)
repository_one_digest = {
'1': {
'description': 'describing me',
'package_type': 'packageType value',
'url': f'{api_base_url}data',
}
}
repositories_url = f'{api_base_url}repositories/'
responses.add(responses.GET, base_url,
json={'go': 'ahead'}, status=200)
responses.add(responses.GET, api_base_url,
json={'api': 'found'}, status=200)
responses.add(responses.GET, repositories_url,
json=repositories_in, status=200)
f1, d1, s1, u1 = 'a.txt', '22-Aug-2019 09:53', '2.50', 'MB'
f2, d2, s2, u2 = 'b/', '22-Aug-2020 09:53', '1.23', 'kB'
page_a_text = (
f'<a href="{f1}">{f1}</a> {d1} {s1} {u1}'
'\n'
f'<a href="{f2}">{f2}</a> {d2} {s2} {u2}'
)
responses.add(responses.GET, repository_one_digest['1']['url'],
body=page_a_text, status=200)
f3, d3, s3, u3 = 'b.txt', '22-Aug-2020 09:53', '1.23', 'kB'
page_b_text = (
f'<a href="{f3}">{f3}</a> {d3} {s3} {u3}'
'\n'
'we ignore this'
)
responses.add(responses.GET, f"{repository_one_digest['1']['url']}/b/",
body=page_b_text, status=200)
expected_tree = {
1: {
'https://example.com/api/data': {
'@e': ['a.txt', 'b/'],
'a.txt': {
'api_ts': '22-Aug-2019 09:53',
'h_size': '2.50',
'h_unit': 'MB',
'md5': '921214c14fda7cd320caf04cfa26a224',
'name': 'a.txt',
'sha1': '7c6b7b5a662dcf0a21253bc2576d614f6b7fdc9c',
'sha256': 'fd60560f94c1ad21d45e2383f974dd77df582f7336816b7fb367d70ff001fc8f',
'url': 'https://example.com/api/data/a.txt'
},
'b/': {
'@e': ['b.txt']
}
}
}
}
name_a_txt = "a.txt"
content_a_txt = "This is ${data_root}/a.txt with a newline at the end of the file.\n"
name_a_txt_md5 = "a.txt.md5"
content_a_txt_md5 = "921214c14fda7cd320caf04cfa26a224"
name_a_txt_sha1 = "a.txt.sha1"
content_a_txt_sha1 = "7c6b7b5a662dcf0a21253bc2576d614f6b7fdc9c"
name_a_txt_sha256 = "a.txt.sha256"
content_a_txt_sha256 = "fd60560f94c1ad21d45e2383f974dd77df582f7336816b7fb367d70ff001fc8f"
responses.add(responses.GET, f"{repository_one_digest['1']['url']}/{name_a_txt}",
body=content_a_txt, status=200)
responses.add(responses.GET, f"{repository_one_digest['1']['url']}/{name_a_txt_md5}",
body=content_a_txt_md5, status=200)
responses.add(responses.GET, f"{repository_one_digest['1']['url']}/{name_a_txt_sha1}",
body=content_a_txt_sha1, status=200)
responses.add(responses.GET, f"{repository_one_digest['1']['url']}/{name_a_txt_sha256}",
body=content_a_txt_sha256, status=200)
name_b_txt = "b.txt"
content_b_txt = "This is ${data_root}/b/b.txt with a newline at the end of the file.\n"
name_b_txt_md5 = "b.txt.md5"
content_b_txt_md5 = "640ecd5a7cf34cbf8a921b37731db28b"
name_b_txt_sha1 = "b.txt.sha1"
content_b_txt_sha1 = "d07cd80af550e403df824d64feb67e34a9fbf020"
name_b_txt_sha256 = "b.txt.sha256"
content_b_txt_sha256 = "98dccf9bba2c9294ffcf7772d9dc72f80580d6c08cae4537dd861faa3c85d25e"
responses.add(responses.GET, f"{repository_one_digest['1']['url']}/b/{name_b_txt}",
body=content_b_txt, status=200)
responses.add(responses.GET, f"{repository_one_digest['1']['url']}/b/{name_b_txt_md5}",
body=content_b_txt_md5, status=200)
responses.add(responses.GET, f"{repository_one_digest['1']['url']}/b/{name_b_txt_sha1}",
body=content_b_txt_sha1, status=200)
responses.add(responses.GET, f"{repository_one_digest['1']['url']}/b/{name_b_txt_sha256}",
body=content_b_txt_sha256, status=200)
walker = brm.TreeWalker(server_url=brm.brm_server, api_root=brm.brm_api_root, username=brm.brm_user, api_token=brm.brm_token)
assert walker is not None
assert len(responses.calls) == 1
assert responses.calls[0].request.url == repositories_url
assert responses.calls[0].response.text == serialized_repositories
repositories = walker.repository_map()
assert repositories
level = 1
tree = {level: {}}
for key, repository in repositories.items():
url = repository["url"]
data = walker.repository_page(url)
tree[level][url] = {brm.EDGE: data[brm.HREFS]}
for url, downward_links in tree[level].items():
for relative_link in downward_links[brm.EDGE]:
tree[level][url][relative_link] = {}
node = brm.is_node(relative_link)
if not node and relative_link:
brm.easing()
data = walker.repository_page(f"{url}/{relative_link}")
tree[level][url][relative_link][brm.EDGE] = data[brm.HREFS]
else:
data = walker.repository_page(f"{url}")
tree[level][url][relative_link] = {
"url": f"{url}/{relative_link}",
**data[brm.META].get(relative_link, {"name": None, "api_ts": None, "h_size": None, "h_unit": None}),
**walker.hashes(f"{url}/{relative_link}"),
}
assert tree == expected_tree
@responses.activate
def test_tree_walker_ok_tree_edge_leaf_page():
base_url = ctx.BRM_SERVER.rstrip('/')
api_base_url = f'{base_url}{ctx.BRM_API_ROOT}'
repositories_in = [
{
'key': '1',
'type': 'LOCAL',
'description': 'describing me',
'url': f'{api_base_url}data',
'packageType': 'packageType value',
}
]
serialized_repositories = (
'[{"key": "1", "type": "LOCAL", "description": "describing me", "url": '
f'"{api_base_url}data", "packageType": "packageType value"}}]'
)
repository_one_digest = {
'1': {
'description': 'describing me',
'package_type': 'packageType value',
'url': f'{api_base_url}data',
}
}
repositories_url = f'{api_base_url}repositories/'
responses.add(responses.GET, base_url,
json={'go': 'ahead'}, status=200)
responses.add(responses.GET, api_base_url,
json={'api': 'found'}, status=200)
responses.add(responses.GET, repositories_url,
json=repositories_in, status=200)
f1, d1, s1, u1 = 'a.txt', '22-Aug-2019 09:53', '2.50', 'MB'
f2, d2, s2, u2 = 'b/', '22-Aug-2020 09:53', '1.23', 'kB'
page_a_text = (
f'<a href="{f1}">{f1}</a> {d1} {s1} {u1}'
'\n'
f'<a href="{f2}">{f2}</a> {d2} {s2} {u2}'
)
responses.add(responses.GET, repository_one_digest['1']['url'],
body=page_a_text, status=200)
f3, d3, s3, u3 = 'b.txt', '22-Aug-2020 09:53', '1.23', 'kB'
page_b_text = (
f'<a href="{f3}">{f3}</a> {d3} {s3} {u3}'
'\n'
'we ignore this'
)
responses.add(responses.GET, f"{repository_one_digest['1']['url']}/b/",
body=page_b_text, status=200)
expected_tree = {
1: {
'https://example.com/api/data': {
'@e': ['a.txt', 'b/'],
'a.txt': {
'api_ts': '22-Aug-2019 09:53',
'h_size': '2.50',
'h_unit': 'MB',
'md5': '921214c14fda7cd320caf04cfa26a224',
'name': 'a.txt',
'sha1': '7c6b7b5a662dcf0a21253bc2576d614f6b7fdc9c',
'sha256': 'fd60560f94c1ad21d45e2383f974dd77df582f7336816b7fb367d70ff001fc8f',
'url': 'https://example.com/api/data/a.txt'},
'b/': {
'@e': ['b.txt'],
'b.txt': {
'api_ts': '22-Aug-2020 09:53',
'h_size': '1.23',
'h_unit': 'kB',
'md5': '640ecd5a7cf34cbf8a921b37731db28b',
'name': 'b.txt',
'sha1': 'd07cd80af550e403df824d64feb67e34a9fbf020',
'sha256': '98dccf9bba2c9294ffcf7772d9dc72f80580d6c08cae4537dd861faa3c85d25e',
'url': 'https://example.com/api/data/b/b.txt'
}
}
}
}
}
name_a_txt = "a.txt"
content_a_txt = "This is ${data_root}/a.txt with a newline at the end of the file.\n"
name_a_txt_md5 = "a.txt.md5"
content_a_txt_md5 = "921214c14fda7cd320caf04cfa26a224"
name_a_txt_sha1 = "a.txt.sha1"
content_a_txt_sha1 = "7c6b7b5a662dcf0a21253bc2576d614f6b7fdc9c"
name_a_txt_sha256 = "a.txt.sha256"
content_a_txt_sha256 = "fd60560f94c1ad21d45e2383f974dd77df582f7336816b7fb367d70ff001fc8f"
responses.add(responses.GET, f"{repository_one_digest['1']['url']}/{name_a_txt}",
body=content_a_txt, status=200)
responses.add(responses.GET, f"{repository_one_digest['1']['url']}/{name_a_txt_md5}",
body=content_a_txt_md5, status=200)
responses.add(responses.GET, f"{repository_one_digest['1']['url']}/{name_a_txt_sha1}",
body=content_a_txt_sha1, status=200)
responses.add(responses.GET, f"{repository_one_digest['1']['url']}/{name_a_txt_sha256}",
body=content_a_txt_sha256, status=200)
name_b_txt = "b.txt"
content_b_txt = "This is ${data_root}/b/b.txt with a newline at the end of the file.\n"
name_b_txt_md5 = "b.txt.md5"
content_b_txt_md5 = "640ecd5a7cf34cbf8a921b37731db28b"
name_b_txt_sha1 = "b.txt.sha1"
content_b_txt_sha1 = "d07cd80af550e403df824d64feb67e34a9fbf020"
name_b_txt_sha256 = "b.txt.sha256"
content_b_txt_sha256 = "98dccf9bba2c9294ffcf7772d9dc72f80580d6c08cae4537dd861faa3c85d25e"
responses.add(responses.GET, f"{repository_one_digest['1']['url']}/b/{name_b_txt}",
body=content_b_txt, status=200)
responses.add(responses.GET, f"{repository_one_digest['1']['url']}/b/{name_b_txt_md5}",
body=content_b_txt_md5, status=200)
responses.add(responses.GET, f"{repository_one_digest['1']['url']}/b/{name_b_txt_sha1}",
body=content_b_txt_sha1, status=200)
responses.add(responses.GET, f"{repository_one_digest['1']['url']}/b/{name_b_txt_sha256}",
body=content_b_txt_sha256, status=200)
walker = brm.TreeWalker(server_url=brm.brm_server, api_root=brm.brm_api_root, username=brm.brm_user, api_token=brm.brm_token)
assert walker is not None
assert len(responses.calls) == 1
assert responses.calls[0].request.url == repositories_url
assert responses.calls[0].response.text == serialized_repositories
repositories = walker.repository_map()
assert repositories
level = 1
tree = {level: {}}
for key, repository in repositories.items():
url = repository["url"]
data = walker.repository_page(url)
tree[level][url] = {brm.EDGE: data[brm.HREFS]}
for url, downward_links in tree[level].items():
for relative_link in downward_links[brm.EDGE]:
tree[level][url][relative_link] = {}
node = brm.is_node(relative_link)
if not node and relative_link:
brm.easing()
data = walker.repository_page(f"{url}/{relative_link}")
tree[level][url][relative_link][brm.EDGE] = data[brm.HREFS]
else:
data = walker.repository_page(f"{url}")
tree[level][url][relative_link] = {
"url": f"{url}/{relative_link}",
**data[brm.META].get(relative_link, {"name": None, "api_ts": None, "h_size": None, "h_unit": None}),
**walker.hashes(f"{url}/{relative_link}"),
}
for relative_link in downward_links[brm.EDGE]:
for p1 in tree[level][url][relative_link].get(brm.EDGE, []):
tree[level][url][relative_link][p1] = {}
node = brm.is_node(p1)
if not node and relative_link:
brm.easing()
data = walker.repository_page(f"{url}/{relative_link}{p1}")
tree[level][url][relative_link][p1][brm.EDGE] = data[brm.HREFS]
else:
data = walker.repository_page(f"{url}/{relative_link}")
tree[level][url][relative_link][p1] = {
"url": f"{url}/{relative_link}{p1}",
**data[brm.META].get(p1, {"name": None, "api_ts": None, "h_size": None, "h_unit": None}),
**walker.hashes(f"{url}/{relative_link}{p1}"),
}
assert tree == expected_tree
| 39.013158
| 152
| 0.590455
| 3,702
| 29,650
| 4.50027
| 0.06456
| 0.019928
| 0.065546
| 0.07491
| 0.903301
| 0.883613
| 0.868607
| 0.853301
| 0.842917
| 0.842737
| 0
| 0.060479
| 0.261653
| 29,650
| 759
| 153
| 39.064559
| 0.69916
| 0.011636
| 0
| 0.726006
| 0
| 0.013932
| 0.2843
| 0.11088
| 0
| 0
| 0
| 0
| 0.065015
| 1
| 0.047988
| false
| 0
| 0.013932
| 0
| 0.06192
| 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
|
d83ce2be4b647c62e4d34d973644d1606f92659d
| 177
|
py
|
Python
|
_posts/panda_vs_python.py
|
hobson/hobson.github.io
|
45bb749f229380bbff73073b7fd156a2f7da85e0
|
[
"MIT"
] | 2
|
2019-09-06T17:53:52.000Z
|
2019-09-06T17:55:19.000Z
|
_posts/panda_vs_python.py
|
hobson/hobson.github.io
|
45bb749f229380bbff73073b7fd156a2f7da85e0
|
[
"MIT"
] | null | null | null |
_posts/panda_vs_python.py
|
hobson/hobson.github.io
|
45bb749f229380bbff73073b7fd156a2f7da85e0
|
[
"MIT"
] | null | null | null |
""" Garret's python vs panda comparison of speed for matching N**2 problem"""
# `list(enumerate(sents))` and `dict(map(lambda x: x[::-1], enumerate(sents))`
import pandas as pd
| 44.25
| 78
| 0.700565
| 29
| 177
| 4.275862
| 0.896552
| 0.225806
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.012987
| 0.129944
| 177
| 3
| 79
| 59
| 0.792208
| 0.836158
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 0
| 1
| 0
| 1
| 0
| 0
| null | 1
| 0
| 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
|
dc35b3703f6c328aa77ca52e86514f8f8be81bc7
| 68,018
|
py
|
Python
|
src/instructions.py
|
denim-romhacker/pynes
|
4cc33160865e1c4bc768c18b899431579f907324
|
[
"MIT"
] | null | null | null |
src/instructions.py
|
denim-romhacker/pynes
|
4cc33160865e1c4bc768c18b899431579f907324
|
[
"MIT"
] | null | null | null |
src/instructions.py
|
denim-romhacker/pynes
|
4cc33160865e1c4bc768c18b899431579f907324
|
[
"MIT"
] | null | null | null |
import addressingMode
# TODO: Verificar se nao existem enderecamentos maiores que 1 byte
def rel_addr(value):
if value & 0b10000000:
value &= 0b1111111
value -= 128
return value
def advancePC(cpu, size):
cpu.registers['PC'] += size
def setN(cpu, value):
if value & (1<<7) == 1 << 7:
cpu.setStatus(cpu.statusFlags['n'], 1)
else:
cpu.setStatus(cpu.statusFlags['n'], 0)
def setZ(cpu, value):
if value == 0:
cpu.setStatus(cpu.statusFlags['z'], 1)
else:
cpu.setStatus(cpu.statusFlags['z'], 0)
def setO(cpu, value):
cpu.setStatus(cpu.statusFlags['v'], value)
def setC(cpu, value):
cpu.setStatus(cpu.statusFlags['c'], value)
# Feito!
def ADC_Immediate(cpu):
size = 2
nCycles = 2
value = cpu.readMemory(cpu.registers['PC']+1)
carry = cpu.getStatus(cpu.statusFlags['c'])
tmp = value + cpu.registers['A'] + carry
setO(cpu, not(((cpu.registers['A'] ^ value) & 0x80)!=0) and (((cpu.registers['A'] ^ tmp) & 0x80)))
setC(cpu, tmp > 0xFF)
setN(cpu, tmp)
setZ(cpu, tmp & 0xFF)
cpu.registers['A'] = (tmp & 0xFF)
advancePC(cpu, size)
return nCycles
# Feito!
def ADC_Zero(cpu):
size = 2
nCycles = 3
address = addressingMode.Zero(cpu)
value = cpu.readMemory(address)
carry = cpu.getStatus(cpu.statusFlags['c'])
tmp = value + cpu.registers['A'] + carry
setO(cpu, not(((cpu.registers['A'] ^ value) & 0x80)!=0) and (((cpu.registers['A'] ^ tmp) & 0x80)))
setC(cpu, tmp > 0xFF)
setN(cpu, tmp)
setZ(cpu, tmp & 0xFF)
cpu.registers['A'] = (tmp & 0xFF)
advancePC(cpu, size)
return nCycles
# Feito!
def ADC_Zero_X(cpu):
size = 2
nCycles = 4
address = addressingMode.Zero_X(cpu)
value = cpu.readMemory(address)
carry = cpu.getStatus(cpu.statusFlags['c'])
tmp = value + cpu.registers['A'] + carry
setO(cpu, not(((cpu.registers['A'] ^ value) & 0x80)!=0) and (((cpu.registers['A'] ^ tmp) & 0x80)))
setC(cpu, tmp > 255)
setN(cpu, tmp)
setZ(cpu, tmp & 0xFF)
cpu.registers['A'] = (tmp & 0xFF)
advancePC(cpu, size)
return nCycles
# Feito!
def ADC_Absolute(cpu):
size = 3
nCycles = 4
address = addressingMode.Absolute(cpu)
value = cpu.readMemory(address)
carry = cpu.getStatus(cpu.statusFlags['c'])
tmp = value + cpu.registers['A'] + carry
setO(cpu, not(((cpu.registers['A'] ^ value) & 0x80)!=0) and (((cpu.registers['A'] ^ tmp) & 0x80)))
setC(cpu, tmp > 255)
setN(cpu, tmp)
setZ(cpu, tmp & 0xFF)
cpu.registers['A'] = (tmp & 0xFF)
advancePC(cpu, size)
return nCycles
# Feito!
def ADC_Absolute_X(cpu):
size = 3
nCycles = 4
address = addressingMode.Absolute_X(cpu)
value = cpu.readMemory(address)
carry = cpu.getStatus(cpu.statusFlags['c'])
tmp = value + cpu.registers['A'] + carry
setO(cpu, not(((cpu.registers['A'] ^ value) & 0x80)!=0) and (((cpu.registers['A'] ^ tmp) & 0x80)))
setC(cpu, tmp > 255)
setN(cpu, tmp)
setZ(cpu, tmp & 0xFF)
cpu.registers['A'] = (tmp & 0xFF)
advancePC(cpu, size)
return nCycles
# Feito!
def ADC_Absolute_Y(cpu):
size = 3
nCycles = 4
address = addressingMode.Absolute_Y(cpu)
value = cpu.readMemory(address)
carry = cpu.getStatus(cpu.statusFlags['c'])
tmp = value + cpu.registers['A'] + carry
setO(cpu, not(((cpu.registers['A'] ^ value) & 0x80)!=0) and (((cpu.registers['A'] ^ tmp) & 0x80)))
setC(cpu, tmp > 255)
setN(cpu, tmp)
setZ(cpu, tmp & 0xFF)
cpu.registers['A'] = (tmp & 0xFF)
advancePC(cpu, size)
return nCycles
# Feito!
def ADC_Indirect_X(cpu):
size = 2
nCycles = 6
address = addressingMode.Indirect_X(cpu)
value = cpu.readMemory(address)
carry = cpu.getStatus(cpu.statusFlags['c'])
tmp = value + cpu.registers['A'] + carry
setO(cpu, not(((cpu.registers['A'] ^ value) & 0x80)!=0) and (((cpu.registers['A'] ^ tmp) & 0x80)))
setC(cpu, tmp > 255)
setN(cpu, tmp)
setZ(cpu, tmp & 0xFF)
cpu.registers['A'] = (tmp & 0xFF)
advancePC(cpu, size)
return nCycles
# Feito!
def ADC_Indirect_Y(cpu):
size = 2
nCycles = 5
address = addressingMode.Indirect_Y(cpu)
value = cpu.readMemory(address)
carry = cpu.getStatus(cpu.statusFlags['c'])
tmp = value + cpu.registers['A'] + carry
setO(cpu, not(((cpu.registers['A'] ^ value) & 0x80)!=0) and (((cpu.registers['A'] ^ tmp) & 0x80)))
setC(cpu, tmp > 255)
setN(cpu, tmp)
setZ(cpu, tmp & 0xFF)
cpu.registers['A'] = (tmp & 0xFF)
advancePC(cpu, size)
return nCycles
# Feito!
def AND_Immediate(cpu):
size = 2
nCycles = 2
value = cpu.registers['A'] & cpu.readMemory(cpu.registers['PC']+1)
cpu.registers['A'] = value
advancePC(cpu, size)
setN(cpu, value)
setZ(cpu, value)
return nCycles
# Feito!
def AND_Zero(cpu):
size = 2
nCycles = 3
address = addressingMode.Zero(cpu)
value = cpu.readMemory(address)
cpu.registers['A'] &= value
advancePC(cpu, size)
setN(cpu, cpu.registers['A'])
setZ(cpu, cpu.registers['A'])
return nCycles
# Feito!
def AND_Zero_X(cpu):
size = 2
nCycles = 4
address = addressingMode.Zero_X(cpu)
value = cpu.readMemory(address)
cpu.registers['A'] &= value
advancePC(cpu, size)
setN(cpu, cpu.registers['A'])
setZ(cpu, cpu.registers['A'])
return nCycles
# Feito!
def AND_Absolute(cpu):
size = 3
nCycles = 4
address = addressingMode.Absolute(cpu)
value = cpu.readMemory(address)
cpu.registers['A'] &= value
advancePC(cpu, size)
setN(cpu, cpu.registers['A'])
setZ(cpu, cpu.registers['A'])
return nCycles
# Feito!
def AND_Absolute_X(cpu):
size = 3
nCycles = 4
address = addressingMode.Absolute_X(cpu)
value = cpu.readMemory(address)
cpu.registers['A'] &= value
advancePC(cpu, size)
setN(cpu, cpu.registers['A'])
setZ(cpu, cpu.registers['A'])
return nCycles
# Feito!
def AND_Absolute_Y(cpu):
size = 3
nCycles = 4
address = addressingMode.Absolute_Y(cpu)
value = cpu.readMemory(address)
cpu.registers['A'] &= value
advancePC(cpu, size)
setN(cpu, cpu.registers['A'])
setZ(cpu, cpu.registers['A'])
return nCycles
# Feito!
def AND_Indirect_X(cpu):
size = 2
nCycles = 6
address = addressingMode.Indirect_X(cpu)
value = cpu.readMemory(address)
cpu.registers['A'] &= value
advancePC(cpu, size)
setN(cpu, cpu.registers['A'])
setZ(cpu, cpu.registers['A'])
return nCycles
# Feito!
def AND_Indirect_Y(cpu):
size = 2
nCycles = 5
address = addressingMode.Indirect_Y(cpu)
value = cpu.readMemory(address)
cpu.registers['A'] &= value
advancePC(cpu, size)
setN(cpu, cpu.registers['A'])
setZ(cpu, cpu.registers['A'])
return nCycles
# Feito!
def ASL_Accumulator(cpu):
size = 1
nCycles = 2
value = cpu.registers['A']
setC(cpu, value & 0x80)
value <<= 1
value &= 0xFF
advancePC(cpu, size)
setN(cpu, value)
setZ(cpu, value)
cpu.registers['A'] = value
return nCycles
# Feito!
def ASL_Zero(cpu):
size = 2
nCycles = 5
address = addressingMode.Zero(cpu)
value = cpu.readMemory(address)
setC(cpu, value & 0x80)
value <<= 1
value &= 0xFF
advancePC(cpu, size)
setN(cpu, value)
setZ(cpu, value)
cpu.writeMemory(address, value)
return nCycles
# Feito!
def ASL_Zero_X(cpu):
size = 2
nCycles = 6
address = addressingMode.Zero_X(cpu)
value = cpu.readMemory(address)
setC(cpu, value & 0x80)
value <<= 1
value &= 0xFF
advancePC(cpu, size)
setN(cpu, value)
setZ(cpu, value)
cpu.writeMemory(address, value)
return nCycles
# Feito!
def ASL_Absolute(cpu):
size = 3
nCycles = 6
address = addressingMode.Absolute(cpu)
value = cpu.readMemory(address)
setC(cpu, value & 0x80)
value <<= 1
value &= 0xFF
advancePC(cpu, size)
setN(cpu, value)
setZ(cpu, value)
cpu.writeMemory(address, value)
return nCycles
# Feito!
def ASL_Absolute_X(cpu):
size = 3
nCycles = 7
address = addressingMode.Absolute_X(cpu)
value = cpu.readMemory(address)
setC(cpu, value & 0x80)
value <<= 1
value &= 0xFF
advancePC(cpu, size)
setN(cpu, value)
setZ(cpu, value)
cpu.writeMemory(address, value)
return nCycles
# Feito!
def BCC_Relative(cpu):
size = 2
nCycles = 2
value = cpu.readMemory(cpu.registers['PC']+1)
value = rel_addr(value)
if cpu.getStatus(cpu.statusFlags['c']) == False:
if (cpu.registers['PC'] & 0xFF00) != ((cpu.registers['PC'] + value) & 0xFF00):
nCycles += 2
else:
nCycles += 1
advancePC(cpu, value)
advancePC(cpu, size)
return nCycles
# Feito!
def BCS_Relative(cpu):
size = 2
nCycles = 2
value = cpu.readMemory(cpu.registers['PC']+1)
value = rel_addr(value)
if cpu.getStatus(cpu.statusFlags['c']) == True:
if (cpu.registers['PC'] & 0xFF00) != ((cpu.registers['PC'] + value) & 0xFF00):
nCycles += 2
else:
nCycles += 1
advancePC(cpu, value)
advancePC(cpu, size)
return nCycles
# Feito!
def BEQ_Relative(cpu):
size = 2
nCycles = 2
value = cpu.readMemory(cpu.registers['PC']+1)
value = rel_addr(value)
if cpu.getStatus(cpu.statusFlags['z']) == True:
if (cpu.registers['PC'] & 0xFF00) != ((cpu.registers['PC'] + value) & 0xFF00):
nCycles += 2
else:
nCycles += 1
advancePC(cpu, value)
advancePC(cpu, size)
return nCycles
# Feito!
def BIT_Zero(cpu):
size = 2
nCycles = 3
address = addressingMode.Zero(cpu)
value = cpu.readMemory(address)
advancePC(cpu, size)
setN(cpu, value)
setZ(cpu, value & cpu.registers['A'])
setO(cpu, (value >> 6) & 1)
return nCycles
# Feito!
def BIT_Absolute(cpu):
size = 3
nCycles = 4
address = addressingMode.Absolute(cpu)
value = cpu.readMemory(address)
advancePC(cpu, size)
setN(cpu, value)
setZ(cpu, value & cpu.registers['A'])
setO(cpu, (value >> 6) & 1)
return nCycles
# Feito!
def BMI_Relative(cpu):
size = 2
nCycles = 2
value = cpu.readMemory(cpu.registers['PC']+1)
value = rel_addr(value)
if cpu.getStatus(cpu.statusFlags['n']) == True:
if (cpu.registers['PC'] & 0xFF00) != ((cpu.registers['PC'] + value) & 0xFF00):
nCycles += 2
else:
nCycles += 1
advancePC(cpu, value)
advancePC(cpu, size)
return nCycles
# Feito!
def BNE_Relative(cpu):
size = 2
nCycles = 2
value = cpu.readMemory(cpu.registers['PC']+1)
value = rel_addr(value)
if cpu.getStatus(cpu.statusFlags['z']) == False:
if (cpu.registers['PC'] & 0xFF00) != ((cpu.registers['PC'] + value) & 0xFF00):
nCycles += 2
else:
nCycles += 1
advancePC(cpu, value)
advancePC(cpu, size)
return nCycles
# Feito!
def BPL_Relative(cpu):
size = 2
nCycles = 2
value = cpu.readMemory(cpu.registers['PC']+1)
value = rel_addr(value)
if cpu.getStatus(cpu.statusFlags['n']) == False:
nCycles += 1
if (cpu.registers['PC'] & 0xFF00) != ((cpu.registers['PC'] + value) & 0xFF00):
nCycles += 1
#cpu.registers['PC'] += 1
advancePC(cpu, value)
advancePC(cpu, size)
return nCycles
# Feito!
def BRK_Implied(cpu):
size = 1
nCycles = 7
cpu.registers['PC'] += 2
cpu.pushStack((cpu.registers['PC'] >> 8) & 0xFF)
cpu.pushStack(cpu.registers['PC'] & 0xFF)
cpu.setStatus(cpu.statusFlags['b'], 1)
cpu.pushStack(cpu.registers['P'])
cpu.setStatus(cpu.statusFlags['i'], 1)
cpu.registers['PC'] = (cpu.readMemory(0xFFFE) | (cpu.readMemory(0xFFFF) << 8))
advancePC(cpu, size)
return nCycles
# Feito!
def BVC_Relative(cpu):
size = 2
nCycles = 2
value = cpu.readMemory(cpu.registers['PC']+1)
value = rel_addr(value)
if cpu.getStatus(cpu.statusFlags['v']) == False:
if (cpu.registers['PC'] & 0xFF00) != ((cpu.registers['PC'] + value) & 0xFF00):
nCycles += 2
else:
nCycles += 1
advancePC(cpu, value)
advancePC(cpu, size)
return nCycles
# Feito!
def BVS_Relative(cpu):
size = 2
nCycles = 2
value = cpu.readMemory(cpu.registers['PC']+1)
value = rel_addr(value)
if cpu.getStatus(cpu.statusFlags['v']) == True:
if (cpu.registers['PC'] & 0xFF00) != ((cpu.registers['PC'] + value) & 0xFF00):
nCycles += 2
else:
nCycles += 1
advancePC(cpu, value)
advancePC(cpu, size)
return nCycles
# Feito!
def CLC_Implied(cpu):
size = 1
nCycles = 2
cpu.setStatus(cpu.statusFlags['c'], 0)
advancePC(cpu, size)
return nCycles
# Feito!
def CLD_Implied(cpu):
size = 1
nCycles = 2
cpu.setStatus(cpu.statusFlags['d'], 0)
advancePC(cpu, size)
return nCycles
# Feito!
def CLI_Implied(cpu):
size = 1
nCycles = 2
cpu.setStatus(cpu.statusFlags['i'], 0)
advancePC(cpu, size)
return nCycles
# Feito!
def CLV_Implied(cpu):
size = 1
nCycles = 2
cpu.setStatus(cpu.statusFlags['v'], 0)
advancePC(cpu, size)
return nCycles
# Feito!
def CMP_Immediate(cpu):
size = 2
nCycles = 2
value = cpu.readMemory(cpu.registers['PC']+1)
value = cpu.registers['A'] - value
advancePC(cpu, size)
setC(cpu, 1 if value >= 0 else 0)
setN(cpu, value)
setZ(cpu, value & 0xFF)
return nCycles
# Feito!
def CMP_Zero(cpu):
size = 2
nCycles = 3
address = addressingMode.Zero(cpu)
value = cpu.readMemory(address)
value = cpu.registers['A'] - value
advancePC(cpu, size)
setC(cpu, 1 if value >= 0 else 0)
setN(cpu, value)
setZ(cpu, value & 0xFF)
return nCycles
# Feito!
def CMP_Zero_X(cpu):
size = 2
nCycles = 4
address = addressingMode.Zero_X(cpu)
value = cpu.readMemory(address)
value = cpu.registers['A'] - value
advancePC(cpu, size)
setC(cpu, 1 if value >= 0 else 0)
setN(cpu, value)
setZ(cpu, value & 0xFF)
return nCycles
# Feito!
def CMP_Absolute(cpu):
size = 3
nCycles = 4
address = addressingMode.Absolute(cpu)
value = cpu.readMemory(address)
value = cpu.registers['A'] - value
advancePC(cpu, size)
setC(cpu, 1 if value >= 0 else 0)
setN(cpu, value)
setZ(cpu, value & 0xFF)
return nCycles
# Feito!
def CMP_Absolute_X(cpu):
size = 3
nCycles = 4
address = addressingMode.Absolute_X(cpu)
value = cpu.readMemory(address)
value = cpu.registers['A'] - value
advancePC(cpu, size)
setC(cpu, 1 if value >= 0 else 0)
setN(cpu, value)
setZ(cpu, value & 0xFF)
return nCycles
# Feito!
def CMP_Absolute_Y(cpu):
size = 3
nCycles = 4
address = addressingMode.Absolute_Y(cpu)
value = cpu.readMemory(address)
value = cpu.registers['A'] - value
advancePC(cpu, size)
setC(cpu, 1 if value >= 0 else 0)
setN(cpu, value)
setZ(cpu, value & 0xFF)
return nCycles
# Feito!
def CMP_Indirect_X(cpu):
size = 2
nCycles = 6
address = addressingMode.Indirect_X(cpu)
value = cpu.readMemory(address)
value = cpu.registers['A'] - value
advancePC(cpu, size)
setC(cpu, 1 if value >= 0 else 0)
setN(cpu, value)
setZ(cpu, value & 0xFF)
return nCycles
# Feito!
def CMP_Indirect_Y(cpu):
size = 2
nCycles = 5
address = addressingMode.Indirect_Y(cpu)
value = cpu.readMemory(address)
value = cpu.registers['A'] - value
advancePC(cpu, size)
setC(cpu, 1 if value >= 0 else 0)
setN(cpu, value)
setZ(cpu, value & 0xFF)
return nCycles
# Feito!
def CPX_Immediate(cpu):
size = 2
nCycles = 2
value = cpu.readMemory(cpu.registers['PC']+1)
value = cpu.registers['X'] - value
advancePC(cpu, size)
setC(cpu, 1 if value >= 0 else 0)
setN(cpu, value)
setZ(cpu, value & 0xFF)
return nCycles
# Feito!
def CPX_Zero(cpu):
size = 2
nCycles = 3
address = addressingMode.Zero(cpu)
value = cpu.readMemory(address)
value = cpu.registers['X'] - value
advancePC(cpu, size)
setC(cpu, 1 if value >= 0 else 0)
setN(cpu, value)
setZ(cpu, value & 0xFF)
return nCycles
# Feito!
def CPX_Absolute(cpu):
size = 3
nCycles = 4
address = addressingMode.Absolute(cpu)
value = cpu.readMemory(address)
value = cpu.registers['X'] - value
advancePC(cpu, size)
setC(cpu, 1 if value >= 0 else 0)
setN(cpu, value)
setZ(cpu, value & 0xFF)
return nCycles
# Feito!
def CPY_Immediate(cpu):
size = 2
nCycles = 2
value = cpu.readMemory(cpu.registers['PC']+1)
value = cpu.registers['Y'] - value
advancePC(cpu, size)
setC(cpu, 1 if value >= 0 else 0)
setN(cpu, value)
setZ(cpu, value & 0xFF)
return nCycles
# Feito!
def CPY_Zero(cpu):
size = 2
nCycles = 3
address = addressingMode.Zero(cpu)
value = cpu.readMemory(address)
value = cpu.registers['Y'] - value
advancePC(cpu, size)
setC(cpu, 1 if value >= 0 else 0)
setN(cpu, value)
setZ(cpu, value & 0xFF)
return nCycles
# Feito!
def CPY_Absolute(cpu):
size = 3
nCycles = 4
address = addressingMode.Absolute(cpu)
value = cpu.readMemory(address)
value = cpu.registers['Y'] - value
advancePC(cpu, size)
setC(cpu, 1 if value >= 0 else 0)
setN(cpu, value)
setZ(cpu, value & 0xFF)
return nCycles
# Feito!
def DEC_Zero(cpu):
size = 2
nCycles = 5
address = addressingMode.Zero(cpu)
value = cpu.readMemory(address)
value = (value - 1) & 0xFF
cpu.writeMemory(address, value)
advancePC(cpu, size)
setN(cpu, value)
setZ(cpu, value)
return nCycles
# Feito!
def DEC_Zero_X(cpu):
size = 2
nCycles = 6
address = addressingMode.Zero_X(cpu)
value = cpu.readMemory(address)
value = (value - 1) & 0xFF
cpu.writeMemory(address, value)
advancePC(cpu, size)
setN(cpu, value)
setZ(cpu, value)
return nCycles
# Feito!
def DEC_Absolute(cpu):
size = 3
nCycles = 6
address = addressingMode.Absolute(cpu)
value = cpu.readMemory(address)
value = (value - 1) & 0xFF
cpu.writeMemory(address, value)
advancePC(cpu, size)
setN(cpu, value)
setZ(cpu, value)
return nCycles
# Feito!
def DEC_Absolute_X(cpu):
size = 3
nCycles = 7
address = addressingMode.Absolute_X(cpu)
value = cpu.readMemory(address)
value = (value - 1) & 0xFF
cpu.writeMemory(address, value)
advancePC(cpu, size)
setN(cpu, value)
setZ(cpu, value)
return nCycles
# Feito!
def DEX_Implied(cpu):
size = 1
nCycles = 2
value = cpu.registers['X']
value = (value - 1) & 0xFF
cpu.registers['X'] = value
advancePC(cpu, size)
setN(cpu, value)
setZ(cpu, value)
return nCycles
# Feito!
def DEY_Implied(cpu):
size = 1
nCycles = 2
value = cpu.registers['Y']
value = (value - 1) & 0xFF
cpu.registers['Y'] = value
advancePC(cpu, size)
setN(cpu, value)
setZ(cpu, value)
return nCycles
# Feito!
def EOR_Immediate(cpu):
size = 2
nCycles = 2
value = cpu.readMemory(cpu.registers['PC']+1)
value ^= cpu.registers['A']
cpu.registers['A'] = value
advancePC(cpu, size)
setN(cpu, value)
setZ(cpu, value)
return nCycles
# Feito!
def EOR_Zero(cpu):
size = 2
nCycles = 3
address = addressingMode.Zero(cpu)
value = cpu.readMemory(address)
value ^= cpu.registers['A']
cpu.registers['A'] = value
advancePC(cpu, size)
setN(cpu, value)
setZ(cpu, value)
return nCycles
# Feito!
def EOR_Zero_X(cpu):
size = 2
nCycles = 4
address = addressingMode.Zero_X(cpu)
value = cpu.readMemory(address)
value ^= cpu.registers['A']
cpu.registers['A'] = value
advancePC(cpu, size)
setN(cpu, value)
setZ(cpu, value)
return nCycles
# Feito!
def EOR_Absolute(cpu):
size = 3
nCycles = 4
address = addressingMode.Absolute(cpu)
value = cpu.readMemory(address)
value ^= cpu.registers['A']
cpu.registers['A'] = value
advancePC(cpu, size)
setN(cpu, value)
setZ(cpu, value)
return nCycles
# Feito!
def EOR_Absolute_X(cpu):
size = 3
nCycles = 4
address = addressingMode.Absolute_X(cpu)
value = cpu.readMemory(address)
value ^= cpu.registers['A']
cpu.registers['A'] = value
advancePC(cpu, size)
setN(cpu, value)
setZ(cpu, value)
return nCycles
# Feito!
def EOR_Absolute_Y(cpu):
size = 3
nCycles = 4
address = addressingMode.Absolute_Y(cpu)
value = cpu.readMemory(address)
value ^= cpu.registers['A']
cpu.registers['A'] = value
advancePC(cpu, size)
setN(cpu, value)
setZ(cpu, value)
return nCycles
# Feito!
def EOR_Indirect_X(cpu):
size = 2
nCycles = 6
address = addressingMode.Indirect_X(cpu)
value = cpu.readMemory(address)
value ^= cpu.registers['A']
cpu.registers['A'] = value
advancePC(cpu, size)
setN(cpu, value)
setZ(cpu, value)
return nCycles
# Feito!
def EOR_Indirect_Y(cpu):
size = 2
nCycles = 5
address = addressingMode.Indirect_Y(cpu)
value = cpu.readMemory(address)
value ^= cpu.registers['A']
cpu.registers['A'] = value
advancePC(cpu, size)
setN(cpu, value)
setZ(cpu, value)
return nCycles
# Feito!
def INC_Zero(cpu):
size = 2
nCycles = 5
address = addressingMode.Zero(cpu)
value = cpu.readMemory(address)
value = (value + 1) & 0xFF
cpu.writeMemory(address, value)
advancePC(cpu, size)
setN(cpu, value)
setZ(cpu, value)
return nCycles
# Feito!
def INC_Zero_X(cpu):
size = 2
nCycles = 6
address = addressingMode.Zero_X(cpu)
value = cpu.readMemory(address)
value = (value + 1) & 0xFF
cpu.writeMemory(address, value)
advancePC(cpu, size)
setN(cpu, value)
setZ(cpu, value)
return nCycles
# Feito!
def INC_Absolute(cpu):
size = 3
nCycles = 6
address = addressingMode.Absolute(cpu)
value = cpu.readMemory(address)
value = (value + 1) & 0xFF
cpu.writeMemory(address, value)
advancePC(cpu, size)
setN(cpu, value)
setZ(cpu, value)
return nCycles
# Feito!
def INC_Absolute_X(cpu):
size = 3
nCycles = 7
address = addressingMode.Absolute_X(cpu)
value = cpu.readMemory(address)
value = (value + 1) & 0xFF
cpu.writeMemory(address, value)
advancePC(cpu, size)
setN(cpu, value)
setZ(cpu, value)
return nCycles
# Feito!
def INX_Implied(cpu):
size = 1
nCycles = 2
value = cpu.registers['X']
value = (value + 1) & 0xFF
cpu.registers['X'] = value
advancePC(cpu, size)
setN(cpu, value)
setZ(cpu, value)
return nCycles
# Feito!
def INY_Implied(cpu):
size = 1
nCycles = 2
value = cpu.registers['Y']
value = (value + 1) & 0xFF
cpu.registers['Y'] = value
advancePC(cpu, size)
setN(cpu, value)
setZ(cpu, value)
return nCycles
# Feito!
def JMP_Absolute(cpu):
size = 3
nCycles = 3
address = addressingMode.Absolute(cpu)
advancePC(cpu, size)
cpu.registers['PC'] = address
return nCycles
# Feito!
def JMP_Indirect(cpu):
size = 3
nCycles = 5
address = addressingMode.Indirect(cpu)
advancePC(cpu, size)
cpu.registers['PC'] = address
return nCycles
# Feito!
def JSR_Absolute(cpu):
size = 3
nCycles = 6
address = addressingMode.Absolute(cpu)
advancePC(cpu, 2)
cpu.pushStack((cpu.registers['PC'] >> 8) & 0xFF)
cpu.pushStack(cpu.registers['PC'] & 0xFF)
cpu.registers['PC'] = address
return nCycles
# Feito!
def LDA_Immediate(cpu):
size = 2
nCycles = 2
value = cpu.readMemory(cpu.registers['PC']+1)
cpu.registers['A'] = value
advancePC(cpu, size)
setN(cpu, value)
setZ(cpu, value)
return nCycles
# Feito!
def LDA_Zero(cpu):
size = 2
nCycles = 3
address = addressingMode.Zero(cpu)
value = cpu.readMemory(address)
cpu.registers['A'] = value
advancePC(cpu, size)
setN(cpu, value)
setZ(cpu, value)
return nCycles
# Feito!
def LDA_Zero_X(cpu):
size = 2
nCycles = 4
address = addressingMode.Zero_X(cpu)
value = cpu.readMemory(address)
cpu.registers['A'] = value
advancePC(cpu, size)
setN(cpu, value)
setZ(cpu, value)
return nCycles
# Feito!
def LDA_Absolute(cpu):
size = 3
nCycles = 4
address = addressingMode.Absolute(cpu)
value = cpu.readMemory(address)
cpu.registers['A'] = value
advancePC(cpu, size)
setN(cpu, value)
setZ(cpu, value)
return nCycles
# Feito!
def LDA_Absolute_X(cpu):
size = 3
nCycles = 4
address = addressingMode.Absolute_X(cpu)
value = cpu.readMemory(address)
cpu.registers['A'] = value
advancePC(cpu, size)
setN(cpu, value)
setZ(cpu, value)
return nCycles
# Feito!
def LDA_Absolute_Y(cpu):
size = 3
nCycles = 4
address = addressingMode.Absolute_Y(cpu)
value = cpu.readMemory(address)
cpu.registers['A'] = value
advancePC(cpu, size)
setN(cpu, value)
setZ(cpu, value)
return nCycles
# Feito!
def LDA_Indirect_X(cpu):
size = 2
nCycles = 6
address = addressingMode.Indirect_X(cpu)
value = cpu.readMemory(address)
cpu.registers['A'] = value
advancePC(cpu, size)
setN(cpu, value)
setZ(cpu, value)
return nCycles
# Feito!
def LDA_Indirect_Y(cpu):
size = 2
nCycles = 5
address = addressingMode.Indirect_Y(cpu)
value = cpu.readMemory(address)
cpu.registers['A'] = value
advancePC(cpu, size)
setN(cpu, value)
setZ(cpu, value)
return nCycles
# Feito!
def LDX_Immediate(cpu):
size = 2
nCycles = 2
value = cpu.readMemory(cpu.registers['PC']+1)
cpu.registers['X'] = value
advancePC(cpu, size)
setN(cpu, value)
setZ(cpu, value)
return nCycles
# Feito!
def LDX_Zero(cpu):
size = 2
nCycles = 3
address = addressingMode.Zero(cpu)
value = cpu.readMemory(address)
cpu.registers['X'] = value
advancePC(cpu, size)
setN(cpu, value)
setZ(cpu, value)
return nCycles
# Feito!
def LDX_Zero_Y(cpu):
size = 2
nCycles = 4
address = addressingMode.Zero_Y(cpu)
value = cpu.readMemory(address)
cpu.registers['X'] = value
advancePC(cpu, size)
setN(cpu, value)
setZ(cpu, value)
return nCycles
# Feito!
def LDX_Absolute(cpu):
size = 3
nCycles = 4
address = addressingMode.Absolute(cpu)
value = cpu.readMemory(address)
cpu.registers['X'] = value
advancePC(cpu, size)
setN(cpu, value)
setZ(cpu, value)
return nCycles
# Feito!
def LDX_Absolute_Y(cpu):
size = 3
nCycles = 4
address = addressingMode.Absolute_Y(cpu)
value = cpu.readMemory(address)
cpu.registers['X'] = value
advancePC(cpu, size)
setN(cpu, value)
setZ(cpu, value)
return nCycles
# Feito!
def LDY_Immediate(cpu):
size = 2
nCycles = 2
value = cpu.readMemory(cpu.registers['PC']+1)
cpu.registers['Y'] = value
advancePC(cpu, size)
setN(cpu, value)
setZ(cpu, value)
return nCycles
# Feito!
def LDY_Zero(cpu):
size = 2
nCycles = 3
address = addressingMode.Zero(cpu)
value = cpu.readMemory(address)
cpu.registers['Y'] = value
advancePC(cpu, size)
setN(cpu, value)
setZ(cpu, value)
return nCycles
# Feito!
def LDY_Zero_X(cpu):
size = 2
nCycles = 4
address = addressingMode.Zero_X(cpu)
value = cpu.readMemory(address)
cpu.registers['Y'] = value
advancePC(cpu, size)
setN(cpu, value)
setZ(cpu, value)
return nCycles
# Feito!
def LDY_Absolute(cpu):
size = 3
nCycles = 4
address = addressingMode.Absolute(cpu)
value = cpu.readMemory(address)
cpu.registers['Y'] = value
advancePC(cpu, size)
setN(cpu, value)
setZ(cpu, value)
return nCycles
# Feito!
def LDY_Absolute_X(cpu):
size = 3
nCycles = 4
address = addressingMode.Absolute_X(cpu)
value = cpu.readMemory(address)
cpu.registers['Y'] = value
advancePC(cpu, size)
setN(cpu, value)
setZ(cpu, value)
return nCycles
# Feito!
def LSR_Accumulator(cpu):
size = 1
nCycles = 2
value = cpu.registers['A']
setC(cpu, value & 0x01)
value >>= 1
cpu.registers['A'] = value
advancePC(cpu, size)
setN(cpu, value)
setZ(cpu, value)
return nCycles
# Feito!
def LSR_Zero(cpu):
size = 2
nCycles = 5
address = addressingMode.Zero(cpu)
value = cpu.readMemory(address)
setC(cpu, value & 0x01)
value >>= 1
cpu.writeMemory(address, value)
advancePC(cpu, size)
setN(cpu, value)
setZ(cpu, value)
return nCycles
# Feito!
def LSR_Zero_X(cpu):
size = 2
nCycles = 6
address = addressingMode.Zero_X(cpu)
value = cpu.readMemory(address)
setC(cpu, value & 0x01)
value >>= 1
cpu.writeMemory(address, value)
advancePC(cpu, size)
setN(cpu, value)
setZ(cpu, value)
return nCycles
# Feito!
def LSR_Absolute(cpu):
size = 3
nCycles = 6
address = addressingMode.Absolute(cpu)
value = cpu.readMemory(address)
setC(cpu, value & 0x01)
value >>= 1
cpu.writeMemory(address, value)
advancePC(cpu, size)
setN(cpu, value)
setZ(cpu, value)
return nCycles
# Feito!
def LSR_Absolute_X(cpu):
size = 3
nCycles = 7
address = addressingMode.Absolute_X(cpu)
value = cpu.readMemory(address)
setC(cpu, value & 0x01)
value >>= 1
cpu.writeMemory(address, value)
advancePC(cpu, size)
setN(cpu, value)
setZ(cpu, value)
return nCycles
# Feito!
def NOP_Implied(cpu):
size = 1
nCycles = 2
advancePC(cpu, size)
return nCycles
# Feito!
def ORA_Immediate(cpu):
size = 2
nCycles = 2
value = cpu.readMemory(cpu.registers['PC']+1)
value |= cpu.registers['A']
advancePC(cpu, size)
cpu.registers['A'] = value
setN(cpu, value)
setZ(cpu, value)
return nCycles
# Feito!
def ORA_Zero(cpu):
size = 2
nCycles = 3
address = addressingMode.Zero(cpu)
value = cpu.readMemory(address)
value |= cpu.registers['A']
advancePC(cpu, size)
cpu.registers['A'] = value
setN(cpu, value)
setZ(cpu, value)
return nCycles
# Feito!
def ORA_Zero_X(cpu):
size = 2
nCycles = 4
address = addressingMode.Zero_X(cpu)
value = cpu.readMemory(address)
value |= cpu.registers['A']
advancePC(cpu, size)
cpu.registers['A'] = value
setN(cpu, value)
setZ(cpu, value)
return nCycles
# Feito!
def ORA_Absolute(cpu):
size = 3
nCycles = 4
address = addressingMode.Absolute(cpu)
value = cpu.readMemory(address)
value |= cpu.registers['A']
advancePC(cpu, size)
cpu.registers['A'] = value
setN(cpu, value)
setZ(cpu, value)
return nCycles
# Feito!
def ORA_Absolute_X(cpu):
size = 3
nCycles = 4
address = addressingMode.Absolute_X(cpu)
value = cpu.readMemory(address)
value |= cpu.registers['A']
advancePC(cpu, size)
cpu.registers['A'] = value
setN(cpu, value)
setZ(cpu, value)
return nCycles
# Feito!
def ORA_Absolute_Y(cpu):
size = 3
nCycles = 4
address = addressingMode.Absolute_Y(cpu)
value = cpu.readMemory(address)
value |= cpu.registers['A']
advancePC(cpu, size)
cpu.registers['A'] = value
setN(cpu, value)
setZ(cpu, value)
return nCycles
# Feito!
def ORA_Indirect_X(cpu):
size = 2
nCycles = 6
address = addressingMode.Indirect_X(cpu)
value = cpu.readMemory(address)
value |= cpu.registers['A']
advancePC(cpu, size)
cpu.registers['A'] = value
setN(cpu, value)
setZ(cpu, value)
return nCycles
# Feito!
def ORA_Indirect_Y(cpu):
size = 2
nCycles = 5
address = addressingMode.Indirect_Y(cpu)
value = cpu.readMemory(address)
value |= cpu.registers['A']
advancePC(cpu, size)
cpu.registers['A'] = value
setN(cpu, value)
setZ(cpu, value)
return nCycles
# Feito!
def PHA_Implied(cpu):
size = 1
nCycles = 3
value = cpu.registers['A']
cpu.pushStack(value)
advancePC(cpu, size)
return nCycles
# Feito!
def PHP_Implied(cpu):
size = 1
nCycles = 3
value = cpu.registers['P']
cpu.pushStack(value)
advancePC(cpu, size)
return nCycles
# Feito!
def PLA_Implied(cpu):
size = 1
nCycles = 4
value = cpu.pullStack()
cpu.registers['A'] = value
advancePC(cpu, size)
setN(cpu, value)
setZ(cpu, value)
return nCycles
# Feito!
def PLP_Implied(cpu):
size = 1
nCycles = 4
value = cpu.pullStack()
# Don't set the break flag
cpu.registers['P'] = (value & 0xEF)
# Always set the non used flag
cpu.registers['P'] |= (1 << 5)
advancePC(cpu, size)
return nCycles
# Feito!
def ROL_Accumulator(cpu):
size = 1
nCycles = 2
value = cpu.registers['A']
carry = cpu.getStatus(cpu.statusFlags['c'])
setC(cpu, (value >> 7) & 1)
value = ((value << 1) & 0xFF) + carry
advancePC(cpu, size)
setN(cpu, value)
setZ(cpu, value)
cpu.registers['A'] = value
return nCycles
# Feito!
def ROL_Zero(cpu):
size = 2
nCycles = 5
address = addressingMode.Zero(cpu)
value = cpu.readMemory(address)
carry = cpu.getStatus(cpu.statusFlags['c'])
setC(cpu, (value >> 7) & 1)
value = ((value << 1) & 0xFF) + carry
advancePC(cpu, size)
setN(cpu, value)
setZ(cpu, value)
cpu.writeMemory(address, value)
return nCycles
# Feito!
def ROL_Zero_X(cpu):
size = 2
nCycles = 6
address = addressingMode.Zero_X(cpu)
value = cpu.readMemory(address)
carry = cpu.getStatus(cpu.statusFlags['c'])
setC(cpu, (value >> 7) & 1)
value = ((value << 1) & 0xFF) + carry
advancePC(cpu, size)
setN(cpu, value)
setZ(cpu, value)
cpu.writeMemory(address, value)
return nCycles
# Feito!
def ROL_Absolute(cpu):
size = 3
nCycles = 6
address = addressingMode.Absolute(cpu)
value = cpu.readMemory(address)
carry = cpu.getStatus(cpu.statusFlags['c'])
setC(cpu, (value >> 7) & 1)
value = ((value << 1) & 0xFF) + carry
advancePC(cpu, size)
setN(cpu, value)
setZ(cpu, value)
cpu.writeMemory(address, value)
return nCycles
# Feito!
def ROL_Absolute_X(cpu):
size = 3
nCycles = 7
address = addressingMode.Absolute_X(cpu)
value = cpu.readMemory(address)
carry = cpu.getStatus(cpu.statusFlags['c'])
setC(cpu, (value >> 7) & 1)
value = ((value << 1) & 0xFF) + carry
advancePC(cpu, size)
setN(cpu, value)
setZ(cpu, value)
cpu.writeMemory(address, value)
return nCycles
# Feito!
def ROR_Accumulator(cpu):
size = 1
nCycles = 2
value = cpu.registers['A']
if cpu.getStatus(cpu.statusFlags['c']):
value |= 0x100
setC(cpu, value & 0x01)
value >>= 1
advancePC(cpu, size)
setN(cpu, value)
setZ(cpu, value)
cpu.registers['A'] = value
return nCycles
# Feito!
def ROR_Zero(cpu):
size = 2
nCycles = 5
address = addressingMode.Zero(cpu)
value = cpu.readMemory(address)
carry = (cpu.getStatus(cpu.statusFlags['c']) << 7)
setC(cpu, value & 0x01)
value = (value >> 1) + carry
advancePC(cpu, size)
setN(cpu, (value >> 7) & 1)
setZ(cpu, value)
cpu.writeMemory(address, value)
return nCycles
# Feito!
def ROR_Zero_X(cpu):
size = 2
nCycles = 6
address = addressingMode.Zero_X(cpu)
value = cpu.readMemory(address)
carry = (cpu.getStatus(cpu.statusFlags['c']) << 7)
setC(cpu, value & 0x01)
value = (value >> 1) + carry
advancePC(cpu, size)
setN(cpu, (value >> 7) & 1)
setZ(cpu, value)
cpu.writeMemory(address, value)
return nCycles
# Feito!
def ROR_Absolute(cpu):
size = 3
nCycles = 6
address = addressingMode.Absolute(cpu)
value = cpu.readMemory(address)
carry = (cpu.getStatus(cpu.statusFlags['c']) << 7)
setC(cpu, value & 0x01)
value = (value >> 1) + carry
advancePC(cpu, size)
setN(cpu, (value >> 7) & 1)
setZ(cpu, value)
cpu.writeMemory(address, value)
return nCycles
# Feito!
def ROR_Absolute_X(cpu):
size = 3
nCycles = 7
address = addressingMode.Absolute_X(cpu)
value = cpu.readMemory(address)
carry = (cpu.getStatus(cpu.statusFlags['c']) << 7)
setC(cpu, value & 0x01)
value = (value >> 1) + carry
advancePC(cpu, size)
setN(cpu, (value >> 7) & 1)
setZ(cpu, value)
cpu.writeMemory(address, value)
return nCycles
# Feito!
def RTI_Implied(cpu):
size = 1
nCycles = 6
value = cpu.pullStack()
cpu.registers['P'] = value
cpu.registers['P'] |= (1 << 5)
value = cpu.pullStack()
value |= (cpu.pullStack() << 8)
cpu.registers['PC'] = value
return nCycles
# Feito!
def RTS_Implied(cpu):
size = 1
nCycles = 6
value = cpu.pullStack()
value += ((cpu.pullStack()) << 8)
cpu.registers['PC'] = value
advancePC(cpu, size)
return nCycles
# Feito!
def SBC_Immediate(cpu):
size = 2
nCycles = 2
value = cpu.readMemory(cpu.registers['PC']+1)
carry = cpu.getStatus(cpu.statusFlags['c'])
#Todo: Verificar o (1 - carry) depois
tmp = cpu.registers['A'] - value - (1 - carry)
setN(cpu, tmp)
setZ(cpu, tmp & 0xFF)
setO(cpu, (((cpu.registers['A'] ^ tmp) & 0x80) != 0 and ((cpu.registers['A'] ^ value) & 0x80) != 0))
setC(cpu, 0 if tmp < 0 else 1)
cpu.registers['A'] = (tmp & 0xFF)
advancePC(cpu, size)
return nCycles
# Feito!
def SBC_Zero(cpu):
size = 2
nCycles = 3
address = addressingMode.Zero(cpu)
value = cpu.readMemory(address)
carry = cpu.getStatus(cpu.statusFlags['c'])
tmp = cpu.registers['A'] - value - (1 - carry)
setN(cpu, tmp)
setZ(cpu, tmp & 0xFF)
setO(cpu, (((cpu.registers['A'] ^ tmp) & 0x80) != 0 and ((cpu.registers['A'] ^ value) & 0x80) != 0))
setC(cpu, 0 if tmp < 0 else 1)
cpu.registers['A'] = (tmp & 0xFF)
advancePC(cpu, size)
return nCycles
# Feito!
def SBC_Zero_X(cpu):
size = 2
nCycles = 4
address = addressingMode.Zero_X(cpu)
value = cpu.readMemory(address)
carry = cpu.getStatus(cpu.statusFlags['c'])
tmp = cpu.registers['A'] - value - (1 - carry)
setN(cpu, tmp)
setZ(cpu, tmp & 0xFF)
setO(cpu, (((cpu.registers['A'] ^ tmp) & 0x80) != 0 and ((cpu.registers['A'] ^ value) & 0x80) != 0))
setC(cpu, 0 if tmp < 0 else 1)
cpu.registers['A'] = (tmp & 0xFF)
advancePC(cpu, size)
return nCycles
# Feito!
def SBC_Absolute(cpu):
size = 3
nCycles = 4
address = addressingMode.Absolute(cpu)
value = cpu.readMemory(address)
carry = cpu.getStatus(cpu.statusFlags['c'])
tmp = cpu.registers['A'] - value - (1 - carry)
setN(cpu, tmp)
setZ(cpu, tmp & 0xFF)
setO(cpu, (((cpu.registers['A'] ^ tmp) & 0x80) != 0 and ((cpu.registers['A'] ^ value) & 0x80) != 0))
setC(cpu, 0 if tmp < 0 else 1)
cpu.registers['A'] = (tmp & 0xFF)
advancePC(cpu, size)
return nCycles
# Feito!
def SBC_Absolute_X(cpu):
size = 3
nCycles = 4
address = addressingMode.Absolute_X(cpu)
value = cpu.readMemory(address)
carry = cpu.getStatus(cpu.statusFlags['c'])
tmp = cpu.registers['A'] - value - (1 - carry)
setN(cpu, tmp)
setZ(cpu, tmp & 0xFF)
setO(cpu, (((cpu.registers['A'] ^ tmp) & 0x80) != 0 and ((cpu.registers['A'] ^ value) & 0x80) != 0))
setC(cpu, 0 if tmp < 0 else 1)
cpu.registers['A'] = (tmp & 0xFF)
advancePC(cpu, size)
return nCycles
# Feito!
def SBC_Absolute_Y(cpu):
size = 3
nCycles = 4
address = addressingMode.Absolute_Y(cpu)
value = cpu.readMemory(address)
carry = cpu.getStatus(cpu.statusFlags['c'])
tmp = cpu.registers['A'] - value - (1 - carry)
setN(cpu, tmp)
setZ(cpu, tmp & 0xFF)
setO(cpu, (((cpu.registers['A'] ^ tmp) & 0x80) != 0 and ((cpu.registers['A'] ^ value) & 0x80) != 0))
setC(cpu, 0 if tmp < 0 else 1)
cpu.registers['A'] = (tmp & 0xFF)
advancePC(cpu, size)
return nCycles
# Feito!
def SBC_Indirect_X(cpu):
size = 2
nCycles = 6
address = addressingMode.Indirect_X(cpu)
value = cpu.readMemory(address)
carry = cpu.getStatus(cpu.statusFlags['c'])
tmp = cpu.registers['A'] - value - (1 - carry)
setN(cpu, tmp)
setZ(cpu, tmp & 0xFF)
setO(cpu, (((cpu.registers['A'] ^ tmp) & 0x80) != 0 and ((cpu.registers['A'] ^ value) & 0x80) != 0))
setC(cpu, 0 if tmp < 0 else 1)
cpu.registers['A'] = (tmp & 0xFF)
advancePC(cpu, size)
return nCycles
# Feito!
def SBC_Indirect_Y(cpu):
size = 2
nCycles = 5
address = addressingMode.Indirect_Y(cpu)
value = cpu.readMemory(address)
carry = cpu.getStatus(cpu.statusFlags['c'])
tmp = cpu.registers['A'] - value - (1 - carry)
setN(cpu, tmp)
setZ(cpu, tmp & 0xFF)
setO(cpu, (((cpu.registers['A'] ^ tmp) & 0x80) != 0 and ((cpu.registers['A'] ^ value) & 0x80) != 0))
setC(cpu, 0 if tmp < 0 else 1)
cpu.registers['A'] = (tmp & 0xFF)
advancePC(cpu, size)
return nCycles
# Feito!
def SEC_Implied(cpu):
size = 1
nCycles = 2
cpu.setStatus(cpu.statusFlags['c'], 1)
advancePC(cpu, size)
return nCycles
# Feito!
def SED_Implied(cpu):
size = 1
nCycles = 2
cpu.setStatus(cpu.statusFlags['d'], 1)
advancePC(cpu, size)
return nCycles
# Feito!
def SEI_Implied(cpu):
size = 1
nCycles = 2
cpu.setStatus(cpu.statusFlags['i'], 1)
advancePC(cpu, size)
return nCycles
# Feito!
def STA_Zero(cpu):
size = 2
nCycles = 3
address = addressingMode.Zero(cpu)
cpu.writeMemory(address, cpu.registers['A'])
advancePC(cpu, size)
return nCycles
# Feito!
def STA_Zero_X(cpu):
size = 2
nCycles = 4
address = addressingMode.Zero_X(cpu)
cpu.writeMemory(address, cpu.registers['A'])
advancePC(cpu, size)
return nCycles
# Feito!
def STA_Absolute(cpu):
size = 3
nCycles = 4
address = addressingMode.Absolute(cpu)
cpu.writeMemory(address, cpu.registers['A'])
advancePC(cpu, size)
return nCycles
# Feito!
def STA_Absolute_X(cpu):
size = 3
nCycles = 5
address = addressingMode.Absolute_X(cpu)
cpu.writeMemory(address, cpu.registers['A'])
advancePC(cpu, size)
return nCycles
# Feito!
def STA_Absolute_Y(cpu):
size = 3
nCycles = 5
address = addressingMode.Absolute_Y(cpu)
cpu.writeMemory(address, cpu.registers['A'])
advancePC(cpu, size)
return nCycles
# Feito!
def STA_Indirect_X(cpu):
size = 2
nCycles = 6
address = addressingMode.Indirect_X(cpu)
cpu.writeMemory(address, cpu.registers['A'])
advancePC(cpu, size)
return nCycles
# Feito!
def STA_Indirect_Y(cpu):
size = 2
nCycles = 6
address = addressingMode.Indirect_Y(cpu)
cpu.writeMemory(address, cpu.registers['A'])
advancePC(cpu, size)
return nCycles
# Feito!
def STX_Zero(cpu):
size = 2
nCycles = 3
address = addressingMode.Zero(cpu)
cpu.writeMemory(address, cpu.registers['X'])
advancePC(cpu, size)
return nCycles
# Feito!
def STX_Zero_Y(cpu):
size = 2
nCycles = 4
address = addressingMode.Zero_Y(cpu)
cpu.writeMemory(address, cpu.registers['X'])
advancePC(cpu, size)
return nCycles
# Feito!
def STX_Absolute(cpu):
size = 3
nCycles = 4
address = addressingMode.Absolute(cpu)
cpu.writeMemory(address, cpu.registers['X'])
advancePC(cpu, size)
return nCycles
# Feito!
def STY_Zero(cpu):
size = 2
nCycles = 3
address = addressingMode.Zero(cpu)
cpu.writeMemory(address, cpu.registers['Y'])
advancePC(cpu, size)
return nCycles
# Feito!
def STY_Zero_X(cpu):
size = 2
nCycles = 4
address = addressingMode.Zero_X(cpu)
cpu.writeMemory(address, cpu.registers['Y'])
advancePC(cpu, size)
return nCycles
# Feito!
def STY_Absolute(cpu):
size = 3
nCycles = 4
address = addressingMode.Absolute(cpu)
cpu.writeMemory(address, cpu.registers['Y'])
advancePC(cpu, size)
return nCycles
# Feito!
def TAX_Implied(cpu):
size = 1
nCycles = 2
value = cpu.registers['A']
setN(cpu, value)
setZ(cpu, value)
cpu.registers['X'] = value
advancePC(cpu, size)
return nCycles
# Feito!
def TAY_Implied(cpu):
size = 1
nCycles = 2
value = cpu.registers['A']
setN(cpu, value)
setZ(cpu, value)
cpu.registers['Y'] = value
advancePC(cpu, size)
return nCycles
# Feito!
def TSX_Implied(cpu):
size = 1
nCycles = 2
value = cpu.registers['SP']
setN(cpu, value)
setZ(cpu, value)
cpu.registers['X'] = value
advancePC(cpu, size)
return nCycles
# Feito!
def TXA_Implied(cpu):
size = 1
nCycles = 2
value = cpu.registers['X']
setN(cpu, value)
setZ(cpu, value)
cpu.registers['A'] = value
advancePC(cpu, size)
return nCycles
# Feito!
def TXS_Implied(cpu):
size = 1
nCycles = 2
cpu.registers['SP'] = cpu.registers['X']
advancePC(cpu, size)
return nCycles
# Feito!
def TYA_Implied(cpu):
size = 1
nCycles = 2
value = cpu.registers['Y']
setN(cpu, value)
setZ(cpu, value)
cpu.registers['A'] = value
advancePC(cpu, size)
return nCycles
# Unofficial Opcodes
def DCP_Zero(cpu):
size = 2
nCycles = 5
address = addressingMode.Zero(cpu)
value = cpu.readMemory(address)
value = (value - 1) & 0xFF
cpu.writeMemory(address, value)
value = cpu.registers['A'] - value
advancePC(cpu, size)
setC(cpu, ~value >> 8 & 0x1)
setN(cpu, value)
setZ(cpu, value & 0xFF)
return nCycles
def DCP_Zero_X(cpu):
size = 2
nCycles = 6
address = addressingMode.Zero_X(cpu)
value = cpu.readMemory(address)
value = (value - 1) & 0xFF
cpu.writeMemory(address, value)
value = cpu.registers['A'] - value
advancePC(cpu, size)
setC(cpu, ~value >> 8 & 0x1)
setN(cpu, value)
setZ(cpu, value & 0xFF)
return nCycles
def DCP_Absolute(cpu):
size = 3
nCycles = 6
address = addressingMode.Absolute(cpu)
value = cpu.readMemory(address)
value = (value - 1) & 0xFF
cpu.writeMemory(address, value)
value = cpu.registers['A'] - value
advancePC(cpu, size)
setC(cpu, ~value >> 8 & 0x1)
setN(cpu, value)
setZ(cpu, value & 0xFF)
return nCycles
def DCP_Absolute_X(cpu):
size = 3
nCycles = 7
address = addressingMode.Absolute_X(cpu)
value = cpu.readMemory(address)
value = (value - 1) & 0xFF
cpu.writeMemory(address, value)
value = cpu.registers['A'] - value
advancePC(cpu, size)
setC(cpu, ~value >> 8 & 0x1)
setN(cpu, value)
setZ(cpu, value & 0xFF)
return nCycles
def DCP_Absolute_Y(cpu):
size = 3
nCycles = 7
address = addressingMode.Absolute_Y(cpu)
value = cpu.readMemory(address)
value = (value - 1) & 0xFF
cpu.writeMemory(address, value)
value = cpu.registers['A'] - value
advancePC(cpu, size)
setC(cpu, ~value >> 8 & 0x1)
setN(cpu, value)
setZ(cpu, value & 0xFF)
return nCycles
def DCP_Indirect_X(cpu):
size = 2
nCycles = 8
address = addressingMode.Indirect_X(cpu)
value = cpu.readMemory(address)
value = (value - 1) & 0xFF
cpu.writeMemory(address, value)
value = cpu.registers['A'] - value
advancePC(cpu, size)
setC(cpu, ~value >> 8 & 0x1)
setN(cpu, value)
setZ(cpu, value & 0xFF)
return nCycles
def DCP_Indirect_Y(cpu):
size = 2
nCycles = 8
address = addressingMode.Indirect_Y(cpu)
value = cpu.readMemory(address)
value = (value - 1) & 0xFF
cpu.writeMemory(address, value)
value = cpu.registers['A'] - value
advancePC(cpu, size)
setC(cpu, ~value >> 8 & 0x1)
setN(cpu, value)
setZ(cpu, value & 0xFF)
return nCycles
def DOP_Immediate(cpu):
size = 2
nCycles = 2
advancePC(cpu, size)
return nCycles
def DOP_Zero(cpu):
size = 2
nCycles = 3
advancePC(cpu, size)
return nCycles
def DOP_Zero_X(cpu):
size = 2
nCycles = 4
advancePC(cpu, size)
return nCycles
def ISB_Zero(cpu):
size = 2
nCycles = 5
address = addressingMode.Zero(cpu)
value = cpu.readMemory(address)
value = (value + 1) & 0xFF
cpu.writeMemory(address, value)
carry = cpu.getStatus(cpu.statusFlags['c'])
tmp = cpu.registers['A'] - value - (1 - carry)
setN(cpu, tmp)
setZ(cpu, tmp & 0xFF)
setO(cpu, (((cpu.registers['A'] ^ tmp) & 0x80) != 0 and ((cpu.registers['A'] ^ value) & 0x80) != 0))
setC(cpu, 0 if tmp < 0 else 1)
cpu.registers['A'] = (tmp & 0xFF)
advancePC(cpu, size)
return nCycles
def ISB_Zero_X(cpu):
size = 2
nCycles = 6
address = addressingMode.Zero_X(cpu)
value = cpu.readMemory(address)
value = (value + 1) & 0xFF
cpu.writeMemory(address, value)
carry = cpu.getStatus(cpu.statusFlags['c'])
tmp = cpu.registers['A'] - value - (1 - carry)
setN(cpu, tmp)
setZ(cpu, tmp & 0xFF)
setO(cpu, (((cpu.registers['A'] ^ tmp) & 0x80) != 0 and ((cpu.registers['A'] ^ value) & 0x80) != 0))
setC(cpu, 0 if tmp < 0 else 1)
cpu.registers['A'] = (tmp & 0xFF)
advancePC(cpu, size)
return nCycles
def ISB_Absolute(cpu):
size = 3
nCycles = 6
address = addressingMode.Absolute(cpu)
value = cpu.readMemory(address)
value = (value + 1) & 0xFF
cpu.writeMemory(address, value)
carry = cpu.getStatus(cpu.statusFlags['c'])
tmp = cpu.registers['A'] - value - (1 - carry)
setN(cpu, tmp)
setZ(cpu, tmp & 0xFF)
setO(cpu, (((cpu.registers['A'] ^ tmp) & 0x80) != 0 and ((cpu.registers['A'] ^ value) & 0x80) != 0))
setC(cpu, 0 if tmp < 0 else 1)
cpu.registers['A'] = (tmp & 0xFF)
advancePC(cpu, size)
return nCycles
def ISB_Absolute_X(cpu):
size = 3
nCycles = 7
address = addressingMode.Absolute_X(cpu)
value = cpu.readMemory(address)
value = (value + 1) & 0xFF
cpu.writeMemory(address, value)
carry = cpu.getStatus(cpu.statusFlags['c'])
tmp = cpu.registers['A'] - value - (1 - carry)
setN(cpu, tmp)
setZ(cpu, tmp & 0xFF)
setO(cpu, (((cpu.registers['A'] ^ tmp) & 0x80) != 0 and ((cpu.registers['A'] ^ value) & 0x80) != 0))
setC(cpu, 0 if tmp < 0 else 1)
cpu.registers['A'] = (tmp & 0xFF)
advancePC(cpu, size)
return nCycles
def ISB_Absolute_Y(cpu):
size = 3
nCycles = 7
address = addressingMode.Absolute_Y(cpu)
value = cpu.readMemory(address)
value = (value + 1) & 0xFF
cpu.writeMemory(address, value)
carry = cpu.getStatus(cpu.statusFlags['c'])
tmp = cpu.registers['A'] - value - (1 - carry)
setN(cpu, tmp)
setZ(cpu, tmp & 0xFF)
setO(cpu, (((cpu.registers['A'] ^ tmp) & 0x80) != 0 and ((cpu.registers['A'] ^ value) & 0x80) != 0))
setC(cpu, 0 if tmp < 0 else 1)
cpu.registers['A'] = (tmp & 0xFF)
advancePC(cpu, size)
return nCycles
def ISB_Indirect_X(cpu):
size = 2
nCycles = 8
address = addressingMode.Indirect_X(cpu)
value = cpu.readMemory(address)
value = (value + 1) & 0xFF
cpu.writeMemory(address, value)
carry = cpu.getStatus(cpu.statusFlags['c'])
tmp = cpu.registers['A'] - value - (1 - carry)
setN(cpu, tmp)
setZ(cpu, tmp & 0xFF)
setO(cpu, (((cpu.registers['A'] ^ tmp) & 0x80) != 0 and ((cpu.registers['A'] ^ value) & 0x80) != 0))
setC(cpu, 0 if tmp < 0 else 1)
cpu.registers['A'] = (tmp & 0xFF)
advancePC(cpu, size)
return nCycles
def ISB_Indirect_Y(cpu):
size = 2
nCycles = 8
address = addressingMode.Indirect_Y(cpu)
value = cpu.readMemory(address)
value = (value + 1) & 0xFF
cpu.writeMemory(address, value)
carry = cpu.getStatus(cpu.statusFlags['c'])
tmp = cpu.registers['A'] - value - (1 - carry)
setN(cpu, tmp)
setZ(cpu, tmp & 0xFF)
setO(cpu, (((cpu.registers['A'] ^ tmp) & 0x80) != 0 and ((cpu.registers['A'] ^ value) & 0x80) != 0))
setC(cpu, 0 if tmp < 0 else 1)
cpu.registers['A'] = (tmp & 0xFF)
advancePC(cpu, size)
return nCycles
def LAX_Zero(cpu):
size = 2
nCycles = 3
address = addressingMode.Zero(cpu)
value = cpu.readMemory(address)
cpu.registers['A'] = value
cpu.registers['X'] = value
advancePC(cpu, size)
setN(cpu, value)
setZ(cpu, value)
return nCycles
def LAX_Zero_Y(cpu):
size = 2
nCycles = 4
address = addressingMode.Zero_Y(cpu)
value = cpu.readMemory(address)
cpu.registers['A'] = value
cpu.registers['X'] = value
advancePC(cpu, size)
setN(cpu, value)
setZ(cpu, value)
return nCycles
def LAX_Absolute(cpu):
size = 3
nCycles = 4
address = addressingMode.Absolute(cpu)
value = cpu.readMemory(address)
cpu.registers['A'] = value
cpu.registers['X'] = value
advancePC(cpu, size)
setN(cpu, value)
setZ(cpu, value)
return nCycles
def LAX_Absolute_Y(cpu):
size = 3
nCycles = 4
address = addressingMode.Absolute_Y(cpu)
value = cpu.readMemory(address)
cpu.registers['A'] = value
cpu.registers['X'] = value
advancePC(cpu, size)
setN(cpu, value)
setZ(cpu, value)
return nCycles
def LAX_Indirect_X(cpu):
size = 2
nCycles = 6
address = addressingMode.Indirect_X(cpu)
value = cpu.readMemory(address)
cpu.registers['A'] = value
cpu.registers['X'] = value
advancePC(cpu, size)
setN(cpu, value)
setZ(cpu, value)
return nCycles
def LAX_Indirect_Y(cpu):
size = 2
nCycles = 6
address = addressingMode.Indirect_Y(cpu)
value = cpu.readMemory(address)
cpu.registers['A'] = value
cpu.registers['X'] = value
advancePC(cpu, size)
setN(cpu, value)
setZ(cpu, value)
return nCycles
def RLA_Zero(cpu):
size = 2
nCycles = 5
address = addressingMode.Zero(cpu)
value = cpu.readMemory(address)
carry = cpu.getStatus(cpu.statusFlags['c'])
setC(cpu, (value >> 7) & 1)
value = ((value << 1) & 0xFF) + carry
cpu.registers['A'] &= value
advancePC(cpu, size)
setN(cpu, cpu.registers['A'])
setZ(cpu, cpu.registers['A'])
cpu.writeMemory(address, value)
return nCycles
def RLA_Zero_X(cpu):
size = 2
nCycles = 6
address = addressingMode.Zero_X(cpu)
value = cpu.readMemory(address)
carry = cpu.getStatus(cpu.statusFlags['c'])
setC(cpu, (value >> 7) & 1)
value = ((value << 1) & 0xFF) + carry
cpu.registers['A'] &= value
advancePC(cpu, size)
setN(cpu, cpu.registers['A'])
setZ(cpu, cpu.registers['A'])
cpu.writeMemory(address, value)
return nCycles
def RLA_Absolute(cpu):
size = 3
nCycles = 6
address = addressingMode.Absolute(cpu)
value = cpu.readMemory(address)
carry = cpu.getStatus(cpu.statusFlags['c'])
setC(cpu, (value >> 7) & 1)
value = ((value << 1) & 0xFF) + carry
cpu.registers['A'] &= value
advancePC(cpu, size)
setN(cpu, cpu.registers['A'])
setZ(cpu, cpu.registers['A'])
cpu.writeMemory(address, value)
return nCycles
def RLA_Absolute_X(cpu):
size = 3
nCycles = 7
address = addressingMode.Absolute_X(cpu)
value = cpu.readMemory(address)
carry = cpu.getStatus(cpu.statusFlags['c'])
setC(cpu, (value >> 7) & 1)
value = ((value << 1) & 0xFF) + carry
cpu.registers['A'] &= value
advancePC(cpu, size)
setN(cpu, cpu.registers['A'])
setZ(cpu, cpu.registers['A'])
cpu.writeMemory(address, value)
return nCycles
def RLA_Absolute_Y(cpu):
size = 3
nCycles = 7
address = addressingMode.Absolute_Y(cpu)
value = cpu.readMemory(address)
carry = cpu.getStatus(cpu.statusFlags['c'])
setC(cpu, (value >> 7) & 1)
value = ((value << 1) & 0xFF) + carry
cpu.registers['A'] &= value
advancePC(cpu, size)
setN(cpu, cpu.registers['A'])
setZ(cpu, cpu.registers['A'])
cpu.writeMemory(address, value)
return nCycles
def RLA_Indirect_X(cpu):
size = 2
nCycles = 8
address = addressingMode.Indirect_X(cpu)
value = cpu.readMemory(address)
carry = cpu.getStatus(cpu.statusFlags['c'])
setC(cpu, (value >> 7) & 1)
value = ((value << 1) & 0xFF) + carry
cpu.registers['A'] &= value
advancePC(cpu, size)
setN(cpu, cpu.registers['A'])
setZ(cpu, cpu.registers['A'])
cpu.writeMemory(address, value)
return nCycles
def RLA_Indirect_Y(cpu):
size = 2
nCycles = 8
address = addressingMode.Indirect_Y(cpu)
value = cpu.readMemory(address)
carry = cpu.getStatus(cpu.statusFlags['c'])
setC(cpu, (value >> 7) & 1)
value = ((value << 1) & 0xFF) + carry
cpu.registers['A'] &= value
advancePC(cpu, size)
setN(cpu, cpu.registers['A'])
setZ(cpu, cpu.registers['A'])
cpu.writeMemory(address, value)
return nCycles
def RRA_Zero(cpu):
size = 2
nCycles = 5
address = addressingMode.Zero(cpu)
value = cpu.readMemory(address)
carry = (cpu.getStatus(cpu.statusFlags['c']) << 7)
setC(cpu, value & 0x01)
value = (value >> 1) | carry
cpu.writeMemory(address, value)
carry = cpu.getStatus(cpu.statusFlags['c'])
tmp = value + cpu.registers['A'] + carry
setO(cpu, not(((cpu.registers['A'] ^ value) & 0x80)!=0) and (((cpu.registers['A'] ^ tmp) & 0x80)))
setC(cpu, tmp > 0xFF)
setN(cpu, tmp)
setZ(cpu, tmp & 0xFF)
cpu.registers['A'] = (tmp & 0xFF)
advancePC(cpu, size)
return nCycles
def RRA_Zero_X(cpu):
size = 2
nCycles = 6
address = addressingMode.Zero_X(cpu)
value = cpu.readMemory(address)
carry = (cpu.getStatus(cpu.statusFlags['c']) << 7)
setC(cpu, value & 0x01)
value = (value >> 1) | carry
cpu.writeMemory(address, value)
carry = cpu.getStatus(cpu.statusFlags['c'])
tmp = value + cpu.registers['A'] + carry
setO(cpu, not(((cpu.registers['A'] ^ value) & 0x80)!=0) and (((cpu.registers['A'] ^ tmp) & 0x80)))
setC(cpu, tmp > 0xFF)
setN(cpu, tmp)
setZ(cpu, tmp & 0xFF)
cpu.registers['A'] = (tmp & 0xFF)
advancePC(cpu, size)
return nCycles
def RRA_Absolute(cpu):
size = 3
nCycles = 6
address = addressingMode.Absolute(cpu)
value = cpu.readMemory(address)
carry = (cpu.getStatus(cpu.statusFlags['c']) << 7)
setC(cpu, value & 0x01)
value = (value >> 1) | carry
cpu.writeMemory(address, value)
carry = cpu.getStatus(cpu.statusFlags['c'])
tmp = value + cpu.registers['A'] + carry
setO(cpu, not(((cpu.registers['A'] ^ value) & 0x80)!=0) and (((cpu.registers['A'] ^ tmp) & 0x80)))
setC(cpu, tmp > 0xFF)
setN(cpu, tmp)
setZ(cpu, tmp & 0xFF)
cpu.registers['A'] = (tmp & 0xFF)
advancePC(cpu, size)
return nCycles
def RRA_Absolute_X(cpu):
size = 3
nCycles = 7
address = addressingMode.Absolute_X(cpu)
value = cpu.readMemory(address)
carry = (cpu.getStatus(cpu.statusFlags['c']) << 7)
setC(cpu, value & 0x01)
value = (value >> 1) | carry
cpu.writeMemory(address, value)
carry = cpu.getStatus(cpu.statusFlags['c'])
tmp = value + cpu.registers['A'] + carry
setO(cpu, not(((cpu.registers['A'] ^ value) & 0x80)!=0) and (((cpu.registers['A'] ^ tmp) & 0x80)))
setC(cpu, tmp > 0xFF)
setN(cpu, tmp)
setZ(cpu, tmp & 0xFF)
cpu.registers['A'] = (tmp & 0xFF)
advancePC(cpu, size)
return nCycles
def RRA_Absolute_Y(cpu):
size = 3
nCycles = 7
address = addressingMode.Absolute_Y(cpu)
value = cpu.readMemory(address)
carry = (cpu.getStatus(cpu.statusFlags['c']) << 7)
setC(cpu, value & 0x01)
value = (value >> 1) | carry
cpu.writeMemory(address, value)
carry = cpu.getStatus(cpu.statusFlags['c'])
tmp = value + cpu.registers['A'] + carry
setO(cpu, not(((cpu.registers['A'] ^ value) & 0x80)!=0) and (((cpu.registers['A'] ^ tmp) & 0x80)))
setC(cpu, tmp > 0xFF)
setN(cpu, tmp)
setZ(cpu, tmp & 0xFF)
cpu.registers['A'] = (tmp & 0xFF)
advancePC(cpu, size)
return nCycles
def RRA_Indirect_X(cpu):
size = 2
nCycles = 8
address = addressingMode.Indirect_X(cpu)
value = cpu.readMemory(address)
carry = (cpu.getStatus(cpu.statusFlags['c']) << 7)
setC(cpu, value & 0x01)
value = (value >> 1) | carry
cpu.writeMemory(address, value)
carry = cpu.getStatus(cpu.statusFlags['c'])
tmp = value + cpu.registers['A'] + carry
setO(cpu, not(((cpu.registers['A'] ^ value) & 0x80)!=0) and (((cpu.registers['A'] ^ tmp) & 0x80)))
setC(cpu, tmp > 0xFF)
setN(cpu, tmp)
setZ(cpu, tmp & 0xFF)
cpu.registers['A'] = (tmp & 0xFF)
advancePC(cpu, size)
return nCycles
def RRA_Indirect_Y(cpu):
size = 2
nCycles = 8
address = addressingMode.Indirect_Y(cpu)
value = cpu.readMemory(address)
carry = (cpu.getStatus(cpu.statusFlags['c']) << 7)
setC(cpu, value & 0x01)
value = (value >> 1) | carry
cpu.writeMemory(address, value)
carry = cpu.getStatus(cpu.statusFlags['c'])
tmp = value + cpu.registers['A'] + carry
setO(cpu, not(((cpu.registers['A'] ^ value) & 0x80)!=0) and (((cpu.registers['A'] ^ tmp) & 0x80)))
setC(cpu, tmp > 0xFF)
setN(cpu, tmp)
setZ(cpu, tmp & 0xFF)
cpu.registers['A'] = (tmp & 0xFF)
advancePC(cpu, size)
return nCycles
def SAX_Zero(cpu):
size = 2
nCycles = 3
address = addressingMode.Zero(cpu)
value = cpu.registers['X'] & cpu.registers['A']
cpu.writeMemory(address, value)
advancePC(cpu, size)
return nCycles
def SAX_Zero_Y(cpu):
size = 2
nCycles = 4
address = addressingMode.Zero_Y(cpu)
value = cpu.registers['X'] & cpu.registers['A']
cpu.writeMemory(address, value)
advancePC(cpu, size)
return nCycles
def SAX_Absolute(cpu):
size = 3
nCycles = 4
address = addressingMode.Absolute(cpu)
value = cpu.registers['X'] & cpu.registers['A']
cpu.writeMemory(address, value)
advancePC(cpu, size)
return nCycles
def SAX_Indirect_X(cpu):
size = 2
nCycles = 6
address = addressingMode.Indirect_X(cpu)
value = cpu.registers['X'] & cpu.registers['A']
cpu.writeMemory(address, value)
advancePC(cpu, size)
return nCycles
def SLO_Zero(cpu):
size = 2
nCycles = 5
address = addressingMode.Zero(cpu)
value = cpu.readMemory(address)
setC(cpu, value & 0x80)
value <<= 1
value &= 0xFF
cpu.writeMemory(address, value)
cpu.registers['A'] |= value
advancePC(cpu, size)
setN(cpu, cpu.registers['A'])
setZ(cpu, cpu.registers['A'])
return nCycles
def SLO_Zero_X(cpu):
size = 2
nCycles = 6
address = addressingMode.Zero_X(cpu)
value = cpu.readMemory(address)
setC(cpu, value & 0x80)
value <<= 1
value &= 0xFF
cpu.writeMemory(address, value)
cpu.registers['A'] |= value
advancePC(cpu, size)
setN(cpu, cpu.registers['A'])
setZ(cpu, cpu.registers['A'])
return nCycles
def SLO_Absolute(cpu):
size = 3
nCycles = 6
address = addressingMode.Absolute(cpu)
value = cpu.readMemory(address)
setC(cpu, value & 0x80)
value <<= 1
value &= 0xFF
cpu.writeMemory(address, value)
cpu.registers['A'] |= value
advancePC(cpu, size)
setN(cpu, cpu.registers['A'])
setZ(cpu, cpu.registers['A'])
return nCycles
def SLO_Absolute_X(cpu):
size = 3
nCycles = 7
address = addressingMode.Absolute_X(cpu)
value = cpu.readMemory(address)
setC(cpu, value & 0x80)
value <<= 1
value &= 0xFF
cpu.writeMemory(address, value)
cpu.registers['A'] |= value
advancePC(cpu, size)
setN(cpu, cpu.registers['A'])
setZ(cpu, cpu.registers['A'])
return nCycles
def SLO_Absolute_Y(cpu):
size = 3
nCycles = 7
address = addressingMode.Absolute_Y(cpu)
value = cpu.readMemory(address)
setC(cpu, value & 0x80)
value <<= 1
value &= 0xFF
cpu.writeMemory(address, value)
cpu.registers['A'] |= value
advancePC(cpu, size)
setN(cpu, cpu.registers['A'])
setZ(cpu, cpu.registers['A'])
return nCycles
def SLO_Indirect_X(cpu):
size = 2
nCycles = 8
address = addressingMode.Indirect_X(cpu)
value = cpu.readMemory(address)
setC(cpu, value & 0x80)
value <<= 1
value &= 0xFF
cpu.writeMemory(address, value)
cpu.registers['A'] |= value
advancePC(cpu, size)
setN(cpu, cpu.registers['A'])
setZ(cpu, cpu.registers['A'])
return nCycles
def SLO_Indirect_Y(cpu):
size = 2
nCycles = 8
address = addressingMode.Indirect_Y(cpu)
value = cpu.readMemory(address)
setC(cpu, value & 0x80)
value <<= 1
value &= 0xFF
cpu.writeMemory(address, value)
cpu.registers['A'] |= value
advancePC(cpu, size)
setN(cpu, cpu.registers['A'])
setZ(cpu, cpu.registers['A'])
return nCycles
def SRE_Zero(cpu):
size = 2
nCycles = 5
address = addressingMode.Zero(cpu)
value = cpu.readMemory(address)
setC(cpu, value & 0x01)
value >>= 1
cpu.registers['A'] ^= value
cpu.writeMemory(address, value)
advancePC(cpu, size)
setZ(cpu, cpu.registers['A'])
setN(cpu, cpu.registers['A'])
return nCycles
def SRE_Zero_X(cpu):
size = 2
nCycles = 6
address = addressingMode.Zero_X(cpu)
value = cpu.readMemory(address)
setC(cpu, value & 0x01)
value >>= 1
cpu.registers['A'] ^= value
cpu.writeMemory(address, value)
advancePC(cpu, size)
setZ(cpu, cpu.registers['A'])
setN(cpu, cpu.registers['A'])
return nCycles
def SRE_Absolute(cpu):
size = 3
nCycles = 6
address = addressingMode.Absolute(cpu)
value = cpu.readMemory(address)
setC(cpu, value & 0x01)
value >>= 1
cpu.registers['A'] ^= value
cpu.writeMemory(address, value)
advancePC(cpu, size)
setZ(cpu, cpu.registers['A'])
setN(cpu, cpu.registers['A'])
return nCycles
def SRE_Absolute_X(cpu):
size = 3
nCycles = 7
address = addressingMode.Absolute_X(cpu)
value = cpu.readMemory(address)
setC(cpu, value & 0x01)
value >>= 1
cpu.registers['A'] ^= value
cpu.writeMemory(address, value)
advancePC(cpu, size)
setZ(cpu, cpu.registers['A'])
setN(cpu, cpu.registers['A'])
return nCycles
def SRE_Absolute_Y(cpu):
size = 3
nCycles = 7
address = addressingMode.Absolute_Y(cpu)
value = cpu.readMemory(address)
setC(cpu, value & 0x01)
value >>= 1
cpu.registers['A'] ^= value
cpu.writeMemory(address, value)
advancePC(cpu, size)
setZ(cpu, cpu.registers['A'])
setN(cpu, cpu.registers['A'])
return nCycles
def SRE_Indirect_X(cpu):
size = 2
nCycles = 8
address = addressingMode.Indirect_X(cpu)
value = cpu.readMemory(address)
setC(cpu, value & 0x01)
value >>= 1
cpu.registers['A'] ^= value
cpu.writeMemory(address, value)
advancePC(cpu, size)
setZ(cpu, cpu.registers['A'])
setN(cpu, cpu.registers['A'])
return nCycles
def SRE_Indirect_Y(cpu):
size = 2
nCycles = 8
address = addressingMode.Indirect_Y(cpu)
value = cpu.readMemory(address)
setC(cpu, value & 0x01)
value >>= 1
cpu.registers['A'] ^= value
cpu.writeMemory(address, value)
advancePC(cpu, size)
setZ(cpu, cpu.registers['A'])
setN(cpu, cpu.registers['A'])
return nCycles
def TOP_Absolute(cpu):
size = 3
nCycles = 4
advancePC(cpu, size)
return nCycles
def TOP_Absolute_X(cpu):
size = 3
nCycles = 4
advancePC(cpu, size)
return nCycles
| 22.870881
| 104
| 0.610427
| 8,925
| 68,018
| 4.606499
| 0.018151
| 0.070659
| 0.092963
| 0.076618
| 0.984555
| 0.979179
| 0.970496
| 0.965218
| 0.950405
| 0.942816
| 0
| 0.025336
| 0.24739
| 68,018
| 2,973
| 105
| 22.878574
| 0.777793
| 0.018436
| 0
| 0.889744
| 0
| 0
| 0.007822
| 0
| 0
| 0
| 0.016485
| 0.000336
| 0
| 1
| 0.091453
| false
| 0
| 0.000427
| 0
| 0.181197
| 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
|
dc6d008a10bb5e83e29002fb994f53daf8026778
| 124
|
py
|
Python
|
{{cookiecutter.directory_name}}/main.py
|
eliiza/cookiecutter-gcloud-function
|
95f54f9768d89708e51bb8605e70732a8d96092f
|
[
"MIT"
] | 1
|
2021-02-09T17:00:53.000Z
|
2021-02-09T17:00:53.000Z
|
{{cookiecutter.directory_name}}/main.py
|
eliiza/cookiecutter-gcloud-function
|
95f54f9768d89708e51bb8605e70732a8d96092f
|
[
"MIT"
] | 1
|
2019-03-21T04:18:55.000Z
|
2019-03-21T04:18:55.000Z
|
{{cookiecutter.directory_name}}/main.py
|
eliiza/cookiecutter-gcloud-function
|
95f54f9768d89708e51bb8605e70732a8d96092f
|
[
"MIT"
] | 1
|
2020-10-08T16:25:08.000Z
|
2020-10-08T16:25:08.000Z
|
def {{cookie_cutter.function_name}}(event, context):
pass
if __main__:
{{cookie_cutter.function_name}}("event","context")
| 24.8
| 52
| 0.75
| 16
| 124
| 5.3125
| 0.625
| 0.282353
| 0.470588
| 0.564706
| 0.847059
| 0.847059
| 0
| 0
| 0
| 0
| 0
| 0
| 0.072581
| 124
| 5
| 53
| 24.8
| 0.73913
| 0
| 0
| 0
| 0
| 0
| 0.096
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | null | 0.25
| 0
| null | null | 0
| 1
| 0
| 0
| null | 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 1
| 0
| 0
| 1
| 0
| 0
| 0
| 0
|
0
| 9
|
dc79d0b73d95104aa84878621b6f8f516c8665d6
| 2,360
|
py
|
Python
|
sameproject/ops/aml/options.py
|
SAME-Project/same-project
|
6fb6fdab73d98e1ba8f622c4033dbd8cd351b0f6
|
[
"Apache-2.0"
] | 8
|
2021-12-17T18:26:24.000Z
|
2022-03-16T18:21:04.000Z
|
sameproject/ops/aml/options.py
|
SAME-Project/same-project
|
6fb6fdab73d98e1ba8f622c4033dbd8cd351b0f6
|
[
"Apache-2.0"
] | 45
|
2021-12-18T08:28:56.000Z
|
2022-03-31T21:24:45.000Z
|
sameproject/ops/aml/options.py
|
SAME-Project/same-project
|
6fb6fdab73d98e1ba8f622c4033dbd8cd351b0f6
|
[
"Apache-2.0"
] | 5
|
2021-12-17T20:08:38.000Z
|
2022-03-21T13:51:06.000Z
|
from sameproject.ops.runtime_options import register_option
register_option(
"aml_compute_name",
"Azure compute name for the pre-provisioned compute cluster.",
backend="aml",
schema={
"nullable": False,
"type": "string",
"regex": r"^[\d\w-]+",
"maxlength": 24,
"minlength": 3
},
)
register_option(
"aml_sp_password_value",
"Password for the service principal necessary for running this AML job. Read more here: https://docs.microsoft.com/en-us/cli/azure/create-an-azure-service-principal-azure-cli",
backend="aml",
schema={
"nullable": False,
"type": "string",
},
)
register_option(
"aml_sp_tenant_id",
"Tenant for the service principal necessary for running this AML job. Read more here: https://docs.microsoft.com/en-us/cli/azure/create-an-azure-service-principal-azure-cli",
backend="aml",
schema={
"nullable": False,
"type": "string",
"regex": r"^[\d\w-]+",
},
)
register_option(
"aml_sp_app_id",
"Service Principal App ID for the service principal necessary for running this AML job. Read more here: https://docs.microsoft.com/en-us/cli/azure/create-an-azure-service-principal-azure-cli",
backend="aml",
schema={
"nullable": False,
"type": "string",
"regex": r"^[\d\w-]+",
},
)
register_option(
"workspace_subscription_id",
"Workspace ID for your AML backend. Read more here: https://docs.microsoft.com/en-us/azure/machine-learning/how-to-configure-environment#workspace",
backend="aml",
schema={
"nullable": False,
"type": "string",
"regex": r"^[\d\w-]+",
},
)
register_option(
"workspace_resource_group",
"Workspace resource group for your AML backend. Read more here: https://docs.microsoft.com/en-us/azure/machine-learning/how-to-configure-environment#workspace",
backend="aml",
schema={
"nullable": False,
"type": "string",
"regex": r"^[\d\w-]+",
},
)
register_option(
"workspace_name",
"Workspace name for your AML backend. Read more here: https://docs.microsoft.com/en-us/azure/machine-learning/how-to-configure-environment#workspace",
backend="aml",
schema={
"nullable": False,
"type": "string",
"regex": r"^[\d\w-]+",
},
)
| 29.5
| 196
| 0.628814
| 291
| 2,360
| 5.013746
| 0.226804
| 0.076765
| 0.076765
| 0.115147
| 0.772447
| 0.772447
| 0.772447
| 0.772447
| 0.772447
| 0.772447
| 0
| 0.001613
| 0.211864
| 2,360
| 79
| 197
| 29.873418
| 0.782796
| 0
| 0
| 0.569444
| 0
| 0.083333
| 0.601271
| 0.029661
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0.027778
| 0.013889
| 0
| 0.013889
| 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
| 1
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
f4bb0a9fe4227e5edc0593411eb4357466838ee3
| 88
|
py
|
Python
|
series/models/__init__.py
|
sysvii/fetch-django
|
948e70a46cf1b0138a5a3b53cf92349ee22640fc
|
[
"MIT"
] | null | null | null |
series/models/__init__.py
|
sysvii/fetch-django
|
948e70a46cf1b0138a5a3b53cf92349ee22640fc
|
[
"MIT"
] | 3
|
2016-03-26T00:42:51.000Z
|
2016-04-29T11:33:18.000Z
|
series/models/__init__.py
|
sysvii/fetch-django
|
948e70a46cf1b0138a5a3b53cf92349ee22640fc
|
[
"MIT"
] | null | null | null |
from series.models.media_types import MediaType
from series.models.series import Series
| 29.333333
| 47
| 0.863636
| 13
| 88
| 5.769231
| 0.538462
| 0.266667
| 0.426667
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.090909
| 88
| 2
| 48
| 44
| 0.9375
| 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
|
f4c94a38a2a76798d2c2171bcab3cd25f050ecf0
| 17,376
|
py
|
Python
|
tests/test_command.py
|
te-johan/osdp-python
|
5d5339d5f4b2b8b6b81ce7265da64842c2907aa2
|
[
"Apache-2.0"
] | 26
|
2019-11-18T05:37:00.000Z
|
2022-03-01T13:37:06.000Z
|
tests/test_command.py
|
te-johan/osdp-python
|
5d5339d5f4b2b8b6b81ce7265da64842c2907aa2
|
[
"Apache-2.0"
] | 10
|
2020-02-04T11:28:38.000Z
|
2022-03-02T20:15:33.000Z
|
tests/test_command.py
|
te-johan/osdp-python
|
5d5339d5f4b2b8b6b81ce7265da64842c2907aa2
|
[
"Apache-2.0"
] | 6
|
2020-04-16T01:37:36.000Z
|
2021-11-24T20:11:32.000Z
|
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""Tests for OSDP Comnands"""
import os
import sys
import unittest
import datetime
from context import *
class CommandTestCase(unittest.TestCase):
"""Test commands for OSDP Python Module."""
def setUp(self):
"""Setup."""
def tearDown(self):
"""Teardown."""
def test_poll_command_checksum(self):
device = Device(address=0x7F, use_crc=False, use_secure_channel=False)
device.message_control.increment_sequence()
self.assertEqual(device.message_control.sequence, 1)
command = PollCommand(address=0x7F)
content = command.build_command(device)
self.assertEqual(content.hex().upper(), '537F07000160C6')
device.message_control.increment_sequence()
self.assertEqual(device.message_control.sequence, 2)
device.message_control.increment_sequence()
self.assertEqual(device.message_control.sequence, 3)
def test_id_report_command_checksum(self):
device = Device(address=0x7F, use_crc=False, use_secure_channel=False)
self.assertEqual(device.message_control.sequence, 0)
command = IdReportCommand(address=0x7F)
content = command.build_command(device)
self.assertEqual(content.hex().upper(), '537F0800006100C5')
device.message_control.increment_sequence()
self.assertEqual(device.message_control.sequence, 1)
device.message_control.increment_sequence()
self.assertEqual(device.message_control.sequence, 2)
device.message_control.increment_sequence()
self.assertEqual(device.message_control.sequence, 3)
def test_device_capabilities_command_checksum(self):
device = Device(address=0x7F, use_crc=False, use_secure_channel=False)
device.message_control.increment_sequence()
self.assertEqual(device.message_control.sequence, 1)
command = DeviceCapabilitiesCommand(address=0x7F)
content = command.build_command(device)
self.assertEqual(content.hex().upper(), '537F0800016200C3')
device.message_control.increment_sequence()
self.assertEqual(device.message_control.sequence, 2)
device.message_control.increment_sequence()
self.assertEqual(device.message_control.sequence, 3)
def test_input_status_command_checksum(self):
device = Device(address=0x7F, use_crc=False, use_secure_channel=False)
device.message_control.increment_sequence()
self.assertEqual(device.message_control.sequence, 1)
command = InputStatusReportCommand(address=0x7F)
content = command.build_command(device)
self.assertEqual(content.hex().upper(), '537F07000165C1')
device.message_control.increment_sequence()
self.assertEqual(device.message_control.sequence, 2)
device.message_control.increment_sequence()
self.assertEqual(device.message_control.sequence, 3)
def test_output_status_command_checksum(self):
device = Device(address=0x7F, use_crc=False, use_secure_channel=False)
device.message_control.increment_sequence()
self.assertEqual(device.message_control.sequence, 1)
device.message_control.increment_sequence()
self.assertEqual(device.message_control.sequence, 2)
command = OutputStatusReportCommand(address=0x7F)
content = command.build_command(device)
self.assertEqual(content.hex().upper(), '537F07000266BF')
device.message_control.increment_sequence()
self.assertEqual(device.message_control.sequence, 3)
def test_reader_led_control_command_granted_checksum(self):
device = Device(address=0x7F, use_crc=False, use_secure_channel=False)
device.message_control.increment_sequence()
self.assertEqual(device.message_control.sequence, 1)
device.message_control.increment_sequence()
self.assertEqual(device.message_control.sequence, 2)
reader_led_controls = [ReaderLedControl(
reader_number = 0x0,
led_number = 0x0,
temporary_mode = TemporaryReaderControlCode.SetTemporaryAndStartTimer,
temporary_on_time = 0x02,
temporary_off_time = 0x01,
temporary_on_color = LedColor.Green,
temporary_off_color = LedColor.Black,
temporary_timer = 0x000A,
permanent_mode = PermanentReaderControlCode.Nop,
permanent_on_time = 0x00,
permanent_off_time = 0x00,
permanent_on_color = LedColor.Black,
permanent_off_color = LedColor.Black
)]
command = ReaderLedControlCommand(address=0x7F, reader_led_controls = ReaderLedControls(reader_led_controls))
content = command.build_command(device)
self.assertEqual(content.hex().upper(), '537F15000269000002020102000A0000000000009D')
device.message_control.increment_sequence()
self.assertEqual(device.message_control.sequence, 3)
def test_reader_led_control_command_denied_checksum(self):
device = Device(address=0x7F, use_crc=False, use_secure_channel=False)
device.message_control.increment_sequence()
self.assertEqual(device.message_control.sequence, 1)
reader_led_controls = [ReaderLedControl(
reader_number = 0x0,
led_number = 0x0,
temporary_mode = TemporaryReaderControlCode.SetTemporaryAndStartTimer,
temporary_on_time = 0x02,
temporary_off_time = 0x01,
temporary_on_color = LedColor.Red,
temporary_off_color = LedColor.Black,
temporary_timer = 0x000A,
permanent_mode = PermanentReaderControlCode.Nop,
permanent_on_time = 0x00,
permanent_off_time = 0x00,
permanent_on_color = LedColor.Black,
permanent_off_color = LedColor.Black
)]
command = ReaderLedControlCommand(address=0x7F, reader_led_controls = ReaderLedControls(reader_led_controls))
content = command.build_command(device)
self.assertEqual(content.hex().upper(), '537F15000169000002020101000A0000000000009F')
device.message_control.increment_sequence()
self.assertEqual(device.message_control.sequence, 2)
device.message_control.increment_sequence()
self.assertEqual(device.message_control.sequence, 3)
def test_reader_buzzer_control_command_checksum(self):
device = Device(address=0x7F, use_crc=False, use_secure_channel=False)
device.message_control.increment_sequence()
self.assertEqual(device.message_control.sequence, 1)
device.message_control.increment_sequence()
self.assertEqual(device.message_control.sequence, 2)
reader_buzzer_control = ReaderBuzzerControl(
reader_number = 0x0,
tone_code = ToneCode.TBD,
on_time = 0x02,
off_time = 0x01,
count = 0x03
)
command = ReaderBuzzerControlCommand(address=0x7F, reader_buzzer_control = reader_buzzer_control)
content = command.build_command(device)
self.assertEqual(content.hex().upper(), '537F0C00026A0003020103AD')
device.message_control.increment_sequence()
self.assertEqual(device.message_control.sequence, 3)
def test_reader_text_output_command_checksum(self):
device = Device(address=0x7F, use_crc=False, use_secure_channel=False)
device.message_control.increment_sequence()
self.assertEqual(device.message_control.sequence, 1)
reader_text_output = ReaderTextOutput(
reader_number = 0x0,
text_command = TextCommand.PermanentTextNoWrap,
temp_text_time = 0x00,
row = 0x00,
column = 0x00,
text = "test"
)
command = ReaderTextOutputCommand(address=0x7F, reader_text_output = reader_text_output)
content = command.build_command(device)
self.assertEqual(content.hex().upper(), '537F1100016B00010000000474657374EC')
device.message_control.increment_sequence()
self.assertEqual(device.message_control.sequence, 2)
device.message_control.increment_sequence()
self.assertEqual(device.message_control.sequence, 3)
def test_set_date_time_command_checksum(self):
device = Device(address=0x7F, use_crc=False, use_secure_channel=False)
device.message_control.increment_sequence()
self.assertEqual(device.message_control.sequence, 1)
device.message_control.increment_sequence()
self.assertEqual(device.message_control.sequence, 2)
device.message_control.increment_sequence()
self.assertEqual(device.message_control.sequence, 3)
timestamp = datetime.datetime(
year = 2019,
month = 11,
day = 12,
hour = 9,
minute = 2,
second = 0
)
command = SetDateTimeCommand(address=0x7F, timestamp = timestamp)
content = command.build_command(device)
self.assertEqual(content.hex().upper(), '537F0E00036DE3070B0C090200A4')
def test_reader_mfg_command_checksum(self):
device = Device(address=0x7F, use_crc=False, use_secure_channel=False)
device.message_control.increment_sequence()
self.assertEqual(device.message_control.sequence, 1)
manufacturer_data = bytes([0x0B, 0x0E, 0x0E, 0x0F])
command = ManufacturerSpecificCommand(address=0x7F, manufacturer_data = manufacturer_data)
content = command.build_command(device)
self.assertEqual(content.hex().upper(), '537F0B0001800B0E0E0F6C')
device.message_control.increment_sequence()
self.assertEqual(device.message_control.sequence, 2)
device.message_control.increment_sequence()
self.assertEqual(device.message_control.sequence, 3)
def test_poll_command_crc(self):
device = Device(address=0x7F, use_crc=True, use_secure_channel=False)
device.message_control.increment_sequence()
self.assertEqual(device.message_control.sequence, 1)
command = PollCommand(address=0x7F)
content = command.build_command(device)
self.assertEqual(content.hex().upper(), '537F08000560A5E1')
device.message_control.increment_sequence()
self.assertEqual(device.message_control.sequence, 2)
device.message_control.increment_sequence()
self.assertEqual(device.message_control.sequence, 3)
command = PollCommand(address=0x7F)
content = command.build_command(device)
self.assertEqual(content.hex().upper(), '537F08000760C787')
def test_id_report_command_crc(self):
device = Device(address=0x7F, use_crc=True, use_secure_channel=False)
self.assertEqual(device.message_control.sequence, 0)
device.message_control.increment_sequence()
self.assertEqual(device.message_control.sequence, 1)
device.message_control.increment_sequence()
self.assertEqual(device.message_control.sequence, 2)
command = IdReportCommand(address=0x7F)
content = command.build_command(device)
self.assertEqual(content.hex().upper(), '537F09000661003F88')
device.message_control.increment_sequence()
self.assertEqual(device.message_control.sequence, 3)
def test_device_capabilities_command_crc(self):
device = Device(address=0x7F, use_crc=True, use_secure_channel=False)
device.message_control.increment_sequence()
self.assertEqual(device.message_control.sequence, 1)
command = DeviceCapabilitiesCommand(address=0x7F)
content = command.build_command(device)
self.assertEqual(content.hex().upper(), '537F09000562003C84')
device.message_control.increment_sequence()
self.assertEqual(device.message_control.sequence, 2)
device.message_control.increment_sequence()
self.assertEqual(device.message_control.sequence, 3)
def test_input_status_command_crc(self):
device = Device(address=0x7F, use_crc=True, use_secure_channel=False)
device.message_control.increment_sequence()
self.assertEqual(device.message_control.sequence, 1)
device.message_control.increment_sequence()
self.assertEqual(device.message_control.sequence, 2)
command = InputStatusReportCommand(address=0x7F)
content = command.build_command(device)
self.assertEqual(content.hex().upper(), '537F0800066553E4')
device.message_control.increment_sequence()
self.assertEqual(device.message_control.sequence, 3)
def test_output_status_command_crc(self):
device = Device(address=0x7F, use_crc=True, use_secure_channel=False)
device.message_control.increment_sequence()
self.assertEqual(device.message_control.sequence, 1)
device.message_control.increment_sequence()
self.assertEqual(device.message_control.sequence, 2)
device.message_control.increment_sequence()
self.assertEqual(device.message_control.sequence, 3)
command = OutputStatusReportCommand(address=0x7F)
content = command.build_command(device)
self.assertEqual(content.hex().upper(), '537F0800076601E7')
def test_reader_led_control_command_granted_crc(self):
device = Device(address=0x7F, use_crc=True, use_secure_channel=False)
device.message_control.increment_sequence()
self.assertEqual(device.message_control.sequence, 1)
reader_led_controls = [ReaderLedControl(
reader_number = 0x0,
led_number = 0x0,
temporary_mode = TemporaryReaderControlCode.SetTemporaryAndStartTimer,
temporary_on_time = 0x02,
temporary_off_time = 0x01,
temporary_on_color = LedColor.Green,
temporary_off_color = LedColor.Black,
temporary_timer = 0x000A,
permanent_mode = PermanentReaderControlCode.Nop,
permanent_on_time = 0x00,
permanent_off_time = 0x00,
permanent_on_color = LedColor.Black,
permanent_off_color = LedColor.Black
)]
command = ReaderLedControlCommand(address=0x7F, reader_led_controls = ReaderLedControls(reader_led_controls))
content = command.build_command(device)
self.assertEqual(content.hex().upper(), '537F16000569000002020102000A0000000000009134')
device.message_control.increment_sequence()
self.assertEqual(device.message_control.sequence, 2)
device.message_control.increment_sequence()
self.assertEqual(device.message_control.sequence, 3)
def test_reader_led_control_command_denied_crc(self):
device = Device(address=0x7F, use_crc=True, use_secure_channel=False)
device.message_control.increment_sequence()
self.assertEqual(device.message_control.sequence, 1)
device.message_control.increment_sequence()
self.assertEqual(device.message_control.sequence, 2)
reader_led_controls = [ReaderLedControl(
reader_number = 0x0,
led_number = 0x0,
temporary_mode = TemporaryReaderControlCode.SetTemporaryAndStartTimer,
temporary_on_time = 0x02,
temporary_off_time = 0x01,
temporary_on_color = LedColor.Red,
temporary_off_color = LedColor.Black,
temporary_timer = 0x000A,
permanent_mode = PermanentReaderControlCode.Nop,
permanent_on_time = 0x00,
permanent_off_time = 0x00,
permanent_on_color = LedColor.Black,
permanent_off_color = LedColor.Black
)]
command = ReaderLedControlCommand(address=0x7F, reader_led_controls = ReaderLedControls(reader_led_controls))
content = command.build_command(device)
self.assertEqual(content.hex().upper(), '537F16000669000002020101000A00000000000098F1')
device.message_control.increment_sequence()
self.assertEqual(device.message_control.sequence, 3)
def test_reader_buzzer_control_command_crc(self):
device = Device(address=0x7F, use_crc=True, use_secure_channel=False)
device.message_control.increment_sequence()
self.assertEqual(device.message_control.sequence, 1)
device.message_control.increment_sequence()
self.assertEqual(device.message_control.sequence, 2)
reader_buzzer_control = ReaderBuzzerControl(
reader_number = 0x0,
tone_code = ToneCode.DefaultTone,
on_time = 0x02,
off_time = 0x00,
count = 0x01
)
command = ReaderBuzzerControlCommand(address=0x7F, reader_buzzer_control = reader_buzzer_control)
content = command.build_command(device)
self.assertEqual(content.hex().upper(), '537F0D00066A00020200010B7D')
device.message_control.increment_sequence()
self.assertEqual(device.message_control.sequence, 3)
def test_reader_text_output_command_crc(self):
device = Device(address=0x7F, use_crc=True, use_secure_channel=False)
device.message_control.increment_sequence()
self.assertEqual(device.message_control.sequence, 1)
device.message_control.increment_sequence()
self.assertEqual(device.message_control.sequence, 2)
device.message_control.increment_sequence()
self.assertEqual(device.message_control.sequence, 3)
reader_text_output = ReaderTextOutput(
reader_number = 0x0,
text_command = TextCommand.PermanentTextNoWrap,
temp_text_time = 0x00,
row = 0x00,
column = 0x00,
text = "hello, universe"
)
command = ReaderTextOutputCommand(address=0x7F, reader_text_output = reader_text_output)
content = command.build_command(device)
self.assertEqual(content.hex().upper(), '537F1D00076B00010000000F68656C6C6F2C20756E6976657273650370')
def test_set_date_time_command_crc(self):
device = Device(address=0x7F, use_crc=True, use_secure_channel=False)
device.message_control.increment_sequence()
self.assertEqual(device.message_control.sequence, 1)
timestamp = datetime.datetime(
year = 2019,
month = 0x0B,
day = 0x1D,
hour = 0x10,
minute = 0x11,
second = 0x12
)
command = SetDateTimeCommand(address=0x7F, timestamp = timestamp)
content = command.build_command(device)
self.assertEqual(content.hex().upper(), '537F0F00056DE3070B1D101112DEFA')
device.message_control.increment_sequence()
self.assertEqual(device.message_control.sequence, 2)
device.message_control.increment_sequence()
self.assertEqual(device.message_control.sequence, 3)
def test_reader_mfg_command_crc(self):
device = Device(address=0x7F, use_crc=True, use_secure_channel=False)
device.message_control.increment_sequence()
self.assertEqual(device.message_control.sequence, 1)
device.message_control.increment_sequence()
self.assertEqual(device.message_control.sequence, 2)
device.message_control.increment_sequence()
self.assertEqual(device.message_control.sequence, 3)
manufacturer_data = bytes([0x0B, 0x0E, 0x0E, 0x0F])
command = ManufacturerSpecificCommand(address=0x7F, manufacturer_data = manufacturer_data)
content = command.build_command(device)
self.assertEqual(content.hex().upper(), '537F0C0007800B0E0E0FEDCC')
if __name__ == '__main__':
unittest.main()
| 35.317073
| 111
| 0.79581
| 2,021
| 17,376
| 6.56952
| 0.082138
| 0.131204
| 0.201853
| 0.143406
| 0.927318
| 0.921594
| 0.913685
| 0.910371
| 0.910371
| 0.910371
| 0
| 0.0532
| 0.105375
| 17,376
| 491
| 112
| 35.389002
| 0.800901
| 0.006964
| 0
| 0.783562
| 0
| 0
| 0.035919
| 0.024256
| 0
| 0
| 0.023443
| 0
| 0.249315
| 1
| 0.065753
| false
| 0
| 0.013699
| 0
| 0.082192
| 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
|
7623b3e09eaade6d9e6b31dabe442c6a975d5e5a
| 6,902
|
py
|
Python
|
stubs.min/System/Windows/__init___parts/IDataObject.py
|
ricardyn/ironpython-stubs
|
4d2b405eda3ceed186e8adca55dd97c332c6f49d
|
[
"MIT"
] | 1
|
2021-02-02T13:39:16.000Z
|
2021-02-02T13:39:16.000Z
|
stubs.min/System/Windows/__init___parts/IDataObject.py
|
hdm-dt-fb/ironpython-stubs
|
4d2b405eda3ceed186e8adca55dd97c332c6f49d
|
[
"MIT"
] | null | null | null |
stubs.min/System/Windows/__init___parts/IDataObject.py
|
hdm-dt-fb/ironpython-stubs
|
4d2b405eda3ceed186e8adca55dd97c332c6f49d
|
[
"MIT"
] | null | null | null |
class IDataObject:
""" Provides a format-independent mechanism for transferring data. """
def GetData(self,format,autoConvert=None):
"""
GetData(self: IDataObject,format: str,autoConvert: bool) -> object
Retrieves a data object in a specified format,optionally converting the data
to the specified format.
format: A string that specifies what format to retrieve the data as. See the
System.Windows.DataFormats class for a set of predefined data formats.
autoConvert: true to attempt to automatically convert the data to the specified format;
false for no data format conversion.�If this parameter is false,the method
returns data in the specified format if available,or null if the data is not
available in the specified format.
Returns: A data object with the data in the specified format,or null if the data is not
available in the specified format.
GetData(self: IDataObject,format: Type) -> object
Retrieves a data object in a specified format; the data format is specified by
a System.Type object.
format: A System.Type object that specifies what format to retrieve the data as. See
the System.Windows.DataFormats class for a set of predefined data formats.
Returns: A data object with the data in the specified format,or null if the data is not
available in the specified format.
GetData(self: IDataObject,format: str) -> object
Retrieves a data object in a specified format; the data format is specified by
a string.
format: A string that specifies what format to retrieve the data as. See the
System.Windows.DataFormats class for a set of predefined data formats.
Returns: A data object with the data in the specified format,or null if the data is not
available in the specified format.
"""
pass
def GetDataPresent(self,format,autoConvert=None):
"""
GetDataPresent(self: IDataObject,format: str,autoConvert: bool) -> bool
Checks to see whether the data is available in,or can be converted to,a
specified format. A Boolean flag indicates whether to check if the data can be
converted to the specified format,if it is not available in that format.
format: A string that specifies what format to check for. See the
System.Windows.DataFormats class for a set of pre-defined data formats.
autoConvert: false to only check for the specified format; true to also check whether or not
data stored in this data object can be converted to the specified format.
Returns: true if the data is in,or can be converted to,the specified format;
otherwise,false.
GetDataPresent(self: IDataObject,format: Type) -> bool
Checks to see whether the data is available in,or can be converted to,a
specified format. The data format is specified by a System.Type object.
format: A System.Type that specifies what format to check for. See the
System.Windows.DataFormats class for a set of predefined data formats.
Returns: true if the data is in,or can be converted to,the specified format;
otherwise,false.
GetDataPresent(self: IDataObject,format: str) -> bool
Checks to see whether the data is available in,or can be converted to,a
specified format; the data format is specified by a string.
format: A string that specifies what format to check for. See the
System.Windows.DataFormats class for a set of pre-defined data formats.
Returns: true if the data is in,or can be converted to,the specified format;
otherwise,false.
"""
pass
def GetFormats(self,autoConvert=None):
"""
GetFormats(self: IDataObject,autoConvert: bool) -> Array[str]
Returns a list of all formats that the data in this data object is stored in. A
Boolean flag indicates whether or not to also include formats that the data can
be automatically converted to.
autoConvert: true to retrieve all formats that data stored in this data object is stored in,
or can be converted to; false to retrieve only formats that data stored in this
data object is stored in (excluding formats that the data is not stored in,but
can be automatically converted to).
Returns: An array of strings,with each string specifying the name of a format supported
by this data object.
GetFormats(self: IDataObject) -> Array[str]
Returns a list of all formats that the data in this data object is stored in,
or can be converted to.
Returns: An array of strings,with each string specifying the name of a format supported
by this data object.
"""
pass
def SetData(self,*__args):
"""
SetData(self: IDataObject,format: Type,data: object)
Stores the specified data in this data object,along with one or more specified
data formats. The data format is specified by a System.Type class.
format: A System.Type that specifies what format to store the data in. See the
System.Windows.DataFormats class for a set of predefined data formats.
data: The data to store in this data object.
SetData(self: IDataObject,format: str,data: object,autoConvert: bool)
Stores the specified data in this data object,along with one or more specified
data formats. This overload includes a Boolean flag to indicate whether the
data may be converted to another format on retrieval.
format: A string that specifies what format to store the data in. See the
System.Windows.DataFormats class for a set of pre-defined data formats.
data: The data to store in this data object.
autoConvert: true to allow the data to be converted to another format on retrieval; false to
prohibit the data from being converted to another format on retrieval.
SetData(self: IDataObject,data: object)
Stores the specified data in this data object,automatically converting the
data format from the source object type.
data: The data to store in this data object.
SetData(self: IDataObject,format: str,data: object)
Stores the specified data in this data object,along with one or more specified
data formats. The data format is specified by a string.
format: A string that specifies what format to store the data in. See the
System.Windows.DataFormats class for a set of pre-defined data formats.
data: The data to store in this data object.
"""
pass
def __init__(self,*args):
""" x.__init__(...) initializes x; see x.__class__.__doc__ for signaturex.__init__(...) initializes x; see x.__class__.__doc__ for signature """
pass
| 43.1375
| 147
| 0.702115
| 1,017
| 6,902
| 4.73648
| 0.114061
| 0.058127
| 0.059788
| 0.04318
| 0.801121
| 0.766245
| 0.727424
| 0.697945
| 0.685074
| 0.667843
| 0.000145
| 0
| 0.250942
| 6,902
| 159
| 148
| 43.408805
| 0.931528
| 0.891915
| 0
| 0.454545
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.454545
| false
| 0.454545
| 0
| 0
| 0.545455
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 0
| 1
| 0
|
0
| 8
|
521204783d95fd9b76328b4f3b62597d03c6f005
| 187
|
py
|
Python
|
solo/a.py
|
Saket-Komawar/Forex
|
a470cb59cc0e9d4ed71713975cd8d2f778540100
|
[
"Apache-2.0"
] | null | null | null |
solo/a.py
|
Saket-Komawar/Forex
|
a470cb59cc0e9d4ed71713975cd8d2f778540100
|
[
"Apache-2.0"
] | 2
|
2020-06-05T17:30:33.000Z
|
2021-06-10T18:53:59.000Z
|
solo/a.py
|
Saket-Komawar/Forex
|
a470cb59cc0e9d4ed71713975cd8d2f778540100
|
[
"Apache-2.0"
] | 2
|
2017-02-01T09:24:27.000Z
|
2017-02-05T17:09:02.000Z
|
#!/usr/bin/python2.7
import sys
value = raw_input()
value = raw_input()
value = raw_input()
value = raw_input()
value = raw_input()
value = raw_input()
value = raw_input()
sys.exit(value)
| 18.7
| 20
| 0.71123
| 30
| 187
| 4.2
| 0.333333
| 0.444444
| 0.722222
| 0.857143
| 0.722222
| 0.722222
| 0.722222
| 0.722222
| 0.722222
| 0.722222
| 0
| 0.01227
| 0.128342
| 187
| 10
| 21
| 18.7
| 0.760736
| 0.101604
| 0
| 0.777778
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.111111
| 0
| 0.111111
| 0
| 0
| 0
| 0
| null | 1
| 1
| 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
| 9
|
521415d14fe8db851887d00e2c68ff1e323d4b3b
| 23,731
|
py
|
Python
|
app/test/unittest/test_executive_type.py
|
michalkoziara/IoT-RESTful-Webservice
|
ecb0f3e09cded3190f3646e5cd6c913056d94981
|
[
"bzip2-1.0.6"
] | 2
|
2021-09-24T02:45:32.000Z
|
2021-11-15T09:44:44.000Z
|
app/test/unittest/test_executive_type.py
|
PKramek/IoT-RESTful-Webservice-1
|
ecb0f3e09cded3190f3646e5cd6c913056d94981
|
[
"bzip2-1.0.6"
] | null | null | null |
app/test/unittest/test_executive_type.py
|
PKramek/IoT-RESTful-Webservice-1
|
ecb0f3e09cded3190f3646e5cd6c913056d94981
|
[
"bzip2-1.0.6"
] | 1
|
2021-09-11T11:47:32.000Z
|
2021-09-11T11:47:32.000Z
|
from unittest.mock import patch
import pytest
from app.main.repository.admin_repository import AdminRepository
from app.main.repository.device_group_repository import DeviceGroupRepository
from app.main.repository.executive_type_repository import ExecutiveTypeRepository
from app.main.repository.state_enumerator_repository import StateEnumeratorRepository
from app.main.repository.user_repository import UserRepository
from app.main.service.executive_type_service import ExecutiveTypeService
from app.main.util.constants import Constants
def test_get_executive_type_info_should_return_executive_type_info_when_valid_request_and_reading_type_is_enum(
get_executive_type_default_values,
create_executive_type,
get_state_enumerator_default_values,
create_state_enumerator,
create_device_group,
create_user_group,
create_user):
executive_type_service_instance = ExecutiveTypeService.get_instance()
test_user_id = '1'
device_group = create_device_group()
user_group = create_user_group()
user = create_user()
device_group.user_groups = [user_group]
executive_type = create_executive_type()
user_group.users = [user]
first_enumerator_values = get_state_enumerator_default_values()
first_enumerator_values['number'] = 2
first_enumerator_values['text'] = 'text 2'
first_enumerator = create_state_enumerator(first_enumerator_values)
second_enumerator_values = get_state_enumerator_default_values()
second_enumerator_values['number'] = 2
second_enumerator_values['text'] = 'text 2'
second_enumerator = create_state_enumerator(second_enumerator_values)
expected_returned_values = {
'name': executive_type.name,
'stateType': executive_type.state_type,
'stateRangeMin': executive_type.state_range_min,
'stateRangeMax': executive_type.state_range_max,
'defaultState': executive_type.default_state
}
with patch.object(
DeviceGroupRepository,
'get_device_group_by_product_key'
) as get_device_group_by_product_key_mock:
get_device_group_by_product_key_mock.return_value = device_group
with patch.object(
UserRepository,
'get_user_by_id'
) as get_user_by_id_mock:
get_user_by_id_mock.return_value = user
with patch.object(
ExecutiveTypeRepository,
'get_executive_type_by_device_group_id_and_name'
) as get_executive_type_by_device_group_id_and_name_mock:
get_executive_type_by_device_group_id_and_name_mock.return_value = executive_type
with patch.object(
StateEnumeratorRepository,
'get_state_enumerators_by_executive_type_id'
) as get_state_enumerators_by_sensor_type_id_mock:
get_state_enumerators_by_sensor_type_id_mock.return_value = [
first_enumerator,
second_enumerator
]
result, result_values = executive_type_service_instance.get_executive_type_info(
device_group.product_key,
user_group.name,
test_user_id,
False
)
assert result == Constants.RESPONSE_MESSAGE_OK
assert result_values == expected_returned_values
@pytest.mark.parametrize("state_type, state_range_min, state_range_max", [
('Decimal', 0.1, 1.0),
('Boolean', True, False)])
def test_get_sensor_type_info_should_return_sensor_info_when_valid_request_and_reading_type_is_not_enum(
state_type, state_range_min, state_range_max,
get_executive_type_default_values,
create_executive_type,
get_state_enumerator_default_values,
create_state_enumerator,
create_device_group,
create_user_group,
create_user):
executive_type_service_instance = ExecutiveTypeService.get_instance()
test_user_id = '1'
device_group = create_device_group()
user_group = create_user_group()
user = create_user()
device_group.user_groups = [user_group]
user_group.users = [user]
executive_type_values = get_executive_type_default_values()
executive_type_values['state_type'] = state_type
executive_type_values['state_range_min'] = state_range_min
executive_type_values['state_range_max'] = state_range_max
executive_type = create_executive_type(executive_type_values)
expected_returned_values = {
'name': executive_type.name,
'stateType': executive_type.state_type,
'stateRangeMin': executive_type.state_range_min,
'stateRangeMax': executive_type.state_range_max,
'defaultState': executive_type.default_state
}
if state_type == 'Boolean':
expected_returned_values['defaultState'] = False
with patch.object(
DeviceGroupRepository,
'get_device_group_by_product_key'
) as get_device_group_by_product_key_mock:
get_device_group_by_product_key_mock.return_value = device_group
with patch.object(
UserRepository,
'get_user_by_id'
) as get_user_by_id_mock:
get_user_by_id_mock.return_value = user
with patch.object(
ExecutiveTypeRepository,
'get_executive_type_by_device_group_id_and_name'
) as get_executive_type_by_device_group_id_and_name_mock:
get_executive_type_by_device_group_id_and_name_mock.return_value = executive_type
result, result_values = executive_type_service_instance.get_executive_type_info(
device_group.product_key,
user_group.name,
test_user_id,
False
)
assert result == Constants.RESPONSE_MESSAGE_OK
assert result_values == expected_returned_values
def test_get_sensor_type_info_should_return_error_message_when_sensor_type_not_in_device_group(
get_sensor_type_default_values,
create_sensor_type,
get_sensor_reading_enumerator_default_values,
create_sensor_reading_enumerator,
create_device_group,
create_user_group,
create_user):
executive_type_service_instance = ExecutiveTypeService.get_instance()
test_user_id = '1'
device_group = create_device_group()
user_group = create_user_group()
user = create_user()
device_group.user_groups = [user_group]
user_group.users = [user]
with patch.object(
DeviceGroupRepository,
'get_device_group_by_product_key'
) as get_device_group_by_product_key_mock:
get_device_group_by_product_key_mock.return_value = device_group
with patch.object(
UserRepository,
'get_user_by_id'
) as get_user_by_id_mock:
get_user_by_id_mock.return_value = user
with patch.object(
ExecutiveTypeRepository,
'get_executive_type_by_device_group_id_and_name'
) as get_executive_type_by_device_group_id_and_name_mock:
get_executive_type_by_device_group_id_and_name_mock.return_value = None
result, result_values = executive_type_service_instance.get_executive_type_info(
device_group.product_key,
user_group.name,
test_user_id,
False
)
assert result == Constants.RESPONSE_MESSAGE_EXECUTIVE_TYPE_NOT_FOUND
assert result_values is None
def test_get_sensor_type_info_should_return_error_message_when_user_not_in_any_user_group_in_device_group(
create_device_group,
create_user_group,
create_user):
executive_type_service_instance = ExecutiveTypeService.get_instance()
test_user_id = '1'
device_group = create_device_group()
user_group = create_user_group()
user = create_user()
device_group.user_groups = [user_group]
user_group.users = []
with patch.object(
DeviceGroupRepository,
'get_device_group_by_product_key'
) as get_device_group_by_product_key_mock:
get_device_group_by_product_key_mock.return_value = device_group
with patch.object(
UserRepository,
'get_user_by_id'
) as get_user_by_id_mock:
get_user_by_id_mock.return_value = user
result, result_values = executive_type_service_instance.get_executive_type_info(
device_group.product_key,
user_group.name,
test_user_id,
False
)
assert result == Constants.RESPONSE_MESSAGE_USER_DOES_NOT_HAVE_PRIVILEGES
assert result_values is None
def test_get_sensor_type_info_should_return_error_message_when_user_not_found(
create_device_group,
create_user):
executive_type_service_instance = ExecutiveTypeService.get_instance()
test_user_id = '1'
device_group = create_device_group()
with patch.object(
DeviceGroupRepository,
'get_device_group_by_product_key'
) as get_device_group_by_product_key_mock:
get_device_group_by_product_key_mock.return_value = device_group
with patch.object(
UserRepository,
'get_user_by_id'
) as get_user_by_id_mock:
get_user_by_id_mock.return_value = None
result, result_values = executive_type_service_instance.get_executive_type_info(
device_group.product_key,
'user_group_name',
test_user_id,
False
)
assert result == Constants.RESPONSE_MESSAGE_USER_NOT_DEFINED
assert result_values is None
def test_get_sensor_type_info_should_return_error_message_when_device_group_not_found():
executive_type_service_instance = ExecutiveTypeService.get_instance()
test_user_id = '1'
with patch.object(
DeviceGroupRepository,
'get_device_group_by_product_key'
) as get_device_group_by_product_key_mock:
get_device_group_by_product_key_mock.return_value = None
result, result_values = executive_type_service_instance.get_executive_type_info(
'device_group_product_key',
'user_group_name',
test_user_id,
False
)
assert result == Constants.RESPONSE_MESSAGE_PRODUCT_KEY_NOT_FOUND
assert result_values is None
@pytest.mark.parametrize("product_key, type_name, user_id, expected_result", [
('product_key', 'type_name', None, Constants.RESPONSE_MESSAGE_USER_NOT_DEFINED),
('product_key', None, 'user_id', Constants.RESPONSE_MESSAGE_EXECUTIVE_TYPE_NAME_NOT_DEFINED),
(None, 'type_name', 'user_id', Constants.RESPONSE_MESSAGE_PRODUCT_KEY_NOT_FOUND)
])
def test_get_sensor_type_info_should_return_error_message_when_one_of_parameters_is_None(product_key, type_name,
user_id, expected_result):
executive_type_service_instance = ExecutiveTypeService.get_instance()
result, result_values = executive_type_service_instance.get_executive_type_info(
product_key,
type_name,
user_id,
False
)
assert result == expected_result
assert result_values is None
def test_get_list_of_types_names_should_return_list_of_sensor_types_names_when_valid_request(
create_executive_type,
create_device_group,
create_admin):
executive_type_service_instance = ExecutiveTypeService.get_instance()
device_group = create_device_group()
admin = create_admin()
first_executive_type = create_executive_type()
second_executive_type = create_executive_type()
third_executive_type = create_executive_type()
first_executive_type.name = "sensor type 1"
second_executive_type.name = "sensor type 2"
third_executive_type.name = "sensor type 3"
expected_returned_values = ["sensor type 1", "sensor type 2", "sensor type 3"]
with patch.object(
DeviceGroupRepository,
'get_device_group_by_product_key'
) as get_device_group_by_product_key_mock:
get_device_group_by_product_key_mock.return_value = device_group
with patch.object(
AdminRepository,
'get_admin_by_id'
) as get_user_by_id_mock:
get_user_by_id_mock.return_value = admin
with patch.object(
ExecutiveTypeRepository,
'get_executive_types_by_device_group_id'
) as get_sensor_types_by_device_group_id_mock:
get_sensor_types_by_device_group_id_mock.return_value = [first_executive_type, second_executive_type,
third_executive_type]
result, result_values = executive_type_service_instance.get_list_of_types_names(
device_group.product_key,
admin.id
)
assert result == Constants.RESPONSE_MESSAGE_OK
assert result_values == expected_returned_values
def test_get_list_of_types_names_should_return_empty_list_when_valid_request_and_no_sensor_types_in_device_group(
create_sensor_type,
create_device_group,
create_admin):
executive_type_service_instance = ExecutiveTypeService.get_instance()
device_group = create_device_group()
admin = create_admin()
expected_returned_values = []
with patch.object(
DeviceGroupRepository,
'get_device_group_by_product_key'
) as get_device_group_by_product_key_mock:
get_device_group_by_product_key_mock.return_value = device_group
with patch.object(
AdminRepository,
'get_admin_by_id'
) as get_user_by_id_mock:
get_user_by_id_mock.return_value = admin
with patch.object(
ExecutiveTypeRepository,
'get_executive_types_by_device_group_id'
) as get_sensor_types_by_device_group_id_mock:
get_sensor_types_by_device_group_id_mock.return_value = []
result, result_values = executive_type_service_instance.get_list_of_types_names(
device_group.product_key,
admin.id
)
assert result == Constants.RESPONSE_MESSAGE_OK
assert result_values == expected_returned_values
def test_get_list_of_types_names_should_return_error_message_when_admin_not_found(
create_device_group,
create_user_group,
create_user):
executive_type_service_instance = ExecutiveTypeService.get_instance()
device_group = create_device_group()
with patch.object(
DeviceGroupRepository,
'get_device_group_by_product_key'
) as get_device_group_by_product_key_mock:
get_device_group_by_product_key_mock.return_value = device_group
with patch.object(
AdminRepository,
'get_admin_by_id'
) as get_user_by_id_mock:
get_user_by_id_mock.return_value = None
result, result_values = executive_type_service_instance.get_list_of_types_names(
device_group.product_key,
device_group.admin_id
)
assert result == Constants.RESPONSE_MESSAGE_ADMIN_NOT_DEFINED
assert result_values is None
def test_get_list_of_types_names_should_return_error_message_when_admin_not_assigned_to_device_group(
create_device_group,
create_user_group,
create_user):
executive_type_service_instance = ExecutiveTypeService.get_instance()
device_group = create_device_group()
with patch.object(
DeviceGroupRepository,
'get_device_group_by_product_key'
) as get_device_group_by_product_key_mock:
get_device_group_by_product_key_mock.return_value = device_group
result, result_values = executive_type_service_instance.get_list_of_types_names(
device_group.product_key,
device_group.admin_id + 1
)
assert result == Constants.RESPONSE_MESSAGE_USER_DOES_NOT_HAVE_PRIVILEGES
assert result_values is None
def test_get_list_of_types_names_should_return_error_message_when_device_group_not_found():
executive_type_service_instance = ExecutiveTypeService.get_instance()
with patch.object(
DeviceGroupRepository,
'get_device_group_by_product_key'
) as get_device_group_by_product_key_mock:
get_device_group_by_product_key_mock.return_value = None
result, result_values = executive_type_service_instance.get_list_of_types_names(
'device_group.product_key',
'admin.id'
)
assert result == Constants.RESPONSE_MESSAGE_PRODUCT_KEY_NOT_FOUND
assert result_values is None
@pytest.mark.parametrize("product_key, user_id, expected_result", [
('product_key', None, Constants.RESPONSE_MESSAGE_USER_NOT_DEFINED),
(None, 'user_id', Constants.RESPONSE_MESSAGE_PRODUCT_KEY_NOT_FOUND)
])
def test_get_list_of_types_names_should_return_error_message_when_one_of_parameters_is_none(
product_key,
user_id,
expected_result):
executive_type_service_instance = ExecutiveTypeService.get_instance()
with patch.object(
DeviceGroupRepository,
'get_device_group_by_product_key'
) as get_device_group_by_product_key_mock:
get_device_group_by_product_key_mock.return_value = None
result, result_values = executive_type_service_instance.get_list_of_types_names(
product_key,
user_id
)
assert result == expected_result
assert result_values is None
@pytest.mark.parametrize("state_type", ['Decimal', 'Enum', 'Boolean'])
def test_create_executive_type_in_device_group_should_create_executive_type_when_valid_parameters(
create_device_group,
state_type):
executive_type_service_instance = ExecutiveTypeService.get_instance()
device_group = create_device_group()
with patch.object(
DeviceGroupRepository,
'get_device_group_by_admin_id_and_product_key'
) as get_device_group_by_admin_id_and_product_key_mock:
get_device_group_by_admin_id_and_product_key_mock.return_value = device_group
with patch.object(
ExecutiveTypeRepository,
'get_executive_type_by_device_group_id_and_name'
) as get_executive_type_by_device_group_id_and_name_mock:
get_executive_type_by_device_group_id_and_name_mock.return_value = None
with patch.object(
ExecutiveTypeRepository,
'save'
) as save_mock:
save_mock.return_value = True
with patch.object(
StateEnumeratorRepository,
'save_but_do_not_commit'
):
with patch.object(
StateEnumeratorRepository,
'update_database'
) as update_database_mock:
update_database_mock.return_value = True
result = executive_type_service_instance.create_executive_type_in_device_group(
device_group.product_key, 'type_name', state_type, 0, 1,
[
{
'number': 0,
'text': 'zero'
},
{
'number': 1,
'text': 'one'
}
],
1,
'admin_id'
)
assert result
assert result == Constants.RESPONSE_MESSAGE_CREATED
def test_create_executive_type_in_device_group_should_return_error_message_when_no_device_group():
executive_type_service_instance = ExecutiveTypeService.get_instance()
with patch.object(
DeviceGroupRepository,
'get_device_group_by_admin_id_and_product_key'
) as get_device_group_by_admin_id_and_product_key_mock:
get_device_group_by_admin_id_and_product_key_mock.return_value = None
result = executive_type_service_instance.create_executive_type_in_device_group(
'product_key', 'type_name', 'Enum', 0, 1,
[
{
'number': 0,
'text': 'zero'
},
{
'number': 1,
'text': 'one'
}
],
1,
'admin_id'
)
assert result
assert result == Constants.RESPONSE_MESSAGE_PRODUCT_KEY_NOT_FOUND
def test_create_executive_type_in_device_group_should_return_sensor_type_already_exists_when_duplicated_name(
create_device_group,
create_executive_type):
executive_type_service_instance = ExecutiveTypeService.get_instance()
device_group = create_device_group()
executive_type = create_executive_type()
with patch.object(
DeviceGroupRepository,
'get_device_group_by_admin_id_and_product_key'
) as get_device_group_by_admin_id_and_product_key_mock:
get_device_group_by_admin_id_and_product_key_mock.return_value = device_group
with patch.object(
ExecutiveTypeRepository,
'get_executive_type_by_device_group_id_and_name'
) as get_executive_type_by_device_group_id_and_name_mock:
get_executive_type_by_device_group_id_and_name_mock.return_value = executive_type
result = executive_type_service_instance.create_executive_type_in_device_group(
device_group.product_key, 'type_name', 'Enum', 0, 1,
[
{
'number': 0,
'text': 'zero'
},
{
'number': 1,
'text': 'one'
}
],
1,
'admin_id'
)
assert result
assert result == Constants.RESPONSE_MESSAGE_EXECUTIVE_TYPE_ALREADY_EXISTS
@pytest.mark.parametrize("product_key, type_name, admin_id, expected_result", [
('product_key', 'type_name', None, Constants.RESPONSE_MESSAGE_USER_NOT_DEFINED),
('product_key', None, 'user_id', Constants.RESPONSE_MESSAGE_BAD_REQUEST),
(None, 'type_name', 'user_id', Constants.RESPONSE_MESSAGE_PRODUCT_KEY_NOT_FOUND)
])
def test_create_sensor_type_in_device_group_should_return_bad_request_when_no_parameter_given(
product_key,
type_name,
admin_id,
expected_result
):
executive_type_service_instance = ExecutiveTypeService.get_instance()
result = executive_type_service_instance.create_executive_type_in_device_group(
product_key, type_name, 'Enum', 0, 1,
[
{
'number': 0,
'text': 'zero'
},
{
'number': 1,
'text': 'one'
}
],
1,
admin_id
)
assert result
assert result == expected_result
| 36.735294
| 117
| 0.67081
| 2,706
| 23,731
| 5.292683
| 0.044346
| 0.111367
| 0.043988
| 0.050272
| 0.868524
| 0.831169
| 0.820626
| 0.80296
| 0.779291
| 0.770842
| 0
| 0.002384
| 0.275378
| 23,731
| 645
| 118
| 36.792248
| 0.830484
| 0
| 0
| 0.725
| 0
| 0
| 0.080022
| 0.038852
| 0
| 0
| 0
| 0
| 0.065385
| 1
| 0.032692
| false
| 0
| 0.017308
| 0
| 0.05
| 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
|
523c9033ace74a3fd38619c65260a962cce18239
| 2,981
|
py
|
Python
|
account_keeping/migrations/0003_auto_20171223_0356.py
|
peto813/django-account-keeping
|
2cf1c48a0ef7d051af8c57d630788b03777131c1
|
[
"MIT"
] | 14
|
2017-03-29T03:14:16.000Z
|
2022-03-28T14:11:58.000Z
|
account_keeping/migrations/0003_auto_20171223_0356.py
|
peto813/django-account-keeping
|
2cf1c48a0ef7d051af8c57d630788b03777131c1
|
[
"MIT"
] | 1
|
2016-11-08T08:35:49.000Z
|
2016-11-08T08:35:49.000Z
|
account_keeping/migrations/0003_auto_20171223_0356.py
|
peto813/django-account-keeping
|
2cf1c48a0ef7d051af8c57d630788b03777131c1
|
[
"MIT"
] | 4
|
2017-09-06T00:16:53.000Z
|
2018-11-25T21:58:39.000Z
|
# -*- coding: utf-8 -*-
# Generated by Django 1.9.9 on 2017-12-23 03:56
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('account_keeping', '0002_auto_20161006_1403'),
]
operations = [
migrations.AlterField(
model_name='account',
name='initial_amount',
field=models.DecimalField(decimal_places=10, default=0, max_digits=18, verbose_name='Initial amount'),
),
migrations.AlterField(
model_name='account',
name='total_amount',
field=models.DecimalField(decimal_places=10, default=0, max_digits=18, verbose_name='Total amount'),
),
migrations.AlterField(
model_name='invoice',
name='amount_gross',
field=models.DecimalField(blank=True, decimal_places=10, default=0, max_digits=18, verbose_name='Amount gross'),
),
migrations.AlterField(
model_name='invoice',
name='amount_net',
field=models.DecimalField(blank=True, decimal_places=10, default=0, max_digits=18, verbose_name='Amount net'),
),
migrations.AlterField(
model_name='invoice',
name='value_gross',
field=models.DecimalField(decimal_places=10, default=0, max_digits=18, verbose_name='Value gross'),
),
migrations.AlterField(
model_name='invoice',
name='value_net',
field=models.DecimalField(decimal_places=10, default=0, max_digits=18, verbose_name='Value net'),
),
migrations.AlterField(
model_name='invoice',
name='vat',
field=models.DecimalField(decimal_places=10, default=0, max_digits=14, verbose_name='VAT'),
),
migrations.AlterField(
model_name='transaction',
name='amount_gross',
field=models.DecimalField(blank=True, decimal_places=10, default=0, max_digits=18, verbose_name='Amount gross'),
),
migrations.AlterField(
model_name='transaction',
name='amount_net',
field=models.DecimalField(blank=True, decimal_places=10, default=0, max_digits=18, verbose_name='Amount net'),
),
migrations.AlterField(
model_name='transaction',
name='value_gross',
field=models.DecimalField(decimal_places=10, default=0, max_digits=18, verbose_name='Value gross'),
),
migrations.AlterField(
model_name='transaction',
name='value_net',
field=models.DecimalField(decimal_places=10, default=0, max_digits=18, verbose_name='Value net'),
),
migrations.AlterField(
model_name='transaction',
name='vat',
field=models.DecimalField(decimal_places=10, default=0, max_digits=14, verbose_name='VAT'),
),
]
| 39.223684
| 124
| 0.613552
| 318
| 2,981
| 5.540881
| 0.18239
| 0.136209
| 0.170261
| 0.197503
| 0.874007
| 0.867196
| 0.821793
| 0.737798
| 0.737798
| 0.737798
| 0
| 0.042125
| 0.26736
| 2,981
| 75
| 125
| 39.746667
| 0.764652
| 0.022476
| 0
| 0.823529
| 1
| 0
| 0.128478
| 0.007901
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.029412
| 0
| 0.073529
| 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
| 1
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 9
|
5247b5fb6cf04e626592950b5c79103f92fa0b98
| 1,482
|
py
|
Python
|
tests/draw/test_column.py
|
rianmcguire/WeasyPrint
|
7e400663236d16121e14cf3183ce53828d056092
|
[
"BSD-3-Clause"
] | 4,512
|
2015-01-02T16:40:59.000Z
|
2022-03-31T17:26:28.000Z
|
tests/draw/test_column.py
|
rianmcguire/WeasyPrint
|
7e400663236d16121e14cf3183ce53828d056092
|
[
"BSD-3-Clause"
] | 1,420
|
2015-01-07T21:17:01.000Z
|
2022-03-31T10:23:45.000Z
|
tests/draw/test_column.py
|
rianmcguire/WeasyPrint
|
7e400663236d16121e14cf3183ce53828d056092
|
[
"BSD-3-Clause"
] | 640
|
2015-01-30T18:07:09.000Z
|
2022-03-24T20:17:42.000Z
|
"""
weasyprint.tests.test_draw.test_column
--------------------------------------
Test how columns are drawn.
"""
from ..testing_utils import assert_no_logs
from . import assert_pixels
@assert_no_logs
def test_column_rule_1():
assert_pixels('solid', 5, 3, '''
a_r_a
a_r_a
_____
''', '''
<style>
img { display: inline-block; width: 1px; height: 1px }
div { columns: 2; column-rule-style: solid;
column-rule-width: 1px; column-gap: 3px;
column-rule-color: red }
body { margin: 0; font-size: 0; background: white}
@page { margin: 0; size: 5px 3px }
</style>
<div>
<img src=blue.jpg>
<img src=blue.jpg>
<img src=blue.jpg>
<img src=blue.jpg>
</div>''')
@assert_no_logs
def test_column_rule_2():
assert_pixels('dotted', 5, 3, '''
a_r_a
a___a
a_r_a
''', '''
<style>
img { display: inline-block; width: 1px; height: 1px }
div { columns: 2; column-rule-style: dotted;
column-rule-width: 1px; column-gap: 3px;
column-rule-color: red }
body { margin: 0; font-size: 0; background: white}
@page { margin: 0; size: 5px 3px }
</style>
<div>
<img src=blue.jpg>
<img src=blue.jpg>
<img src=blue.jpg>
<img src=blue.jpg>
<img src=blue.jpg>
<img src=blue.jpg>
</div>''')
| 25.118644
| 62
| 0.517544
| 190
| 1,482
| 3.857895
| 0.273684
| 0.081855
| 0.136426
| 0.177353
| 0.783083
| 0.783083
| 0.769441
| 0.690314
| 0.690314
| 0.690314
| 0
| 0.025845
| 0.321188
| 1,482
| 58
| 63
| 25.551724
| 0.702783
| 0.071525
| 0
| 0.782609
| 0
| 0
| 0.816236
| 0
| 0
| 0
| 0
| 0
| 0.130435
| 1
| 0.043478
| true
| 0
| 0.043478
| 0
| 0.086957
| 0
| 0
| 0
| 0
| null | 0
| 0
| 1
| 0
| 1
| 1
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 1
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
524a51be2b07f796c65576ec21324cf2725f28d7
| 146
|
py
|
Python
|
src/pages/index.py
|
nomilkinmyhome/todo-list
|
c596fa2003630de95e55ebe7d3420d9999270c97
|
[
"WTFPL"
] | 3
|
2020-10-05T16:50:02.000Z
|
2021-01-01T17:36:22.000Z
|
src/pages/index.py
|
nomilkinmyhome/todo-list
|
c596fa2003630de95e55ebe7d3420d9999270c97
|
[
"WTFPL"
] | 8
|
2020-10-05T20:59:01.000Z
|
2021-01-30T12:19:15.000Z
|
src/pages/index.py
|
nomilkinmyhome/todo-list
|
c596fa2003630de95e55ebe7d3420d9999270c97
|
[
"WTFPL"
] | null | null | null |
from flask import render_template
from .blueprint import blueprint
@blueprint.route('/')
def index():
return render_template('index.html')
| 16.222222
| 40
| 0.753425
| 18
| 146
| 6
| 0.611111
| 0.259259
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.136986
| 146
| 8
| 41
| 18.25
| 0.857143
| 0
| 0
| 0
| 0
| 0
| 0.075342
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.2
| true
| 0
| 0.4
| 0.2
| 0.8
| 0.4
| 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
| 0
| 1
| 0
| 1
| 1
| 1
| 0
|
0
| 7
|
52631d59f04291fd4e32ce2a58c47f12f17894ab
| 37,191
|
py
|
Python
|
samples/variables/variable.py
|
zoho/zohocrm-python-sdk-2.0
|
3a93eb3b57fed4e08f26bd5b311e101cb2995411
|
[
"Apache-2.0"
] | null | null | null |
samples/variables/variable.py
|
zoho/zohocrm-python-sdk-2.0
|
3a93eb3b57fed4e08f26bd5b311e101cb2995411
|
[
"Apache-2.0"
] | null | null | null |
samples/variables/variable.py
|
zoho/zohocrm-python-sdk-2.0
|
3a93eb3b57fed4e08f26bd5b311e101cb2995411
|
[
"Apache-2.0"
] | null | null | null |
from zcrmsdk.src.com.zoho.crm.api import ParameterMap
from zcrmsdk.src.com.zoho.crm.api.variable_groups import VariableGroup
from zcrmsdk.src.com.zoho.crm.api.variables import *
from zcrmsdk.src.com.zoho.crm.api.variables import Variable as ZCRMVariable
class Variable(object):
@staticmethod
def get_variables():
"""
This method is used to retrieve all the available variables through an API request and print the response.
"""
# Get instance of VariablesOperations Class
variables_operations = VariablesOperations()
# Get instance of ParameterMap Class
param_instance = ParameterMap()
# Possible parameters of Get Variables operation
param_instance.add(GetVariablesParam.group, 'General')
# Call get_variables method that takes ParameterMap instance as parameter
response = variables_operations.get_variables(param_instance)
if response is not None:
# Get the status code from response
print('Status Code: ' + str(response.get_status_code()))
if response.get_status_code() in [204, 304]:
print('No Content' if response.get_status_code() == 204 else 'Not Modified')
return
# Get object from response
response_object = response.get_object()
if response_object is not None:
# Check if expected ResponseWrapper instance is received.
if isinstance(response_object, ResponseWrapper):
# Get the list of obtained Variable instances
variable_list = response_object.get_variables()
for variable in variable_list:
# Get the ID of each Variable
print("Variable ID: " + str(variable.get_id()))
# Get the APIName of each Variable
print("Variable APIName: " + variable.get_api_name())
# Get the Name of each Variable
print("Variable Name: " + variable.get_name())
# Get the Description of each Variable
print("Variable Description: " + variable.get_description())
# Get the Type of each Variable
print("Variable Type: " + variable.get_type())
# Get the VariableGroup instance of each Variable
variable_group = variable.get_variable_group()
if variable_group is not None:
# Get the APIName of the VariableGroup
print("Variable VariableGroup APIName: " + variable_group.get_api_name())
# Get the ID of the VariableGroup
print("Variable VariableGroup ID: " + str(variable_group.get_id()))
# Get the Value of each Variable
print("Variable Value: " + variable.get_value())
# Check if the request returned an exception
elif isinstance(response_object, APIException):
# Get the Status
print("Status: " + response_object.get_status().get_value())
# Get the Code
print("Code: " + response_object.get_code().get_value())
print("Details")
# Get the details dict
details = response_object.get_details()
for key, value in details.items():
print(key + ' : ' + str(value))
# Get the Message
print("Message: " + response_object.get_message().get_value())
@staticmethod
def get_variable_by_id(variable_id):
"""
This method is used to get the details of any specific variable with ID and print the response
:param variable_id: The ID of the Variable to be obtained
"""
"""
example
variable_id = 3409643000002275025
"""
# Get instance of VariablesOperations Class
variables_operations = VariablesOperations()
# Get instance of ParameterMap Class
param_instance = ParameterMap()
# Possible parameters of Get Variable By ID operation
# param_instance.add(GetVariableByIDParam.group, '3409643000002275023')
# Call get_variable_by_id method that takes ParameterMap instance and variable_id as parameters
response = variables_operations.get_variable_by_id(variable_id, param_instance)
if response is not None:
# Get the status code from response
print('Status Code: ' + str(response.get_status_code()))
if response.get_status_code() in [204, 304]:
print('No Content' if response.get_status_code() == 204 else 'Not Modified')
return
# Get object from response
response_object = response.get_object()
if response_object is not None:
# Check if expected ResponseWrapper instance is received.
if isinstance(response_object, ResponseWrapper):
# Get the list of obtained Variable instances
variable_list = response_object.get_variables()
for variable in variable_list:
# Get the ID of each Variable
print("Variable ID: " + str(variable.get_id()))
# Get the APIName of each Variable
print("Variable APIName: " + variable.get_api_name())
# Get the Name of each Variable
print("Variable Name: " + variable.get_name())
# Get the Description of each Variable
print("Variable Description: " + variable.get_description())
# Get the Type of each Variable
print("Variable Type: " + variable.get_type())
# Get the VariableGroup instance of each Variable
variable_group = variable.get_variable_group()
if variable_group is not None:
# Get the APIName of the VariableGroup
print("Variable VariableGroup APIName: " + variable_group.get_api_name())
# Get the ID of the VariableGroup
print("Variable VariableGroup ID: ")
print(variable_group.get_id())
# Get the Value of each Variable
print("Variable Value: " + variable.get_value())
# Check if the request returned an exception
elif isinstance(response_object, APIException):
# Get the Status
print("Status: " + response_object.get_status().get_value())
# Get the Code
print("Code: " + response_object.get_code().get_value())
print("Details")
# Get the details dict
details = response_object.get_details()
for key, value in details.items():
print(key + ' : ' + str(value))
# Get the Message
print("Message: " + response_object.get_message().get_value())
@staticmethod
def get_variable_for_api_name(variable_api_name):
"""
This method is used to get the details of any specific variable with API Name
:param variable_api_name: The API name of the Variable to be obtained
"""
"""
example
variable_api_name = 'Variable55'
"""
# Get instance of VariablesOperations Class
variables_operations = VariablesOperations()
# Get instance of ParameterMap Class
param_instance = ParameterMap()
# Possible parameters of Get Variable For API Name operation
# param_instance.add(GetVariableForAPINameParam.group, '3409643000002275023')
# Call get_variable_for_api_name method that takes ParameterMap instance and variable_api_name as parameters
response = variables_operations.get_variable_for_api_name(variable_api_name, param_instance)
if response is not None:
# Get the status code from response
print('Status Code: ' + str(response.get_status_code()))
if response.get_status_code() in [204, 304]:
print('No Content' if response.get_status_code() == 204 else 'Not Modified')
return
# Get object from response
response_object = response.get_object()
if response_object is not None:
# Check if expected ResponseWrapper instance is received.
if isinstance(response_object, ResponseWrapper):
# Get the list of obtained Variable instances
variable_list = response_object.get_variables()
for variable in variable_list:
# Get the ID of each Variable
print("Variable ID: " + str(variable.get_id()))
# Get the APIName of each Variable
print("Variable APIName: " + variable.get_api_name())
# Get the Name of each Variable
print("Variable Name: " + variable.get_name())
# Get the Description of each Variable
print("Variable Description: " + variable.get_description())
# Get the Type of each Variable
print("Variable Type: " + variable.get_type())
# Get the VariableGroup instance of each Variable
variable_group = variable.get_variable_group()
if variable_group is not None:
# Get the APIName of the VariableGroup
print("Variable VariableGroup APIName: " + variable_group.get_api_name())
# Get the ID of the VariableGroup
print("Variable VariableGroup ID: ")
print(variable_group.get_id())
# Get the Value of each Variable
print("Variable Value: " + variable.get_value())
# Check if the request returned an exception
elif isinstance(response_object, APIException):
# Get the Status
print("Status: " + response_object.get_status().get_value())
# Get the Code
print("Code: " + response_object.get_code().get_value())
print("Details")
# Get the details dict
details = response_object.get_details()
for key, value in details.items():
print(key + ' : ' + str(value))
# Get the Message
print("Message: " + response_object.get_message().get_value())
@staticmethod
def create_variables():
"""
This method is used to create variables and print the response.
"""
# Get instance of VariablesOperations Class
variables_operations = VariablesOperations()
# Get instance of BodyWrapper Class that will contain the request body
request = BodyWrapper()
# List to hold Variable instances
variable_list = []
# Get instance of Variable Class
variable_1 = ZCRMVariable()
# Set the API name to variable
variable_1.set_api_name('Variable1234')
# Set the name to variable
variable_1.set_name('Variable1234')
# Get instance of VariableGroup Class
variable_group = VariableGroup()
# Set ID to variable_group
variable_group.set_id(3409643000002275023)
# Set the VariableGroup to Variable instance
variable_1.set_variable_group(variable_group)
# Set the type to Variable
variable_1.set_type('integer')
# Set the value
variable_1.set_value('55')
variable_1.set_description('This denotes variable 5 description')
# Add the variable instance to the array
variable_list.append(variable_1)
# Get instance of Variable Class
variable_2 = ZCRMVariable()
# Set the API name to variable
variable_2.set_api_name('Variablenew1')
# Set the name to variable
variable_2.set_name('Variablenew1')
# Get instance of VariableGroup Class
variable_group = VariableGroup()
# Set ID to variable_group
# variable_group.set_id(3409643000002275023)
variable_group.set_name("New VG")
# Set the VariableGroup to Variable instance
variable_2.set_variable_group(variable_group)
# Set the type to Variable
variable_2.set_type('text')
# Set the value
variable_2.set_value('Python')
variable_2.set_description('This denotes variable 5 description')
# Add the variable instance to the array
variable_list.append(variable_2)
# Set the list to variables in BodyWrapper instance
request.set_variables(variable_list)
# Call create_variables method that takes BodyWrapper instance as parameter
response = variables_operations.create_variables(request)
if response is not None:
# Get the status code from response
print('Status Code: ' + str(response.get_status_code()))
# Get object from response
response_object = response.get_object()
if response_object is not None:
# Check if expected ActionWrapper instance is received.
if isinstance(response_object, ActionWrapper):
# Get the list of obtained ActionResponse instances
action_response_list = response_object.get_variables()
for action_response in action_response_list:
# Check if the request is successful
if isinstance(action_response, SuccessResponse):
# Get the Status
print("Status: " + action_response.get_status().get_value())
# Get the Code
print("Code: " + action_response.get_code().get_value())
print("Details")
# Get the details dict
details = action_response.get_details()
for key, value in details.items():
print(key + ' : ' + str(value))
# Get the Message
print("Message: " + action_response.get_message().get_value())
# Check if the request returned an exception
elif isinstance(action_response, APIException):
# Get the Status
print("Status: " + action_response.get_status().get_value())
# Get the Code
print("Code: " + action_response.get_code().get_value())
print("Details")
# Get the details dict
details = action_response.get_details()
for key, value in details.items():
print(key + ' : ' + str(value))
# Get the Message
print("Message: " + action_response.get_message().get_value())
# Check if the request returned an exception
elif isinstance(response_object, APIException):
# Get the Status
print("Status: " + response_object.get_status().get_value())
# Get the Code
print("Code: " + response_object.get_code().get_value())
print("Details")
# Get the details dict
details = response_object.get_details()
for key, value in details.items():
print(key + ' : ' + str(value))
# Get the Message
print("Message: " + response_object.get_message().get_value())
@staticmethod
def update_variables():
"""
This method is used to update details of variables in CRM and print the response.
"""
# Get instance of VariablesOperations Class
variables_operations = VariablesOperations()
# Get instance of BodyWrapper Class that will contain the request body
request = BodyWrapper()
# List to hold Variable instances
variable_list = []
# Get instance of Variable Class
variable_1 = ZCRMVariable()
# Set the ID
variable_1.set_id(3477061000011248007)
# Set the value
variable_1.set_value('50')
# Add the variable instance to the array
variable_list.append(variable_1)
# Get instance of Variable Class
variable_2 = ZCRMVariable()
# Set the ID
variable_2.set_id(3409643000002275035)
variable_2.set_description('This is a new description')
# Add the variable instance to the array
variable_list.append(variable_2)
# Set the list to variables in BodyWrapper instance
request.set_variables(variable_list)
# Call update_variables method that takes BodyWrapper instance as parameter
response = variables_operations.update_variables(request)
if response is not None:
# Get the status code from response
print('Status Code: ' + str(response.get_status_code()))
# Get object from response
response_object = response.get_object()
if response_object is not None:
# Check if expected ActionWrapper instance is received.
if isinstance(response_object, ActionWrapper):
# Get the list of obtained ActionResponse instances
action_response_list = response_object.get_variables()
for action_response in action_response_list:
# Check if the request is successful
if isinstance(action_response, SuccessResponse):
# Get the Status
print("Status: " + action_response.get_status().get_value())
# Get the Code
print("Code: " + action_response.get_code().get_value())
print("Details")
# Get the details dict
details = action_response.get_details()
for key, value in details.items():
print(key + ' : ' + str(value))
# Get the Message
print("Message: " + action_response.get_message().get_value())
# Check if the request returned an exception
elif isinstance(action_response, APIException):
# Get the Status
print("Status: " + action_response.get_status().get_value())
# Get the Code
print("Code: " + action_response.get_code().get_value())
print("Details")
# Get the details dict
details = action_response.get_details()
for key, value in details.items():
print(key + ' : ' + str(value))
# Get the Message
print("Message: " + action_response.get_message().get_value())
# Check if the request returned an exception
elif isinstance(response_object, APIException):
# Get the Status
print("Status: " + response_object.get_status().get_value())
# Get the Code
print("Code: " + response_object.get_code().get_value())
print("Details")
# Get the details dict
details = response_object.get_details()
for key, value in details.items():
print(key + ' : ' + str(value))
# Get the Message
print("Message: " + response_object.get_message().get_value())
@staticmethod
def update_variable_by_id(variable_id):
"""
This method is used to update details of a specific variable in CRM and print the response.
:param variable_id: The ID of the Variable to be updated
:return:
"""
"""
example
variable_id = 3409643000002275025
"""
# Get instance of VariablesOperations Class
variables_operations = VariablesOperations()
# Get instance of BodyWrapper Class that will contain the request body
request = BodyWrapper()
# List to hold Variable instances
variable_list = []
# Get instance of Variable Class
variable_1 = ZCRMVariable()
# Set the value
variable_1.set_value('98')
# Add the variable instance to the array
variable_list.append(variable_1)
# Set the list to variables in BodyWrapper instance
request.set_variables(variable_list)
# Call update_variable_by_id method that takes BodyWrapper instance and variable_id as parameters
response = variables_operations.update_variable_by_id(variable_id, request)
if response is not None:
# Get the status code from response
print('Status Code: ' + str(response.get_status_code()))
# Get object from response
response_object = response.get_object()
if response_object is not None:
# Check if expected ActionWrapper instance is received.
if isinstance(response_object, ActionWrapper):
# Get the list of obtained ActionResponse instances
action_response_list = response_object.get_variables()
for action_response in action_response_list:
# Check if the request is successful
if isinstance(action_response, SuccessResponse):
# Get the Status
print("Status: " + action_response.get_status().get_value())
# Get the Code
print("Code: " + action_response.get_code().get_value())
print("Details")
# Get the details dict
details = action_response.get_details()
for key, value in details.items():
print(key + ' : ' + str(value))
# Get the Message
print("Message: " + action_response.get_message().get_value())
# Check if the request returned an exception
elif isinstance(action_response, APIException):
# Get the Status
print("Status: " + action_response.get_status().get_value())
# Get the Code
print("Code: " + action_response.get_code().get_value())
print("Details")
# Get the details dict
details = action_response.get_details()
for key, value in details.items():
print(key + ' : ' + str(value))
# Get the Message
print("Message: " + action_response.get_message().get_value())
# Check if the request returned an exception
elif isinstance(response_object, APIException):
# Get the Status
print("Status: " + response_object.get_status().get_value())
# Get the Code
print("Code: " + response_object.get_code().get_value())
print("Details")
# Get the details dict
details = response_object.get_details()
for key, value in details.items():
print(key + ' : ' + str(value))
# Get the Message
print("Message: " + response_object.get_message().get_value())
@staticmethod
def update_variable_by_api_name(variable_api_name):
"""
This method is used to update details of a specific variable in CRM with API Name and print the response.
:param variable_api_name: The API name of the Variable to be updated
"""
"""
example
variable_api_name = 'Variable55'
"""
# Get instance of VariablesOperations Class
variables_operations = VariablesOperations()
# Get instance of BodyWrapper Class that will contain the request body
request = BodyWrapper()
# List to hold Variable instances
variable_list = []
# Get instance of Variable Class
variable_1 = ZCRMVariable()
# Set the value
variable_1.set_value('98')
# Set the API Name
variable_1.set_api_name('Edited-variable55')
# Add the variable instance to the array
variable_list.append(variable_1)
# Set the list to variables in BodyWrapper instance
request.set_variables(variable_list)
# Call update_variable_by_api_name method that takes BodyWrapper instance and variable_api_name as parameters
response = variables_operations.update_variable_by_api_name(variable_api_name, request)
if response is not None:
# Get the status code from response
print('Status Code: ' + str(response.get_status_code()))
# Get object from response
response_object = response.get_object()
if response_object is not None:
# Check if expected ActionWrapper instance is received.
if isinstance(response_object, ActionWrapper):
# Get the list of obtained ActionResponse instances
action_response_list = response_object.get_variables()
for action_response in action_response_list:
# Check if the request is successful
if isinstance(action_response, SuccessResponse):
# Get the Status
print("Status: " + action_response.get_status().get_value())
# Get the Code
print("Code: " + action_response.get_code().get_value())
print("Details")
# Get the details dict
details = action_response.get_details()
for key, value in details.items():
print(key + ' : ' + str(value))
# Get the Message
print("Message: " + action_response.get_message().get_value())
# Check if the request returned an exception
elif isinstance(action_response, APIException):
# Get the Status
print("Status: " + action_response.get_status().get_value())
# Get the Code
print("Code: " + action_response.get_code().get_value())
print("Details")
# Get the details dict
details = action_response.get_details()
for key, value in details.items():
print(key + ' : ' + str(value))
# Get the Message
print("Message: " + action_response.get_message().get_value())
# Check if the request returned an exception
elif isinstance(response_object, APIException):
# Get the Status
print("Status: " + response_object.get_status().get_value())
# Get the Code
print("Code: " + response_object.get_code().get_value())
print("Details")
# Get the details dict
details = response_object.get_details()
for key, value in details.items():
print(key + ' : ' + str(value))
# Get the Message
print("Message: " + response_object.get_message().get_value())
@staticmethod
def delete_variable(variable_id):
"""
This method is used to delete details of a specific variable in CRM and print the response.
:param variable_id: The ID of the Variable to be deleted
"""
"""
example
variable_id = 3409643000002275025
"""
# Get instance of VariablesOperations Class
variables_operations = VariablesOperations()
# Call delete_variable method that takes variable_id as parameter
response = variables_operations.delete_variable(variable_id)
if response is not None:
# Get the status code from response
print('Status Code: ' + str(response.get_status_code()))
# Get object from response
response_object = response.get_object()
if response_object is not None:
# Check if expected ActionWrapper instance is received.
if isinstance(response_object, ActionWrapper):
# Get the list of obtained ActionResponse instances
action_response_list = response_object.get_variables()
for action_response in action_response_list:
# Check if the request is successful
if isinstance(action_response, SuccessResponse):
# Get the Status
print("Status: " + action_response.get_status().get_value())
# Get the Code
print("Code: " + action_response.get_code().get_value())
print("Details")
# Get the details dict
details = action_response.get_details()
for key, value in details.items():
print(key + ' : ' + str(value))
# Get the Message
print("Message: " + action_response.get_message().get_value())
# Check if the request returned an exception
elif isinstance(action_response, APIException):
# Get the Status
print("Status: " + action_response.get_status().get_value())
# Get the Code
print("Code: " + action_response.get_code().get_value())
print("Details")
# Get the details dict
details = action_response.get_details()
for key, value in details.items():
print(key + ' : ' + str(value))
# Get the Message
print("Message: " + action_response.get_message().get_value())
# Check if the request returned an exception
elif isinstance(response_object, APIException):
# Get the Status
print("Status: " + response_object.get_status().get_value())
# Get the Code
print("Code: " + response_object.get_code().get_value())
print("Details")
# Get the details dict
details = response_object.get_details()
for key, value in details.items():
print(key + ' : ' + str(value))
# Get the Message
print("Message: " + response_object.get_message().get_value())
@staticmethod
def delete_variables(variable_ids):
"""
This method is used to delete details of multiple variables in CRM simultaneously and print the response.
:param variable_ids: The list of Variable IDs to be deleted
"""
"""
example
variable_ids = [3409643000002275025, 3409643000002275035]
"""
# Get instance of VariablesOperations Class
variables_operations = VariablesOperations()
# Get instance of ParameterMap Class
param_instance = ParameterMap()
# Possible parameters of Delete Variables operation
for variable_id in variable_ids:
param_instance.add(DeleteVariablesParam.ids, variable_id)
# Call delete_variables method that takes ParameterMap instance as parameter
response = variables_operations.delete_variables(param_instance)
if response is not None:
# Get the status code from response
print('Status Code: ' + str(response.get_status_code()))
# Get object from response
response_object = response.get_object()
if response_object is not None:
# Check if expected ActionWrapper instance is received.
if isinstance(response_object, ActionWrapper):
# Get the list of obtained ActionResponse instances
action_response_list = response_object.get_variables()
for action_response in action_response_list:
# Check if the request is successful
if isinstance(action_response, SuccessResponse):
# Get the Status
print("Status: " + action_response.get_status().get_value())
# Get the Code
print("Code: " + action_response.get_code().get_value())
print("Details")
# Get the details dict
details = action_response.get_details()
for key, value in details.items():
print(key + ' : ' + str(value))
# Get the Message
print("Message: " + action_response.get_message().get_value())
# Check if the request returned an exception
elif isinstance(action_response, APIException):
# Get the Status
print("Status: " + action_response.get_status().get_value())
# Get the Code
print("Code: " + action_response.get_code().get_value())
print("Details")
# Get the details dict
details = action_response.get_details()
for key, value in details.items():
print(key + ' : ' + str(value))
# Get the Message
print("Message: " + action_response.get_message().get_value())
# Check if the request returned an exception
elif isinstance(response_object, APIException):
# Get the Status
print("Status: " + response_object.get_status().get_value())
# Get the Code
print("Code: " + response_object.get_code().get_value())
print("Details")
# Get the details dict
details = response_object.get_details()
for key, value in details.items():
print(key + ' : ' + str(value))
# Get the Message
print("Message: " + response_object.get_message().get_value())
| 37.911315
| 117
| 0.535103
| 3,591
| 37,191
| 5.365358
| 0.039265
| 0.040795
| 0.042352
| 0.018529
| 0.950693
| 0.939274
| 0.923963
| 0.906991
| 0.894068
| 0.88348
| 0
| 0.01305
| 0.396306
| 37,191
| 980
| 118
| 37.95
| 0.845092
| 0.241268
| 0
| 0.874659
| 0
| 0
| 0.056803
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.024523
| false
| 0
| 0.010899
| 0
| 0.046322
| 0.389646
| 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
|
8724cf5347015bf6566bcd0b1e07c10c13d73d24
| 13,938
|
py
|
Python
|
03_Deployment/deploy_app.py
|
yjik122/final_project
|
7e908893548d11ea216f1337263e4a122420b500
|
[
"Unlicense"
] | 1
|
2020-12-31T17:26:03.000Z
|
2020-12-31T17:26:03.000Z
|
03_Deployment/deploy_app.py
|
yjik122/final_project
|
7e908893548d11ea216f1337263e4a122420b500
|
[
"Unlicense"
] | null | null | null |
03_Deployment/deploy_app.py
|
yjik122/final_project
|
7e908893548d11ea216f1337263e4a122420b500
|
[
"Unlicense"
] | 1
|
2022-02-09T05:58:28.000Z
|
2022-02-09T05:58:28.000Z
|
import functions
import numpy as np
import pandas as pd
import streamlit as st
from tensorflow.keras.models import load_model
import time
from datetime import datetime
from sklearn.metrics import r2_score
st.set_page_config(page_title='FEX Forecasting',
layout="wide")
path = '~'
df = functions.import_main_df(f'{path}/02_Model/final_dataset.csv')
path2020 = f'{path}/02_Model/all_countries2020.csv'
first_column = ['Canada', 'Australia', 'Brazil', 'China', 'Denmark', 'Japan', 'Korea', 'Mexico', 'New Zealand',
'Norway', 'Sweden', 'Switzerland', 'South Africa', 'UK', 'US']
pageop = st.sidebar.radio(
"Go to",
('Best Model', 'Beta'))
if pageop == 'Best Model':
option = st.sidebar.selectbox(
'Choose A Country',
first_column)
if option == 'Australia':
country_code = 'AUD'
if option == 'Brazil':
country_code = 'BRL'
if option == 'Switzerland':
country_code = 'CHF'
if option == 'Canada':
country_code = 'CND'
if option == 'China':
country_code = 'CNY'
if option == 'Denmark':
country_code = 'DKK'
if option == 'UK':
country_code = 'GBP'
if option == 'US':
country_code = 'USD'
if option == 'Japan':
country_code = 'JPY'
if option == 'Korea':
country_code = 'KRW'
if option == 'Mexico':
country_code = 'MXN'
if option == 'Norway':
country_code = 'NOK'
if option == 'New Zealand':
country_code = 'NZD'
if option == 'Sweden':
country_code = 'SEK'
if option == 'South Africa':
country_code = 'ZAR'
fitted_future_predictions = functions.import_main_df(f'data_files/fitted_future_predictions_{country_code}.csv')
fitted_future_predictions['index'] = pd.to_datetime(fitted_future_predictions['index'])
fitted_future_predictions = fitted_future_predictions.set_index('index')
fitted_training_predictions = functions.import_main_df(f'data_files/fitted_training_predictions_{country_code}.csv')
fitted_training_predictions['index'] = pd.to_datetime(fitted_training_predictions['index'])
fitted_training_predictions = fitted_training_predictions.set_index('index')
fitted_dataset_train = functions.import_main_df(f'data_files/fitted_dataset_train_{country_code}.csv')
fitted_dataset_train['index'] = pd.to_datetime(fitted_dataset_train['index'])
fitted_dataset_train = fitted_dataset_train.set_index('index')
r2 = r2_score(fitted_dataset_train.loc["2001-06-20":][f"{country_code}_USD"],
fitted_training_predictions.loc["2001-06-20":][f"{country_code}_USD"])
rmse = functions.mean_squared_error(fitted_dataset_train.loc["2001-06-20":][f"{country_code}_USD"],
fitted_training_predictions.loc["2001-06-20":][f"{country_code}_USD"], squared=False)
mse = functions.mean_squared_error(fitted_dataset_train.loc["2001-06-20":][f"{country_code}_USD"],
fitted_training_predictions.loc["2001-06-20":][f"{country_code}_USD"])
df2020 = functions.get_2020(fitted_future_predictions, country_code, path2020)
start_time2 = st.slider("Select Start Date", min_value=datetime(2000, 1, 3), max_value=datetime(2020, 11, 30),
value=datetime(2001, 6, 14), format="MM/DD/YY", key=f'only_{country_code}')
with st.beta_container():
st.bokeh_chart(functions.bokeh_plotting(fitted_future_predictions, country_code, fitted_training_predictions,
fitted_dataset_train, df2020, start_time2), use_container_width=False)
expander = st.beta_expander("Evaluation Metrics")
expander.write(f'R-squared: {r2}')
expander.write(f'Root Mean Square Error: {rmse}')
expander.write(f'Mean Square Error: {mse}')
###################
if pageop == 'Beta':
fitted_modelCND = load_model('data_files/trained_model_on_CND.h5', compile=True)
fitted_modelUSD = load_model('data_files/trained_model_on_USD.h5', compile=True)
st.text('Choose a Base Model')
left_column, right_column = st.beta_columns(2)
pressed = left_column.checkbox('Canada')
if pressed:
fitted_model = fitted_modelCND
country_code = 'CND'
fitted_future_predictions = functions.import_main_df(f'data_files/fitted_future_predictions_{country_code}.csv')
fitted_future_predictions['index'] = pd.to_datetime(fitted_future_predictions['index'])
fitted_future_predictions = fitted_future_predictions.set_index('index')
fitted_training_predictions = functions.import_main_df(f'data_files/fitted_training_predictions_{country_code}.csv')
fitted_training_predictions['index'] = pd.to_datetime(fitted_training_predictions['index'])
fitted_training_predictions = fitted_training_predictions.set_index('index')
fitted_dataset_train = functions.import_main_df(f'data_files/fitted_dataset_train_{country_code}.csv')
fitted_dataset_train['index'] = pd.to_datetime(fitted_dataset_train['index'])
fitted_dataset_train = fitted_dataset_train.set_index('index')
r2 = r2_score(fitted_dataset_train.loc["2001-06-20":][f"{country_code}_USD"],
fitted_training_predictions.loc["2001-06-20":][f"{country_code}_USD"])
rmse = functions.mean_squared_error(fitted_dataset_train.loc["2001-06-20":][f"{country_code}_USD"],
fitted_training_predictions.loc["2001-06-20":][f"{country_code}_USD"], squared=False)
mse = functions.mean_squared_error(fitted_dataset_train.loc["2001-06-20":][f"{country_code}_USD"],
fitted_training_predictions.loc["2001-06-20":][f"{country_code}_USD"])
df2020 = functions.get_2020(fitted_future_predictions, country_code, path2020)
start_time2 = st.slider("Select Start Date", min_value=datetime(2000, 1, 3), max_value=datetime(2020, 11, 30),
value=datetime(2001, 6, 14), format="MM/DD/YY", key=f'only_{country_code}')
with st.beta_container():
st.bokeh_chart(functions.bokeh_plotting(fitted_future_predictions, country_code, fitted_training_predictions,
fitted_dataset_train, df2020, start_time2), use_container_width=False)
pressed2 = right_column.checkbox('United States')
if pressed2:
fitted_model = fitted_modelUSD
country_code = 'USD'
fitted_future_predictions = functions.import_main_df(f'data_files/fitted_future_predictions_{country_code}.csv')
fitted_future_predictions['index'] = pd.to_datetime(fitted_future_predictions['index'])
fitted_future_predictions = fitted_future_predictions.set_index('index')
fitted_training_predictions = functions.import_main_df(f'data_files/fitted_training_predictions_{country_code}.csv')
fitted_training_predictions['index'] = pd.to_datetime(fitted_training_predictions['index'])
fitted_training_predictions = fitted_training_predictions.set_index('index')
fitted_dataset_train = functions.import_main_df(f'data_files/fitted_dataset_train_{country_code}.csv')
fitted_dataset_train['index'] = pd.to_datetime(fitted_dataset_train['index'])
fitted_dataset_train = fitted_dataset_train.set_index('index')
r2 = r2_score(fitted_dataset_train.loc["2001-06-20":][f"{country_code}_USD"],
fitted_training_predictions.loc["2001-06-20":][f"{country_code}_USD"])
rmse = functions.mean_squared_error(fitted_dataset_train.loc["2001-06-20":][f"{country_code}_USD"],
fitted_training_predictions.loc["2001-06-20":][f"{country_code}_USD"], squared=False)
mse = functions.mean_squared_error(fitted_dataset_train.loc["2001-06-20":][f"{country_code}_USD"],
fitted_training_predictions.loc["2001-06-20":][f"{country_code}_USD"])
df2020 = functions.get_2020(fitted_future_predictions, country_code, path2020)
start_time2 = st.slider("Select Start Date", min_value=datetime(2000, 1, 3), max_value=datetime(2020, 11, 30),
value=datetime(2001, 6, 14), format="MM/DD/YY", key=f'only_{country_code}')
with st.beta_container():
st.bokeh_chart(functions.bokeh_plotting(fitted_future_predictions, country_code, fitted_training_predictions,
fitted_dataset_train, df2020, start_time2), use_container_width=False)
if pressed:
st.write('Select Another Country')
option = st.selectbox('Please Select A Country', (' ', 'Australia', 'Japan', 'Korea', 'Mexico', 'New Zealand', 'Norway',
'Sweden', 'Switzerland', 'UK', 'US'))
if option != ' ':
st.write('You have selected:', option)
if option == 'Australia':
country_var = 'AUD'
if option == 'Japan':
country_var = 'JPY'
if option == 'Korea':
country_var = 'KRW'
if option == 'Mexico':
country_var = 'MXN'
if option == 'New Zealand':
country_var = 'NZD'
if option == 'Norway':
country_var = 'NOK'
if option == 'Sweden':
country_var = 'SEK'
if option == 'Switzerland':
country_var = 'CHF'
if option == 'UK':
country_var = 'GBP'
if option == 'US':
country_var = 'USD'
if option != ' ':
start_time = st.slider("Select Start Date", min_value=datetime(2000, 1, 3), max_value=datetime(2020, 11, 30),
value=datetime(2001, 6, 14), format="MM/DD/YY", key=country_var)
df_train, dates_list, var_list = functions.other_country_vars(df, country_var)
df_matrixtrain, df_matrixtrain_scaled, scaler, scaler_y = functions.matrix_and_scale(df_train, var_list)
n_future = 365
n_past = 3
X_train, y_train = functions.data_for_model(n_future, n_past, df_matrixtrain_scaled)
future_datelist = functions.get_future_dates(dates_list, n_future)
pred_future, pred_train = functions.get_predictions(fitted_model, X_train, n_future, n_past)
y_pred_future, y_pred_train = functions.inverse_predictions(pred_future, pred_train, scaler_y)
df_future_predictions, df_training_predictions = functions.pred_to_dataframe(y_pred_future, country_var, future_datelist,
y_pred_train, dates_list, n_past, n_future)
# Convert <datetime.date> to <Timestamp> for PREDCITION_TRAIN
df_training_predictions.index = df_training_predictions.index.to_series().apply(functions.datetime_to_timestamp)
dataset_train = functions.dataset_for_visual(df_train, var_list, dates_list)
df2020 = functions.get_2020(df_future_predictions, country_var, path2020)
st.bokeh_chart(functions.bokeh_plotting(df_future_predictions, country_var, df_training_predictions,
dataset_train, df2020, start_time), use_container_width=False)
elif pressed:
st.write('Select Another Country')
option = st.selectbox('Please Select A Country', (' ', 'Australia', 'Canada' 'Japan', 'Korea', 'Mexico', 'New Zealand', 'Norway',
'Sweden', 'Switzerland', 'UK'))
if option != ' ':
st.write('You have selected:', option)
if option == 'Australia':
country_var = 'AUD'
if option == 'Japan':
country_var = 'JPY'
if option == 'Korea':
country_var = 'KRW'
if option == 'Mexico':
country_var = 'MXN'
if option == 'New Zealand':
country_var = 'NZD'
if option == 'Norway':
country_var = 'NOK'
if option == 'Sweden':
country_var = 'SEK'
if option == 'Switzerland':
country_var = 'CHF'
if option == 'UK':
country_var = 'GBP'
if option == 'US':
country_var = 'USD'
if option != ' ':
start_time = st.slider("Select Start Date", min_value=datetime(2000, 1, 3), max_value=datetime(2020, 11, 30),
value=datetime(2001, 6, 14), format="MM/DD/YY", key=country_var)
df_train, dates_list, var_list = functions.other_country_vars(df, country_var)
df_matrixtrain, df_matrixtrain_scaled, scaler, scaler_y = functions.matrix_and_scale(df_train, var_list)
n_future = 365
n_past = 3
X_train, y_train = functions.data_for_model(n_future, n_past, df_matrixtrain_scaled)
future_datelist = functions.get_future_dates(dates_list, n_future)
pred_future, pred_train = functions.get_predictions(fitted_model, X_train, n_future, n_past)
y_pred_future, y_pred_train = functions.inverse_predictions(pred_future, pred_train, scaler_y)
df_future_predictions, df_training_predictions = functions.pred_to_dataframe(y_pred_future, country_var, future_datelist,
y_pred_train, dates_list, n_past, n_future)
# Convert <datetime.date> to <Timestamp> for PREDCITION_TRAIN
df_training_predictions.index = df_training_predictions.index.to_series().apply(functions.datetime_to_timestamp)
dataset_train = functions.dataset_for_visual(df_train, var_list, dates_list)
df2020 = functions.get_2020(df_future_predictions, country_var, path2020)
st.bokeh_chart(functions.bokeh_plotting(df_future_predictions, country_var, df_training_predictions,
dataset_train, df2020, start_time), use_container_width=False)
| 46.929293
| 138
| 0.656192
| 1,698
| 13,938
| 5.044759
| 0.114252
| 0.06806
| 0.087555
| 0.023115
| 0.856409
| 0.843101
| 0.843101
| 0.835629
| 0.829909
| 0.818001
| 0
| 0.03422
| 0.22844
| 13,938
| 296
| 139
| 47.087838
| 0.762321
| 0.008538
| 0
| 0.731818
| 0
| 0
| 0.169312
| 0.045227
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.081818
| 0
| 0.081818
| 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
|
873d3230971a5b768b0cd1b1120c209e318ec52b
| 154
|
py
|
Python
|
presentation_document/20200229_PyCon_mini_Shizuoka/boundingbox_art/__init__.py
|
Kazuhito00/presentation
|
5811e43fdb2db58f7b8193fbccc17011bf3b1599
|
[
"MIT"
] | null | null | null |
presentation_document/20200229_PyCon_mini_Shizuoka/boundingbox_art/__init__.py
|
Kazuhito00/presentation
|
5811e43fdb2db58f7b8193fbccc17011bf3b1599
|
[
"MIT"
] | null | null | null |
presentation_document/20200229_PyCon_mini_Shizuoka/boundingbox_art/__init__.py
|
Kazuhito00/presentation
|
5811e43fdb2db58f7b8193fbccc17011bf3b1599
|
[
"MIT"
] | null | null | null |
from boundingbox_art.bba_look_into_the_muzzle import bba_look_into_the_muzzle
from boundingbox_art.bba_sound_only_monolith import bba_sound_only_monolith
| 51.333333
| 77
| 0.935065
| 26
| 154
| 4.923077
| 0.461538
| 0.234375
| 0.28125
| 0.328125
| 0.3125
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.051948
| 154
| 2
| 78
| 77
| 0.876712
| 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
|
8753eccffb58a2e089acf0dbf29031eec2537889
| 136
|
py
|
Python
|
fun/test-code/see-anaconda-path.py
|
wnm1503303791/cppcode
|
2c6ea2b72126cc405adcc8b290e0217aa85e851f
|
[
"MIT"
] | null | null | null |
fun/test-code/see-anaconda-path.py
|
wnm1503303791/cppcode
|
2c6ea2b72126cc405adcc8b290e0217aa85e851f
|
[
"MIT"
] | null | null | null |
fun/test-code/see-anaconda-path.py
|
wnm1503303791/cppcode
|
2c6ea2b72126cc405adcc8b290e0217aa85e851f
|
[
"MIT"
] | null | null | null |
import numpy
import basenji
from distutils.sysconfig import get_python_lib
print(get_python_lib(numpy))
print(get_python_lib(basenji))
| 19.428571
| 46
| 0.852941
| 21
| 136
| 5.238095
| 0.47619
| 0.245455
| 0.327273
| 0.309091
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.080882
| 136
| 6
| 47
| 22.666667
| 0.88
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0.6
| 0
| 0.6
| 0.4
| 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
|
8755a2f73a20f604eff4adb7a8d6328228018582
| 152
|
py
|
Python
|
simple_tools/contextmanagers/__init__.py
|
AFriemann/simple_tools
|
27d0f838c23309ebfc8afb59511220c6f8bb42fe
|
[
"BSD-3-Clause"
] | 1
|
2021-07-07T13:14:28.000Z
|
2021-07-07T13:14:28.000Z
|
simple_tools/contextmanagers/__init__.py
|
AFriemann/simple_tools
|
27d0f838c23309ebfc8afb59511220c6f8bb42fe
|
[
"BSD-3-Clause"
] | null | null | null |
simple_tools/contextmanagers/__init__.py
|
AFriemann/simple_tools
|
27d0f838c23309ebfc8afb59511220c6f8bb42fe
|
[
"BSD-3-Clause"
] | null | null | null |
from simple_tools.contextmanagers.time import *
from simple_tools.contextmanagers.files import *
from simple_tools.contextmanagers.environment import *
| 38
| 54
| 0.861842
| 18
| 152
| 7.111111
| 0.444444
| 0.234375
| 0.351563
| 0.703125
| 0.5625
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.078947
| 152
| 3
| 55
| 50.666667
| 0.914286
| 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
|
5e8a236f0e3cc932147616ca5214d011f7abf775
| 16,521
|
py
|
Python
|
moves/new_speedy.py
|
helemanc/PartyNAO
|
374128077d2c1e486b1041cce335664ab18eec66
|
[
"Apache-2.0"
] | 2
|
2022-01-27T18:35:27.000Z
|
2022-01-28T11:40:23.000Z
|
moves/new_speedy.py
|
helemanc/PartyNAO
|
374128077d2c1e486b1041cce335664ab18eec66
|
[
"Apache-2.0"
] | null | null | null |
moves/new_speedy.py
|
helemanc/PartyNAO
|
374128077d2c1e486b1041cce335664ab18eec66
|
[
"Apache-2.0"
] | null | null | null |
# Choregraphe bezier export in Python.
from naoqi import ALProxy
names = list()
times = list()
keys = list()
names.append("HeadPitch")
times.append([0.2, 3.2, 3.56, 3.84, 4.24, 4.6])
keys.append([[0.00538107, [3, -0.0666667, 0], [3, 1, 0]], [0.00538107, [3, -1, 0], [3, 0.12, 0]], [0.00538107, [3, -0.12, 0], [3, 0.0933333, 0]], [0.00538107, [3, -0.0933333, 0], [3, 0.133333, 0]], [-0.671952, [3, -0.133333, 0], [3, 0.12, 0]], [-0.179564, [3, -0.12, 0], [3, 0, 0]]])
names.append("HeadYaw")
times.append([0.2, 3.2, 3.56, 3.84, 4.24, 4.6])
keys.append([[-0.00691104, [3, -0.0666667, 0], [3, 1, 0]], [-0.00691104, [3, -1, 0], [3, 0.12, 0]], [-0.00691104, [3, -0.12, 0], [3, 0.0933333, 0]], [-0.00691104, [3, -0.0933333, 0], [3, 0.133333, 0]], [0.0802851, [3, -0.133333, 0], [3, 0.12, 0]], [0.00378046, [3, -0.12, 0], [3, 0, 0]]])
names.append("LAnklePitch")
times.append([0.2, 3.2, 3.56, 3.84, 4.24, 4.6])
keys.append([[-0.35, [3, -0.0666667, 0], [3, 1, 0]], [-0.000245917, [3, -1, -0.129619], [3, 0.12, 0.0155543]], [0.0855211, [3, -0.12, 0], [3, 0.0933333, 0]], [0.0855211, [3, -0.0933333, 0], [3, 0.133333, 0]], [0.00356753, [3, -0.133333, 0], [3, 0.12, 0]], [0.0859301, [3, -0.12, 0], [3, 0, 0]]])
names.append("LAnkleRoll")
times.append([0.2, 3.2, 3.56, 3.84, 4.24, 4.6])
keys.append([[-0.000615553, [3, -0.0666667, 0], [3, 1, 0]], [-0.000615553, [3, -1, 0], [3, 0.12, 0]], [-0.000615553, [3, -0.12, 0], [3, 0.0933333, 0]], [-0.000615553, [3, -0.0933333, 0], [3, 0.133333, 0]], [-0.000615553, [3, -0.133333, 0], [3, 0.12, 0]], [-0.129592, [3, -0.12, 0], [3, 0, 0]]])
names.append("LElbowRoll")
times.append([0.2, 0.48, 0.72, 0.92, 1.2, 1.48, 1.68, 1.96, 2.28, 2.52, 2.8, 3.2, 3.56, 3.84, 4.24, 4.6])
keys.append([[-1.00757, [3, -0.0666667, 0], [3, 0.0933333, 0]], [-1.00757, [3, -0.0933333, 0], [3, 0.08, 0]], [-1.00757, [3, -0.08, 0], [3, 0.0666667, 0]], [-1.00757, [3, -0.0666667, 0], [3, 0.0933333, 0]], [-1.00757, [3, -0.0933333, 0], [3, 0.0933333, 0]], [-1.00757, [3, -0.0933333, 0], [3, 0.0666667, 0]], [-1.00757, [3, -0.0666667, 0], [3, 0.0933333, 0]], [-1.00757, [3, -0.0933333, 0], [3, 0.106667, 0]], [-1.00757, [3, -0.106667, 0], [3, 0.08, 0]], [-1.00757, [3, -0.08, 0], [3, 0.0933333, 0]], [-1.00757, [3, -0.0933333, 0], [3, 0.133333, 0]], [-0.0431317, [3, -0.133333, 0], [3, 0.12, 0]], [-0.0431317, [3, -0.12, 0], [3, 0.0933333, 0]], [-0.0408853, [3, -0.0933333, 0], [3, 0.133333, 0]], [-0.0408853, [3, -0.133333, 0], [3, 0.12, 0]], [-0.40948, [3, -0.12, 0], [3, 0, 0]]])
names.append("LElbowYaw")
times.append([0.2, 0.48, 0.72, 0.92, 1.2, 1.48, 1.68, 1.96, 2.28, 2.52, 2.8, 3.2, 3.56, 3.84, 4.24, 4.6])
keys.append([[-1.38682, [3, -0.0666667, 0], [3, 0.0933333, 0]], [-1.38682, [3, -0.0933333, 0], [3, 0.08, 0]], [-1.38682, [3, -0.08, 0], [3, 0.0666667, 0]], [-1.38682, [3, -0.0666667, 0], [3, 0.0933333, 0]], [-1.38682, [3, -0.0933333, 0], [3, 0.0933333, 0]], [-1.38682, [3, -0.0933333, 0], [3, 0.0666667, 0]], [-1.38682, [3, -0.0666667, 0], [3, 0.0933333, 0]], [-1.38682, [3, -0.0933333, 0], [3, 0.106667, 0]], [-1.38682, [3, -0.106667, 0], [3, 0.08, 0]], [-1.38682, [3, -0.08, 0], [3, 0.0933333, 0]], [-1.38682, [3, -0.0933333, 0], [3, 0.133333, 0]], [-0.000992024, [3, -0.133333, -0.00299798], [3, 0.12, 0.00269818]], [0.00170616, [3, -0.12, 0], [3, 0.0933333, 0]], [-0.00913449, [3, -0.0933333, 0], [3, 0.133333, 0]], [-0.00913449, [3, -0.133333, 0], [3, 0.12, 0]], [-1.1934, [3, -0.12, 0], [3, 0, 0]]])
names.append("LHand")
times.append([0.2, 0.48, 0.72, 0.92, 1.2, 1.48, 1.68, 1.96, 2.28, 2.52, 2.8, 3.2, 3.56, 3.84, 4.24, 4.6])
keys.append([[0.25, [3, -0.0666667, 0], [3, 0.0933333, 0]], [0.25, [3, -0.0933333, 0], [3, 0.08, 0]], [0.25, [3, -0.08, 0], [3, 0.0666667, 0]], [0.25, [3, -0.0666667, 0], [3, 0.0933333, 0]], [0.25, [3, -0.0933333, 0], [3, 0.0933333, 0]], [0.25, [3, -0.0933333, 0], [3, 0.0666667, 0]], [0.25, [3, -0.0666667, 0], [3, 0.0933333, 0]], [0.25, [3, -0.0933333, 0], [3, 0.106667, 0]], [0.25, [3, -0.106667, 0], [3, 0.08, 0]], [0.25, [3, -0.08, 0], [3, 0.0933333, 0]], [0.25, [3, -0.0933333, 0], [3, 0.133333, 0]], [0.54, [3, -0.133333, 0], [3, 0.12, 0]], [0.54, [3, -0.12, 0], [3, 0.0933333, 0]], [0, [3, -0.0933333, 0], [3, 0.133333, 0]], [0, [3, -0.133333, 0], [3, 0.12, 0]], [0.299054, [3, -0.12, 0], [3, 0, 0]]])
names.append("LHipPitch")
times.append([0.2, 3.2, 3.56, 3.84, 4.24, 4.6])
keys.append([[-0.459859, [3, -0.0666667, 0], [3, 1, 0]], [-0.000323106, [3, -1, 0], [3, 0.12, 0]], [-0.294961, [3, -0.12, 0], [3, 0.0933333, 0]], [-0.294961, [3, -0.0933333, 0], [3, 0.133333, 0]], [-0.000820612, [3, -0.133333, -0.0734738], [3, 0.12, 0.0661264]], [0.12384, [3, -0.12, 0], [3, 0, 0]]])
names.append("LHipRoll")
times.append([0.2, 3.2, 3.56, 3.84, 4.24, 4.6])
keys.append([[0.00330668, [3, -0.0666667, 0], [3, 1, 0]], [0.00330668, [3, -1, 0], [3, 0.12, 0]], [0.404916, [3, -0.12, 0], [3, 0.0933333, 0]], [0.404916, [3, -0.0933333, 0], [3, 0.133333, 0]], [0.00681927, [3, -0.133333, 0], [3, 0.12, 0]], [0.0956123, [3, -0.12, 0], [3, 0, 0]]])
names.append("LHipYawPitch")
times.append([0.2, 3.2, 3.56, 3.84, 4.24, 4.6])
keys.append([[-0.00677235, [3, -0.0666667, 0], [3, 1, 0]], [-0.00677235, [3, -1, 0], [3, 0.12, 0]], [-0.132645, [3, -0.12, 0], [3, 0.0933333, 0]], [-0.132645, [3, -0.0933333, 0], [3, 0.133333, 0]], [0, [3, -0.133333, 0], [3, 0.12, 0]], [-0.166761, [3, -0.12, 0], [3, 0, 0]]])
names.append("LKneePitch")
times.append([0.2, 3.2, 3.56, 3.84, 4.24, 4.6])
keys.append([[0.7, [3, -0.0666667, 0], [3, 1, 0]], [0.00762625, [3, -1, 0], [3, 0.12, 0]], [0.129154, [3, -0.12, 0], [3, 0.0933333, 0]], [0.129154, [3, -0.0933333, 0], [3, 0.133333, 0]], [0.00984467, [3, -0.133333, 0.0381144], [3, 0.12, -0.0343029]], [-0.0880975, [3, -0.12, 0], [3, 0, 0]]])
names.append("LShoulderPitch")
times.append([0.2, 0.48, 0.72, 0.92, 1.2, 1.48, 1.68, 1.96, 2.28, 2.52, 2.8, 3.2, 3.56, 3.84, 4.24, 4.6])
keys.append([[1.39681, [3, -0.0666667, 0], [3, 0.0933333, 0]], [1.39681, [3, -0.0933333, 0], [3, 0.08, 0]], [1.39681, [3, -0.08, 0], [3, 0.0666667, 0]], [1.39681, [3, -0.0666667, 0], [3, 0.0933333, 0]], [1.39681, [3, -0.0933333, 0], [3, 0.0933333, 0]], [1.39681, [3, -0.0933333, 0], [3, 0.0666667, 0]], [1.39681, [3, -0.0666667, 0], [3, 0.0933333, 0]], [1.39681, [3, -0.0933333, 0], [3, 0.106667, 0]], [1.39681, [3, -0.106667, 0], [3, 0.08, 0]], [1.39681, [3, -0.08, 0], [3, 0.0933333, 0]], [1.39681, [3, -0.0933333, 0], [3, 0.133333, 0]], [-2.08567, [3, -0.133333, 0], [3, 0.12, 0]], [-2.08548, [3, -0.12, -0.000188019], [3, 0.0933333, 0.000146237]], [-0.00258784, [3, -0.0933333, 0], [3, 0.133333, 0]], [-0.00258784, [3, -0.133333, 0], [3, 0.12, 0]], [1.47184, [3, -0.12, 0], [3, 0, 0]]])
names.append("LShoulderRoll")
times.append([0.2, 0.48, 0.72, 0.92, 1.2, 1.48, 1.68, 1.96, 2.28, 2.52, 2.8, 3.2, 3.56, 3.84, 4.24, 4.6])
keys.append([[0.291799, [3, -0.0666667, 0], [3, 0.0933333, 0]], [0.291799, [3, -0.0933333, 0], [3, 0.08, 0]], [0.2918, [3, -0.08, 0], [3, 0.0666667, 0]], [0.2918, [3, -0.0666667, 0], [3, 0.0933333, 0]], [0.2918, [3, -0.0933333, 0], [3, 0.0933333, 0]], [0.2918, [3, -0.0933333, 0], [3, 0.0666667, 0]], [0.2918, [3, -0.0666667, 0], [3, 0.0933333, 0]], [0.2918, [3, -0.0933333, 0], [3, 0.106667, 0]], [0.291799, [3, -0.106667, 0], [3, 0.08, 0]], [0.291799, [3, -0.08, 0], [3, 0.0933333, 0]], [0.291799, [3, -0.0933333, 0], [3, 0.133333, 0]], [0.0141797, [3, -0.133333, 0], [3, 0.12, 0]], [0.0338253, [3, -0.12, 0], [3, 0.0933333, 0]], [0.012892, [3, -0.0933333, 0], [3, 0.133333, 0]], [0.012892, [3, -0.133333, 0], [3, 0.12, 0]], [0.181483, [3, -0.12, 0], [3, 0, 0]]])
names.append("LWristYaw")
times.append([0.2, 0.48, 0.72, 0.92, 1.2, 1.48, 1.68, 1.96, 2.28, 2.52, 2.8, 3.2, 3.56, 3.84, 4.24, 4.6])
keys.append([[0.00274344, [3, -0.0666667, 0], [3, 0.0933333, 0]], [0.00274344, [3, -0.0933333, 0], [3, 0.08, 0]], [0.00274345, [3, -0.08, 0], [3, 0.0666667, 0]], [0.00274345, [3, -0.0666667, 0], [3, 0.0933333, 0]], [0.00274345, [3, -0.0933333, 0], [3, 0.0933333, 0]], [0.00274345, [3, -0.0933333, 0], [3, 0.0666667, 0]], [0.00274345, [3, -0.0666667, 0], [3, 0.0933333, 0]], [0.00274345, [3, -0.0933333, 0], [3, 0.106667, 0]], [0.00274344, [3, -0.106667, 0], [3, 0.08, 0]], [0.00274344, [3, -0.08, 0], [3, 0.0933333, 0]], [0.00274344, [3, -0.0933333, 0], [3, 0.133333, 0]], [0.00274344, [3, -0.133333, 0], [3, 0.12, 0]], [0.00274344, [3, -0.12, 0], [3, 0.0933333, 0]], [0.00274344, [3, -0.0933333, 0], [3, 0.133333, 0]], [0.00274344, [3, -0.133333, 0], [3, 0.12, 0]], [0.0945625, [3, -0.12, 0], [3, 0, 0]]])
names.append("RAnklePitch")
times.append([0.2, 3.2, 3.56, 3.84, 4.24, 4.6])
keys.append([[-0.35, [3, -0.0666667, 0], [3, 1, 0]], [-0.000245917, [3, -1, 0], [3, 0.12, 0]], [-0.000245917, [3, -0.12, 0], [3, 0.0933333, 0]], [-0.00201699, [3, -0.0933333, 0], [3, 0.133333, 0]], [-0.00201699, [3, -0.133333, 0], [3, 0.12, 0]], [0.0856671, [3, -0.12, 0], [3, 0, 0]]])
names.append("RAnkleRoll")
times.append([0.2, 3.2, 3.56, 3.84, 4.24, 4.6])
keys.append([[0.00286675, [3, -0.0666667, 0], [3, 1, 0]], [-0.179769, [3, -1, 0], [3, 0.12, 0]], [-0.179769, [3, -0.12, 0], [3, 0.0933333, 0]], [-0.00431251, [3, -0.0933333, 0], [3, 0.133333, 0]], [-0.0314159, [3, -0.133333, 0], [3, 0.12, 0]], [0.126924, [3, -0.12, 0], [3, 0, 0]]])
names.append("RElbowRoll")
times.append([0.2, 0.48, 0.72, 0.92, 1.2, 1.48, 1.68, 1.96, 2.28, 2.52, 2.8, 3.2, 3.56, 3.84, 4.24, 4.6])
keys.append([[0.0349066, [3, -0.0666667, 0], [3, 0.0933333, 0]], [1.54462, [3, -0.0933333, 0], [3, 0.08, 0]], [1.54462, [3, -0.08, 0], [3, 0.0666667, 0]], [1.54462, [3, -0.0666667, 0], [3, 0.0933333, 0]], [1.54462, [3, -0.0933333, 0], [3, 0.0933333, 0]], [1.54462, [3, -0.0933333, 0], [3, 0.0666667, 0]], [1.54462, [3, -0.0666667, 0], [3, 0.0933333, 0]], [0.0349066, [3, -0.0933333, 0], [3, 0.106667, 0]], [1.02276, [3, -0.106667, 0], [3, 0.08, 0]], [0.0349066, [3, -0.08, 0], [3, 0.0933333, 0]], [0.0437942, [3, -0.0933333, 0], [3, 0.133333, 0]], [0.043292, [3, -0.133333, 0], [3, 0.12, 0]], [0.043292, [3, -0.12, 0], [3, 0.0933333, 0]], [0.0360991, [3, -0.0933333, 0], [3, 0.133333, 0]], [0.0360991, [3, -0.133333, 0], [3, 0.12, 0]], [0.410546, [3, -0.12, 0], [3, 0, 0]]])
names.append("RElbowYaw")
times.append([0.2, 0.48, 0.72, 0.92, 1.2, 1.48, 1.68, 1.96, 2.28, 2.52, 2.8, 3.2, 3.56, 3.84, 4.24, 4.6])
keys.append([[1.45386, [3, -0.0666667, 0], [3, 0.0933333, 0]], [1.41197, [3, -0.0933333, 0], [3, 0.08, 0]], [1.41197, [3, -0.08, 0], [3, 0.0666667, 0]], [1.41197, [3, -0.0666667, 0], [3, 0.0933333, 0]], [1.41197, [3, -0.0933333, 0], [3, 0.0933333, 0]], [1.41197, [3, -0.0933333, 0], [3, 0.0666667, 0]], [1.41197, [3, -0.0666667, 0], [3, 0.0933333, 0]], [2.08567, [3, -0.0933333, 0], [3, 0.106667, 0]], [0.315905, [3, -0.106667, 0.167552], [3, 0.08, -0.125664]], [0.190241, [3, -0.08, 0], [3, 0.0933333, 0]], [0.190258, [3, -0.0933333, 0], [3, 0.133333, 0]], [0.00764632, [3, -0.133333, 0], [3, 0.12, 0]], [0.00764632, [3, -0.12, 0], [3, 0.0933333, 0]], [0.000111945, [3, -0.0933333, 0], [3, 0.133333, 0]], [0.000111945, [3, -0.133333, 0], [3, 0.12, 0]], [1.19464, [3, -0.12, 0], [3, 0, 0]]])
names.append("RHand")
times.append([0.2, 0.48, 0.72, 0.92, 1.2, 1.48, 1.68, 1.96, 2.28, 2.52, 2.8, 3.2, 3.56, 3.84, 4.24, 4.6])
keys.append([[0, [3, -0.0666667, 0], [3, 0.0933333, 0]], [0, [3, -0.0933333, 0], [3, 0.08, 0]], [0, [3, -0.08, 0], [3, 0.0666667, 0]], [0, [3, -0.0666667, 0], [3, 0.0933333, 0]], [0, [3, -0.0933333, 0], [3, 0.0933333, 0]], [0, [3, -0.0933333, 0], [3, 0.0666667, 0]], [0, [3, -0.0666667, 0], [3, 0.0933333, 0]], [1, [3, -0.0933333, 0], [3, 0.106667, 0]], [0.69, [3, -0.106667, 0.137143], [3, 0.08, -0.102857]], [0.28, [3, -0.08, 0], [3, 0.0933333, 0]], [0.28, [3, -0.0933333, 0], [3, 0.133333, 0]], [0.0030505, [3, -0.133333, 0.00338945], [3, 0.12, -0.0030505]], [0, [3, -0.12, 0], [3, 0.0933333, 0]], [0, [3, -0.0933333, 0], [3, 0.133333, 0]], [0, [3, -0.133333, 0], [3, 0.12, 0]], [0.299054, [3, -0.12, 0], [3, 0, 0]]])
names.append("RHipPitch")
times.append([0.2, 3.2, 3.56, 3.84, 4.24, 4.6])
keys.append([[-0.45, [3, -0.0666667, 0], [3, 1, 0]], [-0.424115, [3, -1, 0], [3, 0.12, 0]], [-0.424115, [3, -0.12, 0], [3, 0.0933333, 0]], [0, [3, -0.0933333, 0], [3, 0.133333, 0]], [-1.53589, [3, -0.133333, 0], [3, 0.12, 0]], [0.125192, [3, -0.12, 0], [3, 0, 0]]])
names.append("RHipRoll")
times.append([0.2, 3.2, 3.56, 3.84, 4.24, 4.6])
keys.append([[-0.000709385, [3, -0.0666667, 0], [3, 1, 0]], [-0.790634, [3, -1, 0], [3, 0.12, 0]], [-0.79046, [3, -0.12, -0.000174504], [3, 0.0933333, 0.000135725]], [-0.00489601, [3, -0.0933333, 0], [3, 0.133333, 0]], [-0.211185, [3, -0.133333, 0], [3, 0.12, 0]], [-0.102119, [3, -0.12, 0], [3, 0, 0]]])
names.append("RHipYawPitch")
times.append([0.2, 3.2, 3.56, 3.84, 4.24, 4.6])
keys.append([[-0.00677235, [3, -0.0666667, 0], [3, 1, 0]], [0.0610865, [3, -1, 0], [3, 0.12, 0]], [-0.00677235, [3, -0.12, 0.0363247], [3, 0.0933333, -0.0282525]], [-0.132645, [3, -0.0933333, 0], [3, 0.133333, 0]], [0, [3, -0.133333, 0], [3, 0.12, 0]], [-0.166761, [3, -0.12, 0], [3, 0, 0]]])
names.append("RKneePitch")
times.append([0.2, 3.2, 3.56, 3.84, 4.24, 4.6])
keys.append([[0.7, [3, -0.0666667, 0], [3, 1, 0]], [0.00762625, [3, -1, 0], [3, 0.12, 0]], [0.00762625, [3, -0.12, 0], [3, 0.0933333, 0]], [0.00633415, [3, -0.0933333, 0], [3, 0.133333, 0]], [1.46433, [3, -0.133333, 0], [3, 0.12, 0]], [-0.0853161, [3, -0.12, 0], [3, 0, 0]]])
names.append("RShoulderPitch")
times.append([0.2, 0.48, 0.72, 0.92, 1.2, 1.48, 1.68, 1.96, 2.28, 2.52, 2.8, 3.2, 3.56, 3.84, 4.24, 4.6])
keys.append([[-0.13439, [3, -0.0666667, 0], [3, 0.0933333, 0]], [-0.1265, [3, -0.0933333, 0], [3, 0.08, 0]], [-0.1265, [3, -0.08, 0], [3, 0.0666667, 0]], [-0.1265, [3, -0.0666667, 0], [3, 0.0933333, 0]], [-0.1265, [3, -0.0933333, 0], [3, 0.0933333, 0]], [-0.1265, [3, -0.0933333, 0], [3, 0.0666667, 0]], [-0.1265, [3, -0.0666667, 0], [3, 0.0933333, 0]], [-0.345575, [3, -0.0933333, 0], [3, 0.106667, 0]], [0.13439, [3, -0.106667, 0], [3, 0.08, 0]], [-2.08567, [3, -0.08, 0], [3, 0.0933333, 0]], [2.08567, [3, -0.0933333, 0], [3, 0.133333, 0]], [0.00340527, [3, -0.133333, 0.731813], [3, 0.12, -0.658632]], [-2.08567, [3, -0.12, 0], [3, 0.0933333, 0]], [-2.08395, [3, -0.0933333, -0.00172307], [3, 0.133333, 0.00246152]], [-0.000166379, [3, -0.133333, -0.623518], [3, 0.12, 0.561166]], [1.47011, [3, -0.12, 0], [3, 0, 0]]])
names.append("RShoulderRoll")
times.append([0.2, 0.48, 0.72, 0.92, 1.2, 1.48, 1.68, 1.96, 2.28, 2.52, 2.8, 3.2, 3.56, 3.84, 4.24, 4.6])
keys.append([[-0.0575959, [3, -0.0666667, 0], [3, 0.0933333, 0]], [-0.0606406, [3, -0.0933333, 1.94189e-08], [3, 0.08, -1.66448e-08]], [-0.0606406, [3, -0.08, 0], [3, 0.0666667, 0]], [-0.0606406, [3, -0.0666667, 0], [3, 0.0933333, 0]], [-0.0606406, [3, -0.0933333, 0], [3, 0.0933333, 0]], [-0.0606406, [3, -0.0933333, 0], [3, 0.0666667, 0]], [-0.0606406, [3, -0.0666667, 0], [3, 0.0933333, 0]], [-1.32645, [3, -0.0933333, 0], [3, 0.106667, 0]], [0.314159, [3, -0.106667, 0], [3, 0.08, 0]], [-0.289725, [3, -0.08, 0.00193936], [3, 0.0933333, -0.00226259]], [-0.291987, [3, -0.0933333, 0], [3, 0.133333, 0]], [-0.0142155, [3, -0.133333, 0], [3, 0.12, 0]], [-0.0142155, [3, -0.12, 0], [3, 0.0933333, 0]], [-0.034855, [3, -0.0933333, 0], [3, 0.133333, 0]], [-0.00982102, [3, -0.133333, 0], [3, 0.12, 0]], [-0.179067, [3, -0.12, 0], [3, 0, 0]]])
names.append("RWristYaw")
times.append([0.2, 0.48, 0.72, 0.92, 1.2, 1.48, 1.68, 1.96, 2.28, 2.52, 2.8, 3.2, 3.56, 3.84, 4.24, 4.6])
keys.append([[0.129154, [3, -0.0666667, 0], [3, 0.0933333, 0]], [0.119863, [3, -0.0933333, 9.70944e-08], [3, 0.08, -8.32238e-08]], [0.119863, [3, -0.08, 0], [3, 0.0666667, 0]], [0.119863, [3, -0.0666667, 0], [3, 0.0933333, 0]], [0.119863, [3, -0.0933333, 0], [3, 0.0933333, 0]], [0.119863, [3, -0.0933333, 0], [3, 0.0666667, 0]], [0.119863, [3, -0.0666667, 0], [3, 0.0933333, 0]], [-1.82387, [3, -0.0933333, 0], [3, 0.106667, 0]], [0.975639, [3, -0.106667, 0], [3, 0.08, 0]], [0.424115, [3, -0.08, 0], [3, 0.0933333, 0]], [0.426678, [3, -0.0933333, 0], [3, 0.133333, 0]], [0.0036081, [3, -0.133333, 0], [3, 0.12, 0]], [0.0036081, [3, -0.12, 0], [3, 0.0933333, 0]], [0.00622056, [3, -0.0933333, 0], [3, 0.133333, 0]], [0.00622056, [3, -0.133333, 0], [3, 0.12, 0]], [0.097347, [3, -0.12, 0], [3, 0, 0]]])
def main(IP, port):
try:
# uncomment the following line and modify the IP if you use this script outside Choregraphe.
motion = ALProxy("ALMotion", IP, port)
#motion = ALProxy("ALMotion")
motion.angleInterpolationBezier(names, times, keys)
except BaseException, err:
print err
| 137.675
| 840
| 0.512439
| 3,513
| 16,521
| 2.409906
| 0.067464
| 0.123789
| 0.092488
| 0.200803
| 0.802858
| 0.755729
| 0.755611
| 0.754666
| 0.723718
| 0.487597
| 0
| 0.499436
| 0.141698
| 16,521
| 119
| 841
| 138.831933
| 0.097602
| 0.009382
| 0
| 0.295455
| 0
| 0
| 0.016136
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | null | 0
| 0.011364
| null | null | 0.011364
| 0
| 0
| 0
| null | 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 10
|
5eb19618251b246bb384b999e6677ace476bce89
| 150
|
py
|
Python
|
pyIDSA/cred.py
|
MCodez/RFID-Secure-Application
|
852c05a534fdb11bb4ae6fe3951e0053060fb169
|
[
"MIT"
] | 3
|
2019-02-23T05:15:54.000Z
|
2019-08-04T15:12:46.000Z
|
pyIDSA/cred.py
|
MCodez/RFID-Secure-Application
|
852c05a534fdb11bb4ae6fe3951e0053060fb169
|
[
"MIT"
] | null | null | null |
pyIDSA/cred.py
|
MCodez/RFID-Secure-Application
|
852c05a534fdb11bb4ae6fe3951e0053060fb169
|
[
"MIT"
] | 1
|
2021-03-12T05:11:02.000Z
|
2021-03-12T05:11:02.000Z
|
# -*- coding: utf-8 -*-
"""
Created on Thu Oct 5 23:32:35 2017
@author: LALIT ARORA
"""
def credent():
return "<Sender email password>"
| 16.666667
| 36
| 0.58
| 21
| 150
| 4.142857
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.106195
| 0.246667
| 150
| 9
| 37
| 16.666667
| 0.663717
| 0.533333
| 0
| 0
| 0
| 0
| 0.418182
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.5
| true
| 0.5
| 0
| 0.5
| 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
| 1
| 0
| 1
| 1
| 0
|
0
| 7
|
0da8f3b64633bc27099d331e0b446aa46e935124
| 186
|
py
|
Python
|
MUP_TG_BOT/src/set_up_proxy.py
|
DobroAlex/Simferopol_MUP_Telegram_Bot
|
a26d510178ed704690c497d599e0fc4d48b0deea
|
[
"MIT"
] | null | null | null |
MUP_TG_BOT/src/set_up_proxy.py
|
DobroAlex/Simferopol_MUP_Telegram_Bot
|
a26d510178ed704690c497d599e0fc4d48b0deea
|
[
"MIT"
] | null | null | null |
MUP_TG_BOT/src/set_up_proxy.py
|
DobroAlex/Simferopol_MUP_Telegram_Bot
|
a26d510178ed704690c497d599e0fc4d48b0deea
|
[
"MIT"
] | null | null | null |
from telebot import apihelper
import src.set_up_env as env
def set_up_proxy():
print(env.PROXY_PROTOCOL, env.PROXY_ADDR)
apihelper.proxy = {env.PROXY_PROTOCOL: env.PROXY_ADDR}
| 23.25
| 58
| 0.774194
| 30
| 186
| 4.533333
| 0.466667
| 0.235294
| 0.235294
| 0.279412
| 0.411765
| 0.411765
| 0
| 0
| 0
| 0
| 0
| 0
| 0.139785
| 186
| 7
| 59
| 26.571429
| 0.85
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.2
| true
| 0
| 0.4
| 0
| 0.6
| 0.2
| 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
|
0df437fa092418a980f695ec95da05594b964b12
| 16,059
|
py
|
Python
|
tests/renderers/httpdomain/test_render_restructuredtext_markup.py
|
olivier-heurtier/sphinxcontrib-openapi
|
4f78db9c8ca2cefc4e4c1eeb46552a8d9d432855
|
[
"BSD-2-Clause"
] | 64
|
2018-12-13T19:46:47.000Z
|
2022-03-25T05:25:56.000Z
|
tests/renderers/httpdomain/test_render_restructuredtext_markup.py
|
olivier-heurtier/sphinxcontrib-openapi
|
4f78db9c8ca2cefc4e4c1eeb46552a8d9d432855
|
[
"BSD-2-Clause"
] | 71
|
2018-12-07T10:18:56.000Z
|
2022-01-18T14:31:08.000Z
|
tests/renderers/httpdomain/test_render_restructuredtext_markup.py
|
olivier-heurtier/sphinxcontrib-openapi
|
4f78db9c8ca2cefc4e4c1eeb46552a8d9d432855
|
[
"BSD-2-Clause"
] | 40
|
2018-12-19T22:57:13.000Z
|
2022-03-27T14:09:14.000Z
|
"""OpenAPI spec renderer: render_restructuredtext_markup."""
import textwrap
from sphinxcontrib.openapi import renderers
def textify(generator):
return "\n".join(generator)
def test_oas2_minimal(testrenderer, oas_fragment):
"""Minimal OAS 2 can be rendered."""
markup = textify(
testrenderer.render_restructuredtext_markup(
oas_fragment(
"""
swagger: "2.0"
info:
title: An example spec
version: 1.0
paths:
/test:
get:
responses:
'200':
description: a response description
"""
)
)
)
assert markup == textwrap.dedent(
"""\
.. http:get:: /test
:statuscode 200:
a response description
"""
)
def test_oas2_complete(testrenderer, oas_fragment):
"""Feature rich OAS 2 can be rendered."""
markup = textify(
testrenderer.render_restructuredtext_markup(
oas_fragment(
"""
swagger: "2.0"
info:
title: An example spec
version: 1.0
paths:
/test:
get:
responses:
'200':
description: a response description
/{username}:
parameters:
- in: path
name: username
required: true
type: string
get:
tags:
- tag_a
- tag_b
summary: an operation summary
description: an operation description
externalDocs: https://docs.example.com/
operationId: myOperation
produces:
- application/json
parameters:
- in: header
name: token
type: string
- in: query
name: id
type: string
responses:
'200':
schema:
items:
format: int32
type: integer
type: array
description: a response description
'404':
description: a username not found
"""
)
)
)
assert markup == textwrap.dedent(
"""\
.. http:get:: /test
:statuscode 200:
a response description
.. http:get:: /{username}
**an operation summary**
an operation description
:reqheader token:
:reqheadertype token: string
:param username:
:paramtype username: string, required
:queryparam id:
:queryparamtype id: string
:statuscode 200:
a response description
:statuscode 404:
a username not found
"""
)
def test_oas2_schema_example(testrenderer, oas_fragment):
"""Schema's 'example' property can be used in example snippets."""
markup = textify(
testrenderer.render_restructuredtext_markup(
oas_fragment(
"""
swagger: "2.0"
info:
title: An example spec
version: 1.0
paths:
/test:
get:
description: an operation description
produces:
- application/json
responses:
'200':
schema:
example: |
[
19,
84
]
items:
format: int32
type: integer
type: array
description: a response description
"""
)
)
)
assert markup == textwrap.dedent(
"""\
.. http:get:: /test
an operation description
:statuscode 200:
a response description
.. sourcecode:: http
HTTP/1.1 200 OK
Content-Type: application/json
[
19,
84
]
"""
)
def test_oas2_complete_generate_examples_from_schema(fakestate, oas_fragment):
"""Schema can be used to generate example snippets."""
testrenderer = renderers.HttpdomainRenderer(
fakestate, {"generate-examples-from-schemas": True}
)
markup = textify(
testrenderer.render_restructuredtext_markup(
oas_fragment(
"""
swagger: "2.0"
info:
title: An example spec
version: 1.0
paths:
/test:
get:
description: an operation description
produces:
- application/json
responses:
'200':
schema:
items:
format: int32
type: integer
type: array
description: a response description
"""
)
)
)
assert markup == textwrap.dedent(
"""\
.. http:get:: /test
an operation description
:statuscode 200:
a response description
.. sourcecode:: http
HTTP/1.1 200 OK
Content-Type: application/json
[
1,
1
]
"""
)
def test_oas3_minimal(testrenderer, oas_fragment):
"""Minimal OAS 3 can be rendered."""
markup = textify(
testrenderer.render_restructuredtext_markup(
oas_fragment(
"""
openapi: 3.0.3
info:
title: An example spec
version: 1.0
paths:
/test:
get:
responses:
'200':
description: a response description
"""
)
)
)
assert markup == textwrap.dedent(
"""\
.. http:get:: /test
:statuscode 200:
a response description
"""
)
def test_oas3_complete(testrenderer, oas_fragment):
"""Feature rich OAS 3 can be rendered."""
markup = textify(
testrenderer.render_restructuredtext_markup(
oas_fragment(
"""
openapi: 3.0.3
info:
title: An example spec
version: 1.0
paths:
/test:
get:
responses:
'200':
description: a response description
/{username}:
parameters:
- in: path
name: username
schema:
type: string
required: true
get:
tags:
- tag_a
- tag_b
summary: an operation summary
description: an operation description
externalDocs: https://docs.example.com/
operationId: myOperation
parameters:
- in: header
name: token
schema:
type: string
- in: query
name: id
schema:
type: string
responses:
'200':
content:
application/json:
schema:
items:
format: int32
type: integer
type: array
description: a response description
'404':
description: a username not found
"""
)
)
)
assert markup == textwrap.dedent(
"""\
.. http:get:: /test
:statuscode 200:
a response description
.. http:get:: /{username}
**an operation summary**
an operation description
:reqheader token:
:reqheadertype token: string
:param username:
:paramtype username: string, required
:queryparam id:
:queryparamtype id: string
:statuscode 200:
a response description
:statuscode 404:
a username not found
"""
)
def test_oas3_schema_example(testrenderer, oas_fragment):
"""Schema's 'example' property can be used in example snippets."""
markup = textify(
testrenderer.render_restructuredtext_markup(
oas_fragment(
"""
openapi: 3.0.3
info:
title: An example spec
version: 1.0
paths:
/test:
get:
description: an operation description
responses:
'200':
content:
application/json:
schema:
example: |
[
19,
84
]
items:
format: int32
type: integer
type: array
description: a response description
"""
)
)
)
assert markup == textwrap.dedent(
"""\
.. http:get:: /test
an operation description
:statuscode 200:
a response description
.. sourcecode:: http
HTTP/1.1 200 OK
Content-Type: application/json
[
19,
84
]
"""
)
def test_oas3_generate_examples_from_schema(fakestate, oas_fragment):
"""Schema can be used to generate example snippets."""
testrenderer = renderers.HttpdomainRenderer(
fakestate, {"generate-examples-from-schemas": True}
)
markup = textify(
testrenderer.render_restructuredtext_markup(
oas_fragment(
"""
openapi: 3.0.3
info:
title: An example spec
version: 1.0
paths:
/test:
get:
description: an operation description
responses:
'200':
content:
application/json:
schema:
items:
format: int32
type: integer
type: array
description: a response description
"""
)
)
)
assert markup == textwrap.dedent(
"""\
.. http:get:: /test
an operation description
:statuscode 200:
a response description
.. sourcecode:: http
HTTP/1.1 200 OK
Content-Type: application/json
[
1,
1
]
"""
)
def test_oas3_request_body(testrenderer, oas_fragment):
"""Request body example is rendered."""
markup = textify(
testrenderer.render_restructuredtext_markup(
oas_fragment(
"""
openapi: 3.0.3
info:
title: An example spec
version: 1.0
paths:
/test:
get:
description: an operation description
requestBody:
content:
application/json:
examples:
test:
value:
foo: bar
baz: 42
responses:
'200':
description: a response description
"""
)
)
)
assert markup == textwrap.dedent(
"""\
.. http:get:: /test
an operation description
.. sourcecode:: http
GET /test HTTP/1.1
Content-Type: application/json
{
"foo": "bar",
"baz": 42
}
:statuscode 200:
a response description
"""
)
def test_oas3_response_example_2xx(testrenderer, oas_fragment):
"""Response examples are rendered for 2XX status codes."""
markup = textify(
testrenderer.render_restructuredtext_markup(
oas_fragment(
"""
openapi: 3.0.3
info:
title: An example spec
version: 1.0
paths:
/test:
get:
description: an operation description
responses:
'200':
content:
application/json:
example: |
[
19,
84
]
description: a response description
'404':
content:
application/json:
example: |
{
"message": "an error message"
}
description: resource not found
"""
)
)
)
assert markup == textwrap.dedent(
"""\
.. http:get:: /test
an operation description
:statuscode 200:
a response description
.. sourcecode:: http
HTTP/1.1 200 OK
Content-Type: application/json
[
19,
84
]
:statuscode 404:
resource not found
"""
)
| 27.783737
| 78
| 0.367458
| 1,017
| 16,059
| 5.725664
| 0.122911
| 0.037094
| 0.082432
| 0.063885
| 0.887343
| 0.872231
| 0.851623
| 0.837197
| 0.828954
| 0.82758
| 0
| 0.032366
| 0.570957
| 16,059
| 577
| 79
| 27.831889
| 0.812772
| 0.030824
| 0
| 0.44
| 0
| 0
| 0.020449
| 0.019789
| 0
| 0
| 0
| 0
| 0.1
| 1
| 0.11
| false
| 0
| 0.02
| 0.01
| 0.14
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 1
| 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
|
21a618227536ab6ce537bdb0982bc0e29257dc3e
| 49,748
|
py
|
Python
|
tapi/server/controllers/default_controller.py
|
rvilalta/OFC2019_SC472
|
c0bcbd05bb6c90eb9d8ab5abdc10b04d65a8a5d3
|
[
"Apache-2.0"
] | 2
|
2018-11-28T15:03:08.000Z
|
2019-02-04T15:19:58.000Z
|
tapi/server/controllers/default_controller.py
|
rvilalta/OFC2019_SC472
|
c0bcbd05bb6c90eb9d8ab5abdc10b04d65a8a5d3
|
[
"Apache-2.0"
] | null | null | null |
tapi/server/controllers/default_controller.py
|
rvilalta/OFC2019_SC472
|
c0bcbd05bb6c90eb9d8ab5abdc10b04d65a8a5d3
|
[
"Apache-2.0"
] | 2
|
2021-09-28T15:31:03.000Z
|
2021-11-16T17:53:59.000Z
|
import logging
import database.database as database
def create_context_by_id(context) -> str:
if database.context:
raise Exception ("TAPI Context cannot be created/deleted since it is the root presence-container for all client-server interaction")
logging.info("create_context_by_id %s", context)
database.context=context
return context
def create_context_connectivity_service_connectivity_service_by_id(uuid, connectivityService) -> str:
logging.info("create_context_connectivity_service_connectivity_service_by_id %s %s", uuid, connectivityService)
connection = {
"uuid" : uuid,
"connection-end-point": [
"/restconf/config/context/topology/topo-nwk/node/node-pe-1/owned-node-edge-point/NEP_PE_01_NNI3/cep-list/cep11",
"/restconf/config/context/topology/topo-nwk/node/node-pe-3/owned-node-edge-point/NEP_PE_03_NNI2/cep-list/cep11",
"/restconf/config/context/topology/topo-nwk/node/node-pe-2/owned-node-edge-point/NEP_PE_02_NNI3/cep-list/cep11"
]
}
database.context['connection'].append(connection)
connectivityService['connection'] = [ "/restconf/config/connection/" + uuid +"/" ]
database.context['connectivity-service'].append(connectivityService)
return connectivityService
def create_context_connectivity_service_end_point_capacity_capacity_by_id(uuid, localId, capacity) -> str:
return 'do some magic!'
def create_context_connectivity_service_end_point_end_point_by_id(uuid, localId, endPoint) -> str:
return 'do some magic!'
def create_context_connectivity_service_end_point_name_name_by_id(uuid, localId, valueName, name) -> str:
return 'do some magic!'
def create_context_connectivity_service_name_name_by_id(uuid, valueName, name) -> str:
return 'do some magic!'
def create_context_connectivity_service_resilience_type_resilience_type_by_id(uuid, resilienceType) -> str:
return 'do some magic!'
def create_context_connectivity_service_schedule_schedule_by_id(uuid, schedule) -> str:
return 'do some magic!'
def create_context_name_name_by_id(valueName, name) -> str:
return 'do some magic!'
def create_context_path_comp_service_end_point_end_point_by_id(uuid, localId, endPoint) -> str:
return 'do some magic!'
def create_context_path_comp_service_end_point_name_name_by_id(uuid, localId, valueName, name) -> str:
return 'do some magic!'
def create_context_path_comp_service_name_name_by_id(uuid, valueName, name) -> str:
return 'do some magic!'
def create_context_path_comp_service_objective_function_name_name_by_id(uuid, valueName, name) -> str:
return 'do some magic!'
def create_context_path_comp_service_objective_function_objective_function_by_id(uuid, objectiveFunction) -> str:
return 'do some magic!'
def create_context_path_comp_service_optimization_constraint_name_name_by_id(uuid, valueName, name) -> str:
return 'do some magic!'
def create_context_path_comp_service_optimization_constraint_optimization_constraint_by_id(uuid, optimizationConstraint) -> str:
return 'do some magic!'
def create_context_path_comp_service_path_comp_service_by_id(uuid, pathCompService) -> str:
return 'do some magic!'
def create_context_path_comp_service_routing_constraint_name_name_by_id(uuid, valueName, name) -> str:
return 'do some magic!'
def create_context_path_comp_service_routing_constraint_routing_constraint_by_id(uuid, routingConstraint) -> str:
return 'do some magic!'
def create_context_service_interface_point_name_name_by_id(uuid, valueName, name) -> str:
return 'do some magic!'
def create_context_service_interface_point_service_interface_point_by_id(uuid, serviceInterfacePoint) -> str:
return 'do some magic!'
def create_create_connectivity_service_by_id(createConnectivityService) -> str:
return 'do some magic!'
def create_delete_connectivity_service_by_id(deleteConnectivityService) -> str:
return 'do some magic!'
def create_get_connection_details_by_id(getConnectionDetails) -> str:
return 'do some magic!'
def create_get_connectivity_service_details_by_id(getConnectivityServiceDetails) -> str:
return 'do some magic!'
def create_get_connectivity_service_list_by_id() -> str:
return 'do some magic!'
def create_update_connectivity_service_by_id(updateConnectivityService) -> str:
return 'do some magic!'
def delete_context_by_id() -> str:
if database.context:
raise Exception ("TAPI Context cannot be created/deleted since it is the root presence-container for all client-server interaction")
return 'do some magic!'
def delete_context_connectivity_service_connectivity_service_by_id(uuid) -> str:
for connection in database.context['connection']:
if connection['uuid'] == uuid :
database.context['connection'].remove(connection)
for cs in database.context['connectivity-service']:
if cs['uuid'] == uuid :
database.context['connectivity-service'].remove(cs)
return "done"
return error, 404
def delete_context_connectivity_service_end_point_capacity_capacity_by_id(uuid, localId) -> str:
return 'do some magic!'
def delete_context_connectivity_service_end_point_end_point_by_id(uuid, localId) -> str:
return 'do some magic!'
def delete_context_connectivity_service_end_point_name_name_by_id(uuid, localId, valueName) -> str:
return 'do some magic!'
def delete_context_connectivity_service_name_name_by_id(uuid, valueName) -> str:
return 'do some magic!'
def delete_context_connectivity_service_resilience_type_resilience_type_by_id(uuid) -> str:
return 'do some magic!'
def delete_context_connectivity_service_schedule_schedule_by_id(uuid) -> str:
return 'do some magic!'
def delete_context_name_name_by_id(valueName) -> str:
return 'do some magic!'
def delete_context_path_comp_service_end_point_end_point_by_id(uuid, localId) -> str:
return 'do some magic!'
def delete_context_path_comp_service_end_point_name_name_by_id(uuid, localId, valueName) -> str:
return 'do some magic!'
def delete_context_path_comp_service_name_name_by_id(uuid, valueName) -> str:
return 'do some magic!'
def delete_context_path_comp_service_objective_function_name_name_by_id(uuid, valueName) -> str:
return 'do some magic!'
def delete_context_path_comp_service_objective_function_objective_function_by_id(uuid) -> str:
return 'do some magic!'
def delete_context_path_comp_service_optimization_constraint_name_name_by_id(uuid, valueName) -> str:
return 'do some magic!'
def delete_context_path_comp_service_optimization_constraint_optimization_constraint_by_id(uuid) -> str:
return 'do some magic!'
def delete_context_path_comp_service_path_comp_service_by_id(uuid) -> str:
return 'do some magic!'
def delete_context_path_comp_service_routing_constraint_name_name_by_id(uuid, valueName) -> str:
return 'do some magic!'
def delete_context_path_comp_service_routing_constraint_routing_constraint_by_id(uuid) -> str:
return 'do some magic!'
def delete_context_service_interface_point_name_name_by_id(uuid, valueName) -> str:
return 'do some magic!'
def delete_context_service_interface_point_service_interface_point_by_id(uuid) -> str:
return 'do some magic!'
def retrieve_context() -> str:
logging.info("retrieve_context")
return database.context
def retrieve_context_connection_connection() -> str:
logging.info("retrieve_context_connection_connection")
array_cs=[]
for connection in database.context['connection']:
uri="/restconf/config/context/connection/"+connection["uuid"]+"/"
array_cs.append(uri)
#json = { 'itemlist' : array_cs }
return array_cs
def retrieve_context_connection_connection_by_id(uuid) -> str:
logging.info("retrieve_context_connection_connection_by_id %s", uuid)
for item in database.context['connection']:
if item['uuid'] == uuid:
return item
def retrieve_context_connection_name_name(uuid) -> str:
return 'do some magic!'
def retrieve_context_connection_name_name_by_id(uuid, valueName) -> str:
return 'do some magic!'
def retrieve_context_connection_route_name_name(uuid, localId) -> str:
return 'do some magic!'
def retrieve_context_connection_route_name_name_by_id(uuid, localId, valueName) -> str:
return 'do some magic!'
def retrieve_context_connection_route_route(uuid) -> str:
return 'do some magic!'
def retrieve_context_connection_route_route_by_id(uuid, localId) -> str:
return 'do some magic!'
def retrieve_context_connection_switch_control_name_name(uuid, localId) -> str:
return 'do some magic!'
def retrieve_context_connection_switch_control_name_name_by_id(uuid, localId, valueName) -> str:
return 'do some magic!'
def retrieve_context_connection_switch_control_resilience_type_resilience_type(uuid, localId) -> str:
return 'do some magic!'
def retrieve_context_connection_switch_control_switch_control(uuid) -> str:
return 'do some magic!'
def retrieve_context_connection_switch_control_switch_control_by_id(uuid, localId) -> str:
return 'do some magic!'
def retrieve_context_connection_switch_control_switch_name_name(uuid, localId, localId2) -> str:
return 'do some magic!'
def retrieve_context_connection_switch_control_switch_name_name_by_id(uuid, localId, localId2, valueName) -> str:
return 'do some magic!'
def retrieve_context_connection_switch_control_switch_switch(uuid, localId) -> str:
return 'do some magic!'
def retrieve_context_connection_switch_control_switch_switch_by_id(uuid, localId, localId2) -> str:
return 'do some magic!'
def retrieve_context_connectivity_service_connectivity_service() -> str:
logging.info("retrieve_context_connectivity_service_connectivity_service")
array_cs=[]
for cs in database.context['connectivity-service']:
uri="/restconf/config/context/connectivity-service/"+cs["uuid"]+"/"
array_cs.append(uri)
#json = { 'itemlist' : array_cs }
return array_cs
def retrieve_context_connectivity_service_connectivity_service_by_id(uuid) -> str:
logging.info("retrieve_context_connectivity_service_connectivity_service_by_id %s", uuid)
for item in database.context['connectivity-service']:
if item['uuid'] == uuid:
return item
def retrieve_context_connectivity_service_cost_characteristic_cost_characteristic(uuid) -> str:
return 'do some magic!'
def retrieve_context_connectivity_service_cost_characteristic_cost_characteristic_by_id(uuid, costName) -> str:
return 'do some magic!'
def retrieve_context_connectivity_service_end_point_capacity_available_capacity_available_capacity(uuid, localId) -> str:
return 'do some magic!'
def retrieve_context_connectivity_service_end_point_capacity_available_capacity_bandwidth_profile_bandwidth_profile(uuid, localId) -> str:
return 'do some magic!'
def retrieve_context_connectivity_service_end_point_capacity_available_capacity_bandwidth_profile_committed_burst_size_committed_burst_size(uuid, localId) -> str:
return 'do some magic!'
def retrieve_context_connectivity_service_end_point_capacity_available_capacity_bandwidth_profile_committed_information_rate_committed_information_rate(uuid, localId) -> str:
return 'do some magic!'
def retrieve_context_connectivity_service_end_point_capacity_available_capacity_bandwidth_profile_peak_burst_size_peak_burst_size(uuid, localId) -> str:
return 'do some magic!'
def retrieve_context_connectivity_service_end_point_capacity_available_capacity_bandwidth_profile_peak_information_rate_peak_information_rate(uuid, localId) -> str:
return 'do some magic!'
def retrieve_context_connectivity_service_end_point_capacity_available_capacity_total_size_total_size(uuid, localId) -> str:
return 'do some magic!'
def retrieve_context_connectivity_service_end_point_capacity_capacity(uuid, localId) -> str:
return 'do some magic!'
def retrieve_context_connectivity_service_end_point_capacity_total_potential_capacity_bandwidth_profile_bandwidth_profile(uuid, localId) -> str:
return 'do some magic!'
def retrieve_context_connectivity_service_end_point_capacity_total_potential_capacity_bandwidth_profile_committed_burst_size_committed_burst_size(uuid, localId) -> str:
return 'do some magic!'
def retrieve_context_connectivity_service_end_point_capacity_total_potential_capacity_bandwidth_profile_committed_information_rate_committed_information_rate(uuid, localId) -> str:
return 'do some magic!'
def retrieve_context_connectivity_service_end_point_capacity_total_potential_capacity_bandwidth_profile_peak_burst_size_peak_burst_size(uuid, localId) -> str:
return 'do some magic!'
def retrieve_context_connectivity_service_end_point_capacity_total_potential_capacity_bandwidth_profile_peak_information_rate_peak_information_rate(uuid, localId) -> str:
return 'do some magic!'
def retrieve_context_connectivity_service_end_point_capacity_total_potential_capacity_total_potential_capacity(uuid, localId) -> str:
return 'do some magic!'
def retrieve_context_connectivity_service_end_point_capacity_total_potential_capacity_total_size_total_size(uuid, localId) -> str:
return 'do some magic!'
def retrieve_context_connectivity_service_end_point_end_point(uuid) -> str:
return 'do some magic!'
def retrieve_context_connectivity_service_end_point_end_point_by_id(uuid, localId) -> str:
return 'do some magic!'
def retrieve_context_connectivity_service_end_point_name_name(uuid, localId) -> str:
return 'do some magic!'
def retrieve_context_connectivity_service_end_point_name_name_by_id(uuid, localId, valueName) -> str:
return 'do some magic!'
def retrieve_context_connectivity_service_latency_characteristic_latency_characteristic(uuid) -> str:
return 'do some magic!'
def retrieve_context_connectivity_service_latency_characteristic_latency_characteristic_by_id(uuid, trafficPropertyName) -> str:
return 'do some magic!'
def retrieve_context_connectivity_service_name_name(uuid) -> str:
return 'do some magic!'
def retrieve_context_connectivity_service_name_name_by_id(uuid, valueName) -> str:
return 'do some magic!'
def retrieve_context_connectivity_service_requested_capacity_bandwidth_profile_bandwidth_profile(uuid) -> str:
return 'do some magic!'
def retrieve_context_connectivity_service_requested_capacity_bandwidth_profile_committed_burst_size_committed_burst_size(uuid) -> str:
return 'do some magic!'
def retrieve_context_connectivity_service_requested_capacity_bandwidth_profile_committed_information_rate_committed_information_rate(uuid) -> str:
return 'do some magic!'
def retrieve_context_connectivity_service_requested_capacity_bandwidth_profile_peak_burst_size_peak_burst_size(uuid) -> str:
return 'do some magic!'
def retrieve_context_connectivity_service_requested_capacity_bandwidth_profile_peak_information_rate_peak_information_rate(uuid) -> str:
return 'do some magic!'
def retrieve_context_connectivity_service_requested_capacity_requested_capacity(uuid) -> str:
return 'do some magic!'
def retrieve_context_connectivity_service_requested_capacity_total_size_total_size(uuid) -> str:
return 'do some magic!'
def retrieve_context_connectivity_service_resilience_type_resilience_type(uuid) -> str:
return 'do some magic!'
def retrieve_context_connectivity_service_schedule_schedule(uuid) -> str:
return 'do some magic!'
def retrieve_context_name_name() -> str:
return 'do some magic!'
def retrieve_context_name_name_by_id(valueName) -> str:
return 'do some magic!'
def retrieve_context_nw_topology_service_name_name() -> str:
return 'do some magic!'
def retrieve_context_nw_topology_service_name_name_by_id(valueName) -> str:
return 'do some magic!'
def retrieve_context_nw_topology_service_nw_topology_service() -> str:
return 'do some magic!'
def retrieve_context_path_comp_service_end_point_end_point(uuid) -> str:
return 'do some magic!'
def retrieve_context_path_comp_service_end_point_end_point_by_id(uuid, localId) -> str:
return 'do some magic!'
def retrieve_context_path_comp_service_end_point_name_name(uuid, localId) -> str:
return 'do some magic!'
def retrieve_context_path_comp_service_end_point_name_name_by_id(uuid, localId, valueName) -> str:
return 'do some magic!'
def retrieve_context_path_comp_service_name_name(uuid) -> str:
return 'do some magic!'
def retrieve_context_path_comp_service_name_name_by_id(uuid, valueName) -> str:
return 'do some magic!'
def retrieve_context_path_comp_service_objective_function_name_name(uuid) -> str:
return 'do some magic!'
def retrieve_context_path_comp_service_objective_function_name_name_by_id(uuid, valueName) -> str:
return 'do some magic!'
def retrieve_context_path_comp_service_objective_function_objective_function(uuid) -> str:
return 'do some magic!'
def retrieve_context_path_comp_service_optimization_constraint_name_name(uuid) -> str:
return 'do some magic!'
def retrieve_context_path_comp_service_optimization_constraint_name_name_by_id(uuid, valueName) -> str:
return 'do some magic!'
def retrieve_context_path_comp_service_optimization_constraint_optimization_constraint(uuid) -> str:
return 'do some magic!'
def retrieve_context_path_comp_service_path_comp_service() -> str:
return 'do some magic!'
def retrieve_context_path_comp_service_path_comp_service_by_id(uuid) -> str:
return 'do some magic!'
def retrieve_context_path_comp_service_routing_constraint_cost_characteristic_cost_characteristic(uuid) -> str:
return 'do some magic!'
def retrieve_context_path_comp_service_routing_constraint_cost_characteristic_cost_characteristic_by_id(uuid, costName) -> str:
return 'do some magic!'
def retrieve_context_path_comp_service_routing_constraint_latency_characteristic_latency_characteristic(uuid) -> str:
return 'do some magic!'
def retrieve_context_path_comp_service_routing_constraint_latency_characteristic_latency_characteristic_by_id(uuid, trafficPropertyName) -> str:
return 'do some magic!'
def retrieve_context_path_comp_service_routing_constraint_name_name(uuid) -> str:
return 'do some magic!'
def retrieve_context_path_comp_service_routing_constraint_name_name_by_id(uuid, valueName) -> str:
return 'do some magic!'
def retrieve_context_path_comp_service_routing_constraint_requested_capacity_bandwidth_profile_bandwidth_profile(uuid) -> str:
return 'do some magic!'
def retrieve_context_path_comp_service_routing_constraint_requested_capacity_bandwidth_profile_committed_burst_size_committed_burst_size(uuid) -> str:
return 'do some magic!'
def retrieve_context_path_comp_service_routing_constraint_requested_capacity_bandwidth_profile_committed_information_rate_committed_information_rate(uuid) -> str:
return 'do some magic!'
def retrieve_context_path_comp_service_routing_constraint_requested_capacity_bandwidth_profile_peak_burst_size_peak_burst_size(uuid) -> str:
return 'do some magic!'
def retrieve_context_path_comp_service_routing_constraint_requested_capacity_bandwidth_profile_peak_information_rate_peak_information_rate(uuid) -> str:
return 'do some magic!'
def retrieve_context_path_comp_service_routing_constraint_requested_capacity_requested_capacity(uuid) -> str:
return 'do some magic!'
def retrieve_context_path_comp_service_routing_constraint_requested_capacity_total_size_total_size(uuid) -> str:
return 'do some magic!'
def retrieve_context_path_comp_service_routing_constraint_routing_constraint(uuid) -> str:
return 'do some magic!'
def retrieve_context_path_name_name(uuid) -> str:
return 'do some magic!'
def retrieve_context_path_name_name_by_id(uuid, valueName) -> str:
return 'do some magic!'
def retrieve_context_path_path() -> str:
return 'do some magic!'
def retrieve_context_path_path_by_id(uuid) -> str:
return 'do some magic!'
def retrieve_context_path_routing_constraint_cost_characteristic_cost_characteristic(uuid) -> str:
return 'do some magic!'
def retrieve_context_path_routing_constraint_cost_characteristic_cost_characteristic_by_id(uuid, costName) -> str:
return 'do some magic!'
def retrieve_context_path_routing_constraint_latency_characteristic_latency_characteristic(uuid) -> str:
return 'do some magic!'
def retrieve_context_path_routing_constraint_latency_characteristic_latency_characteristic_by_id(uuid, trafficPropertyName) -> str:
return 'do some magic!'
def retrieve_context_path_routing_constraint_name_name(uuid) -> str:
return 'do some magic!'
def retrieve_context_path_routing_constraint_name_name_by_id(uuid, valueName) -> str:
return 'do some magic!'
def retrieve_context_path_routing_constraint_requested_capacity_bandwidth_profile_bandwidth_profile(uuid) -> str:
return 'do some magic!'
def retrieve_context_path_routing_constraint_requested_capacity_bandwidth_profile_committed_burst_size_committed_burst_size(uuid) -> str:
return 'do some magic!'
def retrieve_context_path_routing_constraint_requested_capacity_bandwidth_profile_committed_information_rate_committed_information_rate(uuid) -> str:
return 'do some magic!'
def retrieve_context_path_routing_constraint_requested_capacity_bandwidth_profile_peak_burst_size_peak_burst_size(uuid) -> str:
return 'do some magic!'
def retrieve_context_path_routing_constraint_requested_capacity_bandwidth_profile_peak_information_rate_peak_information_rate(uuid) -> str:
return 'do some magic!'
def retrieve_context_path_routing_constraint_requested_capacity_requested_capacity(uuid) -> str:
return 'do some magic!'
def retrieve_context_path_routing_constraint_requested_capacity_total_size_total_size(uuid) -> str:
return 'do some magic!'
def retrieve_context_path_routing_constraint_routing_constraint(uuid) -> str:
return 'do some magic!'
def retrieve_context_service_interface_point_available_capacity_available_capacity(uuid) -> str:
return 'do some magic!'
def retrieve_context_service_interface_point_available_capacity_bandwidth_profile_bandwidth_profile(uuid) -> str:
return 'do some magic!'
def retrieve_context_service_interface_point_available_capacity_bandwidth_profile_committed_burst_size_committed_burst_size(uuid) -> str:
return 'do some magic!'
def retrieve_context_service_interface_point_available_capacity_bandwidth_profile_committed_information_rate_committed_information_rate(uuid) -> str:
return 'do some magic!'
def retrieve_context_service_interface_point_available_capacity_bandwidth_profile_peak_burst_size_peak_burst_size(uuid) -> str:
return 'do some magic!'
def retrieve_context_service_interface_point_available_capacity_bandwidth_profile_peak_information_rate_peak_information_rate(uuid) -> str:
return 'do some magic!'
def retrieve_context_service_interface_point_available_capacity_total_size_total_size(uuid) -> str:
return 'do some magic!'
def retrieve_context_service_interface_point_name_name(uuid) -> str:
return 'do some magic!'
def retrieve_context_service_interface_point_name_name_by_id(uuid, valueName) -> str:
return 'do some magic!'
def retrieve_context_service_interface_point_service_interface_point() -> str:
logging.info("retrieve_context_service_interface_point_service_interface_point")
array_cs=[]
for sip in database.context['service-interface-point']:
uri="/restconf/config/context/service-interface-point/"+sip["uuid"]+"/"
array_cs.append(uri)
#json = { 'itemlist' : array_cs }
return array_cs
def retrieve_context_service_interface_point_service_interface_point_by_id(uuid) -> str:
logging.info("retrieve_context_service_interface_point_service_interface_point_by_id %s", uuid)
for item in database.context['service-interface-point']:
if item['uuid'] == uuid:
return item
def retrieve_context_service_interface_point_total_potential_capacity_bandwidth_profile_bandwidth_profile(uuid) -> str:
return 'do some magic!'
def retrieve_context_service_interface_point_total_potential_capacity_bandwidth_profile_committed_burst_size_committed_burst_size(uuid) -> str:
return 'do some magic!'
def retrieve_context_service_interface_point_total_potential_capacity_bandwidth_profile_committed_information_rate_committed_information_rate(uuid) -> str:
return 'do some magic!'
def retrieve_context_service_interface_point_total_potential_capacity_bandwidth_profile_peak_burst_size_peak_burst_size(uuid) -> str:
return 'do some magic!'
def retrieve_context_service_interface_point_total_potential_capacity_bandwidth_profile_peak_information_rate_peak_information_rate(uuid) -> str:
return 'do some magic!'
def retrieve_context_service_interface_point_total_potential_capacity_total_potential_capacity(uuid) -> str:
return 'do some magic!'
def retrieve_context_service_interface_point_total_potential_capacity_total_size_total_size(uuid) -> str:
return 'do some magic!'
def retrieve_context_topology_link_available_capacity_available_capacity(uuid, linkUuid) -> str:
return 'do some magic!'
def retrieve_context_topology_link_available_capacity_bandwidth_profile_bandwidth_profile(uuid, linkUuid) -> str:
return 'do some magic!'
def retrieve_context_topology_link_available_capacity_bandwidth_profile_committed_burst_size_committed_burst_size(uuid, linkUuid) -> str:
return 'do some magic!'
def retrieve_context_topology_link_available_capacity_bandwidth_profile_committed_information_rate_committed_information_rate(uuid, linkUuid) -> str:
return 'do some magic!'
def retrieve_context_topology_link_available_capacity_bandwidth_profile_peak_burst_size_peak_burst_size(uuid, linkUuid) -> str:
return 'do some magic!'
def retrieve_context_topology_link_available_capacity_bandwidth_profile_peak_information_rate_peak_information_rate(uuid, linkUuid) -> str:
return 'do some magic!'
def retrieve_context_topology_link_available_capacity_total_size_total_size(uuid, linkUuid) -> str:
return 'do some magic!'
def retrieve_context_topology_link_cost_characteristic_cost_characteristic(uuid, linkUuid) -> str:
return 'do some magic!'
def retrieve_context_topology_link_cost_characteristic_cost_characteristic_by_id(uuid, linkUuid, costName) -> str:
return 'do some magic!'
def retrieve_context_topology_link_latency_characteristic_latency_characteristic(uuid, linkUuid) -> str:
return 'do some magic!'
def retrieve_context_topology_link_latency_characteristic_latency_characteristic_by_id(uuid, linkUuid, trafficPropertyName) -> str:
return 'do some magic!'
def retrieve_context_topology_link_link(uuid) -> str:
logging.info("retrieve_context_topology_link_link %s", uuid)
for item in database.context['topology']:
if item['uuid'] == uuid:
array_cs=[]
for link in item['link']:
uri="/restconf/config/context/topology/"+uuid+"/link/"+link["uuid"]+"/"
array_cs.append(uri)
#json = { 'itemlist' : array_cs }
return array_cs
def retrieve_context_topology_link_link_by_id(uuid, link_uuid) -> str:
logging.info("retrieve_context_topology_link_link_by_id %s $s", uuid, link_uuid)
for item in database.context['topology']:
if item['uuid'] == uuid:
for link in item['link']:
if link['uuid'] == link_uuid:
return link
def retrieve_context_topology_link_name_name(uuid, linkUuid) -> str:
return 'do some magic!'
def retrieve_context_topology_link_name_name_by_id(uuid, linkUuid, valueName) -> str:
return 'do some magic!'
def retrieve_context_topology_link_resilience_type_resilience_type(uuid, linkUuid) -> str:
return 'do some magic!'
def retrieve_context_topology_link_risk_characteristic_risk_characteristic(uuid, linkUuid) -> str:
return 'do some magic!'
def retrieve_context_topology_link_risk_characteristic_risk_characteristic_by_id(uuid, linkUuid, riskCharacteristicName) -> str:
return 'do some magic!'
def retrieve_context_topology_link_total_potential_capacity_bandwidth_profile_bandwidth_profile(uuid, linkUuid) -> str:
return 'do some magic!'
def retrieve_context_topology_link_total_potential_capacity_bandwidth_profile_committed_burst_size_committed_burst_size(uuid, linkUuid) -> str:
return 'do some magic!'
def retrieve_context_topology_link_total_potential_capacity_bandwidth_profile_committed_information_rate_committed_information_rate(uuid, linkUuid) -> str:
return 'do some magic!'
def retrieve_context_topology_link_total_potential_capacity_bandwidth_profile_peak_burst_size_peak_burst_size(uuid, linkUuid) -> str:
return 'do some magic!'
def retrieve_context_topology_link_total_potential_capacity_bandwidth_profile_peak_information_rate_peak_information_rate(uuid, linkUuid) -> str:
return 'do some magic!'
def retrieve_context_topology_link_total_potential_capacity_total_potential_capacity(uuid, linkUuid) -> str:
return 'do some magic!'
def retrieve_context_topology_link_total_potential_capacity_total_size_total_size(uuid, linkUuid) -> str:
return 'do some magic!'
def retrieve_context_topology_link_validation_mechanism_validation_mechanism(uuid, linkUuid) -> str:
return 'do some magic!'
def retrieve_context_topology_link_validation_mechanism_validation_mechanism_by_id(uuid, linkUuid, validationMechanism) -> str:
return 'do some magic!'
def retrieve_context_topology_name_name(uuid) -> str:
return 'do some magic!'
def retrieve_context_topology_name_name_by_id(uuid, valueName) -> str:
return 'do some magic!'
def retrieve_context_topology_node_available_capacity_available_capacity(uuid, nodeUuid) -> str:
return 'do some magic!'
def retrieve_context_topology_node_available_capacity_bandwidth_profile_bandwidth_profile(uuid, nodeUuid) -> str:
return 'do some magic!'
def retrieve_context_topology_node_available_capacity_bandwidth_profile_committed_burst_size_committed_burst_size(uuid, nodeUuid) -> str:
return 'do some magic!'
def retrieve_context_topology_node_available_capacity_bandwidth_profile_committed_information_rate_committed_information_rate(uuid, nodeUuid) -> str:
return 'do some magic!'
def retrieve_context_topology_node_available_capacity_bandwidth_profile_peak_burst_size_peak_burst_size(uuid, nodeUuid) -> str:
return 'do some magic!'
def retrieve_context_topology_node_available_capacity_bandwidth_profile_peak_information_rate_peak_information_rate(uuid, nodeUuid) -> str:
return 'do some magic!'
def retrieve_context_topology_node_available_capacity_total_size_total_size(uuid, nodeUuid) -> str:
return 'do some magic!'
def retrieve_context_topology_node_cost_characteristic_cost_characteristic(uuid, nodeUuid) -> str:
return 'do some magic!'
def retrieve_context_topology_node_cost_characteristic_cost_characteristic_by_id(uuid, nodeUuid, costName) -> str:
return 'do some magic!'
def retrieve_context_topology_node_latency_characteristic_latency_characteristic(uuid, nodeUuid) -> str:
return 'do some magic!'
def retrieve_context_topology_node_latency_characteristic_latency_characteristic_by_id(uuid, nodeUuid, trafficPropertyName) -> str:
return 'do some magic!'
def retrieve_context_topology_node_name_name(uuid, nodeUuid) -> str:
return 'do some magic!'
def retrieve_context_topology_node_name_name_by_id(uuid, nodeUuid, valueName) -> str:
return 'do some magic!'
def retrieve_context_topology_node_node(uuid) -> str:
logging.info("retrieve_context_topology_node_node %s", uuid)
for item in database.context['topology']:
if item['uuid'] == uuid:
array_cs=[]
for node in item['node']:
uri="/restconf/config/context/topology/"+uuid+"/node/"+node["uuid"]+"/"
array_cs.append(uri)
#json = { 'itemlist' : array_cs }
return array_cs
def retrieve_context_topology_node_node_by_id(uuid, node_uuid) -> str:
logging.info("retrieve_context_topology_node_node_by_id %s %s", uuid, node_uuid)
for item in database.context['topology']:
if item['uuid'] == uuid:
for node in item['node']:
if node['uuid'] == node_uuid:
return node
def retrieve_context_topology_node_node_rule_group_available_capacity_available_capacity(uuid, nodeUuid, nodeRuleGroupUuid) -> str:
return 'do some magic!'
def retrieve_context_topology_node_node_rule_group_available_capacity_bandwidth_profile_bandwidth_profile(uuid, nodeUuid, nodeRuleGroupUuid) -> str:
return 'do some magic!'
def retrieve_context_topology_node_node_rule_group_available_capacity_bandwidth_profile_committed_burst_size_committed_burst_size(uuid, nodeUuid, nodeRuleGroupUuid) -> str:
return 'do some magic!'
def retrieve_context_topology_node_node_rule_group_available_capacity_bandwidth_profile_committed_information_rate_committed_information_rate(uuid, nodeUuid, nodeRuleGroupUuid) -> str:
return 'do some magic!'
def retrieve_context_topology_node_node_rule_group_available_capacity_bandwidth_profile_peak_burst_size_peak_burst_size(uuid, nodeUuid, nodeRuleGroupUuid) -> str:
return 'do some magic!'
def retrieve_context_topology_node_node_rule_group_available_capacity_bandwidth_profile_peak_information_rate_peak_information_rate(uuid, nodeUuid, nodeRuleGroupUuid) -> str:
return 'do some magic!'
def retrieve_context_topology_node_node_rule_group_available_capacity_total_size_total_size(uuid, nodeUuid, nodeRuleGroupUuid) -> str:
return 'do some magic!'
def retrieve_context_topology_node_node_rule_group_cost_characteristic_cost_characteristic(uuid, nodeUuid, nodeRuleGroupUuid) -> str:
return 'do some magic!'
def retrieve_context_topology_node_node_rule_group_cost_characteristic_cost_characteristic_by_id(uuid, nodeUuid, nodeRuleGroupUuid, costName) -> str:
return 'do some magic!'
def retrieve_context_topology_node_node_rule_group_inter_rule_group_available_capacity_available_capacity(uuid, nodeUuid, nodeRuleGroupUuid, interRuleGroupUuid) -> str:
return 'do some magic!'
def retrieve_context_topology_node_node_rule_group_inter_rule_group_available_capacity_bandwidth_profile_bandwidth_profile(uuid, nodeUuid, nodeRuleGroupUuid, interRuleGroupUuid) -> str:
return 'do some magic!'
def retrieve_context_topology_node_node_rule_group_inter_rule_group_available_capacity_bandwidth_profile_committed_burst_size_committed_burst_size(uuid, nodeUuid, nodeRuleGroupUuid, interRuleGroupUuid) -> str:
return 'do some magic!'
def retrieve_context_topology_node_node_rule_group_inter_rule_group_available_capacity_bandwidth_profile_committed_information_rate_committed_information_rate(uuid, nodeUuid, nodeRuleGroupUuid, interRuleGroupUuid) -> str:
return 'do some magic!'
def retrieve_context_topology_node_node_rule_group_inter_rule_group_available_capacity_bandwidth_profile_peak_burst_size_peak_burst_size(uuid, nodeUuid, nodeRuleGroupUuid, interRuleGroupUuid) -> str:
return 'do some magic!'
def retrieve_context_topology_node_node_rule_group_inter_rule_group_available_capacity_bandwidth_profile_peak_information_rate_peak_information_rate(uuid, nodeUuid, nodeRuleGroupUuid, interRuleGroupUuid) -> str:
return 'do some magic!'
def retrieve_context_topology_node_node_rule_group_inter_rule_group_available_capacity_total_size_total_size(uuid, nodeUuid, nodeRuleGroupUuid, interRuleGroupUuid) -> str:
return 'do some magic!'
def retrieve_context_topology_node_node_rule_group_inter_rule_group_cost_characteristic_cost_characteristic(uuid, nodeUuid, nodeRuleGroupUuid, interRuleGroupUuid) -> str:
return 'do some magic!'
def retrieve_context_topology_node_node_rule_group_inter_rule_group_cost_characteristic_cost_characteristic_by_id(uuid, nodeUuid, nodeRuleGroupUuid, interRuleGroupUuid, costName) -> str:
return 'do some magic!'
def retrieve_context_topology_node_node_rule_group_inter_rule_group_inter_rule_group(uuid, nodeUuid, nodeRuleGroupUuid) -> str:
return 'do some magic!'
def retrieve_context_topology_node_node_rule_group_inter_rule_group_inter_rule_group_by_id(uuid, nodeUuid, nodeRuleGroupUuid, interRuleGroupUuid) -> str:
return 'do some magic!'
def retrieve_context_topology_node_node_rule_group_inter_rule_group_latency_characteristic_latency_characteristic(uuid, nodeUuid, nodeRuleGroupUuid, interRuleGroupUuid) -> str:
return 'do some magic!'
def retrieve_context_topology_node_node_rule_group_inter_rule_group_latency_characteristic_latency_characteristic_by_id(uuid, nodeUuid, nodeRuleGroupUuid, interRuleGroupUuid, trafficPropertyName) -> str:
return 'do some magic!'
def retrieve_context_topology_node_node_rule_group_inter_rule_group_name_name(uuid, nodeUuid, nodeRuleGroupUuid, interRuleGroupUuid) -> str:
return 'do some magic!'
def retrieve_context_topology_node_node_rule_group_inter_rule_group_name_name_by_id(uuid, nodeUuid, nodeRuleGroupUuid, interRuleGroupUuid, valueName) -> str:
return 'do some magic!'
def retrieve_context_topology_node_node_rule_group_inter_rule_group_risk_characteristic_risk_characteristic(uuid, nodeUuid, nodeRuleGroupUuid, interRuleGroupUuid) -> str:
return 'do some magic!'
def retrieve_context_topology_node_node_rule_group_inter_rule_group_risk_characteristic_risk_characteristic_by_id(uuid, nodeUuid, nodeRuleGroupUuid, interRuleGroupUuid, riskCharacteristicName) -> str:
return 'do some magic!'
def retrieve_context_topology_node_node_rule_group_inter_rule_group_rule_name_name(uuid, nodeUuid, nodeRuleGroupUuid, interRuleGroupUuid, localId) -> str:
return 'do some magic!'
def retrieve_context_topology_node_node_rule_group_inter_rule_group_rule_name_name_by_id(uuid, nodeUuid, nodeRuleGroupUuid, interRuleGroupUuid, localId, valueName) -> str:
return 'do some magic!'
def retrieve_context_topology_node_node_rule_group_inter_rule_group_rule_rule(uuid, nodeUuid, nodeRuleGroupUuid, interRuleGroupUuid) -> str:
return 'do some magic!'
def retrieve_context_topology_node_node_rule_group_inter_rule_group_rule_rule_by_id(uuid, nodeUuid, nodeRuleGroupUuid, interRuleGroupUuid, localId) -> str:
return 'do some magic!'
def retrieve_context_topology_node_node_rule_group_inter_rule_group_total_potential_capacity_bandwidth_profile_bandwidth_profile(uuid, nodeUuid, nodeRuleGroupUuid, interRuleGroupUuid) -> str:
return 'do some magic!'
def retrieve_context_topology_node_node_rule_group_inter_rule_group_total_potential_capacity_bandwidth_profile_committed_burst_size_committed_burst_size(uuid, nodeUuid, nodeRuleGroupUuid, interRuleGroupUuid) -> str:
return 'do some magic!'
def retrieve_context_topology_node_node_rule_group_inter_rule_group_total_potential_capacity_bandwidth_profile_committed_information_rate_committed_information_rate(uuid, nodeUuid, nodeRuleGroupUuid, interRuleGroupUuid) -> str:
return 'do some magic!'
def retrieve_context_topology_node_node_rule_group_inter_rule_group_total_potential_capacity_bandwidth_profile_peak_burst_size_peak_burst_size(uuid, nodeUuid, nodeRuleGroupUuid, interRuleGroupUuid) -> str:
return 'do some magic!'
def retrieve_context_topology_node_node_rule_group_inter_rule_group_total_potential_capacity_bandwidth_profile_peak_information_rate_peak_information_rate(uuid, nodeUuid, nodeRuleGroupUuid, interRuleGroupUuid) -> str:
return 'do some magic!'
def retrieve_context_topology_node_node_rule_group_inter_rule_group_total_potential_capacity_total_potential_capacity(uuid, nodeUuid, nodeRuleGroupUuid, interRuleGroupUuid) -> str:
return 'do some magic!'
def retrieve_context_topology_node_node_rule_group_inter_rule_group_total_potential_capacity_total_size_total_size(uuid, nodeUuid, nodeRuleGroupUuid, interRuleGroupUuid) -> str:
return 'do some magic!'
def retrieve_context_topology_node_node_rule_group_latency_characteristic_latency_characteristic(uuid, nodeUuid, nodeRuleGroupUuid) -> str:
return 'do some magic!'
def retrieve_context_topology_node_node_rule_group_latency_characteristic_latency_characteristic_by_id(uuid, nodeUuid, nodeRuleGroupUuid, trafficPropertyName) -> str:
return 'do some magic!'
def retrieve_context_topology_node_node_rule_group_name_name(uuid, nodeUuid, nodeRuleGroupUuid) -> str:
return 'do some magic!'
def retrieve_context_topology_node_node_rule_group_name_name_by_id(uuid, nodeUuid, nodeRuleGroupUuid, valueName) -> str:
return 'do some magic!'
def retrieve_context_topology_node_node_rule_group_node_rule_group(uuid, nodeUuid) -> str:
return 'do some magic!'
def retrieve_context_topology_node_node_rule_group_node_rule_group_by_id(uuid, nodeUuid, nodeRuleGroupUuid) -> str:
return 'do some magic!'
def retrieve_context_topology_node_node_rule_group_risk_characteristic_risk_characteristic(uuid, nodeUuid, nodeRuleGroupUuid) -> str:
return 'do some magic!'
def retrieve_context_topology_node_node_rule_group_risk_characteristic_risk_characteristic_by_id(uuid, nodeUuid, nodeRuleGroupUuid, riskCharacteristicName) -> str:
return 'do some magic!'
def retrieve_context_topology_node_node_rule_group_rule_name_name(uuid, nodeUuid, nodeRuleGroupUuid, localId) -> str:
return 'do some magic!'
def retrieve_context_topology_node_node_rule_group_rule_name_name_by_id(uuid, nodeUuid, nodeRuleGroupUuid, localId, valueName) -> str:
return 'do some magic!'
def retrieve_context_topology_node_node_rule_group_rule_rule(uuid, nodeUuid, nodeRuleGroupUuid) -> str:
return 'do some magic!'
def retrieve_context_topology_node_node_rule_group_rule_rule_by_id(uuid, nodeUuid, nodeRuleGroupUuid, localId) -> str:
return 'do some magic!'
def retrieve_context_topology_node_node_rule_group_total_potential_capacity_bandwidth_profile_bandwidth_profile(uuid, nodeUuid, nodeRuleGroupUuid) -> str:
return 'do some magic!'
def retrieve_context_topology_node_node_rule_group_total_potential_capacity_bandwidth_profile_committed_burst_size_committed_burst_size(uuid, nodeUuid, nodeRuleGroupUuid) -> str:
return 'do some magic!'
def retrieve_context_topology_node_node_rule_group_total_potential_capacity_bandwidth_profile_committed_information_rate_committed_information_rate(uuid, nodeUuid, nodeRuleGroupUuid) -> str:
return 'do some magic!'
def retrieve_context_topology_node_node_rule_group_total_potential_capacity_bandwidth_profile_peak_burst_size_peak_burst_size(uuid, nodeUuid, nodeRuleGroupUuid) -> str:
return 'do some magic!'
def retrieve_context_topology_node_node_rule_group_total_potential_capacity_bandwidth_profile_peak_information_rate_peak_information_rate(uuid, nodeUuid, nodeRuleGroupUuid) -> str:
return 'do some magic!'
def retrieve_context_topology_node_node_rule_group_total_potential_capacity_total_potential_capacity(uuid, nodeUuid, nodeRuleGroupUuid) -> str:
return 'do some magic!'
def retrieve_context_topology_node_node_rule_group_total_potential_capacity_total_size_total_size(uuid, nodeUuid, nodeRuleGroupUuid) -> str:
return 'do some magic!'
def retrieve_context_topology_node_owned_node_edge_point_connection_end_point_connection_end_point(uuid, nodeUuid, ownedNodeEdgePointUuid) -> str:
return 'do some magic!'
def retrieve_context_topology_node_owned_node_edge_point_connection_end_point_connection_end_point_by_id(uuid, nodeUuid, ownedNodeEdgePointUuid, connectionEndPointUuid) -> str:
return 'do some magic!'
def retrieve_context_topology_node_owned_node_edge_point_connection_end_point_name_name(uuid, nodeUuid, ownedNodeEdgePointUuid, connectionEndPointUuid) -> str:
return 'do some magic!'
def retrieve_context_topology_node_owned_node_edge_point_connection_end_point_name_name_by_id(uuid, nodeUuid, ownedNodeEdgePointUuid, connectionEndPointUuid, valueName) -> str:
return 'do some magic!'
def retrieve_context_topology_node_owned_node_edge_point_name_name(uuid, nodeUuid, ownedNodeEdgePointUuid) -> str:
return 'do some magic!'
def retrieve_context_topology_node_owned_node_edge_point_name_name_by_id(uuid, nodeUuid, ownedNodeEdgePointUuid, valueName) -> str:
return 'do some magic!'
def retrieve_context_topology_node_owned_node_edge_point_owned_node_edge_point(uuid, node_uuid) -> str:
logging.info("retrieve_context_topology_node_owned_node_edge_point_owned_node_edge_point %s %s", uuid, node_uuid)
for item in database.context['topology']:
if item['uuid'] == uuid:
for node in item['node']:
if node['uuid']==node_uuid:
array_cs=[]
for nep in node['owned-node-edge-point']:
uri="/restconf/config/context/topology/"+uuid+"/node/"+node_uuid+"/owned-node-edge-point/"+nep['uuid']+"/"
array_cs.append(uri)
#json = { 'itemlist' : array_cs }
return array_cs
def retrieve_context_topology_node_owned_node_edge_point_owned_node_edge_point_by_id(uuid, node_uuid, owned_node_edge_point_uuid) -> str:
logging.info("retrieve_context_topology_node_owned_node_edge_point_owned_node_edge_point_by_id %s %s %s", uuid, node_uuid, owned_node_edge_point_uuid)
for item in database.context['topology']:
if item['uuid'] == uuid:
for node in item['node']:
if node['uuid'] == node_uuid:
for nep in node['owned-node-edge-point']:
if nep['uuid'] == owned_node_edge_point_uuid:
return nep
def retrieve_context_topology_node_total_potential_capacity_bandwidth_profile_bandwidth_profile(uuid, nodeUuid) -> str:
return 'do some magic!'
def retrieve_context_topology_node_total_potential_capacity_bandwidth_profile_committed_burst_size_committed_burst_size(uuid, nodeUuid) -> str:
return 'do some magic!'
def retrieve_context_topology_node_total_potential_capacity_bandwidth_profile_committed_information_rate_committed_information_rate(uuid, nodeUuid) -> str:
return 'do some magic!'
def retrieve_context_topology_node_total_potential_capacity_bandwidth_profile_peak_burst_size_peak_burst_size(uuid, nodeUuid) -> str:
return 'do some magic!'
def retrieve_context_topology_node_total_potential_capacity_bandwidth_profile_peak_information_rate_peak_information_rate(uuid, nodeUuid) -> str:
return 'do some magic!'
def retrieve_context_topology_node_total_potential_capacity_total_potential_capacity(uuid, nodeUuid) -> str:
return 'do some magic!'
def retrieve_context_topology_node_total_potential_capacity_total_size_total_size(uuid, nodeUuid) -> str:
return 'do some magic!'
def retrieve_context_topology_topology() -> str:
logging.info("retrieve_context_topology_topology")
array_cs=[]
for top in database.context['topology']:
uri="/restconf/config/context/topology/"+top["uuid"]+"/"
array_cs.append(uri)
#json = { 'itemlist' : array_cs }
return array_cs
def retrieve_context_topology_topology_by_id(uuid) -> str:
logging.info("retrieve_context_topology_topology_by_id %s", uuid)
for item in database.context['topology']:
if item['uuid'] == uuid:
return item
def update_context_by_id(context) -> str:
return 'do some magic!'
def update_context_connectivity_service_connectivity_service_by_id(uuid, connectivityService) -> str:
return 'do some magic!'
def update_context_connectivity_service_end_point_capacity_capacity_by_id(uuid, localId, capacity) -> str:
return 'do some magic!'
def update_context_connectivity_service_end_point_end_point_by_id(uuid, localId, endPoint) -> str:
return 'do some magic!'
def update_context_connectivity_service_end_point_name_name_by_id(uuid, localId, valueName, name) -> str:
return 'do some magic!'
def update_context_connectivity_service_name_name_by_id(uuid, valueName, name) -> str:
return 'do some magic!'
def update_context_connectivity_service_resilience_type_resilience_type_by_id(uuid, resilienceType) -> str:
return 'do some magic!'
def update_context_connectivity_service_schedule_schedule_by_id(uuid, schedule) -> str:
return 'do some magic!'
def update_context_name_name_by_id(valueName, name) -> str:
return 'do some magic!'
def update_context_path_comp_service_end_point_end_point_by_id(uuid, localId, endPoint) -> str:
return 'do some magic!'
def update_context_path_comp_service_end_point_name_name_by_id(uuid, localId, valueName, name) -> str:
return 'do some magic!'
def update_context_path_comp_service_name_name_by_id(uuid, valueName, name) -> str:
return 'do some magic!'
def update_context_path_comp_service_objective_function_name_name_by_id(uuid, valueName, name) -> str:
return 'do some magic!'
def update_context_path_comp_service_objective_function_objective_function_by_id(uuid, objectiveFunction) -> str:
return 'do some magic!'
def update_context_path_comp_service_optimization_constraint_name_name_by_id(uuid, valueName, name) -> str:
return 'do some magic!'
def update_context_path_comp_service_optimization_constraint_optimization_constraint_by_id(uuid, optimizationConstraint) -> str:
return 'do some magic!'
def update_context_path_comp_service_path_comp_service_by_id(uuid, pathCompService) -> str:
return 'do some magic!'
def update_context_path_comp_service_routing_constraint_name_name_by_id(uuid, valueName, name) -> str:
return 'do some magic!'
def update_context_path_comp_service_routing_constraint_routing_constraint_by_id(uuid, routingConstraint) -> str:
return 'do some magic!'
def update_context_service_interface_point_name_name_by_id(uuid, valueName, name) -> str:
return 'do some magic!'
def update_context_service_interface_point_service_interface_point_by_id(uuid, serviceInterfacePoint) -> str:
return 'do some magic!'
| 47.880654
| 227
| 0.818666
| 6,619
| 49,748
| 5.659465
| 0.022209
| 0.062146
| 0.093219
| 0.132061
| 0.971783
| 0.95953
| 0.948505
| 0.933983
| 0.919728
| 0.899893
| 0
| 0.000542
| 0.109693
| 49,748
| 1,038
| 228
| 47.926782
| 0.845228
| 0.004503
| 0
| 0.490251
| 0
| 0.006964
| 0.127209
| 0.030555
| 0
| 0
| 0
| 0
| 0
| 1
| 0.430362
| false
| 0
| 0.002786
| 0.4039
| 0.864903
| 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
| 1
| 1
| 0
|
0
| 9
|
df03dfd69397c4556d37a7623e0fd824345375f2
| 40,798
|
py
|
Python
|
tests/category/test_integration.py
|
uizaio/api-wrapper-python
|
e67c162e711857341f7ef5752178219e94f604d3
|
[
"MIT"
] | 2
|
2019-04-22T11:39:36.000Z
|
2020-05-26T04:01:43.000Z
|
tests/category/test_integration.py
|
uizaio/api-wrapper-python
|
e67c162e711857341f7ef5752178219e94f604d3
|
[
"MIT"
] | null | null | null |
tests/category/test_integration.py
|
uizaio/api-wrapper-python
|
e67c162e711857341f7ef5752178219e94f604d3
|
[
"MIT"
] | 2
|
2019-02-11T09:34:03.000Z
|
2019-02-12T10:31:41.000Z
|
import unittest
import mock
import uiza
from uiza.api_resources.category import Category
from uiza.exceptions import (
BadRequestError,
UnauthorizedError,
NotFoundError,
UnprocessableError,
InternalServerError,
ServiceUnavailableError,
ClientError,
ServerError
)
class TestCategoryBaseTestCase(unittest.TestCase):
def __init__(self, *args, **kwargs):
super(TestCategoryBaseTestCase, self).__init__(*args, **kwargs)
uiza.authorization = 'test api key'
uiza.app_id = 'test app id'
self.category_id = '37d6706e-be91-463e-b3b3-b69451dd4752'
self.category_data_create = {
'name': 'Folder sample python 3',
'type': 'tag',
'description': 'Folder description',
'orderNumber': 1,
'icon': 'https://exemple.com/icon.png'
}
self.category_data_update = dict(id=self.category_id, name='Test update')
class TestCreateCategory(TestCategoryBaseTestCase):
@mock.patch('uiza.Connection._request_http')
def test_create_category_valid(self, mock_request_http):
mock_request_http.return_value = True, 200
data = Category().create(**self.category_data_create)
self.assertEqual(data[1], 200)
@mock.patch('uiza.Connection._request_http')
def test_create_category_invalid_with_status_code_400(self, mock_request_http):
mock_request_http.return_value = True, 400
with self.assertRaises(BadRequestError) as context:
Category().create(**self.category_data_create)
self.assertTrue(context.exception.__class__.__name__, 'BadRequestError')
@mock.patch('uiza.Connection._request_http')
def test_create_category_invalid_with_status_code_401(self, mock_request_http):
mock_request_http.return_value = True, 401
with self.assertRaises(UnauthorizedError) as context:
Category().create(**self.category_data_create)
self.assertTrue(context.exception.__class__.__name__, 'UnauthorizedError')
@mock.patch('uiza.Connection._request_http')
def test_create_category_invalid_with_status_code_404(self, mock_request_http):
mock_request_http.return_value = True, 404
with self.assertRaises(NotFoundError) as context:
Category().create(**self.category_data_create)
self.assertTrue(context.exception.__class__.__name__, 'NotFoundError')
@mock.patch('uiza.Connection._request_http')
def test_create_category_invalid_with_status_code_422(self, mock_request_http):
mock_request_http.return_value = True, 422
with self.assertRaises(UnprocessableError) as context:
Category().create(**self.category_data_create)
self.assertTrue(context.exception.__class__.__name__, 'UnprocessableError')
@mock.patch('uiza.Connection._request_http')
def test_create_category_invalid_with_status_code_500(self, mock_request_http):
mock_request_http.return_value = True, 500
with self.assertRaises(InternalServerError) as context:
Category().create(**self.category_data_create)
self.assertTrue(context.exception.__class__.__name__, 'InternalServerError')
@mock.patch('uiza.Connection._request_http')
def test_create_category_invalid_with_status_code_503(self, mock_request_http):
mock_request_http.return_value = True, 503
with self.assertRaises(ServiceUnavailableError) as context:
Category().create(**self.category_data_create)
self.assertTrue(context.exception.__class__.__name__, 'ServiceUnavailableError')
@mock.patch('uiza.Connection._request_http')
def test_create_category_invalid_with_status_code_4xx(self, mock_request_http):
mock_request_http.return_value = True, 412
with self.assertRaises(ClientError) as context:
Category().create(**self.category_data_create)
self.assertTrue(context.exception.__class__.__name__, 'ClientError')
@mock.patch('uiza.Connection._request_http')
def test_create_category_invalid_with_status_code_5xx(self, mock_request_http):
mock_request_http.return_value = True, 512
with self.assertRaises(ServerError) as context:
Category().create(**self.category_data_create)
self.assertTrue(context.exception.__class__.__name__, 'ServerError')
class TestRetrieveCategory(TestCategoryBaseTestCase):
@mock.patch('uiza.Connection._request_http')
def test_retrieve_category_valid(self, mock_request_http):
mock_request_http.return_value = True, 200
data = Category().retrieve(id=self.category_id)
self.assertEqual(data[1], 200)
@mock.patch('uiza.Connection._request_http')
def test_retrieve_category_invalid_with_status_code_400(self, mock_request_http):
mock_request_http.return_value = True, 400
with self.assertRaises(BadRequestError) as context:
Category().retrieve(id=self.category_id)
self.assertTrue(context.exception.__class__.__name__, 'BadRequestError')
@mock.patch('uiza.Connection._request_http')
def test_retrieve_category_invalid_with_status_code_401(self, mock_request_http):
mock_request_http.return_value = True, 401
with self.assertRaises(UnauthorizedError) as context:
Category().retrieve(id=self.category_id)
self.assertTrue(context.exception.__class__.__name__, 'UnauthorizedError')
@mock.patch('uiza.Connection._request_http')
def test_retrieve_category_invalid_with_status_code_404(self, mock_request_http):
mock_request_http.return_value = True, 404
with self.assertRaises(NotFoundError) as context:
Category().retrieve(id=self.category_id)
self.assertTrue(context.exception.__class__.__name__, 'NotFoundError')
@mock.patch('uiza.Connection._request_http')
def test_retrieve_category_invalid_with_status_code_422(self, mock_request_http):
mock_request_http.return_value = True, 422
with self.assertRaises(UnprocessableError) as context:
Category().retrieve(id=self.category_id)
self.assertTrue(context.exception.__class__.__name__, 'UnprocessableError')
@mock.patch('uiza.Connection._request_http')
def test_retrieve_category_invalid_with_status_code_500(self, mock_request_http):
mock_request_http.return_value = True, 500
with self.assertRaises(InternalServerError) as context:
Category().retrieve(id=self.category_id)
self.assertTrue(context.exception.__class__.__name__, 'InternalServerError')
@mock.patch('uiza.Connection._request_http')
def test_retrieve_category_invalid_with_status_code_503(self, mock_request_http):
mock_request_http.return_value = True, 503
with self.assertRaises(ServiceUnavailableError) as context:
Category().retrieve(id=self.category_id)
self.assertTrue(context.exception.__class__.__name__, 'ServiceUnavailableError')
@mock.patch('uiza.Connection._request_http')
def test_retrieve_category_invalid_with_status_code_4xx(self, mock_request_http):
mock_request_http.return_value = True, 412
with self.assertRaises(ClientError) as context:
Category().retrieve(id=self.category_id)
self.assertTrue(context.exception.__class__.__name__, 'ClientError')
@mock.patch('uiza.Connection._request_http')
def test_retrieve_category_invalid_with_status_code_5xx(self, mock_request_http):
mock_request_http.return_value = True, 512
with self.assertRaises(ServerError) as context:
Category().retrieve(id=self.category_id)
self.assertTrue(context.exception.__class__.__name__, 'ServerError')
@mock.patch('uiza.Connection._request_http')
def test_retrieve_category_invalid_with_not_category_id(self, mock_request_http):
mock_request_http.return_value = True, 200
with self.assertRaises(Exception) as context:
Category().retrieve()
self.assertTrue(context.exception.__class__.__name__, 'TypeError')
class TestUpdateCategory(TestCategoryBaseTestCase):
@mock.patch('uiza.Connection._request_http')
def test_update_category_valid(self, mock_request_http):
mock_request_http.return_value = True, 200
data = Category().update(**self.category_data_update)
self.assertEqual(data[1], 200)
@mock.patch('uiza.Connection._request_http')
def test_update_category_invalid_with_status_code_400(self, mock_request_http):
mock_request_http.return_value = True, 400
with self.assertRaises(BadRequestError) as context:
Category().update(**self.category_data_update)
self.assertTrue(context.exception.__class__.__name__, 'BadRequestError')
@mock.patch('uiza.Connection._request_http')
def test_update_category_invalid_with_status_code_401(self, mock_request_http):
mock_request_http.return_value = True, 401
with self.assertRaises(UnauthorizedError) as context:
Category().update(**self.category_data_update)
self.assertTrue(context.exception.__class__.__name__, 'UnauthorizedError')
@mock.patch('uiza.Connection._request_http')
def test_update_category_invalid_with_status_code_404(self, mock_request_http):
mock_request_http.return_value = True, 404
with self.assertRaises(NotFoundError) as context:
Category().update(**self.category_data_update)
self.assertTrue(context.exception.__class__.__name__, 'NotFoundError')
@mock.patch('uiza.Connection._request_http')
def test_update_category_invalid_with_status_code_422(self, mock_request_http):
mock_request_http.return_value = True, 422
with self.assertRaises(UnprocessableError) as context:
Category().update(**self.category_data_update)
self.assertTrue(context.exception.__class__.__name__, 'UnprocessableError')
@mock.patch('uiza.Connection._request_http')
def test_update_category_invalid_with_status_code_500(self, mock_request_http):
mock_request_http.return_value = True, 500
with self.assertRaises(InternalServerError) as context:
Category().update(**self.category_data_update)
self.assertTrue(context.exception.__class__.__name__, 'InternalServerError')
@mock.patch('uiza.Connection._request_http')
def test_update_category_invalid_with_status_code_503(self, mock_request_http):
mock_request_http.return_value = True, 503
with self.assertRaises(ServiceUnavailableError) as context:
Category().update(**self.category_data_update)
self.assertTrue(context.exception.__class__.__name__, 'ServiceUnavailableError')
@mock.patch('uiza.Connection._request_http')
def test_update_category_invalid_with_status_code_4xx(self, mock_request_http):
mock_request_http.return_value = True, 412
with self.assertRaises(ClientError) as context:
Category().update(**self.category_data_update)
self.assertTrue(context.exception.__class__.__name__, 'ClientError')
@mock.patch('uiza.Connection._request_http')
def test_update_category_invalid_with_status_code_5xx(self, mock_request_http):
mock_request_http.return_value = True, 512
with self.assertRaises(ServerError) as context:
Category().update(**self.category_data_update)
self.assertTrue(context.exception.__class__.__name__, 'ServerError')
class TestDeleteCategory(TestCategoryBaseTestCase):
@mock.patch('uiza.Connection._request_http')
def test_delete_category_valid(self, mock_request_http):
mock_request_http.return_value = True, 200
data = Category().delete(id=self.category_id)
self.assertEqual(data[1], 200)
@mock.patch('uiza.Connection._request_http')
def test_delete_category_invalid_with_status_code_400(self, mock_request_http):
mock_request_http.return_value = True, 400
with self.assertRaises(BadRequestError) as context:
Category().delete(id=self.category_id)
self.assertTrue(context.exception.__class__.__name__, 'BadRequestError')
@mock.patch('uiza.Connection._request_http')
def test_delete_category_invalid_with_status_code_401(self, mock_request_http):
mock_request_http.return_value = True, 401
with self.assertRaises(UnauthorizedError) as context:
Category().delete(id=self.category_id)
self.assertTrue(context.exception.__class__.__name__, 'UnauthorizedError')
@mock.patch('uiza.Connection._request_http')
def test_delete_category_invalid_with_status_code_404(self, mock_request_http):
mock_request_http.return_value = True, 404
with self.assertRaises(NotFoundError) as context:
Category().delete(id=self.category_id)
self.assertTrue(context.exception.__class__.__name__, 'NotFoundError')
@mock.patch('uiza.Connection._request_http')
def test_delete_category_invalid_with_status_code_422(self, mock_request_http):
mock_request_http.return_value = True, 422
with self.assertRaises(UnprocessableError) as context:
Category().delete(id=self.category_id)
self.assertTrue(context.exception.__class__.__name__, 'UnprocessableError')
@mock.patch('uiza.Connection._request_http')
def test_delete_category_invalid_with_status_code_500(self, mock_request_http):
mock_request_http.return_value = True, 500
with self.assertRaises(InternalServerError) as context:
Category().delete(id=self.category_id)
self.assertTrue(context.exception.__class__.__name__, 'InternalServerError')
@mock.patch('uiza.Connection._request_http')
def test_delete_category_invalid_with_status_code_503(self, mock_request_http):
mock_request_http.return_value = True, 503
with self.assertRaises(ServiceUnavailableError) as context:
Category().delete(id=self.category_id)
self.assertTrue(context.exception.__class__.__name__, 'ServiceUnavailableError')
@mock.patch('uiza.Connection._request_http')
def test_delete_category_invalid_with_status_code_4xx(self, mock_request_http):
mock_request_http.return_value = True, 412
with self.assertRaises(ClientError) as context:
Category().delete(id=self.category_id)
self.assertTrue(context.exception.__class__.__name__, 'ClientError')
@mock.patch('uiza.Connection._request_http')
def test_delete_category_invalid_with_status_code_5xx(self, mock_request_http):
mock_request_http.return_value = True, 512
with self.assertRaises(ServerError) as context:
Category().delete(id=self.category_id)
self.assertTrue(context.exception.__class__.__name__, 'ServerError')
@mock.patch('uiza.Connection._request_http')
def test_delete_category_invalid_not_id(self, mock_request_http):
mock_request_http.return_value = True, 200
with self.assertRaises(TypeError) as context:
Category().delete()
self.assertTrue(context.exception.__class__.__name__, 'TypeError')
class TestListCategory(TestCategoryBaseTestCase):
@mock.patch('uiza.Connection._request_http')
def test_list_category_valid(self, mock_request_http):
mock_request_http.return_value = True, 200
data = Category().list()
self.assertEqual(data[1], 200)
@mock.patch('uiza.Connection._request_http')
def test_list_category_invalid_with_status_code_400(self, mock_request_http):
mock_request_http.return_value = True, 400
with self.assertRaises(BadRequestError) as context:
Category().list()
self.assertTrue(context.exception.__class__.__name__, 'BadRequestError')
@mock.patch('uiza.Connection._request_http')
def test_list_category_invalid_with_status_code_401(self, mock_request_http):
mock_request_http.return_value = True, 401
with self.assertRaises(UnauthorizedError) as context:
Category().list()
self.assertTrue(context.exception.__class__.__name__, 'UnauthorizedError')
@mock.patch('uiza.Connection._request_http')
def test_list_category_invalid_with_status_code_404(self, mock_request_http):
mock_request_http.return_value = True, 404
with self.assertRaises(NotFoundError) as context:
Category().list()
self.assertTrue(context.exception.__class__.__name__, 'NotFoundError')
@mock.patch('uiza.Connection._request_http')
def test_list_category_invalid_with_status_code_422(self, mock_request_http):
mock_request_http.return_value = True, 422
with self.assertRaises(UnprocessableError) as context:
Category().list()
self.assertTrue(context.exception.__class__.__name__, 'UnprocessableError')
@mock.patch('uiza.Connection._request_http')
def test_list_category_invalid_with_status_code_500(self, mock_request_http):
mock_request_http.return_value = True, 500
with self.assertRaises(InternalServerError) as context:
Category().list()
self.assertTrue(context.exception.__class__.__name__, 'InternalServerError')
@mock.patch('uiza.Connection._request_http')
def test_list_category_invalid_with_status_code_503(self, mock_request_http):
mock_request_http.return_value = True, 503
with self.assertRaises(ServiceUnavailableError) as context:
Category().list()
self.assertTrue(context.exception.__class__.__name__, 'ServiceUnavailableError')
@mock.patch('uiza.Connection._request_http')
def test_list_category_invalid_with_status_code_4xx(self, mock_request_http):
mock_request_http.return_value = True, 412
with self.assertRaises(ClientError) as context:
Category().list()
self.assertTrue(context.exception.__class__.__name__, 'ClientError')
@mock.patch('uiza.Connection._request_http')
def test_list_category_invalid_with_status_code_5xx(self, mock_request_http):
mock_request_http.return_value = True, 512
with self.assertRaises(ServerError) as context:
Category().list()
self.assertTrue(context.exception.__class__.__name__, 'ServerError')
class TestCreateRelationCategory(TestCategoryBaseTestCase):
@mock.patch('uiza.Connection._request_http')
def test_create_relation_category_valid(self, mock_request_http):
mock_request_http.return_value = True, 200
data = Category().create_relation(
entity_id='eb578480-6311-4534-b00e-7c7ffbce8283',
metadata_ids=['29f7b6ba-e2a7-4d4b-8026-30828d0a1bb0']
)
self.assertEqual(data[1], 200)
@mock.patch('uiza.Connection._request_http')
def test_create_relation_category_invalid_with_status_code_400(self, mock_request_http):
mock_request_http.return_value = True, 400
with self.assertRaises(BadRequestError) as context:
Category().create_relation(
entity_id='eb578480-6311-4534-b00e-7c7ffbce8283',
metadata_ids=['29f7b6ba-e2a7-4d4b-8026-30828d0a1bb0']
)
self.assertTrue(context.exception.__class__.__name__, 'BadRequestError')
@mock.patch('uiza.Connection._request_http')
def test_create_relation_category_invalid_with_status_code_401(self, mock_request_http):
mock_request_http.return_value = True, 401
with self.assertRaises(UnauthorizedError) as context:
Category().create_relation(
entity_id='eb578480-6311-4534-b00e-7c7ffbce8283',
metadata_ids=['29f7b6ba-e2a7-4d4b-8026-30828d0a1bb0']
)
self.assertTrue(context.exception.__class__.__name__, 'UnauthorizedError')
@mock.patch('uiza.Connection._request_http')
def test_create_relation_category_invalid_with_status_code_404(self, mock_request_http):
mock_request_http.return_value = True, 404
with self.assertRaises(NotFoundError) as context:
Category().create_relation(
entity_id='eb578480-6311-4534-b00e-7c7ffbce8283',
metadata_ids=['29f7b6ba-e2a7-4d4b-8026-30828d0a1bb0']
)
self.assertTrue(context.exception.__class__.__name__, 'NotFoundError')
@mock.patch('uiza.Connection._request_http')
def test_create_relation_category_invalid_with_status_code_422(self, mock_request_http):
mock_request_http.return_value = True, 422
with self.assertRaises(UnprocessableError) as context:
Category().create_relation(
entity_id='eb578480-6311-4534-b00e-7c7ffbce8283',
metadata_ids=['29f7b6ba-e2a7-4d4b-8026-30828d0a1bb0']
)
self.assertTrue(context.exception.__class__.__name__, 'UnprocessableError')
@mock.patch('uiza.Connection._request_http')
def test_create_relation_category_invalid_with_status_code_500(self, mock_request_http):
mock_request_http.return_value = True, 500
with self.assertRaises(InternalServerError) as context:
Category().create_relation(
entity_id='eb578480-6311-4534-b00e-7c7ffbce8283',
metadata_ids=['29f7b6ba-e2a7-4d4b-8026-30828d0a1bb0']
)
self.assertTrue(context.exception.__class__.__name__, 'InternalServerError')
@mock.patch('uiza.Connection._request_http')
def test_create_relation_category_invalid_with_status_code_503(self, mock_request_http):
mock_request_http.return_value = True, 503
with self.assertRaises(ServiceUnavailableError) as context:
Category().create_relation(
entity_id='eb578480-6311-4534-b00e-7c7ffbce8283',
metadata_ids=['29f7b6ba-e2a7-4d4b-8026-30828d0a1bb0']
)
self.assertTrue(context.exception.__class__.__name__, 'ServiceUnavailableError')
@mock.patch('uiza.Connection._request_http')
def test_create_relation_category_invalid_with_status_code_4xx(self, mock_request_http):
mock_request_http.return_value = True, 412
with self.assertRaises(ClientError) as context:
Category().create_relation(
entity_id='eb578480-6311-4534-b00e-7c7ffbce8283',
metadata_ids=['29f7b6ba-e2a7-4d4b-8026-30828d0a1bb0']
)
self.assertTrue(context.exception.__class__.__name__, 'ClientError')
@mock.patch('uiza.Connection._request_http')
def test_create_relation_category_invalid_with_status_code_5xx(self, mock_request_http):
mock_request_http.return_value = True, 512
with self.assertRaises(ServerError) as context:
Category().create_relation(
entity_id='eb578480-6311-4534-b00e-7c7ffbce8283',
metadata_ids=['29f7b6ba-e2a7-4d4b-8026-30828d0a1bb0']
)
self.assertTrue(context.exception.__class__.__name__, 'ServerError')
@mock.patch('uiza.Connection._request_http')
def test_create_relation_category_invalid_not_entity_id(self, mock_request_http):
mock_request_http.return_value = True, 200
with self.assertRaises(TypeError) as context:
Category().create_relation(
metadata_ids=['29f7b6ba-e2a7-4d4b-8026-30828d0a1bb0']
)
self.assertTrue(context.exception.__class__.__name__, 'TypeError')
@mock.patch('uiza.Connection._request_http')
def test_create_relation_category_invalid_not_metadata_ids(self, mock_request_http):
mock_request_http.return_value = True, 200
with self.assertRaises(TypeError) as context:
Category().create_relation(
entity_id='eb578480-6311-4534-b00e-7c7ffbce8283',
)
self.assertTrue(context.exception.__class__.__name__, 'TypeError')
class TestDeleteRelationCategory(TestCategoryBaseTestCase):
@mock.patch('uiza.Connection._request_http')
def test_delete_relation_category_valid(self, mock_request_http):
mock_request_http.return_value = True, 200
data = Category().delete_relation(
entity_id='eb578480-6311-4534-b00e-7c7ffbce8283',
metadata_ids=['29f7b6ba-e2a7-4d4b-8026-30828d0a1bb0']
)
self.assertEqual(data[1], 200)
@mock.patch('uiza.Connection._request_http')
def test_delete_relation_category_invalid_with_status_code_400(self, mock_request_http):
mock_request_http.return_value = True, 400
with self.assertRaises(BadRequestError) as context:
Category().delete_relation(
entity_id='eb578480-6311-4534-b00e-7c7ffbce8283',
metadata_ids=['29f7b6ba-e2a7-4d4b-8026-30828d0a1bb0']
)
self.assertTrue(context.exception.__class__.__name__, 'BadRequestError')
@mock.patch('uiza.Connection._request_http')
def test_delete_relation_category_invalid_with_status_code_401(self, mock_request_http):
mock_request_http.return_value = True, 401
with self.assertRaises(UnauthorizedError) as context:
Category().delete_relation(
entity_id='eb578480-6311-4534-b00e-7c7ffbce8283',
metadata_ids=['29f7b6ba-e2a7-4d4b-8026-30828d0a1bb0']
)
self.assertTrue(context.exception.__class__.__name__, 'UnauthorizedError')
@mock.patch('uiza.Connection._request_http')
def test_delete_relation_category_invalid_with_status_code_404(self, mock_request_http):
mock_request_http.return_value = True, 404
with self.assertRaises(NotFoundError) as context:
Category().delete_relation(
entity_id='eb578480-6311-4534-b00e-7c7ffbce8283',
metadata_ids=['29f7b6ba-e2a7-4d4b-8026-30828d0a1bb0']
)
self.assertTrue(context.exception.__class__.__name__, 'NotFoundError')
@mock.patch('uiza.Connection._request_http')
def test_delete_relation_category_invalid_with_status_code_422(self, mock_request_http):
mock_request_http.return_value = True, 422
with self.assertRaises(UnprocessableError) as context:
Category().delete_relation(
entity_id='eb578480-6311-4534-b00e-7c7ffbce8283',
metadata_ids=['29f7b6ba-e2a7-4d4b-8026-30828d0a1bb0']
)
self.assertTrue(context.exception.__class__.__name__, 'UnprocessableError')
@mock.patch('uiza.Connection._request_http')
def test_delete_relation_category_invalid_with_status_code_500(self, mock_request_http):
mock_request_http.return_value = True, 500
with self.assertRaises(InternalServerError) as context:
Category().delete_relation(
entity_id='eb578480-6311-4534-b00e-7c7ffbce8283',
metadata_ids=['29f7b6ba-e2a7-4d4b-8026-30828d0a1bb0']
)
self.assertTrue(context.exception.__class__.__name__, 'InternalServerError')
@mock.patch('uiza.Connection._request_http')
def test_delete_relation_category_invalid_with_status_code_503(self, mock_request_http):
mock_request_http.return_value = True, 503
with self.assertRaises(ServiceUnavailableError) as context:
Category().delete_relation(
entity_id='eb578480-6311-4534-b00e-7c7ffbce8283',
metadata_ids=['29f7b6ba-e2a7-4d4b-8026-30828d0a1bb0']
)
self.assertTrue(context.exception.__class__.__name__, 'ServiceUnavailableError')
@mock.patch('uiza.Connection._request_http')
def test_delete_relation_category_invalid_with_status_code_4xx(self, mock_request_http):
mock_request_http.return_value = True, 412
with self.assertRaises(ClientError) as context:
Category().delete_relation(
entity_id='eb578480-6311-4534-b00e-7c7ffbce8283',
metadata_ids=['29f7b6ba-e2a7-4d4b-8026-30828d0a1bb0']
)
self.assertTrue(context.exception.__class__.__name__, 'ClientError')
@mock.patch('uiza.Connection._request_http')
def test_delete_relation_category_invalid_with_status_code_5xx(self, mock_request_http):
mock_request_http.return_value = True, 512
with self.assertRaises(ServerError) as context:
Category().delete_relation(
entity_id='eb578480-6311-4534-b00e-7c7ffbce8283',
metadata_ids=['29f7b6ba-e2a7-4d4b-8026-30828d0a1bb0']
)
self.assertTrue(context.exception.__class__.__name__, 'ServerError')
@mock.patch('uiza.Connection._request_http')
def test_delete_relation_category_invalid_not_entity_id(self, mock_request_http):
mock_request_http.return_value = True, 200
with self.assertRaises(TypeError) as context:
Category().delete_relation(
metadata_ids=['29f7b6ba-e2a7-4d4b-8026-30828d0a1bb0']
)
self.assertTrue(context.exception.__class__.__name__, 'TypeError')
@mock.patch('uiza.Connection._request_http')
def test_delete_relation_category_invalid_not_metadata_ids(self, mock_request_http):
mock_request_http.return_value = True, 200
with self.assertRaises(TypeError) as context:
Category().delete_relation(
entity_id='eb578480-6311-4534-b00e-7c7ffbce8283',
)
self.assertTrue(context.exception.__class__.__name__, 'TypeError')
class TestCreateRelationCategoryEntity(TestCategoryBaseTestCase):
@mock.patch('uiza.Connection._request_http')
def test_create_relation_entity_category_valid(self, mock_request_http):
mock_request_http.return_value = True, 200
data = Category().create_relation_entity(
metadata_id='eb578480-6311-4534-b00e-7c7ffbce8283',
entity_ids=['29f7b6ba-e2a7-4d4b-8026-30828d0a1bb0']
)
self.assertEqual(data[1], 200)
@mock.patch('uiza.Connection._request_http')
def test_create_relation_entity_category_invalid_with_status_code_400(self, mock_request_http):
mock_request_http.return_value = True, 400
with self.assertRaises(BadRequestError) as context:
Category().create_relation_entity(
metadata_id='eb578480-6311-4534-b00e-7c7ffbce8283',
entity_ids=['29f7b6ba-e2a7-4d4b-8026-30828d0a1bb0']
)
self.assertTrue(context.exception.__class__.__name__, 'BadRequestError')
@mock.patch('uiza.Connection._request_http')
def test_create_relation_entity_category_invalid_with_status_code_401(self, mock_request_http):
mock_request_http.return_value = True, 401
with self.assertRaises(UnauthorizedError) as context:
Category().create_relation_entity(
metadata_id='eb578480-6311-4534-b00e-7c7ffbce8283',
entity_ids=['29f7b6ba-e2a7-4d4b-8026-30828d0a1bb0']
)
self.assertTrue(context.exception.__class__.__name__, 'UnauthorizedError')
@mock.patch('uiza.Connection._request_http')
def test_create_relation_entity_category_invalid_with_status_code_404(self, mock_request_http):
mock_request_http.return_value = True, 404
with self.assertRaises(NotFoundError) as context:
Category().create_relation_entity(
metadata_id='eb578480-6311-4534-b00e-7c7ffbce8283',
entity_ids=['29f7b6ba-e2a7-4d4b-8026-30828d0a1bb0']
)
self.assertTrue(context.exception.__class__.__name__, 'NotFoundError')
@mock.patch('uiza.Connection._request_http')
def test_create_relation_entity_category_invalid_with_status_code_422(self, mock_request_http):
mock_request_http.return_value = True, 422
with self.assertRaises(UnprocessableError) as context:
Category().create_relation_entity(
metadata_id='eb578480-6311-4534-b00e-7c7ffbce8283',
entity_ids=['29f7b6ba-e2a7-4d4b-8026-30828d0a1bb0']
)
self.assertTrue(context.exception.__class__.__name__, 'UnprocessableError')
@mock.patch('uiza.Connection._request_http')
def test_create_relation_entity_category_invalid_with_status_code_500(self, mock_request_http):
mock_request_http.return_value = True, 500
with self.assertRaises(InternalServerError) as context:
Category().create_relation_entity(
metadata_id='eb578480-6311-4534-b00e-7c7ffbce8283',
entity_ids=['29f7b6ba-e2a7-4d4b-8026-30828d0a1bb0']
)
self.assertTrue(context.exception.__class__.__name__, 'InternalServerError')
@mock.patch('uiza.Connection._request_http')
def test_create_relation_entity_category_invalid_with_status_code_503(self, mock_request_http):
mock_request_http.return_value = True, 503
with self.assertRaises(ServiceUnavailableError) as context:
Category().create_relation_entity(
metadata_id='eb578480-6311-4534-b00e-7c7ffbce8283',
entity_ids=['29f7b6ba-e2a7-4d4b-8026-30828d0a1bb0']
)
self.assertTrue(context.exception.__class__.__name__, 'ServiceUnavailableError')
@mock.patch('uiza.Connection._request_http')
def test_create_relation_entity_category_invalid_with_status_code_4xx(self, mock_request_http):
mock_request_http.return_value = True, 412
with self.assertRaises(ClientError) as context:
Category().create_relation_entity(
metadata_id='eb578480-6311-4534-b00e-7c7ffbce8283',
entity_ids=['29f7b6ba-e2a7-4d4b-8026-30828d0a1bb0']
)
self.assertTrue(context.exception.__class__.__name__, 'ClientError')
@mock.patch('uiza.Connection._request_http')
def test_create_relation_entity_category_invalid_with_status_code_5xx(self, mock_request_http):
mock_request_http.return_value = True, 512
with self.assertRaises(ServerError) as context:
Category().create_relation_entity(
metadata_id='eb578480-6311-4534-b00e-7c7ffbce8283',
entity_ids=['29f7b6ba-e2a7-4d4b-8026-30828d0a1bb0']
)
self.assertTrue(context.exception.__class__.__name__, 'ServerError')
@mock.patch('uiza.Connection._request_http')
def test_create_relation_entity_category_invalid_not_entity_ids(self, mock_request_http):
mock_request_http.return_value = True, 200
with self.assertRaises(TypeError) as context:
Category().create_relation_entity(
metadata_id='29f7b6ba-e2a7-4d4b-8026-30828d0a1bb0'
)
self.assertTrue(context.exception.__class__.__name__, 'TypeError')
@mock.patch('uiza.Connection._request_http')
def test_create_relation_entity_category_invalid_not_metadata_id(self, mock_request_http):
mock_request_http.return_value = True, 200
with self.assertRaises(TypeError) as context:
Category().create_relation_entity(
entity_ids=['eb578480-6311-4534-b00e-7c7ffbce8283', ]
)
self.assertTrue(context.exception.__class__.__name__, 'TypeError')
class TestDeleteRelationCategoryEntity(TestCategoryBaseTestCase):
@mock.patch('uiza.Connection._request_http')
def test_delete_relation_category_entity_valid(self, mock_request_http):
mock_request_http.return_value = True, 200
data = Category().delete_relation_entity(
metadata_id='eb578480-6311-4534-b00e-7c7ffbce8283',
entity_ids=['29f7b6ba-e2a7-4d4b-8026-30828d0a1bb0']
)
self.assertEqual(data[1], 200)
@mock.patch('uiza.Connection._request_http')
def test_delete_relation_category_entity_invalid_with_status_code_400(self, mock_request_http):
mock_request_http.return_value = True, 400
with self.assertRaises(BadRequestError) as context:
Category().delete_relation_entity(
metadata_id='eb578480-6311-4534-b00e-7c7ffbce8283',
entity_ids=['29f7b6ba-e2a7-4d4b-8026-30828d0a1bb0']
)
self.assertTrue(context.exception.__class__.__name__, 'BadRequestError')
@mock.patch('uiza.Connection._request_http')
def test_delete_relation_category_entity_invalid_with_status_code_401(self, mock_request_http):
mock_request_http.return_value = True, 401
with self.assertRaises(UnauthorizedError) as context:
Category().delete_relation_entity(
metadata_id='eb578480-6311-4534-b00e-7c7ffbce8283',
entity_ids=['29f7b6ba-e2a7-4d4b-8026-30828d0a1bb0']
)
self.assertTrue(context.exception.__class__.__name__, 'UnauthorizedError')
@mock.patch('uiza.Connection._request_http')
def test_delete_relation_category_entity_invalid_with_status_code_404(self, mock_request_http):
mock_request_http.return_value = True, 404
with self.assertRaises(NotFoundError) as context:
Category().delete_relation_entity(
metadata_id='eb578480-6311-4534-b00e-7c7ffbce8283',
entity_ids=['29f7b6ba-e2a7-4d4b-8026-30828d0a1bb0']
)
self.assertTrue(context.exception.__class__.__name__, 'NotFoundError')
@mock.patch('uiza.Connection._request_http')
def test_delete_relation_category_entity_invalid_with_status_code_422(self, mock_request_http):
mock_request_http.return_value = True, 422
with self.assertRaises(UnprocessableError) as context:
Category().delete_relation_entity(
metadata_id='eb578480-6311-4534-b00e-7c7ffbce8283',
entity_ids=['29f7b6ba-e2a7-4d4b-8026-30828d0a1bb0']
)
self.assertTrue(context.exception.__class__.__name__, 'UnprocessableError')
@mock.patch('uiza.Connection._request_http')
def test_delete_relation_category_entity_invalid_with_status_code_500(self, mock_request_http):
mock_request_http.return_value = True, 500
with self.assertRaises(InternalServerError) as context:
Category().delete_relation_entity(
metadata_id='eb578480-6311-4534-b00e-7c7ffbce8283',
entity_ids=['29f7b6ba-e2a7-4d4b-8026-30828d0a1bb0']
)
self.assertTrue(context.exception.__class__.__name__, 'InternalServerError')
@mock.patch('uiza.Connection._request_http')
def test_delete_relation_category_entity_invalid_with_status_code_503(self, mock_request_http):
mock_request_http.return_value = True, 503
with self.assertRaises(ServiceUnavailableError) as context:
Category().delete_relation_entity(
metadata_id='eb578480-6311-4534-b00e-7c7ffbce8283',
entity_ids=['29f7b6ba-e2a7-4d4b-8026-30828d0a1bb0']
)
self.assertTrue(context.exception.__class__.__name__, 'ServiceUnavailableError')
@mock.patch('uiza.Connection._request_http')
def test_delete_relation_category_entity_invalid_with_status_code_4xx(self, mock_request_http):
mock_request_http.return_value = True, 412
with self.assertRaises(ClientError) as context:
Category().delete_relation_entity(
metadata_id='eb578480-6311-4534-b00e-7c7ffbce8283',
entity_ids=['29f7b6ba-e2a7-4d4b-8026-30828d0a1bb0']
)
self.assertTrue(context.exception.__class__.__name__, 'ClientError')
@mock.patch('uiza.Connection._request_http')
def test_delete_relation_category_entity_invalid_with_status_code_5xx(self, mock_request_http):
mock_request_http.return_value = True, 512
with self.assertRaises(ServerError) as context:
Category().delete_relation_entity(
metadata_id='eb578480-6311-4534-b00e-7c7ffbce8283',
entity_ids=['29f7b6ba-e2a7-4d4b-8026-30828d0a1bb0']
)
self.assertTrue(context.exception.__class__.__name__, 'ServerError')
@mock.patch('uiza.Connection._request_http')
def test_delete_relation_category_entity_invalid_not_entity_ids(self, mock_request_http):
mock_request_http.return_value = True, 200
with self.assertRaises(TypeError) as context:
Category().delete_relation_entity(
metadata_id='29f7b6ba-e2a7-4d4b-8026-30828d0a1bb0'
)
self.assertTrue(context.exception.__class__.__name__, 'TypeError')
@mock.patch('uiza.Connection._request_http')
def test_delete_relation_category_entity_invalid_not_metadata_id(self, mock_request_http):
mock_request_http.return_value = True, 200
with self.assertRaises(TypeError) as context:
Category().delete_relation_entity(
entity_ids=['eb578480-6311-4534-b00e-7c7ffbce8283', ]
)
self.assertTrue(context.exception.__class__.__name__, 'TypeError')
| 50.243842
| 99
| 0.722462
| 4,578
| 40,798
| 5.965269
| 0.024465
| 0.109964
| 0.099967
| 0.076641
| 0.968216
| 0.968216
| 0.968216
| 0.966092
| 0.960453
| 0.957816
| 0
| 0.06582
| 0.183342
| 40,798
| 811
| 100
| 50.305795
| 0.753827
| 0
| 0
| 0.73639
| 0
| 0
| 0.169788
| 0.141232
| 0
| 0
| 0
| 0
| 0.247851
| 1
| 0.131805
| false
| 0
| 0.007163
| 0
| 0.153295
| 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
|
df1b83effef057587f6c41cb2c30b9b53cf7fb53
| 85
|
py
|
Python
|
molsysmt/element/component/__init__.py
|
uibcdf/MolModSAKs
|
02263fb710693f0c41817f1a318459b35fd5462a
|
[
"MIT"
] | null | null | null |
molsysmt/element/component/__init__.py
|
uibcdf/MolModSAKs
|
02263fb710693f0c41817f1a318459b35fd5462a
|
[
"MIT"
] | null | null | null |
molsysmt/element/component/__init__.py
|
uibcdf/MolModSAKs
|
02263fb710693f0c41817f1a318459b35fd5462a
|
[
"MIT"
] | null | null | null |
from .get_component_type_from_group_names import get_component_type_from_group_names
| 42.5
| 84
| 0.941176
| 14
| 85
| 5
| 0.5
| 0.342857
| 0.457143
| 0.571429
| 0.857143
| 0.857143
| 0
| 0
| 0
| 0
| 0
| 0
| 0.047059
| 85
| 1
| 85
| 85
| 0.864198
| 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
| 1
| 1
| 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
| 10
|
df5eb5d77a4c9b94f5323a620ac472c27d9b465d
| 747
|
bzl
|
Python
|
scala/deps.bzl
|
kalbasit/rules_proto_grpc
|
7e0a97adc8801df1cd74ee435d74bbd857c98a36
|
[
"Apache-2.0"
] | 1
|
2021-08-11T23:14:07.000Z
|
2021-08-11T23:14:07.000Z
|
scala/deps.bzl
|
kalbasit/rules_proto_grpc
|
7e0a97adc8801df1cd74ee435d74bbd857c98a36
|
[
"Apache-2.0"
] | null | null | null |
scala/deps.bzl
|
kalbasit/rules_proto_grpc
|
7e0a97adc8801df1cd74ee435d74bbd857c98a36
|
[
"Apache-2.0"
] | null | null | null |
load(":repositories.bzl", "scala_repos")
# NOTE: THE RULES IN THIS FILE ARE KEPT FOR BACKWARDS COMPATIBILITY ONLY.
# Please use the rules in repositories.bzl
def scala_proto_compile(**kwargs):
print("Import of rules in deps.bzl is deprecated, please use repositories.bzl")
scala_repos(**kwargs)
def scala_grpc_compile(**kwargs):
print("Import of rules in deps.bzl is deprecated, please use repositories.bzl")
scala_repos(**kwargs)
def scala_proto_library(**kwargs):
print("Import of rules in deps.bzl is deprecated, please use repositories.bzl")
scala_repos(**kwargs)
def scala_grpc_library(**kwargs):
print("Import of rules in deps.bzl is deprecated, please use repositories.bzl")
scala_repos(**kwargs)
| 35.571429
| 83
| 0.738956
| 108
| 747
| 4.990741
| 0.287037
| 0.166976
| 0.185529
| 0.231911
| 0.742115
| 0.742115
| 0.742115
| 0.742115
| 0.742115
| 0.742115
| 0
| 0
| 0.156627
| 747
| 20
| 84
| 37.35
| 0.855556
| 0.157965
| 0
| 0.615385
| 0
| 0
| 0.492013
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.307692
| true
| 0
| 0.307692
| 0
| 0.615385
| 0.307692
| 0
| 0
| 0
| null | 0
| 1
| 1
| 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
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 11
|
df6bf826b6d9df8779e9ccb5b33af2ac7fcba570
| 2,366
|
py
|
Python
|
tests/test_helpers.py
|
quakkels/rssdiscoveryengine
|
0f53c303ca98470f9a5d62652eaf9aae80001b93
|
[
"MIT"
] | 48
|
2020-01-22T13:33:07.000Z
|
2022-03-12T18:23:57.000Z
|
tests/test_helpers.py
|
quakkels/rssdiscoveryengine
|
0f53c303ca98470f9a5d62652eaf9aae80001b93
|
[
"MIT"
] | 3
|
2021-06-02T00:53:04.000Z
|
2022-03-30T10:06:49.000Z
|
tests/test_helpers.py
|
quakkels/rssdiscoveryengine
|
0f53c303ca98470f9a5d62652eaf9aae80001b93
|
[
"MIT"
] | 3
|
2021-10-24T01:27:08.000Z
|
2021-11-02T14:20:19.000Z
|
import pytest
import rssfinderasync.rssfinderhelpers as helpers
def test_build_possible_rss_url():
assert helpers.build_possible_rss_url('mailto:rdengine@example.invalid') is None
assert helpers.build_possible_rss_url('https://example.invalid/') == 'https://example.invalid/feed'
assert helpers.build_possible_rss_url('https://example.invalid/subpath/') == 'https://example.invalid/feed'
assert helpers.build_possible_rss_url('https://example.invalid/?q=5') == 'https://example.invalid/feed'
assert helpers.build_possible_rss_url('https://example.invalid/#fragment') == 'https://example.invalid/feed'
def test_add_protocol_urlprefix():
assert helpers.add_protocol_urlprefix('https://blog.example.com', '//blog.example.com/path/feed') == 'https://blog.example.com/path/feed'
assert helpers.add_protocol_urlprefix('https://blog.example.com/', '//blog.example.com/path/feed') == 'https://blog.example.com/path/feed'
assert helpers.add_protocol_urlprefix('https://blog.example.com/index.xyz', '//blog.example.com/path/feed') == 'https://blog.example.com/path/feed'
assert helpers.add_protocol_urlprefix('https://blog.example.com', '/path/feed') == 'https://blog.example.com/path/feed'
assert helpers.add_protocol_urlprefix('https://blog.example.com/index.xyz', '/path/feed') == 'https://blog.example.com/path/feed'
assert helpers.add_protocol_urlprefix('https://blog.example.com', 'path/feed') == 'https://blog.example.com/path/feed'
assert helpers.add_protocol_urlprefix('https://blog.example.com/slug/#asdf', 'path/feed') == 'https://blog.example.com/slug/path/feed'
assert helpers.add_protocol_urlprefix('https://blog.example.com?dsa=asd', 'path/feed') == 'https://blog.example.com/path/feed'
assert helpers.add_protocol_urlprefix('https://blog.example.com/index.xyz', 'path/feed') == 'https://blog.example.com/path/feed'
assert helpers.add_protocol_urlprefix('https://blog.example.com/index.xyz?sdf=dsa', 'path/feed') == 'https://blog.example.com/path/feed'
@pytest.mark.parametrize('content_type, expected', [
('application/rss', True),
('application/rss; charset=UTF-8', True),
('application/atom', True),
('application/xml', True),
('text/html', False),
])
def test_is_feed_content_type(content_type, expected):
assert helpers.is_feed_content_type(content_type) is expected
| 69.588235
| 151
| 0.735418
| 323
| 2,366
| 5.226006
| 0.164087
| 0.149882
| 0.190758
| 0.225118
| 0.777844
| 0.773104
| 0.704976
| 0.704976
| 0.684242
| 0.654028
| 0
| 0.00092
| 0.080727
| 2,366
| 33
| 152
| 71.69697
| 0.775172
| 0
| 0
| 0
| 0
| 0
| 0.494083
| 0.048605
| 0
| 0
| 0
| 0
| 0.571429
| 1
| 0.107143
| false
| 0
| 0.071429
| 0
| 0.178571
| 0
| 0
| 0
| 0
| null | 0
| 1
| 1
| 0
| 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
|
df70c6f25bb13e3782f0c0256cda34ade4a7da7e
| 34,720
|
py
|
Python
|
code/HP_GBT_regree.py
|
julightzhong10/kaggle_HousePrice
|
e53f6a37e65c4cf9dbcd46e3cde6488c4377882a
|
[
"MIT"
] | null | null | null |
code/HP_GBT_regree.py
|
julightzhong10/kaggle_HousePrice
|
e53f6a37e65c4cf9dbcd46e3cde6488c4377882a
|
[
"MIT"
] | null | null | null |
code/HP_GBT_regree.py
|
julightzhong10/kaggle_HousePrice
|
e53f6a37e65c4cf9dbcd46e3cde6488c4377882a
|
[
"MIT"
] | null | null | null |
import numpy as np
import pandas as pd
from sklearn import ensemble
from sklearn.preprocessing import MinMaxScaler
from sklearn.decomposition import PCA
import math
def main():
'''Management Data'''
data_path='../input/'
model_folder='../model/GBT/'
'''Management Data'''
'''Data prepare, rotate or shuffle'''
loss='ls'
TrainSet,ValSet,TestSet=data_preparer(data_path,1.0)
clf = ensemble.GradientBoostingRegressor(loss=loss,n_estimators=600,min_samples_leaf=7,max_depth=30,max_features='auto',criterion='mse',learning_rate=0.01)
#n_estimators=200,min_samples_leaf=7,max_depth=5,max_features='auto',oob_score=True :
clf.fit(TrainSet[0],TrainSet[1])
val_x=clf.predict(ValSet[0])
print(loss+':',math.sqrt(validation_accu(val_x,ValSet[1])))
data_Id=TestSet[1]
# print(TestSet[0])
data_label=clf.predict(TestSet[0])
data_result={'Id':data_Id,'SalePrice':data_label}
df = pd.DataFrame(data_result, columns= ['Id', 'SalePrice'])
export_csv = df.to_csv (model_folder+'result.csv', index = None, header=True)
def validation_accu(x,y):
true=0
for i in range(len(x)):
true=true+(math.log(x[i]+1)-math.log(y[i]+1))**2
return true/len(x)
def data_wash_train(train):
train.fillna(-1,inplace=True)
#print(np.array(train).tolist()[0])
train.loc[train['MSZoning']=='A','MSZoning']=0
train.loc[train['MSZoning']=='C','MSZoning']=1
train.loc[train['MSZoning']=='C (all)','MSZoning']=1
train.loc[train['MSZoning']=='FV','MSZoning']=2
train.loc[train['MSZoning']=='I','MSZoning']=3
train.loc[train['MSZoning']=='RH','MSZoning']=4
train.loc[train['MSZoning']=='RL','MSZoning']=5
train.loc[train['MSZoning']=='RP','MSZoning']=6
train.loc[train['MSZoning']=='RM','MSZoning']=7
train.loc[train['Street']=='Grvl','Street']=0
train.loc[train['Street']=='Pave','Street']=1
train.loc[train['Alley']=='Grvl','Alley']=0
train.loc[train['Alley']=='Pave','Alley']=1
#train.loc[train['Alley']=='NA','Alley']=2
train.loc[train['LotShape']=='Reg','LotShape']=0
train.loc[train['LotShape']=='IR1','LotShape']=1
train.loc[train['LotShape']=='IR2','LotShape']=2
train.loc[train['LotShape']=='IR3','LotShape']=3
train.loc[train['LandContour']=='Lvl','LandContour']=0
train.loc[train['LandContour']=='Bnk','LandContour']=1
train.loc[train['LandContour']=='HLS','LandContour']=2
train.loc[train['LandContour']=='Low','LandContour']=3
train.loc[train['Utilities']=='AllPub','Utilities']=0
train.loc[train['Utilities']=='NoSewr','Utilities']=1
train.loc[train['Utilities']=='NoSeWa','Utilities']=2
#train.loc[train['Utilities']=='ELO','Utilities']=3
train.loc[train['LotConfig']=='Inside','LotConfig']=0
train.loc[train['LotConfig']=='Corner','LotConfig']=1
train.loc[train['LotConfig']=='CulDSac','LotConfig']=2
train.loc[train['LotConfig']=='FR2','LotConfig']=3
train.loc[train['LotConfig']=='FR3','LotConfig']=4
train.loc[train['LandSlope']=='Gtl','LandSlope']=0
train.loc[train['LandSlope']=='Mod','LandSlope']=1
train.loc[train['LandSlope']=='Sev','LandSlope']=2
train.loc[train['Neighborhood']=='Blmngtn','Neighborhood']=0
train.loc[train['Neighborhood']=='Blueste','Neighborhood']=1
train.loc[train['Neighborhood']=='BrDale','Neighborhood']=2
train.loc[train['Neighborhood']=='ClearCr','Neighborhood']=3
train.loc[train['Neighborhood']=='CollgCr','Neighborhood']=4
train.loc[train['Neighborhood']=='Crawfor','Neighborhood']=5
train.loc[train['Neighborhood']=='Edwards','Neighborhood']=6
train.loc[train['Neighborhood']=='Gilbert','Neighborhood']=7
train.loc[train['Neighborhood']=='IDOTRR','Neighborhood']=8
train.loc[train['Neighborhood']=='MeadowV','Neighborhood']=9
train.loc[train['Neighborhood']=='Mitchel','Neighborhood']=10
train.loc[train['Neighborhood']=='Names','Neighborhood']=11
train.loc[train['Neighborhood']=='NAmes','Neighborhood']=11
train.loc[train['Neighborhood']=='NoRidge','Neighborhood']=12
train.loc[train['Neighborhood']=='NPkVill','Neighborhood']=13
train.loc[train['Neighborhood']=='NridgHt','Neighborhood']=14
train.loc[train['Neighborhood']=='NWAmes','Neighborhood']=15
train.loc[train['Neighborhood']=='OldTown','Neighborhood']=16
train.loc[train['Neighborhood']=='SWISU','Neighborhood']=17
train.loc[train['Neighborhood']=='Sawyer','Neighborhood']=18
train.loc[train['Neighborhood']=='SawyerW','Neighborhood']=19
train.loc[train['Neighborhood']=='Somerst','Neighborhood']=20
train.loc[train['Neighborhood']=='StoneBr','Neighborhood']=21
train.loc[train['Neighborhood']=='Timber','Neighborhood']=22
train.loc[train['Neighborhood']=='Veenker','Neighborhood']=23
train.loc[train['Neighborhood']=='BrkSide','Neighborhood']=23
train.loc[train['Condition1']=='Artery','Condition1']=0
train.loc[train['Condition1']=='Feedr','Condition1']=1
train.loc[train['Condition1']=='Norm','Condition1']=2
train.loc[train['Condition1']=='RRNn','Condition1']=3
train.loc[train['Condition1']=='RRAn','Condition1']=4
train.loc[train['Condition1']=='PosN','Condition1']=5
train.loc[train['Condition1']=='PosA','Condition1']=6
train.loc[train['Condition1']=='RRNe','Condition1']=7
train.loc[train['Condition1']=='RRAe','Condition1']=8
train.loc[train['Condition2']=='Artery','Condition2']=0
train.loc[train['Condition2']=='Feedr','Condition2']=0
train.loc[train['Condition2']=='Norm','Condition2']=0
train.loc[train['Condition2']=='RRNn','Condition2']=0
train.loc[train['Condition2']=='RRAn','Condition2']=0
train.loc[train['Condition2']=='PosN','Condition2']=0
train.loc[train['Condition2']=='PosA','Condition2']=0
train.loc[train['Condition2']=='RRNe','Condition2']=0
train.loc[train['Condition2']=='RRAe','Condition2']=0
train.loc[train['BldgType']=='1Fam','BldgType']=0
train.loc[train['BldgType']=='2FmCon','BldgType']=1
train.loc[train['BldgType']=='2fmCon','BldgType']=1
train.loc[train['BldgType']=='Duplex','BldgType']=2
train.loc[train['BldgType']=='TwnhsE','BldgType']=3
train.loc[train['BldgType']=='Twnhs','BldgType']=3
#train.loc[train['BldgType']=='TwnhsI','BldgType']=4
train.loc[train['HouseStyle']=='1Story','HouseStyle']=0
train.loc[train['HouseStyle']=='1.5Fin','HouseStyle']=1
train.loc[train['HouseStyle']=='1.5Unf','HouseStyle']=2
train.loc[train['HouseStyle']=='2Story','HouseStyle']=3
train.loc[train['HouseStyle']=='2.5Fin','HouseStyle']=4
train.loc[train['HouseStyle']=='2.5Unf','HouseStyle']=5
train.loc[train['HouseStyle']=='SFoyer','HouseStyle']=6
train.loc[train['HouseStyle']=='SLvl','HouseStyle']=7
train.loc[train['RoofStyle']=='Flat','RoofStyle']=0
train.loc[train['RoofStyle']=='Gable','RoofStyle']=1
train.loc[train['RoofStyle']=='Gambrel','RoofStyle']=2
train.loc[train['RoofStyle']=='Hip','RoofStyle']=3
train.loc[train['RoofStyle']=='Mansard','RoofStyle']=4
train.loc[train['RoofStyle']=='Shed','RoofStyle']=5
train.loc[train['RoofMatl']=='ClyTile','RoofMatl']=0
train.loc[train['RoofMatl']=='CompShg','RoofMatl']=1
train.loc[train['RoofMatl']=='Membran','RoofMatl']=2
train.loc[train['RoofMatl']=='Metal','RoofMatl']=3
train.loc[train['RoofMatl']=='Roll','RoofMatl']=4
train.loc[train['RoofMatl']=='Tar&Grv','RoofMatl']=5
train.loc[train['RoofMatl']=='WdShake','RoofMatl']=6
train.loc[train['RoofMatl']=='WdShngl','RoofMatl']=7
train.loc[train['Exterior1st']=='AsbShng','Exterior1st']=0
train.loc[train['Exterior1st']=='AsphShn','Exterior1st']=1
train.loc[train['Exterior1st']=='BrkComm','Exterior1st']=2
train.loc[train['Exterior1st']=='Brk Cmn','Exterior1st']=2
train.loc[train['Exterior1st']=='BrkFace','Exterior1st']=3
train.loc[train['Exterior1st']=='CBlock','Exterior1st']=4
train.loc[train['Exterior1st']=='HdBoard','Exterior1st']=5
train.loc[train['Exterior1st']=='ImStucc','Exterior1st']=6
train.loc[train['Exterior1st']=='MetalSd','Exterior1st']=7
train.loc[train['Exterior1st']=='Other','Exterior1st']=8
train.loc[train['Exterior1st']=='Plywood','Exterior1st']=9
train.loc[train['Exterior1st']=='PreCast','Exterior1st']=10
train.loc[train['Exterior1st']=='Stone','Exterior1st']=11
train.loc[train['Exterior1st']=='Stucco','Exterior1st']=12
train.loc[train['Exterior1st']=='VinylSd','Exterior1st']=13
train.loc[train['Exterior1st']=='Wd Sdng','Exterior1st']=14
train.loc[train['Exterior1st']=='WdShing','Exterior1st']=15
train.loc[train['Exterior1st']=='CemntBd','Exterior1st']=16
#train.loc[train['Exterior1st']=='Wd Shng','Exterior1st']=17
train.loc[train['Exterior2nd']=='AsbShng','Exterior2nd']=0
train.loc[train['Exterior2nd']=='AsphShn','Exterior2nd']=1
train.loc[train['Exterior2nd']=='BrkComm','Exterior2nd']=2
train.loc[train['Exterior2nd']=='Brk Cmn','Exterior2nd']=2
train.loc[train['Exterior2nd']=='BrkFace','Exterior2nd']=3
train.loc[train['Exterior2nd']=='CBlock','Exterior2nd']=4
train.loc[train['Exterior2nd']=='HdBoard','Exterior2nd']=5
train.loc[train['Exterior2nd']=='ImStucc','Exterior2nd']=6
train.loc[train['Exterior2nd']=='MetalSd','Exterior2nd']=7
train.loc[train['Exterior2nd']=='Other','Exterior2nd']=8
train.loc[train['Exterior2nd']=='Plywood','Exterior2nd']=9
train.loc[train['Exterior2nd']=='PreCast','Exterior2nd']=10
train.loc[train['Exterior2nd']=='Stone','Exterior2nd']=11
train.loc[train['Exterior2nd']=='Stucco','Exterior2nd']=12
train.loc[train['Exterior2nd']=='VinylSd','Exterior2nd']=13
train.loc[train['Exterior2nd']=='Wd Sdng','Exterior2nd']=14
train.loc[train['Exterior2nd']=='WdShing','Exterior2nd']=15
train.loc[train['Exterior2nd']=='CmentBd','Exterior2nd']=16
train.loc[train['Exterior2nd']=='Wd Shng','Exterior2nd']=17
train.loc[train['MasVnrType']=='BrkCmn','MasVnrType']=0
train.loc[train['MasVnrType']=='BrkFace','MasVnrType']=1
train.loc[train['MasVnrType']=='CBlock','MasVnrType']=2
train.loc[train['MasVnrType']=='None','MasVnrType']=3
train.loc[train['MasVnrType']=='Stone','MasVnrType']=4
train.loc[train['ExterQual']=='Ex','ExterQual']=0
train.loc[train['ExterQual']=='Gd','ExterQual']=1
train.loc[train['ExterQual']=='TA','ExterQual']=2
train.loc[train['ExterQual']=='Fa','ExterQual']=3
#train.loc[train['ExterQual']=='Po','ExterQual']=4
train.loc[train['ExterCond']=='Ex','ExterCond']=0
train.loc[train['ExterCond']=='Gd','ExterCond']=1
train.loc[train['ExterCond']=='TA','ExterCond']=2
train.loc[train['ExterCond']=='Fa','ExterCond']=3
train.loc[train['ExterCond']=='Po','ExterCond']=4
train.loc[train['Foundation']=='BrkTil','Foundation']=0
train.loc[train['Foundation']=='CBlock','Foundation']=1
train.loc[train['Foundation']=='PConc','Foundation']=2
train.loc[train['Foundation']=='Slab','Foundation']=3
train.loc[train['Foundation']=='Stone','Foundation']=4
train.loc[train['Foundation']=='Wood','Foundation']=5
train.loc[train['BsmtQual']=='Ex','BsmtQual']=0
train.loc[train['BsmtQual']=='Gd','BsmtQual']=1
train.loc[train['BsmtQual']=='TA','BsmtQual']=2
train.loc[train['BsmtQual']=='Fa','BsmtQual']=3
#train.loc[train['BsmtQual']=='Po','BsmtQual']=4
#train.loc[train['BsmtQual']=='NA','BsmtQual']=5
train.loc[train['BsmtCond']=='Ex','BsmtCond']=0
train.loc[train['BsmtCond']=='Gd','BsmtCond']=1
train.loc[train['BsmtCond']=='TA','BsmtCond']=2
train.loc[train['BsmtCond']=='Fa','BsmtCond']=3
train.loc[train['BsmtCond']=='Po','BsmtCond']=4
#train.loc[train['BsmtCond']=='NA','BsmtCond']=5
train.loc[train['BsmtExposure']=='Gd','BsmtExposure']=0
train.loc[train['BsmtExposure']=='Av','BsmtExposure']=1
train.loc[train['BsmtExposure']=='Mn','BsmtExposure']=2
train.loc[train['BsmtExposure']=='No','BsmtExposure']=3
#train.loc[train['BsmtExposure']=='NA','BsmtExposure']=4
train.loc[train['BsmtFinType1']=='GLQ','BsmtFinType1']=0
train.loc[train['BsmtFinType1']=='ALQ','BsmtFinType1']=1
train.loc[train['BsmtFinType1']=='BLQ','BsmtFinType1']=2
train.loc[train['BsmtFinType1']=='LwQ','BsmtFinType1']=3
train.loc[train['BsmtFinType1']=='Unf','BsmtFinType1']=4
train.loc[train['BsmtFinType1']=='Rec','BsmtFinType1']=5
#train.loc[train['BsmtFinType1']=='NA','BsmtFinType1']=5
train.loc[train['BsmtFinType2']=='GLQ','BsmtFinType2']=0
train.loc[train['BsmtFinType2']=='ALQ','BsmtFinType2']=1
train.loc[train['BsmtFinType2']=='BLQ','BsmtFinType2']=2
train.loc[train['BsmtFinType2']=='LwQ','BsmtFinType2']=3
train.loc[train['BsmtFinType2']=='Unf','BsmtFinType2']=4
train.loc[train['BsmtFinType2']=='Rec','BsmtFinType2']=5
#train.loc[train['BsmtFinType2']=='NA','BsmtFinType2']=5
train.loc[train['Heating']=='Floor','Heating']=0
train.loc[train['Heating']=='GasA','Heating']=1
train.loc[train['Heating']=='GasW','Heating']=2
train.loc[train['Heating']=='Grav','Heating']=3
train.loc[train['Heating']=='OthW','Heating']=4
train.loc[train['Heating']=='Wall','Heating']=5
train.loc[train['HeatingQC']=='Ex','HeatingQC']=0
train.loc[train['HeatingQC']=='Gd','HeatingQC']=1
train.loc[train['HeatingQC']=='TA','HeatingQC']=2
train.loc[train['HeatingQC']=='Fa','HeatingQC']=3
train.loc[train['HeatingQC']=='Po','HeatingQC']=4
train.loc[train['CentralAir']=='N','CentralAir']=0
train.loc[train['CentralAir']=='Y','CentralAir']=1
train.loc[train['Electrical']=='SBrkr','Electrical']=0
train.loc[train['Electrical']=='FuseA','Electrical']=1
train.loc[train['Electrical']=='FuseF','Electrical']=2
train.loc[train['Electrical']=='FuseP','Electrical']=3
train.loc[train['Electrical']=='Mix','Electrical']=4
train.loc[train['KitchenQual']=='Ex','KitchenQual']=0
train.loc[train['KitchenQual']=='Gd','KitchenQual']=1
train.loc[train['KitchenQual']=='TA','KitchenQual']=2
train.loc[train['KitchenQual']=='Fa','KitchenQual']=3
#train.loc[train['KitchenQual']=='Po','KitchenQual']=4
train.loc[train['Functional']=='Typ','Functional']=0
train.loc[train['Functional']=='Min1','Functional']=1
train.loc[train['Functional']=='Min2','Functional']=2
train.loc[train['Functional']=='Mod','Functional']=3
train.loc[train['Functional']=='Maj1','Functional']=4
train.loc[train['Functional']=='Maj2','Functional']=5
train.loc[train['Functional']=='Sev','Functional']=6
#train.loc[train['Functional']=='Sal','Functional']=7
train.loc[train['FireplaceQu']=='Ex','FireplaceQu']=0
train.loc[train['FireplaceQu']=='Gd','FireplaceQu']=1
train.loc[train['FireplaceQu']=='TA','FireplaceQu']=2
train.loc[train['FireplaceQu']=='Fa','FireplaceQu']=3
train.loc[train['FireplaceQu']=='Po','FireplaceQu']=4
#train.loc[train['FireplaceQu']=='NA','FireplaceQu']=5
train.loc[train['GarageType']=='2Types','GarageType']=0
train.loc[train['GarageType']=='Attchd','GarageType']=1
train.loc[train['GarageType']=='Basment','GarageType']=2
train.loc[train['GarageType']=='BuiltIn','GarageType']=3
train.loc[train['GarageType']=='CarPort','GarageType']=4
train.loc[train['GarageType']=='Detchd','GarageType']=5
#train.loc[train['GarageType']=='NA','GarageType']=6
train.loc[train['GarageFinish']=='Fin','GarageFinish']=0
train.loc[train['GarageFinish']=='RFn','GarageFinish']=1
train.loc[train['GarageFinish']=='Unf','GarageFinish']=3
#train.loc[train['GarageFinish']=='NA','GarageFinish']=4
train.loc[train['GarageQual']=='Ex','GarageQual']=0
train.loc[train['GarageQual']=='Gd','GarageQual']=1
train.loc[train['GarageQual']=='TA','GarageQual']=2
train.loc[train['GarageQual']=='Fa','GarageQual']=3
train.loc[train['GarageQual']=='Po','GarageQual']=4
#train.loc[train['GarageQual']=='NA','GarageQual']=5
train.loc[train['GarageCond']=='Ex','GarageCond']=0
train.loc[train['GarageCond']=='Gd','GarageCond']=1
train.loc[train['GarageCond']=='TA','GarageCond']=2
train.loc[train['GarageCond']=='Fa','GarageCond']=3
train.loc[train['GarageCond']=='Po','GarageCond']=4
#train.loc[train['GarageCond']=='NA','GarageCond']=5
train.loc[train['PavedDrive']=='Y','PavedDrive']=0
train.loc[train['PavedDrive']=='P','PavedDrive']=1
train.loc[train['PavedDrive']=='N','PavedDrive']=2
train.loc[train['PoolQC']=='Ex','PoolQC']=0
train.loc[train['PoolQC']=='Gd','PoolQC']=1
train.loc[train['PoolQC']=='TA','PoolQC']=2
train.loc[train['PoolQC']=='Fa','PoolQC']=3
#train.loc[train['PoolQC']=='NA','PoolQC']=4
train.loc[train['Fence']=='GdPrv','Fence']=0
train.loc[train['Fence']=='MnPrv','Fence']=1
train.loc[train['Fence']=='GdWo','Fence']=2
train.loc[train['Fence']=='MnWw','Fence']=3
#train.loc[train['Fence']=='NA','Fence']=4
train.loc[train['MiscFeature']=='Elev','MiscFeature']=0
train.loc[train['MiscFeature']=='Gar2','MiscFeature']=1
train.loc[train['MiscFeature']=='Othr','MiscFeature']=2
train.loc[train['MiscFeature']=='Shed','MiscFeature']=3
train.loc[train['MiscFeature']=='TenC','MiscFeature']=4
#train.loc[train['MiscFeature']=='NA','MiscFeature']=5
train.loc[train['SaleType']=='WD','SaleType']=0
train.loc[train['SaleType']=='CWD','SaleType']=1
train.loc[train['SaleType']=='VWD','SaleType']=2
train.loc[train['SaleType']=='New','SaleType']=3
train.loc[train['SaleType']=='COD','SaleType']=4
train.loc[train['SaleType']=='Con','SaleType']=5
train.loc[train['SaleType']=='ConLw','SaleType']=6
train.loc[train['SaleType']=='ConLI','SaleType']=7
train.loc[train['SaleType']=='ConLD','SaleType']=8
train.loc[train['SaleType']=='Oth','SaleType']=9
train.loc[train['SaleCondition']=='Normal','SaleCondition']=9
train.loc[train['SaleCondition']=='Abnorml','SaleCondition']=9
train.loc[train['SaleCondition']=='AdjLand','SaleCondition']=9
train.loc[train['SaleCondition']=='Alloca','SaleCondition']=9
train.loc[train['SaleCondition']=='Family','SaleCondition']=9
train.loc[train['SaleCondition']=='Partial','SaleCondition']=9
return train
def data_wash_test(train):
train.fillna(-1,inplace=True)
#print(np.array(train).tolist()[0])
train.loc[train['MSZoning']=='A','MSZoning']=0
train.loc[train['MSZoning']=='C','MSZoning']=1
train.loc[train['MSZoning']=='C (all)','MSZoning']=1
train.loc[train['MSZoning']=='FV','MSZoning']=2
train.loc[train['MSZoning']=='I','MSZoning']=3
train.loc[train['MSZoning']=='RH','MSZoning']=4
train.loc[train['MSZoning']=='RL','MSZoning']=5
train.loc[train['MSZoning']=='RP','MSZoning']=6
train.loc[train['MSZoning']=='RM','MSZoning']=7
train.loc[train['Street']=='Grvl','Street']=0
train.loc[train['Street']=='Pave','Street']=1
train.loc[train['Alley']=='Grvl','Alley']=0
train.loc[train['Alley']=='Pave','Alley']=1
#train.loc[train['Alley']=='NA','Alley']=2
train.loc[train['LotShape']=='Reg','LotShape']=0
train.loc[train['LotShape']=='IR1','LotShape']=1
train.loc[train['LotShape']=='IR2','LotShape']=2
train.loc[train['LotShape']=='IR3','LotShape']=3
train.loc[train['LandContour']=='Lvl','LandContour']=0
train.loc[train['LandContour']=='Bnk','LandContour']=1
train.loc[train['LandContour']=='HLS','LandContour']=2
train.loc[train['LandContour']=='Low','LandContour']=3
train.loc[train['Utilities']=='AllPub','Utilities']=0
#train.loc[train['Utilities']=='NoSewr','Utilities']=1
#train.loc[train['Utilities']=='NoSeWa','Utilities']=2
#train.loc[train['Utilities']=='ELO','Utilities']=3
train.loc[train['LotConfig']=='Inside','LotConfig']=0
train.loc[train['LotConfig']=='Corner','LotConfig']=1
train.loc[train['LotConfig']=='CulDSac','LotConfig']=2
train.loc[train['LotConfig']=='FR2','LotConfig']=3
train.loc[train['LotConfig']=='FR3','LotConfig']=4
train.loc[train['LandSlope']=='Gtl','LandSlope']=0
train.loc[train['LandSlope']=='Mod','LandSlope']=1
train.loc[train['LandSlope']=='Sev','LandSlope']=2
train.loc[train['Neighborhood']=='Blmngtn','Neighborhood']=0
train.loc[train['Neighborhood']=='Blueste','Neighborhood']=1
train.loc[train['Neighborhood']=='BrDale','Neighborhood']=2
train.loc[train['Neighborhood']=='ClearCr','Neighborhood']=3
train.loc[train['Neighborhood']=='CollgCr','Neighborhood']=4
train.loc[train['Neighborhood']=='Crawfor','Neighborhood']=5
train.loc[train['Neighborhood']=='Edwards','Neighborhood']=6
train.loc[train['Neighborhood']=='Gilbert','Neighborhood']=7
train.loc[train['Neighborhood']=='IDOTRR','Neighborhood']=8
train.loc[train['Neighborhood']=='MeadowV','Neighborhood']=9
train.loc[train['Neighborhood']=='Mitchel','Neighborhood']=10
train.loc[train['Neighborhood']=='Names','Neighborhood']=11
train.loc[train['Neighborhood']=='NAmes','Neighborhood']=11
train.loc[train['Neighborhood']=='NoRidge','Neighborhood']=12
train.loc[train['Neighborhood']=='NPkVill','Neighborhood']=13
train.loc[train['Neighborhood']=='NridgHt','Neighborhood']=14
train.loc[train['Neighborhood']=='NWAmes','Neighborhood']=15
train.loc[train['Neighborhood']=='OldTown','Neighborhood']=16
train.loc[train['Neighborhood']=='SWISU','Neighborhood']=17
train.loc[train['Neighborhood']=='Sawyer','Neighborhood']=18
train.loc[train['Neighborhood']=='SawyerW','Neighborhood']=19
train.loc[train['Neighborhood']=='Somerst','Neighborhood']=20
train.loc[train['Neighborhood']=='StoneBr','Neighborhood']=21
train.loc[train['Neighborhood']=='Timber','Neighborhood']=22
train.loc[train['Neighborhood']=='Veenker','Neighborhood']=23
train.loc[train['Neighborhood']=='BrkSide','Neighborhood']=23
train.loc[train['Condition1']=='Artery','Condition1']=0
train.loc[train['Condition1']=='Feedr','Condition1']=1
train.loc[train['Condition1']=='Norm','Condition1']=2
train.loc[train['Condition1']=='RRNn','Condition1']=3
train.loc[train['Condition1']=='RRAn','Condition1']=4
train.loc[train['Condition1']=='PosN','Condition1']=5
train.loc[train['Condition1']=='PosA','Condition1']=6
train.loc[train['Condition1']=='RRNe','Condition1']=7
train.loc[train['Condition1']=='RRAe','Condition1']=8
train.loc[train['Condition2']=='Artery','Condition2']=0
train.loc[train['Condition2']=='Feedr','Condition2']=0
train.loc[train['Condition2']=='Norm','Condition2']=0
train.loc[train['Condition2']=='RRNn','Condition2']=0
train.loc[train['Condition2']=='RRAn','Condition2']=0
train.loc[train['Condition2']=='PosN','Condition2']=0
train.loc[train['Condition2']=='PosA','Condition2']=0
#train.loc[train['Condition2']=='RRNe','Condition2']=0
#train.loc[train['Condition2']=='RRAe','Condition2']=0
train.loc[train['BldgType']=='1Fam','BldgType']=0
train.loc[train['BldgType']=='2FmCon','BldgType']=1
train.loc[train['BldgType']=='2fmCon','BldgType']=1
train.loc[train['BldgType']=='Duplex','BldgType']=2
train.loc[train['BldgType']=='TwnhsE','BldgType']=3
train.loc[train['BldgType']=='Twnhs','BldgType']=3
#train.loc[train['BldgType']=='TwnhsI','BldgType']=4
train.loc[train['HouseStyle']=='1Story','HouseStyle']=0
train.loc[train['HouseStyle']=='1.5Fin','HouseStyle']=1
train.loc[train['HouseStyle']=='1.5Unf','HouseStyle']=2
train.loc[train['HouseStyle']=='2Story','HouseStyle']=3
train.loc[train['HouseStyle']=='2.5Fin','HouseStyle']=4
train.loc[train['HouseStyle']=='2.5Unf','HouseStyle']=5
train.loc[train['HouseStyle']=='SFoyer','HouseStyle']=6
train.loc[train['HouseStyle']=='SLvl','HouseStyle']=7
train.loc[train['RoofStyle']=='Flat','RoofStyle']=0
train.loc[train['RoofStyle']=='Gable','RoofStyle']=1
train.loc[train['RoofStyle']=='Gambrel','RoofStyle']=2
train.loc[train['RoofStyle']=='Hip','RoofStyle']=3
train.loc[train['RoofStyle']=='Mansard','RoofStyle']=4
train.loc[train['RoofStyle']=='Shed','RoofStyle']=5
train.loc[train['RoofMatl']=='ClyTile','RoofMatl']=0
train.loc[train['RoofMatl']=='CompShg','RoofMatl']=1
train.loc[train['RoofMatl']=='Membran','RoofMatl']=2
train.loc[train['RoofMatl']=='Metal','RoofMatl']=3
train.loc[train['RoofMatl']=='Roll','RoofMatl']=4
train.loc[train['RoofMatl']=='Tar&Grv','RoofMatl']=5
train.loc[train['RoofMatl']=='WdShake','RoofMatl']=6
train.loc[train['RoofMatl']=='WdShngl','RoofMatl']=7
train.loc[train['Exterior1st']=='AsbShng','Exterior1st']=0
train.loc[train['Exterior1st']=='AsphShn','Exterior1st']=1
train.loc[train['Exterior1st']=='BrkComm','Exterior1st']=2
train.loc[train['Exterior1st']=='Brk Cmn','Exterior1st']=2
train.loc[train['Exterior1st']=='BrkFace','Exterior1st']=3
train.loc[train['Exterior1st']=='CBlock','Exterior1st']=4
train.loc[train['Exterior1st']=='HdBoard','Exterior1st']=5
train.loc[train['Exterior1st']=='ImStucc','Exterior1st']=6
train.loc[train['Exterior1st']=='MetalSd','Exterior1st']=7
train.loc[train['Exterior1st']=='Other','Exterior1st']=8
train.loc[train['Exterior1st']=='Plywood','Exterior1st']=9
train.loc[train['Exterior1st']=='PreCast','Exterior1st']=10
train.loc[train['Exterior1st']=='Stone','Exterior1st']=11
train.loc[train['Exterior1st']=='Stucco','Exterior1st']=12
train.loc[train['Exterior1st']=='VinylSd','Exterior1st']=13
train.loc[train['Exterior1st']=='Wd Sdng','Exterior1st']=14
train.loc[train['Exterior1st']=='WdShing','Exterior1st']=15
train.loc[train['Exterior1st']=='CemntBd','Exterior1st']=16
#train.loc[train['Exterior1st']=='Wd Shng','Exterior1st']=17
train.loc[train['Exterior2nd']=='AsbShng','Exterior2nd']=0
train.loc[train['Exterior2nd']=='AsphShn','Exterior2nd']=1
train.loc[train['Exterior2nd']=='BrkComm','Exterior2nd']=2
train.loc[train['Exterior2nd']=='Brk Cmn','Exterior2nd']=2
train.loc[train['Exterior2nd']=='BrkFace','Exterior2nd']=3
train.loc[train['Exterior2nd']=='CBlock','Exterior2nd']=4
train.loc[train['Exterior2nd']=='HdBoard','Exterior2nd']=5
train.loc[train['Exterior2nd']=='ImStucc','Exterior2nd']=6
train.loc[train['Exterior2nd']=='MetalSd','Exterior2nd']=7
train.loc[train['Exterior2nd']=='Other','Exterior2nd']=8
train.loc[train['Exterior2nd']=='Plywood','Exterior2nd']=9
train.loc[train['Exterior2nd']=='PreCast','Exterior2nd']=10
train.loc[train['Exterior2nd']=='Stone','Exterior2nd']=11
train.loc[train['Exterior2nd']=='Stucco','Exterior2nd']=12
train.loc[train['Exterior2nd']=='VinylSd','Exterior2nd']=13
train.loc[train['Exterior2nd']=='Wd Sdng','Exterior2nd']=14
train.loc[train['Exterior2nd']=='WdShing','Exterior2nd']=15
train.loc[train['Exterior2nd']=='CmentBd','Exterior2nd']=16
train.loc[train['Exterior2nd']=='Wd Shng','Exterior2nd']=17
train.loc[train['MasVnrType']=='BrkCmn','MasVnrType']=0
train.loc[train['MasVnrType']=='BrkFace','MasVnrType']=1
train.loc[train['MasVnrType']=='CBlock','MasVnrType']=2
train.loc[train['MasVnrType']=='None','MasVnrType']=3
train.loc[train['MasVnrType']=='Stone','MasVnrType']=4
train.loc[train['ExterQual']=='Ex','ExterQual']=0
train.loc[train['ExterQual']=='Gd','ExterQual']=1
train.loc[train['ExterQual']=='TA','ExterQual']=2
train.loc[train['ExterQual']=='Fa','ExterQual']=3
#train.loc[train['ExterQual']=='Po','ExterQual']=4
train.loc[train['ExterCond']=='Ex','ExterCond']=0
train.loc[train['ExterCond']=='Gd','ExterCond']=1
train.loc[train['ExterCond']=='TA','ExterCond']=2
train.loc[train['ExterCond']=='Fa','ExterCond']=3
train.loc[train['ExterCond']=='Po','ExterCond']=4
train.loc[train['Foundation']=='BrkTil','Foundation']=0
train.loc[train['Foundation']=='CBlock','Foundation']=1
train.loc[train['Foundation']=='PConc','Foundation']=2
train.loc[train['Foundation']=='Slab','Foundation']=3
train.loc[train['Foundation']=='Stone','Foundation']=4
train.loc[train['Foundation']=='Wood','Foundation']=5
train.loc[train['BsmtQual']=='Ex','BsmtQual']=0
train.loc[train['BsmtQual']=='Gd','BsmtQual']=1
train.loc[train['BsmtQual']=='TA','BsmtQual']=2
train.loc[train['BsmtQual']=='Fa','BsmtQual']=3
#train.loc[train['BsmtQual']=='Po','BsmtQual']=4
#train.loc[train['BsmtQual']=='NA','BsmtQual']=5
train.loc[train['BsmtCond']=='Ex','BsmtCond']=0
train.loc[train['BsmtCond']=='Gd','BsmtCond']=1
train.loc[train['BsmtCond']=='TA','BsmtCond']=2
train.loc[train['BsmtCond']=='Fa','BsmtCond']=3
train.loc[train['BsmtCond']=='Po','BsmtCond']=4
#train.loc[train['BsmtCond']=='NA','BsmtCond']=5
train.loc[train['BsmtExposure']=='Gd','BsmtExposure']=0
train.loc[train['BsmtExposure']=='Av','BsmtExposure']=1
train.loc[train['BsmtExposure']=='Mn','BsmtExposure']=2
train.loc[train['BsmtExposure']=='No','BsmtExposure']=3
#train.loc[train['BsmtExposure']=='NA','BsmtExposure']=4
train.loc[train['BsmtFinType1']=='GLQ','BsmtFinType1']=0
train.loc[train['BsmtFinType1']=='ALQ','BsmtFinType1']=1
train.loc[train['BsmtFinType1']=='BLQ','BsmtFinType1']=2
train.loc[train['BsmtFinType1']=='LwQ','BsmtFinType1']=3
train.loc[train['BsmtFinType1']=='Unf','BsmtFinType1']=4
train.loc[train['BsmtFinType1']=='Rec','BsmtFinType1']=5
#train.loc[train['BsmtFinType1']=='NA','BsmtFinType1']=5
train.loc[train['BsmtFinType2']=='GLQ','BsmtFinType2']=0
train.loc[train['BsmtFinType2']=='ALQ','BsmtFinType2']=1
train.loc[train['BsmtFinType2']=='BLQ','BsmtFinType2']=2
train.loc[train['BsmtFinType2']=='LwQ','BsmtFinType2']=3
train.loc[train['BsmtFinType2']=='Unf','BsmtFinType2']=4
train.loc[train['BsmtFinType2']=='Rec','BsmtFinType2']=5
#train.loc[train['BsmtFinType2']=='NA','BsmtFinType2']=5
train.loc[train['Heating']=='Floor','Heating']=0
train.loc[train['Heating']=='GasA','Heating']=1
train.loc[train['Heating']=='GasW','Heating']=2
train.loc[train['Heating']=='Grav','Heating']=3
train.loc[train['Heating']=='OthW','Heating']=4
train.loc[train['Heating']=='Wall','Heating']=5
train.loc[train['HeatingQC']=='Ex','HeatingQC']=0
train.loc[train['HeatingQC']=='Gd','HeatingQC']=1
train.loc[train['HeatingQC']=='TA','HeatingQC']=2
train.loc[train['HeatingQC']=='Fa','HeatingQC']=3
train.loc[train['HeatingQC']=='Po','HeatingQC']=4
train.loc[train['CentralAir']=='N','CentralAir']=0
train.loc[train['CentralAir']=='Y','CentralAir']=1
train.loc[train['Electrical']=='SBrkr','Electrical']=0
train.loc[train['Electrical']=='FuseA','Electrical']=1
train.loc[train['Electrical']=='FuseF','Electrical']=2
train.loc[train['Electrical']=='FuseP','Electrical']=3
#train.loc[train['Electrical']=='Mix','Electrical']=4
train.loc[train['KitchenQual']=='Ex','KitchenQual']=0
train.loc[train['KitchenQual']=='Gd','KitchenQual']=1
train.loc[train['KitchenQual']=='TA','KitchenQual']=2
train.loc[train['KitchenQual']=='Fa','KitchenQual']=3
#train.loc[train['KitchenQual']=='Po','KitchenQual']=4
train.loc[train['Functional']=='Typ','Functional']=0
train.loc[train['Functional']=='Min1','Functional']=1
train.loc[train['Functional']=='Min2','Functional']=2
train.loc[train['Functional']=='Mod','Functional']=3
train.loc[train['Functional']=='Maj1','Functional']=4
train.loc[train['Functional']=='Maj2','Functional']=5
train.loc[train['Functional']=='Sev','Functional']=6
#train.loc[train['Functional']=='Sal','Functional']=7
train.loc[train['FireplaceQu']=='Ex','FireplaceQu']=0
train.loc[train['FireplaceQu']=='Gd','FireplaceQu']=1
train.loc[train['FireplaceQu']=='TA','FireplaceQu']=2
train.loc[train['FireplaceQu']=='Fa','FireplaceQu']=3
train.loc[train['FireplaceQu']=='Po','FireplaceQu']=4
#train.loc[train['FireplaceQu']=='NA','FireplaceQu']=5
train.loc[train['GarageType']=='2Types','GarageType']=0
train.loc[train['GarageType']=='Attchd','GarageType']=1
train.loc[train['GarageType']=='Basment','GarageType']=2
train.loc[train['GarageType']=='BuiltIn','GarageType']=3
train.loc[train['GarageType']=='CarPort','GarageType']=4
train.loc[train['GarageType']=='Detchd','GarageType']=5
#train.loc[train['GarageType']=='NA','GarageType']=6
train.loc[train['GarageFinish']=='Fin','GarageFinish']=0
train.loc[train['GarageFinish']=='RFn','GarageFinish']=1
train.loc[train['GarageFinish']=='Unf','GarageFinish']=3
#train.loc[train['GarageFinish']=='NA','GarageFinish']=4
train.loc[train['GarageQual']=='Ex','GarageQual']=0
train.loc[train['GarageQual']=='Gd','GarageQual']=1
train.loc[train['GarageQual']=='TA','GarageQual']=2
train.loc[train['GarageQual']=='Fa','GarageQual']=3
train.loc[train['GarageQual']=='Po','GarageQual']=4
#train.loc[train['GarageQual']=='NA','GarageQual']=5
train.loc[train['GarageCond']=='Ex','GarageCond']=0
train.loc[train['GarageCond']=='Gd','GarageCond']=1
train.loc[train['GarageCond']=='TA','GarageCond']=2
train.loc[train['GarageCond']=='Fa','GarageCond']=3
train.loc[train['GarageCond']=='Po','GarageCond']=4
#train.loc[train['GarageCond']=='NA','GarageCond']=5
train.loc[train['PavedDrive']=='Y','PavedDrive']=0
train.loc[train['PavedDrive']=='P','PavedDrive']=1
train.loc[train['PavedDrive']=='N','PavedDrive']=2
train.loc[train['PoolQC']=='Ex','PoolQC']=0
train.loc[train['PoolQC']=='Gd','PoolQC']=1
#train.loc[train['PoolQC']=='TA','PoolQC']=2
#train.loc[train['PoolQC']=='Fa','PoolQC']=3
#train.loc[train['PoolQC']=='NA','PoolQC']=4
train.loc[train['Fence']=='GdPrv','Fence']=0
train.loc[train['Fence']=='MnPrv','Fence']=1
train.loc[train['Fence']=='GdWo','Fence']=2
train.loc[train['Fence']=='MnWw','Fence']=3
#train.loc[train['Fence']=='NA','Fence']=4
train.loc[train['MiscFeature']=='Elev','MiscFeature']=0
train.loc[train['MiscFeature']=='Gar2','MiscFeature']=1
train.loc[train['MiscFeature']=='Othr','MiscFeature']=2
train.loc[train['MiscFeature']=='Shed','MiscFeature']=3
#train.loc[train['MiscFeature']=='TenC','MiscFeature']=4
#train.loc[train['MiscFeature']=='NA','MiscFeature']=5
train.loc[train['SaleType']=='WD','SaleType']=0
train.loc[train['SaleType']=='CWD','SaleType']=1
train.loc[train['SaleType']=='VWD','SaleType']=2
train.loc[train['SaleType']=='New','SaleType']=3
train.loc[train['SaleType']=='COD','SaleType']=4
train.loc[train['SaleType']=='Con','SaleType']=5
train.loc[train['SaleType']=='ConLw','SaleType']=6
train.loc[train['SaleType']=='ConLI','SaleType']=7
train.loc[train['SaleType']=='ConLD','SaleType']=8
train.loc[train['SaleType']=='Oth','SaleType']=9
train.loc[train['SaleCondition']=='Normal','SaleCondition']=9
train.loc[train['SaleCondition']=='Abnorml','SaleCondition']=9
train.loc[train['SaleCondition']=='AdjLand','SaleCondition']=9
train.loc[train['SaleCondition']=='Alloca','SaleCondition']=9
train.loc[train['SaleCondition']=='Family','SaleCondition']=9
train.loc[train['SaleCondition']=='Partial','SaleCondition']=9
return train
def data_preparer(path,train_perc):
'''prepare data before training'''
'''train set processing'''
pca = PCA(n_components=40)
ss = MinMaxScaler()
train = pd.read_csv(path+"train.csv", index_col = "Id").sample(frac=1)
label=train.pop('SalePrice') #target
train=data_wash_train(train)
#train = ss.fit_transform(train,label)
#train = pca.fit_transform(train)
train_x=np.array(train).tolist()
train_y=np.array(label).tolist()
divide=int(len(train_x)*train_perc)
TrainSet=[train_x[0:divide],train_y[0:divide]]
if train_perc==1.0:
divide=int(len(train_x)*0.7)
ValSet=[train_x[divide:-1],train_y[divide:-1]]
#print(len(TrainSet))
'''test set processing'''
test = pd.read_csv(path+"test.csv")
pid=np.array(test.pop('Id')).tolist()
test=data_wash_test(test)
#test = ss.transform(test)
#test = pca.transform(test)
test_x=np.array(test).tolist() # train input in list
TestSet=[test_x,pid]
return TrainSet,ValSet,TestSet
if __name__ == '__main__':
#data_preparer('../input/',0.5)
main()
| 45.925926
| 156
| 0.690006
| 4,498
| 34,720
| 5.311472
| 0.08048
| 0.195555
| 0.317777
| 0.059771
| 0.94094
| 0.937926
| 0.936001
| 0.936001
| 0.936001
| 0.936001
| 0
| 0.030719
| 0.043664
| 34,720
| 756
| 157
| 45.925926
| 0.688803
| 0.084505
| 0
| 0.904437
| 0
| 0
| 0.412612
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.008532
| false
| 0
| 0.010239
| 0
| 0.025597
| 0.001706
| 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
|
10c776607ad24bfd2ab3c840aee41eac6ee7194a
| 8,049
|
py
|
Python
|
devel/lib/python2.7/dist-packages/simple_arm/srv/_GoToPosition.py
|
NeilNie/LearnROS
|
89a7b6d0a8cae245ec693a23e14f472b59210f32
|
[
"MIT"
] | null | null | null |
devel/lib/python2.7/dist-packages/simple_arm/srv/_GoToPosition.py
|
NeilNie/LearnROS
|
89a7b6d0a8cae245ec693a23e14f472b59210f32
|
[
"MIT"
] | null | null | null |
devel/lib/python2.7/dist-packages/simple_arm/srv/_GoToPosition.py
|
NeilNie/LearnROS
|
89a7b6d0a8cae245ec693a23e14f472b59210f32
|
[
"MIT"
] | null | null | null |
# This Python file uses the following encoding: utf-8
"""autogenerated by genpy from simple_arm/GoToPositionRequest.msg. Do not edit."""
import sys
python3 = True if sys.hexversion > 0x03000000 else False
import genpy
import struct
class GoToPositionRequest(genpy.Message):
_md5sum = "243293dc5d540de7ec323fc657126846"
_type = "simple_arm/GoToPositionRequest"
_has_header = False #flag to mark the presence of a Header object
_full_text = """float64 joint_1
float64 joint_2
"""
__slots__ = ['joint_1','joint_2']
_slot_types = ['float64','float64']
def __init__(self, *args, **kwds):
"""
Constructor. Any message fields that are implicitly/explicitly
set to None will be assigned a default value. The recommend
use is keyword arguments as this is more robust to future message
changes. You cannot mix in-order arguments and keyword arguments.
The available fields are:
joint_1,joint_2
:param args: complete set of field values, in .msg order
:param kwds: use keyword arguments corresponding to message field names
to set specific fields.
"""
if args or kwds:
super(GoToPositionRequest, self).__init__(*args, **kwds)
#message fields cannot be None, assign default values for those that are
if self.joint_1 is None:
self.joint_1 = 0.
if self.joint_2 is None:
self.joint_2 = 0.
else:
self.joint_1 = 0.
self.joint_2 = 0.
def _get_types(self):
"""
internal API method
"""
return self._slot_types
def serialize(self, buff):
"""
serialize message into buffer
:param buff: buffer, ``StringIO``
"""
try:
_x = self
buff.write(_get_struct_2d().pack(_x.joint_1, _x.joint_2))
except struct.error as se: self._check_types(struct.error("%s: '%s' when writing '%s'" % (type(se), str(se), str(locals().get('_x', self)))))
except TypeError as te: self._check_types(ValueError("%s: '%s' when writing '%s'" % (type(te), str(te), str(locals().get('_x', self)))))
def deserialize(self, str):
"""
unpack serialized message in str into this message instance
:param str: byte array of serialized message, ``str``
"""
try:
end = 0
_x = self
start = end
end += 16
(_x.joint_1, _x.joint_2,) = _get_struct_2d().unpack(str[start:end])
return self
except struct.error as e:
raise genpy.DeserializationError(e) #most likely buffer underfill
def serialize_numpy(self, buff, numpy):
"""
serialize message with numpy array types into buffer
:param buff: buffer, ``StringIO``
:param numpy: numpy python module
"""
try:
_x = self
buff.write(_get_struct_2d().pack(_x.joint_1, _x.joint_2))
except struct.error as se: self._check_types(struct.error("%s: '%s' when writing '%s'" % (type(se), str(se), str(locals().get('_x', self)))))
except TypeError as te: self._check_types(ValueError("%s: '%s' when writing '%s'" % (type(te), str(te), str(locals().get('_x', self)))))
def deserialize_numpy(self, str, numpy):
"""
unpack serialized message in str into this message instance using numpy for array types
:param str: byte array of serialized message, ``str``
:param numpy: numpy python module
"""
try:
end = 0
_x = self
start = end
end += 16
(_x.joint_1, _x.joint_2,) = _get_struct_2d().unpack(str[start:end])
return self
except struct.error as e:
raise genpy.DeserializationError(e) #most likely buffer underfill
_struct_I = genpy.struct_I
def _get_struct_I():
global _struct_I
return _struct_I
_struct_2d = None
def _get_struct_2d():
global _struct_2d
if _struct_2d is None:
_struct_2d = struct.Struct("<2d")
return _struct_2d
# This Python file uses the following encoding: utf-8
"""autogenerated by genpy from simple_arm/GoToPositionResponse.msg. Do not edit."""
import sys
python3 = True if sys.hexversion > 0x03000000 else False
import genpy
import struct
import genpy
class GoToPositionResponse(genpy.Message):
_md5sum = "5cf2a912daf51cc83cb45e261a19d4f1"
_type = "simple_arm/GoToPositionResponse"
_has_header = False #flag to mark the presence of a Header object
_full_text = """duration time_elapsed
"""
__slots__ = ['time_elapsed']
_slot_types = ['duration']
def __init__(self, *args, **kwds):
"""
Constructor. Any message fields that are implicitly/explicitly
set to None will be assigned a default value. The recommend
use is keyword arguments as this is more robust to future message
changes. You cannot mix in-order arguments and keyword arguments.
The available fields are:
time_elapsed
:param args: complete set of field values, in .msg order
:param kwds: use keyword arguments corresponding to message field names
to set specific fields.
"""
if args or kwds:
super(GoToPositionResponse, self).__init__(*args, **kwds)
#message fields cannot be None, assign default values for those that are
if self.time_elapsed is None:
self.time_elapsed = genpy.Duration()
else:
self.time_elapsed = genpy.Duration()
def _get_types(self):
"""
internal API method
"""
return self._slot_types
def serialize(self, buff):
"""
serialize message into buffer
:param buff: buffer, ``StringIO``
"""
try:
_x = self
buff.write(_get_struct_2i().pack(_x.time_elapsed.secs, _x.time_elapsed.nsecs))
except struct.error as se: self._check_types(struct.error("%s: '%s' when writing '%s'" % (type(se), str(se), str(locals().get('_x', self)))))
except TypeError as te: self._check_types(ValueError("%s: '%s' when writing '%s'" % (type(te), str(te), str(locals().get('_x', self)))))
def deserialize(self, str):
"""
unpack serialized message in str into this message instance
:param str: byte array of serialized message, ``str``
"""
try:
if self.time_elapsed is None:
self.time_elapsed = genpy.Duration()
end = 0
_x = self
start = end
end += 8
(_x.time_elapsed.secs, _x.time_elapsed.nsecs,) = _get_struct_2i().unpack(str[start:end])
self.time_elapsed.canon()
return self
except struct.error as e:
raise genpy.DeserializationError(e) #most likely buffer underfill
def serialize_numpy(self, buff, numpy):
"""
serialize message with numpy array types into buffer
:param buff: buffer, ``StringIO``
:param numpy: numpy python module
"""
try:
_x = self
buff.write(_get_struct_2i().pack(_x.time_elapsed.secs, _x.time_elapsed.nsecs))
except struct.error as se: self._check_types(struct.error("%s: '%s' when writing '%s'" % (type(se), str(se), str(locals().get('_x', self)))))
except TypeError as te: self._check_types(ValueError("%s: '%s' when writing '%s'" % (type(te), str(te), str(locals().get('_x', self)))))
def deserialize_numpy(self, str, numpy):
"""
unpack serialized message in str into this message instance using numpy for array types
:param str: byte array of serialized message, ``str``
:param numpy: numpy python module
"""
try:
if self.time_elapsed is None:
self.time_elapsed = genpy.Duration()
end = 0
_x = self
start = end
end += 8
(_x.time_elapsed.secs, _x.time_elapsed.nsecs,) = _get_struct_2i().unpack(str[start:end])
self.time_elapsed.canon()
return self
except struct.error as e:
raise genpy.DeserializationError(e) #most likely buffer underfill
_struct_I = genpy.struct_I
def _get_struct_I():
global _struct_I
return _struct_I
_struct_2i = None
def _get_struct_2i():
global _struct_2i
if _struct_2i is None:
_struct_2i = struct.Struct("<2i")
return _struct_2i
class GoToPosition(object):
_type = 'simple_arm/GoToPosition'
_md5sum = 'fc4e1ffd0bd5c9cc8c021e351562f1a8'
_request_class = GoToPositionRequest
_response_class = GoToPositionResponse
| 33.962025
| 145
| 0.672382
| 1,107
| 8,049
| 4.68925
| 0.147245
| 0.042381
| 0.026007
| 0.029281
| 0.83664
| 0.831246
| 0.831246
| 0.831246
| 0.831246
| 0.831246
| 0
| 0.023278
| 0.21543
| 8,049
| 236
| 146
| 34.105932
| 0.798733
| 0.300907
| 0
| 0.760563
| 1
| 0
| 0.097766
| 0.034371
| 0
| 0
| 0.003819
| 0
| 0
| 1
| 0.112676
| false
| 0
| 0.049296
| 0
| 0.366197
| 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
|
10cade4e5d1d4d9a6436048bbb1e437ce46230e2
| 46
|
py
|
Python
|
program/a.py
|
mjskt1/test1
|
12ccbc46ba1042287465b7ea3a016494717e9b61
|
[
"MIT"
] | null | null | null |
program/a.py
|
mjskt1/test1
|
12ccbc46ba1042287465b7ea3a016494717e9b61
|
[
"MIT"
] | null | null | null |
program/a.py
|
mjskt1/test1
|
12ccbc46ba1042287465b7ea3a016494717e9b61
|
[
"MIT"
] | null | null | null |
print(123456)
print12345678
priasfasfdsfasgas
| 11.5
| 17
| 0.891304
| 4
| 46
| 10.25
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.325581
| 0.065217
| 46
| 3
| 18
| 15.333333
| 0.627907
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0
| 0
| 0
| 0.666667
| 1
| 1
| 1
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 1
|
0
| 7
|
8016a255d465135c59765ab7b5eff56364ae219b
| 9,783
|
py
|
Python
|
tests/components/nina/test_binary_sensor.py
|
GuyKh/core
|
859bcb6eb4dbb9a8b87b6e4e888e074502db5df1
|
[
"Apache-2.0"
] | 6
|
2020-07-07T21:51:24.000Z
|
2022-02-11T14:27:44.000Z
|
tests/components/nina/test_binary_sensor.py
|
GuyKh/core
|
859bcb6eb4dbb9a8b87b6e4e888e074502db5df1
|
[
"Apache-2.0"
] | 100
|
2020-06-17T22:22:41.000Z
|
2022-03-31T06:24:19.000Z
|
tests/components/nina/test_binary_sensor.py
|
GuyKh/core
|
859bcb6eb4dbb9a8b87b6e4e888e074502db5df1
|
[
"Apache-2.0"
] | 8
|
2020-09-15T02:33:39.000Z
|
2021-09-25T20:25:30.000Z
|
"""Test the Nina binary sensor."""
import json
from typing import Any, Dict
from unittest.mock import patch
from pynina import ApiError
from homeassistant.components.binary_sensor import BinarySensorDeviceClass
from homeassistant.components.nina.const import (
ATTR_EXPIRES,
ATTR_HEADLINE,
ATTR_ID,
ATTR_SENT,
ATTR_START,
DOMAIN,
)
from homeassistant.config_entries import ConfigEntryState
from homeassistant.const import STATE_OFF, STATE_ON
from homeassistant.core import HomeAssistant
from homeassistant.helpers import entity_registry as er
from tests.common import MockConfigEntry, load_fixture
ENTRY_DATA: Dict[str, Any] = {
"slots": 5,
"corona_filter": True,
"regions": {"083350000000": "Aach, Stadt"},
}
ENTRY_DATA_NO_CORONA: Dict[str, Any] = {
"slots": 5,
"corona_filter": False,
"regions": {"083350000000": "Aach, Stadt"},
}
async def test_sensors(hass: HomeAssistant) -> None:
"""Test the creation and values of the NINA sensors."""
dummy_response: Dict[str, Any] = json.loads(
load_fixture("sample_warnings.json", "nina")
)
with patch(
"pynina.baseApi.BaseAPI._makeRequest",
return_value=dummy_response,
):
conf_entry: MockConfigEntry = MockConfigEntry(
domain=DOMAIN, title="NINA", data=ENTRY_DATA
)
entity_registry: er = er.async_get(hass)
conf_entry.add_to_hass(hass)
await hass.config_entries.async_setup(conf_entry.entry_id)
await hass.async_block_till_done()
assert conf_entry.state == ConfigEntryState.LOADED
state_w1 = hass.states.get("binary_sensor.warning_aach_stadt_1")
entry_w1 = entity_registry.async_get("binary_sensor.warning_aach_stadt_1")
assert state_w1.state == STATE_ON
assert state_w1.attributes.get(ATTR_HEADLINE) == "Ausfall Notruf 112"
assert state_w1.attributes.get(ATTR_ID) == "mow.DE-NW-BN-SE030-20201014-30-000"
assert state_w1.attributes.get(ATTR_SENT) == "2021-10-11T05:20:00+01:00"
assert state_w1.attributes.get(ATTR_START) == "2021-11-01T05:20:00+01:00"
assert state_w1.attributes.get(ATTR_EXPIRES) == "3021-11-22T05:19:00+01:00"
assert entry_w1.unique_id == "083350000000-1"
assert state_w1.attributes.get("device_class") == BinarySensorDeviceClass.SAFETY
state_w2 = hass.states.get("binary_sensor.warning_aach_stadt_2")
entry_w2 = entity_registry.async_get("binary_sensor.warning_aach_stadt_2")
assert state_w2.state == STATE_OFF
assert state_w2.attributes.get(ATTR_HEADLINE) is None
assert state_w2.attributes.get(ATTR_ID) is None
assert state_w2.attributes.get(ATTR_SENT) is None
assert state_w2.attributes.get(ATTR_START) is None
assert state_w2.attributes.get(ATTR_EXPIRES) is None
assert entry_w2.unique_id == "083350000000-2"
assert state_w2.attributes.get("device_class") == BinarySensorDeviceClass.SAFETY
state_w3 = hass.states.get("binary_sensor.warning_aach_stadt_3")
entry_w3 = entity_registry.async_get("binary_sensor.warning_aach_stadt_3")
assert state_w3.state == STATE_OFF
assert state_w3.attributes.get(ATTR_HEADLINE) is None
assert state_w3.attributes.get(ATTR_ID) is None
assert state_w3.attributes.get(ATTR_SENT) is None
assert state_w3.attributes.get(ATTR_START) is None
assert state_w3.attributes.get(ATTR_EXPIRES) is None
assert entry_w3.unique_id == "083350000000-3"
assert state_w3.attributes.get("device_class") == BinarySensorDeviceClass.SAFETY
state_w4 = hass.states.get("binary_sensor.warning_aach_stadt_4")
entry_w4 = entity_registry.async_get("binary_sensor.warning_aach_stadt_4")
assert state_w4.state == STATE_OFF
assert state_w4.attributes.get(ATTR_HEADLINE) is None
assert state_w4.attributes.get(ATTR_ID) is None
assert state_w4.attributes.get(ATTR_SENT) is None
assert state_w4.attributes.get(ATTR_START) is None
assert state_w4.attributes.get(ATTR_EXPIRES) is None
assert entry_w4.unique_id == "083350000000-4"
assert state_w4.attributes.get("device_class") == BinarySensorDeviceClass.SAFETY
state_w5 = hass.states.get("binary_sensor.warning_aach_stadt_5")
entry_w5 = entity_registry.async_get("binary_sensor.warning_aach_stadt_5")
assert state_w5.state == STATE_OFF
assert state_w5.attributes.get(ATTR_HEADLINE) is None
assert state_w5.attributes.get(ATTR_ID) is None
assert state_w5.attributes.get(ATTR_SENT) is None
assert state_w5.attributes.get(ATTR_START) is None
assert state_w5.attributes.get(ATTR_EXPIRES) is None
assert entry_w5.unique_id == "083350000000-5"
assert state_w5.attributes.get("device_class") == BinarySensorDeviceClass.SAFETY
async def test_sensors_without_corona_filter(hass: HomeAssistant) -> None:
"""Test the creation and values of the NINA sensors without the corona filter."""
dummy_response: Dict[str, Any] = json.loads(
load_fixture("nina/sample_warnings.json")
)
with patch(
"pynina.baseApi.BaseAPI._makeRequest",
return_value=dummy_response,
):
conf_entry: MockConfigEntry = MockConfigEntry(
domain=DOMAIN, title="NINA", data=ENTRY_DATA_NO_CORONA
)
entity_registry: er = er.async_get(hass)
conf_entry.add_to_hass(hass)
await hass.config_entries.async_setup(conf_entry.entry_id)
await hass.async_block_till_done()
assert conf_entry.state == ConfigEntryState.LOADED
state_w1 = hass.states.get("binary_sensor.warning_aach_stadt_1")
entry_w1 = entity_registry.async_get("binary_sensor.warning_aach_stadt_1")
assert state_w1.state == STATE_ON
assert (
state_w1.attributes.get(ATTR_HEADLINE)
== "Corona-Verordnung des Landes: Warnstufe durch Landesgesundheitsamt ausgerufen"
)
assert state_w1.attributes.get(ATTR_ID) == "mow.DE-BW-S-SE018-20211102-18-001"
assert state_w1.attributes.get(ATTR_SENT) == "2021-11-02T20:07:16+01:00"
assert state_w1.attributes.get(ATTR_START) == ""
assert state_w1.attributes.get(ATTR_EXPIRES) == ""
assert entry_w1.unique_id == "083350000000-1"
assert state_w1.attributes.get("device_class") == BinarySensorDeviceClass.SAFETY
state_w2 = hass.states.get("binary_sensor.warning_aach_stadt_2")
entry_w2 = entity_registry.async_get("binary_sensor.warning_aach_stadt_2")
assert state_w2.state == STATE_ON
assert state_w2.attributes.get(ATTR_HEADLINE) == "Ausfall Notruf 112"
assert state_w2.attributes.get(ATTR_ID) == "mow.DE-NW-BN-SE030-20201014-30-000"
assert state_w2.attributes.get(ATTR_SENT) == "2021-10-11T05:20:00+01:00"
assert state_w2.attributes.get(ATTR_START) == "2021-11-01T05:20:00+01:00"
assert state_w2.attributes.get(ATTR_EXPIRES) == "3021-11-22T05:19:00+01:00"
assert entry_w2.unique_id == "083350000000-2"
assert state_w2.attributes.get("device_class") == BinarySensorDeviceClass.SAFETY
state_w3 = hass.states.get("binary_sensor.warning_aach_stadt_3")
entry_w3 = entity_registry.async_get("binary_sensor.warning_aach_stadt_3")
assert state_w3.state == STATE_OFF
assert state_w3.attributes.get(ATTR_HEADLINE) is None
assert state_w3.attributes.get(ATTR_ID) is None
assert state_w3.attributes.get(ATTR_SENT) is None
assert state_w3.attributes.get(ATTR_START) is None
assert state_w3.attributes.get(ATTR_EXPIRES) is None
assert entry_w3.unique_id == "083350000000-3"
assert state_w3.attributes.get("device_class") == BinarySensorDeviceClass.SAFETY
state_w4 = hass.states.get("binary_sensor.warning_aach_stadt_4")
entry_w4 = entity_registry.async_get("binary_sensor.warning_aach_stadt_4")
assert state_w4.state == STATE_OFF
assert state_w4.attributes.get(ATTR_HEADLINE) is None
assert state_w4.attributes.get(ATTR_ID) is None
assert state_w4.attributes.get(ATTR_SENT) is None
assert state_w4.attributes.get(ATTR_START) is None
assert state_w4.attributes.get(ATTR_EXPIRES) is None
assert entry_w4.unique_id == "083350000000-4"
assert state_w4.attributes.get("device_class") == BinarySensorDeviceClass.SAFETY
state_w5 = hass.states.get("binary_sensor.warning_aach_stadt_5")
entry_w5 = entity_registry.async_get("binary_sensor.warning_aach_stadt_5")
assert state_w5.state == STATE_OFF
assert state_w5.attributes.get(ATTR_HEADLINE) is None
assert state_w5.attributes.get(ATTR_ID) is None
assert state_w5.attributes.get(ATTR_SENT) is None
assert state_w5.attributes.get(ATTR_START) is None
assert state_w5.attributes.get(ATTR_EXPIRES) is None
assert entry_w5.unique_id == "083350000000-5"
assert state_w5.attributes.get("device_class") == BinarySensorDeviceClass.SAFETY
async def test_sensors_connection_error(hass: HomeAssistant) -> None:
"""Test the creation and values of the NINA sensors with no connected."""
with patch(
"pynina.baseApi.BaseAPI._makeRequest",
side_effect=ApiError("Could not connect to Api"),
):
conf_entry: MockConfigEntry = MockConfigEntry(
domain=DOMAIN, title="NINA", data=ENTRY_DATA
)
conf_entry.add_to_hass(hass)
await hass.config_entries.async_setup(conf_entry.entry_id)
await hass.async_block_till_done()
assert conf_entry.state == ConfigEntryState.SETUP_RETRY
| 41.45339
| 94
| 0.713176
| 1,320
| 9,783
| 5.009091
| 0.117424
| 0.116455
| 0.128554
| 0.07199
| 0.866757
| 0.866001
| 0.859952
| 0.841349
| 0.80611
| 0.769359
| 0
| 0.057641
| 0.191352
| 9,783
| 235
| 95
| 41.629787
| 0.778157
| 0.002862
| 0
| 0.645714
| 0
| 0
| 0.169287
| 0.113836
| 0
| 0
| 0
| 0
| 0.474286
| 1
| 0
| false
| 0
| 0.062857
| 0
| 0.062857
| 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
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
33b90fc74af34b9e3f14c593644d6f2e4ea1bb4d
| 4,090
|
py
|
Python
|
isiscb/isisdata/migrations/0007_auto_20151027_1819.py
|
bgopalachary/IsisCB
|
c28e3f504eea60ebeff38318d8bb2071abb28ebb
|
[
"MIT"
] | 4
|
2016-01-25T20:35:33.000Z
|
2020-04-07T15:39:52.000Z
|
isiscb/isisdata/migrations/0007_auto_20151027_1819.py
|
bgopalachary/IsisCB
|
c28e3f504eea60ebeff38318d8bb2071abb28ebb
|
[
"MIT"
] | 41
|
2015-08-19T17:34:41.000Z
|
2022-03-11T23:19:01.000Z
|
isiscb/isisdata/migrations/0007_auto_20151027_1819.py
|
bgopalachary/IsisCB
|
c28e3f504eea60ebeff38318d8bb2071abb28ebb
|
[
"MIT"
] | 2
|
2020-11-25T20:18:18.000Z
|
2021-06-24T15:15:41.000Z
|
# -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
class Migration(migrations.Migration):
dependencies = [
('isisdata', '0006_auto_20151027_1702'),
]
operations = [
migrations.AddField(
model_name='aarelation',
name='public',
field=models.BooleanField(default=True, help_text=b'\n Controls whether this instance can be viewed by end users.'),
),
migrations.AddField(
model_name='acrelation',
name='public',
field=models.BooleanField(default=True, help_text=b'\n Controls whether this instance can be viewed by end users.'),
),
migrations.AddField(
model_name='attribute',
name='public',
field=models.BooleanField(default=True, help_text=b'\n Controls whether this instance can be viewed by end users.'),
),
migrations.AddField(
model_name='authority',
name='public',
field=models.BooleanField(default=True, help_text=b'\n Controls whether this instance can be viewed by end users.'),
),
migrations.AddField(
model_name='ccrelation',
name='public',
field=models.BooleanField(default=True, help_text=b'\n Controls whether this instance can be viewed by end users.'),
),
migrations.AddField(
model_name='citation',
name='public',
field=models.BooleanField(default=True, help_text=b'\n Controls whether this instance can be viewed by end users.'),
),
migrations.AddField(
model_name='historicalacrelation',
name='public',
field=models.BooleanField(default=True, help_text=b'\n Controls whether this instance can be viewed by end users.'),
),
migrations.AddField(
model_name='historicalattribute',
name='public',
field=models.BooleanField(default=True, help_text=b'\n Controls whether this instance can be viewed by end users.'),
),
migrations.AddField(
model_name='historicalauthority',
name='public',
field=models.BooleanField(default=True, help_text=b'\n Controls whether this instance can be viewed by end users.'),
),
migrations.AddField(
model_name='historicalccrelation',
name='public',
field=models.BooleanField(default=True, help_text=b'\n Controls whether this instance can be viewed by end users.'),
),
migrations.AddField(
model_name='historicalcitation',
name='public',
field=models.BooleanField(default=True, help_text=b'\n Controls whether this instance can be viewed by end users.'),
),
migrations.AddField(
model_name='historicallinkeddata',
name='public',
field=models.BooleanField(default=True, help_text=b'\n Controls whether this instance can be viewed by end users.'),
),
migrations.AddField(
model_name='historicalperson',
name='public',
field=models.BooleanField(default=True, help_text=b'\n Controls whether this instance can be viewed by end users.'),
),
migrations.AddField(
model_name='historicaltracking',
name='public',
field=models.BooleanField(default=True, help_text=b'\n Controls whether this instance can be viewed by end users.'),
),
migrations.AddField(
model_name='linkeddata',
name='public',
field=models.BooleanField(default=True, help_text=b'\n Controls whether this instance can be viewed by end users.'),
),
migrations.AddField(
model_name='tracking',
name='public',
field=models.BooleanField(default=True, help_text=b'\n Controls whether this instance can be viewed by end users.'),
),
]
| 43.052632
| 131
| 0.607824
| 441
| 4,090
| 5.546485
| 0.133787
| 0.117743
| 0.15045
| 0.176615
| 0.832788
| 0.832788
| 0.832788
| 0.832788
| 0.832788
| 0.832788
| 0
| 0.005864
| 0.291198
| 4,090
| 94
| 132
| 43.510638
| 0.837875
| 0.005134
| 0
| 0.727273
| 0
| 0
| 0.338087
| 0.005655
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.022727
| 0
| 0.056818
| 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
|
1d14470ced13de28525cb70b275203fac202ec8e
| 2,787
|
py
|
Python
|
ematch/ematchmain/ematchapp/migrations/0013_auto_20210529_2131.py
|
Faisal-Sey/Dreamnmatch.com
|
f69f8be8e825b37c6abda5e169cc794b5ea2bd4e
|
[
"MIT"
] | null | null | null |
ematch/ematchmain/ematchapp/migrations/0013_auto_20210529_2131.py
|
Faisal-Sey/Dreamnmatch.com
|
f69f8be8e825b37c6abda5e169cc794b5ea2bd4e
|
[
"MIT"
] | null | null | null |
ematch/ematchmain/ematchapp/migrations/0013_auto_20210529_2131.py
|
Faisal-Sey/Dreamnmatch.com
|
f69f8be8e825b37c6abda5e169cc794b5ea2bd4e
|
[
"MIT"
] | null | null | null |
# Generated by Django 2.2.17 on 2021-05-29 21:31
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('ematchapp', '0012_profile_status'),
]
operations = [
migrations.AddField(
model_name='profile',
name='Birthplace',
field=models.CharField(blank=True, max_length=100, null=True),
),
migrations.AddField(
model_name='profile',
name='Interest_bands',
field=models.CharField(blank=True, max_length=255, null=True),
),
migrations.AddField(
model_name='profile',
name='Interest_games',
field=models.CharField(blank=True, max_length=255, null=True),
),
migrations.AddField(
model_name='profile',
name='Interest_movies',
field=models.CharField(blank=True, max_length=255, null=True),
),
migrations.AddField(
model_name='profile',
name='Interest_shows',
field=models.CharField(blank=True, max_length=255, null=True),
),
migrations.AddField(
model_name='profile',
name='Jobs_description',
field=models.TextField(blank=True, max_length=4000, null=True),
),
migrations.AddField(
model_name='profile',
name='Jobs_description1',
field=models.TextField(blank=True, max_length=4000, null=True),
),
migrations.AddField(
model_name='profile',
name='Jobs_end',
field=models.CharField(blank=True, max_length=255, null=True),
),
migrations.AddField(
model_name='profile',
name='Jobs_end1',
field=models.CharField(blank=True, max_length=255, null=True),
),
migrations.AddField(
model_name='profile',
name='Jobs_started',
field=models.CharField(blank=True, max_length=255, null=True),
),
migrations.AddField(
model_name='profile',
name='Jobs_started1',
field=models.CharField(blank=True, max_length=255, null=True),
),
migrations.AddField(
model_name='profile',
name='Jobs_title',
field=models.CharField(blank=True, max_length=255, null=True),
),
migrations.AddField(
model_name='profile',
name='Jobs_title1',
field=models.CharField(blank=True, max_length=255, null=True),
),
migrations.AddField(
model_name='profile',
name='Occupation',
field=models.CharField(blank=True, max_length=100, null=True),
),
]
| 33.178571
| 75
| 0.564406
| 278
| 2,787
| 5.507194
| 0.194245
| 0.164598
| 0.21032
| 0.246897
| 0.838668
| 0.838668
| 0.813847
| 0.813847
| 0.813847
| 0.783801
| 0
| 0.035658
| 0.315752
| 2,787
| 83
| 76
| 33.578313
| 0.767174
| 0.016505
| 0
| 0.727273
| 1
| 0
| 0.109164
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.012987
| 0
| 0.051948
| 0
| 0
| 0
| 0
| null | 0
| 1
| 1
| 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
| 10
|
1d4ec37a57db08e2c556835d0e83f12d106b43ea
| 1,766
|
py
|
Python
|
tests/test_utils.py
|
mikedingjan/ecs-deplojo
|
0b53dea28ae72939a0ca9873b5046a66ccaf284e
|
[
"MIT"
] | 12
|
2018-09-18T07:08:09.000Z
|
2021-05-26T17:08:42.000Z
|
tests/test_utils.py
|
mikedingjan/ecs-deplojo
|
0b53dea28ae72939a0ca9873b5046a66ccaf284e
|
[
"MIT"
] | 13
|
2018-10-30T18:38:23.000Z
|
2021-05-27T07:29:22.000Z
|
tests/test_utils.py
|
mikedingjan/ecs-deplojo
|
0b53dea28ae72939a0ca9873b5046a66ccaf284e
|
[
"MIT"
] | 4
|
2018-11-28T01:00:06.000Z
|
2020-12-29T11:33:46.000Z
|
from ecs_deplojo import utils
def test_find_missing_services(cluster, connection):
missing = utils.find_missing_services(
ecs=connection.ecs,
cluster=cluster["cluster"]["clusterName"],
services={"service-1", "service-2"},
)
assert missing == {"service-1", "service-2"}
def test_find_missing_services_existing(cluster, connection, definition):
retval = connection.ecs.register_task_definition(**definition.as_dict())
task_definition_arn = retval["taskDefinition"]["taskDefinitionArn"]
connection.ecs.create_service(
cluster=cluster["cluster"]["clusterName"],
serviceName="service-2",
taskDefinition=task_definition_arn,
)
missing = utils.find_missing_services(
ecs=connection.ecs,
cluster=cluster["cluster"]["clusterName"],
services={"service-1", "service-2"},
)
assert missing == {"service-1"}
def test_find_missing_services_paginate(cluster, connection, definition):
retval = connection.ecs.register_task_definition(**definition.as_dict())
task_definition_arn = retval["taskDefinition"]["taskDefinitionArn"]
connection.ecs.create_service(
cluster=cluster["cluster"]["clusterName"],
serviceName="service-2",
taskDefinition=task_definition_arn,
)
connection.ecs.create_service(
cluster=cluster["cluster"]["clusterName"],
serviceName="service-40",
taskDefinition=task_definition_arn,
)
all_services = {"service-%d" % i for i in range(39)}
missing = utils.find_missing_services(
ecs=connection.ecs,
cluster=cluster["cluster"]["clusterName"],
services=all_services,
)
all_services.remove("service-2")
assert missing == all_services
| 32.703704
| 76
| 0.687429
| 183
| 1,766
| 6.409836
| 0.213115
| 0.143223
| 0.097187
| 0.163683
| 0.836317
| 0.769821
| 0.769821
| 0.769821
| 0.769821
| 0.769821
| 0
| 0.009722
| 0.184598
| 1,766
| 53
| 77
| 33.320755
| 0.804861
| 0
| 0
| 0.604651
| 0
| 0
| 0.15855
| 0
| 0
| 0
| 0
| 0
| 0.069767
| 1
| 0.069767
| false
| 0
| 0.023256
| 0
| 0.093023
| 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
|
1d6d6b8888ca0283a1659c6870857542ce491e9a
| 102
|
py
|
Python
|
pyastar/util/heuristics.py
|
julesy89/pyastar
|
8f063d55c9f88e1d1f3c6a08b652038abf33b90c
|
[
"Apache-2.0"
] | 3
|
2020-02-10T16:33:31.000Z
|
2022-01-30T06:09:46.000Z
|
pyastar/util/heuristics.py
|
julesy89/pyastar
|
8f063d55c9f88e1d1f3c6a08b652038abf33b90c
|
[
"Apache-2.0"
] | null | null | null |
pyastar/util/heuristics.py
|
julesy89/pyastar
|
8f063d55c9f88e1d1f3c6a08b652038abf33b90c
|
[
"Apache-2.0"
] | null | null | null |
def manhatten_dist_2d(pos_a, pos_b):
return abs(pos_a[0] - pos_b[0]) + abs(pos_a[1] - pos_b[1])
| 20.4
| 62
| 0.647059
| 23
| 102
| 2.521739
| 0.478261
| 0.206897
| 0.241379
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.058824
| 0.166667
| 102
| 4
| 63
| 25.5
| 0.623529
| 0
| 0
| 0
| 0
| 0
| 0
| 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
|
1d6ec113ec89823c15f74a3e574b36d17aeab62c
| 10,485
|
py
|
Python
|
scipy/special/_spherical_bessel.py
|
lorentzenchr/scipy
|
393a05ee927883ad6316b7092c851afea8f16816
|
[
"BSD-3-Clause"
] | 9,095
|
2015-01-02T18:24:23.000Z
|
2022-03-31T20:35:31.000Z
|
scipy/special/_spherical_bessel.py
|
lorentzenchr/scipy
|
393a05ee927883ad6316b7092c851afea8f16816
|
[
"BSD-3-Clause"
] | 11,500
|
2015-01-01T01:15:30.000Z
|
2022-03-31T23:07:35.000Z
|
scipy/special/_spherical_bessel.py
|
lorentzenchr/scipy
|
393a05ee927883ad6316b7092c851afea8f16816
|
[
"BSD-3-Clause"
] | 5,838
|
2015-01-05T11:56:42.000Z
|
2022-03-31T23:21:19.000Z
|
from ._ufuncs import (_spherical_jn, _spherical_yn, _spherical_in,
_spherical_kn, _spherical_jn_d, _spherical_yn_d,
_spherical_in_d, _spherical_kn_d)
def spherical_jn(n, z, derivative=False):
r"""Spherical Bessel function of the first kind or its derivative.
Defined as [1]_,
.. math:: j_n(z) = \sqrt{\frac{\pi}{2z}} J_{n + 1/2}(z),
where :math:`J_n` is the Bessel function of the first kind.
Parameters
----------
n : int, array_like
Order of the Bessel function (n >= 0).
z : complex or float, array_like
Argument of the Bessel function.
derivative : bool, optional
If True, the value of the derivative (rather than the function
itself) is returned.
Returns
-------
jn : ndarray
Notes
-----
For real arguments greater than the order, the function is computed
using the ascending recurrence [2]_. For small real or complex
arguments, the definitional relation to the cylindrical Bessel function
of the first kind is used.
The derivative is computed using the relations [3]_,
.. math::
j_n'(z) = j_{n-1}(z) - \frac{n + 1}{z} j_n(z).
j_0'(z) = -j_1(z)
.. versionadded:: 0.18.0
References
----------
.. [1] https://dlmf.nist.gov/10.47.E3
.. [2] https://dlmf.nist.gov/10.51.E1
.. [3] https://dlmf.nist.gov/10.51.E2
.. [AS] Milton Abramowitz and Irene A. Stegun, eds.
Handbook of Mathematical Functions with Formulas,
Graphs, and Mathematical Tables. New York: Dover, 1972.
Examples
--------
The spherical Bessel functions of the first kind :math:`j_n` accept
both real and complex second argument. They can return a complex type:
>>> from scipy.special import spherical_jn
>>> spherical_jn(0, 3+5j)
(-9.878987731663194-8.021894345786002j)
>>> type(spherical_jn(0, 3+5j))
<class 'numpy.complex128'>
We can verify the relation for the derivative from the Notes
for :math:`n=3` in the interval :math:`[1, 2]`:
>>> from scipy.special import spherical_jn
>>> x = np.arange(1.0, 2.0, 0.01)
>>> np.allclose(spherical_jn(3, x, True),
... spherical_jn(2, x) - 4/x * spherical_jn(3, x))
True
The first few :math:`j_n` with real argument:
>>> import matplotlib.pyplot as plt
>>> from scipy.special import spherical_jn
>>> x = np.arange(0.0, 10.0, 0.01)
>>> fig, ax = plt.subplots()
>>> ax.set_ylim(-0.5, 1.5)
>>> ax.set_title(r'Spherical Bessel functions $j_n$')
>>> for n in np.arange(0, 4):
... ax.plot(x, spherical_jn(n, x), label=rf'$j_{n}$')
>>> plt.legend(loc='best')
>>> plt.show()
"""
if derivative:
return _spherical_jn_d(n, z)
else:
return _spherical_jn(n, z)
def spherical_yn(n, z, derivative=False):
r"""Spherical Bessel function of the second kind or its derivative.
Defined as [1]_,
.. math:: y_n(z) = \sqrt{\frac{\pi}{2z}} Y_{n + 1/2}(z),
where :math:`Y_n` is the Bessel function of the second kind.
Parameters
----------
n : int, array_like
Order of the Bessel function (n >= 0).
z : complex or float, array_like
Argument of the Bessel function.
derivative : bool, optional
If True, the value of the derivative (rather than the function
itself) is returned.
Returns
-------
yn : ndarray
Notes
-----
For real arguments, the function is computed using the ascending
recurrence [2]_. For complex arguments, the definitional relation to
the cylindrical Bessel function of the second kind is used.
The derivative is computed using the relations [3]_,
.. math::
y_n' = y_{n-1} - \frac{n + 1}{z} y_n.
y_0' = -y_1
.. versionadded:: 0.18.0
References
----------
.. [1] https://dlmf.nist.gov/10.47.E4
.. [2] https://dlmf.nist.gov/10.51.E1
.. [3] https://dlmf.nist.gov/10.51.E2
.. [AS] Milton Abramowitz and Irene A. Stegun, eds.
Handbook of Mathematical Functions with Formulas,
Graphs, and Mathematical Tables. New York: Dover, 1972.
Examples
--------
The spherical Bessel functions of the second kind :math:`y_n` accept
both real and complex second argument. They can return a complex type:
>>> from scipy.special import spherical_yn
>>> spherical_yn(0, 3+5j)
(8.022343088587197-9.880052589376795j)
>>> type(spherical_yn(0, 3+5j))
<class 'numpy.complex128'>
We can verify the relation for the derivative from the Notes
for :math:`n=3` in the interval :math:`[1, 2]`:
>>> from scipy.special import spherical_yn
>>> x = np.arange(1.0, 2.0, 0.01)
>>> np.allclose(spherical_yn(3, x, True),
... spherical_yn(2, x) - 4/x * spherical_yn(3, x))
True
The first few :math:`y_n` with real argument:
>>> import matplotlib.pyplot as plt
>>> from scipy.special import spherical_yn
>>> x = np.arange(0.0, 10.0, 0.01)
>>> fig, ax = plt.subplots()
>>> ax.set_ylim(-2.0, 1.0)
>>> ax.set_title(r'Spherical Bessel functions $y_n$')
>>> for n in np.arange(0, 4):
... ax.plot(x, spherical_yn(n, x), label=rf'$y_{n}$')
>>> plt.legend(loc='best')
>>> plt.show()
"""
if derivative:
return _spherical_yn_d(n, z)
else:
return _spherical_yn(n, z)
def spherical_in(n, z, derivative=False):
r"""Modified spherical Bessel function of the first kind or its derivative.
Defined as [1]_,
.. math:: i_n(z) = \sqrt{\frac{\pi}{2z}} I_{n + 1/2}(z),
where :math:`I_n` is the modified Bessel function of the first kind.
Parameters
----------
n : int, array_like
Order of the Bessel function (n >= 0).
z : complex or float, array_like
Argument of the Bessel function.
derivative : bool, optional
If True, the value of the derivative (rather than the function
itself) is returned.
Returns
-------
in : ndarray
Notes
-----
The function is computed using its definitional relation to the
modified cylindrical Bessel function of the first kind.
The derivative is computed using the relations [2]_,
.. math::
i_n' = i_{n-1} - \frac{n + 1}{z} i_n.
i_1' = i_0
.. versionadded:: 0.18.0
References
----------
.. [1] https://dlmf.nist.gov/10.47.E7
.. [2] https://dlmf.nist.gov/10.51.E5
.. [AS] Milton Abramowitz and Irene A. Stegun, eds.
Handbook of Mathematical Functions with Formulas,
Graphs, and Mathematical Tables. New York: Dover, 1972.
Examples
--------
The modified spherical Bessel functions of the first kind :math:`i_n`
accept both real and complex second argument.
They can return a complex type:
>>> from scipy.special import spherical_in
>>> spherical_in(0, 3+5j)
(-1.1689867793369182-1.2697305267234222j)
>>> type(spherical_in(0, 3+5j))
<class 'numpy.complex128'>
We can verify the relation for the derivative from the Notes
for :math:`n=3` in the interval :math:`[1, 2]`:
>>> from scipy.special import spherical_in
>>> x = np.arange(1.0, 2.0, 0.01)
>>> np.allclose(spherical_in(3, x, True),
... spherical_in(2, x) - 4/x * spherical_in(3, x))
True
The first few :math:`i_n` with real argument:
>>> import matplotlib.pyplot as plt
>>> from scipy.special import spherical_in
>>> x = np.arange(0.0, 6.0, 0.01)
>>> fig, ax = plt.subplots()
>>> ax.set_ylim(-0.5, 5.0)
>>> ax.set_title(r'Modified spherical Bessel functions $i_n$')
>>> for n in np.arange(0, 4):
... ax.plot(x, spherical_in(n, x), label=rf'$i_{n}$')
>>> plt.legend(loc='best')
>>> plt.show()
"""
if derivative:
return _spherical_in_d(n, z)
else:
return _spherical_in(n, z)
def spherical_kn(n, z, derivative=False):
r"""Modified spherical Bessel function of the second kind or its derivative.
Defined as [1]_,
.. math:: k_n(z) = \sqrt{\frac{\pi}{2z}} K_{n + 1/2}(z),
where :math:`K_n` is the modified Bessel function of the second kind.
Parameters
----------
n : int, array_like
Order of the Bessel function (n >= 0).
z : complex or float, array_like
Argument of the Bessel function.
derivative : bool, optional
If True, the value of the derivative (rather than the function
itself) is returned.
Returns
-------
kn : ndarray
Notes
-----
The function is computed using its definitional relation to the
modified cylindrical Bessel function of the second kind.
The derivative is computed using the relations [2]_,
.. math::
k_n' = -k_{n-1} - \frac{n + 1}{z} k_n.
k_0' = -k_1
.. versionadded:: 0.18.0
References
----------
.. [1] https://dlmf.nist.gov/10.47.E9
.. [2] https://dlmf.nist.gov/10.51.E5
.. [AS] Milton Abramowitz and Irene A. Stegun, eds.
Handbook of Mathematical Functions with Formulas,
Graphs, and Mathematical Tables. New York: Dover, 1972.
Examples
--------
The modified spherical Bessel functions of the second kind :math:`k_n`
accept both real and complex second argument.
They can return a complex type:
>>> from scipy.special import spherical_kn
>>> spherical_kn(0, 3+5j)
(0.012985785614001561+0.003354691603137546j)
>>> type(spherical_kn(0, 3+5j))
<class 'numpy.complex128'>
We can verify the relation for the derivative from the Notes
for :math:`n=3` in the interval :math:`[1, 2]`:
>>> from scipy.special import spherical_kn
>>> x = np.arange(1.0, 2.0, 0.01)
>>> np.allclose(spherical_kn(3, x, True),
... - 4/x * spherical_kn(3, x) - spherical_kn(2, x))
True
The first few :math:`k_n` with real argument:
>>> import matplotlib.pyplot as plt
>>> from scipy.special import spherical_kn
>>> x = np.arange(0.0, 4.0, 0.01)
>>> fig, ax = plt.subplots()
>>> ax.set_ylim(0.0, 5.0)
>>> ax.set_title(r'Modified spherical Bessel functions $k_n$')
>>> for n in np.arange(0, 4):
... ax.plot(x, spherical_kn(n, x), label=rf'$k_{n}$')
>>> plt.legend(loc='best')
>>> plt.show()
"""
if derivative:
return _spherical_kn_d(n, z)
else:
return _spherical_kn(n, z)
| 29.618644
| 80
| 0.604864
| 1,541
| 10,485
| 4.014925
| 0.106424
| 0.022628
| 0.031033
| 0.036851
| 0.905285
| 0.867464
| 0.826895
| 0.799903
| 0.786649
| 0.781154
| 0
| 0.053129
| 0.253219
| 10,485
| 353
| 81
| 29.70255
| 0.737037
| 0.828517
| 0
| 0.296296
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.148148
| false
| 0
| 0.037037
| 0
| 0.481481
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 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
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
d541a04dfbaa90f9307149ab9bf43b5e2e42ca05
| 26,146
|
py
|
Python
|
tests/test_modules/test_capmc.py
|
Cray-HPE/craycli
|
58652633c1ce326b26efac7da4990150bd2e2b6e
|
[
"MIT"
] | 1
|
2022-03-01T20:40:15.000Z
|
2022-03-01T20:40:15.000Z
|
tests/test_modules/test_capmc.py
|
Cray-HPE/craycli
|
58652633c1ce326b26efac7da4990150bd2e2b6e
|
[
"MIT"
] | 2
|
2022-02-25T20:48:55.000Z
|
2022-03-16T11:07:33.000Z
|
tests/test_modules/test_capmc.py
|
Cray-HPE/craycli
|
58652633c1ce326b26efac7da4990150bd2e2b6e
|
[
"MIT"
] | 2
|
2022-03-08T17:49:40.000Z
|
2022-03-15T22:22:41.000Z
|
#
# MIT License
#
# (C) Copyright 2022 Hewlett Packard Enterprise Development LP
#
# Permission is hereby granted, free of charge, to any person obtaining a
# copy of this software and associated documentation files (the "Software"),
# to deal in the Software without restriction, including without limitation
# the rights to use, copy, modify, merge, publish, distribute, sublicense,
# and/or sell copies of the Software, and to permit persons to whom the
# Software is furnished to do so, subject to the following conditions:
#
# The above copyright notice and this permission notice shall be included
# in all copies or substantial portions of the Software.
#
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
# THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR
# OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
# ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
# OTHER DEALINGS IN THE SOFTWARE.
#
""" Test the main CLI command (`cray`) and options.
MIT License
(C) Copyright [2020-2022] Hewlett Packard Enterprise Development LP
Permission is hereby granted, free of charge, to any person obtaining a
copy of this software and associated documentation files (the "Software"),
to deal in the Software without restriction, including without limitation
the rights to use, copy, modify, merge, publish, distribute, sublicense,
and/or sell copies of the Software, and to permit persons to whom the
Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included
in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR
OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
OTHER DEALINGS IN THE SOFTWARE.
"""
# pylint: disable=invalid-name
# pylint: disable=too-many-arguments, unused-argument
# pylint: disable=too-many-lines
import json
from ..utils.runner import cli_runner # pylint: disable=unused-import
from ..utils.rest import rest_mock # pylint: disable=unused-import
# pylint: disable=redefined-outer-name
def test_cray_capmc_get_xname_status(cli_runner):
""" Test `cray capmc get_xname_status` to make sure the expected commands are available """
runner, cli, _ = cli_runner
result = runner.invoke(cli, ['capmc', 'get_xname_status'])
outputs = [
"cli capmc get_xname_status [OPTIONS] COMMAND [ARGS]...",
"create",
]
for out in outputs:
assert out in result.output
assert result.exit_code == 0
# pylint: disable=redefined-outer-name
def test_cray_capmc_xname_off(cli_runner):
""" Test `cray capmc xname_off` to make sure the expected commands are available """
runner, cli, _ = cli_runner
result = runner.invoke(cli, ['capmc', 'xname_off'])
outputs = [
"cli capmc xname_off [OPTIONS] COMMAND [ARGS]...",
"create",
]
for out in outputs:
assert out in result.output
assert result.exit_code == 0
# pylint: disable=redefined-outer-name
def test_cray_capmc_xname_off_help(cli_runner):
""" Test `cray capmc xname_off create --help` to make sure expected options are available """
runner, cli, _ = cli_runner
result = runner.invoke(cli, ['capmc', 'xname_off', 'create', '--help'])
outputs = [
"cli capmc xname_off create [OPTIONS]",
"prereq",
"recursive",
"force",
"xnames",
"reason",
]
for out in outputs:
assert out in result.output
assert result.exit_code == 0
# pylint: disable=redefined-outer-name
def test_cray_capmc_xname_on(cli_runner):
""" Test `cray capmc xname_on` to make sure the expected commands are available """
runner, cli, _ = cli_runner
result = runner.invoke(cli, ['capmc', 'xname_on'])
outputs = [
"cli capmc xname_on [OPTIONS] COMMAND [ARGS]...",
"create",
]
for out in outputs:
assert out in result.output
assert result.exit_code == 0
# pylint: disable=redefined-outer-name
def test_cray_capmc_xname_on_help(cli_runner):
""" Test `cray capmc xname_on create --help` to make sure the expected options are available """
runner, cli, _ = cli_runner
result = runner.invoke(cli, ['capmc', 'xname_on', 'create', '--help'])
outputs = [
"cli capmc xname_on create [OPTIONS]",
"prereq",
"recursive",
"force",
"xnames",
"reason",
]
for out in outputs:
assert out in result.output
assert result.exit_code == 0
# pylint: disable=redefined-outer-name
def test_cray_capmc_xname_reinit(cli_runner):
""" Test `cray capmc xname_reinit` to make sure the expected commands are available """
runner, cli, _ = cli_runner
result = runner.invoke(cli, ['capmc', 'xname_reinit'])
outputs = [
"cli capmc xname_reinit [OPTIONS] COMMAND [ARGS]...",
"create",
]
for out in outputs:
assert out in result.output
assert result.exit_code == 0
# pylint: disable=redefined-outer-name
def test_cray_capmc_xname_reinit_help(cli_runner):
""" Test `cray capmc xname_reinit create --help` to be sure expected options are available """
runner, cli, _ = cli_runner
result = runner.invoke(cli, ['capmc', 'xname_reinit', 'create', '--help'])
outputs = [
"cli capmc xname_reinit create [OPTIONS]",
"force",
"xnames",
"reason",
]
for out in outputs:
assert out in result.output
assert result.exit_code == 0
capmc_url_base = '/capmc/v1'
nids = 1138
xname = 'x0c0s0b0n0'
# pylint: disable=redefined-outer-name
def test_cray_capmc_xname_off_call(cli_runner, rest_mock):
""" Test `cray capmc xname_off create --xnames <xname list>` """
runner, cli, opts = cli_runner
url_template = capmc_url_base + '/xname_off'
config = opts['default']
hostname = config['hostname']
result = runner.invoke(cli, ['capmc', 'xname_off', 'create',
'--xnames', xname])
print(result.output)
assert result.exit_code == 0
data = json.loads(result.output)
assert data['method'].lower() == 'post'
uri = data['url'].split(hostname)[-1]
assert url_template in uri
assert data['body']['xnames'] == [xname]
assert data.get('body').get('force') is None
# pylint: disable=redefined-outer-name
def test_cray_capmc_xname_off_force_call(cli_runner, rest_mock):
""" Test `cray capmc xname_off create --xnames <xname list> --force true` """
runner, cli, opts = cli_runner
url_template = capmc_url_base + '/xname_off'
config = opts['default']
hostname = config['hostname']
result = runner.invoke(cli, ['capmc', 'xname_off', 'create',
'--xnames', xname, '--force', 'true'])
print(result.output)
assert result.exit_code == 0
data = json.loads(result.output)
assert data['method'].lower() == 'post'
uri = data['url'].split(hostname)[-1]
assert url_template in uri
assert data['body']['xnames'] == [xname]
assert data['body']['force'] is True
# pylint: disable=redefined-outer-name
def test_cray_capmc_xname_off_recursive_call(cli_runner, rest_mock):
""" Test `cray capmc xname_off create --xnames <xname list> --recursive true` """
runner, cli, opts = cli_runner
url_template = capmc_url_base + '/xname_off'
config = opts['default']
hostname = config['hostname']
result = runner.invoke(cli, ['capmc', 'xname_off', 'create',
'--xnames', xname, '--recursive', 'true'])
print(result.output)
assert result.exit_code == 0
data = json.loads(result.output)
assert data['method'].lower() == 'post'
uri = data['url'].split(hostname)[-1]
assert url_template in uri
assert data['body']['xnames'] == [xname]
assert data['body']['recursive'] is True
# pylint: disable=redefined-outer-name
def test_cray_capmc_xname_off_force_recursive_call(cli_runner, rest_mock):
""" Test `cray capmc xname_off create --xnames <xname list> --force true --recursive true` """
runner, cli, opts = cli_runner
url_template = capmc_url_base + '/xname_off'
config = opts['default']
hostname = config['hostname']
result = runner.invoke(cli, ['capmc', 'xname_off', 'create',
'--xnames', xname, '--force', 'true',
'--recursive', 'true'])
print(result.output)
assert result.exit_code == 0
data = json.loads(result.output)
assert data['method'].lower() == 'post'
uri = data['url'].split(hostname)[-1]
assert url_template in uri
assert data['body']['xnames'] == [xname]
assert data['body']['force'] is True
assert data['body']['recursive'] is True
# pylint: disable=redefined-outer-name
def test_cray_capmc_xname_off_prereq_call(cli_runner, rest_mock):
""" Test `cray capmc xname_off create --xnames <xname list> --prereq true` """
runner, cli, opts = cli_runner
url_template = capmc_url_base + '/xname_off'
config = opts['default']
hostname = config['hostname']
result = runner.invoke(cli, ['capmc', 'xname_off', 'create',
'--xnames', xname, '--prereq', 'true'])
print(result.output)
assert result.exit_code == 0
data = json.loads(result.output)
assert data['method'].lower() == 'post'
uri = data['url'].split(hostname)[-1]
assert url_template in uri
assert data['body']['xnames'] == [xname]
assert data['body']['prereq'] is True
# pylint: disable=redefined-outer-name
def test_cray_capmc_xname_off_force_prereq_call(cli_runner, rest_mock):
""" Test `cray capmc xname_off create --xnames <xname list> --force true --prereq true` """
runner, cli, opts = cli_runner
url_template = capmc_url_base + '/xname_off'
config = opts['default']
hostname = config['hostname']
result = runner.invoke(cli, ['capmc', 'xname_off', 'create',
'--xnames', xname, '--force', 'true',
'--prereq', 'true'])
print(result.output)
assert result.exit_code == 0
data = json.loads(result.output)
assert data['method'].lower() == 'post'
uri = data['url'].split(hostname)[-1]
assert url_template in uri
assert data['body']['xnames'] == [xname]
assert data['body']['force'] is True
assert data['body']['prereq'] is True
# pylint: disable=redefined-outer-name
def test_cray_capmc_xname_on_call(cli_runner, rest_mock):
""" Test `cray capmc xname_on create --xnames <xname list>` """
runner, cli, opts = cli_runner
url_template = capmc_url_base + '/xname_on'
config = opts['default']
hostname = config['hostname']
result = runner.invoke(cli, ['capmc', 'xname_on', 'create',
'--xnames', xname])
print(result.output)
assert result.exit_code == 0
data = json.loads(result.output)
assert data['method'].lower() == 'post'
uri = data['url'].split(hostname)[-1]
assert url_template in uri
assert data['body']['xnames'] == [xname]
assert data.get('body').get('force') is None
# pylint: disable=redefined-outer-name
def test_cray_capmc_xname_on_force_call(cli_runner, rest_mock):
""" Test `cray capmc xname_on create --xnames <xname list> --force true` """
runner, cli, opts = cli_runner
url_template = capmc_url_base + '/xname_on'
config = opts['default']
hostname = config['hostname']
result = runner.invoke(cli, ['capmc', 'xname_on', 'create',
'--xnames', xname, '--force', 'true'])
print(result.output)
assert result.exit_code == 0
data = json.loads(result.output)
assert data['method'].lower() == 'post'
uri = data['url'].split(hostname)[-1]
assert url_template in uri
assert data['body']['xnames'] == [xname]
assert data['body']['force'] is True
# pylint: disable=redefined-outer-name
def test_cray_capmc_xname_on_recursive_call(cli_runner, rest_mock):
""" Test `cray capmc xname_on create --xnames <xname list> --recursive true` """
runner, cli, opts = cli_runner
url_template = capmc_url_base + '/xname_on'
config = opts['default']
hostname = config['hostname']
result = runner.invoke(cli, ['capmc', 'xname_on', 'create',
'--xnames', xname, '--recursive', 'true'])
print(result.output)
assert result.exit_code == 0
data = json.loads(result.output)
assert data['method'].lower() == 'post'
uri = data['url'].split(hostname)[-1]
assert url_template in uri
assert data['body']['xnames'] == [xname]
assert data['body']['recursive'] is True
# pylint: disable=redefined-outer-name
def test_cray_capmc_xname_on_force_recursive_call(cli_runner, rest_mock):
""" Test `cray capmc xname_on create --xnames <xname list> --force true --recursive true` """
runner, cli, opts = cli_runner
url_template = capmc_url_base + '/xname_on'
config = opts['default']
hostname = config['hostname']
result = runner.invoke(cli, ['capmc', 'xname_on', 'create',
'--xnames', xname, '--force', 'true',
'--recursive', 'true'])
print(result.output)
assert result.exit_code == 0
data = json.loads(result.output)
assert data['method'].lower() == 'post'
uri = data['url'].split(hostname)[-1]
assert url_template in uri
assert data['body']['xnames'] == [xname]
assert data['body']['force'] is True
assert data['body']['recursive'] is True
# pylint: disable=redefined-outer-name
def test_cray_capmc_xname_on_prereq_call(cli_runner, rest_mock):
""" Test `cray capmc xname_on create --xnames <xname list> --prereq true` """
runner, cli, opts = cli_runner
url_template = capmc_url_base + '/xname_on'
config = opts['default']
hostname = config['hostname']
result = runner.invoke(cli, ['capmc', 'xname_on', 'create',
'--xnames', xname, '--prereq', 'true'])
print(result.output)
assert result.exit_code == 0
data = json.loads(result.output)
assert data['method'].lower() == 'post'
uri = data['url'].split(hostname)[-1]
assert url_template in uri
assert data['body']['xnames'] == [xname]
assert data['body']['prereq'] is True
# pylint: disable=redefined-outer-name
def test_cray_capmc_xname_on_force_prereq_call(cli_runner, rest_mock):
""" Test `cray capmc xname_on create --xnames <xname list> --force true --prereq true` """
runner, cli, opts = cli_runner
url_template = capmc_url_base + '/xname_on'
config = opts['default']
hostname = config['hostname']
result = runner.invoke(cli, ['capmc', 'xname_on', 'create',
'--xnames', xname, '--force', 'true',
'--prereq', 'true'])
print(result.output)
assert result.exit_code == 0
data = json.loads(result.output)
assert data['method'].lower() == 'post'
uri = data['url'].split(hostname)[-1]
assert url_template in uri
assert data['body']['xnames'] == [xname]
assert data['body']['force'] is True
assert data['body']['prereq'] is True
# pylint: disable=redefined-outer-name
def test_cray_capmc_xname_reinit_call(cli_runner, rest_mock):
""" Test `cray capmc xname_reinit create --xnames <xname list>` """
runner, cli, opts = cli_runner
url_template = capmc_url_base + '/xname_reinit'
config = opts['default']
hostname = config['hostname']
result = runner.invoke(cli, ['capmc', 'xname_reinit', 'create',
'--xnames', xname])
print(result.output)
assert result.exit_code == 0
data = json.loads(result.output)
assert data['method'].lower() == 'post'
uri = data['url'].split(hostname)[-1]
assert url_template in uri
assert data['body']['xnames'] == [xname]
assert data.get('body').get('force') is None
# pylint: disable=redefined-outer-name
def test_cray_capmc_xname_reinit_force_call(cli_runner, rest_mock):
""" Test `cray capmc xname_reinit create --xnames <xname list> --force true` """
runner, cli, opts = cli_runner
url_template = capmc_url_base + '/xname_reinit'
config = opts['default']
hostname = config['hostname']
result = runner.invoke(cli, ['capmc', 'xname_reinit', 'create',
'--xnames', xname, '--force', 'true'])
print(result.output)
assert result.exit_code == 0
data = json.loads(result.output)
assert data['method'].lower() == 'post'
uri = data['url'].split(hostname)[-1]
assert url_template in uri
assert data['body']['xnames'] == [xname]
assert data['body']['force'] is True
group = 'my_group'
# pylint: disable=redefined-outer-name
def test_cray_capmc_get_power_cap_capabilities(cli_runner):
""" Test `cray capmc get_power_cap_capabilities` for expected commands"""
runner, cli, _ = cli_runner
result = runner.invoke(cli, ['capmc', 'get_power_cap_capabilities'])
outputs = [
"cli capmc get_power_cap_capabilities [OPTIONS] COMMAND [ARGS]...",
"create",
]
for out in outputs:
assert out in result.output
assert result.exit_code == 0
# pylint: disable=redefined-outer-name
def test_cray_capmc_get_power_cap_capabilities_help(cli_runner):
""" Test `cray capmc get_power_cap_capabilities --help` for expected options """
runner, cli, _ = cli_runner
result = runner.invoke(cli, ['capmc', 'get_power_cap_capabilities', 'create', '--help'])
outputs = [
"cli capmc get_power_cap_capabilities create [OPTIONS]",
"nids",
]
for out in outputs:
assert out in result.output
assert result.exit_code == 0
# pylint: disable=redefined-outer-name
def test_cray_capmc_get_power_cap(cli_runner):
""" Test `cray capmc get_power_cap` for expected commands"""
runner, cli, _ = cli_runner
result = runner.invoke(cli, ['capmc', 'get_power_cap'])
outputs = [
"cli capmc get_power_cap [OPTIONS] COMMAND [ARGS]...",
"create",
]
for out in outputs:
assert out in result.output
assert result.exit_code == 0
# pylint: disable=redefined-outer-name
def test_cray_capmc_get_power_cap_help(cli_runner):
""" Test `cray capmc get_power_cap --help` for expected options """
runner, cli, _ = cli_runner
result = runner.invoke(cli, ['capmc', 'get_power_cap', 'create', '--help'])
outputs = [
"cli capmc get_power_cap create [OPTIONS]",
"nids",
]
for out in outputs:
assert out in result.output
assert result.exit_code == 0
# pylint: disable=redefined-outer-name
def test_cray_capmc_get_power_cap_capabilities_create(cli_runner, rest_mock):
""" Test `cray capmc get_power_cap_capabilities create --nids <nid list>` """
runner, cli, opts = cli_runner
url_template = capmc_url_base + '/get_power_cap_capabilities'
config = opts['default']
hostname = config['hostname']
result = runner.invoke(cli, ['capmc', 'get_power_cap_capabilities', 'create',
'--nids', nids])
print(result.output)
assert result.exit_code == 0
data = json.loads(result.output)
assert data['method'].lower() == 'post'
uri = data['url'].split(hostname)[-1]
assert url_template in uri
assert data['body']['nids'] == nids
# pylint: disable=redefined-outer-name
def test_cray_capmc_get_power_cap_create(cli_runner, rest_mock):
""" Test `cray capmc get_power_cap create --nids <nid list>` """
runner, cli, opts = cli_runner
url_template = capmc_url_base + '/get_power_cap'
config = opts['default']
hostname = config['hostname']
result = runner.invoke(cli, ['capmc', 'get_power_cap', 'create',
'--nids', nids])
print(result.output)
assert result.exit_code == 0
data = json.loads(result.output)
assert data['method'].lower() == 'post'
uri = data['url'].split(hostname)[-1]
assert url_template in uri
assert data['body']['nids'] == nids
# pylint: disable=redefined-outer-name
def test_cray_capmc_set_power_cap(cli_runner):
""" Test `cray capmc set_power_cap` for expected commands"""
runner, cli, _ = cli_runner
result = runner.invoke(cli, ['capmc', 'set_power_cap'])
outputs = [
"cli capmc set_power_cap [OPTIONS] COMMAND [ARGS]...",
"create",
]
for out in outputs:
assert out in result.output
assert result.exit_code == 0
# pylint: disable=redefined-outer-name
def test_cray_capmc_set_power_cap_help(cli_runner):
""" Test `cray capmc set_power_cap --help` for expected options """
runner, cli, _ = cli_runner
result = runner.invoke(cli, ['capmc', 'set_power_cap', 'create', '--help'])
outputs = [
"cli capmc set_power_cap create [OPTIONS]",
"nids",
"control",
]
for out in outputs:
assert out in result.output
assert result.exit_code == 0
spc_nids = '1,3,5,7'
spc_node_val = 400
spc_accel_val = 200
# pylint: disable=redefined-outer-name
def test_cray_capmc_set_power_cap_create(cli_runner, rest_mock):
""" Test `cray capmc set_power_cap create --nids <nid list> --control <string> <int>` """
runner, cli, opts = cli_runner
url_template = capmc_url_base + '/set_power_cap'
config = opts['default']
hostname = config['hostname']
result = runner.invoke(cli, ['capmc', 'set_power_cap', 'create',
'--nids', spc_nids,
'--control', "node 0", spc_node_val,
'--control', "accel 0", spc_accel_val])
print(result)
assert result.exit_code == 0
data = json.loads(result.output)
assert data['method'].lower() == 'post'
uri = data['url'].split(hostname)[-1]
assert url_template in uri
nids = data['body']['nids']
for i, e in enumerate(nids):
assert e['nid'] == i * 2 + 1
c = e['controls']
assert c[0]['name'] == 'node 0'
assert c[0]['val'] == spc_node_val
assert c[1]['name'] == 'accel 0'
assert c[1]['val'] == spc_accel_val
# pylint: disable=redefined-outer-name
def test_cray_capmc_set_power_cap_create_only_node(cli_runner, rest_mock):
""" Test `cray capmc set_power_cap create --nids <nid list> --control <string> <int>` """
runner, cli, opts = cli_runner
url_template = capmc_url_base + '/set_power_cap'
config = opts['default']
hostname = config['hostname']
result = runner.invoke(cli, ['capmc', 'set_power_cap', 'create',
'--nids', spc_nids,
'--control', "node 0", spc_node_val])
print(result.output)
assert result.exit_code == 0
data = json.loads(result.output)
assert data['method'].lower() == 'post'
uri = data['url'].split(hostname)[-1]
assert url_template in uri
nids = data['body']['nids']
for i, e in enumerate(nids):
assert e['nid'] == i * 2 + 1
c = e['controls']
assert c[0]['name'] == 'node 0'
assert c[0]['val'] == spc_node_val
# pylint: disable=redefined-outer-name
def test_cray_capmc_set_power_cap_create_only_accel(cli_runner, rest_mock):
""" Test `cray capmc set_power_cap create --nids <nid list> --control <string> <int>` """
runner, cli, opts = cli_runner
url_template = capmc_url_base + '/set_power_cap'
config = opts['default']
hostname = config['hostname']
result = runner.invoke(cli, ['capmc', 'set_power_cap', 'create',
'--nids', spc_nids,
'--control', "accel 0", spc_accel_val])
print(result.output)
assert result.exit_code == 0
data = json.loads(result.output)
assert data['method'].lower() == 'post'
uri = data['url'].split(hostname)[-1]
assert url_template in uri
nids = data['body']['nids']
for i, e in enumerate(nids):
assert e['nid'] == i * 2 + 1
c = e['controls']
assert c[0]['name'] == 'accel 0'
assert c[0]['val'] == spc_accel_val
# pylint: disable=redefined-outer-name
def test_cray_capmc_set_power_cap_create_no_nids(cli_runner, rest_mock):
""" Test `cray capmc set_power_cap create --control <string> <int> --control <string> <int>` """
runner, cli, _ = cli_runner
result = runner.invoke(cli, ['capmc', 'set_power_cap', 'create',
'--control', "node 0", spc_node_val,
'--control', "accel 0", spc_accel_val])
print(result.output)
assert result.exit_code == 2
outputs = [
"Invalid value: --nids option required",
]
for out in outputs:
assert out in result.output
# pylint: disable=redefined-outer-name
def test_cray_capmc_set_power_cap_create_no_node_or_accel(cli_runner, rest_mock):
""" Test `cray capmc set_power_cap create --nids <nid list>` """
runner, cli, _ = cli_runner
result = runner.invoke(cli, ['capmc', 'set_power_cap', 'create',
'--nids', spc_nids])
print(result.output)
assert result.exit_code == 2
outputs = [
"Invalid value: --control must be supplied.",
]
for out in outputs:
assert out in result.output
gne_nids = '1,3,5,7'
gne_apid = '831ab138'
gne_job_id = '831138.sdb'
gne_start_time = '2019-07-10 12:55:06'
gne_end_time = '2019-07-10 14:00:00'
| 38.45
| 100
| 0.642201
| 3,417
| 26,146
| 4.73544
| 0.066725
| 0.038378
| 0.054632
| 0.044497
| 0.965083
| 0.951672
| 0.938941
| 0.922564
| 0.912119
| 0.89945
| 0
| 0.007531
| 0.22294
| 26,146
| 679
| 101
| 38.506627
| 0.788896
| 0.236671
| 0
| 0.786885
| 0
| 0
| 0.169164
| 0.007976
| 0
| 0
| 0
| 0
| 0.270492
| 1
| 0.069672
| false
| 0
| 0.006148
| 0
| 0.07582
| 0.043033
| 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
|
d5599bc765bae0ec322d836982f57e2eb1c442b5
| 149
|
py
|
Python
|
sharpy/plans/__init__.py
|
MadManSC2/sharpy-sc2
|
13950357df2db58033daab24f076e3ae83f0b2a8
|
[
"MIT"
] | 1
|
2020-03-05T19:21:56.000Z
|
2020-03-05T19:21:56.000Z
|
sharpy/plans/__init__.py
|
MadManSC2/sharpy-sc2
|
13950357df2db58033daab24f076e3ae83f0b2a8
|
[
"MIT"
] | null | null | null |
sharpy/plans/__init__.py
|
MadManSC2/sharpy-sc2
|
13950357df2db58033daab24f076e3ae83f0b2a8
|
[
"MIT"
] | null | null | null |
from .build_order import BuildOrder
from .build_order import Step
from .step_gas import StepBuildGas
from .sequential_list import SequentialList
| 29.8
| 43
| 0.838926
| 20
| 149
| 6.05
| 0.55
| 0.14876
| 0.231405
| 0.330579
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.134228
| 149
| 5
| 43
| 29.8
| 0.937985
| 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
|
d56b8a6f06eee597412085e1073e92c49e45c300
| 20,818
|
py
|
Python
|
project/migrations/0001_initial.py
|
GolamMullick/HR_PROJECT
|
fc4c76cfc835ad014a62a3da9d32b8fc8d474397
|
[
"MIT"
] | null | null | null |
project/migrations/0001_initial.py
|
GolamMullick/HR_PROJECT
|
fc4c76cfc835ad014a62a3da9d32b8fc8d474397
|
[
"MIT"
] | 3
|
2020-02-12T02:52:01.000Z
|
2021-06-10T22:18:25.000Z
|
project/migrations/0001_initial.py
|
GolamMullick/HR_PROJECT
|
fc4c76cfc835ad014a62a3da9d32b8fc8d474397
|
[
"MIT"
] | null | null | null |
# Generated by Django 2.1.4 on 2019-11-13 07:50
import django.core.validators
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
('users', '0001_initial'),
]
operations = [
migrations.CreateModel(
name='Goal',
fields=[
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('created_at', models.DateTimeField(auto_now_add=True)),
('updated_at', models.DateTimeField(blank=True, null=True)),
('deleted_at', models.DateTimeField(blank=True, null=True)),
('is_active', models.BooleanField(default=True)),
('title', models.CharField(max_length=60)),
('description', models.TextField(blank=True, null=True)),
('start_date', models.DateField(blank=True, null=True)),
('end_date', models.DateField(blank=True, null=True)),
('created_by', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.DO_NOTHING, related_name='goal_created_by', to='users.CompanyUsers')),
('deleted_by', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.DO_NOTHING, related_name='goal_deleted_by', to='users.CompanyUsers')),
],
options={
'abstract': False,
},
),
migrations.CreateModel(
name='GoalDetails',
fields=[
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('created_at', models.DateTimeField(auto_now_add=True)),
('updated_at', models.DateTimeField(blank=True, null=True)),
('deleted_at', models.DateTimeField(blank=True, null=True)),
('is_active', models.BooleanField(default=True)),
('key', models.CharField(max_length=255)),
('value', models.TextField(blank=True, null=True)),
('created_by', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.DO_NOTHING, related_name='goal_detail_created_by', to='users.CompanyUsers')),
('deleted_by', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.DO_NOTHING, related_name='goal_detail_deleted_by', to='users.CompanyUsers')),
('goal', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='project.Goal')),
('updated_by', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.DO_NOTHING, related_name='goal_detail_updated_by', to='users.CompanyUsers')),
],
options={
'abstract': False,
},
),
migrations.CreateModel(
name='GoalFiles',
fields=[
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('created_at', models.DateTimeField(auto_now_add=True)),
('updated_at', models.DateTimeField(blank=True, null=True)),
('deleted_at', models.DateTimeField(blank=True, null=True)),
('is_active', models.BooleanField(default=True)),
('file_path', models.TextField(validators=[django.core.validators.URLValidator()])),
('created_by', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.DO_NOTHING, related_name='goal_file_created_by', to='users.CompanyUsers')),
('deleted_by', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.DO_NOTHING, related_name='goal_file_deleted_by', to='users.CompanyUsers')),
('goal', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='project.Goal')),
('updated_by', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.DO_NOTHING, related_name='goal_file_updated_by', to='users.CompanyUsers')),
],
options={
'abstract': False,
},
),
migrations.CreateModel(
name='Issue',
fields=[
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('created_at', models.DateTimeField(auto_now_add=True)),
('updated_at', models.DateTimeField(blank=True, null=True)),
('deleted_at', models.DateTimeField(blank=True, null=True)),
('is_active', models.BooleanField(default=True)),
('title', models.CharField(max_length=255)),
('description', models.TextField(blank=True, null=True)),
('target_date', models.DateField(blank=True, null=True)),
('created_by', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.DO_NOTHING, related_name='issue_created_by', to='users.CompanyUsers')),
('deleted_by', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.DO_NOTHING, related_name='issue_deleted_by', to='users.CompanyUsers')),
],
options={
'abstract': False,
},
),
migrations.CreateModel(
name='IssueComments',
fields=[
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('created_at', models.DateTimeField(auto_now_add=True)),
('updated_at', models.DateTimeField(blank=True, null=True)),
('deleted_at', models.DateTimeField(blank=True, null=True)),
('is_active', models.BooleanField(default=True)),
('comment', models.TextField()),
('add_file', models.TextField(validators=[django.core.validators.URLValidator()])),
('created_by', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.DO_NOTHING, related_name='issue_comment_created_by', to='users.CompanyUsers')),
('deleted_by', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.DO_NOTHING, related_name='issue_comment_deleted_by', to='users.CompanyUsers')),
('updated_by', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.DO_NOTHING, related_name='issue_comment_updated_by', to='users.CompanyUsers')),
],
options={
'abstract': False,
},
),
migrations.CreateModel(
name='IssueDetails',
fields=[
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('created_at', models.DateTimeField(auto_now_add=True)),
('updated_at', models.DateTimeField(blank=True, null=True)),
('deleted_at', models.DateTimeField(blank=True, null=True)),
('is_active', models.BooleanField(default=True)),
('key', models.CharField(max_length=255)),
('value', models.TextField(blank=True, null=True)),
('created_by', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.DO_NOTHING, related_name='issue_detail_created_by', to='users.CompanyUsers')),
('deleted_by', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.DO_NOTHING, related_name='issue_detail_deleted_by', to='users.CompanyUsers')),
('issue', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='project.Issue')),
('updated_by', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.DO_NOTHING, related_name='issue_detail_updated_by', to='users.CompanyUsers')),
],
options={
'abstract': False,
},
),
migrations.CreateModel(
name='IssueFiles',
fields=[
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('created_at', models.DateTimeField(auto_now_add=True)),
('updated_at', models.DateTimeField(blank=True, null=True)),
('deleted_at', models.DateTimeField(blank=True, null=True)),
('is_active', models.BooleanField(default=True)),
('file_path', models.TextField(validators=[django.core.validators.URLValidator()])),
('created_by', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.DO_NOTHING, related_name='issue_file_created_by', to='users.CompanyUsers')),
('deleted_by', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.DO_NOTHING, related_name='issue_file_deleted_by', to='users.CompanyUsers')),
('issue', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='project.Issue')),
('updated_by', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.DO_NOTHING, related_name='issue_file_updated_by', to='users.CompanyUsers')),
],
options={
'abstract': False,
},
),
migrations.CreateModel(
name='Project',
fields=[
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('created_at', models.DateTimeField(auto_now_add=True)),
('updated_at', models.DateTimeField(blank=True, null=True)),
('deleted_at', models.DateTimeField(blank=True, null=True)),
('is_active', models.BooleanField(default=True)),
('title', models.CharField(max_length=60)),
('start_date', models.DateField(blank=True, null=True)),
('end_date', models.DateField(blank=True, null=True)),
('description', models.TextField(blank=True, null=True)),
('enabled', models.BooleanField(default=True)),
('created_by', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.DO_NOTHING, related_name='project_created_by', to='users.CompanyUsers')),
('deleted_by', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.DO_NOTHING, related_name='project_deleted_by', to='users.CompanyUsers')),
('updated_by', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.DO_NOTHING, related_name='project_updated_by', to='users.CompanyUsers')),
],
options={
'abstract': False,
},
),
migrations.CreateModel(
name='ProjectDetails',
fields=[
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('created_at', models.DateTimeField(auto_now_add=True)),
('updated_at', models.DateTimeField(blank=True, null=True)),
('deleted_at', models.DateTimeField(blank=True, null=True)),
('is_active', models.BooleanField(default=True)),
('key', models.CharField(max_length=60)),
('value', models.TextField(blank=True, null=True)),
('created_by', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.DO_NOTHING, related_name='project_detail_created_by', to='users.CompanyUsers')),
('deleted_by', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.DO_NOTHING, related_name='project_detail_deleted_by', to='users.CompanyUsers')),
('project', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='project.Project')),
('updated_by', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.DO_NOTHING, related_name='project_detail_updated_by', to='users.CompanyUsers')),
],
options={
'abstract': False,
},
),
migrations.CreateModel(
name='ProjectFiles',
fields=[
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('created_at', models.DateTimeField(auto_now_add=True)),
('updated_at', models.DateTimeField(blank=True, null=True)),
('deleted_at', models.DateTimeField(blank=True, null=True)),
('is_active', models.BooleanField(default=True)),
('file_path', models.TextField(validators=[django.core.validators.URLValidator()])),
('created_by', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.DO_NOTHING, related_name='project_file_created_by', to='users.CompanyUsers')),
('deleted_by', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.DO_NOTHING, related_name='project_file_deleted_by', to='users.CompanyUsers')),
('project', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='project.Project')),
('updated_by', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.DO_NOTHING, related_name='project_file_updated_by', to='users.CompanyUsers')),
],
options={
'abstract': False,
},
),
migrations.CreateModel(
name='Task',
fields=[
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('created_at', models.DateTimeField(auto_now_add=True)),
('updated_at', models.DateTimeField(blank=True, null=True)),
('deleted_at', models.DateTimeField(blank=True, null=True)),
('is_active', models.BooleanField(default=True)),
('title', models.CharField(max_length=60)),
('description', models.TextField(blank=True, null=True)),
('start_date', models.DateField(blank=True, null=True)),
('end_date', models.DateField(blank=True, null=True)),
('status', models.CharField(choices=[('Open', 'Open'), ('Selected for Development', 'Selected for Development'), ('In Progress', 'In Progress'), ('Done', 'Done')], default='Open', max_length=20)),
('priority', models.CharField(choices=[('High', 'High'), ('Medium', 'Medium'), ('Low', 'Low')], default='Low', max_length=20)),
('enabled', models.BooleanField(default=True)),
('assignee', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='assignee', to='users.CompanyUsers')),
('deleted_by', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.DO_NOTHING, related_name='task_deleted_by', to='users.CompanyUsers')),
('goal', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='project.Goal')),
('reporter', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='reporter', to='users.CompanyUsers')),
('updated_by', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.DO_NOTHING, related_name='task_updated_by', to='users.CompanyUsers')),
],
options={
'abstract': False,
},
),
migrations.CreateModel(
name='TaskComments',
fields=[
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('created_at', models.DateTimeField(auto_now_add=True)),
('updated_at', models.DateTimeField(blank=True, null=True)),
('deleted_at', models.DateTimeField(blank=True, null=True)),
('is_active', models.BooleanField(default=True)),
('comment', models.TextField()),
('add_file', models.TextField(validators=[django.core.validators.URLValidator()])),
('created_by', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.DO_NOTHING, related_name='task_comment_created_by', to='users.CompanyUsers')),
('deleted_by', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.DO_NOTHING, related_name='task_comment_deleted_by', to='users.CompanyUsers')),
('updated_by', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.DO_NOTHING, related_name='task_comment_updated_by', to='users.CompanyUsers')),
],
options={
'abstract': False,
},
),
migrations.CreateModel(
name='TaskDetails',
fields=[
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('created_at', models.DateTimeField(auto_now_add=True)),
('updated_at', models.DateTimeField(blank=True, null=True)),
('deleted_at', models.DateTimeField(blank=True, null=True)),
('is_active', models.BooleanField(default=True)),
('key', models.CharField(max_length=255)),
('value', models.TextField(blank=True, null=True)),
('created_by', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.DO_NOTHING, related_name='task_detail_created_by', to='users.CompanyUsers')),
('deleted_by', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.DO_NOTHING, related_name='task_detail_deleted_by', to='users.CompanyUsers')),
('task', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='project.Task')),
('updated_by', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.DO_NOTHING, related_name='task_detail_updated_by', to='users.CompanyUsers')),
],
options={
'abstract': False,
},
),
migrations.CreateModel(
name='TaskFiles',
fields=[
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('created_at', models.DateTimeField(auto_now_add=True)),
('updated_at', models.DateTimeField(blank=True, null=True)),
('deleted_at', models.DateTimeField(blank=True, null=True)),
('is_active', models.BooleanField(default=True)),
('file_path', models.TextField(validators=[django.core.validators.URLValidator()])),
('created_by', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.DO_NOTHING, related_name='task_file_created_by', to='users.CompanyUsers')),
('deleted_by', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.DO_NOTHING, related_name='task_file_deleted_by', to='users.CompanyUsers')),
('task', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='project.Task')),
('updated_by', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.DO_NOTHING, related_name='task_file_updated_by', to='users.CompanyUsers')),
],
options={
'abstract': False,
},
),
migrations.AddField(
model_name='issue',
name='task',
field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='project.Task'),
),
migrations.AddField(
model_name='issue',
name='updated_by',
field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.DO_NOTHING, related_name='issue_updated_by', to='users.CompanyUsers'),
),
migrations.AddField(
model_name='goal',
name='project',
field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='project.Project'),
),
migrations.AddField(
model_name='goal',
name='updated_by',
field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.DO_NOTHING, related_name='goal_updated_by', to='users.CompanyUsers'),
),
]
| 68.255738
| 212
| 0.621866
| 2,267
| 20,818
| 5.514336
| 0.050728
| 0.063355
| 0.091513
| 0.11967
| 0.950164
| 0.939845
| 0.929926
| 0.923046
| 0.920486
| 0.920486
| 0
| 0.002683
| 0.230185
| 20,818
| 304
| 213
| 68.480263
| 0.777362
| 0.002162
| 0
| 0.693603
| 1
| 0
| 0.169274
| 0.026431
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.010101
| 0
| 0.023569
| 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
|
634c98542f571eb7d8f454d93bfd4746dcacd671
| 146
|
py
|
Python
|
omtool/core/utils/__init__.py
|
Kraysent/OMTool
|
abb293ee359720d622ed0c4ecdf90967171007c8
|
[
"Apache-2.0"
] | null | null | null |
omtool/core/utils/__init__.py
|
Kraysent/OMTool
|
abb293ee359720d622ed0c4ecdf90967171007c8
|
[
"Apache-2.0"
] | 51
|
2021-12-05T13:31:51.000Z
|
2022-03-27T16:05:04.000Z
|
omtool/core/utils/__init__.py
|
Kraysent/OMTool
|
abb293ee359720d622ed0c4ecdf90967171007c8
|
[
"Apache-2.0"
] | null | null | null |
from omtool.core.utils.galactic_utils import get_galactic_basis
from omtool.core.utils.math import *
from omtool.core.utils.config_utils import *
| 36.5
| 63
| 0.842466
| 23
| 146
| 5.173913
| 0.434783
| 0.252101
| 0.352941
| 0.478992
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.082192
| 146
| 3
| 64
| 48.666667
| 0.88806
| 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
|
634e6e52f0d5c9684b49f2e36ddb4be9d33164a1
| 274
|
py
|
Python
|
data/lib/customOS/encoding.py
|
Synell/PERT-Maker
|
8eac93eaa788ee0a201437e5bd30d55133d7cd38
|
[
"MIT"
] | 2
|
2022-01-20T06:16:00.000Z
|
2022-01-20T07:30:26.000Z
|
data/lib/customOS/encoding.py
|
Synell/PERT-Maker
|
8eac93eaa788ee0a201437e5bd30d55133d7cd38
|
[
"MIT"
] | null | null | null |
data/lib/customOS/encoding.py
|
Synell/PERT-Maker
|
8eac93eaa788ee0a201437e5bd30d55133d7cd38
|
[
"MIT"
] | null | null | null |
#----------------------------------------------------------------------
# Function
def utf8a(s):
return s.encode('utf-8').decode()
def cp1252(s):
return s.encode('cp1252').decode()
#----------------------------------------------------------------------
| 27.4
| 72
| 0.273723
| 18
| 274
| 4.166667
| 0.555556
| 0.186667
| 0.213333
| 0.373333
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.041494
| 0.120438
| 274
| 9
| 73
| 30.444444
| 0.26971
| 0.543796
| 0
| 0
| 0
| 0
| 0.097345
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.5
| false
| 0
| 0
| 0.5
| 1
| 0
| 1
| 0
| 0
| null | 0
| 1
| 1
| 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
| 1
| 0
| 0
| 0
| 1
| 1
| 0
|
0
| 8
|
89b21f072feb088fb4fef42d9282eb99af2fca47
| 12,562
|
py
|
Python
|
test/_test_modbus_controller.py
|
eydam-prototyping/mp_modbus
|
8007c41dd16e6f71bd27b587628f57f38f27a7e0
|
[
"MIT"
] | 2
|
2022-01-06T02:21:16.000Z
|
2022-03-08T07:55:43.000Z
|
test/_test_modbus_controller.py
|
eydam-prototyping/mp_modbus
|
8007c41dd16e6f71bd27b587628f57f38f27a7e0
|
[
"MIT"
] | 2
|
2021-12-10T15:56:52.000Z
|
2022-02-19T23:45:24.000Z
|
test/_test_modbus_controller.py
|
eydam-prototyping/mp_modbus
|
8007c41dd16e6f71bd27b587628f57f38f27a7e0
|
[
"MIT"
] | 3
|
2021-07-30T11:16:55.000Z
|
2022-01-05T18:19:55.000Z
|
import unittest
import mp_modbus
import threading
class Test(unittest.TestCase):
def test_read_write_coil(self):
cl = mp_modbus.modbus_tcp_client("127.0.0.1", 502)
cl.connect()
self.assertTrue(cl.write_coil(2, 1))
self.assertEqual(cl.read_coils(2, 1)[0], 1)
self.assertFalse(cl.write_coil(2, 0))
self.assertEqual(cl.read_coils(2, 1)[0], 0)
self.assertTrue(cl.write_coil(2, 1))
self.assertTrue(cl.write_coil(3, 1))
self.assertTrue(cl.write_coil(4, 1))
self.assertTrue(cl.write_coil(5, 1))
self.assertEqual(cl.read_coils(2, 4)[0], 0x0F)
cl.disconnect()
def test_read_inputs(self):
cl = mp_modbus.modbus_tcp_client("127.0.0.1", 502)
cl.connect()
self.assertEqual(cl.read_digital_inputs(10,5)[0], 0x1F)
cl.disconnect()
def test_read_holding_registers(self):
cl = mp_modbus.modbus_tcp_client("127.0.0.1", 502)
cl.connect()
self.assertEqual(cl.read_holding_registers(5,3), bytearray([0x00, 0x11, 0x00, 0x11, 0x00, 0x11]))
cl.disconnect()
def test_read_input_registers(self):
cl = mp_modbus.modbus_tcp_client("127.0.0.1", 502)
cl.connect()
self.assertEqual(cl.read_input_registers(15,3), bytearray([0x00, 0x11, 0x00, 0x11, 0x00, 0x11]))
cl.disconnect()
def test_write_register(self):
cl = mp_modbus.modbus_tcp_client("127.0.0.1", 502)
cl.connect()
self.assertEqual(cl.write_holding_register(20,bytearray([0x12, 0x34])), bytearray([0x12, 0x34]))
cl.disconnect()
def test_write_coils(self):
cl = mp_modbus.modbus_tcp_client("127.0.0.1", 502)
cl.connect()
self.assertEqual(cl.write_coils(25, 15, bytearray([0x12, 0x34])), 15)
cl.disconnect()
def test_write_registers(self):
cl = mp_modbus.modbus_tcp_client("127.0.0.1", 502)
cl.connect()
self.assertEqual(cl.write_registers(30, bytearray([0x12, 0x34, 0x56, 0x78])), 2)
self.assertEqual(cl.write_registers(40, bytearray([0x12, 0x34, 0x56, 0x78, 0x9A, 0xBC])), 3)
cl.disconnect()
def test_server_handle_message_1(self):
srv = mp_modbus.modbus_tcp_server("", 0, context={"co":{"startAddr": 1000, "registers": bytearray([0xFF, 0x00, 0x00, 0x00]*5)}})
msg = mp_modbus.modbus_tcp_frame(transaction_id=1, unit_id=2, func_code=1, register=1000, length=2, fr_type="request")
self.assertEqual(srv.handle_message(msg).data, bytearray([0x01]))
msg = mp_modbus.modbus_tcp_frame(transaction_id=1, unit_id=2, func_code=1, register=1001, length=2, fr_type="request")
self.assertEqual(srv.handle_message(msg).data, bytearray([0x02]))
msg = mp_modbus.modbus_tcp_frame(transaction_id=1, unit_id=2, func_code=1, register=1000, length=3, fr_type="request")
self.assertEqual(srv.handle_message(msg).data, bytearray([0x05]))
def test_server_handle_message_2(self):
srv = mp_modbus.modbus_tcp_server("", 0, context={"di":{"startAddr": 1000, "registers": bytearray([0xFF, 0x00, 0x00, 0x00]*5)}})
msg = mp_modbus.modbus_tcp_frame(transaction_id=1, unit_id=2, func_code=2, register=1000, length=2, fr_type="request")
self.assertEqual(srv.handle_message(msg).data, bytearray([0x01]))
msg = mp_modbus.modbus_tcp_frame(transaction_id=1, unit_id=2, func_code=2, register=1001, length=2, fr_type="request")
self.assertEqual(srv.handle_message(msg).data, bytearray([0x02]))
msg = mp_modbus.modbus_tcp_frame(transaction_id=1, unit_id=2, func_code=2, register=1000, length=3, fr_type="request")
self.assertEqual(srv.handle_message(msg).data, bytearray([0x05]))
def test_server_handle_message_3(self):
srv = mp_modbus.modbus_tcp_server("", 0, context={"hr":{"startAddr": 1000, "registers": bytearray([0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08, 0x09, 0x0A, 0x0B, 0x0C, 0x0D, 0x0E, 0x0F])}})
msg = mp_modbus.modbus_tcp_frame(transaction_id=1, unit_id=2, func_code=3, register=1000, length=2, fr_type="request")
self.assertEqual(srv.handle_message(msg).data, bytearray([0x00, 0x01, 0x02, 0x03]))
msg = mp_modbus.modbus_tcp_frame(transaction_id=1, unit_id=2, func_code=3, register=1001, length=2, fr_type="request")
self.assertEqual(srv.handle_message(msg).data, bytearray([0x02, 0x03, 0x04, 0x05]))
msg = mp_modbus.modbus_tcp_frame(transaction_id=1, unit_id=2, func_code=3, register=1000, length=3, fr_type="request")
self.assertEqual(srv.handle_message(msg).data, bytearray([0x00, 0x01, 0x02, 0x03, 0x04, 0x05]))
def test_server_handle_message_4(self):
srv = mp_modbus.modbus_tcp_server("", 0, context={"ir":{"startAddr": 1000, "registers": bytearray([0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08, 0x09, 0x0A, 0x0B, 0x0C, 0x0D, 0x0E, 0x0F])}})
msg = mp_modbus.modbus_tcp_frame(transaction_id=1, unit_id=2, func_code=4, register=1000, length=2, fr_type="request")
self.assertEqual(srv.handle_message(msg).data, bytearray([0x00, 0x01, 0x02, 0x03]))
msg = mp_modbus.modbus_tcp_frame(transaction_id=1, unit_id=2, func_code=4, register=1001, length=2, fr_type="request")
self.assertEqual(srv.handle_message(msg).data, bytearray([0x02, 0x03, 0x04, 0x05]))
msg = mp_modbus.modbus_tcp_frame(transaction_id=1, unit_id=2, func_code=4, register=1000, length=3, fr_type="request")
self.assertEqual(srv.handle_message(msg).data, bytearray([0x00, 0x01, 0x02, 0x03, 0x04, 0x05]))
def test_server_handle_message_5(self):
srv = mp_modbus.modbus_tcp_server("", 0, context={"co":{"startAddr": 1000, "registers": bytearray([0xFF, 0x00]*3)}})
msg = mp_modbus.modbus_tcp_frame(transaction_id=1, unit_id=2, func_code=5, register=1000, fr_type="request", data=bytearray([0xFF, 0x00]))
srv.handle_message(msg)
self.assertEqual(srv.context["co"]["registers"], bytearray([0xFF, 0x00, 0xFF, 0x00, 0xFF, 0x00]))
msg = mp_modbus.modbus_tcp_frame(transaction_id=1, unit_id=2, func_code=5, register=1001, fr_type="request", data=bytearray([0x00, 0x00]))
srv.handle_message(msg)
self.assertEqual(srv.context["co"]["registers"], bytearray([0xFF, 0x00, 0x00, 0x00, 0xFF, 0x00]))
def test_server_handle_message_6(self):
srv = mp_modbus.modbus_tcp_server("", 0, context={"hr":{"startAddr": 1000, "registers": bytearray([0x00, 0x00]*3)}})
msg = mp_modbus.modbus_tcp_frame(transaction_id=1, unit_id=2, func_code=6, register=1000, fr_type="request", data=bytearray([0xFF, 0x00]))
srv.handle_message(msg)
self.assertEqual(srv.context["hr"]["registers"], bytearray([0xFF, 0x00, 0x00, 0x00, 0x00, 0x00]))
msg = mp_modbus.modbus_tcp_frame(transaction_id=1, unit_id=2, func_code=6, register=1001, fr_type="request", data=bytearray([0xAB, 0xCD]))
srv.handle_message(msg)
self.assertEqual(srv.context["hr"]["registers"], bytearray([0xFF, 0x00, 0xAB, 0xCD, 0x00, 0x00]))
def test_server_handle_message_15(self):
srv = mp_modbus.modbus_tcp_server("", 0, context={"co":{"startAddr": 1000, "registers": bytearray([0xFF, 0x00]*4)}})
msg = mp_modbus.modbus_tcp_frame(transaction_id=1, unit_id=2, func_code=15, register=1000, fr_type="request", data=bytearray([0x0f]), length=4)
self.assertEqual(srv.handle_message(msg).get_frame(), bytearray([0x00, 0x01, 0x00, 0x00, 0x00, 0x06, 0x02, 0x0f, 0x03, 0xe8, 0x00, 0x04]))
self.assertEqual(srv.context["co"]["registers"], bytearray([0xFF, 0x00, 0xFF, 0x00, 0xFF, 0x00, 0xFF, 0x00]))
msg = mp_modbus.modbus_tcp_frame(transaction_id=1, unit_id=2, func_code=15, register=1000, fr_type="request", data=bytearray([0x00]), length=2)
self.assertEqual(srv.handle_message(msg).get_frame(), bytearray([0x00, 0x01, 0x00, 0x00, 0x00, 0x06, 0x02, 0x0f, 0x03, 0xe8, 0x00, 0x02]))
self.assertEqual(srv.context["co"]["registers"], bytearray([0x00, 0x00, 0x00, 0x00, 0xFF, 0x00, 0xFF, 0x00]))
def test_server_handle_message_16(self):
srv = mp_modbus.modbus_tcp_server("", 0, context={"hr":{"startAddr": 1000, "registers": bytearray([0x00, 0x00]*4)}})
msg = mp_modbus.modbus_tcp_frame(transaction_id=1, unit_id=2, func_code=16, register=1000, fr_type="request", data=bytearray([0xAB, 0xCD, 0x12, 0x34]), length=2)
self.assertEqual(srv.handle_message(msg).get_frame(), bytearray([0x00, 0x01, 0x00, 0x00, 0x00, 0x06, 0x02, 0x10, 0x03, 0xe8, 0x00, 0x02]))
self.assertEqual(srv.context["hr"]["registers"], bytearray([0xAB, 0xCD, 0x12, 0x34, 0x00, 0x00, 0x00, 0x00]))
msg = mp_modbus.modbus_tcp_frame(transaction_id=1, unit_id=2, func_code=16, register=1001, fr_type="request", data=bytearray([0xAB, 0xCD]), length=1)
self.assertEqual(srv.handle_message(msg).get_frame(), bytearray([0x00, 0x01, 0x00, 0x00, 0x00, 0x06, 0x02, 0x10, 0x03, 0xe9, 0x00, 0x01]))
self.assertEqual(srv.context["hr"]["registers"], bytearray([0xAB, 0xCD, 0xAB, 0xCD, 0x00, 0x00, 0x00, 0x00]))
def test_tcp_server(self):
srv = mp_modbus.modbus_tcp_server("127.0.0.1", 503, context={
"co":{"startAddr": 1000, "registers": bytearray([0xFF, 0x00, 0x00, 0x00]*5)}, # Coils: ON OFF ON OFF ON OFF ON OFF ON OFF
"di":{"startAddr": 1000, "registers": bytearray([0xFF, 0x00, 0x00, 0x00]*5)}, # Digital Inputs: ON OFF ON OFF ON OFF ON OFF ON OFF
"hr":{"startAddr": 1000, "registers": bytearray([0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08, 0x09, 0x0A, 0x0B, 0x0C, 0x0D, 0x0E, 0x0F])},
"ir":{"startAddr": 1000, "registers": bytearray([0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08, 0x09, 0x0A, 0x0B, 0x0C, 0x0D, 0x0E, 0x0F])}
})
t = threading.Thread(target=srv.run)
t.start()
cl = mp_modbus.modbus_tcp_client("127.0.0.1", 503)
cl.connect()
self.assertEqual(cl.read_coils(1000, 1), bytearray([0x01]))
self.assertEqual(cl.read_coils(1001, 1), bytearray([0x00]))
self.assertEqual(cl.read_coils(1000, 2), bytearray([0x01]))
self.assertEqual(cl.read_coils(1001, 2), bytearray([0x02]))
self.assertEqual(cl.read_coils(1000, 3), bytearray([0x05]))
self.assertEqual(cl.write_coil(1001, 1), True)
self.assertEqual(cl.read_coils(1000, 3), bytearray([0x07]))
self.assertEqual(cl.write_coil(1001, 0), False)
self.assertEqual(cl.read_coils(1000, 3), bytearray([0x05]))
self.assertEqual(cl.write_coils(1000, 3, bytearray([0x07])), 3)
self.assertEqual(cl.read_coils(1000, 3), bytearray([0x07]))
self.assertEqual(cl.write_coils(1000, 3, bytearray([0x00])), 3)
self.assertEqual(cl.read_coils(1000, 3), bytearray([0x00]))
self.assertEqual(cl.read_digital_inputs(1000, 1), bytearray([0x01]))
self.assertEqual(cl.read_digital_inputs(1000, 2), bytearray([0x01]))
self.assertEqual(cl.read_digital_inputs(1000, 3), bytearray([0x05]))
self.assertEqual(cl.read_digital_inputs(1001, 1), bytearray([0x00]))
self.assertEqual(cl.read_digital_inputs(1001, 2), bytearray([0x02]))
self.assertEqual(cl.read_digital_inputs(1001, 3), bytearray([0x02]))
self.assertEqual(cl.read_holding_registers(1000, 1), bytearray([0x00, 0x01]))
self.assertEqual(cl.read_holding_registers(1000, 2), bytearray([0x00, 0x01, 0x02, 0x03]))
self.assertEqual(cl.read_holding_registers(1001, 2), bytearray([0x02, 0x03, 0x04, 0x05]))
self.assertEqual(cl.read_holding_registers(1002, 3), bytearray([0x04, 0x05, 0x06, 0x07, 0x08, 0x09]))
self.assertEqual(cl.write_holding_register(1000, bytearray([0xFF, 0xEE])), bytearray([0xFF, 0xEE]))
self.assertEqual(cl.read_holding_registers(1000, 1), bytearray([0xFF, 0xEE]))
self.assertEqual(cl.write_holding_register(1001, bytearray([0xFF, 0xEE])), bytearray([0xFF, 0xEE]))
self.assertEqual(cl.read_holding_registers(1000, 2), bytearray([0xFF, 0xEE, 0xFF, 0xEE]))
self.assertEqual(cl.read_input_registers(1000, 1), bytearray([0x00, 0x01]))
self.assertEqual(cl.read_input_registers(1000, 2), bytearray([0x00, 0x01, 0x02, 0x03]))
self.assertEqual(cl.read_input_registers(1001, 2), bytearray([0x02, 0x03, 0x04, 0x05]))
self.assertEqual(cl.read_input_registers(1002, 3), bytearray([0x04, 0x05, 0x06, 0x07, 0x08, 0x09]))
cl.disconnect()
| 63.444444
| 206
| 0.673937
| 1,789
| 12,562
| 4.544438
| 0.062605
| 0.119926
| 0.085732
| 0.077368
| 0.945141
| 0.911193
| 0.867405
| 0.837638
| 0.770357
| 0.714145
| 0
| 0.132398
| 0.166056
| 12,562
| 198
| 207
| 63.444444
| 0.643662
| 0.007324
| 0
| 0.290323
| 0
| 0
| 0.044033
| 0
| 0
| 0
| 0.107475
| 0
| 0.458065
| 1
| 0.103226
| false
| 0
| 0.019355
| 0
| 0.129032
| 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
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
98b0d71f570debe099b11a2a3220cc08bfa0838a
| 16,688
|
py
|
Python
|
src/the_tale/the_tale/game/actions/tests/test_meta_action_arena_pvp_1x1.py
|
Alacrate/the-tale
|
43b211f3a99e93964e95abc20a8ed649a205ffcf
|
[
"BSD-3-Clause"
] | 85
|
2017-11-21T12:22:02.000Z
|
2022-03-27T23:07:17.000Z
|
src/the_tale/the_tale/game/actions/tests/test_meta_action_arena_pvp_1x1.py
|
Alacrate/the-tale
|
43b211f3a99e93964e95abc20a8ed649a205ffcf
|
[
"BSD-3-Clause"
] | 545
|
2017-11-04T14:15:04.000Z
|
2022-03-27T14:19:27.000Z
|
src/the_tale/the_tale/game/actions/tests/test_meta_action_arena_pvp_1x1.py
|
Alacrate/the-tale
|
43b211f3a99e93964e95abc20a8ed649a205ffcf
|
[
"BSD-3-Clause"
] | 45
|
2017-11-11T12:36:30.000Z
|
2022-02-25T06:10:44.000Z
|
import smart_imports
smart_imports.all()
class ArenaPvP1x1Test(pvp_helpers.PvPTestsMixin, utils_testcase.TestCase):
def setUp(self):
super(ArenaPvP1x1Test, self).setUp()
game_logic.create_test_map()
pvp_tt_services.matchmaker.cmd_debug_clear_service()
self.battle_info = self.create_pvp_battle()
battles = pvp_tt_services.matchmaker.cmd_get_battles_by_participants(participants_ids=(self.battle_info.hero_1.id,))
self.assertEqual(len(battles), 1)
self.assertEqual(set(battles[0].participants_ids), {self.battle_info.hero_1.id, self.battle_info.hero_2.id})
def test_serialization(self):
self.assertEqual(self.battle_info.meta_action.serialize(),
meta_actions.ArenaPvP1x1.deserialize(self.battle_info.meta_action.serialize()).serialize())
def test_initialization(self):
self.assertTrue(self.battle_info.meta_action.storage)
heroes_ids = (self.battle_info.hero_1.id, self.battle_info.hero_2.id)
self.assertTrue(self.battle_info.meta_action.hero_1.id in heroes_ids)
self.assertTrue(self.battle_info.meta_action.hero_2.id in heroes_ids)
self.assertEqual(self.battle_info.meta_action.uid,
'%s#%d#%d' % (self.battle_info.meta_action.TYPE.value,
min(self.battle_info.hero_1.id, self.battle_info.hero_2.id),
max(self.battle_info.hero_1.id, self.battle_info.hero_2.id)))
self.assertEqual(self.battle_info.meta_action.hero_1.health, self.battle_info.hero_1.max_health)
self.assertEqual(self.battle_info.meta_action.hero_1_pvp.advantage, 0)
self.assertEqual(self.battle_info.meta_action.hero_1_pvp.effectiveness, c.PVP_EFFECTIVENESS_INITIAL)
self.assertEqual(self.battle_info.meta_action.hero_1_pvp.energy, 0)
self.assertEqual(self.battle_info.meta_action.hero_1_pvp.energy_speed, 1)
self.assertEqual(self.battle_info.meta_action.hero_1_pvp.turn_advantage, 0)
self.assertEqual(self.battle_info.meta_action.hero_1_pvp.turn_effectiveness, c.PVP_EFFECTIVENESS_INITIAL)
self.assertEqual(self.battle_info.meta_action.hero_1_pvp.turn_energy, 0)
self.assertEqual(self.battle_info.meta_action.hero_1_pvp.turn_energy_speed, 1)
self.assertTrue(self.battle_info.meta_action.hero_1_context.pvp_advantage_strike_damage.total > 0)
self.assertEqual(self.battle_info.meta_action.hero_2.health, self.battle_info.hero_2.max_health)
self.assertEqual(self.battle_info.meta_action.hero_2_pvp.advantage, 0)
self.assertEqual(self.battle_info.meta_action.hero_2_pvp.effectiveness, c.PVP_EFFECTIVENESS_INITIAL)
self.assertEqual(self.battle_info.meta_action.hero_2_pvp.energy, 0)
self.assertEqual(self.battle_info.meta_action.hero_2_pvp.energy_speed, 1)
self.assertEqual(self.battle_info.meta_action.hero_2_pvp.turn_advantage, 0)
self.assertEqual(self.battle_info.meta_action.hero_2_pvp.turn_effectiveness, c.PVP_EFFECTIVENESS_INITIAL)
self.assertEqual(self.battle_info.meta_action.hero_2_pvp.turn_energy, 0)
self.assertEqual(self.battle_info.meta_action.hero_2_pvp.turn_energy_speed, 1)
self.assertTrue(self.battle_info.meta_action.hero_2_context.pvp_advantage_strike_damage.total > 0)
def test_is_valid(self):
self.assertTrue(self.battle_info.meta_action.is_valid())
heroes_ids = (self.battle_info.hero_1.id, self.battle_info.hero_2.id)
self.battle_info.meta_action.storage.release_account_data(random.choice(heroes_ids))
self.assertFalse(self.battle_info.meta_action.is_valid())
def test_restore_health_restore(self):
account_1 = self.accounts_factory.create_account()
account_2 = self.accounts_factory.create_account()
hero_1 = heroes_logic.load_hero(account_id=account_1.id)
hero_1.health = hero_1.max_health / 2
heroes_logic.save_hero(hero_1)
supervisor_task = game_prototypes.SupervisorTaskPrototype.create_arena_pvp_1x1(account_1, account_2)
supervisor_task.capture_member(account_1.id)
supervisor_task.capture_member(account_2.id)
supervisor_task.process(bundle_id=100500)
storage = game_logic_storage.LogicStorage()
storage.load_account_data(account_1.id)
storage.load_account_data(account_2.id)
hero_1 = storage.accounts_to_heroes[account_1.id]
self.assertEqual(hero_1.health, hero_1.max_health)
hero_1.actions.current_action.meta_action.process_battle_ending()
self.assertEqual(hero_1.health, hero_1.max_health / 2)
def test_one_hero_killed(self):
self.battle_info.meta_action.hero_1.health = 0
self.battle_info.meta_action.process()
self.assertEqual(self.battle_info.meta_action.state, meta_actions.ArenaPvP1x1.STATE.BATTLE_ENDING)
game_turn.increment()
self.battle_info.meta_action.process()
self.assertEqual(self.battle_info.meta_action.state, meta_actions.ArenaPvP1x1.STATE.PROCESSED)
self.assertTrue(self.battle_info.meta_action.hero_1.is_alive and self.battle_info.meta_action.hero_2.is_alive)
self.assertEqual(self.battle_info.meta_action.hero_1.health, self.battle_info.meta_action.hero_1.max_health)
self.assertEqual(self.battle_info.meta_action.hero_2.health, self.battle_info.meta_action.hero_2.max_health)
def check_hero_pvp_statistics(self, hero, battles, victories, draws, defeats):
self.assertEqual(hero.statistics.pvp_battles_1x1_number, battles)
self.assertEqual(hero.statistics.pvp_battles_1x1_victories, victories)
self.assertEqual(hero.statistics.pvp_battles_1x1_draws, draws)
self.assertEqual(hero.statistics.pvp_battles_1x1_defeats, defeats)
def _end_battle(self, hero_1_health, hero_2_health):
self.battle_info.meta_action.hero_1.health = hero_1_health
self.battle_info.meta_action.hero_2.health = hero_2_health
self.battle_info.meta_action.process()
game_turn.increment()
self.battle_info.meta_action.process()
def test_hero_1_win(self):
self._end_battle(hero_1_health=self.battle_info.meta_action.hero_1.max_health, hero_2_health=0)
battles = pvp_tt_services.matchmaker.cmd_get_battles_by_participants(participants_ids=(self.battle_info.meta_action.hero_1.id,))
self.assertFalse(battles)
self.check_hero_pvp_statistics(self.battle_info.meta_action.hero_1, 1, 1, 0, 0)
self.check_hero_pvp_statistics(self.battle_info.meta_action.hero_2, 1, 0, 0, 1)
def test_hero_2_win(self):
self._end_battle(hero_1_health=0, hero_2_health=self.battle_info.meta_action.hero_2.max_health)
battles = pvp_tt_services.matchmaker.cmd_get_battles_by_participants(participants_ids=(self.battle_info.meta_action.hero_1.id,))
self.assertFalse(battles)
self.check_hero_pvp_statistics(self.battle_info.meta_action.hero_1, 1, 0, 0, 1)
self.check_hero_pvp_statistics(self.battle_info.meta_action.hero_2, 1, 1, 0, 0)
def test_draw(self):
self._end_battle(hero_1_health=0, hero_2_health=0)
battles = pvp_tt_services.matchmaker.cmd_get_battles_by_participants(participants_ids=(self.battle_info.meta_action.hero_1.id,))
self.assertFalse(battles)
self.check_hero_pvp_statistics(self.battle_info.meta_action.hero_1, 1, 0, 1, 0)
self.check_hero_pvp_statistics(self.battle_info.meta_action.hero_2, 1, 0, 1, 0)
@mock.patch('the_tale.game.pvp.logic.calculate_rating_required', lambda *argv, **kwargs: False)
def test_hero_1_win_no_stats(self):
self._end_battle(hero_1_health=self.battle_info.meta_action.hero_1.max_health, hero_2_health=0)
self.check_hero_pvp_statistics(self.battle_info.meta_action.hero_1, 0, 0, 0, 0)
self.check_hero_pvp_statistics(self.battle_info.meta_action.hero_2, 0, 0, 0, 0)
@mock.patch('the_tale.game.pvp.logic.calculate_rating_required', lambda *argv, **kwargs: False)
def test_hero_2_win_no_stats(self):
self._end_battle(hero_1_health=0, hero_2_health=self.battle_info.meta_action.hero_1.max_health)
self.check_hero_pvp_statistics(self.battle_info.meta_action.hero_1, 0, 0, 0, 0)
self.check_hero_pvp_statistics(self.battle_info.meta_action.hero_2, 0, 0, 0, 0)
@mock.patch('the_tale.game.pvp.logic.calculate_rating_required', lambda *argv, **kwargs: False)
def test_draw_no_stats(self):
self._end_battle(hero_1_health=0, hero_2_health=0)
self.check_hero_pvp_statistics(self.battle_info.meta_action.hero_1, 0, 0, 0, 0)
self.check_hero_pvp_statistics(self.battle_info.meta_action.hero_2, 0, 0, 0, 0)
def test_second_process_call_in_one_turn(self):
with mock.patch('the_tale.game.actions.meta_actions.ArenaPvP1x1._process') as meta_action_process_counter:
self.battle_info.meta_action.process()
self.battle_info.meta_action.process()
self.assertEqual(meta_action_process_counter.call_count, 1)
def test_update_hero_pvp_info(self):
self.battle_info.meta_action.hero_2_pvp.set_effectiveness(50)
self.battle_info.meta_action.update_hero_pvp_info(self.battle_info.meta_action.hero_2_pvp)
self.assertTrue(self.battle_info.meta_action.hero_2_pvp.energy > self.battle_info.meta_action.hero_1_pvp.energy)
self.assertTrue(0 < self.battle_info.meta_action.hero_2_pvp.effectiveness < 50)
def test_advantage_after_turn(self):
self.battle_info.meta_action.hero_1_pvp.set_effectiveness(50)
self.battle_info.meta_action.hero_2_pvp.set_effectiveness(25)
self.battle_info.meta_action.process()
self.assertTrue(self.battle_info.meta_action.hero_1_pvp.advantage > 0)
self.assertTrue(self.battle_info.meta_action.hero_2_pvp.advantage < 0)
def test_full_battle(self):
battles = pvp_tt_services.matchmaker.cmd_get_battles_by_participants(participants_ids=(self.battle_info.meta_action.hero_1.id,))
self.assertEqual(len(battles), 1)
self.assertEqual(set(battles[0].participants_ids), {self.battle_info.meta_action.hero_1.id, self.battle_info.meta_action.hero_2.id})
while self.battle_info.meta_action.state != meta_actions.ArenaPvP1x1.STATE.PROCESSED:
self.battle_info.meta_action.process()
game_turn.increment()
self.assertEqual(self.battle_info.meta_action.state, meta_actions.ArenaPvP1x1.STATE.PROCESSED)
self.assertTrue(self.battle_info.meta_action.hero_1.is_alive and self.battle_info.meta_action.hero_2.is_alive)
self.assertEqual(self.battle_info.meta_action.hero_1.health, self.battle_info.meta_action.hero_1.max_health)
self.assertEqual(self.battle_info.meta_action.hero_2.health, self.battle_info.meta_action.hero_2.max_health)
battles = pvp_tt_services.matchmaker.cmd_get_battles_by_participants(participants_ids=(self.battle_info.meta_action.hero_1.id,))
self.assertEqual(len(battles), 0)
self.assertEqual(pvp_models.Battle1x1Result.objects.all().count(), 1)
battle_result = pvp_models.Battle1x1Result.objects.all()[0]
self.assertNotEqual(battle_result.participant_1_id, battle_result.participant_2_id)
def test_get_bot_pvp_properties(self):
properties = self.battle_info.meta_action.bot_pvp_properties
self.assertEqual(set(properties.keys()), set(('ability_chance', 'priorities')))
self.assertTrue(0 < properties['ability_chance'] <= 1)
self.assertEqual(set(properties['priorities']), set(pvp_abilities.ABILITIES.keys()))
for ability_priority in properties['priorities'].values():
self.assertTrue(ability_priority > 0)
def test_process_bot_called__hero_1(self):
self.battle_info.meta_action.hero_1.is_bot = True
with mock.patch('the_tale.game.actions.meta_actions.ArenaPvP1x1.process_bot') as process_bot:
self.battle_info.meta_action.process()
self.assertEqual(process_bot.call_count, 1)
self.assertEqual(process_bot.call_args[1]['bot'].id, self.battle_info.meta_action.hero_1.id)
self.assertEqual(process_bot.call_args[1]['enemy'].id, self.battle_info.meta_action.hero_2.id)
def test_process_bot_called__hero_2(self):
self.battle_info.meta_action.hero_2.is_bot = True
with mock.patch('the_tale.game.actions.meta_actions.ArenaPvP1x1.process_bot') as process_bot:
self.battle_info.meta_action.process()
self.assertEqual(process_bot.call_count, 1)
self.assertEqual(process_bot.call_args[1]['bot'].id, self.battle_info.meta_action.hero_2.id)
self.assertEqual(process_bot.call_args[1]['enemy'].id, self.battle_info.meta_action.hero_1.id)
def test_process_bot_called__use_ability(self):
self.battle_info.meta_action.hero_1.is_bot = True
self.battle_info.meta_action.hero_1_pvp.set_energy(10)
properties = self.battle_info.meta_action.bot_pvp_properties
properties['ability_chance'] = 1.0
self.battle_info.meta_action.hero_2_pvp.set_energy_speed(2) # flame abilitie will not be used, if enemy energy speed is 1
self.battle_info.meta_action.process()
self.assertTrue(self.battle_info.meta_action.hero_1_pvp.energy in (1, 2))
def test_initialize_bots__bot_is_second(self):
account_1 = self.accounts_factory.create_account()
account_2 = self.accounts_factory.create_account(is_bot=True)
storage = game_logic_storage.LogicStorage()
storage.load_account_data(account_1.id)
storage.load_account_data(account_2.id)
hero_1 = storage.accounts_to_heroes[account_1.id]
hero_2 = storage.accounts_to_heroes[account_2.id]
hero_1.level = 50
self.assertEqual(hero_2.level, 1)
meta_actions.ArenaPvP1x1.create(storage, hero_1, hero_2)
self.assertEqual(hero_2.level, 50)
self.assertTrue(len(hero_2.abilities.all) > 1)
self.assertEqual(hero_2.health, hero_2.max_health)
def test_initialize_bots__bot_is_first(self):
account_1 = self.accounts_factory.create_account(is_bot=True)
account_2 = self.accounts_factory.create_account()
storage = game_logic_storage.LogicStorage()
storage.load_account_data(account_1.id)
storage.load_account_data(account_2.id)
hero_1 = storage.accounts_to_heroes[account_1.id]
hero_2 = storage.accounts_to_heroes[account_2.id]
hero_2.level = 50
self.assertEqual(hero_1.level, 1)
meta_actions.ArenaPvP1x1.create(storage, hero_1, hero_2)
self.assertEqual(hero_1.level, 50)
self.assertTrue(len(hero_1.abilities.all) > 1)
self.assertEqual(hero_1.health, hero_1.max_health)
def test_initialize_bots__second_create(self):
account_1 = self.accounts_factory.create_account()
account_2 = self.accounts_factory.create_account(is_bot=True)
storage = game_logic_storage.LogicStorage()
storage.load_account_data(account_1.id)
storage.load_account_data(account_2.id)
hero_1 = storage.accounts_to_heroes[account_1.id]
hero_2 = storage.accounts_to_heroes[account_2.id]
hero_1.level = 50
self.assertEqual(hero_2.level, 1)
meta_action = meta_actions.ArenaPvP1x1.create(storage, hero_1, hero_2)
meta_action.process_battle_ending()
meta_actions.ArenaPvP1x1.create(storage, hero_1, hero_2)
self.assertEqual(hero_2.level, 50)
self.assertTrue(len(hero_2.abilities.all) > 1)
self.assertEqual(hero_2.health, hero_2.max_health)
def test_process_bot__flame_ability_not_used(self):
account_1 = self.accounts_factory.create_account(is_bot=True)
account_2 = self.accounts_factory.create_account()
storage = game_logic_storage.LogicStorage()
storage.load_account_data(account_1.id)
storage.load_account_data(account_2.id)
hero_1 = storage.accounts_to_heroes[account_1.id]
hero_2 = storage.accounts_to_heroes[account_2.id]
self.battle_info.meta_action.bot_pvp_properties = {'priorities': {pvp_abilities.Flame.TYPE: 1}, 'ability_chance': 1}
self.assertEqual(self.battle_info.meta_action.hero_2_pvp.energy_speed, 1)
with mock.patch('the_tale.game.pvp.abilities.Flame.use') as use:
for i in range(100):
self.battle_info.meta_action.process_bot(hero_1, hero_2, self.battle_info.meta_action.hero_2_pvp)
self.assertEqual(use.call_count, 0)
| 47.68
| 140
| 0.743708
| 2,453
| 16,688
| 4.682022
| 0.072564
| 0.107096
| 0.149935
| 0.170832
| 0.863909
| 0.824554
| 0.79852
| 0.762995
| 0.737397
| 0.667741
| 0
| 0.026996
| 0.15652
| 16,688
| 349
| 141
| 47.816619
| 0.788932
| 0.003535
| 0
| 0.445378
| 0
| 0
| 0.02857
| 0.021352
| 0
| 0
| 0
| 0
| 0.344538
| 1
| 0.109244
| false
| 0
| 0.008403
| 0
| 0.121849
| 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
|
98b293ccc3e8aefd65d07034c127374b6a193c17
| 3,713
|
py
|
Python
|
easy1/scripts/solve.py
|
L1ghtDream/picoctf
|
fa1832497b01c92c9acc26af9314c61b1d4f4d67
|
[
"MIT"
] | null | null | null |
easy1/scripts/solve.py
|
L1ghtDream/picoctf
|
fa1832497b01c92c9acc26af9314c61b1d4f4d67
|
[
"MIT"
] | null | null | null |
easy1/scripts/solve.py
|
L1ghtDream/picoctf
|
fa1832497b01c92c9acc26af9314c61b1d4f4d67
|
[
"MIT"
] | null | null | null |
cryptoMap = [
"A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P", "Q", "R", "S", "T", "U", "V", "W", "X", "Y", "Z",
"B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P", "Q", "R", "S", "T", "U", "V", "W", "X", "Y", "Z", "A",
"C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P", "Q", "R", "S", "T", "U", "V", "W", "X", "Y", "Z", "A", "B",
"D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P", "Q", "R", "S", "T", "U", "V", "W", "X", "Y", "Z", "A", "B", "C",
"E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P", "Q", "R", "S", "T", "U", "V", "W", "X", "Y", "Z", "A", "B", "C", "D",
"F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P", "Q", "R", "S", "T", "U", "V", "W", "X", "Y", "Z", "A", "B", "C", "D", "E",
"G", "H", "I", "J", "K", "L", "M", "N", "O", "P", "Q", "R", "S", "T", "U", "V", "W", "X", "Y", "Z", "A", "B", "C", "D", "E", "F",
"H", "I", "J", "K", "L", "M", "N", "O", "P", "Q", "R", "S", "T", "U", "V", "W", "X", "Y", "Z", "A", "B", "C", "D", "E", "F", "G",
"I", "J", "K", "L", "M", "N", "O", "P", "Q", "R", "S", "T", "U", "V", "W", "X", "Y", "Z", "A", "B", "C", "D", "E", "F", "G", "H",
"J", "K", "L", "M", "N", "O", "P", "Q", "R", "S", "T", "U", "V", "W", "X", "Y", "Z", "A", "B", "C", "D", "E", "F", "G", "H", "I",
"K", "L", "M", "N", "O", "P", "Q", "R", "S", "T", "U", "V", "W", "X", "Y", "Z", "A", "B", "C", "D", "E", "F", "G", "H", "I", "J",
"L", "M", "N", "O", "P", "Q", "R", "S", "T", "U", "V", "W", "X", "Y", "Z", "A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K",
"M", "N", "O", "P", "Q", "R", "S", "T", "U", "V", "W", "X", "Y", "Z", "A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L",
"N", "O", "P", "Q", "R", "S", "T", "U", "V", "W", "X", "Y", "Z", "A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M",
"O", "P", "Q", "R", "S", "T", "U", "V", "W", "X", "Y", "Z", "A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N",
"P", "Q", "R", "S", "T", "U", "V", "W", "X", "Y", "Z", "A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O",
"Q", "R", "S", "T", "U", "V", "W", "X", "Y", "Z", "A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P",
"R", "S", "T", "U", "V", "W", "X", "Y", "Z", "A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P", "Q",
"S", "T", "U", "V", "W", "X", "Y", "Z", "A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P", "Q", "R",
"T", "U", "V", "W", "X", "Y", "Z", "A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P", "Q", "R", "S",
"U", "V", "W", "X", "Y", "Z", "A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P", "Q", "R", "S", "T",
"V", "W", "X", "Y", "Z", "A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P", "Q", "R", "S", "T", "U",
"W", "X", "Y", "Z", "A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P", "Q", "R", "S", "T", "U", "V",
"X", "Y", "Z", "A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P", "Q", "R", "S", "T", "U", "V", "W",
"Y", "Z", "A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P", "Q", "R", "S", "T", "U", "V", "W", "X",
"Z", "A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P", "Q", "R", "S", "T", "U", "V", "W", "X", "Y"
]
key = "SOLVECRYPTO"
crypto = "UFJKXQZQUNB"
decrypt = ""
def getLetterId(char):
return ord(char) - 65
for i in range(0, len(key)):
x = getLetterId(key[i])
x = x * 26
for j in range(0, 26):
if cryptoMap[j + x] == crypto[i]:
decrypt = decrypt + str(cryptoMap[j])
print(decrypt)
| 84.386364
| 129
| 0.233504
| 722
| 3,713
| 1.200831
| 0.065097
| 0.05767
| 0.083045
| 0.106113
| 0.7797
| 0.7797
| 0.7797
| 0.7797
| 0.7797
| 0.7797
| 0
| 0.002716
| 0.206841
| 3,713
| 44
| 130
| 84.386364
| 0.291681
| 0
| 0
| 0
| 0
| 0
| 0.187938
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.025
| false
| 0
| 0
| 0.025
| 0.05
| 0.025
| 0
| 0
| 1
| null | 0
| 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
7f7ea93aa6eda26fbce75c2b9c9d6bac7cfbdb73
| 936
|
py
|
Python
|
tests/utils/test_timing.py
|
JoshKarpel/simulacra
|
e5770ced1bef860caec25ce8c77a61ff0bb78907
|
[
"MIT"
] | 1
|
2018-05-24T08:01:26.000Z
|
2018-05-24T08:01:26.000Z
|
tests/utils/test_timing.py
|
JoshKarpel/simulacra
|
e5770ced1bef860caec25ce8c77a61ff0bb78907
|
[
"MIT"
] | 1
|
2019-10-08T21:03:46.000Z
|
2019-10-08T21:03:46.000Z
|
tests/utils/test_timing.py
|
JoshKarpel/simulacra
|
e5770ced1bef860caec25ce8c77a61ff0bb78907
|
[
"MIT"
] | 2
|
2017-07-03T18:33:16.000Z
|
2018-10-16T01:52:57.000Z
|
import pytest
import simulacra as si
def test_block_timer():
timer = si.utils.BlockTimer()
assert timer.proc_time_start is None
assert timer.proc_time_end is None
assert timer.proc_time_elapsed is None
assert timer.wall_time_start is None
assert timer.wall_time_end is None
assert timer.wall_time_elapsed is None
with si.utils.BlockTimer() as timer:
assert timer.proc_time_start is not None
assert timer.proc_time_end is None
assert timer.proc_time_elapsed is None
assert timer.wall_time_start is not None
assert timer.wall_time_end is None
assert timer.wall_time_elapsed is None
assert timer.proc_time_start is not None
assert timer.proc_time_end is not None
assert timer.proc_time_elapsed is not None
assert timer.wall_time_start is not None
assert timer.wall_time_end is not None
assert timer.wall_time_elapsed is not None
| 31.2
| 48
| 0.747863
| 154
| 936
| 4.298701
| 0.142857
| 0.299094
| 0.362538
| 0.258308
| 0.851964
| 0.84139
| 0.802115
| 0.691843
| 0.691843
| 0.691843
| 0
| 0
| 0.219017
| 936
| 29
| 49
| 32.275862
| 0.905609
| 0
| 0
| 0.521739
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.782609
| 1
| 0.043478
| false
| 0
| 0.086957
| 0
| 0.130435
| 0
| 0
| 0
| 0
| null | 1
| 1
| 1
| 1
| 1
| 1
| 0
| 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
| 8
|
7fb9549f2edcf27ed0e28f4f4d0593e9928580d2
| 48
|
py
|
Python
|
gluonocr/loss/__init__.py
|
Davids929/gluon-ocr
|
5ac697cc030058cb9ae9f4b1f4e85f901d4d1c40
|
[
"Apache-2.0"
] | 2
|
2021-07-27T23:55:39.000Z
|
2022-02-02T15:20:34.000Z
|
gluonocr/loss/__init__.py
|
Davids929/gluon-ocr
|
5ac697cc030058cb9ae9f4b1f4e85f901d4d1c40
|
[
"Apache-2.0"
] | null | null | null |
gluonocr/loss/__init__.py
|
Davids929/gluon-ocr
|
5ac697cc030058cb9ae9f4b1f4e85f901d4d1c40
|
[
"Apache-2.0"
] | 3
|
2021-05-07T03:56:13.000Z
|
2021-07-27T23:55:27.000Z
|
from .base_loss import *
from .det_loss import *
| 24
| 24
| 0.770833
| 8
| 48
| 4.375
| 0.625
| 0.571429
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.145833
| 48
| 2
| 25
| 24
| 0.853659
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 0
| 1
| 0
| 1
| 1
| 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
| 0
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 7
|
7fbb56ee0778adeec3a7cc3ca5df4d1da79d4902
| 1,175
|
py
|
Python
|
python/p008.py
|
RUiNtheExtinct/project-euler
|
5c3e64c7dfcbf52d5213df88d2310550f4ee9ce1
|
[
"MIT"
] | null | null | null |
python/p008.py
|
RUiNtheExtinct/project-euler
|
5c3e64c7dfcbf52d5213df88d2310550f4ee9ce1
|
[
"MIT"
] | null | null | null |
python/p008.py
|
RUiNtheExtinct/project-euler
|
5c3e64c7dfcbf52d5213df88d2310550f4ee9ce1
|
[
"MIT"
] | null | null | null |
def prod(s):
ans = 1
for i in s:
ans *= int(i)
return ans
s = "7316717653133062491922511967442657474235534919493496983520312774506326239578318016984801869478851843858615607891129494954595017379583319528532088055111254069874715852386305071569329096329522744304355766896648950445244523161731856403098711121722383113622298934233803081353362766142828064444866452387493035890729629049156044077239071381051585930796086670172427121883998797908792274921901699720888093776657273330010533678812202354218097512545405947522435258490771167055601360483958644670632441572215539753697817977846174064955149290862569321978468622482839722413756570560574902614079729686524145351004748216637048440319989000889524345065854122758866688116427171479924442928230863465674813919123162824586178664583591245665294765456828489128831426076900422421902267105562632111110937054421750694165896040807198403850962455444362981230987879927244284909188845801561660979191338754992005240636899125607176060588611646710940507754100225698315520005593572972571636269561882670428252483600823257530420752963450"
ans = 0
for i in range(len(s) - 13):
ans = max(ans, prod(s[i : i + 13]))
print(ans)
| 90.384615
| 1,006
| 0.921702
| 35
| 1,175
| 30.942857
| 0.485714
| 0.009234
| 0.01108
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.903052
| 0.051915
| 1,175
| 12
| 1,007
| 97.916667
| 0.06912
| 0
| 0
| 0
| 0
| 0
| 0.851064
| 0.851064
| 0
| 1
| 0
| 0
| 0
| 1
| 0.1
| false
| 0
| 0
| 0
| 0.2
| 0.1
| 0
| 0
| 1
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| null | 1
| 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.